@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 i, jsx as e } from "react/jsx-runtime";
2
- import { AlternateCardRoot as h, AlternateCardMenuContainer as m } from "./styled.js";
3
- import { Box as r, Typography as n } from "@mui/material";
4
- const k = ({
5
- title: p,
6
- subTitle: o,
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: l,
9
- footer: s,
10
- menu: a,
8
+ avatar: h,
9
+ footer: p,
10
+ menu: m,
11
11
  extra: x,
12
- onClick: t
12
+ loading: t,
13
+ onClick: n
13
14
  }) => {
14
15
  const c = () => {
15
- t && t();
16
+ n && n();
16
17
  };
17
- return /* @__PURE__ */ i(h, { children: [
18
- a && /* @__PURE__ */ e(m, { className: "menu-container", children: a }),
19
- /* @__PURE__ */ i(r, { display: "flex", alignItems: "center", children: [
20
- l && /* @__PURE__ */ e(r, { mr: 2, children: l }),
21
- /* @__PURE__ */ i(r, { children: [
22
- /* @__PURE__ */ e(
23
- n,
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: t ? "pointer" : "default",
52
+ cursor: n ? "pointer" : "default",
36
53
  lineHeight: "22px"
37
54
  },
38
55
  onClick: c,
39
- children: p
56
+ children: s
40
57
  }
41
58
  ),
42
- o && /* @__PURE__ */ e(
43
- n,
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: o
81
+ children: l
57
82
  }
58
- )
83
+ ))
59
84
  ] })
60
85
  ] }),
61
- /* @__PURE__ */ e(
62
- n,
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: t ? "pointer" : "default"
102
+ cursor: n ? "pointer" : "default"
75
103
  },
76
104
  onClick: c,
77
105
  children: /* @__PURE__ */ e("small", { children: d })
78
106
  }
79
107
  ),
80
- s,
81
- x
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
- k as CardAlternate
121
+ u as CardAlternate
86
122
  };
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.4.29",
4
+ "version": "1.4.30",
5
5
  "author": "Hybrid Core",
6
6
  "license": "ISC",
7
7
  "type": "module",