@solostylist/ui-kit 1.0.188 → 1.0.190
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.
- package/dist/s-accordion/package.json +5 -5
- package/dist/s-action-overlay/package.json +5 -5
- package/dist/s-action-overlay/s-action-overlay.js +0 -1
- package/dist/s-ai-tool-bar/package.json +5 -5
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +67 -71
- package/dist/s-autocomplete/package.json +5 -5
- package/dist/s-avatar/package.json +5 -5
- package/dist/s-blur-text/package.json +5 -5
- package/dist/s-breadcrumbs/package.json +5 -5
- package/dist/s-button/package.json +5 -5
- package/dist/s-button/s-button.d.ts +1 -2
- package/dist/s-button-link/package.json +5 -5
- package/dist/s-carousel/package.json +5 -5
- package/dist/s-category-card/package.json +5 -5
- package/dist/s-chat-input/package.json +5 -5
- package/dist/s-chat-input/s-chat-input.js +132 -129
- package/dist/s-chat-message/package.json +5 -5
- package/dist/s-chat-message/s-chat-message.js +28 -29
- package/dist/s-checkbox/package.json +5 -5
- package/dist/s-chip/package.json +5 -5
- package/dist/s-chip/s-chip.d.ts +1 -2
- package/dist/s-chips/package.json +5 -5
- package/dist/s-chips/s-chips.js +42 -41
- package/dist/s-code-block/package.json +5 -5
- package/dist/s-code-block/s-code-block.js +1 -2
- package/dist/s-comment-message/package.json +5 -5
- package/dist/s-comment-message/s-comment-message.js +67 -69
- package/dist/s-copyable-text/package.json +5 -5
- package/dist/s-countdown/package.json +5 -5
- package/dist/s-data-table/package.json +5 -5
- package/dist/s-data-table/s-data-table.js +157 -157
- package/dist/s-date-picker/package.json +5 -5
- package/dist/s-datetime-picker/package.json +5 -5
- package/dist/s-dialog/package.json +5 -5
- package/dist/s-dialog-confirm/package.json +5 -5
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/package.json +5 -5
- package/dist/s-dialog-message/s-dialog-message.js +3 -3
- package/dist/s-empty/package.json +5 -5
- package/dist/s-error/package.json +5 -5
- package/dist/s-error-layout/package.json +5 -5
- package/dist/s-file-dropzone/package.json +5 -5
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +1 -5
- package/dist/s-file-dropzone/s-file-dropzone.js +17 -19
- package/dist/s-file-icon/package.json +5 -5
- package/dist/s-flex-box/package.json +5 -5
- package/dist/s-flex-box/s-flex-box.d.ts +1 -2
- package/dist/s-form/package.json +5 -5
- package/dist/s-gallery/package.json +5 -5
- package/dist/s-gallery/s-gallery.js +86 -85
- package/dist/s-glow-button/package.json +5 -5
- package/dist/s-gradient-icon/package.json +5 -5
- package/dist/s-gradient-icon/s-gradient-icon.d.ts +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +23 -24
- package/dist/s-i18n-provider/package.json +5 -5
- package/dist/s-icon-button/package.json +5 -5
- package/dist/s-image-comparison/package.json +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +50 -44
- package/dist/s-image-modal/package.json +5 -5
- package/dist/s-image-modal/s-image-modal.js +128 -128
- package/dist/s-item-not-found/package.json +5 -5
- package/dist/s-label/package.json +5 -5
- package/dist/s-language-switcher/package.json +5 -5
- package/dist/s-language-switcher/s-language-switcher.js +98 -96
- package/dist/s-lazy-image/package.json +5 -5
- package/dist/s-localization-provider/package.json +5 -5
- package/dist/s-moving-border/package.json +5 -5
- package/dist/s-moving-border/s-moving-border.js +73 -73
- package/dist/s-multi-select/package.json +5 -5
- package/dist/s-multi-select/s-multi-select.js +38 -38
- package/dist/s-no-ssr/package.json +5 -5
- package/dist/s-overlay-scrollbar/package.json +5 -5
- package/dist/s-pagination/package.json +5 -5
- package/dist/s-pixel-reveal/package.json +5 -5
- package/dist/s-pixel-reveal/s-pixel-reveal.js +35 -33
- package/dist/s-radial-pulse-animate/package.json +5 -5
- package/dist/s-rating/package.json +5 -5
- package/dist/s-rating/s-rating.d.ts +1 -2
- package/dist/s-review/package.json +5 -5
- package/dist/s-review/s-review.js +75 -77
- package/dist/s-scroll-reveal/package.json +6 -6
- package/dist/s-scroll-to-top/package.json +5 -5
- package/dist/s-scroll-velocity/package.json +5 -5
- package/dist/s-select/package.json +5 -5
- package/dist/s-select/s-select.d.ts +1 -1
- package/dist/s-select/s-select.js +19 -21
- package/dist/s-select-list/package.json +5 -5
- package/dist/s-select-list/s-select-list.d.ts +2 -2
- package/dist/s-skeleton/package.json +5 -5
- package/dist/s-snackbar-message/package.json +5 -5
- package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
- package/dist/s-spotlight-cursor/package.json +5 -5
- package/dist/s-stripe/package.json +5 -5
- package/dist/s-tabs/package.json +4 -4
- package/dist/s-tabs/s-tab.d.ts +1 -2
- package/dist/s-text-editor/package.json +5 -5
- package/dist/s-text-editor/s-text-editor-toolbar.js +55 -57
- package/dist/s-text-editor/s-text-editor.js +9 -9
- package/dist/s-text-field/package.json +5 -5
- package/dist/s-text-shimmer/package.json +5 -5
- package/dist/s-text-truncation/package.json +5 -5
- package/dist/s-theme-demo/package.json +5 -5
- package/dist/s-theme-provider/package.json +5 -5
- package/dist/s-theme-switch/package.json +5 -5
- package/dist/s-tip/package.json +5 -5
- package/dist/s-two-pane-layout/package.json +5 -5
- package/dist/s-typewriter-text/package.json +6 -6
- package/dist/s-zoom-image/package.json +5 -5
- package/package.json +8 -7
package/dist/s-chips/s-chips.js
CHANGED
|
@@ -1,77 +1,78 @@
|
|
|
1
1
|
import { j as s } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Box as
|
|
4
|
-
const
|
|
5
|
-
chips:
|
|
2
|
+
import { useRef as S, useState as m, useCallback as C, useEffect as E } from "react";
|
|
3
|
+
import { Box as p, Chip as c, Tooltip as R } from "@mui/material";
|
|
4
|
+
const v = ({
|
|
5
|
+
chips: t,
|
|
6
6
|
overflow: r = !0,
|
|
7
|
-
onClick:
|
|
8
|
-
overflowText:
|
|
7
|
+
onClick: h,
|
|
8
|
+
overflowText: d = "keywords"
|
|
9
9
|
}) => {
|
|
10
|
-
const u =
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
const u = S(null), [b, w] = m([]), [y, W] = m([]), [x, j] = m(0), l = C((i) => {
|
|
11
|
+
const e = document.createElement("span");
|
|
12
|
+
e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.textContent = i.trim(), document.body.appendChild(e);
|
|
13
|
+
const n = e.offsetWidth;
|
|
14
|
+
return document.body.removeChild(e), n + 16;
|
|
15
|
+
}, []), a = C(() => {
|
|
16
|
+
const i = u.current?.offsetWidth || 0;
|
|
17
|
+
let e = 0, n = 0;
|
|
18
|
+
for (let o = 0; o < t.length; o++) {
|
|
19
|
+
const f = l(t[o]);
|
|
20
|
+
if (e + f <= i)
|
|
21
|
+
e += f, n++;
|
|
17
22
|
else
|
|
18
23
|
break;
|
|
19
24
|
}
|
|
20
|
-
if (
|
|
21
|
-
const o =
|
|
22
|
-
for (; e + o >
|
|
23
|
-
|
|
25
|
+
if (n < t.length) {
|
|
26
|
+
const o = l(`+${t.length - n} ${d}`);
|
|
27
|
+
for (; e + o > i && n > 0; )
|
|
28
|
+
n--, e -= l(t[n]);
|
|
24
29
|
}
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
|
|
28
|
-
e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.textContent = t.trim(), document.body.appendChild(e);
|
|
29
|
-
const i = e.offsetWidth;
|
|
30
|
-
return document.body.removeChild(e), i + 16;
|
|
31
|
-
}, j = r ? { textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden" } : {};
|
|
32
|
-
return S(() => {
|
|
30
|
+
w(t.slice(0, n)), W(t.slice(n)), j(t.length - n);
|
|
31
|
+
}, [t, d, l]), g = r ? { textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden" } : {};
|
|
32
|
+
return E(() => {
|
|
33
33
|
if (r)
|
|
34
34
|
return a(), window.addEventListener("resize", a), () => {
|
|
35
35
|
window.removeEventListener("resize", a);
|
|
36
36
|
};
|
|
37
|
-
}, [
|
|
38
|
-
(r ?
|
|
39
|
-
|
|
37
|
+
}, [t, r, a]), /* @__PURE__ */ s.jsxs(p, { ref: u, display: "flex", maxWidth: "100%", flexWrap: r ? "nowrap" : "wrap", ...g, children: [
|
|
38
|
+
(r ? b : t).map((i) => /* @__PURE__ */ s.jsx(
|
|
39
|
+
p,
|
|
40
40
|
{
|
|
41
41
|
component: "span",
|
|
42
42
|
textTransform: "lowercase",
|
|
43
43
|
onClick: () => {
|
|
44
|
-
|
|
44
|
+
h?.(i);
|
|
45
45
|
},
|
|
46
46
|
children: /* @__PURE__ */ s.jsx(
|
|
47
|
-
|
|
47
|
+
c,
|
|
48
48
|
{
|
|
49
|
-
label:
|
|
49
|
+
label: i.trim(),
|
|
50
50
|
sx: {
|
|
51
51
|
mr: 1,
|
|
52
52
|
mb: 1,
|
|
53
53
|
userSelect: "none",
|
|
54
|
-
cursor:
|
|
54
|
+
cursor: h ? "pointer" : "default"
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
57
|
)
|
|
58
58
|
},
|
|
59
|
-
|
|
59
|
+
i
|
|
60
60
|
)),
|
|
61
61
|
r && x > 0 && /* @__PURE__ */ s.jsx(
|
|
62
|
-
|
|
62
|
+
R,
|
|
63
63
|
{
|
|
64
64
|
slotProps: {
|
|
65
65
|
tooltip: { style: { padding: "0.5rem" } }
|
|
66
66
|
},
|
|
67
67
|
arrow: !0,
|
|
68
68
|
placement: "top",
|
|
69
|
-
title: /* @__PURE__ */ s.jsx(
|
|
70
|
-
children: /* @__PURE__ */ s.jsx(
|
|
71
|
-
|
|
69
|
+
title: /* @__PURE__ */ s.jsx(p, { display: "flex", gap: 1, maxWidth: "240px", flexWrap: "wrap", children: y.map((i) => /* @__PURE__ */ s.jsx(c, { label: i.trim() }, i)) }),
|
|
70
|
+
children: /* @__PURE__ */ s.jsx(p, { component: "span", textTransform: "lowercase", children: /* @__PURE__ */ s.jsx(
|
|
71
|
+
c,
|
|
72
72
|
{
|
|
73
|
-
label: `+${x} ${
|
|
73
|
+
label: `+${x} ${d}`,
|
|
74
74
|
variant: "outlined",
|
|
75
|
+
color: "info",
|
|
75
76
|
sx: { mr: 1, mb: 1, userSelect: "none", cursor: "pointer" }
|
|
76
77
|
}
|
|
77
78
|
) })
|
|
@@ -79,8 +80,8 @@ const E = ({
|
|
|
79
80
|
)
|
|
80
81
|
] });
|
|
81
82
|
};
|
|
82
|
-
|
|
83
|
+
v.displayName = "SChips";
|
|
83
84
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
v as SChips,
|
|
86
|
+
v as default
|
|
86
87
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1012,7 +1012,6 @@ const w = {
|
|
|
1012
1012
|
u,
|
|
1013
1013
|
{
|
|
1014
1014
|
onClick: h,
|
|
1015
|
-
size: "small",
|
|
1016
1015
|
sx: {
|
|
1017
1016
|
position: "absolute",
|
|
1018
1017
|
top: 8,
|
|
@@ -1021,7 +1020,7 @@ const w = {
|
|
|
1021
1020
|
color: r ? "success.main" : "text.primary",
|
|
1022
1021
|
backdropFilter: "blur(8px)"
|
|
1023
1022
|
},
|
|
1024
|
-
children: r ? /* @__PURE__ */ o.jsx(m, {
|
|
1023
|
+
children: r ? /* @__PURE__ */ o.jsx(m, {}) : /* @__PURE__ */ o.jsx(f, {})
|
|
1025
1024
|
}
|
|
1026
1025
|
),
|
|
1027
1026
|
/* @__PURE__ */ o.jsx(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,127 +1,125 @@
|
|
|
1
1
|
import { j as t } from "../jsx-runtime-tc70JA_2.js";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Box as c, Stack as
|
|
2
|
+
import { useId as K, useState as L, useEffect as T } from "react";
|
|
3
|
+
import { Box as c, Stack as l, Typography as g, IconButton as N, Button as H, Collapse as O } from "@mui/material";
|
|
4
4
|
import { SSkeleton as e } from "../s-skeleton/s-skeleton.js";
|
|
5
|
-
import { SAvatar as
|
|
6
|
-
import { F as
|
|
7
|
-
import { c as
|
|
8
|
-
import { E as
|
|
9
|
-
const
|
|
5
|
+
import { SAvatar as Q } from "../s-avatar/s-avatar.js";
|
|
6
|
+
import { F as U } from "../Favorite-Cvjg7GqN.js";
|
|
7
|
+
import { c as b } from "../createSvgIcon-DTNHY3_v.js";
|
|
8
|
+
import { E as X } from "../ExpandMore-CTZrSZlF.js";
|
|
9
|
+
const Z = b(/* @__PURE__ */ t.jsx("path", {
|
|
10
10
|
d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"
|
|
11
|
-
}), "ExpandLess"),
|
|
11
|
+
}), "ExpandLess"), _ = b(/* @__PURE__ */ t.jsx("path", {
|
|
12
12
|
d: "M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3m-4.4 15.55-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05"
|
|
13
|
-
}), "FavoriteBorder"),
|
|
13
|
+
}), "FavoriteBorder"), tt = b(/* @__PURE__ */ t.jsx("path", {
|
|
14
14
|
d: "M10 9V5l-7 7 7 7v-4.1c5 0 8.5 1.6 11 5.1-1-5-4-10-11-11"
|
|
15
|
-
}), "Reply"),
|
|
16
|
-
const d = /* @__PURE__ */ new Date(), j = typeof
|
|
17
|
-
return
|
|
18
|
-
},
|
|
19
|
-
id:
|
|
15
|
+
}), "Reply"), et = (x) => {
|
|
16
|
+
const d = /* @__PURE__ */ new Date(), j = typeof x == "string" ? new Date(x) : x, p = d.getTime() - j.getTime(), f = Math.floor(p / 1e3), n = Math.floor(f / 60), i = Math.floor(n / 60), s = Math.floor(i / 24), h = Math.floor(s / 7), o = Math.floor(s / 30), r = Math.floor(s / 365);
|
|
17
|
+
return f < 60 ? "just now" : n < 60 ? n === 1 ? "1 minute ago" : `${n} minutes ago` : i < 24 ? i === 1 ? "1 hour ago" : `${i} hours ago` : s < 7 ? s === 1 ? "1 day ago" : `${s} days ago` : h < 4 ? h === 1 ? "1 week ago" : `${h} weeks ago` : o < 12 ? o === 1 ? "1 month ago" : `${o} months ago` : r === 1 ? "1 year ago" : `${r} years ago`;
|
|
18
|
+
}, W = ({
|
|
19
|
+
id: x,
|
|
20
20
|
userName: d,
|
|
21
21
|
userAvatar: j,
|
|
22
22
|
commentContent: p,
|
|
23
|
-
datetime:
|
|
23
|
+
datetime: f,
|
|
24
24
|
likes: n = 0,
|
|
25
25
|
isLiked: i = !1,
|
|
26
26
|
replies: s = [],
|
|
27
27
|
totalReplies: h,
|
|
28
|
-
onLike:
|
|
28
|
+
onLike: o,
|
|
29
29
|
onReply: r,
|
|
30
|
-
onToggleReplies:
|
|
30
|
+
onToggleReplies: S,
|
|
31
31
|
showReplies: u = !0,
|
|
32
|
-
avatarSize:
|
|
33
|
-
level:
|
|
34
|
-
maxLevel:
|
|
35
|
-
loading:
|
|
36
|
-
children:
|
|
37
|
-
sx:
|
|
32
|
+
avatarSize: m = 48,
|
|
33
|
+
level: k = 0,
|
|
34
|
+
maxLevel: $ = 3,
|
|
35
|
+
loading: A = !1,
|
|
36
|
+
children: E,
|
|
37
|
+
sx: B = {}
|
|
38
38
|
}) => {
|
|
39
|
-
const [
|
|
40
|
-
w ? (
|
|
41
|
-
},
|
|
42
|
-
r && r(
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
return
|
|
47
|
-
|
|
48
|
-
}, [n]),
|
|
49
|
-
|
|
50
|
-
}, [i]),
|
|
51
|
-
/* @__PURE__ */ t.jsx(e, { component: "rounded-avatar", width:
|
|
39
|
+
const P = K(), v = x ?? P, [R, I] = L(n), [w, M] = L(i), [y, V] = L(!1), Y = () => {
|
|
40
|
+
w ? (I((a) => Math.max(0, a - 1)), M(!1)) : (I((a) => a + 1), M(!0)), o && o(v);
|
|
41
|
+
}, q = () => {
|
|
42
|
+
r && r(v);
|
|
43
|
+
}, z = () => {
|
|
44
|
+
V(!y), S && S(v);
|
|
45
|
+
}, G = et(f), C = h ?? s.length, D = C > 0, F = Math.min(k, $) * 2;
|
|
46
|
+
return T(() => {
|
|
47
|
+
I(n);
|
|
48
|
+
}, [n]), T(() => {
|
|
49
|
+
M(i);
|
|
50
|
+
}, [i]), A ? /* @__PURE__ */ t.jsx(c, { sx: { pl: F, py: 1, ...B }, children: /* @__PURE__ */ t.jsxs(l, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
|
|
51
|
+
/* @__PURE__ */ t.jsx(e, { component: "rounded-avatar", width: m, height: m }),
|
|
52
52
|
/* @__PURE__ */ t.jsxs(c, { sx: { flex: 1 }, children: [
|
|
53
|
-
/* @__PURE__ */ t.jsxs(
|
|
53
|
+
/* @__PURE__ */ t.jsxs(l, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
|
|
54
54
|
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 120, height: 20 }),
|
|
55
55
|
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 80, height: 16 })
|
|
56
56
|
] }),
|
|
57
57
|
/* @__PURE__ */ t.jsx(e, { variant: "text", width: "100%", height: 16, sx: { mb: 0.5 } }),
|
|
58
58
|
/* @__PURE__ */ t.jsx(e, { variant: "text", width: "85%", height: 16, sx: { mb: 0.5 } }),
|
|
59
59
|
/* @__PURE__ */ t.jsx(e, { variant: "text", width: "70%", height: 16, sx: { mb: 2 } }),
|
|
60
|
-
/* @__PURE__ */ t.jsxs(
|
|
60
|
+
/* @__PURE__ */ t.jsxs(l, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
61
61
|
/* @__PURE__ */ t.jsx(e, { component: "icon-button" }),
|
|
62
62
|
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 20, height: 16 }),
|
|
63
63
|
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 60, height: 32 }),
|
|
64
64
|
/* @__PURE__ */ t.jsx(e, { variant: "text", width: 80, height: 32 })
|
|
65
65
|
] })
|
|
66
66
|
] })
|
|
67
|
-
] }) }) : /* @__PURE__ */ t.jsxs(c, { sx: { pl:
|
|
68
|
-
/* @__PURE__ */ t.jsxs(
|
|
69
|
-
/* @__PURE__ */ t.jsx(
|
|
67
|
+
] }) }) : /* @__PURE__ */ t.jsxs(c, { sx: { pl: F, py: 1, ...B }, children: [
|
|
68
|
+
/* @__PURE__ */ t.jsxs(l, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
|
|
69
|
+
/* @__PURE__ */ t.jsx(Q, { avatar: j, name: d, size: m }),
|
|
70
70
|
/* @__PURE__ */ t.jsxs(c, { sx: { flex: 1 }, children: [
|
|
71
|
-
/* @__PURE__ */ t.jsxs(
|
|
71
|
+
/* @__PURE__ */ t.jsxs(l, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
|
|
72
72
|
/* @__PURE__ */ t.jsx(g, { variant: "subtitle2", fontWeight: "600", children: d }),
|
|
73
|
-
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(g, { variant: "caption", children:
|
|
73
|
+
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(g, { variant: "caption", children: G }) })
|
|
74
74
|
] }),
|
|
75
75
|
/* @__PURE__ */ t.jsx(g, { variant: "body2", sx: { mb: 2, lineHeight: 1.6 }, children: p }),
|
|
76
|
-
/* @__PURE__ */ t.jsxs(
|
|
76
|
+
/* @__PURE__ */ t.jsxs(l, { direction: "row", spacing: 1, alignItems: "center", children: [
|
|
77
77
|
/* @__PURE__ */ t.jsx(
|
|
78
|
-
|
|
78
|
+
N,
|
|
79
79
|
{
|
|
80
|
-
|
|
81
|
-
onClick: A,
|
|
80
|
+
onClick: Y,
|
|
82
81
|
sx: {
|
|
83
82
|
color: w ? "error.main" : "text.secondary"
|
|
84
83
|
},
|
|
85
|
-
children: w ? /* @__PURE__ */ t.jsx(
|
|
84
|
+
children: w ? /* @__PURE__ */ t.jsx(U, {}) : /* @__PURE__ */ t.jsx(_, {})
|
|
86
85
|
}
|
|
87
86
|
),
|
|
88
|
-
|
|
89
|
-
/* @__PURE__ */ t.jsx(
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
R > 0 && /* @__PURE__ */ t.jsx(g, { variant: "caption", children: R }),
|
|
88
|
+
/* @__PURE__ */ t.jsx(H, { startIcon: /* @__PURE__ */ t.jsx(tt, {}), onClick: q, variant: "text", children: "Reply" }),
|
|
89
|
+
D && u && /* @__PURE__ */ t.jsxs(
|
|
90
|
+
H,
|
|
92
91
|
{
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
onClick: V,
|
|
92
|
+
startIcon: y ? /* @__PURE__ */ t.jsx(Z, {}) : /* @__PURE__ */ t.jsx(X, {}),
|
|
93
|
+
onClick: z,
|
|
96
94
|
variant: "text",
|
|
97
95
|
children: [
|
|
98
|
-
|
|
96
|
+
C,
|
|
99
97
|
" ",
|
|
100
|
-
|
|
98
|
+
C === 1 ? "reply" : "replies"
|
|
101
99
|
]
|
|
102
100
|
}
|
|
103
101
|
)
|
|
104
102
|
] }),
|
|
105
|
-
|
|
103
|
+
E && /* @__PURE__ */ t.jsx(c, { sx: { mt: 2 }, children: E })
|
|
106
104
|
] })
|
|
107
105
|
] }),
|
|
108
|
-
|
|
109
|
-
|
|
106
|
+
D && u && /* @__PURE__ */ t.jsx(O, { in: y, children: /* @__PURE__ */ t.jsx(c, { sx: { mt: 2 }, children: s.map((a, J) => /* @__PURE__ */ t.jsx(
|
|
107
|
+
W,
|
|
110
108
|
{
|
|
111
|
-
...
|
|
112
|
-
level:
|
|
113
|
-
maxLevel:
|
|
114
|
-
onLike:
|
|
109
|
+
...a,
|
|
110
|
+
level: k + 1,
|
|
111
|
+
maxLevel: $,
|
|
112
|
+
onLike: o,
|
|
115
113
|
onReply: r,
|
|
116
114
|
showReplies: u,
|
|
117
|
-
avatarSize: Math.max(32,
|
|
115
|
+
avatarSize: Math.max(32, m - 8)
|
|
118
116
|
},
|
|
119
|
-
|
|
117
|
+
a.id || `reply-${J}`
|
|
120
118
|
)) }) })
|
|
121
119
|
] });
|
|
122
120
|
};
|
|
123
|
-
|
|
121
|
+
W.displayName = "SCommentMessage";
|
|
124
122
|
export {
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
W as SCommentMessage,
|
|
124
|
+
W as default
|
|
127
125
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
{
|
|
2
|
-
"main": "./index.js",
|
|
3
|
-
"types": "./index.d.ts",
|
|
4
|
-
"sideEffects": false
|
|
5
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"main": "./index.js",
|
|
3
|
+
"types": "./index.d.ts",
|
|
4
|
+
"sideEffects": false
|
|
5
|
+
}
|