1mpacto-react-ui 2.0.15 → 2.0.17

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 (480) hide show
  1. package/dist/assets/_typography.scss +0 -858
  2. package/dist/assets/core.css +1 -1
  3. package/dist/assets/fontfamily.css +1 -1
  4. package/dist/assets/style.css +1 -1
  5. package/dist/components/Alert/index.cjs +1 -0
  6. package/dist/components/Alert/index.mjs +220 -0
  7. package/dist/components/Alert/style.module.scss.cjs +1 -0
  8. package/dist/components/Alert/style.module.scss.mjs +14 -0
  9. package/dist/components/Badges/Badges.cjs +2 -0
  10. package/dist/components/Badges/Badges.config.cjs +1 -0
  11. package/dist/components/Badges/Badges.config.mjs +47 -0
  12. package/dist/components/Badges/Badges.mjs +29 -0
  13. package/dist/components/Badges/style.module.scss.cjs +1 -0
  14. package/dist/components/Badges/style.module.scss.mjs +40 -0
  15. package/dist/components/Breadcrumbs/Breadcrumbs.cjs +3 -0
  16. package/dist/components/Breadcrumbs/Breadcrumbs.config.cjs +1 -0
  17. package/dist/components/Breadcrumbs/Breadcrumbs.config.mjs +16 -0
  18. package/dist/components/Breadcrumbs/Breadcrumbs.mjs +67 -0
  19. package/dist/components/Breadcrumbs/style.module.scss.cjs +1 -0
  20. package/dist/components/Breadcrumbs/style.module.scss.mjs +16 -0
  21. package/dist/components/Button/Button.cjs +12 -0
  22. package/dist/components/Button/Button.config.cjs +1 -0
  23. package/dist/components/Button/Button.config.mjs +75 -0
  24. package/dist/components/Button/Button.mjs +75 -0
  25. package/dist/components/Button/style.module.scss.cjs +1 -0
  26. package/dist/components/Button/style.module.scss.mjs +58 -0
  27. package/dist/components/ButtonIcon/ButtonIcon.cjs +12 -0
  28. package/dist/components/ButtonIcon/ButtonIcon.config.cjs +1 -0
  29. package/dist/components/ButtonIcon/ButtonIcon.config.mjs +68 -0
  30. package/dist/components/ButtonIcon/ButtonIcon.mjs +65 -0
  31. package/dist/components/ButtonIcon/style.module.scss.cjs +1 -0
  32. package/dist/components/ButtonIcon/style.module.scss.mjs +51 -0
  33. package/dist/components/ButtonPopover/ButtonPopover.cjs +1 -0
  34. package/dist/components/ButtonPopover/ButtonPopover.mjs +84 -0
  35. package/dist/components/ButtonPopover/style.module.scss.cjs +1 -0
  36. package/dist/components/ButtonPopover/style.module.scss.mjs +10 -0
  37. package/dist/components/Calendar/Calendar.cjs +1 -0
  38. package/dist/components/Calendar/Calendar.mjs +199 -0
  39. package/dist/components/Calendar/CalendarButton.cjs +1 -0
  40. package/dist/components/Calendar/CalendarButton.mjs +18 -0
  41. package/dist/components/Calendar/CalendarCell.cjs +1 -0
  42. package/dist/components/Calendar/CalendarCell.mjs +26 -0
  43. package/dist/components/Calendar/CalendarMonth.cjs +1 -0
  44. package/dist/components/Calendar/CalendarMonth.mjs +74 -0
  45. package/dist/components/Calendar/CalendarRange.cjs +1 -0
  46. package/dist/components/Calendar/CalendarRange.mjs +140 -0
  47. package/dist/components/Calendar/CalendarYear.cjs +3 -0
  48. package/dist/components/Calendar/CalendarYear.mjs +74 -0
  49. package/dist/components/Calendar/style.module.scss.cjs +1 -0
  50. package/dist/components/Calendar/style.module.scss.mjs +36 -0
  51. package/dist/components/Chart/DoughnutChart.cjs +1 -0
  52. package/dist/components/Chart/DoughnutChart.mjs +173 -0
  53. package/dist/components/Chart/GradientBarChart.cjs +1 -0
  54. package/dist/components/Chart/GradientBarChart.mjs +157 -0
  55. package/dist/components/Chart/GradientLineChart.cjs +1 -0
  56. package/dist/components/Chart/GradientLineChart.mjs +143 -0
  57. package/dist/components/Chart/LineChart.cjs +1 -0
  58. package/dist/components/Chart/LineChart.mjs +158 -0
  59. package/dist/components/Chips/Chips.cjs +3 -0
  60. package/dist/components/Chips/Chips.config.cjs +1 -0
  61. package/dist/components/Chips/Chips.config.mjs +35 -0
  62. package/dist/components/Chips/Chips.mjs +37 -0
  63. package/dist/components/Chips/style.module.scss.cjs +1 -0
  64. package/dist/components/Chips/style.module.scss.mjs +14 -0
  65. package/dist/components/Collapse/Collapse.cjs +1 -0
  66. package/dist/components/Collapse/Collapse.mjs +35 -0
  67. package/dist/components/Collapse/CollapseV2.cjs +1 -0
  68. package/dist/components/Collapse/CollapseV2.mjs +30 -0
  69. package/dist/components/Collapse/style.module.scss.cjs +1 -0
  70. package/dist/components/Collapse/style.module.scss.mjs +7 -0
  71. package/dist/components/DatePicker/DatePicker.cjs +1 -0
  72. package/dist/components/DatePicker/DatePicker.mjs +125 -0
  73. package/dist/components/DatePicker/DateRangePicker.cjs +1 -0
  74. package/dist/components/DatePicker/DateRangePicker.mjs +112 -0
  75. package/dist/components/DatePicker/FilterDate.cjs +1 -0
  76. package/dist/components/DatePicker/FilterDate.mjs +248 -0
  77. package/dist/components/DatePicker/MonthYearPicker.cjs +1 -0
  78. package/dist/components/DatePicker/MonthYearPicker.mjs +83 -0
  79. package/dist/components/ErrorMessage/ErrorMessage.cjs +1 -0
  80. package/dist/components/ErrorMessage/ErrorMessage.config.cjs +1 -0
  81. package/dist/components/ErrorMessage/ErrorMessage.config.mjs +11 -0
  82. package/dist/components/ErrorMessage/ErrorMessage.mjs +6 -0
  83. package/dist/components/ErrorMessage/style.module.scss.cjs +1 -0
  84. package/dist/components/ErrorMessage/style.module.scss.mjs +8 -0
  85. package/dist/components/FilterContainer/FilterContainer.cjs +1 -0
  86. package/dist/components/FilterContainer/FilterContainer.mjs +63 -0
  87. package/dist/components/Input/InputFloatingInner.cjs +5 -0
  88. package/dist/components/Input/InputFloatingInner.config.cjs +1 -0
  89. package/dist/components/Input/InputFloatingInner.config.mjs +11 -0
  90. package/dist/components/Input/InputFloatingInner.mjs +65 -0
  91. package/dist/components/Input/InputFloatingInner.module.scss.cjs +1 -0
  92. package/dist/components/Input/InputFloatingInner.module.scss.mjs +20 -0
  93. package/dist/components/Input/InputInnerLabel.cjs +6 -0
  94. package/dist/components/Input/InputInnerLabel.config.cjs +1 -0
  95. package/dist/components/Input/InputInnerLabel.config.mjs +10 -0
  96. package/dist/components/Input/InputInnerLabel.mjs +78 -0
  97. package/dist/components/Input/InputInnerLabel.module.scss.cjs +1 -0
  98. package/dist/components/Input/InputInnerLabel.module.scss.mjs +20 -0
  99. package/dist/components/Input/InputNative.cjs +5 -0
  100. package/dist/components/Input/InputNative.config.cjs +1 -0
  101. package/dist/components/Input/InputNative.config.mjs +11 -0
  102. package/dist/components/Input/InputNative.mjs +58 -0
  103. package/dist/components/Input/InputNative.module.scss.cjs +1 -0
  104. package/dist/components/Input/InputNative.module.scss.mjs +18 -0
  105. package/dist/components/Input/InputReguler.cjs +5 -0
  106. package/dist/components/Input/InputReguler.config.cjs +1 -0
  107. package/dist/components/Input/InputReguler.config.mjs +11 -0
  108. package/dist/components/Input/InputReguler.mjs +79 -0
  109. package/dist/components/Input/InputReguler.module.scss.cjs +1 -0
  110. package/dist/components/Input/InputReguler.module.scss.mjs +24 -0
  111. package/dist/components/Modal/ModalDialog.cjs +1 -0
  112. package/dist/components/Modal/ModalDialog.config.cjs +1 -0
  113. package/dist/components/Modal/ModalDialog.config.mjs +12 -0
  114. package/dist/components/Modal/ModalDialog.mjs +44 -0
  115. package/dist/components/Modal/style.module.scss.cjs +1 -0
  116. package/dist/components/Modal/style.module.scss.mjs +14 -0
  117. package/dist/components/NumberFormat/NumberFormat.cjs +1 -0
  118. package/dist/components/NumberFormat/NumberFormat.mjs +33 -0
  119. package/dist/components/Pagination/Pagination.cjs +2 -0
  120. package/dist/components/Pagination/Pagination.config.cjs +1 -0
  121. package/dist/components/Pagination/Pagination.config.mjs +25 -0
  122. package/dist/components/Pagination/Pagination.mjs +231 -0
  123. package/dist/components/Pagination/style.module.scss.cjs +1 -0
  124. package/dist/components/Pagination/style.module.scss.mjs +20 -0
  125. package/dist/components/Popover/Popover.cjs +1 -0
  126. package/dist/components/Popover/Popover.mjs +78 -0
  127. package/dist/components/Popover/style.module.scss.cjs +1 -0
  128. package/dist/components/Popover/style.module.scss.mjs +7 -0
  129. package/dist/components/PortalComponent/PortalComponent.cjs +1 -0
  130. package/dist/components/PortalComponent/PortalComponent.mjs +18 -0
  131. package/dist/components/RadioCheckbox/CheckboxTable.cjs +1 -0
  132. package/dist/components/RadioCheckbox/CheckboxTable.mjs +27 -0
  133. package/dist/components/RadioCheckbox/RadioCheckbox.cjs +3 -0
  134. package/dist/components/RadioCheckbox/RadioCheckbox.config.cjs +1 -0
  135. package/dist/components/RadioCheckbox/RadioCheckbox.config.mjs +31 -0
  136. package/dist/components/RadioCheckbox/RadioCheckbox.mjs +84 -0
  137. package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.cjs +1 -0
  138. package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.mjs +26 -0
  139. package/dist/components/RadioCheckbox/RadioCheckboxLabel.cjs +4 -0
  140. package/dist/components/RadioCheckbox/RadioCheckboxLabel.config.cjs +1 -0
  141. package/dist/components/RadioCheckbox/RadioCheckboxLabel.config.mjs +20 -0
  142. package/dist/components/RadioCheckbox/RadioCheckboxLabel.mjs +55 -0
  143. package/dist/components/RadioCheckbox/RadioCheckboxLabel.module.scss.cjs +1 -0
  144. package/dist/components/RadioCheckbox/RadioCheckboxLabel.module.scss.mjs +19 -0
  145. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.cjs +1 -0
  146. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.config.cjs +1 -0
  147. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.config.mjs +27 -0
  148. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.mjs +150 -0
  149. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.module.scss.cjs +1 -0
  150. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.module.scss.mjs +10 -0
  151. package/dist/components/SelectDropdownContainer/styleConfig.cjs +1 -0
  152. package/dist/components/SelectDropdownContainer/styleConfig.mjs +277 -0
  153. package/dist/components/Sidebar/ItemSidebar.cjs +8 -0
  154. package/dist/components/Sidebar/ItemSidebar.config.cjs +1 -0
  155. package/dist/components/Sidebar/ItemSidebar.config.mjs +42 -0
  156. package/dist/components/Sidebar/ItemSidebar.mjs +122 -0
  157. package/dist/components/Sidebar/Sidebar.cjs +1 -0
  158. package/dist/components/Sidebar/Sidebar.config.cjs +1 -0
  159. package/dist/components/Sidebar/Sidebar.config.mjs +25 -0
  160. package/dist/components/Sidebar/Sidebar.mjs +136 -0
  161. package/dist/components/Sidebar/Sidebar.module.scss.cjs +1 -0
  162. package/dist/components/Sidebar/Sidebar.module.scss.mjs +26 -0
  163. package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -0
  164. package/dist/components/Sidebar/itemSidebar.module.scss.mjs +31 -0
  165. package/dist/components/Step/Step.cjs +5 -0
  166. package/dist/components/Step/Step.mjs +85 -0
  167. package/dist/components/Step/Step.module.scss.cjs +1 -0
  168. package/dist/components/Step/Step.module.scss.mjs +17 -0
  169. package/dist/components/Step/StepIndicator.cjs +4 -0
  170. package/dist/components/Step/StepIndicator.mjs +65 -0
  171. package/dist/components/Step/StepIndicator.module.scss.cjs +1 -0
  172. package/dist/components/Step/StepIndicator.module.scss.mjs +16 -0
  173. package/dist/components/Switch/Switch.cjs +1 -0
  174. package/dist/components/Switch/Switch.config.cjs +1 -0
  175. package/dist/components/Switch/Switch.config.mjs +28 -0
  176. package/dist/components/Switch/Switch.mjs +53 -0
  177. package/dist/components/Switch/style.module.scss.cjs +1 -0
  178. package/dist/components/Switch/style.module.scss.mjs +23 -0
  179. package/dist/components/TPublish/TPublish.cjs +1 -0
  180. package/dist/components/TPublish/TPublish.mjs +5 -0
  181. package/dist/components/Table/Table.cjs +3 -0
  182. package/dist/components/Table/Table.config.cjs +1 -0
  183. package/dist/components/Table/Table.config.mjs +69 -0
  184. package/dist/components/Table/Table.mjs +402 -0
  185. package/dist/components/Table/Table.module.scss.cjs +1 -0
  186. package/dist/components/Table/Table.module.scss.mjs +19 -0
  187. package/dist/components/Table/TableSubMobile.cjs +1 -0
  188. package/dist/components/Table/TableSubMobile.mjs +37 -0
  189. package/dist/components/Table/TableSubMobile.module.scss.cjs +1 -0
  190. package/dist/components/Table/TableSubMobile.module.scss.mjs +6 -0
  191. package/dist/components/Tabs/TabPanel.cjs +1 -0
  192. package/dist/components/Tabs/TabPanel.mjs +14 -0
  193. package/dist/components/Tabs/Tabs.cjs +8 -0
  194. package/dist/components/Tabs/Tabs.config.cjs +1 -0
  195. package/dist/components/Tabs/Tabs.config.mjs +33 -0
  196. package/dist/components/Tabs/Tabs.mjs +112 -0
  197. package/dist/components/Tabs/style.module.scss.cjs +1 -0
  198. package/dist/components/Tabs/style.module.scss.mjs +30 -0
  199. package/dist/components/Text/Text.cjs +5 -0
  200. package/dist/components/Text/Text.mjs +39 -0
  201. package/dist/components/TextEditor/TextEditor.cjs +1 -0
  202. package/dist/components/TextEditor/TextEditor.mjs +9 -0
  203. package/dist/components/TextEditor/style.module.scss.cjs +1 -0
  204. package/dist/components/TextEditor/style.module.scss.mjs +7 -0
  205. package/dist/components/Textarea/Textarea.cjs +7 -0
  206. package/dist/components/Textarea/Textarea.config.cjs +1 -0
  207. package/dist/components/Textarea/Textarea.config.mjs +33 -0
  208. package/dist/components/Textarea/Textarea.mjs +87 -0
  209. package/dist/components/Textarea/TextareaFloatingInner.cjs +6 -0
  210. package/dist/components/Textarea/TextareaFloatingInner.config.cjs +1 -0
  211. package/dist/components/Textarea/TextareaFloatingInner.config.mjs +9 -0
  212. package/dist/components/Textarea/TextareaFloatingInner.mjs +101 -0
  213. package/dist/components/Textarea/TextareaFloatingInner.module.scss.cjs +1 -0
  214. package/dist/components/Textarea/TextareaFloatingInner.module.scss.mjs +17 -0
  215. package/dist/components/Textarea/TextareaInnerLabel.cjs +6 -0
  216. package/dist/components/Textarea/TextareaInnerLabel.config.cjs +1 -0
  217. package/dist/components/Textarea/TextareaInnerLabel.config.mjs +10 -0
  218. package/dist/components/Textarea/TextareaInnerLabel.mjs +87 -0
  219. package/dist/components/Textarea/TextareaInnerLabel.module.scss.cjs +1 -0
  220. package/dist/components/Textarea/TextareaInnerLabel.module.scss.mjs +17 -0
  221. package/dist/components/Textarea/style.module.scss.cjs +1 -0
  222. package/dist/components/Textarea/style.module.scss.mjs +25 -0
  223. package/dist/components/TimeRange/TimeRange.cjs +1 -0
  224. package/dist/components/TimeRange/TimeRange.mjs +187 -0
  225. package/dist/components/TimeRange/TimeRange.module.scss.cjs +1 -0
  226. package/dist/components/TimeRange/TimeRange.module.scss.mjs +23 -0
  227. package/dist/components/Timeline/Timeline.cjs +1 -0
  228. package/dist/components/Timeline/Timeline.mjs +12 -0
  229. package/dist/components/Timeline/style.module.scss.cjs +1 -0
  230. package/dist/components/Timeline/style.module.scss.mjs +14 -0
  231. package/dist/components/Tooltip/Tooltip.cjs +1 -0
  232. package/dist/components/Tooltip/Tooltip.mjs +77 -0
  233. package/dist/components/Tooltip/Tooltip.module.scss.cjs +1 -0
  234. package/dist/components/Tooltip/Tooltip.module.scss.mjs +8 -0
  235. package/dist/components/TruncateComponent/TruncateComponent.cjs +1 -0
  236. package/dist/components/TruncateComponent/TruncateComponent.mjs +83 -0
  237. package/dist/components/Upload/UploadFile.cjs +1 -0
  238. package/dist/components/Upload/UploadFile.mjs +94 -0
  239. package/dist/components/Upload/UploadFile.module.scss.cjs +1 -0
  240. package/dist/components/Upload/UploadFile.module.scss.mjs +6 -0
  241. package/dist/components/Upload/UploadImage.cjs +12 -0
  242. package/dist/components/Upload/UploadImage.mjs +162 -0
  243. package/dist/components/Upload/UploadImage.module.scss.cjs +1 -0
  244. package/dist/components/Upload/UploadImage.module.scss.mjs +14 -0
  245. package/dist/components/Upload/UploadMultipleFile.cjs +1 -0
  246. package/dist/components/Upload/UploadMultipleFile.mjs +85 -0
  247. package/dist/components/Upload/UploadMultipleFile.module.scss.cjs +1 -0
  248. package/dist/components/Upload/UploadMultipleFile.module.scss.mjs +14 -0
  249. package/dist/components/Virtualization/ListVirtualization.cjs +1 -0
  250. package/dist/components/Virtualization/ListVirtualization.mjs +82 -0
  251. package/dist/components/Virtualization/TableVirtualization.cjs +1 -0
  252. package/dist/components/Virtualization/TableVirtualization.mjs +84 -0
  253. package/dist/config/bigNumber/index.cjs +1 -0
  254. package/dist/config/bigNumber/index.mjs +15 -0
  255. package/dist/config/components/borderRadius.cjs +1 -0
  256. package/dist/config/components/borderRadius.mjs +14 -0
  257. package/dist/config/components/font.cjs +1 -0
  258. package/dist/config/components/font.mjs +8 -0
  259. package/dist/config/components/gap.cjs +1 -0
  260. package/dist/config/components/gap.mjs +110 -0
  261. package/dist/config/components/tinymce.cjs +28 -0
  262. package/dist/config/components/tinymce.mjs +81 -0
  263. package/dist/config/components/typography.cjs +1 -0
  264. package/dist/config/components/typography.mjs +83 -0
  265. package/dist/config/resources/index.cjs +1 -0
  266. package/dist/config/resources/index.mjs +4 -0
  267. package/dist/config/tailwind/colors.cjs +1 -0
  268. package/dist/config/tailwind/colors.mjs +291 -0
  269. package/dist/config/tailwind/nativeScreen.cjs +1 -0
  270. package/dist/config/tailwind/nativeScreen.mjs +11 -0
  271. package/dist/config/tailwind/screen.cjs +1 -0
  272. package/dist/config/tailwind/screen.mjs +11 -0
  273. package/dist/config/tailwind/typography.cjs +1 -0
  274. package/dist/config/tailwind/typography.mjs +158 -0
  275. package/dist/hooks/useAsyncDebounce.cjs +1 -0
  276. package/dist/hooks/useAsyncDebounce.mjs +21 -0
  277. package/dist/hooks/useCombinedResizeObserver.cjs +1 -0
  278. package/dist/hooks/useCombinedResizeObserver.mjs +48 -0
  279. package/dist/hooks/useCountdown.cjs +1 -0
  280. package/dist/hooks/useCountdown.mjs +38 -0
  281. package/dist/hooks/useDeepCompareEffect.cjs +1 -0
  282. package/dist/hooks/useDeepCompareEffect.mjs +14 -0
  283. package/dist/hooks/useElementOrWindowMediaQuery.cjs +1 -0
  284. package/dist/hooks/useElementOrWindowMediaQuery.mjs +23 -0
  285. package/dist/hooks/useEventListener.cjs +1 -0
  286. package/dist/hooks/useEventListener.mjs +19 -0
  287. package/dist/hooks/useMasonry.cjs +1 -0
  288. package/dist/hooks/useMasonry.mjs +53 -0
  289. package/dist/hooks/useMergeRefs.cjs +1 -0
  290. package/dist/hooks/useMergeRefs.mjs +29 -0
  291. package/dist/hooks/useOtpInput.cjs +1 -0
  292. package/dist/hooks/useOtpInput.mjs +115 -0
  293. package/dist/hooks/useStateRef.cjs +1 -0
  294. package/dist/hooks/useStateRef.mjs +10 -0
  295. package/dist/index.cjs +1 -247
  296. package/dist/index.mjs +207 -51682
  297. package/dist/package.json.cjs +1 -0
  298. package/dist/package.json.d.ts +5 -7
  299. package/dist/package.json.mjs +7 -0
  300. package/dist/public/assets/icons/arrow-narrow-down.svg.cjs +1 -0
  301. package/dist/public/assets/icons/arrow-narrow-down.svg.mjs +4 -0
  302. package/dist/src/config/resources/index.d.ts +2 -0
  303. package/dist/utils/axiosBigNumber.cjs +1 -0
  304. package/dist/utils/axiosBigNumber.mjs +32 -0
  305. package/dist/utils/common.cjs +1 -0
  306. package/dist/utils/common.mjs +264 -0
  307. package/dist/utils/cookies.cjs +1 -0
  308. package/dist/utils/cookies.mjs +48 -0
  309. package/dist/utils/formatBigNumber.cjs +1 -0
  310. package/dist/utils/formatBigNumber.mjs +39 -0
  311. package/dist/utils/yup.cjs +1 -0
  312. package/dist/utils/yup.mjs +78 -0
  313. package/package.json +5 -7
  314. package/dist/assets/colors.css +0 -284
  315. package/dist/assets/fonts/Andale-Mono.ttf +0 -0
  316. package/dist/assets/fonts/Arial-Black.ttf +0 -0
  317. package/dist/assets/fonts/Arial-Regular.ttf +0 -0
  318. package/dist/assets/fonts/Book-Antiqua.ttf +0 -0
  319. package/dist/assets/fonts/Comic-Sans-MS.ttf +0 -0
  320. package/dist/assets/fonts/Courier-New.ttf +0 -0
  321. package/dist/assets/fonts/Georgia.ttf +0 -0
  322. package/dist/assets/fonts/Helvetica.ttf +0 -0
  323. package/dist/assets/fonts/Impact.ttf +0 -0
  324. package/dist/assets/fonts/Inter-Regular.ttf +0 -0
  325. package/dist/assets/fonts/Lato-100.ttf +0 -0
  326. package/dist/assets/fonts/Lato-200.ttf +0 -0
  327. package/dist/assets/fonts/Lato-300.ttf +0 -0
  328. package/dist/assets/fonts/Lato-400.ttf +0 -0
  329. package/dist/assets/fonts/Lato-500.ttf +0 -0
  330. package/dist/assets/fonts/Lato-600.ttf +0 -0
  331. package/dist/assets/fonts/Lato-700.ttf +0 -0
  332. package/dist/assets/fonts/PlusJakartaSans-Italic.ttf +0 -0
  333. package/dist/assets/fonts/PlusJakartaSans.ttf +0 -0
  334. package/dist/assets/fonts/Tahoma.ttf +0 -0
  335. package/dist/assets/fonts/Terminal.ttf +0 -0
  336. package/dist/assets/fonts/Times-New-Roman.ttf +0 -0
  337. package/dist/assets/fonts/Trebuchet-MS.ttf +0 -0
  338. package/dist/assets/fonts/Verdana.ttf +0 -0
  339. package/dist/assets/fonts/Webdings.ttf +0 -0
  340. package/dist/assets/fonts/Wingding.ttf +0 -0
  341. package/dist/assets/screen.css +0 -8
  342. package/dist/assets/typography.css +0 -236
  343. package/dist/tinymce/CHANGELOG.md +0 -3910
  344. package/dist/tinymce/js/tinymce/icons/default/icons.min.js +0 -1
  345. package/dist/tinymce/js/tinymce/langs/README.md +0 -3
  346. package/dist/tinymce/js/tinymce/license.md +0 -6
  347. package/dist/tinymce/js/tinymce/models/dom/model.min.js +0 -1
  348. package/dist/tinymce/js/tinymce/notices.txt +0 -21
  349. package/dist/tinymce/js/tinymce/plugins/accordion/plugin.min.js +0 -1
  350. package/dist/tinymce/js/tinymce/plugins/advlist/plugin.min.js +0 -1
  351. package/dist/tinymce/js/tinymce/plugins/anchor/plugin.min.js +0 -1
  352. package/dist/tinymce/js/tinymce/plugins/autolink/plugin.min.js +0 -1
  353. package/dist/tinymce/js/tinymce/plugins/autoresize/plugin.min.js +0 -1
  354. package/dist/tinymce/js/tinymce/plugins/autosave/plugin.min.js +0 -1
  355. package/dist/tinymce/js/tinymce/plugins/charmap/plugin.min.js +0 -1
  356. package/dist/tinymce/js/tinymce/plugins/code/plugin.min.js +0 -1
  357. package/dist/tinymce/js/tinymce/plugins/codesample/plugin.min.js +0 -9
  358. package/dist/tinymce/js/tinymce/plugins/directionality/plugin.min.js +0 -1
  359. package/dist/tinymce/js/tinymce/plugins/emoticons/js/emojiimages.js +0 -1
  360. package/dist/tinymce/js/tinymce/plugins/emoticons/js/emojiimages.min.js +0 -1
  361. package/dist/tinymce/js/tinymce/plugins/emoticons/js/emojis.js +0 -1
  362. package/dist/tinymce/js/tinymce/plugins/emoticons/js/emojis.min.js +0 -1
  363. package/dist/tinymce/js/tinymce/plugins/emoticons/plugin.min.js +0 -1
  364. package/dist/tinymce/js/tinymce/plugins/fullscreen/plugin.min.js +0 -1
  365. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ar.js +0 -93
  366. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/bg-BG.js +0 -93
  367. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +0 -93
  368. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ca.js +0 -93
  369. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/cs.js +0 -93
  370. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/da.js +0 -93
  371. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/de.js +0 -93
  372. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/el.js +0 -93
  373. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/en.js +0 -93
  374. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/es.js +0 -93
  375. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/eu.js +0 -93
  376. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fa.js +0 -93
  377. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fi.js +0 -93
  378. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fr-FR.js +0 -93
  379. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +0 -93
  380. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/he-IL.js +0 -93
  381. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/he_IL.js +0 -93
  382. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hi.js +0 -93
  383. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hr.js +0 -93
  384. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hu-HU.js +0 -93
  385. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +0 -93
  386. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/id.js +0 -93
  387. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/it.js +0 -93
  388. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ja.js +0 -93
  389. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/kk.js +0 -93
  390. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ko-KR.js +0 -93
  391. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +0 -93
  392. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ms.js +0 -93
  393. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nb-NO.js +0 -93
  394. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +0 -93
  395. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/nl.js +0 -93
  396. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pl.js +0 -93
  397. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt-BR.js +0 -93
  398. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt-PT.js +0 -93
  399. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +0 -93
  400. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +0 -93
  401. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ro.js +0 -93
  402. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/ru.js +0 -93
  403. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sk.js +0 -93
  404. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sl-SI.js +0 -93
  405. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +0 -93
  406. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sv-SE.js +0 -93
  407. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +0 -93
  408. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/th-TH.js +0 -93
  409. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/th_TH.js +0 -93
  410. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/tr.js +0 -93
  411. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/uk.js +0 -93
  412. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/vi.js +0 -93
  413. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh-CN.js +0 -87
  414. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh-TW.js +0 -93
  415. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +0 -87
  416. package/dist/tinymce/js/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +0 -93
  417. package/dist/tinymce/js/tinymce/plugins/help/plugin.min.js +0 -1
  418. package/dist/tinymce/js/tinymce/plugins/image/plugin.min.js +0 -1
  419. package/dist/tinymce/js/tinymce/plugins/importcss/plugin.min.js +0 -1
  420. package/dist/tinymce/js/tinymce/plugins/insertdatetime/plugin.min.js +0 -1
  421. package/dist/tinymce/js/tinymce/plugins/link/plugin.min.js +0 -1
  422. package/dist/tinymce/js/tinymce/plugins/lists/plugin.min.js +0 -1
  423. package/dist/tinymce/js/tinymce/plugins/media/plugin.min.js +0 -1
  424. package/dist/tinymce/js/tinymce/plugins/nonbreaking/plugin.min.js +0 -1
  425. package/dist/tinymce/js/tinymce/plugins/pagebreak/plugin.min.js +0 -1
  426. package/dist/tinymce/js/tinymce/plugins/preview/plugin.min.js +0 -1
  427. package/dist/tinymce/js/tinymce/plugins/quickbars/plugin.min.js +0 -1
  428. package/dist/tinymce/js/tinymce/plugins/save/plugin.min.js +0 -1
  429. package/dist/tinymce/js/tinymce/plugins/searchreplace/plugin.min.js +0 -1
  430. package/dist/tinymce/js/tinymce/plugins/table/plugin.min.js +0 -1
  431. package/dist/tinymce/js/tinymce/plugins/visualblocks/plugin.min.js +0 -1
  432. package/dist/tinymce/js/tinymce/plugins/visualchars/plugin.min.js +0 -1
  433. package/dist/tinymce/js/tinymce/plugins/wordcount/plugin.min.js +0 -1
  434. package/dist/tinymce/js/tinymce/skins/content/dark/content.js +0 -10
  435. package/dist/tinymce/js/tinymce/skins/content/dark/content.min.css +0 -10
  436. package/dist/tinymce/js/tinymce/skins/content/default/content.js +0 -10
  437. package/dist/tinymce/js/tinymce/skins/content/default/content.min.css +0 -10
  438. package/dist/tinymce/js/tinymce/skins/content/document/content.js +0 -10
  439. package/dist/tinymce/js/tinymce/skins/content/document/content.min.css +0 -10
  440. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.js +0 -10
  441. package/dist/tinymce/js/tinymce/skins/content/tinymce-5/content.min.css +0 -10
  442. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.js +0 -10
  443. package/dist/tinymce/js/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -10
  444. package/dist/tinymce/js/tinymce/skins/content/writer/content.js +0 -10
  445. package/dist/tinymce/js/tinymce/skins/content/writer/content.min.css +0 -10
  446. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.js +0 -10
  447. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.inline.min.css +0 -10
  448. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.js +0 -10
  449. package/dist/tinymce/js/tinymce/skins/ui/oxide/content.min.css +0 -10
  450. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.js +0 -1
  451. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.min.css +0 -1
  452. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -1
  453. package/dist/tinymce/js/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  454. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.js +0 -10
  455. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -10
  456. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.js +0 -10
  457. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/content.min.css +0 -10
  458. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.js +0 -1
  459. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  460. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -1
  461. package/dist/tinymce/js/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  462. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.js +0 -10
  463. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -10
  464. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.js +0 -10
  465. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/content.min.css +0 -10
  466. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.js +0 -1
  467. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.min.css +0 -1
  468. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +0 -1
  469. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
  470. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.js +0 -10
  471. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -10
  472. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.js +0 -10
  473. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -10
  474. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.js +0 -1
  475. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -1
  476. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +0 -1
  477. package/dist/tinymce/js/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
  478. package/dist/tinymce/js/tinymce/themes/silver/theme.min.js +0 -1
  479. package/dist/tinymce/js/tinymce/tinymce.d.ts +0 -3399
  480. package/dist/tinymce/js/tinymce/tinymce.min.js +0 -10
@@ -0,0 +1,94 @@
1
+ import { jsxs as j, Fragment as I, jsx as n } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import M from "../Input/InputReguler.mjs";
4
+ import E from "./UploadFile.module.scss.mjs";
5
+ const z = () => /* @__PURE__ */ n("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n(
6
+ "path",
7
+ {
8
+ fillRule: "evenodd",
9
+ clipRule: "evenodd",
10
+ d: "M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z",
11
+ fill: "#212121"
12
+ }
13
+ ) }), D = () => /* @__PURE__ */ n("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ n(
14
+ "path",
15
+ {
16
+ d: "M2 11.3334V4.66671C2 4.31309 2.14048 3.97395 2.39052 3.7239C2.64057 3.47385 2.97971 3.33337 3.33333 3.33337H7.33333L8.66667 4.66671H12.6667C13.0203 4.66671 13.3594 4.80718 13.6095 5.05723C13.8595 5.30728 14 5.64642 14 6.00004V11.3334C14 11.687 13.8595 12.0261 13.6095 12.2762C13.3594 12.5262 13.0203 12.6667 12.6667 12.6667H3.33333C2.97971 12.6667 2.64057 12.5262 2.39052 12.2762C2.14048 12.0261 2 11.687 2 11.3334Z",
17
+ stroke: "#9E9E9E",
18
+ strokeWidth: "2",
19
+ strokeLinecap: "round",
20
+ strokeLinejoin: "round"
21
+ }
22
+ ) }), H = (d) => {
23
+ const r = m.useRef(null), {
24
+ fileName: s,
25
+ onChange: u,
26
+ maxFile: g,
27
+ maxSize: a = 2,
28
+ validateFile: c,
29
+ error: C,
30
+ label: k,
31
+ inputProps: f,
32
+ priorityError: v = "external",
33
+ eventError: o
34
+ } = d, i = c || ["image/png", "image/jpeg", "image/jpg"], [h, w] = m.useState(""), x = {
35
+ internal: h || C,
36
+ external: C || h
37
+ }, L = (e) => {
38
+ if (e != null && e.length) {
39
+ const t = e[0], F = t.size / 1024 / 1024;
40
+ let l = "";
41
+ if (i.some((b) => {
42
+ var p;
43
+ return (p = e[0].type) == null ? void 0 : p.includes(b);
44
+ }) ? F > a ? l = `${e.length > 1 ? "Jumlah u" : "U"}kuran berkas tidak boleh melebihi ${a}MB.` : u(t) : l = "Berkas tidak didukung, silahkan pilih file kembali.", w(l), o == null || o(l), !(r != null && r.current)) return;
45
+ r.current.value = "";
46
+ }
47
+ }, y = (e) => {
48
+ var t;
49
+ e.preventDefault(), r != null && r.current && ((t = r.current) == null || t.click());
50
+ }, B = (e) => {
51
+ e.preventDefault(), r != null && r.current && (u(null), r.current.value = "");
52
+ };
53
+ return /* @__PURE__ */ j(I, { children: [
54
+ /* @__PURE__ */ n(
55
+ "input",
56
+ {
57
+ accept: i == null ? void 0 : i.join(", "),
58
+ ref: r,
59
+ hidden: !0,
60
+ type: "file",
61
+ max: g,
62
+ onChange: (e) => {
63
+ L(e.target.files);
64
+ }
65
+ }
66
+ ),
67
+ /* @__PURE__ */ n(
68
+ M,
69
+ {
70
+ sizeInput: "medium",
71
+ placeholder: "Pilih Berkas",
72
+ label: k,
73
+ value: s,
74
+ readOnly: !0,
75
+ onClick: (e) => y(e),
76
+ startIcon: /* @__PURE__ */ n(D, {}),
77
+ endIcon: s && /* @__PURE__ */ n(
78
+ "div",
79
+ {
80
+ className: E["button-remove"],
81
+ onClick: (e) => B(e),
82
+ children: /* @__PURE__ */ n(z, {})
83
+ }
84
+ ),
85
+ error: x[v],
86
+ ...f
87
+ }
88
+ )
89
+ ] });
90
+ };
91
+ H.displayName = "UploadFile";
92
+ export {
93
+ H as default
94
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"button-remove":"_button-remove_lgwgf_1"};exports.default=e;
@@ -0,0 +1,6 @@
1
+ const t = {
2
+ "button-remove": "_button-remove_lgwgf_1"
3
+ };
4
+ export {
5
+ t as default
6
+ };
@@ -0,0 +1,12 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),p=require("react"),k=require("../Button/Button.cjs"),r=require("./UploadImage.module.scss.cjs"),y=({className:s})=>t.jsx("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",className:`iru-h-5 iru-w-5 iru-text-red-600 ${s??""}`,fill:"currentColor",children:t.jsx("g",{id:"x",children:t.jsx("path",{id:"Vector",fillRule:"evenodd",clipRule:"evenodd",d:`M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
2
+ 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 \r
3
+ 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 \r
4
+ 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 \r
5
+ 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 \r
6
+ 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 \r
7
+ 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 \r
8
+ 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 \r
9
+ 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 \r
10
+ 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`})})}),B=({className:s})=>t.jsx("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:`iru-h-5 iru-w-5 ${s??""}`,children:t.jsx("g",{id:"upload",children:t.jsx("path",{id:"Vector",d:`M3.83337 13.3333V14.1666C3.83337 14.8297 4.09677 15.4656 4.56561 15.9344C5.03445 16.4033 5.67033 \r
11
+ 16.6666 6.33337 16.6666H14.6667C15.3297 16.6666 15.9656 16.4033 16.4345 15.9344C16.9033 15.4656 17.1667 \r
12
+ 14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,stroke:"#1976D2",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})}),R=({onChange:s,valueUrl:i,validateFile:h,validateFileDesc:D="Max 2MB (.jpg, .jpeg, .png, .svg)",maxSize:m=2,icon:L,desc:c,classNameContainer:w,classNameImage:u,classNameAction:M,id:l})=>{const n=p.useRef(null),a=h||["image/png","image/jpeg","image/jpg"],[o,x]=p.useState(""),[j,d]=p.useState(""),C=e=>{if(e!=null&&e.length){const g=e[0],N=g.size/1024/1024;if(!a.some(f=>{var $;return($=e[0].type)==null?void 0:$.includes(f)}))d("Berkas tidak didukung, silahkan pilih file kembali.");else if(N>m){const f=`${e.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${m}MB.`;d(f)}else{if(!(n!=null&&n.current))return;d(""),s(g),x(URL.createObjectURL(g)),n.current.value=""}}},v=e=>{e.preventDefault(),C(e.dataTransfer.files)},b=e=>{e.preventDefault(),n!=null&&n.current&&(typeof s=="function"&&s(null),x(""),n.current.value="")};return t.jsxs("div",{className:`${r.default.container} ${w}`,children:[t.jsx("input",{accept:a==null?void 0:a.join(", "),ref:n,hidden:!0,type:"file",multiple:!1,onChange:e=>{e.target.files&&C(e.target.files)}}),o||i?t.jsx("div",{id:`${l}-exist`,className:`${r.default["image-content"]} ${u}`,onDrop:v,onDragOver:e=>e.preventDefault(),onDragLeave:e=>e.preventDefault(),children:t.jsx("img",{src:o||i,alt:"upload-image",className:`${r.default.image} ${u}`})}):t.jsxs("div",{id:l,className:`${r.default["image-content"]} ${u}`,onDrop:v,onDragOver:e=>e.preventDefault(),onDragLeave:e=>e.preventDefault(),children:[L,t.jsx("div",{className:r.default["text-desc"],children:typeof c=="function"?c():c})]}),t.jsxs("div",{className:r.default["action-content"],children:[t.jsxs("div",{className:`${r.default["button-content"]} ${M}`,children:[(o||i)&&t.jsx(k.default,{id:`${l}-delete-img`,variants:"tertiary-red-600",size:"xs",startIcon:t.jsx(y,{}),onClick:e=>b(e),children:"Hapus"}),t.jsxs(k.default,{id:`${l}-change-img`,variants:"tertiary-blue-700",size:"xs",onClick:()=>{var e;return(e=n.current)==null?void 0:e.click()},startIcon:t.jsx(B,{}),children:[o||i?"Ganti":"Pilih"," Gambar"]})]}),t.jsx("p",{className:r.default["text-desc"],children:D}),j&&t.jsx("p",{className:r.default["text-error"],children:j})]})]})};exports.default=R;
@@ -0,0 +1,162 @@
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
+ import h from "react";
3
+ import x from "../Button/Button.mjs";
4
+ import t from "./UploadImage.module.scss.mjs";
5
+ const B = ({ className: i }) => /* @__PURE__ */ r(
6
+ "svg",
7
+ {
8
+ viewBox: "0 0 20 20",
9
+ xmlns: "http://www.w3.org/2000/svg",
10
+ className: `iru-h-5 iru-w-5 iru-text-red-600 ${i ?? ""}`,
11
+ fill: "currentColor",
12
+ children: /* @__PURE__ */ r("g", { id: "x", children: /* @__PURE__ */ r(
13
+ "path",
14
+ {
15
+ id: "Vector",
16
+ fillRule: "evenodd",
17
+ clipRule: "evenodd",
18
+ d: `M6.19544 6.19126C6.32045 6.06628 6.48999 5.99607 6.66677 5.99607C6.84354 5.99607 7.01308 6.06628 7.1381 \r
19
+ 6.19126L10.0001 9.05326L12.8621 6.19126C12.9236 6.12758 12.9972 6.0768 13.0785 6.04186C13.1598 6.00692 13.2473 \r
20
+ 5.98853 13.3358 5.98776C13.4244 5.98699 13.5121 6.00386 13.5941 6.03738C13.676 6.0709 13.7504 6.1204 13.813 \r
21
+ 6.18299C13.8756 6.24559 13.9251 6.32002 13.9587 6.40195C13.9922 6.48389 14.009 6.57167 14.0083 6.66019C14.0075 \r
22
+ 6.74871 13.9891 6.83619 13.9542 6.91753C13.9192 6.99886 13.8684 7.07243 13.8048 7.13392L10.9428 9.99592L13.8048 \r
23
+ 12.8579C13.9262 12.9837 13.9934 13.1521 13.9919 13.3269C13.9904 13.5017 13.9203 13.6689 13.7966 13.7925C13.673 \r
24
+ 13.9161 13.5058 13.9862 13.331 13.9877C13.1562 13.9892 12.9878 13.922 12.8621 13.8006L10.0001 10.9386L7.1381 \r
25
+ 13.8006C7.01237 13.922 6.84397 13.9892 6.66917 13.9877C6.49437 13.9862 6.32716 13.9161 6.20356 13.7925C6.07995 \r
26
+ 13.6689 6.00984 13.5017 6.00832 13.3269C6.0068 13.1521 6.074 12.9837 6.19544 12.8579L9.05744 9.99592L6.19544 \r
27
+ 7.13392C6.07045 7.00891 6.00024 6.83937 6.00024 6.66259C6.00024 6.48581 6.07045 6.31628 6.19544 6.19126Z`
28
+ }
29
+ ) })
30
+ }
31
+ ), R = ({ className: i }) => /* @__PURE__ */ r(
32
+ "svg",
33
+ {
34
+ viewBox: "0 0 20 20",
35
+ fill: "none",
36
+ xmlns: "http://www.w3.org/2000/svg",
37
+ className: `iru-h-5 iru-w-5 ${i ?? ""}`,
38
+ children: /* @__PURE__ */ r("g", { id: "upload", children: /* @__PURE__ */ r(
39
+ "path",
40
+ {
41
+ id: "Vector",
42
+ d: `M3.83337 13.3333V14.1666C3.83337 14.8297 4.09677 15.4656 4.56561 15.9344C5.03445 16.4033 5.67033 \r
43
+ 16.6666 6.33337 16.6666H14.6667C15.3297 16.6666 15.9656 16.4033 16.4345 15.9344C16.9033 15.4656 17.1667 \r
44
+ 14.8297 17.1667 14.1666V13.3333M13.8334 6.66665L10.5 3.33331M10.5 3.33331L7.16671 6.66665M10.5 3.33331V13.3333`,
45
+ stroke: "#1976D2",
46
+ strokeWidth: "1.5",
47
+ strokeLinecap: "round",
48
+ strokeLinejoin: "round"
49
+ }
50
+ ) })
51
+ }
52
+ ), O = ({
53
+ onChange: i,
54
+ valueUrl: l,
55
+ validateFile: f,
56
+ validateFileDesc: w = "Max 2MB (.jpg, .jpeg, .png, .svg)",
57
+ maxSize: C = 2,
58
+ icon: M,
59
+ desc: u,
60
+ classNameContainer: j,
61
+ classNameImage: d,
62
+ classNameAction: N,
63
+ id: o
64
+ }) => {
65
+ const n = h.useRef(null), a = f || ["image/png", "image/jpeg", "image/jpg"], [c, v] = h.useState(""), [$, p] = h.useState(""), k = (e) => {
66
+ if (e != null && e.length) {
67
+ const g = e[0], y = g.size / 1024 / 1024;
68
+ if (!a.some((m) => {
69
+ var L;
70
+ return (L = e[0].type) == null ? void 0 : L.includes(m);
71
+ }))
72
+ p("Berkas tidak didukung, silahkan pilih file kembali.");
73
+ else if (y > C) {
74
+ const m = `${e.length > 1 ? "Jumlah u" : "U"}kuran berkas tidak boleh melebihi ${C}MB.`;
75
+ p(m);
76
+ } else {
77
+ if (!(n != null && n.current)) return;
78
+ p(""), i(g), v(URL.createObjectURL(g)), n.current.value = "";
79
+ }
80
+ }
81
+ }, D = (e) => {
82
+ e.preventDefault(), k(e.dataTransfer.files);
83
+ }, b = (e) => {
84
+ e.preventDefault(), n != null && n.current && (typeof i == "function" && i(null), v(""), n.current.value = "");
85
+ };
86
+ return /* @__PURE__ */ s("div", { className: `${t.container} ${j}`, children: [
87
+ /* @__PURE__ */ r(
88
+ "input",
89
+ {
90
+ accept: a == null ? void 0 : a.join(", "),
91
+ ref: n,
92
+ hidden: !0,
93
+ type: "file",
94
+ multiple: !1,
95
+ onChange: (e) => {
96
+ e.target.files && k(e.target.files);
97
+ }
98
+ }
99
+ ),
100
+ c || l ? /* @__PURE__ */ r(
101
+ "div",
102
+ {
103
+ id: `${o}-exist`,
104
+ className: `${t["image-content"]} ${d}`,
105
+ onDrop: D,
106
+ onDragOver: (e) => e.preventDefault(),
107
+ onDragLeave: (e) => e.preventDefault(),
108
+ children: /* @__PURE__ */ r("img", { src: c || l, alt: "upload-image", className: `${t.image} ${d}` })
109
+ }
110
+ ) : /* @__PURE__ */ s(
111
+ "div",
112
+ {
113
+ id: o,
114
+ className: `${t["image-content"]} ${d}`,
115
+ onDrop: D,
116
+ onDragOver: (e) => e.preventDefault(),
117
+ onDragLeave: (e) => e.preventDefault(),
118
+ children: [
119
+ M,
120
+ /* @__PURE__ */ r("div", { className: t["text-desc"], children: typeof u == "function" ? u() : u })
121
+ ]
122
+ }
123
+ ),
124
+ /* @__PURE__ */ s("div", { className: t["action-content"], children: [
125
+ /* @__PURE__ */ s("div", { className: `${t["button-content"]} ${N}`, children: [
126
+ (c || l) && /* @__PURE__ */ r(
127
+ x,
128
+ {
129
+ id: `${o}-delete-img`,
130
+ variants: "tertiary-red-600",
131
+ size: "xs",
132
+ startIcon: /* @__PURE__ */ r(B, {}),
133
+ onClick: (e) => b(e),
134
+ children: "Hapus"
135
+ }
136
+ ),
137
+ /* @__PURE__ */ s(
138
+ x,
139
+ {
140
+ id: `${o}-change-img`,
141
+ variants: "tertiary-blue-700",
142
+ size: "xs",
143
+ onClick: () => {
144
+ var e;
145
+ return (e = n.current) == null ? void 0 : e.click();
146
+ },
147
+ startIcon: /* @__PURE__ */ r(R, {}),
148
+ children: [
149
+ c || l ? "Ganti" : "Pilih",
150
+ " Gambar"
151
+ ]
152
+ }
153
+ )
154
+ ] }),
155
+ /* @__PURE__ */ r("p", { className: t["text-desc"], children: w }),
156
+ $ && /* @__PURE__ */ r("p", { className: t["text-error"], children: $ })
157
+ ] })
158
+ ] });
159
+ };
160
+ export {
161
+ O as default
162
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_container_ifvu2_1",e="_image_ifvu2_8",n={container:t,"image-content":"_image-content_ifvu2_8",image:e,"text-desc":"_text-desc_ifvu2_25","action-content":"_action-content_ifvu2_43","button-content":"_button-content_ifvu2_52","text-error":"_text-error_ifvu2_67"};exports.container=t;exports.default=n;exports.image=e;
@@ -0,0 +1,14 @@
1
+ const t = "_container_ifvu2_1", e = "_image_ifvu2_8", n = {
2
+ container: t,
3
+ "image-content": "_image-content_ifvu2_8",
4
+ image: e,
5
+ "text-desc": "_text-desc_ifvu2_25",
6
+ "action-content": "_action-content_ifvu2_43",
7
+ "button-content": "_button-content_ifvu2_52",
8
+ "text-error": "_text-error_ifvu2_67"
9
+ };
10
+ export {
11
+ t as container,
12
+ n as default,
13
+ e as image
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),y=require("react"),A=require("../Button/Button.cjs"),a=require("./UploadMultipleFile.module.scss.cjs"),I=require("../Input/InputNative.cjs"),b=require("../../utils/common.cjs"),J=({value:i,validateFile:m,classNameContainer:M,classNameButton:F,textUpload:q="Unggah Lampiran",buttonProps:$={},maxFile:d=1,maxSize:g=1,error:h,removeElement:r,onChange:j,handlerDownload:N,priorityError:B="external",eventError:o,locationRemoveElement:k="right",idItemAttachment:C})=>{const U={variants:"ghost-laba-blue-10",size:"small"},n=y.useRef(null),c=m||["image/png","image/jpeg","image/jpg"],[x,P]=y.useState(""),S={internal:x||h,external:h||x},_=e=>{if(e!=null&&e.length){const t=Array.from(e).slice(0,d),l=t==null?void 0:t.filter(p=>!c.includes(p.type)),z=(t==null?void 0:t.reduce((p,T)=>p+T.size,0))/1024/1024;let u="";if(l.length>0?u="Berkas tidak didukung, silahkan pilih file kembali.":z>g?u=`${e.length>1?"Jumlah u":"U"}kuran berkas tidak boleh melebihi ${g}MB.`:typeof j=="function"&&j(t),P(u),o==null||o(u),!(n!=null&&n.current))return;n.current.value=""}},f=e=>{var t;e.preventDefault(),n!=null&&n.current&&((t=n.current)==null||t.click())};return s.jsxs("div",{className:`${a.default.container} ${M??""}`,children:[s.jsx(A.default,{...U,...$,className:F??"",onClick:e=>f(e),children:q}),s.jsx(I.default,{accept:c==null?void 0:c.join(", "),ref:n,type:"file",onChange:e=>_(e.target.files),error:S[B],multiple:d>1,hidden:!0}),s.jsx("div",{className:a.default.files,children:i==null?void 0:i.map((e,t)=>s.jsxs("div",{id:`${C}-${t}`,className:a.default.file,onClick:l=>{l.stopPropagation(),typeof N=="function"&&N(e)},children:[typeof r=="function"&&k==="left"&&s.jsx(s.Fragment,{children:r(e,t)}),s.jsxs("div",{className:a.default["file-name-wrapper"],children:[s.jsx("span",{className:a.default["file-name"],children:b.parseFileName((e==null?void 0:e.originalName)??(e==null?void 0:e.name)??(e==null?void 0:e.fileName)??"").filename}),s.jsx("span",{className:a.default["file-extension"],children:b.parseFileName((e==null?void 0:e.originalName)??(e==null?void 0:e.name)??(e==null?void 0:e.fileName)??"").extension})]}),typeof r=="function"&&k==="right"&&s.jsx(s.Fragment,{children:r(e,t)})]},t))})]})};exports.default=J;
@@ -0,0 +1,85 @@
1
+ import { jsxs as h, jsx as r, Fragment as j } from "react/jsx-runtime";
2
+ import B from "react";
3
+ import w from "../Button/Button.mjs";
4
+ import a from "./UploadMultipleFile.module.scss.mjs";
5
+ import D from "../Input/InputNative.mjs";
6
+ import { parseFileName as M } from "../../utils/common.mjs";
7
+ const W = ({
8
+ value: o,
9
+ validateFile: g,
10
+ classNameContainer: C,
11
+ classNameButton: F,
12
+ textUpload: U = "Unggah Lampiran",
13
+ buttonProps: x = {},
14
+ maxFile: l = 1,
15
+ maxSize: d = 1,
16
+ error: k,
17
+ removeElement: e,
18
+ onChange: N,
19
+ handlerDownload: y,
20
+ priorityError: z = "external",
21
+ eventError: p,
22
+ locationRemoveElement: b = "right",
23
+ idItemAttachment: P
24
+ }) => {
25
+ const A = { variants: "ghost-laba-blue-10", size: "small" }, s = B.useRef(null), c = g || ["image/png", "image/jpeg", "image/jpg"], [$, I] = B.useState(""), J = {
26
+ internal: $ || k,
27
+ external: k || $
28
+ }, L = (t) => {
29
+ if (t != null && t.length) {
30
+ const n = Array.from(t).slice(0, l), m = n == null ? void 0 : n.filter((u) => !c.includes(u.type)), T = (n == null ? void 0 : n.reduce((u, q) => u + q.size, 0)) / 1024 / 1024;
31
+ let i = "";
32
+ if (m.length > 0 ? i = "Berkas tidak didukung, silahkan pilih file kembali." : T > d ? i = `${t.length > 1 ? "Jumlah u" : "U"}kuran berkas tidak boleh melebihi ${d}MB.` : typeof N == "function" && N(n), I(i), p == null || p(i), !(s != null && s.current)) return;
33
+ s.current.value = "";
34
+ }
35
+ }, S = (t) => {
36
+ var n;
37
+ t.preventDefault(), s != null && s.current && ((n = s.current) == null || n.click());
38
+ };
39
+ return /* @__PURE__ */ h("div", { className: `${a.container} ${C ?? ""}`, children: [
40
+ /* @__PURE__ */ r(
41
+ w,
42
+ {
43
+ ...A,
44
+ ...x,
45
+ className: F ?? "",
46
+ onClick: (t) => S(t),
47
+ children: U
48
+ }
49
+ ),
50
+ /* @__PURE__ */ r(
51
+ D,
52
+ {
53
+ accept: c == null ? void 0 : c.join(", "),
54
+ ref: s,
55
+ type: "file",
56
+ onChange: (t) => L(t.target.files),
57
+ error: J[z],
58
+ multiple: l > 1,
59
+ hidden: !0
60
+ }
61
+ ),
62
+ /* @__PURE__ */ r("div", { className: a.files, children: o == null ? void 0 : o.map((t, n) => /* @__PURE__ */ h(
63
+ "div",
64
+ {
65
+ id: `${P}-${n}`,
66
+ className: a.file,
67
+ onClick: (m) => {
68
+ m.stopPropagation(), typeof y == "function" && y(t);
69
+ },
70
+ children: [
71
+ typeof e == "function" && b === "left" && /* @__PURE__ */ r(j, { children: e(t, n) }),
72
+ /* @__PURE__ */ h("div", { className: a["file-name-wrapper"], children: [
73
+ /* @__PURE__ */ r("span", { className: a["file-name"], children: M((t == null ? void 0 : t.originalName) ?? (t == null ? void 0 : t.name) ?? (t == null ? void 0 : t.fileName) ?? "").filename }),
74
+ /* @__PURE__ */ r("span", { className: a["file-extension"], children: M((t == null ? void 0 : t.originalName) ?? (t == null ? void 0 : t.name) ?? (t == null ? void 0 : t.fileName) ?? "").extension })
75
+ ] }),
76
+ typeof e == "function" && b === "right" && /* @__PURE__ */ r(j, { children: e(t, n) })
77
+ ]
78
+ },
79
+ n
80
+ )) })
81
+ ] });
82
+ };
83
+ export {
84
+ W as default
85
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_container_6w9ag_1",i="_files_6w9ag_6",n="_file_6w9ag_6",l={container:e,files:i,file:n,"file-name-wrapper":"_file-name-wrapper_6w9ag_22","file-name":"_file-name_6w9ag_22","file-extension":"_file-extension_6w9ag_29"};exports.container=e;exports.default=l;exports.file=n;exports.files=i;
@@ -0,0 +1,14 @@
1
+ const e = "_container_6w9ag_1", n = "_files_6w9ag_6", _ = "_file_6w9ag_6", a = {
2
+ container: e,
3
+ files: n,
4
+ file: _,
5
+ "file-name-wrapper": "_file-name-wrapper_6w9ag_22",
6
+ "file-name": "_file-name_6w9ag_22",
7
+ "file-extension": "_file-extension_6w9ag_29"
8
+ };
9
+ export {
10
+ e as container,
11
+ a as default,
12
+ _ as file,
13
+ n as files
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),o=require("react"),N=require("react-virtuoso"),W=({children:i,...r})=>n.jsx(n.Fragment,{children:i(r)}),_=({children:i,...r})=>n.jsx(n.Fragment,{children:o.isValidElement(i)&&n.jsx(n.Fragment,{children:o.cloneElement(i,r)})}),y=o.forwardRef((i,r)=>{const{classNameContainer:v="",computeItemKey:H=()=>"",itemSize:E=()=>0,totalCount:s=0,typeHight:t="min-max",minHeightItem:z=0,maxHeightTable:l=0,minLengthItem:L=0,itemContent:j,typeCalculateItemSize:R="manual",itemSizeNames:u=[],overscan:d=null,component:S={},idContainer:g="",triggerCalCulateContainer:V="",accumulationHeight:I=0,delayTriggerCalculateHeight:T=0,increaseViewportBy:b=()=>0,context:B={},endReached:q,increaseTotalCount:h=1}=i,[a,f]=o.useState(0),F=()=>{if(t==="min-max"){const e=(s+h)*z;return{height:s>L?l:a>e?a:e}}return t==="container"?{height:a}:{}},$=e=>{var p;const m=e.getAttribute("data-index");let C=((p=e.getBoundingClientRect())==null?void 0:p.height)||0;return u==null||u.forEach(M=>{var w,x;C+=((x=(w=document.querySelector(`[${M}="${m}"]`))==null?void 0:w.getBoundingClientRect())==null?void 0:x.height)??0}),C},c=()=>{var e;if(g&&t==="container"){const m=((e=document==null?void 0:document.getElementById(g))==null?void 0:e.offsetHeight)??0;f(m-I)}};return o.useEffect(()=>{const e=setTimeout(c,T);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(e),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[t,V]),n.jsx("div",{className:`iru-w-full ${v}`,children:n.jsx(N.Virtuoso,{context:B,ref:r,overscan:typeof d=="function"?d(t==="container"?a:l):t==="container"?a:l,totalListHeightChanged:e=>t==="min-max"?f(e):null,style:F(),totalCount:s,computeItemKey:H,itemSize:o.useCallback(e=>R==="manual"?E(e):$(e),[]),itemContent:(...e)=>j(W,...e),components:{Item:_,...S},endReached:q,increaseViewportBy:b(t==="container"?a:l)})})});y.displayName="ListVirtualization";exports.default=y;
@@ -0,0 +1,82 @@
1
+ import { jsx as r, Fragment as u } from "react/jsx-runtime";
2
+ import { forwardRef as k, useState as q, useEffect as A, useCallback as F, isValidElement as K, cloneElement as D } from "react";
3
+ import { Virtuoso as G } from "react-virtuoso";
4
+ const J = ({ children: n, ...o }) => /* @__PURE__ */ r(u, { children: n(o) }), M = ({ children: n, ...o }) => /* @__PURE__ */ r(u, { children: K(n) && /* @__PURE__ */ r(u, { children: D(n, o) }) }), O = k((n, o) => {
5
+ const {
6
+ classNameContainer: H = "",
7
+ computeItemKey: v = () => "",
8
+ itemSize: x = () => 0,
9
+ totalCount: c = 0,
10
+ typeHight: t = "min-max",
11
+ minHeightItem: E = 0,
12
+ maxHeightTable: l = 0,
13
+ minLengthItem: z = 0,
14
+ itemContent: L,
15
+ typeCalculateItemSize: I = "manual",
16
+ itemSizeNames: s = [],
17
+ overscan: d = null,
18
+ component: V = {},
19
+ idContainer: h = "",
20
+ triggerCalCulateContainer: B = "",
21
+ accumulationHeight: R = 0,
22
+ delayTriggerCalculateHeight: S = 0,
23
+ increaseViewportBy: T = () => 0,
24
+ context: b = {},
25
+ endReached: $,
26
+ increaseTotalCount: g = 1
27
+ } = n, [i, f] = q(0), N = () => {
28
+ if (t === "min-max") {
29
+ const e = (c + g) * E;
30
+ return { height: c > z ? l : i > e ? i : e };
31
+ }
32
+ return t === "container" ? { height: i } : {};
33
+ }, W = (e) => {
34
+ var C;
35
+ const m = e.getAttribute("data-index");
36
+ let p = ((C = e.getBoundingClientRect()) == null ? void 0 : C.height) || 0;
37
+ return s == null || s.forEach((j) => {
38
+ var w, y;
39
+ p += ((y = (w = document.querySelector(`[${j}="${m}"]`)) == null ? void 0 : w.getBoundingClientRect()) == null ? void 0 : y.height) ?? 0;
40
+ }), p;
41
+ }, a = () => {
42
+ var e;
43
+ if (h && t === "container") {
44
+ const m = ((e = document == null ? void 0 : document.getElementById(h)) == null ? void 0 : e.offsetHeight) ?? 0;
45
+ f(m - R);
46
+ }
47
+ };
48
+ return A(() => {
49
+ const e = setTimeout(a, S);
50
+ return window == null || window.addEventListener("resize", a), window == null || window.addEventListener("load", a), () => {
51
+ clearTimeout(e), window == null || window.removeEventListener("resize", a), window == null || window.removeEventListener("load", a);
52
+ };
53
+ }, [t, B]), /* @__PURE__ */ r("div", { className: `iru-w-full ${H}`, children: /* @__PURE__ */ r(
54
+ G,
55
+ {
56
+ context: b,
57
+ ref: o,
58
+ overscan: typeof d == "function" ? d(t === "container" ? i : l) : t === "container" ? i : l,
59
+ totalListHeightChanged: (e) => t === "min-max" ? f(e) : null,
60
+ style: N(),
61
+ totalCount: c,
62
+ computeItemKey: v,
63
+ itemSize: F(
64
+ (e) => I === "manual" ? x(e) : W(e),
65
+ []
66
+ ),
67
+ itemContent: (...e) => L(J, ...e),
68
+ components: {
69
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
70
+ // @ts-ignore
71
+ Item: M,
72
+ ...V
73
+ },
74
+ endReached: $,
75
+ increaseViewportBy: T(t === "container" ? i : l)
76
+ }
77
+ ) });
78
+ });
79
+ O.displayName = "ListVirtualization";
80
+ export {
81
+ O as default
82
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react/jsx-runtime"),o=require("react"),W=require("react-virtuoso"),_=({children:i,...r})=>n.jsx(n.Fragment,{children:i(r)}),k=({children:i,...r})=>n.jsx(n.Fragment,{children:o.isValidElement(i)&&n.jsx(n.Fragment,{children:o.cloneElement(i,r)})}),y=o.forwardRef((i,r)=>{const{classNameContainer:H="",computeItemKey:v=()=>"",itemSize:T=()=>0,totalCount:l=0,typeHight:t="min-max",minHeightItem:b=0,maxHeightTable:s=0,minLengthItem:E=0,fixedHeaderContent:z,itemContent:R,typeCalculateItemSize:j="manual",itemSizeNames:u=[],overscan:d=null,component:S={},idContainer:g="",triggerCalCulateContainer:V="",accumulationHeight:L=0,delayTriggerCalculateHeight:B=0,increaseViewportBy:I=()=>0,context:q={},endReached:F,increaseTotalCount:h=1}=i,[a,f]=o.useState(0),$=()=>{if(t==="min-max"){const e=(l+h)*b;return{height:l>E?s:a>e?a:e}}return t==="container"?{height:a}:{}},M=e=>{var w;const m=e.getAttribute("data-index");let C=((w=e.getBoundingClientRect())==null?void 0:w.height)||0;return u==null||u.forEach(N=>{var x,p;C+=((p=(x=document.querySelector(`[${N}="${m}"]`))==null?void 0:x.getBoundingClientRect())==null?void 0:p.height)??0}),C},c=()=>{var e;if(g&&t==="container"){const m=((e=document==null?void 0:document.getElementById(g))==null?void 0:e.offsetHeight)??0;f(m-L)}};return o.useEffect(()=>{const e=setTimeout(c,B);return window==null||window.addEventListener("resize",c),window==null||window.addEventListener("load",c),()=>{clearTimeout(e),window==null||window.removeEventListener("resize",c),window==null||window.removeEventListener("load",c)}},[t,V]),n.jsx("div",{className:`iru-w-full ${H}`,children:n.jsx(W.TableVirtuoso,{context:q,ref:r,overscan:typeof d=="function"?d(t==="container"?a:s):t==="container"?a:s,totalListHeightChanged:e=>t==="min-max"?f(e):null,style:$(),totalCount:l,computeItemKey:v,itemSize:o.useCallback(e=>j==="manual"?T(e):M(e),[]),components:{TableRow:k,...S},fixedHeaderContent:z,itemContent:(...e)=>R(_,...e),endReached:F,increaseViewportBy:I(t==="container"?a:s)})})});y.displayName="TableVirtualization";exports.default=y;
@@ -0,0 +1,84 @@
1
+ import { jsx as r, Fragment as u } from "react/jsx-runtime";
2
+ import { forwardRef as q, useState as A, useEffect as F, useCallback as K, isValidElement as D, cloneElement as G } from "react";
3
+ import { TableVirtuoso as J } from "react-virtuoso";
4
+ const M = ({ children: n, ...a }) => /* @__PURE__ */ r(u, { children: n(a) }), O = ({ children: n, ...a }) => /* @__PURE__ */ r(u, { children: D(n) && /* @__PURE__ */ r(u, { children: G(n, a) }) }), P = q((n, a) => {
5
+ const {
6
+ classNameContainer: H = "",
7
+ computeItemKey: x = () => "",
8
+ itemSize: v = () => 0,
9
+ totalCount: c = 0,
10
+ typeHight: t = "min-max",
11
+ minHeightItem: E = 0,
12
+ maxHeightTable: l = 0,
13
+ minLengthItem: T = 0,
14
+ fixedHeaderContent: z,
15
+ itemContent: b,
16
+ typeCalculateItemSize: L = "manual",
17
+ itemSizeNames: m = [],
18
+ overscan: d = null,
19
+ component: R = {},
20
+ idContainer: h = "",
21
+ triggerCalCulateContainer: V = "",
22
+ accumulationHeight: B = 0,
23
+ delayTriggerCalculateHeight: I = 0,
24
+ increaseViewportBy: S = () => 0,
25
+ context: $ = {},
26
+ endReached: N,
27
+ increaseTotalCount: g = 1
28
+ } = n, [i, f] = A(0), W = () => {
29
+ if (t === "min-max") {
30
+ const e = (c + g) * E;
31
+ return { height: c > T ? l : i > e ? i : e };
32
+ }
33
+ return t === "container" ? { height: i } : {};
34
+ }, j = (e) => {
35
+ var C;
36
+ const s = e.getAttribute("data-index");
37
+ let p = ((C = e.getBoundingClientRect()) == null ? void 0 : C.height) || 0;
38
+ return m == null || m.forEach((k) => {
39
+ var w, y;
40
+ p += ((y = (w = document.querySelector(`[${k}="${s}"]`)) == null ? void 0 : w.getBoundingClientRect()) == null ? void 0 : y.height) ?? 0;
41
+ }), p;
42
+ }, o = () => {
43
+ var e;
44
+ if (h && t === "container") {
45
+ const s = ((e = document == null ? void 0 : document.getElementById(h)) == null ? void 0 : e.offsetHeight) ?? 0;
46
+ f(s - B);
47
+ }
48
+ };
49
+ return F(() => {
50
+ const e = setTimeout(o, I);
51
+ return window == null || window.addEventListener("resize", o), window == null || window.addEventListener("load", o), () => {
52
+ clearTimeout(e), window == null || window.removeEventListener("resize", o), window == null || window.removeEventListener("load", o);
53
+ };
54
+ }, [t, V]), /* @__PURE__ */ r("div", { className: `iru-w-full ${H}`, children: /* @__PURE__ */ r(
55
+ J,
56
+ {
57
+ context: $,
58
+ ref: a,
59
+ overscan: typeof d == "function" ? d(t === "container" ? i : l) : t === "container" ? i : l,
60
+ totalListHeightChanged: (e) => t === "min-max" ? f(e) : null,
61
+ style: W(),
62
+ totalCount: c,
63
+ computeItemKey: x,
64
+ itemSize: K(
65
+ (e) => L === "manual" ? v(e) : j(e),
66
+ []
67
+ ),
68
+ components: {
69
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
70
+ // @ts-ignore
71
+ TableRow: O,
72
+ ...R
73
+ },
74
+ fixedHeaderContent: z,
75
+ itemContent: (...e) => b(M, ...e),
76
+ endReached: N,
77
+ increaseViewportBy: S(t === "container" ? i : l)
78
+ }
79
+ ) });
80
+ });
81
+ P.displayName = "TableVirtualization";
82
+ export {
83
+ P as default
84
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("bignumber.js"),t={ROUNDING_MODE:e.ROUND_HALF_UP,EXPONENTIAL_AT:[-1e9,1e9]};let i=!1;const n=(r=t)=>{i||(e.config(r),i=!0)},o=(r,u)=>(i||n(),new e(r,u));exports.TypeBigNumber=e;exports.BigNumber=o;exports.defaultConfig=t;
@@ -0,0 +1,15 @@
1
+ import i from "bignumber.js";
2
+ import { default as m } from "bignumber.js";
3
+ const t = {
4
+ ROUNDING_MODE: i.ROUND_HALF_UP,
5
+ EXPONENTIAL_AT: [-1e9, 1e9]
6
+ };
7
+ let r = !1;
8
+ const f = (e = t) => {
9
+ r || (i.config(e), r = !0);
10
+ }, N = (e, o) => (r || f(), new i(e, o));
11
+ export {
12
+ N as BigNumber,
13
+ m as TypeBigNumber,
14
+ t as defaultConfig
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r={"0px":"iru-rounded-none","2px":"iru-rounded-sm","4px":"iru-rounded","6px":"iru-rounded-md","8px":"iru-rounded-lg","12px":"iru-rounded-xl","16px":"iru-rounded-2xl","24px":"iru-rounded-3xl",full:"iru-rounded-full"};exports.configBorderRadius=r;
@@ -0,0 +1,14 @@
1
+ const d = {
2
+ "0px": "iru-rounded-none",
3
+ "2px": "iru-rounded-sm",
4
+ "4px": "iru-rounded",
5
+ "6px": "iru-rounded-md",
6
+ "8px": "iru-rounded-lg",
7
+ "12px": "iru-rounded-xl",
8
+ "16px": "iru-rounded-2xl",
9
+ "24px": "iru-rounded-3xl",
10
+ full: "iru-rounded-full"
11
+ };
12
+ export {
13
+ d as configBorderRadius
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={lato:"iru-font-Lato",inter:"iru-font-Inter",pJakartaSans:"iru-font-PJakartaSans"};exports.configFont=t;
@@ -0,0 +1,8 @@
1
+ const t = {
2
+ lato: "iru-font-Lato",
3
+ inter: "iru-font-Inter",
4
+ pJakartaSans: "iru-font-PJakartaSans"
5
+ };
6
+ export {
7
+ t as configFont
8
+ };