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.
- package/lib/alerts/AlertContainer.js +8 -2
- package/lib/alerts/AlertProvider.js +10 -4
- package/lib/alerts/BaseAlert.js +3 -1
- package/lib/alerts/Message.js +91 -64
- package/lib/alerts/withAlert.js +10 -6
- package/lib/avatar/index.js +20 -42
- package/lib/badge/index.js +25 -23
- package/lib/buttons/ActivateButton.js +9 -4
- package/lib/buttons/AddButton.js +12 -5
- package/lib/buttons/Button.js +16 -5
- package/lib/buttons/ButtonGroups.js +10 -3
- package/lib/buttons/CancelButton.js +14 -4
- package/lib/buttons/DangerButton.js +15 -4
- package/lib/buttons/DefaultButton.js +25 -59
- package/lib/buttons/DestroyButton.js +21 -5
- package/lib/buttons/EditButton.js +9 -4
- package/lib/buttons/InactivateButton.js +9 -4
- package/lib/buttons/InfoButton.js +15 -4
- package/lib/buttons/PrimaryButton.js +15 -4
- package/lib/buttons/RestoreButton.js +9 -4
- package/lib/buttons/SaveButton.js +14 -4
- package/lib/buttons/SuccessButton.js +15 -4
- package/lib/buttons/WarningButton.js +15 -4
- package/lib/buttons/button_container/index.js +21 -16
- package/lib/buttons/split_button/index.js +53 -55
- package/lib/calendar/DangerCalendar.js +18 -4
- package/lib/calendar/InfoCalendar.js +18 -4
- package/lib/calendar/PrimaryCalendar.js +18 -4
- package/lib/calendar/SuccessCalendar.js +18 -4
- package/lib/calendar/WarningCalendar.js +18 -4
- package/lib/calendar/base/Day.js +32 -22
- package/lib/calendar/base/Month.js +24 -21
- package/lib/calendar/base/Week.js +20 -19
- package/lib/calendar/base/helpers.js +1 -9
- package/lib/calendar/base/index.js +129 -95
- package/lib/checkbox/index.js +5 -4
- package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
- package/lib/chunks/index.aw0XaUkg.js +266 -0
- package/lib/chunks/{jsx-runtime.C7wFtzyj.js → jsx-runtime.D1SHvdVE.js} +106 -108
- package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
- package/lib/dialog/Alert.js +18 -17
- package/lib/dialog/Custom.js +42 -28
- package/lib/dialog/Error.js +18 -17
- package/lib/dialog/Information.js +18 -17
- package/lib/dialog/Question.js +41 -54
- package/lib/dialog/Warning.js +18 -17
- package/lib/dialog/base/Content.js +13 -4
- package/lib/dialog/base/Footer.js +8 -3
- package/lib/dialog/base/Header.js +4 -3
- package/lib/dialog/base/index.js +5 -4
- package/lib/dialog/form/index.js +5 -4
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/wizard/index.js +10 -9
- package/lib/dialog/wizard/progressbar.js +89 -80
- package/lib/dialog/wizard/step.js +4 -3
- package/lib/dialog/wizard/useWizard.js +42 -29
- package/lib/drawer/Content.js +15 -8
- package/lib/drawer/Drawer.js +25 -22
- package/lib/drawer/Header.js +53 -40
- package/lib/dropdown/Popup.js +3 -1
- package/lib/dropdown/withDropdown.js +75 -50
- package/lib/fieldset/index.js +66 -47
- package/lib/form/Field.js +88 -62
- package/lib/form/FieldArray.js +17 -38
- package/lib/form/FieldNumber.js +40 -36
- package/lib/form/FieldPeriod.js +90 -59
- package/lib/form/helpers.js +4 -1
- package/lib/form/index.js +55 -67
- package/lib/form/withFieldHOC.js +57 -48
- package/lib/form/withFormSecurity.js +6 -9
- package/lib/gridlayout/GridCol.js +21 -20
- package/lib/gridlayout/GridRow.js +22 -20
- package/lib/hint/helpers.js +6 -2
- package/lib/hint/index.js +27 -25
- package/lib/icons/helper.js +142 -569
- package/lib/icons/index.js +63 -55
- package/lib/index.js +20 -19
- package/lib/inputs/base/InputTextBase.js +62 -146
- package/lib/inputs/base/Label.js +27 -29
- package/lib/inputs/base/helpers.js +3 -1
- package/lib/inputs/color/index.js +52 -73
- package/lib/inputs/date/Dialog.js +15 -16
- package/lib/inputs/date/Dropdown.js +7 -1
- package/lib/inputs/date/index.js +60 -94
- package/lib/inputs/errorMessage/index.js +21 -13
- package/lib/inputs/file/DefaultFile.js +64 -66
- package/lib/inputs/file/DragDropFile.js +39 -93
- package/lib/inputs/file/File.js +8 -22
- package/lib/inputs/file/FileButtonSettings.js +20 -17
- package/lib/inputs/inputHOC.js +38 -20
- package/lib/inputs/mask/BaseMask.js +44 -23
- package/lib/inputs/mask/Cnpj.js +42 -36
- package/lib/inputs/mask/Cpf.js +45 -33
- package/lib/inputs/mask/Phone.js +10 -6
- package/lib/inputs/mask/ZipCode.js +9 -4
- package/lib/inputs/multiSelect/ActionButtons.js +35 -46
- package/lib/inputs/multiSelect/Dropdown.js +93 -131
- package/lib/inputs/multiSelect/index.js +167 -125
- package/lib/inputs/number/BaseNumber.js +43 -31
- package/lib/inputs/number/Currency.js +19 -12
- package/lib/inputs/number/Decimal.js +9 -4
- package/lib/inputs/number/index.js +31 -35
- package/lib/inputs/period/Dialog.js +16 -16
- package/lib/inputs/period/Dropdown.js +6 -1
- package/lib/inputs/period/PeriodList.js +41 -27
- package/lib/inputs/period/helper.js +5 -1
- package/lib/inputs/period/index.js +118 -240
- package/lib/inputs/search/index.js +95 -71
- package/lib/inputs/select/ActionButtons.js +24 -45
- package/lib/inputs/select/Dropdown.js +38 -87
- package/lib/inputs/select/helper.js +6 -2
- package/lib/inputs/select/index.js +23 -25
- package/lib/inputs/select/multiple/Selecteds.js +23 -19
- package/lib/inputs/select/multiple/index.js +35 -101
- package/lib/inputs/select/simple/index.js +26 -89
- package/lib/inputs/text/index.js +9 -4
- package/lib/inputs/textarea/index.js +13 -15
- package/lib/internals/withTooltip.js +114 -67
- package/lib/labelMessages/index.js +50 -45
- package/lib/labels/DangerLabel.js +18 -4
- package/lib/labels/DefaultLabel.js +53 -39
- package/lib/labels/InfoLabel.js +18 -4
- package/lib/labels/PrimaryLabel.js +18 -4
- package/lib/labels/SuccessLabel.js +18 -4
- package/lib/labels/WarningLabel.js +18 -4
- package/lib/labels/label_container/index.js +15 -9
- package/lib/list/Header.js +18 -6
- package/lib/list/Item.js +4 -3
- package/lib/list/Separator.js +8 -3
- package/lib/list/index.js +21 -18
- package/lib/menus/float/MenuItem.js +48 -51
- package/lib/menus/float/index.js +102 -81
- package/lib/menus/sidenav/ExpandMenu.js +17 -15
- package/lib/menus/sidenav/MenuLink.js +21 -14
- package/lib/menus/sidenav/NavMenuGroup.js +19 -14
- package/lib/menus/sidenav/NavMenuItem.js +131 -109
- package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
- package/lib/menus/sidenav/index.js +145 -123
- package/lib/menus/sidenav/popup_menu_search/EmptyList.js +21 -17
- package/lib/menus/sidenav/popup_menu_search/index.js +17 -51
- package/lib/noPermission/index.js +13 -8
- package/lib/panel/Content.js +48 -38
- package/lib/panel/DangerPanel.js +10 -5
- package/lib/panel/Default.js +62 -36
- package/lib/panel/Header.js +53 -37
- package/lib/panel/InfoPanel.js +10 -5
- package/lib/panel/PrimaryPanel.js +10 -5
- package/lib/panel/SuccessPanel.js +10 -5
- package/lib/panel/ToolBar.js +17 -4
- package/lib/panel/WarningPanel.js +10 -5
- package/lib/panel/helpers.js +4 -1
- package/lib/permissionValidations.js +5 -1
- package/lib/popover/PopoverText.js +12 -5
- package/lib/popover/PopoverTitle.js +10 -3
- package/lib/popover/index.js +36 -56
- package/lib/progress/Bar.js +43 -34
- package/lib/progress/index.js +23 -18
- package/lib/radio/index.js +105 -89
- package/lib/shortcuts/index.js +20 -7
- package/lib/skeleton/SkeletonContainer.js +16 -6
- package/lib/skeleton/index.js +42 -18
- package/lib/spinner/SpinnerLoading.js +53 -16
- package/lib/spinner/index.js +47 -37
- package/lib/split/Split.js +83 -79
- package/lib/split/SplitSide.js +24 -16
- package/lib/table/Body.js +36 -49
- package/lib/table/Header.js +45 -32
- package/lib/table/HeaderColumn.js +40 -27
- package/lib/table/Row.js +47 -48
- package/lib/table/RowColumn.js +50 -38
- package/lib/table/helpers.js +3 -1
- package/lib/table/index.js +101 -104
- package/lib/tabs/DropdownTabs.js +64 -61
- package/lib/tabs/Menu.js +35 -49
- package/lib/tabs/MenuTabs.js +59 -84
- package/lib/tabs/Panel.js +57 -46
- package/lib/tabs/context.js +11 -11
- package/lib/tabs/index.js +69 -64
- package/lib/tabs/tabHelpers.js +9 -7
- package/lib/textContent/index.js +30 -32
- package/lib/toolbar/ButtonBar.js +62 -58
- package/lib/toolbar/LabelBar.js +46 -38
- package/lib/toolbar/Separator.js +8 -3
- package/lib/toolbar/ToolBarGroup.js +14 -3
- package/lib/toolbar/index.js +35 -29
- package/lib/tooltip/index.js +1 -1
- package/lib/treetable/Body.js +25 -26
- package/lib/treetable/Header.js +22 -18
- package/lib/treetable/Row.js +210 -147
- package/lib/treetable/helpers.js +6 -14
- package/lib/treetable/index.js +25 -15
- package/lib/treeview/Header.js +13 -5
- package/lib/treeview/Node.js +198 -175
- package/lib/treeview/index.js +257 -174
- package/lib/uitour/index.js +167 -166
- package/package.json +11 -10
- package/lib/chunks/index.CM1aLH2W.js +0 -205
- 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 = {
|
|
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 {
|
|
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.
|
|
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), {
|
|
17
|
-
|
|
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: {
|
|
35
|
+
}), /* @__PURE__ */ s.jsxs(T.Provider, { value: {
|
|
36
|
+
...h
|
|
37
|
+
}, children: [
|
|
32
38
|
/* @__PURE__ */ s.jsx(B, { children: t }),
|
|
33
39
|
p
|
|
34
40
|
] });
|
package/lib/alerts/BaseAlert.js
CHANGED
|
@@ -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 = ({
|
|
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) {
|
package/lib/alerts/Message.js
CHANGED
|
@@ -1,67 +1,94 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
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
|
-
|
|
93
|
+
de as default
|
|
67
94
|
};
|
package/lib/alerts/withAlert.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import n from "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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
|
package/lib/avatar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as s } from "../chunks/jsx-runtime.
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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);
|
package/lib/badge/index.js
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
27
|
+
C as default
|
|
26
28
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
-
|
|
10
|
+
u as default
|
|
6
11
|
};
|
package/lib/buttons/AddButton.js
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
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
|
-
|
|
13
|
+
u as default
|
|
7
14
|
};
|
package/lib/buttons/Button.js
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
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
|
|
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
|
-
|
|
18
|
+
d as default
|
|
8
19
|
};
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
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
|
-
|
|
11
|
+
m as default
|
|
5
12
|
};
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
-
|
|
15
|
+
u as default
|
|
6
16
|
};
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
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
|
-
|
|
16
|
+
p as default
|
|
6
17
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as t } from "../chunks/jsx-runtime.
|
|
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, {
|
|
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 = {
|
|
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
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
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
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
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
|
-
|
|
22
|
+
j as default
|
|
7
23
|
};
|