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,220 +1,213 @@
1
- import { j as b } from "../../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useState as h, useRef as v, useEffect as x } from "react";
3
- import { _ as ne } from "../../../chunks/lodash.C68pWaTB.js";
4
- import Re from "../Dropdown.js";
5
- import ve from "../ActionButtons.js";
6
- import { keyCodes as D } from "../../../internals/constants.js";
7
- import { getFilteredSimpleDataCombo as te } from "../helper.js";
8
- import Ee from "../../base/InputTextBase.js";
9
- import { v as We } from "../../../chunks/v1.CDXKvGzE.js";
10
- const je = (r) => {
1
+ import { j as W } from "../../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useState as m, useRef as R, useEffect as F } from "react";
3
+ import { _ as Y } from "../../../chunks/lodash.CIAK_hAg.js";
4
+ import we from "../Dropdown.js";
5
+ import ye from "../ActionButtons.js";
6
+ import { keyCodes as x } from "../../../internals/constants.js";
7
+ import { getFilteredSimpleDataCombo as Z } from "../helper.js";
8
+ import Se from "../../base/InputTextBase.js";
9
+ import { v as Re } from "../../../chunks/v1.Ds1rkxUj.js";
10
+ const Le = (i) => {
11
11
  const {
12
- value: d,
13
- descriptionKey: o,
14
- dataSource: B = [],
15
- gridLayout: k,
16
- onSearch: N,
17
- disabled: oe,
18
- readOnly: ie,
19
- openDropdownOnFocus: se = !0,
20
- selectFirstOnEnter: re = !1,
21
- idKey: O,
22
- remoteSearch: I = !1,
23
- name: $ = "",
24
- undigitable: L,
25
- searchOnDropdown: A = !1,
26
- allOptions: f = void 0,
27
- showClearButton: le = !1,
28
- searchNotFoundText: ce,
29
- rightElements: ue = [],
30
- customClassForWrapper: ae,
31
- customClassForInputContent: de,
32
- customClassForLabel: fe,
33
- customClassForSideButtons: me
34
- } = r, l = typeof o == "string", i = f ? [{
35
- [O]: f.idValue,
36
- [l ? o : o(f.label)]: f.label
37
- }, ...B] : B, [s, E] = h(i), [u, g] = h(null), [y, a] = h(""), [w, m] = h(!1), [pe, T] = h(0), [he, ge] = h(!1), [R, Ce] = h(), [P, _] = h(!1), W = v(null), z = `select-component-${$}-${We()}`, V = v(null), c = v(null), F = v(null), C = v(null), q = () => {
38
- c.current && T(c.current.clientWidth);
39
- }, M = (e) => {
40
- var t, p;
12
+ value: C,
13
+ descriptionKey: t,
14
+ dataSource: D = [],
15
+ gridLayout: B,
16
+ onSearch: K,
17
+ disabled: ee,
18
+ readOnly: ne,
19
+ openDropdownOnFocus: te = !0,
20
+ selectFirstOnEnter: oe = !1,
21
+ idKey: g,
22
+ remoteSearch: k = !1,
23
+ name: N = "",
24
+ undigitable: I,
25
+ searchOnDropdown: $ = !1,
26
+ allOptions: a = void 0,
27
+ showClearButton: ie = !1,
28
+ searchNotFoundText: se,
29
+ rightElements: re = [],
30
+ customClassForWrapper: le,
31
+ customClassForInputContent: ce,
32
+ customClassForLabel: ue,
33
+ customClassForSideButtons: ae
34
+ } = i, r = typeof t == "string", o = a ? [{
35
+ [g]: a.idValue,
36
+ [r ? t : t(a.label)]: a.label
37
+ }, ...D] : D, [s, v] = m(o), [c, p] = m(null), [O, u] = m(""), [y, d] = m(!1), [de, L] = m(0), [fe, me] = m(!1), [S, pe] = m(), [A, P] = m(!1), E = R(null), _ = `select-component-${N}-${Re()}`, z = R(null), l = R(null), b = R(null), h = R(null), V = () => {
38
+ l.current && L(l.current.clientWidth);
39
+ }, q = (e) => {
41
40
  const { target: n } = e;
42
- n !== c.current && !((t = c.current) != null && t.contains(n)) && !((p = W.current) != null && p.contains(n)) && m(!1);
43
- }, J = (e) => {
44
- var Z, ee;
45
- const n = e.target, t = ((ee = (Z = W.current) == null ? void 0 : Z.parentElement) == null ? void 0 : ee.id) || "", p = document.getElementById(t), we = !!(p != null && p.contains(n));
46
- ge(we);
47
- }, U = (e) => ({
41
+ n !== l.current && !l.current?.contains(n) && !E.current?.contains(n) && d(!1);
42
+ }, M = (e) => {
43
+ const n = e.target, f = E.current?.parentElement?.id || "", Oe = !!document.getElementById(f)?.contains(n);
44
+ me(Oe);
45
+ }, J = (e) => ({
48
46
  target: {
49
- value: e ? e[O] : void 0,
50
- name: $
47
+ value: e ? e[g] : void 0,
48
+ name: N
51
49
  }
52
- }), S = (e) => {
53
- if (r.onChange) {
54
- const n = U(e);
55
- r.onChange(n);
50
+ }), w = (e) => {
51
+ if (i.onChange) {
52
+ const n = J(e);
53
+ i.onChange(n);
56
54
  }
57
- }, G = (e) => {
55
+ }, U = (e) => {
58
56
  let n = null;
59
- if (I)
60
- N && N(e);
57
+ if (k)
58
+ K && K(e);
61
59
  else {
62
- const t = te({
60
+ const f = Z({
63
61
  inputText: e,
64
- descriptionKey: o,
65
- dataSource: i
62
+ descriptionKey: t,
63
+ dataSource: o
66
64
  });
67
- t && t.length > 0 && (n = t[0], g(n)), E(t);
65
+ f && f.length > 0 && (n = f[0], p(n)), v(f);
68
66
  }
69
- m(!0), a(e), n && (l && e === n[o] || !l && e === o(n)) && S(n);
70
- }, H = (e) => {
71
- var n;
72
- e && (g(e), a(l ? e[o] : o(e)), new Promise((t) => {
73
- t(S(e));
67
+ d(!0), u(e), n && (r && e === n[t] || !r && e === t(n)) && w(n);
68
+ }, G = (e) => {
69
+ e && (p(e), u(r ? e[t] : t(e)), new Promise((n) => {
70
+ n(w(e));
74
71
  }).finally(() => {
75
- C && C.current && C.current.focus(), m(!1);
76
- }), (n = W.current) == null || n.focus());
77
- }, Oe = () => {
78
- m((e) => !e), c.current && T(c.current.clientWidth);
79
- }, j = () => {
80
- if (se && m(!0), c) {
81
- const e = c.current ? c.current.clientWidth : 0;
82
- T(e);
72
+ h && h.current && h.current.focus(), d(!1);
73
+ }), E.current?.focus());
74
+ }, he = () => {
75
+ d((e) => !e), l.current && L(l.current.clientWidth);
76
+ }, T = () => {
77
+ if (te && d(!0), l) {
78
+ const e = l.current ? l.current.clientWidth : 0;
79
+ L(e);
83
80
  }
84
- }, Q = () => {
85
- if (r.onBlur) {
86
- const e = U(u);
87
- r.onBlur(e), (u && l && y !== u[o] || !l && y !== o(u)) && (g(null), a(y), new Promise((n) => {
88
- n(S(null));
81
+ }, H = () => {
82
+ if (i.onBlur) {
83
+ const e = J(c);
84
+ i.onBlur(e), (c && r && O !== c[t] || !r && O !== t(c)) && (p(null), u(O), new Promise((n) => {
85
+ n(w(null));
89
86
  }).finally(() => {
90
- S();
87
+ w();
91
88
  }));
92
89
  }
93
- he || (m(!1), _(!1), E(i));
94
- }, X = (e) => {
95
- var n;
90
+ fe || (d(!1), P(!1), v(o));
91
+ }, Q = (e) => {
96
92
  if (e.keyCode) {
97
- if (e.keyCode === D.ENTER && u && w)
98
- (n = e.preventDefault) == null || n.call(e), H(u);
99
- else if ([D.ARROW_UP, D.ARROW_DOWN].includes(e.keyCode)) {
100
- w || m(!0);
101
- let t = s.length > 0 ? s.findIndex((p) => u && p[O] === u[O]) : 0;
102
- e.keyCode === D.ARROW_DOWN ? t = s && t === s.length - 1 ? 0 : t + 1 : t = s && t === 0 ? (s == null ? void 0 : s.length) - 1 : t - 1, g(s[t]), l && a(s[t][o]), l || a(o(s[t]));
93
+ if (e.keyCode === x.ENTER && c && y)
94
+ e.preventDefault?.(), G(c);
95
+ else if ([x.ARROW_UP, x.ARROW_DOWN].includes(e.keyCode)) {
96
+ y || d(!0);
97
+ let n = s.length > 0 ? s.findIndex((f) => c && f[g] === c[g]) : 0;
98
+ e.keyCode === x.ARROW_DOWN ? n = s && n === s.length - 1 ? 0 : n + 1 : n = s && n === 0 ? s?.length - 1 : n - 1, p(s[n]), r && u(s[n][t]), r || u(t(s[n]));
103
99
  }
104
100
  }
105
- P || _(!0);
106
- }, ye = () => {
101
+ A || P(!0);
102
+ }, Ce = () => {
107
103
  new Promise((e) => {
108
- e(S(null));
104
+ e(w(null));
109
105
  }).finally(() => {
110
- g(null), a(""), S(), C && C.current && C.current.focus(), m(!1);
106
+ p(null), u(""), w(), h && h.current && h.current.focus(), d(!1);
111
107
  });
112
- }, Se = (e) => {
113
- Ce(e);
114
- }, Y = () => oe || R && (R.disabled || R.hideContent), K = () => ie || R && R.readOnly;
115
- return x(() => (window.addEventListener("resize", q), document.addEventListener("click", M), document.addEventListener("mousemove", J), () => {
116
- window.removeEventListener("resize", q), document.removeEventListener("click", M), document.removeEventListener("mousemove", J);
117
- }), []), x(() => {
118
- if (k) {
119
- const e = document.querySelector(`#${z}>.-withinput.grid-container`);
120
- F.current !== e && e && (F.current = e);
108
+ }, ge = (e) => {
109
+ pe(e);
110
+ }, X = () => ee || S && (S.disabled || S.hideContent), j = () => ne || S && S.readOnly;
111
+ return F(() => (window.addEventListener("resize", V), document.addEventListener("click", q), document.addEventListener("mousemove", M), () => {
112
+ window.removeEventListener("resize", V), document.removeEventListener("click", q), document.removeEventListener("mousemove", M);
113
+ }), []), F(() => {
114
+ if (B) {
115
+ const e = document.querySelector(`#${_}>.-withinput.grid-container`);
116
+ b.current !== e && e && (b.current = e);
121
117
  }
122
- }, [k]), x(() => {
123
- if (i.length > 0) {
118
+ }, [B]), F(() => {
119
+ if (o.length > 0) {
124
120
  let e = null;
125
- d || d === 0 ? e = i.find((n) => {
126
- var t;
127
- return (d || d === 0) && ((t = n[O]) == null ? void 0 : t.toString().toLowerCase()) === (d == null ? void 0 : d.toString().toLowerCase());
128
- }) : i.length > 0 && re && (e = i[0]), g(e), a(l ? e ? e[o] : "" : e ? o(e) : "");
121
+ C || C === 0 ? e = o.find((n) => (C || C === 0) && n[g]?.toString().toLowerCase() === C?.toString().toLowerCase()) : o.length > 0 && oe && (e = o[0]), p(e), u(r ? e ? e[t] : "" : e ? t(e) : "");
129
122
  }
130
- }, [i.length, d]), x(() => {
131
- if (!ne.isEqual(s, i)) {
132
- const e = L || I || !P ? i : te({
133
- inputText: y,
134
- dataSource: i,
135
- descriptionKey: o
123
+ }, [o.length, C]), F(() => {
124
+ if (!Y.isEqual(s, o)) {
125
+ const e = I || k || !A ? o : Z({
126
+ inputText: O,
127
+ dataSource: o,
128
+ descriptionKey: t
136
129
  });
137
- if (E(e), i.length > 0 && I) {
138
- const n = i[0];
139
- g(n);
130
+ if (v(e), o.length > 0 && k) {
131
+ const n = o[0];
132
+ p(n);
140
133
  }
141
134
  }
142
- f && E([
135
+ a && v([
143
136
  {
144
- [O]: f.idValue,
145
- [l ? o : o(f.label)]: f.label
137
+ [g]: a.idValue,
138
+ [r ? t : t(a.label)]: a.label
146
139
  },
147
- ...B
140
+ ...D
148
141
  ]);
149
- }, [JSON.stringify(i)]), /* @__PURE__ */ b.jsxs(
142
+ }, [JSON.stringify(o)]), /* @__PURE__ */ W.jsxs(
150
143
  "span",
151
144
  {
152
- id: z,
153
- ref: V,
145
+ id: _,
146
+ ref: z,
154
147
  className: "select-component",
155
148
  children: [
156
- /* @__PURE__ */ b.jsx(
157
- Ee,
149
+ /* @__PURE__ */ W.jsx(
150
+ Se,
158
151
  {
159
- ...r,
152
+ ...i,
160
153
  inputRef: (e) => {
161
- r.inputRef && (ne.isFunction(r.inputRef) ? r.inputRef(e) : r.inputRef.current = e), C.current = e;
154
+ i.inputRef && (Y.isFunction(i.inputRef) ? i.inputRef(e) : i.inputRef.current = e), h.current = e;
162
155
  },
163
156
  autoComplete: "off",
164
- readOnly: L || K(),
165
- value: y,
166
- onFocus: j,
167
- onBlur: Q,
157
+ readOnly: I || j(),
158
+ value: O,
159
+ onFocus: T,
160
+ onBlur: H,
168
161
  onChange: (e) => {
169
- e && G(e.target.value);
162
+ e && U(e.target.value);
170
163
  },
171
- onClick: j,
172
- onKeyDown: X,
173
- customClassForLabel: fe,
174
- customClassForWrapper: `selectwrapper ${(L || A || K()) && " -undigitable"} ${ae}`,
175
- customClassForInputContent: `multiselect ${de}`,
164
+ onClick: T,
165
+ onKeyDown: Q,
166
+ customClassForLabel: ue,
167
+ customClassForWrapper: `selectwrapper ${(I || $ || j()) && " -undigitable"} ${le}`,
168
+ customClassForInputContent: `multiselect ${ce}`,
176
169
  inputBaseRef: (e) => {
177
- c.current = e;
170
+ l.current = e;
178
171
  },
179
- handlerSetOnDenied: (e) => Se(e),
172
+ handlerSetOnDenied: (e) => ge(e),
180
173
  rightElements: [
181
- ...ue,
182
- /* @__PURE__ */ b.jsx(
183
- ve,
174
+ ...re,
175
+ /* @__PURE__ */ W.jsx(
176
+ ye,
184
177
  {
185
- disabled: Y() || K(),
186
- showClearButton: le,
187
- dropDownOpened: w,
188
- handlerClear: () => Y() ? null : ye(),
189
- handlerOpenClose: Oe,
190
- customClassForSideButtons: me
178
+ disabled: X() || j(),
179
+ showClearButton: ie,
180
+ dropDownOpened: y,
181
+ handlerClear: () => X() ? null : Ce(),
182
+ handlerOpenClose: he,
183
+ customClassForSideButtons: ae
191
184
  },
192
185
  "action-buttons-simpleselect"
193
186
  )
194
187
  ]
195
188
  }
196
189
  ),
197
- w && /* @__PURE__ */ b.jsx(
198
- Re,
190
+ y && /* @__PURE__ */ W.jsx(
191
+ we,
199
192
  {
200
- ...r,
201
- opened: w,
202
- selected: u,
203
- inputValue: y,
204
- selectFieldRef: V,
205
- dropdownRef: W,
206
- searchOnDropdown: A,
207
- gridWrapperStyle: k && F.current ? window.getComputedStyle(F.current) : void 0,
193
+ ...i,
194
+ opened: y,
195
+ selected: c,
196
+ inputValue: O,
197
+ selectFieldRef: z,
198
+ dropdownRef: E,
199
+ searchOnDropdown: $,
200
+ gridWrapperStyle: B && b.current ? window.getComputedStyle(b.current) : void 0,
208
201
  handleOnSelect: (e) => {
209
- e && H(e);
202
+ e && G(e);
210
203
  },
211
- handleOnFilter: (e) => G(e),
212
- handleOnKeydown: X,
213
- handleOnBlur: () => Q,
214
- handleOnFocus: j,
204
+ handleOnFilter: (e) => U(e),
205
+ handleOnKeydown: Q,
206
+ handleOnBlur: () => H,
207
+ handleOnFocus: T,
215
208
  dataCombo: s,
216
- dropdownWidth: pe || 0,
217
- searchNotFoundText: ce
209
+ dropdownWidth: de || 0,
210
+ searchNotFoundText: se
218
211
  }
219
212
  )
220
213
  ]
@@ -222,5 +215,5 @@ const je = (r) => {
222
215
  );
223
216
  };
224
217
  export {
225
- je as default
218
+ Le as default
226
219
  };
@@ -1,4 +1,4 @@
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 o from "../base/InputTextBase.js";
3
3
  const x = (t) => /* @__PURE__ */ e.jsx(o, { ...t });
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { j as r } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as r } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import x from "../base/InputTextBase.js";
3
3
  const c = (t) => {
4
4
  const { rows: s, cols: e, customClass: a, type: o = "textarea" } = t;
@@ -1,4 +1,4 @@
1
- import { j as d } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as d } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import H, { useState as f, useRef as O, useEffect as v } from "react";
3
3
  import A from "../tooltip/index.js";
4
4
  const V = 40, E = ({ tooltip: n }) => n, P = H.createContext({}), _ = ({ displayName: n, name: h }) => n || h || "Component", q = (n) => {
@@ -1,4 +1,4 @@
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 j, Fragment as p } from "react";
3
3
  import $ from "../icons/index.js";
4
4
  import '../assets/index14.css';const C = ({
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import e from "./DefaultLabel.js";
3
3
  const t = ({ className: r, ...a }) => /* @__PURE__ */ s.jsx(e, { className: "-danger", ...a });
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useState as O } from "react";
3
3
  import v from "../icons/index.js";
4
4
  import E from "../internals/withTooltip.js";
@@ -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 o from "./DefaultLabel.js";
3
3
  const r = ({ className: e, ...s }) => /* @__PURE__ */ a.jsx(o, { className: "-info", ...s });
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { j as r } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import s from "./DefaultLabel.js";
3
3
  const t = ({ className: m, ...a }) => /* @__PURE__ */ r.jsx(s, { className: "-primary", ...a });
4
4
  export {
@@ -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 e from "./DefaultLabel.js";
3
3
  const t = ({ className: c, ...s }) => /* @__PURE__ */ a.jsx(e, { className: "-success", ...s });
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import r from "./DefaultLabel.js";
3
3
  const t = ({ className: e, ...a }) => /* @__PURE__ */ s.jsx(r, { className: "-warning", ...a });
4
4
  export {
@@ -1,4 +1,4 @@
1
- import { j as s } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  const o = ({ customClass: t, position: a = "left", children: e }) => /* @__PURE__ */ s.jsx(
3
3
  "div",
4
4
  {
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  const i = ({ title: e, children: a, style: t, customClass: l }) => /* @__PURE__ */ s.jsxs("li", { className: `list-header ${l}`, style: t, children: [
3
3
  /* @__PURE__ */ s.jsx("h1", { className: "title", children: e }),
4
4
  a
package/lib/list/Item.js CHANGED
@@ -1,8 +1,8 @@
1
- import "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import "react";
3
3
  import "react-router-dom";
4
4
  import "../icons/index.js";
5
- import { L as s } from "../chunks/tabs.CM2We4tV.js";
5
+ import { L as s } from "../chunks/tabs.D0L_nVfP.js";
6
6
  import "./helpers.js";
7
7
  import "../dropdown/withDropdown.js";
8
8
  import "../internals/constants.js";
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  const t = () => /* @__PURE__ */ s.jsx("li", { className: "list-separator" });
3
3
  export {
4
4
  t as default
package/lib/list/index.js CHANGED
@@ -1,7 +1,7 @@
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 { useRef as R, useState as h, useEffect as f, Fragment as S } from "react";
3
3
  import { default as q } from "./Header.js";
4
- import { L as P } from "../chunks/tabs.CM2We4tV.js";
4
+ import { L as P } from "../chunks/tabs.D0L_nVfP.js";
5
5
  import { keyCodes as m } from "../internals/constants.js";
6
6
  import { default as J } from "./Separator.js";
7
7
  import { LIST_ITEMS_TYPES as O, ListContext as b } from "./helpers.js";
@@ -1,30 +1,30 @@
1
- import { j as e } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as o } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { useContext as t } from "react";
3
- import { _ as p } from "../../chunks/lodash.C68pWaTB.js";
3
+ import { _ as p } from "../../chunks/lodash.CIAK_hAg.js";
4
4
  import u from "../../icons/index.js";
5
5
  import { WithDropdownContext as f } from "../../dropdown/withDropdown.js";
6
- import h from "../../buttons/Button.js";
6
+ import x from "../../buttons/Button.js";
7
7
  import '../../assets/button.css';/* empty css */
8
- import x from "./helpers.js";
8
+ import h from "./helpers.js";
9
9
  const b = ({
10
10
  title: n,
11
11
  url: m,
12
12
  iconName: a,
13
13
  iconColor: i = "gray",
14
14
  iconSize: l = 24,
15
- dropdownMenu: r,
16
- onClick: s
15
+ dropdownMenu: s,
16
+ onClick: e
17
17
  }) => {
18
- const { customClassMenuItem: c } = t(x), o = t(f), d = () => {
19
- if (s) {
20
- s(o == null ? void 0 : o.handleDropdownClose);
18
+ const { customClassMenuItem: c } = t(h), r = t(f), d = () => {
19
+ if (e) {
20
+ e(r?.handleDropdownClose);
21
21
  return;
22
22
  }
23
- o && o.handleDropdownClose();
23
+ r && r.handleDropdownClose();
24
24
  };
25
- return /* @__PURE__ */ e.jsx("div", { className: "floatmenuitem", children: /* @__PURE__ */ e.jsxs("div", { className: `${c} -items`, children: [
26
- !p.isEmpty(r) && !s && /* @__PURE__ */ e.jsx(
27
- h,
25
+ return /* @__PURE__ */ o.jsx("div", { className: "floatmenuitem", children: /* @__PURE__ */ o.jsxs("div", { className: `${c} -items`, children: [
26
+ !p.isEmpty(s) && !e && /* @__PURE__ */ o.jsx(
27
+ x,
28
28
  {
29
29
  customClass: "floatmenudropdown",
30
30
  iconName: "more1",
@@ -33,21 +33,21 @@ const b = ({
33
33
  boxShadow: !1,
34
34
  dropdown: !0,
35
35
  showIconDropdown: !1,
36
- children: r
36
+ children: s
37
37
  }
38
38
  ),
39
- /* @__PURE__ */ e.jsxs(
39
+ /* @__PURE__ */ o.jsxs(
40
40
  "a",
41
41
  {
42
42
  className: "floatmenulink",
43
43
  target: "_blank",
44
44
  onClick: d,
45
45
  href: m,
46
- style: { cursor: s ? "pointer" : void 0 },
46
+ style: { cursor: e ? "pointer" : void 0 },
47
47
  rel: "noreferrer",
48
48
  children: [
49
- /* @__PURE__ */ e.jsx("span", { className: "iconcontainer", children: /* @__PURE__ */ e.jsx(u, { name: a, size: l, color: i, customClass: "iconmenu" }) }),
50
- /* @__PURE__ */ e.jsx("span", { className: "nameitem", children: n })
49
+ /* @__PURE__ */ o.jsx("span", { className: "iconcontainer", children: /* @__PURE__ */ o.jsx(u, { name: a, size: l, color: i, customClass: "iconmenu" }) }),
50
+ /* @__PURE__ */ o.jsx("span", { className: "nameitem", children: n })
51
51
  ]
52
52
  }
53
53
  )
@@ -9,21 +9,21 @@ declare function SubMenuContainer({ title, customClass, handlerGoBack, skeletoni
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
10
  declare namespace SubMenuContainer {
11
11
  namespace propTypes {
12
- const children: any;
13
- const handlerGoBack: any;
14
- const title: any;
15
- const customClass: any;
16
- const skeletonize: any;
17
- const skeletonQtty: any;
12
+ let children: any;
13
+ let handlerGoBack: any;
14
+ let title: any;
15
+ let customClass: any;
16
+ let skeletonize: any;
17
+ let skeletonQtty: any;
18
18
  }
19
19
  namespace defaultProps {
20
- const title_1: undefined;
20
+ let title_1: undefined;
21
21
  export { title_1 as title };
22
- const customClass_1: undefined;
22
+ let customClass_1: undefined;
23
23
  export { customClass_1 as customClass };
24
- const skeletonize_1: boolean;
24
+ let skeletonize_1: boolean;
25
25
  export { skeletonize_1 as skeletonize };
26
- const skeletonQtty_1: number;
26
+ let skeletonQtty_1: number;
27
27
  export { skeletonQtty_1 as skeletonQtty };
28
28
  }
29
29
  }
@@ -1,7 +1,7 @@
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 { default as E } from "./MenuItem.js";
3
3
  import { useEffect as f } from "react";
4
- import { P as i } from "../../chunks/index.CBPsbBt0.js";
4
+ import { P as i } from "../../chunks/index.Df3kt2LQ.js";
5
5
  import m from "../../icons/index.js";
6
6
  import x from "../../skeleton/index.js";
7
7
  import h from "../../skeleton/SkeletonContainer.js";
@@ -1,4 +1,4 @@
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 t from "../../icons/index.js";
3
3
  const m = ({ onExpandMenu: o, expandMenuCustomClass: n, iconName: s }) => /* @__PURE__ */ e.jsx(
4
4
  "div",
@@ -1,4 +1,4 @@
1
- import { j as m } from "../../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import { j as m } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import { Link as s } from "react-router-dom";
3
3
  import e from "../../internals/withTooltip.js";
4
4
  const f = ({ url: o, children: t, targetRef: i, disabled: n }) => o && !n ? /* @__PURE__ */ m.jsx(