@transferwise/components 0.0.0-experimental-5a23a43 → 0.0.0-experimental-eac6eda

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 +196 -0
  8. package/build/styles/listItem/ListItem.css +196 -0
  9. package/build/styles/main.css +196 -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 +3 -3
  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 +196 -0
  43. package/src/listItem/ListItem.less +192 -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 +196 -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,202 @@ 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:hover .wds-list-item-control .wds-Button {
2682
+ background-color: var(--Button-background-hover);
2683
+ color: var(--Button-color-hover);
2684
+ transition: none;
2685
+ }
2686
+ .wds-list-item-interactive:active {
2687
+ background-color: var(--color-background-screen-active);
2688
+ }
2689
+ .wds-list-item-interactive .wds-list-item-control .wds-Button {
2690
+ transition: none;
2691
+ }
2692
+ .wds-list-item-media-image {
2693
+ width: var(--item-media-image-size);
2694
+ height: var(--item-media-image-size);
2695
+ }
2696
+ .wds-list-item-body {
2697
+ width: 100%;
2698
+ }
2699
+ .wds-list-item-title {
2700
+ color: #37517e;
2701
+ color: var(--color-content-primary);
2702
+ }
2703
+ .wds-list-item-additional-info {
2704
+ color: #768e9c;
2705
+ color: var(--color-content-tertiary);
2706
+ }
2707
+ .wds-list-item-value {
2708
+ flex: 0 0 auto;
2709
+ }
2710
+ .wds-list-item-control {
2711
+ flex: 0 0 auto;
2712
+ }
2713
+ .wds-list-item-spotlight-active {
2714
+ background-color: rgba(134,167,189,0.10196);
2715
+ background-color: var(--color-background-neutral);
2716
+ }
2717
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
2718
+ background-color: var(--color-background-neutral-hover);
2719
+ }
2720
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
2721
+ background-color: var(--color-background-neutral-active);
2722
+ }
2723
+ .wds-list-item-spotlight-inactive {
2724
+ background-color: rgba(134, 167, 189, 0.025);
2725
+ border: 1px dashed rgba(0,0,0,0.10196);
2726
+ border: 1px dashed var(--color-border-neutral);
2727
+ }
2728
+ @supports (color: color-mix(in lch, red, blue)) {
2729
+ .wds-list-item-spotlight-inactive {
2730
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
2731
+ }
2732
+ }
2733
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
2734
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
2735
+ }
2736
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
2737
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
2738
+ }
2739
+ .wds-list-item-prompt {
2740
+ display: inline-flex;
2741
+ padding-top: calc(8px / 2);
2742
+ padding-top: calc(var(--padding-x-small) / 2);
2743
+ padding-bottom: calc(8px / 2);
2744
+ padding-bottom: calc(var(--padding-x-small) / 2);
2745
+ padding-left: calc(8px - 1px);
2746
+ padding-left: calc(var(--padding-x-small) - 1px);
2747
+ padding-right: 8px;
2748
+ padding-right: var(--padding-x-small);
2749
+ border-radius: 10px;
2750
+ border-radius: var(--radius-small);
2751
+ word-break: break-word;
2752
+ word-wrap: break-word;
2753
+ }
2754
+ .wds-list-item-prompt .np-prompt-icon {
2755
+ padding-right: calc(12px / 2);
2756
+ padding-right: calc(var(--size-12) / 2);
2757
+ padding-top: calc(4px - 1px);
2758
+ padding-top: calc(var(--size-4) - 1px);
2759
+ padding-bottom: calc(4px - 1px);
2760
+ padding-bottom: calc(var(--size-4) - 1px);
2761
+ }
2762
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
2763
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
2764
+ color: var(--color-sentiment-positive-primary);
2765
+ }
2766
+ .wds-list-item-prompt a {
2767
+ text-underline-offset: calc(4px / 2);
2768
+ text-underline-offset: calc(var(--size-4) / 2);
2769
+ }
2770
+ .wds-list-item-prompt.np-prompt-interactive {
2771
+ -webkit-text-decoration: none;
2772
+ text-decoration: none;
2773
+ cursor: pointer;
2774
+ border: none;
2775
+ }
2776
+ .wds-list-item-prompt.negative {
2777
+ background-color: var(--color-sentiment-negative-secondary);
2778
+ color: var(--color-sentiment-negative-primary);
2779
+ }
2780
+ .wds-list-item-prompt.negative a {
2781
+ color: var(--color-sentiment-negative-primary);
2782
+ }
2783
+ .wds-list-item-prompt.negative a:hover {
2784
+ color: var(--color-sentiment-negative-primary-hover);
2785
+ }
2786
+ .wds-list-item-prompt.negative a:active {
2787
+ color: var(--color-sentiment-negative-primary-active);
2788
+ }
2789
+ .np-prompt-interactive.wds-list-item-prompt.negative:hover {
2790
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
2791
+ }
2792
+ .np-prompt-interactive.wds-list-item-prompt.negative:active {
2793
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
2794
+ }
2795
+ .wds-list-item-prompt.positive,
2796
+ .wds-list-item-prompt.discount,
2797
+ .wds-list-item-prompt.savings {
2798
+ background-color: var(--color-sentiment-positive-secondary);
2799
+ color: var(--color-sentiment-positive-primary);
2800
+ }
2801
+ .wds-list-item-prompt.positive a,
2802
+ .wds-list-item-prompt.discount a,
2803
+ .wds-list-item-prompt.savings a {
2804
+ color: var(--color-sentiment-positive-primary);
2805
+ }
2806
+ .wds-list-item-prompt.positive a:hover,
2807
+ .wds-list-item-prompt.discount a:hover,
2808
+ .wds-list-item-prompt.savings a:hover {
2809
+ color: var(--color-sentiment-positive-primary-hover);
2810
+ }
2811
+ .wds-list-item-prompt.positive a:active,
2812
+ .wds-list-item-prompt.discount a:active,
2813
+ .wds-list-item-prompt.savings a:active {
2814
+ color: var(--color-sentiment-positive-primary-active);
2815
+ }
2816
+ .np-prompt-interactive.wds-list-item-prompt.positive:hover,
2817
+ .np-prompt-interactive.wds-list-item-prompt.discount:hover,
2818
+ .np-prompt-interactive.wds-list-item-prompt.savings:hover {
2819
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
2820
+ }
2821
+ .np-prompt-interactive.wds-list-item-prompt.positive:active,
2822
+ .np-prompt-interactive.wds-list-item-prompt.discount:active,
2823
+ .np-prompt-interactive.wds-list-item-prompt.savings:active {
2824
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
2825
+ }
2826
+ .wds-list-item-prompt.neutral {
2827
+ background-color: rgba(134,167,189,0.10196);
2828
+ background-color: var(--color-background-neutral);
2829
+ color: #37517e;
2830
+ color: var(--color-content-primary);
2831
+ }
2832
+ .wds-list-item-prompt.neutral a {
2833
+ color: #37517e;
2834
+ color: var(--color-content-primary);
2835
+ }
2836
+ .np-prompt-interactive.wds-list-item-prompt.neutral:hover {
2837
+ background-color: var(--color-background-neutral-hover);
2838
+ }
2839
+ .np-prompt-interactive.wds-list-item-prompt.neutral:active {
2840
+ background-color: var(--color-background-neutral-active);
2841
+ }
2842
+ .wds-list-item-prompt.warning {
2843
+ background-color: var(--color-sentiment-warning-secondary);
2844
+ color: var(--color-sentiment-warning-content);
2845
+ }
2846
+ .wds-list-item-prompt.warning a {
2847
+ color: var(--color-sentiment-warning-content);
2848
+ }
2849
+ .wds-list-item-prompt.warning a:hover {
2850
+ color: var(--color-sentiment-warning-content-hover);
2851
+ }
2852
+ .wds-list-item-prompt.warning a:active {
2853
+ color: var(--color-sentiment-warning-content-active);
2854
+ }
2855
+ .np-prompt-interactive.wds-list-item-prompt.warning:hover {
2856
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
2857
+ }
2858
+ .np-prompt-interactive.wds-list-item-prompt.warning:active {
2859
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
2860
+ }
2665
2861
  .np-field-control {
2666
2862
  margin-top: 4px;
2667
2863
  margin-top: var(--size-4);
@@ -0,0 +1,196 @@
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:hover .wds-list-item-control .wds-Button {
18
+ background-color: var(--Button-background-hover);
19
+ color: var(--Button-color-hover);
20
+ transition: none;
21
+ }
22
+ .wds-list-item-interactive:active {
23
+ background-color: var(--color-background-screen-active);
24
+ }
25
+ .wds-list-item-interactive .wds-list-item-control .wds-Button {
26
+ transition: none;
27
+ }
28
+ .wds-list-item-media-image {
29
+ width: var(--item-media-image-size);
30
+ height: var(--item-media-image-size);
31
+ }
32
+ .wds-list-item-body {
33
+ width: 100%;
34
+ }
35
+ .wds-list-item-title {
36
+ color: #37517e;
37
+ color: var(--color-content-primary);
38
+ }
39
+ .wds-list-item-additional-info {
40
+ color: #768e9c;
41
+ color: var(--color-content-tertiary);
42
+ }
43
+ .wds-list-item-value {
44
+ flex: 0 0 auto;
45
+ }
46
+ .wds-list-item-control {
47
+ flex: 0 0 auto;
48
+ }
49
+ .wds-list-item-spotlight-active {
50
+ background-color: rgba(134,167,189,0.10196);
51
+ background-color: var(--color-background-neutral);
52
+ }
53
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
54
+ background-color: var(--color-background-neutral-hover);
55
+ }
56
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
57
+ background-color: var(--color-background-neutral-active);
58
+ }
59
+ .wds-list-item-spotlight-inactive {
60
+ background-color: rgba(134, 167, 189, 0.025);
61
+ border: 1px dashed rgba(0,0,0,0.10196);
62
+ border: 1px dashed var(--color-border-neutral);
63
+ }
64
+ @supports (color: color-mix(in lch, red, blue)) {
65
+ .wds-list-item-spotlight-inactive {
66
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
67
+ }
68
+ }
69
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
70
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
71
+ }
72
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
73
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
74
+ }
75
+ .wds-list-item-prompt {
76
+ display: inline-flex;
77
+ padding-top: calc(8px / 2);
78
+ padding-top: calc(var(--padding-x-small) / 2);
79
+ padding-bottom: calc(8px / 2);
80
+ padding-bottom: calc(var(--padding-x-small) / 2);
81
+ padding-left: calc(8px - 1px);
82
+ padding-left: calc(var(--padding-x-small) - 1px);
83
+ padding-right: 8px;
84
+ padding-right: var(--padding-x-small);
85
+ border-radius: 10px;
86
+ border-radius: var(--radius-small);
87
+ word-break: break-word;
88
+ word-wrap: break-word;
89
+ }
90
+ .wds-list-item-prompt .np-prompt-icon {
91
+ padding-right: calc(12px / 2);
92
+ padding-right: calc(var(--size-12) / 2);
93
+ padding-top: calc(4px - 1px);
94
+ padding-top: calc(var(--size-4) - 1px);
95
+ padding-bottom: calc(4px - 1px);
96
+ padding-bottom: calc(var(--size-4) - 1px);
97
+ }
98
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
99
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
100
+ color: var(--color-sentiment-positive-primary);
101
+ }
102
+ .wds-list-item-prompt a {
103
+ text-underline-offset: calc(4px / 2);
104
+ text-underline-offset: calc(var(--size-4) / 2);
105
+ }
106
+ .wds-list-item-prompt.np-prompt-interactive {
107
+ -webkit-text-decoration: none;
108
+ text-decoration: none;
109
+ cursor: pointer;
110
+ border: none;
111
+ }
112
+ .wds-list-item-prompt.negative {
113
+ background-color: var(--color-sentiment-negative-secondary);
114
+ color: var(--color-sentiment-negative-primary);
115
+ }
116
+ .wds-list-item-prompt.negative a {
117
+ color: var(--color-sentiment-negative-primary);
118
+ }
119
+ .wds-list-item-prompt.negative a:hover {
120
+ color: var(--color-sentiment-negative-primary-hover);
121
+ }
122
+ .wds-list-item-prompt.negative a:active {
123
+ color: var(--color-sentiment-negative-primary-active);
124
+ }
125
+ .np-prompt-interactive.wds-list-item-prompt.negative:hover {
126
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
127
+ }
128
+ .np-prompt-interactive.wds-list-item-prompt.negative:active {
129
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
130
+ }
131
+ .wds-list-item-prompt.positive,
132
+ .wds-list-item-prompt.discount,
133
+ .wds-list-item-prompt.savings {
134
+ background-color: var(--color-sentiment-positive-secondary);
135
+ color: var(--color-sentiment-positive-primary);
136
+ }
137
+ .wds-list-item-prompt.positive a,
138
+ .wds-list-item-prompt.discount a,
139
+ .wds-list-item-prompt.savings a {
140
+ color: var(--color-sentiment-positive-primary);
141
+ }
142
+ .wds-list-item-prompt.positive a:hover,
143
+ .wds-list-item-prompt.discount a:hover,
144
+ .wds-list-item-prompt.savings a:hover {
145
+ color: var(--color-sentiment-positive-primary-hover);
146
+ }
147
+ .wds-list-item-prompt.positive a:active,
148
+ .wds-list-item-prompt.discount a:active,
149
+ .wds-list-item-prompt.savings a:active {
150
+ color: var(--color-sentiment-positive-primary-active);
151
+ }
152
+ .np-prompt-interactive.wds-list-item-prompt.positive:hover,
153
+ .np-prompt-interactive.wds-list-item-prompt.discount:hover,
154
+ .np-prompt-interactive.wds-list-item-prompt.savings:hover {
155
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
156
+ }
157
+ .np-prompt-interactive.wds-list-item-prompt.positive:active,
158
+ .np-prompt-interactive.wds-list-item-prompt.discount:active,
159
+ .np-prompt-interactive.wds-list-item-prompt.savings:active {
160
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
161
+ }
162
+ .wds-list-item-prompt.neutral {
163
+ background-color: rgba(134,167,189,0.10196);
164
+ background-color: var(--color-background-neutral);
165
+ color: #37517e;
166
+ color: var(--color-content-primary);
167
+ }
168
+ .wds-list-item-prompt.neutral a {
169
+ color: #37517e;
170
+ color: var(--color-content-primary);
171
+ }
172
+ .np-prompt-interactive.wds-list-item-prompt.neutral:hover {
173
+ background-color: var(--color-background-neutral-hover);
174
+ }
175
+ .np-prompt-interactive.wds-list-item-prompt.neutral:active {
176
+ background-color: var(--color-background-neutral-active);
177
+ }
178
+ .wds-list-item-prompt.warning {
179
+ background-color: var(--color-sentiment-warning-secondary);
180
+ color: var(--color-sentiment-warning-content);
181
+ }
182
+ .wds-list-item-prompt.warning a {
183
+ color: var(--color-sentiment-warning-content);
184
+ }
185
+ .wds-list-item-prompt.warning a:hover {
186
+ color: var(--color-sentiment-warning-content-hover);
187
+ }
188
+ .wds-list-item-prompt.warning a:active {
189
+ color: var(--color-sentiment-warning-content-active);
190
+ }
191
+ .np-prompt-interactive.wds-list-item-prompt.warning:hover {
192
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
193
+ }
194
+ .np-prompt-interactive.wds-list-item-prompt.warning:active {
195
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
196
+ }
@@ -2662,6 +2662,202 @@ 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:hover .wds-list-item-control .wds-Button {
2682
+ background-color: var(--Button-background-hover);
2683
+ color: var(--Button-color-hover);
2684
+ transition: none;
2685
+ }
2686
+ .wds-list-item-interactive:active {
2687
+ background-color: var(--color-background-screen-active);
2688
+ }
2689
+ .wds-list-item-interactive .wds-list-item-control .wds-Button {
2690
+ transition: none;
2691
+ }
2692
+ .wds-list-item-media-image {
2693
+ width: var(--item-media-image-size);
2694
+ height: var(--item-media-image-size);
2695
+ }
2696
+ .wds-list-item-body {
2697
+ width: 100%;
2698
+ }
2699
+ .wds-list-item-title {
2700
+ color: #37517e;
2701
+ color: var(--color-content-primary);
2702
+ }
2703
+ .wds-list-item-additional-info {
2704
+ color: #768e9c;
2705
+ color: var(--color-content-tertiary);
2706
+ }
2707
+ .wds-list-item-value {
2708
+ flex: 0 0 auto;
2709
+ }
2710
+ .wds-list-item-control {
2711
+ flex: 0 0 auto;
2712
+ }
2713
+ .wds-list-item-spotlight-active {
2714
+ background-color: rgba(134,167,189,0.10196);
2715
+ background-color: var(--color-background-neutral);
2716
+ }
2717
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):hover {
2718
+ background-color: var(--color-background-neutral-hover);
2719
+ }
2720
+ .wds-list-item-spotlight-active:not(.disabled):not(:disabled):active {
2721
+ background-color: var(--color-background-neutral-active);
2722
+ }
2723
+ .wds-list-item-spotlight-inactive {
2724
+ background-color: rgba(134, 167, 189, 0.025);
2725
+ border: 1px dashed rgba(0,0,0,0.10196);
2726
+ border: 1px dashed var(--color-border-neutral);
2727
+ }
2728
+ @supports (color: color-mix(in lch, red, blue)) {
2729
+ .wds-list-item-spotlight-inactive {
2730
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
2731
+ }
2732
+ }
2733
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):hover {
2734
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
2735
+ }
2736
+ .wds-list-item-spotlight-inactive:not(.disabled):not(:disabled):active {
2737
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
2738
+ }
2739
+ .wds-list-item-prompt {
2740
+ display: inline-flex;
2741
+ padding-top: calc(8px / 2);
2742
+ padding-top: calc(var(--padding-x-small) / 2);
2743
+ padding-bottom: calc(8px / 2);
2744
+ padding-bottom: calc(var(--padding-x-small) / 2);
2745
+ padding-left: calc(8px - 1px);
2746
+ padding-left: calc(var(--padding-x-small) - 1px);
2747
+ padding-right: 8px;
2748
+ padding-right: var(--padding-x-small);
2749
+ border-radius: 10px;
2750
+ border-radius: var(--radius-small);
2751
+ word-break: break-word;
2752
+ word-wrap: break-word;
2753
+ }
2754
+ .wds-list-item-prompt .np-prompt-icon {
2755
+ padding-right: calc(12px / 2);
2756
+ padding-right: calc(var(--size-12) / 2);
2757
+ padding-top: calc(4px - 1px);
2758
+ padding-top: calc(var(--size-4) - 1px);
2759
+ padding-bottom: calc(4px - 1px);
2760
+ padding-bottom: calc(var(--size-4) - 1px);
2761
+ }
2762
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-tags,
2763
+ .wds-list-item-prompt .np-prompt-icon .tw-icon-confetti {
2764
+ color: var(--color-sentiment-positive-primary);
2765
+ }
2766
+ .wds-list-item-prompt a {
2767
+ text-underline-offset: calc(4px / 2);
2768
+ text-underline-offset: calc(var(--size-4) / 2);
2769
+ }
2770
+ .wds-list-item-prompt.np-prompt-interactive {
2771
+ -webkit-text-decoration: none;
2772
+ text-decoration: none;
2773
+ cursor: pointer;
2774
+ border: none;
2775
+ }
2776
+ .wds-list-item-prompt.negative {
2777
+ background-color: var(--color-sentiment-negative-secondary);
2778
+ color: var(--color-sentiment-negative-primary);
2779
+ }
2780
+ .wds-list-item-prompt.negative a {
2781
+ color: var(--color-sentiment-negative-primary);
2782
+ }
2783
+ .wds-list-item-prompt.negative a:hover {
2784
+ color: var(--color-sentiment-negative-primary-hover);
2785
+ }
2786
+ .wds-list-item-prompt.negative a:active {
2787
+ color: var(--color-sentiment-negative-primary-active);
2788
+ }
2789
+ .np-prompt-interactive.wds-list-item-prompt.negative:hover {
2790
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
2791
+ }
2792
+ .np-prompt-interactive.wds-list-item-prompt.negative:active {
2793
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
2794
+ }
2795
+ .wds-list-item-prompt.positive,
2796
+ .wds-list-item-prompt.discount,
2797
+ .wds-list-item-prompt.savings {
2798
+ background-color: var(--color-sentiment-positive-secondary);
2799
+ color: var(--color-sentiment-positive-primary);
2800
+ }
2801
+ .wds-list-item-prompt.positive a,
2802
+ .wds-list-item-prompt.discount a,
2803
+ .wds-list-item-prompt.savings a {
2804
+ color: var(--color-sentiment-positive-primary);
2805
+ }
2806
+ .wds-list-item-prompt.positive a:hover,
2807
+ .wds-list-item-prompt.discount a:hover,
2808
+ .wds-list-item-prompt.savings a:hover {
2809
+ color: var(--color-sentiment-positive-primary-hover);
2810
+ }
2811
+ .wds-list-item-prompt.positive a:active,
2812
+ .wds-list-item-prompt.discount a:active,
2813
+ .wds-list-item-prompt.savings a:active {
2814
+ color: var(--color-sentiment-positive-primary-active);
2815
+ }
2816
+ .np-prompt-interactive.wds-list-item-prompt.positive:hover,
2817
+ .np-prompt-interactive.wds-list-item-prompt.discount:hover,
2818
+ .np-prompt-interactive.wds-list-item-prompt.savings:hover {
2819
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
2820
+ }
2821
+ .np-prompt-interactive.wds-list-item-prompt.positive:active,
2822
+ .np-prompt-interactive.wds-list-item-prompt.discount:active,
2823
+ .np-prompt-interactive.wds-list-item-prompt.savings:active {
2824
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
2825
+ }
2826
+ .wds-list-item-prompt.neutral {
2827
+ background-color: rgba(134,167,189,0.10196);
2828
+ background-color: var(--color-background-neutral);
2829
+ color: #37517e;
2830
+ color: var(--color-content-primary);
2831
+ }
2832
+ .wds-list-item-prompt.neutral a {
2833
+ color: #37517e;
2834
+ color: var(--color-content-primary);
2835
+ }
2836
+ .np-prompt-interactive.wds-list-item-prompt.neutral:hover {
2837
+ background-color: var(--color-background-neutral-hover);
2838
+ }
2839
+ .np-prompt-interactive.wds-list-item-prompt.neutral:active {
2840
+ background-color: var(--color-background-neutral-active);
2841
+ }
2842
+ .wds-list-item-prompt.warning {
2843
+ background-color: var(--color-sentiment-warning-secondary);
2844
+ color: var(--color-sentiment-warning-content);
2845
+ }
2846
+ .wds-list-item-prompt.warning a {
2847
+ color: var(--color-sentiment-warning-content);
2848
+ }
2849
+ .wds-list-item-prompt.warning a:hover {
2850
+ color: var(--color-sentiment-warning-content-hover);
2851
+ }
2852
+ .wds-list-item-prompt.warning a:active {
2853
+ color: var(--color-sentiment-warning-content-active);
2854
+ }
2855
+ .np-prompt-interactive.wds-list-item-prompt.warning:hover {
2856
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
2857
+ }
2858
+ .np-prompt-interactive.wds-list-item-prompt.warning:active {
2859
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
2860
+ }
2665
2861
  .np-field-control {
2666
2862
  margin-top: 4px;
2667
2863
  margin-top: var(--size-4);