@transferwise/components 0.0.0-experimental-15914a5 → 0.0.0-experimental-e1870f3
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/build/flowNavigation/animatedLabel/AnimatedLabel.js +2 -2
- package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +1 -1
- package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs +2 -2
- package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs.map +1 -1
- package/build/index.js +2 -2
- package/build/index.mjs +1 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +0 -2
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -1
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +0 -2
- package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -1
- package/build/listItem/AvatarView/ListItemAvatarView.js +0 -2
- package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -1
- package/build/listItem/AvatarView/ListItemAvatarView.mjs +0 -2
- package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -1
- package/build/listItem/Image/ListItemImage.js +1 -3
- package/build/listItem/Image/ListItemImage.js.map +1 -1
- package/build/listItem/Image/ListItemImage.mjs +1 -3
- package/build/listItem/Image/ListItemImage.mjs.map +1 -1
- package/build/{legacylistItem → listItem}/List.js +3 -2
- package/build/listItem/List.js.map +1 -0
- package/build/{legacylistItem → listItem}/List.mjs +3 -2
- package/build/listItem/List.mjs.map +1 -0
- package/build/listItem/ListItem.js +14 -16
- package/build/listItem/ListItem.js.map +1 -1
- package/build/listItem/ListItem.mjs +14 -16
- package/build/listItem/ListItem.mjs.map +1 -1
- package/build/listItem/ListItemContext.js.map +1 -1
- package/build/listItem/ListItemContext.mjs.map +1 -1
- package/build/listItem/Navigation/ListItemNavigation.js +1 -1
- package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
- package/build/listItem/Navigation/ListItemNavigation.mjs +1 -1
- package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
- package/build/main.css +99 -51
- package/build/styles/avatarView/AvatarView.css +3 -1
- package/build/styles/listItem/ListItem.css +96 -50
- package/build/styles/listItem/ListItem.grid.css +9 -15
- package/build/styles/main.css +99 -51
- package/build/types/index.d.ts +4 -4
- package/build/types/index.d.ts.map +1 -1
- package/build/types/legacylistItem/index.d.ts +0 -2
- package/build/types/legacylistItem/index.d.ts.map +1 -1
- package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +1 -1
- package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +1 -1
- package/build/types/listItem/Image/ListItemImage.d.ts.map +1 -1
- package/build/types/listItem/List.d.ts +7 -0
- package/build/types/listItem/List.d.ts.map +1 -0
- package/build/types/listItem/ListItem.d.ts.map +1 -1
- package/build/types/listItem/ListItemContext.d.ts +0 -4
- package/build/types/listItem/ListItemContext.d.ts.map +1 -1
- package/build/types/listItem/index.d.ts +2 -0
- package/build/types/listItem/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/avatarView/AvatarView.css +3 -1
- package/src/avatarView/AvatarView.less +2 -1
- package/src/flowNavigation/animatedLabel/AnimatedLabel.tsx +1 -1
- package/src/index.ts +9 -4
- package/src/legacylistItem/LegacyListItem.story.tsx +2 -2
- package/src/legacylistItem/LegacyListItem.tests.story.tsx +2 -1
- package/src/legacylistItem/index.ts +0 -2
- package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +5 -4
- package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +0 -3
- package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +5 -4
- package/src/listItem/AvatarView/ListItemAvatarView.tsx +0 -3
- package/src/listItem/Button/ListItemButton.spec.tsx +35 -10
- package/src/listItem/Button/ListItemButton.story.tsx +9 -8
- package/src/listItem/IconButton/ListItemIconButton.story.tsx +8 -8
- package/src/listItem/Image/ListItemImage.spec.tsx +5 -8
- package/src/listItem/Image/ListItemImage.story.tsx +6 -23
- package/src/listItem/Image/ListItemImage.tsx +1 -4
- package/src/listItem/List.tsx +11 -0
- package/src/listItem/ListItem.css +96 -50
- package/src/listItem/ListItem.grid.css +9 -15
- package/src/listItem/ListItem.grid.less +14 -22
- package/src/listItem/ListItem.less +111 -46
- package/src/listItem/ListItem.tsx +18 -24
- package/src/listItem/ListItemContext.tsx +0 -5
- package/src/listItem/Navigation/ListItemNavigation.tsx +1 -1
- package/src/listItem/Prompt/ListItemPrompt.story.tsx +7 -7
- package/src/listItem/Switch/ListItemSwitch.story.tsx +3 -2
- package/src/listItem/_stories/ListItem.scenarios.story.tsx +226 -0
- package/src/listItem/_stories/ListItem.story.tsx +45 -7
- package/src/listItem/_stories/ListItem.variants.test.story.tsx +7 -11
- package/src/listItem/index.ts +3 -0
- package/src/main.css +99 -51
- package/build/legacylistItem/List.js.map +0 -1
- package/build/legacylistItem/List.mjs.map +0 -1
- package/build/listItem/useListItemMedia.js +0 -21
- package/build/listItem/useListItemMedia.js.map +0 -1
- package/build/listItem/useListItemMedia.mjs +0 -19
- package/build/listItem/useListItemMedia.mjs.map +0 -1
- package/build/types/legacylistItem/List.d.ts +0 -6
- package/build/types/legacylistItem/List.d.ts.map +0 -1
- package/build/types/listItem/test-utils.d.ts +0 -7
- package/build/types/listItem/test-utils.d.ts.map +0 -1
- package/build/types/listItem/useListItemMedia.d.ts +0 -6
- package/build/types/listItem/useListItemMedia.d.ts.map +0 -1
- package/src/legacylistItem/List.tsx +0 -10
- package/src/listItem/test-utils.tsx +0 -33
- package/src/listItem/useListItemMedia.tsx +0 -13
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
gap: 4px 16px;
|
|
6
6
|
gap: var(--size-4) var(--size-16);
|
|
7
7
|
}
|
|
8
|
-
@container (min-width:
|
|
8
|
+
@container (min-width: 380px) {
|
|
9
9
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
|
|
10
10
|
grid-template-columns: auto 1fr auto;
|
|
11
11
|
grid-template-rows: auto auto auto;
|
|
12
|
-
grid-template-areas: "media body control" "media info
|
|
12
|
+
grid-template-areas: "media body control" "media info control" "media prompt prompt";
|
|
13
13
|
}
|
|
14
14
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
|
|
15
15
|
grid-template-columns: auto 1fr auto;
|
|
16
16
|
grid-template-rows: auto auto;
|
|
17
|
-
grid-template-areas: "media body control" "media info
|
|
17
|
+
grid-template-areas: "media body control" "media info control";
|
|
18
18
|
}
|
|
19
19
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
|
|
20
20
|
grid-template-columns: auto 1fr auto;
|
|
21
21
|
grid-template-rows: auto auto;
|
|
22
|
-
grid-template-areas: "media body control" "
|
|
22
|
+
grid-template-areas: "media body control" "media prompt prompt";
|
|
23
23
|
}
|
|
24
24
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
|
|
25
25
|
grid-template-columns: auto 1fr auto;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
|
|
30
30
|
grid-template-columns: auto 1fr;
|
|
31
31
|
grid-template-rows: auto auto;
|
|
32
|
-
grid-template-areas: "media body" "media info" "
|
|
32
|
+
grid-template-areas: "media body" "media info" "media prompt";
|
|
33
33
|
}
|
|
34
34
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
|
|
35
35
|
grid-template-columns: auto 1fr;
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
.wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
|
|
53
53
|
grid-template-columns: 1fr auto;
|
|
54
54
|
grid-template-rows: auto auto auto;
|
|
55
|
-
grid-template-areas: "body control" "info
|
|
55
|
+
grid-template-areas: "body control" "info control" "prompt prompt";
|
|
56
56
|
}
|
|
57
57
|
.wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
|
|
58
58
|
grid-template-columns: 1fr auto;
|
|
59
59
|
grid-template-rows: auto auto;
|
|
60
|
-
grid-template-areas: "body control" "info
|
|
60
|
+
grid-template-areas: "body control" "info control";
|
|
61
61
|
}
|
|
62
62
|
.wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
|
|
63
63
|
grid-template-columns: 1fr auto;
|
|
@@ -93,14 +93,11 @@
|
|
|
93
93
|
grid-template-areas: "body";
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
@container (min-width:
|
|
96
|
+
@container (min-width: 290px) and (max-width: 380px) {
|
|
97
97
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media {
|
|
98
98
|
margin-bottom: 12px;
|
|
99
99
|
margin-bottom: var(--size-12);
|
|
100
100
|
}
|
|
101
|
-
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media .wds-list-item-media-image {
|
|
102
|
-
height: auto;
|
|
103
|
-
}
|
|
104
101
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
|
|
105
102
|
grid-template-columns: 1fr auto;
|
|
106
103
|
grid-template-rows: auto auto auto auto;
|
|
@@ -141,9 +138,6 @@
|
|
|
141
138
|
margin-bottom: 16px;
|
|
142
139
|
margin-bottom: var(--size-16);
|
|
143
140
|
}
|
|
144
|
-
.wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl .wds-list-item-media .wds-list-item-media-image {
|
|
145
|
-
height: auto;
|
|
146
|
-
}
|
|
147
141
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
|
|
148
142
|
grid-template-columns: auto auto;
|
|
149
143
|
grid-template-rows: auto auto auto auto;
|
|
@@ -227,7 +221,7 @@
|
|
|
227
221
|
grid-template-areas: "body";
|
|
228
222
|
}
|
|
229
223
|
}
|
|
230
|
-
@container (max-width:
|
|
224
|
+
@container (max-width: 290px) {
|
|
231
225
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
|
|
232
226
|
grid-template-columns: auto 1fr;
|
|
233
227
|
grid-template-rows: auto auto auto;
|
|
@@ -374,8 +368,8 @@
|
|
|
374
368
|
background-color: #ffffff;
|
|
375
369
|
background-color: var(--color-background-screen);
|
|
376
370
|
position: relative;
|
|
377
|
-
padding: 12px;
|
|
378
|
-
padding: var(--size-12);
|
|
371
|
+
padding: 12px 0;
|
|
372
|
+
padding: var(--size-12) 0;
|
|
379
373
|
container-type: inline-size;
|
|
380
374
|
}
|
|
381
375
|
.wds-list-item + .wds-list-item-spotlight,
|
|
@@ -409,12 +403,6 @@
|
|
|
409
403
|
.wds-list-item-interactive .np-checkbox-button:has(input[type="checkbox"]:focus-visible) .tw-checkbox-button {
|
|
410
404
|
outline: none;
|
|
411
405
|
}
|
|
412
|
-
.wds-list-item-interactive:has(.wds-list-item-control:focus-visible),
|
|
413
|
-
.wds-list-item-interactive:has(input[type="checkbox"]:focus-visible) {
|
|
414
|
-
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
415
|
-
outline-offset: var(--ring-outline-offset);
|
|
416
|
-
outline-offset: -1px;
|
|
417
|
-
}
|
|
418
406
|
.wds-list-item-interactive .wds-list-item-additional-info {
|
|
419
407
|
--ring-outline-offset: 0;
|
|
420
408
|
}
|
|
@@ -433,30 +421,65 @@
|
|
|
433
421
|
position: absolute;
|
|
434
422
|
inset: 0;
|
|
435
423
|
}
|
|
436
|
-
.wds-list-item-interactive:
|
|
424
|
+
.wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-control:focus-visible),
|
|
425
|
+
.wds-list-item-interactive.wds-list-item-spotlight:has(input[type="checkbox"]:focus-visible) {
|
|
426
|
+
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
427
|
+
outline-offset: var(--ring-outline-offset);
|
|
428
|
+
outline-offset: -1px;
|
|
429
|
+
}
|
|
430
|
+
.wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):hover {
|
|
431
|
+
background-color: var(--color-background-screen-hover);
|
|
432
|
+
}
|
|
433
|
+
.wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):active {
|
|
434
|
+
background-color: var(--color-background-screen-active);
|
|
435
|
+
}
|
|
436
|
+
.wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover {
|
|
437
|
+
background-color: transparent;
|
|
438
|
+
background-color: initial;
|
|
439
|
+
}
|
|
440
|
+
.wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-control:focus-visible):before,
|
|
441
|
+
.wds-list-item-interactive:not(.wds-list-item-spotlight):has(input[type="checkbox"]:focus-visible):before {
|
|
442
|
+
outline: var(--ring-outline-color) solid var(--ring-outline-width);
|
|
443
|
+
outline-offset: var(--ring-outline-offset);
|
|
444
|
+
content: '';
|
|
445
|
+
position: absolute;
|
|
446
|
+
inset: 0 -8px;
|
|
447
|
+
border-radius: 16px;
|
|
448
|
+
border-radius: var(--radius-medium);
|
|
449
|
+
outline-offset: -1px;
|
|
450
|
+
}
|
|
451
|
+
.wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before,
|
|
452
|
+
.wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
|
|
453
|
+
content: '';
|
|
454
|
+
position: absolute;
|
|
455
|
+
inset: 0 -8px;
|
|
456
|
+
border-radius: 16px;
|
|
457
|
+
border-radius: var(--radius-medium);
|
|
458
|
+
}
|
|
459
|
+
.wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before {
|
|
437
460
|
background-color: var(--color-background-screen-hover);
|
|
438
461
|
}
|
|
462
|
+
.wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
|
|
463
|
+
background-color: var(--color-background-screen-active);
|
|
464
|
+
}
|
|
465
|
+
.wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover:before {
|
|
466
|
+
background-color: transparent;
|
|
467
|
+
background-color: initial;
|
|
468
|
+
}
|
|
439
469
|
.wds-list-item-interactive:not(.disabled):not(:disabled):hover .wds-list-item-control-wrapper .wds-Button {
|
|
440
470
|
background-color: var(--Button-background-hover);
|
|
441
471
|
color: var(--Button-color-hover);
|
|
442
472
|
transition: none;
|
|
443
473
|
}
|
|
444
|
-
.wds-list-item-interactive:not(.disabled):not(:disabled):active {
|
|
445
|
-
background-color: var(--color-background-screen-active);
|
|
446
|
-
}
|
|
447
474
|
.wds-list-item-interactive .wds-list-item-button-control .wds-Button {
|
|
448
475
|
transition: none;
|
|
449
476
|
}
|
|
450
|
-
.wds-list-item-interactive:has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover {
|
|
451
|
-
background-color: transparent;
|
|
452
|
-
background-color: initial;
|
|
453
|
-
}
|
|
454
477
|
.wds-list-item-media {
|
|
455
478
|
grid-area: media;
|
|
456
479
|
}
|
|
457
480
|
.wds-list-item-media-image {
|
|
458
|
-
width: var(--
|
|
459
|
-
height: var(--
|
|
481
|
+
width: var(--item-media-image-size);
|
|
482
|
+
height: var(--item-media-image-size);
|
|
460
483
|
}
|
|
461
484
|
.wds-list-item-body {
|
|
462
485
|
grid-area: body;
|
|
@@ -470,18 +493,11 @@
|
|
|
470
493
|
gap: var(--size-16);
|
|
471
494
|
word-break: break-word;
|
|
472
495
|
}
|
|
473
|
-
.wds-list-item-title
|
|
496
|
+
.wds-list-item-title,
|
|
497
|
+
.wds-list-item-title-value {
|
|
474
498
|
color: #37517e;
|
|
475
499
|
color: var(--color-content-primary);
|
|
476
500
|
}
|
|
477
|
-
.wds-list-item-value {
|
|
478
|
-
text-align: right;
|
|
479
|
-
}
|
|
480
|
-
.wds-list-item-body-center {
|
|
481
|
-
display: flex;
|
|
482
|
-
flex-direction: row;
|
|
483
|
-
align-items: center;
|
|
484
|
-
}
|
|
485
501
|
.wds-list-item-additional-info {
|
|
486
502
|
grid-area: info;
|
|
487
503
|
color: #768e9c;
|
|
@@ -489,14 +505,12 @@
|
|
|
489
505
|
margin-top: calc(4px * -1);
|
|
490
506
|
margin-top: calc(var(--size-4) * -1);
|
|
491
507
|
}
|
|
508
|
+
.wds-list-item-value {
|
|
509
|
+
align-items: end;
|
|
510
|
+
text-align: right;
|
|
511
|
+
}
|
|
492
512
|
.wds-list-item-control-wrapper {
|
|
493
513
|
grid-area: control;
|
|
494
|
-
align-content: center;
|
|
495
|
-
max-height: var(--wds-list-item-control-wrapper-height);
|
|
496
|
-
}
|
|
497
|
-
.wds-list-item-navigation .tw-icon-chevron-right {
|
|
498
|
-
color: #c9cbce;
|
|
499
|
-
color: var(--color-interactive-secondary);
|
|
500
514
|
}
|
|
501
515
|
.wds-list-item-control {
|
|
502
516
|
flex: 0 0 auto;
|
|
@@ -512,6 +526,12 @@
|
|
|
512
526
|
color: #768e9c;
|
|
513
527
|
color: var(--color-content-tertiary);
|
|
514
528
|
}
|
|
529
|
+
.wds-list-item-spotlight {
|
|
530
|
+
padding-left: 12px;
|
|
531
|
+
padding-left: var(--size-12);
|
|
532
|
+
padding-right: 12px;
|
|
533
|
+
padding-right: var(--size-12);
|
|
534
|
+
}
|
|
515
535
|
.wds-list-item-spotlight-active {
|
|
516
536
|
background-color: rgba(134,167,189,0.10196);
|
|
517
537
|
background-color: var(--color-background-neutral);
|
|
@@ -524,8 +544,6 @@
|
|
|
524
544
|
}
|
|
525
545
|
.wds-list-item-spotlight-inactive {
|
|
526
546
|
background-color: rgba(134, 167, 189, 0.025);
|
|
527
|
-
border: 1px dashed rgba(0,0,0,0.10196);
|
|
528
|
-
border: 1px dashed var(--color-border-neutral);
|
|
529
547
|
}
|
|
530
548
|
@supports (color: color-mix(in lch, red, blue)) {
|
|
531
549
|
.wds-list-item-spotlight-inactive {
|
|
@@ -538,6 +556,34 @@
|
|
|
538
556
|
.wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
|
|
539
557
|
background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
|
|
540
558
|
}
|
|
559
|
+
.wds-list-item .wds-list-item-spotlight__border {
|
|
560
|
+
position: absolute;
|
|
561
|
+
inset: 0;
|
|
562
|
+
width: 100%;
|
|
563
|
+
height: 100%;
|
|
564
|
+
}
|
|
565
|
+
.wds-list-item .wds-list-item-spotlight__border rect {
|
|
566
|
+
--wds-list-item-spotlight-borderWidth: 1px;
|
|
567
|
+
--wds-list-item-spotlight-borderWidthOffset: 0.5px;
|
|
568
|
+
--wds-list-item-spotlight-strokeDashSize: calc(var(--size-12) * 0.5);
|
|
569
|
+
fill: none;
|
|
570
|
+
stroke: rgba(0,0,0,0.10196);
|
|
571
|
+
stroke: var(--color-border-neutral);
|
|
572
|
+
width: calc(100% - 1px);
|
|
573
|
+
width: calc(100% - var(--wds-list-item-spotlight-borderWidth));
|
|
574
|
+
height: calc(100% - 1px);
|
|
575
|
+
height: calc(100% - var(--wds-list-item-spotlight-borderWidth));
|
|
576
|
+
x: 0.5px;
|
|
577
|
+
x: var(--wds-list-item-spotlight-borderWidthOffset);
|
|
578
|
+
y: 0.5px;
|
|
579
|
+
y: var(--wds-list-item-spotlight-borderWidthOffset);
|
|
580
|
+
rx: calc(16px - 0.5px);
|
|
581
|
+
rx: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
|
|
582
|
+
ry: calc(16px - 0.5px);
|
|
583
|
+
ry: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
|
|
584
|
+
stroke-dasharray: calc(12px * 0.5) calc(12px * 0.5);
|
|
585
|
+
stroke-dasharray: var(--wds-list-item-spotlight-strokeDashSize) var(--wds-list-item-spotlight-strokeDashSize);
|
|
586
|
+
}
|
|
541
587
|
.wds-list-item-prompt {
|
|
542
588
|
grid-area: prompt;
|
|
543
589
|
display: inline-flex;
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
gap: 4px 16px;
|
|
6
6
|
gap: var(--size-4) var(--size-16);
|
|
7
7
|
}
|
|
8
|
-
@container (min-width:
|
|
8
|
+
@container (min-width: 380px) {
|
|
9
9
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
|
|
10
10
|
grid-template-columns: auto 1fr auto;
|
|
11
11
|
grid-template-rows: auto auto auto;
|
|
12
|
-
grid-template-areas: "media body control" "media info
|
|
12
|
+
grid-template-areas: "media body control" "media info control" "media prompt prompt";
|
|
13
13
|
}
|
|
14
14
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
|
|
15
15
|
grid-template-columns: auto 1fr auto;
|
|
16
16
|
grid-template-rows: auto auto;
|
|
17
|
-
grid-template-areas: "media body control" "media info
|
|
17
|
+
grid-template-areas: "media body control" "media info control";
|
|
18
18
|
}
|
|
19
19
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
|
|
20
20
|
grid-template-columns: auto 1fr auto;
|
|
21
21
|
grid-template-rows: auto auto;
|
|
22
|
-
grid-template-areas: "media body control" "
|
|
22
|
+
grid-template-areas: "media body control" "media prompt prompt";
|
|
23
23
|
}
|
|
24
24
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
|
|
25
25
|
grid-template-columns: auto 1fr auto;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
|
|
30
30
|
grid-template-columns: auto 1fr;
|
|
31
31
|
grid-template-rows: auto auto;
|
|
32
|
-
grid-template-areas: "media body" "media info" "
|
|
32
|
+
grid-template-areas: "media body" "media info" "media prompt";
|
|
33
33
|
}
|
|
34
34
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
|
|
35
35
|
grid-template-columns: auto 1fr;
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
.wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
|
|
53
53
|
grid-template-columns: 1fr auto;
|
|
54
54
|
grid-template-rows: auto auto auto;
|
|
55
|
-
grid-template-areas: "body control" "info
|
|
55
|
+
grid-template-areas: "body control" "info control" "prompt prompt";
|
|
56
56
|
}
|
|
57
57
|
.wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
|
|
58
58
|
grid-template-columns: 1fr auto;
|
|
59
59
|
grid-template-rows: auto auto;
|
|
60
|
-
grid-template-areas: "body control" "info
|
|
60
|
+
grid-template-areas: "body control" "info control";
|
|
61
61
|
}
|
|
62
62
|
.wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
|
|
63
63
|
grid-template-columns: 1fr auto;
|
|
@@ -93,14 +93,11 @@
|
|
|
93
93
|
grid-template-areas: "body";
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
@container (min-width:
|
|
96
|
+
@container (min-width: 290px) and (max-width: 380px) {
|
|
97
97
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media {
|
|
98
98
|
margin-bottom: 12px;
|
|
99
99
|
margin-bottom: var(--size-12);
|
|
100
100
|
}
|
|
101
|
-
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media .wds-list-item-media-image {
|
|
102
|
-
height: auto;
|
|
103
|
-
}
|
|
104
101
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
|
|
105
102
|
grid-template-columns: 1fr auto;
|
|
106
103
|
grid-template-rows: auto auto auto auto;
|
|
@@ -141,9 +138,6 @@
|
|
|
141
138
|
margin-bottom: 16px;
|
|
142
139
|
margin-bottom: var(--size-16);
|
|
143
140
|
}
|
|
144
|
-
.wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl .wds-list-item-media .wds-list-item-media-image {
|
|
145
|
-
height: auto;
|
|
146
|
-
}
|
|
147
141
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
|
|
148
142
|
grid-template-columns: auto auto;
|
|
149
143
|
grid-template-rows: auto auto auto auto;
|
|
@@ -227,7 +221,7 @@
|
|
|
227
221
|
grid-template-areas: "body";
|
|
228
222
|
}
|
|
229
223
|
}
|
|
230
|
-
@container (max-width:
|
|
224
|
+
@container (max-width: 290px) {
|
|
231
225
|
.wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
|
|
232
226
|
grid-template-columns: auto 1fr;
|
|
233
227
|
grid-template-rows: auto auto auto;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
display: grid;
|
|
4
4
|
gap: var(--size-4) var(--size-16);
|
|
5
5
|
|
|
6
|
-
@container (min-width:
|
|
6
|
+
@container (min-width: 380px) {
|
|
7
7
|
&.wds-list-item-hasMedia-hasControl {
|
|
8
8
|
&.wds-list-item-hasInfo-hasPrompt {
|
|
9
9
|
grid-template-columns: auto 1fr auto;
|
|
10
10
|
grid-template-rows: auto auto auto;
|
|
11
11
|
grid-template-areas:
|
|
12
12
|
"media body control"
|
|
13
|
-
"media info
|
|
14
|
-
"
|
|
13
|
+
"media info control"
|
|
14
|
+
"media prompt prompt";
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
&.wds-list-item-hasInfo-noPrompt {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
grid-template-rows: auto auto;
|
|
20
20
|
grid-template-areas:
|
|
21
21
|
"media body control"
|
|
22
|
-
"media info
|
|
22
|
+
"media info control"
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&.wds-list-item-noInfo-hasPrompt {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
grid-template-rows: auto auto;
|
|
28
28
|
grid-template-areas:
|
|
29
29
|
"media body control"
|
|
30
|
-
"
|
|
30
|
+
"media prompt prompt";
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&.wds-list-item-noInfo-noPrompt {
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
grid-template-areas:
|
|
46
46
|
"media body"
|
|
47
47
|
"media info"
|
|
48
|
-
"
|
|
48
|
+
"media prompt";
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
&.wds-list-item-hasInfo-noPrompt {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
grid-template-rows: auto auto auto;
|
|
54
54
|
grid-template-areas:
|
|
55
55
|
"media body"
|
|
56
|
-
"media info"
|
|
56
|
+
"media info"
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
&.wds-list-item-noInfo-hasPrompt {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
grid-template-rows: auto auto auto;
|
|
83
83
|
grid-template-areas:
|
|
84
84
|
"body control"
|
|
85
|
-
"info
|
|
85
|
+
"info control"
|
|
86
86
|
"prompt prompt";
|
|
87
87
|
}
|
|
88
88
|
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
grid-template-rows: auto auto;
|
|
92
92
|
grid-template-areas:
|
|
93
93
|
"body control"
|
|
94
|
-
"info
|
|
94
|
+
"info control"
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
&.wds-list-item-noInfo-hasPrompt {
|
|
@@ -149,14 +149,10 @@
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
-
@container (min-width:
|
|
152
|
+
@container (min-width: 290px) and (max-width: 380px) {
|
|
153
153
|
&.wds-list-item-hasMedia-hasControl {
|
|
154
154
|
.wds-list-item-media {
|
|
155
155
|
margin-bottom: var(--size-12);
|
|
156
|
-
|
|
157
|
-
.wds-list-item-media-image {
|
|
158
|
-
height: auto;
|
|
159
|
-
}
|
|
160
156
|
}
|
|
161
157
|
&.wds-list-item-hasInfo-hasPrompt {
|
|
162
158
|
grid-template-columns: 1fr auto;
|
|
@@ -232,12 +228,8 @@
|
|
|
232
228
|
}
|
|
233
229
|
|
|
234
230
|
&.wds-list-item-hasMedia-noControl {
|
|
235
|
-
|
|
231
|
+
.wds-list-item-media {
|
|
236
232
|
margin-bottom: var(--size-16);
|
|
237
|
-
|
|
238
|
-
.wds-list-item-media-image {
|
|
239
|
-
height: auto;
|
|
240
|
-
}
|
|
241
233
|
}
|
|
242
234
|
&.wds-list-item-hasInfo-hasPrompt {
|
|
243
235
|
grid-template-columns: auto auto;
|
|
@@ -254,7 +246,7 @@
|
|
|
254
246
|
grid-template-rows: auto auto auto;
|
|
255
247
|
grid-template-areas:
|
|
256
248
|
"media media"
|
|
257
|
-
"body body"
|
|
249
|
+
"body body"
|
|
258
250
|
"info info";
|
|
259
251
|
}
|
|
260
252
|
|
|
@@ -386,7 +378,7 @@
|
|
|
386
378
|
}
|
|
387
379
|
}
|
|
388
380
|
|
|
389
|
-
@container (max-width:
|
|
381
|
+
@container (max-width: 290px) {
|
|
390
382
|
&.wds-list-item-hasMedia-hasControl {
|
|
391
383
|
&.wds-list-item-hasInfo-hasPrompt {
|
|
392
384
|
grid-template-columns: auto 1fr;
|
|
@@ -469,7 +461,7 @@
|
|
|
469
461
|
grid-template-rows: auto auto auto;
|
|
470
462
|
grid-template-areas:
|
|
471
463
|
"body"
|
|
472
|
-
"info"
|
|
464
|
+
"info"
|
|
473
465
|
}
|
|
474
466
|
|
|
475
467
|
&.wds-list-item-noInfo-hasPrompt {
|