@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
|
@@ -3,47 +3,35 @@
|
|
|
3
3
|
|
|
4
4
|
# auro-dropdown
|
|
5
5
|
|
|
6
|
-
## Attributes
|
|
7
|
-
|
|
8
|
-
| Attribute | Type | Description |
|
|
9
|
-
|--------------------|-------------|--------------------------------------------------|
|
|
10
|
-
| [bordered](#bordered) | ` Boolean ` | If declared, applies a border around the trigger slot. |
|
|
11
|
-
| [disableEventShow](#disableEventShow) | ` Boolean ` | If declared, the dropdown will only show by calling the API .show() public method. |
|
|
12
|
-
|
|
13
6
|
## Properties
|
|
14
7
|
|
|
15
|
-
| Property | Attribute |
|
|
16
|
-
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
21
|
-
| [
|
|
22
|
-
| [
|
|
23
|
-
| [
|
|
24
|
-
| [
|
|
25
|
-
| [
|
|
26
|
-
| [
|
|
27
|
-
| [
|
|
28
|
-
| [
|
|
29
|
-
| [
|
|
30
|
-
| [
|
|
31
|
-
| [
|
|
32
|
-
| [
|
|
33
|
-
| [
|
|
34
|
-
| [
|
|
35
|
-
| [
|
|
36
|
-
| [
|
|
37
|
-
| [
|
|
38
|
-
| [
|
|
39
|
-
| [
|
|
40
|
-
| [
|
|
41
|
-
| [
|
|
42
|
-
| [placement](#placement) | `placement` | | `string` | "bottom-start" | Position where the bib should appear relative to the trigger. |
|
|
43
|
-
| [rounded](#rounded) | `rounded` | | ` Boolean ` | | If declared, will apply border-radius to trigger and default slots. |
|
|
44
|
-
| [shape](#shape) | | | `string` | "classic" | |
|
|
45
|
-
| [simple](#simple) | `simple` | | `boolean` | | If declared, applies a border around the trigger slot. |
|
|
46
|
-
| [size](#size) | | | `string` | "xl" | |
|
|
8
|
+
| Property | Attribute | Type | Default | Description |
|
|
9
|
+
|-------------------------|-------------------------|-------------|----------------|--------------------------------------------------|
|
|
10
|
+
| `a11yRole` | | | | The value for the role attribute of the trigger element. |
|
|
11
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
12
|
+
| [chevron](#chevron) | `chevron` | ` Boolean ` | | If declared, the dropdown displays a chevron on the right. |
|
|
13
|
+
| [disableEventShow](#disableEventShow) | `disableEventShow` | ` Boolean ` | "false" | If declared, the dropdown will only show by calling the API .show() public method. |
|
|
14
|
+
| [disableFocusTrap](#disableFocusTrap) | `disableFocusTrap` | `boolean` | | If declared, the focus trap inside of bib will be turned off. |
|
|
15
|
+
| [disabled](#disabled) | `disabled` | ` Boolean ` | | If declared, the dropdown is not interactive. |
|
|
16
|
+
| [error](#error) | `error` | ` Boolean ` | | If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both. |
|
|
17
|
+
| [errorMessage](#errorMessage) | `errorMessage` | `string` | "undefined" | Contains the help text message for the current validity error. |
|
|
18
|
+
| [focusShow](#focusShow) | `focusShow` | ` Boolean ` | | If declared, the bib will display when focus is applied to the trigger. |
|
|
19
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | ` String ` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
20
|
+
| [hoverToggle](#hoverToggle) | `hoverToggle` | ` Boolean ` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
|
|
21
|
+
| [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
|
|
22
|
+
| [isPopoverVisible](#isPopoverVisible) | `isPopoverVisible` | ` Boolean ` | false | If true, the dropdown bib is displayed. |
|
|
23
|
+
| [layout](#layout) | | | "undefined" | |
|
|
24
|
+
| [matchWidth](#matchWidth) | `matchWidth` | ` Boolean ` | false | If declared, the popover and trigger will be set to the same width. |
|
|
25
|
+
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
26
|
+
| [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | ` Boolean ` | false | If declared, the dropdown will not hide when moving focus outside the element. |
|
|
27
|
+
| [noToggle](#noToggle) | `noToggle` | ` Boolean ` | | If declared, the trigger will only show the dropdown bib. |
|
|
28
|
+
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
29
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied. |
|
|
30
|
+
| [onSlotChange](#onSlotChange) | `onSlotChange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
|
|
31
|
+
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger. |
|
|
32
|
+
| [shape](#shape) | | | "undefined" | |
|
|
33
|
+
| [simple](#simple) | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
|
|
34
|
+
| [size](#size) | | | "undefined" | |
|
|
47
35
|
|
|
48
36
|
## Methods
|
|
49
37
|
|
|
@@ -58,7 +46,7 @@
|
|
|
58
46
|
|
|
59
47
|
| Event | Type | Description |
|
|
60
48
|
|-----------------------------|--------------------------------------|--------------------------------------------------|
|
|
61
|
-
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` |
|
|
49
|
+
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | |
|
|
62
50
|
| `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
|
|
63
51
|
| `auroDropdown-triggerClick` | | Notifies that the trigger has been clicked. |
|
|
64
52
|
|
|
@@ -68,7 +56,6 @@
|
|
|
68
56
|
|------------|---------------------------------------|
|
|
69
57
|
| | Default slot for the popover content. |
|
|
70
58
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
71
|
-
| [label](#label) | Defines the content of the label. |
|
|
72
59
|
| [trigger](#trigger) | Defines the content of the trigger. |
|
|
73
60
|
|
|
74
61
|
## CSS Shadow Parts
|
|
@@ -85,7 +72,9 @@
|
|
|
85
72
|
|
|
86
73
|
### Basic
|
|
87
74
|
|
|
88
|
-
The most basic, simple version of `auro-dropdown`.
|
|
75
|
+
The most basic, simple version of `auro-dropdown`.
|
|
76
|
+
|
|
77
|
+
#### Text content in trigger
|
|
89
78
|
|
|
90
79
|
<div class="exampleWrapper">
|
|
91
80
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
@@ -133,6 +122,9 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
133
122
|
</auro-dropdown>
|
|
134
123
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
135
124
|
</auro-accordion>
|
|
125
|
+
|
|
126
|
+
#### Icon content in trigger
|
|
127
|
+
|
|
136
128
|
<div class="exampleWrapper">
|
|
137
129
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicIcon.html) -->
|
|
138
130
|
<!-- The below content is automatically added from ./../apiExamples/basicIcon.html -->
|
|
@@ -169,9 +161,7 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
169
161
|
<auro-dropdown aria-label="custom label">
|
|
170
162
|
Lorem ipsum solar
|
|
171
163
|
<div slot="trigger">
|
|
172
|
-
<auro-button
|
|
173
|
-
slot="trigger"
|
|
174
|
-
fluid>
|
|
164
|
+
<auro-button slot="trigger">
|
|
175
165
|
Dropdown
|
|
176
166
|
</auro-button>
|
|
177
167
|
</div>
|
|
@@ -187,9 +177,7 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
187
177
|
<auro-dropdown aria-label="custom label">
|
|
188
178
|
Lorem ipsum solar
|
|
189
179
|
<div slot="trigger">
|
|
190
|
-
<auro-button
|
|
191
|
-
slot="trigger"
|
|
192
|
-
fluid>
|
|
180
|
+
<auro-button slot="trigger">
|
|
193
181
|
Dropdown
|
|
194
182
|
</auro-button>
|
|
195
183
|
</div>
|
|
@@ -218,7 +206,7 @@ Adds the border style around the dropdown trigger.
|
|
|
218
206
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
219
207
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
|
|
220
208
|
<!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
|
|
221
|
-
<auro-dropdown onDark aria-label="custom label"
|
|
209
|
+
<auro-dropdown onDark aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
222
210
|
Lorem ipsum solar
|
|
223
211
|
<div slot="trigger">
|
|
224
212
|
Trigger
|
|
@@ -242,7 +230,7 @@ Adds the border style around the dropdown trigger.
|
|
|
242
230
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
243
231
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
|
|
244
232
|
<!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
|
|
245
|
-
<auro-dropdown onDark aria-label="custom label"
|
|
233
|
+
<auro-dropdown onDark aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
246
234
|
Lorem ipsum solar
|
|
247
235
|
<div slot="trigger">
|
|
248
236
|
Trigger
|
|
@@ -317,9 +305,7 @@ Adds the bib visibility state chevron to the right side of the trigger content.
|
|
|
317
305
|
<auro-dropdown aria-label="custom label" chevron>
|
|
318
306
|
Lorem ipsum solar
|
|
319
307
|
<div slot="trigger">
|
|
320
|
-
<auro-button
|
|
321
|
-
slot="trigger"
|
|
322
|
-
fluid>
|
|
308
|
+
<auro-button slot="trigger">
|
|
323
309
|
Dropdown
|
|
324
310
|
</auro-button>
|
|
325
311
|
</div>
|
|
@@ -335,9 +321,7 @@ Adds the bib visibility state chevron to the right side of the trigger content.
|
|
|
335
321
|
<auro-dropdown aria-label="custom label" chevron>
|
|
336
322
|
Lorem ipsum solar
|
|
337
323
|
<div slot="trigger">
|
|
338
|
-
<auro-button
|
|
339
|
-
slot="trigger"
|
|
340
|
-
fluid>
|
|
324
|
+
<auro-button slot="trigger">
|
|
341
325
|
Dropdown
|
|
342
326
|
</auro-button>
|
|
343
327
|
</div>
|
|
@@ -413,9 +397,7 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
413
397
|
disabled
|
|
414
398
|
onDark
|
|
415
399
|
chevron
|
|
416
|
-
|
|
417
|
-
inset
|
|
418
|
-
bordered>
|
|
400
|
+
layout="classic" shape="classic" size="lg">
|
|
419
401
|
Lorem ipsum solar
|
|
420
402
|
<div slot="trigger">
|
|
421
403
|
Trigger
|
|
@@ -462,9 +444,7 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
462
444
|
disabled
|
|
463
445
|
onDark
|
|
464
446
|
chevron
|
|
465
|
-
|
|
466
|
-
inset
|
|
467
|
-
bordered>
|
|
447
|
+
layout="classic" shape="classic" size="lg">
|
|
468
448
|
Lorem ipsum solar
|
|
469
449
|
<div slot="trigger">
|
|
470
450
|
Trigger
|
|
@@ -509,7 +489,7 @@ Adds the error state UI to the trigger.
|
|
|
509
489
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
510
490
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
511
491
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
512
|
-
<auro-dropdown onDark
|
|
492
|
+
<auro-dropdown onDark layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
|
|
513
493
|
<div style="padding: var(--ds-size-150);">
|
|
514
494
|
Lorem ipsum solar
|
|
515
495
|
<br />
|
|
@@ -557,7 +537,7 @@ Adds the error state UI to the trigger.
|
|
|
557
537
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
558
538
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
559
539
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
560
|
-
<auro-dropdown onDark
|
|
540
|
+
<auro-dropdown onDark layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
|
|
561
541
|
<div style="padding: var(--ds-size-150);">
|
|
562
542
|
Lorem ipsum solar
|
|
563
543
|
<br />
|
|
@@ -578,147 +558,6 @@ Adds the error state UI to the trigger.
|
|
|
578
558
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
579
559
|
</auro-accordion>
|
|
580
560
|
|
|
581
|
-
#### fluid
|
|
582
|
-
|
|
583
|
-
The `fluid` property makes the trigger to have the full width.
|
|
584
|
-
|
|
585
|
-
<div class="exampleWrapper">
|
|
586
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fluid.html) -->
|
|
587
|
-
<!-- The below content is automatically added from ./../apiExamples/fluid.html -->
|
|
588
|
-
<auro-dropdown aria-label="custom label" fluid>
|
|
589
|
-
Lorem ipsum solar
|
|
590
|
-
<div slot="trigger">
|
|
591
|
-
<auro-input
|
|
592
|
-
borderless
|
|
593
|
-
slot="trigger"
|
|
594
|
-
id="inputExampleTrigger">
|
|
595
|
-
</auro-input>
|
|
596
|
-
</div>
|
|
597
|
-
</auro-dropdown>
|
|
598
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
599
|
-
</div>
|
|
600
|
-
<auro-accordion alignRight>
|
|
601
|
-
<span slot="trigger">See code</span>
|
|
602
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fluid.html) -->
|
|
603
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/fluid.html -->
|
|
604
|
-
|
|
605
|
-
```html
|
|
606
|
-
<auro-dropdown aria-label="custom label" fluid>
|
|
607
|
-
Lorem ipsum solar
|
|
608
|
-
<div slot="trigger">
|
|
609
|
-
<auro-input
|
|
610
|
-
borderless
|
|
611
|
-
slot="trigger"
|
|
612
|
-
id="inputExampleTrigger">
|
|
613
|
-
</auro-input>
|
|
614
|
-
</div>
|
|
615
|
-
</auro-dropdown>
|
|
616
|
-
```
|
|
617
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
618
|
-
</auro-accordion>
|
|
619
|
-
|
|
620
|
-
#### inset
|
|
621
|
-
|
|
622
|
-
The `inset` property applies a predefined amount of CSS `padding` to the `trigger` slot content. Use this property to apply borderless style.
|
|
623
|
-
|
|
624
|
-
<div class="exampleWrapper">
|
|
625
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inset.html) -->
|
|
626
|
-
<!-- The below content is automatically added from ./../apiExamples/inset.html -->
|
|
627
|
-
<auro-dropdown aria-label="custom label" inset>
|
|
628
|
-
Lorem ipsum solar
|
|
629
|
-
<div slot="trigger">
|
|
630
|
-
Trigger
|
|
631
|
-
</div>
|
|
632
|
-
</auro-dropdown>
|
|
633
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
634
|
-
</div>
|
|
635
|
-
<auro-accordion alignRight>
|
|
636
|
-
<span slot="trigger">See code</span>
|
|
637
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inset.html) -->
|
|
638
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/inset.html -->
|
|
639
|
-
|
|
640
|
-
```html
|
|
641
|
-
<auro-dropdown aria-label="custom label" inset>
|
|
642
|
-
Lorem ipsum solar
|
|
643
|
-
<div slot="trigger">
|
|
644
|
-
Trigger
|
|
645
|
-
</div>
|
|
646
|
-
</auro-dropdown>
|
|
647
|
-
```
|
|
648
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
649
|
-
</auro-accordion>
|
|
650
|
-
<div class="exampleWrapper">
|
|
651
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/insetBordered.html) -->
|
|
652
|
-
<!-- The below content is automatically added from ./../apiExamples/insetBordered.html -->
|
|
653
|
-
<auro-dropdown
|
|
654
|
-
aria-label="custom label"
|
|
655
|
-
inset
|
|
656
|
-
rounded
|
|
657
|
-
bordered>
|
|
658
|
-
Lorem ipsum solar
|
|
659
|
-
<div slot="trigger">
|
|
660
|
-
Trigger
|
|
661
|
-
</div>
|
|
662
|
-
</auro-dropdown>
|
|
663
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
664
|
-
</div>
|
|
665
|
-
<auro-accordion alignRight>
|
|
666
|
-
<span slot="trigger">See code</span>
|
|
667
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/insetBordered.html) -->
|
|
668
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/insetBordered.html -->
|
|
669
|
-
|
|
670
|
-
```html
|
|
671
|
-
<auro-dropdown
|
|
672
|
-
aria-label="custom label"
|
|
673
|
-
inset
|
|
674
|
-
rounded
|
|
675
|
-
bordered>
|
|
676
|
-
Lorem ipsum solar
|
|
677
|
-
<div slot="trigger">
|
|
678
|
-
Trigger
|
|
679
|
-
</div>
|
|
680
|
-
</auro-dropdown>
|
|
681
|
-
```
|
|
682
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
683
|
-
</auro-accordion>
|
|
684
|
-
|
|
685
|
-
#### rounded
|
|
686
|
-
|
|
687
|
-
The `rounded` property applies `border-radius` CSS to the trigger and default slot content.
|
|
688
|
-
|
|
689
|
-
<div class="exampleWrapper">
|
|
690
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/rounded.html) -->
|
|
691
|
-
<!-- The below content is automatically added from ./../apiExamples/rounded.html -->
|
|
692
|
-
<auro-dropdown
|
|
693
|
-
aria-label="custom label"
|
|
694
|
-
rounded
|
|
695
|
-
bordered>
|
|
696
|
-
Lorem ipsum solar
|
|
697
|
-
<div slot="trigger">
|
|
698
|
-
Trigger
|
|
699
|
-
</div>
|
|
700
|
-
</auro-dropdown>
|
|
701
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
702
|
-
</div>
|
|
703
|
-
<auro-accordion alignRight>
|
|
704
|
-
<span slot="trigger">See code</span>
|
|
705
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/rounded.html) -->
|
|
706
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/rounded.html -->
|
|
707
|
-
|
|
708
|
-
```html
|
|
709
|
-
<auro-dropdown
|
|
710
|
-
aria-label="custom label"
|
|
711
|
-
rounded
|
|
712
|
-
bordered>
|
|
713
|
-
Lorem ipsum solar
|
|
714
|
-
<div slot="trigger">
|
|
715
|
-
Trigger
|
|
716
|
-
</div>
|
|
717
|
-
</auro-dropdown>
|
|
718
|
-
```
|
|
719
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
720
|
-
</auro-accordion>
|
|
721
|
-
|
|
722
561
|
#### noToggle
|
|
723
562
|
|
|
724
563
|
In cases where it is desired behavior for `auro-dropdown` to only show, not toggle, the bib content when activating the trigger the `noToggle` attribute must be applied.
|
|
@@ -764,7 +603,7 @@ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will swit
|
|
|
764
603
|
}
|
|
765
604
|
</style>
|
|
766
605
|
<div style="width: 300px;" aria-label="custom label">
|
|
767
|
-
<auro-dropdown id="customDropdown300"
|
|
606
|
+
<auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
|
|
768
607
|
<div>
|
|
769
608
|
<p>
|
|
770
609
|
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.
|
|
@@ -796,7 +635,7 @@ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will swit
|
|
|
796
635
|
}
|
|
797
636
|
</style>
|
|
798
637
|
<div style="width: 300px;" aria-label="custom label">
|
|
799
|
-
<auro-dropdown id="customDropdown300"
|
|
638
|
+
<auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
|
|
800
639
|
<div>
|
|
801
640
|
<p>
|
|
802
641
|
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.
|
|
@@ -835,7 +674,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
835
674
|
}
|
|
836
675
|
</style>
|
|
837
676
|
<div aria-label="custom label">
|
|
838
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
677
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20" noFlip>
|
|
839
678
|
<div>
|
|
840
679
|
<p>
|
|
841
680
|
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.
|
|
@@ -848,12 +687,13 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
848
687
|
</p>
|
|
849
688
|
</div>
|
|
850
689
|
<div slot="trigger">
|
|
851
|
-
Trigger
|
|
690
|
+
Trigger
|
|
852
691
|
</div>
|
|
692
|
+
<span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
|
|
853
693
|
</auro-dropdown>
|
|
854
694
|
</div>
|
|
855
695
|
<div aria-label="custom label">
|
|
856
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
696
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20">
|
|
857
697
|
<div>
|
|
858
698
|
<p>
|
|
859
699
|
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.
|
|
@@ -866,12 +706,15 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
866
706
|
</p>
|
|
867
707
|
</div>
|
|
868
708
|
<div slot="trigger">
|
|
709
|
+
Trigger
|
|
710
|
+
</div>
|
|
711
|
+
<div slot="helpText">
|
|
869
712
|
Trigger for bottom-end bib with 20px offset and flip
|
|
870
713
|
</div>
|
|
871
714
|
</auro-dropdown>
|
|
872
715
|
</div>
|
|
873
716
|
<div aria-label="custom label">
|
|
874
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
717
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron autoPlacement noFlip placement="right" offset="20">
|
|
875
718
|
<div>
|
|
876
719
|
<p>
|
|
877
720
|
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.
|
|
@@ -884,6 +727,9 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
884
727
|
</p>
|
|
885
728
|
</div>
|
|
886
729
|
<div slot="trigger">
|
|
730
|
+
Trigger
|
|
731
|
+
</div>
|
|
732
|
+
<div slot="helpText">
|
|
887
733
|
Trigger for right bib with 20px offset, autoPlacement and noFlip
|
|
888
734
|
</div>
|
|
889
735
|
</auro-dropdown>
|
|
@@ -903,7 +749,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
903
749
|
}
|
|
904
750
|
</style>
|
|
905
751
|
<div aria-label="custom label">
|
|
906
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
752
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20" noFlip>
|
|
907
753
|
<div>
|
|
908
754
|
<p>
|
|
909
755
|
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.
|
|
@@ -916,12 +762,13 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
916
762
|
</p>
|
|
917
763
|
</div>
|
|
918
764
|
<div slot="trigger">
|
|
919
|
-
Trigger
|
|
765
|
+
Trigger
|
|
920
766
|
</div>
|
|
767
|
+
<span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
|
|
921
768
|
</auro-dropdown>
|
|
922
769
|
</div>
|
|
923
770
|
<div aria-label="custom label">
|
|
924
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
771
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20">
|
|
925
772
|
<div>
|
|
926
773
|
<p>
|
|
927
774
|
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.
|
|
@@ -934,12 +781,15 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
934
781
|
</p>
|
|
935
782
|
</div>
|
|
936
783
|
<div slot="trigger">
|
|
784
|
+
Trigger
|
|
785
|
+
</div>
|
|
786
|
+
<div slot="helpText">
|
|
937
787
|
Trigger for bottom-end bib with 20px offset and flip
|
|
938
788
|
</div>
|
|
939
789
|
</auro-dropdown>
|
|
940
790
|
</div>
|
|
941
791
|
<div aria-label="custom label">
|
|
942
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
792
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron autoPlacement noFlip placement="right" offset="20">
|
|
943
793
|
<div>
|
|
944
794
|
<p>
|
|
945
795
|
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.
|
|
@@ -952,6 +802,9 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
952
802
|
</p>
|
|
953
803
|
</div>
|
|
954
804
|
<div slot="trigger">
|
|
805
|
+
Trigger
|
|
806
|
+
</div>
|
|
807
|
+
<div slot="helpText">
|
|
955
808
|
Trigger for right bib with 20px offset, autoPlacement and noFlip
|
|
956
809
|
</div>
|
|
957
810
|
</auro-dropdown>
|
|
@@ -1021,7 +874,7 @@ Content defined in the `label` slot will be rendered left aligned inside the tri
|
|
|
1021
874
|
|
|
1022
875
|
#### helpText
|
|
1023
876
|
|
|
1024
|
-
Content defined in the `helpText` slot will be rendered left aligned below the trigger.
|
|
877
|
+
Content defined in the `helpText` slot will be rendered left aligned below the trigger. This slot requires the `auro-helptext` component be used as slot content for the helptext to render with the same styles as other form elements.
|
|
1025
878
|
|
|
1026
879
|
<div class="exampleWrapper">
|
|
1027
880
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
|
|
@@ -1123,7 +976,7 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
1123
976
|
<auro-input id="showExampleTriggerInput" required>
|
|
1124
977
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
1125
978
|
</auro-input>
|
|
1126
|
-
<auro-dropdown id="showMethodExample" aria-label="custom label"
|
|
979
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1127
980
|
<p>
|
|
1128
981
|
Lorem ipsum solar
|
|
1129
982
|
</p>
|
|
@@ -1140,7 +993,7 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
1140
993
|
<auro-input id="showExampleTriggerInput" required>
|
|
1141
994
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
1142
995
|
</auro-input>
|
|
1143
|
-
<auro-dropdown id="showMethodExample" aria-label="custom label"
|
|
996
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1144
997
|
<p>
|
|
1145
998
|
Lorem ipsum solar
|
|
1146
999
|
</p>
|
|
@@ -1175,7 +1028,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1175
1028
|
<div class="exampleWrapper">
|
|
1176
1029
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticallyHide.html) -->
|
|
1177
1030
|
<!-- The below content is automatically added from ./../apiExamples/programmaticallyHide.html -->
|
|
1178
|
-
<auro-dropdown id="hideExample" aria-label="custom label"
|
|
1031
|
+
<auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1179
1032
|
<p>
|
|
1180
1033
|
Lorem ipsum solar
|
|
1181
1034
|
</p>
|
|
@@ -1195,7 +1048,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1195
1048
|
<!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyHide.html -->
|
|
1196
1049
|
|
|
1197
1050
|
```html
|
|
1198
|
-
<auro-dropdown id="hideExample" aria-label="custom label"
|
|
1051
|
+
<auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1199
1052
|
<p>
|
|
1200
1053
|
Lorem ipsum solar
|
|
1201
1054
|
</p>
|
|
@@ -1236,7 +1089,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1236
1089
|
}
|
|
1237
1090
|
</style>
|
|
1238
1091
|
<div style="width: 100px;" aria-label="custom label">
|
|
1239
|
-
<auro-dropdown id="customDropdown100"
|
|
1092
|
+
<auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
|
|
1240
1093
|
<div>
|
|
1241
1094
|
<p>
|
|
1242
1095
|
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.
|
|
@@ -1268,7 +1121,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1268
1121
|
}
|
|
1269
1122
|
</style>
|
|
1270
1123
|
<div style="width: 100px;" aria-label="custom label">
|
|
1271
|
-
<auro-dropdown id="customDropdown100"
|
|
1124
|
+
<auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
|
|
1272
1125
|
<div>
|
|
1273
1126
|
<p>
|
|
1274
1127
|
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.
|
|
@@ -1289,52 +1142,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1289
1142
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1290
1143
|
</auro-accordion>
|
|
1291
1144
|
|
|
1292
|
-
####
|
|
1293
|
-
|
|
1294
|
-
`auro-dropdown` trigger component will be truncated if the text is too long than its container width.
|
|
1295
|
-
|
|
1296
|
-
<div class="exampleWrapper">
|
|
1297
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/truncatedText.html) -->
|
|
1298
|
-
<!-- The below content is automatically added from ./../apiExamples/truncatedText.html -->
|
|
1299
|
-
<div style="width: 250px;">
|
|
1300
|
-
<auro-dropdown common aria-label="Label content for screen reader">
|
|
1301
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
1302
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1303
|
-
</div>
|
|
1304
|
-
<span slot="helpText">
|
|
1305
|
-
Help text
|
|
1306
|
-
</span>
|
|
1307
|
-
<div slot="trigger">
|
|
1308
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1309
|
-
</div>
|
|
1310
|
-
</auro-dropdown>
|
|
1311
|
-
</div>
|
|
1312
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1313
|
-
</div>
|
|
1314
|
-
<auro-accordion alignRight>
|
|
1315
|
-
<span slot="trigger">See code</span>
|
|
1316
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/truncatedText.html) -->
|
|
1317
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/truncatedText.html -->
|
|
1318
|
-
|
|
1319
|
-
```html
|
|
1320
|
-
<div style="width: 250px;">
|
|
1321
|
-
<auro-dropdown common aria-label="Label content for screen reader">
|
|
1322
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
1323
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1324
|
-
</div>
|
|
1325
|
-
<span slot="helpText">
|
|
1326
|
-
Help text
|
|
1327
|
-
</span>
|
|
1328
|
-
<div slot="trigger">
|
|
1329
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1330
|
-
</div>
|
|
1331
|
-
</auro-dropdown>
|
|
1332
|
-
</div>
|
|
1333
|
-
```
|
|
1334
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1335
|
-
</auro-accordion>
|
|
1336
|
-
|
|
1337
|
-
#### in Dialog
|
|
1145
|
+
#### In Auro Dialog
|
|
1338
1146
|
|
|
1339
1147
|
The component can be in a dialog.
|
|
1340
1148
|
|