@transferwise/components 0.0.0-experimental-74e7404 → 0.0.0-experimental-4560f77

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 (231) hide show
  1. package/build/Body/Body.js +1 -1
  2. package/build/Body/Body.js.map +1 -1
  3. package/build/Body/Body.mjs +1 -1
  4. package/build/Body/Body.mjs.map +1 -1
  5. package/build/Calendar/DayCalendar/Table/DayCalendarTable.js +1 -1
  6. package/build/Calendar/DayCalendar/Table/DayCalendarTable.js.map +1 -1
  7. package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs +1 -1
  8. package/build/Calendar/DayCalendar/Table/DayCalendarTable.mjs.map +1 -1
  9. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js +1 -1
  10. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.js.map +1 -1
  11. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs +1 -1
  12. package/build/Calendar/MonthCalendar/Table/MonthCalendarTable.mjs.map +1 -1
  13. package/build/Calendar/TableLink/TableLink.js +1 -1
  14. package/build/Calendar/TableLink/TableLink.js.map +1 -1
  15. package/build/Calendar/TableLink/TableLink.mjs +1 -1
  16. package/build/Calendar/TableLink/TableLink.mjs.map +1 -1
  17. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js +1 -1
  18. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js.map +1 -1
  19. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs +1 -1
  20. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs.map +1 -1
  21. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js +2 -2
  22. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -1
  23. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs +2 -2
  24. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -1
  25. package/build/Inputs/SelectInput/Option/SelectInputOption.js +1 -1
  26. package/build/Inputs/SelectInput/Option/SelectInputOption.js.map +1 -1
  27. package/build/Inputs/SelectInput/Option/SelectInputOption.mjs +1 -1
  28. package/build/Inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -1
  29. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js +3 -3
  30. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
  31. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +3 -3
  32. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
  33. package/build/Inputs/SelectInput/Popover/SelectInputPopover.js +2 -2
  34. package/build/Inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -1
  35. package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs +2 -2
  36. package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -1
  37. package/build/Label/Label.js +1 -1
  38. package/build/Label/Label.js.map +1 -1
  39. package/build/Label/Label.mjs +1 -1
  40. package/build/Label/Label.mjs.map +1 -1
  41. package/build/Stepper/Stepper.js +1 -1
  42. package/build/Stepper/Stepper.js.map +1 -1
  43. package/build/Stepper/Stepper.mjs +1 -1
  44. package/build/Stepper/Stepper.mjs.map +1 -1
  45. package/build/Table/Header/TableHeader.js +1 -1
  46. package/build/Table/Header/TableHeader.js.map +1 -1
  47. package/build/Table/Header/TableHeader.mjs +1 -1
  48. package/build/Table/Header/TableHeader.mjs.map +1 -1
  49. package/build/Tabs/Tab/Tab.js +1 -1
  50. package/build/Tabs/Tab/Tab.js.map +1 -1
  51. package/build/Tabs/Tab/Tab.mjs +1 -1
  52. package/build/Tabs/Tab/Tab.mjs.map +1 -1
  53. package/build/Tag/Tag.js +1 -1
  54. package/build/Tag/Tag.js.map +1 -1
  55. package/build/Tag/Tag.mjs +1 -1
  56. package/build/Tag/Tag.mjs.map +1 -1
  57. package/build/Typeahead/TypeaheadOption/TypeaheadOption.js +2 -2
  58. package/build/Typeahead/TypeaheadOption/TypeaheadOption.js.map +1 -1
  59. package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs +2 -2
  60. package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs.map +1 -1
  61. package/build/Upload/Steps/UploadImageStep/UploadImageStep.js +2 -2
  62. package/build/Upload/Steps/UploadImageStep/UploadImageStep.js.map +1 -1
  63. package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs +2 -2
  64. package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs.map +1 -1
  65. package/build/_deprecated/ActionButton/ActionButton.js +1 -1
  66. package/build/_deprecated/ActionButton/ActionButton.js.map +1 -1
  67. package/build/_deprecated/ActionButton/ActionButton.mjs +1 -1
  68. package/build/_deprecated/ActionButton/ActionButton.mjs.map +1 -1
  69. package/build/_deprecated/Avatar/Avatar.js +1 -1
  70. package/build/_deprecated/Avatar/Avatar.js.map +1 -1
  71. package/build/_deprecated/Avatar/Avatar.mjs +1 -1
  72. package/build/_deprecated/Avatar/Avatar.mjs.map +1 -1
  73. package/build/_deprecated/Select/Select.js +2 -2
  74. package/build/_deprecated/Select/Select.js.map +1 -1
  75. package/build/_deprecated/Select/Select.mjs +2 -2
  76. package/build/_deprecated/Select/Select.mjs.map +1 -1
  77. package/build/common/PropsValues/typography.js +6 -0
  78. package/build/common/PropsValues/typography.js.map +1 -1
  79. package/build/common/PropsValues/typography.mjs +6 -0
  80. package/build/common/PropsValues/typography.mjs.map +1 -1
  81. package/build/main.css +2907 -1535
  82. package/build/styles/Accordion/Accordion.css +2 -1
  83. package/build/styles/Body/Body.css +1 -1
  84. package/build/styles/Chips/Chip/Chip.css +4 -2
  85. package/build/styles/Decision/Decision.css +2 -1
  86. package/build/styles/Inputs/Input/Input.css +62 -66
  87. package/build/styles/Inputs/TextArea/TextArea.css +62 -66
  88. package/build/styles/MoneyInput/MoneyInput.css +6 -3
  89. package/build/styles/Popover/Popover.css +3 -47
  90. package/build/styles/ProgressBar/ProgressBar.css +2 -1
  91. package/build/styles/Table/Table.css +15 -5
  92. package/build/styles/Tile/Tile.css +2 -1
  93. package/build/styles/Typeahead/Typeahead.css +4 -2
  94. package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
  95. package/build/styles/_deprecated/Select/Select.css +44 -11
  96. package/build/styles/css/accordion.css +23 -52
  97. package/build/styles/css/button-groups.css +29 -8
  98. package/build/styles/css/buttons.css +26 -2
  99. package/build/styles/css/decision.css +23 -52
  100. package/build/styles/css/dropdowns.css +39 -62
  101. package/build/styles/css/droppable.css +28 -8
  102. package/build/styles/css/footer.css +41 -14
  103. package/build/styles/css/input-groups.css +172 -165
  104. package/build/styles/css/list-group.css +0 -45
  105. package/build/styles/css/navbar.css +39 -62
  106. package/build/styles/css/neptune-addons.css +15 -0
  107. package/build/styles/css/neptune-core.css +250 -526
  108. package/build/styles/css/neptune.css +2759 -1422
  109. package/build/styles/css/popovers.css +35 -60
  110. package/build/styles/css/sequences.css +6 -1
  111. package/build/styles/css/tooltip.css +27 -7
  112. package/build/styles/less/neptune-tokens.less +0 -48
  113. package/build/styles/main.css +2907 -1535
  114. package/build/styles/props/neptune-tokens.css +793 -1
  115. package/build/styles/styles/less/accordion.css +23 -52
  116. package/build/styles/styles/less/button-groups.css +29 -8
  117. package/build/styles/styles/less/buttons.css +26 -2
  118. package/build/styles/styles/less/decision.css +23 -52
  119. package/build/styles/styles/less/dropdowns.css +39 -62
  120. package/build/styles/styles/less/droppable.css +28 -8
  121. package/build/styles/styles/less/footer.css +41 -14
  122. package/build/styles/styles/less/forms/bootstrap-forms.css +137 -91
  123. package/build/styles/styles/less/input-groups.css +172 -165
  124. package/build/styles/styles/less/list-group.css +0 -45
  125. package/build/styles/styles/less/navbar.css +39 -62
  126. package/build/styles/styles/less/neptune-addons.css +15 -0
  127. package/build/styles/styles/less/neptune-core.css +250 -526
  128. package/build/styles/styles/less/neptune.css +2759 -1422
  129. package/build/styles/styles/less/popovers.css +35 -60
  130. package/build/styles/styles/less/sequences.css +6 -1
  131. package/build/styles/styles/less/tooltip.css +27 -7
  132. package/build/types/Body/Body.d.ts +2 -2
  133. package/build/types/IconButton/IconButton.d.ts +1 -1
  134. package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
  135. package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
  136. package/build/types/Title/Title.d.ts +2 -2
  137. package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
  138. package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
  139. package/build/types/common/PropsValues/typography.d.ts +13 -1
  140. package/build/types/common/PropsValues/typography.d.ts.map +1 -1
  141. package/package.json +1 -1
  142. package/src/Accordion/Accordion.css +2 -1
  143. package/src/Accordion/Accordion.less +2 -1
  144. package/src/Body/Body.css +1 -1
  145. package/src/Body/Body.less +1 -1
  146. package/src/Body/Body.test.tsx +4 -4
  147. package/src/Body/Body.tsx +2 -2
  148. package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
  149. package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
  150. package/src/Calendar/TableLink/TableLink.tsx +1 -1
  151. package/src/Chips/Chip/Chip.css +4 -2
  152. package/src/Chips/Chip/Chip.less +2 -1
  153. package/src/Decision/Decision.css +2 -1
  154. package/src/Decision/Decision.less +2 -1
  155. package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
  156. package/src/Display/_stories/Display.story.tsx +20 -6
  157. package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
  158. package/src/Inputs/Input/Input.css +62 -66
  159. package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +2 -2
  160. package/src/Inputs/SelectInput/Option/SelectInputOption.tsx +1 -1
  161. package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +3 -3
  162. package/src/Inputs/SelectInput/Popover/SelectInputPopover.tsx +2 -2
  163. package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
  164. package/src/Inputs/TextArea/TextArea.css +62 -66
  165. package/src/Inputs/_common.less +5 -5
  166. package/src/Label/Label.tsx +1 -1
  167. package/src/MoneyInput/MoneyInput.css +6 -3
  168. package/src/MoneyInput/MoneyInput.less +7 -4
  169. package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
  170. package/src/Popover/Popover.css +3 -47
  171. package/src/Popover/Popover.less +1 -1
  172. package/src/ProgressBar/ProgressBar.css +2 -1
  173. package/src/ProgressBar/ProgressBar.less +12 -11
  174. package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
  175. package/src/Stepper/Stepper.tsx +1 -1
  176. package/src/Table/Header/TableHeader.tsx +1 -1
  177. package/src/Table/StatusText/TableStatusText.test.tsx +5 -5
  178. package/src/Table/Table.css +15 -5
  179. package/src/Table/Table.less +17 -6
  180. package/src/Tabs/Tab/Tab.tsx +1 -1
  181. package/src/Tag/Tag.tsx +1 -1
  182. package/src/Tag/_stories/Tag.story.tsx +1 -1
  183. package/src/Tile/Tile.css +2 -1
  184. package/src/Tile/Tile.less +2 -1
  185. package/src/Typeahead/Typeahead.css +4 -2
  186. package/src/Typeahead/Typeahead.less +2 -1
  187. package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
  188. package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +2 -2
  189. package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
  190. package/src/_deprecated/Avatar/Avatar.tsx +1 -1
  191. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
  192. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +2 -1
  193. package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
  194. package/src/_deprecated/Select/Select.css +44 -11
  195. package/src/_deprecated/Select/Select.less +10 -5
  196. package/src/_deprecated/Select/Select.tsx +2 -2
  197. package/src/common/PropsValues/typography.ts +20 -1
  198. package/src/main.css +2907 -1535
  199. package/src/styles/less/accordion.css +23 -52
  200. package/src/styles/less/addons/_background-utilities.less +5 -0
  201. package/src/styles/less/button-groups.css +29 -8
  202. package/src/styles/less/button-groups.less +3 -2
  203. package/src/styles/less/buttons.css +26 -2
  204. package/src/styles/less/buttons.less +1 -1
  205. package/src/styles/less/core/_typography.less +67 -221
  206. package/src/styles/less/decision.css +23 -52
  207. package/src/styles/less/decision.less +2 -2
  208. package/src/styles/less/dropdowns.css +39 -62
  209. package/src/styles/less/dropdowns.less +6 -5
  210. package/src/styles/less/droppable.css +28 -8
  211. package/src/styles/less/droppable.less +4 -4
  212. package/src/styles/less/footer.css +41 -14
  213. package/src/styles/less/footer.less +4 -3
  214. package/src/styles/less/forms/bootstrap-forms.css +137 -91
  215. package/src/styles/less/forms/bootstrap-forms.less +70 -57
  216. package/src/styles/less/input-groups.css +172 -165
  217. package/src/styles/less/input-groups.less +5 -5
  218. package/src/styles/less/list-group.css +0 -45
  219. package/src/styles/less/list-group.less +7 -4
  220. package/src/styles/less/mixins/_text-emphasis.less +7 -1
  221. package/src/styles/less/navbar.css +39 -62
  222. package/src/styles/less/neptune-addons.css +15 -0
  223. package/src/styles/less/neptune-core.css +250 -526
  224. package/src/styles/less/neptune.bundle.less +4 -0
  225. package/src/styles/less/neptune.css +2759 -1422
  226. package/src/styles/less/popovers.css +35 -60
  227. package/src/styles/less/popovers.less +3 -3
  228. package/src/styles/less/sequences.css +6 -1
  229. package/src/styles/less/sequences.less +7 -2
  230. package/src/styles/less/tooltip.css +27 -7
  231. package/src/styles/less/tooltip.less +1 -1
@@ -1,4 +1,36 @@
1
- .close {
1
+ .popover,
2
+ .popover-content {
3
+ word-wrap: break-word;
4
+ }
5
+ @supports (hyphenate-limit-chars: 1) {
6
+ .popover,
7
+ .popover-content {
8
+ hyphens: auto;hyphenate-limit-chars: 7 3;
9
+ }
10
+ @media (min-width: 840px) {
11
+ .popover,
12
+ .popover-content {
13
+ hyphenate-limit-chars: 8 3;
14
+ }
15
+ }
16
+ @media (min-width: 1160px) {
17
+ .popover,
18
+ .popover-content {
19
+ hyphenate-limit-chars: 10 4 3;
20
+ }
21
+ }
22
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
23
+ .popover,
24
+ .popover-content {
25
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
26
+ }
27
+ @media (min-width: 1160px) {
28
+ .popover,
29
+ .popover-content {
30
+ -webkit-hyphenate-limit-before: 4;
31
+ }
32
+ }
33
+ }.close {
2
34
  float: inline-end;
3
35
  color: #0097c7;
4
36
  color: var(--color-content-accent);
@@ -66,12 +98,6 @@ button.close {
66
98
  word-break: normal;
67
99
  word-spacing: normal;
68
100
  word-wrap: normal;
69
- font-size: 0.875rem;
70
- font-size: var(--font-size-14);
71
- line-height: 155%;
72
- letter-spacing: -0.006em;
73
- font-weight: 400;
74
- font-weight: var(--font-weight-regular);
75
101
  word-wrap: break-word;
76
102
  background-color: #ffffff;
77
103
  background-color: var(--color-background-screen);
@@ -258,20 +284,8 @@ button.close {
258
284
  margin-inline: 0;
259
285
  }
260
286
  .popover-title {
261
- padding: 0;
262
287
  margin: 0;
263
- color: #37517e;
264
- color: var(--color-content-primary);
265
- line-height: 1.2;
266
- line-height: var(--line-height-title);
267
- letter-spacing: 0;
268
- word-wrap: break-word;
269
- font-size: 1.125rem;
270
- font-size: var(--font-size-18);
271
- font-weight: 600;
272
- font-weight: var(--font-weight-semi-bold);
273
- letter-spacing: -0.014em;
274
- line-height: 135%;
288
+ padding: 0;
275
289
  background-color: #ffffff;
276
290
  background-color: var(--color-background-screen);
277
291
  border-block-end: 0;
@@ -279,50 +293,11 @@ button.close {
279
293
  border-start-end-radius: 2px;
280
294
  border-end-end-radius: 0;
281
295
  border-end-start-radius: 0;
296
+ color: #37517e !important;
282
297
  color: var(--color-content-primary) !important;
283
298
  }
284
- @supports (hyphenate-limit-chars: 1) {
285
- .popover-title {
286
- hyphens: auto;
287
- hyphenate-limit-chars: 7 3;
288
- }
289
- @media (min-width: 840px) {
290
- .popover-title {
291
- hyphenate-limit-chars: 8 3;
292
- }
293
- }
294
- @media (min-width: 1160px) {
295
- .popover-title {
296
- hyphenate-limit-chars: 10 4 3;
297
- }
298
- }
299
- }
300
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
301
- .popover-title {
302
- hyphens: auto;
303
- -webkit-hyphenate-limit-before: 3;
304
- -webkit-hyphenate-limit-after: 3;
305
- }
306
- @media (min-width: 1160px) {
307
- .popover-title {
308
- -webkit-hyphenate-limit-before: 4;
309
- }
310
- }
311
- }
312
- .popover-title + p,
313
- .popover-title + ul:not(.list-unstyled),
314
- .popover-title + ol:not(.list-unstyled) {
315
- margin-block-start: 8px;
316
- margin-block-start: var(--size-8);
317
- }
318
299
  .popover-content {
319
300
  padding: 0;
320
- font-size: 0.875rem;
321
- font-size: var(--font-size-14);
322
- line-height: 155%;
323
- letter-spacing: -0.006em;
324
- font-weight: 400;
325
- font-weight: var(--font-weight-regular);
326
301
  word-wrap: break-word;
327
302
  color: #5d7079;
328
303
  color: var(--color-content-secondary);
@@ -131,6 +131,10 @@
131
131
  .sequence > li .h2,
132
132
  .sequence > li .h3,
133
133
  .sequence > li .h4,
134
+ .sequence > li .wds-text-title-screen,
135
+ .sequence > li .wds-text-title-section,
136
+ .sequence > li .wds-text-title-subsection,
137
+ .sequence > li .wds-text-title-body,
134
138
  .sequence > li .btn-toolbar {
135
139
  margin-block-end: 16px;
136
140
  }
@@ -221,7 +225,8 @@
221
225
  }
222
226
  .sequence-inverse > .active .small,
223
227
  .sequence-inverse > .active .body-2,
224
- .sequence-inverse > .active .np-text-body-default {
228
+ .sequence-inverse > .active .np-text-body-default,
229
+ .sequence-inverse > .active .wds-text-body-default {
225
230
  color: #5d7079;
226
231
  color: var(--color-content-secondary);
227
232
  }
@@ -1,4 +1,30 @@
1
- .tooltip {
1
+ .tooltip-inner {
2
+ word-wrap: break-word;
3
+ }
4
+ @supports (hyphenate-limit-chars: 1) {
5
+ .tooltip-inner {
6
+ hyphens: auto;hyphenate-limit-chars: 7 3;
7
+ }
8
+ @media (min-width: 840px) {
9
+ .tooltip-inner {
10
+ hyphenate-limit-chars: 8 3;
11
+ }
12
+ }
13
+ @media (min-width: 1160px) {
14
+ .tooltip-inner {
15
+ hyphenate-limit-chars: 10 4 3;
16
+ }
17
+ }
18
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
+ .tooltip-inner {
20
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
+ }
22
+ @media (min-width: 1160px) {
23
+ .tooltip-inner {
24
+ -webkit-hyphenate-limit-before: 4;
25
+ }
26
+ }
27
+ }.tooltip {
2
28
  position: absolute;
3
29
  z-index: 1070;
4
30
  display: block;
@@ -45,12 +71,6 @@
45
71
  padding-inline: 5px;
46
72
  }
47
73
  .tooltip-inner {
48
- font-size: 0.875rem;
49
- font-size: var(--font-size-14);
50
- line-height: 155%;
51
- letter-spacing: -0.006em;
52
- font-weight: 400;
53
- font-weight: var(--font-weight-regular);
54
74
  word-wrap: break-word;
55
75
  max-inline-size: 200px;
56
76
  min-inline-size: 120px;
@@ -11,7 +11,7 @@ export type BodyProps = HTMLAttributes<HTMLSpanElement | HTMLParagraphElement> &
11
11
  */
12
12
  preserveNewlines?: boolean;
13
13
  };
14
- declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement | HTMLParagraphElement> & {
14
+ declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement | HTMLSpanElement> & {
15
15
  /** @default 'body-default' */
16
16
  type?: BodyTypes;
17
17
  /** @default 'div' */
@@ -21,6 +21,6 @@ declare const Body: import("react").ForwardRefExoticComponent<HTMLAttributes<HTM
21
21
  * @default false
22
22
  */
23
23
  preserveNewlines?: boolean;
24
- } & import("react").RefAttributes<HTMLDivElement | HTMLSpanElement | HTMLParagraphElement | null>>;
24
+ } & import("react").RefAttributes<HTMLDivElement | HTMLParagraphElement | HTMLSpanElement | null>>;
25
25
  export default Body;
26
26
  //# sourceMappingURL=Body.d.ts.map
@@ -16,6 +16,6 @@ declare const IconButton: import("react").ForwardRefExoticComponent<{
16
16
  /** @default 'default' */
17
17
  type?: "default" | "negative";
18
18
  'data-testid'?: string;
19
- } & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href"> & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "onClick"> & Pick<HTMLAttributes<HTMLDivElement>, "children" | "className" | "id" | "tabIndex" | "role" | "aria-label"> & import("react").RefAttributes<unknown>>;
19
+ } & Pick<AnchorHTMLAttributes<HTMLAnchorElement>, "onClick" | "target" | "href"> & Pick<ButtonHTMLAttributes<HTMLButtonElement>, "disabled" | "onClick"> & Pick<HTMLAttributes<HTMLDivElement>, "id" | "className" | "tabIndex" | "role" | "aria-label" | "children"> & import("react").RefAttributes<unknown>>;
20
20
  export default IconButton;
21
21
  //# sourceMappingURL=IconButton.d.ts.map
@@ -55,6 +55,7 @@ declare const _default: import("react").FC<{
55
55
  selectProps?: Partial<SelectInputProps<CurrencyOptionItem>> | undefined;
56
56
  amount: number | null;
57
57
  searchPlaceholder?: string | undefined;
58
+ decimals?: number | undefined;
58
59
  currencies: readonly CurrencyItem[];
59
60
  selectedCurrency: CurrencyOptionItem;
60
61
  onCurrencyChange?: ((value: CurrencyOptionItem) => void) | undefined;
@@ -66,7 +67,6 @@ declare const _default: import("react").FC<{
66
67
  }) => void) | undefined;
67
68
  customActionLabel?: import("react").ReactNode;
68
69
  onCustomAction?: (() => void) | undefined;
69
- decimals?: number | undefined;
70
70
  }>;
71
71
  export default _default;
72
72
  //# sourceMappingURL=MoneyInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MoneyInput.d.ts","sourceRoot":"","sources":["../../../src/MoneyInput/MoneyInput.tsx"],"names":[],"mappings":"AAIA,OAAO,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SAAS,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAC5D;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,kCAAkC,GAAG,eAAe,GAC9D,OAAO,CAAC,wBAAwB,CAAC,CAAC;;SA5B7B,MAAM;wBACS,MAAM;YAMnB,SAAS,GAAG,UAAU,GAAG,SAAS;kBAF3B,MAAM;iBAYP,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;kBACrB,OAAO,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,CAAC;YAZnD,MAAM,GAAG,IAAI;wBAID,MAAM;eAcf,MAAM;gBAtBL,SAAS,YAAY,EAAE;sBACjB,kBAAkB;wBACjB,CAAC,KAAK,EAAE,kBAAkB,KAAK,IAAI;sBAIrC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI;;sBAM9B,CAAC,KAAK,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,YAAY,EAAE,CAAA;KAAE,KAAK,IAAI;;sBAEzE,MAAM,IAAI;;AAkb7B,wBAA2F"}
@@ -10,7 +10,7 @@ export type TitleProps = LabelHTMLAttributes<HTMLHeadingElement | HTMLSpanElemen
10
10
  */
11
11
  type?: TitleTypes;
12
12
  };
13
- declare const Title: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLSpanElement | HTMLHeadingElement | HTMLLabelElement> & React.LiHTMLAttributes<HTMLLIElement> & {
13
+ declare const Title: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLHeadingElement | HTMLLabelElement | HTMLSpanElement> & React.LiHTMLAttributes<HTMLLIElement> & {
14
14
  /**
15
15
  * Default value will based one `type` prop
16
16
  */
@@ -19,6 +19,6 @@ declare const Title: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<H
19
19
  * Default value: {@link DEFAULT_TYPE}
20
20
  */
21
21
  type?: TitleTypes;
22
- } & React.RefAttributes<HTMLSpanElement | HTMLHeadingElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement>>;
22
+ } & React.RefAttributes<HTMLHeadingElement | HTMLLabelElement | HTMLLegendElement | HTMLLIElement | HTMLSpanElement>>;
23
23
  export default Title;
24
24
  //# sourceMappingURL=Title.d.ts.map
@@ -15,7 +15,7 @@ export default class UploadImageStep extends PureComponent<UploadImageStepProps>
15
15
  uploadInputRef: import("react").RefObject<HTMLInputElement>;
16
16
  onManualUpload: () => void;
17
17
  onKeyDown: (event: React.KeyboardEvent<HTMLLabelElement>) => void;
18
- getImage: () => number | true | import("react").JSX.Element | Iterable<import("react").ReactNode>;
18
+ getImage: () => number | true | Iterable<import("react").ReactNode> | import("react").JSX.Element;
19
19
  render(): import("react").JSX.Element;
20
20
  }
21
21
  //# sourceMappingURL=UploadImageStep.d.ts.map
@@ -5,5 +5,5 @@ export declare const UploadItemLink: import("react").ForwardRefExoticComponent<{
5
5
  singleFileUpload: boolean;
6
6
  } & {
7
7
  children?: import("react").ReactNode | undefined;
8
- } & import("react").RefAttributes<HTMLDivElement | HTMLAnchorElement>>;
8
+ } & import("react").RefAttributes<HTMLAnchorElement | HTMLDivElement>>;
9
9
  //# sourceMappingURL=UploadItemLink.d.ts.map
@@ -6,7 +6,13 @@ export declare enum Typography {
6
6
  DISPLAY_LARGE = "display-large",
7
7
  DISPLAY_MEDIUM = "display-medium",
8
8
  DISPLAY_SMALL = "display-small",
9
+ /**
10
+ * @deprecated Use {@link Typography.DISPLAY_NUMBER_SMALL} instead.
11
+ */
9
12
  DISPLAY_NUMBER = "display-number",
13
+ DISPLAY_NUMBER_SMALL = "display-number-small",
14
+ DISPLAY_NUMBER_MEDIUM = "display-number-medium",
15
+ DISPLAY_NUMBER_LARGE = "display-number-large",
10
16
  TITLE_SCREEN = "title-screen",
11
17
  TITLE_SECTION = "title-section",
12
18
  TITLE_SUBSECTION = "title-subsection",
@@ -26,8 +32,14 @@ export type DisplayExtraLarge = 'display-extra-large';
26
32
  export type DisplayLarge = 'display-large';
27
33
  export type DisplayMedium = 'display-medium';
28
34
  export type DisplaySmall = 'display-small';
35
+ /**
36
+ * @deprecated Use {@link DisplayNumberSmall} instead.
37
+ */
29
38
  export type DisplayNumber = 'display-number';
30
- export type DisplayTypes = DisplayExtraLarge | DisplayLarge | DisplayMedium | DisplaySmall | DisplayNumber;
39
+ export type DisplayNumberSmall = 'display-number-small';
40
+ export type DisplayNumberMedium = 'display-number-medium';
41
+ export type DisplayNumberLarge = 'display-number-large';
42
+ export type DisplayTypes = DisplayExtraLarge | DisplayLarge | DisplayMedium | DisplaySmall | DisplayNumber | DisplayNumberSmall | DisplayNumberMedium | DisplayNumberLarge;
31
43
  export type TitleScreen = 'title-screen';
32
44
  export type TitleSection = 'title-section';
33
45
  export type TitleSubsection = 'title-subsection';
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/common/PropsValues/typography.ts"],"names":[],"mappings":"AAAA,oBAAY,UAAU;IACpB;;OAEG;IACH,mBAAmB,wBAAwB;IAC3C,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IAEjC,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;IAC/B,gBAAgB,qBAAqB;IACrC,UAAU,eAAe;IACzB,WAAW,gBAAgB;IAE3B,UAAU,eAAe;IACzB,YAAY,iBAAiB;IAC7B,iBAAiB,sBAAsB;IACvC,eAAe,oBAAoB;IAEnC,UAAU,eAAe;IACzB,YAAY,iBAAiB;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AACtD,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAC3C,MAAM,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GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAC9C,MAAM,MAAM,eAAe,GAAG,mBAAmB,CAAC;AAClD,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC;AAErC,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,WAAW,GAAG,SAAS,GAAG,eAAe,CAAC;AAElF,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC;AAErC,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAEhD,MAAM,MAAM,eAAe,GACvB,WAAW,GACX,YAAY,GACZ,eAAe,GACf,SAAS,GACT,UAAU,GACV,WAAW,GACX,aAAa,GACb,eAAe,GACf,SAAS,GACT,WAAW,GACX,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-74e7404",
3
+ "version": "0.0.0-experimental-4560f77",
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 {
@@ -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
  }
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
  />
@@ -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>
@@ -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 },
@@ -134,12 +134,14 @@
134
134
  .np-theme-personal .np-chip.np-chip--removable {
135
135
  position: relative;
136
136
  }
137
- .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
137
+ .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold,
138
+ .np-theme-personal .np-chip.np-chip--removable .wds-text-body-default-bold {
138
139
  padding-inline-end: 24px;
139
140
  padding-inline-end: var(--size-24);
140
141
  }
141
142
  @media (max-width: 320px) {
142
- .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
143
+ .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold,
144
+ .np-theme-personal .np-chip.np-chip--removable .wds-text-body-default-bold {
143
145
  padding-inline-end: 48px;
144
146
  padding-inline-end: var(--size-48);
145
147
  }
@@ -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) {
@@ -1,7 +1,8 @@
1
1
  .np-decision .decision {
2
2
  display: flex;
3
3
  }
4
- .np-decision__tile--small .np-text-title-subsection {
4
+ .np-decision__tile--small .np-text-title-subsection,
5
+ .np-decision__tile--small .wds-text-title-subsection {
5
6
  font-size: 1rem;
6
7
  font-size: var(--font-size-16);
7
8
  line-height: 1.2;
@@ -4,7 +4,8 @@
4
4
  }
5
5
 
6
6
  &__tile--small {
7
- .np-text-title-subsection {
7
+ .np-text-title-subsection,
8
+ .wds-text-title-subsection {
8
9
  font-size: var(--font-size-16);
9
10
  line-height: var(--line-height-title);
10
11
  }
@@ -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
  {
@@ -118,27 +118,41 @@ export const Basic = () => {
118
118
  export const Numbers = () => {
119
119
  return (
120
120
  <>
121
- <Title type={Typography.TITLE_SCREEN}>Display Number</Title>
121
+ <Title type={Typography.TITLE_SCREEN}>Display Number Small</Title>
122
122
  <hr />
123
- <Display type={Typography.DISPLAY_NUMBER}>
123
+ <Display type={Typography.DISPLAY_NUMBER_SMALL}>
124
124
  <Money amount={1050.6} currency="UAH" />
125
125
  </Display>
126
126
  <hr />
127
- <Display type={Typography.DISPLAY_NUMBER}>
127
+ <Display type={Typography.DISPLAY_NUMBER_SMALL}>
128
128
  <Money amount={10.17} currency="JPY" />
129
129
  </Display>
130
+
131
+ <Title type={Typography.TITLE_SCREEN}>Display Number Medium</Title>
130
132
  <hr />
131
- <Display type={Typography.DISPLAY_NUMBER}>
133
+ <Display type={Typography.DISPLAY_NUMBER_MEDIUM}>
132
134
  <Money amount={0.01} currency="EUR" />
133
135
  </Display>
134
136
  <hr />
135
- <Display type={Typography.DISPLAY_NUMBER}>
137
+ <Display type={Typography.DISPLAY_NUMBER_MEDIUM}>
136
138
  <Money amount={1000000} currency="EUR" />
137
139
  </Display>
140
+
141
+ <Title type={Typography.TITLE_SCREEN}>Display Number Large</Title>
138
142
  <hr />
139
- <Display type={Typography.DISPLAY_NUMBER}>
143
+ <Display type={Typography.DISPLAY_NUMBER_LARGE}>
140
144
  <Money amount={1000000} currency="GBP" />
141
145
  </Display>
146
+ <hr />
147
+ <Display type={Typography.DISPLAY_NUMBER_LARGE}>
148
+ <Money amount={1050.6} currency="UAH" />
149
+ </Display>
150
+
151
+ <Title type={Typography.TITLE_SCREEN}>Display Number (Deprecated)</Title>
152
+ <hr />
153
+ <Display type={Typography.DISPLAY_NUMBER}>
154
+ <Money amount={1050.6} currency="UAH" />
155
+ </Display>
142
156
  </>
143
157
  );
144
158
  };
@@ -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)}