@aurodesignsystem/auro-formkit 5.9.0 → 5.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -4
- package/README.md +4 -4
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +62 -62
- package/components/checkbox/demo/api.js +1 -1
- package/components/checkbox/demo/api.md +127 -84
- package/components/checkbox/demo/api.min.js +125 -42
- package/components/checkbox/demo/index.md +9 -281
- package/components/checkbox/demo/index.min.js +125 -42
- package/components/checkbox/demo/readme.html +3 -4
- package/components/checkbox/demo/readme.md +62 -62
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
- package/components/checkbox/dist/index.js +125 -42
- package/components/checkbox/dist/registered.js +125 -42
- package/components/combobox/README.md +76 -74
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +11 -12
- package/components/combobox/demo/api.md +1302 -875
- package/components/combobox/demo/api.min.js +416 -492
- package/components/combobox/demo/index.html +1 -7
- package/components/combobox/demo/index.js +0 -19
- package/components/combobox/demo/index.md +43 -723
- package/components/combobox/demo/index.min.js +369 -302
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +42 -42
- package/components/combobox/dist/index.js +204 -210
- package/components/combobox/dist/registered.js +204 -210
- package/components/counter/README.md +81 -66
- package/components/counter/demo/api.html +1 -2
- package/components/counter/demo/api.js +2 -2
- package/components/counter/demo/api.md +777 -259
- package/components/counter/demo/api.min.js +119 -171
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +117 -152
- package/components/counter/demo/readme.html +3 -4
- package/components/counter/demo/readme.md +81 -66
- package/components/counter/dist/auro-counter-group.d.ts +21 -36
- package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
- package/components/counter/dist/auro-counter.d.ts +5 -8
- package/components/counter/dist/index.js +117 -152
- package/components/counter/dist/registered.js +117 -152
- package/components/datepicker/README.md +57 -61
- package/components/datepicker/demo/api.js +8 -8
- package/components/datepicker/demo/api.md +720 -561
- package/components/datepicker/demo/api.min.js +678 -2769
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +678 -2769
- package/components/datepicker/demo/readme.html +3 -4
- package/components/datepicker/demo/readme.md +57 -61
- package/components/datepicker/dist/auro-calendar.d.ts +60 -34
- package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +505 -2596
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +505 -2596
- package/components/dropdown/README.md +78 -62
- package/components/dropdown/demo/api.js +4 -4
- package/components/dropdown/demo/api.md +520 -478
- package/components/dropdown/demo/api.min.js +80 -95
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +70 -85
- package/components/dropdown/demo/readme.html +3 -4
- package/components/dropdown/demo/readme.md +78 -62
- package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +70 -85
- package/components/dropdown/dist/registered.js +70 -85
- package/components/form/README.md +16 -58
- package/components/form/demo/api.md +16 -21
- package/components/form/demo/api.min.js +13 -8
- package/components/form/demo/index.md +38 -39
- package/components/form/demo/index.min.js +13 -8
- package/components/form/demo/readme.md +16 -58
- package/components/form/demo/working.html +1 -1
- package/components/form/dist/auro-form.d.ts +15 -3
- package/components/form/dist/index.js +13 -8
- package/components/form/dist/registered.js +13 -8
- package/components/input/README.md +55 -60
- package/components/input/demo/api.js +3 -5
- package/components/input/demo/api.md +558 -537
- package/components/input/demo/api.min.js +102 -115
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +87 -99
- package/components/input/demo/readme.html +3 -4
- package/components/input/demo/readme.md +55 -60
- package/components/input/dist/auro-input.d.ts +6 -5
- package/components/input/dist/base-input.d.ts +68 -69
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +87 -82
- package/components/input/dist/registered.js +87 -82
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -577
- package/components/menu/demo/api.min.js +199 -97
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +164 -101
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.context.d.ts +5 -0
- package/components/menu/dist/auro-menu.d.ts +75 -37
- package/components/menu/dist/auro-menuoption.d.ts +38 -13
- package/components/menu/dist/index.js +164 -50
- package/components/menu/dist/registered.js +164 -50
- package/components/radio/README.md +61 -57
- package/components/radio/demo/api.js +2 -2
- package/components/radio/demo/api.md +241 -170
- package/components/radio/demo/api.min.js +154 -77
- package/components/radio/demo/index.md +22 -99
- package/components/radio/demo/index.min.js +145 -68
- package/components/radio/demo/readme.html +3 -4
- package/components/radio/demo/readme.md +61 -57
- package/components/radio/dist/auro-radio-group.d.ts +67 -35
- package/components/radio/dist/auro-radio.d.ts +56 -33
- package/components/radio/dist/index.js +145 -68
- package/components/radio/dist/registered.js +145 -68
- package/components/select/README.md +68 -65
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +7 -7
- package/components/select/demo/api.md +1305 -625
- package/components/select/demo/api.min.js +357 -262
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +356 -230
- package/components/select/demo/readme.html +3 -4
- package/components/select/demo/readme.md +68 -65
- package/components/select/dist/auro-select.d.ts +99 -90
- package/components/select/dist/index.js +192 -180
- package/components/select/dist/registered.js +192 -180
- package/package.json +9 -4
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
<!--
|
|
2
|
+
THIS PAGE'S CONTENT SHOULD BE KEPT MINIMAL.
|
|
3
|
+
ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE — THE BASIC EXAMPLE IS USUALLY ENOUGH.
|
|
4
|
+
ALL OTHER EXAMPLES SHOULD GO IN THE API DOCUMENTATION.
|
|
5
|
+
-->
|
|
6
|
+
|
|
7
|
+
# Input
|
|
8
|
+
|
|
3
9
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
|
|
4
10
|
<!-- The below content is automatically added from ./../docs/partials/description.md -->
|
|
5
11
|
Use the `<auro-input>` custom element to create basic single-line text fields. Supports type `text`, `password`, and `email` with validation, required input, error states and a secondary `bordered` theme. Use the slots `label` and `helpText` for additional content support.
|
|
6
12
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
7
13
|
|
|
8
|
-
##
|
|
9
|
-
|
|
14
|
+
## Use Cases
|
|
15
|
+
|
|
10
16
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
|
|
11
17
|
<!-- The below content is automatically added from ./../docs/partials/useCases.md -->
|
|
12
18
|
The `<auro-input>` element should be used in situations where users may:
|
|
@@ -15,64 +21,10 @@ The `<auro-input>` element should be used in situations where users may:
|
|
|
15
21
|
* be filling out a form
|
|
16
22
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
17
23
|
|
|
18
|
-
##
|
|
19
|
-
|
|
20
|
-
<div class="exampleWrapper--ondark">
|
|
21
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
|
|
22
|
-
<!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
23
|
-
<!-- <auro-input layout="default" shape="rounded" size="xl" placeholder="Departure">
|
|
24
|
-
<label slot="label">From</label>
|
|
25
|
-
</auro-input> -->
|
|
26
|
-
<auro-input dvInputOnly id="alpha" value="lax" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
27
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
28
|
-
<label slot="label">From</label>
|
|
29
|
-
<span slot="helpText">Example help text</span>
|
|
30
|
-
<span slot="displayValue">
|
|
31
|
-
<div>
|
|
32
|
-
<div class="subText">Los Angeles</div>
|
|
33
|
-
</div>
|
|
34
|
-
</span>
|
|
35
|
-
</auro-input>
|
|
36
|
-
<auro-input id="beta" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
37
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
38
|
-
<label slot="label">From</label>
|
|
39
|
-
<span slot="helpText">Example help text</span>
|
|
40
|
-
</auro-input>
|
|
41
|
-
<auro-input id="charlie" layout="emphasized-left" shape="pill-left" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
42
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
43
|
-
<label slot="label">From</label>
|
|
44
|
-
<span slot="helpText">Example help text</span>
|
|
45
|
-
</auro-input>
|
|
46
|
-
<auro-input id="delta" layout="emphasized-right" shape="pill-right" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
47
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
48
|
-
<label slot="label">From</label>
|
|
49
|
-
<span slot="helpText">Example help text</span>
|
|
50
|
-
</auro-input>
|
|
51
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
52
|
-
</div>
|
|
53
|
-
|
|
54
|
-
## Snowflake Layout
|
|
24
|
+
## Example(s)
|
|
55
25
|
|
|
56
|
-
|
|
57
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
58
|
-
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
59
|
-
<auro-input dvInputOnly value="lax" id="snowflakePill" layout="snowflake" shape="snowflake" size="lg" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
60
|
-
<span slot="ariaLabel.clear">Clear All</span>
|
|
61
|
-
<label slot="label">From</label>
|
|
62
|
-
<span slot="helpText">Example help text</span>
|
|
63
|
-
<span slot="displayValue">
|
|
64
|
-
<div>
|
|
65
|
-
<div class="subText">Los Angeles</div>
|
|
66
|
-
</div>
|
|
67
|
-
</span>
|
|
68
|
-
</auro-input>
|
|
69
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
70
|
-
</div>
|
|
26
|
+
### Basic
|
|
71
27
|
|
|
72
|
-
## Default component
|
|
73
|
-
|
|
74
|
-
The default component supports the basic input `type="text"` structure. The `(optional)` label is provided to instruct the user that their input is not required. Use the `bordered` attribute for a bordered `<auro-input>`.
|
|
75
|
-
|
|
76
28
|
<div class="exampleWrapper">
|
|
77
29
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
78
30
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
@@ -83,15 +35,6 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
83
35
|
</auro-input>
|
|
84
36
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
85
37
|
</div>
|
|
86
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
87
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inverseAppearance.html) -->
|
|
88
|
-
<!-- The below content is automatically added from ./../apiExamples/inverseAppearance.html -->
|
|
89
|
-
<auro-input appearance="inverse">
|
|
90
|
-
<span slot="label">Label</span>
|
|
91
|
-
<span slot="helpText">Help Text</span>
|
|
92
|
-
</auro-input>
|
|
93
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
94
|
-
</div>
|
|
95
38
|
<auro-accordion alignRight>
|
|
96
39
|
<span slot="trigger">See code</span>
|
|
97
40
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
@@ -105,169 +48,113 @@ The default component supports the basic input `type="text"` structure. The `(op
|
|
|
105
48
|
</auro-input>
|
|
106
49
|
```
|
|
107
50
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
108
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inverseAppearance.html) -->
|
|
109
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/inverseAppearance.html -->
|
|
110
|
-
|
|
111
|
-
```html
|
|
112
|
-
<auro-input appearance="inverse">
|
|
113
|
-
<span slot="label">Label</span>
|
|
114
|
-
<span slot="helpText">Help Text</span>
|
|
115
|
-
</auro-input>
|
|
116
|
-
```
|
|
117
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
118
51
|
</auro-accordion>
|
|
119
52
|
|
|
120
|
-
|
|
53
|
+
### Layouts
|
|
121
54
|
|
|
122
|
-
|
|
55
|
+
The `auro-input` element supports multiple layouts to fit different design needs. The available layouts are: `classic`, `emphasized`, and `snowflake`. Each layout offers a unique visual style while maintaining the same core functionality.
|
|
123
56
|
|
|
124
|
-
|
|
125
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/placeholder.html) -->
|
|
126
|
-
<!-- The below content is automatically added from ./../apiExamples/placeholder.html -->
|
|
127
|
-
<auro-input placeholder="John Doe" required>
|
|
128
|
-
<span slot="label">Full name</span>
|
|
129
|
-
<span slot="helpText">Please enter your full name.</span>
|
|
130
|
-
</auro-input>
|
|
131
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
132
|
-
</div>
|
|
133
|
-
<auro-accordion alignRight>
|
|
134
|
-
<span slot="trigger">See code</span>
|
|
135
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/placeholder.html) -->
|
|
136
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/placeholder.html -->
|
|
57
|
+
**Important**: The `emphasized` and `snowflake` layouts are designed specifically for dark backgrounds and should be used with the `appearance="inverse"` attribute.
|
|
137
58
|
|
|
138
|
-
|
|
139
|
-
<auro-input placeholder="John Doe" required>
|
|
140
|
-
<span slot="label">Full name</span>
|
|
141
|
-
<span slot="helpText">Please enter your full name.</span>
|
|
142
|
-
</auro-input>
|
|
143
|
-
```
|
|
144
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
145
|
-
</auro-accordion>
|
|
146
|
-
|
|
147
|
-
## Disabled
|
|
59
|
+
#### Emphasized
|
|
148
60
|
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
<span slot="
|
|
156
|
-
<span slot="
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
</div>
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
<
|
|
165
|
-
<span slot="helpText">
|
|
61
|
+
<div class="exampleWrapper--ondark">
|
|
62
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
|
|
63
|
+
<!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
64
|
+
<auro-input dvInputOnly id="alpha" value="lax" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
65
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
66
|
+
<label slot="label">From</label>
|
|
67
|
+
<span slot="helpText">Example help text</span>
|
|
68
|
+
<span slot="displayValue">
|
|
69
|
+
<div>
|
|
70
|
+
<div class="subText">Los Angeles</div>
|
|
71
|
+
</div>
|
|
72
|
+
</span>
|
|
73
|
+
</auro-input>
|
|
74
|
+
<auro-input id="beta" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
75
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
76
|
+
<label slot="label">From</label>
|
|
77
|
+
<span slot="helpText">Example help text</span>
|
|
78
|
+
</auro-input>
|
|
79
|
+
<auro-input id="charlie" layout="emphasized-left" shape="pill-left" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
80
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
81
|
+
<label slot="label">From</label>
|
|
82
|
+
<span slot="helpText">Example help text</span>
|
|
83
|
+
</auro-input>
|
|
84
|
+
<auro-input id="delta" layout="emphasized-right" shape="pill-right" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
85
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
86
|
+
<label slot="label">From</label>
|
|
87
|
+
<span slot="helpText">Example help text</span>
|
|
166
88
|
</auro-input>
|
|
167
89
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
168
90
|
</div>
|
|
169
91
|
<auro-accordion alignRight>
|
|
170
92
|
<span slot="trigger">See code</span>
|
|
171
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
172
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
93
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/emphasized/basic.html) -->
|
|
94
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
173
95
|
|
|
174
96
|
```html
|
|
175
|
-
<auro-input
|
|
176
|
-
<span slot="
|
|
177
|
-
<
|
|
97
|
+
<auro-input dvInputOnly id="alpha" value="lax" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
98
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
99
|
+
<label slot="label">From</label>
|
|
100
|
+
<span slot="helpText">Example help text</span>
|
|
101
|
+
<span slot="displayValue">
|
|
102
|
+
<div>
|
|
103
|
+
<div class="subText">Los Angeles</div>
|
|
104
|
+
</div>
|
|
105
|
+
</span>
|
|
178
106
|
</auro-input>
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
```html
|
|
185
|
-
<auro-input appearance="inverse" disabled type="date">
|
|
186
|
-
<span slot="label">Arrival date</span>
|
|
187
|
-
<span slot="helpText">Help Text</span>
|
|
107
|
+
<auro-input id="beta" layout="emphasized" shape="pill" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
108
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
109
|
+
<label slot="label">From</label>
|
|
110
|
+
<span slot="helpText">Example help text</span>
|
|
188
111
|
</auro-input>
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
</
|
|
192
|
-
|
|
193
|
-
## Active Label
|
|
194
|
-
|
|
195
|
-
Example use cases for auro-input support the `activeLabel` attribute. If set, the label will stay fixed in the active position.
|
|
196
|
-
|
|
197
|
-
<div class="exampleWrapper">
|
|
198
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/activeLabel.html) -->
|
|
199
|
-
<!-- The below content is automatically added from ./../apiExamples/activeLabel.html -->
|
|
200
|
-
<auro-input activeLabel>
|
|
201
|
-
<span slot="label">Address</span>
|
|
202
|
-
<span slot="helpText">Please enter your home address.</span>
|
|
203
|
-
</auro-input>
|
|
204
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
205
|
-
</div>
|
|
206
|
-
<auro-accordion alignRight>
|
|
207
|
-
<span slot="trigger">See code</span>
|
|
208
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/activeLabel.html) -->
|
|
209
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/activeLabel.html -->
|
|
210
|
-
|
|
211
|
-
```html
|
|
212
|
-
<auro-input activeLabel>
|
|
213
|
-
<span slot="label">Address</span>
|
|
214
|
-
<span slot="helpText">Please enter your home address.</span>
|
|
112
|
+
<auro-input id="charlie" layout="emphasized-left" shape="pill-left" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
113
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
114
|
+
<label slot="label">From</label>
|
|
115
|
+
<span slot="helpText">Example help text</span>
|
|
215
116
|
</auro-input>
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
</
|
|
219
|
-
|
|
220
|
-
## Value
|
|
221
|
-
|
|
222
|
-
Use the `value` attribute to preset the value of the element.
|
|
223
|
-
|
|
224
|
-
<div class="exampleWrapper">
|
|
225
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticValue.html) -->
|
|
226
|
-
<!-- The below content is automatically added from ./../apiExamples/programmaticValue.html -->
|
|
227
|
-
<auro-input value="Alaska Airlines is the best!">
|
|
228
|
-
<span slot="label">Name</span>
|
|
229
|
-
<span slot="helpText">Please enter your full name.</span>
|
|
230
|
-
</auro-input>
|
|
231
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
232
|
-
</div>
|
|
233
|
-
<auro-accordion alignRight>
|
|
234
|
-
<span slot="trigger">See code</span>
|
|
235
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/programmaticValue.html) -->
|
|
236
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/programmaticValue.html -->
|
|
237
|
-
|
|
238
|
-
```html
|
|
239
|
-
<auro-input value="Alaska Airlines is the best!">
|
|
240
|
-
<span slot="label">Name</span>
|
|
241
|
-
<span slot="helpText">Please enter your full name.</span>
|
|
117
|
+
<auro-input id="delta" layout="emphasized-right" shape="pill-right" size="xl" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
118
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
119
|
+
<label slot="label">From</label>
|
|
120
|
+
<span slot="helpText">Example help text</span>
|
|
242
121
|
</auro-input>
|
|
243
122
|
```
|
|
244
123
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
245
124
|
</auro-accordion>
|
|
246
125
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
Use the `pattern` attribute to set custom input validation. This example also uses the `spellcheck` attribute set to `false` which in turn sets `autocorrect` to `off` and `autocapitalize` to `none`. Additionally the `maxlength` attribute sets the maximum length of characters that can be entered.
|
|
126
|
+
#### Snowflake
|
|
250
127
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
<span slot="
|
|
258
|
-
<span slot="
|
|
128
|
+
<div class="exampleWrapper--ondark">
|
|
129
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
130
|
+
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
131
|
+
<auro-input dvInputOnly value="lax" id="snowflakePill" layout="snowflake" shape="snowflake" size="lg" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
132
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
133
|
+
<label slot="label">From</label>
|
|
134
|
+
<span slot="helpText">Example help text</span>
|
|
135
|
+
<span slot="displayValue">
|
|
136
|
+
<div>
|
|
137
|
+
<div class="subText">Los Angeles</div>
|
|
138
|
+
</div>
|
|
139
|
+
</span>
|
|
259
140
|
</auro-input>
|
|
260
141
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
261
142
|
</div>
|
|
262
143
|
<auro-accordion alignRight>
|
|
263
144
|
<span slot="trigger">See code</span>
|
|
264
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
265
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
145
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic.html) -->
|
|
146
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
266
147
|
|
|
267
148
|
```html
|
|
268
|
-
<auro-input
|
|
269
|
-
<span slot="
|
|
270
|
-
<
|
|
149
|
+
<auro-input dvInputOnly value="lax" id="snowflakePill" layout="snowflake" shape="snowflake" size="lg" placeholder="Departure" style="width: 249px;" appearance="inverse" required>
|
|
150
|
+
<span slot="ariaLabel.clear">Clear All</span>
|
|
151
|
+
<label slot="label">From</label>
|
|
152
|
+
<span slot="helpText">Example help text</span>
|
|
153
|
+
<span slot="displayValue">
|
|
154
|
+
<div>
|
|
155
|
+
<div class="subText">Los Angeles</div>
|
|
156
|
+
</div>
|
|
157
|
+
</span>
|
|
271
158
|
</auro-input>
|
|
272
159
|
```
|
|
273
160
|
<!-- AURO-GENERATED-CONTENT:END -->
|