@aurodesignsystem/auro-formkit 2.0.0-beta.10 → 2.0.0-beta.11

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 (197) hide show
  1. package/.turbo/cache/0c8124a987c1cc05-meta.json +1 -1
  2. package/.turbo/cache/0cd512cdf86242c7-meta.json +1 -0
  3. package/.turbo/cache/{ff4dbfffc29255ab.tar.zst → 0cd512cdf86242c7.tar.zst} +0 -0
  4. package/.turbo/cache/123c83cd8727dff3-meta.json +1 -0
  5. package/.turbo/cache/123c83cd8727dff3.tar.zst +0 -0
  6. package/.turbo/cache/18129dba20f51b6b-meta.json +1 -1
  7. package/.turbo/cache/253e861af7025ed4-meta.json +1 -0
  8. package/.turbo/cache/253e861af7025ed4.tar.zst +0 -0
  9. package/.turbo/cache/2787020e69f50af2-meta.json +1 -1
  10. package/.turbo/cache/2a5295c8f561ed84-meta.json +1 -0
  11. package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
  12. package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
  13. package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
  14. package/.turbo/cache/4e3619d9dfc86809-meta.json +1 -0
  15. package/.turbo/cache/4e3619d9dfc86809.tar.zst +0 -0
  16. package/.turbo/cache/50993de942ec15a9-meta.json +1 -1
  17. package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -0
  18. package/.turbo/cache/50cd7dcfc9f820c5.tar.zst +0 -0
  19. package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
  20. package/.turbo/cache/5a0d3e26da304c62-meta.json +1 -0
  21. package/.turbo/cache/5a0d3e26da304c62.tar.zst +0 -0
  22. package/.turbo/cache/5c960af698582835-meta.json +1 -0
  23. package/.turbo/cache/5c960af698582835.tar.zst +0 -0
  24. package/.turbo/cache/5dbbb71dffc3f542-meta.json +1 -0
  25. package/.turbo/cache/5dbbb71dffc3f542.tar.zst +0 -0
  26. package/.turbo/cache/6081837e8943b62e-meta.json +1 -1
  27. package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
  28. package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
  29. package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
  30. package/.turbo/cache/7964d1656e9e702a-meta.json +1 -0
  31. package/.turbo/cache/7964d1656e9e702a.tar.zst +0 -0
  32. package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
  33. package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -1
  34. package/.turbo/cache/80aca269cd346fb4-meta.json +1 -0
  35. package/.turbo/cache/80aca269cd346fb4.tar.zst +0 -0
  36. package/.turbo/cache/8602fc2bb737a5cf-meta.json +1 -0
  37. package/.turbo/cache/89e0e7a6148e854f-meta.json +1 -0
  38. package/.turbo/cache/89e0e7a6148e854f.tar.zst +0 -0
  39. package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -1
  40. package/.turbo/cache/93c887fb93a10daa-meta.json +1 -0
  41. package/.turbo/cache/93c887fb93a10daa.tar.zst +0 -0
  42. package/.turbo/cache/94dae2a64e9d8356-meta.json +1 -0
  43. package/.turbo/cache/97f6fe83b54acf09-meta.json +1 -0
  44. package/.turbo/cache/{080ca6155e637d5d.tar.zst → 97f6fe83b54acf09.tar.zst} +0 -0
  45. package/.turbo/cache/98317b0d14d94df7-meta.json +1 -0
  46. package/.turbo/cache/98317b0d14d94df7.tar.zst +0 -0
  47. package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -1
  48. package/.turbo/cache/9cbcd13b1d031f63-meta.json +1 -0
  49. package/.turbo/cache/{8af27c076dc010c3.tar.zst → 9cbcd13b1d031f63.tar.zst} +0 -0
  50. package/.turbo/cache/afbbd49ed1a558b9-meta.json +1 -0
  51. package/.turbo/cache/b353ce8f6da43dea-meta.json +1 -0
  52. package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
  53. package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
  54. package/.turbo/cache/b8db059a9b9ccb5d-meta.json +1 -0
  55. package/.turbo/cache/bc24a38aa1b1a102-meta.json +1 -0
  56. package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
  57. package/.turbo/cache/c3a4f7a3565d6706-meta.json +1 -0
  58. package/.turbo/cache/c3a4f7a3565d6706.tar.zst +0 -0
  59. package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -1
  60. package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
  61. package/.turbo/cache/c97b043e748e3580-meta.json +1 -0
  62. package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
  63. package/.turbo/cache/d775555355d6b8fc-meta.json +1 -1
  64. package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
  65. package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -1
  66. package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -0
  67. package/.turbo/cache/dc597b3ea4f61ec8.tar.zst +0 -0
  68. package/.turbo/cache/df40b180126e5351-meta.json +1 -0
  69. package/.turbo/cache/df40b180126e5351.tar.zst +0 -0
  70. package/.turbo/cache/e5f217f77c32c93b-meta.json +1 -0
  71. package/.turbo/cache/{c2b51643f886a493.tar.zst → e5f217f77c32c93b.tar.zst} +0 -0
  72. package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
  73. package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -1
  74. package/.turbo/cache/ee1a3c1fe389da51-meta.json +1 -0
  75. package/.turbo/cache/f3c7b40f2c6a4094-meta.json +1 -0
  76. package/.turbo/cache/{b22ca87b2f7f9cc2.tar.zst → f3c7b40f2c6a4094.tar.zst} +0 -0
  77. package/.turbo/cache/f5958c3acb889631-meta.json +1 -0
  78. package/.turbo/cache/fb3809ac3f90e3b2-meta.json +1 -0
  79. package/.turbo/cache/{eb1dbe885532c1dc.tar.zst → fb3809ac3f90e3b2.tar.zst} +0 -0
  80. package/.turbo/cache/fd5ddfa43ebd8e5c-meta.json +1 -0
  81. package/.turbo/cache/fd5ddfa43ebd8e5c.tar.zst +0 -0
  82. package/CHANGELOG.md +13 -0
  83. package/components/checkbox/.turbo/turbo-build.log +3 -3
  84. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  85. package/components/checkbox/README.md +1 -1
  86. package/components/combobox/.turbo/turbo-build.log +3 -3
  87. package/components/combobox/README.md +4 -4
  88. package/components/combobox/demo/api.md +9 -9
  89. package/components/combobox/demo/api.min.js +2508 -642
  90. package/components/combobox/demo/index.min.js +2505 -639
  91. package/components/combobox/dist/auro-combobox.d.ts +9 -4
  92. package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
  93. package/components/combobox/dist/index.js +1863 -312
  94. package/components/combobox/src/auro-combobox.js +70 -26
  95. package/components/counter/.turbo/turbo-build.log +3 -3
  96. package/components/counter/.turbo/turbo-bundler.log +3 -3
  97. package/components/counter/README.md +1 -1
  98. package/components/datepicker/.turbo/turbo-build.log +3 -3
  99. package/components/datepicker/README.md +4 -4
  100. package/components/dropdown/.turbo/turbo-build.log +3 -3
  101. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  102. package/components/dropdown/README.md +1 -1
  103. package/components/form/.turbo/turbo-build.log +3 -3
  104. package/components/form/.turbo/turbo-bundler.log +3 -3
  105. package/components/form/README.md +1 -1
  106. package/components/input/.turbo/turbo-build.log +3 -3
  107. package/components/input/.turbo/turbo-bundler.log +3 -3
  108. package/components/input/README.md +1 -1
  109. package/components/menu/.turbo/turbo-build.log +4 -2
  110. package/components/menu/.turbo/turbo-bundler.log +3 -3
  111. package/components/menu/README.md +1 -1
  112. package/components/menu/demo/api.md +57 -20
  113. package/components/menu/demo/api.min.js +620 -305
  114. package/components/menu/demo/index.min.js +618 -303
  115. package/components/menu/dist/auro-menu-utils.d.ts +43 -0
  116. package/components/menu/dist/auro-menu-utils.d.ts.map +1 -0
  117. package/components/menu/dist/auro-menu.d.ts +97 -81
  118. package/components/menu/dist/auro-menu.d.ts.map +1 -1
  119. package/components/menu/dist/index.d.ts +1 -0
  120. package/components/menu/dist/index.js +619 -304
  121. package/components/menu/src/auro-menu-utils.js +131 -0
  122. package/components/menu/src/auro-menu.js +493 -303
  123. package/components/menu/src/index.js +7 -0
  124. package/components/radio/.turbo/turbo-build.log +3 -3
  125. package/components/radio/.turbo/turbo-bundler.log +3 -3
  126. package/components/radio/README.md +1 -1
  127. package/components/select/.turbo/turbo-build.log +5 -3
  128. package/components/select/README.md +3 -3
  129. package/components/select/demo/api.md +46 -11
  130. package/components/select/demo/api.min.js +2336 -485
  131. package/components/select/demo/index.min.js +2337 -486
  132. package/components/select/dist/auro-select.d.ts +17 -6
  133. package/components/select/dist/auro-select.d.ts.map +1 -1
  134. package/components/select/dist/index.js +1706 -170
  135. package/components/select/src/auro-select.js +53 -24
  136. package/components/select/src/styles/style-css.js +1 -1
  137. package/components/select/src/styles/style.css +7 -0
  138. package/components/select/src/styles/style.scss +13 -0
  139. package/package.json +1 -1
  140. package/.turbo/cache/026e4d886ba97e63-meta.json +0 -1
  141. package/.turbo/cache/026e4d886ba97e63.tar.zst +0 -0
  142. package/.turbo/cache/080ca6155e637d5d-meta.json +0 -1
  143. package/.turbo/cache/0b115e30ff606299-meta.json +0 -1
  144. package/.turbo/cache/0b115e30ff606299.tar.zst +0 -0
  145. package/.turbo/cache/1c630fb3411e4a41-meta.json +0 -1
  146. package/.turbo/cache/24b19ac5895e5dd6-meta.json +0 -1
  147. package/.turbo/cache/24b19ac5895e5dd6.tar.zst +0 -0
  148. package/.turbo/cache/29b72c73cbccb53d-meta.json +0 -1
  149. package/.turbo/cache/29b72c73cbccb53d.tar.zst +0 -0
  150. package/.turbo/cache/3e647c5863d32e6f-meta.json +0 -1
  151. package/.turbo/cache/3e647c5863d32e6f.tar.zst +0 -0
  152. package/.turbo/cache/43f5206cc4e69b44-meta.json +0 -1
  153. package/.turbo/cache/4a85ec226b585fd5-meta.json +0 -1
  154. package/.turbo/cache/50a29c70b93c57dd-meta.json +0 -1
  155. package/.turbo/cache/50a29c70b93c57dd.tar.zst +0 -0
  156. package/.turbo/cache/56455145cd768755-meta.json +0 -1
  157. package/.turbo/cache/56455145cd768755.tar.zst +0 -0
  158. package/.turbo/cache/5c06332cf9f132da-meta.json +0 -1
  159. package/.turbo/cache/5e613afc6868d0e2-meta.json +0 -1
  160. package/.turbo/cache/5e613afc6868d0e2.tar.zst +0 -0
  161. package/.turbo/cache/639dac15b979bedc-meta.json +0 -1
  162. package/.turbo/cache/664c2e08614fd212-meta.json +0 -1
  163. package/.turbo/cache/6c51b0ebfc086faa-meta.json +0 -1
  164. package/.turbo/cache/6c51b0ebfc086faa.tar.zst +0 -0
  165. package/.turbo/cache/7216d994164825fb-meta.json +0 -1
  166. package/.turbo/cache/7216d994164825fb.tar.zst +0 -0
  167. package/.turbo/cache/83a167e135cb431a-meta.json +0 -1
  168. package/.turbo/cache/83a167e135cb431a.tar.zst +0 -0
  169. package/.turbo/cache/8af27c076dc010c3-meta.json +0 -1
  170. package/.turbo/cache/953c8216249d3509-meta.json +0 -1
  171. package/.turbo/cache/95a5e76ffd8c5110-meta.json +0 -1
  172. package/.turbo/cache/95a5e76ffd8c5110.tar.zst +0 -0
  173. package/.turbo/cache/a8b0fa0a9aa707c5-meta.json +0 -1
  174. package/.turbo/cache/a8b0fa0a9aa707c5.tar.zst +0 -0
  175. package/.turbo/cache/b22ca87b2f7f9cc2-meta.json +0 -1
  176. package/.turbo/cache/b7bbe2e7d44b77f0-meta.json +0 -1
  177. package/.turbo/cache/b7bbe2e7d44b77f0.tar.zst +0 -0
  178. package/.turbo/cache/c2b51643f886a493-meta.json +0 -1
  179. package/.turbo/cache/c74d369a0475b124-meta.json +0 -1
  180. package/.turbo/cache/c7f5a276ddb73cf7-meta.json +0 -1
  181. package/.turbo/cache/c96933d40404e4c8-meta.json +0 -1
  182. package/.turbo/cache/c96933d40404e4c8.tar.zst +0 -0
  183. package/.turbo/cache/eb1dbe885532c1dc-meta.json +0 -1
  184. package/.turbo/cache/f1f6744948f1b18f-meta.json +0 -1
  185. package/.turbo/cache/f1f6744948f1b18f.tar.zst +0 -0
  186. package/.turbo/cache/feefbc25d550c1cd-meta.json +0 -1
  187. package/.turbo/cache/ff4dbfffc29255ab-meta.json +0 -1
  188. /package/.turbo/cache/{639dac15b979bedc.tar.zst → 2a5295c8f561ed84.tar.zst} +0 -0
  189. /package/.turbo/cache/{1c630fb3411e4a41.tar.zst → 8602fc2bb737a5cf.tar.zst} +0 -0
  190. /package/.turbo/cache/{664c2e08614fd212.tar.zst → 94dae2a64e9d8356.tar.zst} +0 -0
  191. /package/.turbo/cache/{c7f5a276ddb73cf7.tar.zst → afbbd49ed1a558b9.tar.zst} +0 -0
  192. /package/.turbo/cache/{43f5206cc4e69b44.tar.zst → b353ce8f6da43dea.tar.zst} +0 -0
  193. /package/.turbo/cache/{c74d369a0475b124.tar.zst → b8db059a9b9ccb5d.tar.zst} +0 -0
  194. /package/.turbo/cache/{4a85ec226b585fd5.tar.zst → bc24a38aa1b1a102.tar.zst} +0 -0
  195. /package/.turbo/cache/{5c06332cf9f132da.tar.zst → c97b043e748e3580.tar.zst} +0 -0
  196. /package/.turbo/cache/{953c8216249d3509.tar.zst → ee1a3c1fe389da51.tar.zst} +0 -0
  197. /package/.turbo/cache/{feefbc25d550c1cd.tar.zst → f5958c3acb889631.tar.zst} +0 -0
@@ -18,6 +18,11 @@ import { AuroDependencyVersioning } from '@aurodesignsystem/auro-library/scripts
18
18
  import { AuroDropdown } from '@aurodesignsystem/auro-dropdown';
19
19
  import dropdownVersion from './formkit/auro-dropdownVersion.js';
20
20
 
21
+ import {
22
+ arrayConverter,
23
+ arrayOrUndefinedHasChanged
24
+ } from '@aurodesignsystem/auro-menu';
25
+
21
26
  import styleCss from "./styles/style-css.js";
22
27
  import colorCss from "./styles/color-css.js";
23
28
  import tokensCss from "./styles/tokens-css.js";
@@ -41,7 +46,7 @@ export class AuroSelect extends LitElement {
41
46
  super();
42
47
 
43
48
  this.optionSelected = undefined;
44
- this.validity = undefined;
49
+ this.value = undefined;
45
50
 
46
51
  const idLength = 36;
47
52
  const idSubstrEnd = 8;
@@ -138,7 +143,9 @@ export class AuroSelect extends LitElement {
138
143
  * Specifies the current selected menuOption.
139
144
  */
140
145
  optionSelected: {
141
- type: Object
146
+ // Allow HTMLElement[] arrays and undefined
147
+ converter: arrayConverter,
148
+ hasChanged: arrayOrUndefinedHasChanged
142
149
  },
143
150
 
144
151
  /**
@@ -197,8 +204,19 @@ export class AuroSelect extends LitElement {
197
204
  * Value selected for the component.
198
205
  */
199
206
  value: {
200
- type: String
201
- }
207
+ // Allow string[] arrays and undefined
208
+ converter: arrayConverter,
209
+ hasChanged: arrayOrUndefinedHasChanged
210
+ },
211
+
212
+ /**
213
+ * Sets multi-select mode, allowing multiple options to be selected at once.
214
+ */
215
+ multiSelect: {
216
+ type: Boolean,
217
+ reflect: true,
218
+ attribute: 'multiselect'
219
+ },
202
220
  };
203
221
  }
204
222
 
@@ -240,29 +258,30 @@ export class AuroSelect extends LitElement {
240
258
  }
241
259
 
242
260
  /**
243
- * Updates the displayed value in an Auro dropdown component based on optionSelected
261
+ * Updates the displayed value in an Auro dropdown component based on optionSelected.
244
262
  * @private
245
263
  * @returns {void}
246
264
  */
247
265
  updateDisplayedValue() {
248
266
  const triggerContentEl = this.dropdown.querySelector('#triggerFocus');
249
267
 
250
- // remove all existing rendered value(s)
251
- triggerContentEl.querySelectorAll('auro-menuoption, [auro-menuoption]').forEach((elm) => {
252
- elm.remove();
253
- });
268
+ // Clear everything except placeholder
269
+ const placeholder = triggerContentEl.querySelector('#placeholder');
270
+ triggerContentEl.innerHTML = '';
271
+ if (placeholder) {
272
+ triggerContentEl.appendChild(placeholder);
273
+ }
254
274
 
255
- if (this.optionSelected) {
256
- // clone the selected option and remove attributes that style it
257
- const clone = this.optionSelected.cloneNode(true);
258
- clone.removeAttribute('selected');
259
- clone.removeAttribute('class');
275
+ // Handle selected options
276
+ if (this.optionSelected && this.optionSelected.length) {
277
+ // Create display text from selected options
278
+ const displayText = this.optionSelected.map((option) => option.textContent).join(', ');
260
279
 
261
- // insert the non-styled clone into the trigger
262
- triggerContentEl.appendChild(clone);
280
+ const span = document.createElement('span');
281
+ span.textContent = displayText;
282
+ triggerContentEl.appendChild(span);
263
283
  }
264
284
 
265
- // notify dropdown as trigger content is changed
266
285
  this.dropdown.requestUpdate();
267
286
  }
268
287
 
@@ -282,6 +301,10 @@ export class AuroSelect extends LitElement {
282
301
  return;
283
302
  }
284
303
 
304
+ if (this.multiSelect) {
305
+ this.menu.multiSelect = this.multiSelect;
306
+ }
307
+
285
308
  this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
286
309
  this.menu.setAttribute('aria-hidden', 'true');
287
310
 
@@ -292,8 +315,10 @@ export class AuroSelect extends LitElement {
292
315
  });
293
316
 
294
317
  this.menu.addEventListener('auroMenu-selectedOption', () => {
318
+ // Get array of selected options from menu
295
319
  this.optionSelected = this.menu.optionSelected;
296
- this.value = this.optionSelected.value;
320
+ // For single select, we still use arrays but only take first value
321
+ this.value = this.menu.value;
297
322
 
298
323
  if (this.dropdown.isPopoverVisible) {
299
324
  this.dropdown.hide();
@@ -308,7 +333,7 @@ export class AuroSelect extends LitElement {
308
333
  * with `auro-select.value`.
309
334
  */
310
335
  this.menu.addEventListener('auroMenu-selectValueFailure', () => {
311
- this.reset();
336
+ this.menu.clearSelection();
312
337
  });
313
338
 
314
339
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
@@ -333,7 +358,7 @@ export class AuroSelect extends LitElement {
333
358
  this.dropdown.show();
334
359
 
335
360
  if (this.dropdown.isPopoverVisible) {
336
- this.menu.selectNextItem('up');
361
+ this.menu.navigateOptions('up');
337
362
  }
338
363
  }
339
364
 
@@ -343,7 +368,7 @@ export class AuroSelect extends LitElement {
343
368
  this.dropdown.show();
344
369
 
345
370
  if (this.dropdown.isPopoverVisible) {
346
- this.menu.selectNextItem('down');
371
+ this.menu.navigateOptions('down');
347
372
  }
348
373
  }
349
374
 
@@ -406,7 +431,7 @@ export class AuroSelect extends LitElement {
406
431
  * input as no longer in the initial state.
407
432
  */
408
433
  if (this.value === undefined) {
409
- this.value = '';
434
+ this.value = undefined;
410
435
  this.removeEventListener('focusin', this.handleFocusin);
411
436
  }
412
437
  }
@@ -464,11 +489,15 @@ export class AuroSelect extends LitElement {
464
489
  }
465
490
  }
466
491
 
467
- updated(changedProperties) {
468
- // After the component is ready, send direct value changes to auro-menu.
492
+ async updated(changedProperties) {
469
493
  if (changedProperties.has('value')) {
470
494
  if (this.value) {
471
495
  this.menu.value = this.value;
496
+
497
+ // Wait for menu to finish updating its value
498
+ await this.menu.updateComplete;
499
+
500
+ this.optionSelected = this.menu.optionSelected;
472
501
  } else {
473
502
  this.menu.value = undefined;
474
503
  }
@@ -1,2 +1,2 @@
1
1
  import { css } from 'lit';
2
- export default css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}[slot=trigger] #placeholder.hidden{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{padding:0;pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}`;
2
+ export default css`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}[slot=trigger] #placeholder.hidden{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{padding:0;pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}:host([multiselect]) [slot=trigger]{display:flex}:host([multiselect]) auro-menuoption:not(:first-child){margin-left:var(--ds-size-100)}`;
@@ -102,3 +102,10 @@ auro-menuoption {
102
102
  font-size: var(--ds-text-body-size-xs, 0.75rem);
103
103
  line-height: 1rem;
104
104
  }
105
+
106
+ :host([multiselect]) [slot=trigger] {
107
+ display: flex;
108
+ }
109
+ :host([multiselect]) auro-menuoption:not(:first-child) {
110
+ margin-left: var(--ds-size-100);
111
+ }
@@ -74,3 +74,16 @@ auro-menuoption {
74
74
  font-size: var(--ds-text-body-size-xs, $ds-text-body-size-xs);
75
75
  line-height: 1rem;
76
76
  }
77
+
78
+ // Multiselect styles
79
+ :host([multiselect]) {
80
+ [slot="trigger"] {
81
+ display: flex;
82
+ }
83
+
84
+ auro-menuoption {
85
+ &:not(:first-child) {
86
+ margin-left: var(--ds-size-100);
87
+ }
88
+ }
89
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem/auro-formkit",
3
- "version": "2.0.0-beta.10",
3
+ "version": "2.0.0-beta.11",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -1 +0,0 @@
1
- {"hash":"026e4d886ba97e63","duration":4139}
@@ -1 +0,0 @@
1
- {"hash":"080ca6155e637d5d","duration":2708}
@@ -1 +0,0 @@
1
- {"hash":"0b115e30ff606299","duration":21859}
@@ -1 +0,0 @@
1
- {"hash":"1c630fb3411e4a41","duration":6592}
@@ -1 +0,0 @@
1
- {"hash":"24b19ac5895e5dd6","duration":818}
@@ -1 +0,0 @@
1
- {"hash":"29b72c73cbccb53d","duration":20406}
@@ -1 +0,0 @@
1
- {"hash":"3e647c5863d32e6f","duration":21019}
@@ -1 +0,0 @@
1
- {"hash":"43f5206cc4e69b44","duration":899}
@@ -1 +0,0 @@
1
- {"hash":"4a85ec226b585fd5","duration":5450}
@@ -1 +0,0 @@
1
- {"hash":"50a29c70b93c57dd","duration":2013}
@@ -1 +0,0 @@
1
- {"hash":"56455145cd768755","duration":5730}
@@ -1 +0,0 @@
1
- {"hash":"5c06332cf9f132da","duration":804}
@@ -1 +0,0 @@
1
- {"hash":"5e613afc6868d0e2","duration":10115}
@@ -1 +0,0 @@
1
- {"hash":"639dac15b979bedc","duration":5310}
@@ -1 +0,0 @@
1
- {"hash":"664c2e08614fd212","duration":6096}
@@ -1 +0,0 @@
1
- {"hash":"6c51b0ebfc086faa","duration":1834}
@@ -1 +0,0 @@
1
- {"hash":"7216d994164825fb","duration":2054}
@@ -1 +0,0 @@
1
- {"hash":"83a167e135cb431a","duration":21107}
@@ -1 +0,0 @@
1
- {"hash":"8af27c076dc010c3","duration":20842}
@@ -1 +0,0 @@
1
- {"hash":"953c8216249d3509","duration":5039}
@@ -1 +0,0 @@
1
- {"hash":"95a5e76ffd8c5110","duration":20620}
@@ -1 +0,0 @@
1
- {"hash":"a8b0fa0a9aa707c5","duration":9871}
@@ -1 +0,0 @@
1
- {"hash":"b22ca87b2f7f9cc2","duration":20487}
@@ -1 +0,0 @@
1
- {"hash":"b7bbe2e7d44b77f0","duration":3725}
@@ -1 +0,0 @@
1
- {"hash":"c2b51643f886a493","duration":22094}
@@ -1 +0,0 @@
1
- {"hash":"c74d369a0475b124","duration":1114}
@@ -1 +0,0 @@
1
- {"hash":"c7f5a276ddb73cf7","duration":901}
@@ -1 +0,0 @@
1
- {"hash":"c96933d40404e4c8","duration":3597}
@@ -1 +0,0 @@
1
- {"hash":"eb1dbe885532c1dc","duration":2772}
@@ -1 +0,0 @@
1
- {"hash":"f1f6744948f1b18f","duration":2995}
@@ -1 +0,0 @@
1
- {"hash":"feefbc25d550c1cd","duration":4694}
@@ -1 +0,0 @@
1
- {"hash":"ff4dbfffc29255ab","duration":4281}