@opensite/ui 2.6.6 → 2.6.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/article-breadcrumb-social.cjs +10 -31
- package/dist/article-breadcrumb-social.d.cts +5 -1
- package/dist/article-breadcrumb-social.d.ts +5 -1
- package/dist/article-breadcrumb-social.js +10 -30
- package/dist/article-chapters-author.cjs +112 -74
- package/dist/article-chapters-author.d.cts +5 -1
- package/dist/article-chapters-author.d.ts +5 -1
- package/dist/article-chapters-author.js +112 -74
- package/dist/article-compact-toc.cjs +25 -51
- package/dist/article-compact-toc.d.cts +5 -1
- package/dist/article-compact-toc.d.ts +5 -1
- package/dist/article-compact-toc.js +25 -51
- package/dist/article-sidebar-sticky.cjs +2 -2
- package/dist/article-sidebar-sticky.js +2 -2
- package/dist/article-split-animated.cjs +10 -29
- package/dist/article-split-animated.d.cts +1 -11
- package/dist/article-split-animated.d.ts +1 -11
- package/dist/article-split-animated.js +10 -29
- package/dist/blog-filtered-results.cjs +2 -2
- package/dist/blog-filtered-results.js +2 -2
- package/dist/carousel-portfolio-hero.cjs +1 -1
- package/dist/carousel-portfolio-hero.js +1 -1
- package/dist/case-study-stats-metrics.cjs +3 -3
- package/dist/case-study-stats-metrics.js +3 -3
- package/dist/case-study-toc-social-sidebar.cjs +3 -3
- package/dist/case-study-toc-social-sidebar.js +3 -3
- package/dist/hero-event-registration.cjs +1 -1
- package/dist/hero-event-registration.js +1 -1
- package/dist/registry.cjs +54 -112
- package/dist/registry.js +54 -112
- package/dist/resource-detail-document-sidebar.cjs +3 -3
- package/dist/resource-detail-document-sidebar.js +3 -3
- package/dist/resource-list-hero-filter.cjs +2 -2
- package/dist/resource-list-hero-filter.js +2 -2
- package/package.json +1 -1
|
@@ -453,7 +453,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
453
453
|
{
|
|
454
454
|
"data-slot": "breadcrumb-list",
|
|
455
455
|
className: cn(
|
|
456
|
-
"
|
|
456
|
+
"flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",
|
|
457
457
|
className
|
|
458
458
|
),
|
|
459
459
|
...props
|
|
@@ -480,7 +480,7 @@ function BreadcrumbLink({
|
|
|
480
480
|
Comp,
|
|
481
481
|
{
|
|
482
482
|
"data-slot": "breadcrumb-link",
|
|
483
|
-
className: cn("hover:
|
|
483
|
+
className: cn("hover:underline transition-colors", className),
|
|
484
484
|
...props
|
|
485
485
|
}
|
|
486
486
|
);
|
|
@@ -493,7 +493,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
493
493
|
role: "link",
|
|
494
494
|
"aria-disabled": "true",
|
|
495
495
|
"aria-current": "page",
|
|
496
|
-
className: cn("
|
|
496
|
+
className: cn("font-normal", className),
|
|
497
497
|
...props
|
|
498
498
|
}
|
|
499
499
|
);
|
|
@@ -974,7 +974,8 @@ function ArticleCompactTocComponent({
|
|
|
974
974
|
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
975
975
|
spacing = "hero",
|
|
976
976
|
pattern,
|
|
977
|
-
patternOpacity
|
|
977
|
+
patternOpacity,
|
|
978
|
+
patternClassName
|
|
978
979
|
}) {
|
|
979
980
|
const [activeSection, setActiveSection] = React5.useState(
|
|
980
981
|
sections?.[0]?.id || ""
|
|
@@ -1011,23 +1012,6 @@ function ArticleCompactTocComponent({
|
|
|
1011
1012
|
/* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbPage, { children: currentPage }) })
|
|
1012
1013
|
] }) });
|
|
1013
1014
|
}, [breadcrumbsSlot, breadcrumbs, currentPage, breadcrumbClassName]);
|
|
1014
|
-
const shareContent = React5.useMemo(() => {
|
|
1015
|
-
if (shareSlot) return shareSlot;
|
|
1016
|
-
if (!socialLinks || socialLinks.length === 0) return null;
|
|
1017
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("mt-6 flex items-center gap-2", shareClassName), children: [
|
|
1018
|
-
/* @__PURE__ */ jsx("span", { className: "text-sm text-muted-foreground", children: "Share:" }),
|
|
1019
|
-
socialLinks.map((link, index) => /* @__PURE__ */ jsx(
|
|
1020
|
-
Pressable,
|
|
1021
|
-
{
|
|
1022
|
-
href: link.href,
|
|
1023
|
-
className: "flex h-8 w-8 items-center justify-center rounded-md hover:bg-muted",
|
|
1024
|
-
"aria-label": link["aria-label"] || `Share on ${link.platform}`,
|
|
1025
|
-
children: /* @__PURE__ */ jsx(DynamicIcon, { name: `lucide/${link.platform}`, size: 16 })
|
|
1026
|
-
},
|
|
1027
|
-
index
|
|
1028
|
-
))
|
|
1029
|
-
] });
|
|
1030
|
-
}, [shareSlot, socialLinks, shareClassName]);
|
|
1031
1015
|
const renderTocLinks = React5.useCallback(
|
|
1032
1016
|
(onLinkClick) => {
|
|
1033
1017
|
if (!sections) return null;
|
|
@@ -1042,7 +1026,7 @@ function ArticleCompactTocComponent({
|
|
|
1042
1026
|
href: `#${section.id}`,
|
|
1043
1027
|
className: cn(
|
|
1044
1028
|
"block text-sm transition-colors",
|
|
1045
|
-
isActive ? "
|
|
1029
|
+
isActive ? "underline" : ""
|
|
1046
1030
|
),
|
|
1047
1031
|
onClick: onLinkClick,
|
|
1048
1032
|
children: section.title
|
|
@@ -1086,23 +1070,14 @@ function ArticleCompactTocComponent({
|
|
|
1086
1070
|
)
|
|
1087
1071
|
] }) });
|
|
1088
1072
|
}, [tocSlot, sections, isTocOpen, tocClassName, renderTocLinks]);
|
|
1073
|
+
const hasDesktopToc = !tocSlot && sections && sections.length > 0;
|
|
1089
1074
|
const desktopTocContent = React5.useMemo(() => {
|
|
1090
|
-
if (
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
"hidden lg:block fixed top-24 right-8 w-64 max-h-[calc(100vh-8rem)] overflow-y-auto",
|
|
1097
|
-
tocClassName
|
|
1098
|
-
),
|
|
1099
|
-
children: /* @__PURE__ */ jsxs("nav", { className: "space-y-2 rounded-lg border bg-background p-4", children: [
|
|
1100
|
-
/* @__PURE__ */ jsx("span", { className: "mb-3 block text-sm font-semibold", children: "Table of Contents" }),
|
|
1101
|
-
renderTocLinks()
|
|
1102
|
-
] })
|
|
1103
|
-
}
|
|
1104
|
-
);
|
|
1105
|
-
}, [tocSlot, sections, tocClassName, renderTocLinks]);
|
|
1075
|
+
if (!hasDesktopToc) return null;
|
|
1076
|
+
return /* @__PURE__ */ jsx("aside", { className: cn("hidden lg:block w-64 shrink-0", tocClassName), children: /* @__PURE__ */ jsxs("nav", { className: "sticky top-24 max-h-[calc(100vh-8rem)] overflow-y-auto space-y-2 rounded-lg border p-4", children: [
|
|
1077
|
+
/* @__PURE__ */ jsx("span", { className: "mb-3 block text-sm font-semibold", children: "Table of Contents" }),
|
|
1078
|
+
renderTocLinks()
|
|
1079
|
+
] }) });
|
|
1080
|
+
}, [hasDesktopToc, tocClassName, renderTocLinks]);
|
|
1106
1081
|
const heroMediaContent = React5.useMemo(() => {
|
|
1107
1082
|
if (heroMediaSlot) return heroMediaSlot;
|
|
1108
1083
|
if (!heroImageSrc) return null;
|
|
@@ -1125,20 +1100,20 @@ function ArticleCompactTocComponent({
|
|
|
1125
1100
|
heroImageClassName,
|
|
1126
1101
|
optixFlowConfig
|
|
1127
1102
|
]);
|
|
1128
|
-
return /* @__PURE__ */
|
|
1103
|
+
return /* @__PURE__ */ jsx(
|
|
1129
1104
|
Section,
|
|
1130
1105
|
{
|
|
1131
1106
|
background,
|
|
1132
1107
|
spacing,
|
|
1133
1108
|
pattern,
|
|
1134
1109
|
patternOpacity,
|
|
1135
|
-
|
|
1110
|
+
patternClassName,
|
|
1111
|
+
className: cn(pattern && "overflow-visible", className),
|
|
1136
1112
|
containerClassName,
|
|
1137
|
-
children: [
|
|
1138
|
-
|
|
1139
|
-
/* @__PURE__ */ jsxs("div", { className: cn("
|
|
1140
|
-
|
|
1141
|
-
/* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
1113
|
+
children: /* @__PURE__ */ jsxs("div", { className: "relative", children: [
|
|
1114
|
+
breadcrumbsContent,
|
|
1115
|
+
/* @__PURE__ */ jsxs("div", { className: cn("relative", hasDesktopToc && "lg:flex lg:gap-8"), children: [
|
|
1116
|
+
/* @__PURE__ */ jsxs("div", { className: cn(hasDesktopToc && "min-w-0 lg:flex-1"), children: [
|
|
1142
1117
|
title && (typeof title === "string" ? /* @__PURE__ */ jsx(
|
|
1143
1118
|
"h1",
|
|
1144
1119
|
{
|
|
@@ -1153,11 +1128,11 @@ function ArticleCompactTocComponent({
|
|
|
1153
1128
|
"div",
|
|
1154
1129
|
{
|
|
1155
1130
|
className: cn(
|
|
1156
|
-
"mt-4 flex flex-wrap items-center gap-4 text-sm
|
|
1131
|
+
"mt-4 flex flex-wrap items-center gap-4 text-sm",
|
|
1157
1132
|
metaClassName
|
|
1158
1133
|
),
|
|
1159
1134
|
children: [
|
|
1160
|
-
authorName &&
|
|
1135
|
+
authorName && /* @__PURE__ */ jsx(Pressable, { href: authorHref, children: authorName }),
|
|
1161
1136
|
authorName && publishDate && /* @__PURE__ */ jsx(Separator, { orientation: "vertical", className: "h-4" }),
|
|
1162
1137
|
publishDate && /* @__PURE__ */ jsx("span", { children: publishDate }),
|
|
1163
1138
|
publishDate && readTime && /* @__PURE__ */ jsx(Separator, { orientation: "vertical", className: "h-4" }),
|
|
@@ -1165,8 +1140,6 @@ function ArticleCompactTocComponent({
|
|
|
1165
1140
|
]
|
|
1166
1141
|
}
|
|
1167
1142
|
),
|
|
1168
|
-
shareContent,
|
|
1169
|
-
/* @__PURE__ */ jsx(Separator, { className: "my-8" }),
|
|
1170
1143
|
tocContent,
|
|
1171
1144
|
children && /* @__PURE__ */ jsxs(
|
|
1172
1145
|
"article",
|
|
@@ -1181,9 +1154,10 @@ function ArticleCompactTocComponent({
|
|
|
1181
1154
|
]
|
|
1182
1155
|
}
|
|
1183
1156
|
)
|
|
1184
|
-
] })
|
|
1157
|
+
] }),
|
|
1158
|
+
desktopTocContent
|
|
1185
1159
|
] })
|
|
1186
|
-
]
|
|
1160
|
+
] })
|
|
1187
1161
|
}
|
|
1188
1162
|
);
|
|
1189
1163
|
}
|
|
@@ -925,7 +925,7 @@ function ArticleSidebarStickyComponent({
|
|
|
925
925
|
{
|
|
926
926
|
href: backHref,
|
|
927
927
|
className: cn(
|
|
928
|
-
"inline-flex items-center gap-2 text-sm
|
|
928
|
+
"inline-flex items-center gap-2 text-sm",
|
|
929
929
|
backLinkClassName
|
|
930
930
|
),
|
|
931
931
|
children: [
|
|
@@ -954,7 +954,7 @@ function ArticleSidebarStickyComponent({
|
|
|
954
954
|
children: authorName
|
|
955
955
|
}
|
|
956
956
|
) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium", children: authorName }),
|
|
957
|
-
publishDate && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs
|
|
957
|
+
publishDate && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs", children: publishDate })
|
|
958
958
|
] })
|
|
959
959
|
] });
|
|
960
960
|
},
|
|
@@ -903,7 +903,7 @@ function ArticleSidebarStickyComponent({
|
|
|
903
903
|
{
|
|
904
904
|
href: backHref,
|
|
905
905
|
className: cn(
|
|
906
|
-
"inline-flex items-center gap-2 text-sm
|
|
906
|
+
"inline-flex items-center gap-2 text-sm",
|
|
907
907
|
backLinkClassName
|
|
908
908
|
),
|
|
909
909
|
children: [
|
|
@@ -932,7 +932,7 @@ function ArticleSidebarStickyComponent({
|
|
|
932
932
|
children: authorName
|
|
933
933
|
}
|
|
934
934
|
) : /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: authorName }),
|
|
935
|
-
publishDate && /* @__PURE__ */ jsx("p", { className: "text-xs
|
|
935
|
+
publishDate && /* @__PURE__ */ jsx("p", { className: "text-xs", children: publishDate })
|
|
936
936
|
] })
|
|
937
937
|
] });
|
|
938
938
|
},
|
|
@@ -898,7 +898,6 @@ var Section = React__namespace.default.forwardRef(
|
|
|
898
898
|
Section.displayName = "Section";
|
|
899
899
|
function ArticleSplitAnimatedComponent({
|
|
900
900
|
className,
|
|
901
|
-
containerClassName,
|
|
902
901
|
imageContainerClassName,
|
|
903
902
|
contentClassName,
|
|
904
903
|
titleClassName,
|
|
@@ -922,25 +921,16 @@ function ArticleSplitAnimatedComponent({
|
|
|
922
921
|
category,
|
|
923
922
|
categoryHref,
|
|
924
923
|
categorySlot,
|
|
925
|
-
ctaActions
|
|
926
|
-
ctaText,
|
|
927
|
-
ctaHref,
|
|
924
|
+
ctaActions,
|
|
928
925
|
ctaSlot,
|
|
929
926
|
enableAnimations = true,
|
|
930
927
|
optixFlowConfig,
|
|
931
928
|
background,
|
|
932
|
-
spacing,
|
|
933
929
|
pattern,
|
|
934
|
-
patternOpacity
|
|
930
|
+
patternOpacity,
|
|
931
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
932
|
+
spacing = "lg"
|
|
935
933
|
}) {
|
|
936
|
-
const ctaActions = ctaActionsProp ?? (ctaText ? [
|
|
937
|
-
{
|
|
938
|
-
label: ctaText,
|
|
939
|
-
href: ctaHref || "#",
|
|
940
|
-
variant: "default",
|
|
941
|
-
size: "lg"
|
|
942
|
-
}
|
|
943
|
-
] : []);
|
|
944
934
|
const MotionWrapper = enableAnimations ? framerMotion.motion.div : "div";
|
|
945
935
|
const categoryContent = React__namespace.useMemo(() => {
|
|
946
936
|
if (categorySlot) return categorySlot;
|
|
@@ -950,7 +940,7 @@ function ArticleSplitAnimatedComponent({
|
|
|
950
940
|
{
|
|
951
941
|
href: categoryHref,
|
|
952
942
|
className: cn(
|
|
953
|
-
"inline-block rounded-full bg-primary
|
|
943
|
+
"inline-block rounded-full bg-primary px-3 py-1 text-sm font-medium text-primary-foreground backdrop-blur-sm transition-colors",
|
|
954
944
|
categoryClassName
|
|
955
945
|
),
|
|
956
946
|
children: category
|
|
@@ -987,7 +977,7 @@ function ArticleSplitAnimatedComponent({
|
|
|
987
977
|
children: authorName
|
|
988
978
|
}
|
|
989
979
|
) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-medium", children: authorName }),
|
|
990
|
-
authorRole && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm
|
|
980
|
+
authorRole && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm ", children: authorRole })
|
|
991
981
|
] })
|
|
992
982
|
] });
|
|
993
983
|
}, [
|
|
@@ -1058,7 +1048,7 @@ function ArticleSplitAnimatedComponent({
|
|
|
1058
1048
|
children: [
|
|
1059
1049
|
heroMediaContent,
|
|
1060
1050
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute inset-0 bg-linear-to-t from-black/60 via-transparent to-transparent" }),
|
|
1061
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute bottom-0 left-0 p-6", children: categoryContent })
|
|
1051
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute bottom-0 left-0 p-4 md:p-6", children: categoryContent })
|
|
1062
1052
|
]
|
|
1063
1053
|
}
|
|
1064
1054
|
),
|
|
@@ -1072,7 +1062,7 @@ function ArticleSplitAnimatedComponent({
|
|
|
1072
1062
|
"div",
|
|
1073
1063
|
{
|
|
1074
1064
|
className: cn(
|
|
1075
|
-
"flex items-center gap-4 text-sm
|
|
1065
|
+
"flex items-center gap-4 text-sm ",
|
|
1076
1066
|
metaClassName
|
|
1077
1067
|
),
|
|
1078
1068
|
children: [
|
|
@@ -1091,17 +1081,8 @@ function ArticleSplitAnimatedComponent({
|
|
|
1091
1081
|
),
|
|
1092
1082
|
children: title
|
|
1093
1083
|
}
|
|
1094
|
-
) :
|
|
1095
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1096
|
-
"p",
|
|
1097
|
-
{
|
|
1098
|
-
className: cn(
|
|
1099
|
-
"mt-4 text-lg text-muted-foreground",
|
|
1100
|
-
descriptionClassName
|
|
1101
|
-
),
|
|
1102
|
-
children: description
|
|
1103
|
-
}
|
|
1104
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-4", descriptionClassName), children: description })),
|
|
1084
|
+
) : title),
|
|
1085
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("mt-4 text-lg", descriptionClassName), children: description }) : description),
|
|
1105
1086
|
authorContent,
|
|
1106
1087
|
ctaContent
|
|
1107
1088
|
]
|
|
@@ -112,16 +112,6 @@ interface ArticleSplitAnimatedProps {
|
|
|
112
112
|
* CTA actions
|
|
113
113
|
*/
|
|
114
114
|
ctaActions?: ActionConfig[];
|
|
115
|
-
/**
|
|
116
|
-
* @deprecated Use ctaActions instead
|
|
117
|
-
* CTA button text (backward compatibility)
|
|
118
|
-
*/
|
|
119
|
-
ctaText?: string;
|
|
120
|
-
/**
|
|
121
|
-
* @deprecated Use ctaActions instead
|
|
122
|
-
* CTA button href (backward compatibility)
|
|
123
|
-
*/
|
|
124
|
-
ctaHref?: string;
|
|
125
115
|
/**
|
|
126
116
|
* Custom slot for CTA section (overrides ctaActions)
|
|
127
117
|
*/
|
|
@@ -152,6 +142,6 @@ interface ArticleSplitAnimatedProps {
|
|
|
152
142
|
*/
|
|
153
143
|
patternOpacity?: number;
|
|
154
144
|
}
|
|
155
|
-
declare function ArticleSplitAnimatedComponent({ className,
|
|
145
|
+
declare function ArticleSplitAnimatedComponent({ className, imageContainerClassName, contentClassName, titleClassName, descriptionClassName, authorClassName, categoryClassName, metaClassName, ctaClassName, title, description, image, imageAlt, heroMediaSlot, authorName, authorImage, authorRole, authorHref, authorSlot, publishDate, readTime, category, categoryHref, categorySlot, ctaActions, ctaSlot, enableAnimations, optixFlowConfig, background, pattern, patternOpacity, containerClassName, spacing, }: ArticleSplitAnimatedProps): react_jsx_runtime.JSX.Element;
|
|
156
146
|
|
|
157
147
|
export { ArticleSplitAnimatedComponent as ArticleSplitAnimated, type ArticleSplitAnimatedProps };
|
|
@@ -112,16 +112,6 @@ interface ArticleSplitAnimatedProps {
|
|
|
112
112
|
* CTA actions
|
|
113
113
|
*/
|
|
114
114
|
ctaActions?: ActionConfig[];
|
|
115
|
-
/**
|
|
116
|
-
* @deprecated Use ctaActions instead
|
|
117
|
-
* CTA button text (backward compatibility)
|
|
118
|
-
*/
|
|
119
|
-
ctaText?: string;
|
|
120
|
-
/**
|
|
121
|
-
* @deprecated Use ctaActions instead
|
|
122
|
-
* CTA button href (backward compatibility)
|
|
123
|
-
*/
|
|
124
|
-
ctaHref?: string;
|
|
125
115
|
/**
|
|
126
116
|
* Custom slot for CTA section (overrides ctaActions)
|
|
127
117
|
*/
|
|
@@ -152,6 +142,6 @@ interface ArticleSplitAnimatedProps {
|
|
|
152
142
|
*/
|
|
153
143
|
patternOpacity?: number;
|
|
154
144
|
}
|
|
155
|
-
declare function ArticleSplitAnimatedComponent({ className,
|
|
145
|
+
declare function ArticleSplitAnimatedComponent({ className, imageContainerClassName, contentClassName, titleClassName, descriptionClassName, authorClassName, categoryClassName, metaClassName, ctaClassName, title, description, image, imageAlt, heroMediaSlot, authorName, authorImage, authorRole, authorHref, authorSlot, publishDate, readTime, category, categoryHref, categorySlot, ctaActions, ctaSlot, enableAnimations, optixFlowConfig, background, pattern, patternOpacity, containerClassName, spacing, }: ArticleSplitAnimatedProps): react_jsx_runtime.JSX.Element;
|
|
156
146
|
|
|
157
147
|
export { ArticleSplitAnimatedComponent as ArticleSplitAnimated, type ArticleSplitAnimatedProps };
|
|
@@ -875,7 +875,6 @@ var Section = React__default.forwardRef(
|
|
|
875
875
|
Section.displayName = "Section";
|
|
876
876
|
function ArticleSplitAnimatedComponent({
|
|
877
877
|
className,
|
|
878
|
-
containerClassName,
|
|
879
878
|
imageContainerClassName,
|
|
880
879
|
contentClassName,
|
|
881
880
|
titleClassName,
|
|
@@ -899,25 +898,16 @@ function ArticleSplitAnimatedComponent({
|
|
|
899
898
|
category,
|
|
900
899
|
categoryHref,
|
|
901
900
|
categorySlot,
|
|
902
|
-
ctaActions
|
|
903
|
-
ctaText,
|
|
904
|
-
ctaHref,
|
|
901
|
+
ctaActions,
|
|
905
902
|
ctaSlot,
|
|
906
903
|
enableAnimations = true,
|
|
907
904
|
optixFlowConfig,
|
|
908
905
|
background,
|
|
909
|
-
spacing,
|
|
910
906
|
pattern,
|
|
911
|
-
patternOpacity
|
|
907
|
+
patternOpacity,
|
|
908
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
909
|
+
spacing = "lg"
|
|
912
910
|
}) {
|
|
913
|
-
const ctaActions = ctaActionsProp ?? (ctaText ? [
|
|
914
|
-
{
|
|
915
|
-
label: ctaText,
|
|
916
|
-
href: ctaHref || "#",
|
|
917
|
-
variant: "default",
|
|
918
|
-
size: "lg"
|
|
919
|
-
}
|
|
920
|
-
] : []);
|
|
921
911
|
const MotionWrapper = enableAnimations ? motion.div : "div";
|
|
922
912
|
const categoryContent = React.useMemo(() => {
|
|
923
913
|
if (categorySlot) return categorySlot;
|
|
@@ -927,7 +917,7 @@ function ArticleSplitAnimatedComponent({
|
|
|
927
917
|
{
|
|
928
918
|
href: categoryHref,
|
|
929
919
|
className: cn(
|
|
930
|
-
"inline-block rounded-full bg-primary
|
|
920
|
+
"inline-block rounded-full bg-primary px-3 py-1 text-sm font-medium text-primary-foreground backdrop-blur-sm transition-colors",
|
|
931
921
|
categoryClassName
|
|
932
922
|
),
|
|
933
923
|
children: category
|
|
@@ -964,7 +954,7 @@ function ArticleSplitAnimatedComponent({
|
|
|
964
954
|
children: authorName
|
|
965
955
|
}
|
|
966
956
|
) : /* @__PURE__ */ jsx("p", { className: "font-medium", children: authorName }),
|
|
967
|
-
authorRole && /* @__PURE__ */ jsx("p", { className: "text-sm
|
|
957
|
+
authorRole && /* @__PURE__ */ jsx("p", { className: "text-sm ", children: authorRole })
|
|
968
958
|
] })
|
|
969
959
|
] });
|
|
970
960
|
}, [
|
|
@@ -1035,7 +1025,7 @@ function ArticleSplitAnimatedComponent({
|
|
|
1035
1025
|
children: [
|
|
1036
1026
|
heroMediaContent,
|
|
1037
1027
|
/* @__PURE__ */ jsx("div", { className: "absolute inset-0 bg-linear-to-t from-black/60 via-transparent to-transparent" }),
|
|
1038
|
-
/* @__PURE__ */ jsx("div", { className: "absolute bottom-0 left-0 p-6", children: categoryContent })
|
|
1028
|
+
/* @__PURE__ */ jsx("div", { className: "absolute bottom-0 left-0 p-4 md:p-6", children: categoryContent })
|
|
1039
1029
|
]
|
|
1040
1030
|
}
|
|
1041
1031
|
),
|
|
@@ -1049,7 +1039,7 @@ function ArticleSplitAnimatedComponent({
|
|
|
1049
1039
|
"div",
|
|
1050
1040
|
{
|
|
1051
1041
|
className: cn(
|
|
1052
|
-
"flex items-center gap-4 text-sm
|
|
1042
|
+
"flex items-center gap-4 text-sm ",
|
|
1053
1043
|
metaClassName
|
|
1054
1044
|
),
|
|
1055
1045
|
children: [
|
|
@@ -1068,17 +1058,8 @@ function ArticleSplitAnimatedComponent({
|
|
|
1068
1058
|
),
|
|
1069
1059
|
children: title
|
|
1070
1060
|
}
|
|
1071
|
-
) :
|
|
1072
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
1073
|
-
"p",
|
|
1074
|
-
{
|
|
1075
|
-
className: cn(
|
|
1076
|
-
"mt-4 text-lg text-muted-foreground",
|
|
1077
|
-
descriptionClassName
|
|
1078
|
-
),
|
|
1079
|
-
children: description
|
|
1080
|
-
}
|
|
1081
|
-
) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description })),
|
|
1061
|
+
) : title),
|
|
1062
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mt-4 text-lg", descriptionClassName), children: description }) : description),
|
|
1082
1063
|
authorContent,
|
|
1083
1064
|
ctaContent
|
|
1084
1065
|
]
|
|
@@ -506,7 +506,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
506
506
|
{
|
|
507
507
|
"data-slot": "breadcrumb-list",
|
|
508
508
|
className: cn(
|
|
509
|
-
"
|
|
509
|
+
"flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",
|
|
510
510
|
className
|
|
511
511
|
),
|
|
512
512
|
...props
|
|
@@ -533,7 +533,7 @@ function BreadcrumbLink({
|
|
|
533
533
|
Comp,
|
|
534
534
|
{
|
|
535
535
|
"data-slot": "breadcrumb-link",
|
|
536
|
-
className: cn("hover:
|
|
536
|
+
className: cn("hover:underline transition-colors", className),
|
|
537
537
|
...props
|
|
538
538
|
}
|
|
539
539
|
);
|
|
@@ -482,7 +482,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
482
482
|
{
|
|
483
483
|
"data-slot": "breadcrumb-list",
|
|
484
484
|
className: cn(
|
|
485
|
-
"
|
|
485
|
+
"flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",
|
|
486
486
|
className
|
|
487
487
|
),
|
|
488
488
|
...props
|
|
@@ -509,7 +509,7 @@ function BreadcrumbLink({
|
|
|
509
509
|
Comp,
|
|
510
510
|
{
|
|
511
511
|
"data-slot": "breadcrumb-link",
|
|
512
|
-
className: cn("hover:
|
|
512
|
+
className: cn("hover:underline transition-colors", className),
|
|
513
513
|
...props
|
|
514
514
|
}
|
|
515
515
|
);
|
|
@@ -474,7 +474,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
474
474
|
{
|
|
475
475
|
"data-slot": "breadcrumb-list",
|
|
476
476
|
className: cn(
|
|
477
|
-
"
|
|
477
|
+
"flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",
|
|
478
478
|
className
|
|
479
479
|
),
|
|
480
480
|
...props
|
|
@@ -501,7 +501,7 @@ function BreadcrumbLink({
|
|
|
501
501
|
Comp,
|
|
502
502
|
{
|
|
503
503
|
"data-slot": "breadcrumb-link",
|
|
504
|
-
className: cn("hover:
|
|
504
|
+
className: cn("hover:underline transition-colors", className),
|
|
505
505
|
...props
|
|
506
506
|
}
|
|
507
507
|
);
|
|
@@ -514,7 +514,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
514
514
|
role: "link",
|
|
515
515
|
"aria-disabled": "true",
|
|
516
516
|
"aria-current": "page",
|
|
517
|
-
className: cn("
|
|
517
|
+
className: cn("font-normal", className),
|
|
518
518
|
...props
|
|
519
519
|
}
|
|
520
520
|
);
|
|
@@ -452,7 +452,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
452
452
|
{
|
|
453
453
|
"data-slot": "breadcrumb-list",
|
|
454
454
|
className: cn(
|
|
455
|
-
"
|
|
455
|
+
"flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",
|
|
456
456
|
className
|
|
457
457
|
),
|
|
458
458
|
...props
|
|
@@ -479,7 +479,7 @@ function BreadcrumbLink({
|
|
|
479
479
|
Comp,
|
|
480
480
|
{
|
|
481
481
|
"data-slot": "breadcrumb-link",
|
|
482
|
-
className: cn("hover:
|
|
482
|
+
className: cn("hover:underline transition-colors", className),
|
|
483
483
|
...props
|
|
484
484
|
}
|
|
485
485
|
);
|
|
@@ -492,7 +492,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
492
492
|
role: "link",
|
|
493
493
|
"aria-disabled": "true",
|
|
494
494
|
"aria-current": "page",
|
|
495
|
-
className: cn("
|
|
495
|
+
className: cn("font-normal", className),
|
|
496
496
|
...props
|
|
497
497
|
}
|
|
498
498
|
);
|
|
@@ -505,7 +505,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
505
505
|
{
|
|
506
506
|
"data-slot": "breadcrumb-list",
|
|
507
507
|
className: cn(
|
|
508
|
-
"
|
|
508
|
+
"flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",
|
|
509
509
|
className
|
|
510
510
|
),
|
|
511
511
|
...props
|
|
@@ -532,7 +532,7 @@ function BreadcrumbLink({
|
|
|
532
532
|
Comp,
|
|
533
533
|
{
|
|
534
534
|
"data-slot": "breadcrumb-link",
|
|
535
|
-
className: cn("hover:
|
|
535
|
+
className: cn("hover:underline transition-colors", className),
|
|
536
536
|
...props
|
|
537
537
|
}
|
|
538
538
|
);
|
|
@@ -545,7 +545,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
545
545
|
role: "link",
|
|
546
546
|
"aria-disabled": "true",
|
|
547
547
|
"aria-current": "page",
|
|
548
|
-
className: cn("
|
|
548
|
+
className: cn("font-normal", className),
|
|
549
549
|
...props
|
|
550
550
|
}
|
|
551
551
|
);
|
|
@@ -482,7 +482,7 @@ function BreadcrumbList({ className, ...props }) {
|
|
|
482
482
|
{
|
|
483
483
|
"data-slot": "breadcrumb-list",
|
|
484
484
|
className: cn(
|
|
485
|
-
"
|
|
485
|
+
"flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",
|
|
486
486
|
className
|
|
487
487
|
),
|
|
488
488
|
...props
|
|
@@ -509,7 +509,7 @@ function BreadcrumbLink({
|
|
|
509
509
|
Comp,
|
|
510
510
|
{
|
|
511
511
|
"data-slot": "breadcrumb-link",
|
|
512
|
-
className: cn("hover:
|
|
512
|
+
className: cn("hover:underline transition-colors", className),
|
|
513
513
|
...props
|
|
514
514
|
}
|
|
515
515
|
);
|
|
@@ -522,7 +522,7 @@ function BreadcrumbPage({ className, ...props }) {
|
|
|
522
522
|
role: "link",
|
|
523
523
|
"aria-disabled": "true",
|
|
524
524
|
"aria-current": "page",
|
|
525
|
-
className: cn("
|
|
525
|
+
className: cn("font-normal", className),
|
|
526
526
|
...props
|
|
527
527
|
}
|
|
528
528
|
);
|
|
@@ -944,7 +944,7 @@ function HeroEventRegistration({
|
|
|
944
944
|
locationSublabel,
|
|
945
945
|
locationSlot,
|
|
946
946
|
background,
|
|
947
|
-
containerClassName = "mx-auto w-full max-w-full md:max-w-7xl relative z-10 px-6
|
|
947
|
+
containerClassName = "mx-auto w-full max-w-full md:max-w-7xl relative z-10 px-6",
|
|
948
948
|
spacing = "py-16 md:py-40",
|
|
949
949
|
pattern,
|
|
950
950
|
patternOpacity,
|
|
@@ -923,7 +923,7 @@ function HeroEventRegistration({
|
|
|
923
923
|
locationSublabel,
|
|
924
924
|
locationSlot,
|
|
925
925
|
background,
|
|
926
|
-
containerClassName = "mx-auto w-full max-w-full md:max-w-7xl relative z-10 px-6
|
|
926
|
+
containerClassName = "mx-auto w-full max-w-full md:max-w-7xl relative z-10 px-6",
|
|
927
927
|
spacing = "py-16 md:py-40",
|
|
928
928
|
pattern,
|
|
929
929
|
patternOpacity,
|