@opensite/ui 2.3.6 → 2.3.8
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-split-hero.cjs +1 -1
- package/dist/about-split-hero.js +1 -1
- package/dist/about-story-gallery.cjs +68 -9
- package/dist/about-story-gallery.js +69 -10
- package/dist/about-streamline-team.cjs +690 -708
- package/dist/about-streamline-team.js +689 -707
- package/dist/about-vision-gallery.cjs +13 -79
- package/dist/about-vision-gallery.d.cts +1 -9
- package/dist/about-vision-gallery.d.ts +1 -9
- package/dist/about-vision-gallery.js +13 -79
- package/dist/community-initiatives.cjs +827 -865
- package/dist/community-initiatives.js +826 -864
- package/dist/components.cjs +46 -122
- package/dist/components.js +46 -122
- package/dist/index.cjs +46 -92
- package/dist/index.js +46 -92
- package/dist/registry.cjs +175 -198
- package/dist/registry.js +175 -198
- package/package.json +1 -1
package/dist/registry.js
CHANGED
|
@@ -15,6 +15,7 @@ import { Form, useForm, Field } from '@page-speed/forms';
|
|
|
15
15
|
import { useFileUpload, useContactForm, DynamicFormField, submitPageSpeedForm, PageSpeedFormSubmissionError, isValidEmail, FormEngine } from '@page-speed/forms/integration';
|
|
16
16
|
import { AnimatePresence, motion, useMotionValue, useMotionTemplate, useSpring, useTransform, useInView, useScroll, useMotionValueEvent } from 'framer-motion';
|
|
17
17
|
import { TextInput as TextInput$1 } from '@page-speed/forms/inputs';
|
|
18
|
+
import { Lightbox } from '@page-speed/lightbox';
|
|
18
19
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
19
20
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
20
21
|
import useEmblaCarousel from 'embla-carousel-react';
|
|
@@ -22,7 +23,6 @@ import Autoplay from 'embla-carousel-autoplay';
|
|
|
22
23
|
import * as ProgressPrimitive from '@radix-ui/react-progress';
|
|
23
24
|
import * as AvatarPrimitive from '@radix-ui/react-avatar';
|
|
24
25
|
import AutoScroll3 from 'embla-carousel-auto-scroll';
|
|
25
|
-
import { Lightbox } from '@page-speed/lightbox';
|
|
26
26
|
import * as AspectRatioPrimitive from '@radix-ui/react-aspect-ratio';
|
|
27
27
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
28
28
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
@@ -1691,8 +1691,6 @@ function AboutVisionGallery({
|
|
|
1691
1691
|
secondarySectionTitleClassName,
|
|
1692
1692
|
secondarySectionContent,
|
|
1693
1693
|
secondarySectionContentClassName,
|
|
1694
|
-
secondarySectionLinkText,
|
|
1695
|
-
secondarySectionLinkUrl,
|
|
1696
1694
|
ctaTitle,
|
|
1697
1695
|
ctaTitleClassName,
|
|
1698
1696
|
ctaAction,
|
|
@@ -1744,7 +1742,7 @@ function AboutVisionGallery({
|
|
|
1744
1742
|
);
|
|
1745
1743
|
}, [ctaSlot, ctaAction]);
|
|
1746
1744
|
const hasPrimarySection = primarySectionTitle || primarySectionContent;
|
|
1747
|
-
const hasSecondarySection = secondarySectionTitle || secondarySectionContent
|
|
1745
|
+
const hasSecondarySection = secondarySectionTitle || secondarySectionContent;
|
|
1748
1746
|
const hasCtaSection = ctaTitle || ctaSlot || ctaAction;
|
|
1749
1747
|
return /* @__PURE__ */ jsxs(
|
|
1750
1748
|
Section,
|
|
@@ -1772,7 +1770,6 @@ function AboutVisionGallery({
|
|
|
1772
1770
|
{
|
|
1773
1771
|
className: cn(
|
|
1774
1772
|
"text-xl font-medium text-balance",
|
|
1775
|
-
getTextColor(background, "muted"),
|
|
1776
1773
|
subtitleClassName
|
|
1777
1774
|
),
|
|
1778
1775
|
children: subtitle
|
|
@@ -1780,7 +1777,7 @@ function AboutVisionGallery({
|
|
|
1780
1777
|
) : /* @__PURE__ */ jsx("div", { className: subtitleClassName, children: subtitle }))
|
|
1781
1778
|
] }),
|
|
1782
1779
|
imagesContent,
|
|
1783
|
-
(hasPrimarySection || hasSecondarySection) && /* @__PURE__ */ jsxs("div", { className: "
|
|
1780
|
+
(hasPrimarySection || hasSecondarySection) && /* @__PURE__ */ jsxs("div", { className: "grid gap:7 md:gap-28 py-6 md:py-16 md:grid-cols-2", children: [
|
|
1784
1781
|
hasPrimarySection && /* @__PURE__ */ jsxs("div", { children: [
|
|
1785
1782
|
primarySectionTitle && (typeof primarySectionTitle === "string" ? /* @__PURE__ */ jsx(
|
|
1786
1783
|
"h2",
|
|
@@ -1791,18 +1788,17 @@ function AboutVisionGallery({
|
|
|
1791
1788
|
),
|
|
1792
1789
|
children: primarySectionTitle
|
|
1793
1790
|
}
|
|
1794
|
-
) :
|
|
1791
|
+
) : primarySectionTitle),
|
|
1795
1792
|
primarySectionContent && (typeof primarySectionContent === "string" ? /* @__PURE__ */ jsx(
|
|
1796
1793
|
"p",
|
|
1797
1794
|
{
|
|
1798
1795
|
className: cn(
|
|
1799
1796
|
"text-normal md:text-xl leading-8 font-medium whitespace-pre-line",
|
|
1800
|
-
getTextColor(background, "muted"),
|
|
1801
1797
|
primarySectionContentClassName
|
|
1802
1798
|
),
|
|
1803
1799
|
children: primarySectionContent
|
|
1804
1800
|
}
|
|
1805
|
-
) :
|
|
1801
|
+
) : primarySectionContent)
|
|
1806
1802
|
] }),
|
|
1807
1803
|
hasSecondarySection && /* @__PURE__ */ jsxs("div", { children: [
|
|
1808
1804
|
secondarySectionTitle && (typeof secondarySectionTitle === "string" ? /* @__PURE__ */ jsx(
|
|
@@ -1814,36 +1810,26 @@ function AboutVisionGallery({
|
|
|
1814
1810
|
),
|
|
1815
1811
|
children: secondarySectionTitle
|
|
1816
1812
|
}
|
|
1817
|
-
) :
|
|
1818
|
-
(secondarySectionContent
|
|
1819
|
-
"
|
|
1813
|
+
) : secondarySectionTitle),
|
|
1814
|
+
secondarySectionContent && (typeof secondarySectionContent === "string" ? /* @__PURE__ */ jsx(
|
|
1815
|
+
"h2",
|
|
1820
1816
|
{
|
|
1821
1817
|
className: cn(
|
|
1822
1818
|
"text-normal md:text-xl leading-8 font-medium",
|
|
1823
|
-
getTextColor(background, "muted"),
|
|
1824
1819
|
secondarySectionContentClassName
|
|
1825
1820
|
),
|
|
1826
|
-
children:
|
|
1827
|
-
secondarySectionLinkText && secondarySectionLinkUrl && /* @__PURE__ */ jsx(
|
|
1828
|
-
Pressable,
|
|
1829
|
-
{
|
|
1830
|
-
href: secondarySectionLinkUrl,
|
|
1831
|
-
className: "mr-1 underline",
|
|
1832
|
-
children: secondarySectionLinkText
|
|
1833
|
-
}
|
|
1834
|
-
),
|
|
1835
|
-
secondarySectionContent
|
|
1836
|
-
]
|
|
1821
|
+
children: secondarySectionContent
|
|
1837
1822
|
}
|
|
1838
|
-
)
|
|
1823
|
+
) : secondarySectionContent)
|
|
1839
1824
|
] })
|
|
1840
1825
|
] }),
|
|
1841
1826
|
hasCtaSection && /* @__PURE__ */ jsxs(
|
|
1842
1827
|
"div",
|
|
1843
1828
|
{
|
|
1844
1829
|
className: cn(
|
|
1845
|
-
"
|
|
1846
|
-
|
|
1830
|
+
"flex flex-col items-center justify-between",
|
|
1831
|
+
"gap-8 rounded-2xl p-14 text-center",
|
|
1832
|
+
"md:flex-row md:text-left bg-muted text-muted-foreground",
|
|
1847
1833
|
ctaClassName
|
|
1848
1834
|
),
|
|
1849
1835
|
children: [
|
|
@@ -1856,7 +1842,7 @@ function AboutVisionGallery({
|
|
|
1856
1842
|
),
|
|
1857
1843
|
children: ctaTitle
|
|
1858
1844
|
}
|
|
1859
|
-
) :
|
|
1845
|
+
) : ctaTitle),
|
|
1860
1846
|
ctaContent
|
|
1861
1847
|
]
|
|
1862
1848
|
}
|
|
@@ -2424,7 +2410,7 @@ function AboutSplitHero({
|
|
|
2424
2410
|
}
|
|
2425
2411
|
}, [background]);
|
|
2426
2412
|
const desktopOrder = directionConfig.desktop === "mediaRight" ? "lg:flex-row" : "lg:flex-row-reverse";
|
|
2427
|
-
const mobileOrder = directionConfig.mobile === "mediaTop" ? "flex-col" : "flex-col
|
|
2413
|
+
const mobileOrder = directionConfig.mobile === "mediaTop" ? "flex-col-reverse" : "flex-col";
|
|
2428
2414
|
const contentArea = /* @__PURE__ */ jsxs(
|
|
2429
2415
|
"div",
|
|
2430
2416
|
{
|
|
@@ -2954,28 +2940,6 @@ function CommunityInitiatives({
|
|
|
2954
2940
|
},
|
|
2955
2941
|
[]
|
|
2956
2942
|
);
|
|
2957
|
-
const actionsContent = useMemo(() => {
|
|
2958
|
-
if (actionsSlot) return actionsSlot;
|
|
2959
|
-
if (!actions || actions.length === 0) return null;
|
|
2960
|
-
return /* @__PURE__ */ jsx(
|
|
2961
|
-
"div",
|
|
2962
|
-
{
|
|
2963
|
-
className: cn("flex flex-wrap justify-center gap-4", actionsClassName),
|
|
2964
|
-
children: actions.map((action, idx) => /* @__PURE__ */ jsx(
|
|
2965
|
-
Pressable,
|
|
2966
|
-
{
|
|
2967
|
-
href: action.href,
|
|
2968
|
-
onClick: action.onClick,
|
|
2969
|
-
variant: action.variant || "default",
|
|
2970
|
-
size: action.size || "lg",
|
|
2971
|
-
asButton: true,
|
|
2972
|
-
children: action.label
|
|
2973
|
-
},
|
|
2974
|
-
idx
|
|
2975
|
-
))
|
|
2976
|
-
}
|
|
2977
|
-
);
|
|
2978
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
2979
2943
|
const categoriesContent = useMemo(() => {
|
|
2980
2944
|
if (categoriesSlot) return categoriesSlot;
|
|
2981
2945
|
if (!categories || categories.length === 0) return null;
|
|
@@ -3007,7 +2971,7 @@ function CommunityInitiatives({
|
|
|
3007
2971
|
category.id
|
|
3008
2972
|
)) })
|
|
3009
2973
|
] }),
|
|
3010
|
-
/* @__PURE__ */ jsx("div", { className: "mx-auto max-w-2xl text-left md:text-center", children: /* @__PURE__ */ jsx("p", { className:
|
|
2974
|
+
/* @__PURE__ */ jsx("div", { className: "mx-auto max-w-2xl text-left md:text-center", children: /* @__PURE__ */ jsx("p", { className: "relative", children: currentCategory?.description }) }),
|
|
3011
2975
|
categories.map((category) => /* @__PURE__ */ jsx(
|
|
3012
2976
|
TabsContent,
|
|
3013
2977
|
{
|
|
@@ -3029,47 +2993,13 @@ function CommunityInitiatives({
|
|
|
3029
2993
|
),
|
|
3030
2994
|
children: [
|
|
3031
2995
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
3032
|
-
/* @__PURE__ */ jsx(
|
|
3033
|
-
"div",
|
|
3034
|
-
{
|
|
3035
|
-
className: cn(
|
|
3036
|
-
"rounded-md p-2",
|
|
3037
|
-
getNestedCardBg(background, "muted")
|
|
3038
|
-
),
|
|
3039
|
-
children: /* @__PURE__ */ jsx(
|
|
3040
|
-
DynamicIcon,
|
|
3041
|
-
{
|
|
3042
|
-
name: initiative.icon,
|
|
3043
|
-
size: 24,
|
|
3044
|
-
className: cn(getAccentColor(background))
|
|
3045
|
-
}
|
|
3046
|
-
)
|
|
3047
|
-
}
|
|
3048
|
-
),
|
|
2996
|
+
/* @__PURE__ */ jsx("div", { className: cn("rounded-md p-2"), children: /* @__PURE__ */ jsx(DynamicIcon, { name: initiative.icon, size: 24 }) }),
|
|
3049
2997
|
/* @__PURE__ */ jsx("h3", { className: "text-2xl font-bold", children: initiative.title })
|
|
3050
2998
|
] }),
|
|
3051
|
-
/* @__PURE__ */ jsx("p", { className:
|
|
2999
|
+
/* @__PURE__ */ jsx("p", { className: "relative", children: initiative.description }),
|
|
3052
3000
|
initiative.metrics && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-3 gap-4 pt-2", children: initiative.metrics.map((metric, i) => /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
|
|
3053
|
-
/* @__PURE__ */ jsx(
|
|
3054
|
-
|
|
3055
|
-
{
|
|
3056
|
-
className: cn(
|
|
3057
|
-
"text-2xl font-bold",
|
|
3058
|
-
getAccentColor(background)
|
|
3059
|
-
),
|
|
3060
|
-
children: metric.value
|
|
3061
|
-
}
|
|
3062
|
-
),
|
|
3063
|
-
/* @__PURE__ */ jsx(
|
|
3064
|
-
"div",
|
|
3065
|
-
{
|
|
3066
|
-
className: cn(
|
|
3067
|
-
"mt-1 text-xs",
|
|
3068
|
-
getTextColor(background, "muted")
|
|
3069
|
-
),
|
|
3070
|
-
children: metric.label
|
|
3071
|
-
}
|
|
3072
|
-
)
|
|
3001
|
+
/* @__PURE__ */ jsx("div", { className: cn("text-2xl font-bold"), children: metric.value }),
|
|
3002
|
+
/* @__PURE__ */ jsx("div", { className: cn("mt-1 text-xs"), children: metric.label })
|
|
3073
3003
|
] }, i)) })
|
|
3074
3004
|
]
|
|
3075
3005
|
}
|
|
@@ -3102,8 +3032,7 @@ function CommunityInitiatives({
|
|
|
3102
3032
|
Card,
|
|
3103
3033
|
{
|
|
3104
3034
|
className: cn(
|
|
3105
|
-
"flex h-full min-h-[280px] w-full items-center justify-center"
|
|
3106
|
-
getNestedCardBg(background, "subtle")
|
|
3035
|
+
"flex h-full min-h-[280px] w-full items-center justify-center"
|
|
3107
3036
|
),
|
|
3108
3037
|
children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6 text-center", children: [
|
|
3109
3038
|
/* @__PURE__ */ jsx(
|
|
@@ -3111,11 +3040,7 @@ function CommunityInitiatives({
|
|
|
3111
3040
|
{
|
|
3112
3041
|
name: initiative.icon,
|
|
3113
3042
|
size: 64,
|
|
3114
|
-
className: cn(
|
|
3115
|
-
"mx-auto mb-4",
|
|
3116
|
-
getTextColor(background, "muted"),
|
|
3117
|
-
"opacity-50"
|
|
3118
|
-
)
|
|
3043
|
+
className: cn("mx-auto mb-4", "opacity-50")
|
|
3119
3044
|
}
|
|
3120
3045
|
),
|
|
3121
3046
|
/* @__PURE__ */ jsxs(Badge, { variant: "secondary", className: "mx-auto", children: [
|
|
@@ -3184,30 +3109,45 @@ function CommunityInitiatives({
|
|
|
3184
3109
|
}
|
|
3185
3110
|
),
|
|
3186
3111
|
categoriesContent,
|
|
3187
|
-
/* @__PURE__ */ jsxs(
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3112
|
+
/* @__PURE__ */ jsxs(
|
|
3113
|
+
"div",
|
|
3114
|
+
{
|
|
3115
|
+
className: cn(
|
|
3116
|
+
"mt-10 md:mt-24 p-6 md:p-16",
|
|
3117
|
+
"text-center flex flex-col items-center",
|
|
3118
|
+
"bg-muted text-muted-foreground",
|
|
3119
|
+
"rounded-2xl shadow-lg",
|
|
3120
|
+
ctaClassName
|
|
3121
|
+
),
|
|
3122
|
+
children: [
|
|
3123
|
+
ctaBadgeText && /* @__PURE__ */ jsx(
|
|
3124
|
+
"div",
|
|
3125
|
+
{
|
|
3126
|
+
className: cn(
|
|
3127
|
+
"mb-8 inline-flex items-center justify-center rounded-full p-1"
|
|
3128
|
+
),
|
|
3129
|
+
children: /* @__PURE__ */ jsx(Badge, { className: "rounded-full bg-primary px-4 py-1 text-primary-foreground", children: ctaBadgeText })
|
|
3130
|
+
}
|
|
3205
3131
|
),
|
|
3206
|
-
children:
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3132
|
+
ctaHeading && (typeof ctaHeading === "string" ? /* @__PURE__ */ jsx("h3", { className: cn("mb-4 text-2xl font-bold", ctaHeadingClassName), children: ctaHeading }) : ctaHeading),
|
|
3133
|
+
ctaDescription && (typeof ctaDescription === "string" ? /* @__PURE__ */ jsx(
|
|
3134
|
+
"p",
|
|
3135
|
+
{
|
|
3136
|
+
className: cn("mx-auto mb-8 max-w-2xl", ctaDescriptionClassName),
|
|
3137
|
+
children: ctaDescription
|
|
3138
|
+
}
|
|
3139
|
+
) : ctaDescription),
|
|
3140
|
+
/* @__PURE__ */ jsx(
|
|
3141
|
+
BlockActions,
|
|
3142
|
+
{
|
|
3143
|
+
actions,
|
|
3144
|
+
actionsSlot,
|
|
3145
|
+
actionsClassName
|
|
3146
|
+
}
|
|
3147
|
+
)
|
|
3148
|
+
]
|
|
3149
|
+
}
|
|
3150
|
+
)
|
|
3211
3151
|
]
|
|
3212
3152
|
}
|
|
3213
3153
|
);
|
|
@@ -7717,11 +7657,31 @@ function AboutStoryGallery({
|
|
|
7717
7657
|
imagesClassName,
|
|
7718
7658
|
optixFlowConfig,
|
|
7719
7659
|
background,
|
|
7720
|
-
spacing = "
|
|
7660
|
+
spacing = "lg",
|
|
7721
7661
|
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
7722
7662
|
pattern,
|
|
7723
7663
|
patternOpacity
|
|
7724
7664
|
}) {
|
|
7665
|
+
const [lightboxOpen, setLightboxOpen] = useState(false);
|
|
7666
|
+
const [lightboxIndex, setLightboxIndex] = useState(0);
|
|
7667
|
+
const lightboxItems = useMemo(
|
|
7668
|
+
() => (images ?? []).map((img, index) => ({
|
|
7669
|
+
id: `gallery-image-${index}`,
|
|
7670
|
+
type: "image",
|
|
7671
|
+
src: img.src,
|
|
7672
|
+
alt: img.alt,
|
|
7673
|
+
download: true,
|
|
7674
|
+
share: true
|
|
7675
|
+
})),
|
|
7676
|
+
[images]
|
|
7677
|
+
);
|
|
7678
|
+
const handleImageClick = useCallback((index) => {
|
|
7679
|
+
setLightboxIndex(index);
|
|
7680
|
+
setLightboxOpen(true);
|
|
7681
|
+
}, []);
|
|
7682
|
+
const handleLightboxClose = useCallback(() => {
|
|
7683
|
+
setLightboxOpen(false);
|
|
7684
|
+
}, []);
|
|
7725
7685
|
const imagesContent = useMemo(() => {
|
|
7726
7686
|
if (imagesSlot) return imagesSlot;
|
|
7727
7687
|
if (!images || images.length === 0) return null;
|
|
@@ -7733,21 +7693,38 @@ function AboutStoryGallery({
|
|
|
7733
7693
|
imagesClassName
|
|
7734
7694
|
),
|
|
7735
7695
|
children: images.map((image, idx) => /* @__PURE__ */ jsx(
|
|
7736
|
-
|
|
7696
|
+
"div",
|
|
7737
7697
|
{
|
|
7738
|
-
src: image.src,
|
|
7739
|
-
alt: image.alt,
|
|
7740
7698
|
className: cn(
|
|
7741
|
-
"
|
|
7742
|
-
|
|
7699
|
+
"cursor-pointer overflow-hidden",
|
|
7700
|
+
"rounded-xl transition-transform duration-500",
|
|
7701
|
+
"hover:scale-[1.02] hover:shadow-lg"
|
|
7743
7702
|
),
|
|
7744
|
-
|
|
7703
|
+
onClick: () => handleImageClick(idx),
|
|
7704
|
+
role: "button",
|
|
7705
|
+
tabIndex: 0,
|
|
7706
|
+
onKeyDown: (e) => {
|
|
7707
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
7708
|
+
e.preventDefault();
|
|
7709
|
+
handleImageClick(idx);
|
|
7710
|
+
}
|
|
7711
|
+
},
|
|
7712
|
+
"aria-label": `View ${image.alt} in lightbox`,
|
|
7713
|
+
children: /* @__PURE__ */ jsx(
|
|
7714
|
+
Img,
|
|
7715
|
+
{
|
|
7716
|
+
src: image.src,
|
|
7717
|
+
alt: image.alt,
|
|
7718
|
+
className: cn("h-64 w-full object-cover", image.className),
|
|
7719
|
+
optixFlowConfig
|
|
7720
|
+
}
|
|
7721
|
+
)
|
|
7745
7722
|
},
|
|
7746
7723
|
idx
|
|
7747
7724
|
))
|
|
7748
7725
|
}
|
|
7749
7726
|
);
|
|
7750
|
-
}, [imagesSlot, images, imagesClassName, optixFlowConfig]);
|
|
7727
|
+
}, [imagesSlot, images, imagesClassName, optixFlowConfig, handleImageClick]);
|
|
7751
7728
|
return /* @__PURE__ */ jsxs(
|
|
7752
7729
|
Section,
|
|
7753
7730
|
{
|
|
@@ -7780,7 +7757,28 @@ function AboutStoryGallery({
|
|
|
7780
7757
|
}
|
|
7781
7758
|
) : /* @__PURE__ */ jsx("div", { className: cn("mt-6", descriptionClassName), children: description }))
|
|
7782
7759
|
] }),
|
|
7783
|
-
imagesContent
|
|
7760
|
+
imagesContent,
|
|
7761
|
+
lightboxOpen && /* @__PURE__ */ jsx(
|
|
7762
|
+
Lightbox,
|
|
7763
|
+
{
|
|
7764
|
+
items: lightboxItems,
|
|
7765
|
+
initialIndex: lightboxIndex,
|
|
7766
|
+
layout: "horizontal",
|
|
7767
|
+
controls: {
|
|
7768
|
+
navigation: true,
|
|
7769
|
+
thumbnails: true,
|
|
7770
|
+
download: true,
|
|
7771
|
+
share: true,
|
|
7772
|
+
fullscreen: true,
|
|
7773
|
+
captions: true,
|
|
7774
|
+
counter: true
|
|
7775
|
+
},
|
|
7776
|
+
onClose: handleLightboxClose,
|
|
7777
|
+
enableKeyboardShortcuts: true,
|
|
7778
|
+
closeOnEscape: true,
|
|
7779
|
+
closeOnBackdropClick: true
|
|
7780
|
+
}
|
|
7781
|
+
)
|
|
7784
7782
|
]
|
|
7785
7783
|
}
|
|
7786
7784
|
);
|
|
@@ -7821,7 +7819,9 @@ function AboutStreamlineTeam({
|
|
|
7821
7819
|
"div",
|
|
7822
7820
|
{
|
|
7823
7821
|
className: cn(
|
|
7824
|
-
"flex
|
|
7822
|
+
"flex shrink-0 items-center justify-center",
|
|
7823
|
+
"size-12 rounded-lg",
|
|
7824
|
+
"bg-primary text-primary-foreground",
|
|
7825
7825
|
feature.iconBgClass
|
|
7826
7826
|
),
|
|
7827
7827
|
children: feature.icon
|
|
@@ -7829,35 +7829,10 @@ function AboutStreamlineTeam({
|
|
|
7829
7829
|
),
|
|
7830
7830
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
7831
7831
|
feature.title && (typeof feature.title === "string" ? /* @__PURE__ */ jsx("h3", { className: "font-semibold", children: feature.title }) : feature.title),
|
|
7832
|
-
feature.description && (typeof feature.description === "string" ? /* @__PURE__ */ jsx(
|
|
7833
|
-
"p",
|
|
7834
|
-
{
|
|
7835
|
-
className: cn("text-sm", getTextColor(background, "muted")),
|
|
7836
|
-
children: feature.description
|
|
7837
|
-
}
|
|
7838
|
-
) : feature.description)
|
|
7832
|
+
feature.description && (typeof feature.description === "string" ? /* @__PURE__ */ jsx("p", { className: "text-sm", children: feature.description }) : feature.description)
|
|
7839
7833
|
] })
|
|
7840
7834
|
] }, idx)) });
|
|
7841
7835
|
}, [featuresSlot, features, featuresClassName, background]);
|
|
7842
|
-
const actionsContent = useMemo(() => {
|
|
7843
|
-
if (actionsSlot) return actionsSlot;
|
|
7844
|
-
if (!actions || actions.length === 0) return null;
|
|
7845
|
-
return /* @__PURE__ */ jsx("div", { className: cn("mt-8", actionsClassName), children: actions.map((action, idx) => /* @__PURE__ */ jsxs(
|
|
7846
|
-
Pressable,
|
|
7847
|
-
{
|
|
7848
|
-
href: action.href,
|
|
7849
|
-
onClick: action.onClick,
|
|
7850
|
-
size: action.size || "lg",
|
|
7851
|
-
variant: action.variant || "default",
|
|
7852
|
-
asButton: true,
|
|
7853
|
-
children: [
|
|
7854
|
-
action.label,
|
|
7855
|
-
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/arrow-right", size: 16, className: "ml-2" })
|
|
7856
|
-
]
|
|
7857
|
-
},
|
|
7858
|
-
idx
|
|
7859
|
-
)) });
|
|
7860
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
7861
7836
|
return /* @__PURE__ */ jsxs(
|
|
7862
7837
|
Section,
|
|
7863
7838
|
{
|
|
@@ -7865,7 +7840,7 @@ function AboutStreamlineTeam({
|
|
|
7865
7840
|
spacing,
|
|
7866
7841
|
pattern,
|
|
7867
7842
|
patternOpacity,
|
|
7868
|
-
className
|
|
7843
|
+
className,
|
|
7869
7844
|
containerClassName,
|
|
7870
7845
|
children: [
|
|
7871
7846
|
/* @__PURE__ */ jsxs("div", { className: "grid gap-12 lg:grid-cols-2 lg:items-center", children: [
|
|
@@ -7888,14 +7863,17 @@ function AboutStreamlineTeam({
|
|
|
7888
7863
|
src: secondaryImage.src,
|
|
7889
7864
|
alt: secondaryImage.alt,
|
|
7890
7865
|
className: cn(
|
|
7891
|
-
"
|
|
7866
|
+
"size-24 md:size-48",
|
|
7867
|
+
"rounded-xl object-cover shadow-lg",
|
|
7868
|
+
"border-4 border-background",
|
|
7869
|
+
"absolute -bottom-8 -right-2 md:-right-8",
|
|
7892
7870
|
secondaryImageClassName
|
|
7893
7871
|
),
|
|
7894
7872
|
optixFlowConfig
|
|
7895
7873
|
}
|
|
7896
7874
|
)
|
|
7897
7875
|
] }),
|
|
7898
|
-
/* @__PURE__ */ jsxs("div", { children: [
|
|
7876
|
+
/* @__PURE__ */ jsxs("div", { className: "pl-0 md:pl-8", children: [
|
|
7899
7877
|
title && (typeof title === "string" ? /* @__PURE__ */ jsx(
|
|
7900
7878
|
"h1",
|
|
7901
7879
|
{
|
|
@@ -7905,18 +7883,8 @@ function AboutStreamlineTeam({
|
|
|
7905
7883
|
),
|
|
7906
7884
|
children: title
|
|
7907
7885
|
}
|
|
7908
|
-
) :
|
|
7909
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
7910
|
-
"p",
|
|
7911
|
-
{
|
|
7912
|
-
className: cn(
|
|
7913
|
-
"mt-6 text-lg",
|
|
7914
|
-
getTextColor(background, "muted"),
|
|
7915
|
-
descriptionClassName
|
|
7916
|
-
),
|
|
7917
|
-
children: description
|
|
7918
|
-
}
|
|
7919
|
-
) : /* @__PURE__ */ jsx("div", { className: cn("mt-6", descriptionClassName), children: description })),
|
|
7886
|
+
) : title),
|
|
7887
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mt-6 text-lg", descriptionClassName), children: description }) : description),
|
|
7920
7888
|
featuresContent
|
|
7921
7889
|
] })
|
|
7922
7890
|
] }),
|
|
@@ -7924,35 +7892,44 @@ function AboutStreamlineTeam({
|
|
|
7924
7892
|
"div",
|
|
7925
7893
|
{
|
|
7926
7894
|
className: cn(
|
|
7927
|
-
"mt-
|
|
7928
|
-
|
|
7929
|
-
|
|
7895
|
+
"mt-10 md:mt-24 p-6 md:p-16",
|
|
7896
|
+
"bg-muted text-muted-foreground",
|
|
7897
|
+
"rounded-2xl shadow-lg",
|
|
7930
7898
|
teamSectionClassName
|
|
7931
7899
|
),
|
|
7932
|
-
children: /* @__PURE__ */ jsxs(
|
|
7933
|
-
|
|
7934
|
-
|
|
7935
|
-
|
|
7936
|
-
|
|
7937
|
-
|
|
7938
|
-
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
7955
|
-
|
|
7900
|
+
children: /* @__PURE__ */ jsxs(
|
|
7901
|
+
"div",
|
|
7902
|
+
{
|
|
7903
|
+
className: cn(
|
|
7904
|
+
"flex flex-col md:flex-row",
|
|
7905
|
+
"justify-center md:justify-between items-center md:items-start",
|
|
7906
|
+
"gap-8 md:gap-24"
|
|
7907
|
+
),
|
|
7908
|
+
children: [
|
|
7909
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 md:gap-8 text-center md:text-left", children: [
|
|
7910
|
+
teamTitle && (typeof teamTitle === "string" ? /* @__PURE__ */ jsx(
|
|
7911
|
+
"h2",
|
|
7912
|
+
{
|
|
7913
|
+
className: cn(
|
|
7914
|
+
"text-3xl font-bold md:text-4xl",
|
|
7915
|
+
teamTitleClassName
|
|
7916
|
+
),
|
|
7917
|
+
children: teamTitle
|
|
7918
|
+
}
|
|
7919
|
+
) : teamTitle),
|
|
7920
|
+
teamDescription && (typeof teamDescription === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-lg", teamDescriptionClassName), children: teamDescription }) : teamDescription)
|
|
7921
|
+
] }),
|
|
7922
|
+
/* @__PURE__ */ jsx(
|
|
7923
|
+
BlockActions,
|
|
7924
|
+
{
|
|
7925
|
+
actions,
|
|
7926
|
+
actionsSlot,
|
|
7927
|
+
actionsClassName
|
|
7928
|
+
}
|
|
7929
|
+
)
|
|
7930
|
+
]
|
|
7931
|
+
}
|
|
7932
|
+
)
|
|
7956
7933
|
}
|
|
7957
7934
|
)
|
|
7958
7935
|
]
|