@cloudscape-design/components-themeable 3.0.651 → 3.0.653
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/skeleton/styles.scss +82 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +51 -51
- package/lib/internal/scss/split-panel/styles.scss +1 -0
- package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
- package/lib/internal/template/annotation-context/annotation/styles.scoped.css +31 -31
- package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
- package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
- package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
- package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/skeleton/index.d.ts +4 -0
- package/lib/internal/template/app-layout/skeleton/index.d.ts.map +1 -0
- package/lib/internal/template/app-layout/skeleton/index.js +10 -0
- package/lib/internal/template/app-layout/skeleton/index.js.map +1 -0
- package/lib/internal/template/app-layout/skeleton/layout.d.ts +8 -0
- package/lib/internal/template/app-layout/skeleton/layout.d.ts.map +1 -0
- package/lib/internal/template/app-layout/skeleton/layout.js +27 -0
- package/lib/internal/template/app-layout/skeleton/layout.js.map +1 -0
- package/lib/internal/template/app-layout/skeleton/styles.css.js +16 -0
- package/lib/internal/template/app-layout/skeleton/styles.scoped.css +180 -0
- package/lib/internal/template/app-layout/skeleton/styles.selectors.js +17 -0
- package/lib/internal/template/app-layout/visual-refresh/main.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/main.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh/main.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +81 -81
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +81 -81
- package/lib/internal/template/flashbar/styles.css.js +47 -47
- package/lib/internal/template/flashbar/styles.scoped.css +171 -171
- package/lib/internal/template/flashbar/styles.selectors.js +47 -47
- package/lib/internal/template/internal/base-component/styles.scoped.css +3 -0
- package/lib/internal/template/internal/components/dropdown/styles.css.js +20 -20
- package/lib/internal/template/internal/components/dropdown/styles.scoped.css +41 -41
- package/lib/internal/template/internal/components/dropdown/styles.selectors.js +20 -20
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/internal/generated/custom-css-properties/index.js +51 -51
- package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +1 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +11 -0
- package/lib/internal/template/internal/generated/theming/index.js +11 -0
- package/lib/internal/template/internal/hooks/use-performance-marks.d.ts.map +1 -1
- package/lib/internal/template/internal/hooks/use-performance-marks.js +4 -2
- package/lib/internal/template/internal/hooks/use-performance-marks.js.map +1 -1
- package/lib/internal/template/internal/utils/dom.d.ts.map +1 -1
- package/lib/internal/template/internal/utils/dom.js +3 -1
- package/lib/internal/template/internal/utils/dom.js.map +1 -1
- package/lib/internal/template/progress-bar/index.d.ts +1 -1
- package/lib/internal/template/progress-bar/index.d.ts.map +1 -1
- package/lib/internal/template/progress-bar/index.js +6 -4
- package/lib/internal/template/progress-bar/index.js.map +1 -1
- package/lib/internal/template/progress-bar/interfaces.d.ts +4 -0
- package/lib/internal/template/progress-bar/interfaces.d.ts.map +1 -1
- package/lib/internal/template/progress-bar/interfaces.js.map +1 -1
- package/lib/internal/template/progress-bar/internal.d.ts +4 -2
- package/lib/internal/template/progress-bar/internal.d.ts.map +1 -1
- package/lib/internal/template/progress-bar/internal.js +4 -4
- package/lib/internal/template/progress-bar/internal.js.map +1 -1
- package/lib/internal/template/slider/styles.css.js +25 -25
- package/lib/internal/template/slider/styles.scoped.css +71 -71
- package/lib/internal/template/slider/styles.selectors.js +25 -25
- package/lib/internal/template/spinner/styles.css.js +13 -13
- package/lib/internal/template/spinner/styles.scoped.css +39 -39
- package/lib/internal/template/spinner/styles.selectors.js +13 -13
- package/lib/internal/template/split-panel/icons/resize-handler.d.ts.map +1 -1
- package/lib/internal/template/split-panel/icons/resize-handler.js +1 -1
- package/lib/internal/template/split-panel/icons/resize-handler.js.map +1 -1
- package/lib/internal/template/split-panel/styles.css.js +57 -57
- package/lib/internal/template/split-panel/styles.scoped.css +78 -77
- package/lib/internal/template/split-panel/styles.selectors.js +57 -57
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
import './styles.scoped.css';
|
|
3
|
+
export default {
|
|
4
|
+
"root": "awsui_root_1uxbz_1e1zw_103",
|
|
5
|
+
"has-adaptive-widths-default": "awsui_has-adaptive-widths-default_1uxbz_1e1zw_111",
|
|
6
|
+
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-dashboard_1uxbz_1e1zw_126",
|
|
7
|
+
"main-landmark": "awsui_main-landmark_1uxbz_1e1zw_141",
|
|
8
|
+
"navigation": "awsui_navigation_1uxbz_1e1zw_145",
|
|
9
|
+
"tools": "awsui_tools_1uxbz_1e1zw_150",
|
|
10
|
+
"top-bar": "awsui_top-bar_1uxbz_1e1zw_155",
|
|
11
|
+
"notifications": "awsui_notifications_1uxbz_1e1zw_161",
|
|
12
|
+
"main": "awsui_main_1uxbz_1e1zw_141",
|
|
13
|
+
"main-disable-paddings": "awsui_main-disable-paddings_1uxbz_1e1zw_173",
|
|
14
|
+
"content-header": "awsui_content-header_1uxbz_1e1zw_178"
|
|
15
|
+
};
|
|
16
|
+
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/* stylelint-disable plugin/no-unsupported-browser-features */
|
|
6
|
+
/* stylelint-enable plugin/no-unsupported-browser-features */
|
|
7
|
+
/*
|
|
8
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
9
|
+
SPDX-License-Identifier: Apache-2.0
|
|
10
|
+
*/
|
|
11
|
+
/*
|
|
12
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
13
|
+
SPDX-License-Identifier: Apache-2.0
|
|
14
|
+
*/
|
|
15
|
+
/*
|
|
16
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
17
|
+
SPDX-License-Identifier: Apache-2.0
|
|
18
|
+
*/
|
|
19
|
+
/*
|
|
20
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
21
|
+
SPDX-License-Identifier: Apache-2.0
|
|
22
|
+
*/
|
|
23
|
+
/*
|
|
24
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
25
|
+
SPDX-License-Identifier: Apache-2.0
|
|
26
|
+
*/
|
|
27
|
+
/*
|
|
28
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
29
|
+
SPDX-License-Identifier: Apache-2.0
|
|
30
|
+
*/
|
|
31
|
+
/*
|
|
32
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
33
|
+
SPDX-License-Identifier: Apache-2.0
|
|
34
|
+
*/
|
|
35
|
+
/*
|
|
36
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
37
|
+
SPDX-License-Identifier: Apache-2.0
|
|
38
|
+
*/
|
|
39
|
+
/*
|
|
40
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
41
|
+
SPDX-License-Identifier: Apache-2.0
|
|
42
|
+
*/
|
|
43
|
+
/*
|
|
44
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
45
|
+
SPDX-License-Identifier: Apache-2.0
|
|
46
|
+
*/
|
|
47
|
+
/*
|
|
48
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
49
|
+
SPDX-License-Identifier: Apache-2.0
|
|
50
|
+
*/
|
|
51
|
+
/*
|
|
52
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
53
|
+
SPDX-License-Identifier: Apache-2.0
|
|
54
|
+
*/
|
|
55
|
+
/*
|
|
56
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
57
|
+
SPDX-License-Identifier: Apache-2.0
|
|
58
|
+
*/
|
|
59
|
+
/*
|
|
60
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
61
|
+
SPDX-License-Identifier: Apache-2.0
|
|
62
|
+
*/
|
|
63
|
+
/*
|
|
64
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
65
|
+
SPDX-License-Identifier: Apache-2.0
|
|
66
|
+
*/
|
|
67
|
+
/*
|
|
68
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
69
|
+
SPDX-License-Identifier: Apache-2.0
|
|
70
|
+
*/
|
|
71
|
+
/* stylelint-disable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
72
|
+
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
73
|
+
/*
|
|
74
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
75
|
+
SPDX-License-Identifier: Apache-2.0
|
|
76
|
+
*/
|
|
77
|
+
/*
|
|
78
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
79
|
+
SPDX-License-Identifier: Apache-2.0
|
|
80
|
+
*/
|
|
81
|
+
/*
|
|
82
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
83
|
+
SPDX-License-Identifier: Apache-2.0
|
|
84
|
+
*/
|
|
85
|
+
/*
|
|
86
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
87
|
+
SPDX-License-Identifier: Apache-2.0
|
|
88
|
+
*/
|
|
89
|
+
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
90
|
+
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
91
|
+
/*
|
|
92
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
93
|
+
SPDX-License-Identifier: Apache-2.0
|
|
94
|
+
*/
|
|
95
|
+
/*
|
|
96
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
97
|
+
SPDX-License-Identifier: Apache-2.0
|
|
98
|
+
*/
|
|
99
|
+
/*
|
|
100
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
101
|
+
SPDX-License-Identifier: Apache-2.0
|
|
102
|
+
*/
|
|
103
|
+
.awsui_root_1uxbz_1e1zw_103:not(#\9) {
|
|
104
|
+
--awsui-max-content-width-epuq3n: 100%;
|
|
105
|
+
display: grid;
|
|
106
|
+
grid-template-areas: "navigation topBar topBar topBar tools" "navigation . notifications . tools" "navigation . main . tools";
|
|
107
|
+
grid-template-columns: min-content minmax(var(--space-layout-content-horizontal-sin989, 40px), 1fr) minmax(var(--awsui-min-content-width-epuq3n), var(--awsui-max-content-width-epuq3n)) minmax(var(--space-layout-content-horizontal-sin989, 40px), 1fr) min-content;
|
|
108
|
+
grid-template-rows: min-content min-content 1fr min-content;
|
|
109
|
+
}
|
|
110
|
+
@media (min-width: 1401px) {
|
|
111
|
+
.awsui_root_1uxbz_1e1zw_103.awsui_has-adaptive-widths-default_1uxbz_1e1zw_111:not(#\9) {
|
|
112
|
+
--awsui-max-content-width-epuq3n: 1280px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
@media (min-width: 1921px) {
|
|
116
|
+
.awsui_root_1uxbz_1e1zw_103.awsui_has-adaptive-widths-default_1uxbz_1e1zw_111:not(#\9) {
|
|
117
|
+
--awsui-max-content-width-epuq3n: 1440px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
@media (min-width: 2541px) {
|
|
121
|
+
.awsui_root_1uxbz_1e1zw_103.awsui_has-adaptive-widths-default_1uxbz_1e1zw_111:not(#\9) {
|
|
122
|
+
--awsui-max-content-width-epuq3n: 1620px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
@media (min-width: 1401px) {
|
|
126
|
+
.awsui_root_1uxbz_1e1zw_103.awsui_has-adaptive-widths-dashboard_1uxbz_1e1zw_126:not(#\9) {
|
|
127
|
+
--awsui-max-content-width-epuq3n: 1280px;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
@media (min-width: 1921px) {
|
|
131
|
+
.awsui_root_1uxbz_1e1zw_103.awsui_has-adaptive-widths-dashboard_1uxbz_1e1zw_126:not(#\9) {
|
|
132
|
+
--awsui-max-content-width-epuq3n: 1620px;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
@media (min-width: 2541px) {
|
|
136
|
+
.awsui_root_1uxbz_1e1zw_103.awsui_has-adaptive-widths-dashboard_1uxbz_1e1zw_126:not(#\9) {
|
|
137
|
+
--awsui-max-content-width-epuq3n: 2160px;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.awsui_main-landmark_1uxbz_1e1zw_141:not(#\9) {
|
|
142
|
+
display: contents;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.awsui_navigation_1uxbz_1e1zw_145:not(#\9) {
|
|
146
|
+
grid-area: navigation;
|
|
147
|
+
border-inline-end: 1px solid var(--color-border-divider-panel-side-btgups, transparent);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.awsui_tools_1uxbz_1e1zw_150:not(#\9) {
|
|
151
|
+
grid-area: tools;
|
|
152
|
+
border-inline-start: 1px solid var(--color-border-divider-panel-side-btgups, transparent);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.awsui_top-bar_1uxbz_1e1zw_155:not(#\9) {
|
|
156
|
+
grid-area: topBar;
|
|
157
|
+
block-size: 48px;
|
|
158
|
+
border-block-end: 1px solid var(--color-border-divider-panel-bottom-sc2k0v, rgba(0, 28, 36, 0.15));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.awsui_notifications_1uxbz_1e1zw_161:not(#\9) {
|
|
162
|
+
grid-area: notifications;
|
|
163
|
+
}
|
|
164
|
+
.awsui_notifications_1uxbz_1e1zw_161:not(#\9):not(:empty) {
|
|
165
|
+
padding-block-start: var(--space-scaled-xs-x91h81, 8px);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.awsui_main_1uxbz_1e1zw_141:not(#\9) {
|
|
169
|
+
grid-area: main;
|
|
170
|
+
margin-block-start: var(--space-scaled-s-9q8n2q, 12px);
|
|
171
|
+
margin-block-end: var(--space-layout-content-bottom-ve4osc, 20px);
|
|
172
|
+
}
|
|
173
|
+
.awsui_main-disable-paddings_1uxbz_1e1zw_173:not(#\9) {
|
|
174
|
+
grid-column: 2/span 3;
|
|
175
|
+
margin-block: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.awsui_content-header_1uxbz_1e1zw_178:not(#\9) {
|
|
179
|
+
margin-block-end: var(--space-content-header-padding-bottom-d3iv03, 16px);
|
|
180
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"root": "awsui_root_1uxbz_1e1zw_103",
|
|
6
|
+
"has-adaptive-widths-default": "awsui_has-adaptive-widths-default_1uxbz_1e1zw_111",
|
|
7
|
+
"has-adaptive-widths-dashboard": "awsui_has-adaptive-widths-dashboard_1uxbz_1e1zw_126",
|
|
8
|
+
"main-landmark": "awsui_main-landmark_1uxbz_1e1zw_141",
|
|
9
|
+
"navigation": "awsui_navigation_1uxbz_1e1zw_145",
|
|
10
|
+
"tools": "awsui_tools_1uxbz_1e1zw_150",
|
|
11
|
+
"top-bar": "awsui_top-bar_1uxbz_1e1zw_155",
|
|
12
|
+
"notifications": "awsui_notifications_1uxbz_1e1zw_161",
|
|
13
|
+
"main": "awsui_main_1uxbz_1e1zw_141",
|
|
14
|
+
"main-disable-paddings": "awsui_main-disable-paddings_1uxbz_1e1zw_173",
|
|
15
|
+
"content-header": "awsui_content-header_1uxbz_1e1zw_178"
|
|
16
|
+
};
|
|
17
|
+
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/main.tsx"],"names":[],"mappings":";AAWA,MAAM,CAAC,OAAO,UAAU,IAAI,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/main.tsx"],"names":[],"mappings":";AAWA,MAAM,CAAC,OAAO,UAAU,IAAI,gBA4D3B"}
|
|
@@ -9,7 +9,7 @@ import styles from './styles.css.js';
|
|
|
9
9
|
import testutilStyles from '../test-classes/styles.css.js';
|
|
10
10
|
import * as tokens from '../../internal/generated/styles/tokens';
|
|
11
11
|
export default function Main() {
|
|
12
|
-
const { content, disableBodyScroll, disableContentPaddings, footerHeight, hasDrawerViewportOverlay, navigationOpen, placement, hasBackgroundOverlap, isMobile, isSplitPanelOpen, isToolsOpen, mainElement, notificationsHeight, stickyNotifications, offsetBottom, splitPanelDisplayed, splitPanelPosition, activeDrawerId, } = useAppLayoutInternals();
|
|
12
|
+
const { content, disableBodyScroll, disableContentPaddings, footerHeight, hasDrawerViewportOverlay, navigationOpen, placement, hasBackgroundOverlap, isMobile, isSplitPanelOpen, isToolsOpen, mainElement, notificationsHeight, stickyNotifications, offsetBottom, splitPanelDisplayed, splitPanelPosition, activeDrawerId, hasStickyBackground, } = useAppLayoutInternals();
|
|
13
13
|
const splitPanelHeight = offsetBottom - footerHeight;
|
|
14
14
|
return (React.createElement("div", { className: clsx(styles.container, styles[`split-panel-position-${splitPanelPosition !== null && splitPanelPosition !== void 0 ? splitPanelPosition : 'bottom'}`], {
|
|
15
15
|
[styles['disable-content-paddings']]: disableContentPaddings,
|
|
@@ -21,6 +21,6 @@ export default function Main() {
|
|
|
21
21
|
[styles.unfocusable]: hasDrawerViewportOverlay,
|
|
22
22
|
}, testutilStyles.content), ref: mainElement, style: Object.assign({ [customCssProps.splitPanelHeight]: `${splitPanelHeight}px` }, getStickyOffsetVars(placement.insetBlockStart, offsetBottom, stickyNotifications && notificationsHeight > 0
|
|
23
23
|
? `${tokens.spaceXs} + ${notificationsHeight}px + ${!hasBackgroundOverlap ? tokens.spaceXxxs : '0px'}`
|
|
24
|
-
: '0px', `var(${customCssProps.mobileBarHeight})`, !!disableBodyScroll, isMobile, hasBackgroundOverlap && !isMobile ? tokens.spaceScaledS : '0px')) }, content));
|
|
24
|
+
: '0px', `var(${customCssProps.mobileBarHeight})`, !!disableBodyScroll, isMobile, hasBackgroundOverlap && hasStickyBackground && !isMobile ? tokens.spaceScaledS : '0px')) }, content));
|
|
25
25
|
}
|
|
26
26
|
//# sourceMappingURL=main.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/main.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,cAAc,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,wCAAwC,CAAC;AAEjE,MAAM,CAAC,OAAO,UAAU,IAAI;IAC1B,MAAM,EACJ,OAAO,EACP,iBAAiB,EACjB,sBAAsB,EACtB,YAAY,EACZ,wBAAwB,EACxB,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../../src/app-layout/visual-refresh/main.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,cAAc,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,wCAAwC,CAAC;AAEjE,MAAM,CAAC,OAAO,UAAU,IAAI;IAC1B,MAAM,EACJ,OAAO,EACP,iBAAiB,EACjB,sBAAsB,EACtB,YAAY,EACZ,wBAAwB,EACxB,cAAc,EACd,SAAS,EACT,oBAAoB,EACpB,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,mBAAmB,GACpB,GAAG,qBAAqB,EAAE,CAAC;IAE5B,MAAM,gBAAgB,GAAG,YAAY,GAAG,YAAY,CAAC;IAErD,OAAO,CACL,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,SAAS,EAChB,MAAM,CAAC,wBAAwB,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,QAAQ,EAAE,CAAC,EAChE;YACE,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,EAAE,sBAAsB;YAC5D,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,EAAE,mBAAmB;YAChD,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC,EAAE,cAAc;YAC9C,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,WAAW;YACtC,CAAC,MAAM,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,cAAc;YAC/C,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,EAAE,gBAAgB;YACjD,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,wBAAwB;SAC/C,EACD,cAAc,CAAC,OAAO,CACvB,EACD,GAAG,EAAE,WAAW,EAChB,KAAK,kBACH,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,GAAG,gBAAgB,IAAI,IACvD,mBAAmB,CACpB,SAAS,CAAC,eAAe,EACzB,YAAY,EACZ,mBAAmB,IAAI,mBAAmB,GAAG,CAAC;YAC5C,CAAC,CAAC,GAAG,MAAM,CAAC,OAAO,MAAM,mBAAmB,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE;YACtG,CAAC,CAAC,KAAK,EACT,OAAO,cAAc,CAAC,eAAe,GAAG,EACxC,CAAC,CAAC,iBAAiB,EACnB,QAAQ,EACR,oBAAoB,IAAI,mBAAmB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CACvF,KAGF,OAAO,CACJ,CACP,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';\nimport clsx from 'clsx';\nimport { useAppLayoutInternals } from './context';\nimport customCssProps from '../../internal/generated/custom-css-properties';\nimport { getStickyOffsetVars } from '../utils/sticky-offsets';\nimport styles from './styles.css.js';\nimport testutilStyles from '../test-classes/styles.css.js';\nimport * as tokens from '../../internal/generated/styles/tokens';\n\nexport default function Main() {\n const {\n content,\n disableBodyScroll,\n disableContentPaddings,\n footerHeight,\n hasDrawerViewportOverlay,\n navigationOpen,\n placement,\n hasBackgroundOverlap,\n isMobile,\n isSplitPanelOpen,\n isToolsOpen,\n mainElement,\n notificationsHeight,\n stickyNotifications,\n offsetBottom,\n splitPanelDisplayed,\n splitPanelPosition,\n activeDrawerId,\n hasStickyBackground,\n } = useAppLayoutInternals();\n\n const splitPanelHeight = offsetBottom - footerHeight;\n\n return (\n <div\n className={clsx(\n styles.container,\n styles[`split-panel-position-${splitPanelPosition ?? 'bottom'}`],\n {\n [styles['disable-content-paddings']]: disableContentPaddings,\n [styles['has-split-panel']]: splitPanelDisplayed,\n [styles['is-navigation-open']]: navigationOpen,\n [styles['is-tools-open']]: isToolsOpen,\n [styles['has-active-drawer']]: !!activeDrawerId,\n [styles['is-split-panel-open']]: isSplitPanelOpen,\n [styles.unfocusable]: hasDrawerViewportOverlay,\n },\n testutilStyles.content\n )}\n ref={mainElement}\n style={{\n [customCssProps.splitPanelHeight]: `${splitPanelHeight}px`,\n ...getStickyOffsetVars(\n placement.insetBlockStart,\n offsetBottom,\n stickyNotifications && notificationsHeight > 0\n ? `${tokens.spaceXs} + ${notificationsHeight}px + ${!hasBackgroundOverlap ? tokens.spaceXxxs : '0px'}`\n : '0px',\n `var(${customCssProps.mobileBarHeight})`,\n !!disableBodyScroll,\n isMobile,\n hasBackgroundOverlap && hasStickyBackground && !isMobile ? tokens.spaceScaledS : '0px'\n ),\n }}\n >\n {content}\n </div>\n );\n}\n"]}
|
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"background": "
|
|
5
|
-
"scrolling-background": "awsui_scrolling-
|
|
6
|
-
"sticky-background": "awsui_sticky-
|
|
7
|
-
"has-sticky-notifications": "awsui_has-sticky-
|
|
8
|
-
"breadcrumbs": "
|
|
9
|
-
"has-sticky-background": "awsui_has-sticky-
|
|
10
|
-
"drawers-container": "awsui_drawers-
|
|
11
|
-
"has-open-drawer": "awsui_has-open-
|
|
12
|
-
"disable-body-scroll": "awsui_disable-body-
|
|
13
|
-
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-
|
|
14
|
-
"has-multiple-triggers": "awsui_has-multiple-
|
|
15
|
-
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-
|
|
16
|
-
"drawers-trigger-content": "awsui_drawers-trigger-
|
|
17
|
-
"drawers-trigger-overflow": "awsui_drawers-trigger-
|
|
18
|
-
"drawers-trigger": "awsui_drawers-
|
|
19
|
-
"drawer": "
|
|
20
|
-
"drawer-content-container": "awsui_drawer-content-
|
|
21
|
-
"drawer-close-button": "awsui_drawer-close-
|
|
22
|
-
"drawer-content": "awsui_drawer-
|
|
23
|
-
"drawer-content-hidden": "awsui_drawer-content-
|
|
24
|
-
"drawer-slider": "awsui_drawer-
|
|
25
|
-
"is-drawer-open": "awsui_is-drawer-
|
|
26
|
-
"content": "
|
|
27
|
-
"layout": "
|
|
28
|
-
"has-max-content-width": "awsui_has-max-content-
|
|
29
|
-
"content-type-dashboard": "awsui_content-type-
|
|
30
|
-
"content-type-table": "awsui_content-type-
|
|
31
|
-
"content-type-cards": "awsui_content-type-
|
|
32
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
33
|
-
"is-hide-mobile-toolbar": "awsui_is-hide-mobile-
|
|
34
|
-
"has-content-gap-left": "awsui_has-content-gap-
|
|
35
|
-
"has-content-gap-right": "awsui_has-content-gap-
|
|
36
|
-
"content-first-child-notifications": "awsui_content-first-child-
|
|
37
|
-
"has-breadcrumbs": "awsui_has-
|
|
38
|
-
"content-first-child-header": "awsui_content-first-child-
|
|
39
|
-
"has-header": "awsui_has-
|
|
40
|
-
"content-first-child-main": "awsui_content-first-child-
|
|
41
|
-
"disable-content-paddings": "awsui_disable-content-
|
|
42
|
-
"has-split-panel": "awsui_has-split-
|
|
43
|
-
"split-panel-position-bottom": "awsui_split-panel-position-
|
|
44
|
-
"block-body-scroll": "awsui_block-body-
|
|
45
|
-
"unfocusable": "
|
|
46
|
-
"container": "
|
|
47
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
48
|
-
"is-tools-open": "awsui_is-tools-
|
|
49
|
-
"is-split-panel-open": "awsui_is-split-panel-
|
|
50
|
-
"split-panel-position-side": "awsui_split-panel-position-
|
|
51
|
-
"has-active-drawer": "awsui_has-active-
|
|
52
|
-
"mobile-toolbar": "awsui_mobile-
|
|
53
|
-
"remove-high-contrast-header": "awsui_remove-high-contrast-
|
|
54
|
-
"mobile-toolbar-nav": "awsui_mobile-toolbar-
|
|
55
|
-
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-
|
|
56
|
-
"mobile-toolbar-tools": "awsui_mobile-toolbar-
|
|
57
|
-
"navigation-container": "awsui_navigation-
|
|
58
|
-
"show-navigation": "awsui_show-
|
|
59
|
-
"animating": "
|
|
60
|
-
"showButtons": "
|
|
61
|
-
"navigation": "
|
|
62
|
-
"openNavigation": "
|
|
63
|
-
"animated-content": "awsui_animated-
|
|
64
|
-
"hide-navigation": "awsui_hide-
|
|
65
|
-
"notifications": "
|
|
66
|
-
"sticky-notifications": "awsui_sticky-
|
|
67
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
68
|
-
"position-bottom": "awsui_position-
|
|
69
|
-
"openSplitPanelBottom": "
|
|
70
|
-
"split-panel-side": "awsui_split-panel-
|
|
71
|
-
"position-side": "awsui_position-
|
|
72
|
-
"tools-container": "awsui_tools-
|
|
73
|
-
"tools": "
|
|
74
|
-
"openTools": "
|
|
75
|
-
"has-tools-form-persistence": "awsui_has-tools-form-
|
|
76
|
-
"hide-tools": "awsui_hide-
|
|
77
|
-
"show-tools": "awsui_show-
|
|
78
|
-
"has-tools-form": "awsui_has-tools-
|
|
79
|
-
"trigger-badge-wrapper": "awsui_trigger-badge-
|
|
80
|
-
"trigger": "
|
|
81
|
-
"selected": "
|
|
82
|
-
"badge": "
|
|
83
|
-
"trigger-wrapper": "awsui_trigger-
|
|
84
|
-
"dot": "
|
|
4
|
+
"background": "awsui_background_hyvsj_1s3d6_99",
|
|
5
|
+
"scrolling-background": "awsui_scrolling-background_hyvsj_1s3d6_102",
|
|
6
|
+
"sticky-background": "awsui_sticky-background_hyvsj_1s3d6_108",
|
|
7
|
+
"has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_1s3d6_116",
|
|
8
|
+
"breadcrumbs": "awsui_breadcrumbs_hyvsj_1s3d6_129",
|
|
9
|
+
"has-sticky-background": "awsui_has-sticky-background_hyvsj_1s3d6_139",
|
|
10
|
+
"drawers-container": "awsui_drawers-container_hyvsj_1s3d6_151",
|
|
11
|
+
"has-open-drawer": "awsui_has-open-drawer_hyvsj_1s3d6_162",
|
|
12
|
+
"disable-body-scroll": "awsui_disable-body-scroll_hyvsj_1s3d6_185",
|
|
13
|
+
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_1s3d6_190",
|
|
14
|
+
"has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_1s3d6_231",
|
|
15
|
+
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_1s3d6_241",
|
|
16
|
+
"drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_1s3d6_245",
|
|
17
|
+
"drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_1s3d6_259",
|
|
18
|
+
"drawers-trigger": "awsui_drawers-trigger_hyvsj_1s3d6_245",
|
|
19
|
+
"drawer": "awsui_drawer_hyvsj_1s3d6_151",
|
|
20
|
+
"drawer-content-container": "awsui_drawer-content-container_hyvsj_1s3d6_290",
|
|
21
|
+
"drawer-close-button": "awsui_drawer-close-button_hyvsj_1s3d6_299",
|
|
22
|
+
"drawer-content": "awsui_drawer-content_hyvsj_1s3d6_290",
|
|
23
|
+
"drawer-content-hidden": "awsui_drawer-content-hidden_hyvsj_1s3d6_307",
|
|
24
|
+
"drawer-slider": "awsui_drawer-slider_hyvsj_1s3d6_310",
|
|
25
|
+
"is-drawer-open": "awsui_is-drawer-open_hyvsj_1s3d6_317",
|
|
26
|
+
"content": "awsui_content_hyvsj_1s3d6_343",
|
|
27
|
+
"layout": "awsui_layout_hyvsj_1s3d6_364",
|
|
28
|
+
"has-max-content-width": "awsui_has-max-content-width_hyvsj_1s3d6_435",
|
|
29
|
+
"content-type-dashboard": "awsui_content-type-dashboard_hyvsj_1s3d6_450",
|
|
30
|
+
"content-type-table": "awsui_content-type-table_hyvsj_1s3d6_464",
|
|
31
|
+
"content-type-cards": "awsui_content-type-cards_hyvsj_1s3d6_464",
|
|
32
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_1s3d6_470",
|
|
33
|
+
"is-hide-mobile-toolbar": "awsui_is-hide-mobile-toolbar_hyvsj_1s3d6_473",
|
|
34
|
+
"has-content-gap-left": "awsui_has-content-gap-left_hyvsj_1s3d6_487",
|
|
35
|
+
"has-content-gap-right": "awsui_has-content-gap-right_hyvsj_1s3d6_490",
|
|
36
|
+
"content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_1s3d6_500",
|
|
37
|
+
"has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_1s3d6_503",
|
|
38
|
+
"content-first-child-header": "awsui_content-first-child-header_hyvsj_1s3d6_506",
|
|
39
|
+
"has-header": "awsui_has-header_hyvsj_1s3d6_506",
|
|
40
|
+
"content-first-child-main": "awsui_content-first-child-main_hyvsj_1s3d6_524",
|
|
41
|
+
"disable-content-paddings": "awsui_disable-content-paddings_hyvsj_1s3d6_524",
|
|
42
|
+
"has-split-panel": "awsui_has-split-panel_hyvsj_1s3d6_561",
|
|
43
|
+
"split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_1s3d6_561",
|
|
44
|
+
"block-body-scroll": "awsui_block-body-scroll_hyvsj_1s3d6_569",
|
|
45
|
+
"unfocusable": "awsui_unfocusable_hyvsj_1s3d6_574",
|
|
46
|
+
"container": "awsui_container_hyvsj_1s3d6_584",
|
|
47
|
+
"is-navigation-open": "awsui_is-navigation-open_hyvsj_1s3d6_610",
|
|
48
|
+
"is-tools-open": "awsui_is-tools-open_hyvsj_1s3d6_613",
|
|
49
|
+
"is-split-panel-open": "awsui_is-split-panel-open_hyvsj_1s3d6_613",
|
|
50
|
+
"split-panel-position-side": "awsui_split-panel-position-side_hyvsj_1s3d6_613",
|
|
51
|
+
"has-active-drawer": "awsui_has-active-drawer_hyvsj_1s3d6_613",
|
|
52
|
+
"mobile-toolbar": "awsui_mobile-toolbar_hyvsj_1s3d6_622",
|
|
53
|
+
"remove-high-contrast-header": "awsui_remove-high-contrast-header_hyvsj_1s3d6_639",
|
|
54
|
+
"mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_1s3d6_643",
|
|
55
|
+
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_1s3d6_647",
|
|
56
|
+
"mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_1s3d6_651",
|
|
57
|
+
"navigation-container": "awsui_navigation-container_hyvsj_1s3d6_660",
|
|
58
|
+
"show-navigation": "awsui_show-navigation_hyvsj_1s3d6_698",
|
|
59
|
+
"animating": "awsui_animating_hyvsj_1s3d6_721",
|
|
60
|
+
"showButtons": "awsui_showButtons_hyvsj_1s3d6_1",
|
|
61
|
+
"navigation": "awsui_navigation_hyvsj_1s3d6_660",
|
|
62
|
+
"openNavigation": "awsui_openNavigation_hyvsj_1s3d6_1",
|
|
63
|
+
"animated-content": "awsui_animated-content_hyvsj_1s3d6_783",
|
|
64
|
+
"hide-navigation": "awsui_hide-navigation_hyvsj_1s3d6_792",
|
|
65
|
+
"notifications": "awsui_notifications_hyvsj_1s3d6_802",
|
|
66
|
+
"sticky-notifications": "awsui_sticky-notifications_hyvsj_1s3d6_808",
|
|
67
|
+
"split-panel-bottom": "awsui_split-panel-bottom_hyvsj_1s3d6_825",
|
|
68
|
+
"position-bottom": "awsui_position-bottom_hyvsj_1s3d6_872",
|
|
69
|
+
"openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_1s3d6_1",
|
|
70
|
+
"split-panel-side": "awsui_split-panel-side_hyvsj_1s3d6_901",
|
|
71
|
+
"position-side": "awsui_position-side_hyvsj_1s3d6_914",
|
|
72
|
+
"tools-container": "awsui_tools-container_hyvsj_1s3d6_936",
|
|
73
|
+
"tools": "awsui_tools_hyvsj_1s3d6_936",
|
|
74
|
+
"openTools": "awsui_openTools_hyvsj_1s3d6_1",
|
|
75
|
+
"has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_1s3d6_1027",
|
|
76
|
+
"hide-tools": "awsui_hide-tools_hyvsj_1s3d6_1037",
|
|
77
|
+
"show-tools": "awsui_show-tools_hyvsj_1s3d6_1049",
|
|
78
|
+
"has-tools-form": "awsui_has-tools-form_hyvsj_1s3d6_1027",
|
|
79
|
+
"trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_1s3d6_1134",
|
|
80
|
+
"trigger": "awsui_trigger_hyvsj_1s3d6_1134",
|
|
81
|
+
"selected": "awsui_selected_hyvsj_1s3d6_1211",
|
|
82
|
+
"badge": "awsui_badge_hyvsj_1s3d6_1231",
|
|
83
|
+
"trigger-wrapper": "awsui_trigger-wrapper_hyvsj_1s3d6_1235",
|
|
84
|
+
"dot": "awsui_dot_hyvsj_1s3d6_1246"
|
|
85
85
|
};
|
|
86
86
|
|