@transferwise/components 0.0.0-experimental-d2b800e → 0.0.0-experimental-34034f2

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 (156) 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 +117 -98
  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 +0 -38
  87. package/build/styles/Inputs/TextArea/TextArea.css +0 -38
  88. package/build/styles/MoneyInput/MoneyInput.css +6 -3
  89. package/build/styles/Popover/Popover.css +0 -38
  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 +17 -4
  96. package/build/styles/main.css +117 -98
  97. package/build/types/common/PropsValues/typography.d.ts +13 -1
  98. package/build/types/common/PropsValues/typography.d.ts.map +1 -1
  99. package/package.json +1 -1
  100. package/src/Accordion/Accordion.css +2 -1
  101. package/src/Accordion/Accordion.less +2 -1
  102. package/src/Body/Body.css +1 -1
  103. package/src/Body/Body.less +1 -1
  104. package/src/Body/Body.test.tsx +4 -4
  105. package/src/Body/Body.tsx +2 -2
  106. package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
  107. package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
  108. package/src/Calendar/TableLink/TableLink.tsx +1 -1
  109. package/src/Chips/Chip/Chip.css +4 -2
  110. package/src/Chips/Chip/Chip.less +2 -1
  111. package/src/Decision/Decision.css +2 -1
  112. package/src/Decision/Decision.less +2 -1
  113. package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
  114. package/src/Display/_stories/Display.story.tsx +20 -6
  115. package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
  116. package/src/Inputs/Input/Input.css +0 -38
  117. package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +2 -2
  118. package/src/Inputs/SelectInput/Option/SelectInputOption.tsx +1 -1
  119. package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +3 -3
  120. package/src/Inputs/SelectInput/Popover/SelectInputPopover.tsx +2 -2
  121. package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
  122. package/src/Inputs/TextArea/TextArea.css +0 -38
  123. package/src/Inputs/_common.less +5 -5
  124. package/src/Label/Label.tsx +1 -1
  125. package/src/MoneyInput/MoneyInput.css +6 -3
  126. package/src/MoneyInput/MoneyInput.less +7 -4
  127. package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
  128. package/src/Popover/Popover.css +0 -38
  129. package/src/Popover/Popover.less +1 -1
  130. package/src/ProgressBar/ProgressBar.css +2 -1
  131. package/src/ProgressBar/ProgressBar.less +12 -11
  132. package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
  133. package/src/Stepper/Stepper.tsx +1 -1
  134. package/src/Table/Header/TableHeader.tsx +1 -1
  135. package/src/Table/StatusText/TableStatusText.test.tsx +5 -5
  136. package/src/Table/Table.css +15 -5
  137. package/src/Table/Table.less +17 -6
  138. package/src/Tabs/Tab/Tab.tsx +1 -1
  139. package/src/Tag/Tag.tsx +1 -1
  140. package/src/Tag/_stories/Tag.story.tsx +1 -1
  141. package/src/Tile/Tile.css +2 -1
  142. package/src/Tile/Tile.less +2 -1
  143. package/src/Typeahead/Typeahead.css +4 -2
  144. package/src/Typeahead/Typeahead.less +2 -1
  145. package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
  146. package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +2 -2
  147. package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
  148. package/src/_deprecated/Avatar/Avatar.tsx +1 -1
  149. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
  150. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +2 -1
  151. package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
  152. package/src/_deprecated/Select/Select.css +17 -4
  153. package/src/_deprecated/Select/Select.less +10 -5
  154. package/src/_deprecated/Select/Select.tsx +2 -2
  155. package/src/common/PropsValues/typography.ts +20 -1
  156. package/src/main.css +117 -98
@@ -180,12 +180,14 @@
180
180
  .np-theme-personal .typeahead .np-chip {
181
181
  margin-block-start: 9px !important;
182
182
  }
183
- .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
183
+ .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold,
184
+ .np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
184
185
  padding-inline-end: 16px;
185
186
  padding-inline-end: var(--size-16);
186
187
  }
187
188
  @media (max-width: 320px) {
188
- .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
189
+ .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold,
190
+ .np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
189
191
  padding-inline-end: 32px;
190
192
  padding-inline-end: var(--size-32);
191
193
  }
@@ -8,7 +8,8 @@
8
8
  color: var(--color-sentiment-content-primary);
9
9
  margin-block-end: 0;
10
10
  }
11
- .critical-comms .alert .np-text-title-body {
11
+ .critical-comms .alert .np-text-title-body,
12
+ .critical-comms .alert .wds-text-title-body {
12
13
  color: var(--color-sentiment-content-primary);
13
14
  }
14
15
  .critical-comms .status-circle.negative {
@@ -250,8 +250,12 @@
250
250
  .np-dropdown-menu > .selected > a strong {
251
251
  color: inherit;
252
252
  }
253
+ .np-dropdown-menu > .active > a .body-2,
254
+ .np-dropdown-menu > .selected > a .body-2,
253
255
  .np-dropdown-menu > .active > a .np-text-body-default,
254
- .np-dropdown-menu > .selected > a .np-text-body-default {
256
+ .np-dropdown-menu > .selected > a .np-text-body-default,
257
+ .np-dropdown-menu > .active > a .wds-text-body-default,
258
+ .np-dropdown-menu > .selected > a .wds-text-body-default {
255
259
  color: #c9cbce;
256
260
  }
257
261
  .np-dropdown-menu .np-select-filter,
@@ -291,7 +295,9 @@
291
295
  vertical-align: middle;
292
296
  }
293
297
  .np-select .np-text-body-default,
294
- .np-dropdown-menu .np-text-body-default {
298
+ .np-dropdown-menu .np-text-body-default,
299
+ .np-select .wds-text-body-default,
300
+ .np-dropdown-menu .wds-text-body-default {
295
301
  color: #5d7079;
296
302
  color: var(--color-content-secondary);
297
303
  }
@@ -352,7 +358,13 @@
352
358
  .np-theme-personal .np-dropdown-menu .active a:focus .np-text-body-default,
353
359
  .np-theme-personal .np-dropdown-menu .selected a:focus .np-text-body-default,
354
360
  .np-theme-personal .np-dropdown-menu .active a:hover .np-text-body-default,
355
- .np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default {
361
+ .np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default,
362
+ .np-theme-personal .np-dropdown-menu .active a .wds-text-body-default,
363
+ .np-theme-personal .np-dropdown-menu .selected a .wds-text-body-default,
364
+ .np-theme-personal .np-dropdown-menu .active a:focus .wds-text-body-default,
365
+ .np-theme-personal .np-dropdown-menu .selected a:focus .wds-text-body-default,
366
+ .np-theme-personal .np-dropdown-menu .active a:hover .wds-text-body-default,
367
+ .np-theme-personal .np-dropdown-menu .selected a:hover .wds-text-body-default {
356
368
  color: var(--color-interactive-primary);
357
369
  }
358
370
  .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active {
@@ -360,7 +372,8 @@
360
372
  background-color: var(--color-background-neutral-active) !important;
361
373
  }
362
374
  .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .body-2,
363
- .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default {
375
+ .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default,
376
+ .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .wds-text-body-default {
364
377
  color: var(--color-interactive-primary);
365
378
  }
366
379
  .np-theme-personal .np-dropdown-menu .np-dropdown-item {
@@ -22035,7 +22035,8 @@ a[data-toggle="tooltip"] {
22035
22035
  color: var(--color-sentiment-content-primary);
22036
22036
  margin-block-end: 0;
22037
22037
  }
22038
- .critical-comms .alert .np-text-title-body {
22038
+ .critical-comms .alert .np-text-title-body,
22039
+ .critical-comms .alert .wds-text-title-body {
22039
22040
  color: var(--color-sentiment-content-primary);
22040
22041
  }
22041
22042
  .critical-comms .status-circle.negative {
@@ -22099,7 +22100,8 @@ a[data-toggle="tooltip"] {
22099
22100
  background-color: transparent;
22100
22101
  }
22101
22102
  .np-accordion-item.np-accordion-item--dark .media-body,
22102
- .np-accordion-item.np-accordion-item--dark .np-text-title-body {
22103
+ .np-accordion-item.np-accordion-item--dark .np-text-title-body,
22104
+ .np-accordion-item.np-accordion-item--dark .wds-text-title-body {
22103
22105
  color: #ffffff;
22104
22106
  }
22105
22107
  .np-accordion-item__content {
@@ -22748,7 +22750,7 @@ a[data-toggle="tooltip"] {
22748
22750
  border-width: 1px;
22749
22751
  border-color: var(--badge-border-color);
22750
22752
  }
22751
- .np-text--pre-line {
22753
+ .wds-text--pre-line {
22752
22754
  white-space: pre-line;
22753
22755
  }
22754
22756
  .wds-Button {
@@ -23599,12 +23601,14 @@ a[data-toggle="tooltip"] {
23599
23601
  .np-theme-personal .np-chip.np-chip--removable {
23600
23602
  position: relative;
23601
23603
  }
23602
- .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
23604
+ .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold,
23605
+ .np-theme-personal .np-chip.np-chip--removable .wds-text-body-default-bold {
23603
23606
  padding-inline-end: 24px;
23604
23607
  padding-inline-end: var(--size-24);
23605
23608
  }
23606
23609
  @media (max-width: 320px) {
23607
- .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold {
23610
+ .np-theme-personal .np-chip.np-chip--removable .np-text-body-default-bold,
23611
+ .np-theme-personal .np-chip.np-chip--removable .wds-text-body-default-bold {
23608
23612
  padding-inline-end: 48px;
23609
23613
  padding-inline-end: var(--size-48);
23610
23614
  }
@@ -24196,7 +24200,8 @@ button.np-option {
24196
24200
  .np-decision .decision {
24197
24201
  display: flex;
24198
24202
  }
24199
- .np-decision__tile--small .np-text-title-subsection {
24203
+ .np-decision__tile--small .np-text-title-subsection,
24204
+ .np-decision__tile--small .wds-text-title-subsection {
24200
24205
  font-size: 1rem;
24201
24206
  font-size: var(--font-size-16);
24202
24207
  line-height: 1.2;
@@ -24676,6 +24681,16 @@ button.np-option {
24676
24681
  --ring-color: var(--color-interactive-primary);
24677
24682
  }
24678
24683
  .np-form-control--size-auto {
24684
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
24685
+ font-family: var(--wds-font-family-regular);
24686
+ font-weight: 400;
24687
+ font-weight: var(--wds-font-weight-body-large-regular);
24688
+ font-size: 1rem;
24689
+ font-size: var(--wds-font-size-body-large);
24690
+ line-height: 1.5;
24691
+ line-height: var(--wds-line-height-body-large);
24692
+ letter-spacing: -0.011em;
24693
+ letter-spacing: var(--wds-letter-spacing-body-large);
24679
24694
  word-wrap: break-word;
24680
24695
  padding-block-start: 12px;
24681
24696
  padding-block-start: var(--size-12);
@@ -24717,6 +24732,16 @@ button.np-option {
24717
24732
  padding-block-end: 0 !important;
24718
24733
  }
24719
24734
  .np-form-control--size-sm {
24735
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
24736
+ font-family: var(--wds-font-family-regular);
24737
+ font-weight: 400;
24738
+ font-weight: var(--wds-font-weight-body-regular);
24739
+ font-size: 0.875rem;
24740
+ font-size: var(--wds-font-size-body);
24741
+ line-height: 1.55;
24742
+ line-height: var(--wds-line-height-body);
24743
+ letter-spacing: -0.006em;
24744
+ letter-spacing: var(--wds-letter-spacing-body);
24720
24745
  word-wrap: break-word;
24721
24746
  block-size: 32px !important;
24722
24747
  block-size: var(--size-32) !important;
@@ -24756,6 +24781,16 @@ button.np-option {
24756
24781
  }
24757
24782
  }
24758
24783
  .np-form-control--size-md {
24784
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
24785
+ font-family: var(--wds-font-family-regular);
24786
+ font-weight: 400;
24787
+ font-weight: var(--wds-font-weight-body-large-regular);
24788
+ font-size: 1rem;
24789
+ font-size: var(--wds-font-size-body-large);
24790
+ line-height: 1.5;
24791
+ line-height: var(--wds-line-height-body-large);
24792
+ letter-spacing: -0.011em;
24793
+ letter-spacing: var(--wds-letter-spacing-body-large);
24759
24794
  word-wrap: break-word;
24760
24795
  block-size: 48px !important;
24761
24796
  block-size: var(--size-48) !important;
@@ -24795,48 +24830,20 @@ button.np-option {
24795
24830
  }
24796
24831
  }
24797
24832
  .np-form-control--size-lg {
24798
- margin: 0;
24799
- color: #37517e;
24800
- color: var(--color-content-primary);
24801
- word-wrap: break-word;
24833
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
24834
+ font-family: var(--wds-font-family-regular);
24835
+ font-weight: 600;
24836
+ font-weight: var(--wds-font-weight-title-subsection);
24837
+ font-size: 1.375rem;
24838
+ font-size: var(--wds-font-size-title-subsection);
24839
+ line-height: 1.25;
24840
+ line-height: var(--wds-line-height-title-subsection);
24841
+ letter-spacing: -0.018em;
24842
+ letter-spacing: var(--wds-letter-spacing-title-subsection);
24802
24843
  margin-block-end: initial;
24803
24844
  block-size: 72px !important;
24804
24845
  block-size: var(--size-72) !important;
24805
24846
  }
24806
- @supports (hyphenate-limit-chars: 1) {
24807
- .np-form-control--size-lg {
24808
- hyphens: auto;
24809
- hyphenate-limit-chars: 7 3;
24810
- }
24811
- @media (min-width: 840px) {
24812
- .np-form-control--size-lg {
24813
- hyphenate-limit-chars: 8 3;
24814
- }
24815
- }
24816
- @media (min-width: 1160px) {
24817
- .np-form-control--size-lg {
24818
- hyphenate-limit-chars: 10 4 3;
24819
- }
24820
- }
24821
- }
24822
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
24823
- .np-form-control--size-lg {
24824
- hyphens: auto;
24825
- -webkit-hyphenate-limit-before: 3;
24826
- -webkit-hyphenate-limit-after: 3;
24827
- }
24828
- @media (min-width: 1160px) {
24829
- .np-form-control--size-lg {
24830
- -webkit-hyphenate-limit-before: 4;
24831
- }
24832
- }
24833
- }
24834
- .np-form-control--size-lg + p,
24835
- .np-form-control--size-lg + ul:not(.list-unstyled),
24836
- .np-form-control--size-lg + ol:not(.list-unstyled) {
24837
- margin-block-start: 8px;
24838
- margin-block-start: var(--size-8);
24839
- }
24840
24847
  .np-input::-moz-placeholder {
24841
24848
  color: #768e9c;
24842
24849
  color: var(--color-content-tertiary);
@@ -26474,7 +26481,8 @@ button.np-link {
26474
26481
  .tw-money-input .tw-money-input__fixed-currency {
26475
26482
  padding-inline-start: 0 !important;
26476
26483
  }
26477
- .tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection {
26484
+ .tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection,
26485
+ .tw-money-input .tw-money-input__fixed-currency .wds-text-title-subsection {
26478
26486
  color: #768e9c;
26479
26487
  color: var(--color-content-tertiary);
26480
26488
  font-weight: 600;
@@ -26490,14 +26498,16 @@ button.np-link {
26490
26498
  .tw-money-input.input-group-sm .form-control {
26491
26499
  min-block-size: 34px;
26492
26500
  }
26493
- .tw-money-input.input-group-sm .np-text-title-subsection {
26501
+ .tw-money-input.input-group-sm .np-text-title-subsection,
26502
+ .tw-money-input.input-group-sm .wds-text-title-subsection {
26494
26503
  font-size: 0.875rem;
26495
26504
  font-size: var(--font-size-14);
26496
26505
  }
26497
26506
  .tw-money-input.input-group-md .form-control {
26498
26507
  min-block-size: 53px;
26499
26508
  }
26500
- .tw-money-input.input-group-md .np-text-title-subsection {
26509
+ .tw-money-input.input-group-md .np-text-title-subsection,
26510
+ .tw-money-input.input-group-md .wds-text-title-subsection {
26501
26511
  font-size: 1rem;
26502
26512
  font-size: var(--font-size-16);
26503
26513
  }
@@ -26883,46 +26893,18 @@ button.np-link {
26883
26893
  padding: var(--size-24);
26884
26894
  }
26885
26895
  .np-popover__container.np-bottom-sheet .np-popover__title {
26886
- margin: 0;
26887
- color: #37517e;
26888
- color: var(--color-content-primary);
26889
- word-wrap: break-word;
26896
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
26897
+ font-family: var(--wds-font-family-regular);
26898
+ font-weight: 600;
26899
+ font-weight: var(--wds-font-weight-title-section);
26900
+ font-size: 1.625rem;
26901
+ font-size: var(--wds-font-size-title-section);
26902
+ line-height: 1.22;
26903
+ line-height: var(--wds-line-height-title-section);
26904
+ letter-spacing: -0.02em;
26905
+ letter-spacing: var(--wds-letter-spacing-title-section);
26890
26906
  margin-block-end: initial;
26891
26907
  }
26892
- @supports (hyphenate-limit-chars: 1) {
26893
- .np-popover__container.np-bottom-sheet .np-popover__title {
26894
- hyphens: auto;
26895
- hyphenate-limit-chars: 7 3;
26896
- }
26897
- @media (min-width: 840px) {
26898
- .np-popover__container.np-bottom-sheet .np-popover__title {
26899
- hyphenate-limit-chars: 8 3;
26900
- }
26901
- }
26902
- @media (min-width: 1160px) {
26903
- .np-popover__container.np-bottom-sheet .np-popover__title {
26904
- hyphenate-limit-chars: 10 4 3;
26905
- }
26906
- }
26907
- }
26908
- @supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
26909
- .np-popover__container.np-bottom-sheet .np-popover__title {
26910
- hyphens: auto;
26911
- -webkit-hyphenate-limit-before: 3;
26912
- -webkit-hyphenate-limit-after: 3;
26913
- }
26914
- @media (min-width: 1160px) {
26915
- .np-popover__container.np-bottom-sheet .np-popover__title {
26916
- -webkit-hyphenate-limit-before: 4;
26917
- }
26918
- }
26919
- }
26920
- .np-popover__container.np-bottom-sheet .np-popover__title + p,
26921
- .np-popover__container.np-bottom-sheet .np-popover__title + ul:not(.list-unstyled),
26922
- .np-popover__container.np-bottom-sheet .np-popover__title + ol:not(.list-unstyled) {
26923
- margin-block-start: 8px;
26924
- margin-block-start: var(--size-8);
26925
- }
26926
26908
  .np-popover__container.np-bottom-sheet .np-popover__content {
26927
26909
  padding-block: 32px;
26928
26910
  padding-block: var(--size-32);
@@ -27967,6 +27949,16 @@ button.np-link {
27967
27949
  border-radius: var(--radius-small);
27968
27950
  color: #37517e;
27969
27951
  color: var(--color-content-primary);
27952
+ font-family: 'Inter', Helvetica, Arial, sans-serif;
27953
+ font-family: var(--wds-font-family-regular);
27954
+ font-weight: 400;
27955
+ font-weight: var(--wds-font-weight-body-regular);
27956
+ font-size: 0.875rem;
27957
+ font-size: var(--wds-font-size-body);
27958
+ line-height: 1.55;
27959
+ line-height: var(--wds-line-height-body);
27960
+ letter-spacing: -0.006em;
27961
+ letter-spacing: var(--wds-letter-spacing-body);
27970
27962
  word-wrap: break-word;
27971
27963
  }
27972
27964
  .np-theme-personal .np-dropdown-menu > li > a {
@@ -28045,8 +28037,12 @@ button.np-link {
28045
28037
  .np-dropdown-menu > .selected > a strong {
28046
28038
  color: inherit;
28047
28039
  }
28040
+ .np-dropdown-menu > .active > a .body-2,
28041
+ .np-dropdown-menu > .selected > a .body-2,
28048
28042
  .np-dropdown-menu > .active > a .np-text-body-default,
28049
- .np-dropdown-menu > .selected > a .np-text-body-default {
28043
+ .np-dropdown-menu > .selected > a .np-text-body-default,
28044
+ .np-dropdown-menu > .active > a .wds-text-body-default,
28045
+ .np-dropdown-menu > .selected > a .wds-text-body-default {
28050
28046
  color: #c9cbce;
28051
28047
  }
28052
28048
  .np-dropdown-menu .np-select-filter,
@@ -28086,7 +28082,9 @@ button.np-link {
28086
28082
  vertical-align: middle;
28087
28083
  }
28088
28084
  .np-select .np-text-body-default,
28089
- .np-dropdown-menu .np-text-body-default {
28085
+ .np-dropdown-menu .np-text-body-default,
28086
+ .np-select .wds-text-body-default,
28087
+ .np-dropdown-menu .wds-text-body-default {
28090
28088
  color: #5d7079;
28091
28089
  color: var(--color-content-secondary);
28092
28090
  }
@@ -28147,7 +28145,13 @@ button.np-link {
28147
28145
  .np-theme-personal .np-dropdown-menu .active a:focus .np-text-body-default,
28148
28146
  .np-theme-personal .np-dropdown-menu .selected a:focus .np-text-body-default,
28149
28147
  .np-theme-personal .np-dropdown-menu .active a:hover .np-text-body-default,
28150
- .np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default {
28148
+ .np-theme-personal .np-dropdown-menu .selected a:hover .np-text-body-default,
28149
+ .np-theme-personal .np-dropdown-menu .active a .wds-text-body-default,
28150
+ .np-theme-personal .np-dropdown-menu .selected a .wds-text-body-default,
28151
+ .np-theme-personal .np-dropdown-menu .active a:focus .wds-text-body-default,
28152
+ .np-theme-personal .np-dropdown-menu .selected a:focus .wds-text-body-default,
28153
+ .np-theme-personal .np-dropdown-menu .active a:hover .wds-text-body-default,
28154
+ .np-theme-personal .np-dropdown-menu .selected a:hover .wds-text-body-default {
28151
28155
  color: var(--color-interactive-primary);
28152
28156
  }
28153
28157
  .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active {
@@ -28155,7 +28159,8 @@ button.np-link {
28155
28159
  background-color: var(--color-background-neutral-active) !important;
28156
28160
  }
28157
28161
  .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .body-2,
28158
- .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default {
28162
+ .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .np-text-body-default,
28163
+ .np-theme-personal .np-dropdown-menu li:not(.active):not(.selected):not(:has(input)) a:not([disabled]):not(.disabled):active .wds-text-body-default {
28159
28164
  color: var(--color-interactive-primary);
28160
28165
  }
28161
28166
  .np-theme-personal .np-dropdown-menu .np-dropdown-item {
@@ -28580,10 +28585,16 @@ button.np-link {
28580
28585
  }
28581
28586
  .np-table-inner-container {
28582
28587
  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));
28583
- background-position: left center, right center, left center, right center;
28588
+ background-position: left center,
28589
+ right center,
28590
+ left center,
28591
+ right center;
28584
28592
  background-repeat: no-repeat;
28585
28593
  background-color: var(--color-contrast-overlay);
28586
- background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
28594
+ background-size: 15px 100%,
28595
+ 15px 100%,
28596
+ 15px 100%,
28597
+ 15px 100%;
28587
28598
  background-attachment: local, local, scroll, scroll;
28588
28599
  overflow-x: auto;
28589
28600
  border-radius: 10px;
@@ -28680,7 +28691,9 @@ button.np-link {
28680
28691
  padding-inline-end: 0;
28681
28692
  }
28682
28693
  .np-table-header.np-table-header--right > .np-text-body-default,
28683
- .np-table-cell.np-table-cell--right > .np-text-body-default {
28694
+ .np-table-cell.np-table-cell--right > .np-text-body-default,
28695
+ .np-table-header.np-table-header--right > .wds-text-body-default,
28696
+ .np-table-cell.np-table-cell--right > .wds-text-body-default {
28684
28697
  text-align: end;
28685
28698
  }
28686
28699
  .np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
@@ -28739,7 +28752,8 @@ button.np-link {
28739
28752
  .np-table-cell--primary {
28740
28753
  min-inline-size: 200px;
28741
28754
  }
28742
- .np-table-cell--currency .np-text-body-default {
28755
+ .np-table-cell--currency .np-text-body-default,
28756
+ .np-table-cell--currency .wds-text-body-default {
28743
28757
  white-space: nowrap;
28744
28758
  }
28745
28759
  .np-table-cell .tw-chevron {
@@ -28756,7 +28770,8 @@ button.np-link {
28756
28770
  background-color: var(--color-background-neutral);
28757
28771
  padding: 0;
28758
28772
  }
28759
- .np-table-cell .np-text-body-default-bold {
28773
+ .np-table-cell .np-text-body-default-bold,
28774
+ .np-table-cell .wds-text-body-default-bold {
28760
28775
  display: flex;
28761
28776
  align-items: center;
28762
28777
  color: #37517e;
@@ -28874,7 +28889,8 @@ button.np-link {
28874
28889
  .np-theme-personal .np-tile.decision:active {
28875
28890
  background-color: var(--color-background-neutral-active);
28876
28891
  }
28877
- .np-theme-personal .np-tile.decision .np-text-body-default {
28892
+ .np-theme-personal .np-tile.decision .np-text-body-default,
28893
+ .np-theme-personal .np-tile.decision .wds-text-body-default {
28878
28894
  color: #5d7079;
28879
28895
  color: var(--color-content-secondary);
28880
28896
  }
@@ -29143,12 +29159,14 @@ button.np-link {
29143
29159
  .np-theme-personal .typeahead .np-chip {
29144
29160
  margin-block-start: 9px !important;
29145
29161
  }
29146
- .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
29162
+ .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold,
29163
+ .np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
29147
29164
  padding-inline-end: 16px;
29148
29165
  padding-inline-end: var(--size-16);
29149
29166
  }
29150
29167
  @media (max-width: 320px) {
29151
- .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
29168
+ .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold,
29169
+ .np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
29152
29170
  padding-inline-end: 32px;
29153
29171
  padding-inline-end: var(--size-32);
29154
29172
  }
@@ -29523,7 +29541,8 @@ button.np-link {
29523
29541
  transition-delay: 0.2s;
29524
29542
  }
29525
29543
  }
29526
- .np-progress-bar__title .h4 {
29544
+ .np-progress-bar__title .h4,
29545
+ .np-progress-bar__title .wds-text-title-body {
29527
29546
  color: #37517e;
29528
29547
  color: var(--color-content-primary);
29529
29548
  margin-block-end: 4px;
@@ -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,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAC7C,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAC3C,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAE7C,MAAM,MAAM,YAAY,GACtB,iBAAiB,GAAG,YAAY,GAAG,aAAa,GAAG,YAAY,GAAG,aAAa,CAAC;AAElF,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAC3C,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC;AACjD,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,GAAG,SAAS,GAAG,UAAU,CAAC;AAE/F,MAAM,MAAM,WAAW,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"}
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;;OAEG;IACH,cAAc,mBAAmB;IACjC,oBAAoB,yBAAyB;IAC7C,qBAAqB,0BAA0B;IAC/C,oBAAoB,yBAAyB;IAE7C,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,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAC7C,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAC3C;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC;AAC7C,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AACxD,MAAM,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AAC1D,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,CAAC;AAExD,MAAM,MAAM,YAAY,GACpB,iBAAiB,GACjB,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,kBAAkB,GAClB,mBAAmB,GACnB,kBAAkB,CAAC;AAEvB,MAAM,MAAM,WAAW,GAAG,cAAc,CAAC;AACzC,MAAM,MAAM,YAAY,GAAG,eAAe,CAAC;AAC3C,MAAM,MAAM,eAAe,GAAG,kBAAkB,CAAC;AACjD,MAAM,MAAM,SAAS,GAAG,YAAY,CAAC;AACrC,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC;AAEvC,MAAM,MAAM,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,eAAe,GAAG,SAAS,GAAG,UAAU,CAAC;AAE/F,MAAM,MAAM,WAAW,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-d2b800e",
3
+ "version": "0.0.0-experimental-34034f2",
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) {