@sprintup-cms/sdk 1.8.66 → 1.8.71

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.
@@ -60,11 +60,15 @@ function ImageBlock({ block }) {
60
60
  }
61
61
  function HeroBlock({ block }) {
62
62
  const d = getData(block);
63
- return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-12 md:py-20", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-3xl", children: [
64
- d.badge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-block px-3 py-1 text-xs font-semibold rounded-full bg-secondary text-secondary-foreground mb-4", children: d.badge }),
65
- /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-4xl md:text-5xl font-bold tracking-tight mb-4 text-balance", children: d.title }),
66
- d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xl text-muted-foreground mb-8", children: d.subtitle }),
67
- (d.primaryButton || d.cta) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-4 flex-wrap", children: [
63
+ const align = d.alignment || "left";
64
+ const textAlign = align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
65
+ const itemsAlign = align === "right" ? "items-end" : align === "center" ? "items-center" : "items-start";
66
+ const mx = align === "center" ? "mx-auto" : align === "right" ? "ml-auto" : "";
67
+ return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-12 md:py-20", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `max-w-3xl ${mx}`, children: [
68
+ d.badge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `inline-block px-3 py-1 text-xs font-semibold rounded-full bg-secondary text-secondary-foreground mb-4`, children: d.badge }),
69
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: `text-4xl md:text-5xl font-bold tracking-tight mb-4 text-balance ${textAlign}`, children: d.title }),
70
+ d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-xl text-muted-foreground mb-8 ${textAlign}`, children: d.subtitle }),
71
+ (d.primaryButton || d.cta) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex gap-4 flex-wrap ${itemsAlign}`, children: [
68
72
  (d.primaryButton || d.cta) && /* @__PURE__ */ jsxRuntime.jsx(
69
73
  "a",
70
74
  {
@@ -448,19 +452,200 @@ function PricingTableBlock({ block }) {
448
452
  }) })
449
453
  ] });
450
454
  }
455
+ function CenteredHeroBlock({ block }) {
456
+ const d = getData(block);
457
+ const hasBg = d.backgroundImage;
458
+ return /* @__PURE__ */ jsxRuntime.jsxs(
459
+ "section",
460
+ {
461
+ className: "relative flex flex-col items-center justify-center text-center py-24 px-6 overflow-hidden rounded-2xl",
462
+ style: hasBg ? { backgroundImage: `url(${d.backgroundImage})`, backgroundSize: "cover", backgroundPosition: "center" } : { background: d.backgroundColor || "var(--muted)" },
463
+ children: [
464
+ hasBg && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 rounded-2xl", style: { background: `rgba(0,0,0,${d.overlayOpacity ?? 0.45})` } }),
465
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative z-10 max-w-3xl mx-auto", children: [
466
+ d.badge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-block px-3 py-1 text-xs font-semibold rounded-full bg-background/20 backdrop-blur-sm border border-white/20 mb-5 text-white", children: d.badge }),
467
+ /* @__PURE__ */ jsxRuntime.jsx(
468
+ "h1",
469
+ {
470
+ className: "text-4xl md:text-6xl font-extrabold tracking-tight mb-5 text-balance leading-tight",
471
+ style: { color: hasBg ? "#fff" : "var(--foreground)" },
472
+ children: d.title
473
+ }
474
+ ),
475
+ d.subtitle && /* @__PURE__ */ jsxRuntime.jsx(
476
+ "p",
477
+ {
478
+ className: "text-lg md:text-xl mb-8 max-w-2xl mx-auto text-pretty leading-relaxed",
479
+ style: { color: hasBg ? "rgba(255,255,255,0.8)" : "var(--muted-foreground)" },
480
+ children: d.subtitle
481
+ }
482
+ ),
483
+ (d.primaryButton || d.secondaryButton) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-4 justify-center flex-wrap", children: [
484
+ d.primaryButton && /* @__PURE__ */ jsxRuntime.jsx(
485
+ "a",
486
+ {
487
+ href: d.primaryUrl || "#",
488
+ className: "inline-flex items-center px-8 py-3.5 rounded-xl font-semibold text-sm transition-opacity hover:opacity-90",
489
+ style: { background: d.buttonColor || "var(--primary)", color: d.buttonTextColor || "var(--primary-foreground)" },
490
+ children: d.primaryButton
491
+ }
492
+ ),
493
+ d.secondaryButton && /* @__PURE__ */ jsxRuntime.jsx(
494
+ "a",
495
+ {
496
+ href: d.secondaryUrl || "#",
497
+ className: "inline-flex items-center px-8 py-3.5 rounded-xl font-semibold text-sm border transition-colors hover:bg-white/10",
498
+ style: { borderColor: hasBg ? "rgba(255,255,255,0.4)" : "var(--border)", color: hasBg ? "#fff" : "var(--foreground)" },
499
+ children: d.secondaryButton
500
+ }
501
+ )
502
+ ] })
503
+ ] })
504
+ ]
505
+ }
506
+ );
507
+ }
508
+ function ProductHeroBlock({ block }) {
509
+ const d = getData(block);
510
+ const align = d.alignment || "left";
511
+ const textAlign = align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
512
+ const itemsAlign = align === "right" ? "justify-end" : align === "center" ? "justify-center" : "justify-start";
513
+ const mx = align === "center" ? "mx-auto" : align === "right" ? "ml-auto" : "";
514
+ return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-16 md:py-24", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-6xl mx-auto px-4", children: [
515
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `max-w-3xl ${mx} mb-12`, children: [
516
+ d.badge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: `inline-flex items-center gap-1.5 px-3 py-1 text-xs font-semibold rounded-full bg-primary/10 text-primary mb-5`, children: d.badge }),
517
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: `text-4xl md:text-5xl font-extrabold tracking-tight mb-5 text-balance leading-tight ${textAlign}`, children: d.title }),
518
+ d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-lg text-muted-foreground leading-relaxed text-pretty mb-8 ${textAlign}`, children: d.subtitle }),
519
+ (d.primaryButton || d.secondaryButton) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex gap-3 flex-wrap ${itemsAlign}`, children: [
520
+ d.primaryButton && /* @__PURE__ */ jsxRuntime.jsx(
521
+ "a",
522
+ {
523
+ href: d.primaryUrl || "#",
524
+ className: "inline-flex items-center px-7 py-3 rounded-xl bg-primary text-primary-foreground font-semibold text-sm hover:opacity-90 transition-opacity",
525
+ children: d.primaryButton
526
+ }
527
+ ),
528
+ d.secondaryButton && /* @__PURE__ */ jsxRuntime.jsx(
529
+ "a",
530
+ {
531
+ href: d.secondaryUrl || "#",
532
+ className: "inline-flex items-center px-7 py-3 rounded-xl border border-border text-foreground font-semibold text-sm hover:bg-muted transition-colors",
533
+ children: d.secondaryButton
534
+ }
535
+ )
536
+ ] })
537
+ ] }),
538
+ d.image ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "relative rounded-2xl overflow-hidden border border-border shadow-2xl", children: [
539
+ d.browserChrome && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-1.5 px-4 py-2.5 bg-muted border-b border-border", children: [
540
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-3 h-3 rounded-full bg-red-400" }),
541
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-3 h-3 rounded-full bg-amber-400" }),
542
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: "w-3 h-3 rounded-full bg-emerald-400" }),
543
+ d.urlBar && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ml-3 flex-1 text-xs text-muted-foreground bg-background border border-border rounded px-3 py-0.5 truncate", children: d.urlBar })
544
+ ] }),
545
+ /* @__PURE__ */ jsxRuntime.jsx("img", { src: d.image, alt: d.title || "Product preview", className: "w-full object-cover" })
546
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "rounded-2xl border border-dashed border-border bg-muted aspect-video flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground", children: "Add a product screenshot" }) }),
547
+ Array.isArray(d.trustedBy) && d.trustedBy.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-10 text-center", children: [
548
+ d.trustedByLabel && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground uppercase tracking-widest mb-4 font-medium", children: d.trustedByLabel }),
549
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-wrap items-center justify-center gap-6", children: d.trustedBy.map((item, i) => item.logo ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: item.logo, alt: item.name || "", className: "h-6 object-contain opacity-60 grayscale" }, i) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-semibold text-muted-foreground", children: item.name }, i)) })
550
+ ] })
551
+ ] }) });
552
+ }
553
+ function BentoHeroBlock({ block }) {
554
+ const d = getData(block);
555
+ const cards = Array.isArray(d.cards) ? d.cards : [];
556
+ const align = d.alignment || "center";
557
+ const textAlign = align === "right" ? "text-right" : align === "left" ? "text-left" : "text-center";
558
+ const itemsAlign = align === "right" ? "justify-end" : align === "left" ? "justify-start" : "justify-center";
559
+ const mx = align === "left" ? "" : align === "right" ? "ml-auto" : "mx-auto";
560
+ return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-16 md:py-24", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "max-w-6xl mx-auto px-4", children: [
561
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `max-w-3xl ${mx} mb-12`, children: [
562
+ d.badge && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "inline-block px-3 py-1 text-xs font-semibold rounded-full bg-secondary text-secondary-foreground mb-5", children: d.badge }),
563
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: `text-4xl md:text-5xl font-extrabold tracking-tight mb-4 text-balance ${textAlign}`, children: d.title }),
564
+ d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-lg text-muted-foreground leading-relaxed text-pretty ${textAlign}`, children: d.subtitle }),
565
+ (d.primaryButton || d.secondaryButton) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex gap-3 flex-wrap mt-7 ${itemsAlign}`, children: [
566
+ d.primaryButton && /* @__PURE__ */ jsxRuntime.jsx(
567
+ "a",
568
+ {
569
+ href: d.primaryUrl || "#",
570
+ className: "inline-flex items-center px-7 py-3 rounded-xl bg-primary text-primary-foreground font-semibold text-sm hover:opacity-90 transition-opacity",
571
+ children: d.primaryButton
572
+ }
573
+ ),
574
+ d.secondaryButton && /* @__PURE__ */ jsxRuntime.jsx(
575
+ "a",
576
+ {
577
+ href: d.secondaryUrl || "#",
578
+ className: "inline-flex items-center px-7 py-3 rounded-xl border border-border text-foreground font-semibold text-sm hover:bg-muted transition-colors",
579
+ children: d.secondaryButton
580
+ }
581
+ )
582
+ ] })
583
+ ] }),
584
+ cards.length > 0 && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsxs(
585
+ "div",
586
+ {
587
+ 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" : ""}`,
588
+ style: { background: card.background || "var(--muted)" },
589
+ children: [
590
+ card.icon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-2xl", role: "img", "aria-label": card.title, children: card.icon }),
591
+ card.image && /* @__PURE__ */ jsxRuntime.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" } }),
592
+ card.title && /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold text-sm", children: card.title }),
593
+ card.description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground leading-relaxed", children: card.description })
594
+ ]
595
+ },
596
+ i
597
+ )) })
598
+ ] }) });
599
+ }
600
+ function MinimalHeroBlock({ block }) {
601
+ const d = getData(block);
602
+ const align = d.alignment || "left";
603
+ const textAlign = align === "right" ? "text-right" : align === "center" ? "text-center" : "text-left";
604
+ const itemsAlign = align === "right" ? "justify-end" : align === "center" ? "justify-center" : "justify-start";
605
+ const mx = align === "center" ? "mx-auto" : align === "right" ? "ml-auto" : "";
606
+ return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-20 md:py-28 px-4 border-b border-border", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `max-w-4xl ${mx}`, children: [
607
+ d.eyebrow && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-xs uppercase tracking-[0.2em] font-semibold text-muted-foreground mb-5 ${textAlign}`, children: d.eyebrow }),
608
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { className: `text-5xl md:text-7xl font-black tracking-tight mb-6 text-balance leading-none whitespace-pre-line ${textAlign}`, children: d.title }),
609
+ d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-lg md:text-xl text-muted-foreground leading-relaxed text-pretty max-w-2xl mb-9 ${textAlign} ${mx}`, children: d.subtitle }),
610
+ (d.primaryButton || d.secondaryButton) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex gap-4 flex-wrap items-center ${itemsAlign}`, children: [
611
+ d.primaryButton && /* @__PURE__ */ jsxRuntime.jsxs(
612
+ "a",
613
+ {
614
+ href: d.primaryUrl || "#",
615
+ className: "inline-flex items-center gap-2 text-sm font-semibold underline underline-offset-4 hover:text-primary transition-colors",
616
+ children: [
617
+ d.primaryButton,
618
+ /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M5 12h14M12 5l7 7-7 7" }) })
619
+ ]
620
+ }
621
+ ),
622
+ d.secondaryButton && /* @__PURE__ */ jsxRuntime.jsx(
623
+ "a",
624
+ {
625
+ href: d.secondaryUrl || "#",
626
+ className: "inline-flex items-center text-sm text-muted-foreground hover:text-foreground transition-colors",
627
+ children: d.secondaryButton
628
+ }
629
+ )
630
+ ] })
631
+ ] }) });
632
+ }
451
633
  function SplitHeroBlock({ block }) {
452
634
  const d = getData(block);
453
635
  const imgLeft = d.imagePosition === "left";
636
+ const align = d.alignment || "left";
637
+ const textAlign = align === "center" ? "text-center" : "text-left";
638
+ const itemsAlign = align === "center" ? "items-center" : "items-start";
454
639
  return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "py-16", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex flex-col ${imgLeft ? "md:flex-row-reverse" : "md:flex-row"} items-center gap-10 md:gap-16 max-w-6xl mx-auto px-4`, children: [
455
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 space-y-5", children: [
456
- d.title && /* @__PURE__ */ jsxRuntime.jsx("h1", { className: "text-3xl md:text-5xl font-extrabold tracking-tight text-balance leading-tight", children: d.title }),
457
- d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-lg text-muted-foreground leading-relaxed text-pretty", children: d.subtitle }),
458
- (d.button || d.secondaryButton) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-wrap gap-3 pt-2", children: [
640
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-1 space-y-5 ${itemsAlign} flex flex-col`, children: [
641
+ d.title && /* @__PURE__ */ jsxRuntime.jsx("h1", { className: `text-3xl md:text-5xl font-extrabold tracking-tight text-balance leading-tight ${textAlign}`, children: d.title }),
642
+ d.subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: `text-lg text-muted-foreground leading-relaxed text-pretty ${textAlign}`, children: d.subtitle }),
643
+ (d.button || d.secondaryButton) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex flex-wrap gap-3 pt-2 ${align === "center" ? "justify-center" : "justify-start"}`, children: [
459
644
  d.button && /* @__PURE__ */ jsxRuntime.jsx("a", { href: d.buttonUrl || "#", className: "inline-flex items-center px-6 py-3 rounded-lg bg-primary text-primary-foreground font-semibold text-sm hover:opacity-90 transition-opacity", children: d.button }),
460
645
  d.secondaryButton && /* @__PURE__ */ jsxRuntime.jsx("a", { href: d.secondaryUrl || "#", className: "inline-flex items-center px-6 py-3 rounded-lg border border-border text-foreground font-semibold text-sm hover:bg-muted transition-colors", children: d.secondaryButton })
461
646
  ] })
462
647
  ] }),
463
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 w-full", children: d.image ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: d.image, alt: d.title || "", className: "w-full rounded-2xl object-cover shadow-lg border border-border" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full rounded-2xl bg-muted border border-border aspect-video flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground", children: "No image set" }) }) })
648
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-1 w-full", children: d.image ? /* @__PURE__ */ jsxRuntime.jsx("img", { src: d.image, alt: d.imageAlt || d.title || "Hero image", className: "w-full rounded-2xl object-cover shadow-lg border border-border" }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "w-full rounded-2xl bg-muted border border-border aspect-video flex items-center justify-center", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-xs text-muted-foreground", children: "No image set" }) }) })
464
649
  ] }) });
465
650
  }
466
651
  function AccordionBlock({ block }) {
@@ -708,6 +893,10 @@ var BUILT_IN = {
708
893
  "pricing-table": (b) => /* @__PURE__ */ jsxRuntime.jsx(PricingTableBlock, { block: b }),
709
894
  hero: (b) => /* @__PURE__ */ jsxRuntime.jsx(HeroBlock, { block: b }),
710
895
  "hero-section": (b) => /* @__PURE__ */ jsxRuntime.jsx(HeroBlock, { block: b }),
896
+ "centered-hero": (b) => /* @__PURE__ */ jsxRuntime.jsx(CenteredHeroBlock, { block: b }),
897
+ "product-hero": (b) => /* @__PURE__ */ jsxRuntime.jsx(ProductHeroBlock, { block: b }),
898
+ "bento-hero": (b) => /* @__PURE__ */ jsxRuntime.jsx(BentoHeroBlock, { block: b }),
899
+ "minimal-hero": (b) => /* @__PURE__ */ jsxRuntime.jsx(MinimalHeroBlock, { block: b }),
711
900
  cta: (b) => /* @__PURE__ */ jsxRuntime.jsx(CTABlock, { block: b }),
712
901
  faq: (b) => /* @__PURE__ */ jsxRuntime.jsx(FAQBlock, { block: b }),
713
902
  "team-member": (b) => /* @__PURE__ */ jsxRuntime.jsx(TeamMemberBlock, { block: b }),