@transferwise/components 0.0.0-experimental-fa9fbe9 → 0.0.0-experimental-00012dd

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 (500) hide show
  1. package/build/accordion/AccordionItem/AccordionItem.js +1 -1
  2. package/build/accordion/AccordionItem/AccordionItem.mjs +1 -1
  3. package/build/actionButton/ActionButton.js +1 -1
  4. package/build/actionButton/ActionButton.mjs +1 -1
  5. package/build/actionOption/ActionOption.js +1 -1
  6. package/build/actionOption/ActionOption.mjs +1 -1
  7. package/build/alert/Alert.js +1 -1
  8. package/build/alert/Alert.mjs +1 -1
  9. package/build/alert/inlineMarkdown/InlineMarkdown.js +1 -1
  10. package/build/alert/inlineMarkdown/InlineMarkdown.mjs +1 -1
  11. package/build/avatar/Avatar.js +1 -1
  12. package/build/avatar/Avatar.mjs +1 -1
  13. package/build/avatarLayout/AvatarLayout.js +1 -1
  14. package/build/avatarLayout/AvatarLayout.mjs +1 -1
  15. package/build/avatarView/AvatarView.js +1 -1
  16. package/build/avatarView/AvatarView.mjs +1 -1
  17. package/build/avatarWrapper/AvatarWrapper.js +1 -1
  18. package/build/avatarWrapper/AvatarWrapper.mjs +1 -1
  19. package/build/badge/Badge.js +1 -1
  20. package/build/badge/Badge.mjs +1 -1
  21. package/build/button/Button.js +1 -1
  22. package/build/button/Button.mjs +1 -1
  23. package/build/button/LegacyButton.js +1 -1
  24. package/build/button/LegacyButton.mjs +1 -1
  25. package/build/button/classMap.js +1 -1
  26. package/build/button/classMap.mjs +1 -1
  27. package/build/button/legacyUtils/legacyUtils.js +1 -1
  28. package/build/button/legacyUtils/legacyUtils.mjs +1 -1
  29. package/build/card/Card.js +1 -1
  30. package/build/card/Card.mjs +1 -1
  31. package/build/checkbox/Checkbox.js +1 -1
  32. package/build/checkbox/Checkbox.mjs +1 -1
  33. package/build/chevron/Chevron.js +1 -1
  34. package/build/chevron/Chevron.mjs +1 -1
  35. package/build/chips/Chip.js +1 -1
  36. package/build/chips/Chip.mjs +1 -1
  37. package/build/circularButton/CircularButton.js +2 -2
  38. package/build/circularButton/CircularButton.js.map +1 -1
  39. package/build/circularButton/CircularButton.mjs +2 -2
  40. package/build/circularButton/CircularButton.mjs.map +1 -1
  41. package/build/common/bottomSheet/BottomSheet.js +2 -2
  42. package/build/common/bottomSheet/BottomSheet.js.map +1 -1
  43. package/build/common/bottomSheet/BottomSheet.mjs +2 -2
  44. package/build/common/bottomSheet/BottomSheet.mjs.map +1 -1
  45. package/build/common/circle/Circle.js +2 -2
  46. package/build/common/circle/Circle.js.map +1 -1
  47. package/build/common/circle/Circle.mjs +2 -2
  48. package/build/common/circle/Circle.mjs.map +1 -1
  49. package/build/common/hooks/useLayout/useLayout.js +6 -6
  50. package/build/common/hooks/useLayout/useLayout.js.map +1 -1
  51. package/build/common/hooks/useLayout/useLayout.mjs +1 -1
  52. package/build/common/hooks/useLayout/useLayout.mjs.map +1 -1
  53. package/build/common/hooks/useResizeObserver.js +3 -3
  54. package/build/common/hooks/useResizeObserver.js.map +1 -1
  55. package/build/common/hooks/useResizeObserver.mjs +3 -3
  56. package/build/common/hooks/useResizeObserver.mjs.map +1 -1
  57. package/build/common/hooks/useScreenSize.js.map +1 -1
  58. package/build/common/hooks/useScreenSize.mjs.map +1 -1
  59. package/build/common/panel/Panel.js +1 -1
  60. package/build/common/panel/Panel.mjs +1 -1
  61. package/build/common/responsivePanel/ResponsivePanel.js +1 -1
  62. package/build/common/responsivePanel/ResponsivePanel.mjs +1 -1
  63. package/build/criticalBanner/CriticalCommsBanner.js +1 -4
  64. package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
  65. package/build/criticalBanner/CriticalCommsBanner.mjs +1 -4
  66. package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
  67. package/build/dateInput/DateInput.js +1 -1
  68. package/build/dateInput/DateInput.mjs +1 -1
  69. package/build/dateLookup/DateLookup.js +2 -2
  70. package/build/dateLookup/DateLookup.js.map +1 -1
  71. package/build/dateLookup/DateLookup.mjs +1 -1
  72. package/build/dateLookup/DateLookup.mjs.map +1 -1
  73. package/build/dateLookup/dateHeader/DateHeader.js +1 -1
  74. package/build/dateLookup/dateHeader/DateHeader.mjs +1 -1
  75. package/build/dateLookup/dateTrigger/DateTrigger.js +1 -1
  76. package/build/dateLookup/dateTrigger/DateTrigger.mjs +1 -1
  77. package/build/decision/Decision.js +3 -3
  78. package/build/decision/Decision.js.map +1 -1
  79. package/build/decision/Decision.mjs +1 -1
  80. package/build/decision/Decision.mjs.map +1 -1
  81. package/build/definitionList/DefinitionList.js +1 -1
  82. package/build/definitionList/DefinitionList.mjs +1 -1
  83. package/build/dimmer/Dimmer.js +1 -1
  84. package/build/dimmer/Dimmer.mjs +1 -1
  85. package/build/display/Display.js +1 -1
  86. package/build/display/Display.mjs +1 -1
  87. package/build/drawer/Drawer.js +1 -1
  88. package/build/drawer/Drawer.mjs +1 -1
  89. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js +1 -1
  90. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +1 -1
  91. package/build/field/Field.js +3 -4
  92. package/build/field/Field.js.map +1 -1
  93. package/build/field/Field.mjs +3 -4
  94. package/build/field/Field.mjs.map +1 -1
  95. package/build/flowNavigation/FlowNavigation.js +3 -3
  96. package/build/flowNavigation/FlowNavigation.js.map +1 -1
  97. package/build/flowNavigation/FlowNavigation.mjs +1 -1
  98. package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
  99. package/build/header/Header.js +1 -1
  100. package/build/header/Header.mjs +1 -1
  101. package/build/i18n/en.json +0 -2
  102. package/build/i18n/en.json.js +0 -2
  103. package/build/i18n/en.json.js.map +1 -1
  104. package/build/i18n/en.json.mjs +0 -2
  105. package/build/i18n/en.json.mjs.map +1 -1
  106. package/build/image/Image.js +1 -1
  107. package/build/image/Image.mjs +1 -1
  108. package/build/index.js +2 -4
  109. package/build/index.js.map +1 -1
  110. package/build/index.mjs +1 -2
  111. package/build/index.mjs.map +1 -1
  112. package/build/info/Info.js +1 -1
  113. package/build/info/Info.mjs +1 -1
  114. package/build/inlineAlert/InlineAlert.js +1 -1
  115. package/build/inlineAlert/InlineAlert.mjs +1 -1
  116. package/build/inputs/SearchInput.js +1 -1
  117. package/build/inputs/SearchInput.mjs +1 -1
  118. package/build/inputs/SelectInput/SelectInput.js +2 -2
  119. package/build/inputs/SelectInput/SelectInput.js.map +1 -1
  120. package/build/inputs/SelectInput/SelectInput.mjs +1 -1
  121. package/build/inputs/SelectInput/SelectInput.mjs.map +1 -1
  122. package/build/instructionsList/InstructionsList.js +1 -1
  123. package/build/instructionsList/InstructionsList.mjs +1 -1
  124. package/build/link/Link.js +1 -1
  125. package/build/link/Link.mjs +1 -1
  126. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js +1 -1
  127. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +1 -1
  128. package/build/listItem/ListItem.js +1 -1
  129. package/build/listItem/ListItem.mjs +1 -1
  130. package/build/listItem/Prompt/ListItemPrompt.js +3 -4
  131. package/build/listItem/Prompt/ListItemPrompt.js.map +1 -1
  132. package/build/listItem/Prompt/ListItemPrompt.mjs +3 -4
  133. package/build/listItem/Prompt/ListItemPrompt.mjs.map +1 -1
  134. package/build/loader/Loader.js +1 -1
  135. package/build/loader/Loader.mjs +1 -1
  136. package/build/logo/Logo.js +1 -1
  137. package/build/logo/Logo.js.map +1 -1
  138. package/build/logo/Logo.mjs +1 -1
  139. package/build/logo/Logo.mjs.map +1 -1
  140. package/build/main.css +330 -495
  141. package/build/markdown/Markdown.js +1 -1
  142. package/build/markdown/Markdown.mjs +1 -1
  143. package/build/modal/Modal.js +1 -1
  144. package/build/modal/Modal.mjs +1 -1
  145. package/build/moneyInput/MoneyInput.js +1 -1
  146. package/build/moneyInput/MoneyInput.mjs +1 -1
  147. package/build/navigationOption/NavigationOption.js +1 -1
  148. package/build/navigationOption/NavigationOption.mjs +1 -1
  149. package/build/nudge/Nudge.js +1 -1
  150. package/build/nudge/Nudge.mjs +1 -1
  151. package/build/overlayHeader/OverlayHeader.js +1 -1
  152. package/build/overlayHeader/OverlayHeader.mjs +1 -1
  153. package/build/phoneNumberInput/PhoneNumberInput.js +1 -1
  154. package/build/phoneNumberInput/PhoneNumberInput.mjs +1 -1
  155. package/build/popover/Popover.js +1 -1
  156. package/build/popover/Popover.mjs +1 -1
  157. package/build/processIndicator/ProcessIndicator.js +1 -1
  158. package/build/processIndicator/ProcessIndicator.mjs +1 -1
  159. package/build/progressBar/ProgressBar.js +1 -1
  160. package/build/progressBar/ProgressBar.mjs +1 -1
  161. package/build/promoCard/PromoCard.js +1 -1
  162. package/build/promoCard/PromoCard.mjs +1 -1
  163. package/build/promoCard/PromoCardIndicator.js +1 -1
  164. package/build/promoCard/PromoCardIndicator.mjs +1 -1
  165. package/build/prompt/ActionPrompt/ActionPrompt.js +42 -10
  166. package/build/prompt/ActionPrompt/ActionPrompt.js.map +1 -1
  167. package/build/prompt/ActionPrompt/ActionPrompt.mjs +41 -9
  168. package/build/prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
  169. package/build/prompt/InfoPrompt/InfoPrompt.js +1 -1
  170. package/build/prompt/InfoPrompt/InfoPrompt.mjs +1 -1
  171. package/build/prompt/InlinePrompt/InlinePrompt.js +1 -1
  172. package/build/prompt/InlinePrompt/InlinePrompt.mjs +1 -1
  173. package/build/prompt/PrimitivePrompt/PrimitivePrompt.js +4 -11
  174. package/build/prompt/PrimitivePrompt/PrimitivePrompt.js.map +1 -1
  175. package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs +4 -11
  176. package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs.map +1 -1
  177. package/build/provider/Provider.js +1 -1
  178. package/build/provider/Provider.mjs +1 -1
  179. package/build/radio/Radio.js +1 -1
  180. package/build/radio/Radio.mjs +1 -1
  181. package/build/segmentedControl/SegmentedControl.js +1 -1
  182. package/build/segmentedControl/SegmentedControl.mjs +1 -1
  183. package/build/select/Select.js +1 -1
  184. package/build/select/Select.mjs +1 -1
  185. package/build/select/option/Option.js +1 -1
  186. package/build/select/option/Option.mjs +1 -1
  187. package/build/statusIcon/StatusIcon.js +2 -2
  188. package/build/statusIcon/StatusIcon.js.map +1 -1
  189. package/build/statusIcon/StatusIcon.mjs +2 -2
  190. package/build/statusIcon/StatusIcon.mjs.map +1 -1
  191. package/build/stepper/Stepper.js +1 -1
  192. package/build/stepper/Stepper.mjs +1 -1
  193. package/build/sticky/Sticky.js +1 -1
  194. package/build/sticky/Sticky.mjs +1 -1
  195. package/build/styles/accordion/Accordion.css +1 -1
  196. package/build/styles/card/Card.css +2 -2
  197. package/build/styles/carousel/Carousel.css +5 -5
  198. package/build/styles/common/Option/Option.css +1 -1
  199. package/build/styles/common/baseCard/BaseCard.css +1 -1
  200. package/build/styles/container/Container.css +3 -3
  201. package/build/styles/criticalBanner/CriticalCommsBanner.css +1 -1
  202. package/build/styles/css/accordion.css +4 -4
  203. package/build/styles/css/button-groups.css +6 -6
  204. package/build/styles/css/buttons.css +1 -1
  205. package/build/styles/css/circles.css +1 -1
  206. package/build/styles/css/column-layout.css +4 -4
  207. package/build/styles/css/decision.css +4 -4
  208. package/build/styles/css/dropdowns.css +10 -10
  209. package/build/styles/css/droppable.css +8 -8
  210. package/build/styles/css/flex.css +14 -14
  211. package/build/styles/css/footer.css +3 -3
  212. package/build/styles/css/grid.css +19 -19
  213. package/build/styles/css/input-groups.css +12 -12
  214. package/build/styles/css/list-group.css +8 -8
  215. package/build/styles/css/modals.css +3 -3
  216. package/build/styles/css/navbar.css +62 -62
  217. package/build/styles/css/navs.css +2 -2
  218. package/build/styles/css/neptune.css +258 -258
  219. package/build/styles/css/panels.css +9 -9
  220. package/build/styles/css/popovers.css +13 -13
  221. package/build/styles/css/select.css +1 -1
  222. package/build/styles/css/sequences.css +6 -6
  223. package/build/styles/css/table.css +6 -6
  224. package/build/styles/css/utilities.css +4 -4
  225. package/build/styles/css/wells.css +4 -4
  226. package/build/styles/dateInput/DateInput.css +1 -1
  227. package/build/styles/definitionList/DefinitionList.css +2 -2
  228. package/build/styles/drawer/Drawer.css +1 -1
  229. package/build/styles/inputs/Input.css +3 -3
  230. package/build/styles/inputs/SelectInput/Options/SelectInputOptions.css +2 -2
  231. package/build/styles/inputs/SelectInput/SelectInput.css +2 -2
  232. package/build/styles/inputs/TextArea.css +3 -3
  233. package/build/styles/less/legacy-variables.less +34 -47
  234. package/build/styles/less/neptune-tokens.less +2 -2
  235. package/build/styles/logo/Logo.css +2 -2
  236. package/build/styles/main.css +330 -495
  237. package/build/styles/modal/Modal.css +5 -5
  238. package/build/styles/popover/Popover.css +3 -3
  239. package/build/styles/promoCard/PromoCard.css +1 -1
  240. package/build/styles/prompt/ActionPrompt/ActionPrompt.css +1 -1
  241. package/build/styles/prompt/PrimitivePrompt/PrimitivePrompt.css +1 -1
  242. package/build/styles/props/custom-media.css +23 -11
  243. package/build/styles/props/neptune-tokens.css +1 -1
  244. package/build/styles/snackbar/Snackbar.css +2 -2
  245. package/build/styles/stepper/Stepper.css +2 -2
  246. package/build/styles/styles/less/accordion.css +4 -4
  247. package/build/styles/styles/less/button-groups.css +6 -6
  248. package/build/styles/styles/less/buttons.css +1 -1
  249. package/build/styles/styles/less/circles.css +1 -1
  250. package/build/styles/styles/less/column-layout.css +4 -4
  251. package/build/styles/styles/less/decision.css +4 -4
  252. package/build/styles/styles/less/dropdowns.css +10 -10
  253. package/build/styles/styles/less/droppable.css +8 -8
  254. package/build/styles/styles/less/flex.css +14 -14
  255. package/build/styles/styles/less/footer.css +3 -3
  256. package/build/styles/styles/less/forms/bootstrap-forms.css +9 -9
  257. package/build/styles/styles/less/grid.css +19 -19
  258. package/build/styles/styles/less/input-groups.css +12 -12
  259. package/build/styles/styles/less/list-group.css +8 -8
  260. package/build/styles/styles/less/modals.css +3 -3
  261. package/build/styles/styles/less/navbar.css +62 -62
  262. package/build/styles/styles/less/navs.css +2 -2
  263. package/build/styles/styles/less/neptune.css +258 -258
  264. package/build/styles/styles/less/panels.css +9 -9
  265. package/build/styles/styles/less/popovers.css +13 -13
  266. package/build/styles/styles/less/select.css +1 -1
  267. package/build/styles/styles/less/sequences.css +6 -6
  268. package/build/styles/styles/less/table.css +6 -6
  269. package/build/styles/styles/less/utilities.css +4 -4
  270. package/build/styles/styles/less/wells.css +4 -4
  271. package/build/styles/styles/props/custom-media.css +1 -11
  272. package/build/styles/table/Table.css +1 -1
  273. package/build/styles/tabs/Tabs.css +2 -2
  274. package/build/styles/typeahead/Typeahead.css +1 -1
  275. package/build/summary/Summary.js +1 -1
  276. package/build/summary/Summary.mjs +1 -1
  277. package/build/table/Table.js +7 -6
  278. package/build/table/Table.js.map +1 -1
  279. package/build/table/Table.mjs +7 -6
  280. package/build/table/Table.mjs.map +1 -1
  281. package/build/table/TableRow.js +1 -1
  282. package/build/table/TableRow.mjs +1 -1
  283. package/build/table/TableStatusText.js +1 -1
  284. package/build/table/TableStatusText.mjs +1 -1
  285. package/build/tabs/Tabs.js +1 -1
  286. package/build/tabs/Tabs.mjs +1 -1
  287. package/build/tile/Tile.js +1 -1
  288. package/build/tile/Tile.mjs +1 -1
  289. package/build/title/Title.js +1 -1
  290. package/build/title/Title.mjs +1 -1
  291. package/build/tooltip/Tooltip.js +1 -1
  292. package/build/tooltip/Tooltip.mjs +1 -1
  293. package/build/typeahead/Typeahead.js +3 -4
  294. package/build/typeahead/Typeahead.js.map +1 -1
  295. package/build/typeahead/Typeahead.mjs +3 -4
  296. package/build/typeahead/Typeahead.mjs.map +1 -1
  297. package/build/types/circularButton/CircularButton.d.ts.map +1 -1
  298. package/build/types/common/bottomSheet/BottomSheet.d.ts.map +1 -1
  299. package/build/types/common/hooks/useResizeObserver.d.ts +1 -1
  300. package/build/types/common/hooks/useResizeObserver.d.ts.map +1 -1
  301. package/build/types/common/hooks/useScreenSize.d.ts +1 -1
  302. package/build/types/common/hooks/useScreenSize.d.ts.map +1 -1
  303. package/build/types/common/index.d.ts +1 -1
  304. package/build/types/common/index.d.ts.map +1 -1
  305. package/build/types/criticalBanner/CriticalCommsBanner.d.ts +0 -3
  306. package/build/types/criticalBanner/CriticalCommsBanner.d.ts.map +1 -1
  307. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  308. package/build/types/decision/Decision.d.ts.map +1 -1
  309. package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
  310. package/build/types/index.d.ts +4 -3
  311. package/build/types/index.d.ts.map +1 -1
  312. package/build/types/logo/Logo.d.ts +1 -1
  313. package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +11 -2
  314. package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts.map +1 -1
  315. package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts +3 -35
  316. package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts.map +1 -1
  317. package/build/types/prompt/index.d.ts +0 -2
  318. package/build/types/prompt/index.d.ts.map +1 -1
  319. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  320. package/build/types/table/Table.d.ts.map +1 -1
  321. package/build/types/test-utils/index.d.ts +0 -4
  322. package/build/types/test-utils/index.d.ts.map +1 -1
  323. package/build/upload/Upload.js +1 -1
  324. package/build/upload/Upload.mjs +1 -1
  325. package/build/upload/steps/completeStep/completeStep.js +1 -1
  326. package/build/upload/steps/completeStep/completeStep.mjs +1 -1
  327. package/build/upload/steps/processingStep/processingStep.js +1 -1
  328. package/build/upload/steps/processingStep/processingStep.mjs +1 -1
  329. package/build/upload/steps/uploadImageStep/uploadImageStep.js +1 -1
  330. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +1 -1
  331. package/build/uploadInput/UploadInput.js +1 -1
  332. package/build/uploadInput/UploadInput.mjs +1 -1
  333. package/build/uploadInput/uploadButton/UploadButton.js +1 -1
  334. package/build/uploadInput/uploadButton/UploadButton.mjs +1 -1
  335. package/build/uploadInput/uploadButton/defaults.js +1 -1
  336. package/build/uploadInput/uploadButton/defaults.mjs +1 -1
  337. package/build/uploadInput/uploadItem/UploadItem.js +1 -1
  338. package/build/uploadInput/uploadItem/UploadItem.mjs +1 -1
  339. package/build/withDisplayFormat/WithDisplayFormat.js +1 -1
  340. package/build/withDisplayFormat/WithDisplayFormat.mjs +1 -1
  341. package/package.json +3 -3
  342. package/src/accordion/Accordion.css +1 -1
  343. package/src/card/Card.css +2 -2
  344. package/src/carousel/Carousel.css +5 -5
  345. package/src/circularButton/CircularButton.tsx +3 -2
  346. package/src/common/Option/Option.css +1 -1
  347. package/src/common/baseCard/BaseCard.css +1 -1
  348. package/src/common/bottomSheet/BottomSheet.test.story.tsx +6 -5
  349. package/src/common/bottomSheet/BottomSheet.tsx +2 -2
  350. package/src/common/circle/Circle.tsx +2 -2
  351. package/src/common/hooks/useLayout/useLayout.ts +1 -1
  352. package/src/common/hooks/useResizeObserver.ts +2 -3
  353. package/src/common/hooks/useScreenSize.ts +1 -1
  354. package/src/common/index.ts +1 -1
  355. package/src/common/responsivePanel/ResponsivePanel.test.js +3 -2
  356. package/src/container/Container.css +3 -3
  357. package/src/criticalBanner/CriticalCommsBanner.css +1 -1
  358. package/src/criticalBanner/CriticalCommsBanner.story.tsx +0 -4
  359. package/src/criticalBanner/CriticalCommsBanner.test.story.tsx +1 -1
  360. package/src/criticalBanner/CriticalCommsBanner.tsx +0 -3
  361. package/src/dateInput/DateInput.css +1 -1
  362. package/src/dateLookup/DateLookup.tsx +1 -1
  363. package/src/decision/Decision.test.tsx +2 -1
  364. package/src/decision/Decision.tsx +2 -1
  365. package/src/definitionList/DefinitionList.css +2 -2
  366. package/src/definitionList/DefinitionList.less +2 -2
  367. package/src/drawer/Drawer.css +1 -1
  368. package/src/flowNavigation/FlowNavigation.test.js +1 -1
  369. package/src/flowNavigation/FlowNavigation.tsx +2 -1
  370. package/src/i18n/en.json +0 -2
  371. package/src/index.ts +3 -3
  372. package/src/inputs/Input.css +3 -3
  373. package/src/inputs/SelectInput/Options/SelectInputOptions.css +2 -2
  374. package/src/inputs/SelectInput/SelectInput.css +2 -2
  375. package/src/inputs/SelectInput/SelectInput.tsx +1 -1
  376. package/src/inputs/TextArea.css +3 -3
  377. package/src/logo/Logo.css +2 -2
  378. package/src/logo/Logo.story.tsx +3 -3
  379. package/src/logo/Logo.tsx +1 -1
  380. package/src/main.css +330 -495
  381. package/src/main.less +1 -3
  382. package/src/modal/Modal.css +5 -5
  383. package/src/popover/Popover.css +3 -3
  384. package/src/popover/Popover.test.tsx +2 -1
  385. package/src/promoCard/PromoCard.css +1 -1
  386. package/src/prompt/ActionPrompt/ActionPrompt.css +1 -1
  387. package/src/prompt/ActionPrompt/ActionPrompt.test.tsx +3 -3
  388. package/src/prompt/ActionPrompt/ActionPrompt.tsx +64 -10
  389. package/src/prompt/PrimitivePrompt/PrimitivePrompt.css +1 -1
  390. package/src/prompt/PrimitivePrompt/PrimitivePrompt.tsx +40 -56
  391. package/src/prompt/index.ts +0 -4
  392. package/src/section/Section.story.tsx +2 -8
  393. package/src/select/Select.test.tsx +1 -1
  394. package/src/sentimentSurface/SentimentSurface.story.tsx +17 -43
  395. package/src/snackbar/Snackbar.css +2 -2
  396. package/src/statusIcon/StatusIcon.test.tsx +0 -2
  397. package/src/statusIcon/StatusIcon.tsx +3 -2
  398. package/src/stepper/Stepper.css +2 -2
  399. package/src/styles/less/accordion.css +4 -4
  400. package/src/styles/less/button-groups.css +6 -6
  401. package/src/styles/less/buttons.css +1 -1
  402. package/src/styles/less/circles.css +1 -1
  403. package/src/styles/less/column-layout.css +4 -4
  404. package/src/styles/less/decision.css +4 -4
  405. package/src/styles/less/dropdowns.css +10 -10
  406. package/src/styles/less/droppable.css +8 -8
  407. package/src/styles/less/flex.css +14 -14
  408. package/src/styles/less/footer.css +3 -3
  409. package/src/styles/less/forms/bootstrap-forms.css +9 -9
  410. package/src/styles/less/forms/bootstrap-forms.less +1 -1
  411. package/src/styles/less/grid.css +19 -19
  412. package/src/styles/less/input-groups.css +12 -12
  413. package/src/styles/less/list-group.css +8 -8
  414. package/src/styles/less/modals.css +3 -3
  415. package/src/styles/less/navbar.css +62 -62
  416. package/src/styles/less/navbar.less +2 -2
  417. package/src/styles/less/navs.css +2 -2
  418. package/src/styles/less/neptune.bundle.less +1 -0
  419. package/src/styles/less/neptune.css +258 -258
  420. package/src/styles/less/panels.css +9 -9
  421. package/src/styles/less/popovers.css +13 -13
  422. package/src/styles/less/select.css +1 -1
  423. package/src/styles/less/sequences.css +6 -6
  424. package/src/styles/less/table.css +6 -6
  425. package/src/styles/less/table.less +1 -1
  426. package/src/styles/less/utilities.css +4 -4
  427. package/src/styles/less/wells.css +4 -4
  428. package/src/styles/props/custom-media.css +1 -11
  429. package/src/styles/variables/legacy-variables.less +4 -47
  430. package/src/table/Table.css +1 -1
  431. package/src/table/Table.story.tsx +1 -1
  432. package/src/table/Table.tsx +6 -5
  433. package/src/tabs/Tabs.css +2 -2
  434. package/src/typeahead/Typeahead.css +1 -1
  435. package/build/common/hooks/useContainerSize.js +0 -30
  436. package/build/common/hooks/useContainerSize.js.map +0 -1
  437. package/build/common/hooks/useContainerSize.mjs +0 -28
  438. package/build/common/hooks/useContainerSize.mjs.map +0 -1
  439. package/build/common/propsValues/breakpoint.js +0 -12
  440. package/build/common/propsValues/breakpoint.js.map +0 -1
  441. package/build/common/propsValues/breakpoint.mjs +0 -12
  442. package/build/common/propsValues/breakpoint.mjs.map +0 -1
  443. package/build/prompt/CriticalBanner/CriticalBanner.js +0 -142
  444. package/build/prompt/CriticalBanner/CriticalBanner.js.map +0 -1
  445. package/build/prompt/CriticalBanner/CriticalBanner.mjs +0 -140
  446. package/build/prompt/CriticalBanner/CriticalBanner.mjs.map +0 -1
  447. package/build/prompt/CriticalBanner/helpers.js +0 -29
  448. package/build/prompt/CriticalBanner/helpers.js.map +0 -1
  449. package/build/prompt/CriticalBanner/helpers.mjs +0 -26
  450. package/build/prompt/CriticalBanner/helpers.mjs.map +0 -1
  451. package/build/prompt/common/Expander/Expander.js +0 -35
  452. package/build/prompt/common/Expander/Expander.js.map +0 -1
  453. package/build/prompt/common/Expander/Expander.messages.js +0 -17
  454. package/build/prompt/common/Expander/Expander.messages.js.map +0 -1
  455. package/build/prompt/common/Expander/Expander.messages.mjs +0 -13
  456. package/build/prompt/common/Expander/Expander.messages.mjs.map +0 -1
  457. package/build/prompt/common/Expander/Expander.mjs +0 -33
  458. package/build/prompt/common/Expander/Expander.mjs.map +0 -1
  459. package/build/prompt/helpers/promptMedia.js +0 -52
  460. package/build/prompt/helpers/promptMedia.js.map +0 -1
  461. package/build/prompt/helpers/promptMedia.mjs +0 -50
  462. package/build/prompt/helpers/promptMedia.mjs.map +0 -1
  463. package/build/styles/prompt/CriticalBanner/CriticalBanner.css +0 -134
  464. package/build/styles/prompt/CriticalBanner/CriticalBanner.vars.css +0 -0
  465. package/build/styles/prompt/common/Expander/Expander.css +0 -8
  466. package/build/types/common/hooks/useContainerSize.d.ts +0 -14
  467. package/build/types/common/hooks/useContainerSize.d.ts.map +0 -1
  468. package/build/types/common/propsValues/breakpoint.d.ts +0 -9
  469. package/build/types/common/propsValues/breakpoint.d.ts.map +0 -1
  470. package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts +0 -39
  471. package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts.map +0 -1
  472. package/build/types/prompt/CriticalBanner/helpers.d.ts +0 -18
  473. package/build/types/prompt/CriticalBanner/helpers.d.ts.map +0 -1
  474. package/build/types/prompt/CriticalBanner/index.d.ts +0 -3
  475. package/build/types/prompt/CriticalBanner/index.d.ts.map +0 -1
  476. package/build/types/prompt/common/Expander/Expander.d.ts +0 -20
  477. package/build/types/prompt/common/Expander/Expander.d.ts.map +0 -1
  478. package/build/types/prompt/common/Expander/Expander.messages.d.ts +0 -14
  479. package/build/types/prompt/common/Expander/Expander.messages.d.ts.map +0 -1
  480. package/build/types/prompt/helpers/promptMedia.d.ts +0 -22
  481. package/build/types/prompt/helpers/promptMedia.d.ts.map +0 -1
  482. package/src/common/hooks/useContainerSize.test.tsx +0 -121
  483. package/src/common/hooks/useContainerSize.ts +0 -32
  484. package/src/common/propsValues/breakpoint.ts +0 -8
  485. package/src/prompt/CriticalBanner/CriticalBanner.accessibility.docs.mdx +0 -113
  486. package/src/prompt/CriticalBanner/CriticalBanner.css +0 -134
  487. package/src/prompt/CriticalBanner/CriticalBanner.less +0 -155
  488. package/src/prompt/CriticalBanner/CriticalBanner.story.tsx +0 -635
  489. package/src/prompt/CriticalBanner/CriticalBanner.test.story.tsx +0 -422
  490. package/src/prompt/CriticalBanner/CriticalBanner.tsx +0 -178
  491. package/src/prompt/CriticalBanner/CriticalBanner.vars.css +0 -0
  492. package/src/prompt/CriticalBanner/CriticalBanner.vars.less +0 -6
  493. package/src/prompt/CriticalBanner/helpers.ts +0 -39
  494. package/src/prompt/CriticalBanner/index.ts +0 -2
  495. package/src/prompt/common/Expander/Expander.css +0 -8
  496. package/src/prompt/common/Expander/Expander.less +0 -9
  497. package/src/prompt/common/Expander/Expander.messages.ts +0 -14
  498. package/src/prompt/common/Expander/Expander.test.tsx +0 -167
  499. package/src/prompt/common/Expander/Expander.tsx +0 -83
  500. package/src/prompt/helpers/promptMedia.tsx +0 -79
@@ -6,26 +6,20 @@ var SentimentSurface = require('../../sentimentSurface/SentimentSurface.js');
6
6
  var IconButton = require('../../iconButton/IconButton.js');
7
7
  var reactIntl = require('react-intl');
8
8
  var CloseButton_messages = require('../../common/closeButton/CloseButton.messages.js');
9
- var React = require('react');
10
9
  var jsxRuntime = require('react/jsx-runtime');
11
10
 
12
- const PrimitivePrompt = /*#__PURE__*/React.forwardRef(({
11
+ const PrimitivePrompt = ({
13
12
  sentiment = 'success',
14
- emphasis = 'base',
15
13
  media,
16
14
  actions,
17
15
  onDismiss,
18
16
  className,
19
17
  children,
20
18
  ...restProps
21
- }, ref) => {
19
+ }) => {
22
20
  const intl = reactIntl.useIntl();
23
- return /*#__PURE__*/jsxRuntime.jsx(SentimentSurface.default
24
- // @ts-expect-error - SentimentSurface forwardRef types don't expose ref in props
25
- , {
26
- ref: ref,
21
+ return /*#__PURE__*/jsxRuntime.jsx(SentimentSurface.default, {
27
22
  sentiment: sentiment,
28
- emphasis: emphasis,
29
23
  className: clsx.clsx('wds-prompt', `wds-prompt--${sentiment}`, className),
30
24
  ...restProps,
31
25
  children: /*#__PURE__*/jsxRuntime.jsxs("div", {
@@ -47,8 +41,7 @@ const PrimitivePrompt = /*#__PURE__*/React.forwardRef(({
47
41
  })]
48
42
  })
49
43
  });
50
- });
51
- PrimitivePrompt.displayName = 'PrimitivePrompt';
44
+ };
52
45
 
53
46
  exports.PrimitivePrompt = PrimitivePrompt;
54
47
  //# sourceMappingURL=PrimitivePrompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrimitivePrompt.js","sources":["../../../src/prompt/PrimitivePrompt/PrimitivePrompt.tsx"],"sourcesContent":["import { Cross } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport SentimentSurface, { Emphasis, Sentiment } from '../../sentimentSurface';\nimport IconButton from '../../iconButton';\nimport { useIntl } from 'react-intl';\nimport closeBtnMessages from '../../common/closeButton/CloseButton.messages';\nimport { forwardRef, HTMLAttributes, ReactNode } from 'react';\n\nexport type PrimitivePromptProps = HTMLAttributes<HTMLDivElement> & {\n /**\n * The sentiment determines the colour scheme.\n * @default success\n */\n sentiment?: Sentiment;\n /**\n * The emphasis level affecting background and text contrast.\n * @default 'base\n */\n emphasis?: Emphasis;\n /**\n * Media to be displayed on the prompt (icon/image/etc).\n */\n media: ReactNode;\n /**\n * Any actions to be displayed on the prompt.\n */\n actions?: ReactNode;\n /**\n * Handler called when the close button is clicked. If not provided, then the close button is hidden.\n */\n onDismiss?: () => void;\n /**\n * Test ID for testing tools\n */\n 'data-testid'?: string;\n};\n\n/**\n * PrimitivePrompt is a low-level component that provides the structure, sentiment support and styling for various prompts.\n * Uses several css variables to handle styling from within the consuming component, e.g. --Prompt-padding. */\nexport const PrimitivePrompt = forwardRef<HTMLDivElement, PrimitivePromptProps>(\n (\n {\n sentiment = 'success',\n emphasis = 'base',\n media,\n actions,\n onDismiss,\n className,\n children,\n ...restProps\n },\n ref,\n ) => {\n const intl = useIntl();\n\n return (\n <SentimentSurface\n // @ts-expect-error - SentimentSurface forwardRef types don't expose ref in props\n ref={ref}\n sentiment={sentiment}\n emphasis={emphasis}\n className={clsx('wds-prompt', `wds-prompt--${sentiment}`, className)}\n {...restProps}\n >\n <div\n className={clsx('wds-prompt__content-wrapper', {\n 'wds-prompt__content-wrapper--with-dismiss': !!onDismiss,\n })}\n >\n <div className={clsx('wds-prompt__media-wrapper')}>{media}</div>\n {children}\n {onDismiss && (\n <IconButton\n size={24}\n priority=\"secondary\"\n aria-label={intl.formatMessage(closeBtnMessages.ariaLabel)}\n onClick={onDismiss}\n >\n <Cross />\n </IconButton>\n )}\n {actions && <div className=\"wds-prompt__actions-wrapper\">{actions}</div>}\n </div>\n </SentimentSurface>\n );\n },\n);\n\nPrimitivePrompt.displayName = 'PrimitivePrompt';\n"],"names":["PrimitivePrompt","forwardRef","sentiment","emphasis","media","actions","onDismiss","className","children","restProps","ref","intl","useIntl","_jsx","SentimentSurface","clsx","_jsxs","IconButton","size","priority","formatMessage","closeBtnMessages","ariaLabel","onClick","Cross","displayName"],"mappings":";;;;;;;;;;;AAwCO,MAAMA,eAAe,gBAAGC,gBAAU,CACvC,CACE;AACEC,EAAAA,SAAS,GAAG,SAAS;AACrBC,EAAAA,QAAQ,GAAG,MAAM;EACjBC,KAAK;EACLC,OAAO;EACPC,SAAS;EACTC,SAAS;EACTC,QAAQ;EACR,GAAGC;AAAS,CACb,EACDC,GAAG,KACD;AACF,EAAA,MAAMC,IAAI,GAAGC,iBAAO,EAAE;AAEtB,EAAA,oBACEC,cAAA,CAACC;AACC;AAAA,IAAA;AACAJ,IAAAA,GAAG,EAAEA,GAAI;AACTR,IAAAA,SAAS,EAAEA,SAAU;AACrBC,IAAAA,QAAQ,EAAEA,QAAS;IACnBI,SAAS,EAAEQ,SAAI,CAAC,YAAY,EAAE,eAAeb,SAAS,CAAA,CAAE,EAAEK,SAAS,CAAE;AAAA,IAAA,GACjEE,SAAS;AAAAD,IAAAA,QAAA,eAEbQ,eAAA,CAAA,KAAA,EAAA;AACET,MAAAA,SAAS,EAAEQ,SAAI,CAAC,6BAA6B,EAAE;QAC7C,2CAA2C,EAAE,CAAC,CAACT;AAChD,OAAA,CAAE;AAAAE,MAAAA,QAAA,gBAEHK,cAAA,CAAA,KAAA,EAAA;AAAKN,QAAAA,SAAS,EAAEQ,SAAI,CAAC,2BAA2B,CAAE;AAAAP,QAAAA,QAAA,EAAEJ;OAAW,CAC/D,EAACI,QAAQ,EACRF,SAAS,iBACRO,cAAA,CAACI,kBAAU,EAAA;AACTC,QAAAA,IAAI,EAAE,EAAG;AACTC,QAAAA,QAAQ,EAAC,WAAW;AACpB,QAAA,YAAA,EAAYR,IAAI,CAACS,aAAa,CAACC,4BAAgB,CAACC,SAAS,CAAE;AAC3DC,QAAAA,OAAO,EAAEjB,SAAU;AAAAE,QAAAA,QAAA,eAEnBK,cAAA,CAACW,WAAK,EAAA,EAAA;AACR,OAAY,CACb,EACAnB,OAAO,iBAAIQ,cAAA,CAAA,KAAA,EAAA;AAAKN,QAAAA,SAAS,EAAC,6BAA6B;AAAAC,QAAAA,QAAA,EAAEH;AAAO,OAAM,CAAC;KACrE;AACP,GAAkB,CAAC;AAEvB,CAAC;AAGHL,eAAe,CAACyB,WAAW,GAAG,iBAAiB;;;;"}
1
+ {"version":3,"file":"PrimitivePrompt.js","sources":["../../../src/prompt/PrimitivePrompt/PrimitivePrompt.tsx"],"sourcesContent":["import { Cross } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport SentimentSurface, { Sentiment } from '../../sentimentSurface';\nimport IconButton from '../../iconButton';\nimport { useIntl } from 'react-intl';\nimport closeBtnMessages from '../../common/closeButton/CloseButton.messages';\nimport { HTMLAttributes, ReactNode } from 'react';\n\nexport type PrimitivePromptProps = HTMLAttributes<HTMLDivElement> & {\n /**\n * The sentiment determines the colour scheme\n * @default success\n */\n sentiment?: Sentiment;\n /**\n * Media to be displayed on the prompt (icon/image/etc).\n */\n media: ReactNode;\n /**\n * Any actions to be displayed on the prompt.\n */\n actions?: ReactNode;\n /**\n * Handler called when the close button is clicked. If not provided, then the close button is hidden.\n */\n onDismiss?: () => void;\n /**\n * Test ID for testing tools\n */\n 'data-testid'?: string;\n};\n\n/**\n * PrimitivePrompt is a low-level component that provides the structure, sentiment support and styling for various prompts.\n * Uses several css variables to handle styling from within the consuming component, e.g. --Prompt-padding. */\nexport const PrimitivePrompt = ({\n sentiment = 'success',\n media,\n actions,\n onDismiss,\n className,\n children,\n ...restProps\n}: PrimitivePromptProps) => {\n const intl = useIntl();\n\n return (\n <SentimentSurface\n sentiment={sentiment}\n className={clsx('wds-prompt', `wds-prompt--${sentiment}`, className)}\n {...restProps}\n >\n <div\n className={clsx('wds-prompt__content-wrapper', {\n 'wds-prompt__content-wrapper--with-dismiss': !!onDismiss,\n })}\n >\n <div className={clsx('wds-prompt__media-wrapper')}>{media}</div>\n {children}\n {onDismiss && (\n <IconButton\n size={24}\n priority=\"secondary\"\n aria-label={intl.formatMessage(closeBtnMessages.ariaLabel)}\n onClick={onDismiss}\n >\n <Cross />\n </IconButton>\n )}\n {actions && <div className=\"wds-prompt__actions-wrapper\">{actions}</div>}\n </div>\n </SentimentSurface>\n );\n};\n"],"names":["PrimitivePrompt","sentiment","media","actions","onDismiss","className","children","restProps","intl","useIntl","_jsx","SentimentSurface","clsx","_jsxs","IconButton","size","priority","formatMessage","closeBtnMessages","ariaLabel","onClick","Cross"],"mappings":";;;;;;;;;;AAmCO,MAAMA,eAAe,GAAGA,CAAC;AAC9BC,EAAAA,SAAS,GAAG,SAAS;EACrBC,KAAK;EACLC,OAAO;EACPC,SAAS;EACTC,SAAS;EACTC,QAAQ;EACR,GAAGC;AAAS,CACS,KAAI;AACzB,EAAA,MAAMC,IAAI,GAAGC,iBAAO,EAAE;EAEtB,oBACEC,cAAA,CAACC,wBAAgB,EAAA;AACfV,IAAAA,SAAS,EAAEA,SAAU;IACrBI,SAAS,EAAEO,SAAI,CAAC,YAAY,EAAE,eAAeX,SAAS,CAAA,CAAE,EAAEI,SAAS,CAAE;AAAA,IAAA,GACjEE,SAAS;AAAAD,IAAAA,QAAA,eAEbO,eAAA,CAAA,KAAA,EAAA;AACER,MAAAA,SAAS,EAAEO,SAAI,CAAC,6BAA6B,EAAE;QAC7C,2CAA2C,EAAE,CAAC,CAACR;AAChD,OAAA,CAAE;AAAAE,MAAAA,QAAA,gBAEHI,cAAA,CAAA,KAAA,EAAA;AAAKL,QAAAA,SAAS,EAAEO,SAAI,CAAC,2BAA2B,CAAE;AAAAN,QAAAA,QAAA,EAAEJ;OAAW,CAC/D,EAACI,QAAQ,EACRF,SAAS,iBACRM,cAAA,CAACI,kBAAU,EAAA;AACTC,QAAAA,IAAI,EAAE,EAAG;AACTC,QAAAA,QAAQ,EAAC,WAAW;AACpB,QAAA,YAAA,EAAYR,IAAI,CAACS,aAAa,CAACC,4BAAgB,CAACC,SAAS,CAAE;AAC3DC,QAAAA,OAAO,EAAEhB,SAAU;AAAAE,QAAAA,QAAA,eAEnBI,cAAA,CAACW,WAAK,EAAA,EAAA;AACR,OAAY,CACb,EACAlB,OAAO,iBAAIO,cAAA,CAAA,KAAA,EAAA;AAAKL,QAAAA,SAAS,EAAC,6BAA6B;AAAAC,QAAAA,QAAA,EAAEH;AAAO,OAAM,CAAC;KACrE;AACP,GAAkB,CAAC;AAEvB;;;;"}
@@ -4,26 +4,20 @@ import SentimentSurface from '../../sentimentSurface/SentimentSurface.mjs';
4
4
  import IconButton from '../../iconButton/IconButton.mjs';
5
5
  import { useIntl } from 'react-intl';
6
6
  import closeBtnMessages from '../../common/closeButton/CloseButton.messages.mjs';
7
- import { forwardRef } from 'react';
8
7
  import { jsx, jsxs } from 'react/jsx-runtime';
9
8
 
10
- const PrimitivePrompt = /*#__PURE__*/forwardRef(({
9
+ const PrimitivePrompt = ({
11
10
  sentiment = 'success',
12
- emphasis = 'base',
13
11
  media,
14
12
  actions,
15
13
  onDismiss,
16
14
  className,
17
15
  children,
18
16
  ...restProps
19
- }, ref) => {
17
+ }) => {
20
18
  const intl = useIntl();
21
- return /*#__PURE__*/jsx(SentimentSurface
22
- // @ts-expect-error - SentimentSurface forwardRef types don't expose ref in props
23
- , {
24
- ref: ref,
19
+ return /*#__PURE__*/jsx(SentimentSurface, {
25
20
  sentiment: sentiment,
26
- emphasis: emphasis,
27
21
  className: clsx('wds-prompt', `wds-prompt--${sentiment}`, className),
28
22
  ...restProps,
29
23
  children: /*#__PURE__*/jsxs("div", {
@@ -45,8 +39,7 @@ const PrimitivePrompt = /*#__PURE__*/forwardRef(({
45
39
  })]
46
40
  })
47
41
  });
48
- });
49
- PrimitivePrompt.displayName = 'PrimitivePrompt';
42
+ };
50
43
 
51
44
  export { PrimitivePrompt };
52
45
  //# sourceMappingURL=PrimitivePrompt.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"PrimitivePrompt.mjs","sources":["../../../src/prompt/PrimitivePrompt/PrimitivePrompt.tsx"],"sourcesContent":["import { Cross } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport SentimentSurface, { Emphasis, Sentiment } from '../../sentimentSurface';\nimport IconButton from '../../iconButton';\nimport { useIntl } from 'react-intl';\nimport closeBtnMessages from '../../common/closeButton/CloseButton.messages';\nimport { forwardRef, HTMLAttributes, ReactNode } from 'react';\n\nexport type PrimitivePromptProps = HTMLAttributes<HTMLDivElement> & {\n /**\n * The sentiment determines the colour scheme.\n * @default success\n */\n sentiment?: Sentiment;\n /**\n * The emphasis level affecting background and text contrast.\n * @default 'base\n */\n emphasis?: Emphasis;\n /**\n * Media to be displayed on the prompt (icon/image/etc).\n */\n media: ReactNode;\n /**\n * Any actions to be displayed on the prompt.\n */\n actions?: ReactNode;\n /**\n * Handler called when the close button is clicked. If not provided, then the close button is hidden.\n */\n onDismiss?: () => void;\n /**\n * Test ID for testing tools\n */\n 'data-testid'?: string;\n};\n\n/**\n * PrimitivePrompt is a low-level component that provides the structure, sentiment support and styling for various prompts.\n * Uses several css variables to handle styling from within the consuming component, e.g. --Prompt-padding. */\nexport const PrimitivePrompt = forwardRef<HTMLDivElement, PrimitivePromptProps>(\n (\n {\n sentiment = 'success',\n emphasis = 'base',\n media,\n actions,\n onDismiss,\n className,\n children,\n ...restProps\n },\n ref,\n ) => {\n const intl = useIntl();\n\n return (\n <SentimentSurface\n // @ts-expect-error - SentimentSurface forwardRef types don't expose ref in props\n ref={ref}\n sentiment={sentiment}\n emphasis={emphasis}\n className={clsx('wds-prompt', `wds-prompt--${sentiment}`, className)}\n {...restProps}\n >\n <div\n className={clsx('wds-prompt__content-wrapper', {\n 'wds-prompt__content-wrapper--with-dismiss': !!onDismiss,\n })}\n >\n <div className={clsx('wds-prompt__media-wrapper')}>{media}</div>\n {children}\n {onDismiss && (\n <IconButton\n size={24}\n priority=\"secondary\"\n aria-label={intl.formatMessage(closeBtnMessages.ariaLabel)}\n onClick={onDismiss}\n >\n <Cross />\n </IconButton>\n )}\n {actions && <div className=\"wds-prompt__actions-wrapper\">{actions}</div>}\n </div>\n </SentimentSurface>\n );\n },\n);\n\nPrimitivePrompt.displayName = 'PrimitivePrompt';\n"],"names":["PrimitivePrompt","forwardRef","sentiment","emphasis","media","actions","onDismiss","className","children","restProps","ref","intl","useIntl","_jsx","SentimentSurface","clsx","_jsxs","IconButton","size","priority","formatMessage","closeBtnMessages","ariaLabel","onClick","Cross","displayName"],"mappings":";;;;;;;;;AAwCO,MAAMA,eAAe,gBAAGC,UAAU,CACvC,CACE;AACEC,EAAAA,SAAS,GAAG,SAAS;AACrBC,EAAAA,QAAQ,GAAG,MAAM;EACjBC,KAAK;EACLC,OAAO;EACPC,SAAS;EACTC,SAAS;EACTC,QAAQ;EACR,GAAGC;AAAS,CACb,EACDC,GAAG,KACD;AACF,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE;AAEtB,EAAA,oBACEC,GAAA,CAACC;AACC;AAAA,IAAA;AACAJ,IAAAA,GAAG,EAAEA,GAAI;AACTR,IAAAA,SAAS,EAAEA,SAAU;AACrBC,IAAAA,QAAQ,EAAEA,QAAS;IACnBI,SAAS,EAAEQ,IAAI,CAAC,YAAY,EAAE,eAAeb,SAAS,CAAA,CAAE,EAAEK,SAAS,CAAE;AAAA,IAAA,GACjEE,SAAS;AAAAD,IAAAA,QAAA,eAEbQ,IAAA,CAAA,KAAA,EAAA;AACET,MAAAA,SAAS,EAAEQ,IAAI,CAAC,6BAA6B,EAAE;QAC7C,2CAA2C,EAAE,CAAC,CAACT;AAChD,OAAA,CAAE;AAAAE,MAAAA,QAAA,gBAEHK,GAAA,CAAA,KAAA,EAAA;AAAKN,QAAAA,SAAS,EAAEQ,IAAI,CAAC,2BAA2B,CAAE;AAAAP,QAAAA,QAAA,EAAEJ;OAAW,CAC/D,EAACI,QAAQ,EACRF,SAAS,iBACRO,GAAA,CAACI,UAAU,EAAA;AACTC,QAAAA,IAAI,EAAE,EAAG;AACTC,QAAAA,QAAQ,EAAC,WAAW;AACpB,QAAA,YAAA,EAAYR,IAAI,CAACS,aAAa,CAACC,gBAAgB,CAACC,SAAS,CAAE;AAC3DC,QAAAA,OAAO,EAAEjB,SAAU;AAAAE,QAAAA,QAAA,eAEnBK,GAAA,CAACW,KAAK,EAAA,EAAA;AACR,OAAY,CACb,EACAnB,OAAO,iBAAIQ,GAAA,CAAA,KAAA,EAAA;AAAKN,QAAAA,SAAS,EAAC,6BAA6B;AAAAC,QAAAA,QAAA,EAAEH;AAAO,OAAM,CAAC;KACrE;AACP,GAAkB,CAAC;AAEvB,CAAC;AAGHL,eAAe,CAACyB,WAAW,GAAG,iBAAiB;;;;"}
1
+ {"version":3,"file":"PrimitivePrompt.mjs","sources":["../../../src/prompt/PrimitivePrompt/PrimitivePrompt.tsx"],"sourcesContent":["import { Cross } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport SentimentSurface, { Sentiment } from '../../sentimentSurface';\nimport IconButton from '../../iconButton';\nimport { useIntl } from 'react-intl';\nimport closeBtnMessages from '../../common/closeButton/CloseButton.messages';\nimport { HTMLAttributes, ReactNode } from 'react';\n\nexport type PrimitivePromptProps = HTMLAttributes<HTMLDivElement> & {\n /**\n * The sentiment determines the colour scheme\n * @default success\n */\n sentiment?: Sentiment;\n /**\n * Media to be displayed on the prompt (icon/image/etc).\n */\n media: ReactNode;\n /**\n * Any actions to be displayed on the prompt.\n */\n actions?: ReactNode;\n /**\n * Handler called when the close button is clicked. If not provided, then the close button is hidden.\n */\n onDismiss?: () => void;\n /**\n * Test ID for testing tools\n */\n 'data-testid'?: string;\n};\n\n/**\n * PrimitivePrompt is a low-level component that provides the structure, sentiment support and styling for various prompts.\n * Uses several css variables to handle styling from within the consuming component, e.g. --Prompt-padding. */\nexport const PrimitivePrompt = ({\n sentiment = 'success',\n media,\n actions,\n onDismiss,\n className,\n children,\n ...restProps\n}: PrimitivePromptProps) => {\n const intl = useIntl();\n\n return (\n <SentimentSurface\n sentiment={sentiment}\n className={clsx('wds-prompt', `wds-prompt--${sentiment}`, className)}\n {...restProps}\n >\n <div\n className={clsx('wds-prompt__content-wrapper', {\n 'wds-prompt__content-wrapper--with-dismiss': !!onDismiss,\n })}\n >\n <div className={clsx('wds-prompt__media-wrapper')}>{media}</div>\n {children}\n {onDismiss && (\n <IconButton\n size={24}\n priority=\"secondary\"\n aria-label={intl.formatMessage(closeBtnMessages.ariaLabel)}\n onClick={onDismiss}\n >\n <Cross />\n </IconButton>\n )}\n {actions && <div className=\"wds-prompt__actions-wrapper\">{actions}</div>}\n </div>\n </SentimentSurface>\n );\n};\n"],"names":["PrimitivePrompt","sentiment","media","actions","onDismiss","className","children","restProps","intl","useIntl","_jsx","SentimentSurface","clsx","_jsxs","IconButton","size","priority","formatMessage","closeBtnMessages","ariaLabel","onClick","Cross"],"mappings":";;;;;;;;AAmCO,MAAMA,eAAe,GAAGA,CAAC;AAC9BC,EAAAA,SAAS,GAAG,SAAS;EACrBC,KAAK;EACLC,OAAO;EACPC,SAAS;EACTC,SAAS;EACTC,QAAQ;EACR,GAAGC;AAAS,CACS,KAAI;AACzB,EAAA,MAAMC,IAAI,GAAGC,OAAO,EAAE;EAEtB,oBACEC,GAAA,CAACC,gBAAgB,EAAA;AACfV,IAAAA,SAAS,EAAEA,SAAU;IACrBI,SAAS,EAAEO,IAAI,CAAC,YAAY,EAAE,eAAeX,SAAS,CAAA,CAAE,EAAEI,SAAS,CAAE;AAAA,IAAA,GACjEE,SAAS;AAAAD,IAAAA,QAAA,eAEbO,IAAA,CAAA,KAAA,EAAA;AACER,MAAAA,SAAS,EAAEO,IAAI,CAAC,6BAA6B,EAAE;QAC7C,2CAA2C,EAAE,CAAC,CAACR;AAChD,OAAA,CAAE;AAAAE,MAAAA,QAAA,gBAEHI,GAAA,CAAA,KAAA,EAAA;AAAKL,QAAAA,SAAS,EAAEO,IAAI,CAAC,2BAA2B,CAAE;AAAAN,QAAAA,QAAA,EAAEJ;OAAW,CAC/D,EAACI,QAAQ,EACRF,SAAS,iBACRM,GAAA,CAACI,UAAU,EAAA;AACTC,QAAAA,IAAI,EAAE,EAAG;AACTC,QAAAA,QAAQ,EAAC,WAAW;AACpB,QAAA,YAAA,EAAYR,IAAI,CAACS,aAAa,CAACC,gBAAgB,CAACC,SAAS,CAAE;AAC3DC,QAAAA,OAAO,EAAEhB,SAAU;AAAAE,QAAAA,QAAA,eAEnBI,GAAA,CAACW,KAAK,EAAA,EAAA;AACR,OAAY,CACb,EACAlB,OAAO,iBAAIO,GAAA,CAAA,KAAA,EAAA;AAAKL,QAAAA,SAAS,EAAC,6BAA6B;AAAAC,QAAAA,QAAA,EAAEH;AAAO,OAAM,CAAC;KACrE;AACP,GAAkB,CAAC;AAEvB;;;;"}
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var reactIntl = require('react-intl');
6
6
  require('../common/theme.js');
7
7
  require('../common/direction.js');
8
+ require('@transferwise/neptune-tokens');
8
9
  require('../common/propsValues/control.js');
9
- require('../common/propsValues/breakpoint.js');
10
10
  require('../common/propsValues/size.js');
11
11
  require('../common/propsValues/typography.js');
12
12
  require('../common/propsValues/width.js');
@@ -1,8 +1,8 @@
1
1
  import { IntlProvider } from 'react-intl';
2
2
  import '../common/theme.mjs';
3
3
  import '../common/direction.mjs';
4
+ import '@transferwise/neptune-tokens';
4
5
  import '../common/propsValues/control.mjs';
5
- import '../common/propsValues/breakpoint.mjs';
6
6
  import '../common/propsValues/size.mjs';
7
7
  import '../common/propsValues/typography.mjs';
8
8
  import '../common/propsValues/width.mjs';
@@ -6,8 +6,8 @@ var clsx = require('clsx');
6
6
  var Body = require('../body/Body.js');
7
7
  require('../common/theme.js');
8
8
  require('../common/direction.js');
9
+ require('@transferwise/neptune-tokens');
9
10
  require('../common/propsValues/control.js');
10
- require('../common/propsValues/breakpoint.js');
11
11
  require('../common/propsValues/size.js');
12
12
  var typography = require('../common/propsValues/typography.js');
13
13
  require('../common/propsValues/width.js');
@@ -2,8 +2,8 @@ import { clsx } from 'clsx';
2
2
  import Body from '../body/Body.mjs';
3
3
  import '../common/theme.mjs';
4
4
  import '../common/direction.mjs';
5
+ import '@transferwise/neptune-tokens';
5
6
  import '../common/propsValues/control.mjs';
6
- import '../common/propsValues/breakpoint.mjs';
7
7
  import '../common/propsValues/size.mjs';
8
8
  import { Typography } from '../common/propsValues/typography.mjs';
9
9
  import '../common/propsValues/width.mjs';
@@ -7,8 +7,8 @@ var React = require('react');
7
7
  var Body = require('../body/Body.js');
8
8
  require('../common/theme.js');
9
9
  require('../common/direction.js');
10
+ require('@transferwise/neptune-tokens');
10
11
  require('../common/propsValues/control.js');
11
- require('../common/propsValues/breakpoint.js');
12
12
  require('../common/propsValues/size.js');
13
13
  var typography = require('../common/propsValues/typography.js');
14
14
  require('../common/propsValues/width.js');
@@ -3,8 +3,8 @@ import { useState, useRef, createRef, useEffect } from 'react';
3
3
  import Body from '../body/Body.mjs';
4
4
  import '../common/theme.mjs';
5
5
  import '../common/direction.mjs';
6
+ import '@transferwise/neptune-tokens';
6
7
  import '../common/propsValues/control.mjs';
7
- import '../common/propsValues/breakpoint.mjs';
8
8
  import '../common/propsValues/size.mjs';
9
9
  import { Typography } from '../common/propsValues/typography.mjs';
10
10
  import '../common/propsValues/width.mjs';
@@ -10,8 +10,8 @@ var Chevron = require('../chevron/Chevron.js');
10
10
  var documentIosClick = require('../common/domHelpers/documentIosClick.js');
11
11
  require('../common/theme.js');
12
12
  require('../common/direction.js');
13
+ require('@transferwise/neptune-tokens');
13
14
  require('../common/propsValues/control.js');
14
- require('../common/propsValues/breakpoint.js');
15
15
  require('../common/propsValues/size.js');
16
16
  require('../common/propsValues/typography.js');
17
17
  require('../common/propsValues/width.js');
@@ -6,8 +6,8 @@ import Chevron from '../chevron/Chevron.mjs';
6
6
  import { stopPropagation } from '../common/domHelpers/documentIosClick.mjs';
7
7
  import '../common/theme.mjs';
8
8
  import '../common/direction.mjs';
9
+ import '@transferwise/neptune-tokens';
9
10
  import '../common/propsValues/control.mjs';
10
- import '../common/propsValues/breakpoint.mjs';
11
11
  import '../common/propsValues/size.mjs';
12
12
  import '../common/propsValues/typography.mjs';
13
13
  import '../common/propsValues/width.mjs';
@@ -8,8 +8,8 @@ var React = require('react');
8
8
  var Body = require('../../body/Body.js');
9
9
  require('../../common/theme.js');
10
10
  require('../../common/direction.js');
11
+ require('@transferwise/neptune-tokens');
11
12
  require('../../common/propsValues/control.js');
12
- require('../../common/propsValues/breakpoint.js');
13
13
  require('../../common/propsValues/size.js');
14
14
  var typography = require('../../common/propsValues/typography.js');
15
15
  require('../../common/propsValues/width.js');
@@ -4,8 +4,8 @@ import { cloneElement } from 'react';
4
4
  import Body from '../../body/Body.mjs';
5
5
  import '../../common/theme.mjs';
6
6
  import '../../common/direction.mjs';
7
+ import '@transferwise/neptune-tokens';
7
8
  import '../../common/propsValues/control.mjs';
8
- import '../../common/propsValues/breakpoint.mjs';
9
9
  import '../../common/propsValues/size.mjs';
10
10
  import { Typography } from '../../common/propsValues/typography.mjs';
11
11
  import '../../common/propsValues/width.mjs';
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var icons = require('@transferwise/icons');
6
+ var neptuneTokens = require('@transferwise/neptune-tokens');
6
7
  var clsx = require('clsx');
7
8
  var reactIntl = require('react-intl');
8
9
  require('../common/theme.js');
9
10
  require('../common/direction.js');
10
11
  require('../common/propsValues/control.js');
11
- var breakpoint = require('../common/propsValues/breakpoint.js');
12
12
  var size = require('../common/propsValues/size.js');
13
13
  require('../common/propsValues/typography.js');
14
14
  require('../common/propsValues/width.js');
@@ -83,7 +83,7 @@ const StatusIcon = ({
83
83
  Icon,
84
84
  defaultIconLabel
85
85
  } = iconMetaBySentiment[sentiment$1];
86
- const isTinyViewport = useMedia.useMedia(`(max-width: ${breakpoint.Breakpoint.ZOOM_400}px)`);
86
+ const isTinyViewport = useMedia.useMedia(`(max-width: ${neptuneTokens.Breakpoint.EXTRA_SMALL}px)`);
87
87
  const size = mapLegacySize[sizeProp] ?? sizeProp;
88
88
  return /*#__PURE__*/jsxRuntime.jsx(Circle.default, {
89
89
  size: isTinyViewport && size < 40 ? 32 : size,
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIcon.js","sources":["../../src/statusIcon/StatusIcon.tsx"],"sourcesContent":["import { Info, Alert, Cross, Check, ClockBorderless } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { useIntl } from 'react-intl';\n\nimport { SizeSmall, SizeMedium, SizeLarge, Sentiment, Size, Breakpoint, Status } from '../common';\nimport Circle, { CircleProps } from '../common/circle';\nimport { useMedia } from '../common/hooks/useMedia';\n\nimport messages from './StatusIcon.messages';\n\n/**\n * @deprecated Use `16 | 24 | 32 | 40 | 48 | 56 | 72` instead.\n */\ntype LegacySizes = SizeSmall | SizeMedium | SizeLarge;\n\nexport type StatusIconSentiment = Sentiment | Status.PENDING;\n\nexport type StatusIconProps = {\n id?: string;\n /** @default 'neutral' */\n sentiment?: `${StatusIconSentiment}`;\n /** @default 40 */\n size?: LegacySizes | 16 | 24 | 32 | 40 | 48 | 56 | 72;\n /**\n * Override for the sentiment's-derived, default, accessible\n * name announced by the screen readers. <br />\n * Using `null` will render the icon purely presentational.\n * */\n iconLabel?: string | null;\n};\n\nconst mapLegacySize = {\n [String(Size.SMALL)]: 16,\n [String(Size.MEDIUM)]: 40,\n [String(Size.LARGE)]: 48,\n} satisfies Record<string, CircleProps['size']>;\n\nconst StatusIcon = ({\n id,\n sentiment = 'neutral',\n size: sizeProp = 40,\n iconLabel,\n}: StatusIconProps) => {\n const intl = useIntl();\n\n const iconMetaBySentiment: Record<\n `${Sentiment}` | Status.PENDING,\n {\n Icon: React.ElementType;\n defaultIconLabel: string;\n }\n > = {\n [Sentiment.NEGATIVE]: {\n Icon: Cross,\n defaultIconLabel: intl.formatMessage(messages.errorLabel),\n },\n [Sentiment.POSITIVE]: {\n Icon: Check,\n defaultIconLabel: intl.formatMessage(messages.successLabel),\n },\n [Sentiment.WARNING]: {\n Icon: Alert,\n defaultIconLabel: intl.formatMessage(messages.warningLabel),\n },\n [Status.PENDING]: {\n Icon: ClockBorderless,\n defaultIconLabel: intl.formatMessage(messages.pendingLabel),\n },\n [Sentiment.NEUTRAL]: {\n Icon: Info,\n defaultIconLabel: intl.formatMessage(messages.informationLabel),\n },\n // deprecated\n [Sentiment.ERROR]: {\n Icon: Cross,\n defaultIconLabel: intl.formatMessage(messages.errorLabel),\n },\n [Sentiment.INFO]: {\n Icon: Info,\n defaultIconLabel: intl.formatMessage(messages.informationLabel),\n },\n [Sentiment.SUCCESS]: {\n Icon: Check,\n defaultIconLabel: intl.formatMessage(messages.successLabel),\n },\n };\n const { Icon, defaultIconLabel } = iconMetaBySentiment[sentiment];\n\n const isTinyViewport = useMedia(`(max-width: ${Breakpoint.ZOOM_400}px)`);\n const size = mapLegacySize[sizeProp] ?? sizeProp;\n\n return (\n <Circle\n size={isTinyViewport && size < 40 ? 32 : size}\n data-testid=\"status-icon\"\n className={clsx('status-circle', sentiment)}\n id={id}\n >\n <Icon\n className=\"status-icon\"\n title={iconLabel === null ? undefined : iconLabel || defaultIconLabel}\n />\n </Circle>\n );\n};\n\nexport default StatusIcon;\n"],"names":["mapLegacySize","String","Size","SMALL","MEDIUM","LARGE","StatusIcon","id","sentiment","size","sizeProp","iconLabel","intl","useIntl","iconMetaBySentiment","Sentiment","NEGATIVE","Icon","Cross","defaultIconLabel","formatMessage","messages","errorLabel","POSITIVE","Check","successLabel","WARNING","Alert","warningLabel","Status","PENDING","ClockBorderless","pendingLabel","NEUTRAL","Info","informationLabel","ERROR","INFO","SUCCESS","isTinyViewport","useMedia","Breakpoint","ZOOM_400","_jsx","Circle","className","clsx","children","title","undefined"],"mappings":"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"}
1
+ {"version":3,"file":"StatusIcon.js","sources":["../../src/statusIcon/StatusIcon.tsx"],"sourcesContent":["import { Info, Alert, Cross, Check, ClockBorderless } from '@transferwise/icons';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\nimport { clsx } from 'clsx';\nimport { useIntl } from 'react-intl';\n\nimport { SizeSmall, SizeMedium, SizeLarge, Sentiment, Size, Status } from '../common';\nimport Circle, { CircleProps } from '../common/circle';\nimport { useMedia } from '../common/hooks/useMedia';\n\nimport messages from './StatusIcon.messages';\n\n/**\n * @deprecated Use `16 | 24 | 32 | 40 | 48 | 56 | 72` instead.\n */\ntype LegacySizes = SizeSmall | SizeMedium | SizeLarge;\n\nexport type StatusIconSentiment = Sentiment | Status.PENDING;\n\nexport type StatusIconProps = {\n id?: string;\n /** @default 'neutral' */\n sentiment?: `${StatusIconSentiment}`;\n /** @default 40 */\n size?: LegacySizes | 16 | 24 | 32 | 40 | 48 | 56 | 72;\n /**\n * Override for the sentiment's-derived, default, accessible\n * name announced by the screen readers. <br />\n * Using `null` will render the icon purely presentational.\n * */\n iconLabel?: string | null;\n};\n\nconst mapLegacySize = {\n [String(Size.SMALL)]: 16,\n [String(Size.MEDIUM)]: 40,\n [String(Size.LARGE)]: 48,\n} satisfies Record<string, CircleProps['size']>;\n\nconst StatusIcon = ({\n id,\n sentiment = 'neutral',\n size: sizeProp = 40,\n iconLabel,\n}: StatusIconProps) => {\n const intl = useIntl();\n\n const iconMetaBySentiment: Record<\n `${Sentiment}` | Status.PENDING,\n {\n Icon: React.ElementType;\n defaultIconLabel: string;\n }\n > = {\n [Sentiment.NEGATIVE]: {\n Icon: Cross,\n defaultIconLabel: intl.formatMessage(messages.errorLabel),\n },\n [Sentiment.POSITIVE]: {\n Icon: Check,\n defaultIconLabel: intl.formatMessage(messages.successLabel),\n },\n [Sentiment.WARNING]: {\n Icon: Alert,\n defaultIconLabel: intl.formatMessage(messages.warningLabel),\n },\n [Status.PENDING]: {\n Icon: ClockBorderless,\n defaultIconLabel: intl.formatMessage(messages.pendingLabel),\n },\n [Sentiment.NEUTRAL]: {\n Icon: Info,\n defaultIconLabel: intl.formatMessage(messages.informationLabel),\n },\n // deprecated\n [Sentiment.ERROR]: {\n Icon: Cross,\n defaultIconLabel: intl.formatMessage(messages.errorLabel),\n },\n [Sentiment.INFO]: {\n Icon: Info,\n defaultIconLabel: intl.formatMessage(messages.informationLabel),\n },\n [Sentiment.SUCCESS]: {\n Icon: Check,\n defaultIconLabel: intl.formatMessage(messages.successLabel),\n },\n };\n const { Icon, defaultIconLabel } = iconMetaBySentiment[sentiment];\n\n const isTinyViewport = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n const size = mapLegacySize[sizeProp] ?? sizeProp;\n\n return (\n <Circle\n size={isTinyViewport && size < 40 ? 32 : size}\n data-testid=\"status-icon\"\n className={clsx('status-circle', sentiment)}\n id={id}\n >\n <Icon\n className=\"status-icon\"\n title={iconLabel === null ? undefined : iconLabel || defaultIconLabel}\n />\n </Circle>\n );\n};\n\nexport default StatusIcon;\n"],"names":["mapLegacySize","String","Size","SMALL","MEDIUM","LARGE","StatusIcon","id","sentiment","size","sizeProp","iconLabel","intl","useIntl","iconMetaBySentiment","Sentiment","NEGATIVE","Icon","Cross","defaultIconLabel","formatMessage","messages","errorLabel","POSITIVE","Check","successLabel","WARNING","Alert","warningLabel","Status","PENDING","ClockBorderless","pendingLabel","NEUTRAL","Info","informationLabel","ERROR","INFO","SUCCESS","isTinyViewport","useMedia","Breakpoint","EXTRA_SMALL","_jsx","Circle","className","clsx","children","title","undefined"],"mappings":"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"}
@@ -1,10 +1,10 @@
1
1
  import { Check, Info, Cross, ClockBorderless, Alert } from '@transferwise/icons';
2
+ import { Breakpoint } from '@transferwise/neptune-tokens';
2
3
  import { clsx } from 'clsx';
3
4
  import { useIntl } from 'react-intl';
4
5
  import '../common/theme.mjs';
5
6
  import '../common/direction.mjs';
6
7
  import '../common/propsValues/control.mjs';
7
- import { Breakpoint } from '../common/propsValues/breakpoint.mjs';
8
8
  import { Size } from '../common/propsValues/size.mjs';
9
9
  import '../common/propsValues/typography.mjs';
10
10
  import '../common/propsValues/width.mjs';
@@ -79,7 +79,7 @@ const StatusIcon = ({
79
79
  Icon,
80
80
  defaultIconLabel
81
81
  } = iconMetaBySentiment[sentiment];
82
- const isTinyViewport = useMedia(`(max-width: ${Breakpoint.ZOOM_400}px)`);
82
+ const isTinyViewport = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);
83
83
  const size = mapLegacySize[sizeProp] ?? sizeProp;
84
84
  return /*#__PURE__*/jsx(Circle, {
85
85
  size: isTinyViewport && size < 40 ? 32 : size,
@@ -1 +1 @@
1
- {"version":3,"file":"StatusIcon.mjs","sources":["../../src/statusIcon/StatusIcon.tsx"],"sourcesContent":["import { Info, Alert, Cross, Check, ClockBorderless } from '@transferwise/icons';\nimport { clsx } from 'clsx';\nimport { useIntl } from 'react-intl';\n\nimport { SizeSmall, SizeMedium, SizeLarge, Sentiment, Size, Breakpoint, Status } from '../common';\nimport Circle, { CircleProps } from '../common/circle';\nimport { useMedia } from '../common/hooks/useMedia';\n\nimport messages from './StatusIcon.messages';\n\n/**\n * @deprecated Use `16 | 24 | 32 | 40 | 48 | 56 | 72` instead.\n */\ntype LegacySizes = SizeSmall | SizeMedium | SizeLarge;\n\nexport type StatusIconSentiment = Sentiment | Status.PENDING;\n\nexport type StatusIconProps = {\n id?: string;\n /** @default 'neutral' */\n sentiment?: `${StatusIconSentiment}`;\n /** @default 40 */\n size?: LegacySizes | 16 | 24 | 32 | 40 | 48 | 56 | 72;\n /**\n * Override for the sentiment's-derived, default, accessible\n * name announced by the screen readers. <br />\n * Using `null` will render the icon purely presentational.\n * */\n iconLabel?: string | null;\n};\n\nconst mapLegacySize = {\n [String(Size.SMALL)]: 16,\n [String(Size.MEDIUM)]: 40,\n [String(Size.LARGE)]: 48,\n} satisfies Record<string, CircleProps['size']>;\n\nconst StatusIcon = ({\n id,\n sentiment = 'neutral',\n size: sizeProp = 40,\n iconLabel,\n}: StatusIconProps) => {\n const intl = useIntl();\n\n const iconMetaBySentiment: Record<\n `${Sentiment}` | Status.PENDING,\n {\n Icon: React.ElementType;\n defaultIconLabel: string;\n }\n > = {\n [Sentiment.NEGATIVE]: {\n Icon: Cross,\n defaultIconLabel: intl.formatMessage(messages.errorLabel),\n },\n [Sentiment.POSITIVE]: {\n Icon: Check,\n defaultIconLabel: intl.formatMessage(messages.successLabel),\n },\n [Sentiment.WARNING]: {\n Icon: Alert,\n defaultIconLabel: intl.formatMessage(messages.warningLabel),\n },\n [Status.PENDING]: {\n Icon: ClockBorderless,\n defaultIconLabel: intl.formatMessage(messages.pendingLabel),\n },\n [Sentiment.NEUTRAL]: {\n Icon: Info,\n defaultIconLabel: intl.formatMessage(messages.informationLabel),\n },\n // deprecated\n [Sentiment.ERROR]: {\n Icon: Cross,\n defaultIconLabel: intl.formatMessage(messages.errorLabel),\n },\n [Sentiment.INFO]: {\n Icon: Info,\n defaultIconLabel: intl.formatMessage(messages.informationLabel),\n },\n [Sentiment.SUCCESS]: {\n Icon: Check,\n defaultIconLabel: intl.formatMessage(messages.successLabel),\n },\n };\n const { Icon, defaultIconLabel } = iconMetaBySentiment[sentiment];\n\n const isTinyViewport = useMedia(`(max-width: ${Breakpoint.ZOOM_400}px)`);\n const size = mapLegacySize[sizeProp] ?? sizeProp;\n\n return (\n <Circle\n size={isTinyViewport && size < 40 ? 32 : size}\n data-testid=\"status-icon\"\n className={clsx('status-circle', sentiment)}\n id={id}\n >\n <Icon\n className=\"status-icon\"\n title={iconLabel === null ? undefined : iconLabel || defaultIconLabel}\n />\n </Circle>\n );\n};\n\nexport default StatusIcon;\n"],"names":["mapLegacySize","String","Size","SMALL","MEDIUM","LARGE","StatusIcon","id","sentiment","size","sizeProp","iconLabel","intl","useIntl","iconMetaBySentiment","Sentiment","NEGATIVE","Icon","Cross","defaultIconLabel","formatMessage","messages","errorLabel","POSITIVE","Check","successLabel","WARNING","Alert","warningLabel","Status","PENDING","ClockBorderless","pendingLabel","NEUTRAL","Info","informationLabel","ERROR","INFO","SUCCESS","isTinyViewport","useMedia","Breakpoint","ZOOM_400","_jsx","Circle","className","clsx","children","title","undefined"],"mappings":"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"}
1
+ {"version":3,"file":"StatusIcon.mjs","sources":["../../src/statusIcon/StatusIcon.tsx"],"sourcesContent":["import { Info, Alert, Cross, Check, ClockBorderless } from '@transferwise/icons';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\nimport { clsx } from 'clsx';\nimport { useIntl } from 'react-intl';\n\nimport { SizeSmall, SizeMedium, SizeLarge, Sentiment, Size, Status } from '../common';\nimport Circle, { CircleProps } from '../common/circle';\nimport { useMedia } from '../common/hooks/useMedia';\n\nimport messages from './StatusIcon.messages';\n\n/**\n * @deprecated Use `16 | 24 | 32 | 40 | 48 | 56 | 72` instead.\n */\ntype LegacySizes = SizeSmall | SizeMedium | SizeLarge;\n\nexport type StatusIconSentiment = Sentiment | Status.PENDING;\n\nexport type StatusIconProps = {\n id?: string;\n /** @default 'neutral' */\n sentiment?: `${StatusIconSentiment}`;\n /** @default 40 */\n size?: LegacySizes | 16 | 24 | 32 | 40 | 48 | 56 | 72;\n /**\n * Override for the sentiment's-derived, default, accessible\n * name announced by the screen readers. <br />\n * Using `null` will render the icon purely presentational.\n * */\n iconLabel?: string | null;\n};\n\nconst mapLegacySize = {\n [String(Size.SMALL)]: 16,\n [String(Size.MEDIUM)]: 40,\n [String(Size.LARGE)]: 48,\n} satisfies Record<string, CircleProps['size']>;\n\nconst StatusIcon = ({\n id,\n sentiment = 'neutral',\n size: sizeProp = 40,\n iconLabel,\n}: StatusIconProps) => {\n const intl = useIntl();\n\n const iconMetaBySentiment: Record<\n `${Sentiment}` | Status.PENDING,\n {\n Icon: React.ElementType;\n defaultIconLabel: string;\n }\n > = {\n [Sentiment.NEGATIVE]: {\n Icon: Cross,\n defaultIconLabel: intl.formatMessage(messages.errorLabel),\n },\n [Sentiment.POSITIVE]: {\n Icon: Check,\n defaultIconLabel: intl.formatMessage(messages.successLabel),\n },\n [Sentiment.WARNING]: {\n Icon: Alert,\n defaultIconLabel: intl.formatMessage(messages.warningLabel),\n },\n [Status.PENDING]: {\n Icon: ClockBorderless,\n defaultIconLabel: intl.formatMessage(messages.pendingLabel),\n },\n [Sentiment.NEUTRAL]: {\n Icon: Info,\n defaultIconLabel: intl.formatMessage(messages.informationLabel),\n },\n // deprecated\n [Sentiment.ERROR]: {\n Icon: Cross,\n defaultIconLabel: intl.formatMessage(messages.errorLabel),\n },\n [Sentiment.INFO]: {\n Icon: Info,\n defaultIconLabel: intl.formatMessage(messages.informationLabel),\n },\n [Sentiment.SUCCESS]: {\n Icon: Check,\n defaultIconLabel: intl.formatMessage(messages.successLabel),\n },\n };\n const { Icon, defaultIconLabel } = iconMetaBySentiment[sentiment];\n\n const isTinyViewport = useMedia(`(max-width: ${Breakpoint.EXTRA_SMALL}px)`);\n const size = mapLegacySize[sizeProp] ?? sizeProp;\n\n return (\n <Circle\n size={isTinyViewport && size < 40 ? 32 : size}\n data-testid=\"status-icon\"\n className={clsx('status-circle', sentiment)}\n id={id}\n >\n <Icon\n className=\"status-icon\"\n title={iconLabel === null ? undefined : iconLabel || defaultIconLabel}\n />\n </Circle>\n );\n};\n\nexport default StatusIcon;\n"],"names":["mapLegacySize","String","Size","SMALL","MEDIUM","LARGE","StatusIcon","id","sentiment","size","sizeProp","iconLabel","intl","useIntl","iconMetaBySentiment","Sentiment","NEGATIVE","Icon","Cross","defaultIconLabel","formatMessage","messages","errorLabel","POSITIVE","Check","successLabel","WARNING","Alert","warningLabel","Status","PENDING","ClockBorderless","pendingLabel","NEUTRAL","Info","informationLabel","ERROR","INFO","SUCCESS","isTinyViewport","useMedia","Breakpoint","EXTRA_SMALL","_jsx","Circle","className","clsx","children","title","undefined"],"mappings":"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"}
@@ -6,8 +6,8 @@ var clsx = require('clsx');
6
6
  require('react');
7
7
  require('../common/theme.js');
8
8
  require('../common/direction.js');
9
+ require('@transferwise/neptune-tokens');
9
10
  require('../common/propsValues/control.js');
10
- require('../common/propsValues/breakpoint.js');
11
11
  require('../common/propsValues/size.js');
12
12
  require('../common/propsValues/typography.js');
13
13
  require('../common/propsValues/width.js');
@@ -2,8 +2,8 @@ import { clsx } from 'clsx';
2
2
  import 'react';
3
3
  import '../common/theme.mjs';
4
4
  import '../common/direction.mjs';
5
+ import '@transferwise/neptune-tokens';
5
6
  import '../common/propsValues/control.mjs';
6
- import '../common/propsValues/breakpoint.mjs';
7
7
  import '../common/propsValues/size.mjs';
8
8
  import '../common/propsValues/typography.mjs';
9
9
  import '../common/propsValues/width.mjs';
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  require('../common/theme.js');
6
6
  require('../common/direction.js');
7
+ require('@transferwise/neptune-tokens');
7
8
  require('../common/propsValues/control.js');
8
- require('../common/propsValues/breakpoint.js');
9
9
  require('../common/propsValues/size.js');
10
10
  require('../common/propsValues/typography.js');
11
11
  require('../common/propsValues/width.js');
@@ -1,7 +1,7 @@
1
1
  import '../common/theme.mjs';
2
2
  import '../common/direction.mjs';
3
+ import '@transferwise/neptune-tokens';
3
4
  import '../common/propsValues/control.mjs';
4
- import '../common/propsValues/breakpoint.mjs';
5
5
  import '../common/propsValues/size.mjs';
6
6
  import '../common/propsValues/typography.mjs';
7
7
  import '../common/propsValues/width.mjs';
@@ -18,7 +18,7 @@
18
18
  border-bottom: 1px solid rgba(0,0,0,0.10196);
19
19
  border-bottom: 1px solid var(--color-border-neutral);
20
20
  }
21
- @media (min-width: 480px) {
21
+ @media (min-width: 320px) {
22
22
  .np-accordion-item__content.has-icon {
23
23
  padding-left: 68px;
24
24
  }
@@ -24,13 +24,13 @@
24
24
  .np-card--inactive .decision {
25
25
  cursor: default;
26
26
  }
27
- @media (min-width: 480px) {
27
+ @media (min-width: 320px) {
28
28
  .np-card--has-icon .np-card__content {
29
29
  padding: 24px 72px;
30
30
  padding: var(--size-24) var(--size-72);
31
31
  }
32
32
  }
33
- @media (min-width: 480px) {
33
+ @media (min-width: 320px) {
34
34
  .np-card--has-icon .np-card__divider--expanded {
35
35
  margin: 0 72px;
36
36
  margin: 0 var(--size-72);
@@ -13,7 +13,7 @@
13
13
  padding: 8px;
14
14
  padding: var(--size-8);
15
15
  }
16
- @media (max-width: 767px) {
16
+ @media (max-width: 839.98px) {
17
17
  .carousel {
18
18
  gap: 8px;
19
19
  gap: var(--size-8);
@@ -51,14 +51,14 @@
51
51
  -webkit-scroll-snap-align: center;
52
52
  transition: all 0.4s !important;
53
53
  }
54
- @media (min-width: 1200px) {
54
+ @media (min-width: 1160px) {
55
55
  .carousel__card {
56
56
  min-width: 280px;
57
57
  width: 280px;
58
58
  height: 280px;
59
59
  }
60
60
  }
61
- @media (min-width: 768px) {
61
+ @media (min-width: 840px) {
62
62
  .carousel-wrapper {
63
63
  overflow: visible;
64
64
  }
@@ -67,14 +67,14 @@
67
67
  margin: 0 calc(-1 * var(--size-8));
68
68
  }
69
69
  }
70
- @media (max-width: 1199px) {
70
+ @media (max-width: 1159.98px) {
71
71
  .carousel__card {
72
72
  min-width: 242px;
73
73
  width: 242px;
74
74
  height: 242px;
75
75
  }
76
76
  }
77
- @media (max-width: 767px) {
77
+ @media (max-width: 839.98px) {
78
78
  .carousel__card {
79
79
  min-width: 336px;
80
80
  width: 336px;
@@ -92,7 +92,7 @@ button.np-option {
92
92
  max-width: none;
93
93
  width: auto;
94
94
  }
95
- @media (min-width: 576px) {
95
+ @media (min-width: 600px) {
96
96
  .np-theme-personal .np-option {
97
97
  border-radius: 10px;
98
98
  border-radius: var(--radius-small);
@@ -21,7 +21,7 @@
21
21
  box-sizing: border-box;
22
22
  overflow: hidden;
23
23
  }
24
- @media (min-width: 576px) {
24
+ @media (min-width: 600px) {
25
25
  .np-Card {
26
26
  max-width: var(--Card-max-width);
27
27
  }
@@ -9,17 +9,17 @@
9
9
  padding-inline: 16px;
10
10
  padding-inline: var(--wds-container-padding-inline);
11
11
  }
12
- @media (min-width: 576px) {
12
+ @media (min-width: 600px) {
13
13
  .wds-container {
14
14
  --wds-container-padding-inline: var(--size-16);
15
15
  }
16
16
  }
17
- @media (min-width: 768px) {
17
+ @media (min-width: 840px) {
18
18
  .wds-container {
19
19
  --wds-container-padding-inline: var(--size-32);
20
20
  }
21
21
  }
22
- @media (min-width: 992px) {
22
+ @media (min-width: 1160px) {
23
23
  .wds-container {
24
24
  --wds-container-padding-inline: var(--size-40);
25
25
  }
@@ -44,7 +44,7 @@
44
44
  --Button-background-hover: var(--color-sentiment-interactive-secondary-neutral-hover);
45
45
  --Button-background-active: var(--color-sentiment-interactive-secondary-neutral-active);
46
46
  }
47
- @media (min-width: 768px) {
47
+ @media (min-width: 840px) {
48
48
  .critical-comms .alert-warning .alert__message,
49
49
  .critical-comms .alert-negative .alert__message,
50
50
  .critical-comms .alert-neutral .alert__message {
@@ -68,12 +68,12 @@
68
68
  hyphens: auto;
69
69
  hyphenate-limit-chars: 7 3;
70
70
  }
71
- @media (min-width: 768px) {
71
+ @media (min-width: 840px) {
72
72
  .decision__title {
73
73
  hyphenate-limit-chars: 8 3;
74
74
  }
75
75
  }
76
- @media (min-width: 992px) {
76
+ @media (min-width: 1160px) {
77
77
  .decision__title {
78
78
  hyphenate-limit-chars: 10 4 3;
79
79
  }
@@ -85,7 +85,7 @@
85
85
  -webkit-hyphenate-limit-before: 3;
86
86
  -webkit-hyphenate-limit-after: 3;
87
87
  }
88
- @media (min-width: 992px) {
88
+ @media (min-width: 1160px) {
89
89
  .decision__title {
90
90
  -webkit-hyphenate-limit-before: 4;
91
91
  }
@@ -137,7 +137,7 @@
137
137
  color: #5d7079;
138
138
  color: var(--color-content-secondary);
139
139
  }
140
- @media (min-width: 480px) {
140
+ @media (min-width: 320px) {
141
141
  .decision .media .media-left,
142
142
  .decision.media .media-left {
143
143
  display: block;
@@ -53,7 +53,7 @@
53
53
  margin-left: 0;
54
54
  margin-left: initial;
55
55
  }
56
- @media (min-width: 992px) {
56
+ @media (min-width: 1160px) {
57
57
  .btn-toolbar:not(.btn-toolbar-xl) {
58
58
  margin-left: -4px;
59
59
  margin-right: -4px;
@@ -91,7 +91,7 @@
91
91
  [dir="rtl"] .btn-toolbar.btn-toolbar-xs .input-group {
92
92
  float: right;
93
93
  }
94
- @media (min-width: 576px) {
94
+ @media (min-width: 600px) {
95
95
  .btn-toolbar.btn-toolbar-sm {
96
96
  margin-left: -4px;
97
97
  margin-right: -4px;
@@ -111,7 +111,7 @@
111
111
  float: right;
112
112
  }
113
113
  }
114
- @media (min-width: 768px) {
114
+ @media (min-width: 840px) {
115
115
  .btn-toolbar.btn-toolbar-md {
116
116
  margin-left: -4px;
117
117
  margin-right: -4px;
@@ -131,7 +131,7 @@
131
131
  float: right;
132
132
  }
133
133
  }
134
- @media (min-width: 992px) {
134
+ @media (min-width: 1160px) {
135
135
  .btn-toolbar.btn-toolbar-lg {
136
136
  margin-left: -4px;
137
137
  margin-right: -4px;
@@ -151,7 +151,7 @@
151
151
  float: right;
152
152
  }
153
153
  }
154
- @media (min-width: 1200px) {
154
+ @media (min-width: 1160px) {
155
155
  .btn-toolbar.btn-toolbar-xl {
156
156
  margin-left: -4px;
157
157
  margin-right: -4px;
@@ -426,7 +426,7 @@ html:not([dir="rtl"]) .btn-group .btn + .btn-primary {
426
426
  padding-left: 40px;
427
427
  padding-right: 16px;
428
428
  }
429
- @media (min-width: 576px) {
429
+ @media (min-width: 600px) {
430
430
  .btn-group.btn-block .btn-input.btn.dropdown-toggle {
431
431
  padding-right: 48px;
432
432
  }
@@ -1127,7 +1127,7 @@ fieldset[disabled] .btn-accent:not(.disabled):not(:disabled).btn-priority-3 {
1127
1127
  height: 18px;
1128
1128
  background-size: 12px 12px !important;
1129
1129
  }
1130
- @media (max-width: 767px) {
1130
+ @media (max-width: 839px) {
1131
1131
  .navbar-collapse .btn {
1132
1132
  padding: var(--btn-padding);
1133
1133
  font-size: 1rem;
@@ -145,7 +145,7 @@ a.circle.active:hover {
145
145
  background-color: rgba(134,167,189,0.10196);
146
146
  background-color: var(--color-background-neutral);
147
147
  }
148
- @media (min-width: 576px) {
148
+ @media (min-width: 600px) {
149
149
  .circle-responsive {
150
150
  border-radius: 50%;
151
151
  background-color: #fff;