@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
|
@@ -897,15 +897,22 @@ function BlogGridNinePosts({
|
|
|
897
897
|
postCardClassName,
|
|
898
898
|
ctaClassName,
|
|
899
899
|
optixFlowConfig,
|
|
900
|
-
background
|
|
901
|
-
spacing
|
|
900
|
+
background,
|
|
901
|
+
spacing,
|
|
902
902
|
pattern,
|
|
903
903
|
patternOpacity
|
|
904
904
|
}) {
|
|
905
905
|
const renderedCtaAction = React.useMemo(() => {
|
|
906
906
|
if (ctaSlot) return ctaSlot;
|
|
907
907
|
if (!ctaAction) return null;
|
|
908
|
-
const {
|
|
908
|
+
const {
|
|
909
|
+
label,
|
|
910
|
+
icon,
|
|
911
|
+
iconAfter,
|
|
912
|
+
children,
|
|
913
|
+
className: actionClassName,
|
|
914
|
+
...pressableProps
|
|
915
|
+
} = ctaAction;
|
|
909
916
|
return /* @__PURE__ */ jsx(
|
|
910
917
|
Pressable,
|
|
911
918
|
{
|
|
@@ -971,11 +978,38 @@ function BlogGridNinePosts({
|
|
|
971
978
|
patternOpacity,
|
|
972
979
|
children: /* @__PURE__ */ jsxs("div", { className: cn("container", containerClassName), children: [
|
|
973
980
|
/* @__PURE__ */ jsxs("div", { className: cn("mb-8 md:mb-14 lg:mb-16", headerClassName), children: [
|
|
974
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-start justify-between gap-8", children: /* @__PURE__ */ jsx("div", { children: heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
981
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-start justify-between gap-8", children: /* @__PURE__ */ jsx("div", { children: heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
982
|
+
"h2",
|
|
983
|
+
{
|
|
984
|
+
className: cn(
|
|
985
|
+
"mb-4 w-full text-4xl font-medium md:mb-5 md:text-5xl lg:mb-6 lg:text-6xl",
|
|
986
|
+
headingClassName
|
|
987
|
+
),
|
|
988
|
+
children: heading
|
|
989
|
+
}
|
|
990
|
+
) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })) }) }),
|
|
975
991
|
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: descriptionClassName, children: description }) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
|
|
976
992
|
] }),
|
|
977
|
-
/* @__PURE__ */ jsx(
|
|
978
|
-
|
|
993
|
+
/* @__PURE__ */ jsx(
|
|
994
|
+
"div",
|
|
995
|
+
{
|
|
996
|
+
className: cn(
|
|
997
|
+
"grid gap-x-4 gap-y-8 md:grid-cols-2 lg:gap-x-6 lg:gap-y-12 2xl:grid-cols-3",
|
|
998
|
+
postsClassName
|
|
999
|
+
),
|
|
1000
|
+
children: renderedPosts
|
|
1001
|
+
}
|
|
1002
|
+
),
|
|
1003
|
+
(ctaSlot || ctaAction) && /* @__PURE__ */ jsx(
|
|
1004
|
+
"div",
|
|
1005
|
+
{
|
|
1006
|
+
className: cn(
|
|
1007
|
+
"mt-8 flex flex-col items-center py-2 md:hidden",
|
|
1008
|
+
ctaClassName
|
|
1009
|
+
),
|
|
1010
|
+
children: renderedCtaAction
|
|
1011
|
+
}
|
|
1012
|
+
)
|
|
979
1013
|
] })
|
|
980
1014
|
}
|
|
981
1015
|
);
|
|
@@ -993,15 +993,22 @@ function BlogHorizontalCards({
|
|
|
993
993
|
postCardClassName,
|
|
994
994
|
ctaClassName,
|
|
995
995
|
optixFlowConfig,
|
|
996
|
-
background
|
|
997
|
-
spacing
|
|
996
|
+
background,
|
|
997
|
+
spacing,
|
|
998
998
|
pattern,
|
|
999
999
|
patternOpacity
|
|
1000
1000
|
}) {
|
|
1001
1001
|
const ctaContent = React__namespace.useMemo(() => {
|
|
1002
1002
|
if (ctaSlot) return ctaSlot;
|
|
1003
1003
|
if (!ctaAction) return null;
|
|
1004
|
-
const {
|
|
1004
|
+
const {
|
|
1005
|
+
label,
|
|
1006
|
+
icon,
|
|
1007
|
+
iconAfter,
|
|
1008
|
+
children,
|
|
1009
|
+
className: actionClassName,
|
|
1010
|
+
...pressableProps
|
|
1011
|
+
} = ctaAction;
|
|
1005
1012
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1006
1013
|
Pressable,
|
|
1007
1014
|
{
|
|
@@ -1029,7 +1036,10 @@ function BlogHorizontalCards({
|
|
|
1029
1036
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1030
1037
|
Card,
|
|
1031
1038
|
{
|
|
1032
|
-
className: cn(
|
|
1039
|
+
className: cn(
|
|
1040
|
+
"overflow-hidden border-0 bg-transparent shadow-none",
|
|
1041
|
+
postCardClassName
|
|
1042
|
+
),
|
|
1033
1043
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6 sm:flex-row", children: [
|
|
1034
1044
|
post.image && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1035
1045
|
Pressable,
|
|
@@ -1091,8 +1101,26 @@ function BlogHorizontalCards({
|
|
|
1091
1101
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("container mx-auto", containerClassName), children: [
|
|
1092
1102
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mx-auto max-w-3xl text-center", headerClassName), children: [
|
|
1093
1103
|
badge && (typeof badge === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "secondary", className: cn("mb-6", badgeClassName), children: badge }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-6", badgeClassName), children: badge })),
|
|
1094
|
-
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1095
|
-
|
|
1104
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1105
|
+
"h2",
|
|
1106
|
+
{
|
|
1107
|
+
className: cn(
|
|
1108
|
+
"mb-3 text-3xl font-semibold text-pretty md:mb-4 md:text-5xl lg:mb-6",
|
|
1109
|
+
headingClassName
|
|
1110
|
+
),
|
|
1111
|
+
children: heading
|
|
1112
|
+
}
|
|
1113
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
|
|
1114
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1115
|
+
"p",
|
|
1116
|
+
{
|
|
1117
|
+
className: cn(
|
|
1118
|
+
"mb-12 text-muted-foreground md:text-base lg:text-lg",
|
|
1119
|
+
descriptionClassName
|
|
1120
|
+
),
|
|
1121
|
+
children: description
|
|
1122
|
+
}
|
|
1123
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description }))
|
|
1096
1124
|
] }),
|
|
1097
1125
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mx-auto max-w-5xl space-y-12", postsClassName), children: postsContent }),
|
|
1098
1126
|
(ctaSlot || ctaAction) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-16 text-center", ctaClassName), children: ctaContent })
|
|
@@ -972,15 +972,22 @@ function BlogHorizontalCards({
|
|
|
972
972
|
postCardClassName,
|
|
973
973
|
ctaClassName,
|
|
974
974
|
optixFlowConfig,
|
|
975
|
-
background
|
|
976
|
-
spacing
|
|
975
|
+
background,
|
|
976
|
+
spacing,
|
|
977
977
|
pattern,
|
|
978
978
|
patternOpacity
|
|
979
979
|
}) {
|
|
980
980
|
const ctaContent = React.useMemo(() => {
|
|
981
981
|
if (ctaSlot) return ctaSlot;
|
|
982
982
|
if (!ctaAction) return null;
|
|
983
|
-
const {
|
|
983
|
+
const {
|
|
984
|
+
label,
|
|
985
|
+
icon,
|
|
986
|
+
iconAfter,
|
|
987
|
+
children,
|
|
988
|
+
className: actionClassName,
|
|
989
|
+
...pressableProps
|
|
990
|
+
} = ctaAction;
|
|
984
991
|
return /* @__PURE__ */ jsx(
|
|
985
992
|
Pressable,
|
|
986
993
|
{
|
|
@@ -1008,7 +1015,10 @@ function BlogHorizontalCards({
|
|
|
1008
1015
|
return /* @__PURE__ */ jsx(
|
|
1009
1016
|
Card,
|
|
1010
1017
|
{
|
|
1011
|
-
className: cn(
|
|
1018
|
+
className: cn(
|
|
1019
|
+
"overflow-hidden border-0 bg-transparent shadow-none",
|
|
1020
|
+
postCardClassName
|
|
1021
|
+
),
|
|
1012
1022
|
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-6 sm:flex-row", children: [
|
|
1013
1023
|
post.image && /* @__PURE__ */ jsx("div", { className: "shrink-0", children: /* @__PURE__ */ jsx(
|
|
1014
1024
|
Pressable,
|
|
@@ -1070,8 +1080,26 @@ function BlogHorizontalCards({
|
|
|
1070
1080
|
children: /* @__PURE__ */ jsxs("div", { className: cn("container mx-auto", containerClassName), children: [
|
|
1071
1081
|
/* @__PURE__ */ jsxs("div", { className: cn("mx-auto max-w-3xl text-center", headerClassName), children: [
|
|
1072
1082
|
badge && (typeof badge === "string" ? /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: cn("mb-6", badgeClassName), children: badge }) : /* @__PURE__ */ jsx("div", { className: cn("mb-6", badgeClassName), children: badge })),
|
|
1073
|
-
heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
1074
|
-
|
|
1083
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
1084
|
+
"h2",
|
|
1085
|
+
{
|
|
1086
|
+
className: cn(
|
|
1087
|
+
"mb-3 text-3xl font-semibold text-pretty md:mb-4 md:text-5xl lg:mb-6",
|
|
1088
|
+
headingClassName
|
|
1089
|
+
),
|
|
1090
|
+
children: heading
|
|
1091
|
+
}
|
|
1092
|
+
) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
|
|
1093
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
1094
|
+
"p",
|
|
1095
|
+
{
|
|
1096
|
+
className: cn(
|
|
1097
|
+
"mb-12 text-muted-foreground md:text-base lg:text-lg",
|
|
1098
|
+
descriptionClassName
|
|
1099
|
+
),
|
|
1100
|
+
children: description
|
|
1101
|
+
}
|
|
1102
|
+
) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
|
|
1075
1103
|
] }),
|
|
1076
1104
|
/* @__PURE__ */ jsx("div", { className: cn("mx-auto max-w-5xl space-y-12", postsClassName), children: postsContent }),
|
|
1077
1105
|
(ctaSlot || ctaAction) && /* @__PURE__ */ jsx("div", { className: cn("mt-16 text-center", ctaClassName), children: ctaContent })
|
|
@@ -964,8 +964,8 @@ function BlogHorizontalTimelineComponent({
|
|
|
964
964
|
postImageClassName,
|
|
965
965
|
postCardClassName,
|
|
966
966
|
optixFlowConfig,
|
|
967
|
-
background
|
|
968
|
-
spacing
|
|
967
|
+
background,
|
|
968
|
+
spacing,
|
|
969
969
|
pattern,
|
|
970
970
|
patternOpacity
|
|
971
971
|
}) {
|
|
@@ -981,17 +981,29 @@ function BlogHorizontalTimelineComponent({
|
|
|
981
981
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
982
982
|
"div",
|
|
983
983
|
{
|
|
984
|
-
className: cn(
|
|
984
|
+
className: cn(
|
|
985
|
+
"flex flex-col items-center gap-16 md:flex-row",
|
|
986
|
+
postItemClassName
|
|
987
|
+
),
|
|
985
988
|
children: [
|
|
986
|
-
post.image && /* @__PURE__ */ jsxRuntime.jsx(
|
|
987
|
-
|
|
989
|
+
post.image && /* @__PURE__ */ jsxRuntime.jsx(
|
|
990
|
+
"div",
|
|
988
991
|
{
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
992
|
+
className: cn(
|
|
993
|
+
"flex h-80 w-full items-center justify-center overflow-hidden rounded-3xl bg-muted md:w-140",
|
|
994
|
+
postImageClassName
|
|
995
|
+
),
|
|
996
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
997
|
+
img.Img,
|
|
998
|
+
{
|
|
999
|
+
src: post.image,
|
|
1000
|
+
className: "h-full w-full object-cover",
|
|
1001
|
+
alt: postImageAlt,
|
|
1002
|
+
optixFlowConfig
|
|
1003
|
+
}
|
|
1004
|
+
)
|
|
993
1005
|
}
|
|
994
|
-
)
|
|
1006
|
+
),
|
|
995
1007
|
/* @__PURE__ */ jsxRuntime.jsx(Card, { className: cn("border-none shadow-none", postCardClassName), children: /* @__PURE__ */ jsxRuntime.jsx(CardContent, { className: "p-0", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
996
1008
|
"div",
|
|
997
1009
|
{
|
|
@@ -1027,7 +1039,15 @@ function BlogHorizontalTimelineComponent({
|
|
|
1027
1039
|
postId
|
|
1028
1040
|
);
|
|
1029
1041
|
});
|
|
1030
|
-
}, [
|
|
1042
|
+
}, [
|
|
1043
|
+
postsSlot,
|
|
1044
|
+
posts,
|
|
1045
|
+
postItemClassName,
|
|
1046
|
+
postImageClassName,
|
|
1047
|
+
postCardClassName,
|
|
1048
|
+
optixFlowConfig,
|
|
1049
|
+
readText
|
|
1050
|
+
]);
|
|
1031
1051
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1032
1052
|
Section,
|
|
1033
1053
|
{
|
|
@@ -1037,7 +1057,16 @@ function BlogHorizontalTimelineComponent({
|
|
|
1037
1057
|
pattern,
|
|
1038
1058
|
patternOpacity,
|
|
1039
1059
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("container", containerClassName), children: [
|
|
1040
|
-
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1060
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1061
|
+
"h1",
|
|
1062
|
+
{
|
|
1063
|
+
className: cn(
|
|
1064
|
+
"mb-12 max-w-lg font-sans text-5xl font-extrabold tracking-tight text-foreground md:text-7xl",
|
|
1065
|
+
headingClassName
|
|
1066
|
+
),
|
|
1067
|
+
children: heading
|
|
1068
|
+
}
|
|
1069
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-12", headingClassName), children: heading })),
|
|
1041
1070
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col", postsClassName), children: renderPosts })
|
|
1042
1071
|
] })
|
|
1043
1072
|
}
|
|
@@ -943,8 +943,8 @@ function BlogHorizontalTimelineComponent({
|
|
|
943
943
|
postImageClassName,
|
|
944
944
|
postCardClassName,
|
|
945
945
|
optixFlowConfig,
|
|
946
|
-
background
|
|
947
|
-
spacing
|
|
946
|
+
background,
|
|
947
|
+
spacing,
|
|
948
948
|
pattern,
|
|
949
949
|
patternOpacity
|
|
950
950
|
}) {
|
|
@@ -960,17 +960,29 @@ function BlogHorizontalTimelineComponent({
|
|
|
960
960
|
return /* @__PURE__ */ jsxs(
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
963
|
-
className: cn(
|
|
963
|
+
className: cn(
|
|
964
|
+
"flex flex-col items-center gap-16 md:flex-row",
|
|
965
|
+
postItemClassName
|
|
966
|
+
),
|
|
964
967
|
children: [
|
|
965
|
-
post.image && /* @__PURE__ */ jsx(
|
|
966
|
-
|
|
968
|
+
post.image && /* @__PURE__ */ jsx(
|
|
969
|
+
"div",
|
|
967
970
|
{
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
971
|
+
className: cn(
|
|
972
|
+
"flex h-80 w-full items-center justify-center overflow-hidden rounded-3xl bg-muted md:w-140",
|
|
973
|
+
postImageClassName
|
|
974
|
+
),
|
|
975
|
+
children: /* @__PURE__ */ jsx(
|
|
976
|
+
Img,
|
|
977
|
+
{
|
|
978
|
+
src: post.image,
|
|
979
|
+
className: "h-full w-full object-cover",
|
|
980
|
+
alt: postImageAlt,
|
|
981
|
+
optixFlowConfig
|
|
982
|
+
}
|
|
983
|
+
)
|
|
972
984
|
}
|
|
973
|
-
)
|
|
985
|
+
),
|
|
974
986
|
/* @__PURE__ */ jsx(Card, { className: cn("border-none shadow-none", postCardClassName), children: /* @__PURE__ */ jsx(CardContent, { className: "p-0", children: /* @__PURE__ */ jsxs(
|
|
975
987
|
"div",
|
|
976
988
|
{
|
|
@@ -1006,7 +1018,15 @@ function BlogHorizontalTimelineComponent({
|
|
|
1006
1018
|
postId
|
|
1007
1019
|
);
|
|
1008
1020
|
});
|
|
1009
|
-
}, [
|
|
1021
|
+
}, [
|
|
1022
|
+
postsSlot,
|
|
1023
|
+
posts,
|
|
1024
|
+
postItemClassName,
|
|
1025
|
+
postImageClassName,
|
|
1026
|
+
postCardClassName,
|
|
1027
|
+
optixFlowConfig,
|
|
1028
|
+
readText
|
|
1029
|
+
]);
|
|
1010
1030
|
return /* @__PURE__ */ jsx(
|
|
1011
1031
|
Section,
|
|
1012
1032
|
{
|
|
@@ -1016,7 +1036,16 @@ function BlogHorizontalTimelineComponent({
|
|
|
1016
1036
|
pattern,
|
|
1017
1037
|
patternOpacity,
|
|
1018
1038
|
children: /* @__PURE__ */ jsxs("div", { className: cn("container", containerClassName), children: [
|
|
1019
|
-
heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
1039
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
1040
|
+
"h1",
|
|
1041
|
+
{
|
|
1042
|
+
className: cn(
|
|
1043
|
+
"mb-12 max-w-lg font-sans text-5xl font-extrabold tracking-tight text-foreground md:text-7xl",
|
|
1044
|
+
headingClassName
|
|
1045
|
+
),
|
|
1046
|
+
children: heading
|
|
1047
|
+
}
|
|
1048
|
+
) : /* @__PURE__ */ jsx("div", { className: cn("mb-12", headingClassName), children: heading })),
|
|
1020
1049
|
/* @__PURE__ */ jsx("div", { className: cn("flex flex-col", postsClassName), children: renderPosts })
|
|
1021
1050
|
] })
|
|
1022
1051
|
}
|
|
@@ -836,8 +836,8 @@ function BlogMasonryFeaturedComponent({
|
|
|
836
836
|
featuredImageClassName,
|
|
837
837
|
postCardClassName,
|
|
838
838
|
optixFlowConfig,
|
|
839
|
-
background
|
|
840
|
-
spacing
|
|
839
|
+
background,
|
|
840
|
+
spacing,
|
|
841
841
|
pattern,
|
|
842
842
|
patternOpacity
|
|
843
843
|
}) {
|
|
@@ -847,59 +847,85 @@ function BlogMasonryFeaturedComponent({
|
|
|
847
847
|
if (featuredSlot) return featuredSlot;
|
|
848
848
|
if (!featuredPost) return null;
|
|
849
849
|
const postHref = featuredPost.href || featuredPost.url || featuredPost.link || "#";
|
|
850
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
851
|
-
|
|
850
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
851
|
+
"div",
|
|
852
852
|
{
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
853
|
+
className: cn(
|
|
854
|
+
"relative md:row-span-2 lg:col-span-2",
|
|
855
|
+
featuredClassName
|
|
856
|
+
),
|
|
857
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
858
|
+
Pressable,
|
|
859
|
+
{
|
|
860
|
+
href: postHref,
|
|
861
|
+
className: "block h-fit rounded-lg p-3 md:top-0",
|
|
862
|
+
children: [
|
|
863
|
+
featuredPost.image && /* @__PURE__ */ jsxRuntime.jsx(
|
|
864
|
+
img.Img,
|
|
865
|
+
{
|
|
866
|
+
src: featuredPost.image,
|
|
867
|
+
alt: typeof featuredPost.title === "string" ? featuredPost.title : "Featured content",
|
|
868
|
+
className: cn(
|
|
869
|
+
"h-48 w-full rounded-lg object-cover hover:opacity-80 md:h-80 lg:h-96",
|
|
870
|
+
featuredImageClassName
|
|
871
|
+
),
|
|
872
|
+
optixFlowConfig
|
|
873
|
+
}
|
|
874
|
+
),
|
|
875
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-5", children: [
|
|
876
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2.5 flex items-center gap-1 text-sm text-muted-foreground", children: [
|
|
877
|
+
(featuredPost.date || featuredPost.published) && /* @__PURE__ */ jsxRuntime.jsx("time", { children: featuredPost.date || featuredPost.published }),
|
|
878
|
+
(featuredPost.date || featuredPost.published) && featuredPost.author && "\xB7",
|
|
879
|
+
featuredPost.author && /* @__PURE__ */ jsxRuntime.jsx("span", { children: featuredPost.author })
|
|
880
|
+
] }),
|
|
881
|
+
featuredPost.title && (typeof featuredPost.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg md:text-3xl lg:text-4xl", children: featuredPost.title }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-lg md:text-3xl lg:text-4xl", children: featuredPost.title })),
|
|
882
|
+
(featuredPost.description || featuredPost.summary) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-4 text-muted-foreground", children: featuredPost.description || featuredPost.summary })
|
|
883
|
+
] })
|
|
884
|
+
]
|
|
885
|
+
}
|
|
886
|
+
)
|
|
875
887
|
}
|
|
876
|
-
)
|
|
877
|
-
}, [
|
|
888
|
+
);
|
|
889
|
+
}, [
|
|
890
|
+
featuredSlot,
|
|
891
|
+
featuredPost,
|
|
892
|
+
featuredClassName,
|
|
893
|
+
featuredImageClassName,
|
|
894
|
+
optixFlowConfig
|
|
895
|
+
]);
|
|
878
896
|
const otherPostsContent = React__namespace.useMemo(() => {
|
|
879
897
|
if (postsSlot) return postsSlot;
|
|
880
898
|
if (!otherPosts || otherPosts.length === 0) return null;
|
|
881
899
|
return otherPosts.map((post) => {
|
|
882
900
|
const postHref = post.href || post.url || post.link || "#";
|
|
883
901
|
const postId = post.id || String(post.title) || Math.random().toString();
|
|
884
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
902
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
903
|
+
Pressable,
|
|
904
|
+
{
|
|
905
|
+
href: postHref,
|
|
906
|
+
className: cn("rounded-lg p-3", postCardClassName),
|
|
907
|
+
children: [
|
|
908
|
+
post.image && /* @__PURE__ */ jsxRuntime.jsx(
|
|
909
|
+
img.Img,
|
|
910
|
+
{
|
|
911
|
+
src: post.image,
|
|
912
|
+
alt: typeof post.title === "string" ? post.title : "Content item",
|
|
913
|
+
className: "h-48 w-full rounded-lg object-cover hover:opacity-80",
|
|
914
|
+
optixFlowConfig
|
|
915
|
+
}
|
|
916
|
+
),
|
|
917
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-5", children: [
|
|
918
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2.5 flex items-center gap-1 text-sm text-muted-foreground", children: [
|
|
919
|
+
(post.date || post.published) && /* @__PURE__ */ jsxRuntime.jsx("time", { children: post.date || post.published }),
|
|
920
|
+
(post.date || post.published) && post.author && "\xB7",
|
|
921
|
+
post.author && /* @__PURE__ */ jsxRuntime.jsx("span", { children: post.author })
|
|
922
|
+
] }),
|
|
923
|
+
post.title && (typeof post.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg", children: post.title }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-lg", children: post.title }))
|
|
924
|
+
] })
|
|
925
|
+
]
|
|
926
|
+
},
|
|
927
|
+
postId
|
|
928
|
+
);
|
|
903
929
|
});
|
|
904
930
|
}, [postsSlot, otherPosts, postCardClassName, optixFlowConfig]);
|
|
905
931
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -911,11 +937,29 @@ function BlogMasonryFeaturedComponent({
|
|
|
911
937
|
pattern,
|
|
912
938
|
patternOpacity,
|
|
913
939
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("container", containerClassName), children: [
|
|
914
|
-
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
940
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
941
|
+
"h1",
|
|
942
|
+
{
|
|
943
|
+
className: cn(
|
|
944
|
+
"mb-12 text-center text-4xl font-medium md:text-7xl",
|
|
945
|
+
headingClassName
|
|
946
|
+
),
|
|
947
|
+
children: heading
|
|
948
|
+
}
|
|
949
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
|
|
950
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
951
|
+
"div",
|
|
952
|
+
{
|
|
953
|
+
className: cn(
|
|
954
|
+
"xs:grid-cols-1 mt-24 grid gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
955
|
+
postsClassName
|
|
956
|
+
),
|
|
957
|
+
children: [
|
|
958
|
+
featuredPostContent,
|
|
959
|
+
otherPostsContent
|
|
960
|
+
]
|
|
961
|
+
}
|
|
962
|
+
)
|
|
919
963
|
] })
|
|
920
964
|
}
|
|
921
965
|
);
|