@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.
Files changed (66) hide show
  1. package/dist/Avatar.cjs +1 -1
  2. package/dist/Avatar.js +5 -6
  3. package/dist/Button.cjs +2 -2
  4. package/dist/Button.js +0 -1
  5. package/dist/CheckBoxInput.js +2 -2
  6. package/dist/Chip.cjs +1 -1
  7. package/dist/Chip.js +10 -9
  8. package/dist/ColorInput.js +18 -18
  9. package/dist/ConfirmationForm.cjs +5 -5
  10. package/dist/ConfirmationForm.js +16 -16
  11. package/dist/DataView.cjs +1 -1
  12. package/dist/DataView.js +35 -35
  13. package/dist/DecimalInput.js +41 -41
  14. package/dist/DoubleRangeSlider.js +30 -30
  15. package/dist/DragAndDropFile.js +162 -162
  16. package/dist/DragDropFiles.js +29 -29
  17. package/dist/Drawer.js +46 -46
  18. package/dist/Dropdown.js +36 -36
  19. package/dist/DropdownItem.js +19 -19
  20. package/dist/DropdownLookup.js +34 -34
  21. package/dist/DropdownMenu.js +43 -43
  22. package/dist/FileInput.js +21 -21
  23. package/dist/FlexGridItem.js +13 -13
  24. package/dist/Grid.cjs +1 -2
  25. package/dist/Grid.js +36 -8
  26. package/dist/GridItem.cjs +1 -1
  27. package/dist/GridItem.js +27 -7
  28. package/dist/Icon.cjs +2 -2
  29. package/dist/Icon.js +5 -6
  30. package/dist/IconButton.cjs +5 -5
  31. package/dist/IconButton.js +24 -25
  32. package/dist/Kanban.js +446 -446
  33. package/dist/MenuItem.cjs +2 -2
  34. package/dist/MenuItem.js +59 -58
  35. package/dist/Modal.js +38 -38
  36. package/dist/MultiSelectDropdown.js +2 -2
  37. package/dist/MultiSelectDropdownLookup.js +2 -2
  38. package/dist/NestedDropdownItem.js +43 -43
  39. package/dist/NestedMenuItem.js +44 -44
  40. package/dist/NotificationContainer.cjs +2 -2
  41. package/dist/NotificationContainer.js +24 -23
  42. package/dist/NumberInput.js +12 -12
  43. package/dist/PageLayout.cjs +2 -2
  44. package/dist/PageLayout.js +18 -18
  45. package/dist/PasswordInput.js +40 -40
  46. package/dist/RadioGroup.js +11 -11
  47. package/dist/RadioInput.js +6 -6
  48. package/dist/RangeSlider.js +25 -25
  49. package/dist/SearchBar.js +73 -73
  50. package/dist/Sidebar.js +11 -11
  51. package/dist/SwipeableDrawer.js +16 -16
  52. package/dist/TabItem.js +25 -25
  53. package/dist/Tabs.js +32 -26
  54. package/dist/TextAreaInput.js +30 -30
  55. package/dist/TextInput.js +22 -22
  56. package/dist/ThemeProvider.js +83 -83
  57. package/dist/TimeInput.js +4 -4
  58. package/dist/Toggle.cjs +1 -1
  59. package/dist/Toggle.js +0 -1
  60. package/dist/TreeMenu.js +56 -56
  61. package/dist/style.css +1 -5
  62. package/package.json +1 -1
  63. package/bundle-visualization.html +0 -4842
  64. package/custom-addons/ThemeSelector.js +0 -111
  65. package/custom-addons/register.js +0 -16
  66. 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"),Y=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),M=require("./Icon.cjs"),l=require("./utils-DTAPpJXU.cjs"),G=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),H=Y.newStyled.div`
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:J=!1,onFocus:N=()=>{},onBlur:k=()=>{},onClick:C=()=>{},onKeyDown:v=()=>{},onMouseEnter:Q=()=>{},onMouseLeave:W=()=>{},toggleNested:u=()=>{},onItemSelected:w=()=>{},className:x="",style:_={},color:$="primary",iconProps:R,__TYPE__:X="MENU_ITEM",children:S,...A}=n,j={theme:G.useTheme(),color:$,style:_},y=f.useRef(),[q,g]=f.useState(r??!1);f.useEffect(()=>{g(r)},[r]);const O=e=>{m==!1&&(d&&u&&u(),w(e,T)),C(C)},D=e=>{g(!0),N(e)},V=e=>{r==null&&g(!1),k(e)},F=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=z(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=L(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},z=e=>{var o;return(o=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:o[0]},L=e=>{var o;return(o=Array.from(e.querySelectorAll(".menu-item-lnc")))==null?void 0:o.pop()},t=(e,o)=>{var i=" "+e.className+" ",U=" "+o+" ";return i.indexOf(U)!=-1};return c.jsx(c.Fragment,{children:c.jsxs(H,{ref:a||y,className:"menu-item-lnc "+(d?"nested-menu-item-lnc ":"")+(P?"spread-nested-item-lnc ":"")+x,...j,disabled:m,tabIndex:0,onKeyDown:F,onFocus:D,onBlur:V,onClick:O,isActive:q,showNested:P,...A,children:[E&&c.jsx(M,{icon:E,className:"menu-icon-lnc",...R}),c.jsx("div",{children:S}),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;
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 V, jsxs as G } from "react/jsx-runtime";
2
- import H, { useRef as J, useState as Q, useEffect as W } from "react";
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 X } from "./emotion-styled.browser.esm-BiK8DcgW.js";
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 Z, h as v } from "./utils-C52T57HO.js";
7
- import { u as I } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
- const ee = X.div`
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) => Z(n.theme, "MenuItem", n.size, "enabled")};
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 = H.forwardRef((n, a) => {
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: ne = !1,
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: le = () => {
99
+ onMouseEnter: oe = () => {
100
100
  },
101
- onMouseLeave: oe = () => {
101
+ onMouseLeave: se = () => {
102
102
  },
103
103
  toggleNested: f = () => {
104
104
  },
105
105
  onItemSelected: N = () => {
106
106
  },
107
107
  //----------------
108
- className: x = "",
109
- style: A = {},
110
- color: S = "primary",
111
- iconProps: T,
108
+ className: A = "",
109
+ style: S = {},
110
+ color: T = "primary",
111
+ size: _ = "small",
112
+ iconProps: O,
112
113
  __TYPE__: te = "MENU_ITEM",
113
- children: O,
114
- ...P
115
- } = n, D = { theme: I(), color: S, style: A }, u = J(), [F, y] = Q(c ?? !1);
116
- W(() => {
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 j = (e) => {
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
- c == null && y(!1), $(e);
123
+ y(!0), p(e);
125
124
  }, K = (e) => {
126
- 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)), _(e);
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 = z(e);
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 s = U(l.node);
134
- s && s.focus();
135
- } else e != null && e.parentElement && t(e.parentElement, "nested-item-lnc") && h(e.parentElement);
136
- } else e != null && e.parentElement && t(e.parentElement, "nested-item-lnc") && h(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 = L(e);
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 s = q(l.node);
144
- s && s.focus();
145
- } else e != null && e.parentElement && t(e.parentElement, "nested-item-lnc") && b(e.parentElement);
146
- } else e != null && e.parentElement && t(e.parentElement, "nested-item-lnc") && b(e.parentElement);
147
- }, z = (e) => {
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 (t(e, "menu-item-lnc"))
150
+ if (s(e, "menu-item-lnc"))
150
151
  return { node: e, type: "item" };
151
- if (t(e, "nested-item-lnc"))
152
+ if (s(e, "nested-item-lnc"))
152
153
  return { node: e, type: "nested" };
153
154
  }
154
155
  return null;
155
- }, L = (e) => {
156
+ }, U = (e) => {
156
157
  for (; e = e.previousSibling; ) {
157
- if (t(e, "menu-item-lnc"))
158
+ if (s(e, "menu-item-lnc"))
158
159
  return { node: e, type: "item" };
159
- if (t(e, "nested-item-lnc"))
160
+ if (s(e, "nested-item-lnc"))
160
161
  return { node: e, type: "nested" };
161
162
  }
162
163
  return null;
163
- }, U = (e) => {
164
+ }, q = (e) => {
164
165
  var l;
165
166
  return (l = Array.from(e.querySelectorAll(".menu-item-lnc"))) == null ? void 0 : l[0];
166
- }, q = (e) => {
167
+ }, Y = (e) => {
167
168
  var l;
168
169
  return (l = Array.from(e.querySelectorAll(".menu-item-lnc"))) == null ? void 0 : l.pop();
169
- }, t = (e, l) => {
170
- var s = " " + e.className + " ", Y = " " + l + " ";
171
- return s.indexOf(Y) != -1;
170
+ }, s = (e, l) => {
171
+ var t = " " + e.className + " ", V = " " + l + " ";
172
+ return t.indexOf(V) != -1;
172
173
  };
173
- return /* @__PURE__ */ m(V, { children: /* @__PURE__ */ G(
174
- ee,
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 " : "") + x,
178
- ...D,
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: K,
182
- onFocus: R,
183
- onBlur: B,
184
- onClick: j,
185
- isActive: F,
182
+ onKeyDown: R,
183
+ onFocus: B,
184
+ onBlur: K,
185
+ onClick: z,
186
+ isActive: j,
186
187
  showNested: M,
187
- ...P,
188
+ ...D,
188
189
  children: [
189
- E && /* @__PURE__ */ m(k, { icon: E, className: "menu-icon-lnc", ...T }),
190
- /* @__PURE__ */ m("div", { children: O }),
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 w, jsxs as S } from "react/jsx-runtime";
2
- import U, { useRef as W, useState as X, useImperativeHandle as V } from "react";
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 O } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
+ import { n as w } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
5
  import q from "./Icon.js";
6
- import { a as L } from "./utils-C52T57HO.js";
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 D } from "./index-BUChtubz.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)`
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,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, { useCallback as h } from "react";
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.forwardRef((l, t) => {
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, { useCallback as h } from "react";
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.forwardRef((l, t) => {
8
+ const T = y((l, t) => {
9
9
  const {
10
10
  // defaultOptions,
11
11
  // cacheOptions,
@@ -1,23 +1,23 @@
1
- import { jsxs as b, Fragment as l, jsx as m } from "react/jsx-runtime";
2
- import o, { useState as x } from "react";
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 P } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
- import { a as O } from "./utils-C52T57HO.js";
6
- import { m as h } from "./motion-ecIGZGwI.js";
7
- import { u as D } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
- import { A as j } from "./index-BUChtubz.js";
9
- const Y = P(h.div)`
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",
43
- size: a = "small",
44
- children: g,
45
- ...T
46
- } = r, N = D(), [s, I] = x(u), M = () => {
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: s,
51
- toggleNested: M,
52
- color: n,
53
- size: a
54
- }), w = 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,
58
- size: a,
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__ */ b(l, { children: [
63
- /* @__PURE__ */ m(l, { children: S }),
64
- /* @__PURE__ */ m(j, { children: s && /* @__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,
70
- size: a,
71
- className: "nested-item-lnc " + E,
72
- style: y,
73
- ...T,
74
- children: w
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
  ] });