@cloudscape-design/components 3.0.834 → 3.0.836
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/alert/styles.css.js +28 -28
- package/alert/styles.scoped.css +46 -46
- package/alert/styles.selectors.js +28 -28
- package/anchor-navigation/styles.css.js +8 -8
- package/anchor-navigation/styles.scoped.css +19 -19
- package/anchor-navigation/styles.selectors.js +8 -8
- package/button/styles.css.js +21 -21
- package/button/styles.scoped.css +157 -157
- package/button/styles.selectors.js +21 -21
- package/button-dropdown/item-element/styles.css.js +13 -13
- package/button-dropdown/item-element/styles.scoped.css +22 -22
- package/button-dropdown/item-element/styles.selectors.js +13 -13
- package/button-dropdown/styles.css.js +17 -17
- package/button-dropdown/styles.scoped.css +30 -30
- package/button-dropdown/styles.selectors.js +17 -17
- package/expandable-section/styles.css.js +34 -34
- package/expandable-section/styles.scoped.css +67 -67
- package/expandable-section/styles.selectors.js +34 -34
- package/file-token-group/file-token.d.ts +2 -2
- package/file-token-group/file-token.d.ts.map +1 -1
- package/file-token-group/file-token.js +9 -5
- package/file-token-group/file-token.js.map +1 -1
- package/file-token-group/interfaces.d.ts +2 -2
- package/file-token-group/interfaces.d.ts.map +1 -1
- package/file-token-group/interfaces.js.map +1 -1
- package/file-token-group/internal.d.ts.map +1 -1
- package/file-token-group/internal.js +11 -3
- package/file-token-group/internal.js.map +1 -1
- package/file-token-group/styles.css.js +22 -22
- package/file-token-group/styles.scoped.css +31 -31
- package/file-token-group/styles.selectors.js +22 -22
- package/file-upload/interfaces.d.ts +6 -6
- package/file-upload/interfaces.d.ts.map +1 -1
- package/file-upload/interfaces.js.map +1 -1
- package/file-upload/internal.d.ts.map +1 -1
- package/file-upload/internal.js +15 -5
- package/file-upload/internal.js.map +1 -1
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +151 -151
- package/flashbar/styles.selectors.js +50 -50
- package/i18n/messages/all.all.js +1 -1
- package/i18n/messages/all.all.json +1 -1
- package/i18n/messages/all.ar.js +1 -1
- package/i18n/messages/all.ar.json +1 -1
- package/i18n/messages/all.de.js +1 -1
- package/i18n/messages/all.de.json +1 -1
- package/i18n/messages/all.en-GB.js +1 -1
- package/i18n/messages/all.en-GB.json +1 -1
- package/i18n/messages/all.en.js +1 -1
- package/i18n/messages/all.en.json +1 -1
- package/i18n/messages/all.es.js +1 -1
- package/i18n/messages/all.es.json +1 -1
- package/i18n/messages/all.fr.js +1 -1
- package/i18n/messages/all.fr.json +1 -1
- package/i18n/messages/all.id.js +1 -1
- package/i18n/messages/all.id.json +1 -1
- package/i18n/messages/all.it.js +1 -1
- package/i18n/messages/all.it.json +1 -1
- package/i18n/messages/all.ja.js +1 -1
- package/i18n/messages/all.ja.json +1 -1
- package/i18n/messages/all.ko.js +1 -1
- package/i18n/messages/all.ko.json +1 -1
- package/i18n/messages/all.pt-BR.js +1 -1
- package/i18n/messages/all.pt-BR.json +1 -1
- package/i18n/messages/all.tr.js +1 -1
- package/i18n/messages/all.tr.json +1 -1
- package/i18n/messages/all.zh-CN.js +1 -1
- package/i18n/messages/all.zh-CN.json +1 -1
- package/i18n/messages/all.zh-TW.js +1 -1
- package/i18n/messages/all.zh-TW.json +1 -1
- package/i18n/messages-types.d.ts +24 -0
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/input/styles.css.js +13 -13
- package/input/styles.scoped.css +44 -44
- package/input/styles.selectors.js +13 -13
- package/internal/base-component/styles.scoped.css +4 -2
- package/internal/components/button-trigger/styles.css.js +13 -13
- package/internal/components/button-trigger/styles.scoped.css +37 -37
- package/internal/components/button-trigger/styles.selectors.js +13 -13
- package/internal/components/checkbox-icon/styles.css.js +9 -9
- package/internal/components/checkbox-icon/styles.scoped.css +10 -10
- package/internal/components/checkbox-icon/styles.selectors.js +9 -9
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +39 -39
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/components/menu-dropdown/styles.css.js +7 -7
- package/internal/components/menu-dropdown/styles.scoped.css +14 -14
- package/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +26 -26
- package/internal/components/token-list/styles.selectors.js +10 -10
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/styles/tokens.d.ts +4 -2
- package/internal/generated/styles/tokens.js +4 -2
- package/internal/generated/theming/index.cjs +22 -8
- package/internal/generated/theming/index.cjs.d.ts +32 -0
- package/internal/generated/theming/index.d.ts +32 -0
- package/internal/generated/theming/index.js +22 -8
- package/internal/manifest.json +1 -1
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +73 -73
- package/link/styles.selectors.js +20 -20
- package/package.json +1 -1
- package/pagination/styles.css.js +9 -9
- package/pagination/styles.scoped.css +27 -27
- package/pagination/styles.selectors.js +9 -9
- package/popover/styles.css.js +52 -52
- package/popover/styles.scoped.css +72 -75
- package/popover/styles.selectors.js +52 -52
- package/prompt-input/styles.css.js +14 -14
- package/prompt-input/styles.scoped.css +56 -56
- package/prompt-input/styles.selectors.js +14 -14
- package/property-filter/filtering-token/styles.css.js +18 -18
- package/property-filter/filtering-token/styles.scoped.css +45 -45
- package/property-filter/filtering-token/styles.selectors.js +18 -18
- package/property-filter/styles.css.js +39 -39
- package/property-filter/styles.scoped.css +42 -42
- package/property-filter/styles.selectors.js +39 -39
- package/segmented-control/styles.css.js +15 -15
- package/segmented-control/styles.scoped.css +38 -38
- package/segmented-control/styles.selectors.js +15 -15
- package/select/parts/styles.css.js +21 -21
- package/select/parts/styles.scoped.css +26 -26
- package/select/parts/styles.selectors.js +21 -21
- package/test-utils/tsconfig.tsbuildinfo +1 -1
- package/textarea/styles.css.js +5 -5
- package/textarea/styles.scoped.css +24 -24
- package/textarea/styles.selectors.js +5 -5
- package/tiles/styles.css.js +30 -30
- package/tiles/styles.scoped.css +79 -79
- package/tiles/styles.selectors.js +30 -30
- package/token-group/styles.css.js +8 -8
- package/token-group/styles.scoped.css +18 -18
- package/token-group/styles.selectors.js +8 -8
- package/top-navigation/styles.css.js +47 -47
- package/top-navigation/styles.scoped.css +67 -67
- package/top-navigation/styles.selectors.js +47 -47
- package/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +29 -29
- package/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
|
@@ -154,10 +154,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
155
155
|
SPDX-License-Identifier: Apache-2.0
|
|
156
156
|
*/
|
|
157
|
-
.awsui_content-
|
|
158
|
-
animation: awsui_awsui-motion-fade-
|
|
157
|
+
.awsui_content-enter_gwq0h_1731a_157:not(#\9) {
|
|
158
|
+
animation: awsui_awsui-motion-fade-in_gwq0h_1731a_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
|
|
159
159
|
}
|
|
160
|
-
@keyframes awsui_awsui-motion-fade-
|
|
160
|
+
@keyframes awsui_awsui-motion-fade-in_gwq0h_1731a_1 {
|
|
161
161
|
from {
|
|
162
162
|
opacity: 0.2;
|
|
163
163
|
}
|
|
@@ -166,45 +166,45 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
@media (prefers-reduced-motion: reduce) {
|
|
169
|
-
.awsui_content-
|
|
169
|
+
.awsui_content-enter_gwq0h_1731a_157:not(#\9) {
|
|
170
170
|
animation: none;
|
|
171
171
|
transition: none;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
.awsui-motion-disabled .awsui_content-
|
|
174
|
+
.awsui-motion-disabled .awsui_content-enter_gwq0h_1731a_157:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_1731a_157:not(#\9) {
|
|
175
175
|
animation: none;
|
|
176
176
|
transition: none;
|
|
177
177
|
}
|
|
178
178
|
|
|
179
|
-
.awsui_trigger-
|
|
179
|
+
.awsui_trigger-expanded_gwq0h_1731a_179:not(#\9) {
|
|
180
180
|
transition: border-bottom-color var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
|
|
181
181
|
}
|
|
182
182
|
@media (prefers-reduced-motion: reduce) {
|
|
183
|
-
.awsui_trigger-
|
|
183
|
+
.awsui_trigger-expanded_gwq0h_1731a_179:not(#\9) {
|
|
184
184
|
animation: none;
|
|
185
185
|
transition: none;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
|
-
.awsui-motion-disabled .awsui_trigger-
|
|
188
|
+
.awsui-motion-disabled .awsui_trigger-expanded_gwq0h_1731a_179:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_1731a_179:not(#\9) {
|
|
189
189
|
animation: none;
|
|
190
190
|
transition: none;
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
-
.
|
|
193
|
+
.awsui_icon_gwq0h_1731a_193:not(#\9) {
|
|
194
194
|
transition: transform var(--motion-duration-rotate-90-4ry26y, 135ms) var(--motion-easing-rotate-90-sb4dk7, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
195
195
|
}
|
|
196
196
|
@media (prefers-reduced-motion: reduce) {
|
|
197
|
-
.
|
|
197
|
+
.awsui_icon_gwq0h_1731a_193:not(#\9) {
|
|
198
198
|
animation: none;
|
|
199
199
|
transition: none;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
202
|
-
.awsui-motion-disabled .
|
|
202
|
+
.awsui-motion-disabled .awsui_icon_gwq0h_1731a_193:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_1731a_193:not(#\9) {
|
|
203
203
|
animation: none;
|
|
204
204
|
transition: none;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
.
|
|
207
|
+
.awsui_root_gwq0h_1731a_207:not(#\9) {
|
|
208
208
|
border-collapse: separate;
|
|
209
209
|
border-spacing: 0;
|
|
210
210
|
box-sizing: border-box;
|
|
@@ -243,33 +243,33 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
243
243
|
display: block;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
.awsui_expand-
|
|
246
|
+
.awsui_expand-button_gwq0h_1731a_245:not(#\9) {
|
|
247
247
|
outline: none;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
.
|
|
250
|
+
.awsui_icon_gwq0h_1731a_193:not(#\9) {
|
|
251
251
|
transform: rotate(-90deg);
|
|
252
252
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
253
253
|
}
|
|
254
|
-
.
|
|
254
|
+
.awsui_icon_gwq0h_1731a_193.awsui_expanded_gwq0h_1731a_253:not(#\9) {
|
|
255
255
|
transform: rotate(0deg);
|
|
256
256
|
}
|
|
257
|
-
.
|
|
257
|
+
.awsui_icon_gwq0h_1731a_193:not(#\9):dir(rtl) {
|
|
258
258
|
transform: rotate(90deg);
|
|
259
259
|
}
|
|
260
|
-
.
|
|
260
|
+
.awsui_icon_gwq0h_1731a_193:not(#\9):dir(rtl).awsui_expanded_gwq0h_1731a_253 {
|
|
261
261
|
transform: rotate(0deg);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
.awsui_icon-
|
|
264
|
+
.awsui_icon-container_gwq0h_1731a_263:not(#\9) {
|
|
265
265
|
position: relative;
|
|
266
266
|
margin-inline: calc((var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2) calc(var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
|
|
267
267
|
}
|
|
268
|
-
.awsui_icon-container-
|
|
268
|
+
.awsui_icon-container-container_gwq0h_1731a_267:not(#\9) {
|
|
269
269
|
margin-inline-end: var(--space-xs-zb16t3, 8px);
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
.
|
|
272
|
+
.awsui_wrapper_gwq0h_1731a_271:not(#\9) {
|
|
273
273
|
box-sizing: border-box;
|
|
274
274
|
border-block: none;
|
|
275
275
|
border-inline: none;
|
|
@@ -277,78 +277,78 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
277
277
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
278
278
|
text-align: start;
|
|
279
279
|
}
|
|
280
|
-
.awsui_wrapper-
|
|
280
|
+
.awsui_wrapper-default_gwq0h_1731a_279:not(#\9), .awsui_wrapper-inline_gwq0h_1731a_279:not(#\9), .awsui_wrapper-footer_gwq0h_1731a_279:not(#\9) {
|
|
281
281
|
border-block: var(--border-divider-section-width-1061zr, 1px) solid transparent;
|
|
282
282
|
border-inline: var(--border-divider-section-width-1061zr, 1px) solid transparent;
|
|
283
283
|
}
|
|
284
|
-
.awsui_wrapper-
|
|
284
|
+
.awsui_wrapper-navigation_gwq0h_1731a_283:not(#\9) {
|
|
285
285
|
border-inline-start: var(--border-divider-section-width-1061zr, 1px) solid transparent;
|
|
286
286
|
}
|
|
287
|
-
.awsui_wrapper-
|
|
287
|
+
.awsui_wrapper-navigation_gwq0h_1731a_283:not(#\9), .awsui_wrapper-container_gwq0h_1731a_286:not(#\9) {
|
|
288
288
|
display: flex;
|
|
289
289
|
font-weight: var(--font-weight-heading-s-cwn6wc, 700);
|
|
290
290
|
}
|
|
291
|
-
.awsui_wrapper-
|
|
291
|
+
.awsui_wrapper-default_gwq0h_1731a_279:not(#\9), .awsui_wrapper-inline_gwq0h_1731a_279:not(#\9), .awsui_wrapper-navigation_gwq0h_1731a_283:not(#\9), .awsui_wrapper-footer_gwq0h_1731a_279:not(#\9), .awsui_wrapper-compact_gwq0h_1731a_290:not(#\9) {
|
|
292
292
|
color: var(--color-text-expandable-section-default-7w1jwq, #0f141a);
|
|
293
293
|
-webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
|
|
294
294
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
|
|
295
295
|
}
|
|
296
|
-
.awsui_wrapper-
|
|
296
|
+
.awsui_wrapper-default_gwq0h_1731a_279:not(#\9), .awsui_wrapper-inline_gwq0h_1731a_279:not(#\9), .awsui_wrapper-navigation_gwq0h_1731a_283:not(#\9), .awsui_wrapper-footer_gwq0h_1731a_279:not(#\9) {
|
|
297
297
|
font-size: var(--font-expandable-heading-size-smdiul, 16px);
|
|
298
298
|
letter-spacing: var(--letter-spacing-heading-s-jr3mor, -0.005em);
|
|
299
299
|
}
|
|
300
|
-
.awsui_wrapper-
|
|
300
|
+
.awsui_wrapper-default_gwq0h_1731a_279:not(#\9) {
|
|
301
301
|
padding-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
302
302
|
padding-inline-end: var(--space-xxs-p8yyaw, 4px);
|
|
303
303
|
}
|
|
304
|
-
.awsui_wrapper-
|
|
304
|
+
.awsui_wrapper-default_gwq0h_1731a_279.awsui_header-deprecated_gwq0h_1731a_303:not(#\9) {
|
|
305
305
|
padding-inline-start: var(--space-xxs-p8yyaw, 4px);
|
|
306
306
|
}
|
|
307
|
-
.awsui_wrapper-
|
|
307
|
+
.awsui_wrapper-default_gwq0h_1731a_279:not(#\9):not(.awsui_header-deprecated_gwq0h_1731a_303), .awsui_wrapper-inline_gwq0h_1731a_279:not(#\9):not(.awsui_header-deprecated_gwq0h_1731a_303) {
|
|
308
308
|
padding-inline-start: calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
|
|
309
309
|
}
|
|
310
|
-
.awsui_wrapper-
|
|
310
|
+
.awsui_wrapper-default_gwq0h_1731a_279.awsui_wrapper-expanded_gwq0h_1731a_309:not(#\9), .awsui_wrapper-inline_gwq0h_1731a_279.awsui_wrapper-expanded_gwq0h_1731a_309:not(#\9) {
|
|
311
311
|
padding-block-end: var(--space-scaled-xxs-7597g1, 4px);
|
|
312
312
|
border-block-end-color: var(--color-border-divider-default-cx07f2, #c6c6cd);
|
|
313
313
|
}
|
|
314
|
-
.awsui_wrapper-
|
|
314
|
+
.awsui_wrapper-footer_gwq0h_1731a_279:not(#\9) {
|
|
315
315
|
padding-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
316
316
|
}
|
|
317
|
-
.awsui_wrapper-
|
|
317
|
+
.awsui_wrapper-footer_gwq0h_1731a_279:not(#\9), .awsui_wrapper-compact_gwq0h_1731a_290:not(#\9) {
|
|
318
318
|
padding-inline-end: 0;
|
|
319
319
|
}
|
|
320
|
-
.awsui_wrapper-
|
|
320
|
+
.awsui_wrapper-footer_gwq0h_1731a_279.awsui_header-deprecated_gwq0h_1731a_303:not(#\9), .awsui_wrapper-compact_gwq0h_1731a_290.awsui_header-deprecated_gwq0h_1731a_303:not(#\9) {
|
|
321
321
|
padding-inline-start: 0;
|
|
322
322
|
}
|
|
323
|
-
.awsui_wrapper-
|
|
323
|
+
.awsui_wrapper-footer_gwq0h_1731a_279:not(#\9):not(.awsui_header-deprecated_gwq0h_1731a_303), .awsui_wrapper-compact_gwq0h_1731a_290:not(#\9):not(.awsui_header-deprecated_gwq0h_1731a_303) {
|
|
324
324
|
padding-inline-start: calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
|
|
325
325
|
}
|
|
326
|
-
.awsui_wrapper-
|
|
326
|
+
.awsui_wrapper-container_gwq0h_1731a_286:not(#\9) {
|
|
327
327
|
padding-block: var(--space-container-header-top-5qav00, 12px) var(--space-container-header-bottom-vj01hn, 8px);
|
|
328
328
|
padding-inline-end: var(--space-container-horizontal-wfukh3, 20px);
|
|
329
329
|
}
|
|
330
|
-
.awsui_wrapper-
|
|
330
|
+
.awsui_wrapper-container_gwq0h_1731a_286:not(#\9):not(.awsui_wrapper-expanded_gwq0h_1731a_309) {
|
|
331
331
|
padding-block-end: var(--space-container-header-top-5qav00, 12px);
|
|
332
332
|
}
|
|
333
|
-
.awsui_wrapper-
|
|
333
|
+
.awsui_wrapper-container_gwq0h_1731a_286.awsui_header-deprecated_gwq0h_1731a_303:not(#\9) {
|
|
334
334
|
padding-inline-start: var(--space-container-horizontal-wfukh3, 20px);
|
|
335
335
|
}
|
|
336
|
-
.awsui_wrapper-
|
|
336
|
+
.awsui_wrapper-container_gwq0h_1731a_286:not(#\9):not(.awsui_header-deprecated_gwq0h_1731a_303) {
|
|
337
337
|
padding-inline-start: calc(var(--space-container-horizontal-wfukh3, 20px) + calc(var(--size-icon-medium-y9xuoq, 20px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xs-zb16t3, 8px)));
|
|
338
338
|
}
|
|
339
|
-
body[data-awsui-focus-visible=true] .awsui_wrapper-
|
|
339
|
+
body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_1731a_286:not(#\9):focus {
|
|
340
340
|
padding-block: calc(var(--space-scaled-s-aqzyko, 12px) - var(--border-divider-section-width-1061zr, 1px));
|
|
341
341
|
padding-inline: calc(var(--space-l-t419sm, 20px) - var(--border-divider-section-width-1061zr, 1px));
|
|
342
342
|
}
|
|
343
343
|
|
|
344
|
-
.
|
|
344
|
+
.awsui_header_gwq0h_1731a_303:not(#\9) {
|
|
345
345
|
/* used in test-utils */
|
|
346
346
|
}
|
|
347
|
-
.awsui_header-
|
|
347
|
+
.awsui_header-wrapper_gwq0h_1731a_346:not(#\9), .awsui_header-deprecated_gwq0h_1731a_303:not(#\9) {
|
|
348
348
|
display: flex;
|
|
349
349
|
font-weight: var(--font-weight-heading-s-cwn6wc, 700);
|
|
350
350
|
}
|
|
351
|
-
.awsui_header-
|
|
351
|
+
.awsui_header-wrapper_gwq0h_1731a_346:not(#\9) {
|
|
352
352
|
font-size: inherit;
|
|
353
353
|
letter-spacing: inherit;
|
|
354
354
|
margin-block: 0;
|
|
@@ -356,20 +356,20 @@ body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_10iv9_286:not
|
|
|
356
356
|
padding-block: 0;
|
|
357
357
|
padding-inline: 0;
|
|
358
358
|
}
|
|
359
|
-
.awsui_header-actions-
|
|
359
|
+
.awsui_header-actions-wrapper_gwq0h_1731a_358:not(#\9) {
|
|
360
360
|
display: flex;
|
|
361
361
|
flex-direction: row;
|
|
362
362
|
justify-content: space-between;
|
|
363
363
|
align-items: center;
|
|
364
364
|
}
|
|
365
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
365
|
+
body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_1731a_364:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_1731a_364:not(#\9):focus {
|
|
366
366
|
position: relative;
|
|
367
367
|
}
|
|
368
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
368
|
+
body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_1731a_364:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_1731a_364:not(#\9):focus {
|
|
369
369
|
outline: 2px dotted transparent;
|
|
370
370
|
outline-offset: calc(0px - 1px);
|
|
371
371
|
}
|
|
372
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
372
|
+
body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_1731a_364:not(#\9):focus::before, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_1731a_364:not(#\9):focus::before {
|
|
373
373
|
content: " ";
|
|
374
374
|
display: block;
|
|
375
375
|
position: absolute;
|
|
@@ -383,21 +383,21 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_10iv9_364:not(#\9
|
|
|
383
383
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
384
384
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
385
385
|
}
|
|
386
|
-
.awsui_header-
|
|
386
|
+
.awsui_header-button_gwq0h_1731a_364:not(#\9) {
|
|
387
387
|
box-sizing: border-box;
|
|
388
388
|
display: flex;
|
|
389
389
|
margin-inline-start: calc(-1 * calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px)));
|
|
390
390
|
}
|
|
391
|
-
.awsui_header-container-
|
|
391
|
+
.awsui_header-container-button_gwq0h_1731a_364:not(#\9) {
|
|
392
392
|
margin-inline-start: calc(-1 * calc(var(--size-icon-medium-y9xuoq, 20px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xs-zb16t3, 8px)));
|
|
393
393
|
}
|
|
394
|
-
.awsui_header-
|
|
394
|
+
.awsui_header-container_gwq0h_1731a_364:not(#\9) {
|
|
395
395
|
inline-size: 100%;
|
|
396
396
|
}
|
|
397
|
-
.awsui_header-
|
|
397
|
+
.awsui_header-container_gwq0h_1731a_364 > .awsui_icon-container_gwq0h_1731a_263:not(#\9) {
|
|
398
398
|
margin-block-start: var(--space-expandable-section-icon-offset-top-ekk5vc, 4px);
|
|
399
399
|
}
|
|
400
|
-
.awsui_header-
|
|
400
|
+
.awsui_header-navigation_gwq0h_1731a_399 > .awsui_icon-container_gwq0h_1731a_263:not(#\9) {
|
|
401
401
|
display: inline-flex;
|
|
402
402
|
cursor: pointer;
|
|
403
403
|
color: var(--color-text-expandable-section-navigation-icon-default-tbe28s, #424650);
|
|
@@ -410,17 +410,17 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_10iv9_364:not(#\9
|
|
|
410
410
|
text-decoration: none;
|
|
411
411
|
flex-direction: column;
|
|
412
412
|
}
|
|
413
|
-
.awsui_header-
|
|
413
|
+
.awsui_header-navigation_gwq0h_1731a_399 > .awsui_icon-container_gwq0h_1731a_263:not(#\9):hover {
|
|
414
414
|
color: var(--color-text-expandable-section-hover-lomw6v, #006ce0);
|
|
415
415
|
}
|
|
416
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
416
|
+
body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_1731a_399 > .awsui_icon-container_gwq0h_1731a_263:not(#\9):focus {
|
|
417
417
|
position: relative;
|
|
418
418
|
}
|
|
419
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
419
|
+
body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_1731a_399 > .awsui_icon-container_gwq0h_1731a_263:not(#\9):focus {
|
|
420
420
|
outline: 2px dotted transparent;
|
|
421
421
|
outline-offset: calc(2px - 1px);
|
|
422
422
|
}
|
|
423
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
423
|
+
body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_1731a_399 > .awsui_icon-container_gwq0h_1731a_263:not(#\9):focus::before {
|
|
424
424
|
content: " ";
|
|
425
425
|
display: block;
|
|
426
426
|
position: absolute;
|
|
@@ -434,42 +434,42 @@ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_10iv9_399 > .
|
|
|
434
434
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
435
435
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
436
436
|
}
|
|
437
|
-
.awsui_header-
|
|
437
|
+
.awsui_header-text_gwq0h_1731a_436:not(#\9) {
|
|
438
438
|
/* used in test-utils */
|
|
439
439
|
}
|
|
440
440
|
|
|
441
|
-
:not(#\9):not(.awsui_wrapper-
|
|
441
|
+
:not(#\9):not(.awsui_wrapper-compact_gwq0h_1731a_290) > .awsui_header-actions-wrapper_gwq0h_1731a_358 {
|
|
442
442
|
flex-wrap: wrap;
|
|
443
443
|
column-gap: var(--space-xs-zb16t3, 8px);
|
|
444
444
|
row-gap: var(--space-scaled-xxxs-27y4hv, 2px);
|
|
445
445
|
}
|
|
446
446
|
|
|
447
|
-
.
|
|
447
|
+
.awsui_content_gwq0h_1731a_157:not(#\9) {
|
|
448
448
|
display: none;
|
|
449
449
|
}
|
|
450
|
-
.awsui_content-
|
|
450
|
+
.awsui_content-default_gwq0h_1731a_449:not(#\9), .awsui_content-inline_gwq0h_1731a_449:not(#\9) {
|
|
451
451
|
padding-block: var(--space-scaled-xs-26e2du, 8px);
|
|
452
452
|
padding-inline: 0;
|
|
453
453
|
}
|
|
454
|
-
.awsui_content-
|
|
454
|
+
.awsui_content-footer_gwq0h_1731a_453:not(#\9) {
|
|
455
455
|
padding-block: var(--space-xs-zb16t3, 8px);
|
|
456
456
|
padding-inline: 0;
|
|
457
457
|
}
|
|
458
|
-
.awsui_content-
|
|
458
|
+
.awsui_content-expanded_gwq0h_1731a_457:not(#\9) {
|
|
459
459
|
display: block;
|
|
460
460
|
}
|
|
461
|
-
.awsui_content-
|
|
461
|
+
.awsui_content-compact_gwq0h_1731a_460:not(#\9) {
|
|
462
462
|
padding-inline-start: calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
-
.
|
|
465
|
+
.awsui_focusable_gwq0h_1731a_464:not(#\9):focus {
|
|
466
466
|
outline: none;
|
|
467
467
|
text-decoration: none;
|
|
468
468
|
}
|
|
469
|
-
body[data-awsui-focus-visible=true] .
|
|
469
|
+
body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_1731a_464:not(#\9):focus {
|
|
470
470
|
outline: 2px dotted transparent;
|
|
471
|
-
border-block: var(--border-field-
|
|
472
|
-
border-inline: var(--border-field-
|
|
471
|
+
border-block: var(--border-width-field-h1g7tw, 2px) solid var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
472
|
+
border-inline: var(--border-width-field-h1g7tw, 2px) solid var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
473
473
|
border-start-start-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
474
474
|
border-start-end-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
475
475
|
border-end-start-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
@@ -477,9 +477,9 @@ body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_10iv9_464:not(#\9):fo
|
|
|
477
477
|
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-nv6mhz, #006ce0);
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
.awsui_click-
|
|
480
|
+
.awsui_click-target_gwq0h_1731a_479:not(#\9) {
|
|
481
481
|
cursor: pointer;
|
|
482
482
|
}
|
|
483
|
-
.awsui_click-
|
|
483
|
+
.awsui_click-target_gwq0h_1731a_479:not(#\9):not(.awsui_wrapper-container_gwq0h_1731a_286):not(.awsui_header-container-button_gwq0h_1731a_364):hover {
|
|
484
484
|
color: var(--color-text-expandable-section-hover-lomw6v, #006ce0);
|
|
485
485
|
}
|
|
@@ -2,39 +2,39 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"content-enter": "awsui_content-
|
|
6
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
7
|
-
"trigger-expanded": "awsui_trigger-
|
|
8
|
-
"icon": "
|
|
9
|
-
"root": "
|
|
10
|
-
"expand-button": "awsui_expand-
|
|
11
|
-
"expanded": "
|
|
12
|
-
"icon-container": "awsui_icon-
|
|
13
|
-
"icon-container-container": "awsui_icon-container-
|
|
14
|
-
"wrapper": "
|
|
15
|
-
"wrapper-default": "awsui_wrapper-
|
|
16
|
-
"wrapper-inline": "awsui_wrapper-
|
|
17
|
-
"wrapper-footer": "awsui_wrapper-
|
|
18
|
-
"wrapper-navigation": "awsui_wrapper-
|
|
19
|
-
"wrapper-container": "awsui_wrapper-
|
|
20
|
-
"wrapper-compact": "awsui_wrapper-
|
|
21
|
-
"header-deprecated": "awsui_header-
|
|
22
|
-
"wrapper-expanded": "awsui_wrapper-
|
|
23
|
-
"header": "
|
|
24
|
-
"header-wrapper": "awsui_header-
|
|
25
|
-
"header-actions-wrapper": "awsui_header-actions-
|
|
26
|
-
"header-button": "awsui_header-
|
|
27
|
-
"header-container-button": "awsui_header-container-
|
|
28
|
-
"header-container": "awsui_header-
|
|
29
|
-
"header-navigation": "awsui_header-
|
|
30
|
-
"header-text": "awsui_header-
|
|
31
|
-
"content": "
|
|
32
|
-
"content-default": "awsui_content-
|
|
33
|
-
"content-inline": "awsui_content-
|
|
34
|
-
"content-footer": "awsui_content-
|
|
35
|
-
"content-expanded": "awsui_content-
|
|
36
|
-
"content-compact": "awsui_content-
|
|
37
|
-
"focusable": "
|
|
38
|
-
"click-target": "awsui_click-
|
|
5
|
+
"content-enter": "awsui_content-enter_gwq0h_1731a_157",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_1731a_1",
|
|
7
|
+
"trigger-expanded": "awsui_trigger-expanded_gwq0h_1731a_179",
|
|
8
|
+
"icon": "awsui_icon_gwq0h_1731a_193",
|
|
9
|
+
"root": "awsui_root_gwq0h_1731a_207",
|
|
10
|
+
"expand-button": "awsui_expand-button_gwq0h_1731a_245",
|
|
11
|
+
"expanded": "awsui_expanded_gwq0h_1731a_253",
|
|
12
|
+
"icon-container": "awsui_icon-container_gwq0h_1731a_263",
|
|
13
|
+
"icon-container-container": "awsui_icon-container-container_gwq0h_1731a_267",
|
|
14
|
+
"wrapper": "awsui_wrapper_gwq0h_1731a_271",
|
|
15
|
+
"wrapper-default": "awsui_wrapper-default_gwq0h_1731a_279",
|
|
16
|
+
"wrapper-inline": "awsui_wrapper-inline_gwq0h_1731a_279",
|
|
17
|
+
"wrapper-footer": "awsui_wrapper-footer_gwq0h_1731a_279",
|
|
18
|
+
"wrapper-navigation": "awsui_wrapper-navigation_gwq0h_1731a_283",
|
|
19
|
+
"wrapper-container": "awsui_wrapper-container_gwq0h_1731a_286",
|
|
20
|
+
"wrapper-compact": "awsui_wrapper-compact_gwq0h_1731a_290",
|
|
21
|
+
"header-deprecated": "awsui_header-deprecated_gwq0h_1731a_303",
|
|
22
|
+
"wrapper-expanded": "awsui_wrapper-expanded_gwq0h_1731a_309",
|
|
23
|
+
"header": "awsui_header_gwq0h_1731a_303",
|
|
24
|
+
"header-wrapper": "awsui_header-wrapper_gwq0h_1731a_346",
|
|
25
|
+
"header-actions-wrapper": "awsui_header-actions-wrapper_gwq0h_1731a_358",
|
|
26
|
+
"header-button": "awsui_header-button_gwq0h_1731a_364",
|
|
27
|
+
"header-container-button": "awsui_header-container-button_gwq0h_1731a_364",
|
|
28
|
+
"header-container": "awsui_header-container_gwq0h_1731a_364",
|
|
29
|
+
"header-navigation": "awsui_header-navigation_gwq0h_1731a_399",
|
|
30
|
+
"header-text": "awsui_header-text_gwq0h_1731a_436",
|
|
31
|
+
"content": "awsui_content_gwq0h_1731a_157",
|
|
32
|
+
"content-default": "awsui_content-default_gwq0h_1731a_449",
|
|
33
|
+
"content-inline": "awsui_content-inline_gwq0h_1731a_449",
|
|
34
|
+
"content-footer": "awsui_content-footer_gwq0h_1731a_453",
|
|
35
|
+
"content-expanded": "awsui_content-expanded_gwq0h_1731a_457",
|
|
36
|
+
"content-compact": "awsui_content-compact_gwq0h_1731a_460",
|
|
37
|
+
"focusable": "awsui_focusable_gwq0h_1731a_464",
|
|
38
|
+
"click-target": "awsui_click-target_gwq0h_1731a_479"
|
|
39
39
|
};
|
|
40
40
|
|
|
@@ -3,7 +3,7 @@ import { BaseComponentProps } from '../internal/base-component/index.js';
|
|
|
3
3
|
import { TokenGroupProps } from '../token-group/interfaces.js';
|
|
4
4
|
export declare namespace FileTokenProps {
|
|
5
5
|
interface I18nStrings {
|
|
6
|
-
removeFileAriaLabel
|
|
6
|
+
removeFileAriaLabel?: (fileIndex: number) => string;
|
|
7
7
|
errorIconAriaLabel?: string;
|
|
8
8
|
warningIconAriaLabel?: string;
|
|
9
9
|
formatFileSize?: (sizeInBytes: number) => string;
|
|
@@ -20,7 +20,7 @@ export interface FileTokenProps extends BaseComponentProps {
|
|
|
20
20
|
warningText?: React.ReactNode;
|
|
21
21
|
loading?: boolean;
|
|
22
22
|
readOnly?: boolean;
|
|
23
|
-
i18nStrings
|
|
23
|
+
i18nStrings?: FileTokenProps.I18nStrings;
|
|
24
24
|
dismissLabel?: string;
|
|
25
25
|
alignment?: TokenGroupProps.Alignment;
|
|
26
26
|
groupContainsImage?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-token.d.ts","sourceRoot":"","sources":["../../../src/file-token-group/file-token.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAKhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAMzE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAO/D,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,WAAW;QAC1B,mBAAmB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"file-token.d.ts","sourceRoot":"","sources":["../../../src/file-token-group/file-token.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAKhD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAMzE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAO/D,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,WAAW;QAC1B,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,CAAC;QACpD,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;QAC9B,cAAc,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,CAAC;QACjD,sBAAsB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,MAAM,CAAC;KACjD;CACF;AAED,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD,IAAI,EAAE,IAAI,CAAC;IACX,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC;IACzC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC,SAAS,CAAC;IACtC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,iBAAS,iBAAiB,CAAC,EACzB,IAAI,EACJ,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,OAAO,EACP,SAAS,EACT,kBAAkB,EAClB,OAAO,EACP,KAAK,GACN,EAAE,cAAc,eAiIhB;AAED,eAAe,iBAAiB,CAAC"}
|
|
@@ -15,8 +15,8 @@ import styles from './styles.css.js';
|
|
|
15
15
|
import testUtilStyles from './test-classes/styles.css.js';
|
|
16
16
|
function InternalFileToken({ file, showFileLastModified, showFileSize, showFileThumbnail, i18nStrings, onDismiss, errorText, warningText, readOnly, loading, alignment, groupContainsImage, isImage, index, }) {
|
|
17
17
|
var _a, _b;
|
|
18
|
-
const formatFileSize = (_a = i18nStrings.formatFileSize) !== null && _a !== void 0 ? _a : defaultFormatters.formatFileSize;
|
|
19
|
-
const formatFileLastModified = (_b = i18nStrings.formatFileLastModified) !== null && _b !== void 0 ? _b : defaultFormatters.formatFileLastModified;
|
|
18
|
+
const formatFileSize = (_a = i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.formatFileSize) !== null && _a !== void 0 ? _a : defaultFormatters.formatFileSize;
|
|
19
|
+
const formatFileLastModified = (_b = i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.formatFileLastModified) !== null && _b !== void 0 ? _b : defaultFormatters.formatFileLastModified;
|
|
20
20
|
const errorId = useUniqueId('error');
|
|
21
21
|
const warningId = useUniqueId('warning');
|
|
22
22
|
const showWarning = warningText && !errorText;
|
|
@@ -24,6 +24,10 @@ function InternalFileToken({ file, showFileLastModified, showFileSize, showFileT
|
|
|
24
24
|
const fileNameRef = useRef(null);
|
|
25
25
|
const fileNameContainerRef = useRef(null);
|
|
26
26
|
const [showTooltip, setShowTooltip] = useState(false);
|
|
27
|
+
const getDismissLabel = (fileIndex) => {
|
|
28
|
+
var _a;
|
|
29
|
+
return (_a = i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.removeFileAriaLabel) === null || _a === void 0 ? void 0 : _a.call(i18nStrings, fileIndex);
|
|
30
|
+
};
|
|
27
31
|
function isEllipsisActive() {
|
|
28
32
|
const span = fileNameRef.current;
|
|
29
33
|
const container = fileNameContainerRef.current;
|
|
@@ -62,9 +66,9 @@ function InternalFileToken({ file, showFileLastModified, showFileSize, showFileT
|
|
|
62
66
|
React.createElement("span", { ref: fileNameRef }, file.name))),
|
|
63
67
|
showFileSize && file.size ? (React.createElement(InternalBox, { fontSize: "body-s", color: 'text-body-secondary', className: clsx(styles['file-option-size'], testUtilStyles['file-option-size']) }, formatFileSize(file.size))) : null,
|
|
64
68
|
showFileLastModified && file.lastModified ? (React.createElement(InternalBox, { fontSize: "body-s", color: 'text-body-secondary', className: clsx(styles['file-option-last-modified'], testUtilStyles['file-option-last-modified']) }, formatFileLastModified(new Date(file.lastModified)))) : null))),
|
|
65
|
-
onDismiss && !readOnly &&
|
|
66
|
-
errorText && (React.createElement(FormFieldError, { id: errorId, errorIconAriaLabel: i18nStrings.errorIconAriaLabel }, errorText)),
|
|
67
|
-
showWarning && (React.createElement(FormFieldWarning, { id: warningId, warningIconAriaLabel: i18nStrings.warningIconAriaLabel }, warningText)),
|
|
69
|
+
onDismiss && !readOnly && React.createElement(DismissButton, { dismissLabel: getDismissLabel(index), onDismiss: onDismiss })),
|
|
70
|
+
errorText && (React.createElement(FormFieldError, { id: errorId, errorIconAriaLabel: i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.errorIconAriaLabel }, errorText)),
|
|
71
|
+
showWarning && (React.createElement(FormFieldWarning, { id: warningId, warningIconAriaLabel: i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.warningIconAriaLabel }, warningText)),
|
|
68
72
|
showTooltip && isEllipsisActive() && (React.createElement(Tooltip, { trackRef: containerRef, trackKey: file.name, value: React.createElement(InternalBox, { fontWeight: "normal" }, file.name) }))));
|
|
69
73
|
}
|
|
70
74
|
export default InternalFileToken;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-token.js","sourceRoot":"","sources":["../../../src/file-token-group/file-token.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAA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AE,cAAc,CAAC,kBAAkB,CAAC,CAAC,IAE9E,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CACd,CACf,CAAC,CAAC,CAAC,IAAI;wBAEP,oBAAoB,IAAI,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,CAC3C,oBAAC,WAAW,IACV,QAAQ,EAAC,QAAQ,EACjB,KAAK,EAAE,qBAAqB,EAC5B,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC,EAAE,cAAc,CAAC,2BAA2B,CAAC,CAAC,IAEhG,sBAAsB,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CACxC,CACf,CAAC,CAAC,CAAC,IAAI,CACa,CACnB,CACM;YACb,SAAS,IAAI,CAAC,QAAQ,IAAI,CACzB,oBAAC,aAAa,IAAC,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,SAAS,GAAI,CAC9F,CACG;QACL,SAAS,IAAI,CACZ,oBAAC,cAAc,IAAC,EAAE,EAAE,OAAO,EAAE,kBAAkB,EAAE,WAAW,CAAC,kBAAkB,IAC5E,SAAS,CACK,CAClB;QACA,WAAW,IAAI,CACd,oBAAC,gBAAgB,IAAC,EAAE,EAAE,SAAS,EAAE,oBAAoB,EAAE,WAAW,CAAC,oBAAoB,IACpF,WAAW,CACK,CACpB;QACA,WAAW,IAAI,gBAAgB,EAAE,IAAI,CACpC,oBAAC,OAAO,IACN,QAAQ,EAAE,YAAY,EACtB,QAAQ,EAAE,IAAI,CAAC,IAAI,EACnB,KAAK,EAAE,oBAAC,WAAW,IAAC,UAAU,EAAC,QAAQ,IAAE,IAAI,CAAC,IAAI,CAAe,GACjE,CACH,CACG,CACP,CAAC;AACJ,CAAC;AAED,eAAe,iBAAiB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalBox from '../box/internal.js';\nimport { FormFieldError, FormFieldWarning } from '../form-field/internal';\nimport { BaseComponentProps } from '../internal/base-component/index.js';\nimport Tooltip from '../internal/components/tooltip/index';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport InternalSpaceBetween from '../space-between/internal.js';\nimport InternalSpinner from '../spinner/internal.js';\nimport DismissButton from '../token-group/dismiss-button';\nimport { TokenGroupProps } from '../token-group/interfaces.js';\nimport * as defaultFormatters from './default-formatters.js';\nimport { FileOptionThumbnail } from './thumbnail.js';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport namespace FileTokenProps {\n export interface I18nStrings {\n removeFileAriaLabel: (fileIndex: number) => string;\n errorIconAriaLabel?: string;\n warningIconAriaLabel?: string;\n formatFileSize?: (sizeInBytes: number) => string;\n formatFileLastModified?: (date: Date) => string;\n }\n}\n\nexport interface FileTokenProps extends BaseComponentProps {\n file: File;\n onDismiss: () => void;\n showFileSize?: boolean;\n showFileLastModified?: boolean;\n showFileThumbnail?: boolean;\n errorText?: React.ReactNode;\n warningText?: React.ReactNode;\n loading?: boolean;\n readOnly?: boolean;\n i18nStrings: FileTokenProps.I18nStrings;\n dismissLabel?: string;\n alignment?: TokenGroupProps.Alignment;\n groupContainsImage?: boolean;\n isImage: boolean;\n index: number;\n}\n\nfunction InternalFileToken({\n file,\n showFileLastModified,\n showFileSize,\n showFileThumbnail,\n i18nStrings,\n onDismiss,\n errorText,\n warningText,\n readOnly,\n loading,\n alignment,\n groupContainsImage,\n isImage,\n index,\n}: FileTokenProps) {\n const formatFileSize = i18nStrings.formatFileSize ?? defaultFormatters.formatFileSize;\n const formatFileLastModified = i18nStrings.formatFileLastModified ?? defaultFormatters.formatFileLastModified;\n\n const errorId = useUniqueId('error');\n const warningId = useUniqueId('warning');\n\n const showWarning = warningText && !errorText;\n const containerRef = useRef<HTMLDivElement>(null);\n const fileNameRef = useRef<HTMLSpanElement>(null);\n const fileNameContainerRef = useRef<HTMLDivElement>(null);\n const [showTooltip, setShowTooltip] = useState(false);\n\n function isEllipsisActive() {\n const span = fileNameRef.current;\n const container = fileNameContainerRef.current;\n\n if (span && container) {\n return span.offsetWidth >= container.offsetWidth;\n }\n return false;\n }\n\n const fileIsSingleRow =\n !showFileLastModified && !showFileSize && (!groupContainsImage || (groupContainsImage && !showFileThumbnail));\n\n return (\n <div\n ref={containerRef}\n className={clsx(styles.token, {\n [styles['token-grid']]: alignment === 'horizontal',\n [styles['token-contains-image']]: groupContainsImage && showFileThumbnail,\n })}\n role=\"group\"\n aria-label={file.name}\n aria-describedby={errorText ? errorId : warningText ? warningId : undefined}\n aria-disabled={loading}\n data-index={index}\n >\n <div\n className={clsx(styles['token-box'], {\n [styles.loading]: loading,\n [styles.error]: errorText,\n [styles.warning]: showWarning,\n [styles.horizontal]: alignment === 'horizontal',\n [styles['read-only']]: readOnly,\n })}\n >\n {loading && (\n <div\n className={clsx(styles['file-loading-overlay'], {\n [styles['file-loading-overlay-single-row']]: loading && fileIsSingleRow,\n })}\n >\n <InternalSpinner variant=\"disabled\" size=\"normal\" />\n </div>\n )}\n <InternalBox className={styles['file-option']}>\n {showFileThumbnail && isImage && <FileOptionThumbnail file={file} />}\n\n <div\n className={clsx(styles['file-option-metadata'], {\n [styles['with-image']]: showFileThumbnail && isImage,\n [styles['single-row-loading']]: loading && fileIsSingleRow,\n })}\n >\n <InternalSpaceBetween direction=\"vertical\" size=\"xxxs\">\n <div\n onMouseOver={() => setShowTooltip(true)}\n onMouseOut={() => setShowTooltip(false)}\n ref={fileNameContainerRef}\n >\n <InternalBox\n fontWeight=\"normal\"\n className={clsx(styles['file-option-name'], testUtilStyles['file-option-name'], {\n [testUtilStyles['ellipsis-active']]: isEllipsisActive(),\n })}\n >\n <span ref={fileNameRef}>{file.name}</span>\n </InternalBox>\n </div>\n\n {showFileSize && file.size ? (\n <InternalBox\n fontSize=\"body-s\"\n color={'text-body-secondary'}\n className={clsx(styles['file-option-size'], testUtilStyles['file-option-size'])}\n >\n {formatFileSize(file.size)}\n </InternalBox>\n ) : null}\n\n {showFileLastModified && file.lastModified ? (\n <InternalBox\n fontSize=\"body-s\"\n color={'text-body-secondary'}\n className={clsx(styles['file-option-last-modified'], testUtilStyles['file-option-last-modified'])}\n >\n {formatFileLastModified(new Date(file.lastModified))}\n </InternalBox>\n ) : null}\n </InternalSpaceBetween>\n </div>\n </InternalBox>\n {onDismiss && !readOnly && (\n <DismissButton dismissLabel={i18nStrings.removeFileAriaLabel(index)} onDismiss={onDismiss} />\n )}\n </div>\n {errorText && (\n <FormFieldError id={errorId} errorIconAriaLabel={i18nStrings.errorIconAriaLabel}>\n {errorText}\n </FormFieldError>\n )}\n {showWarning && (\n <FormFieldWarning id={warningId} warningIconAriaLabel={i18nStrings.warningIconAriaLabel}>\n {warningText}\n </FormFieldWarning>\n )}\n {showTooltip && isEllipsisActive() && (\n <Tooltip\n trackRef={containerRef}\n trackKey={file.name}\n value={<InternalBox fontWeight=\"normal\">{file.name}</InternalBox>}\n />\n )}\n </div>\n );\n}\n\nexport default InternalFileToken;\n"]}
|
|
1
|
+
{"version":3,"file":"file-token.js","sourceRoot":"","sources":["../../../src/file-token-group/file-token.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,WAAW,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1E,OAAO,OAAO,MAAM,sCAAsC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,oBAAoB,MAAM,8BAA8B,CAAC;AAChE,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,aAAa,MAAM,+BAA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\nimport React, { useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport InternalBox from '../box/internal.js';\nimport { FormFieldError, FormFieldWarning } from '../form-field/internal';\nimport { BaseComponentProps } from '../internal/base-component/index.js';\nimport Tooltip from '../internal/components/tooltip/index';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport InternalSpaceBetween from '../space-between/internal.js';\nimport InternalSpinner from '../spinner/internal.js';\nimport DismissButton from '../token-group/dismiss-button';\nimport { TokenGroupProps } from '../token-group/interfaces.js';\nimport * as defaultFormatters from './default-formatters.js';\nimport { FileOptionThumbnail } from './thumbnail.js';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport namespace FileTokenProps {\n export interface I18nStrings {\n removeFileAriaLabel?: (fileIndex: number) => string;\n errorIconAriaLabel?: string;\n warningIconAriaLabel?: string;\n formatFileSize?: (sizeInBytes: number) => string;\n formatFileLastModified?: (date: Date) => string;\n }\n}\n\nexport interface FileTokenProps extends BaseComponentProps {\n file: File;\n onDismiss: () => void;\n showFileSize?: boolean;\n showFileLastModified?: boolean;\n showFileThumbnail?: boolean;\n errorText?: React.ReactNode;\n warningText?: React.ReactNode;\n loading?: boolean;\n readOnly?: boolean;\n i18nStrings?: FileTokenProps.I18nStrings;\n dismissLabel?: string;\n alignment?: TokenGroupProps.Alignment;\n groupContainsImage?: boolean;\n isImage: boolean;\n index: number;\n}\n\nfunction InternalFileToken({\n file,\n showFileLastModified,\n showFileSize,\n showFileThumbnail,\n i18nStrings,\n onDismiss,\n errorText,\n warningText,\n readOnly,\n loading,\n alignment,\n groupContainsImage,\n isImage,\n index,\n}: FileTokenProps) {\n const formatFileSize = i18nStrings?.formatFileSize ?? defaultFormatters.formatFileSize;\n const formatFileLastModified = i18nStrings?.formatFileLastModified ?? defaultFormatters.formatFileLastModified;\n\n const errorId = useUniqueId('error');\n const warningId = useUniqueId('warning');\n\n const showWarning = warningText && !errorText;\n const containerRef = useRef<HTMLDivElement>(null);\n const fileNameRef = useRef<HTMLSpanElement>(null);\n const fileNameContainerRef = useRef<HTMLDivElement>(null);\n const [showTooltip, setShowTooltip] = useState(false);\n\n const getDismissLabel = (fileIndex: number) => {\n return i18nStrings?.removeFileAriaLabel?.(fileIndex);\n };\n\n function isEllipsisActive() {\n const span = fileNameRef.current;\n const container = fileNameContainerRef.current;\n\n if (span && container) {\n return span.offsetWidth >= container.offsetWidth;\n }\n return false;\n }\n\n const fileIsSingleRow =\n !showFileLastModified && !showFileSize && (!groupContainsImage || (groupContainsImage && !showFileThumbnail));\n\n return (\n <div\n ref={containerRef}\n className={clsx(styles.token, {\n [styles['token-grid']]: alignment === 'horizontal',\n [styles['token-contains-image']]: groupContainsImage && showFileThumbnail,\n })}\n role=\"group\"\n aria-label={file.name}\n aria-describedby={errorText ? errorId : warningText ? warningId : undefined}\n aria-disabled={loading}\n data-index={index}\n >\n <div\n className={clsx(styles['token-box'], {\n [styles.loading]: loading,\n [styles.error]: errorText,\n [styles.warning]: showWarning,\n [styles.horizontal]: alignment === 'horizontal',\n [styles['read-only']]: readOnly,\n })}\n >\n {loading && (\n <div\n className={clsx(styles['file-loading-overlay'], {\n [styles['file-loading-overlay-single-row']]: loading && fileIsSingleRow,\n })}\n >\n <InternalSpinner variant=\"disabled\" size=\"normal\" />\n </div>\n )}\n <InternalBox className={styles['file-option']}>\n {showFileThumbnail && isImage && <FileOptionThumbnail file={file} />}\n\n <div\n className={clsx(styles['file-option-metadata'], {\n [styles['with-image']]: showFileThumbnail && isImage,\n [styles['single-row-loading']]: loading && fileIsSingleRow,\n })}\n >\n <InternalSpaceBetween direction=\"vertical\" size=\"xxxs\">\n <div\n onMouseOver={() => setShowTooltip(true)}\n onMouseOut={() => setShowTooltip(false)}\n ref={fileNameContainerRef}\n >\n <InternalBox\n fontWeight=\"normal\"\n className={clsx(styles['file-option-name'], testUtilStyles['file-option-name'], {\n [testUtilStyles['ellipsis-active']]: isEllipsisActive(),\n })}\n >\n <span ref={fileNameRef}>{file.name}</span>\n </InternalBox>\n </div>\n\n {showFileSize && file.size ? (\n <InternalBox\n fontSize=\"body-s\"\n color={'text-body-secondary'}\n className={clsx(styles['file-option-size'], testUtilStyles['file-option-size'])}\n >\n {formatFileSize(file.size)}\n </InternalBox>\n ) : null}\n\n {showFileLastModified && file.lastModified ? (\n <InternalBox\n fontSize=\"body-s\"\n color={'text-body-secondary'}\n className={clsx(styles['file-option-last-modified'], testUtilStyles['file-option-last-modified'])}\n >\n {formatFileLastModified(new Date(file.lastModified))}\n </InternalBox>\n ) : null}\n </InternalSpaceBetween>\n </div>\n </InternalBox>\n {onDismiss && !readOnly && <DismissButton dismissLabel={getDismissLabel(index)} onDismiss={onDismiss} />}\n </div>\n {errorText && (\n <FormFieldError id={errorId} errorIconAriaLabel={i18nStrings?.errorIconAriaLabel}>\n {errorText}\n </FormFieldError>\n )}\n {showWarning && (\n <FormFieldWarning id={warningId} warningIconAriaLabel={i18nStrings?.warningIconAriaLabel}>\n {warningText}\n </FormFieldWarning>\n )}\n {showTooltip && isEllipsisActive() && (\n <Tooltip\n trackRef={containerRef}\n trackKey={file.name}\n value={<InternalBox fontWeight=\"normal\">{file.name}</InternalBox>}\n />\n )}\n </div>\n );\n}\n\nexport default InternalFileToken;\n"]}
|
|
@@ -59,7 +59,7 @@ export interface FileTokenGroupProps extends BaseComponentProps {
|
|
|
59
59
|
* * `formatFileSize` (function): (Optional) A function that takes file size in bytes, and produces a formatted string.
|
|
60
60
|
* * `formatFileLastModified` (function): (Optional) A function that takes the files last modified date, and produces a formatted string.
|
|
61
61
|
*/
|
|
62
|
-
i18nStrings
|
|
62
|
+
i18nStrings?: FileTokenGroupProps.I18nStrings;
|
|
63
63
|
}
|
|
64
64
|
export declare namespace FileTokenGroupProps {
|
|
65
65
|
interface DismissDetail {
|
|
@@ -68,7 +68,7 @@ export declare namespace FileTokenGroupProps {
|
|
|
68
68
|
interface I18nStrings {
|
|
69
69
|
limitShowFewer?: string;
|
|
70
70
|
limitShowMore?: string;
|
|
71
|
-
removeFileAriaLabel
|
|
71
|
+
removeFileAriaLabel?: (fileIndex: number) => string;
|
|
72
72
|
errorIconAriaLabel?: string;
|
|
73
73
|
warningIconAriaLabel?: string;
|
|
74
74
|
formatFileSize?: (sizeInBytes: number) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/file-token-group/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAE/B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,SAAS,EAAE,yBAAyB,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;IAExE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,SAAS,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC;IAE1C;;;;;;;;OAQG;IACH,KAAK,EAAE,aAAa,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;IAC/C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,WAAW,EAAE,mBAAmB,CAAC,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/file-token-group/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,E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,GAAG,UAAU,CAAC;IAElD,UAAiB,IAAI;QACnB,IAAI,EAAE,IAAI,CAAC;QACX,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;QAC1B,WAAW,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;KAC7B;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/file-token-group/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface FileTokenGroupProps extends BaseComponentProps {\n /**\n * Show file size in the token. Use `i18nStrings.formatFileSize` to customize it.\n */\n showFileSize?: boolean;\n\n /**\n * Show file last modified timestamp in the token. Use `i18nStrings.formatFileLastModified` to customize it.\n */\n showFileLastModified?: boolean;\n\n /**\n * Show file thumbnail in the token. Only supported for images.\n */\n showFileThumbnail?: boolean;\n /**\n * Called when the user clicks on the dismiss button. The token won't be automatically removed.\n * Make sure that you add a listener to this event to update your application state.\n */\n onDismiss: NonCancelableEventHandler<FileTokenGroupProps.DismissDetail>;\n\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n limit?: number;\n /**\n * Specifies the direction in which tokens are aligned (`horizontal | vertical`).\n */\n alignment?: FileTokenGroupProps.Alignment;\n\n /**\n *\n * An array of objects representing token items. Each token has the following properties:\n *\n * - `file` (string) - File value.\n * - `loading` (boolean) - (Optional) Determine whether the token is loading.\n * - `errorText` (string) - (Optional) Text that displays as a validation error message.\n * - `warningText` (string) - (Optional) - Text that displays as a validation warning message.\n */\n items: ReadonlyArray<FileTokenGroupProps.Item>;\n /**\n * Adds an `aria-label` to the \"Show fewer\" button.\n * Use to assign unique labels when there are multiple file token groups with the same `limitShowFewer` label on one page.\n */\n limitShowFewerAriaLabel?: string;\n /**\n * Adds an `aria-label` to the \"Show more\" button.\n * Use to assign unique labels when there are multiple file token groups with the same `limitShowMore` label on one page.\n */\n limitShowMoreAriaLabel?: string;\n /**\n * Specifies if the control is read-only, which prevents the\n * user from modifying the value. A read-only control is still focusable.\n */\n readOnly?: boolean;\n /**\n * An object containing all the localized strings required by the component:\n * * `removeFileAriaLabel` (function): A function to render the ARIA label for file token remove button.\n * * `errorIconAriaLabel` (string): The ARIA label to be shown on the error file icon.\n * * `warningIconAriaLabel` (string): The ARIA label to be shown on the warning file icon.\n * * `formatFileSize` (function): (Optional) A function that takes file size in bytes, and produces a formatted string.\n * * `formatFileLastModified` (function): (Optional) A function that takes the files last modified date, and produces a formatted string.\n */\n i18nStrings
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/file-token-group/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface FileTokenGroupProps extends BaseComponentProps {\n /**\n * Show file size in the token. Use `i18nStrings.formatFileSize` to customize it.\n */\n showFileSize?: boolean;\n\n /**\n * Show file last modified timestamp in the token. Use `i18nStrings.formatFileLastModified` to customize it.\n */\n showFileLastModified?: boolean;\n\n /**\n * Show file thumbnail in the token. Only supported for images.\n */\n showFileThumbnail?: boolean;\n /**\n * Called when the user clicks on the dismiss button. The token won't be automatically removed.\n * Make sure that you add a listener to this event to update your application state.\n */\n onDismiss: NonCancelableEventHandler<FileTokenGroupProps.DismissDetail>;\n\n /**\n * Specifies the maximum number of displayed tokens. If the property isn't set, all of the tokens are displayed.\n */\n limit?: number;\n /**\n * Specifies the direction in which tokens are aligned (`horizontal | vertical`).\n */\n alignment?: FileTokenGroupProps.Alignment;\n\n /**\n *\n * An array of objects representing token items. Each token has the following properties:\n *\n * - `file` (string) - File value.\n * - `loading` (boolean) - (Optional) Determine whether the token is loading.\n * - `errorText` (string) - (Optional) Text that displays as a validation error message.\n * - `warningText` (string) - (Optional) - Text that displays as a validation warning message.\n */\n items: ReadonlyArray<FileTokenGroupProps.Item>;\n /**\n * Adds an `aria-label` to the \"Show fewer\" button.\n * Use to assign unique labels when there are multiple file token groups with the same `limitShowFewer` label on one page.\n */\n limitShowFewerAriaLabel?: string;\n /**\n * Adds an `aria-label` to the \"Show more\" button.\n * Use to assign unique labels when there are multiple file token groups with the same `limitShowMore` label on one page.\n */\n limitShowMoreAriaLabel?: string;\n /**\n * Specifies if the control is read-only, which prevents the\n * user from modifying the value. A read-only control is still focusable.\n */\n readOnly?: boolean;\n /**\n * An object containing all the localized strings required by the component:\n * * `removeFileAriaLabel` (function): A function to render the ARIA label for file token remove button.\n * * `errorIconAriaLabel` (string): The ARIA label to be shown on the error file icon.\n * * `warningIconAriaLabel` (string): The ARIA label to be shown on the warning file icon.\n * * `formatFileSize` (function): (Optional) A function that takes file size in bytes, and produces a formatted string.\n * * `formatFileLastModified` (function): (Optional) A function that takes the files last modified date, and produces a formatted string.\n */\n i18nStrings?: FileTokenGroupProps.I18nStrings;\n}\n\nexport namespace FileTokenGroupProps {\n export interface DismissDetail {\n fileIndex: number;\n }\n\n export interface I18nStrings {\n limitShowFewer?: string;\n limitShowMore?: string;\n\n removeFileAriaLabel?: (fileIndex: number) => string;\n errorIconAriaLabel?: string;\n warningIconAriaLabel?: string;\n formatFileSize?: (sizeInBytes: number) => string;\n formatFileLastModified?: (date: Date) => string;\n }\n\n export type Alignment = 'horizontal' | 'vertical';\n\n export interface Item {\n file: File;\n loading?: boolean;\n errorText?: null | string;\n warningText?: null | string;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/file-token-group/internal.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/file-token-group/internal.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAI3F,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAMtD,KAAK,2BAA2B,GAAG,mBAAmB,GAAG,0BAA0B,CAAC;AAEpF,iBAAS,sBAAsB,CAAC,EAC9B,KAAK,EACL,oBAAoB,EACpB,YAAY,EACZ,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,KAAK,EACL,QAAQ,EACR,SAAsB,EACtB,iBAAiB,EACjB,GAAG,SAAS,EACb,EAAE,2BAA2B,eAiE7B;AAED,eAAe,sBAAsB,CAAC"}
|