@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.8 → 0.0.0-pr624.80

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 (143) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
  2. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  3. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  4. package/components/bibtemplate/dist/index.js +1262 -81
  5. package/components/bibtemplate/dist/registered.js +1262 -81
  6. package/components/checkbox/README.md +1 -1
  7. package/components/checkbox/demo/api.html +16 -10
  8. package/components/checkbox/demo/api.md +49 -15
  9. package/components/checkbox/demo/api.min.js +73 -43
  10. package/components/checkbox/demo/index.html +16 -10
  11. package/components/checkbox/demo/index.md +2 -2
  12. package/components/checkbox/demo/index.min.js +73 -43
  13. package/components/checkbox/demo/readme.html +16 -9
  14. package/components/checkbox/demo/readme.md +1 -1
  15. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  16. package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
  17. package/components/checkbox/dist/index.js +72 -42
  18. package/components/checkbox/dist/registered.js +72 -42
  19. package/components/combobox/demo/api.html +16 -10
  20. package/components/combobox/demo/api.md +115 -8
  21. package/components/combobox/demo/api.min.js +3102 -921
  22. package/components/combobox/demo/index.html +16 -10
  23. package/components/combobox/demo/index.md +6 -30
  24. package/components/combobox/demo/index.min.js +3102 -921
  25. package/components/combobox/demo/readme.html +16 -9
  26. package/components/combobox/dist/auro-combobox.d.ts +44 -12
  27. package/components/combobox/dist/index.js +3080 -995
  28. package/components/combobox/dist/registered.js +3080 -995
  29. package/components/counter/demo/api.html +17 -10
  30. package/components/counter/demo/api.md +158 -21
  31. package/components/counter/demo/api.min.js +3416 -728
  32. package/components/counter/demo/index.html +17 -10
  33. package/components/counter/demo/index.md +185 -34
  34. package/components/counter/demo/index.min.js +3416 -728
  35. package/components/counter/demo/readme.html +16 -9
  36. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  37. package/components/counter/dist/auro-counter-group.d.ts +161 -11
  38. package/components/counter/dist/auro-counter.d.ts +16 -0
  39. package/components/counter/dist/helptextVersion.d.ts +2 -0
  40. package/components/counter/dist/iconVersion.d.ts +1 -1
  41. package/components/counter/dist/index.js +3416 -728
  42. package/components/counter/dist/registered.js +3416 -728
  43. package/components/datepicker/README.md +1 -1
  44. package/components/datepicker/demo/api.html +16 -10
  45. package/components/datepicker/demo/api.md +59 -28
  46. package/components/datepicker/demo/api.min.js +8486 -4644
  47. package/components/datepicker/demo/index.html +16 -10
  48. package/components/datepicker/demo/index.md +75 -8
  49. package/components/datepicker/demo/index.min.js +8486 -4644
  50. package/components/datepicker/demo/readme.html +16 -9
  51. package/components/datepicker/demo/readme.md +1 -1
  52. package/components/datepicker/dist/auro-datepicker.d.ts +151 -12
  53. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  54. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  55. package/components/datepicker/dist/index.js +7033 -3191
  56. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  57. package/components/datepicker/dist/registered.js +7033 -3191
  58. package/components/dropdown/demo/api.html +16 -10
  59. package/components/dropdown/demo/api.md +82 -275
  60. package/components/dropdown/demo/api.min.js +451 -260
  61. package/components/dropdown/demo/index.html +16 -10
  62. package/components/dropdown/demo/index.md +92 -362
  63. package/components/dropdown/demo/index.min.js +451 -260
  64. package/components/dropdown/demo/readme.html +16 -9
  65. package/components/dropdown/dist/auro-dropdown.d.ts +43 -83
  66. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  67. package/components/dropdown/dist/index.js +450 -259
  68. package/components/dropdown/dist/registered.js +450 -259
  69. package/components/form/demo/api.html +16 -9
  70. package/components/form/demo/api.min.js +2 -2
  71. package/components/form/demo/autocomplete.html +19 -3
  72. package/components/form/demo/index.html +16 -9
  73. package/components/form/demo/index.min.js +2 -2
  74. package/components/form/demo/readme.html +16 -9
  75. package/components/form/demo/working.html +19 -13
  76. package/components/form/dist/index.js +1 -1
  77. package/components/form/dist/registered.js +1 -1
  78. package/components/helptext/dist/index.js +2 -2
  79. package/components/helptext/dist/registered.js +2 -2
  80. package/components/input/README.md +5 -2
  81. package/components/input/demo/api.html +16 -10
  82. package/components/input/demo/api.md +228 -130
  83. package/components/input/demo/api.min.js +909 -247
  84. package/components/input/demo/index.html +16 -10
  85. package/components/input/demo/index.md +48 -32
  86. package/components/input/demo/index.min.js +909 -247
  87. package/components/input/demo/readme.html +16 -9
  88. package/components/input/demo/readme.md +5 -2
  89. package/components/input/dist/auro-input.d.ts +3 -3
  90. package/components/input/dist/base-input.d.ts +38 -10
  91. package/components/input/dist/buttonVersion.d.ts +1 -1
  92. package/components/input/dist/iconVersion.d.ts +1 -1
  93. package/components/input/dist/index.js +908 -246
  94. package/components/input/dist/registered.js +908 -246
  95. package/components/layoutElement/dist/index.js +13 -10
  96. package/components/menu/demo/api.html +32 -10
  97. package/components/menu/demo/api.md +69 -8
  98. package/components/menu/demo/api.min.js +239 -48
  99. package/components/menu/demo/index.html +16 -10
  100. package/components/menu/demo/index.min.js +239 -48
  101. package/components/menu/demo/readme.html +16 -9
  102. package/components/menu/dist/auro-menu.d.ts +41 -7
  103. package/components/menu/dist/auro-menuoption.d.ts +15 -3
  104. package/components/menu/dist/iconVersion.d.ts +1 -1
  105. package/components/menu/dist/index.js +238 -47
  106. package/components/menu/dist/registered.js +238 -47
  107. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  108. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  109. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  110. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  111. package/components/radio/demo/api.html +16 -10
  112. package/components/radio/demo/api.md +39 -9
  113. package/components/radio/demo/api.min.js +91 -93
  114. package/components/radio/demo/index.html +16 -10
  115. package/components/radio/demo/index.min.js +91 -93
  116. package/components/radio/demo/readme.html +16 -9
  117. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  118. package/components/radio/dist/auro-radio.d.ts +9 -12
  119. package/components/radio/dist/index.js +90 -92
  120. package/components/radio/dist/registered.js +90 -92
  121. package/components/select/demo/api.html +16 -10
  122. package/components/select/demo/api.js +0 -2
  123. package/components/select/demo/api.md +150 -121
  124. package/components/select/demo/api.min.js +2184 -704
  125. package/components/select/demo/index.html +17 -11
  126. package/components/select/demo/index.md +1066 -259
  127. package/components/select/demo/index.min.js +2186 -694
  128. package/components/select/demo/readme.html +16 -9
  129. package/components/select/dist/auro-select.d.ts +59 -21
  130. package/components/select/dist/index.js +2107 -711
  131. package/components/select/dist/registered.js +2107 -711
  132. package/package.json +31 -28
  133. /package/components/{datepicker/dist/styles/default/color-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  134. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/classic}/color-css.d.ts +0 -0
  135. /package/components/datepicker/dist/styles/{emphasized → classic}/style-css.d.ts +0 -0
  136. /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  137. /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
  138. /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
  139. /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  140. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
  141. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
  142. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/style-css.d.ts} +0 -0
  143. /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
@@ -31,10 +31,11 @@ Generate unique names for dependency components.
31
31
  | [min](#min) | `min` | `string` | "undefined" | The minimum value allowed. This only applies for inputs with a type of `number` and all date formats. |
32
32
  | [minLength](#minLength) | `minLength` | `number` | "undefined" | The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`. |
33
33
  | [name](#name) | `name` | `string` | | Populates the `name` attribute on the input. |
34
+ | [nested](#nested) | `nested` | `boolean` | | Sets styles for nested operation - removes borders, hides help + error text, and<br />hides accents. |
34
35
  | [noValidate](#noValidate) | `noValidate` | `boolean` | false | If set, disables auto-validation on blur. |
35
36
  | [onDark](#onDark) | `onDark` | `boolean` | false | Sets onDark styles on input. |
36
37
  | [pattern](#pattern) | `pattern` | `string` | | Specifies a regular expression the form control's value should match. |
37
- | [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text, only supported by date input formats. |
38
+ | [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text. |
38
39
  | [readonly](#readonly) | `readonly` | `boolean` | | Makes the input read-only, but can be set programmatically. |
39
40
  | [required](#required) | `required` | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
40
41
  | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
@@ -47,6 +48,7 @@ Generate unique names for dependency components.
47
48
  | [setCustomValidityTooShort](#setCustomValidityTooShort) | `setCustomValidityTooShort` | `string` | | Custom help text message to display when validity = `tooShort`. |
48
49
  | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
49
50
  | [shape](#shape) | | `string` | "classic" | |
51
+ | [simple](#simple) | `simple` | `boolean` | | Simple makes the input render without a border. |
50
52
  | [size](#size) | | `string` | "lg" | |
51
53
  | [spellcheck](#spellcheck) | `spellcheck` | `string` | | An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`. |
52
54
  | [type](#type) | `type` | `string` | | Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `date`, `tel` or `text`. If given value is not allowed or set, defaults to `text`. |
@@ -58,7 +60,9 @@ Generate unique names for dependency components.
58
60
 
59
61
  | Method | Type | Description |
60
62
  |------------|----------------------------------------|--------------------------------------------------|
61
- | [reset](#reset) | `(): void` | Resets component to initial state. |
63
+ | [clear](#clear) | `(): void` | Clears the input value. |
64
+ | [focus](#focus) | `(): void` | Function to set element focus. |
65
+ | [reset](#reset) | `(): void` | Resets component to initial state, including resetting the touched state and validity. |
62
66
  | [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
63
67
 
64
68
  ## Events
@@ -71,18 +75,23 @@ Generate unique names for dependency components.
71
75
 
72
76
  ## Slots
73
77
 
74
- | Name | Description |
75
- |------------|-----------------------------------------------|
76
- | [helptext](#helptext) | Sets the help text displayed below the input. |
77
- | [label](#label) | Sets the label text for the input. |
78
+ | Name | Description |
79
+ |-----------------|--------------------------------------------------|
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. |
78
84
 
79
85
  ## CSS Shadow Parts
80
86
 
81
87
  | Part | Description |
82
- |-----------------|--------------------------------------------------|
88
+ |-----------------|--------------------------------------------------|
89
+ | `accent-left` | Use for customizing the style of the left accent element (e.g. padding, margin) |
90
+ | `accent-right` | Use for customizing the style of the right accent element (e.g. padding, margin) |
83
91
  | [accentIcon](#accentIcon) | Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon) |
84
92
  | [helpText](#helpText) | Use for customizing the style of the helpText element |
85
93
  | [iconContainer](#iconContainer) | Use for customizing the style of the iconContainer (e.g. X icon for clearing input value) |
94
+ | [input](#input) | Use for customizing the style of the input element |
86
95
  | [label](#label) | Use for customizing the style of the label element |
87
96
  | [wrapper](#wrapper) | Use for customizing the style of the root element |
88
97
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -106,13 +115,19 @@ The default component supports the basic input `type="text"` structure. The `(op
106
115
  <div class="exampleWrapper">
107
116
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
108
117
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
109
- <auro-input bordered shape="rounded" size="lg"></auro-input>
118
+ <auro-input>
119
+ <span slot="label">Label</span>
120
+ <span slot="helpText">Help Text</span>
121
+ </auro-input>
110
122
  <!-- AURO-GENERATED-CONTENT:END -->
111
123
  </div>
112
124
  <div class="exampleWrapper--ondark" aria-hidden>
113
125
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
114
126
  <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
115
- <auro-input onDark bordered shape="rounded" size="lg"></auro-input>
127
+ <auro-input ondark shape="rounded" size="lg">
128
+ <span slot="label">Label</span>
129
+ <span slot="helpText">Help Text</span>
130
+ </auro-input>
116
131
  <!-- AURO-GENERATED-CONTENT:END -->
117
132
  </div>
118
133
  <auro-accordion alignRight>
@@ -121,14 +136,20 @@ The default component supports the basic input `type="text"` structure. The `(op
121
136
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
122
137
 
123
138
  ```html
124
- <auro-input bordered shape="rounded" size="lg"></auro-input>
139
+ <auro-input>
140
+ <span slot="label">Label</span>
141
+ <span slot="helpText">Help Text</span>
142
+ </auro-input>
125
143
  ```
126
144
  <!-- AURO-GENERATED-CONTENT:END -->
127
145
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/onDark.html) -->
128
146
  <!-- The below code snippet is automatically added from ./../apiExamples/onDark.html -->
129
147
 
130
148
  ```html
131
- <auro-input onDark bordered shape="rounded" size="lg"></auro-input>
149
+ <auro-input ondark shape="rounded" size="lg">
150
+ <span slot="label">Label</span>
151
+ <span slot="helpText">Help Text</span>
152
+ </auro-input>
132
153
  ```
133
154
  <!-- AURO-GENERATED-CONTENT:END -->
134
155
  </auro-accordion>
@@ -141,16 +162,18 @@ Use the `disable` attribute to prevent the user from interacting with the input.
141
162
  <div class="exampleWrapper">
142
163
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
143
164
  <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
144
- <auro-input disabled bordered type="date">
145
- <span slot="label">Arrival date</span>
165
+ <auro-input disabled type="date">
166
+ <span slot="label">Disabled</span>
167
+ <span slot="helpText">Help Text</span>
146
168
  </auro-input>
147
169
  <!-- AURO-GENERATED-CONTENT:END -->
148
170
  </div>
149
171
  <div class="exampleWrapper--ondark" aria-hidden>
150
172
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
151
173
  <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
152
- <auro-input onDark disabled bordered type="date">
174
+ <auro-input onDark disabled type="date">
153
175
  <span slot="label">Arrival date</span>
176
+ <span slot="helpText">Help Text</span>
154
177
  </auro-input>
155
178
  <!-- AURO-GENERATED-CONTENT:END -->
156
179
  </div>
@@ -160,8 +183,9 @@ Use the `disable` attribute to prevent the user from interacting with the input.
160
183
  <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
161
184
 
162
185
  ```html
163
- <auro-input disabled bordered type="date">
164
- <span slot="label">Arrival date</span>
186
+ <auro-input disabled type="date">
187
+ <span slot="label">Disabled</span>
188
+ <span slot="helpText">Help Text</span>
165
189
  </auro-input>
166
190
  ```
167
191
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -169,8 +193,9 @@ Use the `disable` attribute to prevent the user from interacting with the input.
169
193
  <!-- The below code snippet is automatically added from ./../apiExamples/onDarkDisabled.html -->
170
194
 
171
195
  ```html
172
- <auro-input onDark disabled bordered type="date">
196
+ <auro-input onDark disabled type="date">
173
197
  <span slot="label">Arrival date</span>
198
+ <span slot="helpText">Help Text</span>
174
199
  </auro-input>
175
200
  ```
176
201
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -185,7 +210,10 @@ Set the input mode for the input.
185
210
  <div class="exampleWrapper">
186
211
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
187
212
  <!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
188
- <auro-input bordered inputmode="tel" />
213
+ <auro-input inputmode="tel">
214
+ <span slot="label">Telephone</span>
215
+ <span slot="helpText">Help Text</span>
216
+ </auro-input>
189
217
  <!-- AURO-GENERATED-CONTENT:END -->
190
218
  </div>
191
219
  <auro-accordion alignRight>
@@ -194,7 +222,10 @@ Set the input mode for the input.
194
222
  <!-- The below code snippet is automatically added from ./../apiExamples/inputmode.html -->
195
223
 
196
224
  ```html
197
- <auro-input bordered inputmode="tel" />
225
+ <auro-input inputmode="tel">
226
+ <span slot="label">Telephone</span>
227
+ <span slot="helpText">Help Text</span>
228
+ </auro-input>
198
229
  ```
199
230
  <!-- AURO-GENERATED-CONTENT:END -->
200
231
  </auro-accordion>
@@ -205,9 +236,9 @@ Use the `placeholder` attribute to add a custom placeholder message within the e
205
236
  <div class="exampleWrapper">
206
237
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/placeholder.html) -->
207
238
  <!-- The below content is automatically added from ../apiExamples/placeholder.html -->
208
- <auro-input placeholder="John Doe" bordered required>
239
+ <auro-input placeholder="John Doe" required>
209
240
  <span slot="label">Full name</span>
210
- <span slot="helptext">Please enter your full name.</span>
241
+ <span slot="helpText">Please enter your full name.</span>
211
242
  </auro-input>
212
243
  <!-- AURO-GENERATED-CONTENT:END -->
213
244
  </div>
@@ -217,9 +248,9 @@ Use the `placeholder` attribute to add a custom placeholder message within the e
217
248
  <!-- The below code snippet is automatically added from ../apiExamples/placeholder.html -->
218
249
 
219
250
  ```html
220
- <auro-input placeholder="John Doe" bordered required>
251
+ <auro-input placeholder="John Doe" required>
221
252
  <span slot="label">Full name</span>
222
- <span slot="helptext">Please enter your full name.</span>
253
+ <span slot="helpText">Please enter your full name.</span>
223
254
  </auro-input>
224
255
  ```
225
256
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -231,9 +262,9 @@ Use the `value` attribute to programmatically set the value of the input.
231
262
  <div class="exampleWrapper">
232
263
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/programmaticValue.html) -->
233
264
  <!-- The below content is automatically added from ../apiExamples/programmaticValue.html -->
234
- <auro-input value="Alaska Airlines is the best!" bordered>
265
+ <auro-input value="Alaska Airlines is the best!">
235
266
  <span slot="label">Name</span>
236
- <span slot="helptext">Please enter your full name.</span>
267
+ <span slot="helpText">Please enter your full name.</span>
237
268
  </auro-input>
238
269
  <!-- AURO-GENERATED-CONTENT:END -->
239
270
  </div>
@@ -243,9 +274,9 @@ Use the `value` attribute to programmatically set the value of the input.
243
274
  <!-- The below code snippet is automatically added from ../apiExamples/programmaticValue.html -->
244
275
 
245
276
  ```html
246
- <auro-input value="Alaska Airlines is the best!" bordered>
277
+ <auro-input value="Alaska Airlines is the best!">
247
278
  <span slot="label">Name</span>
248
- <span slot="helptext">Please enter your full name.</span>
279
+ <span slot="helpText">Please enter your full name.</span>
249
280
  </auro-input>
250
281
  ```
251
282
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -263,9 +294,9 @@ Note: Setting the `value` to `undefined` will also reset the element.
263
294
  <auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
264
295
  <auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
265
296
  <br /><br />
266
- <auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
297
+ <auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!">
267
298
  <span slot="label">Name</span>
268
- <span slot="helptext">Please enter your full name.</span>
299
+ <span slot="helpText">Please enter your full name.</span>
269
300
  </auro-input>
270
301
  <!-- AURO-GENERATED-CONTENT:END -->
271
302
  </div>
@@ -278,9 +309,9 @@ Note: Setting the `value` to `undefined` will also reset the element.
278
309
  <auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
279
310
  <auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
280
311
  <br /><br />
281
- <auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
312
+ <auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!">
282
313
  <span slot="label">Name</span>
283
- <span slot="helptext">Please enter your full name.</span>
314
+ <span slot="helpText">Please enter your full name.</span>
284
315
  </auro-input>
285
316
  ```
286
317
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -315,8 +346,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
315
346
  <div class="exampleWrapper">
316
347
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxDate.html) -->
317
348
  <!-- The below content is automatically added from ../apiExamples/maxDate.html -->
318
- <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
349
+ <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date.">
319
350
  <span slot="label">Choose a date</span>
351
+ <span slot="helpText">Help Text</span>
320
352
  </auro-input>
321
353
  <!-- AURO-GENERATED-CONTENT:END -->
322
354
  </div>
@@ -326,8 +358,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
326
358
  <!-- The below code snippet is automatically added from ../apiExamples/maxDate.html -->
327
359
 
328
360
  ```html
329
- <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
361
+ <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date.">
330
362
  <span slot="label">Choose a date</span>
363
+ <span slot="helpText">Help Text</span>
331
364
  </auro-input>
332
365
  ```
333
366
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -338,8 +371,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
338
371
  <div class="exampleWrapper">
339
372
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxNumber.html) -->
340
373
  <!-- The below content is automatically added from ../apiExamples/maxNumber.html -->
341
- <auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum." bordered>
374
+ <auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
342
375
  <span slot="label">Choose a number</span>
376
+ <span slot="helpText">Help Text</span>
343
377
  </auro-input>
344
378
  <!-- AURO-GENERATED-CONTENT:END -->
345
379
  </div>
@@ -349,8 +383,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
349
383
  <!-- The below code snippet is automatically added from ../apiExamples/maxNumber.html -->
350
384
 
351
385
  ```html
352
- <auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum." bordered>
386
+ <auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
353
387
  <span slot="label">Choose a number</span>
388
+ <span slot="helpText">Help Text</span>
354
389
  </auro-input>
355
390
  ```
356
391
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -366,8 +401,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
366
401
  <div class="exampleWrapper">
367
402
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minDate.html) -->
368
403
  <!-- The below content is automatically added from ../apiExamples/minDate.html -->
369
- <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
404
+ <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date.">
370
405
  <span slot="label">Choose a date</span>
406
+ <span slot="helpText">Help Text</span>
371
407
  </auro-input>
372
408
  <!-- AURO-GENERATED-CONTENT:END -->
373
409
  </div>
@@ -377,8 +413,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
377
413
  <!-- The below code snippet is automatically added from ../apiExamples/minDate.html -->
378
414
 
379
415
  ```html
380
- <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
416
+ <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date.">
381
417
  <span slot="label">Choose a date</span>
418
+ <span slot="helpText">Help Text</span>
382
419
  </auro-input>
383
420
  ```
384
421
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -389,8 +426,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
389
426
  <div class="exampleWrapper">
390
427
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minNumber.html) -->
391
428
  <!-- The below content is automatically added from ../apiExamples/minNumber.html -->
392
- <auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum." bordered>
429
+ <auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
393
430
  <span slot="label">Choose a number</span>
431
+ <span slot="helpText">Help Text</span>
394
432
  </auro-input>
395
433
  <!-- AURO-GENERATED-CONTENT:END -->
396
434
  </div>
@@ -400,8 +438,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
400
438
  <!-- The below code snippet is automatically added from ../apiExamples/minNumber.html -->
401
439
 
402
440
  ```html
403
- <auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum." bordered>
441
+ <auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
404
442
  <span slot="label">Choose a number</span>
443
+ <span slot="helpText">Help Text</span>
405
444
  </auro-input>
406
445
  ```
407
446
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -415,9 +454,9 @@ The `setCustomValidityTooLong` attribute may optionally be used in combination w
415
454
  <div class="exampleWrapper">
416
455
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
417
456
  <!-- The below content is automatically added from ../apiExamples/maxLength.html -->
418
- <auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." bordered required>
457
+ <auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." required>
419
458
  <span slot="label">Voucher Code</span>
420
- <span slot="helptext">Please enter your 12 character voucher code.</span>
459
+ <span slot="helpText">Please enter your 12 character voucher code.</span>
421
460
  </auro-input>
422
461
  <!-- AURO-GENERATED-CONTENT:END -->
423
462
  </div>
@@ -427,9 +466,9 @@ The `setCustomValidityTooLong` attribute may optionally be used in combination w
427
466
  <!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
428
467
 
429
468
  ```html
430
- <auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." bordered required>
469
+ <auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." required>
431
470
  <span slot="label">Voucher Code</span>
432
- <span slot="helptext">Please enter your 12 character voucher code.</span>
471
+ <span slot="helpText">Please enter your 12 character voucher code.</span>
433
472
  </auro-input>
434
473
  ```
435
474
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -443,9 +482,9 @@ The `setCustomValidityTooShort` attribute may optionally be used in combination
443
482
  <div class="exampleWrapper">
444
483
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minLength.html) -->
445
484
  <!-- The below content is automatically added from ../apiExamples/minLength.html -->
446
- <auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." bordered required>
485
+ <auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." required>
447
486
  <span slot="label">Voucher Code</span>
448
- <span slot="helptext">Please enter your 4 character voucher code.</span>
487
+ <span slot="helpText">Please enter your 4 character voucher code.</span>
449
488
  </auro-input>
450
489
  <!-- AURO-GENERATED-CONTENT:END -->
451
490
  </div>
@@ -455,9 +494,9 @@ The `setCustomValidityTooShort` attribute may optionally be used in combination
455
494
  <!-- The below code snippet is automatically added from ../apiExamples/minLength.html -->
456
495
 
457
496
  ```html
458
- <auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." bordered required>
497
+ <auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." required>
459
498
  <span slot="label">Voucher Code</span>
460
- <span slot="helptext">Please enter your 4 character voucher code.</span>
499
+ <span slot="helpText">Please enter your 4 character voucher code.</span>
461
500
  </auro-input>
462
501
  ```
463
502
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -471,9 +510,9 @@ The `<auro-input>` component supports setting a custom validity message specific
471
510
  <div class="exampleWrapper">
472
511
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/pattern.html) -->
473
512
  <!-- The below content is automatically added from ../apiExamples/pattern.html -->
474
- <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces" bordered>
513
+ <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
475
514
  <span slot="label">Username</span>
476
- <span slot="helptext">Please enter a username.</span>
515
+ <span slot="helpText">Please enter a username.</span>
477
516
  </auro-input>
478
517
  <!-- AURO-GENERATED-CONTENT:END -->
479
518
  </div>
@@ -483,9 +522,9 @@ The `<auro-input>` component supports setting a custom validity message specific
483
522
  <!-- The below code snippet is automatically added from ../apiExamples/pattern.html -->
484
523
 
485
524
  ```html
486
- <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces" bordered>
525
+ <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
487
526
  <span slot="label">Username</span>
488
- <span slot="helptext">Please enter a username.</span>
527
+ <span slot="helpText">Please enter a username.</span>
489
528
  </auro-input>
490
529
  ```
491
530
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -502,9 +541,9 @@ In this example, the user is able to programmatically change the value of the in
502
541
  <auro-button id="setReadonlyValueBtn">Set Value to Auro Alaska</auro-button>
503
542
  <auro-button id="resetReadonlyValueBtn">Reset</auro-button>
504
543
  <br /><br />
505
- <auro-input readonly bordered id="readonlyExample">
544
+ <auro-input readonly id="readonlyExample">
506
545
  <span slot="label">Name</span>
507
- <span slot="helptext">Please enter your full name.</span>
546
+ <span slot="helpText">Please enter your full name.</span>
508
547
  </auro-input>
509
548
  <!-- AURO-GENERATED-CONTENT:END -->
510
549
  </div>
@@ -517,9 +556,9 @@ In this example, the user is able to programmatically change the value of the in
517
556
  <auro-button id="setReadonlyValueBtn">Set Value to Auro Alaska</auro-button>
518
557
  <auro-button id="resetReadonlyValueBtn">Reset</auro-button>
519
558
  <br /><br />
520
- <auro-input readonly bordered id="readonlyExample">
559
+ <auro-input readonly id="readonlyExample">
521
560
  <span slot="label">Name</span>
522
- <span slot="helptext">Please enter your full name.</span>
561
+ <span slot="helpText">Please enter your full name.</span>
523
562
  </auro-input>
524
563
  ```
525
564
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -549,9 +588,9 @@ Example use cases for auro-input support the `activeLabel` attribute. If set, th
549
588
  <div class="exampleWrapper">
550
589
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/activeLabel.html) -->
551
590
  <!-- The below content is automatically added from ../apiExamples/activeLabel.html -->
552
- <auro-input activeLabel bordered>
591
+ <auro-input activeLabel>
553
592
  <span slot="label">Address</span>
554
- <span slot="helptext">Please enter your home address.</span>
593
+ <span slot="helpText">Please enter your home address.</span>
555
594
  </auro-input>
556
595
  <!-- AURO-GENERATED-CONTENT:END -->
557
596
  </div>
@@ -561,9 +600,9 @@ Example use cases for auro-input support the `activeLabel` attribute. If set, th
561
600
  <!-- The below code snippet is automatically added from ../apiExamples/activeLabel.html -->
562
601
 
563
602
  ```html
564
- <auro-input activeLabel bordered>
603
+ <auro-input activeLabel>
565
604
  <span slot="label">Address</span>
566
- <span slot="helptext">Please enter your home address.</span>
605
+ <span slot="helpText">Please enter your home address.</span>
567
606
  </auro-input>
568
607
  ```
569
608
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -575,9 +614,9 @@ For use cases where the field is `required`, but live validation is not wanted,
575
614
  <div class="exampleWrapper">
576
615
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/noValidate.html) -->
577
616
  <!-- The below content is automatically added from ../apiExamples/noValidate.html -->
578
- <auro-input noValidate required bordered>
617
+ <auro-input noValidate required>
579
618
  <span slot="label">Address</span>
580
- <span slot="helptext">Please enter your home address.</span>
619
+ <span slot="helpText">Please enter your home address.</span>
581
620
  </auro-input>
582
621
  <!-- AURO-GENERATED-CONTENT:END -->
583
622
  </div>
@@ -587,9 +626,9 @@ For use cases where the field is `required`, but live validation is not wanted,
587
626
  <!-- The below code snippet is automatically added from ../apiExamples/noValidate.html -->
588
627
 
589
628
  ```html
590
- <auro-input noValidate required bordered>
629
+ <auro-input noValidate required>
591
630
  <span slot="label">Address</span>
592
- <span slot="helptext">Please enter your home address.</span>
631
+ <span slot="helpText">Please enter your home address.</span>
593
632
  </auro-input>
594
633
  ```
595
634
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -608,7 +647,10 @@ See [IMask](https://imask.js.org/) for more information on how to configure a ma
608
647
  <div class="exampleWrapper">
609
648
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/format.html) -->
610
649
  <!-- The below content is automatically added from ../apiExamples/format.html -->
611
- <auro-input bordered format="47440000"></auro-input>
650
+ <auro-input format="47440000">
651
+ <span slot="label">Custom format</span>
652
+ <span slot="helpText">Format is: 47440000</span>
653
+ </auro-input>
612
654
  <!-- AURO-GENERATED-CONTENT:END -->
613
655
  </div>
614
656
  <auro-accordion alignRight>
@@ -617,7 +659,10 @@ See [IMask](https://imask.js.org/) for more information on how to configure a ma
617
659
  <!-- The below code snippet is automatically added from ../apiExamples/format.html -->
618
660
 
619
661
  ```html
620
- <auro-input bordered format="47440000"></auro-input>
662
+ <auro-input format="47440000">
663
+ <span slot="label">Custom format</span>
664
+ <span slot="helpText">Format is: 47440000</span>
665
+ </auro-input>
621
666
  ```
622
667
  <!-- AURO-GENERATED-CONTENT:END -->
623
668
  </auro-accordion>
@@ -636,9 +681,9 @@ When the validity check fails, the validityState equals `valueMissing`. The erro
636
681
  <div class="exampleWrapper">
637
682
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/required.html) -->
638
683
  <!-- The below content is automatically added from ../apiExamples/required.html -->
639
- <auro-input required bordered placeholder="John Doe">
684
+ <auro-input required placeholder="John Doe">
640
685
  <span slot="label">Full name</span>
641
- <span slot="helptext">Please enter your full name.</span>
686
+ <span slot="helpText">Please enter your full name.</span>
642
687
  </auro-input>
643
688
  <!-- AURO-GENERATED-CONTENT:END -->
644
689
  </div>
@@ -648,9 +693,37 @@ When the validity check fails, the validityState equals `valueMissing`. The erro
648
693
  <!-- The below code snippet is automatically added from ../apiExamples/required.html -->
649
694
 
650
695
  ```html
651
- <auro-input required bordered placeholder="John Doe">
696
+ <auro-input required placeholder="John Doe">
652
697
  <span slot="label">Full name</span>
653
- <span slot="helptext">Please enter your full name.</span>
698
+ <span slot="helpText">Please enter your full name.</span>
699
+ </auro-input>
700
+ ```
701
+ <!-- AURO-GENERATED-CONTENT:END -->
702
+ </auro-accordion>
703
+
704
+ ### Custom optional label <a name="optionalLabel"></a>
705
+ The `<auro-input>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
706
+
707
+ <div class="exampleWrapper">
708
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
709
+ <!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
710
+ <auro-input placeholder="John Doe" bordered>
711
+ <span slot="label">Full name</span>
712
+ <span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
713
+ <span slot="helpText">Please enter your full name.</span>
714
+ </auro-input>
715
+ <!-- AURO-GENERATED-CONTENT:END -->
716
+ </div>
717
+ <auro-accordion alignRight>
718
+ <span slot="trigger">See code</span>
719
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
720
+ <!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
721
+
722
+ ```html
723
+ <auro-input placeholder="John Doe" bordered>
724
+ <span slot="label">Full name</span>
725
+ <span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
726
+ <span slot="helpText">Please enter your full name.</span>
654
727
  </auro-input>
655
728
  ```
656
729
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -662,9 +735,9 @@ Use the `validateOnInput` attribute to enable live validation on the `input` eve
662
735
  <div class="exampleWrapper">
663
736
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/validateOnInput.html) -->
664
737
  <!-- The below content is automatically added from ../apiExamples/validateOnInput.html -->
665
- <auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
738
+ <auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
666
739
  <span slot="label">Full Name</span>
667
- <span slot="helptext">Please enter your full name as it appears on the card.</span>
740
+ <span slot="helpText">Please enter your full name as it appears on the card.</span>
668
741
  </auro-input>
669
742
  <!-- AURO-GENERATED-CONTENT:END -->
670
743
  </div>
@@ -674,9 +747,9 @@ Use the `validateOnInput` attribute to enable live validation on the `input` eve
674
747
  <!-- The below code snippet is automatically added from ../apiExamples/validateOnInput.html -->
675
748
 
676
749
  ```html
677
- <auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
750
+ <auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
678
751
  <span slot="label">Full Name</span>
679
- <span slot="helptext">Please enter your full name as it appears on the card.</span>
752
+ <span slot="helpText">Please enter your full name as it appears on the card.</span>
680
753
  </auro-input>
681
754
  ```
682
755
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -690,9 +763,9 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
690
763
  <div class="exampleWrapper">
691
764
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/setCustomValidity.html) -->
692
765
  <!-- The below content is automatically added from ../apiExamples/setCustomValidity.html -->
693
- <auro-input bordered required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
766
+ <auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
694
767
  <span slot="label">Full Name</span>
695
- <span slot="helptext">Please enter your full name.</span>
768
+ <span slot="helpText">Please enter your full name.</span>
696
769
  </auro-input>
697
770
  <!-- AURO-GENERATED-CONTENT:END -->
698
771
  </div>
@@ -702,9 +775,9 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
702
775
  <!-- The below code snippet is automatically added from ../apiExamples/setCustomValidity.html -->
703
776
 
704
777
  ```html
705
- <auro-input bordered required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
778
+ <auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
706
779
  <span slot="label">Full Name</span>
707
- <span slot="helptext">Please enter your full name.</span>
780
+ <span slot="helpText">Please enter your full name.</span>
708
781
  </auro-input>
709
782
  ```
710
783
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -721,9 +794,9 @@ A custom error message can be set using the `error` attribute, or it can be used
721
794
  <auro-button id="setCustomErrorBtn">Set Custom Error</auro-button>
722
795
  <auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
723
796
  <br /><br />
724
- <auro-input id="setCustomErrorExample" error="Initial error attribute value" bordered>
797
+ <auro-input id="setCustomErrorExample" error="Initial error attribute value">
725
798
  <span slot="label">Name</span>
726
- <span slot="helptext">Please enter your full name.</span>
799
+ <span slot="helpText">Please enter your full name.</span>
727
800
  </auro-input>
728
801
  <!-- AURO-GENERATED-CONTENT:END -->
729
802
  </div>
@@ -736,9 +809,9 @@ A custom error message can be set using the `error` attribute, or it can be used
736
809
  <auro-button id="setCustomErrorBtn">Set Custom Error</auro-button>
737
810
  <auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
738
811
  <br /><br />
739
- <auro-input id="setCustomErrorExample" error="Initial error attribute value" bordered>
812
+ <auro-input id="setCustomErrorExample" error="Initial error attribute value">
740
813
  <span slot="label">Name</span>
741
- <span slot="helptext">Please enter your full name.</span>
814
+ <span slot="helpText">Please enter your full name.</span>
742
815
  </auro-input>
743
816
  ```
744
817
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -770,9 +843,9 @@ export function customError() {
770
843
  <auro-button onDark id="setCustomErrorBtnOnDark">Set Custom Error</auro-button>
771
844
  <auro-button onDark id="setCustomErrorClearBtnOnDark">Clear Custom Error</auro-button>
772
845
  <br /><br />
773
- <auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value" bordered>
846
+ <auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value">
774
847
  <span slot="label">Name</span>
775
- <span slot="helptext">Please enter your full name.</span>
848
+ <span slot="helpText">Please enter your full name.</span>
776
849
  </auro-input>
777
850
  <!-- AURO-GENERATED-CONTENT:END -->
778
851
  </div>
@@ -785,9 +858,9 @@ export function customError() {
785
858
  <auro-button onDark id="setCustomErrorBtnOnDark">Set Custom Error</auro-button>
786
859
  <auro-button onDark id="setCustomErrorClearBtnOnDark">Clear Custom Error</auro-button>
787
860
  <br /><br />
788
- <auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value" bordered>
861
+ <auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value">
789
862
  <span slot="label">Name</span>
790
- <span slot="helptext">Please enter your full name.</span>
863
+ <span slot="helpText">Please enter your full name.</span>
791
864
  </auro-input>
792
865
  ```
793
866
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -822,18 +895,18 @@ Default help text will be added to the input `type="password"` if custom help te
822
895
  <div class="exampleWrapper">
823
896
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
824
897
  <!-- The below content is automatically added from ../apiExamples/password.html -->
825
- <auro-input type="password" required bordered>
898
+ <auro-input type="password" required>
826
899
  <span slot="label">Password</span>
827
- <span slot="helptext">Please enter a secure password.</span>
900
+ <span slot="helpText">Please enter a secure password.</span>
828
901
  </auro-input>
829
902
  <!-- AURO-GENERATED-CONTENT:END -->
830
903
  </div>
831
904
  <div class="exampleWrapper--ondark" aria-hidden>
832
905
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/onDarkPassword.html) -->
833
906
  <!-- The below content is automatically added from ../apiExamples/onDarkPassword.html -->
834
- <auro-input onDark type="password" required bordered>
907
+ <auro-input onDark type="password" required>
835
908
  <span slot="label">Password</span>
836
- <span slot="helptext">Please enter a secure password.</span>
909
+ <span slot="helpText">Please enter a secure password.</span>
837
910
  </auro-input>
838
911
  <!-- AURO-GENERATED-CONTENT:END -->
839
912
  </div>
@@ -843,9 +916,9 @@ Default help text will be added to the input `type="password"` if custom help te
843
916
  <!-- The below code snippet is automatically added from ../apiExamples/onDarkPassword.html -->
844
917
 
845
918
  ```html
846
- <auro-input onDark type="password" required bordered>
919
+ <auro-input onDark type="password" required>
847
920
  <span slot="label">Password</span>
848
- <span slot="helptext">Please enter a secure password.</span>
921
+ <span slot="helpText">Please enter a secure password.</span>
849
922
  </auro-input>
850
923
  ```
851
924
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -860,9 +933,9 @@ Default help text will be added to the input `type="email"` if custom help text
860
933
  <div class="exampleWrapper">
861
934
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/email.html) -->
862
935
  <!-- The below content is automatically added from ../apiExamples/email.html -->
863
- <auro-input type="email" bordered required>
936
+ <auro-input type="email" required>
864
937
  <span slot="label">Email address</span>
865
- <span slot="helptext">Please enter your email address.</span>
938
+ <span slot="helpText">Please enter your email address.</span>
866
939
  </auro-input>
867
940
  <!-- AURO-GENERATED-CONTENT:END -->
868
941
  </div>
@@ -872,9 +945,9 @@ Default help text will be added to the input `type="email"` if custom help text
872
945
  <!-- The below code snippet is automatically added from ../apiExamples/email.html -->
873
946
 
874
947
  ```html
875
- <auro-input type="email" bordered required>
948
+ <auro-input type="email" required>
876
949
  <span slot="label">Email address</span>
877
- <span slot="helptext">Please enter your email address.</span>
950
+ <span slot="helpText">Please enter your email address.</span>
878
951
  </auro-input>
879
952
  ```
880
953
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -889,9 +962,9 @@ This `number` input type should only be used for incremental numeric values, mea
889
962
  <div class="exampleWrapper">
890
963
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/number.html) -->
891
964
  <!-- The below content is automatically added from ../apiExamples/number.html -->
892
- <auro-input type="number" bordered required>
965
+ <auro-input type="number" required>
893
966
  <span slot="label">Number of Passengers</span>
894
- <span slot="helptext">Please enter the number of passengers.</span>
967
+ <span slot="helpText">Please enter the number of passengers.</span>
895
968
  </auro-input>
896
969
  <!-- AURO-GENERATED-CONTENT:END -->
897
970
  </div>
@@ -901,9 +974,9 @@ This `number` input type should only be used for incremental numeric values, mea
901
974
  <!-- The below code snippet is automatically added from ../apiExamples/number.html -->
902
975
 
903
976
  ```html
904
- <auro-input type="number" bordered required>
977
+ <auro-input type="number" required>
905
978
  <span slot="label">Number of Passengers</span>
906
- <span slot="helptext">Please enter the number of passengers.</span>
979
+ <span slot="helpText">Please enter the number of passengers.</span>
907
980
  </auro-input>
908
981
  ```
909
982
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -918,9 +991,9 @@ Default help text will be added to the input `type="credit-card"` if custom help
918
991
  <div class="exampleWrapper">
919
992
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/creditCard.html) -->
920
993
  <!-- The below content is automatically added from ../apiExamples/creditCard.html -->
921
- <auro-input type="credit-card" bordered required>
994
+ <auro-input type="credit-card" required>
922
995
  <span slot="label">Card number</span>
923
- <span slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</span>
996
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
924
997
  </auro-input>
925
998
  <!-- AURO-GENERATED-CONTENT:END -->
926
999
  </div>
@@ -930,9 +1003,9 @@ Default help text will be added to the input `type="credit-card"` if custom help
930
1003
  <!-- The below code snippet is automatically added from ../apiExamples/creditCard.html -->
931
1004
 
932
1005
  ```html
933
- <auro-input type="credit-card" bordered required>
1006
+ <auro-input type="credit-card" required>
934
1007
  <span slot="label">Card number</span>
935
- <span slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1008
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
936
1009
  </auro-input>
937
1010
  ```
938
1011
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -944,9 +1017,9 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
944
1017
  <div class="exampleWrapper">
945
1018
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/creditCardIcon.html) -->
946
1019
  <!-- The below content is automatically added from ../apiExamples/creditCardIcon.html -->
947
- <auro-input icon type="credit-card" bordered required>
1020
+ <auro-input icon type="credit-card" required>
948
1021
  <span slot="label">Card number</span>
949
- <span slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1022
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
950
1023
  </auro-input>
951
1024
  <!-- AURO-GENERATED-CONTENT:END -->
952
1025
  </div>
@@ -957,9 +1030,9 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
957
1030
  <!-- The below code snippet is automatically added from ../apiExamples/creditCardIcon.html -->
958
1031
 
959
1032
  ```html
960
- <auro-input icon type="credit-card" bordered required>
1033
+ <auro-input icon type="credit-card" required>
961
1034
  <span slot="label">Card number</span>
962
- <span slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1035
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
963
1036
  </auro-input>
964
1037
  ```
965
1038
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -972,7 +1045,10 @@ Use the `type="tel"` attribute for a phone number formatted input. The default f
972
1045
  <div class="exampleWrapper">
973
1046
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/tel.html) -->
974
1047
  <!-- The below content is automatically added from ../apiExamples/tel.html -->
975
- <auro-input type="tel" bordered></auro-input>
1048
+ <auro-input type="tel">
1049
+ <span slot="label">Telephone</span>
1050
+ <span slot="helpText">Help Text</span>
1051
+ </auro-input>
976
1052
  <!-- AURO-GENERATED-CONTENT:END -->
977
1053
  </div>
978
1054
  <auro-accordion alignRight>
@@ -981,7 +1057,10 @@ Use the `type="tel"` attribute for a phone number formatted input. The default f
981
1057
  <!-- The below code snippet is automatically added from ../apiExamples/tel.html -->
982
1058
 
983
1059
  ```html
984
- <auro-input type="tel" bordered></auro-input>
1060
+ <auro-input type="tel">
1061
+ <span slot="label">Telephone</span>
1062
+ <span slot="helpText">Help Text</span>
1063
+ </auro-input>
985
1064
  ```
986
1065
  <!-- AURO-GENERATED-CONTENT:END -->
987
1066
  </auro-accordion>
@@ -993,7 +1072,10 @@ Use the `format` attribute to set a custom phone number format.
993
1072
  <div class="exampleWrapper">
994
1073
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/telFormat.html) -->
995
1074
  <!-- The below content is automatically added from ../apiExamples/telFormat.html -->
996
- <auro-input type="tel" format="+22 999 99 9999" bordered></auro-input>
1075
+ <auro-input type="tel" format="+22 999 99 9999">
1076
+ <span slot="label">Telephone</span>
1077
+ <span slot="helpText">Help Text</span>
1078
+ </auro-input>
997
1079
  <!-- AURO-GENERATED-CONTENT:END -->
998
1080
  </div>
999
1081
  <auro-accordion alignRight>
@@ -1002,7 +1084,10 @@ Use the `format` attribute to set a custom phone number format.
1002
1084
  <!-- The below code snippet is automatically added from ../apiExamples/telFormat.html -->
1003
1085
 
1004
1086
  ```html
1005
- <auro-input type="tel" format="+22 999 99 9999" bordered></auro-input>
1087
+ <auro-input type="tel" format="+22 999 99 9999">
1088
+ <span slot="label">Telephone</span>
1089
+ <span slot="helpText">Help Text</span>
1090
+ </auro-input>
1006
1091
  ```
1007
1092
  <!-- AURO-GENERATED-CONTENT:END -->
1008
1093
  </auro-accordion>
@@ -1014,8 +1099,9 @@ Use the `type="date"` attribute for a date formatted input. The default date for
1014
1099
  <div class="exampleWrapper">
1015
1100
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthDayYear.html) -->
1016
1101
  <!-- The below content is automatically added from ../apiExamples/monthDayYear.html -->
1017
- <auro-input type="date" bordered>
1102
+ <auro-input type="date">
1018
1103
  <span slot="label">Arrival date</span>
1104
+ <span slot="helpText">Help Text</span>
1019
1105
  </auro-input>
1020
1106
  <!-- AURO-GENERATED-CONTENT:END -->
1021
1107
  </div>
@@ -1025,8 +1111,9 @@ Use the `type="date"` attribute for a date formatted input. The default date for
1025
1111
  <!-- The below code snippet is automatically added from ../apiExamples/monthDayYear.html -->
1026
1112
 
1027
1113
  ```html
1028
- <auro-input type="date" bordered>
1114
+ <auro-input type="date">
1029
1115
  <span slot="label">Arrival date</span>
1116
+ <span slot="helpText">Help Text</span>
1030
1117
  </auro-input>
1031
1118
  ```
1032
1119
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1039,8 +1126,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1039
1126
  <div class="exampleWrapper">
1040
1127
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/yearMonthDay.html) -->
1041
1128
  <!-- The below content is automatically added from ../apiExamples/yearMonthDay.html -->
1042
- <auro-input type="date" format="yyyy/mm/dd" bordered>
1129
+ <auro-input type="date" format="yyyy/mm/dd">
1043
1130
  <span slot="label">Arrival date</span>
1131
+ <span slot="helpText">Help Text</span>
1044
1132
  </auro-input>
1045
1133
  <!-- AURO-GENERATED-CONTENT:END -->
1046
1134
  </div>
@@ -1050,8 +1138,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1050
1138
  <!-- The below code snippet is automatically added from ../apiExamples/yearMonthDay.html -->
1051
1139
 
1052
1140
  ```html
1053
- <auro-input type="date" format="yyyy/mm/dd" bordered>
1141
+ <auro-input type="date" format="yyyy/mm/dd">
1054
1142
  <span slot="label">Arrival date</span>
1143
+ <span slot="helpText">Help Text</span>
1055
1144
  </auro-input>
1056
1145
  ```
1057
1146
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1059,8 +1148,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1059
1148
  <div class="exampleWrapper">
1060
1149
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthYear.html) -->
1061
1150
  <!-- The below content is automatically added from ../apiExamples/monthYear.html -->
1062
- <auro-input type="date" format="mm/yy" bordered>
1151
+ <auro-input type="date" format="mm/yy">
1063
1152
  <span slot="label">Expiration date</span>
1153
+ <span slot="helpText">Help Text</span>
1064
1154
  </auro-input>
1065
1155
  <!-- AURO-GENERATED-CONTENT:END -->
1066
1156
  </div>
@@ -1070,8 +1160,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1070
1160
  <!-- The below code snippet is automatically added from ../apiExamples/monthYear.html -->
1071
1161
 
1072
1162
  ```html
1073
- <auro-input type="date" format="mm/yy" bordered>
1163
+ <auro-input type="date" format="mm/yy">
1074
1164
  <span slot="label">Expiration date</span>
1165
+ <span slot="helpText">Help Text</span>
1075
1166
  </auro-input>
1076
1167
  ```
1077
1168
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1079,8 +1170,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1079
1170
  <div class="exampleWrapper">
1080
1171
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/day.html) -->
1081
1172
  <!-- The below content is automatically added from ../apiExamples/day.html -->
1082
- <auro-input type="date" format="dd" bordered>
1173
+ <auro-input type="date" format="dd">
1083
1174
  <span slot="label">Day</span>
1175
+ <span slot="helpText">Help Text</span>
1084
1176
  </auro-input>
1085
1177
  <!-- AURO-GENERATED-CONTENT:END -->
1086
1178
  </div>
@@ -1090,8 +1182,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1090
1182
  <!-- The below code snippet is automatically added from ../apiExamples/day.html -->
1091
1183
 
1092
1184
  ```html
1093
- <auro-input type="date" format="dd" bordered>
1185
+ <auro-input type="date" format="dd">
1094
1186
  <span slot="label">Day</span>
1187
+ <span slot="helpText">Help Text</span>
1095
1188
  </auro-input>
1096
1189
  ```
1097
1190
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1108,9 +1201,9 @@ Use the `reset()` method to reset the `<auro-input>`'s `value` and `validity` st
1108
1201
  <!-- The below content is automatically added from ../apiExamples/resetState.html -->
1109
1202
  <auro-button id="resetStateBtn">Reset</auro-button>
1110
1203
  <br /><br />
1111
- <auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
1204
+ <auro-input id="resetStateExample" minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
1112
1205
  <span slot="label">Full Name</span>
1113
- <span slot="helptext">Please enter your full name.</span>
1206
+ <span slot="helpText">Please enter your full name.</span>
1114
1207
  </auro-input>
1115
1208
  <!-- AURO-GENERATED-CONTENT:END -->
1116
1209
  </div>
@@ -1122,9 +1215,9 @@ Use the `reset()` method to reset the `<auro-input>`'s `value` and `validity` st
1122
1215
  ```html
1123
1216
  <auro-button id="resetStateBtn">Reset</auro-button>
1124
1217
  <br /><br />
1125
- <auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
1218
+ <auro-input id="resetStateExample" minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
1126
1219
  <span slot="label">Full Name</span>
1127
- <span slot="helptext">Please enter your full name.</span>
1220
+ <span slot="helpText">Please enter your full name.</span>
1128
1221
  </auro-input>
1129
1222
  ```
1130
1223
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1150,12 +1243,14 @@ Example illustrates using a JavaScript function attached to an `auro-button` com
1150
1243
  <div class="exampleWrapper">
1151
1244
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/swapValue.html) -->
1152
1245
  <!-- The below content is automatically added from ../apiExamples/swapValue.html -->
1153
- <auro-input id="swapExampleLeft" bordered>
1246
+ <auro-input id="swapExampleLeft">
1154
1247
  <span slot="label">Left Input</span>
1248
+ <span slot="helpText">Help Text</span>
1155
1249
  </auro-input>
1156
1250
  <auro-button id="swapExampleBtn">Swap Values</auro-button>
1157
- <auro-input id="swapExampleRight" bordered>
1251
+ <auro-input id="swapExampleRight">
1158
1252
  <span slot="label">Right Input</span>
1253
+ <span slot="helpText">Help Text</span>
1159
1254
  </auro-input>
1160
1255
  <style>
1161
1256
  #swapExampleWrapper {
@@ -1180,12 +1275,14 @@ Example illustrates using a JavaScript function attached to an `auro-button` com
1180
1275
  <!-- The below code snippet is automatically added from ../apiExamples/swapValue.html -->
1181
1276
 
1182
1277
  ```html
1183
- <auro-input id="swapExampleLeft" bordered>
1278
+ <auro-input id="swapExampleLeft">
1184
1279
  <span slot="label">Left Input</span>
1280
+ <span slot="helpText">Help Text</span>
1185
1281
  </auro-input>
1186
1282
  <auro-button id="swapExampleBtn">Swap Values</auro-button>
1187
- <auro-input id="swapExampleRight" bordered>
1283
+ <auro-input id="swapExampleRight">
1188
1284
  <span slot="label">Right Input</span>
1285
+ <span slot="helpText">Help Text</span>
1189
1286
  </auro-input>
1190
1287
  <style>
1191
1288
  #swapExampleWrapper {
@@ -1233,7 +1330,9 @@ The component may be restyled using the following code sample and changing the v
1233
1330
  <!-- The below code snippet is automatically added from ../src/styles/tokens.scss -->
1234
1331
 
1235
1332
  ```scss
1236
- @use "@aurodesignsystem/design-tokens/dist/alaska/SCSSVariables--alaska" as v;
1333
+ /* stylelint-disable custom-property-empty-line-before */
1334
+
1335
+ @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
1237
1336
 
1238
1337
  $ds-basic-color-border-bold: #585e67;
1239
1338
 
@@ -1247,7 +1346,6 @@ $ds-basic-color-border-bold: #585e67;
1247
1346
  --ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1248
1347
  --ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
1249
1348
 
1250
- //--ds-auro-input-outline-color: transparent;
1251
1349
  --ds-auro-input-outline-color: transparent;
1252
1350
  }
1253
1351
 
@@ -1259,7 +1357,7 @@ $ds-basic-color-border-bold: #585e67;
1259
1357
  --ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
1260
1358
  --ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
1261
1359
  --ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
1262
- --ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #{v.$ds-advanced-color-state-error-inverse});
1360
+ --ds-auro-input-error-icon-color: var(--ds-basic-color-status-error-subtle, #{v.$ds-basic-color-status-error-subtle});
1263
1361
 
1264
1362
  --ds-auro-input-outline-color: transparent;
1265
1363
  }