@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.
Files changed (89) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/input/styles.scss +0 -8
  3. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
  4. package/lib/internal/scss/prompt-input/styles.scss +0 -6
  5. package/lib/internal/scss/segmented-control/segment.scss +0 -1
  6. package/lib/internal/scss/segmented-control/styles.scss +0 -1
  7. package/lib/internal/scss/table/styles.scss +0 -1
  8. package/lib/internal/scss/tabs/tab-header-bar.scss +0 -1
  9. package/lib/internal/scss/textarea/styles.scss +0 -8
  10. package/lib/internal/template/badge/index.d.ts +1 -1
  11. package/lib/internal/template/badge/index.d.ts.map +1 -1
  12. package/lib/internal/template/badge/index.js +3 -2
  13. package/lib/internal/template/badge/index.js.map +1 -1
  14. package/lib/internal/template/badge/interfaces.d.ts +15 -0
  15. package/lib/internal/template/badge/interfaces.d.ts.map +1 -1
  16. package/lib/internal/template/badge/interfaces.js.map +1 -1
  17. package/lib/internal/template/checkbox/interfaces.d.ts +15 -0
  18. package/lib/internal/template/checkbox/interfaces.d.ts.map +1 -1
  19. package/lib/internal/template/checkbox/interfaces.js.map +1 -1
  20. package/lib/internal/template/checkbox/internal.d.ts.map +1 -1
  21. package/lib/internal/template/checkbox/internal.js +3 -2
  22. package/lib/internal/template/checkbox/internal.js.map +1 -1
  23. package/lib/internal/template/i18n/messages/all.all.js +1 -1
  24. package/lib/internal/template/i18n/messages/all.all.json +1 -1
  25. package/lib/internal/template/i18n/messages/all.ar.js +1 -1
  26. package/lib/internal/template/i18n/messages/all.ar.json +1 -1
  27. package/lib/internal/template/i18n/messages/all.de.js +1 -1
  28. package/lib/internal/template/i18n/messages/all.de.json +1 -1
  29. package/lib/internal/template/i18n/messages/all.en-GB.js +1 -1
  30. package/lib/internal/template/i18n/messages/all.en-GB.json +1 -1
  31. package/lib/internal/template/i18n/messages/all.en.js +1 -1
  32. package/lib/internal/template/i18n/messages/all.en.json +1 -1
  33. package/lib/internal/template/i18n/messages/all.es.js +1 -1
  34. package/lib/internal/template/i18n/messages/all.es.json +1 -1
  35. package/lib/internal/template/i18n/messages/all.fr.js +1 -1
  36. package/lib/internal/template/i18n/messages/all.fr.json +1 -1
  37. package/lib/internal/template/i18n/messages/all.id.js +1 -1
  38. package/lib/internal/template/i18n/messages/all.id.json +1 -1
  39. package/lib/internal/template/i18n/messages/all.it.js +1 -1
  40. package/lib/internal/template/i18n/messages/all.it.json +1 -1
  41. package/lib/internal/template/i18n/messages/all.ja.js +1 -1
  42. package/lib/internal/template/i18n/messages/all.ja.json +1 -1
  43. package/lib/internal/template/i18n/messages/all.ko.js +1 -1
  44. package/lib/internal/template/i18n/messages/all.ko.json +1 -1
  45. package/lib/internal/template/i18n/messages/all.pt-BR.js +1 -1
  46. package/lib/internal/template/i18n/messages/all.pt-BR.json +1 -1
  47. package/lib/internal/template/i18n/messages/all.tr.js +1 -1
  48. package/lib/internal/template/i18n/messages/all.tr.json +1 -1
  49. package/lib/internal/template/i18n/messages/all.zh-CN.js +1 -1
  50. package/lib/internal/template/i18n/messages/all.zh-CN.json +1 -1
  51. package/lib/internal/template/i18n/messages/all.zh-TW.js +1 -1
  52. package/lib/internal/template/i18n/messages/all.zh-TW.json +1 -1
  53. package/lib/internal/template/icon/interfaces.d.ts +15 -0
  54. package/lib/internal/template/icon/interfaces.d.ts.map +1 -1
  55. package/lib/internal/template/icon/interfaces.js.map +1 -1
  56. package/lib/internal/template/icon/internal.d.ts +1 -1
  57. package/lib/internal/template/icon/internal.d.ts.map +1 -1
  58. package/lib/internal/template/icon/internal.js +5 -4
  59. package/lib/internal/template/icon/internal.js.map +1 -1
  60. package/lib/internal/template/input/styles.css.js +13 -13
  61. package/lib/internal/template/input/styles.scoped.css +28 -42
  62. package/lib/internal/template/input/styles.selectors.js +13 -13
  63. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  64. package/lib/internal/template/internal/environment.js +2 -2
  65. package/lib/internal/template/internal/environment.json +2 -2
  66. package/lib/internal/template/multiselect/use-multiselect.d.ts +1 -1
  67. package/lib/internal/template/prompt-input/styles.css.js +17 -17
  68. package/lib/internal/template/prompt-input/styles.scoped.css +36 -43
  69. package/lib/internal/template/prompt-input/styles.selectors.js +17 -17
  70. package/lib/internal/template/segmented-control/styles.css.js +16 -16
  71. package/lib/internal/template/segmented-control/styles.scoped.css +36 -42
  72. package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
  73. package/lib/internal/template/spinner/interfaces.d.ts +16 -0
  74. package/lib/internal/template/spinner/interfaces.d.ts.map +1 -1
  75. package/lib/internal/template/spinner/interfaces.js.map +1 -1
  76. package/lib/internal/template/spinner/internal.d.ts +1 -1
  77. package/lib/internal/template/spinner/internal.d.ts.map +1 -1
  78. package/lib/internal/template/spinner/internal.js +3 -2
  79. package/lib/internal/template/spinner/internal.js.map +1 -1
  80. package/lib/internal/template/table/styles.css.js +34 -34
  81. package/lib/internal/template/table/styles.scoped.css +41 -42
  82. package/lib/internal/template/table/styles.selectors.js +34 -34
  83. package/lib/internal/template/tabs/styles.css.js +30 -30
  84. package/lib/internal/template/tabs/styles.scoped.css +51 -52
  85. package/lib/internal/template/tabs/styles.selectors.js +30 -30
  86. package/lib/internal/template/textarea/styles.css.js +5 -5
  87. package/lib/internal/template/textarea/styles.scoped.css +12 -19
  88. package/lib/internal/template/textarea/styles.selectors.js +5 -5
  89. 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
- .awsui_segment_8cbea_1iwu6_161:not(#\9) {
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
- .awsui_segment_8cbea_1iwu6_161:not(#\9):not(.awsui_refresh_8cbea_1iwu6_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
- .awsui_segment_8cbea_1iwu6_161:not(#\9):focus {
190
+ .awsui_segment_8cbea_1hbsn_161:not(#\9):focus {
191
191
  outline: none;
192
192
  }
193
- .awsui_segment_8cbea_1iwu6_161.awsui_disabled_8cbea_1iwu6_193:not(#\9) {
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] .awsui_segment_8cbea_1iwu6_161:not(#\9):focus {
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] .awsui_segment_8cbea_1iwu6_161:not(#\9):focus {
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] .awsui_segment_8cbea_1iwu6_161:not(#\9):focus::before {
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
- .awsui_segment_8cbea_1iwu6_161:not(#\9):not(:last-child)::after {
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
- .awsui_segment_8cbea_1iwu6_161:not(#\9):not(.awsui_refresh_8cbea_1iwu6_187):not(:last-child)::after {
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
- .awsui_segment_8cbea_1iwu6_161:not(#\9):nth-child(1) {
232
+ .awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(1) {
233
233
  grid-column: 1;
234
- -ms-grid-column: 1;
235
234
  }
236
- .awsui_segment_8cbea_1iwu6_161:not(#\9):nth-child(2) {
235
+ .awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(2) {
237
236
  grid-column: 2;
238
- -ms-grid-column: 2;
239
237
  }
240
- .awsui_segment_8cbea_1iwu6_161:not(#\9):nth-child(3) {
238
+ .awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(3) {
241
239
  grid-column: 3;
242
- -ms-grid-column: 3;
243
240
  }
244
- .awsui_segment_8cbea_1iwu6_161:not(#\9):nth-child(4) {
241
+ .awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(4) {
245
242
  grid-column: 4;
246
- -ms-grid-column: 4;
247
243
  }
248
- .awsui_segment_8cbea_1iwu6_161:not(#\9):nth-child(5) {
244
+ .awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(5) {
249
245
  grid-column: 5;
250
- -ms-grid-column: 5;
251
246
  }
252
- .awsui_segment_8cbea_1iwu6_161:not(#\9):nth-child(6) {
247
+ .awsui_segment_8cbea_1hbsn_161:not(#\9):nth-child(6) {
253
248
  grid-column: 6;
254
- -ms-grid-column: 6;
255
249
  }
256
- .awsui_segment_8cbea_1iwu6_161.awsui_selected_8cbea_1iwu6_256:not(#\9) {
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
- .awsui_segment_8cbea_1iwu6_161.awsui_selected_8cbea_1iwu6_256 + .awsui_segment_8cbea_1iwu6_161:not(#\9), .awsui_segment_8cbea_1iwu6_161.awsui_selected_8cbea_1iwu6_256 + .awsui_segment_8cbea_1iwu6_161.awsui_disabled_8cbea_1iwu6_193:not(#\9) {
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
- .awsui_segment_8cbea_1iwu6_161:not(#\9):not(.awsui_disabled_8cbea_1iwu6_193) + .awsui_segment_8cbea_1iwu6_161.awsui_disabled_8cbea_1iwu6_193 {
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
- .awsui_segment_8cbea_1iwu6_161:not(#\9):hover:not(.awsui_selected_8cbea_1iwu6_256):not(.awsui_disabled_8cbea_1iwu6_193):not(:focus) {
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
- .awsui_segment_8cbea_1iwu6_161:not(#\9):hover:not(.awsui_selected_8cbea_1iwu6_256):not(.awsui_disabled_8cbea_1iwu6_193):not(:focus) + .awsui_segment_8cbea_1iwu6_161:not(.awsui_selected_8cbea_1iwu6_256) {
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
- .awsui_segment_8cbea_1iwu6_161.awsui_selected_8cbea_1iwu6_256 + .awsui_segment_8cbea_1iwu6_161:not(#\9):hover:not(.awsui_selected_8cbea_1iwu6_256):not(.awsui_disabled_8cbea_1iwu6_193):not(:focus) {
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
- .awsui_icon_8cbea_1iwu6_279:not(#\9) {
273
+ .awsui_icon_8cbea_1hbsn_273:not(#\9) {
280
274
  /* used in test-utils */
281
275
  }
282
276
 
283
- .awsui_with-text_8cbea_1iwu6_283:not(#\9) {
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-text_8cbea_1iwu6_289:not(#\9) {
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
- .awsui_root_8cbea_1iwu6_294:not(#\9) {
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-part_8cbea_1iwu6_326:not(#\9) {
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-part_8cbea_1iwu6_326:not(#\9):not(.awsui_refresh_8cbea_1iwu6_187) {
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-part_8cbea_1iwu6_326:not(#\9) {
341
+ .awsui_segment-part_8cbea_1hbsn_320:not(#\9) {
348
342
  display: none;
349
343
  }
350
344
  }
351
345
 
352
- .awsui_select_8cbea_1iwu6_256:not(#\9) {
346
+ .awsui_select_8cbea_1hbsn_250:not(#\9) {
353
347
  display: none;
354
348
  }
355
349
  @media (max-width: 688px) {
356
- .awsui_select_8cbea_1iwu6_256:not(#\9) {
350
+ .awsui_select_8cbea_1hbsn_250:not(#\9) {
357
351
  display: block;
358
352
  }
359
353
  }
360
354
 
361
- .awsui_segment-count-2_8cbea_1iwu6_362:not(#\9) {
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-3_8cbea_1iwu6_366:not(#\9) {
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-4_8cbea_1iwu6_370:not(#\9) {
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-5_8cbea_1iwu6_374:not(#\9) {
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-6_8cbea_1iwu6_378:not(#\9) {
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-tooltip_8cbea_1iwu6_382:not(#\9) {
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": "awsui_segment_8cbea_1iwu6_161",
6
- "refresh": "awsui_refresh_8cbea_1iwu6_187",
7
- "disabled": "awsui_disabled_8cbea_1iwu6_193",
8
- "selected": "awsui_selected_8cbea_1iwu6_256",
9
- "icon": "awsui_icon_8cbea_1iwu6_279",
10
- "with-text": "awsui_with-text_8cbea_1iwu6_283",
11
- "with-no-text": "awsui_with-no-text_8cbea_1iwu6_289",
12
- "root": "awsui_root_8cbea_1iwu6_294",
13
- "segment-part": "awsui_segment-part_8cbea_1iwu6_326",
14
- "select": "awsui_select_8cbea_1iwu6_256",
15
- "segment-count-2": "awsui_segment-count-2_8cbea_1iwu6_362",
16
- "segment-count-3": "awsui_segment-count-3_8cbea_1iwu6_366",
17
- "segment-count-4": "awsui_segment-count-4_8cbea_1iwu6_370",
18
- "segment-count-5": "awsui_segment-count-5_8cbea_1iwu6_374",
19
- "segment-count-6": "awsui_segment-count-6_8cbea_1iwu6_378",
20
- "disabled-reason-tooltip": "awsui_disabled-reason-tooltip_8cbea_1iwu6_382"
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;AAEhE,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;CAChC;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
+ {"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;AAElF,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,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,oBAAoB,eAatB"}
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("span", Object.assign({}, baseProps, { className: clsx(baseProps.className, styles.root, styles[`size-${size}`], styles[`variant-${variant}`]), ref: __internalRootRef }),
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;AAGlG,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EAKjB;QALiB,EACtC,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,QAAQ,EAClB,iBAAiB,OAEI,EADlB,KAAK,cAJ8B,wCAKvC,CADS;IAER,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACtC,+BAA+B,EAAE,CAAC;IAClC,OAAO,CACL,8CACM,SAAS,IACb,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,CAC3D,CACR,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 { 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 __internalRootRef,\n ...props\n}: InternalSpinnerProps) {\n const baseProps = getBaseProps(props);\n useModalContextLoadingComponent();\n return (\n <span\n {...baseProps}\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 </span>\n );\n}\n"]}
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": "awsui_root_wih1l_1asy9_153",
5
- "tools": "awsui_tools_wih1l_1asy9_164",
6
- "tools-filtering": "awsui_tools-filtering_wih1l_1asy9_172",
7
- "tools-align-right": "awsui_tools-align-right_wih1l_1asy9_186",
8
- "tools-pagination": "awsui_tools-pagination_wih1l_1asy9_190",
9
- "tools-preferences": "awsui_tools-preferences_wih1l_1asy9_190",
10
- "tools-small": "awsui_tools-small_wih1l_1asy9_196",
11
- "table": "awsui_table_wih1l_1asy9_202",
12
- "table-layout-fixed": "awsui_table-layout-fixed_wih1l_1asy9_208",
13
- "wrapper": "awsui_wrapper_wih1l_1asy9_212",
14
- "variant-stacked": "awsui_variant-stacked_wih1l_1asy9_219",
15
- "wrapper-content-measure": "awsui_wrapper-content-measure_wih1l_1asy9_219",
16
- "variant-container": "awsui_variant-container_wih1l_1asy9_219",
17
- "has-footer": "awsui_has-footer_wih1l_1asy9_222",
18
- "has-header": "awsui_has-header_wih1l_1asy9_225",
19
- "cell-merged": "awsui_cell-merged_wih1l_1asy9_242",
20
- "cell-merged-content": "awsui_cell-merged-content_wih1l_1asy9_254",
21
- "empty": "awsui_empty_wih1l_1asy9_270",
22
- "loading": "awsui_loading_wih1l_1asy9_274",
23
- "selection-control": "awsui_selection-control_wih1l_1asy9_283",
24
- "selection-control-header": "awsui_selection-control-header_wih1l_1asy9_290",
25
- "header-secondary": "awsui_header-secondary_wih1l_1asy9_296",
26
- "variant-full-page": "awsui_variant-full-page_wih1l_1asy9_308",
27
- "table-has-header": "awsui_table-has-header_wih1l_1asy9_314",
28
- "header-controls": "awsui_header-controls_wih1l_1asy9_325",
29
- "variant-embedded": "awsui_variant-embedded_wih1l_1asy9_334",
30
- "variant-borderless": "awsui_variant-borderless_wih1l_1asy9_334",
31
- "footer-wrapper": "awsui_footer-wrapper_wih1l_1asy9_339",
32
- "footer": "awsui_footer_wih1l_1asy9_339",
33
- "footer-with-pagination": "awsui_footer-with-pagination_wih1l_1asy9_347",
34
- "footer-pagination": "awsui_footer-pagination_wih1l_1asy9_355",
35
- "thead-active": "awsui_thead-active_wih1l_1asy9_359",
36
- "row": "awsui_row_wih1l_1asy9_360",
37
- "row-selected": "awsui_row-selected_wih1l_1asy9_361"
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