@transferwise/components 46.37.0 → 46.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (369) hide show
  1. package/README.md +1 -1
  2. package/build/index.js +179 -357
  3. package/build/index.js.map +1 -1
  4. package/build/index.mjs +173 -350
  5. package/build/index.mjs.map +1 -1
  6. package/build/main.css +127 -108
  7. package/build/styles/main.css +127 -108
  8. package/build/styles/uploadInput/UploadInput.css +25 -27
  9. package/build/styles/uploadInput/uploadButton/UploadButton.css +24 -38
  10. package/build/styles/uploadInput/uploadItem/UploadItem.css +81 -46
  11. package/build/types/actionButton/ActionButton.d.ts +2 -2
  12. package/build/types/actionButton/ActionButton.d.ts.map +1 -1
  13. package/build/types/actionOption/ActionOption.d.ts +0 -1
  14. package/build/types/actionOption/ActionOption.d.ts.map +1 -1
  15. package/build/types/alert/Alert.d.ts +0 -1
  16. package/build/types/alert/Alert.d.ts.map +1 -1
  17. package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts +4 -11
  18. package/build/types/alert/inlineMarkdown/InlineMarkdown.d.ts.map +1 -1
  19. package/build/types/alert/inlineMarkdown/index.d.ts +2 -1
  20. package/build/types/alert/inlineMarkdown/index.d.ts.map +1 -1
  21. package/build/types/avatar/Avatar.d.ts +0 -1
  22. package/build/types/avatar/Avatar.d.ts.map +1 -1
  23. package/build/types/avatar/colors/colors.d.ts.map +1 -1
  24. package/build/types/avatarWrapper/AvatarWrapper.d.ts +0 -1
  25. package/build/types/avatarWrapper/AvatarWrapper.d.ts.map +1 -1
  26. package/build/types/body/Body.d.ts +2 -2
  27. package/build/types/body/Body.d.ts.map +1 -1
  28. package/build/types/button/Button.d.ts +0 -1
  29. package/build/types/button/Button.d.ts.map +1 -1
  30. package/build/types/button/Button.messages.d.ts +3 -3
  31. package/build/types/button/classMap.d.ts +6 -6
  32. package/build/types/card/Card.d.ts +16 -20
  33. package/build/types/card/Card.d.ts.map +1 -1
  34. package/build/types/card/index.d.ts +2 -1
  35. package/build/types/card/index.d.ts.map +1 -1
  36. package/build/types/checkbox/Checkbox.d.ts +15 -20
  37. package/build/types/checkbox/Checkbox.d.ts.map +1 -1
  38. package/build/types/checkbox/index.d.ts +2 -2
  39. package/build/types/checkbox/index.d.ts.map +1 -1
  40. package/build/types/checkboxOption/CheckboxOption.d.ts +2 -3
  41. package/build/types/checkboxOption/CheckboxOption.d.ts.map +1 -1
  42. package/build/types/chevron/Chevron.d.ts +0 -1
  43. package/build/types/chevron/Chevron.d.ts.map +1 -1
  44. package/build/types/chips/Chip.d.ts +0 -1
  45. package/build/types/chips/Chip.d.ts.map +1 -1
  46. package/build/types/chips/Chips.d.ts +0 -1
  47. package/build/types/chips/Chips.d.ts.map +1 -1
  48. package/build/types/circularButton/CircularButton.d.ts +0 -1
  49. package/build/types/circularButton/CircularButton.d.ts.map +1 -1
  50. package/build/types/common/RadioButton/RadioButton.d.ts +0 -1
  51. package/build/types/common/RadioButton/RadioButton.d.ts.map +1 -1
  52. package/build/types/common/action/Action.d.ts +0 -1
  53. package/build/types/common/action/Action.d.ts.map +1 -1
  54. package/build/types/common/closeButton/CloseButton.d.ts +4 -5
  55. package/build/types/common/closeButton/CloseButton.d.ts.map +1 -1
  56. package/build/types/common/commonProps.d.ts +0 -1
  57. package/build/types/common/commonProps.d.ts.map +1 -1
  58. package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts +1 -1
  59. package/build/types/common/dateUtils/getMonthNames/getMonthNames.d.ts.map +1 -1
  60. package/build/types/common/focusBoundary/FocusBoundary.d.ts +0 -1
  61. package/build/types/common/focusBoundary/FocusBoundary.d.ts.map +1 -1
  62. package/build/types/common/hooks/useDirection/useDirection.d.ts.map +1 -1
  63. package/build/types/common/hooks/useResizeObserver.d.ts +0 -1
  64. package/build/types/common/hooks/useResizeObserver.d.ts.map +1 -1
  65. package/build/types/common/panel/Panel.d.ts +8 -8
  66. package/build/types/common/panel/Panel.d.ts.map +1 -1
  67. package/build/types/common/polymorphicWithOverrides/PolymorphicWithOverrides.d.ts +0 -1
  68. package/build/types/common/polymorphicWithOverrides/PolymorphicWithOverrides.d.ts.map +1 -1
  69. package/build/types/common/responsivePanel/ResponsivePanel.d.ts +8 -9
  70. package/build/types/common/responsivePanel/ResponsivePanel.d.ts.map +1 -1
  71. package/build/types/criticalBanner/CriticalCommsBanner.d.ts +0 -1
  72. package/build/types/criticalBanner/CriticalCommsBanner.d.ts.map +1 -1
  73. package/build/types/dateInput/DateInput.d.ts +0 -1
  74. package/build/types/dateInput/DateInput.d.ts.map +1 -1
  75. package/build/types/dateLookup/DateLookup.d.ts +1 -1
  76. package/build/types/dateLookup/DateLookup.d.ts.map +1 -1
  77. package/build/types/dateLookup/dateHeader/DateHeader.d.ts +0 -1
  78. package/build/types/dateLookup/dateHeader/DateHeader.d.ts.map +1 -1
  79. package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts +0 -1
  80. package/build/types/dateLookup/dateTrigger/DateTrigger.d.ts.map +1 -1
  81. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts +0 -1
  82. package/build/types/dateLookup/dayCalendar/DayCalendar.d.ts.map +1 -1
  83. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts +0 -1
  84. package/build/types/dateLookup/dayCalendar/table/DayCalendarTable.d.ts.map +1 -1
  85. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts +0 -1
  86. package/build/types/dateLookup/monthCalendar/MonthCalendar.d.ts.map +1 -1
  87. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts +0 -1
  88. package/build/types/dateLookup/monthCalendar/table/MonthCalendarTable.d.ts.map +1 -1
  89. package/build/types/dateLookup/tableLink/TableLink.d.ts +0 -1
  90. package/build/types/dateLookup/tableLink/TableLink.d.ts.map +1 -1
  91. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts +0 -1
  92. package/build/types/dateLookup/yearCalendar/YearCalendar.d.ts.map +1 -1
  93. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts +0 -1
  94. package/build/types/dateLookup/yearCalendar/table/YearCalendarTable.d.ts.map +1 -1
  95. package/build/types/decision/Decision.d.ts +1 -2
  96. package/build/types/decision/Decision.d.ts.map +1 -1
  97. package/build/types/definitionList/DefinitionList.d.ts +19 -24
  98. package/build/types/definitionList/DefinitionList.d.ts.map +1 -1
  99. package/build/types/definitionList/index.d.ts +2 -1
  100. package/build/types/definitionList/index.d.ts.map +1 -1
  101. package/build/types/dimmer/Dimmer.d.ts.map +1 -1
  102. package/build/types/drawer/Drawer.d.ts +18 -36
  103. package/build/types/drawer/Drawer.d.ts.map +1 -1
  104. package/build/types/drawer/index.d.ts +2 -1
  105. package/build/types/drawer/index.d.ts.map +1 -1
  106. package/build/types/dropFade/DropFade.d.ts.map +1 -1
  107. package/build/types/emphasis/Emphasis.d.ts +0 -1
  108. package/build/types/emphasis/Emphasis.d.ts.map +1 -1
  109. package/build/types/field/Field.d.ts +0 -1
  110. package/build/types/field/Field.d.ts.map +1 -1
  111. package/build/types/flowNavigation/FlowNavigation.d.ts +0 -1
  112. package/build/types/flowNavigation/FlowNavigation.d.ts.map +1 -1
  113. package/build/types/flowNavigation/backButton/BackButton.d.ts +5 -17
  114. package/build/types/flowNavigation/backButton/BackButton.d.ts.map +1 -1
  115. package/build/types/flowNavigation/backButton/index.d.ts +2 -2
  116. package/build/types/flowNavigation/backButton/index.d.ts.map +1 -1
  117. package/build/types/header/Header.d.ts +0 -1
  118. package/build/types/header/Header.d.ts.map +1 -1
  119. package/build/types/image/Image.d.ts +0 -1
  120. package/build/types/image/Image.d.ts.map +1 -1
  121. package/build/types/index.d.ts +5 -0
  122. package/build/types/index.d.ts.map +1 -1
  123. package/build/types/info/Info.d.ts +2 -3
  124. package/build/types/info/Info.d.ts.map +1 -1
  125. package/build/types/info/index.d.ts +1 -1
  126. package/build/types/info/index.d.ts.map +1 -1
  127. package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts +0 -1
  128. package/build/types/inputWithDisplayFormat/InputWithDisplayFormat.d.ts.map +1 -1
  129. package/build/types/inputs/Input.d.ts +0 -1
  130. package/build/types/inputs/Input.d.ts.map +1 -1
  131. package/build/types/inputs/InputGroup.d.ts +0 -1
  132. package/build/types/inputs/InputGroup.d.ts.map +1 -1
  133. package/build/types/inputs/SearchInput.d.ts +0 -1
  134. package/build/types/inputs/SearchInput.d.ts.map +1 -1
  135. package/build/types/inputs/SelectInput.d.ts +0 -1
  136. package/build/types/inputs/SelectInput.d.ts.map +1 -1
  137. package/build/types/inputs/TextArea.d.ts +0 -1
  138. package/build/types/inputs/TextArea.d.ts.map +1 -1
  139. package/build/types/inputs/_BottomSheet.d.ts +0 -1
  140. package/build/types/inputs/_BottomSheet.d.ts.map +1 -1
  141. package/build/types/inputs/_ButtonInput.d.ts +0 -1
  142. package/build/types/inputs/_ButtonInput.d.ts.map +1 -1
  143. package/build/types/inputs/_Popover.d.ts +0 -1
  144. package/build/types/inputs/_Popover.d.ts.map +1 -1
  145. package/build/types/inputs/contexts.d.ts +0 -1
  146. package/build/types/inputs/contexts.d.ts.map +1 -1
  147. package/build/types/label/Label.d.ts +0 -1
  148. package/build/types/label/Label.d.ts.map +1 -1
  149. package/build/types/loader/Loader.d.ts +0 -1
  150. package/build/types/loader/Loader.d.ts.map +1 -1
  151. package/build/types/logo/Logo.d.ts +15 -23
  152. package/build/types/logo/Logo.d.ts.map +1 -1
  153. package/build/types/logo/index.d.ts +1 -2
  154. package/build/types/logo/index.d.ts.map +1 -1
  155. package/build/types/markdown/Markdown.d.ts +0 -1
  156. package/build/types/markdown/Markdown.d.ts.map +1 -1
  157. package/build/types/money/Money.d.ts +0 -1
  158. package/build/types/money/Money.d.ts.map +1 -1
  159. package/build/types/moneyInput/MoneyInput.d.ts +0 -1
  160. package/build/types/moneyInput/MoneyInput.d.ts.map +1 -1
  161. package/build/types/navigationOption/NavigationOption.d.ts +0 -1
  162. package/build/types/navigationOption/NavigationOption.d.ts.map +1 -1
  163. package/build/types/overlayHeader/OverlayHeader.d.ts +9 -18
  164. package/build/types/overlayHeader/OverlayHeader.d.ts.map +1 -1
  165. package/build/types/overlayHeader/index.d.ts +2 -1
  166. package/build/types/overlayHeader/index.d.ts.map +1 -1
  167. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts +0 -1
  168. package/build/types/phoneNumberInput/PhoneNumberInput.d.ts.map +1 -1
  169. package/build/types/popover/Popover.d.ts +0 -1
  170. package/build/types/popover/Popover.d.ts.map +1 -1
  171. package/build/types/progress/Progress.d.ts +0 -1
  172. package/build/types/progress/Progress.d.ts.map +1 -1
  173. package/build/types/progressBar/ProgressBar.d.ts +0 -1
  174. package/build/types/progressBar/ProgressBar.d.ts.map +1 -1
  175. package/build/types/provider/Provider.d.ts +0 -1
  176. package/build/types/provider/Provider.d.ts.map +1 -1
  177. package/build/types/radio/Radio.d.ts +0 -1
  178. package/build/types/radio/Radio.d.ts.map +1 -1
  179. package/build/types/radioGroup/RadioGroup.d.ts +0 -1
  180. package/build/types/radioGroup/RadioGroup.d.ts.map +1 -1
  181. package/build/types/radioOption/RadioOption.d.ts +0 -1
  182. package/build/types/radioOption/RadioOption.d.ts.map +1 -1
  183. package/build/types/segmentedControl/SegmentedControl.d.ts +0 -1
  184. package/build/types/segmentedControl/SegmentedControl.d.ts.map +1 -1
  185. package/build/types/select/index.d.ts +1 -1
  186. package/build/types/select/index.d.ts.map +1 -1
  187. package/build/types/select/option/index.d.ts +1 -1
  188. package/build/types/select/option/index.d.ts.map +1 -1
  189. package/build/types/select/searchBox/SearchBox.d.ts +3 -3
  190. package/build/types/select/searchBox/SearchBox.d.ts.map +1 -1
  191. package/build/types/slidingPanel/SlidingPanel.d.ts +1 -1
  192. package/build/types/slidingPanel/SlidingPanel.d.ts.map +1 -1
  193. package/build/types/snackbar/Snackbar.d.ts +2 -1
  194. package/build/types/snackbar/Snackbar.d.ts.map +1 -1
  195. package/build/types/snackbar/SnackbarContext.d.ts +0 -1
  196. package/build/types/snackbar/SnackbarContext.d.ts.map +1 -1
  197. package/build/types/snackbar/SnackbarProvider.d.ts +0 -1
  198. package/build/types/snackbar/SnackbarProvider.d.ts.map +1 -1
  199. package/build/types/statusIcon/StatusIcon.d.ts +0 -1
  200. package/build/types/statusIcon/StatusIcon.d.ts.map +1 -1
  201. package/build/types/sticky/Sticky.d.ts +32 -4
  202. package/build/types/sticky/Sticky.d.ts.map +1 -1
  203. package/build/types/switchOption/SwitchOption.d.ts +0 -1
  204. package/build/types/switchOption/SwitchOption.d.ts.map +1 -1
  205. package/build/types/tabs/TabList.d.ts +1 -1
  206. package/build/types/tabs/TabPanel.d.ts +4 -4
  207. package/build/types/tabs/Tabs.d.ts.map +1 -1
  208. package/build/types/test-utils/story-config.d.ts +8 -0
  209. package/build/types/test-utils/story-config.d.ts.map +1 -1
  210. package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts +0 -1
  211. package/build/types/textareaWithDisplayFormat/TextareaWithDisplayFormat.d.ts.map +1 -1
  212. package/build/types/tile/Tile.d.ts +16 -37
  213. package/build/types/tile/Tile.d.ts.map +1 -1
  214. package/build/types/tile/index.d.ts +1 -1
  215. package/build/types/tile/index.d.ts.map +1 -1
  216. package/build/types/typeahead/Typeahead.d.ts.map +1 -1
  217. package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts +0 -1
  218. package/build/types/typeahead/typeaheadOption/TypeaheadOption.d.ts.map +1 -1
  219. package/build/types/typeahead/util/highlight.d.ts +0 -1
  220. package/build/types/typeahead/util/highlight.d.ts.map +1 -1
  221. package/build/types/upload/Upload.d.ts.map +1 -1
  222. package/build/types/upload/Upload.messages.d.ts +20 -20
  223. package/build/types/upload/steps/completeStep/completeStep.d.ts +10 -10
  224. package/build/types/upload/steps/mediaUploadStep/mediaUploadStep.d.ts +8 -8
  225. package/build/types/upload/steps/processingStep/processingStep.d.ts +8 -8
  226. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts +9 -9
  227. package/build/types/upload/steps/uploadImageStep/uploadImageStep.d.ts.map +1 -1
  228. package/build/types/uploadInput/UploadInput.d.ts +0 -1
  229. package/build/types/uploadInput/UploadInput.d.ts.map +1 -1
  230. package/build/types/uploadInput/types.d.ts +9 -1
  231. package/build/types/uploadInput/types.d.ts.map +1 -1
  232. package/build/types/uploadInput/uploadButton/UploadButton.d.ts +1 -6
  233. package/build/types/uploadInput/uploadButton/UploadButton.d.ts.map +1 -1
  234. package/build/types/uploadInput/uploadItem/UploadItem.d.ts +0 -1
  235. package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -1
  236. package/build/types/withDisplayFormat/WithDisplayFormat.d.ts.map +1 -1
  237. package/build/types/withNextPortal/withNextPortal.d.ts +0 -1
  238. package/build/types/withNextPortal/withNextPortal.d.ts.map +1 -1
  239. package/package.json +24 -27
  240. package/src/accordion/Accordion.spec.js +5 -5
  241. package/src/accordion/AccordionItem/AccordionItem.spec.js +2 -2
  242. package/src/actionButton/ActionButton.spec.tsx +4 -5
  243. package/src/alert/Alert.spec.tsx +4 -4
  244. package/src/alert/Alert.story.tsx +6 -5
  245. package/src/alert/inlineMarkdown/InlineMarkdown.tsx +13 -0
  246. package/src/alert/inlineMarkdown/index.ts +2 -0
  247. package/src/button/Button.spec.js +4 -5
  248. package/src/card/{Card.spec.js → Card.spec.tsx} +4 -4
  249. package/src/card/{Card.story.js → Card.story.tsx} +6 -15
  250. package/src/card/{Card.js → Card.tsx} +23 -34
  251. package/src/card/index.ts +2 -0
  252. package/src/carousel/Carousel.spec.tsx +17 -17
  253. package/src/checkbox/{Checkbox.spec.js → Checkbox.spec.tsx} +5 -7
  254. package/src/checkbox/{Checkbox.js → Checkbox.tsx} +19 -41
  255. package/src/checkbox/index.ts +2 -0
  256. package/src/checkboxButton/CheckboxButton.spec.tsx +0 -2
  257. package/src/checkboxOption/CheckboxOption.spec.tsx +0 -2
  258. package/src/chevron/Chevron.spec.tsx +0 -1
  259. package/src/chips/Chips.spec.tsx +0 -1
  260. package/src/chips/Chips.story.tsx +5 -3
  261. package/src/circularButton/CircularButton.spec.tsx +4 -5
  262. package/src/common/RadioButton/RadioButton.spec.tsx +2 -2
  263. package/src/common/card/Card.story.tsx +1 -0
  264. package/src/common/closeButton/CloseButton.spec.tsx +0 -1
  265. package/src/common/flowHeader/FlowHeader.spec.tsx +0 -1
  266. package/src/dateInput/DateInput.story.tsx +21 -16
  267. package/src/dateLookup/DateLookup.rtl.spec.tsx +18 -16
  268. package/src/dateLookup/DateLookup.testingLibrary.spec.js +47 -44
  269. package/src/dateLookup/DateLookup.tests.story.tsx +4 -2
  270. package/src/decision/Decision.spec.js +0 -2
  271. package/src/decision/Decision.tsx +1 -1
  272. package/src/definitionList/{DefinitionList.story.js → DefinitionList.story.tsx} +22 -2
  273. package/src/definitionList/DefinitionList.tsx +95 -0
  274. package/src/definitionList/index.ts +2 -0
  275. package/src/dimmer/Dimmer.rtl.spec.js +10 -10
  276. package/src/drawer/{Drawer.rtl.spec.js → Drawer.rtl.spec.tsx} +6 -4
  277. package/src/drawer/{Drawer.story.js → Drawer.story.tsx} +20 -28
  278. package/src/drawer/{Drawer.js → Drawer.tsx} +26 -31
  279. package/src/drawer/index.ts +2 -0
  280. package/src/emphasis/Emphasis.spec.tsx +0 -1
  281. package/src/field/Field.spec.tsx +2 -2
  282. package/src/flowNavigation/FlowNavigation.spec.js +0 -2
  283. package/src/flowNavigation/animatedLabel/AnimatedLabel.spec.js +0 -1
  284. package/src/flowNavigation/backButton/BackButton.tsx +29 -0
  285. package/src/flowNavigation/backButton/index.ts +2 -0
  286. package/src/header/Header.spec.tsx +6 -6
  287. package/src/image/Image.spec.tsx +0 -1
  288. package/src/index.ts +5 -0
  289. package/src/info/Info.story.tsx +15 -9
  290. package/src/info/Info.tsx +2 -2
  291. package/src/info/index.ts +1 -1
  292. package/src/inlineAlert/InlineAlert.spec.tsx +0 -1
  293. package/src/inputs/SelectInput.spec.tsx +26 -47
  294. package/src/link/Link.spec.tsx +0 -1
  295. package/src/listItem/ListItem.spec.tsx +0 -1
  296. package/src/logo/Logo.story.tsx +3 -6
  297. package/src/logo/{Logo.js → Logo.tsx} +25 -35
  298. package/src/logo/index.ts +1 -0
  299. package/src/main.css +127 -108
  300. package/src/moneyInput/MoneyInput.rtl.spec.tsx +2 -2
  301. package/src/moneyInput/MoneyInput.story.tsx +1 -4
  302. package/src/overlayHeader/{OverlayHeader.spec.js → OverlayHeader.spec.tsx} +1 -1
  303. package/src/overlayHeader/{OverlayHeader.story.js → OverlayHeader.story.tsx} +10 -2
  304. package/src/overlayHeader/{OverlayHeader.js → OverlayHeader.tsx} +12 -19
  305. package/src/overlayHeader/index.ts +2 -0
  306. package/src/phoneNumberInput/PhoneNumberInput.story.tsx +1 -0
  307. package/src/popover/Popover.spec.tsx +10 -10
  308. package/src/progress/Progress.spec.tsx +0 -1
  309. package/src/progressBar/ProgressBar.spec.tsx +0 -1
  310. package/src/section/Section.story.tsx +0 -2
  311. package/src/segmentedControl/SegmentedControl.spec.tsx +10 -11
  312. package/src/select/Select.spec.js +71 -71
  313. package/src/slidingPanel/SlidingPanel.spec.js +2 -1
  314. package/src/slidingPanel/SlidingPanel.tsx +3 -0
  315. package/src/snackbar/Snackbar.story.tsx +20 -100
  316. package/src/snackbar/Snackbar.tests.story.tsx +281 -0
  317. package/src/snackbar/Snackbar.tsx +8 -12
  318. package/src/sticky/Sticky.spec.tsx +71 -0
  319. package/src/sticky/Sticky.story.tsx +72 -15
  320. package/src/sticky/Sticky.tsx +49 -5
  321. package/src/test-utils/Parameters.d.ts +8 -0
  322. package/src/test-utils/index.js +1 -1
  323. package/src/test-utils/jest.setup.js +2 -0
  324. package/src/test-utils/story-config.ts +5 -0
  325. package/src/tile/{Tile.spec.js → Tile.spec.tsx} +1 -1
  326. package/src/tile/{Tile.js → Tile.tsx} +24 -35
  327. package/src/tooltip/Tooltip.spec.tsx +15 -16
  328. package/src/uploadInput/UploadInput.css +25 -27
  329. package/src/uploadInput/UploadInput.less +24 -23
  330. package/src/uploadInput/UploadInput.spec.tsx +9 -10
  331. package/src/uploadInput/UploadInput.story.tsx +8 -130
  332. package/src/uploadInput/UploadInput.tests.story.tsx +212 -0
  333. package/src/uploadInput/UploadInput.tsx +1 -4
  334. package/src/uploadInput/types.ts +11 -1
  335. package/src/uploadInput/uploadButton/UploadButton.css +24 -38
  336. package/src/uploadInput/uploadButton/UploadButton.less +27 -40
  337. package/src/uploadInput/uploadButton/UploadButton.spec.tsx +4 -5
  338. package/src/uploadInput/uploadButton/UploadButton.tsx +12 -37
  339. package/src/uploadInput/uploadItem/UploadItem.css +81 -46
  340. package/src/uploadInput/uploadItem/UploadItem.less +75 -40
  341. package/src/uploadInput/uploadItem/UploadItem.spec.tsx +4 -4
  342. package/src/uploadInput/uploadItem/UploadItem.tsx +30 -25
  343. package/src/uploadInput/uploadItem/UploadItemBody.tsx +1 -1
  344. package/build/types/logo/logoTypes.d.ts +0 -6
  345. package/build/types/logo/logoTypes.d.ts.map +0 -1
  346. package/src/alert/inlineMarkdown/InlineMarkdown.js +0 -21
  347. package/src/alert/inlineMarkdown/index.js +0 -1
  348. package/src/card/index.js +0 -1
  349. package/src/checkbox/index.js +0 -3
  350. package/src/definitionList/DefinitionList.js +0 -100
  351. package/src/definitionList/index.js +0 -1
  352. package/src/drawer/index.js +0 -1
  353. package/src/flowNavigation/backButton/BackButton.js +0 -32
  354. package/src/flowNavigation/backButton/BackButton.spec.js +0 -16
  355. package/src/flowNavigation/backButton/__snapshots__/BackButton.spec.js.snap +0 -37
  356. package/src/flowNavigation/backButton/index.js +0 -3
  357. package/src/logo/index.js +0 -2
  358. package/src/logo/logoTypes.ts +0 -6
  359. package/src/overlayHeader/index.js +0 -1
  360. package/src/snackbar/Snackbar.spec.js +0 -112
  361. package/src/sticky/Sticky.spec.js +0 -34
  362. /package/src/checkbox/__snapshots__/{Checkbox.spec.js.snap → Checkbox.spec.tsx.snap} +0 -0
  363. /package/src/drawer/__snapshots__/{Drawer.rtl.spec.js.snap → Drawer.rtl.spec.tsx.snap} +0 -0
  364. /package/src/logo/{Logo.spec.js → Logo.spec.tsx} +0 -0
  365. /package/src/logo/__snapshots__/{Logo.spec.js.snap → Logo.spec.tsx.snap} +0 -0
  366. /package/src/overlayHeader/__snapshots__/{OverlayHeader.spec.js.snap → OverlayHeader.spec.tsx.snap} +0 -0
  367. /package/src/tile/{Tile.story.js → Tile.story.tsx} +0 -0
  368. /package/src/tile/__snapshots__/{Tile.spec.js.snap → Tile.spec.tsx.snap} +0 -0
  369. /package/src/tile/{index.js → index.ts} +0 -0
package/build/index.mjs CHANGED
@@ -2,9 +2,8 @@ import * as React from 'react';
2
2
  import React__default, { forwardRef, useId, cloneElement, useState, useEffect, useRef, useMemo, Component, createContext, useContext, useSyncExternalStore, useCallback, useImperativeHandle, createElement, PureComponent, createRef, isValidElement, Children, Fragment as Fragment$1 } from 'react';
3
3
  import classNames from 'classnames';
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
- import { ChevronUp, CrossCircleFill, Cross, Check, Info as Info$1, Alert as Alert$1, ClockBorderless, NavigateAway, Briefcase, Person, ArrowRight, Download, ChevronLeft, ChevronRight, AlertCircleFill, AlertCircle, ArrowLeft, QuestionMarkCircle, Search, CrossCircle, ChevronDown, CheckCircleFill, ClockFill, Upload as Upload$2, Document, Plus, PlusCircle } from '@transferwise/icons';
5
+ import { ChevronUp, CrossCircleFill, Cross, Check, Info as Info$1, Alert as Alert$1, ClockBorderless, NavigateAway, Briefcase, Person, ArrowRight, Download, ChevronLeft, ChevronRight, AlertCircleFill, AlertCircle, ArrowLeft, QuestionMarkCircle, Search, CrossCircle, ChevronDown, CheckCircleFill, ClockFill, Upload as Upload$2, Document, Plus, PlusCircle, Bin } from '@transferwise/icons';
6
6
  import { defineMessages, useIntl, injectIntl, IntlProvider } from 'react-intl';
7
- import PropTypes from 'prop-types';
8
7
  import commonmark from 'commonmark';
9
8
  import { useTheme, ThemeProvider } from '@wise/components-theming';
10
9
  import { CSSTransition } from 'react-transition-group';
@@ -18,9 +17,9 @@ import { useFloating, useDismiss, useRole, useInteractions, FloatingPortal, Floa
18
17
  import { usePreventScroll } from '@react-aria/overlays';
19
18
  import { usePopper } from 'react-popper';
20
19
  import { Flag, Illustration } from '@wise/art';
20
+ import PropTypes from 'prop-types';
21
21
  import clamp$2 from 'lodash.clamp';
22
22
  import debounce from 'lodash.debounce';
23
- import requiredIf from 'react-required-if';
24
23
  import { Spring, animated } from '@react-spring/web';
25
24
 
26
25
  var Typography;
@@ -830,21 +829,14 @@ function stripNodes({
830
829
  }
831
830
 
832
831
  const allowList = [MarkdownNodeType.STRONG];
833
- const InlineMarkdown = props => {
832
+ function InlineMarkdown(props) {
834
833
  return /*#__PURE__*/jsx(Markdown, {
835
834
  ...props,
836
835
  as: "span",
837
836
  allowList: allowList,
838
837
  blockList: undefined
839
838
  });
840
- };
841
- InlineMarkdown.propTypes = {
842
- children: PropTypes.string.isRequired,
843
- className: PropTypes.string
844
- };
845
- InlineMarkdown.defaultProps = {
846
- className: undefined
847
- };
839
+ }
848
840
 
849
841
  var messages$c = defineMessages({
850
842
  opensInNewTab: {
@@ -1478,7 +1470,7 @@ const Button = /*#__PURE__*/forwardRef(({
1478
1470
  });
1479
1471
  });
1480
1472
 
1481
- const Card$2 = /*#__PURE__*/forwardRef(({
1473
+ const Card$1 = /*#__PURE__*/forwardRef(({
1482
1474
  className,
1483
1475
  children = null,
1484
1476
  id,
@@ -1511,7 +1503,7 @@ const Card$2 = /*#__PURE__*/forwardRef(({
1511
1503
  }), children]
1512
1504
  });
1513
1505
  });
1514
- Card$2.displayName = 'Card';
1506
+ Card$1.displayName = 'Card';
1515
1507
 
1516
1508
  function Display({
1517
1509
  as: Heading = 'h1',
@@ -1890,7 +1882,7 @@ const PromoCard = /*#__PURE__*/forwardRef(({
1890
1882
  useEffect(() => {
1891
1883
  setChecked(defaultChecked ?? isChecked ?? false);
1892
1884
  }, [defaultChecked, isChecked]);
1893
- return /*#__PURE__*/jsxs(Card$2, {
1885
+ return /*#__PURE__*/jsxs(Card$1, {
1894
1886
  ...commonProps,
1895
1887
  ...checkedProps,
1896
1888
  ...props,
@@ -2187,20 +2179,19 @@ const isVisible = (container, el) => {
2187
2179
  return elemLeft >= cScrollOffset && elemRight <= cScrollOffset + cWidth;
2188
2180
  };
2189
2181
 
2190
- const Card = /*#__PURE__*/forwardRef((props, reference) => {
2191
- const {
2192
- 'aria-label': ariaLabel,
2193
- as: Element,
2194
- isExpanded,
2195
- title,
2196
- details,
2197
- children,
2198
- onClick,
2199
- icon,
2200
- id,
2201
- className,
2202
- ...rest
2203
- } = props;
2182
+ const Card = /*#__PURE__*/forwardRef(function Card({
2183
+ 'aria-label': ariaLabel,
2184
+ as: Element = 'div',
2185
+ isExpanded,
2186
+ title,
2187
+ details,
2188
+ children,
2189
+ onClick,
2190
+ icon,
2191
+ id,
2192
+ className,
2193
+ 'data-testid': dataTestId
2194
+ }, reference) {
2204
2195
  const isOpen = !!(isExpanded && children);
2205
2196
  return /*#__PURE__*/jsxs(Element, {
2206
2197
  ref: reference,
@@ -2210,7 +2201,7 @@ const Card = /*#__PURE__*/forwardRef((props, reference) => {
2210
2201
  'np-card--has-icon': !!icon
2211
2202
  }),
2212
2203
  id: id,
2213
- "data-testid": rest['data-testid'],
2204
+ "data-testid": dataTestId,
2214
2205
  children: [/*#__PURE__*/jsx(Option$2, {
2215
2206
  "aria-label": ariaLabel,
2216
2207
  as: children ? 'button' : 'div',
@@ -2222,7 +2213,7 @@ const Card = /*#__PURE__*/forwardRef((props, reference) => {
2222
2213
  button: children && /*#__PURE__*/jsx(Chevron, {
2223
2214
  orientation: isOpen ? Position.TOP : Position.BOTTOM
2224
2215
  }),
2225
- onClick: () => children && onClick(!isExpanded)
2216
+ onClick: children ? () => onClick?.(!isExpanded) : undefined
2226
2217
  }), /*#__PURE__*/jsx("div", {
2227
2218
  className: classNames('np-card__divider', {
2228
2219
  'np-card__divider--expanded': isOpen
@@ -2235,31 +2226,6 @@ const Card = /*#__PURE__*/forwardRef((props, reference) => {
2235
2226
  })]
2236
2227
  });
2237
2228
  });
2238
- const hasChildren = ({
2239
- children
2240
- }) => children;
2241
- Card.propTypes = {
2242
- 'aria-label': PropTypes.string,
2243
- as: PropTypes.string,
2244
- isExpanded: requiredIf(PropTypes.bool, hasChildren),
2245
- title: PropTypes.node.isRequired,
2246
- details: PropTypes.node.isRequired,
2247
- onClick: requiredIf(PropTypes.func, hasChildren),
2248
- icon: PropTypes.node,
2249
- children: PropTypes.node,
2250
- id: PropTypes.string,
2251
- className: PropTypes.string,
2252
- 'data-testid': PropTypes.string
2253
- };
2254
- Card.defaultProps = {
2255
- 'aria-label': undefined,
2256
- as: 'div',
2257
- children: null,
2258
- id: null,
2259
- className: null,
2260
- 'data-testid': null
2261
- };
2262
- var Card$1 = Card;
2263
2229
 
2264
2230
  const CheckboxButton = /*#__PURE__*/forwardRef(({
2265
2231
  checked,
@@ -2283,9 +2249,8 @@ const CheckboxButton = /*#__PURE__*/forwardRef(({
2283
2249
  })
2284
2250
  })]
2285
2251
  }));
2286
- var CheckboxButton$1 = CheckboxButton;
2287
2252
 
2288
- const Checkbox = ({
2253
+ function Checkbox({
2289
2254
  id,
2290
2255
  checked,
2291
2256
  required,
@@ -2297,14 +2262,11 @@ const Checkbox = ({
2297
2262
  onChange,
2298
2263
  onFocus,
2299
2264
  onBlur
2300
- }) => {
2301
- const {
2302
- isModern
2303
- } = useTheme();
2265
+ }) {
2304
2266
  const classList = classNames('np-checkbox', {
2305
2267
  checkbox: true,
2306
2268
  'checkbox-lg': secondary,
2307
- disabled: isModern && disabled
2269
+ disabled
2308
2270
  }, className);
2309
2271
  const innerDisabled = disabled || readOnly;
2310
2272
  return /*#__PURE__*/jsx("div", {
@@ -2314,7 +2276,7 @@ const Checkbox = ({
2314
2276
  className: classNames({
2315
2277
  disabled
2316
2278
  }),
2317
- children: [/*#__PURE__*/jsx(CheckboxButton$1, {
2279
+ children: [/*#__PURE__*/jsx(CheckboxButton, {
2318
2280
  className: "p-r-2",
2319
2281
  checked: checked,
2320
2282
  disabled: innerDisabled,
@@ -2331,39 +2293,12 @@ const Checkbox = ({
2331
2293
  children: label
2332
2294
  }), secondary && /*#__PURE__*/jsx(Body, {
2333
2295
  as: "span",
2334
- className: classNames({
2335
- secondary: !isModern
2336
- }),
2337
2296
  children: secondary
2338
2297
  })]
2339
2298
  })]
2340
2299
  })
2341
2300
  });
2342
- };
2343
- Checkbox.propTypes = {
2344
- id: PropTypes.string,
2345
- checked: PropTypes.bool,
2346
- required: PropTypes.bool,
2347
- disabled: PropTypes.bool,
2348
- readOnly: PropTypes.bool,
2349
- label: PropTypes.node.isRequired,
2350
- secondary: PropTypes.string,
2351
- onFocus: PropTypes.func,
2352
- onChange: PropTypes.func.isRequired,
2353
- onBlur: PropTypes.func,
2354
- className: PropTypes.string
2355
- };
2356
- Checkbox.defaultProps = {
2357
- id: null,
2358
- checked: false,
2359
- required: false,
2360
- disabled: false,
2361
- readOnly: false,
2362
- secondary: null,
2363
- onFocus: null,
2364
- onBlur: null,
2365
- className: undefined
2366
- };
2301
+ }
2367
2302
 
2368
2303
  const CheckboxOption = /*#__PURE__*/forwardRef(({
2369
2304
  checked,
@@ -2375,7 +2310,7 @@ const CheckboxOption = /*#__PURE__*/forwardRef(({
2375
2310
  ...rest,
2376
2311
  ref: reference,
2377
2312
  disabled: disabled,
2378
- button: /*#__PURE__*/jsx(CheckboxButton$1, {
2313
+ button: /*#__PURE__*/jsx(CheckboxButton, {
2379
2314
  checked: checked,
2380
2315
  disabled: disabled,
2381
2316
  onChange: () => onChange?.(!checked)
@@ -2753,6 +2688,7 @@ const SlidingPanel = /*#__PURE__*/forwardRef(({
2753
2688
  slidingPanelPositionFixed,
2754
2689
  className,
2755
2690
  children,
2691
+ testId,
2756
2692
  ...rest
2757
2693
  }, reference) => {
2758
2694
  const localReference = useRef(null);
@@ -2773,20 +2709,21 @@ const SlidingPanel = /*#__PURE__*/forwardRef(({
2773
2709
  unmountOnExit: true
2774
2710
  }, /*#__PURE__*/jsx("div", {
2775
2711
  ref: localReference,
2712
+ "data-testid": testId,
2776
2713
  className: classNames('sliding-panel', `sliding-panel--open-${position}`, showSlidingPanelBorder && `sliding-panel--border-${position}`, slidingPanelPositionFixed && 'sliding-panel--fixed', className),
2777
2714
  children: children
2778
2715
  }));
2779
2716
  });
2780
2717
 
2781
- const Drawer = ({
2718
+ function Drawer({
2782
2719
  children,
2783
2720
  className,
2784
2721
  footerContent,
2785
2722
  headerTitle,
2786
2723
  onClose,
2787
- open,
2788
- position
2789
- }) => {
2724
+ open = false,
2725
+ position = 'right'
2726
+ }) {
2790
2727
  logActionRequiredIf('Drawer now expects `onClose`, and will soon make this prop required. Please update your usage to provide it.', !onClose);
2791
2728
  const {
2792
2729
  isMobile
@@ -2824,32 +2761,7 @@ const Drawer = ({
2824
2761
  })
2825
2762
  })
2826
2763
  });
2827
- };
2828
- Drawer.propTypes = {
2829
- /** The content to appear in the drawer body. */
2830
- children: PropTypes.node,
2831
- className: PropTypes.string,
2832
- /** The content to appear in the drawer footer. */
2833
- footerContent: PropTypes.node,
2834
- /** The content to appear in the drawer header. */
2835
- headerTitle: PropTypes.node,
2836
- /** The status of Drawer either open or not. */
2837
- open: PropTypes.bool,
2838
- /** The placement of Drawer on the screen either left or right. On mobile it will default to bottom. */
2839
- position: PropTypes.oneOf(['left', 'right', 'bottom']),
2840
- /** The action to perform on close click. */
2841
- onClose: PropTypes.func
2842
- };
2843
- Drawer.defaultProps = {
2844
- children: null,
2845
- className: undefined,
2846
- footerContent: null,
2847
- headerTitle: null,
2848
- onClose: null,
2849
- open: false,
2850
- position: Position.RIGHT
2851
- };
2852
- var Drawer$1 = Drawer;
2764
+ }
2853
2765
 
2854
2766
  const INITIAL_Y_POSITION = 0;
2855
2767
  const CONTENT_SCROLL_THRESHOLD = 1;
@@ -2979,7 +2891,7 @@ const BottomSheet$1 = props => {
2979
2891
  };
2980
2892
  }
2981
2893
  const is400Zoom = useMedia(`(max-width: ${Breakpoint.ZOOM_400}px)`);
2982
- return is400Zoom ? /*#__PURE__*/jsx(Drawer$1, {
2894
+ return is400Zoom ? /*#__PURE__*/jsx(Drawer, {
2983
2895
  open: props.open,
2984
2896
  className: props.className,
2985
2897
  onClose: close,
@@ -4650,7 +4562,7 @@ const NavigationOption = /*#__PURE__*/forwardRef(({
4650
4562
  });
4651
4563
  });
4652
4564
 
4653
- const Tile = ({
4565
+ function Tile({
4654
4566
  className,
4655
4567
  description,
4656
4568
  disabled,
@@ -4658,10 +4570,10 @@ const Tile = ({
4658
4570
  target,
4659
4571
  media,
4660
4572
  onClick,
4661
- size,
4573
+ size = 'md',
4662
4574
  title
4663
- }) => {
4664
- const isSmall = size === Size.SMALL;
4575
+ }) {
4576
+ const isSmall = size === 'sm';
4665
4577
  const Element = href ? 'a' : 'button';
4666
4578
  return /*#__PURE__*/jsxs(Element, {
4667
4579
  className: classNames('decision', 'flex-column', 'np-tile', 'text-no-decoration', 'text-xs-center', className, {
@@ -4670,12 +4582,12 @@ const Tile = ({
4670
4582
  }, disabled && 'disabled'),
4671
4583
  href: href,
4672
4584
  target: target,
4673
- onClick: disabled ? null : onClick,
4674
- onKeyDown: disabled ? null : ({
4585
+ onClick: disabled ? undefined : onClick,
4586
+ onKeyDown: disabled ? undefined : ({
4675
4587
  key
4676
4588
  }) => {
4677
4589
  if (key === 'Enter' || key === ' ') {
4678
- onClick();
4590
+ onClick?.();
4679
4591
  }
4680
4592
  },
4681
4593
  children: [/*#__PURE__*/jsx("div", {
@@ -4692,29 +4604,7 @@ const Tile = ({
4692
4604
  children: description
4693
4605
  }) : null]
4694
4606
  });
4695
- };
4696
- Tile.propTypes = {
4697
- /** Classes to apply to the Tile container */
4698
- className: PropTypes.string,
4699
- description: PropTypes.node,
4700
- disabled: PropTypes.bool,
4701
- href: PropTypes.string,
4702
- target: PropTypes.oneOf(['_self', '_blank', '_parent', '_top']),
4703
- /** Accepts only Avatar and images */
4704
- media: PropTypes.node.isRequired,
4705
- /** Function called onClick or onKeyDown */
4706
- onClick: PropTypes.func,
4707
- /** The size applied to Tile */
4708
- size: PropTypes.oneOf(['sm', 'md']),
4709
- title: PropTypes.node.isRequired
4710
- };
4711
- Tile.defaultProps = {
4712
- className: '',
4713
- description: null,
4714
- disabled: false,
4715
- size: Size.MEDIUM,
4716
- target: undefined
4717
- };
4607
+ }
4718
4608
 
4719
4609
  var DecisionPresentation;
4720
4610
  (function (DecisionPresentation) {
@@ -4806,9 +4696,9 @@ const Decision = ({
4806
4696
  return null;
4807
4697
  };
4808
4698
 
4809
- const isLayoutHorizontal = layout => [Layout.HORIZONTAL_LEFT_ALIGNED, Layout.HORIZONTAL_RIGHT_ALIGNED, Layout.HORIZONTAL_JUSTIFIED].includes(layout);
4699
+ const isLayoutHorizontal = layout => layout === Layout.HORIZONTAL_LEFT_ALIGNED || layout === Layout.HORIZONTAL_RIGHT_ALIGNED || layout === Layout.HORIZONTAL_JUSTIFIED;
4810
4700
  const getAlignmentClasses = (layout, action) => {
4811
- let classes = ['d-flex'];
4701
+ const classes = ['d-flex'];
4812
4702
  if (action) {
4813
4703
  if (isLayoutHorizontal(layout)) {
4814
4704
  classes.push('align-items-center');
@@ -4826,60 +4716,44 @@ const getAlignmentClasses = (layout, action) => {
4826
4716
  }
4827
4717
  return classes;
4828
4718
  };
4829
- const DefinitionList = ({
4830
- definitions,
4831
- layout,
4719
+ const defaultDefinitions = [];
4720
+ function DefinitionList({
4721
+ definitions = defaultDefinitions,
4722
+ layout = 'VERTICAL_TWO_COLUMN',
4832
4723
  muted
4833
- }) => /*#__PURE__*/jsx("dl", {
4834
- className: classNames('tw-definition-list d-flex ', {
4835
- 'text-muted': muted,
4836
- 'flex-column': layout === Layout.VERTICAL_ONE_COLUMN,
4837
- 'tw-definition-list--columns flex-column flex-row--sm': layout === Layout.VERTICAL_TWO_COLUMN,
4838
- 'tw-definition-list--horizontal flex-column': isLayoutHorizontal(layout)
4839
- }),
4840
- children: definitions.filter(definition => definition).map(({
4841
- action,
4842
- title,
4843
- value,
4844
- key
4845
- }) => /*#__PURE__*/jsxs("div", {
4846
- className: "tw-definition-list__item",
4847
- children: [/*#__PURE__*/jsx("dt", {
4848
- children: title
4849
- }), /*#__PURE__*/jsxs("dd", {
4850
- className: classNames(...getAlignmentClasses(layout, action)),
4851
- children: [/*#__PURE__*/jsx("div", {
4852
- children: value
4853
- }), action ? /*#__PURE__*/jsx("div", {
4854
- className: classNames(isLayoutHorizontal(layout) ? 'p-l-2' : 'p-x-2', 'tw-definition-list__action'),
4855
- children: /*#__PURE__*/jsx(ActionButton, {
4856
- className: "tw-definition-list__button",
4857
- onClick: action.onClick,
4858
- children: action.label
4859
- })
4860
- }) : null]
4861
- })]
4862
- }, key))
4863
- });
4864
- DefinitionList.propTypes = {
4865
- definitions: PropTypes.arrayOf(PropTypes.shape({
4866
- action: PropTypes.shape({
4867
- label: PropTypes.string.isRequired,
4868
- onClick: PropTypes.func
4724
+ }) {
4725
+ return /*#__PURE__*/jsx("dl", {
4726
+ className: classNames('tw-definition-list d-flex ', {
4727
+ 'text-muted': muted,
4728
+ 'flex-column': layout === Layout.VERTICAL_ONE_COLUMN,
4729
+ 'tw-definition-list--columns flex-column flex-row--sm': layout === Layout.VERTICAL_TWO_COLUMN,
4730
+ 'tw-definition-list--horizontal flex-column': isLayoutHorizontal(layout)
4869
4731
  }),
4870
- title: PropTypes.node.isRequired,
4871
- value: PropTypes.node.isRequired,
4872
- key: PropTypes.string.isRequired
4873
- })),
4874
- layout: PropTypes.oneOf(['VERTICAL_TWO_COLUMN', 'VERTICAL_ONE_COLUMN', 'HORIZONTAL_JUSTIFIED', 'HORIZONTAL_LEFT_ALIGNED', 'HORIZONTAL_RIGHT_ALIGNED']),
4875
- muted: PropTypes.bool
4876
- };
4877
- DefinitionList.defaultProps = {
4878
- definitions: [],
4879
- layout: Layout.VERTICAL_TWO_COLUMN,
4880
- muted: false
4881
- };
4882
- var DefinitionList$1 = DefinitionList;
4732
+ children: definitions.filter(definition => definition).map(({
4733
+ action,
4734
+ title,
4735
+ value,
4736
+ key
4737
+ }) => /*#__PURE__*/jsxs("div", {
4738
+ className: "tw-definition-list__item",
4739
+ children: [/*#__PURE__*/jsx("dt", {
4740
+ children: title
4741
+ }), /*#__PURE__*/jsxs("dd", {
4742
+ className: classNames(...getAlignmentClasses(layout, action)),
4743
+ children: [/*#__PURE__*/jsx("div", {
4744
+ children: value
4745
+ }), action ? /*#__PURE__*/jsx("div", {
4746
+ className: classNames(isLayoutHorizontal(layout) ? 'p-l-2' : 'p-x-2', 'tw-definition-list__action'),
4747
+ children: /*#__PURE__*/jsx(ActionButton, {
4748
+ className: "tw-definition-list__button",
4749
+ onClick: action.onClick,
4750
+ children: action.label
4751
+ })
4752
+ }) : null]
4753
+ })]
4754
+ }, key))
4755
+ });
4756
+ }
4883
4757
 
4884
4758
  const DropFade = ({
4885
4759
  children,
@@ -5068,14 +4942,6 @@ const FlowHeader = /*#__PURE__*/React.forwardRef(({
5068
4942
  });
5069
4943
  });
5070
4944
 
5071
- // TODO: consider to move this enum into component file once we migrate it on TypeScript or replace with some common enum
5072
- var LogoType;
5073
- (function (LogoType) {
5074
- LogoType["WISE"] = "WISE";
5075
- LogoType["WISE_BUSINESS"] = "WISE_BUSINESS";
5076
- LogoType["WISE_PLATFORM"] = "WISE_PLATFORM";
5077
- })(LogoType || (LogoType = {}));
5078
-
5079
4945
  var LogoFlagInverse = function LogoFlagInverse(props) {
5080
4946
  return /*#__PURE__*/jsx("svg", {
5081
4947
  ...props,
@@ -5208,15 +5074,26 @@ const svgPaths = {
5208
5074
  WISE_FLAG_PLATFORM: LogoFlagPlatform,
5209
5075
  WISE_FLAG_PLATFORM_INVERSE: LogoFlagPlatformInverse
5210
5076
  };
5211
- const Logo = ({
5077
+ var LogoType;
5078
+ (function (LogoType) {
5079
+ LogoType["WISE"] = "WISE";
5080
+ LogoType["WISE_BUSINESS"] = "WISE_BUSINESS";
5081
+ LogoType["WISE_PLATFORM"] = "WISE_PLATFORM";
5082
+ })(LogoType || (LogoType = {}));
5083
+ const labelByType = {
5084
+ WISE: 'Wise',
5085
+ WISE_BUSINESS: 'Wise Business',
5086
+ WISE_PLATFORM: 'Wise Platform'
5087
+ };
5088
+ function Logo({
5212
5089
  className,
5213
5090
  inverse,
5214
- type
5215
- }) => {
5216
- const LogoSm = svgPaths[`WISE_FLAG${type === LogoType.WISE_PLATFORM ? '_PLATFORM' : ''}${inverse ? '_INVERSE' : ''}`];
5091
+ type = 'WISE'
5092
+ }) {
5093
+ const LogoSm = svgPaths[`WISE_FLAG${type === 'WISE_PLATFORM' ? '_PLATFORM' : ''}${inverse ? '_INVERSE' : ''}`];
5217
5094
  const LogoMd = svgPaths[`${type}${inverse ? '_INVERSE' : ''}`];
5218
5095
  return /*#__PURE__*/jsxs("span", {
5219
- "aria-label": type === LogoType.WISE ? 'Wise' : 'Wise Business' | type === LogoType.WISE_PLATFORM ? 'Wise Platform' : 'Wise Business',
5096
+ "aria-label": labelByType[type],
5220
5097
  role: "img",
5221
5098
  className: classNames(className, 'np-logo'),
5222
5099
  children: [/*#__PURE__*/jsx(LogoSm, {
@@ -5225,21 +5102,7 @@ const Logo = ({
5225
5102
  className: "np-logo-svg np-logo-svg--size-md"
5226
5103
  })]
5227
5104
  });
5228
- };
5229
- Logo.propTypes = {
5230
- /** Extra classes applied to Logo */
5231
- className: PropTypes.string,
5232
- /** If true, will use dark colours for dark on light theme */
5233
- inverse: PropTypes.bool,
5234
- /** What type of logo to display */
5235
- type: PropTypes.oneOf(['WISE', 'WISE_BUSINESS', 'WISE_PLATFORM'])
5236
- };
5237
- Logo.defaultProps = {
5238
- className: undefined,
5239
- inverse: false,
5240
- type: LogoType.WISE
5241
- };
5242
- var Logo$1 = Logo;
5105
+ }
5243
5106
 
5244
5107
  /* eslint-disable @typescript-eslint/ban-ts-comment */
5245
5108
  const Tooltip = ({
@@ -5438,38 +5301,30 @@ const AnimatedLabel = ({
5438
5301
  });
5439
5302
  };
5440
5303
 
5441
- const BackButton = ({
5304
+ function BackButton({
5442
5305
  className,
5443
5306
  onClick,
5444
5307
  'aria-label': ariaLabel
5445
- }) => /*#__PURE__*/jsx(Avatar, {
5446
- type: AvatarType.ICON,
5447
- size: 40,
5448
- children: /*#__PURE__*/jsx("button", {
5449
- type: "button",
5450
- "aria-label": ariaLabel,
5451
- className: classNames('np-back-button', 'btn-unstyled', className),
5452
- onClick: onClick,
5453
- children: /*#__PURE__*/jsx(ArrowLeft, {
5454
- size: 24
5308
+ }) {
5309
+ return /*#__PURE__*/jsx(Avatar, {
5310
+ type: AvatarType.ICON,
5311
+ size: 40,
5312
+ children: /*#__PURE__*/jsx("button", {
5313
+ type: "button",
5314
+ "aria-label": ariaLabel,
5315
+ className: classNames('np-back-button', 'btn-unstyled', className),
5316
+ onClick: onClick,
5317
+ children: /*#__PURE__*/jsx(ArrowLeft, {
5318
+ size: 24
5319
+ })
5455
5320
  })
5456
- })
5457
- });
5458
- BackButton.propTypes = {
5459
- 'aria-label': PropTypes.string.isRequired,
5460
- className: PropTypes.string,
5461
- label: PropTypes.element,
5462
- onClick: PropTypes.func
5463
- };
5464
- BackButton.defaultProps = {
5465
- className: undefined,
5466
- label: undefined
5467
- };
5321
+ });
5322
+ }
5468
5323
 
5469
5324
  const FlowNavigation = ({
5470
5325
  activeStep = 0,
5471
5326
  avatar,
5472
- logo = /*#__PURE__*/jsx(Logo$1, {}),
5327
+ logo = /*#__PURE__*/jsx(Logo, {}),
5473
5328
  done = false,
5474
5329
  onClose,
5475
5330
  onGoBack,
@@ -5621,7 +5476,7 @@ const Modal = ({
5621
5476
  const noDivider = checkSpecialClasses('no-divider');
5622
5477
  const contentReference = useRef(null);
5623
5478
  const titleId = useId();
5624
- return !isMedium ? /*#__PURE__*/jsx(Drawer$1, {
5479
+ return !isMedium ? /*#__PURE__*/jsx(Drawer, {
5625
5480
  open: open,
5626
5481
  headerTitle: title,
5627
5482
  footerContent: footer,
@@ -7871,11 +7726,12 @@ const Nudge = ({
7871
7726
  });
7872
7727
  };
7873
7728
 
7874
- const OverlayHeader = ({
7729
+ const defaultLogo = /*#__PURE__*/jsx(Logo, {});
7730
+ function OverlayHeader({
7875
7731
  avatar,
7876
7732
  onClose,
7877
- logo
7878
- }) => {
7733
+ logo = defaultLogo
7734
+ }) {
7879
7735
  const closeButton = onClose && /*#__PURE__*/jsx(CloseButton, {
7880
7736
  size: Size.LARGE,
7881
7737
  onClick: onClose
@@ -7893,20 +7749,7 @@ const OverlayHeader = ({
7893
7749
  })
7894
7750
  })
7895
7751
  });
7896
- };
7897
- OverlayHeader.defaultProps = {
7898
- avatar: null,
7899
- logo: /*#__PURE__*/jsx(Logo$1, {}),
7900
- onClose: null
7901
- };
7902
- OverlayHeader.propTypes = {
7903
- /** An Avatar */
7904
- avatar: PropTypes.element,
7905
- logo: PropTypes.node,
7906
- /** Function called when the close is clicked */
7907
- onClose: PropTypes.func
7908
- };
7909
- var OverlayHeader$1 = OverlayHeader;
7752
+ }
7910
7753
 
7911
7754
  var messages$3 = defineMessages({
7912
7755
  selectInputPlaceholder: {
@@ -10449,7 +10292,7 @@ function Select({
10449
10292
  , {
10450
10293
  className: classNames(s('tw-icon'), s('tw-chevron-up-icon'), s('tw-chevron'), s('bottom'), s('np-select-chevron'))
10451
10294
  })]
10452
- }), isMobile ? isSearchEnabled ? /*#__PURE__*/jsx(Drawer$1, {
10295
+ }), isMobile ? isSearchEnabled ? /*#__PURE__*/jsx(Drawer, {
10453
10296
  open: open,
10454
10297
  headerTitle: searchPlaceholder || formatMessage(messages$2.searchPlaceholder),
10455
10298
  onClose: handleCloseOptions,
@@ -10587,15 +10430,13 @@ class Snackbar extends Component {
10587
10430
  const {
10588
10431
  action,
10589
10432
  text,
10590
- theme,
10591
10433
  timestamp
10592
10434
  } = this.props;
10593
10435
  if (!previousProps.text) {
10594
10436
  this.setState({
10595
10437
  visible: true,
10596
10438
  action,
10597
- text,
10598
- theme
10439
+ text
10599
10440
  }, () => {
10600
10441
  this.setLeaveTimeout();
10601
10442
  });
@@ -10609,8 +10450,7 @@ class Snackbar extends Component {
10609
10450
  this.setState({
10610
10451
  visible: true,
10611
10452
  action,
10612
- text,
10613
- theme
10453
+ text
10614
10454
  });
10615
10455
  this.setLeaveTimeout();
10616
10456
  }, CSS_TRANSITION_DURATION);
@@ -10619,8 +10459,7 @@ class Snackbar extends Component {
10619
10459
  this.setState({
10620
10460
  visible: true,
10621
10461
  action,
10622
- text,
10623
- theme
10462
+ text
10624
10463
  });
10625
10464
  this.setLeaveTimeout();
10626
10465
  }
@@ -10630,7 +10469,6 @@ class Snackbar extends Component {
10630
10469
  const {
10631
10470
  action,
10632
10471
  text,
10633
- theme = Theme.LIGHT,
10634
10472
  visible
10635
10473
  } = this.state;
10636
10474
  const {
@@ -10651,7 +10489,7 @@ class Snackbar extends Component {
10651
10489
  children: /*#__PURE__*/jsxs(Body, {
10652
10490
  ref: this.bodyRef,
10653
10491
  as: "span",
10654
- className: `snackbar__text snackbar__text--${theme}`,
10492
+ className: "snackbar__text",
10655
10493
  "aria-live": "polite",
10656
10494
  children: [text, action ? /*#__PURE__*/jsx(ActionButton, {
10657
10495
  className: "snackbar__text__action",
@@ -10710,19 +10548,21 @@ function SnackbarProvider({
10710
10548
  });
10711
10549
  }
10712
10550
 
10713
- function Sticky({
10551
+ const Sticky = ({
10552
+ children,
10714
10553
  open = true,
10715
- position = 'bottom',
10716
- children
10717
- }) {
10554
+ position = Position.BOTTOM,
10555
+ testId
10556
+ }) => {
10718
10557
  return /*#__PURE__*/jsx(SlidingPanel, {
10558
+ testId: testId,
10719
10559
  open: open,
10720
10560
  position: position,
10721
10561
  slidingPanelPositionFixed: true,
10722
10562
  showSlidingPanelBorder: true,
10723
10563
  children: children
10724
10564
  });
10725
- }
10565
+ };
10726
10566
 
10727
10567
  var messages$1 = defineMessages({
10728
10568
  statusNotDone: {
@@ -13141,13 +12981,8 @@ const UploadButton = ({
13141
12981
  maxFiles,
13142
12982
  onChange,
13143
12983
  id = DEFAULT_FILE_INPUT_ID,
13144
- uploadButtonTitle,
13145
- multipleFileInputWithFilesAdded
12984
+ uploadButtonTitle
13146
12985
  }) => {
13147
- const {
13148
- isModern
13149
- } = useTheme();
13150
- useDirection();
13151
12986
  const {
13152
12987
  formatMessage
13153
12988
  } = useIntl();
@@ -13210,7 +13045,7 @@ const UploadButton = ({
13210
13045
  function getAcceptedTypes() {
13211
13046
  const areAllFilesAllowed = getFileTypesDescription() === '*';
13212
13047
  if (areAllFilesAllowed) {
13213
- return {}; //file input by default allows all files
13048
+ return {}; // file input by default allows all files
13214
13049
  }
13215
13050
  if (Array.isArray(fileTypes)) {
13216
13051
  return {
@@ -13222,17 +13057,13 @@ const UploadButton = ({
13222
13057
  };
13223
13058
  }
13224
13059
  function renderDescription() {
13225
- return /*#__PURE__*/jsx(Fragment, {
13226
- children: /*#__PURE__*/jsxs(Body, {
13227
- className: classNames({
13228
- 'text-primary': !disabled,
13229
- small: !isModern,
13230
- 'font-weight-normal': !isModern
13231
- }),
13232
- children: [getDescription(), maxFiles && /*#__PURE__*/jsxs(Fragment, {
13233
- children: [/*#__PURE__*/jsx("br", {}), `Maximum ${maxFiles} files.`]
13234
- })]
13235
- })
13060
+ return /*#__PURE__*/jsxs(Body, {
13061
+ className: classNames({
13062
+ 'text-primary': !disabled
13063
+ }),
13064
+ children: [getDescription(), maxFiles && /*#__PURE__*/jsxs(Fragment, {
13065
+ children: [/*#__PURE__*/jsx("br", {}), `Maximum ${maxFiles} files.`]
13066
+ })]
13236
13067
  });
13237
13068
  }
13238
13069
  function renderButtonTitle() {
@@ -13266,14 +13097,11 @@ const UploadButton = ({
13266
13097
  onChange: filesSelected
13267
13098
  }), /*#__PURE__*/jsx("label", {
13268
13099
  htmlFor: id,
13269
- className: classNames('btn', 'np-upload-accent', 'np-upload-button', {
13270
- disabled,
13271
- 'np-upload-input--square-top': multipleFileInputWithFilesAdded
13272
- }),
13100
+ className: classNames('btn', 'np-upload-button'),
13273
13101
  children: /*#__PURE__*/jsxs("div", {
13274
13102
  className: "media",
13275
13103
  children: [/*#__PURE__*/jsx("div", {
13276
- className: "np-upload-icon media-left",
13104
+ className: "np-upload-icon media-middle media-left",
13277
13105
  children: /*#__PURE__*/jsx(Upload$2, {
13278
13106
  size: 24,
13279
13107
  className: "text-link"
@@ -13289,9 +13117,7 @@ const UploadButton = ({
13289
13117
  })]
13290
13118
  })
13291
13119
  }), isDropping && /*#__PURE__*/jsxs("div", {
13292
- className: classNames('droppable-card', 'droppable-dropping-card', 'droppable-card-content', {
13293
- 'np-upload-input--square-top': multipleFileInputWithFilesAdded
13294
- }),
13120
+ className: classNames('droppable-card', 'droppable-dropping-card', 'droppable-card-content'),
13295
13121
  children: [/*#__PURE__*/jsx(PlusCircle, {
13296
13122
  className: "m-x-1",
13297
13123
  size: 24
@@ -13338,7 +13164,7 @@ const UploadItemBody = ({
13338
13164
  href: url,
13339
13165
  target: "_blank",
13340
13166
  rel: "noopener noreferrer",
13341
- className: singleFileUpload ? 'np-upload-item--single-file' : '',
13167
+ className: singleFileUpload ? 'np-upload-item--single-file' : 'np-upload-item--link',
13342
13168
  onClick: onDownload,
13343
13169
  children: children
13344
13170
  });
@@ -13363,20 +13189,15 @@ const UploadItem = ({
13363
13189
  status,
13364
13190
  filename,
13365
13191
  error,
13192
+ errors,
13366
13193
  url
13367
13194
  } = file;
13368
- const {
13369
- isModern
13370
- } = useTheme();
13371
13195
  const isSucceeded = [Status.SUCCEEDED, undefined].includes(status) && !!url;
13372
13196
  const getIcon = () => {
13373
- if (error || status === Status.FAILED) {
13374
- return isModern ? /*#__PURE__*/jsx(StatusIcon, {
13197
+ if (error || errors?.length || status === Status.FAILED) {
13198
+ return /*#__PURE__*/jsx(StatusIcon, {
13375
13199
  size: Size.SMALL,
13376
13200
  sentiment: Sentiment.NEGATIVE
13377
- }) : /*#__PURE__*/jsx(AlertCircle, {
13378
- size: 24,
13379
- className: "text-negative"
13380
13201
  });
13381
13202
  }
13382
13203
  let processIndicator;
@@ -13391,31 +13212,37 @@ const UploadItem = ({
13391
13212
  case Status.SUCCEEDED:
13392
13213
  case Status.DONE:
13393
13214
  default:
13394
- processIndicator = isModern ? /*#__PURE__*/jsx(StatusIcon, {
13215
+ processIndicator = /*#__PURE__*/jsx(StatusIcon, {
13395
13216
  size: Size.SMALL,
13396
13217
  sentiment: Sentiment.POSITIVE
13397
- }) : /*#__PURE__*/jsx(ProcessIndicator, {
13398
- size: Size.EXTRA_SMALL,
13399
- status: Status.SUCCEEDED
13400
13218
  });
13401
13219
  }
13402
- if (isModern) {
13403
- return processIndicator;
13220
+ return processIndicator;
13221
+ };
13222
+ const getErrorMessage = error => typeof error === 'object' ? error.message : error || formatMessage(MESSAGES.uploadingFailed);
13223
+ const getMultipleErrors = errors => {
13224
+ if (!errors?.length) {
13225
+ return null;
13404
13226
  }
13405
- return /*#__PURE__*/jsx("span", {
13406
- style: {
13407
- transform: 'scale(0.8335)'
13408
- },
13409
- children: processIndicator
13410
- }); // Scale down ProcessIndicator to be 20px*20px to match `icons`
13227
+ if (errors?.length === 1) {
13228
+ return getErrorMessage(errors[0]);
13229
+ }
13230
+ return /*#__PURE__*/jsx("ul", {
13231
+ className: "np-upload-input-errors m-b-0",
13232
+ children: errors.map((error, index) => {
13233
+ // eslint-disable-next-line react/no-array-index-key
13234
+ return /*#__PURE__*/jsx("li", {
13235
+ children: getErrorMessage(error)
13236
+ }, index);
13237
+ })
13238
+ });
13411
13239
  };
13412
- const getErrorMessage = () => typeof error === 'object' ? error.message : error || formatMessage(MESSAGES.uploadingFailed);
13413
13240
  const getDescription = () => {
13414
- if (error || status === Status.FAILED) {
13241
+ if (error || errors?.length || status === Status.FAILED) {
13415
13242
  return /*#__PURE__*/jsx(Body, {
13416
13243
  type: Typography.BODY_DEFAULT_BOLD,
13417
13244
  className: "text-negative",
13418
- children: getErrorMessage()
13245
+ children: errors?.length ? getMultipleErrors(errors) : getErrorMessage(error)
13419
13246
  });
13420
13247
  }
13421
13248
  switch (status) {
@@ -13485,7 +13312,7 @@ const UploadItem = ({
13485
13312
  }),
13486
13313
  type: "button",
13487
13314
  onClick: () => onDelete(),
13488
- children: /*#__PURE__*/jsx(CrossCircleFill, {
13315
+ children: /*#__PURE__*/jsx(Bin, {
13489
13316
  size: 16
13490
13317
  })
13491
13318
  })]
@@ -13522,9 +13349,6 @@ const UploadInput = ({
13522
13349
  sizeLimitErrorMessage,
13523
13350
  uploadButtonTitle
13524
13351
  }) => {
13525
- const {
13526
- isModern
13527
- } = useTheme();
13528
13352
  const [markedFileForDelete, setMarkedFileForDelete] = useState(null);
13529
13353
  const [mounted, setMounted] = useState(false);
13530
13354
  const {
@@ -13682,7 +13506,7 @@ const UploadInput = ({
13682
13506
  return /*#__PURE__*/jsxs(Fragment, {
13683
13507
  children: [/*#__PURE__*/jsxs("div", {
13684
13508
  className: classNames('np-upload-input', className, {
13685
- disabled: isModern && disabled
13509
+ disabled
13686
13510
  }),
13687
13511
  children: [uploadedFiles.map(file => /*#__PURE__*/jsx(UploadItem, {
13688
13512
  file: file,
@@ -13699,7 +13523,6 @@ const UploadInput = ({
13699
13523
  sizeLimit: sizeLimit,
13700
13524
  description: description,
13701
13525
  maxFiles: maxFiles,
13702
- multipleFileInputWithFilesAdded: multiple && uploadedFiles.length > 0,
13703
13526
  onChange: addFiles
13704
13527
  })]
13705
13528
  }), /*#__PURE__*/jsx(Modal, {
@@ -14746,5 +14569,5 @@ const translations = {
14746
14569
  'zh-HK': zhHK
14747
14570
  };
14748
14571
 
14749
- export { Accordion, ActionButton, ActionOption, Alert, AlertArrowPosition, Avatar, AvatarType, AvatarWrapper, Badge, Card$2 as BaseCard, Body, BottomSheet$1 as BottomSheet, Breakpoint, Button, Card$1 as Card, Carousel, Checkbox, CheckboxButton$1 as CheckboxButton, CheckboxOption, Chevron, Chip, Chips, CircularButton, ControlType, CriticalCommsBanner, DEFAULT_LANG, DEFAULT_LOCALE, DateInput, DateLookup$1 as DateLookup, DateMode, Decision, DecisionPresentation, DecisionType, DefinitionList$1 as DefinitionList, Dimmer$1 as Dimmer, Direction, DirectionProvider, Display, Drawer$1 as Drawer, DropFade, Emphasis, Field, FileType, FlowNavigation, Header, Image, Info, InfoPresentation, InlineAlert, Input, InputGroup, InputWithDisplayFormat, InstructionsList, Label, LanguageProvider, Layout, Link, ListItem$1 as ListItem, Loader, Logo$1 as Logo, LogoType, Markdown, MarkdownNodeType, Modal, Money, MoneyInput$1 as MoneyInput, MonthFormat, NavigationOption, NavigationOptionList as NavigationOptionsList, Nudge, Option$2 as Option, OverlayHeader$1 as OverlayHeader, PhoneNumberInput, Popover$1 as Popover, Position, Priority, ProcessIndicator, ProfileType, Progress, ProgressBar, PromoCard$1 as PromoCard, PromoCardGroup$1 as PromoCardGroup, Provider, RTL_LANGUAGES, Radio, RadioGroup, RadioOption, SUPPORTED_LANGUAGES, Scroll, SearchInput, Section, SegmentedControl, Select, SelectInput, SelectInputOptionContent, SelectInputTriggerButton, Sentiment, Size, SlidingPanel, SnackbarConsumer, SnackbarContext, SnackbarPortal, SnackbarProvider, Status, StatusIcon, Stepper, Sticky, Summary, Switch, SwitchOption, Tabs$1 as Tabs, TextArea, TextareaWithDisplayFormat, Theme, Title, Tooltip, Type, Typeahead$1 as Typeahead, Typography, Upload$1 as Upload, UploadInput, UploadStep, Variant, Width, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale, isBrowser, isServerSide, translations, useDirection, useLayout, useScreenSize, useSnackbar };
14572
+ export { Accordion, ActionButton, ActionOption, Alert, AlertArrowPosition, Avatar, AvatarType, AvatarWrapper, Badge, Card$1 as BaseCard, Body, BottomSheet$1 as BottomSheet, Breakpoint, Button, Card, Carousel, Checkbox, CheckboxButton, CheckboxOption, Chevron, Chip, Chips, CircularButton, ControlType, CriticalCommsBanner, DEFAULT_LANG, DEFAULT_LOCALE, DateInput, DateLookup$1 as DateLookup, DateMode, Decision, DecisionPresentation, DecisionType, DefinitionList, Dimmer$1 as Dimmer, Direction, DirectionProvider, Display, Drawer, DropFade, Emphasis, Field, FileType, FlowNavigation, Header, Image, Info, InfoPresentation, InlineAlert, Input, InputGroup, InputWithDisplayFormat, InstructionsList, Label, LanguageProvider, Layout, Link, ListItem$1 as ListItem, Loader, Logo, LogoType, Markdown, MarkdownNodeType, Modal, Money, MoneyInput$1 as MoneyInput, MonthFormat, NavigationOption, NavigationOptionList as NavigationOptionsList, Nudge, Option$2 as Option, OverlayHeader, PhoneNumberInput, Popover$1 as Popover, Position, Priority, ProcessIndicator, ProfileType, Progress, ProgressBar, PromoCard$1 as PromoCard, PromoCardGroup$1 as PromoCardGroup, Provider, RTL_LANGUAGES, Radio, RadioGroup, RadioOption, SUPPORTED_LANGUAGES, Scroll, SearchInput, Section, SegmentedControl, Select, SelectInput, SelectInputOptionContent, SelectInputTriggerButton, Sentiment, Size, SlidingPanel, SnackbarConsumer, SnackbarContext, SnackbarPortal, SnackbarProvider, Status, StatusIcon, Stepper, Sticky, Summary, Switch, SwitchOption, Tabs$1 as Tabs, TextArea, TextareaWithDisplayFormat, Theme, Title, Tooltip, Type, Typeahead$1 as Typeahead, Typography, Upload$1 as Upload, UploadInput, UploadStep, Variant, Width, adjustLocale, getCountryFromLocale, getDirectionFromLocale, getLangFromLocale, isBrowser, isServerSide, translations, useDirection, useLayout, useScreenSize, useSnackbar };
14750
14573
  //# sourceMappingURL=index.mjs.map