linear-react-components-ui 1.1.26-beta.4 → 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 +10 -10
  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.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
  44. package/lib/chunks/{jsx-runtime.gtoSnx-V.js → jsx-runtime.C7wFtzyj.js} +2 -2
  45. package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
  46. package/lib/chunks/moment.DMLRxgRE.js +2589 -0
  47. package/lib/chunks/{tabs.BP3DB7Gx.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 +7 -7
  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 +44 -44
  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 +3 -3
  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.iA-fVKOP.js +0 -89
  210. package/lib/chunks/v1.CDXKvGzE.js +0 -41
  211. /package/lib/assets/{index29.css → progressbar.css} +0 -0
@@ -1,62 +1,62 @@
1
- import { j as t } from "../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useState as g, useRef as X, useContext as Y, useEffect as Z, Fragment as w } from "react";
3
- import ee from "lodash";
1
+ import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useState as B, useRef as V, useContext as X, useEffect as Y, Fragment as Z } from "react";
3
+ import { _ as w } from "../chunks/lodash.CIAK_hAg.js";
4
4
  import c from "../icons/index.js";
5
- import te, { TooltipContext as ne } from "../internals/withTooltip.js";
6
- import se from "../spinner/index.js";
7
- import ie from "../dropdown/withDropdown.js";
8
- import { actionsOnPermissionDenied as oe, OPTIONS_ON_DENIED as O } from "../permissionValidations.js";
9
- const re = ({
5
+ import ee, { TooltipContext as te } from "../internals/withTooltip.js";
6
+ import ne from "../spinner/index.js";
7
+ import se from "../dropdown/withDropdown.js";
8
+ import { actionsOnPermissionDenied as ie, OPTIONS_ON_DENIED as P } from "../permissionValidations.js";
9
+ const oe = ({
10
10
  dropdown: n,
11
- onClick: i,
12
- disabled: b,
11
+ onClick: s,
12
+ disabled: D,
13
13
  iconName: f,
14
14
  icon: r,
15
- targetRef: j,
16
- tabIndex: S,
17
- isLoading: T,
18
- label: _,
15
+ targetRef: b,
16
+ tabIndex: g,
17
+ isLoading: O,
18
+ label: S,
19
19
  showDropdown: l,
20
- getDropdownPopup: v,
21
- isDropdownOpened: B,
22
- showIconDropdown: C = !0,
23
- content: F,
24
- style: N,
20
+ getDropdownPopup: j,
21
+ isDropdownOpened: T,
22
+ showIconDropdown: _ = !0,
23
+ content: C,
24
+ style: F,
25
25
  toggleable: m,
26
- activeIconColor: y,
27
- iconStyle: k,
28
- visible: z = !0,
29
- customClass: A,
30
- className: M,
31
- size: E = "default",
32
- iconAlign: h = "left",
33
- boxShadow: K = !0,
34
- transparent: R,
26
+ activeIconColor: v,
27
+ iconStyle: N,
28
+ visible: k = !0,
29
+ customClass: z,
30
+ className: A,
31
+ size: y = "default",
32
+ iconAlign: E = "left",
33
+ boxShadow: M = !0,
34
+ transparent: K,
35
35
  round: p,
36
- permissionAttr: W,
37
- skeletonize: q,
38
- errorMessage: le,
39
- isFloatMenu: ue,
40
- dropdownAlign: ae,
41
- customClassForDropdown: ce,
36
+ permissionAttr: R,
37
+ skeletonize: W,
38
+ errorMessage: re,
39
+ isFloatMenu: le,
40
+ dropdownAlign: ue,
41
+ customClassForDropdown: ae,
42
42
  buttonRef: d,
43
- handlerClose: fe,
44
- onDeniedText: G = "Permissão Negada! Consulte o Administrador do sistema.",
45
- tooltip: me,
46
- tooltipWidth: pe,
47
- tooltipPosition: de,
48
- ...H
43
+ handlerClose: ce,
44
+ onDeniedText: q = "Permissão Negada! Consulte o Administrador do sistema.",
45
+ tooltip: fe,
46
+ tooltipWidth: me,
47
+ tooltipPosition: pe,
48
+ ...G
49
49
  }) => {
50
- const J = [O.disabled, O.unvisible], [u, I] = g(!1), [$] = g(oe(J, W)), s = X(null), x = "rgb(193, 193, 193)", a = $.disabled, o = !!$.disabled || b, { handlerSetOnDeniedText: L } = Y(ne), Q = () => `button-component ${M}
51
- ${A}
52
- ${R && "-transparent"}
50
+ const H = [P.disabled, P.unvisible], [u, h] = B(!1), [$] = B(ie(H, R)), i = V(null), x = "rgb(193, 193, 193)", a = $.disabled, o = !!$.disabled || D, { handlerSetOnDeniedText: J } = X(te), L = () => `button-component ${A}
51
+ ${z}
52
+ ${K && "-transparent"}
53
53
  ${o && "-disabled"}
54
- ${E && `-${E}`}
54
+ ${y && `-${y}`}
55
55
  ${n && !p && "icon-right"}
56
56
  ${n && p && "icon-center"}
57
- ${h && !n && `icon-${h}`}
58
- ${K ? "" : "-shadowsdisabled"}
59
- ${p && "-round"}`, P = (e) => /* @__PURE__ */ t.jsx(
57
+ ${E && !n && `icon-${E}`}
58
+ ${M ? "" : "-shadowsdisabled"}
59
+ ${p && "-round"}`, I = (e) => /* @__PURE__ */ t.jsx(
60
60
  c,
61
61
  {
62
62
  name: "padlock",
@@ -65,14 +65,14 @@ const re = ({
65
65
  color: x,
66
66
  style: e
67
67
  }
68
- ), U = () => {
69
- let e = k;
70
- if (o && (e = { ...e, fill: x }), n && C) {
71
- const V = f || (B ? "mini_up" : "mini_down");
68
+ ), Q = () => {
69
+ let e = N;
70
+ if (o && (e = { ...e, fill: x }), n && _) {
71
+ const U = f || (T ? "mini_up" : "mini_down");
72
72
  return /* @__PURE__ */ t.jsx(
73
73
  c,
74
74
  {
75
- name: V,
75
+ name: U,
76
76
  size: 16,
77
77
  customClass: "dropdown-icon",
78
78
  pointerEvents: "none",
@@ -80,51 +80,50 @@ const re = ({
80
80
  }
81
81
  );
82
82
  }
83
- return r ? a ? P(e) : b ? /* @__PURE__ */ t.jsx(c, { ...r.props, color: x }) : r : !r && a ? P(e) : f ? /* @__PURE__ */ t.jsx(
83
+ return r ? a ? I(e) : D ? /* @__PURE__ */ t.jsx(c, { ...r.props, color: x }) : r : !r && a ? I(e) : f ? /* @__PURE__ */ t.jsx(
84
84
  c,
85
85
  {
86
86
  name: f,
87
87
  size: 16,
88
- color: m && y && u && y || "#676464",
88
+ color: m && v && u && v || "#676464",
89
89
  pointerEvents: "none",
90
90
  style: e
91
91
  }
92
92
  ) : null;
93
93
  };
94
- return Z(() => {
95
- a && L(G);
96
- }, [a]), !z || $.unvisible ? null : /* @__PURE__ */ t.jsxs(w, { children: [
94
+ return Y(() => {
95
+ a && J(q);
96
+ }, [a]), !k || $.unvisible ? null : /* @__PURE__ */ t.jsxs(Z, { children: [
97
97
  /* @__PURE__ */ t.jsxs(
98
98
  "button",
99
99
  {
100
- ...H,
101
- style: N,
100
+ ...G,
101
+ style: F,
102
102
  onKeyDown: (e) => {
103
- var D;
104
103
  if (e && (e.key === "Enter" || e.key === " ")) {
105
104
  if (e.preventDefault(), e.stopPropagation(), o) return;
106
- i && ((D = s == null ? void 0 : s.current) == null || D.click()), n && l && l(), i && m && I(!u);
105
+ s && i?.current?.click(), n && l && l(), s && m && h(!u);
107
106
  }
108
107
  },
109
108
  onClick: (e) => {
110
- e.preventDefault(), !o && (i && i(e), n && l && l(), i && m && I(!u));
109
+ e.preventDefault(), !o && (s && s(e), n && l && l(), s && m && h(!u));
111
110
  },
112
- className: `${Q()} ${u ? "-toggleable" : ""} ${q ? "-skeletonized" : ""}`,
111
+ className: `${L()} ${u ? "-toggleable" : ""} ${W ? "-skeletonized" : ""}`,
113
112
  ref: (e) => {
114
- d && (ee.isFunction(d) ? d(e) : s.current = e), j && j(e), s.current = e;
113
+ d && (w.isFunction(d) ? d(e) : i.current = e), b && b(e), i.current = e;
115
114
  },
116
- tabIndex: o ? -1 : S,
115
+ tabIndex: o ? -1 : g,
117
116
  children: [
118
- F,
119
- U(),
120
- _ || "",
121
- T && /* @__PURE__ */ t.jsx("div", { className: "spinnercontainer", children: /* @__PURE__ */ t.jsx(se, { align: "none", delayTime: 0 }) })
117
+ C,
118
+ Q(),
119
+ S || "",
120
+ O && /* @__PURE__ */ t.jsx("div", { className: "spinnercontainer", children: /* @__PURE__ */ t.jsx(ne, { align: "none", delayTime: 0 }) })
122
121
  ]
123
122
  }
124
123
  ),
125
- n && s.current && v && v(s.current)
124
+ n && i.current && j && j(i.current)
126
125
  ] });
127
- }, he = ie(te(re));
126
+ }, he = se(ee(oe));
128
127
  export {
129
128
  he as default
130
129
  };
@@ -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 r from "./DangerButton.js";
3
3
  import n from "../icons/index.js";
4
4
  const a = ({ icon: i, ...t }) => /* @__PURE__ */ o.jsx(r, { ...t, icon: /* @__PURE__ */ o.jsx(n, { name: "bin", color: "white" }) });
@@ -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 i from "./Button.js";
3
3
  const r = (t) => /* @__PURE__ */ o.jsx(i, { ...t, iconName: "pencil" });
4
4
  export {
@@ -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 i from "./Button.js";
3
3
  const r = (t) => /* @__PURE__ */ o.jsx(i, { ...t, iconName: "minusCircle" });
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 m from "./Button.js";
3
3
  const f = ({ customClass: o, ...t }) => /* @__PURE__ */ s.jsx(m, { customClass: `-info ${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 s from "./Button.js";
3
3
  const i = ({ customClass: t, ...o }) => /* @__PURE__ */ r.jsx(s, { customClass: `-primary ${t}`, ...o });
4
4
  export {
@@ -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 r from "./Button.js";
3
3
  const m = (o) => /* @__PURE__ */ t.jsx(r, { ...o, iconName: "undo" });
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 m from "./PrimaryButton.js";
3
3
  const e = ({ customClass: t, ...o }) => /* @__PURE__ */ r.jsx(m, { customClass: t, ...o });
4
4
  export {
@@ -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 u from "./Button.js";
3
3
  const r = ({ customClass: s, ...t }) => /* @__PURE__ */ o.jsx(u, { ...t, customClass: `-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 n from "./Button.js";
3
3
  const m = ({ customClass: t, ...o }) => /* @__PURE__ */ s.jsx(n, { ...o, customClass: `-warning ${t}` });
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 a = (t, e) => ({ ...t, float: e }), r = ({
3
3
  style: t = {},
4
4
  customClass: 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 m from "react";
3
3
  import i from "../DefaultButton.js";
4
4
  const f = (e) => {
@@ -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 r from "./base/index.js";
3
3
  const m = ({ customClass: o, ...s }) => /* @__PURE__ */ a.jsx(r, { ...s, customClass: "-danger" });
4
4
  export {
@@ -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 a from "./base/index.js";
3
3
  const n = ({ customClass: t, ...s }) => /* @__PURE__ */ o.jsx(a, { ...s, customClass: "-info" });
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 a from "./base/index.js";
3
3
  const e = ({ customClass: m, ...r }) => /* @__PURE__ */ s.jsx(a, { ...r, customClass: "-primary" });
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 o from "./base/index.js";
3
3
  const e = ({ customClass: t, ...s }) => /* @__PURE__ */ a.jsx(o, { ...s, customClass: "-success" });
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 r from "./base/index.js";
3
3
  const m = ({ customClass: o, ...s }) => /* @__PURE__ */ a.jsx(r, { ...s, customClass: "-warning" });
4
4
  export {
@@ -1,10 +1,10 @@
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 { useContext as e } from "react";
3
3
  import { CalendarContext as r, getDayContainerCssClass as m, getDayCssClass as n, dateIsEquals as i } from "./helpers.js";
4
4
  import l from "../../buttons/Button.js";
5
5
  import "../../icons/index.js";
6
6
  import '../../assets/button.css';/* empty css */
7
- import { v as C } from "../../chunks/v1.CDXKvGzE.js";
7
+ import { v as C } from "../../chunks/v1.Ds1rkxUj.js";
8
8
  const h = ({ currentDate: o, day: t }) => {
9
9
  const { handleDateChange: s } = e(r);
10
10
  return /* @__PURE__ */ a.jsx("div", { className: m(o, t), children: /* @__PURE__ */ a.jsx(
@@ -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 d from "./Week.js";
3
3
  import { getStartOfWeek as n, getStartOfMonth as f } from "./helpers.js";
4
4
  const x = ({ monthRef: a, currentDate: r }) => {
@@ -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 l from "./Day.js";
3
3
  const c = ({ weekStartDate: d, currentDate: s }) => {
4
4
  const o = () => {
@@ -1,5 +1,5 @@
1
- import m from "react";
2
- import s from "moment";
1
+ import u from "react";
2
+ import { h as s } from "../../chunks/moment.DMLRxgRE.js";
3
3
  s.locale("pt-br");
4
4
  function r(e, t) {
5
5
  return e.startOf(t);
@@ -24,7 +24,7 @@ function M(e) {
24
24
  function o(e, t) {
25
25
  return s(e.format("YYYY-MM-DD")).isSame(t.format("YYYY-MM-DD"));
26
26
  }
27
- function u(e, t) {
27
+ function m(e, t) {
28
28
  return e.format("MM") !== t.format("MM");
29
29
  }
30
30
  function Y() {
@@ -81,28 +81,28 @@ function c({
81
81
  let n = `calendar-component ${a}`;
82
82
  return n += ` -${d}`, n += e ? " -unpadding" : "", n += t ? " -draw-grid-lines" : "", n;
83
83
  }
84
- function L(e) {
84
+ function h(e) {
85
85
  return s(e).format() !== "Invalid date" ? e : s();
86
86
  }
87
- function h(e, t) {
87
+ function L(e, t) {
88
88
  let a = "monthday ";
89
89
  return a += o(e, t) ? "-selectedday " : "", a;
90
90
  }
91
91
  function D(e, t) {
92
92
  let a = "daybutton ";
93
- return a += o(s(), t) ? "-nowday " : "", a += u(e, t) ? "-outmonth" : "", a;
93
+ return a += o(s(), t) ? "-nowday " : "", a += m(e, t) ? "-outmonth" : "", a;
94
94
  }
95
- const y = m.createContext({});
95
+ const y = u.createContext({});
96
96
  export {
97
97
  y as CalendarContext,
98
98
  o as dateIsEquals,
99
99
  l as dayNames,
100
- u as dayOutOfCurrentMonth,
100
+ m as dayOutOfCurrentMonth,
101
101
  c as getCalendarCssClass,
102
- h as getDayContainerCssClass,
102
+ L as getDayContainerCssClass,
103
103
  D as getDayCssClass,
104
104
  Y as getPtBrLocale,
105
105
  M as getStartOfMonth,
106
106
  f as getStartOfWeek,
107
- L as validDate
107
+ h as validDate
108
108
  };
@@ -1,105 +1,103 @@
1
- import { j as o } from "../../chunks/jsx-runtime.gtoSnx-V.js";
2
- import { useRef as x, useState as G, useEffect as g } from "react";
3
- import O from "moment";
4
- import P from "./Month.js";
5
- import v from "../../buttons/Button.js";
1
+ import { j as e } from "../../chunks/jsx-runtime.C7wFtzyj.js";
2
+ import { useRef as h, useState as Y, useEffect as p } from "react";
3
+ import { h as B } from "../../chunks/moment.DMLRxgRE.js";
4
+ import G from "./Month.js";
5
+ import C from "../../buttons/Button.js";
6
6
  import "../../icons/index.js";
7
7
  import '../../assets/gridlayout.css';import '../../assets/button.css';import '../../assets/index11.css';/* empty css */
8
8
  /* empty css */
9
- import U from "../../gridlayout/GridCol.js";
10
- import { validDate as y, getCalendarCssClass as _, dayNames as B, CalendarContext as F } from "./helpers.js";
11
- import { v as j } from "../../chunks/v1.CDXKvGzE.js";
12
- const K = ["ArrowUp", "ArrowRight", "ArrowDown", "ArrowLeft"], Z = (A) => {
9
+ import O from "../../gridlayout/GridCol.js";
10
+ import { validDate as w, getCalendarCssClass as P, dayNames as U, CalendarContext as _ } from "./helpers.js";
11
+ import { v as x } from "../../chunks/v1.Ds1rkxUj.js";
12
+ const F = ["ArrowUp", "ArrowRight", "ArrowDown", "ArrowLeft"], X = (g) => {
13
13
  const {
14
- currentDate: l = O(),
15
- onDateChange: u,
16
- drawGridLines: D = !1,
17
- colorStyle: M,
18
- unpadding: N = !1,
19
- customClass: E,
20
- gridLayout: f,
21
- currentDateButton: d,
22
- calendarContainer: m
23
- } = A, n = x(null), e = x(null), [a, c] = G(y(l)), b = (t) => {
24
- u && u(t), c(t);
25
- }, L = () => {
26
- const t = a.clone();
14
+ currentDate: i = B(),
15
+ onDateChange: l,
16
+ drawGridLines: v = !1,
17
+ colorStyle: y,
18
+ unpadding: D = !1,
19
+ customClass: j,
20
+ gridLayout: d,
21
+ currentDateButton: A,
22
+ calendarContainer: M
23
+ } = g, o = h(null), a = h(null), [s, c] = Y(w(i)), N = (t) => {
24
+ l && l(t), c(t);
25
+ }, E = () => {
26
+ const t = s.clone();
27
27
  c(t.subtract(1, "month"));
28
- }, k = () => {
29
- const t = a.clone();
28
+ }, b = () => {
29
+ const t = s.clone();
30
30
  c(t.add(1, "month"));
31
- }, R = (t) => {
32
- var w;
33
- const i = t.target, r = (w = n.current) == null ? void 0 : w.getElementsByClassName("daybutton");
34
- let s = 0;
35
- r.length && Array.from(r).find((C, Y) => {
36
- C && C.id === i.id && (s = Y);
31
+ }, L = (t) => {
32
+ const k = t.target, r = o.current?.getElementsByClassName("daybutton");
33
+ let n = 0;
34
+ r.length && Array.from(r).find((f, S) => {
35
+ f && f.id === k.id && (n = S);
37
36
  });
38
- const p = {
39
- ArrowUp: r[s - 7],
40
- ArrowRight: r[s + 1],
41
- ArrowDown: r[s + 7],
42
- ArrowLeft: r[s - 1]
37
+ const u = {
38
+ ArrowUp: r[n - 7],
39
+ ArrowRight: r[n + 1],
40
+ ArrowDown: r[n + 7],
41
+ ArrowLeft: r[n - 1]
43
42
  }[t.code];
44
- p && p.focus();
45
- }, S = {
46
- handleDateChange: b
43
+ u && u.focus();
44
+ }, R = {
45
+ handleDateChange: N
47
46
  };
48
- g(() => (m == null || m(e == null ? void 0 : e.current), c(y(l)), document.addEventListener("keydown", (t) => {
49
- t && t.code && K.includes(t.code) && e.current && e.current.contains(document.activeElement) && n.current && n.current.contains(document.activeElement) && (R(t), t.stopPropagation(), t.preventDefault());
47
+ p(() => (M?.(a?.current), c(w(i)), document.addEventListener("keydown", (t) => {
48
+ t && t.code && F.includes(t.code) && a.current && a.current.contains(document.activeElement) && o.current && o.current.contains(document.activeElement) && (L(t), t.stopPropagation(), t.preventDefault());
50
49
  }), () => {
51
50
  document.removeEventListener("keydown", () => {
52
51
  });
53
- }), []), g(() => {
54
- var i;
55
- const t = (i = n.current) == null ? void 0 : i.getElementsByClassName("-selectedday")[0];
56
- d == null || d(t.firstChild);
57
- }, [l]);
58
- const h = /* @__PURE__ */ o.jsxs(
52
+ }), []), p(() => {
53
+ const t = o.current?.getElementsByClassName("-selectedday")[0];
54
+ A?.(t.firstChild);
55
+ }, [i]);
56
+ const m = /* @__PURE__ */ e.jsxs(
59
57
  "div",
60
58
  {
61
- ref: e,
62
- className: _({
63
- unpadding: N,
64
- drawGridLines: D,
65
- customClass: E,
66
- colorStyle: M
59
+ ref: a,
60
+ className: P({
61
+ unpadding: D,
62
+ drawGridLines: v,
63
+ customClass: j,
64
+ colorStyle: y
67
65
  }),
68
66
  children: [
69
- /* @__PURE__ */ o.jsxs("div", { className: "calendarheader", children: [
70
- /* @__PURE__ */ o.jsx(
71
- v,
67
+ /* @__PURE__ */ e.jsxs("div", { className: "calendarheader", children: [
68
+ /* @__PURE__ */ e.jsx(
69
+ C,
72
70
  {
73
- id: j(),
71
+ id: x(),
74
72
  boxShadow: !1,
75
73
  iconName: "arrow_left",
76
74
  customClass: "navbutton nav-arrow-left",
77
75
  onClick: () => {
78
- L();
76
+ E();
79
77
  }
80
78
  }
81
79
  ),
82
- /* @__PURE__ */ o.jsx("span", { className: "monthname", children: a.format("MMMM YYYY") }),
83
- /* @__PURE__ */ o.jsx(
84
- v,
80
+ /* @__PURE__ */ e.jsx("span", { className: "monthname", children: s.format("MMMM YYYY") }),
81
+ /* @__PURE__ */ e.jsx(
82
+ C,
85
83
  {
86
- id: j(),
84
+ id: x(),
87
85
  boxShadow: !1,
88
86
  iconName: "arrow_right",
89
87
  customClass: "navbutton nav-arrow-right",
90
88
  onClick: () => {
91
- k();
89
+ b();
92
90
  }
93
91
  }
94
92
  )
95
93
  ] }),
96
- /* @__PURE__ */ o.jsx("div", { className: "daynames", children: B().map((t) => /* @__PURE__ */ o.jsx("div", { children: t }, `day-${t}`)) }),
97
- /* @__PURE__ */ o.jsx(P, { monthRef: n, currentDate: a })
94
+ /* @__PURE__ */ e.jsx("div", { className: "daynames", children: U().map((t) => /* @__PURE__ */ e.jsx("div", { children: t }, `day-${t}`)) }),
95
+ /* @__PURE__ */ e.jsx(G, { monthRef: o, currentDate: s })
98
96
  ]
99
97
  }
100
98
  );
101
- return /* @__PURE__ */ o.jsx(F.Provider, { value: S, children: f ? /* @__PURE__ */ o.jsx(U, { customClass: "-withinput", cols: f, children: h }) : h });
99
+ return /* @__PURE__ */ e.jsx(_.Provider, { value: R, children: d ? /* @__PURE__ */ e.jsx(O, { customClass: "-withinput", cols: d, children: m }) : m });
102
100
  };
103
101
  export {
104
- Z as default
102
+ X as default
105
103
  };
@@ -1,9 +1,9 @@
1
- import "../chunks/jsx-runtime.gtoSnx-V.js";
1
+ import "../chunks/jsx-runtime.C7wFtzyj.js";
2
2
  import "react";
3
3
  import '../assets/radio.css';import '../assets/skeleton.css';import '../assets/toolbar.css';import '../assets/label.css';import '../assets/panel.css';import '../assets/noPermission.css';import '../assets/button.css';import '../assets/gridlayout.css';/* empty css */
4
4
  import "../gridlayout/GridCol.js";
5
5
  import "../permissionValidations.js";
6
- import { C as D } from "../chunks/tabs.BP3DB7Gx.js";
6
+ import { C as D } from "../chunks/tabs.D0L_nVfP.js";
7
7
  import "../inputs/errorMessage/index.js";
8
8
  import "../icons/index.js";
9
9
  import "../buttons/DefaultButton.js";
@@ -21,10 +21,10 @@ import "../list/helpers.js";
21
21
  import "../popover/index.js";
22
22
  import "../textContent/index.js";
23
23
  import "../tabs/MenuTabs.js";
24
- import "lodash";
24
+ import "../chunks/lodash.CIAK_hAg.js";
25
25
  import "../tabs/context.js";
26
26
  import "../tabs/tabHelpers.js";
27
- import "../chunks/index.CjD97zna.js";
27
+ import "../chunks/index.CM1aLH2W.js";
28
28
  import "../hint/index.js";
29
29
  export {
30
30
  D as default