@sprintup-cms/sdk 1.9.7 → 1.9.9

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.
@@ -925,20 +925,24 @@ function BentoHeroBlock({ block }) {
925
925
  )
926
926
  ] })
927
927
  ] }),
928
- cards.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 auto-rows-fr", children: cards.map((card, i) => /* @__PURE__ */ jsxs(
929
- "div",
930
- {
931
- className: `rounded-2xl border border-border p-6 flex flex-col gap-3 transition-shadow hover:shadow-md ${card.featured ? "lg:col-span-2 row-span-1" : ""}`,
932
- style: { background: card.background || "var(--muted)" },
933
- children: [
934
- card.icon && /* @__PURE__ */ jsx("span", { className: "text-2xl", role: "img", "aria-label": card.title, children: card.icon }),
935
- card.image && /* @__PURE__ */ jsx("img", { src: card.image, alt: card.imageAlt || card.title || "Feature illustration", className: "w-full rounded-lg object-cover mb-1", style: { maxHeight: card.featured ? "180px" : "120px" } }),
936
- card.title && /* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm", children: card.title }),
937
- card.description && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground leading-relaxed", children: card.description })
938
- ]
939
- },
940
- i
941
- )) })
928
+ cards.length > 0 && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4", style: { gridAutoRows: "180px" }, children: cards.map((card, i) => {
929
+ const colSpan = card.featured ? 2 : 1;
930
+ const rowSpan = card.rows || 1;
931
+ return /* @__PURE__ */ jsxs(
932
+ "div",
933
+ {
934
+ style: { gridColumn: `span ${colSpan}`, gridRow: `span ${rowSpan}`, background: card.background || "var(--muted)" },
935
+ className: "rounded-2xl border border-border p-6 flex flex-col gap-3 transition-shadow hover:shadow-md",
936
+ children: [
937
+ card.icon && /* @__PURE__ */ jsx("span", { className: "text-2xl", role: "img", "aria-label": card.title, children: card.icon }),
938
+ card.image && /* @__PURE__ */ jsx("img", { src: card.image, alt: card.imageAlt || card.title || "Feature illustration", className: "w-full rounded-lg object-cover mb-1", style: { maxHeight: card.featured ? "180px" : "120px" } }),
939
+ card.title && /* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm", children: card.title }),
940
+ card.description && /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground leading-relaxed", children: card.description })
941
+ ]
942
+ },
943
+ i
944
+ );
945
+ }) })
942
946
  ] }) });
943
947
  }
944
948
  function MinimalHeroBlock({ block }) {
@@ -1227,31 +1231,37 @@ function TwoColumnBlock({ block }) {
1227
1231
  function BentoGridBlock({ block }) {
1228
1232
  const d = getData(block);
1229
1233
  const items = Array.isArray(d.items) ? d.items : [];
1230
- const sizeClass = {
1231
- small: "col-span-1 row-span-1",
1232
- wide: "col-span-2 row-span-1",
1233
- tall: "col-span-1 row-span-2",
1234
- large: "col-span-2 row-span-2"
1234
+ const SPAN = {
1235
+ small: [1, 1],
1236
+ wide: [2, 1],
1237
+ tall: [1, 2],
1238
+ large: [2, 2],
1239
+ "wide-2": [2, 2],
1240
+ "wide-3": [2, 3]
1235
1241
  };
1236
1242
  return /* @__PURE__ */ jsxs("section", { className: "py-12", children: [
1237
1243
  (d.title || d.subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-8", children: [
1238
1244
  d.title && /* @__PURE__ */ jsx("h2", { className: "text-3xl font-semibold tracking-tight", children: d.title }),
1239
1245
  d.subtitle && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground mt-1", children: d.subtitle })
1240
1246
  ] }),
1241
- /* @__PURE__ */ jsx("div", { className: "grid grid-cols-4 auto-rows-[180px] gap-3", children: items.map((item, i) => /* @__PURE__ */ jsxs(
1242
- "div",
1243
- {
1244
- className: `rounded-xl border border-border bg-card p-5 flex flex-col justify-between hover:bg-muted/40 transition-colors ${sizeClass[item.size] ?? sizeClass.small}`,
1245
- children: [
1246
- /* @__PURE__ */ jsx("div", { className: "w-8 h-8 rounded-lg bg-muted flex items-center justify-center mb-3", children: FEATURE_ICONS[item.icon] ?? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", className: "w-4 h-4", children: /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }) }) }),
1247
- /* @__PURE__ */ jsxs("div", { children: [
1248
- /* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm", children: item.title }),
1249
- item.description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mt-0.5 leading-relaxed", children: item.description })
1250
- ] })
1251
- ]
1252
- },
1253
- i
1254
- )) })
1247
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-4 gap-3", style: { gridAutoRows: "180px" }, children: items.map((item, i) => {
1248
+ const [cs, rs] = SPAN[item.size] ?? [1, 1];
1249
+ return /* @__PURE__ */ jsxs(
1250
+ "div",
1251
+ {
1252
+ style: { gridColumn: `span ${cs}`, gridRow: `span ${rs}` },
1253
+ className: "rounded-xl border border-border bg-card p-5 flex flex-col justify-between hover:bg-muted/40 transition-colors",
1254
+ children: [
1255
+ /* @__PURE__ */ jsx("div", { className: "w-8 h-8 rounded-lg bg-muted flex items-center justify-center mb-3", children: FEATURE_ICONS[item.icon] ?? /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", className: "w-4 h-4", children: /* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "10" }) }) }),
1256
+ /* @__PURE__ */ jsxs("div", { children: [
1257
+ /* @__PURE__ */ jsx("h3", { className: "font-semibold text-sm", children: item.title }),
1258
+ item.description && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs mt-0.5 leading-relaxed", children: item.description })
1259
+ ] })
1260
+ ]
1261
+ },
1262
+ i
1263
+ );
1264
+ }) })
1255
1265
  ] });
1256
1266
  }
1257
1267
  function GridLayoutBlock({ block }) {