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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (198) hide show
  1. package/lib/alerts/AlertContainer.js +8 -2
  2. package/lib/alerts/AlertProvider.js +10 -4
  3. package/lib/alerts/BaseAlert.js +3 -1
  4. package/lib/alerts/Message.js +91 -64
  5. package/lib/alerts/withAlert.js +10 -6
  6. package/lib/avatar/index.js +20 -42
  7. package/lib/badge/index.js +25 -23
  8. package/lib/buttons/ActivateButton.js +9 -4
  9. package/lib/buttons/AddButton.js +12 -5
  10. package/lib/buttons/Button.js +16 -5
  11. package/lib/buttons/ButtonGroups.js +10 -3
  12. package/lib/buttons/CancelButton.js +14 -4
  13. package/lib/buttons/DangerButton.js +15 -4
  14. package/lib/buttons/DefaultButton.js +25 -59
  15. package/lib/buttons/DestroyButton.js +21 -5
  16. package/lib/buttons/EditButton.js +9 -4
  17. package/lib/buttons/InactivateButton.js +9 -4
  18. package/lib/buttons/InfoButton.js +15 -4
  19. package/lib/buttons/PrimaryButton.js +15 -4
  20. package/lib/buttons/RestoreButton.js +9 -4
  21. package/lib/buttons/SaveButton.js +14 -4
  22. package/lib/buttons/SuccessButton.js +15 -4
  23. package/lib/buttons/WarningButton.js +15 -4
  24. package/lib/buttons/button_container/index.js +21 -16
  25. package/lib/buttons/split_button/index.js +53 -55
  26. package/lib/calendar/DangerCalendar.js +18 -4
  27. package/lib/calendar/InfoCalendar.js +18 -4
  28. package/lib/calendar/PrimaryCalendar.js +18 -4
  29. package/lib/calendar/SuccessCalendar.js +18 -4
  30. package/lib/calendar/WarningCalendar.js +18 -4
  31. package/lib/calendar/base/Day.js +32 -22
  32. package/lib/calendar/base/Month.js +24 -21
  33. package/lib/calendar/base/Week.js +20 -19
  34. package/lib/calendar/base/helpers.js +1 -9
  35. package/lib/calendar/base/index.js +129 -95
  36. package/lib/checkbox/index.js +5 -4
  37. package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
  38. package/lib/chunks/index.aw0XaUkg.js +266 -0
  39. package/lib/chunks/{jsx-runtime.C7wFtzyj.js → jsx-runtime.D1SHvdVE.js} +106 -108
  40. package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
  41. package/lib/dialog/Alert.js +18 -17
  42. package/lib/dialog/Custom.js +42 -28
  43. package/lib/dialog/Error.js +18 -17
  44. package/lib/dialog/Information.js +18 -17
  45. package/lib/dialog/Question.js +41 -54
  46. package/lib/dialog/Warning.js +18 -17
  47. package/lib/dialog/base/Content.js +13 -4
  48. package/lib/dialog/base/Footer.js +8 -3
  49. package/lib/dialog/base/Header.js +4 -3
  50. package/lib/dialog/base/index.js +5 -4
  51. package/lib/dialog/form/index.js +5 -4
  52. package/lib/dialog/index.js +1 -1
  53. package/lib/dialog/wizard/index.js +10 -9
  54. package/lib/dialog/wizard/progressbar.js +89 -80
  55. package/lib/dialog/wizard/step.js +4 -3
  56. package/lib/dialog/wizard/useWizard.js +42 -29
  57. package/lib/drawer/Content.js +15 -8
  58. package/lib/drawer/Drawer.js +25 -22
  59. package/lib/drawer/Header.js +53 -40
  60. package/lib/dropdown/Popup.js +3 -1
  61. package/lib/dropdown/withDropdown.js +75 -50
  62. package/lib/fieldset/index.js +66 -47
  63. package/lib/form/Field.js +88 -62
  64. package/lib/form/FieldArray.js +17 -38
  65. package/lib/form/FieldNumber.js +40 -36
  66. package/lib/form/FieldPeriod.js +90 -59
  67. package/lib/form/helpers.js +4 -1
  68. package/lib/form/index.js +55 -67
  69. package/lib/form/withFieldHOC.js +57 -48
  70. package/lib/form/withFormSecurity.js +6 -9
  71. package/lib/gridlayout/GridCol.js +21 -20
  72. package/lib/gridlayout/GridRow.js +22 -20
  73. package/lib/hint/helpers.js +6 -2
  74. package/lib/hint/index.js +27 -25
  75. package/lib/icons/helper.js +142 -569
  76. package/lib/icons/index.js +63 -55
  77. package/lib/index.js +20 -19
  78. package/lib/inputs/base/InputTextBase.js +62 -146
  79. package/lib/inputs/base/Label.js +27 -29
  80. package/lib/inputs/base/helpers.js +3 -1
  81. package/lib/inputs/color/index.js +52 -73
  82. package/lib/inputs/date/Dialog.js +15 -16
  83. package/lib/inputs/date/Dropdown.js +7 -1
  84. package/lib/inputs/date/index.js +60 -94
  85. package/lib/inputs/errorMessage/index.js +21 -13
  86. package/lib/inputs/file/DefaultFile.js +64 -66
  87. package/lib/inputs/file/DragDropFile.js +39 -93
  88. package/lib/inputs/file/File.js +8 -22
  89. package/lib/inputs/file/FileButtonSettings.js +20 -17
  90. package/lib/inputs/inputHOC.js +38 -20
  91. package/lib/inputs/mask/BaseMask.js +44 -23
  92. package/lib/inputs/mask/Cnpj.js +42 -36
  93. package/lib/inputs/mask/Cpf.js +45 -33
  94. package/lib/inputs/mask/Phone.js +10 -6
  95. package/lib/inputs/mask/ZipCode.js +9 -4
  96. package/lib/inputs/multiSelect/ActionButtons.js +35 -46
  97. package/lib/inputs/multiSelect/Dropdown.js +93 -131
  98. package/lib/inputs/multiSelect/index.js +167 -125
  99. package/lib/inputs/number/BaseNumber.js +43 -31
  100. package/lib/inputs/number/Currency.js +19 -12
  101. package/lib/inputs/number/Decimal.js +9 -4
  102. package/lib/inputs/number/index.js +31 -35
  103. package/lib/inputs/period/Dialog.js +16 -16
  104. package/lib/inputs/period/Dropdown.js +6 -1
  105. package/lib/inputs/period/PeriodList.js +41 -27
  106. package/lib/inputs/period/helper.js +5 -1
  107. package/lib/inputs/period/index.js +118 -240
  108. package/lib/inputs/search/index.js +95 -71
  109. package/lib/inputs/select/ActionButtons.js +24 -45
  110. package/lib/inputs/select/Dropdown.js +38 -87
  111. package/lib/inputs/select/helper.js +6 -2
  112. package/lib/inputs/select/index.js +23 -25
  113. package/lib/inputs/select/multiple/Selecteds.js +23 -19
  114. package/lib/inputs/select/multiple/index.js +35 -101
  115. package/lib/inputs/select/simple/index.js +26 -89
  116. package/lib/inputs/text/index.js +9 -4
  117. package/lib/inputs/textarea/index.js +13 -15
  118. package/lib/internals/withTooltip.js +114 -67
  119. package/lib/labelMessages/index.js +50 -45
  120. package/lib/labels/DangerLabel.js +18 -4
  121. package/lib/labels/DefaultLabel.js +53 -39
  122. package/lib/labels/InfoLabel.js +18 -4
  123. package/lib/labels/PrimaryLabel.js +18 -4
  124. package/lib/labels/SuccessLabel.js +18 -4
  125. package/lib/labels/WarningLabel.js +18 -4
  126. package/lib/labels/label_container/index.js +15 -9
  127. package/lib/list/Header.js +18 -6
  128. package/lib/list/Item.js +4 -3
  129. package/lib/list/Separator.js +8 -3
  130. package/lib/list/index.js +21 -18
  131. package/lib/menus/float/MenuItem.js +48 -51
  132. package/lib/menus/float/index.js +102 -81
  133. package/lib/menus/sidenav/ExpandMenu.js +17 -15
  134. package/lib/menus/sidenav/MenuLink.js +21 -14
  135. package/lib/menus/sidenav/NavMenuGroup.js +19 -14
  136. package/lib/menus/sidenav/NavMenuItem.js +131 -109
  137. package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
  138. package/lib/menus/sidenav/index.js +145 -123
  139. package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
  140. package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
  141. package/lib/noPermission/index.js +13 -8
  142. package/lib/panel/Content.js +48 -38
  143. package/lib/panel/DangerPanel.js +10 -5
  144. package/lib/panel/Default.js +62 -36
  145. package/lib/panel/Header.js +53 -37
  146. package/lib/panel/InfoPanel.js +10 -5
  147. package/lib/panel/PrimaryPanel.js +10 -5
  148. package/lib/panel/SuccessPanel.js +10 -5
  149. package/lib/panel/ToolBar.js +17 -4
  150. package/lib/panel/WarningPanel.js +10 -5
  151. package/lib/panel/helpers.js +4 -1
  152. package/lib/permissionValidations.js +5 -1
  153. package/lib/popover/PopoverText.js +12 -5
  154. package/lib/popover/PopoverTitle.js +10 -3
  155. package/lib/popover/index.js +36 -56
  156. package/lib/progress/Bar.js +43 -34
  157. package/lib/progress/index.js +23 -18
  158. package/lib/radio/index.js +105 -89
  159. package/lib/shortcuts/index.js +20 -7
  160. package/lib/skeleton/SkeletonContainer.js +16 -6
  161. package/lib/skeleton/index.js +42 -18
  162. package/lib/spinner/SpinnerLoading.js +53 -16
  163. package/lib/spinner/index.js +47 -37
  164. package/lib/split/Split.js +83 -79
  165. package/lib/split/SplitSide.js +24 -16
  166. package/lib/table/Body.js +36 -49
  167. package/lib/table/Header.js +45 -32
  168. package/lib/table/HeaderColumn.js +40 -27
  169. package/lib/table/Row.js +47 -48
  170. package/lib/table/RowColumn.js +50 -38
  171. package/lib/table/helpers.js +3 -1
  172. package/lib/table/index.js +101 -104
  173. package/lib/tabs/DropdownTabs.js +64 -61
  174. package/lib/tabs/Menu.js +35 -49
  175. package/lib/tabs/MenuTabs.js +59 -84
  176. package/lib/tabs/Panel.js +57 -46
  177. package/lib/tabs/context.js +11 -11
  178. package/lib/tabs/index.js +69 -64
  179. package/lib/tabs/tabHelpers.js +9 -7
  180. package/lib/textContent/index.js +30 -32
  181. package/lib/toolbar/ButtonBar.js +62 -58
  182. package/lib/toolbar/LabelBar.js +46 -38
  183. package/lib/toolbar/Separator.js +8 -3
  184. package/lib/toolbar/ToolBarGroup.js +14 -3
  185. package/lib/toolbar/index.js +35 -29
  186. package/lib/tooltip/index.js +1 -1
  187. package/lib/treetable/Body.js +25 -26
  188. package/lib/treetable/Header.js +22 -18
  189. package/lib/treetable/Row.js +210 -147
  190. package/lib/treetable/helpers.js +6 -14
  191. package/lib/treetable/index.js +25 -15
  192. package/lib/treeview/Header.js +13 -5
  193. package/lib/treeview/Node.js +198 -175
  194. package/lib/treeview/index.js +257 -174
  195. package/lib/uitour/index.js +167 -166
  196. package/package.json +11 -10
  197. package/lib/chunks/index.CM1aLH2W.js +0 -205
  198. package/lib/chunks/tabs.D0L_nVfP.js +0 -245
@@ -37,12 +37,18 @@ class a {
37
37
  };
38
38
  this.pushAlert(t);
39
39
  }, this.custom = (e, s) => {
40
- const t = { ...s, message: e };
40
+ const t = {
41
+ ...s,
42
+ message: e
43
+ };
41
44
  this.pushAlert(t);
42
45
  }, this.pushAlert = o;
43
46
  }
44
47
  default(o) {
45
- const { message: e, options: s } = o;
48
+ const {
49
+ message: e,
50
+ options: s
51
+ } = o;
46
52
  switch (s.type) {
47
53
  case "info":
48
54
  this.info(e, s);
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
1
+ import { j as s } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
2
  import { useState as i, Children as x, createElement as A } from "react";
3
3
  import { _ as C } from "../chunks/lodash.CIAK_hAg.js";
4
4
  import B from "./BaseAlert.js";
@@ -13,8 +13,12 @@ const D = (l) => {
13
13
  rightTop: [],
14
14
  centerTop: [],
15
15
  centerBottom: []
16
- }), [m, a] = i(!1), { children: p } = l, c = (t, e) => {
17
- o[e] = o[e].filter((r) => r.id !== t), n({ ...o });
16
+ }), [m, a] = i(!1), {
17
+ children: p
18
+ } = l, c = (t, e) => {
19
+ o[e] = o[e].filter((r) => r.id !== t), n({
20
+ ...o
21
+ });
18
22
  }, d = (t) => {
19
23
  const e = t;
20
24
  e.position === void 0 && (e.position = "rightBottom"), e.id = (/* @__PURE__ */ new Date()).getTime(), o[e.position].push(e), n(o), a(!m);
@@ -28,7 +32,9 @@ const D = (l) => {
28
32
  t.push(u);
29
33
  } else
30
34
  t.push(null);
31
- }), /* @__PURE__ */ s.jsxs(T.Provider, { value: { ...h }, children: [
35
+ }), /* @__PURE__ */ s.jsxs(T.Provider, { value: {
36
+ ...h
37
+ }, children: [
32
38
  /* @__PURE__ */ s.jsx(B, { children: t }),
33
39
  p
34
40
  ] });
@@ -1,6 +1,8 @@
1
1
  import { useState as o, useEffect as l } from "react";
2
2
  import r from "react-dom";
3
- import '../assets/BaseAlert.css';const m = document.getElementsByTagName("body")[0], n = document.getElementById("alert"), d = ({ children: a }) => {
3
+ import '../assets/BaseAlert.css';const m = document.getElementsByTagName("body")[0], n = document.getElementById("alert"), d = ({
4
+ children: a
5
+ }) => {
4
6
  const [e] = o(document.createElement("div"));
5
7
  return e.className = "messagecontainer", l(() => {
6
8
  if (n === null) {
@@ -1,67 +1,94 @@
1
- import { j as n } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import { useState as g, useRef as p, useEffect as R } from "react";
3
- import L from "../icons/index.js";
4
- import N from "../progress/index.js";
5
- const k = ({ customClass: s, className: t }) => `${t} ${s}`, w = (s, t, r) => s !== null ? s : t !== null ? /* @__PURE__ */ n.jsx(L, { name: t, color: r !== "" ? r : "#fff", size: 32 }) : null, T = ({
6
- handleClose: s = () => {
7
- },
8
- message: t,
9
- id: r = 0,
10
- color: o = "",
11
- icon: f = null,
12
- iconName: d = null,
13
- timeout: c = 3e3,
14
- customClass: x = "",
15
- closeButton: v = !1,
16
- className: b = "message",
17
- position: m = "centerTop",
18
- pauseTimeoutOnMouseHover: h = !1
19
- }) => {
20
- const [u, i] = g(c - 300), [j, I] = g(!1), l = p(null), a = p(null), y = () => {
21
- h && (I(!0), i((e) => e >= 800 ? e + 600 : e + 500));
22
- }, E = () => {
23
- h && (I(!1), i((e) => e >= 800 ? e - 600 : e - 500));
24
- }, M = () => x.replace("-", "");
25
- return R(() => (!j && u > 0 ? (l.current = setTimeout(() => {
26
- s(r, m);
27
- }, u), a.current = setInterval(() => u > 0 ? i((e) => e > 0 ? e - 100 : 0) : null, 100)) : (l.current && clearInterval(l.current), a.current && clearInterval(a.current)), () => {
28
- l.current && clearInterval(l.current), a.current && clearInterval(a.current);
29
- }), [j]), /* @__PURE__ */ n.jsxs("div", { onMouseEnter: y, onMouseLeave: E, children: [
30
- c > 0 && /* @__PURE__ */ n.jsx(
31
- N,
32
- {
33
- min: 300,
34
- max: c,
35
- value: u,
36
- showLabel: !1,
37
- style: {
38
- animation: "tinRightIn 1s forwards ease-in-out",
39
- margin: "0px",
40
- borderRadius: "0px",
41
- backgroundColor: "rgb(234 234 234)"
42
- },
43
- height: "6px",
44
- type: M()
45
- }
46
- ),
47
- /* @__PURE__ */ n.jsxs("div", { className: k({ className: b, customClass: x }), children: [
48
- /* @__PURE__ */ n.jsx("div", { className: "-icon", children: (f || d || o) && w(f, d, o) }),
49
- /* @__PURE__ */ n.jsx("div", { className: "-messagecontent", children: /* @__PURE__ */ n.jsx("p", { children: t }) }),
50
- /* @__PURE__ */ n.jsx("div", { className: "close", children: v || c === 0 ? /* @__PURE__ */ n.jsx(
51
- "span",
52
- {
53
- className: "close-button",
54
- role: "button",
55
- onKeyPress: () => {
56
- },
57
- tabIndex: -1,
58
- onClick: () => s !== void 0 ? s(r, m) : null,
59
- children: "x"
60
- }
61
- ) : null })
62
- ] })
63
- ] });
1
+ import { j as s } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as X } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useState as V, useRef as W, useEffect as Y } from "react";
4
+ import Z from "../icons/index.js";
5
+ import ee from "../progress/index.js";
6
+ const te = ({
7
+ customClass: t,
8
+ className: e
9
+ }) => `${e} ${t}`, se = (t, e, j) => t !== null ? t : e !== null ? /* @__PURE__ */ s.jsx(Z, { name: e, color: j !== "" ? j : "#fff", size: 32 }) : null, de = (t) => {
10
+ const e = X.c(47), {
11
+ handleClose: j,
12
+ message: k,
13
+ id: K,
14
+ color: S,
15
+ icon: q,
16
+ iconName: A,
17
+ timeout: D,
18
+ customClass: F,
19
+ closeButton: G,
20
+ className: J,
21
+ position: P,
22
+ pauseTimeoutOnMouseHover: Q
23
+ } = t, l = j === void 0 ? ne : j, i = K === void 0 ? 0 : K, b = S === void 0 ? "" : S, C = q === void 0 ? null : q, M = A === void 0 ? null : A, n = D === void 0 ? 3e3 : D, r = F === void 0 ? "" : F, w = G === void 0 ? !1 : G, H = J === void 0 ? "message" : J, c = P === void 0 ? "centerTop" : P, u = Q === void 0 ? !1 : Q, [o, O] = V(n - 300), [a, U] = V(!1), I = W(null), N = W(null);
24
+ let E;
25
+ e[0] !== u ? (E = () => {
26
+ u && (U(!0), O(oe));
27
+ }, e[0] = u, e[1] = E) : E = e[1];
28
+ const _ = E;
29
+ let R;
30
+ e[2] !== u ? (R = () => {
31
+ u && (U(!1), O(le));
32
+ }, e[2] = u, e[3] = R) : R = e[3];
33
+ const z = R;
34
+ let y;
35
+ e[4] !== r ? (y = () => r.replace("-", ""), e[4] = r, e[5] = y) : y = e[5];
36
+ const B = y;
37
+ let T;
38
+ e[6] !== l || e[7] !== i || e[8] !== a || e[9] !== c || e[10] !== o ? (T = () => (!a && o > 0 ? (I.current = setTimeout(() => {
39
+ l(i, c);
40
+ }, o), N.current = setInterval(() => o > 0 ? O(ie) : null, 100)) : (I.current && clearInterval(I.current), N.current && clearInterval(N.current)), () => {
41
+ I.current && clearInterval(I.current), N.current && clearInterval(N.current);
42
+ }), e[6] = l, e[7] = i, e[8] = a, e[9] = c, e[10] = o, e[11] = T) : T = e[11];
43
+ let L;
44
+ e[12] !== a ? (L = [a], e[12] = a, e[13] = L) : L = e[13], Y(T, L);
45
+ let f;
46
+ e[14] !== B || e[15] !== o || e[16] !== n ? (f = n > 0 && /* @__PURE__ */ s.jsx(ee, { min: 300, max: n, value: o, showLabel: !1, style: {
47
+ animation: "tinRightIn 1s forwards ease-in-out",
48
+ margin: "0px",
49
+ borderRadius: "0px",
50
+ backgroundColor: "rgb(234 234 234)"
51
+ }, height: "6px", type: B() }), e[14] = B, e[15] = o, e[16] = n, e[17] = f) : f = e[17];
52
+ let m;
53
+ e[18] !== H || e[19] !== r ? (m = te({
54
+ className: H,
55
+ customClass: r
56
+ }), e[18] = H, e[19] = r, e[20] = m) : m = e[20];
57
+ let d;
58
+ e[21] !== b || e[22] !== C || e[23] !== M ? (d = (C || M || b) && se(C, M, b), e[21] = b, e[22] = C, e[23] = M, e[24] = d) : d = e[24];
59
+ let p;
60
+ e[25] !== d ? (p = /* @__PURE__ */ s.jsx("div", { className: "-icon", children: d }), e[25] = d, e[26] = p) : p = e[26];
61
+ let v;
62
+ e[27] !== k ? (v = /* @__PURE__ */ s.jsx("div", { className: "-messagecontent", children: /* @__PURE__ */ s.jsx("p", { children: k }) }), e[27] = k, e[28] = v) : v = e[28];
63
+ let x;
64
+ e[29] !== w || e[30] !== l || e[31] !== i || e[32] !== c || e[33] !== n ? (x = w || n === 0 ? /* @__PURE__ */ s.jsx("span", { className: "close-button", role: "button", onKeyPress: re, tabIndex: -1, onClick: () => l !== void 0 ? l(i, c) : null, children: "x" }) : null, e[29] = w, e[30] = l, e[31] = i, e[32] = c, e[33] = n, e[34] = x) : x = e[34];
65
+ let h;
66
+ e[35] !== x ? (h = /* @__PURE__ */ s.jsx("div", { className: "close", children: x }), e[35] = x, e[36] = h) : h = e[36];
67
+ let g;
68
+ e[37] !== m || e[38] !== p || e[39] !== v || e[40] !== h ? (g = /* @__PURE__ */ s.jsxs("div", { className: m, children: [
69
+ p,
70
+ v,
71
+ h
72
+ ] }), e[37] = m, e[38] = p, e[39] = v, e[40] = h, e[41] = g) : g = e[41];
73
+ let $;
74
+ return e[42] !== _ || e[43] !== z || e[44] !== f || e[45] !== g ? ($ = /* @__PURE__ */ s.jsxs("div", { onMouseEnter: _, onMouseLeave: z, children: [
75
+ f,
76
+ g
77
+ ] }), e[42] = _, e[43] = z, e[44] = f, e[45] = g, e[46] = $) : $ = e[46], $;
64
78
  };
79
+ function ne() {
80
+ }
81
+ function oe(t) {
82
+ return t >= 800 ? t + 600 : t + 500;
83
+ }
84
+ function le(t) {
85
+ return t >= 800 ? t - 600 : t - 500;
86
+ }
87
+ function ie(t) {
88
+ return t > 0 ? t - 100 : 0;
89
+ }
90
+ function re() {
91
+ }
65
92
  export {
66
- T as default
93
+ de as default
67
94
  };
@@ -1,9 +1,13 @@
1
- import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import { useContext as s } from "react";
3
- import n from "./helpers.js";
4
- const p = (t) => (r) => {
5
- const { alert: e } = s(n);
6
- return /* @__PURE__ */ o.jsx(t, { ...r, alert: e });
1
+ import { j as s } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as i } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { useContext as n } from "react";
4
+ import l from "./helpers.js";
5
+ const p = (m) => (r) => {
6
+ const t = i.c(3), {
7
+ alert: o
8
+ } = n(l);
9
+ let e;
10
+ return t[0] !== o || t[1] !== r ? (e = /* @__PURE__ */ s.jsx(m, { ...r, alert: o }), t[0] = o, t[1] = r, t[2] = e) : e = t[2], e;
7
11
  };
8
12
  export {
9
13
  p as default
@@ -1,4 +1,4 @@
1
- import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
1
+ import { j as s } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
2
  import v, { useRef as j } from "react";
3
3
  import b from "../icons/index.js";
4
4
  import C from "../dropdown/withDropdown.js";
@@ -28,47 +28,25 @@ import '../assets/index10.css';const R = ({
28
28
  id: x
29
29
  } = t, f = j(null);
30
30
  return /* @__PURE__ */ s.jsxs(v.Fragment, { children: [
31
- /* @__PURE__ */ s.jsxs(
32
- "div",
33
- {
34
- "data-testid": "avatar",
35
- id: x,
36
- onKeyPress: () => {
37
- },
38
- role: "button",
39
- tabIndex: -1,
40
- onClick: (a) => {
41
- o && o(a), i && m && m();
42
- },
43
- ref: (a) => {
44
- d && d(a), f.current = a;
45
- },
46
- className: `${R(t)} ${p}`,
47
- style: {
48
- width: `${r}`,
49
- height: `${e}`,
50
- backgroundColor: `${$}`,
51
- cursor: `${i ? "pointer" : "normal"}`,
52
- ...w
53
- },
54
- children: [
55
- (l || c) && !n && y(l, c),
56
- n && /* @__PURE__ */ s.jsx(
57
- "img",
58
- {
59
- className: "imgavatar",
60
- style: {
61
- width: `${r}`,
62
- height: `${e}`
63
- },
64
- src: n,
65
- alt: h
66
- }
67
- ),
68
- g
69
- ]
70
- }
71
- ),
31
+ /* @__PURE__ */ s.jsxs("div", { "data-testid": "avatar", id: x, onKeyPress: () => {
32
+ }, role: "button", tabIndex: -1, onClick: (a) => {
33
+ o && o(a), i && m && m();
34
+ }, ref: (a) => {
35
+ d && d(a), f.current = a;
36
+ }, className: `${R(t)} ${p}`, style: {
37
+ width: `${r}`,
38
+ height: `${e}`,
39
+ backgroundColor: `${$}`,
40
+ cursor: `${i ? "pointer" : "normal"}`,
41
+ ...w
42
+ }, children: [
43
+ (l || c) && !n && y(l, c),
44
+ n && /* @__PURE__ */ s.jsx("img", { className: "imgavatar", style: {
45
+ width: `${r}`,
46
+ height: `${e}`
47
+ }, src: n, alt: h }),
48
+ g
49
+ ] }),
72
50
  i && u && u(f.current)
73
51
  ] });
74
52
  }, P = C(A);
@@ -1,26 +1,28 @@
1
- import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import '../assets/index.css';const p = (t) => {
3
- const {
4
- color: e = "default",
5
- customClass: o,
6
- customClassForBadge: a,
7
- children: r,
8
- content: c,
9
- top: n = "-16px",
10
- right: l = "-11px"
11
- } = t;
12
- return /* @__PURE__ */ s.jsxs("div", { className: `badge-component ${o}`, children: [
13
- r,
14
- /* @__PURE__ */ s.jsx(
15
- "span",
16
- {
17
- className: `badge -${e} ${a}`,
18
- style: { top: `${n}`, right: `${l}` },
19
- children: c
20
- }
21
- )
22
- ] });
1
+ import { j as x } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as v } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import '../assets/index.css';const C = (f) => {
4
+ const t = v.c(11), {
5
+ color: d,
6
+ customClass: g,
7
+ customClassForBadge: u,
8
+ children: c,
9
+ content: n,
10
+ top: p,
11
+ right: m
12
+ } = f, h = d === void 0 ? "default" : d, $ = p === void 0 ? "-16px" : p, j = m === void 0 ? "-11px" : m, l = `badge-component ${g}`, r = `badge -${h} ${u}`, i = `${$}`, a = `${j}`;
13
+ let o;
14
+ t[0] !== i || t[1] !== a ? (o = {
15
+ top: i,
16
+ right: a
17
+ }, t[0] = i, t[1] = a, t[2] = o) : o = t[2];
18
+ let s;
19
+ t[3] !== n || t[4] !== r || t[5] !== o ? (s = /* @__PURE__ */ x.jsx("span", { className: r, style: o, children: n }), t[3] = n, t[4] = r, t[5] = o, t[6] = s) : s = t[6];
20
+ let e;
21
+ return t[7] !== c || t[8] !== l || t[9] !== s ? (e = /* @__PURE__ */ x.jsxs("div", { className: l, children: [
22
+ c,
23
+ s
24
+ ] }), t[7] = c, t[8] = l, t[9] = s, t[10] = e) : e = t[10], e;
23
25
  };
24
26
  export {
25
- p as default
27
+ C as default
26
28
  };
@@ -1,6 +1,11 @@
1
- import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import m from "./Button.js";
3
- const s = (t) => /* @__PURE__ */ o.jsx(m, { ...t, iconName: "undo" });
1
+ import { j as m } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as r } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import i from "./Button.js";
4
+ const u = (e) => {
5
+ const t = r.c(2);
6
+ let o;
7
+ return t[0] !== e ? (o = /* @__PURE__ */ m.jsx(i, { ...e, iconName: "undo" }), t[0] = e, t[1] = o) : o = t[1], o;
8
+ };
4
9
  export {
5
- s as default
10
+ u as default
6
11
  };
@@ -1,7 +1,14 @@
1
- import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import r from "./SuccessButton.js";
3
- import s from "../icons/index.js";
4
- const i = (t) => /* @__PURE__ */ o.jsx(r, { ...t, icon: /* @__PURE__ */ o.jsx(s, { name: "new_file", color: "white" }) });
1
+ import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import i from "./SuccessButton.js";
4
+ import n from "../icons/index.js";
5
+ const u = (m) => {
6
+ const t = c.c(3);
7
+ let e;
8
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ r.jsx(n, { name: "new_file", color: "white" }), t[0] = e) : e = t[0];
9
+ let o;
10
+ return t[1] !== m ? (o = /* @__PURE__ */ r.jsx(i, { ...m, icon: e }), t[1] = m, t[2] = o) : o = t[2], o;
11
+ };
5
12
  export {
6
- i as default
13
+ u as default
7
14
  };
@@ -1,8 +1,19 @@
1
- import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import { Fragment as m } from "react";
3
- import s from "./DefaultButton.js";
1
+ import { j as m } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import { Fragment as p } from "react";
4
+ import n from "./DefaultButton.js";
4
5
  import f from "./split_button/index.js";
5
- const e = ({ split: r = !1, ...o }) => /* @__PURE__ */ t.jsx(m, { children: r ? /* @__PURE__ */ t.jsx(f, { ...o }) : /* @__PURE__ */ t.jsx(s, { ...o }) });
6
+ const d = (s) => {
7
+ const t = l.c(6);
8
+ let o, r;
9
+ t[0] !== s ? ({
10
+ split: r,
11
+ ...o
12
+ } = s, t[0] = s, t[1] = o, t[2] = r) : (o = t[1], r = t[2]);
13
+ const i = r === void 0 ? !1 : r;
14
+ let e;
15
+ return t[3] !== o || t[4] !== i ? (e = /* @__PURE__ */ m.jsx(p, { children: i ? /* @__PURE__ */ m.jsx(f, { ...o }) : /* @__PURE__ */ m.jsx(n, { ...o }) }), t[3] = o, t[4] = i, t[5] = e) : e = t[5], e;
16
+ };
6
17
  export {
7
- e as default
18
+ d as default
8
19
  };
@@ -1,5 +1,12 @@
1
- import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- const r = ({ children: s }) => /* @__PURE__ */ t.jsx("div", { className: "btn-group", children: s });
1
+ import { j as e } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as n } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ const m = (r) => {
4
+ const t = n.c(2), {
5
+ children: s
6
+ } = r;
7
+ let o;
8
+ return t[0] !== s ? (o = /* @__PURE__ */ e.jsx("div", { className: "btn-group", children: s }), t[0] = s, t[1] = o) : o = t[1], o;
9
+ };
3
10
  export {
4
- r as default
11
+ m as default
5
12
  };
@@ -1,6 +1,16 @@
1
- import { j as r } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import s from "./Button.js";
3
- const a = ({ customClass: t, ...o }) => /* @__PURE__ */ r.jsx(s, { customClass: t, ...o });
1
+ import { j as m } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import i from "./Button.js";
4
+ const u = (r) => {
5
+ const t = l.c(6);
6
+ let e, o;
7
+ t[0] !== r ? ({
8
+ customClass: e,
9
+ ...o
10
+ } = r, t[0] = r, t[1] = e, t[2] = o) : (e = t[1], o = t[2]);
11
+ let s;
12
+ return t[3] !== e || t[4] !== o ? (s = /* @__PURE__ */ m.jsx(i, { customClass: e, ...o }), t[3] = e, t[4] = o, t[5] = s) : s = t[5], s;
13
+ };
4
14
  export {
5
- a as default
15
+ u as default
6
16
  };
@@ -1,6 +1,17 @@
1
- import { j as s } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import r from "./Button.js";
3
- const n = ({ customClass: t, ...o }) => /* @__PURE__ */ s.jsx(r, { customClass: `-danger ${t}`, ...o });
1
+ import { j as n } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as l } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import a from "./Button.js";
4
+ const p = (r) => {
5
+ const t = l.c(6);
6
+ let o, s;
7
+ t[0] !== r ? ({
8
+ customClass: o,
9
+ ...s
10
+ } = r, t[0] = r, t[1] = o, t[2] = s) : (o = t[1], s = t[2]);
11
+ const m = `-danger ${o}`;
12
+ let e;
13
+ return t[3] !== s || t[4] !== m ? (e = /* @__PURE__ */ n.jsx(a, { customClass: m, ...s }), t[3] = s, t[4] = m, t[5] = e) : e = t[5], e;
14
+ };
4
15
  export {
5
- n as default
16
+ p as default
6
17
  };
@@ -1,4 +1,4 @@
1
- import { j as t } from "../chunks/jsx-runtime.C7wFtzyj.js";
1
+ import { j as t } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
2
  import { useState as B, useRef as V, useContext as X, useEffect as Y, Fragment as Z } from "react";
3
3
  import { _ as w } from "../chunks/lodash.CIAK_hAg.js";
4
4
  import c from "../icons/index.js";
@@ -47,7 +47,9 @@ const oe = ({
47
47
  tooltipPosition: pe,
48
48
  ...G
49
49
  }) => {
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}
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, {
51
+ handlerSetOnDeniedText: J
52
+ } = X(te), L = () => `button-component ${A}
51
53
  ${z}
52
54
  ${K && "-transparent"}
53
55
  ${o && "-disabled"}
@@ -56,71 +58,35 @@ const oe = ({
56
58
  ${n && p && "icon-center"}
57
59
  ${E && !n && `icon-${E}`}
58
60
  ${M ? "" : "-shadowsdisabled"}
59
- ${p && "-round"}`, I = (e) => /* @__PURE__ */ t.jsx(
60
- c,
61
- {
62
- name: "padlock",
63
- size: 16,
64
- pointerEvents: "none",
65
- color: x,
66
- style: e
67
- }
68
- ), Q = () => {
61
+ ${p && "-round"}`, I = (e) => /* @__PURE__ */ t.jsx(c, { name: "padlock", size: 16, pointerEvents: "none", color: x, style: e }), Q = () => {
69
62
  let e = N;
70
- if (o && (e = { ...e, fill: x }), n && _) {
63
+ if (o && (e = {
64
+ ...e,
65
+ fill: x
66
+ }), n && _) {
71
67
  const U = f || (T ? "mini_up" : "mini_down");
72
- return /* @__PURE__ */ t.jsx(
73
- c,
74
- {
75
- name: U,
76
- size: 16,
77
- customClass: "dropdown-icon",
78
- pointerEvents: "none",
79
- style: e
80
- }
81
- );
68
+ return /* @__PURE__ */ t.jsx(c, { name: U, size: 16, customClass: "dropdown-icon", pointerEvents: "none", style: e });
82
69
  }
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
- c,
85
- {
86
- name: f,
87
- size: 16,
88
- color: m && v && u && v || "#676464",
89
- pointerEvents: "none",
90
- style: e
91
- }
92
- ) : null;
70
+ return r ? a ? I(e) : D ? /* @__PURE__ */ t.jsx(c, { ...r.props, color: x }) : r : !r && a ? I(e) : f ? /* @__PURE__ */ t.jsx(c, { name: f, size: 16, color: m && v && u && v || "#676464", pointerEvents: "none", style: e }) : null;
93
71
  };
94
72
  return Y(() => {
95
73
  a && J(q);
96
74
  }, [a]), !k || $.unvisible ? null : /* @__PURE__ */ t.jsxs(Z, { children: [
97
- /* @__PURE__ */ t.jsxs(
98
- "button",
99
- {
100
- ...G,
101
- style: F,
102
- onKeyDown: (e) => {
103
- if (e && (e.key === "Enter" || e.key === " ")) {
104
- if (e.preventDefault(), e.stopPropagation(), o) return;
105
- s && i?.current?.click(), n && l && l(), s && m && h(!u);
106
- }
107
- },
108
- onClick: (e) => {
109
- e.preventDefault(), !o && (s && s(e), n && l && l(), s && m && h(!u));
110
- },
111
- className: `${L()} ${u ? "-toggleable" : ""} ${W ? "-skeletonized" : ""}`,
112
- ref: (e) => {
113
- d && (w.isFunction(d) ? d(e) : i.current = e), b && b(e), i.current = e;
114
- },
115
- tabIndex: o ? -1 : g,
116
- children: [
117
- C,
118
- Q(),
119
- S || "",
120
- O && /* @__PURE__ */ t.jsx("div", { className: "spinnercontainer", children: /* @__PURE__ */ t.jsx(ne, { align: "none", delayTime: 0 }) })
121
- ]
75
+ /* @__PURE__ */ t.jsxs("button", { ...G, style: F, onKeyDown: (e) => {
76
+ if (e && (e.key === "Enter" || e.key === " ")) {
77
+ if (e.preventDefault(), e.stopPropagation(), o) return;
78
+ s && i?.current?.click(), n && l && l(), s && m && h(!u);
122
79
  }
123
- ),
80
+ }, onClick: (e) => {
81
+ e.preventDefault(), !o && (s && s(e), n && l && l(), s && m && h(!u));
82
+ }, className: `${L()} ${u ? "-toggleable" : ""} ${W ? "-skeletonized" : ""}`, ref: (e) => {
83
+ d && (w.isFunction(d) ? d(e) : i.current = e), b && b(e), i.current = e;
84
+ }, tabIndex: o ? -1 : g, children: [
85
+ C,
86
+ Q(),
87
+ S || "",
88
+ O && /* @__PURE__ */ t.jsx("div", { className: "spinnercontainer", children: /* @__PURE__ */ t.jsx(ne, { align: "none", delayTime: 0 }) })
89
+ ] }),
124
90
  n && i.current && j && j(i.current)
125
91
  ] });
126
92
  }, he = se(ee(oe));
@@ -1,7 +1,23 @@
1
- import { j as o } from "../chunks/jsx-runtime.C7wFtzyj.js";
2
- import r from "./DangerButton.js";
3
- import n from "../icons/index.js";
4
- const a = ({ icon: i, ...t }) => /* @__PURE__ */ o.jsx(r, { ...t, icon: /* @__PURE__ */ o.jsx(n, { name: "bin", color: "white" }) });
1
+ import { j as n } from "../chunks/jsx-runtime.D1SHvdVE.js";
2
+ import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
3
+ import c from "./DangerButton.js";
4
+ import l from "../icons/index.js";
5
+ const j = (s) => {
6
+ const t = m.c(5);
7
+ let o;
8
+ if (t[0] !== s) {
9
+ const {
10
+ icon: f,
11
+ ...i
12
+ } = s;
13
+ o = i, t[0] = s, t[1] = o;
14
+ } else
15
+ o = t[1];
16
+ let e;
17
+ t[2] === Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ n.jsx(l, { name: "bin", color: "white" }), t[2] = e) : e = t[2];
18
+ let r;
19
+ return t[3] !== o ? (r = /* @__PURE__ */ n.jsx(c, { ...o, icon: e }), t[3] = o, t[4] = r) : r = t[4], r;
20
+ };
5
21
  export {
6
- a as default
22
+ j as default
7
23
  };