@solostylist/ui-kit 1.0.77 → 1.0.78
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.
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { j as i } from "../jsx-runtime-DywqP_6a.js";
|
|
2
2
|
import { useState as u, useEffect as v, useRef as C } from "react";
|
|
3
|
-
import { Box as l, Paper as y, Typography as b, Modal as I, IconButton as z, Stack as
|
|
3
|
+
import { Box as l, Paper as y, Typography as b, Modal as I, IconButton as z, Stack as S } from "@mui/material";
|
|
4
4
|
import { AnimatePresence as j, motion as p } from "framer-motion";
|
|
5
|
-
import
|
|
6
|
-
import { C as
|
|
5
|
+
import R from "../s-lazy-image/s-lazy-image.js";
|
|
6
|
+
import { C as P } from "../Close-CVFQMMUW.js";
|
|
7
7
|
const m = ({ item: r, sx: s, onClick: a }) => {
|
|
8
8
|
const e = C(null), [d, x] = u(!1), [h, t] = u(!0);
|
|
9
9
|
return v(() => {
|
|
10
10
|
const o = { root: null, rootMargin: "50px", threshold: 0.1 }, n = new IntersectionObserver((c) => {
|
|
11
|
-
c.forEach((
|
|
11
|
+
c.forEach((g) => x(g.isIntersecting));
|
|
12
12
|
}, o);
|
|
13
13
|
return e.current && n.observe(e.current), () => {
|
|
14
14
|
e.current && n.unobserve(e.current);
|
|
@@ -94,7 +94,7 @@ const m = ({ item: r, sx: s, onClick: a }) => {
|
|
|
94
94
|
]
|
|
95
95
|
}
|
|
96
96
|
) : /* @__PURE__ */ i.jsx(l, { onClick: a, sx: { width: "100%", height: "100%", ...s }, children: /* @__PURE__ */ i.jsx(
|
|
97
|
-
|
|
97
|
+
R,
|
|
98
98
|
{
|
|
99
99
|
src: r.url,
|
|
100
100
|
alt: r.title || "",
|
|
@@ -252,7 +252,7 @@ const m = ({ item: r, sx: s, onClick: a }) => {
|
|
|
252
252
|
zIndex: (t) => t.zIndex.modal + 102
|
|
253
253
|
// Ensure it's above everything
|
|
254
254
|
},
|
|
255
|
-
children: /* @__PURE__ */ i.jsx(
|
|
255
|
+
children: /* @__PURE__ */ i.jsx(P, { fontSize: "small" })
|
|
256
256
|
}
|
|
257
257
|
)
|
|
258
258
|
]
|
|
@@ -296,7 +296,7 @@ const m = ({ item: r, sx: s, onClick: a }) => {
|
|
|
296
296
|
px: 1.5,
|
|
297
297
|
py: 1
|
|
298
298
|
},
|
|
299
|
-
children: /* @__PURE__ */ i.jsx(
|
|
299
|
+
children: /* @__PURE__ */ i.jsx(S, { direction: "row", alignItems: "center", spacing: -1.5, children: d.map((t, o) => /* @__PURE__ */ i.jsxs(
|
|
300
300
|
p.div,
|
|
301
301
|
{
|
|
302
302
|
onClick: (n) => {
|
|
@@ -435,16 +435,16 @@ const m = ({ item: r, sx: s, onClick: a }) => {
|
|
|
435
435
|
onDragStart: () => h(!0),
|
|
436
436
|
onDragEnd: (n, c) => {
|
|
437
437
|
h(!1);
|
|
438
|
-
const
|
|
439
|
-
if (Math.abs(
|
|
440
|
-
const
|
|
441
|
-
|
|
438
|
+
const g = c.offset.x + c.offset.y;
|
|
439
|
+
if (Math.abs(g) > 50) {
|
|
440
|
+
const f = [...e], w = f[o], k = g > 0 ? Math.min(o + 1, e.length - 1) : Math.max(o - 1, 0);
|
|
441
|
+
f.splice(o, 1), f.splice(k, 0, w), d(f);
|
|
442
442
|
}
|
|
443
443
|
},
|
|
444
444
|
style: {
|
|
445
445
|
position: "relative",
|
|
446
|
-
gridRow: `span ${
|
|
447
|
-
|
|
446
|
+
gridRow: t.rowSpan ? `span ${t.rowSpan}` : "span 2",
|
|
447
|
+
gridColumn: t.colSpan ? `span ${t.colSpan}` : "span 1"
|
|
448
448
|
},
|
|
449
449
|
children: /* @__PURE__ */ i.jsxs(
|
|
450
450
|
y,
|