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.
- package/dist/assets/_colors.scss +42 -0
- package/dist/assets/_mixins.scss +6 -1
- package/dist/assets/_typography.scss +37 -3
- package/dist/assets/core.css +1 -1
- package/dist/assets/fontfamily.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 +67 -56
- package/dist/components/Button/style.module.scss.cjs +1 -1
- package/dist/components/Button/style.module.scss.mjs +63 -56
- 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/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.config.cjs +1 -0
- package/dist/components/Calendar/Calendar.config.mjs +22 -0
- package/dist/components/Calendar/Calendar.mjs +221 -133
- package/dist/components/Calendar/CalendarCell.cjs +1 -1
- package/dist/components/Calendar/CalendarCell.mjs +9 -9
- package/dist/components/Calendar/CalendarMonth.cjs +1 -1
- package/dist/components/Calendar/CalendarMonth.mjs +23 -21
- package/dist/components/Calendar/CalendarRange.cjs +1 -1
- package/dist/components/Calendar/CalendarRange.mjs +100 -98
- package/dist/components/Calendar/CalendarYear.cjs +2 -2
- package/dist/components/Calendar/CalendarYear.mjs +25 -23
- package/dist/components/Calendar/style.module.scss.cjs +1 -1
- package/dist/components/Calendar/style.module.scss.mjs +35 -33
- package/dist/components/Chart/LineChart.cjs +1 -1
- package/dist/components/Chart/LineChart.mjs +1 -1
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.mjs +78 -69
- package/dist/components/DatePicker/DateRangePicker.cjs +1 -1
- package/dist/components/DatePicker/DateRangePicker.mjs +91 -79
- package/dist/components/DatePicker/FilterDate.cjs +1 -1
- package/dist/components/DatePicker/FilterDate.mjs +181 -127
- package/dist/components/DatePicker/MonthYearPicker.cjs +1 -1
- package/dist/components/DatePicker/MonthYearPicker.mjs +58 -49
- package/dist/components/Input/InputInnerLabel.cjs +6 -6
- package/dist/components/Input/InputInnerLabel.config.cjs +1 -1
- package/dist/components/Input/InputInnerLabel.config.mjs +9 -5
- package/dist/components/Input/InputInnerLabel.mjs +36 -35
- package/dist/components/Input/InputInnerLabel.module.scss.cjs +1 -1
- package/dist/components/Input/InputInnerLabel.module.scss.mjs +19 -17
- 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/ItemSidebar.config.cjs +1 -1
- package/dist/components/Sidebar/ItemSidebar.config.mjs +6 -2
- package/dist/components/Sidebar/Sidebar.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.config.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.config.mjs +14 -12
- package/dist/components/Sidebar/Sidebar.mjs +78 -77
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.module.scss.mjs +25 -23
- package/dist/components/Sidebar/itemSidebar.module.scss.cjs +1 -1
- package/dist/components/Sidebar/itemSidebar.module.scss.mjs +25 -24
- 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/resources/index.cjs +1 -1
- package/dist/config/resources/index.mjs +1 -1
- package/dist/config/tailwind/colors.cjs +1 -1
- package/dist/config/tailwind/colors.mjs +22 -1
- package/dist/config/tailwind/typography.cjs +1 -1
- package/dist/config/tailwind/typography.mjs +79 -4
- 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 +11 -0
- package/dist/src/components/ButtonIcon/ButtonIcon.config.d.ts +11 -0
- package/dist/src/components/Calendar/Calendar.config.d.ts +19 -0
- package/dist/src/components/Calendar/Calendar.d.ts +5 -3
- package/dist/src/components/Calendar/Calendar.stories.d.ts +21 -5
- package/dist/src/components/Calendar/CalendarMonth.d.ts +1 -1
- package/dist/src/components/Calendar/CalendarRange.d.ts +1 -1
- package/dist/src/components/Calendar/CalendarYear.d.ts +1 -1
- package/dist/src/components/DatePicker/DatePicker.stories.d.ts +28 -0
- package/dist/src/components/DatePicker/FilterDate.d.ts +1 -1
- package/dist/src/components/DatePicker/FilterDate.stories.d.ts +29 -1
- package/dist/src/components/DatePicker/MonthYearPicker.d.ts +1 -1
- package/dist/src/components/DatePicker/MonthYearPicker.stories.d.ts +29 -1
- package/dist/src/components/Input/InputInnerLabel.config.d.ts +5 -1
- package/dist/src/components/Input/InputInnerLabel.stories.d.ts +16 -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/Sidebar/ItemSidebar.config.d.ts +4 -0
- package/dist/src/components/Sidebar/Sidebar.config.d.ts +2 -0
- package/dist/src/components/Textarea/TextareaFloatingInner.config.d.ts +5 -0
- package/dist/src/config/resources/index.d.ts +2 -2
- package/dist/src/config/tailwind/typography.d.ts +1 -0
- package/dist/src/interfaces/components/Breadcrumbs/index.d.ts +1 -1
- package/dist/src/interfaces/components/Button/index.d.ts +2 -2
- package/dist/src/interfaces/components/ButtonIcon/index.d.ts +2 -2
- package/dist/src/interfaces/components/Calendar/index.d.ts +41 -0
- package/dist/src/interfaces/components/DatePicker/index.d.ts +41 -1
- package/dist/src/interfaces/components/Input/index.d.ts +10 -0
- 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/Sidebar/index.d.ts +6 -1
- package/dist/src/interfaces/components/Textarea/index.d.ts +5 -0
- package/dist/utils/common.cjs +1 -1
- package/dist/utils/common.mjs +7 -7
- package/package.json +1 -1
|
@@ -1,133 +1,134 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import e, { createElement as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { configSidebar as
|
|
7
|
-
const
|
|
8
|
-
($,
|
|
1
|
+
import { jsxs as l, jsx as s, Fragment as S } from "react/jsx-runtime";
|
|
2
|
+
import e, { createElement as A } from "react";
|
|
3
|
+
import i from "./Sidebar.module.scss.mjs";
|
|
4
|
+
import D from "./ItemSidebar.mjs";
|
|
5
|
+
import O from "../../config/tailwind/nativeScreen.mjs";
|
|
6
|
+
import { configSidebar as v } from "./Sidebar.config.mjs";
|
|
7
|
+
const G = e.forwardRef(
|
|
8
|
+
($, V) => {
|
|
9
9
|
const {
|
|
10
|
-
as:
|
|
11
|
-
children:
|
|
12
|
-
patch:
|
|
13
|
-
iconCompany:
|
|
14
|
-
iconSubs:
|
|
15
|
-
iconCollapse:
|
|
16
|
-
iconCollapseClose:
|
|
17
|
-
modules:
|
|
18
|
-
toleranceWidthIconCompany:
|
|
19
|
-
onClickItems:
|
|
10
|
+
as: E,
|
|
11
|
+
children: N,
|
|
12
|
+
patch: r = "/",
|
|
13
|
+
iconCompany: p,
|
|
14
|
+
iconSubs: x,
|
|
15
|
+
iconCollapse: f,
|
|
16
|
+
iconCollapseClose: g,
|
|
17
|
+
modules: L,
|
|
18
|
+
toleranceWidthIconCompany: z = 25,
|
|
19
|
+
onClickItems: j,
|
|
20
20
|
variant: m = "payhere-brand-base-white",
|
|
21
|
-
footer:
|
|
22
|
-
withInheritance:
|
|
21
|
+
footer: d,
|
|
22
|
+
withInheritance: I,
|
|
23
23
|
id: h = "1ru-sidebar",
|
|
24
|
-
styleSidebar:
|
|
25
|
-
styleContent:
|
|
26
|
-
|
|
27
|
-
|
|
24
|
+
styleSidebar: B,
|
|
25
|
+
styleContent: M,
|
|
26
|
+
defaultOpen: a,
|
|
27
|
+
...T
|
|
28
|
+
} = $, F = e.useRef(null), [n, c] = e.useState(null), [o, b] = e.useState(typeof a == "boolean" ? a : null), [H, R] = e.useState(""), [W, y] = e.useState(), [k, P] = e.useState(0), C = () => {
|
|
28
29
|
let t = 0;
|
|
29
|
-
document.getElementById("icon-company-sidebar")?.childNodes?.forEach((
|
|
30
|
-
t +=
|
|
31
|
-
}),
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
|
|
30
|
+
document.getElementById("icon-company-sidebar")?.childNodes?.forEach((q) => {
|
|
31
|
+
t += q.getBoundingClientRect().width ?? 0;
|
|
32
|
+
}), y(t + z + "px");
|
|
33
|
+
}, w = () => {
|
|
34
|
+
P(window.innerWidth);
|
|
35
|
+
}, u = () => {
|
|
36
|
+
c(!o), o ? y("auto") : setTimeout(() => {
|
|
37
|
+
C();
|
|
37
38
|
}, 100);
|
|
38
39
|
};
|
|
39
40
|
return e.useEffect(() => {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, 100)) : (
|
|
43
|
-
}, [
|
|
44
|
-
typeof n == "boolean" &&
|
|
41
|
+
k >= (v.mobileSupport.includes(m) ? O.lg : O.md) ? (c(typeof a == "boolean" ? a : !0), setTimeout(() => {
|
|
42
|
+
C();
|
|
43
|
+
}, 100)) : (c(typeof a == "boolean" ? a : !1), y("auto"));
|
|
44
|
+
}, [k]), e.useEffect(() => {
|
|
45
|
+
typeof n == "boolean" && b(n);
|
|
45
46
|
}, [n]), e.useImperativeHandle(
|
|
46
|
-
|
|
47
|
+
V,
|
|
47
48
|
() => ({
|
|
48
49
|
openSidebar: n,
|
|
49
|
-
setOpenSidebar:
|
|
50
|
-
handlerClickCollapse:
|
|
50
|
+
setOpenSidebar: c,
|
|
51
|
+
handlerClickCollapse: u
|
|
51
52
|
}),
|
|
52
|
-
[n,
|
|
53
|
-
), e.useEffect(() => (
|
|
54
|
-
/* @__PURE__ */
|
|
53
|
+
[n, o]
|
|
54
|
+
), e.useEffect(() => (r && r.split("/").length > 1 && R(r + "/"), C(), w(), window.addEventListener("resize", w), () => window.removeEventListener("resize", w)), []), /* @__PURE__ */ l("div", { className: v.variants[m], ...T, ref: F, children: [
|
|
55
|
+
/* @__PURE__ */ l(
|
|
55
56
|
"div",
|
|
56
57
|
{
|
|
57
58
|
id: h,
|
|
58
|
-
className: `${
|
|
59
|
-
style:
|
|
59
|
+
className: `${i.sidebar} ${typeof o == "boolean" && o ? i["sidebar-open"] : ""} ${typeof o == "boolean" && !o ? i["sidebar-close"] : ""}`,
|
|
60
|
+
style: B || {},
|
|
60
61
|
children: [
|
|
61
|
-
e.isValidElement(
|
|
62
|
+
e.isValidElement(f) && /* @__PURE__ */ l(
|
|
62
63
|
"div",
|
|
63
64
|
{
|
|
64
|
-
className:
|
|
65
|
+
className: i["button-collaps-sidebar"],
|
|
65
66
|
id: `${h}-${n ? "close-collapse" : "open-collapse"}`,
|
|
66
|
-
onClick:
|
|
67
|
+
onClick: u,
|
|
67
68
|
children: [
|
|
68
|
-
n &&
|
|
69
|
-
n ? "" : e.isValidElement(
|
|
69
|
+
n && f,
|
|
70
|
+
n ? "" : e.isValidElement(g) ? g : f
|
|
70
71
|
]
|
|
71
72
|
}
|
|
72
73
|
),
|
|
73
|
-
/* @__PURE__ */ s("div", { className:
|
|
74
|
+
/* @__PURE__ */ s("div", { className: i["container-icon-company-sidebar"], children: /* @__PURE__ */ l(
|
|
74
75
|
"div",
|
|
75
76
|
{
|
|
76
77
|
id: "icon-company-sidebar",
|
|
77
|
-
className:
|
|
78
|
+
className: i["icon-company-sidebar"],
|
|
78
79
|
style: {
|
|
79
|
-
width:
|
|
80
|
+
width: W && v.withCuctomWidthIconCompany.includes(m) ? W : "100%"
|
|
80
81
|
},
|
|
81
82
|
children: [
|
|
82
|
-
e.isValidElement(
|
|
83
|
-
typeof
|
|
83
|
+
e.isValidElement(p) && p,
|
|
84
|
+
typeof p == "function" && p({ openSidebar: o, setOpenSidebar: c })
|
|
84
85
|
]
|
|
85
86
|
}
|
|
86
87
|
) }),
|
|
87
88
|
/* @__PURE__ */ s(
|
|
88
89
|
"div",
|
|
89
90
|
{
|
|
90
|
-
className:
|
|
91
|
+
className: i["menu-sidebar"],
|
|
91
92
|
onMouseOver: () => {
|
|
92
|
-
n ||
|
|
93
|
+
n || b(!0);
|
|
93
94
|
},
|
|
94
95
|
onMouseOut: () => {
|
|
95
|
-
n ||
|
|
96
|
+
n || b(!1);
|
|
96
97
|
},
|
|
97
|
-
children:
|
|
98
|
-
|
|
98
|
+
children: L.map((t) => /* @__PURE__ */ A(
|
|
99
|
+
D,
|
|
99
100
|
{
|
|
100
101
|
...t,
|
|
101
|
-
as: t.manualRoute || t.subs.length > 0 ? "div" :
|
|
102
|
-
linkComponent:
|
|
102
|
+
as: t.manualRoute || t.subs.length > 0 ? "div" : E,
|
|
103
|
+
linkComponent: E,
|
|
103
104
|
key: t.name,
|
|
104
|
-
show:
|
|
105
|
-
open:
|
|
106
|
-
patch:
|
|
107
|
-
iconSubs:
|
|
105
|
+
show: H,
|
|
106
|
+
open: o,
|
|
107
|
+
patch: r,
|
|
108
|
+
iconSubs: x,
|
|
108
109
|
variant: m,
|
|
109
|
-
setShow:
|
|
110
|
-
onClickItems:
|
|
110
|
+
setShow: R,
|
|
111
|
+
onClickItems: j
|
|
111
112
|
}
|
|
112
113
|
))
|
|
113
114
|
}
|
|
114
115
|
),
|
|
115
|
-
|
|
116
|
-
e.isValidElement(
|
|
117
|
-
typeof
|
|
116
|
+
d && /* @__PURE__ */ l("div", { className: o ? "iru-opacity-[1]" : "iru-opacity-0", children: [
|
|
117
|
+
e.isValidElement(d) && /* @__PURE__ */ s("div", { children: d }),
|
|
118
|
+
typeof d == "function" && /* @__PURE__ */ s("div", { children: d() })
|
|
118
119
|
] })
|
|
119
120
|
]
|
|
120
121
|
}
|
|
121
122
|
),
|
|
122
|
-
n && /* @__PURE__ */ s("div", { id: `${h}-splace-screen`, className:
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
|
|
125
|
-
!
|
|
123
|
+
n && /* @__PURE__ */ s("div", { id: `${h}-splace-screen`, className: i["splace-screen"], onClick: u }),
|
|
124
|
+
/* @__PURE__ */ l("div", { className: i["content-sidebar"], style: M || {}, children: [
|
|
125
|
+
I && e.Children?.map(N, (t) => /* @__PURE__ */ s(S, { children: e.isValidElement(t) && /* @__PURE__ */ s(S, { children: e.cloneElement(t, { openSidebar: n, handlerClickCollapse: u }) }) })),
|
|
126
|
+
!I && /* @__PURE__ */ s(S, { children: N })
|
|
126
127
|
] })
|
|
127
128
|
] });
|
|
128
129
|
}
|
|
129
130
|
);
|
|
130
|
-
|
|
131
|
+
G.displayName = "Sidebar";
|
|
131
132
|
export {
|
|
132
|
-
|
|
133
|
+
G as default
|
|
133
134
|
};
|
|
@@ -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,26 +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-
|
|
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"
|
|
22
24
|
};
|
|
23
25
|
export {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
+
e as default,
|
|
27
|
+
a as sidebar
|
|
26
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,31 +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-
|
|
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"
|
|
26
27
|
};
|
|
27
28
|
export {
|
|
28
29
|
i as active,
|
|
29
|
-
|
|
30
|
+
s as default,
|
|
30
31
|
e as hidden
|
|
31
32
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),n=require("react"),e=require("./TextareaFloatingInner.module.scss.cjs"),
|
|
2
|
-
${
|
|
3
|
-
${
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("react/jsx-runtime"),n=require("react"),e=require("./TextareaFloatingInner.module.scss.cjs"),P=require("../../hooks/useMergeRefs.cjs"),k=require("../../hooks/useCombinedResizeObserver.cjs"),v=require("./TextareaFloatingInner.config.cjs"),p=n.forwardRef((l,R)=>{const{isRequired:y,classNameContainer:N,className:T,classNameLabel:I,classNameLabelError:F,name:c,id:f,label:d,error:i,height:j,minHeight:g=94,maxHeight:q=150,style:H,sizeInput:L="medium",translateLabel:S=20,autoTranslateLabel:w=!1,variant:E="laba-white",...u}=l,t=n.useRef(null),M=P.useMergeRefs(t,R),h=n.useRef(null),V={...H??{},maxHeight:q,height:j??g,minHeight:g},[m,x]=n.useState(!1),[Y,b]=n.useState(!1),[_,z]=n.useState(S),$=()=>{["",void 0,null].includes(u.value)||["",void 0,null].includes(t.current?.value)?(b(!1),w&&setTimeout(()=>{const a=t.current?.offsetHeight??0,r=h.current?.offsetHeight??0,O=(a-r)/2;z(O)},100)):b(!0)},B=function(a){x(!0),$(),l.onFocus?.(a)},C=function(a){x(!1),l.onBlur?.(a)},o=function(a){$();const r=a?.target??t.current;r.style.height="0px",r.style.height=r.scrollHeight+"px"};return k.useIsomorphicLayoutEffect(()=>(m&&t.current?t.current.addEventListener("input",o):o(),()=>{t.current?.removeEventListener("input",o)}),[m]),s.jsxs("div",{className:`${e.default.container}
|
|
2
|
+
${v.configTextareaFloatingInner.size[L]}
|
|
3
|
+
${v.configTextareaFloatingInner.variants[E]}
|
|
4
|
+
${N??""}`,children:[s.jsxs("div",{className:`${e.default["container-textarea"]}`,children:[s.jsx("textarea",{id:f??c,className:`${Y?"":e.default["placeholder-shown"]} ${i?e.default.error:""}
|
|
4
5
|
${e.default.textarea}
|
|
5
|
-
${
|
|
6
|
-
${u.disabled?e.default.disabled:""} ${
|
|
6
|
+
${T??""}`,ref:M,style:V,...u,onFocus:B,onBlur:C}),d&&s.jsxs("label",{htmlFor:f??c,ref:h,style:{transform:`translateY(${_}px)`},className:`${e.default.label} ${I??""}`,children:[d," ",y&&s.jsx("span",{className:"iru-text-laba-red-08",children:"*"})]})]}),i&&s.jsx("label",{className:`${e.default["label-error"]}
|
|
7
|
+
${u.disabled?e.default.disabled:""} ${F??""}`,children:i})]})});p.displayName="TextareaFloatingInner";exports.default=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextareaFloatingInner.module.scss.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./TextareaFloatingInner.module.scss.cjs"),a={size:{medium:e.default["size-medium"]},variants:{"laba-white":e.default["laba-white"],"fin-blue-gray-50":e.default["fin-blue-gray-50"]}};exports.configTextareaFloatingInner=a;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import e from "./TextareaFloatingInner.module.scss.mjs";
|
|
2
|
-
const
|
|
2
|
+
const a = {
|
|
3
3
|
size: {
|
|
4
4
|
medium: e["size-medium"]
|
|
5
|
+
},
|
|
6
|
+
variants: {
|
|
7
|
+
"laba-white": e["laba-white"],
|
|
8
|
+
"fin-blue-gray-50": e["fin-blue-gray-50"]
|
|
5
9
|
}
|
|
6
10
|
};
|
|
7
11
|
export {
|
|
8
|
-
|
|
12
|
+
a as configTextareaFloatingInner
|
|
9
13
|
};
|
|
@@ -1,49 +1,51 @@
|
|
|
1
1
|
import { jsxs as c, jsx as u } from "react/jsx-runtime";
|
|
2
2
|
import s from "react";
|
|
3
3
|
import e from "./TextareaFloatingInner.module.scss.mjs";
|
|
4
|
-
import { useMergeRefs as
|
|
5
|
-
import { useIsomorphicLayoutEffect as
|
|
6
|
-
import { configTextareaFloatingInner as
|
|
7
|
-
const
|
|
4
|
+
import { useMergeRefs as A } from "../../hooks/useMergeRefs.mjs";
|
|
5
|
+
import { useIsomorphicLayoutEffect as D } from "../../hooks/useCombinedResizeObserver.mjs";
|
|
6
|
+
import { configTextareaFloatingInner as y } from "./TextareaFloatingInner.config.mjs";
|
|
7
|
+
const G = s.forwardRef((n, v) => {
|
|
8
8
|
const {
|
|
9
9
|
isRequired: N,
|
|
10
10
|
classNameContainer: R,
|
|
11
|
-
className:
|
|
12
|
-
classNameLabel:
|
|
13
|
-
classNameLabelError:
|
|
11
|
+
className: H,
|
|
12
|
+
classNameLabel: I,
|
|
13
|
+
classNameLabelError: L,
|
|
14
14
|
name: f,
|
|
15
15
|
id: m,
|
|
16
16
|
label: d,
|
|
17
17
|
error: l,
|
|
18
|
-
height:
|
|
18
|
+
height: T,
|
|
19
19
|
minHeight: h = 94,
|
|
20
|
-
maxHeight:
|
|
21
|
-
style:
|
|
22
|
-
sizeInput:
|
|
23
|
-
translateLabel:
|
|
24
|
-
autoTranslateLabel:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
maxHeight: F = 150,
|
|
21
|
+
style: w,
|
|
22
|
+
sizeInput: E = "medium",
|
|
23
|
+
translateLabel: S = 20,
|
|
24
|
+
autoTranslateLabel: V = !1,
|
|
25
|
+
variant: Y = "laba-white",
|
|
26
|
+
...i
|
|
27
|
+
} = n, t = s.useRef(null), j = A(t, v), g = s.useRef(null), z = { ...w ?? {}, maxHeight: F, height: T ?? h, minHeight: h }, [p, x] = s.useState(!1), [B, b] = s.useState(!1), [k, q] = s.useState(S), $ = () => {
|
|
28
|
+
["", void 0, null].includes(i.value) || ["", void 0, null].includes(t.current?.value) ? (b(!1), V && setTimeout(() => {
|
|
29
|
+
const a = t.current?.offsetHeight ?? 0, r = g.current?.offsetHeight ?? 0, P = (a - r) / 2;
|
|
30
|
+
q(P);
|
|
30
31
|
}, 100)) : b(!0);
|
|
31
|
-
},
|
|
32
|
+
}, C = function(a) {
|
|
32
33
|
x(!0), $(), n.onFocus?.(a);
|
|
33
|
-
},
|
|
34
|
+
}, M = function(a) {
|
|
34
35
|
x(!1), n.onBlur?.(a);
|
|
35
|
-
},
|
|
36
|
+
}, o = function(a) {
|
|
36
37
|
$();
|
|
37
38
|
const r = a?.target ?? t.current;
|
|
38
39
|
r.style.height = "0px", r.style.height = r.scrollHeight + "px";
|
|
39
40
|
};
|
|
40
|
-
return
|
|
41
|
-
t.current?.removeEventListener("input",
|
|
41
|
+
return D(() => (p && t.current ? t.current.addEventListener("input", o) : o(), () => {
|
|
42
|
+
t.current?.removeEventListener("input", o);
|
|
42
43
|
}), [p]), /* @__PURE__ */ c(
|
|
43
44
|
"div",
|
|
44
45
|
{
|
|
45
46
|
className: `${e.container}
|
|
46
|
-
${
|
|
47
|
+
${y.size[E]}
|
|
48
|
+
${y.variants[Y]}
|
|
47
49
|
${R ?? ""}`,
|
|
48
50
|
children: [
|
|
49
51
|
/* @__PURE__ */ c("div", { className: `${e["container-textarea"]}`, children: [
|
|
@@ -51,14 +53,14 @@ const D = s.forwardRef((n, y) => {
|
|
|
51
53
|
"textarea",
|
|
52
54
|
{
|
|
53
55
|
id: m ?? f,
|
|
54
|
-
className: `${
|
|
56
|
+
className: `${B ? "" : e["placeholder-shown"]} ${l ? e.error : ""}
|
|
55
57
|
${e.textarea}
|
|
56
|
-
${
|
|
57
|
-
ref:
|
|
58
|
-
style:
|
|
59
|
-
...
|
|
60
|
-
onFocus:
|
|
61
|
-
onBlur:
|
|
58
|
+
${H ?? ""}`,
|
|
59
|
+
ref: j,
|
|
60
|
+
style: z,
|
|
61
|
+
...i,
|
|
62
|
+
onFocus: C,
|
|
63
|
+
onBlur: M
|
|
62
64
|
}
|
|
63
65
|
),
|
|
64
66
|
d && /* @__PURE__ */ c(
|
|
@@ -67,9 +69,9 @@ const D = s.forwardRef((n, y) => {
|
|
|
67
69
|
htmlFor: m ?? f,
|
|
68
70
|
ref: g,
|
|
69
71
|
style: {
|
|
70
|
-
transform: `translateY(${
|
|
72
|
+
transform: `translateY(${k}px)`
|
|
71
73
|
},
|
|
72
|
-
className: `${e.label} ${
|
|
74
|
+
className: `${e.label} ${I ?? ""}`,
|
|
73
75
|
children: [
|
|
74
76
|
d,
|
|
75
77
|
" ",
|
|
@@ -82,7 +84,7 @@ const D = s.forwardRef((n, y) => {
|
|
|
82
84
|
"label",
|
|
83
85
|
{
|
|
84
86
|
className: `${e["label-error"]}
|
|
85
|
-
${
|
|
87
|
+
${i.disabled ? e.disabled : ""} ${L ?? ""}`,
|
|
86
88
|
children: l
|
|
87
89
|
}
|
|
88
90
|
)
|
|
@@ -90,7 +92,7 @@ const D = s.forwardRef((n, y) => {
|
|
|
90
92
|
}
|
|
91
93
|
);
|
|
92
94
|
});
|
|
93
|
-
|
|
95
|
+
G.displayName = "TextareaFloatingInner";
|
|
94
96
|
export {
|
|
95
|
-
|
|
97
|
+
G as default
|
|
96
98
|
};
|
|
@@ -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="_container_ml8mj_1",r="_textarea_ml8mj_12",l="_label_ml8mj_58",a="_error_ml8mj_67",t={container:e,"size-medium":"_size-medium_ml8mj_1","container-textarea":"_container-textarea_ml8mj_6",textarea:r,"placeholder-shown":"_placeholder-shown_ml8mj_43",label:l,error:a,"label-error":"_label-error_ml8mj_99","laba-white":"_laba-white_ml8mj_111","fin-blue-gray-50":"_fin-blue-gray-50_ml8mj_147"};exports.container=e;exports.default=t;exports.error=a;exports.label=l;exports.textarea=r;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
const e = "
|
|
1
|
+
const e = "_container_ml8mj_1", a = "_textarea_ml8mj_12", l = "_label_ml8mj_58", r = "_error_ml8mj_67", _ = {
|
|
2
2
|
container: e,
|
|
3
|
-
"size-medium": "_size-
|
|
4
|
-
"container-textarea": "_container-
|
|
5
|
-
textarea:
|
|
6
|
-
"placeholder-shown": "_placeholder-
|
|
7
|
-
label:
|
|
8
|
-
error:
|
|
9
|
-
"label-error": "_label-
|
|
3
|
+
"size-medium": "_size-medium_ml8mj_1",
|
|
4
|
+
"container-textarea": "_container-textarea_ml8mj_6",
|
|
5
|
+
textarea: a,
|
|
6
|
+
"placeholder-shown": "_placeholder-shown_ml8mj_43",
|
|
7
|
+
label: l,
|
|
8
|
+
error: r,
|
|
9
|
+
"label-error": "_label-error_ml8mj_99",
|
|
10
|
+
"laba-white": "_laba-white_ml8mj_111",
|
|
11
|
+
"fin-blue-gray-50": "_fin-blue-gray-50_ml8mj_147"
|
|
10
12
|
};
|
|
11
13
|
export {
|
|
12
14
|
e as container,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
_ as default,
|
|
16
|
+
r as error,
|
|
17
|
+
l as label,
|
|
18
|
+
a as textarea
|
|
17
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e="https://unpkg.com/1mpacto-web-resources@1.0.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e="https://unpkg.com/1mpacto-web-resources@1.0.2/tinymce_8.2.1";exports.tinymceResource=e;
|