@cloudscape-design/components 3.0.1067 → 3.0.1069
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/app-layout/visual-refresh-toolbar/skeleton/multi-layout.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/skeleton/multi-layout.js +19 -1
- package/app-layout/visual-refresh-toolbar/skeleton/multi-layout.js.map +1 -1
- package/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/collapsible-flashbar.js +5 -3
- package/flashbar/collapsible-flashbar.js.map +1 -1
- package/flashbar/common.d.ts.map +1 -1
- package/flashbar/common.js +5 -2
- package/flashbar/common.js.map +1 -1
- package/flashbar/flash.d.ts +1 -1
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +2 -4
- package/flashbar/flash.js.map +1 -1
- package/flashbar/utils.d.ts +1 -1
- package/flashbar/utils.d.ts.map +1 -1
- package/flashbar/utils.js +1 -1
- package/flashbar/utils.js.map +1 -1
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/split-panel/bottom.d.ts +4 -1
- package/split-panel/bottom.d.ts.map +1 -1
- package/split-panel/bottom.js +4 -3
- package/split-panel/bottom.js.map +1 -1
- package/split-panel/implementation.d.ts +5 -0
- package/split-panel/implementation.d.ts.map +1 -1
- package/split-panel/implementation.js +30 -11
- package/split-panel/implementation.js.map +1 -1
- package/split-panel/index.d.ts.map +1 -1
- package/split-panel/index.js +6 -0
- package/split-panel/index.js.map +1 -1
- package/split-panel/interfaces.d.ts +24 -3
- package/split-panel/interfaces.d.ts.map +1 -1
- package/split-panel/interfaces.js.map +1 -1
- package/split-panel/side.d.ts +1 -0
- package/split-panel/side.d.ts.map +1 -1
- package/split-panel/side.js +2 -2
- package/split-panel/side.js.map +1 -1
- package/split-panel/styles.css.js +38 -27
- package/split-panel/styles.scoped.css +93 -56
- package/split-panel/styles.selectors.js +38 -27
- package/split-panel/test-classes/styles.css.js +12 -8
- package/split-panel/test-classes/styles.scoped.css +12 -8
- package/split-panel/test-classes/styles.selectors.js +12 -8
- package/tabs/tab-header-bar.d.ts.map +1 -1
- package/tabs/tab-header-bar.js +13 -8
- package/tabs/tab-header-bar.js.map +1 -1
- package/test-utils/dom/split-panel/index.d.ts +4 -0
- package/test-utils/dom/split-panel/index.js +12 -0
- package/test-utils/dom/split-panel/index.js.map +1 -1
- package/test-utils/selectors/split-panel/index.d.ts +4 -0
- package/test-utils/selectors/split-panel/index.js +12 -0
- package/test-utils/selectors/split-panel/index.js.map +1 -1
|
@@ -150,7 +150,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
150
150
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
151
151
|
SPDX-License-Identifier: Apache-2.0
|
|
152
152
|
*/
|
|
153
|
-
.
|
|
153
|
+
.awsui_drawer_1r9lg_492kg_153:not(#\9) {
|
|
154
154
|
border-collapse: separate;
|
|
155
155
|
border-spacing: 0;
|
|
156
156
|
box-sizing: border-box;
|
|
@@ -187,37 +187,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
187
187
|
background-color: var(--color-background-layout-panel-content-xto15e, #ffffff);
|
|
188
188
|
z-index: 840;
|
|
189
189
|
}
|
|
190
|
-
.awsui_drawer-
|
|
191
|
-
cursor: pointer;
|
|
192
|
-
}
|
|
193
|
-
.awsui_drawer-closed_1r9lg_1hxnd_190:not(#\9):not(.awsui_refresh_1r9lg_1hxnd_193) {
|
|
190
|
+
.awsui_drawer-closed_1r9lg_492kg_190:not(#\9):not(.awsui_refresh_1r9lg_492kg_190) {
|
|
194
191
|
min-inline-size: 40px;
|
|
195
192
|
}
|
|
196
193
|
|
|
197
|
-
.awsui_drawer-content-
|
|
194
|
+
.awsui_drawer-content-side_1r9lg_492kg_194:not(#\9) {
|
|
198
195
|
display: flex;
|
|
199
196
|
align-items: center;
|
|
200
197
|
block-size: 100%;
|
|
201
198
|
overflow: auto;
|
|
202
199
|
}
|
|
203
|
-
.awsui_drawer-content-
|
|
200
|
+
.awsui_drawer-content-side_1r9lg_492kg_194 > [aria-hidden=true]:not(#\9), .awsui_drawer-closed_1r9lg_492kg_190.awsui_refresh_1r9lg_492kg_190 > .awsui_drawer-content-side_1r9lg_492kg_194:not(#\9) {
|
|
204
201
|
display: none;
|
|
205
202
|
}
|
|
206
|
-
.awsui_drawer-
|
|
203
|
+
.awsui_drawer-closed_1r9lg_492kg_190:not(#\9):not(.awsui_refresh_1r9lg_492kg_190) > .awsui_drawer-content-side_1r9lg_492kg_194 {
|
|
207
204
|
inline-size: 40px;
|
|
208
205
|
}
|
|
209
|
-
.awsui_drawer-
|
|
206
|
+
.awsui_drawer-closed_1r9lg_492kg_190:not(#\9):not(.awsui_refresh_1r9lg_492kg_190) > .awsui_drawer-content-side_1r9lg_492kg_194:hover {
|
|
210
207
|
background: var(--color-background-layout-panel-hover-tguulw, #ebebf0);
|
|
211
208
|
}
|
|
212
209
|
|
|
213
|
-
:not(#\9):not(.awsui_drawer-
|
|
210
|
+
:not(#\9):not(.awsui_drawer-closed_1r9lg_492kg_190) > .awsui_drawer-content-bottom_1r9lg_492kg_210 {
|
|
214
211
|
overflow-y: auto;
|
|
215
212
|
position: absolute;
|
|
216
213
|
inset: 0;
|
|
217
214
|
clip-path: border-box;
|
|
218
215
|
}
|
|
219
216
|
|
|
220
|
-
.awsui_position-
|
|
217
|
+
.awsui_position-bottom_1r9lg_492kg_217:not(#\9) {
|
|
221
218
|
position: fixed;
|
|
222
219
|
overflow-y: auto;
|
|
223
220
|
/*
|
|
@@ -225,37 +222,38 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
225
222
|
SplitPanel is no longer in fixed position in the DOM.
|
|
226
223
|
*/
|
|
227
224
|
}
|
|
228
|
-
.awsui_position-
|
|
225
|
+
.awsui_position-bottom_1r9lg_492kg_217:not(#\9):not(.awsui_hidden_1r9lg_492kg_225) {
|
|
229
226
|
border-block-start: var(--border-panel-top-width-10990j, 1px) solid var(--color-border-divider-panel-bottom-bruvuz, #c6c6cd);
|
|
230
227
|
}
|
|
231
|
-
.awsui_position-
|
|
228
|
+
.awsui_position-bottom_1r9lg_492kg_217:not(#\9):not(.awsui_refresh_1r9lg_492kg_190) {
|
|
232
229
|
box-shadow: var(--shadow-split-bottom-vlyulf, 0px -36px 36px -36px rgba(0, 7, 22, 0.1));
|
|
233
230
|
border-inline-start: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-panel-bottom-bruvuz, #c6c6cd);
|
|
234
231
|
border-inline-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-panel-bottom-bruvuz, #c6c6cd);
|
|
235
232
|
}
|
|
236
|
-
.awsui_position-
|
|
233
|
+
.awsui_position-bottom_1r9lg_492kg_217.awsui_drawer-closed_1r9lg_492kg_190:not(#\9) {
|
|
237
234
|
overflow: hidden;
|
|
238
235
|
}
|
|
239
|
-
.awsui_position-
|
|
236
|
+
.awsui_position-bottom_1r9lg_492kg_217.awsui_drawer-closed_1r9lg_492kg_190.awsui_drawer-clickable_1r9lg_492kg_236:not(#\9):hover {
|
|
237
|
+
cursor: pointer;
|
|
240
238
|
background: var(--color-background-layout-panel-hover-tguulw, #ebebf0);
|
|
241
239
|
}
|
|
242
|
-
.awsui_position-
|
|
240
|
+
.awsui_position-bottom_1r9lg_492kg_217 > .awsui_drawer-content-bottom_1r9lg_492kg_210 > [aria-hidden=true]:not(#\9) {
|
|
243
241
|
display: none;
|
|
244
242
|
}
|
|
245
|
-
.awsui_position-
|
|
243
|
+
.awsui_position-bottom_1r9lg_492kg_217.awsui_refresh_1r9lg_492kg_190:not(#\9) {
|
|
246
244
|
position: relative;
|
|
247
245
|
}
|
|
248
246
|
|
|
249
|
-
.awsui_position-
|
|
247
|
+
.awsui_position-side_1r9lg_492kg_247:not(#\9) {
|
|
250
248
|
border-block-start: none;
|
|
251
249
|
box-shadow: var(--shadow-split-side-nyajix, -1px 0px 1px 0px #e9ebed, -36px 6px 36px -36px rgba(0, 7, 22, 0.1));
|
|
252
250
|
block-size: 100%;
|
|
253
251
|
}
|
|
254
|
-
.awsui_position-
|
|
252
|
+
.awsui_position-side_1r9lg_492kg_247.awsui_with-toolbar_1r9lg_492kg_252:not(#\9) {
|
|
255
253
|
box-shadow: none;
|
|
256
254
|
}
|
|
257
255
|
|
|
258
|
-
.awsui_slider-wrapper-
|
|
256
|
+
.awsui_slider-wrapper-bottom_1r9lg_492kg_256:not(#\9) {
|
|
259
257
|
position: absolute;
|
|
260
258
|
inset-block-start: 0;
|
|
261
259
|
inset-inline-start: 0;
|
|
@@ -266,7 +264,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
266
264
|
z-index: 2;
|
|
267
265
|
}
|
|
268
266
|
|
|
269
|
-
.awsui_slider-wrapper-
|
|
267
|
+
.awsui_slider-wrapper-side_1r9lg_492kg_267:not(#\9) {
|
|
270
268
|
position: absolute;
|
|
271
269
|
inset-inline-start: 0;
|
|
272
270
|
inset-block-start: 0;
|
|
@@ -276,11 +274,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
276
274
|
align-items: center;
|
|
277
275
|
z-index: 1;
|
|
278
276
|
}
|
|
279
|
-
.awsui_slider-wrapper-
|
|
277
|
+
.awsui_slider-wrapper-side_1r9lg_492kg_267.awsui_with-toolbar_1r9lg_492kg_252:not(#\9) {
|
|
280
278
|
position: unset;
|
|
281
279
|
}
|
|
282
280
|
|
|
283
|
-
.awsui_open-button-
|
|
281
|
+
.awsui_open-button-side_1r9lg_492kg_281:not(#\9) {
|
|
284
282
|
flex: 0 0 auto;
|
|
285
283
|
align-self: flex-start;
|
|
286
284
|
box-sizing: border-box;
|
|
@@ -289,7 +287,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
289
287
|
margin-inline: auto;
|
|
290
288
|
}
|
|
291
289
|
|
|
292
|
-
.awsui_pane-header-wrapper-
|
|
290
|
+
.awsui_pane-header-wrapper-bottom_1r9lg_492kg_290:not(#\9) {
|
|
293
291
|
position: sticky;
|
|
294
292
|
inset-block-start: 0;
|
|
295
293
|
display: flex;
|
|
@@ -299,60 +297,60 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
299
297
|
padding-block: 0;
|
|
300
298
|
padding-inline: var(--space-layout-content-horizontal-buc0zz, 24px);
|
|
301
299
|
}
|
|
302
|
-
.awsui_drawer-
|
|
300
|
+
.awsui_drawer-mobile_1r9lg_492kg_300 > .awsui_drawer-content-bottom_1r9lg_492kg_210 > .awsui_pane-header-wrapper-bottom_1r9lg_492kg_290:not(#\9) {
|
|
303
301
|
padding-block: 0;
|
|
304
302
|
padding-inline: var(--space-l-2ud1p3, 20px);
|
|
305
303
|
}
|
|
306
|
-
.awsui_drawer-disable-content-
|
|
304
|
+
.awsui_drawer-disable-content-paddings_1r9lg_492kg_304 > .awsui_drawer-content-bottom_1r9lg_492kg_210 > .awsui_pane-header-wrapper-bottom_1r9lg_492kg_290:not(#\9) {
|
|
307
305
|
padding-block: 0;
|
|
308
306
|
padding-inline: var(--space-l-2ud1p3, 20px);
|
|
309
307
|
}
|
|
310
|
-
:not(#\9):not(.awsui_drawer-
|
|
308
|
+
:not(#\9):not(.awsui_drawer-closed_1r9lg_492kg_190) > .awsui_drawer-content-bottom_1r9lg_492kg_210 > .awsui_pane-header-wrapper-bottom_1r9lg_492kg_290 {
|
|
311
309
|
background-color: var(--color-background-layout-panel-content-xto15e, #ffffff);
|
|
312
310
|
border-block-end: var(--border-panel-header-width-t1iq1m, 1px) solid var(--color-border-panel-header-ygztvl, #c6c6cd);
|
|
313
311
|
}
|
|
314
|
-
.awsui_with-
|
|
312
|
+
.awsui_with-toolbar_1r9lg_492kg_252:not(#\9):not(.awsui_drawer-closed_1r9lg_492kg_190) > .awsui_drawer-content-bottom_1r9lg_492kg_210 > .awsui_pane-header-wrapper-bottom_1r9lg_492kg_290 {
|
|
315
313
|
border-color: transparent;
|
|
316
314
|
}
|
|
317
315
|
|
|
318
|
-
.awsui_content-
|
|
316
|
+
.awsui_content-bottom_1r9lg_492kg_316:not(#\9) {
|
|
319
317
|
padding-block: 0;
|
|
320
318
|
padding-inline: var(--space-layout-content-horizontal-buc0zz, 24px);
|
|
321
319
|
margin-block-start: var(--space-panel-split-top-3u4vky, 20px);
|
|
322
320
|
position: relative;
|
|
323
321
|
z-index: 0;
|
|
324
322
|
}
|
|
325
|
-
.awsui_with-
|
|
323
|
+
.awsui_with-toolbar_1r9lg_492kg_252 > .awsui_drawer-content-bottom_1r9lg_492kg_210 > .awsui_content-bottom_1r9lg_492kg_316:not(#\9) {
|
|
326
324
|
margin-block-start: 0px;
|
|
327
325
|
}
|
|
328
|
-
.awsui_drawer-
|
|
326
|
+
.awsui_drawer-mobile_1r9lg_492kg_300 > .awsui_drawer-content-bottom_1r9lg_492kg_210 > .awsui_content-bottom_1r9lg_492kg_316:not(#\9) {
|
|
329
327
|
padding-block: 0;
|
|
330
328
|
padding-inline: var(--space-l-2ud1p3, 20px);
|
|
331
329
|
}
|
|
332
|
-
.awsui_drawer-disable-content-
|
|
330
|
+
.awsui_drawer-disable-content-paddings_1r9lg_492kg_304 > .awsui_drawer-content-bottom_1r9lg_492kg_210 > .awsui_content-bottom_1r9lg_492kg_316:not(#\9) {
|
|
333
331
|
padding-block: 0;
|
|
334
332
|
padding-inline: 0;
|
|
335
333
|
}
|
|
336
334
|
|
|
337
|
-
.awsui_pane-bottom-center-
|
|
335
|
+
.awsui_pane-bottom-center-align_1r9lg_492kg_335:not(#\9) {
|
|
338
336
|
display: flex;
|
|
339
337
|
justify-content: center;
|
|
340
338
|
}
|
|
341
339
|
|
|
342
|
-
.awsui_pane-bottom-content-nav-
|
|
340
|
+
.awsui_pane-bottom-content-nav-padding_1r9lg_492kg_340:not(#\9) {
|
|
343
341
|
padding-inline-start: calc(var(--space-layout-toggle-diameter-j2qffw, 36px) + 2 * var(--space-layout-toggle-padding-chwlhz, 12px));
|
|
344
342
|
}
|
|
345
343
|
|
|
346
|
-
.awsui_pane-bottom-content-tools-
|
|
344
|
+
.awsui_pane-bottom-content-tools-padding_1r9lg_492kg_344:not(#\9) {
|
|
347
345
|
padding-inline-end: calc(var(--space-layout-toggle-diameter-j2qffw, 36px) + 2 * var(--space-layout-toggle-padding-chwlhz, 12px));
|
|
348
346
|
}
|
|
349
347
|
|
|
350
|
-
.awsui_content-bottom-max-
|
|
348
|
+
.awsui_content-bottom-max-width_1r9lg_492kg_348:not(#\9) {
|
|
351
349
|
flex-grow: 1;
|
|
352
350
|
max-inline-size: 100%;
|
|
353
351
|
}
|
|
354
352
|
|
|
355
|
-
.awsui_content-
|
|
353
|
+
.awsui_content-side_1r9lg_492kg_353:not(#\9) {
|
|
356
354
|
flex: auto;
|
|
357
355
|
align-self: flex-start;
|
|
358
356
|
box-sizing: border-box;
|
|
@@ -361,57 +359,96 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
361
359
|
inset-inline: 0;
|
|
362
360
|
block-size: 100%;
|
|
363
361
|
}
|
|
364
|
-
.awsui_content-
|
|
362
|
+
.awsui_content-side_1r9lg_492kg_353.awsui_with-toolbar_1r9lg_492kg_252:not(#\9) {
|
|
365
363
|
position: absolute;
|
|
366
364
|
}
|
|
367
|
-
.awsui_content-
|
|
365
|
+
.awsui_content-side_1r9lg_492kg_353 > .awsui_pane-header-wrapper-side_1r9lg_492kg_365:not(#\9) {
|
|
368
366
|
padding-block: 0;
|
|
369
367
|
padding-inline-end: var(--space-m-dsumyt, 16px);
|
|
370
368
|
padding-inline-start: var(--space-panel-side-left-u1m3s9, 28px);
|
|
371
369
|
border-block-end: var(--border-panel-header-width-t1iq1m, 1px) solid var(--color-border-panel-header-ygztvl, #c6c6cd);
|
|
372
370
|
}
|
|
373
|
-
.awsui_content-
|
|
371
|
+
.awsui_content-side_1r9lg_492kg_353.awsui_with-toolbar_1r9lg_492kg_252 > .awsui_pane-header-wrapper-side_1r9lg_492kg_365:not(#\9) {
|
|
374
372
|
border-color: transparent;
|
|
375
373
|
}
|
|
376
|
-
.awsui_content-
|
|
374
|
+
.awsui_content-side_1r9lg_492kg_353 > .awsui_pane-content-wrapper-side_1r9lg_492kg_374:not(#\9) {
|
|
377
375
|
padding-block: 0;
|
|
378
376
|
padding-inline-start: var(--space-panel-side-left-u1m3s9, 28px);
|
|
379
377
|
padding-inline-end: var(--space-panel-side-right-8wwirc, 24px);
|
|
380
378
|
margin-block-start: var(--space-panel-split-top-3u4vky, 20px);
|
|
381
379
|
margin-block-end: var(--space-panel-split-bottom-ir16d7, 20px);
|
|
382
380
|
}
|
|
383
|
-
.awsui_content-
|
|
381
|
+
.awsui_content-side_1r9lg_492kg_353.awsui_with-toolbar_1r9lg_492kg_252 > .awsui_pane-content-wrapper-side_1r9lg_492kg_374:not(#\9) {
|
|
384
382
|
margin-block-start: 0px;
|
|
385
383
|
}
|
|
386
384
|
|
|
387
|
-
.
|
|
388
|
-
display: flex;
|
|
389
|
-
flex: auto;
|
|
390
|
-
flex-direction: row;
|
|
391
|
-
align-items: flex-start;
|
|
392
|
-
justify-content: space-between;
|
|
385
|
+
.awsui_header_1r9lg_492kg_385:not(#\9) {
|
|
393
386
|
inline-size: 100%;
|
|
394
387
|
margin-block: var(--size-vertical-panel-icon-offset-z959cw, 15px);
|
|
395
388
|
margin-inline: 0;
|
|
396
389
|
}
|
|
397
|
-
.
|
|
390
|
+
.awsui_header_1r9lg_492kg_385.awsui_with-toolbar_1r9lg_492kg_252:not(#\9) {
|
|
398
391
|
margin-block: 14px;
|
|
399
392
|
}
|
|
400
|
-
.awsui_header-
|
|
393
|
+
.awsui_header-main-row_1r9lg_492kg_393:not(#\9), .awsui_header-main-content_1r9lg_492kg_393:not(#\9) {
|
|
394
|
+
display: flex;
|
|
395
|
+
}
|
|
396
|
+
.awsui_header-main-row_1r9lg_492kg_393:not(#\9) {
|
|
397
|
+
align-items: flex-start;
|
|
398
|
+
}
|
|
399
|
+
.awsui_header-main-content_1r9lg_492kg_393:not(#\9) {
|
|
400
|
+
flex: auto;
|
|
401
|
+
flex-direction: row;
|
|
402
|
+
column-gap: var(--space-scaled-xs-xwoogq, 8px);
|
|
403
|
+
row-gap: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
404
|
+
justify-content: space-between;
|
|
405
|
+
align-items: flex-start;
|
|
406
|
+
}
|
|
407
|
+
.awsui_header-tag-and-info_1r9lg_492kg_407:not(#\9) {
|
|
408
|
+
flex-grow: 1;
|
|
409
|
+
margin-block-start: calc(var(--space-scaled-xxs-pfm1nx, 4px) + 1px);
|
|
410
|
+
line-height: var(--line-height-body-s-nu5hx1, 16px);
|
|
411
|
+
}
|
|
412
|
+
.awsui_header-tag-and-info_1r9lg_492kg_407.awsui_with-description_1r9lg_492kg_412:not(#\9) {
|
|
413
|
+
margin-block-end: var(--space-scaled-xxxs-oo06c7, 2px);
|
|
414
|
+
}
|
|
415
|
+
.awsui_header-tag_1r9lg_492kg_407.awsui_with-info_1r9lg_492kg_415:not(#\9), .awsui_header-text_1r9lg_492kg_415:not(#\9) {
|
|
416
|
+
display: inline;
|
|
417
|
+
}
|
|
418
|
+
.awsui_header-tag_1r9lg_492kg_407:not(#\9) {
|
|
419
|
+
margin-block: 0;
|
|
420
|
+
}
|
|
421
|
+
.awsui_header-before-slot_1r9lg_492kg_421:not(#\9), .awsui_header-text_1r9lg_492kg_415:not(#\9) {
|
|
401
422
|
font-size: var(--font-panel-header-size-33h9j8, 18px);
|
|
402
423
|
letter-spacing: var(--letter-spacing-heading-m-29ewnk, -0.01em);
|
|
403
424
|
line-height: var(--font-panel-header-line-height-8xb2qj, 22px);
|
|
404
425
|
font-weight: var(--font-weight-heading-l-0t6dwc, 700);
|
|
405
426
|
-webkit-font-smoothing: var(--font-smoothing-webkit-oemolo, antialiased);
|
|
406
427
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-hbm0aq, grayscale);
|
|
407
|
-
|
|
408
|
-
|
|
428
|
+
}
|
|
429
|
+
.awsui_header-before-slot_1r9lg_492kg_421:not(#\9) {
|
|
430
|
+
margin-block-start: calc(-1 * calc(var(--space-scaled-xxs-pfm1nx, 4px) + 1px));
|
|
431
|
+
}
|
|
432
|
+
.awsui_header-tag_1r9lg_492kg_407.awsui_with-info_1r9lg_492kg_415 > .awsui_header-before-slot_1r9lg_492kg_421:not(#\9), .awsui_header-before-slot_1r9lg_492kg_421.awsui_with-header-text_1r9lg_492kg_432:not(#\9) {
|
|
433
|
+
display: inline-block;
|
|
434
|
+
}
|
|
435
|
+
.awsui_header-before-slot_1r9lg_492kg_421.awsui_with-header-text_1r9lg_492kg_432:not(#\9), .awsui_header-tag_1r9lg_492kg_407.awsui_with-info_1r9lg_492kg_415:not(#\9) {
|
|
436
|
+
margin-inline-end: var(--space-scaled-xs-xwoogq, 8px);
|
|
437
|
+
}
|
|
438
|
+
.awsui_header-actions-slot_1r9lg_492kg_438:not(#\9) {
|
|
439
|
+
display: flex;
|
|
440
|
+
flex-shrink: 0;
|
|
441
|
+
align-items: center;
|
|
442
|
+
min-block-size: calc(var(--font-panel-header-line-height-8xb2qj, 22px) + 2 * calc(var(--space-scaled-xxs-pfm1nx, 4px) + 1px));
|
|
443
|
+
}
|
|
444
|
+
.awsui_header-description_1r9lg_492kg_444:not(#\9) {
|
|
445
|
+
color: var(--color-text-heading-secondary-iwtvf6, #424650);
|
|
446
|
+
font-size: var(--font-size-body-m-a7nh2n, 14px);
|
|
447
|
+
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
409
448
|
margin-block: 0;
|
|
410
|
-
margin-inline: 0;
|
|
411
|
-
margin-block-start: calc(var(--space-scaled-xxs-pfm1nx, 4px) + 1px);
|
|
412
449
|
}
|
|
413
450
|
|
|
414
|
-
.awsui_header-
|
|
451
|
+
.awsui_header-buttons_1r9lg_492kg_451:not(#\9) {
|
|
415
452
|
display: flex;
|
|
416
453
|
flex-direction: row;
|
|
417
454
|
justify-content: space-between;
|
|
@@ -419,7 +456,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
419
456
|
margin-inline-start: var(--space-xs-ymlm0b, 8px);
|
|
420
457
|
}
|
|
421
458
|
|
|
422
|
-
.
|
|
459
|
+
.awsui_divider_1r9lg_492kg_459:not(#\9) {
|
|
423
460
|
border-inline-end: var(--border-divider-section-width-uwo8my, 1px) solid var(--color-border-divider-default-nr68jt, #c6c6cd);
|
|
424
461
|
margin-block: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
425
462
|
margin-inline: var(--space-scaled-xs-xwoogq, 8px);
|
|
@@ -2,32 +2,43 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"drawer": "
|
|
6
|
-
"drawer-closed": "awsui_drawer-
|
|
7
|
-
"refresh": "
|
|
8
|
-
"drawer-content-side": "awsui_drawer-content-
|
|
9
|
-
"drawer-content-bottom": "awsui_drawer-content-
|
|
10
|
-
"position-bottom": "awsui_position-
|
|
11
|
-
"hidden": "
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"slider-wrapper-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"drawer-
|
|
20
|
-
"content-
|
|
21
|
-
"
|
|
22
|
-
"pane-bottom-
|
|
23
|
-
"pane-bottom-content-
|
|
24
|
-
"
|
|
25
|
-
"content-
|
|
26
|
-
"
|
|
27
|
-
"pane-
|
|
28
|
-
"
|
|
29
|
-
"header
|
|
30
|
-
"header-
|
|
31
|
-
"
|
|
5
|
+
"drawer": "awsui_drawer_1r9lg_492kg_153",
|
|
6
|
+
"drawer-closed": "awsui_drawer-closed_1r9lg_492kg_190",
|
|
7
|
+
"refresh": "awsui_refresh_1r9lg_492kg_190",
|
|
8
|
+
"drawer-content-side": "awsui_drawer-content-side_1r9lg_492kg_194",
|
|
9
|
+
"drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_492kg_210",
|
|
10
|
+
"position-bottom": "awsui_position-bottom_1r9lg_492kg_217",
|
|
11
|
+
"hidden": "awsui_hidden_1r9lg_492kg_225",
|
|
12
|
+
"drawer-clickable": "awsui_drawer-clickable_1r9lg_492kg_236",
|
|
13
|
+
"position-side": "awsui_position-side_1r9lg_492kg_247",
|
|
14
|
+
"with-toolbar": "awsui_with-toolbar_1r9lg_492kg_252",
|
|
15
|
+
"slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_492kg_256",
|
|
16
|
+
"slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_492kg_267",
|
|
17
|
+
"open-button-side": "awsui_open-button-side_1r9lg_492kg_281",
|
|
18
|
+
"pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_492kg_290",
|
|
19
|
+
"drawer-mobile": "awsui_drawer-mobile_1r9lg_492kg_300",
|
|
20
|
+
"drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_492kg_304",
|
|
21
|
+
"content-bottom": "awsui_content-bottom_1r9lg_492kg_316",
|
|
22
|
+
"pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_492kg_335",
|
|
23
|
+
"pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_492kg_340",
|
|
24
|
+
"pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_492kg_344",
|
|
25
|
+
"content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_492kg_348",
|
|
26
|
+
"content-side": "awsui_content-side_1r9lg_492kg_353",
|
|
27
|
+
"pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_492kg_365",
|
|
28
|
+
"pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_492kg_374",
|
|
29
|
+
"header": "awsui_header_1r9lg_492kg_385",
|
|
30
|
+
"header-main-row": "awsui_header-main-row_1r9lg_492kg_393",
|
|
31
|
+
"header-main-content": "awsui_header-main-content_1r9lg_492kg_393",
|
|
32
|
+
"header-tag-and-info": "awsui_header-tag-and-info_1r9lg_492kg_407",
|
|
33
|
+
"with-description": "awsui_with-description_1r9lg_492kg_412",
|
|
34
|
+
"header-tag": "awsui_header-tag_1r9lg_492kg_407",
|
|
35
|
+
"with-info": "awsui_with-info_1r9lg_492kg_415",
|
|
36
|
+
"header-text": "awsui_header-text_1r9lg_492kg_415",
|
|
37
|
+
"header-before-slot": "awsui_header-before-slot_1r9lg_492kg_421",
|
|
38
|
+
"with-header-text": "awsui_with-header-text_1r9lg_492kg_432",
|
|
39
|
+
"header-actions-slot": "awsui_header-actions-slot_1r9lg_492kg_438",
|
|
40
|
+
"header-description": "awsui_header-description_1r9lg_492kg_444",
|
|
41
|
+
"header-buttons": "awsui_header-buttons_1r9lg_492kg_451",
|
|
42
|
+
"divider": "awsui_divider_1r9lg_492kg_459"
|
|
32
43
|
};
|
|
33
44
|
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"header-
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"open-
|
|
11
|
-
"
|
|
4
|
+
"root": "awsui_root_rjqu5_1kbym_5",
|
|
5
|
+
"header-actions": "awsui_header-actions_rjqu5_1kbym_6",
|
|
6
|
+
"header-before": "awsui_header-before_rjqu5_1kbym_7",
|
|
7
|
+
"header-description": "awsui_header-description_rjqu5_1kbym_8",
|
|
8
|
+
"header-info": "awsui_header-info_rjqu5_1kbym_9",
|
|
9
|
+
"header-text": "awsui_header-text_rjqu5_1kbym_10",
|
|
10
|
+
"open-button": "awsui_open-button_rjqu5_1kbym_11",
|
|
11
|
+
"close-button": "awsui_close-button_rjqu5_1kbym_12",
|
|
12
|
+
"preferences-button": "awsui_preferences-button_rjqu5_1kbym_13",
|
|
13
|
+
"slider": "awsui_slider_rjqu5_1kbym_14",
|
|
14
|
+
"open-position-bottom": "awsui_open-position-bottom_rjqu5_1kbym_15",
|
|
15
|
+
"open-position-side": "awsui_open-position-side_rjqu5_1kbym_16"
|
|
12
16
|
};
|
|
13
17
|
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
.
|
|
6
|
-
.awsui_header-
|
|
7
|
-
.
|
|
8
|
-
.
|
|
9
|
-
.
|
|
10
|
-
.
|
|
11
|
-
.awsui_open-
|
|
12
|
-
.
|
|
5
|
+
.awsui_root_rjqu5_1kbym_5:not(#\9),
|
|
6
|
+
.awsui_header-actions_rjqu5_1kbym_6:not(#\9),
|
|
7
|
+
.awsui_header-before_rjqu5_1kbym_7:not(#\9),
|
|
8
|
+
.awsui_header-description_rjqu5_1kbym_8:not(#\9),
|
|
9
|
+
.awsui_header-info_rjqu5_1kbym_9:not(#\9),
|
|
10
|
+
.awsui_header-text_rjqu5_1kbym_10:not(#\9),
|
|
11
|
+
.awsui_open-button_rjqu5_1kbym_11:not(#\9),
|
|
12
|
+
.awsui_close-button_rjqu5_1kbym_12:not(#\9),
|
|
13
|
+
.awsui_preferences-button_rjqu5_1kbym_13:not(#\9),
|
|
14
|
+
.awsui_slider_rjqu5_1kbym_14:not(#\9),
|
|
15
|
+
.awsui_open-position-bottom_rjqu5_1kbym_15:not(#\9),
|
|
16
|
+
.awsui_open-position-side_rjqu5_1kbym_16:not(#\9) {
|
|
13
17
|
/* used in test-utils */
|
|
14
18
|
}
|
|
@@ -2,13 +2,17 @@
|
|
|
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
|
-
"header-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"open-
|
|
12
|
-
"
|
|
5
|
+
"root": "awsui_root_rjqu5_1kbym_5",
|
|
6
|
+
"header-actions": "awsui_header-actions_rjqu5_1kbym_6",
|
|
7
|
+
"header-before": "awsui_header-before_rjqu5_1kbym_7",
|
|
8
|
+
"header-description": "awsui_header-description_rjqu5_1kbym_8",
|
|
9
|
+
"header-info": "awsui_header-info_rjqu5_1kbym_9",
|
|
10
|
+
"header-text": "awsui_header-text_rjqu5_1kbym_10",
|
|
11
|
+
"open-button": "awsui_open-button_rjqu5_1kbym_11",
|
|
12
|
+
"close-button": "awsui_close-button_rjqu5_1kbym_12",
|
|
13
|
+
"preferences-button": "awsui_preferences-button_rjqu5_1kbym_13",
|
|
14
|
+
"slider": "awsui_slider_rjqu5_1kbym_14",
|
|
15
|
+
"open-position-bottom": "awsui_open-position-bottom_rjqu5_1kbym_15",
|
|
16
|
+
"open-position-side": "awsui_open-position-side_rjqu5_1kbym_16"
|
|
13
17
|
};
|
|
14
18
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-header-bar.d.ts","sourceRoot":"","sources":["../../../src/tabs/tab-header-bar.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"tab-header-bar.d.ts","sourceRoot":"","sources":["../../../src/tabs/tab-header-bar.tsx"],"names":[],"mappings":";AAiCA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AA0CzC,UAAU,iBAAiB;IACzB,QAAQ,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,YAAY,KAAK,IAAI,CAAC;IACzD,WAAW,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IACtC,IAAI,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IACxB,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC;IACpC,sBAAsB,EAAE,QAAQ,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC,CAAC;IACtE,OAAO,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CAChC;AAED,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,OAAO,EACP,WAAW,EACX,SAAS,EACT,cAAc,EACd,WAAW,EACX,sBAAsB,EACtB,OAAO,GACR,EAAE,iBAAiB,eAqbnB;AA6ED,wBAAgB,eAAe,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,UAEzF"}
|
package/tabs/tab-header-bar.js
CHANGED
|
@@ -16,6 +16,7 @@ import { usePrevious } from '../internal/hooks/use-previous';
|
|
|
16
16
|
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
17
17
|
import { KeyCode } from '../internal/keycode';
|
|
18
18
|
import { circleIndex } from '../internal/utils/circle-index';
|
|
19
|
+
import { isHTMLElement } from '../internal/utils/dom';
|
|
19
20
|
import handleKey from '../internal/utils/handle-key';
|
|
20
21
|
import { hasHorizontalOverflow, hasInlineEndOverflow, hasInlineStartOverflow, onPaginationClick, scrollIntoView, } from './scroll-utils';
|
|
21
22
|
import analyticsSelectors from './analytics-metadata/styles.css.js';
|
|
@@ -34,8 +35,10 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
34
35
|
const i18n = useInternalI18n('tabs');
|
|
35
36
|
const isVisualRefresh = useVisualRefresh();
|
|
36
37
|
const containerObjectRef = useRef(null);
|
|
38
|
+
const documentRef = useRef(typeof document !== 'undefined' ? document : null);
|
|
39
|
+
const documentRefCallback = (node) => { var _a; return (documentRef.current = (_a = node === null || node === void 0 ? void 0 : node.ownerDocument) !== null && _a !== void 0 ? _a : document); };
|
|
37
40
|
const [widthChange, containerMeasureRef] = useContainerQuery(rect => rect.contentBoxWidth);
|
|
38
|
-
const containerRef = useMergeRefs(containerObjectRef, containerMeasureRef);
|
|
41
|
+
const containerRef = useMergeRefs(containerObjectRef, containerMeasureRef, documentRefCallback);
|
|
39
42
|
const tabRefs = useRef(new Map());
|
|
40
43
|
const [horizontalOverflow, setHorizontalOverflow] = useState(false);
|
|
41
44
|
const [inlineStartOverflow, setInlineStartOverflow] = useState(false);
|
|
@@ -99,8 +102,8 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
99
102
|
When the selected tab changes and we are currently already focused on a tab,
|
|
100
103
|
move the focus to the newly selected tab.
|
|
101
104
|
*/
|
|
102
|
-
if ((_a = headerBarRef.current) === null || _a === void 0 ? void 0 : _a.contains(
|
|
103
|
-
if (
|
|
105
|
+
if (documentRef.current && ((_a = headerBarRef.current) === null || _a === void 0 ? void 0 : _a.contains(documentRef.current.activeElement))) {
|
|
106
|
+
if (documentRef.current.activeElement !== activeTabHeaderRef.current) {
|
|
104
107
|
(_b = activeTabHeaderRef.current) === null || _b === void 0 ? void 0 : _b.focus({ preventScroll: true });
|
|
105
108
|
}
|
|
106
109
|
}
|
|
@@ -156,7 +159,8 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
156
159
|
(_a = navigationAPI.current) === null || _a === void 0 ? void 0 : _a.updateFocusTarget();
|
|
157
160
|
}
|
|
158
161
|
function onKeyDown(event) {
|
|
159
|
-
|
|
162
|
+
var _a, _b, _c;
|
|
163
|
+
const focusTarget = (_a = documentRef.current) === null || _a === void 0 ? void 0 : _a.activeElement;
|
|
160
164
|
const specialKeys = [
|
|
161
165
|
KeyCode.right,
|
|
162
166
|
KeyCode.left,
|
|
@@ -166,7 +170,7 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
166
170
|
KeyCode.pageDown,
|
|
167
171
|
KeyCode.space,
|
|
168
172
|
];
|
|
169
|
-
const isActionOpen =
|
|
173
|
+
const isActionOpen = (_b = documentRef.current) === null || _b === void 0 ? void 0 : _b.querySelector(`.${styles['tabs-tab-action']} [aria-expanded="true"]`);
|
|
170
174
|
const isDismissOrActionFocused = !(focusTarget === null || focusTarget === void 0 ? void 0 : focusTarget.classList.contains(styles['tabs-tab-link']));
|
|
171
175
|
if (isActionOpen) {
|
|
172
176
|
return;
|
|
@@ -174,7 +178,7 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
174
178
|
if (event.key === 'Tab' && !event.shiftKey && isDismissOrActionFocused) {
|
|
175
179
|
event.preventDefault();
|
|
176
180
|
const panelId = `${idNamespace}-${activeTabId}-panel`;
|
|
177
|
-
const panel =
|
|
181
|
+
const panel = (_c = documentRef.current) === null || _c === void 0 ? void 0 : _c.getElementById(panelId);
|
|
178
182
|
panel === null || panel === void 0 ? void 0 : panel.focus();
|
|
179
183
|
}
|
|
180
184
|
if (hasModifierKeys(event) || specialKeys.indexOf(event.keyCode) === -1) {
|
|
@@ -185,7 +189,7 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
185
189
|
}
|
|
186
190
|
event.preventDefault();
|
|
187
191
|
const focusables = getFocusablesFrom(containerObjectRef.current);
|
|
188
|
-
const activeIndex =
|
|
192
|
+
const activeIndex = isHTMLElement(focusTarget) ? focusables.indexOf(focusTarget) : -1;
|
|
189
193
|
handleKey(event, {
|
|
190
194
|
onHome: () => focusElement(focusables[0]),
|
|
191
195
|
onEnd: () => focusElement(focusables[focusables.length - 1]),
|
|
@@ -246,6 +250,7 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
246
250
|
const { dismissible, dismissLabel, dismissDisabled, action, onDismiss } = tab;
|
|
247
251
|
const isActive = activeTabId === tab.id && !tab.disabled;
|
|
248
252
|
const clickTab = (event) => {
|
|
253
|
+
var _a;
|
|
249
254
|
if (tab.disabled) {
|
|
250
255
|
event.preventDefault();
|
|
251
256
|
return;
|
|
@@ -260,7 +265,7 @@ export function TabHeaderBar({ onChange, activeTabId, tabs, variant, idNamespace
|
|
|
260
265
|
if (!tab.href) {
|
|
261
266
|
const clickedTabRef = tabRefs.current.get(tab.id);
|
|
262
267
|
if (clickedTabRef) {
|
|
263
|
-
if (clickedTabRef && clickedTabRef !==
|
|
268
|
+
if (clickedTabRef && clickedTabRef !== ((_a = documentRef.current) === null || _a === void 0 ? void 0 : _a.activeElement)) {
|
|
264
269
|
clickedTabRef.focus({ preventScroll: true });
|
|
265
270
|
}
|
|
266
271
|
}
|