@aurodesignsystem/auro-formkit 4.0.1 → 5.0.0-rc-1002.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +193 -3
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +12 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/headerVersion.d.ts +1 -1
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1184 -105
- package/components/bibtemplate/dist/registered.js +1184 -105
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.md +54 -19
- package/components/checkbox/demo/api.min.js +81 -45
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +81 -45
- package/components/checkbox/demo/readme.html +16 -9
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
- package/components/checkbox/dist/auro-checkbox.d.ts +10 -3
- package/components/checkbox/dist/index.js +80 -44
- package/components/checkbox/dist/registered.js +80 -44
- package/components/combobox/README.md +2 -0
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.md +124 -7
- package/components/combobox/demo/api.min.js +4542 -1330
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.md +108 -4
- package/components/combobox/demo/index.min.js +4542 -1330
- package/components/combobox/demo/readme.html +16 -9
- package/components/combobox/demo/readme.md +2 -0
- package/components/combobox/dist/auro-combobox.d.ts +81 -18
- package/components/combobox/dist/index.js +4588 -1520
- package/components/combobox/dist/registered.js +4588 -1520
- package/components/counter/demo/api.html +17 -10
- package/components/counter/demo/api.md +167 -21
- package/components/counter/demo/api.min.js +3621 -866
- package/components/counter/demo/index.html +17 -10
- package/components/counter/demo/index.md +191 -34
- package/components/counter/demo/index.min.js +3621 -866
- package/components/counter/demo/readme.html +16 -9
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +162 -11
- package/components/counter/dist/auro-counter.d.ts +16 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +3619 -864
- package/components/counter/dist/registered.js +3619 -864
- package/components/datepicker/README.md +2 -1
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/api.md +80 -30
- package/components/datepicker/demo/api.min.js +14795 -10365
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/index.md +96 -4
- package/components/datepicker/demo/index.min.js +14795 -10365
- package/components/datepicker/demo/readme.html +16 -9
- package/components/datepicker/demo/readme.md +2 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +163 -4
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +14916 -10486
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +14916 -10486
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/api.md +94 -262
- package/components/dropdown/demo/api.min.js +738 -259
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/index.md +93 -266
- package/components/dropdown/demo/index.min.js +738 -259
- package/components/dropdown/demo/readme.html +16 -9
- package/components/dropdown/dist/auro-dropdown.d.ts +92 -73
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +710 -231
- package/components/dropdown/dist/registered.js +710 -231
- package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/form/demo/api.html +16 -9
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/api.min.js +3 -3
- package/components/form/demo/autocomplete.html +19 -3
- package/components/form/demo/index.html +16 -9
- package/components/form/demo/index.min.js +3 -3
- package/components/form/demo/readme.html +16 -9
- package/components/form/demo/working.html +19 -13
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +2 -2
- package/components/form/dist/registered.js +2 -2
- package/components/helptext/dist/auro-helptext.d.ts +0 -2
- package/components/helptext/dist/index.js +2 -4
- package/components/helptext/dist/registered.js +2 -4
- package/components/input/README.md +6 -2
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/api.md +258 -144
- package/components/input/demo/api.min.js +1550 -497
- package/components/input/demo/index.html +17 -11
- package/components/input/demo/index.md +95 -27
- package/components/input/demo/index.min.js +1549 -496
- package/components/input/demo/readme.html +16 -9
- package/components/input/demo/readme.md +6 -2
- package/components/input/dist/auro-input.d.ts +139 -3
- package/components/input/dist/base-input.d.ts +80 -26
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +1504 -451
- package/components/input/dist/registered.js +1504 -451
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/dist/styles/default/borders-css.d.ts +2 -0
- package/components/input/dist/styles/default/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/default/style-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/layoutElement/dist/auroElement.d.ts +34 -0
- package/components/layoutElement/dist/index.d.ts +2 -0
- package/components/layoutElement/dist/index.js +98 -0
- package/components/layoutElement/dist/registered.js +98 -0
- package/components/menu/demo/api.html +17 -10
- package/components/menu/demo/api.md +65 -8
- package/components/menu/demo/api.min.js +304 -65
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +304 -65
- package/components/menu/demo/readme.html +16 -9
- package/components/menu/dist/auro-menu.d.ts +53 -7
- package/components/menu/dist/auro-menuoption.d.ts +21 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +289 -50
- package/components/menu/dist/registered.js +289 -50
- package/components/menu/dist/styles/default/color-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/api.md +41 -9
- package/components/radio/demo/api.min.js +93 -95
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/index.min.js +93 -95
- package/components/radio/demo/readme.html +16 -9
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +11 -12
- package/components/radio/dist/index.js +92 -94
- package/components/radio/dist/registered.js +92 -94
- package/components/select/README.md +1 -0
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +156 -114
- package/components/select/demo/api.min.js +3126 -657
- package/components/select/demo/index.html +17 -10
- package/components/select/demo/index.md +398 -62
- package/components/select/demo/index.min.js +3129 -648
- package/components/select/demo/readme.html +16 -9
- package/components/select/demo/readme.md +1 -0
- package/components/select/dist/auro-select.d.ts +173 -18
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +3128 -791
- package/components/select/dist/registered.js +3128 -791
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +33 -32
- package/packages/build-tools/src/postinstall.mjs +0 -12
- /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/borders-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{input/dist/styles/input-css.d.ts → datepicker/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{input/dist/styles/label-css.d.ts → datepicker/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/notificationIcons-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menuoption-css.d.ts → datepicker/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/tokens-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
|
@@ -3,46 +3,42 @@
|
|
|
3
3
|
|
|
4
4
|
# auro-dropdown
|
|
5
5
|
|
|
6
|
-
## Attributes
|
|
7
|
-
|
|
8
|
-
| Attribute | Type | Description |
|
|
9
|
-
|--------------------|-------------|--------------------------------------------------|
|
|
10
|
-
| [disableEventShow](#disableEventShow) | ` Boolean ` | If declared, the dropdown will only show by calling the API .show() public method. |
|
|
11
|
-
|
|
12
6
|
## Properties
|
|
13
7
|
|
|
14
8
|
| Property | Attribute | Type | Default | Description |
|
|
15
9
|
|-------------------------|-------------------------|-------------|----------------|--------------------------------------------------|
|
|
16
|
-
| `a11yAutocomplete` | | `string` | | The value for the aria-autocomplete attribute of the trigger element. |
|
|
17
10
|
| `a11yRole` | | | | The value for the role attribute of the trigger element. |
|
|
18
11
|
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
19
|
-
| [bordered](#bordered) | `bordered` | ` Boolean ` | | If declared, applies a border around the trigger slot. |
|
|
20
12
|
| [chevron](#chevron) | `chevron` | ` Boolean ` | | If declared, the dropdown displays a chevron on the right. |
|
|
21
|
-
| [
|
|
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. |
|
|
22
15
|
| [disabled](#disabled) | `disabled` | ` Boolean ` | | If declared, the dropdown is not interactive. |
|
|
23
|
-
| [error](#error) | `error` | ` Boolean ` | | If declared in combination with `
|
|
24
|
-
| [
|
|
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. |
|
|
25
18
|
| [focusShow](#focusShow) | `focusShow` | ` Boolean ` | | If declared, the bib will display when focus is applied to the trigger. |
|
|
26
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. |
|
|
27
20
|
| [hoverToggle](#hoverToggle) | `hoverToggle` | ` Boolean ` | | If declared, the trigger will toggle the dropdown on mouseover/mouseout. |
|
|
28
|
-
| [inset](#inset) | `inset` | ` Boolean ` | | If declared, will apply padding around trigger slot content. |
|
|
29
21
|
| [isBibFullscreen](#isBibFullscreen) | `isBibFullscreen` | `boolean` | false | If true, the dropdown bib is taking the fullscreen when it's open. |
|
|
30
|
-
| [isPopoverVisible](#isPopoverVisible) | `
|
|
22
|
+
| [isPopoverVisible](#isPopoverVisible) | `open` | ` Boolean ` | false | If true, the dropdown bib is displayed. |
|
|
23
|
+
| [layout](#layout) | | | "undefined" | |
|
|
31
24
|
| [matchWidth](#matchWidth) | `matchWidth` | ` Boolean ` | false | If declared, the popover and trigger will be set to the same width. |
|
|
32
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`. |
|
|
33
26
|
| [noHideOnThisFocusLoss](#noHideOnThisFocusLoss) | `noHideOnThisFocusLoss` | ` Boolean ` | false | If declared, the dropdown will not hide when moving focus outside the element. |
|
|
34
27
|
| [noToggle](#noToggle) | `noToggle` | ` Boolean ` | | If declared, the trigger will only show the dropdown bib. |
|
|
35
28
|
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
36
29
|
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied. |
|
|
37
|
-
| [onSlotChange](#onSlotChange) | `onSlotChange` | | |
|
|
38
|
-
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger
|
|
39
|
-
| [
|
|
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" | |
|
|
40
35
|
|
|
41
36
|
## Methods
|
|
42
37
|
|
|
43
38
|
| Method | Type | Description |
|
|
44
39
|
|------------------|------------|--------------------------------------------------|
|
|
45
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. |
|
|
46
42
|
| [hide](#hide) | `(): void` | Public method to hide the dropdown. |
|
|
47
43
|
| [show](#show) | `(): void` | Public method to show the dropdown. |
|
|
48
44
|
|
|
@@ -50,9 +46,9 @@
|
|
|
50
46
|
|
|
51
47
|
| Event | Type | Description |
|
|
52
48
|
|-----------------------------|--------------------------------------|--------------------------------------------------|
|
|
53
|
-
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` |
|
|
49
|
+
| `auroDropdown-idAdded` | `Object<key : 'id', value: string>` | |
|
|
54
50
|
| `auroDropdown-toggled` | | Notifies that the visibility of the dropdown bib has changed. |
|
|
55
|
-
| `auroDropdown-triggerClick` |
|
|
51
|
+
| `auroDropdown-triggerClick` | `CustomEvent<any>` | Notifies that the trigger has been clicked. |
|
|
56
52
|
|
|
57
53
|
## Slots
|
|
58
54
|
|
|
@@ -60,24 +56,26 @@
|
|
|
60
56
|
|------------|---------------------------------------|
|
|
61
57
|
| | Default slot for the popover content. |
|
|
62
58
|
| [helpText](#helpText) | Defines the content of the helpText. |
|
|
63
|
-
| [label](#label) | Defines the content of the label. |
|
|
64
59
|
| [trigger](#trigger) | Defines the content of the trigger. |
|
|
65
60
|
|
|
66
61
|
## CSS Shadow Parts
|
|
67
62
|
|
|
68
|
-
| Part | Description
|
|
69
|
-
|
|
70
|
-
| [chevron](#chevron) | The collapsed/expanded state icon container.
|
|
71
|
-
| [helpText](#helpText) | The helpText content container.
|
|
72
|
-
| [popover](#popover) | The bib content container.
|
|
73
|
-
| [
|
|
63
|
+
| Part | Description |
|
|
64
|
+
|------------|--------------------------------------------------|
|
|
65
|
+
| [chevron](#chevron) | The collapsed/expanded state icon container. |
|
|
66
|
+
| [helpText](#helpText) | The helpText content container. |
|
|
67
|
+
| [popover](#popover) | The bib content container. |
|
|
68
|
+
| [size](#size) | The size of the dropdown bib. (height, width, maxHeight, maxWidth only) |
|
|
69
|
+
| [trigger](#trigger) | The trigger content container. |
|
|
74
70
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
75
71
|
|
|
76
72
|
## API Examples
|
|
77
73
|
|
|
78
74
|
### Basic
|
|
79
75
|
|
|
80
|
-
The most basic, simple version of `auro-dropdown`.
|
|
76
|
+
The most basic, simple version of `auro-dropdown`.
|
|
77
|
+
|
|
78
|
+
#### Text content in trigger
|
|
81
79
|
|
|
82
80
|
<div class="exampleWrapper">
|
|
83
81
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
@@ -125,6 +123,9 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
125
123
|
</auro-dropdown>
|
|
126
124
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
127
125
|
</auro-accordion>
|
|
126
|
+
|
|
127
|
+
#### Icon content in trigger
|
|
128
|
+
|
|
128
129
|
<div class="exampleWrapper">
|
|
129
130
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicIcon.html) -->
|
|
130
131
|
<!-- The below content is automatically added from ./../apiExamples/basicIcon.html -->
|
|
@@ -161,9 +162,7 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
161
162
|
<auro-dropdown aria-label="custom label">
|
|
162
163
|
Lorem ipsum solar
|
|
163
164
|
<div slot="trigger">
|
|
164
|
-
<auro-button
|
|
165
|
-
slot="trigger"
|
|
166
|
-
fluid>
|
|
165
|
+
<auro-button slot="trigger">
|
|
167
166
|
Dropdown
|
|
168
167
|
</auro-button>
|
|
169
168
|
</div>
|
|
@@ -179,9 +178,7 @@ The most basic, simple version of `auro-dropdown`.
|
|
|
179
178
|
<auro-dropdown aria-label="custom label">
|
|
180
179
|
Lorem ipsum solar
|
|
181
180
|
<div slot="trigger">
|
|
182
|
-
<auro-button
|
|
183
|
-
slot="trigger"
|
|
184
|
-
fluid>
|
|
181
|
+
<auro-button slot="trigger">
|
|
185
182
|
Dropdown
|
|
186
183
|
</auro-button>
|
|
187
184
|
</div>
|
|
@@ -210,7 +207,7 @@ Adds the border style around the dropdown trigger.
|
|
|
210
207
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
211
208
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
|
|
212
209
|
<!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
|
|
213
|
-
<auro-dropdown onDark aria-label="custom label"
|
|
210
|
+
<auro-dropdown onDark aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
214
211
|
Lorem ipsum solar
|
|
215
212
|
<div slot="trigger">
|
|
216
213
|
Trigger
|
|
@@ -234,7 +231,7 @@ Adds the border style around the dropdown trigger.
|
|
|
234
231
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
235
232
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkBordered.html) -->
|
|
236
233
|
<!-- The below content is automatically added from ./../apiExamples/onDarkBordered.html -->
|
|
237
|
-
<auro-dropdown onDark aria-label="custom label"
|
|
234
|
+
<auro-dropdown onDark aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
238
235
|
Lorem ipsum solar
|
|
239
236
|
<div slot="trigger">
|
|
240
237
|
Trigger
|
|
@@ -309,9 +306,7 @@ Adds the bib visibility state chevron to the right side of the trigger content.
|
|
|
309
306
|
<auro-dropdown aria-label="custom label" chevron>
|
|
310
307
|
Lorem ipsum solar
|
|
311
308
|
<div slot="trigger">
|
|
312
|
-
<auro-button
|
|
313
|
-
slot="trigger"
|
|
314
|
-
fluid>
|
|
309
|
+
<auro-button slot="trigger">
|
|
315
310
|
Dropdown
|
|
316
311
|
</auro-button>
|
|
317
312
|
</div>
|
|
@@ -327,9 +322,7 @@ Adds the bib visibility state chevron to the right side of the trigger content.
|
|
|
327
322
|
<auro-dropdown aria-label="custom label" chevron>
|
|
328
323
|
Lorem ipsum solar
|
|
329
324
|
<div slot="trigger">
|
|
330
|
-
<auro-button
|
|
331
|
-
slot="trigger"
|
|
332
|
-
fluid>
|
|
325
|
+
<auro-button slot="trigger">
|
|
333
326
|
Dropdown
|
|
334
327
|
</auro-button>
|
|
335
328
|
</div>
|
|
@@ -405,9 +398,7 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
405
398
|
disabled
|
|
406
399
|
onDark
|
|
407
400
|
chevron
|
|
408
|
-
|
|
409
|
-
inset
|
|
410
|
-
bordered>
|
|
401
|
+
layout="classic" shape="classic" size="lg">
|
|
411
402
|
Lorem ipsum solar
|
|
412
403
|
<div slot="trigger">
|
|
413
404
|
Trigger
|
|
@@ -454,9 +445,7 @@ Disables the trigger preventing the dropdown bib from being shown.
|
|
|
454
445
|
disabled
|
|
455
446
|
onDark
|
|
456
447
|
chevron
|
|
457
|
-
|
|
458
|
-
inset
|
|
459
|
-
bordered>
|
|
448
|
+
layout="classic" shape="classic" size="lg">
|
|
460
449
|
Lorem ipsum solar
|
|
461
450
|
<div slot="trigger">
|
|
462
451
|
Trigger
|
|
@@ -501,7 +490,7 @@ Adds the error state UI to the trigger.
|
|
|
501
490
|
<div class="exampleWrapper--ondark" aria-hidden>
|
|
502
491
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
503
492
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
504
|
-
<auro-dropdown onDark
|
|
493
|
+
<auro-dropdown onDark layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
|
|
505
494
|
<div style="padding: var(--ds-size-150);">
|
|
506
495
|
Lorem ipsum solar
|
|
507
496
|
<br />
|
|
@@ -549,7 +538,7 @@ Adds the error state UI to the trigger.
|
|
|
549
538
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
550
539
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDarkError.html) -->
|
|
551
540
|
<!-- The below content is automatically added from ./../apiExamples/onDarkError.html -->
|
|
552
|
-
<auro-dropdown onDark
|
|
541
|
+
<auro-dropdown onDark layout="classic" shape="classic" size="lg" error id="commonSlotErrorOnDark">
|
|
553
542
|
<div style="padding: var(--ds-size-150);">
|
|
554
543
|
Lorem ipsum solar
|
|
555
544
|
<br />
|
|
@@ -570,147 +559,6 @@ Adds the error state UI to the trigger.
|
|
|
570
559
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
571
560
|
</auro-accordion>
|
|
572
561
|
|
|
573
|
-
#### fluid
|
|
574
|
-
|
|
575
|
-
The `fluid` property makes the trigger to have the full width.
|
|
576
|
-
|
|
577
|
-
<div class="exampleWrapper">
|
|
578
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/fluid.html) -->
|
|
579
|
-
<!-- The below content is automatically added from ./../apiExamples/fluid.html -->
|
|
580
|
-
<auro-dropdown aria-label="custom label" fluid>
|
|
581
|
-
Lorem ipsum solar
|
|
582
|
-
<div slot="trigger">
|
|
583
|
-
<auro-input
|
|
584
|
-
borderless
|
|
585
|
-
slot="trigger"
|
|
586
|
-
id="inputExampleTrigger">
|
|
587
|
-
</auro-input>
|
|
588
|
-
</div>
|
|
589
|
-
</auro-dropdown>
|
|
590
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
591
|
-
</div>
|
|
592
|
-
<auro-accordion alignRight>
|
|
593
|
-
<span slot="trigger">See code</span>
|
|
594
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/fluid.html) -->
|
|
595
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/fluid.html -->
|
|
596
|
-
|
|
597
|
-
```html
|
|
598
|
-
<auro-dropdown aria-label="custom label" fluid>
|
|
599
|
-
Lorem ipsum solar
|
|
600
|
-
<div slot="trigger">
|
|
601
|
-
<auro-input
|
|
602
|
-
borderless
|
|
603
|
-
slot="trigger"
|
|
604
|
-
id="inputExampleTrigger">
|
|
605
|
-
</auro-input>
|
|
606
|
-
</div>
|
|
607
|
-
</auro-dropdown>
|
|
608
|
-
```
|
|
609
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
610
|
-
</auro-accordion>
|
|
611
|
-
|
|
612
|
-
#### inset
|
|
613
|
-
|
|
614
|
-
The `inset` property applies a predefined amount of CSS `padding` to the `trigger` slot content. Use this property to apply borderless style.
|
|
615
|
-
|
|
616
|
-
<div class="exampleWrapper">
|
|
617
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inset.html) -->
|
|
618
|
-
<!-- The below content is automatically added from ./../apiExamples/inset.html -->
|
|
619
|
-
<auro-dropdown aria-label="custom label" inset>
|
|
620
|
-
Lorem ipsum solar
|
|
621
|
-
<div slot="trigger">
|
|
622
|
-
Trigger
|
|
623
|
-
</div>
|
|
624
|
-
</auro-dropdown>
|
|
625
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
626
|
-
</div>
|
|
627
|
-
<auro-accordion alignRight>
|
|
628
|
-
<span slot="trigger">See code</span>
|
|
629
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inset.html) -->
|
|
630
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/inset.html -->
|
|
631
|
-
|
|
632
|
-
```html
|
|
633
|
-
<auro-dropdown aria-label="custom label" inset>
|
|
634
|
-
Lorem ipsum solar
|
|
635
|
-
<div slot="trigger">
|
|
636
|
-
Trigger
|
|
637
|
-
</div>
|
|
638
|
-
</auro-dropdown>
|
|
639
|
-
```
|
|
640
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
641
|
-
</auro-accordion>
|
|
642
|
-
<div class="exampleWrapper">
|
|
643
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/insetBordered.html) -->
|
|
644
|
-
<!-- The below content is automatically added from ./../apiExamples/insetBordered.html -->
|
|
645
|
-
<auro-dropdown
|
|
646
|
-
aria-label="custom label"
|
|
647
|
-
inset
|
|
648
|
-
rounded
|
|
649
|
-
bordered>
|
|
650
|
-
Lorem ipsum solar
|
|
651
|
-
<div slot="trigger">
|
|
652
|
-
Trigger
|
|
653
|
-
</div>
|
|
654
|
-
</auro-dropdown>
|
|
655
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
656
|
-
</div>
|
|
657
|
-
<auro-accordion alignRight>
|
|
658
|
-
<span slot="trigger">See code</span>
|
|
659
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/insetBordered.html) -->
|
|
660
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/insetBordered.html -->
|
|
661
|
-
|
|
662
|
-
```html
|
|
663
|
-
<auro-dropdown
|
|
664
|
-
aria-label="custom label"
|
|
665
|
-
inset
|
|
666
|
-
rounded
|
|
667
|
-
bordered>
|
|
668
|
-
Lorem ipsum solar
|
|
669
|
-
<div slot="trigger">
|
|
670
|
-
Trigger
|
|
671
|
-
</div>
|
|
672
|
-
</auro-dropdown>
|
|
673
|
-
```
|
|
674
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
675
|
-
</auro-accordion>
|
|
676
|
-
|
|
677
|
-
#### rounded
|
|
678
|
-
|
|
679
|
-
The `rounded` property applies `border-radius` CSS to the trigger and default slot content.
|
|
680
|
-
|
|
681
|
-
<div class="exampleWrapper">
|
|
682
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/rounded.html) -->
|
|
683
|
-
<!-- The below content is automatically added from ./../apiExamples/rounded.html -->
|
|
684
|
-
<auro-dropdown
|
|
685
|
-
aria-label="custom label"
|
|
686
|
-
rounded
|
|
687
|
-
bordered>
|
|
688
|
-
Lorem ipsum solar
|
|
689
|
-
<div slot="trigger">
|
|
690
|
-
Trigger
|
|
691
|
-
</div>
|
|
692
|
-
</auro-dropdown>
|
|
693
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
694
|
-
</div>
|
|
695
|
-
<auro-accordion alignRight>
|
|
696
|
-
<span slot="trigger">See code</span>
|
|
697
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/rounded.html) -->
|
|
698
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/rounded.html -->
|
|
699
|
-
|
|
700
|
-
```html
|
|
701
|
-
<auro-dropdown
|
|
702
|
-
aria-label="custom label"
|
|
703
|
-
rounded
|
|
704
|
-
bordered>
|
|
705
|
-
Lorem ipsum solar
|
|
706
|
-
<div slot="trigger">
|
|
707
|
-
Trigger
|
|
708
|
-
</div>
|
|
709
|
-
</auro-dropdown>
|
|
710
|
-
```
|
|
711
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
712
|
-
</auro-accordion>
|
|
713
|
-
|
|
714
562
|
#### noToggle
|
|
715
563
|
|
|
716
564
|
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.
|
|
@@ -756,7 +604,7 @@ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will swit
|
|
|
756
604
|
}
|
|
757
605
|
</style>
|
|
758
606
|
<div style="width: 300px;" aria-label="custom label">
|
|
759
|
-
<auro-dropdown id="customDropdown300"
|
|
607
|
+
<auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
|
|
760
608
|
<div>
|
|
761
609
|
<p>
|
|
762
610
|
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.
|
|
@@ -788,7 +636,7 @@ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will swit
|
|
|
788
636
|
}
|
|
789
637
|
</style>
|
|
790
638
|
<div style="width: 300px;" aria-label="custom label">
|
|
791
|
-
<auro-dropdown id="customDropdown300"
|
|
639
|
+
<auro-dropdown id="customDropdown300" layout="classic" shape="classic" size="lg" chevron fullscreenBreakpoint="sm">
|
|
792
640
|
<div>
|
|
793
641
|
<p>
|
|
794
642
|
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.
|
|
@@ -827,7 +675,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
827
675
|
}
|
|
828
676
|
</style>
|
|
829
677
|
<div aria-label="custom label">
|
|
830
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
678
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20" noFlip>
|
|
831
679
|
<div>
|
|
832
680
|
<p>
|
|
833
681
|
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.
|
|
@@ -840,12 +688,13 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
840
688
|
</p>
|
|
841
689
|
</div>
|
|
842
690
|
<div slot="trigger">
|
|
843
|
-
Trigger
|
|
691
|
+
Trigger
|
|
844
692
|
</div>
|
|
693
|
+
<span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
|
|
845
694
|
</auro-dropdown>
|
|
846
695
|
</div>
|
|
847
696
|
<div aria-label="custom label">
|
|
848
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
697
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20">
|
|
849
698
|
<div>
|
|
850
699
|
<p>
|
|
851
700
|
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.
|
|
@@ -858,12 +707,15 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
858
707
|
</p>
|
|
859
708
|
</div>
|
|
860
709
|
<div slot="trigger">
|
|
710
|
+
Trigger
|
|
711
|
+
</div>
|
|
712
|
+
<div slot="helpText">
|
|
861
713
|
Trigger for bottom-end bib with 20px offset and flip
|
|
862
714
|
</div>
|
|
863
715
|
</auro-dropdown>
|
|
864
716
|
</div>
|
|
865
717
|
<div aria-label="custom label">
|
|
866
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
718
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron autoPlacement noFlip placement="right" offset="20">
|
|
867
719
|
<div>
|
|
868
720
|
<p>
|
|
869
721
|
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.
|
|
@@ -876,6 +728,9 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
876
728
|
</p>
|
|
877
729
|
</div>
|
|
878
730
|
<div slot="trigger">
|
|
731
|
+
Trigger
|
|
732
|
+
</div>
|
|
733
|
+
<div slot="helpText">
|
|
879
734
|
Trigger for right bib with 20px offset, autoPlacement and noFlip
|
|
880
735
|
</div>
|
|
881
736
|
</auro-dropdown>
|
|
@@ -895,7 +750,7 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
895
750
|
}
|
|
896
751
|
</style>
|
|
897
752
|
<div aria-label="custom label">
|
|
898
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
753
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20" noFlip>
|
|
899
754
|
<div>
|
|
900
755
|
<p>
|
|
901
756
|
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.
|
|
@@ -908,12 +763,13 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
908
763
|
</p>
|
|
909
764
|
</div>
|
|
910
765
|
<div slot="trigger">
|
|
911
|
-
Trigger
|
|
766
|
+
Trigger
|
|
912
767
|
</div>
|
|
768
|
+
<span slot="helpText">Trigger for bottom-end bib with 20px offset and noFlip</span>
|
|
913
769
|
</auro-dropdown>
|
|
914
770
|
</div>
|
|
915
771
|
<div aria-label="custom label">
|
|
916
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
772
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron placement="bottom-end" offset="20">
|
|
917
773
|
<div>
|
|
918
774
|
<p>
|
|
919
775
|
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.
|
|
@@ -926,12 +782,15 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
926
782
|
</p>
|
|
927
783
|
</div>
|
|
928
784
|
<div slot="trigger">
|
|
785
|
+
Trigger
|
|
786
|
+
</div>
|
|
787
|
+
<div slot="helpText">
|
|
929
788
|
Trigger for bottom-end bib with 20px offset and flip
|
|
930
789
|
</div>
|
|
931
790
|
</auro-dropdown>
|
|
932
791
|
</div>
|
|
933
792
|
<div aria-label="custom label">
|
|
934
|
-
<auro-dropdown class="floaterConfigDropdown"
|
|
793
|
+
<auro-dropdown class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron autoPlacement noFlip placement="right" offset="20">
|
|
935
794
|
<div>
|
|
936
795
|
<p>
|
|
937
796
|
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.
|
|
@@ -944,6 +803,9 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
944
803
|
</p>
|
|
945
804
|
</div>
|
|
946
805
|
<div slot="trigger">
|
|
806
|
+
Trigger
|
|
807
|
+
</div>
|
|
808
|
+
<div slot="helpText">
|
|
947
809
|
Trigger for right bib with 20px offset, autoPlacement and noFlip
|
|
948
810
|
</div>
|
|
949
811
|
</auro-dropdown>
|
|
@@ -1013,7 +875,7 @@ Content defined in the `label` slot will be rendered left aligned inside the tri
|
|
|
1013
875
|
|
|
1014
876
|
#### helpText
|
|
1015
877
|
|
|
1016
|
-
Content defined in the `helpText` slot will be rendered left aligned below the trigger.
|
|
878
|
+
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.
|
|
1017
879
|
|
|
1018
880
|
<div class="exampleWrapper">
|
|
1019
881
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/helpText.html) -->
|
|
@@ -1115,7 +977,7 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
1115
977
|
<auro-input id="showExampleTriggerInput" required>
|
|
1116
978
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
1117
979
|
</auro-input>
|
|
1118
|
-
<auro-dropdown id="showMethodExample" aria-label="custom label"
|
|
980
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1119
981
|
<p>
|
|
1120
982
|
Lorem ipsum solar
|
|
1121
983
|
</p>
|
|
@@ -1132,7 +994,7 @@ The `show` method may also be called from anywhere in your code by executing `do
|
|
|
1132
994
|
<auro-input id="showExampleTriggerInput" required>
|
|
1133
995
|
<span slot="label">Enter a value to show the dropdown</span>
|
|
1134
996
|
</auro-input>
|
|
1135
|
-
<auro-dropdown id="showMethodExample" aria-label="custom label"
|
|
997
|
+
<auro-dropdown id="showMethodExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1136
998
|
<p>
|
|
1137
999
|
Lorem ipsum solar
|
|
1138
1000
|
</p>
|
|
@@ -1167,7 +1029,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1167
1029
|
<div class="exampleWrapper">
|
|
1168
1030
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/programmaticallyHide.html) -->
|
|
1169
1031
|
<!-- The below content is automatically added from ./../apiExamples/programmaticallyHide.html -->
|
|
1170
|
-
<auro-dropdown id="hideExample" aria-label="custom label"
|
|
1032
|
+
<auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1171
1033
|
<p>
|
|
1172
1034
|
Lorem ipsum solar
|
|
1173
1035
|
</p>
|
|
@@ -1187,7 +1049,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1187
1049
|
<!-- The below code snippet is automatically added from ./../apiExamples/programmaticallyHide.html -->
|
|
1188
1050
|
|
|
1189
1051
|
```html
|
|
1190
|
-
<auro-dropdown id="hideExample" aria-label="custom label"
|
|
1052
|
+
<auro-dropdown id="hideExample" aria-label="custom label" layout="classic" shape="classic" size="lg">
|
|
1191
1053
|
<p>
|
|
1192
1054
|
Lorem ipsum solar
|
|
1193
1055
|
</p>
|
|
@@ -1228,7 +1090,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1228
1090
|
}
|
|
1229
1091
|
</style>
|
|
1230
1092
|
<div style="width: 100px;" aria-label="custom label">
|
|
1231
|
-
<auro-dropdown id="customDropdown100"
|
|
1093
|
+
<auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
|
|
1232
1094
|
<div>
|
|
1233
1095
|
<p>
|
|
1234
1096
|
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.
|
|
@@ -1260,7 +1122,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1260
1122
|
}
|
|
1261
1123
|
</style>
|
|
1262
1124
|
<div style="width: 100px;" aria-label="custom label">
|
|
1263
|
-
<auro-dropdown id="customDropdown100"
|
|
1125
|
+
<auro-dropdown id="customDropdown100" layout="classic" shape="classic" size="lg" chevron>
|
|
1264
1126
|
<div>
|
|
1265
1127
|
<p>
|
|
1266
1128
|
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.
|
|
@@ -1281,52 +1143,7 @@ This example demonstrations collapsing the dropdown by clicking a button within
|
|
|
1281
1143
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1282
1144
|
</auro-accordion>
|
|
1283
1145
|
|
|
1284
|
-
####
|
|
1285
|
-
|
|
1286
|
-
`auro-dropdown` trigger component will be truncated if the text is too long than its container width.
|
|
1287
|
-
|
|
1288
|
-
<div class="exampleWrapper">
|
|
1289
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/truncatedText.html) -->
|
|
1290
|
-
<!-- The below content is automatically added from ./../apiExamples/truncatedText.html -->
|
|
1291
|
-
<div style="width: 250px;">
|
|
1292
|
-
<auro-dropdown common aria-label="Label content for screen reader">
|
|
1293
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
1294
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1295
|
-
</div>
|
|
1296
|
-
<span slot="helpText">
|
|
1297
|
-
Help text
|
|
1298
|
-
</span>
|
|
1299
|
-
<div slot="trigger">
|
|
1300
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1301
|
-
</div>
|
|
1302
|
-
</auro-dropdown>
|
|
1303
|
-
</div>
|
|
1304
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1305
|
-
</div>
|
|
1306
|
-
<auro-accordion alignRight>
|
|
1307
|
-
<span slot="trigger">See code</span>
|
|
1308
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/truncatedText.html) -->
|
|
1309
|
-
<!-- The below code snippet is automatically added from ./../apiExamples/truncatedText.html -->
|
|
1310
|
-
|
|
1311
|
-
```html
|
|
1312
|
-
<div style="width: 250px;">
|
|
1313
|
-
<auro-dropdown common aria-label="Label content for screen reader">
|
|
1314
|
-
<div style="padding: var(--ds-size-150); width: 500px;">
|
|
1315
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1316
|
-
</div>
|
|
1317
|
-
<span slot="helpText">
|
|
1318
|
-
Help text
|
|
1319
|
-
</span>
|
|
1320
|
-
<div slot="trigger">
|
|
1321
|
-
I really prefer Alaska Airlines for my vacation travels
|
|
1322
|
-
</div>
|
|
1323
|
-
</auro-dropdown>
|
|
1324
|
-
</div>
|
|
1325
|
-
```
|
|
1326
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1327
|
-
</auro-accordion>
|
|
1328
|
-
|
|
1329
|
-
#### in Dialog
|
|
1146
|
+
#### In Auro Dialog
|
|
1330
1147
|
|
|
1331
1148
|
The component can be in a dialog.
|
|
1332
1149
|
|
|
@@ -1417,18 +1234,33 @@ The component may be restyled using the following code sample and changing the v
|
|
|
1417
1234
|
<!-- The below code snippet is automatically added from ./../src/styles/tokens.scss -->
|
|
1418
1235
|
|
|
1419
1236
|
```scss
|
|
1420
|
-
@
|
|
1421
|
-
@
|
|
1237
|
+
@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
1238
|
+
@use "@aurodesignsystem/design-tokens/dist/legacy/auro-classic/SCSSVariables" as vac;
|
|
1239
|
+
|
|
1240
|
+
:host(:not([ondark])) {
|
|
1241
|
+
--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
1242
|
+
--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
1243
|
+
--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
1244
|
+
--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
|
|
1245
|
+
--ds-auro-dropdown-trigger-outline-color: transparent;
|
|
1246
|
+
--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
1247
|
+
--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{vac.$ds-elevation-200});
|
|
1248
|
+
--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
1249
|
+
--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
1250
|
+
--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
1251
|
+
}
|
|
1422
1252
|
|
|
1423
|
-
:host {
|
|
1424
|
-
--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #{
|
|
1425
|
-
--ds-auro-dropdown-trigger-
|
|
1426
|
-
--ds-auro-dropdown-trigger-
|
|
1253
|
+
:host([ondark]) {
|
|
1254
|
+
--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #{v.$ds-basic-color-texticon-inverse-muted});
|
|
1255
|
+
--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
1256
|
+
--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
1257
|
+
--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #{v.$ds-basic-color-border-inverse});
|
|
1427
1258
|
--ds-auro-dropdown-trigger-outline-color: transparent;
|
|
1428
|
-
--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-
|
|
1429
|
-
--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{
|
|
1430
|
-
--ds-auro-dropdownbib-
|
|
1431
|
-
--ds-auro-dropdownbib-
|
|
1259
|
+
--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
1260
|
+
--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, #{vac.$ds-elevation-200});
|
|
1261
|
+
--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
1262
|
+
--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, #{v.$ds-advanced-color-shared-background-inverse});
|
|
1263
|
+
--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #{v.$ds-basic-color-texticon-inverse});
|
|
1432
1264
|
}
|
|
1433
1265
|
```
|
|
1434
1266
|
<!-- AURO-GENERATED-CONTENT:END -->
|