@opensite/ui 3.7.2 → 3.7.4
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/hero-ad-campaign-expert.cjs +46 -1
- package/dist/hero-ad-campaign-expert.d.cts +16 -1
- package/dist/hero-ad-campaign-expert.d.ts +16 -1
- package/dist/hero-ad-campaign-expert.js +46 -1
- package/dist/hero-adaptable-product-grid.cjs +46 -1
- package/dist/hero-adaptable-product-grid.d.cts +16 -1
- package/dist/hero-adaptable-product-grid.d.ts +16 -1
- package/dist/hero-adaptable-product-grid.js +46 -1
- package/dist/hero-agency-animated-images.cjs +46 -1
- package/dist/hero-agency-animated-images.d.cts +16 -1
- package/dist/hero-agency-animated-images.d.ts +16 -1
- package/dist/hero-agency-animated-images.js +46 -1
- package/dist/hero-ai-powered-carousel.cjs +56 -8
- package/dist/hero-ai-powered-carousel.d.cts +16 -1
- package/dist/hero-ai-powered-carousel.d.ts +16 -1
- package/dist/hero-ai-powered-carousel.js +56 -8
- package/dist/hero-announcement-badge.cjs +47 -1
- package/dist/hero-announcement-badge.d.cts +16 -1
- package/dist/hero-announcement-badge.d.ts +16 -1
- package/dist/hero-announcement-badge.js +47 -1
- package/dist/hero-architecture-fullscreen.cjs +46 -1
- package/dist/hero-architecture-fullscreen.d.cts +16 -1
- package/dist/hero-architecture-fullscreen.d.ts +16 -1
- package/dist/hero-architecture-fullscreen.js +46 -1
- package/dist/hero-badge-image-split.cjs +46 -1
- package/dist/hero-badge-image-split.d.cts +16 -1
- package/dist/hero-badge-image-split.d.ts +16 -1
- package/dist/hero-badge-image-split.js +46 -1
- package/dist/hero-badge-shadow-overlay.cjs +54 -3
- package/dist/hero-badge-shadow-overlay.d.cts +16 -1
- package/dist/hero-badge-shadow-overlay.d.ts +16 -1
- package/dist/hero-badge-shadow-overlay.js +54 -3
- package/dist/hero-business-carousel-dots.cjs +46 -1
- package/dist/hero-business-carousel-dots.d.cts +16 -1
- package/dist/hero-business-carousel-dots.d.ts +16 -1
- package/dist/hero-business-carousel-dots.js +46 -1
- package/dist/hero-business-operations-mosaic.cjs +46 -1
- package/dist/hero-business-operations-mosaic.d.cts +16 -1
- package/dist/hero-business-operations-mosaic.d.ts +16 -1
- package/dist/hero-business-operations-mosaic.js +46 -1
- package/dist/hero-centered-gradient-cta.cjs +47 -1
- package/dist/hero-centered-gradient-cta.d.cts +16 -1
- package/dist/hero-centered-gradient-cta.d.ts +16 -1
- package/dist/hero-centered-gradient-cta.js +47 -1
- package/dist/hero-centered-image-grid.cjs +46 -1
- package/dist/hero-centered-image-grid.d.cts +16 -1
- package/dist/hero-centered-image-grid.d.ts +16 -1
- package/dist/hero-centered-image-grid.js +46 -1
- package/dist/hero-centered-screenshot.cjs +46 -1
- package/dist/hero-centered-screenshot.d.cts +16 -1
- package/dist/hero-centered-screenshot.d.ts +16 -1
- package/dist/hero-centered-screenshot.js +46 -1
- package/dist/hero-coming-soon-countdown.cjs +47 -1
- package/dist/hero-coming-soon-countdown.d.cts +16 -1
- package/dist/hero-coming-soon-countdown.d.ts +16 -1
- package/dist/hero-coming-soon-countdown.js +47 -1
- package/dist/hero-community-survey-cta.cjs +46 -1
- package/dist/hero-community-survey-cta.d.cts +16 -1
- package/dist/hero-community-survey-cta.d.ts +16 -1
- package/dist/hero-community-survey-cta.js +46 -1
- package/dist/hero-conversation-intelligence.cjs +46 -1
- package/dist/hero-conversation-intelligence.d.cts +16 -1
- package/dist/hero-conversation-intelligence.d.ts +16 -1
- package/dist/hero-conversation-intelligence.js +46 -1
- package/dist/hero-creative-studio-stacked.cjs +46 -1
- package/dist/hero-creative-studio-stacked.d.cts +17 -2
- package/dist/hero-creative-studio-stacked.d.ts +17 -2
- package/dist/hero-creative-studio-stacked.js +46 -1
- package/dist/hero-crm-streamlined.cjs +58 -9
- package/dist/hero-crm-streamlined.d.cts +16 -1
- package/dist/hero-crm-streamlined.d.ts +16 -1
- package/dist/hero-crm-streamlined.js +58 -9
- package/dist/hero-customer-support-layered.cjs +46 -1
- package/dist/hero-customer-support-layered.d.cts +16 -1
- package/dist/hero-customer-support-layered.d.ts +16 -1
- package/dist/hero-customer-support-layered.js +46 -1
- package/dist/hero-design-system-3d.cjs +67 -20
- package/dist/hero-design-system-3d.d.cts +16 -1
- package/dist/hero-design-system-3d.d.ts +16 -1
- package/dist/hero-design-system-3d.js +67 -20
- package/dist/hero-developer-tools-code.cjs +47 -1
- package/dist/hero-developer-tools-code.d.cts +16 -1
- package/dist/hero-developer-tools-code.d.ts +16 -1
- package/dist/hero-developer-tools-code.js +47 -1
- package/dist/hero-digital-agency-fullscreen.cjs +46 -1
- package/dist/hero-digital-agency-fullscreen.d.cts +16 -1
- package/dist/hero-digital-agency-fullscreen.d.ts +16 -1
- package/dist/hero-digital-agency-fullscreen.js +46 -1
- package/dist/hero-ecommerce-product-showcase.cjs +46 -1
- package/dist/hero-ecommerce-product-showcase.d.cts +16 -1
- package/dist/hero-ecommerce-product-showcase.d.ts +16 -1
- package/dist/hero-ecommerce-product-showcase.js +46 -1
- package/dist/hero-enterprise-security.cjs +47 -1
- package/dist/hero-enterprise-security.d.cts +16 -1
- package/dist/hero-enterprise-security.d.ts +16 -1
- package/dist/hero-enterprise-security.js +47 -1
- package/dist/hero-feature-cards-grid.cjs +47 -1
- package/dist/hero-feature-cards-grid.d.cts +16 -1
- package/dist/hero-feature-cards-grid.d.ts +16 -1
- package/dist/hero-feature-cards-grid.js +47 -1
- package/dist/hero-fullscreen-background-image.cjs +46 -1
- package/dist/hero-fullscreen-background-image.d.cts +16 -1
- package/dist/hero-fullscreen-background-image.d.ts +16 -1
- package/dist/hero-fullscreen-background-image.js +46 -1
- package/dist/hero-gradient-avatars-rating.cjs +46 -1
- package/dist/hero-gradient-avatars-rating.d.cts +16 -1
- package/dist/hero-gradient-avatars-rating.d.ts +16 -1
- package/dist/hero-gradient-avatars-rating.js +46 -1
- package/dist/hero-gradient-client-focused.cjs +46 -1
- package/dist/hero-gradient-client-focused.d.cts +16 -1
- package/dist/hero-gradient-client-focused.d.ts +16 -1
- package/dist/hero-gradient-client-focused.js +46 -1
- package/dist/hero-grid-pattern-efficiency.cjs +47 -1
- package/dist/hero-grid-pattern-efficiency.d.cts +16 -1
- package/dist/hero-grid-pattern-efficiency.d.ts +16 -1
- package/dist/hero-grid-pattern-efficiency.js +47 -1
- package/dist/hero-grid-pattern-solutions.cjs +46 -1
- package/dist/hero-grid-pattern-solutions.d.cts +16 -1
- package/dist/hero-grid-pattern-solutions.d.ts +16 -1
- package/dist/hero-grid-pattern-solutions.js +46 -1
- package/dist/hero-hiring-animated-text.cjs +47 -1
- package/dist/hero-hiring-animated-text.d.cts +16 -1
- package/dist/hero-hiring-animated-text.d.ts +16 -1
- package/dist/hero-hiring-animated-text.js +47 -1
- package/dist/hero-image-left-content.cjs +46 -1
- package/dist/hero-image-left-content.d.cts +16 -1
- package/dist/hero-image-left-content.d.ts +16 -1
- package/dist/hero-image-left-content.js +46 -1
- package/dist/hero-image-slider.cjs +46 -1
- package/dist/hero-image-slider.d.cts +16 -1
- package/dist/hero-image-slider.d.ts +16 -1
- package/dist/hero-image-slider.js +46 -1
- package/dist/hero-innovation-image-grid.cjs +46 -1
- package/dist/hero-innovation-image-grid.d.cts +16 -1
- package/dist/hero-innovation-image-grid.d.ts +16 -1
- package/dist/hero-innovation-image-grid.js +46 -1
- package/dist/hero-marketplace-scattered-images.cjs +46 -1
- package/dist/hero-marketplace-scattered-images.d.cts +16 -1
- package/dist/hero-marketplace-scattered-images.d.ts +16 -1
- package/dist/hero-marketplace-scattered-images.js +46 -1
- package/dist/hero-minimal-centered-dark.cjs +47 -1
- package/dist/hero-minimal-centered-dark.d.cts +16 -1
- package/dist/hero-minimal-centered-dark.d.ts +16 -1
- package/dist/hero-minimal-centered-dark.js +47 -1
- package/dist/hero-mobile-app-download.cjs +46 -1
- package/dist/hero-mobile-app-download.d.cts +16 -1
- package/dist/hero-mobile-app-download.d.ts +16 -1
- package/dist/hero-mobile-app-download.js +46 -1
- package/dist/hero-newsletter-minimal.cjs +48 -1
- package/dist/hero-newsletter-minimal.d.cts +16 -1
- package/dist/hero-newsletter-minimal.d.ts +16 -1
- package/dist/hero-newsletter-minimal.js +48 -1
- package/dist/hero-overlay-cta-grid.cjs +46 -1
- package/dist/hero-overlay-cta-grid.d.cts +16 -1
- package/dist/hero-overlay-cta-grid.d.ts +16 -1
- package/dist/hero-overlay-cta-grid.js +46 -1
- package/dist/hero-portfolio-creative.cjs +46 -1
- package/dist/hero-portfolio-creative.d.cts +16 -1
- package/dist/hero-portfolio-creative.d.ts +16 -1
- package/dist/hero-portfolio-creative.js +46 -1
- package/dist/hero-premium-split-avatars.cjs +46 -1
- package/dist/hero-premium-split-avatars.d.cts +16 -1
- package/dist/hero-premium-split-avatars.d.ts +16 -1
- package/dist/hero-premium-split-avatars.js +46 -1
- package/dist/hero-presentation-platform-video.cjs +47 -1
- package/dist/hero-presentation-platform-video.d.cts +16 -1
- package/dist/hero-presentation-platform-video.d.ts +16 -1
- package/dist/hero-presentation-platform-video.js +47 -1
- package/dist/hero-pricing-comparison.cjs +47 -1
- package/dist/hero-pricing-comparison.d.cts +16 -1
- package/dist/hero-pricing-comparison.d.ts +16 -1
- package/dist/hero-pricing-comparison.js +47 -1
- package/dist/hero-product-showcase-floating.cjs +46 -1
- package/dist/hero-product-showcase-floating.d.cts +16 -1
- package/dist/hero-product-showcase-floating.d.ts +16 -1
- package/dist/hero-product-showcase-floating.js +46 -1
- package/dist/hero-productivity-launcher-video.cjs +68 -20
- package/dist/hero-productivity-launcher-video.d.cts +16 -1
- package/dist/hero-productivity-launcher-video.d.ts +16 -1
- package/dist/hero-productivity-launcher-video.js +68 -20
- package/dist/hero-saas-dashboard-preview.cjs +46 -1
- package/dist/hero-saas-dashboard-preview.d.cts +16 -1
- package/dist/hero-saas-dashboard-preview.d.ts +16 -1
- package/dist/hero-saas-dashboard-preview.js +46 -1
- package/dist/hero-shared-inbox-layered.cjs +46 -1
- package/dist/hero-shared-inbox-layered.d.cts +16 -1
- package/dist/hero-shared-inbox-layered.d.ts +16 -1
- package/dist/hero-shared-inbox-layered.js +46 -1
- package/dist/hero-simple-centered-image.cjs +46 -1
- package/dist/hero-simple-centered-image.d.cts +16 -1
- package/dist/hero-simple-centered-image.d.ts +16 -1
- package/dist/hero-simple-centered-image.js +46 -1
- package/dist/hero-software-growth-video-dialog.cjs +46 -1
- package/dist/hero-software-growth-video-dialog.d.cts +16 -1
- package/dist/hero-software-growth-video-dialog.d.ts +16 -1
- package/dist/hero-software-growth-video-dialog.js +46 -1
- package/dist/hero-spiral-pattern-cards.cjs +46 -1
- package/dist/hero-spiral-pattern-cards.d.cts +16 -1
- package/dist/hero-spiral-pattern-cards.d.ts +16 -1
- package/dist/hero-spiral-pattern-cards.js +46 -1
- package/dist/hero-split-geometric-shapes.cjs +46 -1
- package/dist/hero-split-geometric-shapes.d.cts +16 -1
- package/dist/hero-split-geometric-shapes.d.ts +16 -1
- package/dist/hero-split-geometric-shapes.js +46 -1
- package/dist/hero-split-icon-cards.cjs +47 -1
- package/dist/hero-split-icon-cards.d.cts +16 -1
- package/dist/hero-split-icon-cards.d.ts +16 -1
- package/dist/hero-split-icon-cards.js +47 -1
- package/dist/hero-split-image-newsletter.cjs +46 -1
- package/dist/hero-split-image-newsletter.d.cts +16 -1
- package/dist/hero-split-image-newsletter.d.ts +16 -1
- package/dist/hero-split-image-newsletter.js +47 -2
- package/dist/hero-split-spiral-shapes.cjs +46 -1
- package/dist/hero-split-spiral-shapes.d.cts +16 -1
- package/dist/hero-split-spiral-shapes.d.ts +16 -1
- package/dist/hero-split-spiral-shapes.js +46 -1
- package/dist/hero-startup-launch-cta.cjs +46 -1
- package/dist/hero-startup-launch-cta.d.cts +16 -1
- package/dist/hero-startup-launch-cta.d.ts +16 -1
- package/dist/hero-startup-launch-cta.js +46 -1
- package/dist/hero-stats-social-proof.cjs +46 -1
- package/dist/hero-stats-social-proof.d.cts +16 -1
- package/dist/hero-stats-social-proof.d.ts +16 -1
- package/dist/hero-stats-social-proof.js +46 -1
- package/dist/hero-task-timer-animated.cjs +46 -1
- package/dist/hero-task-timer-animated.d.cts +16 -1
- package/dist/hero-task-timer-animated.d.ts +16 -1
- package/dist/hero-task-timer-animated.js +46 -1
- package/dist/hero-testimonial-image-grid.cjs +46 -1
- package/dist/hero-testimonial-image-grid.d.cts +16 -1
- package/dist/hero-testimonial-image-grid.d.ts +16 -1
- package/dist/hero-testimonial-image-grid.js +46 -1
- package/dist/hero-therapy-testimonial-grid.cjs +46 -1
- package/dist/hero-therapy-testimonial-grid.d.cts +16 -1
- package/dist/hero-therapy-testimonial-grid.d.ts +16 -1
- package/dist/hero-therapy-testimonial-grid.js +46 -1
- package/dist/hero-ui-library-showcase.cjs +3 -2
- package/dist/hero-ui-library-showcase.d.cts +13 -5
- package/dist/hero-ui-library-showcase.d.ts +13 -5
- package/dist/hero-ui-library-showcase.js +3 -2
- package/dist/hero-video-background-dark.cjs +47 -1
- package/dist/hero-video-background-dark.d.cts +16 -1
- package/dist/hero-video-background-dark.d.ts +16 -1
- package/dist/hero-video-background-dark.js +47 -1
- package/dist/{hero-video-dialog-gradient-Cr96k01H.d.ts → hero-video-dialog-gradient-B6-kFIvZ.d.ts} +14 -1
- package/dist/{hero-video-dialog-gradient-Dc0wRYdW.d.cts → hero-video-dialog-gradient-DPnh6Vn-.d.cts} +14 -1
- package/dist/hero-video-dialog-gradient.cjs +46 -1
- package/dist/hero-video-dialog-gradient.d.cts +4 -1
- package/dist/hero-video-dialog-gradient.d.ts +4 -1
- package/dist/hero-video-dialog-gradient.js +46 -1
- package/dist/hero-welcome-asymmetric-images.cjs +46 -1
- package/dist/hero-welcome-asymmetric-images.d.cts +16 -1
- package/dist/hero-welcome-asymmetric-images.d.ts +16 -1
- package/dist/hero-welcome-asymmetric-images.js +46 -1
- package/dist/link-page-bento-layout.cjs +59 -3
- package/dist/link-page-bento-layout.d.cts +16 -1
- package/dist/link-page-bento-layout.d.ts +16 -1
- package/dist/link-page-bento-layout.js +59 -3
- package/dist/link-page-grid-cards.cjs +59 -3
- package/dist/link-page-grid-cards.d.cts +16 -1
- package/dist/link-page-grid-cards.d.ts +16 -1
- package/dist/link-page-grid-cards.js +59 -3
- package/dist/link-page-minimal-profile.cjs +59 -3
- package/dist/link-page-minimal-profile.d.cts +16 -1
- package/dist/link-page-minimal-profile.d.ts +16 -1
- package/dist/link-page-minimal-profile.js +59 -3
- package/dist/link-page-newsletter-social.cjs +59 -3
- package/dist/link-page-newsletter-social.d.cts +16 -1
- package/dist/link-page-newsletter-social.d.ts +16 -1
- package/dist/link-page-newsletter-social.js +59 -3
- package/dist/link-tree-block.cjs +58 -2
- package/dist/link-tree-block.d.cts +16 -1
- package/dist/link-tree-block.d.ts +16 -1
- package/dist/link-tree-block.js +58 -2
- package/dist/registry.cjs +734 -199
- package/dist/registry.js +734 -199
- package/dist/social-link-icon.d.cts +1 -1
- package/dist/social-link-icon.d.ts +1 -1
- package/package.json +1 -1
|
@@ -655,6 +655,47 @@ function ActionComponent({ action }) {
|
|
|
655
655
|
}
|
|
656
656
|
);
|
|
657
657
|
}
|
|
658
|
+
var SIZE_CLASSES = {
|
|
659
|
+
sm: "max-h-6 sm:max-h-7",
|
|
660
|
+
md: "max-h-8 sm:max-h-9 lg:max-h-10",
|
|
661
|
+
lg: "max-h-10 sm:max-h-12 lg:max-h-14",
|
|
662
|
+
xl: "max-h-12 sm:max-h-14 lg:max-h-16"
|
|
663
|
+
};
|
|
664
|
+
var BrandLogo = ({
|
|
665
|
+
logo,
|
|
666
|
+
logoSlot,
|
|
667
|
+
logoClassName,
|
|
668
|
+
size = "md",
|
|
669
|
+
optixFlowConfig
|
|
670
|
+
}) => {
|
|
671
|
+
if (logoSlot) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: logoSlot });
|
|
672
|
+
if (!logo || !logo.src) return null;
|
|
673
|
+
const imgElement = /* @__PURE__ */ jsxRuntime.jsx(
|
|
674
|
+
img.Img,
|
|
675
|
+
{
|
|
676
|
+
src: logo.src,
|
|
677
|
+
className: cn(
|
|
678
|
+
"w-auto object-contain",
|
|
679
|
+
SIZE_CLASSES[size],
|
|
680
|
+
logo.className
|
|
681
|
+
),
|
|
682
|
+
alt: logo.alt || "Logo",
|
|
683
|
+
optixFlowConfig,
|
|
684
|
+
loading: "eager"
|
|
685
|
+
}
|
|
686
|
+
);
|
|
687
|
+
if (logo.url) {
|
|
688
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
689
|
+
pressable.Pressable,
|
|
690
|
+
{
|
|
691
|
+
href: logo.url,
|
|
692
|
+
className: cn("flex items-center", logoClassName),
|
|
693
|
+
children: imgElement
|
|
694
|
+
}
|
|
695
|
+
);
|
|
696
|
+
}
|
|
697
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex items-center", logoClassName), children: imgElement });
|
|
698
|
+
};
|
|
658
699
|
function HeroAiPoweredCarousel({
|
|
659
700
|
sectionId = "hero-ai-powered-carousel",
|
|
660
701
|
badge,
|
|
@@ -677,7 +718,10 @@ function HeroAiPoweredCarousel({
|
|
|
677
718
|
headingClassName,
|
|
678
719
|
descriptionClassName,
|
|
679
720
|
actionsClassName,
|
|
680
|
-
optixFlowConfig
|
|
721
|
+
optixFlowConfig,
|
|
722
|
+
logo,
|
|
723
|
+
logoSlot,
|
|
724
|
+
logoClassName
|
|
681
725
|
}) {
|
|
682
726
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
683
727
|
Section,
|
|
@@ -711,26 +755,27 @@ function HeroAiPoweredCarousel({
|
|
|
711
755
|
]
|
|
712
756
|
}
|
|
713
757
|
),
|
|
758
|
+
(logo || logoSlot) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-8 flex justify-start", logoClassName), children: /* @__PURE__ */ jsxRuntime.jsx(BrandLogo, { logo, logoSlot, size: "md" }) }),
|
|
714
759
|
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
715
760
|
"h1",
|
|
716
761
|
{
|
|
717
762
|
className: cn(
|
|
718
|
-
"
|
|
763
|
+
"text-3xl font-semibold lg:text-5xl text-balance",
|
|
719
764
|
headingClassName
|
|
720
765
|
),
|
|
721
766
|
children: heading
|
|
722
767
|
}
|
|
723
|
-
) :
|
|
768
|
+
) : heading),
|
|
724
769
|
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
725
770
|
"p",
|
|
726
771
|
{
|
|
727
772
|
className: cn(
|
|
728
|
-
"mx-auto lg:text-lg text-balance",
|
|
773
|
+
"mx-auto text-base lg:text-lg text-balance",
|
|
729
774
|
descriptionClassName
|
|
730
775
|
),
|
|
731
776
|
children: description
|
|
732
777
|
}
|
|
733
|
-
) :
|
|
778
|
+
) : description),
|
|
734
779
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
735
780
|
BlockActions,
|
|
736
781
|
{
|
|
@@ -792,7 +837,8 @@ function HeroAiPoweredCarousel({
|
|
|
792
837
|
"rounded-lg shadow-lg",
|
|
793
838
|
image.className
|
|
794
839
|
),
|
|
795
|
-
optixFlowConfig
|
|
840
|
+
optixFlowConfig,
|
|
841
|
+
loading: "eager"
|
|
796
842
|
}
|
|
797
843
|
) }, index)) })
|
|
798
844
|
}
|
|
@@ -820,7 +866,8 @@ function HeroAiPoweredCarousel({
|
|
|
820
866
|
"rounded-lg shadow-lg",
|
|
821
867
|
image.className
|
|
822
868
|
),
|
|
823
|
-
optixFlowConfig
|
|
869
|
+
optixFlowConfig,
|
|
870
|
+
loading: "eager"
|
|
824
871
|
}
|
|
825
872
|
) }, index)) })
|
|
826
873
|
}
|
|
@@ -847,7 +894,8 @@ function HeroAiPoweredCarousel({
|
|
|
847
894
|
"rounded-lg shadow-lg",
|
|
848
895
|
image.className
|
|
849
896
|
),
|
|
850
|
-
optixFlowConfig
|
|
897
|
+
optixFlowConfig,
|
|
898
|
+
loading: "eager"
|
|
851
899
|
}
|
|
852
900
|
) }, index)) })
|
|
853
901
|
}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Cgd-IXlI.cjs';
|
|
3
|
+
import { L as LogoConfig } from './types-mWZcgKth.cjs';
|
|
3
4
|
import { A as ActionConfig, I as ImageItem, O as OptixFlowConfig } from './blocks-DyouPohq.cjs';
|
|
4
5
|
import 'react/jsx-runtime';
|
|
6
|
+
import './dynamic-icon.cjs';
|
|
7
|
+
import '@page-speed/icon';
|
|
5
8
|
import 'class-variance-authority';
|
|
6
9
|
import '@page-speed/pressable';
|
|
7
10
|
import '@opensite/hooks/usePlatformFromUrl';
|
|
@@ -91,9 +94,21 @@ interface HeroAiPoweredCarouselProps {
|
|
|
91
94
|
* OptixFlow image optimization configuration
|
|
92
95
|
*/
|
|
93
96
|
optixFlowConfig?: OptixFlowConfig;
|
|
97
|
+
/**
|
|
98
|
+
* Brand logo configuration. LOGO MEDIA ONLY — do not use photos or hero images.
|
|
99
|
+
*/
|
|
100
|
+
logo?: LogoConfig;
|
|
101
|
+
/**
|
|
102
|
+
* Custom slot for logo (overrides logo prop)
|
|
103
|
+
*/
|
|
104
|
+
logoSlot?: React.ReactNode;
|
|
105
|
+
/**
|
|
106
|
+
* Additional CSS classes for the logo container
|
|
107
|
+
*/
|
|
108
|
+
logoClassName?: string;
|
|
94
109
|
/** Optional Section ID */
|
|
95
110
|
sectionId?: string;
|
|
96
111
|
}
|
|
97
|
-
declare function HeroAiPoweredCarousel({ sectionId, badge, badgeTagline, heading, description, actions, actionsSlot, carouselImages1, carouselImages2, carouselSlot, background, spacing, containerClassName, pattern, patternOpacity, className, contentClassName, badgeClassName, headingClassName, descriptionClassName, actionsClassName, optixFlowConfig, }: HeroAiPoweredCarouselProps): React.JSX.Element;
|
|
112
|
+
declare function HeroAiPoweredCarousel({ sectionId, badge, badgeTagline, heading, description, actions, actionsSlot, carouselImages1, carouselImages2, carouselSlot, background, spacing, containerClassName, pattern, patternOpacity, className, contentClassName, badgeClassName, headingClassName, descriptionClassName, actionsClassName, optixFlowConfig, logo, logoSlot, logoClassName, }: HeroAiPoweredCarouselProps): React.JSX.Element;
|
|
98
113
|
|
|
99
114
|
export { HeroAiPoweredCarousel, type HeroAiPoweredCarouselProps };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Dud0DKXB.js';
|
|
3
|
+
import { L as LogoConfig } from './types-hJ2R0GoH.js';
|
|
3
4
|
import { A as ActionConfig, I as ImageItem, O as OptixFlowConfig } from './blocks-DyouPohq.js';
|
|
4
5
|
import 'react/jsx-runtime';
|
|
6
|
+
import './dynamic-icon.js';
|
|
7
|
+
import '@page-speed/icon';
|
|
5
8
|
import 'class-variance-authority';
|
|
6
9
|
import '@page-speed/pressable';
|
|
7
10
|
import '@opensite/hooks/usePlatformFromUrl';
|
|
@@ -91,9 +94,21 @@ interface HeroAiPoweredCarouselProps {
|
|
|
91
94
|
* OptixFlow image optimization configuration
|
|
92
95
|
*/
|
|
93
96
|
optixFlowConfig?: OptixFlowConfig;
|
|
97
|
+
/**
|
|
98
|
+
* Brand logo configuration. LOGO MEDIA ONLY — do not use photos or hero images.
|
|
99
|
+
*/
|
|
100
|
+
logo?: LogoConfig;
|
|
101
|
+
/**
|
|
102
|
+
* Custom slot for logo (overrides logo prop)
|
|
103
|
+
*/
|
|
104
|
+
logoSlot?: React.ReactNode;
|
|
105
|
+
/**
|
|
106
|
+
* Additional CSS classes for the logo container
|
|
107
|
+
*/
|
|
108
|
+
logoClassName?: string;
|
|
94
109
|
/** Optional Section ID */
|
|
95
110
|
sectionId?: string;
|
|
96
111
|
}
|
|
97
|
-
declare function HeroAiPoweredCarousel({ sectionId, badge, badgeTagline, heading, description, actions, actionsSlot, carouselImages1, carouselImages2, carouselSlot, background, spacing, containerClassName, pattern, patternOpacity, className, contentClassName, badgeClassName, headingClassName, descriptionClassName, actionsClassName, optixFlowConfig, }: HeroAiPoweredCarouselProps): React.JSX.Element;
|
|
112
|
+
declare function HeroAiPoweredCarousel({ sectionId, badge, badgeTagline, heading, description, actions, actionsSlot, carouselImages1, carouselImages2, carouselSlot, background, spacing, containerClassName, pattern, patternOpacity, className, contentClassName, badgeClassName, headingClassName, descriptionClassName, actionsClassName, optixFlowConfig, logo, logoSlot, logoClassName, }: HeroAiPoweredCarouselProps): React.JSX.Element;
|
|
98
113
|
|
|
99
114
|
export { HeroAiPoweredCarousel, type HeroAiPoweredCarouselProps };
|
|
@@ -630,6 +630,47 @@ function ActionComponent({ action }) {
|
|
|
630
630
|
}
|
|
631
631
|
);
|
|
632
632
|
}
|
|
633
|
+
var SIZE_CLASSES = {
|
|
634
|
+
sm: "max-h-6 sm:max-h-7",
|
|
635
|
+
md: "max-h-8 sm:max-h-9 lg:max-h-10",
|
|
636
|
+
lg: "max-h-10 sm:max-h-12 lg:max-h-14",
|
|
637
|
+
xl: "max-h-12 sm:max-h-14 lg:max-h-16"
|
|
638
|
+
};
|
|
639
|
+
var BrandLogo = ({
|
|
640
|
+
logo,
|
|
641
|
+
logoSlot,
|
|
642
|
+
logoClassName,
|
|
643
|
+
size = "md",
|
|
644
|
+
optixFlowConfig
|
|
645
|
+
}) => {
|
|
646
|
+
if (logoSlot) return /* @__PURE__ */ jsx(Fragment, { children: logoSlot });
|
|
647
|
+
if (!logo || !logo.src) return null;
|
|
648
|
+
const imgElement = /* @__PURE__ */ jsx(
|
|
649
|
+
Img,
|
|
650
|
+
{
|
|
651
|
+
src: logo.src,
|
|
652
|
+
className: cn(
|
|
653
|
+
"w-auto object-contain",
|
|
654
|
+
SIZE_CLASSES[size],
|
|
655
|
+
logo.className
|
|
656
|
+
),
|
|
657
|
+
alt: logo.alt || "Logo",
|
|
658
|
+
optixFlowConfig,
|
|
659
|
+
loading: "eager"
|
|
660
|
+
}
|
|
661
|
+
);
|
|
662
|
+
if (logo.url) {
|
|
663
|
+
return /* @__PURE__ */ jsx(
|
|
664
|
+
Pressable,
|
|
665
|
+
{
|
|
666
|
+
href: logo.url,
|
|
667
|
+
className: cn("flex items-center", logoClassName),
|
|
668
|
+
children: imgElement
|
|
669
|
+
}
|
|
670
|
+
);
|
|
671
|
+
}
|
|
672
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center", logoClassName), children: imgElement });
|
|
673
|
+
};
|
|
633
674
|
function HeroAiPoweredCarousel({
|
|
634
675
|
sectionId = "hero-ai-powered-carousel",
|
|
635
676
|
badge,
|
|
@@ -652,7 +693,10 @@ function HeroAiPoweredCarousel({
|
|
|
652
693
|
headingClassName,
|
|
653
694
|
descriptionClassName,
|
|
654
695
|
actionsClassName,
|
|
655
|
-
optixFlowConfig
|
|
696
|
+
optixFlowConfig,
|
|
697
|
+
logo,
|
|
698
|
+
logoSlot,
|
|
699
|
+
logoClassName
|
|
656
700
|
}) {
|
|
657
701
|
return /* @__PURE__ */ jsx(
|
|
658
702
|
Section,
|
|
@@ -686,26 +730,27 @@ function HeroAiPoweredCarousel({
|
|
|
686
730
|
]
|
|
687
731
|
}
|
|
688
732
|
),
|
|
733
|
+
(logo || logoSlot) && /* @__PURE__ */ jsx("div", { className: cn("mt-8 flex justify-start", logoClassName), children: /* @__PURE__ */ jsx(BrandLogo, { logo, logoSlot, size: "md" }) }),
|
|
689
734
|
heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
690
735
|
"h1",
|
|
691
736
|
{
|
|
692
737
|
className: cn(
|
|
693
|
-
"
|
|
738
|
+
"text-3xl font-semibold lg:text-5xl text-balance",
|
|
694
739
|
headingClassName
|
|
695
740
|
),
|
|
696
741
|
children: heading
|
|
697
742
|
}
|
|
698
|
-
) :
|
|
743
|
+
) : heading),
|
|
699
744
|
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
700
745
|
"p",
|
|
701
746
|
{
|
|
702
747
|
className: cn(
|
|
703
|
-
"mx-auto lg:text-lg text-balance",
|
|
748
|
+
"mx-auto text-base lg:text-lg text-balance",
|
|
704
749
|
descriptionClassName
|
|
705
750
|
),
|
|
706
751
|
children: description
|
|
707
752
|
}
|
|
708
|
-
) :
|
|
753
|
+
) : description),
|
|
709
754
|
/* @__PURE__ */ jsx(
|
|
710
755
|
BlockActions,
|
|
711
756
|
{
|
|
@@ -767,7 +812,8 @@ function HeroAiPoweredCarousel({
|
|
|
767
812
|
"rounded-lg shadow-lg",
|
|
768
813
|
image.className
|
|
769
814
|
),
|
|
770
|
-
optixFlowConfig
|
|
815
|
+
optixFlowConfig,
|
|
816
|
+
loading: "eager"
|
|
771
817
|
}
|
|
772
818
|
) }, index)) })
|
|
773
819
|
}
|
|
@@ -795,7 +841,8 @@ function HeroAiPoweredCarousel({
|
|
|
795
841
|
"rounded-lg shadow-lg",
|
|
796
842
|
image.className
|
|
797
843
|
),
|
|
798
|
-
optixFlowConfig
|
|
844
|
+
optixFlowConfig,
|
|
845
|
+
loading: "eager"
|
|
799
846
|
}
|
|
800
847
|
) }, index)) })
|
|
801
848
|
}
|
|
@@ -822,7 +869,8 @@ function HeroAiPoweredCarousel({
|
|
|
822
869
|
"rounded-lg shadow-lg",
|
|
823
870
|
image.className
|
|
824
871
|
),
|
|
825
|
-
optixFlowConfig
|
|
872
|
+
optixFlowConfig,
|
|
873
|
+
loading: "eager"
|
|
826
874
|
}
|
|
827
875
|
) }, index)) })
|
|
828
876
|
}
|
|
@@ -8,6 +8,7 @@ var classVarianceAuthority = require('class-variance-authority');
|
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
var React = require('react');
|
|
10
10
|
var pressable = require('@page-speed/pressable');
|
|
11
|
+
var img = require('@page-speed/img');
|
|
11
12
|
|
|
12
13
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
14
|
|
|
@@ -503,6 +504,47 @@ function ActionComponent({ action }) {
|
|
|
503
504
|
}
|
|
504
505
|
);
|
|
505
506
|
}
|
|
507
|
+
var SIZE_CLASSES = {
|
|
508
|
+
sm: "max-h-6 sm:max-h-7",
|
|
509
|
+
md: "max-h-8 sm:max-h-9 lg:max-h-10",
|
|
510
|
+
lg: "max-h-10 sm:max-h-12 lg:max-h-14",
|
|
511
|
+
xl: "max-h-12 sm:max-h-14 lg:max-h-16"
|
|
512
|
+
};
|
|
513
|
+
var BrandLogo = ({
|
|
514
|
+
logo,
|
|
515
|
+
logoSlot,
|
|
516
|
+
logoClassName,
|
|
517
|
+
size = "md",
|
|
518
|
+
optixFlowConfig
|
|
519
|
+
}) => {
|
|
520
|
+
if (logoSlot) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: logoSlot });
|
|
521
|
+
if (!logo || !logo.src) return null;
|
|
522
|
+
const imgElement = /* @__PURE__ */ jsxRuntime.jsx(
|
|
523
|
+
img.Img,
|
|
524
|
+
{
|
|
525
|
+
src: logo.src,
|
|
526
|
+
className: cn(
|
|
527
|
+
"w-auto object-contain",
|
|
528
|
+
SIZE_CLASSES[size],
|
|
529
|
+
logo.className
|
|
530
|
+
),
|
|
531
|
+
alt: logo.alt || "Logo",
|
|
532
|
+
optixFlowConfig,
|
|
533
|
+
loading: "eager"
|
|
534
|
+
}
|
|
535
|
+
);
|
|
536
|
+
if (logo.url) {
|
|
537
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
538
|
+
pressable.Pressable,
|
|
539
|
+
{
|
|
540
|
+
href: logo.url,
|
|
541
|
+
className: cn("flex items-center", logoClassName),
|
|
542
|
+
children: imgElement
|
|
543
|
+
}
|
|
544
|
+
);
|
|
545
|
+
}
|
|
546
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex items-center", logoClassName), children: imgElement });
|
|
547
|
+
};
|
|
506
548
|
function HeroAnnouncementBadge({
|
|
507
549
|
sectionId = "hero-announcement-badge",
|
|
508
550
|
badge,
|
|
@@ -520,7 +562,10 @@ function HeroAnnouncementBadge({
|
|
|
520
562
|
spacing = "pt-32 pb-16 md:pt-32 md:pb-32",
|
|
521
563
|
badgeClassName,
|
|
522
564
|
headingClassName,
|
|
523
|
-
descriptionClassName
|
|
565
|
+
descriptionClassName,
|
|
566
|
+
logo,
|
|
567
|
+
logoSlot,
|
|
568
|
+
logoClassName
|
|
524
569
|
}) {
|
|
525
570
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
526
571
|
Section,
|
|
@@ -545,6 +590,7 @@ function HeroAnnouncementBadge({
|
|
|
545
590
|
),
|
|
546
591
|
typeof badge === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate whitespace-nowrap pr-2", children: badge }) : badge
|
|
547
592
|
] }),
|
|
593
|
+
(logo || logoSlot) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-4 flex justify-center", logoClassName), children: /* @__PURE__ */ jsxRuntime.jsx(BrandLogo, { logo, logoSlot, size: "lg" }) }),
|
|
548
594
|
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
549
595
|
"h1",
|
|
550
596
|
{
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Cgd-IXlI.cjs';
|
|
3
|
+
import { L as LogoConfig } from './types-mWZcgKth.cjs';
|
|
3
4
|
import { A as ActionConfig } from './blocks-DyouPohq.cjs';
|
|
4
5
|
import 'react/jsx-runtime';
|
|
6
|
+
import './dynamic-icon.cjs';
|
|
7
|
+
import '@page-speed/icon';
|
|
5
8
|
import 'class-variance-authority';
|
|
6
9
|
import '@page-speed/pressable';
|
|
7
10
|
import '@opensite/hooks/usePlatformFromUrl';
|
|
@@ -71,9 +74,21 @@ interface HeroAnnouncementBadgeProps {
|
|
|
71
74
|
* Additional CSS classes for the actions container
|
|
72
75
|
*/
|
|
73
76
|
actionsClassName?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Brand logo configuration. LOGO MEDIA ONLY — do not use photos or hero images.
|
|
79
|
+
*/
|
|
80
|
+
logo?: LogoConfig;
|
|
81
|
+
/**
|
|
82
|
+
* Custom slot for logo (overrides logo prop)
|
|
83
|
+
*/
|
|
84
|
+
logoSlot?: React.ReactNode;
|
|
85
|
+
/**
|
|
86
|
+
* Additional CSS classes for the logo container
|
|
87
|
+
*/
|
|
88
|
+
logoClassName?: string;
|
|
74
89
|
/** Optional Section ID */
|
|
75
90
|
sectionId?: string;
|
|
76
91
|
}
|
|
77
|
-
declare function HeroAnnouncementBadge({ sectionId, badge, badgeIcon, heading, description, actions, actionsSlot, actionsClassName, background, pattern, patternOpacity, className, containerClassName, spacing, badgeClassName, headingClassName, descriptionClassName, }: HeroAnnouncementBadgeProps): React.JSX.Element;
|
|
92
|
+
declare function HeroAnnouncementBadge({ sectionId, badge, badgeIcon, heading, description, actions, actionsSlot, actionsClassName, background, pattern, patternOpacity, className, containerClassName, spacing, badgeClassName, headingClassName, descriptionClassName, logo, logoSlot, logoClassName, }: HeroAnnouncementBadgeProps): React.JSX.Element;
|
|
78
93
|
|
|
79
94
|
export { HeroAnnouncementBadge, type HeroAnnouncementBadgeProps };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Dud0DKXB.js';
|
|
3
|
+
import { L as LogoConfig } from './types-hJ2R0GoH.js';
|
|
3
4
|
import { A as ActionConfig } from './blocks-DyouPohq.js';
|
|
4
5
|
import 'react/jsx-runtime';
|
|
6
|
+
import './dynamic-icon.js';
|
|
7
|
+
import '@page-speed/icon';
|
|
5
8
|
import 'class-variance-authority';
|
|
6
9
|
import '@page-speed/pressable';
|
|
7
10
|
import '@opensite/hooks/usePlatformFromUrl';
|
|
@@ -71,9 +74,21 @@ interface HeroAnnouncementBadgeProps {
|
|
|
71
74
|
* Additional CSS classes for the actions container
|
|
72
75
|
*/
|
|
73
76
|
actionsClassName?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Brand logo configuration. LOGO MEDIA ONLY — do not use photos or hero images.
|
|
79
|
+
*/
|
|
80
|
+
logo?: LogoConfig;
|
|
81
|
+
/**
|
|
82
|
+
* Custom slot for logo (overrides logo prop)
|
|
83
|
+
*/
|
|
84
|
+
logoSlot?: React.ReactNode;
|
|
85
|
+
/**
|
|
86
|
+
* Additional CSS classes for the logo container
|
|
87
|
+
*/
|
|
88
|
+
logoClassName?: string;
|
|
74
89
|
/** Optional Section ID */
|
|
75
90
|
sectionId?: string;
|
|
76
91
|
}
|
|
77
|
-
declare function HeroAnnouncementBadge({ sectionId, badge, badgeIcon, heading, description, actions, actionsSlot, actionsClassName, background, pattern, patternOpacity, className, containerClassName, spacing, badgeClassName, headingClassName, descriptionClassName, }: HeroAnnouncementBadgeProps): React.JSX.Element;
|
|
92
|
+
declare function HeroAnnouncementBadge({ sectionId, badge, badgeIcon, heading, description, actions, actionsSlot, actionsClassName, background, pattern, patternOpacity, className, containerClassName, spacing, badgeClassName, headingClassName, descriptionClassName, logo, logoSlot, logoClassName, }: HeroAnnouncementBadgeProps): React.JSX.Element;
|
|
78
93
|
|
|
79
94
|
export { HeroAnnouncementBadge, type HeroAnnouncementBadgeProps };
|
|
@@ -6,6 +6,7 @@ import { cva } from 'class-variance-authority';
|
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { Pressable, buttonVariants } from '@page-speed/pressable';
|
|
9
|
+
import { Img } from '@page-speed/img';
|
|
9
10
|
|
|
10
11
|
// lib/utils.ts
|
|
11
12
|
function cn(...inputs) {
|
|
@@ -497,6 +498,47 @@ function ActionComponent({ action }) {
|
|
|
497
498
|
}
|
|
498
499
|
);
|
|
499
500
|
}
|
|
501
|
+
var SIZE_CLASSES = {
|
|
502
|
+
sm: "max-h-6 sm:max-h-7",
|
|
503
|
+
md: "max-h-8 sm:max-h-9 lg:max-h-10",
|
|
504
|
+
lg: "max-h-10 sm:max-h-12 lg:max-h-14",
|
|
505
|
+
xl: "max-h-12 sm:max-h-14 lg:max-h-16"
|
|
506
|
+
};
|
|
507
|
+
var BrandLogo = ({
|
|
508
|
+
logo,
|
|
509
|
+
logoSlot,
|
|
510
|
+
logoClassName,
|
|
511
|
+
size = "md",
|
|
512
|
+
optixFlowConfig
|
|
513
|
+
}) => {
|
|
514
|
+
if (logoSlot) return /* @__PURE__ */ jsx(Fragment, { children: logoSlot });
|
|
515
|
+
if (!logo || !logo.src) return null;
|
|
516
|
+
const imgElement = /* @__PURE__ */ jsx(
|
|
517
|
+
Img,
|
|
518
|
+
{
|
|
519
|
+
src: logo.src,
|
|
520
|
+
className: cn(
|
|
521
|
+
"w-auto object-contain",
|
|
522
|
+
SIZE_CLASSES[size],
|
|
523
|
+
logo.className
|
|
524
|
+
),
|
|
525
|
+
alt: logo.alt || "Logo",
|
|
526
|
+
optixFlowConfig,
|
|
527
|
+
loading: "eager"
|
|
528
|
+
}
|
|
529
|
+
);
|
|
530
|
+
if (logo.url) {
|
|
531
|
+
return /* @__PURE__ */ jsx(
|
|
532
|
+
Pressable,
|
|
533
|
+
{
|
|
534
|
+
href: logo.url,
|
|
535
|
+
className: cn("flex items-center", logoClassName),
|
|
536
|
+
children: imgElement
|
|
537
|
+
}
|
|
538
|
+
);
|
|
539
|
+
}
|
|
540
|
+
return /* @__PURE__ */ jsx("div", { className: cn("flex items-center", logoClassName), children: imgElement });
|
|
541
|
+
};
|
|
500
542
|
function HeroAnnouncementBadge({
|
|
501
543
|
sectionId = "hero-announcement-badge",
|
|
502
544
|
badge,
|
|
@@ -514,7 +556,10 @@ function HeroAnnouncementBadge({
|
|
|
514
556
|
spacing = "pt-32 pb-16 md:pt-32 md:pb-32",
|
|
515
557
|
badgeClassName,
|
|
516
558
|
headingClassName,
|
|
517
|
-
descriptionClassName
|
|
559
|
+
descriptionClassName,
|
|
560
|
+
logo,
|
|
561
|
+
logoSlot,
|
|
562
|
+
logoClassName
|
|
518
563
|
}) {
|
|
519
564
|
return /* @__PURE__ */ jsx(
|
|
520
565
|
Section,
|
|
@@ -539,6 +584,7 @@ function HeroAnnouncementBadge({
|
|
|
539
584
|
),
|
|
540
585
|
typeof badge === "string" ? /* @__PURE__ */ jsx("p", { className: "truncate whitespace-nowrap pr-2", children: badge }) : badge
|
|
541
586
|
] }),
|
|
587
|
+
(logo || logoSlot) && /* @__PURE__ */ jsx("div", { className: cn("mb-4 flex justify-center", logoClassName), children: /* @__PURE__ */ jsx(BrandLogo, { logo, logoSlot, size: "lg" }) }),
|
|
542
588
|
heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
543
589
|
"h1",
|
|
544
590
|
{
|
|
@@ -393,6 +393,47 @@ var Section = React__default.default.forwardRef(
|
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
395
|
Section.displayName = "Section";
|
|
396
|
+
var SIZE_CLASSES = {
|
|
397
|
+
sm: "max-h-6 sm:max-h-7",
|
|
398
|
+
md: "max-h-8 sm:max-h-9 lg:max-h-10",
|
|
399
|
+
lg: "max-h-10 sm:max-h-12 lg:max-h-14",
|
|
400
|
+
xl: "max-h-12 sm:max-h-14 lg:max-h-16"
|
|
401
|
+
};
|
|
402
|
+
var BrandLogo = ({
|
|
403
|
+
logo,
|
|
404
|
+
logoSlot,
|
|
405
|
+
logoClassName,
|
|
406
|
+
size = "md",
|
|
407
|
+
optixFlowConfig
|
|
408
|
+
}) => {
|
|
409
|
+
if (logoSlot) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: logoSlot });
|
|
410
|
+
if (!logo || !logo.src) return null;
|
|
411
|
+
const imgElement = /* @__PURE__ */ jsxRuntime.jsx(
|
|
412
|
+
img.Img,
|
|
413
|
+
{
|
|
414
|
+
src: logo.src,
|
|
415
|
+
className: cn(
|
|
416
|
+
"w-auto object-contain",
|
|
417
|
+
SIZE_CLASSES[size],
|
|
418
|
+
logo.className
|
|
419
|
+
),
|
|
420
|
+
alt: logo.alt || "Logo",
|
|
421
|
+
optixFlowConfig,
|
|
422
|
+
loading: "eager"
|
|
423
|
+
}
|
|
424
|
+
);
|
|
425
|
+
if (logo.url) {
|
|
426
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
427
|
+
pressable.Pressable,
|
|
428
|
+
{
|
|
429
|
+
href: logo.url,
|
|
430
|
+
className: cn("flex items-center", logoClassName),
|
|
431
|
+
children: imgElement
|
|
432
|
+
}
|
|
433
|
+
);
|
|
434
|
+
}
|
|
435
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex items-center", logoClassName), children: imgElement });
|
|
436
|
+
};
|
|
396
437
|
function HeroArchitectureFullscreen({
|
|
397
438
|
sectionId = "hero-architecture-fullscreen",
|
|
398
439
|
tagline,
|
|
@@ -410,7 +451,10 @@ function HeroArchitectureFullscreen({
|
|
|
410
451
|
taglineClassName,
|
|
411
452
|
headingClassName,
|
|
412
453
|
descriptionClassName,
|
|
413
|
-
optixFlowConfig
|
|
454
|
+
optixFlowConfig,
|
|
455
|
+
logo,
|
|
456
|
+
logoSlot,
|
|
457
|
+
logoClassName
|
|
414
458
|
}) {
|
|
415
459
|
const renderAction = React.useMemo(() => {
|
|
416
460
|
if (actionSlot) return actionSlot;
|
|
@@ -464,6 +508,7 @@ function HeroArchitectureFullscreen({
|
|
|
464
508
|
children: tagline
|
|
465
509
|
}
|
|
466
510
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: taglineClassName, children: tagline })),
|
|
511
|
+
(logo || logoSlot) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-4 flex justify-center", logoClassName), children: /* @__PURE__ */ jsxRuntime.jsx(BrandLogo, { logo, logoSlot, size: "xl" }) }),
|
|
467
512
|
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
468
513
|
react.motion.h1,
|
|
469
514
|
{
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Cgd-IXlI.cjs';
|
|
3
|
+
import { L as LogoConfig } from './types-mWZcgKth.cjs';
|
|
3
4
|
import { A as ActionConfig } from './blocks-DyouPohq.cjs';
|
|
4
5
|
import 'react/jsx-runtime';
|
|
6
|
+
import './dynamic-icon.cjs';
|
|
7
|
+
import '@page-speed/icon';
|
|
5
8
|
import 'class-variance-authority';
|
|
6
9
|
import '@page-speed/pressable';
|
|
7
10
|
import '@opensite/hooks/usePlatformFromUrl';
|
|
@@ -74,9 +77,21 @@ interface HeroArchitectureFullscreenProps {
|
|
|
74
77
|
apiKey: string;
|
|
75
78
|
compression?: number;
|
|
76
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Brand logo configuration. LOGO MEDIA ONLY — do not use photos or hero images.
|
|
82
|
+
*/
|
|
83
|
+
logo?: LogoConfig;
|
|
84
|
+
/**
|
|
85
|
+
* Custom slot for logo (overrides logo prop)
|
|
86
|
+
*/
|
|
87
|
+
logoSlot?: React.ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* Additional CSS classes for the logo container
|
|
90
|
+
*/
|
|
91
|
+
logoClassName?: string;
|
|
77
92
|
/** Optional Section ID */
|
|
78
93
|
sectionId?: string;
|
|
79
94
|
}
|
|
80
|
-
declare function HeroArchitectureFullscreen({ sectionId, tagline, heading, description, action, actionSlot, backgroundImage, background, spacing, pattern, patternOpacity, className, containerClassName, taglineClassName, headingClassName, descriptionClassName, optixFlowConfig, }: HeroArchitectureFullscreenProps): React.JSX.Element;
|
|
95
|
+
declare function HeroArchitectureFullscreen({ sectionId, tagline, heading, description, action, actionSlot, backgroundImage, background, spacing, pattern, patternOpacity, className, containerClassName, taglineClassName, headingClassName, descriptionClassName, optixFlowConfig, logo, logoSlot, logoClassName, }: HeroArchitectureFullscreenProps): React.JSX.Element;
|
|
81
96
|
|
|
82
97
|
export { HeroArchitectureFullscreen, type HeroArchitectureFullscreenProps };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { S as SectionBackground, s as SectionSpacing, t as PatternName } from './community-initiatives-Dud0DKXB.js';
|
|
3
|
+
import { L as LogoConfig } from './types-hJ2R0GoH.js';
|
|
3
4
|
import { A as ActionConfig } from './blocks-DyouPohq.js';
|
|
4
5
|
import 'react/jsx-runtime';
|
|
6
|
+
import './dynamic-icon.js';
|
|
7
|
+
import '@page-speed/icon';
|
|
5
8
|
import 'class-variance-authority';
|
|
6
9
|
import '@page-speed/pressable';
|
|
7
10
|
import '@opensite/hooks/usePlatformFromUrl';
|
|
@@ -74,9 +77,21 @@ interface HeroArchitectureFullscreenProps {
|
|
|
74
77
|
apiKey: string;
|
|
75
78
|
compression?: number;
|
|
76
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Brand logo configuration. LOGO MEDIA ONLY — do not use photos or hero images.
|
|
82
|
+
*/
|
|
83
|
+
logo?: LogoConfig;
|
|
84
|
+
/**
|
|
85
|
+
* Custom slot for logo (overrides logo prop)
|
|
86
|
+
*/
|
|
87
|
+
logoSlot?: React.ReactNode;
|
|
88
|
+
/**
|
|
89
|
+
* Additional CSS classes for the logo container
|
|
90
|
+
*/
|
|
91
|
+
logoClassName?: string;
|
|
77
92
|
/** Optional Section ID */
|
|
78
93
|
sectionId?: string;
|
|
79
94
|
}
|
|
80
|
-
declare function HeroArchitectureFullscreen({ sectionId, tagline, heading, description, action, actionSlot, backgroundImage, background, spacing, pattern, patternOpacity, className, containerClassName, taglineClassName, headingClassName, descriptionClassName, optixFlowConfig, }: HeroArchitectureFullscreenProps): React.JSX.Element;
|
|
95
|
+
declare function HeroArchitectureFullscreen({ sectionId, tagline, heading, description, action, actionSlot, backgroundImage, background, spacing, pattern, patternOpacity, className, containerClassName, taglineClassName, headingClassName, descriptionClassName, optixFlowConfig, logo, logoSlot, logoClassName, }: HeroArchitectureFullscreenProps): React.JSX.Element;
|
|
81
96
|
|
|
82
97
|
export { HeroArchitectureFullscreen, type HeroArchitectureFullscreenProps };
|