@opensite/ui 1.3.0 → 1.3.2
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/feature-accordion-image.cjs +1 -1
- package/dist/feature-accordion-image.js +1 -1
- package/dist/feature-bento-image-grid.cjs +2 -2
- package/dist/feature-bento-image-grid.js +2 -2
- package/dist/feature-bento-utilities.cjs +2 -2
- package/dist/feature-bento-utilities.js +2 -2
- package/dist/feature-capabilities-grid.cjs +5 -6
- package/dist/feature-capabilities-grid.js +5 -6
- package/dist/feature-checklist-three-column.cjs +2 -2
- package/dist/feature-checklist-three-column.js +2 -2
- package/dist/feature-icon-grid-bordered.cjs +1 -1
- package/dist/feature-icon-grid-bordered.js +1 -1
- package/dist/feature-icon-tabs-content.cjs +7 -7
- package/dist/feature-icon-tabs-content.js +7 -7
- package/dist/feature-image-cards-three-column.cjs +4 -4
- package/dist/feature-image-cards-three-column.js +4 -4
- package/dist/feature-image-overlay-badge.cjs +1 -1
- package/dist/feature-image-overlay-badge.js +1 -1
- package/dist/feature-integration-cards.cjs +2 -2
- package/dist/feature-integration-cards.js +2 -2
- package/dist/feature-numbered-cards.cjs +1 -1
- package/dist/feature-numbered-cards.js +1 -1
- package/dist/feature-pattern-grid-links.cjs +142 -29
- package/dist/feature-pattern-grid-links.d.cts +21 -1
- package/dist/feature-pattern-grid-links.d.ts +21 -1
- package/dist/feature-pattern-grid-links.js +142 -29
- package/dist/feature-showcase.cjs +3 -1
- package/dist/feature-showcase.d.cts +5 -1
- package/dist/feature-showcase.d.ts +5 -1
- package/dist/feature-showcase.js +3 -1
- package/dist/feature-split-image-reverse.cjs +2 -2
- package/dist/feature-split-image-reverse.js +2 -2
- package/dist/feature-three-column-values.cjs +2 -2
- package/dist/feature-three-column-values.js +2 -2
- package/dist/feature-utility-cards-grid.cjs +23 -7
- package/dist/feature-utility-cards-grid.js +23 -7
- package/dist/registry.cjs +200 -70
- package/dist/registry.js +200 -70
- package/package.json +1 -1
|
@@ -956,59 +956,124 @@ var Section = React__namespace.default.forwardRef(
|
|
|
956
956
|
);
|
|
957
957
|
Section.displayName = "Section";
|
|
958
958
|
function FeaturePatternGridLinks({
|
|
959
|
+
title,
|
|
960
|
+
description,
|
|
961
|
+
titleClassName,
|
|
962
|
+
descriptionClassName,
|
|
963
|
+
headerClassName,
|
|
959
964
|
features,
|
|
960
965
|
featuresSlot,
|
|
961
966
|
className,
|
|
962
|
-
|
|
967
|
+
spacing = "py-12 md:py-32",
|
|
968
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
963
969
|
gridClassName,
|
|
964
970
|
cardClassName,
|
|
965
971
|
background,
|
|
966
|
-
spacing,
|
|
967
972
|
pattern,
|
|
968
973
|
patternOpacity,
|
|
969
974
|
patternClassName
|
|
970
975
|
}) {
|
|
971
|
-
const renderFeatureIcon = React.useCallback(
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
976
|
+
const renderFeatureIcon = React.useCallback(
|
|
977
|
+
(feature) => {
|
|
978
|
+
if (feature.icon) return feature.icon;
|
|
979
|
+
if (feature.iconName)
|
|
980
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
981
|
+
DynamicIcon,
|
|
982
|
+
{
|
|
983
|
+
name: feature.iconName,
|
|
984
|
+
size: 24,
|
|
985
|
+
className: feature.iconClassName
|
|
986
|
+
}
|
|
987
|
+
);
|
|
988
|
+
return null;
|
|
989
|
+
},
|
|
990
|
+
[]
|
|
991
|
+
);
|
|
992
|
+
const renderFeatureLink = React.useCallback(
|
|
993
|
+
(feature) => {
|
|
994
|
+
if (feature.linkSlot) return feature.linkSlot;
|
|
995
|
+
if (!feature.link && !feature.linkLabel) return null;
|
|
996
|
+
const label = feature.linkLabel || (feature.link ? "Learn more" : null);
|
|
997
|
+
if (!label) return null;
|
|
998
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
999
|
+
Pressable,
|
|
1000
|
+
{
|
|
1001
|
+
href: feature.link,
|
|
1002
|
+
className: cn(
|
|
1003
|
+
"flex items-center gap-2 text-sm font-medium",
|
|
1004
|
+
feature.linkClassName
|
|
1005
|
+
),
|
|
1006
|
+
children: [
|
|
1007
|
+
label,
|
|
1008
|
+
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/chevron-right", size: 16 })
|
|
1009
|
+
]
|
|
1010
|
+
}
|
|
1011
|
+
);
|
|
1012
|
+
},
|
|
1013
|
+
[]
|
|
1014
|
+
);
|
|
993
1015
|
const featuresContent = React.useMemo(() => {
|
|
994
1016
|
if (featuresSlot) return featuresSlot;
|
|
995
1017
|
if (!features || features.length === 0) return null;
|
|
996
1018
|
return features.map((feature, index) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
997
1019
|
"div",
|
|
998
1020
|
{
|
|
999
|
-
className: cn(
|
|
1021
|
+
className: cn(
|
|
1022
|
+
"flex flex-col gap-10 rounded-lg border p-8",
|
|
1023
|
+
cardClassName,
|
|
1024
|
+
feature.className
|
|
1025
|
+
),
|
|
1000
1026
|
children: [
|
|
1001
1027
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
1002
1028
|
renderFeatureIcon(feature),
|
|
1003
|
-
feature.title && (typeof feature.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1004
|
-
|
|
1029
|
+
feature.title && (typeof feature.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1030
|
+
"h3",
|
|
1031
|
+
{
|
|
1032
|
+
className: cn("mt-6 mb-2 font-medium", feature.titleClassName),
|
|
1033
|
+
children: feature.title
|
|
1034
|
+
}
|
|
1035
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1036
|
+
"div",
|
|
1037
|
+
{
|
|
1038
|
+
className: cn("mt-6 mb-2 font-medium", feature.titleClassName),
|
|
1039
|
+
children: feature.title
|
|
1040
|
+
}
|
|
1041
|
+
)),
|
|
1042
|
+
feature.description && (typeof feature.description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1043
|
+
"p",
|
|
1044
|
+
{
|
|
1045
|
+
className: cn(
|
|
1046
|
+
"text-sm",
|
|
1047
|
+
getTextColor(background, "muted"),
|
|
1048
|
+
feature.descriptionClassName
|
|
1049
|
+
),
|
|
1050
|
+
children: feature.description
|
|
1051
|
+
}
|
|
1052
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1053
|
+
"div",
|
|
1054
|
+
{
|
|
1055
|
+
className: cn(
|
|
1056
|
+
"text-sm",
|
|
1057
|
+
getTextColor(background, "muted"),
|
|
1058
|
+
feature.descriptionClassName
|
|
1059
|
+
),
|
|
1060
|
+
children: feature.description
|
|
1061
|
+
}
|
|
1062
|
+
))
|
|
1005
1063
|
] }),
|
|
1006
1064
|
renderFeatureLink(feature)
|
|
1007
1065
|
]
|
|
1008
1066
|
},
|
|
1009
1067
|
index
|
|
1010
1068
|
));
|
|
1011
|
-
}, [
|
|
1069
|
+
}, [
|
|
1070
|
+
featuresSlot,
|
|
1071
|
+
features,
|
|
1072
|
+
cardClassName,
|
|
1073
|
+
renderFeatureIcon,
|
|
1074
|
+
renderFeatureLink,
|
|
1075
|
+
background
|
|
1076
|
+
]);
|
|
1012
1077
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1013
1078
|
Section,
|
|
1014
1079
|
{
|
|
@@ -1019,7 +1084,55 @@ function FeaturePatternGridLinks({
|
|
|
1019
1084
|
patternClassName,
|
|
1020
1085
|
className,
|
|
1021
1086
|
containerClassName,
|
|
1022
|
-
children: /* @__PURE__ */ jsxRuntime.
|
|
1087
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col space-y-6 md:space-y-16", children: [
|
|
1088
|
+
title || description ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1089
|
+
"div",
|
|
1090
|
+
{
|
|
1091
|
+
className: cn(
|
|
1092
|
+
"flex flex-col gap-4 md:gap-6 text-left",
|
|
1093
|
+
headerClassName
|
|
1094
|
+
),
|
|
1095
|
+
children: [
|
|
1096
|
+
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1097
|
+
"h2",
|
|
1098
|
+
{
|
|
1099
|
+
className: cn(
|
|
1100
|
+
"text-xl font-semibold text-balance md:text-2xl lg:text-3xl max-w-lg md:max-w-md",
|
|
1101
|
+
titleClassName
|
|
1102
|
+
),
|
|
1103
|
+
children: title
|
|
1104
|
+
}
|
|
1105
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1106
|
+
"div",
|
|
1107
|
+
{
|
|
1108
|
+
className: cn(
|
|
1109
|
+
"text-xl font-semibold text-balance md:text-2xl lg:text-3xl max-w-lg md:max-w-md",
|
|
1110
|
+
titleClassName
|
|
1111
|
+
),
|
|
1112
|
+
children: title
|
|
1113
|
+
}
|
|
1114
|
+
)),
|
|
1115
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("max-w-lg md:max-w-md", descriptionClassName), children: description }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1116
|
+
"div",
|
|
1117
|
+
{
|
|
1118
|
+
className: cn("max-w-lg md:max-w-md", descriptionClassName),
|
|
1119
|
+
children: description
|
|
1120
|
+
}
|
|
1121
|
+
))
|
|
1122
|
+
]
|
|
1123
|
+
}
|
|
1124
|
+
) : null,
|
|
1125
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1126
|
+
"div",
|
|
1127
|
+
{
|
|
1128
|
+
className: cn(
|
|
1129
|
+
"grid gap-6 md:grid-cols-2 lg:grid-cols-3",
|
|
1130
|
+
gridClassName
|
|
1131
|
+
),
|
|
1132
|
+
children: featuresContent
|
|
1133
|
+
}
|
|
1134
|
+
)
|
|
1135
|
+
] })
|
|
1023
1136
|
}
|
|
1024
1137
|
);
|
|
1025
1138
|
}
|
|
@@ -57,6 +57,26 @@ interface FeaturePatternGridLinksItem {
|
|
|
57
57
|
linkClassName?: string;
|
|
58
58
|
}
|
|
59
59
|
interface FeaturePatternGridLinksProps {
|
|
60
|
+
/**
|
|
61
|
+
* Main heading content
|
|
62
|
+
*/
|
|
63
|
+
title?: React.ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* Supporting description content
|
|
66
|
+
*/
|
|
67
|
+
description?: React.ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* Additional CSS classes for the title
|
|
70
|
+
*/
|
|
71
|
+
titleClassName?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Additional CSS classes for the description
|
|
74
|
+
*/
|
|
75
|
+
descriptionClassName?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Additional CSS classes for the header
|
|
78
|
+
*/
|
|
79
|
+
headerClassName?: string;
|
|
60
80
|
/**
|
|
61
81
|
* Array of feature items
|
|
62
82
|
*/
|
|
@@ -119,6 +139,6 @@ interface FeaturePatternGridLinksProps {
|
|
|
119
139
|
* />
|
|
120
140
|
* ```
|
|
121
141
|
*/
|
|
122
|
-
declare function FeaturePatternGridLinks({ features, featuresSlot, className, containerClassName, gridClassName, cardClassName, background,
|
|
142
|
+
declare function FeaturePatternGridLinks({ title, description, titleClassName, descriptionClassName, headerClassName, features, featuresSlot, className, spacing, containerClassName, gridClassName, cardClassName, background, pattern, patternOpacity, patternClassName, }: FeaturePatternGridLinksProps): React.JSX.Element;
|
|
123
143
|
|
|
124
144
|
export { FeaturePatternGridLinks, type FeaturePatternGridLinksProps };
|
|
@@ -57,6 +57,26 @@ interface FeaturePatternGridLinksItem {
|
|
|
57
57
|
linkClassName?: string;
|
|
58
58
|
}
|
|
59
59
|
interface FeaturePatternGridLinksProps {
|
|
60
|
+
/**
|
|
61
|
+
* Main heading content
|
|
62
|
+
*/
|
|
63
|
+
title?: React.ReactNode;
|
|
64
|
+
/**
|
|
65
|
+
* Supporting description content
|
|
66
|
+
*/
|
|
67
|
+
description?: React.ReactNode;
|
|
68
|
+
/**
|
|
69
|
+
* Additional CSS classes for the title
|
|
70
|
+
*/
|
|
71
|
+
titleClassName?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Additional CSS classes for the description
|
|
74
|
+
*/
|
|
75
|
+
descriptionClassName?: string;
|
|
76
|
+
/**
|
|
77
|
+
* Additional CSS classes for the header
|
|
78
|
+
*/
|
|
79
|
+
headerClassName?: string;
|
|
60
80
|
/**
|
|
61
81
|
* Array of feature items
|
|
62
82
|
*/
|
|
@@ -119,6 +139,6 @@ interface FeaturePatternGridLinksProps {
|
|
|
119
139
|
* />
|
|
120
140
|
* ```
|
|
121
141
|
*/
|
|
122
|
-
declare function FeaturePatternGridLinks({ features, featuresSlot, className, containerClassName, gridClassName, cardClassName, background,
|
|
142
|
+
declare function FeaturePatternGridLinks({ title, description, titleClassName, descriptionClassName, headerClassName, features, featuresSlot, className, spacing, containerClassName, gridClassName, cardClassName, background, pattern, patternOpacity, patternClassName, }: FeaturePatternGridLinksProps): React.JSX.Element;
|
|
123
143
|
|
|
124
144
|
export { FeaturePatternGridLinks, type FeaturePatternGridLinksProps };
|
|
@@ -935,59 +935,124 @@ var Section = React__default.forwardRef(
|
|
|
935
935
|
);
|
|
936
936
|
Section.displayName = "Section";
|
|
937
937
|
function FeaturePatternGridLinks({
|
|
938
|
+
title,
|
|
939
|
+
description,
|
|
940
|
+
titleClassName,
|
|
941
|
+
descriptionClassName,
|
|
942
|
+
headerClassName,
|
|
938
943
|
features,
|
|
939
944
|
featuresSlot,
|
|
940
945
|
className,
|
|
941
|
-
|
|
946
|
+
spacing = "py-12 md:py-32",
|
|
947
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
942
948
|
gridClassName,
|
|
943
949
|
cardClassName,
|
|
944
950
|
background,
|
|
945
|
-
spacing,
|
|
946
951
|
pattern,
|
|
947
952
|
patternOpacity,
|
|
948
953
|
patternClassName
|
|
949
954
|
}) {
|
|
950
|
-
const renderFeatureIcon = useCallback(
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
955
|
+
const renderFeatureIcon = useCallback(
|
|
956
|
+
(feature) => {
|
|
957
|
+
if (feature.icon) return feature.icon;
|
|
958
|
+
if (feature.iconName)
|
|
959
|
+
return /* @__PURE__ */ jsx(
|
|
960
|
+
DynamicIcon,
|
|
961
|
+
{
|
|
962
|
+
name: feature.iconName,
|
|
963
|
+
size: 24,
|
|
964
|
+
className: feature.iconClassName
|
|
965
|
+
}
|
|
966
|
+
);
|
|
967
|
+
return null;
|
|
968
|
+
},
|
|
969
|
+
[]
|
|
970
|
+
);
|
|
971
|
+
const renderFeatureLink = useCallback(
|
|
972
|
+
(feature) => {
|
|
973
|
+
if (feature.linkSlot) return feature.linkSlot;
|
|
974
|
+
if (!feature.link && !feature.linkLabel) return null;
|
|
975
|
+
const label = feature.linkLabel || (feature.link ? "Learn more" : null);
|
|
976
|
+
if (!label) return null;
|
|
977
|
+
return /* @__PURE__ */ jsxs(
|
|
978
|
+
Pressable,
|
|
979
|
+
{
|
|
980
|
+
href: feature.link,
|
|
981
|
+
className: cn(
|
|
982
|
+
"flex items-center gap-2 text-sm font-medium",
|
|
983
|
+
feature.linkClassName
|
|
984
|
+
),
|
|
985
|
+
children: [
|
|
986
|
+
label,
|
|
987
|
+
/* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/chevron-right", size: 16 })
|
|
988
|
+
]
|
|
989
|
+
}
|
|
990
|
+
);
|
|
991
|
+
},
|
|
992
|
+
[]
|
|
993
|
+
);
|
|
972
994
|
const featuresContent = useMemo(() => {
|
|
973
995
|
if (featuresSlot) return featuresSlot;
|
|
974
996
|
if (!features || features.length === 0) return null;
|
|
975
997
|
return features.map((feature, index) => /* @__PURE__ */ jsxs(
|
|
976
998
|
"div",
|
|
977
999
|
{
|
|
978
|
-
className: cn(
|
|
1000
|
+
className: cn(
|
|
1001
|
+
"flex flex-col gap-10 rounded-lg border p-8",
|
|
1002
|
+
cardClassName,
|
|
1003
|
+
feature.className
|
|
1004
|
+
),
|
|
979
1005
|
children: [
|
|
980
1006
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
981
1007
|
renderFeatureIcon(feature),
|
|
982
|
-
feature.title && (typeof feature.title === "string" ? /* @__PURE__ */ jsx(
|
|
983
|
-
|
|
1008
|
+
feature.title && (typeof feature.title === "string" ? /* @__PURE__ */ jsx(
|
|
1009
|
+
"h3",
|
|
1010
|
+
{
|
|
1011
|
+
className: cn("mt-6 mb-2 font-medium", feature.titleClassName),
|
|
1012
|
+
children: feature.title
|
|
1013
|
+
}
|
|
1014
|
+
) : /* @__PURE__ */ jsx(
|
|
1015
|
+
"div",
|
|
1016
|
+
{
|
|
1017
|
+
className: cn("mt-6 mb-2 font-medium", feature.titleClassName),
|
|
1018
|
+
children: feature.title
|
|
1019
|
+
}
|
|
1020
|
+
)),
|
|
1021
|
+
feature.description && (typeof feature.description === "string" ? /* @__PURE__ */ jsx(
|
|
1022
|
+
"p",
|
|
1023
|
+
{
|
|
1024
|
+
className: cn(
|
|
1025
|
+
"text-sm",
|
|
1026
|
+
getTextColor(background, "muted"),
|
|
1027
|
+
feature.descriptionClassName
|
|
1028
|
+
),
|
|
1029
|
+
children: feature.description
|
|
1030
|
+
}
|
|
1031
|
+
) : /* @__PURE__ */ jsx(
|
|
1032
|
+
"div",
|
|
1033
|
+
{
|
|
1034
|
+
className: cn(
|
|
1035
|
+
"text-sm",
|
|
1036
|
+
getTextColor(background, "muted"),
|
|
1037
|
+
feature.descriptionClassName
|
|
1038
|
+
),
|
|
1039
|
+
children: feature.description
|
|
1040
|
+
}
|
|
1041
|
+
))
|
|
984
1042
|
] }),
|
|
985
1043
|
renderFeatureLink(feature)
|
|
986
1044
|
]
|
|
987
1045
|
},
|
|
988
1046
|
index
|
|
989
1047
|
));
|
|
990
|
-
}, [
|
|
1048
|
+
}, [
|
|
1049
|
+
featuresSlot,
|
|
1050
|
+
features,
|
|
1051
|
+
cardClassName,
|
|
1052
|
+
renderFeatureIcon,
|
|
1053
|
+
renderFeatureLink,
|
|
1054
|
+
background
|
|
1055
|
+
]);
|
|
991
1056
|
return /* @__PURE__ */ jsx(
|
|
992
1057
|
Section,
|
|
993
1058
|
{
|
|
@@ -998,7 +1063,55 @@ function FeaturePatternGridLinks({
|
|
|
998
1063
|
patternClassName,
|
|
999
1064
|
className,
|
|
1000
1065
|
containerClassName,
|
|
1001
|
-
children: /* @__PURE__ */
|
|
1066
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-6 md:space-y-16", children: [
|
|
1067
|
+
title || description ? /* @__PURE__ */ jsxs(
|
|
1068
|
+
"div",
|
|
1069
|
+
{
|
|
1070
|
+
className: cn(
|
|
1071
|
+
"flex flex-col gap-4 md:gap-6 text-left",
|
|
1072
|
+
headerClassName
|
|
1073
|
+
),
|
|
1074
|
+
children: [
|
|
1075
|
+
title && (typeof title === "string" ? /* @__PURE__ */ jsx(
|
|
1076
|
+
"h2",
|
|
1077
|
+
{
|
|
1078
|
+
className: cn(
|
|
1079
|
+
"text-xl font-semibold text-balance md:text-2xl lg:text-3xl max-w-lg md:max-w-md",
|
|
1080
|
+
titleClassName
|
|
1081
|
+
),
|
|
1082
|
+
children: title
|
|
1083
|
+
}
|
|
1084
|
+
) : /* @__PURE__ */ jsx(
|
|
1085
|
+
"div",
|
|
1086
|
+
{
|
|
1087
|
+
className: cn(
|
|
1088
|
+
"text-xl font-semibold text-balance md:text-2xl lg:text-3xl max-w-lg md:max-w-md",
|
|
1089
|
+
titleClassName
|
|
1090
|
+
),
|
|
1091
|
+
children: title
|
|
1092
|
+
}
|
|
1093
|
+
)),
|
|
1094
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("max-w-lg md:max-w-md", descriptionClassName), children: description }) : /* @__PURE__ */ jsx(
|
|
1095
|
+
"div",
|
|
1096
|
+
{
|
|
1097
|
+
className: cn("max-w-lg md:max-w-md", descriptionClassName),
|
|
1098
|
+
children: description
|
|
1099
|
+
}
|
|
1100
|
+
))
|
|
1101
|
+
]
|
|
1102
|
+
}
|
|
1103
|
+
) : null,
|
|
1104
|
+
/* @__PURE__ */ jsx(
|
|
1105
|
+
"div",
|
|
1106
|
+
{
|
|
1107
|
+
className: cn(
|
|
1108
|
+
"grid gap-6 md:grid-cols-2 lg:grid-cols-3",
|
|
1109
|
+
gridClassName
|
|
1110
|
+
),
|
|
1111
|
+
children: featuresContent
|
|
1112
|
+
}
|
|
1113
|
+
)
|
|
1114
|
+
] })
|
|
1002
1115
|
}
|
|
1003
1116
|
);
|
|
1004
1117
|
}
|
|
@@ -1128,10 +1128,11 @@ function FeatureShowcase({
|
|
|
1128
1128
|
slideClassName,
|
|
1129
1129
|
contentClassName,
|
|
1130
1130
|
mediaClassName,
|
|
1131
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
1131
1132
|
equalizeOnMobile,
|
|
1132
1133
|
stretchMediaOnMobile,
|
|
1133
1134
|
background,
|
|
1134
|
-
spacing = "py-
|
|
1135
|
+
spacing = "py-12 md:py-32",
|
|
1135
1136
|
pattern,
|
|
1136
1137
|
patternOpacity,
|
|
1137
1138
|
patternClassName
|
|
@@ -1254,6 +1255,7 @@ function FeatureShowcase({
|
|
|
1254
1255
|
patternOpacity,
|
|
1255
1256
|
patternClassName,
|
|
1256
1257
|
className,
|
|
1258
|
+
containerClassName,
|
|
1257
1259
|
children: [
|
|
1258
1260
|
children,
|
|
1259
1261
|
carouselContent
|
|
@@ -46,6 +46,10 @@ interface FeatureShowcaseProps {
|
|
|
46
46
|
* Additional CSS classes for the media area
|
|
47
47
|
*/
|
|
48
48
|
mediaClassName?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Additional CSS classes for the container
|
|
51
|
+
*/
|
|
52
|
+
containerClassName?: string;
|
|
49
53
|
/**
|
|
50
54
|
* Whether to equalize slide heights on mobile
|
|
51
55
|
*/
|
|
@@ -98,6 +102,6 @@ interface FeatureShowcaseProps {
|
|
|
98
102
|
* />
|
|
99
103
|
* ```
|
|
100
104
|
*/
|
|
101
|
-
declare function FeatureShowcase({ items, children, className, carouselClassName, slideClassName, contentClassName, mediaClassName, equalizeOnMobile, stretchMediaOnMobile, background, spacing, pattern, patternOpacity, patternClassName, }: FeatureShowcaseProps): react_jsx_runtime.JSX.Element;
|
|
105
|
+
declare function FeatureShowcase({ items, children, className, carouselClassName, slideClassName, contentClassName, mediaClassName, containerClassName, equalizeOnMobile, stretchMediaOnMobile, background, spacing, pattern, patternOpacity, patternClassName, }: FeatureShowcaseProps): react_jsx_runtime.JSX.Element;
|
|
102
106
|
|
|
103
107
|
export { FeatureShowcase };
|
|
@@ -46,6 +46,10 @@ interface FeatureShowcaseProps {
|
|
|
46
46
|
* Additional CSS classes for the media area
|
|
47
47
|
*/
|
|
48
48
|
mediaClassName?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Additional CSS classes for the container
|
|
51
|
+
*/
|
|
52
|
+
containerClassName?: string;
|
|
49
53
|
/**
|
|
50
54
|
* Whether to equalize slide heights on mobile
|
|
51
55
|
*/
|
|
@@ -98,6 +102,6 @@ interface FeatureShowcaseProps {
|
|
|
98
102
|
* />
|
|
99
103
|
* ```
|
|
100
104
|
*/
|
|
101
|
-
declare function FeatureShowcase({ items, children, className, carouselClassName, slideClassName, contentClassName, mediaClassName, equalizeOnMobile, stretchMediaOnMobile, background, spacing, pattern, patternOpacity, patternClassName, }: FeatureShowcaseProps): react_jsx_runtime.JSX.Element;
|
|
105
|
+
declare function FeatureShowcase({ items, children, className, carouselClassName, slideClassName, contentClassName, mediaClassName, containerClassName, equalizeOnMobile, stretchMediaOnMobile, background, spacing, pattern, patternOpacity, patternClassName, }: FeatureShowcaseProps): react_jsx_runtime.JSX.Element;
|
|
102
106
|
|
|
103
107
|
export { FeatureShowcase };
|
package/dist/feature-showcase.js
CHANGED
|
@@ -1104,10 +1104,11 @@ function FeatureShowcase({
|
|
|
1104
1104
|
slideClassName,
|
|
1105
1105
|
contentClassName,
|
|
1106
1106
|
mediaClassName,
|
|
1107
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
1107
1108
|
equalizeOnMobile,
|
|
1108
1109
|
stretchMediaOnMobile,
|
|
1109
1110
|
background,
|
|
1110
|
-
spacing = "py-
|
|
1111
|
+
spacing = "py-12 md:py-32",
|
|
1111
1112
|
pattern,
|
|
1112
1113
|
patternOpacity,
|
|
1113
1114
|
patternClassName
|
|
@@ -1230,6 +1231,7 @@ function FeatureShowcase({
|
|
|
1230
1231
|
patternOpacity,
|
|
1231
1232
|
patternClassName,
|
|
1232
1233
|
className,
|
|
1234
|
+
containerClassName,
|
|
1233
1235
|
children: [
|
|
1234
1236
|
children,
|
|
1235
1237
|
carouselContent
|
|
@@ -834,7 +834,7 @@ function FeatureSplitImageReverse({
|
|
|
834
834
|
actions,
|
|
835
835
|
actionsSlot,
|
|
836
836
|
className,
|
|
837
|
-
containerClassName,
|
|
837
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
838
838
|
gridClassName,
|
|
839
839
|
imageClassName,
|
|
840
840
|
contentClassName,
|
|
@@ -843,7 +843,7 @@ function FeatureSplitImageReverse({
|
|
|
843
843
|
actionsClassName,
|
|
844
844
|
optixFlowConfig,
|
|
845
845
|
background,
|
|
846
|
-
spacing = "py-
|
|
846
|
+
spacing = "py-12 md:py-32",
|
|
847
847
|
pattern,
|
|
848
848
|
patternOpacity,
|
|
849
849
|
patternClassName
|
|
@@ -813,7 +813,7 @@ function FeatureSplitImageReverse({
|
|
|
813
813
|
actions,
|
|
814
814
|
actionsSlot,
|
|
815
815
|
className,
|
|
816
|
-
containerClassName,
|
|
816
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
817
817
|
gridClassName,
|
|
818
818
|
imageClassName,
|
|
819
819
|
contentClassName,
|
|
@@ -822,7 +822,7 @@ function FeatureSplitImageReverse({
|
|
|
822
822
|
actionsClassName,
|
|
823
823
|
optixFlowConfig,
|
|
824
824
|
background,
|
|
825
|
-
spacing = "py-
|
|
825
|
+
spacing = "py-12 md:py-32",
|
|
826
826
|
pattern,
|
|
827
827
|
patternOpacity,
|
|
828
828
|
patternClassName
|
|
@@ -935,13 +935,13 @@ function FeatureThreeColumnValues({
|
|
|
935
935
|
values,
|
|
936
936
|
valuesSlot,
|
|
937
937
|
className,
|
|
938
|
-
containerClassName,
|
|
938
|
+
containerClassName = "px-6 sm:px-6 md:px-6 lg:px-8",
|
|
939
939
|
labelClassName,
|
|
940
940
|
titleClassName,
|
|
941
941
|
gridClassName,
|
|
942
942
|
cardClassName,
|
|
943
943
|
background,
|
|
944
|
-
spacing = "py-
|
|
944
|
+
spacing = "py-12 md:py-32",
|
|
945
945
|
pattern,
|
|
946
946
|
patternOpacity,
|
|
947
947
|
patternClassName
|
|
@@ -914,13 +914,13 @@ function FeatureThreeColumnValues({
|
|
|
914
914
|
values,
|
|
915
915
|
valuesSlot,
|
|
916
916
|
className,
|
|
917
|
-
containerClassName,
|
|
917
|
+
containerClassName = "px-6 sm:px-6 md:px-6 lg:px-8",
|
|
918
918
|
labelClassName,
|
|
919
919
|
titleClassName,
|
|
920
920
|
gridClassName,
|
|
921
921
|
cardClassName,
|
|
922
922
|
background,
|
|
923
|
-
spacing = "py-
|
|
923
|
+
spacing = "py-12 md:py-32",
|
|
924
924
|
pattern,
|
|
925
925
|
patternOpacity,
|
|
926
926
|
patternClassName
|