@transferwise/components 0.0.0-experimental-c7da7db → 0.0.0-experimental-b03ca75

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 (434) hide show
  1. package/build/accordion/AccordionItem/AccordionItem.js +0 -1
  2. package/build/accordion/AccordionItem/AccordionItem.js.map +1 -1
  3. package/build/accordion/AccordionItem/AccordionItem.mjs +0 -1
  4. package/build/accordion/AccordionItem/AccordionItem.mjs.map +1 -1
  5. package/build/actionButton/ActionButton.js +0 -1
  6. package/build/actionButton/ActionButton.js.map +1 -1
  7. package/build/actionButton/ActionButton.mjs +0 -1
  8. package/build/actionButton/ActionButton.mjs.map +1 -1
  9. package/build/actionOption/ActionOption.js +0 -1
  10. package/build/actionOption/ActionOption.js.map +1 -1
  11. package/build/actionOption/ActionOption.mjs +0 -1
  12. package/build/actionOption/ActionOption.mjs.map +1 -1
  13. package/build/alert/Alert.js +0 -1
  14. package/build/alert/Alert.js.map +1 -1
  15. package/build/alert/Alert.mjs +0 -1
  16. package/build/alert/Alert.mjs.map +1 -1
  17. package/build/alert/inlineMarkdown/InlineMarkdown.js +0 -1
  18. package/build/alert/inlineMarkdown/InlineMarkdown.js.map +1 -1
  19. package/build/alert/inlineMarkdown/InlineMarkdown.mjs +0 -1
  20. package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +1 -1
  21. package/build/avatar/Avatar.js +0 -1
  22. package/build/avatar/Avatar.js.map +1 -1
  23. package/build/avatar/Avatar.mjs +0 -1
  24. package/build/avatar/Avatar.mjs.map +1 -1
  25. package/build/avatarView/AvatarView.js +0 -1
  26. package/build/avatarView/AvatarView.js.map +1 -1
  27. package/build/avatarView/AvatarView.mjs +0 -1
  28. package/build/avatarView/AvatarView.mjs.map +1 -1
  29. package/build/avatarWrapper/AvatarWrapper.js +0 -1
  30. package/build/avatarWrapper/AvatarWrapper.js.map +1 -1
  31. package/build/avatarWrapper/AvatarWrapper.mjs +0 -1
  32. package/build/avatarWrapper/AvatarWrapper.mjs.map +1 -1
  33. package/build/badge/Badge.js +0 -1
  34. package/build/badge/Badge.js.map +1 -1
  35. package/build/badge/Badge.mjs +0 -1
  36. package/build/badge/Badge.mjs.map +1 -1
  37. package/build/button/Button.js +0 -1
  38. package/build/button/Button.js.map +1 -1
  39. package/build/button/Button.mjs +0 -1
  40. package/build/button/Button.mjs.map +1 -1
  41. package/build/button/LegacyButton.js +0 -1
  42. package/build/button/LegacyButton.js.map +1 -1
  43. package/build/button/LegacyButton.mjs +0 -1
  44. package/build/button/LegacyButton.mjs.map +1 -1
  45. package/build/button/classMap.js +0 -1
  46. package/build/button/classMap.js.map +1 -1
  47. package/build/button/classMap.mjs +0 -1
  48. package/build/button/classMap.mjs.map +1 -1
  49. package/build/button/legacyUtils/legacyUtils.js +0 -1
  50. package/build/button/legacyUtils/legacyUtils.js.map +1 -1
  51. package/build/button/legacyUtils/legacyUtils.mjs +0 -1
  52. package/build/button/legacyUtils/legacyUtils.mjs.map +1 -1
  53. package/build/card/Card.js +0 -1
  54. package/build/card/Card.js.map +1 -1
  55. package/build/card/Card.mjs +0 -1
  56. package/build/card/Card.mjs.map +1 -1
  57. package/build/checkbox/Checkbox.js +0 -1
  58. package/build/checkbox/Checkbox.js.map +1 -1
  59. package/build/checkbox/Checkbox.mjs +0 -1
  60. package/build/checkbox/Checkbox.mjs.map +1 -1
  61. package/build/chevron/Chevron.js +0 -1
  62. package/build/chevron/Chevron.js.map +1 -1
  63. package/build/chevron/Chevron.mjs +0 -1
  64. package/build/chevron/Chevron.mjs.map +1 -1
  65. package/build/chips/Chip.js +0 -1
  66. package/build/chips/Chip.js.map +1 -1
  67. package/build/chips/Chip.mjs +0 -1
  68. package/build/chips/Chip.mjs.map +1 -1
  69. package/build/circularButton/CircularButton.js +0 -1
  70. package/build/circularButton/CircularButton.js.map +1 -1
  71. package/build/circularButton/CircularButton.mjs +0 -1
  72. package/build/circularButton/CircularButton.mjs.map +1 -1
  73. package/build/common/locale/index.js +4 -9
  74. package/build/common/locale/index.js.map +1 -1
  75. package/build/common/locale/index.mjs +4 -9
  76. package/build/common/locale/index.mjs.map +1 -1
  77. package/build/common/panel/Panel.js +56 -41
  78. package/build/common/panel/Panel.js.map +1 -1
  79. package/build/common/panel/Panel.mjs +61 -46
  80. package/build/common/panel/Panel.mjs.map +1 -1
  81. package/build/common/responsivePanel/ResponsivePanel.js +0 -1
  82. package/build/common/responsivePanel/ResponsivePanel.js.map +1 -1
  83. package/build/common/responsivePanel/ResponsivePanel.mjs +0 -1
  84. package/build/common/responsivePanel/ResponsivePanel.mjs.map +1 -1
  85. package/build/criticalBanner/CriticalCommsBanner.js +0 -1
  86. package/build/criticalBanner/CriticalCommsBanner.js.map +1 -1
  87. package/build/criticalBanner/CriticalCommsBanner.mjs +0 -1
  88. package/build/criticalBanner/CriticalCommsBanner.mjs.map +1 -1
  89. package/build/dateInput/DateInput.js +1 -1
  90. package/build/dateInput/DateInput.mjs +1 -1
  91. package/build/dateLookup/DateLookup.js +1 -1
  92. package/build/dateLookup/DateLookup.mjs +1 -1
  93. package/build/dateLookup/dateHeader/DateHeader.js +0 -1
  94. package/build/dateLookup/dateHeader/DateHeader.js.map +1 -1
  95. package/build/dateLookup/dateHeader/DateHeader.mjs +0 -1
  96. package/build/dateLookup/dateHeader/DateHeader.mjs.map +1 -1
  97. package/build/decision/Decision.js +0 -1
  98. package/build/decision/Decision.js.map +1 -1
  99. package/build/decision/Decision.mjs +0 -1
  100. package/build/decision/Decision.mjs.map +1 -1
  101. package/build/definitionList/DefinitionList.js +0 -1
  102. package/build/definitionList/DefinitionList.js.map +1 -1
  103. package/build/definitionList/DefinitionList.mjs +0 -1
  104. package/build/definitionList/DefinitionList.mjs.map +1 -1
  105. package/build/dimmer/Dimmer.js +0 -1
  106. package/build/dimmer/Dimmer.js.map +1 -1
  107. package/build/dimmer/Dimmer.mjs +0 -1
  108. package/build/dimmer/Dimmer.mjs.map +1 -1
  109. package/build/display/Display.js +0 -1
  110. package/build/display/Display.js.map +1 -1
  111. package/build/display/Display.mjs +0 -1
  112. package/build/display/Display.mjs.map +1 -1
  113. package/build/drawer/Drawer.js +0 -1
  114. package/build/drawer/Drawer.js.map +1 -1
  115. package/build/drawer/Drawer.mjs +0 -1
  116. package/build/drawer/Drawer.mjs.map +1 -1
  117. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js +3 -4
  118. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.js.map +1 -1
  119. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs +3 -4
  120. package/build/expressiveMoneyInput/currencySelector/CurrencySelector.mjs.map +1 -1
  121. package/build/field/Field.js +5 -5
  122. package/build/field/Field.mjs +5 -5
  123. package/build/flowNavigation/FlowNavigation.js +0 -1
  124. package/build/flowNavigation/FlowNavigation.js.map +1 -1
  125. package/build/flowNavigation/FlowNavigation.mjs +0 -1
  126. package/build/flowNavigation/FlowNavigation.mjs.map +1 -1
  127. package/build/header/Header.js +0 -1
  128. package/build/header/Header.js.map +1 -1
  129. package/build/header/Header.mjs +0 -1
  130. package/build/header/Header.mjs.map +1 -1
  131. package/build/i18n/en.json +2 -0
  132. package/build/i18n/en.json.js +2 -0
  133. package/build/i18n/en.json.js.map +1 -1
  134. package/build/i18n/en.json.mjs +2 -0
  135. package/build/i18n/en.json.mjs.map +1 -1
  136. package/build/index.js +2 -0
  137. package/build/index.js.map +1 -1
  138. package/build/index.mjs +1 -0
  139. package/build/index.mjs.map +1 -1
  140. package/build/info/Info.js +0 -1
  141. package/build/info/Info.js.map +1 -1
  142. package/build/info/Info.mjs +0 -1
  143. package/build/info/Info.mjs.map +1 -1
  144. package/build/inlineAlert/InlineAlert.js +0 -1
  145. package/build/inlineAlert/InlineAlert.js.map +1 -1
  146. package/build/inlineAlert/InlineAlert.mjs +0 -1
  147. package/build/inlineAlert/InlineAlert.mjs.map +1 -1
  148. package/build/inputs/SearchInput.js +0 -1
  149. package/build/inputs/SearchInput.js.map +1 -1
  150. package/build/inputs/SearchInput.mjs +0 -1
  151. package/build/inputs/SearchInput.mjs.map +1 -1
  152. package/build/instructionsList/InstructionsList.js +0 -1
  153. package/build/instructionsList/InstructionsList.js.map +1 -1
  154. package/build/instructionsList/InstructionsList.mjs +0 -1
  155. package/build/instructionsList/InstructionsList.mjs.map +1 -1
  156. package/build/link/Link.js +0 -1
  157. package/build/link/Link.js.map +1 -1
  158. package/build/link/Link.mjs +0 -1
  159. package/build/link/Link.mjs.map +1 -1
  160. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js +0 -1
  161. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.js.map +1 -1
  162. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs +0 -1
  163. package/build/listItem/AdditionalInfo/ListItemAdditionalInfo.mjs.map +1 -1
  164. package/build/listItem/ListItem.js +0 -1
  165. package/build/listItem/ListItem.js.map +1 -1
  166. package/build/listItem/ListItem.mjs +0 -1
  167. package/build/listItem/ListItem.mjs.map +1 -1
  168. package/build/listItem/Prompt/ListItemPrompt.js +5 -5
  169. package/build/listItem/Prompt/ListItemPrompt.mjs +5 -5
  170. package/build/loader/Loader.js +0 -1
  171. package/build/loader/Loader.js.map +1 -1
  172. package/build/loader/Loader.mjs +0 -1
  173. package/build/loader/Loader.mjs.map +1 -1
  174. package/build/main.css +130 -51
  175. package/build/markdown/Markdown.js +0 -1
  176. package/build/markdown/Markdown.js.map +1 -1
  177. package/build/markdown/Markdown.mjs +0 -1
  178. package/build/markdown/Markdown.mjs.map +1 -1
  179. package/build/modal/Modal.js +0 -1
  180. package/build/modal/Modal.js.map +1 -1
  181. package/build/modal/Modal.mjs +0 -1
  182. package/build/modal/Modal.mjs.map +1 -1
  183. package/build/moneyInput/MoneyInput.js +12 -28
  184. package/build/moneyInput/MoneyInput.js.map +1 -1
  185. package/build/moneyInput/MoneyInput.mjs +14 -30
  186. package/build/moneyInput/MoneyInput.mjs.map +1 -1
  187. package/build/moneyInput/currencyFormatting.js +2 -8
  188. package/build/moneyInput/currencyFormatting.js.map +1 -1
  189. package/build/moneyInput/currencyFormatting.mjs +4 -5
  190. package/build/moneyInput/currencyFormatting.mjs.map +1 -1
  191. package/build/navigationOption/NavigationOption.js +0 -1
  192. package/build/navigationOption/NavigationOption.js.map +1 -1
  193. package/build/navigationOption/NavigationOption.mjs +0 -1
  194. package/build/navigationOption/NavigationOption.mjs.map +1 -1
  195. package/build/nudge/Nudge.js +0 -1
  196. package/build/nudge/Nudge.js.map +1 -1
  197. package/build/nudge/Nudge.mjs +0 -1
  198. package/build/nudge/Nudge.mjs.map +1 -1
  199. package/build/overlayHeader/OverlayHeader.js +0 -1
  200. package/build/overlayHeader/OverlayHeader.js.map +1 -1
  201. package/build/overlayHeader/OverlayHeader.mjs +0 -1
  202. package/build/overlayHeader/OverlayHeader.mjs.map +1 -1
  203. package/build/phoneNumberInput/PhoneNumberInput.js +0 -1
  204. package/build/phoneNumberInput/PhoneNumberInput.js.map +1 -1
  205. package/build/phoneNumberInput/PhoneNumberInput.mjs +0 -1
  206. package/build/phoneNumberInput/PhoneNumberInput.mjs.map +1 -1
  207. package/build/popover/Popover.js +0 -1
  208. package/build/popover/Popover.js.map +1 -1
  209. package/build/popover/Popover.mjs +0 -1
  210. package/build/popover/Popover.mjs.map +1 -1
  211. package/build/processIndicator/ProcessIndicator.js +0 -1
  212. package/build/processIndicator/ProcessIndicator.js.map +1 -1
  213. package/build/processIndicator/ProcessIndicator.mjs +0 -1
  214. package/build/processIndicator/ProcessIndicator.mjs.map +1 -1
  215. package/build/progressBar/ProgressBar.js +0 -1
  216. package/build/progressBar/ProgressBar.js.map +1 -1
  217. package/build/progressBar/ProgressBar.mjs +0 -1
  218. package/build/progressBar/ProgressBar.mjs.map +1 -1
  219. package/build/promoCard/PromoCard.js +0 -1
  220. package/build/promoCard/PromoCard.js.map +1 -1
  221. package/build/promoCard/PromoCard.mjs +0 -1
  222. package/build/promoCard/PromoCard.mjs.map +1 -1
  223. package/build/promoCard/PromoCardIndicator.js +0 -1
  224. package/build/promoCard/PromoCardIndicator.js.map +1 -1
  225. package/build/promoCard/PromoCardIndicator.mjs +0 -1
  226. package/build/promoCard/PromoCardIndicator.mjs.map +1 -1
  227. package/build/prompt/ActionPrompt/ActionPrompt.js +8 -41
  228. package/build/prompt/ActionPrompt/ActionPrompt.js.map +1 -1
  229. package/build/prompt/ActionPrompt/ActionPrompt.mjs +8 -41
  230. package/build/prompt/ActionPrompt/ActionPrompt.mjs.map +1 -1
  231. package/build/prompt/CriticalBanner/CriticalBanner.js +148 -0
  232. package/build/prompt/CriticalBanner/CriticalBanner.js.map +1 -0
  233. package/build/prompt/CriticalBanner/CriticalBanner.mjs +146 -0
  234. package/build/prompt/CriticalBanner/CriticalBanner.mjs.map +1 -0
  235. package/build/prompt/CriticalBanner/helpers.js +29 -0
  236. package/build/prompt/CriticalBanner/helpers.js.map +1 -0
  237. package/build/prompt/CriticalBanner/helpers.mjs +26 -0
  238. package/build/prompt/CriticalBanner/helpers.mjs.map +1 -0
  239. package/build/prompt/InfoPrompt/InfoPrompt.js +0 -1
  240. package/build/prompt/InfoPrompt/InfoPrompt.js.map +1 -1
  241. package/build/prompt/InfoPrompt/InfoPrompt.mjs +0 -1
  242. package/build/prompt/InfoPrompt/InfoPrompt.mjs.map +1 -1
  243. package/build/prompt/InlinePrompt/InlinePrompt.js +0 -1
  244. package/build/prompt/InlinePrompt/InlinePrompt.js.map +1 -1
  245. package/build/prompt/InlinePrompt/InlinePrompt.mjs +0 -1
  246. package/build/prompt/InlinePrompt/InlinePrompt.mjs.map +1 -1
  247. package/build/prompt/PrimitivePrompt/PrimitivePrompt.js +2 -0
  248. package/build/prompt/PrimitivePrompt/PrimitivePrompt.js.map +1 -1
  249. package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs +2 -0
  250. package/build/prompt/PrimitivePrompt/PrimitivePrompt.mjs.map +1 -1
  251. package/build/prompt/common/Expander/Expander.js +47 -0
  252. package/build/prompt/common/Expander/Expander.js.map +1 -0
  253. package/build/prompt/common/Expander/Expander.messages.js +17 -0
  254. package/build/prompt/common/Expander/Expander.messages.js.map +1 -0
  255. package/build/prompt/common/Expander/Expander.messages.mjs +13 -0
  256. package/build/prompt/common/Expander/Expander.messages.mjs.map +1 -0
  257. package/build/prompt/common/Expander/Expander.mjs +44 -0
  258. package/build/prompt/common/Expander/Expander.mjs.map +1 -0
  259. package/build/prompt/helpers/promptMedia.js +52 -0
  260. package/build/prompt/helpers/promptMedia.js.map +1 -0
  261. package/build/prompt/helpers/promptMedia.mjs +50 -0
  262. package/build/prompt/helpers/promptMedia.mjs.map +1 -0
  263. package/build/radio/Radio.js +0 -1
  264. package/build/radio/Radio.js.map +1 -1
  265. package/build/radio/Radio.mjs +0 -1
  266. package/build/radio/Radio.mjs.map +1 -1
  267. package/build/segmentedControl/SegmentedControl.js +0 -1
  268. package/build/segmentedControl/SegmentedControl.js.map +1 -1
  269. package/build/segmentedControl/SegmentedControl.mjs +0 -1
  270. package/build/segmentedControl/SegmentedControl.mjs.map +1 -1
  271. package/build/select/Select.js +0 -1
  272. package/build/select/Select.js.map +1 -1
  273. package/build/select/Select.mjs +0 -1
  274. package/build/select/Select.mjs.map +1 -1
  275. package/build/select/option/Option.js +0 -1
  276. package/build/select/option/Option.js.map +1 -1
  277. package/build/select/option/Option.mjs +0 -1
  278. package/build/select/option/Option.mjs.map +1 -1
  279. package/build/statusIcon/StatusIcon.js +0 -1
  280. package/build/statusIcon/StatusIcon.js.map +1 -1
  281. package/build/statusIcon/StatusIcon.mjs +0 -1
  282. package/build/statusIcon/StatusIcon.mjs.map +1 -1
  283. package/build/stepper/Stepper.js +0 -1
  284. package/build/stepper/Stepper.js.map +1 -1
  285. package/build/stepper/Stepper.mjs +0 -1
  286. package/build/stepper/Stepper.mjs.map +1 -1
  287. package/build/sticky/Sticky.js +0 -1
  288. package/build/sticky/Sticky.js.map +1 -1
  289. package/build/sticky/Sticky.mjs +0 -1
  290. package/build/sticky/Sticky.mjs.map +1 -1
  291. package/build/styles/css/neptune.css +22 -22
  292. package/build/styles/less/neptune-tokens.less +4 -4
  293. package/build/styles/main.css +130 -51
  294. package/build/styles/prompt/CriticalBanner/CriticalBanner.css +59 -0
  295. package/build/styles/prompt/common/Expander/Expander.css +8 -0
  296. package/build/styles/props/neptune-tokens.css +2 -2
  297. package/build/styles/styles/less/neptune.css +22 -22
  298. package/build/summary/Summary.js +0 -1
  299. package/build/summary/Summary.js.map +1 -1
  300. package/build/summary/Summary.mjs +0 -1
  301. package/build/summary/Summary.mjs.map +1 -1
  302. package/build/table/Table.js +0 -1
  303. package/build/table/Table.js.map +1 -1
  304. package/build/table/Table.mjs +0 -1
  305. package/build/table/Table.mjs.map +1 -1
  306. package/build/table/TableRow.js +0 -1
  307. package/build/table/TableRow.js.map +1 -1
  308. package/build/table/TableRow.mjs +0 -1
  309. package/build/table/TableRow.mjs.map +1 -1
  310. package/build/table/TableStatusText.js +0 -1
  311. package/build/table/TableStatusText.js.map +1 -1
  312. package/build/table/TableStatusText.mjs +0 -1
  313. package/build/table/TableStatusText.mjs.map +1 -1
  314. package/build/tabs/Tabs.js +0 -1
  315. package/build/tabs/Tabs.js.map +1 -1
  316. package/build/tabs/Tabs.mjs +0 -1
  317. package/build/tabs/Tabs.mjs.map +1 -1
  318. package/build/tile/Tile.js +0 -1
  319. package/build/tile/Tile.js.map +1 -1
  320. package/build/tile/Tile.mjs +0 -1
  321. package/build/tile/Tile.mjs.map +1 -1
  322. package/build/title/Title.js +0 -1
  323. package/build/title/Title.js.map +1 -1
  324. package/build/title/Title.mjs +0 -1
  325. package/build/title/Title.mjs.map +1 -1
  326. package/build/tooltip/Tooltip.js +50 -30
  327. package/build/tooltip/Tooltip.js.map +1 -1
  328. package/build/tooltip/Tooltip.mjs +51 -31
  329. package/build/tooltip/Tooltip.mjs.map +1 -1
  330. package/build/typeahead/Typeahead.js +5 -5
  331. package/build/typeahead/Typeahead.mjs +5 -5
  332. package/build/types/common/locale/index.d.ts +1 -1
  333. package/build/types/common/locale/index.d.ts.map +1 -1
  334. package/build/types/common/panel/Panel.d.ts.map +1 -1
  335. package/build/types/expressiveMoneyInput/currencySelector/CurrencySelector.d.ts.map +1 -1
  336. package/build/types/index.d.ts +2 -2
  337. package/build/types/index.d.ts.map +1 -1
  338. package/build/types/moneyInput/MoneyInput.d.ts +0 -6
  339. package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
  340. package/build/types/moneyInput/currencyFormatting.d.ts +3 -4
  341. package/build/types/moneyInput/currencyFormatting.d.ts.map +1 -1
  342. package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts +2 -11
  343. package/build/types/prompt/ActionPrompt/ActionPrompt.d.ts.map +1 -1
  344. package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts +40 -0
  345. package/build/types/prompt/CriticalBanner/CriticalBanner.d.ts.map +1 -0
  346. package/build/types/prompt/CriticalBanner/helpers.d.ts +18 -0
  347. package/build/types/prompt/CriticalBanner/helpers.d.ts.map +1 -0
  348. package/build/types/prompt/CriticalBanner/index.d.ts +3 -0
  349. package/build/types/prompt/CriticalBanner/index.d.ts.map +1 -0
  350. package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts +8 -3
  351. package/build/types/prompt/PrimitivePrompt/PrimitivePrompt.d.ts.map +1 -1
  352. package/build/types/prompt/common/Expander/Expander.d.ts +20 -0
  353. package/build/types/prompt/common/Expander/Expander.d.ts.map +1 -0
  354. package/build/types/prompt/common/Expander/Expander.messages.d.ts +14 -0
  355. package/build/types/prompt/common/Expander/Expander.messages.d.ts.map +1 -0
  356. package/build/types/prompt/helpers/promptMedia.d.ts +22 -0
  357. package/build/types/prompt/helpers/promptMedia.d.ts.map +1 -0
  358. package/build/types/prompt/index.d.ts +2 -0
  359. package/build/types/prompt/index.d.ts.map +1 -1
  360. package/build/types/test-utils/index.d.ts +4 -0
  361. package/build/types/test-utils/index.d.ts.map +1 -1
  362. package/build/types/tooltip/Tooltip.d.ts.map +1 -1
  363. package/build/upload/Upload.js +0 -1
  364. package/build/upload/Upload.js.map +1 -1
  365. package/build/upload/Upload.mjs +0 -1
  366. package/build/upload/Upload.mjs.map +1 -1
  367. package/build/upload/steps/completeStep/completeStep.js +0 -1
  368. package/build/upload/steps/completeStep/completeStep.js.map +1 -1
  369. package/build/upload/steps/completeStep/completeStep.mjs +0 -1
  370. package/build/upload/steps/completeStep/completeStep.mjs.map +1 -1
  371. package/build/upload/steps/processingStep/processingStep.js +0 -1
  372. package/build/upload/steps/processingStep/processingStep.js.map +1 -1
  373. package/build/upload/steps/processingStep/processingStep.mjs +0 -1
  374. package/build/upload/steps/processingStep/processingStep.mjs.map +1 -1
  375. package/build/upload/steps/uploadImageStep/uploadImageStep.js +0 -1
  376. package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +1 -1
  377. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +0 -1
  378. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +1 -1
  379. package/build/uploadInput/UploadInput.js +0 -1
  380. package/build/uploadInput/UploadInput.js.map +1 -1
  381. package/build/uploadInput/UploadInput.mjs +0 -1
  382. package/build/uploadInput/UploadInput.mjs.map +1 -1
  383. package/build/uploadInput/uploadButton/UploadButton.js +0 -1
  384. package/build/uploadInput/uploadButton/UploadButton.js.map +1 -1
  385. package/build/uploadInput/uploadButton/UploadButton.mjs +0 -1
  386. package/build/uploadInput/uploadButton/UploadButton.mjs.map +1 -1
  387. package/build/uploadInput/uploadButton/defaults.js +0 -1
  388. package/build/uploadInput/uploadButton/defaults.js.map +1 -1
  389. package/build/uploadInput/uploadButton/defaults.mjs +0 -1
  390. package/build/uploadInput/uploadButton/defaults.mjs.map +1 -1
  391. package/build/uploadInput/uploadItem/UploadItem.js +0 -1
  392. package/build/uploadInput/uploadItem/UploadItem.js.map +1 -1
  393. package/build/uploadInput/uploadItem/UploadItem.mjs +0 -1
  394. package/build/uploadInput/uploadItem/UploadItem.mjs.map +1 -1
  395. package/build/withDisplayFormat/WithDisplayFormat.js +0 -1
  396. package/build/withDisplayFormat/WithDisplayFormat.js.map +1 -1
  397. package/build/withDisplayFormat/WithDisplayFormat.mjs +0 -1
  398. package/build/withDisplayFormat/WithDisplayFormat.mjs.map +1 -1
  399. package/package.json +16 -14
  400. package/src/common/locale/index.test.ts +4 -13
  401. package/src/common/locale/index.ts +3 -9
  402. package/src/common/panel/Panel.tsx +50 -42
  403. package/src/expressiveMoneyInput/ExpressiveMoneyInput.story.tsx +0 -18
  404. package/src/expressiveMoneyInput/currencySelector/CurrencySelector.test.tsx +1 -119
  405. package/src/expressiveMoneyInput/currencySelector/CurrencySelector.tsx +3 -4
  406. package/src/i18n/en.json +2 -0
  407. package/src/index.ts +2 -2
  408. package/src/main.css +130 -51
  409. package/src/main.less +3 -1
  410. package/src/moneyInput/MoneyInput.story.tsx +1 -10
  411. package/src/moneyInput/MoneyInput.test.story.tsx +1 -141
  412. package/src/moneyInput/MoneyInput.test.tsx +0 -45
  413. package/src/moneyInput/MoneyInput.tsx +3 -27
  414. package/src/moneyInput/currencyFormatting.ts +5 -11
  415. package/src/prompt/ActionPrompt/ActionPrompt.tsx +9 -62
  416. package/src/prompt/CriticalBanner/CriticalBanner.accessibility.docs.mdx +131 -0
  417. package/src/prompt/CriticalBanner/CriticalBanner.css +59 -0
  418. package/src/prompt/CriticalBanner/CriticalBanner.less +64 -0
  419. package/src/prompt/CriticalBanner/CriticalBanner.story.tsx +645 -0
  420. package/src/prompt/CriticalBanner/CriticalBanner.test.story.tsx +304 -0
  421. package/src/prompt/CriticalBanner/CriticalBanner.tsx +194 -0
  422. package/src/prompt/CriticalBanner/helpers.ts +39 -0
  423. package/src/prompt/CriticalBanner/index.ts +2 -0
  424. package/src/prompt/PrimitivePrompt/PrimitivePrompt.tsx +9 -2
  425. package/src/prompt/common/Expander/Expander.css +8 -0
  426. package/src/prompt/common/Expander/Expander.less +9 -0
  427. package/src/prompt/common/Expander/Expander.messages.ts +14 -0
  428. package/src/prompt/common/Expander/Expander.test.tsx +167 -0
  429. package/src/prompt/common/Expander/Expander.tsx +83 -0
  430. package/src/prompt/helpers/promptMedia.tsx +79 -0
  431. package/src/prompt/index.ts +4 -0
  432. package/src/sentimentSurface/SentimentSurface.story.tsx +43 -17
  433. package/src/styles/less/neptune.css +22 -22
  434. package/src/tooltip/Tooltip.tsx +45 -26
@@ -1,12 +1,3 @@
1
- import {
2
- arrow as arrowMiddleware,
3
- autoUpdate,
4
- flip as flipMiddleware,
5
- offset,
6
- type Placement,
7
- shift,
8
- useFloating,
9
- } from '@floating-ui/react';
10
1
  import { clsx } from 'clsx';
11
2
  import {
12
3
  CSSProperties,
@@ -16,19 +7,21 @@ import {
16
7
  SyntheticEvent,
17
8
  forwardRef,
18
9
  useContext,
19
- useRef,
10
+ useEffect,
11
+ useState,
20
12
  } from 'react';
13
+ import { usePopper } from 'react-popper';
21
14
 
22
15
  import { Position, PositionBottom, PositionLeft, PositionRight, PositionTop } from '..';
23
16
  import Dimmer from '../../dimmer';
24
17
  import { OverlayIdContext } from '../../provider/overlay/OverlayIdProvider';
25
18
 
26
- const POPOVER_OFFSET = 16;
19
+ const POPOVER_OFFSET = [0, 16];
27
20
 
28
21
  // By default the flip positioning explores only the opposite alternative. So if left is passed and there's no enough space
29
22
  // the right one gets chosen. If there's no space on both sides popover goes back to the initially chosen one left.
30
23
  // This mapping forces popover to try the four available positions before going back to the initial chosen one.
31
- const fallbackPlacements: Record<string, Placement[]> = {
24
+ const fallbackPlacements = {
32
25
  [Position.TOP]: [Position.BOTTOM, Position.RIGHT, Position.LEFT],
33
26
  [Position.BOTTOM]: [Position.TOP, Position.RIGHT, Position.LEFT],
34
27
  [Position.LEFT]: [Position.RIGHT, Position.TOP, Position.BOTTOM],
@@ -64,43 +57,56 @@ const Panel = forwardRef<HTMLDivElement, PanelProps>(function Panel(
64
57
  }: PanelProps,
65
58
  reference,
66
59
  ) {
67
- const arrowRef = useRef<HTMLDivElement | null>(null);
68
-
69
- const middleware = [];
70
-
71
- if (arrow) {
72
- middleware.push(offset(POPOVER_OFFSET));
73
- }
60
+ const [arrowElement, setArrowElement] = useState<HTMLDivElement | null>(null);
61
+ const [popperElement, setPopperElement] = useState<HTMLDivElement | null>(null);
74
62
 
75
- if (flip && fallbackPlacements[position]) {
76
- middleware.push(
77
- flipMiddleware({
78
- fallbackPlacements: fallbackPlacements[position],
79
- }),
80
- );
81
- }
63
+ const modifiers = [];
82
64
 
83
65
  if (altAxis) {
84
- middleware.push(shift());
66
+ modifiers.push({
67
+ // https://popper.js.org/docs/v2/modifiers/prevent-overflow
68
+ name: 'preventOverflow',
69
+ options: {
70
+ altAxis: true,
71
+ tether: false,
72
+ },
73
+ });
85
74
  }
86
75
 
87
76
  if (arrow) {
88
- middleware.push(arrowMiddleware({ element: arrowRef, padding: 8 }));
77
+ modifiers.push({
78
+ name: 'arrow',
79
+ options: {
80
+ element: arrowElement,
81
+ options: {
82
+ padding: 8, // 8px from the edges of the popper
83
+ },
84
+ },
85
+ });
86
+ // This lets you displace a popper element from its reference element.
87
+ modifiers.push({ name: 'offset', options: { offset: POPOVER_OFFSET } });
88
+ }
89
+ if (flip && fallbackPlacements[position]) {
90
+ modifiers.push({
91
+ name: 'flip',
92
+ options: {
93
+ fallbackPlacements: fallbackPlacements[position],
94
+ },
95
+ });
89
96
  }
90
97
 
91
- const { refs, floatingStyles, placement, middlewareData } = useFloating({
98
+ const { styles, attributes, forceUpdate } = usePopper(anchorRef.current, popperElement, {
92
99
  placement: position,
93
- middleware,
94
- elements: {
95
- reference: anchorRef.current,
96
- },
97
- whileElementsMounted: open ? autoUpdate : undefined,
100
+ modifiers,
98
101
  });
99
102
 
100
- const arrowStyle: CSSProperties = {
101
- ...(middlewareData.arrow?.x != null ? { left: middlewareData.arrow.x } : {}),
102
- ...(middlewareData.arrow?.y != null ? { top: middlewareData.arrow.y } : {}),
103
- };
103
+ // If the trigger is not visible when the position is calculated, it will be incorrect. Because this can happen repeatedly (on resize for example),
104
+ // it is most simple just to always position before opening
105
+ useEffect(() => {
106
+ if (open && forceUpdate) {
107
+ forceUpdate();
108
+ }
109
+ }, [open]);
104
110
 
105
111
  const contentStyle: CSSProperties = {
106
112
  ...(anchorWidth ? { width: anchorRef.current?.clientWidth } : undefined),
@@ -113,16 +119,18 @@ const Panel = forwardRef<HTMLDivElement, PanelProps>(function Panel(
113
119
  <div
114
120
  id={overlayId}
115
121
  {...rest}
116
- ref={refs.setFloating}
122
+ ref={setPopperElement}
117
123
  role="dialog"
118
- style={floatingStyles}
119
- data-popper-placement={placement}
124
+ style={{ ...styles.popper }}
125
+ {...attributes.popper}
120
126
  className={clsx('np-panel', { 'np-panel--open': open }, rest.className)}
121
127
  >
122
128
  <div ref={reference} style={contentStyle} className={clsx('np-panel__content')}>
123
129
  {children}
124
130
  {/* Arrow has to stay inside content to get the same animations as the "dialog" and to get hidden when panel is closed. */}
125
- {arrow && <div ref={arrowRef} className={clsx('np-panel__arrow')} style={arrowStyle} />}
131
+ {arrow && (
132
+ <div ref={setArrowElement} className={clsx('np-panel__arrow')} style={styles.arrow} />
133
+ )}
126
134
  </div>
127
135
  </div>
128
136
  </Dimmer>
@@ -161,24 +161,6 @@ export const WithInlinePromptSentiment = {
161
161
  },
162
162
  };
163
163
 
164
- export const WithFormattedCurrencyCode = {
165
- args: {
166
- currency: 'USC',
167
- currencySelector: {
168
- ...getCurrencySelectorProps({ logEvents: true }),
169
- options: [
170
- {
171
- title: 'Popular',
172
- currencies: [
173
- { code: 'USC', label: 'Digital Dollar', keywords: ['USDC', 'Digital Dollar'] },
174
- { code: 'USD', label: 'US Dollar', keywords: ['dollar', 'us'] },
175
- ],
176
- },
177
- ],
178
- },
179
- },
180
- };
181
-
182
164
  export const WithSecondaryCurrencySelectorAvatar = {
183
165
  args: {
184
166
  currencySelector: getCurrencySelectorProps({ logEvents: true, secondAvatar: true }),
@@ -1,11 +1,4 @@
1
- import {
2
- mockMatchMedia,
3
- mockResizeObserver,
4
- render,
5
- screen,
6
- userEvent,
7
- waitFor,
8
- } from '../../test-utils';
1
+ import { mockMatchMedia, mockResizeObserver, render, screen, userEvent } from '../../test-utils';
9
2
 
10
3
  import { CurrencySelector } from './CurrencySelector';
11
4
 
@@ -99,112 +92,6 @@ describe('CurrencySelector', () => {
99
92
  expect(screen.getByRole('combobox')).toBeDisabled();
100
93
  });
101
94
 
102
- it('displays formatted currency code when the currency is selected', () => {
103
- render(<CurrencySelector options={mockCurrencies} id="id" currency="USC" labelId="labelId" />);
104
-
105
- expect(screen.getByRole('combobox', { name: 'Select currency' })).toHaveTextContent('USDC');
106
- });
107
-
108
- it('displays formatted currency code in the selected option content', async () => {
109
- render(
110
- <CurrencySelector
111
- options={[
112
- {
113
- title: 'All',
114
- currencies: [
115
- { code: 'USC', label: 'USDC', keywords: ['USDC'] },
116
- { code: 'EUR', label: 'Euro', keywords: ['EUR'] },
117
- ],
118
- },
119
- ]}
120
- id="id"
121
- currency="USC"
122
- labelId="labelId"
123
- onChange={jest.fn()}
124
- />,
125
- );
126
-
127
- await userEvent.click(screen.getByRole('combobox'));
128
-
129
- expect(screen.getByRole('option', { name: /^usdc/iu })).toHaveTextContent('USDC');
130
- });
131
-
132
- it('fires onChange with the raw currency code when selecting a formatted currency', async () => {
133
- const onChange = jest.fn();
134
- render(
135
- <CurrencySelector
136
- options={[
137
- {
138
- title: 'All',
139
- currencies: [
140
- { code: 'USC', label: 'USDC', keywords: ['USC'] },
141
- { code: 'EUR', label: 'Euro', keywords: ['EUR'] },
142
- ],
143
- },
144
- ]}
145
- id="id"
146
- currency="EUR"
147
- labelId="labelId"
148
- onChange={onChange}
149
- />,
150
- );
151
-
152
- await userEvent.click(screen.getByRole('combobox'));
153
- await userEvent.click(screen.getByRole('option', { name: /^usdc/iu }));
154
-
155
- expect(onChange).toHaveBeenCalledWith('USC');
156
- });
157
-
158
- it('returns USC option when searching by the formatted code USDC', async () => {
159
- render(
160
- <CurrencySelector
161
- options={mockCurrencies}
162
- id="id"
163
- currency="USD"
164
- labelId="labelId"
165
- onChange={jest.fn()}
166
- />,
167
- );
168
-
169
- await userEvent.click(screen.getByRole('combobox', { name: 'Select currency' }));
170
-
171
- await userEvent.type(
172
- screen.getByRole('combobox', {
173
- name: /type a currency \/ country/iu,
174
- }),
175
- 'USDC',
176
- );
177
-
178
- await waitFor(() => {
179
- expect(screen.getByRole('option', { name: /usdc/iu })).toBeInTheDocument();
180
- });
181
- });
182
-
183
- it('does not return USDC option when searching by the raw code USC', async () => {
184
- render(
185
- <CurrencySelector
186
- options={mockCurrencies}
187
- id="id"
188
- currency="USD"
189
- labelId="labelId"
190
- onChange={jest.fn()}
191
- />,
192
- );
193
-
194
- await userEvent.click(screen.getByRole('combobox', { name: 'Select currency' }));
195
-
196
- await userEvent.type(
197
- screen.getByRole('combobox', {
198
- name: /type a currency \/ country/iu,
199
- }),
200
- 'USC',
201
- );
202
-
203
- await waitFor(() => {
204
- expect(screen.queryByRole('option')).not.toBeInTheDocument();
205
- });
206
- });
207
-
208
95
  it('deduplicates currencies while searching', async () => {
209
96
  render(
210
97
  <CurrencySelector
@@ -268,11 +155,6 @@ const mockCurrencies = [
268
155
  label: 'Australian Dollar',
269
156
  keywords: ['AUD', 'australia'],
270
157
  },
271
- {
272
- code: 'USC',
273
- label: 'Digital Dollar',
274
- keywords: ['USDC', 'Digital Dollar'],
275
- },
276
158
  ],
277
159
  },
278
160
  ];
@@ -19,7 +19,6 @@ import { useIntl } from 'react-intl';
19
19
 
20
20
  import messages from '../ExpressiveMoneyInput.messages';
21
21
  import { getLocaleCurrencyName } from '../../common';
22
- import { formatCurrencyCode } from '@transferwise/formatting';
23
22
 
24
23
  export interface CurrencyOption {
25
24
  label?: string;
@@ -100,7 +99,7 @@ export const CurrencySelector = ({
100
99
  renderValue={({ code, label }) => {
101
100
  return (
102
101
  <SelectInputOptionContent
103
- title={formatCurrencyCode(code)}
102
+ title={code}
104
103
  note={label}
105
104
  icon={<Flag code={code} intrinsicSize={24} />}
106
105
  />
@@ -129,7 +128,7 @@ export const CurrencySelector = ({
129
128
  onClick={(event) => handleTriggerClick(event)}
130
129
  >
131
130
  <>
132
- <span aria-hidden>{formatCurrencyCode(currency)}</span>
131
+ <span aria-hidden>{currency}</span>
133
132
  <span className="sr-only">{getLocaleCurrencyName(intl, currency)}</span>
134
133
  </>
135
134
  </SelectInputTriggerButton>
@@ -204,7 +203,7 @@ const filterAndSortCurrenciesForQuery = (
204
203
  currencies
205
204
  .filter((currency) => {
206
205
  return (
207
- formatCurrencyCode(currency.code).toLowerCase().includes(query) ||
206
+ currency.code.toLowerCase().includes(query) ||
208
207
  (currency.label ?? '').toLowerCase().includes(query) ||
209
208
  currency.keywords?.some((keyword) => keyword.toLowerCase().includes(query))
210
209
  );
package/src/i18n/en.json CHANGED
@@ -16,6 +16,8 @@
16
16
  "neptune.DateLookup.selected": "selected",
17
17
  "neptune.DateLookup.twentyYears": "20 years",
18
18
  "neptune.DateLookup.year": "year",
19
+ "neptune.Expander.collapseAriaLabel": "Collapse",
20
+ "neptune.Expander.expandAriaLabel": "Expand",
19
21
  "neptune.ExpressiveMoneyInput.currency.search.placeholder": "Type a currency / country",
20
22
  "neptune.ExpressiveMoneyInput.currency.select.currency": "Select currency",
21
23
  "neptune.FlowNavigation.back": "back to previous step",
package/src/index.ts CHANGED
@@ -35,7 +35,7 @@ export type { HeaderProps } from './header';
35
35
  export type { EmphasisProps } from './emphasis';
36
36
  export type { FieldProps } from './field/Field';
37
37
  export type { InfoProps } from './info';
38
- export type { InlinePromptProps, ActionPromptProps } from './prompt';
38
+ export type { InlinePromptProps, ActionPromptProps, CriticalBannerProps } from './prompt';
39
39
  export type { InfoPromptProps, InfoPromptAction, InfoPromptMedia } from './prompt';
40
40
  export type { InputWithDisplayFormatProps } from './inputWithDisplayFormat';
41
41
  export type { InputProps } from './inputs/Input';
@@ -173,7 +173,7 @@ export { default as Header } from './header';
173
173
  export { default as Image } from './image';
174
174
  export { default as Info } from './info';
175
175
  export { default as InlineAlert } from './inlineAlert';
176
- export { InfoPrompt, InlinePrompt, ActionPrompt } from './prompt';
176
+ export { InfoPrompt, InlinePrompt, ActionPrompt, CriticalBanner } from './prompt';
177
177
  export { default as InputWithDisplayFormat } from './inputWithDisplayFormat';
178
178
  export { Input } from './inputs/Input';
179
179
  export { InputGroup } from './inputs/InputGroup';
package/src/main.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * Do not edit directly, this file was auto-generated.
3
- * Generated on Tue, 31 Mar 2026 13:02:10 GMT
2
+ * Do not edit directly
3
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -142,8 +142,8 @@
142
142
  }
143
143
 
144
144
  /**
145
- * Do not edit directly, this file was auto-generated.
146
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
145
+ * Do not edit directly
146
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
147
147
  */
148
148
 
149
149
  .np-theme-personal {
@@ -391,8 +391,8 @@
391
391
  }
392
392
 
393
393
  /**
394
- * Do not edit directly, this file was auto-generated.
395
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
394
+ * Do not edit directly
395
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
396
396
  */
397
397
 
398
398
  .np-theme-personal--forest-green {
@@ -640,8 +640,8 @@
640
640
  }
641
641
 
642
642
  /**
643
- * Do not edit directly, this file was auto-generated.
644
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
643
+ * Do not edit directly
644
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
645
645
  */
646
646
 
647
647
  .np-theme-personal--bright-green {
@@ -889,8 +889,8 @@
889
889
  }
890
890
 
891
891
  /**
892
- * Do not edit directly, this file was auto-generated.
893
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
892
+ * Do not edit directly
893
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
894
894
  */
895
895
 
896
896
  .np-theme-personal--dark {
@@ -1138,8 +1138,8 @@
1138
1138
  }
1139
1139
 
1140
1140
  /**
1141
- * Do not edit directly, this file was auto-generated.
1142
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
1141
+ * Do not edit directly
1142
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
1143
1143
  */
1144
1144
 
1145
1145
  .np-theme-platform {
@@ -1321,8 +1321,8 @@
1321
1321
  }
1322
1322
 
1323
1323
  /**
1324
- * Do not edit directly, this file was auto-generated.
1325
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
1324
+ * Do not edit directly
1325
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
1326
1326
  */
1327
1327
 
1328
1328
  .np-theme-platform--forest-green {
@@ -1504,8 +1504,8 @@
1504
1504
  }
1505
1505
 
1506
1506
  /**
1507
- * Do not edit directly, this file was auto-generated.
1508
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
1507
+ * Do not edit directly
1508
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
1509
1509
  */
1510
1510
 
1511
1511
  .np-theme-business {
@@ -1688,8 +1688,8 @@
1688
1688
  }
1689
1689
 
1690
1690
  /**
1691
- * Do not edit directly, this file was auto-generated.
1692
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
1691
+ * Do not edit directly
1692
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
1693
1693
  */
1694
1694
 
1695
1695
  .np-theme-business--dark {
@@ -1872,8 +1872,8 @@
1872
1872
  }
1873
1873
 
1874
1874
  /**
1875
- * Do not edit directly, this file was auto-generated.
1876
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
1875
+ * Do not edit directly
1876
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
1877
1877
  */
1878
1878
 
1879
1879
  .np-theme-business--forest-green {
@@ -2056,8 +2056,8 @@
2056
2056
  }
2057
2057
 
2058
2058
  /**
2059
- * Do not edit directly, this file was auto-generated.
2060
- * Generated on Tue, 31 Mar 2026 13:02:11 GMT
2059
+ * Do not edit directly
2060
+ * Generated on Wed, 07 Jan 2026 11:56:15 GMT
2061
2061
  */
2062
2062
 
2063
2063
  .np-theme-business--bright-green {
@@ -32176,6 +32176,114 @@ html:not([dir="rtl"]) .np-navigation-option {
32176
32176
  padding: 0;
32177
32177
  }
32178
32178
 
32179
+ .wds-action-prompt {
32180
+ --Prompt-padding: var(--size-16);
32181
+ --Prompt-actions-gap: var(--size-8);
32182
+ --Prompt-gap: var(--size-10) var(--size-16);
32183
+ --Prompt-border-radius: var(--radius-large);
32184
+ }
32185
+
32186
+ .wds-action-prompt--media-image {
32187
+ width: 48px;
32188
+ width: var(--size-48);
32189
+ height: 48px;
32190
+ height: var(--size-48);
32191
+ -o-object-fit: contain;
32192
+ object-fit: contain;
32193
+ }
32194
+
32195
+ @media (max-width: 767px) {
32196
+ .wds-action-prompt--with-two-actions .wds-prompt__actions-wrapper .wds-Button {
32197
+ flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
32198
+ min-width: -moz-fit-content;
32199
+ min-width: fit-content;
32200
+ }
32201
+ }
32202
+
32203
+ .wds-action-prompt__content {
32204
+ max-width: calc(48px * 10);
32205
+ max-width: calc(var(--size-48) * 10);
32206
+ }
32207
+
32208
+ .wds-critical-banner {
32209
+ --Prompt-padding: var(--size-16);
32210
+ --Prompt-actions-gap: var(--size-8);
32211
+ --Prompt-gap: var(--size-10) var(--size-16);
32212
+ --Prompt-border-radius: 0;
32213
+ /* Override PrimitivePrompt's --screen-sm-max actions behaviour:
32214
+ actions only go full-width below 480px (--screen-xs) */
32215
+ }
32216
+
32217
+ .wds-critical-banner__mobile--collapsed {
32218
+ max-height: 30vh;
32219
+ }
32220
+
32221
+ .wds-critical-banner--media-image {
32222
+ width: 48px;
32223
+ width: var(--size-48);
32224
+ height: 48px;
32225
+ height: var(--size-48);
32226
+ -o-object-fit: contain;
32227
+ object-fit: contain;
32228
+ }
32229
+
32230
+ .wds-critical-banner__title--collapsed {
32231
+ display: -webkit-box;
32232
+ -webkit-line-clamp: 2;
32233
+ line-clamp: 2;
32234
+ -webkit-box-orient: vertical;
32235
+ overflow: hidden;
32236
+ }
32237
+
32238
+ .wds-critical-banner__description--collapsed {
32239
+ display: -webkit-box;
32240
+ -webkit-line-clamp: 2;
32241
+ line-clamp: 2;
32242
+ -webkit-box-orient: vertical;
32243
+ overflow: hidden;
32244
+ }
32245
+
32246
+ .wds-critical-banner .wds-prompt__content-wrapper {
32247
+ grid-template-columns: auto 1fr auto;
32248
+ align-items: flex-start;
32249
+ }
32250
+
32251
+ .wds-critical-banner__text-wrapper {
32252
+ min-width: 0;
32253
+ max-width: 480px;
32254
+ height: 100%;
32255
+ }
32256
+
32257
+ .wds-critical-banner .wds-prompt__actions-wrapper {
32258
+ grid-column-start: 2;
32259
+ grid-column-end: 3;
32260
+ }
32261
+
32262
+ @media not (min-width: 480px) {
32263
+ .wds-critical-banner .wds-prompt__actions-wrapper {
32264
+ grid-column: span 3;
32265
+ width: 100%;
32266
+ }
32267
+ }
32268
+
32269
+ @media not (min-width: 480px) {
32270
+ .wds-critical-banner--with-two-actions .wds-prompt__actions-wrapper .wds-Button {
32271
+ flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
32272
+ min-width: -moz-fit-content;
32273
+ min-width: fit-content;
32274
+ }
32275
+ }
32276
+
32277
+ .wds-expander-toggle {
32278
+ align-self: flex-start;
32279
+ flex-shrink: 0;
32280
+ transition: transform 0.2s ease-in-out;
32281
+ }
32282
+
32283
+ .wds-expander-toggle--collapsed {
32284
+ transform: rotate(180deg);
32285
+ }
32286
+
32179
32287
  .wds-radio-group .np-radio:last-child label {
32180
32288
  margin-bottom: 0;
32181
32289
  }
@@ -34600,32 +34708,3 @@ html:not([dir="rtl"]) .np-navigation-option {
34600
34708
  .np-list-item__action {
34601
34709
  flex-shrink: 0;
34602
34710
  }
34603
-
34604
- .wds-action-prompt {
34605
- --Prompt-padding: var(--size-16);
34606
- --Prompt-actions-gap: var(--size-8);
34607
- --Prompt-gap: var(--size-10) var(--size-16);
34608
- --Prompt-border-radius: var(--radius-large);
34609
- }
34610
-
34611
- .wds-action-prompt--media-image {
34612
- width: 48px;
34613
- width: var(--size-48);
34614
- height: 48px;
34615
- height: var(--size-48);
34616
- -o-object-fit: contain;
34617
- object-fit: contain;
34618
- }
34619
-
34620
- @media (max-width: 767px) {
34621
- .wds-action-prompt--with-two-actions .wds-prompt__actions-wrapper .wds-Button {
34622
- flex: 1 1 calc(50% - (var(--Prompt-actions-gap) / 2));
34623
- min-width: -moz-fit-content;
34624
- min-width: fit-content;
34625
- }
34626
- }
34627
-
34628
- .wds-action-prompt__content {
34629
- max-width: calc(48px * 10);
34630
- max-width: calc(var(--size-48) * 10);
34631
- }
package/src/main.less CHANGED
@@ -66,6 +66,9 @@
66
66
  @import "./prompt/PrimitivePrompt/PrimitivePrompt.less";
67
67
  @import "./prompt/InlinePrompt/InlinePrompt.less";
68
68
  @import "./prompt/InfoPrompt/InfoPrompt.less";
69
+ @import "./prompt/ActionPrompt/ActionPrompt.less";
70
+ @import "./prompt/CriticalBanner/CriticalBanner.less";
71
+ @import "./prompt/common/Expander/Expander.less";
69
72
  @import "./radioGroup/RadioGroup.less";
70
73
  @import "./section/Section.less";
71
74
  @import "./slidingPanel/SlidingPanel.less";
@@ -90,7 +93,6 @@
90
93
  @import "./progress/Progress.less";
91
94
  @import "./progressBar/ProgressBar.less";
92
95
  @import "./legacylistItem/LegacyListItem.less";
93
- @import "./prompt/ActionPrompt/ActionPrompt.less";
94
96
 
95
97
  // List all less files in src in alphabetical order: find -s src -type f -name '*.less' ! -name 'main.less'
96
98
  // Make sure you are not referencing main.less itself in this file!
@@ -1,5 +1,5 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-webpack5';
2
- import { within, userEvent, expect } from 'storybook/test';
2
+ import { within, userEvent } from 'storybook/test';
3
3
  import { Lock } from '@transferwise/icons';
4
4
  import { useState } from 'react';
5
5
 
@@ -155,15 +155,6 @@ export const BalanceCurrencies: Story = {
155
155
  },
156
156
  };
157
157
 
158
- export const WithDecimals: Story = {
159
- args: {
160
- currencies: [],
161
- selectedCurrency: exampleCurrency.eur,
162
- decimals: 4,
163
- amount: 1234.1412,
164
- },
165
- };
166
-
167
158
  export const OpenedInput: Story = {
168
159
  ...MultipleCurrencies,
169
160
  play: async ({ canvasElement }) => {