@transferwise/components 0.0.0-experimental-a9c89de → 0.0.0-experimental-4a6489f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.css +60 -1
- package/build/styles/css/neptune.css +60 -1
- package/build/styles/fonts/WiseSansJP-Heavy.woff2 +0 -0
- package/build/styles/main.css +60 -1
- package/build/styles/styles/less/neptune.css +60 -1
- package/package.json +2 -2
- package/src/display/Display.story.tsx +15 -1
- package/src/main.css +60 -1
- package/src/styles/fonts/WiseSansJP-Heavy.woff2 +0 -0
- package/src/styles/less/core/_fonts.less +13 -0
- package/src/styles/less/core/_typography.less +34 -6
- package/src/styles/less/neptune.css +60 -1
package/build/main.css
CHANGED
|
@@ -2334,6 +2334,18 @@
|
|
|
2334
2334
|
src: url("styles/fonts/WiseSans-Heavy.woff2") format("woff2");
|
|
2335
2335
|
}
|
|
2336
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
* 🚨🚨🚨 ONLY FOR TESTING. BE REMOVED BEFORE MERGING 🚨🚨🚨
|
|
2339
|
+
*/
|
|
2340
|
+
|
|
2341
|
+
@font-face {
|
|
2342
|
+
font-family: 'Wise Sans';
|
|
2343
|
+
font-style: normal;
|
|
2344
|
+
font-display: swap;
|
|
2345
|
+
src: url("styles/fonts/WiseSansJP-Heavy.woff2") format('woff2');
|
|
2346
|
+
unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF, U+2605, U+2606, U+2190-2195, U+203B;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2337
2349
|
/* stylelint-disable selector-max-empty-lines */
|
|
2338
2350
|
|
|
2339
2351
|
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
@@ -3492,10 +3504,57 @@ a,
|
|
|
3492
3504
|
.np-text-display-large,
|
|
3493
3505
|
.np-text-display-medium,
|
|
3494
3506
|
.np-text-display-small {
|
|
3495
|
-
font-family:
|
|
3507
|
+
font-family: 'Wise Sans', 'Inter', sans-serif;
|
|
3508
|
+
font-family: var(--font-family-display);
|
|
3496
3509
|
font-synthesis: none;
|
|
3497
3510
|
}
|
|
3498
3511
|
|
|
3512
|
+
:lang(ja) .display-1,
|
|
3513
|
+
:lang(ja) .display-2,
|
|
3514
|
+
:lang(ja) .display-3,
|
|
3515
|
+
:lang(ja) .display-4,
|
|
3516
|
+
:lang(ja) .display-5,
|
|
3517
|
+
:lang(ja) .np-text-display-extra-large,
|
|
3518
|
+
:lang(ja) .np-text-display-large,
|
|
3519
|
+
:lang(ja) .np-text-display-medium,
|
|
3520
|
+
:lang(ja) .np-text-display-small,
|
|
3521
|
+
:lang(th) .display-1,
|
|
3522
|
+
:lang(th) .display-2,
|
|
3523
|
+
:lang(th) .display-3,
|
|
3524
|
+
:lang(th) .display-4,
|
|
3525
|
+
:lang(th) .display-5,
|
|
3526
|
+
:lang(th) .np-text-display-extra-large,
|
|
3527
|
+
:lang(th) .np-text-display-large,
|
|
3528
|
+
:lang(th) .np-text-display-medium,
|
|
3529
|
+
:lang(th) .np-text-display-small,
|
|
3530
|
+
:lang(zh-CN) .display-1,
|
|
3531
|
+
:lang(zh-CN) .display-2,
|
|
3532
|
+
:lang(zh-CN) .display-3,
|
|
3533
|
+
:lang(zh-CN) .display-4,
|
|
3534
|
+
:lang(zh-CN) .display-5,
|
|
3535
|
+
:lang(zh-CN) .np-text-display-extra-large,
|
|
3536
|
+
:lang(zh-CN) .np-text-display-large,
|
|
3537
|
+
:lang(zh-CN) .np-text-display-medium,
|
|
3538
|
+
:lang(zh-CN) .np-text-display-small,
|
|
3539
|
+
:lang(zh-HK) .display-1,
|
|
3540
|
+
:lang(zh-HK) .display-2,
|
|
3541
|
+
:lang(zh-HK) .display-3,
|
|
3542
|
+
:lang(zh-HK) .display-4,
|
|
3543
|
+
:lang(zh-HK) .display-5,
|
|
3544
|
+
:lang(zh-HK) .np-text-display-extra-large,
|
|
3545
|
+
:lang(zh-HK) .np-text-display-large,
|
|
3546
|
+
:lang(zh-HK) .np-text-display-medium,
|
|
3547
|
+
:lang(zh-HK) .np-text-display-small {
|
|
3548
|
+
/**
|
|
3549
|
+
* Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
|
|
3550
|
+
* of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
|
|
3551
|
+
* font files are browser-cached and we carried over to launchpad, where it causes issues
|
|
3552
|
+
* for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
|
|
3553
|
+
*/
|
|
3554
|
+
font-family: 'Inter', Helvetica, Arial, sans-serif;
|
|
3555
|
+
font-family: var(--font-family-regular);
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3499
3558
|
/* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
|
|
3500
3559
|
|
|
3501
3560
|
.np-text-display-extra-large,
|
|
@@ -2334,6 +2334,18 @@
|
|
|
2334
2334
|
src: url("styles/fonts/WiseSans-Heavy.woff2") format("woff2");
|
|
2335
2335
|
}
|
|
2336
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
* 🚨🚨🚨 ONLY FOR TESTING. BE REMOVED BEFORE MERGING 🚨🚨🚨
|
|
2339
|
+
*/
|
|
2340
|
+
|
|
2341
|
+
@font-face {
|
|
2342
|
+
font-family: 'Wise Sans';
|
|
2343
|
+
font-style: normal;
|
|
2344
|
+
font-display: swap;
|
|
2345
|
+
src: url("styles/fonts/WiseSansJP-Heavy.woff2") format('woff2');
|
|
2346
|
+
unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF, U+2605, U+2606, U+2190-2195, U+203B;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2337
2349
|
/* stylelint-disable selector-max-empty-lines */
|
|
2338
2350
|
|
|
2339
2351
|
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
@@ -3492,10 +3504,57 @@ a,
|
|
|
3492
3504
|
.np-text-display-large,
|
|
3493
3505
|
.np-text-display-medium,
|
|
3494
3506
|
.np-text-display-small {
|
|
3495
|
-
font-family:
|
|
3507
|
+
font-family: 'Wise Sans', 'Inter', sans-serif;
|
|
3508
|
+
font-family: var(--font-family-display);
|
|
3496
3509
|
font-synthesis: none;
|
|
3497
3510
|
}
|
|
3498
3511
|
|
|
3512
|
+
:lang(ja) .display-1,
|
|
3513
|
+
:lang(ja) .display-2,
|
|
3514
|
+
:lang(ja) .display-3,
|
|
3515
|
+
:lang(ja) .display-4,
|
|
3516
|
+
:lang(ja) .display-5,
|
|
3517
|
+
:lang(ja) .np-text-display-extra-large,
|
|
3518
|
+
:lang(ja) .np-text-display-large,
|
|
3519
|
+
:lang(ja) .np-text-display-medium,
|
|
3520
|
+
:lang(ja) .np-text-display-small,
|
|
3521
|
+
:lang(th) .display-1,
|
|
3522
|
+
:lang(th) .display-2,
|
|
3523
|
+
:lang(th) .display-3,
|
|
3524
|
+
:lang(th) .display-4,
|
|
3525
|
+
:lang(th) .display-5,
|
|
3526
|
+
:lang(th) .np-text-display-extra-large,
|
|
3527
|
+
:lang(th) .np-text-display-large,
|
|
3528
|
+
:lang(th) .np-text-display-medium,
|
|
3529
|
+
:lang(th) .np-text-display-small,
|
|
3530
|
+
:lang(zh-CN) .display-1,
|
|
3531
|
+
:lang(zh-CN) .display-2,
|
|
3532
|
+
:lang(zh-CN) .display-3,
|
|
3533
|
+
:lang(zh-CN) .display-4,
|
|
3534
|
+
:lang(zh-CN) .display-5,
|
|
3535
|
+
:lang(zh-CN) .np-text-display-extra-large,
|
|
3536
|
+
:lang(zh-CN) .np-text-display-large,
|
|
3537
|
+
:lang(zh-CN) .np-text-display-medium,
|
|
3538
|
+
:lang(zh-CN) .np-text-display-small,
|
|
3539
|
+
:lang(zh-HK) .display-1,
|
|
3540
|
+
:lang(zh-HK) .display-2,
|
|
3541
|
+
:lang(zh-HK) .display-3,
|
|
3542
|
+
:lang(zh-HK) .display-4,
|
|
3543
|
+
:lang(zh-HK) .display-5,
|
|
3544
|
+
:lang(zh-HK) .np-text-display-extra-large,
|
|
3545
|
+
:lang(zh-HK) .np-text-display-large,
|
|
3546
|
+
:lang(zh-HK) .np-text-display-medium,
|
|
3547
|
+
:lang(zh-HK) .np-text-display-small {
|
|
3548
|
+
/**
|
|
3549
|
+
* Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
|
|
3550
|
+
* of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
|
|
3551
|
+
* font files are browser-cached and we carried over to launchpad, where it causes issues
|
|
3552
|
+
* for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
|
|
3553
|
+
*/
|
|
3554
|
+
font-family: 'Inter', Helvetica, Arial, sans-serif;
|
|
3555
|
+
font-family: var(--font-family-regular);
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3499
3558
|
/* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
|
|
3500
3559
|
|
|
3501
3560
|
.np-text-display-extra-large,
|
|
Binary file
|
package/build/styles/main.css
CHANGED
|
@@ -2334,6 +2334,18 @@
|
|
|
2334
2334
|
src: url("styles/fonts/WiseSans-Heavy.woff2") format("woff2");
|
|
2335
2335
|
}
|
|
2336
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
* 🚨🚨🚨 ONLY FOR TESTING. BE REMOVED BEFORE MERGING 🚨🚨🚨
|
|
2339
|
+
*/
|
|
2340
|
+
|
|
2341
|
+
@font-face {
|
|
2342
|
+
font-family: 'Wise Sans';
|
|
2343
|
+
font-style: normal;
|
|
2344
|
+
font-display: swap;
|
|
2345
|
+
src: url("styles/fonts/WiseSansJP-Heavy.woff2") format('woff2');
|
|
2346
|
+
unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF, U+2605, U+2606, U+2190-2195, U+203B;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2337
2349
|
/* stylelint-disable selector-max-empty-lines */
|
|
2338
2350
|
|
|
2339
2351
|
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
@@ -3492,10 +3504,57 @@ a,
|
|
|
3492
3504
|
.np-text-display-large,
|
|
3493
3505
|
.np-text-display-medium,
|
|
3494
3506
|
.np-text-display-small {
|
|
3495
|
-
font-family:
|
|
3507
|
+
font-family: 'Wise Sans', 'Inter', sans-serif;
|
|
3508
|
+
font-family: var(--font-family-display);
|
|
3496
3509
|
font-synthesis: none;
|
|
3497
3510
|
}
|
|
3498
3511
|
|
|
3512
|
+
:lang(ja) .display-1,
|
|
3513
|
+
:lang(ja) .display-2,
|
|
3514
|
+
:lang(ja) .display-3,
|
|
3515
|
+
:lang(ja) .display-4,
|
|
3516
|
+
:lang(ja) .display-5,
|
|
3517
|
+
:lang(ja) .np-text-display-extra-large,
|
|
3518
|
+
:lang(ja) .np-text-display-large,
|
|
3519
|
+
:lang(ja) .np-text-display-medium,
|
|
3520
|
+
:lang(ja) .np-text-display-small,
|
|
3521
|
+
:lang(th) .display-1,
|
|
3522
|
+
:lang(th) .display-2,
|
|
3523
|
+
:lang(th) .display-3,
|
|
3524
|
+
:lang(th) .display-4,
|
|
3525
|
+
:lang(th) .display-5,
|
|
3526
|
+
:lang(th) .np-text-display-extra-large,
|
|
3527
|
+
:lang(th) .np-text-display-large,
|
|
3528
|
+
:lang(th) .np-text-display-medium,
|
|
3529
|
+
:lang(th) .np-text-display-small,
|
|
3530
|
+
:lang(zh-CN) .display-1,
|
|
3531
|
+
:lang(zh-CN) .display-2,
|
|
3532
|
+
:lang(zh-CN) .display-3,
|
|
3533
|
+
:lang(zh-CN) .display-4,
|
|
3534
|
+
:lang(zh-CN) .display-5,
|
|
3535
|
+
:lang(zh-CN) .np-text-display-extra-large,
|
|
3536
|
+
:lang(zh-CN) .np-text-display-large,
|
|
3537
|
+
:lang(zh-CN) .np-text-display-medium,
|
|
3538
|
+
:lang(zh-CN) .np-text-display-small,
|
|
3539
|
+
:lang(zh-HK) .display-1,
|
|
3540
|
+
:lang(zh-HK) .display-2,
|
|
3541
|
+
:lang(zh-HK) .display-3,
|
|
3542
|
+
:lang(zh-HK) .display-4,
|
|
3543
|
+
:lang(zh-HK) .display-5,
|
|
3544
|
+
:lang(zh-HK) .np-text-display-extra-large,
|
|
3545
|
+
:lang(zh-HK) .np-text-display-large,
|
|
3546
|
+
:lang(zh-HK) .np-text-display-medium,
|
|
3547
|
+
:lang(zh-HK) .np-text-display-small {
|
|
3548
|
+
/**
|
|
3549
|
+
* Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
|
|
3550
|
+
* of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
|
|
3551
|
+
* font files are browser-cached and we carried over to launchpad, where it causes issues
|
|
3552
|
+
* for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
|
|
3553
|
+
*/
|
|
3554
|
+
font-family: 'Inter', Helvetica, Arial, sans-serif;
|
|
3555
|
+
font-family: var(--font-family-regular);
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3499
3558
|
/* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
|
|
3500
3559
|
|
|
3501
3560
|
.np-text-display-extra-large,
|
|
@@ -2334,6 +2334,18 @@
|
|
|
2334
2334
|
src: url("styles/fonts/WiseSans-Heavy.woff2") format("woff2");
|
|
2335
2335
|
}
|
|
2336
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
* 🚨🚨🚨 ONLY FOR TESTING. BE REMOVED BEFORE MERGING 🚨🚨🚨
|
|
2339
|
+
*/
|
|
2340
|
+
|
|
2341
|
+
@font-face {
|
|
2342
|
+
font-family: 'Wise Sans';
|
|
2343
|
+
font-style: normal;
|
|
2344
|
+
font-display: swap;
|
|
2345
|
+
src: url("styles/fonts/WiseSansJP-Heavy.woff2") format('woff2');
|
|
2346
|
+
unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF, U+2605, U+2606, U+2190-2195, U+203B;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2337
2349
|
/* stylelint-disable selector-max-empty-lines */
|
|
2338
2350
|
|
|
2339
2351
|
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
@@ -3492,10 +3504,57 @@ a,
|
|
|
3492
3504
|
.np-text-display-large,
|
|
3493
3505
|
.np-text-display-medium,
|
|
3494
3506
|
.np-text-display-small {
|
|
3495
|
-
font-family:
|
|
3507
|
+
font-family: 'Wise Sans', 'Inter', sans-serif;
|
|
3508
|
+
font-family: var(--font-family-display);
|
|
3496
3509
|
font-synthesis: none;
|
|
3497
3510
|
}
|
|
3498
3511
|
|
|
3512
|
+
:lang(ja) .display-1,
|
|
3513
|
+
:lang(ja) .display-2,
|
|
3514
|
+
:lang(ja) .display-3,
|
|
3515
|
+
:lang(ja) .display-4,
|
|
3516
|
+
:lang(ja) .display-5,
|
|
3517
|
+
:lang(ja) .np-text-display-extra-large,
|
|
3518
|
+
:lang(ja) .np-text-display-large,
|
|
3519
|
+
:lang(ja) .np-text-display-medium,
|
|
3520
|
+
:lang(ja) .np-text-display-small,
|
|
3521
|
+
:lang(th) .display-1,
|
|
3522
|
+
:lang(th) .display-2,
|
|
3523
|
+
:lang(th) .display-3,
|
|
3524
|
+
:lang(th) .display-4,
|
|
3525
|
+
:lang(th) .display-5,
|
|
3526
|
+
:lang(th) .np-text-display-extra-large,
|
|
3527
|
+
:lang(th) .np-text-display-large,
|
|
3528
|
+
:lang(th) .np-text-display-medium,
|
|
3529
|
+
:lang(th) .np-text-display-small,
|
|
3530
|
+
:lang(zh-CN) .display-1,
|
|
3531
|
+
:lang(zh-CN) .display-2,
|
|
3532
|
+
:lang(zh-CN) .display-3,
|
|
3533
|
+
:lang(zh-CN) .display-4,
|
|
3534
|
+
:lang(zh-CN) .display-5,
|
|
3535
|
+
:lang(zh-CN) .np-text-display-extra-large,
|
|
3536
|
+
:lang(zh-CN) .np-text-display-large,
|
|
3537
|
+
:lang(zh-CN) .np-text-display-medium,
|
|
3538
|
+
:lang(zh-CN) .np-text-display-small,
|
|
3539
|
+
:lang(zh-HK) .display-1,
|
|
3540
|
+
:lang(zh-HK) .display-2,
|
|
3541
|
+
:lang(zh-HK) .display-3,
|
|
3542
|
+
:lang(zh-HK) .display-4,
|
|
3543
|
+
:lang(zh-HK) .display-5,
|
|
3544
|
+
:lang(zh-HK) .np-text-display-extra-large,
|
|
3545
|
+
:lang(zh-HK) .np-text-display-large,
|
|
3546
|
+
:lang(zh-HK) .np-text-display-medium,
|
|
3547
|
+
:lang(zh-HK) .np-text-display-small {
|
|
3548
|
+
/**
|
|
3549
|
+
* Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
|
|
3550
|
+
* of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
|
|
3551
|
+
* font files are browser-cached and we carried over to launchpad, where it causes issues
|
|
3552
|
+
* for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
|
|
3553
|
+
*/
|
|
3554
|
+
font-family: 'Inter', Helvetica, Arial, sans-serif;
|
|
3555
|
+
font-family: var(--font-family-regular);
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3499
3558
|
/* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
|
|
3500
3559
|
|
|
3501
3560
|
.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-
|
|
3
|
+
"version": "0.0.0-experimental-4a6489f",
|
|
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": "
|
|
90
|
+
"@transferwise/neptune-css": "0.0.0-experimental-4a6489f",
|
|
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>
|
|
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
|
@@ -2334,6 +2334,18 @@
|
|
|
2334
2334
|
src: url("styles/fonts/WiseSans-Heavy.woff2") format("woff2");
|
|
2335
2335
|
}
|
|
2336
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
* 🚨🚨🚨 ONLY FOR TESTING. BE REMOVED BEFORE MERGING 🚨🚨🚨
|
|
2339
|
+
*/
|
|
2340
|
+
|
|
2341
|
+
@font-face {
|
|
2342
|
+
font-family: 'Wise Sans';
|
|
2343
|
+
font-style: normal;
|
|
2344
|
+
font-display: swap;
|
|
2345
|
+
src: url("styles/fonts/WiseSansJP-Heavy.woff2") format('woff2');
|
|
2346
|
+
unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF, U+2605, U+2606, U+2190-2195, U+203B;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2337
2349
|
/* stylelint-disable selector-max-empty-lines */
|
|
2338
2350
|
|
|
2339
2351
|
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
@@ -3492,10 +3504,57 @@ a,
|
|
|
3492
3504
|
.np-text-display-large,
|
|
3493
3505
|
.np-text-display-medium,
|
|
3494
3506
|
.np-text-display-small {
|
|
3495
|
-
font-family:
|
|
3507
|
+
font-family: 'Wise Sans', 'Inter', sans-serif;
|
|
3508
|
+
font-family: var(--font-family-display);
|
|
3496
3509
|
font-synthesis: none;
|
|
3497
3510
|
}
|
|
3498
3511
|
|
|
3512
|
+
:lang(ja) .display-1,
|
|
3513
|
+
:lang(ja) .display-2,
|
|
3514
|
+
:lang(ja) .display-3,
|
|
3515
|
+
:lang(ja) .display-4,
|
|
3516
|
+
:lang(ja) .display-5,
|
|
3517
|
+
:lang(ja) .np-text-display-extra-large,
|
|
3518
|
+
:lang(ja) .np-text-display-large,
|
|
3519
|
+
:lang(ja) .np-text-display-medium,
|
|
3520
|
+
:lang(ja) .np-text-display-small,
|
|
3521
|
+
:lang(th) .display-1,
|
|
3522
|
+
:lang(th) .display-2,
|
|
3523
|
+
:lang(th) .display-3,
|
|
3524
|
+
:lang(th) .display-4,
|
|
3525
|
+
:lang(th) .display-5,
|
|
3526
|
+
:lang(th) .np-text-display-extra-large,
|
|
3527
|
+
:lang(th) .np-text-display-large,
|
|
3528
|
+
:lang(th) .np-text-display-medium,
|
|
3529
|
+
:lang(th) .np-text-display-small,
|
|
3530
|
+
:lang(zh-CN) .display-1,
|
|
3531
|
+
:lang(zh-CN) .display-2,
|
|
3532
|
+
:lang(zh-CN) .display-3,
|
|
3533
|
+
:lang(zh-CN) .display-4,
|
|
3534
|
+
:lang(zh-CN) .display-5,
|
|
3535
|
+
:lang(zh-CN) .np-text-display-extra-large,
|
|
3536
|
+
:lang(zh-CN) .np-text-display-large,
|
|
3537
|
+
:lang(zh-CN) .np-text-display-medium,
|
|
3538
|
+
:lang(zh-CN) .np-text-display-small,
|
|
3539
|
+
:lang(zh-HK) .display-1,
|
|
3540
|
+
:lang(zh-HK) .display-2,
|
|
3541
|
+
:lang(zh-HK) .display-3,
|
|
3542
|
+
:lang(zh-HK) .display-4,
|
|
3543
|
+
:lang(zh-HK) .display-5,
|
|
3544
|
+
:lang(zh-HK) .np-text-display-extra-large,
|
|
3545
|
+
:lang(zh-HK) .np-text-display-large,
|
|
3546
|
+
:lang(zh-HK) .np-text-display-medium,
|
|
3547
|
+
:lang(zh-HK) .np-text-display-small {
|
|
3548
|
+
/**
|
|
3549
|
+
* Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
|
|
3550
|
+
* of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
|
|
3551
|
+
* font files are browser-cached and we carried over to launchpad, where it causes issues
|
|
3552
|
+
* for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
|
|
3553
|
+
*/
|
|
3554
|
+
font-family: 'Inter', Helvetica, Arial, sans-serif;
|
|
3555
|
+
font-family: var(--font-family-regular);
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3499
3558
|
/* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
|
|
3500
3559
|
|
|
3501
3560
|
.np-text-display-extra-large,
|
|
Binary file
|
|
@@ -95,3 +95,16 @@
|
|
|
95
95
|
font-display: swap;
|
|
96
96
|
src: url("./styles/fonts/WiseSans-Heavy.woff2") format("woff2");
|
|
97
97
|
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* 🚨🚨🚨 ONLY FOR TESTING. BE REMOVED BEFORE MERGING 🚨🚨🚨
|
|
101
|
+
*/
|
|
102
|
+
@font-face {
|
|
103
|
+
font-family: 'Wise Sans';
|
|
104
|
+
font-style: normal;
|
|
105
|
+
font-display: swap;
|
|
106
|
+
src: url('./styles/fonts/WiseSansJP-Heavy.woff2') format('woff2');
|
|
107
|
+
unicode-range:
|
|
108
|
+
U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF, U+2605,
|
|
109
|
+
U+2606, U+2190-2195, U+203B;
|
|
110
|
+
}
|
|
@@ -8,7 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
/* DEPRECATED: use .np-text-*-title instead */
|
|
10
10
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
11
|
-
.h1,
|
|
11
|
+
.h1,
|
|
12
|
+
.h2,
|
|
13
|
+
.h3,
|
|
14
|
+
.h4,
|
|
15
|
+
.h5,
|
|
16
|
+
.h6,
|
|
17
|
+
.title-1,
|
|
18
|
+
.title-2,
|
|
19
|
+
.title-3,
|
|
20
|
+
.title-4,
|
|
21
|
+
.title-5,
|
|
12
22
|
h1,
|
|
13
23
|
h2,
|
|
14
24
|
h3,
|
|
@@ -25,7 +35,7 @@ h6,
|
|
|
25
35
|
line-height: var(--line-height-title);
|
|
26
36
|
letter-spacing: 0;
|
|
27
37
|
.np-text-hyphenated;
|
|
28
|
-
|
|
38
|
+
|
|
29
39
|
+ p,
|
|
30
40
|
+ ul:not(.list-unstyled),
|
|
31
41
|
+ ol:not(.list-unstyled) {
|
|
@@ -114,8 +124,12 @@ h6,
|
|
|
114
124
|
|
|
115
125
|
/* DEPRECATED: use .np-text-body-default instead */
|
|
116
126
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
117
|
-
.body-2,
|
|
118
|
-
body,
|
|
127
|
+
.body-2,
|
|
128
|
+
.body-3,
|
|
129
|
+
.small,
|
|
130
|
+
.tiny,
|
|
131
|
+
body,
|
|
132
|
+
small,
|
|
119
133
|
.np-text-body-default {
|
|
120
134
|
font-size: var(--font-size-14);
|
|
121
135
|
line-height: 155%;
|
|
@@ -139,7 +153,8 @@ body, small,
|
|
|
139
153
|
|
|
140
154
|
/* DEPRECATED: use .np-text-body-large instead */
|
|
141
155
|
/* stylelint-disable-next-line selector-list-comma-newline-after */
|
|
142
|
-
.body-1,
|
|
156
|
+
.body-1,
|
|
157
|
+
.value,
|
|
143
158
|
.np-text-body-large {
|
|
144
159
|
font-weight: var(--font-weight-regular);
|
|
145
160
|
font-size: var(--font-size-16);
|
|
@@ -204,8 +219,21 @@ a,
|
|
|
204
219
|
.np-text-display-large,
|
|
205
220
|
.np-text-display-medium,
|
|
206
221
|
.np-text-display-small {
|
|
207
|
-
font-family:
|
|
222
|
+
font-family: var(--font-family-display);
|
|
208
223
|
font-synthesis: none;
|
|
224
|
+
|
|
225
|
+
:lang(ja) &,
|
|
226
|
+
:lang(th) &,
|
|
227
|
+
:lang(zh-CN) &,
|
|
228
|
+
:lang(zh-HK) & {
|
|
229
|
+
/**
|
|
230
|
+
* Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
|
|
231
|
+
* of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
|
|
232
|
+
* font files are browser-cached and we carried over to launchpad, where it causes issues
|
|
233
|
+
* for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
|
|
234
|
+
*/
|
|
235
|
+
font-family: var(--font-family-regular);
|
|
236
|
+
}
|
|
209
237
|
}
|
|
210
238
|
|
|
211
239
|
/* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
|
|
@@ -2334,6 +2334,18 @@
|
|
|
2334
2334
|
src: url("styles/fonts/WiseSans-Heavy.woff2") format("woff2");
|
|
2335
2335
|
}
|
|
2336
2336
|
|
|
2337
|
+
/**
|
|
2338
|
+
* 🚨🚨🚨 ONLY FOR TESTING. BE REMOVED BEFORE MERGING 🚨🚨🚨
|
|
2339
|
+
*/
|
|
2340
|
+
|
|
2341
|
+
@font-face {
|
|
2342
|
+
font-family: 'Wise Sans';
|
|
2343
|
+
font-style: normal;
|
|
2344
|
+
font-display: swap;
|
|
2345
|
+
src: url("styles/fonts/WiseSansJP-Heavy.woff2") format('woff2');
|
|
2346
|
+
unicode-range: U+3000-303F, U+3040-309F, U+30A0-30FF, U+FF00-FFEF, U+4E00-9FAF, U+2605, U+2606, U+2190-2195, U+203B;
|
|
2347
|
+
}
|
|
2348
|
+
|
|
2337
2349
|
/* stylelint-disable selector-max-empty-lines */
|
|
2338
2350
|
|
|
2339
2351
|
/*! modern-normalize v3.0.1 | MIT License | https://github.com/sindresorhus/modern-normalize */
|
|
@@ -3492,10 +3504,57 @@ a,
|
|
|
3492
3504
|
.np-text-display-large,
|
|
3493
3505
|
.np-text-display-medium,
|
|
3494
3506
|
.np-text-display-small {
|
|
3495
|
-
font-family:
|
|
3507
|
+
font-family: 'Wise Sans', 'Inter', sans-serif;
|
|
3508
|
+
font-family: var(--font-family-display);
|
|
3496
3509
|
font-synthesis: none;
|
|
3497
3510
|
}
|
|
3498
3511
|
|
|
3512
|
+
:lang(ja) .display-1,
|
|
3513
|
+
:lang(ja) .display-2,
|
|
3514
|
+
:lang(ja) .display-3,
|
|
3515
|
+
:lang(ja) .display-4,
|
|
3516
|
+
:lang(ja) .display-5,
|
|
3517
|
+
:lang(ja) .np-text-display-extra-large,
|
|
3518
|
+
:lang(ja) .np-text-display-large,
|
|
3519
|
+
:lang(ja) .np-text-display-medium,
|
|
3520
|
+
:lang(ja) .np-text-display-small,
|
|
3521
|
+
:lang(th) .display-1,
|
|
3522
|
+
:lang(th) .display-2,
|
|
3523
|
+
:lang(th) .display-3,
|
|
3524
|
+
:lang(th) .display-4,
|
|
3525
|
+
:lang(th) .display-5,
|
|
3526
|
+
:lang(th) .np-text-display-extra-large,
|
|
3527
|
+
:lang(th) .np-text-display-large,
|
|
3528
|
+
:lang(th) .np-text-display-medium,
|
|
3529
|
+
:lang(th) .np-text-display-small,
|
|
3530
|
+
:lang(zh-CN) .display-1,
|
|
3531
|
+
:lang(zh-CN) .display-2,
|
|
3532
|
+
:lang(zh-CN) .display-3,
|
|
3533
|
+
:lang(zh-CN) .display-4,
|
|
3534
|
+
:lang(zh-CN) .display-5,
|
|
3535
|
+
:lang(zh-CN) .np-text-display-extra-large,
|
|
3536
|
+
:lang(zh-CN) .np-text-display-large,
|
|
3537
|
+
:lang(zh-CN) .np-text-display-medium,
|
|
3538
|
+
:lang(zh-CN) .np-text-display-small,
|
|
3539
|
+
:lang(zh-HK) .display-1,
|
|
3540
|
+
:lang(zh-HK) .display-2,
|
|
3541
|
+
:lang(zh-HK) .display-3,
|
|
3542
|
+
:lang(zh-HK) .display-4,
|
|
3543
|
+
:lang(zh-HK) .display-5,
|
|
3544
|
+
:lang(zh-HK) .np-text-display-extra-large,
|
|
3545
|
+
:lang(zh-HK) .np-text-display-large,
|
|
3546
|
+
:lang(zh-HK) .np-text-display-medium,
|
|
3547
|
+
:lang(zh-HK) .np-text-display-small {
|
|
3548
|
+
/**
|
|
3549
|
+
* Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
|
|
3550
|
+
* of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
|
|
3551
|
+
* font files are browser-cached and we carried over to launchpad, where it causes issues
|
|
3552
|
+
* for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
|
|
3553
|
+
*/
|
|
3554
|
+
font-family: 'Inter', Helvetica, Arial, sans-serif;
|
|
3555
|
+
font-family: var(--font-family-regular);
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3499
3558
|
/* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
|
|
3500
3559
|
|
|
3501
3560
|
.np-text-display-extra-large,
|