@solostylist/ui-kit 1.0.118 → 1.0.119

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 (32) hide show
  1. package/dist/s-carousel/s-carousel.js +523 -523
  2. package/dist/s-date-picker/s-date-picker.js +20 -19
  3. package/dist/s-datetime-picker/s-datetime-picker.js +2 -1
  4. package/dist/s-image-modal/s-image-modal.js +44 -44
  5. package/dist/s-interactive-gallery/s-interactive-gallery.js +22 -22
  6. package/dist/s-lazy-image/s-lazy-image.js +10 -10
  7. package/dist/s-multi-select/s-multi-select.js +16 -22
  8. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.d.ts +1 -1
  9. package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +17 -17
  10. package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +11 -11
  11. package/dist/s-select/s-select.js +31 -31
  12. package/dist/s-text-editor/s-text-editor-toolbar.js +10 -9
  13. package/dist/s-text-editor/s-text-editor.js +13 -12
  14. package/dist/s-text-shimmer/s-text-shimmer.js +6 -6
  15. package/dist/s-tip/s-tip.js +12 -14
  16. package/dist/theme/components/alert.d.ts +3846 -13
  17. package/dist/theme/components/alert.js +31 -14
  18. package/dist/theme/components/button.d.ts +96 -24
  19. package/dist/theme/components/button.js +42 -41
  20. package/dist/theme/components/chip.d.ts +6 -6
  21. package/dist/theme/components/chip.js +38 -160
  22. package/dist/theme/components/popover.d.ts +1 -0
  23. package/dist/theme/components/popover.js +4 -3
  24. package/dist/theme/components/tooltip.d.ts +16 -6
  25. package/dist/theme/components/tooltip.js +12 -11
  26. package/dist/theme/customizations/data-display.js +9 -9
  27. package/dist/theme/customizations/inputs.js +5 -12
  28. package/dist/theme/customizations/surfaces.js +6 -6
  29. package/dist/theme/theme-primitives.d.ts +20 -7
  30. package/dist/theme/theme-primitives.js +120 -176
  31. package/package.json +1 -1
  32. package/dist/theme/components/components.d.ts +0 -6114
@@ -8,21 +8,21 @@ import { u as O, a as U, b as Y, c as Q, r as T, d as q, P as B, e as H, f as $,
8
8
  import { u as y } from "../warning-BCwEnWrE.js";
9
9
  import { g as ne } from "../colorManipulator-ep5lERxB.js";
10
10
  import { g as re } from "../generateUtilityClasses-BtVDwGrk.js";
11
- import { s as N } from "../styled-BD_erj7E.js";
11
+ import { s as C } from "../styled-BD_erj7E.js";
12
12
  import { b as le } from "../createSvgIcon-By5UWB4_.js";
13
13
  import { T as ie } from "../Typography-y4bVBfDI.js";
14
- import { r as h, a as C } from "../ButtonBase-DVlCHVDw.js";
14
+ import { r as h, a as N } from "../ButtonBase-DVlCHVDw.js";
15
15
  function ce(l) {
16
16
  return ne("MuiDatePickerToolbar", l);
17
17
  }
18
18
  re("MuiDatePickerToolbar", ["root", "title"]);
19
- const ue = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], de = (l) => le({
19
+ const de = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], ue = (l) => le({
20
20
  root: ["root"],
21
21
  title: ["title"]
22
- }, ce, l), fe = N(B, {
22
+ }, ce, l), fe = C(B, {
23
23
  name: "MuiDatePickerToolbar",
24
24
  slot: "Root"
25
- })({}), pe = N(ie, {
25
+ })({}), pe = C(ie, {
26
26
  name: "MuiDatePickerToolbar",
27
27
  slot: "Title"
28
28
  })({
@@ -43,19 +43,19 @@ const ue = ["toolbarFormat", "toolbarPlaceholder", "className", "classes"], de =
43
43
  toolbarPlaceholder: s = "––",
44
44
  className: i,
45
45
  classes: p
46
- } = r, c = P(r, ue), d = O(), {
47
- value: u,
46
+ } = r, c = P(r, de), u = O(), {
47
+ value: d,
48
48
  views: v,
49
49
  orientation: E
50
- } = U(), V = Y(), _ = Q(), w = de(p), A = b.useMemo(() => {
51
- if (!d.isValid(u))
50
+ } = U(), V = Y(), _ = Q(), w = ue(p), A = b.useMemo(() => {
51
+ if (!u.isValid(d))
52
52
  return s;
53
- const W = T(d, {
53
+ const W = T(u, {
54
54
  format: o,
55
55
  views: v
56
56
  }, !0);
57
- return d.formatByString(u, W);
58
- }, [u, o, s, d, v]);
57
+ return u.formatByString(d, W);
58
+ }, [d, o, s, u, v]);
59
59
  return /* @__PURE__ */ f.jsx(fe, a({
60
60
  ref: t,
61
61
  toolbarTitle: V.datePickerToolbarTitle,
@@ -449,9 +449,9 @@ const k = /* @__PURE__ */ b.forwardRef(function(n, t) {
449
449
  field: D
450
450
  }, o.slots),
451
451
  slotProps: a({}, o.slotProps, {
452
- field: (d) => {
453
- var u;
454
- return a({}, C((u = o.slotProps) == null ? void 0 : u.field, d), M(o));
452
+ field: (u) => {
453
+ var d;
454
+ return a({}, N((d = o.slotProps) == null ? void 0 : d.field, u), M(o));
455
455
  },
456
456
  toolbar: a({
457
457
  hidden: !0
@@ -797,9 +797,9 @@ const j = /* @__PURE__ */ b.forwardRef(function(n, t) {
797
797
  field: D
798
798
  }, o.slots),
799
799
  slotProps: a({}, o.slotProps, {
800
- field: (d) => {
801
- var u;
802
- return a({}, C((u = o.slotProps) == null ? void 0 : u.field, d), M(o));
800
+ field: (u) => {
801
+ var d;
802
+ return a({}, N((d = o.slotProps) == null ? void 0 : d.field, u), M(o));
803
803
  },
804
804
  toolbar: a({
805
805
  hidden: !1
@@ -1484,7 +1484,8 @@ function Re({ label: l, required: n = !1, error: t, htmlFor: r, hint: o, ...s })
1484
1484
  popper: {
1485
1485
  sx: {
1486
1486
  "& .MuiPaper-root": {
1487
- border: "1px solid var(--s-palette-divider)",
1487
+ border: "1px solid",
1488
+ borderColor: (i.vars || i).palette.divider,
1488
1489
  borderRadius: (i.vars || i).shape.borderRadius,
1489
1490
  boxShadow: "none",
1490
1491
  backgroundImage: "none"
@@ -5149,7 +5149,8 @@ function Qs({
5149
5149
  popper: {
5150
5150
  sx: {
5151
5151
  "& .MuiPaper-root": {
5152
- border: "1px solid var(--s-palette-divider)",
5152
+ border: "1px solid",
5153
+ borderColor: (i.vars || i).palette.divider,
5153
5154
  borderRadius: (i.vars || i).shape.borderRadius,
5154
5155
  boxShadow: "none",
5155
5156
  backgroundImage: "none"
@@ -1,14 +1,14 @@
1
1
  import { j as o } from "../jsx-runtime-OVHDjVDe.js";
2
2
  import { useState as k, useEffect as w } from "react";
3
- import { Modal as A, Box as d, Paper as b, Typography as z, IconButton as m, Stack as L } from "@mui/material";
4
- import { motion as h, AnimatePresence as T } from "framer-motion";
3
+ import { Modal as A, Box as l, Paper as b, Typography as z, IconButton as m, Stack as L } from "@mui/material";
4
+ import { motion as f, AnimatePresence as T } from "framer-motion";
5
5
  import { C as F } from "../Close-DlTC3goO.js";
6
6
  import { C as $, a as B } from "../ChevronRight-DQD188LX.js";
7
- const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disableVideoControls: r = !1 }) => s.type === "video" ? /* @__PURE__ */ o.jsx(
8
- d,
7
+ const I = ({ item: s, onClick: c, style: x = {}, objectFit: e = "contain", disableVideoControls: r = !1 }) => s.type === "video" ? /* @__PURE__ */ o.jsx(
8
+ l,
9
9
  {
10
10
  component: "video",
11
- onClick: l,
11
+ onClick: c,
12
12
  controls: !r,
13
13
  sx: {
14
14
  width: "100%",
@@ -20,12 +20,12 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
20
20
  children: /* @__PURE__ */ o.jsx("source", { src: s.url, type: "video/mp4" })
21
21
  }
22
22
  ) : /* @__PURE__ */ o.jsx(
23
- d,
23
+ l,
24
24
  {
25
25
  component: "img",
26
26
  src: s.url,
27
27
  alt: s.title || "",
28
- onClick: l,
28
+ onClick: c,
29
29
  sx: {
30
30
  width: "100%",
31
31
  height: "100%",
@@ -36,11 +36,11 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
36
36
  }
37
37
  ), M = ({
38
38
  selectedItem: s,
39
- isOpen: l,
39
+ isOpen: c,
40
40
  onClose: x,
41
41
  onItemChange: e,
42
42
  mediaItems: r = [],
43
- renderMediaItem: f,
43
+ renderMediaItem: h,
44
44
  showNavigation: P = !0,
45
45
  showThumbnailDock: E = !0,
46
46
  showCounter: S = !0,
@@ -50,21 +50,21 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
50
50
  w(() => {
51
51
  s && u(s);
52
52
  }, [s]);
53
- const p = P && r.length > 1 && i, n = i ? r.findIndex((t) => t.id === i.id) : -1, g = r.length, v = () => {
54
- if (p && n > 0) {
55
- const t = r[n - 1];
53
+ const p = P && r.length > 1 && i, a = i ? r.findIndex((t) => t.id === i.id) : -1, g = r.length, v = () => {
54
+ if (p && a > 0) {
55
+ const t = r[a - 1];
56
56
  e ? e(t) : u(t);
57
57
  }
58
58
  }, j = () => {
59
- if (p && n < g - 1) {
60
- const t = r[n + 1];
59
+ if (p && a < g - 1) {
60
+ const t = r[a + 1];
61
61
  e ? e(t) : u(t);
62
62
  }
63
63
  };
64
64
  return w(() => {
65
- const t = (a) => {
66
- if (l)
67
- switch (a.key) {
65
+ const t = (d) => {
66
+ if (c)
67
+ switch (d.key) {
68
68
  case "ArrowLeft":
69
69
  v();
70
70
  break;
@@ -77,10 +77,10 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
77
77
  }
78
78
  };
79
79
  return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
80
- }, [l, n, g, p]), !l || !i ? null : /* @__PURE__ */ o.jsx(
80
+ }, [c, a, g, p]), !c || !i ? null : /* @__PURE__ */ o.jsx(
81
81
  A,
82
82
  {
83
- open: l,
83
+ open: c,
84
84
  onClose: x,
85
85
  sx: {
86
86
  zIndex: (t) => t.zIndex.modal + 100,
@@ -94,9 +94,9 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
94
94
  }
95
95
  }
96
96
  },
97
- children: /* @__PURE__ */ o.jsxs(d, { children: [
97
+ children: /* @__PURE__ */ o.jsxs(l, { children: [
98
98
  /* @__PURE__ */ o.jsx(
99
- h.div,
99
+ f.div,
100
100
  {
101
101
  initial: { scale: 0.98 },
102
102
  animate: { scale: 1 },
@@ -116,7 +116,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
116
116
  },
117
117
  children: [
118
118
  /* @__PURE__ */ o.jsx(
119
- d,
119
+ l,
120
120
  {
121
121
  sx: {
122
122
  height: "100%",
@@ -124,7 +124,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
124
124
  flexDirection: "column"
125
125
  },
126
126
  children: /* @__PURE__ */ o.jsx(
127
- d,
127
+ l,
128
128
  {
129
129
  sx: {
130
130
  flex: 1,
@@ -135,7 +135,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
135
135
  bgcolor: "background.default"
136
136
  },
137
137
  children: /* @__PURE__ */ o.jsx(T, { mode: "wait", children: /* @__PURE__ */ o.jsx(
138
- h.div,
138
+ f.div,
139
139
  {
140
140
  style: { position: "relative" },
141
141
  initial: { y: 20, scale: 0.97 },
@@ -159,9 +159,9 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
159
159
  overflow: "hidden"
160
160
  },
161
161
  children: [
162
- f ? f(i) : /* @__PURE__ */ o.jsx(I, { item: i }),
162
+ h ? h(i) : /* @__PURE__ */ o.jsx(I, { item: i }),
163
163
  (i.title || i.desc) && /* @__PURE__ */ o.jsxs(
164
- d,
164
+ l,
165
165
  {
166
166
  sx: {
167
167
  position: "absolute",
@@ -204,7 +204,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
204
204
  }
205
205
  ),
206
206
  S && p && /* @__PURE__ */ o.jsxs(
207
- d,
207
+ l,
208
208
  {
209
209
  sx: {
210
210
  position: "absolute",
@@ -217,7 +217,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
217
217
  color: "text.primary"
218
218
  },
219
219
  children: [
220
- n + 1,
220
+ a + 1,
221
221
  " / ",
222
222
  g
223
223
  ]
@@ -231,7 +231,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
231
231
  onClick: (t) => {
232
232
  t.stopPropagation(), v();
233
233
  },
234
- disabled: n === 0,
234
+ disabled: a === 0,
235
235
  sx: {
236
236
  position: "absolute",
237
237
  left: { xs: 8, sm: 10, md: 12 },
@@ -252,7 +252,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
252
252
  onClick: (t) => {
253
253
  t.stopPropagation(), j();
254
254
  },
255
- disabled: n === g - 1,
255
+ disabled: a === g - 1,
256
256
  sx: {
257
257
  position: "absolute",
258
258
  right: { xs: 8, sm: 10, md: 12 },
@@ -273,15 +273,15 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
273
273
  }
274
274
  ),
275
275
  E && p && r.length > 1 && /* @__PURE__ */ o.jsx(
276
- h.div,
276
+ f.div,
277
277
  {
278
278
  drag: !0,
279
279
  dragMomentum: !1,
280
280
  dragElastic: 0.1,
281
281
  initial: !1,
282
282
  animate: { x: y.x, y: y.y },
283
- onDragEnd: (t, a) => {
284
- R((c) => ({ x: c.x + a.offset.x, y: c.y + a.offset.y }));
283
+ onDragEnd: (t, d) => {
284
+ R((n) => ({ x: n.x + d.offset.x, y: n.y + d.offset.y }));
285
285
  },
286
286
  style: {
287
287
  position: "fixed",
@@ -306,11 +306,11 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
306
306
  px: 1.5,
307
307
  py: 1
308
308
  },
309
- children: /* @__PURE__ */ o.jsx(L, { direction: "row", alignItems: "center", spacing: -1.5, children: r.map((t, a) => /* @__PURE__ */ o.jsxs(
310
- h.div,
309
+ children: /* @__PURE__ */ o.jsx(L, { direction: "row", alignItems: "center", spacing: -1.5, children: r.map((t, d) => /* @__PURE__ */ o.jsxs(
310
+ f.div,
311
311
  {
312
- onClick: (c) => {
313
- c.stopPropagation(), e ? e(t) : u(t);
312
+ onClick: (n) => {
313
+ n.stopPropagation(), e ? e(t) : u(t);
314
314
  },
315
315
  style: {
316
316
  position: "relative",
@@ -319,15 +319,15 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
319
319
  borderRadius: 10,
320
320
  overflow: "hidden",
321
321
  flexShrink: 0,
322
- zIndex: i.id === t.id ? 30 : r.length - a,
322
+ zIndex: i.id === t.id ? 30 : r.length - d,
323
323
  border: i.id === t.id ? "2px solid" : void 0,
324
324
  borderColor: i.id === t.id ? "divider" : void 0,
325
325
  cursor: "pointer"
326
326
  },
327
- initial: { rotate: a % 2 === 0 ? -15 : 15 },
327
+ initial: { rotate: d % 2 === 0 ? -15 : 15 },
328
328
  animate: {
329
329
  scale: i.id === t.id ? 1.2 : 1,
330
- rotate: i.id === t.id ? 0 : a % 2 === 0 ? -15 : 15,
330
+ rotate: i.id === t.id ? 0 : d % 2 === 0 ? -15 : 15,
331
331
  y: i.id === t.id ? -8 : 0
332
332
  },
333
333
  whileHover: {
@@ -337,7 +337,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
337
337
  transition: { type: "spring", stiffness: 400, damping: 25 }
338
338
  },
339
339
  children: [
340
- f ? f(t, () => {
340
+ h ? h(t, () => {
341
341
  e ? e(t) : u(t);
342
342
  }) : /* @__PURE__ */ o.jsx(
343
343
  I,
@@ -354,18 +354,18 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
354
354
  }
355
355
  ),
356
356
  /* @__PURE__ */ o.jsx(
357
- d,
357
+ l,
358
358
  {
359
359
  sx: {
360
360
  position: "absolute",
361
361
  inset: 0,
362
- background: (c) => `linear-gradient(to bottom, transparent, ${c.palette.action.hover}, ${c.palette.action.selected})`,
362
+ background: (n) => `linear-gradient(to bottom, transparent, ${(n.vars || n).palette.action.hover}, ${(n.vars || n).palette.action.selected})`,
363
363
  pointerEvents: "none"
364
364
  }
365
365
  }
366
366
  ),
367
367
  i.id === t.id && /* @__PURE__ */ o.jsx(
368
- h.div,
368
+ f.div,
369
369
  {
370
370
  layoutId: "activeGlow",
371
371
  style: {
@@ -4,7 +4,7 @@ import { Box as s, Paper as C, Typography as x } from "@mui/material";
4
4
  import { AnimatePresence as S, motion as b } from "framer-motion";
5
5
  import k from "../s-image-modal/s-image-modal.js";
6
6
  import $ from "../s-lazy-image/s-lazy-image.js";
7
- const R = ({ item: a, sx: i, onClick: l }) => {
7
+ const R = ({ item: a, sx: o, onClick: l }) => {
8
8
  const e = I(null), [c, h] = u(!1), [p, d] = u(!0);
9
9
  return y(() => {
10
10
  const t = {
@@ -13,22 +13,22 @@ const R = ({ item: a, sx: i, onClick: l }) => {
13
13
  // Start loading 50px before entering viewport
14
14
  threshold: 0.1
15
15
  // Trigger when 10% of video is visible
16
- }, o = new IntersectionObserver((n) => {
17
- n.forEach((f) => h(f.isIntersecting));
16
+ }, n = new IntersectionObserver((i) => {
17
+ i.forEach((f) => h(f.isIntersecting));
18
18
  }, t);
19
- return e.current && o.observe(e.current), () => {
20
- e.current && o.unobserve(e.current);
19
+ return e.current && n.observe(e.current), () => {
20
+ e.current && n.unobserve(e.current);
21
21
  };
22
22
  }, []), y(() => {
23
23
  let t = !0;
24
24
  return c ? (async () => {
25
25
  if (!(!e.current || !c || !t))
26
26
  try {
27
- e.current.readyState >= 3 ? (d(!1), await e.current.play()) : (d(!0), await new Promise((n) => {
28
- e.current && (e.current.oncanplay = () => n());
27
+ e.current.readyState >= 3 ? (d(!1), await e.current.play()) : (d(!0), await new Promise((i) => {
28
+ e.current && (e.current.oncanplay = () => i());
29
29
  }), t && (d(!1), await e.current.play()));
30
- } catch (n) {
31
- console.warn("Video playback failed:", n);
30
+ } catch (i) {
31
+ console.warn("Video playback failed:", i);
32
32
  }
33
33
  })() : e.current && e.current.pause(), () => {
34
34
  t = !1, e.current && (e.current.pause(), e.current.removeAttribute("src"), e.current.load());
@@ -41,7 +41,7 @@ const R = ({ item: a, sx: i, onClick: l }) => {
41
41
  overflow: "hidden",
42
42
  width: "100%",
43
43
  height: "100%",
44
- ...i
44
+ ...o
45
45
  },
46
46
  children: [
47
47
  /* @__PURE__ */ r.jsx(
@@ -99,7 +99,7 @@ const R = ({ item: a, sx: i, onClick: l }) => {
99
99
  )
100
100
  ]
101
101
  }
102
- ) : /* @__PURE__ */ r.jsx(s, { onClick: l, sx: { width: "100%", height: "100%", ...i }, children: /* @__PURE__ */ r.jsx(
102
+ ) : /* @__PURE__ */ r.jsx(s, { onClick: l, sx: { width: "100%", height: "100%", ...o }, children: /* @__PURE__ */ r.jsx(
103
103
  $,
104
104
  {
105
105
  src: a.url,
@@ -107,7 +107,7 @@ const R = ({ item: a, sx: i, onClick: l }) => {
107
107
  width: "100%",
108
108
  height: "100%",
109
109
  style: {
110
- objectFit: i != null && i.objectFit ? i.objectFit : "cover",
110
+ objectFit: o != null && o.objectFit ? o.objectFit : "cover",
111
111
  cursor: l ? "pointer" : "default",
112
112
  display: "block",
113
113
  width: "100%",
@@ -116,21 +116,21 @@ const R = ({ item: a, sx: i, onClick: l }) => {
116
116
  }
117
117
  ) });
118
118
  }, F = ({ mediaItems: a }) => {
119
- const [i, l] = u(null), [e, c] = u(a), [h, p] = u(!1), d = j();
119
+ const [o, l] = u(null), [e, c] = u(a), [h, p] = u(!1), d = j();
120
120
  return y(() => {
121
121
  c(a);
122
122
  }, [a]), /* @__PURE__ */ r.jsxs(s, { sx: { width: "100%", position: "relative", zIndex: 1 }, children: [
123
123
  /* @__PURE__ */ r.jsx(
124
124
  k,
125
125
  {
126
- selectedItem: i,
127
- isOpen: !!i,
126
+ selectedItem: o,
127
+ isOpen: !!o,
128
128
  onClose: () => l(null),
129
129
  onItemChange: l,
130
130
  mediaItems: e
131
131
  }
132
132
  ),
133
- /* @__PURE__ */ r.jsx(S, { mode: "wait", children: !i && /* @__PURE__ */ r.jsx(
133
+ /* @__PURE__ */ r.jsx(S, { mode: "wait", children: !o && /* @__PURE__ */ r.jsx(
134
134
  b.div,
135
135
  {
136
136
  initial: "hidden",
@@ -159,7 +159,7 @@ const R = ({ item: a, sx: i, onClick: l }) => {
159
159
  position: "relative"
160
160
  // Ensure proper stacking context
161
161
  },
162
- children: e.map((t, o) => /* @__PURE__ */ r.jsx(
162
+ children: e.map((t, n) => /* @__PURE__ */ r.jsx(
163
163
  b.div,
164
164
  {
165
165
  layoutId: `media-${t.id}-${d}`,
@@ -174,7 +174,7 @@ const R = ({ item: a, sx: i, onClick: l }) => {
174
174
  type: "spring",
175
175
  stiffness: 350,
176
176
  damping: 25,
177
- delay: o * 0.05
177
+ delay: n * 0.05
178
178
  }
179
179
  }
180
180
  },
@@ -183,12 +183,12 @@ const R = ({ item: a, sx: i, onClick: l }) => {
183
183
  dragConstraints: { left: 0, right: 0, top: 0, bottom: 0 },
184
184
  dragElastic: 1,
185
185
  onDragStart: () => p(!0),
186
- onDragEnd: (n, f) => {
186
+ onDragEnd: (i, f) => {
187
187
  p(!1);
188
188
  const v = f.offset.x + f.offset.y;
189
189
  if (Math.abs(v) > 50) {
190
- const g = [...e], m = g[o], w = v > 0 ? Math.min(o + 1, e.length - 1) : Math.max(o - 1, 0);
191
- g.splice(o, 1), g.splice(w, 0, m), c(g);
190
+ const g = [...e], m = g[n], w = v > 0 ? Math.min(n + 1, e.length - 1) : Math.max(n - 1, 0);
191
+ g.splice(n, 1), g.splice(w, 0, m), c(g);
192
192
  }
193
193
  },
194
194
  style: {
@@ -243,7 +243,7 @@ const R = ({ item: a, sx: i, onClick: l }) => {
243
243
  sx: {
244
244
  position: "absolute",
245
245
  inset: 0,
246
- background: (n) => `linear-gradient(to top, ${n.palette.grey[900]}CC, ${n.palette.grey[900]}66, transparent)`
246
+ background: (i) => `linear-gradient(to top, ${(i.vars || i).palette.grey[900]}CC, ${(i.vars || i).palette.grey[900]}66, transparent)`
247
247
  }
248
248
  }
249
249
  ),
@@ -4,19 +4,19 @@ import { useTheme as j, Box as m, Skeleton as L } from "@mui/material";
4
4
  const I = ({
5
5
  src: n,
6
6
  variant: e = "rounded",
7
- height: o = "auto",
7
+ height: o = "100%",
8
8
  width: s = "100%",
9
9
  style: r,
10
- minWidth: t = "auto",
11
- minHeight: u = "auto",
10
+ minWidth: d = "auto",
11
+ minHeight: t = "auto",
12
12
  ...c
13
13
  }) => {
14
- const l = i(), p = j(), [d, x] = f(!1);
14
+ const l = i(), p = j(), [u, x] = f(!1);
15
15
  return (
16
16
  // Container box maintains consistent dimensions throughout the loading process
17
17
  // This prevents layout shifts and provides stable positioning for both skeleton and image
18
18
  /* @__PURE__ */ a.jsxs(m, { height: o, width: s, children: [
19
- !d && /* @__PURE__ */ a.jsx(
19
+ !u && /* @__PURE__ */ a.jsx(
20
20
  L,
21
21
  {
22
22
  variant: e,
@@ -25,8 +25,8 @@ const I = ({
25
25
  style: {
26
26
  height: o,
27
27
  width: s,
28
- minWidth: t,
29
- minHeight: u,
28
+ minWidth: d,
29
+ minHeight: t,
30
30
  ...r
31
31
  // User styles applied to skeleton for consistency
32
32
  }
@@ -40,11 +40,11 @@ const I = ({
40
40
  style: {
41
41
  height: o,
42
42
  width: s,
43
- minWidth: t,
44
- minHeight: u,
43
+ minWidth: d,
44
+ minHeight: t,
45
45
  // Performance optimization: display toggling instead of opacity transitions
46
46
  // This approach reduces GPU usage and improves rendering performance
47
- display: d ? "block" : "none",
47
+ display: u ? "block" : "none",
48
48
  // Theme-aware border radius calculation for consistent styling
49
49
  // Matches Material-UI skeleton variants with proper theme integration
50
50
  borderRadius: e === "circular" ? "50%" : e === "rounded" ? p.shape.borderRadius : "0px",
@@ -2,21 +2,21 @@ import { j as t } from "../jsx-runtime-OVHDjVDe.js";
2
2
  import * as c from "react";
3
3
  import { c as h } from "../createSvgIcon-By5UWB4_.js";
4
4
  import { Stack as j, OutlinedInput as M } from "@mui/material";
5
- import { usePopover as v } from "../hooks/use-popover.js";
6
- import S from "../s-chips/s-chips.js";
7
- import { M as R } from "../Menu-CgxtGUFu.js";
8
- import { M as b } from "../MenuItem-FlDSyi1I.js";
5
+ import { usePopover as S } from "../hooks/use-popover.js";
6
+ import R from "../s-chips/s-chips.js";
7
+ import { M as b } from "../Menu-CgxtGUFu.js";
8
+ import { M as v } from "../MenuItem-FlDSyi1I.js";
9
9
  const I = h(/* @__PURE__ */ t.jsx("path", {
10
10
  d: "M12 5.83 15.17 9l1.41-1.41L12 3 7.41 7.59 8.83 9zm0 12.34L8.83 15l-1.41 1.41L12 21l4.59-4.59L15.17 15z"
11
11
  }), "UnfoldMore");
12
12
  function P({
13
- label: u,
13
+ label: p,
14
14
  onChange: o,
15
- options: a,
15
+ options: u,
16
16
  value: l = [],
17
17
  chipProps: f
18
18
  }) {
19
- const r = v(), i = c.useRef(null), [p, d] = c.useState();
19
+ const r = S(), i = c.useRef(null), [a, d] = c.useState();
20
20
  c.useEffect(() => {
21
21
  i.current && d(i.current.offsetWidth);
22
22
  }, [r.open]);
@@ -31,36 +31,30 @@ function P({
31
31
  /* @__PURE__ */ t.jsx(
32
32
  M,
33
33
  {
34
- endAdornment: /* @__PURE__ */ t.jsx(
35
- I,
36
- {
37
- fontSize: "small",
38
- sx: { color: "var(--s-palette-action-active)", position: "absolute", right: "7px" }
39
- }
40
- ),
34
+ endAdornment: /* @__PURE__ */ t.jsx(I, { fontSize: "small", sx: { color: "action.active", position: "absolute", right: "7px" } }),
41
35
  onClick: r.handleOpen,
42
36
  ref: (e) => {
43
37
  r.anchorRef.current = e, i.current = e;
44
38
  },
45
- value: u,
39
+ value: p,
46
40
  sx: {
47
41
  input: {
48
- color: "var(--s-palette-text-secondary)"
42
+ color: "text.secondary"
49
43
  }
50
44
  }
51
45
  }
52
46
  ),
53
47
  /* @__PURE__ */ t.jsx(
54
- R,
48
+ b,
55
49
  {
56
50
  anchorEl: r.anchorRef.current,
57
51
  onClose: r.handleClose,
58
52
  open: r.open,
59
- slotProps: { paper: { sx: { width: p ? `${p}px` : void 0 } } },
60
- children: a.map((e) => {
53
+ slotProps: { paper: { sx: { width: a ? `${a}px` : void 0 } } },
54
+ children: u.map((e) => {
61
55
  const s = l.includes(e.value);
62
56
  return /* @__PURE__ */ t.jsx(
63
- b,
57
+ v,
64
58
  {
65
59
  onClick: () => {
66
60
  m(e.value, !s);
@@ -74,9 +68,9 @@ function P({
74
68
  }
75
69
  ),
76
70
  /* @__PURE__ */ t.jsx(
77
- S,
71
+ R,
78
72
  {
79
- chips: a.filter((e) => l.includes(e.value)).map((e) => e.label),
73
+ chips: u.filter((e) => l.includes(e.value)).map((e) => e.label),
80
74
  ...f
81
75
  }
82
76
  )
@@ -1,5 +1,5 @@
1
1
  import { PropsWithChildren } from 'react';
2
- import { SxProps, Theme } from '@mui/material/styles';
2
+ import { SxProps, Theme } from '@mui/material';
3
3
  export interface SOverlayScrollbarProps extends PropsWithChildren {
4
4
  className?: string;
5
5
  sx?: SxProps<Theme>;