@transferwise/components 0.0.0-experimental-8b2286f → 0.0.0-experimental-c3b48d7

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 (26) hide show
  1. package/build/expressiveMoneyInput/amountInput/AmountInput.js +1 -1
  2. package/build/expressiveMoneyInput/amountInput/AmountInput.js.map +1 -1
  3. package/build/expressiveMoneyInput/amountInput/AmountInput.mjs +1 -1
  4. package/build/expressiveMoneyInput/amountInput/AmountInput.mjs.map +1 -1
  5. package/build/main.css +322 -238
  6. package/build/styles/css/neptune.css +12 -26
  7. package/build/styles/expressiveMoneyInput/ExpressiveMoneyInput.css +0 -2
  8. package/build/styles/expressiveMoneyInput/amountInput/AmountInput.css +0 -2
  9. package/build/styles/less/neptune-tokens.less +2 -2
  10. package/build/styles/main.css +322 -238
  11. package/build/styles/props/neptune-tokens.css +1 -1
  12. package/build/styles/sentimentSurface/SentimentSurface.css +302 -202
  13. package/build/styles/styles/less/neptune.css +12 -26
  14. package/package.json +2 -2
  15. package/src/expressiveMoneyInput/ExpressiveMoneyInput.css +0 -2
  16. package/src/expressiveMoneyInput/ExpressiveMoneyInput.test.story.tsx +0 -43
  17. package/src/expressiveMoneyInput/amountInput/AmountInput.css +0 -2
  18. package/src/expressiveMoneyInput/amountInput/AmountInput.less +0 -2
  19. package/src/expressiveMoneyInput/amountInput/AmountInput.tsx +1 -1
  20. package/src/main.css +322 -238
  21. package/src/sentimentSurface/SentimentSurface.css +302 -202
  22. package/src/sentimentSurface/SentimentSurface.docs.mdx +2 -0
  23. package/src/sentimentSurface/SentimentSurface.less +67 -315
  24. package/src/sentimentSurface/SentimentSurface.story.tsx +4 -0
  25. package/src/styles/less/core/_typography.less +6 -28
  26. package/src/styles/less/neptune.css +12 -26
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly, this file was auto-generated.
3
- * Generated on Thu, 14 May 2026 16:11:43 GMT
3
+ * Generated on Mon, 18 May 2026 08:34:10 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -144,7 +144,7 @@
144
144
 
145
145
  /**
146
146
  * Do not edit directly, this file was auto-generated.
147
- * Generated on Thu, 14 May 2026 16:11:44 GMT
147
+ * Generated on Mon, 18 May 2026 08:34:11 GMT
148
148
  */
149
149
 
150
150
  .np-theme-personal {
@@ -328,7 +328,7 @@
328
328
 
329
329
  /**
330
330
  * Do not edit directly, this file was auto-generated.
331
- * Generated on Thu, 14 May 2026 16:11:44 GMT
331
+ * Generated on Mon, 18 May 2026 08:34:11 GMT
332
332
  */
333
333
 
334
334
  .np-theme-personal--forest-green {
@@ -512,7 +512,7 @@
512
512
 
513
513
  /**
514
514
  * Do not edit directly, this file was auto-generated.
515
- * Generated on Thu, 14 May 2026 16:11:44 GMT
515
+ * Generated on Mon, 18 May 2026 08:34:11 GMT
516
516
  */
517
517
 
518
518
  .np-theme-personal--bright-green {
@@ -696,7 +696,7 @@
696
696
 
697
697
  /**
698
698
  * Do not edit directly, this file was auto-generated.
699
- * Generated on Thu, 14 May 2026 16:11:44 GMT
699
+ * Generated on Mon, 18 May 2026 08:34:11 GMT
700
700
  */
701
701
 
702
702
  .np-theme-personal--dark {
@@ -880,7 +880,7 @@
880
880
 
881
881
  /**
882
882
  * Do not edit directly, this file was auto-generated.
883
- * Generated on Thu, 14 May 2026 16:11:44 GMT
883
+ * Generated on Mon, 18 May 2026 08:34:11 GMT
884
884
  */
885
885
 
886
886
  .np-theme-platform {
@@ -1064,7 +1064,7 @@
1064
1064
 
1065
1065
  /**
1066
1066
  * Do not edit directly, this file was auto-generated.
1067
- * Generated on Thu, 14 May 2026 16:11:44 GMT
1067
+ * Generated on Mon, 18 May 2026 08:34:11 GMT
1068
1068
  */
1069
1069
 
1070
1070
  .np-theme-platform--forest-green {
@@ -1248,7 +1248,7 @@
1248
1248
 
1249
1249
  /**
1250
1250
  * Do not edit directly, this file was auto-generated.
1251
- * Generated on Thu, 14 May 2026 16:11:44 GMT
1251
+ * Generated on Mon, 18 May 2026 08:34:11 GMT
1252
1252
  */
1253
1253
 
1254
1254
  .np-theme-business {
@@ -1433,7 +1433,7 @@
1433
1433
 
1434
1434
  /**
1435
1435
  * Do not edit directly, this file was auto-generated.
1436
- * Generated on Thu, 14 May 2026 16:11:44 GMT
1436
+ * Generated on Mon, 18 May 2026 08:34:12 GMT
1437
1437
  */
1438
1438
 
1439
1439
  .np-theme-business--dark {
@@ -1618,7 +1618,7 @@
1618
1618
 
1619
1619
  /**
1620
1620
  * Do not edit directly, this file was auto-generated.
1621
- * Generated on Thu, 14 May 2026 16:11:44 GMT
1621
+ * Generated on Mon, 18 May 2026 08:34:12 GMT
1622
1622
  */
1623
1623
 
1624
1624
  .np-theme-business--forest-green {
@@ -1803,7 +1803,7 @@
1803
1803
 
1804
1804
  /**
1805
1805
  * Do not edit directly, this file was auto-generated.
1806
- * Generated on Thu, 14 May 2026 16:11:44 GMT
1806
+ * Generated on Mon, 18 May 2026 08:34:12 GMT
1807
1807
  */
1808
1808
 
1809
1809
  .np-theme-business--bright-green {
@@ -3238,16 +3238,7 @@ a,
3238
3238
  .np-text-display-extra-large,
3239
3239
  .np-text-display-large,
3240
3240
  .np-text-display-medium,
3241
- .np-text-display-small,
3242
- .display-1--forced,
3243
- .display-2--forced,
3244
- .display-3--forced,
3245
- .display-4--forced,
3246
- .display-5--forced,
3247
- .np-text-display-extra-large--forced,
3248
- .np-text-display-large--forced,
3249
- .np-text-display-medium--forced,
3250
- .np-text-display-small--forced {
3241
+ .np-text-display-small {
3251
3242
  font-family: 'Wise Sans', 'Inter', sans-serif;
3252
3243
  font-family: var(--font-family-display);
3253
3244
  font-synthesis: none;
@@ -3294,14 +3285,9 @@ a,
3294
3285
  * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
3295
3286
  * font files are browser-cached and we carried over to launchpad, where it causes issues
3296
3287
  * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3297
- * There are exceptions for small UI parts where Wise Sans is fine or expected — e.g. the
3298
- * numeric input of ExpressiveMoneyInput.
3299
- * Add `--forced` BEM modifier to the original class name to guarantee it.
3300
3288
  */
3301
3289
  font-family: 'Inter', Helvetica, Arial, sans-serif;
3302
3290
  font-family: var(--font-family-regular);
3303
- line-height: 1.2;
3304
- line-height: var(--line-height-title);
3305
3291
  }
3306
3292
 
3307
3293
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-8b2286f",
3
+ "version": "0.0.0-experimental-c3b48d7",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -91,7 +91,7 @@
91
91
  "storybook-addon-tag-badges": "^3.1.0",
92
92
  "storybook-addon-test-codegen": "^3.0.1",
93
93
  "@transferwise/less-config": "3.1.2",
94
- "@transferwise/neptune-css": "0.0.0-experimental-8b2286f",
94
+ "@transferwise/neptune-css": "14.27.1",
95
95
  "@wise/components-theming": "1.10.2",
96
96
  "@wise/wds-configs": "0.0.0"
97
97
  },
@@ -21,7 +21,6 @@
21
21
  flex-grow: 1;
22
22
  text-align: right;
23
23
  background-color: transparent;
24
- line-height: inherit;
25
24
  }
26
25
  .wds-amount-input-input:focus-visible {
27
26
  outline: none;
@@ -30,7 +29,6 @@
30
29
  flex-grow: 0;
31
30
  display: flex;
32
31
  align-items: center;
33
- line-height: inherit;
34
32
  }
35
33
  .wds-currency-selector:disabled {
36
34
  opacity: 1 !important;
@@ -1,5 +1,4 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { fn } from 'storybook/test';
3
2
  import ExpressiveMoneyInput, { Props as ExpressiveMoneyInputProps } from './ExpressiveMoneyInput';
4
3
 
5
4
  const meta: Meta<typeof ExpressiveMoneyInput> = {
@@ -22,45 +21,3 @@ export const WithAutofocus: Story = {
22
21
  autoFocus: true,
23
22
  },
24
23
  };
25
-
26
- const locales = [
27
- { lang: 'en', label: 'English', currency: 'GBP' },
28
- { lang: 'cs', label: 'Czech', currency: 'CZK' },
29
- { lang: 'de', label: 'German', currency: 'EUR' },
30
- { lang: 'es', label: 'Spanish', currency: 'EUR' },
31
- { lang: 'fr', label: 'French', currency: 'EUR' },
32
- { lang: 'hu', label: 'Hungarian', currency: 'HUF', supportsDecimals: false },
33
- { lang: 'id', label: 'Indonesian', currency: 'IDR', supportsDecimals: false },
34
- { lang: 'it', label: 'Italian', currency: 'EUR' },
35
- { lang: 'ja', label: 'Japanese', currency: 'JPY', supportsDecimals: false },
36
- { lang: 'nl', label: 'Dutch', currency: 'EUR' },
37
- { lang: 'pl', label: 'Polish', currency: 'PLN' },
38
- { lang: 'pt', label: 'Portuguese', currency: 'EUR' },
39
- { lang: 'ro', label: 'Romanian', currency: 'RON' },
40
- { lang: 'ru', label: 'Russian', currency: 'RUB' },
41
- { lang: 'th', label: 'Thai', currency: 'THB' },
42
- { lang: 'tr', label: 'Turkish', currency: 'TRY' },
43
- { lang: 'uk', label: 'Ukrainian', currency: 'UAH' },
44
- { lang: 'zh-CN', label: 'Simplified Chinese', currency: 'CNY' },
45
- { lang: 'zh-HK', label: 'Traditional Chinese', currency: 'HKD' },
46
- ];
47
-
48
- /**
49
- * Verifies that the .wds-text-display--forced class correctly overrides locale-specific
50
- * font restrictions (ja, zh-HK, zh-CN, th) so amounts render in Wise Sans across all
51
- * supported locales. Each row represents a different language context.
52
- */
53
- export const LocaleFontOverride = () => (
54
- <>
55
- {locales.map(({ lang, label, currency, supportsDecimals = true }) => (
56
- <div key={lang} lang={lang} className="m-b-4">
57
- <ExpressiveMoneyInput
58
- label={`${label} locale (${lang})`}
59
- currency={currency}
60
- amount={supportsDecimals ? 1234.56 : 123456}
61
- onAmountChange={fn()}
62
- />
63
- </div>
64
- ))}
65
- </>
66
- );
@@ -21,7 +21,6 @@
21
21
  flex-grow: 1;
22
22
  text-align: right;
23
23
  background-color: transparent;
24
- line-height: inherit;
25
24
  }
26
25
  .wds-amount-input-input:focus-visible {
27
26
  outline: none;
@@ -30,5 +29,4 @@
30
29
  flex-grow: 0;
31
30
  display: flex;
32
31
  align-items: center;
33
- line-height: inherit;
34
32
  }
@@ -29,7 +29,6 @@
29
29
  flex-grow: 1;
30
30
  text-align: right;
31
31
  background-color: transparent;
32
- line-height: inherit;
33
32
 
34
33
  &:focus-visible {
35
34
  outline: none;
@@ -40,6 +39,5 @@
40
39
  flex-grow: 0;
41
40
  display: flex;
42
41
  align-items: center;
43
- line-height: inherit;
44
42
  }
45
43
  }
@@ -291,7 +291,7 @@ export const AmountInput = ({
291
291
  return (
292
292
  <div className="wds-amount-input-container">
293
293
  <div
294
- className={clsx('wds-amount-input-input-container', 'np-text-display-large--forced')}
294
+ className={clsx('wds-amount-input-input-container', 'np-text-display-large')}
295
295
  style={style}
296
296
  >
297
297
  <input