@solostylist/ui-kit 1.0.220 → 1.0.222

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 (61) 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/dist/theme/components/tooltip.d.ts +3 -0
  59. package/package.json +1 -1
  60. package/dist/ChevronLeft-rgSvkrT_.js +0 -6
  61. package/dist/s-tool-bar-DOcT-lNr.js +0 -448
@@ -23,11 +23,7 @@ var o = ({ avatar: o, name: s, showName: c = !1, size: l = 40, avatarProps: u, c
23
23
  variant: "circular",
24
24
  style: { borderRadius: "50%" }
25
25
  }) : s?.[0] ?? "A")
26
- }), c && /* @__PURE__ */ t(a, {
27
- variant: "body1",
28
- sx: { fontSize: 20 },
29
- children: s
30
- })]
26
+ }), c && /* @__PURE__ */ t(a, { children: s })]
31
27
  });
32
28
  o.displayName = "SAvatar";
33
29
  //#endregion
@@ -3,46 +3,51 @@ import { forwardRef as t } from "react";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  import { Breadcrumbs as r, Link as i, Typography as a } from "@mui/material";
5
5
  //#region lib/s-breadcrumbs/s-breadcrumbs.tsx
6
- var o = t(({ items: t, separator: o = /* @__PURE__ */ n(e, { fontSize: "small" }), LinkComponent: s, currentColor: c = "text.primary", linkColor: l = "primary.main", sx: u, ...d }, f) => /* @__PURE__ */ n(r, {
7
- ref: f,
8
- separator: o,
9
- sx: u,
10
- ...d,
11
- children: t.map((e, r) => {
12
- let o = r === t.length - 1;
13
- return e.isCurrent ?? o ? /* @__PURE__ */ n(a, {
14
- color: c,
15
- children: e.label
16
- }, `${e.label}-${r}`) : e.onClick ? /* @__PURE__ */ n(i, {
17
- component: "button",
18
- onClick: e.onClick,
19
- color: l,
20
- underline: "hover",
21
- sx: {
22
- cursor: "pointer",
23
- background: "none",
24
- border: "none",
25
- padding: 0,
26
- font: "inherit"
27
- },
28
- children: e.label
29
- }, `${e.label}-${r}`) : e.to ? s ? /* @__PURE__ */ n(i, {
30
- component: s,
31
- to: e.to,
32
- color: l,
33
- underline: "hover",
34
- children: e.label
35
- }, `${e.label}-${r}`) : /* @__PURE__ */ n(i, {
36
- href: e.to,
37
- color: l,
38
- underline: "hover",
39
- children: e.label
40
- }, `${e.label}-${r}`) : /* @__PURE__ */ n(a, {
41
- color: c,
42
- children: e.label
43
- }, `${e.label}-${r}`);
44
- })
45
- }));
6
+ var o = t(({ items: t, separator: o = /* @__PURE__ */ n(e, { fontSize: "small" }), LinkComponent: s, currentColor: c = "text.primary", linkColor: l = "primary.main", sx: u, ...d }, f) => {
7
+ let p = {
8
+ textDecoration: "none",
9
+ textUnderlineOffset: "4px",
10
+ "&::before": { display: "none" },
11
+ "&:hover": { textDecoration: "underline" }
12
+ };
13
+ return /* @__PURE__ */ n(r, {
14
+ ref: f,
15
+ separator: o,
16
+ sx: u,
17
+ ...d,
18
+ children: t.map((e, r) => {
19
+ let o = r === t.length - 1, u = e.isCurrent ?? o, d = `${e.label}-${r}`;
20
+ return u ? /* @__PURE__ */ n(a, {
21
+ color: c,
22
+ children: e.label
23
+ }, d) : e.onClick ? /* @__PURE__ */ n(i, {
24
+ component: "button",
25
+ onClick: e.onClick,
26
+ color: l,
27
+ sx: {
28
+ ...p,
29
+ cursor: "pointer",
30
+ background: "none",
31
+ border: "none",
32
+ padding: 0,
33
+ font: "inherit"
34
+ },
35
+ children: e.label
36
+ }, d) : e.to ? /* @__PURE__ */ n(i, {
37
+ color: l,
38
+ sx: p,
39
+ ...s ? {
40
+ component: s,
41
+ to: e.to
42
+ } : { href: e.to },
43
+ children: e.label
44
+ }, d) : /* @__PURE__ */ n(a, {
45
+ color: c,
46
+ children: e.label
47
+ }, d);
48
+ })
49
+ });
50
+ });
46
51
  o.displayName = "SBreadcrumbs";
47
52
  //#endregion
48
53
  export { o as SBreadcrumbs, o as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-carousel-DhUo-3W-.js";
1
+ import { t as e } from "../s-carousel-BUJYCigy.js";
2
2
  export { e as SCarousel, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-carousel-DhUo-3W-.js";
1
+ import { t as e } from "../s-carousel-BUJYCigy.js";
2
2
  export { e as SCarousel, e as default };
@@ -1195,13 +1195,14 @@ var ke = p("div")({
1195
1195
  }), Ae = p("div", { shouldForwardProp: (e) => e !== "centerPadding" })(({ centerPadding: e }) => ({
1196
1196
  overflow: "hidden",
1197
1197
  ...e && { padding: `0 ${e}` }
1198
- })), je = p("div", { shouldForwardProp: (e) => e !== "spaceBetween" })(({ spaceBetween: e }) => ({
1198
+ })), je = p("div")({
1199
1199
  display: "flex",
1200
- touchAction: "pan-y pinch-zoom",
1201
- gap: `${e}px`
1202
- })), Me = p("div", { shouldForwardProp: (e) => e !== "slidesToShow" && e !== "spaceBetween" })(({ slidesToShow: e, spaceBetween: t }) => ({
1203
- flex: `0 0 calc((100% - ${(e - 1) * t}px) / ${e})`,
1204
- minWidth: 0
1200
+ touchAction: "pan-y pinch-zoom"
1201
+ }), Me = p("div", { shouldForwardProp: (e) => e !== "slidesToShow" && e !== "spaceBetween" })(({ slidesToShow: e, spaceBetween: t }) => ({
1202
+ flex: `0 0 calc(100% / ${e})`,
1203
+ minWidth: 0,
1204
+ paddingInline: `${t / 2}px`,
1205
+ boxSizing: "border-box"
1205
1206
  })), Z = p("ul")(({ theme: e }) => ({
1206
1207
  gap: 6,
1207
1208
  zIndex: 1,
@@ -1281,41 +1282,24 @@ var Pe = r((e, r) => {
1281
1282
  /* @__PURE__ */ u(Ae, {
1282
1283
  ref: ee,
1283
1284
  centerPadding: O ? k : void 0,
1284
- children: /* @__PURE__ */ u(je, {
1285
+ children: /* @__PURE__ */ u(je, { children: W.map((e, t) => /* @__PURE__ */ u(Me, {
1286
+ slidesToShow: M,
1285
1287
  spaceBetween: C,
1286
- children: W.map((e, t) => /* @__PURE__ */ u(Me, {
1287
- slidesToShow: M,
1288
- spaceBetween: C,
1289
- children: e
1290
- }, $(e, t)))
1291
- })
1288
+ children: e
1289
+ }, $(e, t))) })
1292
1290
  }),
1293
1291
  x && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u(t, {
1294
1292
  className: "carousel-arrow prev",
1295
1293
  onClick: () => P?.scrollPrev(),
1296
1294
  disabled: !E && !z,
1297
- sx: {
1298
- backdropFilter: "blur(8px)",
1299
- backgroundColor: "rgba(255,255,255,0.3)",
1300
- boxShadow: "0px 0px 0px 1px rgba(0,0,0,0.1)",
1301
- color: "text.primary",
1302
- "&:hover": { backgroundColor: "rgba(255,255,255,0.4)" },
1303
- ..._
1304
- },
1305
- children: /* @__PURE__ */ u(h, { fontSize: "small" })
1295
+ sx: { ..._ },
1296
+ children: /* @__PURE__ */ u(h, {})
1306
1297
  }), /* @__PURE__ */ u(t, {
1307
1298
  className: "carousel-arrow next",
1308
1299
  onClick: () => P?.scrollNext(),
1309
1300
  disabled: !E && !V,
1310
- sx: {
1311
- backdropFilter: "blur(8px)",
1312
- backgroundColor: "rgba(255,255,255,0.3)",
1313
- boxShadow: "0px 0px 0px 1px rgba(0,0,0,0.1)",
1314
- color: "text.primary",
1315
- "&:hover": { backgroundColor: "rgba(255,255,255,0.4)" },
1316
- ..._
1317
- },
1318
- children: /* @__PURE__ */ u(g, { fontSize: "small" })
1301
+ sx: { ..._ },
1302
+ children: /* @__PURE__ */ u(g, {})
1319
1303
  })] }),
1320
1304
  y && F.length > 0 && /* @__PURE__ */ u(Z, {
1321
1305
  sx: v,
@@ -19,7 +19,7 @@ var o = a(r, { shouldForwardProp: (e) => e !== "disableHoverEffect" && e !== "ho
19
19
  })), s = a(r, { shouldForwardProp: (e) => e !== "titlePosition" && e !== "titleAlignment" })(({ titlePosition: e = "bottom", titleAlignment: t = "center" }) => ({
20
20
  left: 10,
21
21
  right: 10,
22
- padding: 8,
22
+ padding: 4,
23
23
  textAlign: t,
24
24
  position: "absolute",
25
25
  transition: "all 0.3s",
@@ -29,7 +29,7 @@ var o = a(r, { shouldForwardProp: (e) => e !== "disableHoverEffect" && e !== "ho
29
29
  top: "50%",
30
30
  transform: "translateY(-50%)"
31
31
  }
32
- })), c = ({ image: r, title: a, width: c = 250, height: l = 250, alt: u = "category", titlePosition: d = "bottom", titleAlignment: f = "center", titleVariant: p = "body1", titleColor: m, titleBackgroundColor: h = "background.paper", titleOpacity: g = 1, borderRadius: _ = 2, disableHoverEffect: v = !1, hoverScale: y = 1.1, onClick: b, sx: x, titleSx: S, imageSx: C }) => /* @__PURE__ */ n(o, {
32
+ })), c = ({ image: r, title: a, width: c = 250, height: l = 250, alt: u = "category", titlePosition: d = "bottom", titleAlignment: f = "center", titleVariant: p = "body1", titleColor: m, titleBackgroundColor: h = "background.paper", titleOpacity: g = 1, borderRadius: _ = 1, disableHoverEffect: v = !1, hoverScale: y = 1.1, onClick: b, sx: x, titleSx: S, imageSx: C }) => /* @__PURE__ */ n(o, {
33
33
  disableHoverEffect: v,
34
34
  hoverScale: y,
35
35
  onClick: b,
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-chat-input-DlEMhm6X.js";
1
+ import { t as e } from "../s-chat-input-B0gdPa1c.js";
2
2
  export { e as SChatInput, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-chat-input-DlEMhm6X.js";
1
+ import { t as e } from "../s-chat-input-B0gdPa1c.js";
2
2
  export { e as SChatInput, e as default };
@@ -1,85 +1,96 @@
1
- import { t as e } from "./createSvgIcon-BdNZIlKS.js";
2
- import { t } from "./ArrowUpward-BbQSKheQ.js";
3
- import { t as n } from "./Close-oXeOGTZb.js";
4
- import { t as r } from "./s-text-field-qps0aDNS.js";
5
- import { SIconButton as i } from "./s-icon-button/s-icon-button.js";
6
- import { SFileIcon as a } from "./s-file-icon/s-file-icon.js";
7
- import { forwardRef as o, useEffect as s, useId as c, useState as l } from "react";
8
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
9
- import { Box as p, ClickAwayListener as m, Popper as h, Typography as g, outlinedInputClasses as _ } from "@mui/material";
10
- import v from "emoji-picker-react";
1
+ import { o as e, s as t } from "./theme-primitives-OrQ-xFJR.js";
2
+ import { t as n } from "./createSvgIcon-BdNZIlKS.js";
3
+ import { t as r } from "./ArrowUpward-BbQSKheQ.js";
4
+ import { t as i } from "./Close-oXeOGTZb.js";
5
+ import { t as a } from "./s-text-field-qps0aDNS.js";
6
+ import { SIconButton as o } from "./s-icon-button/s-icon-button.js";
7
+ import { SFileIcon as s } from "./s-file-icon/s-file-icon.js";
8
+ import { forwardRef as c, useEffect as l, useId as u, useState as d } from "react";
9
+ import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
10
+ import { Box as h, ClickAwayListener as g, Popper as _, Typography as v, alpha as y, outlinedInputClasses as b } from "@mui/material";
11
+ import x from "emoji-picker-react";
11
12
  //#region ../../node_modules/@mui/icons-material/AttachFile.mjs
12
- var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z" }), "AttachFile"), b = e(/* @__PURE__ */ d("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8M12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4m3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5" }), "EmojiEmotions"), x = o(({ onSubmit: e, onFileSelect: o, disabled: x, acceptedFileTypes: S, maxFileSize: C, hideEmojiPicker: w, hideFileAttachment: T, ...E }, D) => {
13
- let [O, k] = l(""), [A, j] = l([]), [M, N] = l(/* @__PURE__ */ new Map()), [P, F] = l(!1), [I, L] = l(null), R = c(), z = (e) => e.type.startsWith("image/"), B = (e) => {
13
+ var S = n(/* @__PURE__ */ p("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6z" }), "AttachFile"), C = n(/* @__PURE__ */ p("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2M8.5 8c.83 0 1.5.67 1.5 1.5S9.33 11 8.5 11 7 10.33 7 9.5 7.67 8 8.5 8M12 18c-2.28 0-4.22-1.66-5-4h10c-.78 2.34-2.72 4-5 4m3.5-7c-.83 0-1.5-.67-1.5-1.5S14.67 8 15.5 8s1.5.67 1.5 1.5-.67 1.5-1.5 1.5" }), "EmojiEmotions"), w = c(({ onSubmit: n, onFileSelect: c, disabled: w, acceptedFileTypes: T, maxFileSize: E, hideEmojiPicker: D, hideFileAttachment: O, ...k }, A) => {
14
+ let [j, M] = d(""), [N, P] = d([]), [F, I] = d(/* @__PURE__ */ new Map()), [L, R] = d(!1), [z, B] = d(null), V = u(), H = (e) => e.type.startsWith("image/"), U = (e) => {
14
15
  let t = `${e.name}-${e.size}-${e.lastModified}`;
15
- if (M.has(t)) return M.get(t);
16
- if (z(e)) {
16
+ if (F.has(t)) return F.get(t);
17
+ if (H(e)) {
17
18
  let n = URL.createObjectURL(e);
18
- return N((e) => new Map(e).set(t, n)), n;
19
+ return I((e) => new Map(e).set(t, n)), n;
19
20
  }
20
21
  return "";
21
- }, V = (e) => {
22
- k(e.target.value);
23
- }, H = (e) => {
24
- k((t) => t + e.emoji), F(!1), L(null);
25
- }, U = (e) => {
26
- L(e.currentTarget), F(!P);
27
- }, W = () => {
28
- x || O.trim().length === 0 && A.length === 0 || (e?.(O, A), k(""), M.forEach((e) => URL.revokeObjectURL(e)), N(/* @__PURE__ */ new Map()), j([]));
22
+ }, W = (e) => {
23
+ M(e.target.value);
29
24
  }, G = (e) => {
30
- let t = Array.from(e.target.files ?? []).filter((e) => !(C && e.size > C));
31
- j((e) => [...e, ...t]), o?.(t), e.target.value = "";
25
+ M((t) => t + e.emoji), R(!1), B(null);
32
26
  }, K = (e) => {
33
- let t = A[e];
34
- if (t && z(t)) {
35
- let e = `${t.name}-${t.size}-${t.lastModified}`, n = M.get(e);
36
- n && (URL.revokeObjectURL(n), N((t) => {
27
+ B(e.currentTarget), R(!L);
28
+ }, q = () => {
29
+ w || j.trim().length === 0 && N.length === 0 || (n?.(j, N), M(""), F.forEach((e) => URL.revokeObjectURL(e)), I(/* @__PURE__ */ new Map()), P([]));
30
+ }, J = (e) => {
31
+ let t = Array.from(e.target.files ?? []).filter((e) => !(E && e.size > E));
32
+ P((e) => [...e, ...t]), c?.(t), e.target.value = "";
33
+ }, Y = (e) => {
34
+ let t = N[e];
35
+ if (t && H(t)) {
36
+ let e = `${t.name}-${t.size}-${t.lastModified}`, n = F.get(e);
37
+ n && (URL.revokeObjectURL(n), I((t) => {
37
38
  let n = new Map(t);
38
39
  return n.delete(e), n;
39
40
  }));
40
41
  }
41
- j((t) => t.filter((t, n) => n !== e));
42
+ P((t) => t.filter((t, n) => n !== e));
43
+ }, X = (e) => {
44
+ e.key === "Enter" && !e.shiftKey && (e.preventDefault(), q());
42
45
  };
43
- return s(() => () => {
44
- M.forEach((e) => URL.revokeObjectURL(e));
45
- }, [M]), /* @__PURE__ */ f(p, {
46
+ return l(() => () => {
47
+ F.forEach((e) => URL.revokeObjectURL(e));
48
+ }, [F]), /* @__PURE__ */ m(h, {
46
49
  sx: {
47
50
  border: "1px solid",
48
51
  borderColor: "divider",
49
52
  borderRadius: 2,
50
- padding: "8px 12px"
53
+ padding: "8px 12px",
54
+ transition: "border 120ms ease-in",
55
+ "&:hover": { borderColor: t[500] },
56
+ "&:focus-within": {
57
+ outline: `3px solid ${y(e[500], .5)}`,
58
+ borderColor: e[400]
59
+ },
60
+ ...w && {
61
+ opacity: .5,
62
+ pointerEvents: "none"
63
+ }
51
64
  },
52
65
  children: [
53
- /* @__PURE__ */ d(r, {
66
+ /* @__PURE__ */ p(a, {
54
67
  placeholder: "Enter your message here...",
55
- disabled: x,
56
- value: O,
57
- onChange: V,
58
- onKeyDown: (e) => {
59
- e.key === "Enter" && !e.shiftKey && (e.preventDefault(), W());
60
- },
68
+ disabled: w,
69
+ value: j,
70
+ onChange: W,
71
+ onKeyDown: X,
61
72
  multiline: !0,
62
73
  minRows: 1,
63
74
  maxRows: 10,
64
75
  variant: "outlined",
65
- inputRef: D,
76
+ inputRef: A,
66
77
  slotProps: { input: { sx: {
67
78
  height: "100%",
68
79
  backgroundColor: "transparent",
69
80
  border: "none",
70
81
  padding: 0,
71
- [`&.${_.focused}`]: { outline: "none" },
82
+ [`&.${b.focused}`]: { outline: "none" },
72
83
  "& fieldset": { border: "none" },
73
84
  "&:hover fieldset": { border: "none" },
74
85
  "&.Mui-focused fieldset": { border: "none" }
75
86
  } } },
76
- ...E
87
+ ...k
77
88
  }),
78
- A.length > 0 && /* @__PURE__ */ d(p, {
89
+ N.length > 0 && /* @__PURE__ */ p(h, {
79
90
  sx: { mt: 1 },
80
- children: A.map((e, t) => {
81
- let r = z(e), o = e.name.split(".").pop();
82
- return /* @__PURE__ */ f(p, {
91
+ children: N.map((e, t) => {
92
+ let n = H(e), r = e.name.split(".").pop();
93
+ return /* @__PURE__ */ m(h, {
83
94
  sx: {
84
95
  display: "flex",
85
96
  alignItems: "center",
@@ -91,15 +102,15 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
91
102
  p: 1,
92
103
  mb: .5
93
104
  },
94
- children: [/* @__PURE__ */ f(p, {
105
+ children: [/* @__PURE__ */ m(h, {
95
106
  sx: {
96
107
  display: "flex",
97
108
  alignItems: "center",
98
109
  gap: 1
99
110
  },
100
- children: [r ? /* @__PURE__ */ d(p, {
111
+ children: [n ? /* @__PURE__ */ p(h, {
101
112
  component: "img",
102
- src: B(e),
113
+ src: U(e),
103
114
  alt: e.name,
104
115
  sx: {
105
116
  width: 40,
@@ -109,14 +120,14 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
109
120
  border: "1px solid",
110
121
  borderColor: "divider"
111
122
  }
112
- }) : /* @__PURE__ */ d(a, { extension: o }), /* @__PURE__ */ f(p, {
123
+ }) : /* @__PURE__ */ p(s, { extension: r }), /* @__PURE__ */ m(h, {
113
124
  sx: {
114
125
  display: "flex",
115
126
  flexDirection: "row",
116
127
  alignItems: "center",
117
128
  gap: 1
118
129
  },
119
- children: [/* @__PURE__ */ d(g, {
130
+ children: [/* @__PURE__ */ p(v, {
120
131
  variant: "subtitle2",
121
132
  sx: {
122
133
  textOverflow: "ellipsis",
@@ -124,7 +135,7 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
124
135
  whiteSpace: "nowrap"
125
136
  },
126
137
  children: e.name
127
- }), /* @__PURE__ */ d("div", { children: /* @__PURE__ */ f(g, {
138
+ }), /* @__PURE__ */ p("div", { children: /* @__PURE__ */ m(v, {
128
139
  variant: "caption",
129
140
  children: [
130
141
  "(",
@@ -133,77 +144,65 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
133
144
  ]
134
145
  }) })]
135
146
  })]
136
- }), /* @__PURE__ */ d(i, {
137
- onClick: () => K(t),
147
+ }), /* @__PURE__ */ p(o, {
148
+ onClick: () => Y(t),
138
149
  sx: {
139
150
  minWidth: "auto",
140
151
  p: .5
141
152
  },
142
- children: /* @__PURE__ */ d(n, {})
153
+ children: /* @__PURE__ */ p(i, {})
143
154
  })]
144
155
  }, `${e.name}-${t}`);
145
156
  })
146
157
  }),
147
- /* @__PURE__ */ f(p, {
158
+ /* @__PURE__ */ m(h, {
148
159
  sx: {
149
160
  display: "flex",
150
161
  justifyContent: "space-between",
151
162
  alignItems: "center",
152
163
  mt: 1
153
164
  },
154
- children: [/* @__PURE__ */ f(p, {
165
+ children: [/* @__PURE__ */ m(h, {
155
166
  sx: {
156
167
  display: "flex",
157
168
  gap: 1
158
169
  },
159
- children: [!T && /* @__PURE__ */ f(u, { children: [/* @__PURE__ */ d("input", {
170
+ children: [!O && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p("input", {
160
171
  type: "file",
161
172
  multiple: !0,
162
- accept: S,
163
- onChange: G,
173
+ accept: T,
174
+ onChange: J,
164
175
  style: { display: "none" },
165
- id: `file-attachment-input-${R}`,
166
- disabled: x
167
- }), /* @__PURE__ */ d("label", {
168
- htmlFor: `file-attachment-input-${R}`,
169
- children: /* @__PURE__ */ d(i, {
176
+ id: `file-attachment-input-${V}`,
177
+ disabled: w
178
+ }), /* @__PURE__ */ p("label", {
179
+ htmlFor: `file-attachment-input-${V}`,
180
+ children: /* @__PURE__ */ p(o, {
170
181
  component: "span",
171
- disabled: x,
172
- sx: {
173
- transition: "transform 0.3s ease",
174
- "&:hover": { transform: "scale(1.1)" }
175
- },
176
- children: /* @__PURE__ */ d(y, {})
182
+ disabled: w,
183
+ children: /* @__PURE__ */ p(S, {})
177
184
  })
178
- })] }), !w && /* @__PURE__ */ d(i, {
179
- onClick: U,
180
- disabled: x,
181
- sx: {
182
- transition: "transform 0.3s ease",
183
- "&:hover": { transform: "scale(1.1)" }
184
- },
185
- children: /* @__PURE__ */ d(b, {})
185
+ })] }), !D && /* @__PURE__ */ p(o, {
186
+ onClick: K,
187
+ disabled: w,
188
+ children: /* @__PURE__ */ p(C, {})
186
189
  })]
187
- }), /* @__PURE__ */ d(i, {
188
- onClick: W,
189
- disabled: x,
190
- sx: {
191
- transition: "transform 0.3s ease",
192
- "&:hover": { transform: "scale(1.2)" }
193
- },
194
- children: /* @__PURE__ */ d(t, {})
190
+ }), /* @__PURE__ */ p(o, {
191
+ onClick: q,
192
+ disabled: w,
193
+ children: /* @__PURE__ */ p(r, {})
195
194
  })]
196
195
  }),
197
- /* @__PURE__ */ d(h, {
198
- open: P,
199
- anchorEl: I,
196
+ /* @__PURE__ */ p(_, {
197
+ open: L,
198
+ anchorEl: z,
200
199
  placement: "top-start",
201
200
  sx: { zIndex: 1300 },
202
- children: /* @__PURE__ */ d(m, {
201
+ children: /* @__PURE__ */ p(g, {
203
202
  onClickAway: () => {
204
- F(!1), L(null);
203
+ R(!1), B(null);
205
204
  },
206
- children: /* @__PURE__ */ d(p, {
205
+ children: /* @__PURE__ */ p(h, {
207
206
  sx: {
208
207
  border: "1px solid",
209
208
  borderColor: "divider",
@@ -217,15 +216,21 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
217
216
  "& .epr-search-container": { backgroundColor: "background.paper" },
218
217
  "& .epr-search-container > .epr-icn-search": { display: "none" },
219
218
  "& .epr-search-container > input": {
219
+ boxSizing: "border-box",
220
+ minHeight: 40,
220
221
  backgroundColor: "background.default",
221
222
  border: "1px solid",
222
223
  borderColor: "divider",
223
224
  borderRadius: 1,
224
225
  color: "text.primary",
226
+ fontFamily: "inherit",
227
+ fontSize: "1rem",
225
228
  padding: "8px 12px",
229
+ transition: "border 120ms ease-in",
230
+ "&:hover": { borderColor: t[500] },
226
231
  "&:focus": {
227
- outline: "none",
228
- borderColor: "primary.main"
232
+ outline: `3px solid ${y(e[500], .5)}`,
233
+ borderColor: e[400]
229
234
  },
230
235
  "&::placeholder": { color: "text.secondary" }
231
236
  },
@@ -275,8 +280,8 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
275
280
  "&:hover": { transform: "scale(1.1)" }
276
281
  }
277
282
  },
278
- children: /* @__PURE__ */ d(v, {
279
- onEmojiClick: H,
283
+ children: /* @__PURE__ */ p(x, {
284
+ onEmojiClick: G,
280
285
  width: 300,
281
286
  height: 400,
282
287
  searchDisabled: !1,
@@ -289,6 +294,6 @@ var y = e(/* @__PURE__ */ d("path", { d: "M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79
289
294
  ]
290
295
  });
291
296
  });
292
- x.displayName = "SChatInput";
297
+ w.displayName = "SChatInput";
293
298
  //#endregion
294
- export { x as t };
299
+ export { w as t };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-chat-message-DeP8O6TO.js";
1
+ import { t as e } from "../s-chat-message-DVfbqSAQ.js";
2
2
  export { e as SChatMessage, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-chat-message-DeP8O6TO.js";
1
+ import { t as e } from "../s-chat-message-DVfbqSAQ.js";
2
2
  export { e as SChatMessage, e as default };