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
@@ -1,42 +1,68 @@
1
- import { j as e } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { useState as a } from "react";
1
+ import { j as g } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as y } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useState as T } from "react";
3
4
  import '../assets/gridlayout.css';/* empty css */
4
- import D from "../gridlayout/GridCol.js";
5
- import O from "./Header.js";
6
- import N from "./helpers.js";
7
- import { OPTIONS_ON_DENIED as E, actionsOnPermissionDenied as g } from "../permissionValidations.js";
8
- const S = ({
9
- startOpened: m = !0,
10
- toggleable: d,
11
- customClass: c,
12
- children: u,
13
- title: t,
14
- gridCols: s,
15
- onEndReached: p,
16
- onEndReachedThreshold: f = 0.1,
17
- permissionAttr: x,
18
- colorStyle: o,
19
- ...C
20
- }) => {
21
- const [r, h] = a(m), { hideContent: v, unvisible: j } = E, [n] = a(g([v, j], x)), P = () => {
22
- let l = `panel-component ${c}`;
23
- return l += o !== "" ? ` -${o}` : "", l;
24
- }, i = () => /* @__PURE__ */ e.jsxs("div", { className: P(), ...C, children: [
25
- t && /* @__PURE__ */ e.jsx(O, { title: t }),
26
- u
27
- ] }), b = () => ({
28
- toggleable: d,
5
+ import A from "../gridlayout/GridCol.js";
6
+ import G from "./Header.js";
7
+ import H from "./helpers.js";
8
+ import { OPTIONS_ON_DENIED as V, actionsOnPermissionDenied as k } from "../permissionValidations.js";
9
+ const M = (j) => {
10
+ const e = y.c(37);
11
+ let o, t, i, l, r, d, c, u, f, n, a;
12
+ e[0] !== j ? ({
13
+ startOpened: u,
14
+ toggleable: a,
15
+ customClass: i,
16
+ children: o,
17
+ title: n,
18
+ gridCols: l,
19
+ onEndReached: r,
20
+ onEndReachedThreshold: f,
21
+ permissionAttr: d,
22
+ colorStyle: t,
23
+ ...c
24
+ } = j, e[0] = j, e[1] = o, e[2] = t, e[3] = i, e[4] = l, e[5] = r, e[6] = d, e[7] = c, e[8] = u, e[9] = f, e[10] = n, e[11] = a) : (o = e[1], t = e[2], i = e[3], l = e[4], r = e[5], d = e[6], c = e[7], u = e[8], f = e[9], n = e[10], a = e[11]);
25
+ const S = u === void 0 ? !0 : u, P = f === void 0 ? 0.1 : f, [h, $] = T(S), {
26
+ hideContent: I,
27
+ unvisible: _
28
+ } = V;
29
+ let C;
30
+ e[12] !== d ? (C = k([I, _], d), e[12] = d, e[13] = C) : C = e[13];
31
+ const [s] = T(C);
32
+ let v;
33
+ e[14] !== t || e[15] !== i ? (v = () => {
34
+ let N = `panel-component ${i}`;
35
+ return N = N + (t !== "" ? ` -${t}` : ""), N;
36
+ }, e[14] = t, e[15] = i, e[16] = v) : v = e[16];
37
+ const D = v;
38
+ let x;
39
+ e[17] !== o || e[18] !== D || e[19] !== c || e[20] !== n ? (x = () => /* @__PURE__ */ g.jsxs("div", { className: D(), ...c, children: [
40
+ n && /* @__PURE__ */ g.jsx(G, { title: n }),
41
+ o
42
+ ] }), e[17] = o, e[18] = D, e[19] = c, e[20] = n, e[21] = x) : x = e[21];
43
+ const b = x;
44
+ let E;
45
+ e[22] !== s.hideContent || e[23] !== s.unvisible || e[24] !== r || e[25] !== P || e[26] !== h || e[27] !== a ? (E = () => ({
46
+ toggleable: a,
29
47
  handlerToggleable: () => {
30
- h(!r);
48
+ $(!h);
31
49
  },
32
- opened: r,
33
- onEndReached: p,
34
- onEndReachedThreshold: f,
35
- hideContent: n.hideContent,
36
- unvisible: n.unvisible
37
- });
38
- return n.unvisible ? null : /* @__PURE__ */ e.jsx(N.Provider, { value: b(), children: s ? /* @__PURE__ */ e.jsx(D, { cols: s, children: i() }) : i() });
50
+ opened: h,
51
+ onEndReached: r,
52
+ onEndReachedThreshold: P,
53
+ hideContent: s.hideContent,
54
+ unvisible: s.unvisible
55
+ }), e[22] = s.hideContent, e[23] = s.unvisible, e[24] = r, e[25] = P, e[26] = h, e[27] = a, e[28] = E) : E = e[28];
56
+ const R = E;
57
+ if (s.unvisible)
58
+ return null;
59
+ let m;
60
+ e[29] !== R ? (m = R(), e[29] = R, e[30] = m) : m = e[30];
61
+ let p;
62
+ e[31] !== l || e[32] !== b ? (p = l ? /* @__PURE__ */ g.jsx(A, { cols: l, children: b() }) : b(), e[31] = l, e[32] = b, e[33] = p) : p = e[33];
63
+ let O;
64
+ return e[34] !== m || e[35] !== p ? (O = /* @__PURE__ */ g.jsx(H.Provider, { value: m, children: p }), e[34] = m, e[35] = p, e[36] = O) : O = e[36], O;
39
65
  };
40
66
  export {
41
- S as default
67
+ M as default
42
68
  };
@@ -1,42 +1,58 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { useContext as p } from "react";
3
- import l from "../icons/index.js";
4
- import x from "../buttons/button_container/index.js";
5
- import f from "../buttons/Button.js";
1
+ import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as I } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useContext as v } from "react";
4
+ import p from "../icons/index.js";
5
+ import w from "../buttons/button_container/index.js";
6
+ import z from "../buttons/Button.js";
6
7
  import '../assets/button.css';/* empty css */
7
- import h from "./helpers.js";
8
- const j = (t, e) => e || (t ? /* @__PURE__ */ o.jsx(l, { name: t, color: "#000", size: 16 }) : null), C = ({ customClass: t, headerColored: e = !0 }) => {
9
- let r = `panel-header ${t ?? ""}`;
10
- return e || (r += " -uncolored"), r;
11
- }, B = (t) => {
8
+ import B from "./helpers.js";
9
+ const E = (t, e) => e || (t ? /* @__PURE__ */ r.jsx(p, { name: t, color: "#000", size: 16 }) : null), P = ({
10
+ customClass: t,
11
+ headerColored: e = !0
12
+ }) => {
13
+ let l = `panel-header ${t ?? ""}`;
14
+ return e || (l += " -uncolored"), l;
15
+ }, L = (t) => {
16
+ const e = I.c(28);
17
+ let l, i, o, a, c, n, s;
18
+ if (e[0] !== t) {
19
+ const {
20
+ titleIcon: g,
21
+ icon: N,
22
+ title: T,
23
+ children: F,
24
+ customClass: R,
25
+ headerColored: k,
26
+ styleForTitle: $,
27
+ customClassForTitle: b,
28
+ ...y
29
+ } = t;
30
+ s = g, o = N, n = T, l = F, c = $, i = b, a = y, e[0] = t, e[1] = l, e[2] = i, e[3] = o, e[4] = a, e[5] = c, e[6] = n, e[7] = s;
31
+ } else
32
+ l = e[1], i = e[2], o = e[3], a = e[4], c = e[5], n = e[6], s = e[7];
12
33
  const {
13
- titleIcon: e,
14
- icon: r,
15
- title: n,
16
- children: s,
17
- customClass: g,
18
- headerColored: N,
19
- styleForTitle: a,
20
- customClassForTitle: i,
21
- ...c
22
- } = t, { toggleable: m, handlerToggleable: u, opened: d } = p(h);
23
- return /* @__PURE__ */ o.jsxs("div", { className: C(t), ...c, children: [
24
- (r || e) && /* @__PURE__ */ o.jsx("div", { className: `${r !== null || e !== null ? "icon-left-panel" : ""}`, children: j(e, r) }),
25
- n && /* @__PURE__ */ o.jsx("h1", { className: `title ${i ?? ""}`, style: a, children: n }),
26
- m && /* @__PURE__ */ o.jsx(x, { position: "right", children: /* @__PURE__ */ o.jsx(
27
- f,
28
- {
29
- boxShadow: !1,
30
- transparent: !0,
31
- onClick: () => {
32
- u();
33
- },
34
- icon: /* @__PURE__ */ o.jsx(l, { name: d ? "up" : "down", size: 16 })
35
- }
36
- ) }),
37
- s
38
- ] });
34
+ toggleable: h,
35
+ handlerToggleable: j,
36
+ opened: C
37
+ } = v(B);
38
+ let m;
39
+ e[8] !== t ? (m = P(t), e[8] = t, e[9] = m) : m = e[9];
40
+ let u;
41
+ e[10] !== o || e[11] !== s ? (u = (o || s) && /* @__PURE__ */ r.jsx("div", { className: `${o !== null || s !== null ? "icon-left-panel" : ""}`, children: E(s, o) }), e[10] = o, e[11] = s, e[12] = u) : u = e[12];
42
+ let f;
43
+ e[13] !== i || e[14] !== c || e[15] !== n ? (f = n && /* @__PURE__ */ r.jsx("h1", { className: `title ${i ?? ""}`, style: c, children: n }), e[13] = i, e[14] = c, e[15] = n, e[16] = f) : f = e[16];
44
+ let d;
45
+ e[17] !== j || e[18] !== C || e[19] !== h ? (d = h && /* @__PURE__ */ r.jsx(w, { position: "right", children: /* @__PURE__ */ r.jsx(z, { boxShadow: !1, transparent: !0, onClick: () => {
46
+ j();
47
+ }, icon: /* @__PURE__ */ r.jsx(p, { name: C ? "up" : "down", size: 16 }) }) }), e[17] = j, e[18] = C, e[19] = h, e[20] = d) : d = e[20];
48
+ let x;
49
+ return e[21] !== l || e[22] !== a || e[23] !== m || e[24] !== u || e[25] !== f || e[26] !== d ? (x = /* @__PURE__ */ r.jsxs("div", { className: m, ...a, children: [
50
+ u,
51
+ f,
52
+ d,
53
+ l
54
+ ] }), e[21] = l, e[22] = a, e[23] = m, e[24] = u, e[25] = f, e[26] = d, e[27] = x) : x = e[27], x;
39
55
  };
40
56
  export {
41
- B as default
57
+ L as default
42
58
  };
@@ -1,7 +1,12 @@
1
- import { j as t } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import r from "./Default.js";
3
- import e from "../internals/colorStyles.js";
4
- const a = (o) => /* @__PURE__ */ t.jsx(r, { ...o, colorStyle: e.INFO });
1
+ import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import m from "./Default.js";
4
+ import s from "../internals/colorStyles.js";
5
+ const c = (e) => {
6
+ const t = l.c(2);
7
+ let o;
8
+ return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(m, { ...e, colorStyle: s.INFO }), t[0] = e, t[1] = o) : o = t[1], o;
9
+ };
5
10
  export {
6
- a as default
11
+ c as default
7
12
  };
@@ -1,7 +1,12 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import t from "./Default.js";
3
- import e from "../internals/colorStyles.js";
4
- const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.PRIMARY });
1
+ import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import l from "./Default.js";
4
+ import i from "../internals/colorStyles.js";
5
+ const c = (r) => {
6
+ const t = m.c(2);
7
+ let o;
8
+ return t[0] !== r ? (o = /* @__PURE__ */ e.jsx(l, { ...r, colorStyle: i.PRIMARY }), t[0] = r, t[1] = o) : o = t[1], o;
9
+ };
5
10
  export {
6
- s as default
11
+ c as default
7
12
  };
@@ -1,7 +1,12 @@
1
- import { j as t } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import r from "./Default.js";
3
- import e from "../internals/colorStyles.js";
4
- const a = (o) => /* @__PURE__ */ t.jsx(r, { ...o, colorStyle: e.SUCCESS });
1
+ import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import m from "./Default.js";
4
+ import s from "../internals/colorStyles.js";
5
+ const n = (e) => {
6
+ const t = l.c(2);
7
+ let o;
8
+ return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(m, { ...e, colorStyle: s.SUCCESS }), t[0] = e, t[1] = o) : o = t[1], o;
9
+ };
5
10
  export {
6
- a as default
11
+ n as default
7
12
  };
@@ -1,6 +1,19 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import t from "../toolbar/index.js";
3
- const e = ({ children: o }) => /* @__PURE__ */ r.jsx(t, { style: { width: "auto", backgroundColor: "transparent", border: 0 }, children: o });
1
+ import { j as l } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as a } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import m from "../toolbar/index.js";
4
+ const p = (s) => {
5
+ const o = a.c(3), {
6
+ children: e
7
+ } = s;
8
+ let t;
9
+ o[0] === Symbol.for("react.memo_cache_sentinel") ? (t = {
10
+ width: "auto",
11
+ backgroundColor: "transparent",
12
+ border: 0
13
+ }, o[0] = t) : t = o[0];
14
+ let r;
15
+ return o[1] !== e ? (r = /* @__PURE__ */ l.jsx(m, { style: t, children: e }), o[1] = e, o[2] = r) : r = o[2], r;
16
+ };
4
17
  export {
5
- e as default
18
+ p as default
6
19
  };
@@ -1,7 +1,12 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import t from "./Default.js";
3
- import e from "../internals/colorStyles.js";
4
- const s = (o) => /* @__PURE__ */ r.jsx(t, { ...o, colorStyle: e.WARNING });
1
+ import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import m from "./Default.js";
4
+ import i from "../internals/colorStyles.js";
5
+ const c = (r) => {
6
+ const t = l.c(2);
7
+ let o;
8
+ return t[0] !== r ? (o = /* @__PURE__ */ e.jsx(m, { ...r, colorStyle: i.WARNING }), t[0] = r, t[1] = o) : o = t[1], o;
9
+ };
5
10
  export {
6
- s as default
11
+ c as default
7
12
  };
@@ -1,12 +1,15 @@
1
1
  import a from "react";
2
- function s(o, t) {
2
+ function M(o, t) {
3
3
  if (t < 0) return 0;
4
4
  if (t > 1) return 1;
5
- const { scrollHeight: e, clientHeight: r } = o, n = e - r, H = Math.round(e * t), c = Math.round(n - n * 0.3);
5
+ const {
6
+ scrollHeight: e,
7
+ clientHeight: r
8
+ } = o, n = e - r, H = Math.round(e * t), c = Math.round(n - n * 0.3);
6
9
  return Math.min(H, c);
7
10
  }
8
- const M = a.createContext({});
11
+ const h = a.createContext({});
9
12
  export {
10
- M as default,
11
- s as getCurrentThreshold
13
+ h as default,
14
+ M as getCurrentThreshold
12
15
  };
@@ -4,11 +4,11 @@ const a = (e) => {
4
4
  return n && n[e] ? n[e] : [];
5
5
  }, c = (e, n) => e.some((t) => t.codigo === n), i = (e, n, t) => {
6
6
  for (let r = 0; r < e.length; r += 1) {
7
- const o = e[r];
8
- if (o.codigo === n && o.permissoes.length > 0)
9
- return c(o.permissoes, t);
10
- if (o.itens.length > 0) {
11
- if (i(o.itens, n, t)) return !0;
7
+ const s = e[r];
8
+ if (s.codigo === n && s.permissoes.length > 0)
9
+ return c(s.permissoes, t);
10
+ if (s.itens.length > 0) {
11
+ if (i(s.itens, n, t)) return !0;
12
12
  if (r === e.length - 1) return !1;
13
13
  }
14
14
  }
@@ -17,18 +17,22 @@ const a = (e) => {
17
17
  if (!e) return !0;
18
18
  const n = Array.isArray(e) ? e : [e];
19
19
  for (let t = 0; t < n.length; t += 1) {
20
- const { module: r, feature: o, operation: s } = n[t];
21
- if (i(a(r), o, s)) return !0;
20
+ const {
21
+ module: r,
22
+ feature: s,
23
+ operation: o
24
+ } = n[t];
25
+ if (i(a(r), s, o)) return !0;
22
26
  }
23
27
  return !1;
24
28
  }, d = (e, n) => {
25
29
  const t = l(n), r = n && !Array.isArray(n) ? [n] : n;
26
30
  if (r && r[0].onDenied && !e.includes(r[0].onDenied))
27
31
  throw new Error("in property onDenied from permissionAttr it`s not a valid option. Look for valid options in the component documentation.");
28
- const o = {};
29
- return e.forEach((s) => {
30
- o[s] = t ? !1 : s === (r == null ? void 0 : r[0].onDenied);
31
- }), o;
32
+ const s = {};
33
+ return e.forEach((o) => {
34
+ s[o] = t ? !1 : o === r?.[0].onDenied;
35
+ }), s;
32
36
  }, f = {
33
37
  disabled: "disabled",
34
38
  unvisible: "unvisible",
@@ -1,7 +1,14 @@
1
- import { j as r } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import { forwardRef as t } from "react";
3
- const s = t(({ children: e }, o) => /* @__PURE__ */ r.jsx("p", { className: "text", ref: o, children: e }));
4
- s.displayName = "PopoverText";
1
+ import { j as m } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as p } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { forwardRef as a } from "react";
4
+ const i = a((s, e) => {
5
+ const t = p.c(3), {
6
+ children: r
7
+ } = s;
8
+ let o;
9
+ return t[0] !== r || t[1] !== e ? (o = /* @__PURE__ */ m.jsx("p", { className: "text", ref: e, children: r }), t[0] = r, t[1] = e, t[2] = o) : o = t[2], o;
10
+ });
11
+ i.displayName = "PopoverText";
5
12
  export {
6
- s as default
13
+ i as default
7
14
  };
@@ -1,5 +1,12 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- const o = ({ children: t }) => /* @__PURE__ */ s.jsx("h1", { className: "title", children: t });
1
+ import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as i } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ const m = (s) => {
4
+ const t = i.c(2), {
5
+ children: o
6
+ } = s;
7
+ let e;
8
+ return t[0] !== o ? (e = /* @__PURE__ */ r.jsx("h1", { className: "title", children: o }), t[0] = o, t[1] = e) : e = t[1], e;
9
+ };
3
10
  export {
4
- o as default
11
+ m as default
5
12
  };
@@ -1,59 +1,39 @@
1
- import { j as o } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import m from "../buttons/Button.js";
3
- import f from "../icons/index.js";
1
+ import { j } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as b } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import z from "../buttons/Button.js";
4
+ import I from "../icons/index.js";
4
5
  import '../assets/button.css';import '../assets/index3.css';/* empty css */
5
- import { default as h } from "./PopoverText.js";
6
- import { default as I } from "./PopoverTitle.js";
7
- const w = ({
8
- children: t,
9
- align: e = "left",
10
- theme: r = "dark",
11
- iconName: n,
12
- iconSize: a = 16,
13
- iconColor: s = "",
14
- customClass: p = "",
15
- style: i,
16
- customStyle: l,
17
- ...c
18
- }) => /* @__PURE__ */ o.jsx(
19
- m,
20
- {
21
- round: !0,
22
- dropdown: !0,
23
- transparent: !0,
24
- tabIndex: -1,
25
- boxShadow: !1,
26
- iconAlign: "center",
27
- dropdownAlign: e,
28
- showIconDropdown: !1,
29
- customClass: "popover-component",
30
- style: i,
31
- icon: /* @__PURE__ */ o.jsx(
32
- f,
33
- {
34
- customClass: "buttonicon",
35
- name: n || "information",
36
- color: s || "gray",
37
- size: a
38
- }
39
- ),
40
- onClick: (d) => {
41
- d.preventDefault();
42
- },
43
- ...c,
44
- children: /* @__PURE__ */ o.jsx(
45
- "div",
46
- {
47
- className: `popovercontainer -${r} ${p}`,
48
- "data-testid": "popover-container",
49
- style: l,
50
- children: t
51
- }
52
- )
53
- }
54
- );
6
+ import { default as B } from "./PopoverText.js";
7
+ import { default as q } from "./PopoverTitle.js";
8
+ const N = (i) => {
9
+ const o = b.c(25);
10
+ let t, e, f, n, s, c, a, m, p, d;
11
+ o[0] !== i ? ({
12
+ children: t,
13
+ align: c,
14
+ theme: a,
15
+ iconName: f,
16
+ iconSize: m,
17
+ iconColor: p,
18
+ customClass: d,
19
+ style: s,
20
+ customStyle: e,
21
+ ...n
22
+ } = i, o[0] = i, o[1] = t, o[2] = e, o[3] = f, o[4] = n, o[5] = s, o[6] = c, o[7] = a, o[8] = m, o[9] = p, o[10] = d) : (t = o[1], e = o[2], f = o[3], n = o[4], s = o[5], c = o[6], a = o[7], m = o[8], p = o[9], d = o[10]);
23
+ const v = c === void 0 ? "left" : c, w = a === void 0 ? "dark" : a, x = m === void 0 ? 16 : m, y = p === void 0 ? "" : p, S = d === void 0 ? "" : d, C = f || "information", h = y || "gray";
24
+ let r;
25
+ o[11] !== x || o[12] !== C || o[13] !== h ? (r = /* @__PURE__ */ j.jsx(I, { customClass: "buttonicon", name: C, color: h, size: x }), o[11] = x, o[12] = C, o[13] = h, o[14] = r) : r = o[14];
26
+ const g = `popovercontainer -${w} ${S}`;
27
+ let l;
28
+ o[15] !== t || o[16] !== e || o[17] !== g ? (l = /* @__PURE__ */ j.jsx("div", { className: g, "data-testid": "popover-container", style: e, children: t }), o[15] = t, o[16] = e, o[17] = g, o[18] = l) : l = o[18];
29
+ let u;
30
+ return o[19] !== v || o[20] !== n || o[21] !== s || o[22] !== l || o[23] !== r ? (u = /* @__PURE__ */ j.jsx(z, { round: !0, dropdown: !0, transparent: !0, tabIndex: -1, boxShadow: !1, iconAlign: "center", dropdownAlign: v, showIconDropdown: !1, customClass: "popover-component", style: s, icon: r, onClick: P, ...n, children: l }), o[19] = v, o[20] = n, o[21] = s, o[22] = l, o[23] = r, o[24] = u) : u = o[24], u;
31
+ };
32
+ function P(i) {
33
+ i.preventDefault();
34
+ }
55
35
  export {
56
- h as PopoverText,
57
- I as PopoverTitle,
58
- w as default
36
+ B as PopoverText,
37
+ q as PopoverTitle,
38
+ N as default
59
39
  };
@@ -1,42 +1,51 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- const l = 1e3, m = ({ max: e = 100, min: t = 0, value: a = 0 }) => {
3
- const n = (a - t) / (e - t) * 100;
4
- return Math.round(n * l) / l;
5
- }, c = (e) => {
6
- let t = "bar";
7
- return e.customClass && (t += `${e.customClass}`), e.type && (t += ` -${e.type}`), e.effect && (t += " -effect"), e.animated && (t += " -animated"), e.indeterminate && (t += " -indeterminate"), t;
8
- }, u = (e) => {
9
- let t = e.label;
10
- return e.label || (t = `${m(e)}%`), /* @__PURE__ */ s.jsx("span", { className: "progressbar-label ", children: t });
11
- }, d = (e) => {
1
+ import { j as h } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as g } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ const v = 1e3, b = ({
4
+ max: t = 100,
5
+ min: e = 0,
6
+ value: a = 0
7
+ }) => {
8
+ const i = (a - e) / (t - e) * 100;
9
+ return Math.round(i * v) / v;
10
+ }, x = (t) => {
11
+ let e = "bar";
12
+ return t.customClass && (e += `${t.customClass}`), t.type && (e += ` -${t.type}`), t.effect && (e += " -effect"), t.animated && (e += " -animated"), t.indeterminate && (e += " -indeterminate"), e;
13
+ }, y = (t) => {
14
+ let e = t.label;
15
+ return t.label || (e = `${b(t)}%`), /* @__PURE__ */ h.jsx("span", { className: "progressbar-label ", children: e });
16
+ }, $ = (t) => {
12
17
  const {
13
- indeterminate: t,
18
+ indeterminate: e,
14
19
  indeterminateDelay: a = 1,
15
- indeterminateDuration: n = 1.5,
16
- progressWidth: i = "100%",
20
+ indeterminateDuration: i = 1.5,
21
+ progressWidth: c = "100%",
17
22
  height: r = "100%"
18
- } = e;
19
- return t ? {
20
- width: i,
23
+ } = t;
24
+ return e ? {
25
+ width: c,
21
26
  height: r,
22
- animationDuration: `${n}s`,
27
+ animationDuration: `${i}s`,
23
28
  animationDelay: `${a}s`
24
- } : { width: `${m(e)}%`, height: r };
25
- }, f = (e) => {
26
- const { value: t = 0, min: a = 0, max: n = 100, showLabel: i = !0 } = e;
27
- return /* @__PURE__ */ s.jsx(
28
- "div",
29
- {
30
- role: "progressbar",
31
- className: c(e),
32
- style: d(e),
33
- "aria-valuenow": t,
34
- "aria-valuemin": a,
35
- "aria-valuemax": n,
36
- children: i && !e.indeterminate && u(e)
37
- }
38
- );
29
+ } : {
30
+ width: `${b(t)}%`,
31
+ height: r
32
+ };
33
+ }, j = (t) => {
34
+ const e = g.c(14), {
35
+ value: a,
36
+ min: i,
37
+ max: c,
38
+ showLabel: r
39
+ } = t, o = a === void 0 ? 0 : a, u = i === void 0 ? 0 : i, d = c === void 0 ? 100 : c, f = r === void 0 ? !0 : r;
40
+ let n;
41
+ e[0] !== t ? (n = x(t), e[0] = t, e[1] = n) : n = e[1];
42
+ let l;
43
+ e[2] !== t ? (l = $(t), e[2] = t, e[3] = l) : l = e[3];
44
+ let s;
45
+ e[4] !== t || e[5] !== f ? (s = f && !t.indeterminate && y(t), e[4] = t, e[5] = f, e[6] = s) : s = e[6];
46
+ let m;
47
+ return e[7] !== d || e[8] !== u || e[9] !== n || e[10] !== l || e[11] !== s || e[12] !== o ? (m = /* @__PURE__ */ h.jsx("div", { role: "progressbar", className: n, style: l, "aria-valuenow": o, "aria-valuemin": u, "aria-valuemax": d, children: s }), e[7] = d, e[8] = u, e[9] = n, e[10] = l, e[11] = s, e[12] = o, e[13] = m) : m = e[13], m;
39
48
  };
40
49
  export {
41
- f as default
50
+ j as default
42
51
  };
@@ -1,21 +1,26 @@
1
- import { j as s } from "../chunks/jsx-runtime.CYK1ROHF.js";
2
- import n from "./Bar.js";
3
- import '../assets/index9.css';const m = (r) => {
4
- const { style: t, children: e, width: o = "100%", height: a = "24px" } = r, i = {
5
- ...t,
6
- width: o,
7
- height: a
8
- };
9
- return /* @__PURE__ */ s.jsx(
10
- "div",
11
- {
12
- className: "container-progress",
13
- style: i,
14
- children: e || /* @__PURE__ */ s.jsx(n, { ...r })
15
- }
16
- );
1
+ import { j as h } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as f } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import x from "./Bar.js";
4
+ import '../assets/index9.css';const p = (s) => {
5
+ const t = f.c(10), {
6
+ style: o,
7
+ children: l,
8
+ width: m,
9
+ height: d
10
+ } = s, c = m === void 0 ? "100%" : m, n = d === void 0 ? "24px" : d;
11
+ let r;
12
+ t[0] !== n || t[1] !== o || t[2] !== c ? (r = {
13
+ ...o,
14
+ width: c,
15
+ height: n
16
+ }, t[0] = n, t[1] = o, t[2] = c, t[3] = r) : r = t[3];
17
+ const a = r;
18
+ let e;
19
+ t[4] !== l || t[5] !== s ? (e = l || /* @__PURE__ */ h.jsx(x, { ...s }), t[4] = l, t[5] = s, t[6] = e) : e = t[6];
20
+ let i;
21
+ return t[7] !== a || t[8] !== e ? (i = /* @__PURE__ */ h.jsx("div", { className: "container-progress", style: a, children: e }), t[7] = a, t[8] = e, t[9] = i) : i = t[9], i;
17
22
  };
18
23
  export {
19
- n as Bar,
20
- m as default
24
+ x as Bar,
25
+ p as default
21
26
  };