linear-react-components-ui 1.1.26-beta.2 → 1.1.26-beta.3

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 (193) hide show
  1. package/lib/alerts/AlertProvider.js +1 -1
  2. package/lib/alerts/BaseAlert.js +1 -1
  3. package/lib/alerts/Message.js +1 -1
  4. package/lib/alerts/withAlert.js +1 -1
  5. package/lib/avatar/index.js +14 -14
  6. package/lib/badge/index.js +2 -2
  7. package/lib/buttons/ActivateButton.js +1 -1
  8. package/lib/buttons/AddButton.js +1 -1
  9. package/lib/buttons/Button.js +1 -1
  10. package/lib/buttons/ButtonGroups.js +1 -1
  11. package/lib/buttons/CancelButton.js +1 -1
  12. package/lib/buttons/DangerButton.js +1 -1
  13. package/lib/buttons/DefaultButton.js +1 -1
  14. package/lib/buttons/DestroyButton.js +1 -1
  15. package/lib/buttons/EditButton.js +1 -1
  16. package/lib/buttons/InactivateButton.js +1 -1
  17. package/lib/buttons/InfoButton.js +1 -1
  18. package/lib/buttons/PrimaryButton.js +1 -1
  19. package/lib/buttons/RestoreButton.js +1 -1
  20. package/lib/buttons/SaveButton.js +1 -1
  21. package/lib/buttons/SuccessButton.js +1 -1
  22. package/lib/buttons/WarningButton.js +1 -1
  23. package/lib/buttons/button_container/index.js +1 -1
  24. package/lib/buttons/index.js +1 -1
  25. package/lib/buttons/split_button/index.js +3 -3
  26. package/lib/calendar/DangerCalendar.js +1 -1
  27. package/lib/calendar/InfoCalendar.js +1 -1
  28. package/lib/calendar/PrimaryCalendar.js +1 -1
  29. package/lib/calendar/SuccessCalendar.js +1 -1
  30. package/lib/calendar/WarningCalendar.js +1 -1
  31. package/lib/calendar/base/Day.js +2 -2
  32. package/lib/calendar/base/Month.js +1 -1
  33. package/lib/calendar/base/Week.js +1 -1
  34. package/lib/calendar/base/index.js +2 -2
  35. package/lib/checkbox/index.js +4 -4
  36. package/lib/chunks/{index.yztgndLc.js → index.CjD97zna.js} +30 -30
  37. package/lib/chunks/{index.D5f6Ow9V.js → index.iA-fVKOP.js} +3 -3
  38. package/lib/chunks/jsx-runtime.gtoSnx-V.js +284 -0
  39. package/lib/chunks/{tabs.Cvj2MJH6.js → tabs.BP3DB7Gx.js} +35 -35
  40. package/lib/dialog/Alert.js +2 -2
  41. package/lib/dialog/Custom.js +6 -6
  42. package/lib/dialog/Error.js +2 -2
  43. package/lib/dialog/Information.js +2 -2
  44. package/lib/dialog/Question.js +2 -2
  45. package/lib/dialog/Warning.js +2 -2
  46. package/lib/dialog/base/Content.js +2 -2
  47. package/lib/dialog/base/Footer.js +1 -1
  48. package/lib/dialog/base/Header.js +2 -2
  49. package/lib/dialog/base/index.js +2 -2
  50. package/lib/dialog/form/index.js +3 -3
  51. package/lib/dialog/index.js +1 -1
  52. package/lib/dialog/wizard/index.js +3 -3
  53. package/lib/dialog/wizard/progressbar.js +2 -2
  54. package/lib/dialog/wizard/step.js +2 -2
  55. package/lib/dialog/wizard/useWizard.js +2 -2
  56. package/lib/drawer/Content.js +1 -1
  57. package/lib/drawer/Drawer.js +2 -2
  58. package/lib/drawer/Header.js +1 -1
  59. package/lib/drawer/helpers.js +2 -2
  60. package/lib/dropdown/withDropdown.js +2 -2
  61. package/lib/fieldset/index.js +2 -2
  62. package/lib/form/Field.js +1 -1
  63. package/lib/form/FieldArray.js +2 -2
  64. package/lib/form/FieldNumber.js +1 -1
  65. package/lib/form/FieldPeriod.js +2 -2
  66. package/lib/form/helpers.js +9 -9
  67. package/lib/form/index.js +3 -3
  68. package/lib/form/withFieldHOC.js +7 -7
  69. package/lib/form/withFormSecurity.js +12 -12
  70. package/lib/gridlayout/GridCol.js +2 -2
  71. package/lib/gridlayout/GridRow.js +2 -2
  72. package/lib/hint/helpers.js +1 -1
  73. package/lib/hint/index.js +2 -2
  74. package/lib/icons/index.js +2 -2
  75. package/lib/index.js +3 -3
  76. package/lib/inputs/base/InputTextBase.js +2 -2
  77. package/lib/inputs/base/Label.js +1 -1
  78. package/lib/inputs/color/index.js +2 -2
  79. package/lib/inputs/date/Dialog.js +2 -2
  80. package/lib/inputs/date/index.js +2 -2
  81. package/lib/inputs/errorMessage/index.js +2 -2
  82. package/lib/inputs/file/DefaultFile.js +2 -2
  83. package/lib/inputs/file/DragDropFile.js +2 -2
  84. package/lib/inputs/file/File.js +2 -2
  85. package/lib/inputs/file/FileButtonSettings.js +2 -2
  86. package/lib/inputs/inputHOC.js +2 -2
  87. package/lib/inputs/mask/BaseMask.js +1 -1
  88. package/lib/inputs/mask/Cnpj.js +1 -1
  89. package/lib/inputs/mask/Cpf.js +1 -1
  90. package/lib/inputs/mask/Phone.js +1 -1
  91. package/lib/inputs/mask/ZipCode.js +1 -1
  92. package/lib/inputs/multiSelect/ActionButtons.js +3 -3
  93. package/lib/inputs/multiSelect/Dropdown.js +1 -1
  94. package/lib/inputs/multiSelect/index.js +2 -2
  95. package/lib/inputs/number/BaseNumber.js +1 -1
  96. package/lib/inputs/number/Currency.js +1 -1
  97. package/lib/inputs/number/Decimal.js +1 -1
  98. package/lib/inputs/number/index.js +2 -2
  99. package/lib/inputs/period/Dialog.js +2 -2
  100. package/lib/inputs/period/PeriodList.js +1 -1
  101. package/lib/inputs/period/index.js +2 -2
  102. package/lib/inputs/search/index.js +2 -2
  103. package/lib/inputs/select/ActionButtons.js +1 -1
  104. package/lib/inputs/select/Dropdown.js +1 -1
  105. package/lib/inputs/select/index.js +2 -2
  106. package/lib/inputs/select/multiple/Selecteds.js +9 -9
  107. package/lib/inputs/select/multiple/index.js +1 -1
  108. package/lib/inputs/select/simple/index.js +1 -1
  109. package/lib/inputs/text/index.js +1 -1
  110. package/lib/inputs/textarea/index.js +1 -1
  111. package/lib/internals/withTooltip.js +7 -7
  112. package/lib/labelMessages/index.js +2 -2
  113. package/lib/labels/DangerLabel.js +1 -1
  114. package/lib/labels/DefaultLabel.js +1 -1
  115. package/lib/labels/InfoLabel.js +1 -1
  116. package/lib/labels/PrimaryLabel.js +1 -1
  117. package/lib/labels/SuccessLabel.js +1 -1
  118. package/lib/labels/WarningLabel.js +1 -1
  119. package/lib/labels/index.js +1 -1
  120. package/lib/labels/label_container/index.js +1 -1
  121. package/lib/list/Header.js +1 -1
  122. package/lib/list/Item.js +3 -3
  123. package/lib/list/Separator.js +1 -1
  124. package/lib/list/helpers.js +2 -2
  125. package/lib/list/index.js +2 -2
  126. package/lib/menus/float/MenuItem.js +2 -2
  127. package/lib/menus/float/index.js +2 -2
  128. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  129. package/lib/menus/sidenav/MenuLink.js +4 -4
  130. package/lib/menus/sidenav/NavMenuGroup.js +1 -1
  131. package/lib/menus/sidenav/NavMenuItem.js +1 -1
  132. package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
  133. package/lib/menus/sidenav/helpers.js +4 -4
  134. package/lib/menus/sidenav/index.js +2 -2
  135. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +1 -1
  136. package/lib/menus/sidenav/popup_menu_search/index.js +2 -2
  137. package/lib/noPermission/index.js +2 -2
  138. package/lib/panel/Content.js +1 -1
  139. package/lib/panel/DangerPanel.js +1 -1
  140. package/lib/panel/Default.js +2 -2
  141. package/lib/panel/Header.js +2 -2
  142. package/lib/panel/InfoPanel.js +1 -1
  143. package/lib/panel/PrimaryPanel.js +1 -1
  144. package/lib/panel/SuccessPanel.js +1 -1
  145. package/lib/panel/ToolBar.js +1 -1
  146. package/lib/panel/WarningPanel.js +1 -1
  147. package/lib/panel/helpers.js +4 -4
  148. package/lib/panel/index.js +1 -1
  149. package/lib/popover/PopoverText.js +1 -1
  150. package/lib/popover/PopoverTitle.js +1 -1
  151. package/lib/popover/index.js +2 -2
  152. package/lib/progress/Bar.js +1 -1
  153. package/lib/progress/index.js +2 -2
  154. package/lib/radio/index.js +2 -2
  155. package/lib/shortcuts/index.js +2 -2
  156. package/lib/skeleton/SkeletonContainer.js +1 -1
  157. package/lib/skeleton/index.js +2 -2
  158. package/lib/spinner/SpinnerLoading.js +1 -1
  159. package/lib/spinner/index.js +2 -2
  160. package/lib/split/Split.js +1 -1
  161. package/lib/split/SplitSide.js +1 -1
  162. package/lib/split/index.js +1 -1
  163. package/lib/table/Body.js +2 -2
  164. package/lib/table/Header.js +1 -1
  165. package/lib/table/HeaderColumn.js +1 -1
  166. package/lib/table/Row.js +1 -1
  167. package/lib/table/RowColumn.js +1 -1
  168. package/lib/table/index.js +2 -2
  169. package/lib/tabs/DropdownTabs.js +4 -4
  170. package/lib/tabs/Menu.js +5 -5
  171. package/lib/tabs/MenuTabs.js +5 -5
  172. package/lib/tabs/Panel.js +1 -1
  173. package/lib/tabs/context.js +30 -30
  174. package/lib/tabs/index.js +2 -2
  175. package/lib/tabs/tabHelpers.js +2 -2
  176. package/lib/textContent/index.js +2 -2
  177. package/lib/toolbar/ButtonBar.js +2 -2
  178. package/lib/toolbar/LabelBar.js +2 -2
  179. package/lib/toolbar/Separator.js +1 -1
  180. package/lib/toolbar/ToolBarGroup.js +1 -1
  181. package/lib/toolbar/index.js +2 -2
  182. package/lib/tooltip/index.js +2 -2
  183. package/lib/treetable/Body.js +2 -2
  184. package/lib/treetable/Header.js +2 -2
  185. package/lib/treetable/Row.js +16 -16
  186. package/lib/treetable/index.js +2 -2
  187. package/lib/treeview/Header.js +1 -1
  188. package/lib/treeview/Node.js +11 -11
  189. package/lib/treeview/index.js +2 -2
  190. package/lib/uitour/index.js +2 -2
  191. package/package.json +4 -4
  192. package/lib/chunks/index.CmrLK9Qe.js +0 -675
  193. package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
@@ -1,4 +1,4 @@
1
- import { j as n } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as n } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as x, useRef as y, useEffect as E, isValidElement as e } from "react";
3
3
  import a from "lodash";
4
4
  import C from "./helpers.js";
@@ -1,4 +1,4 @@
1
- import { j as t } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as t } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as g } from "react";
3
3
  import C from "lodash";
4
4
  import p from "../icons/index.js";
package/lib/table/Row.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as N } from "react";
3
3
  import T, { RowContext as $ } from "./helpers.js";
4
4
  const g = (m) => {
@@ -1,4 +1,4 @@
1
- import { j as a } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as a } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as h, useCallback as y } from "react";
3
3
  import g from "../skeleton/index.js";
4
4
  import { RowContext as j } from "./helpers.js";
@@ -1,4 +1,4 @@
1
- import { j as b } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as b } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as f, useRef as P, useCallback as C, useMemo as V, useEffect as S } from "react";
3
3
  import W from "lodash";
4
4
  import { default as Z } from "./Header.js";
@@ -6,7 +6,7 @@ import { default as te } from "./Row.js";
6
6
  import { default as se } from "./Body.js";
7
7
  import { default as ne } from "./HeaderColumn.js";
8
8
  import { default as re } from "./RowColumn.js";
9
- /* empty css */
9
+ import '../assets/table.css';/* empty css */
10
10
  import F from "./helpers.js";
11
11
  const v = ({
12
12
  customClass: l,
@@ -1,8 +1,8 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import h from "lodash";
3
3
  import a from "../buttons/Button.js";
4
4
  import b from "../icons/index.js";
5
- /* empty css */
5
+ import '../assets/radio.css';import '../assets/toolbar.css';import '../assets/label.css';import '../assets/panel.css';import '../assets/noPermission.css';import '../assets/gridlayout.css';import '../assets/button.css';/* empty css */
6
6
  import x from "../list/index.js";
7
7
  import { useTabs as p } from "./useTabs.js";
8
8
  import "react";
@@ -20,9 +20,9 @@ import "../popover/index.js";
20
20
  import "../textContent/index.js";
21
21
  import "./MenuTabs.js";
22
22
  import "./tabHelpers.js";
23
- import { L as f } from "../chunks/tabs.Cvj2MJH6.js";
23
+ import { L as f } from "../chunks/tabs.BP3DB7Gx.js";
24
24
  import "./context.js";
25
- import "../chunks/index.yztgndLc.js";
25
+ import "../chunks/index.CjD97zna.js";
26
26
  const j = ({
27
27
  id: t,
28
28
  title: e,
package/lib/tabs/Menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as n } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as n } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import m from "react";
3
3
  import r from "./MenuTabs.js";
4
4
  import o from "./DropdownTabs.js";
@@ -10,8 +10,8 @@ const x = ({
10
10
  ...e
11
11
  }) => {
12
12
  const {
13
- menuTabs: u,
14
- menuRef: i,
13
+ menuTabs: i,
14
+ menuRef: u,
15
15
  dropdownTabs: b
16
16
  } = f();
17
17
  return /* @__PURE__ */ n.jsxs(
@@ -22,12 +22,12 @@ const x = ({
22
22
  /* @__PURE__ */ n.jsx(
23
23
  r,
24
24
  {
25
- tabs: u,
25
+ tabs: i,
26
26
  tabWidth: a,
27
27
  tabMenuSize: e.tabMenuSize,
28
28
  tabMenuAlign: e.tabMenuAlign,
29
29
  firstTabIdent: e.firstTabIdent,
30
- ref: i
30
+ ref: u
31
31
  }
32
32
  ),
33
33
  /* @__PURE__ */ n.jsx(
@@ -1,9 +1,9 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import y from "react";
3
3
  import N from "lodash";
4
4
  import h from "../buttons/Button.js";
5
5
  import "../icons/index.js";
6
- /* empty css */
6
+ import '../assets/button.css';/* empty css */
7
7
  import { menuStyles as w, onDeniedOptions as C } from "./tabHelpers.js";
8
8
  import { actionsOnPermissionDenied as D } from "../permissionValidations.js";
9
9
  import { useTabs as M } from "./useTabs.js";
@@ -57,7 +57,7 @@ const R = ({
57
57
  },
58
58
  e
59
59
  );
60
- }, _ = y.forwardRef(({
60
+ }, k = y.forwardRef(({
61
61
  tabs: e = [],
62
62
  tabWidth: t = "auto",
63
63
  tabMenuSize: n = "medium",
@@ -83,7 +83,7 @@ const R = ({
83
83
  }
84
84
  );
85
85
  });
86
- _.displayName = "MenuTabs";
86
+ k.displayName = "MenuTabs";
87
87
  export {
88
- _ as default
88
+ k as default
89
89
  };
package/lib/tabs/Panel.js CHANGED
@@ -1,4 +1,4 @@
1
- import { j as a } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as a } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useRef as l, useState as C, useCallback as H, useEffect as L } from "react";
3
3
  import { onDeniedOptions as b, getCurrentThreshold as w } from "./tabHelpers.js";
4
4
  import { actionsOnPermissionDenied as z } from "../permissionValidations.js";
@@ -1,57 +1,57 @@
1
- import { j as G } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import H, { createContext as J, useState as B, useRef as K, useMemo as I, useCallback as x, useEffect as C } from "react";
3
- import D from "lodash";
4
- import { getTabs as E } from "./tabHelpers.js";
1
+ import { j as G } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
+ import H, { createContext as J, useState as C, useRef as K, useMemo as I, useCallback as x, useEffect as D } from "react";
3
+ import E from "lodash";
4
+ import { getTabs as M } from "./tabHelpers.js";
5
5
  const L = J({});
6
6
  function X({
7
- children: M,
7
+ children: O,
8
8
  tabs: b,
9
9
  container: d,
10
10
  selectedTab: f = null,
11
11
  onTabChange: T,
12
12
  onTabClose: p,
13
13
  tabsWidth: c,
14
- firstTabIdent: O = !1,
15
- keepTabOriginalPosition: W = !0
14
+ firstTabIdent: W = !1,
15
+ keepTabOriginalPosition: k = !0
16
16
  }) {
17
- var y, _;
18
- const [o, l] = H.useState(f), [w, R] = B(() => {
17
+ var y, B;
18
+ const [o, l] = H.useState(f), [w, R] = C(() => {
19
19
  var e;
20
20
  return ((e = d.current) == null ? void 0 : e.clientWidth) ?? 0;
21
- }), [t, a] = B(E(b)), v = K(null), h = (((y = v.current) == null ? void 0 : y.clientWidth) ?? 0) - 38 - (O ? 15 : 0), k = I(() => typeof c == "string" ? c === "auto" ? 100 : parseInt(c) || 100 : c, [c]), m = Math.round(h / k);
22
- f && f !== o && l(f), t.length > 0 && o === null && l((_ = t[0]) == null ? void 0 : _.id);
23
- const u = I(() => h === 0 ? [] : t.slice(m), [t, m, w]), z = I(() => t.slice(0, m), [t, m, w]), q = t.length, S = x((e) => {
24
- const n = u.findIndex((r) => r.id === e);
25
- if (n !== -1) {
26
- const r = t.findIndex((i) => i.id === e), s = u[n];
21
+ }), [n, a] = C(M(b)), v = K(null), h = (((y = v.current) == null ? void 0 : y.clientWidth) ?? 0) - 38 - (W ? 15 : 0), _ = I(() => typeof c == "string" ? c === "auto" ? 100 : parseInt(c) || 100 : c, [c]), m = Math.round(h / _);
22
+ f && f !== o && l(f), n.length > 0 && o === null && l((B = n[0]) == null ? void 0 : B.id);
23
+ const u = I(() => h === 0 ? [] : n.slice(m), [n, m, w]), z = I(() => n.slice(0, m), [n, m, w]), q = n.length, S = x((e) => {
24
+ const t = u.findIndex((r) => r.id === e);
25
+ if (t !== -1) {
26
+ const r = n.findIndex((i) => i.id === e), s = u[t];
27
27
  a((i) => (i.splice(r, 1), [s, ...i]));
28
28
  }
29
- }, [a, z, t, u]), g = x((e) => {
30
- W || S(e), l(e), T && T(e);
29
+ }, [a, z, n, u]), g = x((e) => {
30
+ k || S(e), l(e), T && T(e);
31
31
  }, [T, l, S]), A = x((e) => {
32
- const n = t.findIndex((s) => s.id === e), r = n === 0 ? t[n + 1] : t[n - 1];
33
- o === e && g(r.id), n !== -1 && a((s) => (s.splice(n, 1), s)), p && p(String(e));
34
- }, [p, t, u, o]), j = x((e) => {
32
+ const t = n.findIndex((s) => s.id === e), r = t === 0 ? n[t + 1] : n[t - 1];
33
+ o === e && g(r.id), t !== -1 && a((s) => (s.splice(t, 1), s)), p && p(String(e));
34
+ }, [p, n, u, o]), j = x((e) => {
35
35
  R(e.width);
36
36
  }, [R]);
37
- return C(() => {
38
- const e = E(b);
39
- if (e !== t) {
40
- const n = D.differenceBy(e, t, "id"), r = D.differenceBy(t, e, "id").map((s) => s.id);
37
+ return D(() => {
38
+ const e = M(b);
39
+ if (e !== n) {
40
+ const t = E.differenceBy(e, n, "id"), r = E.differenceBy(n, e, "id").map((s) => s.id);
41
41
  a((s) => {
42
42
  let i = s;
43
- return r && (i = i.filter((F) => !r.includes(F.id))), [...i, ...n];
43
+ return r && (i = i.filter((F) => !r.includes(F.id))), [...i, ...t];
44
44
  });
45
45
  }
46
- }, [b]), C(() => {
47
- const e = new ResizeObserver(([n]) => {
48
- j(n.contentRect);
46
+ }, [b]), D(() => {
47
+ const e = new ResizeObserver(([t]) => {
48
+ j(t.contentRect);
49
49
  });
50
50
  return d.current && e.observe(d.current), () => {
51
51
  e.disconnect();
52
52
  };
53
53
  }, [d.current, j]), /* @__PURE__ */ G.jsx(L.Provider, { value: {
54
- tabs: t,
54
+ tabs: n,
55
55
  menuTabs: z,
56
56
  dropdownTabs: u,
57
57
  containerWidth: w,
@@ -60,7 +60,7 @@ function X({
60
60
  selectedTabId: o,
61
61
  removeTab: A,
62
62
  menuRef: v
63
- }, children: M });
63
+ }, children: O });
64
64
  }
65
65
  export {
66
66
  L as TabsContext,
package/lib/tabs/index.js CHANGED
@@ -1,9 +1,9 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useRef as R, useMemo as T, Fragment as n } from "react";
3
3
  import b from "./Menu.js";
4
4
  import { default as z } from "./Panel.js";
5
5
  import { tabsClass as C } from "./tabHelpers.js";
6
- import "../chunks/tabs.Cvj2MJH6.js";
6
+ import "../chunks/tabs.BP3DB7Gx.js";
7
7
  import { TabsProvider as g } from "./context.js";
8
8
  const q = ({
9
9
  toolbar: f,
@@ -3,8 +3,8 @@ import { OPTIONS_ON_DENIED as r } from "../permissionValidations.js";
3
3
  function h(t, n) {
4
4
  if (n < 0) return 0;
5
5
  if (n > 1) return 1;
6
- const { scrollHeight: o, clientHeight: u } = t, s = o - u, c = Math.round(o * n), f = Math.round(s - s * 0.3);
7
- return Math.min(c, f);
6
+ const { scrollHeight: o, clientHeight: c } = t, s = o - c, u = Math.round(o * n), f = Math.round(s - s * 0.3);
7
+ return Math.min(u, f);
8
8
  }
9
9
  const p = (t) => (i.Children.map(t, (e) => {
10
10
  if (!e || !i.isValidElement(e)) return null;
@@ -1,8 +1,8 @@
1
- import { j as m } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as m } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { forwardRef as f } from "react";
3
3
  import c from "lodash";
4
4
  import x from "../internals/withTooltip.js";
5
- const o = f(({
5
+ import '../assets/index4.css';const o = f(({
6
6
  as: t = "span",
7
7
  children: e,
8
8
  className: n,
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as B } from "react";
3
3
  import j from "../buttons/Button.js";
4
4
  import c from "../buttons/PrimaryButton.js";
@@ -14,7 +14,7 @@ import w from "../buttons/AddButton.js";
14
14
  import A from "../buttons/ActivateButton.js";
15
15
  import D from "../buttons/InactivateButton.js";
16
16
  import E from "../buttons/RestoreButton.js";
17
- /* empty css */
17
+ import '../assets/button.css';/* empty css */
18
18
  import I from "./helpers.js";
19
19
  const Q = ({
20
20
  size: r,
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as x } from "react";
3
3
  import u from "../labels/DefaultLabel.js";
4
4
  import b from "../labels/DangerLabel.js";
@@ -6,7 +6,7 @@ import c from "../labels/PrimaryLabel.js";
6
6
  import j from "../labels/WarningLabel.js";
7
7
  import g from "../labels/SuccessLabel.js";
8
8
  import L from "../labels/InfoLabel.js";
9
- /* empty css */
9
+ import '../assets/label.css';/* empty css */
10
10
  import d from "./helpers.js";
11
11
  const H = ({
12
12
  size: t,
@@ -1,4 +1,4 @@
1
- import { j as a } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as a } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  const r = () => /* @__PURE__ */ a.jsx("div", { className: "separator" });
3
3
  export {
4
4
  r as default
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  const t = ({ children: o, style: r = {} }) => /* @__PURE__ */ s.jsx("div", { className: "toolbar-group", style: r, children: o });
3
3
  export {
4
4
  t as default
@@ -1,9 +1,9 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { default as i } from "./ToolBarGroup.js";
3
3
  import { default as j } from "./Separator.js";
4
4
  import { default as v } from "./ButtonBar.js";
5
5
  import { default as $ } from "./LabelBar.js";
6
- /* empty css */
6
+ import '../assets/toolbar.css';/* empty css */
7
7
  import m from "./helpers.js";
8
8
  const n = ({
9
9
  innerRef: t,
@@ -1,8 +1,8 @@
1
- import { j as h } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as h } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useRef as a, useEffect as n } from "react";
3
3
  import l from "react-dom";
4
4
  import { v } from "../chunks/v1.CDXKvGzE.js";
5
- const x = ({
5
+ import '../assets/index5.css';const x = ({
6
6
  text: m,
7
7
  textError: r,
8
8
  tooltipRef: u,
@@ -1,10 +1,10 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as i, useState as l, useEffect as n } from "react";
3
3
  import "lodash";
4
4
  import "../table/helpers.js";
5
5
  import f from "../table/Body.js";
6
6
  import "../icons/index.js";
7
- /* empty css */
7
+ import '../assets/table.css';import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  import { TreeTableContext as c, searchRootElements as d } from "./helpers.js";
@@ -1,10 +1,10 @@
1
- import { j as t } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as t } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useContext as m } from "react";
3
3
  import "lodash";
4
4
  import i from "../table/Header.js";
5
5
  import p from "../table/Row.js";
6
6
  import "../table/helpers.js";
7
- /* empty css */
7
+ import '../assets/table.css';import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
8
8
  /* empty css */
9
9
  import a from "../table/HeaderColumn.js";
10
10
  /* empty css */
@@ -1,15 +1,15 @@
1
- import { j as e } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import M, { useContext as ee, useState as m, useRef as oe, useEffect as p, Fragment as N, createElement as ne } from "react";
1
+ import { j as e } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
+ import A, { useContext as ee, useState as m, useRef as oe, useEffect as p, Fragment as N, createElement as ne } from "react";
3
3
  import te from "lodash";
4
4
  import se from "../icons/index.js";
5
- import A from "../spinner/SpinnerLoading.js";
5
+ import D from "../spinner/SpinnerLoading.js";
6
6
  import "../table/helpers.js";
7
7
  import R from "../table/Row.js";
8
- /* empty css */
8
+ import '../assets/table.css';import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
9
9
  /* empty css */
10
- import D from "../table/RowColumn.js";
10
+ import V from "../table/RowColumn.js";
11
11
  /* empty css */
12
- import V from "../toolbar/index.js";
12
+ import _ from "../toolbar/index.js";
13
13
  import { TreeTableContext as re, searchChildrensPerRow as le } from "./helpers.js";
14
14
  import K from "../toolbar/ToolBarGroup.js";
15
15
  import { v as u } from "../chunks/v1.CDXKvGzE.js";
@@ -49,14 +49,14 @@ const ie = (T) => {
49
49
  }), i;
50
50
  }, O = (o) => {
51
51
  let s = [];
52
- return o && (s = M.Children.map(o, (n) => {
53
- if (M.isValidElement(n) && n.props) {
52
+ return o && (s = A.Children.map(o, (n) => {
53
+ if (A.isValidElement(n) && n.props) {
54
54
  const { validationKey: i, onNodeElementClick: h, ...f } = n.props;
55
55
  let c, y = {};
56
56
  return x && i && (c = U(i)), h && (y = {
57
57
  ...y,
58
- onClick: (_) => {
59
- h(d), _.stopPropagation && _.stopPropagation();
58
+ onClick: (M) => {
59
+ h(d), M.stopPropagation && M.stopPropagation();
60
60
  }
61
61
  }), ne(
62
62
  n.type,
@@ -82,7 +82,7 @@ const ie = (T) => {
82
82
  }, [F]), /* @__PURE__ */ e.jsxs(N, { children: [
83
83
  /* @__PURE__ */ e.jsxs(R, { ...T, dataId: l, customClass: "tree-row-element", children: [
84
84
  /* @__PURE__ */ e.jsx(
85
- D,
85
+ V,
86
86
  {
87
87
  ignoreTableColClick: !0,
88
88
  style: r[0].style,
@@ -112,7 +112,7 @@ const ie = (T) => {
112
112
  children: d[r[0].name]
113
113
  }
114
114
  ),
115
- /* @__PURE__ */ e.jsx("span", { className: "container-toolbar-buttons", children: /* @__PURE__ */ e.jsx(V, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ e.jsx(
115
+ /* @__PURE__ */ e.jsx("span", { className: "container-toolbar-buttons", children: /* @__PURE__ */ e.jsx(_, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ e.jsx(
116
116
  K,
117
117
  {
118
118
  style: { float: "left", height: "fit-content", ...Y },
@@ -123,7 +123,7 @@ const ie = (T) => {
123
123
  ]
124
124
  }
125
125
  ),
126
- /* @__PURE__ */ e.jsx("span", { className: "container-toolbar-info", children: /* @__PURE__ */ e.jsx(V, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ e.jsx(
126
+ /* @__PURE__ */ e.jsx("span", { className: "container-toolbar-info", children: /* @__PURE__ */ e.jsx(_, { size: "small", customClass: "row-toolbar", children: /* @__PURE__ */ e.jsx(
127
127
  K,
128
128
  {
129
129
  style: { float: "right", height: "fit-content", gap: "4px", ...q },
@@ -135,9 +135,9 @@ const ie = (T) => {
135
135
  },
136
136
  `td-${r[0].name}-${u()}`
137
137
  ),
138
- r.slice(1).map((o) => /* @__PURE__ */ e.jsx(D, { style: { ...o.style }, ignoreTableColClick: !0, children: d[o.name] }, `key-${o.name}-${u()}`))
138
+ r.slice(1).map((o) => /* @__PURE__ */ e.jsx(V, { style: { ...o.style }, ignoreTableColClick: !0, children: d[o.name] }, `key-${o.name}-${u()}`))
139
139
  ] }),
140
- w && /* @__PURE__ */ e.jsx(N, { children: t && t.length === 0 && S ? /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx("td", { colSpan: r.length, className: "td-loading-childrens", children: /* @__PURE__ */ e.jsx("div", { className: "td-loading-childrens-container", children: /* @__PURE__ */ e.jsx(A, { size: "48px" }, "loading-childrens") }) }) }, "tr-loading-childrens") : /* @__PURE__ */ e.jsxs(N, { children: [
140
+ w && /* @__PURE__ */ e.jsx(N, { children: t && t.length === 0 && S ? /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx("td", { colSpan: r.length, className: "td-loading-childrens", children: /* @__PURE__ */ e.jsx("div", { className: "td-loading-childrens-container", children: /* @__PURE__ */ e.jsx(D, { size: "48px" }, "loading-childrens") }) }) }, "tr-loading-childrens") : /* @__PURE__ */ e.jsxs(N, { children: [
141
141
  t && t.map((o) => /* @__PURE__ */ e.jsx(
142
142
  ie,
143
143
  {
@@ -148,7 +148,7 @@ const ie = (T) => {
148
148
  },
149
149
  o[I]
150
150
  )),
151
- t && t.length !== 0 && S && /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx("td", { colSpan: r.length, className: "td-loading-childrens", children: /* @__PURE__ */ e.jsx("div", { className: "td-loading-childrens-container", children: /* @__PURE__ */ e.jsx(A, { size: "48px" }, "loading-childrens") }) }) }, "tr-loading-childrens")
151
+ t && t.length !== 0 && S && /* @__PURE__ */ e.jsx(R, { children: /* @__PURE__ */ e.jsx("td", { colSpan: r.length, className: "td-loading-childrens", children: /* @__PURE__ */ e.jsx("div", { className: "td-loading-childrens-container", children: /* @__PURE__ */ e.jsx(D, { size: "48px" }, "loading-childrens") }) }) }, "tr-loading-childrens")
152
152
  ] }) })
153
153
  ] });
154
154
  };
@@ -1,9 +1,9 @@
1
- import { j as e } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as e } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import t from "../table/index.js";
3
3
  import l from "./Body.js";
4
4
  import a from "./Header.js";
5
5
  import { TreeTableContext as m } from "./helpers.js";
6
- const c = (r) => {
6
+ import '../assets/index17.css';const c = (r) => {
7
7
  const o = {
8
8
  ...r
9
9
  };
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  const l = (t) => {
3
3
  const { title: e, customClass: r, children: a } = t;
4
4
  return /* @__PURE__ */ s.jsx("div", { className: `treeviewheader ${r}`, children: e ? /* @__PURE__ */ s.jsx("div", { className: "title", children: e }) : a });
@@ -1,11 +1,11 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import C, { useState as a, useRef as re, useContext as de, useEffect as ae } from "react";
3
3
  import ce from "lodash";
4
- import { C as me, L as O } from "../chunks/tabs.Cvj2MJH6.js";
4
+ import { C as me, L as O } from "../chunks/tabs.BP3DB7Gx.js";
5
5
  import M from "../icons/index.js";
6
6
  import { TreeviewContext as ue } from "./constants.js";
7
7
  import pe from "../buttons/Button.js";
8
- /* empty css */
8
+ import '../assets/button.css';/* empty css */
9
9
  import fe from "../list/index.js";
10
10
  import he from "../toolbar/index.js";
11
11
  import xe from "../spinner/SpinnerLoading.js";
@@ -22,10 +22,10 @@ const h = (i) => !!(i.itens && i.itens.length > 0), Oe = (i) => {
22
22
  nodeElementsValidations: x,
23
23
  onNodeClick: b,
24
24
  children: V,
25
- nodeMenuButtonSize: _ = "small",
26
- selectedNodeId: A,
27
- alwaysShowArrow: K = !1,
28
- customClass: $ = "",
25
+ nodeMenuButtonSize: A = "small",
26
+ selectedNodeId: K,
27
+ alwaysShowArrow: $ = !1,
28
+ customClass: _ = "",
29
29
  customStyle: G
30
30
  } = i, [e, H] = a(i.node), [j, k] = a(c && h(e)), [U, I] = a(c && h(e)), [r, m] = a(!1), [W, v] = a(!1), F = re(null), {
31
31
  valuePropName: g,
@@ -46,7 +46,7 @@ const h = (i) => !!(i.itens && i.itens.length > 0), Oe = (i) => {
46
46
  }, ne = () => {
47
47
  const o = D.includes(e.id);
48
48
  let n = /* @__PURE__ */ s.jsx("noscript", {});
49
- return (e.itens && e.itens.length > 0 || K) && (n = /* @__PURE__ */ s.jsx(
49
+ return (e.itens && e.itens.length > 0 || $) && (n = /* @__PURE__ */ s.jsx(
50
50
  "span",
51
51
  {
52
52
  tabIndex: 0,
@@ -102,7 +102,7 @@ const h = (i) => !!(i.itens && i.itens.length > 0), Oe = (i) => {
102
102
  "li",
103
103
  {
104
104
  style: G,
105
- className: `treeviewitem ${$}`,
105
+ className: `treeviewitem ${_}`,
106
106
  children: [
107
107
  ne(),
108
108
  /* @__PURE__ */ s.jsxs(
@@ -111,7 +111,7 @@ const h = (i) => !!(i.itens && i.itens.length > 0), Oe = (i) => {
111
111
  className: "label",
112
112
  style: {
113
113
  textDecoration: b ? void 0 : "none",
114
- backgroundColor: A === e.id ? "rgb(209, 209, 209)" : void 0
114
+ backgroundColor: K === e.id ? "rgb(209, 209, 209)" : void 0
115
115
  },
116
116
  ref: F,
117
117
  role: "button",
@@ -140,7 +140,7 @@ const h = (i) => !!(i.itens && i.itens.length > 0), Oe = (i) => {
140
140
  {
141
141
  dropdown: !0,
142
142
  dropdownAlign: "left",
143
- size: _,
143
+ size: A,
144
144
  showIconDropdown: !1,
145
145
  icon: /* @__PURE__ */ s.jsx(M, { name: "menu", style: { margin: 0 } }),
146
146
  customClass: "node-menu",
@@ -1,10 +1,10 @@
1
- import { j as g } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as g } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as u, useEffect as q } from "react";
3
3
  import w from "lodash";
4
4
  import pe from "./Node.js";
5
5
  import { default as Oe } from "./Header.js";
6
6
  import { TreeviewContext as Se } from "./constants.js";
7
- const qe = (h) => {
7
+ import '../assets/index18.css';const qe = (h) => {
8
8
  const {
9
9
  selectedIds: f = [],
10
10
  enableDynamicData: $,
@@ -1,10 +1,10 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
1
+ import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
2
  import { useState as r, useRef as v, useCallback as V, useEffect as w, useMemo as X } from "react";
3
3
  import { createPortal as Y } from "react-dom";
4
4
  import Z from "../buttons/Button.js";
5
5
  import y from "../buttons/PrimaryButton.js";
6
6
  import "../icons/index.js";
7
- /* empty css */
7
+ import '../assets/button.css';import '../assets/index19.css';/* empty css */
8
8
  import { STEP_POSITIONS as h, ARROW_WIDTH as G, ARROW_HEIGHT as U } from "./helpers.js";
9
9
  const re = ($) => {
10
10
  const {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.26-beta.2",
3
+ "version": "1.1.26-beta.3",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "type": "module",
6
6
  "files": [
@@ -86,8 +86,8 @@
86
86
  "identity-obj-proxy": "3.0.0",
87
87
  "jiti": "2.5.1",
88
88
  "jsdom": "26.1.0",
89
- "react": "19.0.0",
90
- "react-dom": "19.0.0",
89
+ "react": "19.1.1",
90
+ "react-dom": "19.1.1",
91
91
  "resize-observer-polyfill": "1.5.1",
92
92
  "sass": "1.74.1",
93
93
  "ts-node": "10.9.2",
@@ -96,7 +96,7 @@
96
96
  "typescript-eslint": "8.42.0",
97
97
  "vite": "6.2.3",
98
98
  "vite-plugin-dts": "^4.5.4",
99
- "vite-plugin-lib-inject-css": "2.2.1",
99
+ "vite-plugin-lib-inject-css": "2.2.2",
100
100
  "vitest": "3.2.4"
101
101
  }
102
102
  }