@solostylist/ui-kit 1.0.223 → 1.0.224

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 (80) hide show
  1. package/dist/{checkbox-PlpiwQNi.js → checkbox-B95Vlykq.js} +1 -1
  2. package/dist/hooks/index.d.ts +1 -1
  3. package/dist/hooks/{use-count-down.d.ts → use-countdown.d.ts} +8 -8
  4. package/dist/hooks/{use-count-down.js → use-countdown.js} +1 -1
  5. package/dist/s-chat-input/index.js +1 -1
  6. package/dist/s-chat-input/s-chat-input.js +1 -1
  7. package/dist/{s-chat-input-DpCaY6gB.js → s-chat-input-DKGeMh55.js} +98 -98
  8. package/dist/s-countdown/index.d.ts +2 -2
  9. package/dist/s-countdown/index.js +1 -1
  10. package/dist/s-countdown/{s-count-down.d.ts → s-countdown.d.ts} +17 -17
  11. package/dist/s-countdown/{s-count-down.js → s-countdown.js} +2 -2
  12. package/dist/s-data-table/index.js +1 -1
  13. package/dist/s-data-table/s-data-table.js +1 -1
  14. package/dist/{s-data-table-Cb7CsYQf.js → s-data-table-TrCdKq9r.js} +12 -12
  15. package/dist/s-date-picker/index.js +1 -1
  16. package/dist/s-date-picker/s-date-picker.js +1 -1
  17. package/dist/s-date-picker-BkZIEZoz.js +634 -0
  18. package/dist/s-datetime-picker/index.js +1 -1
  19. package/dist/s-datetime-picker/s-datetime-picker.js +1 -1
  20. package/dist/{s-datetime-picker-D78dPyAo.js → s-datetime-picker-rCWovez1.js} +394 -394
  21. package/dist/s-dialog-confirm/s-dialog-confirm.js +0 -1
  22. package/dist/s-glow-button/s-glow-button.d.ts +1 -1
  23. package/dist/s-glow-button/s-glow-button.js +18 -19
  24. package/dist/s-nav-item/index.d.ts +0 -1
  25. package/dist/s-nav-item/index.js +1 -2
  26. package/dist/s-nav-items/index.d.ts +2 -0
  27. package/dist/s-nav-items/index.js +2 -0
  28. package/dist/{s-nav-item → s-nav-items}/s-nav-items.d.ts +1 -1
  29. package/dist/{s-nav-item → s-nav-items}/s-nav-items.js +3 -3
  30. package/dist/s-pixel-reveal/s-pixel-reveal.d.ts +1 -1
  31. package/dist/s-pixel-reveal/s-pixel-reveal.js +74 -69
  32. package/dist/s-text-editor/s-text-editor.js +30 -31
  33. package/dist/s-theme-provider/s-theme-provider.d.ts +3 -3
  34. package/dist/s-theme-provider/s-theme-provider.js +32 -26
  35. package/dist/s-tool-bar/index.js +1 -1
  36. package/dist/s-tool-bar/s-tool-bar.js +1 -1
  37. package/dist/{s-tool-bar-B-v1I_Hy.js → s-tool-bar-DGfyNoYW.js} +142 -143
  38. package/dist/theme/components/accordion-summary.d.ts +385 -385
  39. package/dist/theme/components/accordion-summary.js +1 -1
  40. package/dist/theme/components/accordion.d.ts +2 -2
  41. package/dist/theme/components/alert.d.ts +1524 -1524
  42. package/dist/theme/components/alert.js +15 -22
  43. package/dist/theme/components/app-bar.d.ts +2 -2
  44. package/dist/theme/components/button.d.ts +2282 -2282
  45. package/dist/theme/components/button.js +40 -42
  46. package/dist/theme/components/card.d.ts +767 -767
  47. package/dist/theme/components/card.js +1 -1
  48. package/dist/theme/components/checkbox.d.ts +381 -381
  49. package/dist/theme/components/checkbox.js +1 -1
  50. package/dist/theme/components/chip.js +65 -52
  51. package/dist/theme/components/components.js +3 -3
  52. package/dist/theme/components/form-label.d.ts +2 -2
  53. package/dist/theme/components/icon-button.d.ts +2294 -2294
  54. package/dist/theme/components/icon-button.js +31 -29
  55. package/dist/theme/components/linear-progress.d.ts +382 -382
  56. package/dist/theme/components/linear-progress.js +1 -1
  57. package/dist/theme/components/link.d.ts +2 -2
  58. package/dist/theme/components/link.js +1 -1
  59. package/dist/theme/components/list-item-button.d.ts +2 -2
  60. package/dist/theme/components/list-item.d.ts +2 -2
  61. package/dist/theme/components/outlined-input.js +1 -1
  62. package/dist/theme/components/pagination-item.d.ts +385 -385
  63. package/dist/theme/components/step-icon.d.ts +383 -383
  64. package/dist/theme/components/step-icon.js +1 -1
  65. package/dist/theme/components/step-label.d.ts +384 -384
  66. package/dist/theme/components/tab.d.ts +384 -384
  67. package/dist/theme/components/tabs.d.ts +386 -386
  68. package/dist/theme/components/toggle-button-group.d.ts +383 -383
  69. package/dist/theme/components/toggle-button-group.js +1 -1
  70. package/dist/theme/components/toggle-button.d.ts +385 -385
  71. package/dist/theme/components/toggle-button.js +1 -1
  72. package/dist/theme/theme-primitives.d.ts +132 -0
  73. package/dist/theme/theme-primitives.js +1 -1
  74. package/dist/theme/utils.d.ts +11 -0
  75. package/dist/theme/utils.js +4 -0
  76. package/dist/{theme-primitives-OrQ-xFJR.js → theme-primitives-D2vHHGiX.js} +34 -10
  77. package/dist/{toggle-button-BgpxYWVw.js → toggle-button-BUsRxHn0.js} +1 -1
  78. package/dist/{toggle-button-group-l4hL1DLP.js → toggle-button-group-ABwIhV4P.js} +1 -1
  79. package/package.json +1 -1
  80. package/dist/s-date-picker-Mynq297P.js +0 -634
@@ -20,7 +20,6 @@ var m = ({ title: n, content: r, onConfirm: m = () => {}, onClose: h = () => {},
20
20
  },
21
21
  children: [typeof n == "string" ? /* @__PURE__ */ a(e, {
22
22
  variant: "h5",
23
- sx: { textTransform: "capitalize" },
24
23
  children: n
25
24
  }) : /* @__PURE__ */ a("div", { children: n }), v && /* @__PURE__ */ a(f, {
26
25
  onClick: h,
@@ -16,7 +16,7 @@ export interface SGlowButtonProps extends ButtonProps {
16
16
  height?: string;
17
17
  /** Size of the glow effect in pixels (defaults to 60) */
18
18
  glowSize?: number;
19
- /** Color of the glow effect (defaults to blue[500]) */
19
+ /** Color of the glow effect (defaults to the theme info color) */
20
20
  glowColor?: string;
21
21
  }
22
22
  /**
@@ -1,29 +1,28 @@
1
- import { a as e } from "../theme-primitives-OrQ-xFJR.js";
2
- import { SMovingBorder as t } from "../s-moving-border/s-moving-border.js";
1
+ import { SMovingBorder as e } from "../s-moving-border/s-moving-border.js";
3
2
  import "react";
4
- import { jsx as n } from "react/jsx-runtime";
5
- import { Button as r, hslToRgb as i } from "@mui/material";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ import { Button as n } from "@mui/material";
6
5
  //#region lib/s-glow-button/s-glow-button.tsx
7
- var a = ({ borderRadius: a = 12, children: o, duration: s = 3e3, width: c = "fit-content", height: l = "60px", glowSize: u = 60, glowColor: d = i(e[500]), ...f }) => /* @__PURE__ */ n(t, {
8
- width: c,
9
- height: l,
10
- duration: s,
11
- borderRadius: a,
12
- glowSize: u,
13
- glowColor: d,
6
+ var r = ({ borderRadius: r = 12, children: i, duration: a = 3e3, width: o = "fit-content", height: s = "60px", glowSize: c = 60, glowColor: l = "var(--s-palette-info-main)", ...u }) => /* @__PURE__ */ t(e, {
7
+ width: o,
8
+ height: s,
9
+ duration: a,
10
+ borderRadius: r,
11
+ glowSize: c,
12
+ glowColor: l,
14
13
  padding: .3,
15
- children: /* @__PURE__ */ n(r, {
14
+ children: /* @__PURE__ */ t(n, {
16
15
  sx: {
17
- borderRadius: a,
18
- width: c,
19
- height: l
16
+ borderRadius: r,
17
+ width: o,
18
+ height: s
20
19
  },
21
20
  disableRipple: !0,
22
- ...f,
21
+ ...u,
23
22
  fullWidth: !0,
24
- children: o
23
+ children: i
25
24
  })
26
25
  });
27
- a.displayName = "SGlowButton";
26
+ r.displayName = "SGlowButton";
28
27
  //#endregion
29
- export { a as default };
28
+ export { r as default };
@@ -1,3 +1,2 @@
1
1
  export { SNavItem, type SNavItemProps } from './s-nav-item';
2
- export { SNavItems, SNavGroupItem, type SNavItemConfig, type SNavItemsProps } from './s-nav-items';
3
2
  export { default } from './s-nav-item';
@@ -1,3 +1,2 @@
1
1
  import { SNavItem as e } from "./s-nav-item.js";
2
- import { SNavGroupItem as t, SNavItems as n } from "./s-nav-items.js";
3
- export { t as SNavGroupItem, e as SNavItem, e as default, n as SNavItems };
2
+ export { e as SNavItem, e as default };
@@ -0,0 +1,2 @@
1
+ export { SNavItems, SNavGroupItem, type SNavItemConfig, type SNavItemsProps } from './s-nav-items';
2
+ export { default } from './s-nav-items';
@@ -0,0 +1,2 @@
1
+ import { SNavGroupItem as e, SNavItems as t } from "./s-nav-items.js";
2
+ export { e as SNavGroupItem, t as SNavItems, t as default };
@@ -59,4 +59,4 @@ export declare function SNavItems({ items, pathname, depth, component }: Readonl
59
59
  export declare namespace SNavItems {
60
60
  var displayName: string;
61
61
  }
62
- export {};
62
+ export default SNavItems;
@@ -2,11 +2,11 @@ import { t as e } from "../Box-BlmynALm.js";
2
2
  import { t } from "../Stack-BQkLmLFp.js";
3
3
  import { t as n } from "../Typography-EsraKPZO.js";
4
4
  import { t as r } from "../ExpandMore-Bu7_1g6Q.js";
5
- import { SNavItem as i } from "./s-nav-item.js";
5
+ import { SNavItem as i } from "../s-nav-item/s-nav-item.js";
6
6
  import { t as a } from "../Collapse-CnXmaDqT.js";
7
7
  import * as o from "react";
8
8
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
9
- //#region lib/s-nav-item/s-nav-items.tsx
9
+ //#region lib/s-nav-items/s-nav-items.tsx
10
10
  function l(e, t) {
11
11
  return e.some((e) => e.href && (t === e.href || t.startsWith(e.href + "/")) ? !0 : e.items ? l(e.items, t) : !1);
12
12
  }
@@ -151,4 +151,4 @@ function p({ items: e, pathname: n = "", depth: r = 0, component: i }) {
151
151
  }
152
152
  p.displayName = "SNavItems";
153
153
  //#endregion
154
- export { f as SNavGroupItem, p as SNavItems };
154
+ export { f as SNavGroupItem, p as SNavItems, p as default };
@@ -7,7 +7,7 @@ export interface SPixelRevealProps extends Omit<React.HTMLAttributes<HTMLDivElem
7
7
  gap?: number;
8
8
  /** Animation speed multiplier (0-100) */
9
9
  speed?: number;
10
- /** Array of color values randomly assigned to pixels */
10
+ /** Array of color values randomly assigned to pixels (defaults to theme primary shades) */
11
11
  colors?: string[];
12
12
  /** Controls pixel animation state */
13
13
  loading?: boolean;
@@ -1,6 +1,6 @@
1
- import { o as e } from "../theme-primitives-OrQ-xFJR.js";
2
- import { forwardRef as t, useCallback as n, useEffect as r, useRef as i } from "react";
3
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { forwardRef as e, useCallback as t, useEffect as n, useRef as r } from "react";
2
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
3
+ import { useTheme as o } from "@mui/material";
4
4
  //#region lib/s-pixel-reveal/s-pixel-reveal.tsx
5
5
  var s = class {
6
6
  x;
@@ -47,100 +47,105 @@ function c({ x: e, y: t, gap: n, logicalWidth: r, logicalHeight: i, instant: a,
47
47
  let c = e + n / 2, l = t + n / 2, u = r / 2, d = i / 2;
48
48
  return Math.sqrt(s(c, l, u, d));
49
49
  }
50
- function l(e, t, n) {
50
+ function l(e, t) {
51
+ let n = /^var\((--[^),\s]+)\s*(?:,\s*([^)]+))?\)$/.exec(e.trim());
52
+ return n && (getComputedStyle(t).getPropertyValue(n[1]).trim() || n[2]?.trim()) || e;
53
+ }
54
+ function u(e, t, n) {
51
55
  e.has(t) || e.set(t, []), e.get(t)?.push(n);
52
56
  }
53
- var u = t(({ gap: t = 5, speed: u = 100, colors: d = [
54
- e[400],
55
- e[500],
56
- e[600]
57
- ], loading: f = !0, src: p, alt: m = "", style: h, children: g, instant: _ = !0, ...v }, y) => {
58
- let b = i(null), x = i(null), S = i(null), C = i(/* @__PURE__ */ new Map()), w = i(null), T = i(1e3 / 60), E = i(0), D = i(!1);
59
- r(() => {
60
- D.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
57
+ var d = e(({ gap: e = 5, speed: d = 100, colors: f, loading: p = !0, src: m, alt: h = "", style: g, children: _, instant: v = !0, ...y }, b) => {
58
+ let x = o(), S = r(null), C = r(null), w = r(null), T = r(/* @__PURE__ */ new Map()), E = r(null), D = r(1e3 / 60), O = r(0), k = r(!1);
59
+ n(() => {
60
+ k.current = typeof window < "u" ? window.matchMedia("(prefers-reduced-motion: reduce)").matches : !1;
61
61
  }, []);
62
- let O = n((e, t, n, r) => {
62
+ let A = t((e, t, n, r) => {
63
63
  let i = e - n, a = t - r;
64
64
  return i * i + a * a;
65
- }, []), k = n((e, n, r) => {
66
- w.current && cancelAnimationFrame(w.current), E.current = performance.now();
65
+ }, []), j = t((t, n, r) => {
66
+ E.current && cancelAnimationFrame(E.current), O.current = performance.now();
67
67
  let i = () => {
68
- w.current = requestAnimationFrame(i);
69
- let a = performance.now(), o = a - E.current;
70
- if (o < T.current) return;
71
- E.current = a - o % T.current, e.clearRect(0, 0, n, r);
68
+ E.current = requestAnimationFrame(i);
69
+ let a = performance.now(), o = a - O.current;
70
+ if (o < D.current) return;
71
+ O.current = a - o % D.current, t.clearRect(0, 0, n, r);
72
72
  let s = !1;
73
- C.current.forEach((n, r) => {
74
- e.fillStyle = r;
73
+ T.current.forEach((n, r) => {
74
+ t.fillStyle = r;
75
75
  for (let r of n) {
76
- if (f) {
77
- r.updateWhileLoading(), r.draw(e, t), s = !0;
76
+ if (p) {
77
+ r.updateWhileLoading(), r.draw(t, e), s = !0;
78
78
  continue;
79
79
  }
80
- r.updateWhileIdle() && (r.draw(e, t), s = !0);
80
+ r.updateWhileIdle() && (r.draw(t, e), s = !0);
81
81
  }
82
- }), !f && !s && w.current && (cancelAnimationFrame(w.current), w.current = null);
82
+ }), !p && !s && E.current && (cancelAnimationFrame(E.current), E.current = null);
83
83
  };
84
84
  i();
85
- }, [f, t]), A = n(() => {
86
- let e = b.current, n = e?.getContext("2d");
87
- if (!e || !n) return;
88
- C.current = /* @__PURE__ */ new Map();
89
- let r = D.current ? 0 : Math.max(0, Math.min(100, u)) * .001, i = window.devicePixelRatio ?? 1, a = e.width / i, o = e.height / i, f = .5, p = (a + o) * .01, m = a % t / 2, h = o % t / 2;
90
- for (let e = m; e < a; e += t) for (let n = h; n < o; n += t) {
91
- let i = d[Math.floor(Math.random() * d.length)], u = c({
92
- x: e,
85
+ }, [p, e]), M = t(() => {
86
+ let t = S.current, n = t?.getContext("2d");
87
+ if (!t || !n) return;
88
+ T.current = /* @__PURE__ */ new Map();
89
+ let r = k.current ? 0 : Math.max(0, Math.min(100, d)) * .001, i = (x.vars ?? x).palette, a = (f ?? [
90
+ i.primary[400],
91
+ i.primary[500],
92
+ i.primary[600]
93
+ ]).map((e) => l(e, t)), o = window.devicePixelRatio ?? 1, p = t.width / o, m = t.height / o, h = .5, g = (p + m) * .01, _ = p % e / 2, y = m % e / 2;
94
+ for (let t = _; t < p; t += e) for (let n = y; n < m; n += e) {
95
+ let i = a[Math.floor(Math.random() * a.length)], o = c({
96
+ x: t,
93
97
  y: n,
94
- gap: t,
95
- logicalWidth: a,
96
- logicalHeight: o,
97
- instant: _,
98
- reducedMotion: D.current,
99
- getDistanceSq: O
100
- }), m = Math.random() * 4 + p, h = Math.random() * (2 - f) + f;
101
- l(C.current, i, new s(e, n, i, r, u, m, h));
98
+ gap: e,
99
+ logicalWidth: p,
100
+ logicalHeight: m,
101
+ instant: v,
102
+ reducedMotion: k.current,
103
+ getDistanceSq: A
104
+ }), l = Math.random() * 4 + g, d = Math.random() * (2 - h) + h;
105
+ u(T.current, i, new s(t, n, i, r, o, l, d));
102
106
  }
103
- k(n, a, o);
107
+ j(n, p, m);
104
108
  }, [
105
- t,
106
- u,
109
+ e,
107
110
  d,
108
- _,
109
- O,
110
- k
111
- ]), j = n(() => {
112
- let e = b.current, t = x.current, n = e?.getContext("2d");
111
+ f,
112
+ x,
113
+ v,
114
+ A,
115
+ j
116
+ ]), N = t(() => {
117
+ let e = S.current, t = C.current, n = e?.getContext("2d");
113
118
  if (!e || !t || !n) return;
114
119
  let r = t.getBoundingClientRect();
115
120
  if (r.width === 0 || r.height === 0) return;
116
121
  let i = Math.floor(r.width), a = Math.floor(r.height), o = window.devicePixelRatio ?? 1;
117
- e.width = i * o, e.height = a * o, e.style.width = `${i}px`, e.style.height = `${a}px`, n.setTransform(1, 0, 0, 1, 0, 0), n.scale(o, o), A();
118
- }, [A]);
119
- return r(() => {
120
- j();
122
+ e.width = i * o, e.height = a * o, e.style.width = `${i}px`, e.style.height = `${a}px`, n.setTransform(1, 0, 0, 1, 0, 0), n.scale(o, o), M();
123
+ }, [M]);
124
+ return n(() => {
125
+ N();
121
126
  let e = new ResizeObserver(() => {
122
- requestAnimationFrame(() => j());
127
+ requestAnimationFrame(() => N());
123
128
  });
124
- return x.current && e.observe(x.current), () => {
125
- e.disconnect(), w.current && cancelAnimationFrame(w.current);
129
+ return C.current && e.observe(C.current), () => {
130
+ e.disconnect(), E.current && cancelAnimationFrame(E.current);
126
131
  };
127
- }, [j]), /* @__PURE__ */ o("div", {
132
+ }, [N]), /* @__PURE__ */ a("div", {
128
133
  ref: (e) => {
129
- x.current = e, typeof y == "function" ? y(e) : y && (y.current = e);
134
+ C.current = e, typeof b == "function" ? b(e) : b && (b.current = e);
130
135
  },
131
136
  style: {
132
137
  position: "relative",
133
138
  width: "100%",
134
139
  height: "100%",
135
140
  overflow: "hidden",
136
- ...h
141
+ ...g
137
142
  },
138
- ...v,
143
+ ...y,
139
144
  children: [
140
- p && /* @__PURE__ */ a("img", {
141
- ref: S,
142
- src: p,
143
- alt: m,
145
+ m && /* @__PURE__ */ i("img", {
146
+ ref: w,
147
+ src: m,
148
+ alt: h,
144
149
  style: {
145
150
  position: "absolute",
146
151
  inset: 0,
@@ -150,9 +155,9 @@ var u = t(({ gap: t = 5, speed: u = 100, colors: d = [
150
155
  display: "block"
151
156
  }
152
157
  }),
153
- g,
154
- /* @__PURE__ */ a("canvas", {
155
- ref: b,
158
+ _,
159
+ /* @__PURE__ */ i("canvas", {
160
+ ref: S,
156
161
  style: {
157
162
  position: "absolute",
158
163
  inset: 0,
@@ -166,6 +171,6 @@ var u = t(({ gap: t = 5, speed: u = 100, colors: d = [
166
171
  ]
167
172
  });
168
173
  });
169
- u.displayName = "SPixelReveal";
174
+ d.displayName = "SPixelReveal";
170
175
  //#endregion
171
- export { u as SPixelReveal, u as default };
176
+ export { d as SPixelReveal, d as default };
@@ -1,48 +1,47 @@
1
- import { i as e } from "../createTheme-Bnw5w28O.js";
1
+ import { tint as e } from "../theme/utils.js";
2
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-CCK7yyNS.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";
3
+ import { t as n } from "../s-text-editor-toolbar-CCK7yyNS.js";
4
+ import * as r from "react";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { Link as o } from "@tiptap/extension-link";
7
+ import { Placeholder as s } from "@tiptap/extension-placeholder";
8
+ import { EditorContent as c, useEditor as l } from "@tiptap/react";
9
+ import { StarterKit as u } from "@tiptap/starter-kit";
11
10
  //#region lib/s-text-editor/s-text-editor.tsx
12
- var p = ({ content: p, editable: m = !0, hideToolbar: h, onUpdate: g = () => {}, placeholder: _ }) => {
13
- let v = d({
11
+ var d = ({ content: d, editable: f = !0, hideToolbar: p, onUpdate: m = () => {}, placeholder: h }) => {
12
+ let g = l({
14
13
  extensions: [
15
- f,
16
- l.configure({
14
+ u,
15
+ s.configure({
17
16
  emptyEditorClass: "is-editor-empty",
18
- placeholder: _
17
+ placeholder: h
19
18
  }),
20
- c.configure({
19
+ o.configure({
21
20
  openOnClick: !1,
22
21
  autolink: !0
23
22
  })
24
23
  ],
25
- content: p,
26
- editable: m,
27
- onUpdate: g,
24
+ content: d,
25
+ editable: f,
26
+ onUpdate: m,
28
27
  parseOptions: { preserveWhitespace: "full" }
29
28
  });
30
- return a.useEffect(() => {
31
- !v || v.isDestroyed || v.getHTML() !== p && v.commands.setContent(p);
32
- }, [p, v]), /* @__PURE__ */ s(t, {
29
+ return r.useEffect(() => {
30
+ !g || g.isDestroyed || g.getHTML() !== d && g.commands.setContent(d);
31
+ }, [d, g]), /* @__PURE__ */ a(t, {
33
32
  className: "tiptap-root",
34
- sx: {
33
+ sx: (t) => ({
35
34
  display: "flex",
36
35
  flexDirection: "column",
37
- ...m && {
36
+ ...f && {
38
37
  border: "1px solid",
39
38
  borderColor: "divider",
40
39
  borderRadius: 1,
41
40
  transition: "border 120ms ease-in",
42
- "&:hover": { borderColor: r[500] },
41
+ "&:hover": { borderColor: (t.vars ?? t).palette.grey[500] },
43
42
  "&:focus-within": {
44
- outline: `3px solid ${e(n[500], .5)}`,
45
- borderColor: n[400]
43
+ outline: `3px solid ${e((t.vars ?? t).palette.primary[500], 50)}`,
44
+ borderColor: (t.vars ?? t).palette.primary[400]
46
45
  }
47
46
  },
48
47
  "& .tiptap-container": {
@@ -71,13 +70,13 @@ var p = ({ content: p, editable: m = !0, hideToolbar: h, onUpdate: g = () => {},
71
70
  pointerEvents: "none"
72
71
  }
73
72
  }
74
- },
75
- children: [h ? /* @__PURE__ */ o("div", {}) : /* @__PURE__ */ o(i, { editor: v }), /* @__PURE__ */ o(u, {
73
+ }),
74
+ children: [p ? /* @__PURE__ */ i("div", {}) : /* @__PURE__ */ i(n, { editor: g }), /* @__PURE__ */ i(c, {
76
75
  className: "tiptap-container",
77
- editor: v
76
+ editor: g
78
77
  })]
79
78
  });
80
79
  };
81
- p.displayName = "STextEditor";
80
+ d.displayName = "STextEditor";
82
81
  //#endregion
83
- export { p as STextEditor, p as default };
82
+ export { d as STextEditor, d as default };
@@ -1,4 +1,4 @@
1
- import { Theme, ThemeOptions, ThemeProviderProps } from '@mui/material';
1
+ import { ThemeOptions, ThemeProviderProps } from '@mui/material';
2
2
  import * as React from 'react';
3
3
  /**
4
4
  * Props interface for SThemeProvider component
@@ -14,8 +14,8 @@ export interface SThemeProviderProps extends Omit<ThemeProviderProps, 'defaultMo
14
14
  themeComponents?: ThemeOptions['components'];
15
15
  /** Default color mode (defaults to 'system') */
16
16
  defaultMode?: 'light' | 'dark' | 'system';
17
- /** Custom theme object to merge with internal theme */
18
- theme?: Theme;
17
+ /** Theme options deep-merged into the internal theme before createTheme */
18
+ theme?: ThemeOptions;
19
19
  }
20
20
  export declare const SThemeProvider: {
21
21
  ({ children, disableCssBaseline, disableCustomTheme, themeComponents, defaultMode, theme, ...themeProviderProps }: SThemeProviderProps): React.JSX.Element;
@@ -1,35 +1,41 @@
1
- import { i as e, n as t, r as n, t as r } from "../theme-primitives-OrQ-xFJR.js";
1
+ import { i as e, n as t, r as n, t as r } from "../theme-primitives-D2vHHGiX.js";
2
2
  import { components as i } from "../theme/components/components.js";
3
3
  import * as a from "react";
4
4
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
5
5
  import { CssBaseline as c, ThemeProvider as l, createTheme as u } from "@mui/material";
6
+ import { deepmerge as d } from "@mui/utils";
6
7
  //#region lib/s-theme-provider/s-theme-provider.tsx
7
- var d = ({ children: d, disableCssBaseline: f = !1, disableCustomTheme: p, themeComponents: m, defaultMode: h = "system", theme: g, ..._ }) => {
8
- let v = a.useMemo(() => p ? {} : u({
9
- cssVariables: {
10
- colorSchemeSelector: "data-mui-color-scheme",
11
- cssVarPrefix: "s"
12
- },
13
- colorSchemes: r,
14
- typography: e,
15
- shadows: t,
16
- shape: n,
17
- components: {
18
- ...i,
19
- ...m
20
- }
21
- }), [p, m]);
22
- return p ? /* @__PURE__ */ o(a.Fragment, { children: d }) : /* @__PURE__ */ s(l, {
8
+ var f = ({ children: f, disableCssBaseline: p = !1, disableCustomTheme: m, themeComponents: h, defaultMode: g = "system", theme: _, ...v }) => {
9
+ let y = a.useMemo(() => {
10
+ if (m) return {};
11
+ let a = {
12
+ cssVariables: {
13
+ colorSchemeSelector: "data-mui-color-scheme",
14
+ cssVarPrefix: "s"
15
+ },
16
+ colorSchemes: r,
17
+ typography: e,
18
+ shadows: t,
19
+ shape: n,
20
+ components: {
21
+ ...i,
22
+ ...h
23
+ }
24
+ };
25
+ return u(_ ? d(a, _) : a);
26
+ }, [
27
+ m,
28
+ h,
29
+ _
30
+ ]);
31
+ return m ? /* @__PURE__ */ o(a.Fragment, { children: f }) : /* @__PURE__ */ s(l, {
23
32
  disableTransitionOnChange: !0,
24
- ..._,
25
- theme: {
26
- ...v,
27
- ...g
28
- },
29
- defaultMode: h,
30
- children: [!f && /* @__PURE__ */ o(c, {}), d]
33
+ ...v,
34
+ theme: y,
35
+ defaultMode: g,
36
+ children: [!p && /* @__PURE__ */ o(c, {}), f]
31
37
  });
32
38
  };
33
- d.displayName = "SThemeProvider";
39
+ f.displayName = "SThemeProvider";
34
40
  //#endregion
35
- export { d as SThemeProvider, d as default };
41
+ export { f as SThemeProvider, f as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-tool-bar-B-v1I_Hy.js";
1
+ import { t as e } from "../s-tool-bar-DGfyNoYW.js";
2
2
  export { e as SToolBar, e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../s-tool-bar-B-v1I_Hy.js";
1
+ import { t as e } from "../s-tool-bar-DGfyNoYW.js";
2
2
  export { e as SToolBar, e as default };