@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
@@ -1 +1 @@
1
- {"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../../src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAezE,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C,GAAG,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAC;AAE/C,eAAO,MAAM,WAAW,GAAI,uFASzB,gBAAgB,gCAmTlB,CAAC"}
1
+ {"version":3,"file":"AmountInput.d.ts","sourceRoot":"","sources":["../../../../src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAezE,KAAK,gBAAgB,GAAG;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC5C,GAAG,IAAI,CAAC,yBAAyB,EAAE,SAAS,CAAC,CAAC;AAE/C,eAAO,MAAM,WAAW,GAAI,uFASzB,gBAAgB,gCAgTlB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-7a793eb",
3
+ "version": "0.0.0-experimental-97fe512",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -9,7 +9,8 @@
9
9
  background-color: transparent;
10
10
  }
11
11
  .np-accordion-item.np-accordion-item--dark .media-body,
12
- .np-accordion-item.np-accordion-item--dark .np-text-title-body {
12
+ .np-accordion-item.np-accordion-item--dark .np-text-title-body,
13
+ .np-accordion-item.np-accordion-item--dark .wds-text-title-body {
13
14
  color: #ffffff;
14
15
  }
15
16
  .np-accordion-item__content {
@@ -23,7 +24,7 @@
23
24
  }
24
25
  }
25
26
  .np-accordion-item .np-option .np-option__title {
26
- font-weight: var(--font-weight-semi-bold);
27
+ font-weight: var(--wds-font-weight-body-bold);
27
28
  }
28
29
  .np-theme-personal .np-accordion-item--with-media .media {
29
30
  display: flex;
@@ -38,13 +39,13 @@
38
39
  align-items: flex-start;
39
40
  }
40
41
  .np-theme-personal .np-accordion-item .decision__title {
41
- font-size: var(--font-size-18);
42
+ font-size: var(--wds-line-height-title-body);
42
43
  }
43
44
  .np-theme-personal .np-accordion-item .np-option .np-option__title {
44
45
  margin-block-end: 0;
45
- font-size: var(--font-size-18);
46
- letter-spacing: var(--letter-spacing-negative-xs);
47
- line-height: var(--line-height-24);
46
+ font-size: var(--wds-line-height-title-body);
47
+ letter-spacing: var(--wds-letter-spacing-title-body);
48
+ line-height: var(--wds-line-height-title-body);
48
49
  }
49
50
  .np-theme-personal .np-accordion-item .np-option .circle-sm {
50
51
  background-color: transparent;
@@ -17,7 +17,8 @@
17
17
 
18
18
  &.np-accordion-item--dark {
19
19
  .media-body,
20
- .np-text-title-body {
20
+ .np-text-title-body,
21
+ .wds-text-title-body {
21
22
  color: @color-navy-content-primary;
22
23
  }
23
24
  }
@@ -35,7 +36,7 @@
35
36
 
36
37
  .np-option {
37
38
  .np-option__title {
38
- font-weight: var(--font-weight-semi-bold);
39
+ font-weight: var(--wds-font-weight-body-bold);
39
40
  }
40
41
  }
41
42
 
@@ -57,15 +58,15 @@
57
58
  }
58
59
 
59
60
  .decision__title {
60
- font-size: var(--font-size-18);
61
+ font-size: var(--wds-line-height-title-body);
61
62
  }
62
63
 
63
64
  .np-option {
64
65
  .np-option__title {
65
66
  margin-bottom: 0;
66
- font-size: var(--font-size-18);
67
- letter-spacing: var(--letter-spacing-negative-xs);
68
- line-height: var(--line-height-24);
67
+ font-size: var(--wds-line-height-title-body);
68
+ letter-spacing: var(--wds-letter-spacing-title-body);
69
+ line-height: var(--wds-line-height-title-body);
69
70
  }
70
71
 
71
72
  .circle-sm {
package/src/Body/Body.css CHANGED
@@ -1,3 +1,3 @@
1
- .np-text--pre-line {
1
+ .wds-text--pre-line {
2
2
  white-space: pre-line;
3
3
  }
@@ -1,3 +1,3 @@
1
- .np-text--pre-line {
1
+ .wds-text--pre-line {
2
2
  white-space: pre-line;
3
3
  }
@@ -9,7 +9,7 @@ describe('Body', () => {
9
9
  const copy = screen.getByText('Test');
10
10
  expect(copy).toBeInTheDocument();
11
11
  expect(copy.tagName).toBe('DIV');
12
- expect(copy).toHaveClass(`np-text-${Typography.BODY_DEFAULT}`);
12
+ expect(copy).toHaveClass(`wds-text-${Typography.BODY_DEFAULT}`);
13
13
  });
14
14
 
15
15
  it('enforces tag via `as` prop', () => {
@@ -17,7 +17,7 @@ describe('Body', () => {
17
17
  const copy = screen.getByText('Test');
18
18
  expect(copy).toBeInTheDocument();
19
19
  expect(copy.tagName).toBe('P');
20
- expect(copy).toHaveClass(`np-text-${Typography.BODY_DEFAULT}`);
20
+ expect(copy).toHaveClass(`wds-text-${Typography.BODY_DEFAULT}`);
21
21
  });
22
22
 
23
23
  it('supports native HTML attrs', () => {
@@ -35,7 +35,7 @@ describe('Body', () => {
35
35
  it('renders newlines as line breaks when preserveNewlines is true', () => {
36
36
  render(<Body preserveNewlines>{'Line 1.\nLine 2'}</Body>);
37
37
  const copy = screen.getByText(/Line 1\.\s*Line 2/);
38
- expect(copy).toHaveClass('np-text--pre-line');
38
+ expect(copy).toHaveClass('wds-text--pre-line');
39
39
  expect(copy).toHaveTextContent('Line 1.');
40
40
  expect(copy).toHaveTextContent('Line 2');
41
41
  });
@@ -47,6 +47,6 @@ describe('Body', () => {
47
47
  const copy = screen.getByText('Test');
48
48
  expect(copy).toBeInTheDocument();
49
49
  expect(copy.tagName).toBe('DIV');
50
- expect(copy).toHaveClass(`np-text-${Typography.BODY_DEFAULT}`);
50
+ expect(copy).toHaveClass(`wds-text-${Typography.BODY_DEFAULT}`);
51
51
  });
52
52
  });
package/src/Body/Body.tsx CHANGED
@@ -41,8 +41,8 @@ const Body = forwardRef(function Body(
41
41
  // See: https://fettblog.eu/typescript-react-generic-forward-refs/
42
42
  ref={reference}
43
43
  className={clsx(
44
- `np-text-${isTypeSupported ? type : DEFAULT_TYPE}`,
45
- preserveNewlines && 'np-text--pre-line',
44
+ `wds-text-${isTypeSupported ? type : DEFAULT_TYPE}`,
45
+ preserveNewlines && 'wds-text--pre-line',
46
46
  className,
47
47
  )}
48
48
  />
@@ -7,7 +7,7 @@
7
7
  border: transparent;
8
8
  border-radius: var(--radius-small);
9
9
  background-color: transparent;
10
- font-weight: var(--font-weight-semi-bold);
10
+ font-weight: var(--wds-font-weight-title-screen);
11
11
  color: var(--color-content-primary);
12
12
  }
13
13
  @media (max-width: 320px) {
@@ -89,10 +89,11 @@
89
89
  text-decoration-color: var(--color-content-tertiary);
90
90
  }
91
91
  .wds-Calendar__option--day {
92
- block-size: var(--size-40);
92
+ --circleSize: var(--size-40);
93
+ block-size: var(--circleSize);
94
+ line-height: var(--circleSize);
95
+ inline-size: var(--circleSize);
93
96
  border-radius: var(--radius-full);
94
- line-height: var(--size-40);
95
- inline-size: var(--size-40);
96
97
  padding: 0;
97
98
  display: inline-flex;
98
99
  align-items: center;
@@ -104,6 +105,12 @@
104
105
  text-decoration-thickness: 2px;
105
106
  text-underline-offset: 4px;
106
107
  }
108
+ .wds-Calendar__option--year {
109
+ display: inline-flex;
110
+ align-items: center;
111
+ justify-content: center;
112
+ block-size: calc(1rlh * 1.6);
113
+ }
107
114
  .tw-date-lookup-calendar {
108
115
  min-inline-size: 300px;
109
116
  text-align: center;
@@ -134,8 +134,8 @@ class DayCalendarTable extends PureComponent<DayCalendarTableProps> {
134
134
  key={day}
135
135
  className={
136
136
  index > 4
137
- ? 'text-xs-center np-text-body-default'
138
- : 'text-xs-center np-text-body-default-bold'
137
+ ? 'text-xs-center wds-text-body-default'
138
+ : 'text-xs-center wds-text-body-default-bold'
139
139
  }
140
140
  >
141
141
  <span className="hidden-xs">
@@ -76,7 +76,7 @@ const MonthCalendarTable = ({
76
76
  })();
77
77
 
78
78
  return (
79
- <table className="table table-condensed table-bordered tw-date-lookup-calendar np-text-body-default-bold m-b-0">
79
+ <table className="table table-condensed table-bordered tw-date-lookup-calendar wds-text-body-default-bold m-b-0">
80
80
  <thead className="sr-only">
81
81
  <tr>
82
82
  <th colSpan={COLS}>{placeholder}</th>
@@ -7,7 +7,7 @@
7
7
  border: transparent;
8
8
  border-radius: var(--radius-small);
9
9
  background-color: transparent;
10
- font-weight: var(--font-weight-semi-bold);
10
+ font-weight: var(--wds-font-weight-title-screen);
11
11
  color: var(--color-content-primary);
12
12
  }
13
13
  @media (max-width: 320px) {
@@ -89,10 +89,11 @@
89
89
  text-decoration-color: var(--color-content-tertiary);
90
90
  }
91
91
  .wds-Calendar__option--day {
92
- block-size: var(--size-40);
92
+ --circleSize: var(--size-40);
93
+ block-size: var(--circleSize);
94
+ line-height: var(--circleSize);
95
+ inline-size: var(--circleSize);
93
96
  border-radius: var(--radius-full);
94
- line-height: var(--size-40);
95
- inline-size: var(--size-40);
96
97
  padding: 0;
97
98
  display: inline-flex;
98
99
  align-items: center;
@@ -104,3 +105,9 @@
104
105
  text-decoration-thickness: 2px;
105
106
  text-underline-offset: 4px;
106
107
  }
108
+ .wds-Calendar__option--year {
109
+ display: inline-flex;
110
+ align-items: center;
111
+ justify-content: center;
112
+ block-size: calc(1rlh * 1.6);
113
+ }
@@ -11,7 +11,7 @@
11
11
  border: transparent;
12
12
  border-radius: var(--radius-small);
13
13
  background-color: transparent;
14
- font-weight: var(--font-weight-semi-bold);
14
+ font-weight: var(--wds-font-weight-title-screen);
15
15
  color: var(--color-content-primary);
16
16
 
17
17
  &:focus {
@@ -51,10 +51,11 @@
51
51
  }
52
52
 
53
53
  .wds-Calendar__option--day {
54
- height: var(--size-40);
54
+ --circleSize: var(--size-40);
55
+ height: var(--circleSize);
56
+ line-height: var(--circleSize);
57
+ width: var(--circleSize);
55
58
  border-radius: var(--radius-full);
56
- line-height: var(--size-40);
57
- width: var(--size-40);
58
59
  padding: 0;
59
60
  display: inline-flex;
60
61
  align-items: center;
@@ -66,3 +67,12 @@
66
67
  text-underline-offset: 4px;
67
68
  }
68
69
  }
70
+
71
+ .wds-Calendar__option--year{
72
+ display: inline-flex;
73
+ align-items: center;
74
+ justify-content: center;
75
+ height: calc(1rlh * 1.6);
76
+ }
77
+
78
+
@@ -96,7 +96,7 @@ const TableLink = ({
96
96
  aria-pressed={active}
97
97
  className={clsx(
98
98
  `wds-Calendar__option--${type}`,
99
- `tw-date-lookup-${type}-option np-text-body-default-bold`,
99
+ `tw-date-lookup-${type}-option wds-text-body-default-bold`,
100
100
  { active: !!active },
101
101
  { today: !!today },
102
102
  { disabled: !!isUnavailable },
@@ -70,7 +70,7 @@
70
70
  border-color: var(--color-sentiment-negative-active) !important;
71
71
  }
72
72
  .np-theme-personal .np-chip {
73
- font-weight: var(--font-weight-semi-bold);
73
+ font-weight: var(--wds-font-weight-body-bold);
74
74
  color: var(--color-interactive-primary);
75
75
  padding-block: 0;
76
76
  padding-inline: var(--size-16);
@@ -114,11 +114,13 @@
114
114
  .np-theme-personal .np-chip.np-chip--removable {
115
115
  position: relative;
116
116
  }
117
- .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
117
+ .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold,
118
+ .np-theme-personal .np-chip.np-chip--removable .wds-text-body-default-bold {
118
119
  padding-inline-end: var(--size-24);
119
120
  }
120
121
  @media (max-width: 320px) {
121
- .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
122
+ .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold,
123
+ .np-theme-personal .np-chip.np-chip--removable .wds-text-body-default-bold {
122
124
  padding-inline-end: var(--size-48);
123
125
  }
124
126
  }
@@ -90,7 +90,7 @@
90
90
  }
91
91
 
92
92
  .np-theme-personal & {
93
- font-weight: var(--font-weight-semi-bold);
93
+ font-weight: var(--wds-font-weight-body-bold);
94
94
  color: var(--color-interactive-primary);
95
95
  padding: 0 var(--size-16);
96
96
  border-color: var(--color-interactive-secondary);
@@ -137,7 +137,8 @@
137
137
  &.np-chip--removable {
138
138
  position: relative;
139
139
 
140
- .np-text-body-default-bold {
140
+ .np-text-body-default-bold,
141
+ .wds-text-body-default-bold {
141
142
  padding-right: var(--size-24);
142
143
 
143
144
  @media (--screen-400-zoom) {
@@ -232,13 +232,8 @@ export const SentimentAwareness: Story = {
232
232
  style={{ display: 'flex', alignItems: 'center', padding: '8px 0', gap: '8px' }}
233
233
  >
234
234
  <div
235
- style={{
236
- width: '120px',
237
- fontSize: '11px',
238
- fontWeight: 'bold',
239
- textAlign: 'left',
240
- paddingLeft: '8px',
241
- }}
235
+ className="wds-text-body-default-bold p-l-1 text-align-left"
236
+ style={{ width: '12ch' }}
242
237
  >
243
238
  {sentiment} (base)
244
239
  </div>
@@ -246,7 +241,7 @@ export const SentimentAwareness: Story = {
246
241
  <div
247
242
  key={button.label}
248
243
  style={{
249
- width: '100px',
244
+ width: '13ch',
250
245
  display: 'flex',
251
246
  justifyContent: 'center',
252
247
  }}
@@ -270,13 +265,8 @@ export const SentimentAwareness: Story = {
270
265
  style={{ display: 'flex', alignItems: 'center', padding: '8px 0', gap: '8px' }}
271
266
  >
272
267
  <div
273
- style={{
274
- width: '120px',
275
- fontSize: '11px',
276
- fontWeight: 'bold',
277
- textAlign: 'left',
278
- paddingLeft: '8px',
279
- }}
268
+ className="wds-text-body-default-bold p-l-1 text-align-left"
269
+ style={{ width: '12ch' }}
280
270
  >
281
271
  {sentiment} (elevated)
282
272
  </div>
@@ -284,7 +274,7 @@ export const SentimentAwareness: Story = {
284
274
  <div
285
275
  key={button.label}
286
276
  style={{
287
- width: '100px',
277
+ width: '13ch',
288
278
  display: 'flex',
289
279
  justifyContent: 'center',
290
280
  }}
@@ -1,9 +1,10 @@
1
1
  .np-decision .decision {
2
2
  display: flex;
3
3
  }
4
- .np-decision__tile--small .np-text-title-subsection {
5
- font-size: var(--font-size-16);
6
- line-height: var(--line-height-title);
4
+ .np-decision__tile--small .np-text-title-subsection,
5
+ .np-decision__tile--small .wds-text-title-subsection {
6
+ font-size: var(--wds-font-size-body-large);
7
+ line-height: var(--wds-line-height-body-large);
7
8
  }
8
9
  .np-decision:not(.flex-column) {
9
10
  gap: var(--size-24);
@@ -4,9 +4,10 @@
4
4
  }
5
5
 
6
6
  &__tile--small {
7
- .np-text-title-subsection {
8
- font-size: var(--font-size-16);
9
- line-height: var(--line-height-title);
7
+ .np-text-title-subsection,
8
+ .wds-text-title-subsection {
9
+ font-size: var(--wds-font-size-body-large);
10
+ line-height: var(--wds-line-height-body-large);
10
11
  }
11
12
  }
12
13
 
@@ -32,7 +32,7 @@ const definitions = [
32
32
  },
33
33
  {
34
34
  title: 'Use wrapper elements to style',
35
- value: <span className="np-text-title-subsection">89.45GBP</span>,
35
+ value: <span className="wds-text-title-subsection">89.45GBP</span>,
36
36
  key: 'second',
37
37
  },
38
38
  {
@@ -1,5 +1,5 @@
1
1
  .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
  .emphasis--important {
@@ -1,5 +1,5 @@
1
1
  .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
 
@@ -2,6 +2,7 @@
2
2
  inline-size: 100%;
3
3
  }
4
4
  .wds-amount-input-input-container {
5
+ font-family: var(--wds-font-family-display-number);
5
6
  display: flex;
6
7
  justify-content: right;
7
8
  inline-size: 100%;
@@ -36,5 +37,5 @@
36
37
  flex-grow: 0;
37
38
  display: flex;
38
39
  align-items: center;
39
- line-height: inherit;
40
+ line-height: 1em;
40
41
  }
@@ -4,6 +4,7 @@
4
4
  }
5
5
 
6
6
  &-input-container {
7
+ font-family: var(--wds-font-family-display-number);
7
8
  display: flex;
8
9
  justify-content: right;
9
10
  width: 100%;
@@ -47,6 +48,6 @@
47
48
  flex-grow: 0;
48
49
  display: flex;
49
50
  align-items: center;
50
- line-height: inherit;
51
+ line-height: 1em;
51
52
  }
52
53
  }
@@ -297,10 +297,7 @@ export const AmountInput = ({
297
297
 
298
298
  return (
299
299
  <div className="wds-amount-input-container" dir="ltr">
300
- <div
301
- className={clsx('wds-amount-input-input-container', 'np-text-display-large--forced')}
302
- style={style}
303
- >
300
+ <div className={clsx('wds-amount-input-input-container')} style={style}>
304
301
  <input
305
302
  ref={ref}
306
303
  dir="auto"
@@ -2,6 +2,7 @@
2
2
  inline-size: 100%;
3
3
  }
4
4
  .wds-amount-input-input-container {
5
+ font-family: var(--wds-font-family-display-number);
5
6
  display: flex;
6
7
  justify-content: right;
7
8
  inline-size: 100%;
@@ -36,7 +37,7 @@
36
37
  flex-grow: 0;
37
38
  display: flex;
38
39
  align-items: center;
39
- line-height: inherit;
40
+ line-height: 1em;
40
41
  }
41
42
  .wds-currency-selector:disabled {
42
43
  opacity: 1 !important;
@@ -40,7 +40,7 @@ const AnimatedLabel = ({ activeLabel, className, steps }: AnimatedLabelProps) =>
40
40
  className={clsx(
41
41
  'np-animated-label',
42
42
  'btn-unstyled',
43
- 'np-text-body-large-bold',
43
+ 'wds-text-body-large-bold',
44
44
  className,
45
45
  )}
46
46
  onClick={() => setShowSteps(true)}
@@ -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-input::-moz-placeholder {
252
216
  color: var(--color-content-tertiary);
@@ -122,9 +122,9 @@ export function SelectInputBottomSheet({
122
122
  )}
123
123
  >
124
124
  {title ? (
125
- <h2 className="np-bottom-sheet-v2-title np-text-title-body">{title}</h2>
125
+ <h2 className="np-bottom-sheet-v2-title wds-text-title-body">{title}</h2>
126
126
  ) : null}
127
- <div className="np-bottom-sheet-v2-body np-text-body-default">
127
+ <div className="np-bottom-sheet-v2-body wds-text-body-default">
128
128
  {children}
129
129
  </div>
130
130
  </div>
@@ -34,7 +34,7 @@ export function SelectInputOption<T = string>({
34
34
  disabled={disabled}
35
35
  className={({ active, disabled: uiDisabled }) =>
36
36
  clsx(
37
- 'np-select-input-option-container np-text-body-large',
37
+ 'np-select-input-option-container wds-text-body-large',
38
38
  active && 'np-select-input-option-container--active',
39
39
  uiDisabled && 'np-select-input-option-container--disabled',
40
40
  )
@@ -28,7 +28,7 @@ export function SelectInputOptionContent({
28
28
  <div
29
29
  className={clsx(
30
30
  'np-select-input-option-content-container',
31
- (note || description) && 'np-text-body-large',
31
+ (note || description) && 'wds-text-body-large',
32
32
  className,
33
33
  )}
34
34
  >
@@ -52,7 +52,7 @@ export function SelectInputOptionContent({
52
52
  >
53
53
  <div className="d-inline np-select-input-option-content-title">{title}</div>
54
54
  {note ? (
55
- <span className="np-select-input-option-content-text-secondary np-text-body-default">
55
+ <span className="np-select-input-option-content-text-secondary wds-text-body-default">
56
56
  {note}
57
57
  </span>
58
58
  ) : null}
@@ -61,7 +61,7 @@ export function SelectInputOptionContent({
61
61
  {description ? (
62
62
  <div
63
63
  className={clsx(
64
- 'np-select-input-option-content-text-secondary np-text-body-default',
64
+ 'np-select-input-option-content-text-secondary wds-text-body-default',
65
65
  withinTrigger &&
66
66
  'np-select-input-option-content-text-within-trigger np-select-input-option-description-in-trigger',
67
67
  )}
@@ -124,9 +124,9 @@ export function SelectInputPopover({
124
124
  })}
125
125
  >
126
126
  {title ? (
127
- <h2 className="np-popover-v2-title np-text-title-body">{title}</h2>
127
+ <h2 className="np-popover-v2-title wds-text-title-body">{title}</h2>
128
128
  ) : null}
129
- <div className="np-popover-v2-content np-text-body-default">{children}</div>
129
+ <div className="np-popover-v2-content wds-text-body-default">{children}</div>
130
130
  </div>
131
131
  </div>
132
132
  </FloatingFocusManager>