@cloudscape-design/components 3.0.505 → 3.0.507
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app-layout/visual-refresh/background.js +2 -2
- package/app-layout/visual-refresh/background.js.map +1 -1
- package/app-layout/visual-refresh/breadcrumbs.js +2 -2
- package/app-layout/visual-refresh/breadcrumbs.js.map +1 -1
- package/app-layout/visual-refresh/header.js +2 -2
- package/app-layout/visual-refresh/header.js.map +1 -1
- package/app-layout/visual-refresh/mobile-toolbar.js +2 -2
- package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
- package/app-layout/visual-refresh/notifications.js +2 -2
- package/app-layout/visual-refresh/notifications.js.map +1 -1
- package/app-layout/visual-refresh/trigger-button.js +1 -1
- package/app-layout/visual-refresh/trigger-button.js.map +1 -1
- package/button-dropdown/category-elements/category-element.d.ts +1 -1
- package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/category-element.js +2 -2
- package/button-dropdown/category-elements/category-element.js.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.d.ts +1 -1
- package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.js +2 -2
- package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.js +2 -2
- package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/styles.css.js +13 -13
- package/button-dropdown/category-elements/styles.scoped.css +21 -32
- package/button-dropdown/category-elements/styles.selectors.js +13 -13
- package/button-dropdown/interfaces.d.ts +2 -0
- package/button-dropdown/interfaces.d.ts.map +1 -1
- package/button-dropdown/interfaces.js.map +1 -1
- package/button-dropdown/item-element/index.d.ts +1 -1
- package/button-dropdown/item-element/index.d.ts.map +1 -1
- package/button-dropdown/item-element/index.js +6 -1
- package/button-dropdown/item-element/index.js.map +1 -1
- package/button-dropdown/item-element/styles.css.js +16 -15
- package/button-dropdown/item-element/styles.scoped.css +18 -18
- package/button-dropdown/item-element/styles.selectors.js +16 -15
- package/button-dropdown/items-list.d.ts.map +1 -1
- package/button-dropdown/items-list.js +3 -3
- package/button-dropdown/items-list.js.map +1 -1
- package/cards/index.js +2 -2
- package/cards/index.js.map +1 -1
- package/container/internal.js +4 -4
- package/container/internal.js.map +1 -1
- package/container/styles.css.js +30 -30
- package/container/styles.scoped.css +55 -54
- package/container/styles.selectors.js +30 -30
- package/content-layout/internal.js +3 -3
- package/content-layout/internal.js.map +1 -1
- package/expandable-section/styles.css.js +32 -32
- package/expandable-section/styles.scoped.css +63 -63
- package/expandable-section/styles.selectors.js +32 -32
- package/internal/components/dark-ribbon/index.js +2 -2
- package/internal/components/dark-ribbon/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/internal/utils/content-header-utils.d.ts +2 -2
- package/internal/utils/content-header-utils.d.ts.map +1 -1
- package/internal/utils/content-header-utils.js +2 -2
- package/internal/utils/content-header-utils.js.map +1 -1
- package/package.json +1 -1
- package/split-panel/icons/bottom-icon-refresh.js +2 -2
- package/split-panel/icons/bottom-icon-refresh.js.map +1 -1
- package/split-panel/icons/side-position-refresh.js +2 -2
- package/split-panel/icons/side-position-refresh.js.map +1 -1
- package/table/internal.js +2 -2
- package/table/internal.js.map +1 -1
- package/top-navigation/interfaces.d.ts +2 -0
- package/top-navigation/interfaces.d.ts.map +1 -1
- package/top-navigation/interfaces.js.map +1 -1
- package/wizard/internal.js +4 -4
- package/wizard/internal.js.map +1 -1
- package/wizard/wizard-form-header.js +3 -3
- package/wizard/wizard-form-header.js.map +1 -1
- package/wizard/wizard-navigation.js +2 -2
- package/wizard/wizard-navigation.js.map +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"content-enter": "awsui_content-
|
|
5
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
6
|
-
"trigger-expanded": "awsui_trigger-
|
|
7
|
-
"icon": "
|
|
8
|
-
"root": "
|
|
9
|
-
"expand-button": "awsui_expand-
|
|
10
|
-
"expanded": "
|
|
11
|
-
"icon-container": "awsui_icon-
|
|
12
|
-
"icon-container-container": "awsui_icon-container-
|
|
13
|
-
"wrapper": "
|
|
14
|
-
"wrapper-default": "awsui_wrapper-
|
|
15
|
-
"wrapper-footer": "awsui_wrapper-
|
|
16
|
-
"wrapper-navigation": "awsui_wrapper-
|
|
17
|
-
"wrapper-container": "awsui_wrapper-
|
|
18
|
-
"wrapper-compact": "awsui_wrapper-
|
|
19
|
-
"header-deprecated": "awsui_header-
|
|
20
|
-
"wrapper-expanded": "awsui_wrapper-
|
|
21
|
-
"header": "
|
|
22
|
-
"header-wrapper": "awsui_header-
|
|
23
|
-
"header-actions-wrapper": "awsui_header-actions-
|
|
24
|
-
"header-button": "awsui_header-
|
|
25
|
-
"header-container-button": "awsui_header-container-
|
|
26
|
-
"header-container": "awsui_header-
|
|
27
|
-
"header-navigation": "awsui_header-
|
|
28
|
-
"header-text": "awsui_header-
|
|
29
|
-
"content": "
|
|
30
|
-
"content-default": "awsui_content-
|
|
31
|
-
"content-footer": "awsui_content-
|
|
32
|
-
"content-expanded": "awsui_content-
|
|
33
|
-
"content-compact": "awsui_content-
|
|
34
|
-
"focusable": "
|
|
35
|
-
"click-target": "awsui_click-
|
|
4
|
+
"content-enter": "awsui_content-enter_gwq0h_11fqg_97",
|
|
5
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_11fqg_1",
|
|
6
|
+
"trigger-expanded": "awsui_trigger-expanded_gwq0h_11fqg_119",
|
|
7
|
+
"icon": "awsui_icon_gwq0h_11fqg_133",
|
|
8
|
+
"root": "awsui_root_gwq0h_11fqg_151",
|
|
9
|
+
"expand-button": "awsui_expand-button_gwq0h_11fqg_189",
|
|
10
|
+
"expanded": "awsui_expanded_gwq0h_11fqg_196",
|
|
11
|
+
"icon-container": "awsui_icon-container_gwq0h_11fqg_200",
|
|
12
|
+
"icon-container-container": "awsui_icon-container-container_gwq0h_11fqg_205",
|
|
13
|
+
"wrapper": "awsui_wrapper_gwq0h_11fqg_209",
|
|
14
|
+
"wrapper-default": "awsui_wrapper-default_gwq0h_11fqg_216",
|
|
15
|
+
"wrapper-footer": "awsui_wrapper-footer_gwq0h_11fqg_216",
|
|
16
|
+
"wrapper-navigation": "awsui_wrapper-navigation_gwq0h_11fqg_219",
|
|
17
|
+
"wrapper-container": "awsui_wrapper-container_gwq0h_11fqg_222",
|
|
18
|
+
"wrapper-compact": "awsui_wrapper-compact_gwq0h_11fqg_226",
|
|
19
|
+
"header-deprecated": "awsui_header-deprecated_gwq0h_11fqg_240",
|
|
20
|
+
"wrapper-expanded": "awsui_wrapper-expanded_gwq0h_11fqg_264",
|
|
21
|
+
"header": "awsui_header_gwq0h_11fqg_240",
|
|
22
|
+
"header-wrapper": "awsui_header-wrapper_gwq0h_11fqg_283",
|
|
23
|
+
"header-actions-wrapper": "awsui_header-actions-wrapper_gwq0h_11fqg_293",
|
|
24
|
+
"header-button": "awsui_header-button_gwq0h_11fqg_298",
|
|
25
|
+
"header-container-button": "awsui_header-container-button_gwq0h_11fqg_298",
|
|
26
|
+
"header-container": "awsui_header-container_gwq0h_11fqg_298",
|
|
27
|
+
"header-navigation": "awsui_header-navigation_gwq0h_11fqg_330",
|
|
28
|
+
"header-text": "awsui_header-text_gwq0h_11fqg_362",
|
|
29
|
+
"content": "awsui_content_gwq0h_11fqg_97",
|
|
30
|
+
"content-default": "awsui_content-default_gwq0h_11fqg_369",
|
|
31
|
+
"content-footer": "awsui_content-footer_gwq0h_11fqg_372",
|
|
32
|
+
"content-expanded": "awsui_content-expanded_gwq0h_11fqg_375",
|
|
33
|
+
"content-compact": "awsui_content-compact_gwq0h_11fqg_378",
|
|
34
|
+
"focusable": "awsui_focusable_gwq0h_11fqg_382",
|
|
35
|
+
"click-target": "awsui_click-target_gwq0h_11fqg_393"
|
|
36
36
|
};
|
|
37
37
|
|
|
@@ -94,10 +94,10 @@ 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_content-
|
|
98
|
-
animation: awsui_awsui-motion-fade-
|
|
97
|
+
.awsui_content-enter_gwq0h_11fqg_97:not(#\9) {
|
|
98
|
+
animation: awsui_awsui-motion-fade-in_gwq0h_11fqg_1 var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
|
|
99
99
|
}
|
|
100
|
-
@keyframes awsui_awsui-motion-fade-
|
|
100
|
+
@keyframes awsui_awsui-motion-fade-in_gwq0h_11fqg_1 {
|
|
101
101
|
from {
|
|
102
102
|
opacity: 0.2;
|
|
103
103
|
}
|
|
@@ -106,40 +106,40 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
@media (prefers-reduced-motion: reduce) {
|
|
109
|
-
.awsui_content-
|
|
109
|
+
.awsui_content-enter_gwq0h_11fqg_97:not(#\9) {
|
|
110
110
|
animation: none;
|
|
111
111
|
transition: none;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
.awsui-motion-disabled .awsui_content-
|
|
114
|
+
.awsui-motion-disabled .awsui_content-enter_gwq0h_11fqg_97:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_11fqg_97:not(#\9) {
|
|
115
115
|
animation: none;
|
|
116
116
|
transition: none;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
.awsui_trigger-
|
|
119
|
+
.awsui_trigger-expanded_gwq0h_11fqg_119:not(#\9) {
|
|
120
120
|
transition: border-bottom-color var(--motion-duration-show-paced-q2lo2h, 180ms) var(--motion-easing-show-paced-ne2o0s, ease-out);
|
|
121
121
|
}
|
|
122
122
|
@media (prefers-reduced-motion: reduce) {
|
|
123
|
-
.awsui_trigger-
|
|
123
|
+
.awsui_trigger-expanded_gwq0h_11fqg_119:not(#\9) {
|
|
124
124
|
animation: none;
|
|
125
125
|
transition: none;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
.awsui-motion-disabled .awsui_trigger-
|
|
128
|
+
.awsui-motion-disabled .awsui_trigger-expanded_gwq0h_11fqg_119:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_11fqg_119:not(#\9) {
|
|
129
129
|
animation: none;
|
|
130
130
|
transition: none;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
.
|
|
133
|
+
.awsui_icon_gwq0h_11fqg_133:not(#\9) {
|
|
134
134
|
transition: transform var(--motion-duration-rotate-90-4ry26y, 135ms) var(--motion-easing-rotate-90-sb4dk7, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
135
135
|
}
|
|
136
136
|
@media (prefers-reduced-motion: reduce) {
|
|
137
|
-
.
|
|
137
|
+
.awsui_icon_gwq0h_11fqg_133:not(#\9) {
|
|
138
138
|
animation: none;
|
|
139
139
|
transition: none;
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
|
-
.awsui-motion-disabled .
|
|
142
|
+
.awsui-motion-disabled .awsui_icon_gwq0h_11fqg_133:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_11fqg_133:not(#\9) {
|
|
143
143
|
animation: none;
|
|
144
144
|
transition: none;
|
|
145
145
|
}
|
|
@@ -148,7 +148,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
148
148
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
149
149
|
SPDX-License-Identifier: Apache-2.0
|
|
150
150
|
*/
|
|
151
|
-
.
|
|
151
|
+
.awsui_root_gwq0h_11fqg_151:not(#\9) {
|
|
152
152
|
border-collapse: separate;
|
|
153
153
|
border-spacing: 0;
|
|
154
154
|
box-sizing: border-box;
|
|
@@ -187,123 +187,123 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
187
187
|
display: block;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
.awsui_expand-
|
|
191
|
-
|
|
190
|
+
.awsui_expand-button_gwq0h_11fqg_189:not(#\9) {
|
|
191
|
+
outline: none;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.
|
|
194
|
+
.awsui_icon_gwq0h_11fqg_133:not(#\9) {
|
|
195
195
|
transform: rotate(-90deg);
|
|
196
196
|
}
|
|
197
|
-
.
|
|
197
|
+
.awsui_icon_gwq0h_11fqg_133.awsui_expanded_gwq0h_11fqg_196:not(#\9) {
|
|
198
198
|
transform: rotate(0deg);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
|
-
.awsui_icon-
|
|
201
|
+
.awsui_icon-container_gwq0h_11fqg_200:not(#\9) {
|
|
202
202
|
position: relative;
|
|
203
203
|
margin-left: calc((var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2);
|
|
204
204
|
margin-right: calc(var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
|
|
205
205
|
}
|
|
206
|
-
.awsui_icon-container-
|
|
206
|
+
.awsui_icon-container-container_gwq0h_11fqg_205:not(#\9) {
|
|
207
207
|
margin-right: var(--space-xs-zb16t3, 8px);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
|
-
.
|
|
210
|
+
.awsui_wrapper_gwq0h_11fqg_209:not(#\9) {
|
|
211
211
|
box-sizing: border-box;
|
|
212
212
|
border: none;
|
|
213
213
|
width: 100%;
|
|
214
214
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
215
215
|
text-align: left;
|
|
216
216
|
}
|
|
217
|
-
.awsui_wrapper-
|
|
217
|
+
.awsui_wrapper-default_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9) {
|
|
218
218
|
border: var(--border-divider-section-width-1061zr, 1px) solid transparent;
|
|
219
219
|
}
|
|
220
|
-
.awsui_wrapper-
|
|
220
|
+
.awsui_wrapper-navigation_gwq0h_11fqg_219:not(#\9) {
|
|
221
221
|
border-left: var(--border-divider-section-width-1061zr, 1px) solid transparent;
|
|
222
222
|
}
|
|
223
|
-
.awsui_wrapper-
|
|
223
|
+
.awsui_wrapper-navigation_gwq0h_11fqg_219:not(#\9), .awsui_wrapper-container_gwq0h_11fqg_222:not(#\9) {
|
|
224
224
|
display: flex;
|
|
225
225
|
font-weight: var(--font-weight-heading-s-cwn6wc, 700);
|
|
226
226
|
}
|
|
227
|
-
.awsui_wrapper-
|
|
227
|
+
.awsui_wrapper-default_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-navigation_gwq0h_11fqg_219:not(#\9), .awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-compact_gwq0h_11fqg_226:not(#\9) {
|
|
228
228
|
color: var(--color-text-expandable-section-default-djhi83, #000716);
|
|
229
229
|
-webkit-font-smoothing: var(--font-smoothing-webkit-m8nc84, antialiased);
|
|
230
230
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-foywby, grayscale);
|
|
231
231
|
}
|
|
232
|
-
.awsui_wrapper-
|
|
232
|
+
.awsui_wrapper-default_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-navigation_gwq0h_11fqg_219:not(#\9), .awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9) {
|
|
233
233
|
font-size: var(--font-expandable-heading-size-smdiul, 16px);
|
|
234
234
|
letter-spacing: var(--letter-spacing-heading-s-jr3mor, -0.005em);
|
|
235
235
|
}
|
|
236
|
-
.awsui_wrapper-
|
|
236
|
+
.awsui_wrapper-default_gwq0h_11fqg_216:not(#\9) {
|
|
237
237
|
padding-top: var(--space-scaled-xxs-7597g1, 4px);
|
|
238
238
|
padding-bottom: var(--space-scaled-xxs-7597g1, 4px);
|
|
239
239
|
padding-right: var(--space-xxs-p8yyaw, 4px);
|
|
240
240
|
}
|
|
241
|
-
.awsui_wrapper-
|
|
241
|
+
.awsui_wrapper-default_gwq0h_11fqg_216.awsui_header-deprecated_gwq0h_11fqg_240:not(#\9) {
|
|
242
242
|
padding-left: var(--space-xxs-p8yyaw, 4px);
|
|
243
243
|
}
|
|
244
|
-
.awsui_wrapper-
|
|
244
|
+
.awsui_wrapper-default_gwq0h_11fqg_216:not(#\9):not(.awsui_header-deprecated_gwq0h_11fqg_240) {
|
|
245
245
|
padding-left: calc(var(--space-xxs-p8yyaw, 4px) + calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px)));
|
|
246
246
|
}
|
|
247
|
-
.awsui_wrapper-
|
|
247
|
+
.awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9) {
|
|
248
248
|
padding-top: var(--space-scaled-xxs-7597g1, 4px);
|
|
249
249
|
padding-bottom: var(--space-scaled-xxs-7597g1, 4px);
|
|
250
250
|
}
|
|
251
|
-
.awsui_wrapper-
|
|
251
|
+
.awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9), .awsui_wrapper-compact_gwq0h_11fqg_226:not(#\9) {
|
|
252
252
|
padding-right: 0;
|
|
253
253
|
}
|
|
254
|
-
.awsui_wrapper-
|
|
254
|
+
.awsui_wrapper-footer_gwq0h_11fqg_216.awsui_header-deprecated_gwq0h_11fqg_240:not(#\9), .awsui_wrapper-compact_gwq0h_11fqg_226.awsui_header-deprecated_gwq0h_11fqg_240:not(#\9) {
|
|
255
255
|
padding-left: 0;
|
|
256
256
|
}
|
|
257
|
-
.awsui_wrapper-
|
|
257
|
+
.awsui_wrapper-footer_gwq0h_11fqg_216:not(#\9):not(.awsui_header-deprecated_gwq0h_11fqg_240), .awsui_wrapper-compact_gwq0h_11fqg_226:not(#\9):not(.awsui_header-deprecated_gwq0h_11fqg_240) {
|
|
258
258
|
padding-left: calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
|
|
259
259
|
}
|
|
260
|
-
.awsui_wrapper-
|
|
260
|
+
.awsui_wrapper-container_gwq0h_11fqg_222:not(#\9) {
|
|
261
261
|
padding-top: var(--space-container-header-top-5qav00, 12px);
|
|
262
262
|
padding-bottom: var(--space-container-header-bottom-vj01hn, 8px);
|
|
263
263
|
padding-right: var(--space-container-horizontal-wfukh3, 20px);
|
|
264
264
|
}
|
|
265
|
-
.awsui_wrapper-
|
|
265
|
+
.awsui_wrapper-container_gwq0h_11fqg_222:not(#\9):not(.awsui_wrapper-expanded_gwq0h_11fqg_264) {
|
|
266
266
|
padding-bottom: var(--space-container-header-top-5qav00, 12px);
|
|
267
267
|
}
|
|
268
|
-
.awsui_wrapper-
|
|
268
|
+
.awsui_wrapper-container_gwq0h_11fqg_222.awsui_header-deprecated_gwq0h_11fqg_240:not(#\9) {
|
|
269
269
|
padding-left: var(--space-container-horizontal-wfukh3, 20px);
|
|
270
270
|
}
|
|
271
|
-
.awsui_wrapper-
|
|
271
|
+
.awsui_wrapper-container_gwq0h_11fqg_222:not(#\9):not(.awsui_header-deprecated_gwq0h_11fqg_240) {
|
|
272
272
|
padding-left: calc(var(--space-container-horizontal-wfukh3, 20px) + calc(var(--size-icon-medium-y9xuoq, 20px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xs-zb16t3, 8px)));
|
|
273
273
|
}
|
|
274
|
-
body[data-awsui-focus-visible=true] .awsui_wrapper-
|
|
274
|
+
body[data-awsui-focus-visible=true] .awsui_wrapper-container_gwq0h_11fqg_222:not(#\9):focus {
|
|
275
275
|
padding: calc(var(--space-scaled-s-aqzyko, 12px) - var(--border-divider-section-width-1061zr, 1px)) calc(var(--space-l-t419sm, 20px) - var(--border-divider-section-width-1061zr, 1px));
|
|
276
276
|
}
|
|
277
|
-
.awsui_wrapper-
|
|
277
|
+
.awsui_wrapper-default_gwq0h_11fqg_216.awsui_wrapper-expanded_gwq0h_11fqg_264:not(#\9) {
|
|
278
278
|
border-bottom-color: var(--color-border-divider-default-j74lyz, #b6bec9);
|
|
279
279
|
}
|
|
280
280
|
|
|
281
|
-
.
|
|
281
|
+
.awsui_header_gwq0h_11fqg_240:not(#\9) {
|
|
282
282
|
/* used in test-utils */
|
|
283
283
|
}
|
|
284
|
-
.awsui_header-
|
|
284
|
+
.awsui_header-wrapper_gwq0h_11fqg_283:not(#\9), .awsui_header-deprecated_gwq0h_11fqg_240:not(#\9) {
|
|
285
285
|
display: flex;
|
|
286
286
|
font-weight: var(--font-weight-heading-s-cwn6wc, 700);
|
|
287
287
|
}
|
|
288
|
-
.awsui_header-
|
|
288
|
+
.awsui_header-wrapper_gwq0h_11fqg_283:not(#\9) {
|
|
289
289
|
font-size: inherit;
|
|
290
290
|
letter-spacing: inherit;
|
|
291
291
|
margin: 0;
|
|
292
292
|
padding: 0;
|
|
293
293
|
}
|
|
294
|
-
.awsui_header-actions-
|
|
294
|
+
.awsui_header-actions-wrapper_gwq0h_11fqg_293:not(#\9) {
|
|
295
295
|
display: flex;
|
|
296
296
|
flex-direction: row;
|
|
297
297
|
justify-content: space-between;
|
|
298
298
|
}
|
|
299
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
299
|
+
body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_11fqg_298:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_11fqg_298:not(#\9):focus {
|
|
300
300
|
position: relative;
|
|
301
301
|
}
|
|
302
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
302
|
+
body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_11fqg_298:not(#\9):focus, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_11fqg_298:not(#\9):focus {
|
|
303
303
|
outline: 2px dotted transparent;
|
|
304
304
|
outline-offset: calc(0px - 1px);
|
|
305
305
|
}
|
|
306
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
306
|
+
body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_11fqg_298:not(#\9):focus::before, body[data-awsui-focus-visible=true] .awsui_header-container-button_gwq0h_11fqg_298:not(#\9):focus::before {
|
|
307
307
|
content: " ";
|
|
308
308
|
display: block;
|
|
309
309
|
position: absolute;
|
|
@@ -314,21 +314,21 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_g3frk_298:not(#\9
|
|
|
314
314
|
border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
315
315
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
316
316
|
}
|
|
317
|
-
.awsui_header-
|
|
317
|
+
.awsui_header-button_gwq0h_11fqg_298:not(#\9) {
|
|
318
318
|
box-sizing: border-box;
|
|
319
319
|
display: flex;
|
|
320
320
|
margin-left: calc(-1 * calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px)));
|
|
321
321
|
}
|
|
322
|
-
.awsui_header-container-
|
|
322
|
+
.awsui_header-container-button_gwq0h_11fqg_298:not(#\9) {
|
|
323
323
|
margin-left: calc(-1 * calc(var(--size-icon-medium-y9xuoq, 20px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xs-zb16t3, 8px)));
|
|
324
324
|
}
|
|
325
|
-
.awsui_header-
|
|
325
|
+
.awsui_header-container_gwq0h_11fqg_298:not(#\9) {
|
|
326
326
|
width: 100%;
|
|
327
327
|
}
|
|
328
|
-
.awsui_header-
|
|
328
|
+
.awsui_header-container_gwq0h_11fqg_298 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9) {
|
|
329
329
|
margin-top: var(--space-expandable-section-icon-offset-top-ekk5vc, 4px);
|
|
330
330
|
}
|
|
331
|
-
.awsui_header-
|
|
331
|
+
.awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9) {
|
|
332
332
|
display: inline-flex;
|
|
333
333
|
cursor: pointer;
|
|
334
334
|
color: var(--color-text-expandable-section-navigation-icon-default-htcovl, #414d5c);
|
|
@@ -339,17 +339,17 @@ body[data-awsui-focus-visible=true] .awsui_header-button_gwq0h_g3frk_298:not(#\9
|
|
|
339
339
|
text-decoration: none;
|
|
340
340
|
flex-direction: column;
|
|
341
341
|
}
|
|
342
|
-
.awsui_header-
|
|
342
|
+
.awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9):hover {
|
|
343
343
|
color: var(--color-text-expandable-section-hover-2d1zpj, #0972d3);
|
|
344
344
|
}
|
|
345
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
345
|
+
body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9):focus {
|
|
346
346
|
position: relative;
|
|
347
347
|
}
|
|
348
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
348
|
+
body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9):focus {
|
|
349
349
|
outline: 2px dotted transparent;
|
|
350
350
|
outline-offset: calc(2px - 1px);
|
|
351
351
|
}
|
|
352
|
-
body[data-awsui-focus-visible=true] .awsui_header-
|
|
352
|
+
body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_11fqg_330 > .awsui_icon-container_gwq0h_11fqg_200:not(#\9):focus::before {
|
|
353
353
|
content: " ";
|
|
354
354
|
display: block;
|
|
355
355
|
position: absolute;
|
|
@@ -360,40 +360,40 @@ body[data-awsui-focus-visible=true] .awsui_header-navigation_gwq0h_g3frk_330 > .
|
|
|
360
360
|
border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
361
361
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
362
362
|
}
|
|
363
|
-
.awsui_header-
|
|
363
|
+
.awsui_header-text_gwq0h_11fqg_362:not(#\9) {
|
|
364
364
|
/* used in test-utils */
|
|
365
365
|
}
|
|
366
366
|
|
|
367
|
-
.
|
|
367
|
+
.awsui_content_gwq0h_11fqg_97:not(#\9) {
|
|
368
368
|
display: none;
|
|
369
369
|
}
|
|
370
|
-
.awsui_content-
|
|
370
|
+
.awsui_content-default_gwq0h_11fqg_369:not(#\9) {
|
|
371
371
|
padding: var(--space-scaled-xs-26e2du, 8px) 0;
|
|
372
372
|
}
|
|
373
|
-
.awsui_content-
|
|
373
|
+
.awsui_content-footer_gwq0h_11fqg_372:not(#\9) {
|
|
374
374
|
padding: var(--space-xs-zb16t3, 8px) 0;
|
|
375
375
|
}
|
|
376
|
-
.awsui_content-
|
|
376
|
+
.awsui_content-expanded_gwq0h_11fqg_375:not(#\9) {
|
|
377
377
|
display: block;
|
|
378
378
|
}
|
|
379
|
-
.awsui_content-
|
|
379
|
+
.awsui_content-compact_gwq0h_11fqg_378:not(#\9) {
|
|
380
380
|
padding-inline-start: calc(var(--size-icon-normal-0m1722, 16px) + (var(--line-height-body-m-30ar75, 20px) - var(--size-icon-normal-0m1722, 16px)) / -2 + var(--space-xxs-p8yyaw, 4px) + var(--border-divider-list-width-27y3k5, 1px));
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
.
|
|
383
|
+
.awsui_focusable_gwq0h_11fqg_382:not(#\9):focus {
|
|
384
384
|
outline: none;
|
|
385
385
|
text-decoration: none;
|
|
386
386
|
}
|
|
387
|
-
body[data-awsui-focus-visible=true] .
|
|
387
|
+
body[data-awsui-focus-visible=true] .awsui_focusable_gwq0h_11fqg_382:not(#\9):focus {
|
|
388
388
|
outline: 2px dotted transparent;
|
|
389
389
|
border: var(--border-field-width-09w7vk, 2px) solid var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
390
390
|
border-radius: var(--border-radius-control-default-focus-ring-u8zbsz, 4px);
|
|
391
391
|
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-b2ntyl, #0972d3);
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
.awsui_click-
|
|
394
|
+
.awsui_click-target_gwq0h_11fqg_393:not(#\9) {
|
|
395
395
|
cursor: pointer;
|
|
396
396
|
}
|
|
397
|
-
.awsui_click-
|
|
397
|
+
.awsui_click-target_gwq0h_11fqg_393:not(#\9):not(.awsui_wrapper-container_gwq0h_11fqg_222):not(.awsui_header-container-button_gwq0h_11fqg_298):hover {
|
|
398
398
|
color: var(--color-text-expandable-section-hover-2d1zpj, #0972d3);
|
|
399
399
|
}
|
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"content-enter": "awsui_content-
|
|
6
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
7
|
-
"trigger-expanded": "awsui_trigger-
|
|
8
|
-
"icon": "
|
|
9
|
-
"root": "
|
|
10
|
-
"expand-button": "awsui_expand-
|
|
11
|
-
"expanded": "
|
|
12
|
-
"icon-container": "awsui_icon-
|
|
13
|
-
"icon-container-container": "awsui_icon-container-
|
|
14
|
-
"wrapper": "
|
|
15
|
-
"wrapper-default": "awsui_wrapper-
|
|
16
|
-
"wrapper-footer": "awsui_wrapper-
|
|
17
|
-
"wrapper-navigation": "awsui_wrapper-
|
|
18
|
-
"wrapper-container": "awsui_wrapper-
|
|
19
|
-
"wrapper-compact": "awsui_wrapper-
|
|
20
|
-
"header-deprecated": "awsui_header-
|
|
21
|
-
"wrapper-expanded": "awsui_wrapper-
|
|
22
|
-
"header": "
|
|
23
|
-
"header-wrapper": "awsui_header-
|
|
24
|
-
"header-actions-wrapper": "awsui_header-actions-
|
|
25
|
-
"header-button": "awsui_header-
|
|
26
|
-
"header-container-button": "awsui_header-container-
|
|
27
|
-
"header-container": "awsui_header-
|
|
28
|
-
"header-navigation": "awsui_header-
|
|
29
|
-
"header-text": "awsui_header-
|
|
30
|
-
"content": "
|
|
31
|
-
"content-default": "awsui_content-
|
|
32
|
-
"content-footer": "awsui_content-
|
|
33
|
-
"content-expanded": "awsui_content-
|
|
34
|
-
"content-compact": "awsui_content-
|
|
35
|
-
"focusable": "
|
|
36
|
-
"click-target": "awsui_click-
|
|
5
|
+
"content-enter": "awsui_content-enter_gwq0h_11fqg_97",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_11fqg_1",
|
|
7
|
+
"trigger-expanded": "awsui_trigger-expanded_gwq0h_11fqg_119",
|
|
8
|
+
"icon": "awsui_icon_gwq0h_11fqg_133",
|
|
9
|
+
"root": "awsui_root_gwq0h_11fqg_151",
|
|
10
|
+
"expand-button": "awsui_expand-button_gwq0h_11fqg_189",
|
|
11
|
+
"expanded": "awsui_expanded_gwq0h_11fqg_196",
|
|
12
|
+
"icon-container": "awsui_icon-container_gwq0h_11fqg_200",
|
|
13
|
+
"icon-container-container": "awsui_icon-container-container_gwq0h_11fqg_205",
|
|
14
|
+
"wrapper": "awsui_wrapper_gwq0h_11fqg_209",
|
|
15
|
+
"wrapper-default": "awsui_wrapper-default_gwq0h_11fqg_216",
|
|
16
|
+
"wrapper-footer": "awsui_wrapper-footer_gwq0h_11fqg_216",
|
|
17
|
+
"wrapper-navigation": "awsui_wrapper-navigation_gwq0h_11fqg_219",
|
|
18
|
+
"wrapper-container": "awsui_wrapper-container_gwq0h_11fqg_222",
|
|
19
|
+
"wrapper-compact": "awsui_wrapper-compact_gwq0h_11fqg_226",
|
|
20
|
+
"header-deprecated": "awsui_header-deprecated_gwq0h_11fqg_240",
|
|
21
|
+
"wrapper-expanded": "awsui_wrapper-expanded_gwq0h_11fqg_264",
|
|
22
|
+
"header": "awsui_header_gwq0h_11fqg_240",
|
|
23
|
+
"header-wrapper": "awsui_header-wrapper_gwq0h_11fqg_283",
|
|
24
|
+
"header-actions-wrapper": "awsui_header-actions-wrapper_gwq0h_11fqg_293",
|
|
25
|
+
"header-button": "awsui_header-button_gwq0h_11fqg_298",
|
|
26
|
+
"header-container-button": "awsui_header-container-button_gwq0h_11fqg_298",
|
|
27
|
+
"header-container": "awsui_header-container_gwq0h_11fqg_298",
|
|
28
|
+
"header-navigation": "awsui_header-navigation_gwq0h_11fqg_330",
|
|
29
|
+
"header-text": "awsui_header-text_gwq0h_11fqg_362",
|
|
30
|
+
"content": "awsui_content_gwq0h_11fqg_97",
|
|
31
|
+
"content-default": "awsui_content-default_gwq0h_11fqg_369",
|
|
32
|
+
"content-footer": "awsui_content-footer_gwq0h_11fqg_372",
|
|
33
|
+
"content-expanded": "awsui_content-expanded_gwq0h_11fqg_375",
|
|
34
|
+
"content-compact": "awsui_content-compact_gwq0h_11fqg_378",
|
|
35
|
+
"focusable": "awsui_focusable_gwq0h_11fqg_382",
|
|
36
|
+
"click-target": "awsui_click-target_gwq0h_11fqg_393"
|
|
37
37
|
};
|
|
38
38
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import React, { useEffect, useRef } from 'react';
|
|
4
4
|
import { useMutationObserver } from '../../hooks/use-mutation-observer';
|
|
5
|
-
import {
|
|
5
|
+
import { getContentHeaderClassName } from '../../utils/content-header-utils';
|
|
6
6
|
import styles from './styles.css.js';
|
|
7
7
|
import { useStableCallback } from '@cloudscape-design/component-toolkit/internal';
|
|
8
8
|
function setIfChanged(oldValue, newValue, setter) {
|
|
@@ -40,7 +40,7 @@ export default function DarkRibbon({ children, isRefresh, hasPlainStyling }) {
|
|
|
40
40
|
if (hasPlainStyling === true || !isRefresh) {
|
|
41
41
|
return React.createElement(React.Fragment, null, children);
|
|
42
42
|
}
|
|
43
|
-
return (React.createElement("div", { ref: containerRef, className:
|
|
43
|
+
return (React.createElement("div", { ref: containerRef, className: getContentHeaderClassName() },
|
|
44
44
|
React.createElement("div", { ref: fillRef, className: styles['background-fill'] }),
|
|
45
45
|
React.createElement("div", { className: styles.content }, children)));
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/dark-ribbon/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"lib/default/","sources":["internal/components/dark-ribbon/index.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 React, { useEffect, useRef } from 'react';\nimport { useMutationObserver } from '../../hooks/use-mutation-observer';\nimport { getContentHeaderClassName } from '../../utils/content-header-utils';\nimport styles from './styles.css.js';\nimport { useStableCallback } from '@cloudscape-design/component-toolkit/internal';\n\ninterface DarkRibbonProps {\n children: React.ReactNode;\n isRefresh: boolean;\n hasPlainStyling?: boolean;\n}\n\nfunction setIfChanged(oldValue: string, newValue: string, setter: (newValue: string) => void) {\n if (oldValue !== newValue) {\n setter(newValue);\n }\n}\n\nexport default function DarkRibbon({ children, isRefresh, hasPlainStyling }: DarkRibbonProps) {\n const containerRef = useRef<HTMLDivElement>(null);\n const fillRef = useRef<HTMLDivElement>(null);\n const syncSizes = useStableCallback((from: HTMLElement, to: HTMLElement) => {\n // JSDOM calls mutation observer callback even if attribute did not change\n // https://github.com/jsdom/jsdom/issues/3305\n // To prevent infinite loops, we need to check the values before setting\n const size = from.getBoundingClientRect();\n const { height: oldHeight, left: oldLeft, right: oldRight } = to.style;\n setIfChanged(oldHeight, `${size.height}px`, newHeight => (to.style.height = newHeight));\n setIfChanged(oldLeft, `${-1 * size.left}px`, newLeft => (to.style.left = newLeft));\n setIfChanged(\n oldRight,\n `${-1 * (document.body.clientWidth - size.right)}px`,\n newRight => (to.style.right = newRight)\n );\n });\n useMutationObserver(containerRef, node => {\n if (fillRef.current) {\n syncSizes(node, fillRef.current);\n }\n });\n useEffect(() => {\n const handler = () => {\n if (containerRef.current && fillRef.current) {\n syncSizes(containerRef.current, fillRef.current);\n }\n };\n window.addEventListener('resize', handler);\n return () => window.removeEventListener('resize', handler);\n }, [syncSizes]);\n\n if (hasPlainStyling === true || !isRefresh) {\n return <>{children}</>;\n }\n\n return (\n <div ref={containerRef} className={getContentHeaderClassName()}>\n <div ref={fillRef} className={styles['background-fill']} />\n <div className={styles.content}>{children}</div>\n </div>\n );\n}\n"]}
|
package/internal/environment.js
CHANGED
package/internal/manifest.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const shouldRemoveHighContrastHeader: boolean;
|
|
2
|
-
export declare const
|
|
1
|
+
export declare const shouldRemoveHighContrastHeader: () => boolean;
|
|
2
|
+
export declare const getContentHeaderClassName: () => string;
|
|
3
3
|
//# sourceMappingURL=content-header-utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-header-utils.d.ts","sourceRoot":"lib/default/","sources":["internal/utils/content-header-utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,8BAA8B,
|
|
1
|
+
{"version":3,"file":"content-header-utils.d.ts","sourceRoot":"lib/default/","sources":["internal/utils/content-header-utils.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,8BAA8B,QAAO,OAAsD,CAAC;AACzG,eAAO,MAAM,yBAAyB,QAAO,MAC2B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { getGlobalFlag } from './global-flags';
|
|
4
|
-
export const shouldRemoveHighContrastHeader = !!getGlobalFlag('removeHighContrastHeader');
|
|
5
|
-
export const
|
|
4
|
+
export const shouldRemoveHighContrastHeader = () => !!getGlobalFlag('removeHighContrastHeader');
|
|
5
|
+
export const getContentHeaderClassName = () => shouldRemoveHighContrastHeader() ? '' : 'awsui-context-content-header';
|
|
6
6
|
//# sourceMappingURL=content-header-utils.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-header-utils.js","sourceRoot":"lib/default/","sources":["internal/utils/content-header-utils.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAC,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"content-header-utils.js","sourceRoot":"lib/default/","sources":["internal/utils/content-header-utils.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,MAAM,CAAC,MAAM,8BAA8B,GAAG,GAAY,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,0BAA0B,CAAC,CAAC;AACzG,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAW,EAAE,CACpD,8BAA8B,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,8BAA8B,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { getGlobalFlag } from './global-flags';\n\nexport const shouldRemoveHighContrastHeader = (): boolean => !!getGlobalFlag('removeHighContrastHeader');\nexport const getContentHeaderClassName = (): string =>\n shouldRemoveHighContrastHeader() ? '' : 'awsui-context-content-header';\n"]}
|