@cloudscape-design/components 3.0.1310 → 3.0.1312

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 (198) hide show
  1. package/app-layout/runtime-drawer/index.js +1 -1
  2. package/app-layout/runtime-drawer/index.js.map +1 -1
  3. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  4. package/app-layout/visual-refresh/drawers.js +3 -0
  5. package/app-layout/visual-refresh/drawers.js.map +1 -1
  6. package/app-layout/visual-refresh/styles.css.js +87 -86
  7. package/app-layout/visual-refresh/styles.scoped.css +176 -164
  8. package/app-layout/visual-refresh/styles.selectors.js +87 -86
  9. package/app-layout/visual-refresh/tools.d.ts.map +1 -1
  10. package/app-layout/visual-refresh/tools.js +2 -0
  11. package/app-layout/visual-refresh/tools.js.map +1 -1
  12. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
  13. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +84 -84
  14. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
  15. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  16. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +6 -6
  17. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  18. package/breadcrumb-group/implementation.d.ts.map +1 -1
  19. package/breadcrumb-group/implementation.js +2 -2
  20. package/breadcrumb-group/implementation.js.map +1 -1
  21. package/breadcrumb-group/item/item.d.ts.map +1 -1
  22. package/breadcrumb-group/item/item.js +2 -1
  23. package/breadcrumb-group/item/item.js.map +1 -1
  24. package/button/internal.d.ts +3 -0
  25. package/button/internal.d.ts.map +1 -1
  26. package/button/internal.js +2 -2
  27. package/button/internal.js.map +1 -1
  28. package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  29. package/button-dropdown/category-elements/expandable-category-element.js +4 -2
  30. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  31. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  32. package/button-dropdown/category-elements/mobile-expandable-category-element.js +4 -2
  33. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  34. package/button-dropdown/category-elements/styles.css.js +19 -18
  35. package/button-dropdown/category-elements/styles.scoped.css +32 -28
  36. package/button-dropdown/category-elements/styles.selectors.js +19 -18
  37. package/button-dropdown/index.d.ts.map +1 -1
  38. package/button-dropdown/index.js +4 -3
  39. package/button-dropdown/index.js.map +1 -1
  40. package/button-dropdown/interfaces.d.ts +22 -0
  41. package/button-dropdown/interfaces.d.ts.map +1 -1
  42. package/button-dropdown/interfaces.js.map +1 -1
  43. package/button-dropdown/internal.d.ts.map +1 -1
  44. package/button-dropdown/internal.js +15 -6
  45. package/button-dropdown/internal.js.map +1 -1
  46. package/button-dropdown/styles.css.js +23 -21
  47. package/button-dropdown/styles.scoped.css +39 -29
  48. package/button-dropdown/styles.selectors.js +23 -21
  49. package/button-group/icon-toggle-button-item.js +1 -1
  50. package/button-group/icon-toggle-button-item.js.map +1 -1
  51. package/button-group/interfaces.d.ts +12 -1
  52. package/button-group/interfaces.d.ts.map +1 -1
  53. package/button-group/interfaces.js.map +1 -1
  54. package/button-group/menu-dropdown-item.d.ts.map +1 -1
  55. package/button-group/menu-dropdown-item.js +2 -1
  56. package/button-group/menu-dropdown-item.js.map +1 -1
  57. package/dropdown/internal.d.ts.map +1 -1
  58. package/dropdown/internal.js +14 -2
  59. package/dropdown/internal.js.map +1 -1
  60. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  61. package/expandable-section/expandable-section-header.js +5 -5
  62. package/expandable-section/expandable-section-header.js.map +1 -1
  63. package/expandable-section/styles.css.js +36 -35
  64. package/expandable-section/styles.scoped.css +81 -66
  65. package/expandable-section/styles.selectors.js +36 -35
  66. package/icon/generated/icons.d.ts +1 -0
  67. package/icon/generated/icons.d.ts.map +1 -1
  68. package/icon/generated/icons.js +2 -0
  69. package/icon/generated/icons.js.map +1 -1
  70. package/icon-provider/interfaces.d.ts +1 -1
  71. package/icon-provider/interfaces.d.ts.map +1 -1
  72. package/icon-provider/interfaces.js.map +1 -1
  73. package/internal/base-component/styles.scoped.css +37 -1
  74. package/internal/components/button-trigger/index.d.ts.map +1 -1
  75. package/internal/components/button-trigger/index.js +3 -2
  76. package/internal/components/button-trigger/index.js.map +1 -1
  77. package/internal/components/button-trigger/styles.css.js +15 -14
  78. package/internal/components/button-trigger/styles.scoped.css +35 -29
  79. package/internal/components/button-trigger/styles.selectors.js +15 -14
  80. package/internal/components/checkbox-icon/index.d.ts.map +1 -1
  81. package/internal/components/checkbox-icon/index.js +11 -2
  82. package/internal/components/checkbox-icon/index.js.map +1 -1
  83. package/internal/components/drag-handle/styles.css.js +14 -14
  84. package/internal/components/drag-handle/styles.scoped.css +20 -19
  85. package/internal/components/drag-handle/styles.selectors.js +14 -14
  86. package/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
  87. package/internal/components/drag-handle-wrapper/index.js +6 -3
  88. package/internal/components/drag-handle-wrapper/index.js.map +1 -1
  89. package/internal/components/drag-handle-wrapper/portal-overlay.d.ts +2 -0
  90. package/internal/components/drag-handle-wrapper/portal-overlay.d.ts.map +1 -1
  91. package/internal/components/drag-handle-wrapper/portal-overlay.js +2 -2
  92. package/internal/components/drag-handle-wrapper/portal-overlay.js.map +1 -1
  93. package/internal/components/expand-toggle-button/index.js +2 -2
  94. package/internal/components/expand-toggle-button/index.js.map +1 -1
  95. package/internal/environment.js +2 -2
  96. package/internal/environment.json +2 -2
  97. package/internal/generated/styles/tokens.d.ts +8 -0
  98. package/internal/generated/styles/tokens.js +8 -0
  99. package/internal/generated/theming/index.cjs +236 -0
  100. package/internal/generated/theming/index.cjs.d.ts +72 -0
  101. package/internal/generated/theming/index.d.ts +72 -0
  102. package/internal/generated/theming/index.js +236 -0
  103. package/internal/hooks/use-mouse-down-target.js +2 -2
  104. package/internal/hooks/use-mouse-down-target.js.map +1 -1
  105. package/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
  106. package/internal/hooks/use-portal-mode-classes/index.js +4 -2
  107. package/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
  108. package/internal/hooks/use-visual-mode/index.d.ts +2 -1
  109. package/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
  110. package/internal/hooks/use-visual-mode/index.js +2 -1
  111. package/internal/hooks/use-visual-mode/index.js.map +1 -1
  112. package/internal/manifest.json +1 -1
  113. package/internal/utils/throttle.d.ts.map +1 -1
  114. package/internal/utils/throttle.js +3 -1
  115. package/internal/utils/throttle.js.map +1 -1
  116. package/manifest.json +2 -2
  117. package/package.json +1 -1
  118. package/progress-bar/index.d.ts.map +1 -1
  119. package/progress-bar/index.js +1 -0
  120. package/progress-bar/index.js.map +1 -1
  121. package/segmented-control/styles.css.js +16 -16
  122. package/segmented-control/styles.scoped.css +34 -34
  123. package/segmented-control/styles.selectors.js +16 -16
  124. package/status-indicator/internal.d.ts.map +1 -1
  125. package/status-indicator/internal.js +4 -3
  126. package/status-indicator/internal.js.map +1 -1
  127. package/status-indicator/styles.css.js +25 -24
  128. package/status-indicator/styles.scoped.css +75 -40
  129. package/status-indicator/styles.selectors.js +25 -24
  130. package/steps/internal.d.ts.map +1 -1
  131. package/steps/internal.js +20 -6
  132. package/steps/internal.js.map +1 -1
  133. package/steps/styles.css.js +12 -9
  134. package/steps/styles.scoped.css +43 -15
  135. package/steps/styles.selectors.js +12 -9
  136. package/table/header-cell/group-header-cell.d.ts.map +1 -1
  137. package/table/header-cell/group-header-cell.js +4 -16
  138. package/table/header-cell/group-header-cell.js.map +1 -1
  139. package/table/header-cell/index.d.ts.map +1 -1
  140. package/table/header-cell/index.js +2 -1
  141. package/table/header-cell/index.js.map +1 -1
  142. package/table/header-cell/styles.css.js +33 -33
  143. package/table/header-cell/styles.scoped.css +80 -73
  144. package/table/header-cell/styles.selectors.js +33 -33
  145. package/table/header-cell/th-element.d.ts +6 -6
  146. package/table/header-cell/th-element.d.ts.map +1 -1
  147. package/table/header-cell/th-element.js +4 -3
  148. package/table/header-cell/th-element.js.map +1 -1
  149. package/table/resizer/index.d.ts +5 -1
  150. package/table/resizer/index.d.ts.map +1 -1
  151. package/table/resizer/index.js +4 -4
  152. package/table/resizer/index.js.map +1 -1
  153. package/table/resizer/styles.css.js +17 -16
  154. package/table/resizer/styles.scoped.css +32 -24
  155. package/table/resizer/styles.selectors.js +17 -16
  156. package/table/selection/selection-cell.d.ts +2 -0
  157. package/table/selection/selection-cell.d.ts.map +1 -1
  158. package/table/selection/selection-cell.js +2 -2
  159. package/table/selection/selection-cell.js.map +1 -1
  160. package/table/sticky-columns/use-sticky-columns.d.ts +3 -1
  161. package/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
  162. package/table/sticky-columns/use-sticky-columns.js +31 -7
  163. package/table/sticky-columns/use-sticky-columns.js.map +1 -1
  164. package/table/thead.d.ts.map +1 -1
  165. package/table/thead.js +2 -2
  166. package/table/thead.js.map +1 -1
  167. package/test-utils/dom/table/index.js +1 -1
  168. package/test-utils/dom/table/index.js.map +1 -1
  169. package/test-utils/selectors/table/index.js +1 -1
  170. package/test-utils/selectors/table/index.js.map +1 -1
  171. package/theming/index.d.ts +3 -1
  172. package/theming/index.d.ts.map +1 -1
  173. package/theming/index.js +55 -0
  174. package/theming/index.js.map +1 -1
  175. package/toggle/styles.css.js +10 -10
  176. package/toggle/styles.scoped.css +18 -18
  177. package/toggle/styles.selectors.js +10 -10
  178. package/toggle-button/internal.d.ts.map +1 -1
  179. package/toggle-button/internal.js +3 -1
  180. package/toggle-button/internal.js.map +1 -1
  181. package/toggle-button/styles.css.js +4 -3
  182. package/toggle-button/styles.scoped.css +8 -3
  183. package/toggle-button/styles.selectors.js +4 -3
  184. package/token/dismiss-button.d.ts.map +1 -1
  185. package/token/dismiss-button.js +3 -1
  186. package/token/dismiss-button.js.map +1 -1
  187. package/token/internal.d.ts.map +1 -1
  188. package/token/internal.js +11 -3
  189. package/token/internal.js.map +1 -1
  190. package/token/styles.css.js +14 -14
  191. package/token/styles.scoped.css +33 -30
  192. package/token/styles.selectors.js +14 -14
  193. package/tree-view/tree-item/index.d.ts.map +1 -1
  194. package/tree-view/tree-item/index.js +2 -1
  195. package/tree-view/tree-item/index.js.map +1 -1
  196. package/tree-view/tree-item/styles.css.js +10 -9
  197. package/tree-view/tree-item/styles.scoped.css +19 -12
  198. package/tree-view/tree-item/styles.selectors.js +10 -9
@@ -146,11 +146,11 @@
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_ysd4g_149:not(#\9) {
149
+ .awsui_header-cell_1spae_1ef0j_149:not(#\9) {
150
150
  position: relative;
151
151
  text-align: start;
152
152
  box-sizing: border-box;
153
- border-block-end: var(--border-divider-list-width-tdfx1x, 1px) solid var(--color-border-divider-interactive-default-r928dz, #8c8c94);
153
+ border-block-end: var(--border-divider-list-width-tdfx1x, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
154
154
  background: var(--color-background-table-header-hdjxos, #ffffff);
155
155
  color: var(--color-text-column-header-e6urd1, #424650);
156
156
  font-weight: var(--font-weight-heading-s-lcx0ai, 700);
@@ -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_ysd4g_149:not(#\9):focus {
162
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149:not(#\9):focus {
163
163
  position: relative;
164
164
  }
165
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149:not(#\9):focus {
165
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_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_ysd4g_149:not(#\9):focus::before {
169
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_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_ysd4g_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_ysd4g_149.awsui_header-cell-fake-focus_1spae_ysd4g_183:not(#\9) {
183
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-fake-focus_1spae_1ef0j_183:not(#\9) {
184
184
  position: relative;
185
185
  }
186
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_header-cell-fake-focus_1spae_ysd4g_183:not(#\9) {
186
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-fake-focus_1spae_1ef0j_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_ysd4g_149.awsui_header-cell-fake-focus_1spae_ysd4g_183:not(#\9)::before {
190
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-fake-focus_1spae_1ef0j_183:not(#\9)::before {
191
191
  content: " ";
192
192
  display: block;
193
193
  position: absolute;
@@ -201,29 +201,36 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_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_1spae_ysd4g_149.awsui_header-cell-group_1spae_ysd4g_204:not(#\9), .awsui_header-cell_1spae_ysd4g_149.awsui_header-cell-grouped_1spae_ysd4g_204:not(#\9), .awsui_header-cell_1spae_ysd4g_149.awsui_header-cell-spans-rows_1spae_ysd4g_204:not(#\9) {
204
+ .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-group_1spae_1ef0j_204:not(#\9), .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-grouped_1spae_1ef0j_204:not(#\9), .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-spans-rows_1spae_1ef0j_204:not(#\9) {
205
205
  padding-block: var(--space-xxxs-pajhad, 2px);
206
206
  padding-inline: var(--space-scaled-xs-xwoogq, 8px);
207
+ border-block-end-color: var(--color-border-divider-table-group-l55omi, #8c8c94);
207
208
  }
208
- .awsui_header-cell-sticky_1spae_ysd4g_208:not(#\9) {
209
+ .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-group_1spae_1ef0j_204 > .awsui_resize-divider_1spae_1ef0j_209.awsui_resize-divider_1spae_1ef0j_209:not(#\9), .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-grouped_1spae_1ef0j_204 > .awsui_resize-divider_1spae_1ef0j_209.awsui_resize-divider_1spae_1ef0j_209:not(#\9), .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-spans-rows_1spae_1ef0j_204 > .awsui_resize-divider_1spae_1ef0j_209.awsui_resize-divider_1spae_1ef0j_209:not(#\9) {
210
+ border-inline-start-color: var(--color-border-divider-table-group-l55omi, #8c8c94);
211
+ }
212
+ .awsui_header-cell-sticky_1spae_1ef0j_212:not(#\9) {
209
213
  border-block-end: var(--border-table-sticky-width-ai31mi, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
210
214
  }
211
- .awsui_header-cell-stuck_1spae_ysd4g_211:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_ysd4g_211) {
215
+ .awsui_header-cell-sticky_1spae_1ef0j_212.awsui_header-cell-group_1spae_1ef0j_204:not(#\9), .awsui_header-cell-sticky_1spae_1ef0j_212.awsui_header-cell-grouped_1spae_1ef0j_204:not(#\9), .awsui_header-cell-sticky_1spae_1ef0j_212.awsui_header-cell-spans-rows_1spae_1ef0j_204:not(#\9) {
216
+ border-block-end-color: var(--color-border-divider-table-group-l55omi, #8c8c94);
217
+ }
218
+ .awsui_header-cell-stuck_1spae_1ef0j_218:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_1ef0j_218) {
212
219
  border-block-end-color: transparent;
213
220
  }
214
- .awsui_header-cell-variant-full-page_1spae_ysd4g_211:not(#\9) {
221
+ .awsui_header-cell-variant-full-page_1spae_1ef0j_218:not(#\9) {
215
222
  background: var(--color-background-layout-main-5ilwcb, #ffffff);
216
223
  }
217
- .awsui_header-cell-variant-full-page_1spae_ysd4g_211.awsui_header-cell-hidden_1spae_ysd4g_217:not(#\9) {
224
+ .awsui_header-cell-variant-full-page_1spae_1ef0j_218.awsui_header-cell-hidden_1spae_1ef0j_224:not(#\9) {
218
225
  border-block-end-color: transparent;
219
226
  }
220
- .awsui_header-cell-variant-embedded_1spae_ysd4g_220.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_ysd4g_208, .awsui_sticky-cell_1spae_ysd4g_220)), .awsui_header-cell-variant-borderless_1spae_ysd4g_220.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_ysd4g_208, .awsui_sticky-cell_1spae_ysd4g_220)) {
227
+ .awsui_header-cell-variant-embedded_1spae_1ef0j_227.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_1ef0j_212, .awsui_sticky-cell_1spae_1ef0j_227)), .awsui_header-cell-variant-borderless_1spae_1ef0j_227.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_1ef0j_212, .awsui_sticky-cell_1spae_1ef0j_227)) {
221
228
  background: none;
222
229
  }
223
- .awsui_header-cell_1spae_ysd4g_149:not(#\9):last-child, .awsui_header-cell_1spae_ysd4g_149[data-rightmost]:not(#\9), .awsui_header-cell_1spae_ysd4g_149.awsui_header-cell-sortable_1spae_ysd4g_223:not(#\9) {
230
+ .awsui_header-cell_1spae_1ef0j_149:not(#\9):last-child, .awsui_header-cell_1spae_1ef0j_149[data-rightmost]:not(#\9), .awsui_header-cell_1spae_1ef0j_149.awsui_header-cell-sortable_1spae_1ef0j_230:not(#\9) {
224
231
  padding-inline-end: var(--space-xs-ymlm0b, 8px);
225
232
  }
226
- .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell_1spae_ysd4g_220:not(#\9) {
233
+ .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell_1spae_1ef0j_227:not(#\9) {
227
234
  position: sticky;
228
235
  background: var(--color-background-table-header-hdjxos, #ffffff);
229
236
  z-index: 798;
@@ -232,44 +239,44 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_hea
232
239
  transition-timing-function: var(--motion-easing-sticky-tn072u, cubic-bezier(1, 0, 0.83, 1));
233
240
  }
234
241
  @media (prefers-reduced-motion: reduce) {
235
- .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell_1spae_ysd4g_220:not(#\9) {
242
+ .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell_1spae_1ef0j_227:not(#\9) {
236
243
  animation: none;
237
244
  transition: none;
238
245
  }
239
246
  }
240
- .awsui-motion-disabled .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell_1spae_ysd4g_220:not(#\9), .awsui-mode-entering .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell_1spae_ysd4g_220:not(#\9) {
247
+ .awsui-motion-disabled .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell_1spae_1ef0j_227:not(#\9), .awsui-mode-entering .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell_1spae_1ef0j_227:not(#\9) {
241
248
  animation: none;
242
249
  transition: none;
243
250
  }
244
- .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell_1spae_ysd4g_220.awsui_table-variant-full-page_1spae_ysd4g_244:not(#\9) {
251
+ .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell_1spae_1ef0j_227.awsui_table-variant-full-page_1spae_1ef0j_251:not(#\9) {
245
252
  background: var(--color-background-layout-main-5ilwcb, #ffffff);
246
253
  }
247
- .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell-pad-left_1spae_ysd4g_247:not(#\9):not(.awsui_has-selection_1spae_ysd4g_247) {
254
+ .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell-pad-left_1spae_1ef0j_254:not(#\9):not(.awsui_has-selection_1spae_1ef0j_254) {
248
255
  padding-inline-start: var(--space-table-horizontal-suurzj, 20px);
249
256
  }
250
- .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell-last-inline-start_1spae_ysd4g_250:not(#\9) {
257
+ .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell-last-inline-start_1spae_1ef0j_257:not(#\9) {
251
258
  box-shadow: var(--shadow-sticky-column-first-trcd2o, 4px 0px 8px 1px rgba(0, 7, 22, 0.1));
252
259
  clip-path: inset(0px -24px 0px 0px);
253
260
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
254
261
  }
255
- .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell-last-inline-start_1spae_ysd4g_250 > .awsui_resize-divider_1spae_ysd4g_255:not(#\9) {
262
+ .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell-last-inline-start_1spae_1ef0j_257 > .awsui_resize-divider_1spae_1ef0j_209:not(#\9) {
256
263
  display: none;
257
264
  }
258
- .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell-last-inline-start_1spae_ysd4g_250:not(#\9):dir(rtl) {
265
+ .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell-last-inline-start_1spae_1ef0j_257:not(#\9):dir(rtl) {
259
266
  box-shadow: var(--shadow-sticky-column-last-qgh697, -4px 0 8px 1px rgba(0, 28, 36, 0.1));
260
267
  clip-path: inset(0 0 0 -24px);
261
268
  }
262
- .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell-last-inline-end_1spae_ysd4g_262:not(#\9) {
269
+ .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell-last-inline-end_1spae_1ef0j_269:not(#\9) {
263
270
  box-shadow: var(--shadow-sticky-column-last-qgh697, -4px 0 8px 1px rgba(0, 28, 36, 0.1));
264
271
  clip-path: inset(0 0 0 -24px);
265
272
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
266
273
  }
267
- .awsui_header-cell_1spae_ysd4g_149.awsui_sticky-cell-last-inline-end_1spae_ysd4g_262:not(#\9):dir(rtl) {
274
+ .awsui_header-cell_1spae_1ef0j_149.awsui_sticky-cell-last-inline-end_1spae_1ef0j_269:not(#\9):dir(rtl) {
268
275
  box-shadow: var(--shadow-sticky-column-first-trcd2o, 4px 0px 8px 1px rgba(0, 7, 22, 0.1));
269
276
  clip-path: inset(0 -24px 0 0);
270
277
  }
271
278
 
272
- .awsui_sorting-icon_1spae_ysd4g_272:not(#\9) {
279
+ .awsui_sorting-icon_1spae_1ef0j_279:not(#\9) {
273
280
  position: absolute;
274
281
  inset-block-start: 50%;
275
282
  transform: translateY(-50%);
@@ -277,39 +284,39 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_hea
277
284
  color: var(--color-text-column-sorting-icon-fngn77, #424650);
278
285
  }
279
286
 
280
- .awsui_edit-icon_1spae_ysd4g_280:not(#\9) {
287
+ .awsui_edit-icon_1spae_1ef0j_287:not(#\9) {
281
288
  margin-inline-start: var(--space-xxs-hwfkai, 4px);
282
289
  margin-block-start: var(--space-scaled-xxs-pfm1nx, 4px);
283
290
  color: inherit;
284
291
  }
285
292
 
286
- .awsui_header-cell-content_1spae_ysd4g_286:not(#\9) {
293
+ .awsui_header-cell-content_1spae_1ef0j_293:not(#\9) {
287
294
  position: relative;
288
295
  padding-block: var(--space-scaled-xxs-pfm1nx, 4px);
289
296
  padding-inline-end: var(--space-s-tvghoh, 12px);
290
297
  padding-inline-start: var(--space-s-tvghoh, 12px);
291
298
  }
292
- .awsui_header-cell-content_1spae_ysd4g_286.awsui_header-cell-content-expandable_1spae_ysd4g_292:not(#\9) {
299
+ .awsui_header-cell-content_1spae_1ef0j_293.awsui_header-cell-content-expandable_1spae_1ef0j_299:not(#\9) {
293
300
  padding-inline-start: calc(var(--space-s-tvghoh, 12px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
294
301
  }
295
- .awsui_header-cell-group_1spae_ysd4g_204 > .awsui_header-cell-content_1spae_ysd4g_286:not(#\9), .awsui_header-cell-grouped_1spae_ysd4g_204 > .awsui_header-cell-content_1spae_ysd4g_286:not(#\9), .awsui_header-cell-spans-rows_1spae_ysd4g_204 > .awsui_header-cell-content_1spae_ysd4g_286:not(#\9) {
302
+ .awsui_header-cell-group_1spae_1ef0j_204 > .awsui_header-cell-content_1spae_1ef0j_293:not(#\9), .awsui_header-cell-grouped_1spae_1ef0j_204 > .awsui_header-cell-content_1spae_1ef0j_293:not(#\9), .awsui_header-cell-spans-rows_1spae_1ef0j_204 > .awsui_header-cell-content_1spae_1ef0j_293:not(#\9) {
296
303
  padding-block: var(--space-xxxs-pajhad, 2px);
297
304
  }
298
- .awsui_header-cell-sortable_1spae_ysd4g_223 > .awsui_header-cell-content_1spae_ysd4g_286:not(#\9) {
305
+ .awsui_header-cell-sortable_1spae_1ef0j_230 > .awsui_header-cell-content_1spae_1ef0j_293:not(#\9) {
299
306
  padding-inline-end: calc(var(--space-xl-jfy3x4, 24px) + var(--space-xxs-hwfkai, 4px));
300
307
  }
301
- .awsui_header-cell-content_1spae_ysd4g_286:not(#\9):focus {
308
+ .awsui_header-cell-content_1spae_1ef0j_293:not(#\9):focus {
302
309
  outline: none;
303
310
  text-decoration: none;
304
311
  }
305
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_ysd4g_286:not(#\9):focus {
312
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1ef0j_293:not(#\9):focus {
306
313
  position: relative;
307
314
  }
308
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_ysd4g_286:not(#\9):focus {
315
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1ef0j_293:not(#\9):focus {
309
316
  outline: 2px dotted transparent;
310
317
  outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-ymwujm, 0px)) - 1px);
311
318
  }
312
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_ysd4g_286:not(#\9):focus::before {
319
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1ef0j_293:not(#\9):focus::before {
313
320
  content: " ";
314
321
  display: block;
315
322
  position: absolute;
@@ -323,14 +330,14 @@ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_ysd4g_286:n
323
330
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
324
331
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
325
332
  }
326
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_ysd4g_286.awsui_header-cell-fake-focus_1spae_ysd4g_183:not(#\9) {
333
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1ef0j_293.awsui_header-cell-fake-focus_1spae_1ef0j_183:not(#\9) {
327
334
  position: relative;
328
335
  }
329
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_ysd4g_286.awsui_header-cell-fake-focus_1spae_ysd4g_183:not(#\9) {
336
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1ef0j_293.awsui_header-cell-fake-focus_1spae_1ef0j_183:not(#\9) {
330
337
  outline: 2px dotted transparent;
331
338
  outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-ymwujm, 0px)) - 1px);
332
339
  }
333
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_ysd4g_286.awsui_header-cell-fake-focus_1spae_ysd4g_183:not(#\9)::before {
340
+ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_1ef0j_293.awsui_header-cell-fake-focus_1spae_1ef0j_183:not(#\9)::before {
334
341
  content: " ";
335
342
  display: block;
336
343
  position: absolute;
@@ -344,49 +351,49 @@ body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_ysd4g_286.a
344
351
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
345
352
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
346
353
  }
347
- .awsui_header-cell-disabled_1spae_ysd4g_347.awsui_header-cell-sorted_1spae_ysd4g_347 > .awsui_header-cell-content_1spae_ysd4g_286 > .awsui_sorting-icon_1spae_ysd4g_272:not(#\9) {
354
+ .awsui_header-cell-disabled_1spae_1ef0j_354.awsui_header-cell-sorted_1spae_1ef0j_354 > .awsui_header-cell-content_1spae_1ef0j_293 > .awsui_sorting-icon_1spae_1ef0j_279:not(#\9) {
348
355
  color: var(--color-text-interactive-disabled-1bqmrl, #b4b4bb);
349
356
  }
350
357
 
351
- .awsui_header-cell-spans-rows_1spae_ysd4g_204:not(#\9) {
358
+ .awsui_header-cell-spans-rows_1spae_1ef0j_204:not(#\9) {
352
359
  block-size: 100%;
353
360
  vertical-align: bottom;
354
361
  }
355
- .awsui_header-cell-spans-rows_1spae_ysd4g_204 > .awsui_header-cell-content_1spae_ysd4g_286:not(#\9) {
362
+ .awsui_header-cell-spans-rows_1spae_1ef0j_204 > .awsui_header-cell-content_1spae_1ef0j_293:not(#\9) {
356
363
  block-size: 100%;
357
364
  box-sizing: border-box;
358
365
  display: flex;
359
366
  flex-direction: column;
360
367
  justify-content: flex-end;
361
368
  }
362
- .awsui_header-cell-spans-rows_1spae_ysd4g_204 > .awsui_header-cell-content_1spae_ysd4g_286 > .awsui_sorting-icon_1spae_ysd4g_272:not(#\9) {
369
+ .awsui_header-cell-spans-rows_1spae_1ef0j_204 > .awsui_header-cell-content_1spae_1ef0j_293 > .awsui_sorting-icon_1spae_1ef0j_279:not(#\9) {
363
370
  inset-block-start: auto;
364
371
  inset-block-end: var(--space-scaled-xxs-pfm1nx, 4px);
365
372
  transform: none;
366
373
  }
367
374
 
368
- .awsui_header-cell-sortable_1spae_ysd4g_223:not(#\9):not(.awsui_header-cell-disabled_1spae_ysd4g_347) > .awsui_header-cell-content_1spae_ysd4g_286 {
375
+ .awsui_header-cell-sortable_1spae_1ef0j_230:not(#\9):not(.awsui_header-cell-disabled_1spae_1ef0j_354) > .awsui_header-cell-content_1spae_1ef0j_293 {
369
376
  cursor: pointer;
370
377
  }
371
- .awsui_header-cell-sortable_1spae_ysd4g_223:not(#\9):not(.awsui_header-cell-disabled_1spae_ysd4g_347) > .awsui_header-cell-content_1spae_ysd4g_286:hover, .awsui_header-cell-sortable_1spae_ysd4g_223:not(#\9):not(.awsui_header-cell-disabled_1spae_ysd4g_347).awsui_header-cell-sorted_1spae_ysd4g_347 > .awsui_header-cell-content_1spae_ysd4g_286 {
378
+ .awsui_header-cell-sortable_1spae_1ef0j_230:not(#\9):not(.awsui_header-cell-disabled_1spae_1ef0j_354) > .awsui_header-cell-content_1spae_1ef0j_293:hover, .awsui_header-cell-sortable_1spae_1ef0j_230:not(#\9):not(.awsui_header-cell-disabled_1spae_1ef0j_354).awsui_header-cell-sorted_1spae_1ef0j_354 > .awsui_header-cell-content_1spae_1ef0j_293 {
372
379
  color: var(--color-text-interactive-active-uoe6zi, #0f141a);
373
380
  }
374
- .awsui_header-cell-sortable_1spae_ysd4g_223:not(#\9):not(.awsui_header-cell-disabled_1spae_ysd4g_347) > .awsui_header-cell-content_1spae_ysd4g_286:hover > .awsui_sorting-icon_1spae_ysd4g_272, .awsui_header-cell-sortable_1spae_ysd4g_223:not(#\9):not(.awsui_header-cell-disabled_1spae_ysd4g_347).awsui_header-cell-sorted_1spae_ysd4g_347 > .awsui_header-cell-content_1spae_ysd4g_286 > .awsui_sorting-icon_1spae_ysd4g_272 {
381
+ .awsui_header-cell-sortable_1spae_1ef0j_230:not(#\9):not(.awsui_header-cell-disabled_1spae_1ef0j_354) > .awsui_header-cell-content_1spae_1ef0j_293:hover > .awsui_sorting-icon_1spae_1ef0j_279, .awsui_header-cell-sortable_1spae_1ef0j_230:not(#\9):not(.awsui_header-cell-disabled_1spae_1ef0j_354).awsui_header-cell-sorted_1spae_1ef0j_354 > .awsui_header-cell-content_1spae_1ef0j_293 > .awsui_sorting-icon_1spae_1ef0j_279 {
375
382
  color: var(--color-text-interactive-active-uoe6zi, #0f141a);
376
383
  }
377
384
 
378
- .awsui_header-cell-text_1spae_ysd4g_378:not(#\9) {
385
+ .awsui_header-cell-text_1spae_1ef0j_385:not(#\9) {
379
386
  line-height: var(--line-height-heading-xs-q9j004, 18px);
380
387
  padding-block: calc(var(--space-xxxs-pajhad, 2px) / 2);
381
388
  }
382
- .awsui_header-cell-text_1spae_ysd4g_378:not(#\9):not(.awsui_header-cell-text-wrap_1spae_ysd4g_382) {
389
+ .awsui_header-cell-text_1spae_1ef0j_385:not(#\9):not(.awsui_header-cell-text-wrap_1spae_1ef0j_389) {
383
390
  white-space: nowrap;
384
391
  overflow: hidden;
385
392
  text-overflow: ellipsis;
386
393
  }
387
394
 
388
- .awsui_header-cell-ascending_1spae_ysd4g_388:not(#\9),
389
- .awsui_header-cell-descending_1spae_ysd4g_389:not(#\9) {
395
+ .awsui_header-cell-ascending_1spae_1ef0j_395:not(#\9),
396
+ .awsui_header-cell-descending_1spae_1ef0j_396:not(#\9) {
390
397
  /* used in test-utils */
391
398
  }
392
399
 
@@ -396,28 +403,28 @@ with the left edge of the table as closely as possible. If the
396
403
  last header cell is sortable the sort icon should align with the
397
404
  settings icon in the pagination slot.
398
405
  */
399
- .awsui_header-cell_1spae_ysd4g_149:not(#\9):not(.awsui_is-visual-refresh_1spae_ysd4g_220):first-child {
406
+ .awsui_header-cell_1spae_1ef0j_149:not(#\9):not(.awsui_is-visual-refresh_1spae_1ef0j_227):first-child {
400
407
  padding-inline-start: var(--space-xs-ymlm0b, 8px);
401
408
  }
402
- .awsui_header-cell_1spae_ysd4g_149:not(#\9):not(.awsui_is-visual-refresh_1spae_ysd4g_220):first-child.awsui_header-cell-content-expandable_1spae_ysd4g_292 {
409
+ .awsui_header-cell_1spae_1ef0j_149:not(#\9):not(.awsui_is-visual-refresh_1spae_1ef0j_227):first-child.awsui_header-cell-content-expandable_1spae_1ef0j_299 {
403
410
  padding-inline-start: calc(var(--space-xs-ymlm0b, 8px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
404
411
  }
405
412
 
406
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9) {
413
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9) {
407
414
  /*
408
415
  Striped rows requires additional left padding because the
409
416
  shaded background makes the child content appear too close
410
417
  to the table edge.
411
418
  */
412
419
  }
413
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:focus {
420
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:focus {
414
421
  position: relative;
415
422
  }
416
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:focus {
423
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:focus {
417
424
  outline: 2px dotted transparent;
418
425
  outline-offset: calc(calc(-1 * var(--space-scaled-xxs-pfm1nx, 4px) + var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
419
426
  }
420
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:focus::before {
427
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:focus::before {
421
428
  content: " ";
422
429
  display: block;
423
430
  position: absolute;
@@ -431,14 +438,14 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-
431
438
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
432
439
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
433
440
  }
434
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_ysd4g_183 {
441
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_1ef0j_183 {
435
442
  position: relative;
436
443
  }
437
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_ysd4g_183 {
444
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_1ef0j_183 {
438
445
  outline: 2px dotted transparent;
439
446
  outline-offset: calc(calc(-1 * var(--space-scaled-xxs-pfm1nx, 4px) + var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
440
447
  }
441
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_ysd4g_183::before {
448
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_1ef0j_183::before {
442
449
  content: " ";
443
450
  display: block;
444
451
  position: absolute;
@@ -452,20 +459,20 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-
452
459
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
453
460
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
454
461
  }
455
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_ysd4g_204):not(.awsui_header-cell-group_1spae_ysd4g_204) > .awsui_header-cell-content_1spae_ysd4g_286 {
462
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_1ef0j_204):not(.awsui_header-cell-group_1spae_1ef0j_204) > .awsui_header-cell-content_1spae_1ef0j_293 {
456
463
  padding-inline-start: 0px;
457
464
  }
458
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_ysd4g_204):not(.awsui_header-cell-group_1spae_ysd4g_204) > .awsui_header-cell-content_1spae_ysd4g_286.awsui_header-cell-content-expandable_1spae_ysd4g_292 {
465
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_1ef0j_204):not(.awsui_header-cell-group_1spae_1ef0j_204) > .awsui_header-cell-content_1spae_1ef0j_293.awsui_header-cell-content-expandable_1spae_1ef0j_299 {
459
466
  padding-inline-start: calc(0px + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
460
467
  }
461
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_ysd4g_204):not(.awsui_header-cell-group_1spae_ysd4g_204) > .awsui_header-cell-content_1spae_ysd4g_286:focus {
468
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_1ef0j_204):not(.awsui_header-cell-group_1spae_1ef0j_204) > .awsui_header-cell-content_1spae_1ef0j_293:focus {
462
469
  position: relative;
463
470
  }
464
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_ysd4g_204):not(.awsui_header-cell-group_1spae_ysd4g_204) > .awsui_header-cell-content_1spae_ysd4g_286:focus {
471
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_1ef0j_204):not(.awsui_header-cell-group_1spae_1ef0j_204) > .awsui_header-cell-content_1spae_1ef0j_293:focus {
465
472
  outline: 2px dotted transparent;
466
473
  outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-ymwujm, 0px) + var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
467
474
  }
468
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_ysd4g_204):not(.awsui_header-cell-group_1spae_ysd4g_204) > .awsui_header-cell-content_1spae_ysd4g_286:focus::before {
475
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_1ef0j_204):not(.awsui_header-cell-group_1spae_1ef0j_204) > .awsui_header-cell-content_1spae_1ef0j_293:focus::before {
469
476
  content: " ";
470
477
  display: block;
471
478
  position: absolute;
@@ -479,14 +486,14 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-
479
486
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
480
487
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
481
488
  }
482
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_ysd4g_204):not(.awsui_header-cell-group_1spae_ysd4g_204) > .awsui_header-cell-content_1spae_ysd4g_286.awsui_header-cell-fake-focus_1spae_ysd4g_183 {
489
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_1ef0j_204):not(.awsui_header-cell-group_1spae_1ef0j_204) > .awsui_header-cell-content_1spae_1ef0j_293.awsui_header-cell-fake-focus_1spae_1ef0j_183 {
483
490
  position: relative;
484
491
  }
485
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_ysd4g_204):not(.awsui_header-cell-group_1spae_ysd4g_204) > .awsui_header-cell-content_1spae_ysd4g_286.awsui_header-cell-fake-focus_1spae_ysd4g_183 {
492
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_1ef0j_204):not(.awsui_header-cell-group_1spae_1ef0j_204) > .awsui_header-cell-content_1spae_1ef0j_293.awsui_header-cell-fake-focus_1spae_1ef0j_183 {
486
493
  outline: 2px dotted transparent;
487
494
  outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-ymwujm, 0px) + var(--space-scaled-xxs-pfm1nx, 4px)) - 1px);
488
495
  }
489
- body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_ysd4g_204):not(.awsui_header-cell-group_1spae_ysd4g_204) > .awsui_header-cell-content_1spae_ysd4g_286.awsui_header-cell-fake-focus_1spae_ysd4g_183::before {
496
+ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_1ef0j_204):not(.awsui_header-cell-group_1spae_1ef0j_204) > .awsui_header-cell-content_1spae_1ef0j_293.awsui_header-cell-fake-focus_1spae_1ef0j_183::before {
490
497
  content: " ";
491
498
  display: block;
492
499
  position: absolute;
@@ -500,24 +507,24 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_ysd4g_149.awsui_is-
500
507
  border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
501
508
  box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
502
509
  }
503
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_ysd4g_503):not(.awsui_sticky-cell-pad-inline-start_1spae_ysd4g_503):not(.awsui_header-cell-group_1spae_ysd4g_204):not(.awsui_header-cell-grouped_1spae_ysd4g_204) {
510
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_1ef0j_510):not(.awsui_sticky-cell-pad-inline-start_1spae_1ef0j_510):not(.awsui_header-cell-group_1spae_1ef0j_204):not(.awsui_header-cell-grouped_1spae_1ef0j_204) {
504
511
  padding-inline-start: var(--space-xxxs-pajhad, 2px);
505
512
  }
506
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_ysd4g_503):not(.awsui_sticky-cell-pad-inline-start_1spae_ysd4g_503):not(.awsui_header-cell-group_1spae_ysd4g_204):not(.awsui_header-cell-grouped_1spae_ysd4g_204).awsui_header-cell-content-expandable_1spae_ysd4g_292 {
513
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_1ef0j_510):not(.awsui_sticky-cell-pad-inline-start_1spae_1ef0j_510):not(.awsui_header-cell-group_1spae_1ef0j_204):not(.awsui_header-cell-grouped_1spae_1ef0j_204).awsui_header-cell-content-expandable_1spae_1ef0j_299 {
507
514
  padding-inline-start: calc(var(--space-xxxs-pajhad, 2px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
508
515
  }
509
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child.awsui_has-striped-rows_1spae_ysd4g_503:not(.awsui_sticky-cell-pad-inline-start_1spae_ysd4g_503):not(.awsui_header-cell-group_1spae_ysd4g_204):not(.awsui_header-cell-grouped_1spae_ysd4g_204) {
516
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child.awsui_has-striped-rows_1spae_1ef0j_510:not(.awsui_sticky-cell-pad-inline-start_1spae_1ef0j_510):not(.awsui_header-cell-group_1spae_1ef0j_204):not(.awsui_header-cell-grouped_1spae_1ef0j_204) {
510
517
  padding-inline-start: var(--space-xxs-hwfkai, 4px);
511
518
  }
512
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):first-child.awsui_has-striped-rows_1spae_ysd4g_503:not(.awsui_sticky-cell-pad-inline-start_1spae_ysd4g_503):not(.awsui_header-cell-group_1spae_ysd4g_204):not(.awsui_header-cell-grouped_1spae_ysd4g_204).awsui_header-cell-content-expandable_1spae_ysd4g_292 {
519
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):first-child.awsui_has-striped-rows_1spae_1ef0j_510:not(.awsui_sticky-cell-pad-inline-start_1spae_1ef0j_510):not(.awsui_header-cell-group_1spae_1ef0j_204):not(.awsui_header-cell-grouped_1spae_1ef0j_204).awsui_header-cell-content-expandable_1spae_1ef0j_299 {
513
520
  padding-inline-start: calc(var(--space-xxs-hwfkai, 4px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
514
521
  }
515
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220:not(#\9):last-child.awsui_header-cell-sortable_1spae_ysd4g_223:not(.awsui_header-cell-resizable_1spae_ysd4g_515), .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220[data-rightmost].awsui_header-cell-sortable_1spae_ysd4g_223:not(#\9):not(.awsui_header-cell-resizable_1spae_ysd4g_515) {
522
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227:not(#\9):last-child.awsui_header-cell-sortable_1spae_1ef0j_230:not(.awsui_header-cell-resizable_1spae_1ef0j_522), .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227[data-rightmost].awsui_header-cell-sortable_1spae_1ef0j_230:not(#\9):not(.awsui_header-cell-resizable_1spae_1ef0j_522) {
516
523
  padding-inline-end: var(--space-xxxs-pajhad, 2px);
517
524
  }
518
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220.awsui_sticky-cell-pad-inline-start_1spae_ysd4g_503:not(#\9) {
525
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227.awsui_sticky-cell-pad-inline-start_1spae_1ef0j_510:not(#\9) {
519
526
  padding-inline-start: var(--space-scaled-l-sej05l, 20px);
520
527
  }
521
- .awsui_header-cell_1spae_ysd4g_149.awsui_is-visual-refresh_1spae_ysd4g_220.awsui_sticky-cell-pad-inline-start_1spae_ysd4g_503.awsui_header-cell-content-expandable_1spae_ysd4g_292:not(#\9) {
528
+ .awsui_header-cell_1spae_1ef0j_149.awsui_is-visual-refresh_1spae_1ef0j_227.awsui_sticky-cell-pad-inline-start_1spae_1ef0j_510.awsui_header-cell-content-expandable_1spae_1ef0j_299:not(#\9) {
522
529
  padding-inline-start: calc(var(--space-scaled-l-sej05l, 20px) + var(--space-m-dsumyt, 16px) + var(--space-xs-ymlm0b, 8px));
523
530
  }
@@ -2,38 +2,38 @@
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_ysd4g_149",
6
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_ysd4g_183",
7
- "header-cell-group": "awsui_header-cell-group_1spae_ysd4g_204",
8
- "header-cell-grouped": "awsui_header-cell-grouped_1spae_ysd4g_204",
9
- "header-cell-spans-rows": "awsui_header-cell-spans-rows_1spae_ysd4g_204",
10
- "header-cell-sticky": "awsui_header-cell-sticky_1spae_ysd4g_208",
11
- "header-cell-stuck": "awsui_header-cell-stuck_1spae_ysd4g_211",
12
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_ysd4g_211",
13
- "header-cell-hidden": "awsui_header-cell-hidden_1spae_ysd4g_217",
14
- "header-cell-variant-embedded": "awsui_header-cell-variant-embedded_1spae_ysd4g_220",
15
- "is-visual-refresh": "awsui_is-visual-refresh_1spae_ysd4g_220",
16
- "sticky-cell": "awsui_sticky-cell_1spae_ysd4g_220",
17
- "header-cell-variant-borderless": "awsui_header-cell-variant-borderless_1spae_ysd4g_220",
18
- "header-cell-sortable": "awsui_header-cell-sortable_1spae_ysd4g_223",
19
- "table-variant-full-page": "awsui_table-variant-full-page_1spae_ysd4g_244",
20
- "sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_ysd4g_247",
21
- "has-selection": "awsui_has-selection_1spae_ysd4g_247",
22
- "sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_1spae_ysd4g_250",
23
- "resize-divider": "awsui_resize-divider_1spae_ysd4g_255",
24
- "sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_1spae_ysd4g_262",
25
- "sorting-icon": "awsui_sorting-icon_1spae_ysd4g_272",
26
- "edit-icon": "awsui_edit-icon_1spae_ysd4g_280",
27
- "header-cell-content": "awsui_header-cell-content_1spae_ysd4g_286",
28
- "header-cell-content-expandable": "awsui_header-cell-content-expandable_1spae_ysd4g_292",
29
- "header-cell-disabled": "awsui_header-cell-disabled_1spae_ysd4g_347",
30
- "header-cell-sorted": "awsui_header-cell-sorted_1spae_ysd4g_347",
31
- "header-cell-text": "awsui_header-cell-text_1spae_ysd4g_378",
32
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_ysd4g_382",
33
- "header-cell-ascending": "awsui_header-cell-ascending_1spae_ysd4g_388",
34
- "header-cell-descending": "awsui_header-cell-descending_1spae_ysd4g_389",
35
- "has-striped-rows": "awsui_has-striped-rows_1spae_ysd4g_503",
36
- "sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-start_1spae_ysd4g_503",
37
- "header-cell-resizable": "awsui_header-cell-resizable_1spae_ysd4g_515"
5
+ "header-cell": "awsui_header-cell_1spae_1ef0j_149",
6
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_1ef0j_183",
7
+ "header-cell-group": "awsui_header-cell-group_1spae_1ef0j_204",
8
+ "header-cell-grouped": "awsui_header-cell-grouped_1spae_1ef0j_204",
9
+ "header-cell-spans-rows": "awsui_header-cell-spans-rows_1spae_1ef0j_204",
10
+ "resize-divider": "awsui_resize-divider_1spae_1ef0j_209",
11
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_1ef0j_212",
12
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_1ef0j_218",
13
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_1ef0j_218",
14
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_1ef0j_224",
15
+ "header-cell-variant-embedded": "awsui_header-cell-variant-embedded_1spae_1ef0j_227",
16
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_1ef0j_227",
17
+ "sticky-cell": "awsui_sticky-cell_1spae_1ef0j_227",
18
+ "header-cell-variant-borderless": "awsui_header-cell-variant-borderless_1spae_1ef0j_227",
19
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_1ef0j_230",
20
+ "table-variant-full-page": "awsui_table-variant-full-page_1spae_1ef0j_251",
21
+ "sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_1ef0j_254",
22
+ "has-selection": "awsui_has-selection_1spae_1ef0j_254",
23
+ "sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_1spae_1ef0j_257",
24
+ "sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_1spae_1ef0j_269",
25
+ "sorting-icon": "awsui_sorting-icon_1spae_1ef0j_279",
26
+ "edit-icon": "awsui_edit-icon_1spae_1ef0j_287",
27
+ "header-cell-content": "awsui_header-cell-content_1spae_1ef0j_293",
28
+ "header-cell-content-expandable": "awsui_header-cell-content-expandable_1spae_1ef0j_299",
29
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_1ef0j_354",
30
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_1ef0j_354",
31
+ "header-cell-text": "awsui_header-cell-text_1spae_1ef0j_385",
32
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_1ef0j_389",
33
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_1ef0j_395",
34
+ "header-cell-descending": "awsui_header-cell-descending_1spae_1ef0j_396",
35
+ "has-striped-rows": "awsui_has-striped-rows_1spae_1ef0j_510",
36
+ "sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-start_1spae_1ef0j_510",
37
+ "header-cell-resizable": "awsui_header-cell-resizable_1spae_1ef0j_522"
38
38
  };
39
39
 
@@ -29,10 +29,11 @@ export interface TableThElementProps {
29
29
  scope?: 'col' | 'colgroup';
30
30
  columnGroupId?: string;
31
31
  isLast?: boolean;
32
- /** Additional className to merge (e.g. boundary shadow classes from a secondary sticky subscription). */
33
- className?: string;
34
- /** Additional ref for boundary sticky subscription (imperatively updates shadow classes). */
35
- boundaryRef?: React.RefCallback<HTMLElement>;
32
+ /**
33
+ * For cells that span multiple columns (group headers): the column id of the boundary leaf
34
+ * whose sticky shadow this cell should inherit. The cell's position still comes from `columnId`.
35
+ */
36
+ stickyBoundaryColumnId?: PropertyKey;
36
37
  }
37
38
  export declare function TableThElement({
38
39
  resizableStyle,
@@ -59,7 +60,6 @@ export declare function TableThElement({
59
60
  scope,
60
61
  columnGroupId,
61
62
  isLast,
62
- className,
63
- boundaryRef,
63
+ stickyBoundaryColumnId,
64
64
  ...props
65
65
  }: TableThElementProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"th-element.d.ts","sourceRoot":"","sources":["../../../../src/table/header-cell/th-element.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAQtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAuB,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAA8B,SAAS,EAAE,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAKxC,MAAM,WAAW,mBAAmB;IAClC,cAAc,CAAC,EAAE,gBAAgB,CAAC;IAClC,aAAa,CA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,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,GAAG,UAAU,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,WAAW,CAAC;CACtC;AAED,wBAAgB,cAAc,CAAC,EAC7B,cAAc,EACd,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,KAAK,EACL,MAAM,EACN,SAAS,EACT,MAAM,EACN,WAAW,EACX,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,OAAO,EACP,SAAS,EACT,QAAQ,EACR,OAAO,EACP,SAAS,EACT,YAAY,EACZ,OAAO,EACP,OAAO,EACP,KAAK,EACL,aAAa,EACb,MAAM,EACN,sBAAsB,EACtB,GAAG,KAAK,EACT,EAAE,mBAAmB,eAyDrB"}
@@ -11,15 +11,16 @@ import { getTableColHeaderRoleProps } from '../table-role';
11
11
  import { getStickyClassNames } from '../utils';
12
12
  import tableStyles from '../styles.css.js';
13
13
  import styles from './styles.css.js';
14
- export function TableThElement({ resizableStyle, sortingStatus, sortingDisabled, focusedComponent, stuck, sticky, resizable, hidden, stripedRows, isSelection, colIndex, columnId, stickyState, cellRef, tableRole, children, variant, ariaLabel, tableVariant, colSpan, rowSpan, scope, columnGroupId, isLast, className, boundaryRef, ...props }) {
14
+ export function TableThElement({ resizableStyle, sortingStatus, sortingDisabled, focusedComponent, stuck, sticky, resizable, hidden, stripedRows, isSelection, colIndex, columnId, stickyState, cellRef, tableRole, children, variant, ariaLabel, tableVariant, colSpan, rowSpan, scope, columnGroupId, isLast, stickyBoundaryColumnId, ...props }) {
15
15
  const isVisualRefresh = useVisualRefresh();
16
16
  const stickyStyles = useStickyCellStyles({
17
17
  stickyColumns: stickyState,
18
18
  columnId,
19
19
  getClassName: props => getStickyClassNames(styles, props),
20
+ boundaryColumnId: stickyBoundaryColumnId,
20
21
  });
21
22
  const cellRefObject = useRef(null);
22
- const mergedRef = useMergeRefs(stickyStyles.ref, cellRef, cellRefObject, boundaryRef);
23
+ const mergedRef = useMergeRefs(stickyStyles.ref, cellRef, cellRefObject);
23
24
  const { tabIndex: cellTabIndex } = useSingleTabStopNavigation(cellRefObject);
24
25
  return (React.createElement("th", { "data-focus-id": `header-${String(columnId)}`, className: clsx(styles['header-cell'], styles[`header-cell-variant-${variant}`], sticky && styles['header-cell-sticky'], resizable && styles['header-cell-resizable'], 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}`], scope === 'colgroup' && styles['header-cell-group'], {
25
26
  [styles['header-cell-fake-focus']]: focusedComponent === `header-${String(columnId)}`,
@@ -31,6 +32,6 @@ export function TableThElement({ resizableStyle, sortingStatus, sortingDisabled,
31
32
  [styles['header-cell-hidden']]: hidden,
32
33
  [styles['header-cell-spans-rows']]: (rowSpan !== null && rowSpan !== void 0 ? rowSpan : 1) > 1,
33
34
  [styles['header-cell-grouped']]: !!columnGroupId,
34
- }, stickyStyles.className, className), colSpan: colSpan, rowSpan: rowSpan, style: { ...resizableStyle, ...stickyStyles.style }, ref: mergedRef, ...getTableColHeaderRoleProps({ tableRole, sortingStatus, colIndex }), scope: scope !== null && scope !== void 0 ? scope : 'col', tabIndex: cellTabIndex === -1 ? undefined : cellTabIndex, ...copyAnalyticsMetadataAttribute(props), ...(ariaLabel ? { 'aria-label': ariaLabel } : {}), ...(isLast ? { 'data-rightmost': true } : {}), ...(scope !== 'colgroup' ? { 'data-column-index': colIndex + 1 } : {}), ...(columnGroupId ? { 'data-column-group-id': columnGroupId } : {}) }, children));
35
+ }, stickyStyles.className), colSpan: colSpan, rowSpan: rowSpan, style: { ...resizableStyle, ...stickyStyles.style }, ref: mergedRef, ...getTableColHeaderRoleProps({ tableRole, sortingStatus, colIndex }), scope: scope !== null && scope !== void 0 ? scope : 'col', tabIndex: cellTabIndex === -1 ? undefined : cellTabIndex, ...copyAnalyticsMetadataAttribute(props), ...(ariaLabel ? { 'aria-label': ariaLabel } : {}), ...(isLast ? { 'data-rightmost': true } : {}), ...(scope !== 'colgroup' ? { 'data-column-index': colIndex + 1 } : {}), ...(columnGroupId ? { 'data-column-group-id': columnGroupId } : {}) }, children));
35
36
  }
36
37
  //# sourceMappingURL=th-element.js.map
@@ -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,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAElH,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;AAiCrC,MAAM,UAAU,cAAc,CAAC,EAC7B,cAAc,EACd,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,KAAK,EACL,MAAM,EACN,SAAS,EACT,MAAM,EACN,WAAW,EACX,WAAW,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CAAC,CAAC,EAAE,CAAC,KAC9C,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC1C,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,QAAQ,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACnE,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,sBAAsB,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAEnE,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 { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\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 resizable?: 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 tableVariant?: TableProps.Variant;\n ariaLabel?: string;\n colSpan?: number;\n rowSpan?: number;\n scope?: 'col' | 'colgroup';\n columnGroupId?: string;\n isLast?: boolean;\n /** Additional className to merge (e.g. boundary shadow classes from a secondary sticky subscription). */\n className?: string;\n /** Additional ref for boundary sticky subscription (imperatively updates shadow classes). */\n boundaryRef?: React.RefCallback<HTMLElement>;\n}\n\nexport function TableThElement({\n resizableStyle,\n sortingStatus,\n sortingDisabled,\n focusedComponent,\n stuck,\n sticky,\n resizable,\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 colSpan,\n rowSpan,\n scope,\n columnGroupId,\n isLast,\n className,\n boundaryRef,\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, boundaryRef);\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 resizable && styles['header-cell-resizable'],\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 scope === 'colgroup' && styles['header-cell-group'],\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 [styles['header-cell-spans-rows']]: (rowSpan ?? 1) > 1,\n [styles['header-cell-grouped']]: !!columnGroupId,\n },\n stickyStyles.className,\n className\n )}\n colSpan={colSpan}\n rowSpan={rowSpan}\n style={{ ...resizableStyle, ...stickyStyles.style }}\n ref={mergedRef}\n {...getTableColHeaderRoleProps({ tableRole, sortingStatus, colIndex })}\n scope={scope ?? 'col'}\n tabIndex={cellTabIndex === -1 ? undefined : cellTabIndex}\n {...copyAnalyticsMetadataAttribute(props)}\n {...(ariaLabel ? { 'aria-label': ariaLabel } : {})}\n {...(isLast ? { 'data-rightmost': true } : {})}\n {...(scope !== 'colgroup' ? { 'data-column-index': colIndex + 1 } : {})}\n {...(columnGroupId ? { 'data-column-group-id': columnGroupId } : {})}\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,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAC3F,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAElH,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;AAkCrC,MAAM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S,CAAC,CAAC,CAAC,YAAY,KACpD,8BAA8B,CAAC,KAAK,CAAC,KACrC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC9C,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KAC1C,CAAC,KAAK,KAAK,UAAU,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,QAAQ,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,KACnE,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,sBAAsB,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,IAEnE,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 { useSingleTabStopNavigation } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\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 resizable?: 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 tableVariant?: TableProps.Variant;\n ariaLabel?: string;\n colSpan?: number;\n rowSpan?: number;\n scope?: 'col' | 'colgroup';\n columnGroupId?: string;\n isLast?: boolean;\n /**\n * For cells that span multiple columns (group headers): the column id of the boundary leaf\n * whose sticky shadow this cell should inherit. The cell's position still comes from `columnId`.\n */\n stickyBoundaryColumnId?: PropertyKey;\n}\n\nexport function TableThElement({\n resizableStyle,\n sortingStatus,\n sortingDisabled,\n focusedComponent,\n stuck,\n sticky,\n resizable,\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 colSpan,\n rowSpan,\n scope,\n columnGroupId,\n isLast,\n stickyBoundaryColumnId,\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 boundaryColumnId: stickyBoundaryColumnId,\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 resizable && styles['header-cell-resizable'],\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 scope === 'colgroup' && styles['header-cell-group'],\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 [styles['header-cell-spans-rows']]: (rowSpan ?? 1) > 1,\n [styles['header-cell-grouped']]: !!columnGroupId,\n },\n stickyStyles.className\n )}\n colSpan={colSpan}\n rowSpan={rowSpan}\n style={{ ...resizableStyle, ...stickyStyles.style }}\n ref={mergedRef}\n {...getTableColHeaderRoleProps({ tableRole, sortingStatus, colIndex })}\n scope={scope ?? 'col'}\n tabIndex={cellTabIndex === -1 ? undefined : cellTabIndex}\n {...copyAnalyticsMetadataAttribute(props)}\n {...(ariaLabel ? { 'aria-label': ariaLabel } : {})}\n {...(isLast ? { 'data-rightmost': true } : {})}\n {...(scope !== 'colgroup' ? { 'data-column-index': colIndex + 1 } : {})}\n {...(columnGroupId ? { 'data-column-group-id': columnGroupId } : {})}\n >\n {children}\n </th>\n );\n}\n"]}