@aurodesignsystem/auro-formkit 5.6.0 → 5.8.0

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 (106) hide show
  1. package/CHANGELOG.md +12 -6
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
  3. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  5. package/components/bibtemplate/dist/index.js +120 -1659
  6. package/components/bibtemplate/dist/registered.js +120 -1659
  7. package/components/checkbox/demo/api.html +2 -2
  8. package/components/checkbox/demo/api.md +31 -28
  9. package/components/checkbox/demo/api.min.js +148 -10
  10. package/components/checkbox/demo/index.html +1 -1
  11. package/components/checkbox/demo/index.md +18 -18
  12. package/components/checkbox/demo/index.min.js +148 -10
  13. package/components/checkbox/dist/auro-checkbox-group.d.ts +11 -1
  14. package/components/checkbox/dist/auro-checkbox.d.ts +11 -1
  15. package/components/checkbox/dist/index.js +148 -10
  16. package/components/checkbox/dist/registered.js +148 -10
  17. package/components/combobox/demo/api.html +4 -4
  18. package/components/combobox/demo/api.md +256 -63
  19. package/components/combobox/demo/api.min.js +4500 -7887
  20. package/components/combobox/demo/index.html +3 -3
  21. package/components/combobox/demo/index.md +114 -10
  22. package/components/combobox/demo/index.min.js +5671 -9058
  23. package/components/combobox/dist/auro-combobox.d.ts +29 -10
  24. package/components/combobox/dist/index.js +4500 -7510
  25. package/components/combobox/dist/registered.js +4500 -7510
  26. package/components/counter/demo/api.html +3 -3
  27. package/components/counter/demo/api.md +35 -26
  28. package/components/counter/demo/api.min.js +2968 -6073
  29. package/components/counter/demo/index.html +3 -3
  30. package/components/counter/demo/index.md +42 -42
  31. package/components/counter/demo/index.min.js +2968 -6073
  32. package/components/counter/dist/auro-counter-button.d.ts +2 -11
  33. package/components/counter/dist/auro-counter-group.d.ts +11 -1
  34. package/components/counter/dist/auro-counter.d.ts +9 -1
  35. package/components/counter/dist/iconVersion.d.ts +1 -1
  36. package/components/counter/dist/index.js +4915 -8020
  37. package/components/counter/dist/registered.js +4915 -8020
  38. package/components/datepicker/demo/api.html +3 -3
  39. package/components/datepicker/demo/api.md +111 -21
  40. package/components/datepicker/demo/api.min.js +10474 -14790
  41. package/components/datepicker/demo/index.html +2 -2
  42. package/components/datepicker/demo/index.md +30 -30
  43. package/components/datepicker/demo/index.min.js +10474 -14790
  44. package/components/datepicker/dist/auro-calendar-cell.d.ts +6 -0
  45. package/components/datepicker/dist/auro-calendar.d.ts +8 -0
  46. package/components/datepicker/dist/auro-datepicker.d.ts +21 -1
  47. package/components/datepicker/dist/index.js +10367 -14683
  48. package/components/datepicker/dist/registered.js +10367 -14683
  49. package/components/dropdown/demo/api.html +5 -5
  50. package/components/dropdown/demo/api.md +38 -29
  51. package/components/dropdown/demo/api.min.js +88 -417
  52. package/components/dropdown/demo/index.html +3 -3
  53. package/components/dropdown/demo/index.md +16 -16
  54. package/components/dropdown/demo/index.min.js +88 -417
  55. package/components/dropdown/dist/auro-dropdown.d.ts +11 -1
  56. package/components/dropdown/dist/index.js +75 -404
  57. package/components/dropdown/dist/registered.js +75 -404
  58. package/components/form/demo/api.html +1 -1
  59. package/components/form/demo/api.min.js +13 -0
  60. package/components/form/demo/index.html +1 -1
  61. package/components/form/demo/index.min.js +13 -0
  62. package/components/form/demo/working.html +2 -2
  63. package/components/form/dist/index.js +13 -0
  64. package/components/form/dist/registered.js +13 -0
  65. package/components/helptext/dist/auro-helptext.d.ts +11 -1
  66. package/components/helptext/dist/index.js +26 -2
  67. package/components/helptext/dist/registered.js +26 -2
  68. package/components/input/demo/api.html +3 -3
  69. package/components/input/demo/api.js +1 -1
  70. package/components/input/demo/api.md +37 -34
  71. package/components/input/demo/api.min.js +323 -1580
  72. package/components/input/demo/index.html +1 -2
  73. package/components/input/demo/index.md +17 -17
  74. package/components/input/demo/index.min.js +323 -1580
  75. package/components/input/dist/base-input.d.ts +11 -1
  76. package/components/input/dist/buttonVersion.d.ts +1 -1
  77. package/components/input/dist/iconVersion.d.ts +1 -1
  78. package/components/input/dist/index.js +289 -1546
  79. package/components/input/dist/registered.js +289 -1546
  80. package/components/menu/demo/api.html +4 -4
  81. package/components/menu/demo/api.min.js +57 -421
  82. package/components/menu/demo/index.html +1 -1
  83. package/components/menu/demo/index.min.js +57 -421
  84. package/components/menu/dist/iconVersion.d.ts +1 -1
  85. package/components/menu/dist/index.js +49 -413
  86. package/components/menu/dist/registered.js +49 -413
  87. package/components/radio/demo/api.html +2 -2
  88. package/components/radio/demo/api.md +46 -44
  89. package/components/radio/demo/api.min.js +183 -14
  90. package/components/radio/demo/index.html +1 -1
  91. package/components/radio/demo/index.md +12 -12
  92. package/components/radio/demo/index.min.js +183 -14
  93. package/components/radio/dist/auro-radio-group.d.ts +25 -1
  94. package/components/radio/dist/auro-radio.d.ts +11 -1
  95. package/components/radio/dist/index.js +183 -14
  96. package/components/radio/dist/registered.js +183 -14
  97. package/components/select/demo/api.html +4 -4
  98. package/components/select/demo/api.md +20 -19
  99. package/components/select/demo/api.min.js +2859 -4984
  100. package/components/select/demo/index.html +3 -3
  101. package/components/select/demo/index.md +25 -25
  102. package/components/select/demo/index.min.js +2859 -4984
  103. package/components/select/dist/auro-select.d.ts +11 -1
  104. package/components/select/dist/index.js +990 -2738
  105. package/components/select/dist/registered.js +990 -2738
  106. package/package.json +15 -15
@@ -5,43 +5,46 @@
5
5
 
6
6
  ## Properties
7
7
 
8
- | Property | Attribute | Modifiers | Type | Default | Description |
9
- |---------------------------------|---------------------------------|-----------|-----------------------|----------------------------|--------------------------------------------------|
10
- | [autoPlacement](#autoPlacement) | `autoPlacement` | | `boolean` | false | If declared, bib's position will be automatically calculated where to appear. |
11
- | [autocomplete](#autocomplete) | `autocomplete` | | `string` | "false" | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
12
- | [checkmark](#checkmark) | `checkmark` | | `boolean` | false | When attribute is present auro-menu will apply check marks to selected options. |
13
- | [disabled](#disabled) | `disabled` | | `boolean` | false | If set, disables the combobox. |
14
- | [dvInputOnly](#dvInputOnly) | `dvInputOnly` | | `boolean` | false | If defined, the display value slot content will only mask the HTML5 input element. The inputs label will not be masked. |
15
- | [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
16
- | [format](#format) | `format` | | `string` | | Specifies the input mask format. |
17
- | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
18
- | [inputValue](#inputValue) | | readonly | `string \| undefined` | | Returns the current value of the input element within the combobox. |
19
- | [inputmode](#inputmode) | `inputmode` | | `string` | | Exposes inputmode attribute for input. |
20
- | [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
21
- | [layout](#layout) | | | `string` | "classic" | |
22
- | [matchWidth](#matchWidth) | `matchWidth` | | `boolean` | true | If declared, the popover and trigger will be set to the same width. |
23
- | [msgSelectionMissing](#msgSelectionMissing) | | | `string` | "Please select an option." | |
24
- | [noFilter](#noFilter) | `noFilter` | | `boolean` | false | If set, combobox will not filter menuoptions based in input. |
25
- | [noFlip](#noFlip) | `noFlip` | | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
26
- | [noValidate](#noValidate) | `noValidate` | | `boolean` | false | If set, disables auto-validation on blur. |
27
- | [offset](#offset) | `offset` | | `number` | "0" | Gap between the trigger element and bib. |
28
- | [onDark](#onDark) | `onDark` | | `boolean` | | If declared, onDark styles will be applied to the trigger. |
29
- | [optionSelected](#optionSelected) | `optionSelected` | | `HTMLElement` | | Specifies the current selected option. |
30
- | [persistInput](#persistInput) | `persistInput` | | `Boolean` | false | If declared, selecting a menu option will not change the input value. By doing so,<br />the current menu filter will be preserved and the user can continue from their last<br />filter state. It is recommended to use this in combination with the `displayValue` slot. |
31
- | [placeholder](#placeholder) | `placeholder` | | `string` | | Define custom placeholder text, only supported by date input formats. |
32
- | [placement](#placement) | `placement` | | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
33
- | [required](#required) | `required` | | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
34
- | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | | `string` | | Sets a custom help text message to display for all validityStates. |
35
- | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | | `string` | | Custom help text message to display when validity = `customError`. |
36
- | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | | `string` | | Custom help text message to display when validity = `valueMissing`. |
37
- | [shape](#shape) | | | `string` | "classic" | |
38
- | [shift](#shift) | `shift` | | `boolean` | "false" | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
39
- | [size](#size) | | | `string` | "xl" | |
40
- | [triggerIcon](#triggerIcon) | `triggerIcon` | | `boolean` | false | If set, the `icon` attribute will be applied to the trigger `auro-input` element. |
41
- | [type](#type) | `type` | | `string` | | Applies the defined value as the type attribute on auro-input. |
42
- | [typedValue](#typedValue) | `typedValue` | | `string` | "undefined" | Specifies the value of the input element within the combobox. |
43
- | [validity](#validity) | `validity` | | `string` | | Specifies the `validityState` this element is in. |
44
- | [value](#value) | `value` | | `string` | "undefined" | Value selected for the dropdown menu. |
8
+ | Property | Attribute | Modifiers | Type | Default | Description |
9
+ |---------------------------------------|---------------------------------------|-----------|-----------------------|----------------------------|--------------------------------------------------|
10
+ | [appearance](#appearance) | `appearance` | | `string` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
11
+ | [autoPlacement](#autoPlacement) | `autoPlacement` | | `boolean` | false | If declared, bib's position will be automatically calculated where to appear. |
12
+ | [autocomplete](#autocomplete) | `autocomplete` | | `string` | "false" | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
13
+ | [behavior](#behavior) | `behavior` | | `string` | "suggestion" | Sets the behavior of the combobox, "filter" or "suggestion".<br />"filter" requires the user to select an option from the menu.<br />"suggestion" allows the user to enter a value not present in the menu options. |
14
+ | [checkmark](#checkmark) | `checkmark` | | `boolean` | false | When attribute is present auro-menu will apply check marks to selected options. |
15
+ | [disabled](#disabled) | `disabled` | | `boolean` | false | If set, disables the combobox. |
16
+ | [dvInputOnly](#dvInputOnly) | `dvInputOnly` | | `boolean` | false | If defined, the display value slot content will only mask the HTML5 input element. The inputs label will not be masked. |
17
+ | [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
18
+ | [format](#format) | `format` | | `string` | | Specifies the input mask format. |
19
+ | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
20
+ | [inputValue](#inputValue) | | readonly | `string \| undefined` | | Returns the current value of the input element within the combobox. |
21
+ | [inputmode](#inputmode) | `inputmode` | | `string` | | Exposes inputmode attribute for input. |
22
+ | [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
23
+ | [layout](#layout) | | | `string` | "classic" | |
24
+ | [matchWidth](#matchWidth) | `matchWidth` | | `boolean` | true | If declared, the popover and trigger will be set to the same width. |
25
+ | [msgSelectionMissing](#msgSelectionMissing) | | | `string` | "Please select an option." | |
26
+ | [noFilter](#noFilter) | `noFilter` | | `boolean` | false | If set, combobox will not filter menuoptions based on input. |
27
+ | [noFlip](#noFlip) | `noFlip` | | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
28
+ | [noValidate](#noValidate) | `noValidate` | | `boolean` | false | If set, disables auto-validation on blur. |
29
+ | [offset](#offset) | `offset` | | `number` | "0" | Gap between the trigger element and bib. |
30
+ | [onDark](#onDark) | `onDark` | | `boolean` | | DEPRECATED - use `appearance` instead. |
31
+ | [optionSelected](#optionSelected) | `optionSelected` | | `HTMLElement` | | Specifies the current selected option. |
32
+ | [persistInput](#persistInput) | `persistInput` | | `Boolean` | false | If declared, selecting a menu option will not change the input value. By doing so,<br />the current menu filter will be preserved and the user can continue from their last<br />filter state. It is recommended to use this in combination with the `displayValue` slot. |
33
+ | [placeholder](#placeholder) | `placeholder` | | `string` | | Define custom placeholder text, only supported by date input formats. |
34
+ | [placement](#placement) | `placement` | | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end" |
35
+ | [required](#required) | `required` | | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
36
+ | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | | `string` | | Sets a custom help text message to display for all validityStates. |
37
+ | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | | `string` | | Custom help text message to display when validity = `customError`. |
38
+ | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | | `string` | | Custom help text message to display when validity = `valueMissing`. |
39
+ | [setCustomValidityValueMissingFilter](#setCustomValidityValueMissingFilter) | `setCustomValidityValueMissingFilter` | | `string` | | Custom help text message to display when validity = `valueMissing` due to the user not choosing a menu option when behavior = "filter". |
40
+ | [shape](#shape) | | | `string` | "classic" | |
41
+ | [shift](#shift) | `shift` | | `boolean` | "false" | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
42
+ | [size](#size) | | | `string` | "xl" | |
43
+ | [triggerIcon](#triggerIcon) | `triggerIcon` | | `boolean` | false | If set, the `icon` attribute will be applied to the trigger `auro-input` element. |
44
+ | [type](#type) | `type` | | `string` | | Applies the defined value as the type attribute on auro-input. |
45
+ | [typedValue](#typedValue) | `typedValue` | | `string` | "undefined" | Specifies the value of the input element within the combobox. |
46
+ | [validity](#validity) | `validity` | | `string` | | Specifies the `validityState` this element is in. |
47
+ | [value](#value) | `value` | | `string` | "undefined" | Value selected for the dropdown menu. |
45
48
 
46
49
  ## Methods
47
50
 
@@ -103,9 +106,9 @@
103
106
  <!-- AURO-GENERATED-CONTENT:END -->
104
107
  </div>
105
108
  <div class="exampleWrapper--ondark" aria-hidden>
106
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
107
- <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
108
- <auro-combobox onDark>
109
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
110
+ <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
111
+ <auro-combobox appearance="inverse">
109
112
  <span slot="bib.fullscreen.headline">Bib Header</span>
110
113
  <span slot="label">Name</span>
111
114
  <auro-menu>
@@ -141,9 +144,9 @@
141
144
  </auro-combobox>
142
145
  ```
143
146
  <!-- AURO-GENERATED-CONTENT:END -->
144
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
145
- <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
146
- <auro-combobox onDark>
147
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
148
+ <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
149
+ <auro-combobox appearance="inverse">
147
150
  <span slot="bib.fullscreen.headline">Bib Header</span>
148
151
  <span slot="label">Name</span>
149
152
  <auro-menu>
@@ -158,6 +161,107 @@
158
161
  <!-- AURO-GENERATED-CONTENT:END -->
159
162
  </auro-accordion>
160
163
 
164
+ ### Behavior
165
+
166
+ There are two behaviors available for the combo box: suggestion and filter.
167
+ The default behavior is "suggestion".
168
+
169
+ #### Suggestion
170
+
171
+ With the suggestion behavior, the menu options are displayed to the user as suggestions, but the user may enter whatever value they like into the input
172
+
173
+ <div class="exampleWrapper">
174
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/suggestion.html) -->
175
+ <!-- The below content is automatically added from ./../apiExamples/suggestion.html -->
176
+ <auro-combobox behavior="suggestion">
177
+ <span slot="ariaLabel.bib.close">Close combobox</span>
178
+ <span slot="ariaLabel.input.clear">Clear All</span>
179
+ <span slot="bib.fullscreen.headline">Bib Header</span>
180
+ <span slot="label">Name</span>
181
+ <auro-menu>
182
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
183
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
184
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
185
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
186
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
187
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
188
+ </auro-menu>
189
+ </auro-combobox>
190
+ <!-- AURO-GENERATED-CONTENT:END -->
191
+ </div>
192
+ <auro-accordion alignRight>
193
+ <span slot="trigger">See code</span>
194
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/suggestion.html) -->
195
+ <!-- The below code snippet is automatically added from ./../apiExamples/suggestion.html -->
196
+
197
+ ```html
198
+ <auro-combobox behavior="suggestion">
199
+ <span slot="ariaLabel.bib.close">Close combobox</span>
200
+ <span slot="ariaLabel.input.clear">Clear All</span>
201
+ <span slot="bib.fullscreen.headline">Bib Header</span>
202
+ <span slot="label">Name</span>
203
+ <auro-menu>
204
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
205
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
206
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
207
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
208
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
209
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
210
+ </auro-menu>
211
+ </auro-combobox>
212
+ ```
213
+ <!-- AURO-GENERATED-CONTENT:END -->
214
+ </auro-accordion>
215
+
216
+ #### Filter
217
+
218
+ With the filter behavior, the menu options are displayed to the user, and the user is required to choose one of the menu options in order for the input to be considered valid.
219
+
220
+ The `setCustomValidityValueMissingFilter` attribute is also available to display a custom message to the user when this validation check fails.
221
+
222
+ <div class="exampleWrapper">
223
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/filter.html) -->
224
+ <!-- The below content is automatically added from ./../apiExamples/filter.html -->
225
+ <auro-combobox behavior="filter" setCustomValidityValueMissingFilter="Please select an option from the list">
226
+ <span slot="ariaLabel.bib.close">Close combobox</span>
227
+ <span slot="ariaLabel.input.clear">Clear All</span>
228
+ <span slot="bib.fullscreen.headline">Bib Header</span>
229
+ <span slot="label">Name</span>
230
+ <auro-menu>
231
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
232
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
233
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
234
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
235
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
236
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
237
+ </auro-menu>
238
+ </auro-combobox>
239
+ <!-- AURO-GENERATED-CONTENT:END -->
240
+ </div>
241
+ <auro-accordion alignRight>
242
+ <span slot="trigger">See code</span>
243
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/filter.html) -->
244
+ <!-- The below code snippet is automatically added from ./../apiExamples/filter.html -->
245
+
246
+ ```html
247
+ <auro-combobox behavior="filter" setCustomValidityValueMissingFilter="Please select an option from the list">
248
+ <span slot="ariaLabel.bib.close">Close combobox</span>
249
+ <span slot="ariaLabel.input.clear">Clear All</span>
250
+ <span slot="bib.fullscreen.headline">Bib Header</span>
251
+ <span slot="label">Name</span>
252
+ <auro-menu>
253
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
254
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
255
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
256
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
257
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
258
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
259
+ </auro-menu>
260
+ </auro-combobox>
261
+ ```
262
+ <!-- AURO-GENERATED-CONTENT:END -->
263
+ </auro-accordion>
264
+
161
265
  ### Dynamic Menu
162
266
 
163
267
  This example demonstrates a data driven combobox. The data is used to populate the `auro-menu`. In this example, each time the input's value changes, the data is updated and the menu is recreated.
@@ -175,10 +279,11 @@ The menu in this example was populated from data from a country/city API. To kee
175
279
  layout="snowflake"
176
280
  shape="snowflake"
177
281
  size="lg"
178
- ondark
282
+ appearance="inverse"
179
283
  noFilter
180
284
  persistInput
181
285
  dvInputOnly
286
+ setCustomValidityValueMissing="Please select an option from the list."
182
287
  required>
183
288
  <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
184
289
  <span slot="label">First</span>
@@ -195,10 +300,11 @@ The menu in this example was populated from data from a country/city API. To kee
195
300
  layout="snowflake"
196
301
  shape="snowflake"
197
302
  size="lg"
198
- ondark
303
+ appearance="inverse"
199
304
  noFilter
200
305
  persistInput
201
306
  dvInputOnly
307
+ setCustomValidityValueMissing="Please select an option from the list."
202
308
  required>
203
309
  <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
204
310
  <span slot="label">Second</span>
@@ -231,10 +337,11 @@ The menu in this example was populated from data from a country/city API. To kee
231
337
  layout="snowflake"
232
338
  shape="snowflake"
233
339
  size="lg"
234
- ondark
340
+ appearance="inverse"
235
341
  noFilter
236
342
  persistInput
237
343
  dvInputOnly
344
+ setCustomValidityValueMissing="Please select an option from the list."
238
345
  required>
239
346
  <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
240
347
  <span slot="label">First</span>
@@ -251,10 +358,11 @@ The menu in this example was populated from data from a country/city API. To kee
251
358
  layout="snowflake"
252
359
  shape="snowflake"
253
360
  size="lg"
254
- ondark
361
+ appearance="inverse"
255
362
  noFilter
256
363
  persistInput
257
364
  dvInputOnly
365
+ setCustomValidityValueMissing="Please select an option from the list."
258
366
  required>
259
367
  <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
260
368
  <span slot="label">Second</span>
@@ -400,6 +508,91 @@ export async function dynamicMenuExample() {
400
508
  <!-- AURO-GENERATED-CONTENT:END -->
401
509
  </auro-accordion>
402
510
 
511
+ ### Persistent Input
512
+
513
+ The `persistInput` attribute allows you to set the combo box to persist the value of the input regardless of the current value set for the combo box.
514
+
515
+ A persistent input is typically used in conjunction with display values to show the actual value of the selected option to the user when the input is not focused.
516
+
517
+ This is helpful for things like dynamic menus where you want the user to be able to continue their search where they left off but display a full selected value when the input is not focused.
518
+
519
+ _*Note:*_ When using `persistInput` with the `required` attribute, you must also pass an error message for when there isn't a valid value but the user has typed something in the input to the `setCustomValidityValueMissing` attribute.
520
+
521
+ <div class="exampleWrapper">
522
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/persistInput.html) -->
523
+ <!-- The below content is automatically added from ./../apiExamples/persistInput.html -->
524
+ <auro-combobox
525
+ required
526
+ persistInput
527
+ setCustomValidityValueMissing="Please select an option from the list."
528
+ >
529
+ <span slot="bib.fullscreen.headline">Persistant Input</span>
530
+ <span slot="label">Persistant Input</span>
531
+ <auro-menu>
532
+ <auro-menuoption value="Apples" id="option-0">
533
+ Apples
534
+ <div slot="displayValue">Apples</div>
535
+ </auro-menuoption>
536
+ <auro-menuoption value="Oranges" id="option-1">
537
+ Oranges
538
+ <div slot="displayValue">Oranges</div>
539
+ </auro-menuoption>
540
+ <auro-menuoption value="Peaches" id="option-2">
541
+ Peaches
542
+ <div slot="displayValue">Peaches</div>
543
+ </auro-menuoption>
544
+ <auro-menuoption value="Grapes" id="option-3">
545
+ Grapes
546
+ <div slot="displayValue">Grapes</div>
547
+ </auro-menuoption>
548
+ <auro-menuoption value="Cherries" id="option-4">
549
+ Cherries
550
+ <div slot="displayValue">Cherries</div>
551
+ </auro-menuoption>
552
+ </auro-menu>
553
+ </auro-combobox>
554
+ <!-- AURO-GENERATED-CONTENT:END -->
555
+ </div>
556
+ <auro-accordion alignRight>
557
+ <span slot="trigger">See code</span>
558
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/persistInput.html) -->
559
+ <!-- The below code snippet is automatically added from ./../apiExamples/persistInput.html -->
560
+
561
+ ```html
562
+ <auro-combobox
563
+ required
564
+ persistInput
565
+ setCustomValidityValueMissing="Please select an option from the list."
566
+ >
567
+ <span slot="bib.fullscreen.headline">Persistant Input</span>
568
+ <span slot="label">Persistant Input</span>
569
+ <auro-menu>
570
+ <auro-menuoption value="Apples" id="option-0">
571
+ Apples
572
+ <div slot="displayValue">Apples</div>
573
+ </auro-menuoption>
574
+ <auro-menuoption value="Oranges" id="option-1">
575
+ Oranges
576
+ <div slot="displayValue">Oranges</div>
577
+ </auro-menuoption>
578
+ <auro-menuoption value="Peaches" id="option-2">
579
+ Peaches
580
+ <div slot="displayValue">Peaches</div>
581
+ </auro-menuoption>
582
+ <auro-menuoption value="Grapes" id="option-3">
583
+ Grapes
584
+ <div slot="displayValue">Grapes</div>
585
+ </auro-menuoption>
586
+ <auro-menuoption value="Cherries" id="option-4">
587
+ Cherries
588
+ <div slot="displayValue">Cherries</div>
589
+ </auro-menuoption>
590
+ </auro-menu>
591
+ </auro-combobox>
592
+ ```
593
+ <!-- AURO-GENERATED-CONTENT:END -->
594
+ </auro-accordion>
595
+
403
596
  ### Updating Externally
404
597
 
405
598
  This example demonstrates using the <code>updateActiveOption</code> method to set a specific menu option as "active."
@@ -412,7 +605,7 @@ This is useful for situations like matching IATA codes (sea -> SeaTac airport)
412
605
  <p style="color: white;">
413
606
  Type 'a' in the combobox for best testing results :)
414
607
  </p>
415
- <auro-combobox ondark id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
608
+ <auro-combobox appearance="inverse" id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
416
609
  <span slot="ariaLabel.bib.close">Close combobox</span>
417
610
  <span slot="ariaLabel.input.clear">Clear All</span>
418
611
  <span slot="bib.fullscreen.headline">Bib Header</span>
@@ -440,7 +633,7 @@ This is useful for situations like matching IATA codes (sea -> SeaTac airport)
440
633
  <p style="color: white;">
441
634
  Type 'a' in the combobox for best testing results :)
442
635
  </p>
443
- <auro-combobox ondark id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
636
+ <auro-combobox appearance="inverse" id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
444
637
  <span slot="ariaLabel.bib.close">Close combobox</span>
445
638
  <span slot="ariaLabel.input.clear">Clear All</span>
446
639
  <span slot="bib.fullscreen.headline">Bib Header</span>
@@ -511,9 +704,9 @@ If set, disables the combobox.
511
704
  <!-- AURO-GENERATED-CONTENT:END -->
512
705
  </div>
513
706
  <div class="exampleWrapper--ondark" aria-hidden>
514
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
515
- <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
516
- <auro-combobox onDark disabled>
707
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
708
+ <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
709
+ <auro-combobox appearance="inverse" disabled>
517
710
  <span slot="bib.fullscreen.headline">Bib Header</span>
518
711
  <span slot="label">Name</span>
519
712
  <auro-menu>
@@ -549,9 +742,9 @@ If set, disables the combobox.
549
742
  </auro-combobox>
550
743
  ```
551
744
  <!-- AURO-GENERATED-CONTENT:END -->
552
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
553
- <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
554
- <auro-combobox onDark disabled>
745
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
746
+ <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
747
+ <auro-combobox appearance="inverse" disabled>
555
748
  <span slot="bib.fullscreen.headline">Bib Header</span>
556
749
  <span slot="label">Name</span>
557
750
  <auro-menu>
@@ -676,9 +869,9 @@ Sets a persistent error state (e.g. an error state returned from the server).
676
869
  <!-- AURO-GENERATED-CONTENT:END -->
677
870
  </div>
678
871
  <div class="exampleWrapper--ondark" aria-hidden>
679
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
680
- <!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
681
- <auro-combobox onDark error="Custom error message">
872
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceError.html) -->
873
+ <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceError.html -->
874
+ <auro-combobox appearance="inverse" error="Custom error message">
682
875
  <span slot="bib.fullscreen.headline">Bib Header</span>
683
876
  <span slot="label">Name</span>
684
877
  <auro-menu>
@@ -714,9 +907,9 @@ Sets a persistent error state (e.g. an error state returned from the server).
714
907
  </auro-combobox>
715
908
  ```
716
909
  <!-- AURO-GENERATED-CONTENT:END -->
717
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
718
- <!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
719
- <auro-combobox onDark error="Custom error message">
910
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceError.html) -->
911
+ <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceError.html -->
912
+ <auro-combobox appearance="inverse" error="Custom error message">
720
913
  <span slot="bib.fullscreen.headline">Bib Header</span>
721
914
  <span slot="label">Name</span>
722
915
  <auro-menu>
@@ -1541,7 +1734,7 @@ You can fully customize how selected values appear by using the `displayValue` s
1541
1734
  <div class="exampleWrapper--ondark">
1542
1735
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/displayValueSlot.html) -->
1543
1736
  <!-- The below content is automatically added from ./../apiExamples/displayValueSlot.html -->
1544
- <auro-combobox layout="snowflake" shape="snowflake" size="xl" ondark value="Apples">
1737
+ <auro-combobox layout="snowflake" shape="snowflake" size="xl" appearance="inverse" value="Apples">
1545
1738
  <span slot="bib.fullscreen.headline">Bib Header</span>
1546
1739
  <span slot="label">Name</span>
1547
1740
  <auro-menu>
@@ -1565,7 +1758,7 @@ You can fully customize how selected values appear by using the `displayValue` s
1565
1758
  <!-- The below code snippet is automatically added from ./../apiExamples/displayValueSlot.html -->
1566
1759
 
1567
1760
  ```html
1568
- <auro-combobox layout="snowflake" shape="snowflake" size="xl" ondark value="Apples">
1761
+ <auro-combobox layout="snowflake" shape="snowflake" size="xl" appearance="inverse" value="Apples">
1569
1762
  <span slot="bib.fullscreen.headline">Bib Header</span>
1570
1763
  <span slot="label">Name</span>
1571
1764
  <auro-menu>