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,61 +1,58 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useRef as C } from "react";
3
- import B from "./helper.js";
4
- import F from "../internals/withTooltip.js";
5
- import '../assets/index2.css';const d = B, N = "rgb(193, 193, 193)", O = ({
6
- name: e,
7
- onClick: l,
8
- svgStruct: o,
9
- size: f = 16,
10
- style: h = {},
11
- visible: m = !0,
12
- disabled: p = !1,
13
- customClass: x = "",
14
- customClassForContainer: w = "",
15
- colorStyle: i = "default",
16
- color: r,
17
- viewBox: I,
18
- pointerEvents: j = "none",
19
- targetRef: c,
20
- tooltip: u
1
+ import { j as i } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useRef as b } from "react";
3
+ import E from "./helper.js";
4
+ import S from "../internals/withTooltip.js";
5
+ import '../assets/index2.css';const a = E, y = "rgb(193, 193, 193)", C = ({
6
+ name: t,
7
+ onClick: s,
8
+ svgStruct: r,
9
+ size: c = 16,
10
+ style: d = {},
11
+ visible: h = !0,
12
+ disabled: l = !1,
13
+ customClass: m = "",
14
+ customClassForContainer: u = "",
15
+ colorStyle: e = "default",
16
+ color: n,
17
+ viewBox: x,
18
+ pointerEvents: w = "none",
19
+ targetRef: f,
20
+ tooltip: g
21
21
  }) => {
22
- const $ = i !== "default" || !r ? void 0 : r, b = C(null), E = e ? d[e].viewbox : o == null ? void 0 : o.viewbox, y = () => e ? d[e].paths : o == null ? void 0 : o.paths, a = () => {
23
- var n;
24
- return /* @__PURE__ */ s.jsx(
25
- "svg",
26
- {
27
- "data-testid": "icon",
28
- "data-color-style": i,
29
- onClick: () => {
30
- l && !p && l();
31
- },
32
- ref: (t) => {
33
- b.current = t;
34
- },
35
- width: `${f}px`,
36
- height: `${f}px`,
37
- fill: p ? N : $,
38
- viewBox: I || E,
39
- className: `icon-component ${x}`,
40
- pointerEvents: j,
41
- style: h,
42
- children: (n = y()) == null ? void 0 : n.map((t) => /* @__PURE__ */ s.jsx("path", { "data-testid": "icon-path", d: t }, t))
43
- }
44
- );
45
- };
46
- if (r && i !== "default") throw new Error("Expected only one of the two properties: colorStyle or color");
47
- if (!e && !o) throw new Error('One of the "name" and "svgStruct" props must be filled');
48
- return m ? u ? /* @__PURE__ */ s.jsx(
22
+ const v = e !== "default" || !n ? void 0 : n, I = b(null), j = t ? a[t].viewbox : r?.viewbox, $ = () => t ? a[t].paths : r?.paths, p = () => /* @__PURE__ */ i.jsx(
23
+ "svg",
24
+ {
25
+ "data-testid": "icon",
26
+ "data-color-style": e,
27
+ onClick: () => {
28
+ s && !l && s();
29
+ },
30
+ ref: (o) => {
31
+ I.current = o;
32
+ },
33
+ width: `${c}px`,
34
+ height: `${c}px`,
35
+ fill: l ? y : v,
36
+ viewBox: x || j,
37
+ className: `icon-component ${m}`,
38
+ pointerEvents: w,
39
+ style: d,
40
+ children: $()?.map((o) => /* @__PURE__ */ i.jsx("path", { "data-testid": "icon-path", d: o }, o))
41
+ }
42
+ );
43
+ if (n && e !== "default") throw new Error("Expected only one of the two properties: colorStyle or color");
44
+ if (!t && !r) throw new Error('One of the "name" and "svgStruct" props must be filled');
45
+ return h ? g ? /* @__PURE__ */ i.jsx(
49
46
  "div",
50
47
  {
51
- className: `icon-component-container ${w}`,
52
- ref: (n) => {
53
- c && n && c(n);
48
+ className: `icon-component-container ${u}`,
49
+ ref: (o) => {
50
+ f && o && f(o);
54
51
  },
55
- children: a()
52
+ children: p()
56
53
  }
57
- ) : a() : null;
58
- }, k = F(O);
54
+ ) : p() : null;
55
+ }, U = S(C);
59
56
  export {
60
- k as default
57
+ U as default
61
58
  };
package/lib/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { default as i } from "./panel/Default.js";
2
- import "./chunks/jsx-runtime.gtoSnx-V.js";
2
+ import "./chunks/jsx-runtime.C7wFtzyj.js";
3
3
  import "react";
4
4
  import { default as d } from "./icons/index.js";
5
5
  import { default as x } from "./buttons/Button.js";
@@ -13,7 +13,7 @@ import { default as L } from "./labels/DefaultLabel.js";
13
13
  import { default as c } from "./list/index.js";
14
14
  import { default as D } from "./radio/index.js";
15
15
  import { default as P } from "./tabs/index.js";
16
- import { B as h } from "./chunks/index.CjD97zna.js";
16
+ import { B as h } from "./chunks/index.CM1aLH2W.js";
17
17
  export {
18
18
  x as Button,
19
19
  h as Dialog,
@@ -1,186 +1,184 @@
1
- import { j as n } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useRef as ge, useState as pe, useEffect as k } from "react";
3
- import { _ as ye } from "../../chunks/lodash.C68pWaTB.js";
1
+ import { j as t } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useRef as be, useState as ge, useEffect as k } from "react";
3
+ import { _ as ye } from "../../chunks/lodash.CIAK_hAg.js";
4
4
  import ve from "../inputHOC.js";
5
5
  import { getRightElements as Ce, getInputWrapperClass as Ie, getInputClass as je } from "./helpers.js";
6
6
  import De from "../../internals/withTooltip.js";
7
- import { actionsOnPermissionDenied as we, OPTIONS_ON_DENIED as f } from "../../permissionValidations.js";
7
+ import { actionsOnPermissionDenied as we, OPTIONS_ON_DENIED as u } from "../../permissionValidations.js";
8
8
  import Oe from "../../hint/index.js";
9
9
  import { ErrorMessage as Fe } from "../errorMessage/index.js";
10
10
  import A from "../../textContent/index.js";
11
11
  import Ne from "../../popover/index.js";
12
- import '../../assets/InputTextBase.css';const Re = (t) => {
12
+ import '../../assets/InputTextBase.css';const Re = (s) => {
13
13
  const {
14
- textAlign: m = "left",
14
+ textAlign: f = "left",
15
15
  value: z,
16
16
  defaultValue: H,
17
- type: p = "text",
18
- readOnly: h = !1,
17
+ type: b = "text",
18
+ readOnly: m = !1,
19
19
  placeHolder: _,
20
- required: y,
21
- leftElements: v,
20
+ required: g,
21
+ leftElements: y,
22
22
  rightElements: q,
23
23
  children: M,
24
24
  customClass: U,
25
25
  customClassForInputContent: V,
26
- customClassForLabel: C,
26
+ customClassForLabel: v,
27
27
  customClassForSideButtons: G,
28
- inputRef: l,
28
+ inputRef: i,
29
29
  inputBaseRef: J,
30
- label: r,
31
- labelUppercase: I,
32
- hint: a,
33
- hintPosition: j = "below",
34
- errorMessages: D,
30
+ label: l,
31
+ labelUppercase: C,
32
+ hint: r,
33
+ hintPosition: I = "below",
34
+ errorMessages: j,
35
35
  visible: Q = !0,
36
36
  permissionAttr: X,
37
37
  onDeniedActions: Y,
38
- handlerSetOnDenied: w,
39
- targetRef: O,
40
- skeletonize: x = !1,
38
+ handlerSetOnDenied: D,
39
+ targetRef: w,
40
+ skeletonize: p = !1,
41
41
  style: Z,
42
42
  styleForInputContent: ee,
43
43
  styleForWrapper: te,
44
44
  styleForLabel: Pe,
45
- styleForSideButtons: ne,
46
- disabled: F = !1,
47
- autoFocus: se,
45
+ styleForSideButtons: se,
46
+ disabled: O = !1,
47
+ autoFocus: ne,
48
48
  maxLength: oe,
49
49
  name: ie,
50
50
  id: le,
51
51
  multiple: re = !1,
52
52
  accept: ae,
53
- onChange: N,
54
- onDragOver: R,
55
- onDrop: P,
56
- onDragLeave: B,
57
- onClick: W,
53
+ onChange: F,
54
+ onDragOver: N,
55
+ onDrop: R,
56
+ onDragLeave: P,
57
+ onClick: B,
58
58
  readOnlyClass: ce,
59
59
  autoComplete: de = "on",
60
60
  themePopover: ue = "light",
61
61
  popoverAlign: fe = "left",
62
- tabIndex: E
63
- } = t;
64
- let c;
62
+ tabIndex: W
63
+ } = s;
64
+ let a;
65
65
  const me = [
66
- f.disabled,
67
- f.unvisible,
68
- f.readOnly,
69
- f.hideContent
70
- ], i = ge(null), d = Y || we(me, X), { hideContent: u, unvisible: he } = d, [xe, b] = pe(!1);
66
+ u.disabled,
67
+ u.unvisible,
68
+ u.readOnly,
69
+ u.hideContent
70
+ ], o = be(null), c = Y || we(me, X), { hideContent: d, unvisible: pe } = c, [he, h] = ge(!1);
71
71
  k(() => {
72
- w && w(d);
72
+ D && D(c);
73
73
  }, []);
74
- const L = () => h ? -1 : E || 0, g = () => F || d.disabled, T = () => h || d.readOnly, S = () => {
75
- const s = T() || g() || u;
76
- return c = {
77
- value: u ? "" : z,
74
+ const E = () => m ? -1 : W || 0, x = () => O || c.disabled, L = () => m || c.readOnly, T = () => {
75
+ const n = L() || x() || d;
76
+ return a = {
77
+ value: d ? "" : z,
78
78
  defaultValue: H,
79
79
  accept: ae,
80
- type: p,
81
- readOnly: T(),
80
+ type: b,
81
+ readOnly: L(),
82
82
  placeholder: _,
83
- disabled: g() || u,
84
- autoFocus: se,
83
+ disabled: x() || d,
84
+ autoFocus: ne,
85
85
  maxLength: oe,
86
86
  name: ie,
87
87
  id: le,
88
88
  multiple: re,
89
- className: je({ textAlign: m, readOnly: h, readOnlyClass: ce }),
89
+ className: je({ textAlign: f, readOnly: m, readOnlyClass: ce }),
90
90
  ref: (e) => {
91
- l && (ye.isFunction(l) ? l(e) : l.current = e), O && O(e);
91
+ i && (ye.isFunction(i) ? i(e) : i.current = e), w && w(e);
92
92
  }
93
- }, s || (c = {
94
- ...c,
93
+ }, n || (a = {
94
+ ...a,
95
95
  onFocus: (e) => {
96
- var o;
97
- (o = t.onInputReceiveFocus) == null || o.call(t), t.onFocus && t.onFocus(e);
96
+ s.onInputReceiveFocus?.(), s.onFocus && s.onFocus(e);
98
97
  },
99
98
  onBlur: (e) => {
100
- var o;
101
- (o = t.onInputLostFocus) == null || o.call(t), t.onBlur && t.onBlur(e);
99
+ s.onInputLostFocus?.(), s.onBlur && s.onBlur(e);
102
100
  },
103
101
  onKeyDown: (e) => {
104
- t.onKeyDown && t.onKeyDown(e);
102
+ s.onKeyDown && s.onKeyDown(e);
105
103
  },
106
104
  onKeyPress: (e) => {
107
- t.onKeyPress && t.onKeyPress(e);
105
+ s.onKeyPress && s.onKeyPress(e);
108
106
  },
109
107
  onChange: (e) => {
110
- N && N(e);
108
+ F && F(e);
111
109
  },
112
110
  onDragOver: (e) => {
113
- R && R(e);
111
+ N && N(e);
114
112
  },
115
113
  onDrop: (e) => {
116
- P && P(e);
114
+ R && R(e);
117
115
  },
118
116
  onDragLeave: (e) => {
119
- B && B(e);
117
+ P && P(e);
120
118
  },
121
119
  onClick: (e) => {
122
- W && W(e);
120
+ B && B(e);
123
121
  }
124
- }), c;
125
- }, be = (s) => {
126
- const e = s.target;
127
- e.offsetWidth < e.scrollWidth && b(!0);
122
+ }), a;
123
+ }, xe = (n) => {
124
+ const e = n.target;
125
+ e.offsetWidth < e.scrollWidth && h(!0);
128
126
  };
129
127
  if (k(() => {
130
- const s = new ResizeObserver(([e]) => {
131
- const { target: o } = e;
132
- b(($) => {
133
- const K = o.clientWidth < o.scrollWidth;
128
+ const n = new ResizeObserver(([e]) => {
129
+ const { target: S } = e;
130
+ h(($) => {
131
+ const K = S.clientWidth < S.scrollWidth;
134
132
  return $ === K ? $ : K;
135
133
  });
136
134
  });
137
- return i.current && s.observe(i.current), () => {
138
- s && s.disconnect();
135
+ return o.current && n.observe(o.current), () => {
136
+ n && n.disconnect();
139
137
  };
140
- }, []), i.current) {
141
- const s = i.current;
142
- s.offsetWidth < s.scrollWidth && !xe && b(!0);
138
+ }, []), o.current) {
139
+ const n = o.current;
140
+ n.offsetWidth < n.scrollWidth && !he && h(!0);
143
141
  }
144
- return !Q || he ? null : /* @__PURE__ */ n.jsxs(
142
+ return !Q || pe ? null : /* @__PURE__ */ t.jsxs(
145
143
  "div",
146
144
  {
147
145
  style: Z,
148
- className: `input-base-component ${x ? "-skeletonized" : ""} ${U}`,
146
+ className: `input-base-component ${p ? "-skeletonized" : ""} ${U}`,
149
147
  ref: J,
150
148
  children: [
151
- r && /* @__PURE__ */ n.jsxs(
149
+ l && /* @__PURE__ */ t.jsxs(
152
150
  "div",
153
151
  {
154
152
  className: "labelcontainer",
155
- style: { textAlign: m === "center" ? "left" : m },
153
+ style: { textAlign: f === "center" ? "left" : f },
156
154
  children: [
157
- /* @__PURE__ */ n.jsx(
155
+ /* @__PURE__ */ t.jsx(
158
156
  A,
159
157
  {
160
- labelRef: i,
161
- required: y,
162
- label: r,
163
- onHoverLabel: be,
164
- className: C,
165
- labelUppercase: I,
166
- tooltip: r.toString(),
158
+ labelRef: o,
159
+ required: g,
160
+ label: l,
161
+ onHoverLabel: xe,
162
+ className: v,
163
+ labelUppercase: C,
164
+ tooltip: l.toString(),
167
165
  tooltipPosition: "top"
168
166
  }
169
167
  ),
170
- /* @__PURE__ */ n.jsx(
168
+ /* @__PURE__ */ t.jsx(
171
169
  "div",
172
170
  {
173
171
  className: "text-content",
174
172
  style: { display: "flex" },
175
- children: /* @__PURE__ */ n.jsxs(
173
+ children: /* @__PURE__ */ t.jsxs(
176
174
  "div",
177
175
  {
178
- className: `label ${C} ${I && " -uppercase"}`,
176
+ className: `label ${v} ${C && " -uppercase"}`,
179
177
  style: { alignSelf: "center" },
180
178
  children: [
181
- r,
182
- y && /* @__PURE__ */ n.jsx("span", { className: "-requiredlabel", children: "*" }),
183
- !!a && j === "onLabelRight" && !x && /* @__PURE__ */ n.jsx(
179
+ l,
180
+ g && /* @__PURE__ */ t.jsx("span", { className: "-requiredlabel", children: "*" }),
181
+ !!r && I === "onLabelRight" && !p && /* @__PURE__ */ t.jsx(
184
182
  Ne,
185
183
  {
186
184
  theme: ue,
@@ -188,7 +186,7 @@ import '../../assets/InputTextBase.css';const Re = (t) => {
188
186
  customClass: "-hint",
189
187
  iconColor: "#03bde2",
190
188
  style: { margin: "0px 5px", height: "auto", width: 20 },
191
- children: a
189
+ children: r
192
190
  }
193
191
  )
194
192
  ]
@@ -196,70 +194,70 @@ import '../../assets/InputTextBase.css';const Re = (t) => {
196
194
  )
197
195
  }
198
196
  ),
199
- /* @__PURE__ */ n.jsx(A, {})
197
+ /* @__PURE__ */ t.jsx(A, {})
200
198
  ]
201
199
  }
202
200
  ),
203
- /* @__PURE__ */ n.jsxs(
201
+ /* @__PURE__ */ t.jsxs(
204
202
  "div",
205
203
  {
206
204
  "data-testid": "testInputWrapper",
207
205
  style: te,
208
206
  className: Ie({
209
- ...t,
210
- disabled: g() || u
207
+ ...s,
208
+ disabled: x() || d
211
209
  }),
212
210
  children: [
213
- v && /* @__PURE__ */ n.jsx(
211
+ y && /* @__PURE__ */ t.jsx(
214
212
  "div",
215
213
  {
216
- style: ne,
214
+ style: se,
217
215
  className: `sidebuttons ${G}`,
218
- children: v
216
+ children: y
219
217
  }
220
218
  ),
221
- /* @__PURE__ */ n.jsxs(
219
+ /* @__PURE__ */ t.jsxs(
222
220
  "div",
223
221
  {
224
222
  "data-testid": "testInputContent",
225
223
  style: ee,
226
224
  className: `inputcontent ${V}`,
227
225
  children: [
228
- p === "textarea" ? /* @__PURE__ */ n.jsx(
226
+ b === "textarea" ? /* @__PURE__ */ t.jsx(
229
227
  "textarea",
230
228
  {
231
- rows: t.rows,
232
- cols: t.cols,
233
- tabIndex: L(),
234
- ...S()
229
+ rows: s.rows,
230
+ cols: s.cols,
231
+ tabIndex: E(),
232
+ ...T()
235
233
  }
236
- ) : /* @__PURE__ */ n.jsx(
234
+ ) : /* @__PURE__ */ t.jsx(
237
235
  "input",
238
236
  {
239
237
  autoComplete: de,
240
- tabIndex: L(),
238
+ tabIndex: E(),
241
239
  "data-testid": "teste-123",
242
- ...S()
240
+ ...T()
243
241
  }
244
242
  ),
245
243
  M
246
244
  ]
247
245
  }
248
246
  ),
249
- Ce(D || [], x, q)
247
+ Ce(j || [], p, q)
250
248
  ]
251
249
  }
252
250
  ),
253
- /* @__PURE__ */ n.jsx(
251
+ /* @__PURE__ */ t.jsx(
254
252
  Oe,
255
253
  {
256
- disabled: F,
257
- visible: !!a && j === "below",
254
+ disabled: O,
255
+ visible: !!r && I === "below",
258
256
  customClass: "hint",
259
- description: a
257
+ description: r
260
258
  }
261
259
  ),
262
- /* @__PURE__ */ n.jsx(Fe, { messages: D })
260
+ /* @__PURE__ */ t.jsx(Fe, { messages: j })
263
261
  ]
264
262
  }
265
263
  );
@@ -1,4 +1,4 @@
1
- import { j as a } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as a } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import b from "../../internals/withTooltip.js";
3
3
  const u = (r) => {
4
4
  const {
@@ -2,9 +2,9 @@ import { JSX } from 'react';
2
2
  import { IBaseProps } from './types';
3
3
  import { TextAlign } from '../../../lib/@types/Align';
4
4
  export declare const getInputClass: ({ textAlign, readOnly, readOnlyClass, }: {
5
- textAlign?: TextAlign | undefined;
6
- readOnly?: boolean | undefined;
7
- readOnlyClass?: string | undefined;
5
+ textAlign?: TextAlign;
6
+ readOnly?: boolean;
7
+ readOnlyClass?: string;
8
8
  }) => string;
9
9
  export declare const getInputWrapperClass: (props: IBaseProps) => string;
10
10
  export declare const getRightElements: (errorMessages: string[], skeletonize: boolean, rightElements?: JSX.Element | JSX.Element[]) => JSX.Element[] | null;
@@ -1,5 +1,5 @@
1
1
  import a from "react";
2
- import { _ as l } from "../../chunks/lodash.C68pWaTB.js";
2
+ import { _ as l } from "../../chunks/lodash.CIAK_hAg.js";
3
3
  const p = ({
4
4
  textAlign: r,
5
5
  readOnly: t,
@@ -1,6 +1,6 @@
1
- import { j as e } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as e } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as k, useRef as x, useEffect as g } from "react";
3
- import { _ as h } from "../../chunks/lodash.C68pWaTB.js";
3
+ import { _ as h } from "../../chunks/lodash.CIAK_hAg.js";
4
4
  import j from "../text/index.js";
5
5
  import v from "../../buttons/Button.js";
6
6
  import "../../icons/index.js";
@@ -1,5 +1,5 @@
1
- import { j as a } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { B as o } from "../../chunks/index.CjD97zna.js";
1
+ import { j as a } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { B as o } from "../../chunks/index.CM1aLH2W.js";
3
3
  const h = ({ handlerClose: e, children: t, dialogSize: s }) => /* @__PURE__ */ a.jsx(
4
4
  o,
5
5
  {
@@ -1,17 +1,13 @@
1
- import { useRef as f, useEffect as d } from "react";
2
- import m from "react-dom";
3
- const s = 24, h = 250, R = (r) => {
4
- const { containerRef: c, showButtonOpen: u, dropdownRef: l, children: p, inputDimensions: e } = r, t = f(document.createElement("div")), n = e && e.width + (u ? s : 0) + 4 || h;
5
- return d(() => {
6
- var o;
7
- return t.current.className = "datepicker-component", t.current.style.width = String(n).concat("px"), t.current.style.top = String(e == null ? void 0 : e.bottom).concat("px"), (o = c.current) == null || o.appendChild(t.current), l(t.current), () => {
8
- var a;
9
- (a = c.current) == null || a.removeChild(t.current);
10
- };
11
- }, []), d(() => {
12
- t.current.style.width = String(n).concat("px"), t.current.style.top = String(e == null ? void 0 : e.bottom).concat("px");
13
- }, [r]), m.createPortal(p, t.current);
1
+ import { useRef as a, useEffect as o } from "react";
2
+ import d from "react-dom";
3
+ const p = 24, m = 250, h = (n) => {
4
+ const { containerRef: r, showButtonOpen: i, dropdownRef: u, children: s, inputDimensions: e } = n, t = a(document.createElement("div")), c = e && e.width + (i ? p : 0) + 4 || m;
5
+ return o(() => (t.current.className = "datepicker-component", t.current.style.width = String(c).concat("px"), t.current.style.top = String(e?.bottom).concat("px"), r.current?.appendChild(t.current), u(t.current), () => {
6
+ r.current?.removeChild(t.current);
7
+ }), []), o(() => {
8
+ t.current.style.width = String(c).concat("px"), t.current.style.top = String(e?.bottom).concat("px");
9
+ }, [n]), d.createPortal(s, t.current);
14
10
  };
15
11
  export {
16
- R as default
12
+ h as default
17
13
  };
@@ -1,4 +1,4 @@
1
- import { h as o } from "../../chunks/moment.CwOqp704.js";
1
+ import { h as o } from "../../chunks/moment.DMLRxgRE.js";
2
2
  const e = "DD/MM/YYYY", Y = "YYYY-MM-DD", s = (r) => {
3
3
  let t = r;
4
4
  return o(t, e, !0).isValid() && (t = o(t, e).format(e)), typeof t == "string" ? o(t, Y) : t;