@aurodesignsystem/auro-formkit 2.0.0-beta.3 → 2.0.0-beta.4

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 (172) hide show
  1. package/.turbo/cache/013a48308b893dac-meta.json +1 -1
  2. package/.turbo/cache/02244170c798a2bd-meta.json +1 -1
  3. package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
  4. package/.turbo/cache/051ff97a20add0e2-meta.json +1 -0
  5. package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
  6. package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
  7. package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
  8. package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
  9. package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
  10. package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
  11. package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
  12. package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -1
  13. package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -1
  14. package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
  15. package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
  16. package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
  17. package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
  18. package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
  19. package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
  20. package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
  21. package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
  22. package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
  23. package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
  24. package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
  25. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
  26. package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
  27. package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
  28. package/.turbo/cache/3e12285c614db539-meta.json +1 -1
  29. package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
  30. package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -1
  31. package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
  32. package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
  33. package/.turbo/cache/691a74627ec57993-meta.json +1 -1
  34. package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
  35. package/.turbo/cache/6dd67d179191bda8-meta.json +1 -1
  36. package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
  37. package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
  38. package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
  39. package/.turbo/cache/786a822763403879-meta.json +1 -1
  40. package/.turbo/cache/7e1043cffa69f327-meta.json +1 -1
  41. package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
  42. package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
  43. package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
  44. package/.turbo/cache/80a13352066a9801-meta.json +1 -1
  45. package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
  46. package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
  47. package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -1
  48. package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
  49. package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
  50. package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
  51. package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
  52. package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
  53. package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
  54. package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
  55. package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
  56. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  57. package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
  58. package/.turbo/cache/a9a9d012c83882d8.tar.zst +0 -0
  59. package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
  60. package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
  61. package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
  62. package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
  63. package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -1
  64. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
  65. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  66. package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
  67. package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -1
  68. package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
  69. package/.turbo/cache/d61543843c932504-meta.json +1 -1
  70. package/.turbo/cache/d61543843c932504.tar.zst +0 -0
  71. package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
  72. package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
  73. package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
  74. package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -1
  75. package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
  76. package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
  77. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  78. package/.turbo/cache/f3ff9040a2196834-meta.json +1 -0
  79. package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
  80. package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
  81. package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
  82. package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
  83. package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
  84. package/CHANGELOG.md +18 -0
  85. package/components/checkbox/.turbo/turbo-build.log +3 -3
  86. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  87. package/components/combobox/.turbo/turbo-build.log +3 -3
  88. package/components/combobox/demo/api.min.js +407 -113
  89. package/components/combobox/demo/index.min.js +407 -113
  90. package/components/combobox/dist/index.js +407 -113
  91. package/components/counter/.turbo/turbo-build.log +3 -3
  92. package/components/counter/.turbo/turbo-bundler.log +3 -3
  93. package/components/datepicker/demo/api.min.js +407 -113
  94. package/components/datepicker/demo/index.min.js +407 -113
  95. package/components/datepicker/dist/index.js +407 -113
  96. package/components/dropdown/.turbo/turbo-build.log +3 -3
  97. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  98. package/components/dropdown/demo/api.md +4 -4
  99. package/components/dropdown/demo/api.min.js +166 -42
  100. package/components/dropdown/demo/index.min.js +166 -42
  101. package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
  102. package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
  103. package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
  104. package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
  105. package/components/dropdown/dist/index.js +166 -42
  106. package/components/dropdown/src/auro-dropdown.js +154 -39
  107. package/components/dropdown/src/auro-dropdownBib.js +12 -3
  108. package/components/dropdown/src/styles/style-css.js +1 -1
  109. package/components/dropdown/src/styles/style.css +4 -0
  110. package/components/dropdown/src/styles/style.scss +5 -0
  111. package/components/form/.turbo/turbo-build.log +3 -3
  112. package/components/form/.turbo/turbo-bundler.log +3 -3
  113. package/components/input/.turbo/turbo-build.log +3 -3
  114. package/components/input/.turbo/turbo-bundler.log +3 -3
  115. package/components/input/demo/api.md +37 -35
  116. package/components/input/demo/api.min.js +241 -71
  117. package/components/input/demo/index.min.js +241 -71
  118. package/components/input/dist/base-input.d.ts +157 -79
  119. package/components/input/dist/base-input.d.ts.map +1 -1
  120. package/components/input/dist/index.js +241 -71
  121. package/components/input/src/base-input.js +241 -71
  122. package/components/menu/.turbo/turbo-build.log +3 -3
  123. package/components/menu/.turbo/turbo-bundler.log +3 -3
  124. package/components/radio/.turbo/turbo-build.log +3 -3
  125. package/components/radio/.turbo/turbo-bundler.log +3 -3
  126. package/components/select/.turbo/turbo-build.log +7 -9
  127. package/components/select/demo/api.md +39 -100
  128. package/components/select/demo/api.min.js +292 -169
  129. package/components/select/demo/index.md +100 -43
  130. package/components/select/demo/index.min.js +292 -169
  131. package/components/select/dist/auro-select.d.ts +63 -50
  132. package/components/select/dist/auro-select.d.ts.map +1 -1
  133. package/components/select/dist/index.js +287 -151
  134. package/components/select/src/auro-select.js +102 -102
  135. package/components/select/src/styles/style-css.js +1 -1
  136. package/components/select/src/styles/style.css +7 -0
  137. package/components/select/src/styles/style.scss +11 -1
  138. package/package.json +1 -1
  139. package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
  140. package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
  141. package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
  142. package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
  143. package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
  144. package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
  145. package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
  146. package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
  147. package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
  148. package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
  149. package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
  150. package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
  151. package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
  152. package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
  153. package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
  154. package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
  155. package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
  156. package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
  157. package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
  158. package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
  159. package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
  160. package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
  161. package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
  162. package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
  163. package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
  164. package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
  165. package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
  166. package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
  167. package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
  168. package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
  169. package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
  170. package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
  171. package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
  172. /package/.turbo/cache/{d39e6ef95ebc4cc0.tar.zst → f817d89688cefca8.tar.zst} +0 -0
@@ -14,21 +14,20 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
14
14
 
15
15
  ## Properties
16
16
 
17
- | Property | Attribute | Type | Default | Description |
18
- |---------------------------------|---------------------------------|-----------|------------------------|--------------------------------------------------|
19
- | [disabled](#disabled) | `disabled` | `Boolean` | | When attribute is present element shows disabled state. |
20
- | [error](#error) | `error` | `String` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
21
- | [flexMenuWidth](#flexMenuWidth) | `flexMenuWidth` | `Boolean` | | If set, makes dropdown bib width match the size of the content, rather than the width of the trigger. |
22
- | [noCheckmark](#noCheckmark) | `noCheckmark` | `Boolean` | | When true, checkmark on selected option will no longer be present. |
23
- | [noValidate](#noValidate) | `noValidate` | `Boolean` | | If set, disables auto-validation on blur. |
24
- | [optionSelected](#optionSelected) | `optionSelected` | `Object` | "undefined" | Specifies the current selected menuOption. |
25
- | [placeholder](#placeholder) | `placeholder` | `String` | "Please select option" | Define placeholder text to display before a value is manually selected. |
26
- | [required](#required) | `required` | `Boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
27
- | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `String` | | Sets a custom help text message to display for all validityStates. |
28
- | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `String` | | Custom help text message to display when validity = `customError`. |
29
- | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `String` | | Custom help text message to display when validity = `valueMissing`. |
30
- | [validity](#validity) | `validity` | `String` | "undefined" | Specifies the `validityState` this element is in. |
31
- | [value](#value) | `value` | `String` | | Value selected for the component. |
17
+ | Property | Attribute | Type | Default | Description |
18
+ |---------------------------------|---------------------------------|-----------|-------------|--------------------------------------------------|
19
+ | [disabled](#disabled) | `disabled` | `boolean` | | When attribute is present, element shows disabled state. |
20
+ | [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
21
+ | [flexMenuWidth](#flexMenuWidth) | `flexMenuWidth` | `boolean` | | If set, makes dropdown width match the size of the content, rather than the width of the trigger. |
22
+ | [noCheckmark](#noCheckmark) | `noCheckmark` | `boolean` | | When true, checkmark on selected option will no longer be present. |
23
+ | [noValidate](#noValidate) | `noValidate` | `boolean` | | If set, disables auto-validation on blur. |
24
+ | [optionSelected](#optionSelected) | `optionSelected` | `object` | "undefined" | Specifies the current selected menuOption. |
25
+ | [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
26
+ | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
27
+ | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
28
+ | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
29
+ | [validity](#validity) | `validity` | `string` | "undefined" | Specifies the `validityState` this element is in. |
30
+ | [value](#value) | `value` | `string` | | Value selected for the component. |
32
31
 
33
32
  ## Methods
34
33
 
@@ -45,11 +44,12 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
45
44
 
46
45
  ## Slots
47
46
 
48
- | Name | Description |
49
- |------------|--------------------------------------|
50
- | | Default slot for the menu content. |
51
- | [helpText](#helpText) | Defines the content of the helpText. |
52
- | [label](#label) | Defines the content of the label. |
47
+ | Name | Description |
48
+ |---------------|--------------------------------------------------|
49
+ | | Default slot for the menu content. |
50
+ | [helpText](#helpText) | Defines the content of the helpText. |
51
+ | [label](#label) | Defines the content of the label. |
52
+ | [placeholder](#placeholder) | Defines the content of the placeholder to be shown when there is no value |
53
53
 
54
54
  ## CSS Shadow Parts
55
55
 
@@ -62,7 +62,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
62
62
 
63
63
  ### Default example
64
64
 
65
- A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements. Notice a default `Please select option` placeholder in the trigger.
65
+ A baseline `auro-select` using `auro-menu` and `auro-menuoption` elements.
66
66
 
67
67
  <div class="exampleWrapper">
68
68
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
@@ -166,44 +166,6 @@ export function valueExample() {
166
166
  <!-- AURO-GENERATED-CONTENT:END -->
167
167
  </auro-accordion>
168
168
 
169
- #### placeholder <a name="placeholder"></a>
170
- Use the `placeholder` string attribute to inject a custom placeholder option with the select element.
171
-
172
- <div class="exampleWrapper">
173
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customPlaceholder.html) -->
174
- <!-- The below content is automatically added from ./../apiExamples/customPlaceholder.html -->
175
- <auro-select placeholder="Please select your preferred option">
176
- <auro-menu>
177
- <auro-menuoption value="stops">Stops</auro-menuoption>
178
- <auro-menuoption value="price">Price</auro-menuoption>
179
- <auro-menuoption value="duration">Duration</auro-menuoption>
180
- <auro-menuoption value="departure">Departure</auro-menuoption>
181
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
182
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
183
- </auro-menu>
184
- </auro-select>
185
- <!-- AURO-GENERATED-CONTENT:END -->
186
- </div>
187
- <auro-accordion alignRight>
188
- <span slot="trigger">See code</span>
189
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/customPlaceholder.html) -->
190
- <!-- The below code snippet is automatically added from ./../apiExamples/customPlaceholder.html -->
191
-
192
- ```html
193
- <auro-select placeholder="Please select your preferred option">
194
- <auro-menu>
195
- <auro-menuoption value="stops">Stops</auro-menuoption>
196
- <auro-menuoption value="price">Price</auro-menuoption>
197
- <auro-menuoption value="duration">Duration</auro-menuoption>
198
- <auro-menuoption value="departure">Departure</auro-menuoption>
199
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
200
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
201
- </auro-menu>
202
- </auro-select>
203
- ```
204
- <!-- AURO-GENERATED-CONTENT:END -->
205
- </auro-accordion>
206
-
207
169
  #### required <a name="required"></a>
208
170
  When present, the `required` attribute specifies that a select field must be filled out before submitting the form.
209
171
 
@@ -213,6 +175,7 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
213
175
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
214
176
  <!-- The below content is automatically added from ./../apiExamples/required.html -->
215
177
  <auro-select required setCustomValidityValueMissing="Custom required validation error message.">
178
+ <label slot="placeholder">Placeholder Text</label>
216
179
  <auro-menu>
217
180
  <auro-menuoption value="stops">Stops</auro-menuoption>
218
181
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -231,6 +194,7 @@ When the validity check fails the validityState, equals `valueMissing`. The erro
231
194
 
232
195
  ```html
233
196
  <auro-select required setCustomValidityValueMissing="Custom required validation error message.">
197
+ <label slot="placeholder">Placeholder Text</label>
234
198
  <auro-menu>
235
199
  <auro-menuoption value="stops">Stops</auro-menuoption>
236
200
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -256,6 +220,7 @@ A custom error message can be set using the `error` attribute, or it can be used
256
220
  <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
257
221
  <br /><br />
258
222
  <auro-select id="errorExample" error="Custom error message">
223
+ <label slot="placeholder">Placeholder Text</label>
259
224
  <auro-menu>
260
225
  <auro-menuoption value="stops">Stops</auro-menuoption>
261
226
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -277,6 +242,7 @@ A custom error message can be set using the `error` attribute, or it can be used
277
242
  <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
278
243
  <br /><br />
279
244
  <auro-select id="errorExample" error="Custom error message">
245
+ <label slot="placeholder">Placeholder Text</label>
280
246
  <auro-menu>
281
247
  <auro-menuoption value="stops">Stops</auro-menuoption>
282
248
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -297,6 +263,7 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
297
263
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
298
264
  <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
299
265
  <auro-select disabled>
266
+ <label slot="placeholder">Placeholder Text</label>
300
267
  <auro-menu>
301
268
  <auro-menuoption value="stops">Stops</auro-menuoption>
302
269
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -315,6 +282,7 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
315
282
 
316
283
  ```html
317
284
  <auro-select disabled>
285
+ <label slot="placeholder">Placeholder Text</label>
318
286
  <auro-menu>
319
287
  <auro-menuoption value="stops">Stops</auro-menuoption>
320
288
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -335,6 +303,7 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
335
303
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/flexMenuWidth.html) -->
336
304
  <!-- The below content is automatically added from ../apiExamples/flexMenuWidth.html -->
337
305
  <auro-select flexMenuWidth id="flexMenuWidthExample">
306
+ <label slot="placeholder">Placeholder Text</label>
338
307
  <auro-menu>
339
308
  <auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
340
309
  <auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
@@ -357,6 +326,7 @@ Use the `flexMenuWidth` boolean attribute to toggle the width of the `<auro-sele
357
326
 
358
327
  ```html
359
328
  <auro-select flexMenuWidth id="flexMenuWidthExample">
329
+ <label slot="placeholder">Placeholder Text</label>
360
330
  <auro-menu>
361
331
  <auro-menuoption value="united states">United States has a country code of (+1)</auro-menuoption>
362
332
  <auro-menuoption value="costa rica">Costa Rica has a country code of (+506)</auro-menuoption>
@@ -416,47 +386,6 @@ Use the `label` slot to give your users contextual information about their selec
416
386
  <!-- AURO-GENERATED-CONTENT:END -->
417
387
  </auro-accordion>
418
388
 
419
- #### label with placeholder
420
-
421
- The `label` slot and `placeholder` attribute may be used together.
422
-
423
- <div class="exampleWrapper">
424
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/labelWithPlaceholder.html) -->
425
- <!-- The below content is automatically added from ./../apiExamples/labelWithPlaceholder.html -->
426
- <auro-select placeholder="Placeholder Text">
427
- <span slot="label">Label Text</span>
428
- <auro-menu>
429
- <auro-menuoption value="stops">Stops</auro-menuoption>
430
- <auro-menuoption value="price">Price</auro-menuoption>
431
- <auro-menuoption value="duration">Duration</auro-menuoption>
432
- <auro-menuoption value="departure">Departure</auro-menuoption>
433
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
434
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
435
- </auro-menu>
436
- </auro-select>
437
- <!-- AURO-GENERATED-CONTENT:END -->
438
- </div>
439
- <auro-accordion alignRight>
440
- <span slot="trigger">See code</span>
441
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/labelWithPlaceholder.html) -->
442
- <!-- The below code snippet is automatically added from ./../apiExamples/labelWithPlaceholder.html -->
443
-
444
- ```html
445
- <auro-select placeholder="Placeholder Text">
446
- <span slot="label">Label Text</span>
447
- <auro-menu>
448
- <auro-menuoption value="stops">Stops</auro-menuoption>
449
- <auro-menuoption value="price">Price</auro-menuoption>
450
- <auro-menuoption value="duration">Duration</auro-menuoption>
451
- <auro-menuoption value="departure">Departure</auro-menuoption>
452
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
453
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
454
- </auro-menu>
455
- </auro-select>
456
- ```
457
- <!-- AURO-GENERATED-CONTENT:END -->
458
- </auro-accordion>
459
-
460
389
  #### helpText <a name="helpText"></a>
461
390
  Use the `helptext` slot to provide additional information back to your user about their selection option(s).
462
391
 
@@ -464,6 +393,7 @@ Use the `helptext` slot to provide additional information back to your user abou
464
393
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
465
394
  <!-- The below content is automatically added from ./../apiExamples/helpText.html -->
466
395
  <auro-select>
396
+ <label slot="placeholder">Placeholder Text</label>
467
397
  <span slot="helpText">Custom help text message.</span>
468
398
  <auro-menu>
469
399
  <auro-menuoption value="stops">Stops</auro-menuoption>
@@ -483,6 +413,7 @@ Use the `helptext` slot to provide additional information back to your user abou
483
413
 
484
414
  ```html
485
415
  <auro-select>
416
+ <label slot="placeholder">Placeholder Text</label>
486
417
  <span slot="helpText">Custom help text message.</span>
487
418
  <auro-menu>
488
419
  <auro-menuoption value="stops">Stops</auro-menuoption>
@@ -509,6 +440,7 @@ Use the `reset()` method to reset the `<auro-select>`'s `value` and `validity` s
509
440
  <auro-button id="resetStateBtn">Reset</auro-button>
510
441
  <br/><br/>
511
442
  <auro-select id="resetStateExample" required value="price">
443
+ <label slot="placeholder">Placeholder Text</label>
512
444
  <span slot="label">Name</span>
513
445
  <auro-menu>
514
446
  <auro-menuoption value="stops">Stops</auro-menuoption>
@@ -530,6 +462,7 @@ Use the `reset()` method to reset the `<auro-select>`'s `value` and `validity` s
530
462
  <auro-button id="resetStateBtn">Reset</auro-button>
531
463
  <br/><br/>
532
464
  <auro-select id="resetStateExample" required value="price">
465
+ <label slot="placeholder">Placeholder Text</label>
533
466
  <span slot="label">Name</span>
534
467
  <auro-menu>
535
468
  <auro-menuoption value="stops">Stops</auro-menuoption>
@@ -565,6 +498,7 @@ The following example illustrates how a user may query the `element.value` or `e
565
498
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueExtraction.html) -->
566
499
  <!-- The below content is automatically added from ./../apiExamples/valueExtraction.html -->
567
500
  <auro-select id="valueExtraction">
501
+ <label slot="placeholder">Placeholder Text</label>
568
502
  <auro-menu>
569
503
  <auro-menuoption value="stops">Stops</auro-menuoption>
570
504
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -584,6 +518,7 @@ The following example illustrates how a user may query the `element.value` or `e
584
518
 
585
519
  ```html
586
520
  <auro-select id="valueExtraction">
521
+ <label slot="placeholder">Placeholder Text</label>
587
522
  <auro-menu>
588
523
  <auro-menuoption value="stops">Stops</auro-menuoption>
589
524
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -623,6 +558,7 @@ This example programmatically adds the `error` state when a user selects an opti
623
558
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customErrorValidity.html) -->
624
559
  <!-- The below content is automatically added from ./../apiExamples/customErrorValidity.html -->
625
560
  <auro-select id="primaryError">
561
+ <label slot="placeholder">Placeholder Text</label>
626
562
  <auro-menu>
627
563
  <auro-menuoption value="1">1</auro-menuoption>
628
564
  <auro-menuoption value="2">2</auro-menuoption>
@@ -641,6 +577,7 @@ This example programmatically adds the `error` state when a user selects an opti
641
577
 
642
578
  ```html
643
579
  <auro-select id="primaryError">
580
+ <label slot="placeholder">Placeholder Text</label>
644
581
  <auro-menu>
645
582
  <auro-menuoption value="1">1</auro-menuoption>
646
583
  <auro-menuoption value="2">2</auro-menuoption>
@@ -814,6 +751,7 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
814
751
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/valueAlert.html) -->
815
752
  <!-- The below content is automatically added from ./../apiExamples/valueAlert.html -->
816
753
  <auro-select id="valueAlert">
754
+ <label slot="placeholder">Placeholder Text</label>
817
755
  <auro-menu id="valueAlertMenu">
818
756
  <auro-menuoption value="stops">Stops</auro-menuoption>
819
757
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -832,6 +770,7 @@ The following example listens for the `auroMenu-selectedOption` event. Once trig
832
770
 
833
771
  ```html
834
772
  <auro-select id="valueAlert">
773
+ <label slot="placeholder">Placeholder Text</label>
835
774
  <auro-menu id="valueAlertMenu">
836
775
  <auro-menuoption value="stops">Stops</auro-menuoption>
837
776
  <auro-menuoption value="price">Price</auro-menuoption>