@solostylist/ui-kit 1.0.76 → 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,
@@ -10,7 +10,7 @@ const c = i(/* @__PURE__ */ a.jsx("path", {
10
10
  d: "M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
11
11
  }), "CheckRounded"), b = i(/* @__PURE__ */ a.jsx("path", {
12
12
  d: "M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1"
13
- }), "RemoveRounded"), g = n("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]), d = n("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]), m = {
13
+ }), "RemoveRounded"), g = n("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]), d = n("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]), f = {
14
14
  MuiButtonBase: {
15
15
  defaultProps: {
16
16
  disableTouchRipple: !0,
@@ -246,7 +246,7 @@ const c = i(/* @__PURE__ */ a.jsx("path", {
246
246
  borderColor: e[300]
247
247
  },
248
248
  "&:active": {
249
- backgroundColor: e[200]
249
+ backgroundColor: (o.vars || o).palette.action.selected
250
250
  },
251
251
  ...o.applyStyles("dark", {
252
252
  // backgroundColor: gray[800],
@@ -256,7 +256,7 @@ const c = i(/* @__PURE__ */ a.jsx("path", {
256
256
  borderColor: e[600]
257
257
  },
258
258
  "&:active": {
259
- backgroundColor: e[900]
259
+ backgroundColor: (o.vars || o).palette.action.selected
260
260
  }
261
261
  }),
262
262
  variants: [
@@ -491,5 +491,5 @@ const c = i(/* @__PURE__ */ a.jsx("path", {
491
491
  }
492
492
  };
493
493
  export {
494
- m as inputsCustomizations
494
+ f as inputsCustomizations
495
495
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.76",
6
+ "version": "1.0.78",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",