@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.0 → 0.0.0-pr1628.10

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 (158) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +1 -1
  3. package/components/bibtemplate/dist/registered.js +1 -1
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/accessibility.md +2 -2
  6. package/components/checkbox/demo/api.md +17 -17
  7. package/components/checkbox/demo/customize.md +16 -16
  8. package/components/checkbox/demo/customize.min.js +3 -3
  9. package/components/checkbox/demo/design.md +24 -24
  10. package/components/checkbox/demo/getting-started.md +33 -27
  11. package/components/checkbox/demo/getting-started.min.js +3 -3
  12. package/components/checkbox/demo/index.md +17 -17
  13. package/components/checkbox/demo/index.min.js +3 -3
  14. package/components/checkbox/demo/readme.md +1 -1
  15. package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
  16. package/components/checkbox/dist/index.js +3 -3
  17. package/components/checkbox/dist/registered.js +3 -3
  18. package/components/combobox/demo/accessibility.md +1 -1
  19. package/components/combobox/demo/api.md +3 -3
  20. package/components/combobox/demo/css-only.md +3 -3
  21. package/components/combobox/demo/customize.md +13 -12
  22. package/components/combobox/demo/customize.min.js +79 -59
  23. package/components/combobox/demo/getting-started.md +4 -4
  24. package/components/combobox/demo/getting-started.min.js +79 -59
  25. package/components/combobox/demo/index.md +2 -2
  26. package/components/combobox/demo/index.min.js +79 -59
  27. package/components/combobox/demo/voiceover.md +1 -1
  28. package/components/combobox/dist/auro-combobox.d.ts +35 -31
  29. package/components/combobox/dist/index.js +68 -49
  30. package/components/combobox/dist/registered.js +68 -49
  31. package/components/counter/demo/accessibility.md +1 -1
  32. package/components/counter/demo/api.md +18 -18
  33. package/components/counter/demo/css-only.md +1 -1
  34. package/components/counter/demo/customize.md +2 -2
  35. package/components/counter/demo/customize.min.js +28 -28
  36. package/components/counter/demo/design.md +1 -1
  37. package/components/counter/demo/getting-started.md +29 -2
  38. package/components/counter/demo/getting-started.min.js +28 -28
  39. package/components/counter/demo/index.min.js +28 -28
  40. package/components/counter/demo/why-counter.md +3 -3
  41. package/components/counter/dist/auro-counter-group.d.ts +13 -14
  42. package/components/counter/dist/auro-counter.d.ts +1 -1
  43. package/components/counter/dist/index.js +28 -28
  44. package/components/counter/dist/registered.js +28 -28
  45. package/components/datepicker/README.md +1 -1
  46. package/components/datepicker/demo/accessibility.md +5 -5
  47. package/components/datepicker/demo/api.md +3 -3
  48. package/components/datepicker/demo/css-only.md +4 -4
  49. package/components/datepicker/demo/customize.md +12 -12
  50. package/components/datepicker/demo/customize.min.js +186 -132
  51. package/components/datepicker/demo/design.md +11 -11
  52. package/components/datepicker/demo/getting-started.md +4 -4
  53. package/components/datepicker/demo/getting-started.min.js +186 -132
  54. package/components/datepicker/demo/index.md +5 -5
  55. package/components/datepicker/demo/index.min.js +186 -132
  56. package/components/datepicker/demo/keyboard-behavior.md +1 -1
  57. package/components/datepicker/demo/readme.md +1 -1
  58. package/components/datepicker/demo/voiceover.md +4 -4
  59. package/components/datepicker/demo/why-datepicker.md +3 -3
  60. package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
  61. package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
  62. package/components/datepicker/dist/auro-calendar.d.ts +44 -43
  63. package/components/datepicker/dist/auro-datepicker.d.ts +12 -10
  64. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -0
  65. package/components/datepicker/dist/index.js +186 -132
  66. package/components/datepicker/dist/registered.js +186 -132
  67. package/components/datepicker/dist/utilities.d.ts +4 -1
  68. package/components/datepicker/dist/utilitiesCalendar.d.ts +12 -4
  69. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +12 -6
  70. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +4 -4
  71. package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +7 -7
  72. package/components/dropdown/demo/api.md +7 -7
  73. package/components/dropdown/demo/css-only.md +2 -2
  74. package/components/dropdown/demo/customize.md +1 -1
  75. package/components/dropdown/demo/customize.min.js +10 -9
  76. package/components/dropdown/demo/design.md +4 -4
  77. package/components/dropdown/demo/getting-started.min.js +31 -16
  78. package/components/dropdown/demo/index.min.js +10 -9
  79. package/components/dropdown/demo/voiceover.md +1 -1
  80. package/components/dropdown/demo/why-dropdown.md +1 -1
  81. package/components/dropdown/dist/auro-dropdown.d.ts +9 -8
  82. package/components/dropdown/dist/index.js +10 -9
  83. package/components/dropdown/dist/registered.js +10 -9
  84. package/components/form/README.md +1 -1
  85. package/components/form/demo/api.md +7 -7
  86. package/components/form/demo/css-only.md +1 -1
  87. package/components/form/demo/customize.md +2 -0
  88. package/components/form/demo/customize.min.js +345 -257
  89. package/components/form/demo/getting-started.md +2 -0
  90. package/components/form/demo/getting-started.min.js +345 -257
  91. package/components/form/demo/index.md +2 -2
  92. package/components/form/demo/index.min.js +345 -257
  93. package/components/form/demo/keyboard-behavior.md +1 -1
  94. package/components/form/demo/readme.md +1 -1
  95. package/components/form/demo/registerDemoDeps.min.js +343 -255
  96. package/components/form/demo/voiceover.md +3 -3
  97. package/components/form/demo/why-form.md +1 -1
  98. package/components/form/dist/auro-form.d.ts +2 -2
  99. package/components/form/dist/index.js +2 -2
  100. package/components/form/dist/registered.js +2 -2
  101. package/components/input/demo/api.md +58 -58
  102. package/components/input/demo/css-only.md +4 -4
  103. package/components/input/demo/customize.md +11 -11
  104. package/components/input/demo/customize.min.js +21 -7
  105. package/components/input/demo/design.md +2 -2
  106. package/components/input/demo/getting-started.md +5 -5
  107. package/components/input/demo/getting-started.min.js +21 -7
  108. package/components/input/demo/index.md +1 -1
  109. package/components/input/demo/index.min.js +21 -7
  110. package/components/input/demo/why-input.md +3 -3
  111. package/components/input/dist/auro-input.d.ts +1 -1
  112. package/components/input/dist/base-input.d.ts +6 -5
  113. package/components/input/dist/index.js +21 -7
  114. package/components/input/dist/registered.js +21 -7
  115. package/components/input/dist/utilities.d.ts +11 -0
  116. package/components/menu/demo/accessibility.md +1 -1
  117. package/components/menu/demo/api.md +1 -1
  118. package/components/menu/demo/css-only.md +4 -4
  119. package/components/menu/demo/customize.md +1 -1
  120. package/components/menu/demo/design.md +1 -1
  121. package/components/menu/demo/getting-started.md +3 -3
  122. package/components/menu/demo/index.min.js +11 -10
  123. package/components/menu/demo/keyboard-behavior.md +1 -1
  124. package/components/menu/demo/voiceover.md +1 -1
  125. package/components/menu/demo/why-menu.md +3 -3
  126. package/components/menu/dist/auro-menu.d.ts +10 -9
  127. package/components/menu/dist/auro-menuoption.d.ts +1 -1
  128. package/components/menu/dist/index.js +11 -10
  129. package/components/menu/dist/registered.js +11 -10
  130. package/components/radio/demo/accessibility.md +1 -1
  131. package/components/radio/demo/api.md +10 -10
  132. package/components/radio/demo/customize.md +15 -5
  133. package/components/radio/demo/customize.min.js +10 -12
  134. package/components/radio/demo/design.md +1 -1
  135. package/components/radio/demo/getting-started.md +6 -6
  136. package/components/radio/demo/getting-started.min.js +10 -12
  137. package/components/radio/demo/index.md +1 -1
  138. package/components/radio/demo/index.min.js +10 -12
  139. package/components/radio/demo/keyboard-behavior.md +1 -1
  140. package/components/radio/demo/voiceover.md +1 -1
  141. package/components/radio/demo/why-radio.md +1 -1
  142. package/components/radio/dist/auro-radio-group.d.ts +6 -8
  143. package/components/radio/dist/auro-radio.d.ts +3 -3
  144. package/components/radio/dist/index.js +10 -12
  145. package/components/radio/dist/registered.js +10 -12
  146. package/components/select/demo/api.md +1 -1
  147. package/components/select/demo/css-only.md +1 -1
  148. package/components/select/demo/customize.md +1 -1
  149. package/components/select/demo/customize.min.js +27 -24
  150. package/components/select/demo/getting-started.min.js +27 -24
  151. package/components/select/demo/index.md +1 -1
  152. package/components/select/demo/index.min.js +27 -24
  153. package/components/select/demo/voiceover.md +1 -1
  154. package/components/select/dist/auro-select.d.ts +4 -3
  155. package/components/select/dist/index.js +16 -14
  156. package/components/select/dist/registered.js +16 -14
  157. package/custom-elements.json +159 -143
  158. package/package.json +1 -1
@@ -10,21 +10,21 @@
10
10
  <li><strong>Role:</strong> The role for the element type, such as <em>"text field"</em> or <em>"pop-up button"</em></li>
11
11
  <li><strong>Required state:</strong> <em>"required"</em> if the element has the <code>required</code> attribute</li>
12
12
  <li><strong>Value:</strong> The current value if one is set</li>
13
- <li><strong>Help text:</strong> Additional description from the <code>helpText</code> slot</li>
13
+ <li><strong>Help text:</strong> The <code>helpText</code> slot content, for elements that link it to their input, such as <code>auro-input</code>. Some elements, such as <code>auro-select</code> and <code>auro-combobox</code>, don't currently link it, so VoiceOver doesn't read it on focus.</li>
14
14
  </ol>
15
15
  <auro-header level="3" id="voiceOverValidation">Validation errors</auro-header>
16
16
  <p>When <code>submit()</code> runs and a form element fails validation:</p>
17
17
  <ul>
18
18
  <li>The invalid element shows its error state.</li>
19
19
  <li>The help text region updates to show the validation error message.</li>
20
- <li>VoiceOver announces the error through the element's accessible description when it receives focus.</li>
20
+ <li>For elements that link their help text, such as <code>auro-input</code>, VoiceOver reads the error as the element's description when it receives focus. For other elements, such as <code>auro-select</code> and <code>auro-combobox</code>, VoiceOver doesn't currently read the error on focus. It announces their error only when it appears, through the help text region's <code>role="alert"</code>.</li>
21
21
  </ul>
22
22
  <auro-header level="2" id="voiceOverWorkflow">Submission workflow</auro-header>
23
23
  <ol>
24
24
  <li><strong>Navigate form elements:</strong> Tab through each form element; VoiceOver announces labels, roles, and states.</li>
25
25
  <li><strong>Enter values:</strong> Interact with each element to provide input.</li>
26
26
  <li><strong>Submit:</strong> Focus the submit button and activate it, or press <code>Enter</code> while focus is on a named, enabled form element.</li>
27
- <li><strong>Validation feedback:</strong> If validation fails, each invalid element shows its error. <code>auro-form</code> doesn't move focus, so VoiceOver announces the error when the user moves to the invalid element.</li>
27
+ <li><strong>Validation feedback:</strong> If validation fails, each invalid element shows its error. <code>auro-form</code> doesn't move focus, so VoiceOver reads the error when the user moves to an invalid element that links its help text, such as <code>auro-input</code>.</li>
28
28
  </ol>
29
29
  <auro-header level="2" id="voiceOverReset">Reset workflow</auro-header>
30
30
  <ol>
@@ -42,7 +42,7 @@
42
42
  <p>Each Auro component dispatches its own events, such as <code>auroSelect-valueSet</code> and <code>auroDatePicker-toggled</code>. Listening for all of these individually is error-prone.</p>
43
43
  <p><code>auro-form</code> normalizes events:</p>
44
44
  <ul>
45
- <li><code>input</code>: Fires when any child element receives user input.</li>
45
+ <li><code>input</code>: Bubbles up from any child element that receives user input, except <code>auro-counter-group</code>, which doesn't currently bubble it.</li>
46
46
  <li><code>change</code>: Fires when any child element's value changes, and when the form rebuilds its state.</li>
47
47
  <li><code>submit</code>: Fires with aggregated form values on valid submission.</li>
48
48
  <li><code>reset</code>: Fires with the previous values on reset.</li>
@@ -15,7 +15,7 @@
15
15
  * - **Collects values**: The form always gathers the value of every named, enabled Auro form element inside it, such as `auro-input` or `auro-select`, into one object in `value`.
16
16
  * - **Tracks validity and changes**: The form always reports whether its fields pass validation in `validity`, and whether any field has changed from its starting value in `isInitialState`.
17
17
  * - **Manages submit and reset buttons**: The form always turns on a `button` or `auro-button` with `type="submit"` only while no enabled field is invalid or required but empty, and one with `type="reset"` only when the form has changed or holds a value.
18
- * - **Submits on Enter**: Pressing Enter in a named, enabled form element always runs `submit()`.
18
+ * - **Submits on Enter**: Pressing Enter in a named, enabled form element runs `submit()`, except on the clear button in `auro-input` or `auro-combobox`.
19
19
  * - **Skips disabled fields**: The form always leaves fields with the `disabled` attribute out of `value`, validation, and the `submit` event.
20
20
  *
21
21
  * **Example**
@@ -32,7 +32,7 @@
32
32
  *
33
33
  * @slot default - Named Auro form elements, such as `auro-input` and `auro-select`, plus the submit and reset buttons the form controls. Fields can be nested in other elements, such as a `div` or `fieldset`. {@requiredWhen always} {@category ui}
34
34
  *
35
- * @event input - Fires when a child form element receives user input.
35
+ * @event input - Bubbles up from a child form element when it receives user input; the form doesn't fire `input` itself. `auro-counter-group` doesn't currently bubble its `input` event, so listen for `change` to catch every field.
36
36
  * @event change - Fires when a child form element's value changes, and when the form rebuilds its state, such as after its content changes or a reset.
37
37
  * @event reset - Fires after the form resets. The event's `detail.previousValue` holds the form's values from just before the reset.
38
38
  * @event submit - Fires when the form is submitted and no enabled field is invalid or required but empty. The event's `detail.value` holds the form's current values.
@@ -107,7 +107,7 @@ class AuroLibraryRuntimeUtils {
107
107
  * - **Collects values**: The form always gathers the value of every named, enabled Auro form element inside it, such as `auro-input` or `auro-select`, into one object in `value`.
108
108
  * - **Tracks validity and changes**: The form always reports whether its fields pass validation in `validity`, and whether any field has changed from its starting value in `isInitialState`.
109
109
  * - **Manages submit and reset buttons**: The form always turns on a `button` or `auro-button` with `type="submit"` only while no enabled field is invalid or required but empty, and one with `type="reset"` only when the form has changed or holds a value.
110
- * - **Submits on Enter**: Pressing Enter in a named, enabled form element always runs `submit()`.
110
+ * - **Submits on Enter**: Pressing Enter in a named, enabled form element runs `submit()`, except on the clear button in `auro-input` or `auro-combobox`.
111
111
  * - **Skips disabled fields**: The form always leaves fields with the `disabled` attribute out of `value`, validation, and the `submit` event.
112
112
  *
113
113
  * **Example**
@@ -124,7 +124,7 @@ class AuroLibraryRuntimeUtils {
124
124
  *
125
125
  * @slot default - Named Auro form elements, such as `auro-input` and `auro-select`, plus the submit and reset buttons the form controls. Fields can be nested in other elements, such as a `div` or `fieldset`. {@requiredWhen always} {@category ui}
126
126
  *
127
- * @event input - Fires when a child form element receives user input.
127
+ * @event input - Bubbles up from a child form element when it receives user input; the form doesn't fire `input` itself. `auro-counter-group` doesn't currently bubble its `input` event, so listen for `change` to catch every field.
128
128
  * @event change - Fires when a child form element's value changes, and when the form rebuilds its state, such as after its content changes or a reset.
129
129
  * @event reset - Fires after the form resets. The event's `detail.previousValue` holds the form's values from just before the reset.
130
130
  * @event submit - Fires when the form is submitted and no enabled field is invalid or required but empty. The event's `detail.value` holds the form's current values.
@@ -107,7 +107,7 @@ class AuroLibraryRuntimeUtils {
107
107
  * - **Collects values**: The form always gathers the value of every named, enabled Auro form element inside it, such as `auro-input` or `auro-select`, into one object in `value`.
108
108
  * - **Tracks validity and changes**: The form always reports whether its fields pass validation in `validity`, and whether any field has changed from its starting value in `isInitialState`.
109
109
  * - **Manages submit and reset buttons**: The form always turns on a `button` or `auro-button` with `type="submit"` only while no enabled field is invalid or required but empty, and one with `type="reset"` only when the form has changed or holds a value.
110
- * - **Submits on Enter**: Pressing Enter in a named, enabled form element always runs `submit()`.
110
+ * - **Submits on Enter**: Pressing Enter in a named, enabled form element runs `submit()`, except on the clear button in `auro-input` or `auro-combobox`.
111
111
  * - **Skips disabled fields**: The form always leaves fields with the `disabled` attribute out of `value`, validation, and the `submit` event.
112
112
  *
113
113
  * **Example**
@@ -124,7 +124,7 @@ class AuroLibraryRuntimeUtils {
124
124
  *
125
125
  * @slot default - Named Auro form elements, such as `auro-input` and `auro-select`, plus the submit and reset buttons the form controls. Fields can be nested in other elements, such as a `div` or `fieldset`. {@requiredWhen always} {@category ui}
126
126
  *
127
- * @event input - Fires when a child form element receives user input.
127
+ * @event input - Bubbles up from a child form element when it receives user input; the form doesn't fire `input` itself. `auro-counter-group` doesn't currently bubble its `input` event, so listen for `change` to catch every field.
128
128
  * @event change - Fires when a child form element's value changes, and when the form rebuilds its state, such as after its content changes or a reset.
129
129
  * @event reset - Fires after the form resets. The event's `detail.previousValue` holds the form's values from just before the reset.
130
130
  * @event submit - Fires when the form is submitted and no enabled field is invalid or required but empty. The event's `detail.value` holds the form's current values.
@@ -20,64 +20,64 @@ A single-line text field that lets people type a value, such as a name, email ad
20
20
 
21
21
  ### Properties and attributes
22
22
 
23
- | Properties | Attributes | Modifiers | Type | Default | Category | Relevant when | Description |
24
- | -------------------------------- | -------------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------- | -------- | ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
25
- | a11yActivedescendant | a11yactivedescendant | | string | | a11y | | Sets the ID of the option screen readers announce as active while focus stays in the input,<br>such as the highlighted option in a list (the inner `<input>` element's `aria-activedescendant`). |
26
- | a11yControls | a11ycontrols | | string | | a11y | | Sets the ID of the element the input controls, such as a combobox's list of options<br>(the inner `<input>` element's `aria-controls`). |
27
- | a11yExpanded | a11yexpanded | | boolean | | a11y | | Tells screen readers that the element the input controls, such as a list of options, is open<br>(the inner `<input>` element's `aria-expanded`). |
28
- | a11yRole | a11yrole | | string | | a11y | | Sets the role screen readers announce for the inner `<input>` element, such as `combobox`<br>when the input is part of `auro-combobox` (the input's `role`). |
29
- | activeLabel | activelabel | | boolean | `false` | ui | `layout === 'classic'` | Keeps the label raised above the value, even when the field is empty and doesn't have focus.<br>Applies only to the `classic` layout; the emphasized and snowflake layouts always show the label inside the field. |
30
- | appearance | appearance | | `default` \| `inverse` | `default` | ui | | Sets the color scheme. Use `inverse` on dark backgrounds and `default` on light backgrounds. |
31
- | disabled | disabled | | boolean | `false` | ui | | Turns the input off. A disabled input is shown in a muted style, can't be edited or reached<br>with the keyboard, and doesn't show the clear button. |
32
- | dvInputOnly | dvinputonly | | boolean | `false` | ui | | Keeps the label visible while `displayValue` slot content is shown in place of the value.<br>Without it, the `displayValue` content hides both the label and the value. |
33
- | icon | icon | | boolean | `false` | ui | `type === 'credit-card'` | Shows a card icon left of the value that changes to the detected card brand, such as Visa, as the user types.<br>Applies only when `type="credit-card"`, and the emphasized layouts don't show it. |
34
- | layout | layout | | `classic` \| `emphasized` \| `emphasized-left` \| `emphasized-right` \| `snowflake` \| `snowflake-left` \| `snowflake-right` | `classic` | ui | | Sets how the label and value are arranged. `classic` raises the label above the value<br>when the field has focus or a value; the `emphasized` and `snowflake` layouts always show the label inside the field. |
35
- | nested | nested | | boolean | | ui | | Marks the input as placed inside another component, such as the trigger of `auro-dropdown`.<br>Does not currently change how the input looks or behaves; use `simple` to remove the border. |
36
- | placeholder | placeholder | | string | | ui | | Sets hint text shown in the empty field, such as `John Doe`.<br>When not set and `type="date"`, the input shows the date format, such as `MM/DD/YYYY`. |
37
- | shape | shape | | `box` \| `classic` \| `pill` \| `pill-left` \| `pill-right` \| `rounded` \| `snowflake` | `classic` | ui | | Sets the shape of the field's border. The emphasized layouts support `pill`, `pill-left`,<br>and `pill-right`, and the snowflake layout uses `snowflake`. |
38
- | simple | simple | | boolean | | ui | | Removes the field's border and background, such as for an input placed inside another component. |
39
- | size | size | | `xs` \| `sm` \| `md` \| `lg` \| `xl` | `lg` | ui | | Sets the field's size. The `classic` shape is the same height at every size, and the<br>emphasized layouts support only `xl`. |
40
- | onDark | ondark | | boolean | `false` | ui | | Deprecated: Use `appearance="inverse"` instead.<br>Styles the input for a dark background. |
41
- | autocapitalize | autocapitalize | | `off` \| `none` \| `on` \| `sentences` \| `words` \| `characters` | | behavior | | Sets whether mobile keyboards capitalize text as the user types, such as `words` for names<br>(the input's `autocapitalize`). Does not currently apply: the input clears this value on every<br>update, unless `spellcheck="false"`, which sets it to `none`. |
42
- | autocomplete | autocomplete | | string | | behavior | | Sets what the browser can suggest when filling in the field, such as `off` to turn off<br>autofill suggestions (the input's `autocomplete`). Only `autocomplete="off"` is currently supported. |
43
- | autocorrect | autocorrect | | `on` \| `off` | | behavior | | Sets whether Safari on iOS corrects words as the user types. Use `off` for names, codes, and<br>other text that isn't made of dictionary words. Always `off` when `spellcheck="false"`. |
44
- | customValidityTypeEmail | customvaliditytypeemail | | string | | behavior | `!noValidate` | Does not currently change any message. To set the error message for an invalid email address,<br>use `setCustomValidityForType`. |
45
- | error | error | | string | | behavior | | Shows an error that stays until you remove the attribute, and sets `validity` to `customError`.<br>The attribute value is the error message, unless `setCustomValidityCustomError` or `setCustomValidity` is set. |
46
- | errorMessage | errormessage | | string | | behavior | | Holds the error message shown below the field for the current `validity`.<br>Validation sets it, so read it instead of setting it. |
47
- | format | format | | string | | behavior | | Sets the pattern the value is formatted to as the user types, such as `mm/dd/yyyy` for a date or<br>`+1 (000) 000-0000` for a phone number. Outside dates, `0` stands for a digit, `a` for a letter, and `*` for any character.<br>For `type="date"`, it replaces the format that `locale` would set. |
48
- | hasFocus | | | boolean | | behavior | | Reports whether the input currently has focus. The input updates it, so read it instead of setting it. |
49
- | hasValue | | | boolean | `false` | behavior | | Reports whether the input currently has a value. The input updates it, so read it instead of setting it. |
50
- | id | id | | string | | behavior | | Sets a unique ID for the element, such as `email`. The inner `<input>` element uses this ID<br>followed by `-input`, such as `email-input`. |
51
- | inputmode | inputmode | | string | | behavior | | Sets which on-screen keyboard mobile devices show, such as `numeric` for digits only or `email`<br>(the input's `inputmode`). Defaults to `numeric` when `type` is `number`, `tel`, `credit-card`, or `date`. |
52
- | lang | lang | | string | | behavior | | Sets the language of the input's built-in help text and error messages, such as `es` for Spanish.<br>Only `es` changes the text; other values use English. When not set, the input follows the page's `lang`. |
53
- | locale | locale | | string | `en-US` | behavior | | Sets the region whose date format `type="date"` uses, such as `en-GB` for `dd/mm/yyyy`.<br>When not set, the input uses the nearest ancestor's `data-locale` attribute, or `en-US`. |
54
- | max | max | | string | `undefined` | behavior | | Sets the largest value allowed, such as `10` for a number or `2025-12-31` for a date.<br>Applies only when `type` is `number`, or `date` with a full date format; write dates in ISO format (`YYYY-MM-DD`). |
55
- | maxLength | maxlength | | number | `undefined` | behavior | | Sets the most characters the user can enter, as a whole number `0` or higher.<br>Don't set it when `type` is `credit-card`, `tel`, or `date`, because those types set their own length. |
56
- | maxObject | | readonly | Date \| undefined | | behavior | | Gets `max` as a `Date` object, or `undefined` when `max` isn't a valid ISO date (`YYYY-MM-DD`). |
57
- | min | min | | string | `undefined` | behavior | | Sets the smallest value allowed, such as `1` for a number or `2024-01-01` for a date.<br>Applies only when `type` is `number`, or `date` with a full date format; write dates in ISO format (`YYYY-MM-DD`). |
58
- | minLength | minlength | | number | `undefined` | behavior | | Sets the fewest characters the value needs to be valid, as a whole number no larger than `maxlength`.<br>An empty value isn't checked against it; use `required` for that. |
59
- | minObject | | readonly | Date \| undefined | | behavior | | Gets `min` as a `Date` object, or `undefined` when `min` isn't a valid ISO date (`YYYY-MM-DD`). |
60
- | name | name | | string | | behavior | | Sets the field name `auro-form` uses for this input's value, such as `email`<br>(the inner `<input>` element's `name`). |
61
- | noValidate | novalidate | | boolean | `false` | behavior | | Turns off validation when the input loses focus. Validation still runs when code sets the value<br>or when `validateOnInput` is set. |
62
- | pattern | pattern | | string | | behavior | | Sets a regular expression the whole value must match to be valid, such as `[a-z]{1,15}`<br>(the input's `pattern`). Use `setCustomValidityPatternMismatch` to set the error message. |
63
- | readonly | readonly | | boolean | | behavior | | Stops the user from editing the value, while code can still set it.<br>A read-only input can still get focus, and doesn't show the clear button. |
64
- | required | required | | boolean | `false` | behavior | `!noValidate` | Makes the input invalid when it's left empty, and removes the " (optional)" text after the label.<br>Use `setCustomValidityValueMissing` to set the error message. |
65
- | setCustomValidity | setcustomvalidity | | string | | behavior | `!noValidate` | Sets one error message for every kind of validation error. When set, it replaces the messages from<br>`error` and every other `setCustomValidity*` property. |
66
- | setCustomValidityBadInput | setcustomvaliditybadinput | | string | | behavior | `!noValidate` | Sets the error message for `validity="badInput"`. Does not currently change any message,<br>because the input never reports `badInput`. |
67
- | setCustomValidityCustomError | setcustomvaliditycustomerror | | string | | behavior | `!noValidate` | Sets the error message shown while the `error` attribute is set, in place of the `error` value. |
68
- | setCustomValidityForType | setcustomvalidityfortype | | string | `undefined` | behavior | `!noValidate` | Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,<br>an incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message. |
69
- | setCustomValidityPatternMismatch | setcustomvaliditypatternmismatch | | string | | behavior | `!noValidate` | Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.<br>For `pattern`, it does not currently work when set only as a property, so set the attribute instead. |
70
- | setCustomValidityRangeOverflow | setcustomvalidityrangeoverflow | | string | | behavior | `!noValidate` | Sets the error message shown when the value is above `max`. |
71
- | setCustomValidityRangeUnderflow | setcustomvalidityrangeunderflow | | string | | behavior | `!noValidate` | Sets the error message shown when the value is below `min`. |
72
- | setCustomValidityTooLong | setcustomvaliditytoolong | | string | | behavior | `!noValidate` | Sets the error message shown when the value is longer than `maxlength`.<br>Does not currently work when set only as a property, so set the attribute instead. |
73
- | setCustomValidityTooShort | setcustomvaliditytooshort | | string | | behavior | `!noValidate` | Sets the error message shown when the value is shorter than `minlength`.<br>Does not currently work when set only as a property, so set the attribute instead. |
74
- | setCustomValidityValueMissing | setcustomvalidityvaluemissing | | string | | behavior | `!noValidate` | Sets the error message shown when a `required` input is left empty. |
75
- | spellcheck | spellcheck | | `true` \| `false` | | behavior | | Sets whether the browser checks the value for spelling mistakes (the input's `spellcheck`).<br>Use `false` for codes, names, and other text that isn't made of dictionary words; it also sets `autocorrect` to `off`<br>and `autocapitalize` to `none`. Password inputs always use `false`. |
76
- | type | type | | `text` \| `password` \| `email` \| `credit-card` \| `tel` \| `number` \| `date` | `text` | behavior | | Sets the kind of value the input expects, which controls its formatting, validation, and mobile keyboard.<br>`credit-card`, `tel`, and `date` format the value as the user types, and `password` hides the text and adds a show/hide button.<br>The show/hide button appears only in the `classic` layout. |
77
- | validateOnInput | validateoninput | | boolean | | behavior | | Validates the value as the user types, instead of waiting until the input loses focus.<br>Use it with `pattern` when the user needs feedback before leaving the field. |
78
- | validity | validity | | string | | behavior | | Reports the result of the last validation, such as `valid`, `valueMissing`, or `patternMismatch`.<br>Validation sets it, so read it instead of setting it. |
79
- | value | value | | string | `undefined` | behavior | | Sets or gets the input's current value. For `type="date"` with a full date format, the value is an ISO date,<br>such as `2025-12-31`, whatever format the user sees; partial formats, such as `mm/yy`, use the text shown in the field. |
80
- | valueObject | | readonly | Date \| undefined | | behavior | | Gets `value` as a `Date` object, or `undefined` when `value` isn't a valid ISO date (`YYYY-MM-DD`). |
23
+ | Properties | Attributes | Modifiers | Type | Default | Category | Relevant when | Description |
24
+ | -------------------------------- | -------------------------------- | --------- | ---------------------------------------------------------------------------------------------------------------------------- | ----------- | -------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
25
+ | a11yActivedescendant | a11yactivedescendant | | string | | a11y | | Sets the ID of the option screen readers announce as active while focus stays in the input,<br>such as the highlighted option in a list (the inner `<input>` element's `aria-activedescendant`). |
26
+ | a11yControls | a11ycontrols | | string | | a11y | | Sets the ID of the element the input controls, such as a combobox's list of options<br>(the inner `<input>` element's `aria-controls`). |
27
+ | a11yExpanded | a11yexpanded | | boolean | | a11y | | Tells screen readers that the element the input controls, such as a list of options, is open<br>(the inner `<input>` element's `aria-expanded`). |
28
+ | a11yRole | a11yrole | | string | | a11y | | Sets the role screen readers announce for the inner `<input>` element, such as `combobox`<br>when the input is part of `auro-combobox` (the input's `role`). |
29
+ | activeLabel | activelabel | | boolean | `false` | ui | `layout === 'classic'` | Keeps the label raised above the value, even when the field is empty and doesn't have focus.<br>Applies only to the `classic` layout; the emphasized and snowflake layouts always show the label inside the field. |
30
+ | appearance | appearance | | `default` \| `inverse` | `default` | ui | | Sets the color scheme. Use `inverse` on dark backgrounds and `default` on light backgrounds. |
31
+ | disabled | disabled | | boolean | `false` | ui | | Turns the input off. A disabled input is shown in a muted style, can't be edited or reached<br>with the keyboard, and doesn't show the clear button. |
32
+ | dvInputOnly | dvinputonly | | boolean | `false` | ui | | Keeps the label visible while `displayValue` slot content is shown in place of the value.<br>Without it, the `displayValue` content hides both the label and the value. |
33
+ | icon | icon | | boolean | `false` | ui | `type === 'credit-card'` | Shows a card icon left of the value that changes to the detected card brand, such as Visa, as the user types.<br>Applies only when `type="credit-card"`, and the emphasized layouts don't show it. |
34
+ | layout | layout | | `classic` \| `emphasized` \| `emphasized-left` \| `emphasized-right` \| `snowflake` \| `snowflake-left` \| `snowflake-right` | `classic` | ui | | Sets how the label and value are arranged. `classic` raises the label above the value<br>when the field has focus or a value; the `emphasized` and `snowflake` layouts always show the label inside the field. |
35
+ | nested | nested | | boolean | | ui | | Marks the input as placed inside another component, such as the trigger of `auro-dropdown`.<br>Does not currently change how the input looks or behaves; use `simple` to remove the border. |
36
+ | placeholder | placeholder | | string | | ui | | Sets hint text shown in the empty field, such as `John Doe`.<br>When not set and `type="date"`, the input shows the date format, such as `MM/DD/YYYY`. |
37
+ | shape | shape | | `box` \| `classic` \| `pill` \| `pill-left` \| `pill-right` \| `rounded` \| `snowflake` | `classic` | ui | | Sets the shape of the field's border. `classic` and `rounded` have slightly rounded corners, `box` has square corners,<br>and `pill` has fully rounded ends, or only the left or right end for `pill-left` and `pill-right`.<br>The emphasized layouts support `pill`, `pill-left`, and `pill-right`, and the snowflake layout uses `snowflake`. |
38
+ | simple | simple | | boolean | | ui | | Removes the field's border and background, such as for an input placed inside another component. |
39
+ | size | size | | `xs` \| `sm` \| `md` \| `lg` \| `xl` | `lg` | ui | | Sets the field's height. The `classic` and `snowflake` shapes are the same height at every size,<br>and the emphasized layouts support only `xl`. |
40
+ | onDark | ondark | | boolean | `false` | ui | | Deprecated: Use `appearance="inverse"` instead.<br>Styles the input for a dark background. |
41
+ | autocapitalize | autocapitalize | | `off` \| `none` \| `on` \| `sentences` \| `words` \| `characters` | | behavior | | Sets whether mobile keyboards capitalize text as the user types, such as `words` for names<br>(the input's `autocapitalize`). Does not currently apply: the input clears this value on every<br>update, unless `spellcheck="false"`, which sets it to `none`. |
42
+ | autocomplete | autocomplete | | string | | behavior | | Sets what the browser can suggest when filling in the field, such as `off` to turn off<br>autofill suggestions (the input's `autocomplete`). Only `autocomplete="off"` is currently supported. |
43
+ | autocorrect | autocorrect | | `on` \| `off` | | behavior | | Sets whether Safari on iOS corrects words as the user types. Use `off` for names, codes, and<br>other text that isn't made of dictionary words. Always `off` when `spellcheck="false"`. |
44
+ | customValidityTypeEmail | customvaliditytypeemail | | string | | behavior | `!noValidate` | Does not currently change any message. To set the error message for an invalid email address,<br>use `setCustomValidityForType`. |
45
+ | error | error | | string | | behavior | | Shows an error that stays until you remove the attribute, and sets `validity` to `customError`.<br>The attribute value is the error message, unless `setCustomValidityCustomError` or `setCustomValidity` is set. |
46
+ | errorMessage | errormessage | | string | | behavior | | Holds the error message shown below the field for the current `validity`.<br>Validation sets it, so read it instead of setting it. |
47
+ | format | format | | string | | behavior | | Sets the pattern the value is formatted to as the user types, such as `mm/dd/yyyy` for a date or<br>`+1 (000) 000-0000` for a phone number. Outside dates, `0` stands for a digit, `a` for a letter, and `*` for any character.<br>For `type="date"`, it replaces the format that `locale` would set. |
48
+ | hasFocus | | | boolean | | behavior | | Reports whether the input currently has focus. The input updates it, so read it instead of setting it. |
49
+ | hasValue | | | boolean | `false` | behavior | | Reports whether the input currently has a value. The input updates it, so read it instead of setting it. |
50
+ | id | id | | string | | behavior | | Sets a unique ID for the element, such as `email`. The inner `<input>` element uses this ID<br>followed by `-input`, such as `email-input`. |
51
+ | inputmode | inputmode | | string | | behavior | | Sets which on-screen keyboard mobile devices show, such as `numeric` for digits only or `email`<br>(the input's `inputmode`). Defaults to `numeric` when `type` is `number`, `tel`, `credit-card`, or `date`. |
52
+ | lang | lang | | string | | behavior | | Sets the language of the input's built-in help text and error messages, such as `es` for Spanish.<br>Only `es` changes the text; other values use English. When not set, the input follows the page's `lang`. |
53
+ | locale | locale | | string | `en-US` | behavior | | Sets the region whose date format `type="date"` uses, such as `en-GB` for `dd/mm/yyyy`.<br>When not set, the input uses the nearest ancestor's `data-locale` attribute, or `en-US`. |
54
+ | max | max | | string | `undefined` | behavior | | Sets the largest value allowed, such as `10` for a number or `2025-12-31` for a date.<br>Applies only when `type` is `number`, or `date` with a full date format; write dates in ISO format (`YYYY-MM-DD`). |
55
+ | maxLength | maxlength | | number | `undefined` | behavior | | Sets the most characters the user can enter, as a whole number `0` or higher.<br>Don't set it when `type` is `credit-card`, `tel`, or `date`, because those types set their own length. |
56
+ | maxObject | | readonly | Date \| undefined | | behavior | | Gets `max` as a `Date` object, or `undefined` when `max` isn't a valid ISO date (`YYYY-MM-DD`). |
57
+ | min | min | | string | `undefined` | behavior | | Sets the smallest value allowed, such as `1` for a number or `2024-01-01` for a date.<br>Applies only when `type` is `number`, or `date` with a full date format; write dates in ISO format (`YYYY-MM-DD`). |
58
+ | minLength | minlength | | number | `undefined` | behavior | | Sets the fewest characters the value needs to be valid, as a whole number no larger than `maxlength`.<br>An empty value isn't checked against it; use `required` for that. |
59
+ | minObject | | readonly | Date \| undefined | | behavior | | Gets `min` as a `Date` object, or `undefined` when `min` isn't a valid ISO date (`YYYY-MM-DD`). |
60
+ | name | name | | string | | behavior | | Sets the field name `auro-form` uses for this input's value, such as `email`<br>(the inner `<input>` element's `name`). |
61
+ | noValidate | novalidate | | boolean | `false` | behavior | | Turns off validation when the input loses focus. Validation still runs when code sets the value<br>or when `validateOnInput` is set. |
62
+ | pattern | pattern | | string | | behavior | | Sets a regular expression the whole value must match to be valid, such as `[a-z]{1,15}`<br>(the input's `pattern`). Use `setCustomValidityPatternMismatch` to set the error message. |
63
+ | readonly | readonly | | boolean | | behavior | | Stops the user from editing the value, while code can still set it.<br>A read-only input can still get focus, and doesn't show the clear button. |
64
+ | required | required | | boolean | `false` | behavior | `!noValidate` | Makes the input invalid when it's left empty, and removes the " (optional)" text after the label.<br>Use `setCustomValidityValueMissing` to set the error message. |
65
+ | setCustomValidity | setcustomvalidity | | string | | behavior | `!noValidate` | Sets one error message for every kind of validation error. When set, it replaces the messages from<br>`error` and every other `setCustomValidity*` property. |
66
+ | setCustomValidityBadInput | setcustomvaliditybadinput | | string | | behavior | `!noValidate` | Sets the error message for `validity="badInput"`. Does not currently change any message,<br>because the input never reports `badInput`. |
67
+ | setCustomValidityCustomError | setcustomvaliditycustomerror | | string | | behavior | `!noValidate` | Sets the error message shown while the `error` attribute is set, in place of the `error` value. |
68
+ | setCustomValidityForType | setcustomvalidityfortype | | string | `undefined` | behavior | `!noValidate` | Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,<br>an incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message. |
69
+ | setCustomValidityPatternMismatch | setcustomvaliditypatternmismatch | | string | | behavior | `!noValidate` | Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.<br>For `pattern`, it does not currently work when set only as a property, so set the attribute instead. |
70
+ | setCustomValidityRangeOverflow | setcustomvalidityrangeoverflow | | string | | behavior | `!noValidate` | Sets the error message shown when the value is above `max`. |
71
+ | setCustomValidityRangeUnderflow | setcustomvalidityrangeunderflow | | string | | behavior | `!noValidate` | Sets the error message shown when the value is below `min`. |
72
+ | setCustomValidityTooLong | setcustomvaliditytoolong | | string | | behavior | `!noValidate` | Sets the error message shown when the value is longer than `maxlength`.<br>Does not currently work when set only as a property, so set the attribute instead. |
73
+ | setCustomValidityTooShort | setcustomvaliditytooshort | | string | | behavior | `!noValidate` | Sets the error message shown when the value is shorter than `minlength`.<br>Does not currently work when set only as a property, so set the attribute instead. |
74
+ | setCustomValidityValueMissing | setcustomvalidityvaluemissing | | string | | behavior | `!noValidate` | Sets the error message shown when a `required` input is left empty. |
75
+ | spellcheck | spellcheck | | `true` \| `false` | | behavior | | Sets whether the browser checks the value for spelling mistakes (the input's `spellcheck`).<br>Use `false` for codes, names, and other text that isn't made of dictionary words; it also sets `autocorrect` to `off`<br>and `autocapitalize` to `none`. Password inputs always use `false`. |
76
+ | type | type | | `text` \| `password` \| `email` \| `credit-card` \| `tel` \| `number` \| `date` | `text` | behavior | | Sets the kind of value the input expects, which controls its formatting, validation, and mobile keyboard.<br>`credit-card`, `tel`, and `date` format the value as the user types, and `password` hides the text and adds a show/hide button.<br>The show/hide button appears only in the `classic` layout. |
77
+ | validateOnInput | validateoninput | | boolean | | behavior | | Validates the value as the user types, instead of waiting until the input loses focus.<br>Use it with `pattern` when the user needs feedback before leaving the field. |
78
+ | validity | validity | | string | | behavior | | Reports the result of the last validation, such as `valid`, `valueMissing`, or `patternMismatch`.<br>Validation sets it, so read it instead of setting it. |
79
+ | value | value | | string | `undefined` | behavior | | Sets or gets the input's current value. For `type="date"` with a full date format, the value is an ISO date,<br>such as `2025-12-31`, whatever format the user sees; partial formats, such as `mm/yy`, use the text shown in the field. |
80
+ | valueObject | | readonly | Date \| undefined | | behavior | | Gets `value` as a `Date` object, or `undefined` when `value` isn't a valid ISO date (`YYYY-MM-DD`). |
81
81
 
82
82
  ### Methods
83
83
 
@@ -1,7 +1,7 @@
1
1
  <auro-header level="1">CSS only with native input</auro-header>
2
2
  <p>When you can't use the <code>&lt;auro-input&gt;</code> web component, style a native HTML <code>&lt;input&gt;</code> element with the Auro Design System tokens to approximate how <code>auro-input</code> looks. Unlike <auro-hyperlink href="https://auro.alaskaair.com/components/auro/hyperlink/css-only" target="_blank">auro-hyperlink</auro-hyperlink>, <auro-hyperlink href="https://alaskaairlines.github.io/WebCoreStyleSheets/" target="_blank">Web Core Style Sheets</auro-hyperlink> doesn't provide a prebuilt <code>.input</code> or <code>.form-*</code> class, so you write the styles yourself with Auro design tokens.</p>
3
3
  <auro-header level="2">Styling a native input</auro-header>
4
- <p>Reset and restyle the native input with the Auro design tokens published by <auro-hyperlink href="https://alaskaairlines.github.io/WebCoreStyleSheets/" target="_blank">@aurodesignsystem/design-tokens</auro-hyperlink>. The pattern below replicates the border, focus ring, padding, label, and helper text used by <code>auro-input</code>.</p>
4
+ <p>Reset and restyle the native input with the Auro design tokens published by <auro-hyperlink href="https://github.com/AlaskaAirlines/AuroDesignTokens" target="_blank">@aurodesignsystem/design-tokens</auro-hyperlink>. The pattern below replicates the border, focus ring, padding, label, and helper text used by <code>auro-input</code>.</p>
5
5
  <pre><code>/* Color tokens */
6
6
  @import "./node_modules/@aurodesignsystem/design-tokens/dist/themes/alaska/CSSCustomProperties--alaska.css";
7
7
  /* Size, border-radius, and typography tokens */
@@ -81,7 +81,7 @@
81
81
  <auro-header level="3">Credit-card formatting and detection</auro-header>
82
82
  <p><code>auro-input</code> with <code>type="credit-card"</code> auto-detects Visa, Mastercard, American Express, Discover, Diners Club, JCB, China UnionPay, and Alaska Airlines cards from the first digits, applies the correct digit grouping, such as 4-4-4-4 for Visa or 4-6-5 for Amex, and shows the matching card brand icon when the <code>icon</code> attribute is set. None of this is available natively.</p>
83
83
  <auro-header level="3">Password show/hide toggle</auro-header>
84
- <p><code>auro-input</code> with <code>type="password"</code> includes an accessible show/hide button, named with the <code>ariaLabel.password.show</code> and <code>ariaLabel.password.hide</code> slots. A native password input only hides the value, so you must build the toggle button, swap the <code>type</code> attribute, and manage its accessible name yourself.</p>
84
+ <p>In the <code>classic</code> layout, <code>auro-input</code> with <code>type="password"</code> includes an accessible show/hide button, named with the <code>ariaLabel.password.show</code> and <code>ariaLabel.password.hide</code> slots. A native password input only hides the value, so you must build the toggle button, swap the <code>type</code> attribute, and manage its accessible name yourself.</p>
85
85
  <auro-header level="3">Clear button</auro-header>
86
86
  <p><code>auro-input</code> renders an accessible clear button when the field has a value, named with the <code>ariaLabel.clear</code> slot. Native inputs don't provide a clear control beyond the browser's built-in (and inconsistently styled) <code>type="search"</code> affordance.</p>
87
87
  <auro-header level="3">Custom validation messages</auro-header>
@@ -89,9 +89,9 @@
89
89
  <auro-header level="3">Format types</auro-header>
90
90
  <p><code>auro-input</code> has dedicated <code>type</code> values for <code>credit-card</code>, <code>tel</code>, and <code>date</code>, each applying the correct mask and validation. For dates, the <code>format</code> attribute sets the order of the parts, such as <code>mm/dd/yyyy</code>, <code>yyyy/mm/dd</code>, or <code>mm/yy</code>. With native HTML, you're limited to the standard input types and must implement format-specific behavior by hand.</p>
91
91
  <auro-header level="3">Floating and dynamic labels</auro-header>
92
- <p><code>auro-input</code> floats the label above the field when it has focus or a value, and automatically associates slotted label content with the underlying input. With native HTML you must wire up <code>for</code>/<code>id</code> attributes and author the floating-label animation yourself.</p>
92
+ <p>In the <code>classic</code> layout, <code>auro-input</code> floats the label above the field when it has focus or a value. In every layout, it automatically associates slotted label content with the underlying input. With native HTML you must wire up <code>for</code>/<code>id</code> attributes and author the floating-label animation yourself.</p>
93
93
  <auro-header level="3">Display value slot</auro-header>
94
- <p><code>auro-input</code> supports a <code>displayValue</code> slot that renders custom HTML in place of the raw value when the input doesn't have focus. It's useful for masked account numbers or formatted currency. Native inputs always show the raw value and have no equivalent.</p>
94
+ <p><code>auro-input</code> supports a <code>displayValue</code> slot that renders custom HTML in place of the raw value when the input has a value and doesn't have focus. It's useful for masked account numbers or formatted currency. Native inputs always show the raw value and have no equivalent.</p>
95
95
  <auro-header level="3">Layout and shape variants</auro-header>
96
96
  <p><code>auro-input</code> supports the <code>classic</code>, <code>emphasized</code>, and <code>snowflake</code> layouts, as well as <code>shape</code> variants (<code>box</code>, <code>pill</code>, <code>pill-left</code>, and <code>pill-right</code>). It also has a bordered default and a borderless <code>simple</code> mode. With native HTML you must author each variant's CSS yourself.</p>
97
97
  <auro-header level="3">Icons and accents</auro-header>
@@ -42,7 +42,7 @@
42
42
  <section>
43
43
  <auro-header level="2" id="appearance">Appearance</auro-header>
44
44
  <auro-header level="3" id="activeLabel">Active label</auro-header>
45
- <p>Use the <code>activeLabel</code> attribute to make the label stay fixed in the active position. This applies to the classic/default layout only; the emphasized and snowflake layouts always render the label inside the field and are unaffected.</p>
45
+ <p>Use the <code>activeLabel</code> attribute to make the label stay fixed in the active position. This applies only to the default <code>classic</code> layout; the emphasized and snowflake layouts always render the label inside the field and are unaffected.</p>
46
46
  <div class="exampleWrapper">
47
47
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/active-label.html) -->
48
48
  <!-- The below content is automatically added from ../apiExamples/active-label.html -->
@@ -145,7 +145,7 @@
145
145
  </auro-input>
146
146
  <auro-header level="4">Display value slot content with <code>dvInputOnly</code></auro-header>
147
147
  <auro-input dvInputOnly value="Hello World">
148
- <span slot="label">With dvInputOnly</span>
148
+ <span slot="label">With <code>dvInputOnly</code></span>
149
149
  <span slot="displayValue">✨ Custom display ✨</span>
150
150
  </auro-input>
151
151
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -161,7 +161,7 @@
161
161
  &lt;/auro-input&gt;
162
162
  &lt;auro-header level="4"&gt;Display value slot content with &lt;code&gt;dvInputOnly&lt;/code&gt;&lt;/auro-header&gt;
163
163
  &lt;auro-input dvInputOnly value="Hello World"&gt;
164
- &lt;span slot="label"&gt;With dvInputOnly&lt;/span&gt;
164
+ &lt;span slot="label"&gt;With &lt;code&gt;dvInputOnly&lt;/code&gt;&lt;/span&gt;
165
165
  &lt;span slot="displayValue"&gt;✨ Custom display ✨&lt;/span&gt;
166
166
  &lt;/auro-input&gt;</code></pre>
167
167
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -253,7 +253,7 @@
253
253
  + &lt;span slot="ariaLabel.password.hide"&gt;Passwort verbergen&lt;/span&gt;
254
254
  &lt;/auro-input&gt;</code></pre>
255
255
  <!-- AURO-GENERATED-CONTENT:END -->
256
- <p class="note"><strong>Note:</strong> The input doesn't translate the messages you set with the <code>setCustomValidity*</code> attributes either, so supply translated text when you use them. The built-in help text and error messages follow <code>lang</code>, which has Spanish (<code>es</code>) and English text.</p>
256
+ <p class="note"><strong>Note:</strong> The input doesn't translate the messages you set with the <code>setCustomValidity*</code> attributes either, so supply translated text when you use them. The built-in help text and the built-in messages for a value that doesn't fit the <code>type</code> follow <code>lang</code>, which has Spanish (<code>es</code>) and English text. Other built-in error messages come from the browser, except "Invalid Date Format Entered", which is always in English.</p>
257
257
  <auro-header level="4" id="localizationDateFormatting">Date formatting</auro-header>
258
258
  <p>When <code>type="date"</code> is set, the <code>locale</code> attribute sets the date format the input uses as the user types. Setting <code>locale</code> picks the region's format from the browser's <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl" target="_blank">Intl</auro-hyperlink> API, such as <code>mm/dd/yyyy</code> for <code>en-US</code>, <code>dd.mm.yyyy</code> for <code>de-DE</code>, and <code>yyyy/mm/dd</code> for <code>ja-JP</code>, so you don't need to set <code>format</code>.</p>
259
259
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale.html) -->
@@ -321,7 +321,7 @@
321
321
  <div data-locale="de-DE">
322
322
  <auro-input type="date">
323
323
  <span slot="ariaLabel.clear">Datum löschen</span>
324
- <span slot="label">Abreisedatum (geerbt aus `data-locale="de-DE"`)</span>
324
+ <span slot="label">Abreisedatum (geerbt aus <code>data-locale="de-DE"</code>)</span>
325
325
  <span slot="helpText">Hilfetext</span>
326
326
  <span slot="optionalLabel">(freiwillig)</span>
327
327
  </auro-input>
@@ -361,7 +361,7 @@
361
361
  &lt;div data-locale="de-DE"&gt;
362
362
  &lt;auro-input type="date"&gt;
363
363
  &lt;span slot="ariaLabel.clear"&gt;Datum löschen&lt;/span&gt;
364
- &lt;span slot="label"&gt;Abreisedatum (geerbt aus `data-locale="de-DE"`)&lt;/span&gt;
364
+ &lt;span slot="label"&gt;Abreisedatum (geerbt aus &lt;code&gt;data-locale="de-DE"&lt;/code&gt;)&lt;/span&gt;
365
365
  &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
366
366
  &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
367
367
  &lt;/auro-input&gt;
@@ -377,7 +377,7 @@
377
377
  <!-- The below content is automatically added from ./../apiExamples/optional-label.html -->
378
378
  <auro-input placeholder="John Doe">
379
379
  <span slot="label">Full name</span>
380
- <span slot="optionalLabel"> - custom optional text</span>
380
+ <span slot="optionalLabel"> (not required)</span>
381
381
  <span slot="helpText">Please enter your full name.</span>
382
382
  </auro-input>
383
383
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -388,7 +388,7 @@
388
388
  <!-- The below code snippet is automatically added from ./../apiExamples/optional-label.html -->
389
389
  <pre class="language-html"><code class="language-html">&lt;auro-input placeholder="John Doe"&gt;
390
390
  &lt;span slot="label"&gt;Full name&lt;/span&gt;
391
- &lt;span slot="optionalLabel"&gt; - custom optional text&lt;/span&gt;
391
+ &lt;span slot="optionalLabel"&gt; (not required)&lt;/span&gt;
392
392
  &lt;span slot="helpText"&gt;Please enter your full name.&lt;/span&gt;
393
393
  &lt;/auro-input&gt;</code></pre>
394
394
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -529,7 +529,7 @@
529
529
  <div class="exampleWrapper">
530
530
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity.html) -->
531
531
  <!-- The below content is automatically added from ../apiExamples/set-custom-validity.html -->
532
- <auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
532
+ <auro-input required minlength="3" setCustomValidity="Please enter your full name, with at least 3 characters.">
533
533
  <span slot="label">Full name</span>
534
534
  <span slot="helpText">Please enter your full name.</span>
535
535
  </auro-input>
@@ -539,7 +539,7 @@
539
539
  <span slot="trigger">See code</span>
540
540
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity.html) -->
541
541
  <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity.html -->
542
- <pre class="language-html"><code class="language-html">&lt;auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required)."&gt;
542
+ <pre class="language-html"><code class="language-html">&lt;auro-input required minlength="3" setCustomValidity="Please enter your full name, with at least 3 characters."&gt;
543
543
  &lt;span slot="label"&gt;Full name&lt;/span&gt;
544
544
  &lt;span slot="helpText"&gt;Please enter your full name.&lt;/span&gt;
545
545
  &lt;/auro-input&gt;</code></pre>
@@ -945,7 +945,7 @@
945
945
  &lt;/auro-input&gt;</code></pre>
946
946
  <!-- AURO-GENERATED-CONTENT:END -->
947
947
  </auro-accordion>
948
- <auro-header level="3" id="noValidate">noValidate</auro-header>
948
+ <auro-header level="3" id="noValidate">No validation</auro-header>
949
949
  <p>When a field is <code>required</code> but shouldn't be validated when it loses focus, use the <code>noValidate</code> attribute. Validation still runs when code sets the value or when <code>validateOnInput</code> is set.</p>
950
950
  <div class="exampleWrapper">
951
951
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/no-validate.html) -->
@@ -10188,6 +10188,9 @@ function cleanEscapedString(input) {
10188
10188
  return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
10189
10189
  }
10190
10190
 
10191
+ /**
10192
+ * Helpers that set up input masks and convert between the text shown in the field, `Date` objects, and ISO date strings (`YYYY-MM-DD`), for one locale and date format.
10193
+ */
10191
10194
  class AuroInputUtilities {
10192
10195
 
10193
10196
  /**
@@ -10207,7 +10210,17 @@ class AuroInputUtilities {
10207
10210
  } else {
10208
10211
  this.locale = 'en-US';
10209
10212
  }
10213
+
10214
+ /**
10215
+ * Sets the date format to use instead of the locale's format, such as `mm/dd/yyyy`. `updateFormat()` also sets it.
10216
+ * @type {string|undefined}
10217
+ */
10210
10218
  this.overrideFormat = config.format;
10219
+
10220
+ /**
10221
+ * The `Intl.DateTimeFormat` date formatter for the helpers' locale. The helpers don't currently use it.
10222
+ * @type {Intl.DateTimeFormat}
10223
+ */
10211
10224
  this.formatter = new Intl.DateTimeFormat(this.locale);
10212
10225
 
10213
10226
  // Bindings - many of these are passed into IMask callbacks,
@@ -10638,7 +10651,7 @@ class BaseInput extends AuroElement {
10638
10651
  // The initial-load focus theft was caused by the static `autofocus`
10639
10652
  // attribute on the bib input (now conditional), not by delegatesFocus.
10640
10653
  /**
10641
- * Lit's options for creating the shadow root.
10654
+ * Gets the options Lit uses to create the shadow root.
10642
10655
  * @internal
10643
10656
  */
10644
10657
  static get shadowRootOptions() {
@@ -10798,8 +10811,9 @@ class BaseInput extends AuroElement {
10798
10811
  },
10799
10812
 
10800
10813
  /**
10801
- * Sets the shape of the field's border. The emphasized layouts support `pill`, `pill-left`,
10802
- * and `pill-right`, and the snowflake layout uses `snowflake`.
10814
+ * Sets the shape of the field's border. `classic` and `rounded` have slightly rounded corners, `box` has square corners,
10815
+ * and `pill` has fully rounded ends, or only the left or right end for `pill-left` and `pill-right`.
10816
+ * The emphasized layouts support `pill`, `pill-left`, and `pill-right`, and the snowflake layout uses `snowflake`.
10803
10817
  * @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
10804
10818
  * @default 'classic'
10805
10819
  * @category ui
@@ -10811,8 +10825,8 @@ class BaseInput extends AuroElement {
10811
10825
  },
10812
10826
 
10813
10827
  /**
10814
- * Sets the field's size. The `classic` shape is the same height at every size, and the
10815
- * emphasized layouts support only `xl`.
10828
+ * Sets the field's height. The `classic` and `snowflake` shapes are the same height at every size,
10829
+ * and the emphasized layouts support only `xl`.
10816
10830
  * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
10817
10831
  * @default 'lg'
10818
10832
  * @category ui
@@ -12608,7 +12622,7 @@ class AuroHelpText extends i$3 {
12608
12622
  }
12609
12623
  }
12610
12624
 
12611
- var formkitVersion = '202611081705';
12625
+ var formkitVersion = '202611091558';
12612
12626
 
12613
12627
  /**
12614
12628
  * @license
@@ -13079,7 +13093,7 @@ class AuroInput extends BaseInput {
13079
13093
 
13080
13094
  /**
13081
13095
  * Gets the `pattern` for the inner `<input>` element. For credit card numbers,
13082
- * builds a length check from `minLength` and `maxLength` instead.
13096
+ * builds a length check from `minLength` and `maxLength` instead, unless `noValidate` is set.
13083
13097
  * @private
13084
13098
  * @returns {string}
13085
13099
  */
@@ -130,7 +130,7 @@
130
130
  </auro-input>
131
131
  <auro-input dvInputOnly id="alpha" value="lax" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
132
132
  <span slot="ariaLabel.clear">Clear value</span>
133
- <label slot="label">Pill w. display value</label>
133
+ <label slot="label">Pill with display value</label>
134
134
  <span slot="helpText">Example help text</span>
135
135
  <span slot="displayValue">
136
136
  <div>
@@ -163,7 +163,7 @@
163
163
  &lt;/auro-input&gt;
164
164
  &lt;auro-input dvInputOnly id="alpha" value="lax" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required&gt;
165
165
  &lt;span slot="ariaLabel.clear"&gt;Clear value&lt;/span&gt;
166
- &lt;label slot="label"&gt;Pill w. display value&lt;/label&gt;
166
+ &lt;label slot="label"&gt;Pill with display value&lt;/label&gt;
167
167
  &lt;span slot="helpText"&gt;Example help text&lt;/span&gt;
168
168
  &lt;span slot="displayValue"&gt;
169
169
  &lt;div&gt;