@transferwise/components 0.0.0-experimental-9b6c3f8 → 0.0.0-experimental-0c7c46a

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 (224) hide show
  1. package/build/Body/Body.js +1 -1
  2. package/build/Body/Body.js.map +1 -1
  3. package/build/Body/Body.mjs +1 -1
  4. package/build/Body/Body.mjs.map +1 -1
  5. package/build/Calendar/DayCalendar/Table/DayCalendarTable.js +1 -1
  6. package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
  7. package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs +1 -1
  8. package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
  9. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js +1 -1
  10. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
  11. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs +1 -1
  12. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
  13. package/build/Calendar/TableLink/TableLink.js +1 -1
  14. package/build/Calendar/TableLink/TableLink.js.map +1 -1
  15. package/build/Calendar/TableLink/TableLink.mjs +1 -1
  16. package/build/Calendar/TableLink/TableLink.mjs.map +1 -1
  17. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js +1 -1
  18. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js.map +1 -1
  19. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs +1 -1
  20. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs.map +1 -1
  21. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js +2 -2
  22. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -1
  23. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs +2 -2
  24. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -1
  25. package/build/Inputs/SelectInput/Option/SelectInputOption.js +1 -1
  26. package/build/Inputs/SelectInput/Option/SelectInputOption.js.map +1 -1
  27. package/build/Inputs/SelectInput/Option/SelectInputOption.mjs +1 -1
  28. package/build/Inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -1
  29. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js +3 -3
  30. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
  31. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +3 -3
  32. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
  33. package/build/Inputs/SelectInput/Popover/SelectInputPopover.js +2 -2
  34. package/build/Inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -1
  35. package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs +2 -2
  36. package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -1
  37. package/build/Label/Label.js +1 -1
  38. package/build/Label/Label.js.map +1 -1
  39. package/build/Label/Label.mjs +1 -1
  40. package/build/Label/Label.mjs.map +1 -1
  41. package/build/Stepper/Stepper.js +1 -1
  42. package/build/Stepper/Stepper.js.map +1 -1
  43. package/build/Stepper/Stepper.mjs +1 -1
  44. package/build/Stepper/Stepper.mjs.map +1 -1
  45. package/build/Table/Header/TableHeader.js +1 -1
  46. package/build/Table/Header/TableHeader.js.map +1 -1
  47. package/build/Table/Header/TableHeader.mjs +1 -1
  48. package/build/Table/Header/TableHeader.mjs.map +1 -1
  49. package/build/Tabs/Tab/Tab.js +1 -1
  50. package/build/Tabs/Tab/Tab.js.map +1 -1
  51. package/build/Tabs/Tab/Tab.mjs +1 -1
  52. package/build/Tabs/Tab/Tab.mjs.map +1 -1
  53. package/build/Tag/Tag.js +1 -1
  54. package/build/Tag/Tag.js.map +1 -1
  55. package/build/Tag/Tag.mjs +1 -1
  56. package/build/Tag/Tag.mjs.map +1 -1
  57. package/build/Typeahead/TypeaheadOption/TypeaheadOption.js +2 -2
  58. package/build/Typeahead/TypeaheadOption/TypeaheadOption.js.map +1 -1
  59. package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs +2 -2
  60. package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs.map +1 -1
  61. package/build/Upload/Steps/UploadImageStep/UploadImageStep.js +2 -2
  62. package/build/Upload/Steps/UploadImageStep/UploadImageStep.js.map +1 -1
  63. package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs +2 -2
  64. package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs.map +1 -1
  65. package/build/_deprecated/ActionButton/ActionButton.js +1 -1
  66. package/build/_deprecated/ActionButton/ActionButton.js.map +1 -1
  67. package/build/_deprecated/ActionButton/ActionButton.mjs +1 -1
  68. package/build/_deprecated/ActionButton/ActionButton.mjs.map +1 -1
  69. package/build/_deprecated/Avatar/Avatar.js +1 -1
  70. package/build/_deprecated/Avatar/Avatar.js.map +1 -1
  71. package/build/_deprecated/Avatar/Avatar.mjs +1 -1
  72. package/build/_deprecated/Avatar/Avatar.mjs.map +1 -1
  73. package/build/_deprecated/Select/Select.js +2 -2
  74. package/build/_deprecated/Select/Select.js.map +1 -1
  75. package/build/_deprecated/Select/Select.mjs +2 -2
  76. package/build/_deprecated/Select/Select.mjs.map +1 -1
  77. package/build/common/PropsValues/typography.js +0 -6
  78. package/build/common/PropsValues/typography.js.map +1 -1
  79. package/build/common/PropsValues/typography.mjs +0 -6
  80. package/build/common/PropsValues/typography.mjs.map +1 -1
  81. package/build/main.css +1533 -2923
  82. package/build/styles/Accordion/Accordion.css +1 -2
  83. package/build/styles/Body/Body.css +1 -1
  84. package/build/styles/Chips/Chip/Chip.css +2 -4
  85. package/build/styles/Decision/Decision.css +1 -2
  86. package/build/styles/Inputs/Input/Input.css +66 -62
  87. package/build/styles/Inputs/TextArea/TextArea.css +66 -62
  88. package/build/styles/MoneyInput/MoneyInput.css +3 -6
  89. package/build/styles/Popover/Popover.css +47 -3
  90. package/build/styles/ProgressBar/ProgressBar.css +1 -2
  91. package/build/styles/Table/Table.css +5 -15
  92. package/build/styles/Tile/Tile.css +1 -2
  93. package/build/styles/Typeahead/Typeahead.css +2 -4
  94. package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +1 -2
  95. package/build/styles/_deprecated/Select/Select.css +11 -44
  96. package/build/styles/css/accordion.css +52 -23
  97. package/build/styles/css/button-groups.css +8 -29
  98. package/build/styles/css/buttons.css +2 -26
  99. package/build/styles/css/decision.css +52 -23
  100. package/build/styles/css/dropdowns.css +62 -39
  101. package/build/styles/css/droppable.css +8 -28
  102. package/build/styles/css/footer.css +14 -41
  103. package/build/styles/css/input-groups.css +165 -172
  104. package/build/styles/css/list-group.css +45 -0
  105. package/build/styles/css/navbar.css +62 -39
  106. package/build/styles/css/neptune-addons.css +0 -15
  107. package/build/styles/css/neptune-core.css +526 -250
  108. package/build/styles/css/neptune.css +1486 -2841
  109. package/build/styles/css/popovers.css +60 -35
  110. package/build/styles/css/sequences.css +1 -6
  111. package/build/styles/css/tooltip.css +7 -27
  112. package/build/styles/less/neptune-tokens.less +48 -0
  113. package/build/styles/main.css +1533 -2923
  114. package/build/styles/props/neptune-tokens.css +1 -802
  115. package/build/styles/styles/less/accordion.css +52 -23
  116. package/build/styles/styles/less/button-groups.css +8 -29
  117. package/build/styles/styles/less/buttons.css +2 -26
  118. package/build/styles/styles/less/decision.css +52 -23
  119. package/build/styles/styles/less/dropdowns.css +62 -39
  120. package/build/styles/styles/less/droppable.css +8 -28
  121. package/build/styles/styles/less/footer.css +14 -41
  122. package/build/styles/styles/less/forms/bootstrap-forms.css +91 -137
  123. package/build/styles/styles/less/input-groups.css +165 -172
  124. package/build/styles/styles/less/list-group.css +45 -0
  125. package/build/styles/styles/less/navbar.css +62 -39
  126. package/build/styles/styles/less/neptune-addons.css +0 -15
  127. package/build/styles/styles/less/neptune-core.css +526 -250
  128. package/build/styles/styles/less/neptune.css +1486 -2841
  129. package/build/styles/styles/less/popovers.css +60 -35
  130. package/build/styles/styles/less/sequences.css +1 -6
  131. package/build/styles/styles/less/tooltip.css +7 -27
  132. package/build/types/common/PropsValues/typography.d.ts +1 -13
  133. package/build/types/common/PropsValues/typography.d.ts.map +1 -1
  134. package/package.json +1 -1
  135. package/src/Accordion/Accordion.css +1 -2
  136. package/src/Accordion/Accordion.less +1 -2
  137. package/src/Body/Body.css +1 -1
  138. package/src/Body/Body.less +1 -1
  139. package/src/Body/Body.test.tsx +4 -4
  140. package/src/Body/Body.tsx +2 -2
  141. package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
  142. package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
  143. package/src/Calendar/TableLink/TableLink.tsx +1 -1
  144. package/src/Chips/Chip/Chip.css +2 -4
  145. package/src/Chips/Chip/Chip.less +1 -2
  146. package/src/Decision/Decision.css +1 -2
  147. package/src/Decision/Decision.less +1 -2
  148. package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
  149. package/src/Display/_stories/Display.story.tsx +6 -20
  150. package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
  151. package/src/Inputs/Input/Input.css +66 -62
  152. package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +2 -2
  153. package/src/Inputs/SelectInput/Option/SelectInputOption.tsx +1 -1
  154. package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +3 -3
  155. package/src/Inputs/SelectInput/Popover/SelectInputPopover.tsx +2 -2
  156. package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
  157. package/src/Inputs/TextArea/TextArea.css +66 -62
  158. package/src/Inputs/_common.less +5 -5
  159. package/src/Label/Label.tsx +1 -1
  160. package/src/MoneyInput/MoneyInput.css +3 -6
  161. package/src/MoneyInput/MoneyInput.less +4 -7
  162. package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
  163. package/src/Popover/Popover.css +47 -3
  164. package/src/Popover/Popover.less +1 -1
  165. package/src/ProgressBar/ProgressBar.css +1 -2
  166. package/src/ProgressBar/ProgressBar.less +11 -12
  167. package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
  168. package/src/Stepper/Stepper.tsx +1 -1
  169. package/src/Table/Header/TableHeader.tsx +1 -1
  170. package/src/Table/StatusText/TableStatusText.test.tsx +5 -5
  171. package/src/Table/Table.css +5 -15
  172. package/src/Table/Table.less +6 -17
  173. package/src/Tabs/Tab/Tab.tsx +1 -1
  174. package/src/Tag/Tag.tsx +1 -1
  175. package/src/Tag/_stories/Tag.story.tsx +1 -1
  176. package/src/Tile/Tile.css +1 -2
  177. package/src/Tile/Tile.less +1 -2
  178. package/src/Typeahead/Typeahead.css +2 -4
  179. package/src/Typeahead/Typeahead.less +1 -2
  180. package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
  181. package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +2 -2
  182. package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
  183. package/src/_deprecated/Avatar/Avatar.tsx +1 -1
  184. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +1 -2
  185. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +1 -2
  186. package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
  187. package/src/_deprecated/Select/Select.css +11 -44
  188. package/src/_deprecated/Select/Select.less +5 -10
  189. package/src/_deprecated/Select/Select.tsx +2 -2
  190. package/src/common/PropsValues/typography.ts +1 -20
  191. package/src/main.css +1533 -2923
  192. package/src/styles/less/accordion.css +52 -23
  193. package/src/styles/less/addons/_background-utilities.less +0 -5
  194. package/src/styles/less/button-groups.css +8 -29
  195. package/src/styles/less/button-groups.less +2 -3
  196. package/src/styles/less/buttons.css +2 -26
  197. package/src/styles/less/buttons.less +1 -1
  198. package/src/styles/less/core/_typography.less +221 -67
  199. package/src/styles/less/decision.css +52 -23
  200. package/src/styles/less/decision.less +2 -2
  201. package/src/styles/less/dropdowns.css +62 -39
  202. package/src/styles/less/dropdowns.less +5 -6
  203. package/src/styles/less/droppable.css +8 -28
  204. package/src/styles/less/droppable.less +4 -4
  205. package/src/styles/less/footer.css +14 -41
  206. package/src/styles/less/footer.less +3 -4
  207. package/src/styles/less/forms/bootstrap-forms.css +91 -137
  208. package/src/styles/less/forms/bootstrap-forms.less +57 -70
  209. package/src/styles/less/input-groups.css +165 -172
  210. package/src/styles/less/input-groups.less +5 -5
  211. package/src/styles/less/list-group.css +45 -0
  212. package/src/styles/less/list-group.less +4 -7
  213. package/src/styles/less/mixins/_text-emphasis.less +1 -7
  214. package/src/styles/less/navbar.css +62 -39
  215. package/src/styles/less/neptune-addons.css +0 -15
  216. package/src/styles/less/neptune-core.css +526 -250
  217. package/src/styles/less/neptune.bundle.less +0 -4
  218. package/src/styles/less/neptune.css +1486 -2841
  219. package/src/styles/less/popovers.css +60 -35
  220. package/src/styles/less/popovers.less +3 -3
  221. package/src/styles/less/sequences.css +1 -6
  222. package/src/styles/less/sequences.less +2 -7
  223. package/src/styles/less/tooltip.css +7 -27
  224. package/src/styles/less/tooltip.less +1 -1
@@ -36,49 +36,78 @@
36
36
  .np-theme-personal .chevron-color {
37
37
  color: var(--color-interactive-primary);
38
38
  }
39
- .decision__content {
39
+ .decision {
40
+ cursor: pointer;
41
+ margin-block-end: 0 !important;
42
+ border: 0;
43
+ align-items: center;
44
+ transition: background-color ease 350ms;
45
+ background-color: transparent;
46
+ display: block;
47
+ }
48
+ .decision:not(.np-option):focus-visible,
49
+ .decision:not(.np-option):has(:focus-visible) {
50
+ outline: var(--ring-outline-color) solid var(--ring-outline-width);
51
+ outline-offset: 0;
52
+ outline-offset: var(--ring-outline-offset);
53
+ --ring-outline-offset: 0;
54
+ }
55
+ .decision__title {
56
+ margin: 0;
57
+ color: #37517e;
58
+ color: var(--color-content-primary);
59
+ line-height: 1.2;
60
+ line-height: var(--line-height-title);
61
+ letter-spacing: 0;
40
62
  word-wrap: break-word;
63
+ font-size: 1.125rem;
64
+ font-size: var(--font-size-18);
65
+ font-weight: 600;
66
+ font-weight: var(--font-weight-semi-bold);
67
+ letter-spacing: -0.014em;
68
+ line-height: 135%;
41
69
  }
42
70
  @supports (hyphenate-limit-chars: 1) {
43
- .decision__content {
44
- hyphens: auto;hyphenate-limit-chars: 7 3;
71
+ .decision__title {
72
+ hyphens: auto;
73
+ hyphenate-limit-chars: 7 3;
45
74
  }
46
75
  @media (min-width: 840px) {
47
- .decision__content {
76
+ .decision__title {
48
77
  hyphenate-limit-chars: 8 3;
49
78
  }
50
79
  }
51
80
  @media (min-width: 1160px) {
52
- .decision__content {
81
+ .decision__title {
53
82
  hyphenate-limit-chars: 10 4 3;
54
83
  }
55
84
  }
56
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
57
- .decision__content {
58
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
85
+ }
86
+ @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
87
+ .decision__title {
88
+ hyphens: auto;
89
+ -webkit-hyphenate-limit-before: 3;
90
+ -webkit-hyphenate-limit-after: 3;
59
91
  }
60
92
  @media (min-width: 1160px) {
61
- .decision__content {
93
+ .decision__title {
62
94
  -webkit-hyphenate-limit-before: 4;
63
95
  }
64
96
  }
65
- }.decision {
66
- cursor: pointer;
67
- margin-block-end: 0 !important;
68
- border: 0;
69
- align-items: center;
70
- transition: background-color ease 350ms;
71
- background-color: transparent;
72
- display: block;
73
97
  }
74
- .decision:not(.np-option):focus-visible,
75
- .decision:not(.np-option):has(:focus-visible) {
76
- outline: var(--ring-outline-color) solid var(--ring-outline-width);
77
- outline-offset: 0;
78
- outline-offset: var(--ring-outline-offset);
79
- --ring-outline-offset: 0;
98
+ .decision__title + p,
99
+ .decision__title + ul:not(.list-unstyled),
100
+ .decision__title + ol:not(.list-unstyled) {
101
+ margin-block-start: 8px;
102
+ margin-block-start: var(--size-8);
80
103
  }
81
104
  .decision__content {
105
+ font-size: 0.875rem;
106
+ font-size: var(--font-size-14);
107
+ line-height: 155%;
108
+ letter-spacing: -0.006em;
109
+ font-weight: 400;
110
+ font-weight: var(--font-weight-regular);
82
111
  word-wrap: break-word;
83
112
  margin-block-start: 4px;
84
113
  margin-block-start: var(--size-4);
@@ -76,11 +76,6 @@
76
76
  .np-text-title-subsection,
77
77
  .np-text-title-body,
78
78
  .np-text-title-group,
79
- .wds-text-title-screen,
80
- .wds-text-title-section,
81
- .wds-text-title-subsection,
82
- .wds-text-title-body,
83
- .wds-text-title-group,
84
79
  strong {
85
80
  color: @color-navy-content-primary;
86
81
  }
@@ -1,30 +1,4 @@
1
- .btn-group .secondary {
2
- word-wrap: break-word;
3
- }
4
- @supports (hyphenate-limit-chars: 1) {
5
- .btn-group .secondary {
6
- hyphens: auto;hyphenate-limit-chars: 7 3;
7
- }
8
- @media (min-width: 840px) {
9
- .btn-group .secondary {
10
- hyphenate-limit-chars: 8 3;
11
- }
12
- }
13
- @media (min-width: 1160px) {
14
- .btn-group .secondary {
15
- hyphenate-limit-chars: 10 4 3;
16
- }
17
- }
18
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
- .btn-group .secondary {
20
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
- }
22
- @media (min-width: 1160px) {
23
- .btn-group .secondary {
24
- -webkit-hyphenate-limit-before: 4;
25
- }
26
- }
27
- }.btn-group,
1
+ .btn-group,
28
2
  .btn-group-vertical {
29
3
  position: relative;
30
4
  display: inline-block;
@@ -360,9 +334,8 @@
360
334
  .btn-group .btn-input + .dropdown-menu > li > a {
361
335
  white-space: normal;
362
336
  }
363
- .btn-group .body-2,
364
337
  .btn-group .np-text-body-default,
365
- .btn-group .wds-text-body-default,
338
+ .btn-group .body-2,
366
339
  .btn-group .small {
367
340
  color: #5d7079;
368
341
  color: var(--color-content-secondary);
@@ -373,6 +346,12 @@
373
346
  }
374
347
  }
375
348
  .btn-group .secondary {
349
+ font-size: 0.875rem;
350
+ font-size: var(--font-size-14);
351
+ line-height: 155%;
352
+ letter-spacing: -0.006em;
353
+ font-weight: 400;
354
+ font-weight: var(--font-weight-regular);
376
355
  word-wrap: break-word;
377
356
  color: #5d7079;
378
357
  color: var(--color-content-secondary);
@@ -404,9 +404,8 @@
404
404
  }
405
405
  }
406
406
 
407
- .body-2,
408
407
  .np-text-body-default,
409
- .wds-text-body-default,
408
+ .body-2,
410
409
  .small {
411
410
  color: var(--color-content-secondary);
412
411
  }
@@ -419,7 +418,7 @@
419
418
  }
420
419
 
421
420
  .btn-group .secondary {
422
- .wds-text-body-default;
421
+ .np-text-body-default;
423
422
 
424
423
  color: var(--color-content-secondary);
425
424
  }
@@ -2,32 +2,8 @@
2
2
  block-size: 32px;
3
3
  }
4
4
  .btn {
5
- word-wrap: break-word;
6
- }
7
- @supports (hyphenate-limit-chars: 1) {
8
- .btn {
9
- hyphens: auto;hyphenate-limit-chars: 7 3;
10
- }
11
- @media (min-width: 840px) {
12
- .btn {
13
- hyphenate-limit-chars: 8 3;
14
- }
15
- }
16
- @media (min-width: 1160px) {
17
- .btn {
18
- hyphenate-limit-chars: 10 4 3;
19
- }
20
- }
21
- }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
22
- .btn {
23
- hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
24
- }
25
- @media (min-width: 1160px) {
26
- .btn {
27
- -webkit-hyphenate-limit-before: 4;
28
- }
29
- }
30
- }.btn {
5
+ line-height: 150%;
6
+ letter-spacing: -0.011em;
31
7
  word-wrap: break-word;
32
8
  display: inline-block;
33
9
  margin-block-end: 0;
@@ -8,7 +8,7 @@
8
8
  @import (reference) "./ring.less";
9
9
 
10
10
  .btn {
11
- .wds-text-body-large-bold;
11
+ .np-text-body-large-bold;
12
12
 
13
13
  display: inline-block;
14
14
  margin-bottom: 0;
@@ -6,7 +6,7 @@
6
6
 
7
7
  // TITLE
8
8
 
9
- /* DEPRECATED: use `.wds-text-*` instead */
9
+ /* DEPRECATED: use .np-text-*-title instead */
10
10
  /* stylelint-disable-next-line selector-list-comma-newline-after */
11
11
  .h1,
12
12
  .h2,
@@ -32,6 +32,8 @@ h6,
32
32
  .np-text-title-group {
33
33
  margin: 0;
34
34
  color: var(--color-content-primary);
35
+ line-height: var(--line-height-title);
36
+ letter-spacing: 0;
35
37
  .np-text-hyphenated;
36
38
 
37
39
  + p,
@@ -41,76 +43,86 @@ h6,
41
43
  }
42
44
  }
43
45
 
44
- /* DEPRECATED: use `.wds-text-title-screen` instead */
46
+ /* DEPRECATED: use .np-text-title-screen instead */
45
47
  /* stylelint-disable-next-line selector-list-comma-newline-after */
46
48
  .h1,
47
49
  .title-1,
48
50
  h1,
49
- .np-text-title-screen,
50
- .wds-text-title-screen {
51
- &:extend(.wds-text-title-screen);
51
+ .np-text-title-screen {
52
52
  margin-bottom: initial;
53
+ font-size: var(--font-size-30);
54
+ font-weight: var(--font-weight-semi-bold);
55
+ letter-spacing: -0.021em;
56
+ line-height: 115%;
53
57
  }
54
58
 
55
- /* DEPRECATED: use `.wds-text-title-section` instead */
59
+ /* DEPRECATED: use .np-text-title-section instead */
56
60
  /* stylelint-disable-next-line selector-list-comma-newline-after */
57
61
  .h2,
58
62
  .title-2,
59
63
  h2,
60
- .np-text-title-section,
61
- .wds-text-title-section {
62
- &:extend(.wds-text-title-section);
64
+ .np-text-title-section {
63
65
  margin-bottom: initial;
66
+ font-weight: var(--font-weight-semi-bold);
67
+ font-size: var(--font-size-26);
68
+ letter-spacing: -0.02em;
69
+ line-height: 122%;
64
70
  }
65
71
 
66
- /* DEPRECATED: use `.wds-text-title-subsection` instead */
72
+ /* DEPRECATED: use .np-text-title-subsection instead */
67
73
  /* stylelint-disable-next-line selector-list-comma-newline-after */
68
74
  .h3,
69
75
  .title-3,
70
76
  h3,
71
- .np-text-title-subsection,
72
- .wds-text-title-subsection {
73
- &:extend(.wds-text-title-subsection);
77
+ .np-text-title-subsection {
74
78
  margin-bottom: initial;
79
+ font-size: var(--font-size-22);
80
+ font-weight: var(--font-weight-semi-bold);
81
+ letter-spacing: -0.018em;
82
+ line-height: 125%;
75
83
  }
76
84
 
77
- /* DEPRECATED: use `.wds-text-title-body` instead */
85
+ /* DEPRECATED: use .np-text-title-body instead */
78
86
  /* stylelint-disable-next-line selector-list-comma-newline-after */
79
87
  .h4,
80
88
  .title-4,
81
89
  h4,
82
- .np-text-title-body,
83
- .wds-text-title-body {
84
- &:extend(.wds-text-title-body);
90
+ .np-text-title-body {
91
+ font-size: var(--font-size-18);
92
+ font-weight: var(--font-weight-semi-bold);
93
+ letter-spacing: -0.014em;
94
+ line-height: 135%;
85
95
  }
86
96
 
87
- /* DEPRECATED: use `.wds-text-title-group` instead */
97
+ /* DEPRECATED: use .np-text-title-group instead */
88
98
  /* stylelint-disable-next-line selector-list-comma-newline-after */
89
99
  .h5,
90
100
  .h6,
91
101
  .title-5,
92
102
  h5,
93
103
  h6,
94
- .np-text-title-group,
95
- .wds-text-title-group {
96
- &:extend(.wds-text-title-group);
104
+ .np-text-title-group {
105
+ font-weight: var(--font-weight-medium);
106
+ font-size: var(--font-size-14);
107
+ letter-spacing: -0.006em;
108
+ line-height: 140%;
97
109
  }
98
110
 
99
- /* DEPRECATED: use `.wds-text-title-body` instead */
111
+ /* DEPRECATED: use .np-text-title-body instead */
100
112
  .lead {
101
113
  margin-bottom: var(--size-24);
102
114
  font-size: var(--font-size-20);
103
115
  line-height: var(--line-height-title);
104
116
  }
105
117
 
106
- // DEPRECATED: use `.wds-text-body-default` instead
118
+ // DEPRECATED: use .np-text-body-default instead
107
119
  .tiny {
108
120
  color: var(--color-content-secondary);
109
121
  }
110
122
 
111
123
  // BODY
112
124
 
113
- /* DEPRECATED: use `.wds-text-body-default` instead */
125
+ /* DEPRECATED: use .np-text-body-default instead */
114
126
  /* stylelint-disable-next-line selector-list-comma-newline-after */
115
127
  .body-2,
116
128
  .body-3,
@@ -118,41 +130,49 @@ h6,
118
130
  .tiny,
119
131
  body,
120
132
  small,
121
- .np-text-body-default,
122
- .wds-text-body-default {
123
- &:extend(.wds-text-body-default);
133
+ .np-text-body-default {
134
+ font-size: var(--font-size-14);
135
+ line-height: 155%;
136
+ letter-spacing: -0.006em;
137
+ font-weight: var(--font-weight-regular);
124
138
  .np-text-hyphenated;
125
139
  }
126
140
 
127
- /* DEPRECATED: use `.wds-text-body-default-bold` instead */
141
+ /* DEPRECATED: use .np-text-body-default-bold instead */
128
142
  /* stylelint-disable-next-line selector-list-comma-newline-after */
129
143
  .control-2,
130
144
 
131
145
  // DEPRECATED: use `Field` component (or in some edge cases `Label` component) instead
132
146
  .label, .control-label,
133
147
 
134
- .np-text-body-default-bold,
135
- .wds-text-body-default-bold {
136
- &:extend(.wds-text-body-default-bold);
148
+ .np-text-body-default-bold {
149
+ font-size: var(--font-size-14);
150
+ line-height: 155%;
151
+ letter-spacing: -0.006em;
152
+ font-weight: var(--font-weight-semi-bold);
137
153
  .np-text-hyphenated;
138
154
  }
139
155
 
140
- /* DEPRECATED: use `.wds-text-body-large` instead */
156
+ /* DEPRECATED: use .np-text-body-large instead */
141
157
  /* stylelint-disable-next-line selector-list-comma-newline-after */
142
158
  .body-1,
143
159
  .value,
144
- .np-text-body-large,
145
- .wds-text-body-large {
146
- &:extend(.wds-text-body-large);
160
+ .np-text-body-large {
161
+ font-weight: var(--font-weight-regular);
162
+ font-size: var(--font-size-16);
163
+ line-height: 150%;
164
+ letter-spacing: -0.011em;
147
165
  .np-text-hyphenated;
148
166
  }
149
167
 
150
- /* DEPRECATED: use `.wds-text-body-large-bold` instead */
168
+ /* DEPRECATED: use np-text-body-large-bold instead */
151
169
  /* stylelint-disable-next-line selector-list-comma-newline-after */
152
170
  .control-1,
153
- .np-text-body-large-bold,
154
- .wds-text-body-large-bold {
155
- &:extend(.wds-text-body-large-bold);
171
+ .np-text-body-large-bold {
172
+ font-weight: var(--font-weight-semi-bold);
173
+ font-size: var(--font-size-16);
174
+ line-height: 150%;
175
+ letter-spacing: -0.011em;
156
176
  .np-text-hyphenated;
157
177
  }
158
178
 
@@ -179,25 +199,19 @@ a,
179
199
 
180
200
  // DISPLAY
181
201
 
182
- /* DEPRECATED: use .wds-text-display-number-small instead */
183
- .np-text-display-number,
184
- .wds-text-display-number {
185
- &:extend(.wds-text-display-number);
186
- }
187
-
188
- .np-text-display-number-small,
189
- .wds-text-display-number-small {
190
- &:extend(.wds-text-display-number-small);
191
- }
192
-
193
- .np-text-display-number-medium,
194
- .wds-text-display-number-medium {
195
- &:extend(.wds-text-display-number-medium);
202
+ .np-text-display-number {
203
+ font-weight: var(--font-weight-semi-bold);
204
+ font-size: 40px;
205
+ line-height: 110%;
196
206
  }
197
207
 
198
- .np-text-display-number-large,
199
- .wds-text-display-number-large {
200
- &:extend(.wds-text-display-number-large);
208
+ .display-formatting(
209
+ @font-size;
210
+ @line-height;
211
+ @font-weight: var(--font-weight-regular)) {
212
+ font-size: @font-size;
213
+ line-height: @line-height;
214
+ font-weight: @font-weight;
201
215
  }
202
216
 
203
217
  .display-1,
@@ -209,12 +223,28 @@ a,
209
223
  .np-text-display-large,
210
224
  .np-text-display-medium,
211
225
  .np-text-display-small {
212
- font-synthesis: none;
213
-
226
+ &,
214
227
  &--forced {
215
228
  font-family: var(--font-family-display);
216
229
  font-synthesis: none;
217
230
  }
231
+
232
+ :lang(ja) &,
233
+ :lang(th) &,
234
+ :lang(zh-CN) &,
235
+ :lang(zh-HK) & {
236
+ /**
237
+ * Wise Sans covers extended Latin glyphs for logged-in experiences and a small subset
238
+ * of Japanese ones for the logged out ones (exposed by the Editorial DS). Unfortunately,
239
+ * font files are browser-cached and we carried over to launchpad, where it causes issues
240
+ * for unsupported locales, especially those that share glyphs, like Japanese and Chinese.
241
+ * There are exceptions for small UI parts where Wise Sans is fine or expected — e.g. the
242
+ * numeric input of ExpressiveMoneyInput.
243
+ * Add `--forced` BEM modifier to the original class name to guarantee it.
244
+ */
245
+ font-family: var(--font-family-regular);
246
+ line-height: var(--line-height-title);
247
+ }
218
248
  }
219
249
 
220
250
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
@@ -222,23 +252,36 @@ a,
222
252
  .np-text-display-large,
223
253
  .np-text-display-medium,
224
254
  .np-text-display-small {
255
+ letter-spacing: normal;
225
256
  .np-text-hyphenated;
226
257
  }
227
258
 
228
259
  .np-text-display-extra-large,
229
- .np-text-display-large,
230
- .wds-text-display-large {
231
- &:extend(.wds-text-display-large);
260
+ .np-text-display-large {
261
+ .display-formatting(var(--size-64), normal, var(--font-weight-bold));
232
262
  }
233
263
 
234
- .np-text-display-medium,
235
- .wds-text-display-medium {
236
- &:extend(.wds-text-display-medium);
264
+ .np-text-display-medium {
265
+ .display-formatting(var(--size-52), normal, var(--font-weight-bold));
237
266
  }
238
267
 
239
- .np-text-display-small,
240
- .wds-text-display-small {
241
- &:extend(.wds-text-display-small);
268
+ .np-text-display-small {
269
+ .display-formatting(var(--size-40), normal, var(--font-weight-bold));
270
+ }
271
+
272
+ :lang(en) {
273
+ > .np-text-display-extra-large,
274
+ > .np-text-display-large {
275
+ .display-formatting(var(--size-64), 0.85);
276
+ }
277
+
278
+ > .np-text-display-medium {
279
+ .display-formatting(var(--size-52), 0.85);
280
+ }
281
+
282
+ > .np-text-display-small {
283
+ .display-formatting(var(--size-40), 0.85);
284
+ }
242
285
  }
243
286
 
244
287
  /* Disable hyphenation for English
@@ -251,6 +294,117 @@ a,
251
294
  hyphens: none;
252
295
  }
253
296
 
297
+ :lang(af),
298
+ :lang(sq),
299
+ :lang(eu),
300
+ :lang(bs),
301
+ :lang(ca),
302
+ :lang(kw),
303
+ :lang(hr),
304
+ :lang(cs),
305
+ :lang(da),
306
+ :lang(nl),
307
+ :lang(eo),
308
+ :lang(et),
309
+ :lang(fo),
310
+ :lang(fi),
311
+ :lang(fr),
312
+ :lang(gl),
313
+ :lang(lg),
314
+ :lang(de),
315
+ :lang(hu),
316
+ :lang(is),
317
+ :lang(se),
318
+ :lang(id),
319
+ :lang(in),
320
+ :lang(ga),
321
+ :lang(it),
322
+ :lang(kl),
323
+ :lang(ki),
324
+ :lang(rw),
325
+ :lang(lv),
326
+ :lang(lt),
327
+ :lang(lb),
328
+ :lang(mg),
329
+ :lang(ms),
330
+ :lang(mt),
331
+ :lang(gv),
332
+ :lang(mi),
333
+ :lang(nd),
334
+ :lang(nb),
335
+ :lang(nn),
336
+ :lang(om),
337
+ :lang(pl),
338
+ :lang(pt),
339
+ :lang(ro),
340
+ :lang(rm),
341
+ :lang(rn),
342
+ :lang(sg),
343
+ :lang(gd),
344
+ :lang(sr),
345
+ :lang(sn),
346
+ :lang(sk),
347
+ :lang(sl),
348
+ :lang(so),
349
+ :lang(es),
350
+ :lang(sw),
351
+ :lang(sv),
352
+ :lang(tr),
353
+ :lang(cy),
354
+ :lang(fy),
355
+ :lang(wo),
356
+ :lang(zu),
357
+ :lang(hsb),
358
+ :lang(gsw),
359
+ :lang(dsb),
360
+ :lang(fil) {
361
+ .np-text-display-extra-large,
362
+ .np-text-display-large {
363
+ .display-formatting(var(--size-64), 1.05);
364
+ }
365
+
366
+ .np-text-display-medium {
367
+ .display-formatting(var(--size-52), 1.05);
368
+ }
369
+
370
+ .np-text-display-small {
371
+ .display-formatting(var(--size-40), 1.05);
372
+ }
373
+ }
374
+
375
+ :lang(el),
376
+ :lang(az),
377
+ :lang(be),
378
+ :lang(bs),
379
+ :lang(bg),
380
+ :lang(ce),
381
+ :lang(mk),
382
+ :lang(os),
383
+ :lang(ru),
384
+ :lang(sr),
385
+ :lang(uk),
386
+ :lang(uz),
387
+ :lang(sah) {
388
+ .np-text-display-extra-large,
389
+ .np-text-display-large {
390
+ .display-formatting(var(--size-60),
391
+ 120%,
392
+ var(--font-weight-semi-bold));
393
+ }
394
+
395
+ .np-text-display-medium {
396
+ .display-formatting(var(--size-48),
397
+ 120%,
398
+ var(--font-weight-semi-bold));
399
+ }
400
+
401
+ .np-text-display-small {
402
+ .display-formatting(var(--size-40),
403
+ 120%,
404
+ var(--font-weight-semi-bold));
405
+ }
406
+ }
407
+
254
408
  /* DEPRECATED: use `.np-text-display-*` instead */
255
409
  .display-1 {
256
410
  margin-bottom: var(--size-24);