@aurodesignsystem/auro-formkit 5.9.0 → 5.9.2

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 (136) hide show
  1. package/CHANGELOG.md +13 -4
  2. package/README.md +4 -4
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +2 -2
  5. package/components/bibtemplate/dist/registered.js +2 -2
  6. package/components/checkbox/README.md +62 -62
  7. package/components/checkbox/demo/api.js +1 -1
  8. package/components/checkbox/demo/api.md +127 -84
  9. package/components/checkbox/demo/api.min.js +125 -42
  10. package/components/checkbox/demo/index.md +9 -281
  11. package/components/checkbox/demo/index.min.js +125 -42
  12. package/components/checkbox/demo/readme.html +3 -4
  13. package/components/checkbox/demo/readme.md +62 -62
  14. package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
  15. package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
  16. package/components/checkbox/dist/index.js +125 -42
  17. package/components/checkbox/dist/registered.js +125 -42
  18. package/components/combobox/README.md +76 -74
  19. package/components/combobox/demo/api.html +1 -0
  20. package/components/combobox/demo/api.js +11 -12
  21. package/components/combobox/demo/api.md +1302 -875
  22. package/components/combobox/demo/api.min.js +416 -492
  23. package/components/combobox/demo/index.html +1 -7
  24. package/components/combobox/demo/index.js +0 -19
  25. package/components/combobox/demo/index.md +43 -723
  26. package/components/combobox/demo/index.min.js +369 -302
  27. package/components/combobox/demo/readme.html +3 -4
  28. package/components/combobox/demo/readme.md +76 -74
  29. package/components/combobox/dist/auro-combobox.d.ts +42 -42
  30. package/components/combobox/dist/index.js +204 -210
  31. package/components/combobox/dist/registered.js +204 -210
  32. package/components/counter/README.md +81 -66
  33. package/components/counter/demo/api.html +1 -2
  34. package/components/counter/demo/api.js +2 -2
  35. package/components/counter/demo/api.md +777 -259
  36. package/components/counter/demo/api.min.js +119 -171
  37. package/components/counter/demo/index.html +0 -2
  38. package/components/counter/demo/index.md +20 -329
  39. package/components/counter/demo/index.min.js +117 -152
  40. package/components/counter/demo/readme.html +3 -4
  41. package/components/counter/demo/readme.md +81 -66
  42. package/components/counter/dist/auro-counter-group.d.ts +21 -36
  43. package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
  44. package/components/counter/dist/auro-counter.d.ts +5 -8
  45. package/components/counter/dist/index.js +117 -152
  46. package/components/counter/dist/registered.js +117 -152
  47. package/components/datepicker/README.md +57 -61
  48. package/components/datepicker/demo/api.js +8 -8
  49. package/components/datepicker/demo/api.md +720 -561
  50. package/components/datepicker/demo/api.min.js +678 -2769
  51. package/components/datepicker/demo/index.md +65 -117
  52. package/components/datepicker/demo/index.min.js +678 -2769
  53. package/components/datepicker/demo/readme.html +3 -4
  54. package/components/datepicker/demo/readme.md +57 -61
  55. package/components/datepicker/dist/auro-calendar.d.ts +60 -34
  56. package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
  57. package/components/datepicker/dist/iconVersion.d.ts +1 -1
  58. package/components/datepicker/dist/index.js +505 -2596
  59. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  60. package/components/datepicker/dist/registered.js +505 -2596
  61. package/components/dropdown/README.md +78 -62
  62. package/components/dropdown/demo/api.js +4 -4
  63. package/components/dropdown/demo/api.md +520 -478
  64. package/components/dropdown/demo/api.min.js +80 -95
  65. package/components/dropdown/demo/index.md +65 -119
  66. package/components/dropdown/demo/index.min.js +70 -85
  67. package/components/dropdown/demo/readme.html +3 -4
  68. package/components/dropdown/demo/readme.md +78 -62
  69. package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
  70. package/components/dropdown/dist/iconVersion.d.ts +1 -1
  71. package/components/dropdown/dist/index.js +70 -85
  72. package/components/dropdown/dist/registered.js +70 -85
  73. package/components/form/README.md +16 -58
  74. package/components/form/demo/api.md +16 -21
  75. package/components/form/demo/api.min.js +13 -8
  76. package/components/form/demo/index.md +38 -39
  77. package/components/form/demo/index.min.js +13 -8
  78. package/components/form/demo/readme.md +16 -58
  79. package/components/form/demo/working.html +1 -1
  80. package/components/form/dist/auro-form.d.ts +15 -3
  81. package/components/form/dist/index.js +13 -8
  82. package/components/form/dist/registered.js +13 -8
  83. package/components/input/README.md +55 -60
  84. package/components/input/demo/api.js +3 -5
  85. package/components/input/demo/api.md +558 -537
  86. package/components/input/demo/api.min.js +102 -115
  87. package/components/input/demo/index.js +0 -1
  88. package/components/input/demo/index.md +90 -203
  89. package/components/input/demo/index.min.js +87 -99
  90. package/components/input/demo/readme.html +3 -4
  91. package/components/input/demo/readme.md +55 -60
  92. package/components/input/dist/auro-input.d.ts +6 -5
  93. package/components/input/dist/base-input.d.ts +68 -69
  94. package/components/input/dist/iconVersion.d.ts +1 -1
  95. package/components/input/dist/index.js +87 -82
  96. package/components/input/dist/registered.js +87 -82
  97. package/components/menu/README.md +61 -61
  98. package/components/menu/demo/api.js +6 -8
  99. package/components/menu/demo/api.md +520 -577
  100. package/components/menu/demo/api.min.js +199 -97
  101. package/components/menu/demo/index.js +0 -5
  102. package/components/menu/demo/index.md +36 -119
  103. package/components/menu/demo/index.min.js +164 -101
  104. package/components/menu/demo/readme.html +3 -4
  105. package/components/menu/demo/readme.md +61 -61
  106. package/components/menu/dist/auro-menu.context.d.ts +5 -0
  107. package/components/menu/dist/auro-menu.d.ts +75 -37
  108. package/components/menu/dist/auro-menuoption.d.ts +38 -13
  109. package/components/menu/dist/index.js +164 -50
  110. package/components/menu/dist/registered.js +164 -50
  111. package/components/radio/README.md +61 -57
  112. package/components/radio/demo/api.js +2 -2
  113. package/components/radio/demo/api.md +241 -170
  114. package/components/radio/demo/api.min.js +154 -77
  115. package/components/radio/demo/index.md +22 -99
  116. package/components/radio/demo/index.min.js +145 -68
  117. package/components/radio/demo/readme.html +3 -4
  118. package/components/radio/demo/readme.md +61 -57
  119. package/components/radio/dist/auro-radio-group.d.ts +67 -35
  120. package/components/radio/dist/auro-radio.d.ts +56 -33
  121. package/components/radio/dist/index.js +145 -68
  122. package/components/radio/dist/registered.js +145 -68
  123. package/components/select/README.md +68 -65
  124. package/components/select/demo/api.html +1 -0
  125. package/components/select/demo/api.js +7 -7
  126. package/components/select/demo/api.md +1305 -625
  127. package/components/select/demo/api.min.js +357 -262
  128. package/components/select/demo/index.html +0 -2
  129. package/components/select/demo/index.md +25 -833
  130. package/components/select/demo/index.min.js +356 -230
  131. package/components/select/demo/readme.html +3 -4
  132. package/components/select/demo/readme.md +68 -65
  133. package/components/select/dist/auro-select.d.ts +99 -90
  134. package/components/select/dist/index.js +192 -180
  135. package/components/select/dist/registered.js +192 -180
  136. package/package.json +9 -4
@@ -1,50 +1,48 @@
1
1
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/api.md) -->
2
2
  <!-- The below content is automatically added from ./../docs/api.md -->
3
3
 
4
- # auro-combobox
4
+ # auro-combobox
5
+
6
+ The `auro-combobox` element provides users with a way to select an option from a list of filtered or suggested options based on user input.
5
7
 
6
8
  ## Properties
7
9
 
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. |
10
+ | Property | Attribute | Modifiers | Type | Default | Description |
11
+ |---------------------------------------|---------------------------------------|-----------|--------------------------------------------------|------------------|--------------------------------------------------|
12
+ | [appearance](#appearance) | `appearance` | | `string` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
13
+ | [autoPlacement](#autoPlacement) | `autoPlacement` | | `boolean` | | If declared, bib's position will be automatically calculated where to appear. |
14
+ | [autocomplete](#autocomplete) | `autocomplete` | | `string` | | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
15
+ | [behavior](#behavior) | `behavior` | | `'filter' \| 'suggestion'` | "'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. |
16
+ | [checkmark](#checkmark) | `checkmark` | | `boolean` | | When attribute is present auro-menu will apply check marks to selected options. |
17
+ | [disabled](#disabled) | `disabled` | | `boolean` | | If set, disables the combobox. |
18
+ | [dvInputOnly](#dvInputOnly) | `dvInputOnly` | | `boolean` | | If defined, the display value slot content will only mask the HTML5 input element. The inputs label will not be masked. |
19
+ | [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
20
+ | [format](#format) | `format` | | `string` | | Specifies the input mask format. |
21
+ | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpointat 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. |
22
+ | [inputValue](#inputValue) | | readonly | `string \| undefined` | | Returns the current value of the input element within the combobox. |
23
+ | [inputmode](#inputmode) | `inputmode` | | `string` | | Exposes inputmode attribute for input. |
24
+ | [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
25
+ | [layout](#layout) | `layout` | | `'classic' \| 'emphasized' \| 'snowflake'` | "'classic'" | Sets the layout of the combobox. |
26
+ | [noFilter](#noFilter) | `noFilter` | | `boolean` | | If set, combobox will not filter menuoptions based on input. |
27
+ | [noFlip](#noFlip) | `noFlip` | | `boolean` | | 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` | | 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="inverse"` instead. |
31
+ | [optionSelected](#optionSelected) | `optionSelected` | | `HTMLElement` | | Specifies the current selected option. |
32
+ | [persistInput](#persistInput) | `persistInput` | | `boolean` | | 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` | | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'" | Position where the bib should appear relative to the trigger. |
35
+ | [required](#required) | `required` | | `boolean` | | 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
+ | [shift](#shift) | `shift` | | `boolean` | | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
41
+ | [triggerIcon](#triggerIcon) | `triggerIcon` | | `boolean` | | If set, the `icon` attribute will be applied to the trigger `auro-input` element. |
42
+ | [type](#type) | `type` | | `string` | | Applies the defined value as the type attribute on `auro-input`. |
43
+ | [typedValue](#typedValue) | `typedValue` | | `string` | | Specifies the value of the input element within the combobox. |
44
+ | [validity](#validity) | `validity` | | `string` | | Specifies the `validityState` this element is in. |
45
+ | [value](#value) | `value` | | `string` | | Value selected for the dropdown menu. |
48
46
 
49
47
  ## Methods
50
48
 
@@ -83,9 +81,7 @@
83
81
  | [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
84
82
  <!-- AURO-GENERATED-CONTENT:END -->
85
83
 
86
- ## API Examples
87
-
88
- ### Basic
84
+ ## Basic
89
85
 
90
86
  <div class="exampleWrapper">
91
87
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
@@ -106,23 +102,6 @@
106
102
  </auro-combobox>
107
103
  <!-- AURO-GENERATED-CONTENT:END -->
108
104
  </div>
109
- <div class="exampleWrapper--ondark" aria-hidden>
110
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
111
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
112
- <auro-combobox appearance="inverse">
113
- <span slot="bib.fullscreen.headline">Bib Header</span>
114
- <span slot="label">Name</span>
115
- <auro-menu>
116
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
117
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
118
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
119
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
120
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
121
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
122
- </auro-menu>
123
- </auro-combobox>
124
- <!-- AURO-GENERATED-CONTENT:END -->
125
- </div>
126
105
  <auro-accordion alignRight>
127
106
  <span slot="trigger">See code</span>
128
107
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
@@ -145,8 +124,37 @@
145
124
  </auro-combobox>
146
125
  ```
147
126
  <!-- AURO-GENERATED-CONTENT:END -->
148
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
149
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
127
+ </auro-accordion>
128
+
129
+ ## Property & Attribute Examples
130
+
131
+ ### Appearance on Dark Backgrounds
132
+
133
+ Use the `appearance="inverse"` attribute to apply styling appropriate for dark backgrounds.
134
+
135
+ <div class="exampleWrapper--ondark">
136
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
137
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
138
+ <auro-combobox appearance="inverse">
139
+ <span slot="bib.fullscreen.headline">Bib Header</span>
140
+ <span slot="label">Name</span>
141
+ <auro-menu>
142
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
143
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
144
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
145
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
146
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
147
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
148
+ </auro-menu>
149
+ </auro-combobox>
150
+ <!-- AURO-GENERATED-CONTENT:END -->
151
+ </div>
152
+ <auro-accordion alignRight>
153
+ <span slot="trigger">See code</span>
154
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
155
+ <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
156
+
157
+ ```html
150
158
  <auro-combobox appearance="inverse">
151
159
  <span slot="bib.fullscreen.headline">Bib Header</span>
152
160
  <span slot="label">Name</span>
@@ -158,18 +166,19 @@
158
166
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
159
167
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
160
168
  </auro-menu>
161
- </auro-combobox>
169
+ </auro-combobox>
170
+ ```
162
171
  <!-- AURO-GENERATED-CONTENT:END -->
163
172
  </auro-accordion>
164
173
 
165
174
  ### Behavior
166
175
 
167
- There are two behaviors available for the combo box: suggestion and filter.
168
- The default behavior is "suggestion".
176
+ There are two behaviors available for the combo box: `suggestion` and `filter`.
177
+ The default behavior is `suggestion`.
169
178
 
170
179
  #### Suggestion
171
180
 
172
- 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
181
+ With `behavior="suggestion"`, the menu options are displayed to the user as suggestions, but the user may enter whatever value they like into the input.
173
182
 
174
183
  <div class="exampleWrapper">
175
184
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/suggestion.html) -->
@@ -216,7 +225,7 @@ With the suggestion behavior, the menu options are displayed to the user as sugg
216
225
 
217
226
  #### Filter
218
227
 
219
- 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.
228
+ With `behavior="filter"`, 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.
220
229
 
221
230
  The `setCustomValidityValueMissingFilter` attribute is also available to display a custom message to the user when this validation check fails.
222
231
 
@@ -263,352 +272,208 @@ The `setCustomValidityValueMissingFilter` attribute is also available to display
263
272
  <!-- AURO-GENERATED-CONTENT:END -->
264
273
  </auro-accordion>
265
274
 
266
- ### Dynamic Menu
267
-
268
- 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.
275
+ ### Checkmark on Selected Option
269
276
 
270
- The menu in this example was populated from data from a country/city API. To keep the data set small, the data in the menu is based off an API call that returns all countries and cities that contain the substring "**germ**" (non case-sensitive) in their name.
277
+ Use the `checkmark` attribute to display a checkmark next to the selected option in the dropdown menu.
271
278
 
272
- <div class="exampleWrapper--ondark">
273
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dynamicMenu.html) -->
274
- <!-- The below content is automatically added from ./../apiExamples/dynamicMenu.html -->
275
- <!-- HTML example file -->
276
- <!-- ----------------- -->
277
- <auro-combobox
278
- id="dynamicMenuExample"
279
- value="TAN"
280
- layout="snowflake"
281
- shape="snowflake"
282
- size="lg"
283
- appearance="inverse"
284
- noFilter
285
- persistInput
286
- dvInputOnly
287
- setCustomValidityValueMissing="Please select an option from the list."
288
- required>
289
- <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
290
- <span slot="label">First</span>
291
- <!--
292
- The auro-combobox element requires an empty auro-menu element
293
- due to the requirements of auro-dropdown and auro-input
294
- -->
295
- <auro-menu id="initMenu"></auro-menu>
296
- </auro-combobox>
297
- <br>
298
- <auro-combobox
299
- id="dynamicMenuExampleTwo"
300
- value="GER"
301
- layout="snowflake"
302
- shape="snowflake"
303
- size="lg"
304
- appearance="inverse"
305
- noFilter
306
- persistInput
307
- dvInputOnly
308
- setCustomValidityValueMissing="Please select an option from the list."
309
- required>
310
- <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
311
- <span slot="label">Second</span>
312
- <!--
313
- The auro-combobox element requires an empty auro-menu element
314
- due to the requirements of auro-dropdown and auro-input
315
- -->
316
- <auro-menu id="initMenuTwo"></auro-menu>
279
+ <div class="exampleWrapper">
280
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/checkmark.html) -->
281
+ <!-- The below content is automatically added from ./../apiExamples/checkmark.html -->
282
+ <auro-combobox checkmark>
283
+ <span slot="bib.fullscreen.headline">Bib Header</span>
284
+ <span slot="label">Name</span>
285
+ <auro-menu>
286
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
287
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
288
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
289
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
290
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
291
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
292
+ </auro-menu>
317
293
  </auro-combobox>
318
- <br>
319
- <auro-button id="dynamicMenuSwapButton">
320
- Swap Values
321
- </auro-button>
322
- <auro-button id="dynamicMenuPersistButton">
323
- Toggle Persist Input
324
- </auro-button>
325
294
  <!-- AURO-GENERATED-CONTENT:END -->
326
295
  </div>
327
296
  <auro-accordion alignRight>
328
297
  <span slot="trigger">See code</span>
329
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamicMenu.html) -->
330
- <!-- The below code snippet is automatically added from ./../apiExamples/dynamicMenu.html -->
298
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/checkmark.html) -->
299
+ <!-- The below code snippet is automatically added from ./../apiExamples/checkmark.html -->
331
300
 
332
301
  ```html
333
- <!-- HTML example file -->
334
- <!-- ----------------- -->
335
- <auro-combobox
336
- id="dynamicMenuExample"
337
- value="TAN"
338
- layout="snowflake"
339
- shape="snowflake"
340
- size="lg"
341
- appearance="inverse"
342
- noFilter
343
- persistInput
344
- dvInputOnly
345
- setCustomValidityValueMissing="Please select an option from the list."
346
- required>
347
- <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
348
- <span slot="label">First</span>
349
- <!--
350
- The auro-combobox element requires an empty auro-menu element
351
- due to the requirements of auro-dropdown and auro-input
352
- -->
353
- <auro-menu id="initMenu"></auro-menu>
354
- </auro-combobox>
355
- <br>
356
- <auro-combobox
357
- id="dynamicMenuExampleTwo"
358
- value="GER"
359
- layout="snowflake"
360
- shape="snowflake"
361
- size="lg"
362
- appearance="inverse"
363
- noFilter
364
- persistInput
365
- dvInputOnly
366
- setCustomValidityValueMissing="Please select an option from the list."
367
- required>
368
- <span slot="bib.fullscreen.headline">Dynamic Combobox Header</span>
369
- <span slot="label">Second</span>
370
- <!--
371
- The auro-combobox element requires an empty auro-menu element
372
- due to the requirements of auro-dropdown and auro-input
373
- -->
374
- <auro-menu id="initMenuTwo"></auro-menu>
375
- </auro-combobox>
376
- <br>
377
- <auro-button id="dynamicMenuSwapButton">
378
- Swap Values
379
- </auro-button>
380
- <auro-button id="dynamicMenuPersistButton">
381
- Toggle Persist Input
382
- </auro-button>
302
+ <auro-combobox checkmark>
303
+ <span slot="bib.fullscreen.headline">Bib Header</span>
304
+ <span slot="label">Name</span>
305
+ <auro-menu>
306
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
307
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
308
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
309
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
310
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
311
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
312
+ </auro-menu>
313
+ </auro-combobox>
383
314
  ```
384
315
  <!-- AURO-GENERATED-CONTENT:END -->
385
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/dynamicMenu.js) -->
386
- <!-- The below code snippet is automatically added from ./../apiExamples/dynamicMenu.js -->
387
-
388
- ```js
389
- // Javascript example file
390
- // -----------------------
391
- import { DynamicData } from './dynamicMenuDataApi';
392
-
393
- export async function dynamicMenuExample() {
394
- // Resets the root menu
395
- function resetMenu(root) {
396
- while (root.firstChild) {
397
- root.removeChild(root.firstChild);
398
- }
399
- }
400
-
401
- function swapValues() {
402
- const elOne = document.querySelector('#dynamicMenuExample');
403
- const elTwo = document.querySelector('#dynamicMenuExampleTwo');
404
-
405
- const elOneValue = elOne.value;
406
- const elTwoValue = elTwo.value;
407
-
408
- const elOneInputValue = elOne.input.value;
409
- const elTwoInputValue = elTwo.input.value;
410
-
411
- elOne.reset();
412
- elTwo.reset();
413
-
414
- elOne.value = elTwoValue;
415
- elTwo.value = elOneValue;
316
+ </auro-accordion>
416
317
 
417
- setTimeout(() => {
418
- elOne.typedValue = elTwoInputValue;
419
- elTwo.typedValue = elOneInputValue;
420
- }, 0);
421
- }
422
-
423
- document.querySelector('#dynamicMenuSwapButton').addEventListener('click', () => {
424
- swapValues();
425
- });
426
-
427
- document.querySelector('#dynamicMenuPersistButton').addEventListener('click', () => {
428
- const elOne = document.querySelector('#dynamicMenuExample');
429
- const elTwo = document.querySelector('#dynamicMenuExampleTwo');
430
-
431
- elOne.persistInput = !elOne.persistInput;
432
- elTwo.persistInput = !elTwo.persistInput;
433
- });
318
+ ### Customized Bib Position
434
319
 
435
- // Generates HTML for menu and submenus using country & city data from an external API
436
- function generateHtml(data, selector) {
437
- const initialMenu = document.querySelector(selector);
438
-
439
- resetMenu(initialMenu);
440
-
441
- for (let index = 0; index < data.length; index++) {
442
- const country = data[index]['country'];
443
- const cities = data[index]['cities'];
444
-
445
- generateMenuOptionHtml(initialMenu, country, country.substring(0, 3).toUpperCase());
446
-
447
- for (let indexB = 0; indexB < cities.length; indexB++) {
448
- const subMenu = document.createElement('auro-menu');
449
-
450
- generateMenuOptionHtml(subMenu, cities[indexB], cities[indexB].substring(0, 3).toUpperCase());
451
-
452
- initialMenu.appendChild(subMenu);
453
- }
454
- };
455
- }
456
-
457
- // Helper function that generates HTML for menuoptions
458
- function generateMenuOptionHtml(menu, label, value) {
459
- const option = document.createElement('auro-menuoption');
460
- const displayValue = document.createElement('div');
461
- displayValue.setAttribute("slot", "displayValue");
462
- displayValue.innerHTML = value;
463
-
464
- option.value = value;
465
- option.innerHTML = label;
466
- menu.appendChild(option);
467
- option.appendChild(displayValue);
468
- }
469
-
470
- // Main javascript that runs all JS to create example
471
- const dynamicData = new DynamicData();
472
- const dynamicMenuExampleEl = document.querySelector('#dynamicMenuExample');
473
- const dropdownEl = dynamicMenuExampleEl.shadowRoot.querySelector(dynamicMenuExampleEl.dropdownTag._$litStatic$);
474
- const inputEl = dropdownEl.querySelector(dynamicMenuExampleEl.inputTag._$litStatic$);
320
+ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement`, and `shift` attributes.
475
321
 
476
- inputEl.addEventListener('input', () => {
477
- let data = dynamicData.getData();
478
- data = dynamicData.filterData(data, inputEl.value);
322
+ - `placement` specifies the preferred position where the bib should appear relative to the trigger.
323
+ - `offset` sets the distance between the trigger and the bib.
324
+ - When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
325
+ - Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
326
+ - `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
479
327
 
480
- generateHtml(data, '#initMenu');
481
- });
328
+ <div class="exampleWrapper">
329
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floater-config.html) -->
330
+ <!-- The below content is automatically added from ./../apiExamples/floater-config.html -->
331
+ <div style="width: 350px">
332
+ <auro-combobox offset="20" noFlip placement="bottom-end">
333
+ <span slot="bib.fullscreen.headline">Bib Header</span>
334
+ <span slot="label">Label</span>
335
+ <span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
336
+ <auro-menu>
337
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
338
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
339
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
340
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
341
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
342
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
343
+ </auro-menu>
344
+ </auro-combobox>
345
+ <auro-combobox offset="20" placement="bottom-end">
346
+ <span slot="bib.fullscreen.headline">Bib Header</span>
347
+ <span slot="label">Label</span>
348
+ <span slot="helpText">bottom-end bib with 20px offset and flip</span>
349
+ <auro-menu>
350
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
351
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
352
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
353
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
354
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
355
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
356
+ </auro-menu>
357
+ </auro-combobox>
358
+ <auro-combobox offset="20" noFlip placement="right" autoPlacement>
359
+ <span slot="bib.fullscreen.headline">Bib Header</span>
360
+ <span slot="label">Label</span>
361
+ <span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
362
+ <auro-menu>
363
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
364
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
365
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
366
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
367
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
368
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
369
+ </auro-menu>
370
+ </auro-combobox>
371
+ <auro-combobox width="350px" offset="20" noFlip placement="bottom-start" shift>
372
+ <span slot="bib.fullscreen.headline">Bib Header</span>
373
+ <span slot="label">Label</span>
374
+ <span slot="helpText">bottom-start bib with 20px offset, noFlip and shift</span>
375
+ <auro-menu>
376
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
377
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
378
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
379
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
380
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
381
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
382
+ </auro-menu>
383
+ </auro-combobox>
384
+ </div>
385
+ <!-- AURO-GENERATED-CONTENT:END -->
386
+ </div>
387
+ <auro-accordion alignRight>
388
+ <span slot="trigger">See code</span>
389
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floater-config.html) -->
390
+ <!-- The below code snippet is automatically added from ./../apiExamples/floater-config.html -->
482
391
 
483
- if (dynamicMenuExampleEl.value && dynamicMenuExampleEl.value.length > 0 && dynamicMenuExampleEl.input.value && (!dynamicMenuExampleEl.menu.availableOptions || dynamicMenuExampleEl.menu.availableOptions.length === 0)) {
484
- let data = dynamicData.getData();
485
- data = dynamicData.filterData(data, inputEl.value);
486
- generateHtml(data, '#initMenu');
487
- }
488
-
489
- // TODO: Need to refactor this to to not console a console error
490
- const dynamicDataTwo = new DynamicData();
491
- const dynamicMenuExampleElTwo = document.querySelector('#dynamicMenuExampleTwo');
492
- const dropdownElTwo = dynamicMenuExampleElTwo.shadowRoot.querySelector(dynamicMenuExampleElTwo.dropdownTag._$litStatic$);
493
- const inputElTwo = dropdownElTwo.querySelector(dynamicMenuExampleElTwo.inputTag._$litStatic$);
494
-
495
- inputElTwo.addEventListener('input', () => {
496
- let data = dynamicDataTwo.getData();
497
- data = dynamicDataTwo.filterData(data, inputElTwo.value);
498
-
499
- generateHtml(data, '#initMenuTwo');
500
- });
501
-
502
- if (dynamicMenuExampleElTwo.value && dynamicMenuExampleElTwo.value.length > 0 && dynamicMenuExampleElTwo.input.value && (!dynamicMenuExampleElTwo.menu.availableOptions || dynamicMenuExampleElTwo.menu.availableOptions.length === 0)) {
503
- let data = dynamicDataTwo.getData();
504
- data = dynamicDataTwo.filterData(data, inputElTwo.value);
505
- generateHtml(data, '#initMenuTwo');
506
- }
507
- }
508
- ```
392
+ ```html
393
+ <div style="width: 350px">
394
+ <auro-combobox offset="20" noFlip placement="bottom-end">
395
+ <span slot="bib.fullscreen.headline">Bib Header</span>
396
+ <span slot="label">Label</span>
397
+ <span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
398
+ <auro-menu>
399
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
400
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
401
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
402
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
403
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
404
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
405
+ </auro-menu>
406
+ </auro-combobox>
407
+ <auro-combobox offset="20" placement="bottom-end">
408
+ <span slot="bib.fullscreen.headline">Bib Header</span>
409
+ <span slot="label">Label</span>
410
+ <span slot="helpText">bottom-end bib with 20px offset and flip</span>
411
+ <auro-menu>
412
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
413
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
414
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
415
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
416
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
417
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
418
+ </auro-menu>
419
+ </auro-combobox>
420
+ <auro-combobox offset="20" noFlip placement="right" autoPlacement>
421
+ <span slot="bib.fullscreen.headline">Bib Header</span>
422
+ <span slot="label">Label</span>
423
+ <span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
424
+ <auro-menu>
425
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
426
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
427
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
428
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
429
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
430
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
431
+ </auro-menu>
432
+ </auro-combobox>
433
+ <auro-combobox width="350px" offset="20" noFlip placement="bottom-start" shift>
434
+ <span slot="bib.fullscreen.headline">Bib Header</span>
435
+ <span slot="label">Label</span>
436
+ <span slot="helpText">bottom-start bib with 20px offset, noFlip and shift</span>
437
+ <auro-menu>
438
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
439
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
440
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
441
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
442
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
443
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
444
+ </auro-menu>
445
+ </auro-combobox>
446
+ </div>
447
+ ```
509
448
  <!-- AURO-GENERATED-CONTENT:END -->
510
449
  </auro-accordion>
511
450
 
512
- ### Persistent Input
513
-
514
- 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.
515
-
516
- 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.
451
+ ### Disabled
517
452
 
518
- 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.
519
-
520
- _*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.
453
+ Use the `disabled` attribute to disable the combobox.
521
454
 
522
455
  <div class="exampleWrapper">
523
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/persistInput.html) -->
524
- <!-- The below content is automatically added from ./../apiExamples/persistInput.html -->
525
- <auro-combobox
526
- required
527
- persistInput
528
- setCustomValidityValueMissing="Please select an option from the list."
529
- >
530
- <span slot="bib.fullscreen.headline">Persistant Input</span>
531
- <span slot="label">Persistant Input</span>
456
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
457
+ <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
458
+ <auro-combobox disabled>
459
+ <span slot="bib.fullscreen.headline">Bib Header</span>
460
+ <span slot="label">Name</span>
532
461
  <auro-menu>
533
- <auro-menuoption value="Apples" id="option-0">
534
- Apples
535
- <div slot="displayValue">Apples</div>
536
- </auro-menuoption>
537
- <auro-menuoption value="Oranges" id="option-1">
538
- Oranges
539
- <div slot="displayValue">Oranges</div>
540
- </auro-menuoption>
541
- <auro-menuoption value="Peaches" id="option-2">
542
- Peaches
543
- <div slot="displayValue">Peaches</div>
544
- </auro-menuoption>
545
- <auro-menuoption value="Grapes" id="option-3">
546
- Grapes
547
- <div slot="displayValue">Grapes</div>
548
- </auro-menuoption>
549
- <auro-menuoption value="Cherries" id="option-4">
550
- Cherries
551
- <div slot="displayValue">Cherries</div>
552
- </auro-menuoption>
462
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
463
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
464
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
465
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
466
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
467
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
468
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
553
469
  </auro-menu>
554
470
  </auro-combobox>
555
471
  <!-- AURO-GENERATED-CONTENT:END -->
556
472
  </div>
557
- <auro-accordion alignRight>
558
- <span slot="trigger">See code</span>
559
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/persistInput.html) -->
560
- <!-- The below code snippet is automatically added from ./../apiExamples/persistInput.html -->
561
-
562
- ```html
563
- <auro-combobox
564
- required
565
- persistInput
566
- setCustomValidityValueMissing="Please select an option from the list."
567
- >
568
- <span slot="bib.fullscreen.headline">Persistant Input</span>
569
- <span slot="label">Persistant Input</span>
570
- <auro-menu>
571
- <auro-menuoption value="Apples" id="option-0">
572
- Apples
573
- <div slot="displayValue">Apples</div>
574
- </auro-menuoption>
575
- <auro-menuoption value="Oranges" id="option-1">
576
- Oranges
577
- <div slot="displayValue">Oranges</div>
578
- </auro-menuoption>
579
- <auro-menuoption value="Peaches" id="option-2">
580
- Peaches
581
- <div slot="displayValue">Peaches</div>
582
- </auro-menuoption>
583
- <auro-menuoption value="Grapes" id="option-3">
584
- Grapes
585
- <div slot="displayValue">Grapes</div>
586
- </auro-menuoption>
587
- <auro-menuoption value="Cherries" id="option-4">
588
- Cherries
589
- <div slot="displayValue">Cherries</div>
590
- </auro-menuoption>
591
- </auro-menu>
592
- </auro-combobox>
593
- ```
594
- <!-- AURO-GENERATED-CONTENT:END -->
595
- </auro-accordion>
596
-
597
- ### Updating Externally
598
-
599
- This example demonstrates using the <code>updateActiveOption</code> method to set a specific menu option as "active."
600
-
601
- This is useful for situations like matching IATA codes (sea -> SeaTac airport)
602
-
603
- <div class="exampleWrapper--ondark">
604
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/externalSelection.html) -->
605
- <!-- The below content is automatically added from ./../apiExamples/externalSelection.html -->
606
- <p style="color: white;">
607
- Type 'a' in the combobox for best testing results :)
608
- </p>
609
- <auro-combobox appearance="inverse" id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
610
- <span slot="ariaLabel.bib.close">Close combobox</span>
611
- <span slot="ariaLabel.input.clear">Clear All</span>
473
+ <div class="exampleWrapper--ondark" aria-hidden>
474
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
475
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
476
+ <auro-combobox appearance="inverse" disabled>
612
477
  <span slot="bib.fullscreen.headline">Bib Header</span>
613
478
  <span slot="label">Name</span>
614
479
  <auro-menu>
@@ -617,26 +482,19 @@ This is useful for situations like matching IATA codes (sea -> SeaTac airport)
617
482
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
618
483
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
619
484
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
485
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
620
486
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
621
487
  </auro-menu>
622
- <span slot="helpText">
623
- Help text - Lorem ipsum solar lorem ipsum solar
624
- </span>
625
488
  </auro-combobox>
626
489
  <!-- AURO-GENERATED-CONTENT:END -->
627
490
  </div>
628
491
  <auro-accordion alignRight>
629
492
  <span slot="trigger">See code</span>
630
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/externalSelection.html) -->
631
- <!-- The below code snippet is automatically added from ./../apiExamples/externalSelection.html -->
493
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
494
+ <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
632
495
 
633
496
  ```html
634
- <p style="color: white;">
635
- Type 'a' in the combobox for best testing results :)
636
- </p>
637
- <auro-combobox appearance="inverse" id="externalSelectionExample" layout="classic" shape="classic" size="lg" placeholder="Placeholder content" required style="width: 249px;">
638
- <span slot="ariaLabel.bib.close">Close combobox</span>
639
- <span slot="ariaLabel.input.clear">Clear All</span>
497
+ <auro-combobox disabled>
640
498
  <span slot="bib.fullscreen.headline">Bib Header</span>
641
499
  <span slot="label">Name</span>
642
500
  <auro-menu>
@@ -645,51 +503,41 @@ This is useful for situations like matching IATA codes (sea -> SeaTac airport)
645
503
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
646
504
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
647
505
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
506
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
648
507
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
649
508
  </auro-menu>
650
- <span slot="helpText">
651
- Help text - Lorem ipsum solar lorem ipsum solar
652
- </span>
653
509
  </auro-combobox>
654
510
  ```
655
511
  <!-- AURO-GENERATED-CONTENT:END -->
656
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/externalSelection.js) -->
657
- <!-- The below code snippet is automatically added from ./../apiExamples/externalSelection.js -->
512
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-disabled.html) -->
513
+ <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
658
514
 
659
- ```js
660
- import { AuroCombobox } from "../src/auro-combobox";
661
-
662
- /**
663
- * Demonstrates how to make external selection in the combobox.
664
- */
665
- export function setupExternalSelectionExample() {
666
-
667
- /** @type {AuroCombobox} */
668
- const combobox = document.getElementById('externalSelectionExample');
669
-
670
- combobox.addEventListener('input', () => {
671
- // Perform whatever matching logic you need here
672
-
673
- // This comes from your custom code, for example matching SEA to SeaTac IATA code.
674
- // This matches "peaches" as configured.
675
- const matchingMenuOption = 2;
676
- combobox.updateActiveOption(matchingMenuOption);
677
- });
678
- }
679
- ```
515
+ ```html
516
+ <auro-combobox appearance="inverse" disabled>
517
+ <span slot="bib.fullscreen.headline">Bib Header</span>
518
+ <span slot="label">Name</span>
519
+ <auro-menu>
520
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
521
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
522
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
523
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
524
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
525
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
526
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
527
+ </auro-menu>
528
+ </auro-combobox>
529
+ ```
680
530
  <!-- AURO-GENERATED-CONTENT:END -->
681
531
  </auro-accordion>
682
532
 
683
- ### Property Examples
684
-
685
- #### disabled
533
+ #### Error
686
534
 
687
- If set, disables the combobox.
535
+ Using the `error` attribute with a given message sets a persistent error state (e.g. an error state returned from the server).
688
536
 
689
537
  <div class="exampleWrapper">
690
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
691
- <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
692
- <auro-combobox disabled>
538
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
539
+ <!-- The below content is automatically added from ./../apiExamples/error.html -->
540
+ <auro-combobox error="Custom error message">
693
541
  <span slot="bib.fullscreen.headline">Bib Header</span>
694
542
  <span slot="label">Name</span>
695
543
  <auro-menu>
@@ -705,9 +553,9 @@ If set, disables the combobox.
705
553
  <!-- AURO-GENERATED-CONTENT:END -->
706
554
  </div>
707
555
  <div class="exampleWrapper--ondark" aria-hidden>
708
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
709
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
710
- <auro-combobox appearance="inverse" disabled>
556
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
557
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
558
+ <auro-combobox appearance="inverse" error="Custom error message">
711
559
  <span slot="bib.fullscreen.headline">Bib Header</span>
712
560
  <span slot="label">Name</span>
713
561
  <auro-menu>
@@ -724,11 +572,11 @@ If set, disables the combobox.
724
572
  </div>
725
573
  <auro-accordion alignRight>
726
574
  <span slot="trigger">See code</span>
727
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
728
- <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
575
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
576
+ <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
729
577
 
730
578
  ```html
731
- <auro-combobox disabled>
579
+ <auro-combobox error="Custom error message">
732
580
  <span slot="bib.fullscreen.headline">Bib Header</span>
733
581
  <span slot="label">Name</span>
734
582
  <auro-menu>
@@ -743,9 +591,11 @@ If set, disables the combobox.
743
591
  </auro-combobox>
744
592
  ```
745
593
  <!-- AURO-GENERATED-CONTENT:END -->
746
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
747
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
748
- <auro-combobox appearance="inverse" disabled>
594
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-error.html) -->
595
+ <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-error.html -->
596
+
597
+ ```html
598
+ <auro-combobox appearance="inverse" error="Custom error message">
749
599
  <span slot="bib.fullscreen.headline">Bib Header</span>
750
600
  <span slot="label">Name</span>
751
601
  <auro-menu>
@@ -757,13 +607,63 @@ If set, disables the combobox.
757
607
  <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
758
608
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
759
609
  </auro-menu>
760
- </auro-combobox>
610
+ </auro-combobox>
611
+ ```
612
+ <!-- AURO-GENERATED-CONTENT:END -->
613
+ </auro-accordion>
614
+
615
+ ### Fullscreen Bib
616
+
617
+ You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
618
+
619
+ The default value of `fullscreenBreakpoint` is `sm`.
620
+
621
+ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/developers/design-tokens).
622
+
623
+ To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMMENDED**.
624
+
625
+ <div class="exampleWrapper">
626
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen-breakpoint.html) -->
627
+ <!-- The below content is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
628
+ <auro-combobox fullscreenBreakpoint="lg">
629
+ <span slot="bib.fullscreen.headline">Bib Header</span>
630
+ <span slot="label">Name</span>
631
+ <auro-menu>
632
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
633
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
634
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
635
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
636
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
637
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
638
+ </auro-menu>
639
+ </auro-combobox>
640
+ <!-- AURO-GENERATED-CONTENT:END -->
641
+ </div>
642
+ <auro-accordion alignRight>
643
+ <span slot="trigger">See code</span>
644
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fullscreen-breakpoint.html) -->
645
+ <!-- The below code snippet is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
646
+
647
+ ```html
648
+ <auro-combobox fullscreenBreakpoint="lg">
649
+ <span slot="bib.fullscreen.headline">Bib Header</span>
650
+ <span slot="label">Name</span>
651
+ <auro-menu>
652
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
653
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
654
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
655
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
656
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
657
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
658
+ </auro-menu>
659
+ </auro-combobox>
660
+ ```
761
661
  <!-- AURO-GENERATED-CONTENT:END -->
762
662
  </auro-accordion>
763
663
 
764
- #### Input Mode
664
+ ### Input Mode
765
665
 
766
- You can manually set the input mode for the input.
666
+ You can manually set the `inputmode` for the input.
767
667
 
768
668
  <div class="exampleWrapper">
769
669
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
@@ -804,15 +704,19 @@ You can manually set the input mode for the input.
804
704
  <!-- AURO-GENERATED-CONTENT:END -->
805
705
  </auro-accordion>
806
706
 
807
- #### noFilter
707
+ ### Layouts
708
+
709
+ #### Emphasized
808
710
 
809
- If set, combobox will not do suggestion filtering of the menuoptions. This option is useful when the `<auro-menuoption>` elements are being pre-filtered externally to combobox (e.g. using the citysearch API).
711
+ Use `layout="emphasized"` to apply the emphasized style to the combobox. This layout is designed for use on light backgrounds.
810
712
 
811
713
  <div class="exampleWrapper">
812
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/noFilter.html) -->
813
- <!-- The below content is automatically added from ./../apiExamples/noFilter.html -->
814
- <auro-combobox noFilter>
815
- <span slot="bib.fullscreen.headline">noFilter Combobox Header</span>
714
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
715
+ <!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
716
+ <auro-combobox layout="emphasized" value="Oranges" shape="pill" size="xl" placeholder="Placeholder content" required style="width: 249px;">
717
+ <span slot="ariaLabel.bib.close">Close combobox</span>
718
+ <span slot="ariaLabel.input.clear">Clear All</span>
719
+ <span slot="bib.fullscreen.headline">Bib Header</span>
816
720
  <span slot="label">Name</span>
817
721
  <auro-menu>
818
722
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
@@ -822,17 +726,28 @@ If set, combobox will not do suggestion filtering of the menuoptions. This optio
822
726
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
823
727
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
824
728
  </auro-menu>
729
+ <span slot="helpText">
730
+ Help text - Lorem ipsum solar lorem ipsum solar
731
+ </span>
732
+ <span slot="displayValue">
733
+ <div>
734
+ <div class="mainText">Apples</div>
735
+ <div class="subText">Fruit</div>
736
+ </div>
737
+ </span>
825
738
  </auro-combobox>
826
739
  <!-- AURO-GENERATED-CONTENT:END -->
827
- </div>
740
+ </div>
828
741
  <auro-accordion alignRight>
829
742
  <span slot="trigger">See code</span>
830
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/noFilter.html) -->
831
- <!-- The below code snippet is automatically added from ./../apiExamples/noFilter.html -->
743
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/emphasized/basic.html) -->
744
+ <!-- The below code snippet is automatically added from ./../apiExamples/emphasized/basic.html -->
832
745
 
833
746
  ```html
834
- <auro-combobox noFilter>
835
- <span slot="bib.fullscreen.headline">noFilter Combobox Header</span>
747
+ <auro-combobox layout="emphasized" value="Oranges" shape="pill" size="xl" placeholder="Placeholder content" required style="width: 249px;">
748
+ <span slot="ariaLabel.bib.close">Close combobox</span>
749
+ <span slot="ariaLabel.input.clear">Clear All</span>
750
+ <span slot="bib.fullscreen.headline">Bib Header</span>
836
751
  <span slot="label">Name</span>
837
752
  <auro-menu>
838
753
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
@@ -842,37 +757,30 @@ If set, combobox will not do suggestion filtering of the menuoptions. This optio
842
757
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
843
758
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
844
759
  </auro-menu>
760
+ <span slot="helpText">
761
+ Help text - Lorem ipsum solar lorem ipsum solar
762
+ </span>
763
+ <span slot="displayValue">
764
+ <div>
765
+ <div class="mainText">Apples</div>
766
+ <div class="subText">Fruit</div>
767
+ </div>
768
+ </span>
845
769
  </auro-combobox>
846
770
  ```
847
771
  <!-- AURO-GENERATED-CONTENT:END -->
848
772
  </auro-accordion>
849
773
 
850
- #### error
774
+ #### Snowflake
851
775
 
852
- Sets a persistent error state (e.g. an error state returned from the server).
776
+ Use `layout="snowflake"`, with `shape="snowflake"` and `appearance="inverse"` to apply the snowflake style to the combobox. This layout is designed for use on dark backgrounds.
853
777
 
854
- <div class="exampleWrapper">
855
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
856
- <!-- The below content is automatically added from ./../apiExamples/error.html -->
857
- <auro-combobox error="Custom error message">
858
- <span slot="bib.fullscreen.headline">Bib Header</span>
859
- <span slot="label">Name</span>
860
- <auro-menu>
861
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
862
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
863
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
864
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
865
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
866
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
867
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
868
- </auro-menu>
869
- </auro-combobox>
870
- <!-- AURO-GENERATED-CONTENT:END -->
871
- </div>
872
- <div class="exampleWrapper--ondark" aria-hidden>
873
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceError.html) -->
874
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceError.html -->
875
- <auro-combobox appearance="inverse" error="Custom error message">
778
+ <div class="exampleWrapper--ondark">
779
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
780
+ <!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
781
+ <auro-combobox layout="snowflake" shape="snowflake" size="lg" placeholder="Placeholder content" required appearance="inverse" style="width: 249px;">
782
+ <span slot="ariaLabel.bib.close">Close combobox</span>
783
+ <span slot="ariaLabel.input.clear">Clear All</span>
876
784
  <span slot="bib.fullscreen.headline">Bib Header</span>
877
785
  <span slot="label">Name</span>
878
786
  <auro-menu>
@@ -881,19 +789,23 @@ Sets a persistent error state (e.g. an error state returned from the server).
881
789
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
882
790
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
883
791
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
884
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
885
792
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
886
793
  </auro-menu>
794
+ <span slot="helpText">
795
+ Help text - Lorem ipsum solar lorem ipsum solar
796
+ </span>
887
797
  </auro-combobox>
888
798
  <!-- AURO-GENERATED-CONTENT:END -->
889
799
  </div>
890
800
  <auro-accordion alignRight>
891
801
  <span slot="trigger">See code</span>
892
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
893
- <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
802
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic.html) -->
803
+ <!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic.html -->
894
804
 
895
805
  ```html
896
- <auro-combobox error="Custom error message">
806
+ <auro-combobox layout="snowflake" shape="snowflake" size="lg" placeholder="Placeholder content" required appearance="inverse" style="width: 249px;">
807
+ <span slot="ariaLabel.bib.close">Close combobox</span>
808
+ <span slot="ariaLabel.input.clear">Clear All</span>
897
809
  <span slot="bib.fullscreen.headline">Bib Header</span>
898
810
  <span slot="label">Name</span>
899
811
  <auro-menu>
@@ -902,39 +814,25 @@ Sets a persistent error state (e.g. an error state returned from the server).
902
814
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
903
815
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
904
816
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
905
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
906
817
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
907
818
  </auro-menu>
819
+ <span slot="helpText">
820
+ Help text - Lorem ipsum solar lorem ipsum solar
821
+ </span>
908
822
  </auro-combobox>
909
823
  ```
910
824
  <!-- AURO-GENERATED-CONTENT:END -->
911
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceError.html) -->
912
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceError.html -->
913
- <auro-combobox appearance="inverse" error="Custom error message">
914
- <span slot="bib.fullscreen.headline">Bib Header</span>
915
- <span slot="label">Name</span>
916
- <auro-menu>
917
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
918
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
919
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
920
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
921
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
922
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
923
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
924
- </auro-menu>
925
- </auro-combobox>
926
- <!-- AURO-GENERATED-CONTENT:END -->
927
825
  </auro-accordion>
928
826
 
929
- #### noValidate
827
+ ### Turn off Filtering
930
828
 
931
- Intended for use with the `required` attribute. If set, disables auto-validation on blur. By using these two attributes in combination the validation for required fields is still computed for forms but no validation messaging will be generated in the UI.
829
+ If set, combobox will not do suggestion filtering of the menuoptions. This option is useful when the `<auro-menuoption>` elements are being pre-filtered externally to combobox (e.g. using the citysearch API).
932
830
 
933
831
  <div class="exampleWrapper">
934
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/noValidate.html) -->
935
- <!-- The below content is automatically added from ./../apiExamples/noValidate.html -->
936
- <auro-combobox required noValidate>
937
- <span slot="bib.fullscreen.headline">noValidate Combobox Header</span>
832
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-filter.html) -->
833
+ <!-- The below content is automatically added from ./../apiExamples/no-filter.html -->
834
+ <auro-combobox noFilter>
835
+ <span slot="bib.fullscreen.headline">noFilter Combobox Header</span>
938
836
  <span slot="label">Name</span>
939
837
  <auro-menu>
940
838
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
@@ -942,7 +840,6 @@ Intended for use with the `required` attribute. If set, disables auto-validation
942
840
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
943
841
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
944
842
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
945
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
946
843
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
947
844
  </auro-menu>
948
845
  </auro-combobox>
@@ -950,12 +847,12 @@ Intended for use with the `required` attribute. If set, disables auto-validation
950
847
  </div>
951
848
  <auro-accordion alignRight>
952
849
  <span slot="trigger">See code</span>
953
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/noValidate.html) -->
954
- <!-- The below code snippet is automatically added from ./../apiExamples/noValidate.html -->
850
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-filter.html) -->
851
+ <!-- The below code snippet is automatically added from ./../apiExamples/no-filter.html -->
955
852
 
956
853
  ```html
957
- <auro-combobox required noValidate>
958
- <span slot="bib.fullscreen.headline">noValidate Combobox Header</span>
854
+ <auro-combobox noFilter>
855
+ <span slot="bib.fullscreen.headline">noFilter Combobox Header</span>
959
856
  <span slot="label">Name</span>
960
857
  <auro-menu>
961
858
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
@@ -963,7 +860,6 @@ Intended for use with the `required` attribute. If set, disables auto-validation
963
860
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
964
861
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
965
862
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
966
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
967
863
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
968
864
  </auro-menu>
969
865
  </auro-combobox>
@@ -971,15 +867,17 @@ Intended for use with the `required` attribute. If set, disables auto-validation
971
867
  <!-- AURO-GENERATED-CONTENT:END -->
972
868
  </auro-accordion>
973
869
 
974
- #### required
870
+ ### Turn off Validation
975
871
 
976
- Populates the `required` attribute on the input. Used for client-side validation.
872
+ Set the `noValidate` attribute to disable auto-validation on blur. This is intended for use with the `required` attribute.
873
+
874
+ By using these two attributes in combination, the validation for required fields is still computed for forms but no validation messaging will be generated in the UI.
977
875
 
978
876
  <div class="exampleWrapper">
979
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
980
- <!-- The below content is automatically added from ./../apiExamples/required.html -->
981
- <auro-combobox required>
982
- <span slot="bib.fullscreen.headline">Bib Header</span>
877
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-validate.html) -->
878
+ <!-- The below content is automatically added from ./../apiExamples/no-validate.html -->
879
+ <auro-combobox required noValidate>
880
+ <span slot="bib.fullscreen.headline">noValidate Combobox Header</span>
983
881
  <span slot="label">Name</span>
984
882
  <auro-menu>
985
883
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
@@ -995,12 +893,12 @@ Populates the `required` attribute on the input. Used for client-side validation
995
893
  </div>
996
894
  <auro-accordion alignRight>
997
895
  <span slot="trigger">See code</span>
998
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
999
- <!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
896
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-validate.html) -->
897
+ <!-- The below code snippet is automatically added from ./../apiExamples/no-validate.html -->
1000
898
 
1001
899
  ```html
1002
- <auro-combobox required>
1003
- <span slot="bib.fullscreen.headline">Bib Header</span>
900
+ <auro-combobox required noValidate>
901
+ <span slot="bib.fullscreen.headline">noValidate Combobox Header</span>
1004
902
  <span slot="label">Name</span>
1005
903
  <auro-menu>
1006
904
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
@@ -1016,58 +914,99 @@ Populates the `required` attribute on the input. Used for client-side validation
1016
914
  <!-- AURO-GENERATED-CONTENT:END -->
1017
915
  </auro-accordion>
1018
916
 
1019
- ### Custom optional label <a name="optionalLabel"></a>
1020
- The `<auro-combobox>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
917
+ ### Persistent Input
918
+
919
+ The `persistInput` attribute allows you to set the combobox to persist the value of the input regardless of the current value set for the combobox.
920
+
921
+ 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.
922
+
923
+ 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.
924
+
925
+ **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.
1021
926
 
1022
927
  <div class="exampleWrapper">
1023
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
1024
- <!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
1025
- <auro-combobox>
1026
- <span slot="bib.fullscreen.headline">Bib Header</span>
1027
- <span slot="label">Name</span>
1028
- <span slot="optionalLabel" style="font-size: small; color: grey"> - optional</span>
928
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/persist-input.html) -->
929
+ <!-- The below content is automatically added from ./../apiExamples/persist-input.html -->
930
+ <auro-combobox
931
+ required
932
+ persistInput
933
+ setCustomValidityValueMissing="Please select an option from the list."
934
+ >
935
+ <span slot="bib.fullscreen.headline">Persistant Input</span>
936
+ <span slot="label">Persistant Input</span>
1029
937
  <auro-menu>
1030
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1031
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1032
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1033
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1034
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1035
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
938
+ <auro-menuoption value="Apples" id="option-0">
939
+ Apples
940
+ <div slot="displayValue">Apples</div>
941
+ </auro-menuoption>
942
+ <auro-menuoption value="Oranges" id="option-1">
943
+ Oranges
944
+ <div slot="displayValue">Oranges</div>
945
+ </auro-menuoption>
946
+ <auro-menuoption value="Peaches" id="option-2">
947
+ Peaches
948
+ <div slot="displayValue">Peaches</div>
949
+ </auro-menuoption>
950
+ <auro-menuoption value="Grapes" id="option-3">
951
+ Grapes
952
+ <div slot="displayValue">Grapes</div>
953
+ </auro-menuoption>
954
+ <auro-menuoption value="Cherries" id="option-4">
955
+ Cherries
956
+ <div slot="displayValue">Cherries</div>
957
+ </auro-menuoption>
1036
958
  </auro-menu>
1037
959
  </auro-combobox>
1038
960
  <!-- AURO-GENERATED-CONTENT:END -->
1039
961
  </div>
1040
962
  <auro-accordion alignRight>
1041
963
  <span slot="trigger">See code</span>
1042
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
1043
- <!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
964
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/persist-input.html) -->
965
+ <!-- The below code snippet is automatically added from ./../apiExamples/persist-input.html -->
1044
966
 
1045
967
  ```html
1046
- <auro-combobox>
1047
- <span slot="bib.fullscreen.headline">Bib Header</span>
1048
- <span slot="label">Name</span>
1049
- <span slot="optionalLabel" style="font-size: small; color: grey"> - optional</span>
968
+ <auro-combobox
969
+ required
970
+ persistInput
971
+ setCustomValidityValueMissing="Please select an option from the list."
972
+ >
973
+ <span slot="bib.fullscreen.headline">Persistant Input</span>
974
+ <span slot="label">Persistant Input</span>
1050
975
  <auro-menu>
1051
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1052
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1053
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1054
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1055
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1056
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
976
+ <auro-menuoption value="Apples" id="option-0">
977
+ Apples
978
+ <div slot="displayValue">Apples</div>
979
+ </auro-menuoption>
980
+ <auro-menuoption value="Oranges" id="option-1">
981
+ Oranges
982
+ <div slot="displayValue">Oranges</div>
983
+ </auro-menuoption>
984
+ <auro-menuoption value="Peaches" id="option-2">
985
+ Peaches
986
+ <div slot="displayValue">Peaches</div>
987
+ </auro-menuoption>
988
+ <auro-menuoption value="Grapes" id="option-3">
989
+ Grapes
990
+ <div slot="displayValue">Grapes</div>
991
+ </auro-menuoption>
992
+ <auro-menuoption value="Cherries" id="option-4">
993
+ Cherries
994
+ <div slot="displayValue">Cherries</div>
995
+ </auro-menuoption>
1057
996
  </auro-menu>
1058
997
  </auro-combobox>
1059
998
  ```
1060
999
  <!-- AURO-GENERATED-CONTENT:END -->
1061
1000
  </auro-accordion>
1062
1001
 
1063
- #### value
1002
+ ### Required
1064
1003
 
1065
- Use the `value` attribute to programmatically set the value of the combobox.
1004
+ Populates the `required` attribute on the input. Used for client-side validation.
1066
1005
 
1067
1006
  <div class="exampleWrapper">
1068
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticValue.html) -->
1069
- <!-- The below content is automatically added from ./../apiExamples/programmaticValue.html -->
1070
- <auro-combobox>
1007
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
1008
+ <!-- The below content is automatically added from ./../apiExamples/required.html -->
1009
+ <auro-combobox required>
1071
1010
  <span slot="bib.fullscreen.headline">Bib Header</span>
1072
1011
  <span slot="label">Name</span>
1073
1012
  <auro-menu>
@@ -1081,14 +1020,14 @@ Use the `value` attribute to programmatically set the value of the combobox.
1081
1020
  </auro-menu>
1082
1021
  </auro-combobox>
1083
1022
  <!-- AURO-GENERATED-CONTENT:END -->
1084
- </div>
1023
+ </div>
1085
1024
  <auro-accordion alignRight>
1086
1025
  <span slot="trigger">See code</span>
1087
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmaticValue.html) -->
1088
- <!-- The below code snippet is automatically added from ./../apiExamples/programmaticValue.html -->
1026
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/required.html) -->
1027
+ <!-- The below code snippet is automatically added from ./../apiExamples/required.html -->
1089
1028
 
1090
1029
  ```html
1091
- <auro-combobox>
1030
+ <auro-combobox required>
1092
1031
  <span slot="bib.fullscreen.headline">Bib Header</span>
1093
1032
  <span slot="label">Name</span>
1094
1033
  <auro-menu>
@@ -1105,94 +1044,86 @@ Use the `value` attribute to programmatically set the value of the combobox.
1105
1044
  <!-- AURO-GENERATED-CONTENT:END -->
1106
1045
  </auro-accordion>
1107
1046
 
1108
- #### Dynamically Set Value
1109
-
1110
- Use the `value` attribute in combination with another element to dynamically set the value of the combobox.
1111
-
1112
- Can be used in the following ways:
1113
- * Preset the value of the combobox to valid menu option
1114
- * Set the value of the combobox to invalid menu option
1115
- * Reset the value of the combobox to undefined
1047
+ ### Type
1116
1048
 
1117
- Note: using a value that does not match a menu option will reset the combobox value to undefined.
1049
+ When defined, the `auro-input` in the combobox trigger will use the defined `type`. These examples use the `triggerIcon` attribute to provide context to the user about the expected input type.
1050
+
1051
+ #### Credit Card
1118
1052
 
1119
1053
  <div class="exampleWrapper">
1120
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/value.html) -->
1121
- <!-- The below content is automatically added from ./../apiExamples/value.html -->
1122
- <auro-button id="valueValidExampleBtn">Set to an existing option</auro-button>
1123
- <auro-button id="valueInvalidExampleBtn">Set to custom value</auro-button>
1124
- <auro-button id="valueUndefinedExampleBtn">Reset</auro-button>
1125
- <br/><br/>
1126
- <auro-combobox id="valueExample">
1127
- <span slot="bib.fullscreen.headline">Bib Header</span>
1128
- <span slot="label">Name</span>
1054
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/type_credit-card.html) -->
1055
+ <!-- The below content is automatically added from ./../apiExamples/type_credit-card.html -->
1056
+ <auro-combobox type="credit-card" triggerIcon>
1057
+ <span slot="bib.fullscreen.headline">Credit Card</span>
1058
+ <span slot="label">Credit Card Number</span>
1129
1059
  <auro-menu>
1130
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1131
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1132
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1133
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1134
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1135
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1136
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
1060
+ <auro-menuoption value="4500000000000000" id="option-cc-0">
1061
+ <auro-icon category="payment" customcolor name="cc-visa"></auro-icon>
1062
+ 4000 0000 0000 0000
1063
+ </auro-menuoption>
1064
+ <auro-menuoption value="340000000000000" id="option-cc-1">
1065
+ <auro-icon category="payment" customcolor name="cc-amex"></auro-icon>
1066
+ 3400 000000 00000
1067
+ </auro-menuoption>
1068
+ <auro-menuoption value="30000000000000" id="option-cc-2">
1069
+ <auro-icon category="payment" customcolor name="credit-card"></auro-icon>
1070
+ 3000 000000 0000
1071
+ </auro-menuoption>
1072
+ <auro-menuoption value="5100000000000000" id="option-cc-4">
1073
+ <auro-icon category="payment" customcolor name="cc-mastercard"></auro-icon>
1074
+ 5000 0000 0000 0000
1075
+ </auro-menuoption>
1076
+ <auro-menuoption value="6011000000000000" id="option-cc-5">
1077
+ <auro-icon category="payment" customcolor name="cc-discover"></auro-icon>
1078
+ 6000 0000 0000 0000
1079
+ </auro-menuoption>
1080
+ <auro-menuoption static nomatch>No matching credit card saved</auro-menuoption>
1137
1081
  </auro-menu>
1138
1082
  </auro-combobox>
1139
1083
  <!-- AURO-GENERATED-CONTENT:END -->
1140
1084
  </div>
1141
1085
  <auro-accordion alignRight>
1142
1086
  <span slot="trigger">See code</span>
1143
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/value.html) -->
1144
- <!-- The below code snippet is automatically added from ./../apiExamples/value.html -->
1087
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/type_credit-card.html) -->
1088
+ <!-- The below code snippet is automatically added from ./../apiExamples/type_credit-card.html -->
1145
1089
 
1146
1090
  ```html
1147
- <auro-button id="valueValidExampleBtn">Set to an existing option</auro-button>
1148
- <auro-button id="valueInvalidExampleBtn">Set to custom value</auro-button>
1149
- <auro-button id="valueUndefinedExampleBtn">Reset</auro-button>
1150
- <br/><br/>
1151
- <auro-combobox id="valueExample">
1152
- <span slot="bib.fullscreen.headline">Bib Header</span>
1153
- <span slot="label">Name</span>
1091
+ <auro-combobox type="credit-card" triggerIcon>
1092
+ <span slot="bib.fullscreen.headline">Credit Card</span>
1093
+ <span slot="label">Credit Card Number</span>
1154
1094
  <auro-menu>
1155
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1156
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1157
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1158
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1159
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1160
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1161
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
1095
+ <auro-menuoption value="4500000000000000" id="option-cc-0">
1096
+ <auro-icon category="payment" customcolor name="cc-visa"></auro-icon>
1097
+ 4000 0000 0000 0000
1098
+ </auro-menuoption>
1099
+ <auro-menuoption value="340000000000000" id="option-cc-1">
1100
+ <auro-icon category="payment" customcolor name="cc-amex"></auro-icon>
1101
+ 3400 000000 00000
1102
+ </auro-menuoption>
1103
+ <auro-menuoption value="30000000000000" id="option-cc-2">
1104
+ <auro-icon category="payment" customcolor name="credit-card"></auro-icon>
1105
+ 3000 000000 0000
1106
+ </auro-menuoption>
1107
+ <auro-menuoption value="5100000000000000" id="option-cc-4">
1108
+ <auro-icon category="payment" customcolor name="cc-mastercard"></auro-icon>
1109
+ 5000 0000 0000 0000
1110
+ </auro-menuoption>
1111
+ <auro-menuoption value="6011000000000000" id="option-cc-5">
1112
+ <auro-icon category="payment" customcolor name="cc-discover"></auro-icon>
1113
+ 6000 0000 0000 0000
1114
+ </auro-menuoption>
1115
+ <auro-menuoption static nomatch>No matching credit card saved</auro-menuoption>
1162
1116
  </auro-menu>
1163
1117
  </auro-combobox>
1164
1118
  ```
1165
1119
  <!-- AURO-GENERATED-CONTENT:END -->
1166
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/value.js) -->
1167
- <!-- The below code snippet is automatically added from ./../apiExamples/value.js -->
1168
-
1169
- ```js
1170
- export function valueExample() {
1171
- const valueExample = document.querySelector('#valueExample');
1172
-
1173
- document.querySelector('#valueValidExampleBtn').addEventListener('click', () => {
1174
- valueExample.value = 'Oranges';
1175
- });
1176
-
1177
- document.querySelector('#valueInvalidExampleBtn').addEventListener('click', () => {
1178
- valueExample.value = 'Dragon Fruit';
1179
- });
1180
-
1181
- document.querySelector('#valueUndefinedExampleBtn').addEventListener('click', () => {
1182
- valueExample.value = undefined;
1183
- });
1184
- }
1185
- ```
1186
- <!-- AURO-GENERATED-CONTENT:END -->
1187
1120
  </auro-accordion>
1188
1121
 
1189
- #### type
1190
-
1191
- When defined, the `auro-input` in the combobox trigger will use the defined `type` (e.g. `credit-card`).
1122
+ #### Month-Day-Year
1192
1123
 
1193
1124
  <div class="exampleWrapper">
1194
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/typeMonthDayYear.html) -->
1195
- <!-- The below content is automatically added from ./../apiExamples/typeMonthDayYear.html -->
1125
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/type_month-day-year.html) -->
1126
+ <!-- The below content is automatically added from ./../apiExamples/type_month-day-year.html -->
1196
1127
  <auro-combobox type="date" triggerIcon>
1197
1128
  <span slot="bib.fullscreen.headline">Date Combobox Header</span>
1198
1129
  <span slot="label">Date</span>
@@ -1209,8 +1140,8 @@ When defined, the `auro-input` in the combobox trigger will use the defined `typ
1209
1140
  </div>
1210
1141
  <auro-accordion alignRight>
1211
1142
  <span slot="trigger">See code</span>
1212
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/typeMonthDayYear.html) -->
1213
- <!-- The below code snippet is automatically added from ./../apiExamples/typeMonthDayYear.html -->
1143
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/type_month-day-year.html) -->
1144
+ <!-- The below code snippet is automatically added from ./../apiExamples/type_month-day-year.html -->
1214
1145
 
1215
1146
  ```html
1216
1147
  <auro-combobox type="date" triggerIcon>
@@ -1229,11 +1160,56 @@ When defined, the `auro-input` in the combobox trigger will use the defined `typ
1229
1160
  <!-- AURO-GENERATED-CONTENT:END -->
1230
1161
  </auro-accordion>
1231
1162
 
1232
- ### Method Examples
1163
+ ### Value
1164
+
1165
+ Use the `value` attribute to programmatically set the value of the combobox.
1166
+
1167
+ <div class="exampleWrapper">
1168
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmatic-value.html) -->
1169
+ <!-- The below content is automatically added from ./../apiExamples/programmatic-value.html -->
1170
+ <auro-combobox>
1171
+ <span slot="bib.fullscreen.headline">Bib Header</span>
1172
+ <span slot="label">Name</span>
1173
+ <auro-menu>
1174
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1175
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1176
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1177
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1178
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1179
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1180
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
1181
+ </auro-menu>
1182
+ </auro-combobox>
1183
+ <!-- AURO-GENERATED-CONTENT:END -->
1184
+ </div>
1185
+ <auro-accordion alignRight>
1186
+ <span slot="trigger">See code</span>
1187
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatic-value.html) -->
1188
+ <!-- The below code snippet is automatically added from ./../apiExamples/programmatic-value.html -->
1189
+
1190
+ ```html
1191
+ <auro-combobox>
1192
+ <span slot="bib.fullscreen.headline">Bib Header</span>
1193
+ <span slot="label">Name</span>
1194
+ <auro-menu>
1195
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1196
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1197
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1198
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1199
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1200
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1201
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
1202
+ </auro-menu>
1203
+ </auro-combobox>
1204
+ ```
1205
+ <!-- AURO-GENERATED-CONTENT:END -->
1206
+ </auro-accordion>
1207
+
1208
+ ## Method Examples
1233
1209
 
1234
- #### focus
1210
+ ### Focus
1235
1211
 
1236
- The focus method will apply focus state to the combobox input field.
1212
+ The `focus()` method will apply focus state to the combobox input field.
1237
1213
 
1238
1214
  <div class="exampleWrapper">
1239
1215
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/focus.html) -->
@@ -1256,20 +1232,6 @@ The focus method will apply focus state to the combobox input field.
1256
1232
  </div>
1257
1233
  <auro-accordion alignRight>
1258
1234
  <span slot="trigger">See code</span>
1259
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/focus.js) -->
1260
- <!-- The below code snippet is automatically added from ./../apiExamples/focus.js -->
1261
-
1262
- ```js
1263
- export function focusExample() {
1264
- const focusExample = document.querySelector('#focusExample');
1265
- const focusExampleBtnElem = document.querySelector('#focusExampleBtn');
1266
-
1267
- focusExampleBtnElem.addEventListener('click', () => {
1268
- focusExample.focus();
1269
- });
1270
- }
1271
- ```
1272
- <!-- AURO-GENERATED-CONTENT:END -->
1273
1235
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/focus.html) -->
1274
1236
  <!-- The below code snippet is automatically added from ./../apiExamples/focus.html -->
1275
1237
 
@@ -1290,15 +1252,29 @@ export function focusExample() {
1290
1252
  </auro-combobox>
1291
1253
  ```
1292
1254
  <!-- AURO-GENERATED-CONTENT:END -->
1255
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/focus.js) -->
1256
+ <!-- The below code snippet is automatically added from ./../apiExamples/focus.js -->
1257
+
1258
+ ```js
1259
+ export function focusExample() {
1260
+ const focusExample = document.querySelector('#focusExample');
1261
+ const focusExampleBtnElem = document.querySelector('#focusExampleBtn');
1262
+
1263
+ focusExampleBtnElem.addEventListener('click', () => {
1264
+ focusExample.focus();
1265
+ });
1266
+ }
1267
+ ```
1268
+ <!-- AURO-GENERATED-CONTENT:END -->
1293
1269
  </auro-accordion>
1294
1270
 
1295
- #### reset
1271
+ ### Reset
1296
1272
 
1297
1273
  Use the `reset()` method to reset the `<auro-combobox>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
1298
1274
 
1299
1275
  <div class="exampleWrapper">
1300
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/resetState.html) -->
1301
- <!-- The below content is automatically added from ./../apiExamples/resetState.html -->
1276
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/reset-state.html) -->
1277
+ <!-- The below content is automatically added from ./../apiExamples/reset-state.html -->
1302
1278
  <auro-button id="resetStateBtn">Reset</auro-button>
1303
1279
  <br /><br />
1304
1280
  <auro-combobox id="resetStateExample" required>
@@ -1317,8 +1293,8 @@ Use the `reset()` method to reset the `<auro-combobox>`'s `value` and `validity`
1317
1293
  </div>
1318
1294
  <auro-accordion alignRight>
1319
1295
  <span slot="trigger">See code</span>
1320
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.html) -->
1321
- <!-- The below code snippet is automatically added from ./../apiExamples/resetState.html -->
1296
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.html) -->
1297
+ <!-- The below code snippet is automatically added from ./../apiExamples/reset-state.html -->
1322
1298
 
1323
1299
  ```html
1324
1300
  <auro-button id="resetStateBtn">Reset</auro-button>
@@ -1337,8 +1313,8 @@ Use the `reset()` method to reset the `<auro-combobox>`'s `value` and `validity`
1337
1313
  </auro-combobox>
1338
1314
  ```
1339
1315
  <!-- AURO-GENERATED-CONTENT:END -->
1340
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/resetState.js) -->
1341
- <!-- The below code snippet is automatically added from ./../apiExamples/resetState.js -->
1316
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/reset-state.js) -->
1317
+ <!-- The below code snippet is automatically added from ./../apiExamples/reset-state.js -->
1342
1318
 
1343
1319
  ```js
1344
1320
  export function resetStateExample() {
@@ -1352,222 +1328,165 @@ export function resetStateExample() {
1352
1328
  <!-- AURO-GENERATED-CONTENT:END -->
1353
1329
  </auro-accordion>
1354
1330
 
1355
- ### Slot Examples
1331
+ ## Slot Examples
1356
1332
 
1357
- #### helpText
1333
+ ### Custom Display Value
1358
1334
 
1359
- Sets the help text displayed below the trigger. The `helpText` slot can be used to provide additional context for the combobox. When using the `error` property, the `helpText` slot can be used to describe the error.
1335
+ You can fully customize how selected values appear by using the `displayValue` slot. This slot allows you to pass in any HTML content. Only the `snowflake` and `emphasized` layouts are supported.
1360
1336
 
1361
- <div class="exampleWrapper">
1362
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
1363
- <!-- The below content is automatically added from ./../apiExamples/helpText.html -->
1364
- <auro-combobox>
1337
+ <div class="exampleWrapper--ondark">
1338
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/display-value.html) -->
1339
+ <!-- The below content is automatically added from ./../apiExamples/display-value.html -->
1340
+ <auro-combobox layout="snowflake" shape="snowflake" size="xl" appearance="inverse" value="Apples">
1365
1341
  <span slot="bib.fullscreen.headline">Bib Header</span>
1366
1342
  <span slot="label">Name</span>
1367
- <span slot="helpText">Custom help text</span>
1368
1343
  <auro-menu>
1369
1344
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1370
1345
  <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1371
1346
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1372
1347
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1373
1348
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1374
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1375
1349
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
1376
1350
  </auro-menu>
1377
- </auro-combobox>
1351
+ <div slot="displayValue">
1352
+ <div class="mainText">Custom display value</div>
1353
+ <div class="subText">Any html can be used</div>
1354
+ </div>
1355
+ </auro-combobox>
1378
1356
  <!-- AURO-GENERATED-CONTENT:END -->
1379
1357
  </div>
1380
1358
  <auro-accordion alignRight>
1381
1359
  <span slot="trigger">See code</span>
1382
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/helpText.html) -->
1383
- <!-- The below code snippet is automatically added from ./../apiExamples/helpText.html -->
1360
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/display-value.html) -->
1361
+ <!-- The below code snippet is automatically added from ./../apiExamples/display-value.html -->
1384
1362
 
1385
1363
  ```html
1386
- <auro-combobox>
1364
+ <auro-combobox layout="snowflake" shape="snowflake" size="xl" appearance="inverse" value="Apples">
1387
1365
  <span slot="bib.fullscreen.headline">Bib Header</span>
1388
1366
  <span slot="label">Name</span>
1389
- <span slot="helpText">Custom help text</span>
1390
1367
  <auro-menu>
1391
1368
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1392
1369
  <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1393
1370
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1394
1371
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1395
1372
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1396
- <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1397
1373
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
1398
1374
  </auro-menu>
1375
+ <div slot="displayValue">
1376
+ <div class="mainText">Custom display value</div>
1377
+ <div class="subText">Any html can be used</div>
1378
+ </div>
1399
1379
  </auro-combobox>
1400
1380
  ```
1401
1381
  <!-- AURO-GENERATED-CONTENT:END -->
1402
1382
  </auro-accordion>
1403
1383
 
1404
- #### Loading<a name="loading"></a>
1405
- While content is loading, the menu can either remain empty or display a loading placeholder
1384
+ ### Custom Optional Label
1406
1385
 
1407
- <div class="exampleWrapper">
1408
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/loading.html) -->
1409
- <!-- The below content is automatically added from ./../apiExamples/loading.html -->
1410
- <auro-combobox id="loadingExample">
1411
- <span slot="bib.fullscreen.headline">Loading Combobox Header</span>
1412
- <span slot="label">Please select a preference</span>
1413
- <auro-menu id="loadingExampleComboboxMenu">
1414
- <auro-loader slot="loadingIcon" orbit xs></auro-loader><span slot="loadingText">Loading...</span>
1415
- </auro-menu>
1416
- </auro-combobox>
1417
- <!-- AURO-GENERATED-CONTENT:END -->
1418
- </div>
1419
- <auro-accordion alignRight>
1420
- <span slot="trigger">See code</span>
1421
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/loading.js) -->
1422
- <!-- The below code snippet is automatically added from ./../apiExamples/loading.js -->
1423
-
1424
- ```js
1425
- export function auroMenuLoadingExample() {
1426
- const combobox = document.querySelector("#loadingExample");
1427
- const menu = document.querySelector("#loadingExampleComboboxMenu");
1428
-
1429
- const emptyMenu = () => {
1430
- const menuoptions = menu.querySelectorAll('auro-menuoption');
1431
- menuoptions.forEach(mo => menu.removeChild(mo));
1432
- }
1386
+ The `<auro-combobox>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
1433
1387
 
1434
- const fillMenu = () => {
1435
- menu.innerHTML += `
1388
+ <div class="exampleWrapper">
1389
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optional-label.html) -->
1390
+ <!-- The below content is automatically added from ./../apiExamples/optional-label.html -->
1391
+ <auro-combobox>
1392
+ <span slot="bib.fullscreen.headline">Bib Header</span>
1393
+ <span slot="label">Name</span>
1394
+ <span slot="optionalLabel" style="font-size: small; color: grey"> - optional</span>
1395
+ <auro-menu>
1436
1396
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1437
1397
  <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1438
1398
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1439
1399
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1440
1400
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1441
1401
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
1442
- `;
1443
- }
1444
-
1445
- const load = () => {
1446
- clearTimeout(load.id);
1447
- emptyMenu();
1448
- menu.setAttribute('loading', 'loading');
1449
- load.id = setTimeout(() => {
1450
- menu.removeAttribute('loading');
1451
- fillMenu();
1452
- }, 1000);
1453
-
1454
- }
1455
-
1456
- combobox.addEventListener("inputValue", (e) => {
1457
- if (e.target.inputValue && e.target.value !== e.target.inputValue) {
1458
- load();
1459
- }
1460
- });
1461
- }
1462
- ```
1463
- <!-- AURO-GENERATED-CONTENT:END -->
1464
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/loading.html) -->
1465
- <!-- The below code snippet is automatically added from ./../apiExamples/loading.html -->
1402
+ </auro-menu>
1403
+ </auro-combobox>
1404
+ <!-- AURO-GENERATED-CONTENT:END -->
1405
+ </div>
1406
+ <auro-accordion alignRight>
1407
+ <span slot="trigger">See code</span>
1408
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optional-label.html) -->
1409
+ <!-- The below code snippet is automatically added from ./../apiExamples/optional-label.html -->
1466
1410
 
1467
1411
  ```html
1468
- <auro-combobox id="loadingExample">
1469
- <span slot="bib.fullscreen.headline">Loading Combobox Header</span>
1470
- <span slot="label">Please select a preference</span>
1471
- <auro-menu id="loadingExampleComboboxMenu">
1472
- <auro-loader slot="loadingIcon" orbit xs></auro-loader><span slot="loadingText">Loading...</span>
1412
+ <auro-combobox>
1413
+ <span slot="bib.fullscreen.headline">Bib Header</span>
1414
+ <span slot="label">Name</span>
1415
+ <span slot="optionalLabel" style="font-size: small; color: grey"> - optional</span>
1416
+ <auro-menu>
1417
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1418
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1419
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1420
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1421
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1422
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
1473
1423
  </auro-menu>
1474
1424
  </auro-combobox>
1475
1425
  ```
1476
1426
  <!-- AURO-GENERATED-CONTENT:END -->
1477
1427
  </auro-accordion>
1478
1428
 
1479
- ### Customized bib position
1480
- The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement`, and `shift` attributes.
1429
+ ### Help Text
1481
1430
 
1482
- - `placement` specifies the preferred position where the bib should appear relative to the trigger.
1483
- - `offset` sets the distance between the trigger and the bib.
1484
- - When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
1485
- - Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
1486
- - `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
1431
+ Sets the help text displayed below the trigger. The `helpText` slot can be used to provide additional context for the combobox. When using the `error` property, the `helpText` slot can be used to describe the error.
1487
1432
 
1488
1433
  <div class="exampleWrapper">
1489
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floaterConfig.html) -->
1490
- <!-- The below content is automatically added from ./../apiExamples/floaterConfig.html -->
1491
- <div style="width: 350px">
1492
- <auro-combobox offset="20" noFlip placement="bottom-end">
1493
- <span slot="bib.fullscreen.headline">Bib Header</span>
1494
- <span slot="label">Label</span>
1495
- <span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
1496
- <auro-menu>
1497
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1498
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1499
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1500
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1501
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1502
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
1503
- </auro-menu>
1504
- </auro-combobox>
1505
- <auro-combobox offset="20" placement="bottom-end">
1506
- <span slot="bib.fullscreen.headline">Bib Header</span>
1507
- <span slot="label">Label</span>
1508
- <span slot="helpText">bottom-end bib with 20px offset and flip</span>
1509
- <auro-menu>
1510
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1511
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1512
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1513
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1514
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1515
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
1516
- </auro-menu>
1517
- </auro-combobox>
1518
- <auro-combobox offset="20" noFlip placement="right" autoPlacement>
1519
- <span slot="bib.fullscreen.headline">Bib Header</span>
1520
- <span slot="label">Label</span>
1521
- <span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
1522
- <auro-menu>
1523
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1524
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1525
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1526
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1527
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1528
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
1529
- </auro-menu>
1530
- </auro-combobox>
1531
- <auro-combobox width="350px" offset="20" noFlip placement="bottom-start" shift>
1532
- <span slot="bib.fullscreen.headline">Bib Header</span>
1533
- <span slot="label">Label</span>
1534
- <span slot="helpText">bottom-start bib with 20px offset, noFlip and shift</span>
1535
- <auro-menu>
1536
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1537
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1538
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1539
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1540
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1541
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
1542
- </auro-menu>
1543
- </auro-combobox>
1544
- </div>
1545
- <!-- AURO-GENERATED-CONTENT:END -->
1546
- </div>
1547
- <auro-accordion alignRight>
1548
- <span slot="trigger">See code</span>
1549
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floaterConfig.html) -->
1550
- <!-- The below code snippet is automatically added from ./../apiExamples/floaterConfig.html -->
1551
-
1552
- ```html
1553
- <div style="width: 350px">
1554
- <auro-combobox offset="20" noFlip placement="bottom-end">
1434
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/help-text.html) -->
1435
+ <!-- The below content is automatically added from ./../apiExamples/help-text.html -->
1436
+ <auro-combobox>
1555
1437
  <span slot="bib.fullscreen.headline">Bib Header</span>
1556
- <span slot="label">Label</span>
1557
- <span slot="helpText">bottom-end bib with 20px offset and noFlip</span>
1438
+ <span slot="label">Name</span>
1439
+ <span slot="helpText">Custom help text</span>
1558
1440
  <auro-menu>
1559
1441
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1560
1442
  <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1561
1443
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1562
1444
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1563
1445
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1446
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1564
1447
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
1565
1448
  </auro-menu>
1566
- </auro-combobox>
1567
- <auro-combobox offset="20" placement="bottom-end">
1449
+ </auro-combobox>
1450
+ <!-- AURO-GENERATED-CONTENT:END -->
1451
+ </div>
1452
+ <auro-accordion alignRight>
1453
+ <span slot="trigger">See code</span>
1454
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/help-text.html) -->
1455
+ <!-- The below code snippet is automatically added from ./../apiExamples/help-text.html -->
1456
+
1457
+ ```html
1458
+ <auro-combobox>
1459
+ <span slot="bib.fullscreen.headline">Bib Header</span>
1460
+ <span slot="label">Name</span>
1461
+ <span slot="helpText">Custom help text</span>
1462
+ <auro-menu>
1463
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1464
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1465
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1466
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1467
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1468
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1469
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
1470
+ </auro-menu>
1471
+ </auro-combobox>
1472
+ ```
1473
+ <!-- AURO-GENERATED-CONTENT:END -->
1474
+ </auro-accordion>
1475
+
1476
+ ## Common Usage Patterns & Functional Examples
1477
+
1478
+ ### Static Menu Options when No Match
1479
+
1480
+ This example demonstrates a combobox populated with a static menu option that appears when there is not an option that matches the user's input. Use the `<auro-menuoptions>`'s `static` and `nomatch` attributes to achieve this behavior.
1481
+
1482
+ <div class="exampleWrapper">
1483
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-match.html) -->
1484
+ <!-- The below content is automatically added from ./../apiExamples/no-match.html -->
1485
+ <auro-combobox>
1486
+ <span slot="ariaLabel.bib.close">Close combobox</span>
1487
+ <span slot="ariaLabel.input.clear">Clear All</span>
1568
1488
  <span slot="bib.fullscreen.headline">Bib Header</span>
1569
- <span slot="label">Label</span>
1570
- <span slot="helpText">bottom-end bib with 20px offset and flip</span>
1489
+ <span slot="label">Name</span>
1571
1490
  <auro-menu>
1572
1491
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1573
1492
  <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
@@ -1576,52 +1495,395 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
1576
1495
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1577
1496
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
1578
1497
  </auro-menu>
1579
- </auro-combobox>
1580
- <auro-combobox offset="20" noFlip placement="right" autoPlacement>
1498
+ </auro-combobox>
1499
+ <!-- AURO-GENERATED-CONTENT:END -->
1500
+ </div>
1501
+ <auro-accordion alignRight>
1502
+ <span slot="trigger">See code</span>
1503
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-match.html) -->
1504
+ <!-- The below code snippet is automatically added from ./../apiExamples/no-match.html -->
1505
+
1506
+ ```html
1507
+ <auro-combobox>
1508
+ <span slot="ariaLabel.bib.close">Close combobox</span>
1509
+ <span slot="ariaLabel.input.clear">Clear All</span>
1510
+ <span slot="bib.fullscreen.headline">Bib Header</span>
1511
+ <span slot="label">Name</span>
1512
+ <auro-menu>
1513
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1514
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1515
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1516
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1517
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1518
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
1519
+ </auro-menu>
1520
+ </auro-combobox>
1521
+ ```
1522
+ <!-- AURO-GENERATED-CONTENT:END -->
1523
+ </auro-accordion>
1524
+ </auro-accordion>
1525
+
1526
+ ### Custom Bib Height
1527
+
1528
+ This example shows how to set a custom height for the bib from `<auro-menu>`. Custom height dimensions are set by applying a `max-height` rule and value on the `<auro-menu>`.
1529
+
1530
+ <div class="exampleWrapper">
1531
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/max-height.html) -->
1532
+ <!-- The below content is automatically added from ./../apiExamples/max-height.html -->
1533
+ <auro-combobox>
1534
+ <span slot="ariaLabel.bib.close">Close combobox</span>
1535
+ <span slot="ariaLabel.input.clear">Clear All</span>
1581
1536
  <span slot="bib.fullscreen.headline">Bib Header</span>
1582
- <span slot="label">Label</span>
1583
- <span slot="helpText">right bib with 20px offset, noFlip and autoPlacement</span>
1584
- <auro-menu>
1537
+ <span slot="label">Name</span>
1538
+ <auro-menu style="max-height: 200px">
1585
1539
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1586
1540
  <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1587
1541
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1588
1542
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1589
1543
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1544
+ <auro-menuoption value="Strawberries" id="option-5">Strawberries</auro-menuoption>
1545
+ <auro-menuoption value="Blueberries" id="option-6">Blueberries</auro-menuoption>
1546
+ <auro-menuoption value="Raspberries" id="option-7">Raspberries</auro-menuoption>
1547
+ <auro-menuoption value="Blackberries" id="option-8">Blackberries</auro-menuoption>
1548
+ <auro-menuoption value="Cranberries" id="option-9">Cranberries</auro-menuoption>
1549
+ <auro-menuoption value="Bananas" id="option-10">Bananas</auro-menuoption>
1590
1550
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
1591
1551
  </auro-menu>
1592
- </auro-combobox>
1593
- <auro-combobox width="350px" offset="20" noFlip placement="bottom-start" shift>
1594
- <span slot="bib.fullscreen.headline">Bib Header</span>
1595
- <span slot="label">Label</span>
1596
- <span slot="helpText">bottom-start bib with 20px offset, noFlip and shift</span>
1552
+ </auro-combobox>
1553
+ <!-- AURO-GENERATED-CONTENT:END -->
1554
+ </div>
1555
+ <auro-accordion alignRight>
1556
+ <span slot="trigger">See code</span>
1557
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/max-height.html) -->
1558
+ <!-- The below code snippet is automatically added from ./../apiExamples/max-height.html -->
1559
+
1560
+ ```html
1561
+ <auro-combobox>
1562
+ <span slot="ariaLabel.bib.close">Close combobox</span>
1563
+ <span slot="ariaLabel.input.clear">Clear All</span>
1564
+ <span slot="bib.fullscreen.headline">Bib Header</span>
1565
+ <span slot="label">Name</span>
1566
+ <auro-menu style="max-height: 200px">
1567
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1568
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1569
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1570
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1571
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1572
+ <auro-menuoption value="Strawberries" id="option-5">Strawberries</auro-menuoption>
1573
+ <auro-menuoption value="Blueberries" id="option-6">Blueberries</auro-menuoption>
1574
+ <auro-menuoption value="Raspberries" id="option-7">Raspberries</auro-menuoption>
1575
+ <auro-menuoption value="Blackberries" id="option-8">Blackberries</auro-menuoption>
1576
+ <auro-menuoption value="Cranberries" id="option-9">Cranberries</auro-menuoption>
1577
+ <auro-menuoption value="Bananas" id="option-10">Bananas</auro-menuoption>
1578
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
1579
+ </auro-menu>
1580
+ </auro-combobox>
1581
+ ```
1582
+ <!-- AURO-GENERATED-CONTENT:END -->
1583
+ </auro-accordion>
1584
+
1585
+ ### Airports example
1586
+
1587
+ Combobox populated with airport options.
1588
+
1589
+ <div class="exampleWrapper">
1590
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/airports.html) -->
1591
+ <!-- The below content is automatically added from ./../apiExamples/airports.html -->
1592
+ <auro-combobox>
1593
+ <span slot="bib.fullscreen.headline">Airports</span>
1594
+ <span slot="label">Name</span>
1597
1595
  <auro-menu>
1598
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1599
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1600
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1601
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1602
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1603
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
1596
+ <auro-menuoption value="fca" id="airport-fca" suggest="fca montana kalispell">glacier park international</auro-menuoption>
1597
+ <auro-menuoption value="sfo" id="airport-sfo" suggest="sfo california san francisco">san francisco international</auro-menuoption>
1598
+ <auro-menuoption value="boi" id="airport-boi" suggest="boi idaho boise">gowen field</auro-menuoption>
1599
+ <auro-menuoption value="stl" id="airport-stl" suggest="stl missouri st louis">lambert st louis international</auro-menuoption>
1600
+ <auro-menuoption value="ylw" id="airport-ylw" suggest="ylw british columbia kelowna">kelowna international</auro-menuoption>
1601
+ <auro-menuoption value="ykm" id="airport-ykm" suggest="ykm washington yakima">yakima air terminal</auro-menuoption>
1602
+ <auro-menuoption value="puw" id="airport-puw" suggest="puw washington pullman">pullman moscow regional</auro-menuoption>
1603
+ <auro-menuoption value="yeg" id="airport-yeg" suggest="yeg alberta edmonton">edmonton international</auro-menuoption>
1604
+ <auro-menuoption value="tpa" id="airport-tpa" suggest="tpa florida tampa">tampa international</auro-menuoption>
1605
+ <auro-menuoption value="msp" id="airport-msp" suggest="msp minnesota minneapolis">minneapolis st paul international</auro-menuoption>
1606
+ <auro-menuoption value="ida" id="airport-ida" suggest="ida idaho idaho falls">idaho falls regional airport</auro-menuoption>
1607
+ <auro-menuoption value="mfr" id="airport-mfr" suggest="mfr oregon medford">rogue valley international</auro-menuoption>
1608
+ <auro-menuoption value="psp" id="airport-psp" suggest="psp california palm springs">palm springs international</auro-menuoption>
1609
+ <auro-menuoption value="lir" id="airport-lir" suggest="lir guanacaste liberia">guanacaste airport</auro-menuoption>
1610
+ <auro-menuoption value="oak" id="airport-oak" suggest="oak california oakland">oakland international</auro-menuoption>
1611
+ <auro-menuoption value="bos" id="airport-bos" suggest="bos massachusetts boston">logan international</auro-menuoption>
1612
+ <auro-menuoption value="bwi" id="airport-bwi" suggest="bwi maryland baltimore">thurgood marshall international</auro-menuoption>
1613
+ <auro-menuoption value="dal" id="airport-dal" suggest="dal texas dallas">dallas love field</auro-menuoption>
1614
+ <auro-menuoption value="sba" id="airport-sba" suggest="sba california santa barbara">santa barbara municipal</auro-menuoption>
1615
+ <auro-menuoption value="mci" id="airport-mci" suggest="mci missouri kansas city">kansas city international</auro-menuoption>
1616
+ <auro-menuoption value="koa" id="airport-koa" suggest="koa hawaii kona">kona international</auro-menuoption>
1617
+ <auro-menuoption value="pvr" id="airport-pvr" suggest="pvr jalisco puerto vallarta">licenciado gustavo diaz ordaz international</auro-menuoption>
1618
+ <auro-menuoption value="wrg" id="airport-wrg" suggest="wrg alaska wrangell">wrangell</auro-menuoption>
1619
+ <auro-menuoption value="scc" id="airport-scc" suggest="scc alaska prudhoe bay">deadhorse</auro-menuoption>
1620
+ <auro-menuoption value="lto" id="airport-lto" suggest="lto baja california loreto">loreto international</auro-menuoption>
1621
+ <auro-menuoption value="ome" id="airport-ome" suggest="ome alaska nome">nome</auro-menuoption>
1622
+ <auro-menuoption value="ict" id="airport-ict" suggest="ict kansas wichita">dwight d eisenhower national</auro-menuoption>
1623
+ <auro-menuoption value="phl" id="airport-phl" suggest="phl pennsylvania philadelphia">philadelphia international</auro-menuoption>
1624
+ <auro-menuoption value="dfw" id="airport-dfw" suggest="dfw texas dallas">dallas fort worth international</auro-menuoption>
1625
+ <auro-menuoption value="ind" id="airport-ind" suggest="ind indiana indianapolis">indianapolis international</auro-menuoption>
1626
+ <auro-menuoption value="smf" id="airport-smf" suggest="smf california sacramento">sacramento international</auro-menuoption>
1627
+ <auro-menuoption value="sit" id="airport-sit" suggest="sit alaska sitka">rocky gutierrez</auro-menuoption>
1628
+ <auro-menuoption value="dut" id="airport-dut" suggest="dut alaska dutch harbor">unalaska</auro-menuoption>
1629
+ <auro-menuoption value="cdv" id="airport-cdv" suggest="cdv alaska cordova">merle mudhole smith</auro-menuoption>
1630
+ <auro-menuoption value="psg" id="airport-psg" suggest="psg alaska petersburg">james a johnson</auro-menuoption>
1631
+ <auro-menuoption value="bna" id="airport-bna" suggest="bna tennessee nashville">nashville international</auro-menuoption>
1632
+ <auro-menuoption value="geg" id="airport-geg" suggest="geg washington spokane">spokane international</auro-menuoption>
1633
+ <auro-menuoption value="ktn" id="airport-ktn" suggest="ktn alaska ketchikan">ketchikan international</auro-menuoption>
1634
+ <auro-menuoption value="pit" id="airport-pit" suggest="pit pennsylvania pittsburgh">pittsburgh international</auro-menuoption>
1635
+ <auro-menuoption value="sbp" id="airport-sbp" suggest="sbp california san luis obispo">san luis obispo regional</auro-menuoption>
1636
+ <auro-menuoption value="bur" id="airport-bur" suggest="bur california burbank">hollywood burbank</auro-menuoption>
1637
+ <auro-menuoption value="msy" id="airport-msy" suggest="msy louisiana new orleans">louis armstrong international</auro-menuoption>
1638
+ <auro-menuoption value="pae" id="airport-pae" suggest="pae washington everett">paine field</auro-menuoption>
1639
+ <auro-menuoption value="cvg" id="airport-cvg" suggest="cvg ohio cincinnati">cincinnati northern kentucky international</auro-menuoption>
1640
+ <auro-menuoption value="yak" id="airport-yak" suggest="yak alaska yakutat">yakutat</auro-menuoption>
1641
+ <auro-menuoption value="pdx" id="airport-pdx" suggest="pdx oregon portland">portland international</auro-menuoption>
1642
+ <auro-menuoption value="anc" id="airport-anc" suggest="anc alaska anchorage">ted stevens</auro-menuoption>
1643
+ <auro-menuoption value="sea" id="airport-sea" suggest="sea washington seattle">seattle tacoma international</auro-menuoption>
1644
+ <auro-menuoption value="san" id="airport-san" suggest="san california san diego">san diego international</auro-menuoption>
1645
+ <auro-menuoption value="sat" id="airport-sat" suggest="sat texas san antonio">san antonio international</auro-menuoption>
1646
+ <auro-menuoption value="fat" id="airport-fat" suggest="fat california fresno">fresno yosemite international</auro-menuoption>
1647
+ <auro-menuoption value="aus" id="airport-aus" suggest="aus texas austin">austin bergstrom international</auro-menuoption>
1648
+ <auro-menuoption value="ord" id="airport-ord" suggest="ord illinois chicago">ohare international</auro-menuoption>
1649
+ <auro-menuoption value="gdl" id="airport-gdl" suggest="gdl jalisco guadalajara">guadalajara international</auro-menuoption>
1650
+ <auro-menuoption value="sjc" id="airport-sjc" suggest="sjc california san jose">san jose international</auro-menuoption>
1651
+ <auro-menuoption value="jnu" id="airport-jnu" suggest="jnu alaska juneau">juneau international</auro-menuoption>
1652
+ <auro-menuoption value="rdm" id="airport-rdm" suggest="rdm oregon redmond">roberts field</auro-menuoption>
1653
+ <auro-menuoption value="sts" id="airport-sts" suggest="sts california sonoma">charles m schulz</auro-menuoption>
1654
+ <auro-menuoption value="fai" id="airport-fai" suggest="fai alaska fairbanks">fairbanks international</auro-menuoption>
1655
+ <auro-menuoption value="rdu" id="airport-rdu" suggest="rdu north carolina raleigh">raleigh durham international</auro-menuoption>
1656
+ <auro-menuoption value="oma" id="airport-oma" suggest="oma nebraska omaha">eppley airfield</auro-menuoption>
1657
+ <auro-menuoption value="bzn" id="airport-bzn" suggest="bzn montana bozeman">bozeman yellowstone international</auro-menuoption>
1658
+ <auro-menuoption value="ont" id="airport-ont" suggest="ont california ontario">ontario international</auro-menuoption>
1659
+ <auro-menuoption value="ogg" id="airport-ogg" suggest="ogg hawaii maui">kahului international</auro-menuoption>
1660
+ <auro-menuoption value="sun" id="airport-sun" suggest="sun idaho sun valley">friedman memorial</auro-menuoption>
1661
+ <auro-menuoption value="mzt" id="airport-mzt" suggest="mzt sinaloa mazatlan">general rafael buelna international</auro-menuoption>
1662
+ <auro-menuoption value="dlg" id="airport-dlg" suggest="dlg alaska dillingham">dillingham</auro-menuoption>
1663
+ <auro-menuoption value="adq" id="airport-adq" suggest="adq alaska kodiak">kodiak</auro-menuoption>
1664
+ <auro-menuoption value="den" id="airport-den" suggest="den colorado denver">denver international</auro-menuoption>
1665
+ <auro-menuoption value="zlo" id="airport-zlo" suggest="zlo colima manzanillo">manzanillo international</auro-menuoption>
1666
+ <auro-menuoption value="sjd" id="airport-sjd" suggest="sjd baja california los cabos">los cabos international</auro-menuoption>
1667
+ <auro-menuoption value="elp" id="airport-elp" suggest="elp texas el paso">el paso international airport</auro-menuoption>
1668
+ <auro-menuoption value="atl" id="airport-atl" suggest="atl georgia atlanta">hartsfield jackson international</auro-menuoption>
1669
+ <auro-menuoption value="lax" id="airport-lax" suggest="lax california los angeles">los angeles international</auro-menuoption>
1670
+ <auro-menuoption value="rsw" id="airport-rsw" suggest="rsw florida fort myers">southwest florida international</auro-menuoption>
1671
+ <auro-menuoption value="cle" id="airport-cle" suggest="cle ohio cleveland">cleveland hopkins international airport</auro-menuoption>
1672
+ <auro-menuoption value="otz" id="airport-otz" suggest="otz alaska kotzebue">ralph wien memorial</auro-menuoption>
1673
+ <auro-menuoption value="bze" id="airport-bze" suggest="bze belize belize city">philip sw goldson international airport</auro-menuoption>
1674
+ <auro-menuoption value="eat" id="airport-eat" suggest="eat washington wenatchee">pangborn memorial</auro-menuoption>
1675
+ <auro-menuoption value="dtw" id="airport-dtw" suggest="dtw michigan detroit">detroit metropolitan</auro-menuoption>
1676
+ <auro-menuoption value="bet" id="airport-bet" suggest="bet alaska bethel">bethel</auro-menuoption>
1677
+ <auro-menuoption value="dca" id="airport-dca" suggest="dca district of columbia washington">ronald reagan national</auro-menuoption>
1678
+ <auro-menuoption value="rno" id="airport-rno" suggest="rno nevada reno">reno tahoe international</auro-menuoption>
1679
+ <auro-menuoption value="brw" id="airport-brw" suggest="brw alaska barrow">wiley post will rogers</auro-menuoption>
1680
+ <auro-menuoption value="mry" id="airport-mry" suggest="mry california monterey">monterey regional</auro-menuoption>
1681
+ <auro-menuoption value="hnl" id="airport-hnl" suggest="hnl hawaii oahu">honolulu international</auro-menuoption>
1682
+ <auro-menuoption value="okc" id="airport-okc" suggest="okc oklahoma oklahoma city">will rogers world</auro-menuoption>
1683
+ <auro-menuoption value="iad" id="airport-iad" suggest="iad virginia dulles">washington dulles international</auro-menuoption>
1684
+ <auro-menuoption value="mia" id="airport-mia" suggest="mia florida miami">miami international</auro-menuoption>
1685
+ <auro-menuoption value="bli" id="airport-bli" suggest="bli washington bellingham">bellingham international</auro-menuoption>
1686
+ <auro-menuoption value="hln" id="airport-hln" suggest="hln montana helena">helena regional</auro-menuoption>
1687
+ <auro-menuoption value="gtf" id="airport-gtf" suggest="gtf montana great falls">great falls international</auro-menuoption>
1688
+ <auro-menuoption value="zih" id="airport-zih" suggest="zih guerrero zihuatanejo">ixtapa zihuatanejo international</auro-menuoption>
1689
+ <auro-menuoption value="yyc" id="airport-yyc" suggest="yyc alberta calgary">calgary international</auro-menuoption>
1690
+ <auro-menuoption value="sna" id="airport-sna" suggest="sna california santa ana">john wayne</auro-menuoption>
1691
+ <auro-menuoption value="fll" id="airport-fll" suggest="fll florida fort lauderdale">fort lauderdale hollywood international</auro-menuoption>
1692
+ <auro-menuoption value="ewr" id="airport-ewr" suggest="ewr new jersey newark">newark liberty international</auro-menuoption>
1693
+ <auro-menuoption value="hdn" id="airport-hdn" suggest="hdn colorado steamboat springs">yampa valley regional</auro-menuoption>
1694
+ <auro-menuoption value="psc" id="airport-psc" suggest="psc washington pasco">tri cities</auro-menuoption>
1695
+ <auro-menuoption value="tus" id="airport-tus" suggest="tus arizona tucson">tucson international</auro-menuoption>
1696
+ <auro-menuoption value="abq" id="airport-abq" suggest="abq new mexico albuquerque">albuquerque international sunport</auro-menuoption>
1697
+ <auro-menuoption value="jfk" id="airport-jfk" suggest="jfk new york new york">john f kennedy international</auro-menuoption>
1698
+ <auro-menuoption value="yvr" id="airport-yvr" suggest="yvr british columbia vancouver">vancouver international</auro-menuoption>
1699
+ <auro-menuoption value="sjo" id="airport-sjo" suggest="sjo san jose alajuela province">juan santamaria international</auro-menuoption>
1700
+ <auro-menuoption value="las" id="airport-las" suggest="las nevada las vegas">harry reid international airport</auro-menuoption>
1701
+ <auro-menuoption value="lih" id="airport-lih" suggest="lih hawaii kauai">lihue international</auro-menuoption>
1702
+ <auro-menuoption value="mso" id="airport-mso" suggest="mso montana missoula">missoula international</auro-menuoption>
1703
+ <auro-menuoption value="alw" id="airport-alw" suggest="alw washington walla walla">walla walla regional</auro-menuoption>
1704
+ <auro-menuoption value="mke" id="airport-mke" suggest="mke wisconsin milwaukee">milwaukee mitchell international</auro-menuoption>
1705
+ <auro-menuoption value="eug" id="airport-eug" suggest="eug oregon eugene">mahlon sweet field</auro-menuoption>
1706
+ <auro-menuoption value="akn" id="airport-akn" suggest="akn alaska king salmon">king salmon</auro-menuoption>
1707
+ <auro-menuoption value="cun" id="airport-cun" suggest="cun quintana roo cancun">cancun international</auro-menuoption>
1708
+ <auro-menuoption value="rdd" id="airport-rdd" suggest="rdd california redding">redding municipal airport</auro-menuoption>
1709
+ <auro-menuoption value="mco" id="airport-mco" suggest="mco florida orlando">orlando international</auro-menuoption>
1710
+ <auro-menuoption value="slc" id="airport-slc" suggest="slc utah salt lake city">salt lake city international</auro-menuoption>
1711
+ <auro-menuoption value="phx" id="airport-phx" suggest="phx arizona phoenix">sky harbor international</auro-menuoption>
1712
+ <auro-menuoption value="bil" id="airport-bil" suggest="bil montana billings">billings logan international</auro-menuoption>
1713
+ <auro-menuoption value="gst" id="airport-gst" suggest="gst alaska gustavus">gustavus</auro-menuoption>
1714
+ <auro-menuoption value="adk" id="airport-adk" suggest="adk alaska adak">adak</auro-menuoption>
1715
+ <auro-menuoption value="cvg" id="airport-cvg" suggest="cvg kentucky hebron">cincinnati northern kentucky international</auro-menuoption>
1716
+ <auro-menuoption value="jac" id="airport-jac" suggest="jac wyoming jackson">jackson hole airport</auro-menuoption>
1717
+ <auro-menuoption value="cmh" id="airport-cmh" suggest="cmh ohio columbus">john glenn columbus international</auro-menuoption>
1718
+ <auro-menuoption value="yyj" id="airport-yyj" suggest="yyj british columbia victoria">victoria international</auro-menuoption>
1719
+ <auro-menuoption value="chs" id="airport-chs" suggest="chs south carolina charleston">charleston international</auro-menuoption>
1720
+ <auro-menuoption value="iah" id="airport-iah" suggest="iah texas houston">george bush intercontinental</auro-menuoption>
1721
+ <auro-menuoption static nomatch>Unknown airport... </auro-menuoption>
1604
1722
  </auro-menu>
1605
1723
  </auro-combobox>
1724
+ <!-- AURO-GENERATED-CONTENT:END -->
1606
1725
  </div>
1726
+ <auro-accordion alignRight>
1727
+ <span slot="trigger">See code</span>
1728
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/airports.html) -->
1729
+ <!-- The below code snippet is automatically added from ./../apiExamples/airports.html -->
1730
+
1731
+ ```html
1732
+ <auro-combobox>
1733
+ <span slot="bib.fullscreen.headline">Airports</span>
1734
+ <span slot="label">Name</span>
1735
+ <auro-menu>
1736
+ <auro-menuoption value="fca" id="airport-fca" suggest="fca montana kalispell">glacier park international</auro-menuoption>
1737
+ <auro-menuoption value="sfo" id="airport-sfo" suggest="sfo california san francisco">san francisco international</auro-menuoption>
1738
+ <auro-menuoption value="boi" id="airport-boi" suggest="boi idaho boise">gowen field</auro-menuoption>
1739
+ <auro-menuoption value="stl" id="airport-stl" suggest="stl missouri st louis">lambert st louis international</auro-menuoption>
1740
+ <auro-menuoption value="ylw" id="airport-ylw" suggest="ylw british columbia kelowna">kelowna international</auro-menuoption>
1741
+ <auro-menuoption value="ykm" id="airport-ykm" suggest="ykm washington yakima">yakima air terminal</auro-menuoption>
1742
+ <auro-menuoption value="puw" id="airport-puw" suggest="puw washington pullman">pullman moscow regional</auro-menuoption>
1743
+ <auro-menuoption value="yeg" id="airport-yeg" suggest="yeg alberta edmonton">edmonton international</auro-menuoption>
1744
+ <auro-menuoption value="tpa" id="airport-tpa" suggest="tpa florida tampa">tampa international</auro-menuoption>
1745
+ <auro-menuoption value="msp" id="airport-msp" suggest="msp minnesota minneapolis">minneapolis st paul international</auro-menuoption>
1746
+ <auro-menuoption value="ida" id="airport-ida" suggest="ida idaho idaho falls">idaho falls regional airport</auro-menuoption>
1747
+ <auro-menuoption value="mfr" id="airport-mfr" suggest="mfr oregon medford">rogue valley international</auro-menuoption>
1748
+ <auro-menuoption value="psp" id="airport-psp" suggest="psp california palm springs">palm springs international</auro-menuoption>
1749
+ <auro-menuoption value="lir" id="airport-lir" suggest="lir guanacaste liberia">guanacaste airport</auro-menuoption>
1750
+ <auro-menuoption value="oak" id="airport-oak" suggest="oak california oakland">oakland international</auro-menuoption>
1751
+ <auro-menuoption value="bos" id="airport-bos" suggest="bos massachusetts boston">logan international</auro-menuoption>
1752
+ <auro-menuoption value="bwi" id="airport-bwi" suggest="bwi maryland baltimore">thurgood marshall international</auro-menuoption>
1753
+ <auro-menuoption value="dal" id="airport-dal" suggest="dal texas dallas">dallas love field</auro-menuoption>
1754
+ <auro-menuoption value="sba" id="airport-sba" suggest="sba california santa barbara">santa barbara municipal</auro-menuoption>
1755
+ <auro-menuoption value="mci" id="airport-mci" suggest="mci missouri kansas city">kansas city international</auro-menuoption>
1756
+ <auro-menuoption value="koa" id="airport-koa" suggest="koa hawaii kona">kona international</auro-menuoption>
1757
+ <auro-menuoption value="pvr" id="airport-pvr" suggest="pvr jalisco puerto vallarta">licenciado gustavo diaz ordaz international</auro-menuoption>
1758
+ <auro-menuoption value="wrg" id="airport-wrg" suggest="wrg alaska wrangell">wrangell</auro-menuoption>
1759
+ <auro-menuoption value="scc" id="airport-scc" suggest="scc alaska prudhoe bay">deadhorse</auro-menuoption>
1760
+ <auro-menuoption value="lto" id="airport-lto" suggest="lto baja california loreto">loreto international</auro-menuoption>
1761
+ <auro-menuoption value="ome" id="airport-ome" suggest="ome alaska nome">nome</auro-menuoption>
1762
+ <auro-menuoption value="ict" id="airport-ict" suggest="ict kansas wichita">dwight d eisenhower national</auro-menuoption>
1763
+ <auro-menuoption value="phl" id="airport-phl" suggest="phl pennsylvania philadelphia">philadelphia international</auro-menuoption>
1764
+ <auro-menuoption value="dfw" id="airport-dfw" suggest="dfw texas dallas">dallas fort worth international</auro-menuoption>
1765
+ <auro-menuoption value="ind" id="airport-ind" suggest="ind indiana indianapolis">indianapolis international</auro-menuoption>
1766
+ <auro-menuoption value="smf" id="airport-smf" suggest="smf california sacramento">sacramento international</auro-menuoption>
1767
+ <auro-menuoption value="sit" id="airport-sit" suggest="sit alaska sitka">rocky gutierrez</auro-menuoption>
1768
+ <auro-menuoption value="dut" id="airport-dut" suggest="dut alaska dutch harbor">unalaska</auro-menuoption>
1769
+ <auro-menuoption value="cdv" id="airport-cdv" suggest="cdv alaska cordova">merle mudhole smith</auro-menuoption>
1770
+ <auro-menuoption value="psg" id="airport-psg" suggest="psg alaska petersburg">james a johnson</auro-menuoption>
1771
+ <auro-menuoption value="bna" id="airport-bna" suggest="bna tennessee nashville">nashville international</auro-menuoption>
1772
+ <auro-menuoption value="geg" id="airport-geg" suggest="geg washington spokane">spokane international</auro-menuoption>
1773
+ <auro-menuoption value="ktn" id="airport-ktn" suggest="ktn alaska ketchikan">ketchikan international</auro-menuoption>
1774
+ <auro-menuoption value="pit" id="airport-pit" suggest="pit pennsylvania pittsburgh">pittsburgh international</auro-menuoption>
1775
+ <auro-menuoption value="sbp" id="airport-sbp" suggest="sbp california san luis obispo">san luis obispo regional</auro-menuoption>
1776
+ <auro-menuoption value="bur" id="airport-bur" suggest="bur california burbank">hollywood burbank</auro-menuoption>
1777
+ <auro-menuoption value="msy" id="airport-msy" suggest="msy louisiana new orleans">louis armstrong international</auro-menuoption>
1778
+ <auro-menuoption value="pae" id="airport-pae" suggest="pae washington everett">paine field</auro-menuoption>
1779
+ <auro-menuoption value="cvg" id="airport-cvg" suggest="cvg ohio cincinnati">cincinnati northern kentucky international</auro-menuoption>
1780
+ <auro-menuoption value="yak" id="airport-yak" suggest="yak alaska yakutat">yakutat</auro-menuoption>
1781
+ <auro-menuoption value="pdx" id="airport-pdx" suggest="pdx oregon portland">portland international</auro-menuoption>
1782
+ <auro-menuoption value="anc" id="airport-anc" suggest="anc alaska anchorage">ted stevens</auro-menuoption>
1783
+ <auro-menuoption value="sea" id="airport-sea" suggest="sea washington seattle">seattle tacoma international</auro-menuoption>
1784
+ <auro-menuoption value="san" id="airport-san" suggest="san california san diego">san diego international</auro-menuoption>
1785
+ <auro-menuoption value="sat" id="airport-sat" suggest="sat texas san antonio">san antonio international</auro-menuoption>
1786
+ <auro-menuoption value="fat" id="airport-fat" suggest="fat california fresno">fresno yosemite international</auro-menuoption>
1787
+ <auro-menuoption value="aus" id="airport-aus" suggest="aus texas austin">austin bergstrom international</auro-menuoption>
1788
+ <auro-menuoption value="ord" id="airport-ord" suggest="ord illinois chicago">ohare international</auro-menuoption>
1789
+ <auro-menuoption value="gdl" id="airport-gdl" suggest="gdl jalisco guadalajara">guadalajara international</auro-menuoption>
1790
+ <auro-menuoption value="sjc" id="airport-sjc" suggest="sjc california san jose">san jose international</auro-menuoption>
1791
+ <auro-menuoption value="jnu" id="airport-jnu" suggest="jnu alaska juneau">juneau international</auro-menuoption>
1792
+ <auro-menuoption value="rdm" id="airport-rdm" suggest="rdm oregon redmond">roberts field</auro-menuoption>
1793
+ <auro-menuoption value="sts" id="airport-sts" suggest="sts california sonoma">charles m schulz</auro-menuoption>
1794
+ <auro-menuoption value="fai" id="airport-fai" suggest="fai alaska fairbanks">fairbanks international</auro-menuoption>
1795
+ <auro-menuoption value="rdu" id="airport-rdu" suggest="rdu north carolina raleigh">raleigh durham international</auro-menuoption>
1796
+ <auro-menuoption value="oma" id="airport-oma" suggest="oma nebraska omaha">eppley airfield</auro-menuoption>
1797
+ <auro-menuoption value="bzn" id="airport-bzn" suggest="bzn montana bozeman">bozeman yellowstone international</auro-menuoption>
1798
+ <auro-menuoption value="ont" id="airport-ont" suggest="ont california ontario">ontario international</auro-menuoption>
1799
+ <auro-menuoption value="ogg" id="airport-ogg" suggest="ogg hawaii maui">kahului international</auro-menuoption>
1800
+ <auro-menuoption value="sun" id="airport-sun" suggest="sun idaho sun valley">friedman memorial</auro-menuoption>
1801
+ <auro-menuoption value="mzt" id="airport-mzt" suggest="mzt sinaloa mazatlan">general rafael buelna international</auro-menuoption>
1802
+ <auro-menuoption value="dlg" id="airport-dlg" suggest="dlg alaska dillingham">dillingham</auro-menuoption>
1803
+ <auro-menuoption value="adq" id="airport-adq" suggest="adq alaska kodiak">kodiak</auro-menuoption>
1804
+ <auro-menuoption value="den" id="airport-den" suggest="den colorado denver">denver international</auro-menuoption>
1805
+ <auro-menuoption value="zlo" id="airport-zlo" suggest="zlo colima manzanillo">manzanillo international</auro-menuoption>
1806
+ <auro-menuoption value="sjd" id="airport-sjd" suggest="sjd baja california los cabos">los cabos international</auro-menuoption>
1807
+ <auro-menuoption value="elp" id="airport-elp" suggest="elp texas el paso">el paso international airport</auro-menuoption>
1808
+ <auro-menuoption value="atl" id="airport-atl" suggest="atl georgia atlanta">hartsfield jackson international</auro-menuoption>
1809
+ <auro-menuoption value="lax" id="airport-lax" suggest="lax california los angeles">los angeles international</auro-menuoption>
1810
+ <auro-menuoption value="rsw" id="airport-rsw" suggest="rsw florida fort myers">southwest florida international</auro-menuoption>
1811
+ <auro-menuoption value="cle" id="airport-cle" suggest="cle ohio cleveland">cleveland hopkins international airport</auro-menuoption>
1812
+ <auro-menuoption value="otz" id="airport-otz" suggest="otz alaska kotzebue">ralph wien memorial</auro-menuoption>
1813
+ <auro-menuoption value="bze" id="airport-bze" suggest="bze belize belize city">philip sw goldson international airport</auro-menuoption>
1814
+ <auro-menuoption value="eat" id="airport-eat" suggest="eat washington wenatchee">pangborn memorial</auro-menuoption>
1815
+ <auro-menuoption value="dtw" id="airport-dtw" suggest="dtw michigan detroit">detroit metropolitan</auro-menuoption>
1816
+ <auro-menuoption value="bet" id="airport-bet" suggest="bet alaska bethel">bethel</auro-menuoption>
1817
+ <auro-menuoption value="dca" id="airport-dca" suggest="dca district of columbia washington">ronald reagan national</auro-menuoption>
1818
+ <auro-menuoption value="rno" id="airport-rno" suggest="rno nevada reno">reno tahoe international</auro-menuoption>
1819
+ <auro-menuoption value="brw" id="airport-brw" suggest="brw alaska barrow">wiley post will rogers</auro-menuoption>
1820
+ <auro-menuoption value="mry" id="airport-mry" suggest="mry california monterey">monterey regional</auro-menuoption>
1821
+ <auro-menuoption value="hnl" id="airport-hnl" suggest="hnl hawaii oahu">honolulu international</auro-menuoption>
1822
+ <auro-menuoption value="okc" id="airport-okc" suggest="okc oklahoma oklahoma city">will rogers world</auro-menuoption>
1823
+ <auro-menuoption value="iad" id="airport-iad" suggest="iad virginia dulles">washington dulles international</auro-menuoption>
1824
+ <auro-menuoption value="mia" id="airport-mia" suggest="mia florida miami">miami international</auro-menuoption>
1825
+ <auro-menuoption value="bli" id="airport-bli" suggest="bli washington bellingham">bellingham international</auro-menuoption>
1826
+ <auro-menuoption value="hln" id="airport-hln" suggest="hln montana helena">helena regional</auro-menuoption>
1827
+ <auro-menuoption value="gtf" id="airport-gtf" suggest="gtf montana great falls">great falls international</auro-menuoption>
1828
+ <auro-menuoption value="zih" id="airport-zih" suggest="zih guerrero zihuatanejo">ixtapa zihuatanejo international</auro-menuoption>
1829
+ <auro-menuoption value="yyc" id="airport-yyc" suggest="yyc alberta calgary">calgary international</auro-menuoption>
1830
+ <auro-menuoption value="sna" id="airport-sna" suggest="sna california santa ana">john wayne</auro-menuoption>
1831
+ <auro-menuoption value="fll" id="airport-fll" suggest="fll florida fort lauderdale">fort lauderdale hollywood international</auro-menuoption>
1832
+ <auro-menuoption value="ewr" id="airport-ewr" suggest="ewr new jersey newark">newark liberty international</auro-menuoption>
1833
+ <auro-menuoption value="hdn" id="airport-hdn" suggest="hdn colorado steamboat springs">yampa valley regional</auro-menuoption>
1834
+ <auro-menuoption value="psc" id="airport-psc" suggest="psc washington pasco">tri cities</auro-menuoption>
1835
+ <auro-menuoption value="tus" id="airport-tus" suggest="tus arizona tucson">tucson international</auro-menuoption>
1836
+ <auro-menuoption value="abq" id="airport-abq" suggest="abq new mexico albuquerque">albuquerque international sunport</auro-menuoption>
1837
+ <auro-menuoption value="jfk" id="airport-jfk" suggest="jfk new york new york">john f kennedy international</auro-menuoption>
1838
+ <auro-menuoption value="yvr" id="airport-yvr" suggest="yvr british columbia vancouver">vancouver international</auro-menuoption>
1839
+ <auro-menuoption value="sjo" id="airport-sjo" suggest="sjo san jose alajuela province">juan santamaria international</auro-menuoption>
1840
+ <auro-menuoption value="las" id="airport-las" suggest="las nevada las vegas">harry reid international airport</auro-menuoption>
1841
+ <auro-menuoption value="lih" id="airport-lih" suggest="lih hawaii kauai">lihue international</auro-menuoption>
1842
+ <auro-menuoption value="mso" id="airport-mso" suggest="mso montana missoula">missoula international</auro-menuoption>
1843
+ <auro-menuoption value="alw" id="airport-alw" suggest="alw washington walla walla">walla walla regional</auro-menuoption>
1844
+ <auro-menuoption value="mke" id="airport-mke" suggest="mke wisconsin milwaukee">milwaukee mitchell international</auro-menuoption>
1845
+ <auro-menuoption value="eug" id="airport-eug" suggest="eug oregon eugene">mahlon sweet field</auro-menuoption>
1846
+ <auro-menuoption value="akn" id="airport-akn" suggest="akn alaska king salmon">king salmon</auro-menuoption>
1847
+ <auro-menuoption value="cun" id="airport-cun" suggest="cun quintana roo cancun">cancun international</auro-menuoption>
1848
+ <auro-menuoption value="rdd" id="airport-rdd" suggest="rdd california redding">redding municipal airport</auro-menuoption>
1849
+ <auro-menuoption value="mco" id="airport-mco" suggest="mco florida orlando">orlando international</auro-menuoption>
1850
+ <auro-menuoption value="slc" id="airport-slc" suggest="slc utah salt lake city">salt lake city international</auro-menuoption>
1851
+ <auro-menuoption value="phx" id="airport-phx" suggest="phx arizona phoenix">sky harbor international</auro-menuoption>
1852
+ <auro-menuoption value="bil" id="airport-bil" suggest="bil montana billings">billings logan international</auro-menuoption>
1853
+ <auro-menuoption value="gst" id="airport-gst" suggest="gst alaska gustavus">gustavus</auro-menuoption>
1854
+ <auro-menuoption value="adk" id="airport-adk" suggest="adk alaska adak">adak</auro-menuoption>
1855
+ <auro-menuoption value="cvg" id="airport-cvg" suggest="cvg kentucky hebron">cincinnati northern kentucky international</auro-menuoption>
1856
+ <auro-menuoption value="jac" id="airport-jac" suggest="jac wyoming jackson">jackson hole airport</auro-menuoption>
1857
+ <auro-menuoption value="cmh" id="airport-cmh" suggest="cmh ohio columbus">john glenn columbus international</auro-menuoption>
1858
+ <auro-menuoption value="yyj" id="airport-yyj" suggest="yyj british columbia victoria">victoria international</auro-menuoption>
1859
+ <auro-menuoption value="chs" id="airport-chs" suggest="chs south carolina charleston">charleston international</auro-menuoption>
1860
+ <auro-menuoption value="iah" id="airport-iah" suggest="iah texas houston">george bush intercontinental</auro-menuoption>
1861
+ <auro-menuoption static nomatch>Unknown airport... </auro-menuoption>
1862
+ </auro-menu>
1863
+ </auro-combobox>
1607
1864
  ```
1608
1865
  <!-- AURO-GENERATED-CONTENT:END -->
1609
1866
  </auro-accordion>
1610
1867
 
1611
- ### Dropdown with fullscreen bib
1868
+ ### Dynamically Set Value
1612
1869
 
1613
- You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
1870
+ Use the `value` attribute in combination with another element to dynamically set the value of the combobox.
1614
1871
 
1615
- The default value of `fullscreenBreakpoint` is `sm`.
1872
+ Can be used in the following ways:
1873
+ * Preset the value of the combobox to valid menu option
1874
+ * Set the value of the combobox to invalid menu option
1875
+ * Reset the value of the combobox to undefined
1876
+
1877
+ Note: using a value that does not match a menu option will reset the combobox value to undefined.
1616
1878
 
1617
- Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/developers/design-tokens)
1618
-
1619
- To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMMENDED**.
1620
-
1621
1879
  <div class="exampleWrapper">
1622
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreenBreakpoint.html) -->
1623
- <!-- The below content is automatically added from ./../apiExamples/fullscreenBreakpoint.html -->
1624
- <auro-combobox fullscreenBreakpoint="lg">
1880
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/value.html) -->
1881
+ <!-- The below content is automatically added from ./../apiExamples/value.html -->
1882
+ <auro-button id="valueValidExampleBtn">Set to an existing option</auro-button>
1883
+ <auro-button id="valueInvalidExampleBtn">Set to custom value</auro-button>
1884
+ <auro-button id="valueUndefinedExampleBtn">Reset</auro-button>
1885
+ <br/><br/>
1886
+ <auro-combobox id="valueExample">
1625
1887
  <span slot="bib.fullscreen.headline">Bib Header</span>
1626
1888
  <span slot="label">Name</span>
1627
1889
  <auro-menu>
@@ -1630,6 +1892,7 @@ To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMM
1630
1892
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1631
1893
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1632
1894
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1895
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1633
1896
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
1634
1897
  </auro-menu>
1635
1898
  </auro-combobox>
@@ -1637,11 +1900,15 @@ To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMM
1637
1900
  </div>
1638
1901
  <auro-accordion alignRight>
1639
1902
  <span slot="trigger">See code</span>
1640
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fullscreenBreakpoint.html) -->
1641
- <!-- The below code snippet is automatically added from ./../apiExamples/fullscreenBreakpoint.html -->
1903
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/value.html) -->
1904
+ <!-- The below code snippet is automatically added from ./../apiExamples/value.html -->
1642
1905
 
1643
1906
  ```html
1644
- <auro-combobox fullscreenBreakpoint="lg">
1907
+ <auro-button id="valueValidExampleBtn">Set to an existing option</auro-button>
1908
+ <auro-button id="valueInvalidExampleBtn">Set to custom value</auro-button>
1909
+ <auro-button id="valueUndefinedExampleBtn">Reset</auro-button>
1910
+ <br/><br/>
1911
+ <auro-combobox id="valueExample">
1645
1912
  <span slot="bib.fullscreen.headline">Bib Header</span>
1646
1913
  <span slot="label">Name</span>
1647
1914
  <auro-menu>
@@ -1650,20 +1917,42 @@ To support fullcreen bib, setting `bib.fullscreen.headline` is **STRONGLY RECOMM
1650
1917
  <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1651
1918
  <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1652
1919
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1920
+ <auro-menuoption value="Prefer Alaska" id="option-5">Prefer Alaska</auro-menuoption>
1653
1921
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
1654
1922
  </auro-menu>
1655
1923
  </auro-combobox>
1656
1924
  ```
1657
1925
  <!-- AURO-GENERATED-CONTENT:END -->
1926
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/value.js) -->
1927
+ <!-- The below code snippet is automatically added from ./../apiExamples/value.js -->
1928
+
1929
+ ```js
1930
+ export function valueExample() {
1931
+ const valueExample = document.querySelector('#valueExample');
1932
+
1933
+ document.querySelector('#valueValidExampleBtn').addEventListener('click', () => {
1934
+ valueExample.value = 'Oranges';
1935
+ });
1936
+
1937
+ document.querySelector('#valueInvalidExampleBtn').addEventListener('click', () => {
1938
+ valueExample.value = 'Dragon Fruit';
1939
+ });
1940
+
1941
+ document.querySelector('#valueUndefinedExampleBtn').addEventListener('click', () => {
1942
+ valueExample.value = undefined;
1943
+ });
1944
+ }
1945
+ ```
1946
+ <!-- AURO-GENERATED-CONTENT:END -->
1658
1947
  </auro-accordion>
1659
1948
 
1660
- #### in Dialog
1949
+ ### In Dialog
1661
1950
 
1662
- The component can be in a dialog.
1951
+ Example use of component within an `auro-dialog`.
1663
1952
 
1664
1953
  <div class="exampleWrapper">
1665
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inDialog.html) -->
1666
- <!-- The below content is automatically added from ./../apiExamples/inDialog.html -->
1954
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-dialog.html) -->
1955
+ <!-- The below content is automatically added from ./../apiExamples/in-dialog.html -->
1667
1956
  <div>
1668
1957
  <auro-button id="combobox-dialog-opener">Combobox in Dialog</auro-button>
1669
1958
  <auro-dialog id="combobox-dialog">
@@ -1688,8 +1977,8 @@ The component can be in a dialog.
1688
1977
  </div>
1689
1978
  <auro-accordion alignRight>
1690
1979
  <span slot="trigger">See code</span>
1691
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inDialog.html) -->
1692
- <!-- The below code snippet is automatically added from ./../apiExamples/inDialog.html -->
1980
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.html) -->
1981
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.html -->
1693
1982
 
1694
1983
  ```html
1695
1984
  <div>
@@ -1714,8 +2003,8 @@ The component can be in a dialog.
1714
2003
  </div>
1715
2004
  ```
1716
2005
  <!-- AURO-GENERATED-CONTENT:END -->
1717
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inDialog.js) -->
1718
- <!-- The below code snippet is automatically added from ./../apiExamples/inDialog.js -->
2006
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.js) -->
2007
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.js -->
1719
2008
 
1720
2009
  ```js
1721
2010
  export function inDialogExample() {
@@ -1728,15 +2017,125 @@ export function inDialogExample() {
1728
2017
  <!-- AURO-GENERATED-CONTENT:END -->
1729
2018
  </auro-accordion>
1730
2019
 
1731
- #### Custom display value
2020
+ ### Persistent Menu Option with a Custom Event
1732
2021
 
1733
- You can fully customize how selected values appear by using the `displayValue` slot. This slot allows you to pass in any HTML content. Only the `snowflake` and `emphasized` layouts are supported.
2022
+ This example demonstrates a static menu option that will always appears regardless of the suggestion filtering performed. In this example "Add new address" will always be a displayed menu option.
1734
2023
 
1735
- <div class="exampleWrapper--ondark">
1736
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/displayValueSlot.html) -->
1737
- <!-- The below content is automatically added from ./../apiExamples/displayValueSlot.html -->
1738
- <auro-combobox layout="snowflake" shape="snowflake" size="xl" appearance="inverse" value="Apples">
1739
- <span slot="bib.fullscreen.headline">Bib Header</span>
2024
+ <div class="exampleWrapper">
2025
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/persistent.html) -->
2026
+ <!-- The below content is automatically added from ./../apiExamples/persistent.html -->
2027
+ <auro-combobox id="persistent">
2028
+ <span slot="bib.fullscreen.headline">Address Combobox</span>
2029
+ <span slot="label">Address</span>
2030
+ <auro-menu id="customEvent">
2031
+ <auro-menuoption value="555 Address Way Seattle, WA 99999">555 Address Way Seattle, WA 99999</auro-menuoption>
2032
+ <auro-menuoption value="333 Some Street Seattle, WA 99999">333 Some Street Seattle, WA 99999</auro-menuoption>
2033
+ <auro-menuoption event="addNewAddress" persistent>Add new address</auro-menuoption>
2034
+ </auro-menu>
2035
+ </auro-combobox>
2036
+ <!-- AURO-GENERATED-CONTENT:END -->
2037
+ </div>
2038
+ <auro-accordion alignRight>
2039
+ <span slot="trigger">See code</span>
2040
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/persistent.html) -->
2041
+ <!-- The below code snippet is automatically added from ./../apiExamples/persistent.html -->
2042
+
2043
+ ```html
2044
+ <auro-combobox id="persistent">
2045
+ <span slot="bib.fullscreen.headline">Address Combobox</span>
2046
+ <span slot="label">Address</span>
2047
+ <auro-menu id="customEvent">
2048
+ <auro-menuoption value="555 Address Way Seattle, WA 99999">555 Address Way Seattle, WA 99999</auro-menuoption>
2049
+ <auro-menuoption value="333 Some Street Seattle, WA 99999">333 Some Street Seattle, WA 99999</auro-menuoption>
2050
+ <auro-menuoption event="addNewAddress" persistent>Add new address</auro-menuoption>
2051
+ </auro-menu>
2052
+ </auro-combobox>
2053
+ ```
2054
+ <!-- AURO-GENERATED-CONTENT:END -->
2055
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/persistent.js) -->
2056
+ <!-- The below code snippet is automatically added from ./../apiExamples/persistent.js -->
2057
+
2058
+ ```js
2059
+ export function persistentExample() {
2060
+ const persistentExample = document.querySelector('#persistent');
2061
+
2062
+ persistentExample.addEventListener('addNewAddress', () => {
2063
+ console.warn('addNewAddress event fired');
2064
+ alert(`addNewAddress event fired`);
2065
+ });
2066
+ }
2067
+ ```
2068
+ <!-- AURO-GENERATED-CONTENT:END -->
2069
+ </auro-accordion>
2070
+
2071
+ ### Swapping Values Between Comboboxes
2072
+
2073
+ This example illustrates using a JavaScript function attached to an auro-button component click event to swap the values of two `auro-combobox` elements. An example of this use case would be swapping the departure and arrival airports in a flight search form.
2074
+
2075
+ <div class="exampleWrapper">
2076
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/swap-value.html) -->
2077
+ <!-- The below content is automatically added from ./../apiExamples/swap-value.html -->
2078
+ <div id="swapExample">
2079
+ <auro-combobox id="swapExampleLeft">
2080
+ <span slot="bib.fullscreen.headline">Left Combobox Header</span>
2081
+ <span slot="label">Name</span>
2082
+ <auro-menu>
2083
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
2084
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
2085
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
2086
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
2087
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
2088
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
2089
+ </auro-menu>
2090
+ </auro-combobox>
2091
+ <auro-button id="swapExampleBtn" iconOnly>
2092
+ <auro-icon
2093
+ customColor
2094
+ category="terminal"
2095
+ name="round-trip-arrows">
2096
+ </auro-icon>
2097
+ </auro-button>
2098
+ <auro-combobox id="swapExampleRight">
2099
+ <span slot="bib.fullscreen.headline">Right Combobox Header</span>
2100
+ <span slot="label">Name</span>
2101
+ <auro-menu>
2102
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
2103
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
2104
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
2105
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
2106
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
2107
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
2108
+ </auro-menu>
2109
+ </auro-combobox>
2110
+ </div>
2111
+ <style>
2112
+ #swapExample {
2113
+ display: flex;
2114
+ flex-direction: row;
2115
+
2116
+ align-items: center;
2117
+ }
2118
+
2119
+ #swapExampleLeft,
2120
+ #swapExampleRight {
2121
+ flex: 1;
2122
+ }
2123
+
2124
+ #swapExampleBtn {
2125
+ margin: 0 5px;
2126
+ }
2127
+ </style>
2128
+ <!-- AURO-GENERATED-CONTENT:END -->
2129
+ </div>
2130
+ <auro-accordion alignRight>
2131
+ <span slot="trigger">See code</span>
2132
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/swap-value.html) -->
2133
+ <!-- The below code snippet is automatically added from ./../apiExamples/swap-value.html -->
2134
+
2135
+ ```html
2136
+ <div id="swapExample">
2137
+ <auro-combobox id="swapExampleLeft">
2138
+ <span slot="bib.fullscreen.headline">Left Combobox Header</span>
1740
2139
  <span slot="label">Name</span>
1741
2140
  <auro-menu>
1742
2141
  <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
@@ -1746,35 +2145,63 @@ You can fully customize how selected values appear by using the `displayValue` s
1746
2145
  <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1747
2146
  <auro-menuoption static nomatch>No matching option</auro-menuoption>
1748
2147
  </auro-menu>
1749
- <div slot="displayValue">
1750
- <div class="mainText">Custom display value</div>
1751
- <div class="subText">Any html can be used</div>
1752
- </div>
1753
2148
  </auro-combobox>
1754
- <!-- AURO-GENERATED-CONTENT:END -->
1755
- </div>
1756
- <auro-accordion alignRight>
1757
- <span slot="trigger">See code</span>
1758
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/displayValueSlot.html) -->
1759
- <!-- The below code snippet is automatically added from ./../apiExamples/displayValueSlot.html -->
1760
-
1761
- ```html
1762
- <auro-combobox layout="snowflake" shape="snowflake" size="xl" appearance="inverse" value="Apples">
1763
- <span slot="bib.fullscreen.headline">Bib Header</span>
1764
- <span slot="label">Name</span>
1765
- <auro-menu>
1766
- <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
1767
- <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
1768
- <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
1769
- <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
1770
- <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
1771
- <auro-menuoption static nomatch>No matching option</auro-menuoption>
1772
- </auro-menu>
1773
- <div slot="displayValue">
1774
- <div class="mainText">Custom display value</div>
1775
- <div class="subText">Any html can be used</div>
1776
- </div>
1777
- </auro-combobox>
2149
+ <auro-button id="swapExampleBtn" iconOnly>
2150
+ <auro-icon
2151
+ customColor
2152
+ category="terminal"
2153
+ name="round-trip-arrows">
2154
+ </auro-icon>
2155
+ </auro-button>
2156
+ <auro-combobox id="swapExampleRight">
2157
+ <span slot="bib.fullscreen.headline">Right Combobox Header</span>
2158
+ <span slot="label">Name</span>
2159
+ <auro-menu>
2160
+ <auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
2161
+ <auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
2162
+ <auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
2163
+ <auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
2164
+ <auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
2165
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
2166
+ </auro-menu>
2167
+ </auro-combobox>
2168
+ </div>
2169
+ <style>
2170
+ #swapExample {
2171
+ display: flex;
2172
+ flex-direction: row;
2173
+
2174
+ align-items: center;
2175
+ }
2176
+
2177
+ #swapExampleLeft,
2178
+ #swapExampleRight {
2179
+ flex: 1;
2180
+ }
2181
+
2182
+ #swapExampleBtn {
2183
+ margin: 0 5px;
2184
+ }
2185
+ </style>
1778
2186
  ```
1779
2187
  <!-- AURO-GENERATED-CONTENT:END -->
1780
- </auro-accordion>
2188
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/swap-value.js) -->
2189
+ <!-- The below code snippet is automatically added from ./../apiExamples/swap-value.js -->
2190
+
2191
+ ```js
2192
+ export function swapValueExample() {
2193
+ const btn = document.querySelector('#swapExampleBtn');
2194
+ const comboboxOne = document.querySelector('#swapExampleLeft');
2195
+ const comboboxTwo = document.querySelector('#swapExampleRight');
2196
+
2197
+ btn.addEventListener('click', () => {
2198
+ const valueOne = comboboxOne.value;
2199
+ const valueTwo = comboboxTwo.value;
2200
+
2201
+ comboboxOne.value = valueTwo;
2202
+ comboboxTwo.value = valueOne;
2203
+ });
2204
+ }
2205
+ ```
2206
+ <!-- AURO-GENERATED-CONTENT:END -->
2207
+ </auro-accordion>