@cloudscape-design/components 3.0.400 → 3.0.402
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/context.d.ts.map +1 -1
- package/app-layout/visual-refresh/context.js +8 -4
- package/app-layout/visual-refresh/context.js.map +1 -1
- package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
- package/app-layout/visual-refresh/drawers.js +12 -10
- package/app-layout/visual-refresh/drawers.js.map +1 -1
- package/app-layout/visual-refresh/main.d.ts.map +1 -1
- package/app-layout/visual-refresh/main.js +2 -1
- package/app-layout/visual-refresh/main.js.map +1 -1
- package/app-layout/visual-refresh/styles.css.js +76 -74
- package/app-layout/visual-refresh/styles.scoped.css +183 -177
- package/app-layout/visual-refresh/styles.selectors.js +76 -74
- package/container/internal.d.ts.map +1 -1
- package/container/internal.js +7 -3
- package/container/internal.js.map +1 -1
- package/expandable-section/expandable-section-container.d.ts +1 -4
- package/expandable-section/expandable-section-container.d.ts.map +1 -1
- package/expandable-section/expandable-section-container.js +5 -3
- package/expandable-section/expandable-section-container.js.map +1 -1
- package/expandable-section/index.d.ts.map +1 -1
- package/expandable-section/index.js +1 -13
- package/expandable-section/index.js.map +1 -1
- package/expandable-section/internal.d.ts +2 -3
- package/expandable-section/internal.d.ts.map +1 -1
- package/expandable-section/internal.js +2 -2
- package/expandable-section/internal.js.map +1 -1
- package/form/index.d.ts.map +1 -1
- package/form/index.js +6 -4
- package/form/index.js.map +1 -1
- package/i18n/dynamic.js +2 -0
- package/i18n/messages/all.all.js +778 -4
- package/i18n/messages/all.all.json +788 -4
- package/i18n/messages/all.de.js +6 -1
- package/i18n/messages/all.de.json +6 -1
- package/i18n/messages/all.en-GB.js +5 -0
- package/i18n/messages/all.en-GB.json +5 -0
- package/i18n/messages/all.en.js +4 -0
- package/i18n/messages/all.en.json +4 -0
- package/i18n/messages/all.es.js +7 -2
- package/i18n/messages/all.es.json +7 -2
- package/i18n/messages/all.fr.js +5 -0
- package/i18n/messages/all.fr.json +5 -0
- package/i18n/messages/all.id.js +5 -0
- package/i18n/messages/all.id.json +5 -0
- package/i18n/messages/all.it.js +5 -0
- package/i18n/messages/all.it.json +5 -0
- package/i18n/messages/all.ja.js +5 -0
- package/i18n/messages/all.ja.json +5 -0
- package/i18n/messages/all.ko.js +5 -0
- package/i18n/messages/all.ko.json +5 -0
- package/i18n/messages/all.pt-BR.js +6 -1
- package/i18n/messages/all.pt-BR.json +6 -1
- package/i18n/messages/all.tr.d.ts +3 -0
- package/i18n/messages/all.tr.js +719 -0
- package/i18n/messages/all.tr.json +729 -0
- package/i18n/messages/all.zh-CN.js +5 -0
- package/i18n/messages/all.zh-CN.json +5 -0
- package/i18n/messages/all.zh-TW.js +5 -0
- package/i18n/messages/all.zh-TW.json +5 -0
- package/i18n/messages-types.d.ts +48 -44
- package/i18n/messages-types.d.ts.map +1 -1
- package/i18n/messages-types.js.map +1 -1
- package/internal/analytics/components/analytics-funnel.d.ts +2 -2
- package/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
- package/internal/analytics/components/analytics-funnel.js +6 -4
- package/internal/analytics/components/analytics-funnel.js.map +1 -1
- package/internal/analytics/context/analytics-context.d.ts +1 -0
- package/internal/analytics/context/analytics-context.d.ts.map +1 -1
- package/internal/analytics/context/analytics-context.js +1 -0
- package/internal/analytics/context/analytics-context.js.map +1 -1
- package/internal/analytics/hooks/use-funnel.d.ts +1 -0
- package/internal/analytics/hooks/use-funnel.d.ts.map +1 -1
- package/internal/analytics/hooks/use-funnel.js +5 -1
- package/internal/analytics/hooks/use-funnel.js.map +1 -1
- package/internal/analytics/interfaces.d.ts +1 -0
- package/internal/analytics/interfaces.d.ts.map +1 -1
- package/internal/analytics/interfaces.js.map +1 -1
- package/internal/context/modal-context.d.ts +8 -0
- package/internal/context/modal-context.d.ts.map +1 -0
- package/internal/context/modal-context.js +9 -0
- package/internal/context/modal-context.js.map +1 -0
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/modal/internal.d.ts.map +1 -1
- package/modal/internal.js +23 -18
- package/modal/internal.js.map +1 -1
- package/package.json +3 -1
- package/pie-chart/styles.css.js +27 -27
- package/pie-chart/styles.scoped.css +60 -42
- package/pie-chart/styles.selectors.js +27 -27
- package/pie-chart/utils.d.ts.map +1 -1
- package/pie-chart/utils.js +2 -1
- package/pie-chart/utils.js.map +1 -1
- package/property-filter/utils.d.ts +1 -1
- package/split-panel/side.d.ts.map +1 -1
- package/split-panel/side.js +0 -1
- package/split-panel/side.js.map +1 -1
- package/split-panel/styles.css.js +55 -56
- package/split-panel/styles.scoped.css +80 -84
- package/split-panel/styles.selectors.js +55 -56
- package/table/internal.d.ts.map +1 -1
- package/table/internal.js +4 -4
- package/table/internal.js.map +1 -1
- package/table/sticky-scrollbar/styles.css.js +6 -6
- package/table/sticky-scrollbar/styles.scoped.css +8 -8
- package/table/sticky-scrollbar/styles.selectors.js +6 -6
|
@@ -94,57 +94,57 @@ 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
|
-
.
|
|
97
|
+
.awsui_segment__path_1edmh_hud94_97:not(#\9) {
|
|
98
98
|
transition: opacity var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
|
|
99
99
|
}
|
|
100
100
|
@media (prefers-reduced-motion: reduce) {
|
|
101
|
-
.
|
|
101
|
+
.awsui_segment__path_1edmh_hud94_97:not(#\9) {
|
|
102
102
|
animation: none;
|
|
103
103
|
transition: none;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
.awsui-motion-disabled .
|
|
106
|
+
.awsui-motion-disabled .awsui_segment__path_1edmh_hud94_97:not(#\9), .awsui-mode-entering .awsui_segment__path_1edmh_hud94_97:not(#\9) {
|
|
107
107
|
animation: none;
|
|
108
108
|
transition: none;
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
.
|
|
111
|
+
.awsui_segment_1edmh_hud94_97:not(#\9) {
|
|
112
112
|
transition: opacity var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
|
|
113
113
|
}
|
|
114
114
|
@media (prefers-reduced-motion: reduce) {
|
|
115
|
-
.
|
|
115
|
+
.awsui_segment_1edmh_hud94_97:not(#\9) {
|
|
116
116
|
animation: none;
|
|
117
117
|
transition: none;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
.awsui-motion-disabled .
|
|
120
|
+
.awsui-motion-disabled .awsui_segment_1edmh_hud94_97:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_hud94_97:not(#\9) {
|
|
121
121
|
animation: none;
|
|
122
122
|
transition: none;
|
|
123
123
|
}
|
|
124
|
-
.
|
|
124
|
+
.awsui_segment_1edmh_hud94_97 > .awsui_segment__hover_1edmh_hud94_124:not(#\9) {
|
|
125
125
|
transition: opacity var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
|
|
126
126
|
}
|
|
127
127
|
@media (prefers-reduced-motion: reduce) {
|
|
128
|
-
.
|
|
128
|
+
.awsui_segment_1edmh_hud94_97 > .awsui_segment__hover_1edmh_hud94_124:not(#\9) {
|
|
129
129
|
animation: none;
|
|
130
130
|
transition: none;
|
|
131
131
|
}
|
|
132
132
|
}
|
|
133
|
-
.awsui-motion-disabled .
|
|
133
|
+
.awsui-motion-disabled .awsui_segment_1edmh_hud94_97 > .awsui_segment__hover_1edmh_hud94_124:not(#\9), .awsui-mode-entering .awsui_segment_1edmh_hud94_97 > .awsui_segment__hover_1edmh_hud94_124:not(#\9) {
|
|
134
134
|
animation: none;
|
|
135
135
|
transition: none;
|
|
136
136
|
}
|
|
137
137
|
|
|
138
|
-
.
|
|
138
|
+
.awsui_label_1edmh_hud94_138:not(#\9) {
|
|
139
139
|
transition: opacity var(--motion-duration-transition-quick-6npj01, 90ms) var(--motion-easing-transition-quick-l9jfsx, linear);
|
|
140
140
|
}
|
|
141
141
|
@media (prefers-reduced-motion: reduce) {
|
|
142
|
-
.
|
|
142
|
+
.awsui_label_1edmh_hud94_138:not(#\9) {
|
|
143
143
|
animation: none;
|
|
144
144
|
transition: none;
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
.awsui-motion-disabled .
|
|
147
|
+
.awsui-motion-disabled .awsui_label_1edmh_hud94_138:not(#\9), .awsui-mode-entering .awsui_label_1edmh_hud94_138:not(#\9) {
|
|
148
148
|
animation: none;
|
|
149
149
|
transition: none;
|
|
150
150
|
}
|
|
@@ -153,50 +153,68 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
153
153
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
154
154
|
SPDX-License-Identifier: Apache-2.0
|
|
155
155
|
*/
|
|
156
|
-
.
|
|
156
|
+
.awsui_root_1edmh_hud94_156:not(#\9) {
|
|
157
157
|
/* used in test-utils */
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.
|
|
160
|
+
.awsui_content_1edmh_hud94_160.awsui_content--small_1edmh_hud94_160:not(#\9) {
|
|
161
161
|
min-height: calc(2 * (50px + var(--space-xs-zb16t3, 8px) + calc(2 * var(--line-height-body-m-30ar75, 20px))));
|
|
162
162
|
}
|
|
163
|
-
.
|
|
163
|
+
.awsui_content_1edmh_hud94_160.awsui_content--small_1edmh_hud94_160.awsui_content--fit-height_1edmh_hud94_163:not(#\9) {
|
|
164
|
+
min-height: calc(2 * (30px + calc(2 * var(--line-height-body-m-30ar75, 20px))));
|
|
165
|
+
}
|
|
166
|
+
.awsui_content_1edmh_hud94_160.awsui_content--small_1edmh_hud94_160.awsui_content--without-labels_1edmh_hud94_166:not(#\9) {
|
|
164
167
|
min-height: calc(2 * (50px + var(--space-xs-zb16t3, 8px)));
|
|
165
168
|
}
|
|
166
|
-
.
|
|
169
|
+
.awsui_content_1edmh_hud94_160.awsui_content--small_1edmh_hud94_160.awsui_content--without-labels_1edmh_hud94_166.awsui_content--fit-height_1edmh_hud94_163:not(#\9) {
|
|
170
|
+
min-height: calc(2 * (30px));
|
|
171
|
+
}
|
|
172
|
+
.awsui_content_1edmh_hud94_160.awsui_content--medium_1edmh_hud94_172:not(#\9) {
|
|
167
173
|
min-height: calc(2 * (100px + var(--space-s-34lx8l, 12px) + calc(2 * var(--line-height-body-m-30ar75, 20px))));
|
|
168
174
|
}
|
|
169
|
-
.
|
|
175
|
+
.awsui_content_1edmh_hud94_160.awsui_content--medium_1edmh_hud94_172.awsui_content--fit-height_1edmh_hud94_163:not(#\9) {
|
|
176
|
+
min-height: calc(2 * (100px + calc(2 * var(--line-height-body-m-30ar75, 20px))));
|
|
177
|
+
}
|
|
178
|
+
.awsui_content_1edmh_hud94_160.awsui_content--medium_1edmh_hud94_172.awsui_content--without-labels_1edmh_hud94_166:not(#\9) {
|
|
170
179
|
min-height: calc(2 * (100px + var(--space-s-34lx8l, 12px)));
|
|
171
180
|
}
|
|
172
|
-
.
|
|
181
|
+
.awsui_content_1edmh_hud94_160.awsui_content--medium_1edmh_hud94_172.awsui_content--without-labels_1edmh_hud94_166.awsui_content--fit-height_1edmh_hud94_163:not(#\9) {
|
|
182
|
+
min-height: calc(2 * (100px));
|
|
183
|
+
}
|
|
184
|
+
.awsui_content_1edmh_hud94_160.awsui_content--large_1edmh_hud94_184:not(#\9) {
|
|
173
185
|
min-height: calc(2 * (140px + var(--space-s-34lx8l, 12px) + calc(2 * var(--line-height-body-m-30ar75, 20px))));
|
|
174
186
|
}
|
|
175
|
-
.
|
|
187
|
+
.awsui_content_1edmh_hud94_160.awsui_content--large_1edmh_hud94_184.awsui_content--fit-height_1edmh_hud94_163:not(#\9) {
|
|
188
|
+
min-height: calc(2 * (140px + calc(2 * var(--line-height-body-m-30ar75, 20px))));
|
|
189
|
+
}
|
|
190
|
+
.awsui_content_1edmh_hud94_160.awsui_content--large_1edmh_hud94_184.awsui_content--without-labels_1edmh_hud94_166:not(#\9) {
|
|
176
191
|
min-height: calc(2 * (140px + var(--space-s-34lx8l, 12px)));
|
|
177
192
|
}
|
|
193
|
+
.awsui_content_1edmh_hud94_160.awsui_content--large_1edmh_hud94_184.awsui_content--without-labels_1edmh_hud94_166.awsui_content--fit-height_1edmh_hud94_163:not(#\9) {
|
|
194
|
+
min-height: calc(2 * (140px));
|
|
195
|
+
}
|
|
178
196
|
|
|
179
|
-
.awsui_content--fit-
|
|
197
|
+
.awsui_content--fit-height_1edmh_hud94_163:not(#\9) {
|
|
180
198
|
flex: 1;
|
|
181
199
|
}
|
|
182
200
|
|
|
183
|
-
.awsui_status-
|
|
201
|
+
.awsui_status-container_1edmh_hud94_201:not(#\9) {
|
|
184
202
|
/* used in test utils */
|
|
185
203
|
}
|
|
186
204
|
|
|
187
|
-
.awsui_chart-
|
|
205
|
+
.awsui_chart-container_1edmh_hud94_205:not(#\9) {
|
|
188
206
|
display: flex;
|
|
189
207
|
flex: 1;
|
|
190
208
|
}
|
|
191
|
-
.awsui_chart-container--fit-
|
|
209
|
+
.awsui_chart-container--fit-height_1edmh_hud94_209:not(#\9) {
|
|
192
210
|
height: 100%;
|
|
193
211
|
min-height: inherit;
|
|
194
212
|
}
|
|
195
213
|
|
|
196
|
-
.awsui_chart-container-chart-
|
|
214
|
+
.awsui_chart-container-chart-plot_1edmh_hud94_214:not(#\9) {
|
|
197
215
|
display: contents;
|
|
198
216
|
}
|
|
199
|
-
.awsui_chart-container-chart-plot--fit-
|
|
217
|
+
.awsui_chart-container-chart-plot--fit-height_1edmh_hud94_217:not(#\9) {
|
|
200
218
|
display: block;
|
|
201
219
|
position: absolute;
|
|
202
220
|
top: 0;
|
|
@@ -205,7 +223,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
205
223
|
left: 0;
|
|
206
224
|
}
|
|
207
225
|
|
|
208
|
-
.awsui_inner-
|
|
226
|
+
.awsui_inner-content_1edmh_hud94_226:not(#\9) {
|
|
209
227
|
display: flex;
|
|
210
228
|
position: absolute;
|
|
211
229
|
flex-direction: column;
|
|
@@ -219,53 +237,53 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
219
237
|
pointer-events: none;
|
|
220
238
|
}
|
|
221
239
|
|
|
222
|
-
.
|
|
240
|
+
.awsui_segment__highlight_1edmh_hud94_240:not(#\9) {
|
|
223
241
|
stroke: none;
|
|
224
242
|
opacity: 0;
|
|
225
243
|
}
|
|
226
244
|
|
|
227
|
-
.
|
|
245
|
+
.awsui_segment_1edmh_hud94_97:not(#\9) {
|
|
228
246
|
stroke: var(--color-background-container-content-4un1ap, #ffffff);
|
|
229
247
|
stroke-width: 2px;
|
|
230
248
|
stroke-linejoin: round;
|
|
231
249
|
opacity: 1;
|
|
232
250
|
cursor: pointer;
|
|
233
251
|
}
|
|
234
|
-
.
|
|
252
|
+
.awsui_segment_1edmh_hud94_97:not(#\9):focus {
|
|
235
253
|
outline: none;
|
|
236
254
|
}
|
|
237
|
-
.
|
|
255
|
+
.awsui_segment_1edmh_hud94_97.awsui_segment--dimmed_1edmh_hud94_255:not(#\9) {
|
|
238
256
|
opacity: 0.35;
|
|
239
257
|
}
|
|
240
|
-
.
|
|
258
|
+
.awsui_segment_1edmh_hud94_97.awsui_segment--highlighted_1edmh_hud94_258 > .awsui_segment__highlight_1edmh_hud94_240:not(#\9), .awsui_segment_1edmh_hud94_97:not(#\9):hover:not(.awsui_segment--dimmed_1edmh_hud94_255) > .awsui_segment__highlight_1edmh_hud94_240 {
|
|
241
259
|
opacity: 1;
|
|
242
260
|
}
|
|
243
261
|
|
|
244
|
-
.
|
|
262
|
+
.awsui_label_1edmh_hud94_138:not(#\9) {
|
|
245
263
|
color: var(--color-text-heading-default-rtslvy, #000716);
|
|
246
264
|
opacity: 1;
|
|
247
265
|
/* stylelint-disable-next-line selector-max-type */
|
|
248
266
|
/* stylelint-disable-next-line selector-max-type */
|
|
249
267
|
}
|
|
250
|
-
.
|
|
268
|
+
.awsui_label_1edmh_hud94_138 > line:not(#\9) {
|
|
251
269
|
stroke: var(--color-stroke-chart-line-ppq5nh, #7d8998);
|
|
252
270
|
stroke-width: var(--border-divider-section-width-8a5uu9, 2px);
|
|
253
271
|
}
|
|
254
|
-
.
|
|
272
|
+
.awsui_label_1edmh_hud94_138 > div:not(#\9) {
|
|
255
273
|
margin-top: -0.75em;
|
|
256
274
|
}
|
|
257
|
-
.
|
|
275
|
+
.awsui_label_1edmh_hud94_138.awsui_label--dimmed_1edmh_hud94_275:not(#\9) {
|
|
258
276
|
opacity: 0.35;
|
|
259
277
|
}
|
|
260
|
-
.
|
|
278
|
+
.awsui_label_1edmh_hud94_138.awsui_label--align-right_1edmh_hud94_278:not(#\9) {
|
|
261
279
|
/* stylelint-disable-next-line selector-max-type */
|
|
262
280
|
}
|
|
263
|
-
.
|
|
281
|
+
.awsui_label_1edmh_hud94_138.awsui_label--align-right_1edmh_hud94_278 > div:not(#\9) {
|
|
264
282
|
text-align: right;
|
|
265
283
|
}
|
|
266
284
|
|
|
267
285
|
/* stylelint-disable-next-line selector-max-type */
|
|
268
|
-
.awsui_label-
|
|
286
|
+
.awsui_label-text_1edmh_hud94_286 > text:not(#\9) {
|
|
269
287
|
font-size: var(--font-size-body-m-x4okxb, 14px);
|
|
270
288
|
line-height: var(--line-height-body-m-30ar75, 20px);
|
|
271
289
|
font-weight: var(--font-display-label-weight-815ja9, 700);
|
|
@@ -273,22 +291,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
273
291
|
dominant-baseline: middle;
|
|
274
292
|
}
|
|
275
293
|
|
|
276
|
-
text.
|
|
294
|
+
text.awsui_label__description_1edmh_hud94_294:not(#\9) {
|
|
277
295
|
font-size: var(--font-chart-detail-size-1n389u, 12px);
|
|
278
296
|
font-weight: 400;
|
|
279
297
|
color: var(--color-text-group-label-zuh0h0, #414d5c);
|
|
280
298
|
fill: var(--color-text-group-label-zuh0h0, #414d5c);
|
|
281
299
|
}
|
|
282
300
|
|
|
283
|
-
.awsui_label-
|
|
301
|
+
.awsui_label-line_1edmh_hud94_301:not(#\9) {
|
|
284
302
|
/* used in component code */
|
|
285
303
|
}
|
|
286
304
|
|
|
287
|
-
.awsui_label--
|
|
305
|
+
.awsui_label--highlighted_1edmh_hud94_305:not(#\9) {
|
|
288
306
|
/* used in test-utils */
|
|
289
307
|
}
|
|
290
308
|
|
|
291
|
-
.awsui_popover-
|
|
309
|
+
.awsui_popover-header_1edmh_hud94_309:not(#\9) {
|
|
292
310
|
display: inline-flex;
|
|
293
311
|
align-items: flex-start;
|
|
294
312
|
}
|
|
@@ -2,32 +2,32 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"segment__path": "
|
|
6
|
-
"segment": "
|
|
7
|
-
"segment__hover": "
|
|
8
|
-
"label": "
|
|
9
|
-
"root": "
|
|
10
|
-
"content": "
|
|
11
|
-
"content--small": "awsui_content--
|
|
12
|
-
"content--
|
|
13
|
-
"content--
|
|
14
|
-
"content--
|
|
15
|
-
"content--
|
|
16
|
-
"status-container": "awsui_status-
|
|
17
|
-
"chart-container": "awsui_chart-
|
|
18
|
-
"chart-container--fit-height": "awsui_chart-container--fit-
|
|
19
|
-
"chart-container-chart-plot": "awsui_chart-container-chart-
|
|
20
|
-
"chart-container-chart-plot--fit-height": "awsui_chart-container-chart-plot--fit-
|
|
21
|
-
"inner-content": "awsui_inner-
|
|
22
|
-
"segment__highlight": "
|
|
23
|
-
"segment--dimmed": "awsui_segment--
|
|
24
|
-
"segment--highlighted": "awsui_segment--
|
|
25
|
-
"label--dimmed": "awsui_label--
|
|
26
|
-
"label--align-right": "awsui_label--align-
|
|
27
|
-
"label-text": "awsui_label-
|
|
28
|
-
"label__description": "
|
|
29
|
-
"label-line": "awsui_label-
|
|
30
|
-
"label--highlighted": "awsui_label--
|
|
31
|
-
"popover-header": "awsui_popover-
|
|
5
|
+
"segment__path": "awsui_segment__path_1edmh_hud94_97",
|
|
6
|
+
"segment": "awsui_segment_1edmh_hud94_97",
|
|
7
|
+
"segment__hover": "awsui_segment__hover_1edmh_hud94_124",
|
|
8
|
+
"label": "awsui_label_1edmh_hud94_138",
|
|
9
|
+
"root": "awsui_root_1edmh_hud94_156",
|
|
10
|
+
"content": "awsui_content_1edmh_hud94_160",
|
|
11
|
+
"content--small": "awsui_content--small_1edmh_hud94_160",
|
|
12
|
+
"content--fit-height": "awsui_content--fit-height_1edmh_hud94_163",
|
|
13
|
+
"content--without-labels": "awsui_content--without-labels_1edmh_hud94_166",
|
|
14
|
+
"content--medium": "awsui_content--medium_1edmh_hud94_172",
|
|
15
|
+
"content--large": "awsui_content--large_1edmh_hud94_184",
|
|
16
|
+
"status-container": "awsui_status-container_1edmh_hud94_201",
|
|
17
|
+
"chart-container": "awsui_chart-container_1edmh_hud94_205",
|
|
18
|
+
"chart-container--fit-height": "awsui_chart-container--fit-height_1edmh_hud94_209",
|
|
19
|
+
"chart-container-chart-plot": "awsui_chart-container-chart-plot_1edmh_hud94_214",
|
|
20
|
+
"chart-container-chart-plot--fit-height": "awsui_chart-container-chart-plot--fit-height_1edmh_hud94_217",
|
|
21
|
+
"inner-content": "awsui_inner-content_1edmh_hud94_226",
|
|
22
|
+
"segment__highlight": "awsui_segment__highlight_1edmh_hud94_240",
|
|
23
|
+
"segment--dimmed": "awsui_segment--dimmed_1edmh_hud94_255",
|
|
24
|
+
"segment--highlighted": "awsui_segment--highlighted_1edmh_hud94_258",
|
|
25
|
+
"label--dimmed": "awsui_label--dimmed_1edmh_hud94_275",
|
|
26
|
+
"label--align-right": "awsui_label--align-right_1edmh_hud94_278",
|
|
27
|
+
"label-text": "awsui_label-text_1edmh_hud94_286",
|
|
28
|
+
"label__description": "awsui_label__description_1edmh_hud94_294",
|
|
29
|
+
"label-line": "awsui_label-line_1edmh_hud94_301",
|
|
30
|
+
"label--highlighted": "awsui_label--highlighted_1edmh_hud94_305",
|
|
31
|
+
"popover-header": "awsui_popover-header_1edmh_hud94_309"
|
|
32
32
|
};
|
|
33
33
|
|
package/pie-chart/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"lib/default/","sources":["pie-chart/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"lib/default/","sources":["pie-chart/utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAMD,eAAO,MAAM,0BAA0B,QAAe,CAAC;AAEvD,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAsBlF,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAAE,SAAS,CAgBzF,CAAC;AAEF;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,EAClC,IAAI,EACJ,SAAS,EACT,aAAa,GACd,EAAE;IACD,IAAI,EAAE,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC;IAClD,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,SAAS,GAAG;IAAE,IAAI,EAAE,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAA;CAAE,CAuB3D;AAED,eAAO,MAAM,cAAc,SAClB,wBAAwB,WAAW,CAAC,eAAe,cAAc,WAAW,aAC3E,cAAc,KAAK,WAAW,MAAM;;;;;;IAOzC,CAAC;AAEN;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,UACrB,WAAW,WAAW,CAAC,WACrB,MAAM;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,YACpC,OAAO,UACT,MAAM,SAqEf,CAAC;AAeF,eAAO,MAAM,iBAAiB,eAAgB,MAAM,YAAY,MAAM,yBAAqB,MA2B1F,CAAC"}
|
package/pie-chart/utils.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styles from './styles.css.js';
|
|
2
|
+
const minRadius = 30;
|
|
2
3
|
const paddingLabels = 44; // = 2 * (size-lineHeight-body-100)
|
|
3
4
|
const defaultPadding = 12; // = space-s
|
|
4
5
|
const smallPadding = 8; // = space-xs
|
|
@@ -52,7 +53,7 @@ export function getDimensionsBySize({ size, hasLabels, visualRefresh, }) {
|
|
|
52
53
|
const padding = sizeSpec[matchedSize].padding;
|
|
53
54
|
const paddingLabels = hasLabels ? sizeSpec[matchedSize].paddingLabels : 0;
|
|
54
55
|
const radiiRatio = sizeSpec[matchedSize].outerRadius / sizeSpec[matchedSize].innerRadius;
|
|
55
|
-
const outerRadius = (size - 2 * paddingLabels - 2 * padding) / 2;
|
|
56
|
+
const outerRadius = Math.max(minRadius, (size - 2 * paddingLabels - 2 * padding) / 2);
|
|
56
57
|
const innerRadius = outerRadius / radiiRatio;
|
|
57
58
|
return Object.assign(Object.assign({}, sizeSpec[matchedSize]), { outerRadius, innerRadius, size: matchedSize });
|
|
58
59
|
}
|
package/pie-chart/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"lib/default/","sources":["pie-chart/utils.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAWrC,MAAM,aAAa,GAAG,EAAE,CAAC,CAAC,mCAAmC;AAC7D,MAAM,cAAc,GAAG,EAAE,CAAC,CAAC,YAAY;AACvC,MAAM,YAAY,GAAG,CAAC,CAAC,CAAC,aAAa;AACrC,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;AAEvD,MAAM,CAAC,MAAM,gBAAgB,GAA0D;IACrF,KAAK,EAAE;QACL,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,EAAE;QACf,iBAAiB,EAAE,YAAY;QAC/B,OAAO,EAAE,YAAY;QACrB,aAAa;KACd;IACD,MAAM,EAAE;QACN,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,GAAG;QAChB,iBAAiB,EAAE,cAAc;QACjC,OAAO,EAAE,cAAc;QACvB,aAAa;KACd;IACD,KAAK,EAAE;QACL,WAAW,EAAE,EAAE;QACf,WAAW,EAAE,GAAG;QAChB,iBAAiB,EAAE,cAAc;QACjC,OAAO,EAAE,cAAc;QACvB,aAAa;KACd;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAA0D;IAC5F,KAAK,kCACA,gBAAgB,CAAC,KAAK,KACzB,WAAW,EAAE,EAAE,EACf,YA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,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,cAAc,CAAC,EAClC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,cAAc,CAC7B,CAAC;IACF,MAAM,qBAAqB,GAAG,IAAI,CAAC,GAAG,CACpC,gBAAgB,EAChB,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,GAAG,gBAAgB,CAAC,EACpC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,gBAAgB,CAC/B,CAAC;IACF,IAAI,mBAAmB,GAAG,qBAAqB,EAAE;QAC/C,OAAO,cAAc,CAAC;KACvB;IACD,OAAO,gBAAgB,CAAC;AAC1B,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ComponentFormatFunction } from '../i18n/context';\nimport { PieChartProps } from './interfaces';\nimport styles from './styles.css.js';\n\nexport interface Dimension {\n innerRadius: number;\n outerRadius: number;\n padding: number;\n paddingLabels: number;\n innerLabelPadding: number;\n cornerRadius?: number;\n}\n\nconst paddingLabels = 44; // = 2 * (size-lineHeight-body-100)\nconst defaultPadding = 12; // = space-s\nconst smallPadding = 8; // = space-xs\nexport const minLabelLineAngularPadding = Math.PI / 20;\n\nexport const dimensionsBySize: Record<NonNullable<PieChartProps['size']>, Dimension> = {\n small: {\n innerRadius: 33,\n outerRadius: 50,\n innerLabelPadding: smallPadding,\n padding: smallPadding,\n paddingLabels,\n },\n medium: {\n innerRadius: 66,\n outerRadius: 100,\n innerLabelPadding: defaultPadding,\n padding: defaultPadding,\n paddingLabels,\n },\n large: {\n innerRadius: 93,\n outerRadius: 140,\n innerLabelPadding: defaultPadding,\n padding: defaultPadding,\n paddingLabels,\n },\n};\n\nexport const refreshDimensionsBySize: Record<NonNullable<PieChartProps['size']>, Dimension> = {\n small: {\n ...dimensionsBySize.small,\n innerRadius: 38,\n cornerRadius: 3,\n },\n medium: {\n ...dimensionsBySize.medium,\n innerRadius: 75,\n cornerRadius: 4,\n },\n large: {\n ...dimensionsBySize.large,\n innerRadius: 105,\n cornerRadius: 5,\n },\n};\n\n/**\n * When `size` is a string (\"small\", \"medium\" or \"large\") the predefined pie chart element dimensions for classic and visual refresh are used.\n * When `size` is a number the outer and inner radii are computed and the rest of the dimensions are taken from the closest predefined size.\n */\nexport function getDimensionsBySize({\n size,\n hasLabels,\n visualRefresh,\n}: {\n size: NonNullable<PieChartProps['size']> | number;\n hasLabels: boolean;\n visualRefresh?: boolean;\n}): Dimension & { size: NonNullable<PieChartProps['size']> } {\n if (typeof size === 'string') {\n const dimensions = visualRefresh ? refreshDimensionsBySize[size] : dimensionsBySize[size];\n return { ...dimensions, size };\n }\n const sizeSpec = visualRefresh ? refreshDimensionsBySize : dimensionsBySize;\n const getPixelSize = (d: Dimension) => d.outerRadius * 2 + d.padding * 2 + (hasLabels ? d.paddingLabels : 0) * 2;\n\n let matchedSize: NonNullable<PieChartProps['size']> = 'small';\n if (size > getPixelSize(sizeSpec.medium)) {\n matchedSize = 'medium';\n }\n if (size > getPixelSize(sizeSpec.large)) {\n matchedSize = 'large';\n }\n\n const padding = sizeSpec[matchedSize].padding;\n const paddingLabels = hasLabels ? sizeSpec[matchedSize].paddingLabels : 0;\n const radiiRatio = sizeSpec[matchedSize].outerRadius / sizeSpec[matchedSize].innerRadius;\n const outerRadius = (size - 2 * paddingLabels - 2 * padding) / 2;\n const innerRadius = outerRadius / radiiRatio;\n\n return { ...sizeSpec[matchedSize], outerRadius, innerRadius, size: matchedSize };\n}\n\nexport const defaultDetails =\n (i18n: ComponentFormatFunction<'pie-chart'>, i18nStrings: PieChartProps.I18nStrings) =>\n (datum: PieChartProps.Datum, dataSum: number) =>\n [\n { key: i18n('i18nStrings.detailsValue', i18nStrings.detailsValue) || '', value: datum.value },\n {\n key: i18n('i18nStrings.detailsPercentage', i18nStrings.detailsPercentage) || '',\n value: `${((datum.value * 100) / dataSum).toFixed(0)}%`,\n },\n ];\n\n/**\n * Adjusts the position of the given label nodes to avoid visual overlapping.\n * @param nodes List of label nodes of the entire chart (both left and right side)\n * @param markers Markers array that was calculated in <Labels>, but we just need the `endY` values\n * @param leftSide Boolean flag whether we are processing the left or right side of the chart labels\n */\nexport const balanceLabelNodes = (\n nodes: NodeListOf<SVGGElement>,\n markers: Array<{ endY: number; endX: number }>,\n leftSide: boolean,\n radius: number\n) => {\n const MARGIN = 10;\n\n let previousBBox: { x: number; y: number; height: number } | null = null;\n\n // When traversing the right side of labels, we start at the beginning of the array and go forwards.\n // For the left side, we need to traverse backwards from the end, so that overlapping nodes are pushed down in the right order.\n let i = leftSide ? nodes.length - 1 : 0;\n\n while ((leftSide && i >= 0) || (!leftSide && i < nodes.length)) {\n const node = nodes[i];\n\n // Currently using dataset attributes to determine the base position.\n // This implementation can be changed back to using `getBBox` when we drop IE11 support.\n // Unfortunately, there is no good alternative for `getBBox` that is supported by IE11.\n // `getBoundingClientRect` works for width and height calculations in SVG, but the x/y positions are inaccurate.\n const x = parseFloat(node.getAttribute('data-x') || '0');\n const y = parseFloat(node.getAttribute('data-y') || '0');\n const box = {\n x,\n y,\n height: node.getBoundingClientRect().height,\n };\n\n const marker = markers[i];\n\n if (leftSide) {\n i--;\n } else {\n i++;\n }\n\n if (!previousBBox) {\n previousBBox = box;\n node.setAttribute('transform', '');\n continue;\n }\n\n if ((!leftSide && box.x < 0) || (leftSide && box.x >= 0)) {\n // We have reached a label that is on the other side of the chart, so we're done.\n break;\n }\n\n node.setAttribute('transform', '');\n\n // Calculate how much the current node is overlapping with the previous one.\n const yOffset = previousBBox.y + previousBBox.height + MARGIN - box.y;\n\n if (yOffset > 0) {\n const xOffset = computeXOffset(box, yOffset, radius) * (leftSide ? -1 : 1);\n // Move the label down.\n node.setAttribute('transform', `translate(${xOffset} ${yOffset})`);\n\n // Adjust the attached line accordingly.\n const lineNode = node.parentNode?.querySelector(`.${styles['label-line']}`);\n if (lineNode) {\n const { endY, endX } = marker;\n lineNode.setAttribute('y2', '' + (endY + yOffset));\n lineNode.setAttribute('x2', '' + (endX + xOffset));\n }\n\n // Update the position accordingly to inform the next label\n box.y += yOffset;\n box.x += xOffset;\n }\n\n previousBBox = box;\n }\n};\n\nconst squareDistance = (edge: [number, number]): number => Math.pow(edge[0], 2) + Math.pow(edge[1], 2);\n\nconst computeXOffset = (box: { x: number; y: number; height: number }, yOffset: number, radius: number): number => {\n const upperEdge: [number, number] = [box.x, box.y + yOffset];\n const lowerEdge: [number, number] = [box.x, box.y + box.height + yOffset];\n const closestEdge = squareDistance(upperEdge) < squareDistance(lowerEdge) ? upperEdge : lowerEdge;\n\n if (squareDistance(closestEdge) < Math.pow(radius, 2)) {\n return Math.sqrt(Math.pow(radius, 2) - Math.pow(closestEdge[1], 2)) - Math.abs(closestEdge[0]);\n }\n return 0;\n};\n\nexport const computeSmartAngle = (startAngle: number, endAngle: number, optimize = false): number => {\n if (!optimize || endAngle - startAngle < 2 * minLabelLineAngularPadding) {\n return (endAngle + startAngle) / 2;\n }\n const paddedStartAngle = startAngle + minLabelLineAngularPadding;\n const paddedEndAngle = endAngle - minLabelLineAngularPadding;\n if (paddedStartAngle < 0 && paddedEndAngle > 0) {\n return 0;\n }\n if (paddedStartAngle < Math.PI && paddedEndAngle > Math.PI) {\n return Math.PI;\n }\n\n const endAngleMinDistance = Math.min(\n paddedEndAngle,\n Math.abs(Math.PI - paddedEndAngle),\n 2 * Math.PI - paddedEndAngle\n );\n const startAngleMinDistance = Math.min(\n paddedStartAngle,\n Math.abs(Math.PI - paddedStartAngle),\n 2 * Math.PI - paddedStartAngle\n );\n if (endAngleMinDistance < startAngleMinDistance) {\n return paddedEndAngle;\n }\n return paddedStartAngle;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"lib/default/","sources":["pie-chart/utils.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAWrC,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,aAAa,GAAG,EAAE,C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or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { ComponentFormatFunction } from '../i18n/context';\nimport { PieChartProps } from './interfaces';\nimport styles from './styles.css.js';\n\nexport interface Dimension {\n innerRadius: number;\n outerRadius: number;\n padding: number;\n paddingLabels: number;\n innerLabelPadding: number;\n cornerRadius?: number;\n}\n\nconst minRadius = 30;\nconst paddingLabels = 44; // = 2 * (size-lineHeight-body-100)\nconst defaultPadding = 12; // = space-s\nconst smallPadding = 8; // = space-xs\nexport const minLabelLineAngularPadding = Math.PI / 20;\n\nexport const dimensionsBySize: Record<NonNullable<PieChartProps['size']>, Dimension> = {\n small: {\n innerRadius: 33,\n outerRadius: 50,\n innerLabelPadding: smallPadding,\n padding: smallPadding,\n paddingLabels,\n },\n medium: {\n innerRadius: 66,\n outerRadius: 100,\n innerLabelPadding: defaultPadding,\n padding: defaultPadding,\n paddingLabels,\n },\n large: {\n innerRadius: 93,\n outerRadius: 140,\n innerLabelPadding: defaultPadding,\n padding: defaultPadding,\n paddingLabels,\n },\n};\n\nexport const refreshDimensionsBySize: Record<NonNullable<PieChartProps['size']>, Dimension> = {\n small: {\n ...dimensionsBySize.small,\n innerRadius: 38,\n cornerRadius: 3,\n },\n medium: {\n ...dimensionsBySize.medium,\n innerRadius: 75,\n cornerRadius: 4,\n },\n large: {\n ...dimensionsBySize.large,\n innerRadius: 105,\n cornerRadius: 5,\n },\n};\n\n/**\n * When `size` is a string (\"small\", \"medium\" or \"large\") the predefined pie chart element dimensions for classic and visual refresh are used.\n * When `size` is a number the outer and inner radii are computed and the rest of the dimensions are taken from the closest predefined size.\n */\nexport function getDimensionsBySize({\n size,\n hasLabels,\n visualRefresh,\n}: {\n size: NonNullable<PieChartProps['size']> | number;\n hasLabels: boolean;\n visualRefresh?: boolean;\n}): Dimension & { size: NonNullable<PieChartProps['size']> } {\n if (typeof size === 'string') {\n const dimensions = visualRefresh ? refreshDimensionsBySize[size] : dimensionsBySize[size];\n return { ...dimensions, size };\n }\n const sizeSpec = visualRefresh ? refreshDimensionsBySize : dimensionsBySize;\n const getPixelSize = (d: Dimension) => d.outerRadius * 2 + d.padding * 2 + (hasLabels ? d.paddingLabels : 0) * 2;\n\n let matchedSize: NonNullable<PieChartProps['size']> = 'small';\n if (size > getPixelSize(sizeSpec.medium)) {\n matchedSize = 'medium';\n }\n if (size > getPixelSize(sizeSpec.large)) {\n matchedSize = 'large';\n }\n\n const padding = sizeSpec[matchedSize].padding;\n const paddingLabels = hasLabels ? sizeSpec[matchedSize].paddingLabels : 0;\n const radiiRatio = sizeSpec[matchedSize].outerRadius / sizeSpec[matchedSize].innerRadius;\n const outerRadius = Math.max(minRadius, (size - 2 * paddingLabels - 2 * padding) / 2);\n const innerRadius = outerRadius / radiiRatio;\n\n return { ...sizeSpec[matchedSize], outerRadius, innerRadius, size: matchedSize };\n}\n\nexport const defaultDetails =\n (i18n: ComponentFormatFunction<'pie-chart'>, i18nStrings: PieChartProps.I18nStrings) =>\n (datum: PieChartProps.Datum, dataSum: number) =>\n [\n { key: i18n('i18nStrings.detailsValue', i18nStrings.detailsValue) || '', value: datum.value },\n {\n key: i18n('i18nStrings.detailsPercentage', i18nStrings.detailsPercentage) || '',\n value: `${((datum.value * 100) / dataSum).toFixed(0)}%`,\n },\n ];\n\n/**\n * Adjusts the position of the given label nodes to avoid visual overlapping.\n * @param nodes List of label nodes of the entire chart (both left and right side)\n * @param markers Markers array that was calculated in <Labels>, but we just need the `endY` values\n * @param leftSide Boolean flag whether we are processing the left or right side of the chart labels\n */\nexport const balanceLabelNodes = (\n nodes: NodeListOf<SVGGElement>,\n markers: Array<{ endY: number; endX: number }>,\n leftSide: boolean,\n radius: number\n) => {\n const MARGIN = 10;\n\n let previousBBox: { x: number; y: number; height: number } | null = null;\n\n // When traversing the right side of labels, we start at the beginning of the array and go forwards.\n // For the left side, we need to traverse backwards from the end, so that overlapping nodes are pushed down in the right order.\n let i = leftSide ? nodes.length - 1 : 0;\n\n while ((leftSide && i >= 0) || (!leftSide && i < nodes.length)) {\n const node = nodes[i];\n\n // Currently using dataset attributes to determine the base position.\n // This implementation can be changed back to using `getBBox` when we drop IE11 support.\n // Unfortunately, there is no good alternative for `getBBox` that is supported by IE11.\n // `getBoundingClientRect` works for width and height calculations in SVG, but the x/y positions are inaccurate.\n const x = parseFloat(node.getAttribute('data-x') || '0');\n const y = parseFloat(node.getAttribute('data-y') || '0');\n const box = {\n x,\n y,\n height: node.getBoundingClientRect().height,\n };\n\n const marker = markers[i];\n\n if (leftSide) {\n i--;\n } else {\n i++;\n }\n\n if (!previousBBox) {\n previousBBox = box;\n node.setAttribute('transform', '');\n continue;\n }\n\n if ((!leftSide && box.x < 0) || (leftSide && box.x >= 0)) {\n // We have reached a label that is on the other side of the chart, so we're done.\n break;\n }\n\n node.setAttribute('transform', '');\n\n // Calculate how much the current node is overlapping with the previous one.\n const yOffset = previousBBox.y + previousBBox.height + MARGIN - box.y;\n\n if (yOffset > 0) {\n const xOffset = computeXOffset(box, yOffset, radius) * (leftSide ? -1 : 1);\n // Move the label down.\n node.setAttribute('transform', `translate(${xOffset} ${yOffset})`);\n\n // Adjust the attached line accordingly.\n const lineNode = node.parentNode?.querySelector(`.${styles['label-line']}`);\n if (lineNode) {\n const { endY, endX } = marker;\n lineNode.setAttribute('y2', '' + (endY + yOffset));\n lineNode.setAttribute('x2', '' + (endX + xOffset));\n }\n\n // Update the position accordingly to inform the next label\n box.y += yOffset;\n box.x += xOffset;\n }\n\n previousBBox = box;\n }\n};\n\nconst squareDistance = (edge: [number, number]): number => Math.pow(edge[0], 2) + Math.pow(edge[1], 2);\n\nconst computeXOffset = (box: { x: number; y: number; height: number }, yOffset: number, radius: number): number => {\n const upperEdge: [number, number] = [box.x, box.y + yOffset];\n const lowerEdge: [number, number] = [box.x, box.y + box.height + yOffset];\n const closestEdge = squareDistance(upperEdge) < squareDistance(lowerEdge) ? upperEdge : lowerEdge;\n\n if (squareDistance(closestEdge) < Math.pow(radius, 2)) {\n return Math.sqrt(Math.pow(radius, 2) - Math.pow(closestEdge[1], 2)) - Math.abs(closestEdge[0]);\n }\n return 0;\n};\n\nexport const computeSmartAngle = (startAngle: number, endAngle: number, optimize = false): number => {\n if (!optimize || endAngle - startAngle < 2 * minLabelLineAngularPadding) {\n return (endAngle + startAngle) / 2;\n }\n const paddedStartAngle = startAngle + minLabelLineAngularPadding;\n const paddedEndAngle = endAngle - minLabelLineAngularPadding;\n if (paddedStartAngle < 0 && paddedEndAngle > 0) {\n return 0;\n }\n if (paddedStartAngle < Math.PI && paddedEndAngle > Math.PI) {\n return Math.PI;\n }\n\n const endAngleMinDistance = Math.min(\n paddedEndAngle,\n Math.abs(Math.PI - paddedEndAngle),\n 2 * Math.PI - paddedEndAngle\n );\n const startAngleMinDistance = Math.min(\n paddedStartAngle,\n Math.abs(Math.PI - paddedStartAngle),\n 2 * Math.PI - paddedStartAngle\n );\n if (endAngleMinDistance < startAngleMinDistance) {\n return paddedEndAngle;\n }\n return paddedStartAngle;\n};\n"]}
|
|
@@ -6,7 +6,7 @@ export declare function matchTokenValue(token: Token, filteringOptions: readonly
|
|
|
6
6
|
export declare function getPropertyByKey(filteringProperties: readonly InternalFilteringProperty[], key: string): InternalFilteringProperty<any> | undefined;
|
|
7
7
|
export declare function getFormattedToken(filteringProperties: readonly InternalFilteringProperty[], token: Token): {
|
|
8
8
|
property: string | undefined;
|
|
9
|
-
operator:
|
|
9
|
+
operator: string;
|
|
10
10
|
value: any;
|
|
11
11
|
label: string;
|
|
12
12
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side.d.ts","sourceRoot":"lib/default/","sources":["split-panel/side.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAItD,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;CAC7C;AAED,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,aAAa,EACb,SAAS,EACT,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,QAAQ,GACT,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"side.d.ts","sourceRoot":"lib/default/","sources":["split-panel/side.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAItD,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;CAC7C;AAED,wBAAgB,qBAAqB,CAAC,EACpC,SAAS,EACT,aAAa,EACb,SAAS,EACT,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,QAAQ,GACT,EAAE,0BAA0B,eA+C5B"}
|
package/split-panel/side.js
CHANGED
|
@@ -24,7 +24,6 @@ export function SplitPanelContentSide({ baseProps, splitPanelRef, toggleRef, hea
|
|
|
24
24
|
isOpen ? (React.createElement("div", { className: styles['slider-wrapper-side'] }, resizeHandle)) : (React.createElement(InternalButton, { className: clsx(styles['open-button'], styles['open-button-side']), iconName: "angle-left", variant: "icon", formAction: "none", ariaLabel: openButtonAriaLabel, ariaExpanded: isOpen, ref: isRefresh ? null : toggleRef })),
|
|
25
25
|
React.createElement("div", { className: styles['content-side'], "aria-hidden": !isOpen },
|
|
26
26
|
React.createElement("div", { className: clsx(styles['pane-header-wrapper-side']) }, header),
|
|
27
|
-
React.createElement("hr", { className: styles['header-divider'] }),
|
|
28
27
|
React.createElement("div", { className: clsx(styles['pane-content-wrapper-side']) }, children)))));
|
|
29
28
|
}
|
|
30
29
|
//# sourceMappingURL=side.js.map
|
package/split-panel/side.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side.js","sourceRoot":"lib/default/","sources":["split-panel/side.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAErE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAO/E,MAAM,UAAU,qBAAqB,CAAC,EACpC,SAAS,EACT,aAAa,EACb,SAAS,EACT,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,QAAQ,GACmB;IAC3B,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAC3D,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,OAAO,CACL,6CACM,SAAS,IACb,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,EAAE;YACxF,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,MAAM;SACnC,CAAC,EACF,KAAK,EAAE;YACL,KAAK,EAAE,MAAM,IAAI,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS;YACnD,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,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CAAC,CAAC,CACF,oBAAC,cAAc,IACb,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAC,EAClE,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,MAAM,EACd,UAAU,EAAC,MAAM,EACjB,SAAS,EAAE,mBAAmB,EAC9B,YAAY,EAAE,MAAM,EACpB,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,GACjC,CACH;YACD,6BAAK,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,iBAAe,CAAC,MAAM;gBAC1D,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,0BAA0B,CAAC,CAAC,IAAG,MAAM,CAAO;gBACxE,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,2BAA2B,CAAC,CAAC,IAAG,QAAQ,CAAO,CACvE,CACF,CACF,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport { ButtonProps } from '../button/interfaces';\nimport InternalButton from '../button/internal';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { SplitPanelContentProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { useSplitPanelContext } from '../internal/context/split-panel-context';\n\ninterface SplitPanelContentSideProps extends SplitPanelContentProps {\n openButtonAriaLabel?: string;\n toggleRef: React.RefObject<ButtonProps.Ref>;\n}\n\nexport function SplitPanelContentSide({\n baseProps,\n splitPanelRef,\n toggleRef,\n header,\n children,\n resizeHandle,\n isOpen,\n cappedSize,\n openButtonAriaLabel,\n panelHeaderId,\n onToggle,\n}: SplitPanelContentSideProps) {\n const { topOffset, bottomOffset } = useSplitPanelContext();\n const isRefresh = useVisualRefresh();\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.drawer, styles.root, styles['position-side'], {\n [styles['drawer-closed']]: !isOpen,\n })}\n style={{\n width: isOpen && isRefresh ? cappedSize : undefined,\n maxWidth: isRefresh ? '100%' : undefined,\n }}\n ref={splitPanelRef}\n >\n <div\n className={clsx(styles['drawer-content-side'], {\n [styles.refresh]: isRefresh,\n })}\n style={{\n top: topOffset,\n bottom: bottomOffset,\n }}\n onClick={() => !isOpen && onToggle()}\n aria-labelledby={panelHeaderId}\n role=\"region\"\n >\n {isOpen ? (\n <div className={styles['slider-wrapper-side']}>{resizeHandle}</div>\n ) : (\n <InternalButton\n className={clsx(styles['open-button'], styles['open-button-side'])}\n iconName=\"angle-left\"\n variant=\"icon\"\n formAction=\"none\"\n ariaLabel={openButtonAriaLabel}\n ariaExpanded={isOpen}\n ref={isRefresh ? null : toggleRef}\n />\n )}\n <div className={styles['content-side']} aria-hidden={!isOpen}>\n <div className={clsx(styles['pane-header-wrapper-side'])}>{header}</div>\n <div className={clsx(styles['pane-content-wrapper-side'])}>{children}</div>\n </div>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -1,61 +1,60 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"drawer": "
|
|
5
|
-
"refresh": "
|
|
6
|
-
"animating": "
|
|
7
|
-
"preference-icon--layout-border": "awsui_preference-icon--layout-
|
|
8
|
-
"preference-icon--layout-background": "awsui_preference-icon--layout-
|
|
9
|
-
"preference-icon--layout-header": "awsui_preference-icon--layout-
|
|
10
|
-
"preference-icon--border": "awsui_preference-icon--
|
|
11
|
-
"preference-icon--primary-button": "awsui_preference-icon--primary-
|
|
12
|
-
"preference-icon--secondary": "awsui_preference-icon--
|
|
13
|
-
"preference-icon--disabled-element": "awsui_preference-icon--disabled-
|
|
14
|
-
"preference-icon--separator": "awsui_preference-icon--
|
|
15
|
-
"preference-icon--focus-text": "awsui_preference-icon--focus-
|
|
16
|
-
"preference-icon-refresh--layout-top": "awsui_preference-icon-refresh--layout-
|
|
17
|
-
"preference-icon-refresh--layout-main": "awsui_preference-icon-refresh--layout-
|
|
18
|
-
"preference-icon-refresh--primary": "awsui_preference-icon-refresh--
|
|
19
|
-
"preference-icon-refresh--disabled": "awsui_preference-icon-refresh--
|
|
20
|
-
"preference-icon-refresh--column-header": "awsui_preference-icon-refresh--column-
|
|
21
|
-
"preference-icon-refresh--window": "awsui_preference-icon-refresh--
|
|
22
|
-
"preference-icon-refresh--secondary": "awsui_preference-icon-refresh--
|
|
23
|
-
"preference-icon-refresh--default": "awsui_preference-icon-refresh--
|
|
24
|
-
"preference-icon-refresh--separator": "awsui_preference-icon-refresh--
|
|
25
|
-
"preference-icon-refresh--input-default": "awsui_preference-icon-refresh--input-
|
|
26
|
-
"preference-icon-refresh--heading": "awsui_preference-icon-refresh--
|
|
27
|
-
"root": "
|
|
28
|
-
"preferences-button": "awsui_preferences-
|
|
29
|
-
"close-button": "awsui_close-
|
|
30
|
-
"drawer-closed": "awsui_drawer-
|
|
31
|
-
"drawer-content-side": "awsui_drawer-content-
|
|
32
|
-
"drawer-content-bottom": "awsui_drawer-content-
|
|
33
|
-
"position-bottom": "awsui_position-
|
|
34
|
-
"position-side": "awsui_position-
|
|
35
|
-
"slider": "
|
|
36
|
-
"slider-side": "awsui_slider-
|
|
37
|
-
"slider-wrapper-bottom": "awsui_slider-wrapper-
|
|
38
|
-
"slider-wrapper-side": "awsui_slider-wrapper-
|
|
39
|
-
"open-button": "awsui_open-
|
|
40
|
-
"open-button-side": "awsui_open-button-
|
|
41
|
-
"slider-icon": "awsui_slider-
|
|
42
|
-
"slider-icon-bottom": "awsui_slider-icon-
|
|
43
|
-
"slider-icon-side": "awsui_slider-icon-
|
|
44
|
-
"pane-header-wrapper-bottom": "awsui_pane-header-wrapper-
|
|
45
|
-
"drawer-mobile": "awsui_drawer-
|
|
46
|
-
"drawer-disable-content-paddings": "awsui_drawer-disable-content-
|
|
47
|
-
"content-bottom": "awsui_content-
|
|
48
|
-
"pane-bottom-center-align": "awsui_pane-bottom-center-
|
|
49
|
-
"pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-
|
|
50
|
-
"pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-
|
|
51
|
-
"content-bottom-max-width": "awsui_content-bottom-max-
|
|
52
|
-
"content-side": "awsui_content-
|
|
53
|
-
"pane-header-wrapper-side": "awsui_pane-header-wrapper-
|
|
54
|
-
"pane-content-wrapper-side": "awsui_pane-content-wrapper-
|
|
55
|
-
"header": "
|
|
56
|
-
"header-text": "awsui_header-
|
|
57
|
-
"header-
|
|
58
|
-
"
|
|
59
|
-
"divider": "awsui_divider_1r9lg_swupw_571"
|
|
4
|
+
"drawer": "awsui_drawer_1r9lg_1ywdg_189",
|
|
5
|
+
"refresh": "awsui_refresh_1r9lg_1ywdg_189",
|
|
6
|
+
"animating": "awsui_animating_1r9lg_1ywdg_203",
|
|
7
|
+
"preference-icon--layout-border": "awsui_preference-icon--layout-border_1r9lg_1ywdg_226",
|
|
8
|
+
"preference-icon--layout-background": "awsui_preference-icon--layout-background_1r9lg_1ywdg_230",
|
|
9
|
+
"preference-icon--layout-header": "awsui_preference-icon--layout-header_1r9lg_1ywdg_233",
|
|
10
|
+
"preference-icon--border": "awsui_preference-icon--border_1r9lg_1ywdg_236",
|
|
11
|
+
"preference-icon--primary-button": "awsui_preference-icon--primary-button_1r9lg_1ywdg_240",
|
|
12
|
+
"preference-icon--secondary": "awsui_preference-icon--secondary_1r9lg_1ywdg_243",
|
|
13
|
+
"preference-icon--disabled-element": "awsui_preference-icon--disabled-element_1r9lg_1ywdg_246",
|
|
14
|
+
"preference-icon--separator": "awsui_preference-icon--separator_1r9lg_1ywdg_249",
|
|
15
|
+
"preference-icon--focus-text": "awsui_preference-icon--focus-text_1r9lg_1ywdg_252",
|
|
16
|
+
"preference-icon-refresh--layout-top": "awsui_preference-icon-refresh--layout-top_1r9lg_1ywdg_256",
|
|
17
|
+
"preference-icon-refresh--layout-main": "awsui_preference-icon-refresh--layout-main_1r9lg_1ywdg_259",
|
|
18
|
+
"preference-icon-refresh--primary": "awsui_preference-icon-refresh--primary_1r9lg_1ywdg_262",
|
|
19
|
+
"preference-icon-refresh--disabled": "awsui_preference-icon-refresh--disabled_1r9lg_1ywdg_265",
|
|
20
|
+
"preference-icon-refresh--column-header": "awsui_preference-icon-refresh--column-header_1r9lg_1ywdg_268",
|
|
21
|
+
"preference-icon-refresh--window": "awsui_preference-icon-refresh--window_1r9lg_1ywdg_271",
|
|
22
|
+
"preference-icon-refresh--secondary": "awsui_preference-icon-refresh--secondary_1r9lg_1ywdg_275",
|
|
23
|
+
"preference-icon-refresh--default": "awsui_preference-icon-refresh--default_1r9lg_1ywdg_278",
|
|
24
|
+
"preference-icon-refresh--separator": "awsui_preference-icon-refresh--separator_1r9lg_1ywdg_281",
|
|
25
|
+
"preference-icon-refresh--input-default": "awsui_preference-icon-refresh--input-default_1r9lg_1ywdg_284",
|
|
26
|
+
"preference-icon-refresh--heading": "awsui_preference-icon-refresh--heading_1r9lg_1ywdg_287",
|
|
27
|
+
"root": "awsui_root_1r9lg_1ywdg_291",
|
|
28
|
+
"preferences-button": "awsui_preferences-button_1r9lg_1ywdg_304",
|
|
29
|
+
"close-button": "awsui_close-button_1r9lg_1ywdg_308",
|
|
30
|
+
"drawer-closed": "awsui_drawer-closed_1r9lg_1ywdg_320",
|
|
31
|
+
"drawer-content-side": "awsui_drawer-content-side_1r9lg_1ywdg_325",
|
|
32
|
+
"drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_1ywdg_345",
|
|
33
|
+
"position-bottom": "awsui_position-bottom_1r9lg_1ywdg_354",
|
|
34
|
+
"position-side": "awsui_position-side_1r9lg_1ywdg_381",
|
|
35
|
+
"slider": "awsui_slider_1r9lg_1ywdg_387",
|
|
36
|
+
"slider-side": "awsui_slider-side_1r9lg_1ywdg_416",
|
|
37
|
+
"slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_1ywdg_421",
|
|
38
|
+
"slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_1ywdg_432",
|
|
39
|
+
"open-button": "awsui_open-button_1r9lg_1ywdg_443",
|
|
40
|
+
"open-button-side": "awsui_open-button-side_1r9lg_1ywdg_447",
|
|
41
|
+
"slider-icon": "awsui_slider-icon_1r9lg_1ywdg_454",
|
|
42
|
+
"slider-icon-bottom": "awsui_slider-icon-bottom_1r9lg_1ywdg_460",
|
|
43
|
+
"slider-icon-side": "awsui_slider-icon-side_1r9lg_1ywdg_463",
|
|
44
|
+
"pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_1ywdg_467",
|
|
45
|
+
"drawer-mobile": "awsui_drawer-mobile_1r9lg_1ywdg_477",
|
|
46
|
+
"drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_1ywdg_480",
|
|
47
|
+
"content-bottom": "awsui_content-bottom_1r9lg_1ywdg_488",
|
|
48
|
+
"pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_1ywdg_501",
|
|
49
|
+
"pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_1ywdg_506",
|
|
50
|
+
"pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_1ywdg_510",
|
|
51
|
+
"content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_1ywdg_514",
|
|
52
|
+
"content-side": "awsui_content-side_1r9lg_1ywdg_519",
|
|
53
|
+
"pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_1ywdg_530",
|
|
54
|
+
"pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_1ywdg_534",
|
|
55
|
+
"header": "awsui_header_1r9lg_1ywdg_539",
|
|
56
|
+
"header-text": "awsui_header-text_1r9lg_1ywdg_548",
|
|
57
|
+
"header-actions": "awsui_header-actions_1r9lg_1ywdg_559",
|
|
58
|
+
"divider": "awsui_divider_1r9lg_1ywdg_567"
|
|
60
59
|
};
|
|
61
60
|
|