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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/lib/alerts/AlertProvider.js +2 -2
  2. package/lib/alerts/BaseAlert.js +8 -8
  3. package/lib/alerts/Message.js +1 -1
  4. package/lib/alerts/withAlert.js +1 -1
  5. package/lib/assets/BaseAlert.css +1 -1
  6. package/lib/assets/Content.css +1 -1
  7. package/lib/assets/DefaultFile.css +1 -1
  8. package/lib/assets/Drawer.css +1 -1
  9. package/lib/assets/index11.css +1 -1
  10. package/lib/assets/index5.css +1 -1
  11. package/lib/avatar/index.js +1 -1
  12. package/lib/badge/index.js +1 -1
  13. package/lib/buttons/ActivateButton.js +1 -1
  14. package/lib/buttons/AddButton.js +1 -1
  15. package/lib/buttons/Button.js +1 -1
  16. package/lib/buttons/ButtonGroups.js +1 -1
  17. package/lib/buttons/CancelButton.js +1 -1
  18. package/lib/buttons/DangerButton.js +1 -1
  19. package/lib/buttons/DefaultButton.js +70 -71
  20. package/lib/buttons/DestroyButton.js +1 -1
  21. package/lib/buttons/EditButton.js +1 -1
  22. package/lib/buttons/InactivateButton.js +1 -1
  23. package/lib/buttons/InfoButton.js +1 -1
  24. package/lib/buttons/PrimaryButton.js +1 -1
  25. package/lib/buttons/RestoreButton.js +1 -1
  26. package/lib/buttons/SaveButton.js +1 -1
  27. package/lib/buttons/SuccessButton.js +1 -1
  28. package/lib/buttons/WarningButton.js +1 -1
  29. package/lib/buttons/button_container/index.js +1 -1
  30. package/lib/buttons/split_button/index.js +1 -1
  31. package/lib/calendar/DangerCalendar.js +1 -1
  32. package/lib/calendar/InfoCalendar.js +1 -1
  33. package/lib/calendar/PrimaryCalendar.js +1 -1
  34. package/lib/calendar/SuccessCalendar.js +1 -1
  35. package/lib/calendar/WarningCalendar.js +1 -1
  36. package/lib/calendar/base/Day.js +2 -2
  37. package/lib/calendar/base/Month.js +1 -1
  38. package/lib/calendar/base/Week.js +1 -1
  39. package/lib/calendar/base/helpers.js +1 -1
  40. package/lib/calendar/base/index.js +64 -66
  41. package/lib/checkbox/index.js +4 -4
  42. package/lib/chunks/index.CM1aLH2W.js +205 -0
  43. package/lib/chunks/{index.CBPsbBt0.js → index.Df3kt2LQ.js} +3 -3
  44. package/lib/chunks/{jsx-runtime.gtoSnx-V.js → jsx-runtime.C7wFtzyj.js} +2 -2
  45. package/lib/chunks/{lodash.C68pWaTB.js → lodash.CIAK_hAg.js} +433 -433
  46. package/lib/chunks/{moment.CwOqp704.js → moment.DMLRxgRE.js} +8 -8
  47. package/lib/chunks/{tabs.CM2We4tV.js → tabs.D0L_nVfP.js} +95 -96
  48. package/lib/chunks/v1.Ds1rkxUj.js +49 -0
  49. package/lib/dialog/Alert.js +1 -1
  50. package/lib/dialog/Custom.js +3 -3
  51. package/lib/dialog/Error.js +1 -1
  52. package/lib/dialog/Information.js +1 -1
  53. package/lib/dialog/Question.js +36 -39
  54. package/lib/dialog/Warning.js +1 -1
  55. package/lib/dialog/base/Content.js +1 -1
  56. package/lib/dialog/base/Footer.js +1 -1
  57. package/lib/dialog/base/Header.js +2 -2
  58. package/lib/dialog/base/index.js +2 -2
  59. package/lib/dialog/form/index.js +2 -2
  60. package/lib/dialog/index.js +1 -1
  61. package/lib/dialog/wizard/index.js +4 -4
  62. package/lib/dialog/wizard/progressbar.js +87 -3
  63. package/lib/dialog/wizard/step.js +2 -2
  64. package/lib/drawer/Content.js +1 -1
  65. package/lib/drawer/Drawer.js +19 -19
  66. package/lib/drawer/Header.js +1 -1
  67. package/lib/dropdown/Popup.js +1 -1
  68. package/lib/dropdown/withDropdown.js +31 -31
  69. package/lib/fieldset/index.js +1 -1
  70. package/lib/form/Field.js +2 -2
  71. package/lib/form/FieldArray.js +2 -2
  72. package/lib/form/FieldNumber.js +27 -27
  73. package/lib/form/FieldPeriod.js +2 -2
  74. package/lib/form/helpers.js +1 -1
  75. package/lib/form/index.js +49 -49
  76. package/lib/form/withFieldHOC.js +1 -1
  77. package/lib/form/withFormSecurity.js +1 -1
  78. package/lib/gridlayout/GridCol.js +1 -1
  79. package/lib/gridlayout/GridRow.js +1 -1
  80. package/lib/hint/helpers.js +1 -1
  81. package/lib/hint/index.js +1 -1
  82. package/lib/icons/index.js +51 -54
  83. package/lib/index.js +2 -2
  84. package/lib/inputs/base/InputTextBase.js +112 -114
  85. package/lib/inputs/base/Label.js +1 -1
  86. package/lib/inputs/base/helpers.d.ts +3 -3
  87. package/lib/inputs/base/helpers.js +1 -1
  88. package/lib/inputs/color/index.js +2 -2
  89. package/lib/inputs/date/Dialog.js +2 -2
  90. package/lib/inputs/date/Dropdown.js +10 -14
  91. package/lib/inputs/date/helpers.js +1 -1
  92. package/lib/inputs/date/index.js +102 -114
  93. package/lib/inputs/errorMessage/index.js +1 -1
  94. package/lib/inputs/file/DefaultFile.js +43 -44
  95. package/lib/inputs/file/DragDropFile.js +91 -93
  96. package/lib/inputs/file/File.d.ts +1 -1
  97. package/lib/inputs/file/File.js +33 -34
  98. package/lib/inputs/file/FileButtonSettings.js +1 -1
  99. package/lib/inputs/inputHOC.js +1 -1
  100. package/lib/inputs/mask/BaseMask.js +8 -8
  101. package/lib/inputs/mask/Cnpj.js +2 -2
  102. package/lib/inputs/mask/Cpf.js +2 -2
  103. package/lib/inputs/mask/Phone.js +1 -1
  104. package/lib/inputs/mask/ZipCode.js +1 -1
  105. package/lib/inputs/mask/helpers.d.ts +33 -33
  106. package/lib/inputs/mask/helpers.js +1 -1
  107. package/lib/inputs/multiSelect/ActionButtons.js +2 -2
  108. package/lib/inputs/multiSelect/Dropdown.js +63 -64
  109. package/lib/inputs/multiSelect/helper.js +4 -7
  110. package/lib/inputs/multiSelect/index.js +45 -47
  111. package/lib/inputs/number/BaseNumber.js +1 -1
  112. package/lib/inputs/number/Currency.js +1 -1
  113. package/lib/inputs/number/Decimal.js +1 -1
  114. package/lib/inputs/number/index.js +10 -10
  115. package/lib/inputs/period/Dialog.js +2 -2
  116. package/lib/inputs/period/Dropdown.js +10 -15
  117. package/lib/inputs/period/PeriodList.js +1 -1
  118. package/lib/inputs/period/helper.js +1 -1
  119. package/lib/inputs/period/index.js +207 -223
  120. package/lib/inputs/search/index.js +29 -29
  121. package/lib/inputs/select/ActionButtons.js +1 -1
  122. package/lib/inputs/select/Dropdown.js +53 -53
  123. package/lib/inputs/select/helper.d.ts +1 -1
  124. package/lib/inputs/select/helper.js +39 -45
  125. package/lib/inputs/select/index.js +1 -1
  126. package/lib/inputs/select/multiple/Selecteds.js +1 -1
  127. package/lib/inputs/select/multiple/index.js +139 -143
  128. package/lib/inputs/select/simple/index.js +157 -164
  129. package/lib/inputs/text/index.js +1 -1
  130. package/lib/inputs/textarea/index.js +1 -1
  131. package/lib/internals/withTooltip.js +1 -1
  132. package/lib/labelMessages/index.js +1 -1
  133. package/lib/labels/DangerLabel.js +1 -1
  134. package/lib/labels/DefaultLabel.js +1 -1
  135. package/lib/labels/InfoLabel.js +1 -1
  136. package/lib/labels/PrimaryLabel.js +1 -1
  137. package/lib/labels/SuccessLabel.js +1 -1
  138. package/lib/labels/WarningLabel.js +1 -1
  139. package/lib/labels/label_container/index.js +1 -1
  140. package/lib/list/Header.js +1 -1
  141. package/lib/list/Item.js +2 -2
  142. package/lib/list/Separator.js +1 -1
  143. package/lib/list/index.js +2 -2
  144. package/lib/menus/float/MenuItem.js +18 -18
  145. package/lib/menus/float/SubMenuContainer.d.ts +10 -10
  146. package/lib/menus/float/index.js +2 -2
  147. package/lib/menus/sidenav/ExpandMenu.js +1 -1
  148. package/lib/menus/sidenav/MenuLink.js +1 -1
  149. package/lib/menus/sidenav/NavMenuGroup.js +1 -1
  150. package/lib/menus/sidenav/NavMenuItem.js +54 -56
  151. package/lib/menus/sidenav/NavSubMenuItem.js +1 -1
  152. package/lib/menus/sidenav/index.js +2 -2
  153. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +1 -1
  154. package/lib/menus/sidenav/popup_menu_search/index.js +2 -2
  155. package/lib/noPermission/index.js +1 -1
  156. package/lib/panel/Content.js +30 -31
  157. package/lib/panel/DangerPanel.js +1 -1
  158. package/lib/panel/Default.js +1 -1
  159. package/lib/panel/Header.js +1 -1
  160. package/lib/panel/InfoPanel.js +1 -1
  161. package/lib/panel/PrimaryPanel.js +1 -1
  162. package/lib/panel/SuccessPanel.js +1 -1
  163. package/lib/panel/ToolBar.js +1 -1
  164. package/lib/panel/WarningPanel.js +1 -1
  165. package/lib/permissionValidations.js +11 -11
  166. package/lib/popover/PopoverText.js +1 -1
  167. package/lib/popover/PopoverTitle.js +1 -1
  168. package/lib/popover/index.js +1 -1
  169. package/lib/progress/Bar.js +1 -1
  170. package/lib/progress/index.js +1 -1
  171. package/lib/radio/index.js +1 -1
  172. package/lib/shortcuts/index.js +1 -1
  173. package/lib/skeleton/SkeletonContainer.js +1 -1
  174. package/lib/skeleton/index.js +1 -1
  175. package/lib/spinner/SpinnerLoading.js +1 -1
  176. package/lib/spinner/index.js +1 -1
  177. package/lib/split/Split.js +1 -1
  178. package/lib/split/SplitSide.js +1 -1
  179. package/lib/table/Body.js +25 -25
  180. package/lib/table/Header.js +28 -31
  181. package/lib/table/HeaderColumn.js +2 -2
  182. package/lib/table/Row.js +1 -1
  183. package/lib/table/RowColumn.js +1 -1
  184. package/lib/table/index.js +2 -2
  185. package/lib/tabs/DropdownTabs.js +4 -4
  186. package/lib/tabs/Menu.js +1 -1
  187. package/lib/tabs/MenuTabs.js +2 -2
  188. package/lib/tabs/Panel.js +29 -30
  189. package/lib/tabs/context.js +25 -29
  190. package/lib/tabs/index.js +2 -2
  191. package/lib/textContent/index.js +2 -2
  192. package/lib/toolbar/ButtonBar.js +1 -1
  193. package/lib/toolbar/LabelBar.js +1 -1
  194. package/lib/toolbar/Separator.js +1 -1
  195. package/lib/toolbar/ToolBarGroup.js +1 -1
  196. package/lib/toolbar/index.js +1 -1
  197. package/lib/tooltip/index.js +24 -24
  198. package/lib/treetable/Body.js +2 -2
  199. package/lib/treetable/Header.js +3 -3
  200. package/lib/treetable/Row.js +52 -52
  201. package/lib/treetable/helpers.d.ts +4 -5
  202. package/lib/treetable/index.js +1 -1
  203. package/lib/treeview/Header.js +1 -1
  204. package/lib/treeview/Node.js +4 -4
  205. package/lib/treeview/index.js +28 -28
  206. package/lib/uitour/index.js +32 -32
  207. package/package.json +24 -39
  208. package/lib/chunks/index.CjD97zna.js +0 -206
  209. package/lib/chunks/index.m4wxhMbx.js +0 -89
  210. package/lib/chunks/v1.CDXKvGzE.js +0 -41
  211. /package/lib/assets/{index29.css → progressbar.css} +0 -0
@@ -1,102 +1,100 @@
1
- import { j as t } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useState as b, Fragment as M } from "react";
3
- import { _ as ee } from "../../chunks/lodash.C68pWaTB.js";
1
+ import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useState as D, Fragment as w } from "react";
3
+ import { _ as ee } from "../../chunks/lodash.CIAK_hAg.js";
4
4
  import "../../buttons/DefaultButton.js";
5
- import P from "../../buttons/PrimaryButton.js";
6
- import U from "../../buttons/DangerButton.js";
7
- import B from "../../icons/index.js";
5
+ import S from "../../buttons/PrimaryButton.js";
6
+ import $ from "../../buttons/DangerButton.js";
7
+ import F from "../../icons/index.js";
8
8
  import '../../assets/button.css';/* empty css */
9
9
  import te from "../base/InputTextBase.js";
10
10
  import se from "../../hint/index.js";
11
11
  import { ErrorMessage as ae } from "../errorMessage/index.js";
12
- const I = (i) => i != null && i.length ? ee.map(i, (n) => n) : [], g = (i) => i.split(",").map((n) => n.includes(".") ? n.split(".")[1] : n.split("/")[1]).join(", "), re = (i) => i.split(", "), xe = (i) => {
12
+ const q = (n) => n?.length ? ee.map(n, (i) => i) : [], g = (n) => n.split(",").map((i) => i.includes(".") ? i.split(".")[1] : i.split("/")[1]).join(", "), re = (n) => n.split(", "), xe = (n) => {
13
13
  const {
14
- id: n = Math.random().toString(36).substring(2, 7),
14
+ id: i = Math.random().toString(36).substring(2, 7),
15
15
  accept: o = "image/png, image/jpeg",
16
- labelButton: w = "Selecionar",
17
- subtitleDragDrop: u = "Selecione arquivos do tipo ",
18
- titleDragDrop: f = "Arquivo para importação",
19
- onBtnClickInsert: C,
20
- inputRef: _,
21
- onChange: m,
22
- onDragEnter: N,
23
- onDragOver: y,
24
- onDragLeave: D,
25
- onDrop: F,
26
- showSubtitle: H = !0,
16
+ labelButton: L = "Selecionar",
17
+ subtitleDragDrop: f = "Selecione arquivos do tipo ",
18
+ titleDragDrop: u = "Arquivo para importação",
19
+ onBtnClickInsert: A,
20
+ inputRef: z,
21
+ onChange: C,
22
+ onDragEnter: M,
23
+ onDragOver: P,
24
+ onDragLeave: U,
25
+ onDrop: I,
26
+ showSubtitle: _ = !0,
27
27
  multiple: x = !1,
28
- hint: S = [],
29
- hintPosition: W = "below",
30
- errorMessages: G = [],
31
- skeletonize: A = !1
32
- } = i, [J, R] = b(!1), [r, h] = b([]), [j, E] = b(!1), [p, d] = b({
28
+ hint: R = [],
29
+ hintPosition: H = "below",
30
+ errorMessages: W = [],
31
+ skeletonize: b = !1
32
+ } = n, [G, N] = D(!1), [r, h] = D([]), [j, T] = D(!1), [c, m] = D({
33
33
  class: "",
34
- text: f,
35
- subtitle: u + g(o),
34
+ text: u,
35
+ subtitle: f + g(o),
36
36
  error: !1
37
37
  }), v = (e) => {
38
- var s, a;
39
- (s = e.preventDefault) == null || s.call(e), (a = e.stopPropagation) == null || a.call(e);
40
- }, K = (e, s, a) => {
41
- E(!1), s.forEach((l) => (!j && e.indexOf(l) === -1 && E(!0), j)), !x && (a.dataTransfer.items.length > 1 || r.length > 0) ? d({
38
+ e.preventDefault?.(), e.stopPropagation?.();
39
+ }, J = (e, s, a) => {
40
+ T(!1), s.forEach((l) => (!j && e.indexOf(l) === -1 && T(!0), j)), !x && (a.dataTransfer.items.length > 1 || r.length > 0) ? m({
42
41
  class: "disapprovedFile",
43
42
  text: "Não é permitido anexar mais de um arquivo.",
44
43
  subtitle: "",
45
44
  error: !0
46
- }) : d(j ? {
45
+ }) : m(j ? {
47
46
  class: "disapprovedFile",
48
47
  text: "Por favor, verifique a extensão do(s) arquivo(s) inserido(s).",
49
48
  subtitle: `Apenas as extensões ${g(o)} são permitidas.`,
50
49
  error: !0
51
50
  } : {
52
51
  class: "approvedFile",
53
- text: f,
54
- subtitle: u + g(o),
52
+ text: u,
53
+ subtitle: f + g(o),
55
54
  error: !1
56
55
  });
57
- }, Q = (e) => {
56
+ }, K = (e) => {
58
57
  let s = [];
59
58
  return e.dataTransfer.items && Array.from(e.dataTransfer.items).map((a) => (s.indexOf(a.type) === -1 && (s = [...s, a.type]), s)), s;
60
- }, O = (e) => {
61
- const s = re(o), a = Q(e);
62
- K(s, a, e), v(e), R(!0), N == null || N(e);
63
- }, $ = (e) => {
64
- d({
59
+ }, k = (e) => {
60
+ const s = re(o), a = K(e);
61
+ J(s, a, e), v(e), N(!0), M?.(e);
62
+ }, B = (e) => {
63
+ m({
65
64
  class: "",
66
- text: f,
67
- subtitle: u + g(o),
65
+ text: u,
66
+ subtitle: f + g(o),
68
67
  error: !1
69
- }), v(e), R(!1), D == null || D(e);
70
- }, q = (e) => {
71
- v(e), y == null || y(e);
72
- }, z = (e) => {
73
- v(e), R(!1);
68
+ }), v(e), N(!1), U?.(e);
69
+ }, E = (e) => {
70
+ v(e), P?.(e);
71
+ }, O = (e) => {
72
+ v(e), N(!1);
74
73
  const s = e.dataTransfer;
75
- if (s && !p.error) {
76
- const a = I(s.files);
74
+ if (s && !c.error) {
75
+ const a = q(s.files);
77
76
  if (a.length > 0) {
78
- const l = r.concat(a), T = l.map((c) => c.name), L = l.filter(({ name: c }, k) => !T.includes(c, k + 1));
79
- h(L), m == null || m(a, e), F == null || F(e);
77
+ const l = r.concat(a), y = l.map((d) => d.name), p = l.filter(({ name: d }, Z) => !y.includes(d, Z + 1));
78
+ h(p), C?.(a, e), I?.(e);
80
79
  }
81
80
  }
82
- d({
81
+ m({
83
82
  class: "",
84
- text: f,
85
- subtitle: u + g(o),
83
+ text: u,
84
+ subtitle: f + g(o),
86
85
  error: !1
87
86
  });
88
- }, V = (e) => {
89
- var a;
90
- (a = e.preventDefault) == null || a.call(e);
91
- const s = I(e.target.files);
87
+ }, Q = (e) => {
88
+ e.preventDefault?.();
89
+ const s = q(e.target.files);
92
90
  if (s.length > 0 && !j) {
93
- const l = r.concat(s), T = l.map((c) => c.name), L = l.filter(({ name: c }, k) => !T.includes(c, k + 1));
94
- h(L), m == null || m(s, e);
91
+ const a = r.concat(s), l = a.map((p) => p.name), y = a.filter(({ name: p }, d) => !l.includes(p, d + 1));
92
+ h(y), C?.(s, e);
95
93
  }
96
- }, X = () => h([]), Y = (e) => {
94
+ }, V = () => h([]), X = (e) => {
97
95
  h((s) => s.filter((a) => a.name !== e));
98
- }, Z = () => (r == null ? void 0 : r.length) === 1 ? /* @__PURE__ */ t.jsxs(M, { children: [
99
- r[0].type === "image/jpeg" || r[0].type === "image/png" ? /* @__PURE__ */ t.jsx("img", { alt: r[0].name, src: URL.createObjectURL(r[0]) }) : /* @__PURE__ */ t.jsx(B, { size: 64, name: "file_excel" }),
96
+ }, Y = () => r?.length === 1 ? /* @__PURE__ */ t.jsxs(w, { children: [
97
+ r[0].type === "image/jpeg" || r[0].type === "image/png" ? /* @__PURE__ */ t.jsx("img", { alt: r[0].name, src: URL.createObjectURL(r[0]) }) : /* @__PURE__ */ t.jsx(F, { size: 64, name: "file_excel" }),
100
98
  /* @__PURE__ */ t.jsx("div", { className: "image-preview-solo", children: /* @__PURE__ */ t.jsx("div", { className: "description-file", children: /* @__PURE__ */ t.jsx("span", { className: "subtitle", children: r[0].name }) }) })
101
99
  ] }) : /* @__PURE__ */ t.jsx("ul", { className: "file-list", children: r.length > 0 && r.map((e) => /* @__PURE__ */ t.jsxs(
102
100
  "li",
@@ -104,13 +102,13 @@ const I = (i) => i != null && i.length ? ee.map(i, (n) => n) : [], g = (i) => i.
104
102
  className: "file-card",
105
103
  children: [
106
104
  /* @__PURE__ */ t.jsx(
107
- U,
105
+ $,
108
106
  {
109
107
  transparent: !0,
110
108
  boxShadow: !1,
111
109
  className: "delete-button",
112
- onClick: () => Y(e.name),
113
- icon: /* @__PURE__ */ t.jsx(B, { customClass: "color-icon-upload", name: "close" })
110
+ onClick: () => X(e.name),
111
+ icon: /* @__PURE__ */ t.jsx(F, { customClass: "color-icon-upload", name: "close" })
114
112
  }
115
113
  ),
116
114
  /* @__PURE__ */ t.jsx("div", { className: "image-content", children: (e.type === "image/jpeg" || e.type === "image/png") && /* @__PURE__ */ t.jsx(
@@ -126,29 +124,29 @@ const I = (i) => i != null && i.length ? ee.map(i, (n) => n) : [], g = (i) => i.
126
124
  },
127
125
  `${e.name}${e.size}`
128
126
  )) });
129
- return /* @__PURE__ */ t.jsxs("div", { className: "input-dragdrop-container", onDragEnter: O, onSubmit: (e) => e.preventDefault(), children: [
130
- /* @__PURE__ */ t.jsxs("div", { className: `drag-content ${A ? "-skeletonized" : ""}`, children: [
131
- /* @__PURE__ */ t.jsx("div", { className: `${p.class} ${A ? "" : "content"}`, children: p.error || r.length === 0 ? /* @__PURE__ */ t.jsxs("label", { htmlFor: n, children: [
132
- /* @__PURE__ */ t.jsx("h1", { className: "title", style: { paddingBottom: "20px" }, children: p.text }),
133
- H && /* @__PURE__ */ t.jsx("p", { className: "subtitle", children: p.subtitle }),
134
- !A && /* @__PURE__ */ t.jsx(P, { onClick: C, label: w })
135
- ] }) : /* @__PURE__ */ t.jsxs(M, { children: [
136
- Z(),
127
+ return /* @__PURE__ */ t.jsxs("div", { className: "input-dragdrop-container", onDragEnter: k, onSubmit: (e) => e.preventDefault(), children: [
128
+ /* @__PURE__ */ t.jsxs("div", { className: `drag-content ${b ? "-skeletonized" : ""}`, children: [
129
+ /* @__PURE__ */ t.jsx("div", { className: `${c.class} ${b ? "" : "content"}`, children: c.error || r.length === 0 ? /* @__PURE__ */ t.jsxs("label", { htmlFor: i, children: [
130
+ /* @__PURE__ */ t.jsx("h1", { className: "title", style: { paddingBottom: "20px" }, children: c.text }),
131
+ _ && /* @__PURE__ */ t.jsx("p", { className: "subtitle", children: c.subtitle }),
132
+ !b && /* @__PURE__ */ t.jsx(S, { onClick: A, label: L })
133
+ ] }) : /* @__PURE__ */ t.jsxs(w, { children: [
134
+ Y(),
137
135
  /* @__PURE__ */ t.jsxs("footer", { className: "footer-button-action", children: [
138
136
  (!x && r.length < 1 || x) && /* @__PURE__ */ t.jsx(
139
- P,
137
+ S,
140
138
  {
141
139
  className: "selectButton",
142
- onClick: C,
143
- label: w
140
+ onClick: A,
141
+ label: L
144
142
  }
145
143
  ),
146
144
  /* @__PURE__ */ t.jsx(
147
- U,
145
+ $,
148
146
  {
149
147
  className: "cancelButton",
150
- onClick: X,
151
- icon: /* @__PURE__ */ t.jsx(B, { name: "close", color: "white" }),
148
+ onClick: V,
149
+ icon: /* @__PURE__ */ t.jsx(F, { name: "close", color: "white" }),
152
150
  label: "Limpar"
153
151
  }
154
152
  )
@@ -157,33 +155,33 @@ const I = (i) => i != null && i.length ? ee.map(i, (n) => n) : [], g = (i) => i.
157
155
  /* @__PURE__ */ t.jsx(
158
156
  te,
159
157
  {
160
- ...i,
161
- inputRef: _,
158
+ ...n,
159
+ inputRef: z,
162
160
  style: { display: "none" },
163
161
  type: "file",
164
- id: n,
162
+ id: i,
165
163
  accept: o,
166
164
  multiple: x,
167
- onDragOver: q,
168
- onDrop: z,
169
- onDragLeave: $,
170
- onChange: V
165
+ onDragOver: E,
166
+ onDrop: O,
167
+ onDragLeave: B,
168
+ onChange: Q
171
169
  }
172
170
  ),
173
- J && /* @__PURE__ */ t.jsx(
171
+ G && /* @__PURE__ */ t.jsx(
174
172
  "div",
175
173
  {
176
174
  className: "drag-position-element",
177
175
  id: "dragFileElement",
178
- onDragEnter: O,
179
- onDragLeave: $,
180
- onDragOver: q,
181
- onDrop: z
176
+ onDragEnter: k,
177
+ onDragLeave: B,
178
+ onDragOver: E,
179
+ onDrop: O
182
180
  }
183
181
  )
184
182
  ] }),
185
- /* @__PURE__ */ t.jsx(ae, { messages: G }),
186
- /* @__PURE__ */ t.jsx(se, { visible: !!S && W === "below", customClass: "hint", description: S })
183
+ /* @__PURE__ */ t.jsx(ae, { messages: W }),
184
+ /* @__PURE__ */ t.jsx(se, { visible: !!R && H === "below", customClass: "hint", description: R })
187
185
  ] });
188
186
  };
189
187
  export {
@@ -1,3 +1,3 @@
1
1
  import { IFileProps } from './types';
2
- declare const File: ({ applyDragDrop, defaultFiles, gridLayout, onBtnClickRemove: onBtnClickRemoveProp, ...rest }: Omit<IFileProps, 'onBtnClickInsert'>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const File: ({ applyDragDrop, defaultFiles, gridLayout, onBtnClickRemove: onBtnClickRemoveProp, ...rest }: Omit<IFileProps, "onBtnClickInsert">) => import("react/jsx-runtime").JSX.Element;
3
3
  export default File;
@@ -1,46 +1,45 @@
1
- import { j as o } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useRef as u, useEffect as p } from "react";
3
- import C from "./DefaultFile.js";
4
- import k from "./DragDropFile.js";
1
+ import { j as n } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useRef as l, useEffect as u } from "react";
3
+ import p from "./DefaultFile.js";
4
+ import C from "./DragDropFile.js";
5
5
  import '../../assets/gridlayout.css';/* empty css */
6
- import x from "../../gridlayout/GridCol.js";
7
- import { transformFilesToFileList as a } from "./helpers.js";
8
- const E = ({
9
- applyDragDrop: f = !1,
10
- defaultFiles: t,
11
- gridLayout: n,
6
+ import R from "../../gridlayout/GridCol.js";
7
+ import { transformFilesToFileList as k } from "./helpers.js";
8
+ const F = ({
9
+ applyDragDrop: m = !1,
10
+ defaultFiles: r,
11
+ gridLayout: o,
12
12
  onBtnClickRemove: e,
13
- ...c
13
+ ...i
14
14
  }) => {
15
- const r = u(null), i = () => {
16
- var m;
17
- (m = r.current) == null || m.click();
18
- }, l = () => {
19
- r.current && (r.current.value = ""), e && e();
15
+ const t = l(null), c = () => {
16
+ t.current?.click();
17
+ }, f = () => {
18
+ t.current && (t.current.value = ""), e && e();
20
19
  };
21
- p(() => {
22
- r != null && r.current && t && (r.current.files = a(t));
23
- }, [r == null ? void 0 : r.current]);
24
- const s = f ? /* @__PURE__ */ o.jsx(
25
- k,
20
+ u(() => {
21
+ t?.current && r && (t.current.files = k(r));
22
+ }, [t?.current]);
23
+ const s = m ? /* @__PURE__ */ n.jsx(
24
+ C,
26
25
  {
27
- ...c,
28
- defaultFiles: t,
29
- inputRef: r,
30
- onBtnClickInsert: () => i()
26
+ ...i,
27
+ defaultFiles: r,
28
+ inputRef: t,
29
+ onBtnClickInsert: () => c()
31
30
  }
32
- ) : /* @__PURE__ */ o.jsx(
33
- C,
31
+ ) : /* @__PURE__ */ n.jsx(
32
+ p,
34
33
  {
35
- ...c,
36
- inputRef: r,
37
- defaultFiles: t,
38
- onBtnClickRemove: () => l(),
39
- onBtnClickInsert: () => i()
34
+ ...i,
35
+ inputRef: t,
36
+ defaultFiles: r,
37
+ onBtnClickRemove: () => f(),
38
+ onBtnClickInsert: () => c()
40
39
  }
41
40
  );
42
- return n !== void 0 ? /* @__PURE__ */ o.jsx(x, { customClass: "-withinput", cols: n, style: { height: "100%" }, children: s }) : s;
41
+ return o !== void 0 ? /* @__PURE__ */ n.jsx(R, { customClass: "-withinput", cols: o, style: { height: "100%" }, children: s }) : s;
43
42
  };
44
43
  export {
45
- E as default
44
+ F as default
46
45
  };
@@ -1,4 +1,4 @@
1
- import { j as t } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import s from "../../buttons/Button.js";
3
3
  import r from "../../icons/index.js";
4
4
  import '../../assets/button.css';/* empty css */
@@ -1,4 +1,4 @@
1
- import { j as o } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as c } from "react";
3
3
  import '../assets/gridlayout.css';/* empty css */
4
4
  import m from "../gridlayout/GridCol.js";
@@ -1,6 +1,6 @@
1
- import { j as pt } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as pt } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import R, { useRef as J, useState as N, useCallback as U, useEffect as w } from "react";
3
- import { P as h } from "../../chunks/index.CBPsbBt0.js";
3
+ import { P as h } from "../../chunks/index.Df3kt2LQ.js";
4
4
  import dt from "../base/InputTextBase.js";
5
5
  import { numberToPtBR as ct, formatOnlyNumbers as Q, numberToEnUS as ft } from "../number/format_number.js";
6
6
  import { actionsOnPermissionDenied as kt, OPTIONS_ON_DENIED as P } from "../../permissionValidations.js";
@@ -1242,7 +1242,7 @@ class K {
1242
1242
  var e;
1243
1243
  return {
1244
1244
  ...t,
1245
- _beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) || (t == null ? void 0 : t._beforeTailState)
1245
+ _beforeTailState: (t == null || (e = t._beforeTailState) == null ? void 0 : e.masked) || t?._beforeTailState
1246
1246
  };
1247
1247
  }
1248
1248
  pad(t) {
@@ -1284,7 +1284,7 @@ class v extends _ {
1284
1284
  super({
1285
1285
  ...v.DEFAULTS,
1286
1286
  ...t,
1287
- definitions: Object.assign({}, K.DEFAULT_DEFINITIONS, t == null ? void 0 : t.definitions)
1287
+ definitions: Object.assign({}, K.DEFAULT_DEFINITIONS, t?.definitions)
1288
1288
  });
1289
1289
  }
1290
1290
  updateOptions(t) {
@@ -1783,7 +1783,7 @@ class q extends _ {
1783
1783
  }
1784
1784
  _applyDispatch(t, e, s) {
1785
1785
  t === void 0 && (t = ""), e === void 0 && (e = {}), s === void 0 && (s = "");
1786
- const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, n = this.rawInputValue, a = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : n, r = n.slice(a.length), l = this.currentMask, p = new c(), k = l == null ? void 0 : l.state;
1786
+ const i = e.tail && e._beforeTailState != null ? e._beforeTailState._value : this.value, n = this.rawInputValue, a = e.tail && e._beforeTailState != null ? e._beforeTailState._rawInputValue : n, r = n.slice(a.length), l = this.currentMask, p = new c(), k = l?.state;
1787
1787
  return this.currentMask = this.doDispatch(t, {
1788
1788
  ...e
1789
1789
  }, s), this.currentMask && (this.currentMask !== l ? (this.currentMask.reset(), a && (this.currentMask.append(a, {
@@ -2512,8 +2512,8 @@ function Tt(u, t) {
2512
2512
  }), b(f.typedValue), M(f.unmaskedValue), g(f.value));
2513
2513
  }, []), y = U((f) => {
2514
2514
  const C = l.current;
2515
- C && (x(), e == null || e(C.value, C, f));
2516
- }, [e]), Z = U((f) => l.current && (s == null ? void 0 : s(l.current.value, l.current, f)), [s]);
2515
+ C && (x(), e?.(C.value, C, f));
2516
+ }, [e]), Z = U((f) => l.current && s?.(l.current.value, l.current, f), [s]);
2517
2517
  return w(() => {
2518
2518
  const {
2519
2519
  value: f,
@@ -2536,7 +2536,7 @@ function Tt(u, t) {
2536
2536
  const f = i.current;
2537
2537
  if (!f || !(u != null && u.mask)) return V();
2538
2538
  const C = l.current;
2539
- C ? C == null || C.updateOptions(u) : f && u != null && u.mask && (l.current = d(f, u), x(), n !== void 0 && g(n), a !== void 0 && M(a), r !== void 0 && b(r));
2539
+ C ? C?.updateOptions(u) : f && u != null && u.mask && (l.current = d(f, u), x(), n !== void 0 && g(n), a !== void 0 && M(a), r !== void 0 && b(r));
2540
2540
  }, [u, V, y]), w(() => {
2541
2541
  if (!l.current) return;
2542
2542
  const f = l.current;
@@ -1,6 +1,6 @@
1
- import { j as l } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as l } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as g, useEffect as u } from "react";
3
- import { _ as C } from "../../chunks/lodash.C68pWaTB.js";
3
+ import { _ as C } from "../../chunks/lodash.CIAK_hAg.js";
4
4
  import c from "./BaseMask.js";
5
5
  import { CNPJValidation as i } from "./helpers.js";
6
6
  const h = (e) => {
@@ -1,6 +1,6 @@
1
- import { j as l } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as l } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as g, useEffect as s, useMemo as u } from "react";
3
- import { _ as c } from "../../chunks/lodash.C68pWaTB.js";
3
+ import { _ as c } from "../../chunks/lodash.CIAK_hAg.js";
4
4
  import C from "./BaseMask.js";
5
5
  import { CPFValidation as i } from "./helpers.js";
6
6
  const h = (e) => {
@@ -1,4 +1,4 @@
1
- import { j as t } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import o from "./BaseMask.js";
3
3
  const a = (e) => {
4
4
  const { cellNumber: s } = e;
@@ -1,4 +1,4 @@
1
- import { j as o } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as o } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import t from "./BaseMask.js";
3
3
  const m = (s) => /* @__PURE__ */ o.jsx(t, { ...s, mask: "00000-000" });
4
4
  export {
@@ -1,41 +1,41 @@
1
1
  import { IBaseMaskProps } from './types';
2
2
  export declare const getMaskOptions: ({ isDateField, placeholderChar, min, max, lazy, pattern, radix, thousandsSeparator, mapToRadix, scale, normalizeZeros, padFractionalZeros, rightElements, leftElements, ...rest }: IBaseMaskProps) => {
3
- value?: string | number | undefined;
4
- onBlur?: ((e: import('../base/types').CustomInputEvent) => void) | undefined;
5
- onKeyDown?: ((e: import('../base/types').CustomInputEvent | import('react').KeyboardEvent<Element>) => void) | undefined;
6
- defaultValue?: string | undefined;
7
- isNumeric?: boolean | undefined;
3
+ value?: string | number;
4
+ onBlur?: (e: import('../base/types').CustomInputEvent) => void;
5
+ onKeyDown?: (e: import('../base/types').CustomInputEvent | import('react').KeyboardEvent<Element>) => void;
6
+ defaultValue?: string;
7
+ isNumeric?: boolean;
8
8
  blocks?: any;
9
- handlerSetOnDenied?: ((onDeniedValue: import('../../@types/PermissionAttr').OnDenied) => void) | undefined;
10
- onChange?: ((e: import('../base/types').CustomInputEvent, maskValue?: string | undefined, date?: string | undefined) => void) | undefined;
11
- onComplete?: ((e: import('../base/types').CustomInputEvent, maskValue?: string | undefined, date?: string | undefined) => void) | undefined;
12
- inputRef?: import('react').MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void) | undefined;
13
- permissionAttr?: import('../../@types/PermissionAttr').PermissionAttr | undefined;
14
- errorMessages?: string[] | undefined;
15
- rounded?: boolean | undefined;
16
- textAlign?: import('../../@types/Align').TextAlign | undefined;
17
- customClassForInputContent?: string | undefined;
18
- label?: string | undefined;
19
- name?: string | undefined;
20
- customClassForLabel?: string | undefined;
21
- customClass?: string | undefined;
22
- gridLayout?: string | undefined;
23
- placeHolder?: string | undefined;
24
- readOnly?: boolean | undefined;
25
- labelUppercase?: boolean | undefined;
26
- disabled?: boolean | undefined;
27
- unmask?: boolean | undefined;
28
- onFocus?: ((e: import('../base/types').CustomInputEvent) => void) | undefined;
29
- required?: boolean | undefined;
30
- returnFormattedValueOnBlur?: boolean | undefined;
31
- returnFormattedValueOnKeyDown?: boolean | undefined;
32
- autoCompleteMask?: "left" | "right" | undefined;
9
+ handlerSetOnDenied?: (onDeniedValue: import('../../@types/PermissionAttr').OnDenied) => void;
10
+ onChange?: (e: import('../base/types').CustomInputEvent, maskValue?: string, date?: string) => void;
11
+ onComplete?: (e: import('../base/types').CustomInputEvent, maskValue?: string, date?: string) => void;
12
+ inputRef?: import('react').MutableRefObject<HTMLInputElement | HTMLTextAreaElement | null> | ((ref: HTMLInputElement | HTMLTextAreaElement | null) => void);
13
+ permissionAttr?: import('../../@types/PermissionAttr').PermissionAttr;
14
+ errorMessages?: string[];
15
+ rounded?: boolean;
16
+ textAlign?: import('../../@types/Align').TextAlign;
17
+ customClassForInputContent?: string;
18
+ label?: string;
19
+ name?: string;
20
+ customClassForLabel?: string;
21
+ customClass?: string;
22
+ gridLayout?: string;
23
+ placeHolder?: string;
24
+ readOnly?: boolean;
25
+ labelUppercase?: boolean;
26
+ disabled?: boolean;
27
+ unmask?: boolean;
28
+ onFocus?: (e: import('../base/types').CustomInputEvent) => void;
29
+ required?: boolean;
30
+ returnFormattedValueOnBlur?: boolean;
31
+ returnFormattedValueOnKeyDown?: boolean;
32
+ autoCompleteMask?: "left" | "right";
33
33
  definitions?: any;
34
34
  mask?: any;
35
- hint?: string | string[] | undefined;
36
- hintPosition?: "below" | "onLabelRight" | undefined;
37
- themePopover?: "dark" | "light" | undefined;
38
- popoverAlign?: "left" | "right" | undefined;
35
+ hint?: string | string[];
36
+ hintPosition?: "below" | "onLabelRight";
37
+ themePopover?: "light" | "dark";
38
+ popoverAlign?: "right" | "left";
39
39
  placeholderChar: string;
40
40
  min: any;
41
41
  max: any;
@@ -1,4 +1,4 @@
1
- import { l as v } from "../../chunks/lodash.C68pWaTB.js";
1
+ import { l as v } from "../../chunks/lodash.CIAK_hAg.js";
2
2
  const A = ({
3
3
  isDateField: d,
4
4
  placeholderChar: i = "_",
@@ -1,10 +1,10 @@
1
- import { j as o } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as o } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { Fragment as c } from "react";
3
3
  import r from "../../buttons/Button.js";
4
4
  import "../../icons/index.js";
5
5
  import '../../assets/button.css';/* empty css */
6
6
  import d from "../../list/index.js";
7
- import { L as s } from "../../chunks/tabs.CM2We4tV.js";
7
+ import { L as s } from "../../chunks/tabs.D0L_nVfP.js";
8
8
  const h = ({
9
9
  disabled: t,
10
10
  dropdownOpened: n,