@aurodesignsystem/auro-formkit 2.1.0 → 2.2.0-beta.1

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 (55) hide show
  1. package/CHANGELOG.md +18 -2
  2. package/components/bibtemplate/dist/index.js +2 -2
  3. package/components/bibtemplate/dist/registered.js +2 -2
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/readme.md +1 -1
  6. package/components/combobox/README.md +1 -1
  7. package/components/combobox/demo/api.md +122 -19
  8. package/components/combobox/demo/api.min.js +160 -24
  9. package/components/combobox/demo/index.min.js +160 -24
  10. package/components/combobox/demo/readme.md +1 -1
  11. package/components/combobox/dist/auro-combobox.d.ts +42 -0
  12. package/components/combobox/dist/index.js +160 -24
  13. package/components/combobox/dist/registered.js +160 -24
  14. package/components/counter/README.md +1 -1
  15. package/components/counter/demo/api.md +113 -10
  16. package/components/counter/demo/api.min.js +178 -47
  17. package/components/counter/demo/index.min.js +178 -47
  18. package/components/counter/demo/readme.md +1 -1
  19. package/components/counter/dist/auro-counter-group.d.ts +55 -17
  20. package/components/counter/dist/index.js +178 -47
  21. package/components/counter/dist/registered.js +178 -47
  22. package/components/datepicker/README.md +1 -1
  23. package/components/datepicker/demo/api.md +61 -0
  24. package/components/datepicker/demo/api.min.js +162 -25
  25. package/components/datepicker/demo/index.min.js +162 -25
  26. package/components/datepicker/demo/readme.md +1 -1
  27. package/components/datepicker/dist/auro-datepicker.d.ts +42 -0
  28. package/components/datepicker/dist/index.js +162 -25
  29. package/components/datepicker/dist/registered.js +162 -25
  30. package/components/dropdown/README.md +1 -1
  31. package/components/dropdown/demo/api.md +166 -19
  32. package/components/dropdown/demo/api.min.js +106 -22
  33. package/components/dropdown/demo/index.min.js +106 -22
  34. package/components/dropdown/demo/readme.md +1 -1
  35. package/components/dropdown/dist/auro-dropdown.d.ts +63 -7
  36. package/components/dropdown/dist/index.js +106 -22
  37. package/components/dropdown/dist/registered.js +106 -22
  38. package/components/form/README.md +1 -1
  39. package/components/form/demo/readme.md +1 -1
  40. package/components/input/README.md +1 -1
  41. package/components/input/demo/readme.md +1 -1
  42. package/components/menu/README.md +1 -1
  43. package/components/menu/demo/readme.md +1 -1
  44. package/components/radio/README.md +1 -1
  45. package/components/radio/demo/readme.md +1 -1
  46. package/components/select/README.md +2 -1
  47. package/components/select/demo/api.md +142 -17
  48. package/components/select/demo/api.min.js +160 -24
  49. package/components/select/demo/index.md +14 -0
  50. package/components/select/demo/index.min.js +160 -24
  51. package/components/select/demo/readme.md +2 -1
  52. package/components/select/dist/auro-select.d.ts +42 -0
  53. package/components/select/dist/index.js +160 -24
  54. package/components/select/dist/registered.js +160 -24
  55. package/package.json +1 -1
@@ -3231,7 +3231,7 @@ class AuroDropdownBib extends r {
3231
3231
 
3232
3232
  var dropdownVersion$1 = '3.0.0';
3233
3233
 
3234
- var styleCss$1$2 = i$5`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
3234
+ var styleCss$1$2 = i$5`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center}.trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
3235
3235
 
3236
3236
  var colorCss$1$2 = i$5`.label{color:var(--ds-auro-dropdown-label-text-color)}.trigger{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-container-color);color:var(--ds-auro-dropdown-trigger-text-color);outline-color:var(--ds-auro-dropdown-trigger-outline-color)}.trigger:focus-within,.trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-active-default, #0074c8)}.trigger:focus-within:not(:active){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);--ds-auro-dropdown-trigger-outline-color: var(--ds-color-border-ui-focus-default, #2c67b5)}.trigger:hover{--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-ui-secondary-hover-default, rgba(0, 0, 0, 0.03))}:host([disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-dropdown-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}:host([common]),:host([bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-primary-default, #585e67)}:host([common]) .trigger:active,:host([common]) .trigger:focus-within,:host([bordered]) .trigger:active,:host([bordered]) .trigger:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host([error]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-error-default, #cc1816)}:host([error]) .trigger{outline:solid 1px var(--ds-auro-dropdown-trigger-border-color)}:host([error]) .trigger:focus-within,:host([error]) .trigger:active{--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-active-default, #0074c8)}:host([error]) .trigger:active{box-shadow:none;outline:none}:host([disabled][common]),:host([disabled][bordered]){--ds-auro-dropdown-trigger-border-color: var(--ds-color-border-ui-disabled-default, #adadad)}`;
3237
3237
 
@@ -3491,10 +3491,16 @@ class AuroDropdown extends r {
3491
3491
  this.disabled = false;
3492
3492
  this.error = false;
3493
3493
  this.inset = false;
3494
- this.placement = 'bottom-start';
3495
3494
  this.rounded = false;
3496
3495
  this.tabIndex = 0;
3497
3496
  this.noToggle = false;
3497
+ this.labeled = true;
3498
+
3499
+ // floaterConfig
3500
+ this.placement = 'bottom-start';
3501
+ this.offset = 0;
3502
+ this.noFlip = false;
3503
+ this.autoPlacement = false;
3498
3504
 
3499
3505
  /**
3500
3506
  * @private
@@ -3516,16 +3522,6 @@ class AuroDropdown extends r {
3516
3522
  */
3517
3523
  this.floater = new AuroFloatingUI();
3518
3524
 
3519
- /**
3520
- * @private
3521
- */
3522
- this.floaterConfig = {
3523
- placement: 'bottom-start',
3524
- flip: true,
3525
- autoPlacement: false,
3526
- offset: 0,
3527
- };
3528
-
3529
3525
  /**
3530
3526
  * Generate unique names for dependency components.
3531
3527
  */
@@ -3547,6 +3543,18 @@ class AuroDropdown extends r {
3547
3543
  this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
3548
3544
  }
3549
3545
 
3546
+ /**
3547
+ * @ignore
3548
+ */
3549
+ get floaterConfig() {
3550
+ return {
3551
+ placement: this.placement,
3552
+ flip: !this.noFlip,
3553
+ autoPlacement: this.autoPlacement,
3554
+ offset: this.offset,
3555
+ };
3556
+ }
3557
+
3550
3558
  /**
3551
3559
  * Public method to hide the dropdown.
3552
3560
  * @returns {void}
@@ -3567,6 +3575,15 @@ class AuroDropdown extends r {
3567
3575
  static get properties() {
3568
3576
  return {
3569
3577
 
3578
+ /**
3579
+ * If declared, bib's position will be automatically calculated where to appear.
3580
+ * @default false
3581
+ */
3582
+ autoPlacement: {
3583
+ type: Boolean,
3584
+ reflect: true
3585
+ },
3586
+
3570
3587
  /**
3571
3588
  * If declared, applies a border around the trigger slot.
3572
3589
  */
@@ -3647,11 +3664,11 @@ class AuroDropdown extends r {
3647
3664
  },
3648
3665
 
3649
3666
  /**
3650
- * If true, the dropdown bib is taking the fullscreen when it's open
3667
+ * If true, the dropdown bib is taking the fullscreen when it's open.
3651
3668
  */
3652
3669
  isBibFullscreen: {
3653
3670
  type: Boolean,
3654
- reflect: true,
3671
+ reflect: true
3655
3672
  },
3656
3673
 
3657
3674
  /**
@@ -3677,6 +3694,15 @@ class AuroDropdown extends r {
3677
3694
  reflect: true
3678
3695
  },
3679
3696
 
3697
+ /**
3698
+ * Defines if there is a label preset.
3699
+ * @private
3700
+ */
3701
+ labeled: {
3702
+ type: Boolean,
3703
+ reflect: true
3704
+ },
3705
+
3680
3706
  /**
3681
3707
  * If declared, the popover and trigger will be set to the same width.
3682
3708
  */
@@ -3685,6 +3711,16 @@ class AuroDropdown extends r {
3685
3711
  reflect: true
3686
3712
  },
3687
3713
 
3714
+ /**
3715
+ * If declared, the bib will NOT flip to an alternate position
3716
+ * when there isn't enough space in the specified `placement`.
3717
+ * @default false
3718
+ */
3719
+ noFlip: {
3720
+ type: Boolean,
3721
+ reflect: true
3722
+ },
3723
+
3688
3724
  /**
3689
3725
  * If declared, the dropdown will not hide when moving focus outside the element.
3690
3726
  */
@@ -3701,16 +3737,32 @@ class AuroDropdown extends r {
3701
3737
  reflect: true
3702
3738
  },
3703
3739
 
3740
+ /**
3741
+ * Gap between the trigger element and bib.
3742
+ * @default 0
3743
+ */
3744
+ offset: {
3745
+ type: Number,
3746
+ reflect: true
3747
+ },
3748
+
3704
3749
  onSlotChange: {
3705
3750
  type: Function,
3706
3751
  reflect: false
3707
3752
  },
3708
3753
 
3709
3754
  /**
3710
- * @private
3755
+ * Position where the bib should appear relative to the trigger.
3756
+ * Accepted values:
3757
+ * "top" | "right" | "bottom" | "left" |
3758
+ * "bottom-start" | "top-start" | "top-end" |
3759
+ * "right-start" | "right-end" | "bottom-end" |
3760
+ * "left-start" | "left-end"
3761
+ * @default bottom-start
3711
3762
  */
3712
3763
  placement: {
3713
- type: String
3764
+ type: String,
3765
+ reflect: true
3714
3766
  },
3715
3767
 
3716
3768
  /**
@@ -3756,6 +3808,7 @@ class AuroDropdown extends r {
3756
3808
 
3757
3809
  disconnectedCallback() {
3758
3810
  super.disconnectedCallback();
3811
+ this.floater.disconnect();
3759
3812
  }
3760
3813
 
3761
3814
  updated(changedProperties) {
@@ -3885,13 +3938,21 @@ class AuroDropdown extends r {
3885
3938
  handleTriggerContentSlotChange(event) {
3886
3939
  this.floater.handleTriggerTabIndex();
3887
3940
 
3888
- const triggerContentNodes = this.shadowRoot.querySelector('.triggerContent slot').assignedNodes();
3941
+ const triggerSlot = this.shadowRoot.querySelector('.triggerContent slot');
3942
+
3943
+ if (triggerSlot) {
3944
+
3945
+ const triggerContentNodes = triggerSlot.assignedNodes();
3946
+
3947
+ if (triggerContentNodes) {
3889
3948
 
3890
- triggerContentNodes.forEach((node) => {
3891
- if (!this.triggerContentFocusable) {
3892
- this.triggerContentFocusable = this.containsFocusableElement(node);
3949
+ triggerContentNodes.forEach((node) => {
3950
+ if (!this.triggerContentFocusable) {
3951
+ this.triggerContentFocusable = this.containsFocusableElement(node);
3952
+ }
3953
+ });
3893
3954
  }
3894
- });
3955
+ }
3895
3956
 
3896
3957
  const trigger = this.shadowRoot.querySelector('#trigger');
3897
3958
 
@@ -3945,6 +4006,29 @@ class AuroDropdown extends r {
3945
4006
  }
3946
4007
  }
3947
4008
 
4009
+ /**
4010
+ * @private
4011
+ * @method handleLabelSlotChange
4012
+ * @param {event} event - The event object representing the slot change.
4013
+ * @description Handles the slot change event for the label slot.
4014
+ */
4015
+ handleLabelSlotChange (event) {
4016
+
4017
+ // Get the nodes from the event
4018
+ const nodes = event.target.assignedNodes();
4019
+
4020
+ // Guard clause for no nodes
4021
+ if (!nodes) {
4022
+ return;
4023
+ }
4024
+
4025
+ // Convert the nodes to a measurable array so we can get the length
4026
+ const nodesArr = Array.from(nodes);
4027
+
4028
+ // If the nodes array has a length, the dropdown is labeled
4029
+ this.labeled = nodesArr.length > 0;
4030
+ }
4031
+
3948
4032
  // function that renders the HTML and CSS into the scope of the component
3949
4033
  render() {
3950
4034
  return u`
@@ -3959,7 +4043,7 @@ class AuroDropdown extends r {
3959
4043
  >
3960
4044
  <div class="triggerContentWrapper">
3961
4045
  <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
3962
- <slot name="label"></slot>
4046
+ <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
3963
4047
  </label>
3964
4048
  <div class="triggerContent">
3965
4049
  <slot
@@ -4845,11 +4929,11 @@ class AuroBibtemplate extends r {
4845
4929
  return {
4846
4930
  isFullscreen: {
4847
4931
  type: Boolean,
4848
- reflect: true,
4932
+ reflect: true
4849
4933
  },
4850
4934
  large: {
4851
4935
  type: Boolean,
4852
- reflect: true,
4936
+ reflect: true
4853
4937
  }
4854
4938
  };
4855
4939
  }
@@ -5088,6 +5172,12 @@ class AuroSelect extends r {
5088
5172
  const idSubstrEnd = 8;
5089
5173
  const idSubstrStart = 2;
5090
5174
 
5175
+ // floaterConfig
5176
+ this.placement = 'bottom-start';
5177
+ this.offset = 0;
5178
+ this.noFlip = false;
5179
+ this.autoPlacement = false;
5180
+
5091
5181
  /**
5092
5182
  * @private
5093
5183
  */
@@ -5144,6 +5234,15 @@ class AuroSelect extends r {
5144
5234
  static get properties() {
5145
5235
  return {
5146
5236
 
5237
+ /**
5238
+ * If declared, bib's position will be automatically calculated where to appear.
5239
+ * @default false
5240
+ */
5241
+ autoPlacement: {
5242
+ type: Boolean,
5243
+ reflect: true
5244
+ },
5245
+
5147
5246
  /**
5148
5247
  * When attribute is present, element shows disabled state.
5149
5248
  */
@@ -5187,6 +5286,16 @@ class AuroSelect extends r {
5187
5286
  reflect: true
5188
5287
  },
5189
5288
 
5289
+ /**
5290
+ * If declared, the bib will NOT flip to an alternate position
5291
+ * when there isn't enough space in the specified `placement`.
5292
+ * @default false
5293
+ */
5294
+ noFlip: {
5295
+ type: Boolean,
5296
+ reflect: true
5297
+ },
5298
+
5190
5299
  /**
5191
5300
  * If set, disables auto-validation on blur.
5192
5301
  */
@@ -5195,6 +5304,15 @@ class AuroSelect extends r {
5195
5304
  reflect: true
5196
5305
  },
5197
5306
 
5307
+ /**
5308
+ * Gap between the trigger element and bib.
5309
+ * @default 0
5310
+ */
5311
+ offset: {
5312
+ type: Number,
5313
+ reflect: true
5314
+ },
5315
+
5198
5316
  /**
5199
5317
  * @private
5200
5318
  */
@@ -5218,6 +5336,20 @@ class AuroSelect extends r {
5218
5336
  type: Array
5219
5337
  },
5220
5338
 
5339
+ /**
5340
+ * Position where the bib should appear relative to the trigger.
5341
+ * Accepted values:
5342
+ * "top" | "right" | "bottom" | "left" |
5343
+ * "bottom-start" | "top-start" | "top-end" |
5344
+ * "right-start" | "right-end" | "bottom-end" |
5345
+ * "left-start" | "left-end"
5346
+ * @default bottom-start
5347
+ */
5348
+ placement: {
5349
+ type: String,
5350
+ reflect: true
5351
+ },
5352
+
5221
5353
  /**
5222
5354
  * Populates the `required` attribute on the element. Used for client-side validation.
5223
5355
  */
@@ -5680,6 +5812,10 @@ class AuroSelect extends r {
5680
5812
  .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
5681
5813
  ?matchWidth="${!this.flexMenuWidth}"
5682
5814
  chevron
5815
+ .placement="${this.placement}"
5816
+ .offset="${this.offset}"
5817
+ ?autoPlacement="${this.autoPlacement}"
5818
+ ?noFlip="${this.noFlip}"
5683
5819
  part="dropdown">
5684
5820
  <span slot="trigger" aria-haspopup="true" id="triggerFocus">
5685
5821
  <span id="placeholder" class="${e(placeholderClass)}"><slot name="placeholder"></slot></span>
@@ -22,6 +22,7 @@ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
22
22
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
23
23
  <auro-select>
24
24
  <span slot="bib.fullscreen.headline">Bib Headline</span>
25
+ <span slot="label">Select Example</span>
25
26
  <auro-menu>
26
27
  <auro-menuoption value="stops">Stops</auro-menuoption>
27
28
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -41,6 +42,7 @@ A baseline `<auro-select>` using `<auro-menu>` and `<auro-menuoption>` elements.
41
42
  ```html
42
43
  <auro-select>
43
44
  <span slot="bib.fullscreen.headline">Bib Headline</span>
45
+ <span slot="label">Select Example</span>
44
46
  <auro-menu>
45
47
  <auro-menuoption value="stops">Stops</auro-menuoption>
46
48
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -154,6 +156,7 @@ Displays an `<auro-select>` element with `<auro-icon>` elements in each option.
154
156
  <auro-select>
155
157
  <span slot="bib.fullscreen.headline">Bib Headline</span>
156
158
  <label slot="placeholder">Placeholder Text</label>
159
+ <span slot="label">Select Example</span>
157
160
  <auro-menu>
158
161
  <auro-menuoption value="air">
159
162
  <auro-icon label customColor category="health" name="air">Air</auro-icon>
@@ -183,6 +186,7 @@ Displays an `<auro-select>` element with `<auro-icon>` elements in each option.
183
186
  <auro-select>
184
187
  <span slot="bib.fullscreen.headline">Bib Headline</span>
185
188
  <label slot="placeholder">Placeholder Text</label>
189
+ <span slot="label">Select Example</span>
186
190
  <auro-menu>
187
191
  <auro-menuoption value="air">
188
192
  <auro-icon label customColor category="health" name="air">Air</auro-icon>
@@ -215,6 +219,7 @@ This example shows nesting `<auro-menu>` elements to create submenus.
215
219
  <auro-select>
216
220
  <span slot="bib.fullscreen.headline">Bib Headline</span>
217
221
  <label slot="placeholder">Placeholder Text</label>
222
+ <span slot="label">Select Example</span>
218
223
  <auro-menu>
219
224
  <auro-menuoption value="stops">Stops</auro-menuoption>
220
225
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -258,6 +263,7 @@ This example shows nesting `<auro-menu>` elements to create submenus.
258
263
  <auro-select>
259
264
  <span slot="bib.fullscreen.headline">Bib Headline</span>
260
265
  <label slot="placeholder">Placeholder Text</label>
266
+ <span slot="label">Select Example</span>
261
267
  <auro-menu>
262
268
  <auro-menuoption value="stops">Stops</auro-menuoption>
263
269
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -304,6 +310,7 @@ Applying the `noCheckmark` attribute will prevent the checkmark icon from being
304
310
  <auro-select nocheckmark>
305
311
  <span slot="bib.fullscreen.headline">Bib Headline</span>
306
312
  <label slot="placeholder">Placeholder Text</label>
313
+ <span slot="label">nocheckmark Select Example</span>
307
314
  <auro-menu>
308
315
  <auro-menuoption value="stops">Stops</auro-menuoption>
309
316
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -324,6 +331,7 @@ Applying the `noCheckmark` attribute will prevent the checkmark icon from being
324
331
  <auro-select nocheckmark>
325
332
  <span slot="bib.fullscreen.headline">Bib Headline</span>
326
333
  <label slot="placeholder">Placeholder Text</label>
334
+ <span slot="label">nocheckmark Select Example</span>
327
335
  <auro-menu>
328
336
  <auro-menuoption value="stops">Stops</auro-menuoption>
329
337
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -349,6 +357,7 @@ Custom height dimensions are set by using the `dropdownSize` CSS Part and then a
349
357
  <auro-select id="customBibHeightExample">
350
358
  <span slot="bib.fullscreen.headline">Bib Headline</span>
351
359
  <label slot="placeholder">Placeholder Text</label>
360
+ <span slot="label">Select Example</span>
352
361
  <auro-menu>
353
362
  <auro-menuoption value="stops">Stops</auro-menuoption>
354
363
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -374,6 +383,7 @@ Custom height dimensions are set by using the `dropdownSize` CSS Part and then a
374
383
  <auro-select id="customBibHeightExample">
375
384
  <span slot="bib.fullscreen.headline">Bib Headline</span>
376
385
  <label slot="placeholder">Placeholder Text</label>
386
+ <span slot="label">Select Example</span>
377
387
  <auro-menu>
378
388
  <auro-menuoption value="stops">Stops</auro-menuoption>
379
389
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -400,6 +410,7 @@ Use the `error` boolean attribute to toggle the error UI.
400
410
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
401
411
  <!-- The below content is automatically added from ./../apiExamples/error.html -->
402
412
  <auro-select error="Custom error message">
413
+ <span slot="label">error select example</span>
403
414
  <span slot="bib.fullscreen.headline">Bib Headline</span>
404
415
  <label slot="placeholder">Placeholder Text</label>
405
416
  <auro-menu>
@@ -420,6 +431,7 @@ Use the `error` boolean attribute to toggle the error UI.
420
431
 
421
432
  ```html
422
433
  <auro-select error="Custom error message">
434
+ <span slot="label">error select example</span>
423
435
  <span slot="bib.fullscreen.headline">Bib Headline</span>
424
436
  <label slot="placeholder">Placeholder Text</label>
425
437
  <auro-menu>
@@ -445,6 +457,7 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
445
457
  <auro-select disabled>
446
458
  <span slot="bib.fullscreen.headline">Bib Headline</span>
447
459
  <label slot="placeholder">Placeholder Text</label>
460
+ <span slot="label">disabled select example</span>
448
461
  <auro-menu>
449
462
  <auro-menuoption value="stops">Stops</auro-menuoption>
450
463
  <auro-menuoption value="price">Price</auro-menuoption>
@@ -465,6 +478,7 @@ Use the `disabled` boolean attribute to toggle the disabled UI.
465
478
  <auro-select disabled>
466
479
  <span slot="bib.fullscreen.headline">Bib Headline</span>
467
480
  <label slot="placeholder">Placeholder Text</label>
481
+ <span slot="label">disabled select example</span>
468
482
  <auro-menu>
469
483
  <auro-menuoption value="stops">Stops</auro-menuoption>
470
484
  <auro-menuoption value="price">Price</auro-menuoption>