@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,5 +1,5 @@
1
1
  import { jsxs as b, jsx as n } from "react/jsx-runtime";
2
- import P, { useState as j } from "react";
2
+ import { forwardRef as P, useState as j } from "react";
3
3
  import { n as g } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
4
  import { P as i } from "./index-BYnWp42a.js";
5
5
  import { d as f, g as N, e as T, a as t } from "./utils-C52T57HO.js";
@@ -208,11 +208,11 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
208
208
  overflow: hidden;
209
209
  text-overflow: ellipsis;
210
210
  color: ${(e) => t(e.theme, "Radio", e.color, "enabled", "text")};
211
- `, K = P.forwardRef((e, y) => {
211
+ `, K = P((e, y) => {
212
212
  const {
213
213
  wrapperRef: w,
214
- className: R = "",
215
- style: k = {},
214
+ className: k = "",
215
+ style: R = {},
216
216
  color: $ = "primary",
217
217
  innerColor: v = "white",
218
218
  size: x = "small",
@@ -241,8 +241,8 @@ const I = (e) => e == "left" ? "row-reverse" : "row", D = g.label`
241
241
  {
242
242
  ...u,
243
243
  ref: w,
244
- className: R,
245
- style: k,
244
+ className: k,
245
+ style: R,
246
246
  tabIndex: -1,
247
247
  readOnly: s,
248
248
  focused: B,
@@ -1,12 +1,12 @@
1
1
  import { jsxs as O, jsx as t, Fragment as W } from "react/jsx-runtime";
2
2
  import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
3
3
  import { P as n } from "./index-BYnWp42a.js";
4
- import _, { useRef as X, useState as v, useCallback as q, useEffect as M } from "react";
5
- import { b as A, a as o, g as D, d as G } from "./utils-C52T57HO.js";
6
- import { u as H } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
- import { u as J } from "./useUpdateEffect-CuYWz7EA.js";
8
- const K = ({ theme: e, size: i }) => {
9
- var u = G(e, i);
4
+ import { forwardRef as X, useRef as q, useState as v, useCallback as A, useEffect as M } from "react";
5
+ import { b as D, a as o, g as G, d as H } from "./utils-C52T57HO.js";
6
+ import { u as J } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
7
+ import { u as K } from "./useUpdateEffect-CuYWz7EA.js";
8
+ const Q = ({ theme: e, size: i }) => {
9
+ var u = H(e, i);
10
10
  return `
11
11
  min-height: ${u};
12
12
  max-height: ${u};
@@ -15,9 +15,9 @@ const K = ({ theme: e, size: i }) => {
15
15
  small: "0.875rem",
16
16
  medium: "1.125rem",
17
17
  large: "1.375rem"
18
- }, Q = x.div`
18
+ }, Y = x.div`
19
19
  position: relative;
20
- ${(e) => K(e)};
20
+ ${(e) => Q(e)};
21
21
  display: inline-flex;
22
22
  align-items: center;
23
23
  `, T = x.input`
@@ -31,7 +31,7 @@ const K = ({ theme: e, size: i }) => {
31
31
  background: ${(e) => e.rangeBackground};
32
32
  transition: background 450ms ease-in;
33
33
  -webkit-appearance: none;
34
- border-radius: ${(e) => A(e.theme, "regular")};
34
+ border-radius: ${(e) => D(e.theme, "regular")};
35
35
  &::-webkit-slider-thumb {
36
36
  -webkit-appearance: none; /* Override default look */
37
37
  appearance: none;
@@ -62,12 +62,12 @@ const K = ({ theme: e, size: i }) => {
62
62
  cursor: pointer; /* Cursor on hover */
63
63
  border: none;
64
64
  }
65
- `, Y = x.div`
65
+ `, Z = x.div`
66
66
  display: flex;
67
67
  flex-direction: column;
68
68
  align-items: center;
69
69
  position: absolute;
70
- ${(e) => D(e.theme, "Range", e.size, "enabled")};
70
+ ${(e) => G(e.theme, "Range", e.size, "enabled")};
71
71
  left: ${(e) => `calc(${e.inputValue + "%"} + (${8 - e.inputValue * 0.15}px))`};
72
72
  top: ${(e) => "calc(-" + g[e.size] + ")"};
73
73
  transform: translateX(-50%);
@@ -107,7 +107,7 @@ const K = ({ theme: e, size: i }) => {
107
107
  }
108
108
  }
109
109
  }
110
- `, Z = _.forwardRef((e, i) => {
110
+ `, _ = X((e, i) => {
111
111
  const {
112
112
  defaultValue: u,
113
113
  value: d = null,
@@ -123,8 +123,8 @@ const K = ({ theme: e, size: i }) => {
123
123
  size: B = "small",
124
124
  className: E = "",
125
125
  style: j = {},
126
- ...R
127
- } = e, y = X(), m = H(), b = { theme: m, size: B, color: s, className: E, style: j }, C = o(
126
+ ...y
127
+ } = e, C = q(), m = J(), b = { theme: m, size: B, color: s, className: E, style: j }, R = o(
128
128
  m,
129
129
  "Range",
130
130
  s,
@@ -138,11 +138,11 @@ const K = ({ theme: e, size: i }) => {
138
138
  l ? "disabled" : "enabled",
139
139
  "background"
140
140
  )
141
- ), [z, U] = v(), [L, p] = v(), f = q(
141
+ ), [z, U] = v(), [L, p] = v(), f = A(
142
142
  (a) => Math.round((a - c) / (h - c) * 100),
143
143
  [c, h]
144
144
  ), [r, I] = v(d || u);
145
- J(() => {
145
+ K(() => {
146
146
  I(d);
147
147
  }, [d]), M(() => {
148
148
  P(r || 0);
@@ -163,20 +163,20 @@ const K = ({ theme: e, size: i }) => {
163
163
  U(
164
164
  `linear-gradient(to right, ${S} 0%, ${S} ${f(
165
165
  a
166
- )}%, ${C} ${f(a)}%, ${C} 100%)`
166
+ )}%, ${R} ${f(a)}%, ${R} 100%)`
167
167
  );
168
168
  }, N = (a) => {
169
169
  I(a.target.value), k && k(a);
170
170
  };
171
- return /* @__PURE__ */ O(Q, { ...b, children: [
172
- L && r && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ O(Y, { ...b, inputValue: f(r), children: [
171
+ return /* @__PURE__ */ O(Y, { ...b, children: [
172
+ L && r && /* @__PURE__ */ t(W, { children: /* @__PURE__ */ O(Z, { ...b, inputValue: f(r), children: [
173
173
  /* @__PURE__ */ t("div", { className: "text-content", children: r }),
174
174
  /* @__PURE__ */ t("div", { className: "arrow", children: /* @__PURE__ */ t("div", { className: "outer", children: /* @__PURE__ */ t("div", { className: "inner" }) }) })
175
175
  ] }) }),
176
176
  d == null || d == "undefined" ? /* @__PURE__ */ t(
177
177
  T,
178
178
  {
179
- ref: i || y,
179
+ ref: i || C,
180
180
  id: "fader",
181
181
  type: "range",
182
182
  min: c,
@@ -194,12 +194,12 @@ const K = ({ theme: e, size: i }) => {
194
194
  onInput: V,
195
195
  onChange: N,
196
196
  ...b,
197
- ...R
197
+ ...y
198
198
  }
199
199
  ) : /* @__PURE__ */ t(
200
200
  T,
201
201
  {
202
- ref: i || y,
202
+ ref: i || C,
203
203
  id: "fader",
204
204
  type: "range",
205
205
  min: c,
@@ -217,12 +217,12 @@ const K = ({ theme: e, size: i }) => {
217
217
  onInput: V,
218
218
  onChange: N,
219
219
  ...b,
220
- ...R
220
+ ...y
221
221
  }
222
222
  )
223
223
  ] });
224
224
  });
225
- Z.propTypes = {
225
+ _.propTypes = {
226
226
  value: n.number,
227
227
  defaultValue: n.number,
228
228
  min: n.number,
@@ -249,5 +249,5 @@ Z.propTypes = {
249
249
  ])
250
250
  };
251
251
  export {
252
- Z as default
252
+ _ as default
253
253
  };
package/dist/SearchBar.js CHANGED
@@ -1,28 +1,28 @@
1
1
  import { jsx as v, jsxs as _ } from "react/jsx-runtime";
2
- import g, { Children as ue, isValidElement as w, cloneElement as R, useState as M, createElement as X } from "react";
2
+ import E, { Children as ue, isValidElement as w, cloneElement as R, useState as M, createRef as ce, createElement as X } from "react";
3
3
  import { n as x } from "./emotion-styled.browser.esm-BiK8DcgW.js";
4
4
  import { P as u } from "./index-BYnWp42a.js";
5
- import ce from "./Chip.js";
6
- import { k as de } from "./emotion-react.browser.esm-CN-s34fZ.js";
7
- import { useTheme as pe } from "./ThemeProvider.js";
5
+ import de from "./Chip.js";
6
+ import { k as pe } from "./emotion-react.browser.esm-CN-s34fZ.js";
7
+ import { useTheme as fe } from "./ThemeProvider.js";
8
8
  import { _ as L } from "./objectWithoutPropertiesLoose-DwEN6RBQ.js";
9
9
  import { _ as V } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
10
- import { _ as fe, a as me } from "./setPrototypeOf-CttqfWo1.js";
10
+ import { _ as me, a as he } from "./setPrototypeOf-CttqfWo1.js";
11
11
  import { R as $ } from "./index--Kmch3aI.js";
12
- const he = de`
12
+ const ve = pe`
13
13
  from {
14
14
  opacity: 0;
15
15
  }
16
16
  to {
17
17
  opacity: 1;
18
18
  }
19
- `, ve = x.div`
19
+ `, ge = x.div`
20
20
  @media (prefers-reduced-motion: no-preference) {
21
- animation-name: ${he};
21
+ animation-name: ${ve};
22
22
  animation-fill-mode: backwards;
23
23
  }
24
- `, ge = ({ duration: e = 300, delay: o = 0, children: l, ...n }) => /* @__PURE__ */ v(
25
- ve,
24
+ `, Ee = ({ duration: e = 300, delay: o = 0, children: l, ...n }) => /* @__PURE__ */ v(
25
+ ge,
26
26
  {
27
27
  ...n,
28
28
  style: {
@@ -34,28 +34,28 @@ const he = de`
34
34
  }
35
35
  );
36
36
  function F(e, o) {
37
- e.prototype = Object.create(o.prototype), e.prototype.constructor = e, fe(e, o);
37
+ e.prototype = Object.create(o.prototype), e.prototype.constructor = e, me(e, o);
38
38
  }
39
- function Ee(e, o) {
39
+ function xe(e, o) {
40
40
  return e.classList ? !!o && e.classList.contains(o) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + o + " ") !== -1;
41
41
  }
42
- function xe(e, o) {
43
- e.classList ? e.classList.add(o) : Ee(e, o) || (typeof e.className == "string" ? e.className = e.className + " " + o : e.setAttribute("class", (e.className && e.className.baseVal || "") + " " + o));
42
+ function Ce(e, o) {
43
+ e.classList ? e.classList.add(o) : xe(e, o) || (typeof e.className == "string" ? e.className = e.className + " " + o : e.setAttribute("class", (e.className && e.className.baseVal || "") + " " + o));
44
44
  }
45
45
  function H(e, o) {
46
46
  return e.replace(new RegExp("(^|\\s)" + o + "(?:\\s|$)", "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
47
47
  }
48
- function Ce(e, o) {
48
+ function be(e, o) {
49
49
  e.classList ? e.classList.remove(o) : typeof e.className == "string" ? e.className = H(e.className, o) : e.setAttribute("class", H(e.className && e.className.baseVal || "", o));
50
50
  }
51
51
  const J = {
52
52
  disabled: !1
53
53
  };
54
- var be = process.env.NODE_ENV !== "production" ? u.oneOfType([u.number, u.shape({
54
+ var Ne = process.env.NODE_ENV !== "production" ? u.oneOfType([u.number, u.shape({
55
55
  enter: u.number,
56
56
  exit: u.number,
57
57
  appear: u.number
58
- }).isRequired]) : null, Ne = process.env.NODE_ENV !== "production" ? u.oneOfType([u.string, u.shape({
58
+ }).isRequired]) : null, ye = process.env.NODE_ENV !== "production" ? u.oneOfType([u.string, u.shape({
59
59
  enter: u.string,
60
60
  exit: u.string,
61
61
  active: u.string
@@ -67,7 +67,7 @@ var be = process.env.NODE_ENV !== "production" ? u.oneOfType([u.number, u.shape(
67
67
  exitDone: u.string,
68
68
  exitActive: u.string
69
69
  })]) : null;
70
- const I = g.createContext(null);
70
+ const I = E.createContext(null);
71
71
  var Q = function(o) {
72
72
  return o.scrollTop;
73
73
  }, O = "unmounted", N = "exited", y = "entering", D = "entered", P = "exiting", C = /* @__PURE__ */ function(e) {
@@ -192,12 +192,12 @@ var Q = function(o) {
192
192
  var a = L(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
193
193
  return (
194
194
  // allows for nested Transitions
195
- /* @__PURE__ */ g.createElement(I.Provider, {
195
+ /* @__PURE__ */ E.createElement(I.Provider, {
196
196
  value: null
197
- }, typeof i == "function" ? i(r, a) : g.cloneElement(g.Children.only(i), a))
197
+ }, typeof i == "function" ? i(r, a) : E.cloneElement(E.Children.only(i), a))
198
198
  );
199
199
  }, o;
200
- }(g.Component);
200
+ }(E.Component);
201
201
  C.contextType = I;
202
202
  C.propTypes = process.env.NODE_ENV !== "production" ? {
203
203
  /**
@@ -295,7 +295,7 @@ C.propTypes = process.env.NODE_ENV !== "production" ? {
295
295
  * @type {number | { enter?: number, exit?: number, appear?: number }}
296
296
  */
297
297
  timeout: function(o) {
298
- var l = be;
298
+ var l = Ne;
299
299
  o.addEndListener || (l = l.isRequired);
300
300
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), t = 1; t < n; t++)
301
301
  r[t - 1] = arguments[t];
@@ -389,13 +389,13 @@ C.EXITED = N;
389
389
  C.ENTERING = y;
390
390
  C.ENTERED = D;
391
391
  C.EXITING = P;
392
- var ye = function(o, l) {
392
+ var Se = function(o, l) {
393
393
  return o && l && l.split(" ").forEach(function(n) {
394
- return xe(o, n);
394
+ return Ce(o, n);
395
395
  });
396
396
  }, A = function(o, l) {
397
397
  return o && l && l.split(" ").forEach(function(n) {
398
- return Ce(o, n);
398
+ return be(o, n);
399
399
  });
400
400
  }, U = /* @__PURE__ */ function(e) {
401
401
  F(o, e);
@@ -438,7 +438,7 @@ var ye = function(o, l) {
438
438
  var l = o.prototype;
439
439
  return l.addClass = function(r, t, i) {
440
440
  var a = this.getClassNames(t)[i + "ClassName"], s = this.getClassNames("enter"), c = s.doneClassName;
441
- t === "appear" && i === "done" && c && (a += " " + c), i === "active" && r && Q(r), a && (this.appliedClasses[t][i] = a, ye(r, a));
441
+ t === "appear" && i === "done" && c && (a += " " + c), i === "active" && r && Q(r), a && (this.appliedClasses[t][i] = a, Se(r, a));
442
442
  }, l.removeClasses = function(r, t) {
443
443
  var i = this.appliedClasses[t], a = i.base, s = i.active, c = i.done;
444
444
  this.appliedClasses[t] = {}, a && A(r, a), s && A(r, s), c && A(r, c);
@@ -446,7 +446,7 @@ var ye = function(o, l) {
446
446
  var r = this.props;
447
447
  r.classNames;
448
448
  var t = L(r, ["classNames"]);
449
- return /* @__PURE__ */ g.createElement(C, V({}, t, {
449
+ return /* @__PURE__ */ E.createElement(C, V({}, t, {
450
450
  onEnter: this.onEnter,
451
451
  onEntered: this.onEntered,
452
452
  onEntering: this.onEntering,
@@ -455,7 +455,7 @@ var ye = function(o, l) {
455
455
  onExited: this.onExited
456
456
  }));
457
457
  }, o;
458
- }(g.Component);
458
+ }(E.Component);
459
459
  U.defaultProps = {
460
460
  classNames: ""
461
461
  };
@@ -528,7 +528,7 @@ U.propTypes = process.env.NODE_ENV !== "production" ? V({}, C.propTypes, {
528
528
  * exitDone?: string,
529
529
  * }}
530
530
  */
531
- classNames: Ne,
531
+ classNames: ye,
532
532
  /**
533
533
  * A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
534
534
  * applied.
@@ -593,7 +593,7 @@ function G(e, o) {
593
593
  n[r.key] = l(r);
594
594
  }), n;
595
595
  }
596
- function Se(e, o) {
596
+ function Te(e, o) {
597
597
  e = e || {}, o = o || {};
598
598
  function l(p) {
599
599
  return p in o ? o[p] : e[p];
@@ -617,7 +617,7 @@ function Se(e, o) {
617
617
  function S(e, o, l) {
618
618
  return l[o] != null ? l[o] : e.props[o];
619
619
  }
620
- function Te(e, o) {
620
+ function De(e, o) {
621
621
  return G(e.children, function(l) {
622
622
  return R(l, {
623
623
  onExited: o.bind(null, l),
@@ -628,8 +628,8 @@ function Te(e, o) {
628
628
  });
629
629
  });
630
630
  }
631
- function De(e, o, l) {
632
- var n = G(e.children), r = Se(o, n);
631
+ function Oe(e, o, l) {
632
+ var n = G(e.children), r = Te(o, n);
633
633
  return Object.keys(r).forEach(function(t) {
634
634
  var i = r[t];
635
635
  if (w(i)) {
@@ -650,11 +650,11 @@ function De(e, o, l) {
650
650
  }
651
651
  }), r;
652
652
  }
653
- var Oe = Object.values || function(e) {
653
+ var ke = Object.values || function(e) {
654
654
  return Object.keys(e).map(function(o) {
655
655
  return e[o];
656
656
  });
657
- }, ke = {
657
+ }, $e = {
658
658
  component: "div",
659
659
  childFactory: function(o) {
660
660
  return o;
@@ -664,7 +664,7 @@ var Oe = Object.values || function(e) {
664
664
  function o(n, r) {
665
665
  var t;
666
666
  t = e.call(this, n, r) || this;
667
- var i = t.handleExited.bind(me(t));
667
+ var i = t.handleExited.bind(he(t));
668
668
  return t.state = {
669
669
  contextValue: {
670
670
  isMounting: !0
@@ -685,7 +685,7 @@ var Oe = Object.values || function(e) {
685
685
  }, o.getDerivedStateFromProps = function(r, t) {
686
686
  var i = t.children, a = t.handleExited, s = t.firstRender;
687
687
  return {
688
- children: s ? Te(r, a) : De(r, i, a),
688
+ children: s ? De(r, a) : Oe(r, i, a),
689
689
  firstRender: !1
690
690
  };
691
691
  }, l.handleExited = function(r, t) {
@@ -697,14 +697,14 @@ var Oe = Object.values || function(e) {
697
697
  };
698
698
  }));
699
699
  }, l.render = function() {
700
- var r = this.props, t = r.component, i = r.childFactory, a = L(r, ["component", "childFactory"]), s = this.state.contextValue, c = Oe(this.state.children).map(i);
701
- return delete a.appear, delete a.enter, delete a.exit, t === null ? /* @__PURE__ */ g.createElement(I.Provider, {
700
+ var r = this.props, t = r.component, i = r.childFactory, a = L(r, ["component", "childFactory"]), s = this.state.contextValue, c = ke(this.state.children).map(i);
701
+ return delete a.appear, delete a.enter, delete a.exit, t === null ? /* @__PURE__ */ E.createElement(I.Provider, {
702
702
  value: s
703
- }, c) : /* @__PURE__ */ g.createElement(I.Provider, {
703
+ }, c) : /* @__PURE__ */ E.createElement(I.Provider, {
704
704
  value: s
705
- }, /* @__PURE__ */ g.createElement(t, a, c));
705
+ }, /* @__PURE__ */ E.createElement(t, a, c));
706
706
  }, o;
707
- }(g.Component);
707
+ }(E.Component);
708
708
  j.propTypes = process.env.NODE_ENV !== "production" ? {
709
709
  /**
710
710
  * `<TransitionGroup>` renders a `<div>` by default. You can change this
@@ -758,12 +758,12 @@ j.propTypes = process.env.NODE_ENV !== "production" ? {
758
758
  */
759
759
  childFactory: u.func
760
760
  } : {};
761
- j.defaultProps = ke;
761
+ j.defaultProps = $e;
762
762
  const Y = (e) => {
763
763
  if (e.size === "small") return e.theme.typography.medium.fontSize;
764
764
  if (e.size === "medium") return e.theme.typography.large.fontSize;
765
765
  if (e.size === "large") return "1.3125rem";
766
- }, $e = (e) => {
766
+ }, we = (e) => {
767
767
  if (e === "small") return "0.40625rem 0.375rem";
768
768
  if (e === "medium") return "0.46875rem 0.375rem";
769
769
  if (e === "large") return "0.53125rem 0.375rem";
@@ -771,7 +771,7 @@ const Y = (e) => {
771
771
  if (e === "small") return "0.625rem 0.5rem 0.375rem 0.5rem";
772
772
  if (e === "medium") return "0.71875rem 0.5625rem 0.375rem 0.5625rem";
773
773
  if (e === "large") return "0.78125rem 0.625rem 0.375rem 0.625rem";
774
- }, we = x.div`
774
+ }, Re = x.div`
775
775
  display: inline-block;
776
776
  position: relative;
777
777
  box-sizing: border-box;
@@ -780,11 +780,11 @@ const Y = (e) => {
780
780
  border-radius: 0.1875rem;
781
781
  width: 100%;
782
782
  transition: all 250ms ease;
783
- `, Re = x.div`
783
+ `, Ie = x.div`
784
784
  padding: 0.15rem;
785
785
  transition: all 250ms ease;
786
786
  display: inline-block;
787
- `, Ie = x.div`
787
+ `, ze = x.div`
788
788
  display: inline-block;
789
789
  margin: 0.125rem;
790
790
  flex-grow: 1;
@@ -793,14 +793,14 @@ const Y = (e) => {
793
793
  & > div {
794
794
  width: 100%;
795
795
  }
796
- `, ze = x.div`
796
+ `, _e = x.div`
797
797
  display: inline-block;
798
798
  box-sizing: border-box;
799
799
  margin: 0.125rem;
800
800
  margin-left: 0.25rem;
801
801
  flex-grow: 1;
802
802
  transition: all 250ms ease;
803
- `, _e = x.input`
803
+ `, Me = x.input`
804
804
  width: 100%;
805
805
  transition: all 250ms ease;
806
806
  text-decoration: none;
@@ -809,22 +809,22 @@ const Y = (e) => {
809
809
  box-sizing: border-box;
810
810
  outline: none;
811
811
  border: none;
812
- padding: ${(e) => $e(e.size)};
812
+ padding: ${(e) => we(e.size)};
813
813
  background-color: transparent;
814
814
  font-family: ${(e) => e.theme.typography.fontFamily};
815
815
  font-size: ${(e) => e.theme.typography[e.size].fontSize};
816
816
  color: ${(e) => e.theme.palette[e.color].textDark};
817
817
  border-radius: 0.1875rem;
818
- `, Me = x.div`
818
+ `, Ae = x.div`
819
819
  display: flex;
820
820
  width: 100%;
821
- `, Ae = x.div`
821
+ `, Pe = x.div`
822
822
  padding: ${(e) => Z(e.size)};
823
823
  color: ${(e) => e.disabled ? e.theme.palette.gray[800] : e.theme.palette[e.color].main};
824
824
  font-size: ${(e) => Y(e)};
825
825
  background-color: whitesmoke;
826
826
  transition: all 250ms ease;
827
- `, Pe = x.div`
827
+ `, Le = x.div`
828
828
  padding: ${(e) => Z(e.size)};
829
829
  color: ${(e) => e.disabled ? e.theme.palette.gray[800] : e.theme.palette[e.color].main};
830
830
  font-size: ${(e) => Y(e)};
@@ -833,7 +833,7 @@ const Y = (e) => {
833
833
  cursor: ${(e) => e.disabled === !0 ? "default" : "pointer"};
834
834
  margin-right: 0;
835
835
  margin-left: auto;
836
- `, Le = x.div`
836
+ `, Ve = x.div`
837
837
  position: absolute;
838
838
  background-color: white;
839
839
  z-index: 1;
@@ -846,7 +846,7 @@ const Y = (e) => {
846
846
  display: flex;
847
847
  flex-direction: column;
848
848
  transition: all 250ms ease;
849
- `, Ve = x.div`
849
+ `, Fe = x.div`
850
850
  font-family: ${(e) => e.theme.typography.fontFamily};
851
851
  font-size: ${(e) => e.theme.typography[e.size].fontSize};
852
852
  padding: 0.375rem;
@@ -860,9 +860,9 @@ const Y = (e) => {
860
860
  }
861
861
  `, K = (e) => {
862
862
  const { items: o, suggestions: l, onChange: n, id: r, disabled: t, className: i, size: a, color: s } = e, [c, p] = M(""), [m, h] = M(!1), [b, k] = M(0);
863
- let W = g.createRef();
864
- const { theme: ee } = pe();
865
- let E = { size: a, color: s, theme: ee };
863
+ let W = ce();
864
+ const { theme: ee } = fe();
865
+ let g = { size: a, color: s, theme: ee };
866
866
  const te = () => ("10000000-1000-4000-8000" + -1e11).replace(
867
867
  /[018]/g,
868
868
  (d) => (d ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> d / 4).toString(16)
@@ -897,10 +897,10 @@ const Y = (e) => {
897
897
  f[d] = { ...f[d], active: !f[d].active }, n(r, f, f[d]);
898
898
  }, se = () => {
899
899
  if (m)
900
- return /* @__PURE__ */ v(ge, { children: /* @__PURE__ */ v(Le, { ...E, children: l.map((d, f) => /* @__PURE__ */ X(
901
- Ve,
900
+ return /* @__PURE__ */ v(Ee, { children: /* @__PURE__ */ v(Ve, { ...g, children: l.map((d, f) => /* @__PURE__ */ X(
901
+ Fe,
902
902
  {
903
- ...E,
903
+ ...g,
904
904
  key: f,
905
905
  onMouseDown: () => B(d),
906
906
  hover: b === f
@@ -908,22 +908,22 @@ const Y = (e) => {
908
908
  `${d.description} - ${d.operationDescription}`
909
909
  )) }) });
910
910
  };
911
- return /* @__PURE__ */ _(we, { className: i, ...E, children: [
912
- /* @__PURE__ */ _(Me, { ...E, children: [
913
- /* @__PURE__ */ v(Ae, { ...E, disabled: t, children: /* @__PURE__ */ v("i", { className: "fas fa-search fa-fw" }) }),
914
- /* @__PURE__ */ _(Re, { ...E, children: [
911
+ return /* @__PURE__ */ _(Re, { className: i, ...g, children: [
912
+ /* @__PURE__ */ _(Ae, { ...g, children: [
913
+ /* @__PURE__ */ v(Pe, { ...g, disabled: t, children: /* @__PURE__ */ v("i", { className: "fas fa-search fa-fw" }) }),
914
+ /* @__PURE__ */ _(Ie, { ...g, children: [
915
915
  /* @__PURE__ */ v(j, { component: null, children: o.map((d, f) => /* @__PURE__ */ v(U, { timeout: 200, classNames: "item", children: /* @__PURE__ */ X(
916
- Ie,
916
+ ze,
917
917
  {
918
- ...E,
918
+ ...g,
919
919
  key: f,
920
920
  first: f === 0,
921
921
  title: `${d.description} - ${d.operationDescription}: ${d.value}`
922
922
  },
923
923
  /* @__PURE__ */ v(
924
- ce,
924
+ de,
925
925
  {
926
- ...E,
926
+ ...g,
927
927
  id: d.id,
928
928
  text: d.description,
929
929
  additionalInfo: d.value,
@@ -934,10 +934,10 @@ const Y = (e) => {
934
934
  }
935
935
  )
936
936
  ) }, f)) }),
937
- /* @__PURE__ */ v(ze, { ...E, children: /* @__PURE__ */ v(
938
- _e,
937
+ /* @__PURE__ */ v(_e, { ...g, children: /* @__PURE__ */ v(
938
+ Me,
939
939
  {
940
- ...E,
940
+ ...g,
941
941
  ref: W,
942
942
  value: c,
943
943
  onBlur: re,
@@ -947,7 +947,7 @@ const Y = (e) => {
947
947
  }
948
948
  ) })
949
949
  ] }),
950
- /* @__PURE__ */ v(Pe, { ...E, disabled: t, children: /* @__PURE__ */ v(
950
+ /* @__PURE__ */ v(Le, { ...g, disabled: t, children: /* @__PURE__ */ v(
951
951
  "i",
952
952
  {
953
953
  className: "fas fa-times fa-fw",
package/dist/Sidebar.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsxs as g, jsx as o } from "react/jsx-runtime";
2
- import S, { useState as x, useEffect as C } from "react";
2
+ import { forwardRef as S, useState as x, useEffect as C } from "react";
3
3
  import { P as s } from "./index-BYnWp42a.js";
4
4
  import { n as l } from "./emotion-styled.browser.esm-BiK8DcgW.js";
5
- import _ from "./Icon.js";
6
- import { u as y } from "./utils-C52T57HO.js";
7
- import { u as $ } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
5
+ import y from "./Icon.js";
6
+ import { u as $ } from "./utils-C52T57HO.js";
7
+ import { u as _ } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
8
  const v = l.aside`
9
9
  direction: ${(e) => e.placement == "right" ? "rtl" : "ltr"};
10
10
  position: relative;
@@ -43,17 +43,17 @@ const v = l.aside`
43
43
  transition: transform 0.6s ease;
44
44
  }
45
45
  }
46
- `, m = S.forwardRef((e, f) => {
46
+ `, m = S((e, f) => {
47
47
  const {
48
48
  placement: r,
49
49
  collapsed: a = void 0,
50
50
  hideCollapseButton: h = !1,
51
51
  size: n = "15rem",
52
- children: u,
52
+ children: b,
53
53
  className: d,
54
54
  __TYPE__: T = "Sidebar",
55
- ...b
56
- } = e, c = $(), p = y(), [t, i] = x();
55
+ ...u
56
+ } = e, c = _(), p = $(), [t, i] = x();
57
57
  return C(() => {
58
58
  a != null ? i(a) : p == "XS" || p == "S" ? i(!0) : i(!1);
59
59
  }, [a]), /* @__PURE__ */ g(
@@ -65,7 +65,7 @@ const v = l.aside`
65
65
  size: n,
66
66
  theme: c,
67
67
  ref: f,
68
- ...b,
68
+ ...u,
69
69
  children: [
70
70
  !h && /* @__PURE__ */ o(
71
71
  z,
@@ -75,7 +75,7 @@ const v = l.aside`
75
75
  sidebarCollapsed: t,
76
76
  theme: c,
77
77
  children: /* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
78
- _,
78
+ y,
79
79
  {
80
80
  className: "sidebar-icon-lnc",
81
81
  icon: r == "right" ? "angle-right" : "angle-left",
@@ -90,7 +90,7 @@ const v = l.aside`
90
90
  className: "lnc-sidebar-content",
91
91
  sidebarCollapsed: t,
92
92
  size: n,
93
- children: u
93
+ children: b
94
94
  }
95
95
  )
96
96
  ]