@transferwise/components 0.0.0-experimental-a0f3d2d → 0.0.0-experimental-693e956

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 (1065) hide show
  1. package/build/index.js +14846 -283
  2. package/build/index.js.map +1 -1
  3. package/build/index.mjs +14767 -120
  4. package/build/index.mjs.map +1 -1
  5. package/build/main.css +10 -0
  6. package/build/styles/main.css +10 -0
  7. package/build/styles/uploadInput/UploadInput.css +10 -0
  8. package/build/types/uploadInput/types.d.ts +9 -1
  9. package/build/types/uploadInput/types.d.ts.map +1 -1
  10. package/build/types/uploadInput/uploadItem/UploadItem.d.ts.map +1 -1
  11. package/package.json +4 -5
  12. package/src/main.css +10 -0
  13. package/src/uploadInput/UploadInput.css +10 -0
  14. package/src/uploadInput/UploadInput.less +11 -0
  15. package/src/uploadInput/UploadInput.story.tsx +50 -7
  16. package/src/uploadInput/types.ts +11 -1
  17. package/src/uploadInput/uploadItem/UploadItem.tsx +25 -6
  18. package/build/accordion/Accordion.js +0 -40
  19. package/build/accordion/Accordion.js.map +0 -1
  20. package/build/accordion/Accordion.mjs +0 -38
  21. package/build/accordion/Accordion.mjs.map +0 -1
  22. package/build/accordion/AccordionItem/AccordionItem.js +0 -70
  23. package/build/accordion/AccordionItem/AccordionItem.js.map +0 -1
  24. package/build/accordion/AccordionItem/AccordionItem.mjs +0 -64
  25. package/build/accordion/AccordionItem/AccordionItem.mjs.map +0 -1
  26. package/build/actionButton/ActionButton.js +0 -31
  27. package/build/actionButton/ActionButton.js.map +0 -1
  28. package/build/actionButton/ActionButton.mjs +0 -25
  29. package/build/actionButton/ActionButton.mjs.map +0 -1
  30. package/build/actionOption/ActionOption.js +0 -61
  31. package/build/actionOption/ActionOption.js.map +0 -1
  32. package/build/actionOption/ActionOption.mjs +0 -55
  33. package/build/actionOption/ActionOption.mjs.map +0 -1
  34. package/build/alert/Alert.js +0 -159
  35. package/build/alert/Alert.js.map +0 -1
  36. package/build/alert/Alert.mjs +0 -151
  37. package/build/alert/Alert.mjs.map +0 -1
  38. package/build/alert/inlineMarkdown/InlineMarkdown.js +0 -30
  39. package/build/alert/inlineMarkdown/InlineMarkdown.js.map +0 -1
  40. package/build/alert/inlineMarkdown/InlineMarkdown.mjs +0 -24
  41. package/build/alert/inlineMarkdown/InlineMarkdown.mjs.map +0 -1
  42. package/build/avatar/Avatar.js +0 -54
  43. package/build/avatar/Avatar.js.map +0 -1
  44. package/build/avatar/Avatar.mjs +0 -48
  45. package/build/avatar/Avatar.mjs.map +0 -1
  46. package/build/avatar/avatarTypes.js +0 -11
  47. package/build/avatar/avatarTypes.js.map +0 -1
  48. package/build/avatar/avatarTypes.mjs +0 -11
  49. package/build/avatar/avatarTypes.mjs.map +0 -1
  50. package/build/avatar/colors/colors.js +0 -31
  51. package/build/avatar/colors/colors.js.map +0 -1
  52. package/build/avatar/colors/colors.mjs +0 -29
  53. package/build/avatar/colors/colors.mjs.map +0 -1
  54. package/build/avatarWrapper/AvatarWrapper.js +0 -120
  55. package/build/avatarWrapper/AvatarWrapper.js.map +0 -1
  56. package/build/avatarWrapper/AvatarWrapper.mjs +0 -118
  57. package/build/avatarWrapper/AvatarWrapper.mjs.map +0 -1
  58. package/build/avatarWrapper/index.js +0 -8
  59. package/build/avatarWrapper/index.js.map +0 -1
  60. package/build/avatarWrapper/index.mjs +0 -6
  61. package/build/avatarWrapper/index.mjs.map +0 -1
  62. package/build/badge/Badge.js +0 -36
  63. package/build/badge/Badge.js.map +0 -1
  64. package/build/badge/Badge.mjs +0 -30
  65. package/build/badge/Badge.mjs.map +0 -1
  66. package/build/body/Body.js +0 -31
  67. package/build/body/Body.js.map +0 -1
  68. package/build/body/Body.mjs +0 -25
  69. package/build/body/Body.mjs.map +0 -1
  70. package/build/button/Button.js +0 -86
  71. package/build/button/Button.js.map +0 -1
  72. package/build/button/Button.messages.js +0 -12
  73. package/build/button/Button.messages.js.map +0 -1
  74. package/build/button/Button.messages.mjs +0 -10
  75. package/build/button/Button.messages.mjs.map +0 -1
  76. package/build/button/Button.mjs +0 -80
  77. package/build/button/Button.mjs.map +0 -1
  78. package/build/button/classMap.js +0 -18
  79. package/build/button/classMap.js.map +0 -1
  80. package/build/button/classMap.mjs +0 -15
  81. package/build/button/classMap.mjs.map +0 -1
  82. package/build/button/legacyUtils/legacyUtils.js +0 -54
  83. package/build/button/legacyUtils/legacyUtils.js.map +0 -1
  84. package/build/button/legacyUtils/legacyUtils.mjs +0 -50
  85. package/build/button/legacyUtils/legacyUtils.mjs.map +0 -1
  86. package/build/card/Card.js +0 -95
  87. package/build/card/Card.js.map +0 -1
  88. package/build/card/Card.mjs +0 -87
  89. package/build/card/Card.mjs.map +0 -1
  90. package/build/carousel/Carousel.js +0 -282
  91. package/build/carousel/Carousel.js.map +0 -1
  92. package/build/carousel/Carousel.mjs +0 -276
  93. package/build/carousel/Carousel.mjs.map +0 -1
  94. package/build/checkbox/Checkbox.js +0 -97
  95. package/build/checkbox/Checkbox.js.map +0 -1
  96. package/build/checkbox/Checkbox.mjs +0 -90
  97. package/build/checkbox/Checkbox.mjs.map +0 -1
  98. package/build/checkbox/index.js +0 -8
  99. package/build/checkbox/index.js.map +0 -1
  100. package/build/checkbox/index.mjs +0 -6
  101. package/build/checkbox/index.mjs.map +0 -1
  102. package/build/checkboxButton/CheckboxButton.js +0 -36
  103. package/build/checkboxButton/CheckboxButton.js.map +0 -1
  104. package/build/checkboxButton/CheckboxButton.mjs +0 -30
  105. package/build/checkboxButton/CheckboxButton.mjs.map +0 -1
  106. package/build/checkboxOption/CheckboxOption.js +0 -27
  107. package/build/checkboxOption/CheckboxOption.js.map +0 -1
  108. package/build/checkboxOption/CheckboxOption.mjs +0 -25
  109. package/build/checkboxOption/CheckboxOption.mjs.map +0 -1
  110. package/build/chevron/Chevron.js +0 -60
  111. package/build/chevron/Chevron.js.map +0 -1
  112. package/build/chevron/Chevron.mjs +0 -54
  113. package/build/chevron/Chevron.mjs.map +0 -1
  114. package/build/chips/Chip.js +0 -71
  115. package/build/chips/Chip.js.map +0 -1
  116. package/build/chips/Chip.mjs +0 -65
  117. package/build/chips/Chip.mjs.map +0 -1
  118. package/build/chips/Chips.js +0 -62
  119. package/build/chips/Chips.js.map +0 -1
  120. package/build/chips/Chips.messages.js +0 -12
  121. package/build/chips/Chips.messages.js.map +0 -1
  122. package/build/chips/Chips.messages.mjs +0 -10
  123. package/build/chips/Chips.messages.mjs.map +0 -1
  124. package/build/chips/Chips.mjs +0 -56
  125. package/build/chips/Chips.mjs.map +0 -1
  126. package/build/circularButton/CircularButton.js +0 -46
  127. package/build/circularButton/CircularButton.js.map +0 -1
  128. package/build/circularButton/CircularButton.mjs +0 -40
  129. package/build/circularButton/CircularButton.mjs.map +0 -1
  130. package/build/common/DOMOperations/DOMOperations.js +0 -24
  131. package/build/common/DOMOperations/DOMOperations.js.map +0 -1
  132. package/build/common/DOMOperations/DOMOperations.mjs +0 -21
  133. package/build/common/DOMOperations/DOMOperations.mjs.map +0 -1
  134. package/build/common/Option/Option.js +0 -71
  135. package/build/common/Option/Option.js.map +0 -1
  136. package/build/common/Option/Option.mjs +0 -65
  137. package/build/common/Option/Option.mjs.map +0 -1
  138. package/build/common/RadioButton/RadioButton.js +0 -46
  139. package/build/common/RadioButton/RadioButton.js.map +0 -1
  140. package/build/common/RadioButton/RadioButton.mjs +0 -40
  141. package/build/common/RadioButton/RadioButton.mjs.map +0 -1
  142. package/build/common/action/Action.js +0 -37
  143. package/build/common/action/Action.js.map +0 -1
  144. package/build/common/action/Action.mjs +0 -31
  145. package/build/common/action/Action.mjs.map +0 -1
  146. package/build/common/bottomSheet/BottomSheet.js +0 -194
  147. package/build/common/bottomSheet/BottomSheet.js.map +0 -1
  148. package/build/common/bottomSheet/BottomSheet.mjs +0 -188
  149. package/build/common/bottomSheet/BottomSheet.mjs.map +0 -1
  150. package/build/common/card/Card.js +0 -49
  151. package/build/common/card/Card.js.map +0 -1
  152. package/build/common/card/Card.mjs +0 -43
  153. package/build/common/card/Card.mjs.map +0 -1
  154. package/build/common/closeButton/CloseButton.js +0 -46
  155. package/build/common/closeButton/CloseButton.js.map +0 -1
  156. package/build/common/closeButton/CloseButton.messages.js +0 -12
  157. package/build/common/closeButton/CloseButton.messages.js.map +0 -1
  158. package/build/common/closeButton/CloseButton.messages.mjs +0 -10
  159. package/build/common/closeButton/CloseButton.messages.mjs.map +0 -1
  160. package/build/common/closeButton/CloseButton.mjs +0 -40
  161. package/build/common/closeButton/CloseButton.mjs.map +0 -1
  162. package/build/common/dateUtils/getDayNames/getDayNames.js +0 -18
  163. package/build/common/dateUtils/getDayNames/getDayNames.js.map +0 -1
  164. package/build/common/dateUtils/getDayNames/getDayNames.mjs +0 -16
  165. package/build/common/dateUtils/getDayNames/getDayNames.mjs.map +0 -1
  166. package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.js +0 -8
  167. package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.js.map +0 -1
  168. package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.mjs +0 -5
  169. package/build/common/dateUtils/getFormatForLocale/getFormatForLocale.mjs.map +0 -1
  170. package/build/common/dateUtils/getMonthNames/getMonthNames.js +0 -19
  171. package/build/common/dateUtils/getMonthNames/getMonthNames.js.map +0 -1
  172. package/build/common/dateUtils/getMonthNames/getMonthNames.mjs +0 -17
  173. package/build/common/dateUtils/getMonthNames/getMonthNames.mjs.map +0 -1
  174. package/build/common/dateUtils/isDateValid/isDateValid.js +0 -17
  175. package/build/common/dateUtils/isDateValid/isDateValid.js.map +0 -1
  176. package/build/common/dateUtils/isDateValid/isDateValid.mjs +0 -14
  177. package/build/common/dateUtils/isDateValid/isDateValid.mjs.map +0 -1
  178. package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js +0 -8
  179. package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.js.map +0 -1
  180. package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.mjs +0 -6
  181. package/build/common/dateUtils/isMonthAndYearFormat/isMonthAndYearFormat.mjs.map +0 -1
  182. package/build/common/dateUtils/isWithinRange/isWithinRange.js +0 -8
  183. package/build/common/dateUtils/isWithinRange/isWithinRange.js.map +0 -1
  184. package/build/common/dateUtils/isWithinRange/isWithinRange.mjs +0 -6
  185. package/build/common/dateUtils/isWithinRange/isWithinRange.mjs.map +0 -1
  186. package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js +0 -15
  187. package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.js.map +0 -1
  188. package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs +0 -13
  189. package/build/common/dateUtils/moveToWithinRange/moveToWithinRange.mjs.map +0 -1
  190. package/build/common/deviceDetection/deviceDetection.js +0 -11
  191. package/build/common/deviceDetection/deviceDetection.js.map +0 -1
  192. package/build/common/deviceDetection/deviceDetection.mjs +0 -9
  193. package/build/common/deviceDetection/deviceDetection.mjs.map +0 -1
  194. package/build/common/direction.js +0 -9
  195. package/build/common/direction.js.map +0 -1
  196. package/build/common/direction.mjs +0 -9
  197. package/build/common/direction.mjs.map +0 -1
  198. package/build/common/domHelpers/documentIosClick.js +0 -39
  199. package/build/common/domHelpers/documentIosClick.js.map +0 -1
  200. package/build/common/domHelpers/documentIosClick.mjs +0 -33
  201. package/build/common/domHelpers/documentIosClick.mjs.map +0 -1
  202. package/build/common/fileType.js +0 -10
  203. package/build/common/fileType.js.map +0 -1
  204. package/build/common/fileType.mjs +0 -10
  205. package/build/common/fileType.mjs.map +0 -1
  206. package/build/common/flowHeader/FlowHeader.js +0 -53
  207. package/build/common/flowHeader/FlowHeader.js.map +0 -1
  208. package/build/common/flowHeader/FlowHeader.mjs +0 -28
  209. package/build/common/flowHeader/FlowHeader.mjs.map +0 -1
  210. package/build/common/focusBoundary/FocusBoundary.js +0 -28
  211. package/build/common/focusBoundary/FocusBoundary.js.map +0 -1
  212. package/build/common/focusBoundary/FocusBoundary.mjs +0 -26
  213. package/build/common/focusBoundary/FocusBoundary.mjs.map +0 -1
  214. package/build/common/historyNavigator/historyNavigator.js +0 -39
  215. package/build/common/historyNavigator/historyNavigator.js.map +0 -1
  216. package/build/common/historyNavigator/historyNavigator.mjs +0 -37
  217. package/build/common/historyNavigator/historyNavigator.mjs.map +0 -1
  218. package/build/common/hooks/useConditionalListener/useConditionalListener.js +0 -25
  219. package/build/common/hooks/useConditionalListener/useConditionalListener.js.map +0 -1
  220. package/build/common/hooks/useConditionalListener/useConditionalListener.mjs +0 -23
  221. package/build/common/hooks/useConditionalListener/useConditionalListener.mjs.map +0 -1
  222. package/build/common/hooks/useDirection/useDirection.js +0 -15
  223. package/build/common/hooks/useDirection/useDirection.js.map +0 -1
  224. package/build/common/hooks/useDirection/useDirection.mjs +0 -13
  225. package/build/common/hooks/useDirection/useDirection.mjs.map +0 -1
  226. package/build/common/hooks/useEffectEvent.js +0 -22
  227. package/build/common/hooks/useEffectEvent.js.map +0 -1
  228. package/build/common/hooks/useEffectEvent.mjs +0 -20
  229. package/build/common/hooks/useEffectEvent.mjs.map +0 -1
  230. package/build/common/hooks/useHasIntersected/useHasIntersected.js +0 -64
  231. package/build/common/hooks/useHasIntersected/useHasIntersected.js.map +0 -1
  232. package/build/common/hooks/useHasIntersected/useHasIntersected.mjs +0 -62
  233. package/build/common/hooks/useHasIntersected/useHasIntersected.mjs.map +0 -1
  234. package/build/common/hooks/useLayout/useLayout.js +0 -26
  235. package/build/common/hooks/useLayout/useLayout.js.map +0 -1
  236. package/build/common/hooks/useLayout/useLayout.mjs +0 -24
  237. package/build/common/hooks/useLayout/useLayout.mjs.map +0 -1
  238. package/build/common/hooks/useMedia.js +0 -16
  239. package/build/common/hooks/useMedia.js.map +0 -1
  240. package/build/common/hooks/useMedia.mjs +0 -14
  241. package/build/common/hooks/useMedia.mjs.map +0 -1
  242. package/build/common/hooks/useResizeObserver.js +0 -25
  243. package/build/common/hooks/useResizeObserver.js.map +0 -1
  244. package/build/common/hooks/useResizeObserver.mjs +0 -23
  245. package/build/common/hooks/useResizeObserver.mjs.map +0 -1
  246. package/build/common/hooks/useScreenSize.js +0 -10
  247. package/build/common/hooks/useScreenSize.js.map +0 -1
  248. package/build/common/hooks/useScreenSize.mjs +0 -8
  249. package/build/common/hooks/useScreenSize.mjs.map +0 -1
  250. package/build/common/locale/index.js +0 -85
  251. package/build/common/locale/index.js.map +0 -1
  252. package/build/common/locale/index.mjs +0 -76
  253. package/build/common/locale/index.mjs.map +0 -1
  254. package/build/common/panel/Panel.js +0 -133
  255. package/build/common/panel/Panel.js.map +0 -1
  256. package/build/common/panel/Panel.mjs +0 -127
  257. package/build/common/panel/Panel.mjs.map +0 -1
  258. package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js +0 -21
  259. package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.js.map +0 -1
  260. package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs +0 -19
  261. package/build/common/polymorphicWithOverrides/PolymorphicWithOverrides.mjs.map +0 -1
  262. package/build/common/preventScroll/PreventScroll.js +0 -11
  263. package/build/common/preventScroll/PreventScroll.js.map +0 -1
  264. package/build/common/preventScroll/PreventScroll.mjs +0 -9
  265. package/build/common/preventScroll/PreventScroll.mjs.map +0 -1
  266. package/build/common/propsValues/breakpoint.js +0 -12
  267. package/build/common/propsValues/breakpoint.js.map +0 -1
  268. package/build/common/propsValues/breakpoint.mjs +0 -12
  269. package/build/common/propsValues/breakpoint.mjs.map +0 -1
  270. package/build/common/propsValues/control.js +0 -15
  271. package/build/common/propsValues/control.js.map +0 -1
  272. package/build/common/propsValues/control.mjs +0 -15
  273. package/build/common/propsValues/control.mjs.map +0 -1
  274. package/build/common/propsValues/dateMode.js +0 -8
  275. package/build/common/propsValues/dateMode.js.map +0 -1
  276. package/build/common/propsValues/dateMode.mjs +0 -8
  277. package/build/common/propsValues/dateMode.mjs.map +0 -1
  278. package/build/common/propsValues/layouts.js +0 -13
  279. package/build/common/propsValues/layouts.js.map +0 -1
  280. package/build/common/propsValues/layouts.mjs +0 -13
  281. package/build/common/propsValues/layouts.mjs.map +0 -1
  282. package/build/common/propsValues/markdownNodeType.js +0 -22
  283. package/build/common/propsValues/markdownNodeType.js.map +0 -1
  284. package/build/common/propsValues/markdownNodeType.mjs +0 -22
  285. package/build/common/propsValues/markdownNodeType.mjs.map +0 -1
  286. package/build/common/propsValues/monthFormat.js +0 -8
  287. package/build/common/propsValues/monthFormat.js.map +0 -1
  288. package/build/common/propsValues/monthFormat.mjs +0 -8
  289. package/build/common/propsValues/monthFormat.mjs.map +0 -1
  290. package/build/common/propsValues/position.js +0 -15
  291. package/build/common/propsValues/position.js.map +0 -1
  292. package/build/common/propsValues/position.mjs +0 -15
  293. package/build/common/propsValues/position.mjs.map +0 -1
  294. package/build/common/propsValues/profileType.js +0 -8
  295. package/build/common/propsValues/profileType.js.map +0 -1
  296. package/build/common/propsValues/profileType.mjs +0 -8
  297. package/build/common/propsValues/profileType.mjs.map +0 -1
  298. package/build/common/propsValues/scroll.js +0 -8
  299. package/build/common/propsValues/scroll.js.map +0 -1
  300. package/build/common/propsValues/scroll.mjs +0 -8
  301. package/build/common/propsValues/scroll.mjs.map +0 -1
  302. package/build/common/propsValues/sentiment.js +0 -23
  303. package/build/common/propsValues/sentiment.js.map +0 -1
  304. package/build/common/propsValues/sentiment.mjs +0 -23
  305. package/build/common/propsValues/sentiment.mjs.map +0 -1
  306. package/build/common/propsValues/size.js +0 -11
  307. package/build/common/propsValues/size.js.map +0 -1
  308. package/build/common/propsValues/size.mjs +0 -11
  309. package/build/common/propsValues/size.mjs.map +0 -1
  310. package/build/common/propsValues/status.js +0 -13
  311. package/build/common/propsValues/status.js.map +0 -1
  312. package/build/common/propsValues/status.mjs +0 -13
  313. package/build/common/propsValues/status.mjs.map +0 -1
  314. package/build/common/propsValues/type.js +0 -17
  315. package/build/common/propsValues/type.js.map +0 -1
  316. package/build/common/propsValues/type.mjs +0 -17
  317. package/build/common/propsValues/type.mjs.map +0 -1
  318. package/build/common/propsValues/typography.js +0 -25
  319. package/build/common/propsValues/typography.js.map +0 -1
  320. package/build/common/propsValues/typography.mjs +0 -25
  321. package/build/common/propsValues/typography.mjs.map +0 -1
  322. package/build/common/propsValues/variant.js +0 -8
  323. package/build/common/propsValues/variant.js.map +0 -1
  324. package/build/common/propsValues/variant.mjs +0 -8
  325. package/build/common/propsValues/variant.mjs.map +0 -1
  326. package/build/common/propsValues/width.js +0 -8
  327. package/build/common/propsValues/width.js.map +0 -1
  328. package/build/common/propsValues/width.mjs +0 -8
  329. package/build/common/propsValues/width.mjs.map +0 -1
  330. package/build/common/responsivePanel/ResponsivePanel.js +0 -45
  331. package/build/common/responsivePanel/ResponsivePanel.js.map +0 -1
  332. package/build/common/responsivePanel/ResponsivePanel.mjs +0 -43
  333. package/build/common/responsivePanel/ResponsivePanel.mjs.map +0 -1
  334. package/build/common/textFormat/formatWithPattern/formatWithPattern.js +0 -27
  335. package/build/common/textFormat/formatWithPattern/formatWithPattern.js.map +0 -1
  336. package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs +0 -25
  337. package/build/common/textFormat/formatWithPattern/formatWithPattern.mjs.map +0 -1
  338. package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js +0 -8
  339. package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.js.map +0 -1
  340. package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.mjs +0 -6
  341. package/build/common/textFormat/getCountOfSymbolsInSelection/getCountOfSymbolsInSelection.mjs.map +0 -1
  342. package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js +0 -30
  343. package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.js.map +0 -1
  344. package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs +0 -28
  345. package/build/common/textFormat/getCursorPositionAfterKeystroke/getCursorPositionAfterKeystroke.mjs.map +0 -1
  346. package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js +0 -32
  347. package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.js.map +0 -1
  348. package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs +0 -29
  349. package/build/common/textFormat/getDistanceToSymbol/getDistanceToSymbol.mjs.map +0 -1
  350. package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js +0 -18
  351. package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.js.map +0 -1
  352. package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs +0 -16
  353. package/build/common/textFormat/getSymbolsInPatternWithPosition/getSymbolsInPatternWithPosition.mjs.map +0 -1
  354. package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js +0 -14
  355. package/build/common/textFormat/unformatWithPattern/unformatWithPattern.js.map +0 -1
  356. package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs +0 -12
  357. package/build/common/textFormat/unformatWithPattern/unformatWithPattern.mjs.map +0 -1
  358. package/build/common/theme.js +0 -13
  359. package/build/common/theme.js.map +0 -1
  360. package/build/common/theme.mjs +0 -13
  361. package/build/common/theme.mjs.map +0 -1
  362. package/build/criticalBanner/CriticalCommsBanner.js +0 -77
  363. package/build/criticalBanner/CriticalCommsBanner.js.map +0 -1
  364. package/build/criticalBanner/CriticalCommsBanner.mjs +0 -71
  365. package/build/criticalBanner/CriticalCommsBanner.mjs.map +0 -1
  366. package/build/dateInput/DateInput.js +0 -339
  367. package/build/dateInput/DateInput.js.map +0 -1
  368. package/build/dateInput/DateInput.messages.js +0 -24
  369. package/build/dateInput/DateInput.messages.js.map +0 -1
  370. package/build/dateInput/DateInput.messages.mjs +0 -22
  371. package/build/dateInput/DateInput.messages.mjs.map +0 -1
  372. package/build/dateInput/DateInput.mjs +0 -333
  373. package/build/dateInput/DateInput.mjs.map +0 -1
  374. package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js +0 -9
  375. package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.js.map +0 -1
  376. package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs +0 -7
  377. package/build/dateInput/utils/convertToLocalMidnight/convertToLocalMidnight.mjs.map +0 -1
  378. package/build/dateLookup/DateLookup.js +0 -339
  379. package/build/dateLookup/DateLookup.js.map +0 -1
  380. package/build/dateLookup/DateLookup.messages.js +0 -33
  381. package/build/dateLookup/DateLookup.messages.js.map +0 -1
  382. package/build/dateLookup/DateLookup.messages.mjs +0 -31
  383. package/build/dateLookup/DateLookup.messages.mjs.map +0 -1
  384. package/build/dateLookup/DateLookup.mjs +0 -333
  385. package/build/dateLookup/DateLookup.mjs.map +0 -1
  386. package/build/dateLookup/dateHeader/DateHeader.js +0 -73
  387. package/build/dateLookup/dateHeader/DateHeader.js.map +0 -1
  388. package/build/dateLookup/dateHeader/DateHeader.mjs +0 -67
  389. package/build/dateLookup/dateHeader/DateHeader.mjs.map +0 -1
  390. package/build/dateLookup/dateTrigger/DateTrigger.js +0 -70
  391. package/build/dateLookup/dateTrigger/DateTrigger.js.map +0 -1
  392. package/build/dateLookup/dateTrigger/DateTrigger.messages.js +0 -12
  393. package/build/dateLookup/dateTrigger/DateTrigger.messages.js.map +0 -1
  394. package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs +0 -10
  395. package/build/dateLookup/dateTrigger/DateTrigger.messages.mjs.map +0 -1
  396. package/build/dateLookup/dateTrigger/DateTrigger.mjs +0 -68
  397. package/build/dateLookup/dateTrigger/DateTrigger.mjs.map +0 -1
  398. package/build/dateLookup/dayCalendar/DayCalendar.js +0 -71
  399. package/build/dateLookup/dayCalendar/DayCalendar.js.map +0 -1
  400. package/build/dateLookup/dayCalendar/DayCalendar.mjs +0 -69
  401. package/build/dateLookup/dayCalendar/DayCalendar.mjs.map +0 -1
  402. package/build/dateLookup/dayCalendar/table/DayCalendarTable.js +0 -150
  403. package/build/dateLookup/dayCalendar/table/DayCalendarTable.js.map +0 -1
  404. package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs +0 -148
  405. package/build/dateLookup/dayCalendar/table/DayCalendarTable.mjs.map +0 -1
  406. package/build/dateLookup/getFocusableTime/getFocusableTime.js +0 -8
  407. package/build/dateLookup/getFocusableTime/getFocusableTime.js.map +0 -1
  408. package/build/dateLookup/getFocusableTime/getFocusableTime.mjs +0 -6
  409. package/build/dateLookup/getFocusableTime/getFocusableTime.mjs.map +0 -1
  410. package/build/dateLookup/getStartOfDay/getStartOfDay.js +0 -15
  411. package/build/dateLookup/getStartOfDay/getStartOfDay.js.map +0 -1
  412. package/build/dateLookup/getStartOfDay/getStartOfDay.mjs +0 -13
  413. package/build/dateLookup/getStartOfDay/getStartOfDay.mjs.map +0 -1
  414. package/build/dateLookup/monthCalendar/MonthCalendar.js +0 -64
  415. package/build/dateLookup/monthCalendar/MonthCalendar.js.map +0 -1
  416. package/build/dateLookup/monthCalendar/MonthCalendar.mjs +0 -62
  417. package/build/dateLookup/monthCalendar/MonthCalendar.mjs.map +0 -1
  418. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js +0 -83
  419. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.js.map +0 -1
  420. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs +0 -81
  421. package/build/dateLookup/monthCalendar/table/MonthCalendarTable.mjs.map +0 -1
  422. package/build/dateLookup/tableLink/TableLink.js +0 -65
  423. package/build/dateLookup/tableLink/TableLink.js.map +0 -1
  424. package/build/dateLookup/tableLink/TableLink.mjs +0 -59
  425. package/build/dateLookup/tableLink/TableLink.mjs.map +0 -1
  426. package/build/dateLookup/yearCalendar/YearCalendar.js +0 -57
  427. package/build/dateLookup/yearCalendar/YearCalendar.js.map +0 -1
  428. package/build/dateLookup/yearCalendar/YearCalendar.mjs +0 -55
  429. package/build/dateLookup/yearCalendar/YearCalendar.mjs.map +0 -1
  430. package/build/dateLookup/yearCalendar/table/YearCalendarTable.js +0 -83
  431. package/build/dateLookup/yearCalendar/table/YearCalendarTable.js.map +0 -1
  432. package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs +0 -81
  433. package/build/dateLookup/yearCalendar/table/YearCalendarTable.mjs.map +0 -1
  434. package/build/decision/Decision.js +0 -108
  435. package/build/decision/Decision.js.map +0 -1
  436. package/build/decision/Decision.mjs +0 -100
  437. package/build/decision/Decision.mjs.map +0 -1
  438. package/build/definitionList/DefinitionList.js +0 -90
  439. package/build/definitionList/DefinitionList.js.map +0 -1
  440. package/build/definitionList/DefinitionList.mjs +0 -83
  441. package/build/definitionList/DefinitionList.mjs.map +0 -1
  442. package/build/dimmer/Dimmer.js +0 -184
  443. package/build/dimmer/Dimmer.js.map +0 -1
  444. package/build/dimmer/Dimmer.mjs +0 -172
  445. package/build/dimmer/Dimmer.mjs.map +0 -1
  446. package/build/dimmer/dimmerManager/DimmerManager.js +0 -36
  447. package/build/dimmer/dimmerManager/DimmerManager.js.map +0 -1
  448. package/build/dimmer/dimmerManager/DimmerManager.mjs +0 -34
  449. package/build/dimmer/dimmerManager/DimmerManager.mjs.map +0 -1
  450. package/build/display/Display.js +0 -26
  451. package/build/display/Display.js.map +0 -1
  452. package/build/display/Display.mjs +0 -20
  453. package/build/display/Display.mjs.map +0 -1
  454. package/build/drawer/Drawer.js +0 -95
  455. package/build/drawer/Drawer.js.map +0 -1
  456. package/build/drawer/Drawer.mjs +0 -88
  457. package/build/drawer/Drawer.mjs.map +0 -1
  458. package/build/dropFade/DropFade.js +0 -48
  459. package/build/dropFade/DropFade.js.map +0 -1
  460. package/build/dropFade/DropFade.mjs +0 -42
  461. package/build/dropFade/DropFade.mjs.map +0 -1
  462. package/build/emphasis/Emphasis.js +0 -24
  463. package/build/emphasis/Emphasis.js.map +0 -1
  464. package/build/emphasis/Emphasis.mjs +0 -22
  465. package/build/emphasis/Emphasis.mjs.map +0 -1
  466. package/build/emphasis/EmphasisHtmlTransformer.js +0 -39
  467. package/build/emphasis/EmphasisHtmlTransformer.js.map +0 -1
  468. package/build/emphasis/EmphasisHtmlTransformer.mjs +0 -37
  469. package/build/emphasis/EmphasisHtmlTransformer.mjs.map +0 -1
  470. package/build/field/Field.js +0 -63
  471. package/build/field/Field.js.map +0 -1
  472. package/build/field/Field.mjs +0 -57
  473. package/build/field/Field.mjs.map +0 -1
  474. package/build/flowNavigation/FlowNavigation.js +0 -80
  475. package/build/flowNavigation/FlowNavigation.js.map +0 -1
  476. package/build/flowNavigation/FlowNavigation.messages.js +0 -12
  477. package/build/flowNavigation/FlowNavigation.messages.js.map +0 -1
  478. package/build/flowNavigation/FlowNavigation.messages.mjs +0 -10
  479. package/build/flowNavigation/FlowNavigation.messages.mjs.map +0 -1
  480. package/build/flowNavigation/FlowNavigation.mjs +0 -74
  481. package/build/flowNavigation/FlowNavigation.mjs.map +0 -1
  482. package/build/flowNavigation/animatedLabel/AnimatedLabel.js +0 -34
  483. package/build/flowNavigation/animatedLabel/AnimatedLabel.js.map +0 -1
  484. package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs +0 -28
  485. package/build/flowNavigation/animatedLabel/AnimatedLabel.mjs.map +0 -1
  486. package/build/flowNavigation/backButton/BackButton.js +0 -44
  487. package/build/flowNavigation/backButton/BackButton.js.map +0 -1
  488. package/build/flowNavigation/backButton/BackButton.mjs +0 -37
  489. package/build/flowNavigation/backButton/BackButton.mjs.map +0 -1
  490. package/build/flowNavigation/backButton/index.js +0 -8
  491. package/build/flowNavigation/backButton/index.js.map +0 -1
  492. package/build/flowNavigation/backButton/index.mjs +0 -6
  493. package/build/flowNavigation/backButton/index.mjs.map +0 -1
  494. package/build/header/Header.js +0 -87
  495. package/build/header/Header.js.map +0 -1
  496. package/build/header/Header.mjs +0 -78
  497. package/build/header/Header.mjs.map +0 -1
  498. package/build/i18n/cs.json.js +0 -61
  499. package/build/i18n/cs.json.js.map +0 -1
  500. package/build/i18n/cs.json.mjs +0 -59
  501. package/build/i18n/cs.json.mjs.map +0 -1
  502. package/build/i18n/de.json.js +0 -62
  503. package/build/i18n/de.json.js.map +0 -1
  504. package/build/i18n/de.json.mjs +0 -60
  505. package/build/i18n/de.json.mjs.map +0 -1
  506. package/build/i18n/en.json.js +0 -62
  507. package/build/i18n/en.json.js.map +0 -1
  508. package/build/i18n/en.json.mjs +0 -60
  509. package/build/i18n/en.json.mjs.map +0 -1
  510. package/build/i18n/es.json.js +0 -62
  511. package/build/i18n/es.json.js.map +0 -1
  512. package/build/i18n/es.json.mjs +0 -60
  513. package/build/i18n/es.json.mjs.map +0 -1
  514. package/build/i18n/fr.json.js +0 -62
  515. package/build/i18n/fr.json.js.map +0 -1
  516. package/build/i18n/fr.json.mjs +0 -60
  517. package/build/i18n/fr.json.mjs.map +0 -1
  518. package/build/i18n/hu.json.js +0 -62
  519. package/build/i18n/hu.json.js.map +0 -1
  520. package/build/i18n/hu.json.mjs +0 -60
  521. package/build/i18n/hu.json.mjs.map +0 -1
  522. package/build/i18n/id.json.js +0 -62
  523. package/build/i18n/id.json.js.map +0 -1
  524. package/build/i18n/id.json.mjs +0 -60
  525. package/build/i18n/id.json.mjs.map +0 -1
  526. package/build/i18n/index.js +0 -45
  527. package/build/i18n/index.js.map +0 -1
  528. package/build/i18n/index.mjs +0 -43
  529. package/build/i18n/index.mjs.map +0 -1
  530. package/build/i18n/it.json.js +0 -62
  531. package/build/i18n/it.json.js.map +0 -1
  532. package/build/i18n/it.json.mjs +0 -60
  533. package/build/i18n/it.json.mjs.map +0 -1
  534. package/build/i18n/ja.json.js +0 -62
  535. package/build/i18n/ja.json.js.map +0 -1
  536. package/build/i18n/ja.json.mjs +0 -60
  537. package/build/i18n/ja.json.mjs.map +0 -1
  538. package/build/i18n/pl.json.js +0 -62
  539. package/build/i18n/pl.json.js.map +0 -1
  540. package/build/i18n/pl.json.mjs +0 -60
  541. package/build/i18n/pl.json.mjs.map +0 -1
  542. package/build/i18n/pt.json.js +0 -62
  543. package/build/i18n/pt.json.js.map +0 -1
  544. package/build/i18n/pt.json.mjs +0 -60
  545. package/build/i18n/pt.json.mjs.map +0 -1
  546. package/build/i18n/ro.json.js +0 -62
  547. package/build/i18n/ro.json.js.map +0 -1
  548. package/build/i18n/ro.json.mjs +0 -60
  549. package/build/i18n/ro.json.mjs.map +0 -1
  550. package/build/i18n/ru.json.js +0 -62
  551. package/build/i18n/ru.json.js.map +0 -1
  552. package/build/i18n/ru.json.mjs +0 -60
  553. package/build/i18n/ru.json.mjs.map +0 -1
  554. package/build/i18n/th.json.js +0 -62
  555. package/build/i18n/th.json.js.map +0 -1
  556. package/build/i18n/th.json.mjs +0 -60
  557. package/build/i18n/th.json.mjs.map +0 -1
  558. package/build/i18n/tr.json.js +0 -62
  559. package/build/i18n/tr.json.js.map +0 -1
  560. package/build/i18n/tr.json.mjs +0 -60
  561. package/build/i18n/tr.json.mjs.map +0 -1
  562. package/build/i18n/uk.json.js +0 -61
  563. package/build/i18n/uk.json.js.map +0 -1
  564. package/build/i18n/uk.json.mjs +0 -59
  565. package/build/i18n/uk.json.mjs.map +0 -1
  566. package/build/i18n/zh-CN.json.js +0 -62
  567. package/build/i18n/zh-CN.json.js.map +0 -1
  568. package/build/i18n/zh-CN.json.mjs +0 -60
  569. package/build/i18n/zh-CN.json.mjs.map +0 -1
  570. package/build/i18n/zh-HK.json.js +0 -62
  571. package/build/i18n/zh-HK.json.js.map +0 -1
  572. package/build/i18n/zh-HK.json.mjs +0 -60
  573. package/build/i18n/zh-HK.json.mjs.map +0 -1
  574. package/build/image/Image.js +0 -55
  575. package/build/image/Image.js.map +0 -1
  576. package/build/image/Image.mjs +0 -46
  577. package/build/image/Image.mjs.map +0 -1
  578. package/build/info/Info.js +0 -80
  579. package/build/info/Info.js.map +0 -1
  580. package/build/info/Info.messages.js +0 -12
  581. package/build/info/Info.messages.js.map +0 -1
  582. package/build/info/Info.messages.mjs +0 -10
  583. package/build/info/Info.messages.mjs.map +0 -1
  584. package/build/info/Info.mjs +0 -74
  585. package/build/info/Info.mjs.map +0 -1
  586. package/build/info/infoPresentations.js +0 -9
  587. package/build/info/infoPresentations.js.map +0 -1
  588. package/build/info/infoPresentations.mjs +0 -9
  589. package/build/info/infoPresentations.mjs.map +0 -1
  590. package/build/inlineAlert/InlineAlert.js +0 -29
  591. package/build/inlineAlert/InlineAlert.js.map +0 -1
  592. package/build/inlineAlert/InlineAlert.mjs +0 -23
  593. package/build/inlineAlert/InlineAlert.mjs.map +0 -1
  594. package/build/inputWithDisplayFormat/InputWithDisplayFormat.js +0 -15
  595. package/build/inputWithDisplayFormat/InputWithDisplayFormat.js.map +0 -1
  596. package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs +0 -13
  597. package/build/inputWithDisplayFormat/InputWithDisplayFormat.mjs.map +0 -1
  598. package/build/inputs/Input.js +0 -39
  599. package/build/inputs/Input.js.map +0 -1
  600. package/build/inputs/Input.mjs +0 -33
  601. package/build/inputs/Input.mjs.map +0 -1
  602. package/build/inputs/InputGroup.js +0 -95
  603. package/build/inputs/InputGroup.js.map +0 -1
  604. package/build/inputs/InputGroup.mjs +0 -88
  605. package/build/inputs/InputGroup.mjs.map +0 -1
  606. package/build/inputs/SearchInput.js +0 -38
  607. package/build/inputs/SearchInput.js.map +0 -1
  608. package/build/inputs/SearchInput.mjs +0 -36
  609. package/build/inputs/SearchInput.mjs.map +0 -1
  610. package/build/inputs/SelectInput.js +0 -583
  611. package/build/inputs/SelectInput.js.map +0 -1
  612. package/build/inputs/SelectInput.messages.js +0 -12
  613. package/build/inputs/SelectInput.messages.js.map +0 -1
  614. package/build/inputs/SelectInput.messages.mjs +0 -10
  615. package/build/inputs/SelectInput.messages.mjs.map +0 -1
  616. package/build/inputs/SelectInput.mjs +0 -574
  617. package/build/inputs/SelectInput.mjs.map +0 -1
  618. package/build/inputs/TextArea.js +0 -27
  619. package/build/inputs/TextArea.js.map +0 -1
  620. package/build/inputs/TextArea.mjs +0 -21
  621. package/build/inputs/TextArea.mjs.map +0 -1
  622. package/build/inputs/_BottomSheet.js +0 -123
  623. package/build/inputs/_BottomSheet.js.map +0 -1
  624. package/build/inputs/_BottomSheet.mjs +0 -117
  625. package/build/inputs/_BottomSheet.mjs.map +0 -1
  626. package/build/inputs/_ButtonInput.js +0 -37
  627. package/build/inputs/_ButtonInput.js.map +0 -1
  628. package/build/inputs/_ButtonInput.mjs +0 -31
  629. package/build/inputs/_ButtonInput.mjs.map +0 -1
  630. package/build/inputs/_Popover.js +0 -120
  631. package/build/inputs/_Popover.js.map +0 -1
  632. package/build/inputs/_Popover.mjs +0 -114
  633. package/build/inputs/_Popover.mjs.map +0 -1
  634. package/build/inputs/_common.js +0 -23
  635. package/build/inputs/_common.js.map +0 -1
  636. package/build/inputs/_common.mjs +0 -17
  637. package/build/inputs/_common.mjs.map +0 -1
  638. package/build/inputs/contexts.js +0 -42
  639. package/build/inputs/contexts.js.map +0 -1
  640. package/build/inputs/contexts.mjs +0 -35
  641. package/build/inputs/contexts.mjs.map +0 -1
  642. package/build/instructionsList/InstructionsList.js +0 -66
  643. package/build/instructionsList/InstructionsList.js.map +0 -1
  644. package/build/instructionsList/InstructionsList.mjs +0 -60
  645. package/build/instructionsList/InstructionsList.mjs.map +0 -1
  646. package/build/label/Label.js +0 -25
  647. package/build/label/Label.js.map +0 -1
  648. package/build/label/Label.mjs +0 -19
  649. package/build/label/Label.mjs.map +0 -1
  650. package/build/link/Link.js +0 -42
  651. package/build/link/Link.js.map +0 -1
  652. package/build/link/Link.messages.js +0 -12
  653. package/build/link/Link.messages.js.map +0 -1
  654. package/build/link/Link.messages.mjs +0 -10
  655. package/build/link/Link.messages.mjs.map +0 -1
  656. package/build/link/Link.mjs +0 -36
  657. package/build/link/Link.mjs.map +0 -1
  658. package/build/listItem/ListItem.js +0 -50
  659. package/build/listItem/ListItem.js.map +0 -1
  660. package/build/listItem/ListItem.mjs +0 -44
  661. package/build/listItem/ListItem.mjs.map +0 -1
  662. package/build/loader/Loader.js +0 -68
  663. package/build/loader/Loader.js.map +0 -1
  664. package/build/loader/Loader.mjs +0 -62
  665. package/build/loader/Loader.mjs.map +0 -1
  666. package/build/logo/Logo.js +0 -180
  667. package/build/logo/Logo.js.map +0 -1
  668. package/build/logo/Logo.mjs +0 -173
  669. package/build/logo/Logo.mjs.map +0 -1
  670. package/build/logo/logoTypes.js +0 -10
  671. package/build/logo/logoTypes.js.map +0 -1
  672. package/build/logo/logoTypes.mjs +0 -10
  673. package/build/logo/logoTypes.mjs.map +0 -1
  674. package/build/markdown/Markdown.js +0 -75
  675. package/build/markdown/Markdown.js.map +0 -1
  676. package/build/markdown/Markdown.mjs +0 -69
  677. package/build/markdown/Markdown.mjs.map +0 -1
  678. package/build/modal/Modal.js +0 -113
  679. package/build/modal/Modal.js.map +0 -1
  680. package/build/modal/Modal.mjs +0 -107
  681. package/build/modal/Modal.mjs.map +0 -1
  682. package/build/money/Money.js +0 -20
  683. package/build/money/Money.js.map +0 -1
  684. package/build/money/Money.mjs +0 -18
  685. package/build/money/Money.mjs.map +0 -1
  686. package/build/moneyInput/MoneyInput.js +0 -369
  687. package/build/moneyInput/MoneyInput.js.map +0 -1
  688. package/build/moneyInput/MoneyInput.messages.js +0 -12
  689. package/build/moneyInput/MoneyInput.messages.js.map +0 -1
  690. package/build/moneyInput/MoneyInput.messages.mjs +0 -10
  691. package/build/moneyInput/MoneyInput.messages.mjs.map +0 -1
  692. package/build/moneyInput/MoneyInput.mjs +0 -363
  693. package/build/moneyInput/MoneyInput.mjs.map +0 -1
  694. package/build/moneyInput/currencyFormatting.js +0 -70
  695. package/build/moneyInput/currencyFormatting.js.map +0 -1
  696. package/build/moneyInput/currencyFormatting.mjs +0 -64
  697. package/build/moneyInput/currencyFormatting.mjs.map +0 -1
  698. package/build/navigationOption/NavigationOption.js +0 -48
  699. package/build/navigationOption/NavigationOption.js.map +0 -1
  700. package/build/navigationOption/NavigationOption.mjs +0 -42
  701. package/build/navigationOption/NavigationOption.mjs.map +0 -1
  702. package/build/navigationOptionsList/NavigationOptionsList.js +0 -19
  703. package/build/navigationOptionsList/NavigationOptionsList.js.map +0 -1
  704. package/build/navigationOptionsList/NavigationOptionsList.mjs +0 -17
  705. package/build/navigationOptionsList/NavigationOptionsList.mjs.map +0 -1
  706. package/build/nudge/Nudge.js +0 -121
  707. package/build/nudge/Nudge.js.map +0 -1
  708. package/build/nudge/Nudge.mjs +0 -112
  709. package/build/nudge/Nudge.mjs.map +0 -1
  710. package/build/overlayHeader/OverlayHeader.js +0 -54
  711. package/build/overlayHeader/OverlayHeader.js.map +0 -1
  712. package/build/overlayHeader/OverlayHeader.mjs +0 -47
  713. package/build/overlayHeader/OverlayHeader.mjs.map +0 -1
  714. package/build/phoneNumberInput/PhoneNumberInput.js +0 -161
  715. package/build/phoneNumberInput/PhoneNumberInput.js.map +0 -1
  716. package/build/phoneNumberInput/PhoneNumberInput.messages.js +0 -12
  717. package/build/phoneNumberInput/PhoneNumberInput.messages.js.map +0 -1
  718. package/build/phoneNumberInput/PhoneNumberInput.messages.mjs +0 -10
  719. package/build/phoneNumberInput/PhoneNumberInput.messages.mjs.map +0 -1
  720. package/build/phoneNumberInput/PhoneNumberInput.mjs +0 -159
  721. package/build/phoneNumberInput/PhoneNumberInput.mjs.map +0 -1
  722. package/build/phoneNumberInput/data/countries.js +0 -1278
  723. package/build/phoneNumberInput/data/countries.js.map +0 -1
  724. package/build/phoneNumberInput/data/countries.mjs +0 -1276
  725. package/build/phoneNumberInput/data/countries.mjs.map +0 -1
  726. package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.js +0 -7
  727. package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.js.map +0 -1
  728. package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.mjs +0 -5
  729. package/build/phoneNumberInput/utils/cleanNumber/cleanNumber.mjs.map +0 -1
  730. package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js +0 -19
  731. package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.js.map +0 -1
  732. package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs +0 -17
  733. package/build/phoneNumberInput/utils/excludeCountries/excludeCountries.mjs.map +0 -1
  734. package/build/phoneNumberInput/utils/explodeNumberModel/index.js +0 -21
  735. package/build/phoneNumberInput/utils/explodeNumberModel/index.js.map +0 -1
  736. package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs +0 -19
  737. package/build/phoneNumberInput/utils/explodeNumberModel/index.mjs.map +0 -1
  738. package/build/phoneNumberInput/utils/findCountryByCode/index.js +0 -17
  739. package/build/phoneNumberInput/utils/findCountryByCode/index.js.map +0 -1
  740. package/build/phoneNumberInput/utils/findCountryByCode/index.mjs +0 -15
  741. package/build/phoneNumberInput/utils/findCountryByCode/index.mjs.map +0 -1
  742. package/build/phoneNumberInput/utils/findCountryByPrefix/index.js +0 -17
  743. package/build/phoneNumberInput/utils/findCountryByPrefix/index.js.map +0 -1
  744. package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs +0 -15
  745. package/build/phoneNumberInput/utils/findCountryByPrefix/index.mjs.map +0 -1
  746. package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js +0 -12
  747. package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.js.map +0 -1
  748. package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs +0 -10
  749. package/build/phoneNumberInput/utils/groupCountriesByPrefix/groupCountriesByPrefix.mjs.map +0 -1
  750. package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js +0 -11
  751. package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.js.map +0 -1
  752. package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.mjs +0 -9
  753. package/build/phoneNumberInput/utils/isValidPhoneNumber/isValidPhoneNumber.mjs.map +0 -1
  754. package/build/phoneNumberInput/utils/longestMatchingPrefix/index.js +0 -6
  755. package/build/phoneNumberInput/utils/longestMatchingPrefix/index.js.map +0 -1
  756. package/build/phoneNumberInput/utils/longestMatchingPrefix/index.mjs +0 -4
  757. package/build/phoneNumberInput/utils/longestMatchingPrefix/index.mjs.map +0 -1
  758. package/build/phoneNumberInput/utils/setDefaultPrefix/index.js +0 -22
  759. package/build/phoneNumberInput/utils/setDefaultPrefix/index.js.map +0 -1
  760. package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs +0 -20
  761. package/build/phoneNumberInput/utils/setDefaultPrefix/index.mjs.map +0 -1
  762. package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js +0 -8
  763. package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.js.map +0 -1
  764. package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs +0 -6
  765. package/build/phoneNumberInput/utils/sortArrayByProperty/sortArrayByProperty.mjs.map +0 -1
  766. package/build/popover/Popover.js +0 -79
  767. package/build/popover/Popover.js.map +0 -1
  768. package/build/popover/Popover.mjs +0 -73
  769. package/build/popover/Popover.mjs.map +0 -1
  770. package/build/processIndicator/ProcessIndicator.js +0 -120
  771. package/build/processIndicator/ProcessIndicator.js.map +0 -1
  772. package/build/processIndicator/ProcessIndicator.mjs +0 -114
  773. package/build/processIndicator/ProcessIndicator.mjs.map +0 -1
  774. package/build/progress/Progress.js +0 -24
  775. package/build/progress/Progress.js.map +0 -1
  776. package/build/progress/Progress.mjs +0 -18
  777. package/build/progress/Progress.mjs.map +0 -1
  778. package/build/progressBar/ProgressBar.js +0 -51
  779. package/build/progressBar/ProgressBar.js.map +0 -1
  780. package/build/progressBar/ProgressBar.mjs +0 -45
  781. package/build/progressBar/ProgressBar.mjs.map +0 -1
  782. package/build/promoCard/PromoCard.js +0 -189
  783. package/build/promoCard/PromoCard.js.map +0 -1
  784. package/build/promoCard/PromoCard.mjs +0 -182
  785. package/build/promoCard/PromoCard.mjs.map +0 -1
  786. package/build/promoCard/PromoCardContext.js +0 -33
  787. package/build/promoCard/PromoCardContext.js.map +0 -1
  788. package/build/promoCard/PromoCardContext.mjs +0 -27
  789. package/build/promoCard/PromoCardContext.mjs.map +0 -1
  790. package/build/promoCard/PromoCardGroup.js +0 -80
  791. package/build/promoCard/PromoCardGroup.js.map +0 -1
  792. package/build/promoCard/PromoCardGroup.mjs +0 -73
  793. package/build/promoCard/PromoCardGroup.mjs.map +0 -1
  794. package/build/promoCard/PromoCardIndicator.js +0 -53
  795. package/build/promoCard/PromoCardIndicator.js.map +0 -1
  796. package/build/promoCard/PromoCardIndicator.mjs +0 -47
  797. package/build/promoCard/PromoCardIndicator.mjs.map +0 -1
  798. package/build/provider/Provider.js +0 -53
  799. package/build/provider/Provider.js.map +0 -1
  800. package/build/provider/Provider.mjs +0 -51
  801. package/build/provider/Provider.mjs.map +0 -1
  802. package/build/provider/direction/DirectionProvider.js +0 -20
  803. package/build/provider/direction/DirectionProvider.js.map +0 -1
  804. package/build/provider/direction/DirectionProvider.mjs +0 -17
  805. package/build/provider/direction/DirectionProvider.mjs.map +0 -1
  806. package/build/provider/language/LanguageProvider.js +0 -20
  807. package/build/provider/language/LanguageProvider.js.map +0 -1
  808. package/build/provider/language/LanguageProvider.mjs +0 -17
  809. package/build/provider/language/LanguageProvider.mjs.map +0 -1
  810. package/build/radio/Radio.js +0 -63
  811. package/build/radio/Radio.js.map +0 -1
  812. package/build/radio/Radio.mjs +0 -57
  813. package/build/radio/Radio.mjs.map +0 -1
  814. package/build/radioGroup/RadioGroup.js +0 -40
  815. package/build/radioGroup/RadioGroup.js.map +0 -1
  816. package/build/radioGroup/RadioGroup.mjs +0 -38
  817. package/build/radioGroup/RadioGroup.mjs.map +0 -1
  818. package/build/radioOption/RadioOption.js +0 -46
  819. package/build/radioOption/RadioOption.js.map +0 -1
  820. package/build/radioOption/RadioOption.mjs +0 -44
  821. package/build/radioOption/RadioOption.mjs.map +0 -1
  822. package/build/section/Section.js +0 -24
  823. package/build/section/Section.js.map +0 -1
  824. package/build/section/Section.mjs +0 -18
  825. package/build/section/Section.mjs.map +0 -1
  826. package/build/segmentedControl/SegmentedControl.js +0 -115
  827. package/build/segmentedControl/SegmentedControl.js.map +0 -1
  828. package/build/segmentedControl/SegmentedControl.mjs +0 -109
  829. package/build/segmentedControl/SegmentedControl.mjs.map +0 -1
  830. package/build/select/Select.js +0 -579
  831. package/build/select/Select.js.map +0 -1
  832. package/build/select/Select.messages.js +0 -12
  833. package/build/select/Select.messages.js.map +0 -1
  834. package/build/select/Select.messages.mjs +0 -10
  835. package/build/select/Select.messages.mjs.map +0 -1
  836. package/build/select/Select.mjs +0 -572
  837. package/build/select/Select.mjs.map +0 -1
  838. package/build/select/index.js +0 -8
  839. package/build/select/index.js.map +0 -1
  840. package/build/select/index.mjs +0 -6
  841. package/build/select/index.mjs.map +0 -1
  842. package/build/select/option/Option.js +0 -58
  843. package/build/select/option/Option.js.map +0 -1
  844. package/build/select/option/Option.mjs +0 -52
  845. package/build/select/option/Option.mjs.map +0 -1
  846. package/build/select/option/index.js +0 -8
  847. package/build/select/option/index.js.map +0 -1
  848. package/build/select/option/index.mjs +0 -6
  849. package/build/select/option/index.mjs.map +0 -1
  850. package/build/select/searchBox/SearchBox.js +0 -54
  851. package/build/select/searchBox/SearchBox.js.map +0 -1
  852. package/build/select/searchBox/SearchBox.mjs +0 -48
  853. package/build/select/searchBox/SearchBox.mjs.map +0 -1
  854. package/build/slidingPanel/SlidingPanel.js +0 -49
  855. package/build/slidingPanel/SlidingPanel.js.map +0 -1
  856. package/build/slidingPanel/SlidingPanel.mjs +0 -40
  857. package/build/slidingPanel/SlidingPanel.mjs.map +0 -1
  858. package/build/snackbar/Snackbar.js +0 -134
  859. package/build/snackbar/Snackbar.js.map +0 -1
  860. package/build/snackbar/Snackbar.mjs +0 -129
  861. package/build/snackbar/Snackbar.mjs.map +0 -1
  862. package/build/snackbar/SnackbarContext.js +0 -12
  863. package/build/snackbar/SnackbarContext.js.map +0 -1
  864. package/build/snackbar/SnackbarContext.mjs +0 -9
  865. package/build/snackbar/SnackbarContext.mjs.map +0 -1
  866. package/build/snackbar/SnackbarProvider.js +0 -48
  867. package/build/snackbar/SnackbarProvider.js.map +0 -1
  868. package/build/snackbar/SnackbarProvider.mjs +0 -46
  869. package/build/snackbar/SnackbarProvider.mjs.map +0 -1
  870. package/build/snackbar/useSnackbar.js +0 -14
  871. package/build/snackbar/useSnackbar.js.map +0 -1
  872. package/build/snackbar/useSnackbar.mjs +0 -12
  873. package/build/snackbar/useSnackbar.mjs.map +0 -1
  874. package/build/statusIcon/StatusIcon.js +0 -37
  875. package/build/statusIcon/StatusIcon.js.map +0 -1
  876. package/build/statusIcon/StatusIcon.mjs +0 -31
  877. package/build/statusIcon/StatusIcon.mjs.map +0 -1
  878. package/build/stepper/Stepper.js +0 -80
  879. package/build/stepper/Stepper.js.map +0 -1
  880. package/build/stepper/Stepper.mjs +0 -74
  881. package/build/stepper/Stepper.mjs.map +0 -1
  882. package/build/stepper/deviceDetection.js +0 -22
  883. package/build/stepper/deviceDetection.js.map +0 -1
  884. package/build/stepper/deviceDetection.mjs +0 -20
  885. package/build/stepper/deviceDetection.mjs.map +0 -1
  886. package/build/sticky/Sticky.js +0 -21
  887. package/build/sticky/Sticky.js.map +0 -1
  888. package/build/sticky/Sticky.mjs +0 -19
  889. package/build/sticky/Sticky.mjs.map +0 -1
  890. package/build/summary/Summary.js +0 -119
  891. package/build/summary/Summary.js.map +0 -1
  892. package/build/summary/Summary.messages.js +0 -18
  893. package/build/summary/Summary.messages.js.map +0 -1
  894. package/build/summary/Summary.messages.mjs +0 -16
  895. package/build/summary/Summary.messages.mjs.map +0 -1
  896. package/build/summary/Summary.mjs +0 -113
  897. package/build/summary/Summary.mjs.map +0 -1
  898. package/build/switch/Switch.js +0 -82
  899. package/build/switch/Switch.js.map +0 -1
  900. package/build/switch/Switch.mjs +0 -76
  901. package/build/switch/Switch.mjs.map +0 -1
  902. package/build/switchOption/SwitchOption.js +0 -59
  903. package/build/switchOption/SwitchOption.js.map +0 -1
  904. package/build/switchOption/SwitchOption.mjs +0 -57
  905. package/build/switchOption/SwitchOption.mjs.map +0 -1
  906. package/build/tabs/Tab.js +0 -81
  907. package/build/tabs/Tab.js.map +0 -1
  908. package/build/tabs/Tab.mjs +0 -74
  909. package/build/tabs/Tab.mjs.map +0 -1
  910. package/build/tabs/TabList.js +0 -24
  911. package/build/tabs/TabList.js.map +0 -1
  912. package/build/tabs/TabList.mjs +0 -18
  913. package/build/tabs/TabList.mjs.map +0 -1
  914. package/build/tabs/TabPanel.js +0 -35
  915. package/build/tabs/TabPanel.js.map +0 -1
  916. package/build/tabs/TabPanel.mjs +0 -29
  917. package/build/tabs/TabPanel.mjs.map +0 -1
  918. package/build/tabs/Tabs.js +0 -541
  919. package/build/tabs/Tabs.js.map +0 -1
  920. package/build/tabs/Tabs.mjs +0 -533
  921. package/build/tabs/Tabs.mjs.map +0 -1
  922. package/build/tabs/utils.js +0 -50
  923. package/build/tabs/utils.js.map +0 -1
  924. package/build/tabs/utils.mjs +0 -42
  925. package/build/tabs/utils.mjs.map +0 -1
  926. package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js +0 -15
  927. package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.js.map +0 -1
  928. package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs +0 -13
  929. package/build/textareaWithDisplayFormat/TextareaWithDisplayFormat.mjs.map +0 -1
  930. package/build/tile/Tile.js +0 -86
  931. package/build/tile/Tile.js.map +0 -1
  932. package/build/tile/Tile.mjs +0 -76
  933. package/build/tile/Tile.mjs.map +0 -1
  934. package/build/title/Title.js +0 -42
  935. package/build/title/Title.js.map +0 -1
  936. package/build/title/Title.mjs +0 -36
  937. package/build/title/Title.mjs.map +0 -1
  938. package/build/tooltip/Tooltip.js +0 -103
  939. package/build/tooltip/Tooltip.js.map +0 -1
  940. package/build/tooltip/Tooltip.mjs +0 -97
  941. package/build/tooltip/Tooltip.mjs.map +0 -1
  942. package/build/typeahead/Typeahead.js +0 -468
  943. package/build/typeahead/Typeahead.js.map +0 -1
  944. package/build/typeahead/Typeahead.mjs +0 -460
  945. package/build/typeahead/Typeahead.mjs.map +0 -1
  946. package/build/typeahead/typeaheadInput/TypeaheadInput.js +0 -120
  947. package/build/typeahead/typeaheadInput/TypeaheadInput.js.map +0 -1
  948. package/build/typeahead/typeaheadInput/TypeaheadInput.mjs +0 -114
  949. package/build/typeahead/typeaheadInput/TypeaheadInput.mjs.map +0 -1
  950. package/build/typeahead/typeaheadOption/TypeaheadOption.js +0 -49
  951. package/build/typeahead/typeaheadOption/TypeaheadOption.js.map +0 -1
  952. package/build/typeahead/typeaheadOption/TypeaheadOption.mjs +0 -43
  953. package/build/typeahead/typeaheadOption/TypeaheadOption.mjs.map +0 -1
  954. package/build/typeahead/util/highlight.js +0 -21
  955. package/build/typeahead/util/highlight.js.map +0 -1
  956. package/build/typeahead/util/highlight.mjs +0 -19
  957. package/build/typeahead/util/highlight.mjs.map +0 -1
  958. package/build/upload/Upload.js +0 -435
  959. package/build/upload/Upload.js.map +0 -1
  960. package/build/upload/Upload.messages.js +0 -39
  961. package/build/upload/Upload.messages.js.map +0 -1
  962. package/build/upload/Upload.messages.mjs +0 -37
  963. package/build/upload/Upload.messages.mjs.map +0 -1
  964. package/build/upload/Upload.mjs +0 -425
  965. package/build/upload/Upload.mjs.map +0 -1
  966. package/build/upload/steps/completeStep/completeStep.js +0 -102
  967. package/build/upload/steps/completeStep/completeStep.js.map +0 -1
  968. package/build/upload/steps/completeStep/completeStep.mjs +0 -95
  969. package/build/upload/steps/completeStep/completeStep.mjs.map +0 -1
  970. package/build/upload/steps/mediaUploadStep/mediaUploadStep.js +0 -97
  971. package/build/upload/steps/mediaUploadStep/mediaUploadStep.js.map +0 -1
  972. package/build/upload/steps/mediaUploadStep/mediaUploadStep.mjs +0 -91
  973. package/build/upload/steps/mediaUploadStep/mediaUploadStep.mjs.map +0 -1
  974. package/build/upload/steps/processingStep/processingStep.js +0 -79
  975. package/build/upload/steps/processingStep/processingStep.js.map +0 -1
  976. package/build/upload/steps/processingStep/processingStep.mjs +0 -72
  977. package/build/upload/steps/processingStep/processingStep.mjs.map +0 -1
  978. package/build/upload/steps/uploadImageStep/uploadImageStep.js +0 -106
  979. package/build/upload/steps/uploadImageStep/uploadImageStep.js.map +0 -1
  980. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs +0 -100
  981. package/build/upload/steps/uploadImageStep/uploadImageStep.mjs.map +0 -1
  982. package/build/upload/uploadSteps.js +0 -9
  983. package/build/upload/uploadSteps.js.map +0 -1
  984. package/build/upload/uploadSteps.mjs +0 -9
  985. package/build/upload/uploadSteps.mjs.map +0 -1
  986. package/build/upload/utils/asyncFileRead/asyncFileRead.js +0 -15
  987. package/build/upload/utils/asyncFileRead/asyncFileRead.js.map +0 -1
  988. package/build/upload/utils/asyncFileRead/asyncFileRead.mjs +0 -13
  989. package/build/upload/utils/asyncFileRead/asyncFileRead.mjs.map +0 -1
  990. package/build/upload/utils/getFileType/getFileType.js +0 -21
  991. package/build/upload/utils/getFileType/getFileType.js.map +0 -1
  992. package/build/upload/utils/getFileType/getFileType.mjs +0 -19
  993. package/build/upload/utils/getFileType/getFileType.mjs.map +0 -1
  994. package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js +0 -19
  995. package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.js.map +0 -1
  996. package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.mjs +0 -17
  997. package/build/upload/utils/getSupportedSpotMimeTypes/getSupportedSpotMimeTypes.mjs.map +0 -1
  998. package/build/upload/utils/isSizeValid/isSizeValid.js +0 -6
  999. package/build/upload/utils/isSizeValid/isSizeValid.js.map +0 -1
  1000. package/build/upload/utils/isSizeValid/isSizeValid.mjs +0 -4
  1001. package/build/upload/utils/isSizeValid/isSizeValid.mjs.map +0 -1
  1002. package/build/upload/utils/isTypeValid/isTypeValid.js +0 -26
  1003. package/build/upload/utils/isTypeValid/isTypeValid.js.map +0 -1
  1004. package/build/upload/utils/isTypeValid/isTypeValid.mjs +0 -24
  1005. package/build/upload/utils/isTypeValid/isTypeValid.mjs.map +0 -1
  1006. package/build/upload/utils/postData/postData.js +0 -20
  1007. package/build/upload/utils/postData/postData.js.map +0 -1
  1008. package/build/upload/utils/postData/postData.mjs +0 -18
  1009. package/build/upload/utils/postData/postData.mjs.map +0 -1
  1010. package/build/upload/utils/requestMedia/requestMedia.js +0 -26
  1011. package/build/upload/utils/requestMedia/requestMedia.js.map +0 -1
  1012. package/build/upload/utils/requestMedia/requestMedia.mjs +0 -24
  1013. package/build/upload/utils/requestMedia/requestMedia.mjs.map +0 -1
  1014. package/build/uploadInput/UploadInput.js +0 -264
  1015. package/build/uploadInput/UploadInput.js.map +0 -1
  1016. package/build/uploadInput/UploadInput.messages.js +0 -30
  1017. package/build/uploadInput/UploadInput.messages.js.map +0 -1
  1018. package/build/uploadInput/UploadInput.messages.mjs +0 -28
  1019. package/build/uploadInput/UploadInput.messages.mjs.map +0 -1
  1020. package/build/uploadInput/UploadInput.mjs +0 -258
  1021. package/build/uploadInput/UploadInput.mjs.map +0 -1
  1022. package/build/uploadInput/uploadButton/UploadButton.js +0 -202
  1023. package/build/uploadInput/uploadButton/UploadButton.js.map +0 -1
  1024. package/build/uploadInput/uploadButton/UploadButton.messages.js +0 -24
  1025. package/build/uploadInput/uploadButton/UploadButton.messages.js.map +0 -1
  1026. package/build/uploadInput/uploadButton/UploadButton.messages.mjs +0 -22
  1027. package/build/uploadInput/uploadButton/UploadButton.messages.mjs.map +0 -1
  1028. package/build/uploadInput/uploadButton/UploadButton.mjs +0 -194
  1029. package/build/uploadInput/uploadButton/UploadButton.mjs.map +0 -1
  1030. package/build/uploadInput/uploadButton/defaults.js +0 -10
  1031. package/build/uploadInput/uploadButton/defaults.js.map +0 -1
  1032. package/build/uploadInput/uploadButton/defaults.mjs +0 -7
  1033. package/build/uploadInput/uploadButton/defaults.mjs.map +0 -1
  1034. package/build/uploadInput/uploadButton/getAllowedFileTypes.js +0 -8
  1035. package/build/uploadInput/uploadButton/getAllowedFileTypes.js.map +0 -1
  1036. package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs +0 -6
  1037. package/build/uploadInput/uploadButton/getAllowedFileTypes.mjs.map +0 -1
  1038. package/build/uploadInput/uploadItem/UploadItem.js +0 -174
  1039. package/build/uploadInput/uploadItem/UploadItem.js.map +0 -1
  1040. package/build/uploadInput/uploadItem/UploadItem.messages.js +0 -27
  1041. package/build/uploadInput/uploadItem/UploadItem.messages.js.map +0 -1
  1042. package/build/uploadInput/uploadItem/UploadItem.messages.mjs +0 -25
  1043. package/build/uploadInput/uploadItem/UploadItem.messages.mjs.map +0 -1
  1044. package/build/uploadInput/uploadItem/UploadItem.mjs +0 -166
  1045. package/build/uploadInput/uploadItem/UploadItem.mjs.map +0 -1
  1046. package/build/uploadInput/uploadItem/UploadItemBody.js +0 -27
  1047. package/build/uploadInput/uploadItem/UploadItemBody.js.map +0 -1
  1048. package/build/uploadInput/uploadItem/UploadItemBody.mjs +0 -25
  1049. package/build/uploadInput/uploadItem/UploadItemBody.mjs.map +0 -1
  1050. package/build/utilities/cssValueWithUnit.js +0 -8
  1051. package/build/utilities/cssValueWithUnit.js.map +0 -1
  1052. package/build/utilities/cssValueWithUnit.mjs +0 -6
  1053. package/build/utilities/cssValueWithUnit.mjs.map +0 -1
  1054. package/build/utilities/logActionRequired.js +0 -17
  1055. package/build/utilities/logActionRequired.js.map +0 -1
  1056. package/build/utilities/logActionRequired.mjs +0 -14
  1057. package/build/utilities/logActionRequired.mjs.map +0 -1
  1058. package/build/withDisplayFormat/WithDisplayFormat.js +0 -304
  1059. package/build/withDisplayFormat/WithDisplayFormat.js.map +0 -1
  1060. package/build/withDisplayFormat/WithDisplayFormat.mjs +0 -282
  1061. package/build/withDisplayFormat/WithDisplayFormat.mjs.map +0 -1
  1062. package/build/withNextPortal/withNextPortal.js +0 -20
  1063. package/build/withNextPortal/withNextPortal.js.map +0 -1
  1064. package/build/withNextPortal/withNextPortal.mjs +0 -18
  1065. package/build/withNextPortal/withNextPortal.mjs.map +0 -1
@@ -1,264 +0,0 @@
1
- 'use strict';
2
-
3
- var componentsTheming = require('@wise/components-theming');
4
- var classNames = require('classnames');
5
- var React = require('react');
6
- var reactIntl = require('react-intl');
7
- var Button = require('../button/Button.js');
8
- var Modal = require('../modal/Modal.js');
9
- var UploadInput_messages = require('./UploadInput.messages.js');
10
- var UploadButton = require('./uploadButton/UploadButton.js');
11
- var defaults = require('./uploadButton/defaults.js');
12
- var UploadItem = require('./uploadItem/UploadItem.js');
13
- var jsxRuntime = require('react/jsx-runtime');
14
- var isTypeValid = require('../upload/utils/isTypeValid/isTypeValid.js');
15
- var isSizeValid = require('../upload/utils/isSizeValid/isSizeValid.js');
16
- var status = require('../common/propsValues/status.js');
17
- var control = require('../common/propsValues/control.js');
18
-
19
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
20
-
21
- var classNames__default = /*#__PURE__*/_interopDefault(classNames);
22
-
23
- function generateFileId(file) {
24
- const {
25
- name,
26
- size
27
- } = file;
28
- const uploadTimeStamp = new Date().getTime();
29
- return `${name}_${size}_${uploadTimeStamp}`;
30
- }
31
- const UploadInput = ({
32
- files = [],
33
- fileInputName = 'file',
34
- className,
35
- deleteConfirm,
36
- disabled,
37
- multiple = false,
38
- fileTypes = defaults.imageFileTypes,
39
- sizeLimit = defaults.DEFAULT_SIZE_LIMIT,
40
- description,
41
- onUploadFile,
42
- onDeleteFile,
43
- onValidationError,
44
- onFilesChange,
45
- onDownload,
46
- maxFiles,
47
- maxFilesErrorMessage,
48
- id,
49
- sizeLimitErrorMessage,
50
- uploadButtonTitle
51
- }) => {
52
- const {
53
- isModern
54
- } = componentsTheming.useTheme();
55
- const [markedFileForDelete, setMarkedFileForDelete] = React.useState(null);
56
- const [mounted, setMounted] = React.useState(false);
57
- const {
58
- formatMessage
59
- } = reactIntl.useIntl();
60
- const PROGRESS_STATUSES = new Set([status.Status.PENDING, status.Status.PROCESSING]);
61
- const [uploadedFiles, setUploadedFiles] = React.useState(multiple || files.length === 0 ? files : [files[0]]);
62
- const uploadedFilesListReference = React.useRef(multiple || files.length === 0 ? files : [files[0]]);
63
- function addFileToList(recentUploadedFile) {
64
- function addToList(listToAddTo) {
65
- return [...listToAddTo, recentUploadedFile];
66
- }
67
- setUploadedFiles(addToList);
68
- uploadedFilesListReference.current = addToList(uploadedFilesListReference.current);
69
- }
70
- const removeFileFromList = file => {
71
- function filterOutFrom(listToFilterFrom) {
72
- return listToFilterFrom.filter(fileInList => file !== fileInList && file.id !== fileInList.id);
73
- }
74
- setUploadedFiles(filterOutFrom);
75
- uploadedFilesListReference.current = filterOutFrom(uploadedFilesListReference.current);
76
- };
77
- const modifyFileInList = (file, updates) => {
78
- const updateListItem = listToUpdate => listToUpdate.map(fileInList => {
79
- return fileInList === file || fileInList.id === file.id ? {
80
- ...file,
81
- ...updates
82
- } : fileInList;
83
- });
84
- setUploadedFiles(updateListItem);
85
- uploadedFilesListReference.current = updateListItem(uploadedFilesListReference.current);
86
- };
87
- const removeFile = file => {
88
- const {
89
- id,
90
- status: status$1
91
- } = file;
92
- if (status$1 === status.Status.FAILED) {
93
- // If removing a failed upload, we're just updating the view
94
- removeFileFromList(file);
95
- } else if (onDeleteFile && id) {
96
- // Set status to PROCESSING
97
- modifyFileInList(file, {
98
- status: status.Status.PROCESSING,
99
- error: undefined
100
- });
101
- // Notify host app about deletion
102
- onDeleteFile(id).then(() => removeFileFromList(file)).catch(error => {
103
- modifyFileInList(file, {
104
- error: error
105
- });
106
- });
107
- }
108
- };
109
- function handleFileUploadFailure(file, failureMessage) {
110
- const {
111
- name
112
- } = file;
113
- const id = generateFileId(file);
114
- const failedUpload = {
115
- id,
116
- filename: name,
117
- status: status.Status.FAILED,
118
- error: failureMessage
119
- };
120
- addFileToList(failedUpload);
121
- if (onValidationError) {
122
- onValidationError(failedUpload);
123
- }
124
- }
125
- function getNumberOfFilesUploaded() {
126
- const uploadInitiatedStatus = new Set([status.Status.SUCCEEDED, status.Status.PENDING]);
127
- const validFiles = uploadedFilesListReference.current.filter(file => file.status && uploadInitiatedStatus.has(file.status));
128
- return validFiles.length;
129
- }
130
- function areMaximumFilesUploadedAlready() {
131
- if (!maxFiles) {
132
- return false;
133
- }
134
- const numberOfValidFiles = getNumberOfFilesUploaded();
135
- return numberOfValidFiles >= maxFiles;
136
- }
137
- // One or more files selected, create entries for them
138
- const addFiles = selectedFiles => {
139
- for (let i = 0; i < selectedFiles.length; i += 1) {
140
- const file = selectedFiles.item(i);
141
- // Returning a FormData[] array instead of FileList so we can filter out incorrect files
142
- const formData = new FormData();
143
- if (file) {
144
- const {
145
- name
146
- } = file;
147
- const id = generateFileId(file);
148
- const allowedFileTypes = Array.isArray(fileTypes) ? fileTypes.join(',') : fileTypes;
149
- // Check if file type is valid
150
- if (!isTypeValid.isTypeValid(file, allowedFileTypes)) {
151
- handleFileUploadFailure(file, formatMessage(UploadInput_messages.fileTypeNotSupported));
152
- continue;
153
- }
154
- // Check if the filesize is valid
155
- // Convert to rough bytes
156
- if (!isSizeValid.isSizeValid(file, sizeLimit * 1000)) {
157
- const failureMessage = sizeLimitErrorMessage || formatMessage(UploadInput_messages.fileIsTooLarge);
158
- handleFileUploadFailure(file, failureMessage);
159
- continue;
160
- }
161
- if (areMaximumFilesUploadedAlready()) {
162
- const failureMessage = maxFilesErrorMessage || formatMessage(UploadInput_messages.maximumFilesAlreadyUploaded, {
163
- maxFilesAllowed: maxFiles
164
- });
165
- handleFileUploadFailure(file, failureMessage);
166
- continue;
167
- }
168
- formData.append(fileInputName, file);
169
- const pendingFile = {
170
- id,
171
- filename: name,
172
- status: status.Status.PENDING
173
- };
174
- addFileToList(pendingFile);
175
- // Start uploading the file
176
- onUploadFile(formData).then(({
177
- id,
178
- url,
179
- error
180
- }) => {
181
- // Replace the temporary id with the final one received from the API, and also set any errors
182
- modifyFileInList(pendingFile, {
183
- id,
184
- url,
185
- error,
186
- status: status.Status.SUCCEEDED
187
- });
188
- }).catch(error => {
189
- modifyFileInList(pendingFile, {
190
- error: error,
191
- status: status.Status.FAILED
192
- });
193
- });
194
- if (!multiple) {
195
- // Only upload a single file
196
- break;
197
- }
198
- }
199
- }
200
- };
201
- React.useEffect(() => {
202
- setMounted(true);
203
- }, []);
204
- React.useEffect(() => {
205
- if (onFilesChange && mounted) {
206
- onFilesChange([...uploadedFiles]);
207
- }
208
- }, [onFilesChange, uploadedFiles]); // eslint-disable-line react-hooks/exhaustive-deps
209
- return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
210
- children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
211
- className: classNames__default.default('np-upload-input', className, {
212
- disabled: isModern && disabled
213
- }),
214
- children: [uploadedFiles.map(file => /*#__PURE__*/jsxRuntime.jsx(UploadItem.default, {
215
- file: file,
216
- singleFileUpload: !multiple,
217
- canDelete: (!!onDeleteFile || file.status === status.Status.FAILED) && (!file.status || !PROGRESS_STATUSES.has(file.status)),
218
- onDelete: file.status === status.Status.FAILED ? () => removeFile(file) : () => setMarkedFileForDelete(file),
219
- onDownload: onDownload
220
- }, file.id)), (multiple || !multiple && !uploadedFiles.length) && /*#__PURE__*/jsxRuntime.jsx(UploadButton.default, {
221
- id: id,
222
- uploadButtonTitle: uploadButtonTitle,
223
- disabled: areMaximumFilesUploadedAlready() || disabled,
224
- multiple: multiple,
225
- fileTypes: fileTypes,
226
- sizeLimit: sizeLimit,
227
- description: description,
228
- maxFiles: maxFiles,
229
- multipleFileInputWithFilesAdded: multiple && uploadedFiles.length > 0,
230
- onChange: addFiles
231
- })]
232
- }), /*#__PURE__*/jsxRuntime.jsx(Modal, {
233
- title: deleteConfirm?.title !== undefined ? deleteConfirm.title : formatMessage(UploadInput_messages.deleteModalTitle),
234
- body: deleteConfirm?.body !== undefined ? deleteConfirm.body : formatMessage(UploadInput_messages.deleteModalBody),
235
- open: !!markedFileForDelete,
236
- footer: /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
237
- children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
238
- block: true,
239
- onClick: () => {
240
- setMarkedFileForDelete(null);
241
- },
242
- children: deleteConfirm?.cancelText || formatMessage(UploadInput_messages.deleteModalCancelButtonText)
243
- }), /*#__PURE__*/jsxRuntime.jsx(Button, {
244
- block: true,
245
- priority: control.Priority.SECONDARY,
246
- type: control.ControlType.NEGATIVE,
247
- onClick: () => {
248
- if (markedFileForDelete) {
249
- removeFile(markedFileForDelete);
250
- }
251
- setMarkedFileForDelete(null);
252
- },
253
- children: deleteConfirm?.confirmText || formatMessage(UploadInput_messages.deleteModalConfirmButtonText)
254
- })]
255
- }),
256
- onClose: () => {
257
- setMarkedFileForDelete(null);
258
- }
259
- })]
260
- });
261
- };
262
-
263
- module.exports = UploadInput;
264
- //# sourceMappingURL=UploadInput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UploadInput.js","sources":["../../src/uploadInput/UploadInput.tsx"],"sourcesContent":["import { useTheme } from '@wise/components-theming';\nimport classNames from 'classnames';\nimport { useEffect, useRef, useState } from 'react';\nimport { useIntl } from 'react-intl';\n\nimport Button from '../button';\nimport { CommonProps, ControlType, Priority, Status } from '../common';\nimport Modal from '../modal';\nimport { isSizeValid } from '../upload/utils/isSizeValid';\nimport { isTypeValid } from '../upload/utils/isTypeValid';\n\nimport MESSAGES from './UploadInput.messages';\nimport { UploadedFile, UploadError, UploadResponse } from './types';\nimport UploadButton, { UploadButtonProps } from './uploadButton/UploadButton';\nimport { DEFAULT_SIZE_LIMIT, imageFileTypes } from './uploadButton/defaults';\nimport UploadItem, { UploadItemProps } from './uploadItem/UploadItem';\n\nexport type UploadInputProps = {\n /**\n * List of already existing, failed or in progress files\n */\n files?: readonly UploadedFile[];\n\n /**\n * The key of the file in the returned FormData object (default: file)\n */\n fileInputName?: string;\n\n /**\n * Callback that handles form submission\n *\n * @param formData\n */\n onUploadFile: (formData: FormData) => Promise<UploadResponse>;\n\n /**\n * Provide a callback if the file can be removed/deleted from the server\n * Your app is responsible for reloading the uploaded files list and updating the component to ensure that the file has in fact been deleted successfully\n *\n * @param id\n */\n onDeleteFile?: (id: string | number) => Promise<any>;\n\n /**\n * Provide a callback to trigger on validation error\n *\n * @param file\n */\n onValidationError?: (file: UploadedFile) => void;\n\n /**\n * Provide a callback to trigger on change whenever the files are updated\n *\n * @param files\n */\n onFilesChange?: (files: UploadedFile[]) => void;\n\n /**\n * Confirmation modal displayed on delete\n */\n deleteConfirm?: {\n /**\n * The title of the confirmation modal on delete\n */\n title?: string;\n\n /**\n * The body of the confirmation modal on delete\n */\n body?: React.ReactNode;\n\n /**\n * The confirm button text of the confirmation modal on delete\n */\n confirmText?: string;\n\n /**\n * The cancel button text of the confirmation modal on delete\n */\n cancelText?: string;\n };\n\n /**\n * Maximum number of files allowed, if provided, shows error below file item\n */\n maxFiles?: number;\n\n /**\n * Error message to show when the maximum number of files are uploaded already\n */\n maxFilesErrorMessage?: string;\n\n /**\n * Error message to show when files over a allowed size limit are uploaded\n */\n sizeLimitErrorMessage?: string;\n} & Pick<\n UploadButtonProps,\n 'disabled' | 'multiple' | 'fileTypes' | 'sizeLimit' | 'description' | 'id' | 'uploadButtonTitle'\n> &\n Pick<UploadItemProps, 'onDownload'> &\n CommonProps;\n\nfunction generateFileId(file: File) {\n const { name, size } = file;\n const uploadTimeStamp = new Date().getTime();\n return `${name}_${size}_${uploadTimeStamp}`;\n}\n\nconst UploadInput = ({\n files = [],\n fileInputName = 'file',\n className,\n deleteConfirm,\n disabled,\n multiple = false,\n fileTypes = imageFileTypes,\n sizeLimit = DEFAULT_SIZE_LIMIT,\n description,\n onUploadFile,\n onDeleteFile,\n onValidationError,\n onFilesChange,\n onDownload,\n maxFiles,\n maxFilesErrorMessage,\n id,\n sizeLimitErrorMessage,\n uploadButtonTitle,\n}: UploadInputProps) => {\n const { isModern } = useTheme();\n const [markedFileForDelete, setMarkedFileForDelete] = useState<UploadedFile | null>(null);\n const [mounted, setMounted] = useState(false);\n const { formatMessage } = useIntl();\n\n const PROGRESS_STATUSES = new Set([Status.PENDING, Status.PROCESSING]);\n\n const [uploadedFiles, setUploadedFiles] = useState<readonly UploadedFile[]>(\n multiple || files.length === 0 ? files : [files[0]],\n );\n\n const uploadedFilesListReference = useRef(multiple || files.length === 0 ? files : [files[0]]);\n\n function addFileToList(recentUploadedFile: UploadedFile) {\n function addToList(listToAddTo: readonly UploadedFile[]) {\n return [...listToAddTo, recentUploadedFile];\n }\n\n setUploadedFiles(addToList);\n uploadedFilesListReference.current = addToList(uploadedFilesListReference.current);\n }\n\n const removeFileFromList = (file: UploadedFile) => {\n function filterOutFrom(listToFilterFrom: readonly UploadedFile[]) {\n return listToFilterFrom.filter(\n (fileInList) => file !== fileInList && file.id !== fileInList.id,\n );\n }\n\n setUploadedFiles(filterOutFrom);\n uploadedFilesListReference.current = filterOutFrom(uploadedFilesListReference.current);\n };\n\n const modifyFileInList = (file: UploadedFile, updates: Partial<UploadedFile>) => {\n const updateListItem = (listToUpdate: readonly UploadedFile[]) =>\n listToUpdate.map((fileInList) => {\n return fileInList === file || fileInList.id === file.id\n ? { ...file, ...updates }\n : fileInList;\n });\n\n setUploadedFiles(updateListItem);\n uploadedFilesListReference.current = updateListItem(uploadedFilesListReference.current);\n };\n\n const removeFile = (file: UploadedFile) => {\n const { id, status } = file;\n\n if (status === Status.FAILED) {\n // If removing a failed upload, we're just updating the view\n removeFileFromList(file);\n } else if (onDeleteFile && id) {\n // Set status to PROCESSING\n modifyFileInList(file, { status: Status.PROCESSING, error: undefined });\n\n // Notify host app about deletion\n onDeleteFile(id)\n .then(() => removeFileFromList(file))\n .catch((error) => {\n modifyFileInList(file, { error: error as UploadError });\n });\n }\n };\n\n function handleFileUploadFailure(file: File, failureMessage: string) {\n const { name } = file;\n const id = generateFileId(file);\n const failedUpload = {\n id,\n filename: name,\n status: Status.FAILED,\n error: failureMessage,\n };\n\n addFileToList(failedUpload);\n\n if (onValidationError) {\n onValidationError(failedUpload);\n }\n }\n\n function getNumberOfFilesUploaded() {\n const uploadInitiatedStatus = new Set([Status.SUCCEEDED, Status.PENDING]);\n const validFiles = uploadedFilesListReference.current.filter(\n (file) => file.status && uploadInitiatedStatus.has(file.status),\n );\n return validFiles.length;\n }\n\n function areMaximumFilesUploadedAlready() {\n if (!maxFiles) {\n return false;\n }\n\n const numberOfValidFiles = getNumberOfFilesUploaded();\n return numberOfValidFiles >= maxFiles;\n }\n\n // One or more files selected, create entries for them\n const addFiles = (selectedFiles: FileList) => {\n for (let i = 0; i < selectedFiles.length; i += 1) {\n const file = selectedFiles.item(i);\n\n // Returning a FormData[] array instead of FileList so we can filter out incorrect files\n const formData = new FormData();\n\n if (file) {\n const { name } = file;\n const id = generateFileId(file);\n\n const allowedFileTypes = Array.isArray(fileTypes) ? fileTypes.join(',') : fileTypes;\n\n // Check if file type is valid\n if (!isTypeValid(file, allowedFileTypes)) {\n handleFileUploadFailure(file, formatMessage(MESSAGES.fileTypeNotSupported));\n continue;\n }\n\n // Check if the filesize is valid\n // Convert to rough bytes\n if (!isSizeValid(file, sizeLimit * 1000)) {\n const failureMessage = sizeLimitErrorMessage || formatMessage(MESSAGES.fileIsTooLarge);\n handleFileUploadFailure(file, failureMessage);\n continue;\n }\n\n if (areMaximumFilesUploadedAlready()) {\n const failureMessage =\n maxFilesErrorMessage ||\n formatMessage(MESSAGES.maximumFilesAlreadyUploaded, { maxFilesAllowed: maxFiles });\n handleFileUploadFailure(file, failureMessage);\n continue;\n }\n\n formData.append(fileInputName, file);\n const pendingFile = {\n id,\n filename: name,\n status: Status.PENDING,\n };\n\n addFileToList(pendingFile);\n\n // Start uploading the file\n onUploadFile(formData)\n .then(({ id, url, error }: UploadResponse) => {\n // Replace the temporary id with the final one received from the API, and also set any errors\n modifyFileInList(pendingFile, { id, url, error, status: Status.SUCCEEDED });\n })\n .catch((error) => {\n modifyFileInList(pendingFile, { error: error as UploadError, status: Status.FAILED });\n });\n\n if (!multiple) {\n // Only upload a single file\n break;\n }\n }\n }\n };\n\n useEffect(() => {\n setMounted(true);\n }, []);\n\n useEffect(() => {\n if (onFilesChange && mounted) {\n onFilesChange([...uploadedFiles]);\n }\n }, [onFilesChange, uploadedFiles]); // eslint-disable-line react-hooks/exhaustive-deps\n\n return (\n <>\n <div className={classNames('np-upload-input', className, { disabled: isModern && disabled })}>\n {uploadedFiles.map((file) => (\n <UploadItem\n key={file.id}\n file={file}\n singleFileUpload={!multiple}\n canDelete={\n (!!onDeleteFile || file.status === Status.FAILED) &&\n (!file.status || !PROGRESS_STATUSES.has(file.status))\n }\n onDelete={\n file.status === Status.FAILED\n ? () => removeFile(file)\n : () => setMarkedFileForDelete(file)\n }\n onDownload={onDownload}\n />\n ))}\n {(multiple || (!multiple && !uploadedFiles.length)) && (\n <UploadButton\n id={id}\n uploadButtonTitle={uploadButtonTitle}\n disabled={areMaximumFilesUploadedAlready() || disabled}\n multiple={multiple}\n fileTypes={fileTypes}\n sizeLimit={sizeLimit}\n description={description}\n maxFiles={maxFiles}\n multipleFileInputWithFilesAdded={multiple && uploadedFiles.length > 0}\n onChange={addFiles}\n />\n )}\n </div>\n <Modal\n title={\n deleteConfirm?.title !== undefined\n ? deleteConfirm.title\n : formatMessage(MESSAGES.deleteModalTitle)\n }\n body={\n deleteConfirm?.body !== undefined\n ? deleteConfirm.body\n : formatMessage(MESSAGES.deleteModalBody)\n }\n open={!!markedFileForDelete}\n footer={\n <>\n <Button\n block\n onClick={() => {\n setMarkedFileForDelete(null);\n }}\n >\n {deleteConfirm?.cancelText || formatMessage(MESSAGES.deleteModalCancelButtonText)}\n </Button>\n <Button\n block\n priority={Priority.SECONDARY}\n type={ControlType.NEGATIVE}\n onClick={() => {\n if (markedFileForDelete) {\n removeFile(markedFileForDelete);\n }\n setMarkedFileForDelete(null);\n }}\n >\n {deleteConfirm?.confirmText || formatMessage(MESSAGES.deleteModalConfirmButtonText)}\n </Button>\n </>\n }\n onClose={() => {\n setMarkedFileForDelete(null);\n }}\n />\n </>\n );\n};\n\nexport default UploadInput;\n"],"names":["generateFileId","file","name","size","uploadTimeStamp","Date","getTime","UploadInput","files","fileInputName","className","deleteConfirm","disabled","multiple","fileTypes","imageFileTypes","sizeLimit","DEFAULT_SIZE_LIMIT","description","onUploadFile","onDeleteFile","onValidationError","onFilesChange","onDownload","maxFiles","maxFilesErrorMessage","id","sizeLimitErrorMessage","uploadButtonTitle","isModern","useTheme","markedFileForDelete","setMarkedFileForDelete","useState","mounted","setMounted","formatMessage","useIntl","PROGRESS_STATUSES","Set","Status","PENDING","PROCESSING","uploadedFiles","setUploadedFiles","length","uploadedFilesListReference","useRef","addFileToList","recentUploadedFile","addToList","listToAddTo","current","removeFileFromList","filterOutFrom","listToFilterFrom","filter","fileInList","modifyFileInList","updates","updateListItem","listToUpdate","map","removeFile","status","FAILED","error","undefined","then","catch","handleFileUploadFailure","failureMessage","failedUpload","filename","getNumberOfFilesUploaded","uploadInitiatedStatus","SUCCEEDED","validFiles","has","areMaximumFilesUploadedAlready","numberOfValidFiles","addFiles","selectedFiles","i","item","formData","FormData","allowedFileTypes","Array","isArray","join","isTypeValid","MESSAGES","fileTypeNotSupported","isSizeValid","fileIsTooLarge","maximumFilesAlreadyUploaded","maxFilesAllowed","append","pendingFile","url","useEffect","_jsxs","_Fragment","children","classNames","_jsx","UploadItem","singleFileUpload","canDelete","onDelete","UploadButton","multipleFileInputWithFilesAdded","onChange","Modal","title","deleteModalTitle","body","deleteModalBody","open","footer","Button","block","onClick","cancelText","deleteModalCancelButtonText","priority","Priority","SECONDARY","type","ControlType","NEGATIVE","confirmText","deleteModalConfirmButtonText","onClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuGA,SAASA,cAAcA,CAACC,IAAU,EAAA;EAChC,MAAM;IAAEC,IAAI;AAAEC,IAAAA,IAAAA;AAAM,GAAA,GAAGF,IAAI,CAAA;EAC3B,MAAMG,eAAe,GAAG,IAAIC,IAAI,EAAE,CAACC,OAAO,EAAE,CAAA;AAC5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,EAAA;UACLC,KAAK,EAAA,IAAA;UACLC,OAAO,EAAEA,MAAK;YACZ3F,sBAAsB,CAAC,IAAI,CAAC,CAAA;WAC5B;UAAAwE,QAAA,EAED7F,aAAa,EAAEiH,UAAU,IAAIxF,aAAa,CAACwD,oBAAQ,CAACiC,2BAA2B,CAAA;AAAC,SAC3E,CACR,eAAAnB,cAAA,CAACe,MAAM,EAAA;UACLC,KAAK,EAAA,IAAA;UACLI,QAAQ,EAAEC,gBAAQ,CAACC,SAAU;UAC7BC,IAAI,EAAEC,mBAAW,CAACC,QAAS;UAC3BR,OAAO,EAAEA,MAAK;AACZ,YAAA,IAAI5F,mBAAmB,EAAE;cACvBgC,UAAU,CAAChC,mBAAmB,CAAC,CAAA;AAChC,aAAA;YACDC,sBAAsB,CAAC,IAAI,CAAC,CAAA;WAC5B;UAAAwE,QAAA,EAED7F,aAAa,EAAEyH,WAAW,IAAIhG,aAAa,CAACwD,oBAAQ,CAACyC,4BAA4B,CAAA;AAAC,SAC7E,CACV,CAAA;AAAA,OAAA,CACD;MACDC,OAAO,EAAEA,MAAK;QACZtG,sBAAsB,CAAC,IAAI,CAAC,CAAA;AAC9B,OAAA;AAAE,KAEN,CAAA,CAAA;AAAA,GAAA,CAAG,CAAA;AAEP;;;;"}
@@ -1,30 +0,0 @@
1
- 'use strict';
2
-
3
- var reactIntl = require('react-intl');
4
-
5
- var MESSAGES = reactIntl.defineMessages({
6
- fileIsTooLarge: {
7
- id: "neptune.UploadInput.fileIsTooLarge"
8
- },
9
- fileTypeNotSupported: {
10
- id: "neptune.UploadInput.fileTypeNotSupported"
11
- },
12
- deleteModalTitle: {
13
- id: "neptune.UploadInput.deleteModalTitle"
14
- },
15
- deleteModalBody: {
16
- id: "neptune.UploadInput.deleteModalBody"
17
- },
18
- deleteModalCancelButtonText: {
19
- id: "neptune.UploadInput.deleteModalCancelButtonText"
20
- },
21
- deleteModalConfirmButtonText: {
22
- id: "neptune.UploadInput.deleteModalConfirmButtonText"
23
- },
24
- maximumFilesAlreadyUploaded: {
25
- id: "neptune.UploadInput.maximumFilesAlreadyUploaded"
26
- }
27
- });
28
-
29
- module.exports = MESSAGES;
30
- //# sourceMappingURL=UploadInput.messages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UploadInput.messages.js","sources":["../../src/uploadInput/UploadInput.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n fileIsTooLarge: {\n id: 'neptune.UploadInput.fileIsTooLarge',\n defaultMessage: 'File is too large',\n description: 'Error message when the selected file size exceeds the limit',\n },\n fileTypeNotSupported: {\n id: 'neptune.UploadInput.fileTypeNotSupported',\n defaultMessage: 'File type not supported',\n description: 'Error message when the selected file is not one of the supported types',\n },\n deleteModalTitle: {\n id: 'neptune.UploadInput.deleteModalTitle',\n defaultMessage: 'Sure you want to remove this file?',\n description: 'Title to display on delete confirmation modal',\n },\n deleteModalBody: {\n id: 'neptune.UploadInput.deleteModalBody',\n defaultMessage: 'Removing this file will delete it from our system.',\n description: 'Body copy to display on delete confirmation modal',\n },\n deleteModalCancelButtonText: {\n id: 'neptune.UploadInput.deleteModalCancelButtonText',\n defaultMessage: 'Cancel',\n description: 'Cancel button text to display on delete confirmation modal',\n },\n deleteModalConfirmButtonText: {\n id: 'neptune.UploadInput.deleteModalConfirmButtonText',\n defaultMessage: 'Remove',\n description: 'Confirm button text to display on delete confirmation modal',\n },\n maximumFilesAlreadyUploaded: {\n id: 'neptune.UploadInput.maximumFilesAlreadyUploaded',\n defaultMessage:\n 'Sorry, this upload failed because we can only accept {maxFilesAllowed} files at once.',\n description:\n 'When number of files to be uploaded is restricted, this message is displayed below the files that are extra',\n },\n});\n"],"names":["defineMessages","fileIsTooLarge","id","fileTypeNotSupported","deleteModalTitle","deleteModalBody","deleteModalCancelButtonText","deleteModalConfirmButtonText","maximumFilesAlreadyUploaded"],"mappings":";;;;AAEA,eAAeA,wBAAc,CAAC;AAC5BC,EAAAA,cAAc,EAAE;IACdC,EAAE,EAAA,oCAAA;GAGH;AACDC,EAAAA,oBAAoB,EAAE;IACpBD,EAAE,EAAA,0CAAA;GAGH;AACDE,EAAAA,gBAAgB,EAAE;IAChBF,EAAE,EAAA,sCAAA;GAGH;AACDG,EAAAA,eAAe,EAAE;IACfH,EAAE,EAAA,qCAAA;GAGH;AACDI,EAAAA,2BAA2B,EAAE;IAC3BJ,EAAE,EAAA,iDAAA;GAGH;AACDK,EAAAA,4BAA4B,EAAE;IAC5BL,EAAE,EAAA,kDAAA;GAGH;AACDM,EAAAA,2BAA2B,EAAE;IAC3BN,EAAE,EAAA,iDAAA;AAKH,GAAA;AACF,CAAA,CAAC;;;;"}
@@ -1,28 +0,0 @@
1
- import { defineMessages } from 'react-intl';
2
-
3
- var MESSAGES = defineMessages({
4
- fileIsTooLarge: {
5
- id: "neptune.UploadInput.fileIsTooLarge"
6
- },
7
- fileTypeNotSupported: {
8
- id: "neptune.UploadInput.fileTypeNotSupported"
9
- },
10
- deleteModalTitle: {
11
- id: "neptune.UploadInput.deleteModalTitle"
12
- },
13
- deleteModalBody: {
14
- id: "neptune.UploadInput.deleteModalBody"
15
- },
16
- deleteModalCancelButtonText: {
17
- id: "neptune.UploadInput.deleteModalCancelButtonText"
18
- },
19
- deleteModalConfirmButtonText: {
20
- id: "neptune.UploadInput.deleteModalConfirmButtonText"
21
- },
22
- maximumFilesAlreadyUploaded: {
23
- id: "neptune.UploadInput.maximumFilesAlreadyUploaded"
24
- }
25
- });
26
-
27
- export { MESSAGES as default };
28
- //# sourceMappingURL=UploadInput.messages.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"UploadInput.messages.mjs","sources":["../../src/uploadInput/UploadInput.messages.ts"],"sourcesContent":["import { defineMessages } from 'react-intl';\n\nexport default defineMessages({\n fileIsTooLarge: {\n id: 'neptune.UploadInput.fileIsTooLarge',\n defaultMessage: 'File is too large',\n description: 'Error message when the selected file size exceeds the limit',\n },\n fileTypeNotSupported: {\n id: 'neptune.UploadInput.fileTypeNotSupported',\n defaultMessage: 'File type not supported',\n description: 'Error message when the selected file is not one of the supported types',\n },\n deleteModalTitle: {\n id: 'neptune.UploadInput.deleteModalTitle',\n defaultMessage: 'Sure you want to remove this file?',\n description: 'Title to display on delete confirmation modal',\n },\n deleteModalBody: {\n id: 'neptune.UploadInput.deleteModalBody',\n defaultMessage: 'Removing this file will delete it from our system.',\n description: 'Body copy to display on delete confirmation modal',\n },\n deleteModalCancelButtonText: {\n id: 'neptune.UploadInput.deleteModalCancelButtonText',\n defaultMessage: 'Cancel',\n description: 'Cancel button text to display on delete confirmation modal',\n },\n deleteModalConfirmButtonText: {\n id: 'neptune.UploadInput.deleteModalConfirmButtonText',\n defaultMessage: 'Remove',\n description: 'Confirm button text to display on delete confirmation modal',\n },\n maximumFilesAlreadyUploaded: {\n id: 'neptune.UploadInput.maximumFilesAlreadyUploaded',\n defaultMessage:\n 'Sorry, this upload failed because we can only accept {maxFilesAllowed} files at once.',\n description:\n 'When number of files to be uploaded is restricted, this message is displayed below the files that are extra',\n },\n});\n"],"names":["defineMessages","fileIsTooLarge","id","fileTypeNotSupported","deleteModalTitle","deleteModalBody","deleteModalCancelButtonText","deleteModalConfirmButtonText","maximumFilesAlreadyUploaded"],"mappings":";;AAEA,eAAeA,cAAc,CAAC;AAC5BC,EAAAA,cAAc,EAAE;IACdC,EAAE,EAAA,oCAAA;GAGH;AACDC,EAAAA,oBAAoB,EAAE;IACpBD,EAAE,EAAA,0CAAA;GAGH;AACDE,EAAAA,gBAAgB,EAAE;IAChBF,EAAE,EAAA,sCAAA;GAGH;AACDG,EAAAA,eAAe,EAAE;IACfH,EAAE,EAAA,qCAAA;GAGH;AACDI,EAAAA,2BAA2B,EAAE;IAC3BJ,EAAE,EAAA,iDAAA;GAGH;AACDK,EAAAA,4BAA4B,EAAE;IAC5BL,EAAE,EAAA,kDAAA;GAGH;AACDM,EAAAA,2BAA2B,EAAE;IAC3BN,EAAE,EAAA,iDAAA;AAKH,GAAA;AACF,CAAA,CAAC;;;;"}
@@ -1,258 +0,0 @@
1
- import { useTheme } from '@wise/components-theming';
2
- import classNames from 'classnames';
3
- import { useState, useRef, useEffect } from 'react';
4
- import { useIntl } from 'react-intl';
5
- import Button from '../button/Button.mjs';
6
- import Modal from '../modal/Modal.mjs';
7
- import MESSAGES from './UploadInput.messages.mjs';
8
- import UploadButton from './uploadButton/UploadButton.mjs';
9
- import { imageFileTypes, DEFAULT_SIZE_LIMIT } from './uploadButton/defaults.mjs';
10
- import UploadItem from './uploadItem/UploadItem.mjs';
11
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
12
- import { isTypeValid } from '../upload/utils/isTypeValid/isTypeValid.mjs';
13
- import { isSizeValid } from '../upload/utils/isSizeValid/isSizeValid.mjs';
14
- import { Status } from '../common/propsValues/status.mjs';
15
- import { Priority, ControlType } from '../common/propsValues/control.mjs';
16
-
17
- function generateFileId(file) {
18
- const {
19
- name,
20
- size
21
- } = file;
22
- const uploadTimeStamp = new Date().getTime();
23
- return `${name}_${size}_${uploadTimeStamp}`;
24
- }
25
- const UploadInput = ({
26
- files = [],
27
- fileInputName = 'file',
28
- className,
29
- deleteConfirm,
30
- disabled,
31
- multiple = false,
32
- fileTypes = imageFileTypes,
33
- sizeLimit = DEFAULT_SIZE_LIMIT,
34
- description,
35
- onUploadFile,
36
- onDeleteFile,
37
- onValidationError,
38
- onFilesChange,
39
- onDownload,
40
- maxFiles,
41
- maxFilesErrorMessage,
42
- id,
43
- sizeLimitErrorMessage,
44
- uploadButtonTitle
45
- }) => {
46
- const {
47
- isModern
48
- } = useTheme();
49
- const [markedFileForDelete, setMarkedFileForDelete] = useState(null);
50
- const [mounted, setMounted] = useState(false);
51
- const {
52
- formatMessage
53
- } = useIntl();
54
- const PROGRESS_STATUSES = new Set([Status.PENDING, Status.PROCESSING]);
55
- const [uploadedFiles, setUploadedFiles] = useState(multiple || files.length === 0 ? files : [files[0]]);
56
- const uploadedFilesListReference = useRef(multiple || files.length === 0 ? files : [files[0]]);
57
- function addFileToList(recentUploadedFile) {
58
- function addToList(listToAddTo) {
59
- return [...listToAddTo, recentUploadedFile];
60
- }
61
- setUploadedFiles(addToList);
62
- uploadedFilesListReference.current = addToList(uploadedFilesListReference.current);
63
- }
64
- const removeFileFromList = file => {
65
- function filterOutFrom(listToFilterFrom) {
66
- return listToFilterFrom.filter(fileInList => file !== fileInList && file.id !== fileInList.id);
67
- }
68
- setUploadedFiles(filterOutFrom);
69
- uploadedFilesListReference.current = filterOutFrom(uploadedFilesListReference.current);
70
- };
71
- const modifyFileInList = (file, updates) => {
72
- const updateListItem = listToUpdate => listToUpdate.map(fileInList => {
73
- return fileInList === file || fileInList.id === file.id ? {
74
- ...file,
75
- ...updates
76
- } : fileInList;
77
- });
78
- setUploadedFiles(updateListItem);
79
- uploadedFilesListReference.current = updateListItem(uploadedFilesListReference.current);
80
- };
81
- const removeFile = file => {
82
- const {
83
- id,
84
- status
85
- } = file;
86
- if (status === Status.FAILED) {
87
- // If removing a failed upload, we're just updating the view
88
- removeFileFromList(file);
89
- } else if (onDeleteFile && id) {
90
- // Set status to PROCESSING
91
- modifyFileInList(file, {
92
- status: Status.PROCESSING,
93
- error: undefined
94
- });
95
- // Notify host app about deletion
96
- onDeleteFile(id).then(() => removeFileFromList(file)).catch(error => {
97
- modifyFileInList(file, {
98
- error: error
99
- });
100
- });
101
- }
102
- };
103
- function handleFileUploadFailure(file, failureMessage) {
104
- const {
105
- name
106
- } = file;
107
- const id = generateFileId(file);
108
- const failedUpload = {
109
- id,
110
- filename: name,
111
- status: Status.FAILED,
112
- error: failureMessage
113
- };
114
- addFileToList(failedUpload);
115
- if (onValidationError) {
116
- onValidationError(failedUpload);
117
- }
118
- }
119
- function getNumberOfFilesUploaded() {
120
- const uploadInitiatedStatus = new Set([Status.SUCCEEDED, Status.PENDING]);
121
- const validFiles = uploadedFilesListReference.current.filter(file => file.status && uploadInitiatedStatus.has(file.status));
122
- return validFiles.length;
123
- }
124
- function areMaximumFilesUploadedAlready() {
125
- if (!maxFiles) {
126
- return false;
127
- }
128
- const numberOfValidFiles = getNumberOfFilesUploaded();
129
- return numberOfValidFiles >= maxFiles;
130
- }
131
- // One or more files selected, create entries for them
132
- const addFiles = selectedFiles => {
133
- for (let i = 0; i < selectedFiles.length; i += 1) {
134
- const file = selectedFiles.item(i);
135
- // Returning a FormData[] array instead of FileList so we can filter out incorrect files
136
- const formData = new FormData();
137
- if (file) {
138
- const {
139
- name
140
- } = file;
141
- const id = generateFileId(file);
142
- const allowedFileTypes = Array.isArray(fileTypes) ? fileTypes.join(',') : fileTypes;
143
- // Check if file type is valid
144
- if (!isTypeValid(file, allowedFileTypes)) {
145
- handleFileUploadFailure(file, formatMessage(MESSAGES.fileTypeNotSupported));
146
- continue;
147
- }
148
- // Check if the filesize is valid
149
- // Convert to rough bytes
150
- if (!isSizeValid(file, sizeLimit * 1000)) {
151
- const failureMessage = sizeLimitErrorMessage || formatMessage(MESSAGES.fileIsTooLarge);
152
- handleFileUploadFailure(file, failureMessage);
153
- continue;
154
- }
155
- if (areMaximumFilesUploadedAlready()) {
156
- const failureMessage = maxFilesErrorMessage || formatMessage(MESSAGES.maximumFilesAlreadyUploaded, {
157
- maxFilesAllowed: maxFiles
158
- });
159
- handleFileUploadFailure(file, failureMessage);
160
- continue;
161
- }
162
- formData.append(fileInputName, file);
163
- const pendingFile = {
164
- id,
165
- filename: name,
166
- status: Status.PENDING
167
- };
168
- addFileToList(pendingFile);
169
- // Start uploading the file
170
- onUploadFile(formData).then(({
171
- id,
172
- url,
173
- error
174
- }) => {
175
- // Replace the temporary id with the final one received from the API, and also set any errors
176
- modifyFileInList(pendingFile, {
177
- id,
178
- url,
179
- error,
180
- status: Status.SUCCEEDED
181
- });
182
- }).catch(error => {
183
- modifyFileInList(pendingFile, {
184
- error: error,
185
- status: Status.FAILED
186
- });
187
- });
188
- if (!multiple) {
189
- // Only upload a single file
190
- break;
191
- }
192
- }
193
- }
194
- };
195
- useEffect(() => {
196
- setMounted(true);
197
- }, []);
198
- useEffect(() => {
199
- if (onFilesChange && mounted) {
200
- onFilesChange([...uploadedFiles]);
201
- }
202
- }, [onFilesChange, uploadedFiles]); // eslint-disable-line react-hooks/exhaustive-deps
203
- return /*#__PURE__*/jsxs(Fragment, {
204
- children: [/*#__PURE__*/jsxs("div", {
205
- className: classNames('np-upload-input', className, {
206
- disabled: isModern && disabled
207
- }),
208
- children: [uploadedFiles.map(file => /*#__PURE__*/jsx(UploadItem, {
209
- file: file,
210
- singleFileUpload: !multiple,
211
- canDelete: (!!onDeleteFile || file.status === Status.FAILED) && (!file.status || !PROGRESS_STATUSES.has(file.status)),
212
- onDelete: file.status === Status.FAILED ? () => removeFile(file) : () => setMarkedFileForDelete(file),
213
- onDownload: onDownload
214
- }, file.id)), (multiple || !multiple && !uploadedFiles.length) && /*#__PURE__*/jsx(UploadButton, {
215
- id: id,
216
- uploadButtonTitle: uploadButtonTitle,
217
- disabled: areMaximumFilesUploadedAlready() || disabled,
218
- multiple: multiple,
219
- fileTypes: fileTypes,
220
- sizeLimit: sizeLimit,
221
- description: description,
222
- maxFiles: maxFiles,
223
- multipleFileInputWithFilesAdded: multiple && uploadedFiles.length > 0,
224
- onChange: addFiles
225
- })]
226
- }), /*#__PURE__*/jsx(Modal, {
227
- title: deleteConfirm?.title !== undefined ? deleteConfirm.title : formatMessage(MESSAGES.deleteModalTitle),
228
- body: deleteConfirm?.body !== undefined ? deleteConfirm.body : formatMessage(MESSAGES.deleteModalBody),
229
- open: !!markedFileForDelete,
230
- footer: /*#__PURE__*/jsxs(Fragment, {
231
- children: [/*#__PURE__*/jsx(Button, {
232
- block: true,
233
- onClick: () => {
234
- setMarkedFileForDelete(null);
235
- },
236
- children: deleteConfirm?.cancelText || formatMessage(MESSAGES.deleteModalCancelButtonText)
237
- }), /*#__PURE__*/jsx(Button, {
238
- block: true,
239
- priority: Priority.SECONDARY,
240
- type: ControlType.NEGATIVE,
241
- onClick: () => {
242
- if (markedFileForDelete) {
243
- removeFile(markedFileForDelete);
244
- }
245
- setMarkedFileForDelete(null);
246
- },
247
- children: deleteConfirm?.confirmText || formatMessage(MESSAGES.deleteModalConfirmButtonText)
248
- })]
249
- }),
250
- onClose: () => {
251
- setMarkedFileForDelete(null);
252
- }
253
- })]
254
- });
255
- };
256
-
257
- export { UploadInput as default };
258
- //# sourceMappingURL=UploadInput.mjs.map