@cloudscape-design/components 3.0.149 → 3.0.151
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/cards/styles.css.js +37 -37
- package/cards/styles.scoped.css +49 -49
- package/cards/styles.selectors.js +37 -37
- package/container/interfaces.d.ts +8 -0
- package/container/interfaces.d.ts.map +1 -1
- package/container/interfaces.js.map +1 -1
- package/container/internal.d.ts +1 -1
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +2 -2
- package/container/internal.js.map +1 -1
- package/container/styles.css.js +17 -16
- package/container/styles.scoped.css +37 -36
- package/container/styles.selectors.js +17 -16
- package/expandable-section/styles.css.js +21 -21
- package/expandable-section/styles.scoped.css +43 -43
- package/expandable-section/styles.selectors.js +21 -21
- package/internal/base-component/styles.scoped.css +5 -4
- package/internal/environment.js +1 -1
- package/internal/generated/styles/tokens.js +1 -1
- package/internal/generated/theming/index.cjs +13 -6
- package/internal/generated/theming/index.js +13 -6
- package/internal/manifest.json +1 -1
- package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
- package/mixed-line-bar-chart/chart-container.js +13 -8
- package/mixed-line-bar-chart/chart-container.js.map +1 -1
- package/modal/styles.css.js +22 -22
- package/modal/styles.scoped.css +41 -41
- package/modal/styles.selectors.js +22 -22
- package/package.json +1 -1
- package/pie-chart/pie-chart.d.ts.map +1 -1
- package/pie-chart/pie-chart.js +11 -4
- package/pie-chart/pie-chart.js.map +1 -1
- package/table/body-cell/index.d.ts +3 -1
- package/table/body-cell/index.d.ts.map +1 -1
- package/table/body-cell/index.js +4 -2
- package/table/body-cell/index.js.map +1 -1
- package/table/body-cell/styles.css.js +12 -8
- package/table/body-cell/styles.scoped.css +56 -20
- package/table/body-cell/styles.selectors.js +12 -8
- package/table/header-cell/styles.css.js +18 -16
- package/table/header-cell/styles.scoped.css +54 -27
- package/table/header-cell/styles.selectors.js +18 -16
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +11 -9
- package/table/internal.js.map +1 -1
- package/table/selection-control/styles.css.js +3 -3
- package/table/selection-control/styles.scoped.css +3 -5
- package/table/selection-control/styles.selectors.js +3 -3
- package/table/styles.css.js +33 -34
- package/table/styles.scoped.css +63 -58
- package/table/styles.selectors.js +33 -34
- package/table/thead.d.ts +1 -0
- package/table/thead.d.ts.map +1 -1
- package/table/thead.js +5 -3
- package/table/thead.js.map +1 -1
- package/table/use-sticky-header.d.ts.map +1 -1
- package/table/use-sticky-header.js +0 -13
- package/table/use-sticky-header.js.map +1 -1
- package/tabs/styles.css.js +21 -21
- package/tabs/styles.scoped.css +39 -39
- package/tabs/styles.selectors.js +21 -21
package/cards/styles.css.js
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"card-inner": "awsui_card-
|
|
5
|
-
"root": "
|
|
6
|
-
"header-variant-full-page": "awsui_header-variant-full-
|
|
7
|
-
"header-refresh": "awsui_header-
|
|
8
|
-
"list": "
|
|
9
|
-
"list-grid-1": "awsui_list-grid-
|
|
10
|
-
"card": "
|
|
11
|
-
"list-grid-2": "awsui_list-grid-
|
|
12
|
-
"list-grid-3": "awsui_list-grid-
|
|
13
|
-
"list-grid-4": "awsui_list-grid-
|
|
14
|
-
"list-grid-5": "awsui_list-grid-
|
|
15
|
-
"list-grid-6": "awsui_list-grid-
|
|
16
|
-
"list-grid-7": "awsui_list-grid-
|
|
17
|
-
"list-grid-8": "awsui_list-grid-
|
|
18
|
-
"list-grid-9": "awsui_list-grid-
|
|
19
|
-
"list-grid-10": "awsui_list-grid-
|
|
20
|
-
"list-grid-11": "awsui_list-grid-
|
|
21
|
-
"list-grid-12": "awsui_list-grid-
|
|
22
|
-
"list-grid-13": "awsui_list-grid-
|
|
23
|
-
"list-grid-14": "awsui_list-grid-
|
|
24
|
-
"list-grid-15": "awsui_list-grid-
|
|
25
|
-
"list-grid-16": "awsui_list-grid-
|
|
26
|
-
"list-grid-17": "awsui_list-grid-
|
|
27
|
-
"list-grid-18": "awsui_list-grid-
|
|
28
|
-
"list-grid-19": "awsui_list-grid-
|
|
29
|
-
"list-grid-20": "awsui_list-grid-
|
|
30
|
-
"selection-control": "awsui_selection-
|
|
31
|
-
"loading": "
|
|
32
|
-
"empty": "
|
|
33
|
-
"has-header": "awsui_has-
|
|
34
|
-
"card-header": "awsui_card-
|
|
35
|
-
"card-header-inner": "awsui_card-header-
|
|
36
|
-
"card-selectable": "awsui_card-
|
|
37
|
-
"card-selected": "awsui_card-
|
|
38
|
-
"section": "
|
|
39
|
-
"section-header": "awsui_section-
|
|
40
|
-
"section-content": "awsui_section-
|
|
4
|
+
"card-inner": "awsui_card-inner_p8a6i_44gqh_97",
|
|
5
|
+
"root": "awsui_root_p8a6i_44gqh_117",
|
|
6
|
+
"header-variant-full-page": "awsui_header-variant-full-page_p8a6i_44gqh_133",
|
|
7
|
+
"header-refresh": "awsui_header-refresh_p8a6i_44gqh_133",
|
|
8
|
+
"list": "awsui_list_p8a6i_44gqh_149",
|
|
9
|
+
"list-grid-1": "awsui_list-grid-1_p8a6i_44gqh_157",
|
|
10
|
+
"card": "awsui_card_p8a6i_44gqh_97",
|
|
11
|
+
"list-grid-2": "awsui_list-grid-2_p8a6i_44gqh_160",
|
|
12
|
+
"list-grid-3": "awsui_list-grid-3_p8a6i_44gqh_163",
|
|
13
|
+
"list-grid-4": "awsui_list-grid-4_p8a6i_44gqh_166",
|
|
14
|
+
"list-grid-5": "awsui_list-grid-5_p8a6i_44gqh_169",
|
|
15
|
+
"list-grid-6": "awsui_list-grid-6_p8a6i_44gqh_172",
|
|
16
|
+
"list-grid-7": "awsui_list-grid-7_p8a6i_44gqh_175",
|
|
17
|
+
"list-grid-8": "awsui_list-grid-8_p8a6i_44gqh_178",
|
|
18
|
+
"list-grid-9": "awsui_list-grid-9_p8a6i_44gqh_181",
|
|
19
|
+
"list-grid-10": "awsui_list-grid-10_p8a6i_44gqh_184",
|
|
20
|
+
"list-grid-11": "awsui_list-grid-11_p8a6i_44gqh_187",
|
|
21
|
+
"list-grid-12": "awsui_list-grid-12_p8a6i_44gqh_190",
|
|
22
|
+
"list-grid-13": "awsui_list-grid-13_p8a6i_44gqh_193",
|
|
23
|
+
"list-grid-14": "awsui_list-grid-14_p8a6i_44gqh_196",
|
|
24
|
+
"list-grid-15": "awsui_list-grid-15_p8a6i_44gqh_199",
|
|
25
|
+
"list-grid-16": "awsui_list-grid-16_p8a6i_44gqh_202",
|
|
26
|
+
"list-grid-17": "awsui_list-grid-17_p8a6i_44gqh_205",
|
|
27
|
+
"list-grid-18": "awsui_list-grid-18_p8a6i_44gqh_208",
|
|
28
|
+
"list-grid-19": "awsui_list-grid-19_p8a6i_44gqh_211",
|
|
29
|
+
"list-grid-20": "awsui_list-grid-20_p8a6i_44gqh_214",
|
|
30
|
+
"selection-control": "awsui_selection-control_p8a6i_44gqh_218",
|
|
31
|
+
"loading": "awsui_loading_p8a6i_44gqh_227",
|
|
32
|
+
"empty": "awsui_empty_p8a6i_44gqh_228",
|
|
33
|
+
"has-header": "awsui_has-header_p8a6i_44gqh_235",
|
|
34
|
+
"card-header": "awsui_card-header_p8a6i_44gqh_272",
|
|
35
|
+
"card-header-inner": "awsui_card-header-inner_p8a6i_44gqh_278",
|
|
36
|
+
"card-selectable": "awsui_card-selectable_p8a6i_44gqh_282",
|
|
37
|
+
"card-selected": "awsui_card-selected_p8a6i_44gqh_285",
|
|
38
|
+
"section": "awsui_section_p8a6i_44gqh_294",
|
|
39
|
+
"section-header": "awsui_section-header_p8a6i_44gqh_300",
|
|
40
|
+
"section-content": "awsui_section-content_p8a6i_44gqh_306"
|
|
41
41
|
};
|
|
42
42
|
|
package/cards/styles.scoped.css
CHANGED
|
@@ -94,18 +94,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
94
94
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
95
95
|
SPDX-License-Identifier: Apache-2.0
|
|
96
96
|
*/
|
|
97
|
-
.awsui_card-
|
|
97
|
+
.awsui_card-inner_p8a6i_44gqh_97:not(#\9) {
|
|
98
98
|
transition-property: background-color, border-top-color, border-bottom-color, border-left-color, border-right-color;
|
|
99
99
|
transition-duration: var(--motion-duration-transition-show-paced-ai4wlf, 180ms);
|
|
100
100
|
transition-timing-function: var(--motion-easing-transition-show-paced-bg1hyg, ease-out);
|
|
101
101
|
}
|
|
102
102
|
@media (prefers-reduced-motion: reduce) {
|
|
103
|
-
.awsui_card-
|
|
103
|
+
.awsui_card-inner_p8a6i_44gqh_97:not(#\9) {
|
|
104
104
|
animation: none;
|
|
105
105
|
transition: none;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
.awsui-motion-disabled .awsui_card-
|
|
108
|
+
.awsui-motion-disabled .awsui_card-inner_p8a6i_44gqh_97:not(#\9), .awsui-mode-entering .awsui_card-inner_p8a6i_44gqh_97:not(#\9) {
|
|
109
109
|
animation: none;
|
|
110
110
|
transition: none;
|
|
111
111
|
}
|
|
@@ -114,7 +114,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
114
114
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
115
115
|
SPDX-License-Identifier: Apache-2.0
|
|
116
116
|
*/
|
|
117
|
-
.
|
|
117
|
+
.awsui_root_p8a6i_44gqh_117:not(#\9) {
|
|
118
118
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
119
119
|
border-collapse: separate;
|
|
120
120
|
border-spacing: 0;
|
|
@@ -156,7 +156,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
156
156
|
font-family: var(--font-family-base-qnistn, "Open Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
.awsui_header-variant-full-
|
|
159
|
+
.awsui_header-variant-full-page_p8a6i_44gqh_133.awsui_header-refresh_p8a6i_44gqh_133:not(#\9) {
|
|
160
160
|
box-shadow: var(--shadow-container-7nblnj, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
|
|
161
161
|
border-top: var(--border-container-top-width-jk6fhm, 0px) solid var(--color-border-container-top-srcvx4, transparent);
|
|
162
162
|
border-radius: var(--border-radius-container-gh9ysk, 16px);
|
|
@@ -167,12 +167,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
167
167
|
padding-bottom: calc(var(--space-container-header-vertical-zsjhel, 12px) + var(--space-scaled-xxs-95dhkm, 4px));
|
|
168
168
|
}
|
|
169
169
|
@media screen and (-ms-high-contrast: active) {
|
|
170
|
-
.awsui_header-variant-full-
|
|
170
|
+
.awsui_header-variant-full-page_p8a6i_44gqh_133.awsui_header-refresh_p8a6i_44gqh_133:not(#\9) {
|
|
171
171
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-container-top-srcvx4, transparent);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
.
|
|
175
|
+
.awsui_list_p8a6i_44gqh_149:not(#\9) {
|
|
176
176
|
display: flex;
|
|
177
177
|
flex-wrap: wrap;
|
|
178
178
|
box-sizing: border-box;
|
|
@@ -180,89 +180,89 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
180
180
|
list-style: none;
|
|
181
181
|
margin: 0 0 0 calc(var(--space-grid-gutter-0subky, 20px) * -1);
|
|
182
182
|
}
|
|
183
|
-
.
|
|
183
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-1_p8a6i_44gqh_157 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
184
184
|
width: 100%;
|
|
185
185
|
}
|
|
186
|
-
.
|
|
186
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-2_p8a6i_44gqh_160 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
187
187
|
width: 50%;
|
|
188
188
|
}
|
|
189
|
-
.
|
|
189
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-3_p8a6i_44gqh_163 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
190
190
|
width: 33.3333333333%;
|
|
191
191
|
}
|
|
192
|
-
.
|
|
192
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-4_p8a6i_44gqh_166 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
193
193
|
width: 25%;
|
|
194
194
|
}
|
|
195
|
-
.
|
|
195
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-5_p8a6i_44gqh_169 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
196
196
|
width: 20%;
|
|
197
197
|
}
|
|
198
|
-
.
|
|
198
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-6_p8a6i_44gqh_172 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
199
199
|
width: 16.6666666667%;
|
|
200
200
|
}
|
|
201
|
-
.
|
|
201
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-7_p8a6i_44gqh_175 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
202
202
|
width: 14.2857142857%;
|
|
203
203
|
}
|
|
204
|
-
.
|
|
204
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-8_p8a6i_44gqh_178 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
205
205
|
width: 12.5%;
|
|
206
206
|
}
|
|
207
|
-
.
|
|
207
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-9_p8a6i_44gqh_181 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
208
208
|
width: 11.1111111111%;
|
|
209
209
|
}
|
|
210
|
-
.
|
|
210
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-10_p8a6i_44gqh_184 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
211
211
|
width: 10%;
|
|
212
212
|
}
|
|
213
|
-
.
|
|
213
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-11_p8a6i_44gqh_187 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
214
214
|
width: 9.0909090909%;
|
|
215
215
|
}
|
|
216
|
-
.
|
|
216
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-12_p8a6i_44gqh_190 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
217
217
|
width: 8.3333333333%;
|
|
218
218
|
}
|
|
219
|
-
.
|
|
219
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-13_p8a6i_44gqh_193 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
220
220
|
width: 7.6923076923%;
|
|
221
221
|
}
|
|
222
|
-
.
|
|
222
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-14_p8a6i_44gqh_196 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
223
223
|
width: 7.1428571429%;
|
|
224
224
|
}
|
|
225
|
-
.
|
|
225
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-15_p8a6i_44gqh_199 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
226
226
|
width: 6.6666666667%;
|
|
227
227
|
}
|
|
228
|
-
.
|
|
228
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-16_p8a6i_44gqh_202 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
229
229
|
width: 6.25%;
|
|
230
230
|
}
|
|
231
|
-
.
|
|
231
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-17_p8a6i_44gqh_205 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
232
232
|
width: 5.8823529412%;
|
|
233
233
|
}
|
|
234
|
-
.
|
|
234
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-18_p8a6i_44gqh_208 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
235
235
|
width: 5.5555555556%;
|
|
236
236
|
}
|
|
237
|
-
.
|
|
237
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-19_p8a6i_44gqh_211 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
238
238
|
width: 5.2631578947%;
|
|
239
239
|
}
|
|
240
|
-
.
|
|
240
|
+
.awsui_list_p8a6i_44gqh_149.awsui_list-grid-20_p8a6i_44gqh_214 > .awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
241
241
|
width: 5%;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
.awsui_selection-
|
|
244
|
+
.awsui_selection-control_p8a6i_44gqh_218:not(#\9) {
|
|
245
245
|
position: absolute;
|
|
246
246
|
box-sizing: border-box;
|
|
247
|
-
width: calc(var(--size-control-n9i4yo, 16px) + (2 * var(--space-card-horizontal-
|
|
247
|
+
width: calc(var(--size-control-n9i4yo, 16px) + (2 * var(--space-card-horizontal-di7llb, 20px)));
|
|
248
248
|
top: 0;
|
|
249
249
|
right: 0;
|
|
250
|
-
padding: var(--space-scaled-l-t03y3z, 20px) var(--space-card-horizontal-
|
|
250
|
+
padding: var(--space-scaled-l-t03y3z, 20px) var(--space-card-horizontal-di7llb, 20px);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
.
|
|
254
|
-
.
|
|
253
|
+
.awsui_loading_p8a6i_44gqh_227:not(#\9),
|
|
254
|
+
.awsui_empty_p8a6i_44gqh_228:not(#\9) {
|
|
255
255
|
overflow: hidden;
|
|
256
256
|
text-align: center;
|
|
257
257
|
color: var(--color-text-empty-fjv325, #5f6b7a);
|
|
258
258
|
margin-bottom: var(--space-scaled-l-t03y3z, 20px);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
.awsui_has-
|
|
261
|
+
.awsui_has-header_p8a6i_44gqh_235:not(#\9) {
|
|
262
262
|
margin-top: var(--space-grid-gutter-0subky, 20px);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
.
|
|
265
|
+
.awsui_card_p8a6i_44gqh_97:not(#\9) {
|
|
266
266
|
display: flex;
|
|
267
267
|
overflow-wrap: break-word;
|
|
268
268
|
word-wrap: break-word;
|
|
@@ -270,11 +270,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
270
270
|
padding: 0;
|
|
271
271
|
list-style: none;
|
|
272
272
|
}
|
|
273
|
-
.awsui_card-
|
|
273
|
+
.awsui_card-inner_p8a6i_44gqh_97:not(#\9) {
|
|
274
274
|
position: relative;
|
|
275
275
|
background-color: var(--color-background-container-content-i8i4a0, #ffffff);
|
|
276
276
|
margin: 0 0 var(--space-grid-gutter-0subky, 20px) var(--space-grid-gutter-0subky, 20px);
|
|
277
|
-
padding: var(--space-scaled-l-t03y3z, 20px) var(--space-card-horizontal-
|
|
277
|
+
padding: var(--space-scaled-l-t03y3z, 20px) var(--space-card-horizontal-di7llb, 20px) var(--space-scaled-l-t03y3z, 20px);
|
|
278
278
|
border-color: transparent;
|
|
279
279
|
box-shadow: var(--shadow-container-7nblnj, 0px 0px 1px 1px #e9ebed, 0px 1px 8px 2px rgba(0, 7, 22, 0.12));
|
|
280
280
|
border-top: var(--border-container-top-width-jk6fhm, 0px) solid var(--color-border-container-top-srcvx4, transparent);
|
|
@@ -286,53 +286,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
286
286
|
box-sizing: border-box;
|
|
287
287
|
}
|
|
288
288
|
@media screen and (-ms-high-contrast: active) {
|
|
289
|
-
.awsui_card-
|
|
290
|
-
padding: calc(var(--space-scaled-l-t03y3z, 20px) - var(--border-item-width-qbbbsa, 2px)) calc(var(--space-card-horizontal-
|
|
289
|
+
.awsui_card-inner_p8a6i_44gqh_97:not(#\9) {
|
|
290
|
+
padding: calc(var(--space-scaled-l-t03y3z, 20px) - var(--border-item-width-qbbbsa, 2px)) calc(var(--space-card-horizontal-di7llb, 20px) - var(--border-item-width-qbbbsa, 2px)) calc(var(--space-scaled-l-t03y3z, 20px) - var(--border-item-width-qbbbsa, 2px));
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
293
|
@media screen and (-ms-high-contrast: active) {
|
|
294
|
-
.awsui_card-
|
|
294
|
+
.awsui_card-inner_p8a6i_44gqh_97:not(#\9) {
|
|
295
295
|
border: var(--border-field-width-idlekx, 2px) solid var(--color-border-container-top-srcvx4, transparent);
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
.awsui_card-
|
|
298
|
+
.awsui_card-header_p8a6i_44gqh_272:not(#\9) {
|
|
299
299
|
font-size: var(--font-heading-m-size-6e3jmg, 20px);
|
|
300
300
|
line-height: var(--font-heading-m-line-height-u3t54f, 24px);
|
|
301
301
|
letter-spacing: var(--font-heading-m-letter-spacing-r00pg3, -0.01em);
|
|
302
302
|
font-weight: var(--font-heading-m-weight-hi5n0j, 800);
|
|
303
303
|
}
|
|
304
|
-
.awsui_card-header-
|
|
304
|
+
.awsui_card-header-inner_p8a6i_44gqh_278:not(#\9) {
|
|
305
305
|
width: 100%;
|
|
306
306
|
display: inline-block;
|
|
307
307
|
}
|
|
308
|
-
.awsui_card-
|
|
308
|
+
.awsui_card-selectable_p8a6i_44gqh_282 > .awsui_card-inner_p8a6i_44gqh_97 > .awsui_card-header_p8a6i_44gqh_272:not(#\9) {
|
|
309
309
|
width: 90%;
|
|
310
310
|
}
|
|
311
|
-
.awsui_card-
|
|
311
|
+
.awsui_card-selected_p8a6i_44gqh_285 > .awsui_card-inner_p8a6i_44gqh_97:not(#\9) {
|
|
312
312
|
border: var(--border-item-width-qbbbsa, 2px) solid var(--color-border-item-selected-ppkssz, #0972d3);
|
|
313
313
|
background-color: var(--color-background-item-selected-ebt4bi, #f2f8fd);
|
|
314
|
-
padding: var(--space-scaled-l-t03y3z, 20px) calc(var(--space-card-horizontal-
|
|
314
|
+
padding: var(--space-scaled-l-t03y3z, 20px) calc(var(--space-card-horizontal-di7llb, 20px) - var(--border-item-width-qbbbsa, 2px)) calc(var(--space-scaled-l-t03y3z, 20px) - var(--border-item-width-qbbbsa, 2px));
|
|
315
315
|
}
|
|
316
|
-
.awsui_card-
|
|
316
|
+
.awsui_card-selected_p8a6i_44gqh_285 > .awsui_card-inner_p8a6i_44gqh_97 > .awsui_card-header_p8a6i_44gqh_272 > .awsui_selection-control_p8a6i_44gqh_218:not(#\9) {
|
|
317
317
|
margin-right: calc(-1 * var(--border-item-width-qbbbsa, 2px));
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
.
|
|
320
|
+
.awsui_section_p8a6i_44gqh_294:not(#\9) {
|
|
321
321
|
display: inline-block;
|
|
322
322
|
box-sizing: border-box;
|
|
323
323
|
padding: var(--space-xs-rsr2qu, 8px) 0 var(--space-scaled-xs-6859qs, 8px) 0;
|
|
324
324
|
vertical-align: top;
|
|
325
325
|
}
|
|
326
|
-
.awsui_section-
|
|
326
|
+
.awsui_section-header_p8a6i_44gqh_300:not(#\9) {
|
|
327
327
|
font-size: var(--font-body-m-size-sregvd, 14px);
|
|
328
328
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
329
329
|
font-weight: var(--font-display-label-weight-m18hjh, 700);
|
|
330
330
|
color: var(--color-text-label-gxskdy, #000716);
|
|
331
331
|
}
|
|
332
|
-
.awsui_section-
|
|
332
|
+
.awsui_section-content_p8a6i_44gqh_306:not(#\9) {
|
|
333
333
|
/* used in test-utils */
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
.
|
|
336
|
+
.awsui_section_p8a6i_44gqh_294:not(#\9):last-child {
|
|
337
337
|
padding: var(--space-xs-rsr2qu, 8px) 0 0 0;
|
|
338
338
|
}
|
|
@@ -2,42 +2,42 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"card-inner": "awsui_card-
|
|
6
|
-
"root": "
|
|
7
|
-
"header-variant-full-page": "awsui_header-variant-full-
|
|
8
|
-
"header-refresh": "awsui_header-
|
|
9
|
-
"list": "
|
|
10
|
-
"list-grid-1": "awsui_list-grid-
|
|
11
|
-
"card": "
|
|
12
|
-
"list-grid-2": "awsui_list-grid-
|
|
13
|
-
"list-grid-3": "awsui_list-grid-
|
|
14
|
-
"list-grid-4": "awsui_list-grid-
|
|
15
|
-
"list-grid-5": "awsui_list-grid-
|
|
16
|
-
"list-grid-6": "awsui_list-grid-
|
|
17
|
-
"list-grid-7": "awsui_list-grid-
|
|
18
|
-
"list-grid-8": "awsui_list-grid-
|
|
19
|
-
"list-grid-9": "awsui_list-grid-
|
|
20
|
-
"list-grid-10": "awsui_list-grid-
|
|
21
|
-
"list-grid-11": "awsui_list-grid-
|
|
22
|
-
"list-grid-12": "awsui_list-grid-
|
|
23
|
-
"list-grid-13": "awsui_list-grid-
|
|
24
|
-
"list-grid-14": "awsui_list-grid-
|
|
25
|
-
"list-grid-15": "awsui_list-grid-
|
|
26
|
-
"list-grid-16": "awsui_list-grid-
|
|
27
|
-
"list-grid-17": "awsui_list-grid-
|
|
28
|
-
"list-grid-18": "awsui_list-grid-
|
|
29
|
-
"list-grid-19": "awsui_list-grid-
|
|
30
|
-
"list-grid-20": "awsui_list-grid-
|
|
31
|
-
"selection-control": "awsui_selection-
|
|
32
|
-
"loading": "
|
|
33
|
-
"empty": "
|
|
34
|
-
"has-header": "awsui_has-
|
|
35
|
-
"card-header": "awsui_card-
|
|
36
|
-
"card-header-inner": "awsui_card-header-
|
|
37
|
-
"card-selectable": "awsui_card-
|
|
38
|
-
"card-selected": "awsui_card-
|
|
39
|
-
"section": "
|
|
40
|
-
"section-header": "awsui_section-
|
|
41
|
-
"section-content": "awsui_section-
|
|
5
|
+
"card-inner": "awsui_card-inner_p8a6i_44gqh_97",
|
|
6
|
+
"root": "awsui_root_p8a6i_44gqh_117",
|
|
7
|
+
"header-variant-full-page": "awsui_header-variant-full-page_p8a6i_44gqh_133",
|
|
8
|
+
"header-refresh": "awsui_header-refresh_p8a6i_44gqh_133",
|
|
9
|
+
"list": "awsui_list_p8a6i_44gqh_149",
|
|
10
|
+
"list-grid-1": "awsui_list-grid-1_p8a6i_44gqh_157",
|
|
11
|
+
"card": "awsui_card_p8a6i_44gqh_97",
|
|
12
|
+
"list-grid-2": "awsui_list-grid-2_p8a6i_44gqh_160",
|
|
13
|
+
"list-grid-3": "awsui_list-grid-3_p8a6i_44gqh_163",
|
|
14
|
+
"list-grid-4": "awsui_list-grid-4_p8a6i_44gqh_166",
|
|
15
|
+
"list-grid-5": "awsui_list-grid-5_p8a6i_44gqh_169",
|
|
16
|
+
"list-grid-6": "awsui_list-grid-6_p8a6i_44gqh_172",
|
|
17
|
+
"list-grid-7": "awsui_list-grid-7_p8a6i_44gqh_175",
|
|
18
|
+
"list-grid-8": "awsui_list-grid-8_p8a6i_44gqh_178",
|
|
19
|
+
"list-grid-9": "awsui_list-grid-9_p8a6i_44gqh_181",
|
|
20
|
+
"list-grid-10": "awsui_list-grid-10_p8a6i_44gqh_184",
|
|
21
|
+
"list-grid-11": "awsui_list-grid-11_p8a6i_44gqh_187",
|
|
22
|
+
"list-grid-12": "awsui_list-grid-12_p8a6i_44gqh_190",
|
|
23
|
+
"list-grid-13": "awsui_list-grid-13_p8a6i_44gqh_193",
|
|
24
|
+
"list-grid-14": "awsui_list-grid-14_p8a6i_44gqh_196",
|
|
25
|
+
"list-grid-15": "awsui_list-grid-15_p8a6i_44gqh_199",
|
|
26
|
+
"list-grid-16": "awsui_list-grid-16_p8a6i_44gqh_202",
|
|
27
|
+
"list-grid-17": "awsui_list-grid-17_p8a6i_44gqh_205",
|
|
28
|
+
"list-grid-18": "awsui_list-grid-18_p8a6i_44gqh_208",
|
|
29
|
+
"list-grid-19": "awsui_list-grid-19_p8a6i_44gqh_211",
|
|
30
|
+
"list-grid-20": "awsui_list-grid-20_p8a6i_44gqh_214",
|
|
31
|
+
"selection-control": "awsui_selection-control_p8a6i_44gqh_218",
|
|
32
|
+
"loading": "awsui_loading_p8a6i_44gqh_227",
|
|
33
|
+
"empty": "awsui_empty_p8a6i_44gqh_228",
|
|
34
|
+
"has-header": "awsui_has-header_p8a6i_44gqh_235",
|
|
35
|
+
"card-header": "awsui_card-header_p8a6i_44gqh_272",
|
|
36
|
+
"card-header-inner": "awsui_card-header-inner_p8a6i_44gqh_278",
|
|
37
|
+
"card-selectable": "awsui_card-selectable_p8a6i_44gqh_282",
|
|
38
|
+
"card-selected": "awsui_card-selected_p8a6i_44gqh_285",
|
|
39
|
+
"section": "awsui_section_p8a6i_44gqh_294",
|
|
40
|
+
"section-header": "awsui_section-header_p8a6i_44gqh_300",
|
|
41
|
+
"section-content": "awsui_section-content_p8a6i_44gqh_306"
|
|
42
42
|
};
|
|
43
43
|
|
|
@@ -17,6 +17,14 @@ export interface ContainerProps extends BaseComponentProps {
|
|
|
17
17
|
* Determines whether the container content has padding. If `true`, removes the default padding from the content area.
|
|
18
18
|
*/
|
|
19
19
|
disableContentPaddings?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Enabling this property will make the container to fit into available height. If content is too short, the container
|
|
22
|
+
* will stretch, if too long, the container will shrink and show vertical scrollbar.
|
|
23
|
+
*
|
|
24
|
+
* Use this property to align heights of multiple containers displayed in a single row. It is recommended to stretch
|
|
25
|
+
* all containers to the height of the longest one, to avoid extra vertical scroll areas.
|
|
26
|
+
*/
|
|
27
|
+
fitHeight?: boolean;
|
|
20
28
|
/**
|
|
21
29
|
* Footer of the container.
|
|
22
30
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/container/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC"}
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/container/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/container/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport React from 'react';\n\nexport interface ContainerProps extends BaseComponentProps {\n /**\n * Heading element of the container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Determines whether the container header has padding. If `true`, removes the default padding from the header.\n */\n disableHeaderPaddings?: boolean;\n\n /**\n * Main content of the container.\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the container content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Footer of the container.\n */\n footer?: React.ReactNode;\n\n /**\n * Specify a container variant with one of the following:\n * * `default` - Use this variant in standalone context.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * @visualrefresh `stacked` variant\n */\n variant?: 'default' | 'stacked';\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/container/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport React from 'react';\n\nexport interface ContainerProps extends BaseComponentProps {\n /**\n * Heading element of the container. Use the [header component](/components/header/).\n */\n header?: React.ReactNode;\n\n /**\n * Determines whether the container header has padding. If `true`, removes the default padding from the header.\n */\n disableHeaderPaddings?: boolean;\n\n /**\n * Main content of the container.\n */\n children?: React.ReactNode;\n\n /**\n * Determines whether the container content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n\n /**\n * Enabling this property will make the container to fit into available height. If content is too short, the container\n * will stretch, if too long, the container will shrink and show vertical scrollbar.\n *\n * Use this property to align heights of multiple containers displayed in a single row. It is recommended to stretch\n * all containers to the height of the longest one, to avoid extra vertical scroll areas.\n */\n fitHeight?: boolean;\n\n /**\n * Footer of the container.\n */\n footer?: React.ReactNode;\n\n /**\n * Specify a container variant with one of the following:\n * * `default` - Use this variant in standalone context.\n * * `stacked` - Use this variant adjacent to other stacked containers (such as a container,\n * table).\n * @visualrefresh `stacked` variant\n */\n variant?: 'default' | 'stacked';\n}\n"]}
|
package/container/internal.d.ts
CHANGED
|
@@ -18,5 +18,5 @@ export interface InternalContainerProps extends Omit<ContainerProps, 'variant'>,
|
|
|
18
18
|
*/
|
|
19
19
|
variant?: ContainerProps['variant'] | 'embedded' | 'full-page' | 'cards';
|
|
20
20
|
}
|
|
21
|
-
export default function InternalContainer({ header, footer, children, variant, disableHeaderPaddings, disableContentPaddings, __stickyOffset, __stickyHeader, __internalRootRef, __disableFooterDivider, __disableFooterPaddings, __hiddenContent, __headerRef, __headerId, __darkHeader, ...restProps }: InternalContainerProps): JSX.Element;
|
|
21
|
+
export default function InternalContainer({ header, footer, children, variant, disableHeaderPaddings, disableContentPaddings, fitHeight, __stickyOffset, __stickyHeader, __internalRootRef, __disableFooterDivider, __disableFooterPaddings, __hiddenContent, __headerRef, __headerId, __darkHeader, ...restProps }: InternalContainerProps): JSX.Element;
|
|
22
22
|
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/container/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAOlF,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;;;;;OAKG;IACH,OAAO,CAAC,EAAE,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ACT,cAAc,EACd,cAAsB,EACtB,iBAAwB,EACxB,sBAA8B,EAC9B,uBAA+B,EAC/B,eAAuB,EACvB,WAAW,EACX,UAAU,EACV,YAAoB,EACpB,GAAG,SAAS,EACb,EAAE,sBAAsB,eAyFxB"}
|
package/container/internal.js
CHANGED
|
@@ -12,7 +12,7 @@ import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
|
12
12
|
import styles from './styles.css.js';
|
|
13
13
|
export default function InternalContainer(_a) {
|
|
14
14
|
var _b, _c, _d;
|
|
15
|
-
var header = _a.header, footer = _a.footer, children = _a.children, _e = _a.variant, variant = _e === void 0 ? 'default' : _e, _f = _a.disableHeaderPaddings, disableHeaderPaddings = _f === void 0 ? false : _f, _g = _a.disableContentPaddings, disableContentPaddings = _g === void 0 ? false : _g, __stickyOffset = _a.__stickyOffset, _h = _a.__stickyHeader, __stickyHeader = _h === void 0 ? false : _h, _j = _a.__internalRootRef, __internalRootRef = _j === void 0 ? null : _j, _k = _a.__disableFooterDivider, __disableFooterDivider = _k === void 0 ? false : _k, _l = _a.__disableFooterPaddings, __disableFooterPaddings = _l === void 0 ? false : _l, _m = _a.__hiddenContent, __hiddenContent = _m === void 0 ? false : _m, __headerRef = _a.__headerRef, __headerId = _a.__headerId, _o = _a.__darkHeader, __darkHeader = _o === void 0 ? false : _o, restProps = __rest(_a, ["header", "footer", "children", "variant", "disableHeaderPaddings", "disableContentPaddings", "__stickyOffset", "__stickyHeader", "__internalRootRef", "__disableFooterDivider", "__disableFooterPaddings", "__hiddenContent", "__headerRef", "__headerId", "__darkHeader"]);
|
|
15
|
+
var header = _a.header, footer = _a.footer, children = _a.children, _e = _a.variant, variant = _e === void 0 ? 'default' : _e, _f = _a.disableHeaderPaddings, disableHeaderPaddings = _f === void 0 ? false : _f, _g = _a.disableContentPaddings, disableContentPaddings = _g === void 0 ? false : _g, fitHeight = _a.fitHeight, __stickyOffset = _a.__stickyOffset, _h = _a.__stickyHeader, __stickyHeader = _h === void 0 ? false : _h, _j = _a.__internalRootRef, __internalRootRef = _j === void 0 ? null : _j, _k = _a.__disableFooterDivider, __disableFooterDivider = _k === void 0 ? false : _k, _l = _a.__disableFooterPaddings, __disableFooterPaddings = _l === void 0 ? false : _l, _m = _a.__hiddenContent, __hiddenContent = _m === void 0 ? false : _m, __headerRef = _a.__headerRef, __headerId = _a.__headerId, _o = _a.__darkHeader, __darkHeader = _o === void 0 ? false : _o, restProps = __rest(_a, ["header", "footer", "children", "variant", "disableHeaderPaddings", "disableContentPaddings", "fitHeight", "__stickyOffset", "__stickyHeader", "__internalRootRef", "__disableFooterDivider", "__disableFooterPaddings", "__hiddenContent", "__headerRef", "__headerId", "__darkHeader"]);
|
|
16
16
|
var baseProps = getBaseProps(restProps);
|
|
17
17
|
var rootRef = useRef(null);
|
|
18
18
|
var headerRef = useRef(null);
|
|
@@ -40,7 +40,7 @@ export default function InternalContainer(_a) {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}, [isRefresh, isSticky, setHasStickyBackground, variant]);
|
|
43
|
-
return (React.createElement("div", __assign({}, baseProps, { className: clsx(baseProps.className, styles.root, styles["variant-".concat(variant)]), ref: mergedRef }),
|
|
43
|
+
return (React.createElement("div", __assign({}, baseProps, { className: clsx(baseProps.className, styles.root, styles["variant-".concat(variant)], fitHeight && styles['root-fit-height']), ref: mergedRef }),
|
|
44
44
|
header && (React.createElement(StickyHeaderContext.Provider, { value: { isStuck: isStuck } },
|
|
45
45
|
React.createElement("div", __assign({ className: clsx(styles.header, styles["header-variant-".concat(variant)], (_b = {},
|
|
46
46
|
_b[styles['header-sticky-disabled']] = __stickyHeader && !isSticky,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/container/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SA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,IAAG,eAAe;wBAChD,IACE,YAAY,EACZ,YAAY,IAChB,GAAG,EAAE,eAAe,KAEnB,YAAY,CAAC,CAAC,CAAC,CACd,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,8BAA8B,CAAC,IAAG,MAAM,CAAO,CAC5F,CAAC,CAAC,CAAC,CACF,MAAM,CACP,CACG,CACuB,CAChC;QACD,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO;gBAC5B,GAAC,MAAM,CAAC,eAAe,CAAC,IAAG,CAAC,sBAAsB;oBAClD,IAED,QAAQ,CACL;QACL,MAAM,IAAI,CACT,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,MAAM;gBAC3B,GAAC,MAAM,CAAC,cAAc,CAAC,IAAG,CAAC,sBAAsB;gBACjD,GAAC,MAAM,CAAC,eAAe,CAAC,IAAG,CAAC,uBAAuB;oBACnD,IAED,MAAM,CACH,CACP,CACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport clsx from 'clsx';\nimport React, { useContext, useEffect, useRef } from 'react';\nimport { AppLayoutContext } from '../app-layout/visual-refresh/context';\nimport { ContainerProps } from './interfaces';\nimport { getBaseProps } from '../internal/base-component';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { StickyHeaderContext, useStickyHeader } from './use-sticky-header';\nimport { useDynamicOverlap } from '../app-layout/visual-refresh/hooks/use-dynamic-overlap';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\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 __disableFooterDivider?: boolean;\n __disableFooterPaddings?: boolean;\n __hiddenContent?: boolean;\n __headerRef?: React.RefObject<HTMLDivElement>;\n __headerId?: string;\n __darkHeader?: 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 __stickyHeader = false,\n __internalRootRef = null,\n __disableFooterDivider = false,\n __disableFooterPaddings = false,\n __hiddenContent = false,\n __headerRef,\n __headerId,\n __darkHeader = false,\n ...restProps\n}: InternalContainerProps) {\n const baseProps = getBaseProps(restProps);\n const rootRef = useRef<HTMLDivElement>(null);\n const headerRef = useRef<HTMLDivElement>(null);\n const { isSticky, isStuck, stickyStyles } = useStickyHeader(rootRef, headerRef, __stickyHeader, __stickyOffset);\n const { setHasStickyBackground } = useContext(AppLayoutContext);\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 constrast 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 function handleHasStickyBackground() {\n const shouldUpdateStickyBackground = isRefresh && isSticky && variant === 'full-page';\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(true);\n }\n\n return function cleanup() {\n if (shouldUpdateStickyBackground) {\n setHasStickyBackground(false);\n }\n };\n },\n [isRefresh, isSticky, setHasStickyBackground, variant]\n );\n\n return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.root,\n styles[`variant-${variant}`],\n fitHeight && styles['root-fit-height']\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']]: __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"]}
|
package/container/styles.css.js
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"
|
|
6
|
-
"variant-
|
|
7
|
-
"
|
|
8
|
-
"header
|
|
9
|
-
"header-sticky-
|
|
10
|
-
"header-
|
|
11
|
-
"header-
|
|
12
|
-
"
|
|
13
|
-
"with-
|
|
14
|
-
"
|
|
15
|
-
"header-variant-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
4
|
+
"root": "awsui_root_14iqq_wbmbk_97",
|
|
5
|
+
"root-fit-height": "awsui_root-fit-height_14iqq_wbmbk_108",
|
|
6
|
+
"variant-default": "awsui_variant-default_14iqq_wbmbk_114",
|
|
7
|
+
"variant-stacked": "awsui_variant-stacked_14iqq_wbmbk_114",
|
|
8
|
+
"header": "awsui_header_14iqq_wbmbk_137",
|
|
9
|
+
"header-sticky-disabled": "awsui_header-sticky-disabled_14iqq_wbmbk_142",
|
|
10
|
+
"header-sticky-enabled": "awsui_header-sticky-enabled_14iqq_wbmbk_146",
|
|
11
|
+
"header-stuck": "awsui_header-stuck_14iqq_wbmbk_152",
|
|
12
|
+
"header-dynamic-height": "awsui_header-dynamic-height_14iqq_wbmbk_157",
|
|
13
|
+
"with-paddings": "awsui_with-paddings_14iqq_wbmbk_163",
|
|
14
|
+
"with-hidden-content": "awsui_with-hidden-content_14iqq_wbmbk_166",
|
|
15
|
+
"header-variant-cards": "awsui_header-variant-cards_14iqq_wbmbk_170",
|
|
16
|
+
"header-variant-full-page": "awsui_header-variant-full-page_14iqq_wbmbk_194",
|
|
17
|
+
"dark-header": "awsui_dark-header_14iqq_wbmbk_212",
|
|
18
|
+
"content": "awsui_content_14iqq_wbmbk_216",
|
|
19
|
+
"footer": "awsui_footer_14iqq_wbmbk_227",
|
|
20
|
+
"with-divider": "awsui_with-divider_14iqq_wbmbk_230"
|
|
20
21
|
};
|
|
21
22
|
|