@transferwise/components 46.103.1 → 46.105.0

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 (250) hide show
  1. package/build/header/Header.js +60 -43
  2. package/build/header/Header.js.map +1 -1
  3. package/build/header/Header.mjs +57 -43
  4. package/build/header/Header.mjs.map +1 -1
  5. package/build/i18n/cs.json +2 -0
  6. package/build/i18n/cs.json.js +2 -0
  7. package/build/i18n/cs.json.js.map +1 -1
  8. package/build/i18n/cs.json.mjs +2 -0
  9. package/build/i18n/cs.json.mjs.map +1 -1
  10. package/build/i18n/es.json +2 -0
  11. package/build/i18n/es.json.js +2 -0
  12. package/build/i18n/es.json.js.map +1 -1
  13. package/build/i18n/es.json.mjs +2 -0
  14. package/build/i18n/es.json.mjs.map +1 -1
  15. package/build/i18n/th.json +2 -0
  16. package/build/i18n/th.json.js +2 -0
  17. package/build/i18n/th.json.js.map +1 -1
  18. package/build/i18n/th.json.mjs +2 -0
  19. package/build/i18n/th.json.mjs.map +1 -1
  20. package/build/index.js +3 -1
  21. package/build/index.js.map +1 -1
  22. package/build/index.mjs +2 -1
  23. package/build/index.mjs.map +1 -1
  24. package/build/inputs/SelectInput.js +1 -1
  25. package/build/inputs/SelectInput.js.map +1 -1
  26. package/build/inputs/SelectInput.mjs +1 -1
  27. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js +56 -0
  28. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js.map +1 -0
  29. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +54 -0
  30. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +1 -0
  31. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +23 -0
  32. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -0
  33. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +21 -0
  34. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -0
  35. package/build/listItem/AvatarView/ListItemAvatarView.js +23 -0
  36. package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -0
  37. package/build/listItem/AvatarView/ListItemAvatarView.mjs +21 -0
  38. package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -0
  39. package/build/listItem/Button/ListItemButton.js +43 -0
  40. package/build/listItem/Button/ListItemButton.js.map +1 -0
  41. package/build/listItem/Button/ListItemButton.mjs +41 -0
  42. package/build/listItem/Button/ListItemButton.mjs.map +1 -0
  43. package/build/listItem/Checkbox/ListItemCheckbox.js +30 -0
  44. package/build/listItem/Checkbox/ListItemCheckbox.js.map +1 -0
  45. package/build/listItem/Checkbox/ListItemCheckbox.mjs +28 -0
  46. package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +1 -0
  47. package/build/listItem/IconButton/ListItemIconButton.js +56 -0
  48. package/build/listItem/IconButton/ListItemIconButton.js.map +1 -0
  49. package/build/listItem/IconButton/ListItemIconButton.mjs +54 -0
  50. package/build/listItem/IconButton/ListItemIconButton.mjs.map +1 -0
  51. package/build/listItem/Image/ListItemImage.js +31 -0
  52. package/build/listItem/Image/ListItemImage.js.map +1 -0
  53. package/build/listItem/Image/ListItemImage.mjs +29 -0
  54. package/build/listItem/Image/ListItemImage.mjs.map +1 -0
  55. package/build/listItem/ListItem.js +311 -0
  56. package/build/listItem/ListItem.js.map +1 -0
  57. package/build/listItem/ListItem.mjs +306 -0
  58. package/build/listItem/ListItem.mjs.map +1 -0
  59. package/build/listItem/ListItemContext.js +8 -0
  60. package/build/listItem/ListItemContext.js.map +1 -0
  61. package/build/listItem/ListItemContext.mjs +6 -0
  62. package/build/listItem/ListItemContext.mjs.map +1 -0
  63. package/build/listItem/Navigation/ListItemNavigation.js +44 -0
  64. package/build/listItem/Navigation/ListItemNavigation.js.map +1 -0
  65. package/build/listItem/Navigation/ListItemNavigation.mjs +42 -0
  66. package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -0
  67. package/build/listItem/Prompt/ListItemPrompt.js +59 -0
  68. package/build/listItem/Prompt/ListItemPrompt.js.map +1 -0
  69. package/build/listItem/Prompt/ListItemPrompt.mjs +54 -0
  70. package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -0
  71. package/build/listItem/Radio/ListItemRadio.js +30 -0
  72. package/build/listItem/Radio/ListItemRadio.js.map +1 -0
  73. package/build/listItem/Radio/ListItemRadio.mjs +28 -0
  74. package/build/listItem/Radio/ListItemRadio.mjs.map +1 -0
  75. package/build/listItem/Switch/ListItemSwitch.js +30 -0
  76. package/build/listItem/Switch/ListItemSwitch.js.map +1 -0
  77. package/build/listItem/Switch/ListItemSwitch.mjs +28 -0
  78. package/build/listItem/Switch/ListItemSwitch.mjs.map +1 -0
  79. package/build/listItem/useListItemControl.js +22 -0
  80. package/build/listItem/useListItemControl.js.map +1 -0
  81. package/build/listItem/useListItemControl.mjs +20 -0
  82. package/build/listItem/useListItemControl.mjs.map +1 -0
  83. package/build/listItem/useListItemMedia.js +21 -0
  84. package/build/listItem/useListItemMedia.js.map +1 -0
  85. package/build/listItem/useListItemMedia.mjs +19 -0
  86. package/build/listItem/useListItemMedia.mjs.map +1 -0
  87. package/build/main.css +794 -14
  88. package/build/styles/header/Header.css +21 -14
  89. package/build/styles/listItem/ListItem.css +773 -0
  90. package/build/styles/listItem/ListItem.grid.css +370 -0
  91. package/build/styles/listItem/Prompt/ListItemPrompt.css +157 -0
  92. package/build/styles/main.css +794 -14
  93. package/build/title/Title.js +10 -4
  94. package/build/title/Title.js.map +1 -1
  95. package/build/title/Title.mjs +6 -4
  96. package/build/title/Title.mjs.map +1 -1
  97. package/build/types/header/Header.d.ts +27 -11
  98. package/build/types/header/Header.d.ts.map +1 -1
  99. package/build/types/header/index.d.ts +1 -0
  100. package/build/types/header/index.d.ts.map +1 -1
  101. package/build/types/index.d.ts +3 -0
  102. package/build/types/index.d.ts.map +1 -1
  103. package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts +15 -0
  104. package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts.map +1 -0
  105. package/build/types/listItem/AdditionalInfo/index.d.ts +3 -0
  106. package/build/types/listItem/AdditionalInfo/index.d.ts.map +1 -0
  107. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts +18 -0
  108. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +1 -0
  109. package/build/types/listItem/AvatarLayout/index.d.ts +3 -0
  110. package/build/types/listItem/AvatarLayout/index.d.ts.map +1 -0
  111. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts +16 -0
  112. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +1 -0
  113. package/build/types/listItem/AvatarView/index.d.ts +3 -0
  114. package/build/types/listItem/AvatarView/index.d.ts.map +1 -0
  115. package/build/types/listItem/Button/ListItemButton.d.ts +20 -0
  116. package/build/types/listItem/Button/ListItemButton.d.ts.map +1 -0
  117. package/build/types/listItem/Button/index.d.ts +3 -0
  118. package/build/types/listItem/Button/index.d.ts.map +1 -0
  119. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts +14 -0
  120. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts.map +1 -0
  121. package/build/types/listItem/Checkbox/index.d.ts +3 -0
  122. package/build/types/listItem/Checkbox/index.d.ts.map +1 -0
  123. package/build/types/listItem/IconButton/ListItemIconButton.d.ts +18 -0
  124. package/build/types/listItem/IconButton/ListItemIconButton.d.ts.map +1 -0
  125. package/build/types/listItem/IconButton/index.d.ts +3 -0
  126. package/build/types/listItem/IconButton/index.d.ts.map +1 -0
  127. package/build/types/listItem/Image/ListItemImage.d.ts +25 -0
  128. package/build/types/listItem/Image/ListItemImage.d.ts.map +1 -0
  129. package/build/types/listItem/Image/index.d.ts +3 -0
  130. package/build/types/listItem/Image/index.d.ts.map +1 -0
  131. package/build/types/listItem/ListItem.d.ts +111 -0
  132. package/build/types/listItem/ListItem.d.ts.map +1 -0
  133. package/build/types/listItem/ListItemContext.d.ts +21 -0
  134. package/build/types/listItem/ListItemContext.d.ts.map +1 -0
  135. package/build/types/listItem/Navigation/ListItemNavigation.d.ts +15 -0
  136. package/build/types/listItem/Navigation/ListItemNavigation.d.ts.map +1 -0
  137. package/build/types/listItem/Navigation/index.d.ts +3 -0
  138. package/build/types/listItem/Navigation/index.d.ts.map +1 -0
  139. package/build/types/listItem/Prompt/ListItemPrompt.d.ts +16 -0
  140. package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +1 -0
  141. package/build/types/listItem/Prompt/index.d.ts +3 -0
  142. package/build/types/listItem/Prompt/index.d.ts.map +1 -0
  143. package/build/types/listItem/Radio/ListItemRadio.d.ts +14 -0
  144. package/build/types/listItem/Radio/ListItemRadio.d.ts.map +1 -0
  145. package/build/types/listItem/Radio/index.d.ts +3 -0
  146. package/build/types/listItem/Radio/index.d.ts.map +1 -0
  147. package/build/types/listItem/Switch/ListItemSwitch.d.ts +14 -0
  148. package/build/types/listItem/Switch/ListItemSwitch.d.ts.map +1 -0
  149. package/build/types/listItem/Switch/index.d.ts +3 -0
  150. package/build/types/listItem/Switch/index.d.ts.map +1 -0
  151. package/build/types/listItem/_stories/helpers.d.ts +27 -0
  152. package/build/types/listItem/_stories/helpers.d.ts.map +1 -0
  153. package/build/types/listItem/_stories/subcomponents.d.ts +18 -0
  154. package/build/types/listItem/_stories/subcomponents.d.ts.map +1 -0
  155. package/build/types/listItem/index.d.ts +14 -0
  156. package/build/types/listItem/index.d.ts.map +1 -0
  157. package/build/types/listItem/test-utils.d.ts +7 -0
  158. package/build/types/listItem/test-utils.d.ts.map +1 -0
  159. package/build/types/listItem/useListItemControl.d.ts +5 -0
  160. package/build/types/listItem/useListItemControl.d.ts.map +1 -0
  161. package/build/types/listItem/useListItemMedia.d.ts +6 -0
  162. package/build/types/listItem/useListItemMedia.d.ts.map +1 -0
  163. package/build/types/title/Title.d.ts +4 -5
  164. package/build/types/title/Title.d.ts.map +1 -1
  165. package/package.json +3 -3
  166. package/src/button/Button.spec.tsx +25 -1
  167. package/src/button/Button.story.tsx +1 -0
  168. package/src/header/Header.accessibility.docs.mdx +85 -0
  169. package/src/header/Header.css +21 -14
  170. package/src/header/Header.less +17 -10
  171. package/src/header/Header.spec.tsx +68 -50
  172. package/src/header/Header.story.tsx +190 -36
  173. package/src/header/Header.tsx +96 -65
  174. package/src/header/index.ts +1 -0
  175. package/src/i18n/cs.json +2 -0
  176. package/src/i18n/es.json +2 -0
  177. package/src/i18n/th.json +2 -0
  178. package/src/iconButton/iconButton.spec.tsx +31 -0
  179. package/src/index.ts +16 -0
  180. package/src/legacylistItem/LegacyListItem.story.tsx +1 -1
  181. package/src/legacylistItem/LegacyListItem.tests.story.tsx +2 -1
  182. package/src/list/List.story.tsx +13 -3
  183. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.spec.tsx +56 -0
  184. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +198 -0
  185. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.tsx +36 -0
  186. package/src/listItem/AdditionalInfo/index.ts +2 -0
  187. package/src/listItem/AvatarLayout/ListItemAvatarLayout.spec.tsx +59 -0
  188. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +124 -0
  189. package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +27 -0
  190. package/src/listItem/AvatarLayout/index.ts +2 -0
  191. package/src/listItem/AvatarView/ListItemAvatarView.spec.tsx +75 -0
  192. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +339 -0
  193. package/src/listItem/AvatarView/ListItemAvatarView.tsx +27 -0
  194. package/src/listItem/AvatarView/index.ts +2 -0
  195. package/src/listItem/Button/ListItemButton.spec.tsx +90 -0
  196. package/src/listItem/Button/ListItemButton.story.tsx +473 -0
  197. package/src/listItem/Button/ListItemButton.tsx +56 -0
  198. package/src/listItem/Button/index.ts +2 -0
  199. package/src/listItem/Checkbox/ListItemCheckbox.spec.tsx +82 -0
  200. package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +128 -0
  201. package/src/listItem/Checkbox/ListItemCheckbox.tsx +33 -0
  202. package/src/listItem/Checkbox/index.ts +2 -0
  203. package/src/listItem/IconButton/ListItemIconButton.spec.tsx +131 -0
  204. package/src/listItem/IconButton/ListItemIconButton.story.tsx +284 -0
  205. package/src/listItem/IconButton/ListItemIconButton.tsx +73 -0
  206. package/src/listItem/IconButton/index.ts +2 -0
  207. package/src/listItem/Image/ListItemImage.spec.tsx +30 -0
  208. package/src/listItem/Image/ListItemImage.story.tsx +80 -0
  209. package/src/listItem/Image/ListItemImage.tsx +46 -0
  210. package/src/listItem/Image/index.ts +2 -0
  211. package/src/listItem/ListItem.css +773 -0
  212. package/src/listItem/ListItem.grid.css +370 -0
  213. package/src/listItem/ListItem.grid.less +622 -0
  214. package/src/listItem/ListItem.less +291 -0
  215. package/src/listItem/ListItem.spec.tsx +1511 -0
  216. package/src/listItem/ListItem.tsx +440 -0
  217. package/src/listItem/ListItemContext.tsx +26 -0
  218. package/src/listItem/Navigation/ListItemNavigation.spec.tsx +67 -0
  219. package/src/listItem/Navigation/ListItemNavigation.story.tsx +114 -0
  220. package/src/listItem/Navigation/ListItemNavigation.tsx +39 -0
  221. package/src/listItem/Navigation/index.ts +2 -0
  222. package/src/listItem/Prompt/ListItemPrompt.css +157 -0
  223. package/src/listItem/Prompt/ListItemPrompt.less +134 -0
  224. package/src/listItem/Prompt/ListItemPrompt.spec.tsx +36 -0
  225. package/src/listItem/Prompt/ListItemPrompt.story.tsx +204 -0
  226. package/src/listItem/Prompt/ListItemPrompt.tsx +32 -0
  227. package/src/listItem/Prompt/index.ts +2 -0
  228. package/src/listItem/Radio/ListItemRadio.spec.tsx +66 -0
  229. package/src/listItem/Radio/ListItemRadio.story.tsx +111 -0
  230. package/src/listItem/Radio/ListItemRadio.tsx +33 -0
  231. package/src/listItem/Radio/index.ts +2 -0
  232. package/src/listItem/Switch/ListItemSwitch.spec.tsx +47 -0
  233. package/src/listItem/Switch/ListItemSwitch.story.tsx +79 -0
  234. package/src/listItem/Switch/ListItemSwitch.tsx +33 -0
  235. package/src/listItem/Switch/index.ts +2 -0
  236. package/src/listItem/_stories/ListItem.focus.test.story.tsx +265 -0
  237. package/src/listItem/_stories/ListItem.layout.test.story.tsx +374 -0
  238. package/src/listItem/_stories/ListItem.scenarios.story.tsx +228 -0
  239. package/src/listItem/_stories/ListItem.story.tsx +774 -0
  240. package/src/listItem/_stories/ListItem.variants.test.story.tsx +274 -0
  241. package/src/listItem/_stories/helpers.tsx +53 -0
  242. package/src/listItem/_stories/subcomponents.tsx +141 -0
  243. package/src/listItem/index.ts +14 -0
  244. package/src/listItem/test-utils.tsx +33 -0
  245. package/src/listItem/useListItemControl.tsx +18 -0
  246. package/src/listItem/useListItemMedia.tsx +16 -0
  247. package/src/main.css +794 -14
  248. package/src/main.less +1 -0
  249. package/src/primitives/PrimitiveAnchor/test/PrimitiveAnchor.spec.tsx +15 -4
  250. package/src/title/Title.tsx +25 -12
package/build/main.css CHANGED
@@ -2433,30 +2433,37 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2433
2433
  fill: var(--color-interactive-primary);
2434
2434
  }
2435
2435
  .np-header {
2436
- display: flex;
2437
- justify-content: space-between;
2438
- align-items: flex-end;
2436
+ display: grid;
2437
+ grid-template-columns: 1fr auto;
2438
+ grid-column-gap: 24px;
2439
+ grid-column-gap: var(--size-24);
2440
+ -moz-column-gap: 24px;
2441
+ column-gap: 24px;
2442
+ -moz-column-gap: var(--size-24);
2443
+ column-gap: var(--size-24);
2444
+ align-items: center;
2445
+ margin-bottom: 8px;
2446
+ margin-bottom: var(--size-8);
2439
2447
  max-width: 100%;
2440
2448
  padding: 8px 0;
2441
2449
  padding: var(--size-8) 0;
2450
+ width: 100%;
2451
+ }
2452
+ .np-header--group {
2453
+ align-items: flex-end;
2442
2454
  border-bottom: 1px solid rgba(0,0,0,0.10196);
2443
2455
  border-bottom: 1px solid var(--color-border-neutral);
2444
- margin-bottom: 8px;
2445
- margin-bottom: var(--size-8);
2446
- -moz-column-gap: 24px;
2447
- column-gap: 24px;
2448
- -moz-column-gap: var(--size-24);
2449
- column-gap: var(--size-24);
2450
2456
  }
2451
2457
  .np-header__title {
2452
2458
  color: #5d7079;
2453
2459
  color: var(--color-content-secondary);
2460
+ margin: 0;
2454
2461
  }
2455
- .np-header__button {
2456
- margin-inline: calc(16px * -1);
2457
- margin-inline: calc(var(--size-16) * -1);
2458
- margin-bottom: calc(4px * -1);
2459
- margin-bottom: calc(var(--size-4) * -1);
2462
+ .np-header__action {
2463
+ margin: 0;
2464
+ height: 20px;
2465
+ display: flex;
2466
+ align-items: center;
2460
2467
  }
2461
2468
  .tw-image {
2462
2469
  max-width: none;
@@ -2635,6 +2642,779 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2635
2642
  border-radius: 9999px !important;
2636
2643
  border-radius: var(--radius-full) !important;
2637
2644
  }
2645
+ .wds-list-item-gridWrapper {
2646
+ display: grid;
2647
+ grid-gap: 4px 16px;
2648
+ grid-gap: var(--size-4) var(--size-16);
2649
+ gap: 4px 16px;
2650
+ gap: var(--size-4) var(--size-16);
2651
+ }
2652
+ @container (min-width: 375px) {
2653
+ .wds-list-item-gridWrapper .wds-list-item-media-image {
2654
+ -o-object-position: center;
2655
+ object-position: center;
2656
+ }
2657
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2658
+ grid-template-columns: auto 1fr auto;
2659
+ grid-template-rows: auto auto auto;
2660
+ grid-template-areas: "media body control" ". info ." ". prompt prompt";
2661
+ }
2662
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2663
+ grid-template-columns: auto 1fr auto;
2664
+ grid-template-rows: auto auto;
2665
+ grid-template-areas: "media body control" ". info .";
2666
+ }
2667
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2668
+ grid-template-columns: auto 1fr auto;
2669
+ grid-template-rows: auto auto;
2670
+ grid-template-areas: "media body control" ". prompt prompt";
2671
+ }
2672
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
2673
+ grid-template-columns: auto 1fr auto;
2674
+ grid-template-rows: auto;
2675
+ grid-template-areas: "media body control";
2676
+ }
2677
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2678
+ grid-template-columns: auto 1fr;
2679
+ grid-template-rows: auto auto;
2680
+ grid-template-areas: "media body" ". info" ". prompt";
2681
+ }
2682
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
2683
+ grid-template-columns: auto 1fr;
2684
+ grid-template-rows: auto auto auto;
2685
+ grid-template-areas: "media body" ". info";
2686
+ }
2687
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-hasPrompt {
2688
+ grid-template-columns: auto 1fr;
2689
+ grid-template-rows: auto auto;
2690
+ grid-template-areas: "media body" ". prompt";
2691
+ }
2692
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-noPrompt {
2693
+ grid-template-columns: auto 1fr;
2694
+ grid-template-rows: auto;
2695
+ grid-template-areas: "media body";
2696
+ }
2697
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl .wds-list-item-prompt {
2698
+ grid-column: 1 / -1;
2699
+ }
2700
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2701
+ grid-template-columns: 1fr auto;
2702
+ grid-template-rows: auto auto auto;
2703
+ grid-template-areas: "body control" "info ." "prompt prompt";
2704
+ }
2705
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2706
+ grid-template-columns: 1fr auto;
2707
+ grid-template-rows: auto auto;
2708
+ grid-template-areas: "body control" "info .";
2709
+ }
2710
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2711
+ grid-template-columns: 1fr auto;
2712
+ grid-template-rows: auto auto;
2713
+ grid-template-areas: "body control" "prompt prompt";
2714
+ }
2715
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt {
2716
+ grid-template-columns: 1fr auto;
2717
+ grid-template-rows: auto;
2718
+ grid-template-areas: "body control";
2719
+ }
2720
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl .wds-list-item-prompt {
2721
+ grid-column: 1 / -1;
2722
+ }
2723
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2724
+ grid-template-columns: 1fr;
2725
+ grid-template-rows: auto auto auto;
2726
+ grid-template-areas: "body" "info" "prompt";
2727
+ }
2728
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-noPrompt {
2729
+ grid-template-columns: 1fr;
2730
+ grid-template-rows: auto auto;
2731
+ grid-template-areas: "body" "info";
2732
+ }
2733
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-hasPrompt {
2734
+ grid-template-columns: 1fr;
2735
+ grid-template-rows: auto auto;
2736
+ grid-template-areas: "body" "prompt";
2737
+ }
2738
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-noPrompt {
2739
+ grid-template-columns: 1fr;
2740
+ grid-template-rows: auto;
2741
+ grid-template-areas: "body";
2742
+ }
2743
+ }
2744
+ @container (min-width: 297px) and (max-width: 375px) {
2745
+ .wds-list-item-gridWrapper .wds-list-item-media-image {
2746
+ -o-object-position: bottom left;
2747
+ object-position: bottom left;
2748
+ }
2749
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media {
2750
+ margin-bottom: 12px;
2751
+ margin-bottom: var(--size-12);
2752
+ }
2753
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2754
+ grid-template-columns: 1fr auto;
2755
+ grid-template-rows: auto auto auto auto;
2756
+ grid-template-areas: "media media" "body control" "info control" "prompt prompt";
2757
+ }
2758
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt:has(.wds-list-item-button-control) {
2759
+ grid-template-columns: 1fr;
2760
+ grid-template-areas: "media" "body" "info" "prompt" "control";
2761
+ }
2762
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2763
+ grid-template-columns: 1fr auto;
2764
+ grid-template-rows: auto auto auto;
2765
+ grid-template-areas: "media media" "body control" "info control";
2766
+ }
2767
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt:has(.wds-list-item-button-control) {
2768
+ grid-template-columns: 1fr;
2769
+ grid-template-areas: "media" "body" "info" "control";
2770
+ }
2771
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2772
+ grid-template-columns: 1fr auto;
2773
+ grid-template-rows: auto auto auto;
2774
+ grid-template-areas: "media media" "body control" "prompt prompt";
2775
+ }
2776
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt:has(.wds-list-item-button-control) {
2777
+ grid-template-columns: 1fr;
2778
+ grid-template-areas: "media" "body" "prompt" "control";
2779
+ }
2780
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
2781
+ grid-template-columns: 1fr auto;
2782
+ grid-template-rows: auto auto;
2783
+ grid-template-areas: "media media" "body control";
2784
+ }
2785
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt:has(.wds-list-item-button-control) {
2786
+ grid-template-columns: 1fr;
2787
+ grid-template-areas: "media" "body" "control";
2788
+ }
2789
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl .wds-list-item-media {
2790
+ margin-bottom: 12px;
2791
+ margin-bottom: var(--size-12);
2792
+ }
2793
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2794
+ grid-template-columns: auto auto;
2795
+ grid-template-rows: auto auto auto auto;
2796
+ grid-template-areas: "media media" "body body" "info info" "prompt prompt";
2797
+ }
2798
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
2799
+ grid-template-columns: auto 1fr;
2800
+ grid-template-rows: auto auto auto;
2801
+ grid-template-areas: "media media" "body body" "info info";
2802
+ }
2803
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-hasPrompt {
2804
+ grid-template-columns: auto 1fr;
2805
+ grid-template-rows: auto auto auto;
2806
+ grid-template-areas: "media media" "body body" "prompt prompt";
2807
+ }
2808
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-noPrompt {
2809
+ grid-template-columns: 1fr;
2810
+ grid-template-rows: auto auto;
2811
+ grid-template-areas: "media" "body";
2812
+ }
2813
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl .wds-list-item-prompt {
2814
+ grid-column: 1 / -1;
2815
+ }
2816
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2817
+ grid-template-columns: 1fr auto;
2818
+ grid-template-rows: auto auto auto;
2819
+ grid-template-areas: "body control" "info control" "prompt prompt";
2820
+ }
2821
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt:has(.wds-list-item-button-control) {
2822
+ grid-template-columns: 1fr;
2823
+ grid-template-areas: "body" "info" "prompt" "control";
2824
+ }
2825
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2826
+ grid-template-columns: 1fr auto;
2827
+ grid-template-rows: auto auto;
2828
+ grid-template-areas: "body control" "info control";
2829
+ }
2830
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt:has(.wds-list-item-button-control) {
2831
+ grid-template-columns: 1fr;
2832
+ grid-template-areas: "body" "info" "control";
2833
+ }
2834
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2835
+ grid-template-columns: 1fr auto;
2836
+ grid-template-rows: auto auto;
2837
+ grid-template-areas: "body control" "prompt prompt";
2838
+ }
2839
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt:has(.wds-list-item-button-control) {
2840
+ grid-template-columns: 1fr;
2841
+ grid-template-areas: "body" "prompt" "control";
2842
+ }
2843
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt {
2844
+ grid-template-columns: 1fr auto;
2845
+ grid-template-rows: auto;
2846
+ grid-template-areas: "body control";
2847
+ }
2848
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt:has(.wds-list-item-button-control) {
2849
+ grid-template-columns: 1fr;
2850
+ grid-template-areas: "body" "control";
2851
+ }
2852
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl .wds-list-item-prompt {
2853
+ grid-column: 1 / -1;
2854
+ }
2855
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2856
+ grid-template-columns: 1fr;
2857
+ grid-template-rows: auto auto auto;
2858
+ grid-template-areas: "body" "info" "prompt";
2859
+ }
2860
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-noPrompt {
2861
+ grid-template-columns: 1fr;
2862
+ grid-template-rows: auto auto;
2863
+ grid-template-areas: "body" "info";
2864
+ }
2865
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-hasPrompt {
2866
+ grid-template-columns: 1fr;
2867
+ grid-template-rows: auto auto;
2868
+ grid-template-areas: "body" "prompt";
2869
+ }
2870
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-noPrompt {
2871
+ grid-template-columns: 1fr;
2872
+ grid-template-rows: auto;
2873
+ grid-template-areas: "body";
2874
+ }
2875
+ }
2876
+ @container (max-width: 297px) {
2877
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2878
+ grid-template-columns: auto 1fr;
2879
+ grid-template-rows: auto auto auto;
2880
+ grid-template-areas: "body control" "info control" "prompt prompt";
2881
+ }
2882
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt:has(.wds-list-item-button-control) {
2883
+ grid-template-columns: 1fr;
2884
+ grid-template-rows: auto;
2885
+ grid-template-areas: "body" "info" "prompt" "control";
2886
+ }
2887
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2888
+ grid-template-columns: auto 1fr;
2889
+ grid-template-rows: auto auto;
2890
+ grid-template-areas: "body control" "info control";
2891
+ }
2892
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt:has(.wds-list-item-button-control) {
2893
+ grid-template-columns: 1fr;
2894
+ grid-template-areas: "body" "info" "control";
2895
+ }
2896
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2897
+ grid-template-columns: auto 1fr;
2898
+ grid-template-rows: auto auto;
2899
+ grid-template-areas: "body control" "prompt prompt";
2900
+ }
2901
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt:has(.wds-list-item-button-control) {
2902
+ grid-template-columns: 1fr;
2903
+ grid-template-areas: "body" "prompt" "control";
2904
+ }
2905
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
2906
+ grid-template-columns: auto 1fr;
2907
+ grid-template-rows: auto;
2908
+ grid-template-areas: "body control";
2909
+ }
2910
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt:has(.wds-list-item-button-control) {
2911
+ grid-template-columns: 1fr;
2912
+ grid-template-areas: "body" "control";
2913
+ }
2914
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2915
+ grid-template-columns: auto;
2916
+ grid-template-rows: auto auto;
2917
+ grid-template-areas: "body" "info" "prompt";
2918
+ }
2919
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
2920
+ grid-template-columns: auto;
2921
+ grid-template-rows: auto auto auto;
2922
+ grid-template-areas: "body" "info";
2923
+ }
2924
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-hasPrompt {
2925
+ grid-template-columns: auto;
2926
+ grid-template-rows: auto auto;
2927
+ grid-template-areas: "body" "prompt";
2928
+ }
2929
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-noPrompt {
2930
+ grid-template-columns: 1fr;
2931
+ grid-template-rows: auto;
2932
+ grid-template-areas: "body";
2933
+ }
2934
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl .wds-list-item-prompt {
2935
+ grid-column: 1 / -1;
2936
+ }
2937
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
2938
+ grid-template-columns: 1fr auto;
2939
+ grid-template-rows: auto auto auto;
2940
+ grid-template-areas: "body control" "info control" "prompt prompt";
2941
+ }
2942
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt:has(.wds-list-item-button-control) {
2943
+ grid-template-columns: 1fr;
2944
+ grid-template-rows: auto;
2945
+ grid-template-areas: "body" "info" "prompt" "control";
2946
+ }
2947
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
2948
+ grid-template-columns: 1fr auto;
2949
+ grid-template-rows: auto auto;
2950
+ grid-template-areas: "body control" "info control";
2951
+ }
2952
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt:has(.wds-list-item-button-control) {
2953
+ grid-template-columns: 1fr;
2954
+ grid-template-rows: auto;
2955
+ grid-template-areas: "body" "info" "control";
2956
+ }
2957
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
2958
+ grid-template-columns: 1fr auto;
2959
+ grid-template-rows: auto auto;
2960
+ grid-template-areas: "body control" "prompt prompt";
2961
+ }
2962
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt:has(.wds-list-item-button-control) {
2963
+ grid-template-columns: 1fr;
2964
+ grid-template-rows: auto;
2965
+ grid-template-areas: "body" "prompt" "control";
2966
+ }
2967
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt {
2968
+ grid-template-columns: 1fr auto;
2969
+ grid-template-rows: auto;
2970
+ grid-template-areas: "body control";
2971
+ }
2972
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt:has(.wds-list-item-button-control) {
2973
+ grid-template-columns: 1fr;
2974
+ grid-template-rows: auto;
2975
+ grid-template-areas: "body" "control";
2976
+ }
2977
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl .wds-list-item-prompt {
2978
+ grid-column: 1 / -1;
2979
+ }
2980
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-hasPrompt {
2981
+ grid-template-columns: 1fr;
2982
+ grid-template-rows: auto auto auto;
2983
+ grid-template-areas: "body" "info" "prompt";
2984
+ }
2985
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-noPrompt {
2986
+ grid-template-columns: 1fr;
2987
+ grid-template-rows: auto auto;
2988
+ grid-template-areas: "body" "info";
2989
+ }
2990
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-hasPrompt {
2991
+ grid-template-columns: 1fr;
2992
+ grid-template-rows: auto auto;
2993
+ grid-template-areas: "body" "prompt";
2994
+ }
2995
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-noPrompt {
2996
+ grid-template-columns: 1fr;
2997
+ grid-template-rows: auto;
2998
+ grid-template-areas: "body";
2999
+ }
3000
+ .wds-list-item-gridWrapper .wds-list-item-media {
3001
+ display: none;
3002
+ }
3003
+ .wds-list-item-gridWrapper .wds-list-item-body {
3004
+ grid-area: body;
3005
+ display: grid;
3006
+ grid-template-columns: 1fr;
3007
+ justify-items: start;
3008
+ grid-gap: 0;
3009
+ gap: 0;
3010
+ }
3011
+ .wds-list-item-gridWrapper .wds-list-item-body .wds-list-item-value {
3012
+ text-align: left;
3013
+ }
3014
+ }
3015
+ .wds-list-item-prompt {
3016
+ grid-area: prompt;
3017
+ display: inline-flex;
3018
+ justify-self: start;
3019
+ text-align: left;
3020
+ padding-top: calc(8px / 2);
3021
+ padding-top: calc(var(--padding-x-small) / 2);
3022
+ padding-bottom: calc(8px / 2);
3023
+ padding-bottom: calc(var(--padding-x-small) / 2);
3024
+ padding-left: calc(8px - 1px);
3025
+ padding-left: calc(var(--padding-x-small) - 1px);
3026
+ padding-right: 8px;
3027
+ padding-right: var(--padding-x-small);
3028
+ border-radius: 10px;
3029
+ border-radius: var(--radius-small);
3030
+ word-break: break-word;
3031
+ word-wrap: break-word;
3032
+ }
3033
+ .wds-list-item-prompt:has(a),
3034
+ .wds-list-item-prompt:has(button) {
3035
+ position: relative;
3036
+ z-index: 1;
3037
+ }
3038
+ .wds-list-item-prompt a,
3039
+ .wds-list-item-prompt button {
3040
+ text-underline-offset: calc(4px / 2);
3041
+ text-underline-offset: calc(var(--size-4) / 2);
3042
+ }
3043
+ .wds-list-item-prompt a:first-of-type:before,
3044
+ .wds-list-item-prompt button:first-of-type:before {
3045
+ content: '';
3046
+ position: absolute;
3047
+ inset: 0;
3048
+ }
3049
+ .wds-list-item-prompt.np-prompt-icon {
3050
+ padding-left: calc(8px - 1px);
3051
+ padding-left: calc(var(--padding-x-small) - 1px);
3052
+ padding-right: 8px;
3053
+ padding-right: var(--padding-x-small);
3054
+ display: inline-flex;
3055
+ align-items: center;
3056
+ gap: 4px;
3057
+ gap: var(--size-4);
3058
+ }
3059
+ .wds-list-item-prompt .np-prompt-icon {
3060
+ padding-right: calc(12px / 2);
3061
+ padding-right: calc(var(--size-12) / 2);
3062
+ padding-top: calc(4px - 1px);
3063
+ padding-top: calc(var(--size-4) - 1px);
3064
+ padding-bottom: calc(4px - 1px);
3065
+ padding-bottom: calc(var(--size-4) - 1px);
3066
+ }
3067
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
3068
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
3069
+ color: var(--color-sentiment-positive-primary);
3070
+ }
3071
+ .wds-list-item-prompt.negative {
3072
+ background-color: var(--color-sentiment-negative-secondary);
3073
+ color: var(--color-sentiment-negative-primary);
3074
+ }
3075
+ .wds-list-item-prompt.negative a,
3076
+ .wds-list-item-prompt.negative button {
3077
+ color: var(--color-sentiment-negative-primary);
3078
+ }
3079
+ .wds-list-item-prompt.negative a:hover,
3080
+ .wds-list-item-prompt.negative button:hover {
3081
+ color: var(--color-sentiment-negative-primary-hover);
3082
+ }
3083
+ .wds-list-item-prompt.negative a:active,
3084
+ .wds-list-item-prompt.negative button:active {
3085
+ color: var(--color-sentiment-negative-primary-active);
3086
+ }
3087
+ .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):hover {
3088
+ background-color: var(--color-sentiment-negative-secondary-hover);
3089
+ }
3090
+ .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):active {
3091
+ background-color: var(--color-sentiment-negative-secondary-active);
3092
+ }
3093
+ .wds-list-item-prompt.positive,
3094
+ .wds-list-item-prompt.discount,
3095
+ .wds-list-item-prompt.savings {
3096
+ background-color: var(--color-sentiment-positive-secondary);
3097
+ color: var(--color-sentiment-positive-primary);
3098
+ }
3099
+ .wds-list-item-prompt.positive a,
3100
+ .wds-list-item-prompt.discount a,
3101
+ .wds-list-item-prompt.savings a,
3102
+ .wds-list-item-prompt.positive button,
3103
+ .wds-list-item-prompt.discount button,
3104
+ .wds-list-item-prompt.savings button {
3105
+ color: var(--color-sentiment-positive-primary);
3106
+ }
3107
+ .wds-list-item-prompt.positive a:hover,
3108
+ .wds-list-item-prompt.discount a:hover,
3109
+ .wds-list-item-prompt.savings a:hover,
3110
+ .wds-list-item-prompt.positive button:hover,
3111
+ .wds-list-item-prompt.discount button:hover,
3112
+ .wds-list-item-prompt.savings button:hover {
3113
+ color: var(--color-sentiment-positive-primary-hover);
3114
+ }
3115
+ .wds-list-item-prompt.positive a:active,
3116
+ .wds-list-item-prompt.discount a:active,
3117
+ .wds-list-item-prompt.savings a:active,
3118
+ .wds-list-item-prompt.positive button:active,
3119
+ .wds-list-item-prompt.discount button:active,
3120
+ .wds-list-item-prompt.savings button:active {
3121
+ color: var(--color-sentiment-positive-primary-active);
3122
+ }
3123
+ .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):hover,
3124
+ .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):hover,
3125
+ .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):hover {
3126
+ background-color: var(--color-sentiment-positive-secondary-hover);
3127
+ }
3128
+ .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):active,
3129
+ .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):active,
3130
+ .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
3131
+ background-color: var(--color-sentiment-positive-secondary-active);
3132
+ }
3133
+ .wds-list-item-prompt.neutral {
3134
+ background-color: rgba(134,167,189,0.10196);
3135
+ background-color: var(--color-background-neutral);
3136
+ color: #37517e;
3137
+ color: var(--color-content-primary);
3138
+ }
3139
+ .wds-list-item-prompt.neutral a,
3140
+ .wds-list-item-prompt.neutral button {
3141
+ color: #37517e;
3142
+ color: var(--color-content-primary);
3143
+ }
3144
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
3145
+ background-color: var(--color-background-neutral-hover);
3146
+ }
3147
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
3148
+ background-color: var(--color-background-neutral-active);
3149
+ }
3150
+ .wds-list-item-prompt.warning {
3151
+ background-color: var(--color-sentiment-warning-secondary);
3152
+ color: var(--color-sentiment-warning-content);
3153
+ }
3154
+ .wds-list-item-prompt.warning a,
3155
+ .wds-list-item-prompt.warning button {
3156
+ color: var(--color-sentiment-warning-content);
3157
+ }
3158
+ .wds-list-item-prompt.warning a:hover,
3159
+ .wds-list-item-prompt.warning button:hover {
3160
+ color: var(--color-sentiment-warning-content-hover);
3161
+ }
3162
+ .wds-list-item-prompt.warning a:active,
3163
+ .wds-list-item-prompt.warning button:active {
3164
+ color: var(--color-sentiment-warning-content-active);
3165
+ }
3166
+ .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):hover {
3167
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
3168
+ }
3169
+ .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
3170
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
3171
+ }
3172
+ .wds-list-item {
3173
+ list-style: none;
3174
+ width: 100%;
3175
+ border-radius: 16px;
3176
+ border-radius: var(--radius-medium);
3177
+ background-color: #ffffff;
3178
+ background-color: var(--color-background-screen);
3179
+ position: relative;
3180
+ padding: 12px 0;
3181
+ padding: var(--size-12) 0;
3182
+ container-type: inline-size;
3183
+ }
3184
+ .wds-list-item + .wds-list-item-spotlight,
3185
+ .wds-list-item-spotlight + .wds-list-item {
3186
+ margin-top: 16px;
3187
+ margin-top: var(--size-16);
3188
+ }
3189
+ .wds-list-item:focus-within {
3190
+ z-index: 1;
3191
+ }
3192
+ .wds-list-item-view {
3193
+ display: grid;
3194
+ grid-column: 1 / -1;
3195
+ grid-row: 1 / -1;
3196
+ grid-template-columns: subgrid;
3197
+ grid-template-rows: subgrid;
3198
+ }
3199
+ .wds-list-item-view.fullyInteractive {
3200
+ margin-bottom: 0;
3201
+ }
3202
+ .wds-list-item-view.fullyInteractive:before {
3203
+ content: '';
3204
+ position: absolute;
3205
+ inset: 0;
3206
+ }
3207
+ .wds-list-item a {
3208
+ text-underline-offset: calc(4px / 2);
3209
+ text-underline-offset: calc(var(--size-4) / 2);
3210
+ }
3211
+ .wds-list-item-interactive .wds-list-item-control:focus-visible,
3212
+ .wds-list-item-interactive .np-checkbox-button:has(input[type="checkbox"]:focus-visible) .tw-checkbox-button {
3213
+ outline: none;
3214
+ }
3215
+ .wds-list-item-interactive .wds-list-item-additional-info {
3216
+ --ring-outline-offset: 0;
3217
+ }
3218
+ .wds-list-item-interactive a.wds-list-item-control,
3219
+ .wds-list-item-interactive a.wds-list-item-control:hover,
3220
+ .wds-list-item-interactive a.wds-list-item-control:focus {
3221
+ -webkit-text-decoration: none;
3222
+ text-decoration: none;
3223
+ }
3224
+ .wds-list-item-interactive a.wds-list-item-control:has(.wds-list-item-control_pseudo-element) {
3225
+ position: relative;
3226
+ z-index: 1;
3227
+ }
3228
+ .wds-list-item-interactive a.wds-list-item-control.wds-list-item-control_pseudo-element:before {
3229
+ content: '';
3230
+ position: absolute;
3231
+ inset: 0;
3232
+ }
3233
+ .wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-control:focus-visible),
3234
+ .wds-list-item-interactive.wds-list-item-spotlight:has(input[type="checkbox"]:focus-visible) {
3235
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
3236
+ outline-offset: var(--ring-outline-offset);
3237
+ outline-offset: -1px;
3238
+ }
3239
+ .wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):hover {
3240
+ background-color: var(--color-background-screen-hover);
3241
+ }
3242
+ .wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):active {
3243
+ background-color: var(--color-background-screen-active);
3244
+ }
3245
+ .wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover {
3246
+ background-color: transparent;
3247
+ background-color: initial;
3248
+ }
3249
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-control:focus-visible):before,
3250
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):has(input[type="checkbox"]:focus-visible):before {
3251
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
3252
+ outline-offset: var(--ring-outline-offset);
3253
+ content: '';
3254
+ position: absolute;
3255
+ inset: 0 -8px;
3256
+ border-radius: 16px;
3257
+ border-radius: var(--radius-medium);
3258
+ outline-offset: -1px;
3259
+ }
3260
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before,
3261
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
3262
+ content: '';
3263
+ position: absolute;
3264
+ inset: 0 -8px;
3265
+ border-radius: 16px;
3266
+ border-radius: var(--radius-medium);
3267
+ }
3268
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before {
3269
+ background-color: var(--color-background-screen-hover);
3270
+ }
3271
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
3272
+ background-color: var(--color-background-screen-active);
3273
+ }
3274
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover:before {
3275
+ background-color: transparent;
3276
+ background-color: initial;
3277
+ }
3278
+ .wds-list-item-interactive:not(.disabled):not(:disabled):hover .wds-list-item-control-wrapper .wds-Button {
3279
+ background-color: var(--Button-background-hover);
3280
+ color: var(--Button-color-hover);
3281
+ transition: none;
3282
+ }
3283
+ .wds-list-item-interactive .wds-list-item-button-control .wds-Button {
3284
+ transition: none;
3285
+ }
3286
+ .wds-list-item-media {
3287
+ grid-area: media;
3288
+ display: flex;
3289
+ align-items: start;
3290
+ }
3291
+ .wds-list-item-media-image-wrapper {
3292
+ width: var(--wds-list-item-media-size);
3293
+ height: var(--wds-list-item-media-size);
3294
+ }
3295
+ .wds-list-item-media-image {
3296
+ width: 100%;
3297
+ height: 100%;
3298
+ -o-object-fit: contain;
3299
+ object-fit: contain;
3300
+ }
3301
+ .wds-list-item-body {
3302
+ grid-area: body;
3303
+ align-items: center;
3304
+ width: 100%;
3305
+ display: grid;
3306
+ grid-template-columns: 1fr max-content;
3307
+ grid-template-columns: var(--wds-list-item-body-left, 1fr) var(--wds-list-item-body-right, max-content);
3308
+ grid-gap: 16px;
3309
+ grid-gap: var(--size-16);
3310
+ gap: 16px;
3311
+ gap: var(--size-16);
3312
+ word-break: break-word;
3313
+ }
3314
+ .wds-list-item-title,
3315
+ .wds-list-item-title-value {
3316
+ color: #37517e;
3317
+ color: var(--color-content-primary);
3318
+ }
3319
+ .wds-list-item-value {
3320
+ text-align: right;
3321
+ }
3322
+ .wds-list-item-body-center {
3323
+ display: flex;
3324
+ flex-direction: row;
3325
+ align-items: center;
3326
+ }
3327
+ .wds-list-item-additional-info {
3328
+ grid-area: info;
3329
+ color: #768e9c;
3330
+ color: var(--color-content-tertiary);
3331
+ margin-top: calc(4px * -1);
3332
+ margin-top: calc(var(--size-4) * -1);
3333
+ }
3334
+ .wds-list-item-additional-info button.np-link {
3335
+ text-align: start;
3336
+ }
3337
+ .wds-list-item-control-wrapper {
3338
+ grid-area: control;
3339
+ align-content: center;
3340
+ height: var(--wds-list-item-control-wrapper-height);
3341
+ }
3342
+ .wds-list-item-navigation .tw-icon-chevron-right {
3343
+ color: #c9cbce;
3344
+ color: var(--color-interactive-secondary);
3345
+ }
3346
+ .wds-list-item-control {
3347
+ flex: 0 0 auto;
3348
+ }
3349
+ .wds-list-item.disabled {
3350
+ filter: none;
3351
+ opacity: 1;
3352
+ }
3353
+ .wds-list-item.disabled label {
3354
+ cursor: not-allowed;
3355
+ }
3356
+ .wds-list-item.disabled .tw-icon-backslash-circle {
3357
+ color: #768e9c;
3358
+ color: var(--color-content-tertiary);
3359
+ }
3360
+ .wds-list-item-spotlight {
3361
+ padding-left: 12px;
3362
+ padding-left: var(--size-12);
3363
+ padding-right: 12px;
3364
+ padding-right: var(--size-12);
3365
+ }
3366
+ .wds-list-item-spotlight-active {
3367
+ background-color: rgba(134,167,189,0.10196);
3368
+ background-color: var(--color-background-neutral);
3369
+ }
3370
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
3371
+ background-color: var(--color-background-neutral-hover);
3372
+ }
3373
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
3374
+ background-color: var(--color-background-neutral-active);
3375
+ }
3376
+ .wds-list-item-spotlight-inactive {
3377
+ background-color: rgba(134, 167, 189, 0.025);
3378
+ }
3379
+ @supports (color: color-mix(in lch, red, blue)) {
3380
+ .wds-list-item-spotlight-inactive {
3381
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
3382
+ }
3383
+ }
3384
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
3385
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
3386
+ }
3387
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
3388
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
3389
+ }
3390
+ .wds-list-item .wds-list-item-spotlight__border {
3391
+ position: absolute;
3392
+ inset: 0;
3393
+ width: 100%;
3394
+ height: 100%;
3395
+ }
3396
+ .wds-list-item .wds-list-item-spotlight__border rect {
3397
+ --wds-list-item-spotlight-borderWidth: 1px;
3398
+ --wds-list-item-spotlight-borderWidthOffset: 0.5px;
3399
+ --wds-list-item-spotlight-strokeDashSize: calc(var(--size-12) * 0.5);
3400
+ fill: none;
3401
+ stroke: rgba(0,0,0,0.10196);
3402
+ stroke: var(--color-border-neutral);
3403
+ width: calc(100% - 1px);
3404
+ width: calc(100% - var(--wds-list-item-spotlight-borderWidth));
3405
+ height: calc(100% - 1px);
3406
+ height: calc(100% - var(--wds-list-item-spotlight-borderWidth));
3407
+ x: 0.5px;
3408
+ x: var(--wds-list-item-spotlight-borderWidthOffset);
3409
+ y: 0.5px;
3410
+ y: var(--wds-list-item-spotlight-borderWidthOffset);
3411
+ rx: calc(16px - 0.5px);
3412
+ rx: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
3413
+ ry: calc(16px - 0.5px);
3414
+ ry: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
3415
+ stroke-dasharray: calc(12px * 0.5) calc(12px * 0.5);
3416
+ stroke-dasharray: var(--wds-list-item-spotlight-strokeDashSize) var(--wds-list-item-spotlight-strokeDashSize);
3417
+ }
2638
3418
  .np-field-control {
2639
3419
  margin-top: 4px;
2640
3420
  margin-top: var(--size-4);