@aurodesignsystem-dev/auro-formkit 0.0.0-pr750.1 → 0.0.0-pr753.0
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.html +10 -16
- package/components/combobox/demo/api.md +6 -12
- package/components/combobox/demo/api.min.js +101 -84
- package/components/combobox/demo/index.html +10 -16
- package/components/combobox/demo/index.min.js +101 -84
- package/components/combobox/demo/readme.html +9 -16
- package/components/combobox/dist/index.js +89 -47
- package/components/combobox/dist/registered.js +89 -47
- package/components/counter/demo/api.html +10 -16
- package/components/counter/demo/api.md +7 -140
- package/components/counter/demo/api.min.js +387 -557
- package/components/counter/demo/index.html +10 -16
- package/components/counter/demo/index.md +0 -82
- package/components/counter/demo/index.min.js +387 -557
- package/components/counter/demo/readme.html +9 -16
- package/components/counter/dist/auro-counter-group.d.ts +14 -71
- package/components/counter/dist/auro-counter.d.ts +0 -10
- package/components/counter/dist/index.js +387 -557
- package/components/counter/dist/registered.js +387 -557
- package/components/datepicker/demo/api.html +10 -16
- package/components/datepicker/demo/api.min.js +95 -68
- package/components/datepicker/demo/index.html +10 -16
- package/components/datepicker/demo/index.min.js +95 -68
- package/components/datepicker/demo/readme.html +9 -16
- package/components/datepicker/dist/auro-datepicker.d.ts +0 -6
- package/components/datepicker/dist/index.js +95 -68
- package/components/datepicker/dist/registered.js +95 -68
- package/components/dropdown/demo/api.html +10 -16
- package/components/dropdown/demo/api.md +268 -76
- package/components/dropdown/demo/api.min.js +68 -26
- package/components/dropdown/demo/index.html +10 -16
- package/components/dropdown/demo/index.md +363 -45
- package/components/dropdown/demo/index.min.js +68 -26
- package/components/dropdown/demo/readme.html +9 -16
- package/components/dropdown/dist/auro-dropdown.d.ts +71 -21
- package/components/dropdown/dist/index.js +68 -26
- package/components/dropdown/dist/registered.js +68 -26
- package/components/form/demo/api.html +9 -16
- package/components/form/demo/autocomplete.html +3 -19
- package/components/form/demo/index.html +9 -16
- package/components/form/demo/readme.html +9 -16
- package/components/form/demo/working.html +13 -19
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- package/components/input/demo/api.html +10 -16
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/api.min.js +14 -14
- package/components/input/demo/index.html +10 -16
- package/components/input/demo/index.min.js +14 -14
- package/components/input/demo/readme.html +9 -16
- 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 +32 -16
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/api.min.js +12 -37
- package/components/menu/demo/index.html +10 -16
- package/components/menu/demo/index.min.js +12 -37
- package/components/menu/demo/readme.html +9 -16
- package/components/menu/dist/auro-menu.d.ts +2 -13
- package/components/menu/dist/index.js +12 -37
- package/components/menu/dist/registered.js +12 -37
- package/components/radio/demo/api.html +10 -16
- package/components/radio/demo/api.min.js +10 -10
- package/components/radio/demo/index.html +10 -16
- package/components/radio/demo/index.min.js +10 -10
- package/components/radio/demo/readme.html +9 -16
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +10 -10
- package/components/radio/dist/registered.js +10 -10
- package/components/select/demo/api.html +10 -16
- package/components/select/demo/api.md +16 -19
- package/components/select/demo/api.min.js +295 -136
- package/components/select/demo/index.html +11 -16
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +295 -136
- package/components/select/demo/readme.html +9 -16
- package/components/select/dist/auro-select.d.ts +7 -32
- package/components/select/dist/index.js +283 -99
- package/components/select/dist/registered.js +283 -99
- package/package.json +25 -26
|
@@ -3,35 +3,47 @@
|
|
|
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
|
+
|
|
6
13
|
## Properties
|
|
7
14
|
|
|
8
|
-
| Property | Attribute | Type
|
|
9
|
-
|
|
10
|
-
| `
|
|
11
|
-
|
|
|
12
|
-
| [
|
|
13
|
-
| [
|
|
14
|
-
| [
|
|
15
|
-
| [
|
|
16
|
-
| [
|
|
17
|
-
| [
|
|
18
|
-
| [
|
|
19
|
-
| [
|
|
20
|
-
| [
|
|
21
|
-
| [
|
|
22
|
-
| [
|
|
23
|
-
| [
|
|
24
|
-
| [
|
|
25
|
-
| [
|
|
26
|
-
| [
|
|
27
|
-
| [
|
|
28
|
-
| [
|
|
29
|
-
| [
|
|
30
|
-
| [
|
|
31
|
-
| [
|
|
32
|
-
| [
|
|
33
|
-
| [
|
|
34
|
-
| [
|
|
15
|
+
| Property | Attribute | Modifiers | Type | Default | Description |
|
|
16
|
+
|-------------------------|-------------------------|-----------|--------------------------------------------------|----------------|--------------------------------------------------|
|
|
17
|
+
| `a11yAutocomplete` | | | `string` | | The value for the aria-autocomplete attribute of the trigger element. |
|
|
18
|
+
| `a11yRole` | | | | | The value for the role attribute of the trigger element. |
|
|
19
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
20
|
+
| [chevron](#chevron) | `chevron` | | ` Boolean ` | | If declared, the dropdown displays a chevron on the right. |
|
|
21
|
+
| [common](#common) | `common` | | ` Boolean ` | | If declared, the dropdown will be styled with the common theme. |
|
|
22
|
+
| [commonWrapperClasses](#commonWrapperClasses) | | readonly | `{ trigger: boolean; wrapper: boolean; hasFocus: boolean \| undefined; simple: boolean \| undefined; parentBorder: boolean; }` | | |
|
|
23
|
+
| [disableFocusTrap](#disableFocusTrap) | `disableFocusTrap` | | `boolean` | | If declare, the focus trap inside of bib will be turned off. |
|
|
24
|
+
| [disabled](#disabled) | `disabled` | | ` Boolean ` | | If declared, the dropdown is not interactive. |
|
|
25
|
+
| [error](#error) | `error` | | ` Boolean ` | | If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both. |
|
|
26
|
+
| [errorMessage](#errorMessage) | `errorMessage` | | `string` | "" | Contains the help text message for the current validity error. |
|
|
27
|
+
| [fluid](#fluid) | `fluid` | | `Boolean` | | Makes the trigger to be full width of its parent container. |
|
|
28
|
+
| [focusShow](#focusShow) | `focusShow` | | ` Boolean ` | | If declared, the bib will display when focus is applied to the trigger. |
|
|
29
|
+
| [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. |
|
|
30
|
+
| [hoverToggle](#hoverToggle) | `hoverToggle` | | ` Boolean ` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
|
|
31
|
+
| [inset](#inset) | `inset` | | ` Boolean ` | | If declared, will apply padding around trigger slot content. |
|
|
32
|
+
| [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
|
|
33
|
+
| [isPopoverVisible](#isPopoverVisible) | `isPopoverVisible` | | ` Boolean ` | false | If true, the dropdown bib is displayed. |
|
|
34
|
+
| [layout](#layout) | | | `string` | "classic" | |
|
|
35
|
+
| [matchWidth](#matchWidth) | `matchWidth` | | ` Boolean ` | false | If declared, the popover and trigger will be set to the same width. |
|
|
36
|
+
| [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`. |
|
|
37
|
+
| [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | | ` Boolean ` | false | If declared, the dropdown will not hide when moving focus outside the element. |
|
|
38
|
+
| [noToggle](#noToggle) | `noToggle` | | ` Boolean ` | | If declared, the trigger will only show the dropdown bib. |
|
|
39
|
+
| [offset](#offset) | `offset` | | `number` | "0" | Gap between the trigger element and bib. |
|
|
40
|
+
| [onDark](#onDark) | `onDark` | | `boolean` | | If declared, onDark styles will be applied. |
|
|
41
|
+
| [onSlotChange](#onSlotChange) | `onSlotChange` | | | | |
|
|
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" | |
|
|
35
47
|
|
|
36
48
|
## Methods
|
|
37
49
|
|
|
@@ -46,7 +58,7 @@
|
|
|
46
58
|
|
|
47
59
|
| Event | Type | Description |
|
|
48
60
|
|-----------------------------|--------------------------------------|--------------------------------------------------|
|
|
49
|
-
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` |
|
|
61
|
+
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | Notifies consumers that the unique ID for the dropdown bib has been generated. |
|
|
50
62
|
| `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
|
|
51
63
|
| `auroDropdown-triggerClick` | | Notifies that the trigger has been clicked. |
|
|
52
64
|
|
|
@@ -56,6 +68,7 @@
|
|
|
56
68
|
|------------|---------------------------------------|
|
|
57
69
|
| | Default slot for the popover content. |
|
|
58
70
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
71
|
+
| [label](#label) | Defines the content of the label. |
|
|
59
72
|
| [trigger](#trigger) | Defines the content of the trigger. |
|
|
60
73
|
|
|
61
74
|
## CSS Shadow Parts
|
|
@@ -72,9 +85,7 @@
|
|
|
72
85
|
|
|
73
86
|
### Basic
|
|
74
87
|
|
|
75
|
-
The most basic, simple version of `auro-dropdown`.
|
|
76
|
-
|
|
77
|
-
#### Text content in trigger
|
|
88
|
+
The most basic, simple version of `auro-dropdown`.
|
|
78
89
|
|
|
79
90
|
<div class="exampleWrapper">
|
|
80
91
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
@@ -122,9 +133,6 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
122
133
|
</auro-dropdown>
|
|
123
134
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
124
135
|
</auro-accordion>
|
|
125
|
-
|
|
126
|
-
#### Icon content in trigger
|
|
127
|
-
|
|
128
136
|
<div class="exampleWrapper">
|
|
129
137
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicIcon.html) -->
|
|
130
138
|
<!-- The below content is automatically added from ./../apiExamples/basicIcon.html -->
|
|
@@ -161,7 +169,9 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
161
169
|
<auro-dropdown aria-label="custom label">
|
|
162
170
|
Lorem ipsum solar
|
|
163
171
|
<div slot="trigger">
|
|
164
|
-
<auro-button
|
|
172
|
+
<auro-button
|
|
173
|
+
slot="trigger"
|
|
174
|
+
fluid>
|
|
165
175
|
Dropdown
|
|
166
176
|
</auro-button>
|
|
167
177
|
</div>
|
|
@@ -177,7 +187,9 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
177
187
|
<auro-dropdown aria-label="custom label">
|
|
178
188
|
Lorem ipsum solar
|
|
179
189
|
<div slot="trigger">
|
|
180
|
-
<auro-button
|
|
190
|
+
<auro-button
|
|
191
|
+
slot="trigger"
|
|
192
|
+
fluid>
|
|
181
193
|
Dropdown
|
|
182
194
|
</auro-button>
|
|
183
195
|
</div>
|
|
@@ -206,7 +218,7 @@ Adds the border style around the dropdown trigger.
|
|
|
206
218
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
207
219
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
|
|
208
220
|
<!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
|
|
209
|
-
<auro-dropdown onDark aria-label="custom label"
|
|
221
|
+
<auro-dropdown onDark aria-label="custom label" bordered>
|
|
210
222
|
Lorem ipsum solar
|
|
211
223
|
<div slot="trigger">
|
|
212
224
|
Trigger
|
|
@@ -230,7 +242,7 @@ Adds the border style around the dropdown trigger.
|
|
|
230
242
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
231
243
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
|
|
232
244
|
<!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
|
|
233
|
-
<auro-dropdown onDark aria-label="custom label"
|
|
245
|
+
<auro-dropdown onDark aria-label="custom label" bordered>
|
|
234
246
|
Lorem ipsum solar
|
|
235
247
|
<div slot="trigger">
|
|
236
248
|
Trigger
|
|
@@ -305,7 +317,9 @@ Adds the bib visibility state chevron to the right side of the trigger content.
|
|
|
305
317
|
<auro-dropdown aria-label="custom label" chevron>
|
|
306
318
|
Lorem ipsum solar
|
|
307
319
|
<div slot="trigger">
|
|
308
|
-
<auro-button
|
|
320
|
+
<auro-button
|
|
321
|
+
slot="trigger"
|
|
322
|
+
fluid>
|
|
309
323
|
Dropdown
|
|
310
324
|
</auro-button>
|
|
311
325
|
</div>
|
|
@@ -321,7 +335,9 @@ Adds the bib visibility state chevron to the right side of the trigger content.
|
|
|
321
335
|
<auro-dropdown aria-label="custom label" chevron>
|
|
322
336
|
Lorem ipsum solar
|
|
323
337
|
<div slot="trigger">
|
|
324
|
-
<auro-button
|
|
338
|
+
<auro-button
|
|
339
|
+
slot="trigger"
|
|
340
|
+
fluid>
|
|
325
341
|
Dropdown
|
|
326
342
|
</auro-button>
|
|
327
343
|
</div>
|
|
@@ -397,7 +413,9 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
397
413
|
disabled
|
|
398
414
|
onDark
|
|
399
415
|
chevron
|
|
400
|
-
|
|
416
|
+
rounded
|
|
417
|
+
inset
|
|
418
|
+
bordered>
|
|
401
419
|
Lorem ipsum solar
|
|
402
420
|
<div slot="trigger">
|
|
403
421
|
Trigger
|
|
@@ -444,7 +462,9 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
444
462
|
disabled
|
|
445
463
|
onDark
|
|
446
464
|
chevron
|
|
447
|
-
|
|
465
|
+
rounded
|
|
466
|
+
inset
|
|
467
|
+
bordered>
|
|
448
468
|
Lorem ipsum solar
|
|
449
469
|
<div slot="trigger">
|
|
450
470
|
Trigger
|
|
@@ -489,7 +509,7 @@ Adds the error state UI to the trigger.
|
|
|
489
509
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
490
510
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
491
511
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
492
|
-
<auro-dropdown onDark
|
|
512
|
+
<auro-dropdown onDark common error id="commonSlotErrorOnDark">
|
|
493
513
|
<div style="padding: var(--ds-size-150);">
|
|
494
514
|
Lorem ipsum solar
|
|
495
515
|
<br />
|
|
@@ -537,7 +557,7 @@ Adds the error state UI to the trigger.
|
|
|
537
557
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
538
558
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
539
559
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
540
|
-
<auro-dropdown onDark
|
|
560
|
+
<auro-dropdown onDark common error id="commonSlotErrorOnDark">
|
|
541
561
|
<div style="padding: var(--ds-size-150);">
|
|
542
562
|
Lorem ipsum solar
|
|
543
563
|
<br />
|
|
@@ -558,6 +578,147 @@ Adds the error state UI to the trigger.
|
|
|
558
578
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
559
579
|
</auro-accordion>
|
|
560
580
|
|
|
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
|
+
|
|
561
722
|
#### noToggle
|
|
562
723
|
|
|
563
724
|
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.
|
|
@@ -603,7 +764,7 @@ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will swit
|
|
|
603
764
|
}
|
|
604
765
|
</style>
|
|
605
766
|
<div style="width: 300px;" aria-label="custom label">
|
|
606
|
-
<auro-dropdown id="customDropdown300"
|
|
767
|
+
<auro-dropdown id="customDropdown300" inset bordered rounded chevron fullscreenBreakpoint="sm">
|
|
607
768
|
<div>
|
|
608
769
|
<p>
|
|
609
770
|
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.
|
|
@@ -635,7 +796,7 @@ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will swit
|
|
|
635
796
|
}
|
|
636
797
|
</style>
|
|
637
798
|
<div style="width: 300px;" aria-label="custom label">
|
|
638
|
-
<auro-dropdown id="customDropdown300"
|
|
799
|
+
<auro-dropdown id="customDropdown300" inset bordered rounded chevron fullscreenBreakpoint="sm">
|
|
639
800
|
<div>
|
|
640
801
|
<p>
|
|
641
802
|
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.
|
|
@@ -674,7 +835,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
674
835
|
}
|
|
675
836
|
</style>
|
|
676
837
|
<div aria-label="custom label">
|
|
677
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
838
|
+
<auro-dropdown class="floaterConfigDropdown" inset bordered rounded chevron placement="bottom-end" offset="20" noFlip>
|
|
678
839
|
<div>
|
|
679
840
|
<p>
|
|
680
841
|
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.
|
|
@@ -687,13 +848,12 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
687
848
|
</p>
|
|
688
849
|
</div>
|
|
689
850
|
<div slot="trigger">
|
|
690
|
-
Trigger
|
|
851
|
+
Trigger for bottom-end bib with 20px offset and noFlip
|
|
691
852
|
</div>
|
|
692
|
-
<span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
|
|
693
853
|
</auro-dropdown>
|
|
694
854
|
</div>
|
|
695
855
|
<div aria-label="custom label">
|
|
696
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
856
|
+
<auro-dropdown class="floaterConfigDropdown" inset bordered rounded chevron placement="bottom-end" offset="20">
|
|
697
857
|
<div>
|
|
698
858
|
<p>
|
|
699
859
|
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.
|
|
@@ -706,15 +866,12 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
706
866
|
</p>
|
|
707
867
|
</div>
|
|
708
868
|
<div slot="trigger">
|
|
709
|
-
Trigger
|
|
710
|
-
</div>
|
|
711
|
-
<div slot="helpText">
|
|
712
869
|
Trigger for bottom-end bib with 20px offset and flip
|
|
713
870
|
</div>
|
|
714
871
|
</auro-dropdown>
|
|
715
872
|
</div>
|
|
716
873
|
<div aria-label="custom label">
|
|
717
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
874
|
+
<auro-dropdown class="floaterConfigDropdown" inset bordered rounded chevron autoPlacement noFlip placement="right" offset="20">
|
|
718
875
|
<div>
|
|
719
876
|
<p>
|
|
720
877
|
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.
|
|
@@ -727,9 +884,6 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
727
884
|
</p>
|
|
728
885
|
</div>
|
|
729
886
|
<div slot="trigger">
|
|
730
|
-
Trigger
|
|
731
|
-
</div>
|
|
732
|
-
<div slot="helpText">
|
|
733
887
|
Trigger for right bib with 20px offset, autoPlacement and noFlip
|
|
734
888
|
</div>
|
|
735
889
|
</auro-dropdown>
|
|
@@ -749,7 +903,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
749
903
|
}
|
|
750
904
|
</style>
|
|
751
905
|
<div aria-label="custom label">
|
|
752
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
906
|
+
<auro-dropdown class="floaterConfigDropdown" inset bordered rounded chevron placement="bottom-end" offset="20" noFlip>
|
|
753
907
|
<div>
|
|
754
908
|
<p>
|
|
755
909
|
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.
|
|
@@ -762,13 +916,12 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
762
916
|
</p>
|
|
763
917
|
</div>
|
|
764
918
|
<div slot="trigger">
|
|
765
|
-
Trigger
|
|
919
|
+
Trigger for bottom-end bib with 20px offset and noFlip
|
|
766
920
|
</div>
|
|
767
|
-
<span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
|
|
768
921
|
</auro-dropdown>
|
|
769
922
|
</div>
|
|
770
923
|
<div aria-label="custom label">
|
|
771
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
924
|
+
<auro-dropdown class="floaterConfigDropdown" inset bordered rounded chevron placement="bottom-end" offset="20">
|
|
772
925
|
<div>
|
|
773
926
|
<p>
|
|
774
927
|
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.
|
|
@@ -781,15 +934,12 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
781
934
|
</p>
|
|
782
935
|
</div>
|
|
783
936
|
<div slot="trigger">
|
|
784
|
-
Trigger
|
|
785
|
-
</div>
|
|
786
|
-
<div slot="helpText">
|
|
787
937
|
Trigger for bottom-end bib with 20px offset and flip
|
|
788
938
|
</div>
|
|
789
939
|
</auro-dropdown>
|
|
790
940
|
</div>
|
|
791
941
|
<div aria-label="custom label">
|
|
792
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
942
|
+
<auro-dropdown class="floaterConfigDropdown" inset bordered rounded chevron autoPlacement noFlip placement="right" offset="20">
|
|
793
943
|
<div>
|
|
794
944
|
<p>
|
|
795
945
|
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.
|
|
@@ -802,9 +952,6 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
802
952
|
</p>
|
|
803
953
|
</div>
|
|
804
954
|
<div slot="trigger">
|
|
805
|
-
Trigger
|
|
806
|
-
</div>
|
|
807
|
-
<div slot="helpText">
|
|
808
955
|
Trigger for right bib with 20px offset, autoPlacement and noFlip
|
|
809
956
|
</div>
|
|
810
957
|
</auro-dropdown>
|
|
@@ -874,7 +1021,7 @@ Content defined in the `label` slot will be rendered left aligned inside the tri
|
|
|
874
1021
|
|
|
875
1022
|
#### helpText
|
|
876
1023
|
|
|
877
|
-
Content defined in the `helpText` slot will be rendered left aligned below the trigger.
|
|
1024
|
+
Content defined in the `helpText` slot will be rendered left aligned below the trigger.
|
|
878
1025
|
|
|
879
1026
|
<div class="exampleWrapper">
|
|
880
1027
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
|
|
@@ -976,7 +1123,7 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
976
1123
|
<auro-input id="showExampleTriggerInput" required>
|
|
977
1124
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
978
1125
|
</auro-input>
|
|
979
|
-
<auro-dropdown id="showMethodExample" aria-label="custom label"
|
|
1126
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" fluid rounded bordered inset>
|
|
980
1127
|
<p>
|
|
981
1128
|
Lorem ipsum solar
|
|
982
1129
|
</p>
|
|
@@ -993,7 +1140,7 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
993
1140
|
<auro-input id="showExampleTriggerInput" required>
|
|
994
1141
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
995
1142
|
</auro-input>
|
|
996
|
-
<auro-dropdown id="showMethodExample" aria-label="custom label"
|
|
1143
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" fluid rounded bordered inset>
|
|
997
1144
|
<p>
|
|
998
1145
|
Lorem ipsum solar
|
|
999
1146
|
</p>
|
|
@@ -1028,7 +1175,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1028
1175
|
<div class="exampleWrapper">
|
|
1029
1176
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticallyHide.html) -->
|
|
1030
1177
|
<!-- The below content is automatically added from ./../apiExamples/programmaticallyHide.html -->
|
|
1031
|
-
<auro-dropdown id="hideExample" aria-label="custom label"
|
|
1178
|
+
<auro-dropdown id="hideExample" aria-label="custom label" fluid rounded bordered inset>
|
|
1032
1179
|
<p>
|
|
1033
1180
|
Lorem ipsum solar
|
|
1034
1181
|
</p>
|
|
@@ -1048,7 +1195,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1048
1195
|
<!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyHide.html -->
|
|
1049
1196
|
|
|
1050
1197
|
```html
|
|
1051
|
-
<auro-dropdown id="hideExample" aria-label="custom label"
|
|
1198
|
+
<auro-dropdown id="hideExample" aria-label="custom label" fluid rounded bordered inset>
|
|
1052
1199
|
<p>
|
|
1053
1200
|
Lorem ipsum solar
|
|
1054
1201
|
</p>
|
|
@@ -1089,7 +1236,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1089
1236
|
}
|
|
1090
1237
|
</style>
|
|
1091
1238
|
<div style="width: 100px;" aria-label="custom label">
|
|
1092
|
-
<auro-dropdown id="customDropdown100"
|
|
1239
|
+
<auro-dropdown id="customDropdown100" inset bordered rounded chevron>
|
|
1093
1240
|
<div>
|
|
1094
1241
|
<p>
|
|
1095
1242
|
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.
|
|
@@ -1121,7 +1268,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1121
1268
|
}
|
|
1122
1269
|
</style>
|
|
1123
1270
|
<div style="width: 100px;" aria-label="custom label">
|
|
1124
|
-
<auro-dropdown id="customDropdown100"
|
|
1271
|
+
<auro-dropdown id="customDropdown100" inset bordered rounded chevron>
|
|
1125
1272
|
<div>
|
|
1126
1273
|
<p>
|
|
1127
1274
|
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.
|
|
@@ -1142,7 +1289,52 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1142
1289
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1143
1290
|
</auro-accordion>
|
|
1144
1291
|
|
|
1145
|
-
####
|
|
1292
|
+
#### Truncated trigger component with fixed width
|
|
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
|
|
1146
1338
|
|
|
1147
1339
|
The component can be in a dialog.
|
|
1148
1340
|
|