@transferwise/components 46.116.1 → 46.117.1

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 (68) hide show
  1. package/build/main.css +145 -156
  2. package/build/prompt/InlinePrompt/InlinePrompt.js +14 -8
  3. package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
  4. package/build/prompt/InlinePrompt/InlinePrompt.mjs +15 -9
  5. package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
  6. package/build/sentimentSurface/SentimentSurface.js +6 -5
  7. package/build/sentimentSurface/SentimentSurface.js.map +1 -1
  8. package/build/sentimentSurface/SentimentSurface.mjs +6 -5
  9. package/build/sentimentSurface/SentimentSurface.mjs.map +1 -1
  10. package/build/styles/button/Button.css +22 -22
  11. package/build/styles/button/Button.vars.css +21 -21
  12. package/build/styles/iconButton/IconButton.css +8 -8
  13. package/build/styles/link/Link.css +1 -0
  14. package/build/styles/main.css +145 -156
  15. package/build/styles/prompt/InlinePrompt/InlinePrompt.css +26 -105
  16. package/build/styles/sentimentSurface/SentimentSurface.css +88 -21
  17. package/build/types/button/_stories/helpers.d.ts +11 -0
  18. package/build/types/button/_stories/helpers.d.ts.map +1 -0
  19. package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts +19 -3
  20. package/build/types/prompt/InlinePrompt/InlinePrompt.d.ts.map +1 -1
  21. package/build/types/sentimentSurface/SentimentSurface.d.ts +5 -4
  22. package/build/types/sentimentSurface/SentimentSurface.d.ts.map +1 -1
  23. package/build/types/sentimentSurface/SentimentSurface.types.d.ts +4 -16
  24. package/build/types/sentimentSurface/SentimentSurface.types.d.ts.map +1 -1
  25. package/build/types/test-utils/story-config.d.ts +25 -1
  26. package/build/types/test-utils/story-config.d.ts.map +1 -1
  27. package/package.json +13 -12
  28. package/src/button/Button.css +22 -22
  29. package/src/button/Button.less +1 -1
  30. package/src/button/Button.vars.css +21 -21
  31. package/src/button/Button.vars.less +63 -23
  32. package/src/button/{Button.accessibility.docs.mdx → _stories/Button.accessibility.docs.mdx} +1 -1
  33. package/src/button/_stories/Button.brightGreen.tests.story.tsx +31 -0
  34. package/src/button/_stories/Button.dark.tests.story.tsx +25 -0
  35. package/src/button/_stories/Button.default.tests.story.tsx +25 -0
  36. package/src/button/_stories/Button.forestGreen.tests.story.tsx +28 -0
  37. package/src/button/{Button.story.tsx → _stories/Button.story.tsx} +78 -113
  38. package/src/button/_stories/Button.tests.story.tsx +139 -0
  39. package/src/button/_stories/helpers.tsx +118 -0
  40. package/src/iconButton/IconButton.css +8 -8
  41. package/src/iconButton/IconButton.less +35 -4
  42. package/src/iconButton/IconButton.story.tsx +72 -3
  43. package/src/link/Link.css +1 -0
  44. package/src/link/Link.less +1 -0
  45. package/src/link/Link.story.tsx +28 -0
  46. package/src/main.css +145 -156
  47. package/src/prompt/InlinePrompt/InlinePrompt.css +26 -105
  48. package/src/prompt/InlinePrompt/InlinePrompt.less +31 -119
  49. package/src/prompt/InlinePrompt/InlinePrompt.spec.tsx +87 -29
  50. package/src/prompt/InlinePrompt/InlinePrompt.story.tsx +223 -31
  51. package/src/prompt/InlinePrompt/InlinePrompt.tsx +42 -11
  52. package/src/sentimentSurface/SentimentSurface.css +88 -21
  53. package/src/sentimentSurface/SentimentSurface.docs.mdx +32 -495
  54. package/src/sentimentSurface/SentimentSurface.less +151 -114
  55. package/src/sentimentSurface/SentimentSurface.spec.tsx +31 -11
  56. package/src/sentimentSurface/SentimentSurface.story.tsx +323 -108
  57. package/src/sentimentSurface/SentimentSurface.tests.story.tsx +90 -40
  58. package/src/sentimentSurface/SentimentSurface.tsx +16 -9
  59. package/src/sentimentSurface/SentimentSurface.types.ts +5 -20
  60. package/src/test-utils/story-config.ts +5 -1
  61. package/build/sentimentSurface/classMap.js +0 -17
  62. package/build/sentimentSurface/classMap.js.map +0 -1
  63. package/build/sentimentSurface/classMap.mjs +0 -14
  64. package/build/sentimentSurface/classMap.mjs.map +0 -1
  65. package/build/types/sentimentSurface/classMap.d.ts +0 -4
  66. package/build/types/sentimentSurface/classMap.d.ts.map +0 -1
  67. package/src/button/Button.tests.story.tsx +0 -27
  68. package/src/sentimentSurface/classMap.ts +0 -15
@@ -1,5 +1,15 @@
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
- .np-theme-personal--bright-green .wds-sentiment-surface-negative-base {
9
+ .np-theme-business .wds-sentiment-surface-negative-base,
10
+ .np-theme-platform .wds-sentiment-surface-negative-base,
11
+ .np-theme-personal--bright-green .wds-sentiment-surface-negative-base,
12
+ .np-theme-business--bright-green .wds-sentiment-surface-negative-base {
3
13
  --color-sentiment-content-primary: #CB272F;
4
14
  --color-sentiment-content-primary-hover: #B8232B;
5
15
  --color-sentiment-content-primary-active: #A72027;
@@ -20,7 +30,10 @@
20
30
  --color-sentiment-background-surface-active: #F8D8D8;
21
31
  }
22
32
  .np-theme-personal .wds-sentiment-surface-negative-elevated,
23
- .np-theme-personal--bright-green .wds-sentiment-surface-negative-elevated {
33
+ .np-theme-business .wds-sentiment-surface-negative-elevated,
34
+ .np-theme-platform .wds-sentiment-surface-negative-elevated,
35
+ .np-theme-personal--bright-green .wds-sentiment-surface-negative-elevated,
36
+ .np-theme-business--bright-green .wds-sentiment-surface-negative-elevated {
24
37
  --color-sentiment-content-primary: #FFFFFF;
25
38
  --color-sentiment-content-primary-hover: #F5CCCC;
26
39
  --color-sentiment-content-primary-active: #F1B7B7;
@@ -32,7 +45,7 @@
32
45
  --color-sentiment-interactive-secondary-active: #A72027;
33
46
  --color-sentiment-interactive-secondary-neutral: #9B141B;
34
47
  --color-sentiment-interactive-secondary-neutral-hover: #831116;
35
- --color-sentiment-interactive-secondary-neutral-active: #6D0E13;
48
+ --color-sentiment-interactive-secondary-neutral-active: #6D0e13;
36
49
  --color-sentiment-interactive-control: #CB272F;
37
50
  --color-sentiment-interactive-control-hover: #B8232B;
38
51
  --color-sentiment-interactive-control-active: #A72027;
@@ -41,7 +54,10 @@
41
54
  --color-sentiment-background-surface-active: #A72027;
42
55
  }
43
56
  .np-theme-personal--dark .wds-sentiment-surface-negative-base,
44
- .np-theme-personal--forest-green .wds-sentiment-surface-negative-base {
57
+ .np-theme-business--dark .wds-sentiment-surface-negative-base,
58
+ .np-theme-personal--forest-green .wds-sentiment-surface-negative-base,
59
+ .np-theme-business--forest-green .wds-sentiment-surface-negative-base,
60
+ .np-theme-platform--forest-green .wds-sentiment-surface-negative-base {
45
61
  --color-sentiment-content-primary: #FFA8AD;
46
62
  --color-sentiment-content-primary-hover: #FFBDC0;
47
63
  --color-sentiment-content-primary-active: #FFD1D3;
@@ -62,7 +78,10 @@
62
78
  --color-sentiment-background-surface-active: #761418;
63
79
  }
64
80
  .np-theme-personal--dark .wds-sentiment-surface-negative-elevated,
65
- .np-theme-personal--forest-green .wds-sentiment-surface-negative-elevated {
81
+ .np-theme-business--dark .wds-sentiment-surface-negative-elevated,
82
+ .np-theme-personal--forest-green .wds-sentiment-surface-negative-elevated,
83
+ .np-theme-business--forest-green .wds-sentiment-surface-negative-elevated,
84
+ .np-theme-platform--forest-green .wds-sentiment-surface-negative-elevated {
66
85
  --color-sentiment-content-primary: #410B0D;
67
86
  --color-sentiment-content-primary-hover: #641115;
68
87
  --color-sentiment-content-primary-active: #761418;
@@ -83,7 +102,10 @@
83
102
  --color-sentiment-background-surface-active: #FFD1D3;
84
103
  }
85
104
  .np-theme-personal .wds-sentiment-surface-warning-base,
86
- .np-theme-personal--bright-green .wds-sentiment-surface-warning-base {
105
+ .np-theme-business .wds-sentiment-surface-warning-base,
106
+ .np-theme-platform .wds-sentiment-surface-warning-base,
107
+ .np-theme-personal--bright-green .wds-sentiment-surface-warning-base,
108
+ .np-theme-business--bright-green .wds-sentiment-surface-warning-base {
87
109
  --color-sentiment-content-primary: #4A3B1C;
88
110
  --color-sentiment-content-primary-hover: #302612;
89
111
  --color-sentiment-content-primary-active: #2C2311;
@@ -104,7 +126,10 @@
104
126
  --color-sentiment-background-surface-active: #FFE98F;
105
127
  }
106
128
  .np-theme-personal .wds-sentiment-surface-warning-elevated,
107
- .np-theme-personal--bright-green .wds-sentiment-surface-warning-elevated {
129
+ .np-theme-business .wds-sentiment-surface-warning-elevated,
130
+ .np-theme-platform .wds-sentiment-surface-warning-elevated,
131
+ .np-theme-personal--bright-green .wds-sentiment-surface-warning-elevated,
132
+ .np-theme-business--bright-green .wds-sentiment-surface-warning-elevated {
108
133
  --color-sentiment-content-primary: #4A3B1C;
109
134
  --color-sentiment-content-primary-hover: #302612;
110
135
  --color-sentiment-content-primary-active: #2C2311;
@@ -125,7 +150,10 @@
125
150
  --color-sentiment-background-surface-active: #FFBB00;
126
151
  }
127
152
  .np-theme-personal--dark .wds-sentiment-surface-warning-base,
128
- .np-theme-personal--forest-green .wds-sentiment-surface-warning-base {
153
+ .np-theme-business--dark .wds-sentiment-surface-warning-base,
154
+ .np-theme-personal--forest-green .wds-sentiment-surface-warning-base,
155
+ .np-theme-business--forest-green .wds-sentiment-surface-warning-base,
156
+ .np-theme-platform--forest-green .wds-sentiment-surface-warning-base {
129
157
  --color-sentiment-content-primary: #FADC65;
130
158
  --color-sentiment-content-primary-hover: #F9D648;
131
159
  --color-sentiment-content-primary-active: #F8CD20;
@@ -146,7 +174,10 @@
146
174
  --color-sentiment-background-surface-active: #665D3D;
147
175
  }
148
176
  .np-theme-personal--dark .wds-sentiment-surface-warning-elevated,
149
- .np-theme-personal--forest-green .wds-sentiment-surface-warning-elevated {
177
+ .np-theme-business--dark .wds-sentiment-surface-warning-elevated,
178
+ .np-theme-personal--forest-green .wds-sentiment-surface-warning-elevated,
179
+ .np-theme-business--forest-green .wds-sentiment-surface-warning-elevated,
180
+ .np-theme-platform--forest-green .wds-sentiment-surface-warning-elevated {
150
181
  --color-sentiment-content-primary: #3A3523;
151
182
  --color-sentiment-content-primary-hover: #504930;
152
183
  --color-sentiment-content-primary-active: #665D3D;
@@ -167,7 +198,10 @@
167
198
  --color-sentiment-background-surface-active: #F8CD20;
168
199
  }
169
200
  .np-theme-personal .wds-sentiment-surface-success-base,
170
- .np-theme-personal--bright-green .wds-sentiment-surface-success-base {
201
+ .np-theme-business .wds-sentiment-surface-success-base,
202
+ .np-theme-platform .wds-sentiment-surface-success-base,
203
+ .np-theme-personal--bright-green .wds-sentiment-surface-success-base,
204
+ .np-theme-business--bright-green .wds-sentiment-surface-success-base {
171
205
  --color-sentiment-content-primary: #054D28;
172
206
  --color-sentiment-content-primary-hover: #043A1E;
173
207
  --color-sentiment-content-primary-active: #022614;
@@ -188,7 +222,10 @@
188
222
  --color-sentiment-background-surface-active: #C5EDAB;
189
223
  }
190
224
  .np-theme-personal .wds-sentiment-surface-success-elevated,
191
- .np-theme-personal--bright-green .wds-sentiment-surface-success-elevated {
225
+ .np-theme-business .wds-sentiment-surface-success-elevated,
226
+ .np-theme-platform .wds-sentiment-surface-success-elevated,
227
+ .np-theme-personal--bright-green .wds-sentiment-surface-success-elevated,
228
+ .np-theme-business--bright-green .wds-sentiment-surface-success-elevated {
192
229
  --color-sentiment-content-primary: #E2F6D5;
193
230
  --color-sentiment-content-primary-hover: #D3F2C0;
194
231
  --color-sentiment-content-primary-active: #C5EDAB;
@@ -209,7 +246,10 @@
209
246
  --color-sentiment-background-surface-active: #022614;
210
247
  }
211
248
  .np-theme-personal--dark .wds-sentiment-surface-success-base,
212
- .np-theme-personal--forest-green .wds-sentiment-surface-success-base {
249
+ .np-theme-business--dark .wds-sentiment-surface-success-base,
250
+ .np-theme-personal--forest-green .wds-sentiment-surface-success-base,
251
+ .np-theme-business--forest-green .wds-sentiment-surface-success-base,
252
+ .np-theme-platform--forest-green .wds-sentiment-surface-success-base {
213
253
  --color-sentiment-content-primary: #BAE5A0;
214
254
  --color-sentiment-content-primary-hover: #C8EAB3;
215
255
  --color-sentiment-content-primary-active: #D6F0C7;
@@ -230,7 +270,10 @@
230
270
  --color-sentiment-background-surface-active: #3E4A36;
231
271
  }
232
272
  .np-theme-personal--dark .wds-sentiment-surface-success-elevated,
233
- .np-theme-personal--forest-green .wds-sentiment-surface-success-elevated {
273
+ .np-theme-business--dark .wds-sentiment-surface-success-elevated,
274
+ .np-theme-personal--forest-green .wds-sentiment-surface-success-elevated,
275
+ .np-theme-business--forest-green .wds-sentiment-surface-success-elevated,
276
+ .np-theme-platform--forest-green .wds-sentiment-surface-success-elevated {
234
277
  --color-sentiment-content-primary: #252C20;
235
278
  --color-sentiment-content-primary-hover: #323B2B;
236
279
  --color-sentiment-content-primary-active: #3E4A36;
@@ -251,7 +294,10 @@
251
294
  --color-sentiment-background-surface-active: #D6F0C7;
252
295
  }
253
296
  .np-theme-personal .wds-sentiment-surface-neutral-base,
254
- .np-theme-personal--bright-green .wds-sentiment-surface-neutral-base {
297
+ .np-theme-business .wds-sentiment-surface-neutral-base,
298
+ .np-theme-platform .wds-sentiment-surface-neutral-base,
299
+ .np-theme-personal--bright-green .wds-sentiment-surface-neutral-base,
300
+ .np-theme-business--bright-green .wds-sentiment-surface-neutral-base {
255
301
  --color-sentiment-content-primary: #454745;
256
302
  --color-sentiment-content-primary-hover: #353635;
257
303
  --color-sentiment-content-primary-active: #232423;
@@ -272,7 +318,10 @@
272
318
  --color-sentiment-background-surface-active: #DFDED5;
273
319
  }
274
320
  .np-theme-personal .wds-sentiment-surface-neutral-elevated,
275
- .np-theme-personal--bright-green .wds-sentiment-surface-neutral-elevated {
321
+ .np-theme-business .wds-sentiment-surface-neutral-elevated,
322
+ .np-theme-platform .wds-sentiment-surface-neutral-elevated,
323
+ .np-theme-personal--bright-green .wds-sentiment-surface-neutral-elevated,
324
+ .np-theme-business--bright-green .wds-sentiment-surface-neutral-elevated {
276
325
  --color-sentiment-content-primary: #F1F1ED;
277
326
  --color-sentiment-content-primary-hover: #E7E7E1;
278
327
  --color-sentiment-content-primary-active: #DFDED5;
@@ -293,7 +342,10 @@
293
342
  --color-sentiment-background-surface-active: #232423;
294
343
  }
295
344
  .np-theme-personal--dark .wds-sentiment-surface-neutral-base,
296
- .np-theme-personal--forest-green .wds-sentiment-surface-neutral-base {
345
+ .np-theme-business--dark .wds-sentiment-surface-neutral-base,
346
+ .np-theme-personal--forest-green .wds-sentiment-surface-neutral-base,
347
+ .np-theme-business--forest-green .wds-sentiment-surface-neutral-base,
348
+ .np-theme-platform--forest-green .wds-sentiment-surface-neutral-base {
297
349
  --color-sentiment-content-primary: #F1F1ED;
298
350
  --color-sentiment-content-primary-hover: #E7E7E1;
299
351
  --color-sentiment-content-primary-active: #DFDED5;
@@ -314,7 +366,10 @@
314
366
  --color-sentiment-background-surface-active: #595B58;
315
367
  }
316
368
  .np-theme-personal--dark .wds-sentiment-surface-neutral-elevated,
317
- .np-theme-personal--forest-green .wds-sentiment-surface-neutral-elevated {
369
+ .np-theme-business--dark .wds-sentiment-surface-neutral-elevated,
370
+ .np-theme-personal--forest-green .wds-sentiment-surface-neutral-elevated,
371
+ .np-theme-business--forest-green .wds-sentiment-surface-neutral-elevated,
372
+ .np-theme-platform--forest-green .wds-sentiment-surface-neutral-elevated {
318
373
  --color-sentiment-content-primary: #2A2C29;
319
374
  --color-sentiment-content-primary-hover: #414441;
320
375
  --color-sentiment-content-primary-active: #595B58;
@@ -335,7 +390,10 @@
335
390
  --color-sentiment-background-surface-active: #DFDED5;
336
391
  }
337
392
  .np-theme-personal .wds-sentiment-surface-proposition-base,
338
- .np-theme-personal--bright-green .wds-sentiment-surface-proposition-base {
393
+ .np-theme-business .wds-sentiment-surface-proposition-base,
394
+ .np-theme-platform .wds-sentiment-surface-proposition-base,
395
+ .np-theme-personal--bright-green .wds-sentiment-surface-proposition-base,
396
+ .np-theme-business--bright-green .wds-sentiment-surface-proposition-base {
339
397
  --color-sentiment-content-primary: #0E0F0C;
340
398
  --color-sentiment-content-primary-hover: #0A2826;
341
399
  --color-sentiment-content-primary-active: #074140;
@@ -356,7 +414,10 @@
356
414
  --color-sentiment-background-surface-active: #B6ECEC;
357
415
  }
358
416
  .np-theme-personal .wds-sentiment-surface-proposition-elevated,
359
- .np-theme-personal--bright-green .wds-sentiment-surface-proposition-elevated {
417
+ .np-theme-business .wds-sentiment-surface-proposition-elevated,
418
+ .np-theme-platform .wds-sentiment-surface-proposition-elevated,
419
+ .np-theme-personal--bright-green .wds-sentiment-surface-proposition-elevated,
420
+ .np-theme-business--bright-green .wds-sentiment-surface-proposition-elevated {
360
421
  --color-sentiment-content-primary: #FFFFFF;
361
422
  --color-sentiment-content-primary-hover: #EAF9F9;
362
423
  --color-sentiment-content-primary-active: #D5F4F4;
@@ -377,7 +438,10 @@
377
438
  --color-sentiment-background-surface-active: #022626;
378
439
  }
379
440
  .np-theme-personal--dark .wds-sentiment-surface-proposition-base,
380
- .np-theme-personal--forest-green .wds-sentiment-surface-proposition-base {
441
+ .np-theme-business--dark .wds-sentiment-surface-proposition-base,
442
+ .np-theme-personal--forest-green .wds-sentiment-surface-proposition-base,
443
+ .np-theme-business--forest-green .wds-sentiment-surface-proposition-base,
444
+ .np-theme-platform--forest-green .wds-sentiment-surface-proposition-base {
381
445
  --color-sentiment-content-primary: #FFFFFF;
382
446
  --color-sentiment-content-primary-hover: #EAF9F9;
383
447
  --color-sentiment-content-primary-active: #D5F4F4;
@@ -398,7 +462,10 @@
398
462
  --color-sentiment-background-surface-active: #176460;
399
463
  }
400
464
  .np-theme-personal--dark .wds-sentiment-surface-proposition-elevated,
401
- .np-theme-personal--forest-green .wds-sentiment-surface-proposition-elevated {
465
+ .np-theme-business--dark .wds-sentiment-surface-proposition-elevated,
466
+ .np-theme-personal--forest-green .wds-sentiment-surface-proposition-elevated,
467
+ .np-theme-business--forest-green .wds-sentiment-surface-proposition-elevated,
468
+ .np-theme-platform--forest-green .wds-sentiment-surface-proposition-elevated {
402
469
  --color-sentiment-content-primary: #0E0F0C;
403
470
  --color-sentiment-content-primary-hover: #0A2826;
404
471
  --color-sentiment-content-primary-active: #074140;
@@ -0,0 +1,11 @@
1
+ interface GenerateSurfaceVariantProps {
2
+ theme?: 'forest-green' | 'bright-green' | 'dark';
3
+ sentiment: 'success' | 'warning' | 'negative' | 'neutral' | 'proposition';
4
+ }
5
+ export declare const generateSurfaceVariant: ({ theme, sentiment }: GenerateSurfaceVariantProps) => {
6
+ storyName: string;
7
+ render: () => import("react").JSX.Element;
8
+ decorators: ((Story: React.ComponentType) => import("react").JSX.Element)[];
9
+ };
10
+ export {};
11
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../src/button/_stories/helpers.tsx"],"names":[],"mappings":"AAOA,UAAU,2BAA2B;IACnC,KAAK,CAAC,EAAE,cAAc,GAAG,cAAc,GAAG,MAAM,CAAC;IACjD,SAAS,EAAE,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,aAAa,CAAC;CAC3E;AACD,eAAO,MAAM,sBAAsB,GAAI,sBAAsB,2BAA2B;;;yBAoG5E,KAAK,CAAC,aAAa;CAM7B,CAAC"}
@@ -1,16 +1,32 @@
1
1
  import { Sentiment } from '../../common';
2
2
  export type InlinePromptProps = {
3
+ /**
4
+ * The sentiment determines the colour scheme
5
+ */
3
6
  sentiment?: `${Sentiment.POSITIVE | Sentiment.NEGATIVE | Sentiment.NEUTRAL | Sentiment.WARNING}` | 'proposition';
7
+ /**
8
+ * Replaces the icon with a spinner while waiting for the short-lived action to finish.
9
+ * @default false
10
+ */
4
11
  loading?: boolean;
5
12
  /**
6
- * Use for short-lived inline prompts to avoid swap of the icon (which is bad UX for short-lived prompts, e.g. when submit form)
13
+ * While prompts cannot be fully (visually and functionally) disabled, this prop should be enabled
14
+ * they are associated with actually disabled component (e.g. a disabled list item or input).
15
+ * @default false
7
16
  */
8
17
  muted?: boolean;
18
+ /**
19
+ * Icon override for `proposition` and `positive` sentiments. Unsupported for remaining ones.
20
+ */
21
+ media?: React.ReactNode;
9
22
  id?: string;
10
23
  className?: string;
11
24
  'data-testid'?: string;
12
25
  children: React.ReactNode;
13
- media?: React.ReactNode;
14
26
  };
15
- export declare const InlinePrompt: ({ sentiment, muted, loading, className, children, media, ...rest }: InlinePromptProps) => import("react").JSX.Element;
27
+ /**
28
+ * Inline prompts appear alongside a specific component on the screen. They help the user stay
29
+ * informed, fix something, or get more out of what they're doing.
30
+ */
31
+ export declare const InlinePrompt: ({ sentiment, muted, loading, className, children, media, "data-testid": dataTestId, ...rest }: InlinePromptProps) => import("react").JSX.Element;
16
32
  //# sourceMappingURL=InlinePrompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InlinePrompt.d.ts","sourceRoot":"","sources":["../../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAOzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B,SAAS,CAAC,EACN,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,GACpF,aAAa,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,oEAQ1B,iBAAiB,gCAkCnB,CAAC"}
1
+ {"version":3,"file":"InlinePrompt.d.ts","sourceRoot":"","sources":["../../../../src/prompt/InlinePrompt/InlinePrompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAQzC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,CAAC,EACN,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,GAAG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,EAAE,GACpF,aAAa,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,+FAS1B,iBAAiB,gCA+CnB,CAAC"}
@@ -1,17 +1,18 @@
1
1
  import { SentimentSurfaceComponent } from './SentimentSurface.types';
2
2
  /**
3
- * SentimentSurface is a polymorphic container component that applies contextual background colours
4
- * and text styling based on sentiment types (negative, warning, neutral, success, proposition).
5
- * It's designed to visually communicate the nature or importance of its content through colour.
3
+ * SentimentSurface is a polymorphic container component that exposes and, optionally, applies
4
+ * contextual colour tokens as CSS custom properties, based on sentiment types (`negative`,
5
+ * `warning`, `neutral`, `success`, `proposition`).
6
6
  *
7
7
  * @param {ElementType} [as='div'] - Optional prop to override the HTML element rendered.
8
8
  * @param {Sentiment} sentiment - Required prop to set the sentiment type (negative, warning, neutral, success, proposition).
9
9
  * @param {Emphasis} [emphasis='base'] - Optional prop to specify the emphasis level (base or elevated).
10
+ * @param {boolean} [hasBaseStyles=true] - If true, sets the `background-color` and `color` on the container. Otherwise, only exposes the tokens as CSS custom properties without rendering.
10
11
  * @param {ReactNode} [children] - Content to render inside the surface.
11
12
  * @param {string} [className] - Additional CSS classes to apply.
12
13
  * @param {CSSProperties} [style] - Inline styles to apply.
13
14
  * @param {string} [id] - Unique identifier for the component.
14
- * @param {string} [testId] - A unique string that appears as data attribute `data-testid` in the rendered code.
15
+ * @param {string} [data-testid] - A unique string that appears as data attribute `data-testid` in the rendered code.
15
16
  *
16
17
  * @component
17
18
  * @example
@@ -1 +1 @@
1
- {"version":3,"file":"SentimentSurface.d.ts","sourceRoot":"","sources":["../../../src/sentimentSurface/SentimentSurface.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAGlC;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,QAAA,MAAM,gBAAgB,EAAE,yBA+BtB,CAAC;AAIH,eAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"SentimentSurface.d.ts","sourceRoot":"","sources":["../../../src/sentimentSurface/SentimentSurface.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,0BAA0B,CAAC;AAElC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,QAAA,MAAM,gBAAgB,EAAE,yBAsCtB,CAAC;AAIH,eAAe,gBAAgB,CAAC"}
@@ -21,30 +21,18 @@ export interface CommonProps {
21
21
  */
22
22
  emphasis?: Emphasis;
23
23
  /**
24
- * Content to render inside the surface
24
+ * If true, sets the `background-color` and `color` on the container. Otherwise, only exposes the tokens as CSS custom properties without rendering.
25
+ * @default true
25
26
  */
27
+ hasBaseStyles?: boolean;
26
28
  children?: ReactNode;
27
- /**
28
- * Additional CSS classes
29
- */
30
29
  className?: string;
31
- /**
32
- * Inline styles
33
- */
34
30
  style?: CSSProperties;
35
- /**
36
- * Unique identifier for the component
37
- */
38
31
  id?: string;
39
32
  /**
40
33
  * A unique string that appears as data attribute `data-testid` in the rendered code, serving as a hook for automated tests
41
34
  */
42
- testId?: string;
43
- /**
44
- * `data-testid` is strictly controlled through the `testId` prop.
45
- * This lets consumers know that this data attribute will not be applied.
46
- */
47
- 'data-testid'?: never;
35
+ 'data-testid'?: string;
48
36
  }
49
37
  /**
50
38
  * Props when rendering as a div or custom element
@@ -1 +1 @@
1
- {"version":3,"file":"SentimentSurface.types.d.ts","sourceRoot":"","sources":["../../../src/sentimentSurface/SentimentSurface.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,cAAc,EACf,MAAM,OAAO,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,aAAa,CAAC,EAAE,KAAK,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,IAAI,CACxE,cAAc,CAAC,cAAc,CAAC,EAC9B,MAAM,WAAW,CAClB,GACC,WAAW,GAAG;IACZ;;;OAGG;IACH,EAAE,CAAC,EAAE,CAAC,CAAC;CACR,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAE/F;;;;;;;;GAQG;AACH,MAAM,MAAM,8BAA8B,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IACtE,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/F;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,KAAK,EAAE,8BAA8B,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"SentimentSurface.types.d.ts","sourceRoot":"","sources":["../../../src/sentimentSurface/SentimentSurface.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACb,wBAAwB,EACxB,cAAc,EACf,MAAM,OAAO,CAAC;AAEf;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AAEvF;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,UAAU,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,SAAS,EAAE,SAAS,CAAC;IAErB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,IAAI,CACxE,cAAc,CAAC,cAAc,CAAC,EAC9B,MAAM,WAAW,CAClB,GACC,WAAW,GAAG;IACZ;;;OAGG;IACH,EAAE,CAAC,EAAE,CAAC,CAAC;CACR,CAAC;AAEJ;;GAEG;AACH,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,wBAAwB,CAAC,CAAC,CAAC,CAAC;AAE/F;;;;;;;;GAQG;AACH,MAAM,MAAM,8BAA8B,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IACtE,qBAAqB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,MAAM,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/F;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,EAAE,KAAK,EAAE,8BAA8B,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -16,6 +16,30 @@ export declare const viewports: {
16
16
  };
17
17
  type: string;
18
18
  };
19
+ mobile1: {
20
+ readonly name: "Small mobile";
21
+ readonly styles: {
22
+ readonly height: "568px";
23
+ readonly width: "320px";
24
+ };
25
+ readonly type: "mobile";
26
+ };
27
+ mobile2: {
28
+ readonly name: "Large mobile";
29
+ readonly styles: {
30
+ readonly height: "896px";
31
+ readonly width: "414px";
32
+ };
33
+ readonly type: "mobile";
34
+ };
35
+ tablet: {
36
+ readonly name: "Tablet";
37
+ readonly styles: {
38
+ readonly height: "1112px";
39
+ readonly width: "834px";
40
+ };
41
+ readonly type: "tablet";
42
+ };
19
43
  };
20
44
  export interface StoryConfig {
21
45
  /**
@@ -31,7 +55,7 @@ export interface StoryConfig {
31
55
  *
32
56
  * @default undefined
33
57
  */
34
- variants?: ('default' | 'light' | 'dark' | 'bright-green' | 'forest-green' | 'rtl' | 'mobile' | '400%')[];
58
+ variants?: ('default' | 'light' | 'dark' | 'bright-green' | 'forest-green' | 'business' | 'business--forest-green' | 'business--bright-green' | 'platform' | 'platform--forest-green' | 'rtl' | 'mobile' | '400%')[];
35
59
  }
36
60
  /**
37
61
  * Utility function for creating variants of a CSFv3 story.
@@ -1 +1 @@
1
- {"version":3,"file":"story-config.d.ts","sourceRoot":"","sources":["../../../src/test-utils/story-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAarB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,CACP,SAAS,GACT,OAAO,GACP,MAAM,GACN,cAAc,GACd,cAAc,GACd,KAAK,GACL,QAAQ,GACR,MAAM,CACT,EAAE,CAAC;CACL;AAmBD;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,IAAI,EAC9B,aAAa,QAAQ,CAAC,IAAI,CAAC,EAC3B,cAAc,WAAW,KACxB,QAAQ,CAAC,IAAI,CAuBf,CAAC"}
1
+ {"version":3,"file":"story-config.d.ts","sourceRoot":"","sources":["../../../src/test-utils/story-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAarB,CAAC;AAEF,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,CACP,SAAS,GACT,OAAO,GACP,MAAM,GACN,cAAc,GACd,cAAc,GACd,UAAU,GACV,wBAAwB,GACxB,wBAAwB,GACxB,UAAU,GACV,wBAAwB,GACxB,KAAK,GACL,QAAQ,GACR,MAAM,CACT,EAAE,CAAC;CACL;AAkBD;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,IAAI,EAC9B,aAAa,QAAQ,CAAC,IAAI,CAAC,EAC3B,cAAc,WAAW,KACxB,QAAQ,CAAC,IAAI,CAuBf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.116.1",
3
+ "version": "46.117.1",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -49,10 +49,10 @@
49
49
  "@rollup/plugin-node-resolve": "^16.0.1",
50
50
  "@rollup/plugin-typescript": "^12.1.4",
51
51
  "@rollup/plugin-url": "^8.0.2",
52
- "@storybook/addon-a11y": "^9.1.3",
53
- "@storybook/addon-docs": "^9.1.3",
54
- "@storybook/addon-webpack5-compiler-babel": "^3.0.6",
55
- "@storybook/react-webpack5": "^9.1.3",
52
+ "@storybook/addon-a11y": "^10.1.4",
53
+ "@storybook/addon-docs": "^10.1.4",
54
+ "@storybook/addon-webpack5-compiler-babel": "^4.0.0",
55
+ "@storybook/react-webpack5": "^10.1.4",
56
56
  "@testing-library/dom": "^10.4.1",
57
57
  "@testing-library/jest-dom": "^6.8.0",
58
58
  "@testing-library/react": "^16.3.0",
@@ -72,6 +72,7 @@
72
72
  "@wise/eslint-config": "^13.1.0",
73
73
  "babel-plugin-formatjs": "^10.5.39",
74
74
  "eslint": "^9.33.0",
75
+ "eslint-plugin-storybook": "10.1.4",
75
76
  "gulp": "^5.0.1",
76
77
  "jest": "^30.0.5",
77
78
  "jest-environment-jsdom": "^29.7.0",
@@ -80,23 +81,23 @@
80
81
  "react-intl": "^7.1.11",
81
82
  "rollup": "^4.47.1",
82
83
  "rollup-preserve-directives": "^1.1.3",
83
- "storybook": "^9.1.3",
84
- "storybook-addon-tag-badges": "^2.0.2",
85
- "storybook-addon-test-codegen": "^2.0.1",
84
+ "storybook": "^10.1.10",
85
+ "storybook-addon-tag-badges": "^3.0.4",
86
+ "storybook-addon-test-codegen": "^3.0.1",
86
87
  "@transferwise/less-config": "3.1.2",
87
- "@transferwise/neptune-css": "14.25.2",
88
+ "@wise/wds-configs": "0.0.0",
88
89
  "@wise/components-theming": "1.9.1",
89
- "@wise/wds-configs": "0.0.0"
90
+ "@transferwise/neptune-css": "14.26.0"
90
91
  },
91
92
  "peerDependencies": {
92
93
  "@transferwise/icons": "^3 || ^4",
93
94
  "@transferwise/neptune-css": "^14.24",
94
95
  "@wise/art": "^2.24.4",
95
96
  "@wise/components-theming": "^1.6.2",
97
+ "framer-motion": "^12.23.22",
96
98
  "react": ">=18",
97
99
  "react-dom": ">=18",
98
- "react-intl": "^5.10.0 || ^6 || ^7",
99
- "framer-motion": "^12.23.22"
100
+ "react-intl": "^5.10.0 || ^6 || ^7"
100
101
  },
101
102
  "dependencies": {
102
103
  "@babel/runtime": "^7.28.3",
@@ -1,10 +1,10 @@
1
1
  .wds-Button {
2
- --Button-background: var(--color-interactive-accent);
3
- --Button-background-hover: var(--color-interactive-accent-hover);
4
- --Button-background-active: var(--color-interactive-accent-active);
5
- --Button-color: var(--color-interactive-control);
6
- --Button-color-hover: var(--color-interactive-control-hover);
7
- --Button-color-active: var(--color-interactive-control-active);
2
+ --Button-background: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
3
+ --Button-background-hover: var(--color-sentiment-interactive-primary-hover, var(--color-interactive-accent-hover));
4
+ --Button-background-active: var(--color-sentiment-interactive-primary-active, var(--color-interactive-accent-active));
5
+ --Button-color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
6
+ --Button-color-hover: var(--color-sentiment-interactive-control-hover, var(--color-interactive-control-hover));
7
+ --Button-color-active: var(--color-sentiment-interactive-control-active, var(--color-interactive-control-active));
8
8
  --Button-border-radius: var(--radius-full);
9
9
  --Button-label-gap: var(--size-4);
10
10
  --Button-large-padding: var(--size-12) var(--size-16);
@@ -13,22 +13,22 @@
13
13
  --Button-avatar-border-color: var(--color-border-neutral);
14
14
  --Button-transition-duration: 150ms;
15
15
  --Button-transition-easing: ease-in-out;
16
- --Button-secondary-background: var(--color-interactive-neutral);
17
- --Button-secondary-background-hover: var(--color-interactive-neutral-hover);
18
- --Button-secondary-background-active: var(--color-interactive-neutral-active);
19
- --Button-secondary-color: var(--color-interactive-primary);
20
- --Button-secondary-color-hover: var(--color-interactive-primary-hover);
21
- --Button-secondary-color-active: var(--color-interactive-primary-active);
22
- --Button-secondary-neutral-background: var(--color-background-neutral);
23
- --Button-secondary-neutral-background-hover: var(--color-background-neutral-hover);
24
- --Button-secondary-neutral-background-active: var(--color-background-neutral-active);
25
- --Button-secondary-neutral-color: var(--color-content-primary);
16
+ --Button-secondary-background: var(--color-sentiment-interactive-secondary-neutral, var(--color-interactive-neutral));
17
+ --Button-secondary-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-interactive-neutral-hover));
18
+ --Button-secondary-background-active: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-interactive-neutral-active));
19
+ --Button-secondary-color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
20
+ --Button-secondary-color-hover: var(--color-sentiment-content-primary-hover, var(--color-interactive-primary-hover));
21
+ --Button-secondary-color-active: var(--color-sentiment-content-primary-active, var(--color-interactive-primary-active));
22
+ --Button-secondary-neutral-background: var(--color-sentiment-interactive-secondary-neutral, var(--color-background-neutral));
23
+ --Button-secondary-neutral-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-background-neutral-hover));
24
+ --Button-secondary-neutral-background-active: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-background-neutral-active));
25
+ --Button-secondary-neutral-color: var(--color-sentiment-content-primary, var(--color-content-primary));
26
26
  --Button-tertiary-background: transparent;
27
- --Button-tertiary-background-hover: var(--color-background-screen-hover);
28
- --Button-tertiary-background-active: var(--color-background-screen-active);
29
- --Button-tertiary-color: var(--color-interactive-primary);
30
- --Button-tertiary-color-hover: var(--color-interactive-primary-hover);
31
- --Button-tertiary-color-active: var(--color-interactive-primary-active);
27
+ --Button-tertiary-background-hover: var(--color-sentiment-interactive-secondary-neutral, var(--color-background-screen-hover));
28
+ --Button-tertiary-background-active: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-background-screen-active));
29
+ --Button-tertiary-color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
30
+ --Button-tertiary-color-hover: var(--color-sentiment-content-primary-hover, var(--color-interactive-primary-hover));
31
+ --Button-tertiary-color-active: var(--color-sentiment-content-primary-active, var(--color-interactive-primary-active));
32
32
  --Button-primary-negative-background: var(--color-sentiment-negative-primary);
33
33
  --Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
34
34
  --Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);
@@ -113,7 +113,7 @@
113
113
  --Button-color-active: var(--Button-secondary-neutral-color);
114
114
  }
115
115
  .wds-Button--secondary-neutral .wds-Button-icon--end {
116
- color: var(--color-interactive-primary);
116
+ color: var(--Button-secondary-color);
117
117
  }
118
118
  .wds-Button--tertiary {
119
119
  --Button-background: var(--Button-tertiary-background);
@@ -74,7 +74,7 @@
74
74
  --Button-color-active: var(--Button-secondary-neutral-color);
75
75
 
76
76
  .wds-Button-icon--end {
77
- color: var(--color-interactive-primary);
77
+ color: var(--Button-secondary-color);
78
78
  }
79
79
  }
80
80
 
@@ -1,10 +1,10 @@
1
1
  .wds-Button {
2
- --Button-background: var(--color-interactive-accent);
3
- --Button-background-hover: var(--color-interactive-accent-hover);
4
- --Button-background-active: var(--color-interactive-accent-active);
5
- --Button-color: var(--color-interactive-control);
6
- --Button-color-hover: var(--color-interactive-control-hover);
7
- --Button-color-active: var(--color-interactive-control-active);
2
+ --Button-background: var(--color-sentiment-interactive-primary, var(--color-interactive-accent));
3
+ --Button-background-hover: var(--color-sentiment-interactive-primary-hover, var(--color-interactive-accent-hover));
4
+ --Button-background-active: var(--color-sentiment-interactive-primary-active, var(--color-interactive-accent-active));
5
+ --Button-color: var(--color-sentiment-interactive-control, var(--color-interactive-control));
6
+ --Button-color-hover: var(--color-sentiment-interactive-control-hover, var(--color-interactive-control-hover));
7
+ --Button-color-active: var(--color-sentiment-interactive-control-active, var(--color-interactive-control-active));
8
8
  --Button-border-radius: var(--radius-full);
9
9
  --Button-label-gap: var(--size-4);
10
10
  --Button-large-padding: var(--size-12) var(--size-16);
@@ -13,22 +13,22 @@
13
13
  --Button-avatar-border-color: var(--color-border-neutral);
14
14
  --Button-transition-duration: 150ms;
15
15
  --Button-transition-easing: ease-in-out;
16
- --Button-secondary-background: var(--color-interactive-neutral);
17
- --Button-secondary-background-hover: var(--color-interactive-neutral-hover);
18
- --Button-secondary-background-active: var(--color-interactive-neutral-active);
19
- --Button-secondary-color: var(--color-interactive-primary);
20
- --Button-secondary-color-hover: var(--color-interactive-primary-hover);
21
- --Button-secondary-color-active: var(--color-interactive-primary-active);
22
- --Button-secondary-neutral-background: var(--color-background-neutral);
23
- --Button-secondary-neutral-background-hover: var(--color-background-neutral-hover);
24
- --Button-secondary-neutral-background-active: var(--color-background-neutral-active);
25
- --Button-secondary-neutral-color: var(--color-content-primary);
16
+ --Button-secondary-background: var(--color-sentiment-interactive-secondary-neutral, var(--color-interactive-neutral));
17
+ --Button-secondary-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-interactive-neutral-hover));
18
+ --Button-secondary-background-active: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-interactive-neutral-active));
19
+ --Button-secondary-color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
20
+ --Button-secondary-color-hover: var(--color-sentiment-content-primary-hover, var(--color-interactive-primary-hover));
21
+ --Button-secondary-color-active: var(--color-sentiment-content-primary-active, var(--color-interactive-primary-active));
22
+ --Button-secondary-neutral-background: var(--color-sentiment-interactive-secondary-neutral, var(--color-background-neutral));
23
+ --Button-secondary-neutral-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-background-neutral-hover));
24
+ --Button-secondary-neutral-background-active: var(--color-sentiment-interactive-secondary-neutral-active, var(--color-background-neutral-active));
25
+ --Button-secondary-neutral-color: var(--color-sentiment-content-primary, var(--color-content-primary));
26
26
  --Button-tertiary-background: transparent;
27
- --Button-tertiary-background-hover: var(--color-background-screen-hover);
28
- --Button-tertiary-background-active: var(--color-background-screen-active);
29
- --Button-tertiary-color: var(--color-interactive-primary);
30
- --Button-tertiary-color-hover: var(--color-interactive-primary-hover);
31
- --Button-tertiary-color-active: var(--color-interactive-primary-active);
27
+ --Button-tertiary-background-hover: var(--color-sentiment-interactive-secondary-neutral, var(--color-background-screen-hover));
28
+ --Button-tertiary-background-active: var(--color-sentiment-interactive-secondary-neutral-hover, var(--color-background-screen-active));
29
+ --Button-tertiary-color: var(--color-sentiment-content-primary, var(--color-interactive-primary));
30
+ --Button-tertiary-color-hover: var(--color-sentiment-content-primary-hover, var(--color-interactive-primary-hover));
31
+ --Button-tertiary-color-active: var(--color-sentiment-content-primary-active, var(--color-interactive-primary-active));
32
32
  --Button-primary-negative-background: var(--color-sentiment-negative-primary);
33
33
  --Button-primary-negative-background-hover: var(--color-sentiment-negative-primary-hover);
34
34
  --Button-primary-negative-background-active: var(--color-sentiment-negative-primary-active);