@cloudscape-design/components-themeable 3.0.1088 → 3.0.1090
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/input/styles.scss +0 -8
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/prompt-input/styles.scss +0 -6
- package/lib/internal/scss/segmented-control/segment.scss +0 -1
- package/lib/internal/scss/segmented-control/styles.scss +0 -1
- package/lib/internal/scss/table/styles.scss +0 -1
- package/lib/internal/scss/tabs/tab-header-bar.scss +0 -1
- package/lib/internal/scss/textarea/styles.scss +0 -8
- package/lib/internal/template/badge/index.d.ts +1 -1
- package/lib/internal/template/badge/index.d.ts.map +1 -1
- package/lib/internal/template/badge/index.js +3 -2
- package/lib/internal/template/badge/index.js.map +1 -1
- package/lib/internal/template/badge/interfaces.d.ts +15 -0
- package/lib/internal/template/badge/interfaces.d.ts.map +1 -1
- package/lib/internal/template/badge/interfaces.js.map +1 -1
- package/lib/internal/template/checkbox/interfaces.d.ts +15 -0
- package/lib/internal/template/checkbox/interfaces.d.ts.map +1 -1
- package/lib/internal/template/checkbox/interfaces.js.map +1 -1
- package/lib/internal/template/checkbox/internal.d.ts.map +1 -1
- package/lib/internal/template/checkbox/internal.js +3 -2
- package/lib/internal/template/checkbox/internal.js.map +1 -1
- package/lib/internal/template/i18n/messages/all.all.js +1 -1
- package/lib/internal/template/i18n/messages/all.all.json +1 -1
- package/lib/internal/template/i18n/messages/all.ar.js +1 -1
- package/lib/internal/template/i18n/messages/all.ar.json +1 -1
- package/lib/internal/template/i18n/messages/all.de.js +1 -1
- package/lib/internal/template/i18n/messages/all.de.json +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.js +1 -1
- package/lib/internal/template/i18n/messages/all.en-GB.json +1 -1
- package/lib/internal/template/i18n/messages/all.en.js +1 -1
- package/lib/internal/template/i18n/messages/all.en.json +1 -1
- package/lib/internal/template/i18n/messages/all.es.js +1 -1
- package/lib/internal/template/i18n/messages/all.es.json +1 -1
- package/lib/internal/template/i18n/messages/all.fr.js +1 -1
- package/lib/internal/template/i18n/messages/all.fr.json +1 -1
- package/lib/internal/template/i18n/messages/all.id.js +1 -1
- package/lib/internal/template/i18n/messages/all.id.json +1 -1
- package/lib/internal/template/i18n/messages/all.it.js +1 -1
- package/lib/internal/template/i18n/messages/all.it.json +1 -1
- package/lib/internal/template/i18n/messages/all.ja.js +1 -1
- package/lib/internal/template/i18n/messages/all.ja.json +1 -1
- package/lib/internal/template/i18n/messages/all.ko.js +1 -1
- package/lib/internal/template/i18n/messages/all.ko.json +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.js +1 -1
- package/lib/internal/template/i18n/messages/all.pt-BR.json +1 -1
- package/lib/internal/template/i18n/messages/all.tr.js +1 -1
- package/lib/internal/template/i18n/messages/all.tr.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-CN.json +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.js +1 -1
- package/lib/internal/template/i18n/messages/all.zh-TW.json +1 -1
- package/lib/internal/template/icon/interfaces.d.ts +15 -0
- package/lib/internal/template/icon/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon/interfaces.js.map +1 -1
- package/lib/internal/template/icon/internal.d.ts +1 -1
- package/lib/internal/template/icon/internal.d.ts.map +1 -1
- package/lib/internal/template/icon/internal.js +5 -4
- package/lib/internal/template/icon/internal.js.map +1 -1
- package/lib/internal/template/input/styles.css.js +13 -13
- package/lib/internal/template/input/styles.scoped.css +28 -42
- package/lib/internal/template/input/styles.selectors.js +13 -13
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/multiselect/use-multiselect.d.ts +1 -1
- package/lib/internal/template/prompt-input/styles.css.js +17 -17
- package/lib/internal/template/prompt-input/styles.scoped.css +36 -43
- package/lib/internal/template/prompt-input/styles.selectors.js +17 -17
- package/lib/internal/template/segmented-control/styles.css.js +16 -16
- package/lib/internal/template/segmented-control/styles.scoped.css +36 -42
- package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
- package/lib/internal/template/spinner/interfaces.d.ts +16 -0
- package/lib/internal/template/spinner/interfaces.d.ts.map +1 -1
- package/lib/internal/template/spinner/interfaces.js.map +1 -1
- package/lib/internal/template/spinner/internal.d.ts +1 -1
- package/lib/internal/template/spinner/internal.d.ts.map +1 -1
- package/lib/internal/template/spinner/internal.js +3 -2
- package/lib/internal/template/spinner/internal.js.map +1 -1
- package/lib/internal/template/table/styles.css.js +34 -34
- package/lib/internal/template/table/styles.scoped.css +41 -42
- package/lib/internal/template/table/styles.selectors.js +34 -34
- package/lib/internal/template/tabs/styles.css.js +30 -30
- package/lib/internal/template/tabs/styles.scoped.css +51 -52
- package/lib/internal/template/tabs/styles.selectors.js +30 -30
- package/lib/internal/template/textarea/styles.css.js +5 -5
- package/lib/internal/template/textarea/styles.scoped.css +12 -19
- package/lib/internal/template/textarea/styles.selectors.js +5 -5
- package/package.json +1 -1
|
@@ -158,7 +158,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
158
158
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
159
159
|
SPDX-License-Identifier: Apache-2.0
|
|
160
160
|
*/
|
|
161
|
-
.
|
|
161
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9) {
|
|
162
162
|
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
163
163
|
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
164
164
|
word-wrap: break-word;
|
|
@@ -184,25 +184,25 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
184
184
|
border-inline: none;
|
|
185
185
|
border-block: none;
|
|
186
186
|
}
|
|
187
|
-
.
|
|
187
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):not(.awsui_refresh_8cbea_1hbsn_187) {
|
|
188
188
|
block-size: calc(100% - var(--space-static-xxs-0cgyf1, 4px) - 2 * var(--border-width-field-9k1tdz, 1px));
|
|
189
189
|
}
|
|
190
|
-
.
|
|
190
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):focus {
|
|
191
191
|
outline: none;
|
|
192
192
|
}
|
|
193
|
-
.
|
|
193
|
+
.awsui_segment_8cbea_1hbsn_161.awsui_disabled_8cbea_1hbsn_193:not(#\9) {
|
|
194
194
|
background: var(--color-background-segment-disabled-etp65k, #ffffff);
|
|
195
195
|
border-color: var(--color-border-segment-disabled-lhc94s, #d5dbdb);
|
|
196
196
|
color: var(--color-text-interactive-disabled-xwt2jl, #aab7b8);
|
|
197
197
|
}
|
|
198
|
-
body[data-awsui-focus-visible=true] .
|
|
198
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1hbsn_161:not(#\9):focus {
|
|
199
199
|
position: relative;
|
|
200
200
|
}
|
|
201
|
-
body[data-awsui-focus-visible=true] .
|
|
201
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1hbsn_161:not(#\9):focus {
|
|
202
202
|
outline: 2px dotted transparent;
|
|
203
203
|
outline-offset: calc(var(--space-segmented-control-focus-outline-gutter-tvktqv, 3px) - 1px);
|
|
204
204
|
}
|
|
205
|
-
body[data-awsui-focus-visible=true] .
|
|
205
|
+
body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1hbsn_161:not(#\9):focus::before {
|
|
206
206
|
content: " ";
|
|
207
207
|
display: block;
|
|
208
208
|
position: absolute;
|
|
@@ -216,7 +216,7 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1iwu6_161:not(#\9):focu
|
|
|
216
216
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
217
217
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
218
218
|
}
|
|
219
|
-
.
|
|
219
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):not(:last-child)::after {
|
|
220
220
|
content: "";
|
|
221
221
|
position: absolute;
|
|
222
222
|
inset-inline-end: calc(-1 * (var(--space-static-xxs-0cgyf1, 4px) + 1px));
|
|
@@ -226,72 +226,66 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1iwu6_161:not(#\9):focu
|
|
|
226
226
|
background: var(--color-border-input-default-txli8y, #687078);
|
|
227
227
|
z-index: 1;
|
|
228
228
|
}
|
|
229
|
-
.
|
|
229
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):not(.awsui_refresh_8cbea_1hbsn_187):not(:last-child)::after {
|
|
230
230
|
inset-inline-end: calc(-1 * var(--space-static-xxs-0cgyf1, 4px));
|
|
231
231
|
}
|
|
232
|
-
.
|
|
232
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(1) {
|
|
233
233
|
grid-column: 1;
|
|
234
|
-
-ms-grid-column: 1;
|
|
235
234
|
}
|
|
236
|
-
.
|
|
235
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(2) {
|
|
237
236
|
grid-column: 2;
|
|
238
|
-
-ms-grid-column: 2;
|
|
239
237
|
}
|
|
240
|
-
.
|
|
238
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(3) {
|
|
241
239
|
grid-column: 3;
|
|
242
|
-
-ms-grid-column: 3;
|
|
243
240
|
}
|
|
244
|
-
.
|
|
241
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(4) {
|
|
245
242
|
grid-column: 4;
|
|
246
|
-
-ms-grid-column: 4;
|
|
247
243
|
}
|
|
248
|
-
.
|
|
244
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(5) {
|
|
249
245
|
grid-column: 5;
|
|
250
|
-
-ms-grid-column: 5;
|
|
251
246
|
}
|
|
252
|
-
.
|
|
247
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(6) {
|
|
253
248
|
grid-column: 6;
|
|
254
|
-
-ms-grid-column: 6;
|
|
255
249
|
}
|
|
256
|
-
.
|
|
250
|
+
.awsui_segment_8cbea_1hbsn_161.awsui_selected_8cbea_1hbsn_250:not(#\9) {
|
|
257
251
|
background: var(--color-background-segment-active-pvua4h, #0073bb);
|
|
258
252
|
color: var(--color-text-segment-active-q50mlg, #ffffff);
|
|
259
253
|
}
|
|
260
|
-
.
|
|
254
|
+
.awsui_segment_8cbea_1hbsn_161.awsui_selected_8cbea_1hbsn_250 + .awsui_segment_8cbea_1hbsn_161:not(#\9), .awsui_segment_8cbea_1hbsn_161.awsui_selected_8cbea_1hbsn_250 + .awsui_segment_8cbea_1hbsn_161.awsui_disabled_8cbea_1hbsn_193:not(#\9) {
|
|
261
255
|
border-inline-start-color: var(--color-border-segment-active-kbwjy5, #16191f);
|
|
262
256
|
}
|
|
263
|
-
.
|
|
257
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):not(.awsui_disabled_8cbea_1hbsn_193) + .awsui_segment_8cbea_1hbsn_161.awsui_disabled_8cbea_1hbsn_193 {
|
|
264
258
|
border-inline-start-color: var(--color-border-segment-default-29y0lr, #687078);
|
|
265
259
|
}
|
|
266
|
-
.
|
|
260
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):hover:not(.awsui_selected_8cbea_1hbsn_250):not(.awsui_disabled_8cbea_1hbsn_193):not(:focus) {
|
|
267
261
|
background: var(--color-background-segment-hover-e4h2ea, #fafafa);
|
|
268
262
|
color: var(--color-text-segment-hover-qyb2p1, #16191f);
|
|
269
263
|
border-color: var(--color-border-segment-hover-dneu56, #16191f);
|
|
270
264
|
cursor: pointer;
|
|
271
265
|
}
|
|
272
|
-
.
|
|
266
|
+
.awsui_segment_8cbea_1hbsn_161:not(#\9):hover:not(.awsui_selected_8cbea_1hbsn_250):not(.awsui_disabled_8cbea_1hbsn_193):not(:focus) + .awsui_segment_8cbea_1hbsn_161:not(.awsui_selected_8cbea_1hbsn_250) {
|
|
273
267
|
border-inline-start-color: var(--color-border-segment-hover-dneu56, #16191f);
|
|
274
268
|
}
|
|
275
|
-
.
|
|
269
|
+
.awsui_segment_8cbea_1hbsn_161.awsui_selected_8cbea_1hbsn_250 + .awsui_segment_8cbea_1hbsn_161:not(#\9):hover:not(.awsui_selected_8cbea_1hbsn_250):not(.awsui_disabled_8cbea_1hbsn_193):not(:focus) {
|
|
276
270
|
border-inline-start-color: var(--color-border-segment-active-kbwjy5, #16191f);
|
|
277
271
|
}
|
|
278
272
|
|
|
279
|
-
.
|
|
273
|
+
.awsui_icon_8cbea_1hbsn_273:not(#\9) {
|
|
280
274
|
/* used in test-utils */
|
|
281
275
|
}
|
|
282
276
|
|
|
283
|
-
.awsui_with-
|
|
277
|
+
.awsui_with-text_8cbea_1hbsn_277:not(#\9) {
|
|
284
278
|
position: relative;
|
|
285
279
|
inset-inline-start: calc(-1 * var(--space-xxs-jnczic, 4px));
|
|
286
280
|
margin-inline-end: var(--space-xxs-jnczic, 4px);
|
|
287
281
|
}
|
|
288
282
|
|
|
289
|
-
.awsui_with-no-
|
|
283
|
+
.awsui_with-no-text_8cbea_1hbsn_283:not(#\9) {
|
|
290
284
|
margin-inline: auto;
|
|
291
285
|
inset-inline: 0;
|
|
292
286
|
}
|
|
293
287
|
|
|
294
|
-
.
|
|
288
|
+
.awsui_root_8cbea_1hbsn_288:not(#\9) {
|
|
295
289
|
border-collapse: separate;
|
|
296
290
|
border-spacing: 0;
|
|
297
291
|
box-sizing: border-box;
|
|
@@ -323,7 +317,7 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1iwu6_161:not(#\9):focu
|
|
|
323
317
|
-moz-osx-font-smoothing: auto;
|
|
324
318
|
}
|
|
325
319
|
|
|
326
|
-
.awsui_segment-
|
|
320
|
+
.awsui_segment-part_8cbea_1hbsn_320:not(#\9) {
|
|
327
321
|
display: inline-grid;
|
|
328
322
|
border-inline: solid var(--border-width-field-9k1tdz, 1px) var(--color-border-input-default-txli8y, #687078);
|
|
329
323
|
border-block: solid var(--border-width-field-9k1tdz, 1px) var(--color-border-input-default-txli8y, #687078);
|
|
@@ -338,46 +332,46 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_1iwu6_161:not(#\9):focu
|
|
|
338
332
|
padding-inline: calc(var(--space-static-xxs-0cgyf1, 4px) - var(--border-width-field-9k1tdz, 1px));
|
|
339
333
|
gap: calc(var(--space-static-xxs-0cgyf1, 4px) * 2 + 1px);
|
|
340
334
|
}
|
|
341
|
-
.awsui_segment-
|
|
335
|
+
.awsui_segment-part_8cbea_1hbsn_320:not(#\9):not(.awsui_refresh_8cbea_1hbsn_187) {
|
|
342
336
|
padding-inline: calc(var(--space-static-xxxs-zckw10, 2px) + var(--border-width-field-9k1tdz, 1px));
|
|
343
337
|
padding-block: 0;
|
|
344
338
|
gap: calc(var(--space-static-xxs-0cgyf1, 4px) * 2 - 1px);
|
|
345
339
|
}
|
|
346
340
|
@media (max-width: 688px) {
|
|
347
|
-
.awsui_segment-
|
|
341
|
+
.awsui_segment-part_8cbea_1hbsn_320:not(#\9) {
|
|
348
342
|
display: none;
|
|
349
343
|
}
|
|
350
344
|
}
|
|
351
345
|
|
|
352
|
-
.
|
|
346
|
+
.awsui_select_8cbea_1hbsn_250:not(#\9) {
|
|
353
347
|
display: none;
|
|
354
348
|
}
|
|
355
349
|
@media (max-width: 688px) {
|
|
356
|
-
.
|
|
350
|
+
.awsui_select_8cbea_1hbsn_250:not(#\9) {
|
|
357
351
|
display: block;
|
|
358
352
|
}
|
|
359
353
|
}
|
|
360
354
|
|
|
361
|
-
.awsui_segment-count-
|
|
355
|
+
.awsui_segment-count-2_8cbea_1hbsn_355:not(#\9) {
|
|
362
356
|
grid-template-columns: repeat(2, auto);
|
|
363
357
|
}
|
|
364
358
|
|
|
365
|
-
.awsui_segment-count-
|
|
359
|
+
.awsui_segment-count-3_8cbea_1hbsn_359:not(#\9) {
|
|
366
360
|
grid-template-columns: repeat(3, auto);
|
|
367
361
|
}
|
|
368
362
|
|
|
369
|
-
.awsui_segment-count-
|
|
363
|
+
.awsui_segment-count-4_8cbea_1hbsn_363:not(#\9) {
|
|
370
364
|
grid-template-columns: repeat(4, auto);
|
|
371
365
|
}
|
|
372
366
|
|
|
373
|
-
.awsui_segment-count-
|
|
367
|
+
.awsui_segment-count-5_8cbea_1hbsn_367:not(#\9) {
|
|
374
368
|
grid-template-columns: repeat(5, auto);
|
|
375
369
|
}
|
|
376
370
|
|
|
377
|
-
.awsui_segment-count-
|
|
371
|
+
.awsui_segment-count-6_8cbea_1hbsn_371:not(#\9) {
|
|
378
372
|
grid-template-columns: repeat(6, auto);
|
|
379
373
|
}
|
|
380
374
|
|
|
381
|
-
.awsui_disabled-reason-
|
|
375
|
+
.awsui_disabled-reason-tooltip_8cbea_1hbsn_375:not(#\9) {
|
|
382
376
|
/* used in test-utils or tests */
|
|
383
377
|
}
|
|
@@ -2,21 +2,21 @@
|
|
|
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
|
-
"refresh": "
|
|
7
|
-
"disabled": "
|
|
8
|
-
"selected": "
|
|
9
|
-
"icon": "
|
|
10
|
-
"with-text": "awsui_with-
|
|
11
|
-
"with-no-text": "awsui_with-no-
|
|
12
|
-
"root": "
|
|
13
|
-
"segment-part": "awsui_segment-
|
|
14
|
-
"select": "
|
|
15
|
-
"segment-count-2": "awsui_segment-count-
|
|
16
|
-
"segment-count-3": "awsui_segment-count-
|
|
17
|
-
"segment-count-4": "awsui_segment-count-
|
|
18
|
-
"segment-count-5": "awsui_segment-count-
|
|
19
|
-
"segment-count-6": "awsui_segment-count-
|
|
20
|
-
"disabled-reason-tooltip": "awsui_disabled-reason-
|
|
5
|
+
"segment": "awsui_segment_8cbea_1hbsn_161",
|
|
6
|
+
"refresh": "awsui_refresh_8cbea_1hbsn_187",
|
|
7
|
+
"disabled": "awsui_disabled_8cbea_1hbsn_193",
|
|
8
|
+
"selected": "awsui_selected_8cbea_1hbsn_250",
|
|
9
|
+
"icon": "awsui_icon_8cbea_1hbsn_273",
|
|
10
|
+
"with-text": "awsui_with-text_8cbea_1hbsn_277",
|
|
11
|
+
"with-no-text": "awsui_with-no-text_8cbea_1hbsn_283",
|
|
12
|
+
"root": "awsui_root_8cbea_1hbsn_288",
|
|
13
|
+
"segment-part": "awsui_segment-part_8cbea_1hbsn_320",
|
|
14
|
+
"select": "awsui_select_8cbea_1hbsn_250",
|
|
15
|
+
"segment-count-2": "awsui_segment-count-2_8cbea_1hbsn_355",
|
|
16
|
+
"segment-count-3": "awsui_segment-count-3_8cbea_1hbsn_359",
|
|
17
|
+
"segment-count-4": "awsui_segment-count-4_8cbea_1hbsn_363",
|
|
18
|
+
"segment-count-5": "awsui_segment-count-5_8cbea_1hbsn_367",
|
|
19
|
+
"segment-count-6": "awsui_segment-count-6_8cbea_1hbsn_371",
|
|
20
|
+
"disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_1hbsn_375"
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { BaseComponentProps } from '../internal/base-component';
|
|
3
|
+
/**
|
|
4
|
+
* @awsuiSystem core
|
|
5
|
+
*/
|
|
6
|
+
import { NativeAttributes } from '../internal/utils/with-native-attributes';
|
|
2
7
|
export interface SpinnerProps extends BaseComponentProps {
|
|
3
8
|
/**
|
|
4
9
|
* Specifies the size of the spinner.
|
|
@@ -8,6 +13,17 @@ export interface SpinnerProps extends BaseComponentProps {
|
|
|
8
13
|
* Specifies the color variant of the spinner. The `normal` variant picks up the current color of its context.
|
|
9
14
|
*/
|
|
10
15
|
variant?: SpinnerProps.Variant;
|
|
16
|
+
/**
|
|
17
|
+
* Attributes to add to the native element.
|
|
18
|
+
* Some attributes will be automatically combined with internal attribute values:
|
|
19
|
+
* - `className` will be appended.
|
|
20
|
+
* - Event handlers will be chained, unless the default is prevented.
|
|
21
|
+
*
|
|
22
|
+
* We do not support using this attribute to apply custom styling.
|
|
23
|
+
*
|
|
24
|
+
* @awsuiSystem core
|
|
25
|
+
*/
|
|
26
|
+
nativeAttributes?: NativeAttributes<React.HTMLAttributes<HTMLElement>>;
|
|
11
27
|
}
|
|
12
28
|
export declare namespace SpinnerProps {
|
|
13
29
|
type Size = 'normal' | 'big' | 'large';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/spinner/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/spinner/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAE5E,MAAM,WAAW,YAAa,SAAQ,kBAAkB;IACtD;;OAEG;IACH,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC;IACzB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC;IAC/B;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC,CAAC;CACxE;AAED,yBAAiB,YAAY,CAAC;IAC5B,KAAY,IAAI,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,CAAC;IAC9C,KAAY,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,CAAC;CAC1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/spinner/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';\n\nexport interface SpinnerProps extends BaseComponentProps {\n /**\n * Specifies the size of the spinner.\n */\n size?: SpinnerProps.Size;\n /**\n * Specifies the color variant of the spinner. The `normal` variant picks up the current color of its context.\n */\n variant?: SpinnerProps.Variant;\n}\n\nexport namespace SpinnerProps {\n export type Size = 'normal' | 'big' | 'large';\n export type Variant = 'normal' | 'disabled' | 'inverted';\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/spinner/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';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../internal/utils/with-native-attributes';\n\nexport interface SpinnerProps extends BaseComponentProps {\n /**\n * Specifies the size of the spinner.\n */\n size?: SpinnerProps.Size;\n /**\n * Specifies the color variant of the spinner. The `normal` variant picks up the current color of its context.\n */\n variant?: SpinnerProps.Variant;\n /**\n * Attributes to add to the native element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeAttributes?: NativeAttributes<React.HTMLAttributes<HTMLElement>>;\n}\n\nexport namespace SpinnerProps {\n export type Size = 'normal' | 'big' | 'large';\n export type Variant = 'normal' | 'disabled' | 'inverted';\n}\n"]}
|
|
@@ -3,6 +3,6 @@ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component
|
|
|
3
3
|
import { SpinnerProps } from './interfaces';
|
|
4
4
|
interface InternalSpinnerProps extends SpinnerProps, InternalBaseComponentProps {
|
|
5
5
|
}
|
|
6
|
-
export default function InternalSpinner({ size, variant, __internalRootRef, ...props }: InternalSpinnerProps): JSX.Element;
|
|
6
|
+
export default function InternalSpinner({ size, variant, nativeAttributes, __internalRootRef, ...props }: InternalSpinnerProps): JSX.Element;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/spinner/internal.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/spinner/internal.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAGlF,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAI5C,UAAU,oBAAqB,SAAQ,YAAY,EAAE,0BAA0B;CAAG;AAElF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,IAAe,EACf,OAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,oBAAoB,eAetB"}
|
|
@@ -5,12 +5,13 @@ import React from 'react';
|
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { getBaseProps } from '../internal/base-component';
|
|
7
7
|
import { useModalContextLoadingComponent } from '../internal/hooks/use-modal-component-analytics';
|
|
8
|
+
import WithNativeAttributes from '../internal/utils/with-native-attributes';
|
|
8
9
|
import styles from './styles.css.js';
|
|
9
10
|
export default function InternalSpinner(_a) {
|
|
10
|
-
var { size = 'normal', variant = 'normal', __internalRootRef } = _a, props = __rest(_a, ["size", "variant", "__internalRootRef"]);
|
|
11
|
+
var { size = 'normal', variant = 'normal', nativeAttributes, __internalRootRef } = _a, props = __rest(_a, ["size", "variant", "nativeAttributes", "__internalRootRef"]);
|
|
11
12
|
const baseProps = getBaseProps(props);
|
|
12
13
|
useModalContextLoadingComponent();
|
|
13
|
-
return (React.createElement(
|
|
14
|
+
return (React.createElement(WithNativeAttributes, Object.assign({}, baseProps, { tag: "span", nativeAttributes: nativeAttributes, className: clsx(baseProps.className, styles.root, styles[`size-${size}`], styles[`variant-${variant}`]), ref: __internalRootRef }),
|
|
14
15
|
React.createElement("span", { className: clsx(styles.circle, styles['circle-left']) }),
|
|
15
16
|
React.createElement("span", { className: clsx(styles.circle, styles['circle-right']) })));
|
|
16
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/spinner/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/spinner/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE1D,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,oBAAoB,MAAM,0CAA0C,CAAC;AAG5E,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAMjB;QANiB,EACtC,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,QAAQ,EAClB,gBAAgB,EAChB,iBAAiB,OAEI,EADlB,KAAK,cAL8B,4DAMvC,CADS;IAER,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACtC,+BAA+B,EAAE,CAAC;IAClC,OAAO,CACL,oBAAC,oBAAoB,oBACf,SAAS,IACb,GAAG,EAAC,MAAM,EACV,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,WAAW,OAAO,EAAE,CAAC,CAAC,EACvG,GAAG,EAAE,iBAAiB;QAEtB,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC,GAAI;QAC/D,8BAAM,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,GAAI,CAC3C,CACxB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useModalContextLoadingComponent } from '../internal/hooks/use-modal-component-analytics';\nimport WithNativeAttributes from '../internal/utils/with-native-attributes';\nimport { SpinnerProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ninterface InternalSpinnerProps extends SpinnerProps, InternalBaseComponentProps {}\n\nexport default function InternalSpinner({\n size = 'normal',\n variant = 'normal',\n nativeAttributes,\n __internalRootRef,\n ...props\n}: InternalSpinnerProps) {\n const baseProps = getBaseProps(props);\n useModalContextLoadingComponent();\n return (\n <WithNativeAttributes\n {...baseProps}\n tag=\"span\"\n nativeAttributes={nativeAttributes}\n className={clsx(baseProps.className, styles.root, styles[`size-${size}`], styles[`variant-${variant}`])}\n ref={__internalRootRef}\n >\n <span className={clsx(styles.circle, styles['circle-left'])} />\n <span className={clsx(styles.circle, styles['circle-right'])} />\n </WithNativeAttributes>\n );\n}\n"]}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"tools": "
|
|
6
|
-
"tools-filtering": "awsui_tools-
|
|
7
|
-
"tools-align-right": "awsui_tools-align-
|
|
8
|
-
"tools-pagination": "awsui_tools-
|
|
9
|
-
"tools-preferences": "awsui_tools-
|
|
10
|
-
"tools-small": "awsui_tools-
|
|
11
|
-
"table": "
|
|
12
|
-
"table-layout-fixed": "awsui_table-layout-
|
|
13
|
-
"wrapper": "
|
|
14
|
-
"variant-stacked": "awsui_variant-
|
|
15
|
-
"wrapper-content-measure": "awsui_wrapper-content-
|
|
16
|
-
"variant-container": "awsui_variant-
|
|
17
|
-
"has-footer": "awsui_has-
|
|
18
|
-
"has-header": "awsui_has-
|
|
19
|
-
"cell-merged": "awsui_cell-
|
|
20
|
-
"cell-merged-content": "awsui_cell-merged-
|
|
21
|
-
"empty": "
|
|
22
|
-
"loading": "
|
|
23
|
-
"selection-control": "awsui_selection-
|
|
24
|
-
"selection-control-header": "awsui_selection-control-
|
|
25
|
-
"header-secondary": "awsui_header-
|
|
26
|
-
"variant-full-page": "awsui_variant-full-
|
|
27
|
-
"table-has-header": "awsui_table-has-
|
|
28
|
-
"header-controls": "awsui_header-
|
|
29
|
-
"variant-embedded": "awsui_variant-
|
|
30
|
-
"variant-borderless": "awsui_variant-
|
|
31
|
-
"footer-wrapper": "awsui_footer-
|
|
32
|
-
"footer": "
|
|
33
|
-
"footer-with-pagination": "awsui_footer-with-
|
|
34
|
-
"footer-pagination": "awsui_footer-
|
|
35
|
-
"thead-active": "awsui_thead-
|
|
36
|
-
"row": "
|
|
37
|
-
"row-selected": "awsui_row-
|
|
4
|
+
"root": "awsui_root_wih1l_1qjko_153",
|
|
5
|
+
"tools": "awsui_tools_wih1l_1qjko_164",
|
|
6
|
+
"tools-filtering": "awsui_tools-filtering_wih1l_1qjko_172",
|
|
7
|
+
"tools-align-right": "awsui_tools-align-right_wih1l_1qjko_186",
|
|
8
|
+
"tools-pagination": "awsui_tools-pagination_wih1l_1qjko_190",
|
|
9
|
+
"tools-preferences": "awsui_tools-preferences_wih1l_1qjko_190",
|
|
10
|
+
"tools-small": "awsui_tools-small_wih1l_1qjko_196",
|
|
11
|
+
"table": "awsui_table_wih1l_1qjko_202",
|
|
12
|
+
"table-layout-fixed": "awsui_table-layout-fixed_wih1l_1qjko_208",
|
|
13
|
+
"wrapper": "awsui_wrapper_wih1l_1qjko_212",
|
|
14
|
+
"variant-stacked": "awsui_variant-stacked_wih1l_1qjko_219",
|
|
15
|
+
"wrapper-content-measure": "awsui_wrapper-content-measure_wih1l_1qjko_219",
|
|
16
|
+
"variant-container": "awsui_variant-container_wih1l_1qjko_219",
|
|
17
|
+
"has-footer": "awsui_has-footer_wih1l_1qjko_222",
|
|
18
|
+
"has-header": "awsui_has-header_wih1l_1qjko_225",
|
|
19
|
+
"cell-merged": "awsui_cell-merged_wih1l_1qjko_242",
|
|
20
|
+
"cell-merged-content": "awsui_cell-merged-content_wih1l_1qjko_254",
|
|
21
|
+
"empty": "awsui_empty_wih1l_1qjko_270",
|
|
22
|
+
"loading": "awsui_loading_wih1l_1qjko_274",
|
|
23
|
+
"selection-control": "awsui_selection-control_wih1l_1qjko_283",
|
|
24
|
+
"selection-control-header": "awsui_selection-control-header_wih1l_1qjko_290",
|
|
25
|
+
"header-secondary": "awsui_header-secondary_wih1l_1qjko_296",
|
|
26
|
+
"variant-full-page": "awsui_variant-full-page_wih1l_1qjko_307",
|
|
27
|
+
"table-has-header": "awsui_table-has-header_wih1l_1qjko_313",
|
|
28
|
+
"header-controls": "awsui_header-controls_wih1l_1qjko_324",
|
|
29
|
+
"variant-embedded": "awsui_variant-embedded_wih1l_1qjko_333",
|
|
30
|
+
"variant-borderless": "awsui_variant-borderless_wih1l_1qjko_333",
|
|
31
|
+
"footer-wrapper": "awsui_footer-wrapper_wih1l_1qjko_338",
|
|
32
|
+
"footer": "awsui_footer_wih1l_1qjko_338",
|
|
33
|
+
"footer-with-pagination": "awsui_footer-with-pagination_wih1l_1qjko_346",
|
|
34
|
+
"footer-pagination": "awsui_footer-pagination_wih1l_1qjko_354",
|
|
35
|
+
"thead-active": "awsui_thead-active_wih1l_1qjko_358",
|
|
36
|
+
"row": "awsui_row_wih1l_1qjko_359",
|
|
37
|
+
"row-selected": "awsui_row-selected_wih1l_1qjko_360"
|
|
38
38
|
};
|
|
39
39
|
|