@cloudscape-design/components 3.0.814 → 3.0.816
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/{runtime-api.d.ts → runtime-drawer/index.d.ts} +3 -3
- package/app-layout/runtime-drawer/index.d.ts.map +1 -0
- package/app-layout/{runtime-api.js → runtime-drawer/index.js} +30 -6
- package/app-layout/runtime-drawer/index.js.map +1 -0
- package/app-layout/utils/use-drawers.js +1 -1
- package/app-layout/utils/use-drawers.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +10 -10
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +13 -13
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +10 -10
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +6 -6
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
- package/drawer/implementation.js +1 -1
- package/drawer/implementation.js.map +1 -1
- package/drawer/styles.css.js +5 -4
- package/drawer/styles.scoped.css +16 -20
- package/drawer/styles.selectors.js +5 -4
- package/help-panel/implementation.d.ts.map +1 -1
- package/help-panel/implementation.js +4 -2
- package/help-panel/implementation.js.map +1 -1
- package/help-panel/styles.css.js +6 -5
- package/help-panel/styles.scoped.css +75 -80
- package/help-panel/styles.selectors.js +6 -5
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/internal/plugins/helpers/index.d.ts +0 -1
- package/internal/plugins/helpers/index.d.ts.map +1 -1
- package/internal/plugins/helpers/index.js +0 -1
- package/internal/plugins/helpers/index.js.map +1 -1
- package/internal/plugins/helpers/use-discovered-action.d.ts.map +1 -1
- package/internal/plugins/helpers/use-discovered-action.js +13 -2
- package/internal/plugins/helpers/use-discovered-action.js.map +1 -1
- package/package.json +1 -1
- package/side-navigation/styles.css.js +30 -30
- package/side-navigation/styles.scoped.css +65 -48
- package/side-navigation/styles.selectors.js +30 -30
- package/split-panel/styles.css.js +26 -26
- package/split-panel/styles.scoped.css +45 -45
- package/split-panel/styles.selectors.js +26 -26
- package/app-layout/runtime-api.d.ts.map +0 -1
- package/app-layout/runtime-api.js.map +0 -1
- package/internal/plugins/helpers/runtime-content-wrapper.d.ts +0 -10
- package/internal/plugins/helpers/runtime-content-wrapper.d.ts.map +0 -1
- package/internal/plugins/helpers/runtime-content-wrapper.js +0 -29
- package/internal/plugins/helpers/runtime-content-wrapper.js.map +0 -1
|
@@ -146,7 +146,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
146
146
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
147
147
|
SPDX-License-Identifier: Apache-2.0
|
|
148
148
|
*/
|
|
149
|
-
.
|
|
149
|
+
.awsui_drawer_1r9lg_189so_149:not(#\9) {
|
|
150
150
|
border-collapse: separate;
|
|
151
151
|
border-spacing: 0;
|
|
152
152
|
box-sizing: border-box;
|
|
@@ -187,35 +187,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
187
187
|
background-color: var(--color-background-layout-panel-content-du0fbw, #ffffff);
|
|
188
188
|
z-index: 840;
|
|
189
189
|
}
|
|
190
|
-
.awsui_drawer-
|
|
190
|
+
.awsui_drawer-closed_1r9lg_189so_189:not(#\9):not(.awsui_refresh_1r9lg_189so_189) {
|
|
191
191
|
cursor: pointer;
|
|
192
192
|
min-inline-size: 40px;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
.awsui_drawer-content-
|
|
195
|
+
.awsui_drawer-content-side_1r9lg_189so_194:not(#\9) {
|
|
196
196
|
display: flex;
|
|
197
197
|
align-items: center;
|
|
198
198
|
block-size: 100%;
|
|
199
199
|
overflow: auto;
|
|
200
200
|
}
|
|
201
|
-
.awsui_drawer-content-
|
|
201
|
+
.awsui_drawer-content-side_1r9lg_189so_194 > [aria-hidden=true]:not(#\9), .awsui_drawer-closed_1r9lg_189so_189.awsui_refresh_1r9lg_189so_189 > .awsui_drawer-content-side_1r9lg_189so_194:not(#\9) {
|
|
202
202
|
display: none;
|
|
203
203
|
}
|
|
204
|
-
.awsui_drawer-
|
|
204
|
+
.awsui_drawer-closed_1r9lg_189so_189:not(#\9):not(.awsui_refresh_1r9lg_189so_189) > .awsui_drawer-content-side_1r9lg_189so_194 {
|
|
205
205
|
inline-size: 40px;
|
|
206
206
|
}
|
|
207
|
-
.awsui_drawer-
|
|
207
|
+
.awsui_drawer-closed_1r9lg_189so_189:not(#\9):not(.awsui_refresh_1r9lg_189so_189) > .awsui_drawer-content-side_1r9lg_189so_194:hover {
|
|
208
208
|
background: var(--color-background-layout-panel-hover-1ftnua, #ebebf0);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
:not(#\9):not(.awsui_drawer-
|
|
211
|
+
:not(#\9):not(.awsui_drawer-closed_1r9lg_189so_189) > .awsui_drawer-content-bottom_1r9lg_189so_210 {
|
|
212
212
|
overflow-y: auto;
|
|
213
213
|
position: absolute;
|
|
214
214
|
inset: 0;
|
|
215
215
|
clip-path: border-box;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.awsui_position-
|
|
218
|
+
.awsui_position-bottom_1r9lg_189so_217:not(#\9) {
|
|
219
219
|
position: fixed;
|
|
220
220
|
overflow-y: auto;
|
|
221
221
|
border-block-start: var(--border-panel-top-width-7uc0w9, 1px) solid var(--color-border-divider-panel-bottom-c62zji, #c6c6cd);
|
|
@@ -224,39 +224,39 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
224
224
|
SplitPanel is no longer in fixed position in the DOM.
|
|
225
225
|
*/
|
|
226
226
|
}
|
|
227
|
-
.awsui_position-
|
|
227
|
+
.awsui_position-bottom_1r9lg_189so_217:not(#\9):not(.awsui_refresh_1r9lg_189so_189) {
|
|
228
228
|
box-shadow: var(--shadow-split-bottom-5e389u, 0px -36px 36px -36px rgba(0, 7, 22, 0.1));
|
|
229
229
|
border-inline-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-panel-bottom-c62zji, #c6c6cd);
|
|
230
230
|
border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-panel-bottom-c62zji, #c6c6cd);
|
|
231
231
|
}
|
|
232
|
-
.awsui_position-
|
|
232
|
+
.awsui_position-bottom_1r9lg_189so_217.awsui_drawer-closed_1r9lg_189so_189:not(#\9) {
|
|
233
233
|
overflow: hidden;
|
|
234
234
|
}
|
|
235
|
-
.awsui_position-
|
|
235
|
+
.awsui_position-bottom_1r9lg_189so_217.awsui_drawer-closed_1r9lg_189so_189.awsui_with-toolbar_1r9lg_189so_234:not(#\9) {
|
|
236
236
|
block-size: 0px;
|
|
237
237
|
border-block: none;
|
|
238
238
|
border-inline: none;
|
|
239
239
|
}
|
|
240
|
-
.awsui_position-
|
|
240
|
+
.awsui_position-bottom_1r9lg_189so_217.awsui_drawer-closed_1r9lg_189so_189:not(#\9):hover {
|
|
241
241
|
background: var(--color-background-layout-panel-hover-1ftnua, #ebebf0);
|
|
242
242
|
}
|
|
243
|
-
.awsui_position-
|
|
243
|
+
.awsui_position-bottom_1r9lg_189so_217 > .awsui_drawer-content-bottom_1r9lg_189so_210 > [aria-hidden=true]:not(#\9) {
|
|
244
244
|
display: none;
|
|
245
245
|
}
|
|
246
|
-
.awsui_position-
|
|
246
|
+
.awsui_position-bottom_1r9lg_189so_217.awsui_refresh_1r9lg_189so_189:not(#\9) {
|
|
247
247
|
position: relative;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
.awsui_position-
|
|
250
|
+
.awsui_position-side_1r9lg_189so_249:not(#\9) {
|
|
251
251
|
border-block-start: none;
|
|
252
252
|
box-shadow: var(--shadow-split-side-ggdtnk, -1px 0px 1px 0px #e9ebed, -36px 6px 36px -36px rgba(0, 7, 22, 0.1));
|
|
253
253
|
block-size: 100%;
|
|
254
254
|
}
|
|
255
|
-
.awsui_position-
|
|
255
|
+
.awsui_position-side_1r9lg_189so_249.awsui_with-toolbar_1r9lg_189so_234:not(#\9) {
|
|
256
256
|
box-shadow: none;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
.awsui_slider-wrapper-
|
|
259
|
+
.awsui_slider-wrapper-bottom_1r9lg_189so_258:not(#\9) {
|
|
260
260
|
position: absolute;
|
|
261
261
|
inset-block-start: 0;
|
|
262
262
|
inset-inline-start: 0;
|
|
@@ -267,7 +267,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
267
267
|
z-index: 2;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
.awsui_slider-wrapper-
|
|
270
|
+
.awsui_slider-wrapper-side_1r9lg_189so_269:not(#\9) {
|
|
271
271
|
position: absolute;
|
|
272
272
|
inset-inline-start: 0;
|
|
273
273
|
inset-block-start: 0;
|
|
@@ -277,11 +277,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
277
277
|
align-items: center;
|
|
278
278
|
z-index: 1;
|
|
279
279
|
}
|
|
280
|
-
.awsui_slider-wrapper-
|
|
280
|
+
.awsui_slider-wrapper-side_1r9lg_189so_269.awsui_with-toolbar_1r9lg_189so_234:not(#\9) {
|
|
281
281
|
position: unset;
|
|
282
282
|
}
|
|
283
283
|
|
|
284
|
-
.awsui_open-button-
|
|
284
|
+
.awsui_open-button-side_1r9lg_189so_283:not(#\9) {
|
|
285
285
|
flex: 0 0 auto;
|
|
286
286
|
align-self: flex-start;
|
|
287
287
|
box-sizing: border-box;
|
|
@@ -290,7 +290,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
290
290
|
margin-inline: auto;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
.awsui_pane-header-wrapper-
|
|
293
|
+
.awsui_pane-header-wrapper-bottom_1r9lg_189so_292:not(#\9) {
|
|
294
294
|
position: sticky;
|
|
295
295
|
inset-block-start: 0;
|
|
296
296
|
display: flex;
|
|
@@ -300,60 +300,60 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
300
300
|
padding-block: 0;
|
|
301
301
|
padding-inline: var(--space-layout-content-horizontal-7l52k3, 24px);
|
|
302
302
|
}
|
|
303
|
-
.awsui_drawer-
|
|
303
|
+
.awsui_drawer-mobile_1r9lg_189so_302 > .awsui_drawer-content-bottom_1r9lg_189so_210 > .awsui_pane-header-wrapper-bottom_1r9lg_189so_292:not(#\9) {
|
|
304
304
|
padding-block: 0;
|
|
305
305
|
padding-inline: var(--space-l-t419sm, 20px);
|
|
306
306
|
}
|
|
307
|
-
.awsui_drawer-disable-content-
|
|
307
|
+
.awsui_drawer-disable-content-paddings_1r9lg_189so_306 > .awsui_drawer-content-bottom_1r9lg_189so_210 > .awsui_pane-header-wrapper-bottom_1r9lg_189so_292:not(#\9) {
|
|
308
308
|
padding-block: 0;
|
|
309
309
|
padding-inline: var(--space-l-t419sm, 20px);
|
|
310
310
|
}
|
|
311
|
-
:not(#\9):not(.awsui_drawer-
|
|
311
|
+
:not(#\9):not(.awsui_drawer-closed_1r9lg_189so_189) > .awsui_drawer-content-bottom_1r9lg_189so_210 > .awsui_pane-header-wrapper-bottom_1r9lg_189so_292 {
|
|
312
312
|
background-color: var(--color-background-layout-panel-content-du0fbw, #ffffff);
|
|
313
313
|
border-block-end: var(--border-panel-header-width-3w1py7, 1px) solid var(--color-border-panel-header-nnst86, #c6c6cd);
|
|
314
314
|
}
|
|
315
|
-
.awsui_with-
|
|
315
|
+
.awsui_with-toolbar_1r9lg_189so_234:not(#\9):not(.awsui_drawer-closed_1r9lg_189so_189) > .awsui_drawer-content-bottom_1r9lg_189so_210 > .awsui_pane-header-wrapper-bottom_1r9lg_189so_292 {
|
|
316
316
|
border-color: transparent;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
.awsui_content-
|
|
319
|
+
.awsui_content-bottom_1r9lg_189so_318:not(#\9) {
|
|
320
320
|
padding-block: 0;
|
|
321
321
|
padding-inline: var(--space-layout-content-horizontal-7l52k3, 24px);
|
|
322
322
|
margin-block-start: var(--space-panel-split-top-q1pux4, 20px);
|
|
323
323
|
position: relative;
|
|
324
324
|
z-index: 0;
|
|
325
325
|
}
|
|
326
|
-
.awsui_with-
|
|
326
|
+
.awsui_with-toolbar_1r9lg_189so_234 > .awsui_drawer-content-bottom_1r9lg_189so_210 > .awsui_content-bottom_1r9lg_189so_318:not(#\9) {
|
|
327
327
|
margin-block-start: 0px;
|
|
328
328
|
}
|
|
329
|
-
.awsui_drawer-
|
|
329
|
+
.awsui_drawer-mobile_1r9lg_189so_302 > .awsui_drawer-content-bottom_1r9lg_189so_210 > .awsui_content-bottom_1r9lg_189so_318:not(#\9) {
|
|
330
330
|
padding-block: 0;
|
|
331
331
|
padding-inline: var(--space-l-t419sm, 20px);
|
|
332
332
|
}
|
|
333
|
-
.awsui_drawer-disable-content-
|
|
333
|
+
.awsui_drawer-disable-content-paddings_1r9lg_189so_306 > .awsui_drawer-content-bottom_1r9lg_189so_210 > .awsui_content-bottom_1r9lg_189so_318:not(#\9) {
|
|
334
334
|
padding-block: 0;
|
|
335
335
|
padding-inline: 0;
|
|
336
336
|
}
|
|
337
337
|
|
|
338
|
-
.awsui_pane-bottom-center-
|
|
338
|
+
.awsui_pane-bottom-center-align_1r9lg_189so_337:not(#\9) {
|
|
339
339
|
display: flex;
|
|
340
340
|
justify-content: center;
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
.awsui_pane-bottom-content-nav-
|
|
343
|
+
.awsui_pane-bottom-content-nav-padding_1r9lg_189so_342:not(#\9) {
|
|
344
344
|
padding-inline-start: calc(var(--space-layout-toggle-diameter-hb85rk, 36px) + 2 * var(--space-layout-toggle-padding-lcu6qi, 12px));
|
|
345
345
|
}
|
|
346
346
|
|
|
347
|
-
.awsui_pane-bottom-content-tools-
|
|
347
|
+
.awsui_pane-bottom-content-tools-padding_1r9lg_189so_346:not(#\9) {
|
|
348
348
|
padding-inline-end: calc(var(--space-layout-toggle-diameter-hb85rk, 36px) + 2 * var(--space-layout-toggle-padding-lcu6qi, 12px));
|
|
349
349
|
}
|
|
350
350
|
|
|
351
|
-
.awsui_content-bottom-max-
|
|
351
|
+
.awsui_content-bottom-max-width_1r9lg_189so_350:not(#\9) {
|
|
352
352
|
flex-grow: 1;
|
|
353
353
|
max-inline-size: 100%;
|
|
354
354
|
}
|
|
355
355
|
|
|
356
|
-
.awsui_content-
|
|
356
|
+
.awsui_content-side_1r9lg_189so_355:not(#\9) {
|
|
357
357
|
flex: auto;
|
|
358
358
|
align-self: flex-start;
|
|
359
359
|
box-sizing: border-box;
|
|
@@ -362,30 +362,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
362
362
|
inset-inline: 0;
|
|
363
363
|
block-size: 100%;
|
|
364
364
|
}
|
|
365
|
-
.awsui_content-
|
|
365
|
+
.awsui_content-side_1r9lg_189so_355.awsui_with-toolbar_1r9lg_189so_234:not(#\9) {
|
|
366
366
|
position: absolute;
|
|
367
367
|
}
|
|
368
|
-
.awsui_content-
|
|
368
|
+
.awsui_content-side_1r9lg_189so_355 > .awsui_pane-header-wrapper-side_1r9lg_189so_367:not(#\9) {
|
|
369
369
|
padding-block: 0;
|
|
370
370
|
padding-inline-end: var(--space-m-udix3p, 16px);
|
|
371
371
|
padding-inline-start: var(--space-panel-side-left-5t0who, 28px);
|
|
372
372
|
border-block-end: var(--border-panel-header-width-3w1py7, 1px) solid var(--color-border-panel-header-nnst86, #c6c6cd);
|
|
373
373
|
}
|
|
374
|
-
.awsui_content-
|
|
374
|
+
.awsui_content-side_1r9lg_189so_355.awsui_with-toolbar_1r9lg_189so_234 > .awsui_pane-header-wrapper-side_1r9lg_189so_367:not(#\9) {
|
|
375
375
|
border-color: transparent;
|
|
376
376
|
}
|
|
377
|
-
.awsui_content-
|
|
377
|
+
.awsui_content-side_1r9lg_189so_355 > .awsui_pane-content-wrapper-side_1r9lg_189so_376:not(#\9) {
|
|
378
378
|
padding-block: 0;
|
|
379
379
|
padding-inline-start: var(--space-panel-side-left-5t0who, 28px);
|
|
380
380
|
padding-inline-end: var(--space-panel-side-right-xofg51, 24px);
|
|
381
381
|
margin-block-start: var(--space-panel-split-top-q1pux4, 20px);
|
|
382
382
|
margin-block-end: var(--space-panel-split-bottom-qwdduf, 20px);
|
|
383
383
|
}
|
|
384
|
-
.awsui_content-
|
|
384
|
+
.awsui_content-side_1r9lg_189so_355.awsui_with-toolbar_1r9lg_189so_234 > .awsui_pane-content-wrapper-side_1r9lg_189so_376:not(#\9) {
|
|
385
385
|
margin-block-start: 0px;
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
.
|
|
388
|
+
.awsui_header_1r9lg_189so_387:not(#\9) {
|
|
389
389
|
display: flex;
|
|
390
390
|
flex: auto;
|
|
391
391
|
flex-direction: row;
|
|
@@ -395,10 +395,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
395
395
|
margin-block: var(--size-vertical-panel-icon-offset-wy8j08, 15px);
|
|
396
396
|
margin-inline: 0;
|
|
397
397
|
}
|
|
398
|
-
.
|
|
399
|
-
margin-block:
|
|
398
|
+
.awsui_header_1r9lg_189so_387.awsui_with-toolbar_1r9lg_189so_234:not(#\9) {
|
|
399
|
+
margin-block: 14px;
|
|
400
400
|
}
|
|
401
|
-
.awsui_header-
|
|
401
|
+
.awsui_header-text_1r9lg_189so_400:not(#\9) {
|
|
402
402
|
font-size: var(--font-panel-header-size-edjz3l, 18px);
|
|
403
403
|
line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
404
404
|
font-weight: var(--font-weight-heading-l-f8711v, 700);
|
|
@@ -411,7 +411,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
411
411
|
margin-block-start: calc(var(--space-scaled-xxs-7597g1, 4px) + 1px);
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
.awsui_header-
|
|
414
|
+
.awsui_header-actions_1r9lg_189so_413:not(#\9) {
|
|
415
415
|
display: flex;
|
|
416
416
|
flex-direction: row;
|
|
417
417
|
justify-content: space-between;
|
|
@@ -419,7 +419,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
419
419
|
margin-inline-start: var(--space-xs-zb16t3, 8px);
|
|
420
420
|
}
|
|
421
421
|
|
|
422
|
-
.
|
|
422
|
+
.awsui_divider_1r9lg_189so_421:not(#\9) {
|
|
423
423
|
border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-cx07f2, #c6c6cd);
|
|
424
424
|
margin-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
425
425
|
margin-inline: var(--space-scaled-xs-26e2du, 8px);
|
|
@@ -2,31 +2,31 @@
|
|
|
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
|
-
"with-toolbar": "awsui_with-
|
|
12
|
-
"position-side": "awsui_position-
|
|
13
|
-
"slider-wrapper-bottom": "awsui_slider-wrapper-
|
|
14
|
-
"slider-wrapper-side": "awsui_slider-wrapper-
|
|
15
|
-
"open-button-side": "awsui_open-button-
|
|
16
|
-
"pane-header-wrapper-bottom": "awsui_pane-header-wrapper-
|
|
17
|
-
"drawer-mobile": "awsui_drawer-
|
|
18
|
-
"drawer-disable-content-paddings": "awsui_drawer-disable-content-
|
|
19
|
-
"content-bottom": "awsui_content-
|
|
20
|
-
"pane-bottom-center-align": "awsui_pane-bottom-center-
|
|
21
|
-
"pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-
|
|
22
|
-
"pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-
|
|
23
|
-
"content-bottom-max-width": "awsui_content-bottom-max-
|
|
24
|
-
"content-side": "awsui_content-
|
|
25
|
-
"pane-header-wrapper-side": "awsui_pane-header-wrapper-
|
|
26
|
-
"pane-content-wrapper-side": "awsui_pane-content-wrapper-
|
|
27
|
-
"header": "
|
|
28
|
-
"header-text": "awsui_header-
|
|
29
|
-
"header-actions": "awsui_header-
|
|
30
|
-
"divider": "
|
|
5
|
+
"drawer": "awsui_drawer_1r9lg_189so_149",
|
|
6
|
+
"drawer-closed": "awsui_drawer-closed_1r9lg_189so_189",
|
|
7
|
+
"refresh": "awsui_refresh_1r9lg_189so_189",
|
|
8
|
+
"drawer-content-side": "awsui_drawer-content-side_1r9lg_189so_194",
|
|
9
|
+
"drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_189so_210",
|
|
10
|
+
"position-bottom": "awsui_position-bottom_1r9lg_189so_217",
|
|
11
|
+
"with-toolbar": "awsui_with-toolbar_1r9lg_189so_234",
|
|
12
|
+
"position-side": "awsui_position-side_1r9lg_189so_249",
|
|
13
|
+
"slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_189so_258",
|
|
14
|
+
"slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_189so_269",
|
|
15
|
+
"open-button-side": "awsui_open-button-side_1r9lg_189so_283",
|
|
16
|
+
"pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_189so_292",
|
|
17
|
+
"drawer-mobile": "awsui_drawer-mobile_1r9lg_189so_302",
|
|
18
|
+
"drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_189so_306",
|
|
19
|
+
"content-bottom": "awsui_content-bottom_1r9lg_189so_318",
|
|
20
|
+
"pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_189so_337",
|
|
21
|
+
"pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_189so_342",
|
|
22
|
+
"pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_189so_346",
|
|
23
|
+
"content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_189so_350",
|
|
24
|
+
"content-side": "awsui_content-side_1r9lg_189so_355",
|
|
25
|
+
"pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_189so_367",
|
|
26
|
+
"pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_189so_376",
|
|
27
|
+
"header": "awsui_header_1r9lg_189so_387",
|
|
28
|
+
"header-text": "awsui_header-text_1r9lg_189so_400",
|
|
29
|
+
"header-actions": "awsui_header-actions_1r9lg_189so_413",
|
|
30
|
+
"divider": "awsui_divider_1r9lg_189so_421"
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-api.d.ts","sourceRoot":"","sources":["../../../src/app-layout/runtime-api.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAG9F,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IACrC,WAAW,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;IAC1C,UAAU,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;CAC1C;AAkCD,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,KAAK,CAAC,mBAAmB,CAAC,EACxC,aAAa,EAAE,KAAK,CAAC,mBAAmB,CAAC,GACxC,aAAa,CAQf"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-api.js","sourceRoot":"","sources":["../../../src/app-layout/runtime-api.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AASnE,MAAM,wBAAwB,GAAG,CAC/B,aAAkC,EAGlC,EAAE;;IACF,MAAM,EAAE,YAAY,EAAE,cAAc,EAAE,OAAO,KAAuB,aAAa,EAA/B,aAAa,UAAK,aAAa,EAA3E,6CAA2D,CAAgB,CAAC;IAElF,uCACK,aAAa,KAChB,UAAU,kBAAI,UAAU,EAAE,MAAA,aAAa,CAAC,UAAU,CAAC,OAAO,mCAAI,EAAE,IAAK,aAAa,CAAC,UAAU,GAC7F,OAAO,EAAE,OAAO;YACd,CAAC,CAAC;gBACE,OAAO,EAAE;gBACP,2CAA2C;gBAC3C,8BAAM,uBAAuB,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,OAAO,EAAE,GAAI,CAC/D;aACF;YACH,CAAC,CAAC,SAAS,EACb,OAAO,EAAE,CACP,oBAAC,qBAAqB,IACpB,GAAG,EAAE,aAAa,CAAC,EAAE,EACrB,YAAY,EAAE,YAAY,EAC1B,cAAc,EAAE,cAAc,EAC9B,EAAE,EAAE,aAAa,CAAC,EAAE,GACpB,CACH,EACD,QAAQ,EAAE,KAAK,CAAC,EAAE;YAChB,sBAAsB,CAAC,aAAa,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,aAAa,CAAC,EAAE,EAAE,CAAC,CAAC;QACpG,CAAC,IACD;AACJ,CAAC,CAAC;AAEF,MAAM,UAAU,qBAAqB,CACnC,YAAwC,EACxC,aAAyC;IAEzC,MAAM,SAAS,GAAG,YAAY,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IAC7D,MAAM,MAAM,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IACzC,OAAO;QACL,MAAM,EAAE,cAAc,CAAC,aAAa,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACnE,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAC,OAAA,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,CAAC,CAAC,GAAG,CAAC,CAAA,EAAA,CAAC;QACjE,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,WAAC,OAAA,CAAC,MAAA,IAAI,CAAC,aAAa,mCAAI,CAAC,CAAC,IAAI,CAAC,CAAA,EAAA,CAAC;KAClE,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { DrawerConfig as RuntimeDrawerConfig } from '../internal/plugins/controllers/drawers';\nimport { RuntimeContentWrapper } from '../internal/plugins/helpers';\nimport { sortByPriority } from '../internal/plugins/helpers/utils';\nimport { AppLayoutProps } from './interfaces';\n\nexport interface DrawersLayout {\n global: Array<AppLayoutProps.Drawer>;\n localBefore: Array<AppLayoutProps.Drawer>;\n localAfter: Array<AppLayoutProps.Drawer>;\n}\n\nconst mapRuntimeConfigToDrawer = (\n runtimeConfig: RuntimeDrawerConfig\n): AppLayoutProps.Drawer & {\n orderPriority?: number;\n} => {\n const { mountContent, unmountContent, trigger, ...runtimeDrawer } = runtimeConfig;\n\n return {\n ...runtimeDrawer,\n ariaLabels: { drawerName: runtimeDrawer.ariaLabels.content ?? '', ...runtimeDrawer.ariaLabels },\n trigger: trigger\n ? {\n iconSvg: (\n // eslint-disable-next-line react/no-danger\n <span dangerouslySetInnerHTML={{ __html: trigger.iconSvg }} />\n ),\n }\n : undefined,\n content: (\n <RuntimeContentWrapper\n key={runtimeDrawer.id}\n mountContent={mountContent}\n unmountContent={unmountContent}\n id={runtimeDrawer.id}\n />\n ),\n onResize: event => {\n fireNonCancelableEvent(runtimeDrawer.onResize, { size: event.detail.size, id: runtimeDrawer.id });\n },\n };\n};\n\nexport function convertRuntimeDrawers(\n localDrawers: Array<RuntimeDrawerConfig>,\n globalDrawers: Array<RuntimeDrawerConfig>\n): DrawersLayout {\n const converted = localDrawers.map(mapRuntimeConfigToDrawer);\n const sorted = sortByPriority(converted);\n return {\n global: sortByPriority(globalDrawers.map(mapRuntimeConfigToDrawer)),\n localBefore: sorted.filter(item => (item.orderPriority ?? 0) > 0),\n localAfter: sorted.filter(item => (item.orderPriority ?? 0) <= 0),\n };\n}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { MountContentContext } from '../controllers/drawers';
|
|
3
|
-
interface RuntimeContentWrapperProps {
|
|
4
|
-
mountContent: (container: HTMLElement, mountContent: MountContentContext) => void;
|
|
5
|
-
unmountContent: (container: HTMLElement) => void;
|
|
6
|
-
id?: string;
|
|
7
|
-
}
|
|
8
|
-
export declare function RuntimeContentWrapper({ mountContent, unmountContent, id }: RuntimeContentWrapperProps): JSX.Element;
|
|
9
|
-
export {};
|
|
10
|
-
//# sourceMappingURL=runtime-content-wrapper.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-content-wrapper.d.ts","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/runtime-content-wrapper.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAI7D,UAAU,0BAA0B;IAClC,YAAY,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAClF,cAAc,EAAE,CAAC,SAAS,EAAE,WAAW,KAAK,IAAI,CAAC;IACjD,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAED,wBAAgB,qBAAqB,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,EAAE,EAAE,EAAE,0BAA0B,eAyBrG"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import React, { useContext, useEffect, useRef } from 'react';
|
|
4
|
-
import { ActiveDrawersContext } from '../../../app-layout/utils/visibility-context';
|
|
5
|
-
export function RuntimeContentWrapper({ mountContent, unmountContent, id }) {
|
|
6
|
-
const ref = useRef(null);
|
|
7
|
-
const visibilityChangeCallback = useRef(null);
|
|
8
|
-
const activeDrawersIds = useContext(ActiveDrawersContext);
|
|
9
|
-
const isVisible = !!id && activeDrawersIds.includes(id);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
const container = ref.current;
|
|
12
|
-
mountContent(container, {
|
|
13
|
-
onVisibilityChange: cb => {
|
|
14
|
-
visibilityChangeCallback.current = cb;
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
return () => {
|
|
18
|
-
unmountContent(container);
|
|
19
|
-
visibilityChangeCallback.current = null;
|
|
20
|
-
};
|
|
21
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
22
|
-
}, []);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
var _a;
|
|
25
|
-
(_a = visibilityChangeCallback.current) === null || _a === void 0 ? void 0 : _a.call(visibilityChangeCallback, isVisible);
|
|
26
|
-
}, [isVisible]);
|
|
27
|
-
return React.createElement("div", { ref: ref });
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=runtime-content-wrapper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-content-wrapper.js","sourceRoot":"","sources":["../../../../../src/internal/plugins/helpers/runtime-content-wrapper.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAWpF,MAAM,UAAU,qBAAqB,CAAC,EAAE,YAAY,EAAE,cAAc,EAAE,EAAE,EAA8B;IACpG,MAAM,GAAG,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IACzC,MAAM,wBAAwB,GAAG,MAAM,CAA4B,IAAI,CAAC,CAAC;IACzE,MAAM,gBAAgB,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAC;IAC1D,MAAM,SAAS,GAAG,CAAC,CAAC,EAAE,IAAI,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAExD,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,SAAS,GAAG,GAAG,CAAC,OAAQ,CAAC;QAC/B,YAAY,CAAC,SAAS,EAAE;YACtB,kBAAkB,EAAE,EAAE,CAAC,EAAE;gBACvB,wBAAwB,CAAC,OAAO,GAAG,EAAE,CAAC;YACxC,CAAC;SACF,CAAC,CAAC;QACH,OAAO,GAAG,EAAE;YACV,cAAc,CAAC,SAAS,CAAC,CAAC;YAC1B,wBAAwB,CAAC,OAAO,GAAG,IAAI,CAAC;QAC1C,CAAC,CAAC;QACF,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,SAAS,CAAC,GAAG,EAAE;;QACb,MAAA,wBAAwB,CAAC,OAAO,yEAAG,SAAS,CAAC,CAAC;IAChD,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IAEhB,OAAO,6BAAK,GAAG,EAAE,GAAG,GAAQ,CAAC;AAC/B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useContext, useEffect, useRef } from 'react';\n\nimport { ActiveDrawersContext } from '../../../app-layout/utils/visibility-context';\nimport { MountContentContext } from '../controllers/drawers';\n\ntype VisibilityCallback = (isVisible: boolean) => void;\n\ninterface RuntimeContentWrapperProps {\n mountContent: (container: HTMLElement, mountContent: MountContentContext) => void;\n unmountContent: (container: HTMLElement) => void;\n id?: string;\n}\n\nexport function RuntimeContentWrapper({ mountContent, unmountContent, id }: RuntimeContentWrapperProps) {\n const ref = useRef<HTMLDivElement>(null);\n const visibilityChangeCallback = useRef<VisibilityCallback | null>(null);\n const activeDrawersIds = useContext(ActiveDrawersContext);\n const isVisible = !!id && activeDrawersIds.includes(id);\n\n useEffect(() => {\n const container = ref.current!;\n mountContent(container, {\n onVisibilityChange: cb => {\n visibilityChangeCallback.current = cb;\n },\n });\n return () => {\n unmountContent(container);\n visibilityChangeCallback.current = null;\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n visibilityChangeCallback.current?.(isVisible);\n }, [isVisible]);\n\n return <div ref={ref}></div>;\n}\n"]}
|