@aurodesignsystem-dev/auro-formkit 0.0.0-pr834.2 → 0.0.0-pr837.0

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 (59) hide show
  1. package/components/bibtemplate/dist/index.js +3 -2
  2. package/components/bibtemplate/dist/registered.js +3 -2
  3. package/components/combobox/README.md +2 -0
  4. package/components/combobox/demo/api.md +6 -0
  5. package/components/combobox/demo/api.min.js +27 -26
  6. package/components/combobox/demo/index.md +12 -0
  7. package/components/combobox/demo/index.min.js +27 -26
  8. package/components/combobox/demo/readme.md +2 -0
  9. package/components/combobox/dist/auro-combobox.d.ts +2 -0
  10. package/components/combobox/dist/index.js +26 -25
  11. package/components/combobox/dist/registered.js +26 -25
  12. package/components/counter/demo/api.md +9 -0
  13. package/components/counter/demo/api.min.js +6 -13
  14. package/components/counter/demo/index.md +6 -0
  15. package/components/counter/demo/index.min.js +6 -13
  16. package/components/counter/dist/auro-counter-group.d.ts +1 -0
  17. package/components/counter/dist/index.js +6 -13
  18. package/components/counter/dist/registered.js +6 -13
  19. package/components/datepicker/README.md +1 -0
  20. package/components/datepicker/demo/api.md +11 -0
  21. package/components/datepicker/demo/api.min.js +19 -17
  22. package/components/datepicker/demo/index.md +12 -0
  23. package/components/datepicker/demo/index.min.js +19 -17
  24. package/components/datepicker/demo/readme.md +1 -0
  25. package/components/datepicker/dist/auro-datepicker.d.ts +1 -0
  26. package/components/datepicker/dist/index.js +19 -17
  27. package/components/datepicker/dist/registered.js +19 -17
  28. package/components/dropdown/demo/api.md +7 -6
  29. package/components/dropdown/demo/api.min.js +1 -11
  30. package/components/dropdown/demo/index.min.js +1 -11
  31. package/components/dropdown/dist/index.js +1 -11
  32. package/components/dropdown/dist/registered.js +1 -11
  33. package/components/input/README.md +1 -0
  34. package/components/input/demo/api.md +14 -6
  35. package/components/input/demo/api.min.js +12 -4
  36. package/components/input/demo/index.md +7 -0
  37. package/components/input/demo/index.min.js +12 -4
  38. package/components/input/demo/readme.md +1 -0
  39. package/components/input/dist/base-input.d.ts +3 -1
  40. package/components/input/dist/index.js +12 -4
  41. package/components/input/dist/registered.js +12 -4
  42. package/components/menu/demo/api.min.js +1 -1
  43. package/components/menu/demo/index.min.js +1 -1
  44. package/components/menu/dist/index.js +1 -1
  45. package/components/menu/dist/registered.js +1 -1
  46. package/components/radio/demo/api.min.js +1 -1
  47. package/components/radio/demo/index.min.js +1 -1
  48. package/components/radio/dist/index.js +1 -1
  49. package/components/radio/dist/registered.js +1 -1
  50. package/components/select/README.md +1 -0
  51. package/components/select/demo/api.md +9 -3
  52. package/components/select/demo/api.min.js +13 -14
  53. package/components/select/demo/index.md +8 -0
  54. package/components/select/demo/index.min.js +13 -14
  55. package/components/select/demo/readme.md +1 -0
  56. package/components/select/dist/auro-select.d.ts +5 -0
  57. package/components/select/dist/index.js +12 -13
  58. package/components/select/dist/registered.js +12 -13
  59. package/package.json +2 -2
@@ -2812,12 +2812,6 @@ class AuroFloatingUI {
2812
2812
  }
2813
2813
 
2814
2814
  setupHideHandlers() {
2815
- this.preventFocusLoseOnBibClick = (event) => {
2816
- event.preventDefault();
2817
- event.stopPropagation();
2818
- };
2819
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
2820
-
2821
2815
  // Define handlers & store references
2822
2816
  this.focusHandler = () => this.handleFocusLoss();
2823
2817
 
@@ -2867,11 +2861,6 @@ class AuroFloatingUI {
2867
2861
  cleanupHideHandlers() {
2868
2862
  // Remove event listeners if they exist
2869
2863
 
2870
- if (this.preventFocusLoseOnBibClick) {
2871
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
2872
- delete this.preventFocusLoseOnBibClick;
2873
- }
2874
-
2875
2864
  if (this.focusHandler) {
2876
2865
  document.removeEventListener('focusin', this.focusHandler);
2877
2866
  this.focusHandler = null;
@@ -4371,6 +4360,7 @@ let AuroElement$4 = class AuroElement extends LitElement {
4371
4360
  * @slot trigger - Defines the content of the trigger.
4372
4361
  * @csspart trigger - The trigger content container.
4373
4362
  * @csspart chevron - The collapsed/expanded state icon container.
4363
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
4374
4364
  * @csspart helpText - The helpText content container.
4375
4365
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
4376
4366
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -10207,6 +10197,9 @@ let AuroElement$2$1 = class AuroElement extends LitElement {
10207
10197
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
10208
10198
  * @attr id
10209
10199
  *
10200
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
10201
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
10202
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
10210
10203
  * @slot helpText - Sets the help text displayed below the input.
10211
10204
  * @slot label - Sets the label text for the input.
10212
10205
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -10634,8 +10627,7 @@ class BaseInput extends AuroElement$2$1 {
10634
10627
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
10635
10628
  */
10636
10629
  value: {
10637
- type: String,
10638
- reflect: true
10630
+ type: String
10639
10631
  },
10640
10632
 
10641
10633
  /**
@@ -13347,12 +13339,13 @@ class AuroInput extends BaseInput {
13347
13339
  <${this.buttonTag}
13348
13340
  @click="${this.handleClickClear}"
13349
13341
  ?onDark="${this.onDark}"
13350
- aria-label="${i18n(this.lang, 'clearInput')}"
13351
13342
  class="notificationBtn clearBtn"
13352
13343
  shape="circle"
13353
13344
  size="sm"
13354
13345
  variant="ghost">
13346
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
13355
13347
  <${this.iconTag}
13348
+ aria-hidden="true"
13356
13349
  ?customColor="${this.onDark}"
13357
13350
  category="interface"
13358
13351
  name="x-lg"
@@ -13375,18 +13368,23 @@ class AuroInput extends BaseInput {
13375
13368
  @click="${this.handleClickShowPassword}"
13376
13369
  ?onDark="${this.onDark}"
13377
13370
  class="notificationBtn passwordBtn"
13378
- aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
13379
13371
  shape="circle"
13380
13372
  size="sm"
13381
13373
  variant="ghost">
13374
+ <span>
13375
+ ${this.showPassword ? html`<slot name="ariaLabel.password.hide">Hide Password</slot>`
13376
+ : html`<slot name="ariaLabel.password.show">Show Password</slot>`}
13377
+ </span>
13382
13378
  <${this.iconTag}
13383
13379
  ?customColor="${this.onDark}"
13380
+ aria-hidden="true"
13384
13381
  ?hidden=${!this.showPassword}
13385
13382
  category="interface"
13386
13383
  name="hide-password-stroke">
13387
13384
  </${this.iconTag}>
13388
13385
  <${this.iconTag}
13389
13386
  ?customColor="${this.onDark}"
13387
+ aria-hidden="true"
13390
13388
  ?hidden=${this.showPassword}
13391
13389
  category="interface"
13392
13390
  name="view-password-stroke">
@@ -15508,8 +15506,9 @@ class AuroBibtemplate extends LitElement {
15508
15506
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
15509
15507
  <slot name="header"></slot>
15510
15508
  </${this.headerTag}>
15511
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15512
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
15509
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15510
+ <span><slot name="ariaLabel.close">Close</slot></span>
15511
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
15513
15512
  </${this.buttonTag}>
15514
15513
  </div>
15515
15514
  <span class="subheader">
@@ -15845,6 +15844,8 @@ class AuroHelpText extends LitElement {
15845
15844
  /**
15846
15845
  * @slot - Default slot for the menu content.
15847
15846
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
15847
+ * @slot ariaLabel.input.clear - Sets aria-label on clear button
15848
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
15848
15849
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
15849
15850
  * @slot label - Defines the content of the label.
15850
15851
  * @slot helpText - Defines the content of the helpText.
@@ -16664,9 +16665,7 @@ class AuroCombobox extends AuroElement {
16664
16665
  if (this.dropdown.isBibFullscreen) {
16665
16666
 
16666
16667
  // when focus is on the input, move focus back to close button with Tab key
16667
- if (document.activeElement.shadowRoot.activeElement === this.inputInBib &&
16668
- this.inputInBib.shadowRoot.activeElement.tagName !== 'INPUT' &&
16669
- !evt.shiftKey) {
16668
+ if (document.activeElement.shadowRoot.activeElement === this.inputInBib) {
16670
16669
  evt.preventDefault();
16671
16670
  this.dropdown.focus();
16672
16671
  }
@@ -16845,13 +16844,13 @@ class AuroCombobox extends AuroElement {
16845
16844
 
16846
16845
  this.handleMenuOptions();
16847
16846
  break;
16847
+
16848
+ // Programmatically inject as the slot cannot be carried over to bibtemplate.
16849
+ // It's because the bib is/will be separated from dropdown to body.
16848
16850
  case 'label':
16849
- // Programmatically inject as the slot cannot be carried over to bibtemplate.
16850
- // It's because the bib is/will be separated from dropdown to body.
16851
- this.transportAssignedNodes(event.target, this.inputInBib, "label");
16852
- break;
16851
+ case 'ariaLabel.input.clear':
16853
16852
  case 'optionalLabel':
16854
- this.transportAssignedNodes(event.target, this.inputInBib, "optionalLabel");
16853
+ this.transportAssignedNodes(event.target, this.inputInBib, event.target.name);
16855
16854
  break;
16856
16855
  case 'bib.fullscreen.headline':
16857
16856
  this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
@@ -16922,6 +16921,7 @@ class AuroCombobox extends AuroElement {
16922
16921
  shape="${this.shape}"
16923
16922
  size="${this.size}"
16924
16923
  slot="trigger">
16924
+ <slot name="ariaLabel.input.clear" slot="ariaLabel.clear" @slotchange="${this.handleSlotChange}"></slot>
16925
16925
  <slot name="label" slot="label" @slotchange="${this.handleSlotChange}"></slot>
16926
16926
  <slot name="optionalLabel" slot="optionalLabel" @slotchange="${this.handleSlotChange}"> (optional)</slot>
16927
16927
  <slot name="displayValue" slot="displayValue"></slot>
@@ -16929,6 +16929,7 @@ class AuroCombobox extends AuroElement {
16929
16929
 
16930
16930
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
16931
16931
  <slot name="bib.fullscreen.headline" slot="header"></slot>
16932
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
16932
16933
  <slot></slot>
16933
16934
  <${this.inputTag}
16934
16935
  id="inputInBib"
@@ -2812,12 +2812,6 @@ class AuroFloatingUI {
2812
2812
  }
2813
2813
 
2814
2814
  setupHideHandlers() {
2815
- this.preventFocusLoseOnBibClick = (event) => {
2816
- event.preventDefault();
2817
- event.stopPropagation();
2818
- };
2819
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
2820
-
2821
2815
  // Define handlers & store references
2822
2816
  this.focusHandler = () => this.handleFocusLoss();
2823
2817
 
@@ -2867,11 +2861,6 @@ class AuroFloatingUI {
2867
2861
  cleanupHideHandlers() {
2868
2862
  // Remove event listeners if they exist
2869
2863
 
2870
- if (this.preventFocusLoseOnBibClick) {
2871
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
2872
- delete this.preventFocusLoseOnBibClick;
2873
- }
2874
-
2875
2864
  if (this.focusHandler) {
2876
2865
  document.removeEventListener('focusin', this.focusHandler);
2877
2866
  this.focusHandler = null;
@@ -4371,6 +4360,7 @@ let AuroElement$4 = class AuroElement extends LitElement {
4371
4360
  * @slot trigger - Defines the content of the trigger.
4372
4361
  * @csspart trigger - The trigger content container.
4373
4362
  * @csspart chevron - The collapsed/expanded state icon container.
4363
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
4374
4364
  * @csspart helpText - The helpText content container.
4375
4365
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
4376
4366
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -10207,6 +10197,9 @@ let AuroElement$2$1 = class AuroElement extends LitElement {
10207
10197
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
10208
10198
  * @attr id
10209
10199
  *
10200
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
10201
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
10202
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
10210
10203
  * @slot helpText - Sets the help text displayed below the input.
10211
10204
  * @slot label - Sets the label text for the input.
10212
10205
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -10634,8 +10627,7 @@ class BaseInput extends AuroElement$2$1 {
10634
10627
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
10635
10628
  */
10636
10629
  value: {
10637
- type: String,
10638
- reflect: true
10630
+ type: String
10639
10631
  },
10640
10632
 
10641
10633
  /**
@@ -13347,12 +13339,13 @@ class AuroInput extends BaseInput {
13347
13339
  <${this.buttonTag}
13348
13340
  @click="${this.handleClickClear}"
13349
13341
  ?onDark="${this.onDark}"
13350
- aria-label="${i18n(this.lang, 'clearInput')}"
13351
13342
  class="notificationBtn clearBtn"
13352
13343
  shape="circle"
13353
13344
  size="sm"
13354
13345
  variant="ghost">
13346
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
13355
13347
  <${this.iconTag}
13348
+ aria-hidden="true"
13356
13349
  ?customColor="${this.onDark}"
13357
13350
  category="interface"
13358
13351
  name="x-lg"
@@ -13375,18 +13368,23 @@ class AuroInput extends BaseInput {
13375
13368
  @click="${this.handleClickShowPassword}"
13376
13369
  ?onDark="${this.onDark}"
13377
13370
  class="notificationBtn passwordBtn"
13378
- aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
13379
13371
  shape="circle"
13380
13372
  size="sm"
13381
13373
  variant="ghost">
13374
+ <span>
13375
+ ${this.showPassword ? html`<slot name="ariaLabel.password.hide">Hide Password</slot>`
13376
+ : html`<slot name="ariaLabel.password.show">Show Password</slot>`}
13377
+ </span>
13382
13378
  <${this.iconTag}
13383
13379
  ?customColor="${this.onDark}"
13380
+ aria-hidden="true"
13384
13381
  ?hidden=${!this.showPassword}
13385
13382
  category="interface"
13386
13383
  name="hide-password-stroke">
13387
13384
  </${this.iconTag}>
13388
13385
  <${this.iconTag}
13389
13386
  ?customColor="${this.onDark}"
13387
+ aria-hidden="true"
13390
13388
  ?hidden=${this.showPassword}
13391
13389
  category="interface"
13392
13390
  name="view-password-stroke">
@@ -15508,8 +15506,9 @@ class AuroBibtemplate extends LitElement {
15508
15506
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
15509
15507
  <slot name="header"></slot>
15510
15508
  </${this.headerTag}>
15511
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15512
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
15509
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
15510
+ <span><slot name="ariaLabel.close">Close</slot></span>
15511
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
15513
15512
  </${this.buttonTag}>
15514
15513
  </div>
15515
15514
  <span class="subheader">
@@ -15845,6 +15844,8 @@ class AuroHelpText extends LitElement {
15845
15844
  /**
15846
15845
  * @slot - Default slot for the menu content.
15847
15846
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
15847
+ * @slot ariaLabel.input.clear - Sets aria-label on clear button
15848
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
15848
15849
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options
15849
15850
  * @slot label - Defines the content of the label.
15850
15851
  * @slot helpText - Defines the content of the helpText.
@@ -16664,9 +16665,7 @@ class AuroCombobox extends AuroElement {
16664
16665
  if (this.dropdown.isBibFullscreen) {
16665
16666
 
16666
16667
  // when focus is on the input, move focus back to close button with Tab key
16667
- if (document.activeElement.shadowRoot.activeElement === this.inputInBib &&
16668
- this.inputInBib.shadowRoot.activeElement.tagName !== 'INPUT' &&
16669
- !evt.shiftKey) {
16668
+ if (document.activeElement.shadowRoot.activeElement === this.inputInBib) {
16670
16669
  evt.preventDefault();
16671
16670
  this.dropdown.focus();
16672
16671
  }
@@ -16845,13 +16844,13 @@ class AuroCombobox extends AuroElement {
16845
16844
 
16846
16845
  this.handleMenuOptions();
16847
16846
  break;
16847
+
16848
+ // Programmatically inject as the slot cannot be carried over to bibtemplate.
16849
+ // It's because the bib is/will be separated from dropdown to body.
16848
16850
  case 'label':
16849
- // Programmatically inject as the slot cannot be carried over to bibtemplate.
16850
- // It's because the bib is/will be separated from dropdown to body.
16851
- this.transportAssignedNodes(event.target, this.inputInBib, "label");
16852
- break;
16851
+ case 'ariaLabel.input.clear':
16853
16852
  case 'optionalLabel':
16854
- this.transportAssignedNodes(event.target, this.inputInBib, "optionalLabel");
16853
+ this.transportAssignedNodes(event.target, this.inputInBib, event.target.name);
16855
16854
  break;
16856
16855
  case 'bib.fullscreen.headline':
16857
16856
  this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
@@ -16922,6 +16921,7 @@ class AuroCombobox extends AuroElement {
16922
16921
  shape="${this.shape}"
16923
16922
  size="${this.size}"
16924
16923
  slot="trigger">
16924
+ <slot name="ariaLabel.input.clear" slot="ariaLabel.clear" @slotchange="${this.handleSlotChange}"></slot>
16925
16925
  <slot name="label" slot="label" @slotchange="${this.handleSlotChange}"></slot>
16926
16926
  <slot name="optionalLabel" slot="optionalLabel" @slotchange="${this.handleSlotChange}"> (optional)</slot>
16927
16927
  <slot name="displayValue" slot="displayValue"></slot>
@@ -16929,6 +16929,7 @@ class AuroCombobox extends AuroElement {
16929
16929
 
16930
16930
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
16931
16931
  <slot name="bib.fullscreen.headline" slot="header"></slot>
16932
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
16932
16933
  <slot></slot>
16933
16934
  <${this.inputTag}
16934
16935
  id="inputInBib"
@@ -77,6 +77,7 @@
77
77
 
78
78
  | Name | Description |
79
79
  |---------------------------|--------------------------------------------------|
80
+ | `ariaLabel.bib.close` | Sets aria-label on close button in fullscreen bib |
80
81
  | `bib.fullscreen.footer` | Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true. |
81
82
  | `bib.fullscreen.headline` | Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required. |
82
83
  | [default](#default) | Slot for counter elements. |
@@ -296,6 +297,7 @@ counter.addEventListener('input', (event) => {
296
297
  <!-- The below content is automatically added from ./../apiExamples/dropdown-value-text.html -->
297
298
  <div style="max-width: 350px;">
298
299
  <auro-counter-group isDropdown>
300
+ <span slot="ariaLabel.bib.close">Close Popup</span>
299
301
  <span slot="bib.fullscreen.headline">Passengers</span>
300
302
  <div slot="valueText">Custom value text</div>
301
303
  <div slot="label"></div>
@@ -323,6 +325,7 @@ counter.addEventListener('input', (event) => {
323
325
  ```html
324
326
  <div style="max-width: 350px;">
325
327
  <auro-counter-group isDropdown>
328
+ <span slot="ariaLabel.bib.close">Close Popup</span>
326
329
  <span slot="bib.fullscreen.headline">Passengers</span>
327
330
  <div slot="valueText">Custom value text</div>
328
331
  <div slot="label"></div>
@@ -391,6 +394,7 @@ A counter dropdown with counters in an errored state will display the errors for
391
394
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-basic.html) -->
392
395
  <!-- The below content is automatically added from ./../apiExamples/dropdown-error-basic.html -->
393
396
  <auro-counter-group isDropdown>
397
+ <span slot="ariaLabel.bib.close">Close Popup</span>
394
398
  <div slot="bib.fullscreen.headline">Passengers</div>
395
399
  <div slot="label">Passengers</div>
396
400
  <auro-counter error="Cannot have less than 1 adult passenger">
@@ -411,6 +415,7 @@ A counter dropdown with counters in an errored state will display the errors for
411
415
 
412
416
  ```html
413
417
  <auro-counter-group isDropdown>
418
+ <span slot="ariaLabel.bib.close">Close Popup</span>
414
419
  <div slot="bib.fullscreen.headline">Passengers</div>
415
420
  <div slot="label">Passengers</div>
416
421
  <auro-counter error="Cannot have less than 1 adult passenger">
@@ -434,6 +439,7 @@ The error message for a dropdown counter with errored counters can also be overr
434
439
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-custom.html) -->
435
440
  <!-- The below content is automatically added from ./../apiExamples/dropdown-error-custom.html -->
436
441
  <auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
442
+ <span slot="ariaLabel.bib.close">Close Popup</span>
437
443
  <div slot="bib.fullscreen.headline">Passengers</div>
438
444
  <div slot="label">Passengers</div>
439
445
  <auro-counter error="Cannot have less than 1 adult passenger">
@@ -454,6 +460,7 @@ The error message for a dropdown counter with errored counters can also be overr
454
460
 
455
461
  ```html
456
462
  <auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
463
+ <span slot="ariaLabel.bib.close">Close Popup</span>
457
464
  <div slot="bib.fullscreen.headline">Passengers</div>
458
465
  <div slot="label">Passengers</div>
459
466
  <auro-counter error="Cannot have less than 1 adult passenger">
@@ -664,6 +671,7 @@ You can also set `bib.fullscreen.footer` slot to add any additional options on f
664
671
  <!-- The below content is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
665
672
  <div style="max-width: 350px;">
666
673
  <auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
674
+ <span slot="ariaLabel.bib.close">Close Popup</span>
667
675
  <span slot="label">Passengers</span>
668
676
  <span slot="bib.fullscreen.headline">Passengers</span>
669
677
  <div slot="helpText">This is help text</div>
@@ -695,6 +703,7 @@ You can also set `bib.fullscreen.footer` slot to add any additional options on f
695
703
  ```html
696
704
  <div style="max-width: 350px;">
697
705
  <auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
706
+ <span slot="ariaLabel.bib.close">Close Popup</span>
698
707
  <span slot="label">Passengers</span>
699
708
  <span slot="bib.fullscreen.headline">Passengers</span>
700
709
  <div slot="helpText">This is help text</div>
@@ -5034,12 +5034,6 @@ class AuroFloatingUI {
5034
5034
  }
5035
5035
 
5036
5036
  setupHideHandlers() {
5037
- this.preventFocusLoseOnBibClick = (event) => {
5038
- event.preventDefault();
5039
- event.stopPropagation();
5040
- };
5041
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
5042
-
5043
5037
  // Define handlers & store references
5044
5038
  this.focusHandler = () => this.handleFocusLoss();
5045
5039
 
@@ -5089,11 +5083,6 @@ class AuroFloatingUI {
5089
5083
  cleanupHideHandlers() {
5090
5084
  // Remove event listeners if they exist
5091
5085
 
5092
- if (this.preventFocusLoseOnBibClick) {
5093
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
5094
- delete this.preventFocusLoseOnBibClick;
5095
- }
5096
-
5097
5086
  if (this.focusHandler) {
5098
5087
  document.removeEventListener('focusin', this.focusHandler);
5099
5088
  this.focusHandler = null;
@@ -6593,6 +6582,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
6593
6582
  * @slot trigger - Defines the content of the trigger.
6594
6583
  * @csspart trigger - The trigger content container.
6595
6584
  * @csspart chevron - The collapsed/expanded state icon container.
6585
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
6596
6586
  * @csspart helpText - The helpText content container.
6597
6587
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
6598
6588
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -9389,8 +9379,9 @@ class AuroBibtemplate extends i$2 {
9389
9379
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
9390
9380
  <slot name="header"></slot>
9391
9381
  </${this.headerTag}>
9392
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
9393
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
9382
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
9383
+ <span><slot name="ariaLabel.close">Close</slot></span>
9384
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
9394
9385
  </${this.buttonTag}>
9395
9386
  </div>
9396
9387
  <span class="subheader">
@@ -9582,6 +9573,7 @@ class AuroElement extends i$2 {
9582
9573
  * @element auro-counter-group
9583
9574
  * @extends LitElement
9584
9575
  * @slot default - Slot for counter elements.
9576
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
9585
9577
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
9586
9578
  * @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
9587
9579
  * @slot label - Dropdown label content. Only used when `isDropdown` is true.
@@ -10269,6 +10261,7 @@ class AuroCounterGroup extends AuroElement {
10269
10261
  renderBibTemplate() {
10270
10262
  return u`
10271
10263
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
10264
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
10272
10265
  ${this.renderCounterGroup(true)}
10273
10266
  </${this.bibtemplateTag}>
10274
10267
  `;
@@ -260,6 +260,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
260
260
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-basic.html) -->
261
261
  <!-- The below content is automatically added from ./../apiExamples/dropdown-basic.html -->
262
262
  <auro-counter-group isDropdown>
263
+ <span slot="ariaLabel.bib.close">Close Popup</span>
263
264
  <div slot="bib.fullscreen.headline">Passengers</div>
264
265
  <div slot="label">Passengers</div>
265
266
  <auro-counter>
@@ -295,6 +296,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
295
296
  <!-- The below content is automatically added from ./../apiExamples/dropdown-snowflake.html -->
296
297
  <!-- Example of counter-group properties -->
297
298
  <auro-counter-group max="10" min="2" isDropdown layout="snowflake">
299
+ <span slot="ariaLabel.bib.close">Close Popup</span>
298
300
  <div slot="bib.fullscreen.headline">Group fullscreen label</div>
299
301
  <auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
300
302
  <div slot="label">Snowflake Dropdown Group</div>
@@ -313,6 +315,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
313
315
  <!-- The below content is automatically added from ./../apiExamples/onDark-dropdown-snowflake.html -->
314
316
  <!-- Example of counter-group properties -->
315
317
  <auro-counter-group max="10" min="2" isDropdown layout="snowflake" ondark>
318
+ <span slot="ariaLabel.bib.close">Close Popup</span>
316
319
  <div slot="bib.fullscreen.headline">Group fullscreen label</div>
317
320
  <auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
318
321
  <div slot="label">Snowflake Dropdown Group</div>
@@ -332,6 +335,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
332
335
  <!-- The below code snippet is automatically added from ./../apiExamples/dropdown-basic.html -->
333
336
  ```html
334
337
  <auro-counter-group isDropdown>
338
+ <span slot="ariaLabel.bib.close">Close Popup</span>
335
339
  <div slot="bib.fullscreen.headline">Passengers</div>
336
340
  <div slot="label">Passengers</div>
337
341
  <auro-counter>
@@ -364,6 +368,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
364
368
  <!-- The below content is automatically added from ./../apiExamples/dropdown-snowflake.html -->
365
369
  <!-- Example of counter-group properties -->
366
370
  <auro-counter-group max="10" min="2" isDropdown layout="snowflake">
371
+ <span slot="ariaLabel.bib.close">Close Popup</span>
367
372
  <div slot="bib.fullscreen.headline">Group fullscreen label</div>
368
373
  <auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
369
374
  <div slot="label">Snowflake Dropdown Group</div>
@@ -380,6 +385,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
380
385
  <!-- The below content is automatically added from ./../apiExamples/onDark-dropdown-snowflake.html -->
381
386
  <!-- Example of counter-group properties -->
382
387
  <auro-counter-group max="10" min="2" isDropdown layout="snowflake" ondark>
388
+ <span slot="ariaLabel.bib.close">Close Popup</span>
383
389
  <div slot="bib.fullscreen.headline">Group fullscreen label</div>
384
390
  <auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
385
391
  <div slot="label">Snowflake Dropdown Group</div>
@@ -5034,12 +5034,6 @@ class AuroFloatingUI {
5034
5034
  }
5035
5035
 
5036
5036
  setupHideHandlers() {
5037
- this.preventFocusLoseOnBibClick = (event) => {
5038
- event.preventDefault();
5039
- event.stopPropagation();
5040
- };
5041
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
5042
-
5043
5037
  // Define handlers & store references
5044
5038
  this.focusHandler = () => this.handleFocusLoss();
5045
5039
 
@@ -5089,11 +5083,6 @@ class AuroFloatingUI {
5089
5083
  cleanupHideHandlers() {
5090
5084
  // Remove event listeners if they exist
5091
5085
 
5092
- if (this.preventFocusLoseOnBibClick) {
5093
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
5094
- delete this.preventFocusLoseOnBibClick;
5095
- }
5096
-
5097
5086
  if (this.focusHandler) {
5098
5087
  document.removeEventListener('focusin', this.focusHandler);
5099
5088
  this.focusHandler = null;
@@ -6593,6 +6582,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
6593
6582
  * @slot trigger - Defines the content of the trigger.
6594
6583
  * @csspart trigger - The trigger content container.
6595
6584
  * @csspart chevron - The collapsed/expanded state icon container.
6585
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
6596
6586
  * @csspart helpText - The helpText content container.
6597
6587
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
6598
6588
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -9389,8 +9379,9 @@ class AuroBibtemplate extends i$2 {
9389
9379
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
9390
9380
  <slot name="header"></slot>
9391
9381
  </${this.headerTag}>
9392
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
9393
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
9382
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
9383
+ <span><slot name="ariaLabel.close">Close</slot></span>
9384
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
9394
9385
  </${this.buttonTag}>
9395
9386
  </div>
9396
9387
  <span class="subheader">
@@ -9582,6 +9573,7 @@ class AuroElement extends i$2 {
9582
9573
  * @element auro-counter-group
9583
9574
  * @extends LitElement
9584
9575
  * @slot default - Slot for counter elements.
9576
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
9585
9577
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
9586
9578
  * @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
9587
9579
  * @slot label - Dropdown label content. Only used when `isDropdown` is true.
@@ -10269,6 +10261,7 @@ class AuroCounterGroup extends AuroElement {
10269
10261
  renderBibTemplate() {
10270
10262
  return u`
10271
10263
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
10264
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
10272
10265
  ${this.renderCounterGroup(true)}
10273
10266
  </${this.bibtemplateTag}>
10274
10267
  `;
@@ -7,6 +7,7 @@
7
7
  * @element auro-counter-group
8
8
  * @extends LitElement
9
9
  * @slot default - Slot for counter elements.
10
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
10
11
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
11
12
  * @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
12
13
  * @slot label - Dropdown label content. Only used when `isDropdown` is true.
@@ -4987,12 +4987,6 @@ class AuroFloatingUI {
4987
4987
  }
4988
4988
 
4989
4989
  setupHideHandlers() {
4990
- this.preventFocusLoseOnBibClick = (event) => {
4991
- event.preventDefault();
4992
- event.stopPropagation();
4993
- };
4994
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
4995
-
4996
4990
  // Define handlers & store references
4997
4991
  this.focusHandler = () => this.handleFocusLoss();
4998
4992
 
@@ -5042,11 +5036,6 @@ class AuroFloatingUI {
5042
5036
  cleanupHideHandlers() {
5043
5037
  // Remove event listeners if they exist
5044
5038
 
5045
- if (this.preventFocusLoseOnBibClick) {
5046
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
5047
- delete this.preventFocusLoseOnBibClick;
5048
- }
5049
-
5050
5039
  if (this.focusHandler) {
5051
5040
  document.removeEventListener('focusin', this.focusHandler);
5052
5041
  this.focusHandler = null;
@@ -6546,6 +6535,7 @@ let AuroElement$3 = class AuroElement extends LitElement {
6546
6535
  * @slot trigger - Defines the content of the trigger.
6547
6536
  * @csspart trigger - The trigger content container.
6548
6537
  * @csspart chevron - The collapsed/expanded state icon container.
6538
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
6549
6539
  * @csspart helpText - The helpText content container.
6550
6540
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
6551
6541
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -9342,8 +9332,9 @@ class AuroBibtemplate extends LitElement {
9342
9332
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
9343
9333
  <slot name="header"></slot>
9344
9334
  </${this.headerTag}>
9345
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
9346
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
9335
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
9336
+ <span><slot name="ariaLabel.close">Close</slot></span>
9337
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
9347
9338
  </${this.buttonTag}>
9348
9339
  </div>
9349
9340
  <span class="subheader">
@@ -9535,6 +9526,7 @@ class AuroElement extends LitElement {
9535
9526
  * @element auro-counter-group
9536
9527
  * @extends LitElement
9537
9528
  * @slot default - Slot for counter elements.
9529
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
9538
9530
  * @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
9539
9531
  * @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
9540
9532
  * @slot label - Dropdown label content. Only used when `isDropdown` is true.
@@ -10222,6 +10214,7 @@ class AuroCounterGroup extends AuroElement {
10222
10214
  renderBibTemplate() {
10223
10215
  return html$1`
10224
10216
  <${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
10217
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close">Close</slot>
10225
10218
  ${this.renderCounterGroup(true)}
10226
10219
  </${this.bibtemplateTag}>
10227
10220
  `;