@aurodesignsystem-dev/auro-formkit 0.0.0-pr1448.0 → 0.0.0-pr1451.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/api.md +201 -221
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.md +21 -23
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/keyboard-behavior.md +39 -0
- package/components/checkbox/demo/readme.md +23 -35
- package/components/checkbox/dist/auro-checkbox-group.d.ts +6 -6
- package/components/checkbox/dist/auro-checkbox.d.ts +8 -8
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/README.md +13 -3
- package/components/combobox/demo/accessibility.html +57 -0
- package/components/combobox/demo/accessibility.md +77 -0
- package/components/combobox/demo/api.html +24 -0
- package/components/combobox/demo/api.md +1613 -1685
- package/components/combobox/demo/api.min.js +15 -21
- package/components/combobox/demo/design.html +83 -0
- package/components/combobox/demo/design.md +283 -0
- package/components/combobox/demo/index.html +49 -16
- package/components/combobox/demo/index.js +3 -2
- package/components/combobox/demo/index.md +861 -185
- package/components/combobox/demo/index.min.js +41 -22
- package/components/combobox/demo/install.html +84 -0
- package/components/combobox/demo/install.js +24 -0
- package/components/combobox/demo/install.md +100 -0
- package/components/combobox/demo/install.min.js +17991 -0
- package/components/combobox/demo/{keyboardBehavior.html → keyboard-behavior.html} +2 -1
- package/components/combobox/demo/keyboard-behavior.md +276 -0
- package/components/combobox/demo/layout.md +112 -0
- package/components/combobox/demo/readme.html +25 -1
- package/components/combobox/demo/readme.md +50 -52
- package/components/combobox/demo/styles.css +141 -0
- package/components/combobox/demo/voiceover.html +66 -0
- package/components/combobox/demo/voiceover.md +118 -0
- package/components/combobox/dist/auro-combobox.d.ts +36 -36
- package/components/combobox/dist/index.js +12 -17
- package/components/combobox/dist/registered.js +12 -17
- package/components/counter/demo/api.md +751 -819
- package/components/counter/demo/api.min.js +2 -2
- package/components/counter/demo/index.md +35 -39
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/demo/keyboard-behavior.md +127 -0
- package/components/counter/demo/readme.md +39 -51
- package/components/counter/dist/auro-counter-group.d.ts +2 -2
- package/components/counter/dist/auro-counter.d.ts +10 -10
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/api.md +827 -931
- package/components/datepicker/demo/api.min.js +4 -4
- package/components/datepicker/demo/index.md +79 -87
- package/components/datepicker/demo/index.min.js +4 -4
- package/components/datepicker/demo/keyboard-behavior.md +19 -0
- package/components/datepicker/demo/readme.md +19 -31
- package/components/datepicker/dist/index.js +4 -4
- package/components/datepicker/dist/registered.js +4 -4
- package/components/datepicker/dist/{auro-calendar-cell.d.ts → src/auro-calendar-cell.d.ts} +2 -2
- package/components/datepicker/dist/{auro-datepicker.d.ts → src/auro-datepicker.d.ts} +13 -13
- package/components/datepicker/dist/{utilities.d.ts → src/utilities.d.ts} +4 -4
- package/components/datepicker/dist/{utilitiesCalendar.d.ts → src/utilitiesCalendar.d.ts} +3 -3
- package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-calendar.d.ts +2 -2
- package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker.d.ts +1 -1
- package/components/dropdown/demo/api.md +795 -851
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.md +145 -155
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/demo/keyboard-behavior.md +72 -0
- package/components/dropdown/demo/readme.md +39 -51
- package/components/dropdown/dist/auro-dropdown.d.ts +22 -22
- package/components/dropdown/dist/auro-dropdownBib.d.ts +3 -3
- package/components/dropdown/dist/dropdownBibKeyboardStrategy.d.ts +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/api.md +173 -179
- package/components/form/demo/api.min.js +27 -33
- package/components/form/demo/index.md +27 -33
- package/components/form/demo/index.min.js +27 -33
- package/components/form/demo/keyboard-behavior.md +38 -0
- package/components/form/demo/readme.md +14 -28
- package/components/input/demo/api.md +572 -664
- package/components/input/demo/api.min.js +2 -2
- package/components/input/demo/index.md +93 -99
- package/components/input/demo/index.min.js +2 -2
- package/components/input/demo/keyboard-behavior.md +25 -0
- package/components/input/demo/readme.md +17 -29
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +29 -29
- package/components/input/dist/index.js +2 -2
- package/components/input/dist/registered.js +2 -2
- package/components/menu/demo/api.md +745 -789
- package/components/menu/demo/api.min.js +3 -4
- package/components/menu/demo/index.md +35 -37
- package/components/menu/demo/index.min.js +3 -4
- package/components/menu/demo/keyboard-behavior.md +18 -0
- package/components/menu/demo/readme.md +23 -35
- package/components/menu/dist/auro-menu-utils.d.ts +1 -1
- package/components/menu/dist/auro-menu.context.d.ts +3 -3
- package/components/menu/dist/auro-menu.d.ts +5 -5
- package/components/menu/dist/auro-menuoption.d.ts +6 -6
- package/components/menu/dist/index.js +3 -4
- package/components/menu/dist/registered.js +3 -4
- package/components/radio/demo/api.md +318 -350
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.md +25 -29
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/keyboard-behavior.md +72 -0
- package/components/radio/demo/readme.md +21 -33
- package/components/radio/dist/auro-radio-group.d.ts +9 -9
- package/components/radio/dist/auro-radio.d.ts +8 -8
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +12 -1
- package/components/select/demo/accessibility.html +65 -0
- package/components/select/demo/accessibility.md +76 -0
- package/components/select/demo/api.md +1713 -1793
- package/components/select/demo/api.min.js +5 -6
- package/components/select/demo/index.html +247 -37
- package/components/select/demo/index.md +225 -345
- package/components/select/demo/index.min.js +5 -6
- package/components/select/demo/keyboard-behavior.md +39 -0
- package/components/select/demo/layout.html +59 -0
- package/components/select/demo/layout.md +299 -0
- package/components/select/demo/readme.md +45 -46
- package/components/select/demo/voiceover.html +65 -0
- package/components/select/demo/voiceover.md +183 -0
- package/components/select/dist/auro-select.d.ts +11 -11
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +13 -11
- package/package.json +26 -26
- package/components/checkbox/demo/keyboardBehavior.md +0 -0
- package/components/combobox/demo/keyboardBehavior.md +0 -281
- package/components/counter/demo/keyboardBehavior.md +0 -127
- package/components/datepicker/demo/keyboardBehavior.md +0 -19
- package/components/dropdown/demo/keyboardBehavior.md +0 -77
- package/components/form/demo/keyboardBehavior.md +0 -0
- package/components/input/demo/keyboardBehavior.md +0 -0
- package/components/menu/demo/keyboardBehavior.md +0 -0
- package/components/radio/demo/keyboardBehavior.md +0 -0
- package/components/select/demo/keyboardBehavior.md +0 -245
- /package/components/datepicker/dist/{auro-calendar-month.d.ts → src/auro-calendar-month.d.ts} +0 -0
- /package/components/datepicker/dist/{auro-calendar.d.ts → src/auro-calendar.d.ts} +0 -0
- /package/components/datepicker/dist/{buttonVersion.d.ts → src/buttonVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{datepickerKeyboardStrategy.d.ts → src/datepickerKeyboardStrategy.d.ts} +0 -0
- /package/components/datepicker/dist/{iconVersion.d.ts → src/iconVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{index.d.ts → src/index.d.ts} +0 -0
- /package/components/datepicker/dist/{popoverVersion.d.ts → src/popoverVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/classic/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/classic/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/color-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/shapeSize-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/snowflake/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/snowflake/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{styles → src/styles}/tokens-css.d.ts +0 -0
- /package/components/datepicker/dist/{utilitiesCalendarRender.d.ts → src/utilitiesCalendarRender.d.ts} +0 -0
- /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/day.d.ts +0 -0
- /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-cell.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!--
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
THIS PAGE'S CONTENT SHOULD BE KEPT MINIMAL.
|
|
3
|
+
ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE — THE BASIC EXAMPLE IS USUALLY ENOUGH.
|
|
4
|
+
ALL OTHER EXAMPLES SHOULD GO IN THE API DOCUMENTATION.
|
|
5
5
|
-->
|
|
6
6
|
|
|
7
7
|
# Dropdown
|
|
@@ -53,29 +53,27 @@ The dropdown can be closed with the following actions:
|
|
|
53
53
|
### Basic
|
|
54
54
|
|
|
55
55
|
<div class="exampleWrapper">
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
57
|
+
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
58
|
+
<auro-dropdown aria-label="custom label">
|
|
59
|
+
Lorem ipsum solar
|
|
60
|
+
<div slot="trigger">
|
|
61
|
+
Trigger
|
|
62
|
+
</div>
|
|
63
|
+
</auro-dropdown>
|
|
64
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
65
65
|
</div>
|
|
66
66
|
<auro-accordion alignRight>
|
|
67
|
-
|
|
67
|
+
<span slot="trigger">See code</span>
|
|
68
68
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
|
|
69
69
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
<auro-dropdown aria-label="custom label">
|
|
71
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown aria-label="custom label">
|
|
73
72
|
Lorem ipsum solar
|
|
74
|
-
|
|
73
|
+
<div slot="trigger">
|
|
75
74
|
Trigger
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
```
|
|
75
|
+
</div>
|
|
76
|
+
</auro-dropdown></code></pre>
|
|
79
77
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
80
78
|
</auro-accordion>
|
|
81
79
|
|
|
@@ -88,196 +86,188 @@ The `auro-dropdown` element supports multiple layouts to fit different design ne
|
|
|
88
86
|
#### Classic
|
|
89
87
|
|
|
90
88
|
<div class="exampleWrapper">
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
89
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/basic.html) -->
|
|
90
|
+
<!-- The below content is automatically added from ./../apiExamples/classic/basic.html -->
|
|
91
|
+
<auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
92
|
+
<div style="padding: var(--ds-size-150);">
|
|
93
|
+
Lorem ipsum solar
|
|
94
|
+
<br />
|
|
95
|
+
<auro-button id="classicButton">
|
|
96
|
+
Dismiss Dropdown
|
|
97
|
+
</auro-button>
|
|
98
|
+
</div>
|
|
99
|
+
<span slot="helpText">
|
|
100
|
+
Help text
|
|
101
|
+
</span>
|
|
102
|
+
<div slot="trigger">
|
|
103
|
+
Trigger
|
|
104
|
+
</div>
|
|
105
|
+
</auro-dropdown>
|
|
106
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
109
107
|
</div>
|
|
110
108
|
<auro-accordion alignRight>
|
|
111
|
-
|
|
109
|
+
<span slot="trigger">See code</span>
|
|
112
110
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/classic/basic.html) -->
|
|
113
111
|
<!-- The below code snippet is automatically added from ./../apiExamples/classic/basic.html -->
|
|
114
112
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
<div style="padding: var(--ds-size-150);">
|
|
113
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown id="classic" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
114
|
+
<div style="padding: var(--ds-size-150);">
|
|
118
115
|
Lorem ipsum solar
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
<br />
|
|
117
|
+
<auro-button id="classicButton">
|
|
121
118
|
Dismiss Dropdown
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
119
|
+
</auro-button>
|
|
120
|
+
</div>
|
|
121
|
+
<span slot="helpText">
|
|
125
122
|
Help text
|
|
126
|
-
|
|
127
|
-
|
|
123
|
+
</span>
|
|
124
|
+
<div slot="trigger">
|
|
128
125
|
Trigger
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
```
|
|
126
|
+
</div>
|
|
127
|
+
</auro-dropdown></code></pre>
|
|
132
128
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
133
129
|
</auro-accordion>
|
|
134
130
|
<div class="exampleWrapper--ondark">
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
131
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/classic/appearance-inverse.html) -->
|
|
132
|
+
<!-- The below content is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
133
|
+
<auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
134
|
+
<div style="padding: var(--ds-size-150);">
|
|
135
|
+
Lorem ipsum solar
|
|
136
|
+
<br />
|
|
137
|
+
<auro-button id="classicInverseButton">
|
|
138
|
+
Dismiss Dropdown
|
|
139
|
+
</auro-button>
|
|
140
|
+
</div>
|
|
141
|
+
<span slot="helpText">
|
|
142
|
+
Help text
|
|
143
|
+
</span>
|
|
144
|
+
<div slot="trigger">
|
|
145
|
+
Trigger
|
|
146
|
+
</div>
|
|
147
|
+
</auro-dropdown>
|
|
148
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
153
149
|
</div>
|
|
154
150
|
<auro-accordion alignRight>
|
|
155
|
-
|
|
151
|
+
<span slot="trigger">See code</span>
|
|
156
152
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/classic/appearance-inverse.html) -->
|
|
157
153
|
<!-- The below code snippet is automatically added from ./../apiExamples/classic/appearance-inverse.html -->
|
|
158
154
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
<div style="padding: var(--ds-size-150);">
|
|
155
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown id="classicInverse" appearance="inverse" layout="classic" shape="classic" size="lg" chevron aria-label="Label content for screen reader">
|
|
156
|
+
<div style="padding: var(--ds-size-150);">
|
|
162
157
|
Lorem ipsum solar
|
|
163
|
-
|
|
164
|
-
|
|
158
|
+
<br />
|
|
159
|
+
<auro-button id="classicInverseButton">
|
|
165
160
|
Dismiss Dropdown
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
161
|
+
</auro-button>
|
|
162
|
+
</div>
|
|
163
|
+
<span slot="helpText">
|
|
169
164
|
Help text
|
|
170
|
-
|
|
171
|
-
|
|
165
|
+
</span>
|
|
166
|
+
<div slot="trigger">
|
|
172
167
|
Trigger
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
```
|
|
168
|
+
</div>
|
|
169
|
+
</auro-dropdown></code></pre>
|
|
176
170
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
177
171
|
</auro-accordion>
|
|
178
172
|
|
|
179
173
|
#### Emphasized
|
|
180
174
|
|
|
181
175
|
<div class="exampleWrapper--ondark">
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
176
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/emphasized/basic.html) -->
|
|
177
|
+
<!-- The below content is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
178
|
+
<auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
179
|
+
Lorem ipsum solar
|
|
180
|
+
<div slot="trigger">
|
|
181
|
+
Trigger
|
|
182
|
+
</div>
|
|
183
|
+
<span slot="helpText">
|
|
184
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
185
|
+
</span>
|
|
186
|
+
</auro-dropdown>
|
|
187
|
+
<auro-dropdown aria-label="custom label" shape="pill-left" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
188
|
+
Lorem ipsum solar
|
|
189
|
+
<div slot="trigger">
|
|
190
|
+
Trigger
|
|
191
|
+
</div>
|
|
192
|
+
<span slot="helpText">
|
|
193
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
194
|
+
</span>
|
|
195
|
+
</auro-dropdown>
|
|
196
|
+
<auro-dropdown aria-label="custom label" shape="pill-right" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
197
|
+
Lorem ipsum solar
|
|
198
|
+
<div slot="trigger">
|
|
199
|
+
Trigger
|
|
200
|
+
</div>
|
|
201
|
+
<span slot="helpText">
|
|
202
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
203
|
+
</span>
|
|
204
|
+
</auro-dropdown>
|
|
205
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
212
206
|
</div>
|
|
213
207
|
<auro-accordion alignRight>
|
|
214
|
-
|
|
208
|
+
<span slot="trigger">See code</span>
|
|
215
209
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/emphasized/basic.html) -->
|
|
216
210
|
<!-- The below code snippet is automatically added from ./../apiExamples/emphasized/basic.html -->
|
|
217
211
|
|
|
218
|
-
|
|
219
|
-
<auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
212
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown aria-label="custom label" shape="pill" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
220
213
|
Lorem ipsum solar
|
|
221
|
-
|
|
214
|
+
<div slot="trigger">
|
|
222
215
|
Trigger
|
|
223
|
-
|
|
224
|
-
|
|
216
|
+
</div>
|
|
217
|
+
<span slot="helpText">
|
|
225
218
|
Help text - Lorem ipsum solar lorem ipsum solar
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
219
|
+
</span>
|
|
220
|
+
</auro-dropdown>
|
|
221
|
+
<auro-dropdown aria-label="custom label" shape="pill-left" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
229
222
|
Lorem ipsum solar
|
|
230
|
-
|
|
223
|
+
<div slot="trigger">
|
|
231
224
|
Trigger
|
|
232
|
-
|
|
233
|
-
|
|
225
|
+
</div>
|
|
226
|
+
<span slot="helpText">
|
|
234
227
|
Help text - Lorem ipsum solar lorem ipsum solar
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
228
|
+
</span>
|
|
229
|
+
</auro-dropdown>
|
|
230
|
+
<auro-dropdown aria-label="custom label" shape="pill-right" size="xl" layout="emphasized" style="width: 249px;" appearance="inverse">
|
|
238
231
|
Lorem ipsum solar
|
|
239
|
-
|
|
232
|
+
<div slot="trigger">
|
|
240
233
|
Trigger
|
|
241
|
-
|
|
242
|
-
|
|
234
|
+
</div>
|
|
235
|
+
<span slot="helpText">
|
|
243
236
|
Help text - Lorem ipsum solar lorem ipsum solar
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
```
|
|
237
|
+
</span>
|
|
238
|
+
</auro-dropdown></code></pre>
|
|
247
239
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
248
240
|
</auro-accordion>
|
|
249
241
|
|
|
250
242
|
#### Snowflake
|
|
251
243
|
|
|
252
244
|
<div class="exampleWrapper--ondark">
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
245
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/basic.html) -->
|
|
246
|
+
<!-- The below content is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
247
|
+
<auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" appearance="inverse">
|
|
248
|
+
Lorem ipsum solar
|
|
249
|
+
<div slot="trigger">
|
|
250
|
+
Trigger
|
|
251
|
+
</div>
|
|
252
|
+
<span slot="helpText">
|
|
253
|
+
Help text - Lorem ipsum solar lorem ipsum solar
|
|
254
|
+
</span>
|
|
255
|
+
</auro-dropdown>
|
|
256
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
265
257
|
</div>
|
|
266
258
|
<auro-accordion alignRight>
|
|
267
|
-
|
|
259
|
+
<span slot="trigger">See code</span>
|
|
268
260
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/snowflake/basic.html) -->
|
|
269
261
|
<!-- The below code snippet is automatically added from ./../apiExamples/snowflake/basic.html -->
|
|
270
262
|
|
|
271
|
-
|
|
272
|
-
<auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" appearance="inverse">
|
|
263
|
+
<pre class="language-html"><code class="language-html"><auro-dropdown aria-label="custom label" shape="snowflake" size="lg" layout="snowflake" style="width: 249px;" appearance="inverse">
|
|
273
264
|
Lorem ipsum solar
|
|
274
|
-
|
|
265
|
+
<div slot="trigger">
|
|
275
266
|
Trigger
|
|
276
|
-
|
|
277
|
-
|
|
267
|
+
</div>
|
|
268
|
+
<span slot="helpText">
|
|
278
269
|
Help text - Lorem ipsum solar lorem ipsum solar
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
```
|
|
270
|
+
</span>
|
|
271
|
+
</auro-dropdown></code></pre>
|
|
282
272
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
283
273
|
</auro-accordion>
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
## Auro-Dropdown Keyboard Behavior
|
|
2
|
+
|
|
3
|
+
### Tab Behavior
|
|
4
|
+
|
|
5
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/tabindex.md) -->
|
|
6
|
+
<!-- The below content is automatically added from ./../docs/partials/tabindex.md -->
|
|
7
|
+
<p>The trigger is a focusable element and participates in the standard tab order, responding to <code>Tab</code> and <code>Shift+Tab</code> key events per <auro-hyperlink href="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Global_attributes/tabindex">native browser behavior, i.e., these keys step through the browser tabindex sequence.</auro-hyperlink></p>
|
|
8
|
+
<p>When the component is <code>disabled</code> it is removed from the <code>tabindex</code> sequence. VoiceOver's virtual cursor <em>(swipe navigation)</em> can still encounter the component, but standard keyboard <code>Tab</code> navigation skips it.</p>
|
|
9
|
+
<p>When the bib is collapsed, the bib content is excluded from the tab sequence. When <strong>expanded</strong>, focusable elements within the bib content are included in the natural tab order. In fullscreen mode, focus is trapped within the bib, and the tab sequence cycles through the bib content focusable elements until the bib is closed or the viewport no longer meets the fullscreen condition and is rendered as a popover.</p>
|
|
10
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
11
|
+
|
|
12
|
+
### Key Events
|
|
13
|
+
|
|
14
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/keyEvents.md) -->
|
|
15
|
+
<!-- The below content is automatically added from ./../docs/partials/keyEvents.md -->
|
|
16
|
+
<table>
|
|
17
|
+
<thead>
|
|
18
|
+
<tr>
|
|
19
|
+
<th>Key</th>
|
|
20
|
+
<th>Modifier</th>
|
|
21
|
+
<th>Current State</th>
|
|
22
|
+
<th>Focus Element</th>
|
|
23
|
+
<th>Behavior</th>
|
|
24
|
+
</tr>
|
|
25
|
+
</thead>
|
|
26
|
+
<tbody>
|
|
27
|
+
<tr>
|
|
28
|
+
<td rowspan="2">Enter</td>
|
|
29
|
+
<td>-</td>
|
|
30
|
+
<td>Collapsed</td>
|
|
31
|
+
<td>
|
|
32
|
+
Trigger or any <strong>focusable</strong> element within the trigger.
|
|
33
|
+
</td>
|
|
34
|
+
<td>Opens the bib.</td>
|
|
35
|
+
</tr>
|
|
36
|
+
<tr>
|
|
37
|
+
<td>-</td>
|
|
38
|
+
<td>Expanded</td>
|
|
39
|
+
<td>
|
|
40
|
+
Trigger or any <strong>focusable</strong> element within the trigger.
|
|
41
|
+
</td>
|
|
42
|
+
<td>Closes the bib.</td>
|
|
43
|
+
</tr>
|
|
44
|
+
<tr>
|
|
45
|
+
<td>Escape</td>
|
|
46
|
+
<td>-</td>
|
|
47
|
+
<td>Expanded</td>
|
|
48
|
+
<td>
|
|
49
|
+
Component <code>:host</code> or any <strong>focusable</strong> element within the component.
|
|
50
|
+
</td>
|
|
51
|
+
<td>Closes the bib.</td>
|
|
52
|
+
</tr>
|
|
53
|
+
<tr>
|
|
54
|
+
<td rowspan="2">Space</td>
|
|
55
|
+
<td>-</td>
|
|
56
|
+
<td>Collapsed</td>
|
|
57
|
+
<td>
|
|
58
|
+
Trigger or any <strong>focusable</strong> element within the trigger.
|
|
59
|
+
</td>
|
|
60
|
+
<td>Opens the bib.</td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>-</td>
|
|
64
|
+
<td>Expanded</td>
|
|
65
|
+
<td>
|
|
66
|
+
Trigger or any <strong>focusable</strong> element within the trigger.
|
|
67
|
+
</td>
|
|
68
|
+
<td>Closes the bib.</td>
|
|
69
|
+
</tr>
|
|
70
|
+
</tbody>
|
|
71
|
+
</table>
|
|
72
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -48,9 +48,7 @@ The `auro-dropdown` element should be used in situations where users may:
|
|
|
48
48
|
|
|
49
49
|
#### NPM Installation
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
$ npm i @aurodesignsystem/auro-formkit
|
|
53
|
-
```
|
|
51
|
+
<pre class="language-shell"><code class="language-shell">$ npm i @aurodesignsystem/auro-formkit</code></pre>
|
|
54
52
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
55
53
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../../docs/templates/gettingStarted.md) -->
|
|
56
54
|
<!-- The below content is automatically added from ../../docs/templates/gettingStarted.md -->
|
|
@@ -59,13 +57,11 @@ $ npm i @aurodesignsystem/auro-formkit
|
|
|
59
57
|
|
|
60
58
|
When using TypeScript set `moduleResolution` to `bundler`, add the following to your `tsconfig.json`:
|
|
61
59
|
|
|
62
|
-
|
|
63
|
-
{
|
|
60
|
+
<pre class="language-json"><code class="language-json">{
|
|
64
61
|
"compilerOptions": {
|
|
65
62
|
"moduleResolution": "bundler"
|
|
66
63
|
}
|
|
67
|
-
}
|
|
68
|
-
```
|
|
64
|
+
}</code></pre>
|
|
69
65
|
|
|
70
66
|
This configuration enables proper module resolution for the component's TypeScript files.
|
|
71
67
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -76,9 +72,7 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
76
72
|
<!-- The below content is automatically added from ../../docs/templates/bundleInstallDescription.md -->
|
|
77
73
|
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.
|
|
78
74
|
|
|
79
|
-
|
|
80
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-dropdown/+esm"></script>
|
|
81
|
-
```
|
|
75
|
+
<pre class="language-html"><code class="language-html"><script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@latest/auro-dropdown/+esm"></script></code></pre>
|
|
82
76
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
83
77
|
|
|
84
78
|
## Formkit Development
|
|
@@ -92,9 +86,7 @@ Running the `dev` command will open a `localhost` development server for all com
|
|
|
92
86
|
|
|
93
87
|
To only develop a single component, use the `--filter` flag:
|
|
94
88
|
|
|
95
|
-
|
|
96
|
-
npx turbo dev --filter=@aurodesignsystem/auro-input
|
|
97
|
-
```
|
|
89
|
+
<pre class="language-shell"><code class="language-shell">npx turbo dev --filter=@aurodesignsystem/auro-input</code></pre>
|
|
98
90
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
99
91
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/customRegistration.md) -->
|
|
100
92
|
<!-- The below content is automatically added from ./docs/partials/customRegistration.md -->
|
|
@@ -109,52 +101,48 @@ However, if you need to load multiple versions of the same component on a single
|
|
|
109
101
|
|
|
110
102
|
You can do this by importing only the component class and using the `register(name)` method with a unique name:
|
|
111
103
|
|
|
112
|
-
|
|
113
|
-
// Import the class only
|
|
104
|
+
<pre class="language-js"><code class="language-js">// Import the class only
|
|
114
105
|
import { AuroDropdown } from '@aurodesignsystem/auro-formkit/auro-dropdown/class';
|
|
115
|
-
|
|
106
|
+
|
|
116
107
|
// Register with a custom name if desired
|
|
117
|
-
AuroDropdown.register('custom-dropdown')
|
|
118
|
-
```
|
|
108
|
+
AuroDropdown.register('custom-dropdown');</code></pre>
|
|
119
109
|
|
|
120
110
|
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
111
|
|
|
122
112
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
113
|
+
<custom-dropdown id="customCommon" layout="classic" shape="classic" size="lg" aria-label="Label content for screen reader">
|
|
114
|
+
<div style="padding: var(--ds-size-150);">
|
|
115
|
+
Lorem ipsum solar
|
|
116
|
+
<br />
|
|
117
|
+
<auro-button id="customCommonButton">
|
|
118
|
+
Dismiss Dropdown
|
|
119
|
+
</auro-button>
|
|
120
|
+
</div>
|
|
121
|
+
<span slot="helpText">
|
|
122
|
+
Help text
|
|
123
|
+
</span>
|
|
124
|
+
<div slot="trigger">
|
|
125
|
+
Trigger
|
|
126
|
+
</div>
|
|
127
|
+
</custom-dropdown>
|
|
138
128
|
</div>
|
|
139
129
|
<auro-accordion alignRight>
|
|
140
|
-
|
|
130
|
+
<span slot="trigger">See code</span>
|
|
141
131
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
</custom-dropdown>
|
|
158
|
-
```
|
|
132
|
+
<pre class="language-html"><code class="language-html"><custom-dropdown id="customCommon" layout="classic" shape="classic" size="lg" aria-label="Label content for screen reader">
|
|
133
|
+
<div style="padding: var(--ds-size-150);">
|
|
134
|
+
Lorem ipsum solar
|
|
135
|
+
<br />
|
|
136
|
+
<auro-button id="customCommonButton">
|
|
137
|
+
Dismiss Dropdown
|
|
138
|
+
</auro-button>
|
|
139
|
+
</div>
|
|
140
|
+
<span slot="helpText">
|
|
141
|
+
Help text
|
|
142
|
+
</span>
|
|
143
|
+
<div slot="trigger">
|
|
144
|
+
Trigger
|
|
145
|
+
</div>
|
|
146
|
+
</custom-dropdown></code></pre>
|
|
159
147
|
</auro-accordion>
|
|
160
148
|
<!-- AURO-GENERATED-CONTENT:END -->
|