@aurodesignsystem/auro-formkit 5.9.0 → 5.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -4
- package/README.md +4 -4
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +62 -62
- package/components/checkbox/demo/api.js +1 -1
- package/components/checkbox/demo/api.md +127 -84
- package/components/checkbox/demo/api.min.js +125 -42
- package/components/checkbox/demo/index.md +9 -281
- package/components/checkbox/demo/index.min.js +125 -42
- package/components/checkbox/demo/readme.html +3 -4
- package/components/checkbox/demo/readme.md +62 -62
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
- package/components/checkbox/dist/index.js +125 -42
- package/components/checkbox/dist/registered.js +125 -42
- package/components/combobox/README.md +76 -74
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +11 -12
- package/components/combobox/demo/api.md +1302 -875
- package/components/combobox/demo/api.min.js +416 -492
- package/components/combobox/demo/index.html +1 -7
- package/components/combobox/demo/index.js +0 -19
- package/components/combobox/demo/index.md +43 -723
- package/components/combobox/demo/index.min.js +369 -302
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +42 -42
- package/components/combobox/dist/index.js +204 -210
- package/components/combobox/dist/registered.js +204 -210
- package/components/counter/README.md +81 -66
- package/components/counter/demo/api.html +1 -2
- package/components/counter/demo/api.js +2 -2
- package/components/counter/demo/api.md +777 -259
- package/components/counter/demo/api.min.js +119 -171
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +117 -152
- package/components/counter/demo/readme.html +3 -4
- package/components/counter/demo/readme.md +81 -66
- package/components/counter/dist/auro-counter-group.d.ts +21 -36
- package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
- package/components/counter/dist/auro-counter.d.ts +5 -8
- package/components/counter/dist/index.js +117 -152
- package/components/counter/dist/registered.js +117 -152
- package/components/datepicker/README.md +57 -61
- package/components/datepicker/demo/api.js +8 -8
- package/components/datepicker/demo/api.md +720 -561
- package/components/datepicker/demo/api.min.js +678 -2769
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +678 -2769
- package/components/datepicker/demo/readme.html +3 -4
- package/components/datepicker/demo/readme.md +57 -61
- package/components/datepicker/dist/auro-calendar.d.ts +60 -34
- package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +505 -2596
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +505 -2596
- package/components/dropdown/README.md +78 -62
- package/components/dropdown/demo/api.js +4 -4
- package/components/dropdown/demo/api.md +520 -478
- package/components/dropdown/demo/api.min.js +80 -95
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +70 -85
- package/components/dropdown/demo/readme.html +3 -4
- package/components/dropdown/demo/readme.md +78 -62
- package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +70 -85
- package/components/dropdown/dist/registered.js +70 -85
- package/components/form/README.md +16 -58
- package/components/form/demo/api.md +16 -21
- package/components/form/demo/api.min.js +13 -8
- package/components/form/demo/index.md +38 -39
- package/components/form/demo/index.min.js +13 -8
- package/components/form/demo/readme.md +16 -58
- package/components/form/demo/working.html +1 -1
- package/components/form/dist/auro-form.d.ts +15 -3
- package/components/form/dist/index.js +13 -8
- package/components/form/dist/registered.js +13 -8
- package/components/input/README.md +55 -60
- package/components/input/demo/api.js +3 -5
- package/components/input/demo/api.md +558 -537
- package/components/input/demo/api.min.js +102 -115
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +87 -99
- package/components/input/demo/readme.html +3 -4
- package/components/input/demo/readme.md +55 -60
- package/components/input/dist/auro-input.d.ts +6 -5
- package/components/input/dist/base-input.d.ts +68 -69
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +87 -82
- package/components/input/dist/registered.js +87 -82
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -577
- package/components/menu/demo/api.min.js +199 -97
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +164 -101
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.context.d.ts +5 -0
- package/components/menu/dist/auro-menu.d.ts +75 -37
- package/components/menu/dist/auro-menuoption.d.ts +38 -13
- package/components/menu/dist/index.js +164 -50
- package/components/menu/dist/registered.js +164 -50
- package/components/radio/README.md +61 -57
- package/components/radio/demo/api.js +2 -2
- package/components/radio/demo/api.md +241 -170
- package/components/radio/demo/api.min.js +154 -77
- package/components/radio/demo/index.md +22 -99
- package/components/radio/demo/index.min.js +145 -68
- package/components/radio/demo/readme.html +3 -4
- package/components/radio/demo/readme.md +61 -57
- package/components/radio/dist/auro-radio-group.d.ts +67 -35
- package/components/radio/dist/auro-radio.d.ts +56 -33
- package/components/radio/dist/index.js +145 -68
- package/components/radio/dist/registered.js +145 -68
- package/components/select/README.md +68 -65
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +7 -7
- package/components/select/demo/api.md +1305 -625
- package/components/select/demo/api.min.js +357 -262
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +356 -230
- package/components/select/demo/readme.html +3 -4
- package/components/select/demo/readme.md +68 -65
- package/components/select/dist/auro-select.d.ts +99 -90
- package/components/select/dist/index.js +192 -180
- package/components/select/dist/registered.js +192 -180
- package/package.json +9 -4
|
@@ -48,10 +48,9 @@
|
|
|
48
48
|
Prism.highlightAll();
|
|
49
49
|
})
|
|
50
50
|
</script>
|
|
51
|
-
<script type="module">
|
|
52
|
-
import { initExamples } from "./index.min.js";
|
|
51
|
+
<script src="./index.min.js" data-demo-script="true" type="module"></script>
|
|
53
52
|
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
<!-- If additional elements are needed for the demo, add them here. -->
|
|
54
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-accordion@latest/+esm" type="module"></script>
|
|
56
55
|
</body>
|
|
57
56
|
</html>
|
|
@@ -18,6 +18,7 @@ The following sections are editable by making changes to the following files:
|
|
|
18
18
|
-->
|
|
19
19
|
|
|
20
20
|
# Dropdown
|
|
21
|
+
|
|
21
22
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/description.md) -->
|
|
22
23
|
<!-- The below content is automatically added from ./docs/partials/description.md -->
|
|
23
24
|
The `auro-dropdown` component is a trigger and dropdown element combination intended to be used with dropdown content that is interactive. `auro-dropdown` is content agnostic and any valid HTML can be placed in either the trigger or the dropdown.
|
|
@@ -29,7 +30,19 @@ _Note: if the dropdown content in your implementation is not interactive (e.g. a
|
|
|
29
30
|
<!-- AURO-GENERATED-CONTENT This file is to be used for any additional content that should be included in the README.md which is specific to this component. -->
|
|
30
31
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
31
32
|
|
|
33
|
+
## Dropdown Use Cases
|
|
34
|
+
|
|
35
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
36
|
+
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
37
|
+
The `auro-dropdown` element should be used in situations where users may:
|
|
38
|
+
|
|
39
|
+
* interact with an element to get clarification on content offering
|
|
40
|
+
* provide definition to iconic imagery
|
|
41
|
+
* when interactive help is required
|
|
42
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
43
|
+
|
|
32
44
|
## Getting Started
|
|
45
|
+
|
|
33
46
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/componentInstall.md) -->
|
|
34
47
|
<!-- The below content is automatically added from ../../docs/templates/componentInstall.md -->
|
|
35
48
|
|
|
@@ -42,30 +55,7 @@ $ npm i @aurodesignsystem/auro-formkit
|
|
|
42
55
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
43
56
|
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
44
57
|
|
|
45
|
-
###
|
|
46
|
-
|
|
47
|
-
#### Automatic Registration
|
|
48
|
-
|
|
49
|
-
For automatic registration, simply import the component:
|
|
50
|
-
|
|
51
|
-
```javascript
|
|
52
|
-
// Registers <auro-dropdown> automatically
|
|
53
|
-
import '@aurodesignsystem/auro-formkit/auro-dropdown';
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
#### Custom Registration
|
|
57
|
-
|
|
58
|
-
To protect from versioning conflicts with other instances of the component being loaded, it is recommended to use our static `AuroDropdown.register('custom-dropdown')` method on the component class and pass in a unique name.
|
|
59
|
-
|
|
60
|
-
```javascript
|
|
61
|
-
// Import the class only
|
|
62
|
-
import { AuroDropdown } from '@aurodesignsystem/auro-formkit/auro-dropdown/class';
|
|
63
|
-
|
|
64
|
-
// Register with a custom name if desired
|
|
65
|
-
AuroDropdown.register('custom-dropdown');
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
#### TypeScript Module Resolution
|
|
58
|
+
### TypeScript Module Resolution
|
|
69
59
|
|
|
70
60
|
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
71
61
|
|
|
@@ -78,30 +68,10 @@ When using TypeScript set `moduleResolution` to `bundler`, add the following to
|
|
|
78
68
|
```
|
|
79
69
|
|
|
80
70
|
This configuration enables proper module resolution for the component's TypeScript files.
|
|
81
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
82
|
-
**Reference component in HTML**
|
|
83
|
-
|
|
84
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./apiExamples/basic.html) -->
|
|
85
|
-
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
86
|
-
|
|
87
|
-
```html
|
|
88
|
-
<auro-dropdown aria-label="custom label">
|
|
89
|
-
Lorem ipsum solar
|
|
90
|
-
<div slot="trigger">
|
|
91
|
-
Trigger
|
|
92
|
-
</div>
|
|
93
|
-
</auro-dropdown>
|
|
94
|
-
```
|
|
95
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
96
|
-
|
|
97
|
-
### Design Token CSS Custom Property dependency
|
|
98
|
-
|
|
99
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/development/designTokens.md) -->
|
|
100
|
-
The use of any Auro custom element has a dependency on the [Auro Design Tokens](https://auro.alaskaair.com/getting-started/developers/design-tokens).
|
|
101
|
-
|
|
102
71
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
72
|
|
|
104
73
|
## Install from CDN
|
|
74
|
+
|
|
105
75
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/bundleInstallDescription.md) -->
|
|
106
76
|
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
107
77
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
@@ -111,23 +81,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
111
81
|
```
|
|
112
82
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
83
|
|
|
114
|
-
##
|
|
115
|
-
<!-- AURO-GENERATED-CONTENT:START (REMOTE:url=https://raw.githubusercontent.com/AlaskaAirlines/WC-Generator/master/componentDocs/partials/browserSupport.md) -->
|
|
116
|
-
For the most up to date information on [UI development browser support](https://auro.alaskaair.com/support/browsersSupport)
|
|
117
|
-
|
|
118
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
119
|
-
|
|
120
|
-
## auro-dropdown use cases
|
|
121
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/useCases.md) -->
|
|
122
|
-
<!-- The below content is automatically added from ./docs/partials/useCases.md -->
|
|
123
|
-
The `auro-dropdown` element should be used in situations where users may:
|
|
124
|
-
|
|
125
|
-
* interact with an element to get clarification on content offering
|
|
126
|
-
* provide definition to iconic imagery
|
|
127
|
-
* when interactive help is required
|
|
128
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
129
|
-
|
|
130
|
-
## Formkit development
|
|
84
|
+
## Formkit Development
|
|
131
85
|
|
|
132
86
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/partials/developmentDescription.md) -->
|
|
133
87
|
<!-- The below content is automatically added from ../../docs/partials/developmentDescription.md -->
|
|
@@ -141,4 +95,66 @@ To only develop a single component, use the `--filter` flag:
|
|
|
141
95
|
```shell
|
|
142
96
|
npx turbo dev --filter=@aurodesignsystem/auro-input
|
|
143
97
|
```
|
|
98
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
99
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
100
|
+
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
101
|
+
|
|
102
|
+
## Custom Component Registration for Version Management
|
|
103
|
+
|
|
104
|
+
There are two key parts to every Auro component: the <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes">class</a> and the custom element definition. The class defines the component’s behavior, while the custom element registers it under a specific name so it can be used in HTML.
|
|
105
|
+
|
|
106
|
+
When you install the component as described on the `Install` page, the class is imported automatically, and the component is registered globally for you.
|
|
107
|
+
|
|
108
|
+
However, if you need to load multiple versions of the same component on a single page (for example, when two projects depend on different versions), you can manually register the class under a custom element name to avoid conflicts.
|
|
109
|
+
|
|
110
|
+
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
111
|
+
|
|
112
|
+
```js
|
|
113
|
+
// Import the class only
|
|
114
|
+
import { AuroDropdown } from '@aurodesignsystem/auro-formkit/auro-dropdown/class';
|
|
115
|
+
|
|
116
|
+
// Register with a custom name if desired
|
|
117
|
+
AuroDropdown.register('custom-dropdown');
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
This will create a new custom element `<custom-dropdown>` that behaves exactly like `<auro-dropdown>`, allowing both to coexist on the same page without interfering with each other.
|
|
121
|
+
|
|
122
|
+
<div class="exampleWrapper exampleWrapper--flex">
|
|
123
|
+
<custom-dropdown id="customCommon" layout="classic" shape="classic" size="lg" aria-label="Label content for screen reader">
|
|
124
|
+
<div style="padding: var(--ds-size-150);">
|
|
125
|
+
Lorem ipsum solar
|
|
126
|
+
<br />
|
|
127
|
+
<auro-button onclick="document.querySelector('#customCommon').hide()">
|
|
128
|
+
Dismiss Dropdown
|
|
129
|
+
</auro-button>
|
|
130
|
+
</div>
|
|
131
|
+
<span slot="helpText">
|
|
132
|
+
Help text
|
|
133
|
+
</span>
|
|
134
|
+
<div slot="trigger">
|
|
135
|
+
Trigger
|
|
136
|
+
</div>
|
|
137
|
+
</custom-dropdown>
|
|
138
|
+
</div>
|
|
139
|
+
<auro-accordion alignRight>
|
|
140
|
+
<span slot="trigger">See code</span>
|
|
141
|
+
|
|
142
|
+
```html
|
|
143
|
+
<custom-dropdown id="customCommon" layout="classic" shape="classic" size="lg" aria-label="Label content for screen reader">
|
|
144
|
+
<div style="padding: var(--ds-size-150);">
|
|
145
|
+
Lorem ipsum solar
|
|
146
|
+
<br />
|
|
147
|
+
<auro-button onclick="document.querySelector('#customCommon').hide()">
|
|
148
|
+
Dismiss Dropdown
|
|
149
|
+
</auro-button>
|
|
150
|
+
</div>
|
|
151
|
+
<span slot="helpText">
|
|
152
|
+
Help text
|
|
153
|
+
</span>
|
|
154
|
+
<div slot="trigger">
|
|
155
|
+
Trigger
|
|
156
|
+
</div>
|
|
157
|
+
</custom-dropdown>
|
|
158
|
+
```
|
|
159
|
+
</auro-accordion>
|
|
144
160
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1,17 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
3
|
+
* @customElement auro-dropdown
|
|
4
|
+
*
|
|
5
|
+
* @slot - Default slot for the popover content.
|
|
6
|
+
* @slot helpText - Defines the content of the helpText.
|
|
7
|
+
* @slot trigger - Defines the content of the trigger.
|
|
8
|
+
* @csspart trigger - The trigger content container.
|
|
9
|
+
* @csspart chevron - The collapsed/expanded state icon container.
|
|
10
|
+
* @csspart size - The size of the dropdown bib. (height, width, maxHeight, maxWidth only)
|
|
11
|
+
* @csspart helpText - The helpText content container.
|
|
12
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger has been clicked.
|
|
13
|
+
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
14
|
+
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
15
|
+
*/
|
|
1
16
|
export class AuroDropdown extends AuroElement {
|
|
2
17
|
static get properties(): {
|
|
3
18
|
/**
|
|
4
|
-
*
|
|
5
|
-
* @property {'default', 'inverse'}
|
|
6
|
-
* @default 'default'
|
|
19
|
+
* The value for the role attribute of the trigger element.
|
|
7
20
|
*/
|
|
8
|
-
|
|
21
|
+
a11yRole: {
|
|
9
22
|
type: StringConstructor;
|
|
23
|
+
attribute: boolean;
|
|
10
24
|
reflect: boolean;
|
|
11
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* Defines whether the component will be on lighter or darker backgrounds.
|
|
28
|
+
* @type {'default' | 'inverse'}
|
|
29
|
+
* @default 'default'
|
|
30
|
+
*/
|
|
31
|
+
appearance: "default" | "inverse";
|
|
12
32
|
/**
|
|
13
33
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
14
|
-
* @default false
|
|
15
34
|
*/
|
|
16
35
|
autoPlacement: {
|
|
17
36
|
type: BooleanConstructor;
|
|
@@ -19,7 +38,6 @@ export class AuroDropdown extends AuroElement {
|
|
|
19
38
|
};
|
|
20
39
|
/**
|
|
21
40
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
22
|
-
* @default false
|
|
23
41
|
*/
|
|
24
42
|
disableEventShow: {
|
|
25
43
|
type: BooleanConstructor;
|
|
@@ -34,11 +52,11 @@ export class AuroDropdown extends AuroElement {
|
|
|
34
52
|
};
|
|
35
53
|
/**
|
|
36
54
|
* If declared, the dropdown displays a chevron on the right.
|
|
37
|
-
* @attr {Boolean} chevron
|
|
38
55
|
*/
|
|
39
56
|
chevron: {
|
|
40
57
|
type: BooleanConstructor;
|
|
41
58
|
reflect: boolean;
|
|
59
|
+
attribute: string;
|
|
42
60
|
};
|
|
43
61
|
/**
|
|
44
62
|
* If declared, the dropdown is not interactive.
|
|
@@ -70,7 +88,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
70
88
|
attribute: boolean;
|
|
71
89
|
};
|
|
72
90
|
/**
|
|
73
|
-
* If declared
|
|
91
|
+
* If declared, will apply error UI to the dropdown.
|
|
74
92
|
*/
|
|
75
93
|
error: {
|
|
76
94
|
type: BooleanConstructor;
|
|
@@ -118,17 +136,20 @@ export class AuroDropdown extends AuroElement {
|
|
|
118
136
|
type: BooleanConstructor;
|
|
119
137
|
};
|
|
120
138
|
/**
|
|
121
|
-
* Defines the screen size breakpoint
|
|
122
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
139
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
123
140
|
*
|
|
124
141
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
125
142
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
126
|
-
* @
|
|
143
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
144
|
+
* @default 'sm'
|
|
127
145
|
*/
|
|
128
|
-
fullscreenBreakpoint:
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
146
|
+
fullscreenBreakpoint: "xs" | "sm" | "md" | "lg" | "xl" | "disabled";
|
|
147
|
+
/**
|
|
148
|
+
* Sets the layout of the dropdown.
|
|
149
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
150
|
+
* @default 'classic'
|
|
151
|
+
*/
|
|
152
|
+
layout: "classic" | "emphasized" | "snowflake";
|
|
132
153
|
/**
|
|
133
154
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
134
155
|
* @private
|
|
@@ -147,7 +168,6 @@ export class AuroDropdown extends AuroElement {
|
|
|
147
168
|
/**
|
|
148
169
|
* If declared, the bib will NOT flip to an alternate position
|
|
149
170
|
* when there isn't enough space in the specified `placement`.
|
|
150
|
-
* @default false
|
|
151
171
|
*/
|
|
152
172
|
noFlip: {
|
|
153
173
|
type: BooleanConstructor;
|
|
@@ -155,7 +175,6 @@ export class AuroDropdown extends AuroElement {
|
|
|
155
175
|
};
|
|
156
176
|
/**
|
|
157
177
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
158
|
-
* @default false
|
|
159
178
|
*/
|
|
160
179
|
shift: {
|
|
161
180
|
type: BooleanConstructor;
|
|
@@ -184,7 +203,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
184
203
|
reflect: boolean;
|
|
185
204
|
};
|
|
186
205
|
/**
|
|
187
|
-
* DEPRECATED - use `appearance` instead.
|
|
206
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
188
207
|
*/
|
|
189
208
|
onDark: {
|
|
190
209
|
type: BooleanConstructor;
|
|
@@ -199,31 +218,21 @@ export class AuroDropdown extends AuroElement {
|
|
|
199
218
|
};
|
|
200
219
|
/**
|
|
201
220
|
* Position where the bib should appear relative to the trigger.
|
|
202
|
-
* @
|
|
221
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
222
|
+
* @default 'bottom-start'
|
|
203
223
|
*/
|
|
204
|
-
placement:
|
|
205
|
-
type: StringConstructor;
|
|
206
|
-
reflect: boolean;
|
|
207
|
-
};
|
|
224
|
+
placement: "top" | "right" | "bottom" | "left" | "bottom-start" | "top-start" | "top-end" | "right-start" | "right-end" | "bottom-end" | "left-start" | "left-end";
|
|
208
225
|
/**
|
|
209
226
|
* @private
|
|
210
227
|
*/
|
|
211
228
|
tabIndex: {
|
|
212
229
|
type: NumberConstructor;
|
|
213
230
|
};
|
|
214
|
-
/**
|
|
215
|
-
* The value for the role attribute of the trigger element.
|
|
216
|
-
*/
|
|
217
|
-
a11yRole: {
|
|
218
|
-
type: StringConstructor;
|
|
219
|
-
attribute: boolean;
|
|
220
|
-
reflect: boolean;
|
|
221
|
-
};
|
|
222
231
|
};
|
|
223
232
|
static get styles(): import("lit").CSSResult[];
|
|
224
233
|
/**
|
|
225
234
|
* This will register this element with the browser.
|
|
226
|
-
* @param {string} [name="auro-dropdown"] - The name of element that you want to register
|
|
235
|
+
* @param {string} [name="auro-dropdown"] - The name of the element that you want to register.
|
|
227
236
|
*
|
|
228
237
|
* @example
|
|
229
238
|
* AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
|
|
@@ -256,7 +265,7 @@ export class AuroDropdown extends AuroElement {
|
|
|
256
265
|
* @private
|
|
257
266
|
* @returns {void} Internal defaults.
|
|
258
267
|
*/
|
|
259
|
-
private
|
|
268
|
+
private _intializeDefaults;
|
|
260
269
|
appearance: string;
|
|
261
270
|
chevron: boolean;
|
|
262
271
|
disabled: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "9.1.
|
|
1
|
+
declare const _default: "9.1.1";
|
|
2
2
|
export default _default;
|