1mpacto-react-ui 2.0.26 → 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.
- package/dist/assets/_mixins.scss +6 -1
- package/dist/assets/_typography.scss +7 -3
- package/dist/assets/core.css +1 -1
- package/dist/assets/style.css +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +3 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.config.cjs +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.config.mjs +4 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.mjs +33 -33
- package/dist/components/Breadcrumbs/style.module.scss.cjs +1 -1
- package/dist/components/Breadcrumbs/style.module.scss.mjs +13 -10
- package/dist/components/Button/Button.config.cjs +1 -1
- package/dist/components/Button/Button.config.mjs +10 -2
- package/dist/components/Button/style.module.scss.cjs +1 -1
- package/dist/components/Button/style.module.scss.mjs +64 -60
- package/dist/components/ButtonIcon/ButtonIcon.config.cjs +1 -1
- package/dist/components/ButtonIcon/ButtonIcon.config.mjs +58 -47
- package/dist/components/ButtonIcon/style.module.scss.cjs +1 -1
- package/dist/components/ButtonIcon/style.module.scss.mjs +53 -46
- package/dist/components/Input/InputInnerLabel.module.scss.cjs +1 -1
- package/dist/components/Input/InputInnerLabel.module.scss.mjs +19 -19
- package/dist/components/Modal/ModalDialog.cjs +1 -1
- package/dist/components/Modal/ModalDialog.config.cjs +1 -1
- package/dist/components/Modal/ModalDialog.config.mjs +11 -7
- package/dist/components/Modal/ModalDialog.mjs +24 -23
- package/dist/components/Modal/style.module.scss.cjs +1 -1
- package/dist/components/Modal/style.module.scss.mjs +13 -11
- package/dist/components/Popover/Popover.cjs +1 -1
- package/dist/components/Popover/Popover.config.cjs +1 -0
- package/dist/components/Popover/Popover.config.mjs +10 -0
- package/dist/components/Popover/Popover.mjs +42 -40
- package/dist/components/Popover/style.module.scss.cjs +1 -1
- package/dist/components/Popover/style.module.scss.mjs +7 -4
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.module.scss.mjs +25 -25
- package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/itemSidebar.module.scss.mjs +25 -25
- package/dist/components/Textarea/TextareaFloatingInner.cjs +6 -5
- package/dist/components/Textarea/TextareaFloatingInner.config.cjs +1 -1
- package/dist/components/Textarea/TextareaFloatingInner.config.mjs +6 -2
- package/dist/components/Textarea/TextareaFloatingInner.mjs +38 -36
- package/dist/components/Textarea/TextareaFloatingInner.module.scss.cjs +1 -1
- package/dist/components/Textarea/TextareaFloatingInner.module.scss.mjs +14 -12
- package/dist/config/tailwind/typography.cjs +1 -1
- package/dist/config/tailwind/typography.mjs +11 -3
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.d.ts +1 -1
- package/dist/package.json.mjs +1 -1
- package/dist/src/components/Breadcrumbs/Breadcrumbs.config.d.ts +1 -0
- package/dist/src/components/Button/Button.config.d.ts +8 -0
- package/dist/src/components/ButtonIcon/ButtonIcon.config.d.ts +11 -0
- package/dist/src/components/Modal/ModalDialog.config.d.ts +4 -0
- package/dist/src/components/Modal/ModalDialog.d.ts +1 -1
- package/dist/src/components/Modal/ModalDialog.stories.d.ts +1 -1
- package/dist/src/components/Popover/Popover.config.d.ts +7 -0
- package/dist/src/components/Textarea/TextareaFloatingInner.config.d.ts +5 -0
- package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +2 -2
- package/dist/src/interfaces/components/Modal/index.d.ts +5 -0
- package/dist/src/interfaces/components/Popover/index.d.ts +5 -0
- package/dist/src/interfaces/components/Textarea/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -1,51 +1,58 @@
|
|
|
1
|
-
const _ = "
|
|
2
|
-
"button-
|
|
3
|
-
"button-
|
|
4
|
-
"button-
|
|
5
|
-
"button-
|
|
6
|
-
"button-bill-
|
|
7
|
-
"button-xs": "_button-
|
|
8
|
-
"button-s": "_button-
|
|
9
|
-
"button-m": "_button-
|
|
10
|
-
"button-l": "_button-
|
|
11
|
-
"button-
|
|
12
|
-
"button-
|
|
13
|
-
"button-
|
|
14
|
-
"button-
|
|
1
|
+
const _ = "_loading_o0460_14", r = {
|
|
2
|
+
"button-fin-xs": "_button-fin-xs_o0460_6",
|
|
3
|
+
"button-fin-s": "_button-fin-s_o0460_6",
|
|
4
|
+
"button-fin-m": "_button-fin-m_o0460_6",
|
|
5
|
+
"button-fin-l": "_button-fin-l_o0460_6",
|
|
6
|
+
"button-bill-xxs": "_button-bill-xxs_o0460_6",
|
|
7
|
+
"button-bill-xs": "_button-bill-xs_o0460_6",
|
|
8
|
+
"button-bill-s": "_button-bill-s_o0460_6",
|
|
9
|
+
"button-bill-m": "_button-bill-m_o0460_6",
|
|
10
|
+
"button-bill-l": "_button-bill-l_o0460_6",
|
|
11
|
+
"button-xs": "_button-xs_o0460_6",
|
|
12
|
+
"button-s": "_button-s_o0460_6",
|
|
13
|
+
"button-m": "_button-m_o0460_6",
|
|
14
|
+
"button-l": "_button-l_o0460_6",
|
|
15
|
+
"button-extra-small": "_button-extra-small_o0460_6",
|
|
16
|
+
"button-small": "_button-small_o0460_6",
|
|
17
|
+
"button-reguler": "_button-reguler_o0460_6",
|
|
18
|
+
"button-large": "_button-large_o0460_6",
|
|
15
19
|
loading: _,
|
|
16
|
-
"nude-laba-red-05": "_nude-laba-red-
|
|
17
|
-
"nude-laba-red-10": "_nude-laba-red-
|
|
18
|
-
"nude-gray-500": "_nude-gray-
|
|
19
|
-
"nude-green-700": "_nude-green-
|
|
20
|
-
"nude-red-700": "_nude-red-
|
|
21
|
-
"nude-laba-blue-10": "_nude-laba-blue-
|
|
22
|
-
"ghost-laba-green-10": "_ghost-laba-green-
|
|
23
|
-
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-
|
|
24
|
-
"ghost-green-700": "_ghost-green-
|
|
25
|
-
"ghost-red-700": "_ghost-red-
|
|
26
|
-
"ghost-laba-blue-10": "_ghost-laba-blue-
|
|
27
|
-
"filled-laba-white_laba-red-05": "_filled-laba-white_laba-red-
|
|
28
|
-
"filled-laba-white_laba-blue-10": "_filled-laba-white_laba-blue-
|
|
29
|
-
"primary-green-700-dsb_laba-grey-06": "_primary-green-700-dsb_laba-grey-
|
|
30
|
-
"primary-red-700-dsb_laba-grey-06": "_primary-red-700-dsb_laba-grey-
|
|
31
|
-
"primary-laba-blue-10": "_primary-laba-blue-
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"primary-bill-
|
|
36
|
-
"tertiary-
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"tertiary-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"secondary-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
20
|
+
"nude-laba-red-05": "_nude-laba-red-05_o0460_29",
|
|
21
|
+
"nude-laba-red-10": "_nude-laba-red-10_o0460_29",
|
|
22
|
+
"nude-gray-500": "_nude-gray-500_o0460_29",
|
|
23
|
+
"nude-green-700": "_nude-green-700_o0460_29",
|
|
24
|
+
"nude-red-700": "_nude-red-700_o0460_29",
|
|
25
|
+
"nude-laba-blue-10": "_nude-laba-blue-10_o0460_29",
|
|
26
|
+
"ghost-laba-green-10": "_ghost-laba-green-10_o0460_29",
|
|
27
|
+
"ghost-blue-gray-100-bg_white": "_ghost-blue-gray-100-bg_white_o0460_29",
|
|
28
|
+
"ghost-green-700": "_ghost-green-700_o0460_29",
|
|
29
|
+
"ghost-red-700": "_ghost-red-700_o0460_29",
|
|
30
|
+
"ghost-laba-blue-10": "_ghost-laba-blue-10_o0460_29",
|
|
31
|
+
"filled-laba-white_laba-red-05": "_filled-laba-white_laba-red-05_o0460_29",
|
|
32
|
+
"filled-laba-white_laba-blue-10": "_filled-laba-white_laba-blue-10_o0460_29",
|
|
33
|
+
"primary-green-700-dsb_laba-grey-06": "_primary-green-700-dsb_laba-grey-06_o0460_29",
|
|
34
|
+
"primary-red-700-dsb_laba-grey-06": "_primary-red-700-dsb_laba-grey-06_o0460_29",
|
|
35
|
+
"primary-laba-blue-10": "_primary-laba-blue-10_o0460_29",
|
|
36
|
+
"tertiary-fin-primary-500": "_tertiary-fin-primary-500_o0460_29",
|
|
37
|
+
"secondary-fin-primary-500": "_secondary-fin-primary-500_o0460_29",
|
|
38
|
+
"primary-fin-primary-500": "_primary-fin-primary-500_o0460_29",
|
|
39
|
+
"primary-bill-red-700": "_primary-bill-red-700_o0460_29",
|
|
40
|
+
"tertiary-bill-secondary-800": "_tertiary-bill-secondary-800_o0460_29",
|
|
41
|
+
"secondary-bill-secondary-800": "_secondary-bill-secondary-800_o0460_29",
|
|
42
|
+
"primary-bill-primary-600": "_primary-bill-primary-600_o0460_29",
|
|
43
|
+
"tertiary-gray-500": "_tertiary-gray-500_o0460_29",
|
|
44
|
+
"tertiary-red-600": "_tertiary-red-600_o0460_29",
|
|
45
|
+
"tertiary-red-300": "_tertiary-red-300_o0460_29",
|
|
46
|
+
"tertiary-blue-700": "_tertiary-blue-700_o0460_29",
|
|
47
|
+
"secondary-green-600": "_secondary-green-600_o0460_29",
|
|
48
|
+
"secondary-red-700": "_secondary-red-700_o0460_29",
|
|
49
|
+
"secondary-red-600": "_secondary-red-600_o0460_29",
|
|
50
|
+
"secondary-blue-700": "_secondary-blue-700_o0460_29",
|
|
51
|
+
"primary-red-700": "_primary-red-700_o0460_29",
|
|
52
|
+
"primary-blue-700": "_primary-blue-700_o0460_29",
|
|
53
|
+
"icon-loading": "_icon-loading_o0460_236"
|
|
47
54
|
};
|
|
48
55
|
export {
|
|
49
|
-
|
|
56
|
+
r as default,
|
|
50
57
|
_ as loading
|
|
51
58
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
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,22 +1,22 @@
|
|
|
1
|
-
const
|
|
2
|
-
"container-large": "_container-
|
|
3
|
-
"container-input": "_container-
|
|
4
|
-
input:
|
|
5
|
-
label:
|
|
6
|
-
error:
|
|
7
|
-
"isset-right-icon": "_isset-right-
|
|
8
|
-
"isset-left-icon": "_isset-left-
|
|
9
|
-
"start-icon": "_start-
|
|
10
|
-
"end-icon": "_end-
|
|
11
|
-
"label-error": "_label-
|
|
12
|
-
"hidden-label": "_hidden-
|
|
13
|
-
"container-small": "_container-
|
|
14
|
-
"bill-blue-800": "_bill-blue-
|
|
15
|
-
"fin-black": "_fin-
|
|
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"
|
|
16
16
|
};
|
|
17
17
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
n as default,
|
|
19
|
+
_ as error,
|
|
20
|
+
e as input,
|
|
21
|
+
t as label
|
|
22
22
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),
|
|
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
|
|
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
|
|
2
|
-
const
|
|
1
|
+
import a from "./style.module.scss.mjs";
|
|
2
|
+
const r = {
|
|
3
3
|
size: {
|
|
4
|
-
small:
|
|
5
|
-
medium:
|
|
6
|
-
regular:
|
|
7
|
-
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
|
-
|
|
15
|
+
r as configModal
|
|
12
16
|
};
|
|
@@ -1,37 +1,38 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import { createPortal as
|
|
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
|
|
5
|
-
const
|
|
6
|
-
as:
|
|
7
|
-
children:
|
|
8
|
-
id:
|
|
9
|
-
idModal: e = "
|
|
10
|
-
withOverlay:
|
|
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:
|
|
14
|
-
classNameContainer:
|
|
13
|
+
className: s,
|
|
14
|
+
classNameContainer: f,
|
|
15
15
|
onClose: a,
|
|
16
|
-
|
|
16
|
+
brand: g = "",
|
|
17
|
+
...p
|
|
17
18
|
}) => {
|
|
18
|
-
const
|
|
19
|
+
const u = m ?? "div", $ = () => {
|
|
19
20
|
typeof a == "function" && a();
|
|
20
21
|
};
|
|
21
|
-
return /* @__PURE__ */ t(
|
|
22
|
+
return /* @__PURE__ */ t(h, { children: r && document.getElementById(e) && v(
|
|
22
23
|
/* @__PURE__ */ t(
|
|
23
24
|
"div",
|
|
24
25
|
{
|
|
25
|
-
id:
|
|
26
|
-
onClick:
|
|
27
|
-
className: `${o.modal} ${
|
|
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
|
-
|
|
30
|
+
u,
|
|
30
31
|
{
|
|
31
|
-
onClick: (
|
|
32
|
-
className: `${o["modal-content"]} ${
|
|
33
|
-
...
|
|
34
|
-
children:
|
|
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
|
-
|
|
44
|
+
E as default
|
|
44
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
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
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"modal-
|
|
8
|
-
"modal-
|
|
9
|
-
"modal-
|
|
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
|
-
|
|
13
|
-
|
|
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"),
|
|
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;
|
|
@@ -1,78 +1,80 @@
|
|
|
1
|
-
import { jsx as r, Fragment as
|
|
2
|
-
import { useFloating as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
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:
|
|
12
|
+
anchorEl: i,
|
|
12
13
|
useAutoPlacement: w = !1,
|
|
13
14
|
flipOptions: P,
|
|
14
|
-
autoPlacementOptions:
|
|
15
|
-
zIndex:
|
|
16
|
-
width:
|
|
17
|
-
styleInnerPopover:
|
|
15
|
+
autoPlacementOptions: v,
|
|
16
|
+
zIndex: y = 10,
|
|
17
|
+
width: a,
|
|
18
|
+
styleInnerPopover: F = {},
|
|
18
19
|
floatingOptions: R = {},
|
|
19
|
-
onClose:
|
|
20
|
+
onClose: l = () => {
|
|
20
21
|
},
|
|
21
22
|
withArrow: S,
|
|
22
23
|
propsArrow: x = {},
|
|
23
24
|
floatingFocusManagerProps: A,
|
|
24
25
|
useDismissProps: C,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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
|
-
|
|
31
|
+
s(e), e || l();
|
|
30
32
|
},
|
|
31
33
|
middleware: [
|
|
32
|
-
|
|
33
|
-
w ?
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
G(h),
|
|
35
|
+
w ? J(v) : K(P),
|
|
36
|
+
L(),
|
|
37
|
+
Q({
|
|
36
38
|
element: f
|
|
37
39
|
})
|
|
38
40
|
],
|
|
39
|
-
whileElementsMounted:
|
|
41
|
+
whileElementsMounted: B,
|
|
40
42
|
...R
|
|
41
|
-
}),
|
|
42
|
-
c.setReference(e.currentTarget),
|
|
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
|
-
|
|
45
|
-
n &&
|
|
46
|
-
}, [n,
|
|
46
|
+
ne(() => {
|
|
47
|
+
n && i ? p({ currentTarget: i }) : n || s(!1);
|
|
48
|
+
}, [n, i]), ie(
|
|
47
49
|
m,
|
|
48
50
|
() => ({
|
|
49
|
-
show:
|
|
50
|
-
setShow:
|
|
51
|
-
handlerShow:
|
|
51
|
+
show: o,
|
|
52
|
+
setShow: s,
|
|
53
|
+
handlerShow: p,
|
|
52
54
|
getReferenceProps: T
|
|
53
55
|
}),
|
|
54
|
-
[
|
|
56
|
+
[o]
|
|
55
57
|
);
|
|
56
|
-
const
|
|
57
|
-
let e = { ...
|
|
58
|
-
return
|
|
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(
|
|
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:
|
|
65
|
-
|
|
66
|
-
className: `${
|
|
67
|
-
...
|
|
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(
|
|
72
|
+
S && /* @__PURE__ */ r(te, { ref: f, context: t, ...x })
|
|
71
73
|
]
|
|
72
74
|
}
|
|
73
75
|
) }) }) });
|
|
74
76
|
});
|
|
75
|
-
|
|
77
|
+
fe.displayName = "Popover";
|
|
76
78
|
export {
|
|
77
|
-
|
|
79
|
+
fe as default
|
|
78
80
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const 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
|
|
2
|
-
|
|
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
|
-
|
|
6
|
-
|
|
7
|
+
o as default,
|
|
8
|
+
e as popover,
|
|
9
|
+
t as white
|
|
7
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a="_sidebar_1sa0l_16",e={"splace-screen":"_splace-screen_1sa0l_1","payhere-brand-base-white":"_payhere-brand-base-white_1sa0l_13",sidebar:a,"button-collaps-sidebar":"_button-collaps-sidebar_1sa0l_31","menu-sidebar":"_menu-sidebar_1sa0l_48","sidebar-open":"_sidebar-open_1sa0l_79","container-icon-company-sidebar":"_container-icon-company-sidebar_1sa0l_96","icon-company-sidebar":"_icon-company-sidebar_1sa0l_99","sidebar-close":"_sidebar-close_1sa0l_107","content-sidebar":"_content-sidebar_1sa0l_132","payhere-brand-base-transparent":"_payhere-brand-base-transparent_1sa0l_211","payhere-brand-blue-gray-900-transparent":"_payhere-brand-blue-gray-900-transparent_1sa0l_409","payhere-brand-indigo-900-transparent":"_payhere-brand-indigo-900-transparent_1sa0l_607","laba-white":"_laba-white_1sa0l_805","lpd-brand-base-white":"_lpd-brand-base-white_1sa0l_1195","lpd-brand-base-transparent":"_lpd-brand-base-transparent_1sa0l_1393","lpd-brand-base-white-responsive":"_lpd-brand-base-white-responsive_1sa0l_1591","lpd-brand-base-transparent-responsive":"_lpd-brand-base-transparent-responsive_1sa0l_1825","bill-brand-base":"_bill-brand-base_1sa0l_2059","bill-brand-base-responsive":"_bill-brand-base-responsive_1sa0l_2460","fin-base":"_fin-base_1sa0l_2861","fin-base-responsive":"_fin-base-responsive_1sa0l_3255"};exports.default=e;exports.sidebar=a;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
const
|
|
2
|
-
"splace-screen": "_splace-
|
|
3
|
-
"payhere-brand-base-white": "_payhere-brand-base-
|
|
4
|
-
sidebar:
|
|
5
|
-
"button-collaps-sidebar": "_button-collaps-
|
|
6
|
-
"menu-sidebar": "_menu-
|
|
7
|
-
"sidebar-open": "_sidebar-
|
|
8
|
-
"container-icon-company-sidebar": "_container-icon-company-
|
|
9
|
-
"icon-company-sidebar": "_icon-company-
|
|
10
|
-
"sidebar-close": "_sidebar-
|
|
11
|
-
"content-sidebar": "_content-
|
|
12
|
-
"payhere-brand-base-transparent": "_payhere-brand-base-
|
|
13
|
-
"payhere-brand-blue-gray-900-transparent": "_payhere-brand-blue-gray-900-
|
|
14
|
-
"payhere-brand-indigo-900-transparent": "_payhere-brand-indigo-900-
|
|
15
|
-
"laba-white": "_laba-
|
|
16
|
-
"lpd-brand-base-white": "_lpd-brand-base-
|
|
17
|
-
"lpd-brand-base-transparent": "_lpd-brand-base-
|
|
18
|
-
"lpd-brand-base-white-responsive": "_lpd-brand-base-white-
|
|
19
|
-
"lpd-brand-base-transparent-responsive": "_lpd-brand-base-transparent-
|
|
20
|
-
"bill-brand-base": "_bill-brand-
|
|
21
|
-
"bill-brand-base-responsive": "_bill-brand-base-
|
|
22
|
-
"fin-base": "_fin-
|
|
23
|
-
"fin-base-responsive": "_fin-base-
|
|
1
|
+
const a = "_sidebar_1sa0l_16", e = {
|
|
2
|
+
"splace-screen": "_splace-screen_1sa0l_1",
|
|
3
|
+
"payhere-brand-base-white": "_payhere-brand-base-white_1sa0l_13",
|
|
4
|
+
sidebar: a,
|
|
5
|
+
"button-collaps-sidebar": "_button-collaps-sidebar_1sa0l_31",
|
|
6
|
+
"menu-sidebar": "_menu-sidebar_1sa0l_48",
|
|
7
|
+
"sidebar-open": "_sidebar-open_1sa0l_79",
|
|
8
|
+
"container-icon-company-sidebar": "_container-icon-company-sidebar_1sa0l_96",
|
|
9
|
+
"icon-company-sidebar": "_icon-company-sidebar_1sa0l_99",
|
|
10
|
+
"sidebar-close": "_sidebar-close_1sa0l_107",
|
|
11
|
+
"content-sidebar": "_content-sidebar_1sa0l_132",
|
|
12
|
+
"payhere-brand-base-transparent": "_payhere-brand-base-transparent_1sa0l_211",
|
|
13
|
+
"payhere-brand-blue-gray-900-transparent": "_payhere-brand-blue-gray-900-transparent_1sa0l_409",
|
|
14
|
+
"payhere-brand-indigo-900-transparent": "_payhere-brand-indigo-900-transparent_1sa0l_607",
|
|
15
|
+
"laba-white": "_laba-white_1sa0l_805",
|
|
16
|
+
"lpd-brand-base-white": "_lpd-brand-base-white_1sa0l_1195",
|
|
17
|
+
"lpd-brand-base-transparent": "_lpd-brand-base-transparent_1sa0l_1393",
|
|
18
|
+
"lpd-brand-base-white-responsive": "_lpd-brand-base-white-responsive_1sa0l_1591",
|
|
19
|
+
"lpd-brand-base-transparent-responsive": "_lpd-brand-base-transparent-responsive_1sa0l_1825",
|
|
20
|
+
"bill-brand-base": "_bill-brand-base_1sa0l_2059",
|
|
21
|
+
"bill-brand-base-responsive": "_bill-brand-base-responsive_1sa0l_2460",
|
|
22
|
+
"fin-base": "_fin-base_1sa0l_2861",
|
|
23
|
+
"fin-base-responsive": "_fin-base-responsive_1sa0l_3255"
|
|
24
24
|
};
|
|
25
25
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
e as default,
|
|
27
|
+
a as sidebar
|
|
28
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_hidden_1tshq_96",i="_active_1tshq_152",s={"item-icon-subs":"_item-icon-subs_1tshq_1","item-sidebar-2":"_item-sidebar-2_1tshq_1","item-sidebar-1":"_item-sidebar-1_1tshq_1","end-icon":"_end-icon_1tshq_1","item-icon":"_item-icon_1tshq_1","item-label":"_item-label_1tshq_25","item-sidebar-open":"_item-sidebar-open_1tshq_51","item-sidebar-close":"_item-sidebar-close_1tshq_66","item-icon-subs-active":"_item-icon-subs-active_1tshq_75","item-subs-sidebar":"_item-subs-sidebar_1tshq_82","sidebar-bill":"_sidebar-bill_1tshq_85",hidden:e,"divider-item-sidebar-payhere":"_divider-item-sidebar-payhere_1tshq_106","divider-item-sidebar-lpd":"_divider-item-sidebar-lpd_1tshq_111","parent-sidebar-5":"_parent-sidebar-5_1tshq_133","parent-sidebar-6":"_parent-sidebar-6_1tshq_137","parent-sidebar-7":"_parent-sidebar-7_1tshq_141","parent-sidebar-8":"_parent-sidebar-8_1tshq_146",active:i,"sidebar-payhere-blue-gray-800":"_sidebar-payhere-blue-gray-800_1tshq_162","sidebar-payhere-indigo-800":"_sidebar-payhere-indigo-800_1tshq_188","sidebar-payhere":"_sidebar-payhere_1tshq_162","sidebar-laba":"_sidebar-laba_1tshq_240","sidebar-lpd":"_sidebar-lpd_1tshq_273","sidebar-fin":"_sidebar-fin_1tshq_299"};exports.active=i;exports.default=s;exports.hidden=e;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
const e = "
|
|
2
|
-
"item-icon-subs": "_item-icon-
|
|
3
|
-
"item-sidebar-2": "_item-sidebar-
|
|
4
|
-
"item-sidebar-1": "_item-sidebar-
|
|
5
|
-
"end-icon": "_end-
|
|
6
|
-
"item-icon": "_item-
|
|
7
|
-
"item-label": "_item-
|
|
8
|
-
"item-sidebar-open": "_item-sidebar-
|
|
9
|
-
"item-sidebar-close": "_item-sidebar-
|
|
10
|
-
"item-icon-subs-active": "_item-icon-subs-
|
|
11
|
-
"item-subs-sidebar": "_item-subs-
|
|
12
|
-
"sidebar-bill": "_sidebar-
|
|
1
|
+
const e = "_hidden_1tshq_96", i = "_active_1tshq_152", s = {
|
|
2
|
+
"item-icon-subs": "_item-icon-subs_1tshq_1",
|
|
3
|
+
"item-sidebar-2": "_item-sidebar-2_1tshq_1",
|
|
4
|
+
"item-sidebar-1": "_item-sidebar-1_1tshq_1",
|
|
5
|
+
"end-icon": "_end-icon_1tshq_1",
|
|
6
|
+
"item-icon": "_item-icon_1tshq_1",
|
|
7
|
+
"item-label": "_item-label_1tshq_25",
|
|
8
|
+
"item-sidebar-open": "_item-sidebar-open_1tshq_51",
|
|
9
|
+
"item-sidebar-close": "_item-sidebar-close_1tshq_66",
|
|
10
|
+
"item-icon-subs-active": "_item-icon-subs-active_1tshq_75",
|
|
11
|
+
"item-subs-sidebar": "_item-subs-sidebar_1tshq_82",
|
|
12
|
+
"sidebar-bill": "_sidebar-bill_1tshq_85",
|
|
13
13
|
hidden: e,
|
|
14
|
-
"divider-item-sidebar-payhere": "_divider-item-sidebar-
|
|
15
|
-
"divider-item-sidebar-lpd": "_divider-item-sidebar-
|
|
16
|
-
"parent-sidebar-5": "_parent-sidebar-
|
|
17
|
-
"parent-sidebar-6": "_parent-sidebar-
|
|
18
|
-
"parent-sidebar-7": "_parent-sidebar-
|
|
19
|
-
"parent-sidebar-8": "_parent-sidebar-
|
|
14
|
+
"divider-item-sidebar-payhere": "_divider-item-sidebar-payhere_1tshq_106",
|
|
15
|
+
"divider-item-sidebar-lpd": "_divider-item-sidebar-lpd_1tshq_111",
|
|
16
|
+
"parent-sidebar-5": "_parent-sidebar-5_1tshq_133",
|
|
17
|
+
"parent-sidebar-6": "_parent-sidebar-6_1tshq_137",
|
|
18
|
+
"parent-sidebar-7": "_parent-sidebar-7_1tshq_141",
|
|
19
|
+
"parent-sidebar-8": "_parent-sidebar-8_1tshq_146",
|
|
20
20
|
active: i,
|
|
21
|
-
"sidebar-payhere-blue-gray-800": "_sidebar-payhere-blue-gray-
|
|
22
|
-
"sidebar-payhere-indigo-800": "_sidebar-payhere-indigo-
|
|
23
|
-
"sidebar-payhere": "_sidebar-
|
|
24
|
-
"sidebar-laba": "_sidebar-
|
|
25
|
-
"sidebar-lpd": "_sidebar-
|
|
26
|
-
"sidebar-fin": "_sidebar-
|
|
21
|
+
"sidebar-payhere-blue-gray-800": "_sidebar-payhere-blue-gray-800_1tshq_162",
|
|
22
|
+
"sidebar-payhere-indigo-800": "_sidebar-payhere-indigo-800_1tshq_188",
|
|
23
|
+
"sidebar-payhere": "_sidebar-payhere_1tshq_162",
|
|
24
|
+
"sidebar-laba": "_sidebar-laba_1tshq_240",
|
|
25
|
+
"sidebar-lpd": "_sidebar-lpd_1tshq_273",
|
|
26
|
+
"sidebar-fin": "_sidebar-fin_1tshq_299"
|
|
27
27
|
};
|
|
28
28
|
export {
|
|
29
29
|
i as active,
|
|
30
|
-
|
|
30
|
+
s as default,
|
|
31
31
|
e as hidden
|
|
32
32
|
};
|