linear-react-components-ui 1.1.26-beta-1 → 1.1.26-beta.10

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 (225) hide show
  1. package/lib/alerts/AlertContainer.js +8 -2
  2. package/lib/alerts/AlertProvider.js +11 -5
  3. package/lib/alerts/BaseAlert.js +10 -8
  4. package/lib/alerts/Message.js +91 -64
  5. package/lib/alerts/withAlert.js +10 -6
  6. package/lib/assets/BaseAlert.css +1 -1
  7. package/lib/assets/Content.css +1 -1
  8. package/lib/assets/DefaultFile.css +1 -1
  9. package/lib/assets/Drawer.css +1 -1
  10. package/lib/assets/index11.css +1 -1
  11. package/lib/assets/index5.css +1 -1
  12. package/lib/avatar/index.js +29 -51
  13. package/lib/badge/index.js +25 -23
  14. package/lib/buttons/ActivateButton.js +9 -4
  15. package/lib/buttons/AddButton.js +12 -5
  16. package/lib/buttons/Button.js +16 -5
  17. package/lib/buttons/ButtonGroups.js +10 -3
  18. package/lib/buttons/CancelButton.js +14 -4
  19. package/lib/buttons/DangerButton.js +15 -4
  20. package/lib/buttons/DefaultButton.js +76 -111
  21. package/lib/buttons/DestroyButton.js +21 -5
  22. package/lib/buttons/EditButton.js +9 -4
  23. package/lib/buttons/InactivateButton.js +9 -4
  24. package/lib/buttons/InfoButton.js +15 -4
  25. package/lib/buttons/PrimaryButton.js +15 -4
  26. package/lib/buttons/RestoreButton.js +9 -4
  27. package/lib/buttons/SaveButton.js +14 -4
  28. package/lib/buttons/SuccessButton.js +15 -4
  29. package/lib/buttons/WarningButton.js +15 -4
  30. package/lib/buttons/button_container/index.js +21 -16
  31. package/lib/buttons/split_button/index.js +53 -55
  32. package/lib/calendar/DangerCalendar.js +18 -4
  33. package/lib/calendar/InfoCalendar.js +18 -4
  34. package/lib/calendar/PrimaryCalendar.js +18 -4
  35. package/lib/calendar/SuccessCalendar.js +18 -4
  36. package/lib/calendar/WarningCalendar.js +18 -4
  37. package/lib/calendar/base/Day.js +32 -22
  38. package/lib/calendar/base/Month.js +24 -21
  39. package/lib/calendar/base/Week.js +20 -19
  40. package/lib/calendar/base/helpers.js +11 -19
  41. package/lib/calendar/base/index.js +129 -97
  42. package/lib/checkbox/index.js +6 -5
  43. package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
  44. package/lib/chunks/{index.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
  45. package/lib/chunks/index.aw0XaUkg.js +266 -0
  46. package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
  47. package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
  48. package/lib/chunks/moment.DMLRxgRE.js +2589 -0
  49. package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
  50. package/lib/chunks/v1.Ds1rkxUj.js +49 -0
  51. package/lib/dialog/Alert.js +18 -17
  52. package/lib/dialog/Custom.js +42 -28
  53. package/lib/dialog/Error.js +18 -17
  54. package/lib/dialog/Information.js +18 -17
  55. package/lib/dialog/Question.js +43 -59
  56. package/lib/dialog/Warning.js +18 -17
  57. package/lib/dialog/base/Content.js +13 -4
  58. package/lib/dialog/base/Footer.js +8 -3
  59. package/lib/dialog/base/Header.js +4 -3
  60. package/lib/dialog/base/index.js +5 -4
  61. package/lib/dialog/form/index.js +5 -4
  62. package/lib/dialog/index.js +1 -1
  63. package/lib/dialog/wizard/index.js +11 -10
  64. package/lib/dialog/wizard/progressbar.js +96 -3
  65. package/lib/dialog/wizard/step.js +4 -3
  66. package/lib/dialog/wizard/useWizard.js +42 -29
  67. package/lib/drawer/Content.js +15 -8
  68. package/lib/drawer/Drawer.js +38 -35
  69. package/lib/drawer/Header.js +53 -40
  70. package/lib/drawer/helpers.js +2 -2
  71. package/lib/dropdown/Popup.js +4 -2
  72. package/lib/dropdown/withDropdown.js +75 -50
  73. package/lib/fieldset/index.js +66 -47
  74. package/lib/form/Field.js +88 -62
  75. package/lib/form/FieldArray.js +18 -39
  76. package/lib/form/FieldNumber.js +42 -38
  77. package/lib/form/FieldPeriod.js +90 -59
  78. package/lib/form/helpers.js +14 -11
  79. package/lib/form/index.js +88 -100
  80. package/lib/form/withFieldHOC.js +57 -48
  81. package/lib/form/withFormSecurity.js +15 -18
  82. package/lib/gridlayout/GridCol.js +21 -20
  83. package/lib/gridlayout/GridRow.js +22 -20
  84. package/lib/hint/helpers.js +6 -2
  85. package/lib/hint/index.js +27 -25
  86. package/lib/icons/helper.js +142 -569
  87. package/lib/icons/index.js +62 -57
  88. package/lib/index.js +20 -19
  89. package/lib/inputs/base/InputTextBase.js +121 -207
  90. package/lib/inputs/base/Label.js +27 -29
  91. package/lib/inputs/base/helpers.d.ts +3 -3
  92. package/lib/inputs/base/helpers.js +4 -2
  93. package/lib/inputs/color/index.js +52 -73
  94. package/lib/inputs/date/Dialog.js +15 -16
  95. package/lib/inputs/date/Dropdown.js +16 -14
  96. package/lib/inputs/date/helpers.js +7 -7
  97. package/lib/inputs/date/index.js +101 -147
  98. package/lib/inputs/errorMessage/index.js +21 -13
  99. package/lib/inputs/file/DefaultFile.js +64 -67
  100. package/lib/inputs/file/DragDropFile.js +79 -135
  101. package/lib/inputs/file/File.d.ts +1 -1
  102. package/lib/inputs/file/File.js +24 -39
  103. package/lib/inputs/file/FileButtonSettings.js +20 -17
  104. package/lib/inputs/inputHOC.js +38 -20
  105. package/lib/inputs/mask/BaseMask.js +51 -30
  106. package/lib/inputs/mask/Cnpj.js +42 -36
  107. package/lib/inputs/mask/Cpf.js +45 -33
  108. package/lib/inputs/mask/Phone.js +10 -6
  109. package/lib/inputs/mask/ZipCode.js +9 -4
  110. package/lib/inputs/mask/helpers.d.ts +33 -33
  111. package/lib/inputs/mask/helpers.js +44 -44
  112. package/lib/inputs/multiSelect/ActionButtons.js +35 -46
  113. package/lib/inputs/multiSelect/Dropdown.js +94 -133
  114. package/lib/inputs/multiSelect/helper.js +4 -7
  115. package/lib/inputs/multiSelect/index.js +167 -127
  116. package/lib/inputs/number/BaseNumber.js +43 -31
  117. package/lib/inputs/number/Currency.js +19 -12
  118. package/lib/inputs/number/Decimal.js +9 -4
  119. package/lib/inputs/number/index.js +31 -35
  120. package/lib/inputs/period/Dialog.js +16 -16
  121. package/lib/inputs/period/Dropdown.js +15 -15
  122. package/lib/inputs/period/PeriodList.js +41 -27
  123. package/lib/inputs/period/helper.js +8 -4
  124. package/lib/inputs/period/index.js +192 -330
  125. package/lib/inputs/search/index.js +95 -71
  126. package/lib/inputs/select/ActionButtons.js +24 -45
  127. package/lib/inputs/select/Dropdown.js +61 -110
  128. package/lib/inputs/select/helper.d.ts +1 -1
  129. package/lib/inputs/select/helper.js +43 -45
  130. package/lib/inputs/select/index.js +23 -25
  131. package/lib/inputs/select/multiple/Selecteds.js +23 -19
  132. package/lib/inputs/select/multiple/index.js +106 -176
  133. package/lib/inputs/select/simple/index.js +126 -196
  134. package/lib/inputs/text/index.js +9 -4
  135. package/lib/inputs/textarea/index.js +13 -15
  136. package/lib/internals/withTooltip.js +114 -67
  137. package/lib/labelMessages/index.js +50 -45
  138. package/lib/labels/DangerLabel.js +18 -4
  139. package/lib/labels/DefaultLabel.js +53 -39
  140. package/lib/labels/InfoLabel.js +18 -4
  141. package/lib/labels/PrimaryLabel.js +18 -4
  142. package/lib/labels/SuccessLabel.js +18 -4
  143. package/lib/labels/WarningLabel.js +18 -4
  144. package/lib/labels/label_container/index.js +15 -9
  145. package/lib/list/Header.js +18 -6
  146. package/lib/list/Item.js +5 -4
  147. package/lib/list/Separator.js +8 -3
  148. package/lib/list/helpers.js +2 -2
  149. package/lib/list/index.js +21 -18
  150. package/lib/menus/float/MenuItem.js +49 -52
  151. package/lib/menus/float/SubMenuContainer.d.ts +10 -10
  152. package/lib/menus/float/index.js +102 -81
  153. package/lib/menus/sidenav/ExpandMenu.js +17 -15
  154. package/lib/menus/sidenav/MenuLink.js +21 -14
  155. package/lib/menus/sidenav/NavMenuGroup.js +19 -14
  156. package/lib/menus/sidenav/NavMenuItem.js +131 -111
  157. package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
  158. package/lib/menus/sidenav/helpers.js +4 -4
  159. package/lib/menus/sidenav/index.js +145 -123
  160. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
  161. package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
  162. package/lib/noPermission/index.js +13 -8
  163. package/lib/panel/Content.js +49 -40
  164. package/lib/panel/DangerPanel.js +10 -5
  165. package/lib/panel/Default.js +62 -36
  166. package/lib/panel/Header.js +53 -37
  167. package/lib/panel/InfoPanel.js +10 -5
  168. package/lib/panel/PrimaryPanel.js +10 -5
  169. package/lib/panel/SuccessPanel.js +10 -5
  170. package/lib/panel/ToolBar.js +17 -4
  171. package/lib/panel/WarningPanel.js +10 -5
  172. package/lib/panel/helpers.js +8 -5
  173. package/lib/permissionValidations.js +15 -11
  174. package/lib/popover/PopoverText.js +12 -5
  175. package/lib/popover/PopoverTitle.js +10 -3
  176. package/lib/popover/index.js +36 -56
  177. package/lib/progress/Bar.js +43 -34
  178. package/lib/progress/index.js +23 -18
  179. package/lib/radio/index.js +105 -89
  180. package/lib/shortcuts/index.js +20 -7
  181. package/lib/skeleton/SkeletonContainer.js +16 -6
  182. package/lib/skeleton/index.js +42 -18
  183. package/lib/spinner/SpinnerLoading.js +53 -16
  184. package/lib/spinner/index.js +47 -37
  185. package/lib/split/Split.js +83 -79
  186. package/lib/split/SplitSide.js +24 -16
  187. package/lib/table/Body.js +36 -49
  188. package/lib/table/Header.js +45 -35
  189. package/lib/table/HeaderColumn.js +40 -27
  190. package/lib/table/Row.js +47 -48
  191. package/lib/table/RowColumn.js +50 -38
  192. package/lib/table/helpers.js +3 -1
  193. package/lib/table/index.js +101 -104
  194. package/lib/tabs/DropdownTabs.js +64 -61
  195. package/lib/tabs/Menu.js +35 -49
  196. package/lib/tabs/MenuTabs.js +59 -84
  197. package/lib/tabs/Panel.js +57 -47
  198. package/lib/tabs/context.js +36 -40
  199. package/lib/tabs/index.js +69 -64
  200. package/lib/tabs/tabHelpers.js +10 -8
  201. package/lib/textContent/index.js +30 -32
  202. package/lib/toolbar/ButtonBar.js +62 -58
  203. package/lib/toolbar/LabelBar.js +46 -38
  204. package/lib/toolbar/Separator.js +8 -3
  205. package/lib/toolbar/ToolBarGroup.js +14 -3
  206. package/lib/toolbar/index.js +35 -29
  207. package/lib/tooltip/index.js +24 -24
  208. package/lib/treetable/Body.js +26 -27
  209. package/lib/treetable/Header.js +23 -19
  210. package/lib/treetable/Row.js +210 -147
  211. package/lib/treetable/helpers.d.ts +4 -5
  212. package/lib/treetable/helpers.js +6 -14
  213. package/lib/treetable/index.js +25 -15
  214. package/lib/treeview/Header.js +13 -5
  215. package/lib/treeview/Node.js +198 -175
  216. package/lib/treeview/index.js +257 -174
  217. package/lib/uitour/index.js +167 -166
  218. package/package.json +32 -43
  219. package/lib/chunks/index.CmrLK9Qe.js +0 -675
  220. package/lib/chunks/index.D5f6Ow9V.js +0 -89
  221. package/lib/chunks/index.yztgndLc.js +0 -206
  222. package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
  223. package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
  224. package/lib/chunks/v1.CDXKvGzE.js +0 -41
  225. /package/lib/assets/{index29.css → progressbar.css} +0 -0
@@ -9,21 +9,21 @@ declare function SubMenuContainer({ title, customClass, handlerGoBack, skeletoni
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
10
  declare namespace SubMenuContainer {
11
11
  namespace propTypes {
12
- const children: any;
13
- const handlerGoBack: any;
14
- const title: any;
15
- const customClass: any;
16
- const skeletonize: any;
17
- const skeletonQtty: any;
12
+ let children: any;
13
+ let handlerGoBack: any;
14
+ let title: any;
15
+ let customClass: any;
16
+ let skeletonize: any;
17
+ let skeletonQtty: any;
18
18
  }
19
19
  namespace defaultProps {
20
- const title_1: undefined;
20
+ let title_1: undefined;
21
21
  export { title_1 as title };
22
- const customClass_1: undefined;
22
+ let customClass_1: undefined;
23
23
  export { customClass_1 as customClass };
24
- const skeletonize_1: boolean;
24
+ let skeletonize_1: boolean;
25
25
  export { skeletonize_1 as skeletonize };
26
- const skeletonQtty_1: number;
26
+ let skeletonQtty_1: number;
27
27
  export { skeletonQtty_1 as skeletonQtty };
28
28
  }
29
29
  }
@@ -1,92 +1,113 @@
1
- import { j as e } from "../../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { default as E } from "./MenuItem.js";
3
- import { useEffect as f } from "react";
4
- import { P as i } from "../../chunks/index.Da--18GT.js";
5
- import m from "../../icons/index.js";
6
- import x from "../../skeleton/index.js";
7
- import h from "../../skeleton/SkeletonContainer.js";
8
- import j from "../../buttons/Button.js";
1
+ import { j as o } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as y } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { default as K } from "./MenuItem.js";
4
+ import { useEffect as z } from "react";
5
+ import { P as b } from "../../chunks/index.Df3kt2LQ.js";
6
+ import S from "../../icons/index.js";
7
+ import M from "../../skeleton/index.js";
8
+ import B from "../../skeleton/SkeletonContainer.js";
9
+ import F from "../../buttons/Button.js";
9
10
  import '../../assets/button.css';import '../../assets/index28.css';/* empty css */
10
- import w from "../../spinner/index.js";
11
- import C from "./helpers.js";
12
- const b = (o, t, r) => {
13
- if (o && t) {
14
- const l = Array.from({ length: t }, (n, s) => s + 1);
15
- return /* @__PURE__ */ e.jsx(h, { style: { flexDirection: "row", flexFlow: "row wrap" }, children: l.map((n) => /* @__PURE__ */ e.jsx(
16
- x,
17
- {
18
- height: 88,
19
- width: 88,
20
- style: {
21
- flexGrow: "unset",
22
- marginBottom: 5
23
- }
24
- },
25
- n
26
- )) });
11
+ import I from "../../spinner/index.js";
12
+ import _ from "./helpers.js";
13
+ const E = (k, e, f) => {
14
+ if (k && e) {
15
+ const j = Array.from({
16
+ length: e
17
+ }, (s, u) => u + 1);
18
+ return /* @__PURE__ */ o.jsx(B, { style: {
19
+ flexDirection: "row",
20
+ flexFlow: "row wrap"
21
+ }, children: j.map((s) => /* @__PURE__ */ o.jsx(M, { height: 88, width: 88, style: {
22
+ flexGrow: "unset",
23
+ marginBottom: 5
24
+ } }, s)) });
27
25
  }
28
- return r;
29
- }, u = ({
30
- title: o,
31
- customClass: t,
32
- handlerGoBack: r,
33
- skeletonize: l,
34
- skeletonQtty: n,
35
- children: s
36
- }) => (f(() => () => {
37
- r();
38
- }, []), /* @__PURE__ */ e.jsxs("div", { className: `floatsubmenu ${t}`, children: [
39
- /* @__PURE__ */ e.jsxs("div", { className: "submenuheader", children: [
40
- /* @__PURE__ */ e.jsx(m, { onClick: r, name: "arrowBack", pointerEvents: "all", style: { cursor: "pointer" } }),
41
- o && /* @__PURE__ */ e.jsx("span", { children: o })
42
- ] }),
43
- /* @__PURE__ */ e.jsx("div", { className: "submenucontent", children: b(l, n, s) })
44
- ] }));
45
- u.propTypes = {
46
- children: i.node.isRequired,
47
- handlerGoBack: i.func.isRequired,
48
- title: i.string,
49
- customClass: i.string,
50
- skeletonize: i.bool,
51
- skeletonQtty: i.number
26
+ return f;
27
+ }, g = (k) => {
28
+ const e = y.c(21), {
29
+ title: f,
30
+ customClass: j,
31
+ handlerGoBack: s,
32
+ skeletonize: u,
33
+ skeletonQtty: r,
34
+ children: i
35
+ } = k;
36
+ let p;
37
+ e[0] !== s ? (p = () => () => {
38
+ s();
39
+ }, e[0] = s, e[1] = p) : p = e[1];
40
+ let x;
41
+ e[2] === Symbol.for("react.memo_cache_sentinel") ? (x = [], e[2] = x) : x = e[2], z(p, x);
42
+ const h = `floatsubmenu ${j}`;
43
+ let d;
44
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (d = {
45
+ cursor: "pointer"
46
+ }, e[3] = d) : d = e[3];
47
+ let c;
48
+ e[4] !== s ? (c = /* @__PURE__ */ o.jsx(S, { onClick: s, name: "arrowBack", pointerEvents: "all", style: d }), e[4] = s, e[5] = c) : c = e[5];
49
+ let n;
50
+ e[6] !== f ? (n = f && /* @__PURE__ */ o.jsx("span", { children: f }), e[6] = f, e[7] = n) : n = e[7];
51
+ let a;
52
+ e[8] !== c || e[9] !== n ? (a = /* @__PURE__ */ o.jsxs("div", { className: "submenuheader", children: [
53
+ c,
54
+ n
55
+ ] }), e[8] = c, e[9] = n, e[10] = a) : a = e[10];
56
+ let m;
57
+ e[11] !== i || e[12] !== r || e[13] !== u ? (m = E(u, r, i), e[11] = i, e[12] = r, e[13] = u, e[14] = m) : m = e[14];
58
+ let t;
59
+ e[15] !== m ? (t = /* @__PURE__ */ o.jsx("div", { className: "submenucontent", children: m }), e[15] = m, e[16] = t) : t = e[16];
60
+ let l;
61
+ return e[17] !== h || e[18] !== a || e[19] !== t ? (l = /* @__PURE__ */ o.jsxs("div", { className: h, children: [
62
+ a,
63
+ t
64
+ ] }), e[17] = h, e[18] = a, e[19] = t, e[20] = l) : l = e[20], l;
52
65
  };
53
- u.defaultProps = {
66
+ g.propTypes = {
67
+ children: b.node.isRequired,
68
+ handlerGoBack: b.func.isRequired,
69
+ title: b.string,
70
+ customClass: b.string,
71
+ skeletonize: b.bool,
72
+ skeletonQtty: b.number
73
+ };
74
+ g.defaultProps = {
54
75
  title: void 0,
55
76
  customClass: void 0,
56
77
  skeletonize: !1,
57
78
  skeletonQtty: 3
58
79
  };
59
- const P = (o) => {
60
- const {
61
- iconSize: t = 16,
62
- iconColor: r = "#676464",
63
- customClass: l,
64
- children: n,
65
- spinner: s,
66
- isLoading: a,
67
- customClassMenuItem: c
68
- } = o, d = () => a ? /* @__PURE__ */ e.jsx(w, { delayTime: 0 }) : s, p = {
69
- customClassMenuItem: c
70
- };
71
- return /* @__PURE__ */ e.jsx(C.Provider, { value: p, children: /* @__PURE__ */ e.jsx("div", { className: `floatmenu-component ${l}`, children: /* @__PURE__ */ e.jsx(
72
- j,
73
- {
74
- transparent: !0,
75
- boxShadow: !1,
76
- dropdown: !0,
77
- icon: /* @__PURE__ */ e.jsx(m, { name: "grid", size: t, color: r }),
78
- customClass: "buttonfloat",
79
- tabIndex: -1,
80
- isFloatMenu: !0,
81
- customClassForDropdown: "-floatdropdown",
82
- showIconDropdown: !1,
83
- children: a || s ? d() : n
84
- },
85
- "button-"
86
- ) }) });
80
+ const V = (k) => {
81
+ const e = y.c(22), {
82
+ iconSize: f,
83
+ iconColor: j,
84
+ customClass: s,
85
+ children: u,
86
+ spinner: r,
87
+ isLoading: i,
88
+ customClassMenuItem: p
89
+ } = k, x = f === void 0 ? 16 : f, h = j === void 0 ? "#676464" : j;
90
+ let d;
91
+ e[0] !== i || e[1] !== r ? (d = () => i ? /* @__PURE__ */ o.jsx(I, { delayTime: 0 }) : r, e[0] = i, e[1] = r, e[2] = d) : d = e[2];
92
+ const c = d;
93
+ let n;
94
+ e[3] !== p ? (n = {
95
+ customClassMenuItem: p
96
+ }, e[3] = p, e[4] = n) : n = e[4];
97
+ const a = n, m = `floatmenu-component ${s}`;
98
+ let t;
99
+ e[5] !== h || e[6] !== x ? (t = /* @__PURE__ */ o.jsx(S, { name: "grid", size: x, color: h }), e[5] = h, e[6] = x, e[7] = t) : t = e[7];
100
+ let l;
101
+ e[8] !== u || e[9] !== c || e[10] !== i || e[11] !== r ? (l = i || r ? c() : u, e[8] = u, e[9] = c, e[10] = i, e[11] = r, e[12] = l) : l = e[12];
102
+ let C;
103
+ e[13] !== t || e[14] !== l ? (C = /* @__PURE__ */ o.jsx(F, { transparent: !0, boxShadow: !1, dropdown: !0, icon: t, customClass: "buttonfloat", tabIndex: -1, isFloatMenu: !0, customClassForDropdown: "-floatdropdown", showIconDropdown: !1, children: l }, "button-"), e[13] = t, e[14] = l, e[15] = C) : C = e[15];
104
+ let w;
105
+ e[16] !== m || e[17] !== C ? (w = /* @__PURE__ */ o.jsx("div", { className: m, children: C }), e[16] = m, e[17] = C, e[18] = w) : w = e[18];
106
+ let v;
107
+ return e[19] !== a || e[20] !== w ? (v = /* @__PURE__ */ o.jsx(_.Provider, { value: a, children: w }), e[19] = a, e[20] = w, e[21] = v) : v = e[21], v;
87
108
  };
88
109
  export {
89
- E as MenuItem,
90
- u as SubMenuContainer,
91
- P as default
110
+ K as MenuItem,
111
+ g as SubMenuContainer,
112
+ V as default
92
113
  };
@@ -1,17 +1,19 @@
1
- import { j as e } from "../../chunks/jsx-runtime.CYK1ROHF.js";
2
- import t from "../../icons/index.js";
3
- const m = ({ onExpandMenu: o, expandMenuCustomClass: n, iconName: s }) => /* @__PURE__ */ e.jsx(
4
- "div",
5
- {
6
- className: `openclosemenu ${n}`,
7
- role: "button",
8
- tabIndex: 0,
9
- onClick: o,
10
- onKeyPress: () => {
11
- },
12
- children: /* @__PURE__ */ e.jsx(t, { name: s, size: 16 })
13
- }
14
- );
1
+ import { j as r } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as a } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import l from "../../icons/index.js";
4
+ const f = (c) => {
5
+ const e = a.c(6), {
6
+ onExpandMenu: t,
7
+ expandMenuCustomClass: i,
8
+ iconName: s
9
+ } = c, m = `openclosemenu ${i}`;
10
+ let n;
11
+ e[0] !== s ? (n = /* @__PURE__ */ r.jsx(l, { name: s, size: 16 }), e[0] = s, e[1] = n) : n = e[1];
12
+ let o;
13
+ return e[2] !== t || e[3] !== m || e[4] !== n ? (o = /* @__PURE__ */ r.jsx("div", { className: m, role: "button", tabIndex: 0, onClick: t, onKeyPress: p, children: n }), e[2] = t, e[3] = m, e[4] = n, e[5] = o) : o = e[5], o;
14
+ };
15
+ function p() {
16
+ }
15
17
  export {
16
- m as default
18
+ f as default
17
19
  };
@@ -1,17 +1,24 @@
1
- import { j as s } from "../../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { L as m } from "../../chunks/index.CmrLK9Qe.js";
3
- import e from "../../internals/withTooltip.js";
4
- const f = ({ url: o, children: t, targetRef: i, disabled: n }) => o && !n ? /* @__PURE__ */ s.jsx(
5
- m,
6
- {
7
- to: o,
8
- className: "menulink",
9
- ref: (r) => {
10
- i && i(r);
11
- },
12
- children: t
1
+ import { j as f } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { Link as p } from "react-router-dom";
4
+ import u from "../../internals/withTooltip.js";
5
+ const a = (s) => {
6
+ const t = c.c(6), {
7
+ url: r,
8
+ children: i,
9
+ targetRef: o,
10
+ disabled: m
11
+ } = s;
12
+ if (r && !m) {
13
+ let e;
14
+ t[0] !== o ? (e = (l) => {
15
+ o && o(l);
16
+ }, t[0] = o, t[1] = e) : e = t[1];
17
+ let n;
18
+ return t[2] !== i || t[3] !== e || t[4] !== r ? (n = /* @__PURE__ */ f.jsx(p, { to: r, className: "menulink", ref: e, children: i }), t[2] = i, t[3] = e, t[4] = r, t[5] = n) : n = t[5], n;
13
19
  }
14
- ) : t, k = e(f);
20
+ return i;
21
+ }, L = u(a);
15
22
  export {
16
- k as default
23
+ L as default
17
24
  };
@@ -1,17 +1,22 @@
1
- import { j as m } from "../../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { useContext as n } from "react";
3
- import u, { SideNavContext as a } from "./helpers.js";
4
- const l = ({ children: s, scrollable: t, style: e }) => {
5
- const { isExpanded: o, menuSize: r } = n(a);
6
- return /* @__PURE__ */ m.jsx(
7
- "ul",
8
- {
9
- style: e,
10
- className: `${t && "customscroll"} ${u(o, r)}`,
11
- children: s
12
- }
13
- );
1
+ import { j as a } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as u } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useContext as p } from "react";
4
+ import x, { SideNavContext as f } from "./helpers.js";
5
+ const N = (c) => {
6
+ const t = u.c(7), {
7
+ children: o,
8
+ scrollable: i,
9
+ style: r
10
+ } = c, {
11
+ isExpanded: l,
12
+ menuSize: n
13
+ } = p(f);
14
+ let e;
15
+ t[0] !== l || t[1] !== n ? (e = x(l, n), t[0] = l, t[1] = n, t[2] = e) : e = t[2];
16
+ const m = `${i && "customscroll"} ${e}`;
17
+ let s;
18
+ return t[3] !== o || t[4] !== r || t[5] !== m ? (s = /* @__PURE__ */ a.jsx("ul", { style: r, className: m, children: o }), t[3] = o, t[4] = r, t[5] = m, t[6] = s) : s = t[6], s;
14
19
  };
15
20
  export {
16
- l as default
21
+ N as default
17
22
  };
@@ -1,116 +1,136 @@
1
- import { j as n } from "../../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { useState as l, useRef as p, useContext as q, useEffect as R, Fragment as G } from "react";
3
- import J from "../../internals/withTooltip.js";
4
- import K from "../../icons/index.js";
5
- import U from "./MenuLink.js";
6
- import { SideNavContext as X, SubMenuContext as Y } from "./helpers.js";
7
- import { actionsOnPermissionDenied as Z, OPTIONS_ON_DENIED as H } from "../../permissionValidations.js";
8
- const ee = (x) => {
9
- const {
10
- iconName: b,
11
- title: w,
12
- children: m,
13
- childrenIsSubMenu: C = !0,
14
- url: y,
15
- customClass: O,
16
- permissionAttr: T,
17
- maxWidth: $ = "90%",
18
- minWidth: k = 500,
19
- columnsQtty: L,
20
- targetRef: S,
21
- disableDefaultStyle: v = !1,
22
- style: P,
23
- customClassForDropdown: W,
24
- showDropdownOnClick: s = !1,
25
- ...te
26
- } = x, [o, u] = l(!1), [c, M] = l({}), [N, d] = l(!1), j = p(null), f = p(null), g = p(null), z = [H.disabled, H.unvisible], [F] = l(Z(z, T)), { isExpanded: B, menuSize: h, openSearchMenuPopup: _ } = q(X), { unvisible: A, disabled: a } = F, Q = (e) => {
27
- if (s) return;
28
- const i = window.innerHeight, t = e.target.getBoundingClientRect();
29
- u(!0), M(t), t.bottom >= i - 150 && d(!0);
30
- }, D = (e) => {
31
- if (s && e) {
32
- const i = e.target;
33
- if (i === g.current) {
34
- const r = window.innerHeight, t = i.getBoundingClientRect();
35
- u(!o), M(t), t.bottom >= r - 150 && d(!0);
1
+ import { j as s } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as xe } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useState as F, useRef as ie, useContext as be, useEffect as me, Fragment as we } from "react";
4
+ import ve from "../../internals/withTooltip.js";
5
+ import Se from "../../icons/index.js";
6
+ import Ce from "./MenuLink.js";
7
+ import { SideNavContext as Me, SubMenuContext as Ne } from "./helpers.js";
8
+ import { actionsOnPermissionDenied as je, OPTIONS_ON_DENIED as fe } from "../../permissionValidations.js";
9
+ const De = (N) => {
10
+ const e = xe.c(67), {
11
+ iconName: j,
12
+ title: c,
13
+ children: v,
14
+ childrenIsSubMenu: se,
15
+ url: de,
16
+ customClass: he,
17
+ permissionAttr: B,
18
+ maxWidth: oe,
19
+ minWidth: le,
20
+ columnsQtty: A,
21
+ targetRef: D,
22
+ disableDefaultStyle: re,
23
+ style: Q,
24
+ customClassForDropdown: V,
25
+ showDropdownOnClick: ce
26
+ } = N, E = se === void 0 ? !0 : se, q = oe === void 0 ? "90%" : oe, G = le === void 0 ? 500 : le, I = re === void 0 ? !1 : re, t = ce === void 0 ? !1 : ce, [i, R] = F(!1);
27
+ let y;
28
+ e[0] === Symbol.for("react.memo_cache_sentinel") ? (y = {}, e[0] = y) : y = e[0];
29
+ const [o, ue] = F(y), [u, J] = F(!1), ae = ie(null), K = ie(null), U = ie(null);
30
+ let H, O;
31
+ if (e[1] !== B) {
32
+ const n = [fe.disabled, fe.unvisible];
33
+ H = F, O = je(n, B), e[1] = B, e[2] = H, e[3] = O;
34
+ } else
35
+ H = e[2], O = e[3];
36
+ const [ge] = H(O), {
37
+ isExpanded: X,
38
+ menuSize: S,
39
+ openSearchMenuPopup: Y
40
+ } = be(Me), {
41
+ unvisible: pe,
42
+ disabled: l
43
+ } = ge;
44
+ let $;
45
+ e[4] !== t ? ($ = (n) => {
46
+ if (t)
47
+ return;
48
+ const r = window.innerHeight, M = n.target.getBoundingClientRect();
49
+ R(!0), ue(M), M.bottom >= r - 150 && J(!0);
50
+ }, e[4] = t, e[5] = $) : $ = e[5];
51
+ const Z = $;
52
+ let T;
53
+ e[6] !== t || e[7] !== i ? (T = (n) => {
54
+ if (t && n) {
55
+ const r = n.target;
56
+ if (r === U.current) {
57
+ const C = window.innerHeight, M = r.getBoundingClientRect();
58
+ R(!i), ue(M), M.bottom >= C - 150 && J(!0);
36
59
  }
37
60
  }
38
- }, V = {
39
- toggleSubMenu: D
40
- };
41
- return R(() => {
42
- o && s && document.addEventListener("click", (e) => {
43
- var t;
44
- const i = e.target;
45
- ((t = g.current) == null ? void 0 : t.contains(i)) || u(!1);
61
+ }, e[6] = t, e[7] = i, e[8] = T) : T = e[8];
62
+ const a = T;
63
+ let k;
64
+ e[9] !== a ? (k = {
65
+ toggleSubMenu: a
66
+ }, e[9] = a, e[10] = k) : k = e[10];
67
+ const ee = k;
68
+ let W, _;
69
+ e[11] !== t || e[12] !== i ? (W = () => {
70
+ i && t && document.addEventListener("click", (n) => {
71
+ const r = n.target;
72
+ U.current?.contains(r) || R(!1);
46
73
  });
47
- }, [o, s]), R(() => {
48
- var t, E, I;
49
- const e = ((t = j.current) == null ? void 0 : t.clientHeight) || 0, i = ((E = f.current) == null ? void 0 : E.clientHeight) || 0, r = N ? "100%" : (window.innerHeight - c.top - (e - i) - 1).toString().concat("px") || "0px";
50
- (I = f.current) == null || I.style.setProperty("max-height", r);
51
- }, [o]), A ? null : /* @__PURE__ */ n.jsx(Y.Provider, { value: V, children: /* @__PURE__ */ n.jsxs(
52
- "li",
53
- {
54
- style: P,
55
- ref: (e) => {
56
- g.current = e, S && S(e);
57
- },
58
- className: `item ${y && !a && "-withlink"} ${O} ${a && "-disabled"}`,
59
- onMouseEnter: Q,
60
- onMouseLeave: () => {
61
- s || (u(!1), d(!1));
62
- },
63
- onClick: (e) => {
64
- s && D(e);
65
- },
66
- children: [
67
- /* @__PURE__ */ n.jsx(U, { disabled: a, ...x, targetRef: null, children: /* @__PURE__ */ n.jsxs(G, { children: [
68
- b && /* @__PURE__ */ n.jsx(
69
- K,
70
- {
71
- name: b,
72
- size: h === "small" && 16 || h === "medium" && 24 || h === "large" && 32 || 16,
73
- customClassForContainer: "menuicon-container",
74
- customClass: "menuicon"
75
- }
76
- ),
77
- B && /* @__PURE__ */ n.jsx("span", { className: "title", children: w }),
78
- !C && m
79
- ] }) }),
80
- o && m && C && !a && !_ && /* @__PURE__ */ n.jsxs(
81
- "div",
82
- {
83
- ref: j,
84
- className: `${W} ${v ? "" : "submenu-container"}`,
85
- style: N ? {
86
- marginLeft: c.width,
87
- bottom: "0",
88
- position: "fixed",
89
- zIndex: v ? 999999999 : void 0
90
- } : {
91
- marginLeft: c.width,
92
- top: c.top,
93
- minWidth: k,
94
- maxWidth: $
95
- },
96
- children: [
97
- /* @__PURE__ */ n.jsx("h1", { className: "title", children: w }),
98
- /* @__PURE__ */ n.jsx(
99
- "div",
100
- {
101
- ref: f,
102
- className: "submenu",
103
- style: { gridTemplateColumns: `repeat(${L}, 1fr)` },
104
- children: m
105
- }
106
- )
107
- ]
108
- }
109
- )
110
- ]
111
- }
112
- ) });
113
- }, ae = J(ee);
74
+ }, _ = [i, t], e[11] = t, e[12] = i, e[13] = W, e[14] = _) : (W = e[13], _ = e[14]), me(W, _);
75
+ let L;
76
+ e[15] !== u || e[16] !== o ? (L = () => {
77
+ const n = ae.current?.clientHeight || 0, r = K.current?.clientHeight || 0, C = u ? "100%" : (window.innerHeight - o.top - (n - r) - 1).toString().concat("px") || "0px";
78
+ K.current?.style.setProperty("max-height", C);
79
+ }, e[15] = u, e[16] = o, e[17] = L) : L = e[17];
80
+ let P;
81
+ if (e[18] !== i ? (P = [i], e[18] = i, e[19] = P) : P = e[19], me(L, P), pe)
82
+ return null;
83
+ let m;
84
+ e[20] !== D ? (m = (n) => {
85
+ U.current = n, D && D(n);
86
+ }, e[20] = D, e[21] = m) : m = e[21];
87
+ const te = `item ${de && !l && "-withlink"} ${he} ${l && "-disabled"}`;
88
+ let f;
89
+ e[22] !== t ? (f = () => {
90
+ t || (R(!1), J(!1));
91
+ }, e[22] = t, e[23] = f) : f = e[23];
92
+ let d;
93
+ e[24] !== t || e[25] !== a ? (d = (n) => {
94
+ t && a(n);
95
+ }, e[24] = t, e[25] = a, e[26] = d) : d = e[26];
96
+ let h;
97
+ e[27] !== j || e[28] !== S ? (h = j && /* @__PURE__ */ s.jsx(Se, { name: j, size: S === "small" && 16 || S === "medium" && 24 || S === "large" && 32 || 16, customClassForContainer: "menuicon-container", customClass: "menuicon" }), e[27] = j, e[28] = S, e[29] = h) : h = e[29];
98
+ let g;
99
+ e[30] !== X || e[31] !== c ? (g = X && /* @__PURE__ */ s.jsx("span", { className: "title", children: c }), e[30] = X, e[31] = c, e[32] = g) : g = e[32];
100
+ const ne = !E && v;
101
+ let p;
102
+ e[33] !== h || e[34] !== g || e[35] !== ne ? (p = /* @__PURE__ */ s.jsxs(we, { children: [
103
+ h,
104
+ g,
105
+ ne
106
+ ] }), e[33] = h, e[34] = g, e[35] = ne, e[36] = p) : p = e[36];
107
+ let x;
108
+ e[37] !== l || e[38] !== N || e[39] !== p ? (x = /* @__PURE__ */ s.jsx(Ce, { disabled: l, ...N, targetRef: null, children: p }), e[37] = l, e[38] = N, e[39] = p, e[40] = x) : x = e[40];
109
+ let b;
110
+ e[41] !== v || e[42] !== E || e[43] !== A || e[44] !== V || e[45] !== I || e[46] !== l || e[47] !== u || e[48] !== q || e[49] !== G || e[50] !== Y || e[51] !== i || e[52] !== o || e[53] !== c ? (b = i && v && E && !l && !Y && /* @__PURE__ */ s.jsxs("div", { ref: ae, className: `${V} ${I ? "" : "submenu-container"}`, style: u ? {
111
+ marginLeft: o.width,
112
+ bottom: "0",
113
+ position: "fixed",
114
+ zIndex: I ? 999999999 : void 0
115
+ } : {
116
+ marginLeft: o.width,
117
+ top: o.top,
118
+ minWidth: G,
119
+ maxWidth: q
120
+ }, children: [
121
+ /* @__PURE__ */ s.jsx("h1", { className: "title", children: c }),
122
+ /* @__PURE__ */ s.jsx("div", { ref: K, className: "submenu", style: {
123
+ gridTemplateColumns: `repeat(${A}, 1fr)`
124
+ }, children: v })
125
+ ] }), e[41] = v, e[42] = E, e[43] = A, e[44] = V, e[45] = I, e[46] = l, e[47] = u, e[48] = q, e[49] = G, e[50] = Y, e[51] = i, e[52] = o, e[53] = c, e[54] = b) : b = e[54];
126
+ let w;
127
+ e[55] !== Z || e[56] !== Q || e[57] !== m || e[58] !== te || e[59] !== f || e[60] !== d || e[61] !== x || e[62] !== b ? (w = /* @__PURE__ */ s.jsxs("li", { style: Q, ref: m, className: te, onMouseEnter: Z, onMouseLeave: f, onClick: d, children: [
128
+ x,
129
+ b
130
+ ] }), e[55] = Z, e[56] = Q, e[57] = m, e[58] = te, e[59] = f, e[60] = d, e[61] = x, e[62] = b, e[63] = w) : w = e[63];
131
+ let z;
132
+ return e[64] !== ee || e[65] !== w ? (z = /* @__PURE__ */ s.jsx(Ne.Provider, { value: ee, children: w }), e[64] = ee, e[65] = w, e[66] = z) : z = e[66], z;
133
+ }, ke = ve(De);
114
134
  export {
115
- ae as default
135
+ ke as default
116
136
  };