@transferwise/components 46.165.4 → 46.166.0

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 (417) hide show
  1. package/build/Body/Body.js +2 -2
  2. package/build/Body/Body.js.map +1 -1
  3. package/build/Body/Body.mjs +2 -2
  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/Display/Display.js +3 -1
  18. package/build/Display/Display.js.map +1 -1
  19. package/build/Display/Display.mjs +3 -1
  20. package/build/Display/Display.mjs.map +1 -1
  21. package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js +1 -1
  22. package/build/ExpressiveMoneyInput/AmountInput/AmountInput.js.map +1 -1
  23. package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs +1 -1
  24. package/build/ExpressiveMoneyInput/AmountInput/AmountInput.mjs.map +1 -1
  25. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js +1 -1
  26. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.js.map +1 -1
  27. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs +1 -1
  28. package/build/FlowNavigation/AnimatedLabel/AnimatedLabel.mjs.map +1 -1
  29. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js +2 -2
  30. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.js.map +1 -1
  31. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs +2 -2
  32. package/build/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.mjs.map +1 -1
  33. package/build/Inputs/SelectInput/Option/SelectInputOption.js +1 -1
  34. package/build/Inputs/SelectInput/Option/SelectInputOption.js.map +1 -1
  35. package/build/Inputs/SelectInput/Option/SelectInputOption.mjs +1 -1
  36. package/build/Inputs/SelectInput/Option/SelectInputOption.mjs.map +1 -1
  37. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js +3 -3
  38. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.js.map +1 -1
  39. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs +3 -3
  40. package/build/Inputs/SelectInput/OptionContent/SelectInputOptionContent.mjs.map +1 -1
  41. package/build/Inputs/SelectInput/Popover/SelectInputPopover.js +2 -2
  42. package/build/Inputs/SelectInput/Popover/SelectInputPopover.js.map +1 -1
  43. package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs +2 -2
  44. package/build/Inputs/SelectInput/Popover/SelectInputPopover.mjs.map +1 -1
  45. package/build/Label/Label.js +1 -1
  46. package/build/Label/Label.js.map +1 -1
  47. package/build/Label/Label.mjs +1 -1
  48. package/build/Label/Label.mjs.map +1 -1
  49. package/build/Stepper/Stepper.js +3 -2
  50. package/build/Stepper/Stepper.js.map +1 -1
  51. package/build/Stepper/Stepper.mjs +3 -2
  52. package/build/Stepper/Stepper.mjs.map +1 -1
  53. package/build/Table/Header/TableHeader.js +1 -1
  54. package/build/Table/Header/TableHeader.js.map +1 -1
  55. package/build/Table/Header/TableHeader.mjs +1 -1
  56. package/build/Table/Header/TableHeader.mjs.map +1 -1
  57. package/build/Tabs/Tab/Tab.js +1 -1
  58. package/build/Tabs/Tab/Tab.js.map +1 -1
  59. package/build/Tabs/Tab/Tab.mjs +1 -1
  60. package/build/Tabs/Tab/Tab.mjs.map +1 -1
  61. package/build/Tag/Tag.js +1 -1
  62. package/build/Tag/Tag.js.map +1 -1
  63. package/build/Tag/Tag.mjs +1 -1
  64. package/build/Tag/Tag.mjs.map +1 -1
  65. package/build/Title/Title.js +2 -2
  66. package/build/Title/Title.js.map +1 -1
  67. package/build/Title/Title.mjs +2 -2
  68. package/build/Title/Title.mjs.map +1 -1
  69. package/build/Typeahead/TypeaheadInput/TypeaheadInput.js +5 -5
  70. package/build/Typeahead/TypeaheadInput/TypeaheadInput.js.map +1 -1
  71. package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs +5 -5
  72. package/build/Typeahead/TypeaheadInput/TypeaheadInput.mjs.map +1 -1
  73. package/build/Typeahead/TypeaheadOption/TypeaheadOption.js +2 -2
  74. package/build/Typeahead/TypeaheadOption/TypeaheadOption.js.map +1 -1
  75. package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs +2 -2
  76. package/build/Typeahead/TypeaheadOption/TypeaheadOption.mjs.map +1 -1
  77. package/build/Upload/Steps/UploadImageStep/UploadImageStep.js +2 -2
  78. package/build/Upload/Steps/UploadImageStep/UploadImageStep.js.map +1 -1
  79. package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs +2 -2
  80. package/build/Upload/Steps/UploadImageStep/UploadImageStep.mjs.map +1 -1
  81. package/build/_deprecated/ActionButton/ActionButton.js +1 -1
  82. package/build/_deprecated/ActionButton/ActionButton.js.map +1 -1
  83. package/build/_deprecated/ActionButton/ActionButton.mjs +1 -1
  84. package/build/_deprecated/ActionButton/ActionButton.mjs.map +1 -1
  85. package/build/_deprecated/Avatar/Avatar.js +1 -1
  86. package/build/_deprecated/Avatar/Avatar.js.map +1 -1
  87. package/build/_deprecated/Avatar/Avatar.mjs +1 -1
  88. package/build/_deprecated/Avatar/Avatar.mjs.map +1 -1
  89. package/build/_deprecated/Select/Select.js +2 -2
  90. package/build/_deprecated/Select/Select.js.map +1 -1
  91. package/build/_deprecated/Select/Select.mjs +2 -2
  92. package/build/_deprecated/Select/Select.mjs.map +1 -1
  93. package/build/common/PropsValues/typography.js +6 -0
  94. package/build/common/PropsValues/typography.js.map +1 -1
  95. package/build/common/PropsValues/typography.mjs +6 -0
  96. package/build/common/PropsValues/typography.mjs.map +1 -1
  97. package/build/main.css +9097 -1964
  98. package/build/styles/Accordion/Accordion.css +7 -6
  99. package/build/styles/Body/Body.css +2 -1
  100. package/build/styles/Calendar/Calendar.css +5 -4
  101. package/build/styles/Calendar/TableLink/TableLink.css +5 -4
  102. package/build/styles/Chips/Chip/Chip.css +5 -3
  103. package/build/styles/Decision/Decision.css +4 -3
  104. package/build/styles/Emphasis/Emphasis.css +1 -1
  105. package/build/styles/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
  106. package/build/styles/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
  107. package/build/styles/Inputs/Input/Input.css +98 -24
  108. package/build/styles/Inputs/TextArea/TextArea.css +98 -24
  109. package/build/styles/Label/Label.css +3 -0
  110. package/build/styles/Markup/Markup.css +2 -2
  111. package/build/styles/MoneyInput/MoneyInput.css +9 -6
  112. package/build/styles/Nudge/Nudge.css +3 -3
  113. package/build/styles/Popover/Popover.css +30 -7
  114. package/build/styles/ProgressBar/ProgressBar.css +3 -2
  115. package/build/styles/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
  116. package/build/styles/Snackbar/Snackbar.css +1 -1
  117. package/build/styles/Table/Table.css +18 -8
  118. package/build/styles/Tabs/Tabs.css +3 -3
  119. package/build/styles/Tag/Tag.css +1 -1
  120. package/build/styles/Tile/Tile.css +4 -3
  121. package/build/styles/Typeahead/Typeahead.css +12 -29
  122. package/build/styles/UploadInput/UploadInput.css +1 -1
  123. package/build/styles/_deprecated/ActionButton/ActionButton.css +3 -4
  124. package/build/styles/_deprecated/Avatar/Avatar.css +2 -2
  125. package/build/styles/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
  126. package/build/styles/_deprecated/Select/Select.css +49 -14
  127. package/build/styles/_deprecated/Summary/Summary.css +2 -2
  128. package/build/styles/common/Circle/Circle.css +1 -1
  129. package/build/styles/common/Option/Option.css +4 -4
  130. package/build/styles/css/accordion.css +53 -11
  131. package/build/styles/css/badge.css +2 -2
  132. package/build/styles/css/button-groups.css +29 -6
  133. package/build/styles/css/buttons.css +35 -11
  134. package/build/styles/css/decision.css +53 -11
  135. package/build/styles/css/dropdowns.css +65 -18
  136. package/build/styles/css/droppable.css +28 -6
  137. package/build/styles/css/footer.css +41 -10
  138. package/build/styles/css/input-groups.css +249 -117
  139. package/build/styles/css/list-group.css +28 -8
  140. package/build/styles/css/modals.css +1 -1
  141. package/build/styles/css/navbar.css +92 -45
  142. package/build/styles/css/navs.css +8 -8
  143. package/build/styles/css/neptune-addons.css +15 -0
  144. package/build/styles/css/neptune-core.css +6230 -525
  145. package/build/styles/css/neptune.css +8790 -1768
  146. package/build/styles/css/panels.css +2 -2
  147. package/build/styles/css/popovers.css +64 -20
  148. package/build/styles/css/progress-bars.css +2 -2
  149. package/build/styles/css/sequences.css +14 -9
  150. package/build/styles/css/table.css +7 -7
  151. package/build/styles/css/tooltip.css +28 -6
  152. package/build/styles/less/legacy-variables.less +3 -3
  153. package/build/styles/less/neptune-tokens.less +0 -48
  154. package/build/styles/main.css +9097 -1964
  155. package/build/styles/props/neptune-tokens.css +805 -3
  156. package/build/styles/styles/less/accordion.css +53 -11
  157. package/build/styles/styles/less/badge.css +2 -2
  158. package/build/styles/styles/less/button-groups.css +29 -6
  159. package/build/styles/styles/less/buttons.css +35 -11
  160. package/build/styles/styles/less/decision.css +53 -11
  161. package/build/styles/styles/less/dropdowns.css +65 -18
  162. package/build/styles/styles/less/droppable.css +28 -6
  163. package/build/styles/styles/less/footer.css +41 -10
  164. package/build/styles/styles/less/forms/bootstrap-forms.css +153 -100
  165. package/build/styles/styles/less/forms/checkbox-radio.css +3 -3
  166. package/build/styles/styles/less/input-groups.css +249 -117
  167. package/build/styles/styles/less/list-group.css +28 -8
  168. package/build/styles/styles/less/modals.css +1 -1
  169. package/build/styles/styles/less/navbar.css +92 -45
  170. package/build/styles/styles/less/navs.css +8 -8
  171. package/build/styles/styles/less/neptune-addons.css +15 -0
  172. package/build/styles/styles/less/neptune-core.css +6230 -525
  173. package/build/styles/styles/less/neptune.css +8790 -1768
  174. package/build/styles/styles/less/panels.css +2 -2
  175. package/build/styles/styles/less/popovers.css +64 -20
  176. package/build/styles/styles/less/progress-bars.css +2 -2
  177. package/build/styles/styles/less/sequences.css +14 -9
  178. package/build/styles/styles/less/table.css +7 -7
  179. package/build/styles/styles/less/tooltip.css +28 -6
  180. package/build/types/Body/Body.d.ts +2 -2
  181. package/build/types/Body/Body.d.ts.map +1 -1
  182. package/build/types/Display/Display.d.ts.map +1 -1
  183. package/build/types/ExpressiveMoneyInput/AmountInput/AmountInput.d.ts.map +1 -1
  184. package/build/types/IconButton/IconButton.d.ts +1 -1
  185. package/build/types/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.d.ts.map +1 -1
  186. package/build/types/Inputs/SelectInput/Popover/SelectInputPopover.d.ts.map +1 -1
  187. package/build/types/MoneyInput/MoneyInput.d.ts +1 -1
  188. package/build/types/MoneyInput/MoneyInput.d.ts.map +1 -1
  189. package/build/types/Stepper/Stepper.d.ts.map +1 -1
  190. package/build/types/Tabs/Tab/Tab.d.ts.map +1 -1
  191. package/build/types/Title/Title.d.ts +2 -2
  192. package/build/types/Typeahead/TypeaheadInput/TypeaheadInput.d.ts.map +1 -1
  193. package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts +1 -1
  194. package/build/types/Upload/Steps/UploadImageStep/UploadImageStep.d.ts.map +1 -1
  195. package/build/types/UploadInput/UploadItem/UploadItemLink.d.ts +1 -1
  196. package/build/types/_deprecated/Select/Select.d.ts.map +1 -1
  197. package/build/types/common/PropsValues/typography.d.ts +13 -1
  198. package/build/types/common/PropsValues/typography.d.ts.map +1 -1
  199. package/package.json +3 -3
  200. package/src/Accordion/Accordion.css +7 -6
  201. package/src/Accordion/Accordion.less +7 -6
  202. package/src/Body/Body.css +2 -1
  203. package/src/Body/Body.less +2 -1
  204. package/src/Body/Body.test.tsx +13 -4
  205. package/src/Body/Body.tsx +4 -3
  206. package/src/Body/_stories/Body.test.story.tsx +42 -0
  207. package/src/Button/_stories/Button.test.story.tsx +1 -0
  208. package/src/Calendar/Calendar.css +5 -4
  209. package/src/Calendar/DayCalendar/Table/DayCalendarTable.tsx +2 -2
  210. package/src/Calendar/MonthCalendar/Table/MonthCalendarTable.tsx +1 -1
  211. package/src/Calendar/TableLink/TableLink.css +5 -4
  212. package/src/Calendar/TableLink/TableLink.less +5 -4
  213. package/src/Calendar/TableLink/TableLink.tsx +1 -1
  214. package/src/Calendar/_stories/Calendar.test.story.tsx +34 -0
  215. package/src/Chips/Chip/Chip.css +5 -3
  216. package/src/Chips/Chip/Chip.less +3 -2
  217. package/src/CircularButton/_stories/CircularButton.story.tsx +6 -16
  218. package/src/DateInput/_stories/DateInput.rtl.test.story.tsx +46 -0
  219. package/src/DateInput/_stories/DateInput.story.tsx +1 -0
  220. package/src/Decision/Decision.css +4 -3
  221. package/src/Decision/Decision.less +4 -3
  222. package/src/Decision/_stories/Decision.test.story.tsx +1 -0
  223. package/src/DefinitionList/_stories/DefinitionList.story.tsx +1 -1
  224. package/src/DefinitionList/_stories/DefinitionList.test.story.tsx +1 -1
  225. package/src/Display/Display.test.tsx +43 -0
  226. package/src/Display/Display.tsx +11 -1
  227. package/src/Display/_stories/Display.story.tsx +36 -21
  228. package/src/Display/_stories/Display.test.story.tsx +108 -0
  229. package/src/Emphasis/Emphasis.css +1 -1
  230. package/src/Emphasis/Emphasis.less +1 -1
  231. package/src/ExpressiveMoneyInput/AmountInput/AmountInput.css +2 -1
  232. package/src/ExpressiveMoneyInput/AmountInput/AmountInput.less +2 -1
  233. package/src/ExpressiveMoneyInput/AmountInput/AmountInput.tsx +1 -4
  234. package/src/ExpressiveMoneyInput/ExpressiveMoneyInput.css +2 -1
  235. package/src/ExpressiveMoneyInput/_stories/ExpressiveMoneyInput.rtl.test.story.tsx +1 -0
  236. package/src/Field/_stories/Field.test.story.tsx +1 -0
  237. package/src/FlowNavigation/AnimatedLabel/AnimatedLabel.tsx +1 -1
  238. package/src/Header/_stories/Header.test.story.tsx +1 -1
  239. package/src/InputWithDisplayFormat/_stories/InputWithDisplayFormat.test.story.tsx +1 -0
  240. package/src/Inputs/Input/Input.css +98 -24
  241. package/src/Inputs/InputGroup/_stories/InputGroup.test.story.tsx +1 -0
  242. package/src/Inputs/SelectInput/BottomSheet/SelectInputBottomSheet.tsx +4 -2
  243. package/src/Inputs/SelectInput/Option/SelectInputOption.tsx +1 -1
  244. package/src/Inputs/SelectInput/OptionContent/SelectInputOptionContent.tsx +3 -3
  245. package/src/Inputs/SelectInput/Popover/SelectInputPopover.tsx +6 -2
  246. package/src/Inputs/SelectInput/_stories/SelectInput.rtl.test.story.tsx +1 -0
  247. package/src/Inputs/SelectInput/_stories/SelectInput.story.tsx +1 -1
  248. package/src/Inputs/TextArea/TextArea.css +98 -24
  249. package/src/Inputs/TextArea/_stories/TextArea.test.story.tsx +1 -0
  250. package/src/Inputs/_common.less +16 -10
  251. package/src/InstructionsList/_stories/InstructionsList.test.story.tsx +2 -1
  252. package/src/Label/Label.css +3 -0
  253. package/src/Label/Label.less +8 -0
  254. package/src/Label/Label.tsx +1 -1
  255. package/src/Label/_stories/Label.test.story.tsx +1 -0
  256. package/src/ListItem/_stories/ListItem.rtl.test.story.tsx +1 -6
  257. package/src/Markup/Markup.css +2 -2
  258. package/src/Markup/Markup.less +2 -2
  259. package/src/MoneyInput/MoneyInput.css +9 -6
  260. package/src/MoneyInput/MoneyInput.less +10 -7
  261. package/src/MoneyInput/_stories/MoneyInput.rtl.test.story.tsx +3 -1
  262. package/src/Nudge/Nudge.css +3 -3
  263. package/src/Nudge/Nudge.less +3 -3
  264. package/src/PhoneNumberInput/_stories/PhoneNumberInput.rtl.test.story.tsx +1 -1
  265. package/src/PocketSurface/_stories/PocketSurface.story.tsx +2 -2
  266. package/src/Popover/Popover.css +30 -7
  267. package/src/Popover/Popover.less +2 -2
  268. package/src/ProgressBar/ProgressBar.css +3 -2
  269. package/src/ProgressBar/ProgressBar.less +12 -11
  270. package/src/ProgressBar/_stories/ProgressBar.test.story.tsx +1 -0
  271. package/src/Prompt/ActionPrompt/_stories/ActionPrompt.test.story.tsx +1 -0
  272. package/src/Prompt/CriticalBanner/_stories/CriticalBanner.test.story.tsx +1 -0
  273. package/src/Prompt/InfoPrompt/_stories/InfoPrompt.test.story.tsx +1 -0
  274. package/src/Prompt/InlinePrompt/_stories/InlinePrompt.test.story.tsx +1 -0
  275. package/src/Prompt/PrimitivePrompt/PrimitivePrompt.css +2 -1
  276. package/src/Prompt/PrimitivePrompt/PrimitivePrompt.less +2 -1
  277. package/src/SentimentSurface/_stories/SentimentSurface.story.tsx +1 -1
  278. package/src/Snackbar/Snackbar.css +1 -1
  279. package/src/Snackbar/Snackbar.less +1 -1
  280. package/src/Stepper/Stepper.tsx +4 -2
  281. package/src/Table/Header/TableHeader.tsx +1 -1
  282. package/src/Table/StatusText/TableStatusText.test.tsx +20 -5
  283. package/src/Table/Table.css +18 -8
  284. package/src/Table/Table.less +20 -9
  285. package/src/Table/_stories/Table.test.story.tsx +24 -13
  286. package/src/Tabs/Tab/Tab.tsx +11 -5
  287. package/src/Tabs/Tabs.css +3 -3
  288. package/src/Tabs/Tabs.less +3 -3
  289. package/src/Tabs/_stories/Tabs.test.story.tsx +1 -1
  290. package/src/Tag/Tag.css +1 -1
  291. package/src/Tag/Tag.less +1 -1
  292. package/src/Tag/Tag.tsx +1 -1
  293. package/src/Tag/_stories/Tag.story.tsx +1 -1
  294. package/src/TextareaWithDisplayFormat/_stories/TextareaWithDisplayFormat.test.story.tsx +1 -0
  295. package/src/Tile/Tile.css +4 -3
  296. package/src/Tile/Tile.less +4 -3
  297. package/src/Title/Title.test.tsx +22 -3
  298. package/src/Title/Title.tsx +2 -2
  299. package/src/Typeahead/Typeahead.css +12 -29
  300. package/src/Typeahead/Typeahead.less +11 -33
  301. package/src/Typeahead/TypeaheadInput/TypeaheadInput.tsx +5 -5
  302. package/src/Typeahead/TypeaheadOption/TypeaheadOption.tsx +2 -2
  303. package/src/Typeahead/_stories/Typeahead.rtl.test.story.tsx +1 -1
  304. package/src/Typeahead/_stories/Typeahead.test.story.tsx +65 -0
  305. package/src/Upload/Steps/UploadImageStep/UploadImageStep.tsx +4 -2
  306. package/src/Upload/_stories/Upload.rtl.test.story.tsx +1 -0
  307. package/src/UploadInput/UploadInput.css +1 -1
  308. package/src/UploadInput/UploadInput.less +7 -4
  309. package/src/UploadInput/_stories/UploadInput.test.story.tsx +1 -0
  310. package/src/_deprecated/ActionButton/ActionButton.css +3 -4
  311. package/src/_deprecated/ActionButton/ActionButton.less +4 -5
  312. package/src/_deprecated/ActionButton/ActionButton.tsx +1 -1
  313. package/src/_deprecated/Avatar/Avatar.css +2 -2
  314. package/src/_deprecated/Avatar/Avatar.less +2 -2
  315. package/src/_deprecated/Avatar/Avatar.tsx +1 -1
  316. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.css +2 -1
  317. package/src/_deprecated/CriticalBanner/CriticalCommsBanner.less +2 -1
  318. package/src/_deprecated/NavigationOption/_stories/NavigationOption.story.tsx +6 -6
  319. package/src/_deprecated/Select/Select.css +49 -14
  320. package/src/_deprecated/Select/Select.less +14 -10
  321. package/src/_deprecated/Select/Select.test.tsx +16 -0
  322. package/src/_deprecated/Select/Select.tsx +6 -1
  323. package/src/_deprecated/Summary/Summary.css +2 -2
  324. package/src/_deprecated/Summary/Summary.less +2 -2
  325. package/src/common/Circle/Circle.css +1 -1
  326. package/src/common/Circle/Circle.less +1 -1
  327. package/src/common/Option/Option.css +4 -4
  328. package/src/common/Option/Option.less +4 -4
  329. package/src/common/PropsValues/typography.ts +20 -1
  330. package/src/main.css +9097 -1964
  331. package/src/main.less +3 -2
  332. package/src/styles/less/accordion.css +53 -11
  333. package/src/styles/less/addons/_background-utilities.less +5 -0
  334. package/src/styles/less/badge.css +2 -2
  335. package/src/styles/less/badge.less +2 -2
  336. package/src/styles/less/button-groups.css +29 -6
  337. package/src/styles/less/button-groups.less +3 -2
  338. package/src/styles/less/buttons.css +35 -11
  339. package/src/styles/less/buttons.less +7 -7
  340. package/src/styles/less/core/_fonts.less +7 -75
  341. package/src/styles/less/core/_scaffolding.less +4 -4
  342. package/src/styles/less/core/_typography-utilities.less +3 -3
  343. package/src/styles/less/core/_typography.less +91 -236
  344. package/src/styles/less/core/fonts/_fonts-ar.less +86 -0
  345. package/src/styles/less/core/fonts/_fonts-base.less +99 -0
  346. package/src/styles/less/core/fonts/_fonts-he.less +8 -0
  347. package/src/styles/less/core/fonts/_fonts-ja.less +4247 -0
  348. package/src/styles/less/core/fonts/_fonts-ko.less +1079 -0
  349. package/src/styles/less/core/fonts/_fonts-th.less +8 -0
  350. package/src/styles/less/core/fonts/_fonts-zh.less +872 -0
  351. package/src/styles/less/decision.css +53 -11
  352. package/src/styles/less/decision.less +2 -2
  353. package/src/styles/less/dropdowns.css +65 -18
  354. package/src/styles/less/dropdowns.less +8 -7
  355. package/src/styles/less/droppable.css +28 -6
  356. package/src/styles/less/droppable.less +4 -4
  357. package/src/styles/less/footer.css +41 -10
  358. package/src/styles/less/footer.less +4 -3
  359. package/src/styles/less/forms/bootstrap-forms.css +153 -100
  360. package/src/styles/less/forms/bootstrap-forms.less +85 -72
  361. package/src/styles/less/forms/checkbox-radio.css +3 -3
  362. package/src/styles/less/forms/checkbox-radio.less +3 -3
  363. package/src/styles/less/input-groups.css +249 -117
  364. package/src/styles/less/input-groups.less +23 -9
  365. package/src/styles/less/list-group.css +28 -8
  366. package/src/styles/less/list-group.less +8 -5
  367. package/src/styles/less/mixins/_reset-text.less +1 -1
  368. package/src/styles/less/mixins/_text-emphasis.less +7 -1
  369. package/src/styles/less/modals.css +1 -1
  370. package/src/styles/less/modals.less +1 -1
  371. package/src/styles/less/navbar.css +92 -45
  372. package/src/styles/less/navbar.less +19 -19
  373. package/src/styles/less/navs.css +8 -8
  374. package/src/styles/less/navs.less +8 -8
  375. package/src/styles/less/neptune-addons.css +15 -0
  376. package/src/styles/less/neptune-core.css +6230 -525
  377. package/src/styles/less/neptune.bundle.less +4 -0
  378. package/src/styles/less/neptune.css +8790 -1768
  379. package/src/styles/less/panels.css +2 -2
  380. package/src/styles/less/panels.less +2 -2
  381. package/src/styles/less/popovers.css +64 -20
  382. package/src/styles/less/popovers.less +7 -7
  383. package/src/styles/less/progress-bars.css +2 -2
  384. package/src/styles/less/progress-bars.less +2 -2
  385. package/src/styles/less/sequences.css +14 -9
  386. package/src/styles/less/sequences.less +15 -10
  387. package/src/styles/less/table.css +7 -7
  388. package/src/styles/less/table.less +7 -7
  389. package/src/styles/less/tooltip.css +28 -6
  390. package/src/styles/less/tooltip.less +1 -1
  391. package/src/styles/variables/legacy-variables.less +3 -3
  392. package/build/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  393. package/build/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  394. package/build/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  395. package/build/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  396. package/build/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  397. package/build/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  398. package/build/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  399. package/build/styles/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
  400. package/build/styles/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
  401. package/build/styles/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
  402. package/build/styles/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
  403. package/build/styles/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
  404. package/build/styles/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
  405. package/src/styles/fonts/inter-cyrillic-ext-variable-wghtOnly-normal.woff2 +0 -0
  406. package/src/styles/fonts/inter-cyrillic-variable-wghtOnly-normal.woff2 +0 -0
  407. package/src/styles/fonts/inter-greek-ext-variable-wghtOnly-normal.woff2 +0 -0
  408. package/src/styles/fonts/inter-greek-variable-wghtOnly-normal.woff2 +0 -0
  409. package/src/styles/fonts/inter-latin-ext-variable-wghtOnly-normal.woff2 +0 -0
  410. package/src/styles/fonts/inter-latin-variable-wghtOnly-normal.woff2 +0 -0
  411. package/src/styles/fonts/inter-vietnamese-variable-wghtOnly-normal.woff2 +0 -0
  412. package/src/styles/fonts/rubik/rubik-body-cyrillic-330-normal.woff2 +0 -0
  413. package/src/styles/fonts/rubik/rubik-body-cyrillic-600-normal.woff2 +0 -0
  414. package/src/styles/fonts/rubik/rubik-body-cyrillic-ext-330-normal.woff2 +0 -0
  415. package/src/styles/fonts/rubik/rubik-body-cyrillic-ext-600-normal.woff2 +0 -0
  416. package/src/styles/fonts/rubik/rubik-cyrillic-900-normal.woff2 +0 -0
  417. package/src/styles/fonts/rubik/rubik-cyrillic-ext-900-normal.woff2 +0 -0
@@ -564,7 +564,7 @@ export const ExposedTokens: Story = {
564
564
  }}
565
565
  >
566
566
  <h4
567
- className="d-block m-b-2 text-capitalize np-text-title-body"
567
+ className="d-block m-b-2 text-capitalize wds-text-title-body"
568
568
  style={{
569
569
  color: 'inherit',
570
570
  }}
@@ -15,7 +15,7 @@
15
15
  align-items: center;
16
16
  justify-content: space-between;
17
17
  text-align: start;
18
- font-size: var(--font-size-14);
18
+ font-size: var(--wds-font-size-body);
19
19
  margin-block: 0;
20
20
  margin-inline: var(--size-16);
21
21
  padding-block: var(--size-8);
@@ -21,7 +21,7 @@
21
21
  justify-content: space-between;
22
22
  text-align: left;
23
23
 
24
- font-size: var(--font-size-14);
24
+ font-size: var(--wds-font-size-body);
25
25
  margin: 0 var(--size-16);
26
26
  padding: var(--size-8) var(--size-16);
27
27
  width: calc(100% - var(--size-32));
@@ -61,7 +61,7 @@ const Stepper = ({ steps, activeStep = 0, className, testId }: StepperProps) =>
61
61
  className="btn-unstyled tw-stepper__step-label"
62
62
  onClick={() => clickable && step.onClick?.()}
63
63
  >
64
- <small>{step.label}</small>
64
+ <span className="wds-text-body-default">{step.label}</span>
65
65
  </button>
66
66
  ) : (
67
67
  <span className="tw-stepper__step-label">{step.label}</span>
@@ -73,7 +73,9 @@ const Stepper = ({ steps, activeStep = 0, className, testId }: StepperProps) =>
73
73
  className={clsx(
74
74
  'hidden-xs',
75
75
  'tw-stepper__step',
76
- active ? 'np-text-body-default-bold tw-stepper__step--active' : 'np-text-body-default',
76
+ active
77
+ ? 'np-text-body-default-bold wds-text-body-default-bold tw-stepper__step--active'
78
+ : 'np-text-body-default wds-text-body-default',
77
79
  clickable && 'tw-stepper__step--clickable',
78
80
  step.hoverLabel && 'tw-stepper__step--has-tooltip',
79
81
  )}
@@ -50,7 +50,7 @@ const TableHeader = ({
50
50
  // If headers are empty, we still should render empty headers to keep visual consistency
51
51
  return (
52
52
  <div
53
- className="np-table-header-content np-text-body-default-bold"
53
+ className="np-table-header-content np-text-body-default-bold wds-text-body-default-bold"
54
54
  data-testid="np-table-empty-header"
55
55
  >
56
56
  &nbsp;
@@ -13,7 +13,10 @@ describe('TableStatusText Component', () => {
13
13
  it('renders the text and applies the default class', () => {
14
14
  renderComponent();
15
15
  expect(screen.getByText('Status Text')).toBeInTheDocument();
16
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default');
16
+ expect(screen.getByText('Status Text')).toHaveClass(
17
+ 'np-text-body-default',
18
+ 'wds-text-body-default',
19
+ );
17
20
  });
18
21
 
19
22
  it('applies the custom class name', () => {
@@ -23,12 +26,18 @@ describe('TableStatusText Component', () => {
23
26
 
24
27
  it('applies the default typography class when typography is not provided', () => {
25
28
  renderComponent();
26
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default');
29
+ expect(screen.getByText('Status Text')).toHaveClass(
30
+ 'np-text-body-default',
31
+ 'wds-text-body-default',
32
+ );
27
33
  });
28
34
 
29
35
  it('applies the typography class when typography equals `default-bold`', () => {
30
36
  renderComponent({ typography: 'default-bold' });
31
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default-bold');
37
+ expect(screen.getByText('Status Text')).toHaveClass(
38
+ 'np-text-body-default-bold',
39
+ 'wds-text-body-default-bold',
40
+ );
32
41
  });
33
42
 
34
43
  it('does not render any icon when status is not provided', () => {
@@ -39,14 +48,20 @@ describe('TableStatusText Component', () => {
39
48
 
40
49
  it('applies the typography and status classes, renders the error icon when status equals `error`', () => {
41
50
  renderComponent({ status: 'error' });
42
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default-bold');
51
+ expect(screen.getByText('Status Text')).toHaveClass(
52
+ 'np-text-body-default-bold',
53
+ 'wds-text-body-default-bold',
54
+ );
43
55
  expect(screen.getByText('Status Text')).toHaveClass('np-table-content--error');
44
56
  expect(screen.getByTestId('alert-icon')).toBeInTheDocument();
45
57
  });
46
58
 
47
59
  it('applies the typography and status classes, renders the success icon when status equals `success`', () => {
48
60
  renderComponent({ status: 'success' });
49
- expect(screen.getByText('Status Text')).toHaveClass('np-text-body-default-bold');
61
+ expect(screen.getByText('Status Text')).toHaveClass(
62
+ 'np-text-body-default-bold',
63
+ 'wds-text-body-default-bold',
64
+ );
50
65
  expect(screen.getByText('Status Text')).toHaveClass('np-table-content--success');
51
66
  expect(screen.getByTestId('check-icon')).toBeInTheDocument();
52
67
  });
@@ -37,10 +37,16 @@
37
37
  }
38
38
  .np-table-inner-container {
39
39
  background-image: linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
40
- background-position: left center, right center, left center, right center;
40
+ background-position: left center,
41
+ right center,
42
+ left center,
43
+ right center;
41
44
  background-repeat: no-repeat;
42
45
  background-color: var(--color-contrast-overlay);
43
- background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
46
+ background-size: 15px 100%,
47
+ 15px 100%,
48
+ 15px 100%,
49
+ 15px 100%;
44
50
  background-attachment: local, local, scroll, scroll;
45
51
  overflow-x: auto;
46
52
  border-radius: 10px;
@@ -130,7 +136,9 @@
130
136
  padding-inline-end: 0;
131
137
  }
132
138
  .np-table-header.np-table-header--right > .np-text-body-default,
133
- .np-table-cell.np-table-cell--right > .np-text-body-default {
139
+ .np-table-cell.np-table-cell--right > .np-text-body-default,
140
+ .np-table-header.np-table-header--right > .wds-text-body-default,
141
+ .np-table-cell.np-table-cell--right > .wds-text-body-default {
134
142
  text-align: end;
135
143
  }
136
144
  .np-table-header.np-table-header--right + .np-table-header:not(.np-table-header--right),
@@ -159,8 +167,8 @@
159
167
  padding-block-start: 5px;
160
168
  padding-block-end: 5px;
161
169
  white-space: nowrap;
162
- line-height: var(--line-height-22);
163
- letter-spacing: var(--letter-spacing-sm);
170
+ line-height: var(--wds-line-height-title-subsection);
171
+ letter-spacing: var(--wds-letter-spacing-title-subsection);
164
172
  }
165
173
  .np-table-header--error {
166
174
  color: var(--color-sentiment-negative);
@@ -180,7 +188,8 @@
180
188
  .np-table-cell--primary {
181
189
  min-inline-size: 200px;
182
190
  }
183
- .np-table-cell--currency .np-text-body-default {
191
+ .np-table-cell--currency .np-text-body-default,
192
+ .np-table-cell--currency .wds-text-body-default {
184
193
  white-space: nowrap;
185
194
  }
186
195
  .np-table-cell .tw-chevron {
@@ -193,7 +202,8 @@
193
202
  background-color: var(--color-background-neutral);
194
203
  padding: 0;
195
204
  }
196
- .np-table-cell .np-text-body-default-bold {
205
+ .np-table-cell .np-text-body-default-bold,
206
+ .np-table-cell .wds-text-body-default-bold {
197
207
  display: flex;
198
208
  align-items: center;
199
209
  color: var(--color-content-primary);
@@ -232,7 +242,7 @@
232
242
  .np-table-content-body {
233
243
  display: flex;
234
244
  flex-direction: column;
235
- font-size: var(--font-size-12);
245
+ font-size: var(--wds-font-size-nav);
236
246
  color: var(--color-content-tertiary);
237
247
  }
238
248
  .np-table-content--reversed {
@@ -59,10 +59,18 @@
59
59
  linear-gradient(to right, var(--color-contrast-overlay), var(--color-contrast-overlay)),
60
60
  linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)),
61
61
  linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));
62
- background-position: left center, right center, left center, right center;
62
+ background-position:
63
+ left center,
64
+ right center,
65
+ left center,
66
+ right center;
63
67
  background-repeat: no-repeat;
64
68
  background-color: var(--color-contrast-overlay);
65
- background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
69
+ background-size:
70
+ 15px 100%,
71
+ 15px 100%,
72
+ 15px 100%,
73
+ 15px 100%;
66
74
  background-attachment: local, local, scroll, scroll;
67
75
  overflow-x: auto;
68
76
  border-radius: @table-inner-border-radius;
@@ -188,7 +196,8 @@
188
196
 
189
197
  &-header.np-table-header--right,
190
198
  &-cell.np-table-cell--right {
191
- > .np-text-body-default {
199
+ > .np-text-body-default,
200
+ > .wds-text-body-default {
192
201
  text-align: right;
193
202
  }
194
203
  }
@@ -222,8 +231,8 @@
222
231
  padding-top: 5px;
223
232
  padding-bottom: 5px;
224
233
  white-space: nowrap;
225
- line-height: var(--line-height-22);
226
- letter-spacing: var(--letter-spacing-sm);
234
+ line-height: var(--wds-line-height-title-subsection);
235
+ letter-spacing: var(--wds-letter-spacing-title-subsection);
227
236
  }
228
237
 
229
238
  &--error {
@@ -249,7 +258,8 @@
249
258
  }
250
259
 
251
260
  &--currency {
252
- .np-text-body-default {
261
+ .np-text-body-default,
262
+ .wds-text-body-default {
253
263
  white-space: nowrap;
254
264
  }
255
265
  }
@@ -266,7 +276,8 @@
266
276
  padding: 0;
267
277
  }
268
278
 
269
- .np-text-body-default-bold {
279
+ .np-text-body-default-bold,
280
+ .wds-text-body-default-bold {
270
281
  display: flex;
271
282
  align-items: center;
272
283
  color: var(--color-content-primary);
@@ -306,11 +317,11 @@
306
317
  &-media {
307
318
  flex-shrink: 0;
308
319
  }
309
-
320
+
310
321
  &-body {
311
322
  display: flex;
312
323
  flex-direction: column;
313
- font-size: var(--font-size-12);
324
+ font-size: var(--wds-font-size-nav);
314
325
  color: var(--color-content-tertiary);
315
326
  }
316
327
 
@@ -88,23 +88,34 @@ export const RTLDiff: Story = {
88
88
 
89
89
  return (
90
90
  <>
91
- <Table data={{ headers, rows }} />
92
- <Table
93
- data={{
94
- headers,
95
- rows,
96
- onRowClick: (rowData: TableRowType | TableRowClickableType) => {
97
- void rowData;
98
- },
99
- }}
100
- />
101
- <Table data={{ headers, rows }} fullWidth={false} />
102
- <Table data={{ headers, rows: [] }} />
103
- <Table data={{ headers, rows }} loading />
91
+ <div>
92
+ <Table data={{ headers, rows }} />
93
+ </div>
94
+ <div>
95
+ <Table
96
+ data={{
97
+ headers,
98
+ rows,
99
+ onRowClick: (rowData: TableRowType | TableRowClickableType) => {
100
+ void rowData;
101
+ },
102
+ }}
103
+ />
104
+ </div>
105
+ <div>
106
+ <Table data={{ headers, rows }} fullWidth={false} />
107
+ </div>
108
+ <div>
109
+ <Table data={{ headers, rows: [] }} />
110
+ </div>
111
+ <div>
112
+ <Table data={{ headers, rows }} loading />
113
+ </div>
104
114
  </>
105
115
  );
106
116
  },
107
117
  ...withRTLDiff({
118
+ fixedRows: { heights: 'auto' },
108
119
  i18n: {
109
120
  employeeHeader: { en: 'Employee', ar: 'الموظف' },
110
121
  locationHeader: { en: 'Location', ar: 'الموقع' },
@@ -49,11 +49,17 @@ const Tab = forwardRef(function Tab(
49
49
  return (
50
50
  <li
51
51
  ref={reference}
52
- className={clsx('tabs__tab', selected ? 'np-text-body-large-bold' : 'np-text-body-large', {
53
- 'tabs__tab--selected': selected,
54
- clickable: !disabled,
55
- disabled,
56
- })}
52
+ className={clsx(
53
+ 'tabs__tab',
54
+ selected
55
+ ? 'np-text-body-large-bold wds-text-body-large-bold'
56
+ : 'np-text-body-large wds-text-body-large',
57
+ {
58
+ 'tabs__tab--selected': selected,
59
+ clickable: !disabled,
60
+ disabled,
61
+ },
62
+ )}
57
63
  role="tab"
58
64
  id={id}
59
65
  aria-selected={selected ? 'true' : 'false'}
package/src/Tabs/Tabs.css CHANGED
@@ -8,19 +8,19 @@
8
8
  padding: var(--size-8);
9
9
  margin-block-end: -2px;
10
10
  color: var(--color-content-primary);
11
- font-weight: var(--font-weight-semi-bold);
11
+ font-weight: var(--wds-font-weight-body-bold);
12
12
  transition: color 0.15s ease-in-out;
13
13
  }
14
14
  .np-theme-personal .tabs__tab {
15
15
  color: var(--color-content-secondary);
16
- font-weight: var(--font-weight-regular);
16
+ font-weight: var(--wds-font-weight-body-regular);
17
17
  }
18
18
  .tabs__tab--selected {
19
19
  color: var(--color-content-accent);
20
20
  }
21
21
  .np-theme-personal .tabs__tab--selected {
22
22
  color: var(--color-interactive-primary);
23
- font-weight: var(--font-weight-semi-bold);
23
+ font-weight: var(--wds-font-weight-body-bold);
24
24
  }
25
25
  .tabs__tab__content {
26
26
  border-radius: 2px;
@@ -16,12 +16,12 @@
16
16
  padding: var(--size-8);
17
17
  margin-bottom: -@line-thickness;
18
18
  color: var(--color-content-primary);
19
- font-weight: var(--font-weight-semi-bold);
19
+ font-weight: var(--wds-font-weight-body-bold);
20
20
  transition: color @short-transition-duration @transition-timing-function;
21
21
 
22
22
  .np-theme-personal & {
23
23
  color: var(--color-content-secondary);
24
- font-weight: var(--font-weight-regular);
24
+ font-weight: var(--wds-font-weight-body-regular);
25
25
  }
26
26
 
27
27
  &--selected {
@@ -29,7 +29,7 @@
29
29
 
30
30
  .np-theme-personal & {
31
31
  color: var(--color-interactive-primary);
32
- font-weight: var(--font-weight-semi-bold);
32
+ font-weight: var(--wds-font-weight-body-bold);
33
33
  }
34
34
  }
35
35
 
@@ -84,7 +84,7 @@ export const RTLDiff: Story = {
84
84
  );
85
85
  },
86
86
  ...withRTLDiff({
87
- fixedRows: { heights: [8, 8, 8, 8] },
87
+ fixedRows: { heights: 'auto' },
88
88
  i18n: {
89
89
  firstTab: { en: 'First tab', ar: 'التبويب الأول' },
90
90
  secondTab: { en: 'Second tab', ar: 'التبويب الثاني' },
package/src/Tag/Tag.css CHANGED
@@ -11,7 +11,7 @@
11
11
  }
12
12
  .wds-tag--small {
13
13
  border-radius: 6px;
14
- font-size: var(--font-size-12);
14
+ font-size: var(--wds-font-size-nav);
15
15
  padding-block: 1px;
16
16
  padding-inline: var(--size-4);
17
17
  }
package/src/Tag/Tag.less CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  &--small {
12
12
  border-radius: 6px;
13
- font-size: var(--font-size-12);
13
+ font-size: var(--wds-font-size-nav);
14
14
  padding-block: 1px;
15
15
  padding-inline: var(--size-4);
16
16
  }
package/src/Tag/Tag.tsx CHANGED
@@ -58,7 +58,7 @@ const Tag = forwardRef<HTMLSpanElement, TagProps>(function Tag(
58
58
  'wds-tag',
59
59
  `wds-tag--${size}`,
60
60
  `wds-tag--${sentiment}`,
61
- 'np-text-body-default-bold',
61
+ 'np-text-body-default-bold wds-text-body-default-bold',
62
62
  className,
63
63
  )}
64
64
  >
@@ -29,7 +29,7 @@ const PHOTO = '../card-payment-bakery.webp';
29
29
 
30
30
  const Label = ({ children }: { children: ReactNode }) => (
31
31
  <span
32
- className="np-text-body-default"
32
+ className="wds-text-body-default"
33
33
  style={{
34
34
  color: 'var(--color-content-secondary)',
35
35
  textTransform: 'capitalize',
@@ -49,6 +49,7 @@ export const RTLDiff: Story = {
49
49
  );
50
50
  },
51
51
  ...withRTLDiff({
52
+ fixedRows: { heights: 'auto' },
52
53
  i18n: {
53
54
  value: {
54
55
  en: 'XKQMRTBWJNFL',
package/src/Tile/Tile.css CHANGED
@@ -22,7 +22,8 @@
22
22
  .np-theme-personal .np-tile.decision:active {
23
23
  background-color: var(--color-background-neutral-active);
24
24
  }
25
- .np-theme-personal .np-tile.decision .np-text-body-default {
25
+ .np-theme-personal .np-tile.decision .np-text-body-default,
26
+ .np-theme-personal .np-tile.decision .wds-text-body-default {
26
27
  color: var(--color-content-secondary);
27
28
  }
28
29
  .np-tile.np-decision__tile--fixed-width {
@@ -50,7 +51,7 @@
50
51
  }
51
52
  .np-tile__description {
52
53
  color: var(--color-content-secondary);
53
- font-weight: var(--font-weight-regular);
54
- line-height: var(--line-height-body);
54
+ font-weight: var(--wds-font-weight-body-regular);
55
+ line-height: var(--wds-line-height-body);
55
56
  margin-block-start: var(--size-12);
56
57
  }
@@ -28,7 +28,8 @@
28
28
  background-color: var(--color-background-neutral-active);
29
29
  }
30
30
 
31
- .np-text-body-default {
31
+ .np-text-body-default,
32
+ .wds-text-body-default {
32
33
  color: var(--color-content-secondary);
33
34
  }
34
35
  }
@@ -71,7 +72,7 @@
71
72
 
72
73
  .np-tile__description {
73
74
  color: var(--color-content-secondary);
74
- font-weight: var(--font-weight-regular);
75
- line-height: var(--line-height-body);
75
+ font-weight: var(--wds-font-weight-body-regular);
76
+ line-height: var(--wds-line-height-body);
76
77
  margin-top: var(--size-12);
77
78
  }
@@ -9,7 +9,20 @@ describe('Title', () => {
9
9
  const copy = screen.getByText('Test');
10
10
  expect(copy).toBeInTheDocument();
11
11
  expect(copy.tagName).toBe('H5');
12
- expect(copy).toHaveClass(`np-text-${Typography.TITLE_GROUP}`);
12
+ expect(copy).toHaveClass(
13
+ `np-text-${Typography.TITLE_GROUP}`,
14
+ `wds-text-${Typography.TITLE_GROUP}`,
15
+ );
16
+ });
17
+
18
+ it('renders both typography classes for the given type', () => {
19
+ render(<Title type={Typography.TITLE_SCREEN}>Test</Title>);
20
+ const copy = screen.getByText('Test');
21
+ expect(copy.tagName).toBe('H1');
22
+ expect(copy).toHaveClass(
23
+ `np-text-${Typography.TITLE_SCREEN}`,
24
+ `wds-text-${Typography.TITLE_SCREEN}`,
25
+ );
13
26
  });
14
27
 
15
28
  it('enforces tag via `as` prop', () => {
@@ -17,7 +30,10 @@ describe('Title', () => {
17
30
  const copy = screen.getByText('Test');
18
31
  expect(copy).toBeInTheDocument();
19
32
  expect(copy.tagName).toBe('SPAN');
20
- expect(copy).toHaveClass(`np-text-${Typography.TITLE_GROUP}`);
33
+ expect(copy).toHaveClass(
34
+ `np-text-${Typography.TITLE_GROUP}`,
35
+ `wds-text-${Typography.TITLE_GROUP}`,
36
+ );
21
37
  });
22
38
 
23
39
  it('supports native HTML attrs', () => {
@@ -39,6 +55,9 @@ describe('Title', () => {
39
55
  const copy = screen.getByText('Test');
40
56
  expect(copy).toBeInTheDocument();
41
57
  expect(copy.tagName).toBe('H5');
42
- expect(copy).toHaveClass(`np-text-${Typography.TITLE_GROUP}`);
58
+ expect(copy).toHaveClass(
59
+ `np-text-${Typography.TITLE_GROUP}`,
60
+ `wds-text-${Typography.TITLE_GROUP}`,
61
+ );
43
62
  });
44
63
  });
@@ -39,7 +39,7 @@ const Title = React.forwardRef<
39
39
  <HeaderTag
40
40
  ref={ref as React.Ref<any>}
41
41
  {...props}
42
- className={clsx(`np-text-${type}`, className)}
42
+ className={clsx(`np-text-${type}`, `wds-text-${type}`, className)}
43
43
  />
44
44
  );
45
45
  }
@@ -48,7 +48,7 @@ const Title = React.forwardRef<
48
48
  <HeaderTag
49
49
  ref={ref as React.Ref<any>}
50
50
  {...props}
51
- className={clsx(`np-text-${DEFAULT_TYPE}`, className)}
51
+ className={clsx(`np-text-${DEFAULT_TYPE}`, `wds-text-${DEFAULT_TYPE}`, className)}
52
52
  />
53
53
  );
54
54
  });
@@ -26,12 +26,6 @@
26
26
  }
27
27
  .typeahead--multiple .np-chip {
28
28
  margin-block-end: auto;
29
- animation-name: slide;
30
- animation-duration: 0.03s;
31
- animation-timing-function: ease-in-out;
32
- }
33
- .typeahead--multiple .np-chip:first-child {
34
- animation-name: slideFirst;
35
29
  }
36
30
  .typeahead--multiple .np-chip-remove {
37
31
  animation-name: fadeIn;
@@ -43,7 +37,10 @@
43
37
  min-block-size: auto;
44
38
  padding-block-start: 0;
45
39
  padding-block-end: 0;
46
- overflow: auto;
40
+ overflow: visible;
41
+ }
42
+ .typeahead--multiple .typeahead__input-container--scrollable {
43
+ overflow-y: auto;
47
44
  }
48
45
  .typeahead--multiple .typeahead__input {
49
46
  border: none;
@@ -77,12 +74,12 @@
77
74
  padding-inline-start: 0;
78
75
  }
79
76
  .typeahead--multiple.typeahead--has-value .typeahead__input {
80
- margin-block-end: calc(-1 * var(--size-8) + 1px);
77
+ margin-block-end: calc(-1 * var(--size-8));
81
78
  margin-inline-start: var(--size-4);
82
79
  }
83
80
  .typeahead--multiple.typeahead--has-value .typeahead__input-wrapper::after {
84
81
  content: "";
85
- block-size: calc(var(--size-8) - 1);
82
+ block-size: var(--size-8);
86
83
  inline-size: 100%;
87
84
  }
88
85
  .typeahead__input-wrapper {
@@ -116,7 +113,7 @@
116
113
  min-block-size: var(--input-height-large);
117
114
  }
118
115
  .typeahead-lg.typeahead--multiple .typeahead__input {
119
- padding-block-start: calc(var(--size-8) - 1);
116
+ padding-block-start: var(--size-8);
120
117
  }
121
118
  .typeahead-lg.typeahead--multiple .typeahead__input-wrapper {
122
119
  padding-block-end: var(--size-8);
@@ -128,22 +125,6 @@
128
125
  .typeahead-lg.typeahead--multiple .np-chip {
129
126
  margin-block-end: 0;
130
127
  }
131
- @keyframes slide {
132
- from {
133
- transform: translateX(-12px);
134
- }
135
- to {
136
- transform: none;
137
- }
138
- }
139
- @keyframes slideFirst {
140
- from {
141
- transform: translateX(-4px);
142
- }
143
- to {
144
- transform: none;
145
- }
146
- }
147
128
  @keyframes fadeIn {
148
129
  from {
149
130
  opacity: 0;
@@ -166,13 +147,15 @@
166
147
  color: var(--color-interactive-secondary);
167
148
  }
168
149
  .np-theme-personal .typeahead .np-chip {
169
- margin-block-start: 9px !important;
150
+ margin-block-start: var(--size-8);
170
151
  }
171
- .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
152
+ .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold,
153
+ .np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
172
154
  padding-inline-end: var(--size-16);
173
155
  }
174
156
  @media (max-width: 320px) {
175
- .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold {
157
+ .np-theme-personal .typeahead .np-chip--removable .np-text-body-default-bold,
158
+ .np-theme-personal .typeahead .np-chip--removable .wds-text-body-default-bold {
176
159
  padding-inline-end: var(--size-32);
177
160
  }
178
161
  }