@opensite/ui 0.6.3 → 0.6.5
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/about-startup-team.cjs +2 -2
- package/dist/about-startup-team.js +2 -2
- package/dist/article-breadcrumb-social.cjs +434 -215
- package/dist/article-breadcrumb-social.d.cts +19 -1
- package/dist/article-breadcrumb-social.d.ts +19 -1
- package/dist/article-breadcrumb-social.js +434 -214
- package/dist/article-chapters-author.cjs +422 -204
- package/dist/article-chapters-author.d.cts +19 -1
- package/dist/article-chapters-author.d.ts +19 -1
- package/dist/article-chapters-author.js +422 -203
- package/dist/article-compact-toc.cjs +429 -73
- package/dist/article-compact-toc.d.cts +19 -1
- package/dist/article-compact-toc.d.ts +19 -1
- package/dist/article-compact-toc.js +430 -73
- package/dist/article-hero-prose.cjs +394 -347
- package/dist/article-hero-prose.d.cts +19 -1
- package/dist/article-hero-prose.d.ts +19 -1
- package/dist/article-hero-prose.js +396 -348
- package/dist/article-sidebar-sticky.cjs +398 -152
- package/dist/article-sidebar-sticky.d.cts +19 -1
- package/dist/article-sidebar-sticky.d.ts +19 -1
- package/dist/article-sidebar-sticky.js +400 -153
- package/dist/article-split-animated.cjs +422 -35
- package/dist/article-split-animated.d.cts +19 -1
- package/dist/article-split-animated.d.ts +19 -1
- package/dist/article-split-animated.js +423 -35
- package/dist/article-toc-sidebar.cjs +417 -356
- package/dist/article-toc-sidebar.d.cts +19 -1
- package/dist/article-toc-sidebar.d.ts +19 -1
- package/dist/article-toc-sidebar.js +417 -355
- package/dist/blog-cards-read-time.cjs +66 -27
- package/dist/blog-cards-read-time.js +66 -27
- package/dist/blog-cards-tagline-cta.cjs +64 -14
- package/dist/blog-cards-tagline-cta.js +64 -14
- package/dist/blog-carousel-apple.cjs +1255 -0
- package/dist/blog-carousel-apple.d.cts +113 -0
- package/dist/blog-carousel-apple.d.ts +113 -0
- package/dist/blog-carousel-apple.js +1234 -0
- package/dist/blog-category-overlay.cjs +77 -15
- package/dist/blog-category-overlay.js +77 -15
- package/dist/blog-featured-popular.cjs +72 -14
- package/dist/blog-featured-popular.js +72 -14
- package/dist/blog-filtered-results.cjs +122 -39
- package/dist/blog-filtered-results.js +122 -39
- package/dist/blog-grid-author-cards.cjs +40 -6
- package/dist/blog-grid-author-cards.js +40 -6
- package/dist/blog-grid-nine-posts.cjs +40 -6
- package/dist/blog-grid-nine-posts.js +40 -6
- package/dist/blog-horizontal-cards.cjs +34 -6
- package/dist/blog-horizontal-cards.js +34 -6
- package/dist/blog-horizontal-timeline.cjs +41 -12
- package/dist/blog-horizontal-timeline.js +41 -12
- package/dist/blog-masonry-featured.cjs +96 -52
- package/dist/blog-masonry-featured.js +96 -52
- package/dist/blog-related-articles.cjs +47 -9
- package/dist/blog-related-articles.js +47 -9
- package/dist/blog-tech-insights.cjs +78 -14
- package/dist/blog-tech-insights.js +78 -14
- package/dist/registry.cjs +1036 -687
- package/dist/registry.js +1036 -687
- package/package.json +1 -1
|
@@ -602,147 +602,379 @@ function AvatarFallback({
|
|
|
602
602
|
}
|
|
603
603
|
);
|
|
604
604
|
}
|
|
605
|
+
var maxWidthStyles = {
|
|
606
|
+
sm: "max-w-screen-sm",
|
|
607
|
+
md: "max-w-screen-md",
|
|
608
|
+
lg: "max-w-screen-lg",
|
|
609
|
+
xl: "max-w-7xl",
|
|
610
|
+
"2xl": "max-w-screen-2xl",
|
|
611
|
+
"4xl": "max-w-[1536px]",
|
|
612
|
+
full: "max-w-full"
|
|
613
|
+
};
|
|
614
|
+
var Container = React__namespace.default.forwardRef(
|
|
615
|
+
({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
|
|
616
|
+
const Component = as;
|
|
617
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
618
|
+
Component,
|
|
619
|
+
{
|
|
620
|
+
ref,
|
|
621
|
+
className: cn(
|
|
622
|
+
"mx-auto w-full px-2 sm:px-4 lg:px-8",
|
|
623
|
+
maxWidthStyles[maxWidth],
|
|
624
|
+
className
|
|
625
|
+
),
|
|
626
|
+
...props,
|
|
627
|
+
children
|
|
628
|
+
}
|
|
629
|
+
);
|
|
630
|
+
}
|
|
631
|
+
);
|
|
632
|
+
Container.displayName = "Container";
|
|
605
633
|
|
|
606
|
-
// lib/
|
|
607
|
-
var
|
|
608
|
-
"https://
|
|
609
|
-
"https://
|
|
610
|
-
"https://
|
|
611
|
-
"https://
|
|
612
|
-
"https://
|
|
613
|
-
"https://
|
|
614
|
-
"https://
|
|
615
|
-
"https://
|
|
616
|
-
"https://
|
|
617
|
-
"https://
|
|
618
|
-
"https://
|
|
619
|
-
"https://
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
"
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
"
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
"
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
"
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
634
|
+
// lib/patternSvgs.ts
|
|
635
|
+
var patternSvgs = {
|
|
636
|
+
squareAltGrid: "https://cdn.ing/assets/files/record/286187/4gpn0yq2ptra8iwlvmwwv860ggwv",
|
|
637
|
+
grid1: "https://cdn.ing/assets/files/record/286186/nbdflpgp4ostrno079hygibsflp3",
|
|
638
|
+
noise: "https://cdn.ing/assets/i/r/286188/zrqcp9hynh3j7p2laihwzfbujgrl/noise.png",
|
|
639
|
+
dots: "https://cdn.ing/assets/files/record/286198/yfsjx9thvtxzhl2qtshxyhkrm524",
|
|
640
|
+
dotPattern: "https://cdn.ing/assets/files/record/286192/7ig0cku8aqbboiza8nuk6hw0nnsr",
|
|
641
|
+
dotPattern2: "https://cdn.ing/assets/files/record/286189/arez6gd2s7isn9i1o6c7sexdq7bl",
|
|
642
|
+
circles: "https://cdn.ing/assets/files/record/286190/gtmia3sncjtzetdshc20zf1d3c17",
|
|
643
|
+
waves: "https://cdn.ing/assets/files/record/286191/mqlb33fzxz9cdth1bx7if0wmpkp1",
|
|
644
|
+
crossPattern: "https://cdn.ing/assets/files/record/286193/9yfqwdbnqaipbp7fsb3wbzzmq472",
|
|
645
|
+
architect: "https://cdn.ing/assets/files/record/286194/vgs88ugpvyhxu13wqgy0acvae6re",
|
|
646
|
+
tinyCheckers: "https://cdn.ing/assets/files/record/286195/65efaknsw8kcpf9o3c2gybytsl5b",
|
|
647
|
+
p6: "https://cdn.ing/assets/i/r/286196/6kl0rqnd6mjk8j7e525fo8fo0vkc/p6.webp"
|
|
648
|
+
};
|
|
649
|
+
var maskTop = "radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%)";
|
|
650
|
+
var maskBottom = "radial-gradient(ellipse 100% 80% at 50% 100%, #000 50%, transparent 90%)";
|
|
651
|
+
var maskCenter = "radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%)";
|
|
652
|
+
var maskTopLeft = "radial-gradient(ellipse 80% 80% at 0% 0%, #000 50%, transparent 90%)";
|
|
653
|
+
var maskTopRight = "radial-gradient(ellipse 80% 80% at 100% 0%, #000 50%, transparent 90%)";
|
|
654
|
+
var maskBottomLeft = "radial-gradient(ellipse 80% 80% at 0% 100%, #000 50%, transparent 90%)";
|
|
655
|
+
var maskBottomRight = "radial-gradient(ellipse 80% 80% at 100% 100%, #000 50%, transparent 90%)";
|
|
656
|
+
var circuitBoardPattern = (id, mask) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
657
|
+
"svg",
|
|
658
|
+
{
|
|
659
|
+
className: "h-full w-full",
|
|
660
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
661
|
+
style: mask ? {
|
|
662
|
+
maskImage: mask,
|
|
663
|
+
WebkitMaskImage: mask
|
|
664
|
+
} : void 0,
|
|
665
|
+
children: [
|
|
666
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
667
|
+
"pattern",
|
|
668
|
+
{
|
|
669
|
+
id,
|
|
670
|
+
x: "0",
|
|
671
|
+
y: "0",
|
|
672
|
+
width: "100",
|
|
673
|
+
height: "100",
|
|
674
|
+
patternUnits: "userSpaceOnUse",
|
|
675
|
+
children: [
|
|
676
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
677
|
+
"path",
|
|
678
|
+
{
|
|
679
|
+
d: "M0 50h40M60 50h40M50 0v40M50 60v40",
|
|
680
|
+
stroke: "hsl(var(--muted))",
|
|
681
|
+
strokeWidth: "1",
|
|
682
|
+
fill: "none"
|
|
683
|
+
}
|
|
684
|
+
),
|
|
685
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "50", r: "3", fill: "hsl(var(--muted))" }),
|
|
686
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "0", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
687
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "100", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
688
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "0", r: "2", fill: "hsl(var(--muted))" }),
|
|
689
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "100", r: "2", fill: "hsl(var(--muted))" })
|
|
690
|
+
]
|
|
691
|
+
}
|
|
692
|
+
) }),
|
|
693
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
694
|
+
]
|
|
695
|
+
}
|
|
696
|
+
);
|
|
697
|
+
var gridDotsPattern = (id, mask) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
698
|
+
"svg",
|
|
699
|
+
{
|
|
700
|
+
className: "h-full w-full",
|
|
701
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
702
|
+
style: mask ? {
|
|
703
|
+
maskImage: mask,
|
|
704
|
+
WebkitMaskImage: mask
|
|
705
|
+
} : void 0,
|
|
706
|
+
children: [
|
|
707
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
708
|
+
"pattern",
|
|
709
|
+
{
|
|
710
|
+
id,
|
|
711
|
+
x: "0",
|
|
712
|
+
y: "0",
|
|
713
|
+
width: "40",
|
|
714
|
+
height: "40",
|
|
715
|
+
patternUnits: "userSpaceOnUse",
|
|
716
|
+
children: [
|
|
717
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
718
|
+
"path",
|
|
719
|
+
{
|
|
720
|
+
d: "M0 20h40M20 0v40",
|
|
721
|
+
stroke: "hsl(var(--muted))",
|
|
722
|
+
strokeWidth: "0.5",
|
|
723
|
+
fill: "none"
|
|
724
|
+
}
|
|
725
|
+
),
|
|
726
|
+
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "20", cy: "20", r: "2", fill: "hsl(var(--muted))" })
|
|
727
|
+
]
|
|
728
|
+
}
|
|
729
|
+
) }),
|
|
730
|
+
/* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
731
|
+
]
|
|
732
|
+
}
|
|
733
|
+
);
|
|
734
|
+
var gridPattern = (size, mask) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
735
|
+
"div",
|
|
736
|
+
{
|
|
737
|
+
className: "h-full w-full bg-[linear-gradient(to_right,_hsl(var(--muted))_1px,_transparent_1px),linear-gradient(to_bottom,_hsl(var(--muted))_1px,_transparent_1px)]",
|
|
738
|
+
style: {
|
|
739
|
+
backgroundSize: `${size}px ${size}px`,
|
|
740
|
+
...mask ? {
|
|
741
|
+
maskImage: mask,
|
|
742
|
+
WebkitMaskImage: mask
|
|
743
|
+
} : {}
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
);
|
|
747
|
+
var diagonalCrossPattern = (mask) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
748
|
+
"div",
|
|
749
|
+
{
|
|
750
|
+
className: "h-full w-full",
|
|
751
|
+
style: {
|
|
752
|
+
backgroundImage: "repeating-linear-gradient(45deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px), repeating-linear-gradient(135deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px)",
|
|
753
|
+
...mask ? {
|
|
754
|
+
maskImage: mask,
|
|
755
|
+
WebkitMaskImage: mask
|
|
756
|
+
} : {}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
);
|
|
760
|
+
var dashedGridMaskBase = "repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px), repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px)";
|
|
761
|
+
var dashedGridPattern = (fadeMask) => {
|
|
762
|
+
const mask = fadeMask ? `${dashedGridMaskBase}, ${fadeMask}` : dashedGridMaskBase;
|
|
763
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
764
|
+
"div",
|
|
736
765
|
{
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
766
|
+
className: "h-full w-full",
|
|
767
|
+
style: {
|
|
768
|
+
backgroundImage: "linear-gradient(to right, hsl(var(--muted)) 1px, transparent 1px), linear-gradient(to bottom, hsl(var(--muted)) 1px, transparent 1px)",
|
|
769
|
+
backgroundSize: "20px 20px",
|
|
770
|
+
backgroundPosition: "0 0, 0 0",
|
|
771
|
+
maskImage: mask,
|
|
772
|
+
WebkitMaskImage: mask,
|
|
773
|
+
maskComposite: "intersect",
|
|
774
|
+
WebkitMaskComposite: "source-in"
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
);
|
|
778
|
+
};
|
|
779
|
+
var gradientGlow = (position) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
780
|
+
"div",
|
|
781
|
+
{
|
|
782
|
+
className: cn(
|
|
783
|
+
"pointer-events-none absolute left-1/2 z-0 aspect-square w-3/4 -translate-x-1/2 rounded-full opacity-50 blur-3xl",
|
|
784
|
+
position === "top" ? "-top-1/4" : "-bottom-1/4"
|
|
785
|
+
),
|
|
786
|
+
style: {
|
|
787
|
+
background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
);
|
|
791
|
+
var spotlight = (position) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
792
|
+
"div",
|
|
793
|
+
{
|
|
794
|
+
className: cn(
|
|
795
|
+
"pointer-events-none absolute top-1/2 z-0 aspect-square w-3/4 -translate-y-1/2 rounded-full opacity-40 blur-3xl",
|
|
796
|
+
position === "left" ? "-left-1/4" : "-right-1/4"
|
|
797
|
+
),
|
|
798
|
+
style: {
|
|
799
|
+
background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
|
|
741
800
|
}
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
801
|
+
}
|
|
802
|
+
);
|
|
803
|
+
var patternOverlays = {
|
|
804
|
+
circuitBoardBasic: () => circuitBoardPattern("circuit-board-basic"),
|
|
805
|
+
circuitBoardFadeTop: () => circuitBoardPattern("circuit-board-fade-top", maskTop),
|
|
806
|
+
circuitBoardFadeBottom: () => circuitBoardPattern("circuit-board-fade-bottom", maskBottom),
|
|
807
|
+
circuitBoardFadeCenter: () => circuitBoardPattern("circuit-board-fade-center", maskCenter),
|
|
808
|
+
circuitBoardFadeTopLeft: () => circuitBoardPattern("circuit-board-fade-top-left", maskTopLeft),
|
|
809
|
+
circuitBoardFadeTopRight: () => circuitBoardPattern("circuit-board-fade-top-right", maskTopRight),
|
|
810
|
+
circuitBoardFadeBottomLeft: () => circuitBoardPattern("circuit-board-fade-bottom-left", maskBottomLeft),
|
|
811
|
+
circuitBoardFadeBottomRight: () => circuitBoardPattern("circuit-board-fade-bottom-right", maskBottomRight),
|
|
812
|
+
dashedGridBasic: () => dashedGridPattern(),
|
|
813
|
+
dashedGridFadeTop: () => dashedGridPattern(maskTop),
|
|
814
|
+
dashedGridFadeBottom: () => dashedGridPattern(maskBottom),
|
|
815
|
+
dashedGridFadeCenter: () => dashedGridPattern(maskCenter),
|
|
816
|
+
dashedGridFadeTopLeft: () => dashedGridPattern(maskTopLeft),
|
|
817
|
+
dashedGridFadeTopRight: () => dashedGridPattern(maskTopRight),
|
|
818
|
+
dashedGridFadeBottomLeft: () => dashedGridPattern(maskBottomLeft),
|
|
819
|
+
dashedGridFadeBottomRight: () => dashedGridPattern(maskBottomRight),
|
|
820
|
+
diagonalCrossBasic: () => diagonalCrossPattern(),
|
|
821
|
+
diagonalCrossFadeTop: () => diagonalCrossPattern(maskTop),
|
|
822
|
+
diagonalCrossFadeBottom: () => diagonalCrossPattern(maskBottom),
|
|
823
|
+
diagonalCrossFadeCenter: () => diagonalCrossPattern(maskCenter),
|
|
824
|
+
diagonalCrossFadeTopLeft: () => diagonalCrossPattern(maskTopLeft),
|
|
825
|
+
diagonalCrossFadeTopRight: () => diagonalCrossPattern(maskTopRight),
|
|
826
|
+
diagonalCrossFadeBottomLeft: () => diagonalCrossPattern(maskBottomLeft),
|
|
827
|
+
diagonalCrossFadeBottomRight: () => diagonalCrossPattern(maskBottomRight),
|
|
828
|
+
gridBasic: () => gridPattern(40),
|
|
829
|
+
gridFadeTop: () => gridPattern(32, maskTop),
|
|
830
|
+
gridFadeBottom: () => gridPattern(32, maskBottom),
|
|
831
|
+
gridFadeCenter: () => gridPattern(40, maskCenter),
|
|
832
|
+
gridFadeTopLeft: () => gridPattern(32, maskTopLeft),
|
|
833
|
+
gridFadeTopRight: () => gridPattern(32, maskTopRight),
|
|
834
|
+
gridFadeBottomLeft: () => gridPattern(32, maskBottomLeft),
|
|
835
|
+
gridFadeBottomRight: () => gridPattern(32, maskBottomRight),
|
|
836
|
+
gridDotsBasic: () => gridDotsPattern("grid-dots-basic"),
|
|
837
|
+
gridDotsFadeCenter: () => gridDotsPattern("grid-dots-fade-center", maskCenter),
|
|
838
|
+
gradientGlowTop: () => gradientGlow("top"),
|
|
839
|
+
gradientGlowBottom: () => gradientGlow("bottom"),
|
|
840
|
+
spotlightLeft: () => spotlight("left"),
|
|
841
|
+
spotlightRight: () => spotlight("right")
|
|
842
|
+
};
|
|
843
|
+
var inlinePatternStyles = {
|
|
844
|
+
radialGradientTop: {
|
|
845
|
+
background: "radial-gradient(125% 125% at 50% 10%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
846
|
+
},
|
|
847
|
+
radialGradientBottom: {
|
|
848
|
+
background: "radial-gradient(125% 125% at 50% 90%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
849
|
+
}
|
|
850
|
+
};
|
|
851
|
+
function PatternBackground({
|
|
852
|
+
pattern,
|
|
853
|
+
opacity = 0.08,
|
|
854
|
+
className,
|
|
855
|
+
style
|
|
856
|
+
}) {
|
|
857
|
+
if (!pattern) {
|
|
858
|
+
return null;
|
|
859
|
+
}
|
|
860
|
+
if (pattern in inlinePatternStyles) {
|
|
861
|
+
const inlineStyle = inlinePatternStyles[pattern];
|
|
862
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
863
|
+
"div",
|
|
864
|
+
{
|
|
865
|
+
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
866
|
+
style: { ...inlineStyle, opacity, ...style },
|
|
867
|
+
"aria-hidden": "true"
|
|
868
|
+
}
|
|
869
|
+
);
|
|
870
|
+
}
|
|
871
|
+
if (pattern in patternOverlays) {
|
|
872
|
+
const Overlay = patternOverlays[pattern];
|
|
873
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
874
|
+
"div",
|
|
875
|
+
{
|
|
876
|
+
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
877
|
+
style: { opacity, ...style },
|
|
878
|
+
"aria-hidden": "true",
|
|
879
|
+
children: Overlay()
|
|
880
|
+
}
|
|
881
|
+
);
|
|
882
|
+
}
|
|
883
|
+
const patternUrl = pattern in patternSvgs ? patternSvgs[pattern] : pattern;
|
|
884
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
885
|
+
"div",
|
|
886
|
+
{
|
|
887
|
+
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
888
|
+
style: {
|
|
889
|
+
backgroundImage: `url(${patternUrl})`,
|
|
890
|
+
backgroundRepeat: "repeat",
|
|
891
|
+
backgroundSize: "auto",
|
|
892
|
+
opacity,
|
|
893
|
+
...style
|
|
894
|
+
},
|
|
895
|
+
"aria-hidden": "true"
|
|
896
|
+
}
|
|
897
|
+
);
|
|
898
|
+
}
|
|
899
|
+
var backgroundStyles = {
|
|
900
|
+
default: "bg-background text-foreground",
|
|
901
|
+
white: "bg-white text-dark",
|
|
902
|
+
gray: "bg-muted/30 text-foreground",
|
|
903
|
+
dark: "bg-foreground text-background",
|
|
904
|
+
transparent: "bg-transparent text-foreground",
|
|
905
|
+
gradient: "bg-linear-to-br from-primary via-primary/90 to-foreground text-primary-foreground",
|
|
906
|
+
primary: "bg-primary text-primary-foreground",
|
|
907
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
908
|
+
muted: "bg-muted text-muted-foreground"
|
|
909
|
+
};
|
|
910
|
+
var spacingStyles = {
|
|
911
|
+
none: "py-0 md:py-0",
|
|
912
|
+
sm: "py-12 md:py-16",
|
|
913
|
+
md: "py-16 md:py-24",
|
|
914
|
+
lg: "py-20 md:py-32",
|
|
915
|
+
xl: "py-24 md:py-40"
|
|
916
|
+
};
|
|
917
|
+
var Section = React__namespace.default.forwardRef(
|
|
918
|
+
({
|
|
919
|
+
id,
|
|
920
|
+
title,
|
|
921
|
+
subtitle,
|
|
922
|
+
children,
|
|
923
|
+
className,
|
|
924
|
+
style,
|
|
925
|
+
background = "default",
|
|
926
|
+
spacing = "lg",
|
|
927
|
+
pattern,
|
|
928
|
+
patternOpacity,
|
|
929
|
+
patternClassName,
|
|
930
|
+
containerClassName,
|
|
931
|
+
containerMaxWidth = "xl",
|
|
932
|
+
...props
|
|
933
|
+
}, ref) => {
|
|
934
|
+
const effectivePatternOpacity = patternOpacity !== void 0 ? patternOpacity : pattern ? 1 : 0;
|
|
935
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
936
|
+
"section",
|
|
937
|
+
{
|
|
938
|
+
ref,
|
|
939
|
+
id,
|
|
940
|
+
className: cn(
|
|
941
|
+
"relative",
|
|
942
|
+
pattern ? "overflow-hidden" : null,
|
|
943
|
+
backgroundStyles[background],
|
|
944
|
+
spacingStyles[spacing],
|
|
945
|
+
className
|
|
946
|
+
),
|
|
947
|
+
style,
|
|
948
|
+
...props,
|
|
949
|
+
children: [
|
|
950
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
951
|
+
PatternBackground,
|
|
952
|
+
{
|
|
953
|
+
pattern,
|
|
954
|
+
opacity: effectivePatternOpacity,
|
|
955
|
+
className: patternClassName
|
|
956
|
+
}
|
|
957
|
+
),
|
|
958
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
959
|
+
Container,
|
|
960
|
+
{
|
|
961
|
+
maxWidth: containerMaxWidth,
|
|
962
|
+
className: cn("relative z-10", containerClassName),
|
|
963
|
+
children: [
|
|
964
|
+
(title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-12 text-center md:mb-16", children: [
|
|
965
|
+
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-sm font-semibold uppercase tracking-wider text-primary", children: subtitle }),
|
|
966
|
+
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl", children: title })
|
|
967
|
+
] }),
|
|
968
|
+
children
|
|
969
|
+
]
|
|
970
|
+
}
|
|
971
|
+
)
|
|
972
|
+
]
|
|
973
|
+
}
|
|
974
|
+
);
|
|
975
|
+
}
|
|
976
|
+
);
|
|
977
|
+
Section.displayName = "Section";
|
|
746
978
|
function ArticleSidebarStickyComponent({
|
|
747
979
|
className,
|
|
748
980
|
containerClassName,
|
|
@@ -766,7 +998,11 @@ function ArticleSidebarStickyComponent({
|
|
|
766
998
|
heroImageAlt,
|
|
767
999
|
heroMediaSlot,
|
|
768
1000
|
children,
|
|
769
|
-
optixFlowConfig
|
|
1001
|
+
optixFlowConfig,
|
|
1002
|
+
background,
|
|
1003
|
+
spacing,
|
|
1004
|
+
pattern,
|
|
1005
|
+
patternOpacity
|
|
770
1006
|
}) {
|
|
771
1007
|
const backLinkContent = React__namespace.useMemo(() => {
|
|
772
1008
|
if (backLinkSlot) return backLinkSlot;
|
|
@@ -811,19 +1047,29 @@ function ArticleSidebarStickyComponent({
|
|
|
811
1047
|
}
|
|
812
1048
|
);
|
|
813
1049
|
}, [heroMediaSlot, heroImageSrc, heroImageAlt, heroImageClassName, optixFlowConfig]);
|
|
814
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
1050
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1051
|
+
Section,
|
|
1052
|
+
{
|
|
1053
|
+
background,
|
|
1054
|
+
spacing,
|
|
1055
|
+
pattern,
|
|
1056
|
+
patternOpacity,
|
|
1057
|
+
className,
|
|
1058
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("container", containerClassName), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-10 lg:grid-cols-[1fr_minmax(0,2fr)]", children: [
|
|
1059
|
+
/* @__PURE__ */ jsxRuntime.jsx("aside", { className: cn("hidden lg:block", sidebarClassName), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "sticky top-8 space-y-6", children: [
|
|
1060
|
+
backLinkContent,
|
|
1061
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "space-y-4", children: renderAuthor(false) })
|
|
1062
|
+
] }) }),
|
|
1063
|
+
/* @__PURE__ */ jsxRuntime.jsxs("article", { className: cn("prose max-w-none dark:prose-invert", articleClassName), children: [
|
|
1064
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mb-8 lg:hidden", children: backLinkContent }),
|
|
1065
|
+
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h1", { className: cn("text-4xl font-bold tracking-tight md:text-5xl", titleClassName), children: title }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: titleClassName, children: title })),
|
|
1066
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "mt-4 lg:hidden", children: renderAuthor(true) }),
|
|
1067
|
+
heroMediaContent,
|
|
1068
|
+
children
|
|
1069
|
+
] })
|
|
1070
|
+
] }) })
|
|
1071
|
+
}
|
|
1072
|
+
);
|
|
827
1073
|
}
|
|
828
1074
|
|
|
829
1075
|
exports.ArticleSidebarSticky = ArticleSidebarStickyComponent;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { f as SectionBackground, g as SectionSpacing } from './community-initiatives-CODGexkN.cjs';
|
|
4
|
+
import { P as PatternName } from './pattern-background-a7gKHzHy.cjs';
|
|
3
5
|
import { O as OptixFlowConfig } from './blocks-Cohq4eio.cjs';
|
|
4
6
|
import 'class-variance-authority';
|
|
5
7
|
import './button-variants-lRElsmTc.cjs';
|
|
@@ -98,7 +100,23 @@ interface ArticleSidebarStickyProps {
|
|
|
98
100
|
* OptixFlow image optimization configuration
|
|
99
101
|
*/
|
|
100
102
|
optixFlowConfig?: OptixFlowConfig;
|
|
103
|
+
/**
|
|
104
|
+
* Background style for the section
|
|
105
|
+
*/
|
|
106
|
+
background?: SectionBackground;
|
|
107
|
+
/**
|
|
108
|
+
* Vertical spacing for the section
|
|
109
|
+
*/
|
|
110
|
+
spacing?: SectionSpacing;
|
|
111
|
+
/**
|
|
112
|
+
* Background pattern
|
|
113
|
+
*/
|
|
114
|
+
pattern?: PatternName;
|
|
115
|
+
/**
|
|
116
|
+
* Pattern opacity (0-1)
|
|
117
|
+
*/
|
|
118
|
+
patternOpacity?: number;
|
|
101
119
|
}
|
|
102
|
-
declare function ArticleSidebarStickyComponent({ className, containerClassName, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, children, optixFlowConfig, }: ArticleSidebarStickyProps): react_jsx_runtime.JSX.Element;
|
|
120
|
+
declare function ArticleSidebarStickyComponent({ className, containerClassName, sidebarClassName, articleClassName, titleClassName, authorClassName, heroImageClassName, backLinkClassName, backHref, backText, backIcon, backLinkSlot, title, authorName, authorImage, authorHref, publishDate, authorSlot, heroImageSrc, heroImageAlt, heroMediaSlot, children, optixFlowConfig, background, spacing, pattern, patternOpacity, }: ArticleSidebarStickyProps): react_jsx_runtime.JSX.Element;
|
|
103
121
|
|
|
104
122
|
export { ArticleSidebarStickyComponent as ArticleSidebarSticky, type ArticleSidebarStickyProps };
|