@hybridcore/ui 1.4.29 → 1.4.30
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.
|
@@ -1,26 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { AlternateCardRoot as
|
|
3
|
-
import { Box as
|
|
4
|
-
const
|
|
5
|
-
title:
|
|
6
|
-
subTitle:
|
|
1
|
+
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { AlternateCardRoot as w, AlternateCardMenuContainer as b } from "./styled.js";
|
|
3
|
+
import { Box as o, Skeleton as i, Typography as a } from "@mui/material";
|
|
4
|
+
const u = ({
|
|
5
|
+
title: s,
|
|
6
|
+
subTitle: l,
|
|
7
7
|
text: d,
|
|
8
|
-
avatar:
|
|
9
|
-
footer:
|
|
10
|
-
menu:
|
|
8
|
+
avatar: h,
|
|
9
|
+
footer: p,
|
|
10
|
+
menu: m,
|
|
11
11
|
extra: x,
|
|
12
|
-
|
|
12
|
+
loading: t,
|
|
13
|
+
onClick: n
|
|
13
14
|
}) => {
|
|
14
15
|
const c = () => {
|
|
15
|
-
|
|
16
|
+
n && n();
|
|
16
17
|
};
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
return /* @__PURE__ */ r(w, { children: [
|
|
19
|
+
m && /* @__PURE__ */ e(b, { className: "menu-container", children: m }),
|
|
20
|
+
/* @__PURE__ */ r(o, { display: "flex", alignItems: "center", children: [
|
|
21
|
+
h && /* @__PURE__ */ e(o, { mr: 2, children: t ? /* @__PURE__ */ e(
|
|
22
|
+
i,
|
|
23
|
+
{
|
|
24
|
+
animation: "wave",
|
|
25
|
+
variant: "circular",
|
|
26
|
+
width: 42,
|
|
27
|
+
height: 42
|
|
28
|
+
}
|
|
29
|
+
) : h }),
|
|
30
|
+
/* @__PURE__ */ r(o, { width: "100%", children: [
|
|
31
|
+
t ? /* @__PURE__ */ e(
|
|
32
|
+
i,
|
|
33
|
+
{
|
|
34
|
+
animation: "wave",
|
|
35
|
+
height: 10,
|
|
36
|
+
width: "50%",
|
|
37
|
+
sx: { mb: 0.25, mt: 0.35 }
|
|
38
|
+
}
|
|
39
|
+
) : /* @__PURE__ */ e(
|
|
40
|
+
a,
|
|
24
41
|
{
|
|
25
42
|
gutterBottom: !0,
|
|
26
43
|
variant: "subtitle1",
|
|
@@ -32,15 +49,23 @@ const k = ({
|
|
|
32
49
|
display: "-webkit-box",
|
|
33
50
|
WebkitLineClamp: 3,
|
|
34
51
|
WebkitBoxOrient: "vertical",
|
|
35
|
-
cursor:
|
|
52
|
+
cursor: n ? "pointer" : "default",
|
|
36
53
|
lineHeight: "22px"
|
|
37
54
|
},
|
|
38
55
|
onClick: c,
|
|
39
|
-
children:
|
|
56
|
+
children: s
|
|
40
57
|
}
|
|
41
58
|
),
|
|
42
|
-
|
|
43
|
-
|
|
59
|
+
l && (t ? /* @__PURE__ */ e(
|
|
60
|
+
i,
|
|
61
|
+
{
|
|
62
|
+
animation: "wave",
|
|
63
|
+
height: 10,
|
|
64
|
+
width: "40%",
|
|
65
|
+
sx: { mb: 0.25, mt: 0.35 }
|
|
66
|
+
}
|
|
67
|
+
) : /* @__PURE__ */ e(
|
|
68
|
+
a,
|
|
44
69
|
{
|
|
45
70
|
variant: "caption",
|
|
46
71
|
component: "p",
|
|
@@ -53,13 +78,16 @@ const k = ({
|
|
|
53
78
|
WebkitBoxOrient: "vertical",
|
|
54
79
|
lineHeight: "16px"
|
|
55
80
|
},
|
|
56
|
-
children:
|
|
81
|
+
children: l
|
|
57
82
|
}
|
|
58
|
-
)
|
|
83
|
+
))
|
|
59
84
|
] })
|
|
60
85
|
] }),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
86
|
+
t ? /* @__PURE__ */ r(o, { children: [
|
|
87
|
+
/* @__PURE__ */ e(i, { animation: "wave", height: 10, sx: { mb: 0.5, mt: 0.5 } }),
|
|
88
|
+
/* @__PURE__ */ e(i, { animation: "wave", height: 10, width: "80%", sx: { mb: 0.5 } })
|
|
89
|
+
] }) : /* @__PURE__ */ e(
|
|
90
|
+
a,
|
|
63
91
|
{
|
|
64
92
|
variant: "caption",
|
|
65
93
|
component: "p",
|
|
@@ -71,16 +99,24 @@ const k = ({
|
|
|
71
99
|
WebkitLineClamp: 4,
|
|
72
100
|
WebkitBoxOrient: "vertical",
|
|
73
101
|
lineHeight: "16px",
|
|
74
|
-
cursor:
|
|
102
|
+
cursor: n ? "pointer" : "default"
|
|
75
103
|
},
|
|
76
104
|
onClick: c,
|
|
77
105
|
children: /* @__PURE__ */ e("small", { children: d })
|
|
78
106
|
}
|
|
79
107
|
),
|
|
80
|
-
|
|
81
|
-
|
|
108
|
+
t ? /* @__PURE__ */ e(
|
|
109
|
+
i,
|
|
110
|
+
{
|
|
111
|
+
animation: "wave",
|
|
112
|
+
height: 10,
|
|
113
|
+
width: "100px",
|
|
114
|
+
sx: { mb: 1, mt: 1 }
|
|
115
|
+
}
|
|
116
|
+
) : p,
|
|
117
|
+
t ? null : x
|
|
82
118
|
] });
|
|
83
119
|
};
|
|
84
120
|
export {
|
|
85
|
-
|
|
121
|
+
u as CardAlternate
|
|
86
122
|
};
|