@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.
@@ -6,7 +6,8 @@ export interface MediaItemType {
6
6
  title?: string;
7
7
  desc?: string;
8
8
  url: string;
9
- span: string;
9
+ colSpan?: number;
10
+ rowSpan?: number;
10
11
  }
11
12
  export type MediaItemProps = {
12
13
  item: MediaItemType;
@@ -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 R } from "@mui/material";
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 P from "../s-lazy-image/s-lazy-image.js";
6
- import { C as S } from "../Close-CVFQMMUW.js";
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((f) => x(f.isIntersecting));
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
- P,
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(S, { fontSize: "small" })
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(R, { direction: "row", alignItems: "center", spacing: -1.5, children: d.map((t, o) => /* @__PURE__ */ i.jsxs(
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 f = c.offset.x + c.offset.y;
439
- if (Math.abs(f) > 50) {
440
- const g = [...e], w = g[o], k = f > 0 ? Math.min(o + 1, e.length - 1) : Math.max(o - 1, 0);
441
- g.splice(o, 1), g.splice(k, 0, w), d(g);
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 ${parseInt(t.span) || 2}`
447
- // Use span properly for grid
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,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.77",
6
+ "version": "1.0.78",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",