@opensite/ui 1.6.2 → 1.6.3

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/registry.js CHANGED
@@ -27101,7 +27101,7 @@ function FeatureUtilityCardsGrid({
27101
27101
  Card,
27102
27102
  {
27103
27103
  className: cn(
27104
- "py-0 shadow-sm overflow-hidden pt-0 transition-shadow duration-300 hover:shadow-lg",
27104
+ "gap-0! py-0 shadow-sm overflow-hidden pt-0 transition-shadow duration-300 hover:shadow-lg",
27105
27105
  cardClassName,
27106
27106
  utility.className
27107
27107
  ),
@@ -28416,7 +28416,11 @@ function FeatureCategoryImageCards({
28416
28416
  return features.map((feature, index) => /* @__PURE__ */ jsxs(
28417
28417
  Card,
28418
28418
  {
28419
- className: cn("border-none", cardClassName, feature.className),
28419
+ className: cn(
28420
+ "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border pt-6 shadow-sm border-none",
28421
+ cardClassName,
28422
+ feature.className
28423
+ ),
28420
28424
  children: [
28421
28425
  /* @__PURE__ */ jsxs(CardHeader, { className: "text-center", children: [
28422
28426
  feature.title && (typeof feature.title === "string" ? /* @__PURE__ */ jsx(
@@ -28448,7 +28452,7 @@ function FeatureCategoryImageCards({
28448
28452
  }
28449
28453
  ) : /* @__PURE__ */ jsx("div", { className: cn("md:text-lg", feature.categoryClassName), children: feature.category }))
28450
28454
  ] }),
28451
- /* @__PURE__ */ jsx(CardContent, { className: "px-7 pb-7", children: renderFeatureImage(feature) })
28455
+ /* @__PURE__ */ jsx(CardContent, { className: "px-7 pb-0", children: renderFeatureImage(feature) })
28452
28456
  ]
28453
28457
  },
28454
28458
  index
@@ -28478,7 +28482,7 @@ function FeatureCategoryImageCards({
28478
28482
  "h2",
28479
28483
  {
28480
28484
  className: cn(
28481
- "text-3xl font-semibold md:text-5xl",
28485
+ "text-3xl font-semibold md:text-5xl text-balance",
28482
28486
  titleClassName
28483
28487
  ),
28484
28488
  children: title
@@ -28487,13 +28491,31 @@ function FeatureCategoryImageCards({
28487
28491
  "div",
28488
28492
  {
28489
28493
  className: cn(
28490
- "text-3xl font-semibold md:text-5xl",
28494
+ "text-3xl font-semibold md:text-5xl text-balance",
28491
28495
  titleClassName
28492
28496
  ),
28493
28497
  children: title
28494
28498
  }
28495
28499
  )),
28496
- description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("max-w-2xl md:text-lg", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: cn("max-w-2xl md:text-lg", descriptionClassName), children: description }))
28500
+ description && (typeof description === "string" ? /* @__PURE__ */ jsx(
28501
+ "p",
28502
+ {
28503
+ className: cn(
28504
+ "max-w-2xl md:text-lg text-balance",
28505
+ descriptionClassName
28506
+ ),
28507
+ children: description
28508
+ }
28509
+ ) : /* @__PURE__ */ jsx(
28510
+ "div",
28511
+ {
28512
+ className: cn(
28513
+ "max-w-2xl md:text-lg text-balance",
28514
+ descriptionClassName
28515
+ ),
28516
+ children: description
28517
+ }
28518
+ ))
28497
28519
  ]
28498
28520
  }
28499
28521
  ),
@@ -44689,7 +44711,8 @@ function FooterAccordionSocial({
44689
44711
  onSuccess,
44690
44712
  onError,
44691
44713
  background,
44692
- spacing,
44714
+ containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
44715
+ spacing = "py-6 md:py-32",
44693
44716
  pattern,
44694
44717
  patternOpacity,
44695
44718
  patternClassName
@@ -44743,6 +44766,7 @@ function FooterAccordionSocial({
44743
44766
  patternOpacity,
44744
44767
  patternClassName,
44745
44768
  className,
44769
+ containerClassName,
44746
44770
  children: /* @__PURE__ */ jsxs("div", { className: "space-y-10", children: [
44747
44771
  /* @__PURE__ */ jsxs("div", { className: "grid gap-10 lg:grid-cols-2 lg:gap-20", children: [
44748
44772
  /* @__PURE__ */ jsxs("div", { className: "space-y-6", children: [
@@ -44875,7 +44899,8 @@ function FooterInfoCardsAccordion({
44875
44899
  copyrightClassName,
44876
44900
  submenuLinksClassName,
44877
44901
  background,
44878
- spacing,
44902
+ containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
44903
+ spacing = "py-6 md:py-32",
44879
44904
  pattern,
44880
44905
  patternOpacity,
44881
44906
  optixFlowConfig
@@ -44895,6 +44920,7 @@ function FooterInfoCardsAccordion({
44895
44920
  pattern,
44896
44921
  patternOpacity,
44897
44922
  className: cn(className),
44923
+ containerClassName,
44898
44924
  children: /* @__PURE__ */ jsxs("div", { className: cn("space-y-12 lg:space-y-14", contentClassName), children: [
44899
44925
  footerDetails?.image?.src && (newsletterTitle || newsletterDescription || subscribeText) && /* @__PURE__ */ jsxs(
44900
44926
  "div",
@@ -45047,61 +45073,43 @@ function FooterInfoCardsAccordion({
45047
45073
  brandGridClassName
45048
45074
  ),
45049
45075
  children: [
45050
- (footerDetails?.logo || footerDetails?.description) && /* @__PURE__ */ jsxs(
45051
- "div",
45052
- {
45053
- className: cn(
45054
- "space-y-5",
45055
- brandColumnClassName
45056
- ),
45057
- children: [
45058
- footerDetails?.logo && /* @__PURE__ */ jsx(
45059
- FooterLogo,
45060
- {
45061
- logo: {
45062
- ...footerDetails.logo,
45063
- url: footerDetails.logoUrl || "/"
45064
- },
45065
- logoClassName: cn(
45066
- "inline-block w-full max-w-64",
45067
- logoClassName
45068
- ),
45069
- optixFlowConfig
45070
- }
45076
+ (footerDetails?.logo || footerDetails?.description) && /* @__PURE__ */ jsxs("div", { className: cn("space-y-5", brandColumnClassName), children: [
45077
+ footerDetails?.logo && /* @__PURE__ */ jsx(
45078
+ FooterLogo,
45079
+ {
45080
+ logo: {
45081
+ ...footerDetails.logo,
45082
+ url: footerDetails.logoUrl || "/"
45083
+ },
45084
+ logoClassName: cn(
45085
+ "inline-block w-full max-w-64",
45086
+ logoClassName
45071
45087
  ),
45072
- footerDetails?.description && /* @__PURE__ */ jsx(
45073
- "p",
45074
- {
45075
- className: cn(
45076
- "max-w-md text-sm leading-relaxed text-muted-foreground",
45077
- brandDescriptionClassName
45078
- ),
45079
- children: footerDetails.description
45080
- }
45081
- )
45082
- ]
45083
- }
45084
- ),
45085
- footerLinks && footerLinks.length > 0 && /* @__PURE__ */ jsx(
45086
- "div",
45087
- {
45088
- className: cn(
45089
- "space-y-6",
45090
- accordionColumnClassName
45091
- ),
45092
- children: /* @__PURE__ */ jsx("div", { className: "grid gap-8 sm:grid-cols-2 lg:grid-cols-3", children: footerLinks.map((section) => /* @__PURE__ */ jsxs("div", { children: [
45093
- /* @__PURE__ */ jsx("h3", { className: "mb-4 text-sm font-semibold tracking-wide", children: section.title }),
45094
- /* @__PURE__ */ jsx("ul", { className: "space-y-2.5 text-sm text-muted-foreground", children: section.items.map((item, idx) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
45095
- Pressable,
45096
- {
45097
- href: item.link,
45098
- className: "transition-colors hover:text-foreground",
45099
- children: item.text
45100
- }
45101
- ) }, idx)) })
45102
- ] }, section.id)) })
45103
- }
45104
- )
45088
+ optixFlowConfig
45089
+ }
45090
+ ),
45091
+ footerDetails?.description && /* @__PURE__ */ jsx(
45092
+ "p",
45093
+ {
45094
+ className: cn(
45095
+ "max-w-md text-sm leading-relaxed text-muted-foreground",
45096
+ brandDescriptionClassName
45097
+ ),
45098
+ children: footerDetails.description
45099
+ }
45100
+ )
45101
+ ] }),
45102
+ footerLinks && footerLinks.length > 0 && /* @__PURE__ */ jsx("div", { className: cn("space-y-6", accordionColumnClassName), children: /* @__PURE__ */ jsx("div", { className: "grid gap-8 grid-cols-2 md:grid-cols-3", children: footerLinks.map((section) => /* @__PURE__ */ jsxs("div", { children: [
45103
+ /* @__PURE__ */ jsx("h3", { className: "mb-4 text-sm font-semibold tracking-wide", children: section.title }),
45104
+ /* @__PURE__ */ jsx("ul", { className: "space-y-2.5 text-sm text-muted-foreground", children: section.items.map((item, idx) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
45105
+ Pressable,
45106
+ {
45107
+ href: item.link,
45108
+ className: "transition-colors hover:text-foreground",
45109
+ children: item.text
45110
+ }
45111
+ ) }, idx)) })
45112
+ ] }, section.id)) }) })
45105
45113
  ]
45106
45114
  }
45107
45115
  ),
@@ -49615,7 +49623,7 @@ function HeroOverlayCtaGrid({
49615
49623
  const renderCards = useMemo(() => {
49616
49624
  if (cardsSlot) return cardsSlot;
49617
49625
  if (!cards || cards.length === 0) return null;
49618
- return /* @__PURE__ */ jsx("div", { className: "mx-auto w-full max-w-6xl overflow-hidden rounded-3xl border border-border bg-white/95 shadow-2xl px-6 md:px-20", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 divide-y divide-border md:grid-cols-3 md:divide-x md:divide-y-0", children: cards.map((card) => /* @__PURE__ */ jsxs(
49626
+ return /* @__PURE__ */ jsx("div", { className: "mx-auto w-full max-w-6xl overflow-hidden rounded-3xl border border-border bg-white/95 shadow-2xl px-0", children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 divide-y divide-border md:grid-cols-3 md:divide-x md:divide-y-0", children: cards.map((card) => /* @__PURE__ */ jsxs(
49619
49627
  Pressable,
49620
49628
  {
49621
49629
  href: card.href,
@@ -49625,7 +49633,7 @@ function HeroOverlayCtaGrid({
49625
49633
  "div",
49626
49634
  {
49627
49635
  className: cn(
49628
- "relative flex h-12 w-12 flex-none items-center justify-center rounded-full transition-colors group-hover:text-black bg-white"
49636
+ "relative flex h-12 w-12 flex-none items-center justify-center rounded-full bg-primary text-primary-foreground"
49629
49637
  ),
49630
49638
  children: /* @__PURE__ */ jsx(DynamicIcon, { name: card.icon, size: 22 })
49631
49639
  }
@@ -49671,7 +49679,7 @@ function HeroOverlayCtaGrid({
49671
49679
  pattern,
49672
49680
  patternOpacity,
49673
49681
  className: cn(
49674
- "relative flex h-full min-h-screen w-screen items-center justify-center overflow-hidden bg-black pb-0 pt-0 md:pt-0",
49682
+ "relative flex h-full min-h-screen w-screen items-center justify-center overflow-hidden bg-black pb-0 pt-0 md:pt-0 px-6",
49675
49683
  className
49676
49684
  ),
49677
49685
  children: [
@@ -49687,14 +49695,14 @@ function HeroOverlayCtaGrid({
49687
49695
  initial: { opacity: 0, y: 28 },
49688
49696
  animate: { opacity: 1, y: 0 },
49689
49697
  transition: { duration: 0.6, ease: "easeOut" },
49690
- className: "mx-auto max-w-3xl text-center text-balance text-white px-6 md:px-20",
49698
+ className: "mx-auto max-w-3xl text-center text-balance text-white px-0",
49691
49699
  children: [
49692
49700
  renderBadge,
49693
49701
  heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
49694
49702
  "h1",
49695
49703
  {
49696
49704
  className: cn(
49697
- "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl",
49705
+ "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
49698
49706
  headingClassName
49699
49707
  ),
49700
49708
  children: heading
@@ -49703,7 +49711,7 @@ function HeroOverlayCtaGrid({
49703
49711
  "h1",
49704
49712
  {
49705
49713
  className: cn(
49706
- "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl",
49714
+ "mt-6 text-4xl font-bold leading-tight md:text-5xl lg:text-6xl text-balance",
49707
49715
  headingClassName
49708
49716
  ),
49709
49717
  children: heading
@@ -49712,13 +49720,19 @@ function HeroOverlayCtaGrid({
49712
49720
  description && (typeof description === "string" ? /* @__PURE__ */ jsx(
49713
49721
  "p",
49714
49722
  {
49715
- className: cn("mt-5 text-lg md:text-xl", descriptionClassName),
49723
+ className: cn(
49724
+ "mt-5 text-lg md:text-xl text-balance",
49725
+ descriptionClassName
49726
+ ),
49716
49727
  children: description
49717
49728
  }
49718
49729
  ) : /* @__PURE__ */ jsx(
49719
49730
  "div",
49720
49731
  {
49721
- className: cn("mt-5 text-lg md:text-xl", descriptionClassName),
49732
+ className: cn(
49733
+ "mt-5 text-lg md:text-xl text-balance",
49734
+ descriptionClassName
49735
+ ),
49722
49736
  children: description
49723
49737
  }
49724
49738
  )),
@@ -49745,28 +49759,22 @@ function HeroSplitIconCards({
49745
49759
  cardItems,
49746
49760
  cardsSlot,
49747
49761
  background,
49748
- verticalSpacing,
49749
49762
  pattern,
49750
49763
  patternOpacity,
49751
49764
  className,
49752
49765
  contentClassName,
49753
49766
  headingClassName,
49754
- descriptionClassName
49767
+ descriptionClassName,
49768
+ verticalSpacing,
49769
+ containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
49770
+ spacing = "py-12 md:py-32"
49755
49771
  }) {
49756
49772
  const renderActions = useMemo(() => {
49757
49773
  if (actionsSlot) return actionsSlot;
49758
49774
  if (!primaryCta && !secondaryCta) return null;
49759
49775
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-4", children: [
49760
49776
  primaryCta && /* @__PURE__ */ jsx(Pressable, { href: primaryCta.href, size: "lg", variant: "default", children: primaryCta.label }),
49761
- secondaryCta && /* @__PURE__ */ jsx(
49762
- Pressable,
49763
- {
49764
- href: secondaryCta.href,
49765
- size: "lg",
49766
- variant: "outline",
49767
- children: secondaryCta.label
49768
- }
49769
- )
49777
+ secondaryCta && /* @__PURE__ */ jsx(Pressable, { href: secondaryCta.href, size: "lg", variant: "outline", children: secondaryCta.label })
49770
49778
  ] });
49771
49779
  }, [actionsSlot, primaryCta, secondaryCta]);
49772
49780
  const renderCards = useMemo(() => {
@@ -49774,10 +49782,29 @@ function HeroSplitIconCards({
49774
49782
  if (!cardItems || cardItems.length === 0) return null;
49775
49783
  return /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4", children: cardItems.map((item, idx) => {
49776
49784
  const card = /* @__PURE__ */ jsx(Card, { className: "h-full border-border/60 px-0 py-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 p-6", children: [
49777
- /* @__PURE__ */ jsx("div", { className: cn("flex h-14 w-14 items-center justify-center rounded-xl", `${getAccentColor(background)}/10`, getAccentColor(background)), children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 24 }) }),
49785
+ /* @__PURE__ */ jsx(
49786
+ "div",
49787
+ {
49788
+ className: cn(
49789
+ "flex h-14 w-14 items-center justify-center rounded-xl",
49790
+ `${getAccentColor(background)}/10`,
49791
+ getAccentColor(background)
49792
+ ),
49793
+ children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 24 })
49794
+ }
49795
+ ),
49778
49796
  /* @__PURE__ */ jsxs("div", { children: [
49779
49797
  /* @__PURE__ */ jsx("h3", { className: "text-lg font-bold ", children: item.title }),
49780
- item.subtitle ? /* @__PURE__ */ jsx("p", { className: cn("mt-2 text-sm", getTextColor(background, "muted")), children: item.subtitle }) : null
49798
+ item.subtitle ? /* @__PURE__ */ jsx(
49799
+ "p",
49800
+ {
49801
+ className: cn(
49802
+ "mt-2 text-sm",
49803
+ getTextColor(background, "muted")
49804
+ ),
49805
+ children: item.subtitle
49806
+ }
49807
+ ) : null
49781
49808
  ] })
49782
49809
  ] }) });
49783
49810
  return item.href ? /* @__PURE__ */ jsx(Pressable, { href: item.href, className: "block", children: card }, idx) : /* @__PURE__ */ jsx("div", { children: card }, idx);
@@ -49787,15 +49814,53 @@ function HeroSplitIconCards({
49787
49814
  Section,
49788
49815
  {
49789
49816
  background,
49790
- spacing: verticalSpacing,
49817
+ spacing: verticalSpacing || spacing,
49791
49818
  pattern,
49792
49819
  patternOpacity,
49793
49820
  className: cn("overflow-hidden", className),
49821
+ containerClassName,
49794
49822
  children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-10 lg:grid-cols-2 lg:items-center", children: [
49795
49823
  /* @__PURE__ */ jsx("div", { className: cn("space-y-6", contentClassName), children: children ? children : /* @__PURE__ */ jsxs(Fragment$1, { children: [
49796
- eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-xs font-semibold uppercase tracking-[0.25em]", getAccentColor(background)), children: eyebrow }) : eyebrow),
49797
- heading && (typeof heading === "string" ? /* @__PURE__ */ jsx("h2", { className: cn("text-3xl font-bold md:text-4xl", headingClassName), children: heading }) : /* @__PURE__ */ jsx("h2", { className: cn("text-3xl font-bold md:text-4xl", headingClassName), children: heading })),
49798
- description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-lg", getTextColor(background, "muted"), descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
49824
+ eyebrow && (typeof eyebrow === "string" ? /* @__PURE__ */ jsx(
49825
+ "p",
49826
+ {
49827
+ className: cn(
49828
+ "text-xs font-semibold uppercase tracking-[0.25em]",
49829
+ getAccentColor(background)
49830
+ ),
49831
+ children: eyebrow
49832
+ }
49833
+ ) : eyebrow),
49834
+ heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
49835
+ "h2",
49836
+ {
49837
+ className: cn(
49838
+ "text-3xl font-bold md:text-4xl",
49839
+ headingClassName
49840
+ ),
49841
+ children: heading
49842
+ }
49843
+ ) : /* @__PURE__ */ jsx(
49844
+ "h2",
49845
+ {
49846
+ className: cn(
49847
+ "text-3xl font-bold md:text-4xl",
49848
+ headingClassName
49849
+ ),
49850
+ children: heading
49851
+ }
49852
+ )),
49853
+ description && (typeof description === "string" ? /* @__PURE__ */ jsx(
49854
+ "p",
49855
+ {
49856
+ className: cn(
49857
+ "text-lg",
49858
+ getTextColor(background, "muted"),
49859
+ descriptionClassName
49860
+ ),
49861
+ children: description
49862
+ }
49863
+ ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
49799
49864
  renderActions
49800
49865
  ] }) }),
49801
49866
  renderCards
@@ -50583,14 +50648,13 @@ function HeroPatternBadgeLogos({
50583
50648
  actionsSlot,
50584
50649
  logos,
50585
50650
  logosSlot,
50586
- logosTagline = "Powering the next generation of digital products",
50587
- backgroundImageUrl = "https://cdn.ing/assets/files/record/286186/nbdflpgp4ostrno079hygibsflp3",
50651
+ logosTagline,
50588
50652
  background,
50589
- spacing,
50653
+ containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
50654
+ spacing = "py-12 md:py-32",
50590
50655
  pattern,
50591
50656
  patternOpacity,
50592
50657
  className,
50593
- containerClassName,
50594
50658
  contentClassName,
50595
50659
  headingClassName,
50596
50660
  descriptionClassName,
@@ -50604,7 +50668,14 @@ function HeroPatternBadgeLogos({
50604
50668
  if (actionsSlot) return actionsSlot;
50605
50669
  if (!actions || actions.length === 0) return null;
50606
50670
  return actions.map((action, index) => {
50607
- const { label, icon, iconAfter, children, className: actionClassName, ...pressableProps } = action;
50671
+ const {
50672
+ label,
50673
+ icon,
50674
+ iconAfter,
50675
+ children,
50676
+ className: actionClassName,
50677
+ ...pressableProps
50678
+ } = action;
50608
50679
  return /* @__PURE__ */ jsx(
50609
50680
  Pressable,
50610
50681
  {
@@ -50661,7 +50732,7 @@ function HeroPatternBadgeLogos({
50661
50732
  return /* @__PURE__ */ jsx("div", { className: logoClassName, children: imgElement }, index);
50662
50733
  });
50663
50734
  }, [logosSlot, logos, optixFlowConfig]);
50664
- return /* @__PURE__ */ jsxs(
50735
+ return /* @__PURE__ */ jsx(
50665
50736
  Section,
50666
50737
  {
50667
50738
  background,
@@ -50669,31 +50740,61 @@ function HeroPatternBadgeLogos({
50669
50740
  pattern,
50670
50741
  patternOpacity,
50671
50742
  className: cn("relative p-0", className),
50672
- children: [
50673
- /* @__PURE__ */ jsx(
50674
- "div",
50675
- {
50676
- className: cn(
50677
- "absolute h-full w-full bg-contain bg-repeat opacity-100 lg:block",
50678
- "mask-[linear-gradient(to_right,var(--color-border),transparent,transparent,var(--color-border))]",
50679
- backgroundClassName
50743
+ containerClassName,
50744
+ children: /* @__PURE__ */ jsx("div", { className: cn("relative"), children: /* @__PURE__ */ jsx("div", { className: "mx-auto flex max-w-5xl flex-col items-center", children: /* @__PURE__ */ jsxs(
50745
+ "div",
50746
+ {
50747
+ className: cn(
50748
+ "z-10 mx-auto flex max-w-5xl flex-col items-center gap-6 text-center",
50749
+ contentClassName
50750
+ ),
50751
+ children: [
50752
+ badge && /* @__PURE__ */ jsx("div", { className: badgeClassName, children: typeof badge === "string" ? /* @__PURE__ */ jsx(Badge, { variant: "default", children: badge }) : badge }),
50753
+ /* @__PURE__ */ jsxs("div", { children: [
50754
+ heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
50755
+ "h1",
50756
+ {
50757
+ className: cn(
50758
+ "mb-6 text-4xl font-bold tracking-tight text-balance md:text-5xl lg:text-7xl",
50759
+ headingClassName
50760
+ ),
50761
+ children: heading
50762
+ }
50763
+ ) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
50764
+ description && (typeof description === "string" ? /* @__PURE__ */ jsx(
50765
+ "p",
50766
+ {
50767
+ className: cn(
50768
+ "mx-auto max-w-2xl md:text-lg lg:text-xl text-balance",
50769
+ descriptionClassName
50770
+ ),
50771
+ children: description
50772
+ }
50773
+ ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
50774
+ ] }),
50775
+ (actionsSlot || actions && actions.length > 0) && /* @__PURE__ */ jsx(
50776
+ "div",
50777
+ {
50778
+ className: cn("mt-6 flex items-center gap-4", actionsClassName),
50779
+ children: renderActions
50780
+ }
50680
50781
  ),
50681
- style: { backgroundImage: `url('${backgroundImageUrl}')` }
50682
- }
50683
- ),
50684
- /* @__PURE__ */ jsx("div", { className: cn("container py-28 md:py-32", containerClassName), children: /* @__PURE__ */ jsx("div", { className: "mx-auto flex max-w-5xl flex-col items-center", children: /* @__PURE__ */ jsxs("div", { className: cn("z-10 mx-auto flex max-w-5xl flex-col items-center gap-6 text-center", contentClassName), children: [
50685
- badge && /* @__PURE__ */ jsx("div", { className: badgeClassName, children: typeof badge === "string" ? /* @__PURE__ */ jsx(Badge, { variant: "outline", className: "transition-colors hover:bg-secondary/20", children: badge }) : badge }),
50686
- /* @__PURE__ */ jsxs("div", { children: [
50687
- heading && (typeof heading === "string" ? /* @__PURE__ */ jsx("h1", { className: cn("mb-6 text-4xl font-bold tracking-tight text-pretty md:text-5xl lg:text-7xl", headingClassName), children: heading }) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
50688
- description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mx-auto max-w-2xl md:text-lg lg:text-xl", getTextColor(background, "muted"), descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
50689
- ] }),
50690
- (actionsSlot || actions && actions.length > 0) && /* @__PURE__ */ jsx("div", { className: cn("mt-6 flex items-center gap-4", actionsClassName), children: renderActions }),
50691
- (logosSlot || logos && logos.length > 0 || logosTagline) && /* @__PURE__ */ jsxs("div", { className: cn("mt-12 flex flex-col items-center gap-4 lg:mt-16", logosClassName), children: [
50692
- logosTagline && (typeof logosTagline === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-center text-sm", getTextColor(background, "muted")), children: logosTagline }) : logosTagline),
50693
- /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 place-items-center items-center justify-center gap-6 opacity-80 sm:grid-cols-4 sm:gap-4", children: renderLogos })
50694
- ] })
50695
- ] }) }) })
50696
- ]
50782
+ (logosSlot || logos && logos.length > 0 || logosTagline) && /* @__PURE__ */ jsxs(
50783
+ "div",
50784
+ {
50785
+ className: cn(
50786
+ "mt-12 flex flex-col items-center gap-4 lg:mt-16",
50787
+ logosClassName
50788
+ ),
50789
+ children: [
50790
+ logosTagline && (typeof logosTagline === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-center text-sm"), children: logosTagline }) : logosTagline),
50791
+ /* @__PURE__ */ jsx("div", { className: "grid grid-cols-2 place-items-center items-center justify-center gap-6 opacity-80 sm:grid-cols-4 sm:gap-4", children: renderLogos })
50792
+ ]
50793
+ }
50794
+ )
50795
+ ]
50796
+ }
50797
+ ) }) })
50697
50798
  }
50698
50799
  );
50699
50800
  }
@@ -50707,11 +50808,11 @@ function HeroLogoCenteredScreenshot({
50707
50808
  image,
50708
50809
  imageSlot,
50709
50810
  background,
50710
- spacing,
50811
+ containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
50812
+ spacing = "py-6 md:py-32",
50711
50813
  pattern,
50712
50814
  patternOpacity,
50713
50815
  className,
50714
- containerClassName,
50715
50816
  contentClassName,
50716
50817
  headingClassName,
50717
50818
  descriptionClassName,
@@ -50727,7 +50828,7 @@ function HeroLogoCenteredScreenshot({
50727
50828
  {
50728
50829
  src: logoSrc,
50729
50830
  alt: logo.alt,
50730
- className: cn("h-10 md:h-16", logo.className),
50831
+ className: cn("h-10 md:h-16 object-contain", logo.className),
50731
50832
  optixFlowConfig
50732
50833
  }
50733
50834
  );
@@ -50735,7 +50836,14 @@ function HeroLogoCenteredScreenshot({
50735
50836
  const renderAction = useMemo(() => {
50736
50837
  if (actionSlot) return actionSlot;
50737
50838
  if (!action) return null;
50738
- const { label, icon, iconAfter, children, className: actionClassName, ...pressableProps } = action;
50839
+ const {
50840
+ label,
50841
+ icon,
50842
+ iconAfter,
50843
+ children,
50844
+ className: actionClassName,
50845
+ ...pressableProps
50846
+ } = action;
50739
50847
  return /* @__PURE__ */ jsx(Pressable, { asButton: true, className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxs(Fragment$1, { children: [
50740
50848
  icon,
50741
50849
  label,
@@ -50750,7 +50858,11 @@ function HeroLogoCenteredScreenshot({
50750
50858
  {
50751
50859
  src: image.src,
50752
50860
  alt: image.alt,
50753
- className: cn("mt-20 aspect-video w-full rounded-t-lg object-cover", imageClassName, image.className),
50861
+ className: cn(
50862
+ "mt-20 w-full rounded-xl object-cover h-auto shadow-xl",
50863
+ imageClassName,
50864
+ image.className
50865
+ ),
50754
50866
  optixFlowConfig
50755
50867
  }
50756
50868
  );
@@ -50763,15 +50875,51 @@ function HeroLogoCenteredScreenshot({
50763
50875
  pattern,
50764
50876
  patternOpacity,
50765
50877
  className: cn(className),
50766
- children: /* @__PURE__ */ jsx("div", { className: "border-b", children: /* @__PURE__ */ jsxs("div", { className: cn("container max-w-7xl", containerClassName), children: [
50767
- /* @__PURE__ */ jsx("div", { className: "mx-auto flex max-w-5xl flex-col items-center", children: /* @__PURE__ */ jsxs("div", { className: cn("z-10 flex flex-col items-center gap-6 text-center", contentClassName), children: [
50768
- renderLogo,
50769
- /* @__PURE__ */ jsxs("div", { children: [
50770
- heading && (typeof heading === "string" ? /* @__PURE__ */ jsx("h1", { className: cn("mb-4 text-3xl font-medium text-pretty lg:text-5xl", headingClassName), children: heading }) : /* @__PURE__ */ jsx("h1", { className: cn("mb-4 text-3xl font-medium text-pretty lg:text-5xl", headingClassName), children: heading })),
50771
- description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("max-w-3xl lg:text-xl", getTextColor(background, "muted"), descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
50772
- ] }),
50773
- renderAction
50774
- ] }) }),
50878
+ children: /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsxs("div", { className: cn("container max-w-7xl", containerClassName), children: [
50879
+ /* @__PURE__ */ jsx("div", { className: "mx-auto flex max-w-5xl flex-col items-center", children: /* @__PURE__ */ jsxs(
50880
+ "div",
50881
+ {
50882
+ className: cn(
50883
+ "z-10 flex flex-col items-center gap-6 text-center",
50884
+ contentClassName
50885
+ ),
50886
+ children: [
50887
+ renderLogo,
50888
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-center items-center w-full text-balance", children: [
50889
+ heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
50890
+ "h1",
50891
+ {
50892
+ className: cn(
50893
+ "mb-4 text-3xl font-medium lg:text-5xl",
50894
+ headingClassName
50895
+ ),
50896
+ children: heading
50897
+ }
50898
+ ) : /* @__PURE__ */ jsx(
50899
+ "h1",
50900
+ {
50901
+ className: cn(
50902
+ "mb-4 text-3xl font-medium lg:text-5xl",
50903
+ headingClassName
50904
+ ),
50905
+ children: heading
50906
+ }
50907
+ )),
50908
+ description && (typeof description === "string" ? /* @__PURE__ */ jsx(
50909
+ "p",
50910
+ {
50911
+ className: cn(
50912
+ "max-w-3xl lg:text-xl",
50913
+ descriptionClassName
50914
+ ),
50915
+ children: description
50916
+ }
50917
+ ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
50918
+ ] }),
50919
+ renderAction
50920
+ ]
50921
+ }
50922
+ ) }),
50775
50923
  renderImage
50776
50924
  ] }) })
50777
50925
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opensite/ui",
3
- "version": "1.6.2",
3
+ "version": "1.6.3",
4
4
  "description": "Foundational UI component library for OpenSite Semantic Site Builder with tree-shakable exports and abstract styling",
5
5
  "keywords": [
6
6
  "react",