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