@aurodesignsystem-dev/auro-formkit 0.0.0-pr1497.5 → 0.0.0-pr1500.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 (47) hide show
  1. package/components/checkbox/demo/customize.min.js +1 -1
  2. package/components/checkbox/demo/getting-started.min.js +1 -1
  3. package/components/checkbox/demo/index.min.js +1 -1
  4. package/components/checkbox/dist/index.js +1 -1
  5. package/components/checkbox/dist/registered.js +1 -1
  6. package/components/combobox/demo/customize.min.js +3 -3
  7. package/components/combobox/demo/getting-started.min.js +3 -3
  8. package/components/combobox/demo/index.min.js +3 -3
  9. package/components/combobox/dist/index.js +3 -3
  10. package/components/combobox/dist/registered.js +3 -3
  11. package/components/counter/demo/customize.min.js +2 -2
  12. package/components/counter/demo/index.min.js +2 -2
  13. package/components/counter/dist/index.js +1 -1
  14. package/components/counter/dist/registered.js +1 -1
  15. package/components/datepicker/demo/customize.md +963 -430
  16. package/components/datepicker/demo/customize.min.js +3 -3
  17. package/components/datepicker/demo/index.md +0 -1
  18. package/components/datepicker/demo/index.min.js +3 -3
  19. package/components/datepicker/dist/index.js +3 -3
  20. package/components/datepicker/dist/registered.js +3 -3
  21. package/components/dropdown/demo/customize.min.js +1 -1
  22. package/components/dropdown/demo/getting-started.min.js +1 -1
  23. package/components/dropdown/demo/index.min.js +1 -1
  24. package/components/dropdown/dist/index.js +1 -1
  25. package/components/dropdown/dist/registered.js +1 -1
  26. package/components/form/demo/customize.min.js +13 -13
  27. package/components/form/demo/getting-started.min.js +13 -13
  28. package/components/form/demo/index.min.js +13 -13
  29. package/components/form/demo/registerDemoDeps.min.js +13 -13
  30. package/components/input/demo/customize.md +541 -472
  31. package/components/input/demo/customize.min.js +1 -1
  32. package/components/input/demo/getting-started.min.js +1 -1
  33. package/components/input/demo/index.min.js +1 -1
  34. package/components/input/dist/index.js +1 -1
  35. package/components/input/dist/registered.js +1 -1
  36. package/components/radio/demo/customize.min.js +1 -1
  37. package/components/radio/demo/getting-started.min.js +1 -1
  38. package/components/radio/demo/index.min.js +1 -1
  39. package/components/radio/dist/index.js +1 -1
  40. package/components/radio/dist/registered.js +1 -1
  41. package/components/select/demo/customize.min.js +2 -2
  42. package/components/select/demo/getting-started.min.js +2 -2
  43. package/components/select/demo/index.min.js +2 -2
  44. package/components/select/dist/index.js +2 -2
  45. package/components/select/dist/registered.js +2 -2
  46. package/custom-elements.json +1489 -1489
  47. package/package.json +1 -1
@@ -6,24 +6,25 @@
6
6
  <span slot="mobileToggleExpanded">View Less</span>
7
7
  <auro-anchorlink fluid href="#appearance">Appearance</auro-anchorlink>
8
8
  <auro-anchorlink fluid href="#activeLabel" class="level2 body-xs">Active Label</auro-anchorlink>
9
+ <auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
9
10
  <auro-anchorlink fluid href="#dvInputOnly" class="level2 body-xs">Display Value Input Only</auro-anchorlink>
10
11
  <auro-anchorlink fluid href="#icon" class="level2 body-xs">Icon</auro-anchorlink>
11
12
  <auro-anchorlink fluid href="#lightDarkBackground" class="level2 body-xs">Light vs. Dark Background</auro-anchorlink>
12
- <auro-anchorlink fluid href="#placeholder" class="level2 body-xs">Placeholder</auro-anchorlink>
13
+ <auro-anchorlink fluid href="#localization" class="level2 body-xs">Localization</auro-anchorlink>
14
+ <auro-anchorlink fluid href="#nested" class="level2 body-xs">Nested</auro-anchorlink>
13
15
  <auro-anchorlink fluid href="#optionalFlag" class="level2 body-xs">Optional Flag</auro-anchorlink>
16
+ <auro-anchorlink fluid href="#placeholder" class="level2 body-xs">Placeholder</auro-anchorlink>
14
17
  <auro-anchorlink fluid href="#simple" class="level2 body-xs">Simple</auro-anchorlink>
15
- <auro-anchorlink fluid href="#nested" class="level2 body-xs">Nested</auro-anchorlink>
16
18
  <auro-anchorlink fluid href="#cssTokens" class="level2 body-xs">Tokens</auro-anchorlink>
17
- <auro-anchorlink fluid href="#cssParts" class="level2 body-xs">CSS Shadow Parts</auro-anchorlink>
18
19
  <auro-anchorlink fluid href="#behavior">Behavior</auro-anchorlink>
19
20
  <auro-anchorlink fluid href="#autocapitalize" class="level2 body-xs">Autocapitalize</auro-anchorlink>
20
21
  <auro-anchorlink fluid href="#autocomplete" class="level2 body-xs">Autocomplete</auro-anchorlink>
21
22
  <auro-anchorlink fluid href="#autocorrect" class="level2 body-xs">Autocorrect</auro-anchorlink>
23
+ <auro-anchorlink fluid href="#setCustomValidity" class="level2 body-xs">Custom Validation Messages</auro-anchorlink>
22
24
  <auro-anchorlink fluid href="#disabled" class="level2 body-xs">Disabled</auro-anchorlink>
23
25
  <auro-anchorlink fluid href="#error" class="level2 body-xs">Error</auro-anchorlink>
24
26
  <auro-anchorlink fluid href="#format" class="level2 body-xs">Format</auro-anchorlink>
25
27
  <auro-anchorlink fluid href="#inputMode" class="level2 body-xs">Input Mode</auro-anchorlink>
26
- <auro-anchorlink fluid href="#localization" class="level2 body-xs">Localization</auro-anchorlink>
27
28
  <auro-anchorlink fluid href="#max" class="level2 body-xs">Max</auro-anchorlink>
28
29
  <auro-anchorlink fluid href="#maxLength" class="level2 body-xs">Max Length</auro-anchorlink>
29
30
  <auro-anchorlink fluid href="#min" class="level2 body-xs">Min</auro-anchorlink>
@@ -33,7 +34,6 @@
33
34
  <auro-anchorlink fluid href="#pattern" class="level2 body-xs">Pattern</auro-anchorlink>
34
35
  <auro-anchorlink fluid href="#readonly" class="level2 body-xs">Readonly</auro-anchorlink>
35
36
  <auro-anchorlink fluid href="#required" class="level2 body-xs">Required</auro-anchorlink>
36
- <auro-anchorlink fluid href="#setCustomValidity" class="level2 body-xs">Custom Validation Messages</auro-anchorlink>
37
37
  <auro-anchorlink fluid href="#type" class="level2 body-xs">Type</auro-anchorlink>
38
38
  <auro-anchorlink fluid href="#validateOnInput" class="level2 body-xs">Validate on Input</auro-anchorlink>
39
39
  <auro-anchorlink fluid href="#value" class="level2 body-xs">Value</auro-anchorlink>
@@ -64,6 +64,78 @@
64
64
  &lt;/auro-input&gt;</code></pre>
65
65
  <!-- AURO-GENERATED-CONTENT:END -->
66
66
  </auro-accordion>
67
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/css-parts.md) -->
68
+ <!-- The below content is automatically added from ./../docs/partials/customize/css-parts.md -->
69
+ <auro-header level="3" id="cssParts">CSS Shadow Parts</auro-header>
70
+ <p>CSS Shadow Parts allow you to style elements inside a web component's shadow DOM using the <code>::part()</code> pseudo-element. The following parts are exposed by <code>&lt;auro-input&gt;</code>.</p>
71
+ <table class="auro_table">
72
+ <thead>
73
+ <tr>
74
+ <th>Part</th>
75
+ <th>Description</th>
76
+ </tr>
77
+ </thead>
78
+ <tbody>
79
+ <tr><td><code>wrapper</code></td><td>The root wrapper element of the input.</td></tr>
80
+ <tr><td><code>label</code></td><td>The label element.</td></tr>
81
+ <tr><td><code>helpText</code></td><td>The help text element.</td></tr>
82
+ <tr><td><code>input</code></td><td>The native input element.</td></tr>
83
+ <tr><td><code>accentIcon</code></td><td>The accent icon element (e.g. credit card icon, calendar icon).</td></tr>
84
+ <tr><td><code>iconContainer</code></td><td>The icon container (e.g. X icon for clearing input value).</td></tr>
85
+ <tr><td><code>accent-left</code></td><td>The left accent element.</td></tr>
86
+ <tr><td><code>accent-right</code></td><td>The right accent element.</td></tr>
87
+ <tr><td><code>displayValue</code></td><td>The display value element.</td></tr>
88
+ <tr><td><code>inputHelpText</code></td><td>The input help text wrapper.</td></tr>
89
+ </tbody>
90
+ </table>
91
+ <!-- AURO-GENERATED-CONTENT:END -->
92
+ <div class="exampleWrapper">
93
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/css-parts.html) -->
94
+ <!-- The below content is automatically added from ../apiExamples/css-parts.html -->
95
+ <style>
96
+ auro-input.css-parts-demo::part(wrapper) {
97
+ border-color: orange;
98
+ }
99
+ auro-input.css-parts-demo::part(label) {
100
+ color: purple;
101
+ }
102
+ auro-input.css-parts-demo::part(helpText) {
103
+ color: green;
104
+ }
105
+ auro-input.css-parts-demo::part(input) {
106
+ font-style: italic;
107
+ }
108
+ </style>
109
+ <auro-input class="css-parts-demo" required>
110
+ <span slot="label">CSS Parts Example</span>
111
+ <span slot="helpText">This input has custom styles applied via CSS Shadow Parts.</span>
112
+ </auro-input>
113
+ <!-- AURO-GENERATED-CONTENT:END -->
114
+ </div>
115
+ <auro-accordion alignRight>
116
+ <span slot="trigger">See code</span>
117
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/css-parts.html) -->
118
+ <!-- The below code snippet is automatically added from ../apiExamples/css-parts.html -->
119
+ <pre class="language-html"><code class="language-html">&lt;style&gt;
120
+ auro-input.css-parts-demo::part(wrapper) {
121
+ border-color: orange;
122
+ }
123
+ auro-input.css-parts-demo::part(label) {
124
+ color: purple;
125
+ }
126
+ auro-input.css-parts-demo::part(helpText) {
127
+ color: green;
128
+ }
129
+ auro-input.css-parts-demo::part(input) {
130
+ font-style: italic;
131
+ }
132
+ &lt;/style&gt;
133
+ &lt;auro-input class="css-parts-demo" required&gt;
134
+ &lt;span slot="label"&gt;CSS Parts Example&lt;/span&gt;
135
+ &lt;span slot="helpText"&gt;This input has custom styles applied via CSS Shadow Parts.&lt;/span&gt;
136
+ &lt;/auro-input&gt;</code></pre>
137
+ <!-- AURO-GENERATED-CONTENT:END -->
138
+ </auro-accordion>
67
139
  <auro-header level="3" id="dvInputOnly">Display Value Input Only</auro-header>
68
140
  <p>Use the <code>dvInputOnly</code> attribute so that the <code>displayValue</code> slot content only masks the HTML5 input element. The input's label will not be masked. Without this attribute, the display value slot content covers both the label and the input.</p>
69
141
  <div class="exampleWrapper">
@@ -157,24 +229,177 @@
157
229
  &lt;/auro-input&gt;</code></pre>
158
230
  <!-- AURO-GENERATED-CONTENT:END -->
159
231
  </auro-accordion>
160
- <auro-header level="3" id="placeholder">Placeholder</auro-header>
161
- <p>Use the <code>placeholder</code> attribute to add a custom placeholder message within the element.</p>
232
+ <auro-header level="3" id="localization">Localization</auro-header>
233
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/localization.md) -->
234
+ <!-- The below content is automatically added from ./../docs/partials/customize/localization.md -->
235
+ <p>The component supports complete localization, including visible strings, screen reader announcements and locale based date formatting.</p>
236
+ <auro-header level="4" id="localizationVisibleStrings">Visible strings</auro-header>
237
+ <p>The visible strings rendered in the input are not derived from <code>locale</code> — they are projected through named slots so each language can supply its own translation. Pass a <code>&lt;span&gt;</code> with the matching <code>slot</code> attribute for every string you need to localize.</p>
238
+ </auro-table>
239
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-visible-strings.html) -->
240
+ <!-- The below content is automatically added from ./../apiExamples/localization-visible-strings.html -->
241
+ <auro-input locale="ja-JP">
242
+ <span slot="label">出発日</span>
243
+ <span slot="helpText">日付を選択してください</span>
244
+ <span slot="optionalLabel">(任意)</span>
245
+ <span slot="ariaLabel.clear">入力をクリア</span>
246
+ <span slot="ariaLabel.password.show">パスワードを表示</span>
247
+ <span slot="ariaLabel.password.hide">パスワードを非表示</span>
248
+ </auro-input>
249
+ <!-- AURO-GENERATED-CONTENT:END -->
250
+ <auro-header level="4" id="localizationA11yStrings">Screen reader strings</auro-header>
251
+ <p>Assistive-technology announcements that are not visible in the UI are also exposed as named slots so they can be translated independently. These strings are not derived from <code>locale</code>; supply translated values for every language you support.</p>
252
+ </auro-table>
253
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-screenreader-strings.html) -->
254
+ <!-- The below content is automatically added from ./../apiExamples/localization-screenreader-strings.html -->
255
+
256
+ <pre class="language-diff"><code class="language-diff"> &lt;auro-input locale="de-DE" type="password" value="geheim"&gt;
257
+ &lt;span slot="label"&gt;Passwort&lt;/span&gt;
258
+ &lt;span slot="helpText"&gt;Geben Sie Ihr Passwort ein&lt;/span&gt;
259
+ &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
260
+ + &lt;span slot="ariaLabel.clear"&gt;Eingabe löschen&lt;/span&gt;
261
+ + &lt;span slot="ariaLabel.password.show"&gt;Passwort anzeigen&lt;/span&gt;
262
+ + &lt;span slot="ariaLabel.password.hide"&gt;Passwort verbergen&lt;/span&gt;
263
+ &lt;/auro-input&gt;</code></pre>
264
+ <!-- AURO-GENERATED-CONTENT:END -->
265
+ <p class="note"><strong>Note:</strong> Custom validation messages set via <code>setCustomValidity*</code> attributes are also not localized — supply translated strings yourself when using those properties.</p>
266
+ <auro-header level="4" id="localizationDateFormatting">Date formatting</auro-header>
267
+ <p>When <code>type="date"</code> is set, the <code>locale</code> attribute drives the date format used by the input mask. Setting <code>locale</code> automatically selects the regional format (for example <code>en-US</code> → <code>mm/dd/yyyy</code>, <code>de-DE</code> → <code>dd.mm.yyyy</code>, <code>ja-JP</code> → <code>yyyy/mm/dd</code>), derived from the browser's <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl" target="_blank">Intl</auro-hyperlink> API, so <code>format</code> does not need to be set manually.</p>
268
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale.html) -->
269
+ <!-- The below content is automatically added from ./../apiExamples/localization-locale.html -->
270
+
271
+ <pre class="language-diff"><code class="language-diff">- &lt;auro-input&gt;
272
+ + &lt;auro-input locale="de-DE"&gt;
273
+ &lt;span slot="label"&gt;Abreisedatum&lt;/span&gt;
274
+ &lt;span slot="helpText"&gt;Wählen Sie ein Datum&lt;/span&gt;
275
+ &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
276
+ &lt;/auro-input&gt;</code></pre>
277
+ <!-- AURO-GENERATED-CONTENT:END -->
278
+ <p>If no <code>locale</code> attribute is present, the component walks up the DOM looking for the nearest ancestor with a <code>data-locale</code> attribute; if none is found, it defaults to <code>en-US</code>.</p>
279
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale-inherited.html) -->
280
+ <!-- The below content is automatically added from ./../apiExamples/localization-locale-inherited.html -->
281
+
282
+ <pre class="language-diff"><code class="language-diff">+ &lt;div data-locale="de-DE"&gt;
283
+ &lt;div&gt;
284
+ &lt;auro-input&gt;
285
+ &lt;span slot="label"&gt;Abreisedatum&lt;/span&gt;
286
+ &lt;span slot="helpText"&gt;Wählen Sie ein Datum&lt;/span&gt;
287
+ &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
288
+ &lt;/auro-input&gt;
289
+ &lt;/div&gt;
290
+ &lt;/div&gt;</code></pre>
291
+ <!-- AURO-GENERATED-CONTENT:END -->
292
+ <p>If <code>format</code> is set alongside <code>locale</code>, <code>format</code> always wins.</p>
293
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/localization-locale-formatted.html) -->
294
+ <!-- The below content is automatically added from ./../apiExamples/localization-locale-formatted.html -->
295
+
296
+ <pre class="language-diff"><code class="language-diff">- &lt;auro-input locale="de-DE"&gt;
297
+ + &lt;auro-input locale="de-DE" format="MM/DD/YYYY"&gt;
298
+ &lt;span slot="label"&gt;Abreisedatum&lt;/span&gt;
299
+ &lt;span slot="helpText"&gt;Wählen Sie ein Datum&lt;/span&gt;
300
+ &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
301
+ &lt;/auro-input&gt;</code></pre>
302
+ <!-- AURO-GENERATED-CONTENT:END -->
162
303
  <div class="exampleWrapper">
163
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/placeholder.html) -->
164
- <!-- The below content is automatically added from ../apiExamples/placeholder.html -->
165
- <auro-input placeholder="John Doe" required>
166
- <span slot="label">Full name</span>
167
- <span slot="helpText">Please enter your full name.</span>
304
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/locale.html) -->
305
+ <!-- The below content is automatically added from ./../apiExamples/locale.html -->
306
+ <div data-locale="de-DE">
307
+ <auro-header level="4">en-GB Example</auro-header>
308
+ <auro-input type="date" locale="en-GB">
309
+ <span slot="ariaLabel.clear">Clear All</span>
310
+ <span slot="label">en-GB Date</span>
311
+ <span slot="helpText">Help Text</span>
312
+ </auro-input>
313
+ <auro-header level="4">en-US Example</auro-header>
314
+ <auro-input type="date" locale="en-US">
315
+ <span slot="ariaLabel.clear">Clear All</span>
316
+ <span slot="label">en-US Date</span>
317
+ <span slot="helpText">Help Text</span>
318
+ </auro-input>
319
+ <auro-header level="4">zh-CN Example</auro-header>
320
+ <auro-input type="date" locale="zh-CN">
321
+ <span slot="ariaLabel.clear">全部清除</span>
322
+ <span slot="label">中文日期</span>
323
+ <span slot="helpText">帮助文本</span>
324
+ <span slot="optionalLabel">(可选)</span>
325
+ </auro-input>
326
+ <auro-header level="4">Inherited de-DE date-locale Example</auro-header>
327
+ <auro-input type="date">
328
+ <span slot="ariaLabel.clear">Alles löschen</span>
329
+ <span slot="label">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
330
+ <span slot="helpText">Hilfetext</span>
331
+ <span slot="optionalLabel">(freiwillig)</span>
332
+ </auro-input>
333
+ <auro-header level="4">en-US with `yyyy.mm.dd` format Example</auro-header>
334
+ <auro-input type="date" locale="en-US" format="yyyy.mm.dd">
335
+ <span slot="ariaLabel.clear">Clear All</span>
336
+ <span slot="label">en-US with yyyy.mm.dd format</span>
337
+ <span slot="helpText">Help Text</span>
338
+ </div>
339
+ <!-- AURO-GENERATED-CONTENT:END -->
340
+ </div>
341
+ <auro-accordion alignRight>
342
+ <span slot="trigger">See code</span>
343
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/locale.html) -->
344
+ <!-- The below code snippet is automatically added from ./../apiExamples/locale.html -->
345
+ <pre class="language-html"><code class="language-html">&lt;div data-locale="de-DE"&gt;
346
+ &lt;auro-header level="4"&gt;en-GB Example&lt;/auro-header&gt;
347
+ &lt;auro-input type="date" locale="en-GB"&gt;
348
+ &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
349
+ &lt;span slot="label"&gt;en-GB Date&lt;/span&gt;
350
+ &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
351
+ &lt;/auro-input&gt;
352
+
353
+ &lt;auro-header level="4"&gt;en-US Example&lt;/auro-header&gt;
354
+ &lt;auro-input type="date" locale="en-US"&gt;
355
+ &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
356
+ &lt;span slot="label"&gt;en-US Date&lt;/span&gt;
357
+ &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
358
+ &lt;/auro-input&gt;
359
+
360
+ &lt;auro-header level="4"&gt;zh-CN Example&lt;/auro-header&gt;
361
+ &lt;auro-input type="date" locale="zh-CN"&gt;
362
+ &lt;span slot="ariaLabel.clear"&gt;全部清除&lt;/span&gt;
363
+ &lt;span slot="label"&gt;中文日期&lt;/span&gt;
364
+ &lt;span slot="helpText"&gt;帮助文本&lt;/span&gt;
365
+ &lt;span slot="optionalLabel"&gt;(可选)&lt;/span&gt;
366
+ &lt;/auro-input&gt;
367
+
368
+ &lt;auro-header level="4"&gt;Inherited de-DE date-locale Example&lt;/auro-header&gt;
369
+ &lt;auro-input type="date"&gt;
370
+ &lt;span slot="ariaLabel.clear"&gt;Alles löschen&lt;/span&gt;
371
+ &lt;span slot="label"&gt;Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)&lt;/span&gt;
372
+ &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
373
+ &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
374
+ &lt;/auro-input&gt;
375
+
376
+ &lt;auro-header level="4"&gt;en-US with `yyyy.mm.dd` format Example&lt;/auro-header&gt;
377
+ &lt;auro-input type="date" locale="en-US" format="yyyy.mm.dd"&gt;
378
+ &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
379
+ &lt;span slot="label"&gt;en-US with yyyy.mm.dd format&lt;/span&gt;
380
+ &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
381
+ &lt;/div&gt;</code></pre>
382
+ <!-- AURO-GENERATED-CONTENT:END -->
383
+ </auro-accordion>
384
+ <!-- AURO-GENERATED-CONTENT:END -->
385
+ <auro-header level="3" id="nested">Nested</auro-header>
386
+ <p>Use the <code>nested</code> attribute to render the input without borders, help text, error text, or accents. This is intended for use when the input is embedded inside the trigger of an auro-droopdown.</p>
387
+ <div class="exampleWrapper">
388
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/nested.html) -->
389
+ <!-- The below content is automatically added from ./../apiExamples/nested.html -->
390
+ <auro-input nested>
391
+ <span slot="label">Nested Input</span>
392
+ <span slot="helpText">Help Text</span>
168
393
  </auro-input>
169
394
  <!-- AURO-GENERATED-CONTENT:END -->
170
395
  </div>
171
396
  <auro-accordion alignRight>
172
397
  <span slot="trigger">See code</span>
173
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/placeholder.html) -->
174
- <!-- The below code snippet is automatically added from ../apiExamples/placeholder.html -->
175
- <pre class="language-html"><code class="language-html">&lt;auro-input placeholder="John Doe" required&gt;
176
- &lt;span slot="label"&gt;Full name&lt;/span&gt;
177
- &lt;span slot="helpText"&gt;Please enter your full name.&lt;/span&gt;
398
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/nested.html) -->
399
+ <!-- The below code snippet is automatically added from ./../apiExamples/nested.html -->
400
+ <pre class="language-html"><code class="language-html">&lt;auro-input nested&gt;
401
+ &lt;span slot="label"&gt;Nested Input&lt;/span&gt;
402
+ &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
178
403
  &lt;/auro-input&gt;</code></pre>
179
404
  <!-- AURO-GENERATED-CONTENT:END -->
180
405
  </auro-accordion>
@@ -202,6 +427,27 @@
202
427
  &lt;/auro-input&gt;</code></pre>
203
428
  <!-- AURO-GENERATED-CONTENT:END -->
204
429
  </auro-accordion>
430
+ <auro-header level="3" id="placeholder">Placeholder</auro-header>
431
+ <p>Use the <code>placeholder</code> attribute to add a custom placeholder message within the element.</p>
432
+ <div class="exampleWrapper">
433
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/placeholder.html) -->
434
+ <!-- The below content is automatically added from ../apiExamples/placeholder.html -->
435
+ <auro-input placeholder="John Doe" required>
436
+ <span slot="label">Full name</span>
437
+ <span slot="helpText">Please enter your full name.</span>
438
+ </auro-input>
439
+ <!-- AURO-GENERATED-CONTENT:END -->
440
+ </div>
441
+ <auro-accordion alignRight>
442
+ <span slot="trigger">See code</span>
443
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/placeholder.html) -->
444
+ <!-- The below code snippet is automatically added from ../apiExamples/placeholder.html -->
445
+ <pre class="language-html"><code class="language-html">&lt;auro-input placeholder="John Doe" required&gt;
446
+ &lt;span slot="label"&gt;Full name&lt;/span&gt;
447
+ &lt;span slot="helpText"&gt;Please enter your full name.&lt;/span&gt;
448
+ &lt;/auro-input&gt;</code></pre>
449
+ <!-- AURO-GENERATED-CONTENT:END -->
450
+ </auro-accordion>
205
451
  <auro-header level="3" id="simple">Simple</auro-header>
206
452
  <p>Use the <code>simple</code> attribute to render the input without a border. This is intended for use when the input is embedded inside the trigger of an auro-droopdown.</p>
207
453
  <div class="exampleWrapper">
@@ -223,29 +469,6 @@
223
469
  &lt;/auro-input&gt;</code></pre>
224
470
  <!-- AURO-GENERATED-CONTENT:END -->
225
471
  </auro-accordion>
226
- <auro-header level="3" id="nested">Nested</auro-header>
227
- <p>Use the <code>nested</code> attribute to render the input without borders, help text, error text, or accents. This is intended for use when the input is embedded inside the trigger of an auro-droopdown.</p>
228
- <div class="exampleWrapper">
229
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/nested.html) -->
230
- <!-- The below content is automatically added from ./../apiExamples/nested.html -->
231
- <auro-input nested>
232
- <span slot="label">Nested Input</span>
233
- <span slot="helpText">Help Text</span>
234
- </auro-input>
235
- <!-- AURO-GENERATED-CONTENT:END -->
236
- </div>
237
- <auro-accordion alignRight>
238
- <span slot="trigger">See code</span>
239
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/nested.html) -->
240
- <!-- The below code snippet is automatically added from ./../apiExamples/nested.html -->
241
- <pre class="language-html"><code class="language-html">&lt;auro-input nested&gt;
242
- &lt;span slot="label"&gt;Nested Input&lt;/span&gt;
243
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
244
- &lt;/auro-input&gt;</code></pre>
245
- <!-- AURO-GENERATED-CONTENT:END -->
246
- </auro-accordion>
247
- </section>
248
- <section>
249
472
  <auro-header level="3" id="cssTokens">Tokens</auro-header>
250
473
  <p>The component may be restyled by changing the values of the following token(s).</p>
251
474
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../src/styles/tokens.scss) -->
@@ -282,80 +505,6 @@
282
505
  <!-- AURO-GENERATED-CONTENT:END -->
283
506
  </section>
284
507
  <section>
285
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/customize/css-parts.md) -->
286
- <!-- The below content is automatically added from ./../docs/partials/customize/css-parts.md -->
287
- <auro-header level="3" id="cssParts">CSS Shadow Parts</auro-header>
288
- <p>CSS Shadow Parts allow you to style elements inside a web component's shadow DOM using the <code>::part()</code> pseudo-element. The following parts are exposed by <code>&lt;auro-input&gt;</code>.</p>
289
- <table class="auro_table">
290
- <thead>
291
- <tr>
292
- <th>Part</th>
293
- <th>Description</th>
294
- </tr>
295
- </thead>
296
- <tbody>
297
- <tr><td><code>wrapper</code></td><td>The root wrapper element of the input.</td></tr>
298
- <tr><td><code>label</code></td><td>The label element.</td></tr>
299
- <tr><td><code>helpText</code></td><td>The help text element.</td></tr>
300
- <tr><td><code>input</code></td><td>The native input element.</td></tr>
301
- <tr><td><code>accentIcon</code></td><td>The accent icon element (e.g. credit card icon, calendar icon).</td></tr>
302
- <tr><td><code>iconContainer</code></td><td>The icon container (e.g. X icon for clearing input value).</td></tr>
303
- <tr><td><code>accent-left</code></td><td>The left accent element.</td></tr>
304
- <tr><td><code>accent-right</code></td><td>The right accent element.</td></tr>
305
- <tr><td><code>displayValue</code></td><td>The display value element.</td></tr>
306
- <tr><td><code>inputHelpText</code></td><td>The input help text wrapper.</td></tr>
307
- </tbody>
308
- </table>
309
- <!-- AURO-GENERATED-CONTENT:END -->
310
- <div class="exampleWrapper">
311
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/css-parts.html) -->
312
- <!-- The below content is automatically added from ../apiExamples/css-parts.html -->
313
- <style>
314
- auro-input.css-parts-demo::part(wrapper) {
315
- border-color: orange;
316
- }
317
- auro-input.css-parts-demo::part(label) {
318
- color: purple;
319
- }
320
- auro-input.css-parts-demo::part(helpText) {
321
- color: green;
322
- }
323
- auro-input.css-parts-demo::part(input) {
324
- font-style: italic;
325
- }
326
- </style>
327
- <auro-input class="css-parts-demo" required>
328
- <span slot="label">CSS Parts Example</span>
329
- <span slot="helpText">This input has custom styles applied via CSS Shadow Parts.</span>
330
- </auro-input>
331
- <!-- AURO-GENERATED-CONTENT:END -->
332
- </div>
333
- <auro-accordion alignRight>
334
- <span slot="trigger">See code</span>
335
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/css-parts.html) -->
336
- <!-- The below code snippet is automatically added from ../apiExamples/css-parts.html -->
337
- <pre class="language-html"><code class="language-html">&lt;style&gt;
338
- auro-input.css-parts-demo::part(wrapper) {
339
- border-color: orange;
340
- }
341
- auro-input.css-parts-demo::part(label) {
342
- color: purple;
343
- }
344
- auro-input.css-parts-demo::part(helpText) {
345
- color: green;
346
- }
347
- auro-input.css-parts-demo::part(input) {
348
- font-style: italic;
349
- }
350
- &lt;/style&gt;
351
- &lt;auro-input class="css-parts-demo" required&gt;
352
- &lt;span slot="label"&gt;CSS Parts Example&lt;/span&gt;
353
- &lt;span slot="helpText"&gt;This input has custom styles applied via CSS Shadow Parts.&lt;/span&gt;
354
- &lt;/auro-input&gt;</code></pre>
355
- <!-- AURO-GENERATED-CONTENT:END -->
356
- </auro-accordion>
357
- </section>
358
- <section>
359
508
  <auro-header level="2" id="behavior">Behavior</auro-header>
360
509
  <auro-header level="3" id="autocapitalize">Autocapitalize</auro-header>
361
510
  <p>Use the <code>autocapitalize</code> attribute to control whether and how text input is automatically capitalized as it is entered by the user. Supported values: <code>off</code>/<code>none</code>, <code>on</code>/<code>sentences</code>, <code>words</code>, <code>characters</code>.</p>
@@ -436,6 +585,189 @@
436
585
  &lt;/auro-input&gt;</code></pre>
437
586
  <!-- AURO-GENERATED-CONTENT:END -->
438
587
  </auro-accordion>
588
+ <auro-header level="3" id="setCustomValidity">Custom Validation Messages</auro-header>
589
+ <p>The input provides several properties to customize the error messages displayed for different validation states. When a validation error occurs, the component checks for a state-specific message first, then falls back to the general <code>setCustomValidity</code> message.</p>
590
+ <ul>
591
+ <li><strong><code>setCustomValidity</code></strong> — Sets a fallback error message displayed for any validation error. This message is used when no state-specific message is defined.</li>
592
+ <li><strong><code>setCustomValidityValueMissing</code></strong> — Displayed when the component is <code>required</code> and the user leaves it empty.</li>
593
+ <li><strong><code>setCustomValidityForType</code></strong> — Displayed when the value does not match the expected format for the declared <code>type</code> (e.g. invalid email, phone number).</li>
594
+ <li><strong><code>setCustomValidityBadInput</code></strong> — Displayed when the browser considers the input value to be malformed (e.g. non-numeric characters in a <code>number</code> field).</li>
595
+ <li><strong><code>setCustomValidityRangeOverflow</code></strong> — Displayed when the value exceeds the <code>max</code> constraint.</li>
596
+ <li><strong><code>setCustomValidityRangeUnderflow</code></strong> — Displayed when the value is below the <code>min</code> constraint.</li>
597
+ <li><strong><code>setCustomValidityTooLong</code></strong> — Displayed when the value exceeds the <code>maxlength</code> constraint.</li>
598
+ <li><strong><code>setCustomValidityTooShort</code></strong> — Displayed when the value is shorter than the <code>minlength</code> constraint.</li>
599
+ <li><strong><code>setCustomValidityPatternMismatch</code></strong> — Displayed when the value does not match the declared <code>pattern</code>, or when <code>type="date"</code> and the entered date is not a valid calendar date (e.g. month/day values out of range). Falls back to <code>"Invalid Date Format Entered"</code> if not set.</li>
600
+ </ul>
601
+ <p>The priority order for error messages is: state-specific property &gt; <code>setCustomValidity</code> &gt; default browser message.</p>
602
+ <p class="note"><strong>Note:</strong> Custom strings are NOT localized. It is the responsibility of the element consumer to provide localized strings when using these properties.</p>
603
+ <auro-header level="4">Bad Input</auro-header>
604
+ <p>Use <code>setCustomValidityBadInput</code> to customize the message when the browser considers the input malformed.</p>
605
+ <div class="exampleWrapper">
606
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-bad-input.html) -->
607
+ <!-- The below content is automatically added from ../apiExamples/set-custom-validity-bad-input.html -->
608
+ <auro-input type="number" minlength="1" setCustomValidityBadInput="Please enter a valid whole number.">
609
+ <span slot="label">Quantity</span>
610
+ <span slot="helpText">Enter the number of items.</span>
611
+ </auro-input>
612
+ <!-- AURO-GENERATED-CONTENT:END -->
613
+ </div>
614
+ <auro-accordion alignRight>
615
+ <span slot="trigger">See code</span>
616
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-bad-input.html) -->
617
+ <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-bad-input.html -->
618
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="number" minlength="1" setCustomValidityBadInput="Please enter a valid whole number."&gt;
619
+ &lt;span slot="label"&gt;Quantity&lt;/span&gt;
620
+ &lt;span slot="helpText"&gt;Enter the number of items.&lt;/span&gt;
621
+ &lt;/auro-input&gt;</code></pre>
622
+ <!-- AURO-GENERATED-CONTENT:END -->
623
+ </auro-accordion>
624
+ <auro-header level="4">Fallback Message</auro-header>
625
+ <p>Use <code>setCustomValidity</code> to set a single message for all validation states.</p>
626
+ <div class="exampleWrapper">
627
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity.html) -->
628
+ <!-- The below content is automatically added from ../apiExamples/set-custom-validity.html -->
629
+ <auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
630
+ <span slot="label">Full Name</span>
631
+ <span slot="helpText">Please enter your full name.</span>
632
+ </auro-input>
633
+ <!-- AURO-GENERATED-CONTENT:END -->
634
+ </div>
635
+ <auro-accordion alignRight>
636
+ <span slot="trigger">See code</span>
637
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity.html) -->
638
+ <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity.html -->
639
+ <pre class="language-html"><code class="language-html">&lt;auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required)."&gt;
640
+ &lt;span slot="label"&gt;Full Name&lt;/span&gt;
641
+ &lt;span slot="helpText"&gt;Please enter your full name.&lt;/span&gt;
642
+ &lt;/auro-input&gt;</code></pre>
643
+ <!-- AURO-GENERATED-CONTENT:END -->
644
+ </auro-accordion>
645
+ <auro-header level="4">Range Overflow</auro-header>
646
+ <p>Use <code>setCustomValidityRangeOverflow</code> to customize the message when the value exceeds the <code>max</code> constraint.</p>
647
+ <div class="exampleWrapper">
648
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-range-overflow.html) -->
649
+ <!-- The below content is automatically added from ../apiExamples/set-custom-validity-range-overflow.html -->
650
+ <auro-input type="date" max="12/31/2025" setCustomValidityRangeOverflow="Date must be on or before 12/31/2025.">
651
+ <span slot="label">Event Date</span>
652
+ <span slot="helpText">Enter a date no later than 12/31/2025.</span>
653
+ </auro-input>
654
+ <!-- AURO-GENERATED-CONTENT:END -->
655
+ </div>
656
+ <auro-accordion alignRight>
657
+ <span slot="trigger">See code</span>
658
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-range-overflow.html) -->
659
+ <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-range-overflow.html -->
660
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="date" max="12/31/2025" setCustomValidityRangeOverflow="Date must be on or before 12/31/2025."&gt;
661
+ &lt;span slot="label"&gt;Event Date&lt;/span&gt;
662
+ &lt;span slot="helpText"&gt;Enter a date no later than 12/31/2025.&lt;/span&gt;
663
+ &lt;/auro-input&gt;</code></pre>
664
+ <!-- AURO-GENERATED-CONTENT:END -->
665
+ </auro-accordion>
666
+ <auro-header level="4">Range Underflow</auro-header>
667
+ <p>Use <code>setCustomValidityRangeUnderflow</code> to customize the message when the value is below the <code>min</code> constraint.</p>
668
+ <div class="exampleWrapper">
669
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-range-underflow.html) -->
670
+ <!-- The below content is automatically added from ../apiExamples/set-custom-validity-range-underflow.html -->
671
+ <auro-input type="date" min="01/01/2024" setCustomValidityRangeUnderflow="Date must be on or after 01/01/2024.">
672
+ <span slot="label">Start Date</span>
673
+ <span slot="helpText">Enter a date no earlier than 01/01/2024.</span>
674
+ </auro-input>
675
+ <!-- AURO-GENERATED-CONTENT:END -->
676
+ </div>
677
+ <auro-accordion alignRight>
678
+ <span slot="trigger">See code</span>
679
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-range-underflow.html) -->
680
+ <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-range-underflow.html -->
681
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="date" min="01/01/2024" setCustomValidityRangeUnderflow="Date must be on or after 01/01/2024."&gt;
682
+ &lt;span slot="label"&gt;Start Date&lt;/span&gt;
683
+ &lt;span slot="helpText"&gt;Enter a date no earlier than 01/01/2024.&lt;/span&gt;
684
+ &lt;/auro-input&gt;</code></pre>
685
+ <!-- AURO-GENERATED-CONTENT:END -->
686
+ </auro-accordion>
687
+ <auro-header level="4">Too Long</auro-header>
688
+ <p>Use <code>setCustomValidityTooLong</code> to customize the message when the value exceeds the <code>maxlength</code> constraint.</p>
689
+ <div class="exampleWrapper">
690
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-too-long.html) -->
691
+ <!-- The below content is automatically added from ../apiExamples/set-custom-validity-too-long.html -->
692
+ <auro-input maxlength="10" setCustomValidityTooLong="Please shorten your entry to 10 characters or fewer.">
693
+ <span slot="label">Username</span>
694
+ <span slot="helpText">Maximum 10 characters.</span>
695
+ </auro-input>
696
+ <!-- AURO-GENERATED-CONTENT:END -->
697
+ </div>
698
+ <auro-accordion alignRight>
699
+ <span slot="trigger">See code</span>
700
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-too-long.html) -->
701
+ <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-too-long.html -->
702
+ <pre class="language-html"><code class="language-html">&lt;auro-input maxlength="10" setCustomValidityTooLong="Please shorten your entry to 10 characters or fewer."&gt;
703
+ &lt;span slot="label"&gt;Username&lt;/span&gt;
704
+ &lt;span slot="helpText"&gt;Maximum 10 characters.&lt;/span&gt;
705
+ &lt;/auro-input&gt;</code></pre>
706
+ <!-- AURO-GENERATED-CONTENT:END -->
707
+ </auro-accordion>
708
+ <auro-header level="4">Too Short</auro-header>
709
+ <p>Use <code>setCustomValidityTooShort</code> to customize the message when the value is shorter than the <code>minlength</code> constraint.</p>
710
+ <div class="exampleWrapper">
711
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-too-short.html) -->
712
+ <!-- The below content is automatically added from ../apiExamples/set-custom-validity-too-short.html -->
713
+ <auro-input minlength="3" setCustomValidityTooShort="Please enter at least 3 characters.">
714
+ <span slot="label">Nickname</span>
715
+ <span slot="helpText">Minimum 3 characters.</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/set-custom-validity-too-short.html) -->
722
+ <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-too-short.html -->
723
+ <pre class="language-html"><code class="language-html">&lt;auro-input minlength="3" setCustomValidityTooShort="Please enter at least 3 characters."&gt;
724
+ &lt;span slot="label"&gt;Nickname&lt;/span&gt;
725
+ &lt;span slot="helpText"&gt;Minimum 3 characters.&lt;/span&gt;
726
+ &lt;/auro-input&gt;</code></pre>
727
+ <!-- AURO-GENERATED-CONTENT:END -->
728
+ </auro-accordion>
729
+ <auro-header level="4">Type Validation</auro-header>
730
+ <p>Use <code>setCustomValidityForType</code> to customize the message when the value doesn't match the declared <code>type</code> format.</p>
731
+ <div class="exampleWrapper">
732
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-for-type.html) -->
733
+ <!-- The below content is automatically added from ../apiExamples/set-custom-validity-for-type.html -->
734
+ <auro-input type="email" setCustomValidityForType="Please provide a valid email address (e.g. name@example.com).">
735
+ <span slot="label">Email Address</span>
736
+ <span slot="helpText">We'll use this to send your confirmation.</span>
737
+ </auro-input>
738
+ <!-- AURO-GENERATED-CONTENT:END -->
739
+ </div>
740
+ <auro-accordion alignRight>
741
+ <span slot="trigger">See code</span>
742
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-for-type.html) -->
743
+ <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-for-type.html -->
744
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="email" setCustomValidityForType="Please provide a valid email address (e.g. name@example.com)."&gt;
745
+ &lt;span slot="label"&gt;Email Address&lt;/span&gt;
746
+ &lt;span slot="helpText"&gt;We'll use this to send your confirmation.&lt;/span&gt;
747
+ &lt;/auro-input&gt;</code></pre>
748
+ <!-- AURO-GENERATED-CONTENT:END -->
749
+ </auro-accordion>
750
+ <auro-header level="4">Value Missing</auro-header>
751
+ <p>Use <code>setCustomValidityValueMissing</code> to customize the message when a <code>required</code> field is left empty.</p>
752
+ <div class="exampleWrapper">
753
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-value-missing.html) -->
754
+ <!-- The below content is automatically added from ../apiExamples/set-custom-validity-value-missing.html -->
755
+ <auro-input required setCustomValidityValueMissing="Please enter your name to continue.">
756
+ <span slot="label">Full Name</span>
757
+ <span slot="helpText">Enter your legal first and last name.</span>
758
+ </auro-input>
759
+ <!-- AURO-GENERATED-CONTENT:END -->
760
+ </div>
761
+ <auro-accordion alignRight>
762
+ <span slot="trigger">See code</span>
763
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-value-missing.html) -->
764
+ <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-value-missing.html -->
765
+ <pre class="language-html"><code class="language-html">&lt;auro-input required setCustomValidityValueMissing="Please enter your name to continue."&gt;
766
+ &lt;span slot="label"&gt;Full Name&lt;/span&gt;
767
+ &lt;span slot="helpText"&gt;Enter your legal first and last name.&lt;/span&gt;
768
+ &lt;/auro-input&gt;</code></pre>
769
+ <!-- AURO-GENERATED-CONTENT:END -->
770
+ </auro-accordion>
439
771
  <auro-header level="3" id="disabled">Disabled</auro-header>
440
772
  <p>Use the <code>disable</code> attribute to prevent the user from interacting with the input.</p>
441
773
  <div class="exampleWrapper">
@@ -508,7 +840,7 @@
508
840
  <li>a : letter</li>
509
841
  <li>* : any character</li>
510
842
  </ul>
511
- <p>See <a href="https://imask.js.org/">IMask</a> for more information on how to configure a mask.</p>
843
+ <p>See <auro-hyperlink href="https://imask.js.org/">IMask</auro-hyperlink> for more information on how to configure a mask.</p>
512
844
  <div class="exampleWrapper">
513
845
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/format.html) -->
514
846
  <!-- The below content is automatically added from ../apiExamples/format.html -->
@@ -528,94 +860,14 @@
528
860
  &lt;/auro-input&gt;</code></pre>
529
861
  <!-- AURO-GENERATED-CONTENT:END -->
530
862
  </auro-accordion>
531
- <auro-header level="3" id="localization">Localization</auro-header>
532
- <p>When <code>type="date"</code> is used with the <code>locale</code> attribute, the component automatically derives the correct date format for that region — no need to set <code>format</code> manually. For example, <code>locale="en-US"</code> produces <code>mm/dd/yyyy</code>, <code>locale="de-DE"</code> produces <code>dd.mm.yyyy</code>, and <code>locale="ja-JP"</code> produces <code>yyyy/mm/dd</code>.</p>
533
- <p>If <code>format</code> is explicitly set alongside <code>locale</code>, <code>format</code> always wins. Use this when a specific format is required regardless of region.</p>
863
+ <auro-header level="3" id="inputMode">Input Mode</auro-header>
864
+ <p>Set the <code>inputmode</code> for the input.</p>
865
+ <p><strong>IMPORTANT</strong>: If you are also passing a <code>type</code>, most browsers will use the <code>type</code> attribute to determine what keyboard to display on mobile devices and ignore the <code>inputmode</code> attribute.</p>
534
866
  <div class="exampleWrapper">
535
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/locale.html) -->
536
- <!-- The below content is automatically added from ../apiExamples/locale.html -->
537
- <div data-locale="de-DE">
538
- <auro-header level="4">en-GB Example</auro-header>
539
- <auro-input type="date" locale="en-GB">
540
- <span slot="ariaLabel.clear">Clear All</span>
541
- <span slot="label">en-GB Date</span>
542
- <span slot="helpText">Help Text</span>
543
- </auro-input>
544
- <auro-header level="4">en-US Example</auro-header>
545
- <auro-input type="date" locale="en-US">
546
- <span slot="ariaLabel.clear">Clear All</span>
547
- <span slot="label">en-US Date</span>
548
- <span slot="helpText">Help Text</span>
549
- </auro-input>
550
- <auro-header level="4">zh-CN Example</auro-header>
551
- <auro-input type="date" locale="zh-CN">
552
- <span slot="ariaLabel.clear">全部清除</span>
553
- <span slot="label">中文日期</span>
554
- <span slot="helpText">帮助文本</span>
555
- <span slot="optionalLabel">(可选)</span>
556
- </auro-input>
557
- <auro-header level="4">Inherited de-DE date-locale Example</auro-header>
558
- <auro-input type="date">
559
- <span slot="ariaLabel.clear">Alles löschen</span>
560
- <span slot="label">Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)</span>
561
- <span slot="helpText">Hilfetext</span>
562
- <span slot="optionalLabel">(freiwillig)</span>
563
- </auro-input>
564
- <auro-header level="4">en-US with `yyyy.mm.dd` format Example</auro-header>
565
- <auro-input type="date" locale="en-US" format="yyyy.mm.dd">
566
- <span slot="ariaLabel.clear">Clear All</span>
567
- <span slot="label">en-US with yyyy.mm.dd format</span>
568
- <span slot="helpText">Help Text</span>
569
- </div>
570
- <!-- AURO-GENERATED-CONTENT:END -->
571
- </div>
572
- <auro-accordion alignRight>
573
- <span slot="trigger">See code</span>
574
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/locale.html) -->
575
- <!-- The below code snippet is automatically added from ../apiExamples/locale.html -->
576
- <pre class="language-html"><code class="language-html">&lt;div data-locale="de-DE"&gt;
577
- &lt;auro-header level="4"&gt;en-GB Example&lt;/auro-header&gt;
578
- &lt;auro-input type="date" locale="en-GB"&gt;
579
- &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
580
- &lt;span slot="label"&gt;en-GB Date&lt;/span&gt;
581
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
582
- &lt;/auro-input&gt;
583
- &lt;auro-header level="4"&gt;en-US Example&lt;/auro-header&gt;
584
- &lt;auro-input type="date" locale="en-US"&gt;
585
- &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
586
- &lt;span slot="label"&gt;en-US Date&lt;/span&gt;
587
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
588
- &lt;/auro-input&gt;
589
- &lt;auro-header level="4"&gt;zh-CN Example&lt;/auro-header&gt;
590
- &lt;auro-input type="date" locale="zh-CN"&gt;
591
- &lt;span slot="ariaLabel.clear"&gt;全部清除&lt;/span&gt;
592
- &lt;span slot="label"&gt;中文日期&lt;/span&gt;
593
- &lt;span slot="helpText"&gt;帮助文本&lt;/span&gt;
594
- &lt;span slot="optionalLabel"&gt;(可选)&lt;/span&gt;
595
- &lt;/auro-input&gt;
596
- &lt;auro-header level="4"&gt;Inherited de-DE date-locale Example&lt;/auro-header&gt;
597
- &lt;auro-input type="date"&gt;
598
- &lt;span slot="ariaLabel.clear"&gt;Alles löschen&lt;/span&gt;
599
- &lt;span slot="label"&gt;Nächstes `data-locale`-Attributformat (`de-DE` in diesem Fall)&lt;/span&gt;
600
- &lt;span slot="helpText"&gt;Hilfetext&lt;/span&gt;
601
- &lt;span slot="optionalLabel"&gt;(freiwillig)&lt;/span&gt;
602
- &lt;/auro-input&gt;
603
- &lt;auro-header level="4"&gt;en-US with `yyyy.mm.dd` format Example&lt;/auro-header&gt;
604
- &lt;auro-input type="date" locale="en-US" format="yyyy.mm.dd"&gt;
605
- &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
606
- &lt;span slot="label"&gt;en-US with yyyy.mm.dd format&lt;/span&gt;
607
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
608
- &lt;/div&gt;</code></pre>
609
- <!-- AURO-GENERATED-CONTENT:END -->
610
- </auro-accordion>
611
- <auro-header level="3" id="inputMode">Input Mode</auro-header>
612
- <p>Set the <code>inputmode</code> for the input.</p>
613
- <p><strong>IMPORTANT</strong>: If you are also passing a <code>type</code>, most browsers will use the <code>type</code> attribute to determine what keyboard to display on mobile devices and ignore the <code>inputmode</code> attribute.</p>
614
- <div class="exampleWrapper">
615
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
616
- <!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
617
- <auro-input inputmode="tel">
618
- <span slot="label">Telephone</span>
867
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
868
+ <!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
869
+ <auro-input inputmode="tel">
870
+ <span slot="label">Telephone</span>
619
871
  <span slot="helpText">Help Text</span>
620
872
  </auro-input>
621
873
  <!-- AURO-GENERATED-CONTENT:END -->
@@ -899,215 +1151,125 @@
899
1151
  &lt;/auro-input&gt;</code></pre>
900
1152
  <!-- AURO-GENERATED-CONTENT:END -->
901
1153
  </auro-accordion>
902
- <auro-header level="3" id="setCustomValidity">Custom Validation Messages</auro-header>
903
- <p>The input provides several properties to customize the error messages displayed for different validation states. When a validation error occurs, the component checks for a state-specific message first, then falls back to the general <code>setCustomValidity</code> message.</p>
904
- <ul>
905
- <li><strong><code>setCustomValidity</code></strong> Sets a fallback error message displayed for any validation error. This message is used when no state-specific message is defined.</li>
906
- <li><strong><code>setCustomValidityValueMissing</code></strong> — Displayed when the component is <code>required</code> and the user leaves it empty.</li>
907
- <li><strong><code>setCustomValidityForType</code></strong> — Displayed when the value does not match the expected format for the declared <code>type</code> (e.g. invalid email, phone number).</li>
908
- <li><strong><code>setCustomValidityBadInput</code></strong> — Displayed when the browser considers the input value to be malformed (e.g. non-numeric characters in a <code>number</code> field).</li>
909
- <li><strong><code>setCustomValidityRangeOverflow</code></strong> — Displayed when the value exceeds the <code>max</code> constraint.</li>
910
- <li><strong><code>setCustomValidityRangeUnderflow</code></strong> — Displayed when the value is below the <code>min</code> constraint.</li>
911
- <li><strong><code>setCustomValidityTooLong</code></strong> — Displayed when the value exceeds the <code>maxlength</code> constraint.</li>
912
- <li><strong><code>setCustomValidityTooShort</code></strong> — Displayed when the value is shorter than the <code>minlength</code> constraint.</li>
913
- <li><strong><code>setCustomValidityPatternMismatch</code></strong> — Displayed when the value does not match the declared <code>pattern</code>, or when <code>type="date"</code> and the entered date is not a valid calendar date (e.g. month/day values out of range). Falls back to <code>"Invalid Date Format Entered"</code> if not set.</li>
914
- </ul>
915
- <p>The priority order for error messages is: state-specific property &gt; <code>setCustomValidity</code> &gt; default browser message.</p>
916
- <p class="note"><strong>Note:</strong> Custom strings are NOT localized. It is the responsibility of the element consumer to provide localized strings when using these properties.</p>
917
- <auro-header level="4">Fallback Message</auro-header>
918
- <p>Use <code>setCustomValidity</code> to set a single message for all validation states.</p>
919
- <div class="exampleWrapper">
920
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity.html) -->
921
- <!-- The below content is automatically added from ../apiExamples/set-custom-validity.html -->
922
- <auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required).">
923
- <span slot="label">Full Name</span>
924
- <span slot="helpText">Please enter your full name.</span>
925
- </auro-input>
926
- <!-- AURO-GENERATED-CONTENT:END -->
927
- </div>
928
- <auro-accordion alignRight>
929
- <span slot="trigger">See code</span>
930
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity.html) -->
931
- <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity.html -->
932
- <pre class="language-html"><code class="language-html">&lt;auro-input required minlength="3" setCustomValidity="Sorry, please enter your first and last name (one space required)."&gt;
933
- &lt;span slot="label"&gt;Full Name&lt;/span&gt;
934
- &lt;span slot="helpText"&gt;Please enter your full name.&lt;/span&gt;
935
- &lt;/auro-input&gt;</code></pre>
936
- <!-- AURO-GENERATED-CONTENT:END -->
937
- </auro-accordion>
938
- <auro-header level="4">Value Missing</auro-header>
939
- <p>Use <code>setCustomValidityValueMissing</code> to customize the message when a <code>required</code> field is left empty.</p>
940
- <div class="exampleWrapper">
941
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-value-missing.html) -->
942
- <!-- The below content is automatically added from ../apiExamples/set-custom-validity-value-missing.html -->
943
- <auro-input required setCustomValidityValueMissing="Please enter your name to continue.">
944
- <span slot="label">Full Name</span>
945
- <span slot="helpText">Enter your legal first and last name.</span>
946
- </auro-input>
947
- <!-- AURO-GENERATED-CONTENT:END -->
948
- </div>
949
- <auro-accordion alignRight>
950
- <span slot="trigger">See code</span>
951
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-value-missing.html) -->
952
- <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-value-missing.html -->
953
- <pre class="language-html"><code class="language-html">&lt;auro-input required setCustomValidityValueMissing="Please enter your name to continue."&gt;
954
- &lt;span slot="label"&gt;Full Name&lt;/span&gt;
955
- &lt;span slot="helpText"&gt;Enter your legal first and last name.&lt;/span&gt;
956
- &lt;/auro-input&gt;</code></pre>
957
- <!-- AURO-GENERATED-CONTENT:END -->
958
- </auro-accordion>
959
- <auro-header level="4">Type Validation</auro-header>
960
- <p>Use <code>setCustomValidityForType</code> to customize the message when the value doesn't match the declared <code>type</code> format.</p>
961
- <div class="exampleWrapper">
962
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-for-type.html) -->
963
- <!-- The below content is automatically added from ../apiExamples/set-custom-validity-for-type.html -->
964
- <auro-input type="email" setCustomValidityForType="Please provide a valid email address (e.g. name@example.com).">
965
- <span slot="label">Email Address</span>
966
- <span slot="helpText">We'll use this to send your confirmation.</span>
967
- </auro-input>
968
- <!-- AURO-GENERATED-CONTENT:END -->
969
- </div>
970
- <auro-accordion alignRight>
971
- <span slot="trigger">See code</span>
972
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-for-type.html) -->
973
- <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-for-type.html -->
974
- <pre class="language-html"><code class="language-html">&lt;auro-input type="email" setCustomValidityForType="Please provide a valid email address (e.g. name@example.com)."&gt;
975
- &lt;span slot="label"&gt;Email Address&lt;/span&gt;
976
- &lt;span slot="helpText"&gt;We'll use this to send your confirmation.&lt;/span&gt;
977
- &lt;/auro-input&gt;</code></pre>
978
- <!-- AURO-GENERATED-CONTENT:END -->
979
- </auro-accordion>
980
- <auro-header level="4">Bad Input</auro-header>
981
- <p>Use <code>setCustomValidityBadInput</code> to customize the message when the browser considers the input malformed.</p>
1154
+ <auro-header level="3" id="type">Type</auro-header>
1155
+ <auro-header level="4" id="typeCreditCard">Credit Card</auro-header>
1156
+ <p>Use the <code>type="credit-card"</code> attribute for a credit card formatted input.</p>
1157
+ <p>Default help text will be added to the input <code>type="credit-card"</code> if custom help text is not provided.</p>
982
1158
  <div class="exampleWrapper">
983
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-bad-input.html) -->
984
- <!-- The below content is automatically added from ../apiExamples/set-custom-validity-bad-input.html -->
985
- <auro-input type="number" minlength="1" setCustomValidityBadInput="Please enter a valid whole number.">
986
- <span slot="label">Quantity</span>
987
- <span slot="helpText">Enter the number of items.</span>
1159
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/credit-card.html) -->
1160
+ <!-- The below content is automatically added from ../apiExamples/credit-card.html -->
1161
+ <auro-input type="credit-card" required>
1162
+ <span slot="label">Card number</span>
1163
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
988
1164
  </auro-input>
989
1165
  <!-- AURO-GENERATED-CONTENT:END -->
990
1166
  </div>
991
1167
  <auro-accordion alignRight>
992
1168
  <span slot="trigger">See code</span>
993
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-bad-input.html) -->
994
- <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-bad-input.html -->
995
- <pre class="language-html"><code class="language-html">&lt;auro-input type="number" minlength="1" setCustomValidityBadInput="Please enter a valid whole number."&gt;
996
- &lt;span slot="label"&gt;Quantity&lt;/span&gt;
997
- &lt;span slot="helpText"&gt;Enter the number of items.&lt;/span&gt;
1169
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/credit-card.html) -->
1170
+ <!-- The below code snippet is automatically added from ../apiExamples/credit-card.html -->
1171
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="credit-card" required&gt;
1172
+ &lt;span slot="label"&gt;Card number&lt;/span&gt;
1173
+ &lt;span slot="helpText"&gt;Valid credit card numbers must include 16 digits (15 for Amex).&lt;/span&gt;
998
1174
  &lt;/auro-input&gt;</code></pre>
999
1175
  <!-- AURO-GENERATED-CONTENT:END -->
1000
1176
  </auro-accordion>
1001
- <auro-header level="4">Range Overflow</auro-header>
1002
- <p>Use <code>setCustomValidityRangeOverflow</code> to customize the message when the value exceeds the <code>max</code> constraint.</p>
1177
+ <p>Use the <code>type="credit-card"</code> and <code>icon</code> attributes for a credit card formatted input with credit card icon support.</p>
1003
1178
  <div class="exampleWrapper">
1004
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-range-overflow.html) -->
1005
- <!-- The below content is automatically added from ../apiExamples/set-custom-validity-range-overflow.html -->
1006
- <auro-input type="date" max="12/31/2025" setCustomValidityRangeOverflow="Date must be on or before 12/31/2025.">
1007
- <span slot="label">Event Date</span>
1008
- <span slot="helpText">Enter a date no later than 12/31/2025.</span>
1179
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/credit-card-icon.html) -->
1180
+ <!-- The below content is automatically added from ../apiExamples/credit-card-icon.html -->
1181
+ <auro-input icon type="credit-card" required>
1182
+ <span slot="label">Card number</span>
1183
+ <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1009
1184
  </auro-input>
1010
1185
  <!-- AURO-GENERATED-CONTENT:END -->
1011
1186
  </div>
1012
1187
  <auro-accordion alignRight>
1013
1188
  <span slot="trigger">See code</span>
1014
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-range-overflow.html) -->
1015
- <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-range-overflow.html -->
1016
- <pre class="language-html"><code class="language-html">&lt;auro-input type="date" max="12/31/2025" setCustomValidityRangeOverflow="Date must be on or before 12/31/2025."&gt;
1017
- &lt;span slot="label"&gt;Event Date&lt;/span&gt;
1018
- &lt;span slot="helpText"&gt;Enter a date no later than 12/31/2025.&lt;/span&gt;
1189
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/credit-card-icon.html) -->
1190
+ <!-- The below code snippet is automatically added from ../apiExamples/credit-card-icon.html -->
1191
+ <pre class="language-html"><code class="language-html">&lt;auro-input icon type="credit-card" required&gt;
1192
+ &lt;span slot="label"&gt;Card number&lt;/span&gt;
1193
+ &lt;span slot="helpText"&gt;Valid credit card numbers must include 16 digits (15 for Amex).&lt;/span&gt;
1019
1194
  &lt;/auro-input&gt;</code></pre>
1020
1195
  <!-- AURO-GENERATED-CONTENT:END -->
1021
1196
  </auro-accordion>
1022
- <auro-header level="4">Range Underflow</auro-header>
1023
- <p>Use <code>setCustomValidityRangeUnderflow</code> to customize the message when the value is below the <code>min</code> constraint.</p>
1197
+ <auro-header level="4" id="typeDate">Date</auro-header>
1198
+ <p>Use the <code>type="date"</code> attribute for a date formatted input. The default date format is <code>mm/dd/yyyy</code>.</p>
1024
1199
  <div class="exampleWrapper">
1025
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-range-underflow.html) -->
1026
- <!-- The below content is automatically added from ../apiExamples/set-custom-validity-range-underflow.html -->
1027
- <auro-input type="date" min="01/01/2024" setCustomValidityRangeUnderflow="Date must be on or after 01/01/2024.">
1028
- <span slot="label">Start Date</span>
1029
- <span slot="helpText">Enter a date no earlier than 01/01/2024.</span>
1200
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month-day-year.html) -->
1201
+ <!-- The below content is automatically added from ../apiExamples/month-day-year.html -->
1202
+ <auro-input type="date">
1203
+ <span slot="label">Arrival date</span>
1204
+ <span slot="helpText">Help Text</span>
1030
1205
  </auro-input>
1031
1206
  <!-- AURO-GENERATED-CONTENT:END -->
1032
1207
  </div>
1033
1208
  <auro-accordion alignRight>
1034
1209
  <span slot="trigger">See code</span>
1035
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-range-underflow.html) -->
1036
- <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-range-underflow.html -->
1037
- <pre class="language-html"><code class="language-html">&lt;auro-input type="date" min="01/01/2024" setCustomValidityRangeUnderflow="Date must be on or after 01/01/2024."&gt;
1038
- &lt;span slot="label"&gt;Start Date&lt;/span&gt;
1039
- &lt;span slot="helpText"&gt;Enter a date no earlier than 01/01/2024.&lt;/span&gt;
1210
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/month-day-year.html) -->
1211
+ <!-- The below code snippet is automatically added from ../apiExamples/month-day-year.html -->
1212
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="date"&gt;
1213
+ &lt;span slot="label"&gt;Arrival date&lt;/span&gt;
1214
+ &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
1040
1215
  &lt;/auro-input&gt;</code></pre>
1041
1216
  <!-- AURO-GENERATED-CONTENT:END -->
1042
1217
  </auro-accordion>
1043
- <auro-header level="4">Too Long</auro-header>
1044
- <p>Use <code>setCustomValidityTooLong</code> to customize the message when the value exceeds the <code>maxlength</code> constraint.</p>
1218
+ <p>Use the <code>format</code> attribute to put together any combination of <code>mm</code>, <code>dd</code>, & <code>yyyy</code> or <code>yy</code>.</p>
1045
1219
  <div class="exampleWrapper">
1046
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-too-long.html) -->
1047
- <!-- The below content is automatically added from ../apiExamples/set-custom-validity-too-long.html -->
1048
- <auro-input maxlength="10" setCustomValidityTooLong="Please shorten your entry to 10 characters or fewer.">
1049
- <span slot="label">Username</span>
1050
- <span slot="helpText">Maximum 10 characters.</span>
1220
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/year-month-day.html) -->
1221
+ <!-- The below content is automatically added from ../apiExamples/year-month-day.html -->
1222
+ <auro-input type="date" format="yyyy/mm/dd">
1223
+ <span slot="label">Arrival date</span>
1224
+ <span slot="helpText">Help Text</span>
1051
1225
  </auro-input>
1052
1226
  <!-- AURO-GENERATED-CONTENT:END -->
1053
1227
  </div>
1054
1228
  <auro-accordion alignRight>
1055
1229
  <span slot="trigger">See code</span>
1056
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-too-long.html) -->
1057
- <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-too-long.html -->
1058
- <pre class="language-html"><code class="language-html">&lt;auro-input maxlength="10" setCustomValidityTooLong="Please shorten your entry to 10 characters or fewer."&gt;
1059
- &lt;span slot="label"&gt;Username&lt;/span&gt;
1060
- &lt;span slot="helpText"&gt;Maximum 10 characters.&lt;/span&gt;
1230
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/year-month-day.html) -->
1231
+ <!-- The below code snippet is automatically added from ../apiExamples/year-month-day.html -->
1232
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="date" format="yyyy/mm/dd"&gt;
1233
+ &lt;span slot="label"&gt;Arrival date&lt;/span&gt;
1234
+ &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
1061
1235
  &lt;/auro-input&gt;</code></pre>
1062
1236
  <!-- AURO-GENERATED-CONTENT:END -->
1063
1237
  </auro-accordion>
1064
- <auro-header level="4">Too Short</auro-header>
1065
- <p>Use <code>setCustomValidityTooShort</code> to customize the message when the value is shorter than the <code>minlength</code> constraint.</p>
1066
1238
  <div class="exampleWrapper">
1067
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/set-custom-validity-too-short.html) -->
1068
- <!-- The below content is automatically added from ../apiExamples/set-custom-validity-too-short.html -->
1069
- <auro-input minlength="3" setCustomValidityTooShort="Please enter at least 3 characters.">
1070
- <span slot="label">Nickname</span>
1071
- <span slot="helpText">Minimum 3 characters.</span>
1239
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month-year.html) -->
1240
+ <!-- The below content is automatically added from ../apiExamples/month-year.html -->
1241
+ <auro-input type="date" format="mm/yy">
1242
+ <span slot="label">Expiration date</span>
1243
+ <span slot="helpText">Help Text</span>
1072
1244
  </auro-input>
1073
1245
  <!-- AURO-GENERATED-CONTENT:END -->
1074
1246
  </div>
1075
1247
  <auro-accordion alignRight>
1076
1248
  <span slot="trigger">See code</span>
1077
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/set-custom-validity-too-short.html) -->
1078
- <!-- The below code snippet is automatically added from ../apiExamples/set-custom-validity-too-short.html -->
1079
- <pre class="language-html"><code class="language-html">&lt;auro-input minlength="3" setCustomValidityTooShort="Please enter at least 3 characters."&gt;
1080
- &lt;span slot="label"&gt;Nickname&lt;/span&gt;
1081
- &lt;span slot="helpText"&gt;Minimum 3 characters.&lt;/span&gt;
1249
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/month-year.html) -->
1250
+ <!-- The below code snippet is automatically added from ../apiExamples/month-year.html -->
1251
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="date" format="mm/yy"&gt;
1252
+ &lt;span slot="label"&gt;Expiration date&lt;/span&gt;
1253
+ &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
1082
1254
  &lt;/auro-input&gt;</code></pre>
1083
1255
  <!-- AURO-GENERATED-CONTENT:END -->
1084
1256
  </auro-accordion>
1085
- <auro-header level="3" id="type">Type</auro-header>
1086
- <auro-header level="4" id="typePassword">Password</auro-header>
1087
- <p>Use the <code>type="password"</code> attribute for a password style input. The hide/show password feature will automatically appear once a user begins to enter data.</p>
1088
- <p>Default help text will be added to the input <code>type="password"</code> if custom help text is not provided.</p>
1089
1257
  <div class="exampleWrapper">
1090
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
1091
- <!-- The below content is automatically added from ../apiExamples/password.html -->
1092
- <auro-input type="password" required>
1093
- <span slot="ariaLabel.clear">Clear All</span>
1094
- <span slot="ariaLabel.password.show">Show</span>
1095
- <span slot="ariaLabel.password.hide">Hide</span>
1096
- <span slot="label">Password</span>
1097
- <span slot="helpText">Please enter a secure password.</span>
1258
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/day.html) -->
1259
+ <!-- The below content is automatically added from ../apiExamples/day.html -->
1260
+ <auro-input type="date" format="dd">
1261
+ <span slot="label">Day</span>
1262
+ <span slot="helpText">Help Text</span>
1098
1263
  </auro-input>
1099
1264
  <!-- AURO-GENERATED-CONTENT:END -->
1100
1265
  </div>
1101
1266
  <auro-accordion alignRight>
1102
1267
  <span slot="trigger">See code</span>
1103
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/password.html) -->
1104
- <!-- The below code snippet is automatically added from ../apiExamples/password.html -->
1105
- <pre class="language-html"><code class="language-html">&lt;auro-input type="password" required&gt;
1106
- &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
1107
- &lt;span slot="ariaLabel.password.show"&gt;Show&lt;/span&gt;
1108
- &lt;span slot="ariaLabel.password.hide"&gt;Hide&lt;/span&gt;
1109
- &lt;span slot="label"&gt;Password&lt;/span&gt;
1110
- &lt;span slot="helpText"&gt;Please enter a secure password.&lt;/span&gt;
1268
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/day.html) -->
1269
+ <!-- The below code snippet is automatically added from ../apiExamples/day.html -->
1270
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="date" format="dd"&gt;
1271
+ &lt;span slot="label"&gt;Day&lt;/span&gt;
1272
+ &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
1111
1273
  &lt;/auro-input&gt;</code></pre>
1112
1274
  <!-- AURO-GENERATED-CONTENT:END -->
1113
1275
  </auro-accordion>
@@ -1156,45 +1318,31 @@
1156
1318
  &lt;/auro-input&gt;</code></pre>
1157
1319
  <!-- AURO-GENERATED-CONTENT:END -->
1158
1320
  </auro-accordion>
1159
- <auro-header level="4" id="typeCreditCard">Credit Card</auro-header>
1160
- <p>Use the <code>type="credit-card"</code> attribute for a credit card formatted input.</p>
1161
- <p>Default help text will be added to the input <code>type="credit-card"</code> if custom help text is not provided.</p>
1162
- <div class="exampleWrapper">
1163
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/credit-card.html) -->
1164
- <!-- The below content is automatically added from ../apiExamples/credit-card.html -->
1165
- <auro-input type="credit-card" required>
1166
- <span slot="label">Card number</span>
1167
- <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1168
- </auro-input>
1169
- <!-- AURO-GENERATED-CONTENT:END -->
1170
- </div>
1171
- <auro-accordion alignRight>
1172
- <span slot="trigger">See code</span>
1173
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/credit-card.html) -->
1174
- <!-- The below code snippet is automatically added from ../apiExamples/credit-card.html -->
1175
- <pre class="language-html"><code class="language-html">&lt;auro-input type="credit-card" required&gt;
1176
- &lt;span slot="label"&gt;Card number&lt;/span&gt;
1177
- &lt;span slot="helpText"&gt;Valid credit card numbers must include 16 digits (15 for Amex).&lt;/span&gt;
1178
- &lt;/auro-input&gt;</code></pre>
1179
- <!-- AURO-GENERATED-CONTENT:END -->
1180
- </auro-accordion>
1181
- <p>Use the <code>type="credit-card"</code> and <code>icon</code> attributes for a credit card formatted input with credit card icon support.</p>
1321
+ <auro-header level="4" id="typePassword">Password</auro-header>
1322
+ <p>Use the <code>type="password"</code> attribute for a password style input. The hide/show password feature will automatically appear once a user begins to enter data.</p>
1323
+ <p>Default help text will be added to the input <code>type="password"</code> if custom help text is not provided.</p>
1182
1324
  <div class="exampleWrapper">
1183
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/credit-card-icon.html) -->
1184
- <!-- The below content is automatically added from ../apiExamples/credit-card-icon.html -->
1185
- <auro-input icon type="credit-card" required>
1186
- <span slot="label">Card number</span>
1187
- <span slot="helpText">Valid credit card numbers must include 16 digits (15 for Amex).</span>
1325
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/password.html) -->
1326
+ <!-- The below content is automatically added from ../apiExamples/password.html -->
1327
+ <auro-input type="password" required>
1328
+ <span slot="ariaLabel.clear">Clear All</span>
1329
+ <span slot="ariaLabel.password.show">Show</span>
1330
+ <span slot="ariaLabel.password.hide">Hide</span>
1331
+ <span slot="label">Password</span>
1332
+ <span slot="helpText">Please enter a secure password.</span>
1188
1333
  </auro-input>
1189
1334
  <!-- AURO-GENERATED-CONTENT:END -->
1190
1335
  </div>
1191
1336
  <auro-accordion alignRight>
1192
1337
  <span slot="trigger">See code</span>
1193
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/credit-card-icon.html) -->
1194
- <!-- The below code snippet is automatically added from ../apiExamples/credit-card-icon.html -->
1195
- <pre class="language-html"><code class="language-html">&lt;auro-input icon type="credit-card" required&gt;
1196
- &lt;span slot="label"&gt;Card number&lt;/span&gt;
1197
- &lt;span slot="helpText"&gt;Valid credit card numbers must include 16 digits (15 for Amex).&lt;/span&gt;
1338
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/password.html) -->
1339
+ <!-- The below code snippet is automatically added from ../apiExamples/password.html -->
1340
+ <pre class="language-html"><code class="language-html">&lt;auro-input type="password" required&gt;
1341
+ &lt;span slot="ariaLabel.clear"&gt;Clear All&lt;/span&gt;
1342
+ &lt;span slot="ariaLabel.password.show"&gt;Show&lt;/span&gt;
1343
+ &lt;span slot="ariaLabel.password.hide"&gt;Hide&lt;/span&gt;
1344
+ &lt;span slot="label"&gt;Password&lt;/span&gt;
1345
+ &lt;span slot="helpText"&gt;Please enter a secure password.&lt;/span&gt;
1198
1346
  &lt;/auro-input&gt;</code></pre>
1199
1347
  <!-- AURO-GENERATED-CONTENT:END -->
1200
1348
  </auro-accordion>
@@ -1240,85 +1388,6 @@
1240
1388
  &lt;/auro-input&gt;</code></pre>
1241
1389
  <!-- AURO-GENERATED-CONTENT:END -->
1242
1390
  </auro-accordion>
1243
- <auro-header level="4" id="typeDate">Date</auro-header>
1244
- <p>Use the <code>type="date"</code> attribute for a date formatted input. The default date format is <code>mm/dd/yyyy</code>.</p>
1245
- <div class="exampleWrapper">
1246
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month-day-year.html) -->
1247
- <!-- The below content is automatically added from ../apiExamples/month-day-year.html -->
1248
- <auro-input type="date">
1249
- <span slot="label">Arrival date</span>
1250
- <span slot="helpText">Help Text</span>
1251
- </auro-input>
1252
- <!-- AURO-GENERATED-CONTENT:END -->
1253
- </div>
1254
- <auro-accordion alignRight>
1255
- <span slot="trigger">See code</span>
1256
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/month-day-year.html) -->
1257
- <!-- The below code snippet is automatically added from ../apiExamples/month-day-year.html -->
1258
- <pre class="language-html"><code class="language-html">&lt;auro-input type="date"&gt;
1259
- &lt;span slot="label"&gt;Arrival date&lt;/span&gt;
1260
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
1261
- &lt;/auro-input&gt;</code></pre>
1262
- <!-- AURO-GENERATED-CONTENT:END -->
1263
- </auro-accordion>
1264
- <p>Use the <code>format</code> attribute to put together any combination of <code>mm</code>, <code>dd</code>, & <code>yyyy</code> or <code>yy</code>.</p>
1265
- <div class="exampleWrapper">
1266
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/year-month-day.html) -->
1267
- <!-- The below content is automatically added from ../apiExamples/year-month-day.html -->
1268
- <auro-input type="date" format="yyyy/mm/dd">
1269
- <span slot="label">Arrival date</span>
1270
- <span slot="helpText">Help Text</span>
1271
- </auro-input>
1272
- <!-- AURO-GENERATED-CONTENT:END -->
1273
- </div>
1274
- <auro-accordion alignRight>
1275
- <span slot="trigger">See code</span>
1276
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/year-month-day.html) -->
1277
- <!-- The below code snippet is automatically added from ../apiExamples/year-month-day.html -->
1278
- <pre class="language-html"><code class="language-html">&lt;auro-input type="date" format="yyyy/mm/dd"&gt;
1279
- &lt;span slot="label"&gt;Arrival date&lt;/span&gt;
1280
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
1281
- &lt;/auro-input&gt;</code></pre>
1282
- <!-- AURO-GENERATED-CONTENT:END -->
1283
- </auro-accordion>
1284
- <div class="exampleWrapper">
1285
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/month-year.html) -->
1286
- <!-- The below content is automatically added from ../apiExamples/month-year.html -->
1287
- <auro-input type="date" format="mm/yy">
1288
- <span slot="label">Expiration date</span>
1289
- <span slot="helpText">Help Text</span>
1290
- </auro-input>
1291
- <!-- AURO-GENERATED-CONTENT:END -->
1292
- </div>
1293
- <auro-accordion alignRight>
1294
- <span slot="trigger">See code</span>
1295
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/month-year.html) -->
1296
- <!-- The below code snippet is automatically added from ../apiExamples/month-year.html -->
1297
- <pre class="language-html"><code class="language-html">&lt;auro-input type="date" format="mm/yy"&gt;
1298
- &lt;span slot="label"&gt;Expiration date&lt;/span&gt;
1299
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
1300
- &lt;/auro-input&gt;</code></pre>
1301
- <!-- AURO-GENERATED-CONTENT:END -->
1302
- </auro-accordion>
1303
- <div class="exampleWrapper">
1304
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/day.html) -->
1305
- <!-- The below content is automatically added from ../apiExamples/day.html -->
1306
- <auro-input type="date" format="dd">
1307
- <span slot="label">Day</span>
1308
- <span slot="helpText">Help Text</span>
1309
- </auro-input>
1310
- <!-- AURO-GENERATED-CONTENT:END -->
1311
- </div>
1312
- <auro-accordion alignRight>
1313
- <span slot="trigger">See code</span>
1314
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/day.html) -->
1315
- <!-- The below code snippet is automatically added from ../apiExamples/day.html -->
1316
- <pre class="language-html"><code class="language-html">&lt;auro-input type="date" format="dd"&gt;
1317
- &lt;span slot="label"&gt;Day&lt;/span&gt;
1318
- &lt;span slot="helpText"&gt;Help Text&lt;/span&gt;
1319
- &lt;/auro-input&gt;</code></pre>
1320
- <!-- AURO-GENERATED-CONTENT:END -->
1321
- </auro-accordion>
1322
1391
  <auro-header level="3" id="validateOnInput">Validate on Input</auro-header>
1323
1392
  <p>Use the <code>validateOnInput</code> attribute to enable live validation on the <code>input</code> event. Recommended use is with setting a custom <code>pattern</code> and validation is required prior to a <code>blur</code> event.</p>
1324
1393
  <div class="exampleWrapper">