@aurodesignsystem/auro-formkit 4.0.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/CHANGELOG.md +193 -2
  2. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
  3. package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
  4. package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
  5. package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
  6. package/components/bibtemplate/dist/index.js +1184 -105
  7. package/components/bibtemplate/dist/registered.js +1184 -105
  8. package/components/checkbox/demo/api.html +16 -10
  9. package/components/checkbox/demo/api.md +52 -17
  10. package/components/checkbox/demo/api.min.js +66 -33
  11. package/components/checkbox/demo/index.html +16 -10
  12. package/components/checkbox/demo/index.min.js +66 -33
  13. package/components/checkbox/demo/readme.html +16 -9
  14. package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
  15. package/components/checkbox/dist/auro-checkbox.d.ts +8 -1
  16. package/components/checkbox/dist/index.js +65 -32
  17. package/components/checkbox/dist/registered.js +65 -32
  18. package/components/combobox/README.md +2 -0
  19. package/components/combobox/demo/api.html +16 -10
  20. package/components/combobox/demo/api.md +124 -7
  21. package/components/combobox/demo/api.min.js +4542 -1330
  22. package/components/combobox/demo/index.html +16 -10
  23. package/components/combobox/demo/index.md +108 -4
  24. package/components/combobox/demo/index.min.js +4542 -1330
  25. package/components/combobox/demo/readme.html +16 -9
  26. package/components/combobox/demo/readme.md +2 -0
  27. package/components/combobox/dist/auro-combobox.d.ts +81 -18
  28. package/components/combobox/dist/index.js +4588 -1520
  29. package/components/combobox/dist/registered.js +4588 -1520
  30. package/components/counter/demo/api.html +17 -10
  31. package/components/counter/demo/api.md +167 -21
  32. package/components/counter/demo/api.min.js +3621 -866
  33. package/components/counter/demo/index.html +17 -10
  34. package/components/counter/demo/index.md +191 -34
  35. package/components/counter/demo/index.min.js +3621 -866
  36. package/components/counter/demo/readme.html +16 -9
  37. package/components/counter/dist/auro-counter-button.d.ts +2 -0
  38. package/components/counter/dist/auro-counter-group.d.ts +162 -11
  39. package/components/counter/dist/auro-counter.d.ts +16 -0
  40. package/components/counter/dist/helptextVersion.d.ts +2 -0
  41. package/components/counter/dist/iconVersion.d.ts +1 -1
  42. package/components/counter/dist/index.js +3619 -864
  43. package/components/counter/dist/registered.js +3619 -864
  44. package/components/datepicker/README.md +2 -1
  45. package/components/datepicker/demo/api.html +16 -10
  46. package/components/datepicker/demo/api.md +80 -30
  47. package/components/datepicker/demo/api.min.js +14795 -10365
  48. package/components/datepicker/demo/index.html +16 -10
  49. package/components/datepicker/demo/index.md +96 -4
  50. package/components/datepicker/demo/index.min.js +14795 -10365
  51. package/components/datepicker/demo/readme.html +16 -9
  52. package/components/datepicker/demo/readme.md +2 -1
  53. package/components/datepicker/dist/auro-datepicker.d.ts +163 -4
  54. package/components/datepicker/dist/buttonVersion.d.ts +1 -1
  55. package/components/datepicker/dist/iconVersion.d.ts +2 -0
  56. package/components/datepicker/dist/index.js +14916 -10486
  57. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  58. package/components/datepicker/dist/registered.js +14916 -10486
  59. package/components/dropdown/demo/api.html +16 -10
  60. package/components/dropdown/demo/api.md +94 -262
  61. package/components/dropdown/demo/api.min.js +738 -259
  62. package/components/dropdown/demo/index.html +16 -10
  63. package/components/dropdown/demo/index.md +93 -266
  64. package/components/dropdown/demo/index.min.js +738 -259
  65. package/components/dropdown/demo/readme.html +16 -9
  66. package/components/dropdown/dist/auro-dropdown.d.ts +92 -73
  67. package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
  68. package/components/dropdown/dist/index.js +710 -231
  69. package/components/dropdown/dist/registered.js +710 -231
  70. package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
  71. package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
  72. package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
  73. package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
  74. package/components/form/demo/api.html +16 -9
  75. package/components/form/demo/api.md +1 -1
  76. package/components/form/demo/api.min.js +3 -3
  77. package/components/form/demo/autocomplete.html +19 -3
  78. package/components/form/demo/index.html +16 -9
  79. package/components/form/demo/index.min.js +3 -3
  80. package/components/form/demo/readme.html +16 -9
  81. package/components/form/demo/working.html +19 -13
  82. package/components/form/dist/auro-form.d.ts +1 -1
  83. package/components/form/dist/index.js +2 -2
  84. package/components/form/dist/registered.js +2 -2
  85. package/components/helptext/dist/auro-helptext.d.ts +0 -2
  86. package/components/helptext/dist/index.js +2 -4
  87. package/components/helptext/dist/registered.js +2 -4
  88. package/components/input/README.md +6 -2
  89. package/components/input/demo/api.html +16 -10
  90. package/components/input/demo/api.md +258 -144
  91. package/components/input/demo/api.min.js +1550 -497
  92. package/components/input/demo/index.html +17 -11
  93. package/components/input/demo/index.md +95 -27
  94. package/components/input/demo/index.min.js +1549 -496
  95. package/components/input/demo/readme.html +16 -9
  96. package/components/input/demo/readme.md +6 -2
  97. package/components/input/dist/auro-input.d.ts +139 -3
  98. package/components/input/dist/base-input.d.ts +80 -26
  99. package/components/input/dist/buttonVersion.d.ts +1 -1
  100. package/components/input/dist/iconVersion.d.ts +1 -1
  101. package/components/input/dist/index.js +1504 -451
  102. package/components/input/dist/registered.js +1504 -451
  103. package/components/input/dist/styles/classic/color-css.d.ts +2 -0
  104. package/components/input/dist/styles/classic/style-css.d.ts +2 -0
  105. package/components/input/dist/styles/default/borders-css.d.ts +2 -0
  106. package/components/input/dist/styles/default/color-css.d.ts +2 -0
  107. package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
  108. package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
  109. package/components/input/dist/styles/default/style-css.d.ts +2 -0
  110. package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
  111. package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
  112. package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
  113. package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
  114. package/components/layoutElement/dist/auroElement.d.ts +34 -0
  115. package/components/layoutElement/dist/index.d.ts +2 -0
  116. package/components/layoutElement/dist/index.js +98 -0
  117. package/components/layoutElement/dist/registered.js +98 -0
  118. package/components/menu/demo/api.html +17 -10
  119. package/components/menu/demo/api.md +65 -8
  120. package/components/menu/demo/api.min.js +304 -65
  121. package/components/menu/demo/index.html +16 -10
  122. package/components/menu/demo/index.min.js +304 -65
  123. package/components/menu/demo/readme.html +16 -9
  124. package/components/menu/dist/auro-menu.d.ts +53 -7
  125. package/components/menu/dist/auro-menuoption.d.ts +21 -3
  126. package/components/menu/dist/iconVersion.d.ts +1 -1
  127. package/components/menu/dist/index.js +289 -50
  128. package/components/menu/dist/registered.js +289 -50
  129. package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
  130. package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
  131. package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
  132. package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
  133. package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
  134. package/components/radio/demo/api.html +16 -10
  135. package/components/radio/demo/api.md +41 -9
  136. package/components/radio/demo/api.min.js +93 -95
  137. package/components/radio/demo/index.html +16 -10
  138. package/components/radio/demo/index.min.js +93 -95
  139. package/components/radio/demo/readme.html +16 -9
  140. package/components/radio/dist/auro-radio-group.d.ts +1 -1
  141. package/components/radio/dist/auro-radio.d.ts +11 -12
  142. package/components/radio/dist/index.js +92 -94
  143. package/components/radio/dist/registered.js +92 -94
  144. package/components/select/README.md +1 -0
  145. package/components/select/demo/api.html +16 -10
  146. package/components/select/demo/api.js +0 -2
  147. package/components/select/demo/api.md +156 -114
  148. package/components/select/demo/api.min.js +3126 -657
  149. package/components/select/demo/index.html +17 -10
  150. package/components/select/demo/index.md +398 -62
  151. package/components/select/demo/index.min.js +3129 -648
  152. package/components/select/demo/readme.html +16 -9
  153. package/components/select/demo/readme.md +1 -0
  154. package/components/select/dist/auro-select.d.ts +173 -18
  155. package/components/select/dist/helptextVersion.d.ts +2 -0
  156. package/components/select/dist/index.js +3128 -791
  157. package/components/select/dist/registered.js +3128 -791
  158. package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
  159. package/components/select/dist/styles/tokens-css.d.ts +2 -0
  160. package/package.json +33 -32
  161. package/packages/build-tools/src/postinstall.mjs +0 -12
  162. /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
  163. /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
  164. /package/components/{input/dist/styles/borders-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
  165. /package/components/{input/dist/styles/input-css.d.ts → datepicker/dist/styles/classic/color-css.d.ts} +0 -0
  166. /package/components/{input/dist/styles/label-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
  167. /package/components/{input/dist/styles/notificationIcons-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
  168. /package/components/{menu/dist/styles/color-menu-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
  169. /package/components/{menu/dist/styles/color-menuoption-css.d.ts → datepicker/dist/styles/snowflake/style-css.d.ts} +0 -0
  170. /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
  171. /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
  172. /package/components/{menu/dist/styles/tokens-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
@@ -5,13 +5,6 @@
5
5
 
6
6
  Generate unique names for dependency components.
7
7
 
8
- ## Attributes
9
-
10
- | Attribute | Type | Description |
11
- |--------------|-----------|--------------------------------|
12
- | [bordered](#bordered) | `Boolean` | Applies bordered UI variant. |
13
- | [borderless](#borderless) | `Boolean` | Applies borderless UI variant. |
14
-
15
8
  ## Properties
16
9
 
17
10
  | Property | Attribute | Type | Default | Description |
@@ -37,10 +30,11 @@ Generate unique names for dependency components.
37
30
  | [min](#min) | `min` | `string` | "undefined" | The minimum value allowed. This only applies for inputs with a type of `number` and all date formats. |
38
31
  | [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`. |
39
32
  | [name](#name) | `name` | `string` | | Populates the `name` attribute on the input. |
33
+ | [nested](#nested) | `nested` | `boolean` | | Sets styles for nested operation - removes borders, hides help + error text, and<br />hides accents. |
40
34
  | [noValidate](#noValidate) | `noValidate` | `boolean` | false | If set, disables auto-validation on blur. |
41
35
  | [onDark](#onDark) | `onDark` | `boolean` | false | Sets onDark styles on input. |
42
36
  | [pattern](#pattern) | `pattern` | `string` | | Specifies a regular expression the form control's value should match. |
43
- | [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text, only supported by date input formats. |
37
+ | [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text. |
44
38
  | [readonly](#readonly) | `readonly` | `boolean` | | Makes the input read-only, but can be set programmatically. |
45
39
  | [required](#required) | `required` | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
46
40
  | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
@@ -52,6 +46,7 @@ Generate unique names for dependency components.
52
46
  | [setCustomValidityTooLong](#setCustomValidityTooLong) | `setCustomValidityTooLong` | `string` | | Custom help text message to display when validity = `tooLong`. |
53
47
  | [setCustomValidityTooShort](#setCustomValidityTooShort) | `setCustomValidityTooShort` | `string` | | Custom help text message to display when validity = `tooShort`. |
54
48
  | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
49
+ | [simple](#simple) | `simple` | `boolean` | | Simple makes the input render without a border. |
55
50
  | [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`. |
56
51
  | [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`. |
57
52
  | [validateOnInput](#validateOnInput) | `validateOnInput` | `boolean` | | Sets validation mode to re-eval with each input. |
@@ -62,7 +57,9 @@ Generate unique names for dependency components.
62
57
 
63
58
  | Method | Type | Description |
64
59
  |------------|----------------------------------------|--------------------------------------------------|
65
- | [reset](#reset) | `(): void` | Resets component to initial state. |
60
+ | [clear](#clear) | `(): void` | Clears the input value. |
61
+ | [focus](#focus) | `(): void` | Function to set element focus. |
62
+ | [reset](#reset) | `(): void` | Resets component to initial state, including resetting the touched state and validity. |
66
63
  | [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
67
64
 
68
65
  ## Events
@@ -75,18 +72,26 @@ Generate unique names for dependency components.
75
72
 
76
73
  ## Slots
77
74
 
78
- | Name | Description |
79
- |------------|-----------------------------------------------|
80
- | [helptext](#helptext) | Sets the help text displayed below the input. |
81
- | [label](#label) | Sets the label text for the input. |
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. |
82
84
 
83
85
  ## CSS Shadow Parts
84
86
 
85
87
  | Part | Description |
86
- |-----------------|--------------------------------------------------|
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) |
87
91
  | [accentIcon](#accentIcon) | Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon) |
88
92
  | [helpText](#helpText) | Use for customizing the style of the helpText element |
89
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 |
90
95
  | [label](#label) | Use for customizing the style of the label element |
91
96
  | [wrapper](#wrapper) | Use for customizing the style of the root element |
92
97
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -110,13 +115,20 @@ The default component supports the basic input `type="text"` structure. The `(op
110
115
  <div class="exampleWrapper">
111
116
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
112
117
  <!-- The below content is automatically added from ./../apiExamples/basic.html -->
113
- <auro-input bordered></auro-input>
118
+ <auro-input>
119
+ <span slot="ariaLabel.clear">Clear All</span>
120
+ <span slot="label">Label</span>
121
+ <span slot="helpText">Help Text</span>
122
+ </auro-input>
114
123
  <!-- AURO-GENERATED-CONTENT:END -->
115
124
  </div>
116
125
  <div class="exampleWrapper--ondark" aria-hidden>
117
126
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
118
127
  <!-- The below content is automatically added from ./../apiExamples/onDark.html -->
119
- <auro-input onDark bordered></auro-input>
128
+ <auro-input ondark>
129
+ <span slot="label">Label</span>
130
+ <span slot="helpText">Help Text</span>
131
+ </auro-input>
120
132
  <!-- AURO-GENERATED-CONTENT:END -->
121
133
  </div>
122
134
  <auro-accordion alignRight>
@@ -125,14 +137,21 @@ The default component supports the basic input `type="text"` structure. The `(op
125
137
  <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
126
138
 
127
139
  ```html
128
- <auro-input bordered></auro-input>
140
+ <auro-input>
141
+ <span slot="ariaLabel.clear">Clear All</span>
142
+ <span slot="label">Label</span>
143
+ <span slot="helpText">Help Text</span>
144
+ </auro-input>
129
145
  ```
130
146
  <!-- AURO-GENERATED-CONTENT:END -->
131
147
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/onDark.html) -->
132
148
  <!-- The below code snippet is automatically added from ./../apiExamples/onDark.html -->
133
149
 
134
150
  ```html
135
- <auro-input onDark bordered></auro-input>
151
+ <auro-input ondark>
152
+ <span slot="label">Label</span>
153
+ <span slot="helpText">Help Text</span>
154
+ </auro-input>
136
155
  ```
137
156
  <!-- AURO-GENERATED-CONTENT:END -->
138
157
  </auro-accordion>
@@ -145,16 +164,18 @@ Use the `disable` attribute to prevent the user from interacting with the input.
145
164
  <div class="exampleWrapper">
146
165
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
147
166
  <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
148
- <auro-input disabled bordered type="date">
149
- <span slot="label">Arrival date</span>
167
+ <auro-input disabled type="date">
168
+ <span slot="label">Disabled</span>
169
+ <span slot="helpText">Help Text</span>
150
170
  </auro-input>
151
171
  <!-- AURO-GENERATED-CONTENT:END -->
152
172
  </div>
153
173
  <div class="exampleWrapper--ondark" aria-hidden>
154
174
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkDisabled.html) -->
155
175
  <!-- The below content is automatically added from ./../apiExamples/onDarkDisabled.html -->
156
- <auro-input onDark disabled bordered type="date">
176
+ <auro-input onDark disabled type="date">
157
177
  <span slot="label">Arrival date</span>
178
+ <span slot="helpText">Help Text</span>
158
179
  </auro-input>
159
180
  <!-- AURO-GENERATED-CONTENT:END -->
160
181
  </div>
@@ -164,8 +185,9 @@ Use the `disable` attribute to prevent the user from interacting with the input.
164
185
  <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
165
186
 
166
187
  ```html
167
- <auro-input disabled bordered type="date">
168
- <span slot="label">Arrival date</span>
188
+ <auro-input disabled type="date">
189
+ <span slot="label">Disabled</span>
190
+ <span slot="helpText">Help Text</span>
169
191
  </auro-input>
170
192
  ```
171
193
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -173,8 +195,9 @@ Use the `disable` attribute to prevent the user from interacting with the input.
173
195
  <!-- The below code snippet is automatically added from ./../apiExamples/onDarkDisabled.html -->
174
196
 
175
197
  ```html
176
- <auro-input onDark disabled bordered type="date">
198
+ <auro-input onDark disabled type="date">
177
199
  <span slot="label">Arrival date</span>
200
+ <span slot="helpText">Help Text</span>
178
201
  </auro-input>
179
202
  ```
180
203
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -189,7 +212,10 @@ Set the input mode for the input.
189
212
  <div class="exampleWrapper">
190
213
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
191
214
  <!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
192
- <auro-input bordered inputmode="tel" />
215
+ <auro-input inputmode="tel">
216
+ <span slot="label">Telephone</span>
217
+ <span slot="helpText">Help Text</span>
218
+ </auro-input>
193
219
  <!-- AURO-GENERATED-CONTENT:END -->
194
220
  </div>
195
221
  <auro-accordion alignRight>
@@ -198,7 +224,10 @@ Set the input mode for the input.
198
224
  <!-- The below code snippet is automatically added from ./../apiExamples/inputmode.html -->
199
225
 
200
226
  ```html
201
- <auro-input bordered inputmode="tel" />
227
+ <auro-input inputmode="tel">
228
+ <span slot="label">Telephone</span>
229
+ <span slot="helpText">Help Text</span>
230
+ </auro-input>
202
231
  ```
203
232
  <!-- AURO-GENERATED-CONTENT:END -->
204
233
  </auro-accordion>
@@ -209,9 +238,9 @@ Use the `placeholder` attribute to add a custom placeholder message within the e
209
238
  <div class="exampleWrapper">
210
239
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/placeholder.html) -->
211
240
  <!-- The below content is automatically added from ../apiExamples/placeholder.html -->
212
- <auro-input placeholder="John Doe" bordered required>
241
+ <auro-input placeholder="John Doe" required>
213
242
  <span slot="label">Full name</span>
214
- <span slot="helptext">Please enter your full name.</span>
243
+ <span slot="helpText">Please enter your full name.</span>
215
244
  </auro-input>
216
245
  <!-- AURO-GENERATED-CONTENT:END -->
217
246
  </div>
@@ -221,9 +250,9 @@ Use the `placeholder` attribute to add a custom placeholder message within the e
221
250
  <!-- The below code snippet is automatically added from ../apiExamples/placeholder.html -->
222
251
 
223
252
  ```html
224
- <auro-input placeholder="John Doe" bordered required>
253
+ <auro-input placeholder="John Doe" required>
225
254
  <span slot="label">Full name</span>
226
- <span slot="helptext">Please enter your full name.</span>
255
+ <span slot="helpText">Please enter your full name.</span>
227
256
  </auro-input>
228
257
  ```
229
258
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -235,9 +264,9 @@ Use the `value` attribute to programmatically set the value of the input.
235
264
  <div class="exampleWrapper">
236
265
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/programmaticValue.html) -->
237
266
  <!-- The below content is automatically added from ../apiExamples/programmaticValue.html -->
238
- <auro-input value="Alaska Airlines is the best!" bordered>
267
+ <auro-input value="Alaska Airlines is the best!">
239
268
  <span slot="label">Name</span>
240
- <span slot="helptext">Please enter your full name.</span>
269
+ <span slot="helpText">Please enter your full name.</span>
241
270
  </auro-input>
242
271
  <!-- AURO-GENERATED-CONTENT:END -->
243
272
  </div>
@@ -247,9 +276,9 @@ Use the `value` attribute to programmatically set the value of the input.
247
276
  <!-- The below code snippet is automatically added from ../apiExamples/programmaticValue.html -->
248
277
 
249
278
  ```html
250
- <auro-input value="Alaska Airlines is the best!" bordered>
279
+ <auro-input value="Alaska Airlines is the best!">
251
280
  <span slot="label">Name</span>
252
- <span slot="helptext">Please enter your full name.</span>
281
+ <span slot="helpText">Please enter your full name.</span>
253
282
  </auro-input>
254
283
  ```
255
284
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -267,9 +296,9 @@ Note: Setting the `value` to `undefined` will also reset the element.
267
296
  <auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
268
297
  <auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
269
298
  <br /><br />
270
- <auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
299
+ <auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!">
271
300
  <span slot="label">Name</span>
272
- <span slot="helptext">Please enter your full name.</span>
301
+ <span slot="helpText">Please enter your full name.</span>
273
302
  </auro-input>
274
303
  <!-- AURO-GENERATED-CONTENT:END -->
275
304
  </div>
@@ -282,9 +311,9 @@ Note: Setting the `value` to `undefined` will also reset the element.
282
311
  <auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
283
312
  <auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
284
313
  <br /><br />
285
- <auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
314
+ <auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!">
286
315
  <span slot="label">Name</span>
287
- <span slot="helptext">Please enter your full name.</span>
316
+ <span slot="helpText">Please enter your full name.</span>
288
317
  </auro-input>
289
318
  ```
290
319
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -319,8 +348,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
319
348
  <div class="exampleWrapper">
320
349
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxDate.html) -->
321
350
  <!-- The below content is automatically added from ../apiExamples/maxDate.html -->
322
- <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
351
+ <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date.">
323
352
  <span slot="label">Choose a date</span>
353
+ <span slot="helpText">Help Text</span>
324
354
  </auro-input>
325
355
  <!-- AURO-GENERATED-CONTENT:END -->
326
356
  </div>
@@ -330,8 +360,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
330
360
  <!-- The below code snippet is automatically added from ../apiExamples/maxDate.html -->
331
361
 
332
362
  ```html
333
- <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date." bordered>
363
+ <auro-input type="date" max="03/25/2023" setCustomValidityRangeOverflow="The selected date is past the defined maximum date.">
334
364
  <span slot="label">Choose a date</span>
365
+ <span slot="helpText">Help Text</span>
335
366
  </auro-input>
336
367
  ```
337
368
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -342,8 +373,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
342
373
  <div class="exampleWrapper">
343
374
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxNumber.html) -->
344
375
  <!-- The below content is automatically added from ../apiExamples/maxNumber.html -->
345
- <auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum." bordered>
376
+ <auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
346
377
  <span slot="label">Choose a number</span>
378
+ <span slot="helpText">Help Text</span>
347
379
  </auro-input>
348
380
  <!-- AURO-GENERATED-CONTENT:END -->
349
381
  </div>
@@ -353,8 +385,9 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
353
385
  <!-- The below code snippet is automatically added from ../apiExamples/maxNumber.html -->
354
386
 
355
387
  ```html
356
- <auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum." bordered>
388
+ <auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
357
389
  <span slot="label">Choose a number</span>
390
+ <span slot="helpText">Help Text</span>
358
391
  </auro-input>
359
392
  ```
360
393
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -370,8 +403,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
370
403
  <div class="exampleWrapper">
371
404
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minDate.html) -->
372
405
  <!-- The below content is automatically added from ../apiExamples/minDate.html -->
373
- <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
406
+ <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date.">
374
407
  <span slot="label">Choose a date</span>
408
+ <span slot="helpText">Help Text</span>
375
409
  </auro-input>
376
410
  <!-- AURO-GENERATED-CONTENT:END -->
377
411
  </div>
@@ -381,8 +415,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
381
415
  <!-- The below code snippet is automatically added from ../apiExamples/minDate.html -->
382
416
 
383
417
  ```html
384
- <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date." bordered>
418
+ <auro-input type="date" min="03/25/2023" setCustomValidityRangeUnderflow="The selected date is before the defined minimum date.">
385
419
  <span slot="label">Choose a date</span>
420
+ <span slot="helpText">Help Text</span>
386
421
  </auro-input>
387
422
  ```
388
423
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -393,8 +428,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
393
428
  <div class="exampleWrapper">
394
429
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minNumber.html) -->
395
430
  <!-- The below content is automatically added from ../apiExamples/minNumber.html -->
396
- <auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum." bordered>
431
+ <auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
397
432
  <span slot="label">Choose a number</span>
433
+ <span slot="helpText">Help Text</span>
398
434
  </auro-input>
399
435
  <!-- AURO-GENERATED-CONTENT:END -->
400
436
  </div>
@@ -404,8 +440,9 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
404
440
  <!-- The below code snippet is automatically added from ../apiExamples/minNumber.html -->
405
441
 
406
442
  ```html
407
- <auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum." bordered>
443
+ <auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
408
444
  <span slot="label">Choose a number</span>
445
+ <span slot="helpText">Help Text</span>
409
446
  </auro-input>
410
447
  ```
411
448
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -419,9 +456,9 @@ The `setCustomValidityTooLong` attribute may optionally be used in combination w
419
456
  <div class="exampleWrapper">
420
457
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
421
458
  <!-- The below content is automatically added from ../apiExamples/maxLength.html -->
422
- <auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." bordered required>
459
+ <auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." required>
423
460
  <span slot="label">Voucher Code</span>
424
- <span slot="helptext">Please enter your 12 character voucher code.</span>
461
+ <span slot="helpText">Please enter your 12 character voucher code.</span>
425
462
  </auro-input>
426
463
  <!-- AURO-GENERATED-CONTENT:END -->
427
464
  </div>
@@ -431,9 +468,9 @@ The `setCustomValidityTooLong` attribute may optionally be used in combination w
431
468
  <!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
432
469
 
433
470
  ```html
434
- <auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." bordered required>
471
+ <auro-input maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered." required>
435
472
  <span slot="label">Voucher Code</span>
436
- <span slot="helptext">Please enter your 12 character voucher code.</span>
473
+ <span slot="helpText">Please enter your 12 character voucher code.</span>
437
474
  </auro-input>
438
475
  ```
439
476
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -447,9 +484,9 @@ The `setCustomValidityTooShort` attribute may optionally be used in combination
447
484
  <div class="exampleWrapper">
448
485
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minLength.html) -->
449
486
  <!-- The below content is automatically added from ../apiExamples/minLength.html -->
450
- <auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." bordered required>
487
+ <auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." required>
451
488
  <span slot="label">Voucher Code</span>
452
- <span slot="helptext">Please enter your 4 character voucher code.</span>
489
+ <span slot="helpText">Please enter your 4 character voucher code.</span>
453
490
  </auro-input>
454
491
  <!-- AURO-GENERATED-CONTENT:END -->
455
492
  </div>
@@ -459,9 +496,9 @@ The `setCustomValidityTooShort` attribute may optionally be used in combination
459
496
  <!-- The below code snippet is automatically added from ../apiExamples/minLength.html -->
460
497
 
461
498
  ```html
462
- <auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." bordered required>
499
+ <auro-input minlength="4" setCustomValidityTooShort="Please enter a full voucher code." required>
463
500
  <span slot="label">Voucher Code</span>
464
- <span slot="helptext">Please enter your 4 character voucher code.</span>
501
+ <span slot="helpText">Please enter your 4 character voucher code.</span>
465
502
  </auro-input>
466
503
  ```
467
504
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -475,9 +512,9 @@ The `<auro-input>` component supports setting a custom validity message specific
475
512
  <div class="exampleWrapper">
476
513
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/pattern.html) -->
477
514
  <!-- The below content is automatically added from ../apiExamples/pattern.html -->
478
- <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces" bordered>
515
+ <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
479
516
  <span slot="label">Username</span>
480
- <span slot="helptext">Please enter a username.</span>
517
+ <span slot="helpText">Please enter a username.</span>
481
518
  </auro-input>
482
519
  <!-- AURO-GENERATED-CONTENT:END -->
483
520
  </div>
@@ -487,9 +524,9 @@ The `<auro-input>` component supports setting a custom validity message specific
487
524
  <!-- The below code snippet is automatically added from ../apiExamples/pattern.html -->
488
525
 
489
526
  ```html
490
- <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces" bordered>
527
+ <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
491
528
  <span slot="label">Username</span>
492
- <span slot="helptext">Please enter a username.</span>
529
+ <span slot="helpText">Please enter a username.</span>
493
530
  </auro-input>
494
531
  ```
495
532
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -506,9 +543,9 @@ In this example, the user is able to programmatically change the value of the in
506
543
  <auro-button id="setReadonlyValueBtn">Set Value to Auro Alaska</auro-button>
507
544
  <auro-button id="resetReadonlyValueBtn">Reset</auro-button>
508
545
  <br /><br />
509
- <auro-input readonly bordered id="readonlyExample">
546
+ <auro-input readonly id="readonlyExample">
510
547
  <span slot="label">Name</span>
511
- <span slot="helptext">Please enter your full name.</span>
548
+ <span slot="helpText">Please enter your full name.</span>
512
549
  </auro-input>
513
550
  <!-- AURO-GENERATED-CONTENT:END -->
514
551
  </div>
@@ -521,9 +558,9 @@ In this example, the user is able to programmatically change the value of the in
521
558
  <auro-button id="setReadonlyValueBtn">Set Value to Auro Alaska</auro-button>
522
559
  <auro-button id="resetReadonlyValueBtn">Reset</auro-button>
523
560
  <br /><br />
524
- <auro-input readonly bordered id="readonlyExample">
561
+ <auro-input readonly id="readonlyExample">
525
562
  <span slot="label">Name</span>
526
- <span slot="helptext">Please enter your full name.</span>
563
+ <span slot="helpText">Please enter your full name.</span>
527
564
  </auro-input>
528
565
  ```
529
566
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -553,9 +590,9 @@ Example use cases for auro-input support the `activeLabel` attribute. If set, th
553
590
  <div class="exampleWrapper">
554
591
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/activeLabel.html) -->
555
592
  <!-- The below content is automatically added from ../apiExamples/activeLabel.html -->
556
- <auro-input activeLabel bordered>
593
+ <auro-input activeLabel>
557
594
  <span slot="label">Address</span>
558
- <span slot="helptext">Please enter your home address.</span>
595
+ <span slot="helpText">Please enter your home address.</span>
559
596
  </auro-input>
560
597
  <!-- AURO-GENERATED-CONTENT:END -->
561
598
  </div>
@@ -565,9 +602,9 @@ Example use cases for auro-input support the `activeLabel` attribute. If set, th
565
602
  <!-- The below code snippet is automatically added from ../apiExamples/activeLabel.html -->
566
603
 
567
604
  ```html
568
- <auro-input activeLabel bordered>
605
+ <auro-input activeLabel>
569
606
  <span slot="label">Address</span>
570
- <span slot="helptext">Please enter your home address.</span>
607
+ <span slot="helpText">Please enter your home address.</span>
571
608
  </auro-input>
572
609
  ```
573
610
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -579,9 +616,9 @@ For use cases where the field is `required`, but live validation is not wanted,
579
616
  <div class="exampleWrapper">
580
617
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/noValidate.html) -->
581
618
  <!-- The below content is automatically added from ../apiExamples/noValidate.html -->
582
- <auro-input noValidate required bordered>
619
+ <auro-input noValidate required>
583
620
  <span slot="label">Address</span>
584
- <span slot="helptext">Please enter your home address.</span>
621
+ <span slot="helpText">Please enter your home address.</span>
585
622
  </auro-input>
586
623
  <!-- AURO-GENERATED-CONTENT:END -->
587
624
  </div>
@@ -591,9 +628,9 @@ For use cases where the field is `required`, but live validation is not wanted,
591
628
  <!-- The below code snippet is automatically added from ../apiExamples/noValidate.html -->
592
629
 
593
630
  ```html
594
- <auro-input noValidate required bordered>
631
+ <auro-input noValidate required>
595
632
  <span slot="label">Address</span>
596
- <span slot="helptext">Please enter your home address.</span>
633
+ <span slot="helpText">Please enter your home address.</span>
597
634
  </auro-input>
598
635
  ```
599
636
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -612,7 +649,10 @@ See [IMask](https://imask.js.org/) for more information on how to configure a ma
612
649
  <div class="exampleWrapper">
613
650
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/format.html) -->
614
651
  <!-- The below content is automatically added from ../apiExamples/format.html -->
615
- <auro-input bordered format="47440000"></auro-input>
652
+ <auro-input format="47440000">
653
+ <span slot="label">Custom format</span>
654
+ <span slot="helpText">Format is: 47440000</span>
655
+ </auro-input>
616
656
  <!-- AURO-GENERATED-CONTENT:END -->
617
657
  </div>
618
658
  <auro-accordion alignRight>
@@ -621,7 +661,10 @@ See [IMask](https://imask.js.org/) for more information on how to configure a ma
621
661
  <!-- The below code snippet is automatically added from ../apiExamples/format.html -->
622
662
 
623
663
  ```html
624
- <auro-input bordered format="47440000"></auro-input>
664
+ <auro-input format="47440000">
665
+ <span slot="label">Custom format</span>
666
+ <span slot="helpText">Format is: 47440000</span>
667
+ </auro-input>
625
668
  ```
626
669
  <!-- AURO-GENERATED-CONTENT:END -->
627
670
  </auro-accordion>
@@ -640,9 +683,9 @@ When the validity check fails, the validityState equals `valueMissing`. The erro
640
683
  <div class="exampleWrapper">
641
684
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/required.html) -->
642
685
  <!-- The below content is automatically added from ../apiExamples/required.html -->
643
- <auro-input required bordered placeholder="John Doe">
686
+ <auro-input required placeholder="John Doe">
644
687
  <span slot="label">Full name</span>
645
- <span slot="helptext">Please enter your full name.</span>
688
+ <span slot="helpText">Please enter your full name.</span>
646
689
  </auro-input>
647
690
  <!-- AURO-GENERATED-CONTENT:END -->
648
691
  </div>
@@ -652,9 +695,37 @@ When the validity check fails, the validityState equals `valueMissing`. The erro
652
695
  <!-- The below code snippet is automatically added from ../apiExamples/required.html -->
653
696
 
654
697
  ```html
655
- <auro-input required bordered placeholder="John Doe">
698
+ <auro-input required placeholder="John Doe">
699
+ <span slot="label">Full name</span>
700
+ <span slot="helpText">Please enter your full name.</span>
701
+ </auro-input>
702
+ ```
703
+ <!-- AURO-GENERATED-CONTENT:END -->
704
+ </auro-accordion>
705
+
706
+ ### Custom optional label <a name="optionalLabel"></a>
707
+ The `<auro-input>` supports an `optionalLabel` slot, where users can can override the default `(optional)` notification text.
708
+
709
+ <div class="exampleWrapper">
710
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/optionalLabel.html) -->
711
+ <!-- The below content is automatically added from ./../apiExamples/optionalLabel.html -->
712
+ <auro-input placeholder="John Doe" bordered>
713
+ <span slot="label">Full name</span>
714
+ <span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
715
+ <span slot="helpText">Please enter your full name.</span>
716
+ </auro-input>
717
+ <!-- AURO-GENERATED-CONTENT:END -->
718
+ </div>
719
+ <auro-accordion alignRight>
720
+ <span slot="trigger">See code</span>
721
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/optionalLabel.html) -->
722
+ <!-- The below code snippet is automatically added from ./../apiExamples/optionalLabel.html -->
723
+
724
+ ```html
725
+ <auro-input placeholder="John Doe" bordered>
656
726
  <span slot="label">Full name</span>
657
- <span slot="helptext">Please enter your full name.</span>
727
+ <span slot="optionalLabel" style="color: grey; font-size: small"> - optional</span>
728
+ <span slot="helpText">Please enter your full name.</span>
658
729
  </auro-input>
659
730
  ```
660
731
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -666,9 +737,9 @@ Use the `validateOnInput` attribute to enable live validation on the `input` eve
666
737
  <div class="exampleWrapper">
667
738
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/validateOnInput.html) -->
668
739
  <!-- The below content is automatically added from ../apiExamples/validateOnInput.html -->
669
- <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.">
740
+ <auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
670
741
  <span slot="label">Full Name</span>
671
- <span slot="helptext">Please enter your full name as it appears on the card.</span>
742
+ <span slot="helpText">Please enter your full name as it appears on the card.</span>
672
743
  </auro-input>
673
744
  <!-- AURO-GENERATED-CONTENT:END -->
674
745
  </div>
@@ -678,9 +749,9 @@ Use the `validateOnInput` attribute to enable live validation on the `input` eve
678
749
  <!-- The below code snippet is automatically added from ../apiExamples/validateOnInput.html -->
679
750
 
680
751
  ```html
681
- <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.">
752
+ <auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
682
753
  <span slot="label">Full Name</span>
683
- <span slot="helptext">Please enter your full name as it appears on the card.</span>
754
+ <span slot="helpText">Please enter your full name as it appears on the card.</span>
684
755
  </auro-input>
685
756
  ```
686
757
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -694,9 +765,9 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
694
765
  <div class="exampleWrapper">
695
766
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/setCustomValidity.html) -->
696
767
  <!-- The below content is automatically added from ../apiExamples/setCustomValidity.html -->
697
- <auro-input bordered required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
768
+ <auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
698
769
  <span slot="label">Full Name</span>
699
- <span slot="helptext">Please enter your full name.</span>
770
+ <span slot="helpText">Please enter your full name.</span>
700
771
  </auro-input>
701
772
  <!-- AURO-GENERATED-CONTENT:END -->
702
773
  </div>
@@ -706,9 +777,9 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
706
777
  <!-- The below code snippet is automatically added from ../apiExamples/setCustomValidity.html -->
707
778
 
708
779
  ```html
709
- <auro-input bordered required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
780
+ <auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
710
781
  <span slot="label">Full Name</span>
711
- <span slot="helptext">Please enter your full name.</span>
782
+ <span slot="helpText">Please enter your full name.</span>
712
783
  </auro-input>
713
784
  ```
714
785
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -725,9 +796,9 @@ A custom error message can be set using the `error` attribute, or it can be used
725
796
  <auro-button id="setCustomErrorBtn">Set Custom Error</auro-button>
726
797
  <auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
727
798
  <br /><br />
728
- <auro-input id="setCustomErrorExample" error="Initial error attribute value" bordered>
799
+ <auro-input id="setCustomErrorExample" error="Initial error attribute value">
729
800
  <span slot="label">Name</span>
730
- <span slot="helptext">Please enter your full name.</span>
801
+ <span slot="helpText">Please enter your full name.</span>
731
802
  </auro-input>
732
803
  <!-- AURO-GENERATED-CONTENT:END -->
733
804
  </div>
@@ -740,9 +811,9 @@ A custom error message can be set using the `error` attribute, or it can be used
740
811
  <auro-button id="setCustomErrorBtn">Set Custom Error</auro-button>
741
812
  <auro-button id="setCustomErrorClearBtn">Clear Custom Error</auro-button>
742
813
  <br /><br />
743
- <auro-input id="setCustomErrorExample" error="Initial error attribute value" bordered>
814
+ <auro-input id="setCustomErrorExample" error="Initial error attribute value">
744
815
  <span slot="label">Name</span>
745
- <span slot="helptext">Please enter your full name.</span>
816
+ <span slot="helpText">Please enter your full name.</span>
746
817
  </auro-input>
747
818
  ```
748
819
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -774,9 +845,9 @@ export function customError() {
774
845
  <auro-button onDark id="setCustomErrorBtnOnDark">Set Custom Error</auro-button>
775
846
  <auro-button onDark id="setCustomErrorClearBtnOnDark">Clear Custom Error</auro-button>
776
847
  <br /><br />
777
- <auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value" bordered>
848
+ <auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value">
778
849
  <span slot="label">Name</span>
779
- <span slot="helptext">Please enter your full name.</span>
850
+ <span slot="helpText">Please enter your full name.</span>
780
851
  </auro-input>
781
852
  <!-- AURO-GENERATED-CONTENT:END -->
782
853
  </div>
@@ -789,9 +860,9 @@ export function customError() {
789
860
  <auro-button onDark id="setCustomErrorBtnOnDark">Set Custom Error</auro-button>
790
861
  <auro-button onDark id="setCustomErrorClearBtnOnDark">Clear Custom Error</auro-button>
791
862
  <br /><br />
792
- <auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value" bordered>
863
+ <auro-input onDark id="setCustomErrorExampleOnDark" error="Initial error attribute value">
793
864
  <span slot="label">Name</span>
794
- <span slot="helptext">Please enter your full name.</span>
865
+ <span slot="helpText">Please enter your full name.</span>
795
866
  </auro-input>
796
867
  ```
797
868
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -826,18 +897,21 @@ Default help text will be added to the input `type="password"` if custom help te
826
897
  <div class="exampleWrapper">
827
898
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
828
899
  <!-- The below content is automatically added from ../apiExamples/password.html -->
829
- <auro-input type="password" required bordered>
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>
830
904
  <span slot="label">Password</span>
831
- <span slot="helptext">Please enter a secure password.</span>
905
+ <span slot="helpText">Please enter a secure password.</span>
832
906
  </auro-input>
833
907
  <!-- AURO-GENERATED-CONTENT:END -->
834
908
  </div>
835
909
  <div class="exampleWrapper--ondark" aria-hidden>
836
910
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/onDarkPassword.html) -->
837
911
  <!-- The below content is automatically added from ../apiExamples/onDarkPassword.html -->
838
- <auro-input onDark type="password" required bordered>
912
+ <auro-input onDark type="password" required>
839
913
  <span slot="label">Password</span>
840
- <span slot="helptext">Please enter a secure password.</span>
914
+ <span slot="helpText">Please enter a secure password.</span>
841
915
  </auro-input>
842
916
  <!-- AURO-GENERATED-CONTENT:END -->
843
917
  </div>
@@ -847,9 +921,9 @@ Default help text will be added to the input `type="password"` if custom help te
847
921
  <!-- The below code snippet is automatically added from ../apiExamples/onDarkPassword.html -->
848
922
 
849
923
  ```html
850
- <auro-input onDark type="password" required bordered>
924
+ <auro-input onDark type="password" required>
851
925
  <span slot="label">Password</span>
852
- <span slot="helptext">Please enter a secure password.</span>
926
+ <span slot="helpText">Please enter a secure password.</span>
853
927
  </auro-input>
854
928
  ```
855
929
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -864,9 +938,9 @@ Default help text will be added to the input `type="email"` if custom help text
864
938
  <div class="exampleWrapper">
865
939
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/email.html) -->
866
940
  <!-- The below content is automatically added from ../apiExamples/email.html -->
867
- <auro-input type="email" bordered required>
941
+ <auro-input type="email" required>
868
942
  <span slot="label">Email address</span>
869
- <span slot="helptext">Please enter your email address.</span>
943
+ <span slot="helpText">Please enter your email address.</span>
870
944
  </auro-input>
871
945
  <!-- AURO-GENERATED-CONTENT:END -->
872
946
  </div>
@@ -876,9 +950,9 @@ Default help text will be added to the input `type="email"` if custom help text
876
950
  <!-- The below code snippet is automatically added from ../apiExamples/email.html -->
877
951
 
878
952
  ```html
879
- <auro-input type="email" bordered required>
953
+ <auro-input type="email" required>
880
954
  <span slot="label">Email address</span>
881
- <span slot="helptext">Please enter your email address.</span>
955
+ <span slot="helpText">Please enter your email address.</span>
882
956
  </auro-input>
883
957
  ```
884
958
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -893,9 +967,9 @@ This `number` input type should only be used for incremental numeric values, mea
893
967
  <div class="exampleWrapper">
894
968
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/number.html) -->
895
969
  <!-- The below content is automatically added from ../apiExamples/number.html -->
896
- <auro-input type="number" bordered required>
970
+ <auro-input type="number" required>
897
971
  <span slot="label">Number of Passengers</span>
898
- <span slot="helptext">Please enter the number of passengers.</span>
972
+ <span slot="helpText">Please enter the number of passengers.</span>
899
973
  </auro-input>
900
974
  <!-- AURO-GENERATED-CONTENT:END -->
901
975
  </div>
@@ -905,9 +979,9 @@ This `number` input type should only be used for incremental numeric values, mea
905
979
  <!-- The below code snippet is automatically added from ../apiExamples/number.html -->
906
980
 
907
981
  ```html
908
- <auro-input type="number" bordered required>
982
+ <auro-input type="number" required>
909
983
  <span slot="label">Number of Passengers</span>
910
- <span slot="helptext">Please enter the number of passengers.</span>
984
+ <span slot="helpText">Please enter the number of passengers.</span>
911
985
  </auro-input>
912
986
  ```
913
987
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -922,9 +996,9 @@ Default help text will be added to the input `type="credit-card"` if custom help
922
996
  <div class="exampleWrapper">
923
997
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/creditCard.html) -->
924
998
  <!-- The below content is automatically added from ../apiExamples/creditCard.html -->
925
- <auro-input type="credit-card" bordered required>
999
+ <auro-input type="credit-card" required>
926
1000
  <span slot="label">Card number</span>
927
- <span slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1001
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
928
1002
  </auro-input>
929
1003
  <!-- AURO-GENERATED-CONTENT:END -->
930
1004
  </div>
@@ -934,9 +1008,9 @@ Default help text will be added to the input `type="credit-card"` if custom help
934
1008
  <!-- The below code snippet is automatically added from ../apiExamples/creditCard.html -->
935
1009
 
936
1010
  ```html
937
- <auro-input type="credit-card" bordered required>
1011
+ <auro-input type="credit-card" required>
938
1012
  <span slot="label">Card number</span>
939
- <span slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1013
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
940
1014
  </auro-input>
941
1015
  ```
942
1016
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -948,9 +1022,9 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
948
1022
  <div class="exampleWrapper">
949
1023
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/creditCardIcon.html) -->
950
1024
  <!-- The below content is automatically added from ../apiExamples/creditCardIcon.html -->
951
- <auro-input icon type="credit-card" bordered required>
1025
+ <auro-input icon type="credit-card" required>
952
1026
  <span slot="label">Card number</span>
953
- <span slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1027
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
954
1028
  </auro-input>
955
1029
  <!-- AURO-GENERATED-CONTENT:END -->
956
1030
  </div>
@@ -961,9 +1035,9 @@ Use the `type="credit-card"` and `icon` attributes for a credit card formatted i
961
1035
  <!-- The below code snippet is automatically added from ../apiExamples/creditCardIcon.html -->
962
1036
 
963
1037
  ```html
964
- <auro-input icon type="credit-card" bordered required>
1038
+ <auro-input icon type="credit-card" required>
965
1039
  <span slot="label">Card number</span>
966
- <span slot="helptext">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1040
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
967
1041
  </auro-input>
968
1042
  ```
969
1043
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -976,7 +1050,10 @@ Use the `type="tel"` attribute for a phone number formatted input. The default f
976
1050
  <div class="exampleWrapper">
977
1051
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/tel.html) -->
978
1052
  <!-- The below content is automatically added from ../apiExamples/tel.html -->
979
- <auro-input type="tel" bordered></auro-input>
1053
+ <auro-input type="tel">
1054
+ <span slot="label">Telephone</span>
1055
+ <span slot="helpText">Help Text</span>
1056
+ </auro-input>
980
1057
  <!-- AURO-GENERATED-CONTENT:END -->
981
1058
  </div>
982
1059
  <auro-accordion alignRight>
@@ -985,7 +1062,10 @@ Use the `type="tel"` attribute for a phone number formatted input. The default f
985
1062
  <!-- The below code snippet is automatically added from ../apiExamples/tel.html -->
986
1063
 
987
1064
  ```html
988
- <auro-input type="tel" bordered></auro-input>
1065
+ <auro-input type="tel">
1066
+ <span slot="label">Telephone</span>
1067
+ <span slot="helpText">Help Text</span>
1068
+ </auro-input>
989
1069
  ```
990
1070
  <!-- AURO-GENERATED-CONTENT:END -->
991
1071
  </auro-accordion>
@@ -997,7 +1077,10 @@ Use the `format` attribute to set a custom phone number format.
997
1077
  <div class="exampleWrapper">
998
1078
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/telFormat.html) -->
999
1079
  <!-- The below content is automatically added from ../apiExamples/telFormat.html -->
1000
- <auro-input type="tel" format="+22 999 99 9999" bordered></auro-input>
1080
+ <auro-input type="tel" format="+22 999 99 9999">
1081
+ <span slot="label">Telephone</span>
1082
+ <span slot="helpText">Help Text</span>
1083
+ </auro-input>
1001
1084
  <!-- AURO-GENERATED-CONTENT:END -->
1002
1085
  </div>
1003
1086
  <auro-accordion alignRight>
@@ -1006,7 +1089,10 @@ Use the `format` attribute to set a custom phone number format.
1006
1089
  <!-- The below code snippet is automatically added from ../apiExamples/telFormat.html -->
1007
1090
 
1008
1091
  ```html
1009
- <auro-input type="tel" format="+22 999 99 9999" bordered></auro-input>
1092
+ <auro-input type="tel" format="+22 999 99 9999">
1093
+ <span slot="label">Telephone</span>
1094
+ <span slot="helpText">Help Text</span>
1095
+ </auro-input>
1010
1096
  ```
1011
1097
  <!-- AURO-GENERATED-CONTENT:END -->
1012
1098
  </auro-accordion>
@@ -1018,8 +1104,9 @@ Use the `type="date"` attribute for a date formatted input. The default date for
1018
1104
  <div class="exampleWrapper">
1019
1105
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthDayYear.html) -->
1020
1106
  <!-- The below content is automatically added from ../apiExamples/monthDayYear.html -->
1021
- <auro-input type="date" bordered>
1107
+ <auro-input type="date">
1022
1108
  <span slot="label">Arrival date</span>
1109
+ <span slot="helpText">Help Text</span>
1023
1110
  </auro-input>
1024
1111
  <!-- AURO-GENERATED-CONTENT:END -->
1025
1112
  </div>
@@ -1029,8 +1116,9 @@ Use the `type="date"` attribute for a date formatted input. The default date for
1029
1116
  <!-- The below code snippet is automatically added from ../apiExamples/monthDayYear.html -->
1030
1117
 
1031
1118
  ```html
1032
- <auro-input type="date" bordered>
1119
+ <auro-input type="date">
1033
1120
  <span slot="label">Arrival date</span>
1121
+ <span slot="helpText">Help Text</span>
1034
1122
  </auro-input>
1035
1123
  ```
1036
1124
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1043,8 +1131,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1043
1131
  <div class="exampleWrapper">
1044
1132
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/yearMonthDay.html) -->
1045
1133
  <!-- The below content is automatically added from ../apiExamples/yearMonthDay.html -->
1046
- <auro-input type="date" format="yyyy/mm/dd" bordered>
1134
+ <auro-input type="date" format="yyyy/mm/dd">
1047
1135
  <span slot="label">Arrival date</span>
1136
+ <span slot="helpText">Help Text</span>
1048
1137
  </auro-input>
1049
1138
  <!-- AURO-GENERATED-CONTENT:END -->
1050
1139
  </div>
@@ -1054,8 +1143,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1054
1143
  <!-- The below code snippet is automatically added from ../apiExamples/yearMonthDay.html -->
1055
1144
 
1056
1145
  ```html
1057
- <auro-input type="date" format="yyyy/mm/dd" bordered>
1146
+ <auro-input type="date" format="yyyy/mm/dd">
1058
1147
  <span slot="label">Arrival date</span>
1148
+ <span slot="helpText">Help Text</span>
1059
1149
  </auro-input>
1060
1150
  ```
1061
1151
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1063,8 +1153,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1063
1153
  <div class="exampleWrapper">
1064
1154
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/monthYear.html) -->
1065
1155
  <!-- The below content is automatically added from ../apiExamples/monthYear.html -->
1066
- <auro-input type="date" format="mm/yy" bordered>
1156
+ <auro-input type="date" format="mm/yy">
1067
1157
  <span slot="label">Expiration date</span>
1158
+ <span slot="helpText">Help Text</span>
1068
1159
  </auro-input>
1069
1160
  <!-- AURO-GENERATED-CONTENT:END -->
1070
1161
  </div>
@@ -1074,8 +1165,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1074
1165
  <!-- The below code snippet is automatically added from ../apiExamples/monthYear.html -->
1075
1166
 
1076
1167
  ```html
1077
- <auro-input type="date" format="mm/yy" bordered>
1168
+ <auro-input type="date" format="mm/yy">
1078
1169
  <span slot="label">Expiration date</span>
1170
+ <span slot="helpText">Help Text</span>
1079
1171
  </auro-input>
1080
1172
  ```
1081
1173
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1083,8 +1175,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1083
1175
  <div class="exampleWrapper">
1084
1176
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/day.html) -->
1085
1177
  <!-- The below content is automatically added from ../apiExamples/day.html -->
1086
- <auro-input type="date" format="dd" bordered>
1178
+ <auro-input type="date" format="dd">
1087
1179
  <span slot="label">Day</span>
1180
+ <span slot="helpText">Help Text</span>
1088
1181
  </auro-input>
1089
1182
  <!-- AURO-GENERATED-CONTENT:END -->
1090
1183
  </div>
@@ -1094,8 +1187,9 @@ Use the `format` attribute to put together any combination of `mm`, `dd`, & `yyy
1094
1187
  <!-- The below code snippet is automatically added from ../apiExamples/day.html -->
1095
1188
 
1096
1189
  ```html
1097
- <auro-input type="date" format="dd" bordered>
1190
+ <auro-input type="date" format="dd">
1098
1191
  <span slot="label">Day</span>
1192
+ <span slot="helpText">Help Text</span>
1099
1193
  </auro-input>
1100
1194
  ```
1101
1195
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1112,9 +1206,9 @@ Use the `reset()` method to reset the `<auro-input>`'s `value` and `validity` st
1112
1206
  <!-- The below content is automatically added from ../apiExamples/resetState.html -->
1113
1207
  <auro-button id="resetStateBtn">Reset</auro-button>
1114
1208
  <br /><br />
1115
- <auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
1209
+ <auro-input id="resetStateExample" minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
1116
1210
  <span slot="label">Full Name</span>
1117
- <span slot="helptext">Please enter your full name.</span>
1211
+ <span slot="helpText">Please enter your full name.</span>
1118
1212
  </auro-input>
1119
1213
  <!-- AURO-GENERATED-CONTENT:END -->
1120
1214
  </div>
@@ -1126,9 +1220,9 @@ Use the `reset()` method to reset the `<auro-input>`'s `value` and `validity` st
1126
1220
  ```html
1127
1221
  <auro-button id="resetStateBtn">Reset</auro-button>
1128
1222
  <br /><br />
1129
- <auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
1223
+ <auro-input id="resetStateExample" minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
1130
1224
  <span slot="label">Full Name</span>
1131
- <span slot="helptext">Please enter your full name.</span>
1225
+ <span slot="helpText">Please enter your full name.</span>
1132
1226
  </auro-input>
1133
1227
  ```
1134
1228
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -1154,12 +1248,14 @@ Example illustrates using a JavaScript function attached to an `auro-button` com
1154
1248
  <div class="exampleWrapper">
1155
1249
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/swapValue.html) -->
1156
1250
  <!-- The below content is automatically added from ../apiExamples/swapValue.html -->
1157
- <auro-input id="swapExampleLeft" bordered>
1251
+ <auro-input id="swapExampleLeft">
1158
1252
  <span slot="label">Left Input</span>
1253
+ <span slot="helpText">Help Text</span>
1159
1254
  </auro-input>
1160
1255
  <auro-button id="swapExampleBtn">Swap Values</auro-button>
1161
- <auro-input id="swapExampleRight" bordered>
1256
+ <auro-input id="swapExampleRight">
1162
1257
  <span slot="label">Right Input</span>
1258
+ <span slot="helpText">Help Text</span>
1163
1259
  </auro-input>
1164
1260
  <style>
1165
1261
  #swapExampleWrapper {
@@ -1184,12 +1280,14 @@ Example illustrates using a JavaScript function attached to an `auro-button` com
1184
1280
  <!-- The below code snippet is automatically added from ../apiExamples/swapValue.html -->
1185
1281
 
1186
1282
  ```html
1187
- <auro-input id="swapExampleLeft" bordered>
1283
+ <auro-input id="swapExampleLeft">
1188
1284
  <span slot="label">Left Input</span>
1285
+ <span slot="helpText">Help Text</span>
1189
1286
  </auro-input>
1190
1287
  <auro-button id="swapExampleBtn">Swap Values</auro-button>
1191
- <auro-input id="swapExampleRight" bordered>
1288
+ <auro-input id="swapExampleRight">
1192
1289
  <span slot="label">Right Input</span>
1290
+ <span slot="helpText">Help Text</span>
1193
1291
  </auro-input>
1194
1292
  <style>
1195
1293
  #swapExampleWrapper {
@@ -1237,16 +1335,32 @@ The component may be restyled using the following code sample and changing the v
1237
1335
  <!-- The below code snippet is automatically added from ../src/styles/tokens.scss -->
1238
1336
 
1239
1337
  ```scss
1240
- @import "@aurodesignsystem/design-tokens/dist/alaska/SCSSVariables--alaska";
1241
-
1242
- :host {
1243
- --ds-auro-input-border-color: var(--ds-basic-color-border-bold, #{$ds-basic-color-border-bold});
1244
- --ds-auro-input-container-color: var(--ds-basic-color-surface-default, #{$ds-basic-color-surface-default});
1245
- --ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #{$ds-advanced-color-state-focused});
1246
- --ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #{$ds-basic-color-texticon-muted});
1247
- --ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #{$ds-basic-color-texticon-default});
1248
- --ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #{$ds-basic-color-texticon-default});
1249
- --ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #{$ds-basic-color-status-error});
1338
+ /* stylelint-disable custom-property-empty-line-before */
1339
+
1340
+ @use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
1341
+
1342
+ :host(:not([ondark])) {
1343
+ --ds-auro-input-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
1344
+ --ds-auro-input-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
1345
+ --ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #{v.$ds-advanced-color-state-focused});
1346
+ --ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
1347
+ --ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1348
+ --ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
1349
+ --ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
1350
+
1351
+ --ds-auro-input-outline-color: transparent;
1352
+ }
1353
+
1354
+ :host([ondark]) {
1355
+ --ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #{v.$ds-basic-color-border-inverse});
1356
+ --ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
1357
+ --ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #{v.$ds-advanced-color-state-focused-inverse});
1358
+ --ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #{v.$ds-basic-color-texticon-inverse-muted});
1359
+ --ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
1360
+ --ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
1361
+ --ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #{v.$ds-advanced-color-state-error-inverse});
1362
+
1363
+ --ds-auro-input-outline-color: transparent;
1250
1364
  }
1251
1365
  ```
1252
1366
  <!-- AURO-GENERATED-CONTENT:END -->