@cloudscape-design/components 3.0.1002 → 3.0.1004

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 (47) hide show
  1. package/container/index.js +13 -30
  2. package/container/interfaces.d.ts +5 -0
  3. package/container/interfaces.d.ts.map +1 -1
  4. package/container/interfaces.js.map +1 -1
  5. package/container/internal-do-not-use-core.js +35 -0
  6. package/container/internal.d.ts +2 -2
  7. package/container/internal.d.ts.map +1 -1
  8. package/container/internal.js +2 -2
  9. package/container/internal.js.map +1 -1
  10. package/internal/base-component/styles.scoped.css +1 -1
  11. package/internal/components/options-list/utils/use-highlight-option.d.ts +1 -0
  12. package/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  13. package/internal/components/options-list/utils/use-highlight-option.js +1 -0
  14. package/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
  15. package/internal/environment.js +2 -2
  16. package/internal/environment.json +2 -2
  17. package/internal/manifest.json +1 -1
  18. package/package.json +1 -1
  19. package/select/utils/use-select.d.ts.map +1 -1
  20. package/select/utils/use-select.js +17 -4
  21. package/select/utils/use-select.js.map +1 -1
  22. package/table/body-cell/styles.css.js +47 -46
  23. package/table/body-cell/styles.scoped.css +376 -373
  24. package/table/body-cell/styles.selectors.js +47 -46
  25. package/table/body-cell/td-element.d.ts +1 -0
  26. package/table/body-cell/td-element.d.ts.map +1 -1
  27. package/table/body-cell/td-element.js +2 -2
  28. package/table/body-cell/td-element.js.map +1 -1
  29. package/table/header-cell/index.d.ts +3 -1
  30. package/table/header-cell/index.d.ts.map +1 -1
  31. package/table/header-cell/index.js +2 -2
  32. package/table/header-cell/index.js.map +1 -1
  33. package/table/header-cell/styles.css.js +29 -28
  34. package/table/header-cell/styles.scoped.css +69 -66
  35. package/table/header-cell/styles.selectors.js +29 -28
  36. package/table/header-cell/th-element.d.ts +2 -0
  37. package/table/header-cell/th-element.d.ts.map +1 -1
  38. package/table/header-cell/th-element.js +2 -2
  39. package/table/header-cell/th-element.js.map +1 -1
  40. package/table/internal.d.ts.map +1 -1
  41. package/table/internal.js +3 -2
  42. package/table/internal.js.map +1 -1
  43. package/table/thead.d.ts +1 -0
  44. package/table/thead.d.ts.map +1 -1
  45. package/table/thead.js +2 -1
  46. package/table/thead.js.map +1 -1
  47. /package/container/{index.js.map → internal-do-not-use-core.js.map} +0 -0
@@ -146,7 +146,7 @@
146
146
  */
147
147
  /* Style used for links in slots/components that are text heavy, to help links stand out among
148
148
  surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
149
- .awsui_header-cell_1spae_h11fe_149:not(#\9) {
149
+ .awsui_header-cell_1spae_xv9cn_149:not(#\9) {
150
150
  position: relative;
151
151
  text-align: start;
152
152
  box-sizing: border-box;
@@ -159,14 +159,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
159
159
  padding-block: var(--space-scaled-xxs-pfm1nx, 4px);
160
160
  padding-inline: var(--space-scaled-xs-xwoogq, 8px);
161
161
  }
162
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149:not(#\9):focus {
162
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149:not(#\9):focus {
163
163
  position: relative;
164
164
  }
165
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149:not(#\9):focus {
165
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149:not(#\9):focus {
166
166
  outline: 2px dotted transparent;
167
167
  outline-offset: calc(calc(-1 * var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
168
168
  }
169
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149:not(#\9):focus::before {
169
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149:not(#\9):focus::before {
170
170
  content: " ";
171
171
  display: block;
172
172
  position: absolute;
@@ -180,14 +180,14 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149:not(#\9):
180
180
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
181
181
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
182
182
  }
183
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_header-cell-fake-focus_1spae_h11fe_183:not(#\9) {
183
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_header-cell-fake-focus_1spae_xv9cn_183:not(#\9) {
184
184
  position: relative;
185
185
  }
186
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_header-cell-fake-focus_1spae_h11fe_183:not(#\9) {
186
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_header-cell-fake-focus_1spae_xv9cn_183:not(#\9) {
187
187
  outline: 2px dotted transparent;
188
188
  outline-offset: calc(calc(-1 * var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
189
189
  }
190
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_header-cell-fake-focus_1spae_h11fe_183:not(#\9)::before {
190
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_header-cell-fake-focus_1spae_xv9cn_183:not(#\9)::before {
191
191
  content: " ";
192
192
  display: block;
193
193
  position: absolute;
@@ -201,25 +201,25 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_hea
201
201
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
202
202
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
203
203
  }
204
- .awsui_header-cell-sticky_1spae_h11fe_204:not(#\9) {
204
+ .awsui_header-cell-sticky_1spae_xv9cn_204:not(#\9) {
205
205
  border-block-end: var(--border-table-sticky-width-ai31mi, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
206
206
  }
207
- .awsui_header-cell-stuck_1spae_h11fe_207:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_h11fe_207) {
207
+ .awsui_header-cell-stuck_1spae_xv9cn_207:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_xv9cn_207) {
208
208
  border-block-end-color: transparent;
209
209
  }
210
- .awsui_header-cell-variant-full-page_1spae_h11fe_207:not(#\9) {
210
+ .awsui_header-cell-variant-full-page_1spae_xv9cn_207:not(#\9) {
211
211
  background: var(--color-background-layout-main-5ilwcb, #ffffff);
212
212
  }
213
- .awsui_header-cell-variant-full-page_1spae_h11fe_207.awsui_header-cell-hidden_1spae_h11fe_213:not(#\9) {
213
+ .awsui_header-cell-variant-full-page_1spae_xv9cn_207.awsui_header-cell-hidden_1spae_xv9cn_213:not(#\9) {
214
214
  border-block-end-color: transparent;
215
215
  }
216
- .awsui_header-cell-variant-embedded_1spae_h11fe_216.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_h11fe_204, .awsui_sticky-cell_1spae_h11fe_216)), .awsui_header-cell-variant-borderless_1spae_h11fe_216.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_h11fe_204, .awsui_sticky-cell_1spae_h11fe_216)) {
216
+ .awsui_header-cell-variant-embedded_1spae_xv9cn_216.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_xv9cn_204, .awsui_sticky-cell_1spae_xv9cn_216)), .awsui_header-cell-variant-borderless_1spae_xv9cn_216.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_xv9cn_204, .awsui_sticky-cell_1spae_xv9cn_216)) {
217
217
  background: none;
218
218
  }
219
- .awsui_header-cell_1spae_h11fe_149:not(#\9):last-child, .awsui_header-cell_1spae_h11fe_149.awsui_header-cell-sortable_1spae_h11fe_219:not(#\9) {
219
+ .awsui_header-cell_1spae_xv9cn_149:not(#\9):last-child, .awsui_header-cell_1spae_xv9cn_149.awsui_header-cell-sortable_1spae_xv9cn_219:not(#\9) {
220
220
  padding-inline-end: var(--space-xs-ymlm0b, 8px);
221
221
  }
222
- .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell_1spae_h11fe_216:not(#\9) {
222
+ .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell_1spae_xv9cn_216:not(#\9) {
223
223
  position: sticky;
224
224
  background: var(--color-background-table-header-hdjxos, #ffffff);
225
225
  z-index: 798;
@@ -228,41 +228,44 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_hea
228
228
  transition-timing-function: var(--motion-easing-sticky-tn072u, cubic-bezier(1, 0, 0.83, 1));
229
229
  }
230
230
  @media (prefers-reduced-motion: reduce) {
231
- .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell_1spae_h11fe_216:not(#\9) {
231
+ .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell_1spae_xv9cn_216:not(#\9) {
232
232
  animation: none;
233
233
  transition: none;
234
234
  }
235
235
  }
236
- .awsui-motion-disabled .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell_1spae_h11fe_216:not(#\9), .awsui-mode-entering .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell_1spae_h11fe_216:not(#\9) {
236
+ .awsui-motion-disabled .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell_1spae_xv9cn_216:not(#\9), .awsui-mode-entering .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell_1spae_xv9cn_216:not(#\9) {
237
237
  animation: none;
238
238
  transition: none;
239
239
  }
240
- .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell-pad-left_1spae_h11fe_240:not(#\9):not(.awsui_has-selection_1spae_h11fe_240) {
240
+ .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell_1spae_xv9cn_216.awsui_table-variant-full-page_1spae_xv9cn_240:not(#\9) {
241
+ background: var(--color-background-layout-main-5ilwcb, #ffffff);
242
+ }
243
+ .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell-pad-left_1spae_xv9cn_243:not(#\9):not(.awsui_has-selection_1spae_xv9cn_243) {
241
244
  padding-inline-start: var(--space-table-horizontal-suurzj, 20px);
242
245
  }
243
- .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell-last-inline-start_1spae_h11fe_243:not(#\9) {
246
+ .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell-last-inline-start_1spae_xv9cn_246:not(#\9) {
244
247
  box-shadow: var(--shadow-sticky-column-first-trcd2o, 4px 0px 8px 1px rgba(0, 7, 22, 0.1));
245
248
  clip-path: inset(0px -24px 0px 0px);
246
249
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
247
250
  }
248
- .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell-last-inline-start_1spae_h11fe_243 > .awsui_resize-divider_1spae_h11fe_248:not(#\9) {
251
+ .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell-last-inline-start_1spae_xv9cn_246 > .awsui_resize-divider_1spae_xv9cn_251:not(#\9) {
249
252
  display: none;
250
253
  }
251
- .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell-last-inline-start_1spae_h11fe_243:not(#\9):dir(rtl) {
254
+ .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell-last-inline-start_1spae_xv9cn_246:not(#\9):dir(rtl) {
252
255
  box-shadow: var(--shadow-sticky-column-last-qgh697, -4px 0 8px 1px rgba(0, 28, 36, 0.1));
253
256
  clip-path: inset(0 0 0 -24px);
254
257
  }
255
- .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell-last-inline-end_1spae_h11fe_255:not(#\9) {
258
+ .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell-last-inline-end_1spae_xv9cn_258:not(#\9) {
256
259
  box-shadow: var(--shadow-sticky-column-last-qgh697, -4px 0 8px 1px rgba(0, 28, 36, 0.1));
257
260
  clip-path: inset(0 0 0 -24px);
258
261
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
259
262
  }
260
- .awsui_header-cell_1spae_h11fe_149.awsui_sticky-cell-last-inline-end_1spae_h11fe_255:not(#\9):dir(rtl) {
263
+ .awsui_header-cell_1spae_xv9cn_149.awsui_sticky-cell-last-inline-end_1spae_xv9cn_258:not(#\9):dir(rtl) {
261
264
  box-shadow: var(--shadow-sticky-column-first-trcd2o, 4px 0px 8px 1px rgba(0, 7, 22, 0.1));
262
265
  clip-path: inset(0 -24px 0 0);
263
266
  }
264
267
 
265
- .awsui_sorting-icon_1spae_h11fe_265:not(#\9) {
268
+ .awsui_sorting-icon_1spae_xv9cn_268:not(#\9) {
266
269
  position: absolute;
267
270
  inset-block-start: 50%;
268
271
  transform: translateY(-50%);
@@ -270,36 +273,36 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_hea
270
273
  color: var(--color-text-column-sorting-icon-fngn77, #424650);
271
274
  }
272
275
 
273
- .awsui_edit-icon_1spae_h11fe_273:not(#\9) {
276
+ .awsui_edit-icon_1spae_xv9cn_276:not(#\9) {
274
277
  margin-inline-start: var(--space-xxs-hwfkai, 4px);
275
278
  margin-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
276
279
  color: inherit;
277
280
  }
278
281
 
279
- .awsui_header-cell-content_1spae_h11fe_279:not(#\9) {
282
+ .awsui_header-cell-content_1spae_xv9cn_282:not(#\9) {
280
283
  position: relative;
281
284
  padding-block: var(--space-scaled-xxs-pfm1nx, 4px);
282
285
  padding-inline-end: var(--space-s-tvghoh, 12px);
283
286
  padding-inline-start: var(--space-s-tvghoh, 12px);
284
287
  }
285
- .awsui_header-cell-content_1spae_h11fe_279.awsui_header-cell-content-expandable_1spae_h11fe_285:not(#\9) {
288
+ .awsui_header-cell-content_1spae_xv9cn_282.awsui_header-cell-content-expandable_1spae_xv9cn_288:not(#\9) {
286
289
  padding-inline-start: calc(var(--space-s-tvghoh, 12px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
287
290
  }
288
- .awsui_header-cell-sortable_1spae_h11fe_219 > .awsui_header-cell-content_1spae_h11fe_279:not(#\9) {
291
+ .awsui_header-cell-sortable_1spae_xv9cn_219 > .awsui_header-cell-content_1spae_xv9cn_282:not(#\9) {
289
292
  padding-inline-end: calc(var(--space-xl-jfy3x4, 24px) + var(--space-xxs-hwfkai, 4px));
290
293
  }
291
- .awsui_header-cell-content_1spae_h11fe_279:not(#\9):focus {
294
+ .awsui_header-cell-content_1spae_xv9cn_282:not(#\9):focus {
292
295
  outline: none;
293
296
  text-decoration: none;
294
297
  }
295
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_h11fe_279:not(#\9):focus {
298
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_xv9cn_282:not(#\9):focus {
296
299
  position: relative;
297
300
  }
298
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_h11fe_279:not(#\9):focus {
301
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_xv9cn_282:not(#\9):focus {
299
302
  outline: 2px dotted transparent;
300
303
  outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-ymwujm, 0px)) - 1px);
301
304
  }
302
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_h11fe_279:not(#\9):focus::before {
305
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_xv9cn_282:not(#\9):focus::before {
303
306
  content: " ";
304
307
  display: block;
305
308
  position: absolute;
@@ -313,14 +316,14 @@ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_h11fe_279:n
313
316
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
314
317
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
315
318
  }
316
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_h11fe_279.awsui_header-cell-fake-focus_1spae_h11fe_183:not(#\9) {
319
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_xv9cn_282.awsui_header-cell-fake-focus_1spae_xv9cn_183:not(#\9) {
317
320
  position: relative;
318
321
  }
319
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_h11fe_279.awsui_header-cell-fake-focus_1spae_h11fe_183:not(#\9) {
322
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_xv9cn_282.awsui_header-cell-fake-focus_1spae_xv9cn_183:not(#\9) {
320
323
  outline: 2px dotted transparent;
321
324
  outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-ymwujm, 0px)) - 1px);
322
325
  }
323
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_h11fe_279.awsui_header-cell-fake-focus_1spae_h11fe_183:not(#\9)::before {
326
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_xv9cn_282.awsui_header-cell-fake-focus_1spae_xv9cn_183:not(#\9)::before {
324
327
  content: " ";
325
328
  display: block;
326
329
  position: absolute;
@@ -334,32 +337,32 @@ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_h11fe_279.a
334
337
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
335
338
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
336
339
  }
337
- .awsui_header-cell-disabled_1spae_h11fe_337.awsui_header-cell-sorted_1spae_h11fe_337 > .awsui_header-cell-content_1spae_h11fe_279 > .awsui_sorting-icon_1spae_h11fe_265:not(#\9) {
340
+ .awsui_header-cell-disabled_1spae_xv9cn_340.awsui_header-cell-sorted_1spae_xv9cn_340 > .awsui_header-cell-content_1spae_xv9cn_282 > .awsui_sorting-icon_1spae_xv9cn_268:not(#\9) {
338
341
  color: var(--color-text-interactive-disabled-1bqmrl, #b4b4bb);
339
342
  }
340
343
 
341
- .awsui_header-cell-sortable_1spae_h11fe_219:not(#\9):not(.awsui_header-cell-disabled_1spae_h11fe_337) > .awsui_header-cell-content_1spae_h11fe_279 {
344
+ .awsui_header-cell-sortable_1spae_xv9cn_219:not(#\9):not(.awsui_header-cell-disabled_1spae_xv9cn_340) > .awsui_header-cell-content_1spae_xv9cn_282 {
342
345
  cursor: pointer;
343
346
  }
344
- .awsui_header-cell-sortable_1spae_h11fe_219:not(#\9):not(.awsui_header-cell-disabled_1spae_h11fe_337) > .awsui_header-cell-content_1spae_h11fe_279:hover, .awsui_header-cell-sortable_1spae_h11fe_219:not(#\9):not(.awsui_header-cell-disabled_1spae_h11fe_337).awsui_header-cell-sorted_1spae_h11fe_337 > .awsui_header-cell-content_1spae_h11fe_279 {
347
+ .awsui_header-cell-sortable_1spae_xv9cn_219:not(#\9):not(.awsui_header-cell-disabled_1spae_xv9cn_340) > .awsui_header-cell-content_1spae_xv9cn_282:hover, .awsui_header-cell-sortable_1spae_xv9cn_219:not(#\9):not(.awsui_header-cell-disabled_1spae_xv9cn_340).awsui_header-cell-sorted_1spae_xv9cn_340 > .awsui_header-cell-content_1spae_xv9cn_282 {
345
348
  color: var(--color-text-interactive-active-uoe6zi, #0f141a);
346
349
  }
347
- .awsui_header-cell-sortable_1spae_h11fe_219:not(#\9):not(.awsui_header-cell-disabled_1spae_h11fe_337) > .awsui_header-cell-content_1spae_h11fe_279:hover > .awsui_sorting-icon_1spae_h11fe_265, .awsui_header-cell-sortable_1spae_h11fe_219:not(#\9):not(.awsui_header-cell-disabled_1spae_h11fe_337).awsui_header-cell-sorted_1spae_h11fe_337 > .awsui_header-cell-content_1spae_h11fe_279 > .awsui_sorting-icon_1spae_h11fe_265 {
350
+ .awsui_header-cell-sortable_1spae_xv9cn_219:not(#\9):not(.awsui_header-cell-disabled_1spae_xv9cn_340) > .awsui_header-cell-content_1spae_xv9cn_282:hover > .awsui_sorting-icon_1spae_xv9cn_268, .awsui_header-cell-sortable_1spae_xv9cn_219:not(#\9):not(.awsui_header-cell-disabled_1spae_xv9cn_340).awsui_header-cell-sorted_1spae_xv9cn_340 > .awsui_header-cell-content_1spae_xv9cn_282 > .awsui_sorting-icon_1spae_xv9cn_268 {
348
351
  color: var(--color-text-interactive-active-uoe6zi, #0f141a);
349
352
  }
350
353
 
351
- .awsui_header-cell-text_1spae_h11fe_351:not(#\9) {
354
+ .awsui_header-cell-text_1spae_xv9cn_354:not(#\9) {
352
355
  line-height: var(--line-height-heading-xs-q9j004, 18px);
353
356
  padding-block: calc(var(--space-xxxs-pajhad, 2px) / 2);
354
357
  }
355
- .awsui_header-cell-text_1spae_h11fe_351:not(#\9):not(.awsui_header-cell-text-wrap_1spae_h11fe_355) {
358
+ .awsui_header-cell-text_1spae_xv9cn_354:not(#\9):not(.awsui_header-cell-text-wrap_1spae_xv9cn_358) {
356
359
  white-space: nowrap;
357
360
  overflow: hidden;
358
361
  text-overflow: ellipsis;
359
362
  }
360
363
 
361
- .awsui_header-cell-ascending_1spae_h11fe_361:not(#\9),
362
- .awsui_header-cell-descending_1spae_h11fe_362:not(#\9) {
364
+ .awsui_header-cell-ascending_1spae_xv9cn_364:not(#\9),
365
+ .awsui_header-cell-descending_1spae_xv9cn_365:not(#\9) {
363
366
  /* used in test-utils */
364
367
  }
365
368
 
@@ -369,28 +372,28 @@ with the left edge of the table as closely as possible. If the
369
372
  last header cell is sortable the sort icon should align with the
370
373
  settings icon in the pagination slot.
371
374
  */
372
- .awsui_header-cell_1spae_h11fe_149:not(#\9):not(.awsui_is-visual-refresh_1spae_h11fe_216):first-child {
375
+ .awsui_header-cell_1spae_xv9cn_149:not(#\9):not(.awsui_is-visual-refresh_1spae_xv9cn_216):first-child {
373
376
  padding-inline-start: var(--space-xs-ymlm0b, 8px);
374
377
  }
375
- .awsui_header-cell_1spae_h11fe_149:not(#\9):not(.awsui_is-visual-refresh_1spae_h11fe_216):first-child.awsui_header-cell-content-expandable_1spae_h11fe_285 {
378
+ .awsui_header-cell_1spae_xv9cn_149:not(#\9):not(.awsui_is-visual-refresh_1spae_xv9cn_216):first-child.awsui_header-cell-content-expandable_1spae_xv9cn_288 {
376
379
  padding-inline-start: calc(var(--space-xs-ymlm0b, 8px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
377
380
  }
378
381
 
379
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9) {
382
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9) {
380
383
  /*
381
384
  Striped rows requires additional left padding because the
382
385
  shaded background makes the child content appear too close
383
386
  to the table edge.
384
387
  */
385
388
  }
386
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child:focus {
389
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child:focus {
387
390
  position: relative;
388
391
  }
389
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child:focus {
392
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child:focus {
390
393
  outline: 2px dotted transparent;
391
394
  outline-offset: calc(calc(-1 * var(--space-scaled-xxs-pfm1nx, 4px) + var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
392
395
  }
393
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child:focus::before {
396
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child:focus::before {
394
397
  content: " ";
395
398
  display: block;
396
399
  position: absolute;
@@ -404,14 +407,14 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-
404
407
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
405
408
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
406
409
  }
407
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_h11fe_183 {
410
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_xv9cn_183 {
408
411
  position: relative;
409
412
  }
410
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_h11fe_183 {
413
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_xv9cn_183 {
411
414
  outline: 2px dotted transparent;
412
415
  outline-offset: calc(calc(-1 * var(--space-scaled-xxs-pfm1nx, 4px) + var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
413
416
  }
414
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_h11fe_183::before {
417
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_xv9cn_183::before {
415
418
  content: " ";
416
419
  display: block;
417
420
  position: absolute;
@@ -425,20 +428,20 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-
425
428
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
426
429
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
427
430
  }
428
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child > .awsui_header-cell-content_1spae_h11fe_279 {
431
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child > .awsui_header-cell-content_1spae_xv9cn_282 {
429
432
  padding-inline-start: 0px;
430
433
  }
431
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child > .awsui_header-cell-content_1spae_h11fe_279.awsui_header-cell-content-expandable_1spae_h11fe_285 {
434
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child > .awsui_header-cell-content_1spae_xv9cn_282.awsui_header-cell-content-expandable_1spae_xv9cn_288 {
432
435
  padding-inline-start: calc(0px + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
433
436
  }
434
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child > .awsui_header-cell-content_1spae_h11fe_279:focus {
437
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child > .awsui_header-cell-content_1spae_xv9cn_282:focus {
435
438
  position: relative;
436
439
  }
437
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child > .awsui_header-cell-content_1spae_h11fe_279:focus {
440
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child > .awsui_header-cell-content_1spae_xv9cn_282:focus {
438
441
  outline: 2px dotted transparent;
439
442
  outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-ymwujm, 0px) + var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
440
443
  }
441
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child > .awsui_header-cell-content_1spae_h11fe_279:focus::before {
444
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child > .awsui_header-cell-content_1spae_xv9cn_282:focus::before {
442
445
  content: " ";
443
446
  display: block;
444
447
  position: absolute;
@@ -452,14 +455,14 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-
452
455
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
453
456
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
454
457
  }
455
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child > .awsui_header-cell-content_1spae_h11fe_279.awsui_header-cell-fake-focus_1spae_h11fe_183 {
458
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child > .awsui_header-cell-content_1spae_xv9cn_282.awsui_header-cell-fake-focus_1spae_xv9cn_183 {
456
459
  position: relative;
457
460
  }
458
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child > .awsui_header-cell-content_1spae_h11fe_279.awsui_header-cell-fake-focus_1spae_h11fe_183 {
461
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child > .awsui_header-cell-content_1spae_xv9cn_282.awsui_header-cell-fake-focus_1spae_xv9cn_183 {
459
462
  outline: 2px dotted transparent;
460
463
  outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-ymwujm, 0px) + var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
461
464
  }
462
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child > .awsui_header-cell-content_1spae_h11fe_279.awsui_header-cell-fake-focus_1spae_h11fe_183::before {
465
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child > .awsui_header-cell-content_1spae_xv9cn_282.awsui_header-cell-fake-focus_1spae_xv9cn_183::before {
463
466
  content: " ";
464
467
  display: block;
465
468
  position: absolute;
@@ -473,24 +476,24 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_h11fe_149.awsui_is-
473
476
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
474
477
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
475
478
  }
476
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_h11fe_476):not(.awsui_sticky-cell-pad-inline-start_1spae_h11fe_476) {
479
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_xv9cn_479):not(.awsui_sticky-cell-pad-inline-start_1spae_xv9cn_479) {
477
480
  padding-inline-start: var(--space-xxxs-pajhad, 2px);
478
481
  }
479
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_h11fe_476):not(.awsui_sticky-cell-pad-inline-start_1spae_h11fe_476).awsui_header-cell-content-expandable_1spae_h11fe_285 {
482
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_xv9cn_479):not(.awsui_sticky-cell-pad-inline-start_1spae_xv9cn_479).awsui_header-cell-content-expandable_1spae_xv9cn_288 {
480
483
  padding-inline-start: calc(var(--space-xxxs-pajhad, 2px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
481
484
  }
482
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child.awsui_has-striped-rows_1spae_h11fe_476:not(.awsui_sticky-cell-pad-inline-start_1spae_h11fe_476) {
485
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child.awsui_has-striped-rows_1spae_xv9cn_479:not(.awsui_sticky-cell-pad-inline-start_1spae_xv9cn_479) {
483
486
  padding-inline-start: var(--space-xxs-hwfkai, 4px);
484
487
  }
485
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):first-child.awsui_has-striped-rows_1spae_h11fe_476:not(.awsui_sticky-cell-pad-inline-start_1spae_h11fe_476).awsui_header-cell-content-expandable_1spae_h11fe_285 {
488
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):first-child.awsui_has-striped-rows_1spae_xv9cn_479:not(.awsui_sticky-cell-pad-inline-start_1spae_xv9cn_479).awsui_header-cell-content-expandable_1spae_xv9cn_288 {
486
489
  padding-inline-start: calc(var(--space-xxs-hwfkai, 4px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
487
490
  }
488
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216:not(#\9):last-child.awsui_header-cell-sortable_1spae_h11fe_219 {
491
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216:not(#\9):last-child.awsui_header-cell-sortable_1spae_xv9cn_219 {
489
492
  padding-inline-end: var(--space-xxxs-pajhad, 2px);
490
493
  }
491
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216.awsui_sticky-cell-pad-inline-start_1spae_h11fe_476:not(#\9) {
494
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216.awsui_sticky-cell-pad-inline-start_1spae_xv9cn_479:not(#\9) {
492
495
  padding-inline-start: var(--space-scaled-l-sej05l, 20px);
493
496
  }
494
- .awsui_header-cell_1spae_h11fe_149.awsui_is-visual-refresh_1spae_h11fe_216.awsui_sticky-cell-pad-inline-start_1spae_h11fe_476.awsui_header-cell-content-expandable_1spae_h11fe_285:not(#\9) {
497
+ .awsui_header-cell_1spae_xv9cn_149.awsui_is-visual-refresh_1spae_xv9cn_216.awsui_sticky-cell-pad-inline-start_1spae_xv9cn_479.awsui_header-cell-content-expandable_1spae_xv9cn_288:not(#\9) {
495
498
  padding-inline-start: calc(var(--space-scaled-l-sej05l, 20px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
496
499
  }
@@ -2,33 +2,34 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "header-cell": "awsui_header-cell_1spae_h11fe_149",
6
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_h11fe_183",
7
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_h11fe_204",
8
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_h11fe_207",
9
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_h11fe_207",
10
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_h11fe_213",
11
- "header-cell-variant-embedded": "awsui_header-cell-variant-embedded_1spae_h11fe_216",
12
- "is-visual-refresh": "awsui_is-visual-refresh_1spae_h11fe_216",
13
- "sticky-cell": "awsui_sticky-cell_1spae_h11fe_216",
14
- "header-cell-variant-borderless": "awsui_header-cell-variant-borderless_1spae_h11fe_216",
15
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_h11fe_219",
16
- "sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_h11fe_240",
17
- "has-selection": "awsui_has-selection_1spae_h11fe_240",
18
- "sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_1spae_h11fe_243",
19
- "resize-divider": "awsui_resize-divider_1spae_h11fe_248",
20
- "sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_1spae_h11fe_255",
21
- "sorting-icon": "awsui_sorting-icon_1spae_h11fe_265",
22
- "edit-icon": "awsui_edit-icon_1spae_h11fe_273",
23
- "header-cell-content": "awsui_header-cell-content_1spae_h11fe_279",
24
- "header-cell-content-expandable": "awsui_header-cell-content-expandable_1spae_h11fe_285",
25
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_h11fe_337",
26
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_h11fe_337",
27
- "header-cell-text": "awsui_header-cell-text_1spae_h11fe_351",
28
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_h11fe_355",
29
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_h11fe_361",
30
- "header-cell-descending": "awsui_header-cell-descending_1spae_h11fe_362",
31
- "has-striped-rows": "awsui_has-striped-rows_1spae_h11fe_476",
32
- "sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-start_1spae_h11fe_476"
5
+ "header-cell": "awsui_header-cell_1spae_xv9cn_149",
6
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_xv9cn_183",
7
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_xv9cn_204",
8
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_xv9cn_207",
9
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_xv9cn_207",
10
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_xv9cn_213",
11
+ "header-cell-variant-embedded": "awsui_header-cell-variant-embedded_1spae_xv9cn_216",
12
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_xv9cn_216",
13
+ "sticky-cell": "awsui_sticky-cell_1spae_xv9cn_216",
14
+ "header-cell-variant-borderless": "awsui_header-cell-variant-borderless_1spae_xv9cn_216",
15
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_xv9cn_219",
16
+ "table-variant-full-page": "awsui_table-variant-full-page_1spae_xv9cn_240",
17
+ "sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_xv9cn_243",
18
+ "has-selection": "awsui_has-selection_1spae_xv9cn_243",
19
+ "sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_1spae_xv9cn_246",
20
+ "resize-divider": "awsui_resize-divider_1spae_xv9cn_251",
21
+ "sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_1spae_xv9cn_258",
22
+ "sorting-icon": "awsui_sorting-icon_1spae_xv9cn_268",
23
+ "edit-icon": "awsui_edit-icon_1spae_xv9cn_276",
24
+ "header-cell-content": "awsui_header-cell-content_1spae_xv9cn_282",
25
+ "header-cell-content-expandable": "awsui_header-cell-content-expandable_1spae_xv9cn_288",
26
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_xv9cn_340",
27
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_xv9cn_340",
28
+ "header-cell-text": "awsui_header-cell-text_1spae_xv9cn_354",
29
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_xv9cn_358",
30
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_xv9cn_364",
31
+ "header-cell-descending": "awsui_header-cell-descending_1spae_xv9cn_365",
32
+ "has-striped-rows": "awsui_has-striped-rows_1spae_xv9cn_479",
33
+ "sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-start_1spae_xv9cn_479"
33
34
  };
34
35
 
@@ -22,6 +22,7 @@ export interface TableThElementProps {
22
22
  children: React.ReactNode;
23
23
  variant: TableProps.Variant;
24
24
  ariaLabel?: string;
25
+ tableVariant?: string;
25
26
  }
26
27
  export declare function TableThElement({
27
28
  resizableStyle,
@@ -41,5 +42,6 @@ export declare function TableThElement({
41
42
  children,
42
43
  variant,
43
44
  ariaLabel,
45
+ tableVariant,
44
46
  ...props
45
47
  }: TableThElementProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"th-element.d.ts","sourceRoot":"","sources":["../../../../src/table/header-cell/th-element.t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,EACf,gBAAgB,EAChB,KAAK,EACL,MAAM,EACN,MAAM,EACN,WAAW,EACX,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,YAAY,EACZ,GAAG,KAAK,EACT,EAAE,mBAAmB,eA8CrB"}
@@ -13,7 +13,7 @@ import { getStickyClassNames } from '../utils';
13
13
  import tableStyles from '../styles.css.js';
14
14
  import styles from './styles.css.js';
15
15
  export function TableThElement(_a) {
16
- var { resizableStyle, sortingStatus, sortingDisabled, focusedComponent, stuck, sticky, hidden, stripedRows, isSelection, colIndex, columnId, stickyState, cellRef, tableRole, children, variant, ariaLabel } = _a, props = __rest(_a, ["resizableStyle", "sortingStatus", "sortingDisabled", "focusedComponent", "stuck", "sticky", "hidden", "stripedRows", "isSelection", "colIndex", "columnId", "stickyState", "cellRef", "tableRole", "children", "variant", "ariaLabel"]);
16
+ var { resizableStyle, sortingStatus, sortingDisabled, focusedComponent, stuck, sticky, hidden, stripedRows, isSelection, colIndex, columnId, stickyState, cellRef, tableRole, children, variant, ariaLabel, tableVariant } = _a, props = __rest(_a, ["resizableStyle", "sortingStatus", "sortingDisabled", "focusedComponent", "stuck", "sticky", "hidden", "stripedRows", "isSelection", "colIndex", "columnId", "stickyState", "cellRef", "tableRole", "children", "variant", "ariaLabel", "tableVariant"]);
17
17
  const isVisualRefresh = useVisualRefresh();
18
18
  const stickyStyles = useStickyCellStyles({
19
19
  stickyColumns: stickyState,
@@ -23,7 +23,7 @@ export function TableThElement(_a) {
23
23
  const cellRefObject = useRef(null);
24
24
  const mergedRef = useMergeRefs(stickyStyles.ref, cellRef, cellRefObject);
25
25
  const { tabIndex: cellTabIndex } = useSingleTabStopNavigation(cellRefObject);
26
- return (React.createElement("th", Object.assign({ "data-focus-id": `header-${String(columnId)}`, className: clsx(styles['header-cell'], styles[`header-cell-variant-${variant}`], sticky && styles['header-cell-sticky'], stuck && styles['header-cell-stuck'], stripedRows && styles['has-striped-rows'], isVisualRefresh && styles['is-visual-refresh'], isSelection && clsx(tableStyles['selection-control'], tableStyles['selection-control-header']), {
26
+ return (React.createElement("th", Object.assign({ "data-focus-id": `header-${String(columnId)}`, className: clsx(styles['header-cell'], styles[`header-cell-variant-${variant}`], sticky && styles['header-cell-sticky'], stuck && styles['header-cell-stuck'], stripedRows && styles['has-striped-rows'], isVisualRefresh && styles['is-visual-refresh'], isSelection && clsx(tableStyles['selection-control'], tableStyles['selection-control-header']), tableVariant && styles[`table-variant-${tableVariant}`], {
27
27
  [styles['header-cell-fake-focus']]: focusedComponent === `header-${String(columnId)}`,
28
28
  [styles['header-cell-sortable']]: sortingStatus,
29
29
  [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',
@@ -1 +1 @@
1
- {"version":3,"file":"th-element.js","sourceRoot":"","sources":["../../../../src/table/header-cell/th-element.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAElH,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAa,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAsBrC,MAAM,UAAU,cAAc,CAAC,EAmBT;QAnBS,EAC7B,cAAc,EACd,aAAa,EACb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AAC,CAAC,EAAE,aAAa;YAC/C,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,aAAa,KAAK,WAAW,IAAI,aAAa,KAAK,YAAY;YAC/F,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,eAAe;YACjD,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,aAAa,KAAK,WAAW;YAChE,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,aAAa,KAAK,YAAY;YAClE,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,MAAM;SACvC,EACD,YAAY,CAAC,SAAS,CACvB,EACD,KAAK,kCAAO,cAAc,GAAK,YAAY,CAAC,KAAK,GACjD,GAAG,EAAE,SAAS,IACV,0BAA0B,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,IACtE,QAAQ,EAAE,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,IACpD,8BAA8B,CAAC,KAAK,CAAC,EACrC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAEjD,QAAQ,CACN,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport { ColumnWidthStyle } from '../column-widths-utils';\nimport { TableProps } from '../interfaces';\nimport { StickyColumnsModel, useStickyCellStyles } from '../sticky-columns';\nimport { getTableColHeaderRoleProps, TableRole } from '../table-role';\nimport { getStickyClassNames } from '../utils';\nimport { SortingStatus } from './utils';\n\nimport tableStyles from '../styles.css.js';\nimport styles from './styles.css.js';\n\nexport interface TableThElementProps {\n resizableStyle?: ColumnWidthStyle;\n sortingStatus?: SortingStatus;\n sortingDisabled?: boolean;\n focusedComponent?: null | string;\n stuck?: boolean;\n sticky?: boolean;\n hidden?: boolean;\n stripedRows?: boolean;\n isSelection?: boolean;\n colIndex: number;\n columnId: PropertyKey;\n stickyState: StickyColumnsModel;\n cellRef?: React.RefCallback<HTMLElement> | null;\n tableRole: TableRole;\n children: React.ReactNode;\n variant: TableProps.Variant;\n ariaLabel?: string;\n}\n\nexport function TableThElement({\n resizableStyle,\n sortingStatus,\n sortingDisabled,\n focusedComponent,\n stuck,\n sticky,\n hidden,\n stripedRows,\n isSelection,\n colIndex,\n columnId,\n stickyState,\n cellRef,\n tableRole,\n children,\n variant,\n ariaLabel,\n ...props\n}: TableThElementProps) {\n const isVisualRefresh = useVisualRefresh();\n\n const stickyStyles = useStickyCellStyles({\n stickyColumns: stickyState,\n columnId,\n getClassName: props => getStickyClassNames(styles, props),\n });\n\n const cellRefObject = useRef<HTMLTableCellElement>(null);\n const mergedRef = useMergeRefs(stickyStyles.ref, cellRef, cellRefObject);\n const { tabIndex: cellTabIndex } = useSingleTabStopNavigation(cellRefObject);\n\n return (\n <th\n data-focus-id={`header-${String(columnId)}`}\n className={clsx(\n styles['header-cell'],\n styles[`header-cell-variant-${variant}`],\n sticky && styles['header-cell-sticky'],\n stuck && styles['header-cell-stuck'],\n stripedRows && styles['has-striped-rows'],\n isVisualRefresh && styles['is-visual-refresh'],\n isSelection && clsx(tableStyles['selection-control'], tableStyles['selection-control-header']),\n {\n [styles['header-cell-fake-focus']]: focusedComponent === `header-${String(columnId)}`,\n [styles['header-cell-sortable']]: sortingStatus,\n [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',\n [styles['header-cell-disabled']]: sortingDisabled,\n [styles['header-cell-ascending']]: sortingStatus === 'ascending',\n [styles['header-cell-descending']]: sortingStatus === 'descending',\n [styles['header-cell-hidden']]: hidden,\n },\n stickyStyles.className\n )}\n style={{ ...resizableStyle, ...stickyStyles.style }}\n ref={mergedRef}\n {...getTableColHeaderRoleProps({ tableRole, sortingStatus, colIndex })}\n tabIndex={cellTabIndex === -1 ? undefined : cellTabIndex}\n {...copyAnalyticsMetadataAttribute(props)}\n {...(ariaLabel ? { 'aria-label': ariaLabel } : {})}\n >\n {children}\n </th>\n );\n}\n"]}
1
+ {"version":3,"file":"th-element.js","sourceRoot":"","sources":["../../../../src/table/header-cell/th-element.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAElH,OAAO,EAAE,0BAA0B,EAAE,MAAM,2DAA2D,CAAC;AACvG,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAGxE,OAAO,EAAsB,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAa,MAAM,eAAe,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAuBrC,MAAM,UAAU,cAAc,CAAC,EAoBT;QApBS,EAC7B,cAAc,EACd,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,KAAK,EACL,MAAM,EACN,MAAM,EACN,WAAW,EACX,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,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a,KAAK,YAAY;YAC/F,CAAC,MAAM,CAAC,sBAAsB,CAAC,CAAC,EAAE,eAAe;YACjD,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC,EAAE,aAAa,KAAK,WAAW;YAChE,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,aAAa,KAAK,YAAY;YAClE,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,MAAM;SACvC,EACD,YAAY,CAAC,SAAS,CACvB,EACD,KAAK,kCAAO,cAAc,GAAK,YAAY,CAAC,KAAK,GACjD,GAAG,EAAE,SAAS,IACV,0BAA0B,CAAC,EAAE,SAAS,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAC,IACtE,QAAQ,EAAE,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,YAAY,IACpD,8BAA8B,CAAC,KAAK,CAAC,EACrC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,GAEjD,QAAQ,CACN,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useSingleTabStopNavigation } from '../../internal/context/single-tab-stop-navigation-context';\nimport { useVisualRefresh } from '../../internal/hooks/use-visual-mode';\nimport { ColumnWidthStyle } from '../column-widths-utils';\nimport { TableProps } from '../interfaces';\nimport { StickyColumnsModel, useStickyCellStyles } from '../sticky-columns';\nimport { getTableColHeaderRoleProps, TableRole } from '../table-role';\nimport { getStickyClassNames } from '../utils';\nimport { SortingStatus } from './utils';\n\nimport tableStyles from '../styles.css.js';\nimport styles from './styles.css.js';\n\nexport interface TableThElementProps {\n resizableStyle?: ColumnWidthStyle;\n sortingStatus?: SortingStatus;\n sortingDisabled?: boolean;\n focusedComponent?: null | string;\n stuck?: boolean;\n sticky?: boolean;\n hidden?: boolean;\n stripedRows?: boolean;\n isSelection?: boolean;\n colIndex: number;\n columnId: PropertyKey;\n stickyState: StickyColumnsModel;\n cellRef?: React.RefCallback<HTMLElement> | null;\n tableRole: TableRole;\n children: React.ReactNode;\n variant: TableProps.Variant;\n ariaLabel?: string;\n tableVariant?: string;\n}\n\nexport function TableThElement({\n resizableStyle,\n sortingStatus,\n sortingDisabled,\n focusedComponent,\n stuck,\n sticky,\n hidden,\n stripedRows,\n isSelection,\n colIndex,\n columnId,\n stickyState,\n cellRef,\n tableRole,\n children,\n variant,\n ariaLabel,\n tableVariant,\n ...props\n}: TableThElementProps) {\n const isVisualRefresh = useVisualRefresh();\n\n const stickyStyles = useStickyCellStyles({\n stickyColumns: stickyState,\n columnId,\n getClassName: props => getStickyClassNames(styles, props),\n });\n\n const cellRefObject = useRef<HTMLTableCellElement>(null);\n const mergedRef = useMergeRefs(stickyStyles.ref, cellRef, cellRefObject);\n const { tabIndex: cellTabIndex } = useSingleTabStopNavigation(cellRefObject);\n\n return (\n <th\n data-focus-id={`header-${String(columnId)}`}\n className={clsx(\n styles['header-cell'],\n styles[`header-cell-variant-${variant}`],\n sticky && styles['header-cell-sticky'],\n stuck && styles['header-cell-stuck'],\n stripedRows && styles['has-striped-rows'],\n isVisualRefresh && styles['is-visual-refresh'],\n isSelection && clsx(tableStyles['selection-control'], tableStyles['selection-control-header']),\n tableVariant && styles[`table-variant-${tableVariant}`],\n {\n [styles['header-cell-fake-focus']]: focusedComponent === `header-${String(columnId)}`,\n [styles['header-cell-sortable']]: sortingStatus,\n [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',\n [styles['header-cell-disabled']]: sortingDisabled,\n [styles['header-cell-ascending']]: sortingStatus === 'ascending',\n [styles['header-cell-descending']]: sortingStatus === 'descending',\n [styles['header-cell-hidden']]: hidden,\n },\n stickyStyles.className\n )}\n style={{ ...resizableStyle, ...stickyStyles.style }}\n ref={mergedRef}\n {...getTableColHeaderRoleProps({ tableRole, sortingStatus, colIndex })}\n tabIndex={cellTabIndex === -1 ? undefined : cellTabIndex}\n {...copyAnalyticsMetadataAttribute(props)}\n {...(ariaLabel ? { 'aria-label': ariaLabel } : {})}\n >\n {children}\n </th>\n );\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/table/internal.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,mBAAmB,EAAwB,MAAM,cAAc,CAAC;AA2CzE,eAAO,MAAM,sBAAsB,qBAWX,CAAC;AAEzB,QAAA,MAAM,aAAa,qBAgpBK,CAAC;AAEzB,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/table/internal.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,mBAAmB,EAAwB,MAAM,cAAc,CAAC;AA2CzE,eAAO,MAAM,sBAAsB,qBAWX,CAAC;AAEzB,QAAA,MAAM,aAAa,qBAkpBK,CAAC;AAEzB,eAAe,aAAa,CAAC"}
package/table/internal.js CHANGED
@@ -253,6 +253,7 @@ const InternalTable = React.forwardRef((_a, ref) => {
253
253
  getSelectAllProps,
254
254
  columnDefinitions: visibleColumnDefinitions,
255
255
  variant: computedVariant,
256
+ tableVariant: computedVariant,
256
257
  wrapLines,
257
258
  resizableColumns,
258
259
  sortingColumn,
@@ -307,7 +308,7 @@ const InternalTable = React.forwardRef((_a, ref) => {
307
308
  React.createElement("div", { ref: toolsHeaderWrapper, className: clsx(styles['header-controls'], styles[`variant-${computedVariant}`]) },
308
309
  React.createElement(CollectionLabelContext.Provider, { value: { assignId: setHeaderRef } },
309
310
  React.createElement(ToolsHeader, { header: header, filter: filter, pagination: pagination, preferences: preferences, setLastUserAction: setLastUserAction }))))),
310
- stickyHeader && (React.createElement(StickyHeader, { ref: stickyHeaderRef, variant: computedVariant, theadProps: theadProps, wrapperRef: wrapperRefObject, theadRef: theadRef, secondaryWrapperRef: secondaryWrapperRef, tableRef: tableRefObject, onScroll: handleScroll, tableHasHeader: hasHeader, contentDensity: contentDensity, tableRole: tableRole }))), disableHeaderPaddings: true, disableContentPaddings: true, variant: toContainerVariant(computedVariant), __disableFooterPaddings: true, __disableFooterDivider: true, __disableStickyMobile: false, footer: hasFooter ? (React.createElement("div", { className: clsx(styles['footer-wrapper'], styles[`variant-${computedVariant}`]) },
311
+ stickyHeader && (React.createElement(StickyHeader, { ref: stickyHeaderRef, variant: computedVariant, theadProps: theadProps, wrapperRef: wrapperRefObject, theadRef: theadRef, secondaryWrapperRef: secondaryWrapperRef, tableRef: tableRefObject, onScroll: handleScroll, tableHasHeader: hasHeader, contentDensity: contentDensity, tableRole: tableRole }))), disableHeaderPaddings: true, disableContentPaddings: true, disableFooterPaddings: true, variant: toContainerVariant(computedVariant), __disableFooterDivider: true, __disableStickyMobile: false, footer: hasFooter ? (React.createElement("div", { className: clsx(styles['footer-wrapper'], styles[`variant-${computedVariant}`]) },
311
312
  React.createElement("div", { className: clsx(styles.footer, hasFooterPagination && styles['footer-with-pagination']) },
312
313
  footer && React.createElement("span", null, footer),
313
314
  hasFooterPagination && React.createElement("div", { className: styles['footer-pagination'] }, pagination)))) : null, __stickyHeader: stickyHeader, __mobileStickyOffset: toolsHeaderHeight !== null && toolsHeaderHeight !== void 0 ? toolsHeaderHeight : 0, __stickyOffset: stickyHeaderVerticalOffset }, focusMarkers.root),
@@ -391,7 +392,7 @@ const InternalTable = React.forwardRef((_a, ref) => {
391
392
  width: column.width,
392
393
  minWidth: column.minWidth,
393
394
  maxWidth: column.maxWidth,
394
- }, ariaLabels: ariaLabels, column: column, item: row.item, wrapLines: wrapLines, isEditable: isEditable, isEditing: isEditing, isRowHeader: column.isRowHeader, successfulEdit: successfulEdit, resizableColumns: resizableColumns, onEditStart: () => cellEditing.startEdit(cellId), onEditEnd: editCancelled => cellEditing.completeEdit(cellId, editCancelled), submitEdit: cellEditing.submitEdit, columnId: (_a = column.id) !== null && _a !== void 0 ? _a : colIndex, colIndex: colIndex + colIndexOffset, verticalAlign: (_b = column.verticalAlign) !== null && _b !== void 0 ? _b : cellVerticalAlign }, cellExpandableProps, getAnalyticsMetadataAttribute(analyticsMetadata))));
395
+ }, ariaLabels: ariaLabels, column: column, item: row.item, wrapLines: wrapLines, isEditable: isEditable, isEditing: isEditing, isRowHeader: column.isRowHeader, successfulEdit: successfulEdit, resizableColumns: resizableColumns, onEditStart: () => cellEditing.startEdit(cellId), onEditEnd: editCancelled => cellEditing.completeEdit(cellId, editCancelled), submitEdit: cellEditing.submitEdit, columnId: (_a = column.id) !== null && _a !== void 0 ? _a : colIndex, colIndex: colIndex + colIndexOffset, verticalAlign: (_b = column.verticalAlign) !== null && _b !== void 0 ? _b : cellVerticalAlign, tableVariant: computedVariant }, cellExpandableProps, getAnalyticsMetadataAttribute(analyticsMetadata))));
395
396
  })));
396
397
  }
397
398
  const loaderContent = getLoaderContent({