@aurodesignsystem-dev/auro-formkit 0.0.0-pr741.0 → 0.0.0-pr750.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/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.min.js +11 -11
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.min.js +11 -11
- package/components/checkbox/demo/readme.html +16 -9
- package/components/checkbox/dist/index.js +11 -11
- package/components/checkbox/dist/registered.js +11 -11
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +12 -6
- package/components/combobox/demo/api.min.js +411 -103
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.min.js +411 -103
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/dist/index.js +374 -91
- package/components/combobox/dist/registered.js +374 -91
- package/components/counter/demo/api.html +16 -10
- package/components/counter/demo/api.md +140 -7
- package/components/counter/demo/api.min.js +1145 -987
- package/components/counter/demo/index.html +16 -10
- package/components/counter/demo/index.md +82 -0
- package/components/counter/demo/index.min.js +1145 -987
- package/components/counter/demo/readme.html +16 -9
- package/components/counter/dist/auro-counter-group.d.ts +64 -23
- package/components/counter/dist/auro-counter.d.ts +10 -0
- package/components/counter/dist/index.js +1145 -987
- package/components/counter/dist/registered.js +1145 -987
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.min.js +374 -91
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.min.js +374 -91
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
- package/components/datepicker/dist/index.js +374 -91
- package/components/datepicker/dist/registered.js +374 -91
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +77 -267
- package/components/dropdown/demo/api.min.js +331 -64
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +45 -363
- package/components/dropdown/demo/index.min.js +331 -64
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +35 -67
- package/components/dropdown/dist/index.js +331 -64
- package/components/dropdown/dist/registered.js +331 -64
- package/components/form/demo/api.html +16 -9
- package/components/form/demo/autocomplete.html +19 -3
- package/components/form/demo/index.html +16 -9
- package/components/form/demo/readme.html +16 -9
- package/components/form/demo/working.html +19 -13
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +14 -14
- package/components/input/demo/index.html +16 -10
- package/components/input/demo/index.min.js +14 -14
- package/components/input/demo/readme.html +16 -9
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +14 -14
- package/components/input/dist/registered.js +14 -14
- package/components/menu/demo/api.html +16 -32
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +37 -12
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +37 -12
- package/components/menu/demo/readme.html +16 -9
- package/components/menu/dist/auro-menu.d.ts +13 -2
- package/components/menu/dist/index.js +37 -12
- package/components/menu/dist/registered.js +37 -12
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/api.md +0 -1
- package/components/radio/demo/api.min.js +61 -76
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +61 -76
- package/components/radio/demo/readme.html +16 -9
- package/components/radio/dist/auro-radio.d.ts +8 -11
- package/components/radio/dist/index.js +61 -76
- package/components/radio/dist/registered.js +61 -76
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +53 -51
- package/components/select/demo/api.min.js +491 -326
- package/components/select/demo/index.html +16 -11
- package/components/select/demo/index.md +6 -158
- package/components/select/demo/index.min.js +491 -314
- package/components/select/demo/readme.html +16 -9
- package/components/select/dist/auro-select.d.ts +33 -8
- package/components/select/dist/index.js +454 -302
- package/components/select/dist/registered.js +454 -302
- package/package.json +26 -25
|
@@ -3,52 +3,42 @@
|
|
|
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
|
-
| [rounded](#rounded) | `rounded` | | ` Boolean ` | | If declared, will apply border-radius to trigger and default slots. |
|
|
43
|
-
| [shape](#shape) | | | `string` | "classic" | |
|
|
44
|
-
| [simple](#simple) | `simple` | | `boolean` | | If declared, applies a border around the trigger slot. |
|
|
45
|
-
| [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" | |
|
|
46
35
|
|
|
47
36
|
## Methods
|
|
48
37
|
|
|
49
38
|
| Method | Type | Description |
|
|
50
39
|
|------------------|------------|--------------------------------------------------|
|
|
51
40
|
| [exposeCssParts](#exposeCssParts) | `(): void` | Exposes CSS parts for styling from parent components. |
|
|
41
|
+
| [focus](#focus) | `(): void` | When bib is open, focus on the first element inside of bib.<br />If not, trigger element will get focus. |
|
|
52
42
|
| [hide](#hide) | `(): void` | Public method to hide the dropdown. |
|
|
53
43
|
| [show](#show) | `(): void` | Public method to show the dropdown. |
|
|
54
44
|
|
|
@@ -56,7 +46,7 @@
|
|
|
56
46
|
|
|
57
47
|
| Event | Type | Description |
|
|
58
48
|
|-----------------------------|--------------------------------------|--------------------------------------------------|
|
|
59
|
-
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` |
|
|
49
|
+
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | |
|
|
60
50
|
| `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
|
|
61
51
|
| `auroDropdown-triggerClick` | | Notifies that the trigger has been clicked. |
|
|
62
52
|
|
|
@@ -66,7 +56,6 @@
|
|
|
66
56
|
|------------|---------------------------------------|
|
|
67
57
|
| | Default slot for the popover content. |
|
|
68
58
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
69
|
-
| [label](#label) | Defines the content of the label. |
|
|
70
59
|
| [trigger](#trigger) | Defines the content of the trigger. |
|
|
71
60
|
|
|
72
61
|
## CSS Shadow Parts
|
|
@@ -83,7 +72,9 @@
|
|
|
83
72
|
|
|
84
73
|
### Basic
|
|
85
74
|
|
|
86
|
-
The most basic, simple version of `auro-dropdown`.
|
|
75
|
+
The most basic, simple version of `auro-dropdown`.
|
|
76
|
+
|
|
77
|
+
#### Text content in trigger
|
|
87
78
|
|
|
88
79
|
<div class="exampleWrapper">
|
|
89
80
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
@@ -131,6 +122,9 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
131
122
|
</auro-dropdown>
|
|
132
123
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
133
124
|
</auro-accordion>
|
|
125
|
+
|
|
126
|
+
#### Icon content in trigger
|
|
127
|
+
|
|
134
128
|
<div class="exampleWrapper">
|
|
135
129
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicIcon.html) -->
|
|
136
130
|
<!-- The below content is automatically added from ./../apiExamples/basicIcon.html -->
|
|
@@ -167,9 +161,7 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
167
161
|
<auro-dropdown aria-label="custom label">
|
|
168
162
|
Lorem ipsum solar
|
|
169
163
|
<div slot="trigger">
|
|
170
|
-
<auro-button
|
|
171
|
-
slot="trigger"
|
|
172
|
-
fluid>
|
|
164
|
+
<auro-button slot="trigger">
|
|
173
165
|
Dropdown
|
|
174
166
|
</auro-button>
|
|
175
167
|
</div>
|
|
@@ -185,9 +177,7 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
185
177
|
<auro-dropdown aria-label="custom label">
|
|
186
178
|
Lorem ipsum solar
|
|
187
179
|
<div slot="trigger">
|
|
188
|
-
<auro-button
|
|
189
|
-
slot="trigger"
|
|
190
|
-
fluid>
|
|
180
|
+
<auro-button slot="trigger">
|
|
191
181
|
Dropdown
|
|
192
182
|
</auro-button>
|
|
193
183
|
</div>
|
|
@@ -216,7 +206,7 @@ Adds the border style around the dropdown trigger.
|
|
|
216
206
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
217
207
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
|
|
218
208
|
<!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
|
|
219
|
-
<auro-dropdown onDark aria-label="custom label"
|
|
209
|
+
<auro-dropdown onDark aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
220
210
|
Lorem ipsum solar
|
|
221
211
|
<div slot="trigger">
|
|
222
212
|
Trigger
|
|
@@ -240,7 +230,7 @@ Adds the border style around the dropdown trigger.
|
|
|
240
230
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
241
231
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
|
|
242
232
|
<!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
|
|
243
|
-
<auro-dropdown onDark aria-label="custom label"
|
|
233
|
+
<auro-dropdown onDark aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
244
234
|
Lorem ipsum solar
|
|
245
235
|
<div slot="trigger">
|
|
246
236
|
Trigger
|
|
@@ -315,9 +305,7 @@ Adds the bib visibility state chevron to the right side of the trigger content.
|
|
|
315
305
|
<auro-dropdown aria-label="custom label" chevron>
|
|
316
306
|
Lorem ipsum solar
|
|
317
307
|
<div slot="trigger">
|
|
318
|
-
<auro-button
|
|
319
|
-
slot="trigger"
|
|
320
|
-
fluid>
|
|
308
|
+
<auro-button slot="trigger">
|
|
321
309
|
Dropdown
|
|
322
310
|
</auro-button>
|
|
323
311
|
</div>
|
|
@@ -333,9 +321,7 @@ Adds the bib visibility state chevron to the right side of the trigger content.
|
|
|
333
321
|
<auro-dropdown aria-label="custom label" chevron>
|
|
334
322
|
Lorem ipsum solar
|
|
335
323
|
<div slot="trigger">
|
|
336
|
-
<auro-button
|
|
337
|
-
slot="trigger"
|
|
338
|
-
fluid>
|
|
324
|
+
<auro-button slot="trigger">
|
|
339
325
|
Dropdown
|
|
340
326
|
</auro-button>
|
|
341
327
|
</div>
|
|
@@ -411,9 +397,7 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
411
397
|
disabled
|
|
412
398
|
onDark
|
|
413
399
|
chevron
|
|
414
|
-
|
|
415
|
-
inset
|
|
416
|
-
bordered>
|
|
400
|
+
layout="classic" shape="classic" size="lg">
|
|
417
401
|
Lorem ipsum solar
|
|
418
402
|
<div slot="trigger">
|
|
419
403
|
Trigger
|
|
@@ -460,9 +444,7 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
460
444
|
disabled
|
|
461
445
|
onDark
|
|
462
446
|
chevron
|
|
463
|
-
|
|
464
|
-
inset
|
|
465
|
-
bordered>
|
|
447
|
+
layout="classic" shape="classic" size="lg">
|
|
466
448
|
Lorem ipsum solar
|
|
467
449
|
<div slot="trigger">
|
|
468
450
|
Trigger
|
|
@@ -507,7 +489,7 @@ Adds the error state UI to the trigger.
|
|
|
507
489
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
508
490
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
509
491
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
510
|
-
<auro-dropdown onDark
|
|
492
|
+
<auro-dropdown onDark layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
|
|
511
493
|
<div style="padding: var(--ds-size-150);">
|
|
512
494
|
Lorem ipsum solar
|
|
513
495
|
<br />
|
|
@@ -555,7 +537,7 @@ Adds the error state UI to the trigger.
|
|
|
555
537
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
556
538
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
557
539
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
558
|
-
<auro-dropdown onDark
|
|
540
|
+
<auro-dropdown onDark layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
|
|
559
541
|
<div style="padding: var(--ds-size-150);">
|
|
560
542
|
Lorem ipsum solar
|
|
561
543
|
<br />
|
|
@@ -576,147 +558,6 @@ Adds the error state UI to the trigger.
|
|
|
576
558
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
577
559
|
</auro-accordion>
|
|
578
560
|
|
|
579
|
-
#### fluid
|
|
580
|
-
|
|
581
|
-
The `fluid` property makes the trigger to have the full width.
|
|
582
|
-
|
|
583
|
-
<div class="exampleWrapper">
|
|
584
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fluid.html) -->
|
|
585
|
-
<!-- The below content is automatically added from ./../apiExamples/fluid.html -->
|
|
586
|
-
<auro-dropdown aria-label="custom label" fluid>
|
|
587
|
-
Lorem ipsum solar
|
|
588
|
-
<div slot="trigger">
|
|
589
|
-
<auro-input
|
|
590
|
-
borderless
|
|
591
|
-
slot="trigger"
|
|
592
|
-
id="inputExampleTrigger">
|
|
593
|
-
</auro-input>
|
|
594
|
-
</div>
|
|
595
|
-
</auro-dropdown>
|
|
596
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
597
|
-
</div>
|
|
598
|
-
<auro-accordion alignRight>
|
|
599
|
-
<span slot="trigger">See code</span>
|
|
600
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fluid.html) -->
|
|
601
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/fluid.html -->
|
|
602
|
-
|
|
603
|
-
```html
|
|
604
|
-
<auro-dropdown aria-label="custom label" fluid>
|
|
605
|
-
Lorem ipsum solar
|
|
606
|
-
<div slot="trigger">
|
|
607
|
-
<auro-input
|
|
608
|
-
borderless
|
|
609
|
-
slot="trigger"
|
|
610
|
-
id="inputExampleTrigger">
|
|
611
|
-
</auro-input>
|
|
612
|
-
</div>
|
|
613
|
-
</auro-dropdown>
|
|
614
|
-
```
|
|
615
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
616
|
-
</auro-accordion>
|
|
617
|
-
|
|
618
|
-
#### inset
|
|
619
|
-
|
|
620
|
-
The `inset` property applies a predefined amount of CSS `padding` to the `trigger` slot content. Use this property to apply borderless style.
|
|
621
|
-
|
|
622
|
-
<div class="exampleWrapper">
|
|
623
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inset.html) -->
|
|
624
|
-
<!-- The below content is automatically added from ./../apiExamples/inset.html -->
|
|
625
|
-
<auro-dropdown aria-label="custom label" inset>
|
|
626
|
-
Lorem ipsum solar
|
|
627
|
-
<div slot="trigger">
|
|
628
|
-
Trigger
|
|
629
|
-
</div>
|
|
630
|
-
</auro-dropdown>
|
|
631
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
632
|
-
</div>
|
|
633
|
-
<auro-accordion alignRight>
|
|
634
|
-
<span slot="trigger">See code</span>
|
|
635
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inset.html) -->
|
|
636
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/inset.html -->
|
|
637
|
-
|
|
638
|
-
```html
|
|
639
|
-
<auro-dropdown aria-label="custom label" inset>
|
|
640
|
-
Lorem ipsum solar
|
|
641
|
-
<div slot="trigger">
|
|
642
|
-
Trigger
|
|
643
|
-
</div>
|
|
644
|
-
</auro-dropdown>
|
|
645
|
-
```
|
|
646
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
647
|
-
</auro-accordion>
|
|
648
|
-
<div class="exampleWrapper">
|
|
649
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/insetBordered.html) -->
|
|
650
|
-
<!-- The below content is automatically added from ./../apiExamples/insetBordered.html -->
|
|
651
|
-
<auro-dropdown
|
|
652
|
-
aria-label="custom label"
|
|
653
|
-
inset
|
|
654
|
-
rounded
|
|
655
|
-
bordered>
|
|
656
|
-
Lorem ipsum solar
|
|
657
|
-
<div slot="trigger">
|
|
658
|
-
Trigger
|
|
659
|
-
</div>
|
|
660
|
-
</auro-dropdown>
|
|
661
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
662
|
-
</div>
|
|
663
|
-
<auro-accordion alignRight>
|
|
664
|
-
<span slot="trigger">See code</span>
|
|
665
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/insetBordered.html) -->
|
|
666
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/insetBordered.html -->
|
|
667
|
-
|
|
668
|
-
```html
|
|
669
|
-
<auro-dropdown
|
|
670
|
-
aria-label="custom label"
|
|
671
|
-
inset
|
|
672
|
-
rounded
|
|
673
|
-
bordered>
|
|
674
|
-
Lorem ipsum solar
|
|
675
|
-
<div slot="trigger">
|
|
676
|
-
Trigger
|
|
677
|
-
</div>
|
|
678
|
-
</auro-dropdown>
|
|
679
|
-
```
|
|
680
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
681
|
-
</auro-accordion>
|
|
682
|
-
|
|
683
|
-
#### rounded
|
|
684
|
-
|
|
685
|
-
The `rounded` property applies `border-radius` CSS to the trigger and default slot content.
|
|
686
|
-
|
|
687
|
-
<div class="exampleWrapper">
|
|
688
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/rounded.html) -->
|
|
689
|
-
<!-- The below content is automatically added from ./../apiExamples/rounded.html -->
|
|
690
|
-
<auro-dropdown
|
|
691
|
-
aria-label="custom label"
|
|
692
|
-
rounded
|
|
693
|
-
bordered>
|
|
694
|
-
Lorem ipsum solar
|
|
695
|
-
<div slot="trigger">
|
|
696
|
-
Trigger
|
|
697
|
-
</div>
|
|
698
|
-
</auro-dropdown>
|
|
699
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
700
|
-
</div>
|
|
701
|
-
<auro-accordion alignRight>
|
|
702
|
-
<span slot="trigger">See code</span>
|
|
703
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/rounded.html) -->
|
|
704
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/rounded.html -->
|
|
705
|
-
|
|
706
|
-
```html
|
|
707
|
-
<auro-dropdown
|
|
708
|
-
aria-label="custom label"
|
|
709
|
-
rounded
|
|
710
|
-
bordered>
|
|
711
|
-
Lorem ipsum solar
|
|
712
|
-
<div slot="trigger">
|
|
713
|
-
Trigger
|
|
714
|
-
</div>
|
|
715
|
-
</auro-dropdown>
|
|
716
|
-
```
|
|
717
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
718
|
-
</auro-accordion>
|
|
719
|
-
|
|
720
561
|
#### noToggle
|
|
721
562
|
|
|
722
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.
|
|
@@ -762,7 +603,7 @@ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will swit
|
|
|
762
603
|
}
|
|
763
604
|
</style>
|
|
764
605
|
<div style="width: 300px;" aria-label="custom label">
|
|
765
|
-
<auro-dropdown id="customDropdown300"
|
|
606
|
+
<auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
|
|
766
607
|
<div>
|
|
767
608
|
<p>
|
|
768
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.
|
|
@@ -794,7 +635,7 @@ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will swit
|
|
|
794
635
|
}
|
|
795
636
|
</style>
|
|
796
637
|
<div style="width: 300px;" aria-label="custom label">
|
|
797
|
-
<auro-dropdown id="customDropdown300"
|
|
638
|
+
<auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
|
|
798
639
|
<div>
|
|
799
640
|
<p>
|
|
800
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.
|
|
@@ -833,7 +674,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
833
674
|
}
|
|
834
675
|
</style>
|
|
835
676
|
<div aria-label="custom label">
|
|
836
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
677
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20" noFlip>
|
|
837
678
|
<div>
|
|
838
679
|
<p>
|
|
839
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.
|
|
@@ -846,12 +687,13 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
846
687
|
</p>
|
|
847
688
|
</div>
|
|
848
689
|
<div slot="trigger">
|
|
849
|
-
Trigger
|
|
690
|
+
Trigger
|
|
850
691
|
</div>
|
|
692
|
+
<span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
|
|
851
693
|
</auro-dropdown>
|
|
852
694
|
</div>
|
|
853
695
|
<div aria-label="custom label">
|
|
854
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
696
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20">
|
|
855
697
|
<div>
|
|
856
698
|
<p>
|
|
857
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.
|
|
@@ -864,12 +706,15 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
864
706
|
</p>
|
|
865
707
|
</div>
|
|
866
708
|
<div slot="trigger">
|
|
709
|
+
Trigger
|
|
710
|
+
</div>
|
|
711
|
+
<div slot="helpText">
|
|
867
712
|
Trigger for bottom-end bib with 20px offset and flip
|
|
868
713
|
</div>
|
|
869
714
|
</auro-dropdown>
|
|
870
715
|
</div>
|
|
871
716
|
<div aria-label="custom label">
|
|
872
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
717
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron autoPlacement noFlip placement="right" offset="20">
|
|
873
718
|
<div>
|
|
874
719
|
<p>
|
|
875
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.
|
|
@@ -882,6 +727,9 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
882
727
|
</p>
|
|
883
728
|
</div>
|
|
884
729
|
<div slot="trigger">
|
|
730
|
+
Trigger
|
|
731
|
+
</div>
|
|
732
|
+
<div slot="helpText">
|
|
885
733
|
Trigger for right bib with 20px offset, autoPlacement and noFlip
|
|
886
734
|
</div>
|
|
887
735
|
</auro-dropdown>
|
|
@@ -901,7 +749,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
901
749
|
}
|
|
902
750
|
</style>
|
|
903
751
|
<div aria-label="custom label">
|
|
904
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
752
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20" noFlip>
|
|
905
753
|
<div>
|
|
906
754
|
<p>
|
|
907
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.
|
|
@@ -914,12 +762,13 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
914
762
|
</p>
|
|
915
763
|
</div>
|
|
916
764
|
<div slot="trigger">
|
|
917
|
-
Trigger
|
|
765
|
+
Trigger
|
|
918
766
|
</div>
|
|
767
|
+
<span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
|
|
919
768
|
</auro-dropdown>
|
|
920
769
|
</div>
|
|
921
770
|
<div aria-label="custom label">
|
|
922
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
771
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20">
|
|
923
772
|
<div>
|
|
924
773
|
<p>
|
|
925
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.
|
|
@@ -932,12 +781,15 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
932
781
|
</p>
|
|
933
782
|
</div>
|
|
934
783
|
<div slot="trigger">
|
|
784
|
+
Trigger
|
|
785
|
+
</div>
|
|
786
|
+
<div slot="helpText">
|
|
935
787
|
Trigger for bottom-end bib with 20px offset and flip
|
|
936
788
|
</div>
|
|
937
789
|
</auro-dropdown>
|
|
938
790
|
</div>
|
|
939
791
|
<div aria-label="custom label">
|
|
940
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
792
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron autoPlacement noFlip placement="right" offset="20">
|
|
941
793
|
<div>
|
|
942
794
|
<p>
|
|
943
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.
|
|
@@ -950,6 +802,9 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
950
802
|
</p>
|
|
951
803
|
</div>
|
|
952
804
|
<div slot="trigger">
|
|
805
|
+
Trigger
|
|
806
|
+
</div>
|
|
807
|
+
<div slot="helpText">
|
|
953
808
|
Trigger for right bib with 20px offset, autoPlacement and noFlip
|
|
954
809
|
</div>
|
|
955
810
|
</auro-dropdown>
|
|
@@ -1019,7 +874,7 @@ Content defined in the `label` slot will be rendered left aligned inside the tri
|
|
|
1019
874
|
|
|
1020
875
|
#### helpText
|
|
1021
876
|
|
|
1022
|
-
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.
|
|
1023
878
|
|
|
1024
879
|
<div class="exampleWrapper">
|
|
1025
880
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
|
|
@@ -1121,7 +976,7 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
1121
976
|
<auro-input id="showExampleTriggerInput" required>
|
|
1122
977
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
1123
978
|
</auro-input>
|
|
1124
|
-
<auro-dropdown id="showMethodExample" aria-label="custom label"
|
|
979
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1125
980
|
<p>
|
|
1126
981
|
Lorem ipsum solar
|
|
1127
982
|
</p>
|
|
@@ -1138,7 +993,7 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
1138
993
|
<auro-input id="showExampleTriggerInput" required>
|
|
1139
994
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
1140
995
|
</auro-input>
|
|
1141
|
-
<auro-dropdown id="showMethodExample" aria-label="custom label"
|
|
996
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1142
997
|
<p>
|
|
1143
998
|
Lorem ipsum solar
|
|
1144
999
|
</p>
|
|
@@ -1173,7 +1028,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1173
1028
|
<div class="exampleWrapper">
|
|
1174
1029
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticallyHide.html) -->
|
|
1175
1030
|
<!-- The below content is automatically added from ./../apiExamples/programmaticallyHide.html -->
|
|
1176
|
-
<auro-dropdown id="hideExample" aria-label="custom label"
|
|
1031
|
+
<auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1177
1032
|
<p>
|
|
1178
1033
|
Lorem ipsum solar
|
|
1179
1034
|
</p>
|
|
@@ -1193,7 +1048,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1193
1048
|
<!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyHide.html -->
|
|
1194
1049
|
|
|
1195
1050
|
```html
|
|
1196
|
-
<auro-dropdown id="hideExample" aria-label="custom label"
|
|
1051
|
+
<auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1197
1052
|
<p>
|
|
1198
1053
|
Lorem ipsum solar
|
|
1199
1054
|
</p>
|
|
@@ -1234,7 +1089,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1234
1089
|
}
|
|
1235
1090
|
</style>
|
|
1236
1091
|
<div style="width: 100px;" aria-label="custom label">
|
|
1237
|
-
<auro-dropdown id="customDropdown100"
|
|
1092
|
+
<auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
|
|
1238
1093
|
<div>
|
|
1239
1094
|
<p>
|
|
1240
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.
|
|
@@ -1266,7 +1121,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1266
1121
|
}
|
|
1267
1122
|
</style>
|
|
1268
1123
|
<div style="width: 100px;" aria-label="custom label">
|
|
1269
|
-
<auro-dropdown id="customDropdown100"
|
|
1124
|
+
<auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
|
|
1270
1125
|
<div>
|
|
1271
1126
|
<p>
|
|
1272
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.
|
|
@@ -1287,52 +1142,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1287
1142
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1288
1143
|
</auro-accordion>
|
|
1289
1144
|
|
|
1290
|
-
####
|
|
1291
|
-
|
|
1292
|
-
`auro-dropdown` trigger component will be truncated if the text is too long than its container width.
|
|
1293
|
-
|
|
1294
|
-
<div class="exampleWrapper">
|
|
1295
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/truncatedText.html) -->
|
|
1296
|
-
<!-- The below content is automatically added from ./../apiExamples/truncatedText.html -->
|
|
1297
|
-
<div style="width: 250px;">
|
|
1298
|
-
<auro-dropdown common aria-label="Label content for screen reader">
|
|
1299
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
1300
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1301
|
-
</div>
|
|
1302
|
-
<span slot="helpText">
|
|
1303
|
-
Help text
|
|
1304
|
-
</span>
|
|
1305
|
-
<div slot="trigger">
|
|
1306
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1307
|
-
</div>
|
|
1308
|
-
</auro-dropdown>
|
|
1309
|
-
</div>
|
|
1310
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1311
|
-
</div>
|
|
1312
|
-
<auro-accordion alignRight>
|
|
1313
|
-
<span slot="trigger">See code</span>
|
|
1314
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/truncatedText.html) -->
|
|
1315
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/truncatedText.html -->
|
|
1316
|
-
|
|
1317
|
-
```html
|
|
1318
|
-
<div style="width: 250px;">
|
|
1319
|
-
<auro-dropdown common aria-label="Label content for screen reader">
|
|
1320
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
1321
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1322
|
-
</div>
|
|
1323
|
-
<span slot="helpText">
|
|
1324
|
-
Help text
|
|
1325
|
-
</span>
|
|
1326
|
-
<div slot="trigger">
|
|
1327
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1328
|
-
</div>
|
|
1329
|
-
</auro-dropdown>
|
|
1330
|
-
</div>
|
|
1331
|
-
```
|
|
1332
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1333
|
-
</auro-accordion>
|
|
1334
|
-
|
|
1335
|
-
#### in Dialog
|
|
1145
|
+
#### In Auro Dialog
|
|
1336
1146
|
|
|
1337
1147
|
The component can be in a dialog.
|
|
1338
1148
|
|