@cloudscape-design/components 3.0.284 → 3.0.286
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/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +30 -30
- package/annotation-context/annotation/styles.selectors.js +24 -24
- package/app-layout/drawer/interfaces.d.ts +5 -1
- package/app-layout/drawer/interfaces.d.ts.map +1 -1
- package/app-layout/drawer/interfaces.js.map +1 -1
- package/app-layout/drawer/resizable-drawer.js +1 -1
- package/app-layout/drawer/resizable-drawer.js.map +1 -1
- package/app-layout/index.d.ts.map +1 -1
- package/app-layout/index.js +28 -16
- package/app-layout/index.js.map +1 -1
- package/app-layout/mobile-toolbar/index.d.ts +2 -1
- package/app-layout/mobile-toolbar/index.d.ts.map +1 -1
- package/app-layout/mobile-toolbar/index.js +2 -2
- package/app-layout/mobile-toolbar/index.js.map +1 -1
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +72 -72
- package/app-layout/visual-refresh/styles.scoped.css +275 -274
- package/app-layout/visual-refresh/styles.selectors.js +72 -72
- package/column-layout/styles.css.js +13 -13
- package/column-layout/styles.scoped.css +45 -45
- package/column-layout/styles.selectors.js +13 -13
- package/container/internal.d.ts +2 -1
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +2 -2
- package/container/internal.js.map +1 -1
- package/container/use-sticky-header.d.ts +12 -1
- package/container/use-sticky-header.d.ts.map +1 -1
- package/container/use-sticky-header.js +41 -16
- package/container/use-sticky-header.js.map +1 -1
- package/flashbar/styles.css.js +45 -45
- package/flashbar/styles.scoped.css +169 -169
- package/flashbar/styles.selectors.js +45 -45
- package/header/internal.d.ts.map +1 -1
- package/header/internal.js +4 -1
- package/header/internal.js.map +1 -1
- package/internal/base-component/styles.scoped.css +0 -3
- package/internal/context/app-layout-context.d.ts +1 -0
- package/internal/context/app-layout-context.d.ts.map +1 -1
- package/internal/context/app-layout-context.js +1 -0
- package/internal/context/app-layout-context.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +32 -31
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/generated/theming/index.cjs +0 -11
- package/internal/generated/theming/index.js +0 -11
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +3 -5
- package/table/internal.js.map +1 -1
- package/tiles/styles.css.js +28 -28
- package/tiles/styles.scoped.css +70 -70
- package/tiles/styles.selectors.js +28 -28
|
@@ -2,77 +2,77 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"appbar": "
|
|
6
|
-
"appbar-nav": "awsui_appbar-
|
|
7
|
-
"breadcrumbs": "
|
|
8
|
-
"appbar-tools": "awsui_appbar-
|
|
9
|
-
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-
|
|
10
|
-
"has-breadcrumbs": "awsui_has-
|
|
11
|
-
"has-notifications-content": "awsui_has-notifications-
|
|
12
|
-
"has-header": "awsui_has-
|
|
13
|
-
"has-dynamic-overlap-height": "awsui_has-dynamic-overlap-
|
|
14
|
-
"content-type-wizard": "awsui_content-type-
|
|
15
|
-
"content-type-cards": "awsui_content-type-
|
|
16
|
-
"content-type-table": "awsui_content-type-
|
|
17
|
-
"has-sticky-background": "awsui_has-sticky-
|
|
18
|
-
"background": "
|
|
19
|
-
"notifications-appbar-header": "awsui_notifications-appbar-
|
|
20
|
-
"sticky-notifications": "awsui_sticky-
|
|
21
|
-
"overlap": "
|
|
22
|
-
"drawers-container": "awsui_drawers-
|
|
23
|
-
"has-open-drawer": "awsui_has-open-
|
|
24
|
-
"disable-body-scroll": "awsui_disable-body-
|
|
25
|
-
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-
|
|
26
|
-
"has-multiple-triggers": "awsui_has-multiple-
|
|
27
|
-
"drawers-trigger-content": "awsui_drawers-trigger-
|
|
28
|
-
"drawers-trigger": "awsui_drawers-
|
|
29
|
-
"drawer": "
|
|
30
|
-
"drawer-close-button": "awsui_drawer-close-
|
|
31
|
-
"drawer-content": "awsui_drawer-
|
|
32
|
-
"is-drawer-open": "awsui_is-drawer-
|
|
33
|
-
"content": "
|
|
34
|
-
"layout": "
|
|
35
|
-
"has-max-content-width": "awsui_has-max-content-
|
|
36
|
-
"content-type-dashboard": "awsui_content-type-
|
|
37
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
38
|
-
"has-sticky-notifications": "awsui_has-sticky-
|
|
39
|
-
"has-split-panel": "awsui_has-split-
|
|
40
|
-
"split-panel-position-bottom": "awsui_split-panel-position-
|
|
41
|
-
"has-content-gap-left": "awsui_has-content-gap-
|
|
42
|
-
"has-content-gap-right": "awsui_has-content-gap-
|
|
43
|
-
"block-body-scroll": "awsui_block-body-
|
|
44
|
-
"container": "
|
|
45
|
-
"disable-content-paddings": "awsui_disable-content-
|
|
46
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
47
|
-
"is-tools-open": "awsui_is-tools-
|
|
48
|
-
"is-split-panel-open": "awsui_is-split-panel-
|
|
49
|
-
"split-panel-position-side": "awsui_split-panel-position-
|
|
50
|
-
"content-type-default": "awsui_content-type-
|
|
51
|
-
"content-type-form": "awsui_content-type-
|
|
52
|
-
"unfocusable": "
|
|
53
|
-
"navigation-container": "awsui_navigation-
|
|
54
|
-
"show-navigation": "awsui_show-
|
|
55
|
-
"animating": "
|
|
56
|
-
"showButtons": "
|
|
57
|
-
"navigation": "
|
|
58
|
-
"openNavigation": "
|
|
59
|
-
"animated-content": "awsui_animated-
|
|
60
|
-
"hide-navigation": "awsui_hide-
|
|
61
|
-
"notifications": "
|
|
62
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
63
|
-
"position-bottom": "awsui_position-
|
|
64
|
-
"openSplitPanelBottom": "
|
|
65
|
-
"split-panel-side": "awsui_split-panel-
|
|
66
|
-
"position-side": "awsui_position-
|
|
67
|
-
"openSplitPanelSide": "
|
|
68
|
-
"tools-container": "awsui_tools-
|
|
69
|
-
"tools": "
|
|
70
|
-
"openTools": "
|
|
71
|
-
"has-tools-form-persistence": "awsui_has-tools-form-
|
|
72
|
-
"hide-tools": "awsui_hide-
|
|
73
|
-
"show-tools": "awsui_show-
|
|
74
|
-
"has-tools-form": "awsui_has-tools-
|
|
75
|
-
"trigger": "
|
|
76
|
-
"selected": "
|
|
5
|
+
"appbar": "awsui_appbar_hyvsj_a6htg_93",
|
|
6
|
+
"appbar-nav": "awsui_appbar-nav_hyvsj_a6htg_117",
|
|
7
|
+
"breadcrumbs": "awsui_breadcrumbs_hyvsj_a6htg_121",
|
|
8
|
+
"appbar-tools": "awsui_appbar-tools_hyvsj_a6htg_125",
|
|
9
|
+
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_a6htg_126",
|
|
10
|
+
"has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_a6htg_167",
|
|
11
|
+
"has-notifications-content": "awsui_has-notifications-content_hyvsj_a6htg_175",
|
|
12
|
+
"has-header": "awsui_has-header_hyvsj_a6htg_181",
|
|
13
|
+
"has-dynamic-overlap-height": "awsui_has-dynamic-overlap-height_hyvsj_a6htg_181",
|
|
14
|
+
"content-type-wizard": "awsui_content-type-wizard_hyvsj_a6htg_182",
|
|
15
|
+
"content-type-cards": "awsui_content-type-cards_hyvsj_a6htg_185",
|
|
16
|
+
"content-type-table": "awsui_content-type-table_hyvsj_a6htg_186",
|
|
17
|
+
"has-sticky-background": "awsui_has-sticky-background_hyvsj_a6htg_189",
|
|
18
|
+
"background": "awsui_background_hyvsj_a6htg_224",
|
|
19
|
+
"notifications-appbar-header": "awsui_notifications-appbar-header_hyvsj_a6htg_227",
|
|
20
|
+
"sticky-notifications": "awsui_sticky-notifications_hyvsj_a6htg_240",
|
|
21
|
+
"overlap": "awsui_overlap_hyvsj_a6htg_246",
|
|
22
|
+
"drawers-container": "awsui_drawers-container_hyvsj_a6htg_274",
|
|
23
|
+
"has-open-drawer": "awsui_has-open-drawer_hyvsj_a6htg_286",
|
|
24
|
+
"disable-body-scroll": "awsui_disable-body-scroll_hyvsj_a6htg_320",
|
|
25
|
+
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_a6htg_325",
|
|
26
|
+
"has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_a6htg_343",
|
|
27
|
+
"drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_a6htg_375",
|
|
28
|
+
"drawers-trigger": "awsui_drawers-trigger_hyvsj_a6htg_375",
|
|
29
|
+
"drawer": "awsui_drawer_hyvsj_a6htg_126",
|
|
30
|
+
"drawer-close-button": "awsui_drawer-close-button_hyvsj_a6htg_426",
|
|
31
|
+
"drawer-content": "awsui_drawer-content_hyvsj_a6htg_431",
|
|
32
|
+
"is-drawer-open": "awsui_is-drawer-open_hyvsj_a6htg_436",
|
|
33
|
+
"content": "awsui_content_hyvsj_a6htg_182",
|
|
34
|
+
"layout": "awsui_layout_hyvsj_a6htg_534",
|
|
35
|
+
"has-max-content-width": "awsui_has-max-content-width_hyvsj_a6htg_618",
|
|
36
|
+
"content-type-dashboard": "awsui_content-type-dashboard_hyvsj_a6htg_633",
|
|
37
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_a6htg_660",
|
|
38
|
+
"has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_a6htg_667",
|
|
39
|
+
"has-split-panel": "awsui_has-split-panel_hyvsj_a6htg_681",
|
|
40
|
+
"split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_a6htg_681",
|
|
41
|
+
"has-content-gap-left": "awsui_has-content-gap-left_hyvsj_a6htg_693",
|
|
42
|
+
"has-content-gap-right": "awsui_has-content-gap-right_hyvsj_a6htg_696",
|
|
43
|
+
"block-body-scroll": "awsui_block-body-scroll_hyvsj_a6htg_711",
|
|
44
|
+
"container": "awsui_container_hyvsj_a6htg_719",
|
|
45
|
+
"disable-content-paddings": "awsui_disable-content-paddings_hyvsj_a6htg_745",
|
|
46
|
+
"is-navigation-open": "awsui_is-navigation-open_hyvsj_a6htg_750",
|
|
47
|
+
"is-tools-open": "awsui_is-tools-open_hyvsj_a6htg_753",
|
|
48
|
+
"is-split-panel-open": "awsui_is-split-panel-open_hyvsj_a6htg_753",
|
|
49
|
+
"split-panel-position-side": "awsui_split-panel-position-side_hyvsj_a6htg_753",
|
|
50
|
+
"content-type-default": "awsui_content-type-default_hyvsj_a6htg_773",
|
|
51
|
+
"content-type-form": "awsui_content-type-form_hyvsj_a6htg_773",
|
|
52
|
+
"unfocusable": "awsui_unfocusable_hyvsj_a6htg_814",
|
|
53
|
+
"navigation-container": "awsui_navigation-container_hyvsj_a6htg_824",
|
|
54
|
+
"show-navigation": "awsui_show-navigation_hyvsj_a6htg_868",
|
|
55
|
+
"animating": "awsui_animating_hyvsj_a6htg_890",
|
|
56
|
+
"showButtons": "awsui_showButtons_hyvsj_a6htg_1",
|
|
57
|
+
"navigation": "awsui_navigation_hyvsj_a6htg_824",
|
|
58
|
+
"openNavigation": "awsui_openNavigation_hyvsj_a6htg_1",
|
|
59
|
+
"animated-content": "awsui_animated-content_hyvsj_a6htg_951",
|
|
60
|
+
"hide-navigation": "awsui_hide-navigation_hyvsj_a6htg_960",
|
|
61
|
+
"notifications": "awsui_notifications_hyvsj_a6htg_227",
|
|
62
|
+
"split-panel-bottom": "awsui_split-panel-bottom_hyvsj_a6htg_1027",
|
|
63
|
+
"position-bottom": "awsui_position-bottom_hyvsj_a6htg_1073",
|
|
64
|
+
"openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_a6htg_1",
|
|
65
|
+
"split-panel-side": "awsui_split-panel-side_hyvsj_a6htg_1102",
|
|
66
|
+
"position-side": "awsui_position-side_hyvsj_a6htg_1130",
|
|
67
|
+
"openSplitPanelSide": "awsui_openSplitPanelSide_hyvsj_a6htg_1",
|
|
68
|
+
"tools-container": "awsui_tools-container_hyvsj_a6htg_1167",
|
|
69
|
+
"tools": "awsui_tools_hyvsj_a6htg_1167",
|
|
70
|
+
"openTools": "awsui_openTools_hyvsj_a6htg_1",
|
|
71
|
+
"has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_a6htg_1261",
|
|
72
|
+
"hide-tools": "awsui_hide-tools_hyvsj_a6htg_1271",
|
|
73
|
+
"show-tools": "awsui_show-tools_hyvsj_a6htg_1283",
|
|
74
|
+
"has-tools-form": "awsui_has-tools-form_hyvsj_a6htg_1261",
|
|
75
|
+
"trigger": "awsui_trigger_hyvsj_a6htg_1350",
|
|
76
|
+
"selected": "awsui_selected_hyvsj_a6htg_1389"
|
|
77
77
|
};
|
|
78
78
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"column-layout": "awsui_column-
|
|
5
|
-
"grid": "
|
|
6
|
-
"grid-no-gutters": "awsui_grid-no-
|
|
7
|
-
"grid-variant-text-grid": "awsui_grid-variant-text-
|
|
8
|
-
"grid-breakpoint-default": "awsui_grid-breakpoint-
|
|
9
|
-
"grid-columns-1": "awsui_grid-columns-
|
|
10
|
-
"grid-breakpoint-xxs": "awsui_grid-breakpoint-
|
|
11
|
-
"grid-breakpoint-xs": "awsui_grid-breakpoint-
|
|
12
|
-
"grid-columns-2": "awsui_grid-columns-
|
|
13
|
-
"grid-columns-3": "awsui_grid-columns-
|
|
14
|
-
"grid-columns-4": "awsui_grid-columns-
|
|
15
|
-
"grid-vertical-borders": "awsui_grid-vertical-
|
|
16
|
-
"grid-horizontal-borders": "awsui_grid-horizontal-
|
|
4
|
+
"column-layout": "awsui_column-layout_vvxn7_b343k_93",
|
|
5
|
+
"grid": "awsui_grid_vvxn7_b343k_106",
|
|
6
|
+
"grid-no-gutters": "awsui_grid-no-gutters_vvxn7_b343k_111",
|
|
7
|
+
"grid-variant-text-grid": "awsui_grid-variant-text-grid_vvxn7_b343k_114",
|
|
8
|
+
"grid-breakpoint-default": "awsui_grid-breakpoint-default_vvxn7_b343k_121",
|
|
9
|
+
"grid-columns-1": "awsui_grid-columns-1_vvxn7_b343k_124",
|
|
10
|
+
"grid-breakpoint-xxs": "awsui_grid-breakpoint-xxs_vvxn7_b343k_124",
|
|
11
|
+
"grid-breakpoint-xs": "awsui_grid-breakpoint-xs_vvxn7_b343k_127",
|
|
12
|
+
"grid-columns-2": "awsui_grid-columns-2_vvxn7_b343k_130",
|
|
13
|
+
"grid-columns-3": "awsui_grid-columns-3_vvxn7_b343k_136",
|
|
14
|
+
"grid-columns-4": "awsui_grid-columns-4_vvxn7_b343k_142",
|
|
15
|
+
"grid-vertical-borders": "awsui_grid-vertical-borders_vvxn7_b343k_155",
|
|
16
|
+
"grid-horizontal-borders": "awsui_grid-horizontal-borders_vvxn7_b343k_188"
|
|
17
17
|
};
|
|
18
18
|
|
|
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
div.awsui_column-
|
|
93
|
+
div.awsui_column-layout_vvxn7_b343k_93:not(#\9) {
|
|
94
94
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
95
95
|
border-collapse: separate;
|
|
96
96
|
border-spacing: 0;
|
|
@@ -129,134 +129,134 @@ div.awsui_column-layout_vvxn7_1pfow_93:not(#\9) {
|
|
|
129
129
|
-moz-osx-font-smoothing: auto;
|
|
130
130
|
word-wrap: break-word;
|
|
131
131
|
}
|
|
132
|
-
div.awsui_column-
|
|
132
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106:not(#\9) {
|
|
133
133
|
margin: calc(var(--space-grid-gutter-0subky, 20px) / -2);
|
|
134
134
|
/* stylelint-disable-next-line selector-max-universal */
|
|
135
135
|
/* stylelint-disable-next-line selector-max-universal */
|
|
136
136
|
}
|
|
137
|
-
div.awsui_column-
|
|
137
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-no-gutters_vvxn7_b343k_111:not(#\9) {
|
|
138
138
|
margin: 0;
|
|
139
139
|
}
|
|
140
|
-
div.awsui_column-
|
|
140
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114:not(#\9) {
|
|
141
141
|
/* stylelint-disable-next-line selector-max-universal */
|
|
142
|
-
margin: calc(-1 *
|
|
142
|
+
margin: calc(-1 * var(--space-grid-gutter-0subky, 20px) / 2) calc(-1 * var(--space-grid-gutter-0subky, 20px));
|
|
143
143
|
}
|
|
144
|
-
div.awsui_column-
|
|
144
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114 > *:not(#\9) {
|
|
145
145
|
border-left: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
146
146
|
}
|
|
147
|
-
div.awsui_column-
|
|
147
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114.awsui_grid-breakpoint-default_vvxn7_b343k_121 > *:not(#\9):nth-child(1n+1) {
|
|
148
148
|
border-left-width: 0;
|
|
149
149
|
}
|
|
150
|
-
div.awsui_column-
|
|
150
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114.awsui_grid-columns-1_vvxn7_b343k_124.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-child(1n+1) {
|
|
151
151
|
border-left-width: 0;
|
|
152
152
|
}
|
|
153
|
-
div.awsui_column-
|
|
153
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114.awsui_grid-columns-1_vvxn7_b343k_124.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-child(1n+1) {
|
|
154
154
|
border-left-width: 0;
|
|
155
155
|
}
|
|
156
|
-
div.awsui_column-
|
|
156
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114.awsui_grid-columns-2_vvxn7_b343k_130.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-child(2n+1) {
|
|
157
157
|
border-left-width: 0;
|
|
158
158
|
}
|
|
159
|
-
div.awsui_column-
|
|
159
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114.awsui_grid-columns-2_vvxn7_b343k_130.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-child(2n+1) {
|
|
160
160
|
border-left-width: 0;
|
|
161
161
|
}
|
|
162
|
-
div.awsui_column-
|
|
162
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114.awsui_grid-columns-3_vvxn7_b343k_136.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-child(2n+1) {
|
|
163
163
|
border-left-width: 0;
|
|
164
164
|
}
|
|
165
|
-
div.awsui_column-
|
|
165
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114.awsui_grid-columns-3_vvxn7_b343k_136.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-child(3n+1) {
|
|
166
166
|
border-left-width: 0;
|
|
167
167
|
}
|
|
168
|
-
div.awsui_column-
|
|
168
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-child(2n+1) {
|
|
169
169
|
border-left-width: 0;
|
|
170
170
|
}
|
|
171
|
-
div.awsui_column-
|
|
171
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-variant-text-grid_vvxn7_b343k_114.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-child(4n+1) {
|
|
172
172
|
border-left-width: 0;
|
|
173
173
|
}
|
|
174
|
-
div.awsui_column-
|
|
174
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106:not(#\9):not(.awsui_grid-no-gutters_vvxn7_b343k_111) > * {
|
|
175
175
|
padding: calc(var(--space-grid-gutter-0subky, 20px) / 2);
|
|
176
176
|
}
|
|
177
|
-
div.awsui_column-
|
|
177
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106:not(#\9):not(.awsui_grid-no-gutters_vvxn7_b343k_111).awsui_grid-variant-text-grid_vvxn7_b343k_114 > * {
|
|
178
178
|
padding: 0 var(--space-grid-gutter-0subky, 20px);
|
|
179
|
-
margin: var(--space-
|
|
179
|
+
margin: calc(var(--space-grid-gutter-0subky, 20px) / 2) 0;
|
|
180
180
|
}
|
|
181
|
-
div.awsui_column-
|
|
181
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155:not(#\9) {
|
|
182
182
|
/* stylelint-disable-next-line selector-max-universal */
|
|
183
183
|
}
|
|
184
|
-
div.awsui_column-
|
|
184
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155 > *:not(#\9) {
|
|
185
185
|
border-right: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
186
186
|
}
|
|
187
|
-
div.awsui_column-
|
|
187
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155.awsui_grid-breakpoint-default_vvxn7_b343k_121 > *:not(#\9):nth-child(1n) {
|
|
188
188
|
border-right-width: 0;
|
|
189
189
|
}
|
|
190
|
-
div.awsui_column-
|
|
190
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155.awsui_grid-columns-1_vvxn7_b343k_124.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-child(1n) {
|
|
191
191
|
border-right-width: 0;
|
|
192
192
|
}
|
|
193
|
-
div.awsui_column-
|
|
193
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155.awsui_grid-columns-1_vvxn7_b343k_124.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-child(1n) {
|
|
194
194
|
border-right-width: 0;
|
|
195
195
|
}
|
|
196
|
-
div.awsui_column-
|
|
196
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155.awsui_grid-columns-2_vvxn7_b343k_130.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-child(2n) {
|
|
197
197
|
border-right-width: 0;
|
|
198
198
|
}
|
|
199
|
-
div.awsui_column-
|
|
199
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155.awsui_grid-columns-2_vvxn7_b343k_130.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-child(2n) {
|
|
200
200
|
border-right-width: 0;
|
|
201
201
|
}
|
|
202
|
-
div.awsui_column-
|
|
202
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155.awsui_grid-columns-3_vvxn7_b343k_136.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-child(2n) {
|
|
203
203
|
border-right-width: 0;
|
|
204
204
|
}
|
|
205
|
-
div.awsui_column-
|
|
205
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155.awsui_grid-columns-3_vvxn7_b343k_136.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-child(3n) {
|
|
206
206
|
border-right-width: 0;
|
|
207
207
|
}
|
|
208
|
-
div.awsui_column-
|
|
208
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-child(2n) {
|
|
209
209
|
border-right-width: 0;
|
|
210
210
|
}
|
|
211
|
-
div.awsui_column-
|
|
211
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-vertical-borders_vvxn7_b343k_155.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-child(4n) {
|
|
212
212
|
border-right-width: 0;
|
|
213
213
|
}
|
|
214
|
-
div.awsui_column-
|
|
214
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188:not(#\9) {
|
|
215
215
|
/* stylelint-disable selector-max-universal */
|
|
216
216
|
/* stylelint-enable selector-max-universal */
|
|
217
217
|
}
|
|
218
|
-
div.awsui_column-
|
|
218
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188 > *:not(#\9) {
|
|
219
219
|
border-bottom: var(--border-divider-section-width-4wm2it, 2px) solid var(--color-border-divider-default-7s2wjw, #e9ebed);
|
|
220
220
|
}
|
|
221
|
-
div.awsui_column-
|
|
221
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188 > *:not(#\9):last-child {
|
|
222
222
|
border-bottom-width: 0;
|
|
223
223
|
}
|
|
224
|
-
div.awsui_column-
|
|
224
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-2_vvxn7_b343k_130.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-last-child(2):nth-child(2n+1) {
|
|
225
225
|
border-bottom-width: 0;
|
|
226
226
|
}
|
|
227
|
-
div.awsui_column-
|
|
227
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-2_vvxn7_b343k_130.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(2):nth-child(2n+1) {
|
|
228
228
|
border-bottom-width: 0;
|
|
229
229
|
}
|
|
230
|
-
div.awsui_column-
|
|
230
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-3_vvxn7_b343k_136.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-last-child(2):nth-child(2n+1) {
|
|
231
231
|
border-bottom-width: 0;
|
|
232
232
|
}
|
|
233
|
-
div.awsui_column-
|
|
233
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-3_vvxn7_b343k_136.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(2):nth-child(3n+1) {
|
|
234
234
|
border-bottom-width: 0;
|
|
235
235
|
}
|
|
236
|
-
div.awsui_column-
|
|
236
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-3_vvxn7_b343k_136.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(2):nth-child(3n+2) {
|
|
237
237
|
border-bottom-width: 0;
|
|
238
238
|
}
|
|
239
|
-
div.awsui_column-
|
|
239
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-3_vvxn7_b343k_136.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(3):nth-child(3n+1) {
|
|
240
240
|
border-bottom-width: 0;
|
|
241
241
|
}
|
|
242
|
-
div.awsui_column-
|
|
242
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xxs_vvxn7_b343k_124 > *:not(#\9):nth-last-child(2):nth-child(2n+1) {
|
|
243
243
|
border-bottom-width: 0;
|
|
244
244
|
}
|
|
245
|
-
div.awsui_column-
|
|
245
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(2):nth-child(4n+1) {
|
|
246
246
|
border-bottom-width: 0;
|
|
247
247
|
}
|
|
248
|
-
div.awsui_column-
|
|
248
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(2):nth-child(4n+2) {
|
|
249
249
|
border-bottom-width: 0;
|
|
250
250
|
}
|
|
251
|
-
div.awsui_column-
|
|
251
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(2):nth-child(4n+3) {
|
|
252
252
|
border-bottom-width: 0;
|
|
253
253
|
}
|
|
254
|
-
div.awsui_column-
|
|
254
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(3):nth-child(4n+1) {
|
|
255
255
|
border-bottom-width: 0;
|
|
256
256
|
}
|
|
257
|
-
div.awsui_column-
|
|
257
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(3):nth-child(4n+2) {
|
|
258
258
|
border-bottom-width: 0;
|
|
259
259
|
}
|
|
260
|
-
div.awsui_column-
|
|
260
|
+
div.awsui_column-layout_vvxn7_b343k_93 > .awsui_grid_vvxn7_b343k_106.awsui_grid-horizontal-borders_vvxn7_b343k_188.awsui_grid-columns-4_vvxn7_b343k_142.awsui_grid-breakpoint-xs_vvxn7_b343k_127 > *:not(#\9):nth-last-child(4):nth-child(4n+1) {
|
|
261
261
|
border-bottom-width: 0;
|
|
262
262
|
}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"column-layout": "awsui_column-
|
|
6
|
-
"grid": "
|
|
7
|
-
"grid-no-gutters": "awsui_grid-no-
|
|
8
|
-
"grid-variant-text-grid": "awsui_grid-variant-text-
|
|
9
|
-
"grid-breakpoint-default": "awsui_grid-breakpoint-
|
|
10
|
-
"grid-columns-1": "awsui_grid-columns-
|
|
11
|
-
"grid-breakpoint-xxs": "awsui_grid-breakpoint-
|
|
12
|
-
"grid-breakpoint-xs": "awsui_grid-breakpoint-
|
|
13
|
-
"grid-columns-2": "awsui_grid-columns-
|
|
14
|
-
"grid-columns-3": "awsui_grid-columns-
|
|
15
|
-
"grid-columns-4": "awsui_grid-columns-
|
|
16
|
-
"grid-vertical-borders": "awsui_grid-vertical-
|
|
17
|
-
"grid-horizontal-borders": "awsui_grid-horizontal-
|
|
5
|
+
"column-layout": "awsui_column-layout_vvxn7_b343k_93",
|
|
6
|
+
"grid": "awsui_grid_vvxn7_b343k_106",
|
|
7
|
+
"grid-no-gutters": "awsui_grid-no-gutters_vvxn7_b343k_111",
|
|
8
|
+
"grid-variant-text-grid": "awsui_grid-variant-text-grid_vvxn7_b343k_114",
|
|
9
|
+
"grid-breakpoint-default": "awsui_grid-breakpoint-default_vvxn7_b343k_121",
|
|
10
|
+
"grid-columns-1": "awsui_grid-columns-1_vvxn7_b343k_124",
|
|
11
|
+
"grid-breakpoint-xxs": "awsui_grid-breakpoint-xxs_vvxn7_b343k_124",
|
|
12
|
+
"grid-breakpoint-xs": "awsui_grid-breakpoint-xs_vvxn7_b343k_127",
|
|
13
|
+
"grid-columns-2": "awsui_grid-columns-2_vvxn7_b343k_130",
|
|
14
|
+
"grid-columns-3": "awsui_grid-columns-3_vvxn7_b343k_136",
|
|
15
|
+
"grid-columns-4": "awsui_grid-columns-4_vvxn7_b343k_142",
|
|
16
|
+
"grid-vertical-borders": "awsui_grid-vertical-borders_vvxn7_b343k_155",
|
|
17
|
+
"grid-horizontal-borders": "awsui_grid-horizontal-borders_vvxn7_b343k_188"
|
|
18
18
|
};
|
|
19
19
|
|
package/container/internal.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component
|
|
|
4
4
|
export interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {
|
|
5
5
|
__stickyHeader?: boolean;
|
|
6
6
|
__stickyOffset?: number;
|
|
7
|
+
__mobileStickyOffset?: number;
|
|
7
8
|
__disableFooterDivider?: boolean;
|
|
8
9
|
__disableFooterPaddings?: boolean;
|
|
9
10
|
__hiddenContent?: boolean;
|
|
@@ -19,5 +20,5 @@ export interface InternalContainerProps extends Omit<ContainerProps, 'variant'>,
|
|
|
19
20
|
*/
|
|
20
21
|
variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';
|
|
21
22
|
}
|
|
22
|
-
export default function InternalContainer({ header, footer, children, variant, disableHeaderPaddings, disableContentPaddings, fitHeight, __stickyOffset, __stickyHeader, __internalRootRef, __disableFooterDivider, __disableFooterPaddings, __hiddenContent, __headerRef, __headerId, __darkHeader, __disableStickyMobile, ...restProps }: InternalContainerProps): JSX.Element;
|
|
23
|
+
export default function InternalContainer({ header, footer, children, variant, disableHeaderPaddings, disableContentPaddings, fitHeight, __stickyOffset, __mobileStickyOffset, __stickyHeader, __internalRootRef, __disableFooterDivider, __disableFooterPaddings, __hiddenContent, __headerRef, __headerId, __darkHeader, __disableStickyMobile, ...restProps }: InternalContainerProps): JSX.Element;
|
|
23
24
|
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAQlF,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,EAAE,0BAA0B;IACzG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;CAC1E;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAmB,EACnB,qBAA6B,EAC7B,sBAA8B,EAC9B,SAAS,EACT,cAAc,EACd,cAAsB,EACtB,iBAAwB,EACxB,sBAA8B,EAC9B,uBAA+B,EAC/B,eAAuB,EACvB,WAAW,EACX,UAAU,EACV,YAAoB,EACpB,qBAA4B,EAC5B,GAAG,SAAS,EACb,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAQlF,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC,EAAE,0BAA0B;IACzG,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;CAC1E;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,OAAmB,EACnB,qBAA6B,EAC7B,sBAA8B,EAC9B,SAAS,EACT,cAAc,EACd,oBAAoB,EACpB,cAAsB,EACtB,iBAAwB,EACxB,sBAA8B,EAC9B,uBAA+B,EAC/B,eAAuB,EACvB,WAAW,EACX,UAAU,EACV,YAAoB,EACpB,qBAA4B,EAC5B,GAAG,SAAS,EACb,EAAE,sBAAsB,eAmGxB"}
|
package/container/internal.js
CHANGED
|
@@ -12,12 +12,12 @@ import { useMobile } from '../internal/hooks/use-mobile';
|
|
|
12
12
|
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
13
13
|
import styles from './styles.css.js';
|
|
14
14
|
export default function InternalContainer(_a) {
|
|
15
|
-
var { header, footer, children, variant = 'default', disableHeaderPaddings = false, disableContentPaddings = false, fitHeight, __stickyOffset, __stickyHeader = false, __internalRootRef = null, __disableFooterDivider = false, __disableFooterPaddings = false, __hiddenContent = false, __headerRef, __headerId, __darkHeader = false, __disableStickyMobile = true } = _a, restProps = __rest(_a, ["header", "footer", "children", "variant", "disableHeaderPaddings", "disableContentPaddings", "fitHeight", "__stickyOffset", "__stickyHeader", "__internalRootRef", "__disableFooterDivider", "__disableFooterPaddings", "__hiddenContent", "__headerRef", "__headerId", "__darkHeader", "__disableStickyMobile"]);
|
|
15
|
+
var { header, footer, children, variant = 'default', disableHeaderPaddings = false, disableContentPaddings = false, fitHeight, __stickyOffset, __mobileStickyOffset, __stickyHeader = false, __internalRootRef = null, __disableFooterDivider = false, __disableFooterPaddings = false, __hiddenContent = false, __headerRef, __headerId, __darkHeader = false, __disableStickyMobile = true } = _a, restProps = __rest(_a, ["header", "footer", "children", "variant", "disableHeaderPaddings", "disableContentPaddings", "fitHeight", "__stickyOffset", "__mobileStickyOffset", "__stickyHeader", "__internalRootRef", "__disableFooterDivider", "__disableFooterPaddings", "__hiddenContent", "__headerRef", "__headerId", "__darkHeader", "__disableStickyMobile"]);
|
|
16
16
|
const isMobile = useMobile();
|
|
17
17
|
const baseProps = getBaseProps(restProps);
|
|
18
18
|
const rootRef = useRef(null);
|
|
19
19
|
const headerRef = useRef(null);
|
|
20
|
-
const { isSticky, isStuck, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset, __disableStickyMobile);
|
|
20
|
+
const { isSticky, isStuck, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset, __mobileStickyOffset, __disableStickyMobile);
|
|
21
21
|
const { setHasStickyBackground } = useAppLayoutContext();
|
|
22
22
|
const isRefresh = useVisualRefresh();
|
|
23
23
|
const hasDynamicHeight = isRefresh && variant === 'full-page';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE7E,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["container/internal.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useEffect, useRef } from 'react';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { useAppLayoutContext } from '../internal/context/app-layout-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../internal/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useMobile } from '../internal/hooks/use-mobile';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport styles from './styles.css.js';\n\nexport interface InternalContainerProps extends Omit<ContainerProps, 'variant'>, InternalBaseComponentProps {\n __stickyHeader?: boolean;\n __stickyOffset?: number;\n __mobileStickyOffset?: number;\n __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __headerId?: string;\n __darkHeader?: boolean;\n __disableStickyMobile?: boolean;\n /**\n * Additional internal variant:\n * * `embedded` - Use this variant within a parent container (such as a modal,\n * expandable section, container or split panel).\n * * `full-page` – Only for internal use in table, cards and other components\n */\n variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';\n}\n\nexport default function InternalContainer({\n header,\n footer,\n children,\n variant = 'default',\n disableHeaderPaddings = false,\n disableContentPaddings = false,\n fitHeight,\n __stickyOffset,\n __mobileStickyOffset,\n __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __headerId,\n __darkHeader = false,\n __disableStickyMobile = true,\n ...restProps\n}: InternalContainerProps) {\n const isMobile = useMobile();\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(\n rootRef,\n headerRef,\n __stickyHeader,\n __stickyOffset,\n __mobileStickyOffset,\n __disableStickyMobile\n );\n const { setHasStickyBackground } = useAppLayoutContext();\n const isRefresh = useVisualRefresh();\n\n const hasDynamicHeight = isRefresh && variant === 'full-page';\n const overlapElement = useDynamicOverlap({ disabled: !hasDynamicHeight || !__darkHeader });\n\n const mergedRef = useMergeRefs(rootRef, __internalRootRef);\n const headerMergedRef = useMergeRefs(headerRef, overlapElement, __headerRef);\n const headerIdProp = __headerId ? { id: __headerId } : {};\n\n /**\n * The visual refresh AppLayout component needs to know if a child component\n * has a high contrast sticky header. This is to make sure the background element\n * stays in the same vertical position as the header content.\n */\n useEffect(() => {\n const shouldUpdateStickyBackground = isSticky && variant === 'full-page' && setHasStickyBackground;\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return () => {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n }, [isSticky, setHasStickyBackground, variant]);\n\n // The container is only sticky on mobile if it is the header for the table.\n // In this case we don't want the container to have sticky styles, as only the table header row will show as stuck on scroll.\n const shouldHaveStickyStyles = isSticky && !isMobile;\n\n return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['fit-height'],\n shouldHaveStickyStyles && [styles['sticky-enabled']]\n )}\n ref={mergedRef}\n >\n {header && (\n <StickyHeaderContext.Provider value={{ isStuck }}>\n <div\n className={clsx(styles.header, styles[`header-variant-${variant}`], {\n [styles['header-sticky-disabled']]: __stickyHeader && !isSticky,\n [styles['header-sticky-enabled']]: isSticky,\n [styles['header-dynamic-height']]: hasDynamicHeight,\n [styles['header-stuck']]: isStuck,\n [styles['with-paddings']]: !disableHeaderPaddings,\n [styles['with-hidden-content']]: !children || __hiddenContent,\n })}\n {...headerIdProp}\n {...stickyStyles}\n ref={headerMergedRef}\n >\n {__darkHeader ? (\n <div className={clsx(styles['dark-header'], 'awsui-context-content-header')}>{header}</div>\n ) : (\n header\n )}\n </div>\n </StickyHeaderContext.Provider>\n )}\n <div\n className={clsx(styles.content, {\n [styles['with-paddings']]: !disableContentPaddings,\n })}\n >\n {children}\n </div>\n {footer && (\n <div\n className={clsx(styles.footer, {\n [styles['with-divider']]: !__disableFooterDivider,\n [styles['with-paddings']]: !__disableFooterPaddings,\n })}\n >\n {footer}\n </div>\n )}\n </div>\n );\n}\n"]}
|
|
@@ -2,8 +2,19 @@ import { RefObject } from 'react';
|
|
|
2
2
|
interface StickyHeaderContextProps {
|
|
3
3
|
isStuck: boolean;
|
|
4
4
|
}
|
|
5
|
+
interface ComputeOffsetProps {
|
|
6
|
+
isMobile: boolean;
|
|
7
|
+
isVisualRefresh: boolean;
|
|
8
|
+
customCssProps: Record<string, string>;
|
|
9
|
+
__stickyOffset?: number;
|
|
10
|
+
__mobileStickyOffset?: number;
|
|
11
|
+
mobileBarHeight?: number;
|
|
12
|
+
stickyOffsetTop: number;
|
|
13
|
+
hasInnerOverflowParents: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare function computeOffset({ isMobile, isVisualRefresh, customCssProps, __stickyOffset, __mobileStickyOffset, mobileBarHeight, stickyOffsetTop, hasInnerOverflowParents, }: ComputeOffsetProps): string;
|
|
5
16
|
export declare const StickyHeaderContext: import("react").Context<StickyHeaderContextProps>;
|
|
6
|
-
export declare const useStickyHeader: (rootRef: RefObject<HTMLDivElement>, headerRef: RefObject<HTMLDivElement>, __stickyHeader?: boolean, __stickyOffset?: number, __disableMobile?: boolean) => {
|
|
17
|
+
export declare const useStickyHeader: (rootRef: RefObject<HTMLDivElement>, headerRef: RefObject<HTMLDivElement>, __stickyHeader?: boolean, __stickyOffset?: number, __mobileStickyOffset?: number, __disableMobile?: boolean) => {
|
|
7
18
|
isSticky: boolean;
|
|
8
19
|
isStuck: boolean;
|
|
9
20
|
stickyStyles: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-sticky-header.d.ts","sourceRoot":"lib/default/","sources":["container/use-sticky-header.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAoE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"use-sticky-header.d.ts","sourceRoot":"lib/default/","sources":["container/use-sticky-header.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAoE,MAAM,OAAO,CAAC;AAOpG,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,OAAO,CAAC;CAClC;AAED,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,eAAe,EACf,cAAc,EACd,cAAc,EACd,oBAAoB,EACpB,eAAmB,EACnB,eAAe,EACf,uBAAuB,GACxB,EAAE,kBAAkB,UA8BpB;AAED,eAAO,MAAM,mBAAmB,mDAE9B,CAAC;AAEH,eAAO,MAAM,eAAe,YACjB,UAAU,cAAc,CAAC,aACvB,UAAU,cAAc,CAAC,mBACnB,OAAO,mBACP,MAAM,yBACA,MAAM;;;;;;;;;;CAyE9B,CAAC"}
|