@transferwise/components 0.0.0-experimental-e1870f3 → 0.0.0-experimental-302d967

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.
Files changed (106) hide show
  1. package/build/flowNavigation/animatedLabel/AnimatedLabel.js +2 -2
  2. package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +1 -1
  3. package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs +2 -2
  4. package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs.map +1 -1
  5. package/build/index.js +2 -2
  6. package/build/index.mjs +1 -1
  7. package/build/{listItem → legacylistItem}/List.js +2 -3
  8. package/build/legacylistItem/List.js.map +1 -0
  9. package/build/{listItem → legacylistItem}/List.mjs +2 -3
  10. package/build/legacylistItem/List.mjs.map +1 -0
  11. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +2 -0
  12. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -1
  13. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +2 -0
  14. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -1
  15. package/build/listItem/AvatarView/ListItemAvatarView.js +2 -0
  16. package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -1
  17. package/build/listItem/AvatarView/ListItemAvatarView.mjs +2 -0
  18. package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -1
  19. package/build/listItem/Image/ListItemImage.js +6 -2
  20. package/build/listItem/Image/ListItemImage.js.map +1 -1
  21. package/build/listItem/Image/ListItemImage.mjs +6 -2
  22. package/build/listItem/Image/ListItemImage.mjs.map +1 -1
  23. package/build/listItem/ListItem.js +16 -14
  24. package/build/listItem/ListItem.js.map +1 -1
  25. package/build/listItem/ListItem.mjs +16 -14
  26. package/build/listItem/ListItem.mjs.map +1 -1
  27. package/build/listItem/ListItemContext.js.map +1 -1
  28. package/build/listItem/ListItemContext.mjs.map +1 -1
  29. package/build/listItem/Navigation/ListItemNavigation.js +1 -1
  30. package/build/listItem/Navigation/ListItemNavigation.js.map +1 -1
  31. package/build/listItem/Navigation/ListItemNavigation.mjs +1 -1
  32. package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -1
  33. package/build/listItem/_stories/images/landscape.svg +1 -0
  34. package/build/listItem/_stories/images/portrait.svg +1 -0
  35. package/build/listItem/useListItemMedia.js +21 -0
  36. package/build/listItem/useListItemMedia.js.map +1 -0
  37. package/build/listItem/useListItemMedia.mjs +19 -0
  38. package/build/listItem/useListItemMedia.mjs.map +1 -0
  39. package/build/main.css +64 -101
  40. package/build/styles/avatarView/AvatarView.css +1 -3
  41. package/build/styles/listItem/ListItem.css +63 -98
  42. package/build/styles/listItem/ListItem.grid.css +17 -11
  43. package/build/styles/main.css +64 -101
  44. package/build/types/index.d.ts +4 -4
  45. package/build/types/index.d.ts.map +1 -1
  46. package/build/types/legacylistItem/List.d.ts +6 -0
  47. package/build/types/legacylistItem/List.d.ts.map +1 -0
  48. package/build/types/legacylistItem/index.d.ts +2 -0
  49. package/build/types/legacylistItem/index.d.ts.map +1 -1
  50. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +1 -1
  51. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +1 -1
  52. package/build/types/listItem/Image/ListItemImage.d.ts +1 -1
  53. package/build/types/listItem/Image/ListItemImage.d.ts.map +1 -1
  54. package/build/types/listItem/ListItem.d.ts +1 -1
  55. package/build/types/listItem/ListItem.d.ts.map +1 -1
  56. package/build/types/listItem/ListItemContext.d.ts +4 -0
  57. package/build/types/listItem/ListItemContext.d.ts.map +1 -1
  58. package/build/types/listItem/index.d.ts +0 -2
  59. package/build/types/listItem/index.d.ts.map +1 -1
  60. package/build/types/listItem/test-utils.d.ts +7 -0
  61. package/build/types/listItem/test-utils.d.ts.map +1 -0
  62. package/build/types/listItem/useListItemMedia.d.ts +6 -0
  63. package/build/types/listItem/useListItemMedia.d.ts.map +1 -0
  64. package/package.json +1 -1
  65. package/src/avatarView/AvatarView.css +1 -3
  66. package/src/avatarView/AvatarView.less +1 -2
  67. package/src/flowNavigation/animatedLabel/AnimatedLabel.tsx +1 -1
  68. package/src/index.ts +4 -9
  69. package/src/legacylistItem/LegacyListItem.story.tsx +2 -2
  70. package/src/legacylistItem/LegacyListItem.tests.story.tsx +1 -2
  71. package/src/legacylistItem/List.tsx +10 -0
  72. package/src/legacylistItem/index.ts +2 -0
  73. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +4 -5
  74. package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +3 -0
  75. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +4 -5
  76. package/src/listItem/AvatarView/ListItemAvatarView.tsx +3 -0
  77. package/src/listItem/Button/ListItemButton.spec.tsx +10 -35
  78. package/src/listItem/Button/ListItemButton.story.tsx +8 -9
  79. package/src/listItem/IconButton/ListItemIconButton.story.tsx +8 -8
  80. package/src/listItem/Image/ListItemImage.spec.tsx +8 -5
  81. package/src/listItem/Image/ListItemImage.story.tsx +23 -6
  82. package/src/listItem/Image/ListItemImage.tsx +12 -4
  83. package/src/listItem/ListItem.css +63 -98
  84. package/src/listItem/ListItem.grid.css +17 -11
  85. package/src/listItem/ListItem.grid.less +24 -16
  86. package/src/listItem/ListItem.less +60 -113
  87. package/src/listItem/ListItem.tsx +24 -18
  88. package/src/listItem/ListItemContext.tsx +5 -0
  89. package/src/listItem/Navigation/ListItemNavigation.tsx +1 -1
  90. package/src/listItem/Prompt/ListItemPrompt.story.tsx +7 -7
  91. package/src/listItem/Switch/ListItemSwitch.story.tsx +2 -3
  92. package/src/listItem/_stories/ListItem.layout.test.story.tsx +142 -2
  93. package/src/listItem/_stories/ListItem.story.tsx +7 -45
  94. package/src/listItem/_stories/ListItem.variants.test.story.tsx +11 -7
  95. package/src/listItem/_stories/images/landscape.svg +1 -0
  96. package/src/listItem/_stories/images/portrait.svg +1 -0
  97. package/src/listItem/index.ts +0 -3
  98. package/src/listItem/test-utils.tsx +33 -0
  99. package/src/listItem/useListItemMedia.tsx +13 -0
  100. package/src/main.css +64 -101
  101. package/build/listItem/List.js.map +0 -1
  102. package/build/listItem/List.mjs.map +0 -1
  103. package/build/types/listItem/List.d.ts +0 -7
  104. package/build/types/listItem/List.d.ts.map +0 -1
  105. package/src/listItem/List.tsx +0 -11
  106. package/src/listItem/_stories/ListItem.scenarios.story.tsx +0 -226
package/build/main.css CHANGED
@@ -454,8 +454,7 @@
454
454
  right: 0;
455
455
  }
456
456
  .np-avatar-view .np-avatar-view-content {
457
- color: #37517e;
458
- color: var(--color-content-primary);
457
+ color: var(--color-interactive-primary);
459
458
  }
460
459
  .np-avatar-view-interactive {
461
460
  cursor: pointer;
@@ -463,7 +462,6 @@
463
462
  .np-avatar-view-interactive .np-circle {
464
463
  background-color: rgba(134,167,189,0.10196);
465
464
  background-color: var(--color-background-neutral);
466
- color: var(--color-interactive-primary);
467
465
  }
468
466
  .np-avatar-view-non-interactive .np-circle {
469
467
  background-color: transparent;
@@ -2642,21 +2640,21 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2642
2640
  gap: 4px 16px;
2643
2641
  gap: var(--size-4) var(--size-16);
2644
2642
  }
2645
- @container (min-width: 380px) {
2643
+ @container (min-width: 375px) {
2646
2644
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2647
2645
  grid-template-columns: auto 1fr auto;
2648
2646
  grid-template-rows: auto auto auto;
2649
- grid-template-areas: "media body control" "media info control" "media prompt prompt";
2647
+ grid-template-areas: "media body control" ". info ." ". prompt prompt";
2650
2648
  }
2651
2649
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2652
2650
  grid-template-columns: auto 1fr auto;
2653
2651
  grid-template-rows: auto auto;
2654
- grid-template-areas: "media body control" "media info control";
2652
+ grid-template-areas: "media body control" ". info .";
2655
2653
  }
2656
2654
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2657
2655
  grid-template-columns: auto 1fr auto;
2658
2656
  grid-template-rows: auto auto;
2659
- grid-template-areas: "media body control" "media prompt prompt";
2657
+ grid-template-areas: "media body control" ". prompt prompt";
2660
2658
  }
2661
2659
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
2662
2660
  grid-template-columns: auto 1fr auto;
@@ -2666,17 +2664,17 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2666
2664
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2667
2665
  grid-template-columns: auto 1fr;
2668
2666
  grid-template-rows: auto auto;
2669
- grid-template-areas: "media body" "media info" "media prompt";
2667
+ grid-template-areas: "media body" ". info" ". prompt";
2670
2668
  }
2671
2669
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
2672
2670
  grid-template-columns: auto 1fr;
2673
2671
  grid-template-rows: auto auto auto;
2674
- grid-template-areas: "media body" "media info";
2672
+ grid-template-areas: "media body" ". info";
2675
2673
  }
2676
2674
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-hasPrompt {
2677
2675
  grid-template-columns: auto 1fr;
2678
2676
  grid-template-rows: auto auto;
2679
- grid-template-areas: "media body" "media prompt";
2677
+ grid-template-areas: "media body" ". prompt";
2680
2678
  }
2681
2679
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-noPrompt {
2682
2680
  grid-template-columns: auto 1fr;
@@ -2689,12 +2687,12 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2689
2687
  .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2690
2688
  grid-template-columns: 1fr auto;
2691
2689
  grid-template-rows: auto auto auto;
2692
- grid-template-areas: "body control" "info control" "prompt prompt";
2690
+ grid-template-areas: "body control" "info ." "prompt prompt";
2693
2691
  }
2694
2692
  .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2695
2693
  grid-template-columns: 1fr auto;
2696
2694
  grid-template-rows: auto auto;
2697
- grid-template-areas: "body control" "info control";
2695
+ grid-template-areas: "body control" "info .";
2698
2696
  }
2699
2697
  .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2700
2698
  grid-template-columns: 1fr auto;
@@ -2730,11 +2728,14 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2730
2728
  grid-template-areas: "body";
2731
2729
  }
2732
2730
  }
2733
- @container (min-width: 290px) and (max-width: 380px) {
2731
+ @container (min-width: 297px) and (max-width: 375px) {
2734
2732
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media {
2735
2733
  margin-bottom: 12px;
2736
2734
  margin-bottom: var(--size-12);
2737
2735
  }
2736
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media .wds-list-item-media-image {
2737
+ height: auto;
2738
+ }
2738
2739
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2739
2740
  grid-template-columns: 1fr auto;
2740
2741
  grid-template-rows: auto auto auto auto;
@@ -2775,6 +2776,9 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2775
2776
  margin-bottom: 16px;
2776
2777
  margin-bottom: var(--size-16);
2777
2778
  }
2779
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl .wds-list-item-media .wds-list-item-media-image {
2780
+ height: auto;
2781
+ }
2778
2782
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2779
2783
  grid-template-columns: auto auto;
2780
2784
  grid-template-rows: auto auto auto auto;
@@ -2858,7 +2862,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2858
2862
  grid-template-areas: "body";
2859
2863
  }
2860
2864
  }
2861
- @container (max-width: 290px) {
2865
+ @container (max-width: 297px) {
2862
2866
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2863
2867
  grid-template-columns: auto 1fr;
2864
2868
  grid-template-rows: auto auto auto;
@@ -3005,8 +3009,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3005
3009
  background-color: #ffffff;
3006
3010
  background-color: var(--color-background-screen);
3007
3011
  position: relative;
3008
- padding: 12px 0;
3009
- padding: var(--size-12) 0;
3012
+ padding: 12px;
3013
+ padding: var(--size-12);
3010
3014
  container-type: inline-size;
3011
3015
  }
3012
3016
  .wds-list-item + .wds-list-item-spotlight,
@@ -3040,6 +3044,12 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3040
3044
  .wds-list-item-interactive .np-checkbox-button:has(input[type="checkbox"]:focus-visible) .tw-checkbox-button {
3041
3045
  outline: none;
3042
3046
  }
3047
+ .wds-list-item-interactive:has(.wds-list-item-control:focus-visible),
3048
+ .wds-list-item-interactive:has(input[type="checkbox"]:focus-visible) {
3049
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
3050
+ outline-offset: var(--ring-outline-offset);
3051
+ outline-offset: -1px;
3052
+ }
3043
3053
  .wds-list-item-interactive .wds-list-item-additional-info {
3044
3054
  --ring-outline-offset: 0;
3045
3055
  }
@@ -3058,68 +3068,45 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3058
3068
  position: absolute;
3059
3069
  inset: 0;
3060
3070
  }
3061
- .wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-control:focus-visible),
3062
- .wds-list-item-interactive.wds-list-item-spotlight:has(input[type="checkbox"]:focus-visible) {
3063
- outline: var(--ring-outline-color) solid var(--ring-outline-width);
3064
- outline-offset: var(--ring-outline-offset);
3065
- outline-offset: -1px;
3066
- }
3067
- .wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):hover {
3071
+ .wds-list-item-interactive:not(.disabled):not(:disabled):hover {
3068
3072
  background-color: var(--color-background-screen-hover);
3069
3073
  }
3070
- .wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):active {
3071
- background-color: var(--color-background-screen-active);
3072
- }
3073
- .wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover {
3074
- background-color: transparent;
3075
- background-color: initial;
3076
- }
3077
- .wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-control:focus-visible):before,
3078
- .wds-list-item-interactive:not(.wds-list-item-spotlight):has(input[type="checkbox"]:focus-visible):before {
3079
- outline: var(--ring-outline-color) solid var(--ring-outline-width);
3080
- outline-offset: var(--ring-outline-offset);
3081
- content: '';
3082
- position: absolute;
3083
- inset: 0 -8px;
3084
- border-radius: 16px;
3085
- border-radius: var(--radius-medium);
3086
- outline-offset: -1px;
3087
- }
3088
- .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before,
3089
- .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
3090
- content: '';
3091
- position: absolute;
3092
- inset: 0 -8px;
3093
- border-radius: 16px;
3094
- border-radius: var(--radius-medium);
3095
- }
3096
- .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before {
3097
- background-color: var(--color-background-screen-hover);
3098
- }
3099
- .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
3100
- background-color: var(--color-background-screen-active);
3101
- }
3102
- .wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover:before {
3103
- background-color: transparent;
3104
- background-color: initial;
3105
- }
3106
3074
  .wds-list-item-interactive:not(.disabled):not(:disabled):hover .wds-list-item-control-wrapper .wds-Button {
3107
3075
  background-color: var(--Button-background-hover);
3108
3076
  color: var(--Button-color-hover);
3109
3077
  transition: none;
3110
3078
  }
3079
+ .wds-list-item-interactive:not(.disabled):not(:disabled):active {
3080
+ background-color: var(--color-background-screen-active);
3081
+ }
3111
3082
  .wds-list-item-interactive .wds-list-item-button-control .wds-Button {
3112
3083
  transition: none;
3113
3084
  }
3085
+ .wds-list-item-interactive:has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover {
3086
+ background-color: transparent;
3087
+ background-color: initial;
3088
+ }
3114
3089
  .wds-list-item-media {
3115
3090
  grid-area: media;
3091
+ display: flex;
3092
+ align-items: center;
3093
+ }
3094
+ .wds-list-item-media-image-wrapper {
3095
+ width: var(--wds-list-item-media-size);
3096
+ height: var(--wds-list-item-media-size);
3097
+ display: flex;
3098
+ align-items: center;
3099
+ justify-content: center;
3116
3100
  }
3117
3101
  .wds-list-item-media-image {
3118
- width: var(--item-media-image-size);
3119
- height: var(--item-media-image-size);
3102
+ width: 100%;
3103
+ height: 100%;
3104
+ -o-object-fit: contain;
3105
+ object-fit: contain;
3120
3106
  }
3121
3107
  .wds-list-item-body {
3122
3108
  grid-area: body;
3109
+ align-items: center;
3123
3110
  width: 100%;
3124
3111
  display: grid;
3125
3112
  grid-template-columns: 1fr max-content;
@@ -3130,11 +3117,18 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3130
3117
  gap: var(--size-16);
3131
3118
  word-break: break-word;
3132
3119
  }
3133
- .wds-list-item-title,
3134
- .wds-list-item-title-value {
3120
+ .wds-list-item-title {
3135
3121
  color: #37517e;
3136
3122
  color: var(--color-content-primary);
3137
3123
  }
3124
+ .wds-list-item-value {
3125
+ text-align: right;
3126
+ }
3127
+ .wds-list-item-body-center {
3128
+ display: flex;
3129
+ flex-direction: row;
3130
+ align-items: center;
3131
+ }
3138
3132
  .wds-list-item-additional-info {
3139
3133
  grid-area: info;
3140
3134
  color: #768e9c;
@@ -3142,12 +3136,13 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3142
3136
  margin-top: calc(4px * -1);
3143
3137
  margin-top: calc(var(--size-4) * -1);
3144
3138
  }
3145
- .wds-list-item-value {
3146
- align-items: end;
3147
- text-align: right;
3148
- }
3149
3139
  .wds-list-item-control-wrapper {
3150
3140
  grid-area: control;
3141
+ align-content: center;
3142
+ }
3143
+ .wds-list-item-navigation .tw-icon-chevron-right {
3144
+ color: #c9cbce;
3145
+ color: var(--color-interactive-secondary);
3151
3146
  }
3152
3147
  .wds-list-item-control {
3153
3148
  flex: 0 0 auto;
@@ -3163,12 +3158,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3163
3158
  color: #768e9c;
3164
3159
  color: var(--color-content-tertiary);
3165
3160
  }
3166
- .wds-list-item-spotlight {
3167
- padding-left: 12px;
3168
- padding-left: var(--size-12);
3169
- padding-right: 12px;
3170
- padding-right: var(--size-12);
3171
- }
3172
3161
  .wds-list-item-spotlight-active {
3173
3162
  background-color: rgba(134,167,189,0.10196);
3174
3163
  background-color: var(--color-background-neutral);
@@ -3181,6 +3170,8 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3181
3170
  }
3182
3171
  .wds-list-item-spotlight-inactive {
3183
3172
  background-color: rgba(134, 167, 189, 0.025);
3173
+ border: 1px dashed rgba(0,0,0,0.10196);
3174
+ border: 1px dashed var(--color-border-neutral);
3184
3175
  }
3185
3176
  @supports (color: color-mix(in lch, red, blue)) {
3186
3177
  .wds-list-item-spotlight-inactive {
@@ -3193,34 +3184,6 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
3193
3184
  .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
3194
3185
  background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
3195
3186
  }
3196
- .wds-list-item .wds-list-item-spotlight__border {
3197
- position: absolute;
3198
- inset: 0;
3199
- width: 100%;
3200
- height: 100%;
3201
- }
3202
- .wds-list-item .wds-list-item-spotlight__border rect {
3203
- --wds-list-item-spotlight-borderWidth: 1px;
3204
- --wds-list-item-spotlight-borderWidthOffset: 0.5px;
3205
- --wds-list-item-spotlight-strokeDashSize: calc(var(--size-12) * 0.5);
3206
- fill: none;
3207
- stroke: rgba(0,0,0,0.10196);
3208
- stroke: var(--color-border-neutral);
3209
- width: calc(100% - 1px);
3210
- width: calc(100% - var(--wds-list-item-spotlight-borderWidth));
3211
- height: calc(100% - 1px);
3212
- height: calc(100% - var(--wds-list-item-spotlight-borderWidth));
3213
- x: 0.5px;
3214
- x: var(--wds-list-item-spotlight-borderWidthOffset);
3215
- y: 0.5px;
3216
- y: var(--wds-list-item-spotlight-borderWidthOffset);
3217
- rx: calc(16px - 0.5px);
3218
- rx: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
3219
- ry: calc(16px - 0.5px);
3220
- ry: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
3221
- stroke-dasharray: calc(12px * 0.5) calc(12px * 0.5);
3222
- stroke-dasharray: var(--wds-list-item-spotlight-strokeDashSize) var(--wds-list-item-spotlight-strokeDashSize);
3223
- }
3224
3187
  .wds-list-item-prompt {
3225
3188
  grid-area: prompt;
3226
3189
  display: inline-flex;
@@ -19,8 +19,7 @@
19
19
  right: 0;
20
20
  }
21
21
  .np-avatar-view .np-avatar-view-content {
22
- color: #37517e;
23
- color: var(--color-content-primary);
22
+ color: var(--color-interactive-primary);
24
23
  }
25
24
  .np-avatar-view-interactive {
26
25
  cursor: pointer;
@@ -28,7 +27,6 @@
28
27
  .np-avatar-view-interactive .np-circle {
29
28
  background-color: rgba(134,167,189,0.10196);
30
29
  background-color: var(--color-background-neutral);
31
- color: var(--color-interactive-primary);
32
30
  }
33
31
  .np-avatar-view-non-interactive .np-circle {
34
32
  background-color: transparent;
@@ -5,21 +5,21 @@
5
5
  gap: 4px 16px;
6
6
  gap: var(--size-4) var(--size-16);
7
7
  }
8
- @container (min-width: 380px) {
8
+ @container (min-width: 375px) {
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 control" "media prompt prompt";
12
+ grid-template-areas: "media body control" ". info ." ". 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 control";
17
+ grid-template-areas: "media body control" ". info .";
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" "media prompt prompt";
22
+ grid-template-areas: "media body control" ". 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,17 +29,17 @@
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" "media prompt";
32
+ grid-template-areas: "media body" ". info" ". 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;
36
36
  grid-template-rows: auto auto auto;
37
- grid-template-areas: "media body" "media info";
37
+ grid-template-areas: "media body" ". info";
38
38
  }
39
39
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-hasPrompt {
40
40
  grid-template-columns: auto 1fr;
41
41
  grid-template-rows: auto auto;
42
- grid-template-areas: "media body" "media prompt";
42
+ grid-template-areas: "media body" ". prompt";
43
43
  }
44
44
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-noPrompt {
45
45
  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 control" "prompt prompt";
55
+ grid-template-areas: "body control" "info ." "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 control";
60
+ grid-template-areas: "body control" "info .";
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,11 +93,14 @@
93
93
  grid-template-areas: "body";
94
94
  }
95
95
  }
96
- @container (min-width: 290px) and (max-width: 380px) {
96
+ @container (min-width: 297px) and (max-width: 375px) {
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
+ }
101
104
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
102
105
  grid-template-columns: 1fr auto;
103
106
  grid-template-rows: auto auto auto auto;
@@ -138,6 +141,9 @@
138
141
  margin-bottom: 16px;
139
142
  margin-bottom: var(--size-16);
140
143
  }
144
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl .wds-list-item-media .wds-list-item-media-image {
145
+ height: auto;
146
+ }
141
147
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
142
148
  grid-template-columns: auto auto;
143
149
  grid-template-rows: auto auto auto auto;
@@ -221,7 +227,7 @@
221
227
  grid-template-areas: "body";
222
228
  }
223
229
  }
224
- @container (max-width: 290px) {
230
+ @container (max-width: 297px) {
225
231
  .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
226
232
  grid-template-columns: auto 1fr;
227
233
  grid-template-rows: auto auto auto;
@@ -368,8 +374,8 @@
368
374
  background-color: #ffffff;
369
375
  background-color: var(--color-background-screen);
370
376
  position: relative;
371
- padding: 12px 0;
372
- padding: var(--size-12) 0;
377
+ padding: 12px;
378
+ padding: var(--size-12);
373
379
  container-type: inline-size;
374
380
  }
375
381
  .wds-list-item + .wds-list-item-spotlight,
@@ -403,6 +409,12 @@
403
409
  .wds-list-item-interactive .np-checkbox-button:has(input[type="checkbox"]:focus-visible) .tw-checkbox-button {
404
410
  outline: none;
405
411
  }
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
+ }
406
418
  .wds-list-item-interactive .wds-list-item-additional-info {
407
419
  --ring-outline-offset: 0;
408
420
  }
@@ -421,68 +433,45 @@
421
433
  position: absolute;
422
434
  inset: 0;
423
435
  }
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 {
436
+ .wds-list-item-interactive:not(.disabled):not(:disabled):hover {
460
437
  background-color: var(--color-background-screen-hover);
461
438
  }
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
- }
469
439
  .wds-list-item-interactive:not(.disabled):not(:disabled):hover .wds-list-item-control-wrapper .wds-Button {
470
440
  background-color: var(--Button-background-hover);
471
441
  color: var(--Button-color-hover);
472
442
  transition: none;
473
443
  }
444
+ .wds-list-item-interactive:not(.disabled):not(:disabled):active {
445
+ background-color: var(--color-background-screen-active);
446
+ }
474
447
  .wds-list-item-interactive .wds-list-item-button-control .wds-Button {
475
448
  transition: none;
476
449
  }
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
+ }
477
454
  .wds-list-item-media {
478
455
  grid-area: media;
456
+ display: flex;
457
+ align-items: center;
458
+ }
459
+ .wds-list-item-media-image-wrapper {
460
+ width: var(--wds-list-item-media-size);
461
+ height: var(--wds-list-item-media-size);
462
+ display: flex;
463
+ align-items: center;
464
+ justify-content: center;
479
465
  }
480
466
  .wds-list-item-media-image {
481
- width: var(--item-media-image-size);
482
- height: var(--item-media-image-size);
467
+ width: 100%;
468
+ height: 100%;
469
+ -o-object-fit: contain;
470
+ object-fit: contain;
483
471
  }
484
472
  .wds-list-item-body {
485
473
  grid-area: body;
474
+ align-items: center;
486
475
  width: 100%;
487
476
  display: grid;
488
477
  grid-template-columns: 1fr max-content;
@@ -493,11 +482,18 @@
493
482
  gap: var(--size-16);
494
483
  word-break: break-word;
495
484
  }
496
- .wds-list-item-title,
497
- .wds-list-item-title-value {
485
+ .wds-list-item-title {
498
486
  color: #37517e;
499
487
  color: var(--color-content-primary);
500
488
  }
489
+ .wds-list-item-value {
490
+ text-align: right;
491
+ }
492
+ .wds-list-item-body-center {
493
+ display: flex;
494
+ flex-direction: row;
495
+ align-items: center;
496
+ }
501
497
  .wds-list-item-additional-info {
502
498
  grid-area: info;
503
499
  color: #768e9c;
@@ -505,12 +501,13 @@
505
501
  margin-top: calc(4px * -1);
506
502
  margin-top: calc(var(--size-4) * -1);
507
503
  }
508
- .wds-list-item-value {
509
- align-items: end;
510
- text-align: right;
511
- }
512
504
  .wds-list-item-control-wrapper {
513
505
  grid-area: control;
506
+ align-content: center;
507
+ }
508
+ .wds-list-item-navigation .tw-icon-chevron-right {
509
+ color: #c9cbce;
510
+ color: var(--color-interactive-secondary);
514
511
  }
515
512
  .wds-list-item-control {
516
513
  flex: 0 0 auto;
@@ -526,12 +523,6 @@
526
523
  color: #768e9c;
527
524
  color: var(--color-content-tertiary);
528
525
  }
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
- }
535
526
  .wds-list-item-spotlight-active {
536
527
  background-color: rgba(134,167,189,0.10196);
537
528
  background-color: var(--color-background-neutral);
@@ -544,6 +535,8 @@
544
535
  }
545
536
  .wds-list-item-spotlight-inactive {
546
537
  background-color: rgba(134, 167, 189, 0.025);
538
+ border: 1px dashed rgba(0,0,0,0.10196);
539
+ border: 1px dashed var(--color-border-neutral);
547
540
  }
548
541
  @supports (color: color-mix(in lch, red, blue)) {
549
542
  .wds-list-item-spotlight-inactive {
@@ -556,34 +549,6 @@
556
549
  .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
557
550
  background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
558
551
  }
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
- }
587
552
  .wds-list-item-prompt {
588
553
  grid-area: prompt;
589
554
  display: inline-flex;