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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/components/bibtemplate/dist/index.js +4 -3
  2. package/components/bibtemplate/dist/registered.js +4 -3
  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 +36 -28
  6. package/components/combobox/demo/index.md +12 -0
  7. package/components/combobox/demo/index.min.js +36 -28
  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 +29 -17
  11. package/components/combobox/dist/registered.js +29 -17
  12. package/components/counter/demo/api.md +9 -0
  13. package/components/counter/demo/api.min.js +7 -3
  14. package/components/counter/demo/index.md +6 -0
  15. package/components/counter/demo/index.min.js +7 -3
  16. package/components/counter/dist/auro-counter-group.d.ts +1 -0
  17. package/components/counter/dist/index.js +7 -3
  18. package/components/counter/dist/registered.js +7 -3
  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 +22 -9
  22. package/components/datepicker/demo/index.md +12 -0
  23. package/components/datepicker/demo/index.min.js +22 -9
  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 +22 -9
  27. package/components/datepicker/dist/registered.js +22 -9
  28. package/components/dropdown/demo/api.md +7 -6
  29. package/components/dropdown/demo/api.min.js +1 -0
  30. package/components/dropdown/demo/index.min.js +1 -0
  31. package/components/dropdown/dist/index.js +1 -0
  32. package/components/dropdown/dist/registered.js +1 -0
  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 +14 -6
  36. package/components/input/demo/index.md +7 -0
  37. package/components/input/demo/index.min.js +14 -6
  38. package/components/input/demo/readme.md +1 -0
  39. package/components/input/dist/auro-input.d.ts +2 -2
  40. package/components/input/dist/base-input.d.ts +3 -1
  41. package/components/input/dist/index.js +14 -6
  42. package/components/input/dist/registered.js +14 -6
  43. package/components/menu/demo/api.min.js +3 -7
  44. package/components/menu/demo/index.min.js +3 -7
  45. package/components/menu/dist/index.js +3 -7
  46. package/components/menu/dist/registered.js +3 -7
  47. package/components/select/README.md +1 -0
  48. package/components/select/demo/api.md +9 -3
  49. package/components/select/demo/api.min.js +27 -21
  50. package/components/select/demo/index.md +8 -0
  51. package/components/select/demo/index.min.js +27 -21
  52. package/components/select/demo/readme.md +1 -0
  53. package/components/select/dist/auro-select.d.ts +6 -1
  54. package/components/select/dist/index.js +20 -10
  55. package/components/select/dist/registered.js +20 -10
  56. package/package.json +1 -1
  57. package/components/menu/dist/styles/shapeSize-css.d.ts +0 -2
@@ -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
@@ -3533,6 +3533,7 @@ class AuroElement extends i {
3533
3533
  * @slot trigger - Defines the content of the trigger.
3534
3534
  * @csspart trigger - The trigger content container.
3535
3535
  * @csspart chevron - The collapsed/expanded state icon container.
3536
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
3536
3537
  * @csspart helpText - The helpText content container.
3537
3538
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
3538
3539
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -3508,6 +3508,7 @@ class AuroElement extends i {
3508
3508
  * @slot trigger - Defines the content of the trigger.
3509
3509
  * @csspart trigger - The trigger content container.
3510
3510
  * @csspart chevron - The collapsed/expanded state icon container.
3511
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
3511
3512
  * @csspart helpText - The helpText content container.
3512
3513
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
3513
3514
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -3461,6 +3461,7 @@ class AuroElement extends LitElement {
3461
3461
  * @slot trigger - Defines the content of the trigger.
3462
3462
  * @csspart trigger - The trigger content container.
3463
3463
  * @csspart chevron - The collapsed/expanded state icon container.
3464
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
3464
3465
  * @csspart helpText - The helpText content container.
3465
3466
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
3466
3467
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -3461,6 +3461,7 @@ class AuroElement extends LitElement {
3461
3461
  * @slot trigger - Defines the content of the trigger.
3462
3462
  * @csspart trigger - The trigger content container.
3463
3463
  * @csspart chevron - The collapsed/expanded state icon container.
3464
+ * @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
3464
3465
  * @csspart helpText - The helpText content container.
3465
3466
  * @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
3466
3467
  * @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
@@ -83,6 +83,7 @@ This configuration enables proper module resolution for the component's TypeScri
83
83
 
84
84
  ```html
85
85
  <auro-input>
86
+ <span slot="ariaLabel.clear">Clear All</span>
86
87
  <span slot="label">Label</span>
87
88
  <span slot="helpText">Help Text</span>
88
89
  </auro-input>
@@ -72,12 +72,15 @@ Generate unique names for dependency components.
72
72
 
73
73
  ## Slots
74
74
 
75
- | Name | Description |
76
- |-----------------|--------------------------------------------------|
77
- | [displayValue](#displayValue) | Allows custom HTML content to display in place of the value when the input is not focused. |
78
- | [helpText](#helpText) | Sets the help text displayed below the input. |
79
- | [label](#label) | Sets the label text for the input. |
80
- | [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
75
+ | Name | Description |
76
+ |---------------------------|--------------------------------------------------|
77
+ | `ariaLabel.clear` | Sets aria-label on clear button for screenreader to read |
78
+ | `ariaLabel.password.hide` | Sets aria-label on password button to toggle off showing password |
79
+ | `ariaLabel.password.show` | Sets aria-label on password button to toggle on showing password |
80
+ | [displayValue](#displayValue) | Allows custom HTML content to display in place of the value when the input is not focused. |
81
+ | [helpText](#helpText) | Sets the help text displayed below the input. |
82
+ | [label](#label) | Sets the label text for the input. |
83
+ | [optionalLabel](#optionalLabel) | Allows overriding the optional display text "(optional)", which appears next to the label. |
81
84
 
82
85
  ## CSS Shadow Parts
83
86
 
@@ -113,6 +116,7 @@ The default component supports the basic input `type="text"` structure. The `(op
113
116
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
114
117
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
115
118
  <auro-input>
119
+ <span slot="ariaLabel.clear">Clear All</span>
116
120
  <span slot="label">Label</span>
117
121
  <span slot="helpText">Help Text</span>
118
122
  </auro-input>
@@ -134,6 +138,7 @@ The default component supports the basic input `type="text"` structure. The `(op
134
138
 
135
139
  ```html
136
140
  <auro-input>
141
+ <span slot="ariaLabel.clear">Clear All</span>
137
142
  <span slot="label">Label</span>
138
143
  <span slot="helpText">Help Text</span>
139
144
  </auro-input>
@@ -893,6 +898,9 @@ Default help text will be added to the input `type="password"` if custom help te
893
898
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
894
899
  <!-- The below content is automatically added from ../apiExamples/password.html -->
895
900
  <auro-input type="password" required>
901
+ <span slot="ariaLabel.clear">Clear All</span>
902
+ <span slot="ariaLabel.password.show">Show</span>
903
+ <span slot="ariaLabel.password.hide">Hide</span>
896
904
  <span slot="label">Password</span>
897
905
  <span slot="helpText">Please enter a secure password.</span>
898
906
  </auro-input>
@@ -5105,6 +5105,9 @@ let AuroElement$2 = class AuroElement extends i$2 {
5105
5105
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
5106
5106
  * @attr id
5107
5107
  *
5108
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
5109
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
5110
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
5108
5111
  * @slot helpText - Sets the help text displayed below the input.
5109
5112
  * @slot label - Sets the label text for the input.
5110
5113
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -5532,8 +5535,7 @@ class BaseInput extends AuroElement$2 {
5532
5535
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
5533
5536
  */
5534
5537
  value: {
5535
- type: String,
5536
- reflect: true
5538
+ type: String
5537
5539
  },
5538
5540
 
5539
5541
  /**
@@ -8041,7 +8043,7 @@ class AuroInput extends BaseInput {
8041
8043
  /**
8042
8044
  * Returns classmap configuration for html5 input labels in all layouts.
8043
8045
  * @private
8044
- * @returns {void}
8046
+ * @returns {Record<string, boolean>}
8045
8047
  */
8046
8048
  get commonLabelClasses() {
8047
8049
  return {
@@ -8055,7 +8057,7 @@ class AuroInput extends BaseInput {
8055
8057
  /**
8056
8058
  * Returns classmap configuration for html5 inputs in all layouts.
8057
8059
  * @private
8058
- * @returns {object} - Returns classmap.
8060
+ * @returns {Record<string, boolean>} - Returns classmap.
8059
8061
  */
8060
8062
  get commonInputClasses() {
8061
8063
  return {
@@ -8245,12 +8247,13 @@ class AuroInput extends BaseInput {
8245
8247
  <${this.buttonTag}
8246
8248
  @click="${this.handleClickClear}"
8247
8249
  ?onDark="${this.onDark}"
8248
- aria-label="${i18n(this.lang, 'clearInput')}"
8249
8250
  class="notificationBtn clearBtn"
8250
8251
  shape="circle"
8251
8252
  size="sm"
8252
8253
  variant="ghost">
8254
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
8253
8255
  <${this.iconTag}
8256
+ aria-hidden="true"
8254
8257
  ?customColor="${this.onDark}"
8255
8258
  category="interface"
8256
8259
  name="x-lg"
@@ -8273,18 +8276,23 @@ class AuroInput extends BaseInput {
8273
8276
  @click="${this.handleClickShowPassword}"
8274
8277
  ?onDark="${this.onDark}"
8275
8278
  class="notificationBtn passwordBtn"
8276
- aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
8277
8279
  shape="circle"
8278
8280
  size="sm"
8279
8281
  variant="ghost">
8282
+ <span>
8283
+ ${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
8284
+ : u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
8285
+ </span>
8280
8286
  <${this.iconTag}
8281
8287
  ?customColor="${this.onDark}"
8288
+ aria-hidden="true"
8282
8289
  ?hidden=${!this.showPassword}
8283
8290
  category="interface"
8284
8291
  name="hide-password-stroke">
8285
8292
  </${this.iconTag}>
8286
8293
  <${this.iconTag}
8287
8294
  ?customColor="${this.onDark}"
8295
+ aria-hidden="true"
8288
8296
  ?hidden=${this.showPassword}
8289
8297
  category="interface"
8290
8298
  name="view-password-stroke">
@@ -24,6 +24,7 @@ The `<auro-input>` element should be used in situations where users may:
24
24
  <label slot="label">From</label>
25
25
  </auro-input> -->
26
26
  <auro-input id="alpha" value="lax" layout="emphasized" shape="box" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
27
+ <span slot="ariaLabel.clear">Clear All</span>
27
28
  <label slot="label">From</label>
28
29
  <span slot="helpText">Example help text</span>
29
30
  <span slot="displayValue">
@@ -34,14 +35,17 @@ The `<auro-input>` element should be used in situations where users may:
34
35
  </span>
35
36
  </auro-input>
36
37
  <auro-input id="beta" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
38
+ <span slot="ariaLabel.clear">Clear All</span>
37
39
  <label slot="label">From</label>
38
40
  <span slot="helpText">Example help text</span>
39
41
  </auro-input>
40
42
  <auro-input id="charlie" layout="emphasized-left" shape="pill-left" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
43
+ <span slot="ariaLabel.clear">Clear All</span>
41
44
  <label slot="label">From</label>
42
45
  <span slot="helpText">Example help text</span>
43
46
  </auro-input>
44
47
  <auro-input id="delta" layout="emphasized-right" shape="pill-right" size="xl" placeholder="Departure" style="width: 249px;" ondark required>
48
+ <span slot="ariaLabel.clear">Clear All</span>
45
49
  <label slot="label">From</label>
46
50
  <span slot="helpText">Example help text</span>
47
51
  </auro-input>
@@ -54,6 +58,7 @@ The `<auro-input>` element should be used in situations where users may:
54
58
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
55
59
  <!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
56
60
  <auro-input id="snowflakePill" layout="snowflake" shape="snowflake" size="lg" placeholder="Departure" style="width: 249px;" ondark required>
61
+ <span slot="ariaLabel.clear">Clear All</span>
57
62
  <label slot="label">From</label>
58
63
  <span slot="helpText">Example help text</span>
59
64
  </auro-input>
@@ -68,6 +73,7 @@ The default component supports the basic input `type="text"` structure. The `(op
68
73
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
69
74
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
70
75
  <auro-input>
76
+ <span slot="ariaLabel.clear">Clear All</span>
71
77
  <span slot="label">Label</span>
72
78
  <span slot="helpText">Help Text</span>
73
79
  </auro-input>
@@ -89,6 +95,7 @@ The default component supports the basic input `type="text"` structure. The `(op
89
95
 
90
96
  ```html
91
97
  <auro-input>
98
+ <span slot="ariaLabel.clear">Clear All</span>
92
99
  <span slot="label">Label</span>
93
100
  <span slot="helpText">Help Text</span>
94
101
  </auro-input>
@@ -5030,6 +5030,9 @@ let AuroElement$2 = class AuroElement extends i$2 {
5030
5030
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
5031
5031
  * @attr id
5032
5032
  *
5033
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
5034
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
5035
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
5033
5036
  * @slot helpText - Sets the help text displayed below the input.
5034
5037
  * @slot label - Sets the label text for the input.
5035
5038
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -5457,8 +5460,7 @@ class BaseInput extends AuroElement$2 {
5457
5460
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
5458
5461
  */
5459
5462
  value: {
5460
- type: String,
5461
- reflect: true
5463
+ type: String
5462
5464
  },
5463
5465
 
5464
5466
  /**
@@ -7966,7 +7968,7 @@ class AuroInput extends BaseInput {
7966
7968
  /**
7967
7969
  * Returns classmap configuration for html5 input labels in all layouts.
7968
7970
  * @private
7969
- * @returns {void}
7971
+ * @returns {Record<string, boolean>}
7970
7972
  */
7971
7973
  get commonLabelClasses() {
7972
7974
  return {
@@ -7980,7 +7982,7 @@ class AuroInput extends BaseInput {
7980
7982
  /**
7981
7983
  * Returns classmap configuration for html5 inputs in all layouts.
7982
7984
  * @private
7983
- * @returns {object} - Returns classmap.
7985
+ * @returns {Record<string, boolean>} - Returns classmap.
7984
7986
  */
7985
7987
  get commonInputClasses() {
7986
7988
  return {
@@ -8170,12 +8172,13 @@ class AuroInput extends BaseInput {
8170
8172
  <${this.buttonTag}
8171
8173
  @click="${this.handleClickClear}"
8172
8174
  ?onDark="${this.onDark}"
8173
- aria-label="${i18n(this.lang, 'clearInput')}"
8174
8175
  class="notificationBtn clearBtn"
8175
8176
  shape="circle"
8176
8177
  size="sm"
8177
8178
  variant="ghost">
8179
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
8178
8180
  <${this.iconTag}
8181
+ aria-hidden="true"
8179
8182
  ?customColor="${this.onDark}"
8180
8183
  category="interface"
8181
8184
  name="x-lg"
@@ -8198,18 +8201,23 @@ class AuroInput extends BaseInput {
8198
8201
  @click="${this.handleClickShowPassword}"
8199
8202
  ?onDark="${this.onDark}"
8200
8203
  class="notificationBtn passwordBtn"
8201
- aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
8202
8204
  shape="circle"
8203
8205
  size="sm"
8204
8206
  variant="ghost">
8207
+ <span>
8208
+ ${this.showPassword ? u$2`<slot name="ariaLabel.password.hide">Hide Password</slot>`
8209
+ : u$2`<slot name="ariaLabel.password.show">Show Password</slot>`}
8210
+ </span>
8205
8211
  <${this.iconTag}
8206
8212
  ?customColor="${this.onDark}"
8213
+ aria-hidden="true"
8207
8214
  ?hidden=${!this.showPassword}
8208
8215
  category="interface"
8209
8216
  name="hide-password-stroke">
8210
8217
  </${this.iconTag}>
8211
8218
  <${this.iconTag}
8212
8219
  ?customColor="${this.onDark}"
8220
+ aria-hidden="true"
8213
8221
  ?hidden=${this.showPassword}
8214
8222
  category="interface"
8215
8223
  name="view-password-stroke">
@@ -83,6 +83,7 @@ This configuration enables proper module resolution for the component's TypeScri
83
83
 
84
84
  ```html
85
85
  <auro-input>
86
+ <span slot="ariaLabel.clear">Clear All</span>
86
87
  <span slot="label">Label</span>
87
88
  <span slot="helpText">Help Text</span>
88
89
  </auro-input>
@@ -52,13 +52,13 @@ export class AuroInput extends BaseInput {
52
52
  /**
53
53
  * Returns classmap configuration for html5 input labels in all layouts.
54
54
  * @private
55
- * @returns {void}
55
+ * @returns {Record<string, boolean>}
56
56
  */
57
57
  private get commonLabelClasses();
58
58
  /**
59
59
  * Returns classmap configuration for html5 inputs in all layouts.
60
60
  * @private
61
- * @returns {object} - Returns classmap.
61
+ * @returns {Record<string, boolean>} - Returns classmap.
62
62
  */
63
63
  private get commonInputClasses();
64
64
  /**
@@ -4,6 +4,9 @@
4
4
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
5
5
  * @attr id
6
6
  *
7
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
8
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
9
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
7
10
  * @slot helpText - Sets the help text displayed below the input.
8
11
  * @slot label - Sets the label text for the input.
9
12
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -292,7 +295,6 @@ export default class BaseInput extends AuroElement {
292
295
  */
293
296
  value: {
294
297
  type: StringConstructor;
295
- reflect: boolean;
296
298
  };
297
299
  /**
298
300
  * Sets validation mode to re-eval with each input.
@@ -4954,6 +4954,9 @@ let AuroElement$2 = class AuroElement extends LitElement {
4954
4954
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
4955
4955
  * @attr id
4956
4956
  *
4957
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
4958
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
4959
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
4957
4960
  * @slot helpText - Sets the help text displayed below the input.
4958
4961
  * @slot label - Sets the label text for the input.
4959
4962
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -5381,8 +5384,7 @@ class BaseInput extends AuroElement$2 {
5381
5384
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
5382
5385
  */
5383
5386
  value: {
5384
- type: String,
5385
- reflect: true
5387
+ type: String
5386
5388
  },
5387
5389
 
5388
5390
  /**
@@ -7890,7 +7892,7 @@ class AuroInput extends BaseInput {
7890
7892
  /**
7891
7893
  * Returns classmap configuration for html5 input labels in all layouts.
7892
7894
  * @private
7893
- * @returns {void}
7895
+ * @returns {Record<string, boolean>}
7894
7896
  */
7895
7897
  get commonLabelClasses() {
7896
7898
  return {
@@ -7904,7 +7906,7 @@ class AuroInput extends BaseInput {
7904
7906
  /**
7905
7907
  * Returns classmap configuration for html5 inputs in all layouts.
7906
7908
  * @private
7907
- * @returns {object} - Returns classmap.
7909
+ * @returns {Record<string, boolean>} - Returns classmap.
7908
7910
  */
7909
7911
  get commonInputClasses() {
7910
7912
  return {
@@ -8094,12 +8096,13 @@ class AuroInput extends BaseInput {
8094
8096
  <${this.buttonTag}
8095
8097
  @click="${this.handleClickClear}"
8096
8098
  ?onDark="${this.onDark}"
8097
- aria-label="${i18n(this.lang, 'clearInput')}"
8098
8099
  class="notificationBtn clearBtn"
8099
8100
  shape="circle"
8100
8101
  size="sm"
8101
8102
  variant="ghost">
8103
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
8102
8104
  <${this.iconTag}
8105
+ aria-hidden="true"
8103
8106
  ?customColor="${this.onDark}"
8104
8107
  category="interface"
8105
8108
  name="x-lg"
@@ -8122,18 +8125,23 @@ class AuroInput extends BaseInput {
8122
8125
  @click="${this.handleClickShowPassword}"
8123
8126
  ?onDark="${this.onDark}"
8124
8127
  class="notificationBtn passwordBtn"
8125
- aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
8126
8128
  shape="circle"
8127
8129
  size="sm"
8128
8130
  variant="ghost">
8131
+ <span>
8132
+ ${this.showPassword ? html$1`<slot name="ariaLabel.password.hide">Hide Password</slot>`
8133
+ : html$1`<slot name="ariaLabel.password.show">Show Password</slot>`}
8134
+ </span>
8129
8135
  <${this.iconTag}
8130
8136
  ?customColor="${this.onDark}"
8137
+ aria-hidden="true"
8131
8138
  ?hidden=${!this.showPassword}
8132
8139
  category="interface"
8133
8140
  name="hide-password-stroke">
8134
8141
  </${this.iconTag}>
8135
8142
  <${this.iconTag}
8136
8143
  ?customColor="${this.onDark}"
8144
+ aria-hidden="true"
8137
8145
  ?hidden=${this.showPassword}
8138
8146
  category="interface"
8139
8147
  name="view-password-stroke">
@@ -4954,6 +4954,9 @@ let AuroElement$2 = class AuroElement extends LitElement {
4954
4954
  * @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
4955
4955
  * @attr id
4956
4956
  *
4957
+ * @slot ariaLabel.clear - Sets aria-label on clear button for screenreader to read
4958
+ * @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
4959
+ * @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
4957
4960
  * @slot helpText - Sets the help text displayed below the input.
4958
4961
  * @slot label - Sets the label text for the input.
4959
4962
  * @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
@@ -5381,8 +5384,7 @@ class BaseInput extends AuroElement$2 {
5381
5384
  * Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
5382
5385
  */
5383
5386
  value: {
5384
- type: String,
5385
- reflect: true
5387
+ type: String
5386
5388
  },
5387
5389
 
5388
5390
  /**
@@ -7890,7 +7892,7 @@ class AuroInput extends BaseInput {
7890
7892
  /**
7891
7893
  * Returns classmap configuration for html5 input labels in all layouts.
7892
7894
  * @private
7893
- * @returns {void}
7895
+ * @returns {Record<string, boolean>}
7894
7896
  */
7895
7897
  get commonLabelClasses() {
7896
7898
  return {
@@ -7904,7 +7906,7 @@ class AuroInput extends BaseInput {
7904
7906
  /**
7905
7907
  * Returns classmap configuration for html5 inputs in all layouts.
7906
7908
  * @private
7907
- * @returns {object} - Returns classmap.
7909
+ * @returns {Record<string, boolean>} - Returns classmap.
7908
7910
  */
7909
7911
  get commonInputClasses() {
7910
7912
  return {
@@ -8094,12 +8096,13 @@ class AuroInput extends BaseInput {
8094
8096
  <${this.buttonTag}
8095
8097
  @click="${this.handleClickClear}"
8096
8098
  ?onDark="${this.onDark}"
8097
- aria-label="${i18n(this.lang, 'clearInput')}"
8098
8099
  class="notificationBtn clearBtn"
8099
8100
  shape="circle"
8100
8101
  size="sm"
8101
8102
  variant="ghost">
8103
+ <span><slot name="ariaLabel.clear">Clear Input</slot></span>
8102
8104
  <${this.iconTag}
8105
+ aria-hidden="true"
8103
8106
  ?customColor="${this.onDark}"
8104
8107
  category="interface"
8105
8108
  name="x-lg"
@@ -8122,18 +8125,23 @@ class AuroInput extends BaseInput {
8122
8125
  @click="${this.handleClickShowPassword}"
8123
8126
  ?onDark="${this.onDark}"
8124
8127
  class="notificationBtn passwordBtn"
8125
- aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
8126
8128
  shape="circle"
8127
8129
  size="sm"
8128
8130
  variant="ghost">
8131
+ <span>
8132
+ ${this.showPassword ? html$1`<slot name="ariaLabel.password.hide">Hide Password</slot>`
8133
+ : html$1`<slot name="ariaLabel.password.show">Show Password</slot>`}
8134
+ </span>
8129
8135
  <${this.iconTag}
8130
8136
  ?customColor="${this.onDark}"
8137
+ aria-hidden="true"
8131
8138
  ?hidden=${!this.showPassword}
8132
8139
  category="interface"
8133
8140
  name="hide-password-stroke">
8134
8141
  </${this.iconTag}>
8135
8142
  <${this.iconTag}
8136
8143
  ?customColor="${this.onDark}"
8144
+ aria-hidden="true"
8137
8145
  ?hidden=${this.showPassword}
8138
8146
  category="interface"
8139
8147
  name="view-password-stroke">