@transferwise/components 0.0.0-experimental-feb2ddf → 0.0.0-experimental-d155e01
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.
- package/build/i18n/cs.json +9 -9
- package/build/i18n/cs.json.js +9 -9
- package/build/i18n/cs.json.mjs +9 -9
- package/build/index.js +0 -1
- package/build/index.js.map +1 -1
- package/build/index.mjs +1 -1
- package/build/main.css +0 -188
- package/build/styles/main.css +0 -188
- package/build/types/index.d.ts +0 -2
- package/build/types/index.d.ts.map +1 -1
- package/build/types/test-utils/fake-data.d.ts +0 -2
- package/build/types/test-utils/fake-data.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/i18n/cs.json +9 -9
- package/src/index.ts +0 -2
- package/src/main.css +0 -188
- package/src/main.less +0 -1
- package/src/test-utils/fake-data.ts +0 -5
- package/build/styles/listItem/ListItem.css +0 -188
- package/build/test-utils/assets/apple-pay-logo.svg +0 -84
- package/build/types/listItem/ListItem.d.ts +0 -43
- package/build/types/listItem/ListItem.d.ts.map +0 -1
- package/build/types/listItem/ListItemAdditionalInfo.d.ts +0 -9
- package/build/types/listItem/ListItemAdditionalInfo.d.ts.map +0 -1
- package/build/types/listItem/ListItemButton.d.ts +0 -4
- package/build/types/listItem/ListItemButton.d.ts.map +0 -1
- package/build/types/listItem/ListItemCheckbox.d.ts +0 -4
- package/build/types/listItem/ListItemCheckbox.d.ts.map +0 -1
- package/build/types/listItem/ListItemIconButton.d.ts +0 -7
- package/build/types/listItem/ListItemIconButton.d.ts.map +0 -1
- package/build/types/listItem/ListItemMedia.d.ts +0 -19
- package/build/types/listItem/ListItemMedia.d.ts.map +0 -1
- package/build/types/listItem/ListItemNavigation.d.ts +0 -4
- package/build/types/listItem/ListItemNavigation.d.ts.map +0 -1
- package/build/types/listItem/ListItemSwitch.d.ts +0 -3
- package/build/types/listItem/ListItemSwitch.d.ts.map +0 -1
- package/build/types/listItem/index.d.ts +0 -6
- package/build/types/listItem/index.d.ts.map +0 -1
- package/build/types/listItem/prompt/Prompt.d.ts +0 -12
- package/build/types/listItem/prompt/Prompt.d.ts.map +0 -1
- package/build/types/listItem/useItemControl.d.ts +0 -5
- package/build/types/listItem/useItemControl.d.ts.map +0 -1
- package/src/listItem/ListItem.css +0 -188
- package/src/listItem/ListItem.less +0 -182
- package/src/listItem/ListItem.story.tsx +0 -273
- package/src/listItem/ListItem.tsx +0 -183
- package/src/listItem/ListItemAdditionalInfo.tsx +0 -31
- package/src/listItem/ListItemButton.spec.tsx +0 -90
- package/src/listItem/ListItemButton.tsx +0 -18
- package/src/listItem/ListItemCheckbox.tsx +0 -11
- package/src/listItem/ListItemIconButton.tsx +0 -13
- package/src/listItem/ListItemMedia.tsx +0 -52
- package/src/listItem/ListItemNavigation.tsx +0 -11
- package/src/listItem/ListItemSwitch.tsx +0 -8
- package/src/listItem/index.ts +0 -6
- package/src/listItem/prompt/Prompt.spec.tsx +0 -77
- package/src/listItem/prompt/Prompt.story.tsx +0 -170
- package/src/listItem/prompt/Prompt.tsx +0 -44
- package/src/listItem/useItemControl.tsx +0 -12
- package/src/test-utils/assets/apple-pay-logo.svg +0 -84
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AvatarViewProps } from '../avatarView';
|
|
2
|
-
import { AvatarLayoutProps } from '../avatarLayout';
|
|
3
|
-
import { ImageProps } from '../image/Image';
|
|
4
|
-
type SizeProp = {
|
|
5
|
-
size?: 32 | 40 | 48 | 56 | 72;
|
|
6
|
-
};
|
|
7
|
-
export type ItemAvatarViewProps = Omit<AvatarViewProps, 'size' | 'interactive'> & SizeProp;
|
|
8
|
-
export declare const AvatarView: ({ className, size, ...props }: ItemAvatarViewProps) => import("react").JSX.Element;
|
|
9
|
-
export type ItemAvatarLayoutProps = Omit<AvatarLayoutProps, 'size' | 'interactive'> & SizeProp;
|
|
10
|
-
export declare const AvatarLayout: ({ className, size, ...props }: ItemAvatarLayoutProps) => import("react").JSX.Element;
|
|
11
|
-
export type ItemImageProps = Omit<ImageProps, 'stretch' | 'shrink' | 'id' | 'alt'> & SizeProp & {
|
|
12
|
-
alt?: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* TODO: mention that image is for rare cases not for DS illustrations, they discouraged
|
|
16
|
-
*/
|
|
17
|
-
export declare const Image: ({ alt, size, ...props }: ItemImageProps) => import("react").JSX.Element;
|
|
18
|
-
export {};
|
|
19
|
-
//# sourceMappingURL=ListItemMedia.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemMedia.d.ts","sourceRoot":"","sources":["../../../src/listItem/ListItemMedia.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,eAAe,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAA+B,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACjF,OAAO,EAAwB,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGlE,KAAK,QAAQ,GAAG;IAAE,IAAI,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;CAAE,CAAC;AAElD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,QAAQ,CAAC;AAE3F,eAAO,MAAM,UAAU,kCAAwC,mBAAmB,gCAQjF,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,aAAa,CAAC,GAAG,QAAQ,CAAC;AAE/F,eAAO,MAAM,YAAY,kCAAwC,qBAAqB,gCAQrF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,QAAQ,GAAG,IAAI,GAAG,KAAK,CAAC,GAChF,QAAQ,GAAG;IACT,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,KAAK,4BAAuC,cAAc,gCAYtE,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from '../button/Button.types';
|
|
2
|
-
export type ItemNavigationProps = Pick<ButtonProps, 'onClick' | 'href'>;
|
|
3
|
-
export declare const Navigation: ({ onClick }: ItemNavigationProps) => import("react").JSX.Element;
|
|
4
|
-
//# sourceMappingURL=ListItemNavigation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemNavigation.d.ts","sourceRoot":"","sources":["../../../src/listItem/ListItemNavigation.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAGrD,MAAM,MAAM,mBAAmB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,MAAM,CAAC,CAAC;AAExE,eAAO,MAAM,UAAU,gBAAoC,mBAAmB,gCAI7E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemSwitch.d.ts","sourceRoot":"","sources":["../../../src/listItem/ListItemSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyB,WAAW,EAAE,MAAM,WAAW,CAAC;AAG/D,eAAO,MAAM,MAAM,UAAoB,WAAW,gCAIjD,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type { Props as ItemProps } from './ListItem';
|
|
2
|
-
export type { ItemAdditionalInfoProps } from './ListItemAdditionalInfo';
|
|
3
|
-
export type { ItemCheckboxProps } from './ListItemCheckbox';
|
|
4
|
-
export type { ItemImageProps, ItemAvatarViewProps, ItemAvatarLayoutProps } from './ListItemMedia';
|
|
5
|
-
export { default } from './ListItem';
|
|
6
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/listItem/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,YAAY,CAAC;AACrD,YAAY,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAElG,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Sentiment } from '../../common';
|
|
2
|
-
import { LinkProps } from '../../link';
|
|
3
|
-
export type ItemPromptProps = {
|
|
4
|
-
type: `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}` | 'discount' | 'savings';
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
action?: Pick<LinkProps, 'href' | 'target' | 'onClick'> & {
|
|
7
|
-
'aria-label'?: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export declare const ItemPrompt: ({ type, children, action }: ItemPromptProps) => import("react").JSX.Element;
|
|
11
|
-
export default ItemPrompt;
|
|
12
|
-
//# sourceMappingURL=Prompt.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../src/listItem/prompt/Prompt.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EACA,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,GACpF,UAAU,GACV,SAAS,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,MAAM,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAC,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CACrF,CAAC;AAEF,eAAO,MAAM,UAAU,+BAAgC,eAAe,gCAyBrE,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useItemControl.d.ts","sourceRoot":"","sources":["../../../src/listItem/useItemControl.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwC,aAAa,EAAE,MAAM,YAAY,CAAC;AAEjF,wBAAgB,cAAc,CAAC,WAAW,EAAE,aAAa;;EAQxD"}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
.wds-list-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
|
-
.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:hover {
|
|
46
|
-
background-color: var(--color-background-neutral-hover);
|
|
47
|
-
}
|
|
48
|
-
.wds-list-item-spotlight-active: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:hover {
|
|
62
|
-
background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
|
|
63
|
-
}
|
|
64
|
-
.wds-list-item-spotlight-inactive: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
|
-
}
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
.wds-list-item {
|
|
2
|
-
padding: var(--size-16);
|
|
3
|
-
border-radius: var(--radius-large);
|
|
4
|
-
background-color: var(--color-background-screen);
|
|
5
|
-
gap: var(--size-16);
|
|
6
|
-
|
|
7
|
-
&-interactive {
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
&:hover {
|
|
10
|
-
background-color: var(--color-background-screen-hover);
|
|
11
|
-
}
|
|
12
|
-
&:active {
|
|
13
|
-
background-color: var(--color-background-screen-active);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&-media {
|
|
18
|
-
|
|
19
|
-
&-image {
|
|
20
|
-
width: var(--item-media-image-size);
|
|
21
|
-
height: var(--item-media-image-size);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&-body {
|
|
26
|
-
width: 100%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-title {
|
|
30
|
-
color: var(--color-content-primary);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&-additional-info {
|
|
34
|
-
color: var(--color-content-tertiary);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&-value {
|
|
38
|
-
flex: 0 0 auto;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
&-control {
|
|
42
|
-
flex: 0 0 auto;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
&-spotlight {
|
|
46
|
-
&-active {
|
|
47
|
-
background-color: var(--color-background-neutral);
|
|
48
|
-
|
|
49
|
-
&:hover {
|
|
50
|
-
background-color: var(--color-background-neutral-hover);
|
|
51
|
-
}
|
|
52
|
-
&:active {
|
|
53
|
-
background-color: var(--color-background-neutral-active);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
&-inactive {
|
|
58
|
-
background-color: color-mix(in srgb, var(--color-background-neutral) 25%, transparent);
|
|
59
|
-
border: 1px dashed var(--color-border-neutral);
|
|
60
|
-
|
|
61
|
-
&:hover {
|
|
62
|
-
background-color: color-mix(in srgb, var(--color-background-neutral-hover) 25%, transparent);
|
|
63
|
-
}
|
|
64
|
-
&:active {
|
|
65
|
-
background-color: color-mix(in srgb, var(--color-background-neutral-active) 25%, transparent);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
&-prompt {
|
|
71
|
-
display: inline-flex;
|
|
72
|
-
padding-top: calc(var(--padding-x-small) / 2);
|
|
73
|
-
padding-bottom: calc(var(--padding-x-small) / 2);
|
|
74
|
-
padding-left: calc(var(--padding-x-small) - 1px);
|
|
75
|
-
padding-right: var(--padding-x-small);
|
|
76
|
-
border-radius: var(--radius-small);
|
|
77
|
-
word-break: break-word;
|
|
78
|
-
overflow-wrap: break-word;
|
|
79
|
-
|
|
80
|
-
.np-prompt-icon {
|
|
81
|
-
padding-right: calc(var(--size-12) / 2);
|
|
82
|
-
padding-top: calc(var(--size-4) - 1px);
|
|
83
|
-
padding-bottom: calc(var(--size-4) - 1px);
|
|
84
|
-
|
|
85
|
-
.tw-icon-tags,
|
|
86
|
-
.tw-icon-confetti {
|
|
87
|
-
color: var(--color-sentiment-positive-primary);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
a {
|
|
92
|
-
text-underline-offset: calc(var(--size-4) / 2);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
&.np-prompt-interactive {
|
|
96
|
-
text-decoration: none;
|
|
97
|
-
cursor: pointer;
|
|
98
|
-
border: none;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&.negative {
|
|
102
|
-
background-color: var(--color-sentiment-negative-secondary);
|
|
103
|
-
color: var(--color-sentiment-negative-primary);
|
|
104
|
-
a {
|
|
105
|
-
color: var(--color-sentiment-negative-primary);
|
|
106
|
-
&:hover {
|
|
107
|
-
color: var(--color-sentiment-negative-primary-hover);
|
|
108
|
-
}
|
|
109
|
-
&:active {
|
|
110
|
-
color: var(--color-sentiment-negative-primary-active);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
.np-prompt-interactive& {
|
|
114
|
-
&:hover {
|
|
115
|
-
background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 95%, var(--color-sentiment-negative-primary));
|
|
116
|
-
}
|
|
117
|
-
&:active {
|
|
118
|
-
background-color: color-mix(in srgb, var(--color-sentiment-negative-secondary) 90%, var(--color-sentiment-negative-primary));
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
&.positive,
|
|
123
|
-
&.discount,
|
|
124
|
-
&.savings {
|
|
125
|
-
background-color: var(--color-sentiment-positive-secondary);
|
|
126
|
-
color: var(--color-sentiment-positive-primary);
|
|
127
|
-
a {
|
|
128
|
-
color: var(--color-sentiment-positive-primary);
|
|
129
|
-
&:hover {
|
|
130
|
-
color: var(--color-sentiment-positive-primary-hover);
|
|
131
|
-
}
|
|
132
|
-
&:active {
|
|
133
|
-
color: var(--color-sentiment-positive-primary-active);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
.np-prompt-interactive& {
|
|
137
|
-
&:hover {
|
|
138
|
-
background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 95%, var(--color-sentiment-positive-primary));
|
|
139
|
-
}
|
|
140
|
-
&:active {
|
|
141
|
-
background-color: color-mix(in srgb, var(--color-sentiment-positive-secondary) 90%, var(--color-sentiment-positive-primary));
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
&.neutral {
|
|
146
|
-
background-color: var(--color-background-neutral);
|
|
147
|
-
color: var(--color-content-primary);
|
|
148
|
-
a {
|
|
149
|
-
color: var(--color-content-primary);
|
|
150
|
-
}
|
|
151
|
-
.np-prompt-interactive& {
|
|
152
|
-
&:hover {
|
|
153
|
-
background-color: var(--color-background-neutral-hover);
|
|
154
|
-
}
|
|
155
|
-
&:active {
|
|
156
|
-
background-color: var(--color-background-neutral-active);
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
&.warning {
|
|
161
|
-
background-color: var(--color-sentiment-warning-secondary);
|
|
162
|
-
color: var(--color-sentiment-warning-content);
|
|
163
|
-
a {
|
|
164
|
-
color: var(--color-sentiment-warning-content);
|
|
165
|
-
&:hover {
|
|
166
|
-
color: var(--color-sentiment-warning-content-hover);
|
|
167
|
-
}
|
|
168
|
-
&:active {
|
|
169
|
-
color: var(--color-sentiment-warning-content-active);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
.np-prompt-interactive& {
|
|
173
|
-
&:hover {
|
|
174
|
-
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 90%, var(--color-sentiment-warning-primary));
|
|
175
|
-
}
|
|
176
|
-
&:active {
|
|
177
|
-
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 80%, var(--color-sentiment-warning-primary));
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
}
|