@transferwise/components 0.0.0-experimental-e06e456 → 0.0.0-experimental-e3978a5

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 (201) hide show
  1. package/build/index.js +2 -0
  2. package/build/index.js.map +1 -1
  3. package/build/index.mjs +1 -0
  4. package/build/index.mjs.map +1 -1
  5. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js +56 -0
  6. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js.map +1 -0
  7. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +54 -0
  8. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +1 -0
  9. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js +23 -0
  10. package/build/listItem/AvatarLayout/ListItemAvatarLayout.js.map +1 -0
  11. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs +21 -0
  12. package/build/listItem/AvatarLayout/ListItemAvatarLayout.mjs.map +1 -0
  13. package/build/listItem/AvatarView/ListItemAvatarView.js +23 -0
  14. package/build/listItem/AvatarView/ListItemAvatarView.js.map +1 -0
  15. package/build/listItem/AvatarView/ListItemAvatarView.mjs +21 -0
  16. package/build/listItem/AvatarView/ListItemAvatarView.mjs.map +1 -0
  17. package/build/listItem/Button/ListItemButton.js +43 -0
  18. package/build/listItem/Button/ListItemButton.js.map +1 -0
  19. package/build/listItem/Button/ListItemButton.mjs +41 -0
  20. package/build/listItem/Button/ListItemButton.mjs.map +1 -0
  21. package/build/listItem/Checkbox/ListItemCheckbox.js +30 -0
  22. package/build/listItem/Checkbox/ListItemCheckbox.js.map +1 -0
  23. package/build/listItem/Checkbox/ListItemCheckbox.mjs +28 -0
  24. package/build/listItem/Checkbox/ListItemCheckbox.mjs.map +1 -0
  25. package/build/listItem/IconButton/ListItemIconButton.js +56 -0
  26. package/build/listItem/IconButton/ListItemIconButton.js.map +1 -0
  27. package/build/listItem/IconButton/ListItemIconButton.mjs +54 -0
  28. package/build/listItem/IconButton/ListItemIconButton.mjs.map +1 -0
  29. package/build/listItem/Image/ListItemImage.js +31 -0
  30. package/build/listItem/Image/ListItemImage.js.map +1 -0
  31. package/build/listItem/Image/ListItemImage.mjs +29 -0
  32. package/build/listItem/Image/ListItemImage.mjs.map +1 -0
  33. package/build/listItem/ListItem.js +313 -0
  34. package/build/listItem/ListItem.js.map +1 -0
  35. package/build/listItem/ListItem.mjs +308 -0
  36. package/build/listItem/ListItem.mjs.map +1 -0
  37. package/build/listItem/ListItemContext.js +8 -0
  38. package/build/listItem/ListItemContext.js.map +1 -0
  39. package/build/listItem/ListItemContext.mjs +6 -0
  40. package/build/listItem/ListItemContext.mjs.map +1 -0
  41. package/build/listItem/Navigation/ListItemNavigation.js +44 -0
  42. package/build/listItem/Navigation/ListItemNavigation.js.map +1 -0
  43. package/build/listItem/Navigation/ListItemNavigation.mjs +42 -0
  44. package/build/listItem/Navigation/ListItemNavigation.mjs.map +1 -0
  45. package/build/listItem/Prompt/ListItemPrompt.js +59 -0
  46. package/build/listItem/Prompt/ListItemPrompt.js.map +1 -0
  47. package/build/listItem/Prompt/ListItemPrompt.mjs +54 -0
  48. package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -0
  49. package/build/listItem/Radio/ListItemRadio.js +30 -0
  50. package/build/listItem/Radio/ListItemRadio.js.map +1 -0
  51. package/build/listItem/Radio/ListItemRadio.mjs +28 -0
  52. package/build/listItem/Radio/ListItemRadio.mjs.map +1 -0
  53. package/build/listItem/Switch/ListItemSwitch.js +30 -0
  54. package/build/listItem/Switch/ListItemSwitch.js.map +1 -0
  55. package/build/listItem/Switch/ListItemSwitch.mjs +28 -0
  56. package/build/listItem/Switch/ListItemSwitch.mjs.map +1 -0
  57. package/build/listItem/useListItemControl.js +22 -0
  58. package/build/listItem/useListItemControl.js.map +1 -0
  59. package/build/listItem/useListItemControl.mjs +20 -0
  60. package/build/listItem/useListItemControl.mjs.map +1 -0
  61. package/build/listItem/useListItemMedia.js +21 -0
  62. package/build/listItem/useListItemMedia.js.map +1 -0
  63. package/build/listItem/useListItemMedia.mjs +19 -0
  64. package/build/listItem/useListItemMedia.mjs.map +1 -0
  65. package/build/main.css +771 -1
  66. package/build/styles/button/Button.css +1 -1
  67. package/build/styles/listItem/ListItem.css +770 -0
  68. package/build/styles/listItem/ListItem.grid.css +370 -0
  69. package/build/styles/main.css +771 -1
  70. package/build/types/index.d.ts +2 -0
  71. package/build/types/index.d.ts.map +1 -1
  72. package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts +15 -0
  73. package/build/types/listItem/AdditionalInfo/ListItemAdditionalInfo.d.ts.map +1 -0
  74. package/build/types/listItem/AdditionalInfo/index.d.ts +3 -0
  75. package/build/types/listItem/AdditionalInfo/index.d.ts.map +1 -0
  76. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts +18 -0
  77. package/build/types/listItem/AvatarLayout/ListItemAvatarLayout.d.ts.map +1 -0
  78. package/build/types/listItem/AvatarLayout/index.d.ts +3 -0
  79. package/build/types/listItem/AvatarLayout/index.d.ts.map +1 -0
  80. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts +16 -0
  81. package/build/types/listItem/AvatarView/ListItemAvatarView.d.ts.map +1 -0
  82. package/build/types/listItem/AvatarView/index.d.ts +3 -0
  83. package/build/types/listItem/AvatarView/index.d.ts.map +1 -0
  84. package/build/types/listItem/Button/ListItemButton.d.ts +20 -0
  85. package/build/types/listItem/Button/ListItemButton.d.ts.map +1 -0
  86. package/build/types/listItem/Button/index.d.ts +3 -0
  87. package/build/types/listItem/Button/index.d.ts.map +1 -0
  88. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts +14 -0
  89. package/build/types/listItem/Checkbox/ListItemCheckbox.d.ts.map +1 -0
  90. package/build/types/listItem/Checkbox/index.d.ts +3 -0
  91. package/build/types/listItem/Checkbox/index.d.ts.map +1 -0
  92. package/build/types/listItem/IconButton/ListItemIconButton.d.ts +18 -0
  93. package/build/types/listItem/IconButton/ListItemIconButton.d.ts.map +1 -0
  94. package/build/types/listItem/IconButton/index.d.ts +3 -0
  95. package/build/types/listItem/IconButton/index.d.ts.map +1 -0
  96. package/build/types/listItem/Image/ListItemImage.d.ts +25 -0
  97. package/build/types/listItem/Image/ListItemImage.d.ts.map +1 -0
  98. package/build/types/listItem/Image/index.d.ts +3 -0
  99. package/build/types/listItem/Image/index.d.ts.map +1 -0
  100. package/build/types/listItem/ListItem.d.ts +113 -0
  101. package/build/types/listItem/ListItem.d.ts.map +1 -0
  102. package/build/types/listItem/ListItemContext.d.ts +21 -0
  103. package/build/types/listItem/ListItemContext.d.ts.map +1 -0
  104. package/build/types/listItem/Navigation/ListItemNavigation.d.ts +15 -0
  105. package/build/types/listItem/Navigation/ListItemNavigation.d.ts.map +1 -0
  106. package/build/types/listItem/Navigation/index.d.ts +3 -0
  107. package/build/types/listItem/Navigation/index.d.ts.map +1 -0
  108. package/build/types/listItem/Prompt/ListItemPrompt.d.ts +16 -0
  109. package/build/types/listItem/Prompt/ListItemPrompt.d.ts.map +1 -0
  110. package/build/types/listItem/Prompt/index.d.ts +3 -0
  111. package/build/types/listItem/Prompt/index.d.ts.map +1 -0
  112. package/build/types/listItem/Radio/ListItemRadio.d.ts +14 -0
  113. package/build/types/listItem/Radio/ListItemRadio.d.ts.map +1 -0
  114. package/build/types/listItem/Radio/index.d.ts +3 -0
  115. package/build/types/listItem/Radio/index.d.ts.map +1 -0
  116. package/build/types/listItem/Switch/ListItemSwitch.d.ts +14 -0
  117. package/build/types/listItem/Switch/ListItemSwitch.d.ts.map +1 -0
  118. package/build/types/listItem/Switch/index.d.ts +3 -0
  119. package/build/types/listItem/Switch/index.d.ts.map +1 -0
  120. package/build/types/listItem/_stories/helpers.d.ts +27 -0
  121. package/build/types/listItem/_stories/helpers.d.ts.map +1 -0
  122. package/build/types/listItem/_stories/subcomponents.d.ts +18 -0
  123. package/build/types/listItem/_stories/subcomponents.d.ts.map +1 -0
  124. package/build/types/listItem/index.d.ts +14 -0
  125. package/build/types/listItem/index.d.ts.map +1 -0
  126. package/build/types/listItem/test-utils.d.ts +7 -0
  127. package/build/types/listItem/test-utils.d.ts.map +1 -0
  128. package/build/types/listItem/useListItemControl.d.ts +5 -0
  129. package/build/types/listItem/useListItemControl.d.ts.map +1 -0
  130. package/build/types/listItem/useListItemMedia.d.ts +6 -0
  131. package/build/types/listItem/useListItemMedia.d.ts.map +1 -0
  132. package/package.json +1 -1
  133. package/src/button/Button.css +1 -1
  134. package/src/button/Button.less +1 -1
  135. package/src/button/Button.story.tsx +4 -9
  136. package/src/index.ts +15 -0
  137. package/src/list/List.story.tsx +13 -3
  138. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.spec.tsx +56 -0
  139. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.story.tsx +198 -0
  140. package/src/listItem/AdditionalInfo/ListItemAdditionalInfo.tsx +36 -0
  141. package/src/listItem/AdditionalInfo/index.ts +2 -0
  142. package/src/listItem/AvatarLayout/ListItemAvatarLayout.spec.tsx +59 -0
  143. package/src/listItem/AvatarLayout/ListItemAvatarLayout.story.tsx +124 -0
  144. package/src/listItem/AvatarLayout/ListItemAvatarLayout.tsx +27 -0
  145. package/src/listItem/AvatarLayout/index.ts +2 -0
  146. package/src/listItem/AvatarView/ListItemAvatarView.spec.tsx +75 -0
  147. package/src/listItem/AvatarView/ListItemAvatarView.story.tsx +339 -0
  148. package/src/listItem/AvatarView/ListItemAvatarView.tsx +27 -0
  149. package/src/listItem/AvatarView/index.ts +2 -0
  150. package/src/listItem/Button/ListItemButton.spec.tsx +68 -0
  151. package/src/listItem/Button/ListItemButton.story.tsx +473 -0
  152. package/src/listItem/Button/ListItemButton.tsx +56 -0
  153. package/src/listItem/Button/index.ts +2 -0
  154. package/src/listItem/Checkbox/ListItemCheckbox.spec.tsx +82 -0
  155. package/src/listItem/Checkbox/ListItemCheckbox.story.tsx +128 -0
  156. package/src/listItem/Checkbox/ListItemCheckbox.tsx +33 -0
  157. package/src/listItem/Checkbox/index.ts +2 -0
  158. package/src/listItem/IconButton/ListItemIconButton.spec.tsx +119 -0
  159. package/src/listItem/IconButton/ListItemIconButton.story.tsx +284 -0
  160. package/src/listItem/IconButton/ListItemIconButton.tsx +73 -0
  161. package/src/listItem/IconButton/index.ts +2 -0
  162. package/src/listItem/Image/ListItemImage.spec.tsx +30 -0
  163. package/src/listItem/Image/ListItemImage.story.tsx +80 -0
  164. package/src/listItem/Image/ListItemImage.tsx +46 -0
  165. package/src/listItem/Image/index.ts +2 -0
  166. package/src/listItem/ListItem.css +770 -0
  167. package/src/listItem/ListItem.grid.css +370 -0
  168. package/src/listItem/ListItem.grid.less +622 -0
  169. package/src/listItem/ListItem.less +421 -0
  170. package/src/listItem/ListItem.spec.tsx +1521 -0
  171. package/src/listItem/ListItem.tsx +444 -0
  172. package/src/listItem/ListItemContext.tsx +26 -0
  173. package/src/listItem/Navigation/ListItemNavigation.spec.tsx +59 -0
  174. package/src/listItem/Navigation/ListItemNavigation.story.tsx +112 -0
  175. package/src/listItem/Navigation/ListItemNavigation.tsx +39 -0
  176. package/src/listItem/Navigation/index.ts +2 -0
  177. package/src/listItem/Prompt/ListItemPrompt.spec.tsx +36 -0
  178. package/src/listItem/Prompt/ListItemPrompt.story.tsx +204 -0
  179. package/src/listItem/Prompt/ListItemPrompt.tsx +32 -0
  180. package/src/listItem/Prompt/index.ts +2 -0
  181. package/src/listItem/Radio/ListItemRadio.spec.tsx +66 -0
  182. package/src/listItem/Radio/ListItemRadio.story.tsx +111 -0
  183. package/src/listItem/Radio/ListItemRadio.tsx +33 -0
  184. package/src/listItem/Radio/index.ts +2 -0
  185. package/src/listItem/Switch/ListItemSwitch.spec.tsx +47 -0
  186. package/src/listItem/Switch/ListItemSwitch.story.tsx +79 -0
  187. package/src/listItem/Switch/ListItemSwitch.tsx +33 -0
  188. package/src/listItem/Switch/index.ts +2 -0
  189. package/src/listItem/_stories/ListItem.focus.test.story.tsx +265 -0
  190. package/src/listItem/_stories/ListItem.layout.test.story.tsx +354 -0
  191. package/src/listItem/_stories/ListItem.scenarios.story.tsx +228 -0
  192. package/src/listItem/_stories/ListItem.story.tsx +775 -0
  193. package/src/listItem/_stories/ListItem.variants.test.story.tsx +271 -0
  194. package/src/listItem/_stories/helpers.tsx +53 -0
  195. package/src/listItem/_stories/subcomponents.tsx +139 -0
  196. package/src/listItem/index.ts +14 -0
  197. package/src/listItem/test-utils.tsx +33 -0
  198. package/src/listItem/useListItemControl.tsx +18 -0
  199. package/src/listItem/useListItemMedia.tsx +16 -0
  200. package/src/main.css +771 -1
  201. package/src/main.less +1 -0
@@ -0,0 +1,770 @@
1
+ .wds-list-item-gridWrapper {
2
+ display: grid;
3
+ grid-gap: 4px 16px;
4
+ grid-gap: var(--size-4) var(--size-16);
5
+ gap: 4px 16px;
6
+ gap: var(--size-4) var(--size-16);
7
+ }
8
+ @container (min-width: 375px) {
9
+ .wds-list-item-gridWrapper .wds-list-item-media-image {
10
+ -o-object-position: center;
11
+ object-position: center;
12
+ }
13
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
14
+ grid-template-columns: auto 1fr auto;
15
+ grid-template-rows: auto auto auto;
16
+ grid-template-areas: "media body control" ". info ." ". prompt prompt";
17
+ }
18
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
19
+ grid-template-columns: auto 1fr auto;
20
+ grid-template-rows: auto auto;
21
+ grid-template-areas: "media body control" ". info .";
22
+ }
23
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
24
+ grid-template-columns: auto 1fr auto;
25
+ grid-template-rows: auto auto;
26
+ grid-template-areas: "media body control" ". prompt prompt";
27
+ }
28
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
29
+ grid-template-columns: auto 1fr auto;
30
+ grid-template-rows: auto;
31
+ grid-template-areas: "media body control";
32
+ }
33
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
34
+ grid-template-columns: auto 1fr;
35
+ grid-template-rows: auto auto;
36
+ grid-template-areas: "media body" ". info" ". prompt";
37
+ }
38
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
39
+ grid-template-columns: auto 1fr;
40
+ grid-template-rows: auto auto auto;
41
+ grid-template-areas: "media body" ". info";
42
+ }
43
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-hasPrompt {
44
+ grid-template-columns: auto 1fr;
45
+ grid-template-rows: auto auto;
46
+ grid-template-areas: "media body" ". prompt";
47
+ }
48
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-noPrompt {
49
+ grid-template-columns: auto 1fr;
50
+ grid-template-rows: auto;
51
+ grid-template-areas: "media body";
52
+ }
53
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl .wds-list-item-prompt {
54
+ grid-column: 1 / -1;
55
+ }
56
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
57
+ grid-template-columns: 1fr auto;
58
+ grid-template-rows: auto auto auto;
59
+ grid-template-areas: "body control" "info ." "prompt prompt";
60
+ }
61
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
62
+ grid-template-columns: 1fr auto;
63
+ grid-template-rows: auto auto;
64
+ grid-template-areas: "body control" "info .";
65
+ }
66
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
67
+ grid-template-columns: 1fr auto;
68
+ grid-template-rows: auto auto;
69
+ grid-template-areas: "body control" "prompt prompt";
70
+ }
71
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt {
72
+ grid-template-columns: 1fr auto;
73
+ grid-template-rows: auto;
74
+ grid-template-areas: "body control";
75
+ }
76
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl .wds-list-item-prompt {
77
+ grid-column: 1 / -1;
78
+ }
79
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-hasPrompt {
80
+ grid-template-columns: 1fr;
81
+ grid-template-rows: auto auto auto;
82
+ grid-template-areas: "body" "info" "prompt";
83
+ }
84
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-noPrompt {
85
+ grid-template-columns: 1fr;
86
+ grid-template-rows: auto auto;
87
+ grid-template-areas: "body" "info";
88
+ }
89
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-hasPrompt {
90
+ grid-template-columns: 1fr;
91
+ grid-template-rows: auto auto;
92
+ grid-template-areas: "body" "prompt";
93
+ }
94
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-noPrompt {
95
+ grid-template-columns: 1fr;
96
+ grid-template-rows: auto;
97
+ grid-template-areas: "body";
98
+ }
99
+ }
100
+ @container (min-width: 297px) and (max-width: 375px) {
101
+ .wds-list-item-gridWrapper .wds-list-item-media-image {
102
+ -o-object-position: bottom left;
103
+ object-position: bottom left;
104
+ }
105
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl .wds-list-item-media {
106
+ margin-bottom: 12px;
107
+ margin-bottom: var(--size-12);
108
+ }
109
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
110
+ grid-template-columns: 1fr auto;
111
+ grid-template-rows: auto auto auto auto;
112
+ grid-template-areas: "media media" "body control" "info control" "prompt prompt";
113
+ }
114
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt:has(.wds-list-item-button-control) {
115
+ grid-template-columns: 1fr;
116
+ grid-template-areas: "media" "body" "info" "prompt" "control";
117
+ }
118
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
119
+ grid-template-columns: 1fr auto;
120
+ grid-template-rows: auto auto auto;
121
+ grid-template-areas: "media media" "body control" "info control";
122
+ }
123
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt:has(.wds-list-item-button-control) {
124
+ grid-template-columns: 1fr;
125
+ grid-template-areas: "media" "body" "info" "control";
126
+ }
127
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
128
+ grid-template-columns: 1fr auto;
129
+ grid-template-rows: auto auto auto;
130
+ grid-template-areas: "media media" "body control" "prompt prompt";
131
+ }
132
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt:has(.wds-list-item-button-control) {
133
+ grid-template-columns: 1fr;
134
+ grid-template-areas: "media" "body" "prompt" "control";
135
+ }
136
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
137
+ grid-template-columns: 1fr auto;
138
+ grid-template-rows: auto auto;
139
+ grid-template-areas: "media media" "body control";
140
+ }
141
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt:has(.wds-list-item-button-control) {
142
+ grid-template-columns: 1fr;
143
+ grid-template-areas: "media" "body" "control";
144
+ }
145
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl .wds-list-item-media {
146
+ margin-bottom: 12px;
147
+ margin-bottom: var(--size-12);
148
+ }
149
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
150
+ grid-template-columns: auto auto;
151
+ grid-template-rows: auto auto auto auto;
152
+ grid-template-areas: "media media" "body body" "info info" "prompt prompt";
153
+ }
154
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
155
+ grid-template-columns: auto 1fr;
156
+ grid-template-rows: auto auto auto;
157
+ grid-template-areas: "media media" "body body" "info info";
158
+ }
159
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-hasPrompt {
160
+ grid-template-columns: auto 1fr;
161
+ grid-template-rows: auto auto auto;
162
+ grid-template-areas: "media media" "body body" "prompt prompt";
163
+ }
164
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-noPrompt {
165
+ grid-template-columns: 1fr;
166
+ grid-template-rows: auto auto;
167
+ grid-template-areas: "media" "body";
168
+ }
169
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl .wds-list-item-prompt {
170
+ grid-column: 1 / -1;
171
+ }
172
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
173
+ grid-template-columns: 1fr auto;
174
+ grid-template-rows: auto auto auto;
175
+ grid-template-areas: "body control" "info control" "prompt prompt";
176
+ }
177
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt:has(.wds-list-item-button-control) {
178
+ grid-template-columns: 1fr;
179
+ grid-template-areas: "body" "info" "prompt" "control";
180
+ }
181
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
182
+ grid-template-columns: 1fr auto;
183
+ grid-template-rows: auto auto;
184
+ grid-template-areas: "body control" "info control";
185
+ }
186
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt:has(.wds-list-item-button-control) {
187
+ grid-template-columns: 1fr;
188
+ grid-template-areas: "body" "info" "control";
189
+ }
190
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
191
+ grid-template-columns: 1fr auto;
192
+ grid-template-rows: auto auto;
193
+ grid-template-areas: "body control" "prompt prompt";
194
+ }
195
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt:has(.wds-list-item-button-control) {
196
+ grid-template-columns: 1fr;
197
+ grid-template-areas: "body" "prompt" "control";
198
+ }
199
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt {
200
+ grid-template-columns: 1fr auto;
201
+ grid-template-rows: auto;
202
+ grid-template-areas: "body control";
203
+ }
204
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt:has(.wds-list-item-button-control) {
205
+ grid-template-columns: 1fr;
206
+ grid-template-areas: "body" "control";
207
+ }
208
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl .wds-list-item-prompt {
209
+ grid-column: 1 / -1;
210
+ }
211
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-hasPrompt {
212
+ grid-template-columns: 1fr;
213
+ grid-template-rows: auto auto auto;
214
+ grid-template-areas: "body" "info" "prompt";
215
+ }
216
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-noPrompt {
217
+ grid-template-columns: 1fr;
218
+ grid-template-rows: auto auto;
219
+ grid-template-areas: "body" "info";
220
+ }
221
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-hasPrompt {
222
+ grid-template-columns: 1fr;
223
+ grid-template-rows: auto auto;
224
+ grid-template-areas: "body" "prompt";
225
+ }
226
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-noPrompt {
227
+ grid-template-columns: 1fr;
228
+ grid-template-rows: auto;
229
+ grid-template-areas: "body";
230
+ }
231
+ }
232
+ @container (max-width: 297px) {
233
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
234
+ grid-template-columns: auto 1fr;
235
+ grid-template-rows: auto auto auto;
236
+ grid-template-areas: "body control" "info control" "prompt prompt";
237
+ }
238
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-hasPrompt:has(.wds-list-item-button-control) {
239
+ grid-template-columns: 1fr;
240
+ grid-template-rows: auto;
241
+ grid-template-areas: "body" "info" "prompt" "control";
242
+ }
243
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt {
244
+ grid-template-columns: auto 1fr;
245
+ grid-template-rows: auto auto;
246
+ grid-template-areas: "body control" "info control";
247
+ }
248
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-hasInfo-noPrompt:has(.wds-list-item-button-control) {
249
+ grid-template-columns: 1fr;
250
+ grid-template-areas: "body" "info" "control";
251
+ }
252
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt {
253
+ grid-template-columns: auto 1fr;
254
+ grid-template-rows: auto auto;
255
+ grid-template-areas: "body control" "prompt prompt";
256
+ }
257
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-hasPrompt:has(.wds-list-item-button-control) {
258
+ grid-template-columns: 1fr;
259
+ grid-template-areas: "body" "prompt" "control";
260
+ }
261
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt {
262
+ grid-template-columns: auto 1fr;
263
+ grid-template-rows: auto;
264
+ grid-template-areas: "body control";
265
+ }
266
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-hasControl.wds-list-item-noInfo-noPrompt:has(.wds-list-item-button-control) {
267
+ grid-template-columns: 1fr;
268
+ grid-template-areas: "body" "control";
269
+ }
270
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-hasPrompt {
271
+ grid-template-columns: auto;
272
+ grid-template-rows: auto auto;
273
+ grid-template-areas: "body" "info" "prompt";
274
+ }
275
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-hasInfo-noPrompt {
276
+ grid-template-columns: auto;
277
+ grid-template-rows: auto auto auto;
278
+ grid-template-areas: "body" "info";
279
+ }
280
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-hasPrompt {
281
+ grid-template-columns: auto;
282
+ grid-template-rows: auto auto;
283
+ grid-template-areas: "body" "prompt";
284
+ }
285
+ .wds-list-item-gridWrapper.wds-list-item-hasMedia-noControl.wds-list-item-noInfo-noPrompt {
286
+ grid-template-columns: 1fr;
287
+ grid-template-rows: auto;
288
+ grid-template-areas: "body";
289
+ }
290
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl .wds-list-item-prompt {
291
+ grid-column: 1 / -1;
292
+ }
293
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt {
294
+ grid-template-columns: 1fr auto;
295
+ grid-template-rows: auto auto auto;
296
+ grid-template-areas: "body control" "info control" "prompt prompt";
297
+ }
298
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-hasPrompt:has(.wds-list-item-button-control) {
299
+ grid-template-columns: 1fr;
300
+ grid-template-rows: auto;
301
+ grid-template-areas: "body" "info" "prompt" "control";
302
+ }
303
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt {
304
+ grid-template-columns: 1fr auto;
305
+ grid-template-rows: auto auto;
306
+ grid-template-areas: "body control" "info control";
307
+ }
308
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-hasInfo-noPrompt:has(.wds-list-item-button-control) {
309
+ grid-template-columns: 1fr;
310
+ grid-template-rows: auto;
311
+ grid-template-areas: "body" "info" "control";
312
+ }
313
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt {
314
+ grid-template-columns: 1fr auto;
315
+ grid-template-rows: auto auto;
316
+ grid-template-areas: "body control" "prompt prompt";
317
+ }
318
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-hasPrompt:has(.wds-list-item-button-control) {
319
+ grid-template-columns: 1fr;
320
+ grid-template-rows: auto;
321
+ grid-template-areas: "body" "prompt" "control";
322
+ }
323
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt {
324
+ grid-template-columns: 1fr auto;
325
+ grid-template-rows: auto;
326
+ grid-template-areas: "body control";
327
+ }
328
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-hasControl.wds-list-item-noInfo-noPrompt:has(.wds-list-item-button-control) {
329
+ grid-template-columns: 1fr;
330
+ grid-template-rows: auto;
331
+ grid-template-areas: "body" "control";
332
+ }
333
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl .wds-list-item-prompt {
334
+ grid-column: 1 / -1;
335
+ }
336
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-hasPrompt {
337
+ grid-template-columns: 1fr;
338
+ grid-template-rows: auto auto auto;
339
+ grid-template-areas: "body" "info" "prompt";
340
+ }
341
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-hasInfo-noPrompt {
342
+ grid-template-columns: 1fr;
343
+ grid-template-rows: auto auto;
344
+ grid-template-areas: "body" "info";
345
+ }
346
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-hasPrompt {
347
+ grid-template-columns: 1fr;
348
+ grid-template-rows: auto auto;
349
+ grid-template-areas: "body" "prompt";
350
+ }
351
+ .wds-list-item-gridWrapper.wds-list-item-noMedia-noControl.wds-list-item-noInfo-noPrompt {
352
+ grid-template-columns: 1fr;
353
+ grid-template-rows: auto;
354
+ grid-template-areas: "body";
355
+ }
356
+ .wds-list-item-gridWrapper .wds-list-item-media {
357
+ display: none;
358
+ }
359
+ .wds-list-item-gridWrapper .wds-list-item-body {
360
+ grid-area: body;
361
+ display: grid;
362
+ grid-template-columns: 1fr;
363
+ justify-items: start;
364
+ grid-gap: 0;
365
+ gap: 0;
366
+ }
367
+ .wds-list-item-gridWrapper .wds-list-item-body .wds-list-item-value {
368
+ text-align: left;
369
+ }
370
+ }
371
+ .wds-list-item {
372
+ list-style: none;
373
+ width: 100%;
374
+ border-radius: 16px;
375
+ border-radius: var(--radius-medium);
376
+ background-color: #ffffff;
377
+ background-color: var(--color-background-screen);
378
+ position: relative;
379
+ padding: 12px 0;
380
+ padding: var(--size-12) 0;
381
+ container-type: inline-size;
382
+ }
383
+ .wds-list-item + .wds-list-item-spotlight,
384
+ .wds-list-item-spotlight + .wds-list-item {
385
+ margin-top: 16px;
386
+ margin-top: var(--size-16);
387
+ }
388
+ .wds-list-item:focus-within {
389
+ z-index: 1;
390
+ }
391
+ .wds-list-item-view {
392
+ display: grid;
393
+ grid-column: 1 / -1;
394
+ grid-row: 1 / -1;
395
+ grid-template-columns: subgrid;
396
+ grid-template-rows: subgrid;
397
+ }
398
+ .wds-list-item-view.fullyInteractive {
399
+ margin-bottom: 0;
400
+ }
401
+ .wds-list-item-view.fullyInteractive:before {
402
+ content: '';
403
+ position: absolute;
404
+ inset: 0;
405
+ }
406
+ .wds-list-item a {
407
+ text-underline-offset: calc(4px / 2);
408
+ text-underline-offset: calc(var(--size-4) / 2);
409
+ }
410
+ .wds-list-item-interactive .wds-list-item-control:focus-visible,
411
+ .wds-list-item-interactive .np-checkbox-button:has(input[type="checkbox"]:focus-visible) .tw-checkbox-button {
412
+ outline: none;
413
+ }
414
+ .wds-list-item-interactive .wds-list-item-additional-info {
415
+ --ring-outline-offset: 0;
416
+ }
417
+ .wds-list-item-interactive a.wds-list-item-control,
418
+ .wds-list-item-interactive a.wds-list-item-control:hover,
419
+ .wds-list-item-interactive a.wds-list-item-control:focus {
420
+ -webkit-text-decoration: none;
421
+ text-decoration: none;
422
+ }
423
+ .wds-list-item-interactive a.wds-list-item-control:has(.wds-list-item-control_pseudo-element) {
424
+ position: relative;
425
+ z-index: 1;
426
+ }
427
+ .wds-list-item-interactive a.wds-list-item-control.wds-list-item-control_pseudo-element:before {
428
+ content: '';
429
+ position: absolute;
430
+ inset: 0;
431
+ }
432
+ .wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-control:focus-visible),
433
+ .wds-list-item-interactive.wds-list-item-spotlight:has(input[type="checkbox"]:focus-visible) {
434
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
435
+ outline-offset: var(--ring-outline-offset);
436
+ outline-offset: -1px;
437
+ }
438
+ .wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):hover {
439
+ background-color: var(--color-background-screen-hover);
440
+ }
441
+ .wds-list-item-interactive.wds-list-item-spotlight:not(.disabled):not(:disabled):active {
442
+ background-color: var(--color-background-screen-active);
443
+ }
444
+ .wds-list-item-interactive.wds-list-item-spotlight:has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover {
445
+ background-color: transparent;
446
+ background-color: initial;
447
+ }
448
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-control:focus-visible):before,
449
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):has(input[type="checkbox"]:focus-visible):before {
450
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
451
+ outline-offset: var(--ring-outline-offset);
452
+ content: '';
453
+ position: absolute;
454
+ inset: 0 -8px;
455
+ border-radius: 16px;
456
+ border-radius: var(--radius-medium);
457
+ outline-offset: -1px;
458
+ }
459
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before,
460
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
461
+ content: '';
462
+ position: absolute;
463
+ inset: 0 -8px;
464
+ border-radius: 16px;
465
+ border-radius: var(--radius-medium);
466
+ }
467
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):hover:before {
468
+ background-color: var(--color-background-screen-hover);
469
+ }
470
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):not(.disabled):not(:disabled):active:before {
471
+ background-color: var(--color-background-screen-active);
472
+ }
473
+ .wds-list-item-interactive:not(.wds-list-item-spotlight):has(.wds-list-item-prompt:hover a, .wds-list-item-prompt:hover button):hover:before {
474
+ background-color: transparent;
475
+ background-color: initial;
476
+ }
477
+ .wds-list-item-interactive:not(.disabled):not(:disabled):hover .wds-list-item-control-wrapper .wds-Button {
478
+ background-color: var(--Button-background-hover);
479
+ color: var(--Button-color-hover);
480
+ transition: none;
481
+ }
482
+ .wds-list-item-interactive .wds-list-item-button-control .wds-Button {
483
+ transition: none;
484
+ }
485
+ .wds-list-item-media {
486
+ grid-area: media;
487
+ display: flex;
488
+ align-items: start;
489
+ }
490
+ .wds-list-item-media-image-wrapper {
491
+ width: var(--wds-list-item-media-size);
492
+ height: var(--wds-list-item-media-size);
493
+ }
494
+ .wds-list-item-media-image {
495
+ width: 100%;
496
+ height: 100%;
497
+ -o-object-fit: contain;
498
+ object-fit: contain;
499
+ }
500
+ .wds-list-item-body {
501
+ grid-area: body;
502
+ align-items: center;
503
+ width: 100%;
504
+ display: grid;
505
+ grid-template-columns: 1fr max-content;
506
+ grid-template-columns: var(--wds-list-item-body-left, 1fr) var(--wds-list-item-body-right, max-content);
507
+ grid-gap: 16px;
508
+ grid-gap: var(--size-16);
509
+ gap: 16px;
510
+ gap: var(--size-16);
511
+ word-break: break-word;
512
+ }
513
+ .wds-list-item-title,
514
+ .wds-list-item-title-value {
515
+ color: #37517e;
516
+ color: var(--color-content-primary);
517
+ }
518
+ .wds-list-item-value {
519
+ text-align: right;
520
+ }
521
+ .wds-list-item-body-center {
522
+ display: flex;
523
+ flex-direction: row;
524
+ align-items: center;
525
+ }
526
+ .wds-list-item-additional-info {
527
+ grid-area: info;
528
+ color: #768e9c;
529
+ color: var(--color-content-tertiary);
530
+ margin-top: calc(4px * -1);
531
+ margin-top: calc(var(--size-4) * -1);
532
+ }
533
+ .wds-list-item-control-wrapper {
534
+ grid-area: control;
535
+ align-content: center;
536
+ height: var(--wds-list-item-control-wrapper-height);
537
+ }
538
+ .wds-list-item-navigation .tw-icon-chevron-right {
539
+ color: #c9cbce;
540
+ color: var(--color-interactive-secondary);
541
+ }
542
+ .wds-list-item-control {
543
+ flex: 0 0 auto;
544
+ }
545
+ .wds-list-item.disabled {
546
+ filter: none;
547
+ opacity: 1;
548
+ }
549
+ .wds-list-item.disabled label {
550
+ cursor: not-allowed;
551
+ }
552
+ .wds-list-item.disabled .tw-icon-backslash-circle {
553
+ color: #768e9c;
554
+ color: var(--color-content-tertiary);
555
+ }
556
+ .wds-list-item-spotlight {
557
+ padding-left: 12px;
558
+ padding-left: var(--size-12);
559
+ padding-right: 12px;
560
+ padding-right: var(--size-12);
561
+ }
562
+ .wds-list-item-spotlight-active {
563
+ background-color: rgba(134,167,189,0.10196);
564
+ background-color: var(--color-background-neutral);
565
+ }
566
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
567
+ background-color: var(--color-background-neutral-hover);
568
+ }
569
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
570
+ background-color: var(--color-background-neutral-active);
571
+ }
572
+ .wds-list-item-spotlight-inactive {
573
+ background-color: rgba(134, 167, 189, 0.025);
574
+ }
575
+ @supports (color: color-mix(in lch, red, blue)) {
576
+ .wds-list-item-spotlight-inactive {
577
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
578
+ }
579
+ }
580
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
581
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
582
+ }
583
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
584
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
585
+ }
586
+ .wds-list-item .wds-list-item-spotlight__border {
587
+ position: absolute;
588
+ inset: 0;
589
+ width: 100%;
590
+ height: 100%;
591
+ }
592
+ .wds-list-item .wds-list-item-spotlight__border rect {
593
+ --wds-list-item-spotlight-borderWidth: 1px;
594
+ --wds-list-item-spotlight-borderWidthOffset: 0.5px;
595
+ --wds-list-item-spotlight-strokeDashSize: calc(var(--size-12) * 0.5);
596
+ fill: none;
597
+ stroke: rgba(0,0,0,0.10196);
598
+ stroke: var(--color-border-neutral);
599
+ width: calc(100% - 1px);
600
+ width: calc(100% - var(--wds-list-item-spotlight-borderWidth));
601
+ height: calc(100% - 1px);
602
+ height: calc(100% - var(--wds-list-item-spotlight-borderWidth));
603
+ x: 0.5px;
604
+ x: var(--wds-list-item-spotlight-borderWidthOffset);
605
+ y: 0.5px;
606
+ y: var(--wds-list-item-spotlight-borderWidthOffset);
607
+ rx: calc(16px - 0.5px);
608
+ rx: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
609
+ ry: calc(16px - 0.5px);
610
+ ry: calc(var(--radius-medium) - var(--wds-list-item-spotlight-borderWidthOffset));
611
+ stroke-dasharray: calc(12px * 0.5) calc(12px * 0.5);
612
+ stroke-dasharray: var(--wds-list-item-spotlight-strokeDashSize) var(--wds-list-item-spotlight-strokeDashSize);
613
+ }
614
+ .wds-list-item-prompt {
615
+ grid-area: prompt;
616
+ display: inline-flex;
617
+ justify-self: start;
618
+ text-align: left;
619
+ padding-top: calc(8px / 2);
620
+ padding-top: calc(var(--padding-x-small) / 2);
621
+ padding-bottom: calc(8px / 2);
622
+ padding-bottom: calc(var(--padding-x-small) / 2);
623
+ padding-left: calc(8px - 1px);
624
+ padding-left: calc(var(--padding-x-small) - 1px);
625
+ padding-right: 8px;
626
+ padding-right: var(--padding-x-small);
627
+ border-radius: 10px;
628
+ border-radius: var(--radius-small);
629
+ word-break: break-word;
630
+ word-wrap: break-word;
631
+ }
632
+ .wds-list-item-prompt:has(a),
633
+ .wds-list-item-prompt:has(button) {
634
+ position: relative;
635
+ z-index: 1;
636
+ }
637
+ .wds-list-item-prompt a,
638
+ .wds-list-item-prompt button {
639
+ text-underline-offset: calc(4px / 2);
640
+ text-underline-offset: calc(var(--size-4) / 2);
641
+ }
642
+ .wds-list-item-prompt a:first-of-type:before,
643
+ .wds-list-item-prompt button:first-of-type:before {
644
+ content: '';
645
+ position: absolute;
646
+ inset: 0;
647
+ }
648
+ .wds-list-item-prompt.np-prompt-icon {
649
+ padding-left: calc(8px - 1px);
650
+ padding-left: calc(var(--padding-x-small) - 1px);
651
+ padding-right: 8px;
652
+ padding-right: var(--padding-x-small);
653
+ display: inline-flex;
654
+ align-items: center;
655
+ gap: 4px;
656
+ gap: var(--size-4);
657
+ }
658
+ .wds-list-item-prompt .np-prompt-icon {
659
+ padding-right: calc(12px / 2);
660
+ padding-right: calc(var(--size-12) / 2);
661
+ padding-top: calc(4px - 1px);
662
+ padding-top: calc(var(--size-4) - 1px);
663
+ padding-bottom: calc(4px - 1px);
664
+ padding-bottom: calc(var(--size-4) - 1px);
665
+ }
666
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
667
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
668
+ color: var(--color-sentiment-positive-primary);
669
+ }
670
+ .wds-list-item-prompt.negative {
671
+ background-color: var(--color-sentiment-negative-secondary);
672
+ color: var(--color-sentiment-negative-primary);
673
+ }
674
+ .wds-list-item-prompt.negative a,
675
+ .wds-list-item-prompt.negative button {
676
+ color: var(--color-sentiment-negative-primary);
677
+ }
678
+ .wds-list-item-prompt.negative a:hover,
679
+ .wds-list-item-prompt.negative button:hover {
680
+ color: var(--color-sentiment-negative-primary-hover);
681
+ }
682
+ .wds-list-item-prompt.negative a:active,
683
+ .wds-list-item-prompt.negative button:active {
684
+ color: var(--color-sentiment-negative-primary-active);
685
+ }
686
+ .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):hover {
687
+ background-color: var(--color-sentiment-negative-secondary-hover);
688
+ }
689
+ .wds-list-item-prompt.wds-list-item-prompt.negative:has(a, button):active {
690
+ background-color: var(--color-sentiment-negative-secondary-active);
691
+ }
692
+ .wds-list-item-prompt.positive,
693
+ .wds-list-item-prompt.discount,
694
+ .wds-list-item-prompt.savings {
695
+ background-color: var(--color-sentiment-positive-secondary);
696
+ color: var(--color-sentiment-positive-primary);
697
+ }
698
+ .wds-list-item-prompt.positive a,
699
+ .wds-list-item-prompt.discount a,
700
+ .wds-list-item-prompt.savings a,
701
+ .wds-list-item-prompt.positive button,
702
+ .wds-list-item-prompt.discount button,
703
+ .wds-list-item-prompt.savings button {
704
+ color: var(--color-sentiment-positive-primary);
705
+ }
706
+ .wds-list-item-prompt.positive a:hover,
707
+ .wds-list-item-prompt.discount a:hover,
708
+ .wds-list-item-prompt.savings a:hover,
709
+ .wds-list-item-prompt.positive button:hover,
710
+ .wds-list-item-prompt.discount button:hover,
711
+ .wds-list-item-prompt.savings button:hover {
712
+ color: var(--color-sentiment-positive-primary-hover);
713
+ }
714
+ .wds-list-item-prompt.positive a:active,
715
+ .wds-list-item-prompt.discount a:active,
716
+ .wds-list-item-prompt.savings a:active,
717
+ .wds-list-item-prompt.positive button:active,
718
+ .wds-list-item-prompt.discount button:active,
719
+ .wds-list-item-prompt.savings button:active {
720
+ color: var(--color-sentiment-positive-primary-active);
721
+ }
722
+ .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):hover,
723
+ .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):hover,
724
+ .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):hover {
725
+ background-color: var(--color-sentiment-positive-secondary-hover);
726
+ }
727
+ .wds-list-item-prompt.wds-list-item-prompt.positive:has(a, button):active,
728
+ .wds-list-item-prompt.wds-list-item-prompt.discount:has(a, button):active,
729
+ .wds-list-item-prompt.wds-list-item-prompt.savings:has(a, button):active {
730
+ background-color: var(--color-sentiment-positive-secondary-active);
731
+ }
732
+ .wds-list-item-prompt.neutral {
733
+ background-color: rgba(134,167,189,0.10196);
734
+ background-color: var(--color-background-neutral);
735
+ color: #37517e;
736
+ color: var(--color-content-primary);
737
+ }
738
+ .wds-list-item-prompt.neutral a,
739
+ .wds-list-item-prompt.neutral button {
740
+ color: #37517e;
741
+ color: var(--color-content-primary);
742
+ }
743
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):hover {
744
+ background-color: var(--color-background-neutral-hover);
745
+ }
746
+ .wds-list-item-prompt.wds-list-item-prompt.neutral:has(a, button):active {
747
+ background-color: var(--color-background-neutral-active);
748
+ }
749
+ .wds-list-item-prompt.warning {
750
+ background-color: var(--color-sentiment-warning-secondary);
751
+ color: var(--color-sentiment-warning-content);
752
+ }
753
+ .wds-list-item-prompt.warning a,
754
+ .wds-list-item-prompt.warning button {
755
+ color: var(--color-sentiment-warning-content);
756
+ }
757
+ .wds-list-item-prompt.warning a:hover,
758
+ .wds-list-item-prompt.warning button:hover {
759
+ color: var(--color-sentiment-warning-content-hover);
760
+ }
761
+ .wds-list-item-prompt.warning a:active,
762
+ .wds-list-item-prompt.warning button:active {
763
+ color: var(--color-sentiment-warning-content-active);
764
+ }
765
+ .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):hover {
766
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
767
+ }
768
+ .wds-list-item-prompt.wds-list-item-prompt.warning:has(a, button):active {
769
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 84%, var(--color-sentiment-warning-primary));
770
+ }