@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
@@ -1,4 +1,91 @@
1
- .np-form-control {
1
+ .np-form-control--size-lg {
2
+ margin: 0;color: var(--color-content-primary);word-wrap: break-word;
3
+ }
4
+ @supports (hyphenate-limit-chars: 1) {
5
+ .np-form-control--size-lg {
6
+ hyphens: auto;hyphenate-limit-chars: 7 3;
7
+ }
8
+ @media (min-width: 840px) {
9
+ .np-form-control--size-lg {
10
+ hyphenate-limit-chars: 8 3;
11
+ }
12
+ }
13
+ @media (min-width: 1160px) {
14
+ .np-form-control--size-lg {
15
+ hyphenate-limit-chars: 10 4 3;
16
+ }
17
+ }
18
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
+ .np-form-control--size-lg {
20
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
+ }
22
+ @media (min-width: 1160px) {
23
+ .np-form-control--size-lg {
24
+ -webkit-hyphenate-limit-before: 4;
25
+ }
26
+ }
27
+ }.np-form-control--size-lg {
28
+ margin-block-end: initial;
29
+ }
30
+ .np-form-control--size-sm {
31
+ word-wrap: break-word;
32
+ }
33
+ @supports (hyphenate-limit-chars: 1) {
34
+ .np-form-control--size-sm {
35
+ hyphens: auto;hyphenate-limit-chars: 7 3;
36
+ }
37
+ @media (min-width: 840px) {
38
+ .np-form-control--size-sm {
39
+ hyphenate-limit-chars: 8 3;
40
+ }
41
+ }
42
+ @media (min-width: 1160px) {
43
+ .np-form-control--size-sm {
44
+ hyphenate-limit-chars: 10 4 3;
45
+ }
46
+ }
47
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
48
+ .np-form-control--size-sm {
49
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
50
+ }
51
+ @media (min-width: 1160px) {
52
+ .np-form-control--size-sm {
53
+ -webkit-hyphenate-limit-before: 4;
54
+ }
55
+ }
56
+ }.np-form-control--size-auto,
57
+ .np-form-control--size-md {
58
+ word-wrap: break-word;
59
+ }
60
+ @supports (hyphenate-limit-chars: 1) {
61
+ .np-form-control--size-auto,
62
+ .np-form-control--size-md {
63
+ hyphens: auto;hyphenate-limit-chars: 7 3;
64
+ }
65
+ @media (min-width: 840px) {
66
+ .np-form-control--size-auto,
67
+ .np-form-control--size-md {
68
+ hyphenate-limit-chars: 8 3;
69
+ }
70
+ }
71
+ @media (min-width: 1160px) {
72
+ .np-form-control--size-auto,
73
+ .np-form-control--size-md {
74
+ hyphenate-limit-chars: 10 4 3;
75
+ }
76
+ }
77
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
78
+ .np-form-control--size-auto,
79
+ .np-form-control--size-md {
80
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
81
+ }
82
+ @media (min-width: 1160px) {
83
+ .np-form-control--size-auto,
84
+ .np-form-control--size-md {
85
+ -webkit-hyphenate-limit-before: 4;
86
+ }
87
+ }
88
+ }.np-form-control {
2
89
  --ring-width: 1px;
3
90
  --ring-color: var(--color-interactive-secondary);
4
91
  border: none;
@@ -35,10 +122,6 @@
35
122
  --ring-color: var(--color-interactive-primary);
36
123
  }
37
124
  .np-form-control--size-auto {
38
- font-weight: var(--font-weight-regular);
39
- font-size: var(--font-size-16);
40
- line-height: 150%;
41
- letter-spacing: -0.011em;
42
125
  word-wrap: break-word;
43
126
  padding-block-start: var(--size-12);
44
127
  padding-block-end: var(--size-12);
@@ -78,12 +161,8 @@
78
161
  padding-block-end: 0 !important;
79
162
  }
80
163
  .np-form-control--size-sm {
81
- font-size: var(--font-size-14);
82
- line-height: 155%;
83
- letter-spacing: -0.006em;
84
- font-weight: var(--font-weight-regular);
85
164
  word-wrap: break-word;
86
- block-size: var(--size-32) !important;
165
+ block-size: calc(2 * var(--size-4) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
87
166
  }
88
167
  @supports (hyphenate-limit-chars: 1) {
89
168
  .np-form-control--size-sm {
@@ -115,16 +194,12 @@
115
194
  }
116
195
  @media (max-width: 320px) {
117
196
  .np-form-control--size-sm {
118
- block-size: var(--size-64) !important;
197
+ block-size: calc(2 * var(--size-8) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
119
198
  }
120
199
  }
121
200
  .np-form-control--size-md {
122
- font-weight: var(--font-weight-regular);
123
- font-size: var(--font-size-16);
124
- line-height: 150%;
125
- letter-spacing: -0.011em;
126
201
  word-wrap: break-word;
127
- block-size: var(--size-48) !important;
202
+ block-size: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
128
203
  }
129
204
  @supports (hyphenate-limit-chars: 1) {
130
205
  .np-form-control--size-md {
@@ -156,21 +231,15 @@
156
231
  }
157
232
  @media (max-width: 320px) {
158
233
  .np-form-control--size-md {
159
- block-size: var(--size-72) !important;
234
+ block-size: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
160
235
  }
161
236
  }
162
237
  .np-form-control--size-lg {
163
238
  margin: 0;
164
239
  color: var(--color-content-primary);
165
- line-height: var(--line-height-title);
166
- letter-spacing: 0;
167
240
  word-wrap: break-word;
168
241
  margin-block-end: initial;
169
- font-size: var(--font-size-22);
170
- font-weight: var(--font-weight-semi-bold);
171
- letter-spacing: -0.018em;
172
- line-height: 125%;
173
- block-size: var(--size-72) !important;
242
+ block-size: calc(2 * var(--size-24) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
174
243
  }
175
244
  @supports (hyphenate-limit-chars: 1) {
176
245
  .np-form-control--size-lg {
@@ -205,6 +274,11 @@
205
274
  .np-form-control--size-lg + ol:not(.list-unstyled) {
206
275
  margin-block-start: var(--size-8);
207
276
  }
277
+ @media (max-width: 320px) {
278
+ .np-form-control--size-lg {
279
+ block-size: calc(2 * var(--size-12) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
280
+ }
281
+ }
208
282
  .np-text-area {
209
283
  min-block-size: var(--size-72);
210
284
  scroll-padding-top: var(--size-8);
@@ -168,6 +168,7 @@ export const RTLDiff: Story = {
168
168
  );
169
169
  },
170
170
  ...withRTLDiff({
171
+ fixedRows: { heights: 'auto' },
171
172
  width: 'stretch',
172
173
  i18n: {
173
174
  placeholder: { en: 'Translated placeholder...', ar: 'نص بديل مترجم...' },
@@ -1,4 +1,4 @@
1
- @import (reference) './../styles/less/core/_typography.less';
1
+ @import (reference) "./../styles/less/core/_typography.less";
2
2
 
3
3
  .np-form-control {
4
4
  --ring-width: 1px;
@@ -40,7 +40,7 @@
40
40
  }
41
41
 
42
42
  &--size-auto {
43
- .np-text-body-large;
43
+ .wds-text-body-large;
44
44
  padding-top: var(--size-12);
45
45
  padding-bottom: var(--size-12);
46
46
  }
@@ -54,23 +54,29 @@
54
54
  }
55
55
 
56
56
  &--size-sm {
57
- .np-text-body-default;
58
- height: var(--size-32) !important;
57
+ .wds-text-body-default;
58
+ height: calc(2 * var(--size-4) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
59
+
59
60
  @media (--screen-400-zoom) {
60
- height: var(--size-64) !important;
61
+ height: calc(2 * var(--size-8) + var(--wds-font-size-body) * var(--wds-line-height-body)) !important;
61
62
  }
62
63
  }
63
64
 
64
65
  &--size-md {
65
- .np-text-body-large;
66
- height: var(--size-48) !important;
66
+ .wds-text-body-large;
67
+ height: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
68
+
67
69
  @media (--screen-400-zoom) {
68
- height: var(--size-72) !important;
70
+ height: calc(2 * var(--size-12) + var(--wds-font-size-body-large) * var(--wds-line-height-body-large)) !important;
69
71
  }
70
72
  }
71
73
 
72
74
  &--size-lg {
73
- .np-text-title-subsection;
74
- height: var(--size-72) !important;
75
+ .wds-text-title-subsection;
76
+ height: calc(2 * var(--size-24) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
77
+
78
+ @media (--screen-400-zoom) {
79
+ height: calc(2 * var(--size-12) + var(--wds-font-size-title-body) * var(--wds-line-height-title-body)) !important;
80
+ }
75
81
  }
76
82
  }
@@ -15,7 +15,7 @@ export const RTLDiff: Story = {
15
15
  render: () => {
16
16
  const i18n = useRtlDiffI18n();
17
17
  return (
18
- <div style={{ display: 'grid', width: '100%', gridTemplateRows: '8lh auto' }}>
18
+ <div>
19
19
  <InstructionsList
20
20
  dos={[i18n.initialTransfer, i18n.inviteFriends]}
21
21
  donts={[i18n.hiddenFees, i18n.badExchangeRate]}
@@ -30,6 +30,7 @@ export const RTLDiff: Story = {
30
30
  );
31
31
  },
32
32
  ...withRTLDiff({
33
+ fixedRows: { heights: 'auto' },
33
34
  i18n: {
34
35
  initialTransfer: {
35
36
  en: 'Do an initial money transfer',
@@ -0,0 +1,3 @@
1
+ :lang(ar) .np-label .np-info {
2
+ line-height: calc(1lh * 0.8);
3
+ }
@@ -0,0 +1,8 @@
1
+ .np-label .np-info{
2
+ :lang(ar) & {
3
+ // arabic fonts have uneven metrics above and below the x-heigh space,
4
+ // so we need to adjust the line-height to make it visually centered
5
+ line-height: calc(1lh * 0.8);
6
+ }
7
+ }
8
+
@@ -29,7 +29,7 @@ const Label = forwardRef<HTMLLabelElement, LabelProps>(
29
29
  id={id}
30
30
  htmlFor={htmlFor}
31
31
  className={clsx(
32
- 'np-label d-flex flex-column np-text-body-default-bold text-primary m-b-0',
32
+ 'np-label d-flex flex-column np-text-body-default-bold wds-text-body-default-bold text-primary m-b-0',
33
33
  className,
34
34
  )}
35
35
  >
@@ -34,6 +34,7 @@ export const RTLDiff: Story = {
34
34
  );
35
35
  },
36
36
  ...withRTLDiff({
37
+ fixedRows: { heights: 'auto' },
37
38
  i18n: {
38
39
  plain: { en: 'Plain label text', ar: 'نص التسمية العادي' },
39
40
  optional: { en: 'Label with optional marker', ar: 'تسمية مع علامة اختيارية' },
@@ -128,12 +128,7 @@ export default {
128
128
  ...withRTLDiff({
129
129
  width: 'stretch',
130
130
  i18n: i18nMap,
131
- fixedRows: {
132
- heights: [
133
- 4, 6, 4, 6, 7, 5, 7, 5, 5, 7, 5, 5, 5, 5, 13, 5, 5, 8, 4, 7, 7, 6, 7, 5, 9, 5, 5, 5, 5, 5,
134
- 5, 5, 6, 6, 6, 14, 8, 8, 8, 8, 8, 8,
135
- ],
136
- },
131
+ fixedRows: { heights: 'auto' },
137
132
  }),
138
133
  } satisfies Meta<ListItemProps>;
139
134
 
@@ -1,5 +1,5 @@
1
1
  .wds-markup-emphasis {
2
- font-weight: var(--font-weight-semi-bold);
2
+ font-weight: var(--wds-font-weight-body-bold);
3
3
  font-style: normal;
4
4
  }
5
5
  .wds-markup-emphasis--important {
@@ -12,7 +12,7 @@
12
12
  color: var(--color-content-negative);
13
13
  }
14
14
  .wds-markup-strong {
15
- font-weight: var(--font-weight-semi-bold);
15
+ font-weight: var(--wds-font-weight-body-bold);
16
16
  }
17
17
  .wds-markup-strikethrough {
18
18
  -webkit-text-decoration: line-through;
@@ -1,5 +1,5 @@
1
1
  .wds-markup-emphasis {
2
- font-weight: var(--font-weight-semi-bold);
2
+ font-weight: var(--wds-font-weight-body-bold);
3
3
  font-style: normal;
4
4
  }
5
5
 
@@ -16,7 +16,7 @@
16
16
  }
17
17
 
18
18
  .wds-markup-strong {
19
- font-weight: var(--font-weight-semi-bold);
19
+ font-weight: var(--wds-font-weight-body-bold);
20
20
  }
21
21
 
22
22
  /// @see https://www.webaxe.org/strikethrough-html-accessibility/
@@ -4,9 +4,10 @@
4
4
  .tw-money-input .tw-money-input__fixed-currency {
5
5
  padding-inline-start: 0 !important;
6
6
  }
7
- .tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection {
7
+ .tw-money-input .tw-money-input__fixed-currency .np-text-title-subsection,
8
+ .tw-money-input .tw-money-input__fixed-currency .wds-text-title-subsection {
8
9
  color: var(--color-content-tertiary);
9
- font-weight: var(--font-weight-semi-bold);
10
+ font-weight: var(--wds-font-weight-body-bold);
10
11
  }
11
12
  [dir="rtl"] .tw-money-input .money-input__number-input {
12
13
  text-align: end;
@@ -18,14 +19,16 @@
18
19
  .tw-money-input.input-group-sm .form-control {
19
20
  min-block-size: 34px;
20
21
  }
21
- .tw-money-input.input-group-sm .np-text-title-subsection {
22
- font-size: var(--font-size-14);
22
+ .tw-money-input.input-group-sm .np-text-title-subsection,
23
+ .tw-money-input.input-group-sm .wds-text-title-subsection {
24
+ font-size: var(--wds-font-size-body);
23
25
  }
24
26
  .tw-money-input.input-group-md .form-control {
25
27
  min-block-size: 53px;
26
28
  }
27
- .tw-money-input.input-group-md .np-text-title-subsection {
28
- font-size: var(--font-size-16);
29
+ .tw-money-input.input-group-md .np-text-title-subsection,
30
+ .tw-money-input.input-group-md .wds-text-title-subsection {
31
+ font-size: var(--wds-font-size-body-large);
29
32
  }
30
33
  .tw-money-input .input-group-addon {
31
34
  flex-shrink: 0;
@@ -5,13 +5,14 @@
5
5
  .tw-money-input__fixed-currency {
6
6
  padding-left: 0 !important;
7
7
 
8
- .np-text-title-subsection {
8
+ .np-text-title-subsection,
9
+ .wds-text-title-subsection {
9
10
  color: var(--color-content-tertiary);
10
- font-weight: var(--font-weight-semi-bold);
11
+ font-weight: var(--wds-font-weight-body-bold);
11
12
  }
12
13
  }
13
14
 
14
- .money-input__number-input{
15
+ .money-input__number-input {
15
16
  [dir="rtl"] & {
16
17
  text-align: end;
17
18
  }
@@ -26,8 +27,9 @@
26
27
  .form-control {
27
28
  min-height: 34px;
28
29
  }
29
- .np-text-title-subsection {
30
- font-size: var(--font-size-14);
30
+ .np-text-title-subsection,
31
+ .wds-text-title-subsection {
32
+ font-size: var(--wds-font-size-body);
31
33
  }
32
34
  }
33
35
 
@@ -35,8 +37,9 @@
35
37
  .form-control {
36
38
  min-height: 53px;
37
39
  }
38
- .np-text-title-subsection {
39
- font-size: var(--font-size-16);
40
+ .np-text-title-subsection,
41
+ .wds-text-title-subsection {
42
+ font-size: var(--wds-font-size-body-large);
40
43
  }
41
44
  }
42
45
 
@@ -75,7 +75,9 @@ export const TriggerVariants: Story = {
75
75
  </Field>
76
76
  </>
77
77
  ),
78
- ...withRTLDiff(),
78
+ ...withRTLDiff({
79
+ fixedRows: { heights: 'auto' },
80
+ }),
79
81
  };
80
82
 
81
83
  export const OpenDropdown: Story = {
@@ -9,8 +9,8 @@
9
9
  --nudge-container-padding: var(--size-16);
10
10
  --nudge-content-flex-alignment: center;
11
11
  --nudge-title-color: var(--color-content-primary);
12
- --nudge-title-font-weight: var(--font-weight-semi-bold);
13
- --nudge-title-line-height: var(--line-height-title);
12
+ --nudge-title-font-weight: var(--wds-font-weight-body-bold);
13
+ --nudge-title-line-height: var(--wds-line-height-title-section);
14
14
  --nudge-control-width: var(--size-24);
15
15
  --nudge-control-background-color: var(--color-background-neutral);
16
16
  align-items: stretch;
@@ -141,7 +141,7 @@
141
141
  margin: 0;
142
142
  }
143
143
  .wds-nudge-container .wds-nudge-content .wds-nudge-link {
144
- font-weight: var(--font-weight-semi-bold);
144
+ font-weight: var(--wds-font-weight-body-bold);
145
145
  margin-block-start: var(--size-4);
146
146
  -webkit-text-decoration: var(--nudge-link-text-decoration);
147
147
  text-decoration: var(--nudge-link-text-decoration);
@@ -9,8 +9,8 @@
9
9
  --nudge-container-padding: var(--size-16);
10
10
  --nudge-content-flex-alignment: center;
11
11
  --nudge-title-color: var(--color-content-primary);
12
- --nudge-title-font-weight: var(--font-weight-semi-bold);
13
- --nudge-title-line-height: var(--line-height-title);
12
+ --nudge-title-font-weight: var(--wds-font-weight-body-bold);
13
+ --nudge-title-line-height: var(--wds-line-height-title-section);
14
14
  --nudge-control-width: var(--size-24);
15
15
  --nudge-control-background-color: var(--color-background-neutral);
16
16
 
@@ -120,7 +120,7 @@
120
120
  }
121
121
 
122
122
  .wds-nudge-link {
123
- font-weight: var(--font-weight-semi-bold);
123
+ font-weight: var(--wds-font-weight-body-bold);
124
124
  margin-top: var(--size-4);
125
125
  text-decoration: var(--nudge-link-text-decoration);
126
126
  }
@@ -33,7 +33,7 @@ export const Sizes: Story = {
33
33
  </Field>
34
34
  </>
35
35
  ),
36
- ...withRTLDiff({ renderAs: 'iframe' }),
36
+ ...withRTLDiff({ renderAs: 'iframe', fixedRows: { heights: [7, 6, 8] } }),
37
37
  };
38
38
 
39
39
  export const DropdownOpen: Story = {
@@ -22,7 +22,7 @@ const PocketCard = ({ variant }: { variant?: PocketVariant } = {}) => (
22
22
  {variant}
23
23
  </span>
24
24
  )}
25
- <strong className="np-text-title-screen" style={{ color: 'inherit' }}>
25
+ <strong className="wds-text-title-screen" style={{ color: 'inherit' }}>
26
26
  Some headline text
27
27
  </strong>
28
28
  <p style={{ margin: 0 }}>A bit of body copy</p>
@@ -227,7 +227,7 @@ export const ExposedTokens: Story = {
227
227
  <PocketSurface key={variant} pocket={variant}>
228
228
  <div className="p-a-3">
229
229
  <h4
230
- className="d-block m-b-2 text-capitalize np-text-title-body"
230
+ className="d-block m-b-2 text-capitalize wds-text-title-body"
231
231
  style={{ color: 'inherit' }}
232
232
  >
233
233
  {variant}
@@ -1,9 +1,38 @@
1
+ .np-popover__container.np-bottom-sheet .np-popover__title {
2
+ margin: 0;color: var(--color-content-primary);word-wrap: break-word;
3
+ }
4
+ @supports (hyphenate-limit-chars: 1) {
5
+ .np-popover__container.np-bottom-sheet .np-popover__title {
6
+ hyphens: auto;hyphenate-limit-chars: 7 3;
7
+ }
8
+ @media (min-width: 840px) {
9
+ .np-popover__container.np-bottom-sheet .np-popover__title {
10
+ hyphenate-limit-chars: 8 3;
11
+ }
12
+ }
13
+ @media (min-width: 1160px) {
14
+ .np-popover__container.np-bottom-sheet .np-popover__title {
15
+ hyphenate-limit-chars: 10 4 3;
16
+ }
17
+ }
18
+ }@supports (not (hyphenate-limit-chars: 1)) and (-webkit-hyphenate-limit-before: 1) {
19
+ .np-popover__container.np-bottom-sheet .np-popover__title {
20
+ hyphens: auto;-webkit-hyphenate-limit-before: 3;-webkit-hyphenate-limit-after: 3;
21
+ }
22
+ @media (min-width: 1160px) {
23
+ .np-popover__container.np-bottom-sheet .np-popover__title {
24
+ -webkit-hyphenate-limit-before: 4;
25
+ }
26
+ }
27
+ }.np-popover__container.np-bottom-sheet .np-popover__title {
28
+ margin-block-end: initial;
29
+ }
1
30
  .np-theme-personal .np-popover__container {
2
31
  border-radius: var(--radius-medium);
3
32
  }
4
33
  .np-popover__container .np-popover__content {
5
34
  color: var(--color-content-secondary);
6
- font-size: var(--font-size-14);
35
+ font-size: var(--wds-font-size-body);
7
36
  }
8
37
  .np-popover__container .np-popover__content p:last-child {
9
38
  margin-block-end: 0;
@@ -19,14 +48,8 @@
19
48
  .np-popover__container.np-bottom-sheet .np-popover__title {
20
49
  margin: 0;
21
50
  color: var(--color-content-primary);
22
- line-height: var(--line-height-title);
23
- letter-spacing: 0;
24
51
  word-wrap: break-word;
25
52
  margin-block-end: initial;
26
- font-weight: var(--font-weight-semi-bold);
27
- font-size: var(--font-size-26);
28
- letter-spacing: -0.02em;
29
- line-height: 122%;
30
53
  }
31
54
  @supports (hyphenate-limit-chars: 1) {
32
55
  .np-popover__container.np-bottom-sheet .np-popover__title {
@@ -10,7 +10,7 @@
10
10
 
11
11
  .np-popover__content {
12
12
  color: var(--color-content-secondary);
13
- font-size: var(--font-size-14);
13
+ font-size: var(--wds-font-size-body);
14
14
 
15
15
  p:last-child {
16
16
  margin-bottom: 0;
@@ -30,7 +30,7 @@
30
30
 
31
31
  &.np-bottom-sheet {
32
32
  .np-popover__title {
33
- .np-text-title-section();
33
+ .wds-text-title-section();
34
34
  }
35
35
 
36
36
  .np-popover__content {
@@ -1,9 +1,10 @@
1
- .np-progress-bar__title .h4 {
1
+ .np-progress-bar__title .h4,
2
+ .np-progress-bar__title .wds-text-title-body {
2
3
  color: var(--color-content-primary);
3
4
  margin-block-end: var(--size-4);
4
5
  }
5
6
  .np-progress-bar p {
6
7
  color: var(--color-content-primary);
7
8
  margin-block-start: var(--size-4);
8
- font-weight: var(--font-weight-semi-bold);
9
+ font-weight: var(--wds-font-weight-body-bold);
9
10
  }
@@ -1,14 +1,15 @@
1
1
  .np-progress-bar {
2
- &__title {
3
- .h4 {
4
- color: var(--color-content-primary);
5
- margin-bottom: var(--size-4);
6
- }
7
- }
8
-
9
- p {
2
+ &__title {
3
+ .h4,
4
+ .wds-text-title-body {
10
5
  color: var(--color-content-primary);
11
- margin-top: var(--size-4);
12
- font-weight: var(--font-weight-semi-bold);
6
+ margin-bottom: var(--size-4);
13
7
  }
14
- }
8
+ }
9
+
10
+ p {
11
+ color: var(--color-content-primary);
12
+ margin-top: var(--size-4);
13
+ font-weight: var(--wds-font-weight-body-bold);
14
+ }
15
+ }
@@ -33,6 +33,7 @@ export const RTLDiff: Story = {
33
33
  );
34
34
  },
35
35
  ...withRTLDiff({
36
+ fixedRows: { heights: 'auto' },
36
37
  i18n: {
37
38
  title1: { en: 'Send 5,550 GBP', ar: 'أرسل ٥٬٥٥٠ جنيه إسترليني' },
38
39
  description: {
@@ -315,6 +315,7 @@ export const RTLDiff: Story = {
315
315
  );
316
316
  },
317
317
  ...withRTLDiff({
318
+ fixedRows: { heights: 'auto' },
318
319
  i18n: {
319
320
  defaultIconTitle: { en: 'Default status icon', ar: 'أيقونة الحالة الافتراضية' },
320
321
  defaultIconDescription: {
@@ -515,6 +515,7 @@ export const RTLDiff: Story = {
515
515
  );
516
516
  },
517
517
  ...withRTLDiff({
518
+ fixedRows: { heights: [10, 12, 12, 13, 13] },
518
519
  renderAs: 'iframe',
519
520
  i18n: {
520
521
  titleOnly: { en: 'Title only', ar: 'العنوان فقط' },
@@ -583,6 +583,7 @@ export const RTLDiff: Story = {
583
583
  );
584
584
  },
585
585
  ...withRTLDiff({
586
+ fixedRows: { heights: 'auto' },
586
587
  i18n: {
587
588
  basicDescription: { en: 'Basic description only.', ar: 'الوصف الأساسي فقط.' },
588
589
  withTitleHeading: { en: 'With Title', ar: 'مع عنوان' },
@@ -47,6 +47,7 @@ export const RTLDiff: Story = {
47
47
  );
48
48
  },
49
49
  ...withRTLDiff({
50
+ fixedRows: { heights: 'auto' },
50
51
  i18n: {
51
52
  defaultIcon: {
52
53
  en: 'Short content with default icon.',
@@ -21,7 +21,8 @@
21
21
  }
22
22
  .wds-prompt__media-wrapper {
23
23
  align-self: flex-start;
24
- padding-block-start: calc(var(--size-4) - 1px);
24
+ align-content: center;
25
+ min-block-size: calc(var(--wds-line-height-body) * var(--wds-font-size-body));
25
26
  }
26
27
  .wds-prompt__media-wrapper .tw-icon-tags,
27
28
  .wds-prompt__media-wrapper .tw-icon-confetti {
@@ -22,7 +22,8 @@
22
22
 
23
23
  &__media-wrapper {
24
24
  align-self: flex-start;
25
- padding-top: calc(var(--size-4) - 1px);
25
+ align-content: center;
26
+ min-height: calc(var(--wds-line-height-body) * var(--wds-font-size-body));
26
27
 
27
28
  .tw-icon-tags,
28
29
  .tw-icon-confetti {