gasp-components 1.0.10 → 1.0.11
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/dist/UploadOutlined-9WKjHsqa.js +878 -0
- package/dist/components/ag-grid-table/index.js +57877 -38314
- package/dist/components/button/index.js +18 -18
- package/dist/components/checklist/checklist-item.js +3 -3
- package/dist/components/checklist/index.js +5 -5
- package/dist/components/date-picker/index.js +9 -5022
- package/dist/components/dragger/index.js +28 -28
- package/dist/components/dropdown/index.js +10 -11
- package/dist/components/form/index.js +8 -9
- package/dist/components/form-item/index.js +10 -10
- package/dist/components/input/index.js +8 -8
- package/dist/components/modal/index.js +18 -20
- package/dist/components/password-input/index.js +2 -2
- package/dist/components/progress/index.js +16 -18
- package/dist/components/progress-circle/index.js +3 -3
- package/dist/components/radio-button/index.js +8 -8
- package/dist/components/result-popup/index.js +13 -14
- package/dist/components/select/index.js +1 -1
- package/dist/components/side-menu/index.js +2 -2
- package/dist/components/side-menu/menu-item.js +4 -6
- package/dist/components/steps/index.js +9 -9
- package/dist/components/table/index.js +16 -9298
- package/dist/components/tabs/index.js +10 -10
- package/dist/components/tabs/tab.js +7 -8
- package/dist/components/tag/index.js +9 -258
- package/dist/components/timeline-horizontal/index.js +7 -7
- package/dist/components/upload/index.js +62 -77
- package/dist/index-WlPrqxgY.js +87 -0
- package/dist/main.js +69 -457
- package/package.json +1 -1
- package/dist/CheckCircleFilled-xt-0R96Z.js +0 -16
- package/dist/CheckOutlined-EgxCAgj_.js +0 -16
- package/dist/CloseCircleFilled-bIgIULWb.js +0 -16
- package/dist/CloseOutlined-Q3kC3EZS.js +0 -16
- package/dist/Compact-fdEKV_mF.js +0 -180
- package/dist/ExclamationCircleFilled-XzDBEGmA.js +0 -16
- package/dist/KeyCode-qFRXB1-n.js +0 -517
- package/dist/LoadingOutlined-6Ipqn0og.js +0 -16
- package/dist/Overflow-JFdXKgCr.js +0 -231
- package/dist/PurePanel-hLGnXbul.js +0 -60
- package/dist/SearchOutlined-rJTFGXUi.js +0 -16
- package/dist/TextArea-n3dknzTq.js +0 -716
- package/dist/UploadOutlined-D8jfLEgv.js +0 -27
- package/dist/asyncToGenerator-t4sKr8R4.js +0 -340
- package/dist/button-LN5ZDad8.js +0 -819
- package/dist/collapse-ilv4Tji1.js +0 -20
- package/dist/colors-opGg9oSz.js +0 -25
- package/dist/compact-item-jjuVmDBH.js +0 -61
- package/dist/context-h3WSVDPz.js +0 -2087
- package/dist/createFormattedComponent-FcpICAm8.js +0 -3260
- package/dist/index--6VfGMUo.js +0 -402
- package/dist/index-0mpuHoS5.js +0 -996
- package/dist/index-1KQbTQJ2.js +0 -4405
- package/dist/index-5Uo03BMk.js +0 -681
- package/dist/index-BFgxz47K.js +0 -89
- package/dist/index-D3LMPWyJ.js +0 -1437
- package/dist/index-DVS_nWxv.js +0 -3026
- package/dist/index-ELHBhuK9.js +0 -100
- package/dist/index-Fn8q8B3V.js +0 -107
- package/dist/index-GgkQrebz.js +0 -950
- package/dist/index-L-MzVDcK.js +0 -616
- package/dist/index-M3WnMjiA.js +0 -230
- package/dist/index-NQd_zMf0.js +0 -69
- package/dist/index-ZT64Ec6u.js +0 -267
- package/dist/index-aawDqn9q.js +0 -3337
- package/dist/index-k04G4nlS.js +0 -1416
- package/dist/index-s3u4YBl4.js +0 -8
- package/dist/index-vtDVJV8q.js +0 -19571
- package/dist/isVisible-Qi9l15Ty.js +0 -232
- package/dist/motion-0ToOu81j.js +0 -226
- package/dist/motion-NQme0FJ_.js +0 -32
- package/dist/omit-ylWA0ZLZ.js +0 -10
- package/dist/pickAttrs-zaQzRTqh.js +0 -42
- package/dist/progress-a1_pwKVT.js +0 -722
- package/dist/reactNode-R20zZQk1.js +0 -18
- package/dist/responsiveObserver-V1_1G14X.js +0 -71
- package/dist/roundedArrow-p1Pmd9av.js +0 -64
- package/dist/row-sPFiFm0C.js +0 -230
- package/dist/slide-mFXPRHku.js +0 -265
- package/dist/styleChecker-pZ3k2IiY.js +0 -37
- package/dist/useCSSVarCls-GwZT_WiF.js +0 -9
- package/dist/useClosable-4G12n4Bp.js +0 -15
- package/dist/useLocale-eThlLZJw.js +0 -16
- package/dist/useMergedState-qUafLuUa.js +0 -23
- package/dist/useVariants-s0IcneBD.js +0 -25
- package/dist/zoom-Ps8y0jNW.js +0 -174
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { jsxs as i, jsx as a, Fragment as h } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { Typography as p } from "antd";
|
|
3
|
+
import N from "classnames";
|
|
3
4
|
import { useState as T, useRef as _, useEffect as u } from "react";
|
|
4
|
-
import O from "
|
|
5
|
-
import A from "../../icons/
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { F as w } from "../../createFormattedComponent-FcpICAm8.js";
|
|
5
|
+
import { FormattedNumberParts as O } from "react-intl";
|
|
6
|
+
import A from "../../icons/file-icon/index.js";
|
|
7
|
+
import k from "../../icons/upload-icon/index.js";
|
|
8
|
+
import { D as w, U as B } from "../../UploadOutlined-9WKjHsqa.js";
|
|
9
9
|
const C = ({
|
|
10
10
|
multiple: f = !1,
|
|
11
11
|
onChange: c,
|
|
12
12
|
value: m,
|
|
13
13
|
placeholder: g
|
|
14
14
|
}) => {
|
|
15
|
-
const [
|
|
15
|
+
const [o, n] = T([]), d = _(null), x = (e) => {
|
|
16
16
|
var l;
|
|
17
17
|
(l = e.target.files) != null && l.length && n(f ? [
|
|
18
|
-
...
|
|
18
|
+
...o,
|
|
19
19
|
...Array.from(Array(e.target.files.length)).map(
|
|
20
|
-
(r,
|
|
20
|
+
(r, s) => {
|
|
21
21
|
var t;
|
|
22
|
-
return (t = e.target.files) == null ? void 0 : t.item(
|
|
22
|
+
return (t = e.target.files) == null ? void 0 : t.item(s);
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
] : Array.from(Array(e.target.files.length)).map(
|
|
26
|
-
(r,
|
|
26
|
+
(r, s) => {
|
|
27
27
|
var t;
|
|
28
|
-
return (t = e.target.files) == null ? void 0 : t.item(
|
|
28
|
+
return (t = e.target.files) == null ? void 0 : t.item(s);
|
|
29
29
|
}
|
|
30
30
|
));
|
|
31
31
|
}, y = (e) => {
|
|
@@ -35,33 +35,33 @@ const C = ({
|
|
|
35
35
|
}, b = (e) => {
|
|
36
36
|
var l;
|
|
37
37
|
e.preventDefault(), (l = e.dataTransfer.files) != null && l.length && n(f ? [
|
|
38
|
-
...
|
|
38
|
+
...o,
|
|
39
39
|
...Array.from(Array(e.dataTransfer.files.length)).map(
|
|
40
|
-
(r,
|
|
40
|
+
(r, s) => {
|
|
41
41
|
var t;
|
|
42
|
-
return (t = e.dataTransfer.files) == null ? void 0 : t.item(
|
|
42
|
+
return (t = e.dataTransfer.files) == null ? void 0 : t.item(s);
|
|
43
43
|
}
|
|
44
44
|
)
|
|
45
45
|
] : Array.from(Array(e.dataTransfer.files.length)).map(
|
|
46
|
-
(r,
|
|
46
|
+
(r, s) => {
|
|
47
47
|
var t;
|
|
48
|
-
return (t = e.dataTransfer.files) == null ? void 0 : t.item(
|
|
48
|
+
return (t = e.dataTransfer.files) == null ? void 0 : t.item(s);
|
|
49
49
|
}
|
|
50
50
|
));
|
|
51
51
|
}, D = (e, l) => {
|
|
52
52
|
e.stopPropagation();
|
|
53
53
|
const r = [
|
|
54
|
-
...
|
|
55
|
-
...
|
|
54
|
+
...o.slice(0, l),
|
|
55
|
+
...o.slice(l + 1)
|
|
56
56
|
];
|
|
57
57
|
n(r), c && c(r.length === 0 ? null : r), d.current && (d.current.value = "");
|
|
58
58
|
};
|
|
59
59
|
return u(() => {
|
|
60
60
|
m && m.length > 0 && n(m);
|
|
61
61
|
}, [m]), u(() => {
|
|
62
|
-
|
|
63
|
-
}, [
|
|
64
|
-
|
|
62
|
+
o.length > 0 && c && c(o);
|
|
63
|
+
}, [o, c]), /* @__PURE__ */ i("div", { className: "flex flex-wrap gap-4", children: [
|
|
64
|
+
o.map((e, l) => /* @__PURE__ */ i(
|
|
65
65
|
"div",
|
|
66
66
|
{
|
|
67
67
|
className: "relative group basis-full max-h-48 flex items-center gap-x-3 py-12 pe-2 ps-4 bg-lightBlue rounded-2xl hover:cursor-pointer",
|
|
@@ -76,18 +76,18 @@ const C = ({
|
|
|
76
76
|
{
|
|
77
77
|
className: "absolute opacity-0 group-hover:opacity-100 transition-opacity -left-2 -top-2 flex items-center justify-center text-ghostWhite bg-coral rounded-full w-6 h-6",
|
|
78
78
|
onClick: (r) => D(r, l),
|
|
79
|
-
children: /* @__PURE__ */ a(
|
|
79
|
+
children: /* @__PURE__ */ a(w, { size: 4 })
|
|
80
80
|
}
|
|
81
81
|
),
|
|
82
|
-
/* @__PURE__ */ a(
|
|
82
|
+
/* @__PURE__ */ a(B, { className: "flex-1 text-slateGray" }),
|
|
83
83
|
/* @__PURE__ */ i("div", { className: "flex flex-col items-end gap-y-1", children: [
|
|
84
84
|
/* @__PURE__ */ a(p.Text, { className: "text-xs font-semibold text-ellipsis overflow-hidden whitespace-nowrap", children: e.name }),
|
|
85
|
-
/* @__PURE__ */ a(p.Text, { className: "text-xs", children: /* @__PURE__ */ a(
|
|
85
|
+
/* @__PURE__ */ a(p.Text, { className: "text-xs", children: /* @__PURE__ */ a(O, { value: e.size, children: (r) => /* @__PURE__ */ i(h, { children: [
|
|
86
86
|
r[0].value,
|
|
87
87
|
" Kb"
|
|
88
88
|
] }) }) })
|
|
89
89
|
] }),
|
|
90
|
-
/* @__PURE__ */ a(
|
|
90
|
+
/* @__PURE__ */ a(A, {})
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
93
|
e.name
|
|
@@ -98,7 +98,7 @@ const C = ({
|
|
|
98
98
|
className: N(
|
|
99
99
|
"basis-full max-h-48 flex flex-col items-center justify-center py-12 bg-ghostWhite rounded-2xl border-dashed border border-gainsboro hover:border-dodgerBlue hover:cursor-pointer transition-colors duration-200",
|
|
100
100
|
{
|
|
101
|
-
hidden: !f &&
|
|
101
|
+
hidden: !f && o.length > 0
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
104
|
role: "button",
|
|
@@ -120,7 +120,7 @@ const C = ({
|
|
|
120
120
|
onChange: x
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
|
-
/* @__PURE__ */ a(
|
|
123
|
+
/* @__PURE__ */ a(k, {}),
|
|
124
124
|
/* @__PURE__ */ a(p.Text, { className: "mt-3 font-normal", children: g || /* @__PURE__ */ i(h, { children: [
|
|
125
125
|
/* @__PURE__ */ a("span", { className: "text-dodgerBlue", children: "click_here_to" }),
|
|
126
126
|
" ",
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import { A as c } from "../../index-DVS_nWxv.js";
|
|
2
|
+
import { Dropdown as p } from "antd";
|
|
3
|
+
import e from "classnames";
|
|
4
|
+
import { useIntl as m } from "react-intl";
|
|
6
5
|
const f = ({
|
|
7
|
-
children:
|
|
6
|
+
children: t,
|
|
8
7
|
menu: o,
|
|
9
8
|
...s
|
|
10
9
|
}) => {
|
|
11
|
-
const { locale:
|
|
10
|
+
const { locale: r } = m();
|
|
12
11
|
return /* @__PURE__ */ a(
|
|
13
|
-
|
|
12
|
+
p,
|
|
14
13
|
{
|
|
15
14
|
...s,
|
|
16
15
|
menu: {
|
|
17
16
|
...o,
|
|
18
|
-
className:
|
|
19
|
-
"text-end":
|
|
20
|
-
"text-start":
|
|
17
|
+
className: e(o == null ? void 0 : o.className, {
|
|
18
|
+
"text-end": r === "ar",
|
|
19
|
+
"text-start": r === "en"
|
|
21
20
|
})
|
|
22
21
|
},
|
|
23
|
-
children:
|
|
22
|
+
children: t
|
|
24
23
|
}
|
|
25
24
|
);
|
|
26
25
|
};
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { jsx as s, Fragment as t } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
const x = ({
|
|
2
|
+
import { Form as i } from "antd";
|
|
3
|
+
import l from "classnames";
|
|
4
|
+
import { useIntl as c } from "react-intl";
|
|
5
|
+
const g = ({
|
|
7
6
|
className: e,
|
|
8
7
|
children: r,
|
|
9
8
|
validateMessages: m,
|
|
10
9
|
...o
|
|
11
10
|
}) => {
|
|
12
|
-
const { formatMessage: a } =
|
|
11
|
+
const { formatMessage: a } = c();
|
|
13
12
|
return /* @__PURE__ */ s(
|
|
14
|
-
|
|
13
|
+
i,
|
|
15
14
|
{
|
|
16
15
|
...o,
|
|
17
16
|
validateMessages: {
|
|
@@ -20,11 +19,11 @@ const x = ({
|
|
|
20
19
|
}),
|
|
21
20
|
...m
|
|
22
21
|
},
|
|
23
|
-
className:
|
|
22
|
+
className: l([e, "flex flex-col gap-y-8"]),
|
|
24
23
|
children: /* @__PURE__ */ s(t, { children: r })
|
|
25
24
|
}
|
|
26
25
|
);
|
|
27
26
|
};
|
|
28
27
|
export {
|
|
29
|
-
|
|
28
|
+
g as Form
|
|
30
29
|
};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { Form as i } from "antd";
|
|
3
|
+
import e from "classnames";
|
|
4
4
|
const x = ({
|
|
5
5
|
name: t,
|
|
6
6
|
label: s,
|
|
7
7
|
labelCol: m,
|
|
8
|
-
className:
|
|
9
|
-
children:
|
|
8
|
+
className: o,
|
|
9
|
+
children: a,
|
|
10
10
|
messageVariables: c,
|
|
11
|
-
...
|
|
11
|
+
...p
|
|
12
12
|
}) => /* @__PURE__ */ r(
|
|
13
|
-
|
|
13
|
+
i.Item,
|
|
14
14
|
{
|
|
15
|
-
...
|
|
15
|
+
...p,
|
|
16
16
|
name: t,
|
|
17
|
-
className:
|
|
17
|
+
className: e(o, "text-sm font-bold mb-0"),
|
|
18
18
|
label: s && /* @__PURE__ */ r("span", { className: "text-sm", children: s }),
|
|
19
19
|
labelCol: {
|
|
20
20
|
...m,
|
|
21
|
-
className:
|
|
21
|
+
className: e(m == null ? void 0 : m.className, "!pb-4")
|
|
22
22
|
},
|
|
23
23
|
messageVariables: {
|
|
24
24
|
name: typeof s == "string" ? s : t,
|
|
25
25
|
...c
|
|
26
26
|
},
|
|
27
|
-
children:
|
|
27
|
+
children: a
|
|
28
28
|
}
|
|
29
29
|
);
|
|
30
30
|
export {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as u } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { Input as o } from "antd";
|
|
3
|
+
import r from "classnames";
|
|
4
4
|
const b = ({
|
|
5
|
-
className:
|
|
5
|
+
className: n,
|
|
6
6
|
classNames: p,
|
|
7
|
-
isPassword:
|
|
8
|
-
...
|
|
7
|
+
isPassword: t = !1,
|
|
8
|
+
...f
|
|
9
9
|
}) => {
|
|
10
|
-
const i = "rounded-xl px-4 leading-none font-semibold !bg-transparent h-[56px]", x =
|
|
10
|
+
const i = "rounded-xl px-4 leading-none font-semibold !bg-transparent h-[56px]", x = t ? o.Password : o;
|
|
11
11
|
return /* @__PURE__ */ u(
|
|
12
12
|
x,
|
|
13
13
|
{
|
|
14
|
-
...
|
|
15
|
-
className: r(
|
|
14
|
+
...f,
|
|
15
|
+
className: r(n, i),
|
|
16
16
|
classNames: {
|
|
17
17
|
...p,
|
|
18
18
|
affixWrapper: r(p == null ? void 0 : p.affixWrapper, "ps-4"),
|
|
@@ -1,43 +1,41 @@
|
|
|
1
1
|
import { jsx as t, jsxs as x } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
|
|
8
|
-
import { B as j } from "../../button-LN5ZDad8.js";
|
|
9
|
-
const w = ({
|
|
2
|
+
import { Modal as h, Button as g } from "antd";
|
|
3
|
+
import { useState as y, useEffect as j } from "react";
|
|
4
|
+
import { useIntl as v } from "react-intl";
|
|
5
|
+
import B from "../../icons/close-outlined-icon/index.js";
|
|
6
|
+
import r from "classnames";
|
|
7
|
+
const k = ({
|
|
10
8
|
title: p,
|
|
11
9
|
children: b,
|
|
12
10
|
classNames: o,
|
|
13
|
-
onCancel:
|
|
11
|
+
onCancel: n,
|
|
14
12
|
...e
|
|
15
13
|
}) => {
|
|
16
|
-
const { locale:
|
|
17
|
-
d(!1),
|
|
14
|
+
const { locale: i } = v(), [l, d] = y(!1), f = (u) => {
|
|
15
|
+
d(!1), n && n(u);
|
|
18
16
|
};
|
|
19
|
-
return
|
|
17
|
+
return j(() => {
|
|
20
18
|
d(e.open);
|
|
21
19
|
}, [e.open, d]), /* @__PURE__ */ t(
|
|
22
|
-
|
|
20
|
+
h,
|
|
23
21
|
{
|
|
24
22
|
...e,
|
|
25
|
-
open:
|
|
23
|
+
open: l,
|
|
26
24
|
closeIcon: null,
|
|
27
25
|
title: /* @__PURE__ */ x(
|
|
28
26
|
"div",
|
|
29
27
|
{
|
|
30
28
|
className: "flex justify-between items-center",
|
|
31
|
-
dir:
|
|
29
|
+
dir: i === "ar" ? "rtl" : "ltr",
|
|
32
30
|
children: [
|
|
33
31
|
p,
|
|
34
32
|
/* @__PURE__ */ t(
|
|
35
|
-
|
|
33
|
+
g,
|
|
36
34
|
{
|
|
37
35
|
className: "bg-ghostWhite hover:!bg-ghostWhite ms-auto",
|
|
38
36
|
type: "text",
|
|
39
|
-
onClick:
|
|
40
|
-
icon: /* @__PURE__ */ t(
|
|
37
|
+
onClick: f,
|
|
38
|
+
icon: /* @__PURE__ */ t(B, {})
|
|
41
39
|
}
|
|
42
40
|
)
|
|
43
41
|
]
|
|
@@ -56,10 +54,10 @@ const w = ({
|
|
|
56
54
|
"!px-6 !pt-6 !pb-7 !border-t !border-solid !border-0 !border-aliceBlue"
|
|
57
55
|
)
|
|
58
56
|
},
|
|
59
|
-
children: /* @__PURE__ */ t("div", { dir:
|
|
57
|
+
children: /* @__PURE__ */ t("div", { dir: i === "ar" ? "rtl" : "ltr", children: b })
|
|
60
58
|
}
|
|
61
59
|
);
|
|
62
60
|
};
|
|
63
61
|
export {
|
|
64
|
-
|
|
62
|
+
k as Modal
|
|
65
63
|
};
|
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import { jsxs as t, jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import { P as p } from "../../progress-a1_pwKVT.js";
|
|
6
|
-
const h = ({
|
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { Row as l, Typography as x, Progress as n } from "antd";
|
|
3
|
+
import e from "classnames";
|
|
4
|
+
const p = ({
|
|
7
5
|
percent: s = 0,
|
|
8
|
-
className:
|
|
9
|
-
format:
|
|
10
|
-
showInfo:
|
|
6
|
+
className: m,
|
|
7
|
+
format: r,
|
|
8
|
+
showInfo: a = !0,
|
|
11
9
|
...i
|
|
12
|
-
}) => /* @__PURE__ */ t(
|
|
13
|
-
/* @__PURE__ */
|
|
14
|
-
|
|
10
|
+
}) => /* @__PURE__ */ t(l, { justify: "end", children: [
|
|
11
|
+
/* @__PURE__ */ o(
|
|
12
|
+
x.Text,
|
|
15
13
|
{
|
|
16
|
-
className:
|
|
17
|
-
children:
|
|
14
|
+
className: e("mb-1 font-medium text-xs leading-[18px]"),
|
|
15
|
+
children: a && (r ? r(s) : `${s}%`)
|
|
18
16
|
}
|
|
19
17
|
),
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
|
|
18
|
+
/* @__PURE__ */ o(
|
|
19
|
+
n,
|
|
22
20
|
{
|
|
23
21
|
...i,
|
|
24
22
|
percent: s,
|
|
25
23
|
showInfo: !1,
|
|
26
|
-
className: m
|
|
24
|
+
className: e(m, "m-0 leading-[0px]")
|
|
27
25
|
}
|
|
28
26
|
)
|
|
29
27
|
] });
|
|
30
28
|
export {
|
|
31
|
-
|
|
29
|
+
p as Progress
|
|
32
30
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { Progress as i } from "antd";
|
|
3
|
+
import e from "classnames";
|
|
4
4
|
const m = ({
|
|
5
5
|
containerClassName: s,
|
|
6
6
|
className: t,
|
|
@@ -13,7 +13,7 @@ const m = ({
|
|
|
13
13
|
"w-fit bg-gray-100 rounded-full"
|
|
14
14
|
]),
|
|
15
15
|
children: /* @__PURE__ */ r(
|
|
16
|
-
|
|
16
|
+
i,
|
|
17
17
|
{
|
|
18
18
|
className: e([t, "flex items-center justify-center"]),
|
|
19
19
|
trailColor: "transparent",
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
2
|
+
import { Typography as n } from "antd";
|
|
3
|
+
import i from "classnames";
|
|
4
|
+
import { useContext as p } from "react";
|
|
4
5
|
import { radioButtonGroupContext as a } from "../radio-button-group/context.js";
|
|
5
|
-
import { T as p } from "../../index-0mpuHoS5.js";
|
|
6
6
|
const u = ({
|
|
7
7
|
value: t,
|
|
8
8
|
onChange: o,
|
|
9
|
-
children:
|
|
9
|
+
children: m
|
|
10
10
|
}) => {
|
|
11
|
-
const r =
|
|
11
|
+
const r = p(a), s = () => {
|
|
12
12
|
o && o(t);
|
|
13
13
|
};
|
|
14
14
|
return /* @__PURE__ */ e(
|
|
15
15
|
"div",
|
|
16
16
|
{
|
|
17
|
-
className:
|
|
17
|
+
className: i(
|
|
18
18
|
"min-w-[94px] text-center rounded-lg px-4 py-2 hover:cursor-pointer",
|
|
19
19
|
{
|
|
20
20
|
"bg-ghostWhite": r !== t,
|
|
21
21
|
"bg-lightBlue": r === t
|
|
22
22
|
}
|
|
23
23
|
),
|
|
24
|
-
onClick:
|
|
25
|
-
children: /* @__PURE__ */ e(
|
|
24
|
+
onClick: s,
|
|
25
|
+
children: /* @__PURE__ */ e(n.Text, { className: "text-sm text-slateGray font-medium", children: m })
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
};
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import f from "
|
|
3
|
-
import i from "../../icons/
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
const T = ({
|
|
1
|
+
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { Typography as n, Modal as f } from "antd";
|
|
3
|
+
import i from "../../icons/success-icon/index.js";
|
|
4
|
+
import u from "../../icons/failed-icon/index.js";
|
|
5
|
+
const N = ({
|
|
7
6
|
status: m = "success",
|
|
8
7
|
title: s,
|
|
9
|
-
subtitle:
|
|
8
|
+
subtitle: o,
|
|
10
9
|
extra: c,
|
|
11
10
|
classNames: r,
|
|
12
11
|
...t
|
|
13
12
|
}) => {
|
|
14
|
-
const p = typeof s == "string" ? /* @__PURE__ */
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
13
|
+
const p = typeof s == "string" ? /* @__PURE__ */ e(n.Text, { className: "font-bold text-2xl m-0", children: s }) : s, d = typeof o == "string" ? /* @__PURE__ */ e(n.Text, { className: "text-sm font-normal m-0", children: o }) : o;
|
|
14
|
+
return /* @__PURE__ */ e(
|
|
15
|
+
f,
|
|
17
16
|
{
|
|
18
17
|
...t,
|
|
19
18
|
classNames: { ...r, content: "!p-10 !rounded-2xl" },
|
|
20
19
|
footer: null,
|
|
21
20
|
closeIcon: null,
|
|
22
21
|
children: /* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-y-8", children: [
|
|
23
|
-
m === "success" ? /* @__PURE__ */
|
|
22
|
+
m === "success" ? /* @__PURE__ */ e(i, {}) : /* @__PURE__ */ e(u, {}),
|
|
24
23
|
/* @__PURE__ */ l("div", { className: "flex flex-col items-center gap-y-2", children: [
|
|
25
24
|
p,
|
|
26
|
-
|
|
25
|
+
o && d
|
|
27
26
|
] }),
|
|
28
|
-
c == null ? void 0 : c.map((
|
|
27
|
+
c == null ? void 0 : c.map((a) => a)
|
|
29
28
|
] })
|
|
30
29
|
}
|
|
31
30
|
);
|
|
32
31
|
};
|
|
33
32
|
export {
|
|
34
|
-
|
|
33
|
+
N as ResultPopup
|
|
35
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import "antd";
|
|
3
|
+
import { H as r, S as p } from "../../index-WlPrqxgY.js";
|
|
3
4
|
import "react";
|
|
4
|
-
import "../../index-ELHBhuK9.js";
|
|
5
5
|
export {
|
|
6
6
|
r as HighlightSideMenuItemContext,
|
|
7
7
|
p as SideMenu
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import "antd";
|
|
3
|
+
import "classnames";
|
|
3
4
|
import "react";
|
|
4
5
|
import "../../icons/dashboard-icon/index.js";
|
|
5
|
-
import { a as
|
|
6
|
+
import { a as d } from "../../index-WlPrqxgY.js";
|
|
6
7
|
import "../../theme.js";
|
|
7
|
-
import "../../index-Fn8q8B3V.js";
|
|
8
|
-
import "../../index-0mpuHoS5.js";
|
|
9
|
-
import "../../index-ELHBhuK9.js";
|
|
10
8
|
export {
|
|
11
|
-
|
|
9
|
+
d as SideMenuItem
|
|
12
10
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as a, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import l from "classnames";
|
|
3
3
|
import { useState as p, useEffect as h } from "react";
|
|
4
4
|
const v = ({
|
|
5
5
|
className: f,
|
|
@@ -8,14 +8,14 @@ const v = ({
|
|
|
8
8
|
onChange: n,
|
|
9
9
|
items: d
|
|
10
10
|
}) => {
|
|
11
|
-
const [t,
|
|
11
|
+
const [t, o] = p(i);
|
|
12
12
|
h(() => {
|
|
13
|
-
s &&
|
|
14
|
-
}, [s,
|
|
13
|
+
s && o(s);
|
|
14
|
+
}, [s, o]);
|
|
15
15
|
const c = (r) => {
|
|
16
|
-
|
|
16
|
+
o(r), n && n(r);
|
|
17
17
|
};
|
|
18
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ a("div", { className: l(f, "flex font-sans"), children: d.map((r, b) => {
|
|
19
19
|
const e = b + 1;
|
|
20
20
|
return /* @__PURE__ */ m(
|
|
21
21
|
"div",
|
|
@@ -28,7 +28,7 @@ const v = ({
|
|
|
28
28
|
}
|
|
29
29
|
),
|
|
30
30
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ a(
|
|
32
32
|
"span",
|
|
33
33
|
{
|
|
34
34
|
onClick: () => c(e),
|
|
@@ -42,7 +42,7 @@ const v = ({
|
|
|
42
42
|
children: e
|
|
43
43
|
}
|
|
44
44
|
),
|
|
45
|
-
/* @__PURE__ */
|
|
45
|
+
/* @__PURE__ */ a("span", { className: "text-center", children: r.title })
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
48
|
e
|