@cloudscape-design/components-themeable 3.0.589 → 3.0.591
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/container/styles.scss +2 -0
- package/lib/internal/scss/table/body-cell/styles.scss +32 -16
- package/lib/internal/template/area-chart/model/use-chart-model.js +1 -1
- package/lib/internal/template/area-chart/model/use-chart-model.js.map +1 -1
- package/lib/internal/template/container/styles.css.js +30 -30
- package/lib/internal/template/container/styles.scoped.css +56 -54
- package/lib/internal/template/container/styles.selectors.js +30 -30
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/internal/hooks/use-virtual/index.d.ts +1 -1
- package/lib/internal/template/internal/hooks/use-virtual/index.d.ts.map +1 -1
- package/lib/internal/template/internal/hooks/use-virtual/index.js +1 -1
- package/lib/internal/template/internal/hooks/use-virtual/index.js.map +1 -1
- package/lib/internal/template/internal/vendor/react-virtual.js +529 -0
- package/lib/internal/template/line-chart/index.d.ts.map +1 -1
- package/lib/internal/template/line-chart/index.js +11 -1
- package/lib/internal/template/line-chart/index.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.js +1 -1
- package/lib/internal/template/mixed-line-bar-chart/hooks/use-mouse-hover.js.map +1 -1
- package/lib/internal/template/package.json +0 -1
- package/lib/internal/template/select/utils/render-options.d.ts +1 -1
- package/lib/internal/template/select/utils/render-options.d.ts.map +1 -1
- package/lib/internal/template/select/utils/render-options.js.map +1 -1
- package/lib/internal/template/table/body-cell/disabled-inline-editor.d.ts +1 -1
- package/lib/internal/template/table/body-cell/disabled-inline-editor.d.ts.map +1 -1
- package/lib/internal/template/table/body-cell/disabled-inline-editor.js +7 -6
- package/lib/internal/template/table/body-cell/disabled-inline-editor.js.map +1 -1
- package/lib/internal/template/table/body-cell/index.d.ts +1 -0
- package/lib/internal/template/table/body-cell/index.d.ts.map +1 -1
- package/lib/internal/template/table/body-cell/index.js +5 -4
- package/lib/internal/template/table/body-cell/index.js.map +1 -1
- package/lib/internal/template/table/body-cell/styles.css.js +29 -30
- package/lib/internal/template/table/body-cell/styles.scoped.css +113 -84
- package/lib/internal/template/table/body-cell/styles.selectors.js +29 -30
- package/package.json +1 -1
|
@@ -100,7 +100,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
100
100
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
101
101
|
SPDX-License-Identifier: Apache-2.0
|
|
102
102
|
*/
|
|
103
|
-
.
|
|
103
|
+
.awsui_root_14iqq_1l2x7_103:not(#\9) {
|
|
104
104
|
border-collapse: separate;
|
|
105
105
|
border-spacing: 0;
|
|
106
106
|
box-sizing: border-box;
|
|
@@ -137,15 +137,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
137
137
|
word-wrap: break-word;
|
|
138
138
|
position: relative;
|
|
139
139
|
}
|
|
140
|
-
.
|
|
140
|
+
.awsui_root_14iqq_1l2x7_103.awsui_fit-height_14iqq_1l2x7_139:not(#\9) {
|
|
141
141
|
display: flex;
|
|
142
142
|
flex-direction: column;
|
|
143
143
|
block-size: 100%;
|
|
144
144
|
}
|
|
145
|
-
.
|
|
145
|
+
.awsui_root_14iqq_1l2x7_103.awsui_fit-height_14iqq_1l2x7_139.awsui_with-side-media_14iqq_1l2x7_144:not(#\9) {
|
|
146
146
|
flex-direction: row;
|
|
147
147
|
}
|
|
148
|
-
.
|
|
148
|
+
.awsui_root_14iqq_1l2x7_103.awsui_variant-default_14iqq_1l2x7_147:not(#\9), .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9) {
|
|
149
149
|
background-color: var(--color-background-container-content-il2pe5, #ffffff);
|
|
150
150
|
border-start-start-radius: var(--border-radius-container-jm6teg, 0px);
|
|
151
151
|
border-start-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
@@ -153,11 +153,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
153
153
|
border-end-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
154
154
|
box-sizing: border-box;
|
|
155
155
|
}
|
|
156
|
-
.
|
|
156
|
+
.awsui_root_14iqq_1l2x7_103.awsui_variant-default_14iqq_1l2x7_147.awsui_refresh_14iqq_1l2x7_155:not(#\9), .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147.awsui_refresh_14iqq_1l2x7_155:not(#\9) {
|
|
157
157
|
border-block: solid var(--border-divider-section-width-wl9k66, 1px) var(--color-border-divider-default-in8dkg, #eaeded);
|
|
158
158
|
border-inline: solid var(--border-divider-section-width-wl9k66, 1px) var(--color-border-divider-default-in8dkg, #eaeded);
|
|
159
159
|
}
|
|
160
|
-
.
|
|
160
|
+
.awsui_root_14iqq_1l2x7_103.awsui_variant-default_14iqq_1l2x7_147:not(#\9):not(.awsui_refresh_14iqq_1l2x7_155)::before, .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9):not(.awsui_refresh_14iqq_1l2x7_155)::before {
|
|
161
161
|
content: "";
|
|
162
162
|
position: absolute;
|
|
163
163
|
inset-inline-start: 0px;
|
|
@@ -175,7 +175,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
175
175
|
border-end-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
176
176
|
z-index: 1;
|
|
177
177
|
}
|
|
178
|
-
.
|
|
178
|
+
.awsui_root_14iqq_1l2x7_103.awsui_variant-default_14iqq_1l2x7_147:not(#\9):not(.awsui_refresh_14iqq_1l2x7_155)::after, .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9):not(.awsui_refresh_14iqq_1l2x7_155)::after {
|
|
179
179
|
content: "";
|
|
180
180
|
position: absolute;
|
|
181
181
|
inset-inline-start: 0px;
|
|
@@ -191,139 +191,141 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
191
191
|
border-end-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
192
192
|
box-shadow: var(--shadow-container-5104ec, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
|
|
193
193
|
}
|
|
194
|
-
.
|
|
194
|
+
.awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9):not(:last-child), .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9):not(:last-child)::before, .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9):not(:last-child)::after {
|
|
195
195
|
border-end-end-radius: 0;
|
|
196
196
|
border-end-start-radius: 0;
|
|
197
197
|
border-block-end-width: 0;
|
|
198
198
|
}
|
|
199
|
-
.
|
|
199
|
+
.awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147 + .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9), .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147 + .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9)::before, .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147 + .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9)::after {
|
|
200
200
|
border-start-start-radius: 0;
|
|
201
201
|
border-start-end-radius: 0;
|
|
202
202
|
}
|
|
203
|
-
.
|
|
203
|
+
.awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147 + .awsui_root_14iqq_1l2x7_103.awsui_variant-stacked_14iqq_1l2x7_147:not(#\9):not(.awsui_refresh_14iqq_1l2x7_155)::before {
|
|
204
204
|
border-block-start: var(--border-divider-section-width-wl9k66, 1px) solid var(--color-border-divider-default-in8dkg, #eaeded);
|
|
205
205
|
}
|
|
206
|
-
.
|
|
206
|
+
.awsui_root_14iqq_1l2x7_103.awsui_sticky-enabled_14iqq_1l2x7_205:not(#\9):not(.awsui_refresh_14iqq_1l2x7_155)::before {
|
|
207
207
|
inset-block-start: calc(-1 * var(--border-container-top-width-s1x6t0, 1px));
|
|
208
208
|
}
|
|
209
|
-
.
|
|
209
|
+
.awsui_root_14iqq_1l2x7_103.awsui_sticky-enabled_14iqq_1l2x7_205:not(#\9):not(.awsui_refresh_14iqq_1l2x7_155).awsui_variant-stacked_14iqq_1l2x7_147::before {
|
|
210
210
|
inset-block-start: calc(-1 * var(--border-divider-section-width-wl9k66, 1px));
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
.awsui_with-side-
|
|
213
|
+
.awsui_with-side-media_14iqq_1l2x7_144:not(#\9) {
|
|
214
214
|
display: flex;
|
|
215
215
|
flex-direction: row;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.awsui_with-top-
|
|
218
|
+
.awsui_with-top-media_14iqq_1l2x7_217:not(#\9) {
|
|
219
219
|
display: flex;
|
|
220
220
|
flex-direction: column;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
.awsui_content-
|
|
223
|
+
.awsui_content-wrapper_14iqq_1l2x7_222:not(#\9) {
|
|
224
224
|
display: flex;
|
|
225
225
|
flex-direction: column;
|
|
226
226
|
inline-size: 100%;
|
|
227
227
|
}
|
|
228
|
-
.awsui_content-wrapper-fit-
|
|
228
|
+
.awsui_content-wrapper-fit-height_14iqq_1l2x7_227:not(#\9) {
|
|
229
229
|
block-size: 100%;
|
|
230
230
|
overflow: hidden;
|
|
231
|
+
border-end-start-radius: var(--border-radius-container-jm6teg, 0px);
|
|
232
|
+
border-end-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
231
233
|
}
|
|
232
234
|
|
|
233
|
-
.
|
|
235
|
+
.awsui_media_14iqq_1l2x7_234:not(#\9) {
|
|
234
236
|
overflow: hidden;
|
|
235
237
|
flex-shrink: 0;
|
|
236
238
|
}
|
|
237
|
-
.
|
|
238
|
-
.
|
|
239
|
-
.
|
|
239
|
+
.awsui_media_14iqq_1l2x7_234 img:not(#\9),
|
|
240
|
+
.awsui_media_14iqq_1l2x7_234 video:not(#\9),
|
|
241
|
+
.awsui_media_14iqq_1l2x7_234 picture:not(#\9) {
|
|
240
242
|
inline-size: 100%;
|
|
241
243
|
block-size: 100%;
|
|
242
244
|
object-fit: cover;
|
|
243
245
|
object-position: center;
|
|
244
246
|
}
|
|
245
|
-
.
|
|
247
|
+
.awsui_media_14iqq_1l2x7_234 iframe:not(#\9) {
|
|
246
248
|
inline-size: 100%;
|
|
247
249
|
block-size: 100%;
|
|
248
250
|
border-block: 0;
|
|
249
251
|
border-inline: 0;
|
|
250
252
|
}
|
|
251
|
-
.awsui_media-
|
|
253
|
+
.awsui_media-top_14iqq_1l2x7_252:not(#\9) {
|
|
252
254
|
max-block-size: 66%;
|
|
253
255
|
border-start-start-radius: calc(var(--border-radius-container-jm6teg, 0px) - 1px);
|
|
254
256
|
border-start-end-radius: calc(var(--border-radius-container-jm6teg, 0px) - 1px);
|
|
255
257
|
}
|
|
256
|
-
.awsui_media-
|
|
258
|
+
.awsui_media-side_14iqq_1l2x7_257:not(#\9) {
|
|
257
259
|
max-inline-size: 66%;
|
|
258
260
|
border-start-start-radius: calc(var(--border-radius-container-jm6teg, 0px) - 1px);
|
|
259
261
|
border-end-start-radius: calc(var(--border-radius-container-jm6teg, 0px) - 1px);
|
|
260
262
|
}
|
|
261
263
|
|
|
262
|
-
.
|
|
264
|
+
.awsui_header_14iqq_1l2x7_263:not(#\9) {
|
|
263
265
|
background-color: var(--color-background-container-header-ni4jv3, #fafafa);
|
|
264
266
|
border-start-start-radius: var(--border-radius-container-jm6teg, 0px);
|
|
265
267
|
border-start-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
266
268
|
}
|
|
267
|
-
.
|
|
269
|
+
.awsui_header_14iqq_1l2x7_263.awsui_header-with-media_14iqq_1l2x7_268:not(#\9) {
|
|
268
270
|
background: none;
|
|
269
271
|
}
|
|
270
|
-
.
|
|
272
|
+
.awsui_header_14iqq_1l2x7_263.awsui_header-with-media_14iqq_1l2x7_268:not(#\9):not(:empty) {
|
|
271
273
|
border-block-end: none;
|
|
272
274
|
}
|
|
273
|
-
.awsui_header-sticky-
|
|
275
|
+
.awsui_header-sticky-disabled_14iqq_1l2x7_274:not(#\9) {
|
|
274
276
|
position: relative;
|
|
275
277
|
z-index: 1;
|
|
276
278
|
}
|
|
277
|
-
.awsui_header-sticky-
|
|
279
|
+
.awsui_header-sticky-enabled_14iqq_1l2x7_278:not(#\9) {
|
|
278
280
|
inset-block-start: 0;
|
|
279
281
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
280
282
|
position: sticky;
|
|
281
283
|
z-index: 800;
|
|
282
284
|
}
|
|
283
|
-
.awsui_header-
|
|
285
|
+
.awsui_header-stuck_14iqq_1l2x7_284:not(#\9) {
|
|
284
286
|
border-start-start-radius: 0;
|
|
285
287
|
border-start-end-radius: 0;
|
|
286
288
|
border-end-start-radius: 0;
|
|
287
289
|
border-end-end-radius: 0;
|
|
288
290
|
}
|
|
289
|
-
.awsui_header-
|
|
291
|
+
.awsui_header-stuck_14iqq_1l2x7_284:not(#\9)::before {
|
|
290
292
|
border-block: 0;
|
|
291
293
|
border-inline: 0;
|
|
292
294
|
}
|
|
293
|
-
.awsui_header-
|
|
295
|
+
.awsui_header-stuck_14iqq_1l2x7_284:not(#\9):not(.awsui_header-variant-cards_14iqq_1l2x7_294) {
|
|
294
296
|
box-shadow: var(--shadow-sticky-embedded-f9wivk, 0px 1px 4px -2px rgba(0, 28, 36, 0.5));
|
|
295
297
|
}
|
|
296
|
-
.awsui_header-dynamic-
|
|
298
|
+
.awsui_header-dynamic-height_14iqq_1l2x7_297.awsui_header-stuck_14iqq_1l2x7_284:not(#\9) {
|
|
297
299
|
margin-block-end: calc(var(--line-height-heading-xl-v9hsvt, 36px) - var(--line-height-heading-l-vog8w7, 22px));
|
|
298
300
|
}
|
|
299
|
-
.
|
|
301
|
+
.awsui_header_14iqq_1l2x7_263:not(#\9):not(:empty) {
|
|
300
302
|
border-block-end: var(--border-container-sticky-width-xo3q2l, 1px) solid var(--color-border-container-divider-gl15p9, #eaeded);
|
|
301
303
|
}
|
|
302
|
-
.
|
|
304
|
+
.awsui_header_14iqq_1l2x7_263.awsui_with-paddings_14iqq_1l2x7_303:not(#\9) {
|
|
303
305
|
padding-block-start: var(--space-container-header-top-bomjbu, 12px);
|
|
304
306
|
padding-block-end: var(--space-container-header-bottom-qqnwwz, 12px);
|
|
305
307
|
padding-inline: var(--space-container-horizontal-oebwqe, 20px);
|
|
306
308
|
}
|
|
307
|
-
.
|
|
309
|
+
.awsui_header_14iqq_1l2x7_263.awsui_with-paddings_14iqq_1l2x7_303.awsui_header-variant-cards_14iqq_1l2x7_294:not(#\9) {
|
|
308
310
|
padding-block: var(--space-container-header-top-bomjbu, 12px);
|
|
309
311
|
padding-inline: var(--space-container-horizontal-oebwqe, 20px);
|
|
310
312
|
}
|
|
311
|
-
.
|
|
313
|
+
.awsui_header_14iqq_1l2x7_263.awsui_with-hidden-content_14iqq_1l2x7_312:not(#\9) {
|
|
312
314
|
border-end-start-radius: var(--border-radius-container-jm6teg, 0px);
|
|
313
315
|
border-end-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
314
316
|
}
|
|
315
|
-
.awsui_header-variant-
|
|
317
|
+
.awsui_header-variant-cards_14iqq_1l2x7_294:not(#\9) {
|
|
316
318
|
border-start-start-radius: var(--border-radius-container-jm6teg, 0px);
|
|
317
319
|
border-start-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
318
320
|
border-end-start-radius: var(--border-radius-container-jm6teg, 0px);
|
|
319
321
|
border-end-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
320
322
|
box-sizing: border-box;
|
|
321
323
|
}
|
|
322
|
-
.awsui_header-variant-
|
|
324
|
+
.awsui_header-variant-cards_14iqq_1l2x7_294.awsui_refresh_14iqq_1l2x7_155:not(#\9) {
|
|
323
325
|
border-block: solid var(--border-divider-section-width-wl9k66, 1px) var(--color-border-divider-default-in8dkg, #eaeded);
|
|
324
326
|
border-inline: solid var(--border-divider-section-width-wl9k66, 1px) var(--color-border-divider-default-in8dkg, #eaeded);
|
|
325
327
|
}
|
|
326
|
-
.awsui_header-variant-
|
|
328
|
+
.awsui_header-variant-cards_14iqq_1l2x7_294:not(#\9):not(.awsui_refresh_14iqq_1l2x7_155)::before {
|
|
327
329
|
content: "";
|
|
328
330
|
position: absolute;
|
|
329
331
|
inset-inline-start: 0px;
|
|
@@ -341,7 +343,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
341
343
|
border-end-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
342
344
|
z-index: 1;
|
|
343
345
|
}
|
|
344
|
-
.awsui_header-variant-
|
|
346
|
+
.awsui_header-variant-cards_14iqq_1l2x7_294:not(#\9):not(.awsui_refresh_14iqq_1l2x7_155)::after {
|
|
345
347
|
content: "";
|
|
346
348
|
position: absolute;
|
|
347
349
|
inset-inline-start: 0px;
|
|
@@ -357,19 +359,19 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
357
359
|
border-end-end-radius: var(--border-radius-container-jm6teg, 0px);
|
|
358
360
|
box-shadow: var(--shadow-container-5104ec, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
|
|
359
361
|
}
|
|
360
|
-
.awsui_header-variant-
|
|
362
|
+
.awsui_header-variant-cards_14iqq_1l2x7_294:not(#\9):not(.awsui_header-sticky-enabled_14iqq_1l2x7_278) {
|
|
361
363
|
position: relative;
|
|
362
364
|
}
|
|
363
|
-
.awsui_header-variant-
|
|
365
|
+
.awsui_header-variant-cards_14iqq_1l2x7_294.awsui_header-stuck_14iqq_1l2x7_284:not(#\9)::after, .awsui_header-variant-cards_14iqq_1l2x7_294.awsui_header-stuck_14iqq_1l2x7_284:not(#\9)::before {
|
|
364
366
|
border-block: 0;
|
|
365
367
|
border-inline: 0;
|
|
366
368
|
border-start-start-radius: 0;
|
|
367
369
|
border-start-end-radius: 0;
|
|
368
370
|
}
|
|
369
|
-
.awsui_header-variant-full-
|
|
371
|
+
.awsui_header-variant-full-page_14iqq_1l2x7_370.awsui_header-stuck_14iqq_1l2x7_284:not(#\9) {
|
|
370
372
|
box-shadow: none;
|
|
371
373
|
}
|
|
372
|
-
.awsui_header-variant-full-
|
|
374
|
+
.awsui_header-variant-full-page_14iqq_1l2x7_370.awsui_header-stuck_14iqq_1l2x7_284:not(#\9)::before {
|
|
373
375
|
content: "";
|
|
374
376
|
position: absolute;
|
|
375
377
|
pointer-events: none;
|
|
@@ -379,14 +381,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
379
381
|
inset-block-start: 0;
|
|
380
382
|
border-block-end: solid var(--border-divider-section-width-wl9k66, 1px) var(--color-border-divider-default-in8dkg, #eaeded);
|
|
381
383
|
}
|
|
382
|
-
.awsui_header-variant-full-
|
|
384
|
+
.awsui_header-variant-full-page_14iqq_1l2x7_370.awsui_header-stuck_14iqq_1l2x7_284:not(#\9)::after {
|
|
383
385
|
content: "";
|
|
384
386
|
position: absolute;
|
|
385
387
|
inset: 0;
|
|
386
388
|
box-shadow: var(--shadow-sticky-hxu2pv, 0px 1px 4px -2px rgba(0, 28, 36, 0.5));
|
|
387
389
|
clip-path: polygon(-999% 100%, 999% 100%, 999% 999%, -999% 999%);
|
|
388
390
|
}
|
|
389
|
-
.awsui_header-variant-full-
|
|
391
|
+
.awsui_header-variant-full-page_14iqq_1l2x7_370.awsui_header-stuck_14iqq_1l2x7_284:not(#\9):not(.awsui_remove-high-contrast-header_14iqq_1l2x7_390)::before {
|
|
390
392
|
content: "";
|
|
391
393
|
border-block-end: none;
|
|
392
394
|
}
|
|
@@ -395,32 +397,32 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
395
397
|
The dynamic height dark header needs a background that will cover
|
|
396
398
|
the default white background of the container component.
|
|
397
399
|
*/
|
|
398
|
-
.awsui_dark-
|
|
400
|
+
.awsui_dark-header_14iqq_1l2x7_399:not(#\9) {
|
|
399
401
|
background-color: var(--color-background-layout-main-td853a, #f2f3f3);
|
|
400
402
|
color: var(--color-text-body-default-ffdwgg, #16191f);
|
|
401
403
|
}
|
|
402
404
|
|
|
403
|
-
.
|
|
405
|
+
.awsui_content_14iqq_1l2x7_222:not(#\9) {
|
|
404
406
|
flex: 1;
|
|
405
407
|
}
|
|
406
|
-
.awsui_content-fit-
|
|
408
|
+
.awsui_content-fit-height_14iqq_1l2x7_407:not(#\9) {
|
|
407
409
|
overflow: auto;
|
|
408
410
|
}
|
|
409
|
-
.
|
|
411
|
+
.awsui_content_14iqq_1l2x7_222.awsui_with-paddings_14iqq_1l2x7_303:not(#\9) {
|
|
410
412
|
padding-block: var(--space-scaled-l-08jb88, 20px);
|
|
411
413
|
padding-inline: var(--space-container-horizontal-oebwqe, 20px);
|
|
412
414
|
}
|
|
413
|
-
.
|
|
415
|
+
.awsui_header_14iqq_1l2x7_263 + .awsui_content_14iqq_1l2x7_222.awsui_with-paddings_14iqq_1l2x7_303:not(#\9) {
|
|
414
416
|
padding-block-start: var(--space-container-content-top-dkluz9, 16px);
|
|
415
417
|
}
|
|
416
|
-
.
|
|
418
|
+
.awsui_header_14iqq_1l2x7_263 + .awsui_content_14iqq_1l2x7_222.awsui_with-paddings_14iqq_1l2x7_303.awsui_content-with-media_14iqq_1l2x7_417:not(#\9) {
|
|
417
419
|
padding-block-start: 0;
|
|
418
420
|
}
|
|
419
421
|
|
|
420
|
-
.
|
|
422
|
+
.awsui_footer_14iqq_1l2x7_421.awsui_with-paddings_14iqq_1l2x7_303:not(#\9) {
|
|
421
423
|
padding-block: var(--space-scaled-s-9q8n2q, 12px);
|
|
422
424
|
padding-inline: var(--space-container-horizontal-oebwqe, 20px);
|
|
423
425
|
}
|
|
424
|
-
.
|
|
426
|
+
.awsui_footer_14iqq_1l2x7_421.awsui_with-divider_14iqq_1l2x7_425:not(#\9) {
|
|
425
427
|
border-block-start: var(--border-divider-section-width-wl9k66, 1px) solid var(--color-border-divider-default-in8dkg, #eaeded);
|
|
426
428
|
}
|
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"fit-height": "awsui_fit-
|
|
7
|
-
"with-side-media": "awsui_with-side-
|
|
8
|
-
"variant-default": "awsui_variant-
|
|
9
|
-
"variant-stacked": "awsui_variant-
|
|
10
|
-
"refresh": "
|
|
11
|
-
"sticky-enabled": "awsui_sticky-
|
|
12
|
-
"with-top-media": "awsui_with-top-
|
|
13
|
-
"content-wrapper": "awsui_content-
|
|
14
|
-
"content-wrapper-fit-height": "awsui_content-wrapper-fit-
|
|
15
|
-
"media": "
|
|
16
|
-
"media-top": "awsui_media-
|
|
17
|
-
"media-side": "awsui_media-
|
|
18
|
-
"header": "
|
|
19
|
-
"header-with-media": "awsui_header-with-
|
|
20
|
-
"header-sticky-disabled": "awsui_header-sticky-
|
|
21
|
-
"header-sticky-enabled": "awsui_header-sticky-
|
|
22
|
-
"header-stuck": "awsui_header-
|
|
23
|
-
"header-variant-cards": "awsui_header-variant-
|
|
24
|
-
"header-dynamic-height": "awsui_header-dynamic-
|
|
25
|
-
"with-paddings": "awsui_with-
|
|
26
|
-
"with-hidden-content": "awsui_with-hidden-
|
|
27
|
-
"header-variant-full-page": "awsui_header-variant-full-
|
|
28
|
-
"remove-high-contrast-header": "awsui_remove-high-contrast-
|
|
29
|
-
"dark-header": "awsui_dark-
|
|
30
|
-
"content": "
|
|
31
|
-
"content-fit-height": "awsui_content-fit-
|
|
32
|
-
"content-with-media": "awsui_content-with-
|
|
33
|
-
"footer": "
|
|
34
|
-
"with-divider": "awsui_with-
|
|
5
|
+
"root": "awsui_root_14iqq_1l2x7_103",
|
|
6
|
+
"fit-height": "awsui_fit-height_14iqq_1l2x7_139",
|
|
7
|
+
"with-side-media": "awsui_with-side-media_14iqq_1l2x7_144",
|
|
8
|
+
"variant-default": "awsui_variant-default_14iqq_1l2x7_147",
|
|
9
|
+
"variant-stacked": "awsui_variant-stacked_14iqq_1l2x7_147",
|
|
10
|
+
"refresh": "awsui_refresh_14iqq_1l2x7_155",
|
|
11
|
+
"sticky-enabled": "awsui_sticky-enabled_14iqq_1l2x7_205",
|
|
12
|
+
"with-top-media": "awsui_with-top-media_14iqq_1l2x7_217",
|
|
13
|
+
"content-wrapper": "awsui_content-wrapper_14iqq_1l2x7_222",
|
|
14
|
+
"content-wrapper-fit-height": "awsui_content-wrapper-fit-height_14iqq_1l2x7_227",
|
|
15
|
+
"media": "awsui_media_14iqq_1l2x7_234",
|
|
16
|
+
"media-top": "awsui_media-top_14iqq_1l2x7_252",
|
|
17
|
+
"media-side": "awsui_media-side_14iqq_1l2x7_257",
|
|
18
|
+
"header": "awsui_header_14iqq_1l2x7_263",
|
|
19
|
+
"header-with-media": "awsui_header-with-media_14iqq_1l2x7_268",
|
|
20
|
+
"header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_1l2x7_274",
|
|
21
|
+
"header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_1l2x7_278",
|
|
22
|
+
"header-stuck": "awsui_header-stuck_14iqq_1l2x7_284",
|
|
23
|
+
"header-variant-cards": "awsui_header-variant-cards_14iqq_1l2x7_294",
|
|
24
|
+
"header-dynamic-height": "awsui_header-dynamic-height_14iqq_1l2x7_297",
|
|
25
|
+
"with-paddings": "awsui_with-paddings_14iqq_1l2x7_303",
|
|
26
|
+
"with-hidden-content": "awsui_with-hidden-content_14iqq_1l2x7_312",
|
|
27
|
+
"header-variant-full-page": "awsui_header-variant-full-page_14iqq_1l2x7_370",
|
|
28
|
+
"remove-high-contrast-header": "awsui_remove-high-contrast-header_14iqq_1l2x7_390",
|
|
29
|
+
"dark-header": "awsui_dark-header_14iqq_1l2x7_399",
|
|
30
|
+
"content": "awsui_content_14iqq_1l2x7_222",
|
|
31
|
+
"content-fit-height": "awsui_content-fit-height_14iqq_1l2x7_407",
|
|
32
|
+
"content-with-media": "awsui_content-with-media_14iqq_1l2x7_417",
|
|
33
|
+
"footer": "awsui_footer_14iqq_1l2x7_421",
|
|
34
|
+
"with-divider": "awsui_with-divider_14iqq_1l2x7_425"
|
|
35
35
|
};
|
|
36
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-virtual/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAmC,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-virtual/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAmC,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAI1F,UAAU,eAAe,CAAC,IAAI;IAC5B,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;IACvB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,MAAM,CAAC;CAC5B;AAED,UAAU,cAAc;IACtB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,UAAU,CAAC,IAAI,SAAS,MAAM,EAAE,EAC9C,KAAK,EACL,SAAS,EACT,YAAY,GACb,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,cAAc,CAgCxC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { useEffect, useMemo, useRef } from 'react';
|
|
4
|
-
import { useVirtual as useVirtualDefault } from 'react-virtual';
|
|
4
|
+
import { useVirtual as useVirtualDefault } from '../../vendor/react-virtual';
|
|
5
5
|
const MAX_ITEM_MOUNTS = 100;
|
|
6
6
|
/**
|
|
7
7
|
* The useVirtual from react-virtual@2 might produce an infinite update loop caused by setting
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-virtual/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-virtual/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAc,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAe,MAAM,4BAA4B,CAAC;AAE1F,MAAM,eAAe,GAAG,GAAG,CAAC;AAc5B;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,UAAU,CAAsB,EAC9C,KAAK,EACL,SAAS,EACT,YAAY,GACU;IACtB,MAAM,cAAc,GAAG,iBAAiB,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;IAEvG,oEAAoE;IACpE,MAAM,aAAa,GAAG,MAAM,CAAC,IAAI,OAAO,EAAgB,CAAC,CAAC;IAE1D,yEAAyE;IACzE,MAAM,UAAU,GAAG,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACtF,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,CAAC,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;IACxC,CAAC,EAAE,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;IAEtC,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CACH,cAAc,CAAC,YAAY,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC,iCAC1C,WAAW,KACd,UAAU,EAAE,CAAC,IAAwB,EAAE,EAAE;;YACvC,MAAM,YAAY,GAAG,MAAA,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,mCAAI,CAAC,CAAC;YAC9E,IAAI,YAAY,GAAG,eAAe,EAAE;gBAClC,WAAW,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC7B,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,CAAC,CAAC,CAAC;aACvE;QACH,CAAC,IACD,CAAC,EACL,CAAC,KAAK,EAAE,cAAc,CAAC,YAAY,CAAC,CACrC,CAAC;IAEF,OAAO;QACL,YAAY;QACZ,SAAS,EAAE,cAAc,CAAC,SAAS;QACnC,aAAa,EAAE,cAAc,CAAC,aAAa;KAC5C,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useMemo, useRef } from 'react';\nimport { useVirtual as useVirtualDefault, VirtualItem } from '../../vendor/react-virtual';\n\nconst MAX_ITEM_MOUNTS = 100;\n\ninterface UseVirtualProps<Item> {\n items: readonly Item[];\n parentRef: React.RefObject<HTMLElement>;\n estimateSize: () => number;\n}\n\ninterface RowVirtualizer {\n virtualItems: VirtualItem[];\n totalSize: number;\n scrollToIndex: (index: number) => void;\n}\n\n/**\n * The useVirtual from react-virtual@2 might produce an infinite update loop caused by setting\n * measured item sizes in the render cycle (as part of the measureRef assignment):\n * The sum of all measured item sizes is returned as totalSize which is then set on the list container.\n * Enforcing new container height might result in an items size change e.g. when the content wraps.\n *\n * The infinite update cycle causes React \"Maximum update depth exceeded\" error and can be additionally confirmed\n * by logging the totalSize which should then bounce between two values.\n *\n * The number of item refs assignments is limited to MAX_ITEM_MOUNTS unless items or indices change.\n * That is based on the assumption the item height stays constant after its first render.\n */\nexport function useVirtual<Item extends object>({\n items,\n parentRef,\n estimateSize,\n}: UseVirtualProps<Item>): RowVirtualizer {\n const rowVirtualizer = useVirtualDefault({ size: items.length, parentRef, estimateSize, overscan: 5 });\n\n // Cache virtual item mounts to limit the amount of mounts per item.\n const measuresCache = useRef(new WeakMap<Item, number>());\n\n // Clear mounts cache every time indices, items, or size estimate change.\n const indicesKey = rowVirtualizer.virtualItems.map(item => `${item.index}`).join(':');\n useEffect(() => {\n measuresCache.current = new WeakMap();\n }, [indicesKey, items, estimateSize]);\n\n const virtualItems = useMemo(\n () =>\n rowVirtualizer.virtualItems.map(virtualItem => ({\n ...virtualItem,\n measureRef: (node: null | HTMLElement) => {\n const mountedCount = measuresCache.current.get(items[virtualItem.index]) ?? 0;\n if (mountedCount < MAX_ITEM_MOUNTS) {\n virtualItem.measureRef(node);\n measuresCache.current.set(items[virtualItem.index], mountedCount + 1);\n }\n },\n })),\n [items, rowVirtualizer.virtualItems]\n );\n\n return {\n virtualItems,\n totalSize: rowVirtualizer.totalSize,\n scrollToIndex: rowVirtualizer.scrollToIndex,\n };\n}\n"]}
|