@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,30 +1,30 @@
1
- import { jsx as s, jsxs as B } from "react/jsx-runtime";
2
- import n, { useRef as p, useState as K } from "react";
1
+ import { jsx as r, jsxs as B } from "react/jsx-runtime";
2
+ import { forwardRef as K, useRef as l, useState as L, Children as U, isValidElement as Y, cloneElement as f } from "react";
3
3
  import { P as o } from "./index-BYnWp42a.js";
4
- import { n as T } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
- import L from "./Button.js";
6
- import { a as U } from "./utils-C52T57HO.js";
7
- import { useTheme as Y } from "./ThemeProvider.js";
8
- import $ from "./Popover.js";
9
- import q from "./PopoverTrigger.js";
10
- import A from "./PopoverContent.js";
11
- import { m as G } from "./motion-ecIGZGwI.js";
12
- const H = T.div``, J = T(G.div)`
4
+ import { n as b } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
+ import $ from "./Button.js";
6
+ import { a as q } from "./utils-C52T57HO.js";
7
+ import { useTheme as A } from "./ThemeProvider.js";
8
+ import G from "./Popover.js";
9
+ import H from "./PopoverTrigger.js";
10
+ import J from "./PopoverContent.js";
11
+ import { m as Q } from "./motion-ecIGZGwI.js";
12
+ const W = b.div``, X = b(Q.div)`
13
13
  gap: 0.25rem;
14
14
  display: flex;
15
15
  flex-direction: column;
16
16
  ${(t) => t.widthfitcontent == !1 && "min-width: 12.5rem"};
17
- background-color: ${(t) => U(
17
+ background-color: ${(t) => q(
18
18
  t.theme,
19
19
  "Dropdown",
20
20
  t.color,
21
21
  "enabled",
22
22
  "background"
23
23
  )};
24
- `, Q = n.forwardRef((t, a) => {
24
+ `, Z = K((t, s) => {
25
25
  const {
26
- control: l,
27
- offsetValue: b = 9,
26
+ control: a,
27
+ offsetValue: _ = 9,
28
28
  placement: v,
29
29
  widthFitContent: M = !1,
30
30
  closeOnItemSelect: P = !0,
@@ -57,44 +57,44 @@ const H = T.div``, J = T(G.div)`
57
57
  }
58
58
  },
59
59
  className: x = "",
60
- style: W = {},
61
- color: r = "primary",
60
+ style: ee = {},
61
+ color: n = "primary",
62
62
  size: i = "small",
63
63
  contentClassName: D = "",
64
- popoverProps: X,
64
+ popoverProps: oe,
65
65
  children: R,
66
66
  ...k
67
67
  } = t;
68
- p();
69
- const z = p(), { theme: F } = Y(), C = p(), I = p(), [V, c] = K(!1), S = (e, f, m) => {
70
- O(e, f, m), P == !0 && c(!1);
71
- }, j = n.Children.map(R, (e, f) => {
72
- var m, _;
73
- return 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" || ((_ = e == null ? void 0 : e.type) == null ? void 0 : _.displayName) === "NESTED_ITEM") ? f == 0 ? (e.props.ref && (I.current = a), n.cloneElement(e, {
74
- ref: a || I,
68
+ l();
69
+ const z = l(), { theme: F } = A(), C = l(), I = l(), [V, m] = L(!1), S = (e, c, p) => {
70
+ O(e, c, p), P == !0 && m(!1);
71
+ }, j = U.map(R, (e, c) => {
72
+ var p, T;
73
+ return Y(e) && (e.props.__TYPE__ == "MENU_ITEM" || ((p = e == null ? void 0 : e.type) == null ? void 0 : p.displayName) === "MENU_ITEM" || e.props.__TYPE__ == "NESTED_ITEM" || ((T = e == null ? void 0 : e.type) == null ? void 0 : T.displayName) === "NESTED_ITEM") ? c == 0 ? (e.props.ref && (I.current = s), f(e, {
74
+ ref: s || I,
75
75
  //needed to focus on navigation
76
- color: e.props.color ? e.props.color : r,
76
+ color: e.props.color ? e.props.color : n,
77
77
  size: i,
78
78
  onItemSelected: S,
79
79
  animation: h
80
- })) : n.cloneElement(e, {
81
- color: e.props.color ? e.props.color : r,
80
+ })) : f(e, {
81
+ color: e.props.color ? e.props.color : n,
82
82
  size: i,
83
83
  onItemSelected: S
84
84
  }) : e;
85
85
  });
86
- return /* @__PURE__ */ s(H, { ref: a, className: x, ...k, children: /* @__PURE__ */ B(
87
- $,
86
+ return /* @__PURE__ */ r(W, { ref: s, className: x, ...k, children: /* @__PURE__ */ B(
87
+ G,
88
88
  {
89
89
  open: V,
90
- onOpenChange: c,
90
+ onOpenChange: m,
91
91
  placement: v,
92
- offsetValue: b,
92
+ offsetValue: _,
93
93
  children: [
94
- /* @__PURE__ */ s(q, { onClick: () => c((e) => !e), children: typeof l == "string" || l instanceof String ? /* @__PURE__ */ s(
95
- L,
94
+ /* @__PURE__ */ r(H, { onClick: () => m((e) => !e), children: typeof a == "string" || a instanceof String ? /* @__PURE__ */ r(
95
+ $,
96
96
  {
97
- text: l,
97
+ text: a,
98
98
  onClick: g,
99
99
  onMouseEnter: E,
100
100
  onMouseLeave: w,
@@ -103,11 +103,11 @@ const H = T.div``, J = T(G.div)`
103
103
  ref: C,
104
104
  onKeyDown: y,
105
105
  trailingIcon: "angle-down",
106
- color: r,
106
+ color: n,
107
107
  size: i
108
108
  }
109
- ) : n.cloneElement(l, {
110
- color: r,
109
+ ) : f(a, {
110
+ color: n,
111
111
  size: i,
112
112
  ref: C,
113
113
  onClick: g,
@@ -117,12 +117,12 @@ const H = T.div``, J = T(G.div)`
117
117
  onFocus: u,
118
118
  onKeyDown: y
119
119
  }) }),
120
- /* @__PURE__ */ s(A, { zIndex: N, children: /* @__PURE__ */ s(
121
- J,
120
+ /* @__PURE__ */ r(J, { zIndex: N, children: /* @__PURE__ */ r(
121
+ X,
122
122
  {
123
123
  ref: z,
124
124
  widthfitcontent: M,
125
- color: r,
125
+ color: n,
126
126
  theme: F,
127
127
  className: D,
128
128
  children: j
@@ -132,7 +132,7 @@ const H = T.div``, J = T(G.div)`
132
132
  }
133
133
  ) });
134
134
  });
135
- Q.propTypes = {
135
+ Z.propTypes = {
136
136
  control: o.oneOfType([o.string, o.element]),
137
137
  /**
138
138
  * Menu offset from the control
@@ -190,5 +190,5 @@ Q.propTypes = {
190
190
  popoverProps: o.any
191
191
  };
192
192
  export {
193
- Q as default
193
+ Z as default
194
194
  };
package/dist/FileInput.js CHANGED
@@ -1,10 +1,10 @@
1
- import { jsxs as R, jsx as m } from "react/jsx-runtime";
2
- import S, { useState as g } from "react";
1
+ import { jsxs as S, jsx as m } from "react/jsx-runtime";
2
+ import { forwardRef as R, useState as g } from "react";
3
3
  import { n as c } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
4
  import { P as t } from "./index-BYnWp42a.js";
5
5
  import { d as y, a as r, e as V, g as x, h as p } from "./utils-C52T57HO.js";
6
- import { u as _ } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
- const B = c.label`
6
+ import { u as B } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
+ const D = c.label`
8
8
  display: inline-flex;
9
9
  box-sizing: border-box;
10
10
  width: 100%;
@@ -19,14 +19,14 @@ const B = c.label`
19
19
  )};
20
20
  border-radius: 8px;
21
21
  ${(e) => e.focused === !0 && e.readOnly !== !0 ? V(e.theme) : ""}
22
- `, D = c.input`
22
+ `, L = c.input`
23
23
  width: 0.1px;
24
24
  height: 0.1px;
25
25
  opacity: 0;
26
26
  overflow: hidden;
27
27
  position: absolute;
28
28
  z-index: -1;
29
- `, L = c.div`
29
+ `, U = c.div`
30
30
  display: flex;
31
31
  align-items: center;
32
32
  white-space: nowrap;
@@ -58,7 +58,7 @@ const B = c.label`
58
58
  border-radius: 8px 0 0 8px;
59
59
 
60
60
  ${(e) => e.disabled === !0 ? p(e.theme) : ""}
61
- `, U = c.input`
61
+ `, W = c.input`
62
62
  width: 100%;
63
63
  appearance: none;
64
64
  outline: none;
@@ -98,7 +98,7 @@ const B = c.label`
98
98
  )};
99
99
 
100
100
  ${(e) => e.disabled === !0 ? p(e.theme) : ""}
101
- `, W = S.forwardRef((e, $) => {
101
+ `, q = R((e, $) => {
102
102
  const {
103
103
  className: I = "",
104
104
  style: C = {},
@@ -106,15 +106,15 @@ const B = c.label`
106
106
  onFocus: d,
107
107
  onBlur: s,
108
108
  disabled: l,
109
- readOnly: f,
109
+ readOnly: b,
110
110
  multiple: w = !1,
111
111
  accept: z = "",
112
112
  label: O = "Choose File",
113
113
  color: F = "primary",
114
114
  size: k = "small",
115
115
  ...v
116
- } = e, T = _(), [o, N] = g([]), [b, h] = g(!1);
117
- var u = { theme: T, size: k, color: F, disabled: l, focused: b };
116
+ } = e, T = B(), [o, N] = g([]), [f, h] = g(!1);
117
+ var u = { theme: T, size: k, color: F, disabled: l, focused: f };
118
118
  const j = () => {
119
119
  if (o.length > 0) {
120
120
  var n = "";
@@ -124,23 +124,23 @@ const B = c.label`
124
124
  }
125
125
  return "";
126
126
  };
127
- return /* @__PURE__ */ R(
128
- B,
127
+ return /* @__PURE__ */ S(
128
+ D,
129
129
  {
130
130
  ...u,
131
131
  className: I,
132
132
  style: C,
133
- focused: b,
134
- readOnly: f,
133
+ focused: f,
134
+ readOnly: b,
135
135
  children: [
136
136
  /* @__PURE__ */ m(
137
- D,
137
+ L,
138
138
  {
139
139
  ...u,
140
140
  accept: z,
141
141
  multiple: w,
142
142
  ref: $,
143
- onChange: l || f ? () => {
143
+ onChange: l || b ? () => {
144
144
  } : (n) => {
145
145
  var a = [];
146
146
  if (n.target.files && n.target.files.length > 0)
@@ -159,9 +159,9 @@ const B = c.label`
159
159
  ...v
160
160
  }
161
161
  ),
162
- /* @__PURE__ */ m(L, { ...u, children: O }),
162
+ /* @__PURE__ */ m(U, { ...u, children: O }),
163
163
  /* @__PURE__ */ m(
164
- U,
164
+ W,
165
165
  {
166
166
  tabIndex: -1,
167
167
  ...u,
@@ -174,7 +174,7 @@ const B = c.label`
174
174
  }
175
175
  );
176
176
  });
177
- W.propTypes = {
177
+ q.propTypes = {
178
178
  id: t.any,
179
179
  disabled: t.bool,
180
180
  readOnly: t.bool,
@@ -202,5 +202,5 @@ W.propTypes = {
202
202
  ])
203
203
  };
204
204
  export {
205
- W as default
205
+ q as default
206
206
  };
@@ -1,35 +1,35 @@
1
1
  import { jsx as y } from "react/jsx-runtime";
2
- import N, { useState as S, useEffect as b } from "react";
2
+ import { forwardRef as N, useState as S, useEffect as b } from "react";
3
3
  import { P as i } from "./index-BYnWp42a.js";
4
4
  import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
5
  import { u as M } from "./utils-C52T57HO.js";
6
- const R = I.div`
6
+ const W = I.div`
7
7
  ${(t) => t.width > 0 ? "" : "flex: 1;"}
8
8
  min-width: ${(t) => 100 / t.columns}%;
9
9
  width: ${(t) => t.width}%;
10
10
  padding: ${(t) => t.rowGap}px ${(t) => t.columnGap}px;
11
11
  overflow-wrap: break-word;
12
- `, W = N.forwardRef((t, x) => {
12
+ `, j = N((t, x) => {
13
13
  const {
14
14
  XS: r,
15
15
  S: s,
16
16
  M: a,
17
- L: c,
17
+ L: n,
18
18
  XL: d,
19
19
  col: u,
20
20
  columns: e,
21
21
  spacing: p,
22
- rowSpacing: n,
22
+ rowSpacing: c,
23
23
  columnSpacing: m,
24
24
  children: k
25
25
  } = t, l = M(), [L, X] = S(0), [g, f] = S(0), [$, w] = S(0);
26
26
  b(() => {
27
27
  h();
28
- }, [e, r, s, a, c, d, u]), b(() => {
28
+ }, [e, r, s, a, n, d, u]), b(() => {
29
29
  h(), G();
30
30
  }, [l]), b(() => {
31
31
  G();
32
- }, [p, n, m]);
32
+ }, [p, c, m]);
33
33
  const h = () => {
34
34
  let o = u ? 100 / (e / u) : 0;
35
35
  switch (l) {
@@ -43,18 +43,18 @@ const R = I.div`
43
43
  o = a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
44
44
  break;
45
45
  case "L":
46
- o = c ? 100 / (e / c) : a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
46
+ o = n ? 100 / (e / n) : a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
47
47
  break;
48
48
  case "XL":
49
- o = d ? 100 / (e / d) : c ? 100 / (e / c) : a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
49
+ o = d ? 100 / (e / d) : n ? 100 / (e / n) : a ? 100 / (e / a) : s ? 100 / (e / s) : r ? 100 / (e / r) : o;
50
50
  break;
51
51
  }
52
52
  X(o);
53
53
  }, G = () => {
54
- p ? (f(p), w(p)) : (n && (isNaN(n) ? f(n[l] ?? 0) : f(n)), m && (isNaN(m) ? w(m[l] ?? 0) : w(m)));
54
+ p ? (f(p), w(p)) : (c && (isNaN(c) ? f(c[l] ?? 0) : f(c)), m && (isNaN(m) ? w(m[l] ?? 0) : w(m)));
55
55
  };
56
56
  return /* @__PURE__ */ y(
57
- R,
57
+ W,
58
58
  {
59
59
  ref: x,
60
60
  columns: e,
@@ -65,7 +65,7 @@ const R = I.div`
65
65
  }
66
66
  );
67
67
  });
68
- W.propTypes = {
68
+ j.propTypes = {
69
69
  /**
70
70
  * Number of columns to take up on XS screens.
71
71
  */
@@ -93,5 +93,5 @@ W.propTypes = {
93
93
  col: i.number
94
94
  };
95
95
  export {
96
- W as default
96
+ j as default
97
97
  };
package/dist/Grid.cjs CHANGED
@@ -8,6 +8,5 @@
8
8
  ${e=>e.justifyItems&&`justify-items: ${e.justifyItems};`}
9
9
  ${e=>e.alignItems&&`align-items: ${e.alignItems};`}
10
10
  ${e=>e.justifyContent&&`justify-content: ${e.justifyContent};`}
11
- ${e=>e.templateAreas&&`grid-template-areas: ${e.templateAreas};`}
12
-
11
+ ${e=>e.templateAreas&&`grid-template-areas: ${e.templateAreas};`}
13
12
  `,s=j.forwardRef((e,n)=>{const{inline:a=!1,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u,children:d,className:f="",style:T={},...$}=e;var P={inline:a,template:r,templateColumns:i,templateRows:l,gap:o,rowGap:p,columnGap:m,justifyItems:y,alignItems:c,justifyContent:g,templateAreas:u};return w.jsx(I,{ref:n,...P,className:f,style:T,...$,children:d})});s.defaultProps={inline:!1,style:{},className:""};s.propTypes={inline:t.PropTypes.bool,template:t.PropTypes.string,templateColumns:t.PropTypes.string,templateRows:t.PropTypes.string,gap:t.PropTypes.string,rowGap:t.PropTypes.string,columnGap:t.PropTypes.string,justifyItems:t.PropTypes.oneOf(["start","end","center","stretch"]),alignItems:t.PropTypes.oneOf(["start","end","center","stretch"]),placeItems:t.PropTypes.oneOf(["start","end","center","stretch"]),justifyContent:t.PropTypes.oneOf(["start","end","center","stretch","space-between","space-evenly"]),templateAreas:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=s;
package/dist/Grid.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as G } from "react/jsx-runtime";
2
- import I from "react";
2
+ import { forwardRef as I } from "react";
3
3
  import { P as e } from "./index-BYnWp42a.js";
4
4
  import { n as C } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
- const R = C.div`
5
+ const h = C.div`
6
6
  display: ${(t) => t.inline ? "inline-grid" : "grid"};
7
7
  row-gap: ${(t) => t.rowGap ? t.rowGap : t.gap ? t.gap : 0};
8
8
  column-gap: ${(t) => t.columnGap ? t.columnGap : t.gap ? t.gap : 0};
@@ -12,9 +12,8 @@ const R = C.div`
12
12
  ${(t) => t.justifyItems && `justify-items: ${t.justifyItems};`}
13
13
  ${(t) => t.alignItems && `align-items: ${t.alignItems};`}
14
14
  ${(t) => t.justifyContent && `justify-content: ${t.justifyContent};`}
15
- ${(t) => t.templateAreas && `grid-template-areas: ${t.templateAreas};`}
16
-
17
- `, a = I.forwardRef((t, s) => {
15
+ ${(t) => t.templateAreas && `grid-template-areas: ${t.templateAreas};`}
16
+ `, a = I((t, s) => {
18
17
  const {
19
18
  inline: n = !1,
20
19
  template: l,
@@ -32,8 +31,30 @@ const R = C.div`
32
31
  style: $ = {},
33
32
  ...w
34
33
  } = t;
35
- var j = { inline: n, template: l, templateColumns: i, templateRows: m, gap: r, rowGap: o, columnGap: g, justifyItems: c, alignItems: p, justifyContent: f, templateAreas: d };
36
- return /* @__PURE__ */ G(R, { ref: s, ...j, className: y, style: $, ...w, children: u });
34
+ var j = {
35
+ inline: n,
36
+ template: l,
37
+ templateColumns: i,
38
+ templateRows: m,
39
+ gap: r,
40
+ rowGap: o,
41
+ columnGap: g,
42
+ justifyItems: c,
43
+ alignItems: p,
44
+ justifyContent: f,
45
+ templateAreas: d
46
+ };
47
+ return /* @__PURE__ */ G(
48
+ h,
49
+ {
50
+ ref: s,
51
+ ...j,
52
+ className: y,
53
+ style: $,
54
+ ...w,
55
+ children: u
56
+ }
57
+ );
37
58
  });
38
59
  a.defaultProps = {
39
60
  inline: !1,
@@ -51,7 +72,14 @@ a.propTypes = {
51
72
  justifyItems: e.oneOf(["start", "end", "center", "stretch"]),
52
73
  alignItems: e.oneOf(["start", "end", "center", "stretch"]),
53
74
  placeItems: e.oneOf(["start", "end", "center", "stretch"]),
54
- justifyContent: e.oneOf(["start", "end", "center", "stretch", "space-between", "space-evenly"]),
75
+ justifyContent: e.oneOf([
76
+ "start",
77
+ "end",
78
+ "center",
79
+ "stretch",
80
+ "space-between",
81
+ "space-evenly"
82
+ ]),
55
83
  templateAreas: e.string,
56
84
  //-------------
57
85
  style: e.object,
package/dist/GridItem.cjs CHANGED
@@ -11,5 +11,5 @@
11
11
  ${e=>e.colStart&&`grid-column-start: ${e.colStart};`}
12
12
  ${e=>(e.colEnd||e.colSpan)&&`grid-column-end: span ${e.colEnd||e.colSpan};`}
13
13
  ${e=>e.rowStart&&`grid-row-start: ${e.rowStart};`}
14
- ${e=>(e.rowEnd||e.rowSpan)&&`grid-row-end: span ${e.rowEnd||e.rowSpan};`}
14
+ ${e=>(e.rowEnd||e.rowSpan)&&`grid-row-end: span ${e.rowEnd||e.rowSpan};`}
15
15
  `,r=p.forwardRef((e,a)=>{const{colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:S,className:g="",style:u={},children:w,...y}=e;var $={colStart:n,colEnd:l,rowStart:o,rowEnd:i,colSpan:s,rowSpan:c,justifySelf:d,alignSelf:m,area:S};return f.jsx(P,{ref:a,...$,className:g,style:u,...y,children:w})});r.propTypes={colStart:t.PropTypes.number,colEnd:t.PropTypes.number,rowStart:t.PropTypes.number,rowEnd:t.PropTypes.number,colSpan:t.PropTypes.number,rowSpan:t.PropTypes.number,justifySelf:t.PropTypes.oneOf(["start","end","center","stretch"]),alignSelf:t.PropTypes.oneOf(["start","end","center","stretch"]),area:t.PropTypes.string,style:t.PropTypes.object,className:t.PropTypes.string};module.exports=r;
package/dist/GridItem.js CHANGED
@@ -1,5 +1,5 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import y from "react";
1
+ import { jsx as u } from "react/jsx-runtime";
2
+ import { forwardRef as y } from "react";
3
3
  import { P as t } from "./index-BYnWp42a.js";
4
4
  import { n as E } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
5
  const b = E.div`
@@ -15,8 +15,8 @@ const b = E.div`
15
15
  ${(e) => e.colStart && `grid-column-start: ${e.colStart};`}
16
16
  ${(e) => (e.colEnd || e.colSpan) && `grid-column-end: span ${e.colEnd || e.colSpan};`}
17
17
  ${(e) => e.rowStart && `grid-row-start: ${e.rowStart};`}
18
- ${(e) => (e.rowEnd || e.rowSpan) && `grid-row-end: span ${e.rowEnd || e.rowSpan};`}
19
- `, j = y.forwardRef((e, a) => {
18
+ ${(e) => (e.rowEnd || e.rowSpan) && `grid-row-end: span ${e.rowEnd || e.rowSpan};`}
19
+ `, j = y((e, a) => {
20
20
  const {
21
21
  colStart: r,
22
22
  colEnd: n,
@@ -30,10 +30,30 @@ const b = E.div`
30
30
  className: S = "",
31
31
  style: f = {},
32
32
  children: $,
33
- ...u
33
+ ...w
34
34
  } = e;
35
- var w = { colStart: r, colEnd: n, rowStart: l, rowEnd: o, colSpan: i, rowSpan: m, justifySelf: d, alignSelf: c, area: g };
36
- return /* @__PURE__ */ s(b, { ref: a, ...w, className: S, style: f, ...u, children: $ });
35
+ var s = {
36
+ colStart: r,
37
+ colEnd: n,
38
+ rowStart: l,
39
+ rowEnd: o,
40
+ colSpan: i,
41
+ rowSpan: m,
42
+ justifySelf: d,
43
+ alignSelf: c,
44
+ area: g
45
+ };
46
+ return /* @__PURE__ */ u(
47
+ b,
48
+ {
49
+ ref: a,
50
+ ...s,
51
+ className: S,
52
+ style: f,
53
+ ...w,
54
+ children: $
55
+ }
56
+ );
37
57
  });
38
58
  j.propTypes = {
39
59
  /**
package/dist/Icon.cjs CHANGED
@@ -1,8 +1,8 @@
1
- "use strict";const n=require("react/jsx-runtime"),z=require("react");;/* empty css */const s=require("./index-BIlhCoy2.cjs"),P=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),I=P.newStyled.span`
1
+ "use strict";const n=require("react/jsx-runtime"),z=require("react"),s=require("./index-BIlhCoy2.cjs"),P=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),o=require("./utils-DTAPpJXU.cjs"),b=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),I=P.newStyled.span`
2
2
  box-sizing: border-box;
3
3
  ${e=>e.sizeInUnits&&e.sizeInUnits!=""?`font-size: ${e.sizeInUnits}`:o.getComponentTypographyCss(e.theme,"Icon",e.size,"enabled")};
4
4
  ${e=>e.color&&`color: ${o.getColorRgbaValue(e.theme,"Icon",e.color,"enabled","icon")}`};
5
5
  display: inline-flex;
6
6
  justify-content: center;
7
7
  align-items: center;
8
- `,t=z.forwardRef((e,r)=>{const{id:h="",icon:i="",iconStyle:c="solid",tooltip:l="",sizeInUnits:a="",size:y="small",color:m,className:u="",style:d={},...p}=e,g={theme:b.useTheme(),size:y,color:m,sizeInUnits:a},f=()=>{var T=c==="solid"?"fas":"far";return`${T} fa-${i} fa-fw`};return n.jsx(I,{ref:r,...g,tooltip:l,className:u,style:d,...p,children:n.jsx("i",{"data-control":!!e["data-control"],className:f()})})});t.propTypes={id:s.PropTypes.string,icon:s.PropTypes.string,iconStyle:s.PropTypes.oneOf(["solid","regular"]),tooltip:s.PropTypes.string,className:s.PropTypes.string,style:s.PropTypes.object,size:s.PropTypes.oneOf(["small","medium","large"]),sizeInUnits:s.PropTypes.string,color:s.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=t;
8
+ `,t=z.forwardRef((e,r)=>{const{id:h="",icon:i="",iconStyle:c="solid",tooltip:l="",sizeInUnits:a="",size:y="small",color:m,className:d="",style:u={},...p}=e,g={theme:b.useTheme(),size:y,color:m,sizeInUnits:a},f=()=>{var T=c==="solid"?"fas":"far";return`${T} fa-${i} fa-fw`};return n.jsx(I,{ref:r,...g,tooltip:l,className:d,style:u,...p,children:n.jsx("i",{"data-control":!!e["data-control"],className:f()})})});t.propTypes={id:s.PropTypes.string,icon:s.PropTypes.string,iconStyle:s.PropTypes.oneOf(["solid","regular"]),tooltip:s.PropTypes.string,className:s.PropTypes.string,style:s.PropTypes.object,size:s.PropTypes.oneOf(["small","medium","large"]),sizeInUnits:s.PropTypes.string,color:s.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};module.exports=t;
package/dist/Icon.js CHANGED
@@ -1,14 +1,13 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
2
  import { forwardRef as z } from "react";
3
- /* empty css */
4
3
  import { P as o } from "./index-BYnWp42a.js";
5
- import { n as p } from "./emotion-styled.browser.esm-BiK8DcgW.js";
6
- import { g as I, a as h } from "./utils-C52T57HO.js";
4
+ import { n as I } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
+ import { g as h, a as p } from "./utils-C52T57HO.js";
7
6
  import { u as b } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
- const $ = p.span`
7
+ const $ = I.span`
9
8
  box-sizing: border-box;
10
- ${(e) => e.sizeInUnits && e.sizeInUnits != "" ? `font-size: ${e.sizeInUnits}` : I(e.theme, "Icon", e.size, "enabled")};
11
- ${(e) => e.color && `color: ${h(
9
+ ${(e) => e.sizeInUnits && e.sizeInUnits != "" ? `font-size: ${e.sizeInUnits}` : h(e.theme, "Icon", e.size, "enabled")};
10
+ ${(e) => e.color && `color: ${p(
12
11
  e.theme,
13
12
  "Icon",
14
13
  e.color,
@@ -1,4 +1,4 @@
1
- "use strict";const a=require("react/jsx-runtime"),O=require("react"),o=require("./index-BIlhCoy2.cjs");;/* empty css */const b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./utils-DTAPpJXU.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m=e=>`
1
+ "use strict";const a=require("react/jsx-runtime"),$=require("react"),o=require("./index-BIlhCoy2.cjs"),b=require("./emotion-styled.browser.esm-Cbp_XsK4.cjs"),t=require("./utils-DTAPpJXU.cjs"),S=require("./emotion-element-5486c51c.browser.esm-QRQ5FSjv.cjs"),m=e=>`
2
2
  outline: none;
3
3
  display: inline-flex;
4
4
  flex-direction: row;
@@ -15,7 +15,7 @@
15
15
  max-width: ${t.getSizeValueWithUnits(e.theme,e.size)};
16
16
  `,P=b.newStyled.i`
17
17
  font-size: 1.125rem;
18
- `,$=b.newStyled.button`
18
+ `,B=b.newStyled.button`
19
19
  ${e=>m(e)}
20
20
 
21
21
  ${e=>t.getComponentTypographyCss(e.theme,"ButtonFilled",e.size,"enabled")};
@@ -83,7 +83,7 @@
83
83
  background-color: ${e=>t.getColorRgbaValue(e.theme,"ButtonTinted","gray","disabled","background","backgroundOpacity")};
84
84
  color: ${e=>t.getColorRgbaValue(e.theme,"ButtonTinted","gray","disabled","text")};
85
85
  }
86
- `,B=b.newStyled.button`
86
+ `,C=b.newStyled.button`
87
87
  ${e=>m(e)}
88
88
 
89
89
  ${e=>t.getComponentTypographyCss(e.theme,"ButtonTinted",e.size,"enabled")};
@@ -116,7 +116,7 @@
116
116
  cursor: default;
117
117
  background-color: ${e=>t.getColorRgbaValue(e.theme,"ButtonBasic","gray","disabled","background","backgroundOpacity")};
118
118
  }
119
- `,F=b.newStyled(B)`
119
+ `,F=b.newStyled(C)`
120
120
  border: 1px solid
121
121
  ${e=>t.getColorRgbaValue(e.theme,"ButtonBasic",e.color,"enabled","border","borderOpacity")};
122
- `,C=O.forwardRef((e,n)=>{const{icon:h=null,iconStyle:f="solid",borderRadius:k="regular",btnType:l="filled",disabled:V=!1,tabIndex:j=0,onFocus:r=()=>{},onBlur:i=()=>{},onClick:c=()=>{},onKeyDown:u=()=>{},size:y="small",color:R="primary",className:T="",style:x={},...d}=e,g={theme:S.useTheme(),color:R,size:y,style:x,className:"lnc-ui-icon-button "+T,disabled:V,borderRadius:k,btnType:l},z=()=>{var v=f==="solid"?"fas":"far";return`${v} fa-${h} fa-fw`},s=()=>React.isValidElement(h)?h:a.jsx(P,{className:z()});return l==="filled"?a.jsx($,{ref:n,"data-type":"filled",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,type:l,...d,children:s()}):l==="tinted"?a.jsx(w,{ref:n,"data-type":"tinted",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):l==="outline"?a.jsx(F,{ref:n,"data-type":"outline",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):l==="basic"?a.jsx(B,{ref:n,"data-type":"basic",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):a.jsx($,{ref:n,"data-type":"filled",size:y,...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()})});C.propTypes={icon:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),iconStyle:o.PropTypes.oneOf(["regular","solid"]),borderRadius:o.PropTypes.oneOf(["slight","regular","edged","curved","none"]),btnType:o.PropTypes.oneOf(["filled","tinted","outline","basic"]),disabled:o.PropTypes.bool,tabIndex:o.PropTypes.number,onBlur:o.PropTypes.func,onFocus:o.PropTypes.func,onClick:o.PropTypes.func,onKeyDown:o.PropTypes.func,className:o.PropTypes.string,style:o.PropTypes.object,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:o.PropTypes.oneOf(["small","medium","large"])};module.exports=C;
122
+ `,f=$.forwardRef((e,n)=>{const{icon:h=null,iconStyle:k="solid",borderRadius:V="regular",btnType:l="filled",disabled:R=!1,tabIndex:j=0,onFocus:r=()=>{},onBlur:i=()=>{},onClick:c=()=>{},onKeyDown:u=()=>{},size:y="small",color:T="primary",className:x="",style:z={},...d}=e,g={theme:S.useTheme(),color:T,size:y,style:z,className:"lnc-ui-icon-button "+x,disabled:R,borderRadius:V,btnType:l},v=()=>{var O=k==="solid"?"fas":"far";return`${O} fa-${h} fa-fw`},s=()=>$.isValidElement(h)?h:a.jsx(P,{className:v()});return l==="filled"?a.jsx(B,{ref:n,"data-type":"filled",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,type:l,...d,children:s()}):l==="tinted"?a.jsx(w,{ref:n,"data-type":"tinted",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):l==="outline"?a.jsx(F,{ref:n,"data-type":"outline",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):l==="basic"?a.jsx(C,{ref:n,"data-type":"basic",...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()}):a.jsx(B,{ref:n,"data-type":"filled",size:y,...g,onFocus:r,onBlur:i,onClick:c,onKeyDown:u,...d,children:s()})});f.propTypes={icon:o.PropTypes.oneOfType([o.PropTypes.string,o.PropTypes.element]),iconStyle:o.PropTypes.oneOf(["regular","solid"]),borderRadius:o.PropTypes.oneOf(["slight","regular","edged","curved","none"]),btnType:o.PropTypes.oneOf(["filled","tinted","outline","basic"]),disabled:o.PropTypes.bool,tabIndex:o.PropTypes.number,onBlur:o.PropTypes.func,onFocus:o.PropTypes.func,onClick:o.PropTypes.func,onKeyDown:o.PropTypes.func,className:o.PropTypes.string,style:o.PropTypes.object,color:o.PropTypes.oneOf(["primary","secondary","success","warning","danger","information","neutral","gray"]),size:o.PropTypes.oneOf(["small","medium","large"])};module.exports=f;