@transferwise/components 46.116.1 → 46.117.0
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/main.css +60 -131
- package/build/prompt/InlinePrompt/InlinePrompt.js +14 -8
- package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
- package/build/prompt/InlinePrompt/InlinePrompt.mjs +15 -9
- package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
- package/build/sentimentSurface/SentimentSurface.js +6 -5
- package/build/sentimentSurface/SentimentSurface.js.map +1 -1
- package/build/sentimentSurface/SentimentSurface.mjs +6 -5
- package/build/sentimentSurface/SentimentSurface.mjs.map +1 -1
- package/build/styles/button/Button.css +17 -17
- package/build/styles/button/Button.vars.css +16 -16
- package/build/styles/iconButton/IconButton.css +8 -8
- package/build/styles/link/Link.css +1 -0
- package/build/styles/main.css +60 -131
- package/build/styles/prompt/InlinePrompt/InlinePrompt.css +26 -105
- package/build/styles/sentimentSurface/SentimentSurface.css +8 -1
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts +19 -3
- package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -1
- package/build/types/sentimentSurface/SentimentSurface.d.ts +5 -4
- package/build/types/sentimentSurface/SentimentSurface.d.ts.map +1 -1
- package/build/types/sentimentSurface/SentimentSurface.types.d.ts +4 -16
- package/build/types/sentimentSurface/SentimentSurface.types.d.ts.map +1 -1
- package/build/types/test-utils/story-config.d.ts +24 -0
- package/build/types/test-utils/story-config.d.ts.map +1 -1
- package/package.json +12 -11
- package/src/button/Button.css +17 -17
- package/src/button/Button.less +1 -1
- package/src/button/Button.story.tsx +75 -110
- package/src/button/Button.tests.story.tsx +189 -0
- package/src/button/Button.vars.css +16 -16
- package/src/button/Button.vars.less +58 -18
- package/src/iconButton/IconButton.css +8 -8
- package/src/iconButton/IconButton.less +35 -4
- package/src/iconButton/IconButton.story.tsx +72 -3
- package/src/link/Link.css +1 -0
- package/src/link/Link.less +1 -0
- package/src/link/Link.story.tsx +28 -0
- package/src/main.css +60 -131
- package/src/prompt/InlinePrompt/InlinePrompt.css +26 -105
- package/src/prompt/InlinePrompt/InlinePrompt.less +31 -119
- package/src/prompt/InlinePrompt/InlinePrompt.spec.tsx +87 -29
- package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +223 -31
- package/src/prompt/InlinePrompt/InlinePrompt.tsx +42 -11
- package/src/sentimentSurface/SentimentSurface.css +8 -1
- package/src/sentimentSurface/SentimentSurface.docs.mdx +32 -495
- package/src/sentimentSurface/SentimentSurface.less +121 -114
- package/src/sentimentSurface/SentimentSurface.spec.tsx +31 -11
- package/src/sentimentSurface/SentimentSurface.story.tsx +323 -108
- package/src/sentimentSurface/SentimentSurface.tests.story.tsx +90 -40
- package/src/sentimentSurface/SentimentSurface.tsx +16 -9
- package/src/sentimentSurface/SentimentSurface.types.ts +5 -20
- package/src/test-utils/story-config.ts +0 -1
- package/build/sentimentSurface/classMap.js +0 -17
- package/build/sentimentSurface/classMap.js.map +0 -1
- package/build/sentimentSurface/classMap.mjs +0 -14
- package/build/sentimentSurface/classMap.mjs.map +0 -1
- package/build/types/sentimentSurface/classMap.d.ts +0 -4
- package/build/types/sentimentSurface/classMap.d.ts.map +0 -1
- package/src/sentimentSurface/classMap.ts +0 -15
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
.wds-Button {
|
|
2
|
-
--Button-background: var(--color-interactive-accent);
|
|
3
|
-
--Button-background-hover: var(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
--Button-
|
|
2
|
+
--Button-background: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
|
|
3
|
+
--Button-background-hover: var(
|
|
4
|
+
--color-sentiment-interactive-primary-hover,
|
|
5
|
+
var(--color-interactive-accent-hover)
|
|
6
|
+
);
|
|
7
|
+
--Button-background-active: var(
|
|
8
|
+
--color-sentiment-interactive-primary-active,
|
|
9
|
+
var(--color-interactive-accent-active)
|
|
10
|
+
);
|
|
11
|
+
--Button-color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
|
|
12
|
+
--Button-color-hover: var(
|
|
13
|
+
--color-sentiment-interactive-control-hover,
|
|
14
|
+
var(--color-interactive-control-hover)
|
|
15
|
+
);
|
|
16
|
+
--Button-color-active: var(
|
|
17
|
+
--color-sentiment-interactive-control-active,
|
|
18
|
+
var(--color-interactive-control-active)
|
|
19
|
+
);
|
|
8
20
|
--Button-border-radius: var(--radius-full);
|
|
9
21
|
--Button-label-gap: var(--size-4);
|
|
10
22
|
|
|
@@ -16,17 +28,47 @@
|
|
|
16
28
|
--Button-transition-duration: 150ms;
|
|
17
29
|
--Button-transition-easing: ease-in-out;
|
|
18
30
|
|
|
19
|
-
--Button-secondary-background: var(
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
--Button-secondary-
|
|
24
|
-
|
|
31
|
+
--Button-secondary-background: var(
|
|
32
|
+
--color-sentiment-interactive-secondary-neutral,
|
|
33
|
+
var(--color-interactive-neutral)
|
|
34
|
+
);
|
|
35
|
+
--Button-secondary-background-hover: var(
|
|
36
|
+
--color-sentiment-interactive-secondary-neutral-hover,
|
|
37
|
+
var(--color-interactive-neutral-hover)
|
|
38
|
+
);
|
|
39
|
+
--Button-secondary-background-active: var(
|
|
40
|
+
--color-sentiment-interactive-secondary-neutral-active,
|
|
41
|
+
var(--color-interactive-neutral-active)
|
|
42
|
+
);
|
|
43
|
+
--Button-secondary-color: var(
|
|
44
|
+
--color-sentiment-content-primary,
|
|
45
|
+
var(--color-interactive-primary)
|
|
46
|
+
);
|
|
47
|
+
--Button-secondary-color-hover: var(
|
|
48
|
+
--color-sentiment-content-primary-hover,
|
|
49
|
+
var(--color-interactive-primary-hover)
|
|
50
|
+
);
|
|
51
|
+
--Button-secondary-color-active: var(
|
|
52
|
+
--color-sentiment-content-primary-active,
|
|
53
|
+
var(--color-interactive-primary-active)
|
|
54
|
+
);
|
|
25
55
|
|
|
26
|
-
--Button-secondary-neutral-background: var(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
56
|
+
--Button-secondary-neutral-background: var(
|
|
57
|
+
--color-sentiment-interactive-secondary-neutral,
|
|
58
|
+
var(--color-background-neutral)
|
|
59
|
+
);
|
|
60
|
+
--Button-secondary-neutral-background-hover: var(
|
|
61
|
+
--color-sentiment-interactive-secondary-neutral-hover,
|
|
62
|
+
var(--color-background-neutral-hover)
|
|
63
|
+
);
|
|
64
|
+
--Button-secondary-neutral-background-active: var(
|
|
65
|
+
--color-sentiment-interactive-secondary-neutral-active,
|
|
66
|
+
var(--color-background-neutral-active)
|
|
67
|
+
);
|
|
68
|
+
--Button-secondary-neutral-color: var(
|
|
69
|
+
--color-sentiment-content-primary,
|
|
70
|
+
var(--color-content-primary)
|
|
71
|
+
);
|
|
30
72
|
|
|
31
73
|
--Button-tertiary-background: transparent;
|
|
32
74
|
--Button-tertiary-background-hover: var(--color-background-screen-hover);
|
|
@@ -52,5 +94,3 @@
|
|
|
52
94
|
--Button-secondary-negative-color: var(--color-white);
|
|
53
95
|
}
|
|
54
96
|
}
|
|
55
|
-
|
|
56
|
-
|
|
@@ -13,17 +13,17 @@
|
|
|
13
13
|
background-color: var(--color-background-neutral-active);
|
|
14
14
|
}
|
|
15
15
|
.np-icon-button-primary-default {
|
|
16
|
-
color: var(--color-interactive-control);
|
|
16
|
+
color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
|
|
17
17
|
background-color: #00a2dd;
|
|
18
|
-
background-color: var(--color-interactive-accent);
|
|
18
|
+
background-color: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
|
|
19
19
|
}
|
|
20
20
|
.np-icon-button-primary-default:not(.disabled):not(:disabled):hover {
|
|
21
21
|
background-color: #008fc9;
|
|
22
|
-
background-color: var(--color-interactive-accent-hover);
|
|
22
|
+
background-color: var(--color-sentiment-interactive-primary-hover, var(--color-interactive-accent-hover));
|
|
23
23
|
}
|
|
24
24
|
.np-icon-button-primary-default:not(.disabled):not(:disabled):active {
|
|
25
25
|
background-color: #0081ba;
|
|
26
|
-
background-color: var(--color-interactive-accent-active);
|
|
26
|
+
background-color: var(--color-sentiment-interactive-primary-active, var(--color-interactive-accent-active));
|
|
27
27
|
}
|
|
28
28
|
.np-icon-button-primary-negative {
|
|
29
29
|
color: var(--color-contrast-overlay);
|
|
@@ -51,14 +51,14 @@
|
|
|
51
51
|
background-color: var(--color-background-screen-active);
|
|
52
52
|
}
|
|
53
53
|
.np-icon-button-secondary-default {
|
|
54
|
-
color: var(--color-interactive-primary);
|
|
55
|
-
background-color: var(--color-interactive-neutral);
|
|
54
|
+
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
55
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral, var(--color-interactive-neutral));
|
|
56
56
|
}
|
|
57
57
|
.np-icon-button-secondary-default:not(.disabled):not(:disabled):hover {
|
|
58
|
-
background-color: var(--color-interactive-neutral-hover);
|
|
58
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-interactive-neutral-hover));
|
|
59
59
|
}
|
|
60
60
|
.np-icon-button-secondary-default:not(.disabled):not(:disabled):active {
|
|
61
|
-
background-color: var(--color-interactive-neutral-active);
|
|
61
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-interactive-neutral-active));
|
|
62
62
|
}
|
|
63
63
|
.np-theme-personal--bright-green .np-icon-button-secondary-default,
|
|
64
64
|
.np-theme-personal--forest-green .np-icon-button-secondary-default {
|
|
@@ -5,7 +5,21 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
&-primary-default {
|
|
8
|
-
|
|
8
|
+
color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
|
|
9
|
+
background-color: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
|
|
10
|
+
|
|
11
|
+
&:not(.disabled, :disabled):hover {
|
|
12
|
+
background-color: var(
|
|
13
|
+
--color-sentiment-interactive-primary-hover,
|
|
14
|
+
var(--color-interactive-accent-hover)
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
&:not(.disabled, :disabled):active {
|
|
18
|
+
background-color: var(
|
|
19
|
+
--color-sentiment-interactive-primary-active,
|
|
20
|
+
var(--color-interactive-accent-active)
|
|
21
|
+
);
|
|
22
|
+
}
|
|
9
23
|
}
|
|
10
24
|
|
|
11
25
|
&-primary-negative {
|
|
@@ -22,7 +36,24 @@
|
|
|
22
36
|
}
|
|
23
37
|
|
|
24
38
|
&-secondary-default {
|
|
25
|
-
|
|
39
|
+
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
40
|
+
background-color: var(
|
|
41
|
+
--color-sentiment-interactive-secondary-neutral,
|
|
42
|
+
var(--color-interactive-neutral)
|
|
43
|
+
);
|
|
44
|
+
|
|
45
|
+
&:not(.disabled, :disabled):hover {
|
|
46
|
+
background-color: var(
|
|
47
|
+
--color-sentiment-interactive-secondary-neutral-hover,
|
|
48
|
+
var(--color-interactive-neutral-hover)
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
&:not(.disabled, :disabled):active {
|
|
52
|
+
background-color: var(
|
|
53
|
+
--color-sentiment-interactive-secondary-neutral-active,
|
|
54
|
+
var(--color-interactive-neutral-active)
|
|
55
|
+
);
|
|
56
|
+
}
|
|
26
57
|
|
|
27
58
|
.np-theme-personal--bright-green &,
|
|
28
59
|
.np-theme-personal--forest-green & {
|
|
@@ -46,10 +77,10 @@
|
|
|
46
77
|
background-color: var(@bg-color);
|
|
47
78
|
|
|
48
79
|
&:not(.disabled, :disabled):hover {
|
|
49
|
-
background-color
|
|
80
|
+
background-color: ~"var(@{bg-color}-hover)";
|
|
50
81
|
}
|
|
51
82
|
&:not(.disabled, :disabled):active {
|
|
52
|
-
background-color
|
|
83
|
+
background-color: ~"var(@{bg-color}-active)";
|
|
53
84
|
}
|
|
54
85
|
}
|
|
55
86
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* eslint-disable react/jsx-key */
|
|
2
1
|
import { Meta, StoryObj } from '@storybook/react-webpack5';
|
|
3
2
|
import { ArrowLeft, Cross, Defrost, Edit, Menu, Plus } from '@transferwise/icons';
|
|
4
3
|
import IconButton, { Props } from './IconButton';
|
|
5
4
|
import { action } from 'storybook/actions';
|
|
6
5
|
import Body from '../body';
|
|
6
|
+
import SentimentSurface from '../sentimentSurface';
|
|
7
7
|
|
|
8
8
|
export default {
|
|
9
9
|
title: 'Actions/IconButton',
|
|
@@ -94,14 +94,83 @@ export const Basic: Story = {
|
|
|
94
94
|
>
|
|
95
95
|
{['Primary', 'Secondary', 'Tertiary', 'Minimal', 'Neg primary', 'Neg secondary'].map(
|
|
96
96
|
(variant) => (
|
|
97
|
-
<Body type="body-default-bold">
|
|
97
|
+
<Body key={variant} type="body-default-bold">
|
|
98
|
+
{variant}
|
|
99
|
+
</Body>
|
|
98
100
|
),
|
|
99
101
|
)}
|
|
100
102
|
{sizes.map((size) => (
|
|
101
|
-
<Template size={size} />
|
|
103
|
+
<Template key={size} size={size} />
|
|
102
104
|
))}
|
|
103
105
|
<Template size={72} disabled />
|
|
104
106
|
</div>
|
|
105
107
|
);
|
|
106
108
|
},
|
|
107
109
|
};
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* `IconButton` is sentiment-aware and will automatically adjust its
|
|
113
|
+
* colours if wrapped inside the [SentimentSurface](/?path=/docs/content-sentimentsurface--docs) component
|
|
114
|
+
*/
|
|
115
|
+
export const SentimentAwareness: Story = {
|
|
116
|
+
render: () => {
|
|
117
|
+
return (
|
|
118
|
+
<>
|
|
119
|
+
{(['success', 'warning', 'negative', 'neutral', 'proposition'] as const).map(
|
|
120
|
+
(sentiment) => (
|
|
121
|
+
<SentimentSurface
|
|
122
|
+
key={sentiment}
|
|
123
|
+
sentiment={sentiment}
|
|
124
|
+
className="p-a-1 d-flex align-items-center"
|
|
125
|
+
style={{ gap: 'var(--size-8)' }}
|
|
126
|
+
>
|
|
127
|
+
<IconButton
|
|
128
|
+
size={32}
|
|
129
|
+
aria-label="Primary action"
|
|
130
|
+
priority="primary"
|
|
131
|
+
type="default"
|
|
132
|
+
onClick={action('button click')}
|
|
133
|
+
>
|
|
134
|
+
<Plus />
|
|
135
|
+
</IconButton>
|
|
136
|
+
<IconButton
|
|
137
|
+
size={32}
|
|
138
|
+
aria-label="Secondary action"
|
|
139
|
+
priority="secondary"
|
|
140
|
+
type="default"
|
|
141
|
+
onClick={action('button click')}
|
|
142
|
+
>
|
|
143
|
+
<Defrost />
|
|
144
|
+
</IconButton>
|
|
145
|
+
<IconButton
|
|
146
|
+
size={32}
|
|
147
|
+
aria-label="Disabled action"
|
|
148
|
+
priority="primary"
|
|
149
|
+
type="default"
|
|
150
|
+
disabled
|
|
151
|
+
onClick={action('button click')}
|
|
152
|
+
>
|
|
153
|
+
<Menu />
|
|
154
|
+
</IconButton>
|
|
155
|
+
</SentimentSurface>
|
|
156
|
+
),
|
|
157
|
+
)}
|
|
158
|
+
</>
|
|
159
|
+
);
|
|
160
|
+
},
|
|
161
|
+
parameters: {
|
|
162
|
+
docs: {
|
|
163
|
+
source: { type: 'dynamic' },
|
|
164
|
+
canvas: {
|
|
165
|
+
sourceState: 'hidden',
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
},
|
|
169
|
+
decorators: [
|
|
170
|
+
(Story) => (
|
|
171
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '16px' }}>
|
|
172
|
+
<Story />
|
|
173
|
+
</div>
|
|
174
|
+
),
|
|
175
|
+
],
|
|
176
|
+
};
|
package/src/link/Link.css
CHANGED
package/src/link/Link.less
CHANGED
package/src/link/Link.story.tsx
CHANGED
|
@@ -2,6 +2,7 @@ import Body from '../body/Body';
|
|
|
2
2
|
import { Typography } from '../common';
|
|
3
3
|
import Title from '../title/Title';
|
|
4
4
|
|
|
5
|
+
import SentimentSurface from '../sentimentSurface';
|
|
5
6
|
import Link from '.';
|
|
6
7
|
|
|
7
8
|
export default {
|
|
@@ -158,3 +159,30 @@ export const Basic = () => {
|
|
|
158
159
|
</>
|
|
159
160
|
);
|
|
160
161
|
};
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* `Link` is sentiment-aware and will automatically adjust its
|
|
165
|
+
* colours if wrapped inside the [SentimentSurface](/?path=/docs/content-sentimentsurface--docs) component
|
|
166
|
+
*/
|
|
167
|
+
export const SentimentAwareness = function Render() {
|
|
168
|
+
return (['success', 'warning', 'negative'] as const).map((sentiment) => (
|
|
169
|
+
<SentimentSurface key={sentiment} sentiment={sentiment} className="p-a-1">
|
|
170
|
+
{'Some text with an '}
|
|
171
|
+
<Link href="#">inline link</Link>
|
|
172
|
+
{' adjusted to match the current colour scheme. It also works with '}
|
|
173
|
+
<Link href="#" target="_blank">
|
|
174
|
+
external
|
|
175
|
+
</Link>
|
|
176
|
+
{' and '}
|
|
177
|
+
<Link href="#" target="_blank" disabled>
|
|
178
|
+
disabled links
|
|
179
|
+
</Link>
|
|
180
|
+
.
|
|
181
|
+
</SentimentSurface>
|
|
182
|
+
));
|
|
183
|
+
};
|
|
184
|
+
SentimentAwareness.parameters = {
|
|
185
|
+
docs: {
|
|
186
|
+
source: { type: 'dynamic' },
|
|
187
|
+
},
|
|
188
|
+
};
|
package/src/main.css
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
.wds-sentiment-surface {
|
|
2
|
+
--ring-outline-color: var(--color-sentiment-content-primary, var(--color-content-primary));
|
|
3
|
+
}
|
|
4
|
+
.wds-sentiment-surface--hasBaseStyles {
|
|
5
|
+
background-color: var(--color-sentiment-background-surface);
|
|
6
|
+
color: var(--color-sentiment-content-primary);
|
|
7
|
+
}
|
|
1
8
|
.np-theme-personal .wds-sentiment-surface-negative-base,
|
|
2
9
|
.np-theme-personal--bright-green .wds-sentiment-surface-negative-base {
|
|
3
10
|
--color-sentiment-content-primary: #CB272F;
|
|
@@ -32,7 +39,7 @@
|
|
|
32
39
|
--color-sentiment-interactive-secondary-active: #A72027;
|
|
33
40
|
--color-sentiment-interactive-secondary-neutral: #9B141B;
|
|
34
41
|
--color-sentiment-interactive-secondary-neutral-hover: #831116;
|
|
35
|
-
--color-sentiment-interactive-secondary-neutral-active: #
|
|
42
|
+
--color-sentiment-interactive-secondary-neutral-active: #6D0e13;
|
|
36
43
|
--color-sentiment-interactive-control: #CB272F;
|
|
37
44
|
--color-sentiment-interactive-control-hover: #B8232B;
|
|
38
45
|
--color-sentiment-interactive-control-active: #A72027;
|
|
@@ -874,18 +881,35 @@
|
|
|
874
881
|
position: relative;
|
|
875
882
|
z-index: 1;
|
|
876
883
|
}
|
|
884
|
+
.wds-inline-prompt:has(a):hover,
|
|
885
|
+
.wds-inline-prompt:has(button):hover {
|
|
886
|
+
background-color: var(--color-sentiment-background-surface-hover);
|
|
887
|
+
}
|
|
888
|
+
.wds-inline-prompt:has(a):active,
|
|
889
|
+
.wds-inline-prompt:has(button):active {
|
|
890
|
+
background-color: var(--color-sentiment-background-surface-active);
|
|
891
|
+
}
|
|
877
892
|
.wds-inline-prompt--muted {
|
|
878
893
|
opacity: 0.93;
|
|
879
894
|
filter: grayscale(1);
|
|
880
895
|
}
|
|
881
896
|
.wds-inline-prompt a,
|
|
882
897
|
.wds-inline-prompt button {
|
|
898
|
+
color: var(--color-sentiment-content-primary);
|
|
883
899
|
text-underline-offset: calc(4px / 2);
|
|
884
900
|
text-underline-offset: calc(var(--size-4) / 2);
|
|
885
901
|
}
|
|
902
|
+
.wds-inline-prompt a:hover,
|
|
903
|
+
.wds-inline-prompt button:hover {
|
|
904
|
+
color: var(--color-sentiment-content-primary-hover);
|
|
905
|
+
}
|
|
906
|
+
.wds-inline-prompt a:active,
|
|
907
|
+
.wds-inline-prompt button:active {
|
|
908
|
+
color: var(--color-sentiment-content-primary-active);
|
|
909
|
+
}
|
|
886
910
|
.wds-inline-prompt a:first-of-type:before,
|
|
887
911
|
.wds-inline-prompt button:first-of-type:before {
|
|
888
|
-
content:
|
|
912
|
+
content: "";
|
|
889
913
|
position: absolute;
|
|
890
914
|
inset: 0;
|
|
891
915
|
}
|
|
@@ -899,112 +923,16 @@
|
|
|
899
923
|
}
|
|
900
924
|
.wds-inline-prompt__media-wrapper .tw-icon-tags,
|
|
901
925
|
.wds-inline-prompt__media-wrapper .tw-icon-confetti {
|
|
902
|
-
color: var(--color-sentiment-
|
|
903
|
-
}
|
|
904
|
-
.wds-inline-prompt--negative {
|
|
905
|
-
background-color: var(--color-sentiment-negative-secondary);
|
|
906
|
-
color: var(--color-sentiment-negative-primary);
|
|
907
|
-
}
|
|
908
|
-
.wds-inline-prompt--negative a,
|
|
909
|
-
.wds-inline-prompt--negative button {
|
|
910
|
-
color: var(--color-sentiment-negative-primary);
|
|
911
|
-
}
|
|
912
|
-
.wds-inline-prompt--negative a:hover,
|
|
913
|
-
.wds-inline-prompt--negative button:hover {
|
|
914
|
-
color: var(--color-sentiment-negative-primary-hover);
|
|
915
|
-
}
|
|
916
|
-
.wds-inline-prompt--negative a:active,
|
|
917
|
-
.wds-inline-prompt--negative button:active {
|
|
918
|
-
color: var(--color-sentiment-negative-primary-active);
|
|
919
|
-
}
|
|
920
|
-
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):hover {
|
|
921
|
-
background-color: var(--color-sentiment-negative-secondary-hover);
|
|
922
|
-
}
|
|
923
|
-
.wds-inline-prompt.wds-inline-prompt--negative:has(a, button):active {
|
|
924
|
-
background-color: var(--color-sentiment-negative-secondary-active);
|
|
925
|
-
}
|
|
926
|
-
.wds-inline-prompt--positive {
|
|
927
|
-
background-color: var(--color-sentiment-positive-secondary);
|
|
928
|
-
color: var(--color-sentiment-positive-primary);
|
|
929
|
-
}
|
|
930
|
-
.wds-inline-prompt--positive a,
|
|
931
|
-
.wds-inline-prompt--positive button {
|
|
932
|
-
color: var(--color-sentiment-positive-primary);
|
|
933
|
-
}
|
|
934
|
-
.wds-inline-prompt--positive a:hover,
|
|
935
|
-
.wds-inline-prompt--positive button:hover {
|
|
936
|
-
color: var(--color-sentiment-positive-primary-hover);
|
|
926
|
+
color: var(--color-sentiment-content-primary);
|
|
937
927
|
}
|
|
938
|
-
.wds-inline-prompt
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
background-color: var(--color-sentiment-positive-secondary-hover);
|
|
944
|
-
}
|
|
945
|
-
.wds-inline-prompt.wds-inline-prompt--positive:has(a, button):active {
|
|
946
|
-
background-color: var(--color-sentiment-positive-secondary-active);
|
|
947
|
-
}
|
|
948
|
-
.wds-inline-prompt--proposition {
|
|
949
|
-
background-color: #D2F9F7;
|
|
950
|
-
color: var(--color-interactive-primary);
|
|
951
|
-
}
|
|
952
|
-
.wds-inline-prompt--proposition a,
|
|
953
|
-
.wds-inline-prompt--proposition button {
|
|
954
|
-
color: var(--color-interactive-primary);
|
|
955
|
-
}
|
|
956
|
-
.wds-inline-prompt--proposition a:hover,
|
|
957
|
-
.wds-inline-prompt--proposition button:hover {
|
|
958
|
-
color: var(--color-interactive-primary-hover);
|
|
959
|
-
}
|
|
960
|
-
.wds-inline-prompt--proposition a:active,
|
|
961
|
-
.wds-inline-prompt--proposition button:active {
|
|
962
|
-
color: var(--color-interactive-primary-active);
|
|
963
|
-
}
|
|
964
|
-
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):hover {
|
|
965
|
-
background-color: #B2F4F3;
|
|
966
|
-
}
|
|
967
|
-
.wds-inline-prompt.wds-inline-prompt--proposition:has(a, button):active {
|
|
968
|
-
background-color: #91F0EE;
|
|
969
|
-
}
|
|
970
|
-
.wds-inline-prompt--neutral {
|
|
971
|
-
background-color: rgba(134,167,189,0.10196);
|
|
972
|
-
background-color: var(--color-background-neutral);
|
|
973
|
-
color: #37517e;
|
|
974
|
-
color: var(--color-content-primary);
|
|
975
|
-
}
|
|
976
|
-
.wds-inline-prompt--neutral a,
|
|
977
|
-
.wds-inline-prompt--neutral button {
|
|
978
|
-
color: #37517e;
|
|
979
|
-
color: var(--color-content-primary);
|
|
980
|
-
}
|
|
981
|
-
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):hover {
|
|
982
|
-
background-color: var(--color-background-neutral-hover);
|
|
983
|
-
}
|
|
984
|
-
.wds-inline-prompt.wds-inline-prompt--neutral:has(a, button):active {
|
|
985
|
-
background-color: var(--color-background-neutral-active);
|
|
986
|
-
}
|
|
987
|
-
.wds-inline-prompt--warning {
|
|
988
|
-
background-color: var(--color-sentiment-warning-secondary);
|
|
989
|
-
color: var(--color-sentiment-warning-content);
|
|
990
|
-
}
|
|
991
|
-
.wds-inline-prompt--warning a,
|
|
992
|
-
.wds-inline-prompt--warning button {
|
|
993
|
-
color: var(--color-sentiment-warning-content);
|
|
994
|
-
}
|
|
995
|
-
.wds-inline-prompt--warning a:hover,
|
|
996
|
-
.wds-inline-prompt--warning button:hover {
|
|
997
|
-
color: var(--color-sentiment-warning-content-hover);
|
|
998
|
-
}
|
|
999
|
-
.wds-inline-prompt--warning a:active,
|
|
1000
|
-
.wds-inline-prompt--warning button:active {
|
|
1001
|
-
color: var(--color-sentiment-warning-content-active);
|
|
1002
|
-
}
|
|
1003
|
-
.wds-inline-prompt.wds-inline-prompt--warning:has(a, button):hover {
|
|
1004
|
-
background-color: color-mix(in srgb, var(--color-sentiment-warning-secondary) 92%, var(--color-sentiment-warning-primary));
|
|
928
|
+
.wds-inline-prompt .wds-inline-prompt-process-indicator {
|
|
929
|
+
width: 16px;
|
|
930
|
+
width: var(--size-16);
|
|
931
|
+
height: 16px;
|
|
932
|
+
height: var(--size-16);
|
|
1005
933
|
}
|
|
1006
|
-
.wds-inline-prompt.wds-inline-prompt
|
|
1007
|
-
|
|
934
|
+
.wds-inline-prompt .wds-inline-prompt-process-indicator .process-circle {
|
|
935
|
+
stroke: currentColor;
|
|
1008
936
|
}
|
|
1009
937
|
.np-dot {
|
|
1010
938
|
--np-dot-size: 14px;
|
|
@@ -1107,17 +1035,17 @@
|
|
|
1107
1035
|
background-color: var(--color-background-neutral-active);
|
|
1108
1036
|
}
|
|
1109
1037
|
.np-icon-button-primary-default {
|
|
1110
|
-
color: var(--color-interactive-control);
|
|
1038
|
+
color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
|
|
1111
1039
|
background-color: #00a2dd;
|
|
1112
|
-
background-color: var(--color-interactive-accent);
|
|
1040
|
+
background-color: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
|
|
1113
1041
|
}
|
|
1114
1042
|
.np-icon-button-primary-default:not(.disabled):not(:disabled):hover {
|
|
1115
1043
|
background-color: #008fc9;
|
|
1116
|
-
background-color: var(--color-interactive-accent-hover);
|
|
1044
|
+
background-color: var(--color-sentiment-interactive-primary-hover, var(--color-interactive-accent-hover));
|
|
1117
1045
|
}
|
|
1118
1046
|
.np-icon-button-primary-default:not(.disabled):not(:disabled):active {
|
|
1119
1047
|
background-color: #0081ba;
|
|
1120
|
-
background-color: var(--color-interactive-accent-active);
|
|
1048
|
+
background-color: var(--color-sentiment-interactive-primary-active, var(--color-interactive-accent-active));
|
|
1121
1049
|
}
|
|
1122
1050
|
.np-icon-button-primary-negative {
|
|
1123
1051
|
color: var(--color-contrast-overlay);
|
|
@@ -1145,14 +1073,14 @@
|
|
|
1145
1073
|
background-color: var(--color-background-screen-active);
|
|
1146
1074
|
}
|
|
1147
1075
|
.np-icon-button-secondary-default {
|
|
1148
|
-
color: var(--color-interactive-primary);
|
|
1149
|
-
background-color: var(--color-interactive-neutral);
|
|
1076
|
+
color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
1077
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral, var(--color-interactive-neutral));
|
|
1150
1078
|
}
|
|
1151
1079
|
.np-icon-button-secondary-default:not(.disabled):not(:disabled):hover {
|
|
1152
|
-
background-color: var(--color-interactive-neutral-hover);
|
|
1080
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-interactive-neutral-hover));
|
|
1153
1081
|
}
|
|
1154
1082
|
.np-icon-button-secondary-default:not(.disabled):not(:disabled):active {
|
|
1155
|
-
background-color: var(--color-interactive-neutral-active);
|
|
1083
|
+
background-color: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-interactive-neutral-active));
|
|
1156
1084
|
}
|
|
1157
1085
|
.np-theme-personal--bright-green .np-icon-button-secondary-default,
|
|
1158
1086
|
.np-theme-personal--forest-green .np-icon-button-secondary-default {
|
|
@@ -1266,12 +1194,12 @@
|
|
|
1266
1194
|
pointer-events: auto;
|
|
1267
1195
|
}
|
|
1268
1196
|
.wds-Button {
|
|
1269
|
-
--Button-background: var(--color-interactive-accent);
|
|
1270
|
-
--Button-background-hover: var(--color-interactive-accent-hover);
|
|
1271
|
-
--Button-background-active: var(--color-interactive-accent-active);
|
|
1272
|
-
--Button-color: var(--color-interactive-control);
|
|
1273
|
-
--Button-color-hover: var(--color-interactive-control-hover);
|
|
1274
|
-
--Button-color-active: var(--color-interactive-control-active);
|
|
1197
|
+
--Button-background: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
|
|
1198
|
+
--Button-background-hover: var(--color-sentiment-interactive-primary-hover, var(--color-interactive-accent-hover));
|
|
1199
|
+
--Button-background-active: var(--color-sentiment-interactive-primary-active, var(--color-interactive-accent-active));
|
|
1200
|
+
--Button-color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
|
|
1201
|
+
--Button-color-hover: var(--color-sentiment-interactive-control-hover, var(--color-interactive-control-hover));
|
|
1202
|
+
--Button-color-active: var(--color-sentiment-interactive-control-active, var(--color-interactive-control-active));
|
|
1275
1203
|
--Button-border-radius: var(--radius-full);
|
|
1276
1204
|
--Button-label-gap: var(--size-4);
|
|
1277
1205
|
--Button-large-padding: var(--size-12) var(--size-16);
|
|
@@ -1280,16 +1208,16 @@
|
|
|
1280
1208
|
--Button-avatar-border-color: var(--color-border-neutral);
|
|
1281
1209
|
--Button-transition-duration: 150ms;
|
|
1282
1210
|
--Button-transition-easing: ease-in-out;
|
|
1283
|
-
--Button-secondary-background: var(--color-interactive-neutral);
|
|
1284
|
-
--Button-secondary-background-hover: var(--color-interactive-neutral-hover);
|
|
1285
|
-
--Button-secondary-background-active: var(--color-interactive-neutral-active);
|
|
1286
|
-
--Button-secondary-color: var(--color-interactive-primary);
|
|
1287
|
-
--Button-secondary-color-hover: var(--color-interactive-primary-hover);
|
|
1288
|
-
--Button-secondary-color-active: var(--color-interactive-primary-active);
|
|
1289
|
-
--Button-secondary-neutral-background: var(--color-background-neutral);
|
|
1290
|
-
--Button-secondary-neutral-background-hover: var(--color-background-neutral-hover);
|
|
1291
|
-
--Button-secondary-neutral-background-active: var(--color-background-neutral-active);
|
|
1292
|
-
--Button-secondary-neutral-color: var(--color-content-primary);
|
|
1211
|
+
--Button-secondary-background: var(--color-sentiment-interactive-secondary-neutral, var(--color-interactive-neutral));
|
|
1212
|
+
--Button-secondary-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-interactive-neutral-hover));
|
|
1213
|
+
--Button-secondary-background-active: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-interactive-neutral-active));
|
|
1214
|
+
--Button-secondary-color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
|
|
1215
|
+
--Button-secondary-color-hover: var(--color-sentiment-content-primary-hover, var(--color-interactive-primary-hover));
|
|
1216
|
+
--Button-secondary-color-active: var(--color-sentiment-content-primary-active, var(--color-interactive-primary-active));
|
|
1217
|
+
--Button-secondary-neutral-background: var(--color-sentiment-interactive-secondary-neutral, var(--color-background-neutral));
|
|
1218
|
+
--Button-secondary-neutral-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-background-neutral-hover));
|
|
1219
|
+
--Button-secondary-neutral-background-active: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-background-neutral-active));
|
|
1220
|
+
--Button-secondary-neutral-color: var(--color-sentiment-content-primary, var(--color-content-primary));
|
|
1293
1221
|
--Button-tertiary-background: transparent;
|
|
1294
1222
|
--Button-tertiary-background-hover: var(--color-background-screen-hover);
|
|
1295
1223
|
--Button-tertiary-background-active: var(--color-background-screen-active);
|
|
@@ -1380,7 +1308,7 @@
|
|
|
1380
1308
|
--Button-color-active: var(--Button-secondary-neutral-color);
|
|
1381
1309
|
}
|
|
1382
1310
|
.wds-Button--secondary-neutral .wds-Button-icon--end {
|
|
1383
|
-
color: var(--
|
|
1311
|
+
color: var(--Button-secondary-color);
|
|
1384
1312
|
}
|
|
1385
1313
|
.wds-Button--tertiary {
|
|
1386
1314
|
--Button-background: var(--Button-tertiary-background);
|
|
@@ -4321,6 +4249,7 @@ html:not([dir="rtl"]) .np-flow-navigation--sm .np-flow-navigation__stepper {
|
|
|
4321
4249
|
a,
|
|
4322
4250
|
button.np-link {
|
|
4323
4251
|
border-radius: 2px;
|
|
4252
|
+
color: var(--color-sentiment-content-primary, var(--color-content-link));
|
|
4324
4253
|
}
|
|
4325
4254
|
.np-link .tw-icon {
|
|
4326
4255
|
display: flex;
|