linear-react-components-ui 1.1.26-beta-1 → 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/radio/index.js
CHANGED
|
@@ -1,96 +1,112 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
1
|
+
import { j as i } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as ae } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as te, useEffect as ce } from "react";
|
|
3
4
|
import '../assets/radio.css';/* empty css */
|
|
4
|
-
import { OPTIONS_ON_DENIED as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
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
|
-
|
|
5
|
+
import { OPTIONS_ON_DENIED as se, actionsOnPermissionDenied as de } from "../permissionValidations.js";
|
|
6
|
+
import re from "../popover/index.js";
|
|
7
|
+
import ie from "../textContent/index.js";
|
|
8
|
+
const ge = (oe) => {
|
|
9
|
+
const e = ae.c(58), {
|
|
10
|
+
id: o,
|
|
11
|
+
label: S,
|
|
12
|
+
value: $,
|
|
13
|
+
checked: t,
|
|
14
|
+
onChange: v,
|
|
15
|
+
name: H,
|
|
16
|
+
disabled: J,
|
|
17
|
+
required: M,
|
|
18
|
+
skeletonize: Q,
|
|
19
|
+
defaultChecked: V,
|
|
20
|
+
inputRef: O,
|
|
21
|
+
size: W,
|
|
22
|
+
customClassForLabel: A,
|
|
23
|
+
labelUppercase: L,
|
|
24
|
+
hint: x,
|
|
25
|
+
hintPosition: X,
|
|
26
|
+
themePopover: Y,
|
|
27
|
+
popoverAlign: Z,
|
|
28
|
+
permissionAttr: q
|
|
29
|
+
} = oe, w = H === void 0 ? "" : H, g = J === void 0 ? !1 : J, l = M === void 0 ? !1 : M, k = Q === void 0 ? !1 : Q, C = V === void 0 ? !1 : V, ee = W === void 0 ? "medium" : W, F = X === void 0 ? "onLabelRight" : X, T = Y === void 0 ? "light" : Y, K = Z === void 0 ? "left" : Z, [n, le] = te(t);
|
|
30
|
+
let P, j;
|
|
31
|
+
if (e[0] !== q) {
|
|
32
|
+
const b = [se.disabled, se.unvisible];
|
|
33
|
+
P = te, j = de(b, q), e[0] = q, e[1] = P, e[2] = j;
|
|
34
|
+
} else
|
|
35
|
+
P = e[1], j = e[2];
|
|
36
|
+
const [N] = P(j);
|
|
37
|
+
let y;
|
|
38
|
+
e[3] !== t || e[4] !== n ? (y = () => {
|
|
39
|
+
t !== n && le(t);
|
|
40
|
+
}, e[3] = t, e[4] = n, e[5] = y) : y = e[5];
|
|
41
|
+
let z;
|
|
42
|
+
e[6] !== t ? (z = [t], e[6] = t, e[7] = z) : z = e[7], ce(y, z);
|
|
43
|
+
let D;
|
|
44
|
+
e[8] !== g || e[9] !== N.disabled || e[10] !== k ? (D = () => g || !!N.disabled || k, e[8] = g, e[9] = N.disabled, e[10] = k, e[11] = D) : D = e[11];
|
|
45
|
+
const s = D;
|
|
46
|
+
let R;
|
|
47
|
+
e[12] !== t || e[13] !== C || e[14] !== n || e[15] !== v || e[16] !== s ? (R = () => {
|
|
48
|
+
let b;
|
|
49
|
+
return b = {
|
|
50
|
+
...C && !t ? {
|
|
51
|
+
defaultChecked: C
|
|
52
|
+
} : {
|
|
53
|
+
checked: n
|
|
54
|
+
}
|
|
55
|
+
}, v && !s() && (b = {
|
|
56
|
+
...b,
|
|
57
|
+
onChange: (ne) => v(ne),
|
|
39
58
|
onKeyDown: null,
|
|
40
59
|
role: "button",
|
|
41
60
|
tabIndex: "0"
|
|
42
|
-
}),
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
91
|
-
)
|
|
92
|
-
] });
|
|
61
|
+
}), b;
|
|
62
|
+
}, e[12] = t, e[13] = C, e[14] = n, e[15] = v, e[16] = s, e[17] = R) : R = e[17];
|
|
63
|
+
const U = R;
|
|
64
|
+
if (N.unvisible)
|
|
65
|
+
return null;
|
|
66
|
+
let _;
|
|
67
|
+
e[18] === Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
68
|
+
display: "flex",
|
|
69
|
+
alignItems: "center"
|
|
70
|
+
}, e[18] = _) : _ = e[18];
|
|
71
|
+
const B = `radio-button ${g ? "disabled" : ""} ${k ? "-skeletonized" : ""}`;
|
|
72
|
+
let a;
|
|
73
|
+
e[19] !== U ? (a = U(), e[19] = U, e[20] = a) : a = e[20];
|
|
74
|
+
let c;
|
|
75
|
+
e[21] !== s ? (c = s(), e[21] = s, e[22] = c) : c = e[22];
|
|
76
|
+
let d;
|
|
77
|
+
e[23] !== o || e[24] !== O || e[25] !== w || e[26] !== l || e[27] !== a || e[28] !== c || e[29] !== $ ? (d = /* @__PURE__ */ i.jsx("input", { ...a, ref: O, className: "radio-component", type: "radio", value: $, id: o, name: w, required: l, disabled: c }), e[23] = o, e[24] = O, e[25] = w, e[26] = l, e[27] = a, e[28] = c, e[29] = $, e[30] = d) : d = e[30];
|
|
78
|
+
const G = `description ${ee && `-${ee}`}`;
|
|
79
|
+
let r;
|
|
80
|
+
e[31] !== s ? (r = s(), e[31] = s, e[32] = r) : r = e[32];
|
|
81
|
+
let m;
|
|
82
|
+
e[33] !== A || e[34] !== L || e[35] !== l || e[36] !== r ? (m = /* @__PURE__ */ i.jsx(ie, { required: l, disabled: r, className: A, labelUppercase: L }), e[33] = A, e[34] = L, e[35] = l, e[36] = r, e[37] = m) : m = e[37];
|
|
83
|
+
let E;
|
|
84
|
+
e[38] === Symbol.for("react.memo_cache_sentinel") ? (E = /* @__PURE__ */ i.jsx(ie, {}), e[38] = E) : E = e[38];
|
|
85
|
+
let f;
|
|
86
|
+
e[39] !== S || e[40] !== m ? (f = /* @__PURE__ */ i.jsxs("span", { children: [
|
|
87
|
+
m,
|
|
88
|
+
S,
|
|
89
|
+
E
|
|
90
|
+
] }), e[39] = S, e[40] = m, e[41] = f) : f = e[41];
|
|
91
|
+
let p;
|
|
92
|
+
e[42] !== o || e[43] !== G || e[44] !== f ? (p = /* @__PURE__ */ i.jsx("label", { className: G, htmlFor: o, children: f }), e[42] = o, e[43] = G, e[44] = f, e[45] = p) : p = e[45];
|
|
93
|
+
let h;
|
|
94
|
+
e[46] !== B || e[47] !== d || e[48] !== p ? (h = /* @__PURE__ */ i.jsxs("div", { className: B, children: [
|
|
95
|
+
d,
|
|
96
|
+
p
|
|
97
|
+
] }), e[46] = B, e[47] = d, e[48] = p, e[49] = h) : h = e[49];
|
|
98
|
+
let u;
|
|
99
|
+
e[50] !== x || e[51] !== F || e[52] !== K || e[53] !== T ? (u = !!x && F === "onLabelRight" && /* @__PURE__ */ i.jsx(re, { theme: T, align: K, customClass: "-hint", iconColor: "#03bde2", iconSize: 16, style: {
|
|
100
|
+
margin: "0px 5px",
|
|
101
|
+
height: "auto",
|
|
102
|
+
width: 20
|
|
103
|
+
}, children: x }), e[50] = x, e[51] = F, e[52] = K, e[53] = T, e[54] = u) : u = e[54];
|
|
104
|
+
let I;
|
|
105
|
+
return e[55] !== h || e[56] !== u ? (I = /* @__PURE__ */ i.jsxs("div", { className: "radio-input", style: _, children: [
|
|
106
|
+
h,
|
|
107
|
+
u
|
|
108
|
+
] }), e[55] = h, e[56] = u, e[57] = I) : I = e[57], I;
|
|
93
109
|
};
|
|
94
110
|
export {
|
|
95
|
-
|
|
111
|
+
ge as default
|
|
96
112
|
};
|
package/lib/shortcuts/index.js
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { j as a } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as d } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import '../assets/index15.css';const h = (p) => {
|
|
4
|
+
const t = d.c(8), {
|
|
5
|
+
type: l,
|
|
6
|
+
style: o,
|
|
7
|
+
styleShortcut: c,
|
|
8
|
+
shortcut: r,
|
|
9
|
+
description: i
|
|
10
|
+
} = p, n = `shortcut-component ${l && `-${l}`}`;
|
|
11
|
+
let s;
|
|
12
|
+
t[0] !== r || t[1] !== c || t[2] !== n ? (s = /* @__PURE__ */ a.jsx("kbd", { "data-testid": "shortcut", className: n, style: c, children: r }), t[0] = r, t[1] = c, t[2] = n, t[3] = s) : s = t[3];
|
|
13
|
+
let e;
|
|
14
|
+
return t[4] !== i || t[5] !== o || t[6] !== s ? (e = /* @__PURE__ */ a.jsxs("p", { "data-testid": "description", className: "shortcut-description", style: o, children: [
|
|
15
|
+
s,
|
|
16
|
+
": ",
|
|
17
|
+
i
|
|
18
|
+
] }), t[4] = i, t[5] = o, t[6] = s, t[7] = e) : e = t[7], e;
|
|
19
|
+
};
|
|
7
20
|
export {
|
|
8
|
-
|
|
21
|
+
h as default
|
|
9
22
|
};
|
|
@@ -1,9 +1,19 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as i } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as m } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const x = (a) => {
|
|
4
|
+
const t = m.c(7), {
|
|
5
|
+
children: o,
|
|
6
|
+
row: n,
|
|
7
|
+
customClass: r,
|
|
8
|
+
style: l
|
|
9
|
+
} = a;
|
|
10
|
+
let s;
|
|
11
|
+
t[0] !== r || t[1] !== n ? (s = () => `skeletoncontainer-component ${r}
|
|
12
|
+
${n && "-row"}`, t[0] = r, t[1] = n, t[2] = s) : s = t[2];
|
|
13
|
+
const c = s();
|
|
14
|
+
let e;
|
|
15
|
+
return t[3] !== o || t[4] !== l || t[5] !== c ? (e = /* @__PURE__ */ i.jsx("div", { className: c, style: l, children: o }), t[3] = o, t[4] = l, t[5] = c, t[6] = e) : e = t[6], e;
|
|
6
16
|
};
|
|
7
17
|
export {
|
|
8
|
-
|
|
18
|
+
x as default
|
|
9
19
|
};
|
package/lib/skeleton/index.js
CHANGED
|
@@ -1,25 +1,49 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as x } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as k } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
2
3
|
import '../assets/skeleton.css';import '../assets/gridlayout.css';/* empty css */
|
|
3
|
-
import
|
|
4
|
-
import { default as
|
|
4
|
+
import v from "../gridlayout/GridCol.js";
|
|
5
|
+
import { default as R } from "./SkeletonContainer.js";
|
|
5
6
|
/* empty css */
|
|
6
|
-
const
|
|
7
|
-
const {
|
|
8
|
-
customClass:
|
|
7
|
+
const w = (C) => {
|
|
8
|
+
const t = k.c(15), {
|
|
9
|
+
customClass: d,
|
|
9
10
|
style: m,
|
|
10
11
|
width: a,
|
|
11
|
-
height:
|
|
12
|
-
round:
|
|
13
|
-
color:
|
|
14
|
-
size:
|
|
15
|
-
gridLayout:
|
|
16
|
-
} =
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
height: u,
|
|
13
|
+
round: o,
|
|
14
|
+
color: f,
|
|
15
|
+
size: p,
|
|
16
|
+
gridLayout: l
|
|
17
|
+
} = C, n = d === void 0 ? "" : d, e = f === void 0 ? "default" : f, s = p === void 0 ? "medium" : p;
|
|
18
|
+
let i, r;
|
|
19
|
+
if (t[0] !== e || t[1] !== n || t[2] !== l || t[3] !== u || t[4] !== o || t[5] !== s || t[6] !== m || t[7] !== a) {
|
|
20
|
+
r = Symbol.for("react.early_return_sentinel");
|
|
21
|
+
t: {
|
|
22
|
+
const $ = {
|
|
23
|
+
width: a,
|
|
24
|
+
height: u
|
|
25
|
+
};
|
|
26
|
+
let c;
|
|
27
|
+
t[10] !== e || t[11] !== n || t[12] !== o || t[13] !== s ? (c = () => `skeleton-component ${n}
|
|
28
|
+
${e && `-${e}`}
|
|
29
|
+
${o && "-round"}
|
|
30
|
+
${o && s && `-${s}`}`, t[10] = e, t[11] = n, t[12] = o, t[13] = s, t[14] = c) : c = t[14];
|
|
31
|
+
const h = c, y = () => /* @__PURE__ */ x.jsx("div", { className: h(), style: {
|
|
32
|
+
...$,
|
|
33
|
+
...m
|
|
34
|
+
} });
|
|
35
|
+
if (l !== void 0) {
|
|
36
|
+
r = /* @__PURE__ */ x.jsx(v, { customClass: "-withskeleton", cols: l, children: y() });
|
|
37
|
+
break t;
|
|
38
|
+
}
|
|
39
|
+
i = y();
|
|
40
|
+
}
|
|
41
|
+
t[0] = e, t[1] = n, t[2] = l, t[3] = u, t[4] = o, t[5] = s, t[6] = m, t[7] = a, t[8] = i, t[9] = r;
|
|
42
|
+
} else
|
|
43
|
+
i = t[8], r = t[9];
|
|
44
|
+
return r !== Symbol.for("react.early_return_sentinel") ? r : i;
|
|
21
45
|
};
|
|
22
46
|
export {
|
|
23
|
-
|
|
24
|
-
|
|
47
|
+
R as SkeletonContainer,
|
|
48
|
+
w as default
|
|
25
49
|
};
|
|
@@ -1,18 +1,55 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
|
|
1
|
+
import { j as t } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as _ } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
const S = (p) => {
|
|
4
|
+
const e = _.c(16), {
|
|
5
|
+
color: j,
|
|
6
|
+
size: b
|
|
7
|
+
} = p, u = j === void 0 ? "#3B3B3B" : j, g = b === void 0 ? "50px" : b;
|
|
8
|
+
let i;
|
|
9
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
10
|
+
background: "none",
|
|
11
|
+
float: "right"
|
|
12
|
+
}, e[0] = i) : i = e[0];
|
|
13
|
+
let r;
|
|
14
|
+
e[1] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ t.jsx("g", { transform: "rotate(0 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.9166666666666666s", repeatCount: "indefinite" }) }) }), e[1] = r) : r = e[1];
|
|
15
|
+
let s;
|
|
16
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ t.jsx("g", { transform: "rotate(30 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.8333333333333334s", repeatCount: "indefinite" }) }) }), e[2] = s) : s = e[2];
|
|
17
|
+
let a;
|
|
18
|
+
e[3] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ t.jsx("g", { transform: "rotate(60 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.75s", repeatCount: "indefinite" }) }) }), e[3] = a) : a = e[3];
|
|
19
|
+
let n;
|
|
20
|
+
e[4] === Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ t.jsx("g", { transform: "rotate(90 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.6666666666666666s", repeatCount: "indefinite" }) }) }), e[4] = n) : n = e[4];
|
|
21
|
+
let o;
|
|
22
|
+
e[5] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ t.jsx("g", { transform: "rotate(120 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.5833333333333334s", repeatCount: "indefinite" }) }) }), e[5] = o) : o = e[5];
|
|
23
|
+
let l;
|
|
24
|
+
e[6] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ t.jsx("g", { transform: "rotate(150 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.5s", repeatCount: "indefinite" }) }) }), e[6] = l) : l = e[6];
|
|
25
|
+
let c;
|
|
26
|
+
e[7] === Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ t.jsx("g", { transform: "rotate(180 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.4166666666666667s", repeatCount: "indefinite" }) }) }), e[7] = c) : c = e[7];
|
|
27
|
+
let m;
|
|
28
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ t.jsx("g", { transform: "rotate(210 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.3333333333333333s", repeatCount: "indefinite" }) }) }), e[8] = m) : m = e[8];
|
|
29
|
+
let h;
|
|
30
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ t.jsx("g", { transform: "rotate(240 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.25s", repeatCount: "indefinite" }) }) }), e[9] = h) : h = e[9];
|
|
31
|
+
let d;
|
|
32
|
+
e[10] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ t.jsx("g", { transform: "rotate(270 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.16666666666666666s", repeatCount: "indefinite" }) }) }), e[10] = d) : d = e[10];
|
|
33
|
+
let x;
|
|
34
|
+
e[11] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ t.jsx("g", { transform: "rotate(300 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "-0.08333333333333333s", repeatCount: "indefinite" }) }) }), e[11] = x) : x = e[11];
|
|
35
|
+
let y;
|
|
36
|
+
e[12] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ t.jsx("g", { transform: "rotate(330 50 50)", children: /* @__PURE__ */ t.jsx("rect", { x: "47", y: "24", rx: "9.4", ry: "4.8", width: "6", height: "12", children: /* @__PURE__ */ t.jsx("animate", { attributeName: "opacity", values: "1;0", keyTimes: "0;1", dur: "1s", begin: "0s", repeatCount: "indefinite" }) }) }), e[12] = y) : y = e[12];
|
|
37
|
+
let f;
|
|
38
|
+
return e[13] !== u || e[14] !== g ? (f = /* @__PURE__ */ t.jsxs("svg", { "data-testid": "spinner", className: "lds-spinner spinnerloading", fill: u, width: g, viewBox: "0 0 100 100", preserveAspectRatio: "xMidYMid", style: i, children: [
|
|
39
|
+
r,
|
|
40
|
+
s,
|
|
41
|
+
a,
|
|
42
|
+
n,
|
|
43
|
+
o,
|
|
44
|
+
l,
|
|
45
|
+
c,
|
|
46
|
+
m,
|
|
47
|
+
h,
|
|
48
|
+
d,
|
|
49
|
+
x,
|
|
50
|
+
y
|
|
51
|
+
] }), e[13] = u, e[14] = g, e[15] = f) : f = e[15], f;
|
|
52
|
+
};
|
|
16
53
|
export {
|
|
17
|
-
|
|
54
|
+
S as default
|
|
18
55
|
};
|
package/lib/spinner/index.js
CHANGED
|
@@ -1,41 +1,51 @@
|
|
|
1
|
-
import { j
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { j } from "../chunks/jsx-runtime.D1SHvdVE.js";
|
|
2
|
+
import { c as D } from "../chunks/compiler-runtime.Cu50tn6L.js";
|
|
3
|
+
import { useState as L, useRef as N, useEffect as k } from "react";
|
|
4
|
+
import C from "./SpinnerLoading.js";
|
|
5
|
+
import '../assets/index6.css';const H = (E) => {
|
|
6
|
+
const e = D.c(20), {
|
|
7
|
+
align: T,
|
|
8
|
+
customClass: m,
|
|
9
|
+
style: d,
|
|
10
|
+
text: p,
|
|
11
|
+
visible: S,
|
|
12
|
+
delayTime: $,
|
|
13
|
+
heightAuto: x,
|
|
14
|
+
color: b,
|
|
15
|
+
size: B
|
|
16
|
+
} = E, t = T === void 0 ? "center" : T, R = S === void 0 ? !0 : S, r = $ === void 0 ? 1e3 : $, o = b === void 0 ? "#3B3B3B" : b, i = B === void 0 ? "50px" : B, [z, _] = L(!!r), v = N(null);
|
|
17
|
+
let l;
|
|
18
|
+
e[0] !== r ? (l = () => (r && (v.current = setTimeout(() => {
|
|
19
|
+
_(!1);
|
|
18
20
|
}, r)), () => {
|
|
19
|
-
|
|
20
|
-
}), []);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
21
|
+
v.current && clearTimeout(v.current);
|
|
22
|
+
}), e[0] = r, e[1] = l) : l = e[1];
|
|
23
|
+
let c;
|
|
24
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (c = [], e[2] = c) : c = e[2], k(l, c);
|
|
25
|
+
let u;
|
|
26
|
+
e[3] !== t || e[4] !== m || e[5] !== x ? (u = () => {
|
|
27
|
+
let s = `spinner-component -${t} ${m} `;
|
|
28
|
+
return x && (s = `${s} -heightauto`), s;
|
|
29
|
+
}, e[3] = t, e[4] = m, e[5] = x, e[6] = u) : u = e[6];
|
|
30
|
+
const A = u;
|
|
31
|
+
if (z || !R)
|
|
32
|
+
return null;
|
|
33
|
+
if (t !== "none") {
|
|
34
|
+
const s = A(), g = t === "right" && p;
|
|
35
|
+
let n;
|
|
36
|
+
e[7] !== o || e[8] !== i ? (n = /* @__PURE__ */ j.jsx(C, { color: o, size: i }), e[7] = o, e[8] = i, e[9] = n) : n = e[9];
|
|
37
|
+
const h = t === "left" && p, y = t === "center" && p;
|
|
38
|
+
let a;
|
|
39
|
+
return e[10] !== d || e[11] !== n || e[12] !== h || e[13] !== y || e[14] !== s || e[15] !== g ? (a = /* @__PURE__ */ j.jsxs("div", { style: d, className: s, children: [
|
|
40
|
+
g,
|
|
41
|
+
n,
|
|
42
|
+
h,
|
|
43
|
+
y
|
|
44
|
+
] }), e[10] = d, e[11] = n, e[12] = h, e[13] = y, e[14] = s, e[15] = g, e[16] = a) : a = e[16], a;
|
|
45
|
+
}
|
|
46
|
+
let f;
|
|
47
|
+
return e[17] !== o || e[18] !== i ? (f = /* @__PURE__ */ j.jsx(C, { color: o, size: i }), e[17] = o, e[18] = i, e[19] = f) : f = e[19], f;
|
|
38
48
|
};
|
|
39
49
|
export {
|
|
40
|
-
|
|
50
|
+
H as default
|
|
41
51
|
};
|