@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,22 +1,29 @@
1
1
  <!--
2
- The demo.md file is a compiled document. No edits should be made directly to this file.
3
-
4
- demo.md is created by running `npm run build:markdownDocs`.
5
-
6
- This file is generated based on a template fetched from `./docs/partials/demo.md`
2
+ THIS PAGE'S CONTENT SHOULD BE KEPT MINIMAL.
3
+ ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE — THE BASIC EXAMPLE IS USUALLY ENOUGH.
4
+ ALL OTHER EXAMPLES SHOULD GO IN THE API DOCUMENTATION.
7
5
  -->
8
6
 
9
- # Select
10
-
7
+ # Select
8
+
11
9
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
12
10
  <!-- The below content is automatically added from ./../docs/partials/description.md -->
13
11
  `<auro-select>` is a combination <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements">HTML custom element</auro-hyperlink> that consists of a pre-defined trigger element, `<auro-menu>` for the panel content. The `<auro-select>` element presents a menu of options. The options within the menu are represented by `<auro-menu>` and `<auro-menuoption>` elements. You can pre-select options for the user with the `selected` attribute as part of the `<auro-menuoption>` API.
14
12
  <!-- AURO-GENERATED-CONTENT:END -->
15
13
 
16
- ## Default example
14
+ ## Use Cases
15
+
16
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
17
+ <!-- The below content is automatically added from ./../docs/partials/useCases.md -->
18
+ See description.
19
+ <!-- AURO-GENERATED-CONTENT:END -->
20
+
21
+ ## Example(s)
17
22
 
18
- A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements. Notice a default `Please select option` placeholder in the trigger.
23
+ ### Basic
19
24
 
25
+ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
26
+
20
27
  <div class="exampleWrapper">
21
28
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
22
29
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
@@ -35,23 +42,6 @@ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
35
42
  </auro-select>
36
43
  <!-- AURO-GENERATED-CONTENT:END -->
37
44
  </div>
38
- <div class="exampleWrapper--ondark" aria-hidden>
39
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
40
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
41
- <auro-select appearance="inverse">
42
- <span slot="bib.fullscreen.headline">Bib Headline</span>
43
- <span slot="label">Select Example</span>
44
- <auro-menu>
45
- <auro-menuoption value="stops">Stops</auro-menuoption>
46
- <auro-menuoption value="price">Price</auro-menuoption>
47
- <auro-menuoption value="duration">Duration</auro-menuoption>
48
- <auro-menuoption value="departure">Departure</auro-menuoption>
49
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
50
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
51
- </auro-menu>
52
- </auro-select>
53
- <!-- AURO-GENERATED-CONTENT:END -->
54
- </div>
55
45
  <auro-accordion alignRight>
56
46
  <span slot="trigger">See code</span>
57
47
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
@@ -73,28 +63,11 @@ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
73
63
  </auro-select>
74
64
  ```
75
65
  <!-- AURO-GENERATED-CONTENT:END -->
76
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
77
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
78
- <auro-select appearance="inverse">
79
- <span slot="bib.fullscreen.headline">Bib Headline</span>
80
- <span slot="label">Select Example</span>
81
- <auro-menu>
82
- <auro-menuoption value="stops">Stops</auro-menuoption>
83
- <auro-menuoption value="price">Price</auro-menuoption>
84
- <auro-menuoption value="duration">Duration</auro-menuoption>
85
- <auro-menuoption value="departure">Departure</auro-menuoption>
86
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
87
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
88
- </auro-menu>
89
- </auro-select>
90
- <!-- AURO-GENERATED-CONTENT:END -->
91
66
  </auro-accordion>
92
67
 
93
- ## Shape | Size | Layout Support
68
+ ### Shape | Size | Layout Support
94
69
 
95
- The `auro-select` component supports the `shape`, `size` and `layout` feature set. The component defaults to the `classic` shape and layout.
96
-
97
- ### Supported Combinations
70
+ The `auro-select` component supports the `shape`, `size` and `layout` feature set. The component defaults to the `layout="classic"`, `shape="classic"` and `size="lg"`.
98
71
 
99
72
  #### Classic Layout (Legacy)
100
73
 
@@ -143,7 +116,7 @@ The `classic` layout is default for `auro-select`. No customization is needed to
143
116
 
144
117
  #### Emphasized Layout
145
118
 
146
- The `emphasized` layout only supports `appearance="inverse"` use.
119
+ The `emphasized` layout is only supported on light backgrounds.
147
120
 
148
121
  The `emphasized` layout supports the following shapes:
149
122
  - `pill`
@@ -320,9 +293,11 @@ The `emphasized` layout supports the following sizes:
320
293
 
321
294
  The `snowflake` layout is a unique, one off layout that does not follow the normal pattern. There is only one way to use snowflake as shown in the following example.
322
295
 
296
+ The `snowflake` layout is only expected to be used on dark backgrounds, in conjunction with `appearance="inverse"`.
297
+
323
298
  <div class="exampleWrapper--ondark">
324
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic-inverseAppearance.html) -->
325
- <!-- The below content is automatically added from ./../apiExamples/snowflake/basic-inverseAppearance.html -->
299
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
300
+ <!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
326
301
  <auro-select layout="snowflake" shape="snowflake" appearance="inverse" required style="width:300px;">
327
302
  <span slot="ariaLabel.bib.close">Close Popup</span>
328
303
  <span slot="label">Label</span>
@@ -349,8 +324,8 @@ The `snowflake` layout is a unique, one off layout that does not follow the norm
349
324
  </div>
350
325
  <auro-accordion alignRight>
351
326
  <span slot="trigger">See code</span>
352
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic-inverseAppearance.html) -->
353
- <!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic-inverseAppearance.html -->
327
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic.html) -->
328
+ <!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic.html -->
354
329
 
355
330
  ```html
356
331
  <auro-select layout="snowflake" shape="snowflake" appearance="inverse" required style="width:300px;">
@@ -377,787 +352,4 @@ The `snowflake` layout is a unique, one off layout that does not follow the norm
377
352
  </auro-select>
378
353
  ```
379
354
  <!-- AURO-GENERATED-CONTENT:END -->
380
- </auro-accordion>
381
-
382
- ## Custom Value Display
383
-
384
- The `auro-select` supports the new formkit feature set enabling customized content displayed when a value is selected.
385
-
386
- e.g. You may have a menu option that reads "SeaTac International Airport". However, when that option is selected, you would like the value displayed in the auro-select to just be the airport code "SEA".
387
-
388
- The custom display value content is inserted using `slot="displayValue"` on each menu option. The `auro-select` component does not style or restrict the slotted content. It is the responsibility of the implementor to insure the content fits within the auro-select container and is styled appropriately.
389
-
390
- The following example demonstrates menu options with an icon and text. When selected, the auro-select renders an icon with no text.
391
-
392
- <div class="exampleWrapper">
393
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/constantDisplayValue.html) -->
394
- <!-- The below content is automatically added from ./../apiExamples/emphasized/constantDisplayValue.html -->
395
- <auro-select layout="emphasized" shape="pill" size="xl" value="flights" forceDisplayValue style="display:inline-block;">
396
- <span slot="label">Select Example</span>
397
- <auro-menu nocheckmark>
398
- <auro-menuoption value="flights">
399
- <auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
400
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
401
- </auro-menuoption>
402
- <auro-menuoption value="cars">
403
- <auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
404
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
405
- </auro-menuoption>
406
- <auro-menuoption value="hotels">
407
- <auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
408
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
409
- </auro-menuoption>
410
- <auro-menuoption value="packages">
411
- <auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
412
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="shop" name="gift-filled" customcolor></auro-icon>
413
- </auro-menuoption>
414
- <auro-menuoption value="cruises">
415
- <auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
416
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="in-flight" name="boarding" customcolor></auro-icon>
417
- </auro-menuoption>
418
- </auro-menu>
419
- </auro-select>
420
- <!-- AURO-GENERATED-CONTENT:END -->
421
- </div>
422
- <auro-accordion alignRight>
423
- <span slot="trigger">See code</span>
424
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/emphasized/constantDisplayValue.html) -->
425
- <!-- The below code snippet is automatically added from ./../apiExamples/emphasized/constantDisplayValue.html -->
426
-
427
- ```html
428
- <auro-select layout="emphasized" shape="pill" size="xl" value="flights" forceDisplayValue style="display:inline-block;">
429
- <span slot="label">Select Example</span>
430
- <auro-menu nocheckmark>
431
- <auro-menuoption value="flights">
432
- <auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
433
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
434
- </auro-menuoption>
435
- <auro-menuoption value="cars">
436
- <auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
437
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
438
- </auro-menuoption>
439
- <auro-menuoption value="hotels">
440
- <auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
441
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
442
- </auro-menuoption>
443
- <auro-menuoption value="packages">
444
- <auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
445
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="shop" name="gift-filled" customcolor></auro-icon>
446
- </auro-menuoption>
447
- <auro-menuoption value="cruises">
448
- <auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
449
- <auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="in-flight" name="boarding" customcolor></auro-icon>
450
- </auro-menuoption>
451
- </auro-menu>
452
- </auro-select>
453
- ```
454
- <!-- AURO-GENERATED-CONTENT:END -->
455
- </auro-accordion>
456
-
457
- ## placeholder
458
-
459
- Use the `placeholder` slot to inject a custom placeholder option with the select element.
460
-
461
- <div class="exampleWrapper">
462
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/customPlaceholder.html) -->
463
- <!-- The below content is automatically added from ./../apiExamples/customPlaceholder.html -->
464
- <auro-select placeholder="Please select your preferred option">
465
- <span slot="bib.fullscreen.headline">Bib Headline</span>
466
- <span slot="label">Label</span>
467
- <auro-menu>
468
- <auro-menuoption value="stops">Stops</auro-menuoption>
469
- <auro-menuoption value="price">Price</auro-menuoption>
470
- <auro-menuoption value="duration">Duration</auro-menuoption>
471
- <auro-menuoption value="departure">Departure</auro-menuoption>
472
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
473
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
474
- </auro-menu>
475
- </auro-select>
476
- <!-- AURO-GENERATED-CONTENT:END -->
477
- </div>
478
- <auro-accordion alignRight>
479
- <span slot="trigger">See code</span>
480
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/customPlaceholder.html) -->
481
- <!-- The below code snippet is automatically added from ./../apiExamples/customPlaceholder.html -->
482
-
483
- ```html
484
- <auro-select placeholder="Please select your preferred option">
485
- <span slot="bib.fullscreen.headline">Bib Headline</span>
486
- <span slot="label">Label</span>
487
- <auro-menu>
488
- <auro-menuoption value="stops">Stops</auro-menuoption>
489
- <auro-menuoption value="price">Price</auro-menuoption>
490
- <auro-menuoption value="duration">Duration</auro-menuoption>
491
- <auro-menuoption value="departure">Departure</auro-menuoption>
492
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
493
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
494
- </auro-menu>
495
- </auro-select>
496
- ```
497
- <!-- AURO-GENERATED-CONTENT:END -->
498
- </auro-accordion>
499
-
500
- ## Label, placeholder and help text slots
501
-
502
- The following example illustrates the use of the `label`, `placeholder` and `helptext` slots for additional placement of content around the select menu.
503
-
504
- <div class="exampleWrapper">
505
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/slots.html) -->
506
- <!-- The below content is automatically added from ./../apiExamples/slots.html -->
507
- <auro-select placeholder="Placeholder Text">
508
- <span slot="bib.fullscreen.headline">Bib Headline</span>
509
- <span slot="label">Label</span>
510
- <span slot="helpText">Help Text</span>
511
- <auro-menu>
512
- <auro-menuoption value="stops">Stops</auro-menuoption>
513
- <auro-menuoption value="price">Price</auro-menuoption>
514
- <auro-menuoption value="duration">Duration</auro-menuoption>
515
- <auro-menuoption value="departure">Departure</auro-menuoption>
516
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
517
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
518
- </auro-menu>
519
- </auro-select>
520
- <!-- AURO-GENERATED-CONTENT:END -->
521
- </div>
522
- <auro-accordion alignRight>
523
- <span slot="trigger">See code</span>
524
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/slots.html) -->
525
- <!-- The below code snippet is automatically added from ./../apiExamples/slots.html -->
526
-
527
- ```html
528
- <auro-select placeholder="Placeholder Text">
529
- <span slot="bib.fullscreen.headline">Bib Headline</span>
530
- <span slot="label">Label</span>
531
- <span slot="helpText">Help Text</span>
532
- <auro-menu>
533
- <auro-menuoption value="stops">Stops</auro-menuoption>
534
- <auro-menuoption value="price">Price</auro-menuoption>
535
- <auro-menuoption value="duration">Duration</auro-menuoption>
536
- <auro-menuoption value="departure">Departure</auro-menuoption>
537
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
538
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
539
- </auro-menu>
540
- </auro-select>
541
- ```
542
- <!-- AURO-GENERATED-CONTENT:END -->
543
- </auro-accordion>
544
-
545
- ## Autofill/Autocomplete Support
546
-
547
- Use the `autocomplete` attribute to let browser's know what information to use to fill out the form.
548
-
549
- <div class="exampleWrapper">
550
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/autocomplete.html) -->
551
- <!-- The below content is automatically added from ./../apiExamples/autocomplete.html -->
552
- <div class="autofill-example-form">
553
- <div class="input-row">
554
- <auro-input autocomplete="given-name">
555
- <span slot="label">First Name</span>
556
- <span slot="bib.fullscreen.headline">First Name</span>
557
- </auro-input>
558
- <auro-input autocomplete="family-name">
559
- <span slot="label">Last Name</span>
560
- <span slot="bib.fullscreen.headline">Last Name</span>
561
- </auro-input>
562
- </div>
563
- <div class="input-row">
564
- <auro-input autocomplete="address-line1">
565
- <span slot="label">Street Address</span>
566
- <span slot="bib.fullscreen.headline">Street Address</span>
567
- </auro-input>
568
- <auro-input autocomplete="address-level2">
569
- <span slot="label">City</span>
570
- <span slot="bib.fullscreen.headline">City</span>
571
- </auro-input>
572
- <auro-select autocomplete="address-level1">
573
- <span slot="bib.fullscreen.headline">Select Your State</span>
574
- <span slot="label">Select Your State</span>
575
- <auro-menu>
576
- <auro-menuoption value="AL">Alabama</auro-menuoption>
577
- <auro-menuoption value="AK">Alaska</auro-menuoption>
578
- <auro-menuoption value="AZ">Arizona</auro-menuoption>
579
- <auro-menuoption value="AR">Arkansas</auro-menuoption>
580
- <auro-menuoption value="CA">California</auro-menuoption>
581
- <auro-menuoption value="CO">Colorado</auro-menuoption>
582
- <auro-menuoption value="CT">Connecticut</auro-menuoption>
583
- <auro-menuoption value="DE">Delaware</auro-menuoption>
584
- <auro-menuoption value="DC">District of Columbia</auro-menuoption>
585
- <auro-menuoption value="FL">Florida</auro-menuoption>
586
- <auro-menuoption value="GA">Georgia</auro-menuoption>
587
- <auro-menuoption value="HI">Hawaii</auro-menuoption>
588
- <auro-menuoption value="ID">Idaho</auro-menuoption>
589
- <auro-menuoption value="IL">Illinois</auro-menuoption>
590
- <auro-menuoption value="IN">Indiana</auro-menuoption>
591
- <auro-menuoption value="IA">Iowa</auro-menuoption>
592
- <auro-menuoption value="KS">Kansas</auro-menuoption>
593
- <auro-menuoption value="KY">Kentucky</auro-menuoption>
594
- <auro-menuoption value="LA">Louisiana</auro-menuoption>
595
- <auro-menuoption value="ME">Maine</auro-menuoption>
596
- <auro-menuoption value="MD">Maryland</auro-menuoption>
597
- <auro-menuoption value="MA">Massachusetts</auro-menuoption>
598
- <auro-menuoption value="MI">Michigan</auro-menuoption>
599
- <auro-menuoption value="MN">Minnesota</auro-menuoption>
600
- <auro-menuoption value="MS">Mississippi</auro-menuoption>
601
- <auro-menuoption value="MO">Missouri</auro-menuoption>
602
- <auro-menuoption value="MT">Montana</auro-menuoption>
603
- <auro-menuoption value="NE">Nebraska</auro-menuoption>
604
- <auro-menuoption value="NV">Nevada</auro-menuoption>
605
- <auro-menuoption value="NH">New Hampshire</auro-menuoption>
606
- <auro-menuoption value="NJ">New Jersey</auro-menuoption>
607
- <auro-menuoption value="NM">New Mexico</auro-menuoption>
608
- <auro-menuoption value="NY">New York</auro-menuoption>
609
- <auro-menuoption value="NC">North Carolina</auro-menuoption>
610
- <auro-menuoption value="ND">North Dakota</auro-menuoption>
611
- <auro-menuoption value="OH">Ohio</auro-menuoption>
612
- <auro-menuoption value="OK">Oklahoma</auro-menuoption>
613
- <auro-menuoption value="OR">Oregon</auro-menuoption>
614
- <auro-menuoption value="PA">Pennsylvania</auro-menuoption>
615
- <auro-menuoption value="RI">Rhode Island</auro-menuoption>
616
- <auro-menuoption value="SC">South Carolina</auro-menuoption>
617
- <auro-menuoption value="SD">South Dakota</auro-menuoption>
618
- <auro-menuoption value="TN">Tennessee</auro-menuoption>
619
- <auro-menuoption value="TX">Texas</auro-menuoption>
620
- <auro-menuoption value="UT">Utah</auro-menuoption>
621
- <auro-menuoption value="VT">Vermont</auro-menuoption>
622
- <auro-menuoption value="VA">Virginia</auro-menuoption>
623
- <auro-menuoption value="WA">Washington</auro-menuoption>
624
- <auro-menuoption value="WV">West Virginia</auro-menuoption>
625
- <auro-menuoption value="WI">Wisconsin</auro-menuoption>
626
- <auro-menuoption value="WY">Wyoming</auro-menuoption>
627
- </auro-menu>
628
- </auro-select>
629
- </div>
630
- </div>
631
- <!-- AURO-GENERATED-CONTENT:END -->
632
- </div>
633
- <auro-accordion alignRight>
634
- <span slot="trigger">See code</span>
635
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/autocomplete.html) -->
636
- <!-- The below code snippet is automatically added from ./../apiExamples/autocomplete.html -->
637
-
638
- ```html
639
- <div class="autofill-example-form">
640
- <div class="input-row">
641
- <auro-input autocomplete="given-name">
642
- <span slot="label">First Name</span>
643
- <span slot="bib.fullscreen.headline">First Name</span>
644
- </auro-input>
645
- <auro-input autocomplete="family-name">
646
- <span slot="label">Last Name</span>
647
- <span slot="bib.fullscreen.headline">Last Name</span>
648
- </auro-input>
649
- </div>
650
- <div class="input-row">
651
- <auro-input autocomplete="address-line1">
652
- <span slot="label">Street Address</span>
653
- <span slot="bib.fullscreen.headline">Street Address</span>
654
- </auro-input>
655
- <auro-input autocomplete="address-level2">
656
- <span slot="label">City</span>
657
- <span slot="bib.fullscreen.headline">City</span>
658
- </auro-input>
659
- <auro-select autocomplete="address-level1">
660
- <span slot="bib.fullscreen.headline">Select Your State</span>
661
- <span slot="label">Select Your State</span>
662
- <auro-menu>
663
- <auro-menuoption value="AL">Alabama</auro-menuoption>
664
- <auro-menuoption value="AK">Alaska</auro-menuoption>
665
- <auro-menuoption value="AZ">Arizona</auro-menuoption>
666
- <auro-menuoption value="AR">Arkansas</auro-menuoption>
667
- <auro-menuoption value="CA">California</auro-menuoption>
668
- <auro-menuoption value="CO">Colorado</auro-menuoption>
669
- <auro-menuoption value="CT">Connecticut</auro-menuoption>
670
- <auro-menuoption value="DE">Delaware</auro-menuoption>
671
- <auro-menuoption value="DC">District of Columbia</auro-menuoption>
672
- <auro-menuoption value="FL">Florida</auro-menuoption>
673
- <auro-menuoption value="GA">Georgia</auro-menuoption>
674
- <auro-menuoption value="HI">Hawaii</auro-menuoption>
675
- <auro-menuoption value="ID">Idaho</auro-menuoption>
676
- <auro-menuoption value="IL">Illinois</auro-menuoption>
677
- <auro-menuoption value="IN">Indiana</auro-menuoption>
678
- <auro-menuoption value="IA">Iowa</auro-menuoption>
679
- <auro-menuoption value="KS">Kansas</auro-menuoption>
680
- <auro-menuoption value="KY">Kentucky</auro-menuoption>
681
- <auro-menuoption value="LA">Louisiana</auro-menuoption>
682
- <auro-menuoption value="ME">Maine</auro-menuoption>
683
- <auro-menuoption value="MD">Maryland</auro-menuoption>
684
- <auro-menuoption value="MA">Massachusetts</auro-menuoption>
685
- <auro-menuoption value="MI">Michigan</auro-menuoption>
686
- <auro-menuoption value="MN">Minnesota</auro-menuoption>
687
- <auro-menuoption value="MS">Mississippi</auro-menuoption>
688
- <auro-menuoption value="MO">Missouri</auro-menuoption>
689
- <auro-menuoption value="MT">Montana</auro-menuoption>
690
- <auro-menuoption value="NE">Nebraska</auro-menuoption>
691
- <auro-menuoption value="NV">Nevada</auro-menuoption>
692
- <auro-menuoption value="NH">New Hampshire</auro-menuoption>
693
- <auro-menuoption value="NJ">New Jersey</auro-menuoption>
694
- <auro-menuoption value="NM">New Mexico</auro-menuoption>
695
- <auro-menuoption value="NY">New York</auro-menuoption>
696
- <auro-menuoption value="NC">North Carolina</auro-menuoption>
697
- <auro-menuoption value="ND">North Dakota</auro-menuoption>
698
- <auro-menuoption value="OH">Ohio</auro-menuoption>
699
- <auro-menuoption value="OK">Oklahoma</auro-menuoption>
700
- <auro-menuoption value="OR">Oregon</auro-menuoption>
701
- <auro-menuoption value="PA">Pennsylvania</auro-menuoption>
702
- <auro-menuoption value="RI">Rhode Island</auro-menuoption>
703
- <auro-menuoption value="SC">South Carolina</auro-menuoption>
704
- <auro-menuoption value="SD">South Dakota</auro-menuoption>
705
- <auro-menuoption value="TN">Tennessee</auro-menuoption>
706
- <auro-menuoption value="TX">Texas</auro-menuoption>
707
- <auro-menuoption value="UT">Utah</auro-menuoption>
708
- <auro-menuoption value="VT">Vermont</auro-menuoption>
709
- <auro-menuoption value="VA">Virginia</auro-menuoption>
710
- <auro-menuoption value="WA">Washington</auro-menuoption>
711
- <auro-menuoption value="WV">West Virginia</auro-menuoption>
712
- <auro-menuoption value="WI">Wisconsin</auro-menuoption>
713
- <auro-menuoption value="WY">Wyoming</auro-menuoption>
714
- </auro-menu>
715
- </auro-select>
716
- </div>
717
- </div>
718
- ```
719
- <!-- AURO-GENERATED-CONTENT:END -->
720
- </auro-accordion>
721
-
722
- ## Example with auro-icons in options
723
-
724
- Displays an `<auro-select>` element with `<auro-icon>` elements in each option.
725
-
726
- <div class="exampleWrapper">
727
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/withIcons.html) -->
728
- <!-- The below content is automatically added from ./../apiExamples/withIcons.html -->
729
- <auro-select placeholder="Placeholder Text">
730
- <span slot="bib.fullscreen.headline">Bib Headline</span>
731
- <span slot="label">Label</span>
732
- <auro-menu>
733
- <auro-menuoption value="air">
734
- <auro-icon label customColor category="health" name="air">Air</auro-icon>
735
- </auro-menuoption>
736
- <auro-menuoption value="covidtest">
737
- <auro-icon label customColor category="health" name="covid-test">Covid Test</auro-icon>
738
- </auro-menuoption>
739
- <auro-menuoption value="health">
740
- <auro-icon label customColor category="health" name="health">Health</auro-icon>
741
- </auro-menuoption>
742
- <auro-menuoption value="mask">
743
- <auro-icon label customColor category="health" name="mask">Mask</auro-icon>
744
- </auro-menuoption>
745
- <auro-menuoption value="spraybottle">
746
- <auro-icon label customColor category="health" name="spraybottle">Spray Bottle</auro-icon>
747
- </auro-menuoption>
748
- </auro-menu>
749
- </auro-select>
750
- <!-- AURO-GENERATED-CONTENT:END -->
751
- </div>
752
- <auro-accordion alignRight>
753
- <span slot="trigger">See code</span>
754
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/withIcons.html) -->
755
- <!-- The below code snippet is automatically added from ./../apiExamples/withIcons.html -->
756
-
757
- ```html
758
- <auro-select placeholder="Placeholder Text">
759
- <span slot="bib.fullscreen.headline">Bib Headline</span>
760
- <span slot="label">Label</span>
761
- <auro-menu>
762
- <auro-menuoption value="air">
763
- <auro-icon label customColor category="health" name="air">Air</auro-icon>
764
- </auro-menuoption>
765
- <auro-menuoption value="covidtest">
766
- <auro-icon label customColor category="health" name="covid-test">Covid Test</auro-icon>
767
- </auro-menuoption>
768
- <auro-menuoption value="health">
769
- <auro-icon label customColor category="health" name="health">Health</auro-icon>
770
- </auro-menuoption>
771
- <auro-menuoption value="mask">
772
- <auro-icon label customColor category="health" name="mask">Mask</auro-icon>
773
- </auro-menuoption>
774
- <auro-menuoption value="spraybottle">
775
- <auro-icon label customColor category="health" name="spraybottle">Spray Bottle</auro-icon>
776
- </auro-menuoption>
777
- </auro-menu>
778
- </auro-select>
779
- ```
780
- <!-- AURO-GENERATED-CONTENT:END -->
781
- </auro-accordion>
782
-
783
- ## Example with nested menus
784
-
785
- This example shows nesting `<auro-menu>` elements to create submenus.
786
-
787
- <div class="exampleWrapper">
788
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/withSubmenus.html) -->
789
- <!-- The below content is automatically added from ./../apiExamples/withSubmenus.html -->
790
- <auro-select placeholder="Placeholder Text">
791
- <span slot="bib.fullscreen.headline">Bib Headline</span>
792
- <span slot="label">Label</span>
793
- <auro-menu>
794
- <auro-menuoption value="stops">Stops</auro-menuoption>
795
- <auro-menuoption value="price">Price</auro-menuoption>
796
- <auro-menuoption value="duration">Duration</auro-menuoption>
797
- <hr>
798
- <auro-menu>
799
- <auro-menuoption value="apples">Apples</auro-menuoption>
800
- <auro-menuoption value="oranges">Oranges</auro-menuoption>
801
- <auro-menuoption value="pears">Pears</auro-menuoption>
802
- <auro-menuoption value="grapes">Grapes</auro-menuoption>
803
- <auro-menuoption value="kiwi">Kiwi</auro-menuoption>
804
- <hr>
805
- <auro-menu>
806
- <auro-menuoption value="person">Person</auro-menuoption>
807
- <auro-menuoption value="woman">Woman</auro-menuoption>
808
- <auro-menuoption value="man">Man</auro-menuoption>
809
- <auro-menuoption value="camera">Camera</auro-menuoption>
810
- <auro-menuoption value="tv">TV</auro-menuoption>
811
- </auro-menu>
812
- </auro-menu>
813
- <hr>
814
- <auro-menuoption value="departure">Departure</auro-menuoption>
815
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
816
- <hr>
817
- <auro-menu>
818
- <auro-menuoption value="cars">Cars</auro-menuoption>
819
- <auro-menuoption value="trucks">Trucks</auro-menuoption>
820
- <auro-menuoption value="boats">Boats</auro-menuoption>
821
- <auro-menuoption value="planes">Planes</auro-menuoption>
822
- <auro-menuoption value="motorcycles">Motorcycles</auro-menuoption>
823
- </auro-menu>
824
- </auro-select>
825
- <!-- AURO-GENERATED-CONTENT:END -->
826
- </div>
827
- <auro-accordion alignRight>
828
- <span slot="trigger">See code</span>
829
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/withSubmenus.html) -->
830
- <!-- The below code snippet is automatically added from ./../apiExamples/withSubmenus.html -->
831
-
832
- ```html
833
- <auro-select placeholder="Placeholder Text">
834
- <span slot="bib.fullscreen.headline">Bib Headline</span>
835
- <span slot="label">Label</span>
836
- <auro-menu>
837
- <auro-menuoption value="stops">Stops</auro-menuoption>
838
- <auro-menuoption value="price">Price</auro-menuoption>
839
- <auro-menuoption value="duration">Duration</auro-menuoption>
840
- <hr>
841
- <auro-menu>
842
- <auro-menuoption value="apples">Apples</auro-menuoption>
843
- <auro-menuoption value="oranges">Oranges</auro-menuoption>
844
- <auro-menuoption value="pears">Pears</auro-menuoption>
845
- <auro-menuoption value="grapes">Grapes</auro-menuoption>
846
- <auro-menuoption value="kiwi">Kiwi</auro-menuoption>
847
- <hr>
848
- <auro-menu>
849
- <auro-menuoption value="person">Person</auro-menuoption>
850
- <auro-menuoption value="woman">Woman</auro-menuoption>
851
- <auro-menuoption value="man">Man</auro-menuoption>
852
- <auro-menuoption value="camera">Camera</auro-menuoption>
853
- <auro-menuoption value="tv">TV</auro-menuoption>
854
- </auro-menu>
855
- </auro-menu>
856
- <hr>
857
- <auro-menuoption value="departure">Departure</auro-menuoption>
858
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
859
- <hr>
860
- <auro-menu>
861
- <auro-menuoption value="cars">Cars</auro-menuoption>
862
- <auro-menuoption value="trucks">Trucks</auro-menuoption>
863
- <auro-menuoption value="boats">Boats</auro-menuoption>
864
- <auro-menuoption value="planes">Planes</auro-menuoption>
865
- <auro-menuoption value="motorcycles">Motorcycles</auro-menuoption>
866
- </auro-menu>
867
- </auro-select>
868
- ```
869
- <!-- AURO-GENERATED-CONTENT:END -->
870
- </auro-accordion>
871
-
872
- ## Example with no checkmark
873
-
874
- Applying the `noCheckmark` attribute will prevent the checkmark icon from being shown on the selected option. The left padding to reserve space for the checkmark will not be shown.
875
-
876
- <div class="exampleWrapper">
877
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/noCheckmark.html) -->
878
- <!-- The below content is automatically added from ./../apiExamples/noCheckmark.html -->
879
- <auro-select nocheckmark placeholder="Placeholder Text">
880
- <span slot="bib.fullscreen.headline">Bib Headline</span>
881
- <span slot="label">Label</span>
882
- <auro-menu>
883
- <auro-menuoption value="stops">Stops</auro-menuoption>
884
- <auro-menuoption value="price">Price</auro-menuoption>
885
- <auro-menuoption value="duration">Duration</auro-menuoption>
886
- <auro-menuoption value="departure">Departure</auro-menuoption>
887
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
888
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
889
- </auro-menu>
890
- </auro-select>
891
- <!-- AURO-GENERATED-CONTENT:END -->
892
- </div>
893
- <auro-accordion alignRight>
894
- <span slot="trigger">See code</span>
895
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/noCheckmark.html) -->
896
- <!-- The below code snippet is automatically added from ./../apiExamples/noCheckmark.html -->
897
-
898
- ```html
899
- <auro-select nocheckmark placeholder="Placeholder Text">
900
- <span slot="bib.fullscreen.headline">Bib Headline</span>
901
- <span slot="label">Label</span>
902
- <auro-menu>
903
- <auro-menuoption value="stops">Stops</auro-menuoption>
904
- <auro-menuoption value="price">Price</auro-menuoption>
905
- <auro-menuoption value="duration">Duration</auro-menuoption>
906
- <auro-menuoption value="departure">Departure</auro-menuoption>
907
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
908
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
909
- </auro-menu>
910
- </auro-select>
911
- ```
912
- <!-- AURO-GENERATED-CONTENT:END -->
913
- </auro-accordion>
914
-
915
- ## Example with custom bib height
916
-
917
- This example shows how to set a custom height for the bib from `<auro-dropdown>`.
918
-
919
- Custom height dimensions are set by using the `dropdownSize` CSS Part and then applying a `max-height` rule and value.
920
-
921
- <div class="exampleWrapper">
922
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/customBibHeight.html) -->
923
- <!-- The below content is automatically added from ../apiExamples/customBibHeight.html -->
924
- <auro-select id="customBibHeightExample" placeholder="Placeholder Text">
925
- <span slot="bib.fullscreen.headline">Bib Headline</span>
926
- <span slot="label">Label</span>
927
- <auro-menu>
928
- <auro-menuoption value="stops">Stops</auro-menuoption>
929
- <auro-menuoption value="price">Price</auro-menuoption>
930
- <auro-menuoption value="duration">Duration</auro-menuoption>
931
- <auro-menuoption value="departure">Departure</auro-menuoption>
932
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
933
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
934
- </auro-menu>
935
- </auro-select>
936
- <style>
937
- #customBibHeightExample::part(dropdownSize) {
938
- max-height: 100px;
939
- }
940
- </style>
941
- <!-- AURO-GENERATED-CONTENT:END -->
942
- </div>
943
- <auro-accordion alignRight>
944
- <span slot="trigger">See code</span>
945
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/customBibHeight.html) -->
946
- <!-- The below code snippet is automatically added from ../apiExamples/customBibHeight.html -->
947
-
948
- ```html
949
- <auro-select id="customBibHeightExample" placeholder="Placeholder Text">
950
- <span slot="bib.fullscreen.headline">Bib Headline</span>
951
- <span slot="label">Label</span>
952
- <auro-menu>
953
- <auro-menuoption value="stops">Stops</auro-menuoption>
954
- <auro-menuoption value="price">Price</auro-menuoption>
955
- <auro-menuoption value="duration">Duration</auro-menuoption>
956
- <auro-menuoption value="departure">Departure</auro-menuoption>
957
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
958
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
959
- </auro-menu>
960
- </auro-select>
961
- <style>
962
- #customBibHeightExample::part(dropdownSize) {
963
- max-height: 100px;
964
- }
965
- </style>
966
- ```
967
- <!-- AURO-GENERATED-CONTENT:END -->
968
- </auro-accordion>
969
-
970
- ## Example with fullscreen dropdown breakpoint override
971
-
972
- This example overrides the default dropdown behavior to force a non-fullscreen view on any screen size. `disabled`
973
- ensures that the dropdown will never be fullscreen.
974
- Please use `xl` if you want the opposite behavior, where a dropdown is always fullscreen.
975
-
976
- <div class="exampleWrapper">
977
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/forcedFullscreenDisabled.html) -->
978
- <!-- The below content is automatically added from ./../apiExamples/forcedFullscreenDisabled.html -->
979
- <auro-select fullscreenBreakpoint="disabled">
980
- <span slot="bib.fullscreen.headline">Bib Headline</span>
981
- <span slot="label">Select Example</span>
982
- <auro-menu>
983
- <auro-menuoption value="stops">Stops</auro-menuoption>
984
- <auro-menuoption value="price">Price</auro-menuoption>
985
- <auro-menuoption value="duration">Duration</auro-menuoption>
986
- <auro-menuoption value="departure">Departure</auro-menuoption>
987
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
988
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
989
- </auro-menu>
990
- </auro-select>
991
- <!-- AURO-GENERATED-CONTENT:END -->
992
- </div>
993
- <auro-accordion alignRight>
994
- <span slot="trigger">See code</span>
995
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/forcedFullscreenDisabled.html) -->
996
- <!-- The below code snippet is automatically added from ./../apiExamples/forcedFullscreenDisabled.html -->
997
-
998
- ```html
999
- <auro-select fullscreenBreakpoint="disabled">
1000
- <span slot="bib.fullscreen.headline">Bib Headline</span>
1001
- <span slot="label">Select Example</span>
1002
- <auro-menu>
1003
- <auro-menuoption value="stops">Stops</auro-menuoption>
1004
- <auro-menuoption value="price">Price</auro-menuoption>
1005
- <auro-menuoption value="duration">Duration</auro-menuoption>
1006
- <auro-menuoption value="departure">Departure</auro-menuoption>
1007
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
1008
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
1009
- </auro-menu>
1010
- </auro-select>
1011
- ```
1012
- <!-- AURO-GENERATED-CONTENT:END -->
1013
- </auro-accordion>
1014
-
1015
- ## Error State
1016
-
1017
- Use the `error` boolean attribute to toggle the error UI.
1018
-
1019
- <div class="exampleWrapper">
1020
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
1021
- <!-- The below content is automatically added from ./../apiExamples/error.html -->
1022
- <auro-select error="Custom error message" placeholder="Placeholder Text">
1023
- <span slot="bib.fullscreen.headline">Bib Headline</span>
1024
- <span slot="label">Label</span>
1025
- <auro-menu>
1026
- <auro-menuoption value="stops">Stops</auro-menuoption>
1027
- <auro-menuoption value="price">Price</auro-menuoption>
1028
- <auro-menuoption value="duration">Duration</auro-menuoption>
1029
- <auro-menuoption value="departure">Departure</auro-menuoption>
1030
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
1031
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
1032
- </auro-menu>
1033
- </auro-select>
1034
- <!-- AURO-GENERATED-CONTENT:END -->
1035
- </div>
1036
- <div class="exampleWrapper--ondark" aria-hidden>
1037
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceError.html) -->
1038
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceError.html -->
1039
- <auro-select appearance="inverse" error="Custom error message" placeholder="Placeholder Text">
1040
- <span slot="bib.fullscreen.headline">Bib Headline</span>
1041
- <span slot="label">Label</span>
1042
- <auro-menu>
1043
- <auro-menuoption value="stops">Stops</auro-menuoption>
1044
- <auro-menuoption value="price">Price</auro-menuoption>
1045
- <auro-menuoption value="duration">Duration</auro-menuoption>
1046
- <auro-menuoption value="departure">Departure</auro-menuoption>
1047
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
1048
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
1049
- </auro-menu>
1050
- </auro-select>
1051
- <!-- AURO-GENERATED-CONTENT:END -->
1052
- </div>
1053
- <auro-accordion alignRight>
1054
- <span slot="trigger">See code</span>
1055
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
1056
- <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
1057
-
1058
- ```html
1059
- <auro-select error="Custom error message" placeholder="Placeholder Text">
1060
- <span slot="bib.fullscreen.headline">Bib Headline</span>
1061
- <span slot="label">Label</span>
1062
- <auro-menu>
1063
- <auro-menuoption value="stops">Stops</auro-menuoption>
1064
- <auro-menuoption value="price">Price</auro-menuoption>
1065
- <auro-menuoption value="duration">Duration</auro-menuoption>
1066
- <auro-menuoption value="departure">Departure</auro-menuoption>
1067
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
1068
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
1069
- </auro-menu>
1070
- </auro-select>
1071
- ```
1072
- <!-- AURO-GENERATED-CONTENT:END -->
1073
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceError.html) -->
1074
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceError.html -->
1075
- <auro-select appearance="inverse" error="Custom error message" placeholder="Placeholder Text">
1076
- <span slot="bib.fullscreen.headline">Bib Headline</span>
1077
- <span slot="label">Label</span>
1078
- <auro-menu>
1079
- <auro-menuoption value="stops">Stops</auro-menuoption>
1080
- <auro-menuoption value="price">Price</auro-menuoption>
1081
- <auro-menuoption value="duration">Duration</auro-menuoption>
1082
- <auro-menuoption value="departure">Departure</auro-menuoption>
1083
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
1084
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
1085
- </auro-menu>
1086
- </auro-select>
1087
- <!-- AURO-GENERATED-CONTENT:END -->
1088
- </auro-accordion>
1089
-
1090
- ## Disabled state
1091
-
1092
- Use the `disabled` boolean attribute to toggle the disabled UI.
1093
-
1094
- <div class="exampleWrapper">
1095
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
1096
- <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
1097
- <auro-select disabled placeholder="Placeholder Text">
1098
- <span slot="bib.fullscreen.headline">Bib Headline</span>
1099
- <span slot="label">Label</span>
1100
- <auro-menu>
1101
- <auro-menuoption value="stops">Stops</auro-menuoption>
1102
- <auro-menuoption value="price">Price</auro-menuoption>
1103
- <auro-menuoption value="duration">Duration</auro-menuoption>
1104
- <auro-menuoption value="departure">Departure</auro-menuoption>
1105
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
1106
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
1107
- </auro-menu>
1108
- </auro-select>
1109
- <!-- AURO-GENERATED-CONTENT:END -->
1110
- </div>
1111
- <div class="exampleWrapper--ondark" aria-hidden>
1112
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
1113
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
1114
- <auro-select appearance="inverse" disabled placeholder="Placeholder Text">
1115
- <span slot="bib.fullscreen.headline">Bib Headline</span>
1116
- <span slot="label">Label</span>
1117
- <auro-menu>
1118
- <auro-menuoption value="stops">Stops</auro-menuoption>
1119
- <auro-menuoption value="price">Price</auro-menuoption>
1120
- <auro-menuoption value="duration">Duration</auro-menuoption>
1121
- <auro-menuoption value="departure">Departure</auro-menuoption>
1122
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
1123
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
1124
- </auro-menu>
1125
- </auro-select>
1126
- <!-- AURO-GENERATED-CONTENT:END -->
1127
- </div>
1128
- <auro-accordion alignRight>
1129
- <span slot="trigger">See code</span>
1130
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
1131
- <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
1132
-
1133
- ```html
1134
- <auro-select disabled placeholder="Placeholder Text">
1135
- <span slot="bib.fullscreen.headline">Bib Headline</span>
1136
- <span slot="label">Label</span>
1137
- <auro-menu>
1138
- <auro-menuoption value="stops">Stops</auro-menuoption>
1139
- <auro-menuoption value="price">Price</auro-menuoption>
1140
- <auro-menuoption value="duration">Duration</auro-menuoption>
1141
- <auro-menuoption value="departure">Departure</auro-menuoption>
1142
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
1143
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
1144
- </auro-menu>
1145
- </auro-select>
1146
- ```
1147
- <!-- AURO-GENERATED-CONTENT:END -->
1148
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearanceDisabled.html) -->
1149
- <!-- The below content is automatically added from ./../apiExamples/inverseAppearanceDisabled.html -->
1150
- <auro-select appearance="inverse" disabled placeholder="Placeholder Text">
1151
- <span slot="bib.fullscreen.headline">Bib Headline</span>
1152
- <span slot="label">Label</span>
1153
- <auro-menu>
1154
- <auro-menuoption value="stops">Stops</auro-menuoption>
1155
- <auro-menuoption value="price">Price</auro-menuoption>
1156
- <auro-menuoption value="duration">Duration</auro-menuoption>
1157
- <auro-menuoption value="departure">Departure</auro-menuoption>
1158
- <auro-menuoption value="arrival">Arrival</auro-menuoption>
1159
- <auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
1160
- </auro-menu>
1161
- </auro-select>
1162
- <!-- AURO-GENERATED-CONTENT:END -->
1163
355
  </auro-accordion>