@cloudscape-design/components 3.0.261 → 3.0.262

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 (61) hide show
  1. package/app-layout/drawer/index.d.ts +1 -1
  2. package/app-layout/drawer/index.d.ts.map +1 -1
  3. package/app-layout/drawer/index.js +3 -3
  4. package/app-layout/drawer/index.js.map +1 -1
  5. package/app-layout/drawer/interfaces.d.ts +17 -3
  6. package/app-layout/drawer/interfaces.d.ts.map +1 -1
  7. package/app-layout/drawer/interfaces.js.map +1 -1
  8. package/app-layout/drawer/resizable-drawer.d.ts.map +1 -1
  9. package/app-layout/drawer/resizable-drawer.js +6 -4
  10. package/app-layout/drawer/resizable-drawer.js.map +1 -1
  11. package/app-layout/index.d.ts.map +1 -1
  12. package/app-layout/index.js +47 -31
  13. package/app-layout/index.js.map +1 -1
  14. package/app-layout/mobile-toolbar/index.d.ts.map +1 -1
  15. package/app-layout/mobile-toolbar/index.js +4 -1
  16. package/app-layout/mobile-toolbar/index.js.map +1 -1
  17. package/app-layout/test-classes/styles.css.js +19 -18
  18. package/app-layout/test-classes/styles.scoped.css +22 -18
  19. package/app-layout/test-classes/styles.selectors.js +19 -18
  20. package/app-layout/visual-refresh/drawers.d.ts +1 -0
  21. package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
  22. package/app-layout/visual-refresh/drawers.js +2 -2
  23. package/app-layout/visual-refresh/drawers.js.map +1 -1
  24. package/attribute-editor/row.d.ts.map +1 -1
  25. package/attribute-editor/row.js +1 -3
  26. package/attribute-editor/row.js.map +1 -1
  27. package/internal/environment.js +1 -1
  28. package/internal/manifest.json +1 -1
  29. package/package.json +1 -1
  30. package/table/body-cell/styles.css.js +23 -40
  31. package/table/body-cell/styles.scoped.css +55 -216
  32. package/table/body-cell/styles.selectors.js +23 -40
  33. package/table/header-cell/index.js +1 -1
  34. package/table/header-cell/index.js.map +1 -1
  35. package/table/header-cell/styles.css.js +24 -0
  36. package/table/header-cell/styles.scoped.css +252 -0
  37. package/table/header-cell/styles.selectors.js +25 -0
  38. package/table/internal.d.ts.map +1 -1
  39. package/table/internal.js +10 -4
  40. package/table/internal.js.map +1 -1
  41. package/table/thead.js +1 -1
  42. package/table/thead.js.map +1 -1
  43. package/table/use-column-widths.js +1 -1
  44. package/table/use-column-widths.js.map +1 -1
  45. package/test-utils/dom/app-layout/index.d.ts +6 -0
  46. package/test-utils/dom/app-layout/index.js +18 -0
  47. package/test-utils/dom/app-layout/index.js.map +1 -1
  48. package/test-utils/dom/table/index.js +10 -9
  49. package/test-utils/dom/table/index.js.map +1 -1
  50. package/test-utils/selectors/app-layout/index.d.ts +6 -0
  51. package/test-utils/selectors/app-layout/index.js +18 -0
  52. package/test-utils/selectors/app-layout/index.js.map +1 -1
  53. package/test-utils/selectors/table/index.js +10 -9
  54. package/test-utils/selectors/table/index.js.map +1 -1
  55. package/test-utils/tsconfig.tsbuildinfo +1 -1
  56. package/top-navigation/parts/utility.js +1 -1
  57. package/top-navigation/parts/utility.js.map +1 -1
  58. package/table/table-wrapper.d.ts +0 -13
  59. package/table/table-wrapper.d.ts.map +0 -1
  60. package/table/table-wrapper.js +0 -15
  61. package/table/table-wrapper.js.map +0 -1
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_body-cell_c6tup_1yvtt_93:not(#\9) {
93
+ .awsui_body-cell_c6tup_iy9jn_93:not(#\9) {
94
94
  box-sizing: border-box;
95
95
  padding: var(--space-scaled-xs-6859qs, 8px) var(--space-scaled-l-t03y3z, 20px) calc(
96
96
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
@@ -99,19 +99,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
99
99
  word-wrap: break-word;
100
100
  border-bottom: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
101
101
  }
102
- .awsui_body-cell_c6tup_1yvtt_93:not(#\9):not(.awsui_body-cell-wrap_c6tup_1yvtt_102) {
102
+ .awsui_body-cell_c6tup_iy9jn_93:not(#\9):not(.awsui_body-cell-wrap_c6tup_iy9jn_102) {
103
103
  white-space: nowrap;
104
104
  overflow: hidden;
105
105
  text-overflow: ellipsis;
106
106
  }
107
- .awsui_body-cell_c6tup_1yvtt_93:not(#\9):first-child {
107
+ .awsui_body-cell_c6tup_iy9jn_93:not(#\9):first-child {
108
108
  border-left: var(--border-item-width-qbbbsa, 2px) solid transparent;
109
109
  }
110
- .awsui_body-cell_c6tup_1yvtt_93:not(#\9):last-child {
110
+ .awsui_body-cell_c6tup_iy9jn_93:not(#\9):last-child {
111
111
  border-right: var(--border-item-width-qbbbsa, 2px) solid transparent;
112
112
  padding-right: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-qbbbsa, 2px));
113
113
  }
114
- .awsui_body-cell_c6tup_1yvtt_93.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):first-child {
114
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_is-visual-refresh_c6tup_iy9jn_114:not(#\9):first-child {
115
115
  /*
116
116
  Striped rows requires additional left padding because the
117
117
  shaded background makes the child content appear too close
@@ -123,85 +123,85 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
123
123
  that the placeholder border would consume.
124
124
  */
125
125
  }
126
- .awsui_body-cell_c6tup_1yvtt_93.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1yvtt_126) {
126
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_is-visual-refresh_c6tup_iy9jn_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_iy9jn_126) {
127
127
  padding-left: var(--space-xxxs-k2w98v, 2px);
128
128
  }
129
- .awsui_body-cell_c6tup_1yvtt_93.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1yvtt_126):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129).awsui_body-cell-editable_c6tup_1yvtt_129:hover {
129
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_is-visual-refresh_c6tup_iy9jn_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_iy9jn_126):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129).awsui_body-cell-editable_c6tup_iy9jn_129:hover {
130
130
  padding-left: calc(var(--space-xxxs-k2w98v, 2px) + var(--border-divider-list-width-hacikr, 1px));
131
131
  }
132
- .awsui_body-cell_c6tup_1yvtt_93.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):first-child:first-child.awsui_has-striped-rows_c6tup_1yvtt_126 {
132
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_is-visual-refresh_c6tup_iy9jn_114:not(#\9):first-child:first-child.awsui_has-striped-rows_c6tup_iy9jn_126 {
133
133
  padding-left: var(--space-xxs-ynfts5, 4px);
134
134
  }
135
- .awsui_body-cell_c6tup_1yvtt_93.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):first-child:not(.awsui_has-selection_c6tup_1yvtt_135):not(.awsui_body-cell-editable_c6tup_1yvtt_129) {
135
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_is-visual-refresh_c6tup_iy9jn_114:not(#\9):first-child:not(.awsui_has-selection_c6tup_iy9jn_135):not(.awsui_body-cell-editable_c6tup_iy9jn_129) {
136
136
  border-left: none;
137
137
  }
138
- .awsui_body-cell_c6tup_1yvtt_93:not(#\9):first-child:not(.awsui_is-visual-refresh_c6tup_1yvtt_114) {
138
+ .awsui_body-cell_c6tup_iy9jn_93:not(#\9):first-child:not(.awsui_is-visual-refresh_c6tup_iy9jn_114) {
139
139
  padding-left: calc(var(--space-l-4vl6xu, 20px) - var(--border-item-width-qbbbsa, 2px));
140
140
  }
141
- .awsui_body-cell-first-row_c6tup_1yvtt_141:not(#\9) {
141
+ .awsui_body-cell-first-row_c6tup_iy9jn_141:not(#\9) {
142
142
  border-top: var(--border-item-width-qbbbsa, 2px) solid transparent;
143
143
  }
144
- .awsui_body-cell-last-row_c6tup_1yvtt_144:not(#\9):not(.awsui_body-cell-selected_c6tup_1yvtt_144):not(.awsui_has-footer_c6tup_1yvtt_144) {
144
+ .awsui_body-cell-last-row_c6tup_iy9jn_144:not(#\9):not(.awsui_body-cell-selected_c6tup_iy9jn_144):not(.awsui_has-footer_c6tup_iy9jn_144) {
145
145
  border-bottom: var(--border-item-width-qbbbsa, 2px) solid transparent;
146
146
  }
147
- .awsui_body-cell-last-row_c6tup_1yvtt_144:not(#\9):not(.awsui_body-cell-selected_c6tup_1yvtt_144).awsui_has-footer_c6tup_1yvtt_144 {
147
+ .awsui_body-cell-last-row_c6tup_iy9jn_144:not(#\9):not(.awsui_body-cell-selected_c6tup_iy9jn_144).awsui_has-footer_c6tup_iy9jn_144 {
148
148
  /*
149
149
  Add a bottom border to the body cells of the last row as a separator between the
150
150
  table and the footer
151
151
  */
152
152
  border-bottom: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
153
153
  }
154
- .awsui_body-cell-shaded_c6tup_1yvtt_154:not(#\9) {
154
+ .awsui_body-cell-shaded_c6tup_iy9jn_154:not(#\9) {
155
155
  background: var(--color-background-cell-shaded-26ubfj, #f8f8f8);
156
156
  }
157
- .awsui_body-cell-selected_c6tup_1yvtt_144:not(#\9) {
157
+ .awsui_body-cell-selected_c6tup_iy9jn_144:not(#\9) {
158
158
  background-color: var(--color-background-item-selected-ebt4bi, #f2f8fd);
159
159
  border-top: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
160
160
  border-bottom: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
161
161
  padding-bottom: var(--space-scaled-xs-6859qs, 8px);
162
162
  }
163
- .awsui_body-cell-selected_c6tup_1yvtt_144:not(#\9):first-child {
163
+ .awsui_body-cell-selected_c6tup_iy9jn_144:not(#\9):first-child {
164
164
  border-left: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
165
165
  border-radius: var(--border-radius-item-u2ibpi, 8px) 0 0 var(--border-radius-item-u2ibpi, 8px);
166
166
  }
167
- .awsui_body-cell-selected_c6tup_1yvtt_144:not(#\9):last-child {
167
+ .awsui_body-cell-selected_c6tup_iy9jn_144:not(#\9):last-child {
168
168
  border-right: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
169
169
  border-radius: 0 var(--border-radius-item-u2ibpi, 8px) var(--border-radius-item-u2ibpi, 8px) 0;
170
170
  }
171
- .awsui_body-cell-selected_c6tup_1yvtt_144:not(#\9):not(:first-child) {
171
+ .awsui_body-cell-selected_c6tup_iy9jn_144:not(#\9):not(:first-child) {
172
172
  padding-top: calc(
173
173
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
174
174
  );
175
175
  }
176
- .awsui_body-cell_c6tup_1yvtt_93:not(#\9):not(.awsui_body-cell-selected_c6tup_1yvtt_144).awsui_body-cell-next-selected_c6tup_1yvtt_176 {
176
+ .awsui_body-cell_c6tup_iy9jn_93:not(#\9):not(.awsui_body-cell-selected_c6tup_iy9jn_144).awsui_body-cell-next-selected_c6tup_iy9jn_176 {
177
177
  border-bottom: 0;
178
178
  padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) + var(--border-divider-list-width-hacikr, 1px));
179
179
  }
180
- .awsui_body-cell-selected_c6tup_1yvtt_144.awsui_body-cell-prev-selected_c6tup_1yvtt_180:not(#\9) {
180
+ .awsui_body-cell-selected_c6tup_iy9jn_144.awsui_body-cell-prev-selected_c6tup_iy9jn_180:not(#\9) {
181
181
  padding-top: calc(
182
182
  var(--space-scaled-xs-6859qs, 8px) + (var(--border-item-width-qbbbsa, 2px) - var(--border-divider-list-width-hacikr, 1px))
183
183
  );
184
184
  border-top: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-item-placeholder-jgzhnb, #0972d3);
185
185
  }
186
- .awsui_body-cell-selected_c6tup_1yvtt_144.awsui_body-cell-next-selected_c6tup_1yvtt_176:not(#\9) {
186
+ .awsui_body-cell-selected_c6tup_iy9jn_144.awsui_body-cell-next-selected_c6tup_iy9jn_176:not(#\9) {
187
187
  border-bottom-width: var(--border-divider-list-width-hacikr, 1px);
188
188
  }
189
- .awsui_body-cell-selected_c6tup_1yvtt_144.awsui_body-cell-next-selected_c6tup_1yvtt_176:not(#\9):first-child {
189
+ .awsui_body-cell-selected_c6tup_iy9jn_144.awsui_body-cell-next-selected_c6tup_iy9jn_176:not(#\9):first-child {
190
190
  border-bottom-left-radius: 0;
191
191
  }
192
- .awsui_body-cell-selected_c6tup_1yvtt_144.awsui_body-cell-next-selected_c6tup_1yvtt_176:not(#\9):last-child {
192
+ .awsui_body-cell-selected_c6tup_iy9jn_144.awsui_body-cell-next-selected_c6tup_iy9jn_176:not(#\9):last-child {
193
193
  border-bottom-right-radius: 0;
194
194
  }
195
- .awsui_body-cell-selected_c6tup_1yvtt_144.awsui_body-cell-prev-selected_c6tup_1yvtt_180:not(#\9):first-child {
195
+ .awsui_body-cell-selected_c6tup_iy9jn_144.awsui_body-cell-prev-selected_c6tup_iy9jn_180:not(#\9):first-child {
196
196
  border-top-left-radius: 0;
197
197
  }
198
- .awsui_body-cell-selected_c6tup_1yvtt_144.awsui_body-cell-prev-selected_c6tup_1yvtt_180:not(#\9):last-child {
198
+ .awsui_body-cell-selected_c6tup_iy9jn_144.awsui_body-cell-prev-selected_c6tup_iy9jn_180:not(#\9):last-child {
199
199
  border-top-right-radius: 0;
200
200
  }
201
- .awsui_body-cell-selected_c6tup_1yvtt_144:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_1yvtt_180) {
201
+ .awsui_body-cell-selected_c6tup_iy9jn_144:not(#\9):not(.awsui_body-cell-prev-selected_c6tup_iy9jn_180) {
202
202
  padding-top: var(--space-scaled-xs-6859qs, 8px);
203
203
  }
204
- .awsui_body-cell-success_c6tup_1yvtt_204:not(#\9), .awsui_body-cell-editor_c6tup_1yvtt_204:not(#\9) {
204
+ .awsui_body-cell-success_c6tup_iy9jn_204:not(#\9), .awsui_body-cell-editor_c6tup_iy9jn_204:not(#\9) {
205
205
  top: 0;
206
206
  right: 0;
207
207
  bottom: 0;
@@ -217,62 +217,62 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
217
217
  padding-right: calc(var(--space-xs-rsr2qu, 8px) + var(--space-xxs-ynfts5, 4px));
218
218
  color: var(--color-text-button-normal-default-u8647m, #0972d3);
219
219
  }
220
- .awsui_body-cell-success_c6tup_1yvtt_204:not(#\9):hover, .awsui_body-cell-editor_c6tup_1yvtt_204:not(#\9):hover {
220
+ .awsui_body-cell-success_c6tup_iy9jn_204:not(#\9):hover, .awsui_body-cell-editor_c6tup_iy9jn_204:not(#\9):hover {
221
221
  color: var(--color-text-button-normal-hover-kxmvcc, #033160);
222
222
  }
223
- .awsui_body-cell-success_c6tup_1yvtt_204:not(#\9):active, .awsui_body-cell-editor_c6tup_1yvtt_204:not(#\9):active {
223
+ .awsui_body-cell-success_c6tup_iy9jn_204:not(#\9):active, .awsui_body-cell-editor_c6tup_iy9jn_204:not(#\9):active {
224
224
  color: var(--color-text-button-normal-active-6obrzh, #033160);
225
225
  }
226
- .awsui_body-cell-success-form_c6tup_1yvtt_226:not(#\9), .awsui_body-cell-editor-form_c6tup_1yvtt_226:not(#\9) {
226
+ .awsui_body-cell-success-form_c6tup_iy9jn_226:not(#\9), .awsui_body-cell-editor-form_c6tup_iy9jn_226:not(#\9) {
227
227
  margin: calc(-1 * var(--space-xs-rsr2qu, 8px)) calc(-1.5 * var(--space-xs-rsr2qu, 8px));
228
228
  }
229
- .awsui_is-visual-refresh_c6tup_1yvtt_114.awsui_body-cell_c6tup_1yvtt_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_1yvtt_126 > .awsui_body-cell-success-form_c6tup_1yvtt_226, .awsui_is-visual-refresh_c6tup_1yvtt_114.awsui_body-cell_c6tup_1yvtt_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_1yvtt_126 > .awsui_body-cell-editor-form_c6tup_1yvtt_226 {
229
+ .awsui_is-visual-refresh_c6tup_iy9jn_114.awsui_body-cell_c6tup_iy9jn_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_iy9jn_126 > .awsui_body-cell-success-form_c6tup_iy9jn_226, .awsui_is-visual-refresh_c6tup_iy9jn_114.awsui_body-cell_c6tup_iy9jn_93:not(#\9):first-child.awsui_has-striped-rows_c6tup_iy9jn_126 > .awsui_body-cell-editor-form_c6tup_iy9jn_226 {
230
230
  margin-left: calc(-1 * var(--space-xxs-ynfts5, 4px));
231
231
  }
232
- .awsui_is-visual-refresh_c6tup_1yvtt_114.awsui_body-cell_c6tup_1yvtt_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1yvtt_126) > .awsui_body-cell-success-form_c6tup_1yvtt_226, .awsui_is-visual-refresh_c6tup_1yvtt_114.awsui_body-cell_c6tup_1yvtt_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1yvtt_126) > .awsui_body-cell-editor-form_c6tup_1yvtt_226 {
232
+ .awsui_is-visual-refresh_c6tup_iy9jn_114.awsui_body-cell_c6tup_iy9jn_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_iy9jn_126) > .awsui_body-cell-success-form_c6tup_iy9jn_226, .awsui_is-visual-refresh_c6tup_iy9jn_114.awsui_body-cell_c6tup_iy9jn_93:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_iy9jn_126) > .awsui_body-cell-editor-form_c6tup_iy9jn_226 {
233
233
  margin-left: calc(-1 * var(--space-xxxs-k2w98v, 2px));
234
234
  }
235
- .awsui_body-cell-success-row_c6tup_1yvtt_235:not(#\9), .awsui_body-cell-editor-row_c6tup_1yvtt_235:not(#\9) {
235
+ .awsui_body-cell-success-row_c6tup_iy9jn_235:not(#\9), .awsui_body-cell-editor-row_c6tup_iy9jn_235:not(#\9) {
236
236
  display: flex;
237
237
  flex-flow: row nowrap;
238
238
  align-items: center;
239
239
  justify-content: space-between;
240
240
  column-gap: var(--space-xxs-ynfts5, 4px);
241
241
  }
242
- .awsui_body-cell-success-row_c6tup_1yvtt_235 > :not(#\9):not(:last-child), .awsui_body-cell-editor-row_c6tup_1yvtt_235 > :not(#\9):not(:last-child) {
242
+ .awsui_body-cell-success-row_c6tup_iy9jn_235 > :not(#\9):not(:last-child), .awsui_body-cell-editor-row_c6tup_iy9jn_235 > :not(#\9):not(:last-child) {
243
243
  flex-grow: 1;
244
244
  }
245
- .awsui_body-cell-success-controls_c6tup_1yvtt_245:not(#\9), .awsui_body-cell-editor-controls_c6tup_1yvtt_245:not(#\9) {
245
+ .awsui_body-cell-success-controls_c6tup_iy9jn_245:not(#\9), .awsui_body-cell-editor-controls_c6tup_iy9jn_245:not(#\9) {
246
246
  flex-shrink: 0;
247
247
  }
248
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9) {
248
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9) {
249
249
  position: relative;
250
250
  cursor: pointer;
251
251
  }
252
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129.awsui_body-cell-edit-active_c6tup_1yvtt_129:not(#\9) {
252
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129.awsui_body-cell-edit-active_c6tup_iy9jn_129:not(#\9) {
253
253
  overflow: visible;
254
254
  }
255
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129) > .awsui_body-cell-editor_c6tup_1yvtt_204 {
255
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129) > .awsui_body-cell-editor_c6tup_iy9jn_204 {
256
256
  opacity: 0;
257
257
  }
258
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129).awsui_body-cell-has-success_c6tup_1yvtt_258 {
258
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129).awsui_body-cell-has-success_c6tup_iy9jn_258 {
259
259
  padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
260
260
  }
261
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):focus-within {
261
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):focus-within {
262
262
  padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
263
263
  position: relative;
264
264
  }
265
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):focus-within > .awsui_body-cell-editor_c6tup_1yvtt_204 {
265
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):focus-within > .awsui_body-cell-editor_c6tup_iy9jn_204 {
266
266
  opacity: 1;
267
267
  }
268
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):focus-within > .awsui_body-cell-success_c6tup_1yvtt_204 {
268
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):focus-within > .awsui_body-cell-success_c6tup_iy9jn_204 {
269
269
  opacity: 0;
270
270
  }
271
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):focus-within {
271
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):focus-within {
272
272
  outline: 2px dotted transparent;
273
273
  outline-offset: calc(calc(-1 * var(--space-scaled-xxs-95dhkm, 4px)) - 1px);
274
274
  }
275
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):focus-within::before {
275
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):focus-within::before {
276
276
  content: " ";
277
277
  display: block;
278
278
  position: absolute;
@@ -283,7 +283,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
283
283
  border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
284
284
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
285
285
  }
286
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover {
286
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover {
287
287
  position: relative;
288
288
  background-color: var(--color-background-dropdown-item-hover-mqsxkv, #f4f4f4);
289
289
  border: var(--border-divider-list-width-hacikr, 1px) solid var(--color-border-control-default-m3lmsh, #7d8998);
@@ -291,199 +291,38 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
291
291
  right: calc(-1 * var(--border-divider-list-width-hacikr, 1px));
292
292
  padding-right: calc(var(--space-scaled-l-t03y3z, 20px) + var(--space-l-4vl6xu, 20px));
293
293
  }
294
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover > .awsui_body-cell-editor_c6tup_1yvtt_204 {
294
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover > .awsui_body-cell-editor_c6tup_iy9jn_204 {
295
295
  opacity: 1;
296
296
  }
297
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover > .awsui_body-cell-success_c6tup_1yvtt_204 {
297
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover > .awsui_body-cell-success_c6tup_iy9jn_204 {
298
298
  opacity: 0;
299
299
  }
300
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover:first-child {
300
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover:first-child {
301
301
  left: 0;
302
302
  right: 0;
303
303
  }
304
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover > .awsui_body-cell-editor_c6tup_1yvtt_204 {
304
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover > .awsui_body-cell-editor_c6tup_iy9jn_204 {
305
305
  padding-right: calc(var(--space-xs-rsr2qu, 8px) + var(--space-xxs-ynfts5, 4px) - (2 * var(--border-divider-list-width-hacikr, 1px)));
306
306
  }
307
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover.awsui_body-cell-last-row_c6tup_1yvtt_144.awsui_body-cell-selected_c6tup_1yvtt_144, .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover.awsui_body-cell-next-selected_c6tup_1yvtt_176 {
307
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover.awsui_body-cell-last-row_c6tup_iy9jn_144.awsui_body-cell-selected_c6tup_iy9jn_144, .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover.awsui_body-cell-next-selected_c6tup_iy9jn_176 {
308
308
  padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
309
309
  padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px) / 2));
310
310
  }
311
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover.awsui_body-cell-last-row_c6tup_1yvtt_144:not(.awsui_body-cell-selected_c6tup_1yvtt_144) {
311
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover.awsui_body-cell-last-row_c6tup_iy9jn_144:not(.awsui_body-cell-selected_c6tup_iy9jn_144) {
312
312
  padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
313
313
  }
314
- .awsui_body-cell_c6tup_1yvtt_93.awsui_body-cell-editable_c6tup_1yvtt_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover.awsui_body-cell-first-row_c6tup_1yvtt_141:not(.awsui_body-cell-selected_c6tup_1yvtt_144) {
314
+ .awsui_body-cell_c6tup_iy9jn_93.awsui_body-cell-editable_c6tup_iy9jn_129:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover.awsui_body-cell-first-row_c6tup_iy9jn_141:not(.awsui_body-cell-selected_c6tup_iy9jn_144) {
315
315
  padding-top: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
316
316
  padding-bottom: calc(var(--space-scaled-xs-6859qs, 8px) - calc(var(--border-divider-list-width-hacikr, 1px)));
317
317
  }
318
- .awsui_body-cell-editable_c6tup_1yvtt_129.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover:first-child {
318
+ .awsui_body-cell-editable_c6tup_iy9jn_129.awsui_is-visual-refresh_c6tup_iy9jn_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover:first-child {
319
319
  border-top-left-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
320
320
  border-bottom-left-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
321
321
  }
322
- .awsui_body-cell-editable_c6tup_1yvtt_129.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover:last-child {
322
+ .awsui_body-cell-editable_c6tup_iy9jn_129.awsui_is-visual-refresh_c6tup_iy9jn_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover:last-child {
323
323
  border-top-right-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
324
324
  border-bottom-right-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
325
325
  }
326
- .awsui_body-cell-editable_c6tup_1yvtt_129.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_1yvtt_129):hover.awsui_body-cell-first-row_c6tup_1yvtt_141 > .awsui_body-cell-editor_c6tup_1yvtt_204 {
326
+ .awsui_body-cell-editable_c6tup_iy9jn_129.awsui_is-visual-refresh_c6tup_iy9jn_114:not(#\9):not(.awsui_body-cell-edit-active_c6tup_iy9jn_129):hover.awsui_body-cell-first-row_c6tup_iy9jn_141 > .awsui_body-cell-editor_c6tup_iy9jn_204 {
327
327
  padding-top: var(--border-divider-list-width-hacikr, 1px);
328
- }
329
-
330
- .awsui_header-cell_c6tup_1yvtt_330:not(#\9) {
331
- position: relative;
332
- text-align: left;
333
- box-sizing: border-box;
334
- border-bottom: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
335
- background: var(--color-background-table-header-i1pa1g, #ffffff);
336
- color: var(--color-text-column-header-u472sv, #414d5c);
337
- font-weight: var(--font-heading-s-weight-k8ys41, 800);
338
- -webkit-font-smoothing: var(--font-smoothing-webkit-vu3hx4, antialiased);
339
- -moz-osx-font-smoothing: var(--font-smoothing-moz-osx-nkh1jb, grayscale);
340
- padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-scaled-xs-6859qs, 8px);
341
- }
342
- .awsui_header-cell-sticky_c6tup_1yvtt_342:not(#\9) {
343
- border-bottom: var(--border-table-sticky-width-h1tlxy, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
344
- }
345
- .awsui_header-cell-stuck_c6tup_1yvtt_345:not(#\9):not(.awsui_header-cell-variant-full-page_c6tup_1yvtt_345) {
346
- border-bottom-color: transparent;
347
- }
348
- .awsui_header-cell-variant-full-page_c6tup_1yvtt_345.awsui_header-cell-hidden_c6tup_1yvtt_348:not(#\9) {
349
- border-bottom-color: transparent;
350
- }
351
- .awsui_header-cell_c6tup_1yvtt_330:not(#\9):last-child, .awsui_header-cell_c6tup_1yvtt_330.awsui_header-cell-sortable_c6tup_1yvtt_351:not(#\9) {
352
- padding-right: var(--space-xs-rsr2qu, 8px);
353
- }
354
- .awsui_header-cell_c6tup_1yvtt_330:not(#\9):not(:last-child):before {
355
- content: "";
356
- position: absolute;
357
- right: 0;
358
- bottom: 0;
359
- top: 0;
360
- min-height: var(--font-heading-xs-line-height-5x131j, 18px);
361
- max-height: calc(100% - calc(2 * var(--space-xs-rsr2qu, 8px) + var(--space-xxxs-k2w98v, 2px)));
362
- margin: auto;
363
- border-left: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
364
- box-sizing: border-box;
365
- }
366
- .awsui_header-cell-resizable_c6tup_1yvtt_366:not(#\9):not(:last-child):before {
367
- border-left-color: var(--color-border-divider-interactive-default-0hdcst, #414d5c);
368
- }
369
-
370
- .awsui_sorting-icon_c6tup_1yvtt_370:not(#\9) {
371
- position: absolute;
372
- top: 50%;
373
- transform: translateY(-50%);
374
- right: var(--space-xxs-ynfts5, 4px);
375
- color: var(--color-text-column-sorting-icon-q5sr09, #414d5c);
376
- }
377
-
378
- .awsui_edit-icon_c6tup_1yvtt_378:not(#\9) {
379
- margin-left: var(--space-xxs-ynfts5, 4px);
380
- margin-top: var(--space-scaled-xxs-95dhkm, 4px);
381
- color: inherit;
382
- }
383
-
384
- .awsui_header-cell-content_c6tup_1yvtt_384:not(#\9) {
385
- position: relative;
386
- padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-s-hv8c1d, 12px);
387
- }
388
- .awsui_header-cell-sortable_c6tup_1yvtt_351 > .awsui_header-cell-content_c6tup_1yvtt_384:not(#\9) {
389
- padding-right: calc(var(--space-xl-a39hup, 24px) + var(--space-xxs-ynfts5, 4px));
390
- }
391
- .awsui_header-cell-content_c6tup_1yvtt_384:not(#\9):focus {
392
- outline: none;
393
- text-decoration: none;
394
- }
395
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_c6tup_1yvtt_384:not(#\9):focus {
396
- position: relative;
397
- }
398
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_c6tup_1yvtt_384:not(#\9):focus {
399
- outline: 2px dotted transparent;
400
- outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
401
- }
402
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_c6tup_1yvtt_384:not(#\9):focus::before {
403
- content: " ";
404
- display: block;
405
- position: absolute;
406
- left: calc(-1 * var(--space-table-header-focus-outline-gutter-rbx7m7, 0px));
407
- top: calc(-1 * var(--space-table-header-focus-outline-gutter-rbx7m7, 0px));
408
- width: calc(100% + 2 * var(--space-table-header-focus-outline-gutter-rbx7m7, 0px));
409
- height: calc(100% + 2 * var(--space-table-header-focus-outline-gutter-rbx7m7, 0px));
410
- border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
411
- box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
412
- }
413
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_c6tup_1yvtt_384.awsui_header-cell-fake-focus_c6tup_1yvtt_413:not(#\9) {
414
- position: relative;
415
- }
416
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_c6tup_1yvtt_384.awsui_header-cell-fake-focus_c6tup_1yvtt_413:not(#\9) {
417
- outline: 2px dotted transparent;
418
- outline-offset: calc(var(--space-table-header-focus-outline-gutter-rbx7m7, 0px) - 1px);
419
- }
420
- body[data-awsui-focus-visible=true] .awsui_header-cell-content_c6tup_1yvtt_384.awsui_header-cell-fake-focus_c6tup_1yvtt_413:not(#\9)::before {
421
- content: " ";
422
- display: block;
423
- position: absolute;
424
- left: calc(-1 * var(--space-table-header-focus-outline-gutter-rbx7m7, 0px));
425
- top: calc(-1 * var(--space-table-header-focus-outline-gutter-rbx7m7, 0px));
426
- width: calc(100% + 2 * var(--space-table-header-focus-outline-gutter-rbx7m7, 0px));
427
- height: calc(100% + 2 * var(--space-table-header-focus-outline-gutter-rbx7m7, 0px));
428
- border-radius: var(--border-radius-control-default-focus-ring-7661kz, 4px);
429
- box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
430
- }
431
- .awsui_header-cell-disabled_c6tup_1yvtt_431.awsui_header-cell-sorted_c6tup_1yvtt_431 > .awsui_header-cell-content_c6tup_1yvtt_384 > .awsui_sorting-icon_c6tup_1yvtt_370:not(#\9) {
432
- color: var(--color-text-interactive-disabled-3pbb07, #9ba7b6);
433
- }
434
-
435
- .awsui_header-cell-sortable_c6tup_1yvtt_351:not(#\9):not(.awsui_header-cell-disabled_c6tup_1yvtt_431) > .awsui_header-cell-content_c6tup_1yvtt_384 {
436
- cursor: pointer;
437
- }
438
- .awsui_header-cell-sortable_c6tup_1yvtt_351:not(#\9):not(.awsui_header-cell-disabled_c6tup_1yvtt_431) > .awsui_header-cell-content_c6tup_1yvtt_384:hover, .awsui_header-cell-sortable_c6tup_1yvtt_351:not(#\9):not(.awsui_header-cell-disabled_c6tup_1yvtt_431).awsui_header-cell-sorted_c6tup_1yvtt_431 > .awsui_header-cell-content_c6tup_1yvtt_384 {
439
- color: var(--color-text-interactive-active-vol84d, #000716);
440
- }
441
- .awsui_header-cell-sortable_c6tup_1yvtt_351:not(#\9):not(.awsui_header-cell-disabled_c6tup_1yvtt_431) > .awsui_header-cell-content_c6tup_1yvtt_384:hover > .awsui_sorting-icon_c6tup_1yvtt_370, .awsui_header-cell-sortable_c6tup_1yvtt_351:not(#\9):not(.awsui_header-cell-disabled_c6tup_1yvtt_431).awsui_header-cell-sorted_c6tup_1yvtt_431 > .awsui_header-cell-content_c6tup_1yvtt_384 > .awsui_sorting-icon_c6tup_1yvtt_370 {
442
- color: var(--color-text-interactive-active-vol84d, #000716);
443
- }
444
-
445
- .awsui_header-cell-text_c6tup_1yvtt_445:not(#\9) {
446
- line-height: var(--font-heading-xs-line-height-5x131j, 18px);
447
- padding-top: calc(var(--space-xxxs-k2w98v, 2px) / 2);
448
- padding-bottom: calc(var(--space-xxxs-k2w98v, 2px) / 2);
449
- }
450
- .awsui_header-cell-text_c6tup_1yvtt_445:not(#\9):not(.awsui_header-cell-text-wrap_c6tup_1yvtt_450) {
451
- white-space: nowrap;
452
- overflow: hidden;
453
- text-overflow: ellipsis;
454
- }
455
-
456
- .awsui_header-cell-ascending_c6tup_1yvtt_456:not(#\9),
457
- .awsui_header-cell-descending_c6tup_1yvtt_457:not(#\9) {
458
- /* used in test-utils */
459
- }
460
-
461
- /*
462
- In Visual Refresh the first cell in the header should align
463
- with the left edge of the table as closely as possible. If the
464
- last header cell is sortable the sort icon should align with the
465
- settings icon in the pagination slot.
466
- */
467
- .awsui_header-cell_c6tup_1yvtt_330:not(#\9):not(.awsui_is-visual-refresh_c6tup_1yvtt_114):first-child {
468
- padding-left: var(--space-xs-rsr2qu, 8px);
469
- }
470
-
471
- .awsui_header-cell_c6tup_1yvtt_330.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9) {
472
- /*
473
- Striped rows requires additional left padding because the
474
- shaded background makes the child content appear too close
475
- to the table edge.
476
- */
477
- }
478
- .awsui_header-cell_c6tup_1yvtt_330.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):first-child:not(.awsui_has-striped-rows_c6tup_1yvtt_126) {
479
- padding-left: var(--space-xxxs-k2w98v, 2px);
480
- }
481
- .awsui_header-cell_c6tup_1yvtt_330.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):first-child.awsui_has-striped-rows_c6tup_1yvtt_126 {
482
- padding-left: var(--space-xxs-ynfts5, 4px);
483
- }
484
- .awsui_header-cell_c6tup_1yvtt_330.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):first-child > .awsui_header-cell-content_c6tup_1yvtt_384 {
485
- padding-left: 0;
486
- }
487
- .awsui_header-cell_c6tup_1yvtt_330.awsui_is-visual-refresh_c6tup_1yvtt_114:not(#\9):last-child.awsui_header-cell-sortable_c6tup_1yvtt_351 {
488
- padding-right: var(--space-xxxs-k2w98v, 2px);
489
328
  }
@@ -2,45 +2,28 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "body-cell": "awsui_body-cell_c6tup_1yvtt_93",
6
- "body-cell-wrap": "awsui_body-cell-wrap_c6tup_1yvtt_102",
7
- "is-visual-refresh": "awsui_is-visual-refresh_c6tup_1yvtt_114",
8
- "has-striped-rows": "awsui_has-striped-rows_c6tup_1yvtt_126",
9
- "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_1yvtt_129",
10
- "body-cell-editable": "awsui_body-cell-editable_c6tup_1yvtt_129",
11
- "has-selection": "awsui_has-selection_c6tup_1yvtt_135",
12
- "body-cell-first-row": "awsui_body-cell-first-row_c6tup_1yvtt_141",
13
- "body-cell-last-row": "awsui_body-cell-last-row_c6tup_1yvtt_144",
14
- "body-cell-selected": "awsui_body-cell-selected_c6tup_1yvtt_144",
15
- "has-footer": "awsui_has-footer_c6tup_1yvtt_144",
16
- "body-cell-shaded": "awsui_body-cell-shaded_c6tup_1yvtt_154",
17
- "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_1yvtt_176",
18
- "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_1yvtt_180",
19
- "body-cell-success": "awsui_body-cell-success_c6tup_1yvtt_204",
20
- "body-cell-editor": "awsui_body-cell-editor_c6tup_1yvtt_204",
21
- "body-cell-success-form": "awsui_body-cell-success-form_c6tup_1yvtt_226",
22
- "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_1yvtt_226",
23
- "body-cell-success-row": "awsui_body-cell-success-row_c6tup_1yvtt_235",
24
- "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_1yvtt_235",
25
- "body-cell-success-controls": "awsui_body-cell-success-controls_c6tup_1yvtt_245",
26
- "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_1yvtt_245",
27
- "body-cell-has-success": "awsui_body-cell-has-success_c6tup_1yvtt_258",
28
- "header-cell": "awsui_header-cell_c6tup_1yvtt_330",
29
- "header-cell-sticky": "awsui_header-cell-sticky_c6tup_1yvtt_342",
30
- "header-cell-stuck": "awsui_header-cell-stuck_c6tup_1yvtt_345",
31
- "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_c6tup_1yvtt_345",
32
- "header-cell-hidden": "awsui_header-cell-hidden_c6tup_1yvtt_348",
33
- "header-cell-sortable": "awsui_header-cell-sortable_c6tup_1yvtt_351",
34
- "header-cell-resizable": "awsui_header-cell-resizable_c6tup_1yvtt_366",
35
- "sorting-icon": "awsui_sorting-icon_c6tup_1yvtt_370",
36
- "edit-icon": "awsui_edit-icon_c6tup_1yvtt_378",
37
- "header-cell-content": "awsui_header-cell-content_c6tup_1yvtt_384",
38
- "header-cell-fake-focus": "awsui_header-cell-fake-focus_c6tup_1yvtt_413",
39
- "header-cell-disabled": "awsui_header-cell-disabled_c6tup_1yvtt_431",
40
- "header-cell-sorted": "awsui_header-cell-sorted_c6tup_1yvtt_431",
41
- "header-cell-text": "awsui_header-cell-text_c6tup_1yvtt_445",
42
- "header-cell-text-wrap": "awsui_header-cell-text-wrap_c6tup_1yvtt_450",
43
- "header-cell-ascending": "awsui_header-cell-ascending_c6tup_1yvtt_456",
44
- "header-cell-descending": "awsui_header-cell-descending_c6tup_1yvtt_457"
5
+ "body-cell": "awsui_body-cell_c6tup_iy9jn_93",
6
+ "body-cell-wrap": "awsui_body-cell-wrap_c6tup_iy9jn_102",
7
+ "is-visual-refresh": "awsui_is-visual-refresh_c6tup_iy9jn_114",
8
+ "has-striped-rows": "awsui_has-striped-rows_c6tup_iy9jn_126",
9
+ "body-cell-edit-active": "awsui_body-cell-edit-active_c6tup_iy9jn_129",
10
+ "body-cell-editable": "awsui_body-cell-editable_c6tup_iy9jn_129",
11
+ "has-selection": "awsui_has-selection_c6tup_iy9jn_135",
12
+ "body-cell-first-row": "awsui_body-cell-first-row_c6tup_iy9jn_141",
13
+ "body-cell-last-row": "awsui_body-cell-last-row_c6tup_iy9jn_144",
14
+ "body-cell-selected": "awsui_body-cell-selected_c6tup_iy9jn_144",
15
+ "has-footer": "awsui_has-footer_c6tup_iy9jn_144",
16
+ "body-cell-shaded": "awsui_body-cell-shaded_c6tup_iy9jn_154",
17
+ "body-cell-next-selected": "awsui_body-cell-next-selected_c6tup_iy9jn_176",
18
+ "body-cell-prev-selected": "awsui_body-cell-prev-selected_c6tup_iy9jn_180",
19
+ "body-cell-success": "awsui_body-cell-success_c6tup_iy9jn_204",
20
+ "body-cell-editor": "awsui_body-cell-editor_c6tup_iy9jn_204",
21
+ "body-cell-success-form": "awsui_body-cell-success-form_c6tup_iy9jn_226",
22
+ "body-cell-editor-form": "awsui_body-cell-editor-form_c6tup_iy9jn_226",
23
+ "body-cell-success-row": "awsui_body-cell-success-row_c6tup_iy9jn_235",
24
+ "body-cell-editor-row": "awsui_body-cell-editor-row_c6tup_iy9jn_235",
25
+ "body-cell-success-controls": "awsui_body-cell-success-controls_c6tup_iy9jn_245",
26
+ "body-cell-editor-controls": "awsui_body-cell-editor-controls_c6tup_iy9jn_245",
27
+ "body-cell-has-success": "awsui_body-cell-has-success_c6tup_iy9jn_258"
45
28
  };
46
29
 
@@ -5,7 +5,7 @@ import React from 'react';
5
5
  import InternalIcon from '../../icon/internal';
6
6
  import { KeyCode } from '../../internal/keycode';
7
7
  import { getAriaSort, getSortingIconName, getSortingStatus, isSorted } from './utils';
8
- import styles from '../body-cell/styles.css.js';
8
+ import styles from './styles.css.js';
9
9
  import { Resizer } from '../resizer';
10
10
  import { useUniqueId } from '../../internal/hooks/use-unique-id';
11
11
  export function TableHeaderCell({ className, style, tabIndex, column, activeSortingColumn, sortingDescending, sortingDisabled, wrapLines, focusedComponent, onFocusedComponentChange, hidden, onClick, colIndex, updateColumn, resizableColumns, onResizeFinish, isEditable, }) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["table/header-cell/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACtF,OAAO,MAAM,MAAM,4BAA4B,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AA0BjE,MAAM,UAAU,eAAe,CAAW,EACxC,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,wBAAwB,EACxB,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,UAAU,GACqB;;IAC/B,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,iBAAiB,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;IACrE,MAAM,MAAM,GAAG,CAAC,CAAC,mBAAmB,IAAI,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC9E,MA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AAC,KAAK,gBAAa,MAAA,MAAM,CAAC,UAAU,0CAAE,iBAAiB;oBAC/F,oBAAC,YAAY,IAAC,IAAI,EAAC,MAAM,GAAG,CACvB,CACR,CAAC,CAAC,CAAC,IAAI,CACJ;YACL,aAAa,IAAI,CAChB,8BAAM,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC;gBACrC,oBAAC,YAAY,IAAC,IAAI,EAAE,kBAAkB,CAAC,aAAa,CAAC,GAAI,CACpD,CACR,CACG;QACL,gBAAgB,IAAI,CACnB;YACE,oBAAC,OAAO,IACN,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,CAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,MAAK,SAAS,IAAI,gBAAgB,CAAC,GAAG,KAAK,QAAQ,EACxF,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACxD,QAAQ,EAAE,cAAc,EACxB,cAAc,EAAE,QAAQ,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,EAC7E,MAAM,EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,IAAI,CAAC,EAC9C,QAAQ,EAAE,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,GAC3F,CACD,CACJ,CACE,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport InternalIcon from '../../icon/internal';\nimport { KeyCode } from '../../internal/keycode';\nimport { TableProps } from '../interfaces';\nimport { getAriaSort, getSortingIconName, getSortingStatus, isSorted } from './utils';\nimport styles from '../body-cell/styles.css.js';\nimport { Resizer } from '../resizer';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport { InteractiveComponent } from '../thead';\n\ninterface TableHeaderCellProps<ItemType> {\n className?: string;\n style?: React.CSSProperties;\n tabIndex: number;\n column: TableProps.ColumnDefinition<ItemType>;\n activeSortingColumn?: TableProps.SortingColumn<ItemType>;\n sortingDescending?: boolean;\n sortingDisabled?: boolean;\n wrapLines?: boolean;\n hidden?: boolean;\n onClick(detail: TableProps.SortingState<any>): void;\n onResizeFinish: () => void;\n colIndex: number;\n updateColumn: (colIndex: number, newWidth: number) => void;\n onFocus?: () => void;\n onBlur?: () => void;\n resizableColumns?: boolean;\n isEditable?: boolean;\n\n focusedComponent?: InteractiveComponent | null;\n onFocusedComponentChange?: (element: InteractiveComponent | null) => void;\n}\n\nexport function TableHeaderCell<ItemType>({\n className,\n style,\n tabIndex,\n column,\n activeSortingColumn,\n sortingDescending,\n sortingDisabled,\n wrapLines,\n focusedComponent,\n onFocusedComponentChange,\n hidden,\n onClick,\n colIndex,\n updateColumn,\n resizableColumns,\n onResizeFinish,\n isEditable,\n}: TableHeaderCellProps<ItemType>) {\n const sortable = !!column.sortingComparator || !!column.sortingField;\n const sorted = !!activeSortingColumn && isSorted(column, activeSortingColumn);\n const sortingStatus = getSortingStatus(sortable, sorted, !!sortingDescending, !!sortingDisabled);\n const handleClick = () =>\n onClick({\n sortingColumn: column,\n isDescending: sorted ? !sortingDescending : false,\n });\n\n // Elements with role=\"button\" do not have the default behavior of <button>, where pressing\n // Enter or Space will trigger a click event. Therefore we need to add this ourselves.\n // The native <button> element cannot be used due to a misaligned implementation in Firefox:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=843003\n const handleKeyPress = ({ nativeEvent: e }: React.KeyboardEvent) => {\n if (e.keyCode === KeyCode.enter || e.keyCode === KeyCode.space) {\n e.preventDefault();\n handleClick();\n }\n };\n\n const headerId = useUniqueId('table-header-');\n\n return (\n <th\n className={clsx(className, {\n [styles['header-cell-resizable']]: !!resizableColumns,\n [styles['header-cell-sortable']]: sortingStatus,\n [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',\n [styles['header-cell-disabled']]: sortingDisabled,\n [styles['header-cell-ascending']]: sortingStatus === 'ascending',\n [styles['header-cell-descending']]: sortingStatus === 'descending',\n [styles['header-cell-hidden']]: hidden,\n })}\n aria-sort={sortingStatus && getAriaSort(sortingStatus)}\n style={style}\n scope=\"col\"\n >\n <div\n className={clsx(styles['header-cell-content'], {\n [styles['header-cell-fake-focus']]: focusedComponent?.type === 'column' && focusedComponent.col === colIndex,\n })}\n aria-label={\n column.ariaLabel\n ? column.ariaLabel({\n sorted: sorted,\n descending: sorted && !!sortingDescending,\n disabled: !!sortingDisabled,\n })\n : undefined\n }\n {...(sortingStatus && !sortingDisabled\n ? {\n onKeyPress: handleKeyPress,\n tabIndex: tabIndex,\n role: 'button',\n onClick: handleClick,\n onFocus: () => onFocusedComponentChange?.({ type: 'column', col: colIndex }),\n onBlur: () => onFocusedComponentChange?.(null),\n }\n : {})}\n >\n <div className={clsx(styles['header-cell-text'], wrapLines && styles['header-cell-text-wrap'])} id={headerId}>\n {column.header}\n {isEditable ? (\n <span className={styles['edit-icon']} role=\"img\" aria-label={column.editConfig?.editIconAriaLabel}>\n <InternalIcon name=\"edit\" />\n </span>\n ) : null}\n </div>\n {sortingStatus && (\n <span className={styles['sorting-icon']}>\n <InternalIcon name={getSortingIconName(sortingStatus)} />\n </span>\n )}\n </div>\n {resizableColumns && (\n <>\n <Resizer\n tabIndex={tabIndex}\n showFocusRing={focusedComponent?.type === 'resizer' && focusedComponent.col === colIndex}\n onDragMove={newWidth => updateColumn(colIndex, newWidth)}\n onFinish={onResizeFinish}\n ariaLabelledby={headerId}\n onFocus={() => onFocusedComponentChange?.({ type: 'resizer', col: colIndex })}\n onBlur={() => onFocusedComponentChange?.(null)}\n minWidth={typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth}\n />\n </>\n )}\n </th>\n );\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["table/header-cell/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEjD,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACtF,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AA0BjE,MAAM,UAAU,eAAe,CAAW,EACxC,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,gBAAgB,EAChB,wBAAwB,EACxB,MAAM,EACN,OAAO,EACP,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,UAAU,GACqB;;IAC/B,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,CAAC,iBAAiB,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC;IACrE,MAAM,MAAM,GAAG,CAAC,CAAC,mBAAmB,IAAI,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;IAC9E,MAAM,aAAa,GAAG,gBAAgB,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,iBAAiB,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC;IACjG,MAAM,WAAW,GAAG,GAAG,EAAE,CACvB,OAAO,CAAC;QACN,aAAa,EAAE,M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S,EAAE,MAAM,CAAC,cAAc,CAAC;gBACrC,oBAAC,YAAY,IAAC,IAAI,EAAE,kBAAkB,CAAC,aAAa,CAAC,GAAI,CACpD,CACR,CACG;QACL,gBAAgB,IAAI,CACnB;YACE,oBAAC,OAAO,IACN,QAAQ,EAAE,QAAQ,EAClB,aAAa,EAAE,CAAA,gBAAgB,aAAhB,gBAAgB,uBAAhB,gBAAgB,CAAE,IAAI,MAAK,SAAS,IAAI,gBAAgB,CAAC,GAAG,KAAK,QAAQ,EACxF,UAAU,EAAE,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,EACxD,QAAQ,EAAE,cAAc,EACxB,cAAc,EAAE,QAAQ,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,EAC7E,MAAM,EAAE,GAAG,EAAE,CAAC,wBAAwB,aAAxB,wBAAwB,uBAAxB,wBAAwB,CAAG,IAAI,CAAC,EAC9C,QAAQ,EAAE,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,GAC3F,CACD,CACJ,CACE,CACN,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React from 'react';\nimport InternalIcon from '../../icon/internal';\nimport { KeyCode } from '../../internal/keycode';\nimport { TableProps } from '../interfaces';\nimport { getAriaSort, getSortingIconName, getSortingStatus, isSorted } from './utils';\nimport styles from './styles.css.js';\nimport { Resizer } from '../resizer';\nimport { useUniqueId } from '../../internal/hooks/use-unique-id';\nimport { InteractiveComponent } from '../thead';\n\ninterface TableHeaderCellProps<ItemType> {\n className?: string;\n style?: React.CSSProperties;\n tabIndex: number;\n column: TableProps.ColumnDefinition<ItemType>;\n activeSortingColumn?: TableProps.SortingColumn<ItemType>;\n sortingDescending?: boolean;\n sortingDisabled?: boolean;\n wrapLines?: boolean;\n hidden?: boolean;\n onClick(detail: TableProps.SortingState<any>): void;\n onResizeFinish: () => void;\n colIndex: number;\n updateColumn: (colIndex: number, newWidth: number) => void;\n onFocus?: () => void;\n onBlur?: () => void;\n resizableColumns?: boolean;\n isEditable?: boolean;\n\n focusedComponent?: InteractiveComponent | null;\n onFocusedComponentChange?: (element: InteractiveComponent | null) => void;\n}\n\nexport function TableHeaderCell<ItemType>({\n className,\n style,\n tabIndex,\n column,\n activeSortingColumn,\n sortingDescending,\n sortingDisabled,\n wrapLines,\n focusedComponent,\n onFocusedComponentChange,\n hidden,\n onClick,\n colIndex,\n updateColumn,\n resizableColumns,\n onResizeFinish,\n isEditable,\n}: TableHeaderCellProps<ItemType>) {\n const sortable = !!column.sortingComparator || !!column.sortingField;\n const sorted = !!activeSortingColumn && isSorted(column, activeSortingColumn);\n const sortingStatus = getSortingStatus(sortable, sorted, !!sortingDescending, !!sortingDisabled);\n const handleClick = () =>\n onClick({\n sortingColumn: column,\n isDescending: sorted ? !sortingDescending : false,\n });\n\n // Elements with role=\"button\" do not have the default behavior of <button>, where pressing\n // Enter or Space will trigger a click event. Therefore we need to add this ourselves.\n // The native <button> element cannot be used due to a misaligned implementation in Firefox:\n // https://bugzilla.mozilla.org/show_bug.cgi?id=843003\n const handleKeyPress = ({ nativeEvent: e }: React.KeyboardEvent) => {\n if (e.keyCode === KeyCode.enter || e.keyCode === KeyCode.space) {\n e.preventDefault();\n handleClick();\n }\n };\n\n const headerId = useUniqueId('table-header-');\n\n return (\n <th\n className={clsx(className, {\n [styles['header-cell-resizable']]: !!resizableColumns,\n [styles['header-cell-sortable']]: sortingStatus,\n [styles['header-cell-sorted']]: sortingStatus === 'ascending' || sortingStatus === 'descending',\n [styles['header-cell-disabled']]: sortingDisabled,\n [styles['header-cell-ascending']]: sortingStatus === 'ascending',\n [styles['header-cell-descending']]: sortingStatus === 'descending',\n [styles['header-cell-hidden']]: hidden,\n })}\n aria-sort={sortingStatus && getAriaSort(sortingStatus)}\n style={style}\n scope=\"col\"\n >\n <div\n className={clsx(styles['header-cell-content'], {\n [styles['header-cell-fake-focus']]: focusedComponent?.type === 'column' && focusedComponent.col === colIndex,\n })}\n aria-label={\n column.ariaLabel\n ? column.ariaLabel({\n sorted: sorted,\n descending: sorted && !!sortingDescending,\n disabled: !!sortingDisabled,\n })\n : undefined\n }\n {...(sortingStatus && !sortingDisabled\n ? {\n onKeyPress: handleKeyPress,\n tabIndex: tabIndex,\n role: 'button',\n onClick: handleClick,\n onFocus: () => onFocusedComponentChange?.({ type: 'column', col: colIndex }),\n onBlur: () => onFocusedComponentChange?.(null),\n }\n : {})}\n >\n <div className={clsx(styles['header-cell-text'], wrapLines && styles['header-cell-text-wrap'])} id={headerId}>\n {column.header}\n {isEditable ? (\n <span className={styles['edit-icon']} role=\"img\" aria-label={column.editConfig?.editIconAriaLabel}>\n <InternalIcon name=\"edit\" />\n </span>\n ) : null}\n </div>\n {sortingStatus && (\n <span className={styles['sorting-icon']}>\n <InternalIcon name={getSortingIconName(sortingStatus)} />\n </span>\n )}\n </div>\n {resizableColumns && (\n <>\n <Resizer\n tabIndex={tabIndex}\n showFocusRing={focusedComponent?.type === 'resizer' && focusedComponent.col === colIndex}\n onDragMove={newWidth => updateColumn(colIndex, newWidth)}\n onFinish={onResizeFinish}\n ariaLabelledby={headerId}\n onFocus={() => onFocusedComponentChange?.({ type: 'resizer', col: colIndex })}\n onBlur={() => onFocusedComponentChange?.(null)}\n minWidth={typeof column.minWidth === 'string' ? parseInt(column.minWidth) : column.minWidth}\n />\n </>\n )}\n </th>\n );\n}\n"]}
@@ -0,0 +1,24 @@
1
+
2
+ import './styles.scoped.css';
3
+ export default {
4
+ "header-cell": "awsui_header-cell_1spae_f15ng_93",
5
+ "header-cell-sticky": "awsui_header-cell-sticky_1spae_f15ng_105",
6
+ "header-cell-stuck": "awsui_header-cell-stuck_1spae_f15ng_108",
7
+ "header-cell-variant-full-page": "awsui_header-cell-variant-full-page_1spae_f15ng_108",
8
+ "header-cell-hidden": "awsui_header-cell-hidden_1spae_f15ng_111",
9
+ "header-cell-sortable": "awsui_header-cell-sortable_1spae_f15ng_114",
10
+ "header-cell-resizable": "awsui_header-cell-resizable_1spae_f15ng_129",
11
+ "sorting-icon": "awsui_sorting-icon_1spae_f15ng_133",
12
+ "edit-icon": "awsui_edit-icon_1spae_f15ng_141",
13
+ "header-cell-content": "awsui_header-cell-content_1spae_f15ng_147",
14
+ "header-cell-fake-focus": "awsui_header-cell-fake-focus_1spae_f15ng_176",
15
+ "header-cell-disabled": "awsui_header-cell-disabled_1spae_f15ng_194",
16
+ "header-cell-sorted": "awsui_header-cell-sorted_1spae_f15ng_194",
17
+ "header-cell-text": "awsui_header-cell-text_1spae_f15ng_208",
18
+ "header-cell-text-wrap": "awsui_header-cell-text-wrap_1spae_f15ng_213",
19
+ "header-cell-ascending": "awsui_header-cell-ascending_1spae_f15ng_219",
20
+ "header-cell-descending": "awsui_header-cell-descending_1spae_f15ng_220",
21
+ "is-visual-refresh": "awsui_is-visual-refresh_1spae_f15ng_230",
22
+ "has-striped-rows": "awsui_has-striped-rows_1spae_f15ng_241"
23
+ };
24
+