@lanaco/lnc-react-ui 4.0.2 → 4.0.5
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/Accordion.cjs +1 -1
- package/dist/Accordion.js +55 -50
- package/dist/AccordionDetails.cjs +1 -1
- package/dist/AccordionDetails.js +15 -15
- package/dist/AccordionSummary.cjs +1 -1
- package/dist/AccordionSummary.js +11 -11
- package/dist/ActionsToolbar.cjs +2 -2
- package/dist/ActionsToolbar.js +16 -16
- package/dist/Alert.cjs +1 -1
- package/dist/Alert.js +23 -23
- package/dist/Avatar.cjs +2 -2
- package/dist/Avatar.js +18 -21
- package/dist/Badge.cjs +1 -1
- package/dist/Badge.js +21 -14
- package/dist/Breadcrumbs.cjs +1 -1
- package/dist/Breadcrumbs.js +28 -28
- package/dist/Button.cjs +2 -2
- package/dist/Button.js +21 -22
- package/dist/ButtonGroup.cjs +1 -1
- package/dist/ButtonGroup.js +10 -6
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +6 -6
- package/dist/Chip.cjs +1 -1
- package/dist/Chip.js +9 -9
- package/dist/ColorInput.cjs +1 -1
- package/dist/ColorInput.js +20 -20
- package/dist/ConfirmationForm.cjs +1 -1
- package/dist/ConfirmationForm.js +58 -58
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +8 -8
- package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
- package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +35 -35
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +491 -491
- package/dist/DecimalInput.cjs +1 -1
- package/dist/DecimalInput.js +43 -43
- package/dist/DetailsView.cjs +4 -4
- package/dist/DetailsView.js +40 -40
- package/dist/DoubleRangeSlider.cjs +1 -1
- package/dist/DoubleRangeSlider.js +33 -33
- package/dist/DragAndDropFile.cjs +1 -1
- package/dist/DragAndDropFile.js +165 -165
- package/dist/DragDropFiles.cjs +1 -1
- package/dist/DragDropFiles.js +31 -31
- package/dist/Drawer.cjs +1 -1
- package/dist/Drawer.js +47 -47
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +39 -39
- package/dist/DropdownItem.cjs +1 -1
- package/dist/DropdownItem.js +23 -23
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +36 -36
- package/dist/DropdownMenu.cjs +7 -1
- package/dist/DropdownMenu.js +192 -10
- package/dist/EditableTable.cjs +1 -1
- package/dist/EditableTable.js +4 -4
- package/dist/FileInput.cjs +1 -1
- package/dist/FileInput.js +24 -24
- package/dist/FlexBox.cjs +1 -1
- package/dist/FlexBox.js +14 -14
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +30 -30
- package/dist/FlexGridItem.cjs +1 -1
- package/dist/FlexGridItem.js +16 -16
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +5 -5
- package/dist/FormField.cjs +1 -1
- package/dist/FormField.js +8 -9
- package/dist/FormView.cjs +1 -1
- package/dist/FormView.js +31 -31
- package/dist/Grid.cjs +2 -3
- package/dist/Grid.js +38 -10
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +29 -9
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -7
- package/dist/Icon.cjs +2 -2
- package/dist/Icon.js +35 -13
- package/dist/IconButton.cjs +1 -1
- package/dist/IconButton.js +51 -52
- package/dist/Kanban.cjs +12 -12
- package/dist/Kanban.js +891 -879
- package/dist/KanbanActionsToolbar.cjs +2 -2
- package/dist/KanbanActionsToolbar.js +28 -28
- package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
- package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +5 -5
- package/dist/KanbanFooter.cjs +1 -1
- package/dist/KanbanFooter.js +40 -40
- package/dist/KanbanHeader.cjs +2 -2
- package/dist/KanbanHeader.js +46 -46
- package/dist/KanbanView.cjs +1 -1
- package/dist/KanbanView.js +27 -27
- package/dist/Link.cjs +1 -1
- package/dist/Link.js +9 -9
- package/dist/MenuItem.cjs +1 -1
- package/dist/MenuItem.js +39 -39
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.js +42 -42
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +6 -6
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +6 -6
- package/dist/NestedDropdownItem.cjs +1 -1
- package/dist/NestedDropdownItem.js +40 -40
- package/dist/NestedMenuItem.cjs +1 -1
- package/dist/NestedMenuItem.js +45 -45
- package/dist/Notification.cjs +1 -83
- package/dist/Notification.js +3 -1077
- package/dist/NotificationContainer.cjs +37 -0
- package/dist/NotificationContainer.js +162 -0
- package/dist/NotificationMessage.cjs +47 -0
- package/dist/NotificationMessage.js +133 -0
- package/dist/NumberInput.cjs +1 -1
- package/dist/NumberInput.js +17 -17
- package/dist/PageLayout.cjs +1 -1
- package/dist/PageLayout.js +32 -32
- package/dist/Pagination.cjs +12 -0
- package/dist/Pagination.js +248 -0
- package/dist/PasswordInput.cjs +1 -1
- package/dist/PasswordInput.js +33 -33
- package/dist/Popover.cjs +1 -0
- package/dist/Popover.js +36 -0
- package/dist/PopoverClose.cjs +1 -0
- package/dist/PopoverClose.js +15 -0
- package/dist/PopoverContent.cjs +10 -0
- package/dist/PopoverContent.js +68 -0
- package/dist/PopoverContext.cjs +1 -0
- package/dist/PopoverContext.js +5 -0
- package/dist/PopoverDescription.cjs +1 -0
- package/dist/PopoverDescription.js +16 -0
- package/dist/PopoverHeading.cjs +1 -0
- package/dist/PopoverHeading.js +16 -0
- package/dist/PopoverTrigger.cjs +1 -0
- package/dist/PopoverTrigger.js +38 -0
- package/dist/ProgressBar.cjs +1 -1
- package/dist/ProgressBar.js +35 -24
- package/dist/RadioGroup.cjs +1 -1
- package/dist/RadioGroup.js +13 -13
- package/dist/RadioInput.cjs +1 -1
- package/dist/RadioInput.js +10 -10
- package/dist/RangeSlider.cjs +1 -1
- package/dist/RangeSlider.js +27 -27
- package/dist/SearchBar.cjs +1 -1
- package/dist/SearchBar.js +77 -77
- package/dist/Separator.cjs +1 -1
- package/dist/Separator.js +9 -9
- package/dist/Sidebar.cjs +1 -1
- package/dist/Sidebar.js +13 -13
- package/dist/Spinner.cjs +1 -1
- package/dist/Spinner.js +25 -20
- package/dist/Surface.cjs +2 -2
- package/dist/Surface.js +14 -15
- package/dist/SwipeableDrawer.cjs +1 -1
- package/dist/SwipeableDrawer.js +18 -18
- package/dist/TabItem.cjs +26 -0
- package/dist/TabItem.js +210 -0
- package/dist/Table.cjs +20 -20
- package/dist/Table.js +13 -12
- package/dist/TableView.cjs +8 -1
- package/dist/TableView.js +238 -9
- package/dist/Tabs.cjs +1 -1
- package/dist/Tabs.js +33 -27
- package/dist/TextAreaInput.cjs +1 -1
- package/dist/TextAreaInput.js +35 -35
- package/dist/TextInput.cjs +1 -1
- package/dist/TextInput.js +24 -24
- package/dist/ThemeProvider.cjs +1 -1
- package/dist/ThemeProvider.js +85 -85
- package/dist/TimeInput.cjs +1 -1
- package/dist/TimeInput.js +13 -13
- package/dist/Toggle.cjs +1 -1
- package/dist/Toggle.js +4 -5
- package/dist/TreeMenu.cjs +1 -1
- package/dist/TreeMenu.js +57 -57
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +11 -11
- package/dist/UploadedFile.cjs +1 -1
- package/dist/UploadedFile.js +29 -29
- package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
- package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
- package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
- package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
- package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
- package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
- package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
- package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
- package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
- package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
- package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
- package/dist/index-BIlhCoy2.cjs +20 -0
- package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
- package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
- package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
- package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
- package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
- package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
- package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
- package/dist/index-DAOBjHnD.cjs +1 -0
- package/dist/index-DBXXH_TD.cjs +1 -0
- package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
- package/dist/index-DaiUAQVF.cjs +1 -0
- package/dist/index.cjs +1 -26
- package/dist/index.js +180 -376
- package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
- package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
- package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
- package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
- package/dist/style.css +1 -5
- package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
- package/dist/usePopover.cjs +1 -0
- package/dist/usePopover.js +44 -0
- package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
- package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
- package/package.json +17 -5
- package/vite.config.js +16 -0
- package/custom-addons/ThemeSelector.js +0 -111
- package/custom-addons/register.js +0 -16
- package/custom-addons/theme-selector.css +0 -17
- package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
- package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
- package/dist/KanbanCard-ConTmu3w.cjs +0 -30
- package/dist/TableView-Cj5_fbSR.js +0 -481
- package/dist/TableView-D8ex512p.cjs +0 -19
- package/dist/index-BjdOz5Ok.cjs +0 -1
- package/dist/index-DXnSjbfJ.cjs +0 -20
- package/dist/index-Dzkd2i4n.cjs +0 -1
- package/dist/index-P-naJISQ.cjs +0 -1
package/dist/Modal.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import U,
|
|
3
|
-
import { P as o } from "./index-
|
|
4
|
-
import { n as
|
|
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
|
+
import { P as o } from "./index-BYnWp42a.js";
|
|
4
|
+
import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
|
|
5
5
|
import q from "./Icon.js";
|
|
6
|
-
import {
|
|
7
|
-
import { r as J } from "./index
|
|
8
|
-
import { m as z } from "./motion-
|
|
9
|
-
import { u as K } from "./emotion-element-5486c51c.browser.esm-
|
|
10
|
-
import { A as
|
|
11
|
-
const
|
|
6
|
+
import { a as O } from "./utils-C52T57HO.js";
|
|
7
|
+
import { r as J } from "./index--Kmch3aI.js";
|
|
8
|
+
import { m as z } from "./motion-ecIGZGwI.js";
|
|
9
|
+
import { u as K } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
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 +1 @@
|
|
|
1
|
-
"use strict";const g=require("react/jsx-runtime"),e=require("./index-
|
|
1
|
+
"use strict";const g=require("react/jsx-runtime"),e=require("./index-BIlhCoy2.cjs"),s=require("react"),O=require("./CustomStyles-Dlqxic2X.cjs"),h=require("./index-DaiUAQVF.cjs"),M=require("./Dropdown.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),r=s.forwardRef((n,t)=>{const{styles:p,debounceTime:l=180,isSearchable:u=!0,isClearable:y=!0,onInputChange:o,size:i="small",color:c="primary",className:a="",style:T={},...P}=n,b=S.useTheme(),m=s.useCallback(h.debounce((d,f)=>{o==null||o(d,f)},l));return g.jsx(M.default,{isMulti:!0,ref:t,styles:p||O.customStyles,size:i,color:c,theme:b,isSearchable:u,isClearable:y,onInputChange:m,className:a,style:T,...P})});r.propTypes={options:e.PropTypes.array,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.string,inputId:e.PropTypes.string,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onKeyDown:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=r;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as O } from "react/jsx-runtime";
|
|
2
|
-
import { P as e } from "./index-
|
|
3
|
-
import y,
|
|
4
|
-
import { a as M } from "./CustomStyles-
|
|
5
|
-
import { d as S } from "./index-
|
|
2
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
3
|
+
import { forwardRef as y, useCallback as h } from "react";
|
|
4
|
+
import { a as M } from "./CustomStyles-BUSJ8bZt.js";
|
|
5
|
+
import { d as S } from "./index-CNBqQrtK.js";
|
|
6
6
|
import C from "./Dropdown.js";
|
|
7
|
-
import { u as I } from "./emotion-element-5486c51c.browser.esm-
|
|
8
|
-
const w = y
|
|
7
|
+
import { u as I } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
+
const w = y((l, t) => {
|
|
9
9
|
const {
|
|
10
10
|
// options,
|
|
11
11
|
styles: n,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const O=require("react/jsx-runtime"),e=require("./index-
|
|
1
|
+
"use strict";const O=require("react/jsx-runtime"),e=require("./index-BIlhCoy2.cjs"),s=require("react"),g=require("./CustomStyles-Dlqxic2X.cjs"),h=require("./index-DaiUAQVF.cjs"),M=require("./DropdownLookup.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),r=s.forwardRef((n,t)=>{const{styles:p,debounceTime:l=180,isSearchable:u=!0,isClearable:y=!0,onInputChange:o,size:i="small",color:c="primary",className:a="",style:T={},...P}=n,b=S.useTheme(),m=s.useCallback(h.debounce((f,d)=>{o==null||o(f,d)},l));return O.jsx(M,{isMulti:!0,ref:t,styles:p||g.customStyles,size:i,color:c,theme:b,isSearchable:u,isClearable:y,onInputChange:m,className:a,style:T,...P})});r.propTypes={defaultOptions:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.array]),cacheOptions:e.PropTypes.any,loadOptions:e.PropTypes.func,styles:e.PropTypes.object,debounceTime:e.PropTypes.number,name:e.PropTypes.string,value:e.PropTypes.any,tabIndex:e.PropTypes.number,isSearchable:e.PropTypes.bool,isClearable:e.PropTypes.bool,isLoading:e.PropTypes.bool,isRtl:e.PropTypes.bool,isDisabled:e.PropTypes.bool,readOnly:e.PropTypes.bool,closeMenuOnSelect:e.PropTypes.bool,closeMenuOnScroll:e.PropTypes.oneOfType([e.PropTypes.bool,e.PropTypes.func]),escapeClearsValue:e.PropTypes.bool,filterOption:e.PropTypes.func,formatGroupLabel:e.PropTypes.func,formatOptionLabel:e.PropTypes.func,getOptionLabel:e.PropTypes.func,getOptionValue:e.PropTypes.func,hideSelectedOptions:e.PropTypes.bool,id:e.PropTypes.string,inputId:e.PropTypes.string,isOptionDisabled:e.PropTypes.func,isOptionSelected:e.PropTypes.func,loadingMessage:e.PropTypes.func,minMenuHeight:e.PropTypes.number,maxMenuHeight:e.PropTypes.number,menuPlacement:e.PropTypes.oneOf(["bottom","auto","top"]),menuPosition:e.PropTypes.oneOf(["absolute","fixed"]),menuShouldBlockScroll:e.PropTypes.bool,menuShouldScrollIntoView:e.PropTypes.bool,openMenuOnFocus:e.PropTypes.bool,openMenuOnClick:e.PropTypes.bool,autoFocus:e.PropTypes.bool,placeholder:e.PropTypes.any,noOptionsMessage:e.PropTypes.string,menuIsOpen:e.PropTypes.bool,components:e.PropTypes.object,defaultValue:e.PropTypes.string,defaultInputValue:e.PropTypes.string,defaultMenuIsOpen:e.PropTypes.bool,delimiter:e.PropTypes.string,onChange:e.PropTypes.func,onInputChange:e.PropTypes.func,onMenuOpen:e.PropTypes.func,onMenuClose:e.PropTypes.func,onFocus:e.PropTypes.func,onBlur:e.PropTypes.func,onKeyDown:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,color:e.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:e.PropTypes.oneOf(["small","medium","large"])};module.exports=r;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
-
import { P as e } from "./index-
|
|
3
|
-
import y,
|
|
4
|
-
import { a as M } from "./CustomStyles-
|
|
5
|
-
import { d as S } from "./index-
|
|
2
|
+
import { P as e } from "./index-BYnWp42a.js";
|
|
3
|
+
import { forwardRef as y, useCallback as h } from "react";
|
|
4
|
+
import { a as M } from "./CustomStyles-BUSJ8bZt.js";
|
|
5
|
+
import { d as S } from "./index-CNBqQrtK.js";
|
|
6
6
|
import C from "./DropdownLookup.js";
|
|
7
|
-
import { u as I } from "./emotion-element-5486c51c.browser.esm-
|
|
8
|
-
const T = y
|
|
7
|
+
import { u as I } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
|
|
8
|
+
const T = y((l, t) => {
|
|
9
9
|
const {
|
|
10
10
|
// defaultOptions,
|
|
11
11
|
// cacheOptions,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),r=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),r=require("react"),t=require("./index-BIlhCoy2.cjs"),I=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),S=require("./utils-DTAPpJXU.cjs"),b=require("./motion-Oud-wpUz.cjs"),M=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),q=require("./index-BP5r5zGN.cjs"),j=I.newStyled(b.motion.div)`
|
|
2
2
|
margin-left: 0.3rem;
|
|
3
3
|
padding-left: 0.3rem;
|
|
4
4
|
border-left: ${s=>`2px solid ${S.getColorRgbaValue(s.theme,"MenuItem",s.color,"focus","background")}`};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as w, Fragment as
|
|
2
|
-
import
|
|
3
|
-
import { P as t } from "./index-
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import { m as
|
|
7
|
-
import { u as
|
|
8
|
-
import { A as
|
|
9
|
-
const
|
|
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
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
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:
|
|
40
|
+
className: _ = "",
|
|
41
|
+
style: g = {},
|
|
42
|
+
color: r = "primary",
|
|
43
43
|
size: s = "small",
|
|
44
|
-
children:
|
|
45
|
-
...
|
|
46
|
-
} =
|
|
47
|
-
I(!a);
|
|
48
|
-
}, S = o.cloneElement(f, {
|
|
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
|
-
|
|
48
|
+
showNested: n,
|
|
49
|
+
toggleNested: () => {
|
|
50
|
+
I(!n);
|
|
51
|
+
},
|
|
52
|
+
color: r,
|
|
53
53
|
size: s
|
|
54
|
-
}),
|
|
55
|
-
var
|
|
56
|
-
return
|
|
57
|
-
color: e.props.color ? e.props.color :
|
|
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
58
|
size: s,
|
|
59
59
|
onItemSelected: c
|
|
60
60
|
}) : e;
|
|
61
61
|
});
|
|
62
|
-
return /* @__PURE__ */ w(
|
|
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:
|
|
67
|
+
...E,
|
|
68
|
+
theme: T,
|
|
69
|
+
color: r,
|
|
70
70
|
size: s,
|
|
71
|
-
className: "nested-item-lnc " +
|
|
72
|
-
style:
|
|
73
|
-
...
|
|
74
|
-
children:
|
|
71
|
+
className: "nested-item-lnc " + _,
|
|
72
|
+
style: g,
|
|
73
|
+
...N,
|
|
74
|
+
children: S
|
|
75
75
|
}
|
|
76
76
|
) })
|
|
77
77
|
] });
|
package/dist/NestedMenuItem.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const o=require("react/jsx-runtime"),r=require("react"),t=require("./index-
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),r=require("react"),t=require("./index-BIlhCoy2.cjs"),M=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),w=require("./utils-DTAPpJXU.cjs"),q=require("./motion-Oud-wpUz.cjs"),j=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),O=require("./index-BP5r5zGN.cjs"),$=M.newStyled(q.motion.div)`
|
|
2
2
|
${n=>n.tuckIn==!0&&`margin-left: ${n.tuckInSize};`}
|
|
3
3
|
${n=>n.tuckIn==!0&&`padding-left: ${n.tuckInSize};`}
|
|
4
4
|
${n=>n.tuckIn==!0&&`border-left: 2px solid ${w.getColorRgbaValue(n.theme,"MenuItem",n.color,"focus","background","backgroundOpacity")};`}
|
package/dist/NestedMenuItem.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { P as t } from "./index-
|
|
4
|
-
import { n as
|
|
5
|
-
import {
|
|
6
|
-
import { m as
|
|
7
|
-
import { u as
|
|
8
|
-
import { A as
|
|
9
|
-
const
|
|
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
|
+
import { P as t } from "./index-BYnWp42a.js";
|
|
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
|
-
b(!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
|
] });
|