@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,39 +1,41 @@
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-dropdown
4
+ # auro-dropdown
5
+
6
+ The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
5
7
 
6
8
  ## Properties
7
9
 
8
- | Property | Attribute | Type | Default | Description |
9
- |-------------------------|-------------------------|-------------|----------------|--------------------------------------------------|
10
- | `a11yRole` | | | | The value for the role attribute of the trigger element. |
11
- | [appearance](#appearance) | `appearance` | `string` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
12
- | [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
13
- | [chevron](#chevron) | `chevron` | ` Boolean ` | | If declared, the dropdown displays a chevron on the right. |
14
- | [disableEventShow](#disableEventShow) | `disableEventShow` | ` Boolean ` | "false" | If declared, the dropdown will only show by calling the API .show() public method. |
15
- | [disableFocusTrap](#disableFocusTrap) | `disableFocusTrap` | `boolean` | | If declared, the focus trap inside of bib will be turned off. |
16
- | [disabled](#disabled) | `disabled` | ` Boolean ` | | If declared, the dropdown is not interactive. |
17
- | [error](#error) | `error` | ` Boolean ` | | If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both. |
18
- | [errorMessage](#errorMessage) | `errorMessage` | `string` | "undefined" | Contains the help text message for the current validity error. |
19
- | [focusShow](#focusShow) | `focusShow` | ` Boolean ` | | If declared, the bib will display when focus is applied to the trigger. |
20
- | [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. |
21
- | [hoverToggle](#hoverToggle) | `hoverToggle` | ` Boolean ` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
22
- | [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
23
- | [isPopoverVisible](#isPopoverVisible) | `open` | ` Boolean ` | false | If true, the dropdown bib is displayed. |
24
- | [layout](#layout) | | | "undefined" | |
25
- | [matchWidth](#matchWidth) | `matchWidth` | ` Boolean ` | false | If declared, the popover and trigger will be set to the same width. |
26
- | [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`. |
27
- | [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | ` Boolean ` | false | If declared, the dropdown will not hide when moving focus outside the element. |
28
- | [noToggle](#noToggle) | `noToggle` | ` Boolean ` | | If declared, the trigger will only show the dropdown bib. |
29
- | [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
30
- | [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance` instead. |
31
- | [onSlotChange](#onSlotChange) | `onSlotChange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
32
- | [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger. |
33
- | [shape](#shape) | | | "undefined" | |
34
- | [shift](#shift) | `shift` | `boolean` | "false" | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
35
- | [simple](#simple) | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
36
- | [size](#size) | | | "undefined" | |
10
+ | Property | Attribute | Type | Default | Description |
11
+ |-------------------------|-------------------------|--------------------------------------------------|------------------|--------------------------------------------------|
12
+ | `a11yRole` | | | | The value for the role attribute of the trigger element. |
13
+ | [appearance](#appearance) | `appearance` | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
14
+ | [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | | If declared, bib's position will be automatically calculated where to appear. |
15
+ | [chevron](#chevron) | `chevron` | `boolean` | | If declared, the dropdown displays a chevron on the right. |
16
+ | [disableEventShow](#disableEventShow) | `disableEventShow` | `boolean` | | If declared, the dropdown will only show by calling the API .show() public method. |
17
+ | [disableFocusTrap](#disableFocusTrap) | `disableFocusTrap` | `boolean` | | If declared, the focus trap inside of bib will be turned off. |
18
+ | [disabled](#disabled) | `disabled` | `boolean` | | If declared, the dropdown is not interactive. |
19
+ | [error](#error) | `error` | `boolean` | | If declared, will apply error UI to the dropdown. |
20
+ | [errorMessage](#errorMessage) | `errorMessage` | `string` | "undefined" | Contains the help text message for the current validity error. |
21
+ | [focusShow](#focusShow) | `focusShow` | `boolean` | | If declared, the bib will display when focus is applied to the trigger. |
22
+ | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint 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. |
23
+ | [hoverToggle](#hoverToggle) | `hoverToggle` | `boolean` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
24
+ | [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
25
+ | [isPopoverVisible](#isPopoverVisible) | `open` | `boolean` | false | If true, the dropdown bib is displayed. |
26
+ | [layout](#layout) | `layout` | `'classic' \| 'emphasized' \| 'snowflake'` | "'classic'" | Sets the layout of the dropdown. |
27
+ | [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
28
+ | [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`. |
29
+ | [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | `boolean` | false | If declared, the dropdown will not hide when moving focus outside the element. |
30
+ | [noToggle](#noToggle) | `noToggle` | `boolean` | | If declared, the trigger will only show the dropdown bib. |
31
+ | [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
32
+ | [onDark](#onDark) | `onDark` | `boolean` | | DEPRECATED - use `appearance="inverse"` instead. |
33
+ | [onSlotChange](#onSlotChange) | `onSlotChange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
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
+ | [shape](#shape) | | | "undefined" | |
36
+ | [shift](#shift) | `shift` | `boolean` | | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
37
+ | [simple](#simple) | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
38
+ | [size](#size) | | | "undefined" | |
37
39
 
38
40
  ## Methods
39
41
 
@@ -48,7 +50,7 @@
48
50
 
49
51
  | Event | Type | Description |
50
52
  |-----------------------------|--------------------------------------|--------------------------------------------------|
51
- | `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | |
53
+ | `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | Notifies consumers that the unique ID for the dropdown bib has been generated. |
52
54
  | `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
53
55
  | `auroDropdown-triggerClick` | `CustomEvent<any>` | Notifies that the trigger has been clicked. |
54
56
 
@@ -66,18 +68,15 @@
66
68
  |------------|--------------------------------------------------|
67
69
  | [chevron](#chevron) | The collapsed/expanded state icon container. |
68
70
  | [helpText](#helpText) | The helpText content container. |
69
- | [popover](#popover) | The bib content container. |
70
71
  | [size](#size) | The size of the dropdown bib. (height, width, maxHeight, maxWidth only) |
71
72
  | [trigger](#trigger) | The trigger content container. |
72
73
  <!-- AURO-GENERATED-CONTENT:END -->
73
74
 
74
- ## API Examples
75
-
76
- ### Basic
75
+ ## Basic
77
76
 
78
- The most basic, simple version of `auro-dropdown`.
77
+ The following examples demonstrate basic usage of the `auro-dropdown` component with different types of trigger content.
79
78
 
80
- #### Text content in trigger
79
+ ### Text
81
80
 
82
81
  <div class="exampleWrapper">
83
82
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
@@ -90,17 +89,6 @@ The most basic, simple version of `auro-dropdown`.
90
89
  </auro-dropdown>
91
90
  <!-- AURO-GENERATED-CONTENT:END -->
92
91
  </div>
93
- <div class="exampleWrapper--ondark" aria-hidden>
94
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
95
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
96
- <auro-dropdown appearance="inverse" aria-label="custom label">
97
- Lorem ipsum solar
98
- <div slot="trigger">
99
- Trigger
100
- </div>
101
- </auro-dropdown>
102
- <!-- AURO-GENERATED-CONTENT:END -->
103
- </div>
104
92
  <auro-accordion alignRight>
105
93
  <span slot="trigger">See code</span>
106
94
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
@@ -115,8 +103,8 @@ The most basic, simple version of `auro-dropdown`.
115
103
  </auro-dropdown>
116
104
  ```
117
105
  <!-- AURO-GENERATED-CONTENT:END -->
118
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
119
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
106
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
107
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
120
108
  <auro-dropdown appearance="inverse" aria-label="custom label">
121
109
  Lorem ipsum solar
122
110
  <div slot="trigger">
@@ -126,11 +114,11 @@ The most basic, simple version of `auro-dropdown`.
126
114
  <!-- AURO-GENERATED-CONTENT:END -->
127
115
  </auro-accordion>
128
116
 
129
- #### Icon content in trigger
117
+ ### Icon
130
118
 
131
119
  <div class="exampleWrapper">
132
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicIcon.html) -->
133
- <!-- The below content is automatically added from ./../apiExamples/basicIcon.html -->
120
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-icon.html) -->
121
+ <!-- The below content is automatically added from ./../apiExamples/basic-icon.html -->
134
122
  <auro-dropdown aria-label="custom label">
135
123
  Lorem ipsum solar
136
124
  <div slot="trigger">
@@ -143,8 +131,8 @@ The most basic, simple version of `auro-dropdown`.
143
131
  </div>
144
132
  <auro-accordion alignRight>
145
133
  <span slot="trigger">See code</span>
146
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicIcon.html) -->
147
- <!-- The below code snippet is automatically added from ./../apiExamples/basicIcon.html -->
134
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-icon.html) -->
135
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic-icon.html -->
148
136
 
149
137
  ```html
150
138
  <auro-dropdown aria-label="custom label">
@@ -158,9 +146,12 @@ The most basic, simple version of `auro-dropdown`.
158
146
  ```
159
147
  <!-- AURO-GENERATED-CONTENT:END -->
160
148
  </auro-accordion>
149
+
150
+ ### Button
151
+
161
152
  <div class="exampleWrapper">
162
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicButton.html) -->
163
- <!-- The below content is automatically added from ./../apiExamples/basicButton.html -->
153
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-button.html) -->
154
+ <!-- The below content is automatically added from ./../apiExamples/basic-button.html -->
164
155
  <auro-dropdown aria-label="custom label">
165
156
  Lorem ipsum solar
166
157
  <div slot="trigger">
@@ -173,8 +164,8 @@ The most basic, simple version of `auro-dropdown`.
173
164
  </div>
174
165
  <auro-accordion alignRight>
175
166
  <span slot="trigger">See code</span>
176
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicButton.html) -->
177
- <!-- The below code snippet is automatically added from ./../apiExamples/basicButton.html -->
167
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-button.html) -->
168
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic-button.html -->
178
169
 
179
170
  ```html
180
171
  <auro-dropdown aria-label="custom label">
@@ -189,41 +180,30 @@ The most basic, simple version of `auro-dropdown`.
189
180
  <!-- AURO-GENERATED-CONTENT:END -->
190
181
  </auro-accordion>
191
182
 
192
- ### Property Examples
183
+ ## Property & Attribute Examples
193
184
 
194
- #### bordered
185
+ ### Appearance on Dark Backgrounds
195
186
 
196
- Adds the border style around the dropdown trigger.
187
+ Use the `appearance="inverse"` attribute to ensure proper styling when the dropdown is used on dark backgrounds.
197
188
 
198
189
  <div class="exampleWrapper">
199
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/bordered.html) -->
200
- <!-- The below content is automatically added from ./../apiExamples/bordered.html -->
201
- <auro-dropdown aria-label="custom label" bordered>
202
- Lorem ipsum solar
203
- <div slot="trigger">
204
- Trigger
205
- </div>
206
- </auro-dropdown>
207
- <!-- AURO-GENERATED-CONTENT:END -->
208
- </div>
209
- <div class="exampleWrapper--ondark" aria-hidden>
210
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceBordered.html) -->
211
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceBordered.html -->
212
- <auro-dropdown appearance="inverse" aria-label="custom label" layout="classic" shape="classic" size="lg">
213
- Lorem ipsum solar
214
- <div slot="trigger">
215
- Trigger
216
- </div>
217
- </auro-dropdown>
218
- <!-- AURO-GENERATED-CONTENT:END -->
190
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
191
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
192
+ <auro-dropdown appearance="inverse" aria-label="custom label">
193
+ Lorem ipsum solar
194
+ <div slot="trigger">
195
+ Trigger
196
+ </div>
197
+ </auro-dropdown>
198
+ <!-- AURO-GENERATED-CONTENT:END -->
219
199
  </div>
220
200
  <auro-accordion alignRight>
221
201
  <span slot="trigger">See code</span>
222
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/bordered.html) -->
223
- <!-- The below code snippet is automatically added from ./../apiExamples/bordered.html -->
202
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse.html) -->
203
+ <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse.html -->
224
204
 
225
205
  ```html
226
- <auro-dropdown aria-label="custom label" bordered>
206
+ <auro-dropdown appearance="inverse" aria-label="custom label">
227
207
  Lorem ipsum solar
228
208
  <div slot="trigger">
229
209
  Trigger
@@ -231,20 +211,22 @@ Adds the border style around the dropdown trigger.
231
211
  </auro-dropdown>
232
212
  ```
233
213
  <!-- AURO-GENERATED-CONTENT:END -->
234
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceBordered.html) -->
235
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceBordered.html -->
236
- <auro-dropdown appearance="inverse" aria-label="custom label" layout="classic" shape="classic" size="lg">
237
- Lorem ipsum solar
238
- <div slot="trigger">
239
- Trigger
240
- </div>
241
- </auro-dropdown>
242
- <!-- AURO-GENERATED-CONTENT:END -->
243
214
  </auro-accordion>
215
+ <div class="exampleWrapper--ondark" aria-hidden>
216
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
217
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
218
+ <auro-dropdown appearance="inverse" aria-label="custom label">
219
+ Lorem ipsum solar
220
+ <div slot="trigger">
221
+ Trigger
222
+ </div>
223
+ </auro-dropdown>
224
+ <!-- AURO-GENERATED-CONTENT:END -->
225
+ </div>
244
226
 
245
- #### chevron
227
+ ### Chevron
246
228
 
247
- Adds the bib visibility state chevron to the right side of the trigger content.
229
+ Use the `chevron` attribute to add a chevron icon to the dropdown trigger.
248
230
 
249
231
  <div class="exampleWrapper">
250
232
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevron.html) -->
@@ -272,102 +254,10 @@ Adds the bib visibility state chevron to the right side of the trigger content.
272
254
  ```
273
255
  <!-- AURO-GENERATED-CONTENT:END -->
274
256
  </auro-accordion>
275
- <div class="exampleWrapper">
276
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevronIcon.html) -->
277
- <!-- The below content is automatically added from ./../apiExamples/chevronIcon.html -->
278
- <auro-dropdown aria-label="custom label" chevron>
279
- Lorem ipsum solar
280
- <div slot="trigger">
281
- <auro-icon
282
- category="interface"
283
- name="arrow-down"></auro-icon>
284
- </div>
285
- </auro-dropdown>
286
- <!-- AURO-GENERATED-CONTENT:END -->
287
- </div>
288
- <auro-accordion alignRight>
289
- <span slot="trigger">See code</span>
290
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevronIcon.html) -->
291
- <!-- The below code snippet is automatically added from ./../apiExamples/chevronIcon.html -->
292
-
293
- ```html
294
- <auro-dropdown aria-label="custom label" chevron>
295
- Lorem ipsum solar
296
- <div slot="trigger">
297
- <auro-icon
298
- category="interface"
299
- name="arrow-down"></auro-icon>
300
- </div>
301
- </auro-dropdown>
302
- ```
303
- <!-- AURO-GENERATED-CONTENT:END -->
304
- </auro-accordion>
305
- <div class="exampleWrapper">
306
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevronButton.html) -->
307
- <!-- The below content is automatically added from ./../apiExamples/chevronButton.html -->
308
- <auro-dropdown aria-label="custom label" chevron>
309
- Lorem ipsum solar
310
- <div slot="trigger">
311
- <auro-button slot="trigger">
312
- Dropdown
313
- </auro-button>
314
- </div>
315
- </auro-dropdown>
316
- <!-- AURO-GENERATED-CONTENT:END -->
317
- </div>
318
- <auro-accordion alignRight>
319
- <span slot="trigger">See code</span>
320
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevronButton.html) -->
321
- <!-- The below code snippet is automatically added from ./../apiExamples/chevronButton.html -->
322
-
323
- ```html
324
- <auro-dropdown aria-label="custom label" chevron>
325
- Lorem ipsum solar
326
- <div slot="trigger">
327
- <auro-button slot="trigger">
328
- Dropdown
329
- </auro-button>
330
- </div>
331
- </auro-dropdown>
332
- ```
333
- <!-- AURO-GENERATED-CONTENT:END -->
334
- </auro-accordion>
335
- <div class="exampleWrapper">
336
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/chevronInput.html) -->
337
- <!-- The below content is automatically added from ./../apiExamples/chevronInput.html -->
338
- <auro-dropdown aria-label="custom label" chevron>
339
- Lorem ipsum solar
340
- <div slot="trigger">
341
- <auro-input
342
- slot="trigger"
343
- id="inputExampleTrigger">
344
- </auro-input>
345
- </div>
346
- </auro-dropdown>
347
- <!-- AURO-GENERATED-CONTENT:END -->
348
- </div>
349
- <auro-accordion alignRight>
350
- <span slot="trigger">See code</span>
351
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/chevronInput.html) -->
352
- <!-- The below code snippet is automatically added from ./../apiExamples/chevronInput.html -->
353
-
354
- ```html
355
- <auro-dropdown aria-label="custom label" chevron>
356
- Lorem ipsum solar
357
- <div slot="trigger">
358
- <auro-input
359
- slot="trigger"
360
- id="inputExampleTrigger">
361
- </auro-input>
362
- </div>
363
- </auro-dropdown>
364
- ```
365
- <!-- AURO-GENERATED-CONTENT:END -->
366
- </auro-accordion>
367
257
 
368
- #### disabled
258
+ ### Disabled
369
259
 
370
- Disables the trigger preventing the dropdown bib from being shown.
260
+ Use the `disabled` attribute to disable interaction with the dropdown.
371
261
 
372
262
  <div class="exampleWrapper">
373
263
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
@@ -376,15 +266,13 @@ Disables the trigger preventing the dropdown bib from being shown.
376
266
  aria-label="custom label"
377
267
  disabled
378
268
  chevron
379
- rounded
380
- inset
381
- bordered>
269
+ layout="classic" shape="classic" size="lg">
382
270
  Lorem ipsum solar
383
271
  <div slot="trigger">
384
272
  Trigger
385
273
  </div>
386
274
  <span slot="helpText">
387
- Helper text
275
+ Help text
388
276
  </span>
389
277
  <span slot="label">
390
278
  Name
@@ -393,8 +281,8 @@ Disables the trigger preventing the dropdown bib from being shown.
393
281
  <!-- AURO-GENERATED-CONTENT:END -->
394
282
  </div>
395
283
  <div class="exampleWrapper--ondark" aria-hidden>
396
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
397
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
284
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-disabled.html) -->
285
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
398
286
  <auro-dropdown
399
287
  aria-label="custom label"
400
288
  disabled
@@ -406,7 +294,7 @@ Disables the trigger preventing the dropdown bib from being shown.
406
294
  Trigger
407
295
  </div>
408
296
  <span slot="helpText">
409
- Helper text
297
+ Help text
410
298
  </span>
411
299
  <span slot="label">
412
300
  Name
@@ -424,15 +312,13 @@ Disables the trigger preventing the dropdown bib from being shown.
424
312
  aria-label="custom label"
425
313
  disabled
426
314
  chevron
427
- rounded
428
- inset
429
- bordered>
315
+ layout="classic" shape="classic" size="lg">
430
316
  Lorem ipsum solar
431
317
  <div slot="trigger">
432
318
  Trigger
433
319
  </div>
434
320
  <span slot="helpText">
435
- Helper text
321
+ Help text
436
322
  </span>
437
323
  <span slot="label">
438
324
  Name
@@ -440,8 +326,8 @@ Disables the trigger preventing the dropdown bib from being shown.
440
326
  </auro-dropdown>
441
327
  ```
442
328
  <!-- AURO-GENERATED-CONTENT:END -->
443
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
444
- <!-- The below code snippet is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
329
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-disabled.html) -->
330
+ <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-disabled.html -->
445
331
 
446
332
  ```html
447
333
  <auro-dropdown
@@ -455,7 +341,7 @@ Disables the trigger preventing the dropdown bib from being shown.
455
341
  Trigger
456
342
  </div>
457
343
  <span slot="helpText">
458
- Helper text
344
+ Help text
459
345
  </span>
460
346
  <span slot="label">
461
347
  Name
@@ -465,18 +351,18 @@ Disables the trigger preventing the dropdown bib from being shown.
465
351
  <!-- AURO-GENERATED-CONTENT:END -->
466
352
  </auro-accordion>
467
353
 
468
- #### error
354
+ ### Error
469
355
 
470
- Adds the error state UI to the trigger.
356
+ Use the `error` attribute to set persistent error state styling on the dropdown.
471
357
 
472
358
  <div class="exampleWrapper">
473
359
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
474
360
  <!-- The below content is automatically added from ./../apiExamples/error.html -->
475
- <auro-dropdown common error id="commonSlotError">
361
+ <auro-dropdown layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
476
362
  <div style="padding: var(--ds-size-150);">
477
363
  Lorem ipsum solar
478
364
  <br />
479
- <auro-button onclick="document.querySelector('#commonSlotError').hide()">
365
+ <auro-button onclick="document.querySelector('#errorDropdownExample').hide()">
480
366
  Dismiss Dropdown
481
367
  </auro-button>
482
368
  </div>
@@ -493,13 +379,13 @@ Adds the error state UI to the trigger.
493
379
  <!-- AURO-GENERATED-CONTENT:END -->
494
380
  </div>
495
381
  <div class="exampleWrapper--ondark" aria-hidden>
496
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceError.html) -->
497
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceError.html -->
498
- <auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
382
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
383
+ <!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
384
+ <auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error id="errorDropdownOnDarkExample">
499
385
  <div style="padding: var(--ds-size-150);">
500
386
  Lorem ipsum solar
501
387
  <br />
502
- <auro-button onclick="document.querySelector('#commonSlotErrorOnDark').hide()">
388
+ <auro-button onclick="document.querySelector('#errorDropdownOnDarkExample').hide()">
503
389
  Dismiss Dropdown
504
390
  </auro-button>
505
391
  </div>
@@ -521,11 +407,11 @@ Adds the error state UI to the trigger.
521
407
  <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
522
408
 
523
409
  ```html
524
- <auro-dropdown common error id="commonSlotError">
410
+ <auro-dropdown layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
525
411
  <div style="padding: var(--ds-size-150);">
526
412
  Lorem ipsum solar
527
413
  <br />
528
- <auro-button onclick="document.querySelector('#commonSlotError').hide()">
414
+ <auro-button onclick="document.querySelector('#errorDropdownExample').hide()">
529
415
  Dismiss Dropdown
530
416
  </auro-button>
531
417
  </div>
@@ -541,15 +427,15 @@ Adds the error state UI to the trigger.
541
427
  </auro-dropdown>
542
428
  ```
543
429
  <!-- AURO-GENERATED-CONTENT:END -->
544
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inverseAppearanceError.html) -->
545
- <!-- The below code snippet is automatically added from ./../apiExamples/inverseAppearanceError.html -->
430
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/appearance-inverse-error.html) -->
431
+ <!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-error.html -->
546
432
 
547
433
  ```html
548
- <auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
434
+ <auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error id="errorDropdownOnDarkExample">
549
435
  <div style="padding: var(--ds-size-150);">
550
436
  Lorem ipsum solar
551
437
  <br />
552
- <auro-button onclick="document.querySelector('#commonSlotErrorOnDark').hide()">
438
+ <auro-button onclick="document.querySelector('#errorDropdownOnDarkExample').hide()">
553
439
  Dismiss Dropdown
554
440
  </auro-button>
555
441
  </div>
@@ -567,29 +453,59 @@ Adds the error state UI to the trigger.
567
453
  <!-- AURO-GENERATED-CONTENT:END -->
568
454
  </auro-accordion>
569
455
 
570
- #### noToggle
456
+ ### Fullscreen Bib
571
457
 
572
- In cases where it is desired behavior for `auro-dropdown` to only show, not toggle, the bib content when activating the trigger the `noToggle` attribute must be applied.
458
+ You can make the dropdown open in fullscreen at a specific breakpoint by setting `fullscreenBreakpoint`.
459
+
460
+ The default value of `fullscreenBreakpoint` is `sm`.
461
+
462
+ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/developers/design-tokens).
573
463
 
574
464
  <div class="exampleWrapper">
575
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/noToggle.html) -->
576
- <!-- The below content is automatically added from ./../apiExamples/noToggle.html -->
577
- <auro-dropdown aria-label="custom label" noToggle>
578
- Lorem ipsum solar
465
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen-breakpoint.html) -->
466
+ <!-- The below content is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
467
+ <auro-dropdown fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron id="fullscreenBreakpointExample">
468
+ <div>
469
+ <p>
470
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
471
+ </p>
472
+ <p>
473
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
474
+ </p>
475
+ <p>
476
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
477
+ </p>
478
+ </div>
479
+ <auro-button onclick="document.querySelector('#fullscreenBreakpointExample').hide()">
480
+ Dismiss Dropdown
481
+ </auro-button>
579
482
  <div slot="trigger">
580
483
  Trigger
581
484
  </div>
582
485
  </auro-dropdown>
583
486
  <!-- AURO-GENERATED-CONTENT:END -->
584
- </div>
487
+ </div>
585
488
  <auro-accordion alignRight>
586
489
  <span slot="trigger">See code</span>
587
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/noToggle.html) -->
588
- <!-- The below code snippet is automatically added from ./../apiExamples/noToggle.html -->
490
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fullscreen-breakpoint.html) -->
491
+ <!-- The below code snippet is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
589
492
 
590
493
  ```html
591
- <auro-dropdown aria-label="custom label" noToggle>
592
- Lorem ipsum solar
494
+ <auro-dropdown fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron id="fullscreenBreakpointExample">
495
+ <div>
496
+ <p>
497
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
498
+ </p>
499
+ <p>
500
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
501
+ </p>
502
+ <p>
503
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
504
+ </p>
505
+ </div>
506
+ <auro-button onclick="document.querySelector('#fullscreenBreakpointExample').hide()">
507
+ Dismiss Dropdown
508
+ </auro-button>
593
509
  <div slot="trigger">
594
510
  Trigger
595
511
  </div>
@@ -598,86 +514,223 @@ In cases where it is desired behavior for `auro-dropdown` to only show, not togg
598
514
  <!-- AURO-GENERATED-CONTENT:END -->
599
515
  </auro-accordion>
600
516
 
601
- #### fullscreenBreakpoint
517
+ ### Layouts
518
+
519
+ The `auro-dropdown` element supports multiple layouts to fit different design needs. The available layouts are: `classic`, `emphasized`, and `snowflake`. Each layout offers a unique visual style while maintaining the same core functionality.
602
520
 
603
- On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will switch the dropdown to fullscreen mode.
521
+ **Important**: The `emphasized` and `snowflake` layouts are designed specifically for dark backgrounds and should be used with the `appearance="inverse"` attribute.
522
+
523
+ #### Classic
604
524
 
605
525
  <div class="exampleWrapper">
606
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customDimensions300.html) -->
607
- <!-- The below content is automatically added from ./../apiExamples/customDimensions300.html -->
608
- <style>
609
- #customDropdown300::part(size) {
610
- width: 300px;
611
- max-height: 200px;
612
- }
613
- </style>
614
- <div style="width: 300px;" aria-label="custom label">
615
- <auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
616
- <div>
617
- <p>
618
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
619
- </p>
620
- <p>
621
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
622
- </p>
623
- <p>
624
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
625
- </p>
626
- </div>
627
- <div slot="trigger">
628
- Trigger
629
- </div>
630
- </auro-dropdown>
631
- </div>
526
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/basic.html) -->
527
+ <!-- The below content is automatically added from ./../apiExamples/classic/basic.html -->
528
+ <auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
529
+ <div style="padding: var(--ds-size-150);">
530
+ Lorem ipsum solar
531
+ <br />
532
+ <auro-button onclick="document.querySelector('#classic').hide()">
533
+ Dismiss Dropdown
534
+ </auro-button>
535
+ </div>
536
+ <span slot="helpText">
537
+ Help text
538
+ </span>
539
+ <div slot="trigger">
540
+ Trigger
541
+ </div>
542
+ </auro-dropdown>
632
543
  <!-- AURO-GENERATED-CONTENT:END -->
633
- </div>
544
+ </div>
634
545
  <auro-accordion alignRight>
635
546
  <span slot="trigger">See code</span>
636
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/customDimensions300.html) -->
637
- <!-- The below code snippet is automatically added from ./../apiExamples/customDimensions300.html -->
547
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/classic/basic.html) -->
548
+ <!-- The below code snippet is automatically added from ./../apiExamples/classic/basic.html -->
638
549
 
639
550
  ```html
640
- <style>
641
- #customDropdown300::part(size) {
642
- width: 300px;
643
- max-height: 200px;
644
- }
645
- </style>
646
- <div style="width: 300px;" aria-label="custom label">
647
- <auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
648
- <div>
649
- <p>
650
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
651
- </p>
652
- <p>
653
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
654
- </p>
655
- <p>
656
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
657
- </p>
551
+ <auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
552
+ <div style="padding: var(--ds-size-150);">
553
+ Lorem ipsum solar
554
+ <br />
555
+ <auro-button onclick="document.querySelector('#classic').hide()">
556
+ Dismiss Dropdown
557
+ </auro-button>
558
+ </div>
559
+ <span slot="helpText">
560
+ Help text
561
+ </span>
562
+ <div slot="trigger">
563
+ Trigger
564
+ </div>
565
+ </auro-dropdown>
566
+ ```
567
+ <!-- AURO-GENERATED-CONTENT:END -->
568
+ </auro-accordion>
569
+ <div class="exampleWrapper--ondark">
570
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/appearance-inverse.html) -->
571
+ <!-- The below content is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
572
+ <auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" id="classicOnDark" chevron aria-label="Label content for screen reader">
573
+ <div style="padding: var(--ds-size-150);">
574
+ Lorem ipsum solar
575
+ <br />
576
+ <auro-button onclick="document.querySelector('#classicOnDark').hide()">
577
+ Dismiss Dropdown
578
+ </auro-button>
658
579
  </div>
580
+ <span slot="helpText">
581
+ Help text
582
+ </span>
659
583
  <div slot="trigger">
660
584
  Trigger
661
585
  </div>
662
586
  </auro-dropdown>
587
+ <!-- AURO-GENERATED-CONTENT:END -->
663
588
  </div>
664
- ```
665
- <!-- AURO-GENERATED-CONTENT:END -->
666
- </auro-accordion>
667
-
668
- ### Customized bib position
669
- The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement`, and `shift` attributes.
670
-
671
- - `placement` specifies the preferred position where the bib should appear relative to the trigger.
672
- - `offset` sets the distance between the trigger and the bib.
673
- - 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`.
674
- - Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
675
- - `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
589
+ <auro-accordion alignRight>
590
+ <span slot="trigger">See code</span>
591
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/classic/appearance-inverse.html) -->
592
+ <!-- The below code snippet is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
676
593
 
677
- <div class="exampleWrapper">
678
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floaterConfig.html) -->
679
- <!-- The below content is automatically added from ./../apiExamples/floaterConfig.html -->
680
- <style>
594
+ ```html
595
+ <auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" id="classicOnDark" chevron aria-label="Label content for screen reader">
596
+ <div style="padding: var(--ds-size-150);">
597
+ Lorem ipsum solar
598
+ <br />
599
+ <auro-button onclick="document.querySelector('#classicOnDark').hide()">
600
+ Dismiss Dropdown
601
+ </auro-button>
602
+ </div>
603
+ <span slot="helpText">
604
+ Help text
605
+ </span>
606
+ <div slot="trigger">
607
+ Trigger
608
+ </div>
609
+ </auro-dropdown>
610
+ ```
611
+ <!-- AURO-GENERATED-CONTENT:END -->
612
+ </auro-accordion>
613
+
614
+ #### Emphasized
615
+
616
+ <div class="exampleWrapper--ondark">
617
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
618
+ <!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
619
+ <auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
620
+ Lorem ipsum solar
621
+ <div slot="trigger">
622
+ Trigger
623
+ </div>
624
+ <span slot="helpText">
625
+ Help text - Lorem ipsum solar lorem ipsum solar
626
+ </span>
627
+ </auro-dropdown>
628
+ <auro-dropdown aria-label="custom label" shape="pill-left" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
629
+ Lorem ipsum solar
630
+ <div slot="trigger">
631
+ Trigger
632
+ </div>
633
+ <span slot="helpText">
634
+ Help text - Lorem ipsum solar lorem ipsum solar
635
+ </span>
636
+ </auro-dropdown>
637
+ <auro-dropdown aria-label="custom label" shape="pill-right" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
638
+ Lorem ipsum solar
639
+ <div slot="trigger">
640
+ Trigger
641
+ </div>
642
+ <span slot="helpText">
643
+ Help text - Lorem ipsum solar lorem ipsum solar
644
+ </span>
645
+ </auro-dropdown>
646
+ <!-- AURO-GENERATED-CONTENT:END -->
647
+ </div>
648
+ <auro-accordion alignRight>
649
+ <span slot="trigger">See code</span>
650
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/emphasized/basic.html) -->
651
+ <!-- The below code snippet is automatically added from ./../apiExamples/emphasized/basic.html -->
652
+
653
+ ```html
654
+ <auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
655
+ Lorem ipsum solar
656
+ <div slot="trigger">
657
+ Trigger
658
+ </div>
659
+ <span slot="helpText">
660
+ Help text - Lorem ipsum solar lorem ipsum solar
661
+ </span>
662
+ </auro-dropdown>
663
+ <auro-dropdown aria-label="custom label" shape="pill-left" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
664
+ Lorem ipsum solar
665
+ <div slot="trigger">
666
+ Trigger
667
+ </div>
668
+ <span slot="helpText">
669
+ Help text - Lorem ipsum solar lorem ipsum solar
670
+ </span>
671
+ </auro-dropdown>
672
+ <auro-dropdown aria-label="custom label" shape="pill-right" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
673
+ Lorem ipsum solar
674
+ <div slot="trigger">
675
+ Trigger
676
+ </div>
677
+ <span slot="helpText">
678
+ Help text - Lorem ipsum solar lorem ipsum solar
679
+ </span>
680
+ </auro-dropdown>
681
+ ```
682
+ <!-- AURO-GENERATED-CONTENT:END -->
683
+ </auro-accordion>
684
+
685
+ #### Snowflake
686
+
687
+ <div class="exampleWrapper--ondark">
688
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
689
+ <!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
690
+ <auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" appearance="inverse">
691
+ Lorem ipsum solar
692
+ <div slot="trigger">
693
+ Trigger
694
+ </div>
695
+ <span slot="helpText">
696
+ Help text - Lorem ipsum solar lorem ipsum solar
697
+ </span>
698
+ </auro-dropdown>
699
+ <!-- AURO-GENERATED-CONTENT:END -->
700
+ </div>
701
+ <auro-accordion alignRight>
702
+ <span slot="trigger">See code</span>
703
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic.html) -->
704
+ <!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic.html -->
705
+
706
+ ```html
707
+ <auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" appearance="inverse">
708
+ Lorem ipsum solar
709
+ <div slot="trigger">
710
+ Trigger
711
+ </div>
712
+ <span slot="helpText">
713
+ Help text - Lorem ipsum solar lorem ipsum solar
714
+ </span>
715
+ </auro-dropdown>
716
+ ```
717
+ <!-- AURO-GENERATED-CONTENT:END -->
718
+ </auro-accordion>
719
+
720
+ ### Customized Bib Position
721
+
722
+ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement`, and `shift` attributes.
723
+
724
+ - `placement` specifies the preferred position where the bib should appear relative to the trigger.
725
+ - `offset` sets the distance between the trigger and the bib.
726
+ - 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`.
727
+ - Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
728
+ - `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
729
+
730
+ <div class="exampleWrapper">
731
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floater-config.html) -->
732
+ <!-- The below content is automatically added from ./../apiExamples/floater-config.html -->
733
+ <style>
681
734
  .floaterConfigDropdown::part(size) {
682
735
  width: 300px;
683
736
  max-height: 200px;
@@ -769,8 +822,8 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
769
822
  </div>
770
823
  <auro-accordion alignRight>
771
824
  <span slot="trigger">See code</span>
772
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floaterConfig.html) -->
773
- <!-- The below code snippet is automatically added from ./../apiExamples/floaterConfig.html -->
825
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/floater-config.html) -->
826
+ <!-- The below code snippet is automatically added from ./../apiExamples/floater-config.html -->
774
827
 
775
828
  ```html
776
829
  <style>
@@ -865,57 +918,47 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
865
918
  <!-- AURO-GENERATED-CONTENT:END -->
866
919
  </auro-accordion>
867
920
 
868
- ### Slot Examples
869
-
870
- #### default
871
-
872
- All examples shown on this page include default slot content.
873
-
874
- #### trigger
921
+ ### Match Width
875
922
 
876
- Content defined in the `trigger` slot will be rendered in the clickable trigger of the dropdown that is used to display the bib. Focus state visual effects will be disabled on the trigger when it contains a focusable element other than `<auro-input>`.
877
-
878
- This slot may contain any static content (e.g. plain text) and/or no more than one of the following elements:
879
- - `<a>`
880
- - `<auro-hyperlink>`
881
- - `<button>`
882
- - `<auro-button>`
883
- - `<input>`
884
- - `<auro-input>`
885
-
886
- #### label
887
-
888
- Content defined in the `label` slot will be rendered left aligned inside the trigger above all other defined trigger slot content.
923
+ When the `matchWidth` attribute is applied, the width of the dropdown bib will match the width of the trigger element.
889
924
 
890
925
  <div class="exampleWrapper">
891
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/label.html) -->
892
- <!-- The below content is automatically added from ./../apiExamples/label.html -->
893
- <auro-dropdown
894
- bordered
895
- rounded
896
- inset
897
- chevron>
898
- Lorem ipsum solar
899
- <span slot="label">Name</span>
926
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/match-width.html) -->
927
+ <!-- The below content is automatically added from ./../apiExamples/match-width.html -->
928
+ <auro-dropdown id="common" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader">
929
+ <div style="padding: var(--ds-size-150);">
930
+ Lorem ipsum solar
931
+ <br />
932
+ <auro-button onclick="document.querySelector('#common').hide()">
933
+ Dismiss Dropdown
934
+ </auro-button>
935
+ </div>
936
+ <span slot="helpText">
937
+ Help text
938
+ </span>
900
939
  <div slot="trigger">
901
940
  Trigger
902
941
  </div>
903
942
  </auro-dropdown>
904
943
  <!-- AURO-GENERATED-CONTENT:END -->
905
- </div>
944
+ </div>
906
945
  <auro-accordion alignRight>
907
946
  <span slot="trigger">See code</span>
908
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/label.html) -->
909
- <!-- The below code snippet is automatically added from ./../apiExamples/label.html -->
947
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/match-width.html) -->
948
+ <!-- The below code snippet is automatically added from ./../apiExamples/match-width.html -->
910
949
 
911
950
  ```html
912
- <auro-dropdown
913
- bordered
914
- rounded
915
- inset
916
- chevron>
917
- Lorem ipsum solar
918
- <span slot="label">Name</span>
951
+ <auro-dropdown id="common" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader">
952
+ <div style="padding: var(--ds-size-150);">
953
+ Lorem ipsum solar
954
+ <br />
955
+ <auro-button onclick="document.querySelector('#common').hide()">
956
+ Dismiss Dropdown
957
+ </auro-button>
958
+ </div>
959
+ <span slot="helpText">
960
+ Help text
961
+ </span>
919
962
  <div slot="trigger">
920
963
  Trigger
921
964
  </div>
@@ -924,43 +967,29 @@ Content defined in the `label` slot will be rendered left aligned inside the tri
924
967
  <!-- AURO-GENERATED-CONTENT:END -->
925
968
  </auro-accordion>
926
969
 
927
- #### helpText
970
+ ### No Toggle
928
971
 
929
- Content defined in the `helpText` slot will be rendered left aligned below the trigger. This slot requires the `auro-helptext` component be used as slot content for the helptext to render with the same styles as other form elements.
972
+ In cases where it is desired behavior for `auro-dropdown` to only show, not toggle, the bib content when activating the trigger the `noToggle` attribute must be applied.
930
973
 
931
974
  <div class="exampleWrapper">
932
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
933
- <!-- The below content is automatically added from ./../apiExamples/helpText.html -->
934
- <auro-dropdown
935
- aria-label="custom label"
936
- inset
937
- bordered
938
- rounded>
975
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/no-toggle.html) -->
976
+ <!-- The below content is automatically added from ./../apiExamples/no-toggle.html -->
977
+ <auro-dropdown aria-label="custom label" noToggle>
939
978
  Lorem ipsum solar
940
- <span slot="helpText">
941
- Helper text
942
- </span>
943
979
  <div slot="trigger">
944
980
  Trigger
945
981
  </div>
946
982
  </auro-dropdown>
947
983
  <!-- AURO-GENERATED-CONTENT:END -->
948
- </div>
984
+ </div>
949
985
  <auro-accordion alignRight>
950
986
  <span slot="trigger">See code</span>
951
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/helpText.html) -->
952
- <!-- The below code snippet is automatically added from ./../apiExamples/helpText.html -->
987
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/no-toggle.html) -->
988
+ <!-- The below code snippet is automatically added from ./../apiExamples/no-toggle.html -->
953
989
 
954
990
  ```html
955
- <auro-dropdown
956
- aria-label="custom label"
957
- inset
958
- bordered
959
- rounded>
991
+ <auro-dropdown aria-label="custom label" noToggle>
960
992
  Lorem ipsum solar
961
- <span slot="helpText">
962
- Helper text
963
- </span>
964
993
  <div slot="trigger">
965
994
  Trigger
966
995
  </div>
@@ -969,65 +998,82 @@ Content defined in the `helpText` slot will be rendered left aligned below the t
969
998
  <!-- AURO-GENERATED-CONTENT:END -->
970
999
  </auro-accordion>
971
1000
 
972
- #####
1001
+ ## Method Examples
1002
+
1003
+ ### Hide
1004
+
1005
+ The `hide()` method can be called from within the default slot content. This is useful for cases such as `auro-select` when the dropdown should be collapsed after making a selection.
1006
+
1007
+ The `hide()` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').hide()`.
973
1008
 
974
- When combined with the `error` property the `helpText` slot content is colored red.
1009
+ This example demonstrations collapsing the dropdown by clicking a button within the dropdown bib content.
975
1010
 
976
1011
  <div class="exampleWrapper">
977
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpTextError.html) -->
978
- <!-- The below content is automatically added from ./../apiExamples/helpTextError.html -->
979
- <auro-dropdown
980
- aria-label="custom label"
981
- inset
982
- bordered
983
- rounded
984
- error>
985
- Lorem ipsum solar
986
- <span slot="helpText">
987
- Helper text
988
- </span>
989
- <div slot="trigger">
990
- Trigger
1012
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmatically-hide.html) -->
1013
+ <!-- The below content is automatically added from ./../apiExamples/programmatically-hide.html -->
1014
+ <auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
1015
+ <p>
1016
+ Lorem ipsum solar
1017
+ </p>
1018
+ <div style="padding: var(--ds-size-150);">
1019
+ <auro-button id="hideExampleBtn" onclick="document.querySelector('#hideExample').hide()">
1020
+ Hide Dropdown
1021
+ </auro-button>
991
1022
  </div>
1023
+ <span slot="trigger">
1024
+ Trigger
1025
+ </span>
992
1026
  </auro-dropdown>
993
1027
  <!-- AURO-GENERATED-CONTENT:END -->
994
- </div>
1028
+ </div>
995
1029
  <auro-accordion alignRight>
996
1030
  <span slot="trigger">See code</span>
997
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/helpTextError.html) -->
998
- <!-- The below code snippet is automatically added from ./../apiExamples/helpTextError.html -->
1031
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-hide.html) -->
1032
+ <!-- The below code snippet is automatically added from ./../apiExamples/programmatically-hide.html -->
999
1033
 
1000
1034
  ```html
1001
- <auro-dropdown
1002
- aria-label="custom label"
1003
- inset
1004
- bordered
1005
- rounded
1006
- error>
1007
- Lorem ipsum solar
1008
- <span slot="helpText">
1009
- Helper text
1010
- </span>
1011
- <div slot="trigger">
1012
- Trigger
1035
+ <auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
1036
+ <p>
1037
+ Lorem ipsum solar
1038
+ </p>
1039
+ <div style="padding: var(--ds-size-150);">
1040
+ <auro-button id="hideExampleBtn" onclick="document.querySelector('#hideExample').hide()">
1041
+ Hide Dropdown
1042
+ </auro-button>
1013
1043
  </div>
1044
+ <span slot="trigger">
1045
+ Trigger
1046
+ </span>
1014
1047
  </auro-dropdown>
1015
1048
  ```
1016
1049
  <!-- AURO-GENERATED-CONTENT:END -->
1017
- </auro-accordion>
1050
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-hide.js) -->
1051
+ <!-- The below code snippet is automatically added from ./../apiExamples/programmatically-hide.js -->
1018
1052
 
1019
- ### Method Examples
1053
+ ```js
1054
+ export function hideExample() {
1055
+ const btn = document.querySelector('#hideExampleBtn');
1056
+ const dropdown = document.querySelector('#hideExample');
1057
+
1058
+ btn.addEventListener('click', () => {
1059
+ dropdown.hide();
1060
+ });
1061
+ }
1062
+ ```
1063
+ <!-- AURO-GENERATED-CONTENT:END -->
1064
+ </auro-accordion>
1020
1065
 
1021
- #### show
1066
+ ### Show
1022
1067
 
1023
- The `show` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').show()`. This example will execute the `show` method on a `keydown` event with focus in the input element.
1068
+ The `show()` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').show()`. This example will execute the `show()` method on a `keydown` event with focus in the input element.
1024
1069
 
1025
1070
  <div class="exampleWrapper">
1026
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticallyShow.html) -->
1027
- <!-- The below content is automatically added from ./../apiExamples/programmaticallyShow.html -->
1071
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmatically-show.html) -->
1072
+ <!-- The below content is automatically added from ./../apiExamples/programmatically-show.html -->
1028
1073
  <auro-input id="showExampleTriggerInput" required>
1029
1074
  <span slot="label">Enter a value to show the dropdown</span>
1030
- </auro-input>
1075
+ </auro-input>
1076
+ <br />
1031
1077
  <auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
1032
1078
  <p>
1033
1079
  Lorem ipsum solar
@@ -1035,16 +1081,17 @@ The `show` method may also be called from anywhere in your code by executing `do
1035
1081
  <span slot="trigger">Trigger Label</span>
1036
1082
  </auro-dropdown>
1037
1083
  <!-- AURO-GENERATED-CONTENT:END -->
1038
- </div>
1084
+ </div>
1039
1085
  <auro-accordion alignRight>
1040
1086
  <span slot="trigger">See code</span>
1041
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmaticallyShow.html) -->
1042
- <!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyShow.html -->
1087
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-show.html) -->
1088
+ <!-- The below code snippet is automatically added from ./../apiExamples/programmatically-show.html -->
1043
1089
 
1044
1090
  ```html
1045
1091
  <auro-input id="showExampleTriggerInput" required>
1046
1092
  <span slot="label">Enter a value to show the dropdown</span>
1047
- </auro-input>
1093
+ </auro-input>
1094
+ <br />
1048
1095
  <auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
1049
1096
  <p>
1050
1097
  Lorem ipsum solar
@@ -1053,8 +1100,8 @@ The `show` method may also be called from anywhere in your code by executing `do
1053
1100
  </auro-dropdown>
1054
1101
  ```
1055
1102
  <!-- AURO-GENERATED-CONTENT:END -->
1056
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmaticallyShow.js) -->
1057
- <!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyShow.js -->
1103
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmatically-show.js) -->
1104
+ <!-- The below code snippet is automatically added from ./../apiExamples/programmatically-show.js -->
1058
1105
 
1059
1106
  ```js
1060
1107
  export function showExample() {
@@ -1069,80 +1116,81 @@ export function showExample() {
1069
1116
  <!-- AURO-GENERATED-CONTENT:END -->
1070
1117
  </auro-accordion>
1071
1118
 
1072
- #### hide
1073
-
1074
- The `hide` method can be called from within the default slot content. This is useful for cases such as `auro-select` when the dropdown should be collapsed after making a selection.
1075
-
1076
- The `hide` method may also be called from anywhere in your code by executing `document.querySelector('#idOfTheDropdownElement').hide()`.
1119
+ ## Slot Examples
1120
+
1121
+ ### Help Text
1077
1122
 
1078
- This example demonstrations collapsing the dropdown by clicking a button within the dropdown bib content.
1123
+ Content defined in the `helpText` slot will be rendered left aligned below the trigger. This slot requires the `auro-helptext` component be used as slot content for the helptext to render with the same styles as other form elements.
1079
1124
 
1080
1125
  <div class="exampleWrapper">
1081
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticallyHide.html) -->
1082
- <!-- The below content is automatically added from ./../apiExamples/programmaticallyHide.html -->
1083
- <auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
1084
- <p>
1085
- Lorem ipsum solar
1086
- </p>
1087
- <auro-button id="hideExampleBtn">
1088
- Dismiss Dropdown
1089
- </auro-button>
1090
- <auro-input
1091
- slot="trigger"
1092
- id="hideExampleTrigger">
1093
- </auro-input>
1126
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/help-text.html) -->
1127
+ <!-- The below content is automatically added from ./../apiExamples/help-text.html -->
1128
+ <auro-dropdown
1129
+ aria-label="custom label"
1130
+ inset
1131
+ bordered
1132
+ rounded>
1133
+ Lorem ipsum solar
1134
+ <span slot="helpText">
1135
+ Helper text
1136
+ </span>
1137
+ <div slot="trigger">
1138
+ Trigger
1139
+ </div>
1094
1140
  </auro-dropdown>
1095
1141
  <!-- AURO-GENERATED-CONTENT:END -->
1096
- </div>
1142
+ </div>
1097
1143
  <auro-accordion alignRight>
1098
1144
  <span slot="trigger">See code</span>
1099
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmaticallyHide.html) -->
1100
- <!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyHide.html -->
1145
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/help-text.html) -->
1146
+ <!-- The below code snippet is automatically added from ./../apiExamples/help-text.html -->
1101
1147
 
1102
1148
  ```html
1103
- <auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
1104
- <p>
1105
- Lorem ipsum solar
1106
- </p>
1107
- <auro-button id="hideExampleBtn">
1108
- Dismiss Dropdown
1109
- </auro-button>
1110
- <auro-input
1111
- slot="trigger"
1112
- id="hideExampleTrigger">
1113
- </auro-input>
1149
+ <auro-dropdown
1150
+ aria-label="custom label"
1151
+ inset
1152
+ bordered
1153
+ rounded>
1154
+ Lorem ipsum solar
1155
+ <span slot="helpText">
1156
+ Helper text
1157
+ </span>
1158
+ <div slot="trigger">
1159
+ Trigger
1160
+ </div>
1114
1161
  </auro-dropdown>
1115
1162
  ```
1116
1163
  <!-- AURO-GENERATED-CONTENT:END -->
1117
1164
  </auro-accordion>
1118
- </auro-accordion>
1119
1165
 
1120
- ### Other Examples
1166
+ ### Trigger
1167
+
1168
+ Content defined in the `trigger` slot will be rendered in the clickable trigger of the dropdown that is used to display the bib. Focus state visual effects will be disabled on the trigger when it contains a focusable element other than `<auro-input>`.
1169
+
1170
+ This slot may contain any static content (e.g. plain text) and/or no more than one of the following elements:
1171
+ - `<a>`
1172
+ - `<auro-hyperlink>`
1173
+ - `<button>`
1174
+ - `<auro-button>`
1175
+ - `<input>`
1176
+ - `<auro-input>`
1177
+ - `<svg>`
1178
+ - `<auro-icon>`
1121
1179
 
1122
- #### Width and Sizing Behavior
1180
+ ## Common Usage Patterns & Functional Examples
1181
+
1182
+ ### Width and Sizing Behavior
1123
1183
 
1124
- - **Width:** The `auro-dropdown` component will automatically consume the full width of its parent container. To make it narrower, you can style the `size` part.
1184
+ - **Width:** The `auro-dropdown` element will automatically consume the full width of its parent container. Wrap the `auro-dropdown` in a container element with a defined width to control the overall width of the dropdown.
1125
1185
 
1126
- - **Styling Options:** Only the following styles can be applied to the `size` part:
1127
- - `width`
1128
- - `height`
1129
- - `maxWidth`
1130
- - `maxHeight`
1186
+ - **Scroll Behavior:** When the content exceeds the specified size, the browser will provide a scroll for the overflow.
1131
1187
 
1132
- - **Scroll Behavior:** When the content exceeds the specified size, the browser will provide a scroll for the overflow.
1133
-
1134
1188
  <div class="exampleWrapper">
1135
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customDimensions100.html) -->
1136
- <!-- The below content is automatically added from ./../apiExamples/customDimensions100.html -->
1137
- <style>
1138
- #customDropdown100::part(size) {
1139
- width: 100px;
1140
- max-height: 200px;
1141
- }
1142
- </style>
1189
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/custom-dimensions.html) -->
1190
+ <!-- The below content is automatically added from ./../apiExamples/custom-dimensions.html -->
1143
1191
  <div style="width: 100px;" aria-label="custom label">
1144
1192
  <auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
1145
- <div>
1193
+ <div style="max-height: 200px;">
1146
1194
  <p>
1147
1195
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
1148
1196
  </p>
@@ -1162,19 +1210,13 @@ This example demonstrations collapsing the dropdown by clicking a button within
1162
1210
  </div>
1163
1211
  <auro-accordion alignRight>
1164
1212
  <span slot="trigger">See code</span>
1165
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/customDimensions100.html) -->
1166
- <!-- The below code snippet is automatically added from ./../apiExamples/customDimensions100.html -->
1213
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom-dimensions.html) -->
1214
+ <!-- The below code snippet is automatically added from ./../apiExamples/custom-dimensions.html -->
1167
1215
 
1168
1216
  ```html
1169
- <style>
1170
- #customDropdown100::part(size) {
1171
- width: 100px;
1172
- max-height: 200px;
1173
- }
1174
- </style>
1175
1217
  <div style="width: 100px;" aria-label="custom label">
1176
1218
  <auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
1177
- <div>
1219
+ <div style="max-height: 200px;">
1178
1220
  <p>
1179
1221
  Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
1180
1222
  </p>
@@ -1194,23 +1236,23 @@ This example demonstrations collapsing the dropdown by clicking a button within
1194
1236
  <!-- AURO-GENERATED-CONTENT:END -->
1195
1237
  </auro-accordion>
1196
1238
 
1197
- #### In Auro Dialog
1239
+ ### Dropdown in Dialog
1198
1240
 
1199
- The component can be in a dialog.
1241
+ The element used within an `auro-dialog`.
1200
1242
 
1201
1243
  <div class="exampleWrapper">
1202
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inDialog.html) -->
1203
- <!-- The below content is automatically added from ./../apiExamples/inDialog.html -->
1244
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-dialog.html) -->
1245
+ <!-- The below content is automatically added from ./../apiExamples/in-dialog.html -->
1204
1246
  <div>
1205
1247
  <auro-button id="dropdown-dialog-opener">Dropdown in Dialog</auro-button>
1206
1248
  <auro-dialog id="dropdown-dialog">
1207
1249
  <span slot="header">Dropdown in Dialog</span>
1208
1250
  <div slot="content">
1209
- <auro-dropdown id="commonSlot" common bordered rounded inset chevron>
1251
+ <auro-dropdown id="in-dialog-dropdown" layout="classic" shape="classic" size="lg">
1210
1252
  <div style="padding: var(--ds-size-150);">
1211
1253
  Lorem ipsum solar
1212
1254
  <br />
1213
- <auro-button onclick="document.querySelector('#commonSlot').hide()">
1255
+ <auro-button onclick="document.querySelector('#in-dialog-dropdown').hide()">
1214
1256
  Dismiss Dropdown
1215
1257
  </auro-button>
1216
1258
  </div>
@@ -1231,8 +1273,8 @@ The component can be in a dialog.
1231
1273
  </div>
1232
1274
  <auro-accordion alignRight>
1233
1275
  <span slot="trigger">See code</span>
1234
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inDialog.html) -->
1235
- <!-- The below code snippet is automatically added from ./../apiExamples/inDialog.html -->
1276
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.html) -->
1277
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.html -->
1236
1278
 
1237
1279
  ```html
1238
1280
  <div>
@@ -1240,11 +1282,11 @@ The component can be in a dialog.
1240
1282
  <auro-dialog id="dropdown-dialog">
1241
1283
  <span slot="header">Dropdown in Dialog</span>
1242
1284
  <div slot="content">
1243
- <auro-dropdown id="commonSlot" common bordered rounded inset chevron>
1285
+ <auro-dropdown id="in-dialog-dropdown" layout="classic" shape="classic" size="lg">
1244
1286
  <div style="padding: var(--ds-size-150);">
1245
1287
  Lorem ipsum solar
1246
1288
  <br />
1247
- <auro-button onclick="document.querySelector('#commonSlot').hide()">
1289
+ <auro-button onclick="document.querySelector('#in-dialog-dropdown').hide()">
1248
1290
  Dismiss Dropdown
1249
1291
  </auro-button>
1250
1292
  </div>
@@ -1263,8 +1305,8 @@ The component can be in a dialog.
1263
1305
  </div>
1264
1306
  ```
1265
1307
  <!-- AURO-GENERATED-CONTENT:END -->
1266
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inDialog.js) -->
1267
- <!-- The below code snippet is automatically added from ./../apiExamples/inDialog.js -->
1308
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-dialog.js) -->
1309
+ <!-- The below code snippet is automatically added from ./../apiExamples/in-dialog.js -->
1268
1310
 
1269
1311
  ```js
1270
1312
  export function inDialogExample() {
@@ -1277,9 +1319,9 @@ export function inDialogExample() {
1277
1319
  <!-- AURO-GENERATED-CONTENT:END -->
1278
1320
  </auro-accordion>
1279
1321
 
1280
- ### Theme Support
1322
+ ## Restyle Component with CSS Variables
1281
1323
 
1282
- The component may be restyled using the following code sample and changing the values of the following token(s).
1324
+ The component may be restyled by changing the values of the following token(s).
1283
1325
 
1284
1326
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
1285
1327
  <!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->