@aurodesignsystem-dev/auro-formkit 0.0.0-pr835.0 → 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 (55) 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 +26 -25
  6. package/components/combobox/demo/index.md +12 -0
  7. package/components/combobox/demo/index.min.js +26 -25
  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/radio/demo/api.min.js +1 -1
  43. package/components/radio/demo/index.min.js +1 -1
  44. package/components/radio/dist/index.js +1 -1
  45. package/components/radio/dist/registered.js +1 -1
  46. package/components/select/README.md +1 -0
  47. package/components/select/demo/api.md +9 -3
  48. package/components/select/demo/api.min.js +12 -13
  49. package/components/select/demo/index.md +8 -0
  50. package/components/select/demo/index.min.js +12 -13
  51. package/components/select/demo/readme.md +1 -0
  52. package/components/select/dist/auro-select.d.ts +5 -0
  53. package/components/select/dist/index.js +12 -13
  54. package/components/select/dist/registered.js +12 -13
  55. package/package.json +2 -2
@@ -13073,8 +13073,9 @@ class AuroBibtemplate extends i {
13073
13073
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
13074
13074
  <slot name="header"></slot>
13075
13075
  </${this.headerTag}>
13076
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
13077
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
13076
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
13077
+ <span><slot name="ariaLabel.close">Close</slot></span>
13078
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
13078
13079
  </${this.buttonTag}>
13079
13080
  </div>
13080
13081
  <span class="subheader">
@@ -14507,6 +14508,7 @@ class AuroCalendar extends RangeDatepicker {
14507
14508
  ?large="${this.largeFullscreenHeadline}"
14508
14509
  ?isFullscreen="${this.isFullscreen}"
14509
14510
  @close-click="${this.utilCal.requestDismiss}">
14511
+ <span slot="ariaLabel.close">${this.slots["ariaLabel.bib.close"]}</span>
14510
14512
 
14511
14513
  <span slot="header">${this.slots["bib.fullscreen.headline"]}</span>
14512
14514
 
@@ -16457,12 +16459,6 @@ class AuroFloatingUI {
16457
16459
  }
16458
16460
 
16459
16461
  setupHideHandlers() {
16460
- this.preventFocusLoseOnBibClick = (event) => {
16461
- event.preventDefault();
16462
- event.stopPropagation();
16463
- };
16464
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
16465
-
16466
16462
  // Define handlers & store references
16467
16463
  this.focusHandler = () => this.handleFocusLoss();
16468
16464
 
@@ -16512,11 +16508,6 @@ class AuroFloatingUI {
16512
16508
  cleanupHideHandlers() {
16513
16509
  // Remove event listeners if they exist
16514
16510
 
16515
- if (this.preventFocusLoseOnBibClick) {
16516
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
16517
- delete this.preventFocusLoseOnBibClick;
16518
- }
16519
-
16520
16511
  if (this.focusHandler) {
16521
16512
  document.removeEventListener('focusin', this.focusHandler);
16522
16513
  this.focusHandler = null;
@@ -18016,6 +18007,7 @@ let AuroElement$4 = class AuroElement extends i {
18016
18007
  * @slot trigger - Defines the content of the trigger.
18017
18008
  * @csspart trigger - The trigger content container.
18018
18009
  * @csspart chevron - The collapsed/expanded state icon container.
18010
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
18019
18011
  * @csspart helpText - The helpText content container.
18020
18012
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
18021
18013
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -23865,6 +23857,9 @@ let AuroElement$2 = class AuroElement extends i {
23865
23857
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
23866
23858
  * @attr id
23867
23859
  *
23860
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
23861
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
23862
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
23868
23863
  * @slot helpText - Sets the help text displayed below the input.
23869
23864
  * @slot label - Sets the label text for the input.
23870
23865
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -24292,8 +24287,7 @@ class BaseInput extends AuroElement$2 {
24292
24287
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
24293
24288
  */
24294
24289
  value: {
24295
- type: String,
24296
- reflect: true
24290
+ type: String
24297
24291
  },
24298
24292
 
24299
24293
  /**
@@ -27005,12 +26999,13 @@ class AuroInput extends BaseInput {
27005
26999
  <${this.buttonTag}
27006
27000
  @click="${this.handleClickClear}"
27007
27001
  ?onDark="${this.onDark}"
27008
- aria-label="${i18n$1(this.lang, 'clearInput')}"
27009
27002
  class="notificationBtn clearBtn"
27010
27003
  shape="circle"
27011
27004
  size="sm"
27012
27005
  variant="ghost">
27006
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
27013
27007
  <${this.iconTag}
27008
+ aria-hidden="true"
27014
27009
  ?customColor="${this.onDark}"
27015
27010
  category="interface"
27016
27011
  name="x-lg"
@@ -27033,18 +27028,23 @@ class AuroInput extends BaseInput {
27033
27028
  @click="${this.handleClickShowPassword}"
27034
27029
  ?onDark="${this.onDark}"
27035
27030
  class="notificationBtn passwordBtn"
27036
- aria-label="${this.showPassword ? i18n$1(this.lang, "hidePassword") : i18n$1(this.lang, "showPassword")}"
27037
27031
  shape="circle"
27038
27032
  size="sm"
27039
27033
  variant="ghost">
27034
+ <span>
27035
+ ${this.showPassword ? u$3`<slot name="ariaLabel.password.hide">Hide Password</slot>`
27036
+ : u$3`<slot name="ariaLabel.password.show">Show Password</slot>`}
27037
+ </span>
27040
27038
  <${this.iconTag}
27041
27039
  ?customColor="${this.onDark}"
27040
+ aria-hidden="true"
27042
27041
  ?hidden=${!this.showPassword}
27043
27042
  category="interface"
27044
27043
  name="hide-password-stroke">
27045
27044
  </${this.iconTag}>
27046
27045
  <${this.iconTag}
27047
27046
  ?customColor="${this.onDark}"
27047
+ aria-hidden="true"
27048
27048
  ?hidden=${this.showPassword}
27049
27049
  category="interface"
27050
27050
  name="view-password-stroke">
@@ -28068,6 +28068,7 @@ var iconVersion = '8.0.1';
28068
28068
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
28069
28069
  /**
28070
28070
  * @slot helpText - Defines the content of the helpText.
28071
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
28071
28072
  * @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
28072
28073
  * @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
28073
28074
  * @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
@@ -29646,6 +29647,7 @@ class AuroDatePicker extends AuroElement$1 {
29646
29647
  .monthNames="${this.monthNames}"
29647
29648
  part="calendar"
29648
29649
  >
29650
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close" @slotchange="${this.handleSlotToSlot}">Close</slot>
29649
29651
  <slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
29650
29652
  <slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
29651
29653
  <span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
@@ -24,6 +24,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
24
24
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/ondark.html) -->
25
25
  <!-- The below content is automatically added from ./../apiExamples/snowflake/ondark.html -->
26
26
  <auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
27
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
27
28
  <span slot="label">Date</span>
28
29
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
29
30
  <span slot="fromLabel">Choose a date</span>
@@ -35,6 +36,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
35
36
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/ondark.html) -->
36
37
  <!-- The below content is automatically added from ./../apiExamples/snowflake/ondark.html -->
37
38
  <auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
39
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
38
40
  <span slot="label">Date</span>
39
41
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
40
42
  <span slot="fromLabel">Choose a date</span>
@@ -49,6 +51,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
49
51
 
50
52
  ```html
51
53
  <auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
54
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
52
55
  <span slot="label">Date</span>
53
56
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
54
57
  <span slot="fromLabel">Choose a date</span>
@@ -63,6 +66,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
63
66
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/ondark-range.html) -->
64
67
  <!-- The below content is automatically added from ./../apiExamples/snowflake/ondark-range.html -->
65
68
  <auro-datepicker range layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
69
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
66
70
  <span slot="label">Dates</span>
67
71
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
68
72
  <span slot="fromLabel">Choose a date</span>
@@ -74,6 +78,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
74
78
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/ondark-range.html) -->
75
79
  <!-- The below content is automatically added from ./../apiExamples/snowflake/ondark-range.html -->
76
80
  <auro-datepicker range layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
81
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
77
82
  <span slot="label">Dates</span>
78
83
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
79
84
  <span slot="fromLabel">Choose a date</span>
@@ -88,6 +93,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
88
93
 
89
94
  ```html
90
95
  <auro-datepicker range layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
96
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
91
97
  <span slot="label">Dates</span>
92
98
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
93
99
  <span slot="fromLabel">Choose a date</span>
@@ -103,6 +109,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
103
109
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
104
110
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
105
111
  <auro-datepicker required="">
112
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
106
113
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
107
114
  <span slot="fromLabel">Choose a date</span>
108
115
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -113,6 +120,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
113
120
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
114
121
  <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
115
122
  <auro-datepicker onDark>
123
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
116
124
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
117
125
  <span slot="fromLabel">Choose a date</span>
118
126
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -126,6 +134,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
126
134
 
127
135
  ```html
128
136
  <auro-datepicker required="">
137
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
129
138
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
130
139
  <span slot="fromLabel">Choose a date</span>
131
140
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -135,6 +144,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
135
144
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
136
145
  <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
137
146
  <auro-datepicker onDark>
147
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
138
148
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
139
149
  <span slot="fromLabel">Choose a date</span>
140
150
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -148,6 +158,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
148
158
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
149
159
  <!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
150
160
  <auro-datepicker range minDate="07/08/2025">
161
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
151
162
  <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
152
163
  <span slot="fromLabel">Departure</span>
153
164
  <span slot="toLabel">Return</span>
@@ -173,6 +184,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
173
184
 
174
185
  ```html
175
186
  <auro-datepicker range minDate="07/08/2025">
187
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
176
188
  <span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
177
189
  <span slot="fromLabel">Departure</span>
178
190
  <span slot="toLabel">Return</span>
@@ -12814,8 +12814,9 @@ class AuroBibtemplate extends i {
12814
12814
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
12815
12815
  <slot name="header"></slot>
12816
12816
  </${this.headerTag}>
12817
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
12818
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
12817
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
12818
+ <span><slot name="ariaLabel.close">Close</slot></span>
12819
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
12819
12820
  </${this.buttonTag}>
12820
12821
  </div>
12821
12822
  <span class="subheader">
@@ -14248,6 +14249,7 @@ class AuroCalendar extends RangeDatepicker {
14248
14249
  ?large="${this.largeFullscreenHeadline}"
14249
14250
  ?isFullscreen="${this.isFullscreen}"
14250
14251
  @close-click="${this.utilCal.requestDismiss}">
14252
+ <span slot="ariaLabel.close">${this.slots["ariaLabel.bib.close"]}</span>
14251
14253
 
14252
14254
  <span slot="header">${this.slots["bib.fullscreen.headline"]}</span>
14253
14255
 
@@ -16198,12 +16200,6 @@ class AuroFloatingUI {
16198
16200
  }
16199
16201
 
16200
16202
  setupHideHandlers() {
16201
- this.preventFocusLoseOnBibClick = (event) => {
16202
- event.preventDefault();
16203
- event.stopPropagation();
16204
- };
16205
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
16206
-
16207
16203
  // Define handlers & store references
16208
16204
  this.focusHandler = () => this.handleFocusLoss();
16209
16205
 
@@ -16253,11 +16249,6 @@ class AuroFloatingUI {
16253
16249
  cleanupHideHandlers() {
16254
16250
  // Remove event listeners if they exist
16255
16251
 
16256
- if (this.preventFocusLoseOnBibClick) {
16257
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
16258
- delete this.preventFocusLoseOnBibClick;
16259
- }
16260
-
16261
16252
  if (this.focusHandler) {
16262
16253
  document.removeEventListener('focusin', this.focusHandler);
16263
16254
  this.focusHandler = null;
@@ -17757,6 +17748,7 @@ let AuroElement$4 = class AuroElement extends i {
17757
17748
  * @slot trigger - Defines the content of the trigger.
17758
17749
  * @csspart trigger - The trigger content container.
17759
17750
  * @csspart chevron - The collapsed/expanded state icon container.
17751
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
17760
17752
  * @csspart helpText - The helpText content container.
17761
17753
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
17762
17754
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -23606,6 +23598,9 @@ let AuroElement$2 = class AuroElement extends i {
23606
23598
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
23607
23599
  * @attr id
23608
23600
  *
23601
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
23602
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
23603
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
23609
23604
  * @slot helpText - Sets the help text displayed below the input.
23610
23605
  * @slot label - Sets the label text for the input.
23611
23606
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -24033,8 +24028,7 @@ class BaseInput extends AuroElement$2 {
24033
24028
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
24034
24029
  */
24035
24030
  value: {
24036
- type: String,
24037
- reflect: true
24031
+ type: String
24038
24032
  },
24039
24033
 
24040
24034
  /**
@@ -26746,12 +26740,13 @@ class AuroInput extends BaseInput {
26746
26740
  <${this.buttonTag}
26747
26741
  @click="${this.handleClickClear}"
26748
26742
  ?onDark="${this.onDark}"
26749
- aria-label="${i18n$1(this.lang, 'clearInput')}"
26750
26743
  class="notificationBtn clearBtn"
26751
26744
  shape="circle"
26752
26745
  size="sm"
26753
26746
  variant="ghost">
26747
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
26754
26748
  <${this.iconTag}
26749
+ aria-hidden="true"
26755
26750
  ?customColor="${this.onDark}"
26756
26751
  category="interface"
26757
26752
  name="x-lg"
@@ -26774,18 +26769,23 @@ class AuroInput extends BaseInput {
26774
26769
  @click="${this.handleClickShowPassword}"
26775
26770
  ?onDark="${this.onDark}"
26776
26771
  class="notificationBtn passwordBtn"
26777
- aria-label="${this.showPassword ? i18n$1(this.lang, "hidePassword") : i18n$1(this.lang, "showPassword")}"
26778
26772
  shape="circle"
26779
26773
  size="sm"
26780
26774
  variant="ghost">
26775
+ <span>
26776
+ ${this.showPassword ? u$3`<slot name="ariaLabel.password.hide">Hide Password</slot>`
26777
+ : u$3`<slot name="ariaLabel.password.show">Show Password</slot>`}
26778
+ </span>
26781
26779
  <${this.iconTag}
26782
26780
  ?customColor="${this.onDark}"
26781
+ aria-hidden="true"
26783
26782
  ?hidden=${!this.showPassword}
26784
26783
  category="interface"
26785
26784
  name="hide-password-stroke">
26786
26785
  </${this.iconTag}>
26787
26786
  <${this.iconTag}
26788
26787
  ?customColor="${this.onDark}"
26788
+ aria-hidden="true"
26789
26789
  ?hidden=${this.showPassword}
26790
26790
  category="interface"
26791
26791
  name="view-password-stroke">
@@ -27809,6 +27809,7 @@ var iconVersion = '8.0.1';
27809
27809
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
27810
27810
  /**
27811
27811
  * @slot helpText - Defines the content of the helpText.
27812
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
27812
27813
  * @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
27813
27814
  * @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
27814
27815
  * @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
@@ -29387,6 +29388,7 @@ class AuroDatePicker extends AuroElement$1 {
29387
29388
  .monthNames="${this.monthNames}"
29388
29389
  part="calendar"
29389
29390
  >
29391
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close" @slotchange="${this.handleSlotToSlot}">Close</slot>
29390
29392
  <slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
29391
29393
  <slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
29392
29394
  <span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
@@ -84,6 +84,7 @@ This configuration enables proper module resolution for the component's TypeScri
84
84
 
85
85
  ```html
86
86
  <auro-datepicker required="">
87
+ <span slot="ariaLabel.bib.close">Close Calendar</span>
87
88
  <span slot="bib.fullscreen.headline">Datepicker Headline</span>
88
89
  <span slot="fromLabel">Choose a date</span>
89
90
  <span slot="bib.fullscreen.dateLabel">Choose a date</span>
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * @slot helpText - Defines the content of the helpText.
3
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
3
4
  * @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
4
5
  * @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
5
6
  * @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
@@ -12763,8 +12763,9 @@ class AuroBibtemplate extends LitElement {
12763
12763
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
12764
12764
  <slot name="header"></slot>
12765
12765
  </${this.headerTag}>
12766
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
12767
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
12766
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
12767
+ <span><slot name="ariaLabel.close">Close</slot></span>
12768
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
12768
12769
  </${this.buttonTag}>
12769
12770
  </div>
12770
12771
  <span class="subheader">
@@ -14197,6 +14198,7 @@ class AuroCalendar extends RangeDatepicker {
14197
14198
  ?large="${this.largeFullscreenHeadline}"
14198
14199
  ?isFullscreen="${this.isFullscreen}"
14199
14200
  @close-click="${this.utilCal.requestDismiss}">
14201
+ <span slot="ariaLabel.close">${this.slots["ariaLabel.bib.close"]}</span>
14200
14202
 
14201
14203
  <span slot="header">${this.slots["bib.fullscreen.headline"]}</span>
14202
14204
 
@@ -16147,12 +16149,6 @@ class AuroFloatingUI {
16147
16149
  }
16148
16150
 
16149
16151
  setupHideHandlers() {
16150
- this.preventFocusLoseOnBibClick = (event) => {
16151
- event.preventDefault();
16152
- event.stopPropagation();
16153
- };
16154
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
16155
-
16156
16152
  // Define handlers & store references
16157
16153
  this.focusHandler = () => this.handleFocusLoss();
16158
16154
 
@@ -16202,11 +16198,6 @@ class AuroFloatingUI {
16202
16198
  cleanupHideHandlers() {
16203
16199
  // Remove event listeners if they exist
16204
16200
 
16205
- if (this.preventFocusLoseOnBibClick) {
16206
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
16207
- delete this.preventFocusLoseOnBibClick;
16208
- }
16209
-
16210
16201
  if (this.focusHandler) {
16211
16202
  document.removeEventListener('focusin', this.focusHandler);
16212
16203
  this.focusHandler = null;
@@ -17706,6 +17697,7 @@ let AuroElement$4 = class AuroElement extends LitElement {
17706
17697
  * @slot trigger - Defines the content of the trigger.
17707
17698
  * @csspart trigger - The trigger content container.
17708
17699
  * @csspart chevron - The collapsed/expanded state icon container.
17700
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
17709
17701
  * @csspart helpText - The helpText content container.
17710
17702
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
17711
17703
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -23542,6 +23534,9 @@ let AuroElement$2 = class AuroElement extends LitElement {
23542
23534
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
23543
23535
  * @attr id
23544
23536
  *
23537
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
23538
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
23539
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
23545
23540
  * @slot helpText - Sets the help text displayed below the input.
23546
23541
  * @slot label - Sets the label text for the input.
23547
23542
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -23969,8 +23964,7 @@ class BaseInput extends AuroElement$2 {
23969
23964
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
23970
23965
  */
23971
23966
  value: {
23972
- type: String,
23973
- reflect: true
23967
+ type: String
23974
23968
  },
23975
23969
 
23976
23970
  /**
@@ -26682,12 +26676,13 @@ class AuroInput extends BaseInput {
26682
26676
  <${this.buttonTag}
26683
26677
  @click="${this.handleClickClear}"
26684
26678
  ?onDark="${this.onDark}"
26685
- aria-label="${i18n$1(this.lang, 'clearInput')}"
26686
26679
  class="notificationBtn clearBtn"
26687
26680
  shape="circle"
26688
26681
  size="sm"
26689
26682
  variant="ghost">
26683
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
26690
26684
  <${this.iconTag}
26685
+ aria-hidden="true"
26691
26686
  ?customColor="${this.onDark}"
26692
26687
  category="interface"
26693
26688
  name="x-lg"
@@ -26710,18 +26705,23 @@ class AuroInput extends BaseInput {
26710
26705
  @click="${this.handleClickShowPassword}"
26711
26706
  ?onDark="${this.onDark}"
26712
26707
  class="notificationBtn passwordBtn"
26713
- aria-label="${this.showPassword ? i18n$1(this.lang, "hidePassword") : i18n$1(this.lang, "showPassword")}"
26714
26708
  shape="circle"
26715
26709
  size="sm"
26716
26710
  variant="ghost">
26711
+ <span>
26712
+ ${this.showPassword ? html$1`<slot name="ariaLabel.password.hide">Hide Password</slot>`
26713
+ : html$1`<slot name="ariaLabel.password.show">Show Password</slot>`}
26714
+ </span>
26717
26715
  <${this.iconTag}
26718
26716
  ?customColor="${this.onDark}"
26717
+ aria-hidden="true"
26719
26718
  ?hidden=${!this.showPassword}
26720
26719
  category="interface"
26721
26720
  name="hide-password-stroke">
26722
26721
  </${this.iconTag}>
26723
26722
  <${this.iconTag}
26724
26723
  ?customColor="${this.onDark}"
26724
+ aria-hidden="true"
26725
26725
  ?hidden=${this.showPassword}
26726
26726
  category="interface"
26727
26727
  name="view-password-stroke">
@@ -27745,6 +27745,7 @@ var iconVersion = '8.0.1';
27745
27745
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
27746
27746
  /**
27747
27747
  * @slot helpText - Defines the content of the helpText.
27748
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
27748
27749
  * @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
27749
27750
  * @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
27750
27751
  * @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
@@ -29323,6 +29324,7 @@ class AuroDatePicker extends AuroElement$1 {
29323
29324
  .monthNames="${this.monthNames}"
29324
29325
  part="calendar"
29325
29326
  >
29327
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close" @slotchange="${this.handleSlotToSlot}">Close</slot>
29326
29328
  <slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
29327
29329
  <slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
29328
29330
  <span slot="bib.fullscreen.fromStr">${this.value || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
@@ -12763,8 +12763,9 @@ class AuroBibtemplate extends LitElement {
12763
12763
  <${this.headerTag} class="header" display="${this.large ? 'display' : '600'}" level="3" size="none" id="header" no-margin-block>
12764
12764
  <slot name="header"></slot>
12765
12765
  </${this.headerTag}>
12766
- <${this.buttonTag} id="closeButton" aria-label="Close" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
12767
- <${this.iconTag} category="interface" name="x-lg"></${this.iconTag}>
12766
+ <${this.buttonTag} id="closeButton" variant="ghost" shape="circle" size="sm" @click="${this.onCloseButtonClick}">
12767
+ <span><slot name="ariaLabel.close">Close</slot></span>
12768
+ <${this.iconTag} aria-hidden="true" category="interface" name="x-lg"></${this.iconTag}>
12768
12769
  </${this.buttonTag}>
12769
12770
  </div>
12770
12771
  <span class="subheader">
@@ -14197,6 +14198,7 @@ class AuroCalendar extends RangeDatepicker {
14197
14198
  ?large="${this.largeFullscreenHeadline}"
14198
14199
  ?isFullscreen="${this.isFullscreen}"
14199
14200
  @close-click="${this.utilCal.requestDismiss}">
14201
+ <span slot="ariaLabel.close">${this.slots["ariaLabel.bib.close"]}</span>
14200
14202
 
14201
14203
  <span slot="header">${this.slots["bib.fullscreen.headline"]}</span>
14202
14204
 
@@ -16147,12 +16149,6 @@ class AuroFloatingUI {
16147
16149
  }
16148
16150
 
16149
16151
  setupHideHandlers() {
16150
- this.preventFocusLoseOnBibClick = (event) => {
16151
- event.preventDefault();
16152
- event.stopPropagation();
16153
- };
16154
- this.element.bib.addEventListener('mousedown', this.preventFocusLoseOnBibClick);
16155
-
16156
16152
  // Define handlers & store references
16157
16153
  this.focusHandler = () => this.handleFocusLoss();
16158
16154
 
@@ -16202,11 +16198,6 @@ class AuroFloatingUI {
16202
16198
  cleanupHideHandlers() {
16203
16199
  // Remove event listeners if they exist
16204
16200
 
16205
- if (this.preventFocusLoseOnBibClick) {
16206
- this.element.bib.removeEventListener('mousedown', this.preventFocusLoseOnBibClick);
16207
- delete this.preventFocusLoseOnBibClick;
16208
- }
16209
-
16210
16201
  if (this.focusHandler) {
16211
16202
  document.removeEventListener('focusin', this.focusHandler);
16212
16203
  this.focusHandler = null;
@@ -17706,6 +17697,7 @@ let AuroElement$4 = class AuroElement extends LitElement {
17706
17697
  * @slot trigger - Defines the content of the trigger.
17707
17698
  * @csspart trigger - The trigger content container.
17708
17699
  * @csspart chevron - The collapsed/expanded state icon container.
17700
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
17709
17701
  * @csspart helpText - The helpText content container.
17710
17702
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
17711
17703
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -23542,6 +23534,9 @@ let AuroElement$2 = class AuroElement extends LitElement {
23542
23534
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
23543
23535
  * @attr id
23544
23536
  *
23537
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
23538
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
23539
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
23545
23540
  * @slot helpText - Sets the help text displayed below the input.
23546
23541
  * @slot label - Sets the label text for the input.
23547
23542
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -23969,8 +23964,7 @@ class BaseInput extends AuroElement$2 {
23969
23964
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
23970
23965
  */
23971
23966
  value: {
23972
- type: String,
23973
- reflect: true
23967
+ type: String
23974
23968
  },
23975
23969
 
23976
23970
  /**
@@ -26682,12 +26676,13 @@ class AuroInput extends BaseInput {
26682
26676
  <${this.buttonTag}
26683
26677
  @click="${this.handleClickClear}"
26684
26678
  ?onDark="${this.onDark}"
26685
- aria-label="${i18n$1(this.lang, 'clearInput')}"
26686
26679
  class="notificationBtn clearBtn"
26687
26680
  shape="circle"
26688
26681
  size="sm"
26689
26682
  variant="ghost">
26683
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
26690
26684
  <${this.iconTag}
26685
+ aria-hidden="true"
26691
26686
  ?customColor="${this.onDark}"
26692
26687
  category="interface"
26693
26688
  name="x-lg"
@@ -26710,18 +26705,23 @@ class AuroInput extends BaseInput {
26710
26705
  @click="${this.handleClickShowPassword}"
26711
26706
  ?onDark="${this.onDark}"
26712
26707
  class="notificationBtn passwordBtn"
26713
- aria-label="${this.showPassword ? i18n$1(this.lang, "hidePassword") : i18n$1(this.lang, "showPassword")}"
26714
26708
  shape="circle"
26715
26709
  size="sm"
26716
26710
  variant="ghost">
26711
+ <span>
26712
+ ${this.showPassword ? html$1`<slot name="ariaLabel.password.hide">Hide Password</slot>`
26713
+ : html$1`<slot name="ariaLabel.password.show">Show Password</slot>`}
26714
+ </span>
26717
26715
  <${this.iconTag}
26718
26716
  ?customColor="${this.onDark}"
26717
+ aria-hidden="true"
26719
26718
  ?hidden=${!this.showPassword}
26720
26719
  category="interface"
26721
26720
  name="hide-password-stroke">
26722
26721
  </${this.iconTag}>
26723
26722
  <${this.iconTag}
26724
26723
  ?customColor="${this.onDark}"
26724
+ aria-hidden="true"
26725
26725
  ?hidden=${this.showPassword}
26726
26726
  category="interface"
26727
26727
  name="view-password-stroke">
@@ -27745,6 +27745,7 @@ var iconVersion = '8.0.1';
27745
27745
  // See https://git.io/JJ6SJ for "How to document your components using JSDoc"
27746
27746
  /**
27747
27747
  * @slot helpText - Defines the content of the helpText.
27748
+ * @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
27748
27749
  * @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
27749
27750
  * @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
27750
27751
  * @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
@@ -29323,6 +29324,7 @@ class AuroDatePicker extends AuroElement$1 {
29323
29324
  .monthNames="${this.monthNames}"
29324
29325
  part="calendar"
29325
29326
  >
29327
+ <slot name="ariaLabel.bib.close" slot="ariaLabel.close" @slotchange="${this.handleSlotToSlot}">Close</slot>
29326
29328
  <slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
29327
29329
  <slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
29328
29330
  <span slot="bib.fullscreen.fromStr">${this.value || html$1`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
@@ -60,12 +60,13 @@
60
60
 
61
61
  ## CSS Shadow Parts
62
62
 
63
- | Part | Description |
64
- |------------|----------------------------------------------|
65
- | [chevron](#chevron) | The collapsed/expanded state icon container. |
66
- | [helpText](#helpText) | The helpText content container. |
67
- | [popover](#popover) | The bib content container. |
68
- | [trigger](#trigger) | The trigger content container. |
63
+ | Part | Description |
64
+ |------------|--------------------------------------------------|
65
+ | [chevron](#chevron) | The collapsed/expanded state icon container. |
66
+ | [helpText](#helpText) | The helpText content container. |
67
+ | [popover](#popover) | The bib content container. |
68
+ | [size](#size) | The size of the dropdown bib. (height, width, maxHeight, maxWidth only) |
69
+ | [trigger](#trigger) | The trigger content container. |
69
70
  <!-- AURO-GENERATED-CONTENT:END -->
70
71
 
71
72
  ## API Examples