@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.
Files changed (109) hide show
  1. package/dist/s-accordion/package.json +5 -5
  2. package/dist/s-action-overlay/package.json +5 -5
  3. package/dist/s-action-overlay/s-action-overlay.js +0 -1
  4. package/dist/s-ai-tool-bar/package.json +5 -5
  5. package/dist/s-ai-tool-bar/s-ai-tool-bar.js +67 -71
  6. package/dist/s-autocomplete/package.json +5 -5
  7. package/dist/s-avatar/package.json +5 -5
  8. package/dist/s-blur-text/package.json +5 -5
  9. package/dist/s-breadcrumbs/package.json +5 -5
  10. package/dist/s-button/package.json +5 -5
  11. package/dist/s-button/s-button.d.ts +1 -2
  12. package/dist/s-button-link/package.json +5 -5
  13. package/dist/s-carousel/package.json +5 -5
  14. package/dist/s-category-card/package.json +5 -5
  15. package/dist/s-chat-input/package.json +5 -5
  16. package/dist/s-chat-input/s-chat-input.js +132 -129
  17. package/dist/s-chat-message/package.json +5 -5
  18. package/dist/s-chat-message/s-chat-message.js +28 -29
  19. package/dist/s-checkbox/package.json +5 -5
  20. package/dist/s-chip/package.json +5 -5
  21. package/dist/s-chip/s-chip.d.ts +1 -2
  22. package/dist/s-chips/package.json +5 -5
  23. package/dist/s-chips/s-chips.js +42 -41
  24. package/dist/s-code-block/package.json +5 -5
  25. package/dist/s-code-block/s-code-block.js +1 -2
  26. package/dist/s-comment-message/package.json +5 -5
  27. package/dist/s-comment-message/s-comment-message.js +67 -69
  28. package/dist/s-copyable-text/package.json +5 -5
  29. package/dist/s-countdown/package.json +5 -5
  30. package/dist/s-data-table/package.json +5 -5
  31. package/dist/s-data-table/s-data-table.js +157 -157
  32. package/dist/s-date-picker/package.json +5 -5
  33. package/dist/s-datetime-picker/package.json +5 -5
  34. package/dist/s-dialog/package.json +5 -5
  35. package/dist/s-dialog-confirm/package.json +5 -5
  36. package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
  37. package/dist/s-dialog-message/package.json +5 -5
  38. package/dist/s-dialog-message/s-dialog-message.js +3 -3
  39. package/dist/s-empty/package.json +5 -5
  40. package/dist/s-error/package.json +5 -5
  41. package/dist/s-error-layout/package.json +5 -5
  42. package/dist/s-file-dropzone/package.json +5 -5
  43. package/dist/s-file-dropzone/s-file-dropzone.d.ts +1 -5
  44. package/dist/s-file-dropzone/s-file-dropzone.js +17 -19
  45. package/dist/s-file-icon/package.json +5 -5
  46. package/dist/s-flex-box/package.json +5 -5
  47. package/dist/s-flex-box/s-flex-box.d.ts +1 -2
  48. package/dist/s-form/package.json +5 -5
  49. package/dist/s-gallery/package.json +5 -5
  50. package/dist/s-gallery/s-gallery.js +86 -85
  51. package/dist/s-glow-button/package.json +5 -5
  52. package/dist/s-gradient-icon/package.json +5 -5
  53. package/dist/s-gradient-icon/s-gradient-icon.d.ts +1 -1
  54. package/dist/s-gradient-icon/s-gradient-icon.js +23 -24
  55. package/dist/s-i18n-provider/package.json +5 -5
  56. package/dist/s-icon-button/package.json +5 -5
  57. package/dist/s-image-comparison/package.json +5 -5
  58. package/dist/s-image-comparison/s-image-comparison.js +50 -44
  59. package/dist/s-image-modal/package.json +5 -5
  60. package/dist/s-image-modal/s-image-modal.js +128 -128
  61. package/dist/s-item-not-found/package.json +5 -5
  62. package/dist/s-label/package.json +5 -5
  63. package/dist/s-language-switcher/package.json +5 -5
  64. package/dist/s-language-switcher/s-language-switcher.js +98 -96
  65. package/dist/s-lazy-image/package.json +5 -5
  66. package/dist/s-localization-provider/package.json +5 -5
  67. package/dist/s-moving-border/package.json +5 -5
  68. package/dist/s-moving-border/s-moving-border.js +73 -73
  69. package/dist/s-multi-select/package.json +5 -5
  70. package/dist/s-multi-select/s-multi-select.js +38 -38
  71. package/dist/s-no-ssr/package.json +5 -5
  72. package/dist/s-overlay-scrollbar/package.json +5 -5
  73. package/dist/s-pagination/package.json +5 -5
  74. package/dist/s-pixel-reveal/package.json +5 -5
  75. package/dist/s-pixel-reveal/s-pixel-reveal.js +35 -33
  76. package/dist/s-radial-pulse-animate/package.json +5 -5
  77. package/dist/s-rating/package.json +5 -5
  78. package/dist/s-rating/s-rating.d.ts +1 -2
  79. package/dist/s-review/package.json +5 -5
  80. package/dist/s-review/s-review.js +75 -77
  81. package/dist/s-scroll-reveal/package.json +6 -6
  82. package/dist/s-scroll-to-top/package.json +5 -5
  83. package/dist/s-scroll-velocity/package.json +5 -5
  84. package/dist/s-select/package.json +5 -5
  85. package/dist/s-select/s-select.d.ts +1 -1
  86. package/dist/s-select/s-select.js +19 -21
  87. package/dist/s-select-list/package.json +5 -5
  88. package/dist/s-select-list/s-select-list.d.ts +2 -2
  89. package/dist/s-skeleton/package.json +5 -5
  90. package/dist/s-snackbar-message/package.json +5 -5
  91. package/dist/s-snackbar-message/s-snackbar-message.js +1 -1
  92. package/dist/s-spotlight-cursor/package.json +5 -5
  93. package/dist/s-stripe/package.json +5 -5
  94. package/dist/s-tabs/package.json +4 -4
  95. package/dist/s-tabs/s-tab.d.ts +1 -2
  96. package/dist/s-text-editor/package.json +5 -5
  97. package/dist/s-text-editor/s-text-editor-toolbar.js +55 -57
  98. package/dist/s-text-editor/s-text-editor.js +9 -9
  99. package/dist/s-text-field/package.json +5 -5
  100. package/dist/s-text-shimmer/package.json +5 -5
  101. package/dist/s-text-truncation/package.json +5 -5
  102. package/dist/s-theme-demo/package.json +5 -5
  103. package/dist/s-theme-provider/package.json +5 -5
  104. package/dist/s-theme-switch/package.json +5 -5
  105. package/dist/s-tip/package.json +5 -5
  106. package/dist/s-two-pane-layout/package.json +5 -5
  107. package/dist/s-typewriter-text/package.json +6 -6
  108. package/dist/s-zoom-image/package.json +5 -5
  109. package/package.json +8 -7
@@ -1,77 +1,78 @@
1
1
  import { j as s } from "../jsx-runtime-tc70JA_2.js";
2
- import { useRef as g, useState as d, useEffect as S } from "react";
3
- import { Box as l, Chip as m, Tooltip as v } from "@mui/material";
4
- const E = ({
5
- chips: n,
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: c,
8
- overflowText: h = "keywords"
7
+ onClick: h,
8
+ overflowText: d = "keywords"
9
9
  }) => {
10
- const u = g(null), [C, b] = d([]), [w, y] = d([]), [x, W] = d(0), a = () => {
11
- const t = u.current?.offsetWidth || 0;
12
- let e = 0, i = 0;
13
- for (let o = 0; o < n.length; o++) {
14
- const f = p(n[o]);
15
- if (e + f <= t)
16
- e += f, i++;
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 (i < n.length) {
21
- const o = p(`+${n.length - i} ${h}`);
22
- for (; e + o > t && i > 0; )
23
- i--, e -= p(n[i]);
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
- b(n.slice(0, i)), y(n.slice(i)), W(n.length - i);
26
- }, p = (t) => {
27
- const e = document.createElement("span");
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
- }, [n, r]), /* @__PURE__ */ s.jsxs(l, { ref: u, display: "flex", maxWidth: "100%", flexWrap: r ? "nowrap" : "wrap", ...j, children: [
38
- (r ? C : n).map((t) => /* @__PURE__ */ s.jsx(
39
- l,
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
- c?.(t);
44
+ h?.(i);
45
45
  },
46
46
  children: /* @__PURE__ */ s.jsx(
47
- m,
47
+ c,
48
48
  {
49
- label: t.trim(),
49
+ label: i.trim(),
50
50
  sx: {
51
51
  mr: 1,
52
52
  mb: 1,
53
53
  userSelect: "none",
54
- cursor: c ? "pointer" : "default"
54
+ cursor: h ? "pointer" : "default"
55
55
  }
56
56
  }
57
57
  )
58
58
  },
59
- t
59
+ i
60
60
  )),
61
61
  r && x > 0 && /* @__PURE__ */ s.jsx(
62
- v,
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(l, { display: "flex", gap: 1, maxWidth: "240px", flexWrap: "wrap", children: w.map((t) => /* @__PURE__ */ s.jsx(m, { label: t.trim() }, t)) }),
70
- children: /* @__PURE__ */ s.jsx(l, { component: "span", textTransform: "lowercase", children: /* @__PURE__ */ s.jsx(
71
- m,
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} ${h}`,
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
- E.displayName = "SChips";
83
+ v.displayName = "SChips";
83
84
  export {
84
- E as SChips,
85
- E as default
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, { fontSize: "small" }) : /* @__PURE__ */ o.jsx(f, { fontSize: "small" })
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 S, useEffect as R } from "react";
3
- import { Box as c, Stack as x, Typography as g, IconButton as G, Button as F, Collapse as J } from "@mui/material";
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 K } from "../s-avatar/s-avatar.js";
6
- import { F as N } from "../Favorite-Cvjg7GqN.js";
7
- import { c as C } from "../createSvgIcon-DTNHY3_v.js";
8
- import { E as O } from "../ExpandMore-CTZrSZlF.js";
9
- const Q = C(/* @__PURE__ */ t.jsx("path", {
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"), U = C(/* @__PURE__ */ t.jsx("path", {
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"), X = C(/* @__PURE__ */ t.jsx("path", {
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"), Z = (o) => {
16
- const d = /* @__PURE__ */ new Date(), j = typeof o == "string" ? new Date(o) : o, p = d.getTime() - j.getTime(), m = Math.floor(p / 1e3), n = Math.floor(m / 60), i = Math.floor(n / 60), s = Math.floor(i / 24), h = Math.floor(s / 7), a = Math.floor(s / 30), r = Math.floor(s / 365);
17
- return m < 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` : a < 12 ? a === 1 ? "1 month ago" : `${a} months ago` : r === 1 ? "1 year ago" : `${r} years ago`;
18
- }, T = ({
19
- id: o = Date.now(),
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: m,
23
+ datetime: f,
24
24
  likes: n = 0,
25
25
  isLiked: i = !1,
26
26
  replies: s = [],
27
27
  totalReplies: h,
28
- onLike: a,
28
+ onLike: o,
29
29
  onReply: r,
30
- onToggleReplies: L,
30
+ onToggleReplies: S,
31
31
  showReplies: u = !0,
32
- avatarSize: f = 48,
33
- level: b = 0,
34
- maxLevel: z = 3,
35
- loading: H = !1,
36
- children: k,
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 [E, v] = S(n), [w, I] = S(i), [M, W] = S(!1), A = () => {
40
- w ? (v((l) => Math.max(0, l - 1)), I(!1)) : (v((l) => l + 1), I(!0)), a && a(o);
41
- }, P = () => {
42
- r && r(o);
43
- }, V = () => {
44
- W(!M), L && L(o);
45
- }, Y = Z(m), y = h ?? s.length, B = y > 0, D = Math.min(b, z) * 2;
46
- return R(() => {
47
- v(n);
48
- }, [n]), R(() => {
49
- I(i);
50
- }, [i]), H ? /* @__PURE__ */ t.jsx(c, { sx: { pl: D, py: 1, ...$ }, children: /* @__PURE__ */ t.jsxs(x, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
51
- /* @__PURE__ */ t.jsx(e, { component: "rounded-avatar", width: f, height: f }),
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(x, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
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(x, { direction: "row", spacing: 1, alignItems: "center", children: [
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: D, py: 1, ...$ }, children: [
68
- /* @__PURE__ */ t.jsxs(x, { direction: "row", spacing: 2, alignItems: "flex-start", children: [
69
- /* @__PURE__ */ t.jsx(K, { avatar: j, name: d, size: f }),
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(x, { direction: "row", alignItems: "center", spacing: 2, mb: 1, children: [
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: Y }) })
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(x, { direction: "row", spacing: 1, alignItems: "center", children: [
76
+ /* @__PURE__ */ t.jsxs(l, { direction: "row", spacing: 1, alignItems: "center", children: [
77
77
  /* @__PURE__ */ t.jsx(
78
- G,
78
+ N,
79
79
  {
80
- size: "small",
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(N, { fontSize: "small" }) : /* @__PURE__ */ t.jsx(U, { fontSize: "small" })
84
+ children: w ? /* @__PURE__ */ t.jsx(U, {}) : /* @__PURE__ */ t.jsx(_, {})
86
85
  }
87
86
  ),
88
- E > 0 && /* @__PURE__ */ t.jsx(g, { variant: "caption", children: E }),
89
- /* @__PURE__ */ t.jsx(F, { size: "small", startIcon: /* @__PURE__ */ t.jsx(X, { fontSize: "small" }), onClick: P, variant: "text", children: "Reply" }),
90
- B && u && /* @__PURE__ */ t.jsxs(
91
- F,
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
- size: "small",
94
- startIcon: M ? /* @__PURE__ */ t.jsx(Q, { fontSize: "small" }) : /* @__PURE__ */ t.jsx(O, { fontSize: "small" }),
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
- y,
96
+ C,
99
97
  " ",
100
- y === 1 ? "reply" : "replies"
98
+ C === 1 ? "reply" : "replies"
101
99
  ]
102
100
  }
103
101
  )
104
102
  ] }),
105
- k && /* @__PURE__ */ t.jsx(c, { sx: { mt: 2 }, children: k })
103
+ E && /* @__PURE__ */ t.jsx(c, { sx: { mt: 2 }, children: E })
106
104
  ] })
107
105
  ] }),
108
- B && u && /* @__PURE__ */ t.jsx(J, { in: M, children: /* @__PURE__ */ t.jsx(c, { sx: { mt: 2 }, children: s.map((l, q) => /* @__PURE__ */ t.jsx(
109
- T,
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
- ...l,
112
- level: b + 1,
113
- maxLevel: z,
114
- onLike: a,
109
+ ...a,
110
+ level: k + 1,
111
+ maxLevel: $,
112
+ onLike: o,
115
113
  onReply: r,
116
114
  showReplies: u,
117
- avatarSize: Math.max(32, f - 8)
115
+ avatarSize: Math.max(32, m - 8)
118
116
  },
119
- l.id || `reply-${q}`
117
+ a.id || `reply-${J}`
120
118
  )) }) })
121
119
  ] });
122
120
  };
123
- T.displayName = "SCommentMessage";
121
+ W.displayName = "SCommentMessage";
124
122
  export {
125
- T as SCommentMessage,
126
- T as default
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
+ }