@lanaco/lnc-react-ui 4.0.3 → 4.0.6
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/Avatar.cjs +1 -1
- package/dist/Avatar.js +5 -6
- package/dist/Button.cjs +2 -2
- package/dist/Button.js +0 -1
- package/dist/CheckBoxInput.js +2 -2
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +10 -9
- package/dist/ColorInput.js +18 -18
- package/dist/ConfirmationForm.cjs +5 -5
- package/dist/ConfirmationForm.js +16 -16
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +35 -35
- package/dist/DecimalInput.js +41 -41
- package/dist/DoubleRangeSlider.js +30 -30
- package/dist/DragAndDropFile.js +162 -162
- package/dist/DragDropFiles.js +29 -29
- package/dist/Drawer.js +46 -46
- package/dist/Dropdown.js +36 -36
- package/dist/DropdownItem.js +19 -19
- package/dist/DropdownLookup.js +34 -34
- package/dist/DropdownMenu.js +43 -43
- package/dist/FileInput.js +21 -21
- package/dist/FlexGridItem.js +13 -13
- package/dist/Grid.cjs +1 -2
- package/dist/Grid.js +36 -8
- package/dist/GridItem.cjs +1 -1
- package/dist/GridItem.js +27 -7
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +5 -6
- package/dist/IconButton.cjs +5 -5
- package/dist/IconButton.js +24 -25
- package/dist/Kanban.js +446 -446
- package/dist/MenuItem.cjs +2 -2
- package/dist/MenuItem.js +59 -58
- package/dist/Modal.js +38 -38
- package/dist/MultiSelectDropdown.js +2 -2
- package/dist/MultiSelectDropdownLookup.js +2 -2
- package/dist/NestedDropdownItem.js +43 -43
- package/dist/NestedMenuItem.js +44 -44
- package/dist/NotificationContainer.cjs +2 -2
- package/dist/NotificationContainer.js +24 -23
- package/dist/NumberInput.js +12 -12
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +18 -18
- package/dist/PasswordInput.js +40 -40
- package/dist/RadioGroup.js +11 -11
- package/dist/RadioInput.js +6 -6
- package/dist/RangeSlider.js +25 -25
- package/dist/SearchBar.js +73 -73
- package/dist/Sidebar.js +11 -11
- package/dist/SwipeableDrawer.js +16 -16
- package/dist/TabItem.js +25 -25
- package/dist/Tabs.js +32 -26
- package/dist/TextAreaInput.js +30 -30
- package/dist/TextInput.js +22 -22
- package/dist/ThemeProvider.js +83 -83
- package/dist/TimeInput.js +4 -4
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +0 -1
- package/dist/TreeMenu.js +56 -56
- package/dist/style.css +1 -5
- package/package.json +1 -1
- package/bundle-visualization.html +0 -4842
- package/custom-addons/ThemeSelector.js +0 -111
- package/custom-addons/register.js +0 -16
- package/custom-addons/theme-selector.css +0 -17
package/dist/NestedMenuItem.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as x, Fragment as l, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as O, useState as P, cloneElement as u, Children as h, isValidElement as z } from "react";
|
|
3
3
|
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
-
import { n as
|
|
5
|
-
import { a as
|
|
6
|
-
import { m as
|
|
7
|
-
import { u as
|
|
8
|
-
import { A as
|
|
9
|
-
const
|
|
4
|
+
import { n as $ } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { a as j } from "./utils-C52T57HO.js";
|
|
6
|
+
import { m as D } from "./motion-ecIGZGwI.js";
|
|
7
|
+
import { u as Y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
+
import { A as C } from "./index-BUChtubz.js";
|
|
9
|
+
const A = $(D.div)`
|
|
10
10
|
${(o) => o.tuckIn == !0 && `margin-left: ${o.tuckInSize};`}
|
|
11
11
|
${(o) => o.tuckIn == !0 && `padding-left: ${o.tuckInSize};`}
|
|
12
|
-
${(o) => o.tuckIn == !0 && `border-left: 2px solid ${
|
|
12
|
+
${(o) => o.tuckIn == !0 && `border-left: 2px solid ${j(
|
|
13
13
|
o.theme,
|
|
14
14
|
"MenuItem",
|
|
15
15
|
o.color,
|
|
@@ -18,17 +18,17 @@ const Y = h($.div)`
|
|
|
18
18
|
"backgroundOpacity"
|
|
19
19
|
)};`}
|
|
20
20
|
border-radius: 2px;
|
|
21
|
-
`, c =
|
|
21
|
+
`, c = O((o, p) => {
|
|
22
22
|
const {
|
|
23
23
|
item: d,
|
|
24
24
|
//------------------
|
|
25
25
|
onItemSelected: f = () => {
|
|
26
26
|
},
|
|
27
27
|
//--------------------
|
|
28
|
-
defaultOpen:
|
|
29
|
-
tuckIn:
|
|
30
|
-
tuckInSize:
|
|
31
|
-
animation:
|
|
28
|
+
defaultOpen: g = !1,
|
|
29
|
+
tuckIn: y = !0,
|
|
30
|
+
tuckInSize: E = "0.3rem",
|
|
31
|
+
animation: _ = {
|
|
32
32
|
animate: { opacity: 1, height: "auto" },
|
|
33
33
|
exit: { opacity: 0, height: 0 },
|
|
34
34
|
initial: { opacity: 0, height: 0 },
|
|
@@ -40,46 +40,46 @@ const Y = h($.div)`
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
className: I = "",
|
|
43
|
-
style:
|
|
44
|
-
color:
|
|
45
|
-
size:
|
|
46
|
-
__TYPE__:
|
|
47
|
-
children:
|
|
43
|
+
style: N = {},
|
|
44
|
+
color: r = "primary",
|
|
45
|
+
size: a = "small",
|
|
46
|
+
__TYPE__: R = "NESTED_ITEM",
|
|
47
|
+
children: T,
|
|
48
48
|
...S
|
|
49
|
-
} = o, k =
|
|
50
|
-
M(!r);
|
|
51
|
-
}, w = n.cloneElement(d, {
|
|
49
|
+
} = o, k = Y(), [n, M] = P(g), b = u(d, {
|
|
52
50
|
isNested: !0,
|
|
53
|
-
showNested:
|
|
54
|
-
toggleNested:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
51
|
+
showNested: n,
|
|
52
|
+
toggleNested: () => {
|
|
53
|
+
M(!n);
|
|
54
|
+
},
|
|
55
|
+
color: r,
|
|
56
|
+
size: a
|
|
57
|
+
}), w = h.map(T, (e, V) => {
|
|
58
|
+
var i, m;
|
|
59
|
+
if (z(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((i = e == null ? void 0 : e.type) == null ? void 0 : i.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((m = e == null ? void 0 : e.type) == null ? void 0 : m.displayName) === "NESTED_ITEM"))
|
|
60
|
+
return u(e, {
|
|
61
|
+
color: e.props.color ? e.props.color : r,
|
|
62
|
+
size: a,
|
|
63
63
|
onItemSelected: f
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
|
-
return /* @__PURE__ */
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
/* @__PURE__ */
|
|
69
|
-
|
|
66
|
+
return /* @__PURE__ */ x(l, { children: [
|
|
67
|
+
/* @__PURE__ */ s(l, { children: b }),
|
|
68
|
+
/* @__PURE__ */ s(C, { children: n && /* @__PURE__ */ s(
|
|
69
|
+
A,
|
|
70
70
|
{
|
|
71
71
|
theme: k,
|
|
72
|
-
tuckIn:
|
|
73
|
-
tuckInSize:
|
|
74
|
-
color:
|
|
75
|
-
size:
|
|
72
|
+
tuckIn: y,
|
|
73
|
+
tuckInSize: E,
|
|
74
|
+
color: r,
|
|
75
|
+
size: a,
|
|
76
76
|
className: "nested-item-lnc " + I,
|
|
77
|
-
style:
|
|
77
|
+
style: N,
|
|
78
78
|
ref: p,
|
|
79
|
-
show:
|
|
80
|
-
...
|
|
79
|
+
show: n,
|
|
80
|
+
..._,
|
|
81
81
|
...S,
|
|
82
|
-
children:
|
|
82
|
+
children: w
|
|
83
83
|
}
|
|
84
84
|
) })
|
|
85
85
|
] });
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const s=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const s=require("react/jsx-runtime"),N=require("react"),o=require("./index-BIlhCoy2.cjs"),_=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),R=require("./react-toastify.esm-Dqcb4SQT.cjs");;/* empty css */const t=require("./utils-DTAPpJXU.cjs"),v=require("./ThemeProvider.cjs"),O=_.newStyled.div`
|
|
2
2
|
& .lnc-notification {
|
|
3
3
|
& > div {
|
|
4
4
|
background-color: ${e=>t.getColorRgbaValue(e.theme,"Notification",e.color,"enabled","background","backgroundOpacity")};
|
|
@@ -34,4 +34,4 @@
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
`,r=
|
|
37
|
+
`,r=N.forwardRef((e,i)=>{const{position:a="top-right",autoClose:n=5e5,hideProgressBar:l=!0,newestOnTop:c=!0,closeOnClick:p=!0,rtl:u=!1,pauseOnFocusLoss:b=!1,draggable:g=!1,pauseOnHover:f=!1,closeButton:d=!0,className:m="",style:y={},size:T="small",toastContainerProps:h,...P}=e,{theme:x}=v.useTheme(),C={theme:x,className:"lnc-ui-notification "+m,style:y,size:T};return s.jsx(O,{ref:i,...C,...P,children:s.jsx(R.ToastContainer,{position:a,autoClose:n,hideProgressBar:l,newestOnTop:c,closeOnClick:p,rtl:u,pauseOnFocusLoss:b,draggable:g,pauseOnHover:f,closeButton:d,className:"lnc-notification",...h})})});r.propTypes={position:o.PropTypes.oneOf(["top-right","top-center","top-left","bottom-right","bottom-center","bottom-left"]),autoClose:o.PropTypes.number,hideProgressBar:o.PropTypes.bool,newestOnTop:o.PropTypes.bool,closeOnClick:o.PropTypes.bool,rtl:o.PropTypes.bool,pauseOnFocusLoss:o.PropTypes.bool,draggable:o.PropTypes.bool,pauseOnHover:o.PropTypes.bool,closeButton:o.PropTypes.bool,className:o.PropTypes.string,style:o.PropTypes.object,toastContainerProps:o.PropTypes.any};module.exports=r;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as O } from "react";
|
|
3
3
|
import { P as t } from "./index-BYnWp42a.js";
|
|
4
|
-
import { n as
|
|
5
|
-
import { T as
|
|
4
|
+
import { n as _ } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { T as v } from "./react-toastify.esm-CkXGwKXL.js";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { a as e, b as
|
|
8
|
-
import { useTheme as
|
|
9
|
-
const
|
|
7
|
+
import { a as e, b as C } from "./utils-C52T57HO.js";
|
|
8
|
+
import { useTheme as $ } from "./ThemeProvider.js";
|
|
9
|
+
const P = _.div`
|
|
10
10
|
& .lnc-notification {
|
|
11
11
|
& > div {
|
|
12
12
|
background-color: ${(o) => e(
|
|
@@ -27,7 +27,7 @@ const $ = O.div`
|
|
|
27
27
|
"enabled",
|
|
28
28
|
"border"
|
|
29
29
|
)}`};
|
|
30
|
-
border-radius: ${(o) =>
|
|
30
|
+
border-radius: ${(o) => C(o.theme, "regular")};
|
|
31
31
|
}
|
|
32
32
|
& .Toastify__close-button {
|
|
33
33
|
& svg {
|
|
@@ -85,7 +85,7 @@ const $ = O.div`
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
`,
|
|
88
|
+
`, w = O((o, a) => {
|
|
89
89
|
const {
|
|
90
90
|
position: s = "top-right",
|
|
91
91
|
autoClose: n = 5e5,
|
|
@@ -93,22 +93,23 @@ const $ = O.div`
|
|
|
93
93
|
newestOnTop: l = !0,
|
|
94
94
|
closeOnClick: c = !0,
|
|
95
95
|
rtl: f = !1,
|
|
96
|
-
pauseOnFocusLoss:
|
|
97
|
-
draggable:
|
|
96
|
+
pauseOnFocusLoss: m = !1,
|
|
97
|
+
draggable: p = !1,
|
|
98
98
|
pauseOnHover: b = !1,
|
|
99
99
|
closeButton: d = !0,
|
|
100
100
|
className: u = "",
|
|
101
101
|
style: g = {},
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
...
|
|
105
|
-
} = o, { theme:
|
|
106
|
-
theme:
|
|
102
|
+
size: h = "small",
|
|
103
|
+
toastContainerProps: y,
|
|
104
|
+
...N
|
|
105
|
+
} = o, { theme: x } = $(), T = {
|
|
106
|
+
theme: x,
|
|
107
107
|
className: "lnc-ui-notification " + u,
|
|
108
|
-
style: g
|
|
108
|
+
style: g,
|
|
109
|
+
size: h
|
|
109
110
|
};
|
|
110
|
-
return /* @__PURE__ */ i(
|
|
111
|
-
|
|
111
|
+
return /* @__PURE__ */ i(P, { ref: a, ...T, ...N, children: /* @__PURE__ */ i(
|
|
112
|
+
v,
|
|
112
113
|
{
|
|
113
114
|
position: s,
|
|
114
115
|
autoClose: n,
|
|
@@ -116,16 +117,16 @@ const $ = O.div`
|
|
|
116
117
|
newestOnTop: l,
|
|
117
118
|
closeOnClick: c,
|
|
118
119
|
rtl: f,
|
|
119
|
-
pauseOnFocusLoss:
|
|
120
|
-
draggable:
|
|
120
|
+
pauseOnFocusLoss: m,
|
|
121
|
+
draggable: p,
|
|
121
122
|
pauseOnHover: b,
|
|
122
123
|
closeButton: d,
|
|
123
124
|
className: "lnc-notification",
|
|
124
|
-
...
|
|
125
|
+
...y
|
|
125
126
|
}
|
|
126
127
|
) });
|
|
127
128
|
});
|
|
128
|
-
|
|
129
|
+
w.propTypes = {
|
|
129
130
|
position: t.oneOf([
|
|
130
131
|
"top-right",
|
|
131
132
|
"top-center",
|
|
@@ -158,5 +159,5 @@ P.propTypes = {
|
|
|
158
159
|
toastContainerProps: t.any
|
|
159
160
|
};
|
|
160
161
|
export {
|
|
161
|
-
|
|
162
|
+
w as default
|
|
162
163
|
};
|
package/dist/NumberInput.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as A, jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { P as n } from "./index-BYnWp42a.js";
|
|
3
|
-
import P,
|
|
3
|
+
import { forwardRef as P, useState as C, useEffect as W, useCallback as G } from "react";
|
|
4
4
|
import { d as M } from "./index-CNBqQrtK.js";
|
|
5
5
|
import { n as i } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
6
6
|
import { d, a, b as U, e as D, h as S, g as X } from "./utils-C52T57HO.js";
|
|
@@ -79,7 +79,7 @@ const H = i.div`
|
|
|
79
79
|
${(e) => S(e.theme)}
|
|
80
80
|
background: none;
|
|
81
81
|
}
|
|
82
|
-
`, L = P
|
|
82
|
+
`, L = P((e, T) => {
|
|
83
83
|
const {
|
|
84
84
|
disabled: y,
|
|
85
85
|
readOnly: p,
|
|
@@ -97,16 +97,16 @@ const H = i.div`
|
|
|
97
97
|
onBlur: c,
|
|
98
98
|
onFocus: f,
|
|
99
99
|
//----------------
|
|
100
|
-
className:
|
|
101
|
-
style:
|
|
100
|
+
className: k = "",
|
|
101
|
+
style: R = {},
|
|
102
102
|
size: x = "small",
|
|
103
103
|
color: o = "primary",
|
|
104
|
-
...
|
|
105
|
-
} = e, u = q(), [
|
|
104
|
+
...w
|
|
105
|
+
} = e, u = q(), [B, $] = C(r || F || ""), [h, I] = C(!1);
|
|
106
106
|
W(() => {
|
|
107
107
|
r != null && $(r);
|
|
108
108
|
}, [r]);
|
|
109
|
-
const
|
|
109
|
+
const _ = G(
|
|
110
110
|
M((t, b) => j(t, b), O),
|
|
111
111
|
[l]
|
|
112
112
|
), j = (t, b) => {
|
|
@@ -115,8 +115,8 @@ const H = i.div`
|
|
|
115
115
|
return /* @__PURE__ */ A(
|
|
116
116
|
H,
|
|
117
117
|
{
|
|
118
|
-
style:
|
|
119
|
-
className:
|
|
118
|
+
style: R,
|
|
119
|
+
className: k,
|
|
120
120
|
theme: u,
|
|
121
121
|
color: o,
|
|
122
122
|
size: x,
|
|
@@ -150,7 +150,7 @@ const H = i.div`
|
|
|
150
150
|
step: V,
|
|
151
151
|
min: z,
|
|
152
152
|
max: v,
|
|
153
|
-
value:
|
|
153
|
+
value: B,
|
|
154
154
|
onFocus: (t) => {
|
|
155
155
|
I(!0), f == null || f(t);
|
|
156
156
|
},
|
|
@@ -158,9 +158,9 @@ const H = i.div`
|
|
|
158
158
|
I(!1), c == null || c(t);
|
|
159
159
|
},
|
|
160
160
|
onChange: (t) => {
|
|
161
|
-
$(t.target.value),
|
|
161
|
+
$(t.target.value), _(t, t.target.value);
|
|
162
162
|
},
|
|
163
|
-
...
|
|
163
|
+
...w
|
|
164
164
|
}
|
|
165
165
|
),
|
|
166
166
|
m && /* @__PURE__ */ g(
|
package/dist/PageLayout.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./index-BIlhCoy2.cjs"),
|
|
1
|
+
"use strict";const x=require("react/jsx-runtime"),a=require("react"),E=require("./index-BIlhCoy2.cjs"),S=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),c=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),T=S.newStyled.section`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex: auto;
|
|
4
4
|
flex-direction: ${s=>s.hasSidebar?"row":"column"};
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
flex: 0 0 15rem;
|
|
24
24
|
height: 100%;
|
|
25
25
|
}
|
|
26
|
-
`,u=a.forwardRef((s,f)=>{const{children:o,isChild:h,__TYPE__:C="PageLayout",...p}=s,P=
|
|
26
|
+
`,u=a.forwardRef((s,f)=>{const{children:o,isChild:h,__TYPE__:C="PageLayout",...p}=s,P=c.useTheme(),g=a.Children.toArray(o).some(e=>{var t;return e.props.__TYPE__||((t=e==null?void 0:e.type)==null?void 0:t.displayName)=="Sidebar"}),m=e=>{let t,i,l;if(a.Children.forEach(e,(r,d)=>{var _,n,y;if(r.props.__TYPE__=="Sidebar"||((_=r==null?void 0:r.type)==null?void 0:_.displayName)==="Sidebar"){if(i)throw"Found multiple ocurrences of Sidebar component on the same level in the component tree.";i=d+1}else if(r.props.__TYPE__=="PageLayout"||((n=r==null?void 0:r.type)==null?void 0:n.displayName)==="PageLayout"){if(t)throw"Found multiple ocurrences of PageLayout component on the same level in the component tree.";t=d+1}else if(r.props.__TYPE__=="Content"||((y=r==null?void 0:r.type)==null?void 0:y.displayName)==="Content"){if(l)throw"Found multiple ocurrences of Content component on the same level in the component tree.";l=d+1}}),t&&i)return i<t?"left":"right";if(l&&i)return i<l?"left":"right"},b=a.Children.map(o,e=>{var t,i;if(a.isValidElement(e)){if(e.props.__TYPE__=="Sidebar"||((t=e.type)==null?void 0:t.displayName)==="Sidebar")return a.cloneElement(e,{placement:m(o)});if(e.props.__TYPE__=="PageLayout"||((i=e.type)==null?void 0:i.displayName)==="PageLayout")return a.cloneElement(e,{isChild:!0})}return e});return x.jsx(T,{isChild:h,hasSidebar:g,theme:P,ref:f,...p,children:b})});u.propTypes={__TYPE__:E.PropTypes.string};u.displayName="PageLayout";module.exports=u;
|
package/dist/PageLayout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as E } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as
|
|
2
|
+
import { forwardRef as S, Children as d, isValidElement as T, cloneElement as y } from "react";
|
|
3
3
|
import { P as L } from "./index-BYnWp42a.js";
|
|
4
4
|
import { n as C } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import { u as Y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
@@ -28,13 +28,13 @@ const w = C.section`
|
|
|
28
28
|
flex: 0 0 15rem;
|
|
29
29
|
height: 100%;
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
32
|
-
const { children: l, isChild:
|
|
31
|
+
`, p = S((i, h) => {
|
|
32
|
+
const { children: l, isChild: n, __TYPE__: N = "PageLayout", ...m } = i, P = Y(), g = d.toArray(l).some(
|
|
33
33
|
(e) => {
|
|
34
34
|
var t;
|
|
35
35
|
return e.props.__TYPE__ || ((t = e == null ? void 0 : e.type) == null ? void 0 : t.displayName) == "Sidebar";
|
|
36
36
|
}
|
|
37
|
-
),
|
|
37
|
+
), b = (e) => {
|
|
38
38
|
let t, a, s;
|
|
39
39
|
if (d.forEach(e, (r, o) => {
|
|
40
40
|
var f, u, _;
|
|
@@ -55,38 +55,38 @@ const w = C.section`
|
|
|
55
55
|
return a < t ? "left" : "right";
|
|
56
56
|
if (s && a)
|
|
57
57
|
return a < s ? "left" : "right";
|
|
58
|
-
},
|
|
58
|
+
}, x = d.map(l, (e) => {
|
|
59
59
|
var t, a;
|
|
60
|
-
if (
|
|
60
|
+
if (T(e)) {
|
|
61
61
|
if (e.props.__TYPE__ == "Sidebar" || ((t = e.type) == null ? void 0 : t.displayName) === "Sidebar")
|
|
62
|
-
return
|
|
63
|
-
placement:
|
|
62
|
+
return y(e, {
|
|
63
|
+
placement: b(l)
|
|
64
64
|
});
|
|
65
65
|
if (e.props.__TYPE__ == "PageLayout" || ((a = e.type) == null ? void 0 : a.displayName) === "PageLayout")
|
|
66
|
-
return
|
|
66
|
+
return y(e, { isChild: !0 });
|
|
67
67
|
}
|
|
68
68
|
return e;
|
|
69
69
|
});
|
|
70
70
|
return /* @__PURE__ */ E(
|
|
71
71
|
w,
|
|
72
72
|
{
|
|
73
|
-
isChild:
|
|
74
|
-
hasSidebar:
|
|
75
|
-
theme:
|
|
76
|
-
ref:
|
|
77
|
-
...
|
|
78
|
-
children:
|
|
73
|
+
isChild: n,
|
|
74
|
+
hasSidebar: g,
|
|
75
|
+
theme: P,
|
|
76
|
+
ref: h,
|
|
77
|
+
...m,
|
|
78
|
+
children: x
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
81
|
});
|
|
82
|
-
|
|
82
|
+
p.propTypes = {
|
|
83
83
|
/**
|
|
84
84
|
* Do not override this property.
|
|
85
85
|
* Should only be used as indicator for type if you are passing custom component.
|
|
86
86
|
*/
|
|
87
87
|
__TYPE__: L.string
|
|
88
88
|
};
|
|
89
|
-
|
|
89
|
+
p.displayName = "PageLayout";
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
p as default
|
|
92
92
|
};
|
package/dist/PasswordInput.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as q, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as A, useRef as G, useState as $, useEffect as I, useCallback as H } from "react";
|
|
3
3
|
import { P as n } from "./index-BYnWp42a.js";
|
|
4
|
-
import { d as
|
|
5
|
-
import
|
|
4
|
+
import { d as J } from "./index-CNBqQrtK.js";
|
|
5
|
+
import K from "./Icon.js";
|
|
6
6
|
import { n as m } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
7
|
-
import { d as g, a, b as
|
|
8
|
-
import { u as
|
|
9
|
-
const
|
|
7
|
+
import { d as g, a, b as M, e as Q, h as O, g as X } from "./utils-C52T57HO.js";
|
|
8
|
+
import { u as Y } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
9
|
+
const Z = m.div`
|
|
10
10
|
display: flex;
|
|
11
11
|
align-items: center;
|
|
12
12
|
|
|
@@ -27,9 +27,9 @@ const Y = m.div`
|
|
|
27
27
|
e.disabled === !0 ? "disabled" : "enabled",
|
|
28
28
|
"border"
|
|
29
29
|
)};
|
|
30
|
-
border-radius: ${(e) =>
|
|
30
|
+
border-radius: ${(e) => M(e.theme, "regular")};
|
|
31
31
|
|
|
32
|
-
${(e) => e.focused && e.readOnly !== !0 ?
|
|
32
|
+
${(e) => e.focused && e.readOnly !== !0 ? Q(e.theme) : ""}
|
|
33
33
|
${(e) => e.disabled === !0 ? O(e.theme) : ""}
|
|
34
34
|
`, C = m.span`
|
|
35
35
|
padding: 0 12px;
|
|
@@ -40,7 +40,7 @@ const Y = m.div`
|
|
|
40
40
|
"enabled",
|
|
41
41
|
"prefix"
|
|
42
42
|
)};
|
|
43
|
-
`,
|
|
43
|
+
`, _ = m(C)``, ee = m(C)`
|
|
44
44
|
cursor: pointer;
|
|
45
45
|
`, te = m.input`
|
|
46
46
|
background: none;
|
|
@@ -50,7 +50,7 @@ const Y = m.div`
|
|
|
50
50
|
padding-bottom: 0.625rem;
|
|
51
51
|
width: 100%;
|
|
52
52
|
|
|
53
|
-
${(e) =>
|
|
53
|
+
${(e) => X(e.theme, "Input", e.size, "enabled")}
|
|
54
54
|
min-height: ${(e) => g(e.theme, e.size)};
|
|
55
55
|
max-height: ${(e) => g(e.theme, e.size)};
|
|
56
56
|
color: ${(e) => a(
|
|
@@ -82,28 +82,28 @@ const Y = m.div`
|
|
|
82
82
|
${(e) => O(e.theme)}
|
|
83
83
|
background: none;
|
|
84
84
|
}
|
|
85
|
-
`, ne =
|
|
85
|
+
`, ne = A((e, h) => {
|
|
86
86
|
const {
|
|
87
87
|
wrapperRef: T,
|
|
88
88
|
disabled: S,
|
|
89
89
|
readOnly: k,
|
|
90
|
-
debounceTime:
|
|
91
|
-
placeholder:
|
|
90
|
+
debounceTime: V = 180,
|
|
91
|
+
placeholder: B,
|
|
92
92
|
prefix: b,
|
|
93
93
|
suffix: y,
|
|
94
94
|
value: l,
|
|
95
|
-
defaultValue:
|
|
95
|
+
defaultValue: F,
|
|
96
96
|
//----------------
|
|
97
|
-
onChange:
|
|
97
|
+
onChange: s,
|
|
98
98
|
onBlur: p,
|
|
99
99
|
onFocus: x,
|
|
100
100
|
//----------------
|
|
101
|
-
className:
|
|
102
|
-
style:
|
|
101
|
+
className: N = "",
|
|
102
|
+
style: P = {},
|
|
103
103
|
size: v = "small",
|
|
104
|
-
color:
|
|
105
|
-
...
|
|
106
|
-
} = e, r =
|
|
104
|
+
color: d = "primary",
|
|
105
|
+
...R
|
|
106
|
+
} = e, r = G(), c = Y(), [j, z] = $(l || F || "");
|
|
107
107
|
I(() => {
|
|
108
108
|
l != null && z(l);
|
|
109
109
|
}, [l]);
|
|
@@ -115,24 +115,24 @@ const Y = m.div`
|
|
|
115
115
|
}, [f]), I(() => {
|
|
116
116
|
h != null && (h.current = r.current);
|
|
117
117
|
}, [h, r]);
|
|
118
|
-
const W =
|
|
119
|
-
|
|
120
|
-
[
|
|
118
|
+
const W = H(
|
|
119
|
+
J((t, o) => E(t, o), V),
|
|
120
|
+
[s]
|
|
121
121
|
), E = (t, o) => {
|
|
122
|
-
|
|
122
|
+
s && (s == null || s(t, o));
|
|
123
123
|
}, U = (t) => {
|
|
124
124
|
z(t.target.value), W(t, t.target.value);
|
|
125
|
-
},
|
|
125
|
+
}, D = () => {
|
|
126
126
|
L(!f), r.current.focus();
|
|
127
127
|
};
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
-
|
|
128
|
+
return /* @__PURE__ */ q(
|
|
129
|
+
Z,
|
|
130
130
|
{
|
|
131
131
|
ref: T,
|
|
132
|
-
style:
|
|
133
|
-
className:
|
|
132
|
+
style: P,
|
|
133
|
+
className: N,
|
|
134
134
|
theme: c,
|
|
135
|
-
color:
|
|
135
|
+
color: d,
|
|
136
136
|
size: v,
|
|
137
137
|
focused: i,
|
|
138
138
|
disabled: S,
|
|
@@ -142,7 +142,7 @@ const Y = m.div`
|
|
|
142
142
|
C,
|
|
143
143
|
{
|
|
144
144
|
theme: c,
|
|
145
|
-
color:
|
|
145
|
+
color: d,
|
|
146
146
|
focused: i,
|
|
147
147
|
className: "lnc-input-prefix",
|
|
148
148
|
children: b
|
|
@@ -154,9 +154,9 @@ const Y = m.div`
|
|
|
154
154
|
ref: r,
|
|
155
155
|
type: f ? "password" : "text",
|
|
156
156
|
theme: c,
|
|
157
|
-
color:
|
|
157
|
+
color: d,
|
|
158
158
|
size: v,
|
|
159
|
-
placeholder:
|
|
159
|
+
placeholder: B,
|
|
160
160
|
prefix: b,
|
|
161
161
|
suffix: y,
|
|
162
162
|
disabled: S,
|
|
@@ -170,24 +170,24 @@ const Y = m.div`
|
|
|
170
170
|
},
|
|
171
171
|
onChange: U,
|
|
172
172
|
value: j,
|
|
173
|
-
...
|
|
173
|
+
...R
|
|
174
174
|
}
|
|
175
175
|
),
|
|
176
176
|
/* @__PURE__ */ u(
|
|
177
177
|
ee,
|
|
178
178
|
{
|
|
179
179
|
theme: c,
|
|
180
|
-
color:
|
|
180
|
+
color: d,
|
|
181
181
|
focused: i,
|
|
182
|
-
onClick:
|
|
183
|
-
children: /* @__PURE__ */ u(
|
|
182
|
+
onClick: D,
|
|
183
|
+
children: /* @__PURE__ */ u(K, { icon: f ? "eye-slash" : "eye" })
|
|
184
184
|
}
|
|
185
185
|
),
|
|
186
186
|
y && /* @__PURE__ */ u(
|
|
187
|
-
|
|
187
|
+
_,
|
|
188
188
|
{
|
|
189
189
|
theme: c,
|
|
190
|
-
color:
|
|
190
|
+
color: d,
|
|
191
191
|
focused: i,
|
|
192
192
|
className: "lnc-input-suffix",
|
|
193
193
|
children: y
|
package/dist/RadioGroup.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import P,
|
|
3
|
-
import { n as
|
|
2
|
+
import { forwardRef as P, useState as j, useEffect as z } from "react";
|
|
3
|
+
import { n as R } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
4
4
|
import { P as e } from "./index-BYnWp42a.js";
|
|
5
5
|
import T from "./RadioInput.js";
|
|
6
6
|
import { u as k } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
7
|
-
const N =
|
|
7
|
+
const N = R.div`
|
|
8
8
|
display: inline-flex;
|
|
9
9
|
flex-direction: ${(r) => r.inline === !0 ? "row" : "column"};
|
|
10
10
|
gap: 1.5rem;
|
|
11
11
|
width: fit-content;
|
|
12
12
|
box-sizing: border-box;
|
|
13
|
-
`, S = P
|
|
13
|
+
`, S = P((r, s) => {
|
|
14
14
|
const {
|
|
15
15
|
id: t = "",
|
|
16
|
-
name:
|
|
16
|
+
name: m,
|
|
17
17
|
value: o = null,
|
|
18
|
-
disabled:
|
|
18
|
+
disabled: d = !1,
|
|
19
19
|
readOnly: p = !1,
|
|
20
20
|
items: u = [],
|
|
21
21
|
mapId: V = "id",
|
|
22
|
-
mapValue:
|
|
22
|
+
mapValue: E = "value",
|
|
23
23
|
radioProps: c,
|
|
24
24
|
inline: f = !0,
|
|
25
25
|
//----------------
|
|
@@ -33,15 +33,15 @@ const N = z.div`
|
|
|
33
33
|
...v
|
|
34
34
|
} = r;
|
|
35
35
|
var x = k();
|
|
36
|
-
const [C, w] =
|
|
37
|
-
|
|
36
|
+
const [C, w] = j(null);
|
|
37
|
+
z(() => {
|
|
38
38
|
o !== C && w(o);
|
|
39
39
|
}, [o]);
|
|
40
40
|
var I = {
|
|
41
41
|
color: h,
|
|
42
42
|
theme: x,
|
|
43
43
|
size: b,
|
|
44
|
-
disabled:
|
|
44
|
+
disabled: d,
|
|
45
45
|
readOnly: p
|
|
46
46
|
};
|
|
47
47
|
const O = (a, i) => {
|
|
@@ -64,7 +64,7 @@ const N = z.div`
|
|
|
64
64
|
value: a.value,
|
|
65
65
|
...c,
|
|
66
66
|
onChange: O,
|
|
67
|
-
name:
|
|
67
|
+
name: m
|
|
68
68
|
},
|
|
69
69
|
i
|
|
70
70
|
))
|