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
package/lib/labels/InfoLabel.js
CHANGED
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as m } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as a } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import l from "./DefaultLabel.js";
|
|
4
|
+
const p = (o) => {
|
|
5
|
+
const e = a.c(4);
|
|
6
|
+
let s;
|
|
7
|
+
if (e[0] !== o) {
|
|
8
|
+
const {
|
|
9
|
+
className: i,
|
|
10
|
+
...r
|
|
11
|
+
} = o;
|
|
12
|
+
s = r, e[0] = o, e[1] = s;
|
|
13
|
+
} else
|
|
14
|
+
s = e[1];
|
|
15
|
+
let t;
|
|
16
|
+
return e[2] !== s ? (t = /* @__PURE__ */ m.jsx(l, { className: "-info", ...s }), e[2] = s, e[3] = t) : t = e[3], t;
|
|
17
|
+
};
|
|
4
18
|
export {
|
|
5
|
-
|
|
19
|
+
p as default
|
|
6
20
|
};
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as o } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as a } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import i from "./DefaultLabel.js";
|
|
4
|
+
const n = (t) => {
|
|
5
|
+
const e = a.c(4);
|
|
6
|
+
let r;
|
|
7
|
+
if (e[0] !== t) {
|
|
8
|
+
const {
|
|
9
|
+
className: l,
|
|
10
|
+
...m
|
|
11
|
+
} = t;
|
|
12
|
+
r = m, e[0] = t, e[1] = r;
|
|
13
|
+
} else
|
|
14
|
+
r = e[1];
|
|
15
|
+
let s;
|
|
16
|
+
return e[2] !== r ? (s = /* @__PURE__ */ o.jsx(i, { className: "-primary", ...r }), e[2] = r, e[3] = s) : s = e[3], s;
|
|
17
|
+
};
|
|
4
18
|
export {
|
|
5
|
-
|
|
19
|
+
n as default
|
|
6
20
|
};
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as c } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import a from "./DefaultLabel.js";
|
|
4
|
+
const n = (o) => {
|
|
5
|
+
const s = m.c(4);
|
|
6
|
+
let e;
|
|
7
|
+
if (s[0] !== o) {
|
|
8
|
+
const {
|
|
9
|
+
className: l,
|
|
10
|
+
...r
|
|
11
|
+
} = o;
|
|
12
|
+
e = r, s[0] = o, s[1] = e;
|
|
13
|
+
} else
|
|
14
|
+
e = s[1];
|
|
15
|
+
let t;
|
|
16
|
+
return s[2] !== e ? (t = /* @__PURE__ */ c.jsx(a, { className: "-success", ...e }), s[2] = e, s[3] = t) : t = s[3], t;
|
|
17
|
+
};
|
|
4
18
|
export {
|
|
5
|
-
|
|
19
|
+
n as default
|
|
6
20
|
};
|
|
@@ -1,6 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { j as a } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import i from "./DefaultLabel.js";
|
|
4
|
+
const f = (r) => {
|
|
5
|
+
const e = m.c(4);
|
|
6
|
+
let s;
|
|
7
|
+
if (e[0] !== r) {
|
|
8
|
+
const {
|
|
9
|
+
className: l,
|
|
10
|
+
...o
|
|
11
|
+
} = r;
|
|
12
|
+
s = o, e[0] = r, e[1] = s;
|
|
13
|
+
} else
|
|
14
|
+
s = e[1];
|
|
15
|
+
let t;
|
|
16
|
+
return e[2] !== s ? (t = /* @__PURE__ */ a.jsx(i, { className: "-warning", ...s }), e[2] = s, e[3] = t) : t = e[3], t;
|
|
17
|
+
};
|
|
4
18
|
export {
|
|
5
|
-
|
|
19
|
+
f as default
|
|
6
20
|
};
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
{
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { j as a } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const u = (r) => {
|
|
4
|
+
const t = m.c(6), {
|
|
5
|
+
customClass: c,
|
|
6
|
+
position: n,
|
|
7
7
|
children: e
|
|
8
|
-
}
|
|
9
|
-
|
|
8
|
+
} = r, i = n === void 0 ? "left" : n, l = `lbl-container ${c}`;
|
|
9
|
+
let o;
|
|
10
|
+
t[0] !== i ? (o = {
|
|
11
|
+
float: i
|
|
12
|
+
}, t[0] = i, t[1] = o) : o = t[1];
|
|
13
|
+
let s;
|
|
14
|
+
return t[2] !== e || t[3] !== l || t[4] !== o ? (s = /* @__PURE__ */ a.jsx("div", { className: l, style: o, children: e }), t[2] = e, t[3] = l, t[4] = o, t[5] = s) : s = t[5], s;
|
|
15
|
+
};
|
|
10
16
|
export {
|
|
11
|
-
|
|
17
|
+
u as default
|
|
12
18
|
};
|
package/lib/list/Header.js
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as o } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as n } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const x = (a) => {
|
|
4
|
+
const t = n.c(7), {
|
|
5
|
+
title: l,
|
|
6
|
+
children: r,
|
|
7
|
+
style: i,
|
|
8
|
+
customClass: m
|
|
9
|
+
} = a, c = `list-header ${m}`;
|
|
10
|
+
let e;
|
|
11
|
+
t[0] !== l ? (e = /* @__PURE__ */ o.jsx("h1", { className: "title", children: l }), t[0] = l, t[1] = e) : e = t[1];
|
|
12
|
+
let s;
|
|
13
|
+
return t[2] !== r || t[3] !== i || t[4] !== c || t[5] !== e ? (s = /* @__PURE__ */ o.jsxs("li", { className: c, style: i, children: [
|
|
14
|
+
e,
|
|
15
|
+
r
|
|
16
|
+
] }), t[2] = r, t[3] = i, t[4] = c, t[5] = e, t[6] = s) : s = t[6], s;
|
|
17
|
+
};
|
|
6
18
|
export {
|
|
7
|
-
|
|
19
|
+
x as default
|
|
8
20
|
};
|
package/lib/list/Item.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import "../chunks/jsx-runtime.
|
|
1
|
+
import "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
2
|
import "react";
|
|
3
|
+
import "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
4
|
import "react-router-dom";
|
|
4
5
|
import "../icons/index.js";
|
|
5
|
-
import { L as
|
|
6
|
+
import { L as u } from "../chunks/tabs.BvKfeA6Y.js";
|
|
6
7
|
import "./helpers.js";
|
|
7
8
|
import "../dropdown/withDropdown.js";
|
|
8
9
|
import "../internals/constants.js";
|
|
9
10
|
import "../internals/withTooltip.js";
|
|
10
11
|
import "../permissionValidations.js";
|
|
11
12
|
export {
|
|
12
|
-
|
|
13
|
+
u as default
|
|
13
14
|
};
|
package/lib/list/Separator.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
1
|
+
import { j as r } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as o } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const m = () => {
|
|
4
|
+
const e = o.c(1);
|
|
5
|
+
let t;
|
|
6
|
+
return e[0] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ r.jsx("li", { className: "list-separator" }), e[0] = t) : t = e[0], t;
|
|
7
|
+
};
|
|
3
8
|
export {
|
|
4
|
-
|
|
9
|
+
m as default
|
|
5
10
|
};
|
package/lib/list/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { j as l } from "../chunks/jsx-runtime.
|
|
1
|
+
import { j as l } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
2
|
import { useRef as R, useState as h, useEffect as f, Fragment as S } from "react";
|
|
3
3
|
import { default as q } from "./Header.js";
|
|
4
|
-
import { L as
|
|
4
|
+
import { L as _ } from "../chunks/tabs.BvKfeA6Y.js";
|
|
5
5
|
import { keyCodes as m } from "../internals/constants.js";
|
|
6
6
|
import { default as J } from "./Separator.js";
|
|
7
7
|
import { LIST_ITEMS_TYPES as O, ListContext as b } from "./helpers.js";
|
|
@@ -50,8 +50,12 @@ const K = (u) => {
|
|
|
50
50
|
return null;
|
|
51
51
|
}, y = (e = 1) => {
|
|
52
52
|
const a = e > I ? 2 : Math.floor(I / e), A = Array.from(Array(a).keys());
|
|
53
|
-
return /* @__PURE__ */ l.jsx("div", { className: "skeleton-transparency", children: A.map((
|
|
54
|
-
|
|
53
|
+
return /* @__PURE__ */ l.jsx("div", { className: "skeleton-transparency", children: A.map((P) => /* @__PURE__ */ l.jsx(_, { hovered: !1, style: {
|
|
54
|
+
pointerEvents: "none"
|
|
55
|
+
}, children: /* @__PURE__ */ l.jsx(D, { height: W, style: {
|
|
56
|
+
margin: "6px 0"
|
|
57
|
+
} }) }, P)) });
|
|
58
|
+
}, B = (e) => e ? Array.isArray(e) && e.length > 0 ? e.map((n) => /* @__PURE__ */ l.jsxs(S, { children: [
|
|
55
59
|
n,
|
|
56
60
|
y(e.length)
|
|
57
61
|
] }, n.props.title)) : /* @__PURE__ */ l.jsxs(S, { children: [
|
|
@@ -61,7 +65,15 @@ const K = (u) => {
|
|
|
61
65
|
return f(() => {
|
|
62
66
|
if (i.current && r.current && r.current.scroll) {
|
|
63
67
|
const e = i.current.getBoundingClientRect(), n = r.current.getBoundingClientRect();
|
|
64
|
-
e.top - e.height > n.bottom ? r.current.scroll({
|
|
68
|
+
e.top - e.height > n.bottom ? r.current.scroll({
|
|
69
|
+
top: e.top
|
|
70
|
+
}) : e.top + e.height - n.y >= n.height ? r.current.scroll({
|
|
71
|
+
top: r.current.scrollTop + e.height
|
|
72
|
+
}) : e.bottom < 100 ? r.current.scroll({
|
|
73
|
+
top: 0
|
|
74
|
+
}) : r.current.scroll({
|
|
75
|
+
top: r.current.scrollTop - e.height
|
|
76
|
+
});
|
|
65
77
|
}
|
|
66
78
|
}, [i.current]), f(() => (c || document.addEventListener("keydown", k), () => {
|
|
67
79
|
document.removeEventListener("keydown", k);
|
|
@@ -78,24 +90,15 @@ const K = (u) => {
|
|
|
78
90
|
}, [t]), f(() => {
|
|
79
91
|
if (c) {
|
|
80
92
|
let e = null;
|
|
81
|
-
Array.isArray(t) && t.length > 0 ? e = t.filter((a) => a.type && typeof a.type != "string" && a.type.name === O.listHeader) : Array.isArray(t) || (e = t.type && typeof t.type != "string" && t.type.name === O.listHeader ? t : null), x(
|
|
93
|
+
Array.isArray(t) && t.length > 0 ? e = t.filter((a) => a.type && typeof a.type != "string" && a.type.name === O.listHeader) : Array.isArray(t) || (e = t.type && typeof t.type != "string" && t.type.name === O.listHeader ? t : null), x(B(e));
|
|
82
94
|
} else
|
|
83
95
|
x(t);
|
|
84
|
-
}, [c, t]), /* @__PURE__ */ l.jsx(b.Provider, { value: N, children: /* @__PURE__ */ l.jsx(
|
|
85
|
-
|
|
86
|
-
{
|
|
87
|
-
"data-testid": "list-component",
|
|
88
|
-
style: v,
|
|
89
|
-
ref: r,
|
|
90
|
-
className: `list-component ${L && "-condensed"}
|
|
91
|
-
${E} ${!j && "-listbackground"}`,
|
|
92
|
-
children: w
|
|
93
|
-
}
|
|
94
|
-
) });
|
|
96
|
+
}, [c, t]), /* @__PURE__ */ l.jsx(b.Provider, { value: N, children: /* @__PURE__ */ l.jsx("ul", { "data-testid": "list-component", style: v, ref: r, className: `list-component ${L && "-condensed"}
|
|
97
|
+
${E} ${!j && "-listbackground"}`, children: w }) });
|
|
95
98
|
};
|
|
96
99
|
export {
|
|
97
100
|
q as ListHeader,
|
|
98
|
-
|
|
101
|
+
_ as ListItem,
|
|
99
102
|
J as ListSeparator,
|
|
100
103
|
K as default
|
|
101
104
|
};
|
|
@@ -1,58 +1,55 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { j as t } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as I } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useContext as v } from "react";
|
|
4
|
+
import { _ as M } from "../../chunks/lodash.CIAK_hAg.js";
|
|
5
|
+
import y from "../../icons/index.js";
|
|
6
|
+
import { WithDropdownContext as E } from "../../dropdown/withDropdown.js";
|
|
7
|
+
import S from "../../buttons/Button.js";
|
|
7
8
|
import '../../assets/button.css';/* empty css */
|
|
8
|
-
import
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
import b from "./helpers.js";
|
|
10
|
+
const A = (z) => {
|
|
11
|
+
const o = I.c(24), {
|
|
12
|
+
title: p,
|
|
13
|
+
url: f,
|
|
14
|
+
iconName: u,
|
|
15
|
+
iconColor: N,
|
|
16
|
+
iconSize: k,
|
|
17
|
+
dropdownMenu: c,
|
|
18
|
+
onClick: e
|
|
19
|
+
} = z, x = N === void 0 ? "gray" : N, C = k === void 0 ? 24 : k, {
|
|
20
|
+
customClassMenuItem: D
|
|
21
|
+
} = v(b), m = v(E);
|
|
22
|
+
let a;
|
|
23
|
+
o[0] !== m || o[1] !== e ? (a = () => {
|
|
19
24
|
if (e) {
|
|
20
|
-
e(
|
|
25
|
+
e(m?.handleDropdownClose);
|
|
21
26
|
return;
|
|
22
27
|
}
|
|
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
|
-
rel: "noreferrer",
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ o.jsx("span", { className: "iconcontainer", children: /* @__PURE__ */ o.jsx(u, { name: a, size: l, color: i, customClass: "iconmenu" }) }),
|
|
50
|
-
/* @__PURE__ */ o.jsx("span", { className: "nameitem", children: n })
|
|
51
|
-
]
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
] }) });
|
|
28
|
+
m && m.handleDropdownClose();
|
|
29
|
+
}, o[0] = m, o[1] = e, o[2] = a) : a = o[2];
|
|
30
|
+
const h = a, w = `${D} -items`;
|
|
31
|
+
let n;
|
|
32
|
+
o[3] !== c || o[4] !== e ? (n = !M.isEmpty(c) && !e && /* @__PURE__ */ t.jsx(S, { customClass: "floatmenudropdown", iconName: "more1", transparent: !0, size: "medium", boxShadow: !1, dropdown: !0, showIconDropdown: !1, children: c }), o[3] = c, o[4] = e, o[5] = n) : n = o[5];
|
|
33
|
+
const j = e ? "pointer" : void 0;
|
|
34
|
+
let s;
|
|
35
|
+
o[6] !== j ? (s = {
|
|
36
|
+
cursor: j
|
|
37
|
+
}, o[6] = j, o[7] = s) : s = o[7];
|
|
38
|
+
let r;
|
|
39
|
+
o[8] !== x || o[9] !== u || o[10] !== C ? (r = /* @__PURE__ */ t.jsx("span", { className: "iconcontainer", children: /* @__PURE__ */ t.jsx(y, { name: u, size: C, color: x, customClass: "iconmenu" }) }), o[8] = x, o[9] = u, o[10] = C, o[11] = r) : r = o[11];
|
|
40
|
+
let i;
|
|
41
|
+
o[12] !== p ? (i = /* @__PURE__ */ t.jsx("span", { className: "nameitem", children: p }), o[12] = p, o[13] = i) : i = o[13];
|
|
42
|
+
let l;
|
|
43
|
+
o[14] !== h || o[15] !== s || o[16] !== r || o[17] !== i || o[18] !== f ? (l = /* @__PURE__ */ t.jsxs("a", { className: "floatmenulink", target: "_blank", onClick: h, href: f, style: s, rel: "noreferrer", children: [
|
|
44
|
+
r,
|
|
45
|
+
i
|
|
46
|
+
] }), o[14] = h, o[15] = s, o[16] = r, o[17] = i, o[18] = f, o[19] = l) : l = o[19];
|
|
47
|
+
let d;
|
|
48
|
+
return o[20] !== l || o[21] !== w || o[22] !== n ? (d = /* @__PURE__ */ t.jsx("div", { className: "floatmenuitem", children: /* @__PURE__ */ t.jsxs("div", { className: w, children: [
|
|
49
|
+
n,
|
|
50
|
+
l
|
|
51
|
+
] }) }), o[20] = l, o[21] = w, o[22] = n, o[23] = d) : d = o[23], d;
|
|
55
52
|
};
|
|
56
53
|
export {
|
|
57
|
-
|
|
54
|
+
A as default
|
|
58
55
|
};
|
package/lib/menus/float/index.js
CHANGED
|
@@ -1,92 +1,113 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { j as o } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as y } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { default as K } from "./MenuItem.js";
|
|
4
|
+
import { useEffect as z } from "react";
|
|
5
|
+
import { P as b } from "../../chunks/index.Df3kt2LQ.js";
|
|
6
|
+
import S from "../../icons/index.js";
|
|
7
|
+
import M from "../../skeleton/index.js";
|
|
8
|
+
import B from "../../skeleton/SkeletonContainer.js";
|
|
9
|
+
import F from "../../buttons/Button.js";
|
|
9
10
|
import '../../assets/button.css';import '../../assets/index28.css';/* empty css */
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
},
|
|
25
|
-
n
|
|
26
|
-
)) });
|
|
11
|
+
import I from "../../spinner/index.js";
|
|
12
|
+
import _ from "./helpers.js";
|
|
13
|
+
const E = (k, e, f) => {
|
|
14
|
+
if (k && e) {
|
|
15
|
+
const j = Array.from({
|
|
16
|
+
length: e
|
|
17
|
+
}, (s, u) => u + 1);
|
|
18
|
+
return /* @__PURE__ */ o.jsx(B, { style: {
|
|
19
|
+
flexDirection: "row",
|
|
20
|
+
flexFlow: "row wrap"
|
|
21
|
+
}, children: j.map((s) => /* @__PURE__ */ o.jsx(M, { height: 88, width: 88, style: {
|
|
22
|
+
flexGrow: "unset",
|
|
23
|
+
marginBottom: 5
|
|
24
|
+
} }, s)) });
|
|
27
25
|
}
|
|
28
|
-
return
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
26
|
+
return f;
|
|
27
|
+
}, g = (k) => {
|
|
28
|
+
const e = y.c(21), {
|
|
29
|
+
title: f,
|
|
30
|
+
customClass: j,
|
|
31
|
+
handlerGoBack: s,
|
|
32
|
+
skeletonize: u,
|
|
33
|
+
skeletonQtty: r,
|
|
34
|
+
children: i
|
|
35
|
+
} = k;
|
|
36
|
+
let p;
|
|
37
|
+
e[0] !== s ? (p = () => () => {
|
|
38
|
+
s();
|
|
39
|
+
}, e[0] = s, e[1] = p) : p = e[1];
|
|
40
|
+
let x;
|
|
41
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (x = [], e[2] = x) : x = e[2], z(p, x);
|
|
42
|
+
const h = `floatsubmenu ${j}`;
|
|
43
|
+
let d;
|
|
44
|
+
e[3] === Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
45
|
+
cursor: "pointer"
|
|
46
|
+
}, e[3] = d) : d = e[3];
|
|
47
|
+
let c;
|
|
48
|
+
e[4] !== s ? (c = /* @__PURE__ */ o.jsx(S, { onClick: s, name: "arrowBack", pointerEvents: "all", style: d }), e[4] = s, e[5] = c) : c = e[5];
|
|
49
|
+
let n;
|
|
50
|
+
e[6] !== f ? (n = f && /* @__PURE__ */ o.jsx("span", { children: f }), e[6] = f, e[7] = n) : n = e[7];
|
|
51
|
+
let a;
|
|
52
|
+
e[8] !== c || e[9] !== n ? (a = /* @__PURE__ */ o.jsxs("div", { className: "submenuheader", children: [
|
|
53
|
+
c,
|
|
54
|
+
n
|
|
55
|
+
] }), e[8] = c, e[9] = n, e[10] = a) : a = e[10];
|
|
56
|
+
let m;
|
|
57
|
+
e[11] !== i || e[12] !== r || e[13] !== u ? (m = E(u, r, i), e[11] = i, e[12] = r, e[13] = u, e[14] = m) : m = e[14];
|
|
58
|
+
let t;
|
|
59
|
+
e[15] !== m ? (t = /* @__PURE__ */ o.jsx("div", { className: "submenucontent", children: m }), e[15] = m, e[16] = t) : t = e[16];
|
|
60
|
+
let l;
|
|
61
|
+
return e[17] !== h || e[18] !== a || e[19] !== t ? (l = /* @__PURE__ */ o.jsxs("div", { className: h, children: [
|
|
62
|
+
a,
|
|
63
|
+
t
|
|
64
|
+
] }), e[17] = h, e[18] = a, e[19] = t, e[20] = l) : l = e[20], l;
|
|
52
65
|
};
|
|
53
|
-
|
|
66
|
+
g.propTypes = {
|
|
67
|
+
children: b.node.isRequired,
|
|
68
|
+
handlerGoBack: b.func.isRequired,
|
|
69
|
+
title: b.string,
|
|
70
|
+
customClass: b.string,
|
|
71
|
+
skeletonize: b.bool,
|
|
72
|
+
skeletonQtty: b.number
|
|
73
|
+
};
|
|
74
|
+
g.defaultProps = {
|
|
54
75
|
title: void 0,
|
|
55
76
|
customClass: void 0,
|
|
56
77
|
skeletonize: !1,
|
|
57
78
|
skeletonQtty: 3
|
|
58
79
|
};
|
|
59
|
-
const
|
|
60
|
-
const {
|
|
61
|
-
iconSize:
|
|
62
|
-
iconColor:
|
|
63
|
-
customClass:
|
|
64
|
-
children:
|
|
65
|
-
spinner:
|
|
66
|
-
isLoading:
|
|
67
|
-
customClassMenuItem:
|
|
68
|
-
} =
|
|
69
|
-
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
80
|
+
const V = (k) => {
|
|
81
|
+
const e = y.c(22), {
|
|
82
|
+
iconSize: f,
|
|
83
|
+
iconColor: j,
|
|
84
|
+
customClass: s,
|
|
85
|
+
children: u,
|
|
86
|
+
spinner: r,
|
|
87
|
+
isLoading: i,
|
|
88
|
+
customClassMenuItem: p
|
|
89
|
+
} = k, x = f === void 0 ? 16 : f, h = j === void 0 ? "#676464" : j;
|
|
90
|
+
let d;
|
|
91
|
+
e[0] !== i || e[1] !== r ? (d = () => i ? /* @__PURE__ */ o.jsx(I, { delayTime: 0 }) : r, e[0] = i, e[1] = r, e[2] = d) : d = e[2];
|
|
92
|
+
const c = d;
|
|
93
|
+
let n;
|
|
94
|
+
e[3] !== p ? (n = {
|
|
95
|
+
customClassMenuItem: p
|
|
96
|
+
}, e[3] = p, e[4] = n) : n = e[4];
|
|
97
|
+
const a = n, m = `floatmenu-component ${s}`;
|
|
98
|
+
let t;
|
|
99
|
+
e[5] !== h || e[6] !== x ? (t = /* @__PURE__ */ o.jsx(S, { name: "grid", size: x, color: h }), e[5] = h, e[6] = x, e[7] = t) : t = e[7];
|
|
100
|
+
let l;
|
|
101
|
+
e[8] !== u || e[9] !== c || e[10] !== i || e[11] !== r ? (l = i || r ? c() : u, e[8] = u, e[9] = c, e[10] = i, e[11] = r, e[12] = l) : l = e[12];
|
|
102
|
+
let C;
|
|
103
|
+
e[13] !== t || e[14] !== l ? (C = /* @__PURE__ */ o.jsx(F, { transparent: !0, boxShadow: !1, dropdown: !0, icon: t, customClass: "buttonfloat", tabIndex: -1, isFloatMenu: !0, customClassForDropdown: "-floatdropdown", showIconDropdown: !1, children: l }, "button-"), e[13] = t, e[14] = l, e[15] = C) : C = e[15];
|
|
104
|
+
let w;
|
|
105
|
+
e[16] !== m || e[17] !== C ? (w = /* @__PURE__ */ o.jsx("div", { className: m, children: C }), e[16] = m, e[17] = C, e[18] = w) : w = e[18];
|
|
106
|
+
let v;
|
|
107
|
+
return e[19] !== a || e[20] !== w ? (v = /* @__PURE__ */ o.jsx(_.Provider, { value: a, children: w }), e[19] = a, e[20] = w, e[21] = v) : v = e[21], v;
|
|
87
108
|
};
|
|
88
109
|
export {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
110
|
+
K as MenuItem,
|
|
111
|
+
g as SubMenuContainer,
|
|
112
|
+
V as default
|
|
92
113
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
1
|
+
import { j as r } from "../../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as a } from "../../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import l from "../../icons/index.js";
|
|
4
|
+
const f = (c) => {
|
|
5
|
+
const e = a.c(6), {
|
|
6
|
+
onExpandMenu: t,
|
|
7
|
+
expandMenuCustomClass: i,
|
|
8
|
+
iconName: s
|
|
9
|
+
} = c, m = `openclosemenu ${i}`;
|
|
10
|
+
let n;
|
|
11
|
+
e[0] !== s ? (n = /* @__PURE__ */ r.jsx(l, { name: s, size: 16 }), e[0] = s, e[1] = n) : n = e[1];
|
|
12
|
+
let o;
|
|
13
|
+
return e[2] !== t || e[3] !== m || e[4] !== n ? (o = /* @__PURE__ */ r.jsx("div", { className: m, role: "button", tabIndex: 0, onClick: t, onKeyPress: p, children: n }), e[2] = t, e[3] = m, e[4] = n, e[5] = o) : o = e[5], o;
|
|
14
|
+
};
|
|
15
|
+
function p() {
|
|
16
|
+
}
|
|
15
17
|
export {
|
|
16
|
-
|
|
18
|
+
f as default
|
|
17
19
|
};
|