@opensite/ui 2.4.7 → 2.4.9
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-developer-profile.cjs +1 -1
- package/dist/about-developer-profile.js +1 -1
- package/dist/about-stats-sidebar.cjs +5 -3
- package/dist/about-stats-sidebar.js +5 -3
- package/dist/about-story-hero.cjs +119 -105
- package/dist/about-story-hero.js +101 -102
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/cta-accent-background.cjs +8 -69
- package/dist/cta-accent-background.d.cts +1 -1
- package/dist/cta-accent-background.d.ts +1 -1
- package/dist/cta-accent-background.js +8 -69
- package/dist/cta-app-download-newsletter.cjs +4 -81
- package/dist/cta-app-download-newsletter.js +4 -81
- package/dist/faq-badge-support.cjs +97 -84
- package/dist/faq-badge-support.d.cts +1 -1
- package/dist/faq-badge-support.d.ts +1 -1
- package/dist/faq-badge-support.js +97 -83
- package/dist/faq-sidebar-navigation.cjs +106 -72
- package/dist/faq-sidebar-navigation.d.cts +1 -1
- package/dist/faq-sidebar-navigation.d.ts +1 -1
- package/dist/faq-sidebar-navigation.js +104 -70
- package/dist/faq-simple-accordion.cjs +83 -50
- package/dist/faq-simple-accordion.d.cts +13 -1
- package/dist/faq-simple-accordion.d.ts +13 -1
- package/dist/faq-simple-accordion.js +82 -46
- package/dist/feature-accordion-image.cjs +115 -85
- package/dist/feature-accordion-image.js +113 -83
- package/dist/feature-animated-carousel.cjs +2 -2
- package/dist/feature-animated-carousel.js +2 -2
- package/dist/feature-image-cards-three-column.cjs +2 -2
- package/dist/feature-image-cards-three-column.js +2 -2
- package/dist/footer-accordion-social.cjs +1 -1
- package/dist/footer-accordion-social.js +1 -1
- package/dist/footer-animated-social.cjs +1 -1
- package/dist/footer-animated-social.js +1 -1
- package/dist/footer-brand-description.cjs +1 -1
- package/dist/footer-brand-description.js +1 -1
- package/dist/footer-brand-links-contact.cjs +1 -1
- package/dist/footer-brand-links-contact.js +1 -1
- package/dist/footer-comprehensive-links.cjs +1 -1
- package/dist/footer-comprehensive-links.js +1 -1
- package/dist/footer-contact-card.cjs +1 -1
- package/dist/footer-contact-card.js +1 -1
- package/dist/footer-cta-banner.cjs +1 -1
- package/dist/footer-cta-banner.js +1 -1
- package/dist/footer-cta-social.cjs +1 -1
- package/dist/footer-cta-social.js +1 -1
- package/dist/footer-info-cards-accordion.cjs +1 -1
- package/dist/footer-info-cards-accordion.js +1 -1
- package/dist/footer-nav-social.cjs +1 -1
- package/dist/footer-nav-social.js +1 -1
- package/dist/footer-newsletter-contact.cjs +1 -1
- package/dist/footer-newsletter-contact.js +1 -1
- package/dist/footer-newsletter-grid.cjs +1 -1
- package/dist/footer-newsletter-grid.js +1 -1
- package/dist/footer-newsletter-minimal.cjs +1 -1
- package/dist/footer-newsletter-minimal.js +1 -1
- package/dist/footer-social-apps.cjs +1 -1
- package/dist/footer-social-apps.js +1 -1
- package/dist/footer-social-newsletter.cjs +1 -1
- package/dist/footer-social-newsletter.js +1 -1
- package/dist/footer-split-image-accordion.cjs +1 -1
- package/dist/footer-split-image-accordion.js +1 -1
- package/dist/hero-coming-soon-countdown.cjs +1 -1
- package/dist/hero-coming-soon-countdown.js +1 -1
- package/dist/hero-event-registration.cjs +1 -1
- package/dist/hero-event-registration.js +1 -1
- package/dist/hero-product-showcase-floating.cjs +120 -90
- package/dist/hero-product-showcase-floating.d.cts +5 -1
- package/dist/hero-product-showcase-floating.d.ts +5 -1
- package/dist/hero-product-showcase-floating.js +120 -90
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/link-page-bento-layout.cjs +1 -1
- package/dist/link-page-bento-layout.js +1 -1
- package/dist/link-page-grid-cards.cjs +1 -1
- package/dist/link-page-grid-cards.js +1 -1
- package/dist/link-page-minimal-profile.cjs +1 -1
- package/dist/link-page-minimal-profile.js +1 -1
- package/dist/link-page-newsletter-social.cjs +1 -1
- package/dist/link-page-newsletter-social.js +1 -1
- package/dist/link-tree-block.cjs +1 -1
- package/dist/link-tree-block.js +1 -1
- package/dist/navbar-fullscreen-menu.cjs +1 -1
- package/dist/navbar-fullscreen-menu.js +1 -1
- package/dist/navbar-transparent-overlay.cjs +1 -1
- package/dist/navbar-transparent-overlay.js +1 -1
- package/dist/registry.cjs +397 -290
- package/dist/registry.js +397 -290
- package/dist/social-link-icon.cjs +1 -1
- package/dist/social-link-icon.js +1 -1
- package/package.json +2 -2
|
@@ -31,62 +31,6 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
31
31
|
function cn(...inputs) {
|
|
32
32
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
33
33
|
}
|
|
34
|
-
function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
35
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
36
|
-
if (isDark) {
|
|
37
|
-
switch (variant) {
|
|
38
|
-
case "muted":
|
|
39
|
-
return "bg-background";
|
|
40
|
-
case "card":
|
|
41
|
-
return "bg-card";
|
|
42
|
-
case "accent":
|
|
43
|
-
return "bg-accent";
|
|
44
|
-
case "subtle":
|
|
45
|
-
return "bg-background/50";
|
|
46
|
-
}
|
|
47
|
-
} else {
|
|
48
|
-
switch (variant) {
|
|
49
|
-
case "muted":
|
|
50
|
-
return "bg-muted";
|
|
51
|
-
case "card":
|
|
52
|
-
return "bg-card";
|
|
53
|
-
case "accent":
|
|
54
|
-
return "bg-accent";
|
|
55
|
-
case "subtle":
|
|
56
|
-
return "bg-muted/50";
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
function getNestedCardTextColor(parentBg, options) {
|
|
61
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
62
|
-
return isDark ? "text-foreground" : "";
|
|
63
|
-
}
|
|
64
|
-
function getTextColor(parentBg, variant = "default", options) {
|
|
65
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
66
|
-
if (isDark) {
|
|
67
|
-
switch (variant) {
|
|
68
|
-
case "default":
|
|
69
|
-
return "text-foreground";
|
|
70
|
-
case "muted":
|
|
71
|
-
return "text-foreground/80";
|
|
72
|
-
case "subtle":
|
|
73
|
-
return "text-foreground/60";
|
|
74
|
-
case "accent":
|
|
75
|
-
return "text-accent-foreground";
|
|
76
|
-
}
|
|
77
|
-
} else {
|
|
78
|
-
switch (variant) {
|
|
79
|
-
case "default":
|
|
80
|
-
return "text-foreground";
|
|
81
|
-
case "muted":
|
|
82
|
-
return "text-muted-foreground";
|
|
83
|
-
case "subtle":
|
|
84
|
-
return "text-muted-foreground/70";
|
|
85
|
-
case "accent":
|
|
86
|
-
return "text-primary";
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
34
|
function normalizePhoneNumber(input) {
|
|
91
35
|
const trimmed = input.trim();
|
|
92
36
|
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
@@ -886,14 +830,14 @@ function CtaAccentBackground({
|
|
|
886
830
|
actions,
|
|
887
831
|
actionsSlot,
|
|
888
832
|
className,
|
|
889
|
-
containerClassName,
|
|
890
833
|
contentClassName,
|
|
891
834
|
headingClassName,
|
|
892
835
|
descriptionClassName,
|
|
893
836
|
actionsClassName,
|
|
894
837
|
cardClassName,
|
|
895
838
|
background,
|
|
896
|
-
|
|
839
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
840
|
+
spacing = "lg",
|
|
897
841
|
pattern,
|
|
898
842
|
patternOpacity
|
|
899
843
|
}) {
|
|
@@ -933,18 +877,14 @@ function CtaAccentBackground({
|
|
|
933
877
|
{
|
|
934
878
|
background,
|
|
935
879
|
spacing,
|
|
936
|
-
className
|
|
880
|
+
className,
|
|
937
881
|
pattern,
|
|
938
882
|
patternOpacity,
|
|
939
|
-
|
|
883
|
+
containerClassName,
|
|
884
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
940
885
|
"div",
|
|
941
886
|
{
|
|
942
|
-
className: cn(
|
|
943
|
-
"rounded-lg p-8 md:rounded-xl lg:p-12",
|
|
944
|
-
getNestedCardBg(background, "accent"),
|
|
945
|
-
getNestedCardTextColor(background),
|
|
946
|
-
cardClassName
|
|
947
|
-
),
|
|
887
|
+
className: cn("rounded-lg p-8 md:rounded-xl lg:p-12", cardClassName),
|
|
948
888
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("max-w-4xl", contentClassName), children: [
|
|
949
889
|
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
950
890
|
"h3",
|
|
@@ -955,18 +895,17 @@ function CtaAccentBackground({
|
|
|
955
895
|
),
|
|
956
896
|
children: heading
|
|
957
897
|
}
|
|
958
|
-
) :
|
|
898
|
+
) : heading),
|
|
959
899
|
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
960
900
|
"p",
|
|
961
901
|
{
|
|
962
902
|
className: cn(
|
|
963
903
|
"mb-8 text-lg font-medium lg:text-xl",
|
|
964
|
-
getTextColor(background, "muted"),
|
|
965
904
|
descriptionClassName
|
|
966
905
|
),
|
|
967
906
|
children: description
|
|
968
907
|
}
|
|
969
|
-
) :
|
|
908
|
+
) : description),
|
|
970
909
|
actionsContent
|
|
971
910
|
] })
|
|
972
911
|
}
|
|
@@ -86,6 +86,6 @@ interface CtaAccentBackgroundProps {
|
|
|
86
86
|
* />
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
|
-
declare function CtaAccentBackground({ heading, description, actions, actionsSlot, className,
|
|
89
|
+
declare function CtaAccentBackground({ heading, description, actions, actionsSlot, className, contentClassName, headingClassName, descriptionClassName, actionsClassName, cardClassName, background, containerClassName, spacing, pattern, patternOpacity, }: CtaAccentBackgroundProps): React.JSX.Element;
|
|
90
90
|
|
|
91
91
|
export { CtaAccentBackground, type CtaAccentBackgroundProps };
|
|
@@ -86,6 +86,6 @@ interface CtaAccentBackgroundProps {
|
|
|
86
86
|
* />
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
|
-
declare function CtaAccentBackground({ heading, description, actions, actionsSlot, className,
|
|
89
|
+
declare function CtaAccentBackground({ heading, description, actions, actionsSlot, className, contentClassName, headingClassName, descriptionClassName, actionsClassName, cardClassName, background, containerClassName, spacing, pattern, patternOpacity, }: CtaAccentBackgroundProps): React.JSX.Element;
|
|
90
90
|
|
|
91
91
|
export { CtaAccentBackground, type CtaAccentBackgroundProps };
|
|
@@ -10,62 +10,6 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
10
10
|
function cn(...inputs) {
|
|
11
11
|
return twMerge(clsx(inputs));
|
|
12
12
|
}
|
|
13
|
-
function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
14
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
15
|
-
if (isDark) {
|
|
16
|
-
switch (variant) {
|
|
17
|
-
case "muted":
|
|
18
|
-
return "bg-background";
|
|
19
|
-
case "card":
|
|
20
|
-
return "bg-card";
|
|
21
|
-
case "accent":
|
|
22
|
-
return "bg-accent";
|
|
23
|
-
case "subtle":
|
|
24
|
-
return "bg-background/50";
|
|
25
|
-
}
|
|
26
|
-
} else {
|
|
27
|
-
switch (variant) {
|
|
28
|
-
case "muted":
|
|
29
|
-
return "bg-muted";
|
|
30
|
-
case "card":
|
|
31
|
-
return "bg-card";
|
|
32
|
-
case "accent":
|
|
33
|
-
return "bg-accent";
|
|
34
|
-
case "subtle":
|
|
35
|
-
return "bg-muted/50";
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
function getNestedCardTextColor(parentBg, options) {
|
|
40
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
41
|
-
return isDark ? "text-foreground" : "";
|
|
42
|
-
}
|
|
43
|
-
function getTextColor(parentBg, variant = "default", options) {
|
|
44
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
45
|
-
if (isDark) {
|
|
46
|
-
switch (variant) {
|
|
47
|
-
case "default":
|
|
48
|
-
return "text-foreground";
|
|
49
|
-
case "muted":
|
|
50
|
-
return "text-foreground/80";
|
|
51
|
-
case "subtle":
|
|
52
|
-
return "text-foreground/60";
|
|
53
|
-
case "accent":
|
|
54
|
-
return "text-accent-foreground";
|
|
55
|
-
}
|
|
56
|
-
} else {
|
|
57
|
-
switch (variant) {
|
|
58
|
-
case "default":
|
|
59
|
-
return "text-foreground";
|
|
60
|
-
case "muted":
|
|
61
|
-
return "text-muted-foreground";
|
|
62
|
-
case "subtle":
|
|
63
|
-
return "text-muted-foreground/70";
|
|
64
|
-
case "accent":
|
|
65
|
-
return "text-primary";
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
13
|
function normalizePhoneNumber(input) {
|
|
70
14
|
const trimmed = input.trim();
|
|
71
15
|
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
@@ -865,14 +809,14 @@ function CtaAccentBackground({
|
|
|
865
809
|
actions,
|
|
866
810
|
actionsSlot,
|
|
867
811
|
className,
|
|
868
|
-
containerClassName,
|
|
869
812
|
contentClassName,
|
|
870
813
|
headingClassName,
|
|
871
814
|
descriptionClassName,
|
|
872
815
|
actionsClassName,
|
|
873
816
|
cardClassName,
|
|
874
817
|
background,
|
|
875
|
-
|
|
818
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
819
|
+
spacing = "lg",
|
|
876
820
|
pattern,
|
|
877
821
|
patternOpacity
|
|
878
822
|
}) {
|
|
@@ -912,18 +856,14 @@ function CtaAccentBackground({
|
|
|
912
856
|
{
|
|
913
857
|
background,
|
|
914
858
|
spacing,
|
|
915
|
-
className
|
|
859
|
+
className,
|
|
916
860
|
pattern,
|
|
917
861
|
patternOpacity,
|
|
918
|
-
|
|
862
|
+
containerClassName,
|
|
863
|
+
children: /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsx(
|
|
919
864
|
"div",
|
|
920
865
|
{
|
|
921
|
-
className: cn(
|
|
922
|
-
"rounded-lg p-8 md:rounded-xl lg:p-12",
|
|
923
|
-
getNestedCardBg(background, "accent"),
|
|
924
|
-
getNestedCardTextColor(background),
|
|
925
|
-
cardClassName
|
|
926
|
-
),
|
|
866
|
+
className: cn("rounded-lg p-8 md:rounded-xl lg:p-12", cardClassName),
|
|
927
867
|
children: /* @__PURE__ */ jsxs("div", { className: cn("max-w-4xl", contentClassName), children: [
|
|
928
868
|
heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
929
869
|
"h3",
|
|
@@ -934,18 +874,17 @@ function CtaAccentBackground({
|
|
|
934
874
|
),
|
|
935
875
|
children: heading
|
|
936
876
|
}
|
|
937
|
-
) :
|
|
877
|
+
) : heading),
|
|
938
878
|
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
939
879
|
"p",
|
|
940
880
|
{
|
|
941
881
|
className: cn(
|
|
942
882
|
"mb-8 text-lg font-medium lg:text-xl",
|
|
943
|
-
getTextColor(background, "muted"),
|
|
944
883
|
descriptionClassName
|
|
945
884
|
),
|
|
946
885
|
children: description
|
|
947
886
|
}
|
|
948
|
-
) :
|
|
887
|
+
) : description),
|
|
949
888
|
actionsContent
|
|
950
889
|
] })
|
|
951
890
|
}
|
|
@@ -37,62 +37,6 @@ var TextInput = inputs.TextInput;
|
|
|
37
37
|
function cn(...inputs) {
|
|
38
38
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
39
39
|
}
|
|
40
|
-
function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
41
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
42
|
-
if (isDark) {
|
|
43
|
-
switch (variant) {
|
|
44
|
-
case "muted":
|
|
45
|
-
return "bg-background";
|
|
46
|
-
case "card":
|
|
47
|
-
return "bg-card";
|
|
48
|
-
case "accent":
|
|
49
|
-
return "bg-accent";
|
|
50
|
-
case "subtle":
|
|
51
|
-
return "bg-background/50";
|
|
52
|
-
}
|
|
53
|
-
} else {
|
|
54
|
-
switch (variant) {
|
|
55
|
-
case "muted":
|
|
56
|
-
return "bg-muted";
|
|
57
|
-
case "card":
|
|
58
|
-
return "bg-card";
|
|
59
|
-
case "accent":
|
|
60
|
-
return "bg-accent";
|
|
61
|
-
case "subtle":
|
|
62
|
-
return "bg-muted/50";
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
function getNestedCardTextColor(parentBg, options) {
|
|
67
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
68
|
-
return isDark ? "text-foreground" : "";
|
|
69
|
-
}
|
|
70
|
-
function getTextColor(parentBg, variant = "default", options) {
|
|
71
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
72
|
-
if (isDark) {
|
|
73
|
-
switch (variant) {
|
|
74
|
-
case "default":
|
|
75
|
-
return "text-foreground";
|
|
76
|
-
case "muted":
|
|
77
|
-
return "text-foreground/80";
|
|
78
|
-
case "subtle":
|
|
79
|
-
return "text-foreground/60";
|
|
80
|
-
case "accent":
|
|
81
|
-
return "text-accent-foreground";
|
|
82
|
-
}
|
|
83
|
-
} else {
|
|
84
|
-
switch (variant) {
|
|
85
|
-
case "default":
|
|
86
|
-
return "text-foreground";
|
|
87
|
-
case "muted":
|
|
88
|
-
return "text-muted-foreground";
|
|
89
|
-
case "subtle":
|
|
90
|
-
return "text-muted-foreground/70";
|
|
91
|
-
case "accent":
|
|
92
|
-
return "text-primary";
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
40
|
function normalizePhoneNumber(input) {
|
|
97
41
|
const trimmed = input.trim();
|
|
98
42
|
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
@@ -1001,7 +945,8 @@ function CtaAppDownloadNewsletter({
|
|
|
1001
945
|
className: cn(className),
|
|
1002
946
|
pattern,
|
|
1003
947
|
patternOpacity,
|
|
1004
|
-
|
|
948
|
+
containerClassName,
|
|
949
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "relative", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("grid gap-8 lg:grid-cols-2", gridClassName), children: [
|
|
1005
950
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1006
951
|
"div",
|
|
1007
952
|
{
|
|
@@ -1021,17 +966,7 @@ function CtaAppDownloadNewsletter({
|
|
|
1021
966
|
children: appHeading
|
|
1022
967
|
}
|
|
1023
968
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-4", appHeadingClassName), children: appHeading })),
|
|
1024
|
-
appDescription && (typeof appDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1025
|
-
"p",
|
|
1026
|
-
{
|
|
1027
|
-
className: cn(
|
|
1028
|
-
"mb-8",
|
|
1029
|
-
getTextColor(background, "muted"),
|
|
1030
|
-
appDescriptionClassName
|
|
1031
|
-
),
|
|
1032
|
-
children: appDescription
|
|
1033
|
-
}
|
|
1034
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-8", appDescriptionClassName), children: appDescription })),
|
|
969
|
+
appDescription && (typeof appDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("mb-8", appDescriptionClassName), children: appDescription }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-8", appDescriptionClassName), children: appDescription })),
|
|
1035
970
|
appActionsContent
|
|
1036
971
|
] }),
|
|
1037
972
|
phoneMockupImage && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "absolute -right-16 -bottom-16 h-64 w-48 rotate-12 opacity-20 lg:h-80 lg:w-60", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1051,8 +986,6 @@ function CtaAppDownloadNewsletter({
|
|
|
1051
986
|
{
|
|
1052
987
|
className: cn(
|
|
1053
988
|
"flex flex-col justify-center rounded-2xl border p-8 lg:p-12",
|
|
1054
|
-
getNestedCardBg(background, "card"),
|
|
1055
|
-
getNestedCardTextColor(background),
|
|
1056
989
|
newsletterCardClassName
|
|
1057
990
|
),
|
|
1058
991
|
children: [
|
|
@@ -1066,17 +999,7 @@ function CtaAppDownloadNewsletter({
|
|
|
1066
999
|
children: newsletterHeading
|
|
1067
1000
|
}
|
|
1068
1001
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-4", newsletterHeadingClassName), children: newsletterHeading })),
|
|
1069
|
-
newsletterDescription && (typeof newsletterDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1070
|
-
"p",
|
|
1071
|
-
{
|
|
1072
|
-
className: cn(
|
|
1073
|
-
"mb-8",
|
|
1074
|
-
getTextColor(background, "muted"),
|
|
1075
|
-
newsletterDescriptionClassName
|
|
1076
|
-
),
|
|
1077
|
-
children: newsletterDescription
|
|
1078
|
-
}
|
|
1079
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-8", newsletterDescriptionClassName), children: newsletterDescription })),
|
|
1002
|
+
newsletterDescription && (typeof newsletterDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("mb-8", newsletterDescriptionClassName), children: newsletterDescription }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-8", newsletterDescriptionClassName), children: newsletterDescription })),
|
|
1080
1003
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
1081
1004
|
forms.Form,
|
|
1082
1005
|
{
|
|
@@ -16,62 +16,6 @@ var TextInput = TextInput$1;
|
|
|
16
16
|
function cn(...inputs) {
|
|
17
17
|
return twMerge(clsx(inputs));
|
|
18
18
|
}
|
|
19
|
-
function getNestedCardBg(parentBg, variant = "muted", options) {
|
|
20
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
21
|
-
if (isDark) {
|
|
22
|
-
switch (variant) {
|
|
23
|
-
case "muted":
|
|
24
|
-
return "bg-background";
|
|
25
|
-
case "card":
|
|
26
|
-
return "bg-card";
|
|
27
|
-
case "accent":
|
|
28
|
-
return "bg-accent";
|
|
29
|
-
case "subtle":
|
|
30
|
-
return "bg-background/50";
|
|
31
|
-
}
|
|
32
|
-
} else {
|
|
33
|
-
switch (variant) {
|
|
34
|
-
case "muted":
|
|
35
|
-
return "bg-muted";
|
|
36
|
-
case "card":
|
|
37
|
-
return "bg-card";
|
|
38
|
-
case "accent":
|
|
39
|
-
return "bg-accent";
|
|
40
|
-
case "subtle":
|
|
41
|
-
return "bg-muted/50";
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function getNestedCardTextColor(parentBg, options) {
|
|
46
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
47
|
-
return isDark ? "text-foreground" : "";
|
|
48
|
-
}
|
|
49
|
-
function getTextColor(parentBg, variant = "default", options) {
|
|
50
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
51
|
-
if (isDark) {
|
|
52
|
-
switch (variant) {
|
|
53
|
-
case "default":
|
|
54
|
-
return "text-foreground";
|
|
55
|
-
case "muted":
|
|
56
|
-
return "text-foreground/80";
|
|
57
|
-
case "subtle":
|
|
58
|
-
return "text-foreground/60";
|
|
59
|
-
case "accent":
|
|
60
|
-
return "text-accent-foreground";
|
|
61
|
-
}
|
|
62
|
-
} else {
|
|
63
|
-
switch (variant) {
|
|
64
|
-
case "default":
|
|
65
|
-
return "text-foreground";
|
|
66
|
-
case "muted":
|
|
67
|
-
return "text-muted-foreground";
|
|
68
|
-
case "subtle":
|
|
69
|
-
return "text-muted-foreground/70";
|
|
70
|
-
case "accent":
|
|
71
|
-
return "text-primary";
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
19
|
function normalizePhoneNumber(input) {
|
|
76
20
|
const trimmed = input.trim();
|
|
77
21
|
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
@@ -980,7 +924,8 @@ function CtaAppDownloadNewsletter({
|
|
|
980
924
|
className: cn(className),
|
|
981
925
|
pattern,
|
|
982
926
|
patternOpacity,
|
|
983
|
-
|
|
927
|
+
containerClassName,
|
|
928
|
+
children: /* @__PURE__ */ jsx("div", { className: "relative", children: /* @__PURE__ */ jsxs("div", { className: cn("grid gap-8 lg:grid-cols-2", gridClassName), children: [
|
|
984
929
|
/* @__PURE__ */ jsxs(
|
|
985
930
|
"div",
|
|
986
931
|
{
|
|
@@ -1000,17 +945,7 @@ function CtaAppDownloadNewsletter({
|
|
|
1000
945
|
children: appHeading
|
|
1001
946
|
}
|
|
1002
947
|
) : /* @__PURE__ */ jsx("div", { className: cn("mb-4", appHeadingClassName), children: appHeading })),
|
|
1003
|
-
appDescription && (typeof appDescription === "string" ? /* @__PURE__ */ jsx(
|
|
1004
|
-
"p",
|
|
1005
|
-
{
|
|
1006
|
-
className: cn(
|
|
1007
|
-
"mb-8",
|
|
1008
|
-
getTextColor(background, "muted"),
|
|
1009
|
-
appDescriptionClassName
|
|
1010
|
-
),
|
|
1011
|
-
children: appDescription
|
|
1012
|
-
}
|
|
1013
|
-
) : /* @__PURE__ */ jsx("div", { className: cn("mb-8", appDescriptionClassName), children: appDescription })),
|
|
948
|
+
appDescription && (typeof appDescription === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mb-8", appDescriptionClassName), children: appDescription }) : /* @__PURE__ */ jsx("div", { className: cn("mb-8", appDescriptionClassName), children: appDescription })),
|
|
1014
949
|
appActionsContent
|
|
1015
950
|
] }),
|
|
1016
951
|
phoneMockupImage && /* @__PURE__ */ jsx("div", { className: "absolute -right-16 -bottom-16 h-64 w-48 rotate-12 opacity-20 lg:h-80 lg:w-60", children: /* @__PURE__ */ jsx(
|
|
@@ -1030,8 +965,6 @@ function CtaAppDownloadNewsletter({
|
|
|
1030
965
|
{
|
|
1031
966
|
className: cn(
|
|
1032
967
|
"flex flex-col justify-center rounded-2xl border p-8 lg:p-12",
|
|
1033
|
-
getNestedCardBg(background, "card"),
|
|
1034
|
-
getNestedCardTextColor(background),
|
|
1035
968
|
newsletterCardClassName
|
|
1036
969
|
),
|
|
1037
970
|
children: [
|
|
@@ -1045,17 +978,7 @@ function CtaAppDownloadNewsletter({
|
|
|
1045
978
|
children: newsletterHeading
|
|
1046
979
|
}
|
|
1047
980
|
) : /* @__PURE__ */ jsx("div", { className: cn("mb-4", newsletterHeadingClassName), children: newsletterHeading })),
|
|
1048
|
-
newsletterDescription && (typeof newsletterDescription === "string" ? /* @__PURE__ */ jsx(
|
|
1049
|
-
"p",
|
|
1050
|
-
{
|
|
1051
|
-
className: cn(
|
|
1052
|
-
"mb-8",
|
|
1053
|
-
getTextColor(background, "muted"),
|
|
1054
|
-
newsletterDescriptionClassName
|
|
1055
|
-
),
|
|
1056
|
-
children: newsletterDescription
|
|
1057
|
-
}
|
|
1058
|
-
) : /* @__PURE__ */ jsx("div", { className: cn("mb-8", newsletterDescriptionClassName), children: newsletterDescription })),
|
|
981
|
+
newsletterDescription && (typeof newsletterDescription === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mb-8", newsletterDescriptionClassName), children: newsletterDescription }) : /* @__PURE__ */ jsx("div", { className: cn("mb-8", newsletterDescriptionClassName), children: newsletterDescription })),
|
|
1059
982
|
/* @__PURE__ */ jsxs(
|
|
1060
983
|
Form,
|
|
1061
984
|
{
|