@aurodesignsystem-dev/auro-formkit 0.0.0-pr754.0 → 0.0.0-pr754.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/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.min.js +9 -9
- package/components/checkbox/demo/index.min.js +9 -9
- package/components/checkbox/dist/index.js +9 -9
- package/components/checkbox/dist/registered.js +9 -9
- package/components/combobox/demo/api.md +12 -6
- package/components/combobox/demo/api.min.js +43 -84
- package/components/combobox/demo/index.min.js +43 -84
- package/components/combobox/dist/index.js +42 -84
- package/components/combobox/dist/registered.js +42 -84
- package/components/counter/demo/api.md +140 -7
- package/components/counter/demo/api.min.js +555 -385
- package/components/counter/demo/index.md +82 -0
- package/components/counter/demo/index.min.js +555 -385
- package/components/counter/dist/auro-counter-group.d.ts +71 -14
- package/components/counter/dist/auro-counter.d.ts +10 -0
- package/components/counter/dist/index.js +555 -385
- package/components/counter/dist/registered.js +555 -385
- package/components/datepicker/demo/api.min.js +42 -84
- package/components/datepicker/demo/index.min.js +42 -84
- package/components/datepicker/dist/index.js +42 -84
- package/components/datepicker/dist/registered.js +42 -84
- package/components/dropdown/demo/api.md +76 -268
- package/components/dropdown/demo/api.min.js +25 -67
- package/components/dropdown/demo/index.md +45 -363
- package/components/dropdown/demo/index.min.js +25 -67
- package/components/dropdown/dist/auro-dropdown.d.ts +21 -71
- package/components/dropdown/dist/index.js +25 -67
- package/components/dropdown/dist/registered.js +25 -67
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +10 -10
- package/components/input/demo/index.min.js +10 -10
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +10 -10
- package/components/input/dist/registered.js +10 -10
- package/components/menu/demo/api.md +14 -15
- package/components/menu/demo/api.min.js +1 -0
- package/components/menu/demo/index.min.js +1 -0
- package/components/menu/dist/auro-menu.d.ts +2 -1
- package/components/menu/dist/index.js +1 -0
- package/components/menu/dist/registered.js +1 -0
- package/components/radio/demo/api.min.js +9 -9
- package/components/radio/demo/index.min.js +9 -9
- package/components/radio/dist/index.js +9 -9
- package/components/radio/dist/registered.js +9 -9
- package/components/select/demo/api.md +41 -36
- package/components/select/demo/api.min.js +60 -102
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +60 -102
- package/components/select/dist/auro-select.d.ts +9 -2
- package/components/select/dist/index.js +59 -102
- package/components/select/dist/registered.js +59 -102
- package/package.json +2 -2
|
@@ -36,14 +36,14 @@ To meet our accessibility requirement, all uses of `auro-dropdown` should have a
|
|
|
36
36
|
|
|
37
37
|
Not including one of the above options will result in your UI being non-compliant with Alaska's accessibility policies.
|
|
38
38
|
|
|
39
|
-
##
|
|
40
|
-
|
|
41
|
-
|
|
39
|
+
## Layouts
|
|
40
|
+
|
|
41
|
+
### Classic
|
|
42
42
|
|
|
43
43
|
<div class="exampleWrapper">
|
|
44
44
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/basic.html) -->
|
|
45
45
|
<!-- The below content is automatically added from ./../apiExamples/classic/basic.html -->
|
|
46
|
-
<auro-dropdown id="classic" chevron aria-label="Label content for screen reader">
|
|
46
|
+
<auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
47
47
|
<div style="padding: var(--ds-size-150);">
|
|
48
48
|
Lorem ipsum solar
|
|
49
49
|
<br />
|
|
@@ -66,7 +66,7 @@ This first common example uses the default `auro-dropdown` element with the attr
|
|
|
66
66
|
<!-- The below code snippet is automatically added from ./../apiExamples/classic/basic.html -->
|
|
67
67
|
|
|
68
68
|
```html
|
|
69
|
-
<auro-dropdown id="classic" chevron aria-label="Label content for screen reader">
|
|
69
|
+
<auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
70
70
|
<div style="padding: var(--ds-size-150);">
|
|
71
71
|
Lorem ipsum solar
|
|
72
72
|
<br />
|
|
@@ -87,7 +87,7 @@ This first common example uses the default `auro-dropdown` element with the attr
|
|
|
87
87
|
<div class="exampleWrapper--ondark">
|
|
88
88
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/basic-ondark.html) -->
|
|
89
89
|
<!-- The below content is automatically added from ./../apiExamples/classic/basic-ondark.html -->
|
|
90
|
-
<auro-dropdown onDark id="classicOnDark" chevron aria-label="Label content for screen reader">
|
|
90
|
+
<auro-dropdown onDark layout="classic" shape="classic" size="lg" id="classicOnDark" chevron aria-label="Label content for screen reader">
|
|
91
91
|
<div style="padding: var(--ds-size-150);">
|
|
92
92
|
Lorem ipsum solar
|
|
93
93
|
<br />
|
|
@@ -110,7 +110,7 @@ This first common example uses the default `auro-dropdown` element with the attr
|
|
|
110
110
|
<!-- The below code snippet is automatically added from ./../apiExamples/classic/basic-ondark.html -->
|
|
111
111
|
|
|
112
112
|
```html
|
|
113
|
-
<auro-dropdown onDark id="classicOnDark" chevron aria-label="Label content for screen reader">
|
|
113
|
+
<auro-dropdown onDark layout="classic" shape="classic" size="lg" id="classicOnDark" chevron aria-label="Label content for screen reader">
|
|
114
114
|
<div style="padding: var(--ds-size-150);">
|
|
115
115
|
Lorem ipsum solar
|
|
116
116
|
<br />
|
|
@@ -129,7 +129,9 @@ This first common example uses the default `auro-dropdown` element with the attr
|
|
|
129
129
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
130
130
|
</auro-accordion>
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
### Emphasized
|
|
133
|
+
|
|
134
|
+
Only supports `ondark`.
|
|
133
135
|
|
|
134
136
|
<div class="exampleWrapper--ondark">
|
|
135
137
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
|
|
@@ -163,399 +165,80 @@ This first common example uses the default `auro-dropdown` element with the attr
|
|
|
163
165
|
</auro-dropdown>
|
|
164
166
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
165
167
|
</div>
|
|
166
|
-
|
|
167
|
-
## Snowflake Layouts
|
|
168
|
-
|
|
169
|
-
<div class="exampleWrapper--ondark">
|
|
170
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
171
|
-
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
172
|
-
<auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" ondark>
|
|
173
|
-
Lorem ipsum solar
|
|
174
|
-
<div slot="trigger">
|
|
175
|
-
Trigger
|
|
176
|
-
</div>
|
|
177
|
-
<span slot="helpText">
|
|
178
|
-
Help text - Lorem ipsum solar lorem ipsum solar
|
|
179
|
-
</span>
|
|
180
|
-
</auro-dropdown>
|
|
181
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
182
|
-
</div>
|
|
183
|
-
|
|
184
|
-
## Common use with auro-label
|
|
185
|
-
|
|
186
|
-
This first common example uses the default `auro-dropdown` element with the attributes of `bordered` `rounded` `inset` `toggle` and `chevron`. Additionally the `aria-label` attribute is used to define a string value that labels an interactive element.
|
|
187
|
-
|
|
188
|
-
<div class="exampleWrapper">
|
|
189
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/common.html) -->
|
|
190
|
-
<!-- The below content is automatically added from ./../apiExamples/common.html -->
|
|
191
|
-
<auro-dropdown id="common" common aria-label="Label content for screen reader">
|
|
192
|
-
<div style="padding: var(--ds-size-150);">
|
|
193
|
-
Lorem ipsum solar
|
|
194
|
-
<br />
|
|
195
|
-
<auro-button onclick="document.querySelector('#common').hide()">
|
|
196
|
-
Dismiss Dropdown
|
|
197
|
-
</auro-button>
|
|
198
|
-
</div>
|
|
199
|
-
<span slot="helpText">
|
|
200
|
-
Help text
|
|
201
|
-
</span>
|
|
202
|
-
<div slot="trigger">
|
|
203
|
-
Trigger
|
|
204
|
-
</div>
|
|
205
|
-
</auro-dropdown>
|
|
206
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
207
|
-
</div>
|
|
208
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
209
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkCommon.html) -->
|
|
210
|
-
<!-- The below content is automatically added from ./../apiExamples/onDarkCommon.html -->
|
|
211
|
-
<auro-dropdown onDark common id="commonOnDark" aria-label="Label content for screen reader">
|
|
212
|
-
<div style="padding: var(--ds-size-150);">
|
|
213
|
-
Lorem ipsum solar
|
|
214
|
-
<br />
|
|
215
|
-
<auro-button onclick="document.querySelector('#commonOnDark').hide()">
|
|
216
|
-
Dismiss Dropdown
|
|
217
|
-
</auro-button>
|
|
218
|
-
</div>
|
|
219
|
-
<span slot="helpText">
|
|
220
|
-
Help text
|
|
221
|
-
</span>
|
|
222
|
-
<div slot="trigger">
|
|
223
|
-
Trigger
|
|
224
|
-
</div>
|
|
225
|
-
</auro-dropdown>
|
|
226
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
227
|
-
</div>
|
|
228
168
|
<auro-accordion alignRight>
|
|
229
169
|
<span slot="trigger">See code</span>
|
|
230
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
231
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
170
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/emphasized/basic.html) -->
|
|
171
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
232
172
|
|
|
233
173
|
```html
|
|
234
|
-
<auro-dropdown
|
|
235
|
-
|
|
236
|
-
Lorem ipsum solar
|
|
237
|
-
<br />
|
|
238
|
-
<auro-button onclick="document.querySelector('#common').hide()">
|
|
239
|
-
Dismiss Dropdown
|
|
240
|
-
</auro-button>
|
|
241
|
-
</div>
|
|
242
|
-
<span slot="helpText">
|
|
243
|
-
Help text
|
|
244
|
-
</span>
|
|
174
|
+
<auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" ondark>
|
|
175
|
+
Lorem ipsum solar
|
|
245
176
|
<div slot="trigger">
|
|
246
177
|
Trigger
|
|
247
178
|
</div>
|
|
248
|
-
</auro-dropdown>
|
|
249
|
-
```
|
|
250
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
251
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkCommon.html) -->
|
|
252
|
-
<!-- The below content is automatically added from ./../apiExamples/onDarkCommon.html -->
|
|
253
|
-
<auro-dropdown onDark common id="commonOnDark" aria-label="Label content for screen reader">
|
|
254
|
-
<div style="padding: var(--ds-size-150);">
|
|
255
|
-
Lorem ipsum solar
|
|
256
|
-
<br />
|
|
257
|
-
<auro-button onclick="document.querySelector('#commonOnDark').hide()">
|
|
258
|
-
Dismiss Dropdown
|
|
259
|
-
</auro-button>
|
|
260
|
-
</div>
|
|
261
179
|
<span slot="helpText">
|
|
262
|
-
Help text
|
|
180
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
263
181
|
</span>
|
|
182
|
+
</auro-dropdown>
|
|
183
|
+
<auro-dropdown aria-label="custom label" shape="pill-left" size="xl" layout="emphasized" style="width: 249px;" ondark>
|
|
184
|
+
Lorem ipsum solar
|
|
264
185
|
<div slot="trigger">
|
|
265
186
|
Trigger
|
|
266
187
|
</div>
|
|
267
|
-
</auro-dropdown>
|
|
268
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
269
|
-
</auro-accordion>
|
|
270
|
-
|
|
271
|
-
## Common use using the label content slot
|
|
272
|
-
|
|
273
|
-
This common example uses the default `auro-dropdown` element with the attributes of `bordered` `rounded` `inset` `toggle` and `chevron`. Additionally the `slot` content container to define a string value that labels the interactive element.
|
|
274
|
-
|
|
275
|
-
<div class="exampleWrapper">
|
|
276
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/commonSlot.html) -->
|
|
277
|
-
<!-- The below content is automatically added from ./../apiExamples/commonSlot.html -->
|
|
278
|
-
<auro-dropdown id="commonSlot" common>
|
|
279
|
-
<div style="padding: var(--ds-size-150);">
|
|
280
|
-
Lorem ipsum solar
|
|
281
|
-
<br />
|
|
282
|
-
<auro-button onclick="document.querySelector('#commonSlot').hide()">
|
|
283
|
-
Dismiss Dropdown
|
|
284
|
-
</auro-button>
|
|
285
|
-
</div>
|
|
286
|
-
<span slot="helpText">
|
|
287
|
-
Help text
|
|
288
|
-
</span>
|
|
289
|
-
<span slot="label">
|
|
290
|
-
Element label (default text will be read by screen reader)
|
|
291
|
-
</span>
|
|
292
|
-
<div slot="trigger">
|
|
293
|
-
Trigger
|
|
294
|
-
</div>
|
|
295
|
-
</auro-dropdown>
|
|
296
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
297
|
-
</div>
|
|
298
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
299
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkCommonSlot.html) -->
|
|
300
|
-
<!-- The below content is automatically added from ./../apiExamples/onDarkCommonSlot.html -->
|
|
301
|
-
<auro-dropdown onDark common id="commonSlotOnDark">
|
|
302
|
-
<div style="padding: var(--ds-size-150);">
|
|
303
|
-
Lorem ipsum solar
|
|
304
|
-
<br />
|
|
305
|
-
<auro-button onclick="document.querySelector('#commonSlotOnDark').hide()">
|
|
306
|
-
Dismiss Dropdown
|
|
307
|
-
</auro-button>
|
|
308
|
-
</div>
|
|
309
|
-
<span slot="helpText">
|
|
310
|
-
Help text
|
|
311
|
-
</span>
|
|
312
|
-
<span slot="label">
|
|
313
|
-
Element label (default text will be read by screen reader)
|
|
314
|
-
</span>
|
|
315
|
-
<div slot="trigger">
|
|
316
|
-
Trigger
|
|
317
|
-
</div>
|
|
318
|
-
</auro-dropdown>
|
|
319
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
320
|
-
</div>
|
|
321
|
-
<auro-accordion alignRight>
|
|
322
|
-
<span slot="trigger">See code</span>
|
|
323
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/commonSlot.html) -->
|
|
324
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/commonSlot.html -->
|
|
325
|
-
|
|
326
|
-
```html
|
|
327
|
-
<auro-dropdown id="commonSlot" common>
|
|
328
|
-
<div style="padding: var(--ds-size-150);">
|
|
329
|
-
Lorem ipsum solar
|
|
330
|
-
<br />
|
|
331
|
-
<auro-button onclick="document.querySelector('#commonSlot').hide()">
|
|
332
|
-
Dismiss Dropdown
|
|
333
|
-
</auro-button>
|
|
334
|
-
</div>
|
|
335
188
|
<span slot="helpText">
|
|
336
|
-
Help text
|
|
337
|
-
</span>
|
|
338
|
-
<span slot="label">
|
|
339
|
-
Element label (default text will be read by screen reader)
|
|
189
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
340
190
|
</span>
|
|
191
|
+
</auro-dropdown>
|
|
192
|
+
<auro-dropdown aria-label="custom label" shape="pill-right" size="xl" layout="emphasized" style="width: 249px;" ondark>
|
|
193
|
+
Lorem ipsum solar
|
|
341
194
|
<div slot="trigger">
|
|
342
195
|
Trigger
|
|
343
196
|
</div>
|
|
344
|
-
</auro-dropdown>
|
|
345
|
-
```
|
|
346
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
347
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkCommonSlot.html) -->
|
|
348
|
-
<!-- The below content is automatically added from ./../apiExamples/onDarkCommonSlot.html -->
|
|
349
|
-
<auro-dropdown onDark common id="commonSlotOnDark">
|
|
350
|
-
<div style="padding: var(--ds-size-150);">
|
|
351
|
-
Lorem ipsum solar
|
|
352
|
-
<br />
|
|
353
|
-
<auro-button onclick="document.querySelector('#commonSlotOnDark').hide()">
|
|
354
|
-
Dismiss Dropdown
|
|
355
|
-
</auro-button>
|
|
356
|
-
</div>
|
|
357
197
|
<span slot="helpText">
|
|
358
|
-
Help text
|
|
359
|
-
</span>
|
|
360
|
-
<span slot="label">
|
|
361
|
-
Element label (default text will be read by screen reader)
|
|
198
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
362
199
|
</span>
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
</div>
|
|
366
|
-
</auro-dropdown>
|
|
200
|
+
</auro-dropdown>
|
|
201
|
+
```
|
|
367
202
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
368
203
|
</auro-accordion>
|
|
369
204
|
|
|
370
|
-
|
|
205
|
+
### Snowflake
|
|
371
206
|
|
|
372
|
-
|
|
207
|
+
Only supports `ondark`.
|
|
373
208
|
|
|
374
|
-
<div class="exampleWrapper">
|
|
375
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/
|
|
376
|
-
<!-- The below content is automatically added from ./../apiExamples/
|
|
377
|
-
<
|
|
378
|
-
|
|
379
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
380
|
-
This is special content.
|
|
381
|
-
</div>
|
|
382
|
-
<span slot="helpText">
|
|
383
|
-
Help text
|
|
384
|
-
</span>
|
|
385
|
-
<div slot="trigger">
|
|
386
|
-
Trigger
|
|
387
|
-
</div>
|
|
388
|
-
</auro-dropdown>
|
|
389
|
-
</div>
|
|
390
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
391
|
-
</div>
|
|
392
|
-
<auro-accordion alignRight>
|
|
393
|
-
<span slot="trigger">See code</span>
|
|
394
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/widerPopover.html) -->
|
|
395
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/widerPopover.html -->
|
|
396
|
-
|
|
397
|
-
```html
|
|
398
|
-
<div style="width: 250px;">
|
|
399
|
-
<auro-dropdown common aria-label="Label content for screen reader">
|
|
400
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
401
|
-
This is special content.
|
|
402
|
-
</div>
|
|
403
|
-
<span slot="helpText">
|
|
404
|
-
Help text
|
|
405
|
-
</span>
|
|
209
|
+
<div class="exampleWrapper--ondark">
|
|
210
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
211
|
+
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
212
|
+
<auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" ondark>
|
|
213
|
+
Lorem ipsum solar
|
|
406
214
|
<div slot="trigger">
|
|
407
215
|
Trigger
|
|
408
216
|
</div>
|
|
409
|
-
</auro-dropdown>
|
|
410
|
-
</div>
|
|
411
|
-
```
|
|
412
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
413
|
-
</auro-accordion>
|
|
414
|
-
|
|
415
|
-
## Common use with popover width matching the trigger
|
|
416
|
-
|
|
417
|
-
This common example uses the default `auro-dropdown` element with the attributes of `bordered` `rounded` `inset` `toggle` and `chevron`. Additionally `matchWidth` attribute is used to make the popover match the width of the trigger.
|
|
418
|
-
|
|
419
|
-
<div class="exampleWrapper">
|
|
420
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/commonMatchWidth.html) -->
|
|
421
|
-
<!-- The below content is automatically added from ./../apiExamples/commonMatchWidth.html -->
|
|
422
|
-
<auro-dropdown id="common" common fluid matchWidth aria-label="Label content for screen reader">
|
|
423
|
-
<div style="padding: var(--ds-size-150);">
|
|
424
|
-
Lorem ipsum solar
|
|
425
|
-
<br />
|
|
426
|
-
<auro-button onclick="document.querySelector('#common').hide()">
|
|
427
|
-
Dismiss Dropdown
|
|
428
|
-
</auro-button>
|
|
429
|
-
</div>
|
|
430
217
|
<span slot="helpText">
|
|
431
|
-
Help text
|
|
218
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
432
219
|
</span>
|
|
433
|
-
<div slot="trigger">
|
|
434
|
-
Trigger
|
|
435
|
-
</div>
|
|
436
220
|
</auro-dropdown>
|
|
437
221
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
438
|
-
</div>
|
|
222
|
+
</div>
|
|
439
223
|
<auro-accordion alignRight>
|
|
440
224
|
<span slot="trigger">See code</span>
|
|
441
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/
|
|
442
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/
|
|
225
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic.html) -->
|
|
226
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
443
227
|
|
|
444
228
|
```html
|
|
445
|
-
<auro-dropdown
|
|
446
|
-
|
|
447
|
-
Lorem ipsum solar
|
|
448
|
-
<br />
|
|
449
|
-
<auro-button onclick="document.querySelector('#common').hide()">
|
|
450
|
-
Dismiss Dropdown
|
|
451
|
-
</auro-button>
|
|
452
|
-
</div>
|
|
453
|
-
<span slot="helpText">
|
|
454
|
-
Help text
|
|
455
|
-
</span>
|
|
229
|
+
<auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" ondark>
|
|
230
|
+
Lorem ipsum solar
|
|
456
231
|
<div slot="trigger">
|
|
457
232
|
Trigger
|
|
458
233
|
</div>
|
|
234
|
+
<span slot="helpText">
|
|
235
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
236
|
+
</span>
|
|
459
237
|
</auro-dropdown>
|
|
460
238
|
```
|
|
461
239
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
462
240
|
</auro-accordion>
|
|
463
241
|
|
|
464
|
-
## Common use with its width matching the trigger
|
|
465
|
-
|
|
466
|
-
To make the dropdown to be just big as the trigger's content, style the `auro-dropdown` width `display: inline-block`.
|
|
467
|
-
|
|
468
|
-
<div class="exampleWrapper">
|
|
469
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inline.html) -->
|
|
470
|
-
<!-- The below content is automatically added from ./../apiExamples/inline.html -->
|
|
471
|
-
<table style="text-align: center;">
|
|
472
|
-
<thead>
|
|
473
|
-
<tr>
|
|
474
|
-
<td>Icon Only</td>
|
|
475
|
-
<td>Text Only</td>
|
|
476
|
-
<td>Text with Icon</td>
|
|
477
|
-
</tr>
|
|
478
|
-
</thead>
|
|
479
|
-
<tr>
|
|
480
|
-
<td>
|
|
481
|
-
<auro-dropdown aria-div="custom div" inset style="display: inline-block;">
|
|
482
|
-
Icon Only Dropdown
|
|
483
|
-
<div slot="trigger">
|
|
484
|
-
<auro-icon category="interface" name="arrow-down"></auro-icon>
|
|
485
|
-
</div>
|
|
486
|
-
</auro-dropdown>
|
|
487
|
-
</td>
|
|
488
|
-
<td>
|
|
489
|
-
<auro-dropdown aria-div="custom div" inset style="display: inline-block;">
|
|
490
|
-
Text Only Dropdown
|
|
491
|
-
<div slot="trigger">
|
|
492
|
-
Trigger Text
|
|
493
|
-
</div>
|
|
494
|
-
</auro-dropdown>
|
|
495
|
-
</td>
|
|
496
|
-
<td>
|
|
497
|
-
<auro-dropdown aria-div="custom div" inset style="display: inline-block;">
|
|
498
|
-
Icon and Text Dropdown
|
|
499
|
-
<div slot="trigger">
|
|
500
|
-
<div style="white-space:nowrap">
|
|
501
|
-
Trigger Text
|
|
502
|
-
<auro-icon category="interface" name="arrow-down"></auro-icon>
|
|
503
|
-
</div>
|
|
504
|
-
</div>
|
|
505
|
-
</auro-dropdown>
|
|
506
|
-
</td>
|
|
507
|
-
</tr>
|
|
508
|
-
</table>
|
|
509
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
510
|
-
</div>
|
|
511
|
-
<auro-accordion alignRight>
|
|
512
|
-
<span slot="trigger">See code</span>
|
|
513
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inline.html) -->
|
|
514
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/inline.html -->
|
|
515
|
-
|
|
516
|
-
```html
|
|
517
|
-
<table style="text-align: center;">
|
|
518
|
-
<thead>
|
|
519
|
-
<tr>
|
|
520
|
-
<td>Icon Only</td>
|
|
521
|
-
<td>Text Only</td>
|
|
522
|
-
<td>Text with Icon</td>
|
|
523
|
-
</tr>
|
|
524
|
-
</thead>
|
|
525
|
-
<tr>
|
|
526
|
-
<td>
|
|
527
|
-
<auro-dropdown aria-div="custom div" inset style="display: inline-block;">
|
|
528
|
-
Icon Only Dropdown
|
|
529
|
-
<div slot="trigger">
|
|
530
|
-
<auro-icon category="interface" name="arrow-down"></auro-icon>
|
|
531
|
-
</div>
|
|
532
|
-
</auro-dropdown>
|
|
533
|
-
</td>
|
|
534
|
-
<td>
|
|
535
|
-
<auro-dropdown aria-div="custom div" inset style="display: inline-block;">
|
|
536
|
-
Text Only Dropdown
|
|
537
|
-
<div slot="trigger">
|
|
538
|
-
Trigger Text
|
|
539
|
-
</div>
|
|
540
|
-
</auro-dropdown>
|
|
541
|
-
</td>
|
|
542
|
-
<td>
|
|
543
|
-
<auro-dropdown aria-div="custom div" inset style="display: inline-block;">
|
|
544
|
-
Icon and Text Dropdown
|
|
545
|
-
<div slot="trigger">
|
|
546
|
-
<div style="white-space:nowrap">
|
|
547
|
-
Trigger Text
|
|
548
|
-
<auro-icon category="interface" name="arrow-down"></auro-icon>
|
|
549
|
-
</div>
|
|
550
|
-
</div>
|
|
551
|
-
</auro-dropdown>
|
|
552
|
-
</td>
|
|
553
|
-
</tr>
|
|
554
|
-
</table>
|
|
555
|
-
```
|
|
556
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
557
|
-
</auro-accordion>
|
|
558
|
-
|
|
559
242
|
## Triggering a fullscreen dropdown
|
|
560
243
|
This example shows how to set a dropdown fullscreen breakpoint attribute. Most consuming components use `sm` by default, but
|
|
561
244
|
dropdown supports `xs`, `sm`, `md`, `lg`, `xl` and `disabled`, with `disabled` ensuring that the dropdown will never be fullscreen.
|
|
@@ -564,7 +247,7 @@ dropdown supports `xs`, `sm`, `md`, `lg`, `xl` and `disabled`, with `disabled` e
|
|
|
564
247
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen.html) -->
|
|
565
248
|
<!-- The below content is automatically added from ./../apiExamples/fullscreen.html -->
|
|
566
249
|
<h3>Never fullscreen</h3>
|
|
567
|
-
<auro-dropdown id="common-never-fullscreen"
|
|
250
|
+
<auro-dropdown id="common-never-fullscreen" layout="classic" shape="classic" size="lg" aria-label="Label content for screen reader" fullscreenBreakpoint="disabled">
|
|
568
251
|
<div style="padding: var(--ds-size-150);">
|
|
569
252
|
Lorem ipsum solar
|
|
570
253
|
<br />
|
|
@@ -580,7 +263,7 @@ dropdown supports `xs`, `sm`, `md`, `lg`, `xl` and `disabled`, with `disabled` e
|
|
|
580
263
|
</div>
|
|
581
264
|
</auro-dropdown>
|
|
582
265
|
<h3>Always fullscreen</h3>
|
|
583
|
-
<auro-dropdown id="common-always-fullscreen"
|
|
266
|
+
<auro-dropdown id="common-always-fullscreen" layout="classic" shape="classic" size="lg" aria-label="Label content for screen reader" fullscreenBreakpoint="xl">
|
|
584
267
|
<div style="padding: var(--ds-size-150);">
|
|
585
268
|
Lorem ipsum solar
|
|
586
269
|
<br />
|
|
@@ -604,7 +287,7 @@ dropdown supports `xs`, `sm`, `md`, `lg`, `xl` and `disabled`, with `disabled` e
|
|
|
604
287
|
|
|
605
288
|
```html
|
|
606
289
|
<h3>Never fullscreen</h3>
|
|
607
|
-
<auro-dropdown id="common-never-fullscreen"
|
|
290
|
+
<auro-dropdown id="common-never-fullscreen" layout="classic" shape="classic" size="lg" aria-label="Label content for screen reader" fullscreenBreakpoint="disabled">
|
|
608
291
|
<div style="padding: var(--ds-size-150);">
|
|
609
292
|
Lorem ipsum solar
|
|
610
293
|
<br />
|
|
@@ -620,7 +303,7 @@ dropdown supports `xs`, `sm`, `md`, `lg`, `xl` and `disabled`, with `disabled` e
|
|
|
620
303
|
</div>
|
|
621
304
|
</auro-dropdown>
|
|
622
305
|
<h3>Always fullscreen</h3>
|
|
623
|
-
<auro-dropdown id="common-always-fullscreen"
|
|
306
|
+
<auro-dropdown id="common-always-fullscreen" layout="classic" shape="classic" size="lg" aria-label="Label content for screen reader" fullscreenBreakpoint="xl">
|
|
624
307
|
<div style="padding: var(--ds-size-150);">
|
|
625
308
|
Lorem ipsum solar
|
|
626
309
|
<br />
|
|
@@ -650,6 +333,5 @@ The dropdown can be opened with the following actions:
|
|
|
650
333
|
The dropdown can be closed with the following actions:
|
|
651
334
|
|
|
652
335
|
1. Clicking anywhere in the view outside of the dropdown.
|
|
653
|
-
1. Clicking on the trigger when the `toggle` attribute is used.
|
|
654
336
|
1. Using the `esc` key.
|
|
655
337
|
1. Programmatically via another control in the UI calling the `hide()` method (see api).
|