@opensite/ui 0.8.5 → 0.8.6
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/faq-badge-support.cjs +18 -5
- package/dist/faq-badge-support.js +18 -5
- package/dist/faq-bordered-badge.cjs +23 -7
- package/dist/faq-bordered-badge.js +23 -7
- package/dist/faq-card-categories.cjs +20 -4
- package/dist/faq-card-categories.js +20 -4
- package/dist/faq-categorized-sections.cjs +19 -4
- package/dist/faq-categorized-sections.js +19 -4
- package/dist/faq-centered-accordion.cjs +18 -5
- package/dist/faq-centered-accordion.js +18 -5
- package/dist/faq-gradient-categories.cjs +19 -4
- package/dist/faq-gradient-categories.js +19 -4
- package/dist/faq-icon-benefits.cjs +11 -2
- package/dist/faq-icon-benefits.js +11 -2
- package/dist/faq-muted-cards.cjs +19 -6
- package/dist/faq-muted-cards.js +19 -6
- package/dist/faq-numbered-grid.cjs +11 -3
- package/dist/faq-numbered-grid.js +11 -3
- package/dist/faq-numbered-list.cjs +11 -3
- package/dist/faq-numbered-list.js +11 -3
- package/dist/faq-profile-sidebar.cjs +57 -20
- package/dist/faq-profile-sidebar.js +57 -20
- package/dist/faq-rounded-cards.cjs +26 -19
- package/dist/faq-rounded-cards.js +26 -19
- package/dist/faq-sidebar-navigation.cjs +48 -28
- package/dist/faq-sidebar-navigation.js +48 -28
- package/dist/faq-simple-accordion.cjs +17 -4
- package/dist/faq-simple-accordion.js +17 -4
- package/dist/faq-split-help.cjs +25 -6
- package/dist/faq-split-help.js +25 -6
- package/dist/faq-split-hero.cjs +85 -185
- package/dist/faq-split-hero.d.cts +16 -18
- package/dist/faq-split-hero.d.ts +16 -18
- package/dist/faq-split-hero.js +86 -186
- package/dist/faq-static-list.cjs +9 -2
- package/dist/faq-static-list.js +9 -2
- package/dist/feature-accordion-image.cjs +8 -2
- package/dist/feature-accordion-image.js +8 -2
- package/dist/feature-showcase.cjs +1 -2
- package/dist/feature-showcase.js +1 -2
- package/dist/feature-split-image-reverse.cjs +2 -8
- package/dist/feature-split-image-reverse.js +2 -8
- package/dist/feature-split-image.cjs +2 -2
- package/dist/feature-split-image.js +2 -2
- package/dist/feature-stats-highlight.cjs +50 -13
- package/dist/feature-stats-highlight.js +50 -13
- package/dist/feature-tabbed-content-image.cjs +5 -14
- package/dist/feature-tabbed-content-image.js +5 -14
- package/dist/feature-three-column-values.cjs +4 -44
- package/dist/feature-three-column-values.js +4 -44
- package/dist/feature-utility-cards-grid.cjs +83 -36
- package/dist/feature-utility-cards-grid.js +83 -36
- package/dist/navbar-animated-preview.cjs +8 -2
- package/dist/navbar-animated-preview.js +8 -2
- package/dist/navbar-centered-menu.cjs +8 -2
- package/dist/navbar-centered-menu.js +8 -2
- package/dist/navbar-dark-icons.cjs +8 -2
- package/dist/navbar-dark-icons.js +8 -2
- package/dist/navbar-dropdown-menu.cjs +8 -2
- package/dist/navbar-dropdown-menu.js +8 -2
- package/dist/navbar-education-platform.cjs +8 -2
- package/dist/navbar-education-platform.js +8 -2
- package/dist/navbar-enterprise-mega.cjs +8 -2
- package/dist/navbar-enterprise-mega.js +8 -2
- package/dist/navbar-feature-grid.cjs +8 -2
- package/dist/navbar-feature-grid.js +8 -2
- package/dist/navbar-multi-column-groups.cjs +8 -2
- package/dist/navbar-multi-column-groups.js +8 -2
- package/dist/navbar-platform-resources.cjs +8 -2
- package/dist/navbar-platform-resources.js +8 -2
- package/dist/navbar-sidebar-mobile.cjs +8 -2
- package/dist/navbar-sidebar-mobile.js +8 -2
- package/dist/registry.cjs +487 -293
- package/dist/registry.js +487 -293
- package/package.json +1 -1
|
@@ -855,7 +855,7 @@ function FeatureStatsHighlight({
|
|
|
855
855
|
statsGridClassName,
|
|
856
856
|
statCardClassName,
|
|
857
857
|
background,
|
|
858
|
-
spacing,
|
|
858
|
+
spacing = "py-6 md:py-32",
|
|
859
859
|
pattern,
|
|
860
860
|
patternOpacity,
|
|
861
861
|
patternClassName
|
|
@@ -894,10 +894,23 @@ function FeatureStatsHighlight({
|
|
|
894
894
|
return stats.map((stat, index) => /* @__PURE__ */ jsxs(
|
|
895
895
|
"div",
|
|
896
896
|
{
|
|
897
|
-
className: cn(
|
|
897
|
+
className: cn(
|
|
898
|
+
"flex flex-col gap-2 rounded-xl border bg-card p-6",
|
|
899
|
+
statCardClassName,
|
|
900
|
+
stat.className
|
|
901
|
+
),
|
|
898
902
|
children: [
|
|
899
|
-
stat.value && /* @__PURE__ */ jsx(
|
|
900
|
-
|
|
903
|
+
stat.value && /* @__PURE__ */ jsx(
|
|
904
|
+
"span",
|
|
905
|
+
{
|
|
906
|
+
className: cn(
|
|
907
|
+
"text-4xl font-bold lg:text-5xl",
|
|
908
|
+
stat.valueClassName
|
|
909
|
+
),
|
|
910
|
+
children: stat.value
|
|
911
|
+
}
|
|
912
|
+
),
|
|
913
|
+
stat.label && /* @__PURE__ */ jsx("span", { className: cn("", stat.labelClassName), children: stat.label })
|
|
901
914
|
]
|
|
902
915
|
},
|
|
903
916
|
index
|
|
@@ -913,15 +926,39 @@ function FeatureStatsHighlight({
|
|
|
913
926
|
patternClassName,
|
|
914
927
|
className,
|
|
915
928
|
containerClassName,
|
|
916
|
-
children: /* @__PURE__ */ jsxs(
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
929
|
+
children: /* @__PURE__ */ jsxs(
|
|
930
|
+
"div",
|
|
931
|
+
{
|
|
932
|
+
className: cn("grid gap-10 lg:grid-cols-2 lg:gap-20", gridClassName),
|
|
933
|
+
children: [
|
|
934
|
+
/* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-5", contentClassName), children: [
|
|
935
|
+
badge && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: cn("w-fit", badgeClassName), children: badge }),
|
|
936
|
+
title && (typeof title === "string" ? /* @__PURE__ */ jsx(
|
|
937
|
+
"h2",
|
|
938
|
+
{
|
|
939
|
+
className: cn(
|
|
940
|
+
"text-3xl font-semibold lg:text-5xl",
|
|
941
|
+
titleClassName
|
|
942
|
+
),
|
|
943
|
+
children: title
|
|
944
|
+
}
|
|
945
|
+
) : /* @__PURE__ */ jsx(
|
|
946
|
+
"div",
|
|
947
|
+
{
|
|
948
|
+
className: cn(
|
|
949
|
+
"text-3xl font-semibold lg:text-5xl",
|
|
950
|
+
titleClassName
|
|
951
|
+
),
|
|
952
|
+
children: title
|
|
953
|
+
}
|
|
954
|
+
)),
|
|
955
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn(" lg:text-lg", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: cn(" lg:text-lg", descriptionClassName), children: description })),
|
|
956
|
+
(actionsSlot || actions && actions.length > 0) && /* @__PURE__ */ jsx("div", { className: actionsClassName, children: actionsContent })
|
|
957
|
+
] }),
|
|
958
|
+
(statsSlot || stats && stats.length > 0) && /* @__PURE__ */ jsx("div", { className: cn("grid grid-cols-2 gap-6", statsGridClassName), children: statsContent })
|
|
959
|
+
]
|
|
960
|
+
}
|
|
961
|
+
)
|
|
925
962
|
}
|
|
926
963
|
);
|
|
927
964
|
}
|
|
@@ -1110,10 +1110,7 @@ function FeatureTabbedContentImage({
|
|
|
1110
1110
|
TabsTrigger,
|
|
1111
1111
|
{
|
|
1112
1112
|
value: slide.id.toString(),
|
|
1113
|
-
className: cn(
|
|
1114
|
-
"text-sm hover:bg-background md:text-base",
|
|
1115
|
-
tabTriggerClassName
|
|
1116
|
-
),
|
|
1113
|
+
className: cn("text-sm md:text-base", tabTriggerClassName),
|
|
1117
1114
|
children: slide.tabName
|
|
1118
1115
|
},
|
|
1119
1116
|
slide.id
|
|
@@ -1155,19 +1152,13 @@ function FeatureTabbedContentImage({
|
|
|
1155
1152
|
slide.description && (typeof slide.description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1156
1153
|
"p",
|
|
1157
1154
|
{
|
|
1158
|
-
className: cn(
|
|
1159
|
-
"text-muted-foreground lg:text-xl",
|
|
1160
|
-
slide.descriptionClassName
|
|
1161
|
-
),
|
|
1155
|
+
className: cn(" lg:text-xl", slide.descriptionClassName),
|
|
1162
1156
|
children: slide.description
|
|
1163
1157
|
}
|
|
1164
1158
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1165
1159
|
"div",
|
|
1166
1160
|
{
|
|
1167
|
-
className: cn(
|
|
1168
|
-
"text-muted-foreground lg:text-xl",
|
|
1169
|
-
slide.descriptionClassName
|
|
1170
|
-
),
|
|
1161
|
+
className: cn("lg:text-xl", slide.descriptionClassName),
|
|
1171
1162
|
children: slide.description
|
|
1172
1163
|
}
|
|
1173
1164
|
)),
|
|
@@ -1249,7 +1240,7 @@ function FeatureTabbedContentImage({
|
|
|
1249
1240
|
"p",
|
|
1250
1241
|
{
|
|
1251
1242
|
className: cn(
|
|
1252
|
-
"text-center text-balance
|
|
1243
|
+
"text-center text-balance lg:text-xl",
|
|
1253
1244
|
descriptionClassName
|
|
1254
1245
|
),
|
|
1255
1246
|
children: description
|
|
@@ -1258,7 +1249,7 @@ function FeatureTabbedContentImage({
|
|
|
1258
1249
|
"div",
|
|
1259
1250
|
{
|
|
1260
1251
|
className: cn(
|
|
1261
|
-
"text-center text-balance
|
|
1252
|
+
"text-center text-balance lg:text-xl",
|
|
1262
1253
|
descriptionClassName
|
|
1263
1254
|
),
|
|
1264
1255
|
children: description
|
|
@@ -1088,10 +1088,7 @@ function FeatureTabbedContentImage({
|
|
|
1088
1088
|
TabsTrigger,
|
|
1089
1089
|
{
|
|
1090
1090
|
value: slide.id.toString(),
|
|
1091
|
-
className: cn(
|
|
1092
|
-
"text-sm hover:bg-background md:text-base",
|
|
1093
|
-
tabTriggerClassName
|
|
1094
|
-
),
|
|
1091
|
+
className: cn("text-sm md:text-base", tabTriggerClassName),
|
|
1095
1092
|
children: slide.tabName
|
|
1096
1093
|
},
|
|
1097
1094
|
slide.id
|
|
@@ -1133,19 +1130,13 @@ function FeatureTabbedContentImage({
|
|
|
1133
1130
|
slide.description && (typeof slide.description === "string" ? /* @__PURE__ */ jsx(
|
|
1134
1131
|
"p",
|
|
1135
1132
|
{
|
|
1136
|
-
className: cn(
|
|
1137
|
-
"text-muted-foreground lg:text-xl",
|
|
1138
|
-
slide.descriptionClassName
|
|
1139
|
-
),
|
|
1133
|
+
className: cn(" lg:text-xl", slide.descriptionClassName),
|
|
1140
1134
|
children: slide.description
|
|
1141
1135
|
}
|
|
1142
1136
|
) : /* @__PURE__ */ jsx(
|
|
1143
1137
|
"div",
|
|
1144
1138
|
{
|
|
1145
|
-
className: cn(
|
|
1146
|
-
"text-muted-foreground lg:text-xl",
|
|
1147
|
-
slide.descriptionClassName
|
|
1148
|
-
),
|
|
1139
|
+
className: cn("lg:text-xl", slide.descriptionClassName),
|
|
1149
1140
|
children: slide.description
|
|
1150
1141
|
}
|
|
1151
1142
|
)),
|
|
@@ -1227,7 +1218,7 @@ function FeatureTabbedContentImage({
|
|
|
1227
1218
|
"p",
|
|
1228
1219
|
{
|
|
1229
1220
|
className: cn(
|
|
1230
|
-
"text-center text-balance
|
|
1221
|
+
"text-center text-balance lg:text-xl",
|
|
1231
1222
|
descriptionClassName
|
|
1232
1223
|
),
|
|
1233
1224
|
children: description
|
|
@@ -1236,7 +1227,7 @@ function FeatureTabbedContentImage({
|
|
|
1236
1227
|
"div",
|
|
1237
1228
|
{
|
|
1238
1229
|
className: cn(
|
|
1239
|
-
"text-center text-balance
|
|
1230
|
+
"text-center text-balance lg:text-xl",
|
|
1240
1231
|
descriptionClassName
|
|
1241
1232
|
),
|
|
1242
1233
|
children: description
|
|
@@ -542,17 +542,13 @@ function FeatureThreeColumnValues({
|
|
|
542
542
|
return values.map((value, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
543
543
|
"div",
|
|
544
544
|
{
|
|
545
|
-
className: cn(
|
|
546
|
-
"rounded-lg bg-accent p-5",
|
|
547
|
-
cardClassName,
|
|
548
|
-
value.className
|
|
549
|
-
),
|
|
545
|
+
className: cn("rounded-lg p-5", cardClassName, value.className),
|
|
550
546
|
children: [
|
|
551
547
|
(value.icon || value.iconName) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
552
548
|
"span",
|
|
553
549
|
{
|
|
554
550
|
className: cn(
|
|
555
|
-
"mb-8 flex size-12 items-center justify-center rounded-full
|
|
551
|
+
"mb-8 flex size-12 items-center justify-center rounded-full ",
|
|
556
552
|
value.iconClassName
|
|
557
553
|
),
|
|
558
554
|
children: renderValueIcon(value)
|
|
@@ -571,25 +567,7 @@ function FeatureThreeColumnValues({
|
|
|
571
567
|
children: value.title
|
|
572
568
|
}
|
|
573
569
|
)),
|
|
574
|
-
value.description && (typeof value.description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
575
|
-
"p",
|
|
576
|
-
{
|
|
577
|
-
className: cn(
|
|
578
|
-
"leading-7 text-muted-foreground",
|
|
579
|
-
value.descriptionClassName
|
|
580
|
-
),
|
|
581
|
-
children: value.description
|
|
582
|
-
}
|
|
583
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
584
|
-
"div",
|
|
585
|
-
{
|
|
586
|
-
className: cn(
|
|
587
|
-
"leading-7 text-muted-foreground",
|
|
588
|
-
value.descriptionClassName
|
|
589
|
-
),
|
|
590
|
-
children: value.description
|
|
591
|
-
}
|
|
592
|
-
))
|
|
570
|
+
value.description && (typeof value.description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("leading-7 ", value.descriptionClassName), children: value.description }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("leading-7", value.descriptionClassName), children: value.description }))
|
|
593
571
|
]
|
|
594
572
|
},
|
|
595
573
|
index
|
|
@@ -606,25 +584,7 @@ function FeatureThreeColumnValues({
|
|
|
606
584
|
className,
|
|
607
585
|
containerClassName,
|
|
608
586
|
children: [
|
|
609
|
-
label && (typeof label === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
610
|
-
"p",
|
|
611
|
-
{
|
|
612
|
-
className: cn(
|
|
613
|
-
"mb-4 text-sm text-muted-foreground lg:text-base",
|
|
614
|
-
labelClassName
|
|
615
|
-
),
|
|
616
|
-
children: label
|
|
617
|
-
}
|
|
618
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
619
|
-
"div",
|
|
620
|
-
{
|
|
621
|
-
className: cn(
|
|
622
|
-
"mb-4 text-sm text-muted-foreground lg:text-base",
|
|
623
|
-
labelClassName
|
|
624
|
-
),
|
|
625
|
-
children: label
|
|
626
|
-
}
|
|
627
|
-
)),
|
|
587
|
+
label && (typeof label === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("mb-4 text-sm lg:text-base", labelClassName), children: label }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-4 text-sm lg:text-base", labelClassName), children: label })),
|
|
628
588
|
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
629
589
|
"h2",
|
|
630
590
|
{
|
|
@@ -521,17 +521,13 @@ function FeatureThreeColumnValues({
|
|
|
521
521
|
return values.map((value, index) => /* @__PURE__ */ jsxs(
|
|
522
522
|
"div",
|
|
523
523
|
{
|
|
524
|
-
className: cn(
|
|
525
|
-
"rounded-lg bg-accent p-5",
|
|
526
|
-
cardClassName,
|
|
527
|
-
value.className
|
|
528
|
-
),
|
|
524
|
+
className: cn("rounded-lg p-5", cardClassName, value.className),
|
|
529
525
|
children: [
|
|
530
526
|
(value.icon || value.iconName) && /* @__PURE__ */ jsx(
|
|
531
527
|
"span",
|
|
532
528
|
{
|
|
533
529
|
className: cn(
|
|
534
|
-
"mb-8 flex size-12 items-center justify-center rounded-full
|
|
530
|
+
"mb-8 flex size-12 items-center justify-center rounded-full ",
|
|
535
531
|
value.iconClassName
|
|
536
532
|
),
|
|
537
533
|
children: renderValueIcon(value)
|
|
@@ -550,25 +546,7 @@ function FeatureThreeColumnValues({
|
|
|
550
546
|
children: value.title
|
|
551
547
|
}
|
|
552
548
|
)),
|
|
553
|
-
value.description && (typeof value.description === "string" ? /* @__PURE__ */ jsx(
|
|
554
|
-
"p",
|
|
555
|
-
{
|
|
556
|
-
className: cn(
|
|
557
|
-
"leading-7 text-muted-foreground",
|
|
558
|
-
value.descriptionClassName
|
|
559
|
-
),
|
|
560
|
-
children: value.description
|
|
561
|
-
}
|
|
562
|
-
) : /* @__PURE__ */ jsx(
|
|
563
|
-
"div",
|
|
564
|
-
{
|
|
565
|
-
className: cn(
|
|
566
|
-
"leading-7 text-muted-foreground",
|
|
567
|
-
value.descriptionClassName
|
|
568
|
-
),
|
|
569
|
-
children: value.description
|
|
570
|
-
}
|
|
571
|
-
))
|
|
549
|
+
value.description && (typeof value.description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("leading-7 ", value.descriptionClassName), children: value.description }) : /* @__PURE__ */ jsx("div", { className: cn("leading-7", value.descriptionClassName), children: value.description }))
|
|
572
550
|
]
|
|
573
551
|
},
|
|
574
552
|
index
|
|
@@ -585,25 +563,7 @@ function FeatureThreeColumnValues({
|
|
|
585
563
|
className,
|
|
586
564
|
containerClassName,
|
|
587
565
|
children: [
|
|
588
|
-
label && (typeof label === "string" ? /* @__PURE__ */ jsx(
|
|
589
|
-
"p",
|
|
590
|
-
{
|
|
591
|
-
className: cn(
|
|
592
|
-
"mb-4 text-sm text-muted-foreground lg:text-base",
|
|
593
|
-
labelClassName
|
|
594
|
-
),
|
|
595
|
-
children: label
|
|
596
|
-
}
|
|
597
|
-
) : /* @__PURE__ */ jsx(
|
|
598
|
-
"div",
|
|
599
|
-
{
|
|
600
|
-
className: cn(
|
|
601
|
-
"mb-4 text-sm text-muted-foreground lg:text-base",
|
|
602
|
-
labelClassName
|
|
603
|
-
),
|
|
604
|
-
children: label
|
|
605
|
-
}
|
|
606
|
-
)),
|
|
566
|
+
label && (typeof label === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mb-4 text-sm lg:text-base", labelClassName), children: label }) : /* @__PURE__ */ jsx("div", { className: cn("mb-4 text-sm lg:text-base", labelClassName), children: label })),
|
|
607
567
|
title && (typeof title === "string" ? /* @__PURE__ */ jsx(
|
|
608
568
|
"h2",
|
|
609
569
|
{
|
|
@@ -985,14 +985,15 @@ function FeatureUtilityCardsGrid({
|
|
|
985
985
|
cardClassName,
|
|
986
986
|
optixFlowConfig,
|
|
987
987
|
background,
|
|
988
|
-
spacing,
|
|
988
|
+
spacing = "py-6 md:py-32",
|
|
989
989
|
pattern,
|
|
990
990
|
patternOpacity,
|
|
991
991
|
patternClassName
|
|
992
992
|
}) {
|
|
993
993
|
const renderLabelIcon = React.useMemo(() => {
|
|
994
994
|
if (labelIcon) return labelIcon;
|
|
995
|
-
if (labelIconName)
|
|
995
|
+
if (labelIconName)
|
|
996
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: labelIconName, size: 20, className: "text-primary" });
|
|
996
997
|
return null;
|
|
997
998
|
}, [labelIcon, labelIconName]);
|
|
998
999
|
const learnMoreContent = React.useMemo(() => {
|
|
@@ -1004,7 +1005,10 @@ function FeatureUtilityCardsGrid({
|
|
|
1004
1005
|
{
|
|
1005
1006
|
href: learnMoreAction.href,
|
|
1006
1007
|
onClick: learnMoreAction.onClick,
|
|
1007
|
-
className: cn(
|
|
1008
|
+
className: cn(
|
|
1009
|
+
"hover:text-primary hover:underline",
|
|
1010
|
+
learnMoreAction.className
|
|
1011
|
+
),
|
|
1008
1012
|
"aria-label": learnMoreAction["aria-label"],
|
|
1009
1013
|
children: learnMoreAction.children
|
|
1010
1014
|
}
|
|
@@ -1015,7 +1019,7 @@ function FeatureUtilityCardsGrid({
|
|
|
1015
1019
|
{
|
|
1016
1020
|
href: learnMoreAction.href,
|
|
1017
1021
|
onClick: learnMoreAction.onClick,
|
|
1018
|
-
className: cn(
|
|
1022
|
+
className: cn(learnMoreAction.className),
|
|
1019
1023
|
"aria-label": learnMoreAction["aria-label"],
|
|
1020
1024
|
children: [
|
|
1021
1025
|
learnMoreAction.icon,
|
|
@@ -1025,32 +1029,45 @@ function FeatureUtilityCardsGrid({
|
|
|
1025
1029
|
}
|
|
1026
1030
|
);
|
|
1027
1031
|
}, [learnMoreSlot, learnMoreAction]);
|
|
1028
|
-
const renderUtilityImage = React__namespace.useCallback(
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1032
|
+
const renderUtilityImage = React__namespace.useCallback(
|
|
1033
|
+
(utility) => {
|
|
1034
|
+
if (utility.imageSlot) return utility.imageSlot;
|
|
1035
|
+
if (utility.image) {
|
|
1036
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1037
|
+
img.Img,
|
|
1038
|
+
{
|
|
1039
|
+
src: utility.image,
|
|
1040
|
+
alt: utility.imageAlt || (typeof utility.title === "string" ? utility.title : "Utility image"),
|
|
1041
|
+
className: cn(
|
|
1042
|
+
"aspect-video w-full object-cover",
|
|
1043
|
+
utility.imageClassName
|
|
1044
|
+
),
|
|
1045
|
+
loading: "lazy",
|
|
1046
|
+
optixFlowConfig
|
|
1047
|
+
}
|
|
1048
|
+
);
|
|
1049
|
+
}
|
|
1050
|
+
return null;
|
|
1051
|
+
},
|
|
1052
|
+
[optixFlowConfig]
|
|
1053
|
+
);
|
|
1044
1054
|
const utilitiesContent = React.useMemo(() => {
|
|
1045
1055
|
if (utilitiesSlot) return utilitiesSlot;
|
|
1046
1056
|
if (!utilities || utilities.length === 0) return null;
|
|
1047
|
-
return utilities.map((utility, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1057
|
+
return utilities.map((utility, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1058
|
+
Card,
|
|
1059
|
+
{
|
|
1060
|
+
className: cn("overflow-hidden pt-0", cardClassName, utility.className),
|
|
1061
|
+
children: [
|
|
1062
|
+
renderUtilityImage(utility),
|
|
1063
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "p-5", children: [
|
|
1064
|
+
utility.title && (typeof utility.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("mb-1 font-medium", utility.titleClassName), children: utility.title }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-1 font-medium", utility.titleClassName), children: utility.title })),
|
|
1065
|
+
utility.description && (typeof utility.description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("", utility.descriptionClassName), children: utility.description }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("", utility.descriptionClassName), children: utility.description }))
|
|
1066
|
+
] })
|
|
1067
|
+
]
|
|
1068
|
+
},
|
|
1069
|
+
index
|
|
1070
|
+
));
|
|
1054
1071
|
}, [utilitiesSlot, utilities, cardClassName, renderUtilityImage]);
|
|
1055
1072
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1056
1073
|
Section,
|
|
@@ -1064,20 +1081,50 @@ function FeatureUtilityCardsGrid({
|
|
|
1064
1081
|
containerClassName: cn("max-w-7xl", containerClassName),
|
|
1065
1082
|
children: [
|
|
1066
1083
|
(label || labelIcon || labelIconName || learnMoreSlot || learnMoreAction) && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
1067
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1084
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1085
|
+
"div",
|
|
1086
|
+
{
|
|
1087
|
+
className: cn(
|
|
1088
|
+
"flex items-center justify-between text-sm",
|
|
1089
|
+
headerClassName
|
|
1090
|
+
),
|
|
1091
|
+
children: [
|
|
1092
|
+
(label || labelIcon || labelIconName) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-1 ", labelClassName), children: [
|
|
1093
|
+
renderLabelIcon,
|
|
1094
|
+
label && (typeof label === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { children: label }) : /* @__PURE__ */ jsxRuntime.jsx("div", { children: label }))
|
|
1095
|
+
] }),
|
|
1096
|
+
learnMoreContent
|
|
1097
|
+
]
|
|
1098
|
+
}
|
|
1099
|
+
),
|
|
1074
1100
|
/* @__PURE__ */ jsxRuntime.jsx(Separator, { className: "mt-3 mb-8" })
|
|
1075
1101
|
] }),
|
|
1076
1102
|
(title || description) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col justify-between gap-6 md:flex-row", children: [
|
|
1077
|
-
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1103
|
+
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1104
|
+
"h2",
|
|
1105
|
+
{
|
|
1106
|
+
className: cn("text-3xl font-medium md:w-1/2", titleClassName),
|
|
1107
|
+
children: title
|
|
1108
|
+
}
|
|
1109
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1110
|
+
"div",
|
|
1111
|
+
{
|
|
1112
|
+
className: cn("text-3xl font-medium md:w-1/2", titleClassName),
|
|
1113
|
+
children: title
|
|
1114
|
+
}
|
|
1115
|
+
)),
|
|
1078
1116
|
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("md:w-1/2", descriptionClassName), children: description }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("md:w-1/2", descriptionClassName), children: description }))
|
|
1079
1117
|
] }),
|
|
1080
|
-
(utilitiesSlot || utilities && utilities.length > 0) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1118
|
+
(utilitiesSlot || utilities && utilities.length > 0) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1119
|
+
"div",
|
|
1120
|
+
{
|
|
1121
|
+
className: cn(
|
|
1122
|
+
"mt-11 grid w-full grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3",
|
|
1123
|
+
gridClassName
|
|
1124
|
+
),
|
|
1125
|
+
children: utilitiesContent
|
|
1126
|
+
}
|
|
1127
|
+
)
|
|
1081
1128
|
]
|
|
1082
1129
|
}
|
|
1083
1130
|
);
|