@aurodesignsystem/auro-formkit 2.0.0-beta.46 → 2.0.0-beta.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/components/bibtemplate/dist/index.js +3 -3
  3. package/components/bibtemplate/dist/registered.js +3 -3
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/api.min.js +9 -12
  6. package/components/checkbox/demo/index.min.js +9 -12
  7. package/components/checkbox/dist/index.js +9 -12
  8. package/components/checkbox/dist/registered.js +9 -12
  9. package/components/combobox/README.md +4 -4
  10. package/components/combobox/demo/api.md +2 -2
  11. package/components/combobox/demo/api.min.js +3818 -1682
  12. package/components/combobox/demo/index.md +2 -2
  13. package/components/combobox/demo/index.min.js +3818 -1682
  14. package/components/combobox/dist/index.js +3827 -1691
  15. package/components/combobox/dist/registered.js +3827 -1691
  16. package/components/counter/README.md +1 -1
  17. package/components/counter/demo/api.min.js +12 -15
  18. package/components/counter/demo/index.min.js +12 -15
  19. package/components/counter/dist/index.js +12 -15
  20. package/components/counter/dist/registered.js +12 -15
  21. package/components/datepicker/README.md +6 -4
  22. package/components/datepicker/demo/api.js +2 -2
  23. package/components/datepicker/demo/api.md +134 -48
  24. package/components/datepicker/demo/api.min.js +5175 -2043
  25. package/components/datepicker/demo/index.md +6 -0
  26. package/components/datepicker/demo/index.min.js +5161 -2028
  27. package/components/datepicker/dist/auro-calendar-month.d.ts +15 -0
  28. package/components/datepicker/dist/auro-calendar.d.ts +24 -0
  29. package/components/datepicker/dist/auro-datepicker.d.ts +31 -11
  30. package/components/datepicker/dist/bibtemplateVersion.d.ts +2 -0
  31. package/components/datepicker/dist/index.js +5161 -2028
  32. package/components/datepicker/dist/registered.js +5161 -2028
  33. package/components/datepicker/dist/utilities.d.ts +25 -0
  34. package/components/datepicker/dist/utilitiesCalendar.d.ts +2 -1
  35. package/components/dropdown/README.md +1 -1
  36. package/components/form/README.md +1 -1
  37. package/components/input/README.md +1 -1
  38. package/components/input/demo/api.md +91 -89
  39. package/components/input/demo/api.min.js +3827 -1688
  40. package/components/input/demo/index.md +2 -2
  41. package/components/input/demo/index.min.js +3827 -1688
  42. package/components/input/dist/auro-input.d.ts +0 -1
  43. package/components/input/dist/base-input.d.ts +46 -12
  44. package/components/input/dist/index.js +3827 -1688
  45. package/components/input/dist/registered.js +3827 -1688
  46. package/components/input/dist/utilities.d.ts +25 -0
  47. package/components/menu/README.md +1 -1
  48. package/components/radio/README.md +1 -1
  49. package/components/radio/demo/api.min.js +9 -12
  50. package/components/radio/demo/index.min.js +9 -12
  51. package/components/radio/dist/index.js +9 -12
  52. package/components/radio/dist/registered.js +9 -12
  53. package/components/select/README.md +3 -3
  54. package/components/select/demo/api.min.js +9 -12
  55. package/components/select/demo/index.min.js +9 -12
  56. package/components/select/dist/index.js +9 -12
  57. package/components/select/dist/registered.js +9 -12
  58. package/package.json +1 -1
@@ -3,9 +3,34 @@ export class AuroDatepickerUtilities {
3
3
  * Returns true if value passed in is a valid date.
4
4
  * @private
5
5
  * @param {String} date - Date to validate.
6
+ * @param {String} format - Date format to validate against.
6
7
  * @returns {Boolean}
7
8
  */
8
9
  private validDateStr;
10
+ /**
11
+ * Converts a date string to a North American date format.
12
+ * @private
13
+ * @param {String} dateStr - Date to validate.
14
+ * @param {String} format - Date format to validate against.
15
+ * @returns {Boolean}
16
+ */
17
+ private toNorthAmericanFormat;
18
+ /**
19
+ * Parses a date string into its components.
20
+ * @private
21
+ * @param {string} dateStr - Date string to parse.
22
+ * @param {string} format - Date format to parse.
23
+ * @returns {void}
24
+ */
25
+ private parseDate;
26
+ /**
27
+ * Converts a date string to a custom date format.
28
+ * @private
29
+ * @param {string} dateStr - Date string to parse.
30
+ * @param {string} format - Date format to parse.
31
+ * @returns {void}
32
+ */
33
+ private toCustomFormat;
9
34
  /**
10
35
  * Converts any date object to a date object representing the first day of the month.
11
36
  * @param {Object} date - Date to convert to the first day of the month.
@@ -4,9 +4,10 @@ export class CalendarUtilities {
4
4
  * Scroll the calendar month list to a given valid date if in mobile view.
5
5
  * @param {Object} elem - The calendar element.
6
6
  * @param {String} date - The date to scroll into view.
7
+ * @param {String} format - The format of the date.
7
8
  * @returns {void}
8
9
  */
9
- scrollMonthIntoView(elem: any, date: string): void;
10
+ scrollMonthIntoView(elem: any, date: string, format: string): void;
10
11
  /**
11
12
  * Sends an event requesting the dropdown bib be closed.
12
13
  * @private
@@ -97,7 +97,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
97
97
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
98
98
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
99
99
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
100
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.45/dist/auro-dropdown__bundled.js" type="module"></script>
100
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.46/dist/auro-dropdown__bundled.js" type="module"></script>
101
101
  <!-- AURO-GENERATED-CONTENT:END -->
102
102
 
103
103
  ## auro-dropdown use cases
@@ -98,7 +98,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
98
98
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
99
99
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
100
100
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
101
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.45/dist/auro-form__bundled.js" type="module"></script>
101
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.46/dist/auro-form__bundled.js" type="module"></script>
102
102
  <!-- AURO-GENERATED-CONTENT:END -->
103
103
 
104
104
  ## auro-form use cases
@@ -89,7 +89,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
89
89
  <!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
90
90
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
91
91
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
92
- <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.45/dist/auro-input__bundled.js" type="module"></script>
92
+ <script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.46/dist/auro-input__bundled.js" type="module"></script>
93
93
  <!-- AURO-GENERATED-CONTENT:END -->
94
94
 
95
95
  ## auro-input use cases
@@ -17,13 +17,14 @@ Generate unique names for dependency components.
17
17
  | Property | Attribute | Type | Default | Description |
18
18
  |-----------------------------------|-----------------------------------|-----------|-------------|--------------------------------------------------|
19
19
  | [activeLabel](#activeLabel) | `activeLabel` | `boolean` | false | If set, the label will remain fixed in the active position. |
20
- | [autocapitalize](#autocapitalize) | `autocapitalize` | `string` | | An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters] |
20
+ | [autocapitalize](#autocapitalize) | `autocapitalize` | `string` | | An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]. |
21
21
  | [autocomplete](#autocomplete) | `autocomplete` | `string` | | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
22
22
  | [autocorrect](#autocorrect) | `autocorrect` | `string` | | When set to `off`, stops iOS from auto-correcting words when typed into a text box. |
23
23
  | [customValidityTypeEmail](#customValidityTypeEmail) | `customValidityTypeEmail` | `string` | | Custom help text message for email type validity. |
24
24
  | [disabled](#disabled) | `disabled` | `boolean` | false | If set, disables the input. |
25
- | [error](#error) | `error` | `string` | | |
25
+ | [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
26
26
  | [errorMessage](#errorMessage) | `errorMessage` | `string` | | Contains the help text message for the current validity error. |
27
+ | [format](#format) | `format` | `string` | | Specifies the input mask format. |
27
28
  | [icon](#icon) | `icon` | `boolean` | false | If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format. |
28
29
  | [id](#id) | `id` | `string` | | Sets the unique ID of the element. |
29
30
  | [lang](#lang) | `lang` | `string` | | Defines the language of an element. |
@@ -47,18 +48,17 @@ Generate unique names for dependency components.
47
48
  | [setCustomValidityTooShort](#setCustomValidityTooShort) | `setCustomValidityTooShort` | `string` | | Custom help text message to display when validity = `tooShort`. |
48
49
  | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
49
50
  | [spellcheck](#spellcheck) | `spellcheck` | `string` | | An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`. |
50
- | [type](#type) | `type` | `string` | | Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`. |
51
+ | [type](#type) | `type` | `string` | | Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `date`, `tel` or `text`. If given value is not allowed or set, defaults to `text`. |
51
52
  | [validateOnInput](#validateOnInput) | `validateOnInput` | `boolean` | | Sets validation mode to re-eval with each input. |
52
53
  | [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
53
54
  | [value](#value) | `value` | `string` | | Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input. |
54
55
 
55
56
  ## Methods
56
57
 
57
- | Method | Type | Description |
58
- |--------------|----------------------------------------|--------------------------------------------------|
59
- | [isDateType](#isDateType) | `(): boolean` | |
60
- | [reset](#reset) | `(): void` | Resets component to initial state. |
61
- | [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
58
+ | Method | Type | Description |
59
+ |------------|----------------------------------------|--------------------------------------------------|
60
+ | [reset](#reset) | `(): void` | Resets component to initial state. |
61
+ | [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
62
62
 
63
63
  ## Events
64
64
 
@@ -127,7 +127,7 @@ Use the `disable` attribute to prevent the user from interacting with the input.
127
127
  <div class="exampleWrapper">
128
128
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/disabled.html) -->
129
129
  <!-- The below content is automatically added from ../apiExamples/disabled.html -->
130
- <auro-input disabled bordered type="month-day-year">
130
+ <auro-input disabled bordered type="date">
131
131
  <slot slot="label">Arrival date</slot>
132
132
  </auro-input>
133
133
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -138,7 +138,7 @@ Use the `disable` attribute to prevent the user from interacting with the input.
138
138
  <!-- The below code snippet is automatically added from ../apiExamples/disabled.html -->
139
139
 
140
140
  ```html
141
- <auro-input disabled bordered type="month-day-year">
141
+ <auro-input disabled bordered type="date">
142
142
  <slot slot="label">Arrival date</slot>
143
143
  </auro-input>
144
144
  ```
@@ -261,7 +261,7 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
261
261
  <div class="exampleWrapper">
262
262
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxDate.html) -->
263
263
  <!-- The below content is automatically added from ../apiExamples/maxDate.html -->
264
- <auro-input type="month-day-year" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
264
+ <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
265
265
  <span slot="label">Choose a date</span>
266
266
  </auro-input>
267
267
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -272,7 +272,7 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
272
272
  <!-- The below code snippet is automatically added from ../apiExamples/maxDate.html -->
273
273
 
274
274
  ```html
275
- <auro-input type="month-day-year" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
275
+ <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
276
276
  <span slot="label">Choose a date</span>
277
277
  </auro-input>
278
278
  ```
@@ -312,7 +312,7 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
312
312
  <div class="exampleWrapper">
313
313
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minDate.html) -->
314
314
  <!-- The below content is automatically added from ../apiExamples/minDate.html -->
315
- <auro-input type="month-day-year" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
315
+ <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
316
316
  <span slot="label">Choose a date</span>
317
317
  </auro-input>
318
318
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -323,7 +323,7 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
323
323
  <!-- The below code snippet is automatically added from ../apiExamples/minDate.html -->
324
324
 
325
325
  ```html
326
- <auro-input type="month-day-year" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
326
+ <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
327
327
  <span slot="label">Choose a date</span>
328
328
  </auro-input>
329
329
  ```
@@ -541,6 +541,33 @@ For use cases where the field is `required`, but live validation is not wanted,
541
541
  <!-- AURO-GENERATED-CONTENT:END -->
542
542
  </auro-accordion>
543
543
 
544
+ ### Format <a name="format"></a>
545
+ Use the `format` attribute to set the format of the IMask.
546
+
547
+ Default masking definitions:
548
+ - 0 : number
549
+ - a : letter
550
+ - \* : any character
551
+
552
+ See [IMask](https://imask.js.org/) for more information on how to configure a mask.
553
+
554
+ <div class="exampleWrapper">
555
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/format.html) -->
556
+ <!-- The below content is automatically added from ../apiExamples/format.html -->
557
+ <auro-input bordered format="47440000"></auro-input>
558
+ <!-- AURO-GENERATED-CONTENT:END -->
559
+ </div>
560
+ <auro-accordion alignRight>
561
+ <span slot="trigger">See code</span>
562
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/format.html) -->
563
+ <!-- The below code snippet is automatically added from ../apiExamples/format.html -->
564
+
565
+ ```html
566
+ <auro-input bordered format="47440000"></auro-input>
567
+ ```
568
+ <!-- AURO-GENERATED-CONTENT:END -->
569
+ </auro-accordion>
570
+
544
571
  ## Error support and HTML5 Validity
545
572
 
546
573
  The `<auro-input>` component follows the HTML5 input `validity` and `validityState` [specification](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#client-side_validation).
@@ -826,80 +853,81 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
826
853
  <!-- AURO-GENERATED-CONTENT:END -->
827
854
  </auro-accordion>
828
855
 
829
- ### Date Format
856
+ ### Phone Number
830
857
 
831
- Use the `type="month-day-year"` attribute for a date formatted input.
858
+ Use the `type="tel"` attribute for a phone number formatted input. The default format is `+1 (000) 000-0000`.
832
859
 
833
860
  <div class="exampleWrapper">
834
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthDayYear.html) -->
835
- <!-- The below content is automatically added from ../apiExamples/monthDayYear.html -->
836
- <auro-input type="month-day-year" bordered>
837
- <slot slot="label">Arrival date</slot>
838
- </auro-input>
861
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/tel.html) -->
862
+ <!-- The below content is automatically added from ../apiExamples/tel.html -->
863
+ <auro-input type="tel" bordered></auro-input>
839
864
  <!-- AURO-GENERATED-CONTENT:END -->
840
865
  </div>
841
866
  <auro-accordion alignRight>
842
867
  <span slot="trigger">See code</span>
843
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/monthDayYear.html) -->
844
- <!-- The below code snippet is automatically added from ../apiExamples/monthDayYear.html -->
868
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/tel.html) -->
869
+ <!-- The below code snippet is automatically added from ../apiExamples/tel.html -->
845
870
 
846
871
  ```html
847
- <auro-input type="month-day-year" bordered>
848
- <slot slot="label">Arrival date</slot>
849
- </auro-input>
872
+ <auro-input type="tel" bordered></auro-input>
850
873
  ```
851
874
  <!-- AURO-GENERATED-CONTENT:END -->
852
875
  </auro-accordion>
853
- Use the `type="month-year"` attribute for a date formatted input.
876
+
877
+ #### Formatting
878
+
879
+ Use the `format` attribute to set a custom phone number format.
854
880
 
855
881
  <div class="exampleWrapper">
856
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthYear.html) -->
857
- <!-- The below content is automatically added from ../apiExamples/monthYear.html -->
858
- <auro-input type="month-year" bordered>
859
- <slot slot="label">Arrival date</slot>
860
- </auro-input>
882
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/telFormat.html) -->
883
+ <!-- The below content is automatically added from ../apiExamples/telFormat.html -->
884
+ <auro-input type="tel" format="+22 999 99 9999" bordered></auro-input>
861
885
  <!-- AURO-GENERATED-CONTENT:END -->
862
886
  </div>
863
887
  <auro-accordion alignRight>
864
888
  <span slot="trigger">See code</span>
865
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/monthYear.html) -->
866
- <!-- The below code snippet is automatically added from ../apiExamples/monthYear.html -->
889
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/telFormat.html) -->
890
+ <!-- The below code snippet is automatically added from ../apiExamples/telFormat.html -->
867
891
 
868
892
  ```html
869
- <auro-input type="month-year" bordered>
870
- <slot slot="label">Arrival date</slot>
871
- </auro-input>
893
+ <auro-input type="tel" format="+22 999 99 9999" bordered></auro-input>
872
894
  ```
873
895
  <!-- AURO-GENERATED-CONTENT:END -->
874
896
  </auro-accordion>
875
- Use the `type="month-fullYear"` attribute for a date formatted input.
897
+
898
+ ### Date
899
+
900
+ Use the `type="date"` attribute for a date formatted input. The default date format is `mm/dd/yyyy`.
876
901
 
877
902
  <div class="exampleWrapper">
878
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthFullYear.html) -->
879
- <!-- The below content is automatically added from ../apiExamples/monthFullYear.html -->
880
- <auro-input type="month-fullYear" bordered>
903
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthDayYear.html) -->
904
+ <!-- The below content is automatically added from ../apiExamples/monthDayYear.html -->
905
+ <auro-input type="date" bordered>
881
906
  <slot slot="label">Arrival date</slot>
882
907
  </auro-input>
883
908
  <!-- AURO-GENERATED-CONTENT:END -->
884
909
  </div>
885
910
  <auro-accordion alignRight>
886
911
  <span slot="trigger">See code</span>
887
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/monthFullYear.html) -->
888
- <!-- The below code snippet is automatically added from ../apiExamples/monthFullYear.html -->
912
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/monthDayYear.html) -->
913
+ <!-- The below code snippet is automatically added from ../apiExamples/monthDayYear.html -->
889
914
 
890
915
  ```html
891
- <auro-input type="month-fullYear" bordered>
916
+ <auro-input type="date" bordered>
892
917
  <slot slot="label">Arrival date</slot>
893
918
  </auro-input>
894
919
  ```
895
920
  <!-- AURO-GENERATED-CONTENT:END -->
896
921
  </auro-accordion>
897
- Use the `type="year-month-day"` attribute for a date formatted input.
922
+
923
+ #### Formatting
924
+
925
+ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyyy` or `yy`.
898
926
 
899
927
  <div class="exampleWrapper">
900
928
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/yearMonthDay.html) -->
901
929
  <!-- The below content is automatically added from ../apiExamples/yearMonthDay.html -->
902
- <auro-input type="year-month-day" bordered>
930
+ <auro-input type="date" format="yyyy/mm/dd" bordered>
903
931
  <slot slot="label">Arrival date</slot>
904
932
  </auro-input>
905
933
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -910,74 +938,48 @@ Use the `type="year-month-day"` attribute for a date formatted input.
910
938
  <!-- The below code snippet is automatically added from ../apiExamples/yearMonthDay.html -->
911
939
 
912
940
  ```html
913
- <auro-input type="year-month-day" bordered>
941
+ <auro-input type="date" format="yyyy/mm/dd" bordered>
914
942
  <slot slot="label">Arrival date</slot>
915
943
  </auro-input>
916
944
  ```
917
945
  <!-- AURO-GENERATED-CONTENT:END -->
918
946
  </auro-accordion>
919
- Use the `type="month"` attribute for a date formatted input.
920
-
921
947
  <div class="exampleWrapper">
922
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month.html) -->
923
- <!-- The below content is automatically added from ../apiExamples/month.html -->
924
- <auro-input type="month" bordered>
925
- <slot slot="label">Month</slot>
926
- </auro-input>
927
- <!-- AURO-GENERATED-CONTENT:END -->
928
- </div>
929
- <auro-accordion alignRight>
930
- <span slot="trigger">See code</span>
931
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/month.html) -->
932
- <!-- The below code snippet is automatically added from ../apiExamples/month.html -->
933
-
934
- ```html
935
- <auro-input type="month" bordered>
936
- <slot slot="label">Month</slot>
937
- </auro-input>
938
- ```
939
- <!-- AURO-GENERATED-CONTENT:END -->
940
- </auro-accordion>
941
- Use the `type="year"` attribute for a date formatted input.
942
-
943
- <div class="exampleWrapper">
944
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/year.html) -->
945
- <!-- The below content is automatically added from ../apiExamples/year.html -->
946
- <auro-input type="year" bordered>
947
- <slot slot="label">Year</slot>
948
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthYear.html) -->
949
+ <!-- The below content is automatically added from ../apiExamples/monthYear.html -->
950
+ <auro-input type="date" format="mm/yy" bordered>
951
+ <slot slot="label">Expiration date</slot>
948
952
  </auro-input>
949
953
  <!-- AURO-GENERATED-CONTENT:END -->
950
954
  </div>
951
955
  <auro-accordion alignRight>
952
956
  <span slot="trigger">See code</span>
953
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/year.html) -->
954
- <!-- The below code snippet is automatically added from ../apiExamples/year.html -->
957
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/monthYear.html) -->
958
+ <!-- The below code snippet is automatically added from ../apiExamples/monthYear.html -->
955
959
 
956
960
  ```html
957
- <auro-input type="year" bordered>
958
- <slot slot="label">Year</slot>
961
+ <auro-input type="date" format="mm/yy" bordered>
962
+ <slot slot="label">Expiration date</slot>
959
963
  </auro-input>
960
964
  ```
961
965
  <!-- AURO-GENERATED-CONTENT:END -->
962
966
  </auro-accordion>
963
- Use the `type="fullYear"` attribute for a date formatted input.
964
-
965
967
  <div class="exampleWrapper">
966
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/fullYear.html) -->
967
- <!-- The below content is automatically added from ../apiExamples/fullYear.html -->
968
- <auro-input type="fullYear" bordered>
969
- <slot slot="label">Full Year</slot>
968
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/day.html) -->
969
+ <!-- The below content is automatically added from ../apiExamples/day.html -->
970
+ <auro-input type="date" format="dd" bordered>
971
+ <slot slot="label">Day</slot>
970
972
  </auro-input>
971
973
  <!-- AURO-GENERATED-CONTENT:END -->
972
974
  </div>
973
975
  <auro-accordion alignRight>
974
976
  <span slot="trigger">See code</span>
975
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/fullYear.html) -->
976
- <!-- The below code snippet is automatically added from ../apiExamples/fullYear.html -->
977
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/day.html) -->
978
+ <!-- The below code snippet is automatically added from ../apiExamples/day.html -->
977
979
 
978
980
  ```html
979
- <auro-input type="fullYear" bordered>
980
- <slot slot="label">Full Year</slot>
981
+ <auro-input type="date" format="dd" bordered>
982
+ <slot slot="label">Day</slot>
981
983
  </auro-input>
982
984
  ```
983
985
  <!-- AURO-GENERATED-CONTENT:END -->