@aurodesignsystem-dev/auro-formkit 0.0.0-pr1396.2 → 0.0.0-pr1397.1
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/README.md +17 -279
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.min.js +3 -3
- package/components/combobox/demo/index.min.js +3 -3
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.min.js +3 -3
- package/components/datepicker/demo/index.min.js +3 -3
- package/components/datepicker/dist/index.js +3 -3
- package/components/datepicker/dist/registered.js +3 -3
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/demo/keyboardBehavior.md +67 -0
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.min.js +13 -13
- package/components/form/demo/index.min.js +13 -13
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/a11y.md +215 -0
- package/components/select/demo/api.min.js +2 -2
- package/components/select/demo/contribute.md +17 -0
- package/components/select/demo/index.min.js +2 -2
- package/components/select/demo/install.md +97 -0
- package/components/select/demo/keyboard.html +72 -0
- package/components/select/demo/keyboardBehavior.md +247 -0
- package/components/select/demo/layout.md +290 -0
- package/components/select/demo/ux.html +338 -0
- package/components/select/demo/ux.md +206 -0
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +1394 -1394
- package/package.json +1 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
# Select - Layout
|
|
2
|
+
|
|
3
|
+
## Shape | Size | Layout Support
|
|
4
|
+
|
|
5
|
+
The `auro-select` component supports the `shape`, `size` and `layout` feature set. The component defaults to the `layout="classic"`, `shape="classic"` and `size="lg"`.
|
|
6
|
+
|
|
7
|
+
### Classic Layout (Legacy)
|
|
8
|
+
|
|
9
|
+
The `classic` layout is default for `auro-select`. No customization is needed to achieve this look.
|
|
10
|
+
|
|
11
|
+
<div class="exampleWrapper">
|
|
12
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
13
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
14
|
+
<auro-select>
|
|
15
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
16
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
17
|
+
<span slot="label">Select Example</span>
|
|
18
|
+
<auro-menu>
|
|
19
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
20
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
21
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
22
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
23
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
24
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
25
|
+
</auro-menu>
|
|
26
|
+
</auro-select>
|
|
27
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
28
|
+
</div>
|
|
29
|
+
<auro-accordion alignRight>
|
|
30
|
+
<span slot="trigger">See code</span>
|
|
31
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
32
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
33
|
+
|
|
34
|
+
```html
|
|
35
|
+
<auro-select>
|
|
36
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
37
|
+
<span slot="bib.fullscreen.headline">Bib Headline</span>
|
|
38
|
+
<span slot="label">Select Example</span>
|
|
39
|
+
<auro-menu>
|
|
40
|
+
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
41
|
+
<auro-menuoption value="price">Price</auro-menuoption>
|
|
42
|
+
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
43
|
+
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
44
|
+
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
45
|
+
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>
|
|
46
|
+
</auro-menu>
|
|
47
|
+
</auro-select>
|
|
48
|
+
```
|
|
49
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
50
|
+
</auro-accordion>
|
|
51
|
+
|
|
52
|
+
### Emphasized Layout
|
|
53
|
+
|
|
54
|
+
The `emphasized` layout is only supported on light backgrounds.
|
|
55
|
+
|
|
56
|
+
The `emphasized` layout supports the following shapes:
|
|
57
|
+
- `pill`
|
|
58
|
+
- `pill-left`
|
|
59
|
+
- `pill-right`
|
|
60
|
+
|
|
61
|
+
The `emphasized` layout supports the following sizes:
|
|
62
|
+
- `xl`
|
|
63
|
+
|
|
64
|
+
<div class="exampleWrapper">
|
|
65
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
|
|
66
|
+
<!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
67
|
+
<div style="display: flex; flex-direction: row; gap: 10px;">
|
|
68
|
+
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" forceDisplayValue style="display:inline-block;">
|
|
69
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
70
|
+
<span slot="label">Select Example</span>
|
|
71
|
+
<auro-menu nocheckmark>
|
|
72
|
+
<auro-menuoption value="flights">
|
|
73
|
+
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
74
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
|
|
75
|
+
</auro-menuoption>
|
|
76
|
+
<auro-menuoption value="cars">
|
|
77
|
+
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
78
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
|
|
79
|
+
</auro-menuoption>
|
|
80
|
+
<auro-menuoption value="hotels">
|
|
81
|
+
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
82
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
|
|
83
|
+
</auro-menuoption>
|
|
84
|
+
<auro-menuoption value="packages">
|
|
85
|
+
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
86
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="shop" name="gift-filled" customcolor></auro-icon>
|
|
87
|
+
</auro-menuoption>
|
|
88
|
+
<auro-menuoption value="cruises">
|
|
89
|
+
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
90
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="in-flight" name="boarding" customcolor></auro-icon>
|
|
91
|
+
</auro-menuoption>
|
|
92
|
+
</auro-menu>
|
|
93
|
+
</auro-select>
|
|
94
|
+
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" style="display:inline-block;">
|
|
95
|
+
<span slot="label">Select Example</span>
|
|
96
|
+
<auro-menu nocheckmark>
|
|
97
|
+
<auro-menuoption value="flights">
|
|
98
|
+
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
99
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
|
|
100
|
+
</auro-menuoption>
|
|
101
|
+
<auro-menuoption value="cars">
|
|
102
|
+
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
103
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
|
|
104
|
+
</auro-menuoption>
|
|
105
|
+
<auro-menuoption value="hotels">
|
|
106
|
+
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
107
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
|
|
108
|
+
</auro-menuoption>
|
|
109
|
+
<auro-menuoption value="packages">
|
|
110
|
+
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
111
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="shop" name="gift-filled" customcolor></auro-icon>
|
|
112
|
+
</auro-menuoption>
|
|
113
|
+
<auro-menuoption value="cruises">
|
|
114
|
+
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
115
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="in-flight" name="boarding" customcolor></auro-icon>
|
|
116
|
+
</auro-menuoption>
|
|
117
|
+
</auro-menu>
|
|
118
|
+
</auro-select>
|
|
119
|
+
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" required style="display:inline-block;">
|
|
120
|
+
<span slot="label">Select Example</span>
|
|
121
|
+
<span slot="helpText">no displayValue in menuoptions</span>
|
|
122
|
+
<auro-menu nocheckmark>
|
|
123
|
+
<auro-menuoption value="flights">
|
|
124
|
+
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
125
|
+
</auro-menuoption>
|
|
126
|
+
<auro-menuoption value="cars">
|
|
127
|
+
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
128
|
+
</auro-menuoption>
|
|
129
|
+
<auro-menuoption value="hotels">
|
|
130
|
+
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
131
|
+
</auro-menuoption>
|
|
132
|
+
<auro-menuoption value="packages">
|
|
133
|
+
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
134
|
+
</auro-menuoption>
|
|
135
|
+
<auro-menuoption value="cruises">
|
|
136
|
+
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
137
|
+
</auro-menuoption>
|
|
138
|
+
</auro-menu>
|
|
139
|
+
</auro-select>
|
|
140
|
+
</div>
|
|
141
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
142
|
+
</div>
|
|
143
|
+
<auro-accordion alignRight>
|
|
144
|
+
<span slot="trigger">See code</span>
|
|
145
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/emphasized/basic.html) -->
|
|
146
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
147
|
+
|
|
148
|
+
```html
|
|
149
|
+
<div style="display: flex; flex-direction: row; gap: 10px;">
|
|
150
|
+
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" forceDisplayValue style="display:inline-block;">
|
|
151
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
152
|
+
<span slot="label">Select Example</span>
|
|
153
|
+
<auro-menu nocheckmark>
|
|
154
|
+
<auro-menuoption value="flights">
|
|
155
|
+
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
156
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
|
|
157
|
+
</auro-menuoption>
|
|
158
|
+
<auro-menuoption value="cars">
|
|
159
|
+
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
160
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
|
|
161
|
+
</auro-menuoption>
|
|
162
|
+
<auro-menuoption value="hotels">
|
|
163
|
+
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
164
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
|
|
165
|
+
</auro-menuoption>
|
|
166
|
+
<auro-menuoption value="packages">
|
|
167
|
+
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
168
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="shop" name="gift-filled" customcolor></auro-icon>
|
|
169
|
+
</auro-menuoption>
|
|
170
|
+
<auro-menuoption value="cruises">
|
|
171
|
+
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
172
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="in-flight" name="boarding" customcolor></auro-icon>
|
|
173
|
+
</auro-menuoption>
|
|
174
|
+
</auro-menu>
|
|
175
|
+
</auro-select>
|
|
176
|
+
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" style="display:inline-block;">
|
|
177
|
+
<span slot="label">Select Example</span>
|
|
178
|
+
<auro-menu nocheckmark>
|
|
179
|
+
<auro-menuoption value="flights">
|
|
180
|
+
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
181
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="terminal" name="plane-diag-fill" customcolor></auro-icon>
|
|
182
|
+
</auro-menuoption>
|
|
183
|
+
<auro-menuoption value="cars">
|
|
184
|
+
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
185
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="car-rental-stroke" customcolor></auro-icon>
|
|
186
|
+
</auro-menuoption>
|
|
187
|
+
<auro-menuoption value="hotels">
|
|
188
|
+
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
189
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="destination" name="hotel-filled" customcolor></auro-icon>
|
|
190
|
+
</auro-menuoption>
|
|
191
|
+
<auro-menuoption value="packages">
|
|
192
|
+
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
193
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="shop" name="gift-filled" customcolor></auro-icon>
|
|
194
|
+
</auro-menuoption>
|
|
195
|
+
<auro-menuoption value="cruises">
|
|
196
|
+
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
197
|
+
<auro-icon style="--ds-auro-icon-size: 40px;" slot="displayValue" category="in-flight" name="boarding" customcolor></auro-icon>
|
|
198
|
+
</auro-menuoption>
|
|
199
|
+
</auro-menu>
|
|
200
|
+
</auro-select>
|
|
201
|
+
<auro-select layout="emphasized" shape="pill" size="xl" value="flights" required style="display:inline-block;">
|
|
202
|
+
<span slot="label">Select Example</span>
|
|
203
|
+
<span slot="helpText">no displayValue in menuoptions</span>
|
|
204
|
+
<auro-menu nocheckmark>
|
|
205
|
+
<auro-menuoption value="flights">
|
|
206
|
+
<auro-icon category="terminal" name="plane-diag-stroke" customcolor></auro-icon> Flights
|
|
207
|
+
</auro-menuoption>
|
|
208
|
+
<auro-menuoption value="cars">
|
|
209
|
+
<auro-icon category="destination" name="car-rental-stroke" customcolor></auro-icon> Cars
|
|
210
|
+
</auro-menuoption>
|
|
211
|
+
<auro-menuoption value="hotels">
|
|
212
|
+
<auro-icon category="destination" name="hotel-stroke" customcolor></auro-icon> Hotels
|
|
213
|
+
</auro-menuoption>
|
|
214
|
+
<auro-menuoption value="packages">
|
|
215
|
+
<auro-icon category="shop" name="gift-stroke" customcolor></auro-icon> Packages
|
|
216
|
+
</auro-menuoption>
|
|
217
|
+
<auro-menuoption value="cruises">
|
|
218
|
+
<auro-icon category="in-flight" name="boarding" customcolor></auro-icon> Cruises
|
|
219
|
+
</auro-menuoption>
|
|
220
|
+
</auro-menu>
|
|
221
|
+
</auro-select>
|
|
222
|
+
</div>
|
|
223
|
+
```
|
|
224
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
225
|
+
</auro-accordion>
|
|
226
|
+
|
|
227
|
+
### Snowflake Layout
|
|
228
|
+
|
|
229
|
+
The `snowflake` layout is a unique, one off layout that does not follow the normal pattern. There is only one way to use snowflake as shown in the following example.
|
|
230
|
+
|
|
231
|
+
The `snowflake` layout is only expected to be used on dark backgrounds, in conjunction with `appearance="inverse"`.
|
|
232
|
+
|
|
233
|
+
<div class="exampleWrapper--ondark">
|
|
234
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
235
|
+
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
236
|
+
<auro-select layout="snowflake" shape="snowflake" appearance="inverse" required style="width:300px;">
|
|
237
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
238
|
+
<span slot="label">Label</span>
|
|
239
|
+
<span slot="helpText">Help Text</span>
|
|
240
|
+
<auro-menu nocheckmark>
|
|
241
|
+
<auro-menuoption value="flights">
|
|
242
|
+
<auro-icon category="terminal" name="plane-diag-stroke" customColor></auro-icon> Flights
|
|
243
|
+
</auro-menuoption>
|
|
244
|
+
<auro-menuoption value="cars">
|
|
245
|
+
<auro-icon category="destination" name="car-rental-stroke" customColor></auro-icon> Cars
|
|
246
|
+
</auro-menuoption>
|
|
247
|
+
<auro-menuoption value="hotels">
|
|
248
|
+
<auro-icon category="destination" name="hotel-stroke" customColor></auro-icon> Hotels
|
|
249
|
+
</auro-menuoption>
|
|
250
|
+
<auro-menuoption value="packages">
|
|
251
|
+
<auro-icon category="shop" name="gift-stroke" customColor></auro-icon> Packages
|
|
252
|
+
</auro-menuoption>
|
|
253
|
+
<auro-menuoption value="cruises">
|
|
254
|
+
<auro-icon category="in-flight" name="boarding" customColor></auro-icon> Cruises
|
|
255
|
+
</auro-menuoption>
|
|
256
|
+
</auro-menu>
|
|
257
|
+
</auro-select>
|
|
258
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
259
|
+
</div>
|
|
260
|
+
<auro-accordion alignRight>
|
|
261
|
+
<span slot="trigger">See code</span>
|
|
262
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic.html) -->
|
|
263
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
264
|
+
|
|
265
|
+
```html
|
|
266
|
+
<auro-select layout="snowflake" shape="snowflake" appearance="inverse" required style="width:300px;">
|
|
267
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
268
|
+
<span slot="label">Label</span>
|
|
269
|
+
<span slot="helpText">Help Text</span>
|
|
270
|
+
<auro-menu nocheckmark>
|
|
271
|
+
<auro-menuoption value="flights">
|
|
272
|
+
<auro-icon category="terminal" name="plane-diag-stroke" customColor></auro-icon> Flights
|
|
273
|
+
</auro-menuoption>
|
|
274
|
+
<auro-menuoption value="cars">
|
|
275
|
+
<auro-icon category="destination" name="car-rental-stroke" customColor></auro-icon> Cars
|
|
276
|
+
</auro-menuoption>
|
|
277
|
+
<auro-menuoption value="hotels">
|
|
278
|
+
<auro-icon category="destination" name="hotel-stroke" customColor></auro-icon> Hotels
|
|
279
|
+
</auro-menuoption>
|
|
280
|
+
<auro-menuoption value="packages">
|
|
281
|
+
<auro-icon category="shop" name="gift-stroke" customColor></auro-icon> Packages
|
|
282
|
+
</auro-menuoption>
|
|
283
|
+
<auro-menuoption value="cruises">
|
|
284
|
+
<auro-icon category="in-flight" name="boarding" customColor></auro-icon> Cruises
|
|
285
|
+
</auro-menuoption>
|
|
286
|
+
</auro-menu>
|
|
287
|
+
</auro-select>
|
|
288
|
+
```
|
|
289
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
290
|
+
</auro-accordion>
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3
|
+
See LICENSE in the project root for license information.
|
|
4
|
+
|
|
5
|
+
HTML in this document is standardized and NOT to be edited.
|
|
6
|
+
All demo code should be added/edited in ./demo/index.md
|
|
7
|
+
|
|
8
|
+
With the exception of adding custom elements if needed for the demo.
|
|
9
|
+
|
|
10
|
+
----------------------- DO NOT EDIT -----------------------------
|
|
11
|
+
|
|
12
|
+
-->
|
|
13
|
+
|
|
14
|
+
<!doctype html>
|
|
15
|
+
<html lang="en">
|
|
16
|
+
<head>
|
|
17
|
+
<meta charset="UTF-8" />
|
|
18
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
+
<title>Auro Web Component Demo | auro-select</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link
|
|
23
|
+
rel="stylesheet"
|
|
24
|
+
type="text/css"
|
|
25
|
+
href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<!-- Legacy reference is still needed to support auro-select's use of legacy token values at this time -->
|
|
29
|
+
<link
|
|
30
|
+
rel="stylesheet"
|
|
31
|
+
type="text/css"
|
|
32
|
+
href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"
|
|
33
|
+
/>
|
|
34
|
+
|
|
35
|
+
<!-- Design Token Alaska Theme -->
|
|
36
|
+
<link
|
|
37
|
+
rel="stylesheet"
|
|
38
|
+
type="text/css"
|
|
39
|
+
href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"
|
|
40
|
+
/>
|
|
41
|
+
|
|
42
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
43
|
+
<link
|
|
44
|
+
rel="stylesheet"
|
|
45
|
+
type="text/css"
|
|
46
|
+
href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css"
|
|
47
|
+
/>
|
|
48
|
+
|
|
49
|
+
<!-- Demo Specific Styles -->
|
|
50
|
+
<link
|
|
51
|
+
rel="stylesheet"
|
|
52
|
+
type="text/css"
|
|
53
|
+
href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css"
|
|
54
|
+
/>
|
|
55
|
+
<link
|
|
56
|
+
rel="stylesheet"
|
|
57
|
+
type="text/css"
|
|
58
|
+
href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css"
|
|
59
|
+
/>
|
|
60
|
+
|
|
61
|
+
<style>
|
|
62
|
+
pre[class*="language-"] {
|
|
63
|
+
/* padding: 1em; */
|
|
64
|
+
/* margin: .5em 0; */
|
|
65
|
+
overflow: unset !important;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
table {
|
|
69
|
+
--ds-color-container-secondary-default: transparent;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
tr:not(:last-of-type) {
|
|
73
|
+
border-bottom: 1px solid var(--ds-color-border-tertiary-default);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
sup {
|
|
77
|
+
font-size: 60%;
|
|
78
|
+
font-style: italic;
|
|
79
|
+
/* opacity: 0.6; */
|
|
80
|
+
top: -0.5rem;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
sup a {
|
|
84
|
+
text-decoration: none !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
body {
|
|
88
|
+
padding: 0;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
main {
|
|
92
|
+
height: 100vh;
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
min-height: 0;
|
|
96
|
+
flex: 1;
|
|
97
|
+
/* background-color: aquamarine; */
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.contentWrapper {
|
|
101
|
+
flex: 1;
|
|
102
|
+
display: flex;
|
|
103
|
+
flex-direction: row-reverse;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.mainContent {
|
|
107
|
+
flex: 1;
|
|
108
|
+
/* height: 100%; */
|
|
109
|
+
overflow: auto;
|
|
110
|
+
padding-right: 25px;
|
|
111
|
+
/* background-color: aqua; */
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
flex-basis: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.scrollWrapper {
|
|
118
|
+
flex: 1;
|
|
119
|
+
flex-basis: 0;
|
|
120
|
+
min-height: 0;
|
|
121
|
+
overflow: auto;
|
|
122
|
+
/* background-color: burlywood; */
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
nav {
|
|
126
|
+
max-width: 200px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.stepDetails {
|
|
130
|
+
margin: 10px 0;
|
|
131
|
+
padding: 10px;
|
|
132
|
+
border-radius: 6px;
|
|
133
|
+
font-style: italic;
|
|
134
|
+
color: var(--ds-basic-color-texticon-muted);
|
|
135
|
+
background-color: var(--ds-basic-color-surface-neutral-subtle);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.indent1 {
|
|
139
|
+
margin-left: 40px;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
auro-header {
|
|
143
|
+
margin: 10px 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.authorTodo {
|
|
147
|
+
color: red;
|
|
148
|
+
background-color: pink;
|
|
149
|
+
font-weight: bold;
|
|
150
|
+
padding: 5px 10px;
|
|
151
|
+
border-radius: 6px;
|
|
152
|
+
margin-bottom: 2px !important;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.footnotes {
|
|
156
|
+
/* background-color: aqua; */
|
|
157
|
+
padding-bottom: 20px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
auro-anchorlink.level2 {
|
|
161
|
+
padding-left: var(--ds-size-200);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
table.compressed {
|
|
165
|
+
width: unset !important;
|
|
166
|
+
margin: var(--ds-size-50) 0 var(--ds-size-100) !important;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
table.compressed th,
|
|
170
|
+
table.compressed td {
|
|
171
|
+
padding: var(--ds-size-50) !important;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.tabList {
|
|
175
|
+
/* box-shadow: inset 0 -2px 0 var(--ds-color-brand-gray-300); */
|
|
176
|
+
display: flex;
|
|
177
|
+
flex-direction: row;
|
|
178
|
+
justify-content: center;
|
|
179
|
+
margin-bottom: 20px;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.tab {
|
|
183
|
+
color: var(--ds-advanced-color-hyperlink-text);
|
|
184
|
+
transition: border 0.3s ease-out;
|
|
185
|
+
padding: var(--ds-size-200);
|
|
186
|
+
border-width: 0px 0px 2px;
|
|
187
|
+
border-style: solid;
|
|
188
|
+
border-bottom-color: var(--ds-color-brand-gray-300);
|
|
189
|
+
text-decoration: none;
|
|
190
|
+
white-space: nowrap;
|
|
191
|
+
display: block;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.tab:hover {
|
|
195
|
+
cursor: pointer;
|
|
196
|
+
color: var(--ds-advanced-color-hyperlink-text-hover);
|
|
197
|
+
border-bottom-color: rgb(1, 66, 106);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.tab {
|
|
201
|
+
text-decoration: none !important;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/* .link.active {
|
|
205
|
+
color: rgb(5, 70, 135) !important;;
|
|
206
|
+
padding-bottom: calc(-1px + 1rem);
|
|
207
|
+
cursor: default !important;
|
|
208
|
+
text-decoration: none;
|
|
209
|
+
border-bottom: 2px solid currentcolor;
|
|
210
|
+
} */
|
|
211
|
+
|
|
212
|
+
/* .tab {
|
|
213
|
+
color: var(--ds-advanced-color-hyperlink-text);
|
|
214
|
+
transition: border 0.3s ease-out;
|
|
215
|
+
padding: var(--ds-size-200);
|
|
216
|
+
border-width: 0px 0px 2px;
|
|
217
|
+
border-style: solid;
|
|
218
|
+
border-color: transparent;
|
|
219
|
+
text-decoration: none;
|
|
220
|
+
white-space: nowrap;
|
|
221
|
+
} */
|
|
222
|
+
|
|
223
|
+
.tab.active {
|
|
224
|
+
cursor: pointer;
|
|
225
|
+
color: var(--ds-basic-color-texticon-default);
|
|
226
|
+
text-decoration: none;
|
|
227
|
+
border-color: currentcolor;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
body {
|
|
231
|
+
display: flex;
|
|
232
|
+
flex-direction: column;
|
|
233
|
+
height: 100vh;
|
|
234
|
+
}
|
|
235
|
+
</style>
|
|
236
|
+
</head>
|
|
237
|
+
<body class="auro-markdown">
|
|
238
|
+
<div role="tablist" class="tabList">
|
|
239
|
+
<a role="tab" id="componentTab" class="tab active">Select</a>
|
|
240
|
+
<a role="tab" id="layoutTab" class="tab">Layout</a>
|
|
241
|
+
<a role="tab" id="keyboardTab" class="tab">Keyboard Behavior</a>
|
|
242
|
+
<a role="tab" id="a11yTab" class="tab">A11Y</a>
|
|
243
|
+
<a role="tab" id="apiTab" class="tab">API</a>
|
|
244
|
+
<a role="tab" id="installTab" class="tab">Install</a>
|
|
245
|
+
<a role="tab" id="contributeTab" class="tab">Contribute</a>
|
|
246
|
+
<a role="tab" id="releasesTab" class="tab">Releases</a>
|
|
247
|
+
</div>
|
|
248
|
+
<main></main>
|
|
249
|
+
|
|
250
|
+
<!-- If additional elements are needed for the demo, add them here. -->
|
|
251
|
+
<script
|
|
252
|
+
src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm"
|
|
253
|
+
type="module"
|
|
254
|
+
></script>
|
|
255
|
+
<script
|
|
256
|
+
src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-nav@latest/+esm"
|
|
257
|
+
type="module"
|
|
258
|
+
></script>
|
|
259
|
+
<script
|
|
260
|
+
src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-header@latest/+esm"
|
|
261
|
+
type="module"
|
|
262
|
+
></script>
|
|
263
|
+
<script
|
|
264
|
+
src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-hyperlink@latest/+esm"
|
|
265
|
+
type="module"
|
|
266
|
+
></script>
|
|
267
|
+
<script
|
|
268
|
+
src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm"
|
|
269
|
+
type="module"
|
|
270
|
+
></script>
|
|
271
|
+
|
|
272
|
+
<script type="module">
|
|
273
|
+
import "https://cdn.jsdelivr.net/npm/marked@latest/marked.min.js";
|
|
274
|
+
import "https://cdn.jsdelivr.net/npm/prismjs@latest/prism.js";
|
|
275
|
+
|
|
276
|
+
function loadMd(path) {
|
|
277
|
+
fetch(path)
|
|
278
|
+
.then((response) => response.text())
|
|
279
|
+
.then((text) => {
|
|
280
|
+
const rawHtml = marked.parse(text);
|
|
281
|
+
document.querySelector("main").innerHTML = rawHtml;
|
|
282
|
+
Prism.highlightAll();
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
loadMd("./ux.md");
|
|
287
|
+
|
|
288
|
+
const tabs = document.querySelectorAll(".tabList .tab");
|
|
289
|
+
|
|
290
|
+
tabs.forEach((tab) => {
|
|
291
|
+
tab.addEventListener("click", (event) => {
|
|
292
|
+
const selectedTab = event.target;
|
|
293
|
+
const selectedTabId = selectedTab.id;
|
|
294
|
+
|
|
295
|
+
// Remove active class from all tabs
|
|
296
|
+
tabs.forEach((t) => t.classList.remove("active"));
|
|
297
|
+
|
|
298
|
+
// Add active class to the clicked tab
|
|
299
|
+
selectedTab.classList.add("active");
|
|
300
|
+
|
|
301
|
+
// Load corresponding markdown content based on the clicked tab
|
|
302
|
+
switch (selectedTabId) {
|
|
303
|
+
case "componentTab":
|
|
304
|
+
loadMd("./ux.md");
|
|
305
|
+
break;
|
|
306
|
+
case "layoutTab":
|
|
307
|
+
loadMd("./layout.md");
|
|
308
|
+
break;
|
|
309
|
+
case "keyboardTab":
|
|
310
|
+
loadMd("./keyboardBehavior.md");
|
|
311
|
+
break;
|
|
312
|
+
case "a11yTab":
|
|
313
|
+
loadMd("./a11y.md");
|
|
314
|
+
break;
|
|
315
|
+
case "installTab":
|
|
316
|
+
loadMd("./install.md");
|
|
317
|
+
break;
|
|
318
|
+
case "installTab":
|
|
319
|
+
loadMd("./install.md");
|
|
320
|
+
break;
|
|
321
|
+
case "contributeTab":
|
|
322
|
+
loadMd("./contribute.md");
|
|
323
|
+
break;
|
|
324
|
+
case "apiTab":
|
|
325
|
+
loadMd("./api.md");
|
|
326
|
+
break;
|
|
327
|
+
case "releasesTab":
|
|
328
|
+
loadMd("./releases.md");
|
|
329
|
+
break;
|
|
330
|
+
default:
|
|
331
|
+
loadMd("./ux.md");
|
|
332
|
+
}
|
|
333
|
+
});
|
|
334
|
+
});
|
|
335
|
+
</script>
|
|
336
|
+
<script src="./index.min.js" data-demo-script="true" type="module"></script>
|
|
337
|
+
</body>
|
|
338
|
+
</html>
|