@transferwise/components 46.160.4 → 46.160.5

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 CHANGED
@@ -140,6 +140,7 @@
140
140
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
141
141
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
142
142
  }
143
+
143
144
  /**
144
145
  * Do not edit directly, this file was auto-generated.
145
146
  */
@@ -322,6 +323,7 @@
322
323
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
323
324
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
324
325
  }
326
+
325
327
  /**
326
328
  * Do not edit directly, this file was auto-generated.
327
329
  */
@@ -504,6 +506,7 @@
504
506
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
505
507
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
506
508
  }
509
+
507
510
  /**
508
511
  * Do not edit directly, this file was auto-generated.
509
512
  */
@@ -686,6 +689,7 @@
686
689
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
687
690
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
688
691
  }
692
+
689
693
  /**
690
694
  * Do not edit directly, this file was auto-generated.
691
695
  */
@@ -868,6 +872,7 @@
868
872
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
869
873
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
870
874
  }
875
+
871
876
  /**
872
877
  * Do not edit directly, this file was auto-generated.
873
878
  */
@@ -1050,6 +1055,7 @@
1050
1055
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1051
1056
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1052
1057
  }
1058
+
1053
1059
  /**
1054
1060
  * Do not edit directly, this file was auto-generated.
1055
1061
  */
@@ -1232,6 +1238,7 @@
1232
1238
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1233
1239
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1234
1240
  }
1241
+
1235
1242
  /**
1236
1243
  * Do not edit directly, this file was auto-generated.
1237
1244
  */
@@ -1415,6 +1422,7 @@
1415
1422
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1416
1423
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1417
1424
  }
1425
+
1418
1426
  /**
1419
1427
  * Do not edit directly, this file was auto-generated.
1420
1428
  */
@@ -1598,6 +1606,7 @@
1598
1606
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1599
1607
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1600
1608
  }
1609
+
1601
1610
  /**
1602
1611
  * Do not edit directly, this file was auto-generated.
1603
1612
  */
@@ -1781,6 +1790,7 @@
1781
1790
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1782
1791
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1783
1792
  }
1793
+
1784
1794
  /**
1785
1795
  * Do not edit directly, this file was auto-generated.
1786
1796
  */
@@ -1964,7 +1974,9 @@
1964
1974
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1965
1975
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1966
1976
  }
1977
+
1967
1978
  /* See: https://github.com/fontsource/fontsource/blob/main/fonts/google/inter/variable.css */
1979
+
1968
1980
  /**
1969
1981
  * Do not edit directly, this file was auto-generated.
1970
1982
  */
@@ -2409,6 +2421,7 @@
2409
2421
  --color-sentiment-background-surface-active: #F8CD20;
2410
2422
  --color-sentiment-border-overlay: rgba(58,53,35,0.30196);
2411
2423
  }
2424
+
2412
2425
  /**
2413
2426
  * Do not edit directly, this file was auto-generated.
2414
2427
  */
@@ -2557,6 +2570,7 @@
2557
2570
  --color-interactive-control-active: #471358;
2558
2571
  --color-background-screen: #260a2f;
2559
2572
  }
2573
+
2560
2574
  @font-face {
2561
2575
  font-family: Inter;
2562
2576
  font-style: normal;
@@ -19795,6 +19809,10 @@ a[data-toggle="tooltip"] {
19795
19809
  background-color: var(--color-sentiment-background-surface);
19796
19810
  color: var(--color-sentiment-content-primary);
19797
19811
  }
19812
+ .wds-sentiment-surface strong,
19813
+ .wds-sentiment-surface b {
19814
+ color: var(--color-sentiment-content-primary);
19815
+ }
19798
19816
  .wds-pocket-surface {
19799
19817
  background-color: #ffffff;
19800
19818
  background-color: var(--color-background-screen);
@@ -146,6 +146,7 @@
146
146
  --color-interactive-control-active: #471358;
147
147
  --color-background-screen: #260a2f;
148
148
  }
149
+
149
150
  .wds-pocket-surface {
150
151
  background-color: #ffffff;
151
152
  background-color: var(--color-background-screen);
@@ -442,6 +442,7 @@
442
442
  --color-sentiment-background-surface-active: #F8CD20;
443
443
  --color-sentiment-border-overlay: rgba(58,53,35,0.30196);
444
444
  }
445
+
445
446
  .wds-sentiment-surface {
446
447
  --ring-outline-color: var(--color-sentiment-content-primary, var(--color-content-primary));
447
448
  }
@@ -449,3 +450,7 @@
449
450
  background-color: var(--color-sentiment-background-surface);
450
451
  color: var(--color-sentiment-content-primary);
451
452
  }
453
+ .wds-sentiment-surface strong,
454
+ .wds-sentiment-surface b {
455
+ color: var(--color-sentiment-content-primary);
456
+ }
@@ -140,6 +140,7 @@
140
140
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
141
141
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
142
142
  }
143
+
143
144
  /**
144
145
  * Do not edit directly, this file was auto-generated.
145
146
  */
@@ -322,6 +323,7 @@
322
323
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
323
324
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
324
325
  }
326
+
325
327
  /**
326
328
  * Do not edit directly, this file was auto-generated.
327
329
  */
@@ -504,6 +506,7 @@
504
506
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
505
507
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
506
508
  }
509
+
507
510
  /**
508
511
  * Do not edit directly, this file was auto-generated.
509
512
  */
@@ -686,6 +689,7 @@
686
689
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
687
690
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
688
691
  }
692
+
689
693
  /**
690
694
  * Do not edit directly, this file was auto-generated.
691
695
  */
@@ -868,6 +872,7 @@
868
872
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
869
873
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
870
874
  }
875
+
871
876
  /**
872
877
  * Do not edit directly, this file was auto-generated.
873
878
  */
@@ -1050,6 +1055,7 @@
1050
1055
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1051
1056
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1052
1057
  }
1058
+
1053
1059
  /**
1054
1060
  * Do not edit directly, this file was auto-generated.
1055
1061
  */
@@ -1232,6 +1238,7 @@
1232
1238
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1233
1239
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1234
1240
  }
1241
+
1235
1242
  /**
1236
1243
  * Do not edit directly, this file was auto-generated.
1237
1244
  */
@@ -1415,6 +1422,7 @@
1415
1422
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1416
1423
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1417
1424
  }
1425
+
1418
1426
  /**
1419
1427
  * Do not edit directly, this file was auto-generated.
1420
1428
  */
@@ -1598,6 +1606,7 @@
1598
1606
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1599
1607
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1600
1608
  }
1609
+
1601
1610
  /**
1602
1611
  * Do not edit directly, this file was auto-generated.
1603
1612
  */
@@ -1781,6 +1790,7 @@
1781
1790
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1782
1791
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1783
1792
  }
1793
+
1784
1794
  /**
1785
1795
  * Do not edit directly, this file was auto-generated.
1786
1796
  */
@@ -1964,6 +1974,7 @@
1964
1974
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1965
1975
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1966
1976
  }
1977
+
1967
1978
  /* See: https://github.com/fontsource/fontsource/blob/main/fonts/google/inter/variable.css */
1968
1979
  @font-face {
1969
1980
  font-family: Inter;
@@ -140,6 +140,7 @@
140
140
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
141
141
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
142
142
  }
143
+
143
144
  /**
144
145
  * Do not edit directly, this file was auto-generated.
145
146
  */
@@ -322,6 +323,7 @@
322
323
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
323
324
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
324
325
  }
326
+
325
327
  /**
326
328
  * Do not edit directly, this file was auto-generated.
327
329
  */
@@ -504,6 +506,7 @@
504
506
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
505
507
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
506
508
  }
509
+
507
510
  /**
508
511
  * Do not edit directly, this file was auto-generated.
509
512
  */
@@ -686,6 +689,7 @@
686
689
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
687
690
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
688
691
  }
692
+
689
693
  /**
690
694
  * Do not edit directly, this file was auto-generated.
691
695
  */
@@ -868,6 +872,7 @@
868
872
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
869
873
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
870
874
  }
875
+
871
876
  /**
872
877
  * Do not edit directly, this file was auto-generated.
873
878
  */
@@ -1050,6 +1055,7 @@
1050
1055
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1051
1056
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1052
1057
  }
1058
+
1053
1059
  /**
1054
1060
  * Do not edit directly, this file was auto-generated.
1055
1061
  */
@@ -1232,6 +1238,7 @@
1232
1238
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1233
1239
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1234
1240
  }
1241
+
1235
1242
  /**
1236
1243
  * Do not edit directly, this file was auto-generated.
1237
1244
  */
@@ -1415,6 +1422,7 @@
1415
1422
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1416
1423
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1417
1424
  }
1425
+
1418
1426
  /**
1419
1427
  * Do not edit directly, this file was auto-generated.
1420
1428
  */
@@ -1598,6 +1606,7 @@
1598
1606
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1599
1607
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1600
1608
  }
1609
+
1601
1610
  /**
1602
1611
  * Do not edit directly, this file was auto-generated.
1603
1612
  */
@@ -1781,6 +1790,7 @@
1781
1790
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1782
1791
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1783
1792
  }
1793
+
1784
1794
  /**
1785
1795
  * Do not edit directly, this file was auto-generated.
1786
1796
  */
@@ -1964,7 +1974,9 @@
1964
1974
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1965
1975
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1966
1976
  }
1977
+
1967
1978
  /* See: https://github.com/fontsource/fontsource/blob/main/fonts/google/inter/variable.css */
1979
+
1968
1980
  /**
1969
1981
  * Do not edit directly, this file was auto-generated.
1970
1982
  */
@@ -2409,6 +2421,7 @@
2409
2421
  --color-sentiment-background-surface-active: #F8CD20;
2410
2422
  --color-sentiment-border-overlay: rgba(58,53,35,0.30196);
2411
2423
  }
2424
+
2412
2425
  /**
2413
2426
  * Do not edit directly, this file was auto-generated.
2414
2427
  */
@@ -2557,6 +2570,7 @@
2557
2570
  --color-interactive-control-active: #471358;
2558
2571
  --color-background-screen: #260a2f;
2559
2572
  }
2573
+
2560
2574
  @font-face {
2561
2575
  font-family: Inter;
2562
2576
  font-style: normal;
@@ -19795,6 +19809,10 @@ a[data-toggle="tooltip"] {
19795
19809
  background-color: var(--color-sentiment-background-surface);
19796
19810
  color: var(--color-sentiment-content-primary);
19797
19811
  }
19812
+ .wds-sentiment-surface strong,
19813
+ .wds-sentiment-surface b {
19814
+ color: var(--color-sentiment-content-primary);
19815
+ }
19798
19816
  .wds-pocket-surface {
19799
19817
  background-color: #ffffff;
19800
19818
  background-color: var(--color-background-screen);
@@ -140,6 +140,7 @@
140
140
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
141
141
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
142
142
  }
143
+
143
144
  /**
144
145
  * Do not edit directly, this file was auto-generated.
145
146
  */
@@ -322,6 +323,7 @@
322
323
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
323
324
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
324
325
  }
326
+
325
327
  /**
326
328
  * Do not edit directly, this file was auto-generated.
327
329
  */
@@ -504,6 +506,7 @@
504
506
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
505
507
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
506
508
  }
509
+
507
510
  /**
508
511
  * Do not edit directly, this file was auto-generated.
509
512
  */
@@ -686,6 +689,7 @@
686
689
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
687
690
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
688
691
  }
692
+
689
693
  /**
690
694
  * Do not edit directly, this file was auto-generated.
691
695
  */
@@ -868,6 +872,7 @@
868
872
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
869
873
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
870
874
  }
875
+
871
876
  /**
872
877
  * Do not edit directly, this file was auto-generated.
873
878
  */
@@ -1050,6 +1055,7 @@
1050
1055
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1051
1056
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1052
1057
  }
1058
+
1053
1059
  /**
1054
1060
  * Do not edit directly, this file was auto-generated.
1055
1061
  */
@@ -1232,6 +1238,7 @@
1232
1238
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1233
1239
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1234
1240
  }
1241
+
1235
1242
  /**
1236
1243
  * Do not edit directly, this file was auto-generated.
1237
1244
  */
@@ -1415,6 +1422,7 @@
1415
1422
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1416
1423
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1417
1424
  }
1425
+
1418
1426
  /**
1419
1427
  * Do not edit directly, this file was auto-generated.
1420
1428
  */
@@ -1598,6 +1606,7 @@
1598
1606
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1599
1607
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1600
1608
  }
1609
+
1601
1610
  /**
1602
1611
  * Do not edit directly, this file was auto-generated.
1603
1612
  */
@@ -1781,6 +1790,7 @@
1781
1790
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1782
1791
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1783
1792
  }
1793
+
1784
1794
  /**
1785
1795
  * Do not edit directly, this file was auto-generated.
1786
1796
  */
@@ -1964,6 +1974,7 @@
1964
1974
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1965
1975
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1966
1976
  }
1977
+
1967
1978
  /* See: https://github.com/fontsource/fontsource/blob/main/fonts/google/inter/variable.css */
1968
1979
  @font-face {
1969
1980
  font-family: Inter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "46.160.4",
3
+ "version": "46.160.5",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -44,27 +44,27 @@
44
44
  "@babel/preset-env": "^7.29.7",
45
45
  "@babel/preset-react": "^7.29.7",
46
46
  "@babel/preset-typescript": "^7.29.7",
47
- "@formatjs/cli": "^6.16.14",
47
+ "@formatjs/cli": "^6.16.19",
48
48
  "@rollup/plugin-babel": "^7.1.0",
49
49
  "@rollup/plugin-json": "^6.1.0",
50
50
  "@rollup/plugin-node-resolve": "^16.0.3",
51
51
  "@rollup/plugin-typescript": "^12.3.0",
52
52
  "@rollup/plugin-url": "^8.0.2",
53
- "@storybook/addon-a11y": "^10.5.4",
54
- "@storybook/addon-docs": "^10.5.4",
53
+ "@storybook/addon-a11y": "^10.5.10",
54
+ "@storybook/addon-docs": "^10.5.10",
55
55
  "@storybook/addon-mcp": "^0.7.0",
56
56
  "@storybook/addon-webpack5-compiler-babel": "^4.0.1",
57
- "@storybook/react-webpack5": "^10.5.4",
57
+ "@storybook/react-webpack5": "^10.5.10",
58
58
  "@testing-library/dom": "^10.4.1",
59
59
  "@testing-library/jest-dom": "^6.9.1",
60
60
  "@testing-library/react": "^16.3.2",
61
- "@testing-library/user-event": "^14.6.1",
61
+ "@testing-library/user-event": "^14.6.6",
62
62
  "@transferwise/icons": "^4.4.4",
63
63
  "@tsconfig/recommended": "^1.0.13",
64
64
  "@types/babel__core": "^7.20.5",
65
65
  "@types/commonmark": "^0.27.10",
66
66
  "@types/jest": "^29.5.14",
67
- "@types/lodash": "4.17.24",
67
+ "@types/lodash": "4.17.25",
68
68
  "@types/lodash.clamp": "^4.0.9",
69
69
  "@types/lodash.debounce": "^4.0.9",
70
70
  "@types/react": "^18.3.31",
@@ -77,7 +77,7 @@
77
77
  "@wise/eslint-config": "^14.2.1",
78
78
  "babel-plugin-formatjs": "^11.3.16",
79
79
  "eslint": "^9.39.5",
80
- "eslint-plugin-storybook": "^10.5.4",
80
+ "eslint-plugin-storybook": "^10.5.10",
81
81
  "gulp": "^5.0.1",
82
82
  "jest": "^29.7.0",
83
83
  "jest-environment-jsdom": "^29.7.0",
@@ -86,13 +86,13 @@
86
86
  "lodash.times": "^4.3.2",
87
87
  "react-intl": "^7.1.14",
88
88
  "react-live": "^4.1.8",
89
- "rollup": "^4.62.2",
89
+ "rollup": "^4.62.5",
90
90
  "rollup-preserve-directives": "^1.1.3",
91
- "storybook": "^10.5.4",
91
+ "storybook": "^10.5.10",
92
92
  "storybook-addon-tag-badges": "^3.1.0",
93
93
  "storybook-addon-test-codegen": "^3.0.4",
94
- "@wise/components-theming": "1.10.3",
95
94
  "@transferwise/less-config": "3.2.0",
95
+ "@wise/components-theming": "1.10.3",
96
96
  "@wise/wds-configs": "0.0.0"
97
97
  },
98
98
  "peerDependencies": {
@@ -115,13 +115,13 @@
115
115
  "@transferwise/neptune-validation": "^3.3.4",
116
116
  "clsx": "^2.1.1",
117
117
  "commonmark": "^0.31.2",
118
- "core-js": "^3.49.0",
119
- "motion": "^12.42.2",
118
+ "core-js": "^3.50.0",
119
+ "motion": "^12.43.0",
120
120
  "lodash.clamp": "^4.0.3",
121
121
  "lodash.debounce": "^4.0.8",
122
122
  "merge-props": "^6.0.0",
123
123
  "react-transition-group": "^4.4.5",
124
- "virtua": "^0.50.0"
124
+ "virtua": "^0.50.4"
125
125
  },
126
126
  "publishConfig": {
127
127
  "access": "public",
@@ -146,6 +146,7 @@
146
146
  --color-interactive-control-active: #471358;
147
147
  --color-background-screen: #260a2f;
148
148
  }
149
+
149
150
  .wds-pocket-surface {
150
151
  background-color: #ffffff;
151
152
  background-color: var(--color-background-screen);
@@ -233,7 +233,11 @@ export const Sentiments: Story = {
233
233
  key={sentiment}
234
234
  sentiment={sentiment}
235
235
  title={`${sentiment.charAt(0).toUpperCase() + sentiment.slice(1)} Action`}
236
- description={lorem10}
236
+ description={
237
+ <>
238
+ This is a <strong>{sentiment}</strong> prompt.
239
+ </>
240
+ }
237
241
  action={{ label: 'Primary', onClick: fn() }}
238
242
  actionSecondary={{ label: 'Secondary', onClick: fn() }}
239
243
  />
@@ -73,6 +73,8 @@ export default {
73
73
  },
74
74
  } satisfies Meta<InfoPromptProps>;
75
75
 
76
+ type Story = StoryObj<InfoPromptProps>;
77
+
76
78
  /**
77
79
  * Convenience controls for previewing rich markup,
78
80
  * not otherwise possible via Storybook
@@ -192,7 +194,7 @@ export const Sandbox = createSandboxStory({
192
194
  * - `warning`: Warning messages
193
195
  * - `proposition`: Promotional content (uses GiftBox icon by default)
194
196
  */
195
- export const Sentiments: StoryObj<InfoPromptProps> = {
197
+ export const Sentiments: Story = {
196
198
  render: (args: InfoPromptProps) => (
197
199
  <>
198
200
  <InfoPrompt {...args} sentiment="neutral" description="This is a neutral message." />
@@ -207,7 +209,7 @@ export const Sentiments: StoryObj<InfoPromptProps> = {
207
209
  /**
208
210
  * InfoPrompt can include both a title and description for more detailed messaging.
209
211
  */
210
- export const WithTitle: StoryObj<InfoPromptProps> = {
212
+ export const WithTitle: Story = {
211
213
  render: (args: InfoPromptProps) => (
212
214
  <>
213
215
  <InfoPrompt
@@ -236,7 +238,7 @@ export const WithTitle: StoryObj<InfoPromptProps> = {
236
238
  * Use the `action` prop to add a clickable link below the message.
237
239
  * Actions can have an `href` for navigation or an `onClick` for custom behavior.
238
240
  */
239
- export const WithAction: StoryObj<InfoPromptProps> = {
241
+ export const WithAction: Story = {
240
242
  render: (args: InfoPromptProps) => (
241
243
  <>
242
244
  <InfoPrompt
@@ -270,7 +272,7 @@ export const WithAction: StoryObj<InfoPromptProps> = {
270
272
  * **Important**: If the description contains an interactive element, do not use the `action` prop
271
273
  * simultaneously — InfoPrompt should have at most one interaction.
272
274
  */
273
- export const WithRichDescription: StoryObj<InfoPromptProps> = {
275
+ export const WithRichDescription: Story = {
274
276
  render: (args: InfoPromptProps) => (
275
277
  <>
276
278
  <InfoPrompt
@@ -282,7 +284,7 @@ export const WithRichDescription: StoryObj<InfoPromptProps> = {
282
284
  <Link href="/fees" target="_blank" type="link-default">
283
285
  fee schedule
284
286
  </Link>
285
- .
287
+ . This has <strong>bold text</strong> that matches the sentiment color.
286
288
  </>
287
289
  }
288
290
  />
@@ -296,7 +298,8 @@ export const WithRichDescription: StoryObj<InfoPromptProps> = {
296
298
  <Link href="/verify" type="link-default">
297
299
  verify your identity
298
300
  </Link>{' '}
299
- to continue sending money.
301
+ to continue sending money. This has <strong>bold text</strong> that matches the
302
+ sentiment color.
300
303
  </>
301
304
  }
302
305
  />
@@ -308,7 +311,7 @@ export const WithRichDescription: StoryObj<InfoPromptProps> = {
308
311
  * When `onDismiss` is provided, a close button appears allowing users to dismiss the prompt.
309
312
  * Note: The component itself is not automatically removed - you must handle state management.
310
313
  */
311
- export const Dismissible: StoryObj<InfoPromptProps> = {
314
+ export const Dismissible: Story = {
312
315
  render: function Render() {
313
316
  const [showPrompt, setShowPrompt] = useState(true);
314
317
 
@@ -339,7 +342,7 @@ export const Dismissible: StoryObj<InfoPromptProps> = {
339
342
  * **Icon Overrides**: Replace default icons with custom icons to match the prompt's visual language to its content.
340
343
  * Success and proposition sentiments support both standard checkmark and confetti variations.
341
344
  */
342
- export const MediaTypes: StoryObj<InfoPromptProps> = {
345
+ export const MediaTypes: Story = {
343
346
  render: (args) => (
344
347
  <>
345
348
  <Title type="title-body">Default</Title>
@@ -392,7 +395,7 @@ export const MediaTypes: StoryObj<InfoPromptProps> = {
392
395
  *
393
396
  * [Visit wise.design](https://docs.wise.design/components/info-prompt#writing-an-info-prompt) for guidance on writing effective prompt messages that are concise and easy to understand.
394
397
  */
395
- export const ParagraphWidth: StoryObj<PreviewStoryArgs> = {
398
+ export const ParagraphWidth: Story = {
396
399
  parameters: {
397
400
  docs: {
398
401
  canvas: {
@@ -135,19 +135,19 @@ export const Sentiments: StoryObj<PreviewStoryArgs> = {
135
135
  return (
136
136
  <>
137
137
  <InlinePrompt {...props} {...previewProps} sentiment="neutral">
138
- This is a neutral prompt.
138
+ This is a <strong>neutral</strong> prompt.
139
139
  </InlinePrompt>
140
140
  <InlinePrompt {...props} {...previewProps} sentiment="negative">
141
- This is a negative prompt.
141
+ This is a <strong>negative</strong> prompt.
142
142
  </InlinePrompt>
143
143
  <InlinePrompt {...props} {...previewProps} sentiment="warning">
144
- This is a warning prompt.
144
+ This is a <strong>warning</strong> prompt.
145
145
  </InlinePrompt>
146
146
  <InlinePrompt {...props} {...previewProps} sentiment="positive">
147
- This is a positive prompt.
147
+ This is a <strong>positive</strong> prompt.
148
148
  </InlinePrompt>
149
149
  <InlinePrompt {...props} {...previewProps} sentiment="proposition">
150
- This is a proposition prompt.
150
+ This is a <strong>proposition</strong> prompt.
151
151
  </InlinePrompt>
152
152
  </>
153
153
  );
@@ -3,7 +3,8 @@
3
3
  display: flex;
4
4
  gap: var(--Prompt-gap, var(--size-16));
5
5
  overflow-wrap: break-word;
6
- padding: var(--Prompt-padding-y, var(--padding-x-small)) var(--Prompt-padding-x, var(--padding-x-small));
6
+ padding: var(--Prompt-padding-y, var(--padding-x-small))
7
+ var(--Prompt-padding-x, var(--padding-x-small));
7
8
  text-align: left;
8
9
  word-break: break-word;
9
10
  width: 100%;
@@ -442,6 +442,7 @@
442
442
  --color-sentiment-background-surface-active: #F8CD20;
443
443
  --color-sentiment-border-overlay: rgba(58,53,35,0.30196);
444
444
  }
445
+
445
446
  .wds-sentiment-surface {
446
447
  --ring-outline-color: var(--color-sentiment-content-primary, var(--color-content-primary));
447
448
  }
@@ -449,3 +450,7 @@
449
450
  background-color: var(--color-sentiment-background-surface);
450
451
  color: var(--color-sentiment-content-primary);
451
452
  }
453
+ .wds-sentiment-surface strong,
454
+ .wds-sentiment-surface b {
455
+ color: var(--color-sentiment-content-primary);
456
+ }
@@ -7,4 +7,9 @@
7
7
  }
8
8
 
9
9
  --ring-outline-color: var(--color-sentiment-content-primary, var(--color-content-primary));
10
+
11
+ strong,
12
+ b {
13
+ color: var(--color-sentiment-content-primary);
14
+ }
10
15
  }
@@ -228,7 +228,9 @@ export const EmphasisLevels: Story = {
228
228
  sentiment={sentiment}
229
229
  emphasis="base"
230
230
  >
231
- <div className="p-a-2 text-capitalize">{sentiment} - Base emphasis</div>
231
+ <div className="p-a-2 text-capitalize">
232
+ <strong>{sentiment}</strong> - Base emphasis
233
+ </div>
232
234
  </SentimentSurface>
233
235
  <SentimentSurface
234
236
  key={`${sentiment}-elevated`}
@@ -236,7 +238,9 @@ export const EmphasisLevels: Story = {
236
238
  sentiment={sentiment}
237
239
  emphasis="elevated"
238
240
  >
239
- <div className="p-a-2 text-capitalize">{sentiment} - Elevated emphasis</div>
241
+ <div className="p-a-2 text-capitalize">
242
+ <strong>{sentiment}</strong> - Elevated emphasis
243
+ </div>
240
244
  </SentimentSurface>
241
245
  </div>
242
246
  ))}
package/src/main.css CHANGED
@@ -140,6 +140,7 @@
140
140
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
141
141
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
142
142
  }
143
+
143
144
  /**
144
145
  * Do not edit directly, this file was auto-generated.
145
146
  */
@@ -322,6 +323,7 @@
322
323
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
323
324
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
324
325
  }
326
+
325
327
  /**
326
328
  * Do not edit directly, this file was auto-generated.
327
329
  */
@@ -504,6 +506,7 @@
504
506
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
505
507
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
506
508
  }
509
+
507
510
  /**
508
511
  * Do not edit directly, this file was auto-generated.
509
512
  */
@@ -686,6 +689,7 @@
686
689
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
687
690
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
688
691
  }
692
+
689
693
  /**
690
694
  * Do not edit directly, this file was auto-generated.
691
695
  */
@@ -868,6 +872,7 @@
868
872
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
869
873
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
870
874
  }
875
+
871
876
  /**
872
877
  * Do not edit directly, this file was auto-generated.
873
878
  */
@@ -1050,6 +1055,7 @@
1050
1055
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1051
1056
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1052
1057
  }
1058
+
1053
1059
  /**
1054
1060
  * Do not edit directly, this file was auto-generated.
1055
1061
  */
@@ -1232,6 +1238,7 @@
1232
1238
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1233
1239
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1234
1240
  }
1241
+
1235
1242
  /**
1236
1243
  * Do not edit directly, this file was auto-generated.
1237
1244
  */
@@ -1415,6 +1422,7 @@
1415
1422
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1416
1423
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1417
1424
  }
1425
+
1418
1426
  /**
1419
1427
  * Do not edit directly, this file was auto-generated.
1420
1428
  */
@@ -1598,6 +1606,7 @@
1598
1606
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1599
1607
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1600
1608
  }
1609
+
1601
1610
  /**
1602
1611
  * Do not edit directly, this file was auto-generated.
1603
1612
  */
@@ -1781,6 +1790,7 @@
1781
1790
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1782
1791
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1783
1792
  }
1793
+
1784
1794
  /**
1785
1795
  * Do not edit directly, this file was auto-generated.
1786
1796
  */
@@ -1964,7 +1974,9 @@
1964
1974
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1965
1975
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1966
1976
  }
1977
+
1967
1978
  /* See: https://github.com/fontsource/fontsource/blob/main/fonts/google/inter/variable.css */
1979
+
1968
1980
  /**
1969
1981
  * Do not edit directly, this file was auto-generated.
1970
1982
  */
@@ -2409,6 +2421,7 @@
2409
2421
  --color-sentiment-background-surface-active: #F8CD20;
2410
2422
  --color-sentiment-border-overlay: rgba(58,53,35,0.30196);
2411
2423
  }
2424
+
2412
2425
  /**
2413
2426
  * Do not edit directly, this file was auto-generated.
2414
2427
  */
@@ -2557,6 +2570,7 @@
2557
2570
  --color-interactive-control-active: #471358;
2558
2571
  --color-background-screen: #260a2f;
2559
2572
  }
2573
+
2560
2574
  @font-face {
2561
2575
  font-family: Inter;
2562
2576
  font-style: normal;
@@ -19795,6 +19809,10 @@ a[data-toggle="tooltip"] {
19795
19809
  background-color: var(--color-sentiment-background-surface);
19796
19810
  color: var(--color-sentiment-content-primary);
19797
19811
  }
19812
+ .wds-sentiment-surface strong,
19813
+ .wds-sentiment-surface b {
19814
+ color: var(--color-sentiment-content-primary);
19815
+ }
19798
19816
  .wds-pocket-surface {
19799
19817
  background-color: #ffffff;
19800
19818
  background-color: var(--color-background-screen);
@@ -140,6 +140,7 @@
140
140
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
141
141
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
142
142
  }
143
+
143
144
  /**
144
145
  * Do not edit directly, this file was auto-generated.
145
146
  */
@@ -322,6 +323,7 @@
322
323
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
323
324
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
324
325
  }
326
+
325
327
  /**
326
328
  * Do not edit directly, this file was auto-generated.
327
329
  */
@@ -504,6 +506,7 @@
504
506
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
505
507
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
506
508
  }
509
+
507
510
  /**
508
511
  * Do not edit directly, this file was auto-generated.
509
512
  */
@@ -686,6 +689,7 @@
686
689
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
687
690
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
688
691
  }
692
+
689
693
  /**
690
694
  * Do not edit directly, this file was auto-generated.
691
695
  */
@@ -868,6 +872,7 @@
868
872
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
869
873
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
870
874
  }
875
+
871
876
  /**
872
877
  * Do not edit directly, this file was auto-generated.
873
878
  */
@@ -1050,6 +1055,7 @@
1050
1055
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1051
1056
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1052
1057
  }
1058
+
1053
1059
  /**
1054
1060
  * Do not edit directly, this file was auto-generated.
1055
1061
  */
@@ -1232,6 +1238,7 @@
1232
1238
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1233
1239
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1234
1240
  }
1241
+
1235
1242
  /**
1236
1243
  * Do not edit directly, this file was auto-generated.
1237
1244
  */
@@ -1415,6 +1422,7 @@
1415
1422
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1416
1423
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1417
1424
  }
1425
+
1418
1426
  /**
1419
1427
  * Do not edit directly, this file was auto-generated.
1420
1428
  */
@@ -1598,6 +1606,7 @@
1598
1606
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1599
1607
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1600
1608
  }
1609
+
1601
1610
  /**
1602
1611
  * Do not edit directly, this file was auto-generated.
1603
1612
  */
@@ -1781,6 +1790,7 @@
1781
1790
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1782
1791
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1783
1792
  }
1793
+
1784
1794
  /**
1785
1795
  * Do not edit directly, this file was auto-generated.
1786
1796
  */
@@ -1964,6 +1974,7 @@
1964
1974
  --font-family-regular: 'Inter', Helvetica, Arial, sans-serif;
1965
1975
  --font-family-display: 'Wise Sans', 'Inter', sans-serif;
1966
1976
  }
1977
+
1967
1978
  /* See: https://github.com/fontsource/fontsource/blob/main/fonts/google/inter/variable.css */
1968
1979
  @font-face {
1969
1980
  font-family: Inter;