@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.
Files changed (61) hide show
  1. package/dist/about-startup-team.cjs +2 -2
  2. package/dist/about-startup-team.js +2 -2
  3. package/dist/article-breadcrumb-social.cjs +434 -215
  4. package/dist/article-breadcrumb-social.d.cts +19 -1
  5. package/dist/article-breadcrumb-social.d.ts +19 -1
  6. package/dist/article-breadcrumb-social.js +434 -214
  7. package/dist/article-chapters-author.cjs +422 -204
  8. package/dist/article-chapters-author.d.cts +19 -1
  9. package/dist/article-chapters-author.d.ts +19 -1
  10. package/dist/article-chapters-author.js +422 -203
  11. package/dist/article-compact-toc.cjs +429 -73
  12. package/dist/article-compact-toc.d.cts +19 -1
  13. package/dist/article-compact-toc.d.ts +19 -1
  14. package/dist/article-compact-toc.js +430 -73
  15. package/dist/article-hero-prose.cjs +394 -347
  16. package/dist/article-hero-prose.d.cts +19 -1
  17. package/dist/article-hero-prose.d.ts +19 -1
  18. package/dist/article-hero-prose.js +396 -348
  19. package/dist/article-sidebar-sticky.cjs +398 -152
  20. package/dist/article-sidebar-sticky.d.cts +19 -1
  21. package/dist/article-sidebar-sticky.d.ts +19 -1
  22. package/dist/article-sidebar-sticky.js +400 -153
  23. package/dist/article-split-animated.cjs +422 -35
  24. package/dist/article-split-animated.d.cts +19 -1
  25. package/dist/article-split-animated.d.ts +19 -1
  26. package/dist/article-split-animated.js +423 -35
  27. package/dist/article-toc-sidebar.cjs +417 -356
  28. package/dist/article-toc-sidebar.d.cts +19 -1
  29. package/dist/article-toc-sidebar.d.ts +19 -1
  30. package/dist/article-toc-sidebar.js +417 -355
  31. package/dist/blog-cards-read-time.cjs +66 -27
  32. package/dist/blog-cards-read-time.js +66 -27
  33. package/dist/blog-cards-tagline-cta.cjs +64 -14
  34. package/dist/blog-cards-tagline-cta.js +64 -14
  35. package/dist/blog-carousel-apple.cjs +1255 -0
  36. package/dist/blog-carousel-apple.d.cts +113 -0
  37. package/dist/blog-carousel-apple.d.ts +113 -0
  38. package/dist/blog-carousel-apple.js +1234 -0
  39. package/dist/blog-category-overlay.cjs +77 -15
  40. package/dist/blog-category-overlay.js +77 -15
  41. package/dist/blog-featured-popular.cjs +72 -14
  42. package/dist/blog-featured-popular.js +72 -14
  43. package/dist/blog-filtered-results.cjs +122 -39
  44. package/dist/blog-filtered-results.js +122 -39
  45. package/dist/blog-grid-author-cards.cjs +40 -6
  46. package/dist/blog-grid-author-cards.js +40 -6
  47. package/dist/blog-grid-nine-posts.cjs +40 -6
  48. package/dist/blog-grid-nine-posts.js +40 -6
  49. package/dist/blog-horizontal-cards.cjs +34 -6
  50. package/dist/blog-horizontal-cards.js +34 -6
  51. package/dist/blog-horizontal-timeline.cjs +41 -12
  52. package/dist/blog-horizontal-timeline.js +41 -12
  53. package/dist/blog-masonry-featured.cjs +96 -52
  54. package/dist/blog-masonry-featured.js +96 -52
  55. package/dist/blog-related-articles.cjs +47 -9
  56. package/dist/blog-related-articles.js +47 -9
  57. package/dist/blog-tech-insights.cjs +78 -14
  58. package/dist/blog-tech-insights.js +78 -14
  59. package/dist/registry.cjs +1036 -687
  60. package/dist/registry.js +1036 -687
  61. package/package.json +1 -1
@@ -897,15 +897,22 @@ function BlogGridNinePosts({
897
897
  postCardClassName,
898
898
  ctaClassName,
899
899
  optixFlowConfig,
900
- background = "white",
901
- spacing = "xl",
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 { label, icon, iconAfter, children, className: actionClassName, ...pressableProps } = ctaAction;
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("h2", { className: cn("mb-4 w-full text-4xl font-medium md:mb-5 md:text-5xl lg:mb-6 lg:text-6xl", headingClassName), children: heading }) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })) }) }),
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("div", { className: cn("grid gap-x-4 gap-y-8 md:grid-cols-2 lg:gap-x-6 lg:gap-y-12 2xl:grid-cols-3", postsClassName), children: renderedPosts }),
978
- (ctaSlot || ctaAction) && /* @__PURE__ */ jsx("div", { className: cn("mt-8 flex flex-col items-center py-2 md:hidden", ctaClassName), children: renderedCtaAction })
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 = "white",
997
- spacing = "xl",
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 { label, icon, iconAfter, children, className: actionClassName, ...pressableProps } = ctaAction;
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("overflow-hidden border-0 bg-transparent shadow-none", postCardClassName),
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("h2", { className: cn("mb-3 text-3xl font-semibold text-pretty md:mb-4 md:text-5xl lg:mb-6", headingClassName), children: heading }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
1095
- description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("mb-12 text-muted-foreground md:text-base lg:text-lg", descriptionClassName), children: description }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description }))
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 = "white",
976
- spacing = "xl",
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 { label, icon, iconAfter, children, className: actionClassName, ...pressableProps } = ctaAction;
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("overflow-hidden border-0 bg-transparent shadow-none", postCardClassName),
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("h2", { className: cn("mb-3 text-3xl font-semibold text-pretty md:mb-4 md:text-5xl lg:mb-6", headingClassName), children: heading }) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
1074
- description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mb-12 text-muted-foreground md:text-base lg:text-lg", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description }))
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 = "white",
968
- spacing = "xl",
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("flex flex-col items-center gap-16 md:flex-row", postItemClassName),
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("div", { className: cn("flex h-80 w-full items-center justify-center overflow-hidden rounded-3xl bg-muted md:w-140", postImageClassName), children: /* @__PURE__ */ jsxRuntime.jsx(
987
- img.Img,
989
+ post.image && /* @__PURE__ */ jsxRuntime.jsx(
990
+ "div",
988
991
  {
989
- src: post.image,
990
- className: "h-full w-full object-cover",
991
- alt: postImageAlt,
992
- optixFlowConfig
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
- }, [postsSlot, posts, postItemClassName, postImageClassName, postCardClassName, optixFlowConfig, readText]);
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("h1", { className: cn("mb-12 max-w-lg font-sans text-5xl font-extrabold tracking-tight text-foreground md:text-7xl", headingClassName), children: heading }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-12", headingClassName), children: heading })),
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 = "white",
947
- spacing = "xl",
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("flex flex-col items-center gap-16 md:flex-row", postItemClassName),
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("div", { className: cn("flex h-80 w-full items-center justify-center overflow-hidden rounded-3xl bg-muted md:w-140", postImageClassName), children: /* @__PURE__ */ jsx(
966
- Img,
968
+ post.image && /* @__PURE__ */ jsx(
969
+ "div",
967
970
  {
968
- src: post.image,
969
- className: "h-full w-full object-cover",
970
- alt: postImageAlt,
971
- optixFlowConfig
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
- }, [postsSlot, posts, postItemClassName, postImageClassName, postCardClassName, optixFlowConfig, readText]);
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("h1", { className: cn("mb-12 max-w-lg font-sans text-5xl font-extrabold tracking-tight text-foreground md:text-7xl", headingClassName), children: heading }) : /* @__PURE__ */ jsx("div", { className: cn("mb-12", headingClassName), children: heading })),
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 = "white",
840
- spacing = "xl",
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("div", { className: cn("relative md:row-span-2 lg:col-span-2", featuredClassName), children: /* @__PURE__ */ jsxRuntime.jsxs(
851
- Pressable,
850
+ return /* @__PURE__ */ jsxRuntime.jsx(
851
+ "div",
852
852
  {
853
- href: postHref,
854
- className: "block h-fit rounded-lg p-3 md:top-0",
855
- children: [
856
- featuredPost.image && /* @__PURE__ */ jsxRuntime.jsx(
857
- img.Img,
858
- {
859
- src: featuredPost.image,
860
- alt: typeof featuredPost.title === "string" ? featuredPost.title : "Featured content",
861
- className: cn("h-48 w-full rounded-lg object-cover hover:opacity-80 md:h-80 lg:h-96", featuredImageClassName),
862
- optixFlowConfig
863
- }
864
- ),
865
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-5", children: [
866
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2.5 flex items-center gap-1 text-sm text-muted-foreground", children: [
867
- (featuredPost.date || featuredPost.published) && /* @__PURE__ */ jsxRuntime.jsx("time", { children: featuredPost.date || featuredPost.published }),
868
- (featuredPost.date || featuredPost.published) && featuredPost.author && "\xB7",
869
- featuredPost.author && /* @__PURE__ */ jsxRuntime.jsx("span", { children: featuredPost.author })
870
- ] }),
871
- 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 })),
872
- (featuredPost.description || featuredPost.summary) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mt-4 text-muted-foreground", children: featuredPost.description || featuredPost.summary })
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
- }, [featuredSlot, featuredPost, featuredClassName, featuredImageClassName, optixFlowConfig]);
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(Pressable, { href: postHref, className: cn("rounded-lg p-3", postCardClassName), children: [
885
- post.image && /* @__PURE__ */ jsxRuntime.jsx(
886
- img.Img,
887
- {
888
- src: post.image,
889
- alt: typeof post.title === "string" ? post.title : "Content item",
890
- className: "h-48 w-full rounded-lg object-cover hover:opacity-80",
891
- optixFlowConfig
892
- }
893
- ),
894
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-5", children: [
895
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-2.5 flex items-center gap-1 text-sm text-muted-foreground", children: [
896
- (post.date || post.published) && /* @__PURE__ */ jsxRuntime.jsx("time", { children: post.date || post.published }),
897
- (post.date || post.published) && post.author && "\xB7",
898
- post.author && /* @__PURE__ */ jsxRuntime.jsx("span", { children: post.author })
899
- ] }),
900
- 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 }))
901
- ] })
902
- ] }, postId);
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("h1", { className: cn("mb-12 text-center text-4xl font-medium md:text-7xl", headingClassName), children: heading }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
915
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("xs:grid-cols-1 mt-24 grid gap-4 sm:grid-cols-2 lg:grid-cols-4", postsClassName), children: [
916
- featuredPostContent,
917
- otherPostsContent
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
  );