1mpacto-react-ui 2.0.16 → 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 (309) hide show
  1. package/dist/assets/style.css +1 -1
  2. package/dist/components/Alert/index.cjs +1 -0
  3. package/dist/components/Alert/index.mjs +220 -0
  4. package/dist/components/Alert/style.module.scss.cjs +1 -0
  5. package/dist/components/Alert/style.module.scss.mjs +14 -0
  6. package/dist/components/Badges/Badges.cjs +2 -0
  7. package/dist/components/Badges/Badges.config.cjs +1 -0
  8. package/dist/components/Badges/Badges.config.mjs +47 -0
  9. package/dist/components/Badges/Badges.mjs +29 -0
  10. package/dist/components/Badges/style.module.scss.cjs +1 -0
  11. package/dist/components/Badges/style.module.scss.mjs +40 -0
  12. package/dist/components/Breadcrumbs/Breadcrumbs.cjs +3 -0
  13. package/dist/components/Breadcrumbs/Breadcrumbs.config.cjs +1 -0
  14. package/dist/components/Breadcrumbs/Breadcrumbs.config.mjs +16 -0
  15. package/dist/components/Breadcrumbs/Breadcrumbs.mjs +67 -0
  16. package/dist/components/Breadcrumbs/style.module.scss.cjs +1 -0
  17. package/dist/components/Breadcrumbs/style.module.scss.mjs +16 -0
  18. package/dist/components/Button/Button.cjs +12 -0
  19. package/dist/components/Button/Button.config.cjs +1 -0
  20. package/dist/components/Button/Button.config.mjs +75 -0
  21. package/dist/components/Button/Button.mjs +75 -0
  22. package/dist/components/Button/style.module.scss.cjs +1 -0
  23. package/dist/components/Button/style.module.scss.mjs +58 -0
  24. package/dist/components/ButtonIcon/ButtonIcon.cjs +12 -0
  25. package/dist/components/ButtonIcon/ButtonIcon.config.cjs +1 -0
  26. package/dist/components/ButtonIcon/ButtonIcon.config.mjs +68 -0
  27. package/dist/components/ButtonIcon/ButtonIcon.mjs +65 -0
  28. package/dist/components/ButtonIcon/style.module.scss.cjs +1 -0
  29. package/dist/components/ButtonIcon/style.module.scss.mjs +51 -0
  30. package/dist/components/ButtonPopover/ButtonPopover.cjs +1 -0
  31. package/dist/components/ButtonPopover/ButtonPopover.mjs +84 -0
  32. package/dist/components/ButtonPopover/style.module.scss.cjs +1 -0
  33. package/dist/components/ButtonPopover/style.module.scss.mjs +10 -0
  34. package/dist/components/Calendar/Calendar.cjs +1 -0
  35. package/dist/components/Calendar/Calendar.mjs +199 -0
  36. package/dist/components/Calendar/CalendarButton.cjs +1 -0
  37. package/dist/components/Calendar/CalendarButton.mjs +18 -0
  38. package/dist/components/Calendar/CalendarCell.cjs +1 -0
  39. package/dist/components/Calendar/CalendarCell.mjs +26 -0
  40. package/dist/components/Calendar/CalendarMonth.cjs +1 -0
  41. package/dist/components/Calendar/CalendarMonth.mjs +74 -0
  42. package/dist/components/Calendar/CalendarRange.cjs +1 -0
  43. package/dist/components/Calendar/CalendarRange.mjs +140 -0
  44. package/dist/components/Calendar/CalendarYear.cjs +3 -0
  45. package/dist/components/Calendar/CalendarYear.mjs +74 -0
  46. package/dist/components/Calendar/style.module.scss.cjs +1 -0
  47. package/dist/components/Calendar/style.module.scss.mjs +36 -0
  48. package/dist/components/Chart/DoughnutChart.cjs +1 -0
  49. package/dist/components/Chart/DoughnutChart.mjs +173 -0
  50. package/dist/components/Chart/GradientBarChart.cjs +1 -0
  51. package/dist/components/Chart/GradientBarChart.mjs +157 -0
  52. package/dist/components/Chart/GradientLineChart.cjs +1 -0
  53. package/dist/components/Chart/GradientLineChart.mjs +143 -0
  54. package/dist/components/Chart/LineChart.cjs +1 -0
  55. package/dist/components/Chart/LineChart.mjs +158 -0
  56. package/dist/components/Chips/Chips.cjs +3 -0
  57. package/dist/components/Chips/Chips.config.cjs +1 -0
  58. package/dist/components/Chips/Chips.config.mjs +35 -0
  59. package/dist/components/Chips/Chips.mjs +37 -0
  60. package/dist/components/Chips/style.module.scss.cjs +1 -0
  61. package/dist/components/Chips/style.module.scss.mjs +14 -0
  62. package/dist/components/Collapse/Collapse.cjs +1 -0
  63. package/dist/components/Collapse/Collapse.mjs +35 -0
  64. package/dist/components/Collapse/CollapseV2.cjs +1 -0
  65. package/dist/components/Collapse/CollapseV2.mjs +30 -0
  66. package/dist/components/Collapse/style.module.scss.cjs +1 -0
  67. package/dist/components/Collapse/style.module.scss.mjs +7 -0
  68. package/dist/components/DatePicker/DatePicker.cjs +1 -0
  69. package/dist/components/DatePicker/DatePicker.mjs +125 -0
  70. package/dist/components/DatePicker/DateRangePicker.cjs +1 -0
  71. package/dist/components/DatePicker/DateRangePicker.mjs +112 -0
  72. package/dist/components/DatePicker/FilterDate.cjs +1 -0
  73. package/dist/components/DatePicker/FilterDate.mjs +248 -0
  74. package/dist/components/DatePicker/MonthYearPicker.cjs +1 -0
  75. package/dist/components/DatePicker/MonthYearPicker.mjs +83 -0
  76. package/dist/components/ErrorMessage/ErrorMessage.cjs +1 -0
  77. package/dist/components/ErrorMessage/ErrorMessage.config.cjs +1 -0
  78. package/dist/components/ErrorMessage/ErrorMessage.config.mjs +11 -0
  79. package/dist/components/ErrorMessage/ErrorMessage.mjs +6 -0
  80. package/dist/components/ErrorMessage/style.module.scss.cjs +1 -0
  81. package/dist/components/ErrorMessage/style.module.scss.mjs +8 -0
  82. package/dist/components/FilterContainer/FilterContainer.cjs +1 -0
  83. package/dist/components/FilterContainer/FilterContainer.mjs +63 -0
  84. package/dist/components/Input/InputFloatingInner.cjs +5 -0
  85. package/dist/components/Input/InputFloatingInner.config.cjs +1 -0
  86. package/dist/components/Input/InputFloatingInner.config.mjs +11 -0
  87. package/dist/components/Input/InputFloatingInner.mjs +65 -0
  88. package/dist/components/Input/InputFloatingInner.module.scss.cjs +1 -0
  89. package/dist/components/Input/InputFloatingInner.module.scss.mjs +20 -0
  90. package/dist/components/Input/InputInnerLabel.cjs +6 -0
  91. package/dist/components/Input/InputInnerLabel.config.cjs +1 -0
  92. package/dist/components/Input/InputInnerLabel.config.mjs +10 -0
  93. package/dist/components/Input/InputInnerLabel.mjs +78 -0
  94. package/dist/components/Input/InputInnerLabel.module.scss.cjs +1 -0
  95. package/dist/components/Input/InputInnerLabel.module.scss.mjs +20 -0
  96. package/dist/components/Input/InputNative.cjs +5 -0
  97. package/dist/components/Input/InputNative.config.cjs +1 -0
  98. package/dist/components/Input/InputNative.config.mjs +11 -0
  99. package/dist/components/Input/InputNative.mjs +58 -0
  100. package/dist/components/Input/InputNative.module.scss.cjs +1 -0
  101. package/dist/components/Input/InputNative.module.scss.mjs +18 -0
  102. package/dist/components/Input/InputReguler.cjs +5 -0
  103. package/dist/components/Input/InputReguler.config.cjs +1 -0
  104. package/dist/components/Input/InputReguler.config.mjs +11 -0
  105. package/dist/components/Input/InputReguler.mjs +79 -0
  106. package/dist/components/Input/InputReguler.module.scss.cjs +1 -0
  107. package/dist/components/Input/InputReguler.module.scss.mjs +24 -0
  108. package/dist/components/Modal/ModalDialog.cjs +1 -0
  109. package/dist/components/Modal/ModalDialog.config.cjs +1 -0
  110. package/dist/components/Modal/ModalDialog.config.mjs +12 -0
  111. package/dist/components/Modal/ModalDialog.mjs +44 -0
  112. package/dist/components/Modal/style.module.scss.cjs +1 -0
  113. package/dist/components/Modal/style.module.scss.mjs +14 -0
  114. package/dist/components/NumberFormat/NumberFormat.cjs +1 -0
  115. package/dist/components/NumberFormat/NumberFormat.mjs +33 -0
  116. package/dist/components/Pagination/Pagination.cjs +2 -0
  117. package/dist/components/Pagination/Pagination.config.cjs +1 -0
  118. package/dist/components/Pagination/Pagination.config.mjs +25 -0
  119. package/dist/components/Pagination/Pagination.mjs +231 -0
  120. package/dist/components/Pagination/style.module.scss.cjs +1 -0
  121. package/dist/components/Pagination/style.module.scss.mjs +20 -0
  122. package/dist/components/Popover/Popover.cjs +1 -0
  123. package/dist/components/Popover/Popover.mjs +78 -0
  124. package/dist/components/Popover/style.module.scss.cjs +1 -0
  125. package/dist/components/Popover/style.module.scss.mjs +7 -0
  126. package/dist/components/PortalComponent/PortalComponent.cjs +1 -0
  127. package/dist/components/PortalComponent/PortalComponent.mjs +18 -0
  128. package/dist/components/RadioCheckbox/CheckboxTable.cjs +1 -0
  129. package/dist/components/RadioCheckbox/CheckboxTable.mjs +27 -0
  130. package/dist/components/RadioCheckbox/RadioCheckbox.cjs +3 -0
  131. package/dist/components/RadioCheckbox/RadioCheckbox.config.cjs +1 -0
  132. package/dist/components/RadioCheckbox/RadioCheckbox.config.mjs +31 -0
  133. package/dist/components/RadioCheckbox/RadioCheckbox.mjs +84 -0
  134. package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.cjs +1 -0
  135. package/dist/components/RadioCheckbox/RadioCheckbox.module.scss.mjs +26 -0
  136. package/dist/components/RadioCheckbox/RadioCheckboxLabel.cjs +4 -0
  137. package/dist/components/RadioCheckbox/RadioCheckboxLabel.config.cjs +1 -0
  138. package/dist/components/RadioCheckbox/RadioCheckboxLabel.config.mjs +20 -0
  139. package/dist/components/RadioCheckbox/RadioCheckboxLabel.mjs +55 -0
  140. package/dist/components/RadioCheckbox/RadioCheckboxLabel.module.scss.cjs +1 -0
  141. package/dist/components/RadioCheckbox/RadioCheckboxLabel.module.scss.mjs +19 -0
  142. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.cjs +1 -0
  143. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.config.cjs +1 -0
  144. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.config.mjs +27 -0
  145. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.mjs +150 -0
  146. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.module.scss.cjs +1 -0
  147. package/dist/components/SelectDropdownContainer/SelectDropdownContainer.module.scss.mjs +10 -0
  148. package/dist/components/SelectDropdownContainer/styleConfig.cjs +1 -0
  149. package/dist/components/SelectDropdownContainer/styleConfig.mjs +277 -0
  150. package/dist/components/Sidebar/ItemSidebar.cjs +8 -0
  151. package/dist/components/Sidebar/ItemSidebar.config.cjs +1 -0
  152. package/dist/components/Sidebar/ItemSidebar.config.mjs +42 -0
  153. package/dist/components/Sidebar/ItemSidebar.mjs +122 -0
  154. package/dist/components/Sidebar/Sidebar.cjs +1 -0
  155. package/dist/components/Sidebar/Sidebar.config.cjs +1 -0
  156. package/dist/components/Sidebar/Sidebar.config.mjs +25 -0
  157. package/dist/components/Sidebar/Sidebar.mjs +136 -0
  158. package/dist/components/Sidebar/Sidebar.module.scss.cjs +1 -0
  159. package/dist/components/Sidebar/Sidebar.module.scss.mjs +26 -0
  160. package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -0
  161. package/dist/components/Sidebar/itemSidebar.module.scss.mjs +31 -0
  162. package/dist/components/Step/Step.cjs +5 -0
  163. package/dist/components/Step/Step.mjs +85 -0
  164. package/dist/components/Step/Step.module.scss.cjs +1 -0
  165. package/dist/components/Step/Step.module.scss.mjs +17 -0
  166. package/dist/components/Step/StepIndicator.cjs +4 -0
  167. package/dist/components/Step/StepIndicator.mjs +65 -0
  168. package/dist/components/Step/StepIndicator.module.scss.cjs +1 -0
  169. package/dist/components/Step/StepIndicator.module.scss.mjs +16 -0
  170. package/dist/components/Switch/Switch.cjs +1 -0
  171. package/dist/components/Switch/Switch.config.cjs +1 -0
  172. package/dist/components/Switch/Switch.config.mjs +28 -0
  173. package/dist/components/Switch/Switch.mjs +53 -0
  174. package/dist/components/Switch/style.module.scss.cjs +1 -0
  175. package/dist/components/Switch/style.module.scss.mjs +23 -0
  176. package/dist/components/TPublish/TPublish.cjs +1 -0
  177. package/dist/components/TPublish/TPublish.mjs +5 -0
  178. package/dist/components/Table/Table.cjs +3 -0
  179. package/dist/components/Table/Table.config.cjs +1 -0
  180. package/dist/components/Table/Table.config.mjs +69 -0
  181. package/dist/components/Table/Table.mjs +402 -0
  182. package/dist/components/Table/Table.module.scss.cjs +1 -0
  183. package/dist/components/Table/Table.module.scss.mjs +19 -0
  184. package/dist/components/Table/TableSubMobile.cjs +1 -0
  185. package/dist/components/Table/TableSubMobile.mjs +37 -0
  186. package/dist/components/Table/TableSubMobile.module.scss.cjs +1 -0
  187. package/dist/components/Table/TableSubMobile.module.scss.mjs +6 -0
  188. package/dist/components/Tabs/TabPanel.cjs +1 -0
  189. package/dist/components/Tabs/TabPanel.mjs +14 -0
  190. package/dist/components/Tabs/Tabs.cjs +8 -0
  191. package/dist/components/Tabs/Tabs.config.cjs +1 -0
  192. package/dist/components/Tabs/Tabs.config.mjs +33 -0
  193. package/dist/components/Tabs/Tabs.mjs +112 -0
  194. package/dist/components/Tabs/style.module.scss.cjs +1 -0
  195. package/dist/components/Tabs/style.module.scss.mjs +30 -0
  196. package/dist/components/Text/Text.cjs +5 -0
  197. package/dist/components/Text/Text.mjs +39 -0
  198. package/dist/components/TextEditor/TextEditor.cjs +1 -0
  199. package/dist/components/TextEditor/TextEditor.mjs +9 -0
  200. package/dist/components/TextEditor/style.module.scss.cjs +1 -0
  201. package/dist/components/TextEditor/style.module.scss.mjs +7 -0
  202. package/dist/components/Textarea/Textarea.cjs +7 -0
  203. package/dist/components/Textarea/Textarea.config.cjs +1 -0
  204. package/dist/components/Textarea/Textarea.config.mjs +33 -0
  205. package/dist/components/Textarea/Textarea.mjs +87 -0
  206. package/dist/components/Textarea/TextareaFloatingInner.cjs +6 -0
  207. package/dist/components/Textarea/TextareaFloatingInner.config.cjs +1 -0
  208. package/dist/components/Textarea/TextareaFloatingInner.config.mjs +9 -0
  209. package/dist/components/Textarea/TextareaFloatingInner.mjs +101 -0
  210. package/dist/components/Textarea/TextareaFloatingInner.module.scss.cjs +1 -0
  211. package/dist/components/Textarea/TextareaFloatingInner.module.scss.mjs +17 -0
  212. package/dist/components/Textarea/TextareaInnerLabel.cjs +6 -0
  213. package/dist/components/Textarea/TextareaInnerLabel.config.cjs +1 -0
  214. package/dist/components/Textarea/TextareaInnerLabel.config.mjs +10 -0
  215. package/dist/components/Textarea/TextareaInnerLabel.mjs +87 -0
  216. package/dist/components/Textarea/TextareaInnerLabel.module.scss.cjs +1 -0
  217. package/dist/components/Textarea/TextareaInnerLabel.module.scss.mjs +17 -0
  218. package/dist/components/Textarea/style.module.scss.cjs +1 -0
  219. package/dist/components/Textarea/style.module.scss.mjs +25 -0
  220. package/dist/components/TimeRange/TimeRange.cjs +1 -0
  221. package/dist/components/TimeRange/TimeRange.mjs +187 -0
  222. package/dist/components/TimeRange/TimeRange.module.scss.cjs +1 -0
  223. package/dist/components/TimeRange/TimeRange.module.scss.mjs +23 -0
  224. package/dist/components/Timeline/Timeline.cjs +1 -0
  225. package/dist/components/Timeline/Timeline.mjs +12 -0
  226. package/dist/components/Timeline/style.module.scss.cjs +1 -0
  227. package/dist/components/Timeline/style.module.scss.mjs +14 -0
  228. package/dist/components/Tooltip/Tooltip.cjs +1 -0
  229. package/dist/components/Tooltip/Tooltip.mjs +77 -0
  230. package/dist/components/Tooltip/Tooltip.module.scss.cjs +1 -0
  231. package/dist/components/Tooltip/Tooltip.module.scss.mjs +8 -0
  232. package/dist/components/TruncateComponent/TruncateComponent.cjs +1 -0
  233. package/dist/components/TruncateComponent/TruncateComponent.mjs +83 -0
  234. package/dist/components/Upload/UploadFile.cjs +1 -0
  235. package/dist/components/Upload/UploadFile.mjs +94 -0
  236. package/dist/components/Upload/UploadFile.module.scss.cjs +1 -0
  237. package/dist/components/Upload/UploadFile.module.scss.mjs +6 -0
  238. package/dist/components/Upload/UploadImage.cjs +12 -0
  239. package/dist/components/Upload/UploadImage.mjs +162 -0
  240. package/dist/components/Upload/UploadImage.module.scss.cjs +1 -0
  241. package/dist/components/Upload/UploadImage.module.scss.mjs +14 -0
  242. package/dist/components/Upload/UploadMultipleFile.cjs +1 -0
  243. package/dist/components/Upload/UploadMultipleFile.mjs +85 -0
  244. package/dist/components/Upload/UploadMultipleFile.module.scss.cjs +1 -0
  245. package/dist/components/Upload/UploadMultipleFile.module.scss.mjs +14 -0
  246. package/dist/components/Virtualization/ListVirtualization.cjs +1 -0
  247. package/dist/components/Virtualization/ListVirtualization.mjs +82 -0
  248. package/dist/components/Virtualization/TableVirtualization.cjs +1 -0
  249. package/dist/components/Virtualization/TableVirtualization.mjs +84 -0
  250. package/dist/config/bigNumber/index.cjs +1 -0
  251. package/dist/config/bigNumber/index.mjs +15 -0
  252. package/dist/config/components/borderRadius.cjs +1 -0
  253. package/dist/config/components/borderRadius.mjs +14 -0
  254. package/dist/config/components/font.cjs +1 -0
  255. package/dist/config/components/font.mjs +8 -0
  256. package/dist/config/components/gap.cjs +1 -0
  257. package/dist/config/components/gap.mjs +110 -0
  258. package/dist/config/components/tinymce.cjs +28 -0
  259. package/dist/config/components/tinymce.mjs +81 -0
  260. package/dist/config/components/typography.cjs +1 -0
  261. package/dist/config/components/typography.mjs +83 -0
  262. package/dist/config/resources/index.cjs +1 -0
  263. package/dist/config/resources/index.mjs +4 -0
  264. package/dist/config/tailwind/colors.cjs +1 -0
  265. package/dist/config/tailwind/colors.mjs +291 -0
  266. package/dist/config/tailwind/nativeScreen.cjs +1 -0
  267. package/dist/config/tailwind/nativeScreen.mjs +11 -0
  268. package/dist/config/tailwind/screen.cjs +1 -0
  269. package/dist/config/tailwind/screen.mjs +11 -0
  270. package/dist/config/tailwind/typography.cjs +1 -0
  271. package/dist/config/tailwind/typography.mjs +158 -0
  272. package/dist/hooks/useAsyncDebounce.cjs +1 -0
  273. package/dist/hooks/useAsyncDebounce.mjs +21 -0
  274. package/dist/hooks/useCombinedResizeObserver.cjs +1 -0
  275. package/dist/hooks/useCombinedResizeObserver.mjs +48 -0
  276. package/dist/hooks/useCountdown.cjs +1 -0
  277. package/dist/hooks/useCountdown.mjs +38 -0
  278. package/dist/hooks/useDeepCompareEffect.cjs +1 -0
  279. package/dist/hooks/useDeepCompareEffect.mjs +14 -0
  280. package/dist/hooks/useElementOrWindowMediaQuery.cjs +1 -0
  281. package/dist/hooks/useElementOrWindowMediaQuery.mjs +23 -0
  282. package/dist/hooks/useEventListener.cjs +1 -0
  283. package/dist/hooks/useEventListener.mjs +19 -0
  284. package/dist/hooks/useMasonry.cjs +1 -0
  285. package/dist/hooks/useMasonry.mjs +53 -0
  286. package/dist/hooks/useMergeRefs.cjs +1 -0
  287. package/dist/hooks/useMergeRefs.mjs +29 -0
  288. package/dist/hooks/useOtpInput.cjs +1 -0
  289. package/dist/hooks/useOtpInput.mjs +115 -0
  290. package/dist/hooks/useStateRef.cjs +1 -0
  291. package/dist/hooks/useStateRef.mjs +10 -0
  292. package/dist/index.cjs +1 -247
  293. package/dist/index.mjs +207 -51684
  294. package/dist/package.json.cjs +1 -0
  295. package/dist/package.json.d.ts +3 -2
  296. package/dist/package.json.mjs +7 -0
  297. package/dist/public/assets/icons/arrow-narrow-down.svg.cjs +1 -0
  298. package/dist/public/assets/icons/arrow-narrow-down.svg.mjs +4 -0
  299. package/dist/utils/axiosBigNumber.cjs +1 -0
  300. package/dist/utils/axiosBigNumber.mjs +32 -0
  301. package/dist/utils/common.cjs +1 -0
  302. package/dist/utils/common.mjs +264 -0
  303. package/dist/utils/cookies.cjs +1 -0
  304. package/dist/utils/cookies.mjs +48 -0
  305. package/dist/utils/formatBigNumber.cjs +1 -0
  306. package/dist/utils/formatBigNumber.mjs +39 -0
  307. package/dist/utils/yup.cjs +1 -0
  308. package/dist/utils/yup.mjs +78 -0
  309. package/package.json +3 -2
@@ -0,0 +1,11 @@
1
+ const e = {
2
+ "sm-default": 640,
3
+ sm: 576,
4
+ md: 768,
5
+ lg: 1024,
6
+ xl: 1280,
7
+ "2xl": 1536
8
+ };
9
+ export {
10
+ e as default
11
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"sm-default":"640px",sm:"576px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"};exports.default=e;
@@ -0,0 +1,11 @@
1
+ const x = {
2
+ "sm-default": "640px",
3
+ sm: "576px",
4
+ md: "768px",
5
+ lg: "1024px",
6
+ xl: "1280px",
7
+ "2xl": "1536px"
8
+ };
9
+ export {
10
+ x as default
11
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"payhere-h1":["60px",{lineHeight:"72px",fontWeight:700}],"payhere-h2":["48px",{lineHeight:"58px",fontWeight:700}],"payhere-h3":["40px",{lineHeight:"48px",fontWeight:700}],"payhere-h4":["30px",{lineHeight:"38px",fontWeight:700}],"payhere-h5":["28px",{lineHeight:"40px",fontWeight:600}],"payhere-h6":["24px",{lineHeight:"30px",fontWeight:600}],"payhere-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"payhere-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"payhere-body-ls":["18px",{lineHeight:"26px",fontWeight:600}],"payhere-body-lb":["18px",{lineHeight:"26px",fontWeight:700}],"payhere-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"payhere-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"payhere-body-ms":["16px",{lineHeight:"24px",fontWeight:600}],"payhere-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"payhere-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"payhere-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"payhere-label-sb":["15px",{lineHeight:"26px",fontWeight:600}],"payhere-label-b":["15px",{lineHeight:"26px",fontWeight:700}],"payhere-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"payhere-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"payhere-body-smb":["14px",{lineHeight:"22px",fontWeight:600}],"payhere-body-sb":["14px",{lineHeight:"22px",fontWeight:700}],"payhere-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"payhere-body-esm":["12px",{lineHeight:"20px",fontWeight:500}],"payhere-body-esmb":["12px",{lineHeight:"20px",fontWeight:600}],"payhere-body-esb":["12px",{lineHeight:"20px",fontWeight:700}]},i={"laba-title-lb":["36px",{lineHeight:"44px",fontWeight:700}],"laba-title-ls":["36px",{lineHeight:"44px",fontWeight:600}],"laba-title-lr":["36px",{lineHeight:"44px",fontWeight:400}],"laba-title-mb":["32px",{lineHeight:"40px",fontWeight:700}],"laba-title-ms":["32px",{lineHeight:"40px",fontWeight:600}],"laba-title-mr":["32px",{lineHeight:"40px",fontWeight:400}],"laba-h1":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h1-b":["24px",{lineHeight:"30px",fontWeight:700}],"laba-h1-sb":["24px",{lineHeight:"30px",fontWeight:600}],"laba-h1-r":["24px",{lineHeight:"30px",fontWeight:400}],"laba-h2":["18px",{lineHeight:"26px",fontWeight:700}],"laba-h2-b":["18px",{lineHeight:"26px",fontWeight:700}],"laba-h2-sb":["18px",{lineHeight:"26px",fontWeight:600}],"laba-h2-r":["18px",{lineHeight:"26px",fontWeight:400}],"laba-base-rb":["16px",{lineHeight:"24px",fontWeight:700}],"laba-base-rs":["16px",{lineHeight:"24px",fontWeight:600}],"laba-base-rr":["16px",{lineHeight:"24px",fontWeight:400}],"laba-base-sb":["14px",{lineHeight:"20px",fontWeight:700}],"laba-base-ss":["14px",{lineHeight:"20px",fontWeight:600}],"laba-base-sr":["14px",{lineHeight:"20px",fontWeight:400}],"laba-subtitle-rb":["12px",{lineHeight:"16px",fontWeight:700}],"laba-subtitle-rs":["12px",{lineHeight:"16px",fontWeight:600}],"laba-subtitle-rr":["12px",{lineHeight:"16px",fontWeight:400}],"laba-subtitle-sb":["10px",{lineHeight:"12px",fontWeight:700}],"laba-subtitle-ss":["10px",{lineHeight:"12px",fontWeight:600}],"laba-subtitle-sr":["10px",{lineHeight:"12px",fontWeight:400}]},t={"bill-h1":["60px",{lineHeight:"72px",fontWeight:700}],"bill-h2":["48px",{lineHeight:"58px",fontWeight:700}],"bill-h3":["40px",{lineHeight:"58px",fontWeight:700}],"bill-h4":["30px",{lineHeight:"38px",fontWeight:700}],"bill-h5":["28px",{lineHeight:"40px",fontWeight:600}],"bill-h6":["24px",{lineHeight:"30px",fontWeight:600}],"bill-body-lr":["18px",{lineHeight:"26px",fontWeight:400}],"bill-body-lm":["18px",{lineHeight:"26px",fontWeight:500}],"bill-body-lsm":["18px",{lineHeight:"26px",fontWeight:600}],"bill-body-blb":["18px",{lineHeight:"26px",fontWeight:700}],"bill-body-mr":["16px",{lineHeight:"24px",fontWeight:400}],"bill-body-mm":["16px",{lineHeight:"24px",fontWeight:500}],"bill-body-msm":["16px",{lineHeight:"24px",fontWeight:600}],"bill-body-mb":["16px",{lineHeight:"24px",fontWeight:700}],"bill-label-r":["15px",{lineHeight:"26px",fontWeight:400}],"bill-label-m":["15px",{lineHeight:"26px",fontWeight:500}],"bill-label-sm":["15px",{lineHeight:"26px",fontWeight:600}],"bill-label-b":["15px",{lineHeight:"26px",fontWeight:700}],"bill-body-sr":["14px",{lineHeight:"22px",fontWeight:400}],"bill-body-sm":["14px",{lineHeight:"22px",fontWeight:500}],"bill-body-ssm":["14px",{lineHeight:"22px",fontWeight:600}],"bill-body-sb":["14px",{lineHeight:"22px",fontWeight:700}],"bill-body-esr":["12px",{lineHeight:"20px",fontWeight:400}],"bill-body-ems":["12px",{lineHeight:"20px",fontWeight:500}],"bill-body-essm":["12px",{lineHeight:"20px",fontWeight:600}],"bill-body-esb":["12px",{lineHeight:"20px",fontWeight:700}]},h={...e,...i,...t};exports.configTypographyBillId=t;exports.configTypographyLabaBisnis=i;exports.configTypographyPayhere=e;exports.default=h;
@@ -0,0 +1,158 @@
1
+ const e = {
2
+ "payhere-h1": ["60px", { lineHeight: "72px", fontWeight: 700 }],
3
+ "payhere-h2": ["48px", { lineHeight: "58px", fontWeight: 700 }],
4
+ "payhere-h3": ["40px", { lineHeight: "48px", fontWeight: 700 }],
5
+ "payhere-h4": ["30px", { lineHeight: "38px", fontWeight: 700 }],
6
+ "payhere-h5": ["28px", { lineHeight: "40px", fontWeight: 600 }],
7
+ "payhere-h6": ["24px", { lineHeight: "30px", fontWeight: 600 }],
8
+ "payhere-body-lr": ["18px", { lineHeight: "26px", fontWeight: 400 }],
9
+ // large reguler
10
+ "payhere-body-lm": ["18px", { lineHeight: "26px", fontWeight: 500 }],
11
+ // large medium
12
+ "payhere-body-ls": ["18px", { lineHeight: "26px", fontWeight: 600 }],
13
+ // large semibold
14
+ "payhere-body-lb": ["18px", { lineHeight: "26px", fontWeight: 700 }],
15
+ // large bold
16
+ "payhere-body-mr": ["16px", { lineHeight: "24px", fontWeight: 400 }],
17
+ // medium reguler
18
+ "payhere-body-mm": ["16px", { lineHeight: "24px", fontWeight: 500 }],
19
+ // medium medium
20
+ "payhere-body-ms": ["16px", { lineHeight: "24px", fontWeight: 600 }],
21
+ // medium semibold
22
+ "payhere-body-mb": ["16px", { lineHeight: "24px", fontWeight: 700 }],
23
+ // medium bold
24
+ "payhere-label-r": ["15px", { lineHeight: "26px", fontWeight: 400 }],
25
+ // reguler
26
+ "payhere-label-m": ["15px", { lineHeight: "26px", fontWeight: 500 }],
27
+ // medium
28
+ "payhere-label-sb": ["15px", { lineHeight: "26px", fontWeight: 600 }],
29
+ // semi bold
30
+ "payhere-label-b": ["15px", { lineHeight: "26px", fontWeight: 700 }],
31
+ // bold
32
+ "payhere-body-sr": ["14px", { lineHeight: "22px", fontWeight: 400 }],
33
+ // small reguler
34
+ "payhere-body-sm": ["14px", { lineHeight: "22px", fontWeight: 500 }],
35
+ // small medium
36
+ "payhere-body-smb": ["14px", { lineHeight: "22px", fontWeight: 600 }],
37
+ // small semi bold
38
+ "payhere-body-sb": ["14px", { lineHeight: "22px", fontWeight: 700 }],
39
+ // small bold
40
+ "payhere-body-esr": ["12px", { lineHeight: "20px", fontWeight: 400 }],
41
+ // extra small reguler
42
+ "payhere-body-esm": ["12px", { lineHeight: "20px", fontWeight: 500 }],
43
+ // extra small medium
44
+ "payhere-body-esmb": ["12px", { lineHeight: "20px", fontWeight: 600 }],
45
+ // extra small semi bold
46
+ "payhere-body-esb": ["12px", { lineHeight: "20px", fontWeight: 700 }]
47
+ // extra small bold
48
+ }, i = {
49
+ "laba-title-lb": ["36px", { lineHeight: "44px", fontWeight: 700 }],
50
+ // large bold
51
+ "laba-title-ls": ["36px", { lineHeight: "44px", fontWeight: 600 }],
52
+ // large semibold
53
+ "laba-title-lr": ["36px", { lineHeight: "44px", fontWeight: 400 }],
54
+ // large reguler
55
+ "laba-title-mb": ["32px", { lineHeight: "40px", fontWeight: 700 }],
56
+ // medium bold
57
+ "laba-title-ms": ["32px", { lineHeight: "40px", fontWeight: 600 }],
58
+ // medium semibold
59
+ "laba-title-mr": ["32px", { lineHeight: "40px", fontWeight: 400 }],
60
+ // medium reguler
61
+ "laba-h1": ["24px", { lineHeight: "30px", fontWeight: 700 }],
62
+ "laba-h1-b": ["24px", { lineHeight: "30px", fontWeight: 700 }],
63
+ // bold
64
+ "laba-h1-sb": ["24px", { lineHeight: "30px", fontWeight: 600 }],
65
+ // semibold
66
+ "laba-h1-r": ["24px", { lineHeight: "30px", fontWeight: 400 }],
67
+ // reguler
68
+ "laba-h2": ["18px", { lineHeight: "26px", fontWeight: 700 }],
69
+ "laba-h2-b": ["18px", { lineHeight: "26px", fontWeight: 700 }],
70
+ // bold
71
+ "laba-h2-sb": ["18px", { lineHeight: "26px", fontWeight: 600 }],
72
+ // semibold
73
+ "laba-h2-r": ["18px", { lineHeight: "26px", fontWeight: 400 }],
74
+ // reguler
75
+ "laba-base-rb": ["16px", { lineHeight: "24px", fontWeight: 700 }],
76
+ // reguler bold
77
+ "laba-base-rs": ["16px", { lineHeight: "24px", fontWeight: 600 }],
78
+ // reguler semibold
79
+ "laba-base-rr": ["16px", { lineHeight: "24px", fontWeight: 400 }],
80
+ // reguler reguler
81
+ "laba-base-sb": ["14px", { lineHeight: "20px", fontWeight: 700 }],
82
+ // small bold
83
+ "laba-base-ss": ["14px", { lineHeight: "20px", fontWeight: 600 }],
84
+ // small semibold
85
+ "laba-base-sr": ["14px", { lineHeight: "20px", fontWeight: 400 }],
86
+ // small reguler
87
+ "laba-subtitle-rb": ["12px", { lineHeight: "16px", fontWeight: 700 }],
88
+ // reguler bold
89
+ "laba-subtitle-rs": ["12px", { lineHeight: "16px", fontWeight: 600 }],
90
+ // reguler semibold
91
+ "laba-subtitle-rr": ["12px", { lineHeight: "16px", fontWeight: 400 }],
92
+ // reguler reguler
93
+ "laba-subtitle-sb": ["10px", { lineHeight: "12px", fontWeight: 700 }],
94
+ // small bold
95
+ "laba-subtitle-ss": ["10px", { lineHeight: "12px", fontWeight: 600 }],
96
+ // small semibold
97
+ "laba-subtitle-sr": ["10px", { lineHeight: "12px", fontWeight: 400 }]
98
+ // small reguler
99
+ }, t = {
100
+ "bill-h1": ["60px", { lineHeight: "72px", fontWeight: 700 }],
101
+ // Heading H1
102
+ "bill-h2": ["48px", { lineHeight: "58px", fontWeight: 700 }],
103
+ // Heading H2
104
+ "bill-h3": ["40px", { lineHeight: "58px", fontWeight: 700 }],
105
+ // Heading H3
106
+ "bill-h4": ["30px", { lineHeight: "38px", fontWeight: 700 }],
107
+ // Heading H4
108
+ "bill-h5": ["28px", { lineHeight: "40px", fontWeight: 600 }],
109
+ // Heading H5
110
+ "bill-h6": ["24px", { lineHeight: "30px", fontWeight: 600 }],
111
+ // Heading H6
112
+ "bill-body-lr": ["18px", { lineHeight: "26px", fontWeight: 400 }],
113
+ // Body Large Regular
114
+ "bill-body-lm": ["18px", { lineHeight: "26px", fontWeight: 500 }],
115
+ // Body Large Medium
116
+ "bill-body-lsm": ["18px", { lineHeight: "26px", fontWeight: 600 }],
117
+ // Body Large SemiBold
118
+ "bill-body-blb": ["18px", { lineHeight: "26px", fontWeight: 700 }],
119
+ // Body Large Bold
120
+ "bill-body-mr": ["16px", { lineHeight: "24px", fontWeight: 400 }],
121
+ // Body Medium Regular
122
+ "bill-body-mm": ["16px", { lineHeight: "24px", fontWeight: 500 }],
123
+ // Body Medium Medium
124
+ "bill-body-msm": ["16px", { lineHeight: "24px", fontWeight: 600 }],
125
+ // Body Medium SemiBold
126
+ "bill-body-mb": ["16px", { lineHeight: "24px", fontWeight: 700 }],
127
+ // Body Medium Bold
128
+ "bill-label-r": ["15px", { lineHeight: "26px", fontWeight: 400 }],
129
+ // Label Regular
130
+ "bill-label-m": ["15px", { lineHeight: "26px", fontWeight: 500 }],
131
+ // Label Medium
132
+ "bill-label-sm": ["15px", { lineHeight: "26px", fontWeight: 600 }],
133
+ // Label SemiBold
134
+ "bill-label-b": ["15px", { lineHeight: "26px", fontWeight: 700 }],
135
+ // Label Bold
136
+ "bill-body-sr": ["14px", { lineHeight: "22px", fontWeight: 400 }],
137
+ // Body Small Regular
138
+ "bill-body-sm": ["14px", { lineHeight: "22px", fontWeight: 500 }],
139
+ // Body Small Medium
140
+ "bill-body-ssm": ["14px", { lineHeight: "22px", fontWeight: 600 }],
141
+ // Body Small SemiBold
142
+ "bill-body-sb": ["14px", { lineHeight: "22px", fontWeight: 700 }],
143
+ // Body Small Bold
144
+ "bill-body-esr": ["12px", { lineHeight: "20px", fontWeight: 400 }],
145
+ // Body Extra Small Regular
146
+ "bill-body-ems": ["12px", { lineHeight: "20px", fontWeight: 500 }],
147
+ // Body Extra Small Medium
148
+ "bill-body-essm": ["12px", { lineHeight: "20px", fontWeight: 600 }],
149
+ // Body Extra Small SemiBold
150
+ "bill-body-esb": ["12px", { lineHeight: "20px", fontWeight: 700 }]
151
+ // Body Extra Small Bold
152
+ }, h = { ...e, ...i, ...t };
153
+ export {
154
+ t as configTypographyBillId,
155
+ i as configTypographyLabaBisnis,
156
+ e as configTypographyPayhere,
157
+ h as default
158
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react");function l(t,u=0){const e=n.useRef({promise:null,resolve:null,reject:null,timeout:null});return n.useCallback((...c)=>(e.current.timeout&&clearTimeout(e.current.timeout),e.current.promise||(e.current.promise=new Promise((r,o)=>{e.current.resolve=r,e.current.reject=o})),e.current.timeout=setTimeout(()=>{t(...c).then(r=>{e.current.resolve&&e.current.resolve(r)}).catch(r=>{e.current.reject&&e.current.reject(r)}).finally(()=>{e.current.promise=null,e.current.resolve=null,e.current.reject=null,e.current.timeout=null})},u),e.current.promise),[t,u])}exports.default=l;
@@ -0,0 +1,21 @@
1
+ import n from "react";
2
+ function s(t, u = 0) {
3
+ const e = n.useRef({ promise: null, resolve: null, reject: null, timeout: null });
4
+ return n.useCallback(
5
+ (...c) => (e.current.timeout && clearTimeout(e.current.timeout), e.current.promise || (e.current.promise = new Promise((r, o) => {
6
+ e.current.resolve = r, e.current.reject = o;
7
+ })), e.current.timeout = setTimeout(() => {
8
+ t(...c).then((r) => {
9
+ e.current.resolve && e.current.resolve(r);
10
+ }).catch((r) => {
11
+ e.current.reject && e.current.reject(r);
12
+ }).finally(() => {
13
+ e.current.promise = null, e.current.resolve = null, e.current.reject = null, e.current.timeout = null;
14
+ });
15
+ }, u), e.current.promise),
16
+ [t, u]
17
+ );
18
+ }
19
+ export {
20
+ s as default
21
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),r=typeof window<"u"?t.useLayoutEffect:t.useEffect,p=(u,n)=>{const[c,d]=t.useState({width:0,height:0}),[f,h]=t.useState({width:0,height:0,top:0,left:0,bottom:0,right:0,x:0,y:0}),o=t.useRef(null);return r(()=>{const i=()=>{d({width:window.innerWidth,height:window.innerHeight})},w=l=>{for(const a of l){const{width:m,height:b,top:v,left:g,bottom:y,right:z,x:R,y:S}=a.contentRect;h({width:m,height:b,top:v,left:g,bottom:y,right:z,x:R,y:S})}};let e=null;n?e=document.querySelector(n):o.current&&(e=o.current);const s=new ResizeObserver(w);return e&&s.observe(e),window.addEventListener("resize",i),i(),()=>{e&&s.unobserve(e),window.removeEventListener("resize",i)}},[n,...u??[]]),{ref:o,windowSize:c,contentRect:f}};exports.default=p;exports.useIsomorphicLayoutEffect=r;
@@ -0,0 +1,48 @@
1
+ import t from "react";
2
+ const y = typeof window < "u" ? t.useLayoutEffect : t.useEffect, S = (s, n) => {
3
+ const [c, d] = t.useState({
4
+ width: 0,
5
+ height: 0
6
+ }), [f, u] = t.useState({
7
+ width: 0,
8
+ height: 0,
9
+ top: 0,
10
+ left: 0,
11
+ bottom: 0,
12
+ right: 0,
13
+ x: 0,
14
+ y: 0
15
+ }), i = t.useRef(null);
16
+ return y(() => {
17
+ const o = () => {
18
+ d({
19
+ width: window.innerWidth,
20
+ height: window.innerHeight
21
+ });
22
+ }, w = (h) => {
23
+ for (const l of h) {
24
+ const { width: m, height: a, top: z, left: R, bottom: b, right: v, x: g, y: p } = l.contentRect;
25
+ u({
26
+ width: m,
27
+ height: a,
28
+ top: z,
29
+ left: R,
30
+ bottom: b,
31
+ right: v,
32
+ x: g,
33
+ y: p
34
+ });
35
+ }
36
+ };
37
+ let e = null;
38
+ n ? e = document.querySelector(n) : i.current && (e = i.current);
39
+ const r = new ResizeObserver(w);
40
+ return e && r.observe(e), window.addEventListener("resize", o), o(), () => {
41
+ e && r.unobserve(e), window.removeEventListener("resize", o);
42
+ };
43
+ }, [n, ...s ?? []]), { ref: i, windowSize: c, contentRect: f };
44
+ };
45
+ export {
46
+ S as default,
47
+ y as useIsomorphicLayoutEffect
48
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),i=t=>{const u=t.getTime()-Date.now();return Math.max(Math.floor(u/1e3),0)},w=t=>{const u=a.useMemo(()=>{const e=new Date(t.date);return t.adjustTimesTime&&e.setHours(e.getHours()-t.adjustTimesTime),e},[t.date,t.adjustTimesTime]),[o,g]=a.useState(u),[r,f]=a.useState(()=>i(o)),[c,s]=a.useState(t.running??!1),[l,m]=a.useState(()=>t==null?void 0:t.callbackDone);return a.useEffect(()=>{let e;return c&&r>0&&(e=setInterval(()=>{const n=i(o);f(n),n<=0&&(s(!1),e&&clearInterval(e),typeof l=="function"&&l())},t.intervalMs)),()=>{e&&clearInterval(e)}},[c,o,t.intervalMs,l,r]),{count:r,isRunning:c,startCountdown:()=>{!c&&r>0&&s(!0)},stopCountdown:()=>{s(!1)},resetCountdown:e=>{let n;e instanceof Date?n=e:typeof e=="number"?n=new Date(Date.now()+e*1e3):n=u,g(n);const d=i(n);d<=0?s(!1):s(!0),f(d)},setCallbackDone:e=>m(()=>e)}};exports.default=w;
@@ -0,0 +1,38 @@
1
+ import a from "react";
2
+ const l = (t) => {
3
+ const r = t.getTime() - Date.now();
4
+ return Math.max(Math.floor(r / 1e3), 0);
5
+ }, M = (t) => {
6
+ const r = a.useMemo(() => {
7
+ const e = new Date(t.date);
8
+ return t.adjustTimesTime && e.setHours(e.getHours() - t.adjustTimesTime), e;
9
+ }, [t.date, t.adjustTimesTime]), [o, m] = a.useState(r), [u, i] = a.useState(() => l(o)), [c, s] = a.useState(t.running ?? !1), [f, w] = a.useState(() => t == null ? void 0 : t.callbackDone);
10
+ return a.useEffect(() => {
11
+ let e;
12
+ return c && u > 0 && (e = setInterval(() => {
13
+ const n = l(o);
14
+ i(n), n <= 0 && (s(!1), e && clearInterval(e), typeof f == "function" && f());
15
+ }, t.intervalMs)), () => {
16
+ e && clearInterval(e);
17
+ };
18
+ }, [c, o, t.intervalMs, f, u]), {
19
+ count: u,
20
+ isRunning: c,
21
+ startCountdown: () => {
22
+ !c && u > 0 && s(!0);
23
+ },
24
+ stopCountdown: () => {
25
+ s(!1);
26
+ },
27
+ resetCountdown: (e) => {
28
+ let n;
29
+ e instanceof Date ? n = e : typeof e == "number" ? n = new Date(Date.now() + e * 1e3) : n = r, m(n);
30
+ const d = l(n);
31
+ d <= 0 ? s(!1) : s(!0), i(d);
32
+ },
33
+ setCallbackDone: (e) => w(() => e)
34
+ };
35
+ };
36
+ export {
37
+ M as default
38
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),u=require("../utils/common.cjs");function t(e){const r=o.useRef(e);return u.deepCompareEquals(e,r.current)||(r.current=e),r.current}function n(e,r){const c=r.map(t);o.useEffect(e,c)}exports.useDeepCompareEffect=n;exports.useDeepCompareMemoize=t;
@@ -0,0 +1,14 @@
1
+ import o from "react";
2
+ import { deepCompareEquals as f } from "../utils/common.mjs";
3
+ function m(e) {
4
+ const r = o.useRef(e);
5
+ return f(e, r.current) || (r.current = e), r.current;
6
+ }
7
+ function n(e, r) {
8
+ const t = r.map(m);
9
+ o.useEffect(e, t);
10
+ }
11
+ export {
12
+ n as useDeepCompareEffect,
13
+ m as useDeepCompareMemoize
14
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react");function l(s,i=null){const[o,c]=r.useState(!1);return r.useEffect(()=>{let e=null,t=null;const n=()=>{const u=e instanceof HTMLElement?e.getBoundingClientRect().width:window.innerWidth,d=window.matchMedia(s.replace("WIDTH",u.toString()));c(d.matches)};if(i){if(e=document.getElementById(i),!e)return;t=new ResizeObserver(n),t.observe(e)}else e=window,window.addEventListener("resize",n);return n(),()=>{t?t.disconnect():window.removeEventListener("resize",n)}},[s,i]),o}exports.default=l;
@@ -0,0 +1,23 @@
1
+ import r from "react";
2
+ function u(s, i = null) {
3
+ const [o, c] = r.useState(!1);
4
+ return r.useEffect(() => {
5
+ let e = null, t = null;
6
+ const n = () => {
7
+ const a = e instanceof HTMLElement ? e.getBoundingClientRect().width : window.innerWidth, d = window.matchMedia(s.replace("WIDTH", a.toString()));
8
+ c(d.matches);
9
+ };
10
+ if (i) {
11
+ if (e = document.getElementById(i), !e)
12
+ return;
13
+ t = new ResizeObserver(n), t.observe(e);
14
+ } else
15
+ e = window, window.addEventListener("resize", n);
16
+ return n(), () => {
17
+ t ? t.disconnect() : window.removeEventListener("resize", n);
18
+ };
19
+ }, [s, i]), o;
20
+ }
21
+ export {
22
+ u as default
23
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function s({ref:t,handlerMain:n,eventListener:e="mousedown",useEffectDependency:o=[]}){c.useEffect(()=>{function u(r){n(t,r)}return document.addEventListener(e,u),()=>{document.removeEventListener(e,u)}},[t,n,e,...o])}exports.useEventListener=s;
@@ -0,0 +1,19 @@
1
+ import m from "react";
2
+ function d({
3
+ ref: t,
4
+ handlerMain: n,
5
+ eventListener: e = "mousedown",
6
+ useEffectDependency: u = []
7
+ }) {
8
+ m.useEffect(() => {
9
+ function o(c) {
10
+ n(t, c);
11
+ }
12
+ return document.addEventListener(e, o), () => {
13
+ document.removeEventListener(e, o);
14
+ };
15
+ }, [t, n, e, ...u]);
16
+ }
17
+ export {
18
+ d as useEventListener
19
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const y=require("react"),H=require("./useAsyncDebounce.cjs"),T=({containerRef:h,children:w,columnCount:n,gapX:l,gapY:i,direction:c="masonry-ltr",debounceRecalculate:L=500,durationAnimation:x=500,enableAnimation:p=!1})=>{const e=y.useCallback(()=>{const o=h.current;if(!o)return;const v=Array.from(o.children);if(v.length===0){o.style.height="0px";return}const r=Array(n).fill(0),f=o.offsetWidth;if(f===0)return;const u=(f-(n-1)*l)/n,E=c.includes("rtl"),b=c.includes("top-down");v.forEach((s,m)=>{s.style.width=`${u}px`,s.style.position="absolute",p&&(s.style.transition=`top ${x}ms ease, left ${x}ms ease`);let t;if(b)t=m%n;else{const g=Math.min(...r);t=r.indexOf(g)}const M=r[t];let d;E?d=f-(u*(t+1)+l*t):d=t*(u+l),s.style.top=`${M}px`,s.style.left=`${d}px`,r[t]+=s.offsetHeight+i});const $=Math.max(...r);o.style.height=`${$-i}px`},[h,n,l,c,i]),a=H.default(async()=>{e()},L);return y.useLayoutEffect(()=>{e()},[w,e]),y.useEffect(()=>(window.addEventListener("load",e),window.addEventListener("resize",a),()=>{window.removeEventListener("load",e),window.removeEventListener("resize",a)}),[w,a,e]),{recalculateLayout:e}};exports.default=T;
@@ -0,0 +1,53 @@
1
+ import y from "react";
2
+ import W from "./useAsyncDebounce.mjs";
3
+ const A = ({
4
+ containerRef: u,
5
+ children: w,
6
+ columnCount: n,
7
+ gapX: i,
8
+ gapY: l,
9
+ direction: c = "masonry-ltr",
10
+ debounceRecalculate: m = 500,
11
+ durationAnimation: x = 500,
12
+ enableAnimation: L = !1
13
+ }) => {
14
+ const e = y.useCallback(() => {
15
+ const o = u.current;
16
+ if (!o) return;
17
+ const p = Array.from(o.children);
18
+ if (p.length === 0) {
19
+ o.style.height = "0px";
20
+ return;
21
+ }
22
+ const r = Array(n).fill(0), f = o.offsetWidth;
23
+ if (f === 0) return;
24
+ const d = (f - (n - 1) * i) / n, E = c.includes("rtl"), v = c.includes("top-down");
25
+ p.forEach((s, b) => {
26
+ s.style.width = `${d}px`, s.style.position = "absolute", L && (s.style.transition = `top ${x}ms ease, left ${x}ms ease`);
27
+ let t;
28
+ if (v)
29
+ t = b % n;
30
+ else {
31
+ const M = Math.min(...r);
32
+ t = r.indexOf(M);
33
+ }
34
+ const H = r[t];
35
+ let h;
36
+ E ? h = f - (d * (t + 1) + i * t) : h = t * (d + i), s.style.top = `${H}px`, s.style.left = `${h}px`, r[t] += s.offsetHeight + l;
37
+ });
38
+ const $ = Math.max(...r);
39
+ o.style.height = `${$ - l}px`;
40
+ }, [u, n, i, c, l]), a = W(async () => {
41
+ e();
42
+ }, m);
43
+ return y.useLayoutEffect(() => {
44
+ e();
45
+ }, [w, e]), y.useEffect(() => (window.addEventListener("load", e), window.addEventListener("resize", a), () => {
46
+ window.removeEventListener("load", e), window.removeEventListener("resize", a);
47
+ }), [w, a, e]), {
48
+ recalculateLayout: e
49
+ };
50
+ };
51
+ export {
52
+ A as default
53
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react");function t(e,n){if(e!=null){if(typeof e=="function"){e(n);return}try{e.current=n}catch{throw new Error(`Cannot assign value '${JSON.stringify(n)}' to ref '${JSON.stringify(e)}'`)}}}function r(...e){return n=>{e.forEach(i=>{t(i,n)})}}function o(...e){return s.useMemo(()=>r(...e),e)}exports.assignRef=t;exports.mergeRefs=r;exports.useMergeRefs=o;
@@ -0,0 +1,29 @@
1
+ import e from "react";
2
+ function o(n, t) {
3
+ if (n != null) {
4
+ if (typeof n == "function") {
5
+ n(t);
6
+ return;
7
+ }
8
+ try {
9
+ n.current = t;
10
+ } catch {
11
+ throw new Error(`Cannot assign value '${JSON.stringify(t)}' to ref '${JSON.stringify(n)}'`);
12
+ }
13
+ }
14
+ }
15
+ function i(...n) {
16
+ return (t) => {
17
+ n.forEach((r) => {
18
+ o(r, t);
19
+ });
20
+ };
21
+ }
22
+ function f(...n) {
23
+ return e.useMemo(() => i(...n), n);
24
+ }
25
+ export {
26
+ o as assignRef,
27
+ i as mergeRefs,
28
+ f as useMergeRefs
29
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react"),A=require("../utils/common.cjs"),v=({id:y,numInputs:e,onComplete:i,disableFocusOnEdit:w=!1,blurOnComplete:h=!1,disableOnComplete:O=!1})=>{const[c,D]=u.useState(()=>Array(e).fill("")),r=u.useRef([]),[S]=u.useState(()=>`otp-${Math.random().toString(36).slice(2,9)}`),d=y||S;u.useEffect(()=>{r.current=r.current.slice(0,e)},[e]);const F=u.useCallback((t,a)=>{var g,b;const o=t.target.value,s=o.length>1?o.slice(-1):o,l=c[a]!=="",f=[...c];f[a]=s,D(f);const p=f.join(""),n=!f.slice(0,e).includes("");s!==""&&a<e-1&&(w&&l&&n||(g=r.current[a+1])==null||g.focus()),n&&(typeof i=="function"&&i(p),h&&((b=r.current[a])==null||b.blur()))},[c,e,i,w,h]),$=u.useCallback((t,a)=>{var o,s,l,f,p;switch(t.key){case"Backspace":if(c[a]===""&&a>0){t.preventDefault();const n=[...c];n[a-1]="",D(n),(o=r.current[a-1])==null||o.focus()}break;case"ArrowLeft":a>0&&(t.preventDefault(),(s=r.current[a-1])==null||s.focus());break;case"ArrowRight":a<e-1&&(t.preventDefault(),(l=r.current[a+1])==null||l.focus());break;case"Home":t.preventDefault(),(f=r.current[0])==null||f.focus();break;case"End":t.preventDefault(),(p=r.current[e-1])==null||p.focus();break}},[c,e]),j=u.useCallback((t,a)=>{var g,b;t.preventDefault();const o=t.clipboardData.getData("text").trim();if(!o)return;const s=[...c];let l=a;for(const M of o){if(l>=e)break;s[l]=M,l++}D(s);const f=s.join(""),p=!s.includes(""),n=Math.min(l,e-1);(g=r.current[n])==null||g.focus(),p&&(typeof i=="function"&&i(f),h&&((b=r.current[n])==null||b.blur()))},[c,e,i,h]),P=t=>{t.target.select()},V=()=>{var t;D(Array(e).fill("")),(t=r.current[0])==null||t.focus()},k=t=>{if(t<0||t>=e)throw new Error(`useOtpInput: index ${t} is out of bounds for numInputs ${e}.`);const a=c.join("").length===e;return{id:`${d}-${t}`,"aria-label":`OTP digit ${t+1} of ${e}`,ref:o=>{r.current[t]=o},value:c[t],onChange:o=>F(o,t),onKeyDown:o=>$(o,t),onPaste:o=>j(o,t),onFocus:P,disabled:O&&a,type:"text",inputMode:"numeric",autoComplete:"one-time-code"}};return{getInputProps:k,getInputData:t=>({...A.deleteKeysImmutable(k(t),["onChange","onKeyDown","onPaste","onFocus","aria-label","autoComplete"]),isOtpFilled:c[t]!==""}),otpValues:c,otpString:c.join(""),clearOtp:V,isOtpComplete:c.join("").length===e}};exports.default=v;exports.useOtpInput=v;
@@ -0,0 +1,115 @@
1
+ import u from "react";
2
+ import { deleteKeysImmutable as A } from "../utils/common.mjs";
3
+ const C = ({
4
+ id: y,
5
+ numInputs: e,
6
+ onComplete: i,
7
+ disableFocusOnEdit: w = !1,
8
+ blurOnComplete: b = !1,
9
+ disableOnComplete: v = !1
10
+ }) => {
11
+ const [r, D] = u.useState(() => Array(e).fill("")), c = u.useRef([]), [O] = u.useState(() => `otp-${Math.random().toString(36).slice(2, 9)}`), F = y || O;
12
+ u.useEffect(() => {
13
+ c.current = c.current.slice(0, e);
14
+ }, [e]);
15
+ const $ = u.useCallback(
16
+ (t, a) => {
17
+ var g, h;
18
+ const o = t.target.value, s = o.length > 1 ? o.slice(-1) : o, l = r[a] !== "", f = [...r];
19
+ f[a] = s, D(f);
20
+ const p = f.join(""), n = !f.slice(0, e).includes("");
21
+ s !== "" && a < e - 1 && (w && l && n || (g = c.current[a + 1]) == null || g.focus()), n && (typeof i == "function" && i(p), b && ((h = c.current[a]) == null || h.blur()));
22
+ },
23
+ [r, e, i, w, b]
24
+ ), S = u.useCallback(
25
+ (t, a) => {
26
+ var o, s, l, f, p;
27
+ switch (t.key) {
28
+ case "Backspace":
29
+ if (r[a] === "" && a > 0) {
30
+ t.preventDefault();
31
+ const n = [...r];
32
+ n[a - 1] = "", D(n), (o = c.current[a - 1]) == null || o.focus();
33
+ }
34
+ break;
35
+ case "ArrowLeft":
36
+ a > 0 && (t.preventDefault(), (s = c.current[a - 1]) == null || s.focus());
37
+ break;
38
+ case "ArrowRight":
39
+ a < e - 1 && (t.preventDefault(), (l = c.current[a + 1]) == null || l.focus());
40
+ break;
41
+ case "Home":
42
+ t.preventDefault(), (f = c.current[0]) == null || f.focus();
43
+ break;
44
+ case "End":
45
+ t.preventDefault(), (p = c.current[e - 1]) == null || p.focus();
46
+ break;
47
+ }
48
+ },
49
+ [r, e]
50
+ ), V = u.useCallback(
51
+ (t, a) => {
52
+ var g, h;
53
+ t.preventDefault();
54
+ const o = t.clipboardData.getData("text").trim();
55
+ if (!o) return;
56
+ const s = [...r];
57
+ let l = a;
58
+ for (const d of o) {
59
+ if (l >= e) break;
60
+ s[l] = d, l++;
61
+ }
62
+ D(s);
63
+ const f = s.join(""), p = !s.includes(""), n = Math.min(l, e - 1);
64
+ (g = c.current[n]) == null || g.focus(), p && (typeof i == "function" && i(f), b && ((h = c.current[n]) == null || h.blur()));
65
+ },
66
+ [r, e, i, b]
67
+ ), j = (t) => {
68
+ t.target.select();
69
+ }, P = () => {
70
+ var t;
71
+ D(Array(e).fill("")), (t = c.current[0]) == null || t.focus();
72
+ }, k = (t) => {
73
+ if (t < 0 || t >= e)
74
+ throw new Error(`useOtpInput: index ${t} is out of bounds for numInputs ${e}.`);
75
+ const a = r.join("").length === e;
76
+ return {
77
+ id: `${F}-${t}`,
78
+ "aria-label": `OTP digit ${t + 1} of ${e}`,
79
+ ref: (o) => {
80
+ c.current[t] = o;
81
+ },
82
+ value: r[t],
83
+ onChange: (o) => $(o, t),
84
+ onKeyDown: (o) => S(o, t),
85
+ onPaste: (o) => V(o, t),
86
+ onFocus: j,
87
+ disabled: v && a,
88
+ type: "text",
89
+ inputMode: "numeric",
90
+ autoComplete: "one-time-code"
91
+ };
92
+ };
93
+ return {
94
+ getInputProps: k,
95
+ getInputData: (t) => ({
96
+ ...A(k(t), [
97
+ "onChange",
98
+ "onKeyDown",
99
+ "onPaste",
100
+ "onFocus",
101
+ "aria-label",
102
+ "autoComplete"
103
+ ]),
104
+ isOtpFilled: r[t] !== ""
105
+ }),
106
+ otpValues: r,
107
+ otpString: r.join(""),
108
+ clearOtp: P,
109
+ isOtpComplete: r.join("").length === e
110
+ };
111
+ };
112
+ export {
113
+ C as default,
114
+ C as useOtpInput
115
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react");function a(r){const[e,s]=t.useState(r),u=t.useRef(e);return t.useEffect(()=>{u.current=e},[e]),[e,s,u]}exports.default=a;
@@ -0,0 +1,10 @@
1
+ import t from "react";
2
+ function a(f) {
3
+ const [e, r] = t.useState(f), u = t.useRef(e);
4
+ return t.useEffect(() => {
5
+ u.current = e;
6
+ }, [e]), [e, r, u];
7
+ }
8
+ export {
9
+ a as default
10
+ };