@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.
Files changed (233) hide show
  1. package/dist/Accordion.cjs +1 -1
  2. package/dist/Accordion.js +55 -50
  3. package/dist/AccordionDetails.cjs +1 -1
  4. package/dist/AccordionDetails.js +15 -15
  5. package/dist/AccordionSummary.cjs +1 -1
  6. package/dist/AccordionSummary.js +11 -11
  7. package/dist/ActionsToolbar.cjs +2 -2
  8. package/dist/ActionsToolbar.js +16 -16
  9. package/dist/Alert.cjs +1 -1
  10. package/dist/Alert.js +23 -23
  11. package/dist/Avatar.cjs +2 -2
  12. package/dist/Avatar.js +18 -21
  13. package/dist/Badge.cjs +1 -1
  14. package/dist/Badge.js +21 -14
  15. package/dist/Breadcrumbs.cjs +1 -1
  16. package/dist/Breadcrumbs.js +28 -28
  17. package/dist/Button.cjs +2 -2
  18. package/dist/Button.js +21 -22
  19. package/dist/ButtonGroup.cjs +1 -1
  20. package/dist/ButtonGroup.js +10 -6
  21. package/dist/CheckBoxInput.cjs +1 -1
  22. package/dist/CheckBoxInput.js +6 -6
  23. package/dist/Chip.cjs +1 -1
  24. package/dist/Chip.js +9 -9
  25. package/dist/ColorInput.cjs +1 -1
  26. package/dist/ColorInput.js +20 -20
  27. package/dist/ConfirmationForm.cjs +1 -1
  28. package/dist/ConfirmationForm.js +58 -58
  29. package/dist/Content.cjs +1 -1
  30. package/dist/Content.js +8 -8
  31. package/dist/{CustomStyles-nfD3J1mi.js → CustomStyles-BUSJ8bZt.js} +5 -5
  32. package/dist/{CustomStyles-CqlCjTgU.cjs → CustomStyles-Dlqxic2X.cjs} +1 -1
  33. package/dist/DataView.cjs +1 -1
  34. package/dist/DataView.js +35 -35
  35. package/dist/DateInput.cjs +4 -4
  36. package/dist/DateInput.js +491 -491
  37. package/dist/DecimalInput.cjs +1 -1
  38. package/dist/DecimalInput.js +43 -43
  39. package/dist/DetailsView.cjs +4 -4
  40. package/dist/DetailsView.js +40 -40
  41. package/dist/DoubleRangeSlider.cjs +1 -1
  42. package/dist/DoubleRangeSlider.js +33 -33
  43. package/dist/DragAndDropFile.cjs +1 -1
  44. package/dist/DragAndDropFile.js +165 -165
  45. package/dist/DragDropFiles.cjs +1 -1
  46. package/dist/DragDropFiles.js +31 -31
  47. package/dist/Drawer.cjs +1 -1
  48. package/dist/Drawer.js +47 -47
  49. package/dist/Dropdown.cjs +1 -1
  50. package/dist/Dropdown.js +39 -39
  51. package/dist/DropdownItem.cjs +1 -1
  52. package/dist/DropdownItem.js +23 -23
  53. package/dist/DropdownLookup.cjs +1 -1
  54. package/dist/DropdownLookup.js +36 -36
  55. package/dist/DropdownMenu.cjs +7 -1
  56. package/dist/DropdownMenu.js +192 -10
  57. package/dist/EditableTable.cjs +1 -1
  58. package/dist/EditableTable.js +4 -4
  59. package/dist/FileInput.cjs +1 -1
  60. package/dist/FileInput.js +24 -24
  61. package/dist/FlexBox.cjs +1 -1
  62. package/dist/FlexBox.js +14 -14
  63. package/dist/FlexGrid.cjs +1 -1
  64. package/dist/FlexGrid.js +30 -30
  65. package/dist/FlexGridItem.cjs +1 -1
  66. package/dist/FlexGridItem.js +16 -16
  67. package/dist/Footer.cjs +1 -1
  68. package/dist/Footer.js +5 -5
  69. package/dist/FormField.cjs +1 -1
  70. package/dist/FormField.js +8 -9
  71. package/dist/FormView.cjs +1 -1
  72. package/dist/FormView.js +31 -31
  73. package/dist/Grid.cjs +2 -3
  74. package/dist/Grid.js +38 -10
  75. package/dist/GridItem.cjs +2 -2
  76. package/dist/GridItem.js +29 -9
  77. package/dist/Header.cjs +1 -1
  78. package/dist/Header.js +7 -7
  79. package/dist/Icon.cjs +2 -2
  80. package/dist/Icon.js +35 -13
  81. package/dist/IconButton.cjs +1 -1
  82. package/dist/IconButton.js +51 -52
  83. package/dist/Kanban.cjs +12 -12
  84. package/dist/Kanban.js +891 -879
  85. package/dist/KanbanActionsToolbar.cjs +2 -2
  86. package/dist/KanbanActionsToolbar.js +28 -28
  87. package/dist/{KanbanCard-D9OhU8C6.js → KanbanCard-CHZ_C9kk.js} +50 -50
  88. package/dist/KanbanCard-DV3VnSUi.cjs +30 -0
  89. package/dist/KanbanCard.cjs +1 -1
  90. package/dist/KanbanCard.js +5 -5
  91. package/dist/KanbanFooter.cjs +1 -1
  92. package/dist/KanbanFooter.js +40 -40
  93. package/dist/KanbanHeader.cjs +2 -2
  94. package/dist/KanbanHeader.js +46 -46
  95. package/dist/KanbanView.cjs +1 -1
  96. package/dist/KanbanView.js +27 -27
  97. package/dist/Link.cjs +1 -1
  98. package/dist/Link.js +9 -9
  99. package/dist/MenuItem.cjs +1 -1
  100. package/dist/MenuItem.js +39 -39
  101. package/dist/Modal.cjs +1 -1
  102. package/dist/Modal.js +42 -42
  103. package/dist/MultiSelectDropdown.cjs +1 -1
  104. package/dist/MultiSelectDropdown.js +6 -6
  105. package/dist/MultiSelectDropdownLookup.cjs +1 -1
  106. package/dist/MultiSelectDropdownLookup.js +6 -6
  107. package/dist/NestedDropdownItem.cjs +1 -1
  108. package/dist/NestedDropdownItem.js +40 -40
  109. package/dist/NestedMenuItem.cjs +1 -1
  110. package/dist/NestedMenuItem.js +45 -45
  111. package/dist/Notification.cjs +1 -83
  112. package/dist/Notification.js +3 -1077
  113. package/dist/NotificationContainer.cjs +37 -0
  114. package/dist/NotificationContainer.js +162 -0
  115. package/dist/NotificationMessage.cjs +47 -0
  116. package/dist/NotificationMessage.js +133 -0
  117. package/dist/NumberInput.cjs +1 -1
  118. package/dist/NumberInput.js +17 -17
  119. package/dist/PageLayout.cjs +1 -1
  120. package/dist/PageLayout.js +32 -32
  121. package/dist/Pagination.cjs +12 -0
  122. package/dist/Pagination.js +248 -0
  123. package/dist/PasswordInput.cjs +1 -1
  124. package/dist/PasswordInput.js +33 -33
  125. package/dist/Popover.cjs +1 -0
  126. package/dist/Popover.js +36 -0
  127. package/dist/PopoverClose.cjs +1 -0
  128. package/dist/PopoverClose.js +15 -0
  129. package/dist/PopoverContent.cjs +10 -0
  130. package/dist/PopoverContent.js +68 -0
  131. package/dist/PopoverContext.cjs +1 -0
  132. package/dist/PopoverContext.js +5 -0
  133. package/dist/PopoverDescription.cjs +1 -0
  134. package/dist/PopoverDescription.js +16 -0
  135. package/dist/PopoverHeading.cjs +1 -0
  136. package/dist/PopoverHeading.js +16 -0
  137. package/dist/PopoverTrigger.cjs +1 -0
  138. package/dist/PopoverTrigger.js +38 -0
  139. package/dist/ProgressBar.cjs +1 -1
  140. package/dist/ProgressBar.js +35 -24
  141. package/dist/RadioGroup.cjs +1 -1
  142. package/dist/RadioGroup.js +13 -13
  143. package/dist/RadioInput.cjs +1 -1
  144. package/dist/RadioInput.js +10 -10
  145. package/dist/RangeSlider.cjs +1 -1
  146. package/dist/RangeSlider.js +27 -27
  147. package/dist/SearchBar.cjs +1 -1
  148. package/dist/SearchBar.js +77 -77
  149. package/dist/Separator.cjs +1 -1
  150. package/dist/Separator.js +9 -9
  151. package/dist/Sidebar.cjs +1 -1
  152. package/dist/Sidebar.js +13 -13
  153. package/dist/Spinner.cjs +1 -1
  154. package/dist/Spinner.js +25 -20
  155. package/dist/Surface.cjs +2 -2
  156. package/dist/Surface.js +14 -15
  157. package/dist/SwipeableDrawer.cjs +1 -1
  158. package/dist/SwipeableDrawer.js +18 -18
  159. package/dist/TabItem.cjs +26 -0
  160. package/dist/TabItem.js +210 -0
  161. package/dist/Table.cjs +20 -20
  162. package/dist/Table.js +13 -12
  163. package/dist/TableView.cjs +8 -1
  164. package/dist/TableView.js +238 -9
  165. package/dist/Tabs.cjs +1 -1
  166. package/dist/Tabs.js +33 -27
  167. package/dist/TextAreaInput.cjs +1 -1
  168. package/dist/TextAreaInput.js +35 -35
  169. package/dist/TextInput.cjs +1 -1
  170. package/dist/TextInput.js +24 -24
  171. package/dist/ThemeProvider.cjs +1 -1
  172. package/dist/ThemeProvider.js +85 -85
  173. package/dist/TimeInput.cjs +1 -1
  174. package/dist/TimeInput.js +13 -13
  175. package/dist/Toggle.cjs +1 -1
  176. package/dist/Toggle.js +4 -5
  177. package/dist/TreeMenu.cjs +1 -1
  178. package/dist/TreeMenu.js +57 -57
  179. package/dist/TreeMenuSeparator.cjs +3 -3
  180. package/dist/TreeMenuSeparator.js +11 -11
  181. package/dist/UploadedFile.cjs +1 -1
  182. package/dist/UploadedFile.js +29 -29
  183. package/dist/_commonjsHelpers-DKOUU3wS.cjs +1 -0
  184. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  185. package/dist/{defineProperty-BHpTtkhC.js → defineProperty-B5pLF6px.js} +8 -8
  186. package/dist/{emotion-element-5486c51c.browser.esm-CSejtOeT.js → emotion-element-5486c51c.browser.esm-Bb4VkP8U.js} +4 -4
  187. package/dist/{emotion-is-prop-valid.esm-BzFBwmJz.js → emotion-is-prop-valid.esm-DkbeH1Xy.js} +1 -1
  188. package/dist/{emotion-react.browser.esm-OWM-uG8Q.js → emotion-react.browser.esm-CN-s34fZ.js} +6 -6
  189. package/dist/{emotion-react.browser.esm-DQBL7Wls.cjs → emotion-react.browser.esm-D7h2t2Bz.cjs} +1 -1
  190. package/dist/{emotion-styled.browser.esm-BZSYYThs.js → emotion-styled.browser.esm-BiK8DcgW.js} +12 -12
  191. package/dist/floating-ui.react.esm-72DKnou_.js +1198 -0
  192. package/dist/floating-ui.react.esm-C4vrBVJU.cjs +4 -0
  193. package/dist/{hoist-non-react-statics.cjs-Drf1aBlk.js → hoist-non-react-statics.cjs-CAHiRNzQ.js} +1 -1
  194. package/dist/{hoist-non-react-statics.cjs-B8r9S_ak.cjs → hoist-non-react-statics.cjs-Dr-ytKVG.cjs} +3 -3
  195. package/dist/{index-CZJEA84h.js → index--Kmch3aI.js} +1 -1
  196. package/dist/index-BIlhCoy2.cjs +20 -0
  197. package/dist/{index-BLQWNy78.js → index-BUChtubz.js} +4 -4
  198. package/dist/{index-Ds9PUTwb.js → index-BYnWp42a.js} +208 -213
  199. package/dist/{index-D5vEbKUT.js → index-CNBqQrtK.js} +1 -1
  200. package/dist/{index-IO9v6o0I.cjs → index-CSXL784P.cjs} +2 -2
  201. package/dist/{index-C29T0m2a.cjs → index-Ct1N7fF4.cjs} +1 -1
  202. package/dist/{index-BklgDeu4.js → index-Cu0xwYjD.js} +1 -1
  203. package/dist/{index-Cdkz-XH-.js → index-CvebWhtp.js} +1 -1
  204. package/dist/index-DAOBjHnD.cjs +1 -0
  205. package/dist/index-DBXXH_TD.cjs +1 -0
  206. package/dist/{index-B_da1uvD.js → index-DLVVKJXD.js} +1 -1
  207. package/dist/index-DaiUAQVF.cjs +1 -0
  208. package/dist/index.cjs +1 -26
  209. package/dist/index.js +180 -376
  210. package/dist/{motion-CtkUpWEn.js → motion-ecIGZGwI.js} +1 -1
  211. package/dist/react-toastify.esm-CkXGwKXL.js +798 -0
  212. package/dist/react-toastify.esm-Dqcb4SQT.cjs +1 -0
  213. package/dist/{setPrototypeOf-a891FLQJ.js → setPrototypeOf-CttqfWo1.js} +2 -2
  214. package/dist/style.css +1 -5
  215. package/dist/{tslib.es6-ZNVz5r_T.js → tslib.es6-DQ-SzcmG.js} +5 -5
  216. package/dist/usePopover.cjs +1 -0
  217. package/dist/usePopover.js +44 -0
  218. package/dist/{utils-DEke8iwo.js → utils-C52T57HO.js} +73 -73
  219. package/dist/{utils-hdRGTsQ7.cjs → utils-DTAPpJXU.cjs} +1 -1
  220. package/package.json +17 -5
  221. package/vite.config.js +16 -0
  222. package/custom-addons/ThemeSelector.js +0 -111
  223. package/custom-addons/register.js +0 -16
  224. package/custom-addons/theme-selector.css +0 -17
  225. package/dist/DropdownMenu-B6qr13ik.cjs +0 -19
  226. package/dist/DropdownMenu-DZi3TJ8Q.js +0 -1547
  227. package/dist/KanbanCard-ConTmu3w.cjs +0 -30
  228. package/dist/TableView-Cj5_fbSR.js +0 -481
  229. package/dist/TableView-D8ex512p.cjs +0 -19
  230. package/dist/index-BjdOz5Ok.cjs +0 -1
  231. package/dist/index-DXnSjbfJ.cjs +0 -20
  232. package/dist/index-Dzkd2i4n.cjs +0 -1
  233. package/dist/index-P-naJISQ.cjs +0 -1
package/dist/Modal.js CHANGED
@@ -1,14 +1,14 @@
1
- import { jsx as t, Fragment as w, jsxs as S } from "react/jsx-runtime";
2
- import U, { useRef as W, useState as X, useImperativeHandle as V } from "react";
3
- import { P as o } from "./index-Ds9PUTwb.js";
4
- import { n as O } from "./emotion-styled.browser.esm-BZSYYThs.js";
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 { b as L } from "./utils-DEke8iwo.js";
7
- import { r as J } from "./index-CZJEA84h.js";
8
- import { m as z } from "./motion-CtkUpWEn.js";
9
- import { u as K } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
10
- import { A as D } from "./index-BLQWNy78.js";
11
- const u = "5rem", h = "3.8rem", a = "1.5rem", Q = (e, r, n) => r && n ? e == "FULL" ? `calc(100dvh - ${h} - ${u})` : `calc(100dvh - ${h} - ${u} - ${a})` : r ? e == "FULL" ? `calc(100dvh - ${h})` : `calc(100dvh - ${h} - ${a})` : n ? e == "FULL" ? `calc(100dvh - ${u})` : `calc(100dvh - ${u} - ${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 = O(z.div)`
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 = O(z.div)`
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) => L(e.theme, "Modal", "default", "enabled", "bg")};
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: ${u};
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 = O.div`
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) => L(
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) => L(
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) => L(
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 = O(z.div)`
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.forwardRef((e, r) => {
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, R] = X(c);
157
- let E = { theme: K(), size: y, zIndex: C, className: v, style: _ };
158
- const j = (f) => {
159
- f.target === f.currentTarget && $ && b(f);
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
- G();
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 G = (f) => {
173
- R(!0), g(f);
174
- }, b = (f) => {
175
- R(!1), x(f);
172
+ const _ = (u) => {
173
+ E(!0), g(u);
174
+ }, b = (u) => {
175
+ E(!1), x(u);
176
176
  };
177
- return /* @__PURE__ */ t(w, { children: N && /* @__PURE__ */ t(w, { children: n ? /* @__PURE__ */ t(w, { children: J.createPortal(
177
+ return /* @__PURE__ */ t(L, { children: N && /* @__PURE__ */ t(L, { children: n ? /* @__PURE__ */ t(L, { children: J.createPortal(
178
178
  /* @__PURE__ */ t(
179
- A,
179
+ H,
180
180
  {
181
181
  ref: I,
182
182
  overlay: s,
183
183
  scrollOverlay: i,
184
- onClickOutsideModal: j,
184
+ onClickOutsideModal: A,
185
185
  overlayColor: m,
186
186
  overlayProps: M,
187
187
  overlayAnimation: k,
188
188
  modalAnimation: F,
189
- themeProps: E,
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
- A,
201
+ H,
202
202
  {
203
203
  ref: I,
204
204
  overlay: s,
205
205
  scrollOverlay: i,
206
- onClickOutsideModal: j,
206
+ onClickOutsideModal: A,
207
207
  overlayColor: m,
208
208
  overlayProps: M,
209
209
  overlayAnimation: k,
210
210
  modalAnimation: F,
211
- themeProps: E,
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
- }), A = U.forwardRef(
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(D, { children: e ? /* @__PURE__ */ S(w, { children: [
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
- H,
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
- H,
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
- ), H = U.forwardRef(
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(D, { children: /* @__PURE__ */ S(
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-DXnSjbfJ.cjs"),s=require("react"),O=require("./CustomStyles-CqlCjTgU.cjs"),h=require("./index-BjdOz5Ok.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
+ "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-Ds9PUTwb.js";
3
- import y, { useCallback as h } from "react";
4
- import { a as M } from "./CustomStyles-nfD3J1mi.js";
5
- import { d as S } from "./index-D5vEbKUT.js";
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-CSejtOeT.js";
8
- const w = y.forwardRef((l, t) => {
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-DXnSjbfJ.cjs"),s=require("react"),g=require("./CustomStyles-CqlCjTgU.cjs"),h=require("./index-BjdOz5Ok.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
+ "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-Ds9PUTwb.js";
3
- import y, { useCallback as h } from "react";
4
- import { a as M } from "./CustomStyles-nfD3J1mi.js";
5
- import { d as S } from "./index-D5vEbKUT.js";
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-CSejtOeT.js";
8
- const T = y.forwardRef((l, t) => {
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-DXnSjbfJ.cjs"),I=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),S=require("./utils-hdRGTsQ7.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)`
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 l, jsx as m } from "react/jsx-runtime";
2
- import o, { useState as x } from "react";
3
- import { P as t } from "./index-Ds9PUTwb.js";
4
- import { n as P } from "./emotion-styled.browser.esm-BZSYYThs.js";
5
- import { b as O } from "./utils-DEke8iwo.js";
6
- import { m as h } from "./motion-CtkUpWEn.js";
7
- import { u as D } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
8
- import { A as j } from "./index-BLQWNy78.js";
9
- const Y = P(h.div)`
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: ${(r) => `2px solid ${O(
13
- r.theme,
12
+ border-left: ${(o) => `2px solid ${D(
13
+ o.theme,
14
14
  "MenuItem",
15
- r.color,
15
+ o.color,
16
16
  "focus",
17
17
  "background"
18
18
  )}`};
19
19
  border-radius: 2px;
20
- `, d = o.forwardRef((r, C) => {
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: E = "",
41
- style: y = {},
42
- color: n = "primary",
40
+ className: _ = "",
41
+ style: g = {},
42
+ color: r = "primary",
43
43
  size: s = "small",
44
- children: g,
45
- ...T
46
- } = r, N = D(), [a, I] = x(u), M = () => {
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: a,
51
- toggleNested: M,
52
- color: n,
48
+ showNested: n,
49
+ toggleNested: () => {
50
+ I(!n);
51
+ },
52
+ color: r,
53
53
  size: s
54
- }), b = o.Children.map(g, (e, z) => {
55
- var i, p;
56
- return o.isValidElement(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" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "NESTED_ITEM") ? o.cloneElement(e, {
57
- color: e.props.color ? e.props.color : n,
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(l, { children: [
63
- /* @__PURE__ */ m(l, { children: S }),
64
- /* @__PURE__ */ m(j, { children: a && /* @__PURE__ */ m(
65
- Y,
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: N,
69
- color: n,
67
+ ...E,
68
+ theme: T,
69
+ color: r,
70
70
  size: s,
71
- className: "nested-item-lnc " + E,
72
- style: y,
73
- ...T,
74
- children: b
71
+ className: "nested-item-lnc " + _,
72
+ style: g,
73
+ ...N,
74
+ children: S
75
75
  }
76
76
  ) })
77
77
  ] });
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("react/jsx-runtime"),r=require("react"),t=require("./index-DXnSjbfJ.cjs"),M=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),w=require("./utils-hdRGTsQ7.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)`
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")};`}
@@ -1,15 +1,15 @@
1
- import { jsxs as O, Fragment as u, jsx as i } from "react/jsx-runtime";
2
- import n, { useState as P } from "react";
3
- import { P as t } from "./index-Ds9PUTwb.js";
4
- import { n as h } from "./emotion-styled.browser.esm-BZSYYThs.js";
5
- import { b as z } from "./utils-DEke8iwo.js";
6
- import { m as $ } from "./motion-CtkUpWEn.js";
7
- import { u as j } from "./emotion-element-5486c51c.browser.esm-CSejtOeT.js";
8
- import { A as D } from "./index-BLQWNy78.js";
9
- const Y = h($.div)`
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 ${z(
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 = n.forwardRef((o, p) => {
21
+ `, c = O((o, p) => {
22
22
  const {
23
23
  item: d,
24
24
  //------------------
25
25
  onItemSelected: f = () => {
26
26
  },
27
27
  //--------------------
28
- defaultOpen: _ = !1,
29
- tuckIn: E = !0,
30
- tuckInSize: y = "0.3rem",
31
- animation: g = {
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: T = {},
44
- color: a = "primary",
45
- size: s = "small",
46
- __TYPE__: C = "NESTED_ITEM",
47
- children: N,
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 = j(), [r, b] = P(_), M = () => {
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: r,
54
- toggleNested: M,
55
- color: a,
56
- size: s
57
- }), x = n.Children.map(N, (e, R) => {
58
- var m, l;
59
- if (n.isValidElement(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" || ((l = e == null ? void 0 : e.type) == null ? void 0 : l.displayName) === "NESTED_ITEM"))
60
- return n.cloneElement(e, {
61
- color: e.props.color ? e.props.color : a,
62
- size: s,
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__ */ O(u, { children: [
67
- /* @__PURE__ */ i(u, { children: w }),
68
- /* @__PURE__ */ i(D, { children: r && /* @__PURE__ */ i(
69
- Y,
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: E,
73
- tuckInSize: y,
74
- color: a,
75
- size: s,
72
+ tuckIn: y,
73
+ tuckInSize: E,
74
+ color: r,
75
+ size: a,
76
76
  className: "nested-item-lnc " + I,
77
- style: T,
77
+ style: N,
78
78
  ref: p,
79
- show: r,
80
- ...g,
79
+ show: n,
80
+ ..._,
81
81
  ...S,
82
- children: x
82
+ children: w
83
83
  }
84
84
  ) })
85
85
  ] });