@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 i, Skeleton as n, Typography as o } from "@mui/material";
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 y = ({
5
- title: s,
6
- subTitle: a,
7
- text: d,
8
- avatar: h,
9
- footer: x,
10
- menu: c,
11
- extra: p,
12
- loading: t,
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: l
14
+ onClick: o
15
15
  }) => {
16
- const m = () => {
17
- l && l();
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(i, { flex: 1, 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(
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
- ) : h }),
38
- /* @__PURE__ */ r(i, { width: "100%", children: [
39
- t ? /* @__PURE__ */ e(
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
- o,
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: l ? "pointer" : "default",
60
+ cursor: o ? "pointer" : "default",
61
61
  lineHeight: "22px"
62
62
  },
63
- onClick: m,
64
- children: s
63
+ onClick: c,
64
+ children: d
65
65
  }
66
66
  ),
67
- a && (t ? /* @__PURE__ */ e(
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
- o,
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: a
89
+ children: h
90
90
  }
91
91
  ))
92
92
  ] })
93
93
  ] }),
94
- t ? /* @__PURE__ */ r(i, { children: [
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
- o,
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: l ? "pointer" : "default"
118
+ cursor: o ? "pointer" : "default",
119
+ my: 2
119
120
  },
120
- onClick: m,
121
- children: /* @__PURE__ */ e("small", { children: d })
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
- t ? /* @__PURE__ */ e(
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
- ) : x,
133
- t ? null : p
133
+ ) : p,
134
+ i ? null : x
134
135
  ] }),
135
- /* @__PURE__ */ e(i, { children: w })
136
+ /* @__PURE__ */ e(t, { children: w })
136
137
  ]
137
138
  }
138
139
  );
139
140
  };
140
141
  export {
141
- y as CardAlternate
142
+ g as CardAlternate
142
143
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridcore/ui",
3
3
  "description": "Hybrid Core UI Library",
4
- "version": "1.5.60",
4
+ "version": "1.5.62",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",