1mpacto-react-ui 2.0.25 → 2.0.27

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 (125) hide show
  1. package/dist/assets/_colors.scss +42 -0
  2. package/dist/assets/_mixins.scss +6 -1
  3. package/dist/assets/_typography.scss +37 -3
  4. package/dist/assets/core.css +1 -1
  5. package/dist/assets/fontfamily.css +1 -1
  6. package/dist/assets/style.css +1 -1
  7. package/dist/components/Breadcrumbs/Breadcrumbs.cjs +3 -3
  8. package/dist/components/Breadcrumbs/Breadcrumbs.config.cjs +1 -1
  9. package/dist/components/Breadcrumbs/Breadcrumbs.config.mjs +4 -3
  10. package/dist/components/Breadcrumbs/Breadcrumbs.mjs +33 -33
  11. package/dist/components/Breadcrumbs/style.module.scss.cjs +1 -1
  12. package/dist/components/Breadcrumbs/style.module.scss.mjs +13 -10
  13. package/dist/components/Button/Button.config.cjs +1 -1
  14. package/dist/components/Button/Button.config.mjs +67 -56
  15. package/dist/components/Button/style.module.scss.cjs +1 -1
  16. package/dist/components/Button/style.module.scss.mjs +63 -56
  17. package/dist/components/ButtonIcon/ButtonIcon.config.cjs +1 -1
  18. package/dist/components/ButtonIcon/ButtonIcon.config.mjs +58 -47
  19. package/dist/components/ButtonIcon/style.module.scss.cjs +1 -1
  20. package/dist/components/ButtonIcon/style.module.scss.mjs +53 -46
  21. package/dist/components/Calendar/Calendar.cjs +1 -1
  22. package/dist/components/Calendar/Calendar.config.cjs +1 -0
  23. package/dist/components/Calendar/Calendar.config.mjs +22 -0
  24. package/dist/components/Calendar/Calendar.mjs +221 -133
  25. package/dist/components/Calendar/CalendarCell.cjs +1 -1
  26. package/dist/components/Calendar/CalendarCell.mjs +9 -9
  27. package/dist/components/Calendar/CalendarMonth.cjs +1 -1
  28. package/dist/components/Calendar/CalendarMonth.mjs +23 -21
  29. package/dist/components/Calendar/CalendarRange.cjs +1 -1
  30. package/dist/components/Calendar/CalendarRange.mjs +100 -98
  31. package/dist/components/Calendar/CalendarYear.cjs +2 -2
  32. package/dist/components/Calendar/CalendarYear.mjs +25 -23
  33. package/dist/components/Calendar/style.module.scss.cjs +1 -1
  34. package/dist/components/Calendar/style.module.scss.mjs +35 -33
  35. package/dist/components/Chart/LineChart.cjs +1 -1
  36. package/dist/components/Chart/LineChart.mjs +1 -1
  37. package/dist/components/DatePicker/DatePicker.cjs +1 -1
  38. package/dist/components/DatePicker/DatePicker.mjs +78 -69
  39. package/dist/components/DatePicker/DateRangePicker.cjs +1 -1
  40. package/dist/components/DatePicker/DateRangePicker.mjs +91 -79
  41. package/dist/components/DatePicker/FilterDate.cjs +1 -1
  42. package/dist/components/DatePicker/FilterDate.mjs +181 -127
  43. package/dist/components/DatePicker/MonthYearPicker.cjs +1 -1
  44. package/dist/components/DatePicker/MonthYearPicker.mjs +58 -49
  45. package/dist/components/Input/InputInnerLabel.cjs +6 -6
  46. package/dist/components/Input/InputInnerLabel.config.cjs +1 -1
  47. package/dist/components/Input/InputInnerLabel.config.mjs +9 -5
  48. package/dist/components/Input/InputInnerLabel.mjs +36 -35
  49. package/dist/components/Input/InputInnerLabel.module.scss.cjs +1 -1
  50. package/dist/components/Input/InputInnerLabel.module.scss.mjs +19 -17
  51. package/dist/components/Modal/ModalDialog.cjs +1 -1
  52. package/dist/components/Modal/ModalDialog.config.cjs +1 -1
  53. package/dist/components/Modal/ModalDialog.config.mjs +11 -7
  54. package/dist/components/Modal/ModalDialog.mjs +24 -23
  55. package/dist/components/Modal/style.module.scss.cjs +1 -1
  56. package/dist/components/Modal/style.module.scss.mjs +13 -11
  57. package/dist/components/Popover/Popover.cjs +1 -1
  58. package/dist/components/Popover/Popover.config.cjs +1 -0
  59. package/dist/components/Popover/Popover.config.mjs +10 -0
  60. package/dist/components/Popover/Popover.mjs +42 -40
  61. package/dist/components/Popover/style.module.scss.cjs +1 -1
  62. package/dist/components/Popover/style.module.scss.mjs +7 -4
  63. package/dist/components/Sidebar/ItemSidebar.config.cjs +1 -1
  64. package/dist/components/Sidebar/ItemSidebar.config.mjs +6 -2
  65. package/dist/components/Sidebar/Sidebar.cjs +1 -1
  66. package/dist/components/Sidebar/Sidebar.config.cjs +1 -1
  67. package/dist/components/Sidebar/Sidebar.config.mjs +14 -12
  68. package/dist/components/Sidebar/Sidebar.mjs +78 -77
  69. package/dist/components/Sidebar/Sidebar.module.scss.cjs +1 -1
  70. package/dist/components/Sidebar/Sidebar.module.scss.mjs +25 -23
  71. package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -1
  72. package/dist/components/Sidebar/itemSidebar.module.scss.mjs +25 -24
  73. package/dist/components/Textarea/TextareaFloatingInner.cjs +6 -5
  74. package/dist/components/Textarea/TextareaFloatingInner.config.cjs +1 -1
  75. package/dist/components/Textarea/TextareaFloatingInner.config.mjs +6 -2
  76. package/dist/components/Textarea/TextareaFloatingInner.mjs +38 -36
  77. package/dist/components/Textarea/TextareaFloatingInner.module.scss.cjs +1 -1
  78. package/dist/components/Textarea/TextareaFloatingInner.module.scss.mjs +14 -12
  79. package/dist/config/resources/index.cjs +1 -1
  80. package/dist/config/resources/index.mjs +1 -1
  81. package/dist/config/tailwind/colors.cjs +1 -1
  82. package/dist/config/tailwind/colors.mjs +22 -1
  83. package/dist/config/tailwind/typography.cjs +1 -1
  84. package/dist/config/tailwind/typography.mjs +79 -4
  85. package/dist/package.json.cjs +1 -1
  86. package/dist/package.json.d.ts +1 -1
  87. package/dist/package.json.mjs +1 -1
  88. package/dist/src/components/Breadcrumbs/Breadcrumbs.config.d.ts +1 -0
  89. package/dist/src/components/Button/Button.config.d.ts +11 -0
  90. package/dist/src/components/ButtonIcon/ButtonIcon.config.d.ts +11 -0
  91. package/dist/src/components/Calendar/Calendar.config.d.ts +19 -0
  92. package/dist/src/components/Calendar/Calendar.d.ts +5 -3
  93. package/dist/src/components/Calendar/Calendar.stories.d.ts +21 -5
  94. package/dist/src/components/Calendar/CalendarMonth.d.ts +1 -1
  95. package/dist/src/components/Calendar/CalendarRange.d.ts +1 -1
  96. package/dist/src/components/Calendar/CalendarYear.d.ts +1 -1
  97. package/dist/src/components/DatePicker/DatePicker.stories.d.ts +28 -0
  98. package/dist/src/components/DatePicker/FilterDate.d.ts +1 -1
  99. package/dist/src/components/DatePicker/FilterDate.stories.d.ts +29 -1
  100. package/dist/src/components/DatePicker/MonthYearPicker.d.ts +1 -1
  101. package/dist/src/components/DatePicker/MonthYearPicker.stories.d.ts +29 -1
  102. package/dist/src/components/Input/InputInnerLabel.config.d.ts +5 -1
  103. package/dist/src/components/Input/InputInnerLabel.stories.d.ts +16 -0
  104. package/dist/src/components/Modal/ModalDialog.config.d.ts +4 -0
  105. package/dist/src/components/Modal/ModalDialog.d.ts +1 -1
  106. package/dist/src/components/Modal/ModalDialog.stories.d.ts +1 -1
  107. package/dist/src/components/Popover/Popover.config.d.ts +7 -0
  108. package/dist/src/components/Sidebar/ItemSidebar.config.d.ts +4 -0
  109. package/dist/src/components/Sidebar/Sidebar.config.d.ts +2 -0
  110. package/dist/src/components/Textarea/TextareaFloatingInner.config.d.ts +5 -0
  111. package/dist/src/config/resources/index.d.ts +2 -2
  112. package/dist/src/config/tailwind/typography.d.ts +1 -0
  113. package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +1 -1
  114. package/dist/src/interfaces/components/Button/index.d.ts +2 -2
  115. package/dist/src/interfaces/components/ButtonIcon/index.d.ts +2 -2
  116. package/dist/src/interfaces/components/Calendar/index.d.ts +41 -0
  117. package/dist/src/interfaces/components/DatePicker/index.d.ts +41 -1
  118. package/dist/src/interfaces/components/Input/index.d.ts +10 -0
  119. package/dist/src/interfaces/components/Modal/index.d.ts +5 -0
  120. package/dist/src/interfaces/components/Popover/index.d.ts +5 -0
  121. package/dist/src/interfaces/components/Sidebar/index.d.ts +6 -1
  122. package/dist/src/interfaces/components/Textarea/index.d.ts +5 -0
  123. package/dist/utils/common.cjs +1 -1
  124. package/dist/utils/common.mjs +7 -7
  125. package/package.json +1 -1
@@ -1,59 +1,60 @@
1
- import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
- import i from "react";
1
+ import { jsxs as i, jsx as o } from "react/jsx-runtime";
2
+ import l from "react";
3
3
  import e from "./InputInnerLabel.module.scss.mjs";
4
- import { configInputInnerLabel as L } from "./InputInnerLabel.config.mjs";
5
- const v = i.forwardRef((m, p) => {
4
+ import { configInputInnerLabel as m } from "./InputInnerLabel.config.mjs";
5
+ const x = l.forwardRef((p, b) => {
6
6
  const {
7
7
  isRequired: f,
8
- classNameContainer: b,
9
- className: $,
10
- classNameLabel: u,
11
- classNameLabelError: N,
8
+ classNameContainer: $,
9
+ className: u,
10
+ classNameLabel: N,
11
+ classNameLabelError: h,
12
12
  name: c,
13
13
  id: d,
14
- label: l,
15
- type: h = "text",
16
- startIcon: n,
17
- endIcon: a,
14
+ label: s,
15
+ type: I = "text",
16
+ startIcon: a,
17
+ endIcon: n,
18
18
  error: t,
19
- sizeInput: I = "large",
19
+ sizeInput: y = "large",
20
+ variant: v = "bill-blue-800",
20
21
  ...r
21
- } = m, y = () => typeof n == "function" || i.isValidElement(n), E = () => typeof a == "function" || i.isValidElement(a);
22
- return /* @__PURE__ */ s(
22
+ } = p, E = () => typeof a == "function" || l.isValidElement(a), L = () => typeof n == "function" || l.isValidElement(n);
23
+ return /* @__PURE__ */ i(
23
24
  "div",
24
25
  {
25
- className: `${L.size[I]} ${b ?? ""}
26
- ${l ? "" : e["hidden-label"]}`,
26
+ className: `${m.size[y]} ${m.variant[v]}
27
+ ${$ ?? ""} ${s ? "" : e["hidden-label"]}`,
27
28
  children: [
28
- /* @__PURE__ */ s("div", { className: `${e["container-input"]}`, children: [
29
- /* @__PURE__ */ s("div", { className: e["start-icon"], children: [
30
- typeof n == "function" && n(),
31
- i.isValidElement(n) && n
29
+ /* @__PURE__ */ i("div", { className: `${e["container-input"]}`, children: [
30
+ /* @__PURE__ */ i("div", { className: e["start-icon"], children: [
31
+ typeof a == "function" && a(),
32
+ l.isValidElement(a) && a
32
33
  ] }),
33
34
  /* @__PURE__ */ o(
34
35
  "input",
35
36
  {
36
37
  id: d ?? c,
37
38
  className: `${e.input} ${t ? e.error : ""}
38
- ${y() ? e["isset-left-icon"] : ""}
39
- ${E() ? e["isset-right-icon"] : ""}
40
- ${$ ?? ""}`,
41
- ref: p,
42
- type: h,
39
+ ${E() ? e["isset-left-icon"] : ""}
40
+ ${L() ? e["isset-right-icon"] : ""}
41
+ ${u ?? ""}`,
42
+ ref: b,
43
+ type: I,
43
44
  ...r
44
45
  }
45
46
  ),
46
- /* @__PURE__ */ s("div", { className: e["end-icon"], children: [
47
- typeof a == "function" && a(),
48
- i.isValidElement(a) && a
47
+ /* @__PURE__ */ i("div", { className: e["end-icon"], children: [
48
+ typeof n == "function" && n(),
49
+ l.isValidElement(n) && n
49
50
  ] }),
50
- l && /* @__PURE__ */ s(
51
+ s && /* @__PURE__ */ i(
51
52
  "label",
52
53
  {
53
54
  htmlFor: d ?? c,
54
- className: `${e.label} ${r.disabled ? e.disabled : ""} ${u ?? ""}`,
55
+ className: `${e.label} ${r.disabled ? e.disabled : ""} ${N ?? ""}`,
55
56
  children: [
56
- l,
57
+ s,
57
58
  " ",
58
59
  f && /* @__PURE__ */ o("span", { children: "*" })
59
60
  ]
@@ -64,7 +65,7 @@ const v = i.forwardRef((m, p) => {
64
65
  "label",
65
66
  {
66
67
  className: `${e["label-error"]}
67
- ${r.disabled ? e.disabled : ""} ${N ?? ""}`,
68
+ ${r.disabled ? e.disabled : ""} ${h ?? ""}`,
68
69
  children: t
69
70
  }
70
71
  )
@@ -72,7 +73,7 @@ const v = i.forwardRef((m, p) => {
72
73
  }
73
74
  );
74
75
  });
75
- v.displayName = "InputInnerLabel";
76
+ x.displayName = "InputInnerLabel";
76
77
  export {
77
- v as default
78
+ x as default
78
79
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_input_19hx0_12",_="_label_19hx0_39",t="_error_19hx0_59",n={"container-large":"_container-large_19hx0_1","container-input":"_container-input_19hx0_6",input:e,label:_,error:t,"isset-right-icon":"_isset-right-icon_19hx0_82","isset-left-icon":"_isset-left-icon_19hx0_85","start-icon":"_start-icon_19hx0_88","end-icon":"_end-icon_19hx0_95","label-error":"_label-error_19hx0_102","hidden-label":"_hidden-label_19hx0_113","container-small":"_container-small_19hx0_229"};exports.default=n;exports.error=t;exports.input=e;exports.label=_;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_input_zpfet_12",t="_label_zpfet_43",_="_error_zpfet_63",l={"container-large":"_container-large_zpfet_1","container-input":"_container-input_zpfet_6",input:e,label:t,error:_,"isset-right-icon":"_isset-right-icon_zpfet_89","isset-left-icon":"_isset-left-icon_zpfet_92","start-icon":"_start-icon_zpfet_95","end-icon":"_end-icon_zpfet_102","label-error":"_label-error_zpfet_109","hidden-label":"_hidden-label_zpfet_120","container-small":"_container-small_zpfet_243","bill-blue-800":"_bill-blue-800_zpfet_485","fin-black":"_fin-black_zpfet_492"};exports.default=l;exports.error=_;exports.input=e;exports.label=t;
@@ -1,20 +1,22 @@
1
- const _ = "_input_19hx0_12", e = "_label_19hx0_39", n = "_error_19hx0_59", t = {
2
- "container-large": "_container-large_19hx0_1",
3
- "container-input": "_container-input_19hx0_6",
4
- input: _,
5
- label: e,
6
- error: n,
7
- "isset-right-icon": "_isset-right-icon_19hx0_82",
8
- "isset-left-icon": "_isset-left-icon_19hx0_85",
9
- "start-icon": "_start-icon_19hx0_88",
10
- "end-icon": "_end-icon_19hx0_95",
11
- "label-error": "_label-error_19hx0_102",
12
- "hidden-label": "_hidden-label_19hx0_113",
13
- "container-small": "_container-small_19hx0_229"
1
+ const e = "_input_zpfet_12", t = "_label_zpfet_43", _ = "_error_zpfet_63", n = {
2
+ "container-large": "_container-large_zpfet_1",
3
+ "container-input": "_container-input_zpfet_6",
4
+ input: e,
5
+ label: t,
6
+ error: _,
7
+ "isset-right-icon": "_isset-right-icon_zpfet_89",
8
+ "isset-left-icon": "_isset-left-icon_zpfet_92",
9
+ "start-icon": "_start-icon_zpfet_95",
10
+ "end-icon": "_end-icon_zpfet_102",
11
+ "label-error": "_label-error_zpfet_109",
12
+ "hidden-label": "_hidden-label_zpfet_120",
13
+ "container-small": "_container-small_zpfet_243",
14
+ "bill-blue-800": "_bill-blue-800_zpfet_485",
15
+ "fin-black": "_fin-black_zpfet_492"
14
16
  };
15
17
  export {
16
- t as default,
17
- n as error,
18
- _ as input,
19
- e as label
18
+ n as default,
19
+ _ as error,
20
+ e as input,
21
+ t as label
20
22
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),y=require("react-dom"),t=require("./style.module.scss.cjs"),j=require("./ModalDialog.config.cjs"),v=({as:r,children:n,id:d="modal",idModal:o="1ru-modal",withOverlay:u=!0,show:l,size:c="regular",className:i,classNameContainer:s,onClose:a,...m})=>{const g=r??"div",f=()=>{typeof a=="function"&&a()};return e.jsx(e.Fragment,{children:l&&document.getElementById(o)&&y.createPortal(e.jsx("div",{id:d,onClick:f,className:`${t.default.modal} ${u?t.default["with-overlay"]:""} ${l?t.default["modal-show"]:""} ${s??""}`,children:e.jsx(g,{onClick:$=>$.stopPropagation(),className:`${t.default["modal-content"]} ${j.configModal.size[c]} ${i??""}`,...m,children:n})}),document.getElementById(o))})};exports.default=v;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),v=require("react-dom"),t=require("./style.module.scss.cjs"),n=require("./ModalDialog.config.cjs"),M=({as:r,children:d,id:i="modal",idModal:o="iru-modal",withOverlay:c=!0,show:l,size:u="regular",className:s,classNameContainer:m,onClose:a,brand:g="",...f})=>{const $=r??"div",y=()=>{typeof a=="function"&&a()};return e.jsx(e.Fragment,{children:l&&document.getElementById(o)&&v.createPortal(e.jsx("div",{id:i,onClick:y,className:`${t.default.modal} ${n.configModal.brand[g]} ${c?t.default["with-overlay"]:""} ${l?t.default["modal-show"]:""} ${m??""}`,children:e.jsx($,{onClick:j=>j.stopPropagation(),className:`${t.default["modal-content"]} ${n.configModal.size[u]} ${s??""}`,...f,children:d})}),document.getElementById(o))})};exports.default=M;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./style.module.scss.cjs"),e={size:{small:l.default["modal-small"],medium:l.default["modal-medium"],regular:l.default["modal-regular"],large:l.default["modal-large"]}};exports.configModal=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./style.module.scss.cjs"),l={size:{small:e.default["modal-small"],medium:e.default["modal-medium"],regular:e.default["modal-regular"],large:e.default["modal-large"]},brand:{"":e.default["brand-general"],fin:e.default["brand-fin"]}};exports.configModal=l;
@@ -1,12 +1,16 @@
1
- import l from "./style.module.scss.mjs";
2
- const a = {
1
+ import a from "./style.module.scss.mjs";
2
+ const r = {
3
3
  size: {
4
- small: l["modal-small"],
5
- medium: l["modal-medium"],
6
- regular: l["modal-regular"],
7
- large: l["modal-large"]
4
+ small: a["modal-small"],
5
+ medium: a["modal-medium"],
6
+ regular: a["modal-regular"],
7
+ large: a["modal-large"]
8
+ },
9
+ brand: {
10
+ "": a["brand-general"],
11
+ fin: a["brand-fin"]
8
12
  }
9
13
  };
10
14
  export {
11
- a as configModal
15
+ r as configModal
12
16
  };
@@ -1,37 +1,38 @@
1
- import { jsx as t, Fragment as $ } from "react/jsx-runtime";
2
- import { createPortal as y } from "react-dom";
1
+ import { jsx as t, Fragment as h } from "react/jsx-runtime";
2
+ import { createPortal as v } from "react-dom";
3
3
  import o from "./style.module.scss.mjs";
4
- import { configModal as h } from "./ModalDialog.config.mjs";
5
- const C = ({
6
- as: l,
7
- children: m,
8
- id: n = "modal",
9
- idModal: e = "1ru-modal",
10
- withOverlay: i = !0,
4
+ import { configModal as l } from "./ModalDialog.config.mjs";
5
+ const E = ({
6
+ as: m,
7
+ children: n,
8
+ id: i = "modal",
9
+ idModal: e = "iru-modal",
10
+ withOverlay: d = !0,
11
11
  show: r,
12
12
  size: c = "regular",
13
- className: d,
14
- classNameContainer: s,
13
+ className: s,
14
+ classNameContainer: f,
15
15
  onClose: a,
16
- ...f
16
+ brand: g = "",
17
+ ...p
17
18
  }) => {
18
- const g = l ?? "div", p = () => {
19
+ const u = m ?? "div", $ = () => {
19
20
  typeof a == "function" && a();
20
21
  };
21
- return /* @__PURE__ */ t($, { children: r && document.getElementById(e) && y(
22
+ return /* @__PURE__ */ t(h, { children: r && document.getElementById(e) && v(
22
23
  /* @__PURE__ */ t(
23
24
  "div",
24
25
  {
25
- id: n,
26
- onClick: p,
27
- className: `${o.modal} ${i ? o["with-overlay"] : ""} ${r ? o["modal-show"] : ""} ${s ?? ""}`,
26
+ id: i,
27
+ onClick: $,
28
+ className: `${o.modal} ${l.brand[g]} ${d ? o["with-overlay"] : ""} ${r ? o["modal-show"] : ""} ${f ?? ""}`,
28
29
  children: /* @__PURE__ */ t(
29
- g,
30
+ u,
30
31
  {
31
- onClick: (u) => u.stopPropagation(),
32
- className: `${o["modal-content"]} ${h.size[c]} ${d ?? ""}`,
33
- ...f,
34
- children: m
32
+ onClick: (y) => y.stopPropagation(),
33
+ className: `${o["modal-content"]} ${l.size[c]} ${s ?? ""}`,
34
+ ...p,
35
+ children: n
35
36
  }
36
37
  )
37
38
  }
@@ -40,5 +41,5 @@ const C = ({
40
41
  ) });
41
42
  };
42
43
  export {
43
- C as default
44
+ E as default
44
45
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o="_modal_12o7y_1",l={modal:o,"modal-content":"_modal-content_12o7y_1","with-overlay":"_with-overlay_12o7y_23","modal-small":"_modal-small_12o7y_40","modal-medium":"_modal-medium_12o7y_44","modal-regular":"_modal-regular_12o7y_48","modal-large":"_modal-large_12o7y_52","modal-show":"_modal-show_12o7y_56"};exports.default=l;exports.modal=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d="_modal_mu7dk_1",l={"brand-fin":"_brand-fin_mu7dk_1",modal:d,"modal-content":"_modal-content_mu7dk_1","brand-general":"_brand-general_mu7dk_1","with-overlay":"_with-overlay_mu7dk_23","modal-small":"_modal-small_mu7dk_40","modal-medium":"_modal-medium_mu7dk_44","modal-regular":"_modal-regular_mu7dk_48","modal-large":"_modal-large_mu7dk_52","modal-show":"_modal-show_mu7dk_56"};exports.default=l;exports.modal=d;
@@ -1,14 +1,16 @@
1
- const o = "_modal_12o7y_1", l = {
2
- modal: o,
3
- "modal-content": "_modal-content_12o7y_1",
4
- "with-overlay": "_with-overlay_12o7y_23",
5
- "modal-small": "_modal-small_12o7y_40",
6
- "modal-medium": "_modal-medium_12o7y_44",
7
- "modal-regular": "_modal-regular_12o7y_48",
8
- "modal-large": "_modal-large_12o7y_52",
9
- "modal-show": "_modal-show_12o7y_56"
1
+ const d = "_modal_mu7dk_1", a = {
2
+ "brand-fin": "_brand-fin_mu7dk_1",
3
+ modal: d,
4
+ "modal-content": "_modal-content_mu7dk_1",
5
+ "brand-general": "_brand-general_mu7dk_1",
6
+ "with-overlay": "_with-overlay_mu7dk_23",
7
+ "modal-small": "_modal-small_mu7dk_40",
8
+ "modal-medium": "_modal-medium_mu7dk_44",
9
+ "modal-regular": "_modal-regular_mu7dk_48",
10
+ "modal-large": "_modal-large_mu7dk_52",
11
+ "modal-show": "_modal-show_mu7dk_56"
10
12
  };
11
13
  export {
12
- l as default,
13
- o as modal
14
+ a as default,
15
+ d as modal
14
16
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),e=require("@floating-ui/react"),r=require("react"),H=require("./style.module.scss.cjs"),g=r.forwardRef((m,h)=>{const{children:w,className:P,offset:y=10,isShow:i,anchorEl:a,useAutoPlacement:F=!1,flipOptions:v,autoPlacementOptions:S,zIndex:x=10,width:c,styleInnerPopover:R={},floatingOptions:j={},onClose:u=()=>{},withArrow:M,propsArrow:O={},floatingFocusManagerProps:q,useDismissProps:A,...C}=m,f=r.useRef(null),[n,l]=r.useState(!1),{refs:d,floatingStyles:I,context:t}=e.useFloating({open:n,onOpenChange:s=>{l(s),s||u()},middleware:[e.offset(y),F?e.autoPlacement(S):e.flip(v),e.shift(),e.arrow({element:f})],whileElementsMounted:e.autoUpdate,...j}),T=e.useClick(t),E=e.useDismiss(t,A),N=e.useRole(t),{getReferenceProps:_,getFloatingProps:b}=e.useInteractions([T,E,N]),{styles:k,isMounted:D}=e.useTransitionStyles(t),p=s=>{d.setReference(s.currentTarget),l(z=>!z),n&&u()};r.useEffect(()=>{i&&a?p({currentTarget:a}):i||l(!1)},[i,a]),r.useImperativeHandle(h,()=>({show:n,setShow:l,handlerShow:p,getReferenceProps:_}),[n]);const $=()=>{let s={...I,...k,...R,zIndex:x};return c&&(s={...s,width:c}),s};return o.jsx(o.Fragment,{children:D&&n&&o.jsx(e.FloatingPortal,{children:o.jsx(e.FloatingFocusManager,{context:t,modal:!1,...q,children:o.jsxs("div",{ref:d.setFloating,style:$(),...b(),className:`${H.default.popover} ${P??""}`,...C,children:[w,M&&o.jsx(e.FloatingArrow,{ref:f,context:t,...O})]})})})})});g.displayName="Popover";exports.default=g;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("react/jsx-runtime"),e=require("@floating-ui/react"),r=require("react"),U=require("./style.module.scss.cjs"),B=require("./Popover.config.cjs"),g=r.forwardRef((m,h)=>{const{children:w,className:P,offset:v=10,isShow:l,anchorEl:a,useAutoPlacement:y=!1,flipOptions:F,autoPlacementOptions:S,zIndex:x=10,width:c,styleInnerPopover:R={},floatingOptions:j={},onClose:u=()=>{},withArrow:M,propsArrow:q={},floatingFocusManagerProps:O,useDismissProps:A,variant:C="white",...I}=m,f=r.useRef(null),[n,i]=r.useState(!1),{refs:d,floatingStyles:T,context:s}=e.useFloating({open:n,onOpenChange:t=>{i(t),t||u()},middleware:[e.offset(v),y?e.autoPlacement(S):e.flip(F),e.shift(),e.arrow({element:f})],whileElementsMounted:e.autoUpdate,...j}),_=e.useClick(s),E=e.useDismiss(s,A),N=e.useRole(s),{getReferenceProps:$,getFloatingProps:b}=e.useInteractions([_,E,N]),{styles:k,isMounted:D}=e.useTransitionStyles(s),p=t=>{d.setReference(t.currentTarget),i(H=>!H),n&&u()};r.useEffect(()=>{l&&a?p({currentTarget:a}):l||i(!1)},[l,a]),r.useImperativeHandle(h,()=>({show:n,setShow:i,handlerShow:p,getReferenceProps:$}),[n]);const z=()=>{let t={...T,...k,...R,zIndex:x};return c&&(t={...t,width:c}),t};return o.jsx(o.Fragment,{children:D&&n&&o.jsx(e.FloatingPortal,{children:o.jsx(e.FloatingFocusManager,{context:s,modal:!1,...O,children:o.jsxs("div",{ref:d.setFloating,style:z(),...b(),className:`${U.default.popover} ${B.configPopover.variant[C]} ${P??""}`,...I,children:[w,M&&o.jsx(e.FloatingArrow,{ref:f,context:s,...q})]})})})})});g.displayName="Popover";exports.default=g;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./style.module.scss.cjs"),t={variant:{white:e.default.white,"blue-gray-50":e.default["blue-gray-50"]}};exports.configPopover=t;
@@ -0,0 +1,10 @@
1
+ import e from "./style.module.scss.mjs";
2
+ const r = {
3
+ variant: {
4
+ white: e.white,
5
+ "blue-gray-50": e["blue-gray-50"]
6
+ }
7
+ };
8
+ export {
9
+ r as configPopover
10
+ };
@@ -1,78 +1,80 @@
1
- import { jsx as r, Fragment as H, jsxs as U } from "react/jsx-runtime";
2
- import { useFloating as b, autoUpdate as q, offset as B, autoPlacement as G, flip as J, shift as K, arrow as L, useClick as Q, useDismiss as V, useRole as W, useInteractions as X, useTransitionStyles as Y, FloatingPortal as Z, FloatingFocusManager as _, FloatingArrow as ee } from "@floating-ui/react";
3
- import te, { forwardRef as se, useState as oe, useEffect as re, useImperativeHandle as ne } from "react";
4
- import le from "./style.module.scss.mjs";
5
- const ie = se((p, m) => {
1
+ import { jsx as r, Fragment as U, jsxs as b } from "react/jsx-runtime";
2
+ import { useFloating as q, autoUpdate as B, offset as G, autoPlacement as J, flip as K, shift as L, arrow as Q, useClick as V, useDismiss as W, useRole as X, useInteractions as Y, useTransitionStyles as Z, FloatingPortal as _, FloatingFocusManager as ee, FloatingArrow as te } from "@floating-ui/react";
3
+ import oe, { forwardRef as se, useState as re, useEffect as ne, useImperativeHandle as ie } from "react";
4
+ import ae from "./style.module.scss.mjs";
5
+ import { configPopover as le } from "./Popover.config.mjs";
6
+ const fe = se((u, m) => {
6
7
  const {
7
8
  children: d,
8
9
  className: g,
9
10
  offset: h = 10,
10
11
  isShow: n,
11
- anchorEl: l,
12
+ anchorEl: i,
12
13
  useAutoPlacement: w = !1,
13
14
  flipOptions: P,
14
- autoPlacementOptions: y,
15
- zIndex: F = 10,
16
- width: i,
17
- styleInnerPopover: v = {},
15
+ autoPlacementOptions: v,
16
+ zIndex: y = 10,
17
+ width: a,
18
+ styleInnerPopover: F = {},
18
19
  floatingOptions: R = {},
19
- onClose: a = () => {
20
+ onClose: l = () => {
20
21
  },
21
22
  withArrow: S,
22
23
  propsArrow: x = {},
23
24
  floatingFocusManagerProps: A,
24
25
  useDismissProps: C,
25
- ...I
26
- } = p, f = te.useRef(null), [s, o] = oe(!1), { refs: c, floatingStyles: M, context: t } = b({
27
- open: s,
26
+ variant: I = "white",
27
+ ...M
28
+ } = u, f = oe.useRef(null), [o, s] = re(!1), { refs: c, floatingStyles: O, context: t } = q({
29
+ open: o,
28
30
  onOpenChange: (e) => {
29
- o(e), e || a();
31
+ s(e), e || l();
30
32
  },
31
33
  middleware: [
32
- B(h),
33
- w ? G(y) : J(P),
34
- K(),
35
- L({
34
+ G(h),
35
+ w ? J(v) : K(P),
36
+ L(),
37
+ Q({
36
38
  element: f
37
39
  })
38
40
  ],
39
- whileElementsMounted: q,
41
+ whileElementsMounted: B,
40
42
  ...R
41
- }), O = Q(t), E = V(t, C), N = W(t), { getReferenceProps: T, getFloatingProps: $ } = X([O, E, N]), { styles: j, isMounted: k } = Y(t), u = (e) => {
42
- c.setReference(e.currentTarget), o((z) => !z), s && a();
43
+ }), $ = V(t), E = W(t, C), N = X(t), { getReferenceProps: T, getFloatingProps: j } = Y([$, E, N]), { styles: k, isMounted: D } = Z(t), p = (e) => {
44
+ c.setReference(e.currentTarget), s((H) => !H), o && l();
43
45
  };
44
- re(() => {
45
- n && l ? u({ currentTarget: l }) : n || o(!1);
46
- }, [n, l]), ne(
46
+ ne(() => {
47
+ n && i ? p({ currentTarget: i }) : n || s(!1);
48
+ }, [n, i]), ie(
47
49
  m,
48
50
  () => ({
49
- show: s,
50
- setShow: o,
51
- handlerShow: u,
51
+ show: o,
52
+ setShow: s,
53
+ handlerShow: p,
52
54
  getReferenceProps: T
53
55
  }),
54
- [s]
56
+ [o]
55
57
  );
56
- const D = () => {
57
- let e = { ...M, ...j, ...v, zIndex: F };
58
- return i && (e = { ...e, width: i }), e;
58
+ const z = () => {
59
+ let e = { ...O, ...k, ...F, zIndex: y };
60
+ return a && (e = { ...e, width: a }), e;
59
61
  };
60
- return /* @__PURE__ */ r(H, { children: k && s && /* @__PURE__ */ r(Z, { children: /* @__PURE__ */ r(_, { context: t, modal: !1, ...A, children: /* @__PURE__ */ U(
62
+ return /* @__PURE__ */ r(U, { children: D && o && /* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(ee, { context: t, modal: !1, ...A, children: /* @__PURE__ */ b(
61
63
  "div",
62
64
  {
63
65
  ref: c.setFloating,
64
- style: D(),
65
- ...$(),
66
- className: `${le.popover} ${g ?? ""}`,
67
- ...I,
66
+ style: z(),
67
+ ...j(),
68
+ className: `${ae.popover} ${le.variant[I]} ${g ?? ""}`,
69
+ ...M,
68
70
  children: [
69
71
  d,
70
- S && /* @__PURE__ */ r(ee, { ref: f, context: t, ...x })
72
+ S && /* @__PURE__ */ r(te, { ref: f, context: t, ...x })
71
73
  ]
72
74
  }
73
75
  ) }) }) });
74
76
  });
75
- ie.displayName = "Popover";
77
+ fe.displayName = "Popover";
76
78
  export {
77
- ie as default
79
+ fe as default
78
80
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_popover_cskuc_1",o={popover:e};exports.default=o;exports.popover=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_white_1tg50_1",t="_popover_1tg50_1",o={white:e,popover:t,"blue-gray-50":"_blue-gray-50_1tg50_14"};exports.default=o;exports.popover=t;exports.white=e;
@@ -1,7 +1,10 @@
1
- const o = "_popover_cskuc_1", p = {
2
- popover: o
1
+ const t = "_white_1tg50_1", e = "_popover_1tg50_1", o = {
2
+ white: t,
3
+ popover: e,
4
+ "blue-gray-50": "_blue-gray-50_1tg50_14"
3
5
  };
4
6
  export {
5
- p as default,
6
- o as popover
7
+ o as default,
8
+ e as popover,
9
+ t as white
7
10
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./itemSidebar.module.scss.cjs"),a={variant:{"payhere-brand-base-white":e.default["sidebar-payhere"],"payhere-brand-base-transparent":e.default["sidebar-payhere"],"payhere-brand-indigo-900-transparent":e.default["sidebar-payhere-indigo-800"],"payhere-brand-blue-gray-900-transparent":e.default["sidebar-payhere-blue-gray-800"],"laba-white":e.default["sidebar-laba"],"lpd-brand-base-white":e.default["sidebar-lpd"],"lpd-brand-base-transparent":e.default["sidebar-lpd"],"lpd-brand-base-white-responsive":e.default["sidebar-lpd"],"lpd-brand-base-transparent-responsive":e.default["sidebar-lpd"],"bill-brand-base":e.default["sidebar-bill"],"bill-brand-base-responsive":e.default["sidebar-bill"]},parent:{1:e.default["parent-sidebar-1"],2:e.default["parent-sidebar-2"],3:e.default["parent-sidebar-3"],4:e.default["parent-sidebar-4"],5:e.default["parent-sidebar-5"],6:e.default["parent-sidebar-6"],7:e.default["parent-sidebar-7"],8:e.default["parent-sidebar-8"]},divider:{"payhere-brand-base-white":e.default["divider-item-sidebar-payhere"],"payhere-brand-base-transparent":e.default["divider-item-sidebar-payhere"],"payhere-brand-indigo-900-transparent":e.default["divider-item-sidebar-payhere"],"payhere-brand-blue-gray-900-transparent":e.default["divider-item-sidebar-payhere"],"laba-white":e.default["divider-item-sidebar-laba"],"lpd-brand-base-white":e.default["divider-item-sidebar-lpd"],"lpd-brand-base-transparent":e.default["divider-item-sidebar-lpd"],"lpd-brand-base-white-responsive":e.default["divider-item-sidebar-lpd"],"lpd-brand-base-transparent-responsive":e.default["divider-item-sidebar-lpd"],"bill-brand-base":e.default["divider-item-sidebar-bill"],"bill-brand-base-responsive":e.default["divider-item-sidebar-bill"]}};exports.configItemSidebar=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./itemSidebar.module.scss.cjs"),a={variant:{"payhere-brand-base-white":e.default["sidebar-payhere"],"payhere-brand-base-transparent":e.default["sidebar-payhere"],"payhere-brand-indigo-900-transparent":e.default["sidebar-payhere-indigo-800"],"payhere-brand-blue-gray-900-transparent":e.default["sidebar-payhere-blue-gray-800"],"laba-white":e.default["sidebar-laba"],"lpd-brand-base-white":e.default["sidebar-lpd"],"lpd-brand-base-transparent":e.default["sidebar-lpd"],"lpd-brand-base-white-responsive":e.default["sidebar-lpd"],"lpd-brand-base-transparent-responsive":e.default["sidebar-lpd"],"bill-brand-base":e.default["sidebar-bill"],"bill-brand-base-responsive":e.default["sidebar-bill"],"fin-base":e.default["sidebar-fin"],"fin-base-responsive":e.default["sidebar-fin"]},parent:{1:e.default["parent-sidebar-1"],2:e.default["parent-sidebar-2"],3:e.default["parent-sidebar-3"],4:e.default["parent-sidebar-4"],5:e.default["parent-sidebar-5"],6:e.default["parent-sidebar-6"],7:e.default["parent-sidebar-7"],8:e.default["parent-sidebar-8"]},divider:{"payhere-brand-base-white":e.default["divider-item-sidebar-payhere"],"payhere-brand-base-transparent":e.default["divider-item-sidebar-payhere"],"payhere-brand-indigo-900-transparent":e.default["divider-item-sidebar-payhere"],"payhere-brand-blue-gray-900-transparent":e.default["divider-item-sidebar-payhere"],"laba-white":e.default["divider-item-sidebar-laba"],"lpd-brand-base-white":e.default["divider-item-sidebar-lpd"],"lpd-brand-base-transparent":e.default["divider-item-sidebar-lpd"],"lpd-brand-base-white-responsive":e.default["divider-item-sidebar-lpd"],"lpd-brand-base-transparent-responsive":e.default["divider-item-sidebar-lpd"],"bill-brand-base":e.default["divider-item-sidebar-bill"],"bill-brand-base-responsive":e.default["divider-item-sidebar-bill"],"fin-base":e.default["divider-item-sidebar-fin"],"fin-base-responsive":e.default["divider-item-sidebar-fin"]}};exports.configItemSidebar=a;
@@ -11,7 +11,9 @@ const r = {
11
11
  "lpd-brand-base-white-responsive": e["sidebar-lpd"],
12
12
  "lpd-brand-base-transparent-responsive": e["sidebar-lpd"],
13
13
  "bill-brand-base": e["sidebar-bill"],
14
- "bill-brand-base-responsive": e["sidebar-bill"]
14
+ "bill-brand-base-responsive": e["sidebar-bill"],
15
+ "fin-base": e["sidebar-fin"],
16
+ "fin-base-responsive": e["sidebar-fin"]
15
17
  },
16
18
  parent: {
17
19
  1: e["parent-sidebar-1"],
@@ -34,7 +36,9 @@ const r = {
34
36
  "lpd-brand-base-white-responsive": e["divider-item-sidebar-lpd"],
35
37
  "lpd-brand-base-transparent-responsive": e["divider-item-sidebar-lpd"],
36
38
  "bill-brand-base": e["divider-item-sidebar-bill"],
37
- "bill-brand-base-responsive": e["divider-item-sidebar-bill"]
39
+ "bill-brand-base-responsive": e["divider-item-sidebar-bill"],
40
+ "fin-base": e["divider-item-sidebar-fin"],
41
+ "fin-base-responsive": e["divider-item-sidebar-fin"]
38
42
  }
39
43
  };
40
44
  export {
@@ -1 +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"),B=require("./ItemSidebar.cjs"),N=require("../../config/tailwind/nativeScreen.cjs"),S=require("./Sidebar.config.cjs"),I=e.forwardRef((R,W)=>{const{as:C,children:v,patch:d="/",iconCompany:c,iconSubs:k,iconCollapse:m,iconCollapseClose:w,modules:q,toleranceWidthIconCompany:O=25,onClickItems:$,variant:r="payhere-brand-base-white",footer:o,withInheritance:g,id:p="1ru-sidebar",styleSidebar:V,styleContent:L,...M}=R,_=e.useRef(null),[n,l]=e.useState(null),[i,f]=e.useState(null),[z,j]=e.useState(""),[x,h]=e.useState(),[E,F]=e.useState(0),b=()=>{let s=0;document.getElementById("icon-company-sidebar")?.childNodes?.forEach(T=>{s+=T.getBoundingClientRect().width??0}),h(s+O+"px")},y=()=>{F(window.innerWidth)},u=()=>{l(!i),i?h("auto"):setTimeout(()=>{b()},100)};return e.useEffect(()=>{E>=(S.configSidebar.mobileSupport.includes(r)?N.default.lg:N.default.md)?(l(!0),setTimeout(()=>{b()},100)):(l(!1),h("auto"))},[E]),e.useEffect(()=>{typeof n=="boolean"&&f(n)},[n]),e.useImperativeHandle(W,()=>({openSidebar:n,setOpenSidebar:l,handlerClickCollapse:u}),[n,i]),e.useEffect(()=>(d&&d.split("/").length>1&&j(d+"/"),b(),y(),window.addEventListener("resize",y),()=>window.removeEventListener("resize",y)),[]),t.jsxs("div",{className:S.configSidebar.variants[r],...M,ref:_,children:[t.jsxs("div",{id:p,className:`${a.default.sidebar} ${typeof i=="boolean"&&i?a.default["sidebar-open"]:""} ${typeof i=="boolean"&&!i?a.default["sidebar-close"]:""}`,style:V||{},children:[e.isValidElement(m)&&t.jsxs("div",{className:a.default["button-collaps-sidebar"],id:`${p}-${n?"close-collapse":"open-collapse"}`,onClick:u,children:[n&&m,n?"":e.isValidElement(w)?w: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:x&&S.configSidebar.withCuctomWidthIconCompany.includes(r)?x:"100%"},children:[e.isValidElement(c)&&c,typeof c=="function"&&c({openSidebar:i,setOpenSidebar:l})]})}),t.jsx("div",{className:a.default["menu-sidebar"],onMouseOver:()=>{n||f(!0)},onMouseOut:()=>{n||f(!1)},children:q.map(s=>e.createElement(B.default,{...s,as:s.manualRoute||s.subs.length>0?"div":C,linkComponent:C,key:s.name,show:z,open:i,patch:d,iconSubs:k,variant:r,setShow:j,onClickItems:$}))}),o&&t.jsxs("div",{className:i?"iru-opacity-[1]":"iru-opacity-0",children:[e.isValidElement(o)&&t.jsx("div",{children:o}),typeof o=="function"&&t.jsx("div",{children:o()})]})]}),n&&t.jsx("div",{id:`${p}-splace-screen`,className:a.default["splace-screen"],onClick:u}),t.jsxs("div",{className:a.default["content-sidebar"],style:L||{},children:[g&&e.Children?.map(v,s=>t.jsx(t.Fragment,{children:e.isValidElement(s)&&t.jsx(t.Fragment,{children:e.cloneElement(s,{openSidebar:n,handlerClickCollapse:u})})})),!g&&t.jsx(t.Fragment,{children:v})]})]})});I.displayName="Sidebar";exports.default=I;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react/jsx-runtime"),e=require("react"),o=require("./Sidebar.module.scss.cjs"),P=require("./ItemSidebar.cjs"),I=require("../../config/tailwind/nativeScreen.cjs"),C=require("./Sidebar.config.cjs"),R=e.forwardRef((O,W)=>{const{as:v,children:w,patch:c="/",iconCompany:r,iconSubs:k,iconCollapse:m,iconCollapseClose:g,modules:q,toleranceWidthIconCompany:$=25,onClickItems:V,variant:u="payhere-brand-base-white",footer:l,withInheritance:j,id:f="1ru-sidebar",styleSidebar:L,styleContent:M,defaultOpen:a,..._}=O,z=e.useRef(null),[n,d]=e.useState(null),[i,b]=e.useState(typeof a=="boolean"?a:null),[F,x]=e.useState(""),[E,h]=e.useState(),[N,T]=e.useState(0),y=()=>{let s=0;document.getElementById("icon-company-sidebar")?.childNodes?.forEach(B=>{s+=B.getBoundingClientRect().width??0}),h(s+$+"px")},S=()=>{T(window.innerWidth)},p=()=>{d(!i),i?h("auto"):setTimeout(()=>{y()},100)};return e.useEffect(()=>{N>=(C.configSidebar.mobileSupport.includes(u)?I.default.lg:I.default.md)?(d(typeof a=="boolean"?a:!0),setTimeout(()=>{y()},100)):(d(typeof a=="boolean"?a:!1),h("auto"))},[N]),e.useEffect(()=>{typeof n=="boolean"&&b(n)},[n]),e.useImperativeHandle(W,()=>({openSidebar:n,setOpenSidebar:d,handlerClickCollapse:p}),[n,i]),e.useEffect(()=>(c&&c.split("/").length>1&&x(c+"/"),y(),S(),window.addEventListener("resize",S),()=>window.removeEventListener("resize",S)),[]),t.jsxs("div",{className:C.configSidebar.variants[u],..._,ref:z,children:[t.jsxs("div",{id:f,className:`${o.default.sidebar} ${typeof i=="boolean"&&i?o.default["sidebar-open"]:""} ${typeof i=="boolean"&&!i?o.default["sidebar-close"]:""}`,style:L||{},children:[e.isValidElement(m)&&t.jsxs("div",{className:o.default["button-collaps-sidebar"],id:`${f}-${n?"close-collapse":"open-collapse"}`,onClick:p,children:[n&&m,n?"":e.isValidElement(g)?g:m]}),t.jsx("div",{className:o.default["container-icon-company-sidebar"],children:t.jsxs("div",{id:"icon-company-sidebar",className:o.default["icon-company-sidebar"],style:{width:E&&C.configSidebar.withCuctomWidthIconCompany.includes(u)?E:"100%"},children:[e.isValidElement(r)&&r,typeof r=="function"&&r({openSidebar:i,setOpenSidebar:d})]})}),t.jsx("div",{className:o.default["menu-sidebar"],onMouseOver:()=>{n||b(!0)},onMouseOut:()=>{n||b(!1)},children:q.map(s=>e.createElement(P.default,{...s,as:s.manualRoute||s.subs.length>0?"div":v,linkComponent:v,key:s.name,show:F,open:i,patch:c,iconSubs:k,variant:u,setShow:x,onClickItems:V}))}),l&&t.jsxs("div",{className:i?"iru-opacity-[1]":"iru-opacity-0",children:[e.isValidElement(l)&&t.jsx("div",{children:l}),typeof l=="function"&&t.jsx("div",{children:l()})]})]}),n&&t.jsx("div",{id:`${f}-splace-screen`,className:o.default["splace-screen"],onClick:p}),t.jsxs("div",{className:o.default["content-sidebar"],style:M||{},children:[j&&e.Children?.map(w,s=>t.jsx(t.Fragment,{children:e.isValidElement(s)&&t.jsx(t.Fragment,{children:e.cloneElement(s,{openSidebar:n,handlerClickCollapse:p})})})),!j&&t.jsx(t.Fragment,{children:w})]})]})});R.displayName="Sidebar";exports.default=R;
@@ -1 +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;
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"],"fin-base":e.default["fin-base"],"fin-base-responsive":e.default["fin-base-responsive"]},mobileSupport:["lpd-brand-base-transparent-responsive","lpd-brand-base-white-responsive","bill-brand-base-responsive"]};exports.configSidebar=a;
@@ -1,18 +1,20 @@
1
- import a from "./Sidebar.module.scss.mjs";
1
+ import e from "./Sidebar.module.scss.mjs";
2
2
  const r = {
3
3
  withCuctomWidthIconCompany: ["payhere-brand-base-white", "payhere-brand-base-transparent"],
4
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"]
5
+ "payhere-brand-base-white": e["payhere-brand-base-white"],
6
+ "payhere-brand-base-transparent": e["payhere-brand-base-transparent"],
7
+ "payhere-brand-indigo-900-transparent": e["payhere-brand-indigo-900-transparent"],
8
+ "payhere-brand-blue-gray-900-transparent": e["payhere-brand-blue-gray-900-transparent"],
9
+ "laba-white": e["laba-white"],
10
+ "lpd-brand-base-white": e["lpd-brand-base-white"],
11
+ "lpd-brand-base-transparent": e["lpd-brand-base-transparent"],
12
+ "lpd-brand-base-white-responsive": e["lpd-brand-base-white-responsive"],
13
+ "lpd-brand-base-transparent-responsive": e["lpd-brand-base-transparent-responsive"],
14
+ "bill-brand-base": e["bill-brand-base"],
15
+ "bill-brand-base-responsive": e["bill-brand-base-responsive"],
16
+ "fin-base": e["fin-base"],
17
+ "fin-base-responsive": e["fin-base-responsive"]
16
18
  },
17
19
  mobileSupport: [
18
20
  "lpd-brand-base-transparent-responsive",