@hybridcore/ui 1.5.60 → 1.5.62
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,20 +1,20 @@
|
|
|
1
1
|
import { jsxs as r, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Box as
|
|
2
|
+
import { Box as t, Skeleton as n, Typography as a } from "@mui/material";
|
|
3
3
|
import { AlternateCardRoot as b, AlternateCardMenuContainer as v } from "./styled.js";
|
|
4
|
-
const
|
|
5
|
-
title:
|
|
6
|
-
subTitle:
|
|
7
|
-
text:
|
|
8
|
-
avatar:
|
|
9
|
-
footer:
|
|
10
|
-
menu:
|
|
11
|
-
extra:
|
|
12
|
-
loading:
|
|
4
|
+
const g = ({
|
|
5
|
+
title: d,
|
|
6
|
+
subTitle: h,
|
|
7
|
+
text: l,
|
|
8
|
+
avatar: s,
|
|
9
|
+
footer: p,
|
|
10
|
+
menu: m,
|
|
11
|
+
extra: x,
|
|
12
|
+
loading: i,
|
|
13
13
|
rightMenu: w,
|
|
14
|
-
onClick:
|
|
14
|
+
onClick: o
|
|
15
15
|
}) => {
|
|
16
|
-
const
|
|
17
|
-
|
|
16
|
+
const c = () => {
|
|
17
|
+
o && o();
|
|
18
18
|
};
|
|
19
19
|
return /* @__PURE__ */ r(
|
|
20
20
|
b,
|
|
@@ -23,10 +23,10 @@ const y = ({
|
|
|
23
23
|
display: "flex"
|
|
24
24
|
},
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */ r(
|
|
27
|
-
|
|
28
|
-
/* @__PURE__ */ r(
|
|
29
|
-
|
|
26
|
+
/* @__PURE__ */ r(t, { flex: 1, children: [
|
|
27
|
+
m && /* @__PURE__ */ e(v, { className: "menu-container", children: m }),
|
|
28
|
+
/* @__PURE__ */ r(t, { display: "flex", alignItems: "center", children: [
|
|
29
|
+
s && /* @__PURE__ */ e(t, { mr: 2, children: i ? /* @__PURE__ */ e(
|
|
30
30
|
n,
|
|
31
31
|
{
|
|
32
32
|
animation: "wave",
|
|
@@ -34,9 +34,9 @@ const y = ({
|
|
|
34
34
|
width: 42,
|
|
35
35
|
height: 42
|
|
36
36
|
}
|
|
37
|
-
) :
|
|
38
|
-
/* @__PURE__ */ r(
|
|
39
|
-
|
|
37
|
+
) : s }),
|
|
38
|
+
/* @__PURE__ */ r(t, { width: "100%", children: [
|
|
39
|
+
i ? /* @__PURE__ */ e(
|
|
40
40
|
n,
|
|
41
41
|
{
|
|
42
42
|
animation: "wave",
|
|
@@ -45,7 +45,7 @@ const y = ({
|
|
|
45
45
|
sx: { mb: 0.25, mt: 0.35 }
|
|
46
46
|
}
|
|
47
47
|
) : /* @__PURE__ */ e(
|
|
48
|
-
|
|
48
|
+
a,
|
|
49
49
|
{
|
|
50
50
|
gutterBottom: !0,
|
|
51
51
|
variant: "subtitle1",
|
|
@@ -57,14 +57,14 @@ const y = ({
|
|
|
57
57
|
display: "-webkit-box",
|
|
58
58
|
WebkitLineClamp: 3,
|
|
59
59
|
WebkitBoxOrient: "vertical",
|
|
60
|
-
cursor:
|
|
60
|
+
cursor: o ? "pointer" : "default",
|
|
61
61
|
lineHeight: "22px"
|
|
62
62
|
},
|
|
63
|
-
onClick:
|
|
64
|
-
children:
|
|
63
|
+
onClick: c,
|
|
64
|
+
children: d
|
|
65
65
|
}
|
|
66
66
|
),
|
|
67
|
-
|
|
67
|
+
h && (i ? /* @__PURE__ */ e(
|
|
68
68
|
n,
|
|
69
69
|
{
|
|
70
70
|
animation: "wave",
|
|
@@ -73,7 +73,7 @@ const y = ({
|
|
|
73
73
|
sx: { mb: 0.25, mt: 0.35 }
|
|
74
74
|
}
|
|
75
75
|
) : /* @__PURE__ */ e(
|
|
76
|
-
|
|
76
|
+
a,
|
|
77
77
|
{
|
|
78
78
|
variant: "caption",
|
|
79
79
|
component: "p",
|
|
@@ -86,12 +86,12 @@ const y = ({
|
|
|
86
86
|
WebkitBoxOrient: "vertical",
|
|
87
87
|
lineHeight: "16px"
|
|
88
88
|
},
|
|
89
|
-
children:
|
|
89
|
+
children: h
|
|
90
90
|
}
|
|
91
91
|
))
|
|
92
92
|
] })
|
|
93
93
|
] }),
|
|
94
|
-
|
|
94
|
+
i ? /* @__PURE__ */ r(t, { children: [
|
|
95
95
|
/* @__PURE__ */ e(n, { animation: "wave", height: 10, sx: { mb: 0.5, mt: 0.5 } }),
|
|
96
96
|
/* @__PURE__ */ e(
|
|
97
97
|
n,
|
|
@@ -103,7 +103,7 @@ const y = ({
|
|
|
103
103
|
}
|
|
104
104
|
)
|
|
105
105
|
] }) : /* @__PURE__ */ e(
|
|
106
|
-
|
|
106
|
+
a,
|
|
107
107
|
{
|
|
108
108
|
variant: "caption",
|
|
109
109
|
component: "p",
|
|
@@ -115,13 +115,14 @@ const y = ({
|
|
|
115
115
|
WebkitLineClamp: 4,
|
|
116
116
|
WebkitBoxOrient: "vertical",
|
|
117
117
|
lineHeight: "16px",
|
|
118
|
-
cursor:
|
|
118
|
+
cursor: o ? "pointer" : "default",
|
|
119
|
+
my: 2
|
|
119
120
|
},
|
|
120
|
-
onClick:
|
|
121
|
-
children: /* @__PURE__ */ e("small", { children:
|
|
121
|
+
onClick: c,
|
|
122
|
+
children: /* @__PURE__ */ e("small", { children: typeof l == "string" ? l.length > 350 ? `${l.substring(0, 350)}...` : l : null })
|
|
122
123
|
}
|
|
123
124
|
),
|
|
124
|
-
|
|
125
|
+
i ? /* @__PURE__ */ e(
|
|
125
126
|
n,
|
|
126
127
|
{
|
|
127
128
|
animation: "wave",
|
|
@@ -129,14 +130,14 @@ const y = ({
|
|
|
129
130
|
width: "100px",
|
|
130
131
|
sx: { mb: 1, mt: 1 }
|
|
131
132
|
}
|
|
132
|
-
) :
|
|
133
|
-
|
|
133
|
+
) : p,
|
|
134
|
+
i ? null : x
|
|
134
135
|
] }),
|
|
135
|
-
/* @__PURE__ */ e(
|
|
136
|
+
/* @__PURE__ */ e(t, { children: w })
|
|
136
137
|
]
|
|
137
138
|
}
|
|
138
139
|
);
|
|
139
140
|
};
|
|
140
141
|
export {
|
|
141
|
-
|
|
142
|
+
g as CardAlternate
|
|
142
143
|
};
|