@transferwise/components 0.0.0-experimental-7a793eb → 0.0.0-experimental-97fe512

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 (208) 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/ExpressiveMoneyInput/AmountInput/AmountInput.js +1 -1
  18. package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js.map +1 -1
  19. package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs +1 -1
  20. package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs.map +1 -1
  21. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js +1 -1
  22. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js.map +1 -1
  23. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs +1 -1
  24. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs.map +1 -1
  25. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js +2 -2
  26. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -1
  27. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs +2 -2
  28. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -1
  29. package/build/Inputs/SelectInput/Option/SelectInputOption.js +1 -1
  30. package/build/Inputs/SelectInput/Option/SelectInputOption.js.map +1 -1
  31. package/build/Inputs/SelectInput/Option/SelectInputOption.mjs +1 -1
  32. package/build/Inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -1
  33. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js +3 -3
  34. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
  35. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +3 -3
  36. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
  37. package/build/Inputs/SelectInput/Popover/SelectInputPopover.js +2 -2
  38. package/build/Inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -1
  39. package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs +2 -2
  40. package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -1
  41. package/build/Label/Label.js +1 -1
  42. package/build/Label/Label.js.map +1 -1
  43. package/build/Label/Label.mjs +1 -1
  44. package/build/Label/Label.mjs.map +1 -1
  45. package/build/Stepper/Stepper.js +1 -1
  46. package/build/Stepper/Stepper.js.map +1 -1
  47. package/build/Stepper/Stepper.mjs +1 -1
  48. package/build/Stepper/Stepper.mjs.map +1 -1
  49. package/build/Table/Header/TableHeader.js +1 -1
  50. package/build/Table/Header/TableHeader.js.map +1 -1
  51. package/build/Table/Header/TableHeader.mjs +1 -1
  52. package/build/Table/Header/TableHeader.mjs.map +1 -1
  53. package/build/Tabs/Tab/Tab.js +1 -1
  54. package/build/Tabs/Tab/Tab.js.map +1 -1
  55. package/build/Tabs/Tab/Tab.mjs +1 -1
  56. package/build/Tabs/Tab/Tab.mjs.map +1 -1
  57. package/build/Tag/Tag.js +1 -1
  58. package/build/Tag/Tag.js.map +1 -1
  59. package/build/Tag/Tag.mjs +1 -1
  60. package/build/Tag/Tag.mjs.map +1 -1
  61. package/build/Typeahead/TypeaheadOption/TypeaheadOption.js +2 -2
  62. package/build/Typeahead/TypeaheadOption/TypeaheadOption.js.map +1 -1
  63. package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs +2 -2
  64. package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs.map +1 -1
  65. package/build/Upload/Steps/UploadImageStep/UploadImageStep.js +2 -2
  66. package/build/Upload/Steps/UploadImageStep/UploadImageStep.js.map +1 -1
  67. package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs +2 -2
  68. package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs.map +1 -1
  69. package/build/_deprecated/ActionButton/ActionButton.js +1 -1
  70. package/build/_deprecated/ActionButton/ActionButton.js.map +1 -1
  71. package/build/_deprecated/ActionButton/ActionButton.mjs +1 -1
  72. package/build/_deprecated/ActionButton/ActionButton.mjs.map +1 -1
  73. package/build/_deprecated/Avatar/Avatar.js +1 -1
  74. package/build/_deprecated/Avatar/Avatar.js.map +1 -1
  75. package/build/_deprecated/Avatar/Avatar.mjs +1 -1
  76. package/build/_deprecated/Avatar/Avatar.mjs.map +1 -1
  77. package/build/_deprecated/Select/Select.js +2 -2
  78. package/build/_deprecated/Select/Select.js.map +1 -1
  79. package/build/_deprecated/Select/Select.mjs +2 -2
  80. package/build/_deprecated/Select/Select.mjs.map +1 -1
  81. package/build/main.css +157 -153
  82. package/build/styles/Accordion/Accordion.css +7 -6
  83. package/build/styles/Body/Body.css +1 -1
  84. package/build/styles/Calendar/Calendar.css +11 -4
  85. package/build/styles/Calendar/TableLink/TableLink.css +11 -4
  86. package/build/styles/Chips/Chip/Chip.css +5 -3
  87. package/build/styles/Decision/Decision.css +4 -3
  88. package/build/styles/Emphasis/Emphasis.css +1 -1
  89. package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
  90. package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
  91. package/build/styles/Inputs/Input/Input.css +5 -41
  92. package/build/styles/Inputs/TextArea/TextArea.css +5 -41
  93. package/build/styles/Label/Label.css +3 -0
  94. package/build/styles/Markup/Markup.css +2 -2
  95. package/build/styles/MoneyInput/MoneyInput.css +9 -6
  96. package/build/styles/Nudge/Nudge.css +3 -3
  97. package/build/styles/Popover/Popover.css +1 -37
  98. package/build/styles/ProgressBar/ProgressBar.css +3 -2
  99. package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
  100. package/build/styles/Snackbar/Snackbar.css +1 -1
  101. package/build/styles/Table/Table.css +18 -8
  102. package/build/styles/Tabs/Tabs.css +3 -3
  103. package/build/styles/Tag/Tag.css +1 -1
  104. package/build/styles/Tile/Tile.css +4 -3
  105. package/build/styles/Typeahead/Typeahead.css +4 -2
  106. package/build/styles/UploadInput/UploadInput.css +1 -1
  107. package/build/styles/_deprecated/ActionButton/ActionButton.css +3 -4
  108. package/build/styles/_deprecated/Avatar/Avatar.css +2 -2
  109. package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
  110. package/build/styles/_deprecated/Select/Select.css +22 -9
  111. package/build/styles/_deprecated/Summary/Summary.css +2 -2
  112. package/build/styles/common/Circle/Circle.css +1 -1
  113. package/build/styles/common/Option/Option.css +4 -4
  114. package/build/styles/main.css +157 -153
  115. package/build/types/ExpressiveMoneyInput/AmountInput/AmountInput.d.ts.map +1 -1
  116. package/package.json +1 -1
  117. package/src/Accordion/Accordion.css +7 -6
  118. package/src/Accordion/Accordion.less +7 -6
  119. package/src/Body/Body.css +1 -1
  120. package/src/Body/Body.less +1 -1
  121. package/src/Body/Body.test.tsx +4 -4
  122. package/src/Body/Body.tsx +2 -2
  123. package/src/Calendar/Calendar.css +11 -4
  124. package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
  125. package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
  126. package/src/Calendar/TableLink/TableLink.css +11 -4
  127. package/src/Calendar/TableLink/TableLink.less +14 -4
  128. package/src/Calendar/TableLink/TableLink.tsx +1 -1
  129. package/src/Chips/Chip/Chip.css +5 -3
  130. package/src/Chips/Chip/Chip.less +3 -2
  131. package/src/CircularButton/_stories/CircularButton.story.tsx +6 -16
  132. package/src/Decision/Decision.css +4 -3
  133. package/src/Decision/Decision.less +4 -3
  134. package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
  135. package/src/Emphasis/Emphasis.css +1 -1
  136. package/src/Emphasis/Emphasis.less +1 -1
  137. package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
  138. package/src/ExpressiveMoneyInput/AmountInput/AmountInput.less +2 -1
  139. package/src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx +1 -4
  140. package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
  141. package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
  142. package/src/Inputs/Input/Input.css +5 -41
  143. package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +2 -2
  144. package/src/Inputs/SelectInput/Option/SelectInputOption.tsx +1 -1
  145. package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +3 -3
  146. package/src/Inputs/SelectInput/Popover/SelectInputPopover.tsx +2 -2
  147. package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
  148. package/src/Inputs/TextArea/TextArea.css +5 -41
  149. package/src/Inputs/_common.less +12 -10
  150. package/src/Label/Label.css +3 -0
  151. package/src/Label/Label.less +8 -0
  152. package/src/Label/Label.tsx +1 -1
  153. package/src/Markup/Markup.css +2 -2
  154. package/src/Markup/Markup.less +2 -2
  155. package/src/MoneyInput/MoneyInput.css +9 -6
  156. package/src/MoneyInput/MoneyInput.less +10 -7
  157. package/src/Nudge/Nudge.css +3 -3
  158. package/src/Nudge/Nudge.less +3 -3
  159. package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
  160. package/src/Popover/Popover.css +1 -37
  161. package/src/Popover/Popover.less +2 -2
  162. package/src/ProgressBar/ProgressBar.css +3 -2
  163. package/src/ProgressBar/ProgressBar.less +12 -11
  164. package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
  165. package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +2 -1
  166. package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
  167. package/src/Snackbar/Snackbar.css +1 -1
  168. package/src/Snackbar/Snackbar.less +1 -1
  169. package/src/Stepper/Stepper.tsx +1 -1
  170. package/src/Table/Header/TableHeader.tsx +1 -1
  171. package/src/Table/StatusText/TableStatusText.test.tsx +5 -5
  172. package/src/Table/Table.css +18 -8
  173. package/src/Table/Table.less +20 -9
  174. package/src/Tabs/Tab/Tab.tsx +1 -1
  175. package/src/Tabs/Tabs.css +3 -3
  176. package/src/Tabs/Tabs.less +3 -3
  177. package/src/Tag/Tag.css +1 -1
  178. package/src/Tag/Tag.less +1 -1
  179. package/src/Tag/Tag.tsx +1 -1
  180. package/src/Tag/_stories/Tag.story.tsx +1 -1
  181. package/src/Tile/Tile.css +4 -3
  182. package/src/Tile/Tile.less +4 -3
  183. package/src/Typeahead/Typeahead.css +4 -2
  184. package/src/Typeahead/Typeahead.less +2 -1
  185. package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
  186. package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +2 -2
  187. package/src/UploadInput/UploadInput.css +1 -1
  188. package/src/UploadInput/UploadInput.less +7 -4
  189. package/src/_deprecated/ActionButton/ActionButton.css +3 -4
  190. package/src/_deprecated/ActionButton/ActionButton.less +4 -5
  191. package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
  192. package/src/_deprecated/Avatar/Avatar.css +2 -2
  193. package/src/_deprecated/Avatar/Avatar.less +2 -2
  194. package/src/_deprecated/Avatar/Avatar.tsx +1 -1
  195. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
  196. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +2 -1
  197. package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
  198. package/src/_deprecated/Select/Select.css +22 -9
  199. package/src/_deprecated/Select/Select.less +14 -10
  200. package/src/_deprecated/Select/Select.tsx +2 -2
  201. package/src/_deprecated/Summary/Summary.css +2 -2
  202. package/src/_deprecated/Summary/Summary.less +2 -2
  203. package/src/common/Circle/Circle.css +1 -1
  204. package/src/common/Circle/Circle.less +1 -1
  205. package/src/common/Option/Option.css +4 -4
  206. package/src/common/Option/Option.less +4 -4
  207. package/src/main.css +157 -153
  208. package/src/main.less +3 -2
@@ -1276,7 +1276,7 @@ export const WithBuiltInSearchResultSorting: Story<CountryWithCurrency> = {
1276
1276
  decorators: [
1277
1277
  (Story) => (
1278
1278
  <div>
1279
- <p className="m-b-3 np-text-body-default" style={{ maxWidth: '600px' }}>
1279
+ <p className="m-b-3 wds-text-body-default" style={{ maxWidth: '600px' }}>
1280
1280
  This example uses the built-in <code>SelectInput.sortByRelevance</code> helper to sort
1281
1281
  filtered results by relevance (You can implement your own). This one prioritises: exact
1282
1282
  matches → starts with → contains → alphabetical.
@@ -136,7 +136,7 @@
136
136
  }
137
137
  .np-form-control--size-sm {
138
138
  word-wrap: break-word;
139
- block-size: var(--size-32) !important;
139
+ block-size: calc(2 * var(--size-4) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
140
140
  }
141
141
  @supports (hyphenate-limit-chars: 1) {
142
142
  .np-form-control--size-sm {
@@ -168,12 +168,12 @@
168
168
  }
169
169
  @media (max-width: 320px) {
170
170
  .np-form-control--size-sm {
171
- block-size: var(--size-64) !important;
171
+ block-size: calc(2 * var(--size-8) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
172
172
  }
173
173
  }
174
174
  .np-form-control--size-md {
175
175
  word-wrap: break-word;
176
- block-size: var(--size-48) !important;
176
+ block-size: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
177
177
  }
178
178
  @supports (hyphenate-limit-chars: 1) {
179
179
  .np-form-control--size-md {
@@ -205,48 +205,12 @@
205
205
  }
206
206
  @media (max-width: 320px) {
207
207
  .np-form-control--size-md {
208
- block-size: var(--size-72) !important;
208
+ block-size: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
209
209
  }
210
210
  }
211
211
  .np-form-control--size-lg {
212
- margin: 0;
213
- color: var(--color-content-primary);
214
- word-wrap: break-word;
215
212
  margin-block-end: initial;
216
- block-size: var(--size-72) !important;
217
- }
218
- @supports (hyphenate-limit-chars: 1) {
219
- .np-form-control--size-lg {
220
- hyphens: auto;
221
- hyphenate-limit-chars: 7 3;
222
- }
223
- @media (min-width: 840px) {
224
- .np-form-control--size-lg {
225
- hyphenate-limit-chars: 8 3;
226
- }
227
- }
228
- @media (min-width: 1160px) {
229
- .np-form-control--size-lg {
230
- hyphenate-limit-chars: 10 4 3;
231
- }
232
- }
233
- }
234
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
235
- .np-form-control--size-lg {
236
- hyphens: auto;
237
- -webkit-hyphenate-limit-before: 3;
238
- -webkit-hyphenate-limit-after: 3;
239
- }
240
- @media (min-width: 1160px) {
241
- .np-form-control--size-lg {
242
- -webkit-hyphenate-limit-before: 4;
243
- }
244
- }
245
- }
246
- .np-form-control--size-lg + p,
247
- .np-form-control--size-lg + ul:not(.list-unstyled),
248
- .np-form-control--size-lg + ol:not(.list-unstyled) {
249
- margin-block-start: var(--size-8);
213
+ block-size: calc(2 * var(--size-24) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
250
214
  }
251
215
  .np-text-area {
252
216
  min-block-size: var(--size-72);
@@ -1,4 +1,4 @@
1
- @import (reference) './../styles/less/core/_typography.less';
1
+ @import (reference) "./../styles/less/core/_typography.less";
2
2
 
3
3
  .np-form-control {
4
4
  --ring-width: 1px;
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  &--size-auto {
43
- .np-text-body-large;
43
+ .wds-text-body-large;
44
44
  padding-top: var(--size-12);
45
45
  padding-bottom: var(--size-12);
46
46
  }
@@ -54,23 +54,25 @@
54
54
  }
55
55
 
56
56
  &--size-sm {
57
- .np-text-body-default;
58
- height: var(--size-32) !important;
57
+ .wds-text-body-default;
58
+ height: calc(2 * var(--size-4) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
59
+
59
60
  @media (--screen-400-zoom) {
60
- height: var(--size-64) !important;
61
+ height: calc(2 * var(--size-8) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
61
62
  }
62
63
  }
63
64
 
64
65
  &--size-md {
65
- .np-text-body-large;
66
- height: var(--size-48) !important;
66
+ .wds-text-body-large;
67
+ height: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
68
+
67
69
  @media (--screen-400-zoom) {
68
- height: var(--size-72) !important;
70
+ height: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
69
71
  }
70
72
  }
71
73
 
72
74
  &--size-lg {
73
- .np-text-title-subsection;
74
- height: var(--size-72) !important;
75
+ .wds-text-title-subsection;
76
+ height: calc(2 * var(--size-24) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
75
77
  }
76
78
  }
@@ -0,0 +1,3 @@
1
+ :lang(ar) .np-label .np-info {
2
+ line-height: calc(1lh * 0.8);
3
+ }
@@ -0,0 +1,8 @@
1
+ .np-label .np-info{
2
+ :lang(ar) & {
3
+ // arabic fonts have uneven metrics above and below the x-heigh space,
4
+ // so we need to adjust the line-height to make it visually centered
5
+ line-height: calc(1lh * 0.8);
6
+ }
7
+ }
8
+
@@ -29,7 +29,7 @@ const Label = forwardRef<HTMLLabelElement, LabelProps>(
29
29
  id={id}
30
30
  htmlFor={htmlFor}
31
31
  className={clsx(
32
- 'np-label d-flex flex-column np-text-body-default-bold text-primary m-b-0',
32
+ 'np-label d-flex flex-column wds-text-body-default-bold text-primary m-b-0',
33
33
  className,
34
34
  )}
35
35
  >
@@ -1,5 +1,5 @@
1
1
  .wds-markup-emphasis {
2
- font-weight: var(--font-weight-semi-bold);
2
+ font-weight: var(--wds-font-weight-body-bold);
3
3
  font-style: normal;
4
4
  }
5
5
  .wds-markup-emphasis--important {
@@ -12,7 +12,7 @@
12
12
  color: var(--color-content-negative);
13
13
  }
14
14
  .wds-markup-strong {
15
- font-weight: var(--font-weight-semi-bold);
15
+ font-weight: var(--wds-font-weight-body-bold);
16
16
  }
17
17
  .wds-markup-strikethrough {
18
18
  -webkit-text-decoration: line-through;
@@ -1,5 +1,5 @@
1
1
  .wds-markup-emphasis {
2
- font-weight: var(--font-weight-semi-bold);
2
+ font-weight: var(--wds-font-weight-body-bold);
3
3
  font-style: normal;
4
4
  }
5
5
 
@@ -16,7 +16,7 @@
16
16
  }
17
17
 
18
18
  .wds-markup-strong {
19
- font-weight: var(--font-weight-semi-bold);
19
+ font-weight: var(--wds-font-weight-body-bold);
20
20
  }
21
21
 
22
22
  /// @see https://www.webaxe.org/strikethrough-html-accessibility/
@@ -4,9 +4,10 @@
4
4
  .tw-money-input .tw-money-input__fixed-currency {
5
5
  padding-inline-start: 0 !important;
6
6
  }
7
- .tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection {
7
+ .tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection,
8
+ .tw-money-input .tw-money-input__fixed-currency .wds-text-title-subsection {
8
9
  color: var(--color-content-tertiary);
9
- font-weight: var(--font-weight-semi-bold);
10
+ font-weight: var(--wds-font-weight-body-bold);
10
11
  }
11
12
  [dir="rtl"] .tw-money-input .money-input__number-input {
12
13
  text-align: end;
@@ -18,14 +19,16 @@
18
19
  .tw-money-input.input-group-sm .form-control {
19
20
  min-block-size: 34px;
20
21
  }
21
- .tw-money-input.input-group-sm .np-text-title-subsection {
22
- font-size: var(--font-size-14);
22
+ .tw-money-input.input-group-sm .np-text-title-subsection,
23
+ .tw-money-input.input-group-sm .wds-text-title-subsection {
24
+ font-size: var(--wds-font-size-body);
23
25
  }
24
26
  .tw-money-input.input-group-md .form-control {
25
27
  min-block-size: 53px;
26
28
  }
27
- .tw-money-input.input-group-md .np-text-title-subsection {
28
- font-size: var(--font-size-16);
29
+ .tw-money-input.input-group-md .np-text-title-subsection,
30
+ .tw-money-input.input-group-md .wds-text-title-subsection {
31
+ font-size: var(--wds-font-size-body-large);
29
32
  }
30
33
  .tw-money-input .input-group-addon {
31
34
  flex-shrink: 0;
@@ -5,13 +5,14 @@
5
5
  .tw-money-input__fixed-currency {
6
6
  padding-left: 0 !important;
7
7
 
8
- .np-text-title-subsection {
8
+ .np-text-title-subsection,
9
+ .wds-text-title-subsection {
9
10
  color: var(--color-content-tertiary);
10
- font-weight: var(--font-weight-semi-bold);
11
+ font-weight: var(--wds-font-weight-body-bold);
11
12
  }
12
13
  }
13
14
 
14
- .money-input__number-input{
15
+ .money-input__number-input {
15
16
  [dir="rtl"] & {
16
17
  text-align: end;
17
18
  }
@@ -26,8 +27,9 @@
26
27
  .form-control {
27
28
  min-height: 34px;
28
29
  }
29
- .np-text-title-subsection {
30
- font-size: var(--font-size-14);
30
+ .np-text-title-subsection,
31
+ .wds-text-title-subsection {
32
+ font-size: var(--wds-font-size-body);
31
33
  }
32
34
  }
33
35
 
@@ -35,8 +37,9 @@
35
37
  .form-control {
36
38
  min-height: 53px;
37
39
  }
38
- .np-text-title-subsection {
39
- font-size: var(--font-size-16);
40
+ .np-text-title-subsection,
41
+ .wds-text-title-subsection {
42
+ font-size: var(--wds-font-size-body-large);
40
43
  }
41
44
  }
42
45
 
@@ -9,8 +9,8 @@
9
9
  --nudge-container-padding: var(--size-16);
10
10
  --nudge-content-flex-alignment: center;
11
11
  --nudge-title-color: var(--color-content-primary);
12
- --nudge-title-font-weight: var(--font-weight-semi-bold);
13
- --nudge-title-line-height: var(--line-height-title);
12
+ --nudge-title-font-weight: var(--wds-font-weight-body-bold);
13
+ --nudge-title-line-height: var(--wds-line-height-title-section);
14
14
  --nudge-control-width: var(--size-24);
15
15
  --nudge-control-background-color: var(--color-background-neutral);
16
16
  align-items: stretch;
@@ -141,7 +141,7 @@
141
141
  margin: 0;
142
142
  }
143
143
  .wds-nudge-container .wds-nudge-content .wds-nudge-link {
144
- font-weight: var(--font-weight-semi-bold);
144
+ font-weight: var(--wds-font-weight-body-bold);
145
145
  margin-block-start: var(--size-4);
146
146
  -webkit-text-decoration: var(--nudge-link-text-decoration);
147
147
  text-decoration: var(--nudge-link-text-decoration);
@@ -9,8 +9,8 @@
9
9
  --nudge-container-padding: var(--size-16);
10
10
  --nudge-content-flex-alignment: center;
11
11
  --nudge-title-color: var(--color-content-primary);
12
- --nudge-title-font-weight: var(--font-weight-semi-bold);
13
- --nudge-title-line-height: var(--line-height-title);
12
+ --nudge-title-font-weight: var(--wds-font-weight-body-bold);
13
+ --nudge-title-line-height: var(--wds-line-height-title-section);
14
14
  --nudge-control-width: var(--size-24);
15
15
  --nudge-control-background-color: var(--color-background-neutral);
16
16
 
@@ -120,7 +120,7 @@
120
120
  }
121
121
 
122
122
  .wds-nudge-link {
123
- font-weight: var(--font-weight-semi-bold);
123
+ font-weight: var(--wds-font-weight-body-bold);
124
124
  margin-top: var(--size-4);
125
125
  text-decoration: var(--nudge-link-text-decoration);
126
126
  }
@@ -22,7 +22,7 @@ const PocketCard = ({ variant }: { variant?: PocketVariant } = {}) => (
22
22
  {variant}
23
23
  </span>
24
24
  )}
25
- <strong className="np-text-title-screen" style={{ color: 'inherit' }}>
25
+ <strong className="wds-text-title-screen" style={{ color: 'inherit' }}>
26
26
  Some headline text
27
27
  </strong>
28
28
  <p style={{ margin: 0 }}>A bit of body copy</p>
@@ -227,7 +227,7 @@ export const ExposedTokens: Story = {
227
227
  <PocketSurface key={variant} pocket={variant}>
228
228
  <div className="p-a-3">
229
229
  <h4
230
- className="d-block m-b-2 text-capitalize np-text-title-body"
230
+ className="d-block m-b-2 text-capitalize wds-text-title-body"
231
231
  style={{ color: 'inherit' }}
232
232
  >
233
233
  {variant}
@@ -6,7 +6,7 @@
6
6
  }
7
7
  .np-popover__container .np-popover__content {
8
8
  color: var(--color-content-secondary);
9
- font-size: var(--font-size-14);
9
+ font-size: var(--wds-font-size-body);
10
10
  }
11
11
  .np-popover__container .np-popover__content p:last-child {
12
12
  margin-block-end: 0;
@@ -20,44 +20,8 @@
20
20
  padding: var(--size-24);
21
21
  }
22
22
  .np-popover__container.np-bottom-sheet .np-popover__title {
23
- margin: 0;
24
- color: var(--color-content-primary);
25
- word-wrap: break-word;
26
23
  margin-block-end: initial;
27
24
  }
28
- @supports (hyphenate-limit-chars: 1) {
29
- .np-popover__container.np-bottom-sheet .np-popover__title {
30
- hyphens: auto;
31
- hyphenate-limit-chars: 7 3;
32
- }
33
- @media (min-width: 840px) {
34
- .np-popover__container.np-bottom-sheet .np-popover__title {
35
- hyphenate-limit-chars: 8 3;
36
- }
37
- }
38
- @media (min-width: 1160px) {
39
- .np-popover__container.np-bottom-sheet .np-popover__title {
40
- hyphenate-limit-chars: 10 4 3;
41
- }
42
- }
43
- }
44
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
45
- .np-popover__container.np-bottom-sheet .np-popover__title {
46
- hyphens: auto;
47
- -webkit-hyphenate-limit-before: 3;
48
- -webkit-hyphenate-limit-after: 3;
49
- }
50
- @media (min-width: 1160px) {
51
- .np-popover__container.np-bottom-sheet .np-popover__title {
52
- -webkit-hyphenate-limit-before: 4;
53
- }
54
- }
55
- }
56
- .np-popover__container.np-bottom-sheet .np-popover__title + p,
57
- .np-popover__container.np-bottom-sheet .np-popover__title + ul:not(.list-unstyled),
58
- .np-popover__container.np-bottom-sheet .np-popover__title + ol:not(.list-unstyled) {
59
- margin-block-start: var(--size-8);
60
- }
61
25
  .np-popover__container.np-bottom-sheet .np-popover__content {
62
26
  padding-block: var(--size-32);
63
27
  padding-inline: var(--size-24);
@@ -10,7 +10,7 @@
10
10
 
11
11
  .np-popover__content {
12
12
  color: var(--color-content-secondary);
13
- font-size: var(--font-size-14);
13
+ font-size: var(--wds-font-size-body);
14
14
 
15
15
  p:last-child {
16
16
  margin-bottom: 0;
@@ -30,7 +30,7 @@
30
30
 
31
31
  &.np-bottom-sheet {
32
32
  .np-popover__title {
33
- .np-text-title-section();
33
+ .wds-text-title-section();
34
34
  }
35
35
 
36
36
  .np-popover__content {
@@ -1,9 +1,10 @@
1
- .np-progress-bar__title .h4 {
1
+ .np-progress-bar__title .h4,
2
+ .np-progress-bar__title .wds-text-title-body {
2
3
  color: var(--color-content-primary);
3
4
  margin-block-end: var(--size-4);
4
5
  }
5
6
  .np-progress-bar p {
6
7
  color: var(--color-content-primary);
7
8
  margin-block-start: var(--size-4);
8
- font-weight: var(--font-weight-semi-bold);
9
+ font-weight: var(--wds-font-weight-body-bold);
9
10
  }
@@ -1,14 +1,15 @@
1
1
  .np-progress-bar {
2
- &__title {
3
- .h4 {
4
- color: var(--color-content-primary);
5
- margin-bottom: var(--size-4);
6
- }
7
- }
8
-
9
- p {
2
+ &__title {
3
+ .h4,
4
+ .wds-text-title-body {
10
5
  color: var(--color-content-primary);
11
- margin-top: var(--size-4);
12
- font-weight: var(--font-weight-semi-bold);
6
+ margin-bottom: var(--size-4);
13
7
  }
14
- }
8
+ }
9
+
10
+ p {
11
+ color: var(--color-content-primary);
12
+ margin-top: var(--size-4);
13
+ font-weight: var(--wds-font-weight-body-bold);
14
+ }
15
+ }
@@ -21,7 +21,8 @@
21
21
  }
22
22
  .wds-prompt__media-wrapper {
23
23
  align-self: flex-start;
24
- padding-block-start: calc(var(--size-4) - 1px);
24
+ align-content: center;
25
+ min-block-size: calc(var(--wds-line-height-body) * var(--wds-font-size-body));
25
26
  }
26
27
  .wds-prompt__media-wrapper .tw-icon-tags,
27
28
  .wds-prompt__media-wrapper .tw-icon-confetti {
@@ -22,7 +22,8 @@
22
22
 
23
23
  &__media-wrapper {
24
24
  align-self: flex-start;
25
- padding-top: calc(var(--size-4) - 1px);
25
+ align-content: center;
26
+ min-height: calc(var(--wds-line-height-body) * var(--wds-font-size-body));
26
27
 
27
28
  .tw-icon-tags,
28
29
  .tw-icon-confetti {
@@ -564,7 +564,7 @@ export const ExposedTokens: Story = {
564
564
  }}
565
565
  >
566
566
  <h4
567
- className="d-block m-b-2 text-capitalize np-text-title-body"
567
+ className="d-block m-b-2 text-capitalize wds-text-title-body"
568
568
  style={{
569
569
  color: 'inherit',
570
570
  }}
@@ -15,7 +15,7 @@
15
15
  align-items: center;
16
16
  justify-content: space-between;
17
17
  text-align: start;
18
- font-size: var(--font-size-14);
18
+ font-size: var(--wds-font-size-body);
19
19
  margin-block: 0;
20
20
  margin-inline: var(--size-16);
21
21
  padding-block: var(--size-8);
@@ -21,7 +21,7 @@
21
21
  justify-content: space-between;
22
22
  text-align: left;
23
23
 
24
- font-size: var(--font-size-14);
24
+ font-size: var(--wds-font-size-body);
25
25
  margin: 0 var(--size-16);
26
26
  padding: var(--size-8) var(--size-16);
27
27
  width: calc(100% - var(--size-32));
@@ -73,7 +73,7 @@ const Stepper = ({ steps, activeStep = 0, className, testId }: StepperProps) =>
73
73
  className={clsx(
74
74
  'hidden-xs',
75
75
  'tw-stepper__step',
76
- active ? 'np-text-body-default-bold tw-stepper__step--active' : 'np-text-body-default',
76
+ active ? 'wds-text-body-default-bold tw-stepper__step--active' : 'wds-text-body-default',
77
77
  clickable && 'tw-stepper__step--clickable',
78
78
  step.hoverLabel && 'tw-stepper__step--has-tooltip',
79
79
  )}
@@ -50,7 +50,7 @@ const TableHeader = ({
50
50
  // If headers are empty, we still should render empty headers to keep visual consistency
51
51
  return (
52
52
  <div
53
- className="np-table-header-content np-text-body-default-bold"
53
+ className="np-table-header-content wds-text-body-default-bold"
54
54
  data-testid="np-table-empty-header"
55
55
  >
56
56
  &nbsp;
@@ -13,7 +13,7 @@ describe('TableStatusText Component', () => {
13
13
  it('renders the text and applies the default class', () => {
14
14
  renderComponent();
15
15
  expect(screen.getByText('Status Text')).toBeInTheDocument();
16
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default');
16
+ expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default');
17
17
  });
18
18
 
19
19
  it('applies the custom class name', () => {
@@ -23,12 +23,12 @@ describe('TableStatusText Component', () => {
23
23
 
24
24
  it('applies the default typography class when typography is not provided', () => {
25
25
  renderComponent();
26
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default');
26
+ expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default');
27
27
  });
28
28
 
29
29
  it('applies the typography class when typography equals `default-bold`', () => {
30
30
  renderComponent({ typography: 'default-bold' });
31
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default-bold');
31
+ expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default-bold');
32
32
  });
33
33
 
34
34
  it('does not render any icon when status is not provided', () => {
@@ -39,14 +39,14 @@ describe('TableStatusText Component', () => {
39
39
 
40
40
  it('applies the typography and status classes, renders the error icon when status equals `error`', () => {
41
41
  renderComponent({ status: 'error' });
42
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default-bold');
42
+ expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default-bold');
43
43
  expect(screen.getByText('Status Text')).toHaveClass('np-table-content--error');
44
44
  expect(screen.getByTestId('alert-icon')).toBeInTheDocument();
45
45
  });
46
46
 
47
47
  it('applies the typography and status classes, renders the success icon when status equals `success`', () => {
48
48
  renderComponent({ status: 'success' });
49
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default-bold');
49
+ expect(screen.getByText('Status Text')).toHaveClass('wds-text-body-default-bold');
50
50
  expect(screen.getByText('Status Text')).toHaveClass('np-table-content--success');
51
51
  expect(screen.getByTestId('check-icon')).toBeInTheDocument();
52
52
  });
@@ -37,10 +37,16 @@
37
37
  }
38
38
  .np-table-inner-container {
39
39
  background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
40
- background-position: left center, right center, left center, right center;
40
+ background-position: left center,
41
+ right center,
42
+ left center,
43
+ right center;
41
44
  background-repeat: no-repeat;
42
45
  background-color: var(--color-contrast-overlay);
43
- background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
46
+ background-size: 15px 100%,
47
+ 15px 100%,
48
+ 15px 100%,
49
+ 15px 100%;
44
50
  background-attachment: local, local, scroll, scroll;
45
51
  overflow-x: auto;
46
52
  border-radius: 10px;
@@ -130,7 +136,9 @@
130
136
  padding-inline-end: 0;
131
137
  }
132
138
  .np-table-header.np-table-header--right > .np-text-body-default,
133
- .np-table-cell.np-table-cell--right > .np-text-body-default {
139
+ .np-table-cell.np-table-cell--right > .np-text-body-default,
140
+ .np-table-header.np-table-header--right > .wds-text-body-default,
141
+ .np-table-cell.np-table-cell--right > .wds-text-body-default {
134
142
  text-align: end;
135
143
  }
136
144
  .np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
@@ -159,8 +167,8 @@
159
167
  padding-block-start: 5px;
160
168
  padding-block-end: 5px;
161
169
  white-space: nowrap;
162
- line-height: var(--line-height-22);
163
- letter-spacing: var(--letter-spacing-sm);
170
+ line-height: var(--wds-line-height-title-subsection);
171
+ letter-spacing: var(--wds-letter-spacing-title-subsection);
164
172
  }
165
173
  .np-table-header--error {
166
174
  color: var(--color-sentiment-negative);
@@ -180,7 +188,8 @@
180
188
  .np-table-cell--primary {
181
189
  min-inline-size: 200px;
182
190
  }
183
- .np-table-cell--currency .np-text-body-default {
191
+ .np-table-cell--currency .np-text-body-default,
192
+ .np-table-cell--currency .wds-text-body-default {
184
193
  white-space: nowrap;
185
194
  }
186
195
  .np-table-cell .tw-chevron {
@@ -193,7 +202,8 @@
193
202
  background-color: var(--color-background-neutral);
194
203
  padding: 0;
195
204
  }
196
- .np-table-cell .np-text-body-default-bold {
205
+ .np-table-cell .np-text-body-default-bold,
206
+ .np-table-cell .wds-text-body-default-bold {
197
207
  display: flex;
198
208
  align-items: center;
199
209
  color: var(--color-content-primary);
@@ -232,7 +242,7 @@
232
242
  .np-table-content-body {
233
243
  display: flex;
234
244
  flex-direction: column;
235
- font-size: var(--font-size-12);
245
+ font-size: var(--wds-font-size-nav);
236
246
  color: var(--color-content-tertiary);
237
247
  }
238
248
  .np-table-content--reversed {