@cloudscape-design/components-themeable 3.0.1200 → 3.0.1201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/cards/styles.scss +12 -68
- package/lib/internal/scss/{cards → internal/components/card}/motion.scss +4 -4
- package/lib/internal/scss/internal/components/card/styles.scss +112 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/template/cards/index.d.ts.map +1 -1
- package/lib/internal/template/cards/index.js +8 -10
- package/lib/internal/template/cards/index.js.map +1 -1
- package/lib/internal/template/cards/styles.css.js +38 -39
- package/lib/internal/template/cards/styles.scoped.css +43 -158
- package/lib/internal/template/cards/styles.selectors.js +38 -39
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/card/index.d.ts +3 -0
- package/lib/internal/template/internal/components/card/index.d.ts.map +1 -0
- package/lib/internal/template/internal/components/card/index.js +16 -0
- package/lib/internal/template/internal/components/card/index.js.map +1 -0
- package/lib/internal/template/internal/components/card/interfaces.d.ts +45 -0
- package/lib/internal/template/internal/components/card/interfaces.d.ts.map +1 -0
- package/lib/internal/template/internal/components/card/interfaces.js +2 -0
- package/lib/internal/template/internal/components/card/interfaces.js.map +1 -0
- package/lib/internal/template/internal/components/card/styles.css.js +16 -0
- package/lib/internal/template/internal/components/card/styles.scoped.css +316 -0
- package/lib/internal/template/internal/components/card/styles.selectors.js +17 -0
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/test-utils/dom/cards/index.d.ts +0 -5
- package/lib/internal/template/test-utils/dom/cards/index.js +0 -5
- package/lib/internal/template/test-utils/dom/cards/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/cards/index.d.ts +0 -5
- package/lib/internal/template/test-utils/selectors/cards/index.js +0 -5
- package/lib/internal/template/test-utils/selectors/cards/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -142,55 +142,7 @@
|
|
|
142
142
|
*/
|
|
143
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
-
|
|
146
|
-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
147
|
-
SPDX-License-Identifier: Apache-2.0
|
|
148
|
-
*/
|
|
149
|
-
/*
|
|
150
|
-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
151
|
-
SPDX-License-Identifier: Apache-2.0
|
|
152
|
-
*/
|
|
153
|
-
/*
|
|
154
|
-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
155
|
-
SPDX-License-Identifier: Apache-2.0
|
|
156
|
-
*/
|
|
157
|
-
/*
|
|
158
|
-
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
159
|
-
SPDX-License-Identifier: Apache-2.0
|
|
160
|
-
*/
|
|
161
|
-
.awsui_card-inner_p8a6i_169tu_161:not(#\9) {
|
|
162
|
-
transition-property: background-color;
|
|
163
|
-
transition-duration: var(--motion-duration-transition-show-paced-0w35xp, 180ms);
|
|
164
|
-
transition-timing-function: var(--motion-easing-transition-show-paced-ufdgkj, ease-out);
|
|
165
|
-
}
|
|
166
|
-
@media (prefers-reduced-motion: reduce) {
|
|
167
|
-
.awsui_card-inner_p8a6i_169tu_161:not(#\9) {
|
|
168
|
-
animation: none;
|
|
169
|
-
transition: none;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
.awsui-motion-disabled .awsui_card-inner_p8a6i_169tu_161:not(#\9), .awsui-mode-entering .awsui_card-inner_p8a6i_169tu_161:not(#\9) {
|
|
173
|
-
animation: none;
|
|
174
|
-
transition: none;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
.awsui_card-inner_p8a6i_169tu_161:not(#\9)::before {
|
|
178
|
-
transition-property: border-top-color, border-right-color, border-bottom-color, border-left-color;
|
|
179
|
-
transition-duration: var(--motion-duration-transition-show-paced-0w35xp, 180ms);
|
|
180
|
-
transition-timing-function: var(--motion-easing-transition-show-paced-ufdgkj, ease-out);
|
|
181
|
-
}
|
|
182
|
-
@media (prefers-reduced-motion: reduce) {
|
|
183
|
-
.awsui_card-inner_p8a6i_169tu_161:not(#\9)::before {
|
|
184
|
-
animation: none;
|
|
185
|
-
transition: none;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
.awsui-motion-disabled .awsui_card-inner_p8a6i_169tu_161:not(#\9)::before, .awsui-mode-entering .awsui_card-inner_p8a6i_169tu_161:not(#\9)::before {
|
|
189
|
-
animation: none;
|
|
190
|
-
transition: none;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.awsui_root_p8a6i_169tu_193:not(#\9) {
|
|
145
|
+
.awsui_root_p8a6i_1s5sk_145:not(#\9) {
|
|
194
146
|
border-collapse: separate;
|
|
195
147
|
border-spacing: 0;
|
|
196
148
|
box-sizing: border-box;
|
|
@@ -220,23 +172,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
220
172
|
font-family: var(--font-family-base-8x5ngf, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
221
173
|
-webkit-font-smoothing: auto;
|
|
222
174
|
-moz-osx-font-smoothing: auto;
|
|
223
|
-
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
224
|
-
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
225
|
-
color: var(--color-text-body-default-5qid0u, #16191f);
|
|
226
|
-
font-weight: 400;
|
|
227
|
-
font-family: var(--font-family-base-8x5ngf, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
228
|
-
-webkit-font-smoothing: auto;
|
|
229
|
-
-moz-osx-font-smoothing: auto;
|
|
230
175
|
}
|
|
231
176
|
|
|
232
|
-
.awsui_header-variant-full-
|
|
177
|
+
.awsui_header-variant-full-page_p8a6i_1s5sk_177.awsui_header-refresh_p8a6i_1s5sk_177:not(#\9) {
|
|
233
178
|
padding-block-start: 0;
|
|
234
179
|
padding-inline-start: 0;
|
|
235
180
|
padding-inline-end: 0;
|
|
236
181
|
padding-block-end: calc(var(--space-container-header-bottom-rbnprk, 12px) + var(--space-table-header-tools-full-page-bottom-1o73je, 4px));
|
|
237
182
|
}
|
|
238
183
|
|
|
239
|
-
.
|
|
184
|
+
.awsui_list_p8a6i_1s5sk_184:not(#\9) {
|
|
240
185
|
display: flex;
|
|
241
186
|
flex-wrap: wrap;
|
|
242
187
|
box-sizing: border-box;
|
|
@@ -247,68 +192,68 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
247
192
|
margin-inline-start: calc(var(--space-grid-gutter-nm7ylt, 20px) * -1);
|
|
248
193
|
margin-inline-end: 0;
|
|
249
194
|
}
|
|
250
|
-
.
|
|
195
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-1_p8a6i_1s5sk_195 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
251
196
|
inline-size: 100%;
|
|
252
197
|
}
|
|
253
|
-
.
|
|
198
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-2_p8a6i_1s5sk_198 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
254
199
|
inline-size: 50%;
|
|
255
200
|
}
|
|
256
|
-
.
|
|
201
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-3_p8a6i_1s5sk_201 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
257
202
|
inline-size: 33.3333333333%;
|
|
258
203
|
}
|
|
259
|
-
.
|
|
204
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-4_p8a6i_1s5sk_204 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
260
205
|
inline-size: 25%;
|
|
261
206
|
}
|
|
262
|
-
.
|
|
207
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-5_p8a6i_1s5sk_207 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
263
208
|
inline-size: 20%;
|
|
264
209
|
}
|
|
265
|
-
.
|
|
210
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-6_p8a6i_1s5sk_210 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
266
211
|
inline-size: 16.6666666667%;
|
|
267
212
|
}
|
|
268
|
-
.
|
|
213
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-7_p8a6i_1s5sk_213 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
269
214
|
inline-size: 14.2857142857%;
|
|
270
215
|
}
|
|
271
|
-
.
|
|
216
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-8_p8a6i_1s5sk_216 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
272
217
|
inline-size: 12.5%;
|
|
273
218
|
}
|
|
274
|
-
.
|
|
219
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-9_p8a6i_1s5sk_219 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
275
220
|
inline-size: 11.1111111111%;
|
|
276
221
|
}
|
|
277
|
-
.
|
|
222
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-10_p8a6i_1s5sk_222 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
278
223
|
inline-size: 10%;
|
|
279
224
|
}
|
|
280
|
-
.
|
|
225
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-11_p8a6i_1s5sk_225 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
281
226
|
inline-size: 9.0909090909%;
|
|
282
227
|
}
|
|
283
|
-
.
|
|
228
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-12_p8a6i_1s5sk_228 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
284
229
|
inline-size: 8.3333333333%;
|
|
285
230
|
}
|
|
286
|
-
.
|
|
231
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-13_p8a6i_1s5sk_231 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
287
232
|
inline-size: 7.6923076923%;
|
|
288
233
|
}
|
|
289
|
-
.
|
|
234
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-14_p8a6i_1s5sk_234 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
290
235
|
inline-size: 7.1428571429%;
|
|
291
236
|
}
|
|
292
|
-
.
|
|
237
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-15_p8a6i_1s5sk_237 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
293
238
|
inline-size: 6.6666666667%;
|
|
294
239
|
}
|
|
295
|
-
.
|
|
240
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-16_p8a6i_1s5sk_240 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
296
241
|
inline-size: 6.25%;
|
|
297
242
|
}
|
|
298
|
-
.
|
|
243
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-17_p8a6i_1s5sk_243 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
299
244
|
inline-size: 5.8823529412%;
|
|
300
245
|
}
|
|
301
|
-
.
|
|
246
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-18_p8a6i_1s5sk_246 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
302
247
|
inline-size: 5.5555555556%;
|
|
303
248
|
}
|
|
304
|
-
.
|
|
249
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-19_p8a6i_1s5sk_249 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
305
250
|
inline-size: 5.2631578947%;
|
|
306
251
|
}
|
|
307
|
-
.
|
|
252
|
+
.awsui_list_p8a6i_1s5sk_184.awsui_list-grid-20_p8a6i_1s5sk_252 > .awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
308
253
|
inline-size: 5%;
|
|
309
254
|
}
|
|
310
255
|
|
|
311
|
-
.awsui_selection-
|
|
256
|
+
.awsui_selection-control_p8a6i_1s5sk_256:not(#\9) {
|
|
312
257
|
position: absolute;
|
|
313
258
|
box-sizing: border-box;
|
|
314
259
|
inline-size: calc(var(--size-control-lkpwjy, 14px) + 2 * var(--space-card-horizontal-0tbxbt, 20px));
|
|
@@ -318,23 +263,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
318
263
|
padding-inline: var(--space-card-horizontal-0tbxbt, 20px);
|
|
319
264
|
}
|
|
320
265
|
|
|
321
|
-
.
|
|
322
|
-
.
|
|
266
|
+
.awsui_loading_p8a6i_1s5sk_266:not(#\9),
|
|
267
|
+
.awsui_empty_p8a6i_1s5sk_267:not(#\9) {
|
|
323
268
|
overflow: hidden;
|
|
324
269
|
text-align: center;
|
|
325
270
|
color: var(--color-text-empty-vtt4l2, #687078);
|
|
326
271
|
margin-block-end: var(--space-scaled-l-66n9sr, 20px);
|
|
327
272
|
}
|
|
328
273
|
|
|
329
|
-
.awsui_has-
|
|
274
|
+
.awsui_has-header_p8a6i_1s5sk_274:not(#\9) {
|
|
330
275
|
margin-block-start: var(--space-grid-gutter-nm7ylt, 20px);
|
|
331
276
|
}
|
|
332
|
-
.awsui_has-
|
|
277
|
+
.awsui_has-header_p8a6i_1s5sk_274.awsui_refresh_p8a6i_1s5sk_277.awsui_header-variant-full-page_p8a6i_1s5sk_177:not(#\9) {
|
|
333
278
|
margin-block-start: var(--space-scaled-s-gjhvjd, 12px);
|
|
334
279
|
}
|
|
335
280
|
|
|
336
|
-
.
|
|
337
|
-
display: flex;
|
|
281
|
+
.awsui_card_p8a6i_1s5sk_195:not(#\9) {
|
|
338
282
|
overflow-wrap: break-word;
|
|
339
283
|
word-wrap: break-word;
|
|
340
284
|
box-sizing: border-box;
|
|
@@ -346,62 +290,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
346
290
|
padding-inline-end: 0;
|
|
347
291
|
list-style: none;
|
|
348
292
|
}
|
|
349
|
-
.awsui_card-
|
|
350
|
-
position: relative;
|
|
351
|
-
background-color: var(--color-background-container-content-aemn43, #ffffff);
|
|
352
|
-
margin-block: 0;
|
|
353
|
-
margin-inline: 0;
|
|
354
|
-
padding-block: var(--space-card-vertical-nzlc5t, 20px);
|
|
355
|
-
padding-inline: var(--space-card-horizontal-0tbxbt, 20px);
|
|
356
|
-
inline-size: 100%;
|
|
357
|
-
min-inline-size: 0;
|
|
358
|
-
border-start-start-radius: var(--border-radius-container-l30zxy, 0px);
|
|
359
|
-
border-start-end-radius: var(--border-radius-container-l30zxy, 0px);
|
|
360
|
-
border-end-start-radius: var(--border-radius-container-l30zxy, 0px);
|
|
361
|
-
border-end-end-radius: var(--border-radius-container-l30zxy, 0px);
|
|
362
|
-
box-sizing: border-box;
|
|
363
|
-
}
|
|
364
|
-
.awsui_card-inner_p8a6i_169tu_161:not(#\9)::before {
|
|
365
|
-
content: "";
|
|
366
|
-
position: absolute;
|
|
367
|
-
inset-inline-start: 0px;
|
|
368
|
-
inset-block-start: 0px;
|
|
369
|
-
inline-size: 100%;
|
|
370
|
-
block-size: 100%;
|
|
371
|
-
pointer-events: none;
|
|
372
|
-
background: transparent;
|
|
373
|
-
box-sizing: border-box;
|
|
374
|
-
border-color: transparent;
|
|
375
|
-
border-block-start: var(--border-container-top-width-w3qnoe, 1px) solid var(--color-border-container-top-svitxz, #eaeded);
|
|
376
|
-
border-start-start-radius: var(--border-radius-container-l30zxy, 0px);
|
|
377
|
-
border-start-end-radius: var(--border-radius-container-l30zxy, 0px);
|
|
378
|
-
border-end-start-radius: var(--border-radius-container-l30zxy, 0px);
|
|
379
|
-
border-end-end-radius: var(--border-radius-container-l30zxy, 0px);
|
|
380
|
-
z-index: 1;
|
|
381
|
-
}
|
|
382
|
-
.awsui_card-inner_p8a6i_169tu_161:not(#\9)::after {
|
|
383
|
-
content: "";
|
|
384
|
-
position: absolute;
|
|
385
|
-
inset-inline-start: 0px;
|
|
386
|
-
inset-block-start: 0px;
|
|
387
|
-
inline-size: 100%;
|
|
388
|
-
block-size: 100%;
|
|
389
|
-
pointer-events: none;
|
|
390
|
-
background: transparent;
|
|
391
|
-
box-sizing: border-box;
|
|
392
|
-
border-start-start-radius: var(--border-radius-container-l30zxy, 0px);
|
|
393
|
-
border-start-end-radius: var(--border-radius-container-l30zxy, 0px);
|
|
394
|
-
border-end-start-radius: var(--border-radius-container-l30zxy, 0px);
|
|
395
|
-
border-end-end-radius: var(--border-radius-container-l30zxy, 0px);
|
|
396
|
-
}
|
|
397
|
-
.awsui_card-inner_p8a6i_169tu_161:not(#\9):not(.awsui_refresh_p8a6i_169tu_332)::after {
|
|
398
|
-
box-shadow: var(--shadow-container-3fh0j3, 0 1px 1px 0 rgba(0, 28, 36, 0.3), 1px 1px 1px 0 rgba(0, 28, 36, 0.15), -1px 1px 1px 0 rgba(0, 28, 36, 0.15));
|
|
399
|
-
}
|
|
400
|
-
.awsui_card-inner_p8a6i_169tu_161.awsui_refresh_p8a6i_169tu_332:not(#\9)::after {
|
|
401
|
-
border-block: solid var(--border-divider-section-width-sznrdy, 1px) var(--color-border-divider-default-ipvpev, #eaeded);
|
|
402
|
-
border-inline: solid var(--border-divider-section-width-sznrdy, 1px) var(--color-border-divider-default-ipvpev, #eaeded);
|
|
403
|
-
}
|
|
404
|
-
.awsui_card-header_p8a6i_169tu_404:not(#\9) {
|
|
293
|
+
.awsui_card-header_p8a6i_1s5sk_293:not(#\9) {
|
|
405
294
|
font-size: var(--font-size-heading-m-56jjln, 18px);
|
|
406
295
|
line-height: var(--line-height-heading-m-irezqt, 22px);
|
|
407
296
|
letter-spacing: var(--letter-spacing-heading-m-93y02s, normal);
|
|
@@ -409,46 +298,42 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
409
298
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
410
299
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
411
300
|
}
|
|
412
|
-
.awsui_card-header-
|
|
413
|
-
|
|
414
|
-
display: inline-block;
|
|
301
|
+
.awsui_card-header-inner_p8a6i_1s5sk_301:not(#\9) {
|
|
302
|
+
padding-block-start: var(--space-scaled-xxs-jatbiv, 4px);
|
|
415
303
|
}
|
|
416
|
-
.awsui_card-
|
|
304
|
+
.awsui_card-header-inner-selectable_p8a6i_1s5sk_304:not(#\9) {
|
|
417
305
|
inline-size: 90%;
|
|
418
306
|
}
|
|
419
|
-
.awsui_card-
|
|
420
|
-
|
|
421
|
-
}
|
|
422
|
-
.awsui_card-selected_p8a6i_169tu_419 > .awsui_card-inner_p8a6i_169tu_161:not(#\9)::before {
|
|
423
|
-
border-block: var(--border-item-width-acvlhx, 1px) solid var(--color-border-item-selected-vq6ddf, #0073bb);
|
|
424
|
-
border-inline: var(--border-item-width-acvlhx, 1px) solid var(--color-border-item-selected-vq6ddf, #0073bb);
|
|
307
|
+
.awsui_card-selected_p8a6i_1s5sk_307:not(#\9) {
|
|
308
|
+
/* Used in test utils */
|
|
425
309
|
}
|
|
426
310
|
|
|
427
|
-
.
|
|
311
|
+
.awsui_section_p8a6i_1s5sk_311:not(#\9) {
|
|
428
312
|
display: inline-block;
|
|
429
313
|
box-sizing: border-box;
|
|
430
|
-
padding-block-start: var(--space-xs-kw7k3v, 8px);
|
|
431
314
|
padding-block-end: var(--space-scaled-xs-sppte9, 8px);
|
|
432
315
|
padding-inline: 0;
|
|
433
316
|
vertical-align: top;
|
|
434
317
|
}
|
|
435
|
-
.awsui_section-
|
|
318
|
+
.awsui_section-header_p8a6i_1s5sk_318:not(#\9) {
|
|
436
319
|
font-size: var(--font-size-body-m-vv54cm, 14px);
|
|
437
320
|
line-height: var(--line-height-body-m-bedeoh, 22px);
|
|
438
321
|
font-weight: var(--font-display-label-weight-ise9n2, 400);
|
|
439
322
|
color: var(--color-text-label-482ybi, #545b64);
|
|
440
323
|
}
|
|
441
|
-
.awsui_section-
|
|
324
|
+
.awsui_section-content_p8a6i_1s5sk_324:not(#\9) {
|
|
442
325
|
/* used in test-utils */
|
|
443
326
|
}
|
|
444
327
|
|
|
445
|
-
.
|
|
328
|
+
.awsui_section_p8a6i_1s5sk_311:not(#\9):not(:first-child) {
|
|
446
329
|
padding-block-start: var(--space-xs-kw7k3v, 8px);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
.awsui_section_p8a6i_1s5sk_311:not(#\9):last-child {
|
|
447
333
|
padding-block-end: 0;
|
|
448
|
-
padding-inline: 0;
|
|
449
334
|
}
|
|
450
335
|
|
|
451
|
-
.awsui_footer-
|
|
336
|
+
.awsui_footer-pagination_p8a6i_1s5sk_336:not(#\9) {
|
|
452
337
|
display: flex;
|
|
453
338
|
justify-content: flex-end;
|
|
454
339
|
}
|
|
@@ -2,44 +2,43 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"header-
|
|
8
|
-
"
|
|
9
|
-
"list": "
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"list-grid-
|
|
13
|
-
"list-grid-
|
|
14
|
-
"list-grid-
|
|
15
|
-
"list-grid-
|
|
16
|
-
"list-grid-
|
|
17
|
-
"list-grid-
|
|
18
|
-
"list-grid-
|
|
19
|
-
"list-grid-
|
|
20
|
-
"list-grid-
|
|
21
|
-
"list-grid-
|
|
22
|
-
"list-grid-
|
|
23
|
-
"list-grid-
|
|
24
|
-
"list-grid-
|
|
25
|
-
"list-grid-
|
|
26
|
-
"list-grid-
|
|
27
|
-
"list-grid-
|
|
28
|
-
"list-grid-
|
|
29
|
-
"list-grid-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"card-header": "awsui_card-
|
|
37
|
-
"card-header-inner": "awsui_card-header-
|
|
38
|
-
"card-
|
|
39
|
-
"
|
|
40
|
-
"section": "
|
|
41
|
-
"section-
|
|
42
|
-
"
|
|
43
|
-
"footer-pagination": "awsui_footer-pagination_p8a6i_169tu_451"
|
|
5
|
+
"root": "awsui_root_p8a6i_1s5sk_145",
|
|
6
|
+
"header-variant-full-page": "awsui_header-variant-full-page_p8a6i_1s5sk_177",
|
|
7
|
+
"header-refresh": "awsui_header-refresh_p8a6i_1s5sk_177",
|
|
8
|
+
"list": "awsui_list_p8a6i_1s5sk_184",
|
|
9
|
+
"list-grid-1": "awsui_list-grid-1_p8a6i_1s5sk_195",
|
|
10
|
+
"card": "awsui_card_p8a6i_1s5sk_195",
|
|
11
|
+
"list-grid-2": "awsui_list-grid-2_p8a6i_1s5sk_198",
|
|
12
|
+
"list-grid-3": "awsui_list-grid-3_p8a6i_1s5sk_201",
|
|
13
|
+
"list-grid-4": "awsui_list-grid-4_p8a6i_1s5sk_204",
|
|
14
|
+
"list-grid-5": "awsui_list-grid-5_p8a6i_1s5sk_207",
|
|
15
|
+
"list-grid-6": "awsui_list-grid-6_p8a6i_1s5sk_210",
|
|
16
|
+
"list-grid-7": "awsui_list-grid-7_p8a6i_1s5sk_213",
|
|
17
|
+
"list-grid-8": "awsui_list-grid-8_p8a6i_1s5sk_216",
|
|
18
|
+
"list-grid-9": "awsui_list-grid-9_p8a6i_1s5sk_219",
|
|
19
|
+
"list-grid-10": "awsui_list-grid-10_p8a6i_1s5sk_222",
|
|
20
|
+
"list-grid-11": "awsui_list-grid-11_p8a6i_1s5sk_225",
|
|
21
|
+
"list-grid-12": "awsui_list-grid-12_p8a6i_1s5sk_228",
|
|
22
|
+
"list-grid-13": "awsui_list-grid-13_p8a6i_1s5sk_231",
|
|
23
|
+
"list-grid-14": "awsui_list-grid-14_p8a6i_1s5sk_234",
|
|
24
|
+
"list-grid-15": "awsui_list-grid-15_p8a6i_1s5sk_237",
|
|
25
|
+
"list-grid-16": "awsui_list-grid-16_p8a6i_1s5sk_240",
|
|
26
|
+
"list-grid-17": "awsui_list-grid-17_p8a6i_1s5sk_243",
|
|
27
|
+
"list-grid-18": "awsui_list-grid-18_p8a6i_1s5sk_246",
|
|
28
|
+
"list-grid-19": "awsui_list-grid-19_p8a6i_1s5sk_249",
|
|
29
|
+
"list-grid-20": "awsui_list-grid-20_p8a6i_1s5sk_252",
|
|
30
|
+
"selection-control": "awsui_selection-control_p8a6i_1s5sk_256",
|
|
31
|
+
"loading": "awsui_loading_p8a6i_1s5sk_266",
|
|
32
|
+
"empty": "awsui_empty_p8a6i_1s5sk_267",
|
|
33
|
+
"has-header": "awsui_has-header_p8a6i_1s5sk_274",
|
|
34
|
+
"refresh": "awsui_refresh_p8a6i_1s5sk_277",
|
|
35
|
+
"card-header": "awsui_card-header_p8a6i_1s5sk_293",
|
|
36
|
+
"card-header-inner": "awsui_card-header-inner_p8a6i_1s5sk_301",
|
|
37
|
+
"card-header-inner-selectable": "awsui_card-header-inner-selectable_p8a6i_1s5sk_304",
|
|
38
|
+
"card-selected": "awsui_card-selected_p8a6i_1s5sk_307",
|
|
39
|
+
"section": "awsui_section_p8a6i_1s5sk_311",
|
|
40
|
+
"section-header": "awsui_section-header_p8a6i_1s5sk_318",
|
|
41
|
+
"section-content": "awsui_section-content_p8a6i_1s5sk_324",
|
|
42
|
+
"footer-pagination": "awsui_footer-pagination_p8a6i_1s5sk_336"
|
|
44
43
|
};
|
|
45
44
|
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { InternalCardProps } from './interfaces';
|
|
2
|
+
export default function Card({ actions, selected, children, className, header, description, icon, metadataAttributes, onClick, disableHeaderPaddings, disableContentPaddings, }: InternalCardProps): JSX.Element;
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/card/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAIjD,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,MAAM,EACN,WAAW,EACX,IAAI,EACJ,kBAAkB,EAClB,OAAO,EACP,qBAAqB,EACrB,sBAAsB,GACvB,EAAE,iBAAiB,eAqCnB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import { useVisualRefresh } from '../../hooks/use-visual-mode';
|
|
6
|
+
import InternalStructuredItem from '../structured-item';
|
|
7
|
+
import styles from './styles.css.js';
|
|
8
|
+
export default function Card({ actions, selected, children, className, header, description, icon, metadataAttributes, onClick, disableHeaderPaddings, disableContentPaddings, }) {
|
|
9
|
+
const isRefresh = useVisualRefresh();
|
|
10
|
+
const headerRowEmpty = !header && !description && !icon && !actions;
|
|
11
|
+
return (React.createElement("div", { className: clsx(className, styles.root, selected && styles.selected, headerRowEmpty && styles['no-header'], !children && styles['no-content'], isRefresh && styles.refresh), ...metadataAttributes, onClick: onClick },
|
|
12
|
+
React.createElement("div", { className: clsx(styles.header, disableHeaderPaddings && styles['no-padding'], !!actions && styles['with-actions']) },
|
|
13
|
+
React.createElement(InternalStructuredItem, { content: header && React.createElement("div", { className: styles['header-inner'] }, header), secondaryContent: description && React.createElement("div", { className: styles.description }, description), icon: icon, actions: actions, disablePaddings: disableHeaderPaddings, wrapActions: false })),
|
|
14
|
+
React.createElement("div", { className: clsx(styles.body, disableContentPaddings && styles['no-padding']) }, children)));
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/components/card/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,sBAAsB,MAAM,oBAAoB,CAAC;AAGxD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,EAC3B,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,MAAM,EACN,WAAW,EACX,IAAI,EACJ,kBAAkB,EAClB,OAAO,EACP,qBAAqB,EACrB,sBAAsB,GACJ;IAClB,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IAErC,MAAM,cAAc,GAAG,CAAC,MAAM,IAAI,CAAC,WAAW,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC;IAEpE,OAAO,CACL,6BACE,SAAS,EAAE,IAAI,CACb,SAAS,EACT,MAAM,CAAC,IAAI,EACX,QAAQ,IAAI,MAAM,CAAC,QAAQ,EAC3B,cAAc,IAAI,MAAM,CAAC,WAAW,CAAC,EACrC,CAAC,QAAQ,IAAI,MAAM,CAAC,YAAY,CAAC,EACjC,SAAS,IAAI,MAAM,CAAC,OAAO,CAC5B,KACG,kBAAkB,EACtB,OAAO,EAAE,OAAO;QAEhB,6BACE,SAAS,EAAE,IAAI,CACb,MAAM,CAAC,MAAM,EACb,qBAAqB,IAAI,MAAM,CAAC,YAAY,CAAC,EAC7C,CAAC,CAAC,OAAO,IAAI,MAAM,CAAC,cAAc,CAAC,CACpC;YAED,oBAAC,sBAAsB,IACrB,OAAO,EAAE,MAAM,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,IAAG,MAAM,CAAO,EACzE,gBAAgB,EAAE,WAAW,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,WAAW,IAAG,WAAW,CAAO,EACxF,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,EAChB,eAAe,EAAE,qBAAqB,EACtC,WAAW,EAAE,KAAK,GAClB,CACE;QACN,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,sBAAsB,IAAI,MAAM,CAAC,YAAY,CAAC,CAAC,IAAG,QAAQ,CAAO,CAC/F,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';\n\nimport { useVisualRefresh } from '../../hooks/use-visual-mode';\nimport InternalStructuredItem from '../structured-item';\nimport { InternalCardProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport default function Card({\n actions,\n selected,\n children,\n className,\n header,\n description,\n icon,\n metadataAttributes,\n onClick,\n disableHeaderPaddings,\n disableContentPaddings,\n}: InternalCardProps) {\n const isRefresh = useVisualRefresh();\n\n const headerRowEmpty = !header && !description && !icon && !actions;\n\n return (\n <div\n className={clsx(\n className,\n styles.root,\n selected && styles.selected,\n headerRowEmpty && styles['no-header'],\n !children && styles['no-content'],\n isRefresh && styles.refresh\n )}\n {...metadataAttributes}\n onClick={onClick}\n >\n <div\n className={clsx(\n styles.header,\n disableHeaderPaddings && styles['no-padding'],\n !!actions && styles['with-actions']\n )}\n >\n <InternalStructuredItem\n content={header && <div className={styles['header-inner']}>{header}</div>}\n secondaryContent={description && <div className={styles.description}>{description}</div>}\n icon={icon}\n actions={actions}\n disablePaddings={disableHeaderPaddings}\n wrapActions={false}\n />\n </div>\n <div className={clsx(styles.body, disableContentPaddings && styles['no-padding'])}>{children}</div>\n </div>\n );\n}\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BaseComponentProps } from '../../base-component';
|
|
3
|
+
export interface BaseCardProps extends BaseComponentProps {
|
|
4
|
+
/**
|
|
5
|
+
* Heading text.
|
|
6
|
+
*/
|
|
7
|
+
header?: React.ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Supplementary text below the heading.
|
|
10
|
+
*/
|
|
11
|
+
description?: React.ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Specifies actions for the card.
|
|
14
|
+
*/
|
|
15
|
+
actions?: React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Primary content displayed in the card.
|
|
18
|
+
*/
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Icon which will be displayed at the top of the card,
|
|
22
|
+
* aligned with the start of the content.
|
|
23
|
+
*/
|
|
24
|
+
icon?: React.ReactNode;
|
|
25
|
+
/**
|
|
26
|
+
* Determines whether the card header has padding. If `true`, removes the default padding from the header.
|
|
27
|
+
*/
|
|
28
|
+
disableHeaderPaddings?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Determines whether the card content has padding. If `true`, removes the default padding from the content area.
|
|
31
|
+
*/
|
|
32
|
+
disableContentPaddings?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface InternalCardProps extends BaseCardProps {
|
|
35
|
+
/**
|
|
36
|
+
* Called when the user clicks on the card.
|
|
37
|
+
*/
|
|
38
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies whether the card is in active state.
|
|
41
|
+
*/
|
|
42
|
+
selected?: boolean;
|
|
43
|
+
metadataAttributes?: Record<string, string | undefined>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/card/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE9B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;;OAGG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED,MAAM,WAAW,iBAAkB,SAAQ,aAAa;IACtD;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAE/C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/components/card/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../../base-component';\n\nexport interface BaseCardProps extends BaseComponentProps {\n /**\n * Heading text.\n */\n header?: React.ReactNode;\n\n /**\n * Supplementary text below the heading.\n */\n description?: React.ReactNode;\n\n /**\n * Specifies actions for the card.\n */\n actions?: React.ReactNode;\n\n /**\n * Primary content displayed in the card.\n */\n children?: React.ReactNode;\n\n /**\n * Icon which will be displayed at the top of the card,\n * aligned with the start of the content.\n */\n icon?: React.ReactNode;\n\n /**\n * Determines whether the card header has padding. If `true`, removes the default padding from the header.\n */\n disableHeaderPaddings?: boolean;\n\n /**\n * Determines whether the card content has padding. If `true`, removes the default padding from the content area.\n */\n disableContentPaddings?: boolean;\n}\n\nexport interface InternalCardProps extends BaseCardProps {\n /**\n * Called when the user clicks on the card.\n */\n onClick?: React.MouseEventHandler<HTMLElement>;\n\n /**\n * Specifies whether the card is in active state.\n */\n selected?: boolean;\n\n metadataAttributes?: Record<string, string | undefined>;\n}\n"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
import './styles.scoped.css';
|
|
3
|
+
export default {
|
|
4
|
+
"root": "awsui_root_1xxz5_1fmrq_153",
|
|
5
|
+
"refresh": "awsui_refresh_1xxz5_1fmrq_258",
|
|
6
|
+
"header": "awsui_header_1xxz5_1fmrq_266",
|
|
7
|
+
"no-padding": "awsui_no-padding_1xxz5_1fmrq_266",
|
|
8
|
+
"with-actions": "awsui_with-actions_1xxz5_1fmrq_270",
|
|
9
|
+
"header-inner": "awsui_header-inner_1xxz5_1fmrq_278",
|
|
10
|
+
"body": "awsui_body_1xxz5_1fmrq_287",
|
|
11
|
+
"no-header": "awsui_no-header_1xxz5_1fmrq_297",
|
|
12
|
+
"no-content": "awsui_no-content_1xxz5_1fmrq_298",
|
|
13
|
+
"selected": "awsui_selected_1xxz5_1fmrq_306",
|
|
14
|
+
"description": "awsui_description_1xxz5_1fmrq_314"
|
|
15
|
+
};
|
|
16
|
+
|