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