gasp-components 1.0.19 → 1.0.20
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/components/side-menu/index.d.ts +0 -1
- package/dist/components/side-menu/index.js +24 -6
- package/dist/components/side-menu/menu-item.d.ts +1 -0
- package/dist/components/side-menu/menu-item.js +48 -8
- package/dist/main.js +1 -1
- package/package.json +1 -1
- package/dist/index-WlPrqxgY.js +0 -87
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "antd";
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { jsxs as m, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { Space as p } from "antd";
|
|
3
|
+
import { SideMenuItem as r } from "./menu-item.js";
|
|
4
|
+
const x = ({ items: e, footerItems: i }) => /* @__PURE__ */ m("div", { className: "w-full h-full flex flex-col gap-y-2", children: [
|
|
5
|
+
e.map(({ onClick: l, ...a }) => /* @__PURE__ */ c(
|
|
6
|
+
r,
|
|
7
|
+
{
|
|
8
|
+
...a,
|
|
9
|
+
onClick: () => {
|
|
10
|
+
l && l();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
)),
|
|
14
|
+
/* @__PURE__ */ c(p, { direction: "vertical", className: "mt-auto", children: i == null ? void 0 : i.map(({ onClick: l, ...a }) => /* @__PURE__ */ c(
|
|
15
|
+
r,
|
|
16
|
+
{
|
|
17
|
+
...a,
|
|
18
|
+
onClick: () => {
|
|
19
|
+
l && l();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
)) })
|
|
23
|
+
] });
|
|
5
24
|
export {
|
|
6
|
-
|
|
7
|
-
p as SideMenu
|
|
25
|
+
x as SideMenu
|
|
8
26
|
};
|
|
@@ -1,10 +1,50 @@
|
|
|
1
|
-
import "react/jsx-runtime";
|
|
2
|
-
import "antd";
|
|
3
|
-
import "classnames";
|
|
4
|
-
import "react";
|
|
5
|
-
import "../../icons/dashboard-icon/index.js";
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { jsx as l, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { theme as d, Typography as f, Space as u } from "antd";
|
|
3
|
+
import t from "classnames";
|
|
4
|
+
import r from "react";
|
|
5
|
+
import x from "../../icons/dashboard-icon/index.js";
|
|
6
|
+
import { libTheme as g } from "../../theme.js";
|
|
7
|
+
const I = ({
|
|
8
|
+
icon: m = /* @__PURE__ */ l(x, {}),
|
|
9
|
+
content: e,
|
|
10
|
+
onClick: a,
|
|
11
|
+
className: n,
|
|
12
|
+
highlighted: o
|
|
13
|
+
}) => {
|
|
14
|
+
const s = t(
|
|
15
|
+
"text-sm leading-none",
|
|
16
|
+
{
|
|
17
|
+
"text-dodgerBlue": o,
|
|
18
|
+
"font-bold": o
|
|
19
|
+
},
|
|
20
|
+
typeof e == "string" ? null : e.props.className
|
|
21
|
+
), p = r.cloneElement(m, {
|
|
22
|
+
color: o ? d.getDesignToken(g).colorPrimary : "#64748B"
|
|
23
|
+
}), i = typeof e == "string" ? r.cloneElement(
|
|
24
|
+
/* @__PURE__ */ l(f.Text, { className: s, children: e })
|
|
25
|
+
) : r.cloneElement(e, {
|
|
26
|
+
...e.props,
|
|
27
|
+
className: s
|
|
28
|
+
});
|
|
29
|
+
return /* @__PURE__ */ c(
|
|
30
|
+
u,
|
|
31
|
+
{
|
|
32
|
+
size: 16,
|
|
33
|
+
onClick: a,
|
|
34
|
+
className: t(
|
|
35
|
+
"w-full leading-[0px] py-3 px-4 rounded-xl hover:cursor-pointer transition-colors duration-300 hover:bg-ghostWhite",
|
|
36
|
+
{
|
|
37
|
+
"bg-ghostWhite": o
|
|
38
|
+
},
|
|
39
|
+
n
|
|
40
|
+
),
|
|
41
|
+
children: [
|
|
42
|
+
p,
|
|
43
|
+
i
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
};
|
|
8
48
|
export {
|
|
9
|
-
|
|
49
|
+
I as SideMenuItem
|
|
10
50
|
};
|
package/dist/main.js
CHANGED
|
@@ -19,7 +19,7 @@ import { RadioButton as q } from "./components/radio-button/index.js";
|
|
|
19
19
|
import { RadioButtonGroup as K } from "./components/radio-button-group/index.js";
|
|
20
20
|
import { ResultPopup as Q } from "./components/result-popup/index.js";
|
|
21
21
|
import { Select as Y } from "./components/select/index.js";
|
|
22
|
-
import {
|
|
22
|
+
import { SideMenu as _ } from "./components/side-menu/index.js";
|
|
23
23
|
import { Steps as oo } from "./components/steps/index.js";
|
|
24
24
|
import { Table as no } from "./components/table/index.js";
|
|
25
25
|
import { Tabs as to } from "./components/tabs/index.js";
|
package/package.json
CHANGED
package/dist/index-WlPrqxgY.js
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
|
-
import { theme as g, Typography as x, Space as m } from "antd";
|
|
3
|
-
import c from "classnames";
|
|
4
|
-
import n, { useContext as y, createContext as f, useState as v } from "react";
|
|
5
|
-
import N from "./icons/dashboard-icon/index.js";
|
|
6
|
-
import { libTheme as k } from "./theme.js";
|
|
7
|
-
const d = ({
|
|
8
|
-
icon: t = /* @__PURE__ */ o(N, {}),
|
|
9
|
-
content: l,
|
|
10
|
-
onClick: s,
|
|
11
|
-
className: a
|
|
12
|
-
}) => {
|
|
13
|
-
const r = y(i), e = c(
|
|
14
|
-
"text-sm leading-none",
|
|
15
|
-
{
|
|
16
|
-
"text-dodgerBlue": r,
|
|
17
|
-
"font-bold": r
|
|
18
|
-
},
|
|
19
|
-
typeof l == "string" ? null : l.props.className
|
|
20
|
-
), h = n.cloneElement(t, {
|
|
21
|
-
color: r ? g.getDesignToken(k).colorPrimary : "#64748B"
|
|
22
|
-
}), u = typeof l == "string" ? n.cloneElement(
|
|
23
|
-
/* @__PURE__ */ o(x.Text, { className: e, children: l })
|
|
24
|
-
) : n.cloneElement(l, {
|
|
25
|
-
...l.props,
|
|
26
|
-
className: e
|
|
27
|
-
});
|
|
28
|
-
return /* @__PURE__ */ p(
|
|
29
|
-
m,
|
|
30
|
-
{
|
|
31
|
-
size: 16,
|
|
32
|
-
onClick: s,
|
|
33
|
-
className: c(
|
|
34
|
-
"w-full leading-[0px] py-3 px-4 rounded-xl hover:cursor-pointer transition-colors duration-300 hover:bg-ghostWhite",
|
|
35
|
-
{
|
|
36
|
-
"bg-ghostWhite": r
|
|
37
|
-
},
|
|
38
|
-
a
|
|
39
|
-
),
|
|
40
|
-
children: [
|
|
41
|
-
h,
|
|
42
|
-
u
|
|
43
|
-
]
|
|
44
|
-
}
|
|
45
|
-
);
|
|
46
|
-
}, i = f(!1), M = ({ items: t, footerItems: l }) => {
|
|
47
|
-
const [s, a] = v();
|
|
48
|
-
return /* @__PURE__ */ p("div", { className: "w-full h-full flex flex-col gap-y-2", children: [
|
|
49
|
-
t.map(({ onClick: r, ...e }) => /* @__PURE__ */ o(
|
|
50
|
-
i.Provider,
|
|
51
|
-
{
|
|
52
|
-
value: s === e.key,
|
|
53
|
-
children: /* @__PURE__ */ o(
|
|
54
|
-
d,
|
|
55
|
-
{
|
|
56
|
-
...e,
|
|
57
|
-
onClick: () => {
|
|
58
|
-
a(e.key), r && r();
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
)
|
|
62
|
-
},
|
|
63
|
-
e.key
|
|
64
|
-
)),
|
|
65
|
-
/* @__PURE__ */ o(m, { direction: "vertical", className: "mt-auto", children: l == null ? void 0 : l.map(({ onClick: r, ...e }) => /* @__PURE__ */ o(
|
|
66
|
-
i.Provider,
|
|
67
|
-
{
|
|
68
|
-
value: s === e.key,
|
|
69
|
-
children: /* @__PURE__ */ o(
|
|
70
|
-
d,
|
|
71
|
-
{
|
|
72
|
-
...e,
|
|
73
|
-
onClick: () => {
|
|
74
|
-
a(e.key), r && r();
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
)
|
|
78
|
-
},
|
|
79
|
-
e.key
|
|
80
|
-
)) })
|
|
81
|
-
] });
|
|
82
|
-
};
|
|
83
|
-
export {
|
|
84
|
-
i as H,
|
|
85
|
-
M as S,
|
|
86
|
-
d as a
|
|
87
|
-
};
|