@solostylist/ui-kit 1.0.220 → 1.0.221

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 (60) hide show
  1. package/dist/s-avatar/s-avatar.js +1 -5
  2. package/dist/s-breadcrumbs/s-breadcrumbs.js +45 -40
  3. package/dist/s-carousel/index.js +1 -1
  4. package/dist/s-carousel/s-carousel.js +1 -1
  5. package/dist/{s-carousel-DhUo-3W-.js → s-carousel-BUJYCigy.js} +15 -31
  6. package/dist/s-category-card/s-category-card.js +2 -2
  7. package/dist/s-chat-input/index.js +1 -1
  8. package/dist/s-chat-input/s-chat-input.js +1 -1
  9. package/dist/{s-chat-input-DlEMhm6X.js → s-chat-input-B0gdPa1c.js} +106 -101
  10. package/dist/s-chat-message/index.js +1 -1
  11. package/dist/s-chat-message/s-chat-message.js +1 -1
  12. package/dist/{s-chat-message-DeP8O6TO.js → s-chat-message-DVfbqSAQ.js} +27 -28
  13. package/dist/s-checkbox/s-checkbox.js +2 -1
  14. package/dist/s-code-block/index.js +1 -1
  15. package/dist/s-code-block/s-code-block.js +1 -1
  16. package/dist/{s-code-block-DTzppazr.js → s-code-block-CHIgPLsL.js} +31 -22
  17. package/dist/s-comment-message/index.js +1 -1
  18. package/dist/s-comment-message/s-comment-message.js +1 -1
  19. package/dist/{s-comment-message-C-7IZOqA.js → s-comment-message-DuJPcZFR.js} +2 -6
  20. package/dist/s-date-picker/index.js +1 -1
  21. package/dist/s-date-picker/s-date-picker.js +1 -1
  22. package/dist/{s-date-picker-CKSRNJ_A.js → s-date-picker-Mynq297P.js} +1 -1
  23. package/dist/s-datetime-picker/index.js +1 -1
  24. package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
  25. package/dist/{s-datetime-picker-BlStwMie.js → s-datetime-picker-D78dPyAo.js} +1 -1
  26. package/dist/s-gallery/s-gallery.js +25 -18
  27. package/dist/s-image-comparison/s-image-comparison.js +76 -108
  28. package/dist/s-image-modal/index.js +2 -2
  29. package/dist/s-image-modal/s-image-modal.js +2 -399
  30. package/dist/s-image-modal-DxwMFMNS.js +397 -0
  31. package/dist/s-language-switcher/index.js +1 -1
  32. package/dist/s-language-switcher/s-language-switcher.js +1 -1
  33. package/dist/{s-language-switcher-Cg3Gh8_i.js → s-language-switcher-vievp2VS.js} +8 -8
  34. package/dist/s-link/s-link.js +5 -1
  35. package/dist/s-nav-item/s-nav-item.js +70 -61
  36. package/dist/s-nav-item/s-nav-items.js +6 -6
  37. package/dist/s-review/index.js +1 -1
  38. package/dist/s-review/s-review.js +1 -1
  39. package/dist/{s-review-D5_TicCf.js → s-review-Ca6JUgGr.js} +18 -22
  40. package/dist/s-scroll-to-top/s-scroll-to-top.js +10 -20
  41. package/dist/s-switch/s-switch.js +2 -1
  42. package/dist/s-text-editor/s-text-editor.js +34 -26
  43. package/dist/s-tool-bar/index.js +1 -1
  44. package/dist/s-tool-bar/s-tool-bar.js +1 -1
  45. package/dist/s-tool-bar-Du66wRC2.js +455 -0
  46. package/dist/s-tool-item/s-tool-item.js +8 -5
  47. package/dist/s-zoom-image/s-zoom-image.js +1 -1
  48. package/dist/theme/components/chip.js +10 -10
  49. package/dist/theme/components/components.js +86 -82
  50. package/dist/theme/components/day-calendar.d.ts +12 -0
  51. package/dist/theme/components/day-calendar.js +4 -0
  52. package/dist/theme/components/outlined-input.d.ts +1 -0
  53. package/dist/theme/components/outlined-input.js +1 -0
  54. package/dist/theme/components/picker-day.d.ts +12 -0
  55. package/dist/theme/components/picker-day.js +4 -0
  56. package/dist/theme/components/select.d.ts +4 -0
  57. package/dist/theme/components/select.js +4 -0
  58. package/package.json +1 -1
  59. package/dist/ChevronLeft-rgSvkrT_.js +0 -6
  60. package/dist/s-tool-bar-DOcT-lNr.js +0 -448
@@ -1,15 +1,15 @@
1
1
  import { n as e, r as t } from "./utils-B5Rl6Zwv.js";
2
2
  import { t as n } from "./createSvgIcon-BdNZIlKS.js";
3
- import { t as r } from "./Download-DMm8oiCF.js";
4
- import i from "./s-lazy-image/s-lazy-image.js";
5
- import { SSkeleton as a } from "./s-skeleton/s-skeleton.js";
6
- import { SAvatar as o } from "./s-avatar/s-avatar.js";
7
- import { SImageModal as s } from "./s-image-modal/s-image-modal.js";
3
+ import { n as r } from "./s-image-modal-DxwMFMNS.js";
4
+ import { t as i } from "./Download-DMm8oiCF.js";
5
+ import a from "./s-lazy-image/s-lazy-image.js";
6
+ import { SSkeleton as o } from "./s-skeleton/s-skeleton.js";
7
+ import { SAvatar as s } from "./s-avatar/s-avatar.js";
8
8
  import { useState as c } from "react";
9
9
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
10
10
  import { Box as d, IconButton as f, Paper as p, Typography as m } from "@mui/material";
11
11
  //#region ../../node_modules/@mui/icons-material/ErrorOutlined.mjs
12
- var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z" }), "ErrorOutlined"), g = n(/* @__PURE__ */ l("path", { d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z" }), "InsertDriveFile"), _ = n(/* @__PURE__ */ l("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z" }), "Refresh"), v = ({ isSent: e, showAvatar: t, showTimestamp: n, senderName: r, maxWidth: i, sx: o, ...s }) => /* @__PURE__ */ u(d, {
12
+ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z" }), "ErrorOutlined"), g = n(/* @__PURE__ */ l("path", { d: "M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z" }), "InsertDriveFile"), _ = n(/* @__PURE__ */ l("path", { d: "M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z" }), "Refresh"), v = ({ isSent: e, showAvatar: t, showTimestamp: n, senderName: r, maxWidth: i, sx: a, ...s }) => /* @__PURE__ */ u(d, {
13
13
  ...s,
14
14
  sx: [{
15
15
  display: "flex",
@@ -19,9 +19,9 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
19
19
  mb: 1,
20
20
  maxWidth: i,
21
21
  alignSelf: e ? "flex-end" : "flex-start"
22
- }, ...Array.isArray(o) ? o : [o]],
22
+ }, ...Array.isArray(a) ? a : [a]],
23
23
  children: [
24
- t && !e && /* @__PURE__ */ l(a, {
24
+ t && !e && /* @__PURE__ */ l(o, {
25
25
  component: "rounded-avatar",
26
26
  width: 36,
27
27
  height: 36
@@ -35,7 +35,7 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
35
35
  minWidth: 0
36
36
  },
37
37
  children: [
38
- r && !e && /* @__PURE__ */ l(a, {
38
+ r && !e && /* @__PURE__ */ l(o, {
39
39
  width: 100,
40
40
  height: 12,
41
41
  sx: { ml: .5 }
@@ -49,22 +49,22 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
49
49
  ml: .5
50
50
  },
51
51
  children: [
52
- /* @__PURE__ */ l(a, {
52
+ /* @__PURE__ */ l(o, {
53
53
  height: 16,
54
54
  sx: { mb: .5 }
55
55
  }),
56
- /* @__PURE__ */ l(a, {
56
+ /* @__PURE__ */ l(o, {
57
57
  width: "85%",
58
58
  height: 16,
59
59
  sx: { mb: .5 }
60
60
  }),
61
- /* @__PURE__ */ l(a, {
61
+ /* @__PURE__ */ l(o, {
62
62
  width: "70%",
63
63
  height: 16
64
64
  })
65
65
  ]
66
66
  }),
67
- n && /* @__PURE__ */ l(a, {
67
+ n && /* @__PURE__ */ l(o, {
68
68
  width: 60,
69
69
  height: 10,
70
70
  sx: {
@@ -74,14 +74,14 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
74
74
  })
75
75
  ]
76
76
  }),
77
- t && e && /* @__PURE__ */ l(a, {
77
+ t && e && /* @__PURE__ */ l(o, {
78
78
  component: "rounded-avatar",
79
79
  width: 36,
80
80
  height: 36
81
81
  })
82
82
  ]
83
- }), y = ({ message: n, variant: a = "received", timestamp: y, avatar: b, senderName: x, showAvatar: S = !0, showTimestamp: C = !1, maxWidth: w = "70%", attachments: T = [], onAttachmentClick: E, onDownload: D, hasError: O = !1, errorMessage: k = "Failed to send message", onRetry: A, loading: j = !1, sx: M, ...N }) => {
84
- let [P, F] = c(null), [I, L] = c(!1), R = a === "sent", z = (e) => {
83
+ }), y = ({ message: n, variant: o = "received", timestamp: y, avatar: b, senderName: x, showAvatar: S = !0, showTimestamp: C = !1, maxWidth: w = "70%", attachments: T = [], onAttachmentClick: E, onDownload: D, hasError: O = !1, errorMessage: k = "Failed to send message", onRetry: A, loading: j = !1, sx: M, ...N }) => {
84
+ let [P, F] = c(null), [I, L] = c(!1), R = o === "sent", z = (e) => {
85
85
  E ? E(e) : (F(e), L(!0));
86
86
  }, B = (e) => {
87
87
  E ? E(e) : D && D(e);
@@ -106,7 +106,7 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
106
106
  alignSelf: R ? "flex-end" : "flex-start"
107
107
  }, ...Array.isArray(M) ? M : [M]],
108
108
  children: [
109
- S && !R && /* @__PURE__ */ l(o, {
109
+ S && !R && /* @__PURE__ */ l(s, {
110
110
  avatar: b,
111
111
  name: x,
112
112
  size: 36
@@ -124,7 +124,7 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
124
124
  /* @__PURE__ */ u(d, {
125
125
  sx: {
126
126
  display: "inline-block",
127
- borderRadius: 2,
127
+ borderRadius: 1,
128
128
  wordBreak: "break-word",
129
129
  maxWidth: "100%",
130
130
  border: "1px solid",
@@ -146,12 +146,11 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
146
146
  position: "relative",
147
147
  paddingTop: V.length === 1 ? "66.67%" : "100%",
148
148
  cursor: "pointer",
149
- borderRadius: 1.5,
150
149
  overflow: "hidden",
151
150
  "&:hover": { opacity: .9 }
152
151
  },
153
152
  onClick: () => z(e),
154
- children: /* @__PURE__ */ l(i, {
153
+ children: /* @__PURE__ */ l(a, {
155
154
  src: e.thumbnailUrl ?? e.url,
156
155
  alt: e.name ?? "Image",
157
156
  style: {
@@ -170,14 +169,14 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
170
169
  sx: {
171
170
  display: "flex",
172
171
  alignItems: "center",
173
- gap: 1.5,
172
+ gap: 1,
174
173
  p: 1,
175
174
  mt: +(n > 0),
176
175
  cursor: "pointer"
177
176
  },
178
177
  onClick: () => B(t),
179
178
  children: [
180
- /* @__PURE__ */ l(g, { sx: { fontSize: 32 } }),
179
+ /* @__PURE__ */ l(g, { sx: { fontSize: 36 } }),
181
180
  /* @__PURE__ */ u(d, {
182
181
  sx: {
183
182
  flex: 1,
@@ -186,8 +185,6 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
186
185
  children: [/* @__PURE__ */ l(m, {
187
186
  variant: "body2",
188
187
  sx: {
189
- fontSize: "0.875rem",
190
- fontWeight: 500,
191
188
  overflow: "hidden",
192
189
  textOverflow: "ellipsis",
193
190
  whiteSpace: "nowrap"
@@ -195,6 +192,7 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
195
192
  children: t.name ?? "Unnamed File"
196
193
  }), t.size && /* @__PURE__ */ l(m, {
197
194
  variant: "caption",
195
+ sx: { fontSize: "0.75rem" },
198
196
  children: e(t.size)
199
197
  })]
200
198
  }),
@@ -202,7 +200,7 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
202
200
  onClick: (e) => {
203
201
  e.stopPropagation(), D(t);
204
202
  },
205
- children: /* @__PURE__ */ l(r, {})
203
+ children: /* @__PURE__ */ l(i, {})
206
204
  })
207
205
  ]
208
206
  }, t.id))
@@ -237,9 +235,10 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
237
235
  color: "error.main"
238
236
  },
239
237
  children: [
240
- /* @__PURE__ */ l(h, { sx: { fontSize: "1rem" } }),
238
+ /* @__PURE__ */ l(h, {}),
241
239
  /* @__PURE__ */ l(m, {
242
240
  sx: { color: "inherit" },
241
+ variant: "caption",
243
242
  children: k
244
243
  }),
245
244
  A && /* @__PURE__ */ l(f, {
@@ -250,12 +249,12 @@ var h = n(/* @__PURE__ */ l("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10
250
249
  })
251
250
  ]
252
251
  }),
253
- S && R && /* @__PURE__ */ l(o, {
252
+ S && R && /* @__PURE__ */ l(s, {
254
253
  avatar: b,
255
254
  name: x,
256
255
  size: 36
257
256
  }),
258
- P && /* @__PURE__ */ l(s, {
257
+ P && /* @__PURE__ */ l(r, {
259
258
  isOpen: I,
260
259
  onClose: () => {
261
260
  L(!1), F(null);
@@ -5,7 +5,8 @@ import { Box as i, Checkbox as a, Stack as o, Typography as s } from "@mui/mater
5
5
  var c = e(({ content: e, disabled: c, ...l }, u) => {
6
6
  let d = t(), f = l.id ?? d, p = {
7
7
  color: c ? "text.disabled" : "inherit",
8
- cursor: c ? "not-allowed" : "pointer"
8
+ cursor: c ? "not-allowed" : "pointer",
9
+ userSelect: "none"
9
10
  };
10
11
  return /* @__PURE__ */ r(o, {
11
12
  direction: "row",
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-code-block-DTzppazr.js";
1
+ import { t as e } from "../s-code-block-CHIgPLsL.js";
2
2
  export { e as SCodeBlock, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-code-block-DTzppazr.js";
1
+ import { t as e } from "../s-code-block-CHIgPLsL.js";
2
2
  export { e as SCodeBlock, e as default };
@@ -1,10 +1,10 @@
1
1
  import { n as e, t } from "./ContentCopy-Bh_TA5Eo.js";
2
- import { useState as n } from "react";
3
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
- import { Box as a, IconButton as o, useColorScheme as s } from "@mui/material";
5
- import { Prism as c } from "react-syntax-highlighter";
2
+ import { useMemo as n, useState as r } from "react";
3
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
+ import { Box as o, IconButton as s, useColorScheme as c } from "@mui/material";
5
+ import { Prism as l } from "react-syntax-highlighter";
6
6
  //#region ../../node_modules/react-syntax-highlighter/dist/esm/styles/prism/one-dark.js
7
- var l = {
7
+ var u = {
8
8
  "code[class*=\"language-\"]": {
9
9
  background: "hsl(220, 13%, 18%)",
10
10
  color: "hsl(220, 14%, 71%)",
@@ -292,7 +292,7 @@ var l = {
292
292
  },
293
293
  ".prism-previewer-easing.prism-previewer-easing path": { stroke: "hsl(220, 14%, 71%)" },
294
294
  ".prism-previewer-easing.prism-previewer-easing line": { stroke: "hsl(220, 14%, 71%)" }
295
- }, u = {
295
+ }, d = {
296
296
  "code[class*=\"language-\"]": {
297
297
  background: "hsl(230, 1%, 98%)",
298
298
  color: "hsl(230, 8%, 24%)",
@@ -560,17 +560,26 @@ var l = {
560
560
  },
561
561
  ".prism-previewer-easing.prism-previewer-easing path": { stroke: "hsl(230, 8%, 24%)" },
562
562
  ".prism-previewer-easing.prism-previewer-easing line": { stroke: "hsl(230, 8%, 24%)" }
563
- }, d = ({ code: d, language: f = "typescript", showLineNumbers: p = !0, showCopyButton: m = !0, customStyle: h, onCopied: g }) => {
564
- let [_, v] = n(!1), { mode: y } = s();
565
- return d ? /* @__PURE__ */ i(a, {
563
+ }, f = ({ code: f, language: p = "typescript", showLineNumbers: m = !0, showCopyButton: h = !0, customStyle: g, onCopied: _ }) => {
564
+ let [v, y] = r(!1), { mode: b } = c(), x = n(() => {
565
+ let e = b === "dark" ? u : d;
566
+ return {
567
+ ...e,
568
+ linenumber: {
569
+ ...e.linenumber,
570
+ fontStyle: "normal"
571
+ }
572
+ };
573
+ }, [b]);
574
+ return f ? /* @__PURE__ */ a(o, {
566
575
  sx: {
567
576
  position: "relative",
568
577
  width: "100%"
569
578
  },
570
- children: [m && /* @__PURE__ */ r(o, {
579
+ children: [h && /* @__PURE__ */ i(s, {
571
580
  onClick: async () => {
572
- if (d) try {
573
- await navigator.clipboard.writeText(d), v(!0), setTimeout(() => v(!1), 2e3), g?.();
581
+ if (f) try {
582
+ await navigator.clipboard.writeText(f), y(!0), setTimeout(() => y(!1), 2e3), _?.();
574
583
  } catch (e) {
575
584
  console.error("Failed to copy code:", e);
576
585
  }
@@ -580,14 +589,14 @@ var l = {
580
589
  top: 8,
581
590
  right: 8,
582
591
  zIndex: 1,
583
- color: _ ? "success.main" : "text.primary",
592
+ color: v ? "success.main" : "text.primary",
584
593
  backdropFilter: "blur(8px)"
585
594
  },
586
- children: r(_ ? e : t, {})
587
- }), /* @__PURE__ */ r(c, {
588
- language: f,
589
- style: y === "dark" ? l : u,
590
- showLineNumbers: p,
595
+ children: i(v ? e : t, {})
596
+ }), /* @__PURE__ */ i(l, {
597
+ language: p,
598
+ style: x,
599
+ showLineNumbers: m,
591
600
  customStyle: {
592
601
  margin: 0,
593
602
  borderRadius: "var(--s-shape-borderRadius)",
@@ -595,14 +604,14 @@ var l = {
595
604
  backgroundColor: "var(--s-palette-background-paper)",
596
605
  border: "1px solid",
597
606
  borderColor: "var(--s-palette-divider)",
598
- ...h
607
+ ...g
599
608
  },
600
609
  wrapLines: !0,
601
610
  wrapLongLines: !0,
602
- children: d
611
+ children: f
603
612
  })]
604
613
  }) : null;
605
614
  };
606
- d.displayName = "SCodeBlock";
615
+ f.displayName = "SCodeBlock";
607
616
  //#endregion
608
- export { d as t };
617
+ export { f as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-comment-message-C-7IZOqA.js";
1
+ import { t as e } from "../s-comment-message-DuJPcZFR.js";
2
2
  export { e as SCommentMessage, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-comment-message-C-7IZOqA.js";
1
+ import { t as e } from "../s-comment-message-DuJPcZFR.js";
2
2
  export { e as SCommentMessage, e as default };
@@ -107,14 +107,10 @@ var _ = t(/* @__PURE__ */ l("path", { d: "m12 8-6 6 1.41 1.41L12 10.83l4.59 4.58
107
107
  alignItems: "center",
108
108
  mb: 1
109
109
  },
110
- children: [/* @__PURE__ */ l(g, {
111
- variant: "subtitle2",
112
- sx: { fontWeight: "600" },
113
- children: x
114
- }), /* @__PURE__ */ l("div", { children: /* @__PURE__ */ l(g, {
110
+ children: [/* @__PURE__ */ l(g, { children: x }), /* @__PURE__ */ l(g, {
115
111
  variant: "caption",
116
112
  children: X
117
- }) })]
113
+ })]
118
114
  }),
119
115
  /* @__PURE__ */ l(g, {
120
116
  variant: "body2",
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-date-picker-CKSRNJ_A.js";
1
+ import { t as e } from "../s-date-picker-Mynq297P.js";
2
2
  export { e as SDatePicker, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-date-picker-CKSRNJ_A.js";
1
+ import { t as e } from "../s-date-picker-Mynq297P.js";
2
2
  export { e as SDatePicker, e as default };
@@ -590,7 +590,7 @@ var $ = ({ label: e, required: t = !1, error: r, htmlFor: i, hint: a, slots: o,
590
590
  height: l.spacing(5),
591
591
  minHeight: l.spacing(5),
592
592
  px: 1.5,
593
- py: 0,
593
+ py: 1,
594
594
  color: (l.vars ?? l).palette.text.primary,
595
595
  borderRadius: (l.vars ?? l).shape.borderRadius,
596
596
  border: `1px solid ${(l.vars ?? l).palette.divider}`,
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-datetime-picker-BlStwMie.js";
1
+ import { t as e } from "../s-datetime-picker-D78dPyAo.js";
2
2
  export { e as SDateTimePicker, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-datetime-picker-BlStwMie.js";
1
+ import { t as e } from "../s-datetime-picker-D78dPyAo.js";
2
2
  export { e as SDateTimePicker, e as default };
@@ -3786,7 +3786,7 @@ var Wr = ({ label: e, required: t = !1, error: n, htmlFor: i, hint: a, slots: o,
3786
3786
  height: l.spacing(5),
3787
3787
  minHeight: l.spacing(5),
3788
3788
  px: 1.5,
3789
- py: 0,
3789
+ py: 1,
3790
3790
  color: (l.vars ?? l).palette.text.primary,
3791
3791
  borderRadius: (l.vars ?? l).shape.borderRadius,
3792
3792
  border: `1px solid ${(l.vars ?? l).palette.divider}`,
@@ -1,5 +1,5 @@
1
- import e from "../s-lazy-image/s-lazy-image.js";
2
- import { SImageModal as t } from "../s-image-modal/s-image-modal.js";
1
+ import { n as e } from "../s-image-modal-DxwMFMNS.js";
2
+ import t from "../s-lazy-image/s-lazy-image.js";
3
3
  import { useEffect as n, useId as r, useRef as i, useState as a } from "react";
4
4
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
5
  import { Box as c, Paper as l, Skeleton as u, Typography as d } from "@mui/material";
@@ -16,7 +16,7 @@ function m(e) {
16
16
  function h(e) {
17
17
  return e % 3 == 0 ? 3 : e % 2 == 0 ? 2 : 4;
18
18
  }
19
- var g = ({ item: t, sx: r, onClick: l }) => {
19
+ var g = ({ item: e, sx: r, onClick: l }) => {
20
20
  let u = i(null), [d, f] = a(!1), [p, h] = a(!0);
21
21
  if (n(() => {
22
22
  let e = new IntersectionObserver((e) => {
@@ -41,7 +41,7 @@ var g = ({ item: t, sx: r, onClick: l }) => {
41
41
  })() : t && t.pause(), () => {
42
42
  e = !1, t && (t.pause(), t.removeAttribute("src"), t.load());
43
43
  };
44
- }, [d]), t.type === "video") return /* @__PURE__ */ s(c, {
44
+ }, [d]), e.type === "video") return /* @__PURE__ */ s(c, {
45
45
  sx: {
46
46
  position: "relative",
47
47
  overflow: "hidden",
@@ -68,7 +68,7 @@ var g = ({ item: t, sx: r, onClick: l }) => {
68
68
  display: "block"
69
69
  },
70
70
  children: /* @__PURE__ */ o("source", {
71
- src: t.url,
71
+ src: e.url,
72
72
  type: "video/mp4"
73
73
  })
74
74
  }), p && /* @__PURE__ */ o(c, {
@@ -100,9 +100,9 @@ var g = ({ item: t, sx: r, onClick: l }) => {
100
100
  height: "100%",
101
101
  ...r
102
102
  },
103
- children: /* @__PURE__ */ o(e, {
104
- src: t.url,
105
- alt: t.title ?? "",
103
+ children: /* @__PURE__ */ o(t, {
104
+ src: e.url,
105
+ alt: e.title ?? "",
106
106
  style: {
107
107
  objectFit: g,
108
108
  cursor: l ? "pointer" : "default",
@@ -155,11 +155,11 @@ var g = ({ item: t, sx: r, onClick: l }) => {
155
155
  colSpan: r,
156
156
  rowSpan: i
157
157
  };
158
- }), y = ({ mediaItems: e, variant: i = "masonry", loading: m = !1, skeletonCount: h = 6 }) => {
159
- let [y, b] = a(null), [x, S] = a(() => v(e, i)), [C, w] = a(!1), T = r();
158
+ }), y = ({ mediaItems: t, variant: i = "masonry", loading: m = !1, skeletonCount: h = 6 }) => {
159
+ let [y, b] = a(null), [x, S] = a(() => v(t, i)), [C, w] = a(!1), T = r();
160
160
  n(() => {
161
- S(v(e, i));
162
- }, [e, i]);
161
+ S(v(t, i));
162
+ }, [t, i]);
163
163
  let E = Array.from({ length: h }, (e, t) => ({
164
164
  id: `${i}-skeleton-${t + 1}`,
165
165
  ..._(t, i)
@@ -170,7 +170,7 @@ var g = ({ item: t, sx: r, onClick: l }) => {
170
170
  position: "relative",
171
171
  zIndex: 1
172
172
  },
173
- children: [/* @__PURE__ */ o(t, {
173
+ children: [/* @__PURE__ */ o(e, {
174
174
  selectedItem: y,
175
175
  isOpen: !!y,
176
176
  onClose: () => b(null),
@@ -205,7 +205,7 @@ var g = ({ item: t, sx: r, onClick: l }) => {
205
205
  sx: {
206
206
  position: "relative",
207
207
  overflow: "hidden",
208
- borderRadius: 2,
208
+ borderRadius: 1,
209
209
  gridRow: `span ${n}`,
210
210
  gridColumn: `span ${t}`
211
211
  },
@@ -269,7 +269,7 @@ var g = ({ item: t, sx: r, onClick: l }) => {
269
269
  sx: {
270
270
  position: "relative",
271
271
  overflow: "hidden",
272
- borderRadius: 2,
272
+ borderRadius: 1,
273
273
  width: "100%",
274
274
  height: "100%",
275
275
  cursor: "grab",
@@ -297,21 +297,28 @@ var g = ({ item: t, sx: r, onClick: l }) => {
297
297
  pointerEvents: "none",
298
298
  opacity: 0,
299
299
  transition: "opacity 0.2s ease-in-out",
300
- backdropFilter: "blur(8px)"
300
+ color: "common.white",
301
+ background: "linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.35) 45%, transparent)"
301
302
  },
302
303
  children: [e.title && /* @__PURE__ */ o(d, {
303
- variant: "subtitle2",
304
+ variant: "h6",
304
305
  sx: {
305
306
  position: "relative",
307
+ fontSize: {
308
+ xs: 14,
309
+ sm: 18,
310
+ md: 20
311
+ },
306
312
  whiteSpace: "nowrap",
307
313
  overflow: "hidden",
308
314
  textOverflow: "ellipsis"
309
315
  },
310
316
  children: e.title
311
317
  }), e.desc && /* @__PURE__ */ o(d, {
312
- variant: "caption",
318
+ variant: "body2",
313
319
  sx: {
314
320
  position: "relative",
321
+ mt: .5,
315
322
  display: "-webkit-box",
316
323
  WebkitLineClamp: 2,
317
324
  WebkitBoxOrient: "vertical",