@opensite/ui 1.2.4 → 1.2.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/feature-accordion-image.cjs +101 -27
- package/dist/feature-accordion-image.js +101 -27
- package/dist/feature-animated-carousel.cjs +809 -321
- package/dist/feature-animated-carousel.d.cts +29 -1
- package/dist/feature-animated-carousel.d.ts +29 -1
- package/dist/feature-animated-carousel.js +807 -319
- package/dist/feature-card-grid-linked.cjs +1 -1
- package/dist/feature-card-grid-linked.js +1 -1
- package/dist/feature-carousel-progress.cjs +35 -10
- package/dist/feature-carousel-progress.js +35 -10
- package/dist/feature-checklist-image.cjs +1 -1
- package/dist/feature-checklist-image.js +1 -1
- package/dist/feature-icon-grid-muted.cjs +521 -15
- package/dist/feature-icon-grid-muted.d.cts +5 -1
- package/dist/feature-icon-grid-muted.d.ts +5 -1
- package/dist/feature-icon-grid-muted.js +521 -15
- package/dist/feature-image-cards-three-column.cjs +146 -75
- package/dist/feature-image-cards-three-column.d.cts +5 -1
- package/dist/feature-image-cards-three-column.d.ts +5 -1
- package/dist/feature-image-cards-three-column.js +146 -75
- package/dist/feature-numbered-cards.cjs +1 -1
- package/dist/feature-numbered-cards.js +1 -1
- package/dist/feature-stats-highlight.cjs +25 -39
- package/dist/feature-stats-highlight.js +25 -39
- package/dist/registry.cjs +767 -402
- package/dist/registry.js +767 -402
- package/package.json +1 -1
|
@@ -32,36 +32,6 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
32
32
|
function cn(...inputs) {
|
|
33
33
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
34
34
|
}
|
|
35
|
-
function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
36
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
37
|
-
if (isDark) {
|
|
38
|
-
switch (variant) {
|
|
39
|
-
case "muted":
|
|
40
|
-
return "bg-background";
|
|
41
|
-
case "card":
|
|
42
|
-
return "bg-card";
|
|
43
|
-
case "accent":
|
|
44
|
-
return "bg-accent";
|
|
45
|
-
case "subtle":
|
|
46
|
-
return "bg-background/50";
|
|
47
|
-
}
|
|
48
|
-
} else {
|
|
49
|
-
switch (variant) {
|
|
50
|
-
case "muted":
|
|
51
|
-
return "bg-muted";
|
|
52
|
-
case "card":
|
|
53
|
-
return "bg-card";
|
|
54
|
-
case "accent":
|
|
55
|
-
return "bg-accent";
|
|
56
|
-
case "subtle":
|
|
57
|
-
return "bg-muted/50";
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function getNestedCardTextColor(parentBg, options) {
|
|
62
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
63
|
-
return isDark ? "text-foreground" : "";
|
|
64
|
-
}
|
|
65
35
|
function normalizePhoneNumber(input) {
|
|
66
36
|
const trimmed = input.trim();
|
|
67
37
|
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
@@ -896,7 +866,7 @@ function FeatureStatsHighlight({
|
|
|
896
866
|
stats,
|
|
897
867
|
statsSlot,
|
|
898
868
|
className,
|
|
899
|
-
containerClassName,
|
|
869
|
+
containerClassName = "px-6 sm:px-6 md:px-6 lg:px-8",
|
|
900
870
|
gridClassName,
|
|
901
871
|
contentClassName,
|
|
902
872
|
badgeClassName,
|
|
@@ -906,7 +876,7 @@ function FeatureStatsHighlight({
|
|
|
906
876
|
statsGridClassName,
|
|
907
877
|
statCardClassName,
|
|
908
878
|
background,
|
|
909
|
-
spacing = "py-
|
|
879
|
+
spacing = "py-12 md:py-32",
|
|
910
880
|
pattern,
|
|
911
881
|
patternOpacity,
|
|
912
882
|
patternClassName
|
|
@@ -946,9 +916,7 @@ function FeatureStatsHighlight({
|
|
|
946
916
|
"div",
|
|
947
917
|
{
|
|
948
918
|
className: cn(
|
|
949
|
-
"flex flex-col gap-2 rounded-xl border p-6",
|
|
950
|
-
getNestedCardBg(background, "card"),
|
|
951
|
-
getNestedCardTextColor(background),
|
|
919
|
+
"flex flex-col gap-2 rounded-xl border p-4 md:p-6 bg-card text-card-foreground h-full justify-between",
|
|
952
920
|
statCardClassName,
|
|
953
921
|
stat.className
|
|
954
922
|
),
|
|
@@ -957,13 +925,22 @@ function FeatureStatsHighlight({
|
|
|
957
925
|
"span",
|
|
958
926
|
{
|
|
959
927
|
className: cn(
|
|
960
|
-
"text-
|
|
928
|
+
"text-3xl font-bold lg:text-4xl xl:text-5xl",
|
|
961
929
|
stat.valueClassName
|
|
962
930
|
),
|
|
963
931
|
children: stat.value
|
|
964
932
|
}
|
|
965
933
|
),
|
|
966
|
-
stat.label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
934
|
+
stat.label && /* @__PURE__ */ jsxRuntime.jsx(
|
|
935
|
+
"span",
|
|
936
|
+
{
|
|
937
|
+
className: cn(
|
|
938
|
+
"uppercase font-bold text-sm opacity-60",
|
|
939
|
+
stat.labelClassName
|
|
940
|
+
),
|
|
941
|
+
children: stat.label
|
|
942
|
+
}
|
|
943
|
+
)
|
|
967
944
|
]
|
|
968
945
|
},
|
|
969
946
|
index
|
|
@@ -985,7 +962,7 @@ function FeatureStatsHighlight({
|
|
|
985
962
|
className: cn("grid gap-10 lg:grid-cols-2 lg:gap-20", gridClassName),
|
|
986
963
|
children: [
|
|
987
964
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-5", contentClassName), children: [
|
|
988
|
-
badge && /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "
|
|
965
|
+
badge && /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "default", className: cn("", badgeClassName), children: badge }),
|
|
989
966
|
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
990
967
|
"h2",
|
|
991
968
|
{
|
|
@@ -1008,7 +985,16 @@ function FeatureStatsHighlight({
|
|
|
1008
985
|
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn(" lg:text-lg", descriptionClassName), children: description }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(" lg:text-lg", descriptionClassName), children: description })),
|
|
1009
986
|
(actionsSlot || actions && actions.length > 0) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: actionsClassName, children: actionsContent })
|
|
1010
987
|
] }),
|
|
1011
|
-
(statsSlot || stats && stats.length > 0) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
988
|
+
(statsSlot || stats && stats.length > 0) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
989
|
+
"div",
|
|
990
|
+
{
|
|
991
|
+
className: cn(
|
|
992
|
+
"grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-6",
|
|
993
|
+
statsGridClassName
|
|
994
|
+
),
|
|
995
|
+
children: statsContent
|
|
996
|
+
}
|
|
997
|
+
)
|
|
1012
998
|
]
|
|
1013
999
|
}
|
|
1014
1000
|
)
|
|
@@ -11,36 +11,6 @@ import { Slot } from '@radix-ui/react-slot';
|
|
|
11
11
|
function cn(...inputs) {
|
|
12
12
|
return twMerge(clsx(inputs));
|
|
13
13
|
}
|
|
14
|
-
function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
15
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
16
|
-
if (isDark) {
|
|
17
|
-
switch (variant) {
|
|
18
|
-
case "muted":
|
|
19
|
-
return "bg-background";
|
|
20
|
-
case "card":
|
|
21
|
-
return "bg-card";
|
|
22
|
-
case "accent":
|
|
23
|
-
return "bg-accent";
|
|
24
|
-
case "subtle":
|
|
25
|
-
return "bg-background/50";
|
|
26
|
-
}
|
|
27
|
-
} else {
|
|
28
|
-
switch (variant) {
|
|
29
|
-
case "muted":
|
|
30
|
-
return "bg-muted";
|
|
31
|
-
case "card":
|
|
32
|
-
return "bg-card";
|
|
33
|
-
case "accent":
|
|
34
|
-
return "bg-accent";
|
|
35
|
-
case "subtle":
|
|
36
|
-
return "bg-muted/50";
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
function getNestedCardTextColor(parentBg, options) {
|
|
41
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
42
|
-
return isDark ? "text-foreground" : "";
|
|
43
|
-
}
|
|
44
14
|
function normalizePhoneNumber(input) {
|
|
45
15
|
const trimmed = input.trim();
|
|
46
16
|
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
@@ -875,7 +845,7 @@ function FeatureStatsHighlight({
|
|
|
875
845
|
stats,
|
|
876
846
|
statsSlot,
|
|
877
847
|
className,
|
|
878
|
-
containerClassName,
|
|
848
|
+
containerClassName = "px-6 sm:px-6 md:px-6 lg:px-8",
|
|
879
849
|
gridClassName,
|
|
880
850
|
contentClassName,
|
|
881
851
|
badgeClassName,
|
|
@@ -885,7 +855,7 @@ function FeatureStatsHighlight({
|
|
|
885
855
|
statsGridClassName,
|
|
886
856
|
statCardClassName,
|
|
887
857
|
background,
|
|
888
|
-
spacing = "py-
|
|
858
|
+
spacing = "py-12 md:py-32",
|
|
889
859
|
pattern,
|
|
890
860
|
patternOpacity,
|
|
891
861
|
patternClassName
|
|
@@ -925,9 +895,7 @@ function FeatureStatsHighlight({
|
|
|
925
895
|
"div",
|
|
926
896
|
{
|
|
927
897
|
className: cn(
|
|
928
|
-
"flex flex-col gap-2 rounded-xl border p-6",
|
|
929
|
-
getNestedCardBg(background, "card"),
|
|
930
|
-
getNestedCardTextColor(background),
|
|
898
|
+
"flex flex-col gap-2 rounded-xl border p-4 md:p-6 bg-card text-card-foreground h-full justify-between",
|
|
931
899
|
statCardClassName,
|
|
932
900
|
stat.className
|
|
933
901
|
),
|
|
@@ -936,13 +904,22 @@ function FeatureStatsHighlight({
|
|
|
936
904
|
"span",
|
|
937
905
|
{
|
|
938
906
|
className: cn(
|
|
939
|
-
"text-
|
|
907
|
+
"text-3xl font-bold lg:text-4xl xl:text-5xl",
|
|
940
908
|
stat.valueClassName
|
|
941
909
|
),
|
|
942
910
|
children: stat.value
|
|
943
911
|
}
|
|
944
912
|
),
|
|
945
|
-
stat.label && /* @__PURE__ */ jsx(
|
|
913
|
+
stat.label && /* @__PURE__ */ jsx(
|
|
914
|
+
"span",
|
|
915
|
+
{
|
|
916
|
+
className: cn(
|
|
917
|
+
"uppercase font-bold text-sm opacity-60",
|
|
918
|
+
stat.labelClassName
|
|
919
|
+
),
|
|
920
|
+
children: stat.label
|
|
921
|
+
}
|
|
922
|
+
)
|
|
946
923
|
]
|
|
947
924
|
},
|
|
948
925
|
index
|
|
@@ -964,7 +941,7 @@ function FeatureStatsHighlight({
|
|
|
964
941
|
className: cn("grid gap-10 lg:grid-cols-2 lg:gap-20", gridClassName),
|
|
965
942
|
children: [
|
|
966
943
|
/* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-5", contentClassName), children: [
|
|
967
|
-
badge && /* @__PURE__ */ jsx(Badge, { variant: "
|
|
944
|
+
badge && /* @__PURE__ */ jsx(Badge, { variant: "default", className: cn("", badgeClassName), children: badge }),
|
|
968
945
|
title && (typeof title === "string" ? /* @__PURE__ */ jsx(
|
|
969
946
|
"h2",
|
|
970
947
|
{
|
|
@@ -987,7 +964,16 @@ function FeatureStatsHighlight({
|
|
|
987
964
|
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 })),
|
|
988
965
|
(actionsSlot || actions && actions.length > 0) && /* @__PURE__ */ jsx("div", { className: actionsClassName, children: actionsContent })
|
|
989
966
|
] }),
|
|
990
|
-
(statsSlot || stats && stats.length > 0) && /* @__PURE__ */ jsx(
|
|
967
|
+
(statsSlot || stats && stats.length > 0) && /* @__PURE__ */ jsx(
|
|
968
|
+
"div",
|
|
969
|
+
{
|
|
970
|
+
className: cn(
|
|
971
|
+
"grid grid-cols-1 gap-4 md:grid-cols-2 md:gap-6",
|
|
972
|
+
statsGridClassName
|
|
973
|
+
),
|
|
974
|
+
children: statsContent
|
|
975
|
+
}
|
|
976
|
+
)
|
|
991
977
|
]
|
|
992
978
|
}
|
|
993
979
|
)
|