-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create base files * Add base guidance content * Create date picker base functionality * Add multiple input setDate functionality * Add accessibility features. Cancel and accept buttons and keyboard navigation styles * Add disable dates functionality * Add min date and max date functionality * Remove comments and refactor disabled dates functionality * Add autocomplete attributes * Add theming and inverted examples * Add card carousel theming and inverted examples * Add links from date input to date picker * Add date picker and input inverted styles
- Loading branch information
1 parent
66e7c0b
commit 09f0a0a
Showing
25 changed files
with
1,772 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: Card carousel | ||
width: wide | ||
model: | ||
carousel-five: ../../components/card-carousel/json/carousel-five.json | ||
carousel-nine: ../../components/card-carousel/json/carousel-nine.json | ||
page: true | ||
--- | ||
|
||
{{#>_theme}} | ||
{{#>_layout-container}} | ||
<h3>5 cards</h3> | ||
{{>_carousel model.carousel-five default=true loop=true}} | ||
|
||
<h3>9 cards</h3> | ||
{{>_carousel model.carousel-nine default=true loop=true}} | ||
|
||
<h3>Pagination</h3> | ||
{{>_carousel model.carousel-nine pagination=true default=true}} | ||
|
||
{{/_layout-container}} | ||
|
||
{{#>_layout-container brand-dark="true" invert="true"}} | ||
<h3>5 cards</h3> | ||
{{>_carousel model.carousel-five default=true loop=true}} | ||
|
||
<h3>9 cards</h3> | ||
{{>_carousel model.carousel-nine default=true loop=true}} | ||
|
||
<h3>Pagination</h3> | ||
{{>_carousel model.carousel-nine pagination=true default=true}} | ||
{{/_layout-container}} | ||
{{/_theme}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
--- | ||
title: Date input | ||
width: narrow | ||
page: true | ||
--- | ||
|
||
{{#>_theme}} | ||
{{#>_layout-container}} | ||
|
||
<div class="nsw-form"> | ||
<div class="nsw-form__group"> | ||
{{>_date-input | ||
id="date" | ||
label="Date of birth" | ||
helper-text="For example 08 12 1990" | ||
}} | ||
</div> | ||
</div> | ||
|
||
<div class="nsw-form"> | ||
<div class="nsw-form__group"> | ||
{{>_date-input | ||
id="date-error" | ||
label="Date of birth" | ||
required=true | ||
error-text="This field is required" | ||
helper-text="For example 08 12 1990" | ||
}} | ||
</div> | ||
</div> | ||
|
||
<div class="nsw-form"> | ||
<div class="nsw-form__group"> | ||
{{>_date-input | ||
id="date-success" | ||
label="Date of birth" | ||
valid-text="This field has been validated" | ||
helper-text="For example 08 12 1990" | ||
}} | ||
</div> | ||
</div> | ||
|
||
{{/_layout-container}} | ||
|
||
{{#>_layout-container brand-dark="true" invert="true"}} | ||
|
||
<div class="nsw-form"> | ||
<div class="nsw-form__group"> | ||
{{>_date-input | ||
id="date" | ||
label="Date of birth" | ||
helper-text="For example 08 12 1990" | ||
}} | ||
</div> | ||
</div> | ||
|
||
<div class="nsw-form"> | ||
<div class="nsw-form__group"> | ||
{{>_date-input | ||
id="date-error" | ||
label="Date of birth" | ||
required=true | ||
error-text="This field is required" | ||
helper-text="For example 08 12 1990" | ||
}} | ||
</div> | ||
</div> | ||
|
||
<div class="nsw-form"> | ||
<div class="nsw-form__group"> | ||
{{>_date-input | ||
id="date-success" | ||
label="Date of birth" | ||
valid-text="This field has been validated" | ||
helper-text="For example 08 12 1990" | ||
}} | ||
</div> | ||
</div> | ||
|
||
{{/_layout-container}} | ||
{{/_theme}} |
Oops, something went wrong.