@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
@@ -1 +1 @@
1
- {"version":3,"file":"SelectInput.mjs","sources":["../../../src/inputs/SelectInput/SelectInput.tsx"],"sourcesContent":["import mergeProps from 'merge-props';\nimport { useEffect, useRef, useState, useDeferredValue } from 'react';\nimport { Listbox as ListboxBase } from '@headlessui/react';\nimport { useScreenSize } from '../../common/hooks/useScreenSize';\nimport { Breakpoint } from '../../common/propsValues/breakpoint';\nimport { useEffectEvent } from '../../common/hooks/useEffectEvent';\nimport { useInputAttributes } from '../contexts';\n\nimport { SelectInputBottomSheet } from './BottomSheet';\nimport { SelectInputPopover } from './Popover';\nimport { SelectInputOptions } from './Options';\nimport { DefaultRenderTrigger } from './DefaultRenderTrigger';\n\nimport {\n SelectInputOptionContentWithinTriggerContext,\n SelectInputTriggerButtonPropsContext,\n} from './SelectInput.contexts';\nimport { searchableString, sortByRelevance } from './SelectInput.utils';\nimport { SelectInputProps } from './SelectInput.types';\n\nconst noop = () => {};\n\n/**\n * SelectInput component allows users to select an option from a dropdown list.\n * Supports filtering, multiple selection, and customization.\n */\nexport function SelectInput<T = string, M extends boolean = false>({\n id: idProp,\n parentId,\n name,\n multiple,\n placeholder,\n autocomplete,\n items,\n defaultValue,\n value: controlledValue,\n compareValues,\n renderValue = String,\n renderFooter,\n renderTrigger = DefaultRenderTrigger,\n filterable,\n filterPlaceholder,\n sortFilteredOptions,\n disabled,\n size = 'md',\n className,\n UNSAFE_triggerButtonProps,\n triggerRef: externalTriggerRef,\n onFilterChange = noop,\n onChange,\n onOpen,\n onClose,\n onClear,\n}: SelectInputProps<T, M>) {\n const inputAttributes = useInputAttributes({ nonLabelable: true });\n const id = idProp ?? inputAttributes.id;\n\n const [open, setOpen] = useState(false);\n\n const initialized = useRef(false);\n const handleClose = useEffectEvent(onClose ?? (() => {}));\n const handleOpen = useEffectEvent(onOpen ?? (() => {}));\n useEffect(() => {\n if (initialized.current) {\n if (open) {\n handleOpen?.();\n } else {\n handleClose?.();\n }\n } else {\n initialized.current = true;\n }\n }, [handleClose, handleOpen, open]);\n\n const [filterQuery, _setFilterQuery] = useState('');\n const deferredFilterQuery = useDeferredValue(filterQuery);\n const setFilterQuery = useEffectEvent((query: string) => {\n _setFilterQuery(query);\n if (query !== filterQuery) {\n onFilterChange({\n query,\n queryNormalized: query ? searchableString(query) : null,\n });\n }\n });\n\n const internalTriggerRef = useRef<HTMLButtonElement | null>(null);\n\n const screenSm = useScreenSize(Breakpoint.SMALL);\n const OptionsOverlay = screenSm ? SelectInputPopover : SelectInputBottomSheet;\n\n const searchInputRef = useRef<HTMLInputElement>(null);\n const listboxRef = useRef<HTMLDivElement>(null);\n const controllerRef = filterable ? searchInputRef : listboxRef;\n\n /**\n * Attempts to resolve the `listbox` label\n * @see https://storybook.wise.design/?path=/docs/forms-selectinput-accessibility--docs#labelling\n */\n const getListBoxLabelProps = (): {\n listBoxLabel?: string;\n listBoxLabelledBy?: string;\n } => {\n if (UNSAFE_triggerButtonProps?.['aria-label']) {\n return {\n listBoxLabel: UNSAFE_triggerButtonProps['aria-label'],\n };\n }\n\n if (UNSAFE_triggerButtonProps?.['aria-labelledby']) {\n return {\n listBoxLabelledBy: UNSAFE_triggerButtonProps['aria-labelledby'],\n };\n }\n\n if (inputAttributes['aria-labelledby']) {\n return {\n listBoxLabelledBy: inputAttributes['aria-labelledby'],\n };\n }\n\n return {};\n };\n\n return (\n <ListboxBase\n name={name}\n multiple={multiple}\n defaultValue={defaultValue as M extends true ? T[] : T}\n value={controlledValue as M extends true ? T[] : T}\n by={compareValues}\n disabled={disabled}\n onChange={\n ((value) => {\n if (!multiple) {\n setOpen(false);\n }\n onChange?.(value);\n }) satisfies SelectInputProps<T, M>['onChange']\n }\n >\n {({ disabled: uiDisabled, value }) => {\n const placeholderShown =\n multiple && Array.isArray(value) ? value.length === 0 : value == null;\n return (\n <OptionsOverlay\n placement=\"bottom-start\"\n open={open}\n renderTrigger={({ ref, getInteractionProps }) => (\n <SelectInputTriggerButtonPropsContext.Provider\n // eslint-disable-next-line react/jsx-no-constructed-context-values\n value={{\n ref: (node) => {\n ref(node);\n if (externalTriggerRef) {\n // eslint-disable-next-line no-param-reassign\n externalTriggerRef.current = node;\n } else {\n internalTriggerRef.current = node;\n }\n },\n size,\n ...inputAttributes,\n ...UNSAFE_triggerButtonProps,\n id,\n ...mergeProps(\n {\n onClick: () => {\n setOpen((prev) => !prev);\n },\n onKeyDown: (event: React.KeyboardEvent) => {\n if (\n event.key === ' ' ||\n event.key === 'Enter' ||\n event.key === 'ArrowDown' ||\n event.key === 'ArrowUp'\n ) {\n setOpen((prev) => !prev);\n }\n },\n },\n getInteractionProps(),\n ),\n }}\n >\n {renderTrigger({\n content: !placeholderShown ? (\n <SelectInputOptionContentWithinTriggerContext.Provider value>\n {multiple && Array.isArray(value)\n ? (value as readonly NonNullable<T>[])\n .map((option) => renderValue(option, true))\n .filter((node) => node != null)\n .join(', ')\n : renderValue(value as NonNullable<T>, true)}\n </SelectInputOptionContentWithinTriggerContext.Provider>\n ) : (\n placeholder\n ),\n placeholderShown,\n clear:\n onClear != null\n ? () => {\n onClear();\n (externalTriggerRef?.current ?? internalTriggerRef.current)?.focus({\n preventScroll: true,\n });\n }\n : undefined,\n disabled: uiDisabled,\n size,\n className,\n })}\n </SelectInputTriggerButtonPropsContext.Provider>\n )}\n initialFocusRef={controllerRef}\n size={filterable ? 'lg' : 'md'}\n padding=\"none\"\n onClose={() => {\n setOpen(false);\n }}\n onCloseEnd={() => {\n setFilterQuery('');\n }}\n >\n <SelectInputOptions\n id={id ? `${id}Search` : undefined}\n parentId={parentId}\n items={items}\n compareValues={compareValues}\n renderValue={renderValue}\n renderFooter={renderFooter}\n filterable={filterable}\n filterPlaceholder={filterPlaceholder}\n sortFilteredOptions={sortFilteredOptions}\n searchInputRef={searchInputRef}\n listboxRef={listboxRef}\n filterQuery={deferredFilterQuery}\n autocomplete={autocomplete}\n name={name}\n onFilterChange={setFilterQuery}\n onAutocompleteSelect={(matchedValue) => {\n onChange?.(matchedValue as M extends true ? T[] : T);\n if (!multiple) {\n setOpen(false);\n }\n }}\n {...getListBoxLabelProps()}\n />\n </OptionsOverlay>\n );\n }}\n </ListboxBase>\n );\n}\n\n// Attach sortByRelevance to the component for convenience\nSelectInput.sortByRelevance = sortByRelevance;\n"],"names":["noop","SelectInput","id","idProp","parentId","name","multiple","placeholder","autocomplete","items","defaultValue","value","controlledValue","compareValues","renderValue","String","renderFooter","renderTrigger","DefaultRenderTrigger","filterable","filterPlaceholder","sortFilteredOptions","disabled","size","className","UNSAFE_triggerButtonProps","triggerRef","externalTriggerRef","onFilterChange","onChange","onOpen","onClose","onClear","inputAttributes","useInputAttributes","nonLabelable","open","setOpen","useState","initialized","useRef","handleClose","useEffectEvent","handleOpen","useEffect","current","filterQuery","_setFilterQuery","deferredFilterQuery","useDeferredValue","setFilterQuery","query","queryNormalized","searchableString","internalTriggerRef","screenSm","useScreenSize","Breakpoint","SMALL","OptionsOverlay","SelectInputPopover","SelectInputBottomSheet","searchInputRef","listboxRef","controllerRef","getListBoxLabelProps","listBoxLabel","listBoxLabelledBy","_jsx","ListboxBase","by","children","uiDisabled","placeholderShown","Array","isArray","length","placement","ref","getInteractionProps","SelectInputTriggerButtonPropsContext","Provider","node","mergeProps","onClick","prev","onKeyDown","event","key","content","SelectInputOptionContentWithinTriggerContext","map","option","filter","join","clear","focus","preventScroll","undefined","initialFocusRef","padding","onCloseEnd","SelectInputOptions","onAutocompleteSelect","matchedValue","sortByRelevance"],"mappings":";;;;;;;;;;;;;;;AAoBA,MAAMA,IAAI,GAAGA,MAAK,CAAE,CAAC;AAErB;;;AAGG;AACG,SAAUC,WAAWA,CAAwC;AACjEC,EAAAA,EAAE,EAAEC,MAAM;EACVC,QAAQ;EACRC,IAAI;EACJC,QAAQ;EACRC,WAAW;EACXC,YAAY;EACZC,KAAK;EACLC,YAAY;AACZC,EAAAA,KAAK,EAAEC,eAAe;EACtBC,aAAa;AACbC,EAAAA,WAAW,GAAGC,MAAM;EACpBC,YAAY;AACZC,EAAAA,aAAa,GAAGC,oBAAoB;EACpCC,UAAU;EACVC,iBAAiB;EACjBC,mBAAmB;EACnBC,QAAQ;AACRC,EAAAA,IAAI,GAAG,IAAI;EACXC,SAAS;EACTC,yBAAyB;AACzBC,EAAAA,UAAU,EAAEC,kBAAkB;AAC9BC,EAAAA,cAAc,GAAG5B,IAAI;EACrB6B,QAAQ;EACRC,MAAM;EACNC,OAAO;AACPC,EAAAA;AAAO,CACgB,EAAA;EACvB,MAAMC,eAAe,GAAGC,kBAAkB,CAAC;AAAEC,IAAAA,YAAY,EAAE;AAAI,GAAE,CAAC;AAClE,EAAA,MAAMjC,EAAE,GAAGC,MAAM,IAAI8B,eAAe,CAAC/B,EAAE;EAEvC,MAAM,CAACkC,IAAI,EAAEC,OAAO,CAAC,GAAGC,QAAQ,CAAC,K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a;AAC3BG,UAAAA,UAAU,EAAEA,UAAW;AACvBC,UAAAA,iBAAiB,EAAEA,iBAAkB;AACrCC,UAAAA,mBAAmB,EAAEA,mBAAoB;AACzCyC,UAAAA,cAAc,EAAEA,cAAe;AAC/BC,UAAAA,UAAU,EAAEA,UAAW;AACvBjB,UAAAA,WAAW,EAAEE,mBAAoB;AACjCxC,UAAAA,YAAY,EAAEA,YAAa;AAC3BH,UAAAA,IAAI,EAAEA,IAAK;AACXuB,UAAAA,cAAc,EAAEsB,cAAe;UAC/BqD,oBAAoB,EAAGC,YAAY,IAAI;YACrC3E,QAAQ,GAAG2E,YAAwC,CAAC;YACpD,IAAI,CAAClG,QAAQ,EAAE;cACb+B,OAAO,CAAC,KAAK,CAAC;AAChB,YAAA;UACF,CAAE;AAAA,UAAA,GACE4B,oBAAoB;SAAG;AAE/B,OAAgB,CAAC;AAErB,IAAA;AAAC,GACU,CAAC;AAElB;AAEA;AACAhE,WAAW,CAACwG,eAAe,GAAGA,eAAe;;;;"}
1
+ {"version":3,"file":"SelectInput.mjs","sources":["../../../src/inputs/SelectInput/SelectInput.tsx"],"sourcesContent":["import mergeProps from 'merge-props';\nimport { useEffect, useRef, useState, useDeferredValue } from 'react';\nimport { Listbox as ListboxBase } from '@headlessui/react';\nimport { Breakpoint } from '@transferwise/neptune-tokens';\nimport { useScreenSize } from '../../common/hooks/useScreenSize';\nimport { useEffectEvent } from '../../common/hooks/useEffectEvent';\nimport { useInputAttributes } from '../contexts';\n\nimport { SelectInputBottomSheet } from './BottomSheet';\nimport { SelectInputPopover } from './Popover';\nimport { SelectInputOptions } from './Options';\nimport { DefaultRenderTrigger } from './DefaultRenderTrigger';\n\nimport {\n SelectInputOptionContentWithinTriggerContext,\n SelectInputTriggerButtonPropsContext,\n} from './SelectInput.contexts';\nimport { searchableString, sortByRelevance } from './SelectInput.utils';\nimport { SelectInputProps } from './SelectInput.types';\n\nconst noop = () => {};\n\n/**\n * SelectInput component allows users to select an option from a dropdown list.\n * Supports filtering, multiple selection, and customization.\n */\nexport function SelectInput<T = string, M extends boolean = false>({\n id: idProp,\n parentId,\n name,\n multiple,\n placeholder,\n autocomplete,\n items,\n defaultValue,\n value: controlledValue,\n compareValues,\n renderValue = String,\n renderFooter,\n renderTrigger = DefaultRenderTrigger,\n filterable,\n filterPlaceholder,\n sortFilteredOptions,\n disabled,\n size = 'md',\n className,\n UNSAFE_triggerButtonProps,\n triggerRef: externalTriggerRef,\n onFilterChange = noop,\n onChange,\n onOpen,\n onClose,\n onClear,\n}: SelectInputProps<T, M>) {\n const inputAttributes = useInputAttributes({ nonLabelable: true });\n const id = idProp ?? inputAttributes.id;\n\n const [open, setOpen] = useState(false);\n\n const initialized = useRef(false);\n const handleClose = useEffectEvent(onClose ?? (() => {}));\n const handleOpen = useEffectEvent(onOpen ?? (() => {}));\n useEffect(() => {\n if (initialized.current) {\n if (open) {\n handleOpen?.();\n } else {\n handleClose?.();\n }\n } else {\n initialized.current = true;\n }\n }, [handleClose, handleOpen, open]);\n\n const [filterQuery, _setFilterQuery] = useState('');\n const deferredFilterQuery = useDeferredValue(filterQuery);\n const setFilterQuery = useEffectEvent((query: string) => {\n _setFilterQuery(query);\n if (query !== filterQuery) {\n onFilterChange({\n query,\n queryNormalized: query ? searchableString(query) : null,\n });\n }\n });\n\n const internalTriggerRef = useRef<HTMLButtonElement | null>(null);\n\n const screenSm = useScreenSize(Breakpoint.SMALL);\n const OptionsOverlay = screenSm ? SelectInputPopover : SelectInputBottomSheet;\n\n const searchInputRef = useRef<HTMLInputElement>(null);\n const listboxRef = useRef<HTMLDivElement>(null);\n const controllerRef = filterable ? searchInputRef : listboxRef;\n\n /**\n * Attempts to resolve the `listbox` label\n * @see https://storybook.wise.design/?path=/docs/forms-selectinput-accessibility--docs#labelling\n */\n const getListBoxLabelProps = (): {\n listBoxLabel?: string;\n listBoxLabelledBy?: string;\n } => {\n if (UNSAFE_triggerButtonProps?.['aria-label']) {\n return {\n listBoxLabel: UNSAFE_triggerButtonProps['aria-label'],\n };\n }\n\n if (UNSAFE_triggerButtonProps?.['aria-labelledby']) {\n return {\n listBoxLabelledBy: UNSAFE_triggerButtonProps['aria-labelledby'],\n };\n }\n\n if (inputAttributes['aria-labelledby']) {\n return {\n listBoxLabelledBy: inputAttributes['aria-labelledby'],\n };\n }\n\n return {};\n };\n\n return (\n <ListboxBase\n name={name}\n multiple={multiple}\n defaultValue={defaultValue as M extends true ? T[] : T}\n value={controlledValue as M extends true ? T[] : T}\n by={compareValues}\n disabled={disabled}\n onChange={\n ((value) => {\n if (!multiple) {\n setOpen(false);\n }\n onChange?.(value);\n }) satisfies SelectInputProps<T, M>['onChange']\n }\n >\n {({ disabled: uiDisabled, value }) => {\n const placeholderShown =\n multiple && Array.isArray(value) ? value.length === 0 : value == null;\n return (\n <OptionsOverlay\n placement=\"bottom-start\"\n open={open}\n renderTrigger={({ ref, getInteractionProps }) => (\n <SelectInputTriggerButtonPropsContext.Provider\n // eslint-disable-next-line react/jsx-no-constructed-context-values\n value={{\n ref: (node) => {\n ref(node);\n if (externalTriggerRef) {\n // eslint-disable-next-line no-param-reassign\n externalTriggerRef.current = node;\n } else {\n internalTriggerRef.current = node;\n }\n },\n size,\n ...inputAttributes,\n ...UNSAFE_triggerButtonProps,\n id,\n ...mergeProps(\n {\n onClick: () => {\n setOpen((prev) => !prev);\n },\n onKeyDown: (event: React.KeyboardEvent) => {\n if (\n event.key === ' ' ||\n event.key === 'Enter' ||\n event.key === 'ArrowDown' ||\n event.key === 'ArrowUp'\n ) {\n setOpen((prev) => !prev);\n }\n },\n },\n getInteractionProps(),\n ),\n }}\n >\n {renderTrigger({\n content: !placeholderShown ? (\n <SelectInputOptionContentWithinTriggerContext.Provider value>\n {multiple && Array.isArray(value)\n ? (value as readonly NonNullable<T>[])\n .map((option) => renderValue(option, true))\n .filter((node) => node != null)\n .join(', ')\n : renderValue(value as NonNullable<T>, true)}\n </SelectInputOptionContentWithinTriggerContext.Provider>\n ) : (\n placeholder\n ),\n placeholderShown,\n clear:\n onClear != null\n ? () => {\n onClear();\n (externalTriggerRef?.current ?? internalTriggerRef.current)?.focus({\n preventScroll: true,\n });\n }\n : undefined,\n disabled: uiDisabled,\n size,\n className,\n })}\n </SelectInputTriggerButtonPropsContext.Provider>\n )}\n initialFocusRef={controllerRef}\n size={filterable ? 'lg' : 'md'}\n padding=\"none\"\n onClose={() => {\n setOpen(false);\n }}\n onCloseEnd={() => {\n setFilterQuery('');\n }}\n >\n <SelectInputOptions\n id={id ? `${id}Search` : undefined}\n parentId={parentId}\n items={items}\n compareValues={compareValues}\n renderValue={renderValue}\n renderFooter={renderFooter}\n filterable={filterable}\n filterPlaceholder={filterPlaceholder}\n sortFilteredOptions={sortFilteredOptions}\n searchInputRef={searchInputRef}\n listboxRef={listboxRef}\n filterQuery={deferredFilterQuery}\n autocomplete={autocomplete}\n name={name}\n onFilterChange={setFilterQuery}\n onAutocompleteSelect={(matchedValue) => {\n onChange?.(matchedValue as M extends true ? T[] : T);\n if (!multiple) {\n setOpen(false);\n }\n }}\n {...getListBoxLabelProps()}\n />\n </OptionsOverlay>\n );\n }}\n </ListboxBase>\n );\n}\n\n// Attach sortByRelevance to the component for convenience\nSelectInput.sortByRelevance = sortByRelevance;\n"],"names":["noop","SelectInput","id","idProp","parentId","name","multiple","placeholder","autocomplete","items","defaultValue","value","controlledValue","compareValues","renderValue","String","renderFooter","renderTrigger","DefaultRenderTrigger","filterable","filterPlaceholder","sortFilteredOptions","disabled","size","className","UNSAFE_triggerButtonProps","triggerRef","externalTriggerRef","onFilterChange","onChange","onOpen","onClose","onClear","inputAttributes","useInputAttributes","nonLabelable","open","setOpen","useState","initialized","useRef","handleClose","useEffectEvent","handleOpen","useEffect","current","filterQuery","_setFilterQuery","deferredFilterQuery","useDeferredValue","setFilterQuery","query","queryNormalized","searchableString","internalTriggerRef","screenSm","useScreenSize","Breakpoint","SMALL","OptionsOverlay","SelectInputPopover","SelectInputBottomSheet","searchInputRef","listboxRef","controllerRef","getListBoxLabelProps","listBoxLabel","listBoxLabelledBy","_jsx","ListboxBase","by","children","uiDisabled","placeholderShown","Array","isArray","length","placement","ref","getInteractionProps","SelectInputTriggerButtonPropsContext","Provider","node","mergeProps","onClick","prev","onKeyDown","event","key","content","SelectInputOptionContentWithinTriggerContext","map","option","filter","join","clear","focus","preventScroll","undefined","initialFocusRef","padding","onCloseEnd","SelectInputOptions","onAutocompleteSelect","matchedValue","sortByRelevance"],"mappings":";;;;;;;;;;;;;;;AAoBA,MAAMA,IAAI,GAAGA,MAAK,CAAE,CAAC;AAErB;;;AAGG;AACG,SAAUC,WAAWA,CAAwC;AACjEC,EAAAA,EAAE,EAAEC,MAAM;EACVC,QAAQ;EACRC,IAAI;EACJC,QAAQ;EACRC,WAAW;EACXC,YAAY;EACZC,KAAK;EACLC,YAAY;AACZC,EAAAA,KAAK,EAAEC,eAAe;EACtBC,aAAa;AACbC,EAAAA,WAAW,GAAGC,MAAM;EACpBC,YAAY;AACZC,EAAAA,aAAa,GAAGC,oBAAoB;EACpCC,UAAU;EACVC,iBAAiB;EACjBC,mBAAmB;EACnBC,QAAQ;AACRC,EAAAA,IAAI,GAAG,IAAI;EACXC,SAAS;EACTC,yBAAyB;AACzBC,EAAAA,UAAU,EAAEC,kBAAkB;AAC9BC,EAAAA,cAAc,GAAG5B,IAAI;EACrB6B,QAAQ;EACRC,MAAM;EACNC,OAAO;AACPC,EAAAA;AAAO,CACgB,EAAA;EACvB,MAAMC,eAAe,GAAGC,kBAAkB,CAAC;AAAEC,IAAAA,YAAY,EAAE;AAAI,GAAE,CAAC;AAClE,EAAA,MAAMjC,EAAE,GAAGC,MAAM,IAAI8B,eAAe,CAAC/B,EAAE;EAEvC,MAAM,CAACkC,IAAI,EAAEC,OAAO,CAAC,GAAGC,QAAQ,CAAC,KAAK,CAAC;AAEvC,EAAA,MAAMC,WAAW,GAAGC,MAAM,CAAC,KAAK,CAAC;EACjC,MAAMC,WAAW,GAAGC,cAAc,CAACX,OAAO,KA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ACzCyC,UAAAA,cAAc,EAAEA,cAAe;AAC/BC,UAAAA,UAAU,EAAEA,UAAW;AACvBjB,UAAAA,WAAW,EAAEE,mBAAoB;AACjCxC,UAAAA,YAAY,EAAEA,YAAa;AAC3BH,UAAAA,IAAI,EAAEA,IAAK;AACXuB,UAAAA,cAAc,EAAEsB,cAAe;UAC/BqD,oBAAoB,EAAGC,YAAY,IAAI;YACrC3E,QAAQ,GAAG2E,YAAwC,CAAC;YACpD,IAAI,CAAClG,QAAQ,EAAE;cACb+B,OAAO,CAAC,KAAK,CAAC;AAChB,YAAA;UACF,CAAE;AAAA,UAAA,GACE4B,oBAAoB;SAAG;AAE/B,OAAgB,CAAC;AAErB,IAAA;AAAC,GACU,CAAC;AAElB;AAEA;AACAhE,WAAW,CAACwG,eAAe,GAAGA,eAAe;;;;"}
@@ -7,8 +7,8 @@ var clsx = require('clsx');
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 { clsx } from 'clsx';
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';
@@ -9,8 +9,8 @@ var PrimitiveButton = require('../primitives/PrimitiveButton/PrimitiveButton.js'
9
9
  var PrimitiveAnchor = require('../primitives/PrimitiveAnchor/PrimitiveAnchor.js');
10
10
  require('../common/theme.js');
11
11
  require('../common/direction.js');
12
+ require('@transferwise/neptune-tokens');
12
13
  require('../common/propsValues/control.js');
13
- require('../common/propsValues/breakpoint.js');
14
14
  require('../common/propsValues/size.js');
15
15
  var typography = require('../common/propsValues/typography.js');
16
16
  require('../common/propsValues/width.js');
@@ -5,8 +5,8 @@ import PrimitiveButton from '../primitives/PrimitiveButton/PrimitiveButton.mjs';
5
5
  import PrimitiveAnchor from '../primitives/PrimitiveAnchor/PrimitiveAnchor.mjs';
6
6
  import '../common/theme.mjs';
7
7
  import '../common/direction.mjs';
8
+ import '@transferwise/neptune-tokens';
8
9
  import '../common/propsValues/control.mjs';
9
- import '../common/propsValues/breakpoint.mjs';
10
10
  import '../common/propsValues/size.mjs';
11
11
  import { Typography } from '../common/propsValues/typography.mjs';
12
12
  import '../common/propsValues/width.mjs';
@@ -6,8 +6,8 @@ var Body = require('../../body/Body.js');
6
6
  var Link = require('../../link/Link.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');
@@ -4,8 +4,8 @@ import Body from '../../body/Body.mjs';
4
4
  import Link from '../../link/Link.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';
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var React = require('react');
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
  var typography = require('../common/propsValues/typography.js');
12
12
  require('../common/propsValues/width.js');
@@ -1,8 +1,8 @@
1
1
  import { useId, useState, useMemo, useContext } from 'react';
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 { Typography } from '../common/propsValues/typography.mjs';
8
8
  import '../common/propsValues/width.mjs';
@@ -3,8 +3,8 @@
3
3
  var React = require('react');
4
4
  require('../../common/theme.js');
5
5
  require('../../common/direction.js');
6
+ require('@transferwise/neptune-tokens');
6
7
  require('../../common/propsValues/control.js');
7
- require('../../common/propsValues/breakpoint.js');
8
8
  require('../../common/propsValues/size.js');
9
9
  require('../../common/propsValues/typography.js');
10
10
  require('../../common/propsValues/width.js');
@@ -28,18 +28,17 @@ require('../../common/closeButton/CloseButton.messages.js');
28
28
  var jsxRuntime = require('react/jsx-runtime');
29
29
  var ListItemContext = require('../ListItemContext.js');
30
30
  var InlinePrompt = require('../../prompt/InlinePrompt/InlinePrompt.js');
31
+ require('../../statusIcon/StatusIcon.js');
31
32
  require('../../body/Body.js');
32
33
  require('../../button/Button.resolver.js');
33
- require('../../prompt/PrimitivePrompt/PrimitivePrompt.js');
34
34
  require('../../badge/Badge.js');
35
35
  require('@wise/art');
36
- require('../../statusIcon/StatusIcon.js');
37
36
  require('@transferwise/neptune-validation');
38
37
  require('../../provider/direction/DirectionProvider.js');
38
+ require('../../sentimentSurface/SentimentSurface.js');
39
39
  require('../../primitives/PrimitiveButton/PrimitiveButton.js');
40
40
  require('../../primitives/PrimitiveAnchor/PrimitiveAnchor.js');
41
41
  require('../../link/Link.messages.js');
42
- require('../../prompt/common/Expander/Expander.messages.js');
43
42
 
44
43
  const Prompt = ({
45
44
  sentiment: sentiment$1 = sentiment.Sentiment.NEUTRAL,
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemPrompt.js","sources":["../../../src/listItem/Prompt/ListItemPrompt.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { Sentiment } from '../../common';\nimport { ListItemContext, type ListItemContextData } from '../ListItemContext';\nimport { InlinePrompt, type InlinePromptProps } from '../../prompt';\n\nexport type ListItemPromptProps = Pick<\n InlinePromptProps,\n 'children' | 'sentiment' | 'mediaLabel' | 'media' | 'loading'\n>;\n\n/**\n * This component allows for rendering an Inline Prompt. <br />\n * In the future it will be a thin wrapper around a standalone component.<br />\n *\n * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.\n */\nexport const Prompt = ({\n sentiment = Sentiment.NEUTRAL,\n mediaLabel,\n children,\n media,\n loading,\n}: ListItemPromptProps) => {\n const { ids, props } = useContext<ListItemContextData>(ListItemContext);\n const isLongLivedMuted = props.disabled && Boolean(props.disabledPromptMessage);\n\n return (\n <InlinePrompt\n id={ids.prompt}\n sentiment={sentiment}\n media={media}\n loading={loading}\n mediaLabel={mediaLabel}\n muted={isLongLivedMuted}\n className=\"wds-list-item-prompt\"\n >\n {isLongLivedMuted ? props.disabledPromptMessage : children}\n </InlinePrompt>\n );\n};\n\nPrompt.displayName = 'ListItem.Prompt';\n"],"names":["Prompt","sentiment","Sentiment","NEUTRAL","mediaLabel","children","media","loading","ids","props","useContext","ListItemContext","isLongLivedMuted","disabled","Boolean","disabledPromptMessage","_jsx","InlinePrompt","id","prompt","muted","className","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,MAAMA,MAAM,GAAGA,CAAC;aACrBC,WAAS,GAAGC,mBAAS,CAACC,OAAO;EAC7BC,UAAU;EACVC,QAAQ;EACRC,KAAK;AACLC,EAAAA;AAAO,CACa,KAAI;EACxB,MAAM;IAAEC,GAAG;AAAEC,IAAAA;AAAK,GAAE,GAAGC,gBAAU,CAAsBC,+BAAe,CAAC;EACvE,MAAMC,gBAAgB,GAAGH,KAAK,CAACI,QAAQ,IAAIC,OAAO,CAACL,KAAK,CAACM,qBAAqB,CAAC;EAE/E,oBACEC,cAAA,CAACC,yBAAY,EAAA;IACXC,EAAE,EAAEV,GAAG,CAACW,MAAO;AACflB,IAAAA,SAAS,EAAEA,WAAU;AACrBK,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,OAAO,EAAEA,OAAQ;AACjBH,IAAAA,UAAU,EAAEA,UAAW;AACvBgB,IAAAA,KAAK,EAAER,gBAAiB;AACxBS,IAAAA,SAAS,EAAC,sBAAsB;AAAAhB,IAAAA,QAAA,EAE/BO,gBAAgB,GAAGH,KAAK,CAACM,qBAAqB,GAAGV;AAAQ,GAC9C,CAAC;AAEnB;AAEAL,MAAM,CAACsB,WAAW,GAAG,iBAAiB;;;;"}
1
+ {"version":3,"file":"ListItemPrompt.js","sources":["../../../src/listItem/Prompt/ListItemPrompt.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { Sentiment } from '../../common';\nimport { ListItemContext, type ListItemContextData } from '../ListItemContext';\nimport { InlinePrompt, type InlinePromptProps } from '../../prompt';\n\nexport type ListItemPromptProps = Pick<\n InlinePromptProps,\n 'children' | 'sentiment' | 'mediaLabel' | 'media' | 'loading'\n>;\n\n/**\n * This component allows for rendering an Inline Prompt. <br />\n * In the future it will be a thin wrapper around a standalone component.<br />\n *\n * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.\n */\nexport const Prompt = ({\n sentiment = Sentiment.NEUTRAL,\n mediaLabel,\n children,\n media,\n loading,\n}: ListItemPromptProps) => {\n const { ids, props } = useContext<ListItemContextData>(ListItemContext);\n const isLongLivedMuted = props.disabled && Boolean(props.disabledPromptMessage);\n\n return (\n <InlinePrompt\n id={ids.prompt}\n sentiment={sentiment}\n media={media}\n loading={loading}\n mediaLabel={mediaLabel}\n muted={isLongLivedMuted}\n className=\"wds-list-item-prompt\"\n >\n {isLongLivedMuted ? props.disabledPromptMessage : children}\n </InlinePrompt>\n );\n};\n\nPrompt.displayName = 'ListItem.Prompt';\n"],"names":["Prompt","sentiment","Sentiment","NEUTRAL","mediaLabel","children","media","loading","ids","props","useContext","ListItemContext","isLongLivedMuted","disabled","Boolean","disabledPromptMessage","_jsx","InlinePrompt","id","prompt","muted","className","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,MAAMA,MAAM,GAAGA,CAAC;aACrBC,WAAS,GAAGC,mBAAS,CAACC,OAAO;EAC7BC,UAAU;EACVC,QAAQ;EACRC,KAAK;AACLC,EAAAA;AAAO,CACa,KAAI;EACxB,MAAM;IAAEC,GAAG;AAAEC,IAAAA;AAAK,GAAE,GAAGC,gBAAU,CAAsBC,+BAAe,CAAC;EACvE,MAAMC,gBAAgB,GAAGH,KAAK,CAACI,QAAQ,IAAIC,OAAO,CAACL,KAAK,CAACM,qBAAqB,CAAC;EAE/E,oBACEC,cAAA,CAACC,yBAAY,EAAA;IACXC,EAAE,EAAEV,GAAG,CAACW,MAAO;AACflB,IAAAA,SAAS,EAAEA,WAAU;AACrBK,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,OAAO,EAAEA,OAAQ;AACjBH,IAAAA,UAAU,EAAEA,UAAW;AACvBgB,IAAAA,KAAK,EAAER,gBAAiB;AACxBS,IAAAA,SAAS,EAAC,sBAAsB;AAAAhB,IAAAA,QAAA,EAE/BO,gBAAgB,GAAGH,KAAK,CAACM,qBAAqB,GAAGV;AAAQ,GAC9C,CAAC;AAEnB;AAEAL,MAAM,CAACsB,WAAW,GAAG,iBAAiB;;;;"}
@@ -1,8 +1,8 @@
1
1
  import { useContext } from 'react';
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';
@@ -26,18 +26,17 @@ import '../../common/closeButton/CloseButton.messages.mjs';
26
26
  import { jsx } from 'react/jsx-runtime';
27
27
  import { ListItemContext } from '../ListItemContext.mjs';
28
28
  import { InlinePrompt } from '../../prompt/InlinePrompt/InlinePrompt.mjs';
29
+ import '../../statusIcon/StatusIcon.mjs';
29
30
  import '../../body/Body.mjs';
30
31
  import '../../button/Button.resolver.mjs';
31
- import '../../prompt/PrimitivePrompt/PrimitivePrompt.mjs';
32
32
  import '../../badge/Badge.mjs';
33
33
  import '@wise/art';
34
- import '../../statusIcon/StatusIcon.mjs';
35
34
  import '@transferwise/neptune-validation';
36
35
  import '../../provider/direction/DirectionProvider.mjs';
36
+ import '../../sentimentSurface/SentimentSurface.mjs';
37
37
  import '../../primitives/PrimitiveButton/PrimitiveButton.mjs';
38
38
  import '../../primitives/PrimitiveAnchor/PrimitiveAnchor.mjs';
39
39
  import '../../link/Link.messages.mjs';
40
- import '../../prompt/common/Expander/Expander.messages.mjs';
41
40
 
42
41
  const Prompt = ({
43
42
  sentiment = Sentiment.NEUTRAL,
@@ -1 +1 @@
1
- {"version":3,"file":"ListItemPrompt.mjs","sources":["../../../src/listItem/Prompt/ListItemPrompt.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { Sentiment } from '../../common';\nimport { ListItemContext, type ListItemContextData } from '../ListItemContext';\nimport { InlinePrompt, type InlinePromptProps } from '../../prompt';\n\nexport type ListItemPromptProps = Pick<\n InlinePromptProps,\n 'children' | 'sentiment' | 'mediaLabel' | 'media' | 'loading'\n>;\n\n/**\n * This component allows for rendering an Inline Prompt. <br />\n * In the future it will be a thin wrapper around a standalone component.<br />\n *\n * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.\n */\nexport const Prompt = ({\n sentiment = Sentiment.NEUTRAL,\n mediaLabel,\n children,\n media,\n loading,\n}: ListItemPromptProps) => {\n const { ids, props } = useContext<ListItemContextData>(ListItemContext);\n const isLongLivedMuted = props.disabled && Boolean(props.disabledPromptMessage);\n\n return (\n <InlinePrompt\n id={ids.prompt}\n sentiment={sentiment}\n media={media}\n loading={loading}\n mediaLabel={mediaLabel}\n muted={isLongLivedMuted}\n className=\"wds-list-item-prompt\"\n >\n {isLongLivedMuted ? props.disabledPromptMessage : children}\n </InlinePrompt>\n );\n};\n\nPrompt.displayName = 'ListItem.Prompt';\n"],"names":["Prompt","sentiment","Sentiment","NEUTRAL","mediaLabel","children","media","loading","ids","props","useContext","ListItemContext","isLongLivedMuted","disabled","Boolean","disabledPromptMessage","_jsx","InlinePrompt","id","prompt","muted","className","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,MAAMA,MAAM,GAAGA,CAAC;EACrBC,SAAS,GAAGC,SAAS,CAACC,OAAO;EAC7BC,UAAU;EACVC,QAAQ;EACRC,KAAK;AACLC,EAAAA;AAAO,CACa,KAAI;EACxB,MAAM;IAAEC,GAAG;AAAEC,IAAAA;AAAK,GAAE,GAAGC,UAAU,CAAsBC,eAAe,CAAC;EACvE,MAAMC,gBAAgB,GAAGH,KAAK,CAACI,QAAQ,IAAIC,OAAO,CAACL,KAAK,CAACM,qBAAqB,CAAC;EAE/E,oBACEC,GAAA,CAACC,YAAY,EAAA;IACXC,EAAE,EAAEV,GAAG,CAACW,MAAO;AACflB,IAAAA,SAAS,EAAEA,SAAU;AACrBK,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,OAAO,EAAEA,OAAQ;AACjBH,IAAAA,UAAU,EAAEA,UAAW;AACvBgB,IAAAA,KAAK,EAAER,gBAAiB;AACxBS,IAAAA,SAAS,EAAC,sBAAsB;AAAAhB,IAAAA,QAAA,EAE/BO,gBAAgB,GAAGH,KAAK,CAACM,qBAAqB,GAAGV;AAAQ,GAC9C,CAAC;AAEnB;AAEAL,MAAM,CAACsB,WAAW,GAAG,iBAAiB;;;;"}
1
+ {"version":3,"file":"ListItemPrompt.mjs","sources":["../../../src/listItem/Prompt/ListItemPrompt.tsx"],"sourcesContent":["import { useContext } from 'react';\nimport { Sentiment } from '../../common';\nimport { ListItemContext, type ListItemContextData } from '../ListItemContext';\nimport { InlinePrompt, type InlinePromptProps } from '../../prompt';\n\nexport type ListItemPromptProps = Pick<\n InlinePromptProps,\n 'children' | 'sentiment' | 'mediaLabel' | 'media' | 'loading'\n>;\n\n/**\n * This component allows for rendering an Inline Prompt. <br />\n * In the future it will be a thin wrapper around a standalone component.<br />\n *\n * Please refer to the [Design documentation](https://wise.design/components/list-item#prompt) for details.\n */\nexport const Prompt = ({\n sentiment = Sentiment.NEUTRAL,\n mediaLabel,\n children,\n media,\n loading,\n}: ListItemPromptProps) => {\n const { ids, props } = useContext<ListItemContextData>(ListItemContext);\n const isLongLivedMuted = props.disabled && Boolean(props.disabledPromptMessage);\n\n return (\n <InlinePrompt\n id={ids.prompt}\n sentiment={sentiment}\n media={media}\n loading={loading}\n mediaLabel={mediaLabel}\n muted={isLongLivedMuted}\n className=\"wds-list-item-prompt\"\n >\n {isLongLivedMuted ? props.disabledPromptMessage : children}\n </InlinePrompt>\n );\n};\n\nPrompt.displayName = 'ListItem.Prompt';\n"],"names":["Prompt","sentiment","Sentiment","NEUTRAL","mediaLabel","children","media","loading","ids","props","useContext","ListItemContext","isLongLivedMuted","disabled","Boolean","disabledPromptMessage","_jsx","InlinePrompt","id","prompt","muted","className","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBO,MAAMA,MAAM,GAAGA,CAAC;EACrBC,SAAS,GAAGC,SAAS,CAACC,OAAO;EAC7BC,UAAU;EACVC,QAAQ;EACRC,KAAK;AACLC,EAAAA;AAAO,CACa,KAAI;EACxB,MAAM;IAAEC,GAAG;AAAEC,IAAAA;AAAK,GAAE,GAAGC,UAAU,CAAsBC,eAAe,CAAC;EACvE,MAAMC,gBAAgB,GAAGH,KAAK,CAACI,QAAQ,IAAIC,OAAO,CAACL,KAAK,CAACM,qBAAqB,CAAC;EAE/E,oBACEC,GAAA,CAACC,YAAY,EAAA;IACXC,EAAE,EAAEV,GAAG,CAACW,MAAO;AACflB,IAAAA,SAAS,EAAEA,SAAU;AACrBK,IAAAA,KAAK,EAAEA,KAAM;AACbC,IAAAA,OAAO,EAAEA,OAAQ;AACjBH,IAAAA,UAAU,EAAEA,UAAW;AACvBgB,IAAAA,KAAK,EAAER,gBAAiB;AACxBS,IAAAA,SAAS,EAAC,sBAAsB;AAAAhB,IAAAA,QAAA,EAE/BO,gBAAgB,GAAGH,KAAK,CAACM,qBAAqB,GAAGV;AAAQ,GAC9C,CAAC;AAEnB;AAEAL,MAAM,CAACsB,WAAW,GAAG,iBAAiB;;;;"}
@@ -7,8 +7,8 @@ var clsx = require('clsx');
7
7
  var React = require('react');
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
  var size = require('../common/propsValues/size.js');
13
13
  require('../common/propsValues/typography.js');
14
14
  require('../common/propsValues/width.js');
@@ -3,8 +3,8 @@ import { clsx } from 'clsx';
3
3
  import { useState, useEffect } from 'react';
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 { Size } from '../common/propsValues/size.mjs';
9
9
  import '../common/propsValues/typography.mjs';
10
10
  import '../common/propsValues/width.mjs';
@@ -31,7 +31,7 @@ const labelByType = {
31
31
  };
32
32
  /**
33
33
  * Renders the Wise wordmark logo. Responsive — shows the flag-only mark on small viewports
34
- * and the full wordmark on ≥576px (small breakpoint and above).
34
+ * and the full wordmark on ≥600px (small breakpoint and above).
35
35
  *
36
36
  * @see {@link https://wise.design/foundations/logo Design Spec}
37
37
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sources":["../../src/logo/Logo.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport {\n LogoWise,\n LogoWiseInverse,\n LogoWisePlatform,\n LogoWisePlatformInverse,\n LogoFlag,\n LogoFlagInverse,\n LogoFlagPlatform,\n LogoFlagPlatformInverse,\n} from './logo-assets';\n\nconst svgPaths = {\n WISE: LogoWise,\n WISE_BUSINESS: LogoWise,\n WISE_INVERSE: LogoWiseInverse,\n WISE_BUSINESS_INVERSE: LogoWiseInverse,\n WISE_PLATFORM: LogoWisePlatform,\n WISE_PLATFORM_INVERSE: LogoWisePlatformInverse,\n WISE_FLAG: LogoFlag,\n WISE_FLAG_INVERSE: LogoFlagInverse,\n WISE_FLAG_PLATFORM: LogoFlagPlatform,\n WISE_FLAG_PLATFORM_INVERSE: LogoFlagPlatformInverse,\n};\n\nexport enum LogoType {\n WISE = 'WISE',\n WISE_BUSINESS = 'WISE_BUSINESS',\n WISE_PLATFORM = 'WISE_PLATFORM',\n}\n\nexport interface LogoProps {\n /** Extra classes applied to Logo */\n className?: string;\n /**\n * Renders a light-coloured version suited for dark backgrounds.\n * @default false\n */\n inverse?: boolean;\n /**\n * What type of logo to display\n * @default 'WISE'\n */\n type?: `${LogoType}`;\n}\n\nconst labelByType = {\n WISE: 'Wise',\n WISE_BUSINESS: 'Wise Business',\n WISE_PLATFORM: 'Wise Platform',\n} satisfies Record<`${LogoType}`, string>;\n\n/**\n * Renders the Wise wordmark logo. Responsive — shows the flag-only mark on small viewports\n * and the full wordmark on ≥576px (small breakpoint and above).\n *\n * @see {@link https://wise.design/foundations/logo Design Spec}\n */\nexport default function Logo({ className, inverse, type = 'WISE' }: LogoProps) {\n const LogoSm =\n svgPaths[`WISE_FLAG${type === 'WISE_PLATFORM' ? '_PLATFORM' : ''}${inverse ? '_INVERSE' : ''}`];\n const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];\n\n return (\n <span aria-label={labelByType[type]} role=\"img\" className={clsx(className, 'np-logo')}>\n <LogoSm className=\"np-logo-svg np-logo-svg--size-sm\" />\n <LogoMd className=\"np-logo-svg np-logo-svg--size-md\" />\n </span>\n );\n}\n"],"names":["svgPaths","WISE","LogoWise","WISE_BUSINESS","WISE_INVERSE","LogoWiseInverse","WISE_BUSINESS_INVERSE","WISE_PLATFORM","LogoWisePlatform","WISE_PLATFORM_INVERSE","LogoWisePlatformInverse","WISE_FLAG","LogoFlag","WISE_FLAG_INVERSE","LogoFlagInverse","WISE_FLAG_PLATFORM","LogoFlagPlatform","WISE_FLAG_PLATFORM_INVERSE","LogoFlagPlatformInverse","LogoType","labelByType","Logo","className","inverse","type","LogoSm","LogoMd","_jsxs","role","clsx","children","_jsx"],"mappings":";;;;;;;;AAaA,MAAMA,QAAQ,GAAG;AACfC,EAAAA,IAAI,EAAEC,mBAAQ;AACdC,EAAAA,aAAa,EAAED,mBAAQ;AACvBE,EAAAA,YAAY,EAAEC,0BAAe;AAC7BC,EAAAA,qBAAqB,EAAED,0BAAe;AACtCE,EAAAA,aAAa,EAAEC,2BAAgB;AAC/BC,EAAAA,qBAAqB,EAAEC,kCAAuB;AAC9CC,EAAAA,SAAS,EAAEC,mBAAQ;AACnBC,EAAAA,iBAAiB,EAAEC,0BAAe;AAClCC,EAAAA,kBAAkB,EAAEC,2BAAgB;AACpCC,EAAAA,0BAA0B,EAAEC;CAC7B;AAEWC;AAAZ,CAAA,UAAYA,QAAQ,EAAA;AAClBA,EAAAA,QAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACbA,EAAAA,QAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AAC/BA,EAAAA,QAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AACjC,CAAC,EAJWA,gBAAQ,KAARA,gBAAQ,GAAA,EAAA,CAAA,CAAA;AAqBpB,MAAMC,WAAW,GAAG;AAClBnB,EAAAA,IAAI,EAAE,MAAM;AACZE,EAAAA,aAAa,EAAE,eAAe;AAC9BI,EAAAA,aAAa,EAAE;CACwB;AAEzC;;;;;AAKG;AACW,SAAUc,IAAIA,CAAC;EAAEC,SAAS;EAAEC,OAAO;AAAEC,EAAAA,IAAI,GAAG;AAAM,CAAa,EAAA;AAC3E,EAAA,MAAMC,MAAM,GACVzB,QAAQ,CAAC,CAAA,SAAA,EAAYwB,IAAI,KAAK,eAAe,GAAG,WAAW,GAAG,EAAE,GAAGD,OAAO,GAAG,UAAU,GAAG,EAAE,EAAE,CAAC;AACjG,EAAA,MAAMG,MAAM,GAAG1B,QAAQ,CAAC,CAAA,EAAGwB,IAAI,CAAA,EAAGD,OAAO,GAAG,UAAU,GAAG,EAAE,EAAE,CAAC;AAE9D,EAAA,oBACEI,eAAA,CAAA,MAAA,EAAA;IAAM,YAAA,EAAYP,WAAW,CAACI,IAAI,CAAE;AAACI,IAAAA,IAAI,EAAC,KAAK;AAACN,IAAAA,SAAS,EAAEO,SAAI,CAACP,SAAS,EAAE,SAAS,CAAE;IAAAQ,QAAA,EAAA,cACpFC,cAAA,CAACN,MAAM,EAAA;AAACH,MAAAA,SAAS,EAAC;AAAkC,KAAA,CACpD,eAAAS,cAAA,CAACL,MAAM,EAAA;AAACJ,MAAAA,SAAS,EAAC;AAAkC,KAAA,CACtD;AAAA,GAAM,CAAC;AAEX;;;;"}
1
+ {"version":3,"file":"Logo.js","sources":["../../src/logo/Logo.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport {\n LogoWise,\n LogoWiseInverse,\n LogoWisePlatform,\n LogoWisePlatformInverse,\n LogoFlag,\n LogoFlagInverse,\n LogoFlagPlatform,\n LogoFlagPlatformInverse,\n} from './logo-assets';\n\nconst svgPaths = {\n WISE: LogoWise,\n WISE_BUSINESS: LogoWise,\n WISE_INVERSE: LogoWiseInverse,\n WISE_BUSINESS_INVERSE: LogoWiseInverse,\n WISE_PLATFORM: LogoWisePlatform,\n WISE_PLATFORM_INVERSE: LogoWisePlatformInverse,\n WISE_FLAG: LogoFlag,\n WISE_FLAG_INVERSE: LogoFlagInverse,\n WISE_FLAG_PLATFORM: LogoFlagPlatform,\n WISE_FLAG_PLATFORM_INVERSE: LogoFlagPlatformInverse,\n};\n\nexport enum LogoType {\n WISE = 'WISE',\n WISE_BUSINESS = 'WISE_BUSINESS',\n WISE_PLATFORM = 'WISE_PLATFORM',\n}\n\nexport interface LogoProps {\n /** Extra classes applied to Logo */\n className?: string;\n /**\n * Renders a light-coloured version suited for dark backgrounds.\n * @default false\n */\n inverse?: boolean;\n /**\n * What type of logo to display\n * @default 'WISE'\n */\n type?: `${LogoType}`;\n}\n\nconst labelByType = {\n WISE: 'Wise',\n WISE_BUSINESS: 'Wise Business',\n WISE_PLATFORM: 'Wise Platform',\n} satisfies Record<`${LogoType}`, string>;\n\n/**\n * Renders the Wise wordmark logo. Responsive — shows the flag-only mark on small viewports\n * and the full wordmark on ≥600px (small breakpoint and above).\n *\n * @see {@link https://wise.design/foundations/logo Design Spec}\n */\nexport default function Logo({ className, inverse, type = 'WISE' }: LogoProps) {\n const LogoSm =\n svgPaths[`WISE_FLAG${type === 'WISE_PLATFORM' ? '_PLATFORM' : ''}${inverse ? '_INVERSE' : ''}`];\n const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];\n\n return (\n <span aria-label={labelByType[type]} role=\"img\" className={clsx(className, 'np-logo')}>\n <LogoSm className=\"np-logo-svg np-logo-svg--size-sm\" />\n <LogoMd className=\"np-logo-svg np-logo-svg--size-md\" />\n </span>\n );\n}\n"],"names":["svgPaths","WISE","LogoWise","WISE_BUSINESS","WISE_INVERSE","LogoWiseInverse","WISE_BUSINESS_INVERSE","WISE_PLATFORM","LogoWisePlatform","WISE_PLATFORM_INVERSE","LogoWisePlatformInverse","WISE_FLAG","LogoFlag","WISE_FLAG_INVERSE","LogoFlagInverse","WISE_FLAG_PLATFORM","LogoFlagPlatform","WISE_FLAG_PLATFORM_INVERSE","LogoFlagPlatformInverse","LogoType","labelByType","Logo","className","inverse","type","LogoSm","LogoMd","_jsxs","role","clsx","children","_jsx"],"mappings":";;;;;;;;AAaA,MAAMA,QAAQ,GAAG;AACfC,EAAAA,IAAI,EAAEC,mBAAQ;AACdC,EAAAA,aAAa,EA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EAAEO,SAAI,CAACP,SAAS,EAAE,SAAS,CAAE;IAAAQ,QAAA,EAAA,cACpFC,cAAA,CAACN,MAAM,EAAA;AAACH,MAAAA,SAAS,EAAC;AAAkC,KAAA,CACpD,eAAAS,cAAA,CAACL,MAAM,EAAA;AAACJ,MAAAA,SAAS,EAAC;AAAkC,KAAA,CACtD;AAAA,GAAM,CAAC;AAEX;;;;"}
@@ -27,7 +27,7 @@ const labelByType = {
27
27
  };
28
28
  /**
29
29
  * Renders the Wise wordmark logo. Responsive — shows the flag-only mark on small viewports
30
- * and the full wordmark on ≥576px (small breakpoint and above).
30
+ * and the full wordmark on ≥600px (small breakpoint and above).
31
31
  *
32
32
  * @see {@link https://wise.design/foundations/logo Design Spec}
33
33
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.mjs","sources":["../../src/logo/Logo.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport {\n LogoWise,\n LogoWiseInverse,\n LogoWisePlatform,\n LogoWisePlatformInverse,\n LogoFlag,\n LogoFlagInverse,\n LogoFlagPlatform,\n LogoFlagPlatformInverse,\n} from './logo-assets';\n\nconst svgPaths = {\n WISE: LogoWise,\n WISE_BUSINESS: LogoWise,\n WISE_INVERSE: LogoWiseInverse,\n WISE_BUSINESS_INVERSE: LogoWiseInverse,\n WISE_PLATFORM: LogoWisePlatform,\n WISE_PLATFORM_INVERSE: LogoWisePlatformInverse,\n WISE_FLAG: LogoFlag,\n WISE_FLAG_INVERSE: LogoFlagInverse,\n WISE_FLAG_PLATFORM: LogoFlagPlatform,\n WISE_FLAG_PLATFORM_INVERSE: LogoFlagPlatformInverse,\n};\n\nexport enum LogoType {\n WISE = 'WISE',\n WISE_BUSINESS = 'WISE_BUSINESS',\n WISE_PLATFORM = 'WISE_PLATFORM',\n}\n\nexport interface LogoProps {\n /** Extra classes applied to Logo */\n className?: string;\n /**\n * Renders a light-coloured version suited for dark backgrounds.\n * @default false\n */\n inverse?: boolean;\n /**\n * What type of logo to display\n * @default 'WISE'\n */\n type?: `${LogoType}`;\n}\n\nconst labelByType = {\n WISE: 'Wise',\n WISE_BUSINESS: 'Wise Business',\n WISE_PLATFORM: 'Wise Platform',\n} satisfies Record<`${LogoType}`, string>;\n\n/**\n * Renders the Wise wordmark logo. Responsive — shows the flag-only mark on small viewports\n * and the full wordmark on ≥576px (small breakpoint and above).\n *\n * @see {@link https://wise.design/foundations/logo Design Spec}\n */\nexport default function Logo({ className, inverse, type = 'WISE' }: LogoProps) {\n const LogoSm =\n svgPaths[`WISE_FLAG${type === 'WISE_PLATFORM' ? '_PLATFORM' : ''}${inverse ? '_INVERSE' : ''}`];\n const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];\n\n return (\n <span aria-label={labelByType[type]} role=\"img\" className={clsx(className, 'np-logo')}>\n <LogoSm className=\"np-logo-svg np-logo-svg--size-sm\" />\n <LogoMd className=\"np-logo-svg np-logo-svg--size-md\" />\n </span>\n );\n}\n"],"names":["svgPaths","WISE","LogoWise","WISE_BUSINESS","WISE_INVERSE","LogoWiseInverse","WISE_BUSINESS_INVERSE","WISE_PLATFORM","LogoWisePlatform","WISE_PLATFORM_INVERSE","LogoWisePlatformInverse","WISE_FLAG","LogoFlag","WISE_FLAG_INVERSE","LogoFlagInverse","WISE_FLAG_PLATFORM","LogoFlagPlatform","WISE_FLAG_PLATFORM_INVERSE","LogoFlagPlatformInverse","LogoType","labelByType","Logo","className","inverse","type","LogoSm","LogoMd","_jsxs","role","clsx","children","_jsx"],"mappings":";;;;AAaA,MAAMA,QAAQ,GAAG;AACfC,EAAAA,IAAI,EAAEC,QAAQ;AACdC,EAAAA,aAAa,EAAED,QAAQ;AACvBE,EAAAA,YAAY,EAAEC,eAAe;AAC7BC,EAAAA,qBAAqB,EAAED,eAAe;AACtCE,EAAAA,aAAa,EAAEC,gBAAgB;AAC/BC,EAAAA,qBAAqB,EAAEC,uBAAuB;AAC9CC,EAAAA,SAAS,EAAEC,QAAQ;AACnBC,EAAAA,i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AAAA,GAAM,CAAC;AAEX;;;;"}
1
+ {"version":3,"file":"Logo.mjs","sources":["../../src/logo/Logo.tsx"],"sourcesContent":["import { clsx } from 'clsx';\n\nimport {\n LogoWise,\n LogoWiseInverse,\n LogoWisePlatform,\n LogoWisePlatformInverse,\n LogoFlag,\n LogoFlagInverse,\n LogoFlagPlatform,\n LogoFlagPlatformInverse,\n} from './logo-assets';\n\nconst svgPaths = {\n WISE: LogoWise,\n WISE_BUSINESS: LogoWise,\n WISE_INVERSE: LogoWiseInverse,\n WISE_BUSINESS_INVERSE: LogoWiseInverse,\n WISE_PLATFORM: LogoWisePlatform,\n WISE_PLATFORM_INVERSE: LogoWisePlatformInverse,\n WISE_FLAG: LogoFlag,\n WISE_FLAG_INVERSE: LogoFlagInverse,\n WISE_FLAG_PLATFORM: LogoFlagPlatform,\n WISE_FLAG_PLATFORM_INVERSE: LogoFlagPlatformInverse,\n};\n\nexport enum LogoType {\n WISE = 'WISE',\n WISE_BUSINESS = 'WISE_BUSINESS',\n WISE_PLATFORM = 'WISE_PLATFORM',\n}\n\nexport interface LogoProps {\n /** Extra classes applied to Logo */\n className?: string;\n /**\n * Renders a light-coloured version suited for dark backgrounds.\n * @default false\n */\n inverse?: boolean;\n /**\n * What type of logo to display\n * @default 'WISE'\n */\n type?: `${LogoType}`;\n}\n\nconst labelByType = {\n WISE: 'Wise',\n WISE_BUSINESS: 'Wise Business',\n WISE_PLATFORM: 'Wise Platform',\n} satisfies Record<`${LogoType}`, string>;\n\n/**\n * Renders the Wise wordmark logo. Responsive — shows the flag-only mark on small viewports\n * and the full wordmark on ≥600px (small breakpoint and above).\n *\n * @see {@link https://wise.design/foundations/logo Design Spec}\n */\nexport default function Logo({ className, inverse, type = 'WISE' }: LogoProps) {\n const LogoSm =\n svgPaths[`WISE_FLAG${type === 'WISE_PLATFORM' ? '_PLATFORM' : ''}${inverse ? '_INVERSE' : ''}`];\n const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];\n\n return (\n <span aria-label={labelByType[type]} role=\"img\" className={clsx(className, 'np-logo')}>\n <LogoSm className=\"np-logo-svg np-logo-svg--size-sm\" />\n <LogoMd className=\"np-logo-svg np-logo-svg--size-md\" />\n </span>\n );\n}\n"],"names":["svgPaths","WISE","LogoWise","WISE_BUSINESS","WISE_INVERSE","LogoWiseInverse","WISE_BUSINESS_INVERSE","WISE_PLATFORM","LogoWisePlatform","WISE_PLATFORM_INVERSE","LogoWisePlatformInverse","WISE_FLAG","LogoFlag","WISE_FLAG_INVERSE","LogoFlagInverse","WISE_FLAG_PLATFORM","LogoFlagPlatform","WISE_FLAG_PLATFORM_INVERSE","LogoFlagPlatformInverse","LogoType","labelByType","Logo","className","inverse","type","LogoSm","LogoMd","_jsxs","role","clsx","children","_jsx"],"mappings":";;;;AAaA,MAAMA,QAAQ,GAAG;AACfC,EAAAA,IAAI,EAAEC,QAAQ;AACdC,EAAAA,aAAa,EAAED,QAAQ;AACvBE,EAAAA,YAAY,EAAEC,eAAe;AAC7BC,EAAAA,qBAAqB,EAAED,eAAe;AACtCE,EAAAA,aAAa,EAAEC,gBAAgB;AAC/BC,EAAAA,qBAAqB,EAAEC,uBAAuB;AAC9CC,EAAAA,SAAS,EAAEC,QAAQ;AACnBC,EAAAA,iBAAiB,EAAEC,eAAe;AAClCC,EAAAA,kBAAkB,EAAEC,gBAAgB;AACpCC,EAAAA,0BAA0B,EAAEC;CAC7B;IAEWC;AAAZ,CAAA,UAAYA,QAAQ,EAAA;AAClBA,EAAAA,QAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACbA,EAAAA,QAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AAC/BA,EAAAA,QAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AACjC,CAAC,EAJWA,QAAQ,KAARA,QAAQ,GAAA,EAAA,CAAA,CAAA;AAqBpB,MAAMC,WAAW,GAAG;AAClBnB,EAAAA,IAAI,EAAE,MAAM;AACZE,EAAAA,aAAa,EAAE,eAAe;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