@veeqo/ui 14.0.3 → 14.0.5

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 (1303) hide show
  1. package/dist/components/Accordion/Accordion.cjs.map +1 -1
  2. package/dist/components/Accordion/Accordion.js.map +1 -1
  3. package/dist/components/Accordion/styled.cjs.map +1 -1
  4. package/dist/components/Accordion/styled.js.map +1 -1
  5. package/dist/components/ActionMenu/ActionMenu.cjs +2 -2
  6. package/dist/components/ActionMenu/ActionMenu.cjs.map +1 -1
  7. package/dist/components/ActionMenu/ActionMenu.js +2 -2
  8. package/dist/components/ActionMenu/ActionMenu.js.map +1 -1
  9. package/dist/components/ActionMenu/styled.cjs.map +1 -1
  10. package/dist/components/ActionMenu/styled.js.map +1 -1
  11. package/dist/components/Alerts/Alert/Alert.cjs +2 -2
  12. package/dist/components/Alerts/Alert/Alert.cjs.map +1 -1
  13. package/dist/components/Alerts/Alert/Alert.js +2 -2
  14. package/dist/components/Alerts/Alert/Alert.js.map +1 -1
  15. package/dist/components/Alerts/MiniAlert/MiniAlert.cjs.map +1 -1
  16. package/dist/components/Alerts/MiniAlert/MiniAlert.js.map +1 -1
  17. package/dist/components/Alerts/constants.cjs.map +1 -1
  18. package/dist/components/Alerts/constants.js.map +1 -1
  19. package/dist/components/Anchor/Anchor.cjs.map +1 -1
  20. package/dist/components/Anchor/Anchor.js.map +1 -1
  21. package/dist/components/Anchor/isExternalLink.cjs +1 -1
  22. package/dist/components/Anchor/isExternalLink.cjs.map +1 -1
  23. package/dist/components/Anchor/isExternalLink.js +1 -1
  24. package/dist/components/Anchor/isExternalLink.js.map +1 -1
  25. package/dist/components/Anchor/utils/urlUtils.cjs +1 -1
  26. package/dist/components/Anchor/utils/urlUtils.cjs.map +1 -1
  27. package/dist/components/Anchor/utils/urlUtils.js +1 -1
  28. package/dist/components/Anchor/utils/urlUtils.js.map +1 -1
  29. package/dist/components/AnimatedDropdown/AnimatedDropdown.cjs.map +1 -1
  30. package/dist/components/AnimatedDropdown/AnimatedDropdown.js.map +1 -1
  31. package/dist/components/AnimatedDropdown/components/BasicDropdown.cjs.map +1 -1
  32. package/dist/components/AnimatedDropdown/components/BasicDropdown.js.map +1 -1
  33. package/dist/components/AnimatedDropdown/hooks/useClickAway.cjs.map +1 -1
  34. package/dist/components/AnimatedDropdown/hooks/useClickAway.js.map +1 -1
  35. package/dist/components/Avatar/Avatar.cjs +1 -1
  36. package/dist/components/Avatar/Avatar.cjs.map +1 -1
  37. package/dist/components/Avatar/Avatar.js +1 -1
  38. package/dist/components/Avatar/Avatar.js.map +1 -1
  39. package/dist/components/Badge/Badge.cjs.map +1 -1
  40. package/dist/components/Badge/Badge.js +1 -1
  41. package/dist/components/Badge/Badge.js.map +1 -1
  42. package/dist/components/Badge/styled.cjs.map +1 -1
  43. package/dist/components/Badge/styled.js.map +1 -1
  44. package/dist/components/Banner/Banner.cjs.map +1 -1
  45. package/dist/components/Banner/Banner.js.map +1 -1
  46. package/dist/components/Banner/styled.cjs.map +1 -1
  47. package/dist/components/Banner/styled.js.map +1 -1
  48. package/dist/components/Breadcrumbs/Breadcrumbs.cjs.map +1 -1
  49. package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
  50. package/dist/components/Breadcrumbs/components/Breadcrumb.cjs.map +1 -1
  51. package/dist/components/Breadcrumbs/components/Breadcrumb.js.map +1 -1
  52. package/dist/components/Breadcrumbs/components/styled.cjs.map +1 -1
  53. package/dist/components/Breadcrumbs/components/styled.js.map +1 -1
  54. package/dist/components/Button/Button.cjs.map +1 -1
  55. package/dist/components/Button/Button.js +1 -1
  56. package/dist/components/Button/Button.js.map +1 -1
  57. package/dist/components/Button/components/styled.cjs.map +1 -1
  58. package/dist/components/Button/components/styled.js.map +1 -1
  59. package/dist/components/Calendars/components/Calendar/Calendar.cjs.map +1 -1
  60. package/dist/components/Calendars/components/Calendar/Calendar.js.map +1 -1
  61. package/dist/components/Calendars/components/Calendar/styled.cjs.map +1 -1
  62. package/dist/components/Calendars/components/Calendar/styled.js.map +1 -1
  63. package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.cjs.map +1 -1
  64. package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.js.map +1 -1
  65. package/dist/components/Calendars/components/RangeCalendar/styled.cjs.map +1 -1
  66. package/dist/components/Calendars/components/RangeCalendar/styled.js.map +1 -1
  67. package/dist/components/Calendars/components/subcomponents/CalendarGrid/CalendarGrid.cjs.map +1 -1
  68. package/dist/components/Calendars/components/subcomponents/CalendarGrid/CalendarGrid.js.map +1 -1
  69. package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/DodecadeCalendar.cjs.map +1 -1
  70. package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/DodecadeCalendar.js.map +1 -1
  71. package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/MonthCalendar.cjs.map +1 -1
  72. package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/MonthCalendar.js.map +1 -1
  73. package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/YearCalendar.cjs.map +1 -1
  74. package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/YearCalendar.js.map +1 -1
  75. package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/styled.cjs.map +1 -1
  76. package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/styled.js.map +1 -1
  77. package/dist/components/Calendars/components/subcomponents/CalendarHeader.cjs.map +1 -1
  78. package/dist/components/Calendars/components/subcomponents/CalendarHeader.js.map +1 -1
  79. package/dist/components/Calendars/components/subcomponents/CalendarHeading.cjs.map +1 -1
  80. package/dist/components/Calendars/components/subcomponents/CalendarHeading.js.map +1 -1
  81. package/dist/components/Calendars/components/subcomponents/CalendarStyles/CalendarStyles.cjs.map +1 -1
  82. package/dist/components/Calendars/components/subcomponents/CalendarStyles/CalendarStyles.js.map +1 -1
  83. package/dist/components/Calendars/components/subcomponents/CalendarStyles/buttonStyles.cjs.map +1 -1
  84. package/dist/components/Calendars/components/subcomponents/CalendarStyles/buttonStyles.js.map +1 -1
  85. package/dist/components/Calendars/components/subcomponents/CalendarStyles/calendarCellStyles.cjs.map +1 -1
  86. package/dist/components/Calendars/components/subcomponents/CalendarStyles/calendarCellStyles.js.map +1 -1
  87. package/dist/components/Calendars/components/subcomponents/CalendarStyles/headerStyles.cjs.map +1 -1
  88. package/dist/components/Calendars/components/subcomponents/CalendarStyles/headerStyles.js.map +1 -1
  89. package/dist/components/Calendars/data/constants.cjs.map +1 -1
  90. package/dist/components/Calendars/data/constants.js.map +1 -1
  91. package/dist/components/Calendars/data/useCalendar.cjs +2 -2
  92. package/dist/components/Calendars/data/useCalendar.cjs.map +1 -1
  93. package/dist/components/Calendars/data/useCalendar.js +2 -2
  94. package/dist/components/Calendars/data/useCalendar.js.map +1 -1
  95. package/dist/components/Calendars/data/useCalendarLevels.cjs.map +1 -1
  96. package/dist/components/Calendars/data/useCalendarLevels.js.map +1 -1
  97. package/dist/components/Calendars/data/useIsDateUnavailable.cjs.map +1 -1
  98. package/dist/components/Calendars/data/useIsDateUnavailable.js.map +1 -1
  99. package/dist/components/Calendars/data/useRangeCalendar.cjs +3 -3
  100. package/dist/components/Calendars/data/useRangeCalendar.cjs.map +1 -1
  101. package/dist/components/Calendars/data/useRangeCalendar.js +3 -3
  102. package/dist/components/Calendars/data/useRangeCalendar.js.map +1 -1
  103. package/dist/components/Calendars/types.cjs.map +1 -1
  104. package/dist/components/Calendars/types.js.map +1 -1
  105. package/dist/components/Card/Card.cjs.map +1 -1
  106. package/dist/components/Card/Card.js.map +1 -1
  107. package/dist/components/Card/styled.cjs.map +1 -1
  108. package/dist/components/Card/styled.js.map +1 -1
  109. package/dist/components/CardHeader/CardHeader.cjs.map +1 -1
  110. package/dist/components/CardHeader/CardHeader.js.map +1 -1
  111. package/dist/components/CarrierMark/constants.cjs.map +1 -1
  112. package/dist/components/CarrierMark/constants.js.map +1 -1
  113. package/dist/components/ChannelMark/constants.cjs.map +1 -1
  114. package/dist/components/ChannelMark/constants.js.map +1 -1
  115. package/dist/components/Checkbox/Checkbox.cjs +1 -1
  116. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  117. package/dist/components/Checkbox/Checkbox.js +1 -1
  118. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  119. package/dist/components/Checkbox/styled.cjs.map +1 -1
  120. package/dist/components/Checkbox/styled.js.map +1 -1
  121. package/dist/components/Choice/Choice.cjs.map +1 -1
  122. package/dist/components/Choice/Choice.js.map +1 -1
  123. package/dist/components/Choice/components/styled.cjs.map +1 -1
  124. package/dist/components/Choice/components/styled.js.map +1 -1
  125. package/dist/components/ChoiceList/ChoiceList.cjs.map +1 -1
  126. package/dist/components/ChoiceList/ChoiceList.js.map +1 -1
  127. package/dist/components/ChoiceList/styled.cjs.map +1 -1
  128. package/dist/components/ChoiceList/styled.js.map +1 -1
  129. package/dist/components/Container/Container.cjs.map +1 -1
  130. package/dist/components/Container/Container.js.map +1 -1
  131. package/dist/components/CopyToClipboard/CopyToClipboard.cjs.map +1 -1
  132. package/dist/components/CopyToClipboard/CopyToClipboard.js.map +1 -1
  133. package/dist/components/DataGrid/DataGrid.cjs +2 -2
  134. package/dist/components/DataGrid/DataGrid.cjs.map +1 -1
  135. package/dist/components/DataGrid/DataGrid.js +3 -3
  136. package/dist/components/DataGrid/DataGrid.js.map +1 -1
  137. package/dist/components/DataGrid/DataGrid.module.scss.cjs +1 -1
  138. package/dist/components/DataGrid/DataGrid.module.scss.cjs.map +1 -1
  139. package/dist/components/DataGrid/DataGrid.module.scss.js +1 -1
  140. package/dist/components/DataGrid/DataGrid.module.scss.js.map +1 -1
  141. package/dist/components/DataGrid/columns/SelectionColumnDefinition.cjs +3 -3
  142. package/dist/components/DataGrid/columns/SelectionColumnDefinition.cjs.map +1 -1
  143. package/dist/components/DataGrid/columns/SelectionColumnDefinition.js +3 -3
  144. package/dist/components/DataGrid/columns/SelectionColumnDefinition.js.map +1 -1
  145. package/dist/components/DataGrid/components/Body/Body.cjs +3 -3
  146. package/dist/components/DataGrid/components/Body/Body.cjs.map +1 -1
  147. package/dist/components/DataGrid/components/Body/Body.js +3 -3
  148. package/dist/components/DataGrid/components/Body/Body.js.map +1 -1
  149. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.cjs.map +1 -1
  150. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.js.map +1 -1
  151. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.scss.cjs +1 -1
  152. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.scss.cjs.map +1 -1
  153. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.scss.js +1 -1
  154. package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.module.scss.js.map +1 -1
  155. package/dist/components/DataGrid/components/Body/BodyCell/hooks/useExpandableCell.cjs +1 -1
  156. package/dist/components/DataGrid/components/Body/BodyCell/hooks/useExpandableCell.cjs.map +1 -1
  157. package/dist/components/DataGrid/components/Body/BodyCell/hooks/useExpandableCell.js +1 -1
  158. package/dist/components/DataGrid/components/Body/BodyCell/hooks/useExpandableCell.js.map +1 -1
  159. package/dist/components/DataGrid/components/Body/EmptyBody/EmptyBody.cjs.map +1 -1
  160. package/dist/components/DataGrid/components/Body/EmptyBody/EmptyBody.js.map +1 -1
  161. package/dist/components/DataGrid/components/Body/LoadingBody/LoadingBody.cjs.map +1 -1
  162. package/dist/components/DataGrid/components/Body/LoadingBody/LoadingBody.js.map +1 -1
  163. package/dist/components/DataGrid/components/Body/LoadingBody/LoadingBodyCell.cjs.map +1 -1
  164. package/dist/components/DataGrid/components/Body/LoadingBody/LoadingBodyCell.js.map +1 -1
  165. package/dist/components/DataGrid/components/Body/Row/Row.cjs.map +1 -1
  166. package/dist/components/DataGrid/components/Body/Row/Row.js.map +1 -1
  167. package/dist/components/DataGrid/components/Body/Row/hooks/useRowTheme.cjs +2 -2
  168. package/dist/components/DataGrid/components/Body/Row/hooks/useRowTheme.cjs.map +1 -1
  169. package/dist/components/DataGrid/components/Body/Row/hooks/useRowTheme.js +2 -2
  170. package/dist/components/DataGrid/components/Body/Row/hooks/useRowTheme.js.map +1 -1
  171. package/dist/components/DataGrid/components/CellContent/CellContent.cjs.map +1 -1
  172. package/dist/components/DataGrid/components/CellContent/CellContent.js.map +1 -1
  173. package/dist/components/DataGrid/components/CellContent/ExpandButton/ExpandButton.cjs.map +1 -1
  174. package/dist/components/DataGrid/components/CellContent/ExpandButton/ExpandButton.js.map +1 -1
  175. package/dist/components/DataGrid/components/Columns/Columns.cjs.map +1 -1
  176. package/dist/components/DataGrid/components/Columns/Columns.js.map +1 -1
  177. package/dist/components/DataGrid/components/Footer/Footer.cjs.map +1 -1
  178. package/dist/components/DataGrid/components/Footer/Footer.js.map +1 -1
  179. package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.cjs.map +1 -1
  180. package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.js.map +1 -1
  181. package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.scss.cjs +1 -1
  182. package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.scss.cjs.map +1 -1
  183. package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.scss.js +1 -1
  184. package/dist/components/DataGrid/components/Footer/FooterCell/FooterCell.module.scss.js.map +1 -1
  185. package/dist/components/DataGrid/components/GridContainer/Container/Container.cjs.map +1 -1
  186. package/dist/components/DataGrid/components/GridContainer/Container/Container.js.map +1 -1
  187. package/dist/components/DataGrid/components/GridContainer/GridContainer.cjs.map +1 -1
  188. package/dist/components/DataGrid/components/GridContainer/GridContainer.js.map +1 -1
  189. package/dist/components/DataGrid/components/Header/Header.cjs.map +1 -1
  190. package/dist/components/DataGrid/components/Header/Header.js.map +1 -1
  191. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.cjs +1 -1
  192. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.cjs.map +1 -1
  193. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.js +1 -1
  194. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.js.map +1 -1
  195. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.scss.cjs +1 -1
  196. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.scss.cjs.map +1 -1
  197. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.scss.js +1 -1
  198. package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.module.scss.js.map +1 -1
  199. package/dist/components/DataGrid/components/Header/HeaderCell/SortIcon/SortIcon.cjs.map +1 -1
  200. package/dist/components/DataGrid/components/Header/HeaderCell/SortIcon/SortIcon.js.map +1 -1
  201. package/dist/components/DataGrid/components/Header/Resizer/Resizer.cjs.map +1 -1
  202. package/dist/components/DataGrid/components/Header/Resizer/Resizer.js.map +1 -1
  203. package/dist/components/DataGrid/constants.cjs.map +1 -1
  204. package/dist/components/DataGrid/constants.js.map +1 -1
  205. package/dist/components/DataGrid/hooks/useColumnState.cjs +2 -2
  206. package/dist/components/DataGrid/hooks/useColumnState.cjs.map +1 -1
  207. package/dist/components/DataGrid/hooks/useColumnState.js +2 -2
  208. package/dist/components/DataGrid/hooks/useColumnState.js.map +1 -1
  209. package/dist/components/DataGrid/hooks/useColumnWidthState.cjs.map +1 -1
  210. package/dist/components/DataGrid/hooks/useColumnWidthState.js.map +1 -1
  211. package/dist/components/DataGrid/hooks/useExpandedState.cjs.map +1 -1
  212. package/dist/components/DataGrid/hooks/useExpandedState.js.map +1 -1
  213. package/dist/components/DataGrid/hooks/useKeyboardNavigation.cjs +2 -2
  214. package/dist/components/DataGrid/hooks/useKeyboardNavigation.cjs.map +1 -1
  215. package/dist/components/DataGrid/hooks/useKeyboardNavigation.js +2 -2
  216. package/dist/components/DataGrid/hooks/useKeyboardNavigation.js.map +1 -1
  217. package/dist/components/DataGrid/hooks/usePinnedColumnLayout.cjs.map +1 -1
  218. package/dist/components/DataGrid/hooks/usePinnedColumnLayout.js.map +1 -1
  219. package/dist/components/DataGrid/hooks/usePinnedColumnStyles.cjs.map +1 -1
  220. package/dist/components/DataGrid/hooks/usePinnedColumnStyles.js +1 -1
  221. package/dist/components/DataGrid/hooks/usePinnedColumnStyles.js.map +1 -1
  222. package/dist/components/DataGrid/hooks/useSelectionState.cjs +1 -1
  223. package/dist/components/DataGrid/hooks/useSelectionState.cjs.map +1 -1
  224. package/dist/components/DataGrid/hooks/useSelectionState.js +1 -1
  225. package/dist/components/DataGrid/hooks/useSelectionState.js.map +1 -1
  226. package/dist/components/DataGrid/hooks/useSortingState.cjs.map +1 -1
  227. package/dist/components/DataGrid/hooks/useSortingState.js.map +1 -1
  228. package/dist/components/DataGrid/utils/ColumnMapper.cjs +6 -6
  229. package/dist/components/DataGrid/utils/ColumnMapper.cjs.map +1 -1
  230. package/dist/components/DataGrid/utils/ColumnMapper.js +7 -7
  231. package/dist/components/DataGrid/utils/ColumnMapper.js.map +1 -1
  232. package/dist/components/DataGrid/utils/getAriaRoles.cjs.map +1 -1
  233. package/dist/components/DataGrid/utils/getAriaRoles.js.map +1 -1
  234. package/dist/components/DataGrid/utils/getRangeSelection.cjs +1 -1
  235. package/dist/components/DataGrid/utils/getRangeSelection.cjs.map +1 -1
  236. package/dist/components/DataGrid/utils/getRangeSelection.js +1 -1
  237. package/dist/components/DataGrid/utils/getRangeSelection.js.map +1 -1
  238. package/dist/components/DataGrid/utils/isLastColumn.cjs.map +1 -1
  239. package/dist/components/DataGrid/utils/isLastColumn.js.map +1 -1
  240. package/dist/components/DataGrid/utils/pinnedColumnUtils.cjs.map +1 -1
  241. package/dist/components/DataGrid/utils/pinnedColumnUtils.js.map +1 -1
  242. package/dist/components/DataTable/DataTable.cjs +6 -6
  243. package/dist/components/DataTable/DataTable.cjs.map +1 -1
  244. package/dist/components/DataTable/DataTable.js +6 -6
  245. package/dist/components/DataTable/DataTable.js.map +1 -1
  246. package/dist/components/DataTable/components/ActionBar.cjs +3 -3
  247. package/dist/components/DataTable/components/ActionBar.cjs.map +1 -1
  248. package/dist/components/DataTable/components/ActionBar.js +3 -3
  249. package/dist/components/DataTable/components/ActionBar.js.map +1 -1
  250. package/dist/components/DataTable/components/Cell.cjs.map +1 -1
  251. package/dist/components/DataTable/components/Cell.js +1 -1
  252. package/dist/components/DataTable/components/Cell.js.map +1 -1
  253. package/dist/components/DataTable/components/ColumnDivider.cjs +2 -2
  254. package/dist/components/DataTable/components/ColumnDivider.cjs.map +1 -1
  255. package/dist/components/DataTable/components/ColumnDivider.js +2 -2
  256. package/dist/components/DataTable/components/ColumnDivider.js.map +1 -1
  257. package/dist/components/DataTable/components/ColumnHeader.cjs.map +1 -1
  258. package/dist/components/DataTable/components/ColumnHeader.js.map +1 -1
  259. package/dist/components/DataTable/components/ColumnMenu.cjs.map +1 -1
  260. package/dist/components/DataTable/components/ColumnMenu.js.map +1 -1
  261. package/dist/components/DataTable/components/EmptyBodyContent.cjs.map +1 -1
  262. package/dist/components/DataTable/components/EmptyBodyContent.js.map +1 -1
  263. package/dist/components/DataTable/components/Header.cjs.map +1 -1
  264. package/dist/components/DataTable/components/Header.js.map +1 -1
  265. package/dist/components/DataTable/components/LoadingCellContent.cjs.map +1 -1
  266. package/dist/components/DataTable/components/LoadingCellContent.js.map +1 -1
  267. package/dist/components/DataTable/components/Row.cjs.map +1 -1
  268. package/dist/components/DataTable/components/Row.js.map +1 -1
  269. package/dist/components/DataTable/components/SelectionCell.cjs.map +1 -1
  270. package/dist/components/DataTable/components/SelectionCell.js.map +1 -1
  271. package/dist/components/DataTable/components/SelectionHeader.cjs.map +1 -1
  272. package/dist/components/DataTable/components/SelectionHeader.js.map +1 -1
  273. package/dist/components/DataTable/components/StickyHead.cjs +7 -7
  274. package/dist/components/DataTable/components/StickyHead.cjs.map +1 -1
  275. package/dist/components/DataTable/components/StickyHead.js +7 -7
  276. package/dist/components/DataTable/components/StickyHead.js.map +1 -1
  277. package/dist/components/DataTable/components/TableGrid.cjs.map +1 -1
  278. package/dist/components/DataTable/components/TableGrid.js.map +1 -1
  279. package/dist/components/DataTable/components/Wrapper.cjs.map +1 -1
  280. package/dist/components/DataTable/components/Wrapper.js.map +1 -1
  281. package/dist/components/DataTable/hooks/useCellWidths.cjs +1 -1
  282. package/dist/components/DataTable/hooks/useCellWidths.cjs.map +1 -1
  283. package/dist/components/DataTable/hooks/useCellWidths.js +1 -1
  284. package/dist/components/DataTable/hooks/useCellWidths.js.map +1 -1
  285. package/dist/components/DataTable/hooks/useColumnWidths.cjs +1 -1
  286. package/dist/components/DataTable/hooks/useColumnWidths.cjs.map +1 -1
  287. package/dist/components/DataTable/hooks/useColumnWidths.js +1 -1
  288. package/dist/components/DataTable/hooks/useColumnWidths.js.map +1 -1
  289. package/dist/components/DataTable/hooks/useColumns.cjs.map +1 -1
  290. package/dist/components/DataTable/hooks/useColumns.js.map +1 -1
  291. package/dist/components/DataTable/hooks/useNested.cjs.map +1 -1
  292. package/dist/components/DataTable/hooks/useNested.js.map +1 -1
  293. package/dist/components/DataTable/hooks/useSelection.cjs +1 -1
  294. package/dist/components/DataTable/hooks/useSelection.cjs.map +1 -1
  295. package/dist/components/DataTable/hooks/useSelection.js +1 -1
  296. package/dist/components/DataTable/hooks/useSelection.js.map +1 -1
  297. package/dist/components/DataTable/renderers/renderCell.cjs.map +1 -1
  298. package/dist/components/DataTable/renderers/renderCell.js.map +1 -1
  299. package/dist/components/DataTable/renderers/renderFooter.cjs.map +1 -1
  300. package/dist/components/DataTable/renderers/renderFooter.js.map +1 -1
  301. package/dist/components/DataTable/renderers/renderHeader.cjs +1 -1
  302. package/dist/components/DataTable/renderers/renderHeader.cjs.map +1 -1
  303. package/dist/components/DataTable/renderers/renderHeader.js +1 -1
  304. package/dist/components/DataTable/renderers/renderHeader.js.map +1 -1
  305. package/dist/components/DataTable/renderers/renderLoadingCell.cjs.map +1 -1
  306. package/dist/components/DataTable/renderers/renderLoadingCell.js.map +1 -1
  307. package/dist/components/DataTable/renderers/renderNestedCell.cjs.map +1 -1
  308. package/dist/components/DataTable/renderers/renderNestedCell.js.map +1 -1
  309. package/dist/components/DataTable/types.cjs.map +1 -1
  310. package/dist/components/DataTable/types.js.map +1 -1
  311. package/dist/components/DataTable/utils/GetSortIcon.cjs.map +1 -1
  312. package/dist/components/DataTable/utils/GetSortIcon.js.map +1 -1
  313. package/dist/components/DataTable/utils/customEventEmitter.cjs.map +1 -1
  314. package/dist/components/DataTable/utils/customEventEmitter.js.map +1 -1
  315. package/dist/components/DataTable/utils/generateTableCss.cjs +1 -1
  316. package/dist/components/DataTable/utils/generateTableCss.cjs.map +1 -1
  317. package/dist/components/DataTable/utils/generateTableCss.js +1 -1
  318. package/dist/components/DataTable/utils/generateTableCss.js.map +1 -1
  319. package/dist/components/DataTable/utils/getNextSortState.cjs.map +1 -1
  320. package/dist/components/DataTable/utils/getNextSortState.js.map +1 -1
  321. package/dist/components/DataTable/utils/getRangeSelection.cjs.map +1 -1
  322. package/dist/components/DataTable/utils/getRangeSelection.js.map +1 -1
  323. package/dist/components/DataTable/utils/getRowState.cjs +3 -3
  324. package/dist/components/DataTable/utils/getRowState.cjs.map +1 -1
  325. package/dist/components/DataTable/utils/getRowState.js +3 -3
  326. package/dist/components/DataTable/utils/getRowState.js.map +1 -1
  327. package/dist/components/DataTable/utils/parseWidth.cjs.map +1 -1
  328. package/dist/components/DataTable/utils/parseWidth.js.map +1 -1
  329. package/dist/components/DataTable/utils/sumAll.cjs.map +1 -1
  330. package/dist/components/DataTable/utils/sumAll.js.map +1 -1
  331. package/dist/components/DateInputField/DateInputField.cjs +3 -3
  332. package/dist/components/DateInputField/DateInputField.cjs.map +1 -1
  333. package/dist/components/DateInputField/DateInputField.js +3 -3
  334. package/dist/components/DateInputField/DateInputField.js.map +1 -1
  335. package/dist/components/DateInputField/styled.cjs.map +1 -1
  336. package/dist/components/DateInputField/styled.js.map +1 -1
  337. package/dist/components/DatePicker/DatePicker.cjs +1 -1
  338. package/dist/components/DatePicker/DatePicker.cjs.map +1 -1
  339. package/dist/components/DatePicker/DatePicker.js +1 -1
  340. package/dist/components/DatePicker/DatePicker.js.map +1 -1
  341. package/dist/components/DatePicker/styled.cjs.map +1 -1
  342. package/dist/components/DatePicker/styled.js.map +1 -1
  343. package/dist/components/DateRangePicker/DateRangePicker.cjs +4 -4
  344. package/dist/components/DateRangePicker/DateRangePicker.cjs.map +1 -1
  345. package/dist/components/DateRangePicker/DateRangePicker.js +4 -4
  346. package/dist/components/DateRangePicker/DateRangePicker.js.map +1 -1
  347. package/dist/components/DateRangePicker/components/ComparePreviousPeriod.cjs +4 -4
  348. package/dist/components/DateRangePicker/components/ComparePreviousPeriod.cjs.map +1 -1
  349. package/dist/components/DateRangePicker/components/ComparePreviousPeriod.js +4 -4
  350. package/dist/components/DateRangePicker/components/ComparePreviousPeriod.js.map +1 -1
  351. package/dist/components/DateRangePicker/components/Divider.cjs.map +1 -1
  352. package/dist/components/DateRangePicker/components/Divider.js.map +1 -1
  353. package/dist/components/DateRangePicker/components/constants.cjs.map +1 -1
  354. package/dist/components/DateRangePicker/components/constants.js.map +1 -1
  355. package/dist/components/DateRangePicker/constants.cjs.map +1 -1
  356. package/dist/components/DateRangePicker/constants.js.map +1 -1
  357. package/dist/components/DescriptionList/DescriptionList.cjs.map +1 -1
  358. package/dist/components/DescriptionList/DescriptionList.js.map +1 -1
  359. package/dist/components/DetailPage/DetailPage.cjs.map +1 -1
  360. package/dist/components/DetailPage/DetailPage.js.map +1 -1
  361. package/dist/components/DetailPage/styled.cjs.map +1 -1
  362. package/dist/components/DetailPage/styled.js.map +1 -1
  363. package/dist/components/DimensionsInput/DimensionsInput.cjs.map +1 -1
  364. package/dist/components/DimensionsInput/DimensionsInput.js.map +1 -1
  365. package/dist/components/Divider/Divider.cjs.map +1 -1
  366. package/dist/components/Divider/Divider.js.map +1 -1
  367. package/dist/components/Dropdown/Dropdown.cjs +3 -3
  368. package/dist/components/Dropdown/Dropdown.cjs.map +1 -1
  369. package/dist/components/Dropdown/Dropdown.js +3 -3
  370. package/dist/components/Dropdown/Dropdown.js.map +1 -1
  371. package/dist/components/Dropdown/DropdownPopover.cjs +1 -1
  372. package/dist/components/Dropdown/DropdownPopover.cjs.map +1 -1
  373. package/dist/components/Dropdown/DropdownPopover.js +1 -1
  374. package/dist/components/Dropdown/DropdownPopover.js.map +1 -1
  375. package/dist/components/Dropdown/styled.cjs.map +1 -1
  376. package/dist/components/Dropdown/styled.js.map +1 -1
  377. package/dist/components/FeatureBanner/FeatureBanner.cjs +2 -2
  378. package/dist/components/FeatureBanner/FeatureBanner.cjs.map +1 -1
  379. package/dist/components/FeatureBanner/FeatureBanner.js +2 -2
  380. package/dist/components/FeatureBanner/FeatureBanner.js.map +1 -1
  381. package/dist/components/FeatureBanner/FeatureBanner.module.scss.cjs +2 -2
  382. package/dist/components/FeatureBanner/FeatureBanner.module.scss.cjs.map +1 -1
  383. package/dist/components/FeatureBanner/FeatureBanner.module.scss.js +2 -2
  384. package/dist/components/FeatureBanner/FeatureBanner.module.scss.js.map +1 -1
  385. package/dist/components/FilterTag/FilterTag.cjs +2 -2
  386. package/dist/components/FilterTag/FilterTag.cjs.map +1 -1
  387. package/dist/components/FilterTag/FilterTag.js +2 -2
  388. package/dist/components/FilterTag/FilterTag.js.map +1 -1
  389. package/dist/components/FilterTag/styled.cjs.map +1 -1
  390. package/dist/components/FilterTag/styled.js.map +1 -1
  391. package/dist/components/Flex/FlexCol/FlexCol.cjs.map +1 -1
  392. package/dist/components/Flex/FlexCol/FlexCol.js.map +1 -1
  393. package/dist/components/Flex/FlexRow/FlexRow.cjs.map +1 -1
  394. package/dist/components/Flex/FlexRow/FlexRow.js.map +1 -1
  395. package/dist/components/Grid/index.cjs.map +1 -1
  396. package/dist/components/Grid/index.js.map +1 -1
  397. package/dist/components/IconGroup/IconGroup.cjs +1 -1
  398. package/dist/components/IconGroup/IconGroup.cjs.map +1 -1
  399. package/dist/components/IconGroup/IconGroup.js +1 -1
  400. package/dist/components/IconGroup/IconGroup.js.map +1 -1
  401. package/dist/components/Image/Image.cjs +5 -5
  402. package/dist/components/Image/Image.cjs.map +1 -1
  403. package/dist/components/Image/Image.js +5 -5
  404. package/dist/components/Image/Image.js.map +1 -1
  405. package/dist/components/Image/components/PlaceholderImage.cjs.map +1 -1
  406. package/dist/components/Image/components/PlaceholderImage.js.map +1 -1
  407. package/dist/components/Image/components/styled.cjs.map +1 -1
  408. package/dist/components/Image/components/styled.js.map +1 -1
  409. package/dist/components/Image/utils.cjs.map +1 -1
  410. package/dist/components/Image/utils.js.map +1 -1
  411. package/dist/components/Indicator/Indicator.cjs.map +1 -1
  412. package/dist/components/Indicator/Indicator.js.map +1 -1
  413. package/dist/components/Indicator/styled.cjs.map +1 -1
  414. package/dist/components/Indicator/styled.js.map +1 -1
  415. package/dist/components/InputAffix/InputAffix.cjs.map +1 -1
  416. package/dist/components/InputAffix/InputAffix.js.map +1 -1
  417. package/dist/components/InputGroup/index.cjs.map +1 -1
  418. package/dist/components/InputGroup/index.js.map +1 -1
  419. package/dist/components/LegacyDataTable/LegacyDataTable.cjs +9 -9
  420. package/dist/components/LegacyDataTable/LegacyDataTable.cjs.map +1 -1
  421. package/dist/components/LegacyDataTable/LegacyDataTable.js +10 -10
  422. package/dist/components/LegacyDataTable/LegacyDataTable.js.map +1 -1
  423. package/dist/components/LegacyDataTable/SkeletonContent/SkeletonContent.cjs.map +1 -1
  424. package/dist/components/LegacyDataTable/SkeletonContent/SkeletonContent.js.map +1 -1
  425. package/dist/components/LegacyDataTable/SpecificState/SpecificState.cjs.map +1 -1
  426. package/dist/components/LegacyDataTable/SpecificState/SpecificState.js.map +1 -1
  427. package/dist/components/LegacyDataTable/SpecificState/styled.cjs.map +1 -1
  428. package/dist/components/LegacyDataTable/SpecificState/styled.js.map +1 -1
  429. package/dist/components/LegacyDataTable/StickyHeader.cjs +3 -3
  430. package/dist/components/LegacyDataTable/StickyHeader.cjs.map +1 -1
  431. package/dist/components/LegacyDataTable/StickyHeader.js +3 -3
  432. package/dist/components/LegacyDataTable/StickyHeader.js.map +1 -1
  433. package/dist/components/LegacyDataTable/cells/ClickableCell.cjs.map +1 -1
  434. package/dist/components/LegacyDataTable/cells/ClickableCell.js.map +1 -1
  435. package/dist/components/LegacyDataTable/cells/EditableCell.cjs.map +1 -1
  436. package/dist/components/LegacyDataTable/cells/EditableCell.js.map +1 -1
  437. package/dist/components/LegacyDataTable/cells/SkeletonCell.cjs.map +1 -1
  438. package/dist/components/LegacyDataTable/cells/SkeletonCell.js.map +1 -1
  439. package/dist/components/LegacyDataTable/cells/styled.cjs.map +1 -1
  440. package/dist/components/LegacyDataTable/cells/styled.js.map +1 -1
  441. package/dist/components/LegacyDataTable/styled.cjs.map +1 -1
  442. package/dist/components/LegacyDataTable/styled.js.map +1 -1
  443. package/dist/components/LegacyDataTable/utils/constants.cjs.map +1 -1
  444. package/dist/components/LegacyDataTable/utils/constants.js.map +1 -1
  445. package/dist/components/LegacyDataTable/utils/hooks.cjs +1 -1
  446. package/dist/components/LegacyDataTable/utils/hooks.cjs.map +1 -1
  447. package/dist/components/LegacyDataTable/utils/hooks.js +1 -1
  448. package/dist/components/LegacyDataTable/utils/hooks.js.map +1 -1
  449. package/dist/components/LegacyDataTable/utils/index.cjs.map +1 -1
  450. package/dist/components/LegacyDataTable/utils/index.js.map +1 -1
  451. package/dist/components/Loader/Grid.cjs.map +1 -1
  452. package/dist/components/Loader/Grid.js.map +1 -1
  453. package/dist/components/Loader/Loader.cjs.map +1 -1
  454. package/dist/components/Loader/Loader.js.map +1 -1
  455. package/dist/components/Loader/TailSpin.cjs.map +1 -1
  456. package/dist/components/Loader/TailSpin.js.map +1 -1
  457. package/dist/components/Loader/ThreeDots.cjs.map +1 -1
  458. package/dist/components/Loader/ThreeDots.js.map +1 -1
  459. package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.cjs.map +1 -1
  460. package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.js.map +1 -1
  461. package/dist/components/Mark/Mark.cjs.map +1 -1
  462. package/dist/components/Mark/Mark.js.map +1 -1
  463. package/dist/components/Mark/constants.cjs.map +1 -1
  464. package/dist/components/Mark/constants.js.map +1 -1
  465. package/dist/components/Mark/types.cjs.map +1 -1
  466. package/dist/components/Mark/types.js.map +1 -1
  467. package/dist/components/Mark/utils.cjs +1 -1
  468. package/dist/components/Mark/utils.cjs.map +1 -1
  469. package/dist/components/Mark/utils.js +1 -1
  470. package/dist/components/Mark/utils.js.map +1 -1
  471. package/dist/components/Modal/Modal.cjs +3 -3
  472. package/dist/components/Modal/Modal.cjs.map +1 -1
  473. package/dist/components/Modal/Modal.js +3 -3
  474. package/dist/components/Modal/Modal.js.map +1 -1
  475. package/dist/components/Modal/components/Dialog/Dialog.cjs.map +1 -1
  476. package/dist/components/Modal/components/Dialog/Dialog.js.map +1 -1
  477. package/dist/components/Modal/components/Dialog/constants.cjs.map +1 -1
  478. package/dist/components/Modal/components/Dialog/constants.js.map +1 -1
  479. package/dist/components/Modal/components/Dialog/styled.cjs.map +1 -1
  480. package/dist/components/Modal/components/Dialog/styled.js +1 -1
  481. package/dist/components/Modal/components/Dialog/styled.js.map +1 -1
  482. package/dist/components/Modal/components/Dialog/styles/baseStyles.cjs +3 -3
  483. package/dist/components/Modal/components/Dialog/styles/baseStyles.cjs.map +1 -1
  484. package/dist/components/Modal/components/Dialog/styles/baseStyles.js.map +1 -1
  485. package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.cjs.map +1 -1
  486. package/dist/components/Modal/components/Dialog/styles/modalTypeStyles.js.map +1 -1
  487. package/dist/components/Modal/components/styled.cjs.map +1 -1
  488. package/dist/components/Modal/components/styled.js.map +1 -1
  489. package/dist/components/Modal/types.cjs.map +1 -1
  490. package/dist/components/Modal/types.js.map +1 -1
  491. package/dist/components/Modal/utils.cjs.map +1 -1
  492. package/dist/components/Modal/utils.js.map +1 -1
  493. package/dist/components/Pagination/Pagination.cjs.map +1 -1
  494. package/dist/components/Pagination/Pagination.js.map +1 -1
  495. package/dist/components/Pagination/components.cjs.map +1 -1
  496. package/dist/components/Pagination/components.js.map +1 -1
  497. package/dist/components/Pagination/hooks/usePagination.cjs.map +1 -1
  498. package/dist/components/Pagination/hooks/usePagination.js.map +1 -1
  499. package/dist/components/Pagination/styled.cjs.map +1 -1
  500. package/dist/components/Pagination/styled.js.map +1 -1
  501. package/dist/components/PhoneInput/PhoneInput.cjs.map +1 -1
  502. package/dist/components/PhoneInput/PhoneInput.js.map +1 -1
  503. package/dist/components/PhoneInput/components/SelectedCountry.cjs +1 -1
  504. package/dist/components/PhoneInput/components/SelectedCountry.cjs.map +1 -1
  505. package/dist/components/PhoneInput/components/SelectedCountry.js +1 -1
  506. package/dist/components/PhoneInput/components/SelectedCountry.js.map +1 -1
  507. package/dist/components/PhoneInput/constants.cjs.map +1 -1
  508. package/dist/components/PhoneInput/constants.js.map +1 -1
  509. package/dist/components/PhoneInput/hooks/useApplyCountryCode.cjs +4 -4
  510. package/dist/components/PhoneInput/hooks/useApplyCountryCode.cjs.map +1 -1
  511. package/dist/components/PhoneInput/hooks/useApplyCountryCode.js +4 -4
  512. package/dist/components/PhoneInput/hooks/useApplyCountryCode.js.map +1 -1
  513. package/dist/components/PhoneInput/utils/utils.cjs +2 -2
  514. package/dist/components/PhoneInput/utils/utils.cjs.map +1 -1
  515. package/dist/components/PhoneInput/utils/utils.js +2 -2
  516. package/dist/components/PhoneInput/utils/utils.js.map +1 -1
  517. package/dist/components/Popover/Popover.cjs +3 -3
  518. package/dist/components/Popover/Popover.cjs.map +1 -1
  519. package/dist/components/Popover/Popover.js +3 -3
  520. package/dist/components/Popover/Popover.js.map +1 -1
  521. package/dist/components/Popover/hooks/useHandleFocus.cjs +2 -2
  522. package/dist/components/Popover/hooks/useHandleFocus.cjs.map +1 -1
  523. package/dist/components/Popover/hooks/useHandleFocus.js +2 -2
  524. package/dist/components/Popover/hooks/useHandleFocus.js.map +1 -1
  525. package/dist/components/Popover/hooks/useUpdateAriaAnchor.cjs.map +1 -1
  526. package/dist/components/Popover/hooks/useUpdateAriaAnchor.js.map +1 -1
  527. package/dist/components/Popover/styled.cjs.map +1 -1
  528. package/dist/components/Popover/styled.js.map +1 -1
  529. package/dist/components/Portal/Portal.cjs.map +1 -1
  530. package/dist/components/Portal/Portal.js.map +1 -1
  531. package/dist/components/PriceInput/PriceInput.cjs.map +1 -1
  532. package/dist/components/PriceInput/PriceInput.js.map +1 -1
  533. package/dist/components/Radio/Radio.cjs +1 -1
  534. package/dist/components/Radio/Radio.cjs.map +1 -1
  535. package/dist/components/Radio/Radio.js +1 -1
  536. package/dist/components/Radio/Radio.js.map +1 -1
  537. package/dist/components/ScreenReaderOnly/ScreenReaderOnly.cjs.map +1 -1
  538. package/dist/components/ScreenReaderOnly/ScreenReaderOnly.js.map +1 -1
  539. package/dist/components/Search/Search.cjs +1 -1
  540. package/dist/components/Search/Search.cjs.map +1 -1
  541. package/dist/components/Search/Search.js +1 -1
  542. package/dist/components/Search/Search.js.map +1 -1
  543. package/dist/components/Search/styled.cjs.map +1 -1
  544. package/dist/components/Search/styled.js.map +1 -1
  545. package/dist/components/SectionLayout/SectionLayout.cjs.map +1 -1
  546. package/dist/components/SectionLayout/SectionLayout.js.map +1 -1
  547. package/dist/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
  548. package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
  549. package/dist/components/SegmentedControl/styled.cjs.map +1 -1
  550. package/dist/components/SegmentedControl/styled.js.map +1 -1
  551. package/dist/components/Select/Select.cjs +1 -1
  552. package/dist/components/Select/Select.cjs.map +1 -1
  553. package/dist/components/Select/Select.js +1 -1
  554. package/dist/components/Select/Select.js.map +1 -1
  555. package/dist/components/Select/styled.cjs.map +1 -1
  556. package/dist/components/Select/styled.js.map +1 -1
  557. package/dist/components/SelectDropdown/SelectDropdown.cjs +2 -2
  558. package/dist/components/SelectDropdown/SelectDropdown.cjs.map +1 -1
  559. package/dist/components/SelectDropdown/SelectDropdown.js +2 -2
  560. package/dist/components/SelectDropdown/SelectDropdown.js.map +1 -1
  561. package/dist/components/SelectDropdown/SelectDropdown.module.scss.cjs +1 -1
  562. package/dist/components/SelectDropdown/SelectDropdown.module.scss.cjs.map +1 -1
  563. package/dist/components/SelectDropdown/SelectDropdown.module.scss.js +1 -1
  564. package/dist/components/SelectDropdown/SelectDropdown.module.scss.js.map +1 -1
  565. package/dist/components/SelectDropdown/SelectDropdownControlled.cjs.map +1 -1
  566. package/dist/components/SelectDropdown/SelectDropdownControlled.js.map +1 -1
  567. package/dist/components/SelectDropdown/SelectDropdownUncontrolled.cjs.map +1 -1
  568. package/dist/components/SelectDropdown/SelectDropdownUncontrolled.js.map +1 -1
  569. package/dist/components/SelectDropdown/components/GridItem/GridItem.cjs.map +1 -1
  570. package/dist/components/SelectDropdown/components/GridItem/GridItem.js.map +1 -1
  571. package/dist/components/SelectDropdown/components/ItemContent/ItemContent.cjs.map +1 -1
  572. package/dist/components/SelectDropdown/components/ItemContent/ItemContent.js.map +1 -1
  573. package/dist/components/SelectDropdown/components/ItemContent/SelectionType.cjs.map +1 -1
  574. package/dist/components/SelectDropdown/components/ItemContent/SelectionType.js.map +1 -1
  575. package/dist/components/SelectDropdown/components/ListItem/ListItem.cjs.map +1 -1
  576. package/dist/components/SelectDropdown/components/ListItem/ListItem.js.map +1 -1
  577. package/dist/components/SelectDropdown/components/ListItemSection/ListItemSection.cjs.map +1 -1
  578. package/dist/components/SelectDropdown/components/ListItemSection/ListItemSection.js.map +1 -1
  579. package/dist/components/SelectDropdown/components/OptionsContainers/GridList.cjs +1 -1
  580. package/dist/components/SelectDropdown/components/OptionsContainers/GridList.cjs.map +1 -1
  581. package/dist/components/SelectDropdown/components/OptionsContainers/GridList.js +1 -1
  582. package/dist/components/SelectDropdown/components/OptionsContainers/GridList.js.map +1 -1
  583. package/dist/components/SelectDropdown/components/OptionsContainers/ListBox.cjs +1 -1
  584. package/dist/components/SelectDropdown/components/OptionsContainers/ListBox.cjs.map +1 -1
  585. package/dist/components/SelectDropdown/components/OptionsContainers/ListBox.js +1 -1
  586. package/dist/components/SelectDropdown/components/OptionsContainers/ListBox.js.map +1 -1
  587. package/dist/components/SelectDropdown/components/SelectDropdownState.cjs.map +1 -1
  588. package/dist/components/SelectDropdown/components/SelectDropdownState.js.map +1 -1
  589. package/dist/components/SelectDropdown/components/SelectedOption.cjs +2 -2
  590. package/dist/components/SelectDropdown/components/SelectedOption.cjs.map +1 -1
  591. package/dist/components/SelectDropdown/components/SelectedOption.js +2 -2
  592. package/dist/components/SelectDropdown/components/SelectedOption.js.map +1 -1
  593. package/dist/components/SelectDropdown/index.cjs.map +1 -1
  594. package/dist/components/SelectDropdown/index.js.map +1 -1
  595. package/dist/components/SelectDropdown/utils.cjs +1 -1
  596. package/dist/components/SelectDropdown/utils.cjs.map +1 -1
  597. package/dist/components/SelectDropdown/utils.js +1 -1
  598. package/dist/components/SelectDropdown/utils.js.map +1 -1
  599. package/dist/components/ShortcutKeys/ShortcutKeys.cjs.map +1 -1
  600. package/dist/components/ShortcutKeys/ShortcutKeys.js.map +1 -1
  601. package/dist/components/ShortcutKeys/styled.cjs.map +1 -1
  602. package/dist/components/ShortcutKeys/styled.js.map +1 -1
  603. package/dist/components/ShortcutKeys/utils.cjs.map +1 -1
  604. package/dist/components/ShortcutKeys/utils.js.map +1 -1
  605. package/dist/components/SimpleTable/SimpleTable.cjs.map +1 -1
  606. package/dist/components/SimpleTable/SimpleTable.js.map +1 -1
  607. package/dist/components/SimpleTable/styled.cjs.map +1 -1
  608. package/dist/components/SimpleTable/styled.js.map +1 -1
  609. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  610. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  611. package/dist/components/Skeleton/Skeleton.module.scss.cjs +1 -1
  612. package/dist/components/Skeleton/Skeleton.module.scss.cjs.map +1 -1
  613. package/dist/components/Skeleton/Skeleton.module.scss.js +1 -1
  614. package/dist/components/Skeleton/Skeleton.module.scss.js.map +1 -1
  615. package/dist/components/Slider/Slider.cjs +6 -6
  616. package/dist/components/Slider/Slider.cjs.map +1 -1
  617. package/dist/components/Slider/Slider.js +6 -6
  618. package/dist/components/Slider/Slider.js.map +1 -1
  619. package/dist/components/Slider/components/SliderHandle/SliderHandle.cjs.map +1 -1
  620. package/dist/components/Slider/components/SliderHandle/SliderHandle.js.map +1 -1
  621. package/dist/components/Slider/components/SliderTrack/SliderTrack.cjs.map +1 -1
  622. package/dist/components/Slider/components/SliderTrack/SliderTrack.js.map +1 -1
  623. package/dist/components/Slider/hooks/useSliderDrag.cjs +2 -2
  624. package/dist/components/Slider/hooks/useSliderDrag.cjs.map +1 -1
  625. package/dist/components/Slider/hooks/useSliderDrag.js +2 -2
  626. package/dist/components/Slider/hooks/useSliderDrag.js.map +1 -1
  627. package/dist/components/Slider/hooks/useSliderKeyboard.cjs +1 -1
  628. package/dist/components/Slider/hooks/useSliderKeyboard.cjs.map +1 -1
  629. package/dist/components/Slider/hooks/useSliderKeyboard.js +1 -1
  630. package/dist/components/Slider/hooks/useSliderKeyboard.js.map +1 -1
  631. package/dist/components/Slider/utils/calculateSliderValue.cjs +1 -1
  632. package/dist/components/Slider/utils/calculateSliderValue.cjs.map +1 -1
  633. package/dist/components/Slider/utils/calculateSliderValue.js +1 -1
  634. package/dist/components/Slider/utils/calculateSliderValue.js.map +1 -1
  635. package/dist/components/Stack/Alignments.cjs.map +1 -1
  636. package/dist/components/Stack/Alignments.js.map +1 -1
  637. package/dist/components/Stack/Stack.cjs.map +1 -1
  638. package/dist/components/Stack/Stack.js.map +1 -1
  639. package/dist/components/Stepper/Stepper.cjs.map +1 -1
  640. package/dist/components/Stepper/Stepper.js.map +1 -1
  641. package/dist/components/Stepper/styled.cjs.map +1 -1
  642. package/dist/components/Stepper/styled.js.map +1 -1
  643. package/dist/components/SystemBanner/SystemBanner.cjs.map +1 -1
  644. package/dist/components/SystemBanner/SystemBanner.js.map +1 -1
  645. package/dist/components/Tag/Tag.cjs.map +1 -1
  646. package/dist/components/Tag/Tag.js.map +1 -1
  647. package/dist/components/Text/Text.cjs.map +1 -1
  648. package/dist/components/Text/Text.js.map +1 -1
  649. package/dist/components/TextField/TextField.cjs +1 -1
  650. package/dist/components/TextField/TextField.cjs.map +1 -1
  651. package/dist/components/TextField/TextField.js +1 -1
  652. package/dist/components/TextField/TextField.js.map +1 -1
  653. package/dist/components/TextField/styled.cjs.map +1 -1
  654. package/dist/components/TextField/styled.js.map +1 -1
  655. package/dist/components/ThemeInjector/ThemeInjector.cjs.map +1 -1
  656. package/dist/components/ThemeInjector/ThemeInjector.js.map +1 -1
  657. package/dist/components/ThemeInjector/utils.cjs.map +1 -1
  658. package/dist/components/ThemeInjector/utils.js.map +1 -1
  659. package/dist/components/ToastsLayout/ToastsLayout.cjs.map +1 -1
  660. package/dist/components/ToastsLayout/ToastsLayout.js.map +1 -1
  661. package/dist/components/ToastsLayout/components/Toast.cjs +2 -2
  662. package/dist/components/ToastsLayout/components/Toast.cjs.map +1 -1
  663. package/dist/components/ToastsLayout/components/Toast.js +2 -2
  664. package/dist/components/ToastsLayout/components/Toast.js.map +1 -1
  665. package/dist/components/ToastsLayout/components/styled.cjs.map +1 -1
  666. package/dist/components/ToastsLayout/components/styled.js.map +1 -1
  667. package/dist/components/Toggle/Toggle.cjs +1 -1
  668. package/dist/components/Toggle/Toggle.cjs.map +1 -1
  669. package/dist/components/Toggle/Toggle.js +1 -1
  670. package/dist/components/Toggle/Toggle.js.map +1 -1
  671. package/dist/components/Toggle/styled.cjs.map +1 -1
  672. package/dist/components/Toggle/styled.js.map +1 -1
  673. package/dist/components/ToggleButton/ToggleButton.cjs.map +1 -1
  674. package/dist/components/ToggleButton/ToggleButton.js.map +1 -1
  675. package/dist/components/ToggleButton/styled.cjs.map +1 -1
  676. package/dist/components/ToggleButton/styled.js.map +1 -1
  677. package/dist/components/TokenProvider/TokenProvider.cjs.map +1 -1
  678. package/dist/components/TokenProvider/TokenProvider.js.map +1 -1
  679. package/dist/components/TokenProvider/TokenProvider.module.scss.cjs +2 -2
  680. package/dist/components/TokenProvider/TokenProvider.module.scss.cjs.map +1 -1
  681. package/dist/components/TokenProvider/TokenProvider.module.scss.js +2 -2
  682. package/dist/components/TokenProvider/TokenProvider.module.scss.js.map +1 -1
  683. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  684. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  685. package/dist/components/Tooltip/components/TooltipPopover.cjs +1 -1
  686. package/dist/components/Tooltip/components/TooltipPopover.cjs.map +1 -1
  687. package/dist/components/Tooltip/components/TooltipPopover.js +1 -1
  688. package/dist/components/Tooltip/components/TooltipPopover.js.map +1 -1
  689. package/dist/components/Tooltip/components/styled.cjs.map +1 -1
  690. package/dist/components/Tooltip/components/styled.js.map +1 -1
  691. package/dist/components/Tooltip/types.cjs.map +1 -1
  692. package/dist/components/Tooltip/types.js.map +1 -1
  693. package/dist/components/UploadFile/UploadFile.cjs +13 -13
  694. package/dist/components/UploadFile/UploadFile.cjs.map +1 -1
  695. package/dist/components/UploadFile/UploadFile.js +14 -14
  696. package/dist/components/UploadFile/UploadFile.js.map +1 -1
  697. package/dist/components/UploadFile/components/DropCopy/DropCopy.cjs.map +1 -1
  698. package/dist/components/UploadFile/components/DropCopy/DropCopy.js.map +1 -1
  699. package/dist/components/UploadFile/components/UploadCopy/UploadCopy.cjs.map +1 -1
  700. package/dist/components/UploadFile/components/UploadCopy/UploadCopy.js.map +1 -1
  701. package/dist/components/UploadFile/constants.cjs.map +1 -1
  702. package/dist/components/UploadFile/constants.js.map +1 -1
  703. package/dist/components/UploadFile/hooks/useUploadFile/useUploadFile.cjs +4 -4
  704. package/dist/components/UploadFile/hooks/useUploadFile/useUploadFile.cjs.map +1 -1
  705. package/dist/components/UploadFile/hooks/useUploadFile/useUploadFile.js +4 -4
  706. package/dist/components/UploadFile/hooks/useUploadFile/useUploadFile.js.map +1 -1
  707. package/dist/components/UploadFile/hooks/useValidateInput/useValidateInput.cjs +3 -3
  708. package/dist/components/UploadFile/hooks/useValidateInput/useValidateInput.cjs.map +1 -1
  709. package/dist/components/UploadFile/hooks/useValidateInput/useValidateInput.js +3 -3
  710. package/dist/components/UploadFile/hooks/useValidateInput/useValidateInput.js.map +1 -1
  711. package/dist/components/UploadFile/styled.cjs.map +1 -1
  712. package/dist/components/UploadFile/styled.js.map +1 -1
  713. package/dist/components/UploadFile/utils/getErrorMessage/getErrorMessage.cjs.map +1 -1
  714. package/dist/components/UploadFile/utils/getErrorMessage/getErrorMessage.js.map +1 -1
  715. package/dist/components/UploadFile/utils/getFileSizeString/getFileSizeString.cjs +1 -1
  716. package/dist/components/UploadFile/utils/getFileSizeString/getFileSizeString.cjs.map +1 -1
  717. package/dist/components/UploadFile/utils/getFileSizeString/getFileSizeString.js +1 -1
  718. package/dist/components/UploadFile/utils/getFileSizeString/getFileSizeString.js.map +1 -1
  719. package/dist/components/UploadFile/utils/getTypePropForInputEl/getTypePropForInputEl.cjs.map +1 -1
  720. package/dist/components/UploadFile/utils/getTypePropForInputEl/getTypePropForInputEl.js.map +1 -1
  721. package/dist/components/UploadFile/utils/getValidTypesString/getValidTypesString.cjs +1 -1
  722. package/dist/components/UploadFile/utils/getValidTypesString/getValidTypesString.cjs.map +1 -1
  723. package/dist/components/UploadFile/utils/getValidTypesString/getValidTypesString.js +1 -1
  724. package/dist/components/UploadFile/utils/getValidTypesString/getValidTypesString.js.map +1 -1
  725. package/dist/components/UploadedFile/UploadedFile.cjs +2 -2
  726. package/dist/components/UploadedFile/UploadedFile.cjs.map +1 -1
  727. package/dist/components/UploadedFile/UploadedFile.js +2 -2
  728. package/dist/components/UploadedFile/UploadedFile.js.map +1 -1
  729. package/dist/components/UploadedFile/hooks/useFileErrorMessages/useFileErrorMessages.cjs.map +1 -1
  730. package/dist/components/UploadedFile/hooks/useFileErrorMessages/useFileErrorMessages.js +1 -1
  731. package/dist/components/UploadedFile/hooks/useFileErrorMessages/useFileErrorMessages.js.map +1 -1
  732. package/dist/components/UploadedFile/hooks/usePreviewImage/usePreviewImage.cjs +1 -1
  733. package/dist/components/UploadedFile/hooks/usePreviewImage/usePreviewImage.cjs.map +1 -1
  734. package/dist/components/UploadedFile/hooks/usePreviewImage/usePreviewImage.js +1 -1
  735. package/dist/components/UploadedFile/hooks/usePreviewImage/usePreviewImage.js.map +1 -1
  736. package/dist/components/UploadedFile/utils/convertFileTypeToAcceptedFileType/convertFileTypeToAcceptedFileType.cjs.map +1 -1
  737. package/dist/components/UploadedFile/utils/convertFileTypeToAcceptedFileType/convertFileTypeToAcceptedFileType.js.map +1 -1
  738. package/dist/components/UploadedFile/utils/isImageType/isImageType.cjs.map +1 -1
  739. package/dist/components/UploadedFile/utils/isImageType/isImageType.js.map +1 -1
  740. package/dist/components/VeeqoLogo/VeeqoLogo.cjs.map +1 -1
  741. package/dist/components/VeeqoLogo/VeeqoLogo.js.map +1 -1
  742. package/dist/components/VeeqoLogo/colors.cjs.map +1 -1
  743. package/dist/components/VeeqoLogo/colors.js.map +1 -1
  744. package/dist/components/VeeqoLogo/getLogoProps.cjs.map +1 -1
  745. package/dist/components/VeeqoLogo/getLogoProps.js.map +1 -1
  746. package/dist/components/VideoModal/VideoModal.cjs.map +1 -1
  747. package/dist/components/VideoModal/VideoModal.js.map +1 -1
  748. package/dist/components/VideoModal/components/Popup.cjs.map +1 -1
  749. package/dist/components/VideoModal/components/Popup.js.map +1 -1
  750. package/dist/components/VideoModal/components/styled.cjs.map +1 -1
  751. package/dist/components/VideoModal/components/styled.js.map +1 -1
  752. package/dist/components/View/View.cjs +4 -4
  753. package/dist/components/View/View.cjs.map +1 -1
  754. package/dist/components/View/View.js +4 -4
  755. package/dist/components/View/View.js.map +1 -1
  756. package/dist/components/View/styled.cjs +1 -1
  757. package/dist/components/View/styled.cjs.map +1 -1
  758. package/dist/components/View/styled.js +1 -1
  759. package/dist/components/View/styled.js.map +1 -1
  760. package/dist/components/View/types.cjs.map +1 -1
  761. package/dist/components/View/types.js.map +1 -1
  762. package/dist/components/ViewTab/ViewTab.cjs.map +1 -1
  763. package/dist/components/ViewTab/ViewTab.js.map +1 -1
  764. package/dist/components/ViewTab/types.cjs.map +1 -1
  765. package/dist/components/ViewTab/types.js.map +1 -1
  766. package/dist/components/ViewsContainer/ViewsContainer.cjs.map +1 -1
  767. package/dist/components/ViewsContainer/ViewsContainer.js.map +1 -1
  768. package/dist/components/ViewsContainer/hooks/useSetScrollPosition.cjs +14 -14
  769. package/dist/components/ViewsContainer/hooks/useSetScrollPosition.cjs.map +1 -1
  770. package/dist/components/ViewsContainer/hooks/useSetScrollPosition.js +14 -14
  771. package/dist/components/ViewsContainer/hooks/useSetScrollPosition.js.map +1 -1
  772. package/dist/components/ViewsContainer/utils.cjs.map +1 -1
  773. package/dist/components/ViewsContainer/utils.js.map +1 -1
  774. package/dist/components/WeightInput/WeightInput.cjs.map +1 -1
  775. package/dist/components/WeightInput/WeightInput.js.map +1 -1
  776. package/dist/components/WeightInput/types.cjs.map +1 -1
  777. package/dist/components/WeightInput/types.js.map +1 -1
  778. package/dist/hoc/withClassNames/withClassNames.cjs.map +1 -1
  779. package/dist/hoc/withClassNames/withClassNames.js.map +1 -1
  780. package/dist/hoc/withDeprecated.cjs.map +1 -1
  781. package/dist/hoc/withDeprecated.js.map +1 -1
  782. package/dist/hoc/withLabels/styled.cjs.map +1 -1
  783. package/dist/hoc/withLabels/styled.js.map +1 -1
  784. package/dist/hoc/withLabels/withLabels.cjs.map +1 -1
  785. package/dist/hoc/withLabels/withLabels.js.map +1 -1
  786. package/dist/hoc/withTokens/withTokens.cjs.map +1 -1
  787. package/dist/hoc/withTokens/withTokens.js.map +1 -1
  788. package/dist/hooks/useClickOutside.cjs +2 -2
  789. package/dist/hooks/useClickOutside.cjs.map +1 -1
  790. package/dist/hooks/useClickOutside.js +2 -2
  791. package/dist/hooks/useClickOutside.js.map +1 -1
  792. package/dist/hooks/useDebounce.cjs.map +1 -1
  793. package/dist/hooks/useDebounce.js.map +1 -1
  794. package/dist/hooks/useDragToScroll.cjs +2 -2
  795. package/dist/hooks/useDragToScroll.cjs.map +1 -1
  796. package/dist/hooks/useDragToScroll.js +2 -2
  797. package/dist/hooks/useDragToScroll.js.map +1 -1
  798. package/dist/hooks/useDropdown.cjs +1 -1
  799. package/dist/hooks/useDropdown.cjs.map +1 -1
  800. package/dist/hooks/useDropdown.js +1 -1
  801. package/dist/hooks/useDropdown.js.map +1 -1
  802. package/dist/hooks/useFocusVisible.cjs.map +1 -1
  803. package/dist/hooks/useFocusVisible.js.map +1 -1
  804. package/dist/hooks/useIntersectionObserver.cjs.map +1 -1
  805. package/dist/hooks/useIntersectionObserver.js.map +1 -1
  806. package/dist/hooks/useIsOverflowing.cjs.map +1 -1
  807. package/dist/hooks/useIsOverflowing.js.map +1 -1
  808. package/dist/hooks/useResizeObserver.cjs +2 -2
  809. package/dist/hooks/useResizeObserver.cjs.map +1 -1
  810. package/dist/hooks/useResizeObserver.js +2 -2
  811. package/dist/hooks/useResizeObserver.js.map +1 -1
  812. package/dist/hooks/useScrollPosition/useScrollPosition.cjs +2 -2
  813. package/dist/hooks/useScrollPosition/useScrollPosition.cjs.map +1 -1
  814. package/dist/hooks/useScrollPosition/useScrollPosition.js +2 -2
  815. package/dist/hooks/useScrollPosition/useScrollPosition.js.map +1 -1
  816. package/dist/hooks/useTabs.cjs.map +1 -1
  817. package/dist/hooks/useTabs.js.map +1 -1
  818. package/dist/icons/custom/components/ActiveCheckboxIcon.cjs.map +1 -1
  819. package/dist/icons/custom/components/ActiveCheckboxIcon.js.map +1 -1
  820. package/dist/icons/custom/components/ActiveRadioIcon.cjs.map +1 -1
  821. package/dist/icons/custom/components/ActiveRadioIcon.js.map +1 -1
  822. package/dist/icons/custom/components/AmazonSmileIcon.cjs.map +1 -1
  823. package/dist/icons/custom/components/AmazonSmileIcon.js.map +1 -1
  824. package/dist/icons/custom/components/CriticalFillIcon.cjs.map +1 -1
  825. package/dist/icons/custom/components/CriticalFillIcon.js.map +1 -1
  826. package/dist/icons/custom/components/DashboardIcon.cjs.map +1 -1
  827. package/dist/icons/custom/components/DashboardIcon.js.map +1 -1
  828. package/dist/icons/custom/components/DestructiveIcon.cjs.map +1 -1
  829. package/dist/icons/custom/components/DestructiveIcon.js.map +1 -1
  830. package/dist/icons/custom/components/DocumentIcon.cjs.map +1 -1
  831. package/dist/icons/custom/components/DocumentIcon.js.map +1 -1
  832. package/dist/icons/custom/components/DoubleArrowAscIcon.cjs.map +1 -1
  833. package/dist/icons/custom/components/DoubleArrowAscIcon.js.map +1 -1
  834. package/dist/icons/custom/components/DoubleArrowDescIcon.cjs.map +1 -1
  835. package/dist/icons/custom/components/DoubleArrowDescIcon.js.map +1 -1
  836. package/dist/icons/custom/components/DropdownIcon.cjs.map +1 -1
  837. package/dist/icons/custom/components/DropdownIcon.js.map +1 -1
  838. package/dist/icons/custom/components/InactiveCheckboxIcon.cjs.map +1 -1
  839. package/dist/icons/custom/components/InactiveCheckboxIcon.js.map +1 -1
  840. package/dist/icons/custom/components/InactiveRadioIcon.cjs.map +1 -1
  841. package/dist/icons/custom/components/InactiveRadioIcon.js.map +1 -1
  842. package/dist/icons/custom/components/PlusIcon.cjs.map +1 -1
  843. package/dist/icons/custom/components/PlusIcon.js.map +1 -1
  844. package/dist/icons/custom/components/PopupBlockerIcon.cjs.map +1 -1
  845. package/dist/icons/custom/components/PopupBlockerIcon.js.map +1 -1
  846. package/dist/icons/custom/components/RecommendIcon.cjs.map +1 -1
  847. package/dist/icons/custom/components/RecommendIcon.js.map +1 -1
  848. package/dist/icons/custom/components/ThreeDotsIcon.cjs.map +1 -1
  849. package/dist/icons/custom/components/ThreeDotsIcon.js.map +1 -1
  850. package/dist/icons/design-system/components/AccountsIcon.cjs.map +1 -1
  851. package/dist/icons/design-system/components/AccountsIcon.js.map +1 -1
  852. package/dist/icons/design-system/components/AccountsOutlineIcon.cjs.map +1 -1
  853. package/dist/icons/design-system/components/AccountsOutlineIcon.js.map +1 -1
  854. package/dist/icons/design-system/components/AddIcon.cjs.map +1 -1
  855. package/dist/icons/design-system/components/AddIcon.js.map +1 -1
  856. package/dist/icons/design-system/components/AmazonIcon.cjs.map +1 -1
  857. package/dist/icons/design-system/components/AmazonIcon.js.map +1 -1
  858. package/dist/icons/design-system/components/ArchiveIcon.cjs.map +1 -1
  859. package/dist/icons/design-system/components/ArchiveIcon.js.map +1 -1
  860. package/dist/icons/design-system/components/ArrowDownIcon.cjs.map +1 -1
  861. package/dist/icons/design-system/components/ArrowDownIcon.js.map +1 -1
  862. package/dist/icons/design-system/components/ArrowLeftIcon.cjs.map +1 -1
  863. package/dist/icons/design-system/components/ArrowLeftIcon.js.map +1 -1
  864. package/dist/icons/design-system/components/ArrowRightIcon.cjs.map +1 -1
  865. package/dist/icons/design-system/components/ArrowRightIcon.js.map +1 -1
  866. package/dist/icons/design-system/components/ArrowUpIcon.cjs.map +1 -1
  867. package/dist/icons/design-system/components/ArrowUpIcon.js.map +1 -1
  868. package/dist/icons/design-system/components/AtSymbolIcon.cjs.map +1 -1
  869. package/dist/icons/design-system/components/AtSymbolIcon.js.map +1 -1
  870. package/dist/icons/design-system/components/AttentionIcon.cjs.map +1 -1
  871. package/dist/icons/design-system/components/AttentionIcon.js.map +1 -1
  872. package/dist/icons/design-system/components/AutomateIcon.cjs.map +1 -1
  873. package/dist/icons/design-system/components/AutomateIcon.js.map +1 -1
  874. package/dist/icons/design-system/components/BarcodeScanIcon.cjs.map +1 -1
  875. package/dist/icons/design-system/components/BarcodeScanIcon.js.map +1 -1
  876. package/dist/icons/design-system/components/BigCommerceIcon.cjs.map +1 -1
  877. package/dist/icons/design-system/components/BigCommerceIcon.js.map +1 -1
  878. package/dist/icons/design-system/components/BookmarksIcon.cjs.map +1 -1
  879. package/dist/icons/design-system/components/BookmarksIcon.js.map +1 -1
  880. package/dist/icons/design-system/components/BrandIcon.cjs.map +1 -1
  881. package/dist/icons/design-system/components/BrandIcon.js.map +1 -1
  882. package/dist/icons/design-system/components/BuildIcon.cjs.map +1 -1
  883. package/dist/icons/design-system/components/BuildIcon.js.map +1 -1
  884. package/dist/icons/design-system/components/BuildOutlineIcon.cjs.map +1 -1
  885. package/dist/icons/design-system/components/BuildOutlineIcon.js.map +1 -1
  886. package/dist/icons/design-system/components/BuildingIcon.cjs.map +1 -1
  887. package/dist/icons/design-system/components/BuildingIcon.js.map +1 -1
  888. package/dist/icons/design-system/components/BundleIcon.cjs.map +1 -1
  889. package/dist/icons/design-system/components/BundleIcon.js.map +1 -1
  890. package/dist/icons/design-system/components/CDiscountIcon.cjs.map +1 -1
  891. package/dist/icons/design-system/components/CDiscountIcon.js.map +1 -1
  892. package/dist/icons/design-system/components/CalendarIcon.cjs.map +1 -1
  893. package/dist/icons/design-system/components/CalendarIcon.js.map +1 -1
  894. package/dist/icons/design-system/components/CameraIcon.cjs.map +1 -1
  895. package/dist/icons/design-system/components/CameraIcon.js.map +1 -1
  896. package/dist/icons/design-system/components/CardViewIcon.cjs.map +1 -1
  897. package/dist/icons/design-system/components/CardViewIcon.js.map +1 -1
  898. package/dist/icons/design-system/components/ClipboardIcon.cjs.map +1 -1
  899. package/dist/icons/design-system/components/ClipboardIcon.js.map +1 -1
  900. package/dist/icons/design-system/components/CloseIcon.cjs.map +1 -1
  901. package/dist/icons/design-system/components/CloseIcon.js.map +1 -1
  902. package/dist/icons/design-system/components/CloudUploadIcon.cjs.map +1 -1
  903. package/dist/icons/design-system/components/CloudUploadIcon.js.map +1 -1
  904. package/dist/icons/design-system/components/ColumnsIcon.cjs.map +1 -1
  905. package/dist/icons/design-system/components/ColumnsIcon.js.map +1 -1
  906. package/dist/icons/design-system/components/CopyIcon.cjs.map +1 -1
  907. package/dist/icons/design-system/components/CopyIcon.js.map +1 -1
  908. package/dist/icons/design-system/components/CreditCardIcon.cjs.map +1 -1
  909. package/dist/icons/design-system/components/CreditCardIcon.js.map +1 -1
  910. package/dist/icons/design-system/components/CriticalIcon.cjs.map +1 -1
  911. package/dist/icons/design-system/components/CriticalIcon.js.map +1 -1
  912. package/dist/icons/design-system/components/CrossIcon.cjs.map +1 -1
  913. package/dist/icons/design-system/components/CrossIcon.js.map +1 -1
  914. package/dist/icons/design-system/components/CsvIcon.cjs.map +1 -1
  915. package/dist/icons/design-system/components/CsvIcon.js.map +1 -1
  916. package/dist/icons/design-system/components/CurrencyIcon.cjs.map +1 -1
  917. package/dist/icons/design-system/components/CurrencyIcon.js.map +1 -1
  918. package/dist/icons/design-system/components/CustomerTypeIcon.cjs.map +1 -1
  919. package/dist/icons/design-system/components/CustomerTypeIcon.js.map +1 -1
  920. package/dist/icons/design-system/components/DashboardFillIcon.cjs.map +1 -1
  921. package/dist/icons/design-system/components/DashboardFillIcon.js.map +1 -1
  922. package/dist/icons/design-system/components/DashboardOutlineIcon.cjs.map +1 -1
  923. package/dist/icons/design-system/components/DashboardOutlineIcon.js.map +1 -1
  924. package/dist/icons/design-system/components/DateIcon.cjs.map +1 -1
  925. package/dist/icons/design-system/components/DateIcon.js.map +1 -1
  926. package/dist/icons/design-system/components/DictationIcon.cjs.map +1 -1
  927. package/dist/icons/design-system/components/DictationIcon.js.map +1 -1
  928. package/dist/icons/design-system/components/DiscountIcon.cjs.map +1 -1
  929. package/dist/icons/design-system/components/DiscountIcon.js.map +1 -1
  930. package/dist/icons/design-system/components/DomesticIcon.cjs.map +1 -1
  931. package/dist/icons/design-system/components/DomesticIcon.js.map +1 -1
  932. package/dist/icons/design-system/components/DoneIcon.cjs.map +1 -1
  933. package/dist/icons/design-system/components/DoneIcon.js.map +1 -1
  934. package/dist/icons/design-system/components/DoubleArrowAscendingIcon.cjs.map +1 -1
  935. package/dist/icons/design-system/components/DoubleArrowAscendingIcon.js.map +1 -1
  936. package/dist/icons/design-system/components/DoubleArrowDescendingIcon.cjs.map +1 -1
  937. package/dist/icons/design-system/components/DoubleArrowDescendingIcon.js.map +1 -1
  938. package/dist/icons/design-system/components/DoubleArrowIcon.cjs.map +1 -1
  939. package/dist/icons/design-system/components/DoubleArrowIcon.js.map +1 -1
  940. package/dist/icons/design-system/components/DownArrowIcon.cjs.map +1 -1
  941. package/dist/icons/design-system/components/DownArrowIcon.js.map +1 -1
  942. package/dist/icons/design-system/components/DragIcon.cjs.map +1 -1
  943. package/dist/icons/design-system/components/DragIcon.js.map +1 -1
  944. package/dist/icons/design-system/components/DragIndicatorIcon.cjs.map +1 -1
  945. package/dist/icons/design-system/components/DragIndicatorIcon.js.map +1 -1
  946. package/dist/icons/design-system/components/DropdownDownIcon.cjs.map +1 -1
  947. package/dist/icons/design-system/components/DropdownDownIcon.js.map +1 -1
  948. package/dist/icons/design-system/components/DropdownUpIcon.cjs.map +1 -1
  949. package/dist/icons/design-system/components/DropdownUpIcon.js.map +1 -1
  950. package/dist/icons/design-system/components/EBayIcon.cjs.map +1 -1
  951. package/dist/icons/design-system/components/EBayIcon.js.map +1 -1
  952. package/dist/icons/design-system/components/EditIcon.cjs.map +1 -1
  953. package/dist/icons/design-system/components/EditIcon.js.map +1 -1
  954. package/dist/icons/design-system/components/EmailAtIcon.cjs.map +1 -1
  955. package/dist/icons/design-system/components/EmailAtIcon.js.map +1 -1
  956. package/dist/icons/design-system/components/EmailCancelIcon.cjs.map +1 -1
  957. package/dist/icons/design-system/components/EmailCancelIcon.js.map +1 -1
  958. package/dist/icons/design-system/components/EmailConfirmIcon.cjs.map +1 -1
  959. package/dist/icons/design-system/components/EmailConfirmIcon.js.map +1 -1
  960. package/dist/icons/design-system/components/EmailIcon.cjs.map +1 -1
  961. package/dist/icons/design-system/components/EmailIcon.js.map +1 -1
  962. package/dist/icons/design-system/components/EmailScheduleIcon.cjs.map +1 -1
  963. package/dist/icons/design-system/components/EmailScheduleIcon.js.map +1 -1
  964. package/dist/icons/design-system/components/EndArrowIcon.cjs.map +1 -1
  965. package/dist/icons/design-system/components/EndArrowIcon.js.map +1 -1
  966. package/dist/icons/design-system/components/EqualIcon.cjs.map +1 -1
  967. package/dist/icons/design-system/components/EqualIcon.js.map +1 -1
  968. package/dist/icons/design-system/components/EtsyIcon.cjs.map +1 -1
  969. package/dist/icons/design-system/components/EtsyIcon.js.map +1 -1
  970. package/dist/icons/design-system/components/ExportIcon.cjs.map +1 -1
  971. package/dist/icons/design-system/components/ExportIcon.js.map +1 -1
  972. package/dist/icons/design-system/components/FailFillIcon.cjs.map +1 -1
  973. package/dist/icons/design-system/components/FailFillIcon.js.map +1 -1
  974. package/dist/icons/design-system/components/FailIcon.cjs.map +1 -1
  975. package/dist/icons/design-system/components/FailIcon.js.map +1 -1
  976. package/dist/icons/design-system/components/FavouriteIcon.cjs.map +1 -1
  977. package/dist/icons/design-system/components/FavouriteIcon.js.map +1 -1
  978. package/dist/icons/design-system/components/FbaIcon.cjs.map +1 -1
  979. package/dist/icons/design-system/components/FbaIcon.js.map +1 -1
  980. package/dist/icons/design-system/components/FilterIcon.cjs.map +1 -1
  981. package/dist/icons/design-system/components/FilterIcon.js.map +1 -1
  982. package/dist/icons/design-system/components/FlagIcon.cjs.map +1 -1
  983. package/dist/icons/design-system/components/FlagIcon.js.map +1 -1
  984. package/dist/icons/design-system/components/FlagOffIcon.cjs.map +1 -1
  985. package/dist/icons/design-system/components/FlagOffIcon.js.map +1 -1
  986. package/dist/icons/design-system/components/HelpFillIcon.cjs.map +1 -1
  987. package/dist/icons/design-system/components/HelpFillIcon.js.map +1 -1
  988. package/dist/icons/design-system/components/HelpIcon.cjs.map +1 -1
  989. package/dist/icons/design-system/components/HelpIcon.js.map +1 -1
  990. package/dist/icons/design-system/components/HistoryIcon.cjs.map +1 -1
  991. package/dist/icons/design-system/components/HistoryIcon.js.map +1 -1
  992. package/dist/icons/design-system/components/HomeIcon.cjs.map +1 -1
  993. package/dist/icons/design-system/components/HomeIcon.js.map +1 -1
  994. package/dist/icons/design-system/components/ImageIcon.cjs.map +1 -1
  995. package/dist/icons/design-system/components/ImageIcon.js.map +1 -1
  996. package/dist/icons/design-system/components/InProgressIcon.cjs.map +1 -1
  997. package/dist/icons/design-system/components/InProgressIcon.js.map +1 -1
  998. package/dist/icons/design-system/components/InboxAllIcon.cjs.map +1 -1
  999. package/dist/icons/design-system/components/InboxAllIcon.js.map +1 -1
  1000. package/dist/icons/design-system/components/InboxIcon.cjs.map +1 -1
  1001. package/dist/icons/design-system/components/InboxIcon.js.map +1 -1
  1002. package/dist/icons/design-system/components/InfinityIcon.cjs.map +1 -1
  1003. package/dist/icons/design-system/components/InfinityIcon.js.map +1 -1
  1004. package/dist/icons/design-system/components/InfoFillIcon.cjs.map +1 -1
  1005. package/dist/icons/design-system/components/InfoFillIcon.js.map +1 -1
  1006. package/dist/icons/design-system/components/InfoIcon.cjs.map +1 -1
  1007. package/dist/icons/design-system/components/InfoIcon.js.map +1 -1
  1008. package/dist/icons/design-system/components/International2Icon.cjs.map +1 -1
  1009. package/dist/icons/design-system/components/International2Icon.js.map +1 -1
  1010. package/dist/icons/design-system/components/InternationalIcon.cjs.map +1 -1
  1011. package/dist/icons/design-system/components/InternationalIcon.js.map +1 -1
  1012. package/dist/icons/design-system/components/InventoryIcon.cjs.map +1 -1
  1013. package/dist/icons/design-system/components/InventoryIcon.js.map +1 -1
  1014. package/dist/icons/design-system/components/LaunchIcon.cjs.map +1 -1
  1015. package/dist/icons/design-system/components/LaunchIcon.js.map +1 -1
  1016. package/dist/icons/design-system/components/LeftArrowIcon.cjs.map +1 -1
  1017. package/dist/icons/design-system/components/LeftArrowIcon.js.map +1 -1
  1018. package/dist/icons/design-system/components/LessIcon.cjs.map +1 -1
  1019. package/dist/icons/design-system/components/LessIcon.js.map +1 -1
  1020. package/dist/icons/design-system/components/LightningFillIcon.cjs.map +1 -1
  1021. package/dist/icons/design-system/components/LightningFillIcon.js.map +1 -1
  1022. package/dist/icons/design-system/components/LightningIcon.cjs.map +1 -1
  1023. package/dist/icons/design-system/components/LightningIcon.js.map +1 -1
  1024. package/dist/icons/design-system/components/LinkIcon.cjs.map +1 -1
  1025. package/dist/icons/design-system/components/LinkIcon.js.map +1 -1
  1026. package/dist/icons/design-system/components/ListBoardIcon.cjs.map +1 -1
  1027. package/dist/icons/design-system/components/ListBoardIcon.js.map +1 -1
  1028. package/dist/icons/design-system/components/ListIcon.cjs.map +1 -1
  1029. package/dist/icons/design-system/components/ListIcon.js.map +1 -1
  1030. package/dist/icons/design-system/components/ListMenuIcon.cjs.map +1 -1
  1031. package/dist/icons/design-system/components/ListMenuIcon.js.map +1 -1
  1032. package/dist/icons/design-system/components/ListOrdersIcon.cjs.map +1 -1
  1033. package/dist/icons/design-system/components/ListOrdersIcon.js.map +1 -1
  1034. package/dist/icons/design-system/components/ListOrdersOutlineIcon.cjs.map +1 -1
  1035. package/dist/icons/design-system/components/ListOrdersOutlineIcon.js.map +1 -1
  1036. package/dist/icons/design-system/components/LocationIcon.cjs.map +1 -1
  1037. package/dist/icons/design-system/components/LocationIcon.js.map +1 -1
  1038. package/dist/icons/design-system/components/LockIcon.cjs.map +1 -1
  1039. package/dist/icons/design-system/components/LockIcon.js.map +1 -1
  1040. package/dist/icons/design-system/components/MagentoIcon.cjs.map +1 -1
  1041. package/dist/icons/design-system/components/MagentoIcon.js.map +1 -1
  1042. package/dist/icons/design-system/components/MarketplaceIcon.cjs.map +1 -1
  1043. package/dist/icons/design-system/components/MarketplaceIcon.js.map +1 -1
  1044. package/dist/icons/design-system/components/MentionIcon.cjs.map +1 -1
  1045. package/dist/icons/design-system/components/MentionIcon.js.map +1 -1
  1046. package/dist/icons/design-system/components/MenuIcon.cjs.map +1 -1
  1047. package/dist/icons/design-system/components/MenuIcon.js.map +1 -1
  1048. package/dist/icons/design-system/components/MergeIcon.cjs.map +1 -1
  1049. package/dist/icons/design-system/components/MergeIcon.js.map +1 -1
  1050. package/dist/icons/design-system/components/MinusIcon.cjs.map +1 -1
  1051. package/dist/icons/design-system/components/MinusIcon.js.map +1 -1
  1052. package/dist/icons/design-system/components/MoreHorizIcon.cjs.map +1 -1
  1053. package/dist/icons/design-system/components/MoreHorizIcon.js.map +1 -1
  1054. package/dist/icons/design-system/components/MoreIcon.cjs.map +1 -1
  1055. package/dist/icons/design-system/components/MoreIcon.js.map +1 -1
  1056. package/dist/icons/design-system/components/NotFavouriteIcon.cjs.map +1 -1
  1057. package/dist/icons/design-system/components/NotFavouriteIcon.js.map +1 -1
  1058. package/dist/icons/design-system/components/NotesIcon.cjs.map +1 -1
  1059. package/dist/icons/design-system/components/NotesIcon.js.map +1 -1
  1060. package/dist/icons/design-system/components/NotificationsIcon.cjs.map +1 -1
  1061. package/dist/icons/design-system/components/NotificationsIcon.js.map +1 -1
  1062. package/dist/icons/design-system/components/OpenCartIcon.cjs.map +1 -1
  1063. package/dist/icons/design-system/components/OpenCartIcon.js.map +1 -1
  1064. package/dist/icons/design-system/components/OpenInFullIcon.cjs.map +1 -1
  1065. package/dist/icons/design-system/components/OpenInFullIcon.js.map +1 -1
  1066. package/dist/icons/design-system/components/OpenModalIcon.cjs.map +1 -1
  1067. package/dist/icons/design-system/components/OpenModalIcon.js.map +1 -1
  1068. package/dist/icons/design-system/components/OrdersIcon.cjs.map +1 -1
  1069. package/dist/icons/design-system/components/OrdersIcon.js.map +1 -1
  1070. package/dist/icons/design-system/components/PauseIcon.cjs.map +1 -1
  1071. package/dist/icons/design-system/components/PauseIcon.js.map +1 -1
  1072. package/dist/icons/design-system/components/PayIcon.cjs.map +1 -1
  1073. package/dist/icons/design-system/components/PayIcon.js.map +1 -1
  1074. package/dist/icons/design-system/components/PendingFillIcon.cjs.map +1 -1
  1075. package/dist/icons/design-system/components/PendingFillIcon.js.map +1 -1
  1076. package/dist/icons/design-system/components/PhoneIcon.cjs.map +1 -1
  1077. package/dist/icons/design-system/components/PhoneIcon.js.map +1 -1
  1078. package/dist/icons/design-system/components/PickIcon.cjs.map +1 -1
  1079. package/dist/icons/design-system/components/PickIcon.js.map +1 -1
  1080. package/dist/icons/design-system/components/PickerIcon.cjs.map +1 -1
  1081. package/dist/icons/design-system/components/PickerIcon.js.map +1 -1
  1082. package/dist/icons/design-system/components/PieChartIcon.cjs.map +1 -1
  1083. package/dist/icons/design-system/components/PieChartIcon.js.map +1 -1
  1084. package/dist/icons/design-system/components/PinFillIcon.cjs.map +1 -1
  1085. package/dist/icons/design-system/components/PinFillIcon.js.map +1 -1
  1086. package/dist/icons/design-system/components/PinOutlineIcon.cjs.map +1 -1
  1087. package/dist/icons/design-system/components/PinOutlineIcon.js.map +1 -1
  1088. package/dist/icons/design-system/components/PlayIcon.cjs.map +1 -1
  1089. package/dist/icons/design-system/components/PlayIcon.js.map +1 -1
  1090. package/dist/icons/design-system/components/PosIcon.cjs.map +1 -1
  1091. package/dist/icons/design-system/components/PosIcon.js.map +1 -1
  1092. package/dist/icons/design-system/components/PowerIcon.cjs.map +1 -1
  1093. package/dist/icons/design-system/components/PowerIcon.js.map +1 -1
  1094. package/dist/icons/design-system/components/PremiumDeliveryIcon.cjs.map +1 -1
  1095. package/dist/icons/design-system/components/PremiumDeliveryIcon.js.map +1 -1
  1096. package/dist/icons/design-system/components/PriceMinisterIcon.cjs.map +1 -1
  1097. package/dist/icons/design-system/components/PriceMinisterIcon.js.map +1 -1
  1098. package/dist/icons/design-system/components/PrimeIcon.cjs.map +1 -1
  1099. package/dist/icons/design-system/components/PrimeIcon.js.map +1 -1
  1100. package/dist/icons/design-system/components/PrintIcon.cjs.map +1 -1
  1101. package/dist/icons/design-system/components/PrintIcon.js.map +1 -1
  1102. package/dist/icons/design-system/components/PrintingTemplatesIcon.cjs.map +1 -1
  1103. package/dist/icons/design-system/components/PrintingTemplatesIcon.js.map +1 -1
  1104. package/dist/icons/design-system/components/ProductMenuIcon.cjs.map +1 -1
  1105. package/dist/icons/design-system/components/ProductMenuIcon.js.map +1 -1
  1106. package/dist/icons/design-system/components/ProductsIcon.cjs.map +1 -1
  1107. package/dist/icons/design-system/components/ProductsIcon.js.map +1 -1
  1108. package/dist/icons/design-system/components/ProtectionIcon.cjs.map +1 -1
  1109. package/dist/icons/design-system/components/ProtectionIcon.js.map +1 -1
  1110. package/dist/icons/design-system/components/ProtectionNoneIcon.cjs.map +1 -1
  1111. package/dist/icons/design-system/components/ProtectionNoneIcon.js.map +1 -1
  1112. package/dist/icons/design-system/components/RakutenIcon.cjs.map +1 -1
  1113. package/dist/icons/design-system/components/RakutenIcon.js.map +1 -1
  1114. package/dist/icons/design-system/components/RefreshIcon.cjs.map +1 -1
  1115. package/dist/icons/design-system/components/RefreshIcon.js.map +1 -1
  1116. package/dist/icons/design-system/components/ReorderIcon.cjs.map +1 -1
  1117. package/dist/icons/design-system/components/ReorderIcon.js.map +1 -1
  1118. package/dist/icons/design-system/components/ReportsIcon.cjs.map +1 -1
  1119. package/dist/icons/design-system/components/ReportsIcon.js.map +1 -1
  1120. package/dist/icons/design-system/components/RestartIcon.cjs.map +1 -1
  1121. package/dist/icons/design-system/components/RestartIcon.js.map +1 -1
  1122. package/dist/icons/design-system/components/ReturnIcon.cjs.map +1 -1
  1123. package/dist/icons/design-system/components/ReturnIcon.js.map +1 -1
  1124. package/dist/icons/design-system/components/ReturnPaidIcon.cjs.map +1 -1
  1125. package/dist/icons/design-system/components/ReturnPaidIcon.js.map +1 -1
  1126. package/dist/icons/design-system/components/ReturnReasonIcon.cjs.map +1 -1
  1127. package/dist/icons/design-system/components/ReturnReasonIcon.js.map +1 -1
  1128. package/dist/icons/design-system/components/RightArrowIcon.cjs.map +1 -1
  1129. package/dist/icons/design-system/components/RightArrowIcon.js.map +1 -1
  1130. package/dist/icons/design-system/components/RocketAssistantIcon.cjs.map +1 -1
  1131. package/dist/icons/design-system/components/RocketAssistantIcon.js.map +1 -1
  1132. package/dist/icons/design-system/components/RocketIcon.cjs.map +1 -1
  1133. package/dist/icons/design-system/components/RocketIcon.js.map +1 -1
  1134. package/dist/icons/design-system/components/RuleIcon.cjs.map +1 -1
  1135. package/dist/icons/design-system/components/RuleIcon.js.map +1 -1
  1136. package/dist/icons/design-system/components/SaveIcon.cjs.map +1 -1
  1137. package/dist/icons/design-system/components/SaveIcon.js.map +1 -1
  1138. package/dist/icons/design-system/components/ScalesIcon.cjs.map +1 -1
  1139. package/dist/icons/design-system/components/ScalesIcon.js.map +1 -1
  1140. package/dist/icons/design-system/components/ScheduleIcon.cjs.map +1 -1
  1141. package/dist/icons/design-system/components/ScheduleIcon.js.map +1 -1
  1142. package/dist/icons/design-system/components/SearchIcon.cjs.map +1 -1
  1143. package/dist/icons/design-system/components/SearchIcon.js.map +1 -1
  1144. package/dist/icons/design-system/components/SecurityOffIcon.cjs.map +1 -1
  1145. package/dist/icons/design-system/components/SecurityOffIcon.js.map +1 -1
  1146. package/dist/icons/design-system/components/SecurityOnIcon.cjs.map +1 -1
  1147. package/dist/icons/design-system/components/SecurityOnIcon.js.map +1 -1
  1148. package/dist/icons/design-system/components/SendIcon.cjs.map +1 -1
  1149. package/dist/icons/design-system/components/SendIcon.js.map +1 -1
  1150. package/dist/icons/design-system/components/SettingsIcon.cjs.map +1 -1
  1151. package/dist/icons/design-system/components/SettingsIcon.js.map +1 -1
  1152. package/dist/icons/design-system/components/SettingsOutlineIcon.cjs.map +1 -1
  1153. package/dist/icons/design-system/components/SettingsOutlineIcon.js.map +1 -1
  1154. package/dist/icons/design-system/components/ShareIcon.cjs.map +1 -1
  1155. package/dist/icons/design-system/components/ShareIcon.js.map +1 -1
  1156. package/dist/icons/design-system/components/ShipIcon.cjs.map +1 -1
  1157. package/dist/icons/design-system/components/ShipIcon.js.map +1 -1
  1158. package/dist/icons/design-system/components/ShippingRulesIcon.cjs.map +1 -1
  1159. package/dist/icons/design-system/components/ShippingRulesIcon.js.map +1 -1
  1160. package/dist/icons/design-system/components/ShopifyIcon.cjs.map +1 -1
  1161. package/dist/icons/design-system/components/ShopifyIcon.js.map +1 -1
  1162. package/dist/icons/design-system/components/SidebarIcon.cjs.map +1 -1
  1163. package/dist/icons/design-system/components/SidebarIcon.js.map +1 -1
  1164. package/dist/icons/design-system/components/SignatureIcon.cjs.map +1 -1
  1165. package/dist/icons/design-system/components/SignatureIcon.js.map +1 -1
  1166. package/dist/icons/design-system/components/SmartPhoneIcon.cjs.map +1 -1
  1167. package/dist/icons/design-system/components/SmartPhoneIcon.js.map +1 -1
  1168. package/dist/icons/design-system/components/SortIcon.cjs.map +1 -1
  1169. package/dist/icons/design-system/components/SortIcon.js.map +1 -1
  1170. package/dist/icons/design-system/components/StartArrowIcon.cjs.map +1 -1
  1171. package/dist/icons/design-system/components/StartArrowIcon.js.map +1 -1
  1172. package/dist/icons/design-system/components/StockTakeIcon.cjs.map +1 -1
  1173. package/dist/icons/design-system/components/StockTakeIcon.js.map +1 -1
  1174. package/dist/icons/design-system/components/StockWheelIcon.cjs.map +1 -1
  1175. package/dist/icons/design-system/components/StockWheelIcon.js.map +1 -1
  1176. package/dist/icons/design-system/components/StoreIcon.cjs.map +1 -1
  1177. package/dist/icons/design-system/components/StoreIcon.js.map +1 -1
  1178. package/dist/icons/design-system/components/SubMagentoOrangeIcon.cjs.map +1 -1
  1179. package/dist/icons/design-system/components/SubMagentoOrangeIcon.js.map +1 -1
  1180. package/dist/icons/design-system/components/SubMagentoPurpleIcon.cjs.map +1 -1
  1181. package/dist/icons/design-system/components/SubMagentoPurpleIcon.js.map +1 -1
  1182. package/dist/icons/design-system/components/SuccessFillIcon.cjs.map +1 -1
  1183. package/dist/icons/design-system/components/SuccessFillIcon.js.map +1 -1
  1184. package/dist/icons/design-system/components/SuccessIcon.cjs.map +1 -1
  1185. package/dist/icons/design-system/components/SuccessIcon.js.map +1 -1
  1186. package/dist/icons/design-system/components/SyncDisabledIcon.cjs.map +1 -1
  1187. package/dist/icons/design-system/components/SyncDisabledIcon.js.map +1 -1
  1188. package/dist/icons/design-system/components/SyncIcon.cjs.map +1 -1
  1189. package/dist/icons/design-system/components/SyncIcon.js.map +1 -1
  1190. package/dist/icons/design-system/components/TagOffIcon.cjs.map +1 -1
  1191. package/dist/icons/design-system/components/TagOffIcon.js.map +1 -1
  1192. package/dist/icons/design-system/components/TagsIcon.cjs.map +1 -1
  1193. package/dist/icons/design-system/components/TagsIcon.js.map +1 -1
  1194. package/dist/icons/design-system/components/TimeIcon.cjs.map +1 -1
  1195. package/dist/icons/design-system/components/TimeIcon.js.map +1 -1
  1196. package/dist/icons/design-system/components/TransferIcon.cjs.map +1 -1
  1197. package/dist/icons/design-system/components/TransferIcon.js.map +1 -1
  1198. package/dist/icons/design-system/components/TrashIcon.cjs.map +1 -1
  1199. package/dist/icons/design-system/components/TrashIcon.js.map +1 -1
  1200. package/dist/icons/design-system/components/UndoIcon.cjs.map +1 -1
  1201. package/dist/icons/design-system/components/UndoIcon.js.map +1 -1
  1202. package/dist/icons/design-system/components/UnlinkIcon.cjs.map +1 -1
  1203. package/dist/icons/design-system/components/UnlinkIcon.js.map +1 -1
  1204. package/dist/icons/design-system/components/UpArrowIcon.cjs.map +1 -1
  1205. package/dist/icons/design-system/components/UpArrowIcon.js.map +1 -1
  1206. package/dist/icons/design-system/components/UploadIcon.cjs.map +1 -1
  1207. package/dist/icons/design-system/components/UploadIcon.js.map +1 -1
  1208. package/dist/icons/design-system/components/UserIcon.cjs.map +1 -1
  1209. package/dist/icons/design-system/components/UserIcon.js.map +1 -1
  1210. package/dist/icons/design-system/components/UserOutlineIcon.cjs.map +1 -1
  1211. package/dist/icons/design-system/components/UserOutlineIcon.js.map +1 -1
  1212. package/dist/icons/design-system/components/UsersIcon.cjs.map +1 -1
  1213. package/dist/icons/design-system/components/UsersIcon.js.map +1 -1
  1214. package/dist/icons/design-system/components/VariantIcon.cjs.map +1 -1
  1215. package/dist/icons/design-system/components/VariantIcon.js.map +1 -1
  1216. package/dist/icons/design-system/components/VeeqoUniversityIcon.cjs.map +1 -1
  1217. package/dist/icons/design-system/components/VeeqoUniversityIcon.js.map +1 -1
  1218. package/dist/icons/design-system/components/VendIcon.cjs.map +1 -1
  1219. package/dist/icons/design-system/components/VendIcon.js.map +1 -1
  1220. package/dist/icons/design-system/components/VisibilityIcon.cjs.map +1 -1
  1221. package/dist/icons/design-system/components/VisibilityIcon.js.map +1 -1
  1222. package/dist/icons/design-system/components/VisibilityOffIcon.cjs.map +1 -1
  1223. package/dist/icons/design-system/components/VisibilityOffIcon.js.map +1 -1
  1224. package/dist/icons/design-system/components/WarehouseIcon.cjs.map +1 -1
  1225. package/dist/icons/design-system/components/WarehouseIcon.js.map +1 -1
  1226. package/dist/icons/design-system/components/WarningIcon.cjs.map +1 -1
  1227. package/dist/icons/design-system/components/WarningIcon.js.map +1 -1
  1228. package/dist/icons/design-system/components/WarningOutlineIcon.cjs.map +1 -1
  1229. package/dist/icons/design-system/components/WarningOutlineIcon.js.map +1 -1
  1230. package/dist/icons/design-system/components/WholesaleIcon.cjs.map +1 -1
  1231. package/dist/icons/design-system/components/WholesaleIcon.js.map +1 -1
  1232. package/dist/icons/design-system/components/WooCommerceIcon.cjs.map +1 -1
  1233. package/dist/icons/design-system/components/WooCommerceIcon.js.map +1 -1
  1234. package/dist/index.cjs +15 -15
  1235. package/dist/logos/components/AmazonLogoFull.cjs.map +1 -1
  1236. package/dist/logos/components/AmazonLogoFull.js.map +1 -1
  1237. package/dist/logos/components/BigCommerceLogoFull.cjs.map +1 -1
  1238. package/dist/logos/components/BigCommerceLogoFull.js.map +1 -1
  1239. package/dist/logos/components/CDiscountLogoFull.cjs.map +1 -1
  1240. package/dist/logos/components/CDiscountLogoFull.js.map +1 -1
  1241. package/dist/logos/components/EbayLogoFull.cjs.map +1 -1
  1242. package/dist/logos/components/EbayLogoFull.js.map +1 -1
  1243. package/dist/logos/components/EtsyLogoFull.cjs.map +1 -1
  1244. package/dist/logos/components/EtsyLogoFull.js.map +1 -1
  1245. package/dist/logos/components/MagentoLogoFull.cjs.map +1 -1
  1246. package/dist/logos/components/MagentoLogoFull.js.map +1 -1
  1247. package/dist/logos/components/NothsLogoFull.cjs.map +1 -1
  1248. package/dist/logos/components/NothsLogoFull.js.map +1 -1
  1249. package/dist/logos/components/OpenCartLogoFull.cjs.map +1 -1
  1250. package/dist/logos/components/OpenCartLogoFull.js.map +1 -1
  1251. package/dist/logos/components/PrestashopLogoFull.cjs.map +1 -1
  1252. package/dist/logos/components/PrestashopLogoFull.js.map +1 -1
  1253. package/dist/logos/components/PriceMinisterLogoFull.cjs.map +1 -1
  1254. package/dist/logos/components/PriceMinisterLogoFull.js.map +1 -1
  1255. package/dist/logos/components/PrimeLogoFull.cjs.map +1 -1
  1256. package/dist/logos/components/PrimeLogoFull.js.map +1 -1
  1257. package/dist/logos/components/RakutenLogoFull.cjs.map +1 -1
  1258. package/dist/logos/components/RakutenLogoFull.js.map +1 -1
  1259. package/dist/logos/components/ShopifyLogoFull.cjs.map +1 -1
  1260. package/dist/logos/components/ShopifyLogoFull.js.map +1 -1
  1261. package/dist/logos/components/TikTokLogoFull.cjs.map +1 -1
  1262. package/dist/logos/components/TikTokLogoFull.js.map +1 -1
  1263. package/dist/logos/components/VeeqoLogoFull.cjs.map +1 -1
  1264. package/dist/logos/components/VeeqoLogoFull.js.map +1 -1
  1265. package/dist/logos/components/VendLogoFull.cjs.map +1 -1
  1266. package/dist/logos/components/VendLogoFull.js.map +1 -1
  1267. package/dist/logos/components/WalmartLogoFull.cjs.map +1 -1
  1268. package/dist/logos/components/WalmartLogoFull.js.map +1 -1
  1269. package/dist/logos/components/WooCommerceLogoFull.cjs.map +1 -1
  1270. package/dist/logos/components/WooCommerceLogoFull.js.map +1 -1
  1271. package/dist/theme/index.cjs.map +1 -1
  1272. package/dist/theme/index.js.map +1 -1
  1273. package/dist/theme/modules/breakpoints.cjs.map +1 -1
  1274. package/dist/theme/modules/breakpoints.js.map +1 -1
  1275. package/dist/theme/modules/colors.cjs.map +1 -1
  1276. package/dist/theme/modules/colors.js.map +1 -1
  1277. package/dist/theme/modules/layers.cjs.map +1 -1
  1278. package/dist/theme/modules/layers.js.map +1 -1
  1279. package/dist/theme/modules/radius.cjs.map +1 -1
  1280. package/dist/theme/modules/radius.js.map +1 -1
  1281. package/dist/theme/modules/shadows.cjs.map +1 -1
  1282. package/dist/theme/modules/shadows.js.map +1 -1
  1283. package/dist/theme/modules/sizes.cjs.map +1 -1
  1284. package/dist/theme/modules/sizes.js.map +1 -1
  1285. package/dist/theme/modules/text.cjs.map +1 -1
  1286. package/dist/theme/modules/text.js.map +1 -1
  1287. package/dist/theme/utils.cjs.map +1 -1
  1288. package/dist/theme/utils.js.map +1 -1
  1289. package/dist/utils/assignCssVars.cjs.map +1 -1
  1290. package/dist/utils/assignCssVars.js.map +1 -1
  1291. package/dist/utils/buildCarrierMarkUrl.cjs.map +1 -1
  1292. package/dist/utils/buildCarrierMarkUrl.js.map +1 -1
  1293. package/dist/utils/buildChannelMarkUrl.cjs.map +1 -1
  1294. package/dist/utils/buildChannelMarkUrl.js.map +1 -1
  1295. package/dist/utils/color.cjs.map +1 -1
  1296. package/dist/utils/color.js.map +1 -1
  1297. package/dist/utils/forms/inputStyles.cjs.map +1 -1
  1298. package/dist/utils/forms/inputStyles.js.map +1 -1
  1299. package/dist/utils/forms/variables.cjs.map +1 -1
  1300. package/dist/utils/forms/variables.js.map +1 -1
  1301. package/dist/utils/generateId.cjs.map +1 -1
  1302. package/dist/utils/generateId.js.map +1 -1
  1303. package/package.json +19 -18
@@ -1 +1 @@
1
- {"version":3,"file":"constants.cjs","sources":["../../../src/components/UploadFile/constants.ts"],"sourcesContent":["export enum AcceptedFileTypes {\n // DATA FILES\n CSV = '.csv',\n JSON = '.json',\n XML = '.xml',\n TXT = '.txt',\n\n // DOCUMENTS\n PDF = '.pdf',\n DOC = '.doc',\n DOCX = '.docx',\n XLS = '.xls',\n XLSX = '.xlsx',\n PPT = '.ppt',\n PPTX = '.pptx',\n ODT = '.odt',\n ODS = '.ods',\n ODP = '.odp',\n RTF = '.rtf',\n\n // IMAGES\n JPEG = '.jpeg',\n JPG = '.jpg',\n PNG = '.png',\n GIF = '.gif',\n BMP = '.bmp',\n WEBP = '.webp',\n SVG = '.svg',\n ICO = '.ico',\n TIFF = '.tiff',\n TIF = '.tif',\n\n // AUDIO\n MP3 = '.mp3',\n WAV = '.wav',\n OGG = '.ogg',\n AAC = '.aac',\n FLAC = '.flac',\n M4A = '.m4a',\n WMA = '.wma',\n\n // VIDEO\n MP4 = '.mp4',\n AVI = '.avi',\n MOV = '.mov',\n WMV = '.wmv',\n FLV = '.flv',\n WEBM = '.webm',\n MKV = '.mkv',\n M4V = '.m4v',\n\n // ARCHIVES\n ZIP = '.zip',\n RAR = '.rar',\n SEVEN_Z = '.7z',\n TAR = '.tar',\n GZ = '.gz',\n}\n\nexport enum FileSizeUnit {\n KB = 'KB',\n MB = 'MB',\n}\n\nexport enum ErrorType {\n critical = 'CRITICAL',\n warning = 'WARNING',\n}\n\nexport enum CriticalErrorMessages {\n INVALID_FORMAT = 'Invalid format',\n FILE_IS_TOO_BIG = 'File is too big',\n}\n\nexport const DEFAULT_MAXIMUM_MULTIPLE_FILES = 10;\n\nexport const DEFAULT_MAXIMUM_FILE_BYTES = 1000000;\n\nexport enum InputErrorStateMessages {\n VALID = '',\n INVALID_FORMAT = 'Please provide a file with a valid format.',\n INVALID_FORMATS = 'Please provide files with a valid format.',\n INVALID_SIZE = 'Please provide file with an acceptable size.',\n INVALID_SIZES = 'Please provide files with an acceptable size.',\n INVALID_FORMAT_AND_SIZE = 'Please provide files with an acceptable size and format.',\n}\n"],"names":["AcceptedFileTypes","FileSizeUnit","ErrorType","CriticalErrorMessages","InputErrorStateMessages"],"mappings":";;AAAYA;AAAZ,CAAA,UAAY,iBAAiB,EAAA;;AAE3B,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;;AAGZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CA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rC,CAAC,EAHWA,6BAAqB,KAArBA,6BAAqB,GAGhC,EAAA,CAAA,CAAA;AAEM,MAAM,8BAA8B,GAAG;AAEvC,MAAM,0BAA0B,GAAG;AAE9BC;AAAZ,CAAA,UAAY,uBAAuB,EAAA;AACjC,IAAA,uBAAA,CAAA,OAAA,CAAA,GAAA,EAAU;AACV,IAAA,uBAAA,CAAA,gBAAA,CAAA,GAAA,4CAA6D;AAC7D,IAAA,uBAAA,CAAA,iBAAA,CAAA,GAAA,2CAA6D;AAC7D,IAAA,uBAAA,CAAA,cAAA,CAAA,GAAA,8CAA6D;AAC7D,IAAA,uBAAA,CAAA,eAAA,CAAA,GAAA,+CAA+D;AAC/D,IAAA,uBAAA,CAAA,yBAAA,CAAA,GAAA,0DAAoF;AACtF,CAAC,EAPWA,+BAAuB,KAAvBA,+BAAuB,GAOlC,EAAA,CAAA,CAAA;;;;;"}
1
+ {"version":3,"file":"constants.cjs","sources":["../../../src/components/UploadFile/constants.ts"],"sourcesContent":["export enum AcceptedFileTypes {\n // DATA FILES\n CSV = '.csv',\n JSON = '.json',\n XML = '.xml',\n TXT = '.txt',\n\n // DOCUMENTS\n PDF = '.pdf',\n DOC = '.doc',\n DOCX = '.docx',\n XLS = '.xls',\n XLSX = '.xlsx',\n PPT = '.ppt',\n PPTX = '.pptx',\n ODT = '.odt',\n ODS = '.ods',\n ODP = '.odp',\n RTF = '.rtf',\n\n // IMAGES\n JPEG = '.jpeg',\n JPG = '.jpg',\n PNG = '.png',\n GIF = '.gif',\n BMP = '.bmp',\n WEBP = '.webp',\n SVG = '.svg',\n ICO = '.ico',\n TIFF = '.tiff',\n TIF = '.tif',\n\n // AUDIO\n MP3 = '.mp3',\n WAV = '.wav',\n OGG = '.ogg',\n AAC = '.aac',\n FLAC = '.flac',\n M4A = '.m4a',\n WMA = '.wma',\n\n // VIDEO\n MP4 = '.mp4',\n AVI = '.avi',\n MOV = '.mov',\n WMV = '.wmv',\n FLV = '.flv',\n WEBM = '.webm',\n MKV = '.mkv',\n M4V = '.m4v',\n\n // ARCHIVES\n ZIP = '.zip',\n RAR = '.rar',\n SEVEN_Z = '.7z',\n TAR = '.tar',\n GZ = '.gz',\n}\n\nexport enum FileSizeUnit {\n KB = 'KB',\n MB = 'MB',\n}\n\nexport enum ErrorType {\n critical = 'CRITICAL',\n warning = 'WARNING',\n}\n\nexport enum CriticalErrorMessages {\n INVALID_FORMAT = 'Invalid format',\n FILE_IS_TOO_BIG = 'File is too big',\n}\n\nexport const DEFAULT_MAXIMUM_MULTIPLE_FILES = 10;\n\nexport const DEFAULT_MAXIMUM_FILE_BYTES = 1000000;\n\nexport enum InputErrorStateMessages {\n VALID = '',\n INVALID_FORMAT = 'Please provide a file with a valid format.',\n INVALID_FORMATS = 'Please provide files with a valid format.',\n INVALID_SIZE = 'Please provide file with an acceptable size.',\n INVALID_SIZES = 'Please provide files with an acceptable size.',\n INVALID_FORMAT_AND_SIZE = 'Please provide files with an acceptable size and format.',\n}\n"],"names":["AcceptedFileTypes","FileSizeUnit","ErrorType","CriticalErrorMessages","InputErrorStateMessages"],"mappings":";;AAAYA;AAAZ,CAAA,UAAY,iBAAiB,EAAA;;AAE3B,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;;AAGZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBA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AZ,CAAA,UAAY,uBAAuB,EAAA;AACjC,IAAA,uBAAA,CAAA,OAAA,CAAA,GAAA,EAAU;AACV,IAAA,uBAAA,CAAA,gBAAA,CAAA,GAAA,4CAA6D;AAC7D,IAAA,uBAAA,CAAA,iBAAA,CAAA,GAAA,2CAA6D;AAC7D,IAAA,uBAAA,CAAA,cAAA,CAAA,GAAA,8CAA6D;AAC7D,IAAA,uBAAA,CAAA,eAAA,CAAA,GAAA,+CAA+D;AAC/D,IAAA,uBAAA,CAAA,yBAAA,CAAA,GAAA,0DAAoF;AACtF,CAAC,EAPWA,+BAAuB,KAAvBA,+BAAuB,GAAA,EAAA,CAAA,CAAA;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sources":["../../../src/components/UploadFile/constants.ts"],"sourcesContent":["export enum AcceptedFileTypes {\n // DATA FILES\n CSV = '.csv',\n JSON = '.json',\n XML = '.xml',\n TXT = '.txt',\n\n // DOCUMENTS\n PDF = '.pdf',\n DOC = '.doc',\n DOCX = '.docx',\n XLS = '.xls',\n XLSX = '.xlsx',\n PPT = '.ppt',\n PPTX = '.pptx',\n ODT = '.odt',\n ODS = '.ods',\n ODP = '.odp',\n RTF = '.rtf',\n\n // IMAGES\n JPEG = '.jpeg',\n JPG = '.jpg',\n PNG = '.png',\n GIF = '.gif',\n BMP = '.bmp',\n WEBP = '.webp',\n SVG = '.svg',\n ICO = '.ico',\n TIFF = '.tiff',\n TIF = '.tif',\n\n // AUDIO\n MP3 = '.mp3',\n WAV = '.wav',\n OGG = '.ogg',\n AAC = '.aac',\n FLAC = '.flac',\n M4A = '.m4a',\n WMA = '.wma',\n\n // VIDEO\n MP4 = '.mp4',\n AVI = '.avi',\n MOV = '.mov',\n WMV = '.wmv',\n FLV = '.flv',\n WEBM = '.webm',\n MKV = '.mkv',\n M4V = '.m4v',\n\n // ARCHIVES\n ZIP = '.zip',\n RAR = '.rar',\n SEVEN_Z = '.7z',\n TAR = '.tar',\n GZ = '.gz',\n}\n\nexport enum FileSizeUnit {\n KB = 'KB',\n MB = 'MB',\n}\n\nexport enum ErrorType {\n critical = 'CRITICAL',\n warning = 'WARNING',\n}\n\nexport enum CriticalErrorMessages {\n INVALID_FORMAT = 'Invalid format',\n FILE_IS_TOO_BIG = 'File is too big',\n}\n\nexport const DEFAULT_MAXIMUM_MULTIPLE_FILES = 10;\n\nexport const DEFAULT_MAXIMUM_FILE_BYTES = 1000000;\n\nexport enum InputErrorStateMessages {\n VALID = '',\n INVALID_FORMAT = 'Please provide a file with a valid format.',\n INVALID_FORMATS = 'Please provide files with a valid format.',\n INVALID_SIZE = 'Please provide file with an acceptable size.',\n INVALID_SIZES = 'Please provide files with an acceptable size.',\n INVALID_FORMAT_AND_SIZE = 'Please provide files with an acceptable size and format.',\n}\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,iBAAiB,EAAA;;AAE3B,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;;AAGZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;A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AA,uBAAA,CAAA,cAAA,CAAA,GAAA,8CAA6D;AAC7D,IAAA,uBAAA,CAAA,eAAA,CAAA,GAAA,+CAA+D;AAC/D,IAAA,uBAAA,CAAA,yBAAA,CAAA,GAAA,0DAAoF;AACtF,CAAC,EAPW,uBAAuB,KAAvB,uBAAuB,GAOlC,EAAA,CAAA,CAAA;;;;"}
1
+ {"version":3,"file":"constants.js","sources":["../../../src/components/UploadFile/constants.ts"],"sourcesContent":["export enum AcceptedFileTypes {\n // DATA FILES\n CSV = '.csv',\n JSON = '.json',\n XML = '.xml',\n TXT = '.txt',\n\n // DOCUMENTS\n PDF = '.pdf',\n DOC = '.doc',\n DOCX = '.docx',\n XLS = '.xls',\n XLSX = '.xlsx',\n PPT = '.ppt',\n PPTX = '.pptx',\n ODT = '.odt',\n ODS = '.ods',\n ODP = '.odp',\n RTF = '.rtf',\n\n // IMAGES\n JPEG = '.jpeg',\n JPG = '.jpg',\n PNG = '.png',\n GIF = '.gif',\n BMP = '.bmp',\n WEBP = '.webp',\n SVG = '.svg',\n ICO = '.ico',\n TIFF = '.tiff',\n TIF = '.tif',\n\n // AUDIO\n MP3 = '.mp3',\n WAV = '.wav',\n OGG = '.ogg',\n AAC = '.aac',\n FLAC = '.flac',\n M4A = '.m4a',\n WMA = '.wma',\n\n // VIDEO\n MP4 = '.mp4',\n AVI = '.avi',\n MOV = '.mov',\n WMV = '.wmv',\n FLV = '.flv',\n WEBM = '.webm',\n MKV = '.mkv',\n M4V = '.m4v',\n\n // ARCHIVES\n ZIP = '.zip',\n RAR = '.rar',\n SEVEN_Z = '.7z',\n TAR = '.tar',\n GZ = '.gz',\n}\n\nexport enum FileSizeUnit {\n KB = 'KB',\n MB = 'MB',\n}\n\nexport enum ErrorType {\n critical = 'CRITICAL',\n warning = 'WARNING',\n}\n\nexport enum CriticalErrorMessages {\n INVALID_FORMAT = 'Invalid format',\n FILE_IS_TOO_BIG = 'File is too big',\n}\n\nexport const DEFAULT_MAXIMUM_MULTIPLE_FILES = 10;\n\nexport const DEFAULT_MAXIMUM_FILE_BYTES = 1000000;\n\nexport enum InputErrorStateMessages {\n VALID = '',\n INVALID_FORMAT = 'Please provide a file with a valid format.',\n INVALID_FORMATS = 'Please provide files with a valid format.',\n INVALID_SIZE = 'Please provide file with an acceptable size.',\n INVALID_SIZES = 'Please provide files with an acceptable size.',\n INVALID_FORMAT_AND_SIZE = 'Please provide files with an acceptable size and format.',\n}\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,iBAAiB,EAAA;;AAE3B,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;;AAGZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;;AAGZ,IAAA,iBAAA,CAAA,MAAA,CAAA,GAAA,OAAc;AACd,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iBAAA,CAAA,KAAA,CAAA,GAAA,MAAY;AACZ,IAAA,iB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AA;;;;"}
@@ -22,13 +22,13 @@ const useUploadFile = ({ onFileInputCancelled } = {}) => {
22
22
  }, [fileList, inputRef]);
23
23
  // Restores the previous file selection when user cancels the file dialog
24
24
  const onCancel = React.useCallback(() => {
25
- onFileInputCancelled === null || onFileInputCancelled === undefined ? undefined : onFileInputCancelled(inputRef);
25
+ onFileInputCancelled === null || onFileInputCancelled === void 0 ? void 0 : onFileInputCancelled(inputRef);
26
26
  // If there are no existing files to restore, just return
27
27
  if (!fileList || fileList.length === 0)
28
28
  return;
29
29
  const newFileList = new DataTransfer();
30
30
  Array.from(fileList).forEach((file) => newFileList.items.add(file));
31
- if (inputRef === null || inputRef === undefined ? undefined : inputRef.current) {
31
+ if (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) {
32
32
  inputRef.current.files = newFileList.files;
33
33
  }
34
34
  }, [fileList, onFileInputCancelled]);
@@ -41,14 +41,14 @@ const useUploadFile = ({ onFileInputCancelled } = {}) => {
41
41
  return; // Skip this file (remove it)
42
42
  newFileList.items.add(file);
43
43
  });
44
- if (inputRef === null || inputRef === undefined ? undefined : inputRef.current) {
44
+ if (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) {
45
45
  inputRef.current.files = newFileList.files;
46
46
  }
47
47
  setFileList(newFileList.files);
48
48
  }, [fileList]);
49
49
  const clearFileSelection = React.useCallback(() => {
50
50
  var _a;
51
- if ((_a = inputRef.current) === null || _a === undefined ? undefined : _a.value)
51
+ if ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value)
52
52
  inputRef.current.value = '';
53
53
  setFileList(undefined);
54
54
  }, []);
@@ -1 +1 @@
1
- {"version":3,"file":"useUploadFile.cjs","sources":["../../../../../src/components/UploadFile/hooks/useUploadFile/useUploadFile.ts"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from 'react';\n\ntype UseUploadFileProps = {\n onFileInputCancelled?: (inputRef: React.MutableRefObject<HTMLInputElement | null>) => void;\n};\n\nexport const useUploadFile = ({ onFileInputCancelled }: UseUploadFileProps = {}) => {\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const [fileList, setFileList] = useState<FileList>();\n\n // Keep inputRef.current.files in sync with fileList\n useEffect(() => {\n if (inputRef.current && fileList) {\n // Only update if not already the same (avoid unnecessary assignment)\n if (inputRef.current.files !== fileList) {\n const dt = new DataTransfer();\n Array.from(fileList).forEach((file) => dt.items.add(file));\n inputRef.current.files = dt.files;\n }\n }\n // If fileList is undefined, clear the input\n if (inputRef.current && !fileList) {\n inputRef.current.value = '';\n }\n }, [fileList, inputRef]);\n\n // Restores the previous file selection when user cancels the file dialog\n const onCancel = useCallback(() => {\n onFileInputCancelled?.(inputRef);\n\n // If there are no existing files to restore, just return\n if (!fileList || fileList.length === 0) return;\n\n const newFileList = new DataTransfer();\n Array.from(fileList).forEach((file) => newFileList.items.add(file));\n\n if (inputRef?.current) {\n inputRef.current.files = newFileList.files;\n }\n }, [fileList, onFileInputCancelled]);\n\n const removeFileFromList = useCallback(\n (fileToRemove: File) => {\n if (!fileList) return;\n\n const newFileList = new DataTransfer();\n Array.from(fileList).forEach((file) => {\n if (file.name === fileToRemove.name) return; // Skip this file (remove it)\n newFileList.items.add(file);\n });\n\n if (inputRef?.current) {\n inputRef.current.files = newFileList.files;\n }\n setFileList(newFileList.files);\n },\n [fileList],\n );\n\n const clearFileSelection = useCallback(() => {\n if (inputRef.current?.value) inputRef.current.value = '';\n setFileList(undefined);\n }, []);\n\n return {\n clearFileSelection,\n inputRef,\n onCancel,\n removeFileFromList,\n setFileList,\n fileList,\n };\n};\n"],"names":["useRef","useState","useEffect","useCallback"],"mappings":";;;;AAMa,MAAA,aAAa,GAAG,CAAC,EAAE,oBAAoB,EAAA,GAAyB,EAAE,KAAI;AACjF,IAAA,MAAM,QAAQ,GAAGA,YAAM,CAA0B,IAAI,CAAC;IAEtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAGC,cAAQ,EAAY;;IAGpDC,eAAS,CAAC,MAAK;AACb,QA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kB,KAAI;AACrB,QAAA,IAAI,CAAC,QAAQ;YAAE;AAEf,QAAA,MAAM,WAAW,GAAG,IAAI,YAAY,EAAE;QACtC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACpC,YAAA,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI;AAAE,gBAAA,OAAO;AAC5C,YAAA,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;AAC7B,SAAC,CAAC;AAEF,QAAA,IAAI,QAAQ,KAAR,IAAA,IAAA,QAAQ,6BAAR,QAAQ,CAAE,OAAO,EAAE;YACrB,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK;AAC3C;AACD,QAAA,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC;AAChC,KAAC,EACD,CAAC,QAAQ,CAAC,CACX;AAED,IAAA,MAAM,kBAAkB,GAAGA,iBAAW,CAAC,MAAK;;AAC1C,QAAA,IAAI,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,gDAAE,KAAK;AAAE,YAAA,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE;QACxD,WAAW,CAAC,SAAS,CAAC;KACvB,EAAE,EAAE,CAAC;IAEN,OAAO;QACL,kBAAkB;QAClB,QAAQ;QACR,QAAQ;QACR,kBAAkB;QAClB,WAAW;QACX,QAAQ;KACT;AACH;;;;"}
1
+ {"version":3,"file":"useUploadFile.cjs","sources":["../../../../../src/components/UploadFile/hooks/useUploadFile/useUploadFile.ts"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from 'react';\n\ntype UseUploadFileProps = {\n onFileInputCancelled?: (inputRef: React.MutableRefObject<HTMLInputElement | null>) => void;\n};\n\nexport const useUploadFile = ({ onFileInputCancelled }: UseUploadFileProps = {}) => {\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const [fileList, setFileList] = useState<FileList>();\n\n // Keep inputRef.current.files in sync with fileList\n useEffect(() => {\n if (inputRef.current && fileList) {\n // Only update if not already the same (avoid unnecessary assignment)\n if (inputRef.current.files !== fileList) {\n const dt = new DataTransfer();\n Array.from(fileList).forEach((file) => dt.items.add(file));\n inputRef.current.files = dt.files;\n }\n }\n // If fileList is undefined, clear the input\n if (inputRef.current && !fileList) {\n inputRef.current.value = '';\n }\n }, [fileList, inputRef]);\n\n // Restores the previous file selection when user cancels the file dialog\n const onCancel = useCallback(() => {\n onFileInputCancelled?.(inputRef);\n\n // If there are no existing files to restore, just return\n if (!fileList || fileList.length === 0) return;\n\n const newFileList = new DataTransfer();\n Array.from(fileList).forEach((file) => newFileList.items.add(file));\n\n if (inputRef?.current) {\n inputRef.current.files = newFileList.files;\n }\n }, [fileList, onFileInputCancelled]);\n\n const removeFileFromList = useCallback(\n (fileToRemove: File) => {\n if (!fileList) return;\n\n const newFileList = new DataTransfer();\n Array.from(fileList).forEach((file) => {\n if (file.name === fileToRemove.name) return; // Skip this file (remove it)\n newFileList.items.add(file);\n });\n\n if (inputRef?.current) {\n inputRef.current.files = newFileList.files;\n }\n setFileList(newFileList.files);\n },\n [fileList],\n );\n\n const clearFileSelection = useCallback(() => {\n if (inputRef.current?.value) inputRef.current.value = '';\n setFileList(undefined);\n }, []);\n\n return {\n clearFileSelection,\n inputRef,\n onCancel,\n removeFileFromList,\n setFileList,\n fileList,\n };\n};\n"],"names":["useRef","useState","useEffect","useCallback"],"mappings":";;;;AAMO,MAAM,aAAa,GAAG,CAAC,EAAE,oBAAoB,EAAA,GAAyB,EAAE,KAAI;AACjF,IAAA,MAAM,QAAQ,GAAGA,YAAM,CAA0B,IAAI,CAAC;IAEtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAGC,cAAQ,EAAY;;IAGpDC,eAAS,CAAC,MAAK;AACb,QAAA,IAAI,QAAQ,CAAC,OAAO,IAAI,QAAQ,EAAE;;AAEhC,YAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,KAA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AM,WAAW,GAAG,IAAI,YAAY,EAAE;QACtC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACpC,YAAA,IAAI,IAAI,CAAC,IAAI,KAAK,YAAY,CAAC,IAAI;AAAE,gBAAA,OAAO;AAC5C,YAAA,WAAW,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;AAC7B,QAAA,CAAC,CAAC;AAEF,QAAA,IAAI,QAAQ,KAAA,IAAA,IAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,EAAE;YACrB,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK;AAC3C,QAAA;AACD,QAAA,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC;AAChC,IAAA,CAAC,EACD,CAAC,QAAQ,CAAC,CACX;AAED,IAAA,MAAM,kBAAkB,GAAGA,iBAAW,CAAC,MAAK;;AAC1C,QAAA,IAAI,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,0CAAE,KAAK;AAAE,YAAA,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE;QACxD,WAAW,CAAC,SAAS,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC;IAEN,OAAO;QACL,kBAAkB;QAClB,QAAQ;QACR,QAAQ;QACR,kBAAkB;QAClB,WAAW;QACX,QAAQ;KACT;AACH;;;;"}
@@ -20,13 +20,13 @@ const useUploadFile = ({ onFileInputCancelled } = {}) => {
20
20
  }, [fileList, inputRef]);
21
21
  // Restores the previous file selection when user cancels the file dialog
22
22
  const onCancel = useCallback(() => {
23
- onFileInputCancelled === null || onFileInputCancelled === undefined ? undefined : onFileInputCancelled(inputRef);
23
+ onFileInputCancelled === null || onFileInputCancelled === void 0 ? void 0 : onFileInputCancelled(inputRef);
24
24
  // If there are no existing files to restore, just return
25
25
  if (!fileList || fileList.length === 0)
26
26
  return;
27
27
  const newFileList = new DataTransfer();
28
28
  Array.from(fileList).forEach((file) => newFileList.items.add(file));
29
- if (inputRef === null || inputRef === undefined ? undefined : inputRef.current) {
29
+ if (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) {
30
30
  inputRef.current.files = newFileList.files;
31
31
  }
32
32
  }, [fileList, onFileInputCancelled]);
@@ -39,14 +39,14 @@ const useUploadFile = ({ onFileInputCancelled } = {}) => {
39
39
  return; // Skip this file (remove it)
40
40
  newFileList.items.add(file);
41
41
  });
42
- if (inputRef === null || inputRef === undefined ? undefined : inputRef.current) {
42
+ if (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) {
43
43
  inputRef.current.files = newFileList.files;
44
44
  }
45
45
  setFileList(newFileList.files);
46
46
  }, [fileList]);
47
47
  const clearFileSelection = useCallback(() => {
48
48
  var _a;
49
- if ((_a = inputRef.current) === null || _a === undefined ? undefined : _a.value)
49
+ if ((_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value)
50
50
  inputRef.current.value = '';
51
51
  setFileList(undefined);
52
52
  }, []);
@@ -1 +1 @@
1
- {"version":3,"file":"useUploadFile.js","sources":["../../../../../src/components/UploadFile/hooks/useUploadFile/useUploadFile.ts"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from 'react';\n\ntype UseUploadFileProps = {\n onFileInputCancelled?: (inputRef: React.MutableRefObject<HTMLInputElement | null>) => void;\n};\n\nexport const useUploadFile = ({ onFileInputCancelled }: UseUploadFileProps = {}) => {\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const [fileList, setFileList] = useState<FileList>();\n\n // Keep inputRef.current.files in sync with fileList\n useEffect(() => {\n if (inputRef.current && fileList) {\n // Only update if not already the same (avoid unnecessary assignment)\n if (inputRef.current.files !== fileList) {\n const dt = new DataTransfer();\n Array.from(fileList).forEach((file) => dt.items.add(file));\n inputRef.current.files = dt.files;\n }\n }\n // If fileList is undefined, clear the input\n if (inputRef.current && !fileList) {\n inputRef.current.value = '';\n }\n }, [fileList, inputRef]);\n\n // Restores the previous file selection when user cancels the file dialog\n const onCancel = useCallback(() => {\n onFileInputCancelled?.(inputRef);\n\n // If there are no existing files to restore, just return\n if (!fileList || fileList.length === 0) return;\n\n const newFileList = new DataTransfer();\n Array.from(fileList).forEach((file) => newFileList.items.add(file));\n\n if (inputRef?.current) {\n inputRef.current.files = newFileList.files;\n }\n }, [fileList, onFileInputCancelled]);\n\n const removeFileFromList = useCallback(\n (fileToRemove: File) => {\n if (!fileList) return;\n\n const newFileList = new DataTransfer();\n Array.from(fileList).forEach((file) => {\n if (file.name === fileToRemove.name) return; // Skip this file (remove it)\n newFileList.items.add(file);\n });\n\n if (inputRef?.current) {\n inputRef.current.files = newFileList.files;\n }\n setFileList(newFileList.files);\n },\n [fileList],\n );\n\n const clearFileSelection = useCallback(() => {\n if (inputRef.current?.value) inputRef.current.value = '';\n setFileList(undefined);\n }, []);\n\n return {\n clearFileSelection,\n inputRef,\n onCancel,\n removeFileFromList,\n setFileList,\n fileList,\n };\n};\n"],"names":[],"mappings":";;AAMa,MAAA,aAAa,GAAG,CAAC,EAAE,oBAAoB,EAAA,GAAyB,EAAE,KAAI;AACjF,IAAA,MAAM,QAAQ,GAAG,MAAM,CAA0B,IAAI,CAAC;IAEtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,EAAY;;IAGpD,SAAS,CAAC,MAAK;AACb,QAAA,IAAI,QAAQ,CAAC,OAAO,IAAI,QAAQ,EAAE;;AAEhC,YAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,KAAK,QAAQ,EAAE;AACvC,gBAAA,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE;gBAC7B,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAC1D,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK;AAClC;AACF;;AAED,QAAA,IAAI,QAAQ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AO,EAAE;YACrB,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK;AAC3C;AACD,QAAA,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC;AAChC,KAAC,EACD,CAAC,QAAQ,CAAC,CACX;AAED,IAAA,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAK;;AAC1C,QAAA,IAAI,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,gDAAE,KAAK;AAAE,YAAA,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE;QACxD,WAAW,CAAC,SAAS,CAAC;KACvB,EAAE,EAAE,CAAC;IAEN,OAAO;QACL,kBAAkB;QAClB,QAAQ;QACR,QAAQ;QACR,kBAAkB;QAClB,WAAW;QACX,QAAQ;KACT;AACH;;;;"}
1
+ {"version":3,"file":"useUploadFile.js","sources":["../../../../../src/components/UploadFile/hooks/useUploadFile/useUploadFile.ts"],"sourcesContent":["import { useCallback, useEffect, useRef, useState } from 'react';\n\ntype UseUploadFileProps = {\n onFileInputCancelled?: (inputRef: React.MutableRefObject<HTMLInputElement | null>) => void;\n};\n\nexport const useUploadFile = ({ onFileInputCancelled }: UseUploadFileProps = {}) => {\n const inputRef = useRef<HTMLInputElement | null>(null);\n\n const [fileList, setFileList] = useState<FileList>();\n\n // Keep inputRef.current.files in sync with fileList\n useEffect(() => {\n if (inputRef.current && fileList) {\n // Only update if not already the same (avoid unnecessary assignment)\n if (inputRef.current.files !== fileList) {\n const dt = new DataTransfer();\n Array.from(fileList).forEach((file) => dt.items.add(file));\n inputRef.current.files = dt.files;\n }\n }\n // If fileList is undefined, clear the input\n if (inputRef.current && !fileList) {\n inputRef.current.value = '';\n }\n }, [fileList, inputRef]);\n\n // Restores the previous file selection when user cancels the file dialog\n const onCancel = useCallback(() => {\n onFileInputCancelled?.(inputRef);\n\n // If there are no existing files to restore, just return\n if (!fileList || fileList.length === 0) return;\n\n const newFileList = new DataTransfer();\n Array.from(fileList).forEach((file) => newFileList.items.add(file));\n\n if (inputRef?.current) {\n inputRef.current.files = newFileList.files;\n }\n }, [fileList, onFileInputCancelled]);\n\n const removeFileFromList = useCallback(\n (fileToRemove: File) => {\n if (!fileList) return;\n\n const newFileList = new DataTransfer();\n Array.from(fileList).forEach((file) => {\n if (file.name === fileToRemove.name) return; // Skip this file (remove it)\n newFileList.items.add(file);\n });\n\n if (inputRef?.current) {\n inputRef.current.files = newFileList.files;\n }\n setFileList(newFileList.files);\n },\n [fileList],\n );\n\n const clearFileSelection = useCallback(() => {\n if (inputRef.current?.value) inputRef.current.value = '';\n setFileList(undefined);\n }, []);\n\n return {\n clearFileSelection,\n inputRef,\n onCancel,\n removeFileFromList,\n setFileList,\n fileList,\n };\n};\n"],"names":[],"mappings":";;AAMO,MAAM,aAAa,GAAG,CAAC,EAAE,oBAAoB,EAAA,GAAyB,EAAE,KAAI;AACjF,IAAA,MAAM,QAAQ,GAAG,MAAM,CAA0B,IAAI,CAAC;IAEtD,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,EAAY;;IAGpD,SAAS,CAAC,MAAK;AACb,QAAA,IAAI,QAAQ,CAAC,OAAO,IAAI,QAAQ,EAAE;;AAEhC,YAAA,IAAI,QAAQ,CAAC,OAAO,CAAC,KAAK,KAAK,QAAQ,EAAE;AACvC,gBAAA,MAAM,EAAE,GAAG,IAAI,YAAY,EAAE;gBAC7B,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAC1D,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE,CAAC,KAAK;AAClC,YAAA;AACF,QAAA;;AAED,QAAA,IAAI,QAAQ,CAAC,OAAO,IAAI,CAAC,QAAQ,EAAE;AACjC,YAAA,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE;AAC5B,QAAA;AACH,IAAA,CAA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AA,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC;AAChC,IAAA,CAAC,EACD,CAAC,QAAQ,CAAC,CACX;AAED,IAAA,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAK;;AAC1C,QAAA,IAAI,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,0CAAE,KAAK;AAAE,YAAA,QAAQ,CAAC,OAAO,CAAC,KAAK,GAAG,EAAE;QACxD,WAAW,CAAC,SAAS,CAAC;IACxB,CAAC,EAAE,EAAE,CAAC;IAEN,OAAO;QACL,kBAAkB;QAClB,QAAQ;QACR,QAAQ;QACR,kBAAkB;QAClB,WAAW;QACX,QAAQ;KACT;AACH;;;;"}
@@ -10,8 +10,8 @@ const useValidateInput = ({ fileList, fileTypes, inputRef, maxBytes, errorMessag
10
10
  const setInputValidation = React.useCallback(() => {
11
11
  var _a, _b, _c, _d;
12
12
  let errorMessage = customErrorMessage || constants.InputErrorStateMessages.VALID;
13
- if (!((_b = (_a = inputRef.current) === null || _a === undefined ? undefined : _a.files) === null || _b === undefined ? undefined : _b.length)) {
14
- (_c = inputRef.current) === null || _c === undefined ? undefined : _c.setCustomValidity(errorMessage);
13
+ if (!((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.length)) {
14
+ (_c = inputRef.current) === null || _c === void 0 ? void 0 : _c.setCustomValidity(errorMessage);
15
15
  return;
16
16
  }
17
17
  const results = {
@@ -36,7 +36,7 @@ const useValidateInput = ({ fileList, fileTypes, inputRef, maxBytes, errorMessag
36
36
  const hasSizeErrors = results.numberOfInvalidSizeFiles > 0;
37
37
  const isSingleFile = results.totalFiles === 1;
38
38
  errorMessage = getErrorMessage.getErrorMessage({ hasFormatErrors, hasSizeErrors, isSingleFile });
39
- (_d = inputRef.current) === null || _d === undefined ? undefined : _d.setCustomValidity(errorMessage);
39
+ (_d = inputRef.current) === null || _d === void 0 ? void 0 : _d.setCustomValidity(errorMessage);
40
40
  }, [customErrorMessage, inputRef, maxBytes, fileTypes]);
41
41
  // Validate input whenever fileList changes
42
42
  React.useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"useValidateInput.cjs","sources":["../../../../../src/components/UploadFile/hooks/useValidateInput/useValidateInput.ts"],"sourcesContent":["import { useEffect, useCallback } from 'react';\nimport { AcceptedFileTypes, InputErrorStateMessages } from '../../constants';\nimport { getErrorMessage } from '../../utils/getErrorMessage';\n\ntype UseValidateInputProps = {\n fileTypes: Array<AcceptedFileTypes>;\n maxBytes: number;\n fileList: FileList | undefined;\n inputRef: React.MutableRefObject<HTMLInputElement | null>;\n errorMessage?: string;\n};\n\nexport const useValidateInput = ({\n fileList,\n fileTypes,\n inputRef,\n maxBytes,\n errorMessage: customErrorMessage,\n}: UseValidateInputProps) => {\n // Tracks error states within the input element itself, using preset\n // error messages and assigns these to the input component based on the file\n const setInputValidation = useCallback(() => {\n let errorMessage = customErrorMessage || InputErrorStateMessages.VALID;\n\n if (!inputRef.current?.files?.length) {\n inputRef.current?.setCustomValidity(errorMessage);\n return;\n }\n\n const results = {\n numberOfInvalidFormatFiles: 0,\n numberOfInvalidSizeFiles: 0,\n totalFiles: inputRef.current.files.length,\n };\n\n Array.from(inputRef.current.files).forEach((file) => {\n // Check file size\n if (file.size > maxBytes) {\n results.numberOfInvalidSizeFiles += 1;\n }\n\n // Check file type/format\n const [, extension] = file.type.split('/');\n const isTypeValid = fileTypes.find((validType) => validType.substring(1) === extension);\n if (!isTypeValid) {\n results.numberOfInvalidFormatFiles += 1;\n }\n });\n\n // Determine appropriate error message based on validation results\n const hasFormatErrors = results.numberOfInvalidFormatFiles > 0;\n const hasSizeErrors = results.numberOfInvalidSizeFiles > 0;\n const isSingleFile = results.totalFiles === 1;\n\n errorMessage = getErrorMessage({ hasFormatErrors, hasSizeErrors, isSingleFile });\n\n inputRef.current?.setCustomValidity(errorMessage);\n }, [customErrorMessage, inputRef, maxBytes, fileTypes]);\n\n // Validate input whenever fileList changes\n useEffect(() => {\n setInputValidation();\n }, [fileList, setInputValidation, customErrorMessage]);\n};\n"],"names":["useCallback","InputErrorStateMessages","getErrorMessage","useEffect"],"mappings":";;;;;;AAYa,MAAA,gBAAgB,GAAG,CAAC,EAC/B,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,kBAAkB,GACV,KAAI;;;AAG1B,IAAA,MAAM,kBAAkB,GAAGA,iBAAW,CAAC,MAAK;;AAC1C,QAAA,IAAI,YAAY,GAAG,kBAAkB,IAAIC,iCAAuB,CAAC,KAAK;AAEtE,QAAA,IAAI,EAAC,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,SAAA,GAAA,EAAA,CAAE,KAAK,MAAA,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,SAAA,GAAA,EAAA,CAAE,MAAM,CAAA,EAAE;YACpC,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,SAAA,GAAA,EAAA,CAAE,iBAAiB,CAAC,YAAY,CAAC;YACjD;AACD;AAED,QAAA,MAAM,OAAO,GAAG;AACd,YAAA,0BAA0B,EAAE,CAAC;AAC7B,YAAA,wBAAwB,EAAE,CAAC;AAC3B,YAAA,UAAU,EAAE,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM;SAC1C;AAED,QAAA,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;;AAElD,YAAA,IAAI,IAAI,CAAC,IAAI,GAAG,QAAQ,EAAE;AACxB,gBAAA,OAAO,CAAC,wBAAwB,IAAI,CAAC;AACtC;;AAGD,YAAA,MAAM,GAAG,SAAS,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC;YAC1C,MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC;YACvF,IAAI,CAAC,WAAW,EAAE;AAChB,gBAAA,OAAO,CAAC,0BAA0B,IAAI,CAAC;AACxC;AACH,SAAC,CAAC;;AAGF,QAAA,MAAM,eAAe,GAAG,OAAO,CAAC,0BAA0B,GAAG,CAAC;AAC9D,QAAA,MAAM,aAAa,GAAG,OAAO,CAAC,wBAAwB,GAAG,CAAC;AAC1D,QAAA,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,KAAK,CAAC;QAE7C,YAAY,GAAGC,+BAAe,CAAC,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;QAEhF,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,SAAA,GAAA,EAAA,CAAE,iBAAiB,CAAC,YAAY,CAAC;KAClD,EAAE,CAAC,kBAAkB,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;;IAGvDC,eAAS,CAAC,MAAK;AACb,QAAA,kBAAkB,EAAE;KACrB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;AACxD;;;;"}
1
+ {"version":3,"file":"useValidateInput.cjs","sources":["../../../../../src/components/UploadFile/hooks/useValidateInput/useValidateInput.ts"],"sourcesContent":["import { useEffect, useCallback } from 'react';\nimport { AcceptedFileTypes, InputErrorStateMessages } from '../../constants';\nimport { getErrorMessage } from '../../utils/getErrorMessage';\n\ntype UseValidateInputProps = {\n fileTypes: Array<AcceptedFileTypes>;\n maxBytes: number;\n fileList: FileList | undefined;\n inputRef: React.MutableRefObject<HTMLInputElement | null>;\n errorMessage?: string;\n};\n\nexport const useValidateInput = ({\n fileList,\n fileTypes,\n inputRef,\n maxBytes,\n errorMessage: customErrorMessage,\n}: UseValidateInputProps) => {\n // Tracks error states within the input element itself, using preset\n // error messages and assigns these to the input component based on the file\n const setInputValidation = useCallback(() => {\n let errorMessage = customErrorMessage || InputErrorStateMessages.VALID;\n\n if (!inputRef.current?.files?.length) {\n inputRef.current?.setCustomValidity(errorMessage);\n return;\n }\n\n const results = {\n numberOfInvalidFormatFiles: 0,\n numberOfInvalidSizeFiles: 0,\n totalFiles: inputRef.current.files.length,\n };\n\n Array.from(inputRef.current.files).forEach((file) => {\n // Check file size\n if (file.size > maxBytes) {\n results.numberOfInvalidSizeFiles += 1;\n }\n\n // Check file type/format\n const [, extension] = file.type.split('/');\n const isTypeValid = fileTypes.find((validType) => validType.substring(1) === extension);\n if (!isTypeValid) {\n results.numberOfInvalidFormatFiles += 1;\n }\n });\n\n // Determine appropriate error message based on validation results\n const hasFormatErrors = results.numberOfInvalidFormatFiles > 0;\n const hasSizeErrors = results.numberOfInvalidSizeFiles > 0;\n const isSingleFile = results.totalFiles === 1;\n\n errorMessage = getErrorMessage({ hasFormatErrors, hasSizeErrors, isSingleFile });\n\n inputRef.current?.setCustomValidity(errorMessage);\n }, [customErrorMessage, inputRef, maxBytes, fileTypes]);\n\n // Validate input whenever fileList changes\n useEffect(() => {\n setInputValidation();\n }, [fileList, setInputValidation, customErrorMessage]);\n};\n"],"names":["useCallback","InputErrorStateMessages","getErrorMessage","useEffect"],"mappings":";;;;;;AAYO,MAAM,gBAAgB,GAAG,CAAC,EAC/B,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,kBAAkB,GACV,KAAI;;;AAG1B,IAAA,MAAM,kBAAkB,GAAGA,iBAAW,CAAC,MAAK;;AAC1C,QAAA,IAAI,YAAY,GAAG,kBAAkB,IAAIC,iCAAuB,CAAC,KAAK;AAEtE,QAAA,IAAI,EAAC,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,KAAK,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AAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,iBAAiB,CAAC,YAAY,CAAC;IACnD,CAAC,EAAE,CAAC,kBAAkB,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;;IAGvDC,eAAS,CAAC,MAAK;AACb,QAAA,kBAAkB,EAAE;IACtB,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;AACxD;;;;"}
@@ -8,8 +8,8 @@ const useValidateInput = ({ fileList, fileTypes, inputRef, maxBytes, errorMessag
8
8
  const setInputValidation = useCallback(() => {
9
9
  var _a, _b, _c, _d;
10
10
  let errorMessage = customErrorMessage || InputErrorStateMessages.VALID;
11
- if (!((_b = (_a = inputRef.current) === null || _a === undefined ? undefined : _a.files) === null || _b === undefined ? undefined : _b.length)) {
12
- (_c = inputRef.current) === null || _c === undefined ? undefined : _c.setCustomValidity(errorMessage);
11
+ if (!((_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.length)) {
12
+ (_c = inputRef.current) === null || _c === void 0 ? void 0 : _c.setCustomValidity(errorMessage);
13
13
  return;
14
14
  }
15
15
  const results = {
@@ -34,7 +34,7 @@ const useValidateInput = ({ fileList, fileTypes, inputRef, maxBytes, errorMessag
34
34
  const hasSizeErrors = results.numberOfInvalidSizeFiles > 0;
35
35
  const isSingleFile = results.totalFiles === 1;
36
36
  errorMessage = getErrorMessage({ hasFormatErrors, hasSizeErrors, isSingleFile });
37
- (_d = inputRef.current) === null || _d === undefined ? undefined : _d.setCustomValidity(errorMessage);
37
+ (_d = inputRef.current) === null || _d === void 0 ? void 0 : _d.setCustomValidity(errorMessage);
38
38
  }, [customErrorMessage, inputRef, maxBytes, fileTypes]);
39
39
  // Validate input whenever fileList changes
40
40
  useEffect(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"useValidateInput.js","sources":["../../../../../src/components/UploadFile/hooks/useValidateInput/useValidateInput.ts"],"sourcesContent":["import { useEffect, useCallback } from 'react';\nimport { AcceptedFileTypes, InputErrorStateMessages } from '../../constants';\nimport { getErrorMessage } from '../../utils/getErrorMessage';\n\ntype UseValidateInputProps = {\n fileTypes: Array<AcceptedFileTypes>;\n maxBytes: number;\n fileList: FileList | undefined;\n inputRef: React.MutableRefObject<HTMLInputElement | null>;\n errorMessage?: string;\n};\n\nexport const useValidateInput = ({\n fileList,\n fileTypes,\n inputRef,\n maxBytes,\n errorMessage: customErrorMessage,\n}: UseValidateInputProps) => {\n // Tracks error states within the input element itself, using preset\n // error messages and assigns these to the input component based on the file\n const setInputValidation = useCallback(() => {\n let errorMessage = customErrorMessage || InputErrorStateMessages.VALID;\n\n if (!inputRef.current?.files?.length) {\n inputRef.current?.setCustomValidity(errorMessage);\n return;\n }\n\n const results = {\n numberOfInvalidFormatFiles: 0,\n numberOfInvalidSizeFiles: 0,\n totalFiles: inputRef.current.files.length,\n };\n\n Array.from(inputRef.current.files).forEach((file) => {\n // Check file size\n if (file.size > maxBytes) {\n results.numberOfInvalidSizeFiles += 1;\n }\n\n // Check file type/format\n const [, extension] = file.type.split('/');\n const isTypeValid = fileTypes.find((validType) => validType.substring(1) === extension);\n if (!isTypeValid) {\n results.numberOfInvalidFormatFiles += 1;\n }\n });\n\n // Determine appropriate error message based on validation results\n const hasFormatErrors = results.numberOfInvalidFormatFiles > 0;\n const hasSizeErrors = results.numberOfInvalidSizeFiles > 0;\n const isSingleFile = results.totalFiles === 1;\n\n errorMessage = getErrorMessage({ hasFormatErrors, hasSizeErrors, isSingleFile });\n\n inputRef.current?.setCustomValidity(errorMessage);\n }, [customErrorMessage, inputRef, maxBytes, fileTypes]);\n\n // Validate input whenever fileList changes\n useEffect(() => {\n setInputValidation();\n }, [fileList, setInputValidation, customErrorMessage]);\n};\n"],"names":[],"mappings":";;;;AAYa,MAAA,gBAAgB,GAAG,CAA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AA,OAAO,CAAC,0BAA0B,IAAI,CAAC;AACxC;AACH,SAAC,CAAC;;AAGF,QAAA,MAAM,eAAe,GAAG,OAAO,CAAC,0BAA0B,GAAG,CAAC;AAC9D,QAAA,MAAM,aAAa,GAAG,OAAO,CAAC,wBAAwB,GAAG,CAAC;AAC1D,QAAA,MAAM,YAAY,GAAG,OAAO,CAAC,UAAU,KAAK,CAAC;QAE7C,YAAY,GAAG,eAAe,CAAC,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,CAAC;QAEhF,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,SAAA,GAAA,EAAA,CAAE,iBAAiB,CAAC,YAAY,CAAC;KAClD,EAAE,CAAC,kBAAkB,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;;IAGvD,SAAS,CAAC,MAAK;AACb,QAAA,kBAAkB,EAAE;KACrB,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;AACxD;;;;"}
1
+ {"version":3,"file":"useValidateInput.js","sources":["../../../../../src/components/UploadFile/hooks/useValidateInput/useValidateInput.ts"],"sourcesContent":["import { useEffect, useCallback } from 'react';\nimport { AcceptedFileTypes, InputErrorStateMessages } from '../../constants';\nimport { getErrorMessage } from '../../utils/getErrorMessage';\n\ntype UseValidateInputProps = {\n fileTypes: Array<AcceptedFileTypes>;\n maxBytes: number;\n fileList: FileList | undefined;\n inputRef: React.MutableRefObject<HTMLInputElement | null>;\n errorMessage?: string;\n};\n\nexport const useValidateInput = ({\n fileList,\n fileTypes,\n inputRef,\n maxBytes,\n errorMessage: customErrorMessage,\n}: UseValidateInputProps) => {\n // Tracks error states within the input element itself, using preset\n // error messages and assigns these to the input component based on the file\n const setInputValidation = useCallback(() => {\n let errorMessage = customErrorMessage || InputErrorStateMessages.VALID;\n\n if (!inputRef.current?.files?.length) {\n inputRef.current?.setCustomValidity(errorMessage);\n return;\n }\n\n const results = {\n numberOfInvalidFormatFiles: 0,\n numberOfInvalidSizeFiles: 0,\n totalFiles: inputRef.current.files.length,\n };\n\n Array.from(inputRef.current.files).forEach((file) => {\n // Check file size\n if (file.size > maxBytes) {\n results.numberOfInvalidSizeFiles += 1;\n }\n\n // Check file type/format\n const [, extension] = file.type.split('/');\n const isTypeValid = fileTypes.find((validType) => validType.substring(1) === extension);\n if (!isTypeValid) {\n results.numberOfInvalidFormatFiles += 1;\n }\n });\n\n // Determine appropriate error message based on validation results\n const hasFormatErrors = results.numberOfInvalidFormatFiles > 0;\n const hasSizeErrors = results.numberOfInvalidSizeFiles > 0;\n const isSingleFile = results.totalFiles === 1;\n\n errorMessage = getErrorMessage({ hasFormatErrors, hasSizeErrors, isSingleFile });\n\n inputRef.current?.setCustomValidity(errorMessage);\n }, [customErrorMessage, inputRef, maxBytes, fileTypes]);\n\n // Validate input whenever fileList changes\n useEffect(() => {\n setInputValidation();\n }, [fileList, setInputValidation, customErrorMessage]);\n};\n"],"names":[],"mappings":";;;;AAYO,MAAM,gBAAgB,GAAG,CAAC,EAC/B,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EAAE,kBAAkB,GACV,KAAI;;;AAG1B,IAAA,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAK;;AAC1C,QAAA,IAAI,YAAY,GAAG,kBAAkB,IAAI,uBAAuB,CAAC,KAAK;AAEtE,QAAA,IAAI,EAAC,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,KAAK,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,MAAM,CAAA,EAAE;YACpC,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAA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EAAE,SAAS,CAAC,CAAC;;IAGvD,SAAS,CAAC,MAAK;AACb,QAAA,kBAAkB,EAAE;IACtB,CAAC,EAAE,CAAC,QAAQ,EAAE,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;AACxD;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"styled.cjs","sources":["../../../src/components/UploadFile/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport { colors } from '../../theme/modules/colors';\nimport { radius } from '../../theme/modules/radius';\nimport { sizes } from '../../theme/modules/sizes';\n\nexport const DropZoneContainer = styled.div<{\n hasError: boolean;\n isDragOver?: boolean;\n}>`\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: ${sizes.base};\n border-radius: ${radius.base};\n\n input[type='file'] {\n position: absolute;\n opacity: 0;\n width: 1px;\n height: 1px;\n cursor: pointer;\n }\n\n cursor: pointer;\n\n border: 2px dashed ${colors.neutral.ink.lightest};\n background-color: ${colors.neutral.grey.lightest};\n\n :hover {\n border: 2px dashed ${colors.secondary.blue.base};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n }\n :active,\n :focus-within {\n border: 2px dashed ${colors.secondary.blue.base};\n box-shadow: 0 0 0 4px ${colors.secondary.blue.light};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n }\n\n ${({ isDragOver }) =>\n isDragOver &&\n `\n border: 2px dashed ${colors.secondary.blue.base};\n box-shadow: 0 0 0 4px ${colors.secondary.blue.light};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n `}\n\n ${({ hasError, isDragOver }) =>\n hasError &&\n `\n border: 2px dashed ${colors.secondary.red.base};\n\n :hover {\n border: 2px dashed ${colors.secondary.red.base};\n background-color: ${colors.secondary.red.lightest};\n\n svg {\n color: ${colors.secondary.red.base};\n }\n }\n\n :active, :focus-within {\n border: 2px dashed ${colors.secondary.red.base};\n box-shadow: 0 0 0 4px ${colors.secondary.red.light};\n background-color: ${colors.secondary.red.lightest};\n\n svg {\n color: ${colors.secondary.red.base};\n }\n }\n\n ${\n isDragOver\n ? `\n border: 2px dashed ${colors.secondary.red.base};\n box-shadow: 0 0 0 4px ${colors.secondary.red.light};\n background-color: ${colors.secondary.red.lightest};\n `\n : ''\n }\n `}\n\n\n &:has(input:disabled) {\n cursor: not-allowed;\n box-shadow: none;\n background-color: ${colors.neutral.grey.light};\n border-color: ${colors.neutral.ink.lightest};\n color: ${colors.neutral.ink.light};\n\n svg {\n color: ${colors.neutral.ink.lightest};\n }\n }\n`;\n"],"names":["styled","sizes","radius","colors"],"mappings":";;;;;;;;;;;MAKa,iBAAiB,GAAGA,uBAAM,CAAC,GAAG,sJAQ9BC,WAAK,CAAC,IAAI,CACJ,eAAA,EAAAC,aAAM,CAAC,IAAI,CAAA,sHAAA,EAYPC,aAAM,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAC5B,kBAAA,EAAAA,aAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,6BAGzBA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAA,EAC3BA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,cAGvCA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,2CAAA,EAKhBA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CACvB,sBAAA,EAAAA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA,kBAAA,EAC/BA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAGvC,WAAA,EAAAA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,MAIrC,CAAC,EAAE,UAAU,EAAE,KACf,UAAU;AACV,IAAA;AACqB,uBAAA,EAAAA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;AACvB,0BAAA,EAAAA,aAAM,CA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AQ,CAAA,OAAA,EAClCA,aAAM,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAGtB,WAAA,EAAAA,aAAM,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ;;;;"}
1
+ {"version":3,"file":"styled.cjs","sources":["../../../src/components/UploadFile/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport { colors } from '../../theme/modules/colors';\nimport { radius } from '../../theme/modules/radius';\nimport { sizes } from '../../theme/modules/sizes';\n\nexport const DropZoneContainer = styled.div<{\n hasError: boolean;\n isDragOver?: boolean;\n}>`\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: ${sizes.base};\n border-radius: ${radius.base};\n\n input[type='file'] {\n position: absolute;\n opacity: 0;\n width: 1px;\n height: 1px;\n cursor: pointer;\n }\n\n cursor: pointer;\n\n border: 2px dashed ${colors.neutral.ink.lightest};\n background-color: ${colors.neutral.grey.lightest};\n\n :hover {\n border: 2px dashed ${colors.secondary.blue.base};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n }\n :active,\n :focus-within {\n border: 2px dashed ${colors.secondary.blue.base};\n box-shadow: 0 0 0 4px ${colors.secondary.blue.light};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n }\n\n ${({ isDragOver }) =>\n isDragOver &&\n `\n border: 2px dashed ${colors.secondary.blue.base};\n box-shadow: 0 0 0 4px ${colors.secondary.blue.light};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n `}\n\n ${({ hasError, isDragOver }) =>\n hasError &&\n `\n border: 2px dashed ${colors.secondary.red.base};\n\n :hover {\n border: 2px dashed ${colors.secondary.red.base};\n background-color: ${colors.secondary.red.lightest};\n\n svg {\n color: ${colors.secondary.red.base};\n }\n }\n\n :active, :focus-within {\n border: 2px dashed ${colors.secondary.red.base};\n box-shadow: 0 0 0 4px ${colors.secondary.red.light};\n background-color: ${colors.secondary.red.lightest};\n\n svg {\n color: ${colors.secondary.red.base};\n }\n }\n\n ${\n isDragOver\n ? `\n border: 2px dashed ${colors.secondary.red.base};\n box-shadow: 0 0 0 4px ${colors.secondary.red.light};\n background-color: ${colors.secondary.red.lightest};\n `\n : ''\n }\n `}\n\n\n &:has(input:disabled) {\n cursor: not-allowed;\n box-shadow: none;\n background-color: ${colors.neutral.grey.light};\n border-color: ${colors.neutral.ink.lightest};\n color: ${colors.neutral.ink.light};\n\n svg {\n color: ${colors.neutral.ink.lightest};\n }\n }\n`;\n"],"names":["styled","sizes","radius","colors"],"mappings":";;;;;;;;;;;MAKa,iBAAiB,GAAGA,uBAAM,CAAC,GAAG,sJAQ9BC,WAAK,CAAC,IAAI,CAAA,eAAA,EACJC,aAAM,CAAC,IAAI,CAAA,sHAAA,EAYPC,aAAM,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAA,kBAAA,EAC5BA,aAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,6BAGzBA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAA,EAC3BA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,cAGvCA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,2CAAA,EAKhBA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAA,EACvBA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA,kBAAA,EAC/BA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAA,WAAA,EAGvCA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,MAIrC,CAAC,EAAE,UAAU,EAAE,KACf,UAAU;AACV,IAAA;AACqB,uBAAA,EAAAA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;AACvB,0BAAA,EAAAA,aAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA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AO,CAAC,GAAG,CAAC,KAAK,CAAA,WAAA,EAGtBA,aAAM,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"styled.js","sources":["../../../src/components/UploadFile/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport { colors } from '../../theme/modules/colors';\nimport { radius } from '../../theme/modules/radius';\nimport { sizes } from '../../theme/modules/sizes';\n\nexport const DropZoneContainer = styled.div<{\n hasError: boolean;\n isDragOver?: boolean;\n}>`\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: ${sizes.base};\n border-radius: ${radius.base};\n\n input[type='file'] {\n position: absolute;\n opacity: 0;\n width: 1px;\n height: 1px;\n cursor: pointer;\n }\n\n cursor: pointer;\n\n border: 2px dashed ${colors.neutral.ink.lightest};\n background-color: ${colors.neutral.grey.lightest};\n\n :hover {\n border: 2px dashed ${colors.secondary.blue.base};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n }\n :active,\n :focus-within {\n border: 2px dashed ${colors.secondary.blue.base};\n box-shadow: 0 0 0 4px ${colors.secondary.blue.light};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n }\n\n ${({ isDragOver }) =>\n isDragOver &&\n `\n border: 2px dashed ${colors.secondary.blue.base};\n box-shadow: 0 0 0 4px ${colors.secondary.blue.light};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n `}\n\n ${({ hasError, isDragOver }) =>\n hasError &&\n `\n border: 2px dashed ${colors.secondary.red.base};\n\n :hover {\n border: 2px dashed ${colors.secondary.red.base};\n background-color: ${colors.secondary.red.lightest};\n\n svg {\n color: ${colors.secondary.red.base};\n }\n }\n\n :active, :focus-within {\n border: 2px dashed ${colors.secondary.red.base};\n box-shadow: 0 0 0 4px ${colors.secondary.red.light};\n background-color: ${colors.secondary.red.lightest};\n\n svg {\n color: ${colors.secondary.red.base};\n }\n }\n\n ${\n isDragOver\n ? `\n border: 2px dashed ${colors.secondary.red.base};\n box-shadow: 0 0 0 4px ${colors.secondary.red.light};\n background-color: ${colors.secondary.red.lightest};\n `\n : ''\n }\n `}\n\n\n &:has(input:disabled) {\n cursor: not-allowed;\n box-shadow: none;\n background-color: ${colors.neutral.grey.light};\n border-color: ${colors.neutral.ink.lightest};\n color: ${colors.neutral.ink.light};\n\n svg {\n color: ${colors.neutral.ink.lightest};\n }\n }\n`;\n"],"names":[],"mappings":";;;;;MAKa,iBAAiB,GAAG,MAAM,CAAC,GAAG,sJAQ9B,KAAK,CAAC,IAAI,CACJ,eAAA,EAAA,MAAM,CAAC,IAAI,CAAA,sHAAA,EAYP,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAC5B,kBAAA,EAAA,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,6BAGzB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAA,EAC3B,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,cAGvC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,2CAAA,EAKhB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CACvB,sBAAA,EAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA,kBAAA,EAC/B,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAGvC,WAAA,EAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,MAIrC,CAAC,EAAE,UAAU,EAAE,KACf,UAAU;AACV,IAAA;AACqB,uBAAA,EAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;AACvB,0BAAA,EAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA;AAC/B,sBAAA,EAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CA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Q;;;;"}
1
+ {"version":3,"file":"styled.js","sources":["../../../src/components/UploadFile/styled.tsx"],"sourcesContent":["import styled from 'styled-components';\nimport { colors } from '../../theme/modules/colors';\nimport { radius } from '../../theme/modules/radius';\nimport { sizes } from '../../theme/modules/sizes';\n\nexport const DropZoneContainer = styled.div<{\n hasError: boolean;\n isDragOver?: boolean;\n}>`\n display: flex;\n align-items: center;\n justify-content: center;\n\n padding: ${sizes.base};\n border-radius: ${radius.base};\n\n input[type='file'] {\n position: absolute;\n opacity: 0;\n width: 1px;\n height: 1px;\n cursor: pointer;\n }\n\n cursor: pointer;\n\n border: 2px dashed ${colors.neutral.ink.lightest};\n background-color: ${colors.neutral.grey.lightest};\n\n :hover {\n border: 2px dashed ${colors.secondary.blue.base};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n }\n :active,\n :focus-within {\n border: 2px dashed ${colors.secondary.blue.base};\n box-shadow: 0 0 0 4px ${colors.secondary.blue.light};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n }\n\n ${({ isDragOver }) =>\n isDragOver &&\n `\n border: 2px dashed ${colors.secondary.blue.base};\n box-shadow: 0 0 0 4px ${colors.secondary.blue.light};\n background-color: ${colors.secondary.blue.lightest};\n\n svg {\n color: ${colors.secondary.blue.base};\n }\n `}\n\n ${({ hasError, isDragOver }) =>\n hasError &&\n `\n border: 2px dashed ${colors.secondary.red.base};\n\n :hover {\n border: 2px dashed ${colors.secondary.red.base};\n background-color: ${colors.secondary.red.lightest};\n\n svg {\n color: ${colors.secondary.red.base};\n }\n }\n\n :active, :focus-within {\n border: 2px dashed ${colors.secondary.red.base};\n box-shadow: 0 0 0 4px ${colors.secondary.red.light};\n background-color: ${colors.secondary.red.lightest};\n\n svg {\n color: ${colors.secondary.red.base};\n }\n }\n\n ${\n isDragOver\n ? `\n border: 2px dashed ${colors.secondary.red.base};\n box-shadow: 0 0 0 4px ${colors.secondary.red.light};\n background-color: ${colors.secondary.red.lightest};\n `\n : ''\n }\n `}\n\n\n &:has(input:disabled) {\n cursor: not-allowed;\n box-shadow: none;\n background-color: ${colors.neutral.grey.light};\n border-color: ${colors.neutral.ink.lightest};\n color: ${colors.neutral.ink.light};\n\n svg {\n color: ${colors.neutral.ink.lightest};\n }\n }\n`;\n"],"names":[],"mappings":";;;;;MAKa,iBAAiB,GAAG,MAAM,CAAC,GAAG,sJAQ9B,KAAK,CAAC,IAAI,CAAA,eAAA,EACJ,MAAM,CAAC,IAAI,CAAA,sHAAA,EAYP,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAA,kBAAA,EAC5B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,6BAGzB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,kBAAA,EAC3B,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,cAGvC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,2CAAA,EAKhB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAA,EACvB,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA,kBAAA,EAC/B,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAA,WAAA,EAGvC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,MAIrC,CAAC,EAAE,UAAU,EAAE,KACf,UAAU;AACV,IAAA;AACqB,uBAAA,EAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;AACvB,0BAAA,EAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA;AAC/B,sBAAA,EAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAA;;;AAGvC,aAAA,EAAA,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAA;;GAEtC,CAAA,CAAA,EAEC,C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ts"],"sourcesContent":["import { InputErrorStateMessages } from '../../constants';\n\ntype GetErrorMessageProps = {\n hasFormatErrors: boolean;\n hasSizeErrors: boolean;\n isSingleFile: boolean;\n};\nexport function getErrorMessage({\n hasFormatErrors,\n hasSizeErrors,\n isSingleFile,\n}: GetErrorMessageProps) {\n // both errors\n if (hasFormatErrors && hasSizeErrors) {\n return InputErrorStateMessages.INVALID_FORMAT_AND_SIZE;\n }\n\n // only format errors\n if (hasFormatErrors) {\n return isSingleFile\n ? InputErrorStateMessages.INVALID_FORMAT\n : InputErrorStateMessages.INVALID_FORMATS;\n }\n\n // only size errors\n if (hasSizeErrors) {\n return isSingleFile\n ? InputErrorStateMessages.INVALID_SIZE\n : InputErrorStateMessages.INVALID_SIZES;\n }\n\n // no errors\n return InputErrorStateMessages.VALID;\n}\n"],"names":["InputErrorStateMessages"],"mappings":";;;;AAOM,SAAU,eAAe,CAAC,EAC9B,eAAe,EACf,aAAa,EACb,YAAY,GACS,EAAA;;IAErB,IAAI,eAAe,IAAI,aAAa,EAAE;QACpC,OAAOA,iCAAuB,CAAC,uBAAuB;AACvD;;AAGD,IAAA,IAAI,eAAe,EAAE;AACnB,QAAA,OAAO;cACHA,iCAAuB,CAAC;AAC1B,cAAEA,iCAAuB,CAAC,eAAe;AAC5C;;AAGD,IAAA,IAAI,aAAa,EAAE;AACjB,QAAA,OAAO;cACHA,iCAAuB,CAAC;AAC1B,cAAEA,iCAAuB,CAAC,aAAa;AAC1C;;IAGD,OAAOA,iCAAuB,CAAC,KAAK;AACtC;;;;"}
1
+ {"version":3,"file":"getErrorMessage.cjs","sources":["../../../../../src/components/UploadFile/utils/getErrorMessage/getErrorMessage.ts"],"sourcesContent":["import { InputErrorStateMessages } from '../../constants';\n\ntype GetErrorMessageProps = {\n hasFormatErrors: boolean;\n hasSizeErrors: boolean;\n isSingleFile: boolean;\n};\nexport function getErrorMessage({\n hasFormatErrors,\n hasSizeErrors,\n isSingleFile,\n}: GetErrorMessageProps) {\n // both errors\n if (hasFormatErrors && hasSizeErrors) {\n return InputErrorStateMessages.INVALID_FORMAT_AND_SIZE;\n }\n\n // only format errors\n if (hasFormatErrors) {\n return isSingleFile\n ? InputErrorStateMessages.INVALID_FORMAT\n : InputErrorStateMessages.INVALID_FORMATS;\n }\n\n // only size errors\n if (hasSizeErrors) {\n return isSingleFile\n ? InputErrorStateMessages.INVALID_SIZE\n : InputErrorStateMessages.INVALID_SIZES;\n }\n\n // no errors\n return InputErrorStateMessages.VALID;\n}\n"],"names":["InputErrorStateMessages"],"mappings":";;;;AAOM,SAAU,eAAe,CAAC,EAC9B,eAAe,EACf,aAAa,EACb,YAAY,GACS,EAAA;;IAErB,IAAI,eAAe,IAAI,aAAa,EAAE;QACpC,OAAOA,iCAAuB,CAAC,uBAAuB;AACvD,IAAA;;AAGD,IAAA,IAAI,eAAe,EAAE;AACnB,QAAA,OAAO;cACHA,iCAAuB,CAAC;AAC1B,cAAEA,iCAAuB,CAAC,eAAe;AAC5C,IAAA;;AAGD,IAAA,IAAI,aAAa,EAAE;AACjB,QAAA,OAAO;cACHA,iCAAuB,CAAC;AAC1B,cAAEA,iCAAuB,CAAC,aAAa;AAC1C,IAAA;;IAGD,OAAOA,iCAAuB,CAAC,KAAK;AACtC;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getErrorMessage.js","sources":["../../../../../src/components/UploadFile/utils/getErrorMessage/getErrorMessage.ts"],"sourcesContent":["import { InputErrorStateMessages } from '../../constants';\n\ntype GetErrorMessageProps = {\n hasFormatErrors: boolean;\n hasSizeErrors: boolean;\n isSingleFile: boolean;\n};\nexport function getErrorMessage({\n hasFormatErrors,\n hasSizeErrors,\n isSingleFile,\n}: GetErrorMessageProps) {\n // both errors\n if (hasFormatErrors && hasSizeErrors) {\n return InputErrorStateMessages.INVALID_FORMAT_AND_SIZE;\n }\n\n // only format errors\n if (hasFormatErrors) {\n return isSingleFile\n ? InputErrorStateMessages.INVALID_FORMAT\n : InputErrorStateMessages.INVALID_FORMATS;\n }\n\n // only size errors\n if (hasSizeErrors) {\n return isSingleFile\n ? InputErrorStateMessages.INVALID_SIZE\n : InputErrorStateMessages.INVALID_SIZES;\n }\n\n // no errors\n return InputErrorStateMessages.VALID;\n}\n"],"names":[],"mappings":";;AAOM,SAAU,eAAe,CAAC,EAC9B,eAAe,EACf,aAAa,EACb,YAAY,GACS,EAAA;;IAErB,IAAI,eAAe,IAAI,aAAa,EAAE;QACpC,OAAO,uBAAuB,CAAC,uBAAuB;AACvD;;AAGD,IAAA,IAAI,eAAe,EAAE;AACnB,QAAA,OAAO;cACH,uBAAuB,CAAC;AAC1B,cAAE,uBAAuB,CAAC,eAAe;AAC5C;;AAGD,IAAA,IAAI,aAAa,EAAE;AACjB,QAAA,OAAO;cACH,uBAAuB,CAAC;AAC1B,cAAE,uBAAuB,CAAC,aAAa;AAC1C;;IAGD,OAAO,uBAAuB,CAAC,KAAK;AACtC;;;;"}
1
+ {"version":3,"file":"getErrorMessage.js","sources":["../../../../../src/components/UploadFile/utils/getErrorMessage/getErrorMessage.ts"],"sourcesContent":["import { InputErrorStateMessages } from '../../constants';\n\ntype GetErrorMessageProps = {\n hasFormatErrors: boolean;\n hasSizeErrors: boolean;\n isSingleFile: boolean;\n};\nexport function getErrorMessage({\n hasFormatErrors,\n hasSizeErrors,\n isSingleFile,\n}: GetErrorMessageProps) {\n // both errors\n if (hasFormatErrors && hasSizeErrors) {\n return InputErrorStateMessages.INVALID_FORMAT_AND_SIZE;\n }\n\n // only format errors\n if (hasFormatErrors) {\n return isSingleFile\n ? InputErrorStateMessages.INVALID_FORMAT\n : InputErrorStateMessages.INVALID_FORMATS;\n }\n\n // only size errors\n if (hasSizeErrors) {\n return isSingleFile\n ? InputErrorStateMessages.INVALID_SIZE\n : InputErrorStateMessages.INVALID_SIZES;\n }\n\n // no errors\n return InputErrorStateMessages.VALID;\n}\n"],"names":[],"mappings":";;AAOM,SAAU,eAAe,CAAC,EAC9B,eAAe,EACf,aAAa,EACb,YAAY,GACS,EAAA;;IAErB,IAAI,eAAe,IAAI,aAAa,EAAE;QACpC,OAAO,uBAAuB,CAAC,uBAAuB;AACvD,IAAA;;AAGD,IAAA,IAAI,eAAe,EAAE;AACnB,QAAA,OAAO;cACH,uBAAuB,CAAC;AAC1B,cAAE,uBAAuB,CAAC,eAAe;AAC5C,IAAA;;AAGD,IAAA,IAAI,aAAa,EAAE;AACjB,QAAA,OAAO;cACH,uBAAuB,CAAC;AAC1B,cAAE,uBAAuB,CAAC,aAAa;AAC1C,IAAA;;IAGD,OAAO,uBAAuB,CAAC,KAAK;AACtC;;;;"}
@@ -21,7 +21,7 @@ var constants = require('../../constants.cjs');
21
21
  * @returns A formatted string representing the file size
22
22
  */
23
23
  const getFileSizeString = ({ maxBytes, format, baseString, digits = 2, }) => {
24
- const base = baseString !== null && baseString !== undefined ? baseString : 'Maximum file size: ';
24
+ const base = baseString !== null && baseString !== void 0 ? baseString : 'Maximum file size: ';
25
25
  const getValue = (divisor) => parseFloat((maxBytes / divisor).toFixed(digits));
26
26
  switch (format) {
27
27
  case constants.FileSizeUnit.KB:
@@ -1 +1 @@
1
- {"version":3,"file":"getFileSizeString.cjs","sources":["../../../../../src/components/UploadFile/utils/getFileSizeString/getFileSizeString.ts"],"sourcesContent":["import { FileSizeUnit } from '../../constants';\n\ntype GetFileSizeStringProps = {\n maxBytes: number;\n format: FileSizeUnit;\n baseString?: string;\n digits?: number;\n};\n/**\n * Converts a file size in bytes to a human-readable string with the specified format unit.\n *\n * E.g.\n *\n * const maxSizeCopy = getFileSizeString({\n * maxBytes: 10000000,\n * format: FileSizeUnit.MB\n * });\n *\n * Where @constant maxSizeCopy would equal \"Maximum file size: 10 MB\"\n *\n * @param maxBytes - The file size in bytes to convert\n * @param format - The unit format to display (KB or MB)\n * @param baseString - Optional prefix string, defaults to \"Maximum file size: \"\n * @param digits - Number of decimal places to show, defaults to 2 (strips any leading zeros)\n * @returns A formatted string representing the file size\n */\nexport const getFileSizeString = ({\n maxBytes,\n format,\n baseString,\n digits = 2,\n}: GetFileSizeStringProps) => {\n const base = baseString ?? 'Maximum file size: ';\n const getValue = (divisor: number) => parseFloat((maxBytes / divisor).toFixed(digits));\n switch (format) {\n case FileSizeUnit.KB:\n return `${base}${getValue(1000)} KB`;\n case FileSizeUnit.MB:\n return `${base}${getValue(1000000)} MB`;\n default:\n return `${base}${getValue(1000)} KB`;\n }\n};\n"],"names":["FileSizeUnit"],"mappings":";;;;AAQA;;;;;;;;;;;;;;;;;AAiBG;AACU,MAAA,iBAAiB,GAAG,CAAC,EAChC,QAAQ,EACR,MAAM,EACN,UAAU,EACV,MAAM,GAAG,CAAC,GACa,KAAI;IAC3B,MAAM,IAAI,GAAG,UAAU,KAAA,IAAA,IAAV,UAAU,KAAV,SAAA,GAAA,UAAU,GAAI,qBAAqB;IAChD,MAAM,QAAQ,GAAG,CAAC,OAAe,KAAK,UAAU,CAAC,CAAC,QAAQ,GAAG,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;AACtF,IAAA,QAAQ,MAAM;QACZ,KAAKA,sBAAY,CAAC,EAAE;YAClB,OAAO,CAAA,EAAG,IAAI,CAAG,EAAA,QAAQ,CAAC,IAAI,CAAC,KAAK;QACtC,KAAKA,sBAAY,CAAC,EAAE;YAClB,OAAO,CAAA,EAAG,IAAI,CAAG,EAAA,QAAQ,CAAC,OAAO,CAAC,KAAK;AACzC,QAAA;YACE,OAAO,CAAA,EAAG,IAAI,CAAG,EAAA,QAAQ,CAAC,IAAI,CAAC,KAAK;AACvC;AACH;;;;"}
1
+ {"version":3,"file":"getFileSizeString.cjs","sources":["../../../../../src/components/UploadFile/utils/getFileSizeString/getFileSizeString.ts"],"sourcesContent":["import { FileSizeUnit } from '../../constants';\n\ntype GetFileSizeStringProps = {\n maxBytes: number;\n format: FileSizeUnit;\n baseString?: string;\n digits?: number;\n};\n/**\n * Converts a file size in bytes to a human-readable string with the specified format unit.\n *\n * E.g.\n *\n * const maxSizeCopy = getFileSizeString({\n * maxBytes: 10000000,\n * format: FileSizeUnit.MB\n * });\n *\n * Where @constant maxSizeCopy would equal \"Maximum file size: 10 MB\"\n *\n * @param maxBytes - The file size in bytes to convert\n * @param format - The unit format to display (KB or MB)\n * @param baseString - Optional prefix string, defaults to \"Maximum file size: \"\n * @param digits - Number of decimal places to show, defaults to 2 (strips any leading zeros)\n * @returns A formatted string representing the file size\n */\nexport const getFileSizeString = ({\n maxBytes,\n format,\n baseString,\n digits = 2,\n}: GetFileSizeStringProps) => {\n const base = baseString ?? 'Maximum file size: ';\n const getValue = (divisor: number) => parseFloat((maxBytes / divisor).toFixed(digits));\n switch (format) {\n case FileSizeUnit.KB:\n return `${base}${getValue(1000)} KB`;\n case FileSizeUnit.MB:\n return `${base}${getValue(1000000)} MB`;\n default:\n return `${base}${getValue(1000)} KB`;\n }\n};\n"],"names":["FileSizeUnit"],"mappings":";;;;AAQA;;;;;;;;;;;;;;;;;AAiBG;AACI,MAAM,iBAAiB,GAAG,CAAC,EAChC,QAAQ,EACR,MAAM,EACN,UAAU,EACV,MAAM,GAAG,CAAC,GACa,KAAI;IAC3B,MAAM,IAAI,GAAG,UAAU,KAAA,IAAA,IAAV,UAAU,KAAA,MAAA,GAAV,UAAU,GAAI,qBAAqB;IAChD,MAAM,QAAQ,GAAG,CAAC,OAAe,KAAK,UAAU,CAAC,CAAC,QAAQ,GAAG,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;AACtF,IAAA,QAAQ,MAAM;QACZ,KAAKA,sBAAY,CAAC,EAAE;YAClB,OAAO,CAAA,EAAG,IAAI,CAAA,EAAG,QAAQ,CAAC,IAAI,CAAC,KAAK;QACtC,KAAKA,sBAAY,CAAC,EAAE;YAClB,OAAO,CAAA,EAAG,IAAI,CAAA,EAAG,QAAQ,CAAC,OAAO,CAAC,KAAK;AACzC,QAAA;YACE,OAAO,CAAA,EAAG,IAAI,CAAA,EAAG,QAAQ,CAAC,IAAI,CAAC,KAAK;AACvC;AACH;;;;"}
@@ -19,7 +19,7 @@ import { FileSizeUnit } from '../../constants.js';
19
19
  * @returns A formatted string representing the file size
20
20
  */
21
21
  const getFileSizeString = ({ maxBytes, format, baseString, digits = 2, }) => {
22
- const base = baseString !== null && baseString !== undefined ? baseString : 'Maximum file size: ';
22
+ const base = baseString !== null && baseString !== void 0 ? baseString : 'Maximum file size: ';
23
23
  const getValue = (divisor) => parseFloat((maxBytes / divisor).toFixed(digits));
24
24
  switch (format) {
25
25
  case FileSizeUnit.KB:
@@ -1 +1 @@
1
- {"version":3,"file":"getFileSizeString.js","sources":["../../../../../src/components/UploadFile/utils/getFileSizeString/getFileSizeString.ts"],"sourcesContent":["import { FileSizeUnit } from '../../constants';\n\ntype GetFileSizeStringProps = {\n maxBytes: number;\n format: FileSizeUnit;\n baseString?: string;\n digits?: number;\n};\n/**\n * Converts a file size in bytes to a human-readable string with the specified format unit.\n *\n * E.g.\n *\n * const maxSizeCopy = getFileSizeString({\n * maxBytes: 10000000,\n * format: FileSizeUnit.MB\n * });\n *\n * Where @constant maxSizeCopy would equal \"Maximum file size: 10 MB\"\n *\n * @param maxBytes - The file size in bytes to convert\n * @param format - The unit format to display (KB or MB)\n * @param baseString - Optional prefix string, defaults to \"Maximum file size: \"\n * @param digits - Number of decimal places to show, defaults to 2 (strips any leading zeros)\n * @returns A formatted string representing the file size\n */\nexport const getFileSizeString = ({\n maxBytes,\n format,\n baseString,\n digits = 2,\n}: GetFileSizeStringProps) => {\n const base = baseString ?? 'Maximum file size: ';\n const getValue = (divisor: number) => parseFloat((maxBytes / divisor).toFixed(digits));\n switch (format) {\n case FileSizeUnit.KB:\n return `${base}${getValue(1000)} KB`;\n case FileSizeUnit.MB:\n return `${base}${getValue(1000000)} MB`;\n default:\n return `${base}${getValue(1000)} KB`;\n }\n};\n"],"names":[],"mappings":";;AAQA;;;;;;;;;;;;;;;;;AAiBG;AACU,MAAA,iBAAiB,GAAG,CAAC,EAChC,QAAQ,EACR,MAAM,EACN,UAAU,EACV,MAAM,GAAG,CAAC,GACa,KAAI;IAC3B,MAAM,IAAI,GAAG,UAAU,KAAA,IAAA,IAAV,UAAU,KAAV,SAAA,GAAA,UAAU,GAAI,qBAAqB;IAChD,MAAM,QAAQ,GAAG,CAAC,OAAe,KAAK,UAAU,CAAC,CAAC,QAAQ,GAAG,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;AACtF,IAAA,QAAQ,MAAM;QACZ,KAAK,YAAY,CAAC,EAAE;YAClB,OAAO,CAAA,EAAG,IAAI,CAAG,EAAA,QAAQ,CAAC,IAAI,CAAC,KAAK;QACtC,KAAK,YAAY,CAAC,EAAE;YAClB,OAAO,CAAA,EAAG,IAAI,CAAG,EAAA,QAAQ,CAAC,OAAO,CAAC,KAAK;AACzC,QAAA;YACE,OAAO,CAAA,EAAG,IAAI,CAAG,EAAA,QAAQ,CAAC,IAAI,CAAC,KAAK;AACvC;AACH;;;;"}
1
+ {"version":3,"file":"getFileSizeString.js","sources":["../../../../../src/components/UploadFile/utils/getFileSizeString/getFileSizeString.ts"],"sourcesContent":["import { FileSizeUnit } from '../../constants';\n\ntype GetFileSizeStringProps = {\n maxBytes: number;\n format: FileSizeUnit;\n baseString?: string;\n digits?: number;\n};\n/**\n * Converts a file size in bytes to a human-readable string with the specified format unit.\n *\n * E.g.\n *\n * const maxSizeCopy = getFileSizeString({\n * maxBytes: 10000000,\n * format: FileSizeUnit.MB\n * });\n *\n * Where @constant maxSizeCopy would equal \"Maximum file size: 10 MB\"\n *\n * @param maxBytes - The file size in bytes to convert\n * @param format - The unit format to display (KB or MB)\n * @param baseString - Optional prefix string, defaults to \"Maximum file size: \"\n * @param digits - Number of decimal places to show, defaults to 2 (strips any leading zeros)\n * @returns A formatted string representing the file size\n */\nexport const getFileSizeString = ({\n maxBytes,\n format,\n baseString,\n digits = 2,\n}: GetFileSizeStringProps) => {\n const base = baseString ?? 'Maximum file size: ';\n const getValue = (divisor: number) => parseFloat((maxBytes / divisor).toFixed(digits));\n switch (format) {\n case FileSizeUnit.KB:\n return `${base}${getValue(1000)} KB`;\n case FileSizeUnit.MB:\n return `${base}${getValue(1000000)} MB`;\n default:\n return `${base}${getValue(1000)} KB`;\n }\n};\n"],"names":[],"mappings":";;AAQA;;;;;;;;;;;;;;;;;AAiBG;AACI,MAAM,iBAAiB,GAAG,CAAC,EAChC,QAAQ,EACR,MAAM,EACN,UAAU,EACV,MAAM,GAAG,CAAC,GACa,KAAI;IAC3B,MAAM,IAAI,GAAG,UAAU,KAAA,IAAA,IAAV,UAAU,KAAA,MAAA,GAAV,UAAU,GAAI,qBAAqB;IAChD,MAAM,QAAQ,GAAG,CAAC,OAAe,KAAK,UAAU,CAAC,CAAC,QAAQ,GAAG,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;AACtF,IAAA,QAAQ,MAAM;QACZ,KAAK,YAAY,CAAC,EAAE;YAClB,OAAO,CAAA,EAAG,IAAI,CAAA,EAAG,QAAQ,CAAC,IAAI,CAAC,KAAK;QACtC,KAAK,YAAY,CAAC,EAAE;YAClB,OAAO,CAAA,EAAG,IAAI,CAAA,EAAG,QAAQ,CAAC,OAAO,CAAC,KAAK;AACzC,QAAA;YACE,OAAO,CAAA,EAAG,IAAI,CAAA,EAAG,QAAQ,CAAC,IAAI,CAAC,KAAK;AACvC;AACH;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getTypePropForInputEl.cjs","sources":["../../../../../src/components/UploadFile/utils/getTypePropForInputEl/getTypePropForInputEl.ts"],"sourcesContent":["import { AcceptedFileTypes } from '../../constants';\n\ntype GetValidTypesStringProps = {\n fileTypes: Array<AcceptedFileTypes>;\n baseString?: string;\n};\n\n/**\n * Constructs a string intended to be consumed by an <input> element of type \"file\". This string\n * should go inside the accept property.\n *\n * E.g.\n *\n * const inputElAcceptProperty = getTypePropForInputEl({\n * fileTypes: [\n * AcceptedFileTypes.CSV,\n * ]\n * });\n *\n * Where @constant inputElAcceptProperty would equal \".csv\"\n *\n * @param fileTypes - A list of file types, each value being of @type AcceptedFileTypes\n * the returned string\n */\nexport const getTypePropForInputEl = ({ fileTypes }: GetValidTypesStringProps) => {\n if (fileTypes.length === 1) return fileTypes[0];\n let base = '';\n fileTypes.forEach((fileType, index, list) => {\n const isLastElement = list.length - 1 === index && list.length > 1;\n if (isLastElement) base += `${fileType}`;\n else base += `${fileType}, `;\n });\n return base.trim();\n};\n"],"names":[],"mappings":";;AAOA;;;;;;;;;;;;;;;;AAgBG;MACU,qBAAqB,GAAG,CAAC,EAAE,SAAS,EAA4B,KAAI;AAC/E,IAAA,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,IAAI,GAAG,EAAE;IACb,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,KAAI;AAC1C,QAAA,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;AAClE,QAAA,IAAI,aAAa;AAAE,YAAA,IAAI,IAAI,CAAA,EAAG,QAAQ,CAAA,CAAE;;AACnC,YAAA,IAAI,IAAI,CAAA,EAAG,QAAQ,CAAA,EAAA,CAAI;AAC9B,KAAC,CAAC;AACF,IAAA,OAAO,IAAI,CAAC,IAAI,EAAE;AACpB;;;;"}
1
+ {"version":3,"file":"getTypePropForInputEl.cjs","sources":["../../../../../src/components/UploadFile/utils/getTypePropForInputEl/getTypePropForInputEl.ts"],"sourcesContent":["import { AcceptedFileTypes } from '../../constants';\n\ntype GetValidTypesStringProps = {\n fileTypes: Array<AcceptedFileTypes>;\n baseString?: string;\n};\n\n/**\n * Constructs a string intended to be consumed by an <input> element of type \"file\". This string\n * should go inside the accept property.\n *\n * E.g.\n *\n * const inputElAcceptProperty = getTypePropForInputEl({\n * fileTypes: [\n * AcceptedFileTypes.CSV,\n * ]\n * });\n *\n * Where @constant inputElAcceptProperty would equal \".csv\"\n *\n * @param fileTypes - A list of file types, each value being of @type AcceptedFileTypes\n * the returned string\n */\nexport const getTypePropForInputEl = ({ fileTypes }: GetValidTypesStringProps) => {\n if (fileTypes.length === 1) return fileTypes[0];\n let base = '';\n fileTypes.forEach((fileType, index, list) => {\n const isLastElement = list.length - 1 === index && list.length > 1;\n if (isLastElement) base += `${fileType}`;\n else base += `${fileType}, `;\n });\n return base.trim();\n};\n"],"names":[],"mappings":";;AAOA;;;;;;;;;;;;;;;;AAgBG;MACU,qBAAqB,GAAG,CAAC,EAAE,SAAS,EAA4B,KAAI;AAC/E,IAAA,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,IAAI,GAAG,EAAE;IACb,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,KAAI;AAC1C,QAAA,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;AAClE,QAAA,IAAI,aAAa;AAAE,YAAA,IAAI,IAAI,CAAA,EAAG,QAAQ,CAAA,CAAE;;AACnC,YAAA,IAAI,IAAI,CAAA,EAAG,QAAQ,CAAA,EAAA,CAAI;AAC9B,IAAA,CAAC,CAAC;AACF,IAAA,OAAO,IAAI,CAAC,IAAI,EAAE;AACpB;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"getTypePropForInputEl.js","sources":["../../../../../src/components/UploadFile/utils/getTypePropForInputEl/getTypePropForInputEl.ts"],"sourcesContent":["import { AcceptedFileTypes } from '../../constants';\n\ntype GetValidTypesStringProps = {\n fileTypes: Array<AcceptedFileTypes>;\n baseString?: string;\n};\n\n/**\n * Constructs a string intended to be consumed by an <input> element of type \"file\". This string\n * should go inside the accept property.\n *\n * E.g.\n *\n * const inputElAcceptProperty = getTypePropForInputEl({\n * fileTypes: [\n * AcceptedFileTypes.CSV,\n * ]\n * });\n *\n * Where @constant inputElAcceptProperty would equal \".csv\"\n *\n * @param fileTypes - A list of file types, each value being of @type AcceptedFileTypes\n * the returned string\n */\nexport const getTypePropForInputEl = ({ fileTypes }: GetValidTypesStringProps) => {\n if (fileTypes.length === 1) return fileTypes[0];\n let base = '';\n fileTypes.forEach((fileType, index, list) => {\n const isLastElement = list.length - 1 === index && list.length > 1;\n if (isLastElement) base += `${fileType}`;\n else base += `${fileType}, `;\n });\n return base.trim();\n};\n"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;AAgBG;MACU,qBAAqB,GAAG,CAAC,EAAE,SAAS,EAA4B,KAAI;AAC/E,IAAA,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,IAAI,GAAG,EAAE;IACb,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,KAAI;AAC1C,QAAA,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;AAClE,QAAA,IAAI,aAAa;AAAE,YAAA,IAAI,IAAI,CAAA,EAAG,QAAQ,CAAA,CAAE;;AACnC,YAAA,IAAI,IAAI,CAAA,EAAG,QAAQ,CAAA,EAAA,CAAI;AAC9B,KAAC,CAAC;AACF,IAAA,OAAO,IAAI,CAAC,IAAI,EAAE;AACpB;;;;"}
1
+ {"version":3,"file":"getTypePropForInputEl.js","sources":["../../../../../src/components/UploadFile/utils/getTypePropForInputEl/getTypePropForInputEl.ts"],"sourcesContent":["import { AcceptedFileTypes } from '../../constants';\n\ntype GetValidTypesStringProps = {\n fileTypes: Array<AcceptedFileTypes>;\n baseString?: string;\n};\n\n/**\n * Constructs a string intended to be consumed by an <input> element of type \"file\". This string\n * should go inside the accept property.\n *\n * E.g.\n *\n * const inputElAcceptProperty = getTypePropForInputEl({\n * fileTypes: [\n * AcceptedFileTypes.CSV,\n * ]\n * });\n *\n * Where @constant inputElAcceptProperty would equal \".csv\"\n *\n * @param fileTypes - A list of file types, each value being of @type AcceptedFileTypes\n * the returned string\n */\nexport const getTypePropForInputEl = ({ fileTypes }: GetValidTypesStringProps) => {\n if (fileTypes.length === 1) return fileTypes[0];\n let base = '';\n fileTypes.forEach((fileType, index, list) => {\n const isLastElement = list.length - 1 === index && list.length > 1;\n if (isLastElement) base += `${fileType}`;\n else base += `${fileType}, `;\n });\n return base.trim();\n};\n"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;AAgBG;MACU,qBAAqB,GAAG,CAAC,EAAE,SAAS,EAA4B,KAAI;AAC/E,IAAA,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,SAAS,CAAC,CAAC,CAAC;IAC/C,IAAI,IAAI,GAAG,EAAE;IACb,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,KAAI;AAC1C,QAAA,MAAM,aAAa,GAAG,IAAI,CAAC,MAAM,GAAG,CAAC,KAAK,KAAK,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC;AAClE,QAAA,IAAI,aAAa;AAAE,YAAA,IAAI,IAAI,CAAA,EAAG,QAAQ,CAAA,CAAE;;AACnC,YAAA,IAAI,IAAI,CAAA,EAAG,QAAQ,CAAA,EAAA,CAAI;AAC9B,IAAA,CAAC,CAAC;AACF,IAAA,OAAO,IAAI,CAAC,IAAI,EAAE;AACpB;;;;"}
@@ -22,7 +22,7 @@ const getValidTypesString = ({ fileTypes, baseString }) => {
22
22
  // Remove leading dot and uppercase for display
23
23
  const getDisplayType = (fileType) => fileType.replace(/^\./, '').toUpperCase();
24
24
  if (!fileTypes.length)
25
- return baseString !== null && baseString !== undefined ? baseString : '';
25
+ return baseString !== null && baseString !== void 0 ? baseString : '';
26
26
  const displayTypes = fileTypes.map(getDisplayType);
27
27
  let result = baseString == null ? 'Valid file types: ' : baseString;
28
28
  if (displayTypes.length === 1) {
@@ -1 +1 @@
1
- {"version":3,"file":"getValidTypesString.cjs","sources":["../../../../../src/components/UploadFile/utils/getValidTypesString/getValidTypesString.ts"],"sourcesContent":["import { AcceptedFileTypes } from '../../constants';\n\ntype GetValidTypesStringProps = {\n fileTypes: Array<AcceptedFileTypes>;\n baseString?: string;\n};\n\n/**\n * Constructs a user-friendly string of accepted types valid for the UploadFile component based on the\n * fileTypes list passed as parameter.\n *\n * E.g.\n *\n * const validTypesCopy = getValidTypesString({\n * fileTypes: [\n * AcceptedFileTypes.CSV,\n * ]\n * });\n *\n * Where @constant validTypesCopy would equal \"Valid types: CSV\"\n *\n * @param fileTypes - A list of file types, each value being of @type AcceptedFileTypes\n * @param baseString - An optional string to override the default value of 'Valid types: ' prefixed to\n * the returned string\n */\nexport const getValidTypesString = ({ fileTypes, baseString }: GetValidTypesStringProps) => {\n // Remove leading dot and uppercase for display\n const getDisplayType = (fileType: AcceptedFileTypes) => fileType.replace(/^\\./, '').toUpperCase();\n\n if (!fileTypes.length) return baseString ?? '';\n\n const displayTypes = fileTypes.map(getDisplayType);\n\n let result = baseString == null ? 'Valid file types: ' : baseString;\n\n if (displayTypes.length === 1) {\n result += displayTypes[0];\n } else if (displayTypes.length === 2) {\n result += `${displayTypes[0]} and ${displayTypes[1]}`;\n } else {\n result += `${displayTypes.slice(0, -1).join(', ')} and ${displayTypes[displayTypes.length - 1]}`;\n }\n\n return result;\n};\n"],"names":[],"mappings":";;AAOA;;;;;;;;;;;;;;;;;AAiBG;AACU,MAAA,mBAAmB,GAAG,CAAC,EAAE,SAAS,EAAE,UAAU,EAA4B,KAAI;;AAEzF,IAAA,MAAM,cAAc,GAAG,CAAC,QAA2B,KAAK,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE;IAEjG,IAAI,CAAC,SAAS,CAAC,MAAM;AAAE,QAAA,OAAO,UAAU,KAAV,IAAA,IAAA,UAAU,iBAAV,UAAU,GAAI,EAAE;IAE9C,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC;AAElD,IAAA,IAAI,MAAM,GAAG,UAAU,IAAI,IAAI,GAAG,oBAAoB,GAAG,UAAU;AAEnE,IAAA,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;AAC7B,QAAA,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC;AAC1B;AAAM,SAAA,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;AACpC,QAAA,MAAM,IAAI,CAAA,EAAG,YAAY,CAAC,CAAC,CAAC,CAAQ,KAAA,EAAA,YAAY,CAAC,CAAC,CAAC,CAAA,CAAE;AACtD;AAAM,SAAA;QACL,MAAM,IAAI,CAAG,EAAA,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAQ,KAAA,EAAA,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA,CAAE;AACjG;AAED,IAAA,OAAO,MAAM;AACf;;;;"}
1
+ {"version":3,"file":"getValidTypesString.cjs","sources":["../../../../../src/components/UploadFile/utils/getValidTypesString/getValidTypesString.ts"],"sourcesContent":["import { AcceptedFileTypes } from '../../constants';\n\ntype GetValidTypesStringProps = {\n fileTypes: Array<AcceptedFileTypes>;\n baseString?: string;\n};\n\n/**\n * Constructs a user-friendly string of accepted types valid for the UploadFile component based on the\n * fileTypes list passed as parameter.\n *\n * E.g.\n *\n * const validTypesCopy = getValidTypesString({\n * fileTypes: [\n * AcceptedFileTypes.CSV,\n * ]\n * });\n *\n * Where @constant validTypesCopy would equal \"Valid types: CSV\"\n *\n * @param fileTypes - A list of file types, each value being of @type AcceptedFileTypes\n * @param baseString - An optional string to override the default value of 'Valid types: ' prefixed to\n * the returned string\n */\nexport const getValidTypesString = ({ fileTypes, baseString }: GetValidTypesStringProps) => {\n // Remove leading dot and uppercase for display\n const getDisplayType = (fileType: AcceptedFileTypes) => fileType.replace(/^\\./, '').toUpperCase();\n\n if (!fileTypes.length) return baseString ?? '';\n\n const displayTypes = fileTypes.map(getDisplayType);\n\n let result = baseString == null ? 'Valid file types: ' : baseString;\n\n if (displayTypes.length === 1) {\n result += displayTypes[0];\n } else if (displayTypes.length === 2) {\n result += `${displayTypes[0]} and ${displayTypes[1]}`;\n } else {\n result += `${displayTypes.slice(0, -1).join(', ')} and ${displayTypes[displayTypes.length - 1]}`;\n }\n\n return result;\n};\n"],"names":[],"mappings":";;AAOA;;;;;;;;;;;;;;;;;AAiBG;AACI,MAAM,mBAAmB,GAAG,CAAC,EAAE,SAAS,EAAE,UAAU,EAA4B,KAAI;;AAEzF,IAAA,MAAM,cAAc,GAAG,CAAC,QAA2B,KAAK,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE;IAEjG,IAAI,CAAC,SAAS,CAAC,MAAM;AAAE,QAAA,OAAO,UAAU,KAAA,IAAA,IAAV,UAAU,cAAV,UAAU,GAAI,EAAE;IAE9C,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC;AAElD,IAAA,IAAI,MAAM,GAAG,UAAU,IAAI,IAAI,GAAG,oBAAoB,GAAG,UAAU;AAEnE,IAAA,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;AAC7B,QAAA,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC;AAC1B,IAAA;AAAM,SAAA,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;AACpC,QAAA,MAAM,IAAI,CAAA,EAAG,YAAY,CAAC,CAAC,CAAC,CAAA,KAAA,EAAQ,YAAY,CAAC,CAAC,CAAC,CAAA,CAAE;AACtD,IAAA;AAAM,SAAA;QACL,MAAM,IAAI,CAAA,EAAG,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,KAAA,EAAQ,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA,CAAE;AACjG,IAAA;AAED,IAAA,OAAO,MAAM;AACf;;;;"}
@@ -20,7 +20,7 @@ const getValidTypesString = ({ fileTypes, baseString }) => {
20
20
  // Remove leading dot and uppercase for display
21
21
  const getDisplayType = (fileType) => fileType.replace(/^\./, '').toUpperCase();
22
22
  if (!fileTypes.length)
23
- return baseString !== null && baseString !== undefined ? baseString : '';
23
+ return baseString !== null && baseString !== void 0 ? baseString : '';
24
24
  const displayTypes = fileTypes.map(getDisplayType);
25
25
  let result = baseString == null ? 'Valid file types: ' : baseString;
26
26
  if (displayTypes.length === 1) {
@@ -1 +1 @@
1
- {"version":3,"file":"getValidTypesString.js","sources":["../../../../../src/components/UploadFile/utils/getValidTypesString/getValidTypesString.ts"],"sourcesContent":["import { AcceptedFileTypes } from '../../constants';\n\ntype GetValidTypesStringProps = {\n fileTypes: Array<AcceptedFileTypes>;\n baseString?: string;\n};\n\n/**\n * Constructs a user-friendly string of accepted types valid for the UploadFile component based on the\n * fileTypes list passed as parameter.\n *\n * E.g.\n *\n * const validTypesCopy = getValidTypesString({\n * fileTypes: [\n * AcceptedFileTypes.CSV,\n * ]\n * });\n *\n * Where @constant validTypesCopy would equal \"Valid types: CSV\"\n *\n * @param fileTypes - A list of file types, each value being of @type AcceptedFileTypes\n * @param baseString - An optional string to override the default value of 'Valid types: ' prefixed to\n * the returned string\n */\nexport const getValidTypesString = ({ fileTypes, baseString }: GetValidTypesStringProps) => {\n // Remove leading dot and uppercase for display\n const getDisplayType = (fileType: AcceptedFileTypes) => fileType.replace(/^\\./, '').toUpperCase();\n\n if (!fileTypes.length) return baseString ?? '';\n\n const displayTypes = fileTypes.map(getDisplayType);\n\n let result = baseString == null ? 'Valid file types: ' : baseString;\n\n if (displayTypes.length === 1) {\n result += displayTypes[0];\n } else if (displayTypes.length === 2) {\n result += `${displayTypes[0]} and ${displayTypes[1]}`;\n } else {\n result += `${displayTypes.slice(0, -1).join(', ')} and ${displayTypes[displayTypes.length - 1]}`;\n }\n\n return result;\n};\n"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;AAiBG;AACU,MAAA,mBAAmB,GAAG,CAAC,EAAE,SAAS,EAAE,UAAU,EAA4B,KAAI;;AAEzF,IAAA,MAAM,cAAc,GAAG,CAAC,QAA2B,KAAK,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE;IAEjG,IAAI,CAAC,SAAS,CAAC,MAAM;AAAE,QAAA,OAAO,UAAU,KAAV,IAAA,IAAA,UAAU,iBAAV,UAAU,GAAI,EAAE;IAE9C,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC;AAElD,IAAA,IAAI,MAAM,GAAG,UAAU,IAAI,IAAI,GAAG,oBAAoB,GAAG,UAAU;AAEnE,IAAA,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;AAC7B,QAAA,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC;AAC1B;AAAM,SAAA,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;AACpC,QAAA,MAAM,IAAI,CAAA,EAAG,YAAY,CAAC,CAAC,CAAC,CAAQ,KAAA,EAAA,YAAY,CAAC,CAAC,CAAC,CAAA,CAAE;AACtD;AAAM,SAAA;QACL,MAAM,IAAI,CAAG,EAAA,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAQ,KAAA,EAAA,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA,CAAE;AACjG;AAED,IAAA,OAAO,MAAM;AACf;;;;"}
1
+ {"version":3,"file":"getValidTypesString.js","sources":["../../../../../src/components/UploadFile/utils/getValidTypesString/getValidTypesString.ts"],"sourcesContent":["import { AcceptedFileTypes } from '../../constants';\n\ntype GetValidTypesStringProps = {\n fileTypes: Array<AcceptedFileTypes>;\n baseString?: string;\n};\n\n/**\n * Constructs a user-friendly string of accepted types valid for the UploadFile component based on the\n * fileTypes list passed as parameter.\n *\n * E.g.\n *\n * const validTypesCopy = getValidTypesString({\n * fileTypes: [\n * AcceptedFileTypes.CSV,\n * ]\n * });\n *\n * Where @constant validTypesCopy would equal \"Valid types: CSV\"\n *\n * @param fileTypes - A list of file types, each value being of @type AcceptedFileTypes\n * @param baseString - An optional string to override the default value of 'Valid types: ' prefixed to\n * the returned string\n */\nexport const getValidTypesString = ({ fileTypes, baseString }: GetValidTypesStringProps) => {\n // Remove leading dot and uppercase for display\n const getDisplayType = (fileType: AcceptedFileTypes) => fileType.replace(/^\\./, '').toUpperCase();\n\n if (!fileTypes.length) return baseString ?? '';\n\n const displayTypes = fileTypes.map(getDisplayType);\n\n let result = baseString == null ? 'Valid file types: ' : baseString;\n\n if (displayTypes.length === 1) {\n result += displayTypes[0];\n } else if (displayTypes.length === 2) {\n result += `${displayTypes[0]} and ${displayTypes[1]}`;\n } else {\n result += `${displayTypes.slice(0, -1).join(', ')} and ${displayTypes[displayTypes.length - 1]}`;\n }\n\n return result;\n};\n"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;AAiBG;AACI,MAAM,mBAAmB,GAAG,CAAC,EAAE,SAAS,EAAE,UAAU,EAA4B,KAAI;;AAEzF,IAAA,MAAM,cAAc,GAAG,CAAC,QAA2B,KAAK,QAAQ,CAAC,OAAO,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE;IAEjG,IAAI,CAAC,SAAS,CAAC,MAAM;AAAE,QAAA,OAAO,UAAU,KAAA,IAAA,IAAV,UAAU,cAAV,UAAU,GAAI,EAAE;IAE9C,MAAM,YAAY,GAAG,SAAS,CAAC,GAAG,CAAC,cAAc,CAAC;AAElD,IAAA,IAAI,MAAM,GAAG,UAAU,IAAI,IAAI,GAAG,oBAAoB,GAAG,UAAU;AAEnE,IAAA,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;AAC7B,QAAA,MAAM,IAAI,YAAY,CAAC,CAAC,CAAC;AAC1B,IAAA;AAAM,SAAA,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,EAAE;AACpC,QAAA,MAAM,IAAI,CAAA,EAAG,YAAY,CAAC,CAAC,CAAC,CAAA,KAAA,EAAQ,YAAY,CAAC,CAAC,CAAC,CAAA,CAAE;AACtD,IAAA;AAAM,SAAA;QACL,MAAM,IAAI,CAAA,EAAG,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,KAAA,EAAQ,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA,CAAE;AACjG,IAAA;AAED,IAAA,OAAO,MAAM;AACf;;;;"}
@@ -27,7 +27,7 @@ const UploadedFile = ({ file, onRemoveFile, disabled, format, maxBytes, fileType
27
27
  maxBytes,
28
28
  fileTypes,
29
29
  });
30
- const fileSizeCopy = getFileSizeString.getFileSizeString({ maxBytes: (file === null || file === undefined ? undefined : file.size) || 0, format, baseString: '' });
30
+ const fileSizeCopy = getFileSizeString.getFileSizeString({ maxBytes: (file === null || file === void 0 ? void 0 : file.size) || 0, format, baseString: '' });
31
31
  if (isLoading) {
32
32
  return React__default.default.createElement(Skeleton.Skeleton, { height: "40px", "aria-label": "Loading file" });
33
33
  }
@@ -66,7 +66,7 @@ const UploadedFile = ({ file, onRemoveFile, disabled, format, maxBytes, fileType
66
66
  React__default.default.createElement(FlexRow.FlexRow, { alignItems: "center", style: { flex: 1, minWidth: 0, gap: index.theme.sizes.base }, flexWrap: "nowrap" },
67
67
  React__default.default.createElement(Image.Image, { className: UploadedFile_module.previewImage, height: "44", width: "44", src: previewSrc }),
68
68
  React__default.default.createElement("div", { className: UploadedFile_module.singleLineWrapper },
69
- React__default.default.createElement(Text.Text, { className: UploadedFile_module.singleLineTextWithoutFlex, variant: "body" }, file === null || file === undefined ? undefined : file.name),
69
+ React__default.default.createElement(Text.Text, { className: UploadedFile_module.singleLineTextWithoutFlex, variant: "body" }, file === null || file === void 0 ? void 0 : file.name),
70
70
  React__default.default.createElement(Text.Text, { variant: "body", className: UploadedFile_module.singleLineTextWithoutFlex, style: {
71
71
  color: index.theme.colors.neutral.ink.light,
72
72
  } }, fileSizeCopy))),
@@ -1 +1 @@
1
- {"version":3,"file":"UploadedFile.cjs","sources":["../../../src/components/UploadedFile/UploadedFile.tsx"],"sourcesContent":["import React from 'react';\nimport { theme } from 'Theme';\nimport { Button } from '../Button';\nimport { CriticalIcon, CrossIcon } from '../../icons';\nimport { Text } from '../Text';\nimport { Image } from '../Image';\nimport { FlexCol } from '../Flex/FlexCol';\nimport { FlexRow } from '../Flex/FlexRow';\nimport { Error } from '../../hoc/withLabels/styled';\nimport { usePreviewImage } from './hooks/usePreviewImage';\nimport uploadedFileStyles from './UploadedFile.module.scss';\nimport { useFileErrorMessages } from './hooks/useFileErrorMessages';\nimport { AcceptedFileTypes, FileSizeUnit } from '../UploadFile/constants';\nimport { getFileSizeString } from '../UploadFile/utils';\nimport { Skeleton } from '../Skeleton';\n\nexport type UploadedFileProps = {\n file?: File | null;\n onRemoveFile?: (file: File) => void;\n disabled?: boolean;\n format: FileSizeUnit;\n maxBytes: number;\n fileTypes: Array<AcceptedFileTypes>;\n isLoading?: boolean;\n};\n\nexport const UploadedFile = ({\n file,\n onRemoveFile,\n disabled,\n format,\n maxBytes,\n fileTypes,\n isLoading,\n}: UploadedFileProps) => {\n const { previewSrc, shouldShowPreview } = usePreviewImage({ file });\n\n const { errorMessages, hasCriticalErrors } = useFileErrorMessages({\n file,\n maxBytes,\n fileTypes,\n });\n\n const fileSizeCopy = getFileSizeString({ maxBytes: file?.size || 0, format, baseString: '' });\n\n if (isLoading) {\n return <Skeleton height=\"40px\" aria-label=\"Loading file\" />;\n }\n\n if (!file) return null;\n\n const RemoveButton = (\n <Button\n size=\"sm\"\n variant=\"flat\"\n onClick={() => onRemoveFile && onRemoveFile(file)}\n iconSlot={<CrossIcon />}\n aria-label={`Remove file ${file.name}`}\n disabled={disabled}\n type=\"button\"\n />\n );\n\n const ErrorMessages = hasCriticalErrors && (\n <FlexRow alignItems=\"flex-start\">\n <CriticalIcon\n width={theme.sizes.base}\n height={theme.sizes.base}\n color={theme.colors.secondary.red.base}\n />\n <div className={uploadedFileStyles.singleLineWrapper}>\n <Error className={uploadedFileStyles.singleLineTextWithoutFlex}>\n {errorMessages.criticalErrors.map((error, index, array) => {\n const isNotLast = !!(array.length > index + 1);\n return `${error.errorMessage}${isNotLast ? ', ' : ''}`;\n })}\n </Error>\n </div>\n </FlexRow>\n );\n\n if (!shouldShowPreview) {\n return (\n <div\n className={\n hasCriticalErrors\n ? uploadedFileStyles.uploadedFileContainerCriticalError\n : uploadedFileStyles.uploadedFileContainer\n }\n >\n <FlexRow justifyContent=\"space-between\" alignItems=\"center\">\n <FlexCol style={{ flex: 1, minWidth: 0 }}>\n <div className={uploadedFileStyles.standardFileTextWrapper}>\n <Text\n className={uploadedFileStyles.singleLineText}\n variant=\"body\"\n style={{\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n }}\n >\n {file.name}\n </Text>\n <Text\n variant=\"body\"\n className={uploadedFileStyles.fileSizeText}\n style={{ color: theme.colors.neutral.ink.light }}\n >\n {fileSizeCopy}\n </Text>\n </div>\n {ErrorMessages}\n </FlexCol>\n {onRemoveFile && (\n <div style={{ display: 'flex', alignItems: 'center', marginLeft: 12 }}>\n {RemoveButton}\n </div>\n )}\n </FlexRow>\n </div>\n );\n }\n\n return (\n <div\n className={\n hasCriticalErrors\n ? uploadedFileStyles.uploadedFileContainerCriticalError\n : uploadedFileStyles.uploadedFileContainer\n }\n >\n <FlexRow style={{ flexWrap: 'nowrap' }} justifyContent=\"space-between\">\n <FlexCol>\n <FlexRow\n alignItems=\"center\"\n style={{ flex: 1, minWidth: 0, gap: theme.sizes.base }}\n flexWrap=\"nowrap\"\n >\n <Image\n className={uploadedFileStyles.previewImage}\n height=\"44\"\n width=\"44\"\n src={previewSrc}\n />\n <div className={uploadedFileStyles.singleLineWrapper}>\n <Text className={uploadedFileStyles.singleLineTextWithoutFlex} variant=\"body\">\n {file?.name}\n </Text>\n <Text\n variant=\"body\"\n className={uploadedFileStyles.singleLineTextWithoutFlex}\n style={{\n color: theme.colors.neutral.ink.light,\n }}\n >\n {fileSizeCopy}\n </Text>\n </div>\n </FlexRow>\n {ErrorMessages}\n </FlexCol>\n {onRemoveFile && RemoveButton}\n </FlexRow>\n </div>\n );\n};\n"],"names":["usePreviewImage","useFileErrorMessages","getFileSizeString","React","Skeleton","Button","CrossIcon","FlexRow","CriticalIcon","theme","uploadedFileStyles","Error","FlexCol","Text","Image"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MA0Ba,YAAY,GAAG,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,GACS,KAAI;AACtB,IAAA,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAGA,+BAAe,CAAC,EAAE,IAAI,EAAE,CAAC;AAEnE,IAAA,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,GAAGC,yCAAoB,CAAC;QAChE,IAAI;QACJ,QAAQ;QACR,SAAS;AACV,KAAA,CAAC;IAEF,MAAM,YAAY,GAAGC,mCAAiB,CAAC,EAAE,QAAQ,EAAE,CAAA,IAAI,KAAA,IAAA,IAAJ,IAAI,KAAA,SAAA,GAAA,SAAA,GAAJ,IAAI,CAAE,IAAI,KAAI,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;AAE7F,IAAA,IAAI,SAAS,EAAE;QACb,OAAOC,sBAAA,CAAA,aAAA,CAACC,iBAAQ,EAAC,EAAA,MAAM,EAAC,MAAM,EAAA,YAAA,EAAY,cAAc,EAAA,CAAG;AAC5D;AAED,IAAA,IAAI,CAAC,IAAI;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R,CACH,CACE;AACT,gBAAA,aAAa,CACN;AACT,YAAA,YAAY,IAAI,YAAY,CACrB,CACN;AAEV;;;;"}
1
+ {"version":3,"file":"UploadedFile.cjs","sources":["../../../src/components/UploadedFile/UploadedFile.tsx"],"sourcesContent":["import React from 'react';\nimport { theme } from 'Theme';\nimport { Button } from '../Button';\nimport { CriticalIcon, CrossIcon } from '../../icons';\nimport { Text } from '../Text';\nimport { Image } from '../Image';\nimport { FlexCol } from '../Flex/FlexCol';\nimport { FlexRow } from '../Flex/FlexRow';\nimport { Error } from '../../hoc/withLabels/styled';\nimport { usePreviewImage } from './hooks/usePreviewImage';\nimport uploadedFileStyles from './UploadedFile.module.scss';\nimport { useFileErrorMessages } from './hooks/useFileErrorMessages';\nimport { AcceptedFileTypes, FileSizeUnit } from '../UploadFile/constants';\nimport { getFileSizeString } from '../UploadFile/utils';\nimport { Skeleton } from '../Skeleton';\n\nexport type UploadedFileProps = {\n file?: File | null;\n onRemoveFile?: (file: File) => void;\n disabled?: boolean;\n format: FileSizeUnit;\n maxBytes: number;\n fileTypes: Array<AcceptedFileTypes>;\n isLoading?: boolean;\n};\n\nexport const UploadedFile = ({\n file,\n onRemoveFile,\n disabled,\n format,\n maxBytes,\n fileTypes,\n isLoading,\n}: UploadedFileProps) => {\n const { previewSrc, shouldShowPreview } = usePreviewImage({ file });\n\n const { errorMessages, hasCriticalErrors } = useFileErrorMessages({\n file,\n maxBytes,\n fileTypes,\n });\n\n const fileSizeCopy = getFileSizeString({ maxBytes: file?.size || 0, format, baseString: '' });\n\n if (isLoading) {\n return <Skeleton height=\"40px\" aria-label=\"Loading file\" />;\n }\n\n if (!file) return null;\n\n const RemoveButton = (\n <Button\n size=\"sm\"\n variant=\"flat\"\n onClick={() => onRemoveFile && onRemoveFile(file)}\n iconSlot={<CrossIcon />}\n aria-label={`Remove file ${file.name}`}\n disabled={disabled}\n type=\"button\"\n />\n );\n\n const ErrorMessages = hasCriticalErrors && (\n <FlexRow alignItems=\"flex-start\">\n <CriticalIcon\n width={theme.sizes.base}\n height={theme.sizes.base}\n color={theme.colors.secondary.red.base}\n />\n <div className={uploadedFileStyles.singleLineWrapper}>\n <Error className={uploadedFileStyles.singleLineTextWithoutFlex}>\n {errorMessages.criticalErrors.map((error, index, array) => {\n const isNotLast = !!(array.length > index + 1);\n return `${error.errorMessage}${isNotLast ? ', ' : ''}`;\n })}\n </Error>\n </div>\n </FlexRow>\n );\n\n if (!shouldShowPreview) {\n return (\n <div\n className={\n hasCriticalErrors\n ? uploadedFileStyles.uploadedFileContainerCriticalError\n : uploadedFileStyles.uploadedFileContainer\n }\n >\n <FlexRow justifyContent=\"space-between\" alignItems=\"center\">\n <FlexCol style={{ flex: 1, minWidth: 0 }}>\n <div className={uploadedFileStyles.standardFileTextWrapper}>\n <Text\n className={uploadedFileStyles.singleLineText}\n variant=\"body\"\n style={{\n minWidth: 0,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n }}\n >\n {file.name}\n </Text>\n <Text\n variant=\"body\"\n className={uploadedFileStyles.fileSizeText}\n style={{ color: theme.colors.neutral.ink.light }}\n >\n {fileSizeCopy}\n </Text>\n </div>\n {ErrorMessages}\n </FlexCol>\n {onRemoveFile && (\n <div style={{ display: 'flex', alignItems: 'center', marginLeft: 12 }}>\n {RemoveButton}\n </div>\n )}\n </FlexRow>\n </div>\n );\n }\n\n return (\n <div\n className={\n hasCriticalErrors\n ? uploadedFileStyles.uploadedFileContainerCriticalError\n : uploadedFileStyles.uploadedFileContainer\n }\n >\n <FlexRow style={{ flexWrap: 'nowrap' }} justifyContent=\"space-between\">\n <FlexCol>\n <FlexRow\n alignItems=\"center\"\n style={{ flex: 1, minWidth: 0, gap: theme.sizes.base }}\n flexWrap=\"nowrap\"\n >\n <Image\n className={uploadedFileStyles.previewImage}\n height=\"44\"\n width=\"44\"\n src={previewSrc}\n />\n <div className={uploadedFileStyles.singleLineWrapper}>\n <Text className={uploadedFileStyles.singleLineTextWithoutFlex} variant=\"body\">\n {file?.name}\n </Text>\n <Text\n variant=\"body\"\n className={uploadedFileStyles.singleLineTextWithoutFlex}\n style={{\n color: theme.colors.neutral.ink.light,\n }}\n >\n {fileSizeCopy}\n </Text>\n </div>\n </FlexRow>\n {ErrorMessages}\n </FlexCol>\n {onRemoveFile && RemoveButton}\n </FlexRow>\n </div>\n );\n};\n"],"names":["usePreviewImage","useFileErrorMessages","getFileSizeString","React","Skeleton","Button","CrossIcon","FlexRow","CriticalIcon","theme","uploadedFileStyles","Error","FlexCol","Text","Image"],"mappings":";;;;;;;;;;;;;;;;;;;;;;MA0Ba,YAAY,GAAG,CAAC,EAC3B,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,GACS,KAAI;AACtB,IAAA,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,GAAGA,+BAAe,CAAC,EAAE,IAAI,EAAE,CAAC;AAEnE,IAAA,MAAM,EAAE,aAAa,EAAE,iBAAiB,EAAE,GAAGC,yCAAoB,CAAC;QAChE,IAAI;QACJ,QAAQ;QACR,SAAS;AACV,KAAA,CAAC;IAEF,MAAM,YAAY,GAAGC,mCAAiB,CAAC,EAAE,QAAQ,EAAE,CAAA,IAAI,KAAA,IAAA,IAAJ,IAAI,KAAA,MAAA,GAAA,MAAA,GAAJ,IAAI,CAAE,IAAI,KAAI,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,EAAE,CAAC;AAE7F,IAAA,IAAI,SAAS,EAAE;QACb,OAAOC,sBAAA,CAAA,aAAA,CAACC,iBAAQ,EAAA,EAAC,MAAM,EAAC,MAAM,EAAA,YAAA,EAAY,cAAc,EAAA,CAAG;AAC5D,IAAA;AAED,IAAA,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,IAAI;IAEtB,MAAM,YAAY,IAChBD,sBAAA,CAAA,aAAA,CAACE,aAAM,EAAA,EACL,IAAI,EAAC,IAAI,EACT,OAAO,EA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ile = ({ file, onRemoveFile, disabled, format, maxBytes, fileType
21
21
  maxBytes,
22
22
  fileTypes,
23
23
  });
24
- const fileSizeCopy = getFileSizeString({ maxBytes: (file === null || file === undefined ? undefined : file.size) || 0, format, baseString: '' });
24
+ const fileSizeCopy = getFileSizeString({ maxBytes: (file === null || file === void 0 ? void 0 : file.size) || 0, format, baseString: '' });
25
25
  if (isLoading) {
26
26
  return React__default.createElement(Skeleton, { height: "40px", "aria-label": "Loading file" });
27
27
  }
@@ -60,7 +60,7 @@ const UploadedFile = ({ file, onRemoveFile, disabled, format, maxBytes, fileType
60
60
  React__default.createElement(FlexRow, { alignItems: "center", style: { flex: 1, minWidth: 0, gap: theme.sizes.base }, flexWrap: "nowrap" },
61
61
  React__default.createElement(Image, { className: uploadedFileStyles.previewImage, height: "44", width: "44", src: previewSrc }),
62
62
  React__default.createElement("div", { className: uploadedFileStyles.singleLineWrapper },
63
- React__default.createElement(Text, { className: uploadedFileStyles.singleLineTextWithoutFlex, variant: "body" }, file === null || file === undefined ? undefined : file.name),
63
+ React__default.createElement(Text, { className: uploadedFileStyles.singleLineTextWithoutFlex, variant: "body" }, file === null || file === void 0 ? void 0 : file.name),
64
64
  React__default.createElement(Text, { variant: "body", className: uploadedFileStyles.singleLineTextWithoutFlex, style: {
65
65
  color: theme.colors.neutral.ink.light,
66
66
  } }, fileSizeCopy))),