@cloudscape-design/components-themeable 3.0.1311 → 3.0.1313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/visual-refresh/drawers.scss +16 -0
- package/lib/internal/scss/app-layout/visual-refresh/navigation.scss +1 -1
- package/lib/internal/scss/app-layout/visual-refresh/tools.scss +4 -0
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +1 -1
- package/lib/internal/scss/app-layout/visual-refresh-toolbar/navigation/styles.scss +1 -1
- package/lib/internal/scss/button-dropdown/category-elements/styles.scss +5 -0
- package/lib/internal/scss/button-dropdown/styles.scss +18 -0
- package/lib/internal/scss/expandable-section/styles.scss +17 -0
- package/lib/internal/scss/internal/components/button-trigger/styles.scss +7 -0
- package/lib/internal/scss/internal/components/drag-handle/styles.scss +5 -1
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/internal/styles/utils/theming.scss +6 -0
- package/lib/internal/scss/segmented-control/styles.scss +2 -2
- package/lib/internal/scss/status-indicator/styles.scss +36 -0
- package/lib/internal/scss/steps/styles.scss +39 -0
- package/lib/internal/scss/table/header-cell/styles.scss +12 -1
- package/lib/internal/scss/table/resizer/styles.scss +9 -1
- package/lib/internal/scss/toggle/styles.scss +1 -1
- package/lib/internal/scss/toggle-button/styles.scss +7 -1
- package/lib/internal/scss/token/mixins.scss +4 -4
- package/lib/internal/scss/token/styles.scss +7 -0
- package/lib/internal/scss/tree-view/tree-item/styles.scss +10 -0
- package/lib/internal/template/app-layout/runtime-drawer/index.js +1 -1
- package/lib/internal/template/app-layout/runtime-drawer/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/drawers.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/drawers.js +3 -0
- package/lib/internal/template/app-layout/visual-refresh/drawers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +87 -86
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +176 -164
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +87 -86
- package/lib/internal/template/app-layout/visual-refresh/tools.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/tools.js +2 -0
- package/lib/internal/template/app-layout/visual-refresh/tools.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +84 -84
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +32 -32
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +6 -6
- package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
- package/lib/internal/template/breadcrumb-group/implementation.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/implementation.js +2 -2
- package/lib/internal/template/breadcrumb-group/implementation.js.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/item.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/item/item.js +2 -1
- package/lib/internal/template/breadcrumb-group/item/item.js.map +1 -1
- package/lib/internal/template/button/internal.d.ts +3 -0
- package/lib/internal/template/button/internal.d.ts.map +1 -1
- package/lib/internal/template/button/internal.js +2 -2
- package/lib/internal/template/button/internal.js.map +1 -1
- package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js +4 -2
- package/lib/internal/template/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
- package/lib/internal/template/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/category-elements/mobile-expandable-category-element.js +4 -2
- package/lib/internal/template/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
- package/lib/internal/template/button-dropdown/category-elements/styles.css.js +19 -18
- package/lib/internal/template/button-dropdown/category-elements/styles.scoped.css +32 -28
- package/lib/internal/template/button-dropdown/category-elements/styles.selectors.js +19 -18
- package/lib/internal/template/button-dropdown/index.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/index.js +4 -3
- package/lib/internal/template/button-dropdown/index.js.map +1 -1
- package/lib/internal/template/button-dropdown/interfaces.d.ts +22 -0
- package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
- package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/internal.js +15 -6
- package/lib/internal/template/button-dropdown/internal.js.map +1 -1
- package/lib/internal/template/button-dropdown/styles.css.js +23 -21
- package/lib/internal/template/button-dropdown/styles.scoped.css +39 -29
- package/lib/internal/template/button-dropdown/styles.selectors.js +23 -21
- package/lib/internal/template/button-group/icon-toggle-button-item.js +1 -1
- package/lib/internal/template/button-group/icon-toggle-button-item.js.map +1 -1
- package/lib/internal/template/button-group/interfaces.d.ts +12 -1
- package/lib/internal/template/button-group/interfaces.d.ts.map +1 -1
- package/lib/internal/template/button-group/interfaces.js.map +1 -1
- package/lib/internal/template/button-group/menu-dropdown-item.d.ts.map +1 -1
- package/lib/internal/template/button-group/menu-dropdown-item.js +2 -1
- package/lib/internal/template/button-group/menu-dropdown-item.js.map +1 -1
- package/lib/internal/template/dropdown/internal.d.ts.map +1 -1
- package/lib/internal/template/dropdown/internal.js +14 -2
- package/lib/internal/template/dropdown/internal.js.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.d.ts.map +1 -1
- package/lib/internal/template/expandable-section/expandable-section-header.js +5 -5
- package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
- package/lib/internal/template/expandable-section/styles.css.js +36 -35
- package/lib/internal/template/expandable-section/styles.scoped.css +81 -66
- package/lib/internal/template/expandable-section/styles.selectors.js +36 -35
- package/lib/internal/template/icon/generated/icons.d.ts +1 -0
- package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
- package/lib/internal/template/icon/generated/icons.js +2 -0
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +65 -1
- package/lib/internal/template/internal/components/button-trigger/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/index.js +3 -2
- package/lib/internal/template/internal/components/button-trigger/index.js.map +1 -1
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +15 -14
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +35 -29
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +15 -14
- package/lib/internal/template/internal/components/checkbox-icon/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/checkbox-icon/index.js +11 -2
- package/lib/internal/template/internal/components/checkbox-icon/index.js.map +1 -1
- package/lib/internal/template/internal/components/drag-handle/styles.css.js +14 -14
- package/lib/internal/template/internal/components/drag-handle/styles.scoped.css +20 -19
- package/lib/internal/template/internal/components/drag-handle/styles.selectors.js +14 -14
- package/lib/internal/template/internal/components/drag-handle-wrapper/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/index.js +6 -3
- package/lib/internal/template/internal/components/drag-handle-wrapper/index.js.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.d.ts +2 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.d.ts.map +1 -1
- package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.js +2 -2
- package/lib/internal/template/internal/components/drag-handle-wrapper/portal-overlay.js.map +1 -1
- package/lib/internal/template/internal/components/expand-toggle-button/index.js +2 -2
- package/lib/internal/template/internal/components/expand-toggle-button/index.js.map +1 -1
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +8 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +8 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +236 -0
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +72 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +72 -0
- package/lib/internal/template/internal/generated/theming/index.js +236 -0
- package/lib/internal/template/internal/hooks/use-mouse-down-target.js +2 -2
- package/lib/internal/template/internal/hooks/use-mouse-down-target.js.map +1 -1
- package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.d.ts.map +1 -1
- package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js +4 -2
- package/lib/internal/template/internal/hooks/use-portal-mode-classes/index.js.map +1 -1
- package/lib/internal/template/internal/hooks/use-visual-mode/index.d.ts +1 -0
- package/lib/internal/template/internal/hooks/use-visual-mode/index.d.ts.map +1 -1
- package/lib/internal/template/internal/hooks/use-visual-mode/index.js +2 -1
- package/lib/internal/template/internal/hooks/use-visual-mode/index.js.map +1 -1
- package/lib/internal/template/internal/utils/throttle.d.ts.map +1 -1
- package/lib/internal/template/internal/utils/throttle.js +3 -1
- package/lib/internal/template/internal/utils/throttle.js.map +1 -1
- package/lib/internal/template/progress-bar/index.d.ts.map +1 -1
- package/lib/internal/template/progress-bar/index.js +1 -0
- package/lib/internal/template/progress-bar/index.js.map +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +16 -16
- package/lib/internal/template/segmented-control/styles.scoped.css +34 -34
- package/lib/internal/template/segmented-control/styles.selectors.js +16 -16
- package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
- package/lib/internal/template/status-indicator/internal.js +4 -3
- package/lib/internal/template/status-indicator/internal.js.map +1 -1
- package/lib/internal/template/status-indicator/styles.css.js +25 -24
- package/lib/internal/template/status-indicator/styles.scoped.css +75 -40
- package/lib/internal/template/status-indicator/styles.selectors.js +25 -24
- package/lib/internal/template/steps/internal.d.ts.map +1 -1
- package/lib/internal/template/steps/internal.js +20 -6
- package/lib/internal/template/steps/internal.js.map +1 -1
- package/lib/internal/template/steps/styles.css.js +12 -9
- package/lib/internal/template/steps/styles.scoped.css +43 -15
- package/lib/internal/template/steps/styles.selectors.js +12 -9
- package/lib/internal/template/table/header-cell/group-header-cell.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/group-header-cell.js +4 -16
- package/lib/internal/template/table/header-cell/group-header-cell.js.map +1 -1
- package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/index.js +2 -1
- package/lib/internal/template/table/header-cell/index.js.map +1 -1
- package/lib/internal/template/table/header-cell/styles.css.js +33 -33
- package/lib/internal/template/table/header-cell/styles.scoped.css +80 -73
- package/lib/internal/template/table/header-cell/styles.selectors.js +33 -33
- package/lib/internal/template/table/header-cell/th-element.d.ts +6 -5
- package/lib/internal/template/table/header-cell/th-element.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/th-element.js +4 -3
- package/lib/internal/template/table/header-cell/th-element.js.map +1 -1
- package/lib/internal/template/table/resizer/index.d.ts +4 -2
- package/lib/internal/template/table/resizer/index.d.ts.map +1 -1
- package/lib/internal/template/table/resizer/index.js +4 -4
- package/lib/internal/template/table/resizer/index.js.map +1 -1
- package/lib/internal/template/table/resizer/styles.css.js +17 -16
- package/lib/internal/template/table/resizer/styles.scoped.css +32 -24
- package/lib/internal/template/table/resizer/styles.selectors.js +17 -16
- package/lib/internal/template/table/selection/selection-cell.d.ts +2 -1
- package/lib/internal/template/table/selection/selection-cell.d.ts.map +1 -1
- package/lib/internal/template/table/selection/selection-cell.js +2 -2
- package/lib/internal/template/table/selection/selection-cell.js.map +1 -1
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.d.ts +2 -1
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.d.ts.map +1 -1
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.js +31 -7
- package/lib/internal/template/table/sticky-columns/use-sticky-columns.js.map +1 -1
- package/lib/internal/template/table/thead.d.ts.map +1 -1
- package/lib/internal/template/table/thead.js +2 -2
- package/lib/internal/template/table/thead.js.map +1 -1
- package/lib/internal/template/test-utils/dom/table/index.js +1 -1
- package/lib/internal/template/test-utils/dom/table/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/table/index.js +1 -1
- package/lib/internal/template/test-utils/selectors/table/index.js.map +1 -1
- package/lib/internal/template/theming/index.d.ts +2 -0
- package/lib/internal/template/theming/index.d.ts.map +1 -1
- package/lib/internal/template/theming/index.js +55 -0
- package/lib/internal/template/theming/index.js.map +1 -1
- package/lib/internal/template/toggle/styles.css.js +10 -10
- package/lib/internal/template/toggle/styles.scoped.css +18 -18
- package/lib/internal/template/toggle/styles.selectors.js +10 -10
- package/lib/internal/template/toggle-button/internal.d.ts.map +1 -1
- package/lib/internal/template/toggle-button/internal.js +3 -1
- package/lib/internal/template/toggle-button/internal.js.map +1 -1
- package/lib/internal/template/toggle-button/styles.css.js +4 -3
- package/lib/internal/template/toggle-button/styles.scoped.css +8 -3
- package/lib/internal/template/toggle-button/styles.selectors.js +4 -3
- package/lib/internal/template/token/dismiss-button.d.ts.map +1 -1
- package/lib/internal/template/token/dismiss-button.js +3 -1
- package/lib/internal/template/token/dismiss-button.js.map +1 -1
- package/lib/internal/template/token/internal.d.ts.map +1 -1
- package/lib/internal/template/token/internal.js +11 -3
- package/lib/internal/template/token/internal.js.map +1 -1
- package/lib/internal/template/token/styles.css.js +14 -14
- package/lib/internal/template/token/styles.scoped.css +33 -30
- package/lib/internal/template/token/styles.selectors.js +14 -14
- package/lib/internal/template/tree-view/tree-item/index.d.ts.map +1 -1
- package/lib/internal/template/tree-view/tree-item/index.js +2 -1
- package/lib/internal/template/tree-view/tree-item/index.js.map +1 -1
- package/lib/internal/template/tree-view/tree-item/styles.css.js +10 -9
- package/lib/internal/template/tree-view/tree-item/styles.scoped.css +19 -12
- package/lib/internal/template/tree-view/tree-item/styles.selectors.js +10 -9
- package/package.json +1 -1
|
@@ -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-
|
|
149
|
+
.awsui_header-cell_1spae_eevyv_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-8ggz94, 1px) solid var(--color-border-divider-
|
|
153
|
+
border-block-end: var(--border-divider-list-width-8ggz94, 1px) solid var(--color-border-divider-default-ipvpev, #eaeded);
|
|
154
154
|
background: var(--color-background-table-header-5hauij, #fafafa);
|
|
155
155
|
color: var(--color-text-column-header-hm90p0, #545b64);
|
|
156
156
|
font-weight: var(--font-weight-heading-s-qxvrar, 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-jatbiv, 4px);
|
|
160
160
|
padding-inline: var(--space-scaled-xs-sppte9, 8px);
|
|
161
161
|
}
|
|
162
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
162
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149:not(#\9):focus {
|
|
163
163
|
position: relative;
|
|
164
164
|
}
|
|
165
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
165
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149:not(#\9):focus {
|
|
166
166
|
outline: 2px dotted transparent;
|
|
167
167
|
outline-offset: calc(calc(-1 * var(--space-scaled-xxs-jatbiv, 4px)) - 1px);
|
|
168
168
|
}
|
|
169
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
169
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_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_1map5_149:not(#\9):
|
|
|
180
180
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
181
181
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
182
182
|
}
|
|
183
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
183
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_header-cell-fake-focus_1spae_eevyv_183:not(#\9) {
|
|
184
184
|
position: relative;
|
|
185
185
|
}
|
|
186
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
186
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_header-cell-fake-focus_1spae_eevyv_183:not(#\9) {
|
|
187
187
|
outline: 2px dotted transparent;
|
|
188
188
|
outline-offset: calc(calc(-1 * var(--space-scaled-xxs-jatbiv, 4px)) - 1px);
|
|
189
189
|
}
|
|
190
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
190
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_header-cell-fake-focus_1spae_eevyv_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_1map5_149.awsui_hea
|
|
|
201
201
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
202
202
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
203
203
|
}
|
|
204
|
-
.awsui_header-
|
|
204
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_header-cell-group_1spae_eevyv_204:not(#\9), .awsui_header-cell_1spae_eevyv_149.awsui_header-cell-grouped_1spae_eevyv_204:not(#\9), .awsui_header-cell_1spae_eevyv_149.awsui_header-cell-spans-rows_1spae_eevyv_204:not(#\9) {
|
|
205
205
|
padding-block: var(--space-xxxs-3w1kr2, 2px);
|
|
206
206
|
padding-inline: var(--space-scaled-xs-sppte9, 8px);
|
|
207
|
+
border-block-end-color: var(--color-border-divider-table-group-enot8o, #879596);
|
|
207
208
|
}
|
|
208
|
-
.awsui_header-cell-
|
|
209
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_header-cell-group_1spae_eevyv_204 > .awsui_resize-divider_1spae_eevyv_209.awsui_resize-divider_1spae_eevyv_209:not(#\9), .awsui_header-cell_1spae_eevyv_149.awsui_header-cell-grouped_1spae_eevyv_204 > .awsui_resize-divider_1spae_eevyv_209.awsui_resize-divider_1spae_eevyv_209:not(#\9), .awsui_header-cell_1spae_eevyv_149.awsui_header-cell-spans-rows_1spae_eevyv_204 > .awsui_resize-divider_1spae_eevyv_209.awsui_resize-divider_1spae_eevyv_209:not(#\9) {
|
|
210
|
+
border-inline-start-color: var(--color-border-divider-table-group-enot8o, #879596);
|
|
211
|
+
}
|
|
212
|
+
.awsui_header-cell-sticky_1spae_eevyv_212:not(#\9) {
|
|
209
213
|
border-block-end: var(--border-table-sticky-width-o9kqes, 0px) solid var(--color-border-divider-default-ipvpev, #eaeded);
|
|
210
214
|
}
|
|
211
|
-
.awsui_header-cell-
|
|
215
|
+
.awsui_header-cell-sticky_1spae_eevyv_212.awsui_header-cell-group_1spae_eevyv_204:not(#\9), .awsui_header-cell-sticky_1spae_eevyv_212.awsui_header-cell-grouped_1spae_eevyv_204:not(#\9), .awsui_header-cell-sticky_1spae_eevyv_212.awsui_header-cell-spans-rows_1spae_eevyv_204:not(#\9) {
|
|
216
|
+
border-block-end-color: var(--color-border-divider-table-group-enot8o, #879596);
|
|
217
|
+
}
|
|
218
|
+
.awsui_header-cell-stuck_1spae_eevyv_218:not(#\9):not(.awsui_header-cell-variant-full-page_1spae_eevyv_218) {
|
|
212
219
|
border-block-end-color: transparent;
|
|
213
220
|
}
|
|
214
|
-
.awsui_header-cell-variant-full-
|
|
221
|
+
.awsui_header-cell-variant-full-page_1spae_eevyv_218:not(#\9) {
|
|
215
222
|
background: var(--color-background-layout-main-05m5y6, #f2f3f3);
|
|
216
223
|
}
|
|
217
|
-
.awsui_header-cell-variant-full-
|
|
224
|
+
.awsui_header-cell-variant-full-page_1spae_eevyv_218.awsui_header-cell-hidden_1spae_eevyv_224:not(#\9) {
|
|
218
225
|
border-block-end-color: transparent;
|
|
219
226
|
}
|
|
220
|
-
.awsui_header-cell-variant-
|
|
227
|
+
.awsui_header-cell-variant-embedded_1spae_eevyv_227.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_eevyv_212, .awsui_sticky-cell_1spae_eevyv_227)), .awsui_header-cell-variant-borderless_1spae_eevyv_227.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):not(:is(.awsui_header-cell-sticky_1spae_eevyv_212, .awsui_sticky-cell_1spae_eevyv_227)) {
|
|
221
228
|
background: none;
|
|
222
229
|
}
|
|
223
|
-
.awsui_header-
|
|
230
|
+
.awsui_header-cell_1spae_eevyv_149:not(#\9):last-child, .awsui_header-cell_1spae_eevyv_149[data-rightmost]:not(#\9), .awsui_header-cell_1spae_eevyv_149.awsui_header-cell-sortable_1spae_eevyv_230:not(#\9) {
|
|
224
231
|
padding-inline-end: var(--space-xs-kw7k3v, 8px);
|
|
225
232
|
}
|
|
226
|
-
.awsui_header-
|
|
233
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell_1spae_eevyv_227:not(#\9) {
|
|
227
234
|
position: sticky;
|
|
228
235
|
background: var(--color-background-table-header-5hauij, #fafafa);
|
|
229
236
|
z-index: 798;
|
|
@@ -232,44 +239,44 @@ body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_1map5_149.awsui_hea
|
|
|
232
239
|
transition-timing-function: var(--motion-easing-sticky-xd5evu, ease-out);
|
|
233
240
|
}
|
|
234
241
|
@media (prefers-reduced-motion: reduce) {
|
|
235
|
-
.awsui_header-
|
|
242
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell_1spae_eevyv_227:not(#\9) {
|
|
236
243
|
animation: none;
|
|
237
244
|
transition: none;
|
|
238
245
|
}
|
|
239
246
|
}
|
|
240
|
-
.awsui-motion-disabled .awsui_header-
|
|
247
|
+
.awsui-motion-disabled .awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell_1spae_eevyv_227:not(#\9), .awsui-mode-entering .awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell_1spae_eevyv_227:not(#\9) {
|
|
241
248
|
animation: none;
|
|
242
249
|
transition: none;
|
|
243
250
|
}
|
|
244
|
-
.awsui_header-
|
|
251
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell_1spae_eevyv_227.awsui_table-variant-full-page_1spae_eevyv_251:not(#\9) {
|
|
245
252
|
background: var(--color-background-layout-main-05m5y6, #f2f3f3);
|
|
246
253
|
}
|
|
247
|
-
.awsui_header-
|
|
254
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell-pad-left_1spae_eevyv_254:not(#\9):not(.awsui_has-selection_1spae_eevyv_254) {
|
|
248
255
|
padding-inline-start: var(--space-table-horizontal-xmv4qa, 0px);
|
|
249
256
|
}
|
|
250
|
-
.awsui_header-
|
|
257
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell-last-inline-start_1spae_eevyv_257:not(#\9) {
|
|
251
258
|
box-shadow: var(--shadow-sticky-column-first-vya346, 4px 0 8px 0 rgba(0, 28, 36, 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-
|
|
262
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell-last-inline-start_1spae_eevyv_257 > .awsui_resize-divider_1spae_eevyv_209:not(#\9) {
|
|
256
263
|
display: none;
|
|
257
264
|
}
|
|
258
|
-
.awsui_header-
|
|
265
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell-last-inline-start_1spae_eevyv_257:not(#\9):dir(rtl) {
|
|
259
266
|
box-shadow: var(--shadow-sticky-column-last-02l85g, -4px 0 8px 0 rgba(0, 28, 36, 0.1));
|
|
260
267
|
clip-path: inset(0 0 0 -24px);
|
|
261
268
|
}
|
|
262
|
-
.awsui_header-
|
|
269
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell-last-inline-end_1spae_eevyv_269:not(#\9) {
|
|
263
270
|
box-shadow: var(--shadow-sticky-column-last-02l85g, -4px 0 8px 0 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-
|
|
274
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_sticky-cell-last-inline-end_1spae_eevyv_269:not(#\9):dir(rtl) {
|
|
268
275
|
box-shadow: var(--shadow-sticky-column-first-vya346, 4px 0 8px 0 rgba(0, 28, 36, 0.1));
|
|
269
276
|
clip-path: inset(0 -24px 0 0);
|
|
270
277
|
}
|
|
271
278
|
|
|
272
|
-
.awsui_sorting-
|
|
279
|
+
.awsui_sorting-icon_1spae_eevyv_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_1map5_149.awsui_hea
|
|
|
277
284
|
color: var(--color-text-column-sorting-icon-gys874, #687078);
|
|
278
285
|
}
|
|
279
286
|
|
|
280
|
-
.awsui_edit-
|
|
287
|
+
.awsui_edit-icon_1spae_eevyv_287:not(#\9) {
|
|
281
288
|
margin-inline-start: var(--space-xxs-jnczic, 4px);
|
|
282
289
|
margin-block-start: var(--space-scaled-xxs-jatbiv, 4px);
|
|
283
290
|
color: inherit;
|
|
284
291
|
}
|
|
285
292
|
|
|
286
|
-
.awsui_header-cell-
|
|
293
|
+
.awsui_header-cell-content_1spae_eevyv_293:not(#\9) {
|
|
287
294
|
position: relative;
|
|
288
295
|
padding-block: var(--space-scaled-xxs-jatbiv, 4px);
|
|
289
296
|
padding-inline-end: var(--space-s-4a5hs8, 12px);
|
|
290
297
|
padding-inline-start: var(--space-s-4a5hs8, 12px);
|
|
291
298
|
}
|
|
292
|
-
.awsui_header-cell-
|
|
299
|
+
.awsui_header-cell-content_1spae_eevyv_293.awsui_header-cell-content-expandable_1spae_eevyv_299:not(#\9) {
|
|
293
300
|
padding-inline-start: calc(var(--space-s-4a5hs8, 12px) + var(--space-m-n2lypl, 16px) + var(--space-xs-kw7k3v, 8px));
|
|
294
301
|
}
|
|
295
|
-
.awsui_header-cell-
|
|
302
|
+
.awsui_header-cell-group_1spae_eevyv_204 > .awsui_header-cell-content_1spae_eevyv_293:not(#\9), .awsui_header-cell-grouped_1spae_eevyv_204 > .awsui_header-cell-content_1spae_eevyv_293:not(#\9), .awsui_header-cell-spans-rows_1spae_eevyv_204 > .awsui_header-cell-content_1spae_eevyv_293:not(#\9) {
|
|
296
303
|
padding-block: var(--space-xxxs-3w1kr2, 2px);
|
|
297
304
|
}
|
|
298
|
-
.awsui_header-cell-
|
|
305
|
+
.awsui_header-cell-sortable_1spae_eevyv_230 > .awsui_header-cell-content_1spae_eevyv_293:not(#\9) {
|
|
299
306
|
padding-inline-end: calc(var(--space-xl-4dmkh1, 24px) + var(--space-xxs-jnczic, 4px));
|
|
300
307
|
}
|
|
301
|
-
.awsui_header-cell-
|
|
308
|
+
.awsui_header-cell-content_1spae_eevyv_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-
|
|
312
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_eevyv_293:not(#\9):focus {
|
|
306
313
|
position: relative;
|
|
307
314
|
}
|
|
308
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
315
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_eevyv_293:not(#\9):focus {
|
|
309
316
|
outline: 2px dotted transparent;
|
|
310
317
|
outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-0zj6up, 0px)) - 1px);
|
|
311
318
|
}
|
|
312
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
319
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_eevyv_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_1map5_286:n
|
|
|
323
330
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
324
331
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
325
332
|
}
|
|
326
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
333
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_eevyv_293.awsui_header-cell-fake-focus_1spae_eevyv_183:not(#\9) {
|
|
327
334
|
position: relative;
|
|
328
335
|
}
|
|
329
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
336
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_eevyv_293.awsui_header-cell-fake-focus_1spae_eevyv_183:not(#\9) {
|
|
330
337
|
outline: 2px dotted transparent;
|
|
331
338
|
outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-0zj6up, 0px)) - 1px);
|
|
332
339
|
}
|
|
333
|
-
body[data-awsui-focus-visible=true] .awsui_header-cell-
|
|
340
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell-content_1spae_eevyv_293.awsui_header-cell-fake-focus_1spae_eevyv_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_1map5_286.a
|
|
|
344
351
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
345
352
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
346
353
|
}
|
|
347
|
-
.awsui_header-cell-
|
|
354
|
+
.awsui_header-cell-disabled_1spae_eevyv_354.awsui_header-cell-sorted_1spae_eevyv_354 > .awsui_header-cell-content_1spae_eevyv_293 > .awsui_sorting-icon_1spae_eevyv_279:not(#\9) {
|
|
348
355
|
color: var(--color-text-interactive-disabled-xwt2jl, #aab7b8);
|
|
349
356
|
}
|
|
350
357
|
|
|
351
|
-
.awsui_header-cell-spans-
|
|
358
|
+
.awsui_header-cell-spans-rows_1spae_eevyv_204:not(#\9) {
|
|
352
359
|
block-size: 100%;
|
|
353
360
|
vertical-align: bottom;
|
|
354
361
|
}
|
|
355
|
-
.awsui_header-cell-spans-
|
|
362
|
+
.awsui_header-cell-spans-rows_1spae_eevyv_204 > .awsui_header-cell-content_1spae_eevyv_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-
|
|
369
|
+
.awsui_header-cell-spans-rows_1spae_eevyv_204 > .awsui_header-cell-content_1spae_eevyv_293 > .awsui_sorting-icon_1spae_eevyv_279:not(#\9) {
|
|
363
370
|
inset-block-start: auto;
|
|
364
371
|
inset-block-end: var(--space-scaled-xxs-jatbiv, 4px);
|
|
365
372
|
transform: none;
|
|
366
373
|
}
|
|
367
374
|
|
|
368
|
-
.awsui_header-cell-
|
|
375
|
+
.awsui_header-cell-sortable_1spae_eevyv_230:not(#\9):not(.awsui_header-cell-disabled_1spae_eevyv_354) > .awsui_header-cell-content_1spae_eevyv_293 {
|
|
369
376
|
cursor: pointer;
|
|
370
377
|
}
|
|
371
|
-
.awsui_header-cell-
|
|
378
|
+
.awsui_header-cell-sortable_1spae_eevyv_230:not(#\9):not(.awsui_header-cell-disabled_1spae_eevyv_354) > .awsui_header-cell-content_1spae_eevyv_293:hover, .awsui_header-cell-sortable_1spae_eevyv_230:not(#\9):not(.awsui_header-cell-disabled_1spae_eevyv_354).awsui_header-cell-sorted_1spae_eevyv_354 > .awsui_header-cell-content_1spae_eevyv_293 {
|
|
372
379
|
color: var(--color-text-interactive-active-c44vdq, #16191f);
|
|
373
380
|
}
|
|
374
|
-
.awsui_header-cell-
|
|
381
|
+
.awsui_header-cell-sortable_1spae_eevyv_230:not(#\9):not(.awsui_header-cell-disabled_1spae_eevyv_354) > .awsui_header-cell-content_1spae_eevyv_293:hover > .awsui_sorting-icon_1spae_eevyv_279, .awsui_header-cell-sortable_1spae_eevyv_230:not(#\9):not(.awsui_header-cell-disabled_1spae_eevyv_354).awsui_header-cell-sorted_1spae_eevyv_354 > .awsui_header-cell-content_1spae_eevyv_293 > .awsui_sorting-icon_1spae_eevyv_279 {
|
|
375
382
|
color: var(--color-text-interactive-active-c44vdq, #16191f);
|
|
376
383
|
}
|
|
377
384
|
|
|
378
|
-
.awsui_header-cell-
|
|
385
|
+
.awsui_header-cell-text_1spae_eevyv_385:not(#\9) {
|
|
379
386
|
line-height: var(--line-height-heading-xs-fuzanp, 20px);
|
|
380
387
|
padding-block: calc(var(--space-xxxs-3w1kr2, 2px) / 2);
|
|
381
388
|
}
|
|
382
|
-
.awsui_header-cell-
|
|
389
|
+
.awsui_header-cell-text_1spae_eevyv_385:not(#\9):not(.awsui_header-cell-text-wrap_1spae_eevyv_389) {
|
|
383
390
|
white-space: nowrap;
|
|
384
391
|
overflow: hidden;
|
|
385
392
|
text-overflow: ellipsis;
|
|
386
393
|
}
|
|
387
394
|
|
|
388
|
-
.awsui_header-cell-
|
|
389
|
-
.awsui_header-cell-
|
|
395
|
+
.awsui_header-cell-ascending_1spae_eevyv_395:not(#\9),
|
|
396
|
+
.awsui_header-cell-descending_1spae_eevyv_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-
|
|
406
|
+
.awsui_header-cell_1spae_eevyv_149:not(#\9):not(.awsui_is-visual-refresh_1spae_eevyv_227):first-child {
|
|
400
407
|
padding-inline-start: var(--space-xs-kw7k3v, 8px);
|
|
401
408
|
}
|
|
402
|
-
.awsui_header-
|
|
409
|
+
.awsui_header-cell_1spae_eevyv_149:not(#\9):not(.awsui_is-visual-refresh_1spae_eevyv_227):first-child.awsui_header-cell-content-expandable_1spae_eevyv_299 {
|
|
403
410
|
padding-inline-start: calc(var(--space-xs-kw7k3v, 8px) + var(--space-m-n2lypl, 16px) + var(--space-xs-kw7k3v, 8px));
|
|
404
411
|
}
|
|
405
412
|
|
|
406
|
-
.awsui_header-
|
|
413
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_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-
|
|
420
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:focus {
|
|
414
421
|
position: relative;
|
|
415
422
|
}
|
|
416
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
423
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:focus {
|
|
417
424
|
outline: 2px dotted transparent;
|
|
418
425
|
outline-offset: calc(calc(-1 * var(--space-scaled-xxs-jatbiv, 4px) + var(--space-scaled-xxs-jatbiv, 4px)) - 1px);
|
|
419
426
|
}
|
|
420
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
427
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_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_1map5_149.awsui_is-
|
|
|
431
438
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
432
439
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
433
440
|
}
|
|
434
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
441
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_eevyv_183 {
|
|
435
442
|
position: relative;
|
|
436
443
|
}
|
|
437
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
444
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_eevyv_183 {
|
|
438
445
|
outline: 2px dotted transparent;
|
|
439
446
|
outline-offset: calc(calc(-1 * var(--space-scaled-xxs-jatbiv, 4px) + var(--space-scaled-xxs-jatbiv, 4px)) - 1px);
|
|
440
447
|
}
|
|
441
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
448
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child.awsui_header-cell-fake-focus_1spae_eevyv_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_1map5_149.awsui_is-
|
|
|
452
459
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
453
460
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
454
461
|
}
|
|
455
|
-
.awsui_header-
|
|
462
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_eevyv_204):not(.awsui_header-cell-group_1spae_eevyv_204) > .awsui_header-cell-content_1spae_eevyv_293 {
|
|
456
463
|
padding-inline-start: 0px;
|
|
457
464
|
}
|
|
458
|
-
.awsui_header-
|
|
465
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_eevyv_204):not(.awsui_header-cell-group_1spae_eevyv_204) > .awsui_header-cell-content_1spae_eevyv_293.awsui_header-cell-content-expandable_1spae_eevyv_299 {
|
|
459
466
|
padding-inline-start: calc(0px + var(--space-m-n2lypl, 16px) + var(--space-xs-kw7k3v, 8px));
|
|
460
467
|
}
|
|
461
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
468
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_eevyv_204):not(.awsui_header-cell-group_1spae_eevyv_204) > .awsui_header-cell-content_1spae_eevyv_293:focus {
|
|
462
469
|
position: relative;
|
|
463
470
|
}
|
|
464
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
471
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_eevyv_204):not(.awsui_header-cell-group_1spae_eevyv_204) > .awsui_header-cell-content_1spae_eevyv_293:focus {
|
|
465
472
|
outline: 2px dotted transparent;
|
|
466
473
|
outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-0zj6up, 0px) + var(--space-scaled-xxs-jatbiv, 4px)) - 1px);
|
|
467
474
|
}
|
|
468
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
475
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_eevyv_204):not(.awsui_header-cell-group_1spae_eevyv_204) > .awsui_header-cell-content_1spae_eevyv_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_1map5_149.awsui_is-
|
|
|
479
486
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
480
487
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
481
488
|
}
|
|
482
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
489
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_eevyv_204):not(.awsui_header-cell-group_1spae_eevyv_204) > .awsui_header-cell-content_1spae_eevyv_293.awsui_header-cell-fake-focus_1spae_eevyv_183 {
|
|
483
490
|
position: relative;
|
|
484
491
|
}
|
|
485
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
492
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_eevyv_204):not(.awsui_header-cell-group_1spae_eevyv_204) > .awsui_header-cell-content_1spae_eevyv_293.awsui_header-cell-fake-focus_1spae_eevyv_183 {
|
|
486
493
|
outline: 2px dotted transparent;
|
|
487
494
|
outline-offset: calc(calc(-1 * var(--space-table-header-focus-outline-gutter-0zj6up, 0px) + var(--space-scaled-xxs-jatbiv, 4px)) - 1px);
|
|
488
495
|
}
|
|
489
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
496
|
+
body[data-awsui-focus-visible=true] .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_header-cell-grouped_1spae_eevyv_204):not(.awsui_header-cell-group_1spae_eevyv_204) > .awsui_header-cell-content_1spae_eevyv_293.awsui_header-cell-fake-focus_1spae_eevyv_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_1map5_149.awsui_is-
|
|
|
500
507
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-9xsko1, 2px);
|
|
501
508
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-r5f6xl, #0073bb);
|
|
502
509
|
}
|
|
503
|
-
.awsui_header-
|
|
510
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_eevyv_510):not(.awsui_sticky-cell-pad-inline-start_1spae_eevyv_510):not(.awsui_header-cell-group_1spae_eevyv_204):not(.awsui_header-cell-grouped_1spae_eevyv_204) {
|
|
504
511
|
padding-inline-start: var(--space-xxxs-3w1kr2, 2px);
|
|
505
512
|
}
|
|
506
|
-
.awsui_header-
|
|
513
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child:not(.awsui_has-striped-rows_1spae_eevyv_510):not(.awsui_sticky-cell-pad-inline-start_1spae_eevyv_510):not(.awsui_header-cell-group_1spae_eevyv_204):not(.awsui_header-cell-grouped_1spae_eevyv_204).awsui_header-cell-content-expandable_1spae_eevyv_299 {
|
|
507
514
|
padding-inline-start: calc(var(--space-xxxs-3w1kr2, 2px) + var(--space-m-n2lypl, 16px) + var(--space-xs-kw7k3v, 8px));
|
|
508
515
|
}
|
|
509
|
-
.awsui_header-
|
|
516
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child.awsui_has-striped-rows_1spae_eevyv_510:not(.awsui_sticky-cell-pad-inline-start_1spae_eevyv_510):not(.awsui_header-cell-group_1spae_eevyv_204):not(.awsui_header-cell-grouped_1spae_eevyv_204) {
|
|
510
517
|
padding-inline-start: var(--space-xxs-jnczic, 4px);
|
|
511
518
|
}
|
|
512
|
-
.awsui_header-
|
|
519
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):first-child.awsui_has-striped-rows_1spae_eevyv_510:not(.awsui_sticky-cell-pad-inline-start_1spae_eevyv_510):not(.awsui_header-cell-group_1spae_eevyv_204):not(.awsui_header-cell-grouped_1spae_eevyv_204).awsui_header-cell-content-expandable_1spae_eevyv_299 {
|
|
513
520
|
padding-inline-start: calc(var(--space-xxs-jnczic, 4px) + var(--space-m-n2lypl, 16px) + var(--space-xs-kw7k3v, 8px));
|
|
514
521
|
}
|
|
515
|
-
.awsui_header-
|
|
522
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227:not(#\9):last-child.awsui_header-cell-sortable_1spae_eevyv_230:not(.awsui_header-cell-resizable_1spae_eevyv_522), .awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227[data-rightmost].awsui_header-cell-sortable_1spae_eevyv_230:not(#\9):not(.awsui_header-cell-resizable_1spae_eevyv_522) {
|
|
516
523
|
padding-inline-end: var(--space-xxxs-3w1kr2, 2px);
|
|
517
524
|
}
|
|
518
|
-
.awsui_header-
|
|
525
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227.awsui_sticky-cell-pad-inline-start_1spae_eevyv_510:not(#\9) {
|
|
519
526
|
padding-inline-start: var(--space-scaled-l-66n9sr, 20px);
|
|
520
527
|
}
|
|
521
|
-
.awsui_header-
|
|
528
|
+
.awsui_header-cell_1spae_eevyv_149.awsui_is-visual-refresh_1spae_eevyv_227.awsui_sticky-cell-pad-inline-start_1spae_eevyv_510.awsui_header-cell-content-expandable_1spae_eevyv_299:not(#\9) {
|
|
522
529
|
padding-inline-start: calc(var(--space-scaled-l-66n9sr, 20px) + var(--space-m-n2lypl, 16px) + var(--space-xs-kw7k3v, 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-
|
|
6
|
-
"header-cell-fake-focus": "awsui_header-cell-fake-
|
|
7
|
-
"header-cell-group": "awsui_header-cell-
|
|
8
|
-
"header-cell-grouped": "awsui_header-cell-
|
|
9
|
-
"header-cell-spans-rows": "awsui_header-cell-spans-
|
|
10
|
-
"
|
|
11
|
-
"header-cell-
|
|
12
|
-
"header-cell-
|
|
13
|
-
"header-cell-
|
|
14
|
-
"header-cell-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"header-cell-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-
|
|
25
|
-
"sorting-icon": "awsui_sorting-
|
|
26
|
-
"edit-icon": "awsui_edit-
|
|
27
|
-
"header-cell-content": "awsui_header-cell-
|
|
28
|
-
"header-cell-content-expandable": "awsui_header-cell-content-
|
|
29
|
-
"header-cell-disabled": "awsui_header-cell-
|
|
30
|
-
"header-cell-sorted": "awsui_header-cell-
|
|
31
|
-
"header-cell-text": "awsui_header-cell-
|
|
32
|
-
"header-cell-text-wrap": "awsui_header-cell-text-
|
|
33
|
-
"header-cell-ascending": "awsui_header-cell-
|
|
34
|
-
"header-cell-descending": "awsui_header-cell-
|
|
35
|
-
"has-striped-rows": "awsui_has-striped-
|
|
36
|
-
"sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-
|
|
37
|
-
"header-cell-resizable": "awsui_header-cell-
|
|
5
|
+
"header-cell": "awsui_header-cell_1spae_eevyv_149",
|
|
6
|
+
"header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_eevyv_183",
|
|
7
|
+
"header-cell-group": "awsui_header-cell-group_1spae_eevyv_204",
|
|
8
|
+
"header-cell-grouped": "awsui_header-cell-grouped_1spae_eevyv_204",
|
|
9
|
+
"header-cell-spans-rows": "awsui_header-cell-spans-rows_1spae_eevyv_204",
|
|
10
|
+
"resize-divider": "awsui_resize-divider_1spae_eevyv_209",
|
|
11
|
+
"header-cell-sticky": "awsui_header-cell-sticky_1spae_eevyv_212",
|
|
12
|
+
"header-cell-stuck": "awsui_header-cell-stuck_1spae_eevyv_218",
|
|
13
|
+
"header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_eevyv_218",
|
|
14
|
+
"header-cell-hidden": "awsui_header-cell-hidden_1spae_eevyv_224",
|
|
15
|
+
"header-cell-variant-embedded": "awsui_header-cell-variant-embedded_1spae_eevyv_227",
|
|
16
|
+
"is-visual-refresh": "awsui_is-visual-refresh_1spae_eevyv_227",
|
|
17
|
+
"sticky-cell": "awsui_sticky-cell_1spae_eevyv_227",
|
|
18
|
+
"header-cell-variant-borderless": "awsui_header-cell-variant-borderless_1spae_eevyv_227",
|
|
19
|
+
"header-cell-sortable": "awsui_header-cell-sortable_1spae_eevyv_230",
|
|
20
|
+
"table-variant-full-page": "awsui_table-variant-full-page_1spae_eevyv_251",
|
|
21
|
+
"sticky-cell-pad-left": "awsui_sticky-cell-pad-left_1spae_eevyv_254",
|
|
22
|
+
"has-selection": "awsui_has-selection_1spae_eevyv_254",
|
|
23
|
+
"sticky-cell-last-inline-start": "awsui_sticky-cell-last-inline-start_1spae_eevyv_257",
|
|
24
|
+
"sticky-cell-last-inline-end": "awsui_sticky-cell-last-inline-end_1spae_eevyv_269",
|
|
25
|
+
"sorting-icon": "awsui_sorting-icon_1spae_eevyv_279",
|
|
26
|
+
"edit-icon": "awsui_edit-icon_1spae_eevyv_287",
|
|
27
|
+
"header-cell-content": "awsui_header-cell-content_1spae_eevyv_293",
|
|
28
|
+
"header-cell-content-expandable": "awsui_header-cell-content-expandable_1spae_eevyv_299",
|
|
29
|
+
"header-cell-disabled": "awsui_header-cell-disabled_1spae_eevyv_354",
|
|
30
|
+
"header-cell-sorted": "awsui_header-cell-sorted_1spae_eevyv_354",
|
|
31
|
+
"header-cell-text": "awsui_header-cell-text_1spae_eevyv_385",
|
|
32
|
+
"header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_eevyv_389",
|
|
33
|
+
"header-cell-ascending": "awsui_header-cell-ascending_1spae_eevyv_395",
|
|
34
|
+
"header-cell-descending": "awsui_header-cell-descending_1spae_eevyv_396",
|
|
35
|
+
"has-striped-rows": "awsui_has-striped-rows_1spae_eevyv_510",
|
|
36
|
+
"sticky-cell-pad-inline-start": "awsui_sticky-cell-pad-inline-start_1spae_eevyv_510",
|
|
37
|
+
"header-cell-resizable": "awsui_header-cell-resizable_1spae_eevyv_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
|
-
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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
|
-
export declare 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,
|
|
38
|
+
export declare 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 }: TableThElementProps): JSX.Element;
|
|
38
39
|
//# sourceMappingURL=th-element.d.ts.map
|
|
@@ -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,CAAC,EAAE,aAAa,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gB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ACR,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,
|
|
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
|
|
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
|
|
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,E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AC,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"]}
|