@cloudscape-design/components-themeable 3.0.155 → 3.0.157
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/box/text.scss +10 -1
- package/lib/internal/scss/button/styles.scss +2 -2
- package/lib/internal/scss/expandable-section/styles.scss +1 -0
- package/lib/internal/scss/header/styles.scss +17 -7
- package/lib/internal/scss/internal/components/menu-dropdown/styles.scss +1 -1
- package/lib/internal/scss/internal/styles/links.scss +1 -0
- package/lib/internal/scss/internal/styles/typography/mixins.scss +17 -0
- package/lib/internal/scss/link/styles.scss +4 -0
- package/lib/internal/scss/pagination/styles.scss +1 -0
- package/lib/internal/scss/pie-chart/styles.scss +1 -1
- package/lib/internal/scss/progress-bar/styles.scss +1 -1
- package/lib/internal/scss/segmented-control/segment.scss +2 -2
- package/lib/internal/scss/side-navigation/styles.scss +1 -0
- package/lib/internal/scss/table/header-cell/styles.scss +1 -0
- package/lib/internal/scss/tabs/tab-header-bar.scss +1 -0
- package/lib/internal/scss/top-navigation/styles.scss +1 -1
- package/lib/internal/template/box/styles.css.js +189 -189
- package/lib/internal/template/box/styles.scoped.css +239 -233
- package/lib/internal/template/box/styles.selectors.js +189 -189
- package/lib/internal/template/button/styles.css.js +18 -18
- package/lib/internal/template/button/styles.scoped.css +140 -138
- package/lib/internal/template/button/styles.selectors.js +18 -18
- package/lib/internal/template/cards/styles.css.js +37 -37
- package/lib/internal/template/cards/styles.scoped.css +46 -44
- package/lib/internal/template/cards/styles.selectors.js +37 -37
- package/lib/internal/template/expandable-section/styles.css.js +21 -21
- package/lib/internal/template/expandable-section/styles.scoped.css +44 -42
- package/lib/internal/template/expandable-section/styles.selectors.js +21 -21
- package/lib/internal/template/header/internal.d.ts.map +1 -1
- package/lib/internal/template/header/internal.js +1 -1
- package/lib/internal/template/header/internal.js.map +1 -1
- package/lib/internal/template/header/styles.css.js +44 -40
- package/lib/internal/template/header/styles.scoped.css +74 -52
- package/lib/internal/template/header/styles.selectors.js +44 -40
- package/lib/internal/template/help-panel/styles.css.js +4 -4
- package/lib/internal/template/help-panel/styles.scoped.css +72 -58
- package/lib/internal/template/help-panel/styles.selectors.js +4 -4
- package/lib/internal/template/internal/base-component/styles.scoped.css +4 -0
- package/lib/internal/template/internal/components/button-trigger/index.d.ts +1 -0
- package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/index.js +2 -2
- package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
- package/lib/internal/template/internal/components/menu-dropdown/styles.css.js +7 -7
- package/lib/internal/template/internal/components/menu-dropdown/styles.scoped.css +16 -14
- package/lib/internal/template/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/generated/theming/index.cjs +6 -0
- package/lib/internal/template/internal/generated/theming/index.js +6 -0
- package/lib/internal/template/link/styles.css.js +20 -20
- package/lib/internal/template/link/styles.scoped.css +75 -71
- package/lib/internal/template/link/styles.selectors.js +20 -20
- package/lib/internal/template/multiselect/interfaces.d.ts +4 -0
- package/lib/internal/template/multiselect/interfaces.d.ts.map +1 -1
- package/lib/internal/template/multiselect/interfaces.js.map +1 -1
- package/lib/internal/template/multiselect/internal.d.ts.map +1 -1
- package/lib/internal/template/multiselect/internal.js +2 -2
- package/lib/internal/template/multiselect/internal.js.map +1 -1
- package/lib/internal/template/pagination/styles.css.js +9 -9
- package/lib/internal/template/pagination/styles.scoped.css +25 -23
- package/lib/internal/template/pagination/styles.selectors.js +9 -9
- package/lib/internal/template/pie-chart/styles.css.js +27 -27
- package/lib/internal/template/pie-chart/styles.scoped.css +45 -43
- package/lib/internal/template/pie-chart/styles.selectors.js +27 -27
- package/lib/internal/template/popover/styles.css.js +50 -50
- package/lib/internal/template/popover/styles.scoped.css +67 -63
- package/lib/internal/template/popover/styles.selectors.js +50 -50
- package/lib/internal/template/progress-bar/styles.css.js +18 -18
- package/lib/internal/template/progress-bar/styles.scoped.css +34 -32
- package/lib/internal/template/progress-bar/styles.selectors.js +18 -18
- package/lib/internal/template/segmented-control/styles.css.js +14 -14
- package/lib/internal/template/segmented-control/styles.scoped.css +37 -35
- package/lib/internal/template/segmented-control/styles.selectors.js +14 -14
- package/lib/internal/template/select/interfaces.d.ts +4 -0
- package/lib/internal/template/select/interfaces.d.ts.map +1 -1
- package/lib/internal/template/select/interfaces.js.map +1 -1
- package/lib/internal/template/select/internal.d.ts +1 -1
- package/lib/internal/template/select/internal.d.ts.map +1 -1
- package/lib/internal/template/select/internal.js +2 -2
- package/lib/internal/template/select/internal.js.map +1 -1
- package/lib/internal/template/select/utils/use-select.d.ts +2 -1
- package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
- package/lib/internal/template/select/utils/use-select.js +4 -2
- package/lib/internal/template/select/utils/use-select.js.map +1 -1
- package/lib/internal/template/side-navigation/styles.css.js +22 -22
- package/lib/internal/template/side-navigation/styles.scoped.css +36 -32
- package/lib/internal/template/side-navigation/styles.selectors.js +22 -22
- package/lib/internal/template/split-panel/styles.css.js +59 -59
- package/lib/internal/template/split-panel/styles.scoped.css +83 -81
- package/lib/internal/template/split-panel/styles.selectors.js +59 -59
- package/lib/internal/template/table/header-cell/styles.css.js +18 -18
- package/lib/internal/template/table/header-cell/styles.scoped.css +32 -30
- package/lib/internal/template/table/header-cell/styles.selectors.js +18 -18
- package/lib/internal/template/tabs/styles.css.js +21 -21
- package/lib/internal/template/tabs/styles.scoped.css +40 -38
- package/lib/internal/template/tabs/styles.selectors.js +21 -21
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +12 -10
- package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +70 -60
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/top-navigation/1.0-beta/styles.css.js +25 -25
- package/lib/internal/template/top-navigation/1.0-beta/styles.scoped.css +44 -42
- package/lib/internal/template/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/lib/internal/template/top-navigation/styles.css.js +47 -47
- package/lib/internal/template/top-navigation/styles.scoped.css +72 -66
- package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"progress": "
|
|
5
|
-
"result-state": "awsui_result-
|
|
6
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
7
|
-
"root": "
|
|
8
|
-
"with-result-button": "awsui_with-result-
|
|
9
|
-
"result-text": "awsui_result-
|
|
10
|
-
"result-container-error": "awsui_result-container-
|
|
11
|
-
"result-container-success": "awsui_result-container-
|
|
12
|
-
"result-button": "awsui_result-
|
|
13
|
-
"word-wrap": "awsui_word-
|
|
14
|
-
"label-flash": "awsui_label-
|
|
15
|
-
"label-key-value": "awsui_label-key-
|
|
16
|
-
"flash": "
|
|
17
|
-
"progress-container": "awsui_progress-
|
|
18
|
-
"percentage-container": "awsui_percentage-
|
|
19
|
-
"percentage": "
|
|
20
|
-
"complete": "
|
|
21
|
-
"progress-in-flash": "awsui_progress-in-
|
|
4
|
+
"progress": "awsui_progress_11huc_983fm_185",
|
|
5
|
+
"result-state": "awsui_result-state_11huc_983fm_199",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_983fm_1",
|
|
7
|
+
"root": "awsui_root_11huc_983fm_221",
|
|
8
|
+
"with-result-button": "awsui_with-result-button_11huc_983fm_232",
|
|
9
|
+
"result-text": "awsui_result-text_11huc_983fm_236",
|
|
10
|
+
"result-container-error": "awsui_result-container-error_11huc_983fm_240",
|
|
11
|
+
"result-container-success": "awsui_result-container-success_11huc_983fm_240",
|
|
12
|
+
"result-button": "awsui_result-button_11huc_983fm_244",
|
|
13
|
+
"word-wrap": "awsui_word-wrap_11huc_983fm_249",
|
|
14
|
+
"label-flash": "awsui_label-flash_11huc_983fm_255",
|
|
15
|
+
"label-key-value": "awsui_label-key-value_11huc_983fm_259",
|
|
16
|
+
"flash": "awsui_flash_11huc_983fm_267",
|
|
17
|
+
"progress-container": "awsui_progress-container_11huc_983fm_271",
|
|
18
|
+
"percentage-container": "awsui_percentage-container_11huc_983fm_278",
|
|
19
|
+
"percentage": "awsui_percentage_11huc_983fm_278",
|
|
20
|
+
"complete": "awsui_complete_11huc_983fm_313",
|
|
21
|
+
"progress-in-flash": "awsui_progress-in-flash_11huc_983fm_328"
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -182,27 +182,27 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
.
|
|
185
|
+
.awsui_progress_11huc_983fm_185:not(#\9)::-webkit-progress-value {
|
|
186
186
|
-webkit-transition: width var(--motion-duration-moderate-vgx1te, 135ms) linear;
|
|
187
187
|
transition: width var(--motion-duration-moderate-vgx1te, 135ms) linear;
|
|
188
188
|
}
|
|
189
189
|
@media (prefers-reduced-motion: reduce) {
|
|
190
|
-
.
|
|
190
|
+
.awsui_progress_11huc_983fm_185:not(#\9)::-webkit-progress-value {
|
|
191
191
|
animation: none;
|
|
192
192
|
-webkit-transition: none;
|
|
193
193
|
transition: none;
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
|
-
.awsui-motion-disabled .
|
|
196
|
+
.awsui-motion-disabled .awsui_progress_11huc_983fm_185:not(#\9)::-webkit-progress-value, .awsui-mode-entering .awsui_progress_11huc_983fm_185:not(#\9)::-webkit-progress-value {
|
|
197
197
|
animation: none;
|
|
198
198
|
-webkit-transition: none;
|
|
199
199
|
transition: none;
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
.awsui_result-
|
|
203
|
-
animation: awsui_awsui-motion-fade-
|
|
202
|
+
.awsui_result-state_11huc_983fm_199:not(#\9) {
|
|
203
|
+
animation: awsui_awsui-motion-fade-in_11huc_983fm_1 var(--motion-duration-transition-show-paced-ai4wlf, 180ms) var(--motion-easing-transition-show-paced-bg1hyg, ease-out);
|
|
204
204
|
}
|
|
205
|
-
@keyframes awsui_awsui-motion-fade-
|
|
205
|
+
@keyframes awsui_awsui-motion-fade-in_11huc_983fm_1 {
|
|
206
206
|
from {
|
|
207
207
|
opacity: 0.2;
|
|
208
208
|
}
|
|
@@ -211,17 +211,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
@media (prefers-reduced-motion: reduce) {
|
|
214
|
-
.awsui_result-
|
|
214
|
+
.awsui_result-state_11huc_983fm_199:not(#\9) {
|
|
215
215
|
animation: none;
|
|
216
216
|
transition: none;
|
|
217
217
|
}
|
|
218
218
|
}
|
|
219
|
-
.awsui-motion-disabled .awsui_result-
|
|
219
|
+
.awsui-motion-disabled .awsui_result-state_11huc_983fm_199:not(#\9), .awsui-mode-entering .awsui_result-state_11huc_983fm_199:not(#\9) {
|
|
220
220
|
animation: none;
|
|
221
221
|
transition: none;
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
.
|
|
224
|
+
.awsui_root_11huc_983fm_221:not(#\9) {
|
|
225
225
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
226
226
|
border-collapse: separate;
|
|
227
227
|
border-spacing: 0;
|
|
@@ -258,51 +258,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
258
258
|
font-family: var(--font-family-base-mylvzb, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
.awsui_with-result-
|
|
261
|
+
.awsui_with-result-button_11huc_983fm_232:not(#\9) {
|
|
262
262
|
padding-right: var(--space-m-17eucw, 16px);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
.awsui_result-
|
|
265
|
+
.awsui_result-text_11huc_983fm_236:not(#\9) {
|
|
266
266
|
/* used in test-utils */
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
.awsui_result-container-
|
|
269
|
+
.awsui_result-container-error_11huc_983fm_240:not(#\9), .awsui_result-container-success_11huc_983fm_240:not(#\9) {
|
|
270
270
|
/* used in test-utils */
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
.awsui_result-
|
|
273
|
+
.awsui_result-button_11huc_983fm_244:not(#\9) {
|
|
274
274
|
display: inline-block;
|
|
275
275
|
margin: var(--space-scaled-xxs-95dhkm, 4px) 0;
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
-
.awsui_word-
|
|
278
|
+
.awsui_word-wrap_11huc_983fm_249:not(#\9) {
|
|
279
279
|
min-width: 0;
|
|
280
280
|
-ms-word-break: break-all;
|
|
281
281
|
word-break: break-word;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
.awsui_label-
|
|
284
|
+
.awsui_label-flash_11huc_983fm_255:not(#\9) {
|
|
285
285
|
color: "inherit";
|
|
286
286
|
font-weight: 700;
|
|
287
287
|
}
|
|
288
|
-
.awsui_label-key-
|
|
288
|
+
.awsui_label-key-value_11huc_983fm_259:not(#\9) {
|
|
289
|
+
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
290
|
+
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
289
291
|
font-weight: var(--font-display-label-weight-tjy9e4, 400);
|
|
290
292
|
color: var(--color-text-label-kjjshz, #545b64);
|
|
291
293
|
margin-bottom: var(--space-scaled-xxxs-b6dm8t, 2px);
|
|
292
294
|
}
|
|
293
295
|
|
|
294
|
-
.
|
|
296
|
+
.awsui_flash_11huc_983fm_267:not(#\9) {
|
|
295
297
|
color: inherit;
|
|
296
298
|
}
|
|
297
299
|
|
|
298
|
-
.awsui_progress-
|
|
300
|
+
.awsui_progress-container_11huc_983fm_271:not(#\9) {
|
|
299
301
|
display: flex;
|
|
300
302
|
align-items: center;
|
|
301
303
|
max-width: 800px;
|
|
302
304
|
height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
303
305
|
}
|
|
304
306
|
|
|
305
|
-
.awsui_percentage-
|
|
307
|
+
.awsui_percentage-container_11huc_983fm_278:not(#\9) {
|
|
306
308
|
width: 33px;
|
|
307
309
|
flex-shrink: 0;
|
|
308
310
|
white-space: nowrap;
|
|
@@ -312,11 +314,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
312
314
|
letter-spacing: var(--font-body-s-letter-spacing-p88gax, normal);
|
|
313
315
|
}
|
|
314
316
|
|
|
315
|
-
.
|
|
317
|
+
.awsui_percentage_11huc_983fm_278:not(#\9) {
|
|
316
318
|
/* used in test-utils */
|
|
317
319
|
}
|
|
318
320
|
|
|
319
|
-
.
|
|
321
|
+
.awsui_progress_11huc_983fm_185:not(#\9) {
|
|
320
322
|
width: 100%;
|
|
321
323
|
margin-right: var(--space-s-hv8c1d, 12px);
|
|
322
324
|
min-width: 0;
|
|
@@ -326,44 +328,44 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
326
328
|
border-radius: 10px;
|
|
327
329
|
background-color: var(--color-background-progress-bar-layout-default-teir10, #eaeded);
|
|
328
330
|
}
|
|
329
|
-
.
|
|
331
|
+
.awsui_progress_11huc_983fm_185:not(#\9)::-webkit-progress-bar {
|
|
330
332
|
height: 4px;
|
|
331
333
|
border: 0 none;
|
|
332
334
|
box-sizing: border-box;
|
|
333
335
|
border-radius: 10px;
|
|
334
336
|
background-color: var(--color-background-progress-bar-layout-default-teir10, #eaeded);
|
|
335
337
|
}
|
|
336
|
-
.
|
|
338
|
+
.awsui_progress_11huc_983fm_185:not(#\9)::-webkit-progress-value {
|
|
337
339
|
border-radius: 10px 0px 0px 10px;
|
|
338
340
|
background-color: var(--color-background-progress-bar-content-default-kdvzje, #0073bb);
|
|
339
341
|
}
|
|
340
|
-
.
|
|
342
|
+
.awsui_progress_11huc_983fm_185.awsui_complete_11huc_983fm_313:not(#\9)::-webkit-progress-value {
|
|
341
343
|
border-radius: 10px;
|
|
342
344
|
}
|
|
343
|
-
.
|
|
345
|
+
.awsui_progress_11huc_983fm_185:not(#\9)::-moz-progress-bar {
|
|
344
346
|
border-radius: 10px 0px 0px 10px;
|
|
345
347
|
background-color: var(--color-background-progress-bar-content-default-kdvzje, #0073bb);
|
|
346
348
|
}
|
|
347
|
-
.
|
|
349
|
+
.awsui_progress_11huc_983fm_185:not(#\9)::-ms-fill {
|
|
348
350
|
border-radius: 10px 0px 0px 10px;
|
|
349
351
|
background-color: #0073bb;
|
|
350
352
|
border: none;
|
|
351
353
|
}
|
|
352
|
-
.
|
|
354
|
+
.awsui_progress_11huc_983fm_185.awsui_complete_11huc_983fm_313:not(#\9)::-ms-fill {
|
|
353
355
|
border-radius: 10px;
|
|
354
356
|
}
|
|
355
|
-
.
|
|
357
|
+
.awsui_progress_11huc_983fm_185.awsui_progress-in-flash_11huc_983fm_328:not(#\9) {
|
|
356
358
|
background-color: var(--color-background-progress-bar-layout-in-flash-phmfak, rgba(255, 255, 255, 0.25));
|
|
357
359
|
}
|
|
358
|
-
.
|
|
360
|
+
.awsui_progress_11huc_983fm_185.awsui_progress-in-flash_11huc_983fm_328:not(#\9)::-webkit-progress-bar {
|
|
359
361
|
background-color: var(--color-background-progress-bar-layout-in-flash-phmfak, rgba(255, 255, 255, 0.25));
|
|
360
362
|
}
|
|
361
|
-
.
|
|
363
|
+
.awsui_progress_11huc_983fm_185.awsui_progress-in-flash_11huc_983fm_328:not(#\9)::-webkit-progress-value {
|
|
362
364
|
background-color: var(--color-background-progress-bar-content-in-flash-ka071o, rgba(255, 255, 255, 0.7));
|
|
363
365
|
}
|
|
364
|
-
.
|
|
366
|
+
.awsui_progress_11huc_983fm_185.awsui_progress-in-flash_11huc_983fm_328:not(#\9)::-moz-progress-bar {
|
|
365
367
|
background-color: var(--color-background-progress-bar-content-in-flash-ka071o, rgba(255, 255, 255, 0.7));
|
|
366
368
|
}
|
|
367
|
-
.
|
|
369
|
+
.awsui_progress_11huc_983fm_185.awsui_progress-in-flash_11huc_983fm_328:not(#\9)::-ms-fill {
|
|
368
370
|
background-color: rgba(255, 255, 255, 0.7);
|
|
369
371
|
}
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"progress": "
|
|
6
|
-
"result-state": "awsui_result-
|
|
7
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
8
|
-
"root": "
|
|
9
|
-
"with-result-button": "awsui_with-result-
|
|
10
|
-
"result-text": "awsui_result-
|
|
11
|
-
"result-container-error": "awsui_result-container-
|
|
12
|
-
"result-container-success": "awsui_result-container-
|
|
13
|
-
"result-button": "awsui_result-
|
|
14
|
-
"word-wrap": "awsui_word-
|
|
15
|
-
"label-flash": "awsui_label-
|
|
16
|
-
"label-key-value": "awsui_label-key-
|
|
17
|
-
"flash": "
|
|
18
|
-
"progress-container": "awsui_progress-
|
|
19
|
-
"percentage-container": "awsui_percentage-
|
|
20
|
-
"percentage": "
|
|
21
|
-
"complete": "
|
|
22
|
-
"progress-in-flash": "awsui_progress-in-
|
|
5
|
+
"progress": "awsui_progress_11huc_983fm_185",
|
|
6
|
+
"result-state": "awsui_result-state_11huc_983fm_199",
|
|
7
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_11huc_983fm_1",
|
|
8
|
+
"root": "awsui_root_11huc_983fm_221",
|
|
9
|
+
"with-result-button": "awsui_with-result-button_11huc_983fm_232",
|
|
10
|
+
"result-text": "awsui_result-text_11huc_983fm_236",
|
|
11
|
+
"result-container-error": "awsui_result-container-error_11huc_983fm_240",
|
|
12
|
+
"result-container-success": "awsui_result-container-success_11huc_983fm_240",
|
|
13
|
+
"result-button": "awsui_result-button_11huc_983fm_244",
|
|
14
|
+
"word-wrap": "awsui_word-wrap_11huc_983fm_249",
|
|
15
|
+
"label-flash": "awsui_label-flash_11huc_983fm_255",
|
|
16
|
+
"label-key-value": "awsui_label-key-value_11huc_983fm_259",
|
|
17
|
+
"flash": "awsui_flash_11huc_983fm_267",
|
|
18
|
+
"progress-container": "awsui_progress-container_11huc_983fm_271",
|
|
19
|
+
"percentage-container": "awsui_percentage-container_11huc_983fm_278",
|
|
20
|
+
"percentage": "awsui_percentage_11huc_983fm_278",
|
|
21
|
+
"complete": "awsui_complete_11huc_983fm_313",
|
|
22
|
+
"progress-in-flash": "awsui_progress-in-flash_11huc_983fm_328"
|
|
23
23
|
};
|
|
24
24
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"segment": "
|
|
5
|
-
"disabled": "
|
|
6
|
-
"selected": "
|
|
7
|
-
"icon": "
|
|
8
|
-
"with-text": "awsui_with-
|
|
9
|
-
"with-no-text": "awsui_with-no-
|
|
10
|
-
"root": "
|
|
11
|
-
"segment-part": "awsui_segment-
|
|
12
|
-
"select": "
|
|
13
|
-
"segment-count-2": "awsui_segment-count-
|
|
14
|
-
"segment-count-3": "awsui_segment-count-
|
|
15
|
-
"segment-count-4": "awsui_segment-count-
|
|
16
|
-
"segment-count-5": "awsui_segment-count-
|
|
17
|
-
"segment-count-6": "awsui_segment-count-
|
|
4
|
+
"segment": "awsui_segment_8cbea_116ec_97",
|
|
5
|
+
"disabled": "awsui_disabled_8cbea_116ec_166",
|
|
6
|
+
"selected": "awsui_selected_8cbea_116ec_174",
|
|
7
|
+
"icon": "awsui_icon_8cbea_116ec_195",
|
|
8
|
+
"with-text": "awsui_with-text_8cbea_116ec_199",
|
|
9
|
+
"with-no-text": "awsui_with-no-text_8cbea_116ec_205",
|
|
10
|
+
"root": "awsui_root_8cbea_116ec_216",
|
|
11
|
+
"segment-part": "awsui_segment-part_8cbea_116ec_227",
|
|
12
|
+
"select": "awsui_select_8cbea_116ec_174",
|
|
13
|
+
"segment-count-2": "awsui_segment-count-2_8cbea_116ec_246",
|
|
14
|
+
"segment-count-3": "awsui_segment-count-3_8cbea_116ec_251",
|
|
15
|
+
"segment-count-4": "awsui_segment-count-4_8cbea_116ec_256",
|
|
16
|
+
"segment-count-5": "awsui_segment-count-5_8cbea_116ec_261",
|
|
17
|
+
"segment-count-6": "awsui_segment-count-6_8cbea_116ec_266"
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -94,56 +94,58 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.
|
|
97
|
+
.awsui_segment_8cbea_116ec_97:not(#\9) {
|
|
98
98
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
99
99
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
100
100
|
word-wrap: break-word;
|
|
101
101
|
max-width: 100%;
|
|
102
102
|
overflow: hidden;
|
|
103
|
+
font-weight: var(--font-button-weight-of7qcx, 700);
|
|
104
|
+
-webkit-font-smoothing: var(--font-smoothing-webkit-aglr0j, auto);
|
|
105
|
+
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-f5m4xg, auto);
|
|
106
|
+
letter-spacing: 0.25px;
|
|
103
107
|
border: var(--border-field-width-y6x4sn, 1px) solid var(--color-border-segment-default-zm0agy, #687078);
|
|
104
108
|
padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-l-4vl6xu, 20px);
|
|
105
109
|
border-right-width: 0;
|
|
106
|
-
font-weight: var(--font-button-weight-of7qcx, 700);
|
|
107
|
-
letter-spacing: 0.25px;
|
|
108
110
|
background: var(--color-background-segment-default-bjnpj3, #ffffff);
|
|
109
111
|
color: var(--color-text-segment-default-9k644f, #545b64);
|
|
110
112
|
overflow: visible;
|
|
111
113
|
}
|
|
112
|
-
.
|
|
114
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):focus {
|
|
113
115
|
outline: none;
|
|
114
116
|
}
|
|
115
|
-
.
|
|
117
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):nth-child(1) {
|
|
116
118
|
grid-column: 1;
|
|
117
119
|
-ms-grid-column: 1;
|
|
118
120
|
}
|
|
119
|
-
.
|
|
121
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):nth-child(2) {
|
|
120
122
|
grid-column: 2;
|
|
121
123
|
-ms-grid-column: 2;
|
|
122
124
|
}
|
|
123
|
-
.
|
|
125
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):nth-child(3) {
|
|
124
126
|
grid-column: 3;
|
|
125
127
|
-ms-grid-column: 3;
|
|
126
128
|
}
|
|
127
|
-
.
|
|
129
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):nth-child(4) {
|
|
128
130
|
grid-column: 4;
|
|
129
131
|
-ms-grid-column: 4;
|
|
130
132
|
}
|
|
131
|
-
.
|
|
133
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):nth-child(5) {
|
|
132
134
|
grid-column: 5;
|
|
133
135
|
-ms-grid-column: 5;
|
|
134
136
|
}
|
|
135
|
-
.
|
|
137
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):nth-child(6) {
|
|
136
138
|
grid-column: 6;
|
|
137
139
|
-ms-grid-column: 6;
|
|
138
140
|
}
|
|
139
|
-
.
|
|
141
|
+
.awsui_segment_8cbea_116ec_97[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
140
142
|
position: relative;
|
|
141
143
|
}
|
|
142
|
-
.
|
|
144
|
+
.awsui_segment_8cbea_116ec_97[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
143
145
|
outline: 2px dotted transparent;
|
|
144
146
|
outline-offset: calc(var(--space-segmented-control-focus-outline-gutter-82bijn, 0px) - 1px);
|
|
145
147
|
}
|
|
146
|
-
.
|
|
148
|
+
.awsui_segment_8cbea_116ec_97[data-awsui-focus-visible=true]:not(#\9):focus::before {
|
|
147
149
|
content: " ";
|
|
148
150
|
display: block;
|
|
149
151
|
position: absolute;
|
|
@@ -154,53 +156,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
156
|
border-radius: var(--border-radius-control-default-focus-ring-hekmgc, 2px);
|
|
155
157
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
|
|
156
158
|
}
|
|
157
|
-
.
|
|
159
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):last-child {
|
|
158
160
|
border-right-width: var(--border-field-width-y6x4sn, 1px);
|
|
159
161
|
border-radius: 0 var(--border-radius-button-qh52qv, 2px) var(--border-radius-button-qh52qv, 2px) 0;
|
|
160
162
|
}
|
|
161
|
-
.
|
|
163
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):first-child {
|
|
162
164
|
border-radius: var(--border-radius-button-qh52qv, 2px) 0 0 var(--border-radius-button-qh52qv, 2px);
|
|
163
165
|
}
|
|
164
|
-
.
|
|
166
|
+
.awsui_segment_8cbea_116ec_97.awsui_disabled_8cbea_116ec_166:not(#\9) {
|
|
165
167
|
background: var(--color-background-segment-disabled-gcpwaz, #ffffff);
|
|
166
168
|
border-color: var(--color-border-segment-disabled-fqvszu, #d5dbdb);
|
|
167
169
|
color: var(--color-text-interactive-disabled-jcikk2, #aab7b8);
|
|
168
170
|
}
|
|
169
|
-
.
|
|
171
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):not(.awsui_disabled_8cbea_116ec_166) + .awsui_segment_8cbea_116ec_97.awsui_disabled_8cbea_116ec_166 {
|
|
170
172
|
border-left-color: var(--color-border-segment-default-zm0agy, #687078);
|
|
171
173
|
}
|
|
172
|
-
.
|
|
174
|
+
.awsui_segment_8cbea_116ec_97.awsui_selected_8cbea_116ec_174:not(#\9) {
|
|
173
175
|
background: var(--color-background-segment-active-khzpn5, #eaeded);
|
|
174
176
|
border-color: var(--color-border-segment-active-9wobfw, #16191f);
|
|
175
177
|
color: var(--color-text-segment-active-o087le, #16191f);
|
|
176
178
|
}
|
|
177
|
-
.
|
|
179
|
+
.awsui_segment_8cbea_116ec_97.awsui_selected_8cbea_116ec_174 + .awsui_segment_8cbea_116ec_97:not(#\9), .awsui_segment_8cbea_116ec_97.awsui_selected_8cbea_116ec_174 + .awsui_segment_8cbea_116ec_97.awsui_disabled_8cbea_116ec_166:not(#\9) {
|
|
178
180
|
border-left-color: var(--color-border-segment-active-9wobfw, #16191f);
|
|
179
181
|
}
|
|
180
|
-
.
|
|
182
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):hover:not(.awsui_selected_8cbea_116ec_174):not(.awsui_disabled_8cbea_116ec_166):not(:focus) {
|
|
181
183
|
background: var(--color-background-segment-hover-p2rkog, #fafafa);
|
|
182
184
|
color: var(--color-text-segment-hover-ez78pb, #16191f);
|
|
183
185
|
border-color: var(--color-border-segment-hover-0iwmji, #16191f);
|
|
184
186
|
cursor: pointer;
|
|
185
187
|
}
|
|
186
|
-
.
|
|
188
|
+
.awsui_segment_8cbea_116ec_97:not(#\9):hover:not(.awsui_selected_8cbea_116ec_174):not(.awsui_disabled_8cbea_116ec_166):not(:focus) + .awsui_segment_8cbea_116ec_97:not(.awsui_selected_8cbea_116ec_174) {
|
|
187
189
|
border-left-color: var(--color-border-segment-hover-0iwmji, #16191f);
|
|
188
190
|
}
|
|
189
|
-
.
|
|
191
|
+
.awsui_segment_8cbea_116ec_97.awsui_selected_8cbea_116ec_174 + .awsui_segment_8cbea_116ec_97:not(#\9):hover:not(.awsui_selected_8cbea_116ec_174):not(.awsui_disabled_8cbea_116ec_166):not(:focus) {
|
|
190
192
|
border-left-color: var(--color-border-segment-active-9wobfw, #16191f);
|
|
191
193
|
}
|
|
192
194
|
|
|
193
|
-
.
|
|
195
|
+
.awsui_icon_8cbea_116ec_195:not(#\9) {
|
|
194
196
|
/* used in test-utils */
|
|
195
197
|
}
|
|
196
198
|
|
|
197
|
-
.awsui_with-
|
|
199
|
+
.awsui_with-text_8cbea_116ec_199:not(#\9) {
|
|
198
200
|
position: relative;
|
|
199
201
|
left: calc(-1 * var(--space-xxs-ynfts5, 4px));
|
|
200
202
|
margin-right: var(--space-xxs-ynfts5, 4px);
|
|
201
203
|
}
|
|
202
204
|
|
|
203
|
-
.awsui_with-no-
|
|
205
|
+
.awsui_with-no-text_8cbea_116ec_205:not(#\9) {
|
|
204
206
|
margin-right: auto;
|
|
205
207
|
margin-left: auto;
|
|
206
208
|
right: 0;
|
|
@@ -211,7 +213,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
211
213
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
212
214
|
SPDX-License-Identifier: Apache-2.0
|
|
213
215
|
*/
|
|
214
|
-
.
|
|
216
|
+
.awsui_root_8cbea_116ec_216:not(#\9) {
|
|
215
217
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
216
218
|
border-collapse: separate;
|
|
217
219
|
border-spacing: 0;
|
|
@@ -248,40 +250,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
248
250
|
font-family: var(--font-family-base-mylvzb, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
249
251
|
}
|
|
250
252
|
|
|
251
|
-
.awsui_segment-
|
|
253
|
+
.awsui_segment-part_8cbea_116ec_227:not(#\9) {
|
|
252
254
|
display: inline-grid;
|
|
253
255
|
}
|
|
254
256
|
@media (max-width: 688px) {
|
|
255
|
-
.awsui_segment-
|
|
257
|
+
.awsui_segment-part_8cbea_116ec_227:not(#\9) {
|
|
256
258
|
display: none;
|
|
257
259
|
}
|
|
258
260
|
}
|
|
259
261
|
|
|
260
|
-
.
|
|
262
|
+
.awsui_select_8cbea_116ec_174:not(#\9) {
|
|
261
263
|
display: none;
|
|
262
264
|
}
|
|
263
265
|
@media (max-width: 688px) {
|
|
264
|
-
.
|
|
266
|
+
.awsui_select_8cbea_116ec_174:not(#\9) {
|
|
265
267
|
display: block;
|
|
266
268
|
}
|
|
267
269
|
}
|
|
268
270
|
|
|
269
|
-
.awsui_segment-count-
|
|
271
|
+
.awsui_segment-count-2_8cbea_116ec_246:not(#\9) {
|
|
270
272
|
grid-template-columns: 1fr 1fr;
|
|
271
273
|
}
|
|
272
274
|
|
|
273
|
-
.awsui_segment-count-
|
|
275
|
+
.awsui_segment-count-3_8cbea_116ec_251:not(#\9) {
|
|
274
276
|
grid-template-columns: 1fr 1fr 1fr;
|
|
275
277
|
}
|
|
276
278
|
|
|
277
|
-
.awsui_segment-count-
|
|
279
|
+
.awsui_segment-count-4_8cbea_116ec_256:not(#\9) {
|
|
278
280
|
grid-template-columns: 1fr 1fr 1fr 1fr;
|
|
279
281
|
}
|
|
280
282
|
|
|
281
|
-
.awsui_segment-count-
|
|
283
|
+
.awsui_segment-count-5_8cbea_116ec_261:not(#\9) {
|
|
282
284
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
|
|
283
285
|
}
|
|
284
286
|
|
|
285
|
-
.awsui_segment-count-
|
|
287
|
+
.awsui_segment-count-6_8cbea_116ec_266:not(#\9) {
|
|
286
288
|
grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
|
|
287
289
|
}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"segment": "
|
|
6
|
-
"disabled": "
|
|
7
|
-
"selected": "
|
|
8
|
-
"icon": "
|
|
9
|
-
"with-text": "awsui_with-
|
|
10
|
-
"with-no-text": "awsui_with-no-
|
|
11
|
-
"root": "
|
|
12
|
-
"segment-part": "awsui_segment-
|
|
13
|
-
"select": "
|
|
14
|
-
"segment-count-2": "awsui_segment-count-
|
|
15
|
-
"segment-count-3": "awsui_segment-count-
|
|
16
|
-
"segment-count-4": "awsui_segment-count-
|
|
17
|
-
"segment-count-5": "awsui_segment-count-
|
|
18
|
-
"segment-count-6": "awsui_segment-count-
|
|
5
|
+
"segment": "awsui_segment_8cbea_116ec_97",
|
|
6
|
+
"disabled": "awsui_disabled_8cbea_116ec_166",
|
|
7
|
+
"selected": "awsui_selected_8cbea_116ec_174",
|
|
8
|
+
"icon": "awsui_icon_8cbea_116ec_195",
|
|
9
|
+
"with-text": "awsui_with-text_8cbea_116ec_199",
|
|
10
|
+
"with-no-text": "awsui_with-no-text_8cbea_116ec_205",
|
|
11
|
+
"root": "awsui_root_8cbea_116ec_216",
|
|
12
|
+
"segment-part": "awsui_segment-part_8cbea_116ec_227",
|
|
13
|
+
"select": "awsui_select_8cbea_116ec_174",
|
|
14
|
+
"segment-count-2": "awsui_segment-count-2_8cbea_116ec_246",
|
|
15
|
+
"segment-count-3": "awsui_segment-count-3_8cbea_116ec_251",
|
|
16
|
+
"segment-count-4": "awsui_segment-count-4_8cbea_116ec_256",
|
|
17
|
+
"segment-count-5": "awsui_segment-count-5_8cbea_116ec_261",
|
|
18
|
+
"segment-count-6": "awsui_segment-count-6_8cbea_116ec_266"
|
|
19
19
|
};
|
|
20
20
|
|
|
@@ -133,6 +133,10 @@ export interface SelectProps extends BaseSelectProps {
|
|
|
133
133
|
* The event `detail` contains the current `selectedOption`.
|
|
134
134
|
*/
|
|
135
135
|
onChange?: NonCancelableEventHandler<SelectProps.ChangeDetail>;
|
|
136
|
+
/**
|
|
137
|
+
* Automatically focuses the trigger when component is mounted.
|
|
138
|
+
*/
|
|
139
|
+
autoFocus?: boolean;
|
|
136
140
|
}
|
|
137
141
|
export declare namespace SelectProps {
|
|
138
142
|
type FilteringType = OptionsFilteringType;
|
|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AC;IAE1D,KAAY,eAAe,GAAG,sBAAsB,CAAC;IAErD,UAAiB,YAAY;QAC3B,cAAc,EAAE,MAAM,CAAC;KACxB;IAED,UAAiB,8BAA8B;QAC7C,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC;KAC/C;IAED,UAAiB,GAAG;QAClB;;WAEG;QACH,KAAK,IAAI,IAAI,CAAC;KACf;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/select/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { OptionDefinition, OptionGroup as OptionGroupDefinition } from '../internal/components/option/interfaces';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status/interfaces';\nimport {\n BaseDropdownHostProps,\n OptionsFilteringType,\n OptionsLoadItemsDetail,\n} from '../internal/components/dropdown/interfaces';\n\nexport interface BaseSelectProps\n extends BaseDropdownHostProps,\n BaseComponentProps,\n FormFieldValidationControlProps,\n DropdownStatusProps {\n /**\n * Specifies an array of options that are displayed to the user as a dropdown list.\n * The options can be grouped using `OptionGroup` objects.\n *\n * #### Option\n * - `value` (string) - The returned value of the option when selected.\n * - `label` (string) - (Optional) Option text displayed to the user.\n * - `description` (string) - (Optional) Further information about the option that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the option is disabled.\n * - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.\n * - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option.\n * - `filteringTags` [string[]] - (Optional) A list of additional tags used for automatic filtering.\n * - `iconName` (string) - (Optional) Specifies the name of an [icon](/components/icon/) to display in the option.\n * - `iconAlt` (string) - (Optional) Specifies alternate text for a custom icon, for use with `iconUrl`.\n * - `iconUrl` (string) - (Optional) URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * #### OptionGroup\n * - `label` (string) - Option group text displayed to the user.\n * - `disabled` (boolean) - (Optional) Determines whether the option group is disabled.\n * - `options` (Option[]) - (Optional) The options under this group.\n *\n * Note: Only one level of option nesting is supported.\n *\n * If you want to use the built-in filtering capabilities of this component, provide\n * a list of all valid options here and they will be automatically filtered based on the user's filtering input.\n *\n * Alternatively, you can listen to the `onChange` or `onLoadItems` event and set new options\n * on your own.\n **/\n options?: SelectProps.Options;\n /**\n * Determines how filtering is applied to the list of `options`:\n * * `auto` - The component will automatically filter options based on user input.\n * * `manual` - You will set up `onChange` or `onLoadItems` event listeners and filter options on your side or request\n * them from server.\n *\n * By default the component will filter the provided `options` based on the value of the filtering input field.\n * Only options that have a `value`, `label`, `description` or `labelTag` that contains the input value as a substring\n * are displayed in the list of options.\n *\n * If you set this property to `manual`, this default filtering mechanism is disabled and all provided `options` are\n * displayed in the dropdown list. In that case make sure that you use the `onChange` or `onLoadItems` events in order\n * to set the `options` property to the options that are relevant for the user, given the filtering input value.\n *\n * Note: Manual filtering doesn't disable match highlighting.\n **/\n filteringType?: OptionsFilteringType;\n\n /**\n * Determines whether the whole select component is disabled.\n */\n disabled?: boolean;\n /**\n * Specifies the placeholder to display in the filtering input if filtering is enabled.\n */\n filteringPlaceholder?: string;\n /**\n * Adds an `aria-label` on the built-in filtering input if filtering is enabled.\n */\n filteringAriaLabel?: string;\n /**\n * Deprecated, has no effect.\n * @deprecated\n */\n name?: string;\n /**\n * Specifies the hint text that's displayed in the field when no option has been selected.\n */\n placeholder?: string;\n /**\n * Specifies the ID for the trigger component. It uses an automatically generated ID by default.\n */\n controlId?: string;\n /**\n * Adds `aria-required` to the native input element.\n */\n ariaRequired?: boolean;\n /**\n * Adds `aria-label` to the select element.\n */\n ariaLabel?: string;\n /**\n * Specifies the localized string that describes an option as being selected.\n * This is required to provide a good screen reader experience. For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n */\n selectedAriaLabel?: string;\n /**\n * Overrides the element that is announced to screen readers\n * when the highlighted option changes. By default, this announces\n * the option's name and properties, and its selected state if\n * the `selectedLabel` property is defined.\n * The highlighted option is provided, and its group (if groups\n * are used and it differs from the group of the previously highlighted option).\n *\n * For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n */\n renderHighlightedAriaLive?: SelectProps.ContainingOptionAndGroupString;\n /**\n * Displayed for `filteringType=\"auto\"` when there are no matches for the filtering.\n */\n noMatch?: React.ReactNode;\n /**\n * Called when input focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler;\n /**\n * Called when input focus is set onto the UI control.\n */\n onFocus?: NonCancelableEventHandler;\n}\n\nexport interface SelectProps extends BaseSelectProps {\n /**\n * Defines the variant of the trigger. You can use a simple label or the entire option (`label | option`)\n */\n triggerVariant?: SelectProps.TriggerVariant;\n /**\n * Specifies the currently selected option.\n * If you want to clear the selection, use `null`.\n */\n selectedOption: SelectProps.Option | null;\n /**\n * Called when the user selects an option.\n * The event `detail` contains the current `selectedOption`.\n */\n onChange?: NonCancelableEventHandler<SelectProps.ChangeDetail>;\n}\n\nexport namespace SelectProps {\n export type FilteringType = OptionsFilteringType;\n export type TriggerVariant = 'label' | 'option';\n\n export type Option = OptionDefinition;\n export type OptionGroup = OptionGroupDefinition;\n export type Options = ReadonlyArray<Option | OptionGroup>;\n\n export type LoadItemsDetail = OptionsLoadItemsDetail;\n\n export interface ChangeDetail {\n selectedOption: Option;\n }\n\n export interface ContainingOptionAndGroupString {\n (option: Option, group?: OptionGroup): string;\n }\n\n export interface Ref {\n /**\n * Sets focus on the element without opening the dropdown or showing a visual focus indicator.\n */\n focus(): void;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/select/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { OptionDefinition, OptionGroup as OptionGroupDefinition } from '../internal/components/option/interfaces';\nimport { DropdownStatusProps } from '../internal/components/dropdown-status/interfaces';\nimport {\n BaseDropdownHostProps,\n OptionsFilteringType,\n OptionsLoadItemsDetail,\n} from '../internal/components/dropdown/interfaces';\n\nexport interface BaseSelectProps\n extends BaseDropdownHostProps,\n BaseComponentProps,\n FormFieldValidationControlProps,\n DropdownStatusProps {\n /**\n * Specifies an array of options that are displayed to the user as a dropdown list.\n * The options can be grouped using `OptionGroup` objects.\n *\n * #### Option\n * - `value` (string) - The returned value of the option when selected.\n * - `label` (string) - (Optional) Option text displayed to the user.\n * - `description` (string) - (Optional) Further information about the option that appears below the label.\n * - `disabled` (boolean) - (Optional) Determines whether the option is disabled.\n * - `labelTag` (string) - (Optional) A label tag that provides additional guidance, shown next to the label.\n * - `tags` [string[]] - (Optional) A list of tags giving further guidance about the option.\n * - `filteringTags` [string[]] - (Optional) A list of additional tags used for automatic filtering.\n * - `iconName` (string) - (Optional) Specifies the name of an [icon](/components/icon/) to display in the option.\n * - `iconAlt` (string) - (Optional) Specifies alternate text for a custom icon, for use with `iconUrl`.\n * - `iconUrl` (string) - (Optional) URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n *\n * #### OptionGroup\n * - `label` (string) - Option group text displayed to the user.\n * - `disabled` (boolean) - (Optional) Determines whether the option group is disabled.\n * - `options` (Option[]) - (Optional) The options under this group.\n *\n * Note: Only one level of option nesting is supported.\n *\n * If you want to use the built-in filtering capabilities of this component, provide\n * a list of all valid options here and they will be automatically filtered based on the user's filtering input.\n *\n * Alternatively, you can listen to the `onChange` or `onLoadItems` event and set new options\n * on your own.\n **/\n options?: SelectProps.Options;\n /**\n * Determines how filtering is applied to the list of `options`:\n * * `auto` - The component will automatically filter options based on user input.\n * * `manual` - You will set up `onChange` or `onLoadItems` event listeners and filter options on your side or request\n * them from server.\n *\n * By default the component will filter the provided `options` based on the value of the filtering input field.\n * Only options that have a `value`, `label`, `description` or `labelTag` that contains the input value as a substring\n * are displayed in the list of options.\n *\n * If you set this property to `manual`, this default filtering mechanism is disabled and all provided `options` are\n * displayed in the dropdown list. In that case make sure that you use the `onChange` or `onLoadItems` events in order\n * to set the `options` property to the options that are relevant for the user, given the filtering input value.\n *\n * Note: Manual filtering doesn't disable match highlighting.\n **/\n filteringType?: OptionsFilteringType;\n\n /**\n * Determines whether the whole select component is disabled.\n */\n disabled?: boolean;\n /**\n * Specifies the placeholder to display in the filtering input if filtering is enabled.\n */\n filteringPlaceholder?: string;\n /**\n * Adds an `aria-label` on the built-in filtering input if filtering is enabled.\n */\n filteringAriaLabel?: string;\n /**\n * Deprecated, has no effect.\n * @deprecated\n */\n name?: string;\n /**\n * Specifies the hint text that's displayed in the field when no option has been selected.\n */\n placeholder?: string;\n /**\n * Specifies the ID for the trigger component. It uses an automatically generated ID by default.\n */\n controlId?: string;\n /**\n * Adds `aria-required` to the native input element.\n */\n ariaRequired?: boolean;\n /**\n * Adds `aria-label` to the select element.\n */\n ariaLabel?: string;\n /**\n * Specifies the localized string that describes an option as being selected.\n * This is required to provide a good screen reader experience. For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n */\n selectedAriaLabel?: string;\n /**\n * Overrides the element that is announced to screen readers\n * when the highlighted option changes. By default, this announces\n * the option's name and properties, and its selected state if\n * the `selectedLabel` property is defined.\n * The highlighted option is provided, and its group (if groups\n * are used and it differs from the group of the previously highlighted option).\n *\n * For more information, see the\n * [accessibility guidelines](/components/select/?tabId=usage#accessibility-guidelines).\n */\n renderHighlightedAriaLive?: SelectProps.ContainingOptionAndGroupString;\n /**\n * Displayed for `filteringType=\"auto\"` when there are no matches for the filtering.\n */\n noMatch?: React.ReactNode;\n /**\n * Called when input focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler;\n /**\n * Called when input focus is set onto the UI control.\n */\n onFocus?: NonCancelableEventHandler;\n}\n\nexport interface SelectProps extends BaseSelectProps {\n /**\n * Defines the variant of the trigger. You can use a simple label or the entire option (`label | option`)\n */\n triggerVariant?: SelectProps.TriggerVariant;\n /**\n * Specifies the currently selected option.\n * If you want to clear the selection, use `null`.\n */\n selectedOption: SelectProps.Option | null;\n /**\n * Called when the user selects an option.\n * The event `detail` contains the current `selectedOption`.\n */\n onChange?: NonCancelableEventHandler<SelectProps.ChangeDetail>;\n\n /**\n * Automatically focuses the trigger when component is mounted.\n */\n autoFocus?: boolean;\n}\n\nexport namespace SelectProps {\n export type FilteringType = OptionsFilteringType;\n export type TriggerVariant = 'label' | 'option';\n\n export type Option = OptionDefinition;\n export type OptionGroup = OptionGroupDefinition;\n export type Options = ReadonlyArray<Option | OptionGroup>;\n\n export type LoadItemsDetail = OptionsLoadItemsDetail;\n\n export interface ChangeDetail {\n selectedOption: Option;\n }\n\n export interface ContainingOptionAndGroupString {\n (option: Option, group?: OptionGroup): string;\n }\n\n export interface Ref {\n /**\n * Sets focus on the element without opening the dropdown or showing a visual focus indicator.\n */\n focus(): void;\n }\n}\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SelectProps } from './interfaces';
|
|
3
3
|
import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
|
|
4
|
-
import { SomeRequired } from '../internal/types
|
|
4
|
+
import { SomeRequired } from '../internal/types';
|
|
5
5
|
export interface InternalSelectProps extends SomeRequired<SelectProps, 'options'>, InternalBaseComponentProps {
|
|
6
6
|
__inFilteringToken?: boolean;
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAW3D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAa3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/select/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAW3D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAa3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIjD,MAAM,WAAW,mBAAoB,SAAQ,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,0BAA0B;IAC3G,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,QAAA,MAAM,cAAc,6FAuMnB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|