@sprintup-cms/sdk 1.8.32 → 1.8.41
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.
- package/dist/next/index.cjs +243 -0
- package/dist/next/index.cjs.map +1 -1
- package/dist/next/index.js +243 -0
- package/dist/next/index.js.map +1 -1
- package/dist/react/index.cjs +243 -0
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.js +243 -0
- package/dist/react/index.js.map +1 -1
- package/package.json +1 -1
package/dist/next/index.cjs
CHANGED
|
@@ -393,6 +393,24 @@ function FAQBlock({ block }) {
|
|
|
393
393
|
] }, i)) })
|
|
394
394
|
] });
|
|
395
395
|
}
|
|
396
|
+
function TeamMemberBlock({ block }) {
|
|
397
|
+
const d = getData(block);
|
|
398
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col sm:flex-row items-center sm:items-start gap-4 p-6 rounded-xl border border-border bg-card", children: [
|
|
399
|
+
d.avatar ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
400
|
+
"img",
|
|
401
|
+
{
|
|
402
|
+
src: d.avatar,
|
|
403
|
+
alt: d.name || "Team member",
|
|
404
|
+
className: "w-20 h-20 rounded-full object-cover border-2 border-border flex-shrink-0"
|
|
405
|
+
}
|
|
406
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-20 h-20 rounded-full bg-muted flex items-center justify-center text-muted-foreground text-2xl font-semibold flex-shrink-0", children: (d.name || "T").charAt(0).toUpperCase() }),
|
|
407
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center sm:text-left", children: [
|
|
408
|
+
d.name && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-lg", children: d.name }),
|
|
409
|
+
d.role && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-primary font-medium", children: d.role }),
|
|
410
|
+
d.bio && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mt-2 leading-relaxed", children: d.bio })
|
|
411
|
+
] })
|
|
412
|
+
] });
|
|
413
|
+
}
|
|
396
414
|
function StatsBlock({ block }) {
|
|
397
415
|
const d = getData(block);
|
|
398
416
|
const items = d.items || d.stats || [];
|
|
@@ -592,6 +610,221 @@ function SectionBlock({ block, pageType }) {
|
|
|
592
610
|
([key, value]) => isHtml(value) ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "prose prose-neutral dark:prose-invert max-w-none", dangerouslySetInnerHTML: { __html: String(value) } }, key) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-muted-foreground", children: String(value) }, key)
|
|
593
611
|
) });
|
|
594
612
|
}
|
|
613
|
+
var FEATURE_ICONS = {
|
|
614
|
+
zap: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: /* @__PURE__ */ jsxRuntime.jsx("polygon", { points: "13 2 3 14 12 14 11 22 21 10 12 10 13 2" }) }),
|
|
615
|
+
shield: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z" }) }),
|
|
616
|
+
star: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: /* @__PURE__ */ jsxRuntime.jsx("polygon", { points: "12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" }) }),
|
|
617
|
+
check: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "20 6 9 17 4 12" }) }),
|
|
618
|
+
lock: /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: [
|
|
619
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "3", y: "11", width: "18", height: "11", rx: "2", ry: "2" }),
|
|
620
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M7 11V7a5 5 0 0 1 10 0v4" })
|
|
621
|
+
] }),
|
|
622
|
+
globe: /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: [
|
|
623
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
624
|
+
/* @__PURE__ */ jsxRuntime.jsx("line", { x1: "2", y1: "12", x2: "22", y2: "12" }),
|
|
625
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z" })
|
|
626
|
+
] }),
|
|
627
|
+
clock: /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: [
|
|
628
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }),
|
|
629
|
+
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "12 6 12 12 16 14" })
|
|
630
|
+
] }),
|
|
631
|
+
heart: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 0 0-7.78 7.78l1.06 1.06L12 21.23l7.78-7.78 1.06-1.06a5.5 5.5 0 0 0 0-7.78z" }) }),
|
|
632
|
+
settings: /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: [
|
|
633
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "3" }),
|
|
634
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 1 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 1 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 1 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 1 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z" })
|
|
635
|
+
] }),
|
|
636
|
+
users: /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: [
|
|
637
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2" }),
|
|
638
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "9", cy: "7", r: "4" }),
|
|
639
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M23 21v-2a4 4 0 0 0-3-3.87" }),
|
|
640
|
+
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M16 3.13a4 4 0 0 1 0 7.75" })
|
|
641
|
+
] }),
|
|
642
|
+
trending: /* @__PURE__ */ jsxRuntime.jsxs("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "w-5 h-5", children: [
|
|
643
|
+
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "23 6 13.5 15.5 8.5 10.5 1 18" }),
|
|
644
|
+
/* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "17 6 23 6 23 12" })
|
|
645
|
+
] })
|
|
646
|
+
};
|
|
647
|
+
function ButtonBlock({ block }) {
|
|
648
|
+
const d = getData(block);
|
|
649
|
+
const label = d.label || d.text || "Button";
|
|
650
|
+
const url = d.url || "#";
|
|
651
|
+
const variant = d.variant || "default";
|
|
652
|
+
const base = "inline-flex items-center justify-center px-5 py-2.5 rounded-lg text-sm font-medium transition-opacity hover:opacity-90";
|
|
653
|
+
const cls = variant === "outline" ? `${base} border border-primary text-primary bg-transparent` : variant === "ghost" ? `${base} text-primary hover:bg-primary/10` : `${base} bg-primary text-primary-foreground`;
|
|
654
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: url, className: cls, children: label }) });
|
|
655
|
+
}
|
|
656
|
+
function ListBlock({ block }) {
|
|
657
|
+
const d = getData(block);
|
|
658
|
+
const items = Array.isArray(d.items) ? d.items : [];
|
|
659
|
+
const ordered = Boolean(d.ordered);
|
|
660
|
+
const Tag = ordered ? "ol" : "ul";
|
|
661
|
+
const listCls = ordered ? "list-decimal" : "list-disc";
|
|
662
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Tag, { className: `${listCls} pl-6 space-y-1.5 text-base text-foreground leading-relaxed`, children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsx("li", { children: item }, i)) });
|
|
663
|
+
}
|
|
664
|
+
function GalleryBlock({ block }) {
|
|
665
|
+
const d = getData(block);
|
|
666
|
+
const images = Array.isArray(d.images) ? d.images : [];
|
|
667
|
+
const cols = Number(d.columns) || 3;
|
|
668
|
+
const gridCols = cols === 2 ? "grid-cols-2" : cols === 4 ? "grid-cols-2 md:grid-cols-4" : "grid-cols-2 md:grid-cols-3";
|
|
669
|
+
if (!images.length) return null;
|
|
670
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `grid gap-3 ${gridCols}`, children: images.filter((img) => img.src).map((img, i) => /* @__PURE__ */ jsxRuntime.jsxs("figure", { className: "overflow-hidden rounded-lg border border-border", children: [
|
|
671
|
+
/* @__PURE__ */ jsxRuntime.jsx("img", { src: img.src, alt: img.alt || "", className: "w-full h-48 object-cover" }),
|
|
672
|
+
img.caption && /* @__PURE__ */ jsxRuntime.jsx("figcaption", { className: "px-2 py-1 text-xs text-muted-foreground text-center", children: img.caption })
|
|
673
|
+
] }, i)) });
|
|
674
|
+
}
|
|
675
|
+
function PricingTableBlock({ block }) {
|
|
676
|
+
const d = getData(block);
|
|
677
|
+
const tiers = Array.isArray(d.tiers) ? d.tiers : [];
|
|
678
|
+
const [yearly, setYearly] = React__default.default.useState(false);
|
|
679
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "py-12", children: [
|
|
680
|
+
(d.title || d.subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center mb-8", children: [
|
|
681
|
+
d.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-bold tracking-tight", children: d.title }),
|
|
682
|
+
d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground", children: d.subtitle })
|
|
683
|
+
] }),
|
|
684
|
+
d.billingToggle && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-center gap-3 mb-8", children: [
|
|
685
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: `text-sm ${!yearly ? "font-semibold" : "text-muted-foreground"}`, children: "Monthly" }),
|
|
686
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
687
|
+
"button",
|
|
688
|
+
{
|
|
689
|
+
onClick: () => setYearly((v) => !v),
|
|
690
|
+
className: `relative w-10 h-6 rounded-full transition-colors ${yearly ? "bg-primary" : "bg-muted"}`,
|
|
691
|
+
"aria-label": "Toggle billing period",
|
|
692
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: `absolute top-1 w-4 h-4 rounded-full bg-white shadow transition-all ${yearly ? "left-5" : "left-1"}` })
|
|
693
|
+
}
|
|
694
|
+
),
|
|
695
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: `text-sm ${yearly ? "font-semibold" : "text-muted-foreground"}`, children: "Yearly" })
|
|
696
|
+
] }),
|
|
697
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `grid gap-6 ${tiers.length === 2 ? "md:grid-cols-2" : tiers.length >= 3 ? "md:grid-cols-3" : ""}`, children: tiers.map((tier, i) => {
|
|
698
|
+
const price = yearly ? tier.yearlyPrice ?? tier.monthlyPrice : tier.monthlyPrice;
|
|
699
|
+
const featured = Boolean(tier.featured);
|
|
700
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex flex-col rounded-2xl border p-8 ${featured ? "border-primary bg-primary text-primary-foreground shadow-xl" : "border-border bg-card"}`, children: [
|
|
701
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
702
|
+
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: `text-xl font-bold ${featured ? "text-primary-foreground" : ""}`, children: tier.name }),
|
|
703
|
+
tier.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-sm mt-1 ${featured ? "text-primary-foreground/70" : "text-muted-foreground"}`, children: tier.description }),
|
|
704
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-4 flex items-end gap-1", children: [
|
|
705
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: `text-4xl font-extrabold ${featured ? "text-primary-foreground" : ""}`, children: [
|
|
706
|
+
d.currency ?? "$",
|
|
707
|
+
price ?? 0
|
|
708
|
+
] }),
|
|
709
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: `text-sm mb-1 ${featured ? "text-primary-foreground/70" : "text-muted-foreground"}`, children: "/mo" })
|
|
710
|
+
] })
|
|
711
|
+
] }),
|
|
712
|
+
/* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-2 flex-1 mb-8", children: (tier.features ?? []).map((f, j) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-center gap-2 text-sm", children: [
|
|
713
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { className: `w-4 h-4 flex-shrink-0 ${f.included ? featured ? "text-primary-foreground" : "text-primary" : "text-muted-foreground opacity-40"}`, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: f.included ? /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "20 6 9 17 4 12" }) : /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "18", y1: "6", x2: "6", y2: "18" }) }),
|
|
714
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: !f.included ? "opacity-50" : "", children: f.text })
|
|
715
|
+
] }, j)) }),
|
|
716
|
+
tier.cta && /* @__PURE__ */ jsxRuntime.jsx("a", { href: tier.ctaUrl || "#", className: `block text-center py-2.5 px-6 rounded-lg font-semibold text-sm transition-opacity hover:opacity-90 ${featured ? "bg-primary-foreground text-primary" : "bg-primary text-primary-foreground"}`, children: tier.cta })
|
|
717
|
+
] }, tier.id || i);
|
|
718
|
+
}) })
|
|
719
|
+
] });
|
|
720
|
+
}
|
|
721
|
+
function CardGridBlock({ block }) {
|
|
722
|
+
const d = getData(block);
|
|
723
|
+
const cards = Array.isArray(d.cards) ? d.cards : [];
|
|
724
|
+
const cols = Number(d.columns) || 3;
|
|
725
|
+
const gridCols = cols === 2 ? "sm:grid-cols-2" : cols === 4 ? "sm:grid-cols-2 lg:grid-cols-4" : "sm:grid-cols-2 lg:grid-cols-3";
|
|
726
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-6xl mx-auto px-4", children: [
|
|
727
|
+
d.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-bold tracking-tight text-center text-balance mb-8", children: d.title }),
|
|
728
|
+
cards.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-sm text-muted-foreground", children: "No cards added yet." }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: `grid grid-cols-1 gap-6 ${gridCols}`, children: cards.map((card, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col rounded-xl border border-border bg-card overflow-hidden hover:shadow-md transition-shadow", children: [
|
|
729
|
+
card.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "aspect-video overflow-hidden bg-muted", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
730
|
+
"img",
|
|
731
|
+
{
|
|
732
|
+
src: card.image,
|
|
733
|
+
alt: card.title || "",
|
|
734
|
+
className: "w-full h-full object-cover",
|
|
735
|
+
onError: (e) => {
|
|
736
|
+
e.target.style.display = "none";
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
) }),
|
|
740
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col flex-1 p-5 gap-2", children: [
|
|
741
|
+
card.title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-base", children: card.title }),
|
|
742
|
+
card.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground leading-relaxed flex-1", children: card.description }),
|
|
743
|
+
card.link && /* @__PURE__ */ jsxRuntime.jsxs("a", { href: card.link, className: "inline-flex items-center text-sm font-medium text-primary hover:underline mt-2", children: [
|
|
744
|
+
card.linkText || "Learn more",
|
|
745
|
+
" \u2192"
|
|
746
|
+
] })
|
|
747
|
+
] })
|
|
748
|
+
] }, i)) })
|
|
749
|
+
] }) });
|
|
750
|
+
}
|
|
751
|
+
function TimelineBlock({ block }) {
|
|
752
|
+
const d = getData(block);
|
|
753
|
+
const items = Array.isArray(d.items) ? d.items : [];
|
|
754
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-3xl mx-auto px-4", children: [
|
|
755
|
+
(d.title || d.subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center mb-10", children: [
|
|
756
|
+
d.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-bold tracking-tight text-balance", children: d.title }),
|
|
757
|
+
d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground text-pretty", children: d.subtitle })
|
|
758
|
+
] }),
|
|
759
|
+
items.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-sm text-muted-foreground", children: "No timeline items added yet." }) : /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative", children: [
|
|
760
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute left-6 top-0 bottom-0 w-px bg-border", "aria-hidden": "true" }),
|
|
761
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-8", children: items.map((item, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative flex gap-6", children: [
|
|
762
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-shrink-0 w-12 h-12 rounded-full bg-primary text-primary-foreground flex items-center justify-center text-xs font-bold z-10 ring-4 ring-background", children: item.year || i + 1 }),
|
|
763
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 pb-2 pt-1", children: [
|
|
764
|
+
item.title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-base", children: item.title }),
|
|
765
|
+
item.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mt-1 leading-relaxed", children: item.description })
|
|
766
|
+
] })
|
|
767
|
+
] }, i)) })
|
|
768
|
+
] })
|
|
769
|
+
] }) });
|
|
770
|
+
}
|
|
771
|
+
function PricingCardBlock({ block }) {
|
|
772
|
+
const d = getData(block);
|
|
773
|
+
const features = Array.isArray(d.features) ? d.features : [];
|
|
774
|
+
const featured = Boolean(d.featured);
|
|
775
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `relative flex flex-col rounded-2xl border p-8 ${featured ? "border-primary bg-primary text-primary-foreground shadow-xl scale-105" : "border-border bg-card"}`, children: [
|
|
776
|
+
featured && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute -top-3 left-1/2 -translate-x-1/2 px-3 py-1 rounded-full bg-primary-foreground text-primary text-xs font-semibold", children: "Most Popular" }),
|
|
777
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6", children: [
|
|
778
|
+
d.name && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: `text-xl font-bold ${featured ? "text-primary-foreground" : ""}`, children: d.name }),
|
|
779
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-2 flex items-end gap-1", children: [
|
|
780
|
+
d.price && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `text-4xl font-extrabold tracking-tight ${featured ? "text-primary-foreground" : ""}`, children: d.price }),
|
|
781
|
+
d.period && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `text-sm mb-1 ${featured ? "text-primary-foreground/70" : "text-muted-foreground"}`, children: d.period })
|
|
782
|
+
] })
|
|
783
|
+
] }),
|
|
784
|
+
features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "space-y-3 flex-1 mb-8", children: features.map((feat, i) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-center gap-2 text-sm", children: [
|
|
785
|
+
/* @__PURE__ */ jsxRuntime.jsx("svg", { className: `w-4 h-4 flex-shrink-0 ${featured ? "text-primary-foreground" : "text-primary"}`, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("polyline", { points: "20 6 9 17 4 12" }) }),
|
|
786
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: featured ? "text-primary-foreground/90" : "", children: feat })
|
|
787
|
+
] }, i)) }),
|
|
788
|
+
d.button && /* @__PURE__ */ jsxRuntime.jsx(
|
|
789
|
+
"a",
|
|
790
|
+
{
|
|
791
|
+
href: d.url || "#",
|
|
792
|
+
className: `block text-center py-2.5 px-6 rounded-lg font-semibold text-sm transition-opacity hover:opacity-90 ${featured ? "bg-primary-foreground text-primary" : "bg-primary text-primary-foreground"}`,
|
|
793
|
+
children: d.button
|
|
794
|
+
}
|
|
795
|
+
)
|
|
796
|
+
] });
|
|
797
|
+
}
|
|
798
|
+
function IconFeatureBlock({ block }) {
|
|
799
|
+
const d = getData(block);
|
|
800
|
+
const iconKey = (d.icon || "zap").toLowerCase();
|
|
801
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-4 p-6 rounded-xl border border-border bg-card", children: [
|
|
802
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-12 h-12 rounded-lg bg-primary/10 text-primary flex items-center justify-center flex-shrink-0", children: FEATURE_ICONS[iconKey] ?? /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", className: "w-6 h-6", children: /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }) }) }),
|
|
803
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
804
|
+
d.title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-base", children: d.title }),
|
|
805
|
+
d.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm text-muted-foreground mt-1 leading-relaxed", children: d.description })
|
|
806
|
+
] })
|
|
807
|
+
] });
|
|
808
|
+
}
|
|
809
|
+
function FeatureGridBlock({ block }) {
|
|
810
|
+
const d = getData(block);
|
|
811
|
+
const features = Array.isArray(d.features) ? d.features : [];
|
|
812
|
+
const cols = Number(d.columns) || 3;
|
|
813
|
+
const gridCols = cols === 2 ? "sm:grid-cols-2" : cols === 4 ? "sm:grid-cols-2 lg:grid-cols-4" : "sm:grid-cols-2 lg:grid-cols-3";
|
|
814
|
+
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-12", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-6xl mx-auto px-4", children: [
|
|
815
|
+
(d.title || d.subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-center mb-10", children: [
|
|
816
|
+
d.title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-2xl md:text-3xl font-bold tracking-tight text-balance", children: d.title }),
|
|
817
|
+
d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-2 text-muted-foreground text-pretty", children: d.subtitle })
|
|
818
|
+
] }),
|
|
819
|
+
features.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-center text-sm text-muted-foreground", children: "No features added yet." }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: `grid grid-cols-1 gap-6 ${gridCols}`, children: features.map((feat, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-3 p-6 rounded-xl border border-border bg-card hover:shadow-md transition-shadow", children: [
|
|
820
|
+
feat.icon && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-10 h-10 rounded-lg bg-primary/10 text-primary flex items-center justify-center flex-shrink-0", children: FEATURE_ICONS[feat.icon] ?? /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", className: "w-5 h-5", children: /* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "10" }) }) }),
|
|
821
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
822
|
+
feat.title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-base", children: feat.title }),
|
|
823
|
+
feat.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm text-muted-foreground mt-1 leading-relaxed prose prose-sm max-w-none", dangerouslySetInnerHTML: { __html: feat.description } })
|
|
824
|
+
] })
|
|
825
|
+
] }, i)) })
|
|
826
|
+
] }) });
|
|
827
|
+
}
|
|
595
828
|
function TwoColumnBlock({ block }) {
|
|
596
829
|
const d = getData(block);
|
|
597
830
|
const imagePos = d.imagePosition === "left" ? "flex-row-reverse" : "flex-row";
|
|
@@ -627,10 +860,15 @@ var BUILT_IN = {
|
|
|
627
860
|
text: (b) => /* @__PURE__ */ jsxRuntime.jsx(TextBlock, { block: b }),
|
|
628
861
|
richtext: (b) => /* @__PURE__ */ jsxRuntime.jsx(RichTextBlock, { block: b }),
|
|
629
862
|
image: (b) => /* @__PURE__ */ jsxRuntime.jsx(ImageBlock, { block: b }),
|
|
863
|
+
button: (b) => /* @__PURE__ */ jsxRuntime.jsx(ButtonBlock, { block: b }),
|
|
864
|
+
list: (b) => /* @__PURE__ */ jsxRuntime.jsx(ListBlock, { block: b }),
|
|
865
|
+
gallery: (b) => /* @__PURE__ */ jsxRuntime.jsx(GalleryBlock, { block: b }),
|
|
866
|
+
"pricing-table": (b) => /* @__PURE__ */ jsxRuntime.jsx(PricingTableBlock, { block: b }),
|
|
630
867
|
hero: (b) => /* @__PURE__ */ jsxRuntime.jsx(HeroBlock, { block: b }),
|
|
631
868
|
"hero-section": (b) => /* @__PURE__ */ jsxRuntime.jsx(HeroBlock, { block: b }),
|
|
632
869
|
cta: (b) => /* @__PURE__ */ jsxRuntime.jsx(CTABlock, { block: b }),
|
|
633
870
|
faq: (b) => /* @__PURE__ */ jsxRuntime.jsx(FAQBlock, { block: b }),
|
|
871
|
+
"team-member": (b) => /* @__PURE__ */ jsxRuntime.jsx(TeamMemberBlock, { block: b }),
|
|
634
872
|
stats: (b) => /* @__PURE__ */ jsxRuntime.jsx(StatsBlock, { block: b }),
|
|
635
873
|
testimonial: (b) => /* @__PURE__ */ jsxRuntime.jsx(TestimonialBlock, { block: b }),
|
|
636
874
|
quote: (b) => /* @__PURE__ */ jsxRuntime.jsx(QuoteBlock, { block: b }),
|
|
@@ -638,6 +876,11 @@ var BUILT_IN = {
|
|
|
638
876
|
divider: () => /* @__PURE__ */ jsxRuntime.jsx(DividerBlock, {}),
|
|
639
877
|
spacer: (b) => /* @__PURE__ */ jsxRuntime.jsx(SpacerBlock, { block: b }),
|
|
640
878
|
video: (b) => /* @__PURE__ */ jsxRuntime.jsx(VideoBlock, { block: b }),
|
|
879
|
+
"card-grid": (b) => /* @__PURE__ */ jsxRuntime.jsx(CardGridBlock, { block: b }),
|
|
880
|
+
timeline: (b) => /* @__PURE__ */ jsxRuntime.jsx(TimelineBlock, { block: b }),
|
|
881
|
+
"pricing-card": (b) => /* @__PURE__ */ jsxRuntime.jsx(PricingCardBlock, { block: b }),
|
|
882
|
+
"icon-feature": (b) => /* @__PURE__ */ jsxRuntime.jsx(IconFeatureBlock, { block: b }),
|
|
883
|
+
"feature-grid": (b) => /* @__PURE__ */ jsxRuntime.jsx(FeatureGridBlock, { block: b }),
|
|
641
884
|
"two-column": (b) => /* @__PURE__ */ jsxRuntime.jsx(TwoColumnBlock, { block: b }),
|
|
642
885
|
"product-list": (b) => /* @__PURE__ */ jsxRuntime.jsx(ProductListBlock, { block: b })
|
|
643
886
|
};
|