@transferwise/components 0.0.0-experimental-5a23a43 → 0.0.0-experimental-9add5b4

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 (63) hide show
  1. package/build/i18n/ja.json +1 -1
  2. package/build/i18n/ja.json.js +1 -1
  3. package/build/i18n/ja.json.mjs +1 -1
  4. package/build/index.js +1 -0
  5. package/build/index.js.map +1 -1
  6. package/build/index.mjs +1 -1
  7. package/build/main.css +188 -0
  8. package/build/styles/listItem/ListItem.css +188 -0
  9. package/build/styles/main.css +188 -0
  10. package/build/test-utils/assets/apple-pay-logo.svg +84 -0
  11. package/build/types/index.d.ts +2 -0
  12. package/build/types/index.d.ts.map +1 -1
  13. package/build/types/listItem/ListItem.d.ts +44 -0
  14. package/build/types/listItem/ListItem.d.ts.map +1 -0
  15. package/build/types/listItem/ListItemAdditionalInfo.d.ts +9 -0
  16. package/build/types/listItem/ListItemAdditionalInfo.d.ts.map +1 -0
  17. package/build/types/listItem/ListItemButton.d.ts +6 -0
  18. package/build/types/listItem/ListItemButton.d.ts.map +1 -0
  19. package/build/types/listItem/ListItemCheckbox.d.ts +4 -0
  20. package/build/types/listItem/ListItemCheckbox.d.ts.map +1 -0
  21. package/build/types/listItem/ListItemIconButton.d.ts +9 -0
  22. package/build/types/listItem/ListItemIconButton.d.ts.map +1 -0
  23. package/build/types/listItem/ListItemMedia.d.ts +19 -0
  24. package/build/types/listItem/ListItemMedia.d.ts.map +1 -0
  25. package/build/types/listItem/ListItemNavigation.d.ts +4 -0
  26. package/build/types/listItem/ListItemNavigation.d.ts.map +1 -0
  27. package/build/types/listItem/ListItemSwitch.d.ts +3 -0
  28. package/build/types/listItem/ListItemSwitch.d.ts.map +1 -0
  29. package/build/types/listItem/index.d.ts +6 -0
  30. package/build/types/listItem/index.d.ts.map +1 -0
  31. package/build/types/listItem/prompt/Prompt.d.ts +12 -0
  32. package/build/types/listItem/prompt/Prompt.d.ts.map +1 -0
  33. package/build/types/listItem/useListItemControl.d.ts +12 -0
  34. package/build/types/listItem/useListItemControl.d.ts.map +1 -0
  35. package/build/types/test-utils/fake-data.d.ts +2 -0
  36. package/build/types/test-utils/fake-data.d.ts.map +1 -1
  37. package/package.json +1 -1
  38. package/src/i18n/ja.json +1 -1
  39. package/src/index.ts +2 -0
  40. package/src/legacylistItem/LegacyListItem.story.tsx +5 -5
  41. package/src/legacylistItem/LegacyListItem.tests.story.tsx +6 -6
  42. package/src/listItem/ListItem.css +188 -0
  43. package/src/listItem/ListItem.less +180 -0
  44. package/src/listItem/ListItem.spec.tsx +35 -0
  45. package/src/listItem/ListItem.story.tsx +332 -0
  46. package/src/listItem/ListItem.tsx +213 -0
  47. package/src/listItem/ListItemAdditionalInfo.tsx +31 -0
  48. package/src/listItem/ListItemButton.spec.tsx +90 -0
  49. package/src/listItem/ListItemButton.tsx +24 -0
  50. package/src/listItem/ListItemCheckbox.tsx +14 -0
  51. package/src/listItem/ListItemIconButton.tsx +16 -0
  52. package/src/listItem/ListItemMedia.tsx +52 -0
  53. package/src/listItem/ListItemNavigation.tsx +11 -0
  54. package/src/listItem/ListItemSwitch.tsx +8 -0
  55. package/src/listItem/index.ts +10 -0
  56. package/src/listItem/prompt/Prompt.spec.tsx +77 -0
  57. package/src/listItem/prompt/Prompt.story.tsx +170 -0
  58. package/src/listItem/prompt/Prompt.tsx +44 -0
  59. package/src/listItem/useListItemControl.tsx +16 -0
  60. package/src/main.css +188 -0
  61. package/src/main.less +1 -0
  62. package/src/test-utils/assets/apple-pay-logo.svg +84 -0
  63. package/src/test-utils/fake-data.ts +5 -0
@@ -21,7 +21,7 @@
21
21
  "neptune.Label.optional": "(任意)",
22
22
  "neptune.Link.opensInNewTab": "(新しいタブで開きます)",
23
23
  "neptune.MoneyInput.Select.placeholder": "選択してください...",
24
- "neptune.MoneyInput.Select.searchPlaceholder": "通貨または国をご入力ください",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "通貨または国を入力してください",
25
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "通貨を選択してください",
26
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "選択してください…",
27
27
  "neptune.PhoneNumberInput.countryCodeLabel": "国コード",
@@ -25,7 +25,7 @@ var ja = {
25
25
  "neptune.Label.optional": "(任意)",
26
26
  "neptune.Link.opensInNewTab": "(新しいタブで開きます)",
27
27
  "neptune.MoneyInput.Select.placeholder": "選択してください...",
28
- "neptune.MoneyInput.Select.searchPlaceholder": "通貨または国をご入力ください",
28
+ "neptune.MoneyInput.Select.searchPlaceholder": "通貨または国を入力してください",
29
29
  "neptune.MoneyInput.Select.selectCurrencyLabel": "通貨を選択してください",
30
30
  "neptune.PhoneNumberInput.SelectInput.placeholder": "選択してください…",
31
31
  "neptune.PhoneNumberInput.countryCodeLabel": "国コード",
@@ -21,7 +21,7 @@ var ja = {
21
21
  "neptune.Label.optional": "(任意)",
22
22
  "neptune.Link.opensInNewTab": "(新しいタブで開きます)",
23
23
  "neptune.MoneyInput.Select.placeholder": "選択してください...",
24
- "neptune.MoneyInput.Select.searchPlaceholder": "通貨または国をご入力ください",
24
+ "neptune.MoneyInput.Select.searchPlaceholder": "通貨または国を入力してください",
25
25
  "neptune.MoneyInput.Select.selectCurrencyLabel": "通貨を選択してください",
26
26
  "neptune.PhoneNumberInput.SelectInput.placeholder": "選択してください…",
27
27
  "neptune.PhoneNumberInput.countryCodeLabel": "国コード",
package/build/index.js CHANGED
@@ -274,6 +274,7 @@ Object.defineProperty(exports, "UploadStep", {
274
274
  get: function () { return Upload.UploadStep; }
275
275
  });
276
276
  exports.UploadInput = UploadInput.default;
277
+ exports.Item = Table.default;
277
278
  exports.Table = Table.default;
278
279
  exports.useDirection = useDirection.useDirection;
279
280
  exports.useLayout = useLayout.useLayout;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/build/index.mjs CHANGED
@@ -105,7 +105,7 @@ export { default as Tooltip } from './tooltip/Tooltip.mjs';
105
105
  export { default as Typeahead } from './typeahead/Typeahead.mjs';
106
106
  export { default as Upload, UploadStep } from './upload/Upload.mjs';
107
107
  export { default as UploadInput } from './uploadInput/UploadInput.mjs';
108
- export { default as Table } from './table/Table.mjs';
108
+ export { default as Item, default as Table } from './table/Table.mjs';
109
109
  import '@transferwise/neptune-validation';
110
110
  export { useDirection } from './common/hooks/useDirection/useDirection.mjs';
111
111
  export { useLayout } from './common/hooks/useLayout/useLayout.mjs';
package/build/main.css CHANGED
@@ -2662,6 +2662,194 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2662
2662
  border-radius: 9999px !important;
2663
2663
  border-radius: var(--radius-full) !important;
2664
2664
  }
2665
+ .wds-list-item {
2666
+ padding: 16px;
2667
+ padding: var(--size-16);
2668
+ border-radius: 16px;
2669
+ border-radius: var(--radius-medium);
2670
+ background-color: #ffffff;
2671
+ background-color: var(--color-background-screen);
2672
+ gap: 16px;
2673
+ gap: var(--size-16);
2674
+ }
2675
+ .wds-list-item-interactive {
2676
+ cursor: pointer;
2677
+ }
2678
+ .wds-list-item-interactive:hover {
2679
+ background-color: var(--color-background-screen-hover);
2680
+ }
2681
+ .wds-list-item-interactive:active {
2682
+ background-color: var(--color-background-screen-active);
2683
+ }
2684
+ .wds-list-item-media-image {
2685
+ width: var(--item-media-image-size);
2686
+ height: var(--item-media-image-size);
2687
+ }
2688
+ .wds-list-item-body {
2689
+ width: 100%;
2690
+ }
2691
+ .wds-list-item-title {
2692
+ color: #37517e;
2693
+ color: var(--color-content-primary);
2694
+ }
2695
+ .wds-list-item-additional-info {
2696
+ color: #768e9c;
2697
+ color: var(--color-content-tertiary);
2698
+ }
2699
+ .wds-list-item-value {
2700
+ flex: 0 0 auto;
2701
+ }
2702
+ .wds-list-item-control {
2703
+ flex: 0 0 auto;
2704
+ }
2705
+ .wds-list-item-spotlight-active {
2706
+ background-color: rgba(134,167,189,0.10196);
2707
+ background-color: var(--color-background-neutral);
2708
+ }
2709
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
2710
+ background-color: var(--color-background-neutral-hover);
2711
+ }
2712
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
2713
+ background-color: var(--color-background-neutral-active);
2714
+ }
2715
+ .wds-list-item-spotlight-inactive {
2716
+ background-color: rgba(134, 167, 189, 0.025);
2717
+ border: 1px dashed rgba(0,0,0,0.10196);
2718
+ border: 1px dashed var(--color-border-neutral);
2719
+ }
2720
+ @supports (color: color-mix(in lch, red, blue)) {
2721
+ .wds-list-item-spotlight-inactive {
2722
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
2723
+ }
2724
+ }
2725
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
2726
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
2727
+ }
2728
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
2729
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
2730
+ }
2731
+ .wds-list-item-prompt {
2732
+ display: inline-flex;
2733
+ padding-top: calc(8px / 2);
2734
+ padding-top: calc(var(--padding-x-small) / 2);
2735
+ padding-bottom: calc(8px / 2);
2736
+ padding-bottom: calc(var(--padding-x-small) / 2);
2737
+ padding-left: calc(8px - 1px);
2738
+ padding-left: calc(var(--padding-x-small) - 1px);
2739
+ padding-right: 8px;
2740
+ padding-right: var(--padding-x-small);
2741
+ border-radius: 10px;
2742
+ border-radius: var(--radius-small);
2743
+ word-break: break-word;
2744
+ word-wrap: break-word;
2745
+ }
2746
+ .wds-list-item-prompt .np-prompt-icon {
2747
+ padding-right: calc(12px / 2);
2748
+ padding-right: calc(var(--size-12) / 2);
2749
+ padding-top: calc(4px - 1px);
2750
+ padding-top: calc(var(--size-4) - 1px);
2751
+ padding-bottom: calc(4px - 1px);
2752
+ padding-bottom: calc(var(--size-4) - 1px);
2753
+ }
2754
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
2755
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
2756
+ color: var(--color-sentiment-positive-primary);
2757
+ }
2758
+ .wds-list-item-prompt a {
2759
+ text-underline-offset: calc(4px / 2);
2760
+ text-underline-offset: calc(var(--size-4) / 2);
2761
+ }
2762
+ .wds-list-item-prompt.np-prompt-interactive {
2763
+ -webkit-text-decoration: none;
2764
+ text-decoration: none;
2765
+ cursor: pointer;
2766
+ border: none;
2767
+ }
2768
+ .wds-list-item-prompt.negative {
2769
+ background-color: var(--color-sentiment-negative-secondary);
2770
+ color: var(--color-sentiment-negative-primary);
2771
+ }
2772
+ .wds-list-item-prompt.negative a {
2773
+ color: var(--color-sentiment-negative-primary);
2774
+ }
2775
+ .wds-list-item-prompt.negative a:hover {
2776
+ color: var(--color-sentiment-negative-primary-hover);
2777
+ }
2778
+ .wds-list-item-prompt.negative a:active {
2779
+ color: var(--color-sentiment-negative-primary-active);
2780
+ }
2781
+ .np-prompt-interactive.wds-list-item-prompt.negative:hover {
2782
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
2783
+ }
2784
+ .np-prompt-interactive.wds-list-item-prompt.negative:active {
2785
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
2786
+ }
2787
+ .wds-list-item-prompt.positive,
2788
+ .wds-list-item-prompt.discount,
2789
+ .wds-list-item-prompt.savings {
2790
+ background-color: var(--color-sentiment-positive-secondary);
2791
+ color: var(--color-sentiment-positive-primary);
2792
+ }
2793
+ .wds-list-item-prompt.positive a,
2794
+ .wds-list-item-prompt.discount a,
2795
+ .wds-list-item-prompt.savings a {
2796
+ color: var(--color-sentiment-positive-primary);
2797
+ }
2798
+ .wds-list-item-prompt.positive a:hover,
2799
+ .wds-list-item-prompt.discount a:hover,
2800
+ .wds-list-item-prompt.savings a:hover {
2801
+ color: var(--color-sentiment-positive-primary-hover);
2802
+ }
2803
+ .wds-list-item-prompt.positive a:active,
2804
+ .wds-list-item-prompt.discount a:active,
2805
+ .wds-list-item-prompt.savings a:active {
2806
+ color: var(--color-sentiment-positive-primary-active);
2807
+ }
2808
+ .np-prompt-interactive.wds-list-item-prompt.positive:hover,
2809
+ .np-prompt-interactive.wds-list-item-prompt.discount:hover,
2810
+ .np-prompt-interactive.wds-list-item-prompt.savings:hover {
2811
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
2812
+ }
2813
+ .np-prompt-interactive.wds-list-item-prompt.positive:active,
2814
+ .np-prompt-interactive.wds-list-item-prompt.discount:active,
2815
+ .np-prompt-interactive.wds-list-item-prompt.savings:active {
2816
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
2817
+ }
2818
+ .wds-list-item-prompt.neutral {
2819
+ background-color: rgba(134,167,189,0.10196);
2820
+ background-color: var(--color-background-neutral);
2821
+ color: #37517e;
2822
+ color: var(--color-content-primary);
2823
+ }
2824
+ .wds-list-item-prompt.neutral a {
2825
+ color: #37517e;
2826
+ color: var(--color-content-primary);
2827
+ }
2828
+ .np-prompt-interactive.wds-list-item-prompt.neutral:hover {
2829
+ background-color: var(--color-background-neutral-hover);
2830
+ }
2831
+ .np-prompt-interactive.wds-list-item-prompt.neutral:active {
2832
+ background-color: var(--color-background-neutral-active);
2833
+ }
2834
+ .wds-list-item-prompt.warning {
2835
+ background-color: var(--color-sentiment-warning-secondary);
2836
+ color: var(--color-sentiment-warning-content);
2837
+ }
2838
+ .wds-list-item-prompt.warning a {
2839
+ color: var(--color-sentiment-warning-content);
2840
+ }
2841
+ .wds-list-item-prompt.warning a:hover {
2842
+ color: var(--color-sentiment-warning-content-hover);
2843
+ }
2844
+ .wds-list-item-prompt.warning a:active {
2845
+ color: var(--color-sentiment-warning-content-active);
2846
+ }
2847
+ .np-prompt-interactive.wds-list-item-prompt.warning:hover {
2848
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
2849
+ }
2850
+ .np-prompt-interactive.wds-list-item-prompt.warning:active {
2851
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
2852
+ }
2665
2853
  .np-field-control {
2666
2854
  margin-top: 4px;
2667
2855
  margin-top: var(--size-4);
@@ -0,0 +1,188 @@
1
+ .wds-list-item {
2
+ padding: 16px;
3
+ padding: var(--size-16);
4
+ border-radius: 16px;
5
+ border-radius: var(--radius-medium);
6
+ background-color: #ffffff;
7
+ background-color: var(--color-background-screen);
8
+ gap: 16px;
9
+ gap: var(--size-16);
10
+ }
11
+ .wds-list-item-interactive {
12
+ cursor: pointer;
13
+ }
14
+ .wds-list-item-interactive:hover {
15
+ background-color: var(--color-background-screen-hover);
16
+ }
17
+ .wds-list-item-interactive:active {
18
+ background-color: var(--color-background-screen-active);
19
+ }
20
+ .wds-list-item-media-image {
21
+ width: var(--item-media-image-size);
22
+ height: var(--item-media-image-size);
23
+ }
24
+ .wds-list-item-body {
25
+ width: 100%;
26
+ }
27
+ .wds-list-item-title {
28
+ color: #37517e;
29
+ color: var(--color-content-primary);
30
+ }
31
+ .wds-list-item-additional-info {
32
+ color: #768e9c;
33
+ color: var(--color-content-tertiary);
34
+ }
35
+ .wds-list-item-value {
36
+ flex: 0 0 auto;
37
+ }
38
+ .wds-list-item-control {
39
+ flex: 0 0 auto;
40
+ }
41
+ .wds-list-item-spotlight-active {
42
+ background-color: rgba(134,167,189,0.10196);
43
+ background-color: var(--color-background-neutral);
44
+ }
45
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
46
+ background-color: var(--color-background-neutral-hover);
47
+ }
48
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
49
+ background-color: var(--color-background-neutral-active);
50
+ }
51
+ .wds-list-item-spotlight-inactive {
52
+ background-color: rgba(134, 167, 189, 0.025);
53
+ border: 1px dashed rgba(0,0,0,0.10196);
54
+ border: 1px dashed var(--color-border-neutral);
55
+ }
56
+ @supports (color: color-mix(in lch, red, blue)) {
57
+ .wds-list-item-spotlight-inactive {
58
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
59
+ }
60
+ }
61
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
62
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
63
+ }
64
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
65
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
66
+ }
67
+ .wds-list-item-prompt {
68
+ display: inline-flex;
69
+ padding-top: calc(8px / 2);
70
+ padding-top: calc(var(--padding-x-small) / 2);
71
+ padding-bottom: calc(8px / 2);
72
+ padding-bottom: calc(var(--padding-x-small) / 2);
73
+ padding-left: calc(8px - 1px);
74
+ padding-left: calc(var(--padding-x-small) - 1px);
75
+ padding-right: 8px;
76
+ padding-right: var(--padding-x-small);
77
+ border-radius: 10px;
78
+ border-radius: var(--radius-small);
79
+ word-break: break-word;
80
+ word-wrap: break-word;
81
+ }
82
+ .wds-list-item-prompt .np-prompt-icon {
83
+ padding-right: calc(12px / 2);
84
+ padding-right: calc(var(--size-12) / 2);
85
+ padding-top: calc(4px - 1px);
86
+ padding-top: calc(var(--size-4) - 1px);
87
+ padding-bottom: calc(4px - 1px);
88
+ padding-bottom: calc(var(--size-4) - 1px);
89
+ }
90
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
91
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
92
+ color: var(--color-sentiment-positive-primary);
93
+ }
94
+ .wds-list-item-prompt a {
95
+ text-underline-offset: calc(4px / 2);
96
+ text-underline-offset: calc(var(--size-4) / 2);
97
+ }
98
+ .wds-list-item-prompt.np-prompt-interactive {
99
+ -webkit-text-decoration: none;
100
+ text-decoration: none;
101
+ cursor: pointer;
102
+ border: none;
103
+ }
104
+ .wds-list-item-prompt.negative {
105
+ background-color: var(--color-sentiment-negative-secondary);
106
+ color: var(--color-sentiment-negative-primary);
107
+ }
108
+ .wds-list-item-prompt.negative a {
109
+ color: var(--color-sentiment-negative-primary);
110
+ }
111
+ .wds-list-item-prompt.negative a:hover {
112
+ color: var(--color-sentiment-negative-primary-hover);
113
+ }
114
+ .wds-list-item-prompt.negative a:active {
115
+ color: var(--color-sentiment-negative-primary-active);
116
+ }
117
+ .np-prompt-interactive.wds-list-item-prompt.negative:hover {
118
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
119
+ }
120
+ .np-prompt-interactive.wds-list-item-prompt.negative:active {
121
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
122
+ }
123
+ .wds-list-item-prompt.positive,
124
+ .wds-list-item-prompt.discount,
125
+ .wds-list-item-prompt.savings {
126
+ background-color: var(--color-sentiment-positive-secondary);
127
+ color: var(--color-sentiment-positive-primary);
128
+ }
129
+ .wds-list-item-prompt.positive a,
130
+ .wds-list-item-prompt.discount a,
131
+ .wds-list-item-prompt.savings a {
132
+ color: var(--color-sentiment-positive-primary);
133
+ }
134
+ .wds-list-item-prompt.positive a:hover,
135
+ .wds-list-item-prompt.discount a:hover,
136
+ .wds-list-item-prompt.savings a:hover {
137
+ color: var(--color-sentiment-positive-primary-hover);
138
+ }
139
+ .wds-list-item-prompt.positive a:active,
140
+ .wds-list-item-prompt.discount a:active,
141
+ .wds-list-item-prompt.savings a:active {
142
+ color: var(--color-sentiment-positive-primary-active);
143
+ }
144
+ .np-prompt-interactive.wds-list-item-prompt.positive:hover,
145
+ .np-prompt-interactive.wds-list-item-prompt.discount:hover,
146
+ .np-prompt-interactive.wds-list-item-prompt.savings:hover {
147
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
148
+ }
149
+ .np-prompt-interactive.wds-list-item-prompt.positive:active,
150
+ .np-prompt-interactive.wds-list-item-prompt.discount:active,
151
+ .np-prompt-interactive.wds-list-item-prompt.savings:active {
152
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
153
+ }
154
+ .wds-list-item-prompt.neutral {
155
+ background-color: rgba(134,167,189,0.10196);
156
+ background-color: var(--color-background-neutral);
157
+ color: #37517e;
158
+ color: var(--color-content-primary);
159
+ }
160
+ .wds-list-item-prompt.neutral a {
161
+ color: #37517e;
162
+ color: var(--color-content-primary);
163
+ }
164
+ .np-prompt-interactive.wds-list-item-prompt.neutral:hover {
165
+ background-color: var(--color-background-neutral-hover);
166
+ }
167
+ .np-prompt-interactive.wds-list-item-prompt.neutral:active {
168
+ background-color: var(--color-background-neutral-active);
169
+ }
170
+ .wds-list-item-prompt.warning {
171
+ background-color: var(--color-sentiment-warning-secondary);
172
+ color: var(--color-sentiment-warning-content);
173
+ }
174
+ .wds-list-item-prompt.warning a {
175
+ color: var(--color-sentiment-warning-content);
176
+ }
177
+ .wds-list-item-prompt.warning a:hover {
178
+ color: var(--color-sentiment-warning-content-hover);
179
+ }
180
+ .wds-list-item-prompt.warning a:active {
181
+ color: var(--color-sentiment-warning-content-active);
182
+ }
183
+ .np-prompt-interactive.wds-list-item-prompt.warning:hover {
184
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
185
+ }
186
+ .np-prompt-interactive.wds-list-item-prompt.warning:active {
187
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
188
+ }
@@ -2662,6 +2662,194 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2662
2662
  border-radius: 9999px !important;
2663
2663
  border-radius: var(--radius-full) !important;
2664
2664
  }
2665
+ .wds-list-item {
2666
+ padding: 16px;
2667
+ padding: var(--size-16);
2668
+ border-radius: 16px;
2669
+ border-radius: var(--radius-medium);
2670
+ background-color: #ffffff;
2671
+ background-color: var(--color-background-screen);
2672
+ gap: 16px;
2673
+ gap: var(--size-16);
2674
+ }
2675
+ .wds-list-item-interactive {
2676
+ cursor: pointer;
2677
+ }
2678
+ .wds-list-item-interactive:hover {
2679
+ background-color: var(--color-background-screen-hover);
2680
+ }
2681
+ .wds-list-item-interactive:active {
2682
+ background-color: var(--color-background-screen-active);
2683
+ }
2684
+ .wds-list-item-media-image {
2685
+ width: var(--item-media-image-size);
2686
+ height: var(--item-media-image-size);
2687
+ }
2688
+ .wds-list-item-body {
2689
+ width: 100%;
2690
+ }
2691
+ .wds-list-item-title {
2692
+ color: #37517e;
2693
+ color: var(--color-content-primary);
2694
+ }
2695
+ .wds-list-item-additional-info {
2696
+ color: #768e9c;
2697
+ color: var(--color-content-tertiary);
2698
+ }
2699
+ .wds-list-item-value {
2700
+ flex: 0 0 auto;
2701
+ }
2702
+ .wds-list-item-control {
2703
+ flex: 0 0 auto;
2704
+ }
2705
+ .wds-list-item-spotlight-active {
2706
+ background-color: rgba(134,167,189,0.10196);
2707
+ background-color: var(--color-background-neutral);
2708
+ }
2709
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
2710
+ background-color: var(--color-background-neutral-hover);
2711
+ }
2712
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
2713
+ background-color: var(--color-background-neutral-active);
2714
+ }
2715
+ .wds-list-item-spotlight-inactive {
2716
+ background-color: rgba(134, 167, 189, 0.025);
2717
+ border: 1px dashed rgba(0,0,0,0.10196);
2718
+ border: 1px dashed var(--color-border-neutral);
2719
+ }
2720
+ @supports (color: color-mix(in lch, red, blue)) {
2721
+ .wds-list-item-spotlight-inactive {
2722
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
2723
+ }
2724
+ }
2725
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
2726
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
2727
+ }
2728
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
2729
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
2730
+ }
2731
+ .wds-list-item-prompt {
2732
+ display: inline-flex;
2733
+ padding-top: calc(8px / 2);
2734
+ padding-top: calc(var(--padding-x-small) / 2);
2735
+ padding-bottom: calc(8px / 2);
2736
+ padding-bottom: calc(var(--padding-x-small) / 2);
2737
+ padding-left: calc(8px - 1px);
2738
+ padding-left: calc(var(--padding-x-small) - 1px);
2739
+ padding-right: 8px;
2740
+ padding-right: var(--padding-x-small);
2741
+ border-radius: 10px;
2742
+ border-radius: var(--radius-small);
2743
+ word-break: break-word;
2744
+ word-wrap: break-word;
2745
+ }
2746
+ .wds-list-item-prompt .np-prompt-icon {
2747
+ padding-right: calc(12px / 2);
2748
+ padding-right: calc(var(--size-12) / 2);
2749
+ padding-top: calc(4px - 1px);
2750
+ padding-top: calc(var(--size-4) - 1px);
2751
+ padding-bottom: calc(4px - 1px);
2752
+ padding-bottom: calc(var(--size-4) - 1px);
2753
+ }
2754
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
2755
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
2756
+ color: var(--color-sentiment-positive-primary);
2757
+ }
2758
+ .wds-list-item-prompt a {
2759
+ text-underline-offset: calc(4px / 2);
2760
+ text-underline-offset: calc(var(--size-4) / 2);
2761
+ }
2762
+ .wds-list-item-prompt.np-prompt-interactive {
2763
+ -webkit-text-decoration: none;
2764
+ text-decoration: none;
2765
+ cursor: pointer;
2766
+ border: none;
2767
+ }
2768
+ .wds-list-item-prompt.negative {
2769
+ background-color: var(--color-sentiment-negative-secondary);
2770
+ color: var(--color-sentiment-negative-primary);
2771
+ }
2772
+ .wds-list-item-prompt.negative a {
2773
+ color: var(--color-sentiment-negative-primary);
2774
+ }
2775
+ .wds-list-item-prompt.negative a:hover {
2776
+ color: var(--color-sentiment-negative-primary-hover);
2777
+ }
2778
+ .wds-list-item-prompt.negative a:active {
2779
+ color: var(--color-sentiment-negative-primary-active);
2780
+ }
2781
+ .np-prompt-interactive.wds-list-item-prompt.negative:hover {
2782
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
2783
+ }
2784
+ .np-prompt-interactive.wds-list-item-prompt.negative:active {
2785
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
2786
+ }
2787
+ .wds-list-item-prompt.positive,
2788
+ .wds-list-item-prompt.discount,
2789
+ .wds-list-item-prompt.savings {
2790
+ background-color: var(--color-sentiment-positive-secondary);
2791
+ color: var(--color-sentiment-positive-primary);
2792
+ }
2793
+ .wds-list-item-prompt.positive a,
2794
+ .wds-list-item-prompt.discount a,
2795
+ .wds-list-item-prompt.savings a {
2796
+ color: var(--color-sentiment-positive-primary);
2797
+ }
2798
+ .wds-list-item-prompt.positive a:hover,
2799
+ .wds-list-item-prompt.discount a:hover,
2800
+ .wds-list-item-prompt.savings a:hover {
2801
+ color: var(--color-sentiment-positive-primary-hover);
2802
+ }
2803
+ .wds-list-item-prompt.positive a:active,
2804
+ .wds-list-item-prompt.discount a:active,
2805
+ .wds-list-item-prompt.savings a:active {
2806
+ color: var(--color-sentiment-positive-primary-active);
2807
+ }
2808
+ .np-prompt-interactive.wds-list-item-prompt.positive:hover,
2809
+ .np-prompt-interactive.wds-list-item-prompt.discount:hover,
2810
+ .np-prompt-interactive.wds-list-item-prompt.savings:hover {
2811
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
2812
+ }
2813
+ .np-prompt-interactive.wds-list-item-prompt.positive:active,
2814
+ .np-prompt-interactive.wds-list-item-prompt.discount:active,
2815
+ .np-prompt-interactive.wds-list-item-prompt.savings:active {
2816
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
2817
+ }
2818
+ .wds-list-item-prompt.neutral {
2819
+ background-color: rgba(134,167,189,0.10196);
2820
+ background-color: var(--color-background-neutral);
2821
+ color: #37517e;
2822
+ color: var(--color-content-primary);
2823
+ }
2824
+ .wds-list-item-prompt.neutral a {
2825
+ color: #37517e;
2826
+ color: var(--color-content-primary);
2827
+ }
2828
+ .np-prompt-interactive.wds-list-item-prompt.neutral:hover {
2829
+ background-color: var(--color-background-neutral-hover);
2830
+ }
2831
+ .np-prompt-interactive.wds-list-item-prompt.neutral:active {
2832
+ background-color: var(--color-background-neutral-active);
2833
+ }
2834
+ .wds-list-item-prompt.warning {
2835
+ background-color: var(--color-sentiment-warning-secondary);
2836
+ color: var(--color-sentiment-warning-content);
2837
+ }
2838
+ .wds-list-item-prompt.warning a {
2839
+ color: var(--color-sentiment-warning-content);
2840
+ }
2841
+ .wds-list-item-prompt.warning a:hover {
2842
+ color: var(--color-sentiment-warning-content-hover);
2843
+ }
2844
+ .wds-list-item-prompt.warning a:active {
2845
+ color: var(--color-sentiment-warning-content-active);
2846
+ }
2847
+ .np-prompt-interactive.wds-list-item-prompt.warning:hover {
2848
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
2849
+ }
2850
+ .np-prompt-interactive.wds-list-item-prompt.warning:active {
2851
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
2852
+ }
2665
2853
  .np-field-control {
2666
2854
  margin-top: 4px;
2667
2855
  margin-top: var(--size-4);