@cloudscape-design/components-themeable 3.0.3 → 3.0.6
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/scss/container/styles.scss +4 -1
- package/lib/internal/template/alert/interfaces.d.ts +1 -0
- package/lib/internal/template/alert/interfaces.d.ts.map +1 -1
- package/lib/internal/template/alert/interfaces.js.map +1 -1
- 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/index.d.ts.map +1 -1
- package/lib/internal/template/app-layout/index.js +14 -11
- package/lib/internal/template/app-layout/index.js.map +1 -1
- package/lib/internal/template/app-layout/toggles/styles.css.js +3 -3
- package/lib/internal/template/app-layout/toggles/styles.scoped.css +13 -13
- package/lib/internal/template/app-layout/toggles/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh/context.d.ts +4 -2
- package/lib/internal/template/app-layout/visual-refresh/context.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/context.js +31 -21
- package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/layout.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/layout.js +2 -13
- package/lib/internal/template/app-layout/visual-refresh/layout.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/split-panel.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/split-panel.js +6 -2
- package/lib/internal/template/app-layout/visual-refresh/split-panel.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +59 -59
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +153 -153
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +59 -59
- package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
- package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +19 -19
- package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
- package/lib/internal/template/button/styles.css.js +18 -18
- package/lib/internal/template/button/styles.scoped.css +190 -190
- package/lib/internal/template/button/styles.selectors.js +18 -18
- package/lib/internal/template/checkbox/styles.css.js +3 -3
- package/lib/internal/template/checkbox/styles.scoped.css +8 -8
- package/lib/internal/template/checkbox/styles.selectors.js +3 -3
- package/lib/internal/template/code-editor/preferences-modal.js +2 -2
- package/lib/internal/template/code-editor/preferences-modal.js.map +1 -1
- package/lib/internal/template/code-editor/styles.css.js +33 -33
- package/lib/internal/template/code-editor/styles.scoped.css +168 -168
- package/lib/internal/template/code-editor/styles.selectors.js +33 -33
- package/lib/internal/template/container/styles.css.js +15 -14
- package/lib/internal/template/container/styles.scoped.css +27 -23
- package/lib/internal/template/container/styles.selectors.js +15 -14
- package/lib/internal/template/date-picker/styles.css.js +24 -24
- package/lib/internal/template/date-picker/styles.scoped.css +45 -45
- package/lib/internal/template/date-picker/styles.selectors.js +24 -24
- package/lib/internal/template/date-range-picker/calendar/grids/day/styles.css.js +21 -21
- package/lib/internal/template/date-range-picker/calendar/grids/day/styles.scoped.css +42 -42
- package/lib/internal/template/date-range-picker/calendar/grids/day/styles.selectors.js +21 -21
- package/lib/internal/template/date-range-picker/styles.css.js +42 -42
- package/lib/internal/template/date-range-picker/styles.scoped.css +53 -53
- package/lib/internal/template/date-range-picker/styles.selectors.js +42 -42
- package/lib/internal/template/expandable-section/styles.css.js +20 -20
- package/lib/internal/template/expandable-section/styles.scoped.css +46 -46
- package/lib/internal/template/expandable-section/styles.selectors.js +20 -20
- package/lib/internal/template/flashbar/interfaces.d.ts +4 -4
- package/lib/internal/template/flashbar/interfaces.js.map +1 -1
- package/lib/internal/template/form-field/internal.js +3 -3
- package/lib/internal/template/form-field/internal.js.map +1 -1
- package/lib/internal/template/help-panel/styles.css.js +4 -4
- package/lib/internal/template/help-panel/styles.scoped.css +62 -62
- package/lib/internal/template/help-panel/styles.selectors.js +4 -4
- package/lib/internal/template/input/styles.css.js +13 -13
- package/lib/internal/template/input/styles.scoped.css +39 -39
- package/lib/internal/template/input/styles.selectors.js +13 -13
- package/lib/internal/template/internal/base-component/styles.scoped.css +28 -18
- package/lib/internal/template/internal/components/button-trigger/styles.css.js +9 -9
- package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +31 -31
- package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +9 -9
- package/lib/internal/template/internal/components/cartesian-chart/styles.css.js +21 -21
- package/lib/internal/template/internal/components/cartesian-chart/styles.scoped.css +26 -26
- package/lib/internal/template/internal/components/cartesian-chart/styles.selectors.js +21 -21
- package/lib/internal/template/internal/components/chart-legend/styles.css.js +7 -7
- package/lib/internal/template/internal/components/chart-legend/styles.scoped.css +17 -17
- package/lib/internal/template/internal/components/chart-legend/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/chart-plot/styles.css.js +5 -5
- package/lib/internal/template/internal/components/chart-plot/styles.scoped.css +7 -7
- package/lib/internal/template/internal/components/chart-plot/styles.selectors.js +5 -5
- package/lib/internal/template/internal/components/filtering-token/styles.css.js +7 -7
- package/lib/internal/template/internal/components/filtering-token/styles.scoped.css +15 -15
- package/lib/internal/template/internal/components/filtering-token/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/menu-dropdown/styles.css.js +7 -7
- package/lib/internal/template/internal/components/menu-dropdown/styles.scoped.css +15 -15
- package/lib/internal/template/internal/components/menu-dropdown/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/selectable-item/styles.css.js +16 -16
- package/lib/internal/template/internal/components/selectable-item/styles.scoped.css +29 -29
- package/lib/internal/template/internal/components/selectable-item/styles.selectors.js +16 -16
- package/lib/internal/template/internal/context/app-layout-context.d.ts +1 -1
- package/lib/internal/template/internal/context/app-layout-context.d.ts.map +1 -1
- package/lib/internal/template/internal/context/app-layout-context.js +3 -4
- package/lib/internal/template/internal/context/app-layout-context.js.map +1 -1
- package/lib/internal/template/internal/context/form-field-context.d.ts +1 -1
- package/lib/internal/template/internal/context/form-field-context.d.ts.map +1 -1
- package/lib/internal/template/internal/context/form-field-context.js +3 -4
- package/lib/internal/template/internal/context/form-field-context.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/generated/theming/index.cjs +14 -3
- package/lib/internal/template/internal/generated/theming/index.js +14 -3
- package/lib/internal/template/link/styles.css.js +18 -18
- package/lib/internal/template/link/styles.scoped.css +73 -73
- package/lib/internal/template/link/styles.selectors.js +18 -18
- package/lib/internal/template/pagination/styles.css.js +9 -9
- package/lib/internal/template/pagination/styles.scoped.css +27 -27
- package/lib/internal/template/pagination/styles.selectors.js +9 -9
- package/lib/internal/template/popover/styles.css.js +48 -48
- package/lib/internal/template/popover/styles.scoped.css +64 -64
- package/lib/internal/template/popover/styles.selectors.js +48 -48
- package/lib/internal/template/radio-group/styles.css.js +9 -9
- package/lib/internal/template/radio-group/styles.scoped.css +18 -18
- package/lib/internal/template/radio-group/styles.selectors.js +9 -9
- package/lib/internal/template/segmented-control/styles.css.js +14 -14
- package/lib/internal/template/segmented-control/styles.scoped.css +35 -35
- package/lib/internal/template/segmented-control/styles.selectors.js +14 -14
- package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
- package/lib/internal/template/select/utils/use-select.js +1 -0
- package/lib/internal/template/select/utils/use-select.js.map +1 -1
- package/lib/internal/template/side-navigation/styles.css.js +22 -22
- package/lib/internal/template/side-navigation/styles.scoped.css +36 -36
- package/lib/internal/template/side-navigation/styles.selectors.js +22 -22
- package/lib/internal/template/split-panel/index.js +2 -2
- package/lib/internal/template/split-panel/index.js.map +1 -1
- package/lib/internal/template/split-panel/styles.css.js +58 -58
- package/lib/internal/template/split-panel/styles.scoped.css +82 -82
- package/lib/internal/template/split-panel/styles.selectors.js +58 -58
- package/lib/internal/template/split-panel/utils/size-utils.d.ts +11 -0
- package/lib/internal/template/split-panel/utils/size-utils.d.ts.map +1 -1
- package/lib/internal/template/split-panel/utils/size-utils.js +12 -1
- package/lib/internal/template/split-panel/utils/size-utils.js.map +1 -1
- package/lib/internal/template/table/header-cell/styles.css.js +14 -14
- package/lib/internal/template/table/header-cell/styles.scoped.css +28 -28
- package/lib/internal/template/table/header-cell/styles.selectors.js +14 -14
- package/lib/internal/template/table/styles.css.js +32 -32
- package/lib/internal/template/table/styles.scoped.css +39 -39
- package/lib/internal/template/table/styles.selectors.js +32 -32
- package/lib/internal/template/tabs/styles.css.js +21 -21
- package/lib/internal/template/tabs/styles.scoped.css +39 -39
- package/lib/internal/template/tabs/styles.selectors.js +21 -21
- package/lib/internal/template/tag-editor/index.js +1 -1
- package/lib/internal/template/tag-editor/index.js.map +1 -1
- package/lib/internal/template/tag-editor/interfaces.d.ts +1 -1
- package/lib/internal/template/tag-editor/interfaces.d.ts.map +1 -1
- package/lib/internal/template/tag-editor/interfaces.js.map +1 -1
- package/lib/internal/template/tag-editor/styles.css.js +3 -3
- package/lib/internal/template/tag-editor/styles.scoped.css +14 -14
- package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +64 -64
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/lib/internal/template/textarea/styles.css.js +4 -4
- package/lib/internal/template/textarea/styles.scoped.css +20 -20
- package/lib/internal/template/textarea/styles.selectors.js +4 -4
- package/lib/internal/template/toggle/styles.css.js +8 -8
- package/lib/internal/template/toggle/styles.scoped.css +16 -16
- package/lib/internal/template/toggle/styles.selectors.js +8 -8
- package/lib/internal/template/token-group/styles.css.js +7 -7
- package/lib/internal/template/token-group/styles.scoped.css +28 -28
- package/lib/internal/template/token-group/styles.selectors.js +7 -7
- package/lib/internal/template/top-navigation/1.0-beta/styles.css.js +25 -25
- package/lib/internal/template/top-navigation/1.0-beta/styles.scoped.css +46 -46
- package/lib/internal/template/top-navigation/1.0-beta/styles.selectors.js +25 -25
- package/lib/internal/template/top-navigation/styles.css.js +47 -47
- package/lib/internal/template/top-navigation/styles.scoped.css +72 -72
- package/lib/internal/template/top-navigation/styles.selectors.js +47 -47
- package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js +1 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-list/index.js.map +1 -1
- package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.css.js +18 -18
- package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.scoped.css +32 -32
- package/lib/internal/template/tutorial-panel/components/tutorial-list/styles.selectors.js +18 -18
- package/lib/internal/template/wizard/styles.css.js +31 -31
- package/lib/internal/template/wizard/styles.scoped.css +62 -62
- package/lib/internal/template/wizard/styles.selectors.js +31 -31
- package/package.json +1 -1
- package/lib/internal/template/internal/hooks/dom-context/index.d.ts +0 -14
- package/lib/internal/template/internal/hooks/dom-context/index.d.ts.map +0 -1
- package/lib/internal/template/internal/hooks/dom-context/index.js +0 -70
- package/lib/internal/template/internal/hooks/dom-context/index.js.map +0 -1
|
@@ -94,11 +94,11 @@ 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-
|
|
99
|
-
animation: awsui_awsui-motion-fade-
|
|
97
|
+
.awsui_content-enter_gwq0h_w4zz2_97:not(#\9) {
|
|
98
|
+
animation: awsui_awsui-motion-fade-in_gwq0h_w4zz2_1 180ms ease-out;
|
|
99
|
+
animation: awsui_awsui-motion-fade-in_gwq0h_w4zz2_1 var(--motion-duration-show-paced-7wspqf, 180ms) var(--motion-easing-show-paced-wj4ybn, ease-out);
|
|
100
100
|
}
|
|
101
|
-
@keyframes awsui_awsui-motion-fade-
|
|
101
|
+
@keyframes awsui_awsui-motion-fade-in_gwq0h_w4zz2_1 {
|
|
102
102
|
from {
|
|
103
103
|
opacity: 0.2;
|
|
104
104
|
}
|
|
@@ -107,42 +107,42 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
@media (prefers-reduced-motion: reduce) {
|
|
110
|
-
.awsui_content-
|
|
110
|
+
.awsui_content-enter_gwq0h_w4zz2_97:not(#\9) {
|
|
111
111
|
animation: none;
|
|
112
112
|
transition: none;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
|
-
.awsui-motion-disabled .awsui_content-
|
|
115
|
+
.awsui-motion-disabled .awsui_content-enter_gwq0h_w4zz2_97:not(#\9), .awsui-mode-entering .awsui_content-enter_gwq0h_w4zz2_97:not(#\9) {
|
|
116
116
|
animation: none;
|
|
117
117
|
transition: none;
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
.awsui_trigger-
|
|
120
|
+
.awsui_trigger-expanded_gwq0h_w4zz2_119:not(#\9) {
|
|
121
121
|
transition: border-bottom-color 180ms ease-out;
|
|
122
122
|
transition: border-bottom-color var(--motion-duration-show-paced-7wspqf, 180ms) var(--motion-easing-show-paced-wj4ybn, ease-out);
|
|
123
123
|
}
|
|
124
124
|
@media (prefers-reduced-motion: reduce) {
|
|
125
|
-
.awsui_trigger-
|
|
125
|
+
.awsui_trigger-expanded_gwq0h_w4zz2_119:not(#\9) {
|
|
126
126
|
animation: none;
|
|
127
127
|
transition: none;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
.awsui-motion-disabled .awsui_trigger-
|
|
130
|
+
.awsui-motion-disabled .awsui_trigger-expanded_gwq0h_w4zz2_119:not(#\9), .awsui-mode-entering .awsui_trigger-expanded_gwq0h_w4zz2_119:not(#\9) {
|
|
131
131
|
animation: none;
|
|
132
132
|
transition: none;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.
|
|
135
|
+
.awsui_icon_gwq0h_w4zz2_133:not(#\9) {
|
|
136
136
|
transition: transform 135ms cubic-bezier(0.165, 0.84, 0.44, 1);
|
|
137
137
|
transition: transform var(--motion-duration-rotate-90-ux18sr, 135ms) var(--motion-easing-rotate-90-eoew89, cubic-bezier(0.165, 0.84, 0.44, 1));
|
|
138
138
|
}
|
|
139
139
|
@media (prefers-reduced-motion: reduce) {
|
|
140
|
-
.
|
|
140
|
+
.awsui_icon_gwq0h_w4zz2_133:not(#\9) {
|
|
141
141
|
animation: none;
|
|
142
142
|
transition: none;
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
.awsui-motion-disabled .
|
|
145
|
+
.awsui-motion-disabled .awsui_icon_gwq0h_w4zz2_133:not(#\9), .awsui-mode-entering .awsui_icon_gwq0h_w4zz2_133:not(#\9) {
|
|
146
146
|
animation: none;
|
|
147
147
|
transition: none;
|
|
148
148
|
}
|
|
@@ -151,7 +151,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
151
151
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
152
152
|
SPDX-License-Identifier: Apache-2.0
|
|
153
153
|
*/
|
|
154
|
-
.
|
|
154
|
+
.awsui_root_gwq0h_w4zz2_151:not(#\9) {
|
|
155
155
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
156
156
|
border-collapse: separate;
|
|
157
157
|
border-spacing: 0;
|
|
@@ -197,14 +197,14 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
197
197
|
display: block;
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
.
|
|
200
|
+
.awsui_icon_gwq0h_w4zz2_133:not(#\9) {
|
|
201
201
|
transform: rotate(-90deg);
|
|
202
202
|
}
|
|
203
|
-
.
|
|
203
|
+
.awsui_icon_gwq0h_w4zz2_133.awsui_expanded_gwq0h_w4zz2_169:not(#\9) {
|
|
204
204
|
transform: rotate(0deg);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
.awsui_icon-
|
|
207
|
+
.awsui_icon-container_gwq0h_w4zz2_173:not(#\9) {
|
|
208
208
|
position: relative;
|
|
209
209
|
margin-left: calc((22px - 16px) / -2);
|
|
210
210
|
margin-left: calc((var(--font-body-m-line-height-i7xxvv, 22px) - var(--size-icon-normal-j1z5fn, 16px)) / -2);
|
|
@@ -212,7 +212,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
212
212
|
margin-right: calc(var(--space-xxs-ynfts5, 4px) + var(--border-divider-list-width-hacikr, 1px));
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
.
|
|
215
|
+
.awsui_trigger_gwq0h_w4zz2_119:not(#\9) {
|
|
216
216
|
cursor: pointer;
|
|
217
217
|
box-sizing: border-box;
|
|
218
218
|
display: flex;
|
|
@@ -222,23 +222,23 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
222
222
|
line-height: var(--font-body-m-line-height-i7xxvv, 22px);
|
|
223
223
|
text-align: left;
|
|
224
224
|
}
|
|
225
|
-
.awsui_trigger-
|
|
225
|
+
.awsui_trigger-default_gwq0h_w4zz2_188:not(#\9) {
|
|
226
226
|
padding: 4px 4px;
|
|
227
227
|
padding: var(--space-scaled-xxs-95dhkm, 4px) var(--space-xxs-ynfts5, 4px);
|
|
228
228
|
}
|
|
229
|
-
.awsui_trigger-
|
|
229
|
+
.awsui_trigger-footer_gwq0h_w4zz2_191:not(#\9) {
|
|
230
230
|
padding: 4px 0;
|
|
231
231
|
padding: var(--space-scaled-xxs-95dhkm, 4px) 0;
|
|
232
232
|
}
|
|
233
|
-
.awsui_trigger-
|
|
233
|
+
.awsui_trigger-default_gwq0h_w4zz2_188:not(#\9), .awsui_trigger-footer_gwq0h_w4zz2_191:not(#\9) {
|
|
234
234
|
border: 1px solid transparent;
|
|
235
235
|
border: var(--border-divider-section-width-5a4cv1, 1px) solid transparent;
|
|
236
236
|
}
|
|
237
|
-
.awsui_trigger-
|
|
237
|
+
.awsui_trigger-navigation_gwq0h_w4zz2_197:not(#\9) {
|
|
238
238
|
border-left: 1px solid transparent;
|
|
239
239
|
border-left: var(--border-divider-section-width-5a4cv1, 1px) solid transparent;
|
|
240
240
|
}
|
|
241
|
-
.awsui_trigger-
|
|
241
|
+
.awsui_trigger-default_gwq0h_w4zz2_188:not(#\9), .awsui_trigger-navigation_gwq0h_w4zz2_197:not(#\9), .awsui_trigger-footer_gwq0h_w4zz2_191:not(#\9) {
|
|
242
242
|
color: #545b64;
|
|
243
243
|
color: var(--color-text-expandable-section-default-muap7v, #545b64);
|
|
244
244
|
font-weight: 700;
|
|
@@ -248,36 +248,36 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
248
248
|
letter-spacing: normal;
|
|
249
249
|
letter-spacing: var(--font-heading-s-letter-spacing-i014lh, normal);
|
|
250
250
|
}
|
|
251
|
-
.awsui_trigger-
|
|
251
|
+
.awsui_trigger-default_gwq0h_w4zz2_188:not(#\9):hover, .awsui_trigger-navigation_gwq0h_w4zz2_197:not(#\9):hover, .awsui_trigger-footer_gwq0h_w4zz2_191:not(#\9):hover {
|
|
252
252
|
color: #16191f;
|
|
253
253
|
color: var(--color-text-expandable-section-hover-fhlqd8, #16191f);
|
|
254
254
|
}
|
|
255
|
-
.awsui_trigger-
|
|
255
|
+
.awsui_trigger-container_gwq0h_w4zz2_209:not(#\9) {
|
|
256
256
|
padding: 12px 20px;
|
|
257
257
|
padding: var(--space-container-header-vertical-0bd19u, 12px) var(--space-container-horizontal-tlw03i, 20px);
|
|
258
258
|
}
|
|
259
|
-
.awsui_trigger-
|
|
259
|
+
.awsui_trigger-container_gwq0h_w4zz2_209[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
260
260
|
padding: calc(12px - 1px) calc(20px - 1px);
|
|
261
261
|
padding: calc(var(--space-scaled-s-cu1hzn, 12px) - var(--border-divider-section-width-5a4cv1, 1px)) calc(var(--space-l-4vl6xu, 20px) - var(--border-divider-section-width-5a4cv1, 1px));
|
|
262
262
|
}
|
|
263
|
-
.awsui_trigger-
|
|
263
|
+
.awsui_trigger-default_gwq0h_w4zz2_188.awsui_trigger-expanded_gwq0h_w4zz2_119:not(#\9) {
|
|
264
264
|
border-bottom-color: #eaeded;
|
|
265
265
|
border-bottom-color: var(--color-border-divider-default-k96bks, #eaeded);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
.
|
|
268
|
+
.awsui_header_gwq0h_w4zz2_219:not(#\9) {
|
|
269
269
|
display: flex;
|
|
270
270
|
}
|
|
271
|
-
.awsui_header-
|
|
271
|
+
.awsui_header-container_gwq0h_w4zz2_222:not(#\9) {
|
|
272
272
|
width: 100%;
|
|
273
273
|
}
|
|
274
|
-
.awsui_header-
|
|
274
|
+
.awsui_header-container_gwq0h_w4zz2_222 > .awsui_icon-container_gwq0h_w4zz2_173:not(#\9) {
|
|
275
275
|
margin-top: 8px;
|
|
276
276
|
margin-top: var(--space-expandable-section-icon-offset-top-jo3eu8, 8px);
|
|
277
277
|
margin-right: 8px;
|
|
278
278
|
margin-right: var(--space-xs-rsr2qu, 8px);
|
|
279
279
|
}
|
|
280
|
-
.awsui_header-
|
|
280
|
+
.awsui_header-navigation_gwq0h_w4zz2_229 > .awsui_icon-container_gwq0h_w4zz2_173:not(#\9) {
|
|
281
281
|
display: inline-flex;
|
|
282
282
|
cursor: pointer;
|
|
283
283
|
color: #879596;
|
|
@@ -289,18 +289,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
289
289
|
text-decoration: none;
|
|
290
290
|
flex-direction: column;
|
|
291
291
|
}
|
|
292
|
-
.awsui_header-
|
|
292
|
+
.awsui_header-navigation_gwq0h_w4zz2_229 > .awsui_icon-container_gwq0h_w4zz2_173:not(#\9):hover {
|
|
293
293
|
color: #16191f;
|
|
294
294
|
color: var(--color-text-expandable-section-hover-fhlqd8, #16191f);
|
|
295
295
|
}
|
|
296
|
-
.awsui_header-
|
|
296
|
+
.awsui_header-navigation_gwq0h_w4zz2_229 > .awsui_icon-container_gwq0h_w4zz2_173[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
297
297
|
position: relative;
|
|
298
298
|
}
|
|
299
|
-
.awsui_header-
|
|
299
|
+
.awsui_header-navigation_gwq0h_w4zz2_229 > .awsui_icon-container_gwq0h_w4zz2_173[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
300
300
|
outline: 2px dotted transparent;
|
|
301
301
|
outline-offset: calc(2px - 1px);
|
|
302
302
|
}
|
|
303
|
-
.awsui_header-
|
|
303
|
+
.awsui_header-navigation_gwq0h_w4zz2_229 > .awsui_icon-container_gwq0h_w4zz2_173[data-awsui-focus-visible=true]:not(#\9):focus::before {
|
|
304
304
|
content: " ";
|
|
305
305
|
display: block;
|
|
306
306
|
position: absolute;
|
|
@@ -310,35 +310,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
310
310
|
height: calc(100% + 2 * 2px);
|
|
311
311
|
border-radius: 2px;
|
|
312
312
|
border-radius: var(--border-control-focus-ring-radius-default-9royjh, 2px);
|
|
313
|
-
box-shadow: 0 0 0 2px #
|
|
314
|
-
box-shadow: 0 0 0 2px var(--color-border-item-focused-
|
|
313
|
+
box-shadow: 0 0 0 2px #0073bb;
|
|
314
|
+
box-shadow: 0 0 0 2px var(--color-border-item-focused-n5kd8g, #0073bb);
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
-
.
|
|
317
|
+
.awsui_content_gwq0h_w4zz2_97:not(#\9) {
|
|
318
318
|
display: none;
|
|
319
319
|
}
|
|
320
|
-
.awsui_content-
|
|
320
|
+
.awsui_content-default_gwq0h_w4zz2_265:not(#\9) {
|
|
321
321
|
padding: 8px 0;
|
|
322
322
|
padding: var(--space-scaled-xs-6859qs, 8px) 0;
|
|
323
323
|
}
|
|
324
|
-
.awsui_content-
|
|
324
|
+
.awsui_content-footer_gwq0h_w4zz2_268:not(#\9) {
|
|
325
325
|
padding: 8px 0;
|
|
326
326
|
padding: var(--space-xs-rsr2qu, 8px) 0;
|
|
327
327
|
}
|
|
328
|
-
.awsui_content-
|
|
328
|
+
.awsui_content-expanded_gwq0h_w4zz2_271:not(#\9) {
|
|
329
329
|
display: block;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
.
|
|
332
|
+
.awsui_focusable_gwq0h_w4zz2_275:not(#\9):focus {
|
|
333
333
|
outline: none;
|
|
334
334
|
text-decoration: none;
|
|
335
335
|
}
|
|
336
|
-
.
|
|
336
|
+
.awsui_focusable_gwq0h_w4zz2_275[data-awsui-focus-visible=true]:not(#\9):focus {
|
|
337
337
|
outline: 2px dotted transparent;
|
|
338
|
-
border: 1px solid #
|
|
339
|
-
border: var(--border-field-width-y6x4sn, 1px) solid var(--color-border-item-focused-
|
|
338
|
+
border: 1px solid #0073bb;
|
|
339
|
+
border: var(--border-field-width-y6x4sn, 1px) solid var(--color-border-item-focused-n5kd8g, #0073bb);
|
|
340
340
|
border-radius: 2px;
|
|
341
341
|
border-radius: var(--border-control-focus-ring-radius-default-9royjh, 2px);
|
|
342
|
-
box-shadow: 0 0 0 1px #
|
|
343
|
-
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-glnuoy, 1px) var(--color-border-item-focused-
|
|
342
|
+
box-shadow: 0 0 0 1px #0073bb;
|
|
343
|
+
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-glnuoy, 1px) var(--color-border-item-focused-n5kd8g, #0073bb);
|
|
344
344
|
}
|
|
@@ -2,25 +2,25 @@
|
|
|
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
|
-
"expanded": "
|
|
11
|
-
"icon-container": "awsui_icon-
|
|
12
|
-
"trigger": "
|
|
13
|
-
"trigger-default": "awsui_trigger-
|
|
14
|
-
"trigger-footer": "awsui_trigger-
|
|
15
|
-
"trigger-navigation": "awsui_trigger-
|
|
16
|
-
"trigger-container": "awsui_trigger-
|
|
17
|
-
"header": "
|
|
18
|
-
"header-container": "awsui_header-
|
|
19
|
-
"header-navigation": "awsui_header-
|
|
20
|
-
"content": "
|
|
21
|
-
"content-default": "awsui_content-
|
|
22
|
-
"content-footer": "awsui_content-
|
|
23
|
-
"content-expanded": "awsui_content-
|
|
24
|
-
"focusable": "
|
|
5
|
+
"content-enter": "awsui_content-enter_gwq0h_w4zz2_97",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_gwq0h_w4zz2_1",
|
|
7
|
+
"trigger-expanded": "awsui_trigger-expanded_gwq0h_w4zz2_119",
|
|
8
|
+
"icon": "awsui_icon_gwq0h_w4zz2_133",
|
|
9
|
+
"root": "awsui_root_gwq0h_w4zz2_151",
|
|
10
|
+
"expanded": "awsui_expanded_gwq0h_w4zz2_169",
|
|
11
|
+
"icon-container": "awsui_icon-container_gwq0h_w4zz2_173",
|
|
12
|
+
"trigger": "awsui_trigger_gwq0h_w4zz2_119",
|
|
13
|
+
"trigger-default": "awsui_trigger-default_gwq0h_w4zz2_188",
|
|
14
|
+
"trigger-footer": "awsui_trigger-footer_gwq0h_w4zz2_191",
|
|
15
|
+
"trigger-navigation": "awsui_trigger-navigation_gwq0h_w4zz2_197",
|
|
16
|
+
"trigger-container": "awsui_trigger-container_gwq0h_w4zz2_209",
|
|
17
|
+
"header": "awsui_header_gwq0h_w4zz2_219",
|
|
18
|
+
"header-container": "awsui_header-container_gwq0h_w4zz2_222",
|
|
19
|
+
"header-navigation": "awsui_header-navigation_gwq0h_w4zz2_229",
|
|
20
|
+
"content": "awsui_content_gwq0h_w4zz2_97",
|
|
21
|
+
"content-default": "awsui_content-default_gwq0h_w4zz2_265",
|
|
22
|
+
"content-footer": "awsui_content-footer_gwq0h_w4zz2_268",
|
|
23
|
+
"content-expanded": "awsui_content-expanded_gwq0h_w4zz2_271",
|
|
24
|
+
"focusable": "awsui_focusable_gwq0h_w4zz2_275"
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -35,12 +35,12 @@ export interface FlashbarProps extends BaseComponentProps {
|
|
|
35
35
|
* * `buttonText` (string) - Specifies that an action button should be displayed, with the specified text.
|
|
36
36
|
* When a user clicks on this button the `onButtonClick` handler is called. If the `action` property is set, this property is ignored.
|
|
37
37
|
* **Deprecated**, replaced by `action`.
|
|
38
|
-
* *`id` (string) - Specifies a unique flash message identifier. This property is used in two ways:
|
|
39
|
-
* 1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.
|
|
40
|
-
* 2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.
|
|
41
|
-
* @visualrefresh `id` property
|
|
42
38
|
* * `onButtonClick` (event => void) - Called when a user clicks on the action button. This is not called if you create a custom button
|
|
43
39
|
* using the `action` property. **Deprecated**, replaced by `action`.
|
|
40
|
+
* * `id` (string) - Specifies a unique flash message identifier. This property is used in two ways:
|
|
41
|
+
* 1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.
|
|
42
|
+
* 2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.
|
|
43
|
+
* @visualrefresh `id` property
|
|
44
44
|
*/
|
|
45
45
|
items: ReadonlyArray<FlashbarProps.MessageDefinition>;
|
|
46
46
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/flashbar/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';\nimport { ButtonProps } from '../button/interfaces';\n\nexport namespace FlashbarProps {\n export interface MessageDefinition {\n header?: React.ReactNode;\n content?: React.ReactNode;\n dismissible?: boolean;\n dismissLabel?: string;\n loading?: boolean;\n type?: FlashbarProps.Type;\n action?: React.ReactNode;\n id?: string;\n buttonText?: ButtonProps['children'];\n onButtonClick?: ButtonProps['onClick'];\n onDismiss?: ButtonProps['onClick'];\n }\n\n export type Type = 'success' | 'warning' | 'info' | 'error';\n}\n\nexport interface FlashbarProps extends BaseComponentProps {\n /**\n * Specifies flash messages that appear in the same order that they are listed.\n * The value is an array of flash message definition objects.\n *\n * A flash message object contains the following properties:\n * * `header` (ReactNode) - Specifies the heading text.\n * * `content` (ReactNode) - Specifies the primary text displayed in the flash element.\n * * `type` (string) - Indicates the type of the message to be displayed. Allowed values are as follows: `success, error, warning, info`. The default is `info`.\n * * `loading` (boolean) - Replaces the status icon with a spinner and forces the type to `info`.\n * * `dismissible` (boolean) - Determines whether the component includes a close button icon. By default, the close button is not included.\n * When a user clicks on this button the `onDismiss` handler is called.\n * * `dismissLabel` (string) - Specifies an `aria-label` for to the dismiss icon button for improved accessibility.\n * * `action` (ReactNode) - Specifies an action for the flash message. Although it is technically possible to insert any content,\n * our UX guidelines only allow you to add a button.\n * * `buttonText` (string) - Specifies that an action button should be displayed, with the specified text.\n * When a user clicks on this button the `onButtonClick` handler is called. If the `action` property is set, this property is ignored.\n * **Deprecated**, replaced by `action`.\n *
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/flashbar/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';\nimport { ButtonProps } from '../button/interfaces';\n\nexport namespace FlashbarProps {\n export interface MessageDefinition {\n header?: React.ReactNode;\n content?: React.ReactNode;\n dismissible?: boolean;\n dismissLabel?: string;\n loading?: boolean;\n type?: FlashbarProps.Type;\n action?: React.ReactNode;\n id?: string;\n buttonText?: ButtonProps['children'];\n onButtonClick?: ButtonProps['onClick'];\n onDismiss?: ButtonProps['onClick'];\n }\n\n export type Type = 'success' | 'warning' | 'info' | 'error';\n}\n\nexport interface FlashbarProps extends BaseComponentProps {\n /**\n * Specifies flash messages that appear in the same order that they are listed.\n * The value is an array of flash message definition objects.\n *\n * A flash message object contains the following properties:\n * * `header` (ReactNode) - Specifies the heading text.\n * * `content` (ReactNode) - Specifies the primary text displayed in the flash element.\n * * `type` (string) - Indicates the type of the message to be displayed. Allowed values are as follows: `success, error, warning, info`. The default is `info`.\n * * `loading` (boolean) - Replaces the status icon with a spinner and forces the type to `info`.\n * * `dismissible` (boolean) - Determines whether the component includes a close button icon. By default, the close button is not included.\n * When a user clicks on this button the `onDismiss` handler is called.\n * * `dismissLabel` (string) - Specifies an `aria-label` for to the dismiss icon button for improved accessibility.\n * * `action` (ReactNode) - Specifies an action for the flash message. Although it is technically possible to insert any content,\n * our UX guidelines only allow you to add a button.\n * * `buttonText` (string) - Specifies that an action button should be displayed, with the specified text.\n * When a user clicks on this button the `onButtonClick` handler is called. If the `action` property is set, this property is ignored.\n * **Deprecated**, replaced by `action`.\n * * `onButtonClick` (event => void) - Called when a user clicks on the action button. This is not called if you create a custom button\n * using the `action` property. **Deprecated**, replaced by `action`.\n * * `id` (string) - Specifies a unique flash message identifier. This property is used in two ways:\n * 1. As a [keys](https://reactjs.org/docs/lists-and-keys.html#keys) source for React rendering.\n * 2. To identify which flash message will be removed from the DOM when it is dismissed, to animate it out.\n * @visualrefresh `id` property\n */\n items: ReadonlyArray<FlashbarProps.MessageDefinition>;\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import { __assign, __rest } from "tslib";
|
|
|
4
4
|
import React, { useRef } from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { getBaseProps } from '../internal/base-component';
|
|
7
|
-
import {
|
|
7
|
+
import { FormFieldContext, useFormFieldContext } from '../internal/context/form-field-context';
|
|
8
8
|
import { useUniqueId } from '../internal/hooks/use-unique-id';
|
|
9
9
|
import { useVisualRefresh } from '../internal/hooks/use-visual-mode';
|
|
10
10
|
import InternalGrid from '../grid/internal';
|
|
@@ -46,8 +46,8 @@ export default function InternalFormField(_a) {
|
|
|
46
46
|
description && (React.createElement("div", { className: styles.description, id: slotIds.description }, description)),
|
|
47
47
|
React.createElement("div", { className: clsx(styles.controls, __hideLabel && styles['label-hidden']) },
|
|
48
48
|
React.createElement(InternalGrid, { gridDefinition: gridDefinition },
|
|
49
|
-
React.createElement(
|
|
50
|
-
secondaryControl && (React.createElement(
|
|
49
|
+
React.createElement(FormFieldContext.Provider, { value: __assign({ controlId: generatedControlId }, contextValuesWithoutControlId) }, children && React.createElement("div", { className: styles.control }, children)),
|
|
50
|
+
secondaryControl && (React.createElement(FormFieldContext.Provider, { value: contextValuesWithoutControlId },
|
|
51
51
|
React.createElement("div", { className: styles['secondary-control'] }, secondaryControl))))),
|
|
52
52
|
(constraintText || errorText) && (React.createElement("div", { className: styles.hints },
|
|
53
53
|
errorText && React.createElement(FormFieldError, { id: slotIds.error }, errorText),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/form-field/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/form-field/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4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O,CAAC,UAAU,IAErB,cAAc,CACX,CACP,CACG,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 React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { FormFieldContext, useFormFieldContext } from '../internal/context/form-field-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\nimport InternalGrid from '../grid/internal';\nimport InternalIcon from '../icon/internal';\nimport { getAriaDescribedBy, getGridDefinition, getSlotIds } from './util';\n\nimport styles from './styles.css.js';\nimport { InternalFormFieldProps } from './interfaces';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { joinStrings } from '../internal/utils/strings';\n\ninterface FormFieldErrorProps {\n id?: string;\n children?: React.ReactNode;\n}\n\nexport const FormFieldError = ({ id, children }: FormFieldErrorProps) => (\n <div className={styles.error}>\n <div className={styles['error-icon-shake-wrapper']}>\n <div className={styles['error-icon-scale-wrapper']}>\n <InternalIcon name=\"status-warning\" size=\"small\" />\n </div>\n </div>\n <span id={id} className={styles.error__message}>\n {children}\n </span>\n </div>\n);\n\nexport default function InternalFormField({\n controlId,\n stretch = false,\n label,\n info,\n children,\n secondaryControl,\n description,\n constraintText,\n errorText,\n __hideLabel,\n __internalRootRef = null,\n ...rest\n}: InternalFormFieldProps) {\n const baseProps = getBaseProps(rest);\n const ref = useRef<HTMLElement>(null);\n const isRefresh = useVisualRefresh(ref);\n\n const instanceUniqueId = useUniqueId('formField');\n const generatedControlId = controlId || instanceUniqueId;\n const formFieldId = controlId || generatedControlId;\n\n const slotIds = getSlotIds(formFieldId, label, description, constraintText, errorText);\n\n const ariaDescribedBy = getAriaDescribedBy(slotIds);\n\n const gridDefinition = getGridDefinition(stretch, !!secondaryControl, isRefresh);\n\n const {\n ariaLabelledby: parentAriaLabelledby,\n ariaDescribedby: parentAriaDescribedby,\n invalid: parentInvalid,\n } = useFormFieldContext({});\n\n const contextValuesWithoutControlId = {\n ariaLabelledby: joinStrings(parentAriaLabelledby, slotIds.label) || undefined,\n ariaDescribedby: joinStrings(parentAriaDescribedby, ariaDescribedBy) || undefined,\n invalid: !!errorText || !!parentInvalid,\n };\n\n const mergedRef = useMergeRefs(ref, __internalRootRef);\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.root)} ref={mergedRef}>\n <div className={clsx(__hideLabel && styles['visually-hidden'])}>\n {label && (\n <label className={styles.label} id={slotIds.label} htmlFor={generatedControlId}>\n {label}\n </label>\n )}\n {!__hideLabel && info && <span className={styles.info}>{info}</span>}\n </div>\n\n {description && (\n <div className={styles.description} id={slotIds.description}>\n {description}\n </div>\n )}\n\n <div className={clsx(styles.controls, __hideLabel && styles['label-hidden'])}>\n <InternalGrid gridDefinition={gridDefinition}>\n <FormFieldContext.Provider\n value={{\n controlId: generatedControlId,\n ...contextValuesWithoutControlId,\n }}\n >\n {children && <div className={styles.control}>{children}</div>}\n </FormFieldContext.Provider>\n\n {secondaryControl && (\n <FormFieldContext.Provider value={contextValuesWithoutControlId}>\n <div className={styles['secondary-control']}>{secondaryControl}</div>\n </FormFieldContext.Provider>\n )}\n </InternalGrid>\n </div>\n\n {(constraintText || errorText) && (\n <div className={styles.hints}>\n {errorText && <FormFieldError id={slotIds.error}>{errorText}</FormFieldError>}\n {constraintText && (\n <div\n className={clsx(styles.constraint, errorText && styles['constraint-has-error'])}\n id={slotIds.constraint}\n >\n {constraintText}\n </div>\n )}\n </div>\n )}\n </div>\n );\n}\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"help-panel": "awsui_help-
|
|
5
|
-
"header": "
|
|
6
|
-
"content": "
|
|
7
|
-
"footer": "
|
|
4
|
+
"help-panel": "awsui_help-panel_1d237_p97sp_94",
|
|
5
|
+
"header": "awsui_header_1d237_p97sp_258",
|
|
6
|
+
"content": "awsui_content_1d237_p97sp_284",
|
|
7
|
+
"footer": "awsui_footer_1d237_p97sp_295"
|
|
8
8
|
};
|
|
9
9
|
|