@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/MenuItem.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const c=require("react/jsx-runtime"),f=require("react"),s=require("./index-BIlhCoy2.cjs"),
|
|
1
|
+
"use strict";const c=require("react/jsx-runtime"),f=require("react"),s=require("./index-BIlhCoy2.cjs"),G=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),M=require("./Icon.cjs"),l=require("./utils-DTAPpJXU.cjs"),H=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),J=G.newStyled.div`
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
cursor: ${n=>n.disabled==!1?"pointer":"context-menu"};
|
|
4
4
|
width: 100%;
|
|
@@ -33,4 +33,4 @@
|
|
|
33
33
|
color: ${l.getColorRgbaValue(n.theme,"MenuItem",n.color,"hover","text")};
|
|
34
34
|
`}
|
|
35
35
|
}
|
|
36
|
-
`,h=f.forwardRef((n,a)=>{const{value:T,active:r=null,icon:E,disabled:m=!1,isNested:d=!1,showNested:P,justifyToEnd:
|
|
36
|
+
`,h=f.forwardRef((n,a)=>{const{value:T,active:r=null,icon:E,disabled:m=!1,isNested:d=!1,showNested:P,justifyToEnd:Q=!1,onFocus:N=()=>{},onBlur:k=()=>{},onClick:C=()=>{},onKeyDown:v=()=>{},onMouseEnter:W=()=>{},onMouseLeave:X=()=>{},toggleNested:u=()=>{},onItemSelected:w=()=>{},className:x="",style:_={},color:$="primary",size:R="small",iconProps:S,__TYPE__:Z="MENU_ITEM",children:A,...j}=n,q={theme:H.useTheme(),color:$,style:_,size:R},y=f.useRef(),[O,g]=f.useState(r??!1);f.useEffect(()=>{g(r)},[r]);const D=e=>{m==!1&&(d&&u&&u(),w(e,T)),C(C)},V=e=>{g(!0),N(e)},F=e=>{r==null&&g(!1),k(e)},z=e=>{e.preventDefault(),e.key=="ArrowDown"?b(a?a.current:y.current):e.key=="ArrowUp"?p(a?a.current:y.current):(e.key=="Enter"||e.keyCode==32)&&m==!1&&(d&&u&&u(),w(e,T)),v(e)},b=e=>{if(e!=null&&e.nextSibling){let o=B(e);if(o!=null&&o.node&&(o==null?void 0:o.type)=="item")o.node.focus();else if(o!=null&&o.node&&(o==null?void 0:o.type)=="nested"){let i=L(o.node);i&&i.focus()}else e!=null&&e.parentElement&&t(e.parentElement,"nested-item-lnc")&&b(e.parentElement)}else e!=null&&e.parentElement&&t(e.parentElement,"nested-item-lnc")&&b(e.parentElement)},p=e=>{if(e!=null&&e.previousSibling){let o=K(e);if(o!=null&&o.node&&(o==null?void 0:o.type)=="item")o.node.focus();else if(o!=null&&o.node&&(o==null?void 0:o.type)=="nested"){let i=U(o.node);i&&i.focus()}else e!=null&&e.parentElement&&t(e.parentElement,"nested-item-lnc")&&p(e.parentElement)}else e!=null&&e.parentElement&&t(e.parentElement,"nested-item-lnc")&&p(e.parentElement)},B=e=>{for(;e=e.nextSibling;){if(t(e,"menu-item-lnc"))return{node:e,type:"item"};if(t(e,"nested-item-lnc"))return{node:e,type:"nested"}}return null},K=e=>{for(;e=e.previousSibling;){if(t(e,"menu-item-lnc"))return{node:e,type:"item"};if(t(e,"nested-item-lnc"))return{node:e,type:"nested"}}return null},L=e=>{var o;return(o=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:o[0]},U=e=>{var o;return(o=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:o.pop()},t=(e,o)=>{var i=" "+e.className+" ",Y=" "+o+" ";return i.indexOf(Y)!=-1};return c.jsx(c.Fragment,{children:c.jsxs(J,{ref:a||y,className:"menu-item-lnc "+(d?"nested-menu-item-lnc ":"")+(P?"spread-nested-item-lnc ":"")+x,...q,disabled:m,tabIndex:0,onKeyDown:z,onFocus:V,onBlur:F,onClick:D,isActive:O,showNested:P,...j,children:[E&&c.jsx(M,{icon:E,className:"menu-icon-lnc",...S}),c.jsx("div",{children:A}),d&&c.jsx(M,{icon:"angle-down",className:"sub-menu-icon-lnc"})]})})});h.propTypes={value:s.PropTypes.any,active:s.PropTypes.bool,icon:s.PropTypes.string,disabled:s.PropTypes.bool,isNested:s.PropTypes.bool,justifyToEnd:s.PropTypes.bool,onBlur:s.PropTypes.func,onFocus:s.PropTypes.func,onClick:s.PropTypes.func,onKeyDown:s.PropTypes.func,onMouseEnter:s.PropTypes.func,onMouseLeave:s.PropTypes.func,className:s.PropTypes.string,style:s.PropTypes.object,color:s.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),iconProps:s.PropTypes.any,size:s.PropTypes.oneOf(["small","medium","large"]),__TYPE__:s.PropTypes.string};h.displayName="MENU_ITEM";module.exports=h;
|
package/dist/MenuItem.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as m, Fragment as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as m, Fragment as G, jsxs as H } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as J, useRef as Q, useState as W, useEffect as X } from "react";
|
|
3
3
|
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
-
import { n as
|
|
4
|
+
import { n as Z } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import k from "./Icon.js";
|
|
6
|
-
import { a as i, g as
|
|
7
|
-
import { u as
|
|
8
|
-
const
|
|
6
|
+
import { a as i, g as I, h as v } from "./utils-C52T57HO.js";
|
|
7
|
+
import { u as ee } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
+
const ne = Z.div`
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
cursor: ${(n) => n.disabled == !1 ? "pointer" : "context-menu"};
|
|
11
11
|
width: 100%;
|
|
@@ -16,7 +16,7 @@ const ee = X.div`
|
|
|
16
16
|
gap: 0.563rem;
|
|
17
17
|
padding: 0.563rem;
|
|
18
18
|
color: ${(n) => i(n.theme, "MenuItem", n.color, "enabled", "text")};
|
|
19
|
-
${(n) =>
|
|
19
|
+
${(n) => I(n.theme, "MenuItem", n.size, "enabled")};
|
|
20
20
|
& .menu-icon-lnc {
|
|
21
21
|
color: ${(n) => n.isActive && n.disabled == !1 ? i(
|
|
22
22
|
n.theme,
|
|
@@ -78,7 +78,7 @@ const ee = X.div`
|
|
|
78
78
|
)};
|
|
79
79
|
`}
|
|
80
80
|
}
|
|
81
|
-
`, C =
|
|
81
|
+
`, C = J((n, a) => {
|
|
82
82
|
const {
|
|
83
83
|
value: g,
|
|
84
84
|
active: c = null,
|
|
@@ -86,7 +86,7 @@ const ee = X.div`
|
|
|
86
86
|
disabled: r = !1,
|
|
87
87
|
isNested: d = !1,
|
|
88
88
|
showNested: M,
|
|
89
|
-
justifyToEnd:
|
|
89
|
+
justifyToEnd: le = !1,
|
|
90
90
|
//----------------
|
|
91
91
|
onFocus: p = () => {
|
|
92
92
|
},
|
|
@@ -94,100 +94,101 @@ const ee = X.div`
|
|
|
94
94
|
},
|
|
95
95
|
onClick: w = () => {
|
|
96
96
|
},
|
|
97
|
-
onKeyDown:
|
|
97
|
+
onKeyDown: x = () => {
|
|
98
98
|
},
|
|
99
|
-
onMouseEnter:
|
|
99
|
+
onMouseEnter: oe = () => {
|
|
100
100
|
},
|
|
101
|
-
onMouseLeave:
|
|
101
|
+
onMouseLeave: se = () => {
|
|
102
102
|
},
|
|
103
103
|
toggleNested: f = () => {
|
|
104
104
|
},
|
|
105
105
|
onItemSelected: N = () => {
|
|
106
106
|
},
|
|
107
107
|
//----------------
|
|
108
|
-
className:
|
|
109
|
-
style:
|
|
110
|
-
color:
|
|
111
|
-
|
|
108
|
+
className: A = "",
|
|
109
|
+
style: S = {},
|
|
110
|
+
color: T = "primary",
|
|
111
|
+
size: _ = "small",
|
|
112
|
+
iconProps: O,
|
|
112
113
|
__TYPE__: te = "MENU_ITEM",
|
|
113
|
-
children:
|
|
114
|
-
...
|
|
115
|
-
} = n,
|
|
116
|
-
|
|
114
|
+
children: P,
|
|
115
|
+
...D
|
|
116
|
+
} = n, F = { theme: ee(), color: T, style: S, size: _ }, u = Q(), [j, y] = W(c ?? !1);
|
|
117
|
+
X(() => {
|
|
117
118
|
y(c);
|
|
118
119
|
}, [c]);
|
|
119
|
-
const
|
|
120
|
+
const z = (e) => {
|
|
120
121
|
r == !1 && (d && f && f(), N(e, g)), w(w);
|
|
121
|
-
}, R = (e) => {
|
|
122
|
-
y(!0), p(e);
|
|
123
122
|
}, B = (e) => {
|
|
124
|
-
|
|
123
|
+
y(!0), p(e);
|
|
125
124
|
}, K = (e) => {
|
|
126
|
-
|
|
125
|
+
c == null && y(!1), $(e);
|
|
126
|
+
}, R = (e) => {
|
|
127
|
+
e.preventDefault(), e.key == "ArrowDown" ? h(a ? a.current : u.current) : e.key == "ArrowUp" ? b(a ? a.current : u.current) : (e.key == "Enter" || e.keyCode == 32) && r == !1 && (d && f && f(), N(e, g)), x(e);
|
|
127
128
|
}, h = (e) => {
|
|
128
129
|
if (e != null && e.nextSibling) {
|
|
129
|
-
let l =
|
|
130
|
+
let l = L(e);
|
|
130
131
|
if (l != null && l.node && (l == null ? void 0 : l.type) == "item")
|
|
131
132
|
l.node.focus();
|
|
132
133
|
else if (l != null && l.node && (l == null ? void 0 : l.type) == "nested") {
|
|
133
|
-
let
|
|
134
|
-
|
|
135
|
-
} else e != null && e.parentElement &&
|
|
136
|
-
} else e != null && e.parentElement &&
|
|
134
|
+
let t = q(l.node);
|
|
135
|
+
t && t.focus();
|
|
136
|
+
} else e != null && e.parentElement && s(e.parentElement, "nested-item-lnc") && h(e.parentElement);
|
|
137
|
+
} else e != null && e.parentElement && s(e.parentElement, "nested-item-lnc") && h(e.parentElement);
|
|
137
138
|
}, b = (e) => {
|
|
138
139
|
if (e != null && e.previousSibling) {
|
|
139
|
-
let l =
|
|
140
|
+
let l = U(e);
|
|
140
141
|
if (l != null && l.node && (l == null ? void 0 : l.type) == "item")
|
|
141
142
|
l.node.focus();
|
|
142
143
|
else if (l != null && l.node && (l == null ? void 0 : l.type) == "nested") {
|
|
143
|
-
let
|
|
144
|
-
|
|
145
|
-
} else e != null && e.parentElement &&
|
|
146
|
-
} else e != null && e.parentElement &&
|
|
147
|
-
},
|
|
144
|
+
let t = Y(l.node);
|
|
145
|
+
t && t.focus();
|
|
146
|
+
} else e != null && e.parentElement && s(e.parentElement, "nested-item-lnc") && b(e.parentElement);
|
|
147
|
+
} else e != null && e.parentElement && s(e.parentElement, "nested-item-lnc") && b(e.parentElement);
|
|
148
|
+
}, L = (e) => {
|
|
148
149
|
for (; e = e.nextSibling; ) {
|
|
149
|
-
if (
|
|
150
|
+
if (s(e, "menu-item-lnc"))
|
|
150
151
|
return { node: e, type: "item" };
|
|
151
|
-
if (
|
|
152
|
+
if (s(e, "nested-item-lnc"))
|
|
152
153
|
return { node: e, type: "nested" };
|
|
153
154
|
}
|
|
154
155
|
return null;
|
|
155
|
-
},
|
|
156
|
+
}, U = (e) => {
|
|
156
157
|
for (; e = e.previousSibling; ) {
|
|
157
|
-
if (
|
|
158
|
+
if (s(e, "menu-item-lnc"))
|
|
158
159
|
return { node: e, type: "item" };
|
|
159
|
-
if (
|
|
160
|
+
if (s(e, "nested-item-lnc"))
|
|
160
161
|
return { node: e, type: "nested" };
|
|
161
162
|
}
|
|
162
163
|
return null;
|
|
163
|
-
},
|
|
164
|
+
}, q = (e) => {
|
|
164
165
|
var l;
|
|
165
166
|
return (l = Array.from(e.querySelectorAll(".menu-item-lnc"))) == null ? void 0 : l[0];
|
|
166
|
-
},
|
|
167
|
+
}, Y = (e) => {
|
|
167
168
|
var l;
|
|
168
169
|
return (l = Array.from(e.querySelectorAll(".menu-item-lnc"))) == null ? void 0 : l.pop();
|
|
169
|
-
},
|
|
170
|
-
var
|
|
171
|
-
return
|
|
170
|
+
}, s = (e, l) => {
|
|
171
|
+
var t = " " + e.className + " ", V = " " + l + " ";
|
|
172
|
+
return t.indexOf(V) != -1;
|
|
172
173
|
};
|
|
173
|
-
return /* @__PURE__ */ m(
|
|
174
|
-
|
|
174
|
+
return /* @__PURE__ */ m(G, { children: /* @__PURE__ */ H(
|
|
175
|
+
ne,
|
|
175
176
|
{
|
|
176
177
|
ref: a || u,
|
|
177
|
-
className: "menu-item-lnc " + (d ? "nested-menu-item-lnc " : "") + (M ? "spread-nested-item-lnc " : "") +
|
|
178
|
-
...
|
|
178
|
+
className: "menu-item-lnc " + (d ? "nested-menu-item-lnc " : "") + (M ? "spread-nested-item-lnc " : "") + A,
|
|
179
|
+
...F,
|
|
179
180
|
disabled: r,
|
|
180
181
|
tabIndex: 0,
|
|
181
|
-
onKeyDown:
|
|
182
|
-
onFocus:
|
|
183
|
-
onBlur:
|
|
184
|
-
onClick:
|
|
185
|
-
isActive:
|
|
182
|
+
onKeyDown: R,
|
|
183
|
+
onFocus: B,
|
|
184
|
+
onBlur: K,
|
|
185
|
+
onClick: z,
|
|
186
|
+
isActive: j,
|
|
186
187
|
showNested: M,
|
|
187
|
-
...
|
|
188
|
+
...D,
|
|
188
189
|
children: [
|
|
189
|
-
E && /* @__PURE__ */ m(k, { icon: E, className: "menu-icon-lnc", ...
|
|
190
|
-
/* @__PURE__ */ m("div", { children:
|
|
190
|
+
E && /* @__PURE__ */ m(k, { icon: E, className: "menu-icon-lnc", ...O }),
|
|
191
|
+
/* @__PURE__ */ m("div", { children: P }),
|
|
191
192
|
d && /* @__PURE__ */ m(k, { icon: "angle-down", className: "sub-menu-icon-lnc" })
|
|
192
193
|
]
|
|
193
194
|
}
|
package/dist/Modal.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import U,
|
|
1
|
+
import { jsx as t, Fragment as L, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as U, useRef as W, useState as X, useImperativeHandle as V } from "react";
|
|
3
3
|
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
-
import { n as
|
|
4
|
+
import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import q from "./Icon.js";
|
|
6
|
-
import { a as
|
|
6
|
+
import { a as O } from "./utils-C52T57HO.js";
|
|
7
7
|
import { r as J } from "./index--Kmch3aI.js";
|
|
8
8
|
import { m as z } from "./motion-ecIGZGwI.js";
|
|
9
9
|
import { u as K } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
10
|
-
import { A as
|
|
11
|
-
const
|
|
10
|
+
import { A as R } from "./index-BUChtubz.js";
|
|
11
|
+
const f = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FULL" ? `calc(100dvh - ${h} - ${f})` : `calc(100dvh - ${h} - ${f} - ${a})` : r ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${a})` : n ? e == "FULL" ? `calc(100dvh - ${f})` : `calc(100dvh - ${f} - ${a})` : e == "FULL" ? "100dvh" : `calc(100dvh - ${a})`, Y = (e) => e == "FULL" ? "100vw" : `calc(100vw - ${a})`, Z = (e, r, n) => e == "FULL" ? "0" : `${r ? "0" : "16px"} 0 ${n ? "0" : "16px"} 0`, P = w(z.div)`
|
|
12
12
|
position: ${(e) => e.scrollOverlay == !0 ? "absolute" : "fixed"};
|
|
13
13
|
top: 0;
|
|
14
14
|
left: 0;
|
|
@@ -17,12 +17,12 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
17
17
|
background: ${(e) => e.scrollOverlay === !0 ? "transparent" : e.overlayColor};
|
|
18
18
|
z-index: ${(e) => e.zIndex};
|
|
19
19
|
display: flex;
|
|
20
|
-
`, ee =
|
|
20
|
+
`, ee = w(z.div)`
|
|
21
21
|
position: relative;
|
|
22
22
|
width: 50%;
|
|
23
23
|
background-color: white;
|
|
24
24
|
${(e) => e.scrollOverlay == !1 ? "position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);" : "height: fit-content; margin-right: auto; margin-left: auto;"}
|
|
25
|
-
background-color: ${(e) =>
|
|
25
|
+
background-color: ${(e) => O(e.theme, "Modal", "default", "enabled", "bg")};
|
|
26
26
|
z-index: ${(e) => e.zIndex};
|
|
27
27
|
width: ${(e) => ne[e.size.toUpperCase()]};
|
|
28
28
|
max-width: ${(e) => Y(e.size.toUpperCase())};
|
|
@@ -44,7 +44,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
44
44
|
margin: 0;
|
|
45
45
|
}
|
|
46
46
|
& .lnc-modal-footer {
|
|
47
|
-
max-height: ${
|
|
47
|
+
max-height: ${f};
|
|
48
48
|
overflow: hidden;
|
|
49
49
|
padding-top: 1rem;
|
|
50
50
|
}
|
|
@@ -64,12 +64,12 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
64
64
|
margin: ${(e) => Z(e.size, e.header, e.footer)};
|
|
65
65
|
padding: 0 ${a} 0 ${a};
|
|
66
66
|
}
|
|
67
|
-
`, oe =
|
|
67
|
+
`, oe = w.div`
|
|
68
68
|
position: absolute;
|
|
69
69
|
cursor: pointer;
|
|
70
70
|
top: 1.375rem;
|
|
71
71
|
right: 1.375rem;
|
|
72
|
-
color: ${(e) =>
|
|
72
|
+
color: ${(e) => O(
|
|
73
73
|
e.theme,
|
|
74
74
|
"Modal",
|
|
75
75
|
"primary",
|
|
@@ -87,7 +87,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:hover {
|
|
90
|
-
background-color: ${(e) =>
|
|
90
|
+
background-color: ${(e) => O(
|
|
91
91
|
e.theme,
|
|
92
92
|
"Modal",
|
|
93
93
|
"primary",
|
|
@@ -97,7 +97,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
97
97
|
)};
|
|
98
98
|
}
|
|
99
99
|
&:focus {
|
|
100
|
-
background-color: ${(e) =>
|
|
100
|
+
background-color: ${(e) => O(
|
|
101
101
|
e.theme,
|
|
102
102
|
"Modal",
|
|
103
103
|
"primary",
|
|
@@ -106,7 +106,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
106
106
|
"cancelBtnBgOpacity"
|
|
107
107
|
)};
|
|
108
108
|
}
|
|
109
|
-
`, te =
|
|
109
|
+
`, te = w(z.div)`
|
|
110
110
|
display: ${(e) => e.scrollOverlay === !0 ? "block" : "none"};
|
|
111
111
|
position: fixed;
|
|
112
112
|
top: 0;
|
|
@@ -115,7 +115,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
115
115
|
width: 100%;
|
|
116
116
|
background-color: ${(e) => e.overlayColor};
|
|
117
117
|
z-index: 3;
|
|
118
|
-
`, re = U
|
|
118
|
+
`, re = U((e, r) => {
|
|
119
119
|
const {
|
|
120
120
|
portalElement: n = document.body,
|
|
121
121
|
isOpen: c = !1,
|
|
@@ -133,7 +133,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
133
133
|
size: y = "fluid",
|
|
134
134
|
clickOutsideToClose: $ = !0,
|
|
135
135
|
className: v = "",
|
|
136
|
-
style:
|
|
136
|
+
style: G = {},
|
|
137
137
|
overlayProps: M,
|
|
138
138
|
overlayAnimation: k = {
|
|
139
139
|
animate: { opacity: 1 },
|
|
@@ -153,14 +153,14 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
153
153
|
},
|
|
154
154
|
children: B,
|
|
155
155
|
rest: T
|
|
156
|
-
} = e, I = W(), [N,
|
|
157
|
-
let
|
|
158
|
-
const
|
|
159
|
-
|
|
156
|
+
} = e, I = W(), [N, E] = X(c);
|
|
157
|
+
let j = { theme: K(), size: y, zIndex: C, className: v, style: G };
|
|
158
|
+
const A = (u) => {
|
|
159
|
+
u.target === u.currentTarget && $ && b(u);
|
|
160
160
|
};
|
|
161
161
|
V(r, () => ({
|
|
162
162
|
open() {
|
|
163
|
-
|
|
163
|
+
_();
|
|
164
164
|
},
|
|
165
165
|
close() {
|
|
166
166
|
b();
|
|
@@ -169,24 +169,24 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
169
169
|
return N;
|
|
170
170
|
}
|
|
171
171
|
}));
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
}, b = (
|
|
175
|
-
|
|
172
|
+
const _ = (u) => {
|
|
173
|
+
E(!0), g(u);
|
|
174
|
+
}, b = (u) => {
|
|
175
|
+
E(!1), x(u);
|
|
176
176
|
};
|
|
177
|
-
return /* @__PURE__ */ t(
|
|
177
|
+
return /* @__PURE__ */ t(L, { children: N && /* @__PURE__ */ t(L, { children: n ? /* @__PURE__ */ t(L, { children: J.createPortal(
|
|
178
178
|
/* @__PURE__ */ t(
|
|
179
|
-
|
|
179
|
+
H,
|
|
180
180
|
{
|
|
181
181
|
ref: I,
|
|
182
182
|
overlay: s,
|
|
183
183
|
scrollOverlay: i,
|
|
184
|
-
onClickOutsideModal:
|
|
184
|
+
onClickOutsideModal: A,
|
|
185
185
|
overlayColor: m,
|
|
186
186
|
overlayProps: M,
|
|
187
187
|
overlayAnimation: k,
|
|
188
188
|
modalAnimation: F,
|
|
189
|
-
themeProps:
|
|
189
|
+
themeProps: j,
|
|
190
190
|
showCloseButton: p,
|
|
191
191
|
close: b,
|
|
192
192
|
header: d,
|
|
@@ -198,17 +198,17 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
198
198
|
),
|
|
199
199
|
n
|
|
200
200
|
) }) : /* @__PURE__ */ t(
|
|
201
|
-
|
|
201
|
+
H,
|
|
202
202
|
{
|
|
203
203
|
ref: I,
|
|
204
204
|
overlay: s,
|
|
205
205
|
scrollOverlay: i,
|
|
206
|
-
onClickOutsideModal:
|
|
206
|
+
onClickOutsideModal: A,
|
|
207
207
|
overlayColor: m,
|
|
208
208
|
overlayProps: M,
|
|
209
209
|
overlayAnimation: k,
|
|
210
210
|
modalAnimation: F,
|
|
211
|
-
themeProps:
|
|
211
|
+
themeProps: j,
|
|
212
212
|
showCloseButton: p,
|
|
213
213
|
close: b,
|
|
214
214
|
header: d,
|
|
@@ -218,7 +218,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
218
218
|
children: B
|
|
219
219
|
}
|
|
220
220
|
) }) });
|
|
221
|
-
}),
|
|
221
|
+
}), H = U(
|
|
222
222
|
({
|
|
223
223
|
overlay: e,
|
|
224
224
|
scrollOverlay: r,
|
|
@@ -235,7 +235,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
235
235
|
isOpen: C,
|
|
236
236
|
children: y,
|
|
237
237
|
...$
|
|
238
|
-
}, v) => /* @__PURE__ */ t(
|
|
238
|
+
}, v) => /* @__PURE__ */ t(R, { children: e ? /* @__PURE__ */ D(L, { children: [
|
|
239
239
|
/* @__PURE__ */ t(
|
|
240
240
|
te,
|
|
241
241
|
{
|
|
@@ -257,7 +257,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
257
257
|
...d,
|
|
258
258
|
...l,
|
|
259
259
|
children: /* @__PURE__ */ t(
|
|
260
|
-
|
|
260
|
+
S,
|
|
261
261
|
{
|
|
262
262
|
ref: v,
|
|
263
263
|
themeProps: s,
|
|
@@ -274,7 +274,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
274
274
|
}
|
|
275
275
|
)
|
|
276
276
|
] }) : /* @__PURE__ */ t(
|
|
277
|
-
|
|
277
|
+
S,
|
|
278
278
|
{
|
|
279
279
|
ref: v,
|
|
280
280
|
themeProps: s,
|
|
@@ -287,7 +287,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
287
287
|
children: y
|
|
288
288
|
}
|
|
289
289
|
) })
|
|
290
|
-
),
|
|
290
|
+
), S = U(
|
|
291
291
|
({
|
|
292
292
|
themeProps: e,
|
|
293
293
|
scrollOverlay: r,
|
|
@@ -298,7 +298,7 @@ const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FU
|
|
|
298
298
|
footer: i,
|
|
299
299
|
children: s,
|
|
300
300
|
...m
|
|
301
|
-
}, p) => /* @__PURE__ */ t(
|
|
301
|
+
}, p) => /* @__PURE__ */ t(R, { children: /* @__PURE__ */ D(
|
|
302
302
|
ee,
|
|
303
303
|
{
|
|
304
304
|
ref: p,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as O } from "react/jsx-runtime";
|
|
2
2
|
import { P as e } from "./index-BYnWp42a.js";
|
|
3
|
-
import y,
|
|
3
|
+
import { forwardRef as y, useCallback as h } from "react";
|
|
4
4
|
import { a as M } from "./CustomStyles-BUSJ8bZt.js";
|
|
5
5
|
import { d as S } from "./index-CNBqQrtK.js";
|
|
6
6
|
import C from "./Dropdown.js";
|
|
7
7
|
import { u as I } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
-
const w = y
|
|
8
|
+
const w = y((l, t) => {
|
|
9
9
|
const {
|
|
10
10
|
// options,
|
|
11
11
|
styles: n,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { P as e } from "./index-BYnWp42a.js";
|
|
3
|
-
import y,
|
|
3
|
+
import { forwardRef as y, useCallback as h } from "react";
|
|
4
4
|
import { a as M } from "./CustomStyles-BUSJ8bZt.js";
|
|
5
5
|
import { d as S } from "./index-CNBqQrtK.js";
|
|
6
6
|
import C from "./DropdownLookup.js";
|
|
7
7
|
import { u as I } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
-
const T = y
|
|
8
|
+
const T = y((l, t) => {
|
|
9
9
|
const {
|
|
10
10
|
// defaultOptions,
|
|
11
11
|
// cacheOptions,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as w, Fragment as p, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as b, useState as x, cloneElement as l, Children as P, isValidElement as O } 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 h } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
|
+
import { a as D } from "./utils-C52T57HO.js";
|
|
6
|
+
import { m as j } 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 z = h(j.div)`
|
|
10
10
|
margin-left: 0.3rem;
|
|
11
11
|
padding-left: 0.3rem;
|
|
12
|
-
border-left: ${(
|
|
13
|
-
|
|
12
|
+
border-left: ${(o) => `2px solid ${D(
|
|
13
|
+
o.theme,
|
|
14
14
|
"MenuItem",
|
|
15
|
-
|
|
15
|
+
o.color,
|
|
16
16
|
"focus",
|
|
17
17
|
"background"
|
|
18
18
|
)}`};
|
|
19
19
|
border-radius: 2px;
|
|
20
|
-
`, d =
|
|
20
|
+
`, d = b((o, A) => {
|
|
21
21
|
const {
|
|
22
22
|
__TYPE__: R = "NESTED_ITEM",
|
|
23
23
|
item: f,
|
|
@@ -26,7 +26,7 @@ const Y = P(h.div)`
|
|
|
26
26
|
},
|
|
27
27
|
//--------------------
|
|
28
28
|
defaultOpen: u = !1,
|
|
29
|
-
animation:
|
|
29
|
+
animation: E = {
|
|
30
30
|
animate: { opacity: 1, height: "auto" },
|
|
31
31
|
exit: { opacity: 0, height: 0 },
|
|
32
32
|
initial: { opacity: 0, height: 0 },
|
|
@@ -37,41 +37,41 @@ const Y = P(h.div)`
|
|
|
37
37
|
height: { duration: 0.15 }
|
|
38
38
|
}
|
|
39
39
|
},
|
|
40
|
-
className:
|
|
41
|
-
style:
|
|
42
|
-
color:
|
|
43
|
-
size:
|
|
44
|
-
children:
|
|
45
|
-
...
|
|
46
|
-
} =
|
|
47
|
-
I(!s);
|
|
48
|
-
}, S = o.cloneElement(f, {
|
|
40
|
+
className: _ = "",
|
|
41
|
+
style: g = {},
|
|
42
|
+
color: r = "primary",
|
|
43
|
+
size: s = "small",
|
|
44
|
+
children: y,
|
|
45
|
+
...N
|
|
46
|
+
} = o, T = Y(), [n, I] = x(u), M = l(f, {
|
|
49
47
|
isNested: !0,
|
|
50
|
-
showNested:
|
|
51
|
-
toggleNested:
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
48
|
+
showNested: n,
|
|
49
|
+
toggleNested: () => {
|
|
50
|
+
I(!n);
|
|
51
|
+
},
|
|
52
|
+
color: r,
|
|
53
|
+
size: s
|
|
54
|
+
}), S = P.map(y, (e, V) => {
|
|
55
|
+
var m, i;
|
|
56
|
+
return O(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((m = e == null ? void 0 : e.type) == null ? void 0 : m.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((i = e == null ? void 0 : e.type) == null ? void 0 : i.displayName) === "NESTED_ITEM") ? l(e, {
|
|
57
|
+
color: e.props.color ? e.props.color : r,
|
|
58
|
+
size: s,
|
|
59
59
|
onItemSelected: c
|
|
60
60
|
}) : e;
|
|
61
61
|
});
|
|
62
|
-
return /* @__PURE__ */
|
|
63
|
-
/* @__PURE__ */
|
|
64
|
-
/* @__PURE__ */
|
|
65
|
-
|
|
62
|
+
return /* @__PURE__ */ w(p, { children: [
|
|
63
|
+
/* @__PURE__ */ a(p, { children: M }),
|
|
64
|
+
/* @__PURE__ */ a(C, { children: n && /* @__PURE__ */ a(
|
|
65
|
+
z,
|
|
66
66
|
{
|
|
67
|
-
...
|
|
68
|
-
theme:
|
|
69
|
-
color:
|
|
70
|
-
size:
|
|
71
|
-
className: "nested-item-lnc " +
|
|
72
|
-
style:
|
|
73
|
-
...
|
|
74
|
-
children:
|
|
67
|
+
...E,
|
|
68
|
+
theme: T,
|
|
69
|
+
color: r,
|
|
70
|
+
size: s,
|
|
71
|
+
className: "nested-item-lnc " + _,
|
|
72
|
+
style: g,
|
|
73
|
+
...N,
|
|
74
|
+
children: S
|
|
75
75
|
}
|
|
76
76
|
) })
|
|
77
77
|
] });
|