@transferwise/components 0.0.0-experimental-4b93e2b → 0.0.0-experimental-f144cf1

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 (218) hide show
  1. package/build/Calendar/DateHeader/DateHeader.js +6 -2
  2. package/build/Calendar/DateHeader/DateHeader.js.map +1 -1
  3. package/build/Calendar/DateHeader/DateHeader.mjs +7 -3
  4. package/build/Calendar/DateHeader/DateHeader.mjs.map +1 -1
  5. package/build/Carousel/Carousel.js +2 -2
  6. package/build/Carousel/Carousel.js.map +1 -1
  7. package/build/Carousel/Carousel.mjs +3 -3
  8. package/build/Carousel/Carousel.mjs.map +1 -1
  9. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js +3 -4
  10. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
  11. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +3 -4
  12. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
  13. package/build/ListItem/Navigation/ListItemNavigation.js +1 -1
  14. package/build/ListItem/Navigation/ListItemNavigation.js.map +1 -1
  15. package/build/ListItem/Navigation/ListItemNavigation.mjs +2 -2
  16. package/build/ListItem/Navigation/ListItemNavigation.mjs.map +1 -1
  17. package/build/PhoneNumberInput/PhoneNumberInput.js +1 -2
  18. package/build/PhoneNumberInput/PhoneNumberInput.js.map +1 -1
  19. package/build/PhoneNumberInput/PhoneNumberInput.mjs +1 -2
  20. package/build/PhoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  21. package/build/PromoCard/Indicator/PromoCardIndicator.js +1 -1
  22. package/build/PromoCard/Indicator/PromoCardIndicator.js.map +1 -1
  23. package/build/PromoCard/Indicator/PromoCardIndicator.mjs +2 -2
  24. package/build/PromoCard/Indicator/PromoCardIndicator.mjs.map +1 -1
  25. package/build/Snackbar/Snackbar.js +212 -108
  26. package/build/Snackbar/Snackbar.js.map +1 -1
  27. package/build/Snackbar/Snackbar.messages.js +14 -0
  28. package/build/Snackbar/Snackbar.messages.js.map +1 -0
  29. package/build/Snackbar/Snackbar.messages.mjs +10 -0
  30. package/build/Snackbar/Snackbar.messages.mjs.map +1 -0
  31. package/build/Snackbar/Snackbar.mjs +213 -107
  32. package/build/Snackbar/Snackbar.mjs.map +1 -1
  33. package/build/Snackbar/SnackbarContext.js.map +1 -1
  34. package/build/Snackbar/SnackbarContext.mjs.map +1 -1
  35. package/build/Snackbar/SnackbarPortal.js +92 -0
  36. package/build/Snackbar/SnackbarPortal.js.map +1 -0
  37. package/build/Snackbar/SnackbarPortal.mjs +89 -0
  38. package/build/Snackbar/SnackbarPortal.mjs.map +1 -0
  39. package/build/Snackbar/SnackbarProvider.js +21 -31
  40. package/build/Snackbar/SnackbarProvider.js.map +1 -1
  41. package/build/Snackbar/SnackbarProvider.mjs +22 -32
  42. package/build/Snackbar/SnackbarProvider.mjs.map +1 -1
  43. package/build/Snackbar/constants.js +14 -0
  44. package/build/Snackbar/constants.js.map +1 -0
  45. package/build/Snackbar/constants.mjs +8 -0
  46. package/build/Snackbar/constants.mjs.map +1 -0
  47. package/build/Snackbar/useSnackbarAutoDismiss.js +135 -0
  48. package/build/Snackbar/useSnackbarAutoDismiss.js.map +1 -0
  49. package/build/Snackbar/useSnackbarAutoDismiss.mjs +131 -0
  50. package/build/Snackbar/useSnackbarAutoDismiss.mjs.map +1 -0
  51. package/build/Snackbar/useSnackbarManager.js +164 -0
  52. package/build/Snackbar/useSnackbarManager.js.map +1 -0
  53. package/build/Snackbar/useSnackbarManager.mjs +160 -0
  54. package/build/Snackbar/useSnackbarManager.mjs.map +1 -0
  55. package/build/Snackbar/useSnackbarSwipeDismiss.js +114 -0
  56. package/build/Snackbar/useSnackbarSwipeDismiss.js.map +1 -0
  57. package/build/Snackbar/useSnackbarSwipeDismiss.mjs +110 -0
  58. package/build/Snackbar/useSnackbarSwipeDismiss.mjs.map +1 -0
  59. package/build/common/PropsValues/typography.js +0 -6
  60. package/build/common/PropsValues/typography.js.map +1 -1
  61. package/build/common/PropsValues/typography.mjs +0 -6
  62. package/build/common/PropsValues/typography.mjs.map +1 -1
  63. package/build/i18n/en.json +1 -0
  64. package/build/i18n/en.json.js +1 -0
  65. package/build/i18n/en.json.js.map +1 -1
  66. package/build/i18n/en.json.mjs +1 -0
  67. package/build/i18n/en.json.mjs.map +1 -1
  68. package/build/index.js +3 -1
  69. package/build/index.js.map +1 -1
  70. package/build/index.mjs +2 -1
  71. package/build/index.mjs.map +1 -1
  72. package/build/main.css +864 -1509
  73. package/build/styles/Button/Button.css +3 -0
  74. package/build/styles/DateInput/DateInput.css +0 -13
  75. package/build/styles/Inputs/Input/Input.css +24 -0
  76. package/build/styles/Inputs/TextArea/TextArea.css +24 -0
  77. package/build/styles/ListItem/ListItem.css +1 -1
  78. package/build/styles/PhoneNumberInput/PhoneNumberInput.css +0 -3
  79. package/build/styles/Popover/Popover.css +6 -0
  80. package/build/styles/PromoCard/PromoCard.css +3 -0
  81. package/build/styles/Snackbar/Snackbar.css +182 -61
  82. package/build/styles/_deprecated/Select/Select.css +6 -0
  83. package/build/styles/css/accordion.css +12 -0
  84. package/build/styles/css/button-groups.css +6 -0
  85. package/build/styles/css/buttons.css +2 -0
  86. package/build/styles/css/decision.css +12 -0
  87. package/build/styles/css/dropdowns.css +18 -2
  88. package/build/styles/css/droppable.css +6 -0
  89. package/build/styles/css/footer.css +12 -0
  90. package/build/styles/css/input-groups.css +42 -2
  91. package/build/styles/css/list-group.css +6 -0
  92. package/build/styles/css/navbar.css +18 -2
  93. package/build/styles/css/neptune-core.css +512 -4
  94. package/build/styles/css/neptune.css +640 -1426
  95. package/build/styles/css/popovers.css +18 -0
  96. package/build/styles/css/tooltip.css +6 -0
  97. package/build/styles/less/neptune-tokens.less +0 -8
  98. package/build/styles/main.css +864 -1509
  99. package/build/styles/props/neptune-tokens.css +0 -8
  100. package/build/styles/styles/less/accordion.css +12 -0
  101. package/build/styles/styles/less/button-groups.css +6 -0
  102. package/build/styles/styles/less/buttons.css +2 -0
  103. package/build/styles/styles/less/decision.css +12 -0
  104. package/build/styles/styles/less/dropdowns.css +18 -2
  105. package/build/styles/styles/less/droppable.css +6 -0
  106. package/build/styles/styles/less/footer.css +12 -0
  107. package/build/styles/styles/less/forms/bootstrap-forms.css +24 -2
  108. package/build/styles/styles/less/input-groups.css +42 -2
  109. package/build/styles/styles/less/list-group.css +6 -0
  110. package/build/styles/styles/less/navbar.css +18 -2
  111. package/build/styles/styles/less/neptune-core.css +512 -4
  112. package/build/styles/styles/less/neptune.css +640 -1426
  113. package/build/styles/styles/less/popovers.css +18 -0
  114. package/build/styles/styles/less/tooltip.css +6 -0
  115. package/build/types/Inputs/SelectInput/OptionContent/SelectInputOptionContent.d.ts +1 -2
  116. package/build/types/Inputs/SelectInput/OptionContent/SelectInputOptionContent.d.ts.map +1 -1
  117. package/build/types/PhoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
  118. package/build/types/Snackbar/Snackbar.d.ts +41 -24
  119. package/build/types/Snackbar/Snackbar.d.ts.map +1 -1
  120. package/build/types/Snackbar/Snackbar.messages.d.ts +9 -0
  121. package/build/types/Snackbar/Snackbar.messages.d.ts.map +1 -0
  122. package/build/types/Snackbar/Snackbar.types.d.ts +21 -0
  123. package/build/types/Snackbar/Snackbar.types.d.ts.map +1 -0
  124. package/build/types/Snackbar/SnackbarContext.d.ts +2 -2
  125. package/build/types/Snackbar/SnackbarContext.d.ts.map +1 -1
  126. package/build/types/Snackbar/SnackbarPortal.d.ts +5 -0
  127. package/build/types/Snackbar/SnackbarPortal.d.ts.map +1 -0
  128. package/build/types/Snackbar/SnackbarProvider.d.ts +6 -0
  129. package/build/types/Snackbar/SnackbarProvider.d.ts.map +1 -1
  130. package/build/types/Snackbar/constants.d.ts +6 -0
  131. package/build/types/Snackbar/constants.d.ts.map +1 -0
  132. package/build/types/Snackbar/index.d.ts +3 -1
  133. package/build/types/Snackbar/index.d.ts.map +1 -1
  134. package/build/types/Snackbar/useSnackbar.d.ts +1 -1
  135. package/build/types/Snackbar/useSnackbar.d.ts.map +1 -1
  136. package/build/types/Snackbar/useSnackbarAutoDismiss.d.ts +18 -0
  137. package/build/types/Snackbar/useSnackbarAutoDismiss.d.ts.map +1 -0
  138. package/build/types/Snackbar/useSnackbarManager.d.ts +17 -0
  139. package/build/types/Snackbar/useSnackbarManager.d.ts.map +1 -0
  140. package/build/types/Snackbar/useSnackbarSwipeDismiss.d.ts +11 -0
  141. package/build/types/Snackbar/useSnackbarSwipeDismiss.d.ts.map +1 -0
  142. package/build/types/common/PropsValues/typography.d.ts +1 -13
  143. package/build/types/common/PropsValues/typography.d.ts.map +1 -1
  144. package/build/types/index.d.ts +2 -2
  145. package/build/types/index.d.ts.map +1 -1
  146. package/build/types/test-utils/index.d.ts +2 -0
  147. package/build/types/test-utils/index.d.ts.map +1 -1
  148. package/package.json +2 -2
  149. package/src/Button/Button.css +3 -0
  150. package/src/Button/Button.less +16 -0
  151. package/src/Button/_stories/Button.test.story.tsx +12 -12
  152. package/src/Calendar/DateHeader/DateHeader.tsx +3 -3
  153. package/src/Carousel/Carousel.tsx +3 -3
  154. package/src/DateInput/DateInput.css +0 -13
  155. package/src/DateInput/DateInput.less +2 -10
  156. package/src/DateInput/_stories/DateInput.test.story.tsx +13 -0
  157. package/src/Display/_stories/Display.story.tsx +6 -20
  158. package/src/ExpressiveMoneyInput/_stories/ExpressiveMoneyInput.rtl.test.story.tsx +1 -1
  159. package/src/InputWithDisplayFormat/_stories/InputWithDisplayFormat.test.story.tsx +0 -52
  160. package/src/Inputs/Input/Input.css +24 -0
  161. package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +1 -4
  162. package/src/Inputs/SelectInput/SelectInput.test.tsx +0 -74
  163. package/src/Inputs/TextArea/TextArea.css +24 -0
  164. package/src/ListItem/ListItem.css +1 -1
  165. package/src/ListItem/ListItem.grid.less +4 -4
  166. package/src/ListItem/ListItem.less +1 -1
  167. package/src/ListItem/Navigation/ListItemNavigation.tsx +2 -2
  168. package/src/PhoneNumberInput/PhoneNumberInput.css +0 -3
  169. package/src/PhoneNumberInput/PhoneNumberInput.less +2 -10
  170. package/src/PhoneNumberInput/PhoneNumberInput.tsx +0 -1
  171. package/src/PhoneNumberInput/_stories/PhoneNumberInput.rtl.test.story.tsx +1 -1
  172. package/src/Popover/Popover.css +6 -0
  173. package/src/PromoCard/Indicator/PromoCardIndicator.tsx +2 -2
  174. package/src/PromoCard/PromoCard.css +3 -0
  175. package/src/PromoCard/PromoCard.less +5 -0
  176. package/src/Prompt/CriticalBanner/_stories/CriticalBanner.test.story.tsx +1 -1
  177. package/src/Snackbar/Snackbar.css +182 -61
  178. package/src/Snackbar/Snackbar.less +185 -56
  179. package/src/Snackbar/Snackbar.messages.ts +9 -0
  180. package/src/Snackbar/Snackbar.test.tsx +697 -0
  181. package/src/Snackbar/Snackbar.tsx +227 -96
  182. package/src/Snackbar/Snackbar.types.ts +26 -0
  183. package/src/Snackbar/SnackbarContext.ts +2 -2
  184. package/src/Snackbar/SnackbarPortal.tsx +110 -0
  185. package/src/Snackbar/SnackbarProvider.test.tsx +202 -0
  186. package/src/Snackbar/SnackbarProvider.tsx +25 -25
  187. package/src/Snackbar/_stories/Snackbar.accessibility.docs.mdx +73 -0
  188. package/src/Snackbar/_stories/Snackbar.rtl.test.story.tsx +1 -12
  189. package/src/Snackbar/_stories/Snackbar.story.tsx +447 -62
  190. package/src/Snackbar/_stories/Snackbar.test.story.tsx +91 -16
  191. package/src/Snackbar/constants.ts +5 -0
  192. package/src/Snackbar/index.ts +3 -1
  193. package/src/Snackbar/useSnackbarAutoDismiss.ts +155 -0
  194. package/src/Snackbar/useSnackbarManager.ts +181 -0
  195. package/src/Snackbar/useSnackbarSwipeDismiss.ts +129 -0
  196. package/src/_deprecated/Select/Select.css +6 -0
  197. package/src/common/PropsValues/typography.ts +1 -20
  198. package/src/i18n/en.json +1 -1
  199. package/src/index.ts +7 -2
  200. package/src/main.css +864 -1509
  201. package/src/styles/less/accordion.css +12 -0
  202. package/src/styles/less/button-groups.css +6 -0
  203. package/src/styles/less/buttons.css +2 -0
  204. package/src/styles/less/core/_typography.less +194 -26
  205. package/src/styles/less/decision.css +12 -0
  206. package/src/styles/less/dropdowns.css +18 -2
  207. package/src/styles/less/droppable.css +6 -0
  208. package/src/styles/less/footer.css +12 -0
  209. package/src/styles/less/forms/bootstrap-forms.css +24 -2
  210. package/src/styles/less/input-groups.css +42 -2
  211. package/src/styles/less/list-group.css +6 -0
  212. package/src/styles/less/navbar.css +18 -2
  213. package/src/styles/less/neptune-core.css +512 -4
  214. package/src/styles/less/neptune.bundle.less +0 -2
  215. package/src/styles/less/neptune.css +640 -1426
  216. package/src/styles/less/popovers.css +18 -0
  217. package/src/styles/less/tooltip.css +6 -0
  218. package/src/DateInput/_stories/DateInput.rtl.test.story.tsx +0 -36
@@ -60,6 +60,12 @@
60
60
  line-height: var(--line-height-title);
61
61
  letter-spacing: 0;
62
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%;
63
69
  }
64
70
  @supports (hyphenate-limit-chars: 1) {
65
71
  .decision__title {
@@ -96,6 +102,12 @@
96
102
  margin-block-start: var(--size-8);
97
103
  }
98
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);
99
111
  word-wrap: break-word;
100
112
  margin-block-start: 4px;
101
113
  margin-block-start: var(--size-4);
@@ -346,6 +346,12 @@
346
346
  }
347
347
  }
348
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);
349
355
  word-wrap: break-word;
350
356
  color: #5d7079;
351
357
  color: var(--color-content-secondary);
@@ -2,6 +2,8 @@
2
2
  block-size: 32px;
3
3
  }
4
4
  .btn {
5
+ line-height: 150%;
6
+ letter-spacing: -0.011em;
5
7
  word-wrap: break-word;
6
8
  display: inline-block;
7
9
  margin-block-end: 0;
@@ -49,8 +49,11 @@ h6,
49
49
  .title-1,
50
50
  h1,
51
51
  .np-text-title-screen {
52
- &:extend(.wds-text-title-screen);
53
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%;
54
57
  }
55
58
 
56
59
  /* DEPRECATED: use .np-text-title-section instead */
@@ -59,8 +62,11 @@ h1,
59
62
  .title-2,
60
63
  h2,
61
64
  .np-text-title-section {
62
- &:extend(.wds-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
72
  /* DEPRECATED: use .np-text-title-subsection instead */
@@ -69,8 +75,11 @@ h2,
69
75
  .title-3,
70
76
  h3,
71
77
  .np-text-title-subsection {
72
- &:extend(.wds-text-title-subsection);
73
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%;
74
83
  }
75
84
 
76
85
  /* DEPRECATED: use .np-text-title-body instead */
@@ -79,7 +88,10 @@ h3,
79
88
  .title-4,
80
89
  h4,
81
90
  .np-text-title-body {
82
- &:extend(.wds-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%;
83
95
  }
84
96
 
85
97
  /* DEPRECATED: use .np-text-title-group instead */
@@ -90,7 +102,10 @@ h4,
90
102
  h5,
91
103
  h6,
92
104
  .np-text-title-group {
93
- &:extend(.wds-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%;
94
109
  }
95
110
 
96
111
  /* DEPRECATED: use .np-text-title-body instead */
@@ -116,7 +131,10 @@ h6,
116
131
  body,
117
132
  small,
118
133
  .np-text-body-default {
119
- &:extend(.wds-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);
120
138
  .np-text-hyphenated;
121
139
  }
122
140
 
@@ -128,7 +146,10 @@ small,
128
146
  .label, .control-label,
129
147
 
130
148
  .np-text-body-default-bold {
131
- &:extend(.wds-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);
132
153
  .np-text-hyphenated;
133
154
  }
134
155
 
@@ -137,7 +158,10 @@ small,
137
158
  .body-1,
138
159
  .value,
139
160
  .np-text-body-large {
140
- &:extend(.wds-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;
141
165
  .np-text-hyphenated;
142
166
  }
143
167
 
@@ -145,7 +169,10 @@ small,
145
169
  /* stylelint-disable-next-line selector-list-comma-newline-after */
146
170
  .control-1,
147
171
  .np-text-body-large-bold {
148
- &:extend(.wds-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;
149
176
  .np-text-hyphenated;
150
177
  }
151
178
 
@@ -172,21 +199,19 @@ a,
172
199
 
173
200
  // DISPLAY
174
201
 
175
- /* DEPRECATED: use .wds-text-display-number-small instead */
176
202
  .np-text-display-number {
177
- &:extend(.wds-text-display-number);
178
- }
179
-
180
- .np-text-display-number-small {
181
- &:extend(.wds-text-display-number-small);
182
- }
183
-
184
- .np-text-display-number-medium {
185
- &:extend(.wds-text-display-number-medium);
203
+ font-weight: var(--font-weight-semi-bold);
204
+ font-size: 40px;
205
+ line-height: 110%;
186
206
  }
187
207
 
188
- .np-text-display-number-large {
189
- &: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;
190
215
  }
191
216
 
192
217
  .display-1,
@@ -198,12 +223,28 @@ a,
198
223
  .np-text-display-large,
199
224
  .np-text-display-medium,
200
225
  .np-text-display-small {
201
- font-synthesis: none;
202
-
226
+ &,
203
227
  &--forced {
204
228
  font-family: var(--font-family-display);
205
229
  font-synthesis: none;
206
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
+ }
207
248
  }
208
249
 
209
250
  /* DEPRECATED(.np-text-display-extra-large): use .np-text-display-large instead */
@@ -211,20 +252,36 @@ a,
211
252
  .np-text-display-large,
212
253
  .np-text-display-medium,
213
254
  .np-text-display-small {
255
+ letter-spacing: normal;
214
256
  .np-text-hyphenated;
215
257
  }
216
258
 
217
259
  .np-text-display-extra-large,
218
260
  .np-text-display-large {
219
- &:extend(.wds-text-display-large);
261
+ .display-formatting(var(--size-64), normal, var(--font-weight-bold));
220
262
  }
221
263
 
222
264
  .np-text-display-medium {
223
- &:extend(.wds-text-display-medium);
265
+ .display-formatting(var(--size-52), normal, var(--font-weight-bold));
224
266
  }
225
267
 
226
268
  .np-text-display-small {
227
- &:extend(.wds-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
+ }
228
285
  }
229
286
 
230
287
  /* Disable hyphenation for English
@@ -237,6 +294,117 @@ a,
237
294
  hyphens: none;
238
295
  }
239
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
+
240
408
  /* DEPRECATED: use `.np-text-display-*` instead */
241
409
  .display-1 {
242
410
  margin-bottom: var(--size-24);
@@ -22,6 +22,12 @@
22
22
  line-height: var(--line-height-title);
23
23
  letter-spacing: 0;
24
24
  word-wrap: break-word;
25
+ font-size: 1.125rem;
26
+ font-size: var(--font-size-18);
27
+ font-weight: 600;
28
+ font-weight: var(--font-weight-semi-bold);
29
+ letter-spacing: -0.014em;
30
+ line-height: 135%;
25
31
  }
26
32
  @supports (hyphenate-limit-chars: 1) {
27
33
  .decision__title {
@@ -58,6 +64,12 @@
58
64
  margin-block-start: var(--size-8);
59
65
  }
60
66
  .decision__content {
67
+ font-size: 0.875rem;
68
+ font-size: var(--font-size-14);
69
+ line-height: 155%;
70
+ letter-spacing: -0.006em;
71
+ font-weight: 400;
72
+ font-weight: var(--font-weight-regular);
61
73
  word-wrap: break-word;
62
74
  margin-block-start: 4px;
63
75
  margin-block-start: var(--size-4);
@@ -11,6 +11,12 @@
11
11
  padding: 8px;
12
12
  margin: 0;
13
13
  list-style: none;
14
+ font-size: 0.875rem;
15
+ font-size: var(--font-size-14);
16
+ line-height: 155%;
17
+ letter-spacing: -0.006em;
18
+ font-weight: 400;
19
+ font-weight: var(--font-weight-regular);
14
20
  word-wrap: break-word;
15
21
  text-align: start;
16
22
  background-color: #ffffff;
@@ -89,6 +95,12 @@
89
95
  padding: var(--dropdown-link-padding);
90
96
  clear: both;
91
97
  border-radius: 3px;
98
+ font-size: 0.875rem;
99
+ font-size: var(--font-size-14);
100
+ line-height: 155%;
101
+ letter-spacing: -0.006em;
102
+ font-weight: 400;
103
+ font-weight: var(--font-weight-regular);
92
104
  word-wrap: break-word;
93
105
  color: #37517e;
94
106
  color: var(--color-content-primary);
@@ -285,8 +297,6 @@
285
297
  display: block;
286
298
  padding-block: 8px;
287
299
  padding-inline: 16px;
288
- font-size: 0.875rem;
289
- font-size: var(--font-size-14);
290
300
  line-height: 1.5;
291
301
  line-height: var(--line-height-body);
292
302
  color: #5d7079;
@@ -299,6 +309,12 @@
299
309
  line-height: var(--line-height-title);
300
310
  letter-spacing: 0;
301
311
  word-wrap: break-word;
312
+ font-weight: 500;
313
+ font-weight: var(--font-weight-medium);
314
+ font-size: 0.875rem;
315
+ font-size: var(--font-size-14);
316
+ letter-spacing: -0.006em;
317
+ line-height: 140%;
302
318
  }
303
319
  @supports (hyphenate-limit-chars: 1) {
304
320
  .dropdown-header {
@@ -1,5 +1,11 @@
1
1
  .droppable {
2
2
  position: relative;
3
+ font-weight: 400;
4
+ font-weight: var(--font-weight-regular);
5
+ font-size: 1rem;
6
+ font-size: var(--font-size-16);
7
+ line-height: 150%;
8
+ letter-spacing: -0.011em;
3
9
  word-wrap: break-word;
4
10
  text-align: center;
5
11
  border: 1px solid #c9cbce;
@@ -1,6 +1,12 @@
1
1
  .footer {
2
2
  background-color: rgba(134,167,189,0.10196);
3
3
  background-color: var(--color-background-neutral);
4
+ font-size: 0.875rem;
5
+ font-size: var(--font-size-14);
6
+ line-height: 155%;
7
+ letter-spacing: -0.006em;
8
+ font-weight: 400;
9
+ font-weight: var(--font-weight-regular);
4
10
  word-wrap: break-word;
5
11
  padding-block-start: calc(8px * 10);
6
12
  padding-block-start: calc(var(--size-8) * 10);
@@ -55,6 +61,12 @@
55
61
  .footer .link-icon {
56
62
  color: #5d7079;
57
63
  color: var(--color-content-secondary);
64
+ font-size: 0.875rem;
65
+ font-size: var(--font-size-14);
66
+ line-height: 155%;
67
+ letter-spacing: -0.006em;
68
+ font-weight: 400;
69
+ font-weight: var(--font-weight-regular);
58
70
  word-wrap: break-word;
59
71
  }
60
72
  @supports (hyphenate-limit-chars: 1) {
@@ -85,11 +85,15 @@ output {
85
85
  border: 1px solid #c9cbce;
86
86
  border: 1px solid var(--color-interactive-secondary);
87
87
  transition: border-color ease-in-out 0.15s;
88
- font-size: 1rem;
89
- font-size: var(--font-size-16);
90
88
  min-block-size: var(--input-height-base);
91
89
  padding: var(--input-padding);
92
90
  border-radius: 3px;
91
+ font-weight: 400;
92
+ font-weight: var(--font-weight-regular);
93
+ font-size: 1rem;
94
+ font-size: var(--font-size-16);
95
+ line-height: 150%;
96
+ letter-spacing: -0.011em;
93
97
  word-wrap: break-word;
94
98
  background-clip: padding-box;
95
99
  }
@@ -303,6 +307,12 @@ fieldset[disabled] .checkbox label {
303
307
  border-radius: 3px;
304
308
  font-size: 14px;
305
309
  line-height: 24px;
310
+ font-size: 0.875rem;
311
+ font-size: var(--font-size-14);
312
+ line-height: 155%;
313
+ letter-spacing: -0.006em;
314
+ font-weight: 400;
315
+ font-weight: var(--font-weight-regular);
306
316
  word-wrap: break-word;
307
317
  }
308
318
  select.input-sm {
@@ -374,6 +384,12 @@ select[multiple].input-sm {
374
384
  min-block-size: var(--input-height-large);
375
385
  padding: var(--input-padding-large);
376
386
  border-radius: 3px;
387
+ font-weight: 400;
388
+ font-weight: var(--font-weight-regular);
389
+ font-size: 1rem;
390
+ font-size: var(--font-size-16);
391
+ line-height: 150%;
392
+ letter-spacing: -0.011em;
377
393
  word-wrap: break-word;
378
394
  }
379
395
  select.input-lg {
@@ -2000,6 +2016,12 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
2000
2016
  .form-control-placeholder {
2001
2017
  text-overflow: ellipsis;
2002
2018
  overflow: hidden;
2019
+ font-weight: 400;
2020
+ font-weight: var(--font-weight-regular);
2021
+ font-size: 1rem;
2022
+ font-size: var(--font-size-16);
2023
+ line-height: 150%;
2024
+ letter-spacing: -0.011em;
2003
2025
  word-wrap: break-word;
2004
2026
  display: block;
2005
2027
  inline-size: 100%;
@@ -88,11 +88,15 @@ output {
88
88
  border: 1px solid #c9cbce;
89
89
  border: 1px solid var(--color-interactive-secondary);
90
90
  transition: border-color ease-in-out 0.15s;
91
- font-size: 1rem;
92
- font-size: var(--font-size-16);
93
91
  min-block-size: var(--input-height-base);
94
92
  padding: var(--input-padding);
95
93
  border-radius: 3px;
94
+ font-weight: 400;
95
+ font-weight: var(--font-weight-regular);
96
+ font-size: 1rem;
97
+ font-size: var(--font-size-16);
98
+ line-height: 150%;
99
+ letter-spacing: -0.011em;
96
100
  word-wrap: break-word;
97
101
  background-clip: padding-box;
98
102
  }
@@ -306,6 +310,12 @@ fieldset[disabled] .checkbox label {
306
310
  border-radius: 3px;
307
311
  font-size: 14px;
308
312
  line-height: 24px;
313
+ font-size: 0.875rem;
314
+ font-size: var(--font-size-14);
315
+ line-height: 155%;
316
+ letter-spacing: -0.006em;
317
+ font-weight: 400;
318
+ font-weight: var(--font-weight-regular);
309
319
  word-wrap: break-word;
310
320
  }
311
321
  select.input-sm {
@@ -377,6 +387,12 @@ select[multiple].input-sm {
377
387
  min-block-size: var(--input-height-large);
378
388
  padding: var(--input-padding-large);
379
389
  border-radius: 3px;
390
+ font-weight: 400;
391
+ font-weight: var(--font-weight-regular);
392
+ font-size: 1rem;
393
+ font-size: var(--font-size-16);
394
+ line-height: 150%;
395
+ letter-spacing: -0.011em;
380
396
  word-wrap: break-word;
381
397
  }
382
398
  select.input-lg {
@@ -2003,6 +2019,12 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
2003
2019
  .form-control-placeholder {
2004
2020
  text-overflow: ellipsis;
2005
2021
  overflow: hidden;
2022
+ font-weight: 400;
2023
+ font-weight: var(--font-weight-regular);
2024
+ font-size: 1rem;
2025
+ font-size: var(--font-size-16);
2026
+ line-height: 150%;
2027
+ letter-spacing: -0.011em;
2006
2028
  word-wrap: break-word;
2007
2029
  display: block;
2008
2030
  inline-size: 100%;
@@ -2248,6 +2270,12 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
2248
2270
  min-block-size: var(--input-height-large);
2249
2271
  padding: var(--input-padding-large);
2250
2272
  border-radius: 3px;
2273
+ font-weight: 400;
2274
+ font-weight: var(--font-weight-regular);
2275
+ font-size: 1rem;
2276
+ font-size: var(--font-size-16);
2277
+ line-height: 150%;
2278
+ letter-spacing: -0.011em;
2251
2279
  margin: 0;
2252
2280
  color: #37517e;
2253
2281
  color: var(--color-content-primary);
@@ -2256,6 +2284,12 @@ input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-
2256
2284
  letter-spacing: 0;
2257
2285
  word-wrap: break-word;
2258
2286
  margin-block-end: initial;
2287
+ font-size: 1.375rem;
2288
+ font-size: var(--font-size-22);
2289
+ font-weight: 600;
2290
+ font-weight: var(--font-weight-semi-bold);
2291
+ letter-spacing: -0.018em;
2292
+ line-height: 125%;
2259
2293
  margin-block-end: 0;
2260
2294
  }
2261
2295
  select.input-group-lg > .form-control,
@@ -2366,6 +2400,12 @@ select[multiple].input-group-lg > .input-group-btn .btn {
2366
2400
  border-radius: 3px;
2367
2401
  font-size: 14px;
2368
2402
  line-height: 24px;
2403
+ font-size: 0.875rem;
2404
+ font-size: var(--font-size-14);
2405
+ line-height: 155%;
2406
+ letter-spacing: -0.006em;
2407
+ font-weight: 400;
2408
+ font-weight: var(--font-weight-regular);
2369
2409
  word-wrap: break-word;
2370
2410
  }
2371
2411
  select.input-group-sm > .form-control,
@@ -43,6 +43,12 @@
43
43
  line-height: var(--line-height-title);
44
44
  letter-spacing: 0;
45
45
  word-wrap: break-word;
46
+ font-weight: 500;
47
+ font-weight: var(--font-weight-medium);
48
+ font-size: 0.875rem;
49
+ font-size: var(--font-size-14);
50
+ letter-spacing: -0.006em;
51
+ line-height: 140%;
46
52
  color: #37517e;
47
53
  color: var(--color-content-primary);
48
54
  }
@@ -127,6 +127,12 @@
127
127
  padding: 8px;
128
128
  margin: 0;
129
129
  list-style: none;
130
+ font-size: 0.875rem;
131
+ font-size: var(--font-size-14);
132
+ line-height: 155%;
133
+ letter-spacing: -0.006em;
134
+ font-weight: 400;
135
+ font-weight: var(--font-weight-regular);
130
136
  word-wrap: break-word;
131
137
  text-align: start;
132
138
  background-color: #ffffff;
@@ -205,6 +211,12 @@
205
211
  padding: var(--dropdown-link-padding);
206
212
  clear: both;
207
213
  border-radius: 3px;
214
+ font-size: 0.875rem;
215
+ font-size: var(--font-size-14);
216
+ line-height: 155%;
217
+ letter-spacing: -0.006em;
218
+ font-weight: 400;
219
+ font-weight: var(--font-weight-regular);
208
220
  word-wrap: break-word;
209
221
  color: #37517e;
210
222
  color: var(--color-content-primary);
@@ -401,8 +413,6 @@
401
413
  display: block;
402
414
  padding-block: 8px;
403
415
  padding-inline: 16px;
404
- font-size: 0.875rem;
405
- font-size: var(--font-size-14);
406
416
  line-height: 1.5;
407
417
  line-height: var(--line-height-body);
408
418
  color: #5d7079;
@@ -415,6 +425,12 @@
415
425
  line-height: var(--line-height-title);
416
426
  letter-spacing: 0;
417
427
  word-wrap: break-word;
428
+ font-weight: 500;
429
+ font-weight: var(--font-weight-medium);
430
+ font-size: 0.875rem;
431
+ font-size: var(--font-size-14);
432
+ letter-spacing: -0.006em;
433
+ line-height: 140%;
418
434
  }
419
435
  @supports (hyphenate-limit-chars: 1) {
420
436
  .dropdown-header {