@transferwise/components 0.0.0-experimental-76b7ab6 → 0.0.0-experimental-fd6654d

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 (49) hide show
  1. package/build/index.js +1 -0
  2. package/build/index.js.map +1 -1
  3. package/build/index.mjs +1 -1
  4. package/build/main.css +185 -3
  5. package/build/styles/item/Item.css +185 -0
  6. package/build/styles/main.css +185 -3
  7. package/build/styles/switch/Switch.css +0 -3
  8. package/build/test-utils/assets/apple-pay-logo.svg +84 -0
  9. package/build/types/index.d.ts +2 -0
  10. package/build/types/index.d.ts.map +1 -1
  11. package/build/types/item/Item.d.ts +41 -0
  12. package/build/types/item/Item.d.ts.map +1 -0
  13. package/build/types/item/ItemAdditionalInfo.d.ts +9 -0
  14. package/build/types/item/ItemAdditionalInfo.d.ts.map +1 -0
  15. package/build/types/item/ItemCheckbox.d.ts +4 -0
  16. package/build/types/item/ItemCheckbox.d.ts.map +1 -0
  17. package/build/types/item/ItemIconButton.d.ts +6 -0
  18. package/build/types/item/ItemIconButton.d.ts.map +1 -0
  19. package/build/types/item/ItemMedia.d.ts +19 -0
  20. package/build/types/item/ItemMedia.d.ts.map +1 -0
  21. package/build/types/item/ItemNavigation.d.ts +4 -0
  22. package/build/types/item/ItemNavigation.d.ts.map +1 -0
  23. package/build/types/item/index.d.ts +6 -0
  24. package/build/types/item/index.d.ts.map +1 -0
  25. package/build/types/item/prompt/Prompt.d.ts +12 -0
  26. package/build/types/item/prompt/Prompt.d.ts.map +1 -0
  27. package/build/types/test-utils/fake-data.d.ts +2 -0
  28. package/build/types/test-utils/fake-data.d.ts.map +1 -1
  29. package/package.json +3 -3
  30. package/src/index.ts +2 -0
  31. package/src/item/Item.css +185 -0
  32. package/src/item/Item.less +178 -0
  33. package/src/item/Item.story.tsx +124 -0
  34. package/src/item/Item.tsx +170 -0
  35. package/src/item/ItemAdditionalInfo.tsx +31 -0
  36. package/src/item/ItemCheckbox.tsx +16 -0
  37. package/src/item/ItemIconButton.tsx +17 -0
  38. package/src/item/ItemMedia.tsx +52 -0
  39. package/src/item/ItemNavigation.tsx +16 -0
  40. package/src/item/index.ts +6 -0
  41. package/src/item/prompt/Prompt.spec.tsx +77 -0
  42. package/src/item/prompt/Prompt.story.tsx +170 -0
  43. package/src/item/prompt/Prompt.tsx +44 -0
  44. package/src/main.css +185 -3
  45. package/src/main.less +1 -0
  46. package/src/switch/Switch.css +0 -3
  47. package/src/switch/Switch.less +0 -1
  48. package/src/test-utils/assets/apple-pay-logo.svg +84 -0
  49. package/src/test-utils/fake-data.ts +5 -0
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
@@ -2648,6 +2648,191 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2648
2648
  border-radius: 9999px !important;
2649
2649
  border-radius: var(--radius-full) !important;
2650
2650
  }
2651
+ .np-item {
2652
+ padding: 16px;
2653
+ padding: var(--size-16);
2654
+ border-radius: 24px;
2655
+ border-radius: var(--radius-large);
2656
+ background-color: #ffffff;
2657
+ background-color: var(--color-background-screen);
2658
+ gap: 16px;
2659
+ gap: var(--size-16);
2660
+ }
2661
+ .np-item-interactive {
2662
+ cursor: pointer;
2663
+ }
2664
+ .np-item-interactive:hover {
2665
+ background-color: var(--color-background-screen-hover);
2666
+ }
2667
+ .np-item-interactive:active {
2668
+ background-color: var(--color-background-screen-active);
2669
+ }
2670
+ .np-item-media-image {
2671
+ width: var(--item-media-image-size);
2672
+ height: var(--item-media-image-size);
2673
+ }
2674
+ .np-item-title {
2675
+ color: #37517e;
2676
+ color: var(--color-content-primary);
2677
+ }
2678
+ .np-item-additional-info {
2679
+ color: #768e9c;
2680
+ color: var(--color-content-tertiary);
2681
+ }
2682
+ .np-item-value {
2683
+ flex: 0 0 auto;
2684
+ }
2685
+ .np-item-control {
2686
+ flex: 0 0 auto;
2687
+ }
2688
+ .np-item-spotlight-active {
2689
+ background-color: rgba(134,167,189,0.10196);
2690
+ background-color: var(--color-background-neutral);
2691
+ }
2692
+ .np-item-spotlight-active:hover {
2693
+ background-color: var(--color-background-neutral-hover);
2694
+ }
2695
+ .np-item-spotlight-active:active {
2696
+ background-color: var(--color-background-neutral-active);
2697
+ }
2698
+ .np-item-spotlight-inactive {
2699
+ background-color: rgba(134, 167, 189, 0.025);
2700
+ border: 1px dashed rgba(0,0,0,0.10196);
2701
+ border: 1px dashed var(--color-border-neutral);
2702
+ }
2703
+ @supports (color: color-mix(in lch, red, blue)) {
2704
+ .np-item-spotlight-inactive {
2705
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
2706
+ }
2707
+ }
2708
+ .np-item-spotlight-inactive:hover {
2709
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
2710
+ }
2711
+ .np-item-spotlight-inactive:active {
2712
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
2713
+ }
2714
+ .np-item-prompt {
2715
+ display: inline-flex;
2716
+ padding-top: calc(8px / 2);
2717
+ padding-top: calc(var(--padding-x-small) / 2);
2718
+ padding-bottom: calc(8px / 2);
2719
+ padding-bottom: calc(var(--padding-x-small) / 2);
2720
+ padding-left: calc(8px - 1px);
2721
+ padding-left: calc(var(--padding-x-small) - 1px);
2722
+ padding-right: 8px;
2723
+ padding-right: var(--padding-x-small);
2724
+ border-radius: 10px;
2725
+ border-radius: var(--radius-small);
2726
+ word-break: break-word;
2727
+ word-wrap: break-word;
2728
+ }
2729
+ .np-item-prompt .np-prompt-icon {
2730
+ padding-right: calc(12px / 2);
2731
+ padding-right: calc(var(--size-12) / 2);
2732
+ padding-top: calc(4px - 1px);
2733
+ padding-top: calc(var(--size-4) - 1px);
2734
+ padding-bottom: calc(4px - 1px);
2735
+ padding-bottom: calc(var(--size-4) - 1px);
2736
+ }
2737
+ .np-item-prompt .np-prompt-icon .tw-icon-tags,
2738
+ .np-item-prompt .np-prompt-icon .tw-icon-confetti {
2739
+ color: var(--color-sentiment-positive-primary);
2740
+ }
2741
+ .np-item-prompt a {
2742
+ text-underline-offset: calc(4px / 2);
2743
+ text-underline-offset: calc(var(--size-4) / 2);
2744
+ }
2745
+ .np-item-prompt.np-prompt-interactive {
2746
+ -webkit-text-decoration: none;
2747
+ text-decoration: none;
2748
+ cursor: pointer;
2749
+ border: none;
2750
+ }
2751
+ .np-item-prompt.negative {
2752
+ background-color: var(--color-sentiment-negative-secondary);
2753
+ color: var(--color-sentiment-negative-primary);
2754
+ }
2755
+ .np-item-prompt.negative a {
2756
+ color: var(--color-sentiment-negative-primary);
2757
+ }
2758
+ .np-item-prompt.negative a:hover {
2759
+ color: var(--color-sentiment-negative-primary-hover);
2760
+ }
2761
+ .np-item-prompt.negative a:active {
2762
+ color: var(--color-sentiment-negative-primary-active);
2763
+ }
2764
+ .np-prompt-interactive.np-item-prompt.negative:hover {
2765
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
2766
+ }
2767
+ .np-prompt-interactive.np-item-prompt.negative:active {
2768
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
2769
+ }
2770
+ .np-item-prompt.positive,
2771
+ .np-item-prompt.discount,
2772
+ .np-item-prompt.savings {
2773
+ background-color: var(--color-sentiment-positive-secondary);
2774
+ color: var(--color-sentiment-positive-primary);
2775
+ }
2776
+ .np-item-prompt.positive a,
2777
+ .np-item-prompt.discount a,
2778
+ .np-item-prompt.savings a {
2779
+ color: var(--color-sentiment-positive-primary);
2780
+ }
2781
+ .np-item-prompt.positive a:hover,
2782
+ .np-item-prompt.discount a:hover,
2783
+ .np-item-prompt.savings a:hover {
2784
+ color: var(--color-sentiment-positive-primary-hover);
2785
+ }
2786
+ .np-item-prompt.positive a:active,
2787
+ .np-item-prompt.discount a:active,
2788
+ .np-item-prompt.savings a:active {
2789
+ color: var(--color-sentiment-positive-primary-active);
2790
+ }
2791
+ .np-prompt-interactive.np-item-prompt.positive:hover,
2792
+ .np-prompt-interactive.np-item-prompt.discount:hover,
2793
+ .np-prompt-interactive.np-item-prompt.savings:hover {
2794
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
2795
+ }
2796
+ .np-prompt-interactive.np-item-prompt.positive:active,
2797
+ .np-prompt-interactive.np-item-prompt.discount:active,
2798
+ .np-prompt-interactive.np-item-prompt.savings:active {
2799
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
2800
+ }
2801
+ .np-item-prompt.neutral {
2802
+ background-color: rgba(134,167,189,0.10196);
2803
+ background-color: var(--color-background-neutral);
2804
+ color: #37517e;
2805
+ color: var(--color-content-primary);
2806
+ }
2807
+ .np-item-prompt.neutral a {
2808
+ color: #37517e;
2809
+ color: var(--color-content-primary);
2810
+ }
2811
+ .np-prompt-interactive.np-item-prompt.neutral:hover {
2812
+ background-color: var(--color-background-neutral-hover);
2813
+ }
2814
+ .np-prompt-interactive.np-item-prompt.neutral:active {
2815
+ background-color: var(--color-background-neutral-active);
2816
+ }
2817
+ .np-item-prompt.warning {
2818
+ background-color: var(--color-sentiment-warning-secondary);
2819
+ color: var(--color-sentiment-warning-content);
2820
+ }
2821
+ .np-item-prompt.warning a {
2822
+ color: var(--color-sentiment-warning-content);
2823
+ }
2824
+ .np-item-prompt.warning a:hover {
2825
+ color: var(--color-sentiment-warning-content-hover);
2826
+ }
2827
+ .np-item-prompt.warning a:active {
2828
+ color: var(--color-sentiment-warning-content-active);
2829
+ }
2830
+ .np-prompt-interactive.np-item-prompt.warning:hover {
2831
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
2832
+ }
2833
+ .np-prompt-interactive.np-item-prompt.warning:active {
2834
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
2835
+ }
2651
2836
  .np-field-control {
2652
2837
  margin-top: 4px;
2653
2838
  margin-top: var(--size-4);
@@ -5165,9 +5350,6 @@ html:not([dir="rtl"]) .np-navigation-option {
5165
5350
  width: 50px;
5166
5351
  padding: 2px;
5167
5352
  border-radius: 16px;
5168
- -webkit-user-select: none;
5169
- -moz-user-select: none;
5170
- user-select: none;
5171
5353
  }
5172
5354
  .np-switch:focus {
5173
5355
  outline: none;
@@ -0,0 +1,185 @@
1
+ .np-item {
2
+ padding: 16px;
3
+ padding: var(--size-16);
4
+ border-radius: 24px;
5
+ border-radius: var(--radius-large);
6
+ background-color: #ffffff;
7
+ background-color: var(--color-background-screen);
8
+ gap: 16px;
9
+ gap: var(--size-16);
10
+ }
11
+ .np-item-interactive {
12
+ cursor: pointer;
13
+ }
14
+ .np-item-interactive:hover {
15
+ background-color: var(--color-background-screen-hover);
16
+ }
17
+ .np-item-interactive:active {
18
+ background-color: var(--color-background-screen-active);
19
+ }
20
+ .np-item-media-image {
21
+ width: var(--item-media-image-size);
22
+ height: var(--item-media-image-size);
23
+ }
24
+ .np-item-title {
25
+ color: #37517e;
26
+ color: var(--color-content-primary);
27
+ }
28
+ .np-item-additional-info {
29
+ color: #768e9c;
30
+ color: var(--color-content-tertiary);
31
+ }
32
+ .np-item-value {
33
+ flex: 0 0 auto;
34
+ }
35
+ .np-item-control {
36
+ flex: 0 0 auto;
37
+ }
38
+ .np-item-spotlight-active {
39
+ background-color: rgba(134,167,189,0.10196);
40
+ background-color: var(--color-background-neutral);
41
+ }
42
+ .np-item-spotlight-active:hover {
43
+ background-color: var(--color-background-neutral-hover);
44
+ }
45
+ .np-item-spotlight-active:active {
46
+ background-color: var(--color-background-neutral-active);
47
+ }
48
+ .np-item-spotlight-inactive {
49
+ background-color: rgba(134, 167, 189, 0.025);
50
+ border: 1px dashed rgba(0,0,0,0.10196);
51
+ border: 1px dashed var(--color-border-neutral);
52
+ }
53
+ @supports (color: color-mix(in lch, red, blue)) {
54
+ .np-item-spotlight-inactive {
55
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
56
+ }
57
+ }
58
+ .np-item-spotlight-inactive:hover {
59
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
60
+ }
61
+ .np-item-spotlight-inactive:active {
62
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
63
+ }
64
+ .np-item-prompt {
65
+ display: inline-flex;
66
+ padding-top: calc(8px / 2);
67
+ padding-top: calc(var(--padding-x-small) / 2);
68
+ padding-bottom: calc(8px / 2);
69
+ padding-bottom: calc(var(--padding-x-small) / 2);
70
+ padding-left: calc(8px - 1px);
71
+ padding-left: calc(var(--padding-x-small) - 1px);
72
+ padding-right: 8px;
73
+ padding-right: var(--padding-x-small);
74
+ border-radius: 10px;
75
+ border-radius: var(--radius-small);
76
+ word-break: break-word;
77
+ word-wrap: break-word;
78
+ }
79
+ .np-item-prompt .np-prompt-icon {
80
+ padding-right: calc(12px / 2);
81
+ padding-right: calc(var(--size-12) / 2);
82
+ padding-top: calc(4px - 1px);
83
+ padding-top: calc(var(--size-4) - 1px);
84
+ padding-bottom: calc(4px - 1px);
85
+ padding-bottom: calc(var(--size-4) - 1px);
86
+ }
87
+ .np-item-prompt .np-prompt-icon .tw-icon-tags,
88
+ .np-item-prompt .np-prompt-icon .tw-icon-confetti {
89
+ color: var(--color-sentiment-positive-primary);
90
+ }
91
+ .np-item-prompt a {
92
+ text-underline-offset: calc(4px / 2);
93
+ text-underline-offset: calc(var(--size-4) / 2);
94
+ }
95
+ .np-item-prompt.np-prompt-interactive {
96
+ -webkit-text-decoration: none;
97
+ text-decoration: none;
98
+ cursor: pointer;
99
+ border: none;
100
+ }
101
+ .np-item-prompt.negative {
102
+ background-color: var(--color-sentiment-negative-secondary);
103
+ color: var(--color-sentiment-negative-primary);
104
+ }
105
+ .np-item-prompt.negative a {
106
+ color: var(--color-sentiment-negative-primary);
107
+ }
108
+ .np-item-prompt.negative a:hover {
109
+ color: var(--color-sentiment-negative-primary-hover);
110
+ }
111
+ .np-item-prompt.negative a:active {
112
+ color: var(--color-sentiment-negative-primary-active);
113
+ }
114
+ .np-prompt-interactive.np-item-prompt.negative:hover {
115
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
116
+ }
117
+ .np-prompt-interactive.np-item-prompt.negative:active {
118
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
119
+ }
120
+ .np-item-prompt.positive,
121
+ .np-item-prompt.discount,
122
+ .np-item-prompt.savings {
123
+ background-color: var(--color-sentiment-positive-secondary);
124
+ color: var(--color-sentiment-positive-primary);
125
+ }
126
+ .np-item-prompt.positive a,
127
+ .np-item-prompt.discount a,
128
+ .np-item-prompt.savings a {
129
+ color: var(--color-sentiment-positive-primary);
130
+ }
131
+ .np-item-prompt.positive a:hover,
132
+ .np-item-prompt.discount a:hover,
133
+ .np-item-prompt.savings a:hover {
134
+ color: var(--color-sentiment-positive-primary-hover);
135
+ }
136
+ .np-item-prompt.positive a:active,
137
+ .np-item-prompt.discount a:active,
138
+ .np-item-prompt.savings a:active {
139
+ color: var(--color-sentiment-positive-primary-active);
140
+ }
141
+ .np-prompt-interactive.np-item-prompt.positive:hover,
142
+ .np-prompt-interactive.np-item-prompt.discount:hover,
143
+ .np-prompt-interactive.np-item-prompt.savings:hover {
144
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
145
+ }
146
+ .np-prompt-interactive.np-item-prompt.positive:active,
147
+ .np-prompt-interactive.np-item-prompt.discount:active,
148
+ .np-prompt-interactive.np-item-prompt.savings:active {
149
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
150
+ }
151
+ .np-item-prompt.neutral {
152
+ background-color: rgba(134,167,189,0.10196);
153
+ background-color: var(--color-background-neutral);
154
+ color: #37517e;
155
+ color: var(--color-content-primary);
156
+ }
157
+ .np-item-prompt.neutral a {
158
+ color: #37517e;
159
+ color: var(--color-content-primary);
160
+ }
161
+ .np-prompt-interactive.np-item-prompt.neutral:hover {
162
+ background-color: var(--color-background-neutral-hover);
163
+ }
164
+ .np-prompt-interactive.np-item-prompt.neutral:active {
165
+ background-color: var(--color-background-neutral-active);
166
+ }
167
+ .np-item-prompt.warning {
168
+ background-color: var(--color-sentiment-warning-secondary);
169
+ color: var(--color-sentiment-warning-content);
170
+ }
171
+ .np-item-prompt.warning a {
172
+ color: var(--color-sentiment-warning-content);
173
+ }
174
+ .np-item-prompt.warning a:hover {
175
+ color: var(--color-sentiment-warning-content-hover);
176
+ }
177
+ .np-item-prompt.warning a:active {
178
+ color: var(--color-sentiment-warning-content-active);
179
+ }
180
+ .np-prompt-interactive.np-item-prompt.warning:hover {
181
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
182
+ }
183
+ .np-prompt-interactive.np-item-prompt.warning:active {
184
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
185
+ }
@@ -2648,6 +2648,191 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
2648
2648
  border-radius: 9999px !important;
2649
2649
  border-radius: var(--radius-full) !important;
2650
2650
  }
2651
+ .np-item {
2652
+ padding: 16px;
2653
+ padding: var(--size-16);
2654
+ border-radius: 24px;
2655
+ border-radius: var(--radius-large);
2656
+ background-color: #ffffff;
2657
+ background-color: var(--color-background-screen);
2658
+ gap: 16px;
2659
+ gap: var(--size-16);
2660
+ }
2661
+ .np-item-interactive {
2662
+ cursor: pointer;
2663
+ }
2664
+ .np-item-interactive:hover {
2665
+ background-color: var(--color-background-screen-hover);
2666
+ }
2667
+ .np-item-interactive:active {
2668
+ background-color: var(--color-background-screen-active);
2669
+ }
2670
+ .np-item-media-image {
2671
+ width: var(--item-media-image-size);
2672
+ height: var(--item-media-image-size);
2673
+ }
2674
+ .np-item-title {
2675
+ color: #37517e;
2676
+ color: var(--color-content-primary);
2677
+ }
2678
+ .np-item-additional-info {
2679
+ color: #768e9c;
2680
+ color: var(--color-content-tertiary);
2681
+ }
2682
+ .np-item-value {
2683
+ flex: 0 0 auto;
2684
+ }
2685
+ .np-item-control {
2686
+ flex: 0 0 auto;
2687
+ }
2688
+ .np-item-spotlight-active {
2689
+ background-color: rgba(134,167,189,0.10196);
2690
+ background-color: var(--color-background-neutral);
2691
+ }
2692
+ .np-item-spotlight-active:hover {
2693
+ background-color: var(--color-background-neutral-hover);
2694
+ }
2695
+ .np-item-spotlight-active:active {
2696
+ background-color: var(--color-background-neutral-active);
2697
+ }
2698
+ .np-item-spotlight-inactive {
2699
+ background-color: rgba(134, 167, 189, 0.025);
2700
+ border: 1px dashed rgba(0,0,0,0.10196);
2701
+ border: 1px dashed var(--color-border-neutral);
2702
+ }
2703
+ @supports (color: color-mix(in lch, red, blue)) {
2704
+ .np-item-spotlight-inactive {
2705
+ background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
2706
+ }
2707
+ }
2708
+ .np-item-spotlight-inactive:hover {
2709
+ background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
2710
+ }
2711
+ .np-item-spotlight-inactive:active {
2712
+ background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
2713
+ }
2714
+ .np-item-prompt {
2715
+ display: inline-flex;
2716
+ padding-top: calc(8px / 2);
2717
+ padding-top: calc(var(--padding-x-small) / 2);
2718
+ padding-bottom: calc(8px / 2);
2719
+ padding-bottom: calc(var(--padding-x-small) / 2);
2720
+ padding-left: calc(8px - 1px);
2721
+ padding-left: calc(var(--padding-x-small) - 1px);
2722
+ padding-right: 8px;
2723
+ padding-right: var(--padding-x-small);
2724
+ border-radius: 10px;
2725
+ border-radius: var(--radius-small);
2726
+ word-break: break-word;
2727
+ word-wrap: break-word;
2728
+ }
2729
+ .np-item-prompt .np-prompt-icon {
2730
+ padding-right: calc(12px / 2);
2731
+ padding-right: calc(var(--size-12) / 2);
2732
+ padding-top: calc(4px - 1px);
2733
+ padding-top: calc(var(--size-4) - 1px);
2734
+ padding-bottom: calc(4px - 1px);
2735
+ padding-bottom: calc(var(--size-4) - 1px);
2736
+ }
2737
+ .np-item-prompt .np-prompt-icon .tw-icon-tags,
2738
+ .np-item-prompt .np-prompt-icon .tw-icon-confetti {
2739
+ color: var(--color-sentiment-positive-primary);
2740
+ }
2741
+ .np-item-prompt a {
2742
+ text-underline-offset: calc(4px / 2);
2743
+ text-underline-offset: calc(var(--size-4) / 2);
2744
+ }
2745
+ .np-item-prompt.np-prompt-interactive {
2746
+ -webkit-text-decoration: none;
2747
+ text-decoration: none;
2748
+ cursor: pointer;
2749
+ border: none;
2750
+ }
2751
+ .np-item-prompt.negative {
2752
+ background-color: var(--color-sentiment-negative-secondary);
2753
+ color: var(--color-sentiment-negative-primary);
2754
+ }
2755
+ .np-item-prompt.negative a {
2756
+ color: var(--color-sentiment-negative-primary);
2757
+ }
2758
+ .np-item-prompt.negative a:hover {
2759
+ color: var(--color-sentiment-negative-primary-hover);
2760
+ }
2761
+ .np-item-prompt.negative a:active {
2762
+ color: var(--color-sentiment-negative-primary-active);
2763
+ }
2764
+ .np-prompt-interactive.np-item-prompt.negative:hover {
2765
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
2766
+ }
2767
+ .np-prompt-interactive.np-item-prompt.negative:active {
2768
+ background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
2769
+ }
2770
+ .np-item-prompt.positive,
2771
+ .np-item-prompt.discount,
2772
+ .np-item-prompt.savings {
2773
+ background-color: var(--color-sentiment-positive-secondary);
2774
+ color: var(--color-sentiment-positive-primary);
2775
+ }
2776
+ .np-item-prompt.positive a,
2777
+ .np-item-prompt.discount a,
2778
+ .np-item-prompt.savings a {
2779
+ color: var(--color-sentiment-positive-primary);
2780
+ }
2781
+ .np-item-prompt.positive a:hover,
2782
+ .np-item-prompt.discount a:hover,
2783
+ .np-item-prompt.savings a:hover {
2784
+ color: var(--color-sentiment-positive-primary-hover);
2785
+ }
2786
+ .np-item-prompt.positive a:active,
2787
+ .np-item-prompt.discount a:active,
2788
+ .np-item-prompt.savings a:active {
2789
+ color: var(--color-sentiment-positive-primary-active);
2790
+ }
2791
+ .np-prompt-interactive.np-item-prompt.positive:hover,
2792
+ .np-prompt-interactive.np-item-prompt.discount:hover,
2793
+ .np-prompt-interactive.np-item-prompt.savings:hover {
2794
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
2795
+ }
2796
+ .np-prompt-interactive.np-item-prompt.positive:active,
2797
+ .np-prompt-interactive.np-item-prompt.discount:active,
2798
+ .np-prompt-interactive.np-item-prompt.savings:active {
2799
+ background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
2800
+ }
2801
+ .np-item-prompt.neutral {
2802
+ background-color: rgba(134,167,189,0.10196);
2803
+ background-color: var(--color-background-neutral);
2804
+ color: #37517e;
2805
+ color: var(--color-content-primary);
2806
+ }
2807
+ .np-item-prompt.neutral a {
2808
+ color: #37517e;
2809
+ color: var(--color-content-primary);
2810
+ }
2811
+ .np-prompt-interactive.np-item-prompt.neutral:hover {
2812
+ background-color: var(--color-background-neutral-hover);
2813
+ }
2814
+ .np-prompt-interactive.np-item-prompt.neutral:active {
2815
+ background-color: var(--color-background-neutral-active);
2816
+ }
2817
+ .np-item-prompt.warning {
2818
+ background-color: var(--color-sentiment-warning-secondary);
2819
+ color: var(--color-sentiment-warning-content);
2820
+ }
2821
+ .np-item-prompt.warning a {
2822
+ color: var(--color-sentiment-warning-content);
2823
+ }
2824
+ .np-item-prompt.warning a:hover {
2825
+ color: var(--color-sentiment-warning-content-hover);
2826
+ }
2827
+ .np-item-prompt.warning a:active {
2828
+ color: var(--color-sentiment-warning-content-active);
2829
+ }
2830
+ .np-prompt-interactive.np-item-prompt.warning:hover {
2831
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
2832
+ }
2833
+ .np-prompt-interactive.np-item-prompt.warning:active {
2834
+ background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
2835
+ }
2651
2836
  .np-field-control {
2652
2837
  margin-top: 4px;
2653
2838
  margin-top: var(--size-4);
@@ -5165,9 +5350,6 @@ html:not([dir="rtl"]) .np-navigation-option {
5165
5350
  width: 50px;
5166
5351
  padding: 2px;
5167
5352
  border-radius: 16px;
5168
- -webkit-user-select: none;
5169
- -moz-user-select: none;
5170
- user-select: none;
5171
5353
  }
5172
5354
  .np-switch:focus {
5173
5355
  outline: none;
@@ -4,9 +4,6 @@
4
4
  width: 50px;
5
5
  padding: 2px;
6
6
  border-radius: 16px;
7
- -webkit-user-select: none;
8
- -moz-user-select: none;
9
- user-select: none;
10
7
  }
11
8
  .np-switch:focus {
12
9
  outline: none;