@transferwise/components 0.0.0-experimental-7e4ad0e → 0.0.0-experimental-5036e0b

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
@@ -3492,10 +3492,57 @@ a,
3492
3492
  .np-text-display-large,
3493
3493
  .np-text-display-medium,
3494
3494
  .np-text-display-small {
3495
- font-family: "Wise Sans", Inter, sans-serif;
3495
+ font-family: 'Wise Sans', 'Inter', sans-serif;
3496
+ font-family: var(--font-family-display);
3496
3497
  font-synthesis: none;
3497
3498
  }
3498
3499
 
3500
+ :lang(ja) .display-1,
3501
+ :lang(ja) .display-2,
3502
+ :lang(ja) .display-3,
3503
+ :lang(ja) .display-4,
3504
+ :lang(ja) .display-5,
3505
+ :lang(ja) .np-text-display-extra-large,
3506
+ :lang(ja) .np-text-display-large,
3507
+ :lang(ja) .np-text-display-medium,
3508
+ :lang(ja) .np-text-display-small,
3509
+ :lang(th) .display-1,
3510
+ :lang(th) .display-2,
3511
+ :lang(th) .display-3,
3512
+ :lang(th) .display-4,
3513
+ :lang(th) .display-5,
3514
+ :lang(th) .np-text-display-extra-large,
3515
+ :lang(th) .np-text-display-large,
3516
+ :lang(th) .np-text-display-medium,
3517
+ :lang(th) .np-text-display-small,
3518
+ :lang(zh-CN) .display-1,
3519
+ :lang(zh-CN) .display-2,
3520
+ :lang(zh-CN) .display-3,
3521
+ :lang(zh-CN) .display-4,
3522
+ :lang(zh-CN) .display-5,
3523
+ :lang(zh-CN) .np-text-display-extra-large,
3524
+ :lang(zh-CN) .np-text-display-large,
3525
+ :lang(zh-CN) .np-text-display-medium,
3526
+ :lang(zh-CN) .np-text-display-small,
3527
+ :lang(zh-HK) .display-1,
3528
+ :lang(zh-HK) .display-2,
3529
+ :lang(zh-HK) .display-3,
3530
+ :lang(zh-HK) .display-4,
3531
+ :lang(zh-HK) .display-5,
3532
+ :lang(zh-HK) .np-text-display-extra-large,
3533
+ :lang(zh-HK) .np-text-display-large,
3534
+ :lang(zh-HK) .np-text-display-medium,
3535
+ :lang(zh-HK) .np-text-display-small {
3536
+ /**
3537
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
3538
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
3539
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
3540
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3541
+ */
3542
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3543
+ font-family: var(--font-family-regular);
3544
+ }
3545
+
3499
3546
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
3500
3547
 
3501
3548
  .np-text-display-extra-large,
@@ -3492,10 +3492,57 @@ a,
3492
3492
  .np-text-display-large,
3493
3493
  .np-text-display-medium,
3494
3494
  .np-text-display-small {
3495
- font-family: "Wise Sans", Inter, sans-serif;
3495
+ font-family: 'Wise Sans', 'Inter', sans-serif;
3496
+ font-family: var(--font-family-display);
3496
3497
  font-synthesis: none;
3497
3498
  }
3498
3499
 
3500
+ :lang(ja) .display-1,
3501
+ :lang(ja) .display-2,
3502
+ :lang(ja) .display-3,
3503
+ :lang(ja) .display-4,
3504
+ :lang(ja) .display-5,
3505
+ :lang(ja) .np-text-display-extra-large,
3506
+ :lang(ja) .np-text-display-large,
3507
+ :lang(ja) .np-text-display-medium,
3508
+ :lang(ja) .np-text-display-small,
3509
+ :lang(th) .display-1,
3510
+ :lang(th) .display-2,
3511
+ :lang(th) .display-3,
3512
+ :lang(th) .display-4,
3513
+ :lang(th) .display-5,
3514
+ :lang(th) .np-text-display-extra-large,
3515
+ :lang(th) .np-text-display-large,
3516
+ :lang(th) .np-text-display-medium,
3517
+ :lang(th) .np-text-display-small,
3518
+ :lang(zh-CN) .display-1,
3519
+ :lang(zh-CN) .display-2,
3520
+ :lang(zh-CN) .display-3,
3521
+ :lang(zh-CN) .display-4,
3522
+ :lang(zh-CN) .display-5,
3523
+ :lang(zh-CN) .np-text-display-extra-large,
3524
+ :lang(zh-CN) .np-text-display-large,
3525
+ :lang(zh-CN) .np-text-display-medium,
3526
+ :lang(zh-CN) .np-text-display-small,
3527
+ :lang(zh-HK) .display-1,
3528
+ :lang(zh-HK) .display-2,
3529
+ :lang(zh-HK) .display-3,
3530
+ :lang(zh-HK) .display-4,
3531
+ :lang(zh-HK) .display-5,
3532
+ :lang(zh-HK) .np-text-display-extra-large,
3533
+ :lang(zh-HK) .np-text-display-large,
3534
+ :lang(zh-HK) .np-text-display-medium,
3535
+ :lang(zh-HK) .np-text-display-small {
3536
+ /**
3537
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
3538
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
3539
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
3540
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3541
+ */
3542
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3543
+ font-family: var(--font-family-regular);
3544
+ }
3545
+
3499
3546
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
3500
3547
 
3501
3548
  .np-text-display-extra-large,
@@ -3492,10 +3492,57 @@ a,
3492
3492
  .np-text-display-large,
3493
3493
  .np-text-display-medium,
3494
3494
  .np-text-display-small {
3495
- font-family: "Wise Sans", Inter, sans-serif;
3495
+ font-family: 'Wise Sans', 'Inter', sans-serif;
3496
+ font-family: var(--font-family-display);
3496
3497
  font-synthesis: none;
3497
3498
  }
3498
3499
 
3500
+ :lang(ja) .display-1,
3501
+ :lang(ja) .display-2,
3502
+ :lang(ja) .display-3,
3503
+ :lang(ja) .display-4,
3504
+ :lang(ja) .display-5,
3505
+ :lang(ja) .np-text-display-extra-large,
3506
+ :lang(ja) .np-text-display-large,
3507
+ :lang(ja) .np-text-display-medium,
3508
+ :lang(ja) .np-text-display-small,
3509
+ :lang(th) .display-1,
3510
+ :lang(th) .display-2,
3511
+ :lang(th) .display-3,
3512
+ :lang(th) .display-4,
3513
+ :lang(th) .display-5,
3514
+ :lang(th) .np-text-display-extra-large,
3515
+ :lang(th) .np-text-display-large,
3516
+ :lang(th) .np-text-display-medium,
3517
+ :lang(th) .np-text-display-small,
3518
+ :lang(zh-CN) .display-1,
3519
+ :lang(zh-CN) .display-2,
3520
+ :lang(zh-CN) .display-3,
3521
+ :lang(zh-CN) .display-4,
3522
+ :lang(zh-CN) .display-5,
3523
+ :lang(zh-CN) .np-text-display-extra-large,
3524
+ :lang(zh-CN) .np-text-display-large,
3525
+ :lang(zh-CN) .np-text-display-medium,
3526
+ :lang(zh-CN) .np-text-display-small,
3527
+ :lang(zh-HK) .display-1,
3528
+ :lang(zh-HK) .display-2,
3529
+ :lang(zh-HK) .display-3,
3530
+ :lang(zh-HK) .display-4,
3531
+ :lang(zh-HK) .display-5,
3532
+ :lang(zh-HK) .np-text-display-extra-large,
3533
+ :lang(zh-HK) .np-text-display-large,
3534
+ :lang(zh-HK) .np-text-display-medium,
3535
+ :lang(zh-HK) .np-text-display-small {
3536
+ /**
3537
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
3538
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
3539
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
3540
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3541
+ */
3542
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3543
+ font-family: var(--font-family-regular);
3544
+ }
3545
+
3499
3546
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
3500
3547
 
3501
3548
  .np-text-display-extra-large,
@@ -3492,10 +3492,57 @@ a,
3492
3492
  .np-text-display-large,
3493
3493
  .np-text-display-medium,
3494
3494
  .np-text-display-small {
3495
- font-family: "Wise Sans", Inter, sans-serif;
3495
+ font-family: 'Wise Sans', 'Inter', sans-serif;
3496
+ font-family: var(--font-family-display);
3496
3497
  font-synthesis: none;
3497
3498
  }
3498
3499
 
3500
+ :lang(ja) .display-1,
3501
+ :lang(ja) .display-2,
3502
+ :lang(ja) .display-3,
3503
+ :lang(ja) .display-4,
3504
+ :lang(ja) .display-5,
3505
+ :lang(ja) .np-text-display-extra-large,
3506
+ :lang(ja) .np-text-display-large,
3507
+ :lang(ja) .np-text-display-medium,
3508
+ :lang(ja) .np-text-display-small,
3509
+ :lang(th) .display-1,
3510
+ :lang(th) .display-2,
3511
+ :lang(th) .display-3,
3512
+ :lang(th) .display-4,
3513
+ :lang(th) .display-5,
3514
+ :lang(th) .np-text-display-extra-large,
3515
+ :lang(th) .np-text-display-large,
3516
+ :lang(th) .np-text-display-medium,
3517
+ :lang(th) .np-text-display-small,
3518
+ :lang(zh-CN) .display-1,
3519
+ :lang(zh-CN) .display-2,
3520
+ :lang(zh-CN) .display-3,
3521
+ :lang(zh-CN) .display-4,
3522
+ :lang(zh-CN) .display-5,
3523
+ :lang(zh-CN) .np-text-display-extra-large,
3524
+ :lang(zh-CN) .np-text-display-large,
3525
+ :lang(zh-CN) .np-text-display-medium,
3526
+ :lang(zh-CN) .np-text-display-small,
3527
+ :lang(zh-HK) .display-1,
3528
+ :lang(zh-HK) .display-2,
3529
+ :lang(zh-HK) .display-3,
3530
+ :lang(zh-HK) .display-4,
3531
+ :lang(zh-HK) .display-5,
3532
+ :lang(zh-HK) .np-text-display-extra-large,
3533
+ :lang(zh-HK) .np-text-display-large,
3534
+ :lang(zh-HK) .np-text-display-medium,
3535
+ :lang(zh-HK) .np-text-display-small {
3536
+ /**
3537
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
3538
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
3539
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
3540
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3541
+ */
3542
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3543
+ font-family: var(--font-family-regular);
3544
+ }
3545
+
3499
3546
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
3500
3547
 
3501
3548
  .np-text-display-extra-large,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-7e4ad0e",
3
+ "version": "0.0.0-experimental-5036e0b",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -87,7 +87,7 @@
87
87
  "storybook-addon-tag-badges": "^3.0.6",
88
88
  "storybook-addon-test-codegen": "^3.0.1",
89
89
  "@transferwise/less-config": "3.1.2",
90
- "@transferwise/neptune-css": "14.27.0",
90
+ "@transferwise/neptune-css": "0.0.0-experimental-5036e0b",
91
91
  "@wise/components-theming": "1.10.1",
92
92
  "@wise/wds-configs": "0.0.0"
93
93
  },
@@ -14,6 +14,8 @@ export const Basic = () => {
14
14
  const DE = 'äöüßabcdefghijklmnopqrstuvwxyz';
15
15
  const UA = 'Ми будуємо найбільш міжнародний рахунок у світі';
16
16
  const JA = 'ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてで';
17
+ const ZN =
18
+ '的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年样能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去最性性齉龘龘靐齉爩鱻猋驫麤籲爨癵驫鲙鬯鬻厵纛';
17
19
  return (
18
20
  <>
19
21
  <div lang="en">
@@ -77,7 +79,7 @@ export const Basic = () => {
77
79
  </div>
78
80
  <hr />
79
81
  <div lang="ja">
80
- <h1>Everything eles, e.g 🇯🇵</h1>
82
+ <h1>Japanese</h1>
81
83
  Large
82
84
  <Display type={Typography.DISPLAY_LARGE}>{JA}</Display>
83
85
  <hr />
@@ -87,6 +89,18 @@ export const Basic = () => {
87
89
  Small
88
90
  <Display type={Typography.DISPLAY_SMALL}>{JA}</Display>
89
91
  </div>
92
+ <hr />
93
+ <div lang="zh-CN">
94
+ <h1>Simplified Chinese</h1>
95
+ Large
96
+ <Display type={Typography.DISPLAY_LARGE}>{ZN}</Display>
97
+ <hr />
98
+ Medium
99
+ <Display type={Typography.DISPLAY_MEDIUM}>{ZN}</Display>
100
+ <hr />
101
+ Small
102
+ <Display type={Typography.DISPLAY_SMALL}>{ZN}</Display>
103
+ </div>
90
104
  </>
91
105
  );
92
106
  };
package/src/main.css CHANGED
@@ -3492,10 +3492,57 @@ a,
3492
3492
  .np-text-display-large,
3493
3493
  .np-text-display-medium,
3494
3494
  .np-text-display-small {
3495
- font-family: "Wise Sans", Inter, sans-serif;
3495
+ font-family: 'Wise Sans', 'Inter', sans-serif;
3496
+ font-family: var(--font-family-display);
3496
3497
  font-synthesis: none;
3497
3498
  }
3498
3499
 
3500
+ :lang(ja) .display-1,
3501
+ :lang(ja) .display-2,
3502
+ :lang(ja) .display-3,
3503
+ :lang(ja) .display-4,
3504
+ :lang(ja) .display-5,
3505
+ :lang(ja) .np-text-display-extra-large,
3506
+ :lang(ja) .np-text-display-large,
3507
+ :lang(ja) .np-text-display-medium,
3508
+ :lang(ja) .np-text-display-small,
3509
+ :lang(th) .display-1,
3510
+ :lang(th) .display-2,
3511
+ :lang(th) .display-3,
3512
+ :lang(th) .display-4,
3513
+ :lang(th) .display-5,
3514
+ :lang(th) .np-text-display-extra-large,
3515
+ :lang(th) .np-text-display-large,
3516
+ :lang(th) .np-text-display-medium,
3517
+ :lang(th) .np-text-display-small,
3518
+ :lang(zh-CN) .display-1,
3519
+ :lang(zh-CN) .display-2,
3520
+ :lang(zh-CN) .display-3,
3521
+ :lang(zh-CN) .display-4,
3522
+ :lang(zh-CN) .display-5,
3523
+ :lang(zh-CN) .np-text-display-extra-large,
3524
+ :lang(zh-CN) .np-text-display-large,
3525
+ :lang(zh-CN) .np-text-display-medium,
3526
+ :lang(zh-CN) .np-text-display-small,
3527
+ :lang(zh-HK) .display-1,
3528
+ :lang(zh-HK) .display-2,
3529
+ :lang(zh-HK) .display-3,
3530
+ :lang(zh-HK) .display-4,
3531
+ :lang(zh-HK) .display-5,
3532
+ :lang(zh-HK) .np-text-display-extra-large,
3533
+ :lang(zh-HK) .np-text-display-large,
3534
+ :lang(zh-HK) .np-text-display-medium,
3535
+ :lang(zh-HK) .np-text-display-small {
3536
+ /**
3537
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
3538
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
3539
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
3540
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3541
+ */
3542
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3543
+ font-family: var(--font-family-regular);
3544
+ }
3545
+
3499
3546
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
3500
3547
 
3501
3548
  .np-text-display-extra-large,
@@ -25,7 +25,7 @@ h6,
25
25
  line-height: var(--line-height-title);
26
26
  letter-spacing: 0;
27
27
  .np-text-hyphenated;
28
-
28
+
29
29
  + p,
30
30
  + ul:not(.list-unstyled),
31
31
  + ol:not(.list-unstyled) {
@@ -204,8 +204,21 @@ a,
204
204
  .np-text-display-large,
205
205
  .np-text-display-medium,
206
206
  .np-text-display-small {
207
- font-family: "Wise Sans", Inter, sans-serif;
207
+ font-family: var(--font-family-display);
208
208
  font-synthesis: none;
209
+
210
+ :lang(ja) &,
211
+ :lang(th) &,
212
+ :lang(zh-CN) &,
213
+ :lang(zh-HK) & {
214
+ /**
215
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
216
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
217
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
218
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
219
+ */
220
+ font-family: var(--font-family-regular);
221
+ }
209
222
  }
210
223
 
211
224
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
@@ -3492,10 +3492,57 @@ a,
3492
3492
  .np-text-display-large,
3493
3493
  .np-text-display-medium,
3494
3494
  .np-text-display-small {
3495
- font-family: "Wise Sans", Inter, sans-serif;
3495
+ font-family: 'Wise Sans', 'Inter', sans-serif;
3496
+ font-family: var(--font-family-display);
3496
3497
  font-synthesis: none;
3497
3498
  }
3498
3499
 
3500
+ :lang(ja) .display-1,
3501
+ :lang(ja) .display-2,
3502
+ :lang(ja) .display-3,
3503
+ :lang(ja) .display-4,
3504
+ :lang(ja) .display-5,
3505
+ :lang(ja) .np-text-display-extra-large,
3506
+ :lang(ja) .np-text-display-large,
3507
+ :lang(ja) .np-text-display-medium,
3508
+ :lang(ja) .np-text-display-small,
3509
+ :lang(th) .display-1,
3510
+ :lang(th) .display-2,
3511
+ :lang(th) .display-3,
3512
+ :lang(th) .display-4,
3513
+ :lang(th) .display-5,
3514
+ :lang(th) .np-text-display-extra-large,
3515
+ :lang(th) .np-text-display-large,
3516
+ :lang(th) .np-text-display-medium,
3517
+ :lang(th) .np-text-display-small,
3518
+ :lang(zh-CN) .display-1,
3519
+ :lang(zh-CN) .display-2,
3520
+ :lang(zh-CN) .display-3,
3521
+ :lang(zh-CN) .display-4,
3522
+ :lang(zh-CN) .display-5,
3523
+ :lang(zh-CN) .np-text-display-extra-large,
3524
+ :lang(zh-CN) .np-text-display-large,
3525
+ :lang(zh-CN) .np-text-display-medium,
3526
+ :lang(zh-CN) .np-text-display-small,
3527
+ :lang(zh-HK) .display-1,
3528
+ :lang(zh-HK) .display-2,
3529
+ :lang(zh-HK) .display-3,
3530
+ :lang(zh-HK) .display-4,
3531
+ :lang(zh-HK) .display-5,
3532
+ :lang(zh-HK) .np-text-display-extra-large,
3533
+ :lang(zh-HK) .np-text-display-large,
3534
+ :lang(zh-HK) .np-text-display-medium,
3535
+ :lang(zh-HK) .np-text-display-small {
3536
+ /**
3537
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
3538
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
3539
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
3540
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
3541
+ */
3542
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
3543
+ font-family: var(--font-family-regular);
3544
+ }
3545
+
3499
3546
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
3500
3547
 
3501
3548
  .np-text-display-extra-large,