@aurodesignsystem/auro-formkit 5.1.0-rc-1305.1 → 5.1.0-rc-1314.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/CHANGELOG.md +4 -1
- 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.html +5 -1
- package/components/combobox/demo/index.js +15 -0
- package/components/combobox/demo/index.min.js +8 -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/README.md +2 -2
- package/components/dropdown/demo/api.html +3 -1
- package/components/dropdown/demo/api.js +20 -17
- package/components/dropdown/demo/api.md +49 -52
- package/components/dropdown/demo/api.min.js +79 -20
- package/components/dropdown/demo/index.html +3 -1
- package/components/dropdown/demo/index.js +10 -13
- package/components/dropdown/demo/index.md +6 -6
- package/components/dropdown/demo/index.min.js +34 -3
- package/components/dropdown/demo/readme.html +9 -1
- package/components/dropdown/demo/readme.md +2 -2
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- 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/api.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/package.json +7 -7
|
@@ -186,16 +186,16 @@ The following examples demonstrate basic usage of the `auro-dropdown` component
|
|
|
186
186
|
|
|
187
187
|
Use the `appearance="inverse"` attribute to ensure proper styling when the dropdown is used on dark backgrounds.
|
|
188
188
|
|
|
189
|
-
<div class="exampleWrapper">
|
|
190
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
191
|
-
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
192
|
-
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
</auro-dropdown>
|
|
198
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
189
|
+
<div class="exampleWrapper--ondark">
|
|
190
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
191
|
+
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
192
|
+
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
193
|
+
Lorem ipsum solar
|
|
194
|
+
<div slot="trigger">
|
|
195
|
+
Trigger
|
|
196
|
+
</div>
|
|
197
|
+
</auro-dropdown>
|
|
198
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
199
199
|
</div>
|
|
200
200
|
<auro-accordion alignRight>
|
|
201
201
|
<span slot="trigger">See code</span>
|
|
@@ -212,17 +212,6 @@ Use the `appearance="inverse"` attribute to ensure proper styling when the dropd
|
|
|
212
212
|
```
|
|
213
213
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
214
214
|
</auro-accordion>
|
|
215
|
-
<div class="exampleWrapper--ondark" aria-hidden>
|
|
216
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse.html) -->
|
|
217
|
-
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse.html -->
|
|
218
|
-
<auro-dropdown appearance="inverse" aria-label="custom label">
|
|
219
|
-
Lorem ipsum solar
|
|
220
|
-
<div slot="trigger">
|
|
221
|
-
Trigger
|
|
222
|
-
</div>
|
|
223
|
-
</auro-dropdown>
|
|
224
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
225
|
-
</div>
|
|
226
215
|
|
|
227
216
|
### Chevron
|
|
228
217
|
|
|
@@ -358,11 +347,11 @@ Use the `error` attribute to set persistent error state styling on the dropdown.
|
|
|
358
347
|
<div class="exampleWrapper">
|
|
359
348
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
|
|
360
349
|
<!-- The below content is automatically added from ./../apiExamples/error.html -->
|
|
361
|
-
<auro-dropdown layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
350
|
+
<auro-dropdown id="error" layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
362
351
|
<div style="padding: var(--ds-size-150);">
|
|
363
352
|
Lorem ipsum solar
|
|
364
353
|
<br />
|
|
365
|
-
<auro-button
|
|
354
|
+
<auro-button id="errorButton">
|
|
366
355
|
Dismiss Dropdown
|
|
367
356
|
</auro-button>
|
|
368
357
|
</div>
|
|
@@ -381,11 +370,11 @@ Use the `error` attribute to set persistent error state styling on the dropdown.
|
|
|
381
370
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
382
371
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/appearance-inverse-error.html) -->
|
|
383
372
|
<!-- The below content is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
384
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error
|
|
373
|
+
<auro-dropdown id="inverseError" appearance="inverse" layout="classic" shape="classic" size="lg" error>
|
|
385
374
|
<div style="padding: var(--ds-size-150);">
|
|
386
375
|
Lorem ipsum solar
|
|
387
376
|
<br />
|
|
388
|
-
<auro-button
|
|
377
|
+
<auro-button id="inverseErrorButton">
|
|
389
378
|
Dismiss Dropdown
|
|
390
379
|
</auro-button>
|
|
391
380
|
</div>
|
|
@@ -407,11 +396,11 @@ Use the `error` attribute to set persistent error state styling on the dropdown.
|
|
|
407
396
|
<!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
|
|
408
397
|
|
|
409
398
|
```html
|
|
410
|
-
<auro-dropdown layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
399
|
+
<auro-dropdown id="error" layout="classic" shape="classic" size="lg" error id="errorDropdownExample">
|
|
411
400
|
<div style="padding: var(--ds-size-150);">
|
|
412
401
|
Lorem ipsum solar
|
|
413
402
|
<br />
|
|
414
|
-
<auro-button
|
|
403
|
+
<auro-button id="errorButton">
|
|
415
404
|
Dismiss Dropdown
|
|
416
405
|
</auro-button>
|
|
417
406
|
</div>
|
|
@@ -431,11 +420,11 @@ Use the `error` attribute to set persistent error state styling on the dropdown.
|
|
|
431
420
|
<!-- The below code snippet is automatically added from ./../apiExamples/appearance-inverse-error.html -->
|
|
432
421
|
|
|
433
422
|
```html
|
|
434
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg" error
|
|
423
|
+
<auro-dropdown id="inverseError" appearance="inverse" layout="classic" shape="classic" size="lg" error>
|
|
435
424
|
<div style="padding: var(--ds-size-150);">
|
|
436
425
|
Lorem ipsum solar
|
|
437
426
|
<br />
|
|
438
|
-
<auro-button
|
|
427
|
+
<auro-button id="inverseErrorButton">
|
|
439
428
|
Dismiss Dropdown
|
|
440
429
|
</auro-button>
|
|
441
430
|
</div>
|
|
@@ -464,7 +453,7 @@ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/
|
|
|
464
453
|
<div class="exampleWrapper">
|
|
465
454
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fullscreen-breakpoint.html) -->
|
|
466
455
|
<!-- The below content is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
|
|
467
|
-
<auro-dropdown fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron
|
|
456
|
+
<auro-dropdown id="fullscreen" fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron>
|
|
468
457
|
<div>
|
|
469
458
|
<p>
|
|
470
459
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
@@ -476,7 +465,7 @@ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/
|
|
|
476
465
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
477
466
|
</p>
|
|
478
467
|
</div>
|
|
479
|
-
<auro-button
|
|
468
|
+
<auro-button id="fullscreenButton">
|
|
480
469
|
Dismiss Dropdown
|
|
481
470
|
</auro-button>
|
|
482
471
|
<div slot="trigger">
|
|
@@ -491,7 +480,7 @@ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/
|
|
|
491
480
|
<!-- The below code snippet is automatically added from ./../apiExamples/fullscreen-breakpoint.html -->
|
|
492
481
|
|
|
493
482
|
```html
|
|
494
|
-
<auro-dropdown fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron
|
|
483
|
+
<auro-dropdown id="fullscreen" fullscreenBreakpoint="sm" layout="classic" shape="classic" size="lg" chevron>
|
|
495
484
|
<div>
|
|
496
485
|
<p>
|
|
497
486
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
@@ -503,7 +492,7 @@ Breakpoint token can be found [here](https://auro.alaskaair.com/getting-started/
|
|
|
503
492
|
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
504
493
|
</p>
|
|
505
494
|
</div>
|
|
506
|
-
<auro-button
|
|
495
|
+
<auro-button id="fullscreenButton">
|
|
507
496
|
Dismiss Dropdown
|
|
508
497
|
</auro-button>
|
|
509
498
|
<div slot="trigger">
|
|
@@ -529,7 +518,7 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
529
518
|
<div style="padding: var(--ds-size-150);">
|
|
530
519
|
Lorem ipsum solar
|
|
531
520
|
<br />
|
|
532
|
-
<auro-button
|
|
521
|
+
<auro-button id="classicButton">
|
|
533
522
|
Dismiss Dropdown
|
|
534
523
|
</auro-button>
|
|
535
524
|
</div>
|
|
@@ -552,7 +541,7 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
552
541
|
<div style="padding: var(--ds-size-150);">
|
|
553
542
|
Lorem ipsum solar
|
|
554
543
|
<br />
|
|
555
|
-
<auro-button
|
|
544
|
+
<auro-button id="classicButton">
|
|
556
545
|
Dismiss Dropdown
|
|
557
546
|
</auro-button>
|
|
558
547
|
</div>
|
|
@@ -569,11 +558,11 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
569
558
|
<div class="exampleWrapper--ondark">
|
|
570
559
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/appearance-inverse.html) -->
|
|
571
560
|
<!-- The below content is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
572
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg"
|
|
561
|
+
<auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
573
562
|
<div style="padding: var(--ds-size-150);">
|
|
574
563
|
Lorem ipsum solar
|
|
575
564
|
<br />
|
|
576
|
-
<auro-button
|
|
565
|
+
<auro-button id="classicInverseButton">
|
|
577
566
|
Dismiss Dropdown
|
|
578
567
|
</auro-button>
|
|
579
568
|
</div>
|
|
@@ -592,11 +581,11 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
592
581
|
<!-- The below code snippet is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
593
582
|
|
|
594
583
|
```html
|
|
595
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg"
|
|
584
|
+
<auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
596
585
|
<div style="padding: var(--ds-size-150);">
|
|
597
586
|
Lorem ipsum solar
|
|
598
587
|
<br />
|
|
599
|
-
<auro-button
|
|
588
|
+
<auro-button id="classicInverseButton">
|
|
600
589
|
Dismiss Dropdown
|
|
601
590
|
</auro-button>
|
|
602
591
|
</div>
|
|
@@ -925,11 +914,11 @@ When the `matchWidth` attribute is applied, the width of the dropdown bib will m
|
|
|
925
914
|
<div class="exampleWrapper">
|
|
926
915
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/match-width.html) -->
|
|
927
916
|
<!-- The below content is automatically added from ./../apiExamples/match-width.html -->
|
|
928
|
-
<auro-dropdown id="
|
|
917
|
+
<auro-dropdown id="matchWidth" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader">
|
|
929
918
|
<div style="padding: var(--ds-size-150);">
|
|
930
919
|
Lorem ipsum solar
|
|
931
920
|
<br />
|
|
932
|
-
<auro-button
|
|
921
|
+
<auro-button id="matchWidthButton">
|
|
933
922
|
Dismiss Dropdown
|
|
934
923
|
</auro-button>
|
|
935
924
|
</div>
|
|
@@ -948,11 +937,11 @@ When the `matchWidth` attribute is applied, the width of the dropdown bib will m
|
|
|
948
937
|
<!-- The below code snippet is automatically added from ./../apiExamples/match-width.html -->
|
|
949
938
|
|
|
950
939
|
```html
|
|
951
|
-
<auro-dropdown id="
|
|
940
|
+
<auro-dropdown id="matchWidth" layout="classic" shape="classic" size="lg" matchWidth aria-label="Label content for screen reader">
|
|
952
941
|
<div style="padding: var(--ds-size-150);">
|
|
953
942
|
Lorem ipsum solar
|
|
954
943
|
<br />
|
|
955
|
-
<auro-button
|
|
944
|
+
<auro-button id="matchWidthButton">
|
|
956
945
|
Dismiss Dropdown
|
|
957
946
|
</auro-button>
|
|
958
947
|
</div>
|
|
@@ -1016,7 +1005,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1016
1005
|
Lorem ipsum solar
|
|
1017
1006
|
</p>
|
|
1018
1007
|
<div style="padding: var(--ds-size-150);">
|
|
1019
|
-
<auro-button id="hideExampleBtn"
|
|
1008
|
+
<auro-button id="hideExampleBtn">
|
|
1020
1009
|
Hide Dropdown
|
|
1021
1010
|
</auro-button>
|
|
1022
1011
|
</div>
|
|
@@ -1037,7 +1026,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1037
1026
|
Lorem ipsum solar
|
|
1038
1027
|
</p>
|
|
1039
1028
|
<div style="padding: var(--ds-size-150);">
|
|
1040
|
-
<auro-button id="hideExampleBtn"
|
|
1029
|
+
<auro-button id="hideExampleBtn">
|
|
1041
1030
|
Hide Dropdown
|
|
1042
1031
|
</auro-button>
|
|
1043
1032
|
</div>
|
|
@@ -1055,8 +1044,8 @@ export function hideExample() {
|
|
|
1055
1044
|
const btn = document.querySelector('#hideExampleBtn');
|
|
1056
1045
|
const dropdown = document.querySelector('#hideExample');
|
|
1057
1046
|
|
|
1058
|
-
btn
|
|
1059
|
-
dropdown
|
|
1047
|
+
btn?.addEventListener('click', () => {
|
|
1048
|
+
dropdown?.hide();
|
|
1060
1049
|
});
|
|
1061
1050
|
}
|
|
1062
1051
|
```
|
|
@@ -1108,8 +1097,8 @@ export function showExample() {
|
|
|
1108
1097
|
const triggerInput = document.querySelector('#showExampleTriggerInput');
|
|
1109
1098
|
const dropdownElem = document.querySelector('#showMethodExample');
|
|
1110
1099
|
|
|
1111
|
-
triggerInput
|
|
1112
|
-
dropdownElem
|
|
1100
|
+
triggerInput?.addEventListener('keydown', () => {
|
|
1101
|
+
dropdownElem?.show();
|
|
1113
1102
|
});
|
|
1114
1103
|
}
|
|
1115
1104
|
```
|
|
@@ -1252,7 +1241,7 @@ The element used within an `auro-dialog`.
|
|
|
1252
1241
|
<div style="padding: var(--ds-size-150);">
|
|
1253
1242
|
Lorem ipsum solar
|
|
1254
1243
|
<br />
|
|
1255
|
-
<auro-button
|
|
1244
|
+
<auro-button id="in-dialog-dismiss-btn">
|
|
1256
1245
|
Dismiss Dropdown
|
|
1257
1246
|
</auro-button>
|
|
1258
1247
|
</div>
|
|
@@ -1286,7 +1275,7 @@ The element used within an `auro-dialog`.
|
|
|
1286
1275
|
<div style="padding: var(--ds-size-150);">
|
|
1287
1276
|
Lorem ipsum solar
|
|
1288
1277
|
<br />
|
|
1289
|
-
<auro-button
|
|
1278
|
+
<auro-button id="in-dialog-dismiss-btn">
|
|
1290
1279
|
Dismiss Dropdown
|
|
1291
1280
|
</auro-button>
|
|
1292
1281
|
</div>
|
|
@@ -1310,10 +1299,18 @@ The element used within an `auro-dialog`.
|
|
|
1310
1299
|
|
|
1311
1300
|
```js
|
|
1312
1301
|
export function inDialogExample() {
|
|
1313
|
-
document.querySelector("#dropdown-dialog-opener")
|
|
1302
|
+
const openBtn = document.querySelector("#dropdown-dialog-opener");
|
|
1303
|
+
const closeBtn = document.querySelector("#in-dialog-dismiss-btn");
|
|
1304
|
+
const dropdown = document.querySelector("#in-dialog-dropdown");
|
|
1305
|
+
|
|
1306
|
+
openBtn?.addEventListener("click", () => {
|
|
1314
1307
|
const dialog = document.querySelector("#dropdown-dialog");
|
|
1315
1308
|
dialog.open = true;
|
|
1316
1309
|
});
|
|
1310
|
+
|
|
1311
|
+
closeBtn?.addEventListener("click", () => {
|
|
1312
|
+
dropdown?.hide();
|
|
1313
|
+
});
|
|
1317
1314
|
};
|
|
1318
1315
|
```
|
|
1319
1316
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1,9 +1,63 @@
|
|
|
1
|
+
function errorExample() {
|
|
2
|
+
const btn = document.querySelector('#errorButton');
|
|
3
|
+
const dropdown = document.querySelector('#error');
|
|
4
|
+
|
|
5
|
+
btn?.addEventListener('click', () => {
|
|
6
|
+
dropdown?.hide();
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function inverseErrorExample() {
|
|
11
|
+
const btn = document.querySelector('#inverseErrorButton');
|
|
12
|
+
const dropdown = document.querySelector('#inverseError');
|
|
13
|
+
|
|
14
|
+
btn?.addEventListener('click', () => {
|
|
15
|
+
dropdown?.hide();
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function fullscreenBreakpointExample() {
|
|
20
|
+
const btn = document.querySelector('#fullscreenButton');
|
|
21
|
+
const dropdown = document.querySelector('#fullscreen');
|
|
22
|
+
|
|
23
|
+
btn?.addEventListener('click', () => {
|
|
24
|
+
dropdown?.hide();
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function classicExample() {
|
|
29
|
+
const btn = document.querySelector('#classicButton');
|
|
30
|
+
const dropdown = document.querySelector('#classic');
|
|
31
|
+
|
|
32
|
+
btn?.addEventListener('click', () => {
|
|
33
|
+
dropdown?.hide();
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function classicInverseExample() {
|
|
38
|
+
const btn = document.querySelector('#classicInverseButton');
|
|
39
|
+
const dropdown = document.querySelector('#classicInverse');
|
|
40
|
+
|
|
41
|
+
btn?.addEventListener('click', () => {
|
|
42
|
+
dropdown?.hide();
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
function matchWidthExample() {
|
|
47
|
+
const btn = document.querySelector('#matchWidthButton');
|
|
48
|
+
const dropdown = document.querySelector('#matchWidth');
|
|
49
|
+
|
|
50
|
+
btn?.addEventListener('click', () => {
|
|
51
|
+
dropdown?.hide();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
|
|
1
55
|
function hideExample() {
|
|
2
56
|
const btn = document.querySelector('#hideExampleBtn');
|
|
3
57
|
const dropdown = document.querySelector('#hideExample');
|
|
4
58
|
|
|
5
|
-
btn
|
|
6
|
-
dropdown
|
|
59
|
+
btn?.addEventListener('click', () => {
|
|
60
|
+
dropdown?.hide();
|
|
7
61
|
});
|
|
8
62
|
}
|
|
9
63
|
|
|
@@ -11,16 +65,24 @@ function showExample() {
|
|
|
11
65
|
const triggerInput = document.querySelector('#showExampleTriggerInput');
|
|
12
66
|
const dropdownElem = document.querySelector('#showMethodExample');
|
|
13
67
|
|
|
14
|
-
triggerInput
|
|
15
|
-
dropdownElem
|
|
68
|
+
triggerInput?.addEventListener('keydown', () => {
|
|
69
|
+
dropdownElem?.show();
|
|
16
70
|
});
|
|
17
71
|
}
|
|
18
72
|
|
|
19
73
|
function inDialogExample() {
|
|
20
|
-
document.querySelector("#dropdown-dialog-opener")
|
|
74
|
+
const openBtn = document.querySelector("#dropdown-dialog-opener");
|
|
75
|
+
const closeBtn = document.querySelector("#in-dialog-dismiss-btn");
|
|
76
|
+
const dropdown = document.querySelector("#in-dialog-dropdown");
|
|
77
|
+
|
|
78
|
+
openBtn?.addEventListener("click", () => {
|
|
21
79
|
const dialog = document.querySelector("#dropdown-dialog");
|
|
22
80
|
dialog.open = true;
|
|
23
81
|
});
|
|
82
|
+
|
|
83
|
+
closeBtn?.addEventListener("click", () => {
|
|
84
|
+
dropdown?.hide();
|
|
85
|
+
});
|
|
24
86
|
}
|
|
25
87
|
|
|
26
88
|
/**
|
|
@@ -3183,7 +3245,7 @@ class AuroHelpText extends i {
|
|
|
3183
3245
|
}
|
|
3184
3246
|
}
|
|
3185
3247
|
|
|
3186
|
-
var formkitVersion = '
|
|
3248
|
+
var formkitVersion = '202601292023';
|
|
3187
3249
|
|
|
3188
3250
|
class AuroElement extends i {
|
|
3189
3251
|
static get properties() {
|
|
@@ -4239,20 +4301,17 @@ AuroDropdown.register();
|
|
|
4239
4301
|
|
|
4240
4302
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers */
|
|
4241
4303
|
|
|
4242
|
-
function initExamples(
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
}, 100);
|
|
4254
|
-
}
|
|
4255
|
-
}
|
|
4304
|
+
function initExamples() {
|
|
4305
|
+
// javascript example function calls to be added here upon creation to test examples
|
|
4306
|
+
errorExample();
|
|
4307
|
+
inverseErrorExample();
|
|
4308
|
+
fullscreenBreakpointExample();
|
|
4309
|
+
classicExample();
|
|
4310
|
+
classicInverseExample();
|
|
4311
|
+
matchWidthExample();
|
|
4312
|
+
hideExample();
|
|
4313
|
+
showExample();
|
|
4314
|
+
inDialogExample();
|
|
4256
4315
|
}
|
|
4257
4316
|
|
|
4258
4317
|
export { initExamples };
|
|
@@ -51,7 +51,9 @@
|
|
|
51
51
|
<script type="module">
|
|
52
52
|
import { initExamples } from "./index.min.js";
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
window.addEventListener('load', () => {
|
|
55
|
+
initExamples();
|
|
56
|
+
});
|
|
55
57
|
</script>
|
|
56
58
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
57
59
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
import { classicExample } from '../apiExamples/classic/basic.js';
|
|
4
|
+
import { classicInverseExample } from '../apiExamples/classic/appearance-inverse.js';
|
|
5
|
+
import { customExample } from '../apiExamples/custom.js';
|
|
6
|
+
|
|
3
7
|
import { AuroDropdown } from '../src/auro-dropdown.js';
|
|
4
8
|
AuroDropdown.register();
|
|
5
9
|
AuroDropdown.register('custom-dropdown');
|
|
6
10
|
|
|
7
|
-
export function initExamples(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
if (initialCount <= 20) {
|
|
13
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
14
|
-
setTimeout(() => {
|
|
15
|
-
initExamples(initialCount + 1);
|
|
16
|
-
}, 100);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
11
|
+
export function initExamples() {
|
|
12
|
+
// javascript example function calls to be added here upon creation to test examples
|
|
13
|
+
classicExample();
|
|
14
|
+
classicInverseExample();
|
|
15
|
+
customExample();
|
|
19
16
|
}
|
|
@@ -94,7 +94,7 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
94
94
|
<div style="padding: var(--ds-size-150);">
|
|
95
95
|
Lorem ipsum solar
|
|
96
96
|
<br />
|
|
97
|
-
<auro-button
|
|
97
|
+
<auro-button id="classicButton">
|
|
98
98
|
Dismiss Dropdown
|
|
99
99
|
</auro-button>
|
|
100
100
|
</div>
|
|
@@ -117,7 +117,7 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
117
117
|
<div style="padding: var(--ds-size-150);">
|
|
118
118
|
Lorem ipsum solar
|
|
119
119
|
<br />
|
|
120
|
-
<auro-button
|
|
120
|
+
<auro-button id="classicButton">
|
|
121
121
|
Dismiss Dropdown
|
|
122
122
|
</auro-button>
|
|
123
123
|
</div>
|
|
@@ -134,11 +134,11 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
134
134
|
<div class="exampleWrapper--ondark">
|
|
135
135
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/appearance-inverse.html) -->
|
|
136
136
|
<!-- The below content is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
137
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg"
|
|
137
|
+
<auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
138
138
|
<div style="padding: var(--ds-size-150);">
|
|
139
139
|
Lorem ipsum solar
|
|
140
140
|
<br />
|
|
141
|
-
<auro-button
|
|
141
|
+
<auro-button id="classicInverseButton">
|
|
142
142
|
Dismiss Dropdown
|
|
143
143
|
</auro-button>
|
|
144
144
|
</div>
|
|
@@ -157,11 +157,11 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
157
157
|
<!-- The below code snippet is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
158
158
|
|
|
159
159
|
```html
|
|
160
|
-
<auro-dropdown appearance="inverse" layout="classic" shape="classic" size="lg"
|
|
160
|
+
<auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
161
161
|
<div style="padding: var(--ds-size-150);">
|
|
162
162
|
Lorem ipsum solar
|
|
163
163
|
<br />
|
|
164
|
-
<auro-button
|
|
164
|
+
<auro-button id="classicInverseButton">
|
|
165
165
|
Dismiss Dropdown
|
|
166
166
|
</auro-button>
|
|
167
167
|
</div>
|
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
function classicExample() {
|
|
2
|
+
const btn = document.querySelector('#classicButton');
|
|
3
|
+
const dropdown = document.querySelector('#classic');
|
|
4
|
+
|
|
5
|
+
btn?.addEventListener('click', () => {
|
|
6
|
+
dropdown?.hide();
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
function classicInverseExample() {
|
|
11
|
+
const btn = document.querySelector('#classicInverseButton');
|
|
12
|
+
const dropdown = document.querySelector('#classicInverse');
|
|
13
|
+
|
|
14
|
+
btn?.addEventListener('click', () => {
|
|
15
|
+
dropdown?.hide();
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function customExample() {
|
|
20
|
+
const btn = document.querySelector('#customCommonButton');
|
|
21
|
+
const dropdown = document.querySelector('#customCommon');
|
|
22
|
+
|
|
23
|
+
btn?.addEventListener('click', () => {
|
|
24
|
+
dropdown?.hide();
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
1
28
|
/**
|
|
2
29
|
* @license
|
|
3
30
|
* Copyright 2017 Google LLC
|
|
@@ -3158,7 +3185,7 @@ class AuroHelpText extends i {
|
|
|
3158
3185
|
}
|
|
3159
3186
|
}
|
|
3160
3187
|
|
|
3161
|
-
var formkitVersion = '
|
|
3188
|
+
var formkitVersion = '202601292023';
|
|
3162
3189
|
|
|
3163
3190
|
class AuroElement extends i {
|
|
3164
3191
|
static get properties() {
|
|
@@ -4211,11 +4238,15 @@ class AuroDropdown extends AuroElement {
|
|
|
4211
4238
|
}
|
|
4212
4239
|
|
|
4213
4240
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
4214
|
-
|
|
4241
|
+
|
|
4215
4242
|
AuroDropdown.register();
|
|
4216
4243
|
AuroDropdown.register('custom-dropdown');
|
|
4217
4244
|
|
|
4218
|
-
function initExamples(
|
|
4245
|
+
function initExamples() {
|
|
4246
|
+
// javascript example function calls to be added here upon creation to test examples
|
|
4247
|
+
classicExample();
|
|
4248
|
+
classicInverseExample();
|
|
4249
|
+
customExample();
|
|
4219
4250
|
}
|
|
4220
4251
|
|
|
4221
4252
|
export { initExamples };
|
|
@@ -48,9 +48,17 @@
|
|
|
48
48
|
Prism.highlightAll();
|
|
49
49
|
})
|
|
50
50
|
</script>
|
|
51
|
-
<script
|
|
51
|
+
<script type="module">
|
|
52
|
+
import { initExamples } from "./index.min.js";
|
|
53
|
+
|
|
54
|
+
window.addEventListener('load', () => {
|
|
55
|
+
initExamples();
|
|
56
|
+
});
|
|
57
|
+
</script>
|
|
52
58
|
|
|
53
59
|
<!-- If additional elements are needed for the demo, add them here. -->
|
|
60
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-icon@latest/+esm" type="module"></script>
|
|
54
61
|
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
62
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-button@latest/+esm" type="module"></script>
|
|
55
63
|
</body>
|
|
56
64
|
</html>
|
|
@@ -124,7 +124,7 @@ This will create a new custom element `<custom-dropdown>` that behaves exactly l
|
|
|
124
124
|
<div style="padding: var(--ds-size-150);">
|
|
125
125
|
Lorem ipsum solar
|
|
126
126
|
<br />
|
|
127
|
-
<auro-button
|
|
127
|
+
<auro-button id="customCommonButton">
|
|
128
128
|
Dismiss Dropdown
|
|
129
129
|
</auro-button>
|
|
130
130
|
</div>
|
|
@@ -144,7 +144,7 @@ This will create a new custom element `<custom-dropdown>` that behaves exactly l
|
|
|
144
144
|
<div style="padding: var(--ds-size-150);">
|
|
145
145
|
Lorem ipsum solar
|
|
146
146
|
<br />
|
|
147
|
-
<auro-button
|
|
147
|
+
<auro-button id="customCommonButton">
|
|
148
148
|
Dismiss Dropdown
|
|
149
149
|
</auro-button>
|
|
150
150
|
</div>
|
|
@@ -6715,7 +6715,7 @@ class AuroHelpText extends i$2 {
|
|
|
6715
6715
|
}
|
|
6716
6716
|
}
|
|
6717
6717
|
|
|
6718
|
-
var formkitVersion = '
|
|
6718
|
+
var formkitVersion = '202601292023';
|
|
6719
6719
|
|
|
6720
6720
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6721
6721
|
// See LICENSE in the project root for license information.
|
|
@@ -6640,7 +6640,7 @@ class AuroHelpText extends i$2 {
|
|
|
6640
6640
|
}
|
|
6641
6641
|
}
|
|
6642
6642
|
|
|
6643
|
-
var formkitVersion = '
|
|
6643
|
+
var formkitVersion = '202601292023';
|
|
6644
6644
|
|
|
6645
6645
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6646
6646
|
// See LICENSE in the project root for license information.
|
|
@@ -6581,7 +6581,7 @@ class AuroHelpText extends LitElement {
|
|
|
6581
6581
|
}
|
|
6582
6582
|
}
|
|
6583
6583
|
|
|
6584
|
-
var formkitVersion = '
|
|
6584
|
+
var formkitVersion = '202601292023';
|
|
6585
6585
|
|
|
6586
6586
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6587
6587
|
// See LICENSE in the project root for license information.
|