@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
@@ -1,9 +1,9 @@
1
1
  import { i as e } from "./utils-B5Rl6Zwv.js";
2
2
  import { t } from "./createSvgIcon-BdNZIlKS.js";
3
- import n from "./s-lazy-image/s-lazy-image.js";
4
- import { SSkeleton as r } from "./s-skeleton/s-skeleton.js";
5
- import { SAvatar as i } from "./s-avatar/s-avatar.js";
6
- import { SImageModal as a } from "./s-image-modal/s-image-modal.js";
3
+ import { n } from "./s-image-modal-DxwMFMNS.js";
4
+ import r from "./s-lazy-image/s-lazy-image.js";
5
+ import { SSkeleton as i } from "./s-skeleton/s-skeleton.js";
6
+ import { SAvatar as a } from "./s-avatar/s-avatar.js";
7
7
  import { SRating as o } from "./s-rating/s-rating.js";
8
8
  import { useEffect as s, useId as c, useState as l } from "react";
9
9
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -38,7 +38,7 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
38
38
  direction: "row",
39
39
  spacing: 2,
40
40
  sx: { alignItems: "flex-start" },
41
- children: [/* @__PURE__ */ u(r, {
41
+ children: [/* @__PURE__ */ u(i, {
42
42
  component: "rounded-avatar",
43
43
  width: A,
44
44
  height: A
@@ -52,22 +52,22 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
52
52
  alignItems: "center",
53
53
  mb: 1
54
54
  },
55
- children: [/* @__PURE__ */ u(r, {
55
+ children: [/* @__PURE__ */ u(i, {
56
56
  width: 120,
57
57
  height: 20
58
- }), /* @__PURE__ */ u(r, {
58
+ }), /* @__PURE__ */ u(i, {
59
59
  width: 80,
60
60
  height: 16
61
61
  })]
62
62
  }),
63
63
  /* @__PURE__ */ u(f, {
64
64
  sx: { mb: 1 },
65
- children: /* @__PURE__ */ u(r, {
65
+ children: /* @__PURE__ */ u(i, {
66
66
  width: 100,
67
67
  height: 20
68
68
  })
69
69
  }),
70
- /* @__PURE__ */ u(r, {
70
+ /* @__PURE__ */ u(i, {
71
71
  height: 16,
72
72
  sx: { mb: .5 }
73
73
  }),
@@ -79,18 +79,18 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
79
79
  alignItems: "center"
80
80
  },
81
81
  children: [
82
- /* @__PURE__ */ u(r, {
82
+ /* @__PURE__ */ u(i, {
83
83
  width: 140,
84
84
  height: 16,
85
85
  sx: { mr: 2 }
86
86
  }),
87
- /* @__PURE__ */ u(r, { component: "icon-button" }),
88
- /* @__PURE__ */ u(r, {
87
+ /* @__PURE__ */ u(i, { component: "icon-button" }),
88
+ /* @__PURE__ */ u(i, {
89
89
  width: 20,
90
90
  height: 16
91
91
  }),
92
- /* @__PURE__ */ u(r, { component: "icon-button" }),
93
- /* @__PURE__ */ u(r, {
92
+ /* @__PURE__ */ u(i, { component: "icon-button" }),
93
+ /* @__PURE__ */ u(i, {
94
94
  width: 20,
95
95
  height: 16
96
96
  })
@@ -109,7 +109,7 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
109
109
  direction: "row",
110
110
  spacing: 2,
111
111
  sx: { alignItems: "flex-start" },
112
- children: [/* @__PURE__ */ u(i, {
112
+ children: [/* @__PURE__ */ u(a, {
113
113
  avatar: b,
114
114
  name: y,
115
115
  size: A
@@ -123,11 +123,7 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
123
123
  alignItems: "center",
124
124
  mb: 1
125
125
  },
126
- children: [/* @__PURE__ */ u(g, {
127
- variant: "subtitle2",
128
- sx: { fontWeight: "600" },
129
- children: y
130
- }), /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(g, {
126
+ children: [/* @__PURE__ */ u(g, { children: y }), /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(g, {
131
127
  variant: "caption",
132
128
  children: $
133
129
  }) })]
@@ -156,7 +152,7 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
156
152
  flexWrap: "wrap",
157
153
  gap: 1
158
154
  },
159
- children: w.map((e, t) => /* @__PURE__ */ u(n, {
155
+ children: w.map((e, t) => /* @__PURE__ */ u(r, {
160
156
  src: e,
161
157
  alt: `Review image ${t + 1}`,
162
158
  width: 80,
@@ -218,7 +214,7 @@ var _ = t(/* @__PURE__ */ u("path", { d: "M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02
218
214
  })]
219
215
  }),
220
216
  N && /* @__PURE__ */ u(p, { sx: { mt: 2 } }),
221
- /* @__PURE__ */ u(a, {
217
+ /* @__PURE__ */ u(n, {
222
218
  isOpen: W,
223
219
  onClose: Z,
224
220
  selectedItem: K,
@@ -1,28 +1,18 @@
1
- import { t as e } from "../Box-BlmynALm.js";
2
- import { t } from "../styled-BTDmdi4c.js";
3
- import { t as n } from "../ArrowUpward-BbQSKheQ.js";
4
- import { useIsPassedPosition as r } from "../hooks/use-is-passed-position.js";
1
+ import { t as e } from "../styled-BTDmdi4c.js";
2
+ import { t } from "../ArrowUpward-BbQSKheQ.js";
3
+ import { useIsPassedPosition as n } from "../hooks/use-is-passed-position.js";
4
+ import { SIconButton as r } from "../s-icon-button/s-icon-button.js";
5
5
  import i from "react";
6
6
  import { jsx as a } from "react/jsx-runtime";
7
7
  //#region lib/s-scroll-to-top/s-scroll-to-top.tsx
8
- var o = t(e)({
8
+ var o = e(r)({
9
9
  position: "fixed",
10
10
  bottom: 20,
11
11
  right: 20,
12
- zIndex: 100,
13
- display: "flex",
14
- alignItems: "center",
15
- justifyContent: "center",
16
- borderRadius: "50%",
17
- width: 40,
18
- height: 40,
19
- backgroundColor: "background.paper",
20
- cursor: "pointer",
21
- transition: "all 0.3s ease",
22
- "&:hover": { transform: "scale(1.1)" }
23
- }), s = i.memo(({ onClick: e, scrollElementId: t, threshold: i = 100, icon: s, sx: c }) => {
24
- let l = r(t ?? window, i), u = () => {
25
- e ? e() : t ? document.getElementById(t)?.scrollTo({
12
+ zIndex: 100
13
+ }), s = i.memo(({ onClick: e, scrollElementId: r, threshold: i = 100, icon: s, sx: c }) => {
14
+ let l = n(r ?? window, i), u = () => {
15
+ e ? e() : r ? document.getElementById(r)?.scrollTo({
26
16
  top: 0,
27
17
  behavior: "smooth"
28
18
  }) : window.scrollTo({
@@ -37,7 +27,7 @@ var o = t(e)({
37
27
  ...c
38
28
  },
39
29
  onClick: u,
40
- children: s ?? /* @__PURE__ */ a(n, {})
30
+ children: s ?? /* @__PURE__ */ a(t, {})
41
31
  });
42
32
  });
43
33
  s.displayName = "SScrollToTop";
@@ -5,7 +5,8 @@ import { Box as i, Stack as a, Switch as o, Typography as s } from "@mui/materia
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(a, {
11
12
  direction: "row",
@@ -1,41 +1,49 @@
1
- import { t as e } from "../Box-BlmynALm.js";
2
- import { t } from "../s-text-editor-toolbar-BnhPG9xv.js";
3
- import * as n from "react";
4
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
- import { Link as a } from "@tiptap/extension-link";
6
- import { Placeholder as o } from "@tiptap/extension-placeholder";
7
- import { EditorContent as s, useEditor as c } from "@tiptap/react";
8
- import { StarterKit as l } from "@tiptap/starter-kit";
1
+ import { i as e } from "../createTheme-Bnw5w28O.js";
2
+ import { t } from "../Box-BlmynALm.js";
3
+ import { o as n, s as r } from "../theme-primitives-OrQ-xFJR.js";
4
+ import { t as i } from "../s-text-editor-toolbar-BnhPG9xv.js";
5
+ import * as a from "react";
6
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import { Link as c } from "@tiptap/extension-link";
8
+ import { Placeholder as l } from "@tiptap/extension-placeholder";
9
+ import { EditorContent as u, useEditor as d } from "@tiptap/react";
10
+ import { StarterKit as f } from "@tiptap/starter-kit";
9
11
  //#region lib/s-text-editor/s-text-editor.tsx
10
- var u = ({ content: u, editable: d = !0, hideToolbar: f, onUpdate: p = () => {}, placeholder: m }) => {
11
- let h = c({
12
+ var p = ({ content: p, editable: m = !0, hideToolbar: h, onUpdate: g = () => {}, placeholder: _ }) => {
13
+ let v = d({
12
14
  extensions: [
13
- l,
14
- o.configure({
15
+ f,
16
+ l.configure({
15
17
  emptyEditorClass: "is-editor-empty",
16
- placeholder: m
18
+ placeholder: _
17
19
  }),
18
- a.configure({
20
+ c.configure({
19
21
  openOnClick: !1,
20
22
  autolink: !0
21
23
  })
22
24
  ],
23
- content: u,
24
- editable: d,
25
- onUpdate: p,
25
+ content: p,
26
+ editable: m,
27
+ onUpdate: g,
26
28
  parseOptions: { preserveWhitespace: "full" }
27
29
  });
28
- return n.useEffect(() => {
29
- h && h.getHTML() !== u && h.commands.setContent(u);
30
- }, [u, h]), /* @__PURE__ */ i(e, {
30
+ return a.useEffect(() => {
31
+ !v || v.isDestroyed || v.getHTML() !== p && v.commands.setContent(p);
32
+ }, [p, v]), /* @__PURE__ */ s(t, {
31
33
  className: "tiptap-root",
32
34
  sx: {
33
35
  display: "flex",
34
36
  flexDirection: "column",
35
- ...d && {
37
+ ...m && {
36
38
  border: "1px solid",
37
39
  borderColor: "divider",
38
- borderRadius: 1
40
+ borderRadius: 1,
41
+ transition: "border 120ms ease-in",
42
+ "&:hover": { borderColor: r[500] },
43
+ "&:focus-within": {
44
+ outline: `3px solid ${e(n[500], .5)}`,
45
+ borderColor: n[400]
46
+ }
39
47
  },
40
48
  "& .tiptap-container": {
41
49
  display: "flex",
@@ -64,12 +72,12 @@ var u = ({ content: u, editable: d = !0, hideToolbar: f, onUpdate: p = () => {},
64
72
  }
65
73
  }
66
74
  },
67
- children: [f ? /* @__PURE__ */ r("div", {}) : /* @__PURE__ */ r(t, { editor: h }), /* @__PURE__ */ r(s, {
75
+ children: [h ? /* @__PURE__ */ o("div", {}) : /* @__PURE__ */ o(i, { editor: v }), /* @__PURE__ */ o(u, {
68
76
  className: "tiptap-container",
69
- editor: h
77
+ editor: v
70
78
  })]
71
79
  });
72
80
  };
73
- u.displayName = "STextEditor";
81
+ p.displayName = "STextEditor";
74
82
  //#endregion
75
- export { u as STextEditor, u as default };
83
+ export { p as STextEditor, p as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-tool-bar-DOcT-lNr.js";
1
+ import { t as e } from "../s-tool-bar-Du66wRC2.js";
2
2
  export { e as SToolBar, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-tool-bar-DOcT-lNr.js";
1
+ import { t as e } from "../s-tool-bar-Du66wRC2.js";
2
2
  export { e as SToolBar, e as default };