1mpacto-react-ui 2.0.16 → 2.0.18

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 (312) 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/src/components/Chart/PieChart.d.ts +3 -0
  300. package/dist/src/components/Chart/PieChart.stories.d.ts +147 -0
  301. package/dist/src/interfaces/components/Chart/index.d.ts +203 -0
  302. package/dist/utils/axiosBigNumber.cjs +1 -0
  303. package/dist/utils/axiosBigNumber.mjs +32 -0
  304. package/dist/utils/common.cjs +1 -0
  305. package/dist/utils/common.mjs +264 -0
  306. package/dist/utils/cookies.cjs +1 -0
  307. package/dist/utils/cookies.mjs +48 -0
  308. package/dist/utils/formatBigNumber.cjs +1 -0
  309. package/dist/utils/formatBigNumber.mjs +39 -0
  310. package/dist/utils/yup.cjs +1 -0
  311. package/dist/utils/yup.mjs +78 -0
  312. package/package.json +3 -2
@@ -0,0 +1,122 @@
1
+ import { jsx as n, Fragment as N, jsxs as c } from "react/jsx-runtime";
2
+ import { useState as l, isValidElement as b, createElement as q } from "react";
3
+ import s from "./itemSidebar.module.scss.mjs";
4
+ import { configItemSidebar as d } from "./ItemSidebar.config.mjs";
5
+ const w = ({
6
+ as: x,
7
+ show: p,
8
+ open: t,
9
+ patch: A,
10
+ iconSubs: r,
11
+ variant: m = "payhere-brand-base-white",
12
+ setShow: g,
13
+ onClickItems: O,
14
+ propsLink: f,
15
+ ...i
16
+ }) => {
17
+ var C, a, E, k, F, R, T, V;
18
+ let h = /* @__PURE__ */ n(N, {});
19
+ const H = x ?? "div", [M, $] = l(!1), I = A === i.slug, y = p.split("/"), e = y.includes(i.name), j = () => {
20
+ if (i.subs.length > 0)
21
+ if (e) {
22
+ const o = y.splice(0, y.indexOf(i.name));
23
+ o.length > 0 ? g(`${o.join("/")}/`) : g("");
24
+ } else
25
+ g(`${p}${i.name}/`);
26
+ else typeof O == "function" && O(i);
27
+ };
28
+ return i.isShow ? ([1, 3, 5, 6, 7, 8].includes(i.parent) && (h = /* @__PURE__ */ c(N, { children: [
29
+ /* @__PURE__ */ c(
30
+ H,
31
+ {
32
+ id: i.name,
33
+ className: `${s["item-sidebar-1"]}
34
+ ${(C = d.variant) == null ? void 0 : C[m]} ${(a = d.parent) == null ? void 0 : a[i.parent.toString()]}
35
+ ${I || i.subs.length > 0 && e ? s.active : ""} ${typeof t == "boolean" && t ? s["item-sidebar-open"] : ""} ${typeof t == "boolean" && !t ? s["item-sidebar-close"] : ""}
36
+ `,
37
+ onClick: j,
38
+ onMouseOver: () => $(!0),
39
+ onMouseOut: () => $(!1),
40
+ ...f ? f(i.slug, i) : {},
41
+ children: [
42
+ /* @__PURE__ */ c("div", { className: "iru-flex iru-items-center iru-gap-3 iru-relative", children: [
43
+ b(i.svgIcon) && /* @__PURE__ */ n("div", { className: s["item-icon"], children: I || i.subs.length > 0 && e ? i == null ? void 0 : i.svgIconActive : M ? (i == null ? void 0 : i.svgIconHover) || (i == null ? void 0 : i.svgIconActive) : i == null ? void 0 : i.svgIcon }),
44
+ /* @__PURE__ */ n("div", { className: s["item-label"], children: i.label })
45
+ ] }),
46
+ b(i.endIcon) && /* @__PURE__ */ n("div", { className: s["end-icon"], children: i == null ? void 0 : i.endIcon }),
47
+ i.subs.length > 0 && t && /* @__PURE__ */ c(
48
+ "div",
49
+ {
50
+ className: `${s["item-icon-subs"]} ${e ? s["item-icon-subs-active"] : ""}`,
51
+ id: `item-sidebar-subs-${i.name}-icon`,
52
+ children: [
53
+ b(r) && r,
54
+ typeof r == "function" && r()
55
+ ]
56
+ }
57
+ )
58
+ ]
59
+ }
60
+ ),
61
+ i.parent === 3 && !i.subs.length && /* @__PURE__ */ n("div", { className: (E = d.divider) == null ? void 0 : E[m] })
62
+ ] })), (i.parent === 2 || i.parent === 4) && (h = /* @__PURE__ */ c(N, { children: [
63
+ /* @__PURE__ */ c(
64
+ H,
65
+ {
66
+ id: i.name,
67
+ className: `${s["item-sidebar-2"]}
68
+ ${(k = d.variant) == null ? void 0 : k[m]} ${(F = d.parent) == null ? void 0 : F[i.parent.toString()]}
69
+ ${I || i.subs.length > 0 && e ? s.active : ""} ${typeof t == "boolean" && t ? s["item-sidebar-open"] : ""} ${typeof t == "boolean" && !t ? s["item-sidebar-close"] : ""}
70
+ `,
71
+ onClick: j,
72
+ onMouseOver: () => $(!0),
73
+ onMouseOut: () => $(!1),
74
+ ...f ? f(i.slug, i) : {},
75
+ children: [
76
+ b(i.svgIcon) && /* @__PURE__ */ n("div", { className: s["item-icon"], children: I || i.subs.length > 0 && e ? i == null ? void 0 : i.svgIconActive : M ? (i == null ? void 0 : i.svgIconHover) || (i == null ? void 0 : i.svgIconActive) : i == null ? void 0 : i.svgIcon }),
77
+ /* @__PURE__ */ n("div", { className: s["item-label"], children: i.label }),
78
+ i.subs.length > 0 && t && /* @__PURE__ */ c(
79
+ "div",
80
+ {
81
+ className: `${s["item-icon-subs"]} ${e ? s["item-icon-subs-active"] : ""}`,
82
+ id: `item-sidebar-subs-${i.name}-icon`,
83
+ children: [
84
+ b(r) && r,
85
+ typeof r == "function" && r()
86
+ ]
87
+ }
88
+ )
89
+ ]
90
+ }
91
+ ),
92
+ i.parent === 4 && !i.subs.length && /* @__PURE__ */ n("div", { className: (R = d.divider) == null ? void 0 : R[m] })
93
+ ] })), i.subs.length > 0 ? /* @__PURE__ */ c("div", { className: `${t || e ? "" : "-mt-2"}`, children: [
94
+ h,
95
+ /* @__PURE__ */ n(
96
+ "div",
97
+ {
98
+ id: `item-sidebar-subs-${i.name}-${t && e ? "open" : "close"}`,
99
+ className: `${s["item-subs-sidebar"]}
100
+ ${(T = d.variant) == null ? void 0 : T[m]} ${!t || !e ? s.hidden : ""}`,
101
+ children: i.subs.map((o) => /* @__PURE__ */ q(
102
+ w,
103
+ {
104
+ ...o,
105
+ as: o.manualRoute ? "div" : o.subs.length > 0 ? x : i.linkComponent,
106
+ key: o.name,
107
+ patch: A,
108
+ iconSubs: r,
109
+ show: p,
110
+ open: t,
111
+ variant: m,
112
+ setShow: g
113
+ }
114
+ ))
115
+ }
116
+ ),
117
+ [3, 4].includes(i.parent) && /* @__PURE__ */ n("div", { className: (V = d.divider) == null ? void 0 : V[m] })
118
+ ] }) : h) : /* @__PURE__ */ n(N, {});
119
+ };
120
+ export {
121
+ w as default
122
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),e=require("react"),a=require("./Sidebar.module.scss.cjs"),A=require("./ItemSidebar.cjs"),W=require("../../config/tailwind/nativeScreen.cjs"),v=require("./Sidebar.config.cjs"),k=e.forwardRef((q,O)=>{var I;const{as:w,children:C,patch:d="/",iconCompany:r,iconSubs:$,iconCollapse:m,iconCollapseClose:g,modules:V,toleranceWidthIconCompany:L=25,onClickItems:M,variant:c="payhere-brand-base-white",footer:o,withInheritance:j,id:p="1ru-sidebar",styleSidebar:_,styleContent:z,...F}=q,T=e.useRef(null),[i,l]=e.useState(null),[s,f]=e.useState(null),[B,x]=e.useState(""),[E,h]=e.useState(),[N,P]=e.useState(0),b=()=>{var R;let n=0;const S=document.getElementById("icon-company-sidebar");(R=S==null?void 0:S.childNodes)==null||R.forEach(H=>{n+=H.getBoundingClientRect().width??0}),h(n+L+"px")},y=()=>{P(window.innerWidth)},u=()=>{l(!s),s?h("auto"):setTimeout(()=>{b()},100)};return e.useEffect(()=>{N>=(v.configSidebar.mobileSupport.includes(c)?W.default.lg:W.default.md)?(l(!0),setTimeout(()=>{b()},100)):(l(!1),h("auto"))},[N]),e.useEffect(()=>{typeof i=="boolean"&&f(i)},[i]),e.useImperativeHandle(O,()=>({openSidebar:i,setOpenSidebar:l,handlerClickCollapse:u}),[i,s]),e.useEffect(()=>(d&&d.split("/").length>1&&x(d+"/"),b(),y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[]),t.jsxs("div",{className:v.configSidebar.variants[c],...F,ref:T,children:[t.jsxs("div",{id:p,className:`${a.default.sidebar} ${typeof s=="boolean"&&s?a.default["sidebar-open"]:""} ${typeof s=="boolean"&&!s?a.default["sidebar-close"]:""}`,style:_||{},children:[e.isValidElement(m)&&t.jsxs("div",{className:a.default["button-collaps-sidebar"],id:`${p}-${i?"close-collapse":"open-collapse"}`,onClick:u,children:[i&&m,i?"":e.isValidElement(g)?g:m]}),t.jsx("div",{className:a.default["container-icon-company-sidebar"],children:t.jsxs("div",{id:"icon-company-sidebar",className:a.default["icon-company-sidebar"],style:{width:E&&v.configSidebar.withCuctomWidthIconCompany.includes(c)?E:"100%"},children:[e.isValidElement(r)&&r,typeof r=="function"&&r({openSidebar:s,setOpenSidebar:l})]})}),t.jsx("div",{className:a.default["menu-sidebar"],onMouseOver:()=>{i||f(!0)},onMouseOut:()=>{i||f(!1)},children:V.map(n=>e.createElement(A.default,{...n,as:n.manualRoute||n.subs.length>0?"div":w,linkComponent:w,key:n.name,show:B,open:s,patch:d,iconSubs:$,variant:c,setShow:x,onClickItems:M}))}),o&&t.jsxs("div",{className:s?"iru-opacity-[1]":"iru-opacity-0",children:[e.isValidElement(o)&&t.jsx("div",{children:o}),typeof o=="function"&&t.jsx("div",{children:o()})]})]}),i&&t.jsx("div",{id:`${p}-splace-screen`,className:a.default["splace-screen"],onClick:u}),t.jsxs("div",{className:a.default["content-sidebar"],style:z||{},children:[j&&((I=e.Children)==null?void 0:I.map(C,n=>t.jsx(t.Fragment,{children:e.isValidElement(n)&&t.jsx(t.Fragment,{children:e.cloneElement(n,{openSidebar:i,handlerClickCollapse:u})})}))),!j&&t.jsx(t.Fragment,{children:C})]})]})});k.displayName="Sidebar";exports.default=k;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Sidebar.module.scss.cjs"),a={withCuctomWidthIconCompany:["payhere-brand-base-white","payhere-brand-base-transparent"],variants:{"payhere-brand-base-white":e.default["payhere-brand-base-white"],"payhere-brand-base-transparent":e.default["payhere-brand-base-transparent"],"payhere-brand-indigo-900-transparent":e.default["payhere-brand-indigo-900-transparent"],"payhere-brand-blue-gray-900-transparent":e.default["payhere-brand-blue-gray-900-transparent"],"laba-white":e.default["laba-white"],"lpd-brand-base-white":e.default["lpd-brand-base-white"],"lpd-brand-base-transparent":e.default["lpd-brand-base-transparent"],"lpd-brand-base-white-responsive":e.default["lpd-brand-base-white-responsive"],"lpd-brand-base-transparent-responsive":e.default["lpd-brand-base-transparent-responsive"],"bill-brand-base":e.default["bill-brand-base"],"bill-brand-base-responsive":e.default["bill-brand-base-responsive"]},mobileSupport:["lpd-brand-base-transparent-responsive","lpd-brand-base-white-responsive","bill-brand-base-responsive"]};exports.configSidebar=a;
@@ -0,0 +1,25 @@
1
+ import a from "./Sidebar.module.scss.mjs";
2
+ const r = {
3
+ withCuctomWidthIconCompany: ["payhere-brand-base-white", "payhere-brand-base-transparent"],
4
+ variants: {
5
+ "payhere-brand-base-white": a["payhere-brand-base-white"],
6
+ "payhere-brand-base-transparent": a["payhere-brand-base-transparent"],
7
+ "payhere-brand-indigo-900-transparent": a["payhere-brand-indigo-900-transparent"],
8
+ "payhere-brand-blue-gray-900-transparent": a["payhere-brand-blue-gray-900-transparent"],
9
+ "laba-white": a["laba-white"],
10
+ "lpd-brand-base-white": a["lpd-brand-base-white"],
11
+ "lpd-brand-base-transparent": a["lpd-brand-base-transparent"],
12
+ "lpd-brand-base-white-responsive": a["lpd-brand-base-white-responsive"],
13
+ "lpd-brand-base-transparent-responsive": a["lpd-brand-base-transparent-responsive"],
14
+ "bill-brand-base": a["bill-brand-base"],
15
+ "bill-brand-base-responsive": a["bill-brand-base-responsive"]
16
+ },
17
+ mobileSupport: [
18
+ "lpd-brand-base-transparent-responsive",
19
+ "lpd-brand-base-white-responsive",
20
+ "bill-brand-base-responsive"
21
+ ]
22
+ };
23
+ export {
24
+ r as configSidebar
25
+ };
@@ -0,0 +1,136 @@
1
+ import { jsxs as a, jsx as s, Fragment as S } from "react/jsx-runtime";
2
+ import e, { createElement as G } from "react";
3
+ import o from "./Sidebar.module.scss.mjs";
4
+ import J from "./ItemSidebar.mjs";
5
+ import V from "../../config/tailwind/nativeScreen.mjs";
6
+ import { configSidebar as v } from "./Sidebar.config.mjs";
7
+ const K = e.forwardRef(
8
+ (x, L) => {
9
+ var $;
10
+ const {
11
+ as: E,
12
+ children: N,
13
+ patch: r = "/",
14
+ iconCompany: c,
15
+ iconSubs: z,
16
+ iconCollapse: u,
17
+ iconCollapseClose: g,
18
+ modules: j,
19
+ toleranceWidthIconCompany: B = 25,
20
+ onClickItems: M,
21
+ variant: m = "payhere-brand-base-white",
22
+ footer: l,
23
+ withInheritance: I,
24
+ id: h = "1ru-sidebar",
25
+ styleSidebar: T,
26
+ styleContent: F,
27
+ ...H
28
+ } = x, P = e.useRef(null), [i, d] = e.useState(null), [t, f] = e.useState(null), [q, R] = e.useState(""), [W, b] = e.useState(), [k, A] = e.useState(0), y = () => {
29
+ var O;
30
+ let n = 0;
31
+ const C = document.getElementById("icon-company-sidebar");
32
+ (O = C == null ? void 0 : C.childNodes) == null || O.forEach((D) => {
33
+ n += D.getBoundingClientRect().width ?? 0;
34
+ }), b(n + B + "px");
35
+ }, w = () => {
36
+ A(window.innerWidth);
37
+ }, p = () => {
38
+ d(!t), t ? b("auto") : setTimeout(() => {
39
+ y();
40
+ }, 100);
41
+ };
42
+ return e.useEffect(() => {
43
+ k >= (v.mobileSupport.includes(m) ? V.lg : V.md) ? (d(!0), setTimeout(() => {
44
+ y();
45
+ }, 100)) : (d(!1), b("auto"));
46
+ }, [k]), e.useEffect(() => {
47
+ typeof i == "boolean" && f(i);
48
+ }, [i]), e.useImperativeHandle(
49
+ L,
50
+ () => ({
51
+ openSidebar: i,
52
+ setOpenSidebar: d,
53
+ handlerClickCollapse: p
54
+ }),
55
+ [i, t]
56
+ ), e.useEffect(() => (r && r.split("/").length > 1 && R(r + "/"), y(), w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w)), []), /* @__PURE__ */ a("div", { className: v.variants[m], ...H, ref: P, children: [
57
+ /* @__PURE__ */ a(
58
+ "div",
59
+ {
60
+ id: h,
61
+ className: `${o.sidebar} ${typeof t == "boolean" && t ? o["sidebar-open"] : ""} ${typeof t == "boolean" && !t ? o["sidebar-close"] : ""}`,
62
+ style: T || {},
63
+ children: [
64
+ e.isValidElement(u) && /* @__PURE__ */ a(
65
+ "div",
66
+ {
67
+ className: o["button-collaps-sidebar"],
68
+ id: `${h}-${i ? "close-collapse" : "open-collapse"}`,
69
+ onClick: p,
70
+ children: [
71
+ i && u,
72
+ i ? "" : e.isValidElement(g) ? g : u
73
+ ]
74
+ }
75
+ ),
76
+ /* @__PURE__ */ s("div", { className: o["container-icon-company-sidebar"], children: /* @__PURE__ */ a(
77
+ "div",
78
+ {
79
+ id: "icon-company-sidebar",
80
+ className: o["icon-company-sidebar"],
81
+ style: {
82
+ width: W && v.withCuctomWidthIconCompany.includes(m) ? W : "100%"
83
+ },
84
+ children: [
85
+ e.isValidElement(c) && c,
86
+ typeof c == "function" && c({ openSidebar: t, setOpenSidebar: d })
87
+ ]
88
+ }
89
+ ) }),
90
+ /* @__PURE__ */ s(
91
+ "div",
92
+ {
93
+ className: o["menu-sidebar"],
94
+ onMouseOver: () => {
95
+ i || f(!0);
96
+ },
97
+ onMouseOut: () => {
98
+ i || f(!1);
99
+ },
100
+ children: j.map((n) => /* @__PURE__ */ G(
101
+ J,
102
+ {
103
+ ...n,
104
+ as: n.manualRoute || n.subs.length > 0 ? "div" : E,
105
+ linkComponent: E,
106
+ key: n.name,
107
+ show: q,
108
+ open: t,
109
+ patch: r,
110
+ iconSubs: z,
111
+ variant: m,
112
+ setShow: R,
113
+ onClickItems: M
114
+ }
115
+ ))
116
+ }
117
+ ),
118
+ l && /* @__PURE__ */ a("div", { className: t ? "iru-opacity-[1]" : "iru-opacity-0", children: [
119
+ e.isValidElement(l) && /* @__PURE__ */ s("div", { children: l }),
120
+ typeof l == "function" && /* @__PURE__ */ s("div", { children: l() })
121
+ ] })
122
+ ]
123
+ }
124
+ ),
125
+ i && /* @__PURE__ */ s("div", { id: `${h}-splace-screen`, className: o["splace-screen"], onClick: p }),
126
+ /* @__PURE__ */ a("div", { className: o["content-sidebar"], style: F || {}, children: [
127
+ I && (($ = e.Children) == null ? void 0 : $.map(N, (n) => /* @__PURE__ */ s(S, { children: e.isValidElement(n) && /* @__PURE__ */ s(S, { children: e.cloneElement(n, { openSidebar: i, handlerClickCollapse: p }) }) }))),
128
+ !I && /* @__PURE__ */ s(S, { children: N })
129
+ ] })
130
+ ] });
131
+ }
132
+ );
133
+ K.displayName = "Sidebar";
134
+ export {
135
+ K as default
136
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_sidebar_1lllp_16",a={"splace-screen":"_splace-screen_1lllp_1","payhere-brand-base-white":"_payhere-brand-base-white_1lllp_13",sidebar:e,"button-collaps-sidebar":"_button-collaps-sidebar_1lllp_31","menu-sidebar":"_menu-sidebar_1lllp_48","sidebar-open":"_sidebar-open_1lllp_79","container-icon-company-sidebar":"_container-icon-company-sidebar_1lllp_96","icon-company-sidebar":"_icon-company-sidebar_1lllp_99","sidebar-close":"_sidebar-close_1lllp_107","content-sidebar":"_content-sidebar_1lllp_132","payhere-brand-base-transparent":"_payhere-brand-base-transparent_1lllp_211","payhere-brand-blue-gray-900-transparent":"_payhere-brand-blue-gray-900-transparent_1lllp_409","payhere-brand-indigo-900-transparent":"_payhere-brand-indigo-900-transparent_1lllp_607","laba-white":"_laba-white_1lllp_805","lpd-brand-base-white":"_lpd-brand-base-white_1lllp_1195","lpd-brand-base-transparent":"_lpd-brand-base-transparent_1lllp_1393","lpd-brand-base-white-responsive":"_lpd-brand-base-white-responsive_1lllp_1591","lpd-brand-base-transparent-responsive":"_lpd-brand-base-transparent-responsive_1lllp_1825","bill-brand-base":"_bill-brand-base_1lllp_2059","bill-brand-base-responsive":"_bill-brand-base-responsive_1lllp_2460"};exports.default=a;exports.sidebar=e;
@@ -0,0 +1,26 @@
1
+ const e = "_sidebar_1lllp_16", a = {
2
+ "splace-screen": "_splace-screen_1lllp_1",
3
+ "payhere-brand-base-white": "_payhere-brand-base-white_1lllp_13",
4
+ sidebar: e,
5
+ "button-collaps-sidebar": "_button-collaps-sidebar_1lllp_31",
6
+ "menu-sidebar": "_menu-sidebar_1lllp_48",
7
+ "sidebar-open": "_sidebar-open_1lllp_79",
8
+ "container-icon-company-sidebar": "_container-icon-company-sidebar_1lllp_96",
9
+ "icon-company-sidebar": "_icon-company-sidebar_1lllp_99",
10
+ "sidebar-close": "_sidebar-close_1lllp_107",
11
+ "content-sidebar": "_content-sidebar_1lllp_132",
12
+ "payhere-brand-base-transparent": "_payhere-brand-base-transparent_1lllp_211",
13
+ "payhere-brand-blue-gray-900-transparent": "_payhere-brand-blue-gray-900-transparent_1lllp_409",
14
+ "payhere-brand-indigo-900-transparent": "_payhere-brand-indigo-900-transparent_1lllp_607",
15
+ "laba-white": "_laba-white_1lllp_805",
16
+ "lpd-brand-base-white": "_lpd-brand-base-white_1lllp_1195",
17
+ "lpd-brand-base-transparent": "_lpd-brand-base-transparent_1lllp_1393",
18
+ "lpd-brand-base-white-responsive": "_lpd-brand-base-white-responsive_1lllp_1591",
19
+ "lpd-brand-base-transparent-responsive": "_lpd-brand-base-transparent-responsive_1lllp_1825",
20
+ "bill-brand-base": "_bill-brand-base_1lllp_2059",
21
+ "bill-brand-base-responsive": "_bill-brand-base-responsive_1lllp_2460"
22
+ };
23
+ export {
24
+ a as default,
25
+ e as sidebar
26
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_hidden_t2dfc_96",i="_active_t2dfc_152",d={"item-icon-subs":"_item-icon-subs_t2dfc_1","item-sidebar-2":"_item-sidebar-2_t2dfc_1","item-sidebar-1":"_item-sidebar-1_t2dfc_1","end-icon":"_end-icon_t2dfc_1","item-icon":"_item-icon_t2dfc_1","item-label":"_item-label_t2dfc_25","item-sidebar-open":"_item-sidebar-open_t2dfc_51","item-sidebar-close":"_item-sidebar-close_t2dfc_66","item-icon-subs-active":"_item-icon-subs-active_t2dfc_75","item-subs-sidebar":"_item-subs-sidebar_t2dfc_82","sidebar-bill":"_sidebar-bill_t2dfc_85",hidden:e,"divider-item-sidebar-payhere":"_divider-item-sidebar-payhere_t2dfc_106","divider-item-sidebar-lpd":"_divider-item-sidebar-lpd_t2dfc_111","parent-sidebar-5":"_parent-sidebar-5_t2dfc_133","parent-sidebar-6":"_parent-sidebar-6_t2dfc_137","parent-sidebar-7":"_parent-sidebar-7_t2dfc_141","parent-sidebar-8":"_parent-sidebar-8_t2dfc_146",active:i,"sidebar-payhere-blue-gray-800":"_sidebar-payhere-blue-gray-800_t2dfc_162","sidebar-payhere-indigo-800":"_sidebar-payhere-indigo-800_t2dfc_188","sidebar-payhere":"_sidebar-payhere_t2dfc_162","sidebar-laba":"_sidebar-laba_t2dfc_240","sidebar-lpd":"_sidebar-lpd_t2dfc_273"};exports.active=i;exports.default=d;exports.hidden=e;
@@ -0,0 +1,31 @@
1
+ const e = "_hidden_t2dfc_96", i = "_active_t2dfc_152", d = {
2
+ "item-icon-subs": "_item-icon-subs_t2dfc_1",
3
+ "item-sidebar-2": "_item-sidebar-2_t2dfc_1",
4
+ "item-sidebar-1": "_item-sidebar-1_t2dfc_1",
5
+ "end-icon": "_end-icon_t2dfc_1",
6
+ "item-icon": "_item-icon_t2dfc_1",
7
+ "item-label": "_item-label_t2dfc_25",
8
+ "item-sidebar-open": "_item-sidebar-open_t2dfc_51",
9
+ "item-sidebar-close": "_item-sidebar-close_t2dfc_66",
10
+ "item-icon-subs-active": "_item-icon-subs-active_t2dfc_75",
11
+ "item-subs-sidebar": "_item-subs-sidebar_t2dfc_82",
12
+ "sidebar-bill": "_sidebar-bill_t2dfc_85",
13
+ hidden: e,
14
+ "divider-item-sidebar-payhere": "_divider-item-sidebar-payhere_t2dfc_106",
15
+ "divider-item-sidebar-lpd": "_divider-item-sidebar-lpd_t2dfc_111",
16
+ "parent-sidebar-5": "_parent-sidebar-5_t2dfc_133",
17
+ "parent-sidebar-6": "_parent-sidebar-6_t2dfc_137",
18
+ "parent-sidebar-7": "_parent-sidebar-7_t2dfc_141",
19
+ "parent-sidebar-8": "_parent-sidebar-8_t2dfc_146",
20
+ active: i,
21
+ "sidebar-payhere-blue-gray-800": "_sidebar-payhere-blue-gray-800_t2dfc_162",
22
+ "sidebar-payhere-indigo-800": "_sidebar-payhere-indigo-800_t2dfc_188",
23
+ "sidebar-payhere": "_sidebar-payhere_t2dfc_162",
24
+ "sidebar-laba": "_sidebar-laba_t2dfc_240",
25
+ "sidebar-lpd": "_sidebar-lpd_t2dfc_273"
26
+ };
27
+ export {
28
+ i as active,
29
+ d as default,
30
+ e as hidden
31
+ };
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),d=require("./Step.module.scss.cjs"),g=({widthLine:l,color:r})=>s.jsx("svg",{height:"5",xmlns:"http://www.w3.org/2000/svg",className:d.default["content-line-dashed"],width:l+10,style:{right:-(l/2+14)},children:s.jsx("g",{fill:"none",stroke:r,strokeWidth:"10",children:s.jsx("path",{strokeDasharray:"12,4",d:`M0 0 ${l+10} 0`})})}),u=({widthLine:l,color:r})=>s.jsx("hr",{className:d.default["content-line-active"],style:{width:l+22,right:-(l/2+20),borderColor:r}}),N=({activeStep:l,stepList:r,widthLine:n=250,classNameContainer:x,classNameContent:f,classNameDesc:$,onChange:a,afterActiveType:t="solid",beforeActiveType:h="dashed",colorActive:m="#0163c8 ",colorInactive:j="#D6D6D6"})=>s.jsx("div",{className:`${d.default.container} ${x??""}`,children:r.map((e,o)=>{const c=o+1;return s.jsxs("div",{className:`${d.default["content-section"]} ${f??""}`,onClick:()=>{typeof a=="function"&&a(e)},children:[s.jsxs("div",{className:d.default["content-step"],children:[c<r.length&&s.jsxs(s.Fragment,{children:[(e.step??c)>=l&&s.jsxs(s.Fragment,{children:[h==="solid"&&s.jsx(u,{color:j,widthLine:n}),h==="dashed"&&s.jsx(g,{color:j,widthLine:n})]}),(e.step??c)<l&&s.jsxs(s.Fragment,{children:[t==="solid"&&s.jsx(u,{color:m,widthLine:n}),t==="dashed"&&s.jsx(g,{color:m,widthLine:n})]})]}),o!==0&&s.jsx("div",{style:{width:n/2}}),s.jsx("div",{className:`${d.default["number-step"]}
2
+ ${(e.step??c)<l?d.default.passed:""}
3
+ ${(e.step??c)===l?d.default.active:""}
4
+ ${e.className??""}`,children:l>e.step&&e.valueDone?s.jsx(s.Fragment,{children:e.valueDone}):s.jsx(s.Fragment,{children:e.value?e.value:c})}),o+1!==(r==null?void 0:r.length)&&s.jsx("div",{style:{width:n/2}})]}),e.desc&&s.jsx("div",{className:`${d.default["content-description"]} ${$??""}
5
+ ${(e.step??c)<=l?d.default.active:""}`,style:{maxWidth:o+1===(r==null?void 0:r.length)||o===0?(n-30)*2:n-30,marginRight:o+1===(r==null?void 0:r.length)?-(n/2):0,marginLeft:o===0?-(n/2):0},children:e.desc})]},o)})});exports.default=N;
@@ -0,0 +1,85 @@
1
+ import { jsx as o, jsxs as a, Fragment as m } from "react/jsx-runtime";
2
+ import s from "./Step.module.scss.mjs";
3
+ const D = ({ widthLine: c, color: r }) => /* @__PURE__ */ o(
4
+ "svg",
5
+ {
6
+ height: "5",
7
+ xmlns: "http://www.w3.org/2000/svg",
8
+ className: s["content-line-dashed"],
9
+ width: c + 10,
10
+ style: { right: -(c / 2 + 14) },
11
+ children: /* @__PURE__ */ o("g", { fill: "none", stroke: r, strokeWidth: "10", children: /* @__PURE__ */ o("path", { strokeDasharray: "12,4", d: `M0 0 ${c + 10} 0` }) })
12
+ }
13
+ ), f = ({ widthLine: c, color: r }) => /* @__PURE__ */ o(
14
+ "hr",
15
+ {
16
+ className: s["content-line-active"],
17
+ style: { width: c + 22, right: -(c / 2 + 20), borderColor: r }
18
+ }
19
+ ), C = ({
20
+ activeStep: c,
21
+ stepList: r,
22
+ widthLine: n = 250,
23
+ classNameContainer: y,
24
+ classNameContent: k,
25
+ classNameDesc: b,
26
+ onChange: e,
27
+ afterActiveType: g = "solid",
28
+ beforeActiveType: $ = "dashed",
29
+ colorActive: t = "#0163c8 ",
30
+ colorInactive: N = "#D6D6D6"
31
+ }) => /* @__PURE__ */ o("div", { className: `${s.container} ${y ?? ""}`, children: r.map((l, d) => {
32
+ const h = d + 1;
33
+ return /* @__PURE__ */ a(
34
+ "div",
35
+ {
36
+ className: `${s["content-section"]} ${k ?? ""}`,
37
+ onClick: () => {
38
+ typeof e == "function" && e(l);
39
+ },
40
+ children: [
41
+ /* @__PURE__ */ a("div", { className: s["content-step"], children: [
42
+ h < r.length && /* @__PURE__ */ a(m, { children: [
43
+ (l.step ?? h) >= c && /* @__PURE__ */ a(m, { children: [
44
+ $ === "solid" && /* @__PURE__ */ o(f, { color: N, widthLine: n }),
45
+ $ === "dashed" && /* @__PURE__ */ o(D, { color: N, widthLine: n })
46
+ ] }),
47
+ (l.step ?? h) < c && /* @__PURE__ */ a(m, { children: [
48
+ g === "solid" && /* @__PURE__ */ o(f, { color: t, widthLine: n }),
49
+ g === "dashed" && /* @__PURE__ */ o(D, { color: t, widthLine: n })
50
+ ] })
51
+ ] }),
52
+ d !== 0 && /* @__PURE__ */ o("div", { style: { width: n / 2 } }),
53
+ /* @__PURE__ */ o(
54
+ "div",
55
+ {
56
+ className: `${s["number-step"]}
57
+ ${(l.step ?? h) < c ? s.passed : ""}
58
+ ${(l.step ?? h) === c ? s.active : ""}
59
+ ${l.className ?? ""}`,
60
+ children: c > l.step && l.valueDone ? /* @__PURE__ */ o(m, { children: l.valueDone }) : /* @__PURE__ */ o(m, { children: l.value ? l.value : h })
61
+ }
62
+ ),
63
+ d + 1 !== (r == null ? void 0 : r.length) && /* @__PURE__ */ o("div", { style: { width: n / 2 } })
64
+ ] }),
65
+ l.desc && /* @__PURE__ */ o(
66
+ "div",
67
+ {
68
+ className: `${s["content-description"]} ${b ?? ""}
69
+ ${(l.step ?? h) <= c ? s.active : ""}`,
70
+ style: {
71
+ maxWidth: d + 1 === (r == null ? void 0 : r.length) || d === 0 ? (n - 30) * 2 : n - 30,
72
+ marginRight: d + 1 === (r == null ? void 0 : r.length) ? -(n / 2) : 0,
73
+ marginLeft: d === 0 ? -(n / 2) : 0
74
+ },
75
+ children: l.desc
76
+ }
77
+ )
78
+ ]
79
+ },
80
+ d
81
+ );
82
+ }) });
83
+ export {
84
+ C as default
85
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_container_1bbdq_1",t="_passed_1bbdq_38",n="_active_1bbdq_42",c={container:e,"content-section":"_content-section_1bbdq_6","content-step":"_content-step_1bbdq_12","number-step":"_number-step_1bbdq_17",passed:t,active:n,"content-line-dashed":"_content-line-dashed_1bbdq_47","content-line-active":"_content-line-active_1bbdq_51","content-description":"_content-description_1bbdq_56"};exports.active=n;exports.container=e;exports.default=c;exports.passed=t;
@@ -0,0 +1,17 @@
1
+ const t = "_container_1bbdq_1", e = "_passed_1bbdq_38", n = "_active_1bbdq_42", _ = {
2
+ container: t,
3
+ "content-section": "_content-section_1bbdq_6",
4
+ "content-step": "_content-step_1bbdq_12",
5
+ "number-step": "_number-step_1bbdq_17",
6
+ passed: e,
7
+ active: n,
8
+ "content-line-dashed": "_content-line-dashed_1bbdq_47",
9
+ "content-line-active": "_content-line-active_1bbdq_51",
10
+ "content-description": "_content-description_1bbdq_56"
11
+ };
12
+ export {
13
+ n as active,
14
+ t as container,
15
+ _ as default,
16
+ e as passed
17
+ };
@@ -0,0 +1,4 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react/jsx-runtime"),t=require("./StepIndicator.module.scss.cjs");function x(e,l){if(e<=0)return"0px";if(e===1)return"100%";const s=e-1;return`calc((100% - (${l} * ${s})) / ${e})`}const j=({activeStep:e=0,countStep:l=0,classNameActiveStepIndicator:s="",classNameContainer:$="",classNameDesc:u="",classNameStepIndicator:n="",id:c="1ru-step-indicator",locationStepIndicator:i="right",widthStepIndicator:h=120,dynamicWidthStepIndicator:d=!1,gapStepIndicator:a="2px",classNameStepIndicatorContainer:m=""})=>r.jsxs("div",{id:c,className:`${t.default["container-step-indicator"]}
2
+ ${i==="left"?t.default.left:t.default.right} ${$||""}`,children:[i==="left"&&r.jsxs("p",{className:`${t.default["text-step-indicator"]} ${u||""}`,children:[e+1,"/",l]}),r.jsx("div",{className:`${t.default["step-indicator"]} ${m||""}
3
+ ${d?"iru-w-full":""} ${a}`,style:{gap:a},children:Array.from({length:l}).map((o,f)=>r.jsx("div",{className:`${t.default.indicator} ${n||""}
4
+ ${f<=e?`${t.default.active} ${s}`:""}`,style:{width:d?x(l,a):h}},f))}),i==="right"&&r.jsxs("p",{className:`${t.default["text-step-indicator"]} ${u||""}`,children:[e+1,"/",l]})]});exports.default=j;
@@ -0,0 +1,65 @@
1
+ import { jsxs as $, jsx as d } from "react/jsx-runtime";
2
+ import s from "./StepIndicator.module.scss.mjs";
3
+ function g(r, i) {
4
+ if (r <= 0)
5
+ return "0px";
6
+ if (r === 1)
7
+ return "100%";
8
+ const e = r - 1;
9
+ return `calc((100% - (${i} * ${e})) / ${r})`;
10
+ }
11
+ const y = ({
12
+ activeStep: r = 0,
13
+ countStep: i = 0,
14
+ classNameActiveStepIndicator: e = "",
15
+ classNameContainer: h = "",
16
+ classNameDesc: a = "",
17
+ classNameStepIndicator: n = "",
18
+ id: c = "1ru-step-indicator",
19
+ locationStepIndicator: l = "right",
20
+ widthStepIndicator: x = 120,
21
+ dynamicWidthStepIndicator: f = !1,
22
+ gapStepIndicator: t = "2px",
23
+ classNameStepIndicatorContainer: u = ""
24
+ }) => /* @__PURE__ */ $(
25
+ "div",
26
+ {
27
+ id: c,
28
+ className: `${s["container-step-indicator"]}
29
+ ${l === "left" ? s.left : s.right} ${h || ""}`,
30
+ children: [
31
+ l === "left" && /* @__PURE__ */ $("p", { className: `${s["text-step-indicator"]} ${a || ""}`, children: [
32
+ r + 1,
33
+ "/",
34
+ i
35
+ ] }),
36
+ /* @__PURE__ */ d(
37
+ "div",
38
+ {
39
+ className: `${s["step-indicator"]} ${u || ""}
40
+ ${f ? "iru-w-full" : ""} ${t}`,
41
+ style: { gap: t },
42
+ children: Array.from({ length: i }).map((p, m) => /* @__PURE__ */ d(
43
+ "div",
44
+ {
45
+ className: `${s.indicator} ${n || ""}
46
+ ${m <= r ? `${s.active} ${e}` : ""}`,
47
+ style: {
48
+ width: f ? g(i, t) : x
49
+ }
50
+ },
51
+ m
52
+ ))
53
+ }
54
+ ),
55
+ l === "right" && /* @__PURE__ */ $("p", { className: `${s["text-step-indicator"]} ${a || ""}`, children: [
56
+ r + 1,
57
+ "/",
58
+ i
59
+ ] })
60
+ ]
61
+ }
62
+ );
63
+ export {
64
+ y as default
65
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t="_left_do93a_7",i="_right_do93a_10",e="_indicator_do93a_26",o="_active_do93a_31",a={"container-step-indicator":"_container-step-indicator_do93a_1",left:t,right:i,"text-step-indicator":"_text-step-indicator_do93a_13","step-indicator":"_step-indicator_do93a_22",indicator:e,active:o};exports.active=o;exports.default=a;exports.indicator=e;exports.left=t;exports.right=i;
@@ -0,0 +1,16 @@
1
+ const t = "_left_do93a_7", i = "_right_do93a_10", o = "_indicator_do93a_26", a = "_active_do93a_31", _ = {
2
+ "container-step-indicator": "_container-step-indicator_do93a_1",
3
+ left: t,
4
+ right: i,
5
+ "text-step-indicator": "_text-step-indicator_do93a_13",
6
+ "step-indicator": "_step-indicator_do93a_22",
7
+ indicator: o,
8
+ active: a
9
+ };
10
+ export {
11
+ a as active,
12
+ _ as default,
13
+ o as indicator,
14
+ t as left,
15
+ i as right
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("./style.module.scss.cjs"),s=require("./Switch.config.cjs"),g=({value:c,disabled:i,title:a="",description:n="",size:d="regular",kind:l="payhere",id:o,className:u,classNameTitle:h,classNameDesc:f,onChange:r})=>{const $=()=>{!i&&typeof r=="function"&&r(!c)};return e.jsxs("div",{className:`iru-flex iru-gap-2 ${u??""}`,onClick:x=>x.stopPropagation(),children:[e.jsxs("label",{children:[e.jsx("input",{id:o??"1ru-switch",type:"checkbox",checked:c,onChange:$,className:"iru-hidden"}),e.jsx("span",{className:`${s.configSwitch.size[d]} ${s.configSwitch.kind[l]} ${c?t.default.active:""} ${i?t.default.disabled:""} ${!c&&i?t.default["disabled-nonactive"]:""}`,children:e.jsx("span",{className:`${t.default["thumb-switch"]} ${c?t.default.active:""} ${i?t.default.disabled:""} ${!c&&i?t.default["disabled-nonactive"]:""}`})})]}),(a||n)&&e.jsxs("div",{children:[a&&e.jsx("div",{className:`${s.configSwitch.text.title[l]} ${h}`,children:a}),n&&e.jsx("div",{className:`${s.configSwitch.text.desc[l]} ${f}`,children:n})]})]})};exports.default=g;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./style.module.scss.cjs"),e={size:{large:t.default["switch-l"],regular:t.default["switch-r"],small:t.default["switch-s"]},kind:{laba:t.default["switch-laba"],payhere:t.default["switch-payhere"],bill:t.default["switch-bill"]},text:{title:{laba:t.default["title-switch-laba"],payhere:t.default["title-switch-payhere"],bill:t.default["title-switch-bill"]},desc:{laba:t.default["description-switch-laba"],payhere:t.default["description-switch-payhere"],bill:t.default["description-switch-bill"]}}};exports.configSwitch=e;
@@ -0,0 +1,28 @@
1
+ import i from "./style.module.scss.mjs";
2
+ const l = {
3
+ size: {
4
+ large: i["switch-l"],
5
+ regular: i["switch-r"],
6
+ small: i["switch-s"]
7
+ },
8
+ kind: {
9
+ laba: i["switch-laba"],
10
+ payhere: i["switch-payhere"],
11
+ bill: i["switch-bill"]
12
+ },
13
+ text: {
14
+ title: {
15
+ laba: i["title-switch-laba"],
16
+ payhere: i["title-switch-payhere"],
17
+ bill: i["title-switch-bill"]
18
+ },
19
+ desc: {
20
+ laba: i["description-switch-laba"],
21
+ payhere: i["description-switch-payhere"],
22
+ bill: i["description-switch-bill"]
23
+ }
24
+ }
25
+ };
26
+ export {
27
+ l as configSwitch
28
+ };