@solostylist/ui-kit 1.0.89 → 1.0.91

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.
@@ -5,8 +5,8 @@ import { k as go, P as o, l as yo } from "../createTheme-DbdaZ0Ku.js";
5
5
  import { b as xo, u as ho, e as bo, d as I, c as To, B as Co } from "../ButtonBase-C0g54hXq.js";
6
6
  import { g as X } from "../generateUtilityClasses-BtVDwGrk.js";
7
7
  import { g as Y } from "../colorManipulator-ep5lERxB.js";
8
- import { u as vo } from "../useControlled-nm4pBabJ.js";
9
- import { T as So, u as Eo, g as ro, P as wo } from "../Paper-CH6cuu9i.js";
8
+ import { u as So } from "../useControlled-nm4pBabJ.js";
9
+ import { T as vo, u as Eo, g as ro, P as wo } from "../Paper-CH6cuu9i.js";
10
10
  import { S as Ro } from "../Stack-CIrlOUXL.js";
11
11
  import { T as Ao } from "../Typography-D-VP4V1G.js";
12
12
  const jo = mo(/* @__PURE__ */ s.jsx("path", {
@@ -115,9 +115,9 @@ const No = (e) => {
115
115
  children: h,
116
116
  className: b,
117
117
  collapsedSize: f = "0px",
118
- component: v,
118
+ component: S,
119
119
  easing: $,
120
- in: S,
120
+ in: v,
121
121
  onEnter: A,
122
122
  onEntered: j,
123
123
  onEntering: z,
@@ -128,7 +128,7 @@ const No = (e) => {
128
128
  style: m,
129
129
  timeout: d = go.standard,
130
130
  // eslint-disable-next-line react/prop-types
131
- TransitionComponent: N = So,
131
+ TransitionComponent: N = vo,
132
132
  ...G
133
133
  } = i, E = {
134
134
  ...i,
@@ -185,7 +185,7 @@ const No = (e) => {
185
185
  d === "auto" && U.start(g.current || 0, n), p && p(V.current, n);
186
186
  };
187
187
  return /* @__PURE__ */ s.jsx(N, {
188
- in: S,
188
+ in: v,
189
189
  onEnter: oo,
190
190
  onEntered: co,
191
191
  onEntering: eo,
@@ -200,10 +200,10 @@ const No = (e) => {
200
200
  ownerState: y,
201
201
  ...x
202
202
  }) => /* @__PURE__ */ s.jsx(Oo, {
203
- as: v,
203
+ as: S,
204
204
  className: L(u.root, b, {
205
205
  entered: u.entered,
206
- exited: !S && C === "0px" && u.hidden
206
+ exited: !v && C === "0px" && u.hidden
207
207
  }[n]),
208
208
  style: {
209
209
  [O ? "minWidth" : "minHeight"]: C,
@@ -452,32 +452,32 @@ const _ = X("MuiAccordion", ["root", "heading", "rounded", "expanded", "disabled
452
452
  className: h,
453
453
  defaultExpanded: b = !1,
454
454
  disabled: f = !1,
455
- disableGutters: v = !1,
455
+ disableGutters: S = !1,
456
456
  expanded: $,
457
- onChange: S,
457
+ onChange: v,
458
458
  square: A = !1,
459
459
  slots: j = {},
460
460
  slotProps: z = {},
461
461
  TransitionComponent: P,
462
462
  TransitionProps: W,
463
463
  ...k
464
- } = i, [c, m] = vo({
464
+ } = i, [c, m] = So({
465
465
  controlled: $,
466
466
  default: b,
467
467
  name: "Accordion",
468
468
  state: "expanded"
469
469
  }), d = l.useCallback((eo) => {
470
- m(!c), S && S(eo, !c);
471
- }, [c, S, m]), [N, ...G] = l.Children.toArray(p), E = l.useMemo(() => ({
470
+ m(!c), v && v(eo, !c);
471
+ }, [c, v, m]), [N, ...G] = l.Children.toArray(p), E = l.useMemo(() => ({
472
472
  expanded: c,
473
473
  disabled: f,
474
- disableGutters: v,
474
+ disableGutters: S,
475
475
  toggle: d
476
- }), [c, f, v, d]), u = {
476
+ }), [c, f, S, d]), u = {
477
477
  ...i,
478
478
  square: A,
479
479
  disabled: f,
480
- disableGutters: v,
480
+ disableGutters: S,
481
481
  expanded: c
482
482
  }, w = $o(u), U = {
483
483
  transition: P,
@@ -778,9 +778,9 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
778
778
  className: h,
779
779
  expandIcon: b,
780
780
  focusVisibleClassName: f,
781
- onClick: v,
781
+ onClick: S,
782
782
  slots: $,
783
- slotProps: S,
783
+ slotProps: v,
784
784
  ...A
785
785
  } = i, {
786
786
  disabled: j = !1,
@@ -788,7 +788,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
788
788
  expanded: P,
789
789
  toggle: W
790
790
  } = l.useContext(to), k = (a) => {
791
- W && W(a), v && v(a);
791
+ W && W(a), S && S(a);
792
792
  }, c = {
793
793
  ...i,
794
794
  expanded: P,
@@ -796,7 +796,7 @@ const F = X("MuiAccordionSummary", ["root", "expanded", "focusVisible", "disable
796
796
  disableGutters: z
797
797
  }, m = Ho(c), d = {
798
798
  slots: $,
799
- slotProps: S
799
+ slotProps: v
800
800
  }, [N, G] = I("root", {
801
801
  ref: r,
802
802
  shouldForwardComponentProp: !0,
@@ -906,10 +906,9 @@ const ne = ({ title: e, children: t, startIcon: r, defaultExpanded: i = !1 }) =>
906
906
  defaultExpanded: i,
907
907
  sx: {
908
908
  borderRadius: 1,
909
- border: "1px solid var(--s-palette-divider) !important",
910
- backgroundColor: "background.paper"
909
+ border: "1px solid var(--s-palette-divider) !important"
911
910
  },
912
- variant: "elevation",
911
+ elevation: 0,
913
912
  children: [
914
913
  /* @__PURE__ */ s.jsx(ao, { expandIcon: /* @__PURE__ */ s.jsx(jo, {}), children: /* @__PURE__ */ s.jsxs(Ro, { direction: "row", spacing: 1, alignItems: "center", children: [
915
914
  r && /* @__PURE__ */ s.jsx("span", { children: r }),
@@ -4,12 +4,12 @@ import { Modal as A, Box as d, Paper as b, Typography as z, IconButton as m, Sta
4
4
  import { motion as h, AnimatePresence as T } from "framer-motion";
5
5
  import { C as F } from "../Close--Sf9yZGB.js";
6
6
  import { C as $, a as B } from "../ChevronRight-CtkI4XwH.js";
7
- const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disableVideoControls: n = !1 }) => s.type === "video" ? /* @__PURE__ */ o.jsx(
7
+ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disableVideoControls: r = !1 }) => s.type === "video" ? /* @__PURE__ */ o.jsx(
8
8
  d,
9
9
  {
10
10
  component: "video",
11
11
  onClick: l,
12
- controls: !n,
12
+ controls: !r,
13
13
  sx: {
14
14
  width: "100%",
15
15
  height: "100%",
@@ -39,25 +39,25 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
39
39
  isOpen: l,
40
40
  onClose: x,
41
41
  onItemChange: e,
42
- mediaItems: n = [],
42
+ mediaItems: r = [],
43
43
  renderMediaItem: f,
44
44
  showNavigation: P = !0,
45
45
  showThumbnailDock: E = !0,
46
46
  showCounter: S = !0,
47
47
  modalSx: C = {}
48
48
  }) => {
49
- const [v, R] = k({ x: 0, y: 0 }), [D, u] = k(s || null), i = s || D;
49
+ const [y, R] = k({ x: 0, y: 0 }), [D, u] = k(s || null), i = s || D;
50
50
  w(() => {
51
51
  s && u(s);
52
52
  }, [s]);
53
- const p = P && n.length > 1 && i, r = i ? n.findIndex((t) => t.id === i.id) : -1, g = n.length, y = () => {
54
- if (p && r > 0) {
55
- const t = n[r - 1];
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];
56
56
  e ? e(t) : u(t);
57
57
  }
58
58
  }, j = () => {
59
- if (p && r < g - 1) {
60
- const t = n[r + 1];
59
+ if (p && n < g - 1) {
60
+ const t = r[n + 1];
61
61
  e ? e(t) : u(t);
62
62
  }
63
63
  };
@@ -66,7 +66,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
66
66
  if (l)
67
67
  switch (a.key) {
68
68
  case "ArrowLeft":
69
- y();
69
+ v();
70
70
  break;
71
71
  case "ArrowRight":
72
72
  j();
@@ -77,7 +77,7 @@ 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, r, g, p]), !l || !i ? null : /* @__PURE__ */ o.jsx(
80
+ }, [l, n, g, p]), !l || !i ? null : /* @__PURE__ */ o.jsx(
81
81
  A,
82
82
  {
83
83
  open: l,
@@ -105,7 +105,6 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
105
105
  children: /* @__PURE__ */ o.jsxs(
106
106
  b,
107
107
  {
108
- elevation: 3,
109
108
  sx: {
110
109
  position: "fixed",
111
110
  inset: 0,
@@ -149,7 +148,6 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
149
148
  children: /* @__PURE__ */ o.jsxs(
150
149
  b,
151
150
  {
152
- elevation: 6,
153
151
  onClick: (t) => t.stopPropagation(),
154
152
  sx: {
155
153
  position: "relative",
@@ -219,7 +217,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
219
217
  color: "text.primary"
220
218
  },
221
219
  children: [
222
- r + 1,
220
+ n + 1,
223
221
  " / ",
224
222
  g
225
223
  ]
@@ -231,9 +229,9 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
231
229
  {
232
230
  "aria-label": "Previous image",
233
231
  onClick: (t) => {
234
- t.stopPropagation(), y();
232
+ t.stopPropagation(), v();
235
233
  },
236
- disabled: r === 0,
234
+ disabled: n === 0,
237
235
  sx: {
238
236
  position: "absolute",
239
237
  left: { xs: 8, sm: 10, md: 12 },
@@ -254,7 +252,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
254
252
  onClick: (t) => {
255
253
  t.stopPropagation(), j();
256
254
  },
257
- disabled: r === g - 1,
255
+ disabled: n === g - 1,
258
256
  sx: {
259
257
  position: "absolute",
260
258
  right: { xs: 8, sm: 10, md: 12 },
@@ -274,14 +272,14 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
274
272
  )
275
273
  }
276
274
  ),
277
- E && p && n.length > 1 && /* @__PURE__ */ o.jsx(
275
+ E && p && r.length > 1 && /* @__PURE__ */ o.jsx(
278
276
  h.div,
279
277
  {
280
278
  drag: !0,
281
279
  dragMomentum: !1,
282
280
  dragElastic: 0.1,
283
281
  initial: !1,
284
- animate: { x: v.x, y: v.y },
282
+ animate: { x: y.x, y: y.y },
285
283
  onDragEnd: (t, a) => {
286
284
  R((c) => ({ x: c.x + a.offset.x, y: c.y + a.offset.y }));
287
285
  },
@@ -296,7 +294,6 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
296
294
  children: /* @__PURE__ */ o.jsx(
297
295
  b,
298
296
  {
299
- elevation: 8,
300
297
  sx: {
301
298
  position: "relative",
302
299
  borderRadius: 3,
@@ -309,7 +306,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
309
306
  px: 1.5,
310
307
  py: 1
311
308
  },
312
- children: /* @__PURE__ */ o.jsx(L, { direction: "row", alignItems: "center", spacing: -1.5, children: n.map((t, a) => /* @__PURE__ */ o.jsxs(
309
+ children: /* @__PURE__ */ o.jsx(L, { direction: "row", alignItems: "center", spacing: -1.5, children: r.map((t, a) => /* @__PURE__ */ o.jsxs(
313
310
  h.div,
314
311
  {
315
312
  onClick: (c) => {
@@ -322,7 +319,7 @@ const I = ({ item: s, onClick: l, style: x = {}, objectFit: e = "contain", disab
322
319
  borderRadius: 10,
323
320
  overflow: "hidden",
324
321
  flexShrink: 0,
325
- zIndex: i.id === t.id ? 30 : n.length - a,
322
+ zIndex: i.id === t.id ? 30 : r.length - a,
326
323
  border: i.id === t.id ? "2px solid" : void 0,
327
324
  borderColor: i.id === t.id ? "divider" : void 0,
328
325
  cursor: "pointer"
@@ -199,7 +199,6 @@ const R = ({ item: a, sx: i, onClick: l }) => {
199
199
  children: /* @__PURE__ */ r.jsxs(
200
200
  C,
201
201
  {
202
- elevation: 4,
203
202
  sx: {
204
203
  position: "relative",
205
204
  overflow: "hidden",
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.89",
6
+ "version": "1.0.91",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",