linear-react-components-ui 1.1.26-beta-0 → 1.1.26-beta.10
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 +11 -5
- package/lib/alerts/BaseAlert.js +10 -8
- package/lib/alerts/Message.js +91 -64
- package/lib/alerts/withAlert.js +10 -6
- package/lib/assets/BaseAlert.css +1 -1
- package/lib/assets/Content.css +1 -1
- package/lib/assets/DefaultFile.css +1 -1
- package/lib/assets/Drawer.css +1 -1
- package/lib/assets/index11.css +1 -1
- package/lib/assets/index5.css +1 -1
- package/lib/avatar/index.js +29 -51
- 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 +76 -111
- 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 +11 -19
- package/lib/calendar/base/index.js +129 -97
- package/lib/checkbox/index.js +6 -5
- package/lib/chunks/compiler-runtime.Cu50tn6L.js +54 -0
- package/lib/chunks/{index.Da--18GT.js → index.Df3kt2LQ.js} +179 -181
- package/lib/chunks/index.aw0XaUkg.js +266 -0
- package/lib/chunks/jsx-runtime.D1SHvdVE.js +282 -0
- package/lib/chunks/lodash.CIAK_hAg.js +3684 -0
- package/lib/chunks/moment.DMLRxgRE.js +2589 -0
- package/lib/chunks/tabs.BvKfeA6Y.js +244 -0
- package/lib/chunks/v1.Ds1rkxUj.js +49 -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 +43 -59
- 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 +11 -10
- package/lib/dialog/wizard/progressbar.js +96 -3
- 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 +38 -35
- package/lib/drawer/Header.js +53 -40
- package/lib/drawer/helpers.js +2 -2
- package/lib/dropdown/Popup.js +4 -2
- 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 +18 -39
- package/lib/form/FieldNumber.js +42 -38
- package/lib/form/FieldPeriod.js +90 -59
- package/lib/form/helpers.js +14 -11
- package/lib/form/index.js +88 -100
- package/lib/form/withFieldHOC.js +57 -48
- package/lib/form/withFormSecurity.js +15 -18
- 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 +62 -57
- package/lib/index.js +20 -19
- package/lib/inputs/base/InputTextBase.js +121 -207
- package/lib/inputs/base/Label.js +27 -29
- package/lib/inputs/base/helpers.d.ts +3 -3
- package/lib/inputs/base/helpers.js +4 -2
- package/lib/inputs/color/index.js +52 -73
- package/lib/inputs/date/Dialog.js +15 -16
- package/lib/inputs/date/Dropdown.js +16 -14
- package/lib/inputs/date/helpers.js +7 -7
- package/lib/inputs/date/index.js +101 -147
- package/lib/inputs/errorMessage/index.js +21 -13
- package/lib/inputs/file/DefaultFile.js +64 -67
- package/lib/inputs/file/DragDropFile.js +79 -135
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +24 -39
- package/lib/inputs/file/FileButtonSettings.js +20 -17
- package/lib/inputs/inputHOC.js +38 -20
- package/lib/inputs/mask/BaseMask.js +51 -30
- 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/mask/helpers.d.ts +33 -33
- package/lib/inputs/mask/helpers.js +44 -44
- package/lib/inputs/multiSelect/ActionButtons.js +35 -46
- package/lib/inputs/multiSelect/Dropdown.js +94 -133
- package/lib/inputs/multiSelect/helper.js +4 -7
- package/lib/inputs/multiSelect/index.js +167 -127
- 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 +15 -15
- package/lib/inputs/period/PeriodList.js +41 -27
- package/lib/inputs/period/helper.js +8 -4
- package/lib/inputs/period/index.js +192 -330
- package/lib/inputs/search/index.js +95 -71
- package/lib/inputs/select/ActionButtons.js +24 -45
- package/lib/inputs/select/Dropdown.js +61 -110
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/helper.js +43 -45
- package/lib/inputs/select/index.js +23 -25
- package/lib/inputs/select/multiple/Selecteds.js +23 -19
- package/lib/inputs/select/multiple/index.js +106 -176
- package/lib/inputs/select/simple/index.js +126 -196
- 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 +5 -4
- package/lib/list/Separator.js +8 -3
- package/lib/list/helpers.js +2 -2
- package/lib/list/index.js +21 -18
- package/lib/menus/float/MenuItem.js +49 -52
- package/lib/menus/float/SubMenuContainer.d.ts +10 -10
- 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 -111
- package/lib/menus/sidenav/NavSubMenuItem.js +36 -20
- package/lib/menus/sidenav/helpers.js +4 -4
- 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 +49 -40
- 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 +8 -5
- package/lib/permissionValidations.js +15 -11
- 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 -35
- 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 -47
- package/lib/tabs/context.js +36 -40
- package/lib/tabs/index.js +69 -64
- package/lib/tabs/tabHelpers.js +10 -8
- 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 +24 -24
- package/lib/treetable/Body.js +26 -27
- package/lib/treetable/Header.js +23 -19
- package/lib/treetable/Row.js +210 -147
- package/lib/treetable/helpers.d.ts +4 -5
- 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 +32 -43
- package/lib/chunks/index.CmrLK9Qe.js +0 -675
- package/lib/chunks/index.D5f6Ow9V.js +0 -89
- package/lib/chunks/index.yztgndLc.js +0 -206
- package/lib/chunks/jsx-runtime.CYK1ROHF.js +0 -445
- package/lib/chunks/tabs.Cvj2MJH6.js +0 -246
- package/lib/chunks/v1.CDXKvGzE.js +0 -41
- /package/lib/assets/{index29.css → progressbar.css} +0 -0
package/lib/avatar/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
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";
|
|
5
5
|
import '../assets/index10.css';const R = ({
|
|
6
6
|
className: t,
|
|
7
7
|
square: r,
|
|
8
|
-
disabled:
|
|
9
|
-
size:
|
|
10
|
-
}) => `avatar-component ${t}${
|
|
11
|
-
${r && "-square"} ${
|
|
8
|
+
disabled: e,
|
|
9
|
+
size: o = "default"
|
|
10
|
+
}) => `avatar-component ${t}${e && "-disabled"}
|
|
11
|
+
${r && "-square"} ${o && `-${o}`}`, y = (t, r) => r || (t ? /* @__PURE__ */ s.jsx(b, { name: t, size: 16 }) : null), A = (t) => {
|
|
12
12
|
const {
|
|
13
13
|
width: r,
|
|
14
|
-
height:
|
|
15
|
-
onClick:
|
|
14
|
+
height: e,
|
|
15
|
+
onClick: o,
|
|
16
16
|
color: $,
|
|
17
17
|
iconName: l,
|
|
18
18
|
icon: c,
|
|
@@ -22,54 +22,32 @@ import '../assets/index10.css';const R = ({
|
|
|
22
22
|
targetRef: d,
|
|
23
23
|
label: g,
|
|
24
24
|
dropdown: i,
|
|
25
|
-
showDropdown:
|
|
26
|
-
getDropdownPopup:
|
|
25
|
+
showDropdown: m,
|
|
26
|
+
getDropdownPopup: u,
|
|
27
27
|
style: w,
|
|
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
|
-
|
|
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: `${o}`
|
|
63
|
-
},
|
|
64
|
-
src: n,
|
|
65
|
-
alt: h
|
|
66
|
-
}
|
|
67
|
-
),
|
|
68
|
-
g
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
i && m && m(f.current)
|
|
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
|
+
] }),
|
|
50
|
+
i && u && u(f.current)
|
|
73
51
|
] });
|
|
74
52
|
}, P = C(A);
|
|
75
53
|
export {
|
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,130 +1,95 @@
|
|
|
1
|
-
import { j as t } from "../chunks/jsx-runtime.
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
1
|
+
import { j as t } from "../chunks/jsx-runtime.D1SHvdVE.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
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { actionsOnPermissionDenied as
|
|
9
|
-
const
|
|
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:
|
|
12
|
-
disabled:
|
|
11
|
+
onClick: s,
|
|
12
|
+
disabled: D,
|
|
13
13
|
iconName: f,
|
|
14
14
|
icon: r,
|
|
15
|
-
targetRef:
|
|
16
|
-
tabIndex:
|
|
17
|
-
isLoading:
|
|
18
|
-
label:
|
|
15
|
+
targetRef: b,
|
|
16
|
+
tabIndex: g,
|
|
17
|
+
isLoading: O,
|
|
18
|
+
label: S,
|
|
19
19
|
showDropdown: l,
|
|
20
|
-
getDropdownPopup:
|
|
21
|
-
isDropdownOpened:
|
|
22
|
-
showIconDropdown:
|
|
23
|
-
content:
|
|
24
|
-
style:
|
|
20
|
+
getDropdownPopup: j,
|
|
21
|
+
isDropdownOpened: T,
|
|
22
|
+
showIconDropdown: _ = !0,
|
|
23
|
+
content: C,
|
|
24
|
+
style: F,
|
|
25
25
|
toggleable: m,
|
|
26
|
-
activeIconColor:
|
|
27
|
-
iconStyle:
|
|
28
|
-
visible:
|
|
29
|
-
customClass:
|
|
30
|
-
className:
|
|
31
|
-
size:
|
|
32
|
-
iconAlign:
|
|
33
|
-
boxShadow:
|
|
34
|
-
transparent:
|
|
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:
|
|
37
|
-
skeletonize:
|
|
38
|
-
errorMessage:
|
|
39
|
-
isFloatMenu:
|
|
40
|
-
dropdownAlign:
|
|
41
|
-
customClassForDropdown:
|
|
36
|
+
permissionAttr: R,
|
|
37
|
+
skeletonize: W,
|
|
38
|
+
errorMessage: re,
|
|
39
|
+
isFloatMenu: le,
|
|
40
|
+
dropdownAlign: ue,
|
|
41
|
+
customClassForDropdown: ae,
|
|
42
42
|
buttonRef: d,
|
|
43
|
-
handlerClose:
|
|
44
|
-
onDeniedText:
|
|
45
|
-
tooltip:
|
|
46
|
-
tooltipWidth:
|
|
47
|
-
tooltipPosition:
|
|
48
|
-
...
|
|
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
|
|
51
|
-
|
|
52
|
-
|
|
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}
|
|
53
|
+
${z}
|
|
54
|
+
${K && "-transparent"}
|
|
53
55
|
${o && "-disabled"}
|
|
54
|
-
${
|
|
56
|
+
${y && `-${y}`}
|
|
55
57
|
${n && !p && "icon-right"}
|
|
56
58
|
${n && p && "icon-center"}
|
|
57
|
-
${
|
|
58
|
-
${
|
|
59
|
-
${p && "-round"}`,
|
|
60
|
-
|
|
61
|
-
{
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
style: e
|
|
59
|
+
${E && !n && `icon-${E}`}
|
|
60
|
+
${M ? "" : "-shadowsdisabled"}
|
|
61
|
+
${p && "-round"}`, I = (e) => /* @__PURE__ */ t.jsx(c, { name: "padlock", size: 16, pointerEvents: "none", color: x, style: e }), Q = () => {
|
|
62
|
+
let e = N;
|
|
63
|
+
if (o && (e = {
|
|
64
|
+
...e,
|
|
65
|
+
fill: x
|
|
66
|
+
}), n && _) {
|
|
67
|
+
const U = f || (T ? "mini_up" : "mini_down");
|
|
68
|
+
return /* @__PURE__ */ t.jsx(c, { name: U, size: 16, customClass: "dropdown-icon", pointerEvents: "none", style: e });
|
|
67
69
|
}
|
|
68
|
-
|
|
69
|
-
let e = k;
|
|
70
|
-
if (o && (e = { ...e, fill: x }), n && C) {
|
|
71
|
-
const V = f || (B ? "mini_up" : "mini_down");
|
|
72
|
-
return /* @__PURE__ */ t.jsx(
|
|
73
|
-
c,
|
|
74
|
-
{
|
|
75
|
-
name: V,
|
|
76
|
-
size: 16,
|
|
77
|
-
customClass: "dropdown-icon",
|
|
78
|
-
pointerEvents: "none",
|
|
79
|
-
style: e
|
|
80
|
-
}
|
|
81
|
-
);
|
|
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(
|
|
84
|
-
c,
|
|
85
|
-
{
|
|
86
|
-
name: f,
|
|
87
|
-
size: 16,
|
|
88
|
-
color: m && y && u && y || "#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
|
-
return
|
|
95
|
-
a &&
|
|
96
|
-
}, [a]), !
|
|
97
|
-
/* @__PURE__ */ t.jsxs(
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
style: N,
|
|
102
|
-
onKeyDown: (e) => {
|
|
103
|
-
var D;
|
|
104
|
-
if (e && (e.key === "Enter" || e.key === " ")) {
|
|
105
|
-
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);
|
|
107
|
-
}
|
|
108
|
-
},
|
|
109
|
-
onClick: (e) => {
|
|
110
|
-
e.preventDefault(), !o && (i && i(e), n && l && l(), i && m && I(!u));
|
|
111
|
-
},
|
|
112
|
-
className: `${Q()} ${u ? "-toggleable" : ""} ${q ? "-skeletonized" : ""}`,
|
|
113
|
-
ref: (e) => {
|
|
114
|
-
d && (ee.isFunction(d) ? d(e) : s.current = e), j && j(e), s.current = e;
|
|
115
|
-
},
|
|
116
|
-
tabIndex: o ? -1 : S,
|
|
117
|
-
children: [
|
|
118
|
-
F,
|
|
119
|
-
U(),
|
|
120
|
-
_ || "",
|
|
121
|
-
T && /* @__PURE__ */ t.jsx("div", { className: "spinnercontainer", children: /* @__PURE__ */ t.jsx(se, { align: "none", delayTime: 0 }) })
|
|
122
|
-
]
|
|
72
|
+
return Y(() => {
|
|
73
|
+
a && J(q);
|
|
74
|
+
}, [a]), !k || $.unvisible ? null : /* @__PURE__ */ t.jsxs(Z, { children: [
|
|
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);
|
|
123
79
|
}
|
|
124
|
-
)
|
|
125
|
-
|
|
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
|
+
] }),
|
|
90
|
+
n && i.current && j && j(i.current)
|
|
126
91
|
] });
|
|
127
|
-
}, he =
|
|
92
|
+
}, he = se(ee(oe));
|
|
128
93
|
export {
|
|
129
94
|
he as default
|
|
130
95
|
};
|
|
@@ -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
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as i } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import r from "./Button.js";
|
|
4
|
+
const u = (e) => {
|
|
5
|
+
const t = m.c(2);
|
|
6
|
+
let o;
|
|
7
|
+
return t[0] !== e ? (o = /* @__PURE__ */ i.jsx(r, { ...e, iconName: "pencil" }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
8
|
+
};
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
u as default
|
|
6
11
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as i } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import r from "./Button.js";
|
|
4
|
+
const a = (e) => {
|
|
5
|
+
const t = m.c(2);
|
|
6
|
+
let o;
|
|
7
|
+
return t[0] !== e ? (o = /* @__PURE__ */ i.jsx(r, { ...e, iconName: "minusCircle" }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
8
|
+
};
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
a as default
|
|
6
11
|
};
|
|
@@ -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 i } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import l from "./Button.js";
|
|
4
|
+
const p = (r) => {
|
|
5
|
+
const t = i.c(6);
|
|
6
|
+
let s, o;
|
|
7
|
+
t[0] !== r ? ({
|
|
8
|
+
customClass: s,
|
|
9
|
+
...o
|
|
10
|
+
} = r, t[0] = r, t[1] = s, t[2] = o) : (s = t[1], o = t[2]);
|
|
11
|
+
const m = `-info ${s}`;
|
|
12
|
+
let e;
|
|
13
|
+
return t[3] !== o || t[4] !== m ? (e = /* @__PURE__ */ n.jsx(l, { customClass: m, ...o }), t[3] = o, t[4] = m, t[5] = e) : e = t[5], e;
|
|
14
|
+
};
|
|
4
15
|
export {
|
|
5
|
-
|
|
16
|
+
p as default
|
|
6
17
|
};
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as i } 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 u = (e) => {
|
|
5
|
+
const t = l.c(6);
|
|
6
|
+
let o, s;
|
|
7
|
+
t[0] !== e ? ({
|
|
8
|
+
customClass: o,
|
|
9
|
+
...s
|
|
10
|
+
} = e, t[0] = e, t[1] = o, t[2] = s) : (o = t[1], s = t[2]);
|
|
11
|
+
const m = `-primary ${o}`;
|
|
12
|
+
let r;
|
|
13
|
+
return t[3] !== s || t[4] !== m ? (r = /* @__PURE__ */ i.jsx(a, { customClass: m, ...s }), t[3] = s, t[4] = m, t[5] = r) : r = t[5], r;
|
|
14
|
+
};
|
|
4
15
|
export {
|
|
5
|
-
|
|
16
|
+
u as default
|
|
6
17
|
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import n from "./Button.js";
|
|
4
|
+
const c = (e) => {
|
|
5
|
+
const t = m.c(2);
|
|
6
|
+
let o;
|
|
7
|
+
return t[0] !== e ? (o = /* @__PURE__ */ r.jsx(n, { ...e, iconName: "undo" }), t[0] = e, t[1] = o) : o = t[1], o;
|
|
8
|
+
};
|
|
4
9
|
export {
|
|
5
|
-
|
|
10
|
+
c as default
|
|
6
11
|
};
|
|
@@ -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 i } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import l from "./PrimaryButton.js";
|
|
4
|
+
const u = (s) => {
|
|
5
|
+
const t = i.c(6);
|
|
6
|
+
let e, o;
|
|
7
|
+
t[0] !== s ? ({
|
|
8
|
+
customClass: e,
|
|
9
|
+
...o
|
|
10
|
+
} = s, t[0] = s, t[1] = e, t[2] = o) : (e = t[1], o = t[2]);
|
|
11
|
+
let r;
|
|
12
|
+
return t[3] !== e || t[4] !== o ? (r = /* @__PURE__ */ m.jsx(l, { customClass: e, ...o }), t[3] = e, t[4] = o, t[5] = r) : r = t[5], r;
|
|
13
|
+
};
|
|
4
14
|
export {
|
|
5
|
-
|
|
15
|
+
u as default
|
|
6
16
|
};
|