linear-react-components-ui 1.1.26-beta.6 → 1.1.26-beta.8

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 (198) hide show
  1. package/lib/alerts/AlertContainer.js +8 -2
  2. package/lib/alerts/AlertProvider.js +10 -4
  3. package/lib/alerts/BaseAlert.js +3 -1
  4. package/lib/alerts/Message.js +91 -64
  5. package/lib/alerts/withAlert.js +10 -6
  6. package/lib/avatar/index.js +20 -42
  7. package/lib/badge/index.js +25 -23
  8. package/lib/buttons/ActivateButton.js +9 -4
  9. package/lib/buttons/AddButton.js +12 -5
  10. package/lib/buttons/Button.js +16 -5
  11. package/lib/buttons/ButtonGroups.js +10 -3
  12. package/lib/buttons/CancelButton.js +14 -4
  13. package/lib/buttons/DangerButton.js +15 -4
  14. package/lib/buttons/DefaultButton.js +25 -59
  15. package/lib/buttons/DestroyButton.js +21 -5
  16. package/lib/buttons/EditButton.js +9 -4
  17. package/lib/buttons/InactivateButton.js +9 -4
  18. package/lib/buttons/InfoButton.js +15 -4
  19. package/lib/buttons/PrimaryButton.js +15 -4
  20. package/lib/buttons/RestoreButton.js +9 -4
  21. package/lib/buttons/SaveButton.js +14 -4
  22. package/lib/buttons/SuccessButton.js +15 -4
  23. package/lib/buttons/WarningButton.js +15 -4
  24. package/lib/buttons/button_container/index.js +21 -16
  25. package/lib/buttons/split_button/index.js +53 -55
  26. package/lib/calendar/DangerCalendar.js +18 -4
  27. package/lib/calendar/InfoCalendar.js +18 -4
  28. package/lib/calendar/PrimaryCalendar.js +18 -4
  29. package/lib/calendar/SuccessCalendar.js +18 -4
  30. package/lib/calendar/WarningCalendar.js +18 -4
  31. package/lib/calendar/base/Day.js +32 -22
  32. package/lib/calendar/base/Month.js +24 -21
  33. package/lib/calendar/base/Week.js +20 -19
  34. package/lib/calendar/base/helpers.js +1 -9
  35. package/lib/calendar/base/index.js +129 -95
  36. package/lib/checkbox/index.js +5 -4
  37. package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
  38. package/lib/chunks/index.aw0XaUkg.js +266 -0
  39. package/lib/chunks/{jsx-runtime.C7wFtzyj.js → jsx-runtime.D1SHvdVE.js} +106 -108
  40. package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
  41. package/lib/dialog/Alert.js +18 -17
  42. package/lib/dialog/Custom.js +42 -28
  43. package/lib/dialog/Error.js +18 -17
  44. package/lib/dialog/Information.js +18 -17
  45. package/lib/dialog/Question.js +41 -54
  46. package/lib/dialog/Warning.js +18 -17
  47. package/lib/dialog/base/Content.js +13 -4
  48. package/lib/dialog/base/Footer.js +8 -3
  49. package/lib/dialog/base/Header.js +4 -3
  50. package/lib/dialog/base/index.js +5 -4
  51. package/lib/dialog/form/index.js +5 -4
  52. package/lib/dialog/index.js +1 -1
  53. package/lib/dialog/wizard/index.js +10 -9
  54. package/lib/dialog/wizard/progressbar.js +89 -80
  55. package/lib/dialog/wizard/step.js +4 -3
  56. package/lib/dialog/wizard/useWizard.js +42 -29
  57. package/lib/drawer/Content.js +15 -8
  58. package/lib/drawer/Drawer.js +25 -22
  59. package/lib/drawer/Header.js +53 -40
  60. package/lib/dropdown/Popup.js +3 -1
  61. package/lib/dropdown/withDropdown.js +75 -50
  62. package/lib/fieldset/index.js +66 -47
  63. package/lib/form/Field.js +88 -62
  64. package/lib/form/FieldArray.js +17 -38
  65. package/lib/form/FieldNumber.js +40 -36
  66. package/lib/form/FieldPeriod.js +90 -59
  67. package/lib/form/helpers.js +4 -1
  68. package/lib/form/index.js +55 -67
  69. package/lib/form/withFieldHOC.js +57 -48
  70. package/lib/form/withFormSecurity.js +6 -9
  71. package/lib/gridlayout/GridCol.js +21 -20
  72. package/lib/gridlayout/GridRow.js +22 -20
  73. package/lib/hint/helpers.js +6 -2
  74. package/lib/hint/index.js +27 -25
  75. package/lib/icons/helper.js +142 -569
  76. package/lib/icons/index.js +63 -55
  77. package/lib/index.js +20 -19
  78. package/lib/inputs/base/InputTextBase.js +62 -146
  79. package/lib/inputs/base/Label.js +27 -29
  80. package/lib/inputs/base/helpers.js +3 -1
  81. package/lib/inputs/color/index.js +52 -73
  82. package/lib/inputs/date/Dialog.js +15 -16
  83. package/lib/inputs/date/Dropdown.js +7 -1
  84. package/lib/inputs/date/index.js +60 -94
  85. package/lib/inputs/errorMessage/index.js +21 -13
  86. package/lib/inputs/file/DefaultFile.js +64 -66
  87. package/lib/inputs/file/DragDropFile.js +39 -93
  88. package/lib/inputs/file/File.js +8 -22
  89. package/lib/inputs/file/FileButtonSettings.js +20 -17
  90. package/lib/inputs/inputHOC.js +38 -20
  91. package/lib/inputs/mask/BaseMask.js +44 -23
  92. package/lib/inputs/mask/Cnpj.js +42 -36
  93. package/lib/inputs/mask/Cpf.js +45 -33
  94. package/lib/inputs/mask/Phone.js +10 -6
  95. package/lib/inputs/mask/ZipCode.js +9 -4
  96. package/lib/inputs/multiSelect/ActionButtons.js +35 -46
  97. package/lib/inputs/multiSelect/Dropdown.js +93 -131
  98. package/lib/inputs/multiSelect/index.js +167 -125
  99. package/lib/inputs/number/BaseNumber.js +43 -31
  100. package/lib/inputs/number/Currency.js +19 -12
  101. package/lib/inputs/number/Decimal.js +9 -4
  102. package/lib/inputs/number/index.js +31 -35
  103. package/lib/inputs/period/Dialog.js +16 -16
  104. package/lib/inputs/period/Dropdown.js +6 -1
  105. package/lib/inputs/period/PeriodList.js +41 -27
  106. package/lib/inputs/period/helper.js +5 -1
  107. package/lib/inputs/period/index.js +118 -240
  108. package/lib/inputs/search/index.js +95 -71
  109. package/lib/inputs/select/ActionButtons.js +24 -45
  110. package/lib/inputs/select/Dropdown.js +38 -87
  111. package/lib/inputs/select/helper.js +6 -2
  112. package/lib/inputs/select/index.js +23 -25
  113. package/lib/inputs/select/multiple/Selecteds.js +23 -19
  114. package/lib/inputs/select/multiple/index.js +35 -101
  115. package/lib/inputs/select/simple/index.js +26 -89
  116. package/lib/inputs/text/index.js +9 -4
  117. package/lib/inputs/textarea/index.js +13 -15
  118. package/lib/internals/withTooltip.js +114 -67
  119. package/lib/labelMessages/index.js +50 -45
  120. package/lib/labels/DangerLabel.js +18 -4
  121. package/lib/labels/DefaultLabel.js +53 -39
  122. package/lib/labels/InfoLabel.js +18 -4
  123. package/lib/labels/PrimaryLabel.js +18 -4
  124. package/lib/labels/SuccessLabel.js +18 -4
  125. package/lib/labels/WarningLabel.js +18 -4
  126. package/lib/labels/label_container/index.js +15 -9
  127. package/lib/list/Header.js +18 -6
  128. package/lib/list/Item.js +4 -3
  129. package/lib/list/Separator.js +8 -3
  130. package/lib/list/index.js +21 -18
  131. package/lib/menus/float/MenuItem.js +48 -51
  132. package/lib/menus/float/index.js +102 -81
  133. package/lib/menus/sidenav/ExpandMenu.js +17 -15
  134. package/lib/menus/sidenav/MenuLink.js +21 -14
  135. package/lib/menus/sidenav/NavMenuGroup.js +19 -14
  136. package/lib/menus/sidenav/NavMenuItem.js +131 -109
  137. package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
  138. package/lib/menus/sidenav/index.js +145 -123
  139. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
  140. package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
  141. package/lib/noPermission/index.js +13 -8
  142. package/lib/panel/Content.js +48 -38
  143. package/lib/panel/DangerPanel.js +10 -5
  144. package/lib/panel/Default.js +62 -36
  145. package/lib/panel/Header.js +53 -37
  146. package/lib/panel/InfoPanel.js +10 -5
  147. package/lib/panel/PrimaryPanel.js +10 -5
  148. package/lib/panel/SuccessPanel.js +10 -5
  149. package/lib/panel/ToolBar.js +17 -4
  150. package/lib/panel/WarningPanel.js +10 -5
  151. package/lib/panel/helpers.js +4 -1
  152. package/lib/permissionValidations.js +5 -1
  153. package/lib/popover/PopoverText.js +12 -5
  154. package/lib/popover/PopoverTitle.js +10 -3
  155. package/lib/popover/index.js +36 -56
  156. package/lib/progress/Bar.js +43 -34
  157. package/lib/progress/index.js +23 -18
  158. package/lib/radio/index.js +105 -89
  159. package/lib/shortcuts/index.js +20 -7
  160. package/lib/skeleton/SkeletonContainer.js +16 -6
  161. package/lib/skeleton/index.js +42 -18
  162. package/lib/spinner/SpinnerLoading.js +53 -16
  163. package/lib/spinner/index.js +47 -37
  164. package/lib/split/Split.js +83 -79
  165. package/lib/split/SplitSide.js +24 -16
  166. package/lib/table/Body.js +36 -49
  167. package/lib/table/Header.js +45 -32
  168. package/lib/table/HeaderColumn.js +40 -27
  169. package/lib/table/Row.js +47 -48
  170. package/lib/table/RowColumn.js +50 -38
  171. package/lib/table/helpers.js +3 -1
  172. package/lib/table/index.js +101 -104
  173. package/lib/tabs/DropdownTabs.js +64 -61
  174. package/lib/tabs/Menu.js +35 -49
  175. package/lib/tabs/MenuTabs.js +59 -84
  176. package/lib/tabs/Panel.js +57 -46
  177. package/lib/tabs/context.js +11 -11
  178. package/lib/tabs/index.js +69 -64
  179. package/lib/tabs/tabHelpers.js +9 -7
  180. package/lib/textContent/index.js +30 -32
  181. package/lib/toolbar/ButtonBar.js +62 -58
  182. package/lib/toolbar/LabelBar.js +46 -38
  183. package/lib/toolbar/Separator.js +8 -3
  184. package/lib/toolbar/ToolBarGroup.js +14 -3
  185. package/lib/toolbar/index.js +35 -29
  186. package/lib/tooltip/index.js +1 -1
  187. package/lib/treetable/Body.js +25 -26
  188. package/lib/treetable/Header.js +22 -18
  189. package/lib/treetable/Row.js +210 -147
  190. package/lib/treetable/helpers.js +6 -14
  191. package/lib/treetable/index.js +25 -15
  192. package/lib/treeview/Header.js +13 -5
  193. package/lib/treeview/Node.js +198 -175
  194. package/lib/treeview/index.js +257 -174
  195. package/lib/uitour/index.js +167 -166
  196. package/package.json +11 -10
  197. package/lib/chunks/index.CM1aLH2W.js +0 -205
  198. package/lib/chunks/tabs.D0L_nVfP.js +0 -245
@@ -1,11 +1,12 @@
1
- import { j as n } from "../../chunks/jsx-runtime.C7wFtzyj.js";
1
+ import { j as n } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
2
  import { useRef as l, useEffect as u } from "react";
3
3
  import p from "./DefaultFile.js";
4
4
  import C from "./DragDropFile.js";
5
+ import "../../chunks/compiler-runtime.Cu50tn6L.js";
5
6
  import '../../assets/gridlayout.css';/* empty css */
6
7
  import R from "../../gridlayout/GridCol.js";
7
8
  import { transformFilesToFileList as k } from "./helpers.js";
8
- const F = ({
9
+ const I = ({
9
10
  applyDragDrop: m = !1,
10
11
  defaultFiles: r,
11
12
  gridLayout: o,
@@ -20,26 +21,11 @@ const F = ({
20
21
  u(() => {
21
22
  t?.current && r && (t.current.files = k(r));
22
23
  }, [t?.current]);
23
- const s = m ? /* @__PURE__ */ n.jsx(
24
- C,
25
- {
26
- ...i,
27
- defaultFiles: r,
28
- inputRef: t,
29
- onBtnClickInsert: () => c()
30
- }
31
- ) : /* @__PURE__ */ n.jsx(
32
- p,
33
- {
34
- ...i,
35
- inputRef: t,
36
- defaultFiles: r,
37
- onBtnClickRemove: () => f(),
38
- onBtnClickInsert: () => c()
39
- }
40
- );
41
- return o !== void 0 ? /* @__PURE__ */ n.jsx(R, { customClass: "-withinput", cols: o, style: { height: "100%" }, children: s }) : s;
24
+ const s = m ? /* @__PURE__ */ n.jsx(C, { ...i, defaultFiles: r, inputRef: t, onBtnClickInsert: () => c() }) : /* @__PURE__ */ n.jsx(p, { ...i, inputRef: t, defaultFiles: r, onBtnClickRemove: () => f(), onBtnClickInsert: () => c() });
25
+ return o !== void 0 ? /* @__PURE__ */ n.jsx(R, { customClass: "-withinput", cols: o, style: {
26
+ height: "100%"
27
+ }, children: s }) : s;
42
28
  };
43
29
  export {
44
- F as default
30
+ I as default
45
31
  };
@@ -1,21 +1,24 @@
1
- import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
- import s from "../../buttons/Button.js";
3
- import r from "../../icons/index.js";
1
+ import { j as m } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as u } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import f from "../../buttons/Button.js";
4
+ import b from "../../icons/index.js";
4
5
  import '../../assets/button.css';/* empty css */
5
- const u = (o) => {
6
- const { size: e = "medium", labelButton: n = "Selecionar", id: i, onBtnClickInsert: l } = o;
7
- return /* @__PURE__ */ t.jsx("label", { id: "", htmlFor: i, children: /* @__PURE__ */ t.jsx(
8
- s,
9
- {
10
- className: "uploadButton simple-search-file-button -shadowsdisabled -transparent",
11
- onClick: l,
12
- size: e,
13
- style: { height: "100%" },
14
- icon: /* @__PURE__ */ t.jsx(r, { name: "file_download" }),
15
- label: n
16
- }
17
- ) });
6
+ const _ = (p) => {
7
+ const t = u.c(9), {
8
+ size: c,
9
+ labelButton: d,
10
+ id: s,
11
+ onBtnClickInsert: n
12
+ } = p, r = c === void 0 ? "medium" : c, a = d === void 0 ? "Selecionar" : d;
13
+ let o, l;
14
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = {
15
+ height: "100%"
16
+ }, l = /* @__PURE__ */ m.jsx(b, { name: "file_download" }), t[0] = o, t[1] = l) : (o = t[0], l = t[1]);
17
+ let e;
18
+ t[2] !== a || t[3] !== n || t[4] !== r ? (e = /* @__PURE__ */ m.jsx(f, { className: "uploadButton simple-search-file-button -shadowsdisabled -transparent", onClick: n, size: r, style: o, icon: l, label: a }), t[2] = a, t[3] = n, t[4] = r, t[5] = e) : e = t[5];
19
+ let i;
20
+ return t[6] !== s || t[7] !== e ? (i = /* @__PURE__ */ m.jsx("label", { id: "", htmlFor: s, children: e }), t[6] = s, t[7] = e, t[8] = i) : i = t[8], i;
18
21
  };
19
22
  export {
20
- u as default
23
+ _ as default
21
24
  };
@@ -1,24 +1,42 @@
1
- import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import { useState as c } from "react";
1
+ import { j as f } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as F } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useState as E } from "react";
3
4
  import '../assets/gridlayout.css';/* empty css */
4
- import m from "../gridlayout/GridCol.js";
5
- const v = (s) => (t) => {
6
- const {
7
- visible: i = !0,
8
- gridLayout: n = void 0
9
- } = t, [a, e] = c(!1), [l] = c(!1), u = {
10
- inputHasFocus: a,
11
- requiredError: l,
12
- onInputReceiveFocus: () => {
13
- e(!0);
14
- },
15
- onInputLostFocus: () => {
16
- e(!1);
17
- }
18
- };
19
- let r = /* @__PURE__ */ o.jsx(s, { ...t, ...u });
20
- return n !== void 0 && i && (r = /* @__PURE__ */ o.jsx(m, { customClass: "-withinput", cols: n, children: /* @__PURE__ */ o.jsx(s, { ...t, ...u }) })), r;
5
+ import I from "../gridlayout/GridCol.js";
6
+ const g = (d) => (e) => {
7
+ const t = F.c(14), {
8
+ visible: v,
9
+ gridLayout: x
10
+ } = e, b = v === void 0 ? !0 : v, n = x === void 0 ? void 0 : x, [m, h] = E(!1), [a] = E(!1);
11
+ let i;
12
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = () => {
13
+ h(!0);
14
+ }, t[0] = i) : i = t[0];
15
+ const y = i;
16
+ let c;
17
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (c = () => {
18
+ h(!1);
19
+ }, t[1] = c) : c = t[1];
20
+ const C = c;
21
+ let l;
22
+ t[2] !== m || t[3] !== a ? (l = {
23
+ inputHasFocus: m,
24
+ requiredError: a,
25
+ onInputReceiveFocus: y,
26
+ onInputLostFocus: C
27
+ }, t[2] = m, t[3] = a, t[4] = l) : l = t[4];
28
+ const o = l;
29
+ let r;
30
+ t[5] !== o || t[6] !== e ? (r = /* @__PURE__ */ f.jsx(d, { ...e, ...o }), t[5] = o, t[6] = e, t[7] = r) : r = t[7];
31
+ let j = r;
32
+ if (n !== void 0 && b) {
33
+ let s;
34
+ t[8] !== o || t[9] !== e ? (s = /* @__PURE__ */ f.jsx(d, { ...e, ...o }), t[8] = o, t[9] = e, t[10] = s) : s = t[10];
35
+ let u;
36
+ t[11] !== n || t[12] !== s ? (u = /* @__PURE__ */ f.jsx(I, { customClass: "-withinput", cols: n, children: s }), t[11] = n, t[12] = s, t[13] = u) : u = t[13], j = u;
37
+ }
38
+ return j;
21
39
  };
22
40
  export {
23
- v as default
41
+ g as default
24
42
  };
@@ -1,4 +1,4 @@
1
- import { j as pt } from "../../chunks/jsx-runtime.C7wFtzyj.js";
1
+ import { j as pt } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
2
  import R, { useRef as J, useState as N, useCallback as U, useEffect as w } from "react";
3
3
  import { P as h } from "../../chunks/index.Df3kt2LQ.js";
4
4
  import dt from "../base/InputTextBase.js";
@@ -2556,8 +2556,16 @@ function Tt(u, t) {
2556
2556
  }
2557
2557
  const st = (u, t) => {
2558
2558
  if (u.returnFormattedValueOnBlur || u.returnFormattedValueOnKeyDown) {
2559
- const { name: e } = t.target, s = u.defaultValue || "";
2560
- return { ...t, target: { value: ft(s), name: e } };
2559
+ const {
2560
+ name: e
2561
+ } = t.target, s = u.defaultValue || "";
2562
+ return {
2563
+ ...t,
2564
+ target: {
2565
+ value: ft(s),
2566
+ name: e
2567
+ }
2568
+ };
2561
2569
  }
2562
2570
  return t;
2563
2571
  }, wt = (u, t, e) => u.isNumeric ? {} : {
@@ -2578,22 +2586,32 @@ const st = (u, t) => {
2578
2586
  }
2579
2587
  }
2580
2588
  if (u.onBlur) {
2581
- const { value: i } = s.target, n = Q(i), a = { ...s, target: { ...s.target, value: n } }, r = st(u, a);
2589
+ const {
2590
+ value: i
2591
+ } = s.target, n = Q(i), a = {
2592
+ ...s,
2593
+ target: {
2594
+ ...s.target,
2595
+ value: n
2596
+ }
2597
+ }, r = st(u, a);
2582
2598
  u.onBlur(r);
2583
2599
  }
2584
2600
  },
2585
2601
  onKeyDown: (s) => {
2586
2602
  if (u.onKeyDown) {
2587
- const { value: i } = s.target, n = Q(i), a = { ...s, target: { value: n } }, r = st(u, a);
2603
+ const {
2604
+ value: i
2605
+ } = s.target, n = Q(i), a = {
2606
+ ...s,
2607
+ target: {
2608
+ value: n
2609
+ }
2610
+ }, r = st(u, a);
2588
2611
  u.onKeyDown(r);
2589
2612
  }
2590
2613
  }
2591
- }, Rt = [
2592
- P.disabled,
2593
- P.unvisible,
2594
- P.readOnly,
2595
- P.hideContent
2596
- ], zt = ({
2614
+ }, Rt = [P.disabled, P.unvisible, P.readOnly, P.hideContent], zt = ({
2597
2615
  value: u,
2598
2616
  defaultValue: t,
2599
2617
  inputRef: e,
@@ -2603,7 +2621,18 @@ const st = (u, t) => {
2603
2621
  mask: a,
2604
2622
  ...r
2605
2623
  }) => {
2606
- const l = kt(Rt, n), { disabled: p, readOnly: k } = l, m = p || k, g = mt({ mask: a, ...r }), { ref: E, setValue: M, setTypedValue: F, maskRef: b } = Tt(g, {
2624
+ const l = kt(Rt, n), {
2625
+ disabled: p,
2626
+ readOnly: k
2627
+ } = l, m = p || k, g = mt({
2628
+ mask: a,
2629
+ ...r
2630
+ }), {
2631
+ ref: E,
2632
+ setValue: M,
2633
+ setTypedValue: F,
2634
+ maskRef: b
2635
+ } = Tt(g, {
2607
2636
  defaultValue: t,
2608
2637
  onAccept: (V, x) => {
2609
2638
  if (!m && s) {
@@ -2634,17 +2663,9 @@ const st = (u, t) => {
2634
2663
  });
2635
2664
  return w(() => {
2636
2665
  typeof u == "number" && (String(u).trim().length > 0 ? F(u) : F(0)), M(ct(u) ?? "");
2637
- }, [u]), /* @__PURE__ */ pt.jsx(
2638
- dt,
2639
- {
2640
- inputRef: (V) => {
2641
- E.current = V, e && (typeof e == "object" ? e.current = V : e(V));
2642
- },
2643
- permissionAttr: n,
2644
- ...r,
2645
- ...wt(r, M, b.current)
2646
- }
2647
- );
2666
+ }, [u]), /* @__PURE__ */ pt.jsx(dt, { inputRef: (V) => {
2667
+ E.current = V, e && (typeof e == "object" ? e.current = V : e(V));
2668
+ }, permissionAttr: n, ...r, ...wt(r, M, b.current) });
2648
2669
  };
2649
2670
  export {
2650
2671
  zt as default
@@ -1,40 +1,46 @@
1
- import { j as l } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
- import { useState as g, useEffect as u } from "react";
3
- import { _ as C } from "../../chunks/lodash.CIAK_hAg.js";
4
- import c from "./BaseMask.js";
5
- import { CNPJValidation as i } from "./helpers.js";
6
- const h = (e) => {
7
- const {
8
- value: s = "",
9
- enableValidation: o = !0,
10
- handlerSetComponentValidator: a
11
- } = e, [r, m] = g("");
12
- u(() => {
13
- o && a && a(() => i);
14
- }, []);
15
- const d = (t) => {
16
- if (o && t) {
17
- let n;
18
- n || (n = C.debounce(() => {
19
- i(t.target.value, a ? void 0 : m);
20
- }, 300)), n(), e.onChange && e.onChange(t);
1
+ import { j } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as x } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useState as E, useEffect as F } from "react";
4
+ import { _ as M } from "../../chunks/lodash.CIAK_hAg.js";
5
+ import _ from "./BaseMask.js";
6
+ import { CNPJValidation as V } from "./helpers.js";
7
+ const S = (t) => {
8
+ const e = x.c(19), {
9
+ value: h,
10
+ enableValidation: v,
11
+ handlerSetComponentValidator: n
12
+ } = t, d = h === void 0 ? "" : h, o = v === void 0 ? !0 : v, [i, b] = E("");
13
+ let l;
14
+ e[0] !== o || e[1] !== n ? (l = () => {
15
+ o && n && n(k);
16
+ }, e[0] = o, e[1] = n, e[2] = l) : l = e[2];
17
+ let r;
18
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (r = [], e[3] = r) : r = e[3], F(l, r);
19
+ let s;
20
+ e[4] !== o || e[5] !== n || e[6] !== t ? (s = (c) => {
21
+ if (o && c) {
22
+ let C;
23
+ C || (C = M.debounce(() => {
24
+ V(c.target.value, n ? void 0 : b);
25
+ }, 300)), C(), t.onChange && t.onChange(c);
21
26
  }
22
- e.onChange && e.onChange(t);
23
- }, f = () => o && !a && r ? {
24
- errorMessages: [r]
25
- } : {};
26
- return /* @__PURE__ */ l.jsx(
27
- c,
28
- {
29
- ...e,
30
- value: s,
31
- mask: "00.000.000/0000-00",
32
- onChange: d,
33
- ...f()
34
- }
35
- );
27
+ t.onChange && t.onChange(c);
28
+ }, e[4] = o, e[5] = n, e[6] = t, e[7] = s) : s = e[7];
29
+ const u = s;
30
+ let m;
31
+ e[8] !== o || e[9] !== n || e[10] !== i ? (m = () => o && !n && i ? {
32
+ errorMessages: [i]
33
+ } : {}, e[8] = o, e[9] = n, e[10] = i, e[11] = m) : m = e[11];
34
+ const g = m;
35
+ let a;
36
+ e[12] !== g ? (a = g(), e[12] = g, e[13] = a) : a = e[13];
37
+ let f;
38
+ return e[14] !== u || e[15] !== t || e[16] !== a || e[17] !== d ? (f = /* @__PURE__ */ j.jsx(_, { ...t, value: d, mask: "00.000.000/0000-00", onChange: u, ...a }), e[14] = u, e[15] = t, e[16] = a, e[17] = d, e[18] = f) : f = e[18], f;
36
39
  };
37
- h.displayName = "CnpjField";
40
+ S.displayName = "CnpjField";
41
+ function k() {
42
+ return V;
43
+ }
38
44
  export {
39
- h as default
45
+ S as default
40
46
  };
@@ -1,36 +1,48 @@
1
- import { j as l } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
- import { useState as g, useEffect as s, useMemo as u } from "react";
3
- import { _ as c } from "../../chunks/lodash.CIAK_hAg.js";
4
- import C from "./BaseMask.js";
5
- import { CPFValidation as i } from "./helpers.js";
6
- const h = (e) => {
7
- const { enableValidation: t = !0, handlerSetComponentValidator: a } = e, [n, m] = g("");
8
- s(() => {
9
- t && a && a(() => i);
10
- }, []);
11
- const r = u(
12
- () => c.debounce((o) => {
13
- i(o, a ? void 0 : m);
14
- }, 300),
15
- [a]
16
- );
17
- s(() => r.cancel, []);
18
- const f = (o) => {
19
- t && r(o.target.value), e.onChange && e.onChange(o);
20
- }, d = () => t && !a && n ? {
21
- errorMessages: [n]
22
- } : {};
23
- return /* @__PURE__ */ l.jsx(
24
- C,
25
- {
26
- ...e,
27
- onChange: f,
28
- mask: "000.000.000-00",
29
- ...d()
30
- }
31
- );
1
+ import { j as E } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as M } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useState as S, useEffect as _ } from "react";
4
+ import { _ as j } from "../../chunks/lodash.CIAK_hAg.js";
5
+ import v from "./BaseMask.js";
6
+ import { CPFValidation as x } from "./helpers.js";
7
+ const y = (t) => {
8
+ const e = M.c(23), {
9
+ enableValidation: V,
10
+ handlerSetComponentValidator: n
11
+ } = t, a = V === void 0 ? !0 : V, [s, F] = S("");
12
+ let r;
13
+ e[0] !== a || e[1] !== n ? (r = () => {
14
+ a && n && n(k);
15
+ }, e[0] = a, e[1] = n, e[2] = r) : r = e[2];
16
+ let f;
17
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (f = [], e[3] = f) : f = e[3], _(r, f);
18
+ let m;
19
+ e[4] !== n ? (m = j.debounce((i) => {
20
+ x(i, n ? void 0 : F);
21
+ }, 300), e[4] = n, e[5] = m) : m = e[5];
22
+ const o = m;
23
+ let c;
24
+ e[6] !== o.cancel ? (c = () => o.cancel, e[6] = o.cancel, e[7] = c) : c = e[7];
25
+ let d;
26
+ e[8] === Symbol.for("react.memo_cache_sentinel") ? (d = [], e[8] = d) : d = e[8], _(c, d);
27
+ let u;
28
+ e[9] !== o || e[10] !== a || e[11] !== t ? (u = (i) => {
29
+ a && o(i.target.value), t.onChange && t.onChange(i);
30
+ }, e[9] = o, e[10] = a, e[11] = t, e[12] = u) : u = e[12];
31
+ const h = u;
32
+ let g;
33
+ e[13] !== a || e[14] !== n || e[15] !== s ? (g = () => a && !n && s ? {
34
+ errorMessages: [s]
35
+ } : {}, e[13] = a, e[14] = n, e[15] = s, e[16] = g) : g = e[16];
36
+ const b = g;
37
+ let l;
38
+ e[17] !== b ? (l = b(), e[17] = b, e[18] = l) : l = e[18];
39
+ let C;
40
+ return e[19] !== h || e[20] !== t || e[21] !== l ? (C = /* @__PURE__ */ E.jsx(v, { ...t, onChange: h, mask: "000.000.000-00", ...l }), e[19] = h, e[20] = t, e[21] = l, e[22] = C) : C = e[22], C;
32
41
  };
33
- h.displayName = "CpfField";
42
+ y.displayName = "CpfField";
43
+ function k() {
44
+ return x;
45
+ }
34
46
  export {
35
- h as default
47
+ y as default
36
48
  };
@@ -1,9 +1,13 @@
1
- import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
- import o from "./BaseMask.js";
3
- const a = (e) => {
4
- const { cellNumber: s } = e;
5
- return /* @__PURE__ */ t.jsx(o, { ...e, mask: s ? "(00) 00000-0000" : "(00) 0000-0000" });
1
+ import { j as r } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import i from "./BaseMask.js";
4
+ const f = (e) => {
5
+ const t = c.c(3), {
6
+ cellNumber: m
7
+ } = e, s = m ? "(00) 00000-0000" : "(00) 0000-0000";
8
+ let o;
9
+ return t[0] !== e || t[1] !== s ? (o = /* @__PURE__ */ r.jsx(i, { ...e, mask: s }), t[0] = e, t[1] = s, t[2] = o) : o = t[2], o;
6
10
  };
7
11
  export {
8
- a as default
12
+ f as default
9
13
  };
@@ -1,6 +1,11 @@
1
- import { j as o } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
- import t from "./BaseMask.js";
3
- const m = (s) => /* @__PURE__ */ o.jsx(t, { ...s, mask: "00000-000" });
1
+ import { j as s } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as m } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import r from "./BaseMask.js";
4
+ const f = (o) => {
5
+ const t = m.c(2);
6
+ let e;
7
+ return t[0] !== o ? (e = /* @__PURE__ */ s.jsx(r, { ...o, mask: "00000-000" }), t[0] = o, t[1] = e) : e = t[1], e;
8
+ };
4
9
  export {
5
- m as default
10
+ f as default
6
11
  };
@@ -1,50 +1,39 @@
1
- import { j as o } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
- import { Fragment as c } from "react";
3
- import r from "../../buttons/Button.js";
1
+ import { j as i } from "../../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as b } from "../../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { Fragment as C } from "react";
4
+ import x from "../../buttons/Button.js";
4
5
  import "../../icons/index.js";
5
6
  import '../../assets/button.css';/* empty css */
6
- import d from "../../list/index.js";
7
- import { L as s } from "../../chunks/tabs.D0L_nVfP.js";
8
- const h = ({
9
- disabled: t,
10
- dropdownOpened: n,
11
- handleOpenClose: e,
12
- handleCheckAll: a,
13
- handleUncheckAll: i,
14
- dropdownAlignButton: m = "left"
15
- }) => /* @__PURE__ */ o.jsxs(c, { children: [
16
- /* @__PURE__ */ o.jsx(
17
- r,
18
- {
19
- transparent: !0,
20
- tabIndex: -1,
21
- disabled: t,
22
- boxShadow: !1,
23
- size: "small",
24
- onClick: e,
25
- customClass: "actionbutton",
26
- iconName: n ? "up" : "down"
27
- }
28
- ),
29
- /* @__PURE__ */ o.jsx(
30
- r,
31
- {
32
- dropdown: !0,
33
- transparent: !0,
34
- disabled: t,
35
- tabIndex: -1,
36
- boxShadow: !1,
37
- showIconDropdown: !1,
38
- iconName: "more1",
39
- customClass: "actionbutton",
40
- dropdownAlign: m,
41
- children: /* @__PURE__ */ o.jsxs(d, { children: [
42
- /* @__PURE__ */ o.jsx(s, { itemId: "1", text: "Marcar Todos", onClick: a }),
43
- /* @__PURE__ */ o.jsx(s, { itemId: "2", text: "Desmarcar Todos", onClick: i })
44
- ] })
45
- }
46
- )
47
- ] });
7
+ import A from "../../list/index.js";
8
+ import { L as h } from "../../chunks/tabs.BvKfeA6Y.js";
9
+ const O = (w) => {
10
+ const t = b.c(18), {
11
+ disabled: o,
12
+ dropdownOpened: j,
13
+ handleOpenClose: d,
14
+ handleCheckAll: m,
15
+ handleUncheckAll: c,
16
+ dropdownAlignButton: u
17
+ } = w, p = u === void 0 ? "left" : u, f = j ? "up" : "down";
18
+ let e;
19
+ t[0] !== o || t[1] !== d || t[2] !== f ? (e = /* @__PURE__ */ i.jsx(x, { transparent: !0, tabIndex: -1, disabled: o, boxShadow: !1, size: "small", onClick: d, customClass: "actionbutton", iconName: f }), t[0] = o, t[1] = d, t[2] = f, t[3] = e) : e = t[3];
20
+ let n;
21
+ t[4] !== m ? (n = /* @__PURE__ */ i.jsx(h, { itemId: "1", text: "Marcar Todos", onClick: m }), t[4] = m, t[5] = n) : n = t[5];
22
+ let s;
23
+ t[6] !== c ? (s = /* @__PURE__ */ i.jsx(h, { itemId: "2", text: "Desmarcar Todos", onClick: c }), t[6] = c, t[7] = s) : s = t[7];
24
+ let r;
25
+ t[8] !== n || t[9] !== s ? (r = /* @__PURE__ */ i.jsxs(A, { children: [
26
+ n,
27
+ s
28
+ ] }), t[8] = n, t[9] = s, t[10] = r) : r = t[10];
29
+ let l;
30
+ t[11] !== o || t[12] !== p || t[13] !== r ? (l = /* @__PURE__ */ i.jsx(x, { dropdown: !0, transparent: !0, disabled: o, tabIndex: -1, boxShadow: !1, showIconDropdown: !1, iconName: "more1", customClass: "actionbutton", dropdownAlign: p, children: r }), t[11] = o, t[12] = p, t[13] = r, t[14] = l) : l = t[14];
31
+ let a;
32
+ return t[15] !== e || t[16] !== l ? (a = /* @__PURE__ */ i.jsxs(C, { children: [
33
+ e,
34
+ l
35
+ ] }), t[15] = e, t[16] = l, t[17] = a) : a = t[17], a;
36
+ };
48
37
  export {
49
- h as default
38
+ O as default
50
39
  };