@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,10 +1,9 @@
1
- import { jsx as l } from "react/jsx-runtime";
2
- import { forwardRef as I } from "react";
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { forwardRef as I, isValidElement as N } from "react";
3
3
  import { P as o } from "./index-BYnWp42a.js";
4
- /* empty css */
5
4
  import { n as h } from "./emotion-styled.browser.esm-BiK8DcgW.js";
6
- import { g as $, a as t, d as n, e as B, h as f, b as N } from "./utils-C52T57HO.js";
7
- import { u as V } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
5
+ import { g as $, a as t, d as n, e as B, h as f, b as V } from "./utils-C52T57HO.js";
6
+ import { u as j } from "./emotion-element-5486c51c.browser.esm-Bb4VkP8U.js";
8
7
  const k = (e) => `
9
8
  outline: none;
10
9
  display: inline-flex;
@@ -16,14 +15,14 @@ const k = (e) => `
16
15
  cursor: pointer;
17
16
  color: ${!e.disabled && "white"};
18
17
 
19
- border-radius: ${N(
18
+ border-radius: ${V(
20
19
  e.theme,
21
20
  e.borderRadius
22
21
  )};
23
22
 
24
23
  min-width: ${n(e.theme, e.size)};
25
24
  max-width: ${n(e.theme, e.size)};
26
- `, j = h.i`
25
+ `, D = h.i`
27
26
  font-size: 1.125rem;
28
27
  `, x = h.button`
29
28
  ${(e) => k(e)}
@@ -124,7 +123,7 @@ const k = (e) => `
124
123
  "text"
125
124
  )};
126
125
  }
127
- `, D = h.button`
126
+ `, P = h.button`
128
127
  ${(e) => k(e)}
129
128
 
130
129
  ${(e) => $(
@@ -325,7 +324,7 @@ const k = (e) => `
325
324
  "backgroundOpacity"
326
325
  )};
327
326
  }
328
- `, P = h(v)`
327
+ `, K = h(v)`
329
328
  border: 1px solid
330
329
  ${(e) => t(
331
330
  e.theme,
@@ -335,14 +334,14 @@ const k = (e) => `
335
334
  "border",
336
335
  "borderOpacity"
337
336
  )};
338
- `, K = I((e, c) => {
337
+ `, U = I((e, c) => {
339
338
  const {
340
339
  icon: g = null,
341
340
  iconStyle: T = "solid",
342
341
  borderRadius: O = "regular",
343
- btnType: a = "filled",
342
+ btnType: l = "filled",
344
343
  disabled: z = !1,
345
- tabIndex: U = 0,
344
+ tabIndex: W = 0,
346
345
  //----------------
347
346
  onFocus: i = () => {
348
347
  },
@@ -359,19 +358,19 @@ const k = (e) => `
359
358
  style: C = {},
360
359
  ...b
361
360
  } = e, s = {
362
- theme: V(),
361
+ theme: j(),
363
362
  color: F,
364
363
  size: y,
365
364
  style: C,
366
365
  className: "lnc-ui-icon-button " + w,
367
366
  disabled: z,
368
367
  borderRadius: O,
369
- btnType: a
368
+ btnType: l
370
369
  }, R = () => {
371
370
  var S = T === "solid" ? "fas" : "far";
372
371
  return `${S} fa-${g} fa-fw`;
373
- }, m = () => React.isValidElement(g) ? g : /* @__PURE__ */ l(j, { className: R() });
374
- return a === "filled" ? /* @__PURE__ */ l(
372
+ }, m = () => N(g) ? g : /* @__PURE__ */ a(D, { className: R() });
373
+ return l === "filled" ? /* @__PURE__ */ a(
375
374
  x,
376
375
  {
377
376
  ref: c,
@@ -381,12 +380,12 @@ const k = (e) => `
381
380
  onBlur: d,
382
381
  onClick: r,
383
382
  onKeyDown: u,
384
- type: a,
383
+ type: l,
385
384
  ...b,
386
385
  children: m()
387
386
  }
388
- ) : a === "tinted" ? /* @__PURE__ */ l(
389
- D,
387
+ ) : l === "tinted" ? /* @__PURE__ */ a(
388
+ P,
390
389
  {
391
390
  ref: c,
392
391
  "data-type": "tinted",
@@ -398,8 +397,8 @@ const k = (e) => `
398
397
  ...b,
399
398
  children: m()
400
399
  }
401
- ) : a === "outline" ? /* @__PURE__ */ l(
402
- P,
400
+ ) : l === "outline" ? /* @__PURE__ */ a(
401
+ K,
403
402
  {
404
403
  ref: c,
405
404
  "data-type": "outline",
@@ -411,7 +410,7 @@ const k = (e) => `
411
410
  ...b,
412
411
  children: m()
413
412
  }
414
- ) : a === "basic" ? /* @__PURE__ */ l(
413
+ ) : l === "basic" ? /* @__PURE__ */ a(
415
414
  v,
416
415
  {
417
416
  ref: c,
@@ -424,7 +423,7 @@ const k = (e) => `
424
423
  ...b,
425
424
  children: m()
426
425
  }
427
- ) : /* @__PURE__ */ l(
426
+ ) : /* @__PURE__ */ a(
428
427
  x,
429
428
  {
430
429
  ref: c,
@@ -440,7 +439,7 @@ const k = (e) => `
440
439
  }
441
440
  );
442
441
  });
443
- K.propTypes = {
442
+ U.propTypes = {
444
443
  icon: o.oneOfType([o.string, o.element]),
445
444
  iconStyle: o.oneOf(["regular", "solid"]),
446
445
  borderRadius: o.oneOf([
@@ -477,5 +476,5 @@ K.propTypes = {
477
476
  size: o.oneOf(["small", "medium", "large"])
478
477
  };
479
478
  export {
480
- K as default
479
+ U as default
481
480
  };