@opensite/ui 2.0.6 → 2.0.8
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/hero-adaptable-product-grid.cjs +1 -1
- package/dist/hero-adaptable-product-grid.js +1 -1
- package/dist/hero-agency-animated-images.cjs +795 -631
- package/dist/hero-agency-animated-images.d.cts +13 -9
- package/dist/hero-agency-animated-images.d.ts +13 -9
- package/dist/hero-agency-animated-images.js +794 -630
- package/dist/hero-business-carousel-dots.cjs +822 -911
- package/dist/hero-business-carousel-dots.d.cts +5 -1
- package/dist/hero-business-carousel-dots.d.ts +5 -1
- package/dist/hero-business-carousel-dots.js +824 -910
- package/dist/hero-coming-soon-countdown.cjs +267 -110
- package/dist/hero-coming-soon-countdown.d.cts +8 -11
- package/dist/hero-coming-soon-countdown.d.ts +8 -11
- package/dist/hero-coming-soon-countdown.js +268 -111
- package/dist/hero-conversation-intelligence.cjs +673 -639
- package/dist/hero-conversation-intelligence.js +663 -629
- package/dist/hero-creative-studio-stacked.cjs +899 -861
- package/dist/hero-creative-studio-stacked.d.cts +16 -15
- package/dist/hero-creative-studio-stacked.d.ts +16 -15
- package/dist/hero-creative-studio-stacked.js +897 -859
- package/dist/hero-customer-support-layered.cjs +89 -76
- package/dist/hero-customer-support-layered.js +89 -76
- package/dist/hero-developer-tools-code.cjs +721 -669
- package/dist/hero-developer-tools-code.d.cts +5 -1
- package/dist/hero-developer-tools-code.d.ts +5 -1
- package/dist/hero-developer-tools-code.js +719 -667
- package/dist/hero-digital-agency-fullscreen.cjs +722 -680
- package/dist/hero-digital-agency-fullscreen.d.cts +4 -20
- package/dist/hero-digital-agency-fullscreen.d.ts +4 -20
- package/dist/hero-digital-agency-fullscreen.js +722 -680
- package/dist/hero-ecommerce-product-showcase.cjs +892 -846
- package/dist/hero-ecommerce-product-showcase.js +889 -843
- package/dist/hero-enterprise-security.cjs +168 -132
- package/dist/hero-enterprise-security.d.cts +12 -19
- package/dist/hero-enterprise-security.d.ts +12 -19
- package/dist/hero-enterprise-security.js +168 -132
- package/dist/hero-event-registration.cjs +39 -39
- package/dist/hero-event-registration.js +39 -39
- package/dist/hero-fullscreen-background-image.cjs +3 -2
- package/dist/hero-fullscreen-background-image.js +3 -2
- package/dist/hero-fullscreen-logo-cta.cjs +4 -2
- package/dist/hero-fullscreen-logo-cta.js +4 -2
- package/dist/hero-innovation-image-grid.cjs +2 -2
- package/dist/hero-innovation-image-grid.js +2 -2
- package/dist/hero-mental-health-team.cjs +17 -17
- package/dist/hero-mental-health-team.d.cts +5 -5
- package/dist/hero-mental-health-team.d.ts +5 -5
- package/dist/hero-mental-health-team.js +17 -17
- package/dist/hero-mobile-app-download.cjs +2 -2
- package/dist/hero-mobile-app-download.js +2 -2
- package/dist/hero-newsletter-minimal.cjs +97 -57
- package/dist/hero-newsletter-minimal.d.cts +5 -1
- package/dist/hero-newsletter-minimal.d.ts +5 -1
- package/dist/hero-newsletter-minimal.js +97 -57
- package/dist/hero-shared-inbox-layered.cjs +522 -42
- package/dist/hero-shared-inbox-layered.d.cts +20 -4
- package/dist/hero-shared-inbox-layered.d.ts +20 -4
- package/dist/hero-shared-inbox-layered.js +505 -40
- package/dist/hero-startup-launch-cta.cjs +859 -816
- package/dist/hero-startup-launch-cta.d.cts +3 -2
- package/dist/hero-startup-launch-cta.d.ts +3 -2
- package/dist/hero-startup-launch-cta.js +858 -815
- package/dist/hero-therapy-testimonial-grid.cjs +1 -1
- package/dist/hero-therapy-testimonial-grid.js +1 -1
- package/dist/hero-video-dialog-gradient-BnCFFec0.d.ts +99 -0
- package/dist/hero-video-dialog-gradient-Dapebkzu.d.cts +99 -0
- package/dist/hero-video-dialog-gradient.cjs +24 -23
- package/dist/hero-video-dialog-gradient.d.cts +4 -94
- package/dist/hero-video-dialog-gradient.d.ts +4 -94
- package/dist/hero-video-dialog-gradient.js +24 -23
- package/dist/hero-welcome-asymmetric-images.cjs +652 -617
- package/dist/hero-welcome-asymmetric-images.d.cts +5 -1
- package/dist/hero-welcome-asymmetric-images.d.ts +5 -1
- package/dist/hero-welcome-asymmetric-images.js +651 -616
- package/dist/registry.cjs +1111 -848
- package/dist/registry.js +1111 -848
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@ var tailwindMerge = require('tailwind-merge');
|
|
|
7
7
|
var img = require('@page-speed/img');
|
|
8
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
9
|
var classVarianceAuthority = require('class-variance-authority');
|
|
10
|
-
var reactSlot = require('@radix-ui/react-slot');
|
|
11
10
|
|
|
12
11
|
function _interopNamespace(e) {
|
|
13
12
|
if (e && e.__esModule) return e;
|
|
@@ -550,38 +549,6 @@ var buttonVariants = classVarianceAuthority.cva(baseStyles, {
|
|
|
550
549
|
size: "default"
|
|
551
550
|
}
|
|
552
551
|
});
|
|
553
|
-
var badgeVariants = classVarianceAuthority.cva(
|
|
554
|
-
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
555
|
-
{
|
|
556
|
-
variants: {
|
|
557
|
-
variant: {
|
|
558
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
559
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
560
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
561
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
562
|
-
}
|
|
563
|
-
},
|
|
564
|
-
defaultVariants: {
|
|
565
|
-
variant: "default"
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
);
|
|
569
|
-
function Badge({
|
|
570
|
-
className,
|
|
571
|
-
variant,
|
|
572
|
-
asChild = false,
|
|
573
|
-
...props
|
|
574
|
-
}) {
|
|
575
|
-
const Comp = asChild ? reactSlot.Slot : "span";
|
|
576
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
577
|
-
Comp,
|
|
578
|
-
{
|
|
579
|
-
"data-slot": "badge",
|
|
580
|
-
className: cn(badgeVariants({ variant }), className),
|
|
581
|
-
...props
|
|
582
|
-
}
|
|
583
|
-
);
|
|
584
|
-
}
|
|
585
552
|
function normalizePhoneNumber(input) {
|
|
586
553
|
const trimmed = input.trim();
|
|
587
554
|
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
@@ -858,6 +825,70 @@ var Pressable = React3__namespace.forwardRef(
|
|
|
858
825
|
}
|
|
859
826
|
);
|
|
860
827
|
Pressable.displayName = "Pressable";
|
|
828
|
+
var MOBILE_CLASSES = {
|
|
829
|
+
"fit-left": "items-start md:items-center",
|
|
830
|
+
"fit-center": "items-center",
|
|
831
|
+
"fit-right": "items-end md:items-center",
|
|
832
|
+
"full-left": "items-stretch md:items-center",
|
|
833
|
+
"full-center": "items-stretch md:items-center",
|
|
834
|
+
"full-right": "items-stretch md:items-center"
|
|
835
|
+
};
|
|
836
|
+
function BlockActions({
|
|
837
|
+
mobileConfig,
|
|
838
|
+
actionsClassName,
|
|
839
|
+
verticalSpacing = "mt-4 md:mt-8",
|
|
840
|
+
actions,
|
|
841
|
+
actionsSlot
|
|
842
|
+
}) {
|
|
843
|
+
const width = mobileConfig?.width ?? "full";
|
|
844
|
+
const position = mobileConfig?.position ?? "center";
|
|
845
|
+
const mobileLayoutClass = MOBILE_CLASSES[`${width}-${position}`];
|
|
846
|
+
if (actionsSlot) {
|
|
847
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { children: actionsSlot });
|
|
848
|
+
} else if (actions && actions?.length > 0) {
|
|
849
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
850
|
+
"div",
|
|
851
|
+
{
|
|
852
|
+
className: cn(
|
|
853
|
+
"flex flex-col md:flex-row flex-wrap gap-4",
|
|
854
|
+
mobileLayoutClass,
|
|
855
|
+
actionsClassName,
|
|
856
|
+
verticalSpacing
|
|
857
|
+
),
|
|
858
|
+
children: actions.map((action, index) => /* @__PURE__ */ jsxRuntime.jsx(ActionComponent, { action }, index))
|
|
859
|
+
}
|
|
860
|
+
);
|
|
861
|
+
} else {
|
|
862
|
+
return null;
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
function ActionComponent({ action }) {
|
|
866
|
+
const {
|
|
867
|
+
label,
|
|
868
|
+
icon,
|
|
869
|
+
iconAfter,
|
|
870
|
+
children,
|
|
871
|
+
href,
|
|
872
|
+
onClick,
|
|
873
|
+
className: actionClassName,
|
|
874
|
+
...pressableProps
|
|
875
|
+
} = action;
|
|
876
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
877
|
+
Pressable,
|
|
878
|
+
{
|
|
879
|
+
href,
|
|
880
|
+
onClick,
|
|
881
|
+
asButton: action.asButton ?? true,
|
|
882
|
+
className: actionClassName,
|
|
883
|
+
...pressableProps,
|
|
884
|
+
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
885
|
+
icon,
|
|
886
|
+
label,
|
|
887
|
+
iconAfter
|
|
888
|
+
] })
|
|
889
|
+
}
|
|
890
|
+
);
|
|
891
|
+
}
|
|
861
892
|
function HeroCustomerSupportLayered({
|
|
862
893
|
tagline,
|
|
863
894
|
heading,
|
|
@@ -872,7 +903,7 @@ function HeroCustomerSupportLayered({
|
|
|
872
903
|
actionsSlot,
|
|
873
904
|
actionsClassName,
|
|
874
905
|
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
875
|
-
spacing = "
|
|
906
|
+
spacing = "xl",
|
|
876
907
|
contentClassName,
|
|
877
908
|
taglineClassName,
|
|
878
909
|
headingClassName,
|
|
@@ -923,34 +954,6 @@ function HeroCustomerSupportLayered({
|
|
|
923
954
|
}
|
|
924
955
|
);
|
|
925
956
|
}, [imagesSlot, images, imagesClassName, optixFlowConfig]);
|
|
926
|
-
const renderActions = React3.useMemo(() => {
|
|
927
|
-
if (actionsSlot) return actionsSlot;
|
|
928
|
-
if (!actions || actions.length === 0) return null;
|
|
929
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex flex-col md:flex-row gap-4", actionsClassName), children: actions.map((action, index) => {
|
|
930
|
-
const {
|
|
931
|
-
label,
|
|
932
|
-
icon,
|
|
933
|
-
iconAfter,
|
|
934
|
-
children,
|
|
935
|
-
className: actionClassName,
|
|
936
|
-
...pressableProps
|
|
937
|
-
} = action;
|
|
938
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
939
|
-
Pressable,
|
|
940
|
-
{
|
|
941
|
-
asButton: true,
|
|
942
|
-
className: actionClassName,
|
|
943
|
-
...pressableProps,
|
|
944
|
-
children: children ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
945
|
-
icon,
|
|
946
|
-
label,
|
|
947
|
-
iconAfter
|
|
948
|
-
] })
|
|
949
|
-
},
|
|
950
|
-
index
|
|
951
|
-
);
|
|
952
|
-
}) });
|
|
953
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
954
957
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
955
958
|
Section,
|
|
956
959
|
{
|
|
@@ -961,43 +964,53 @@ function HeroCustomerSupportLayered({
|
|
|
961
964
|
patternClassName,
|
|
962
965
|
className,
|
|
963
966
|
containerClassName,
|
|
964
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "
|
|
967
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "pt-8 md:pt-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid grid-cols-1 items-center gap-8 md:gap-20 md:grid-cols-2", children: [
|
|
965
968
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
966
969
|
"div",
|
|
967
970
|
{
|
|
968
971
|
className: cn(
|
|
969
|
-
"flex w-full max-w-125 flex-col gap-
|
|
972
|
+
"flex w-full max-w-125 flex-col gap-4 md:gap-6",
|
|
970
973
|
contentClassName
|
|
971
974
|
),
|
|
972
975
|
children: [
|
|
973
|
-
tagline && (typeof tagline === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
974
|
-
|
|
975
|
-
"h1",
|
|
976
|
+
tagline && (typeof tagline === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
977
|
+
"div",
|
|
976
978
|
{
|
|
977
979
|
className: cn(
|
|
978
|
-
"
|
|
979
|
-
|
|
980
|
+
"font-light tracking-widest text-sm md:text-md uppercase",
|
|
981
|
+
taglineClassName
|
|
980
982
|
),
|
|
981
|
-
children:
|
|
983
|
+
children: tagline
|
|
982
984
|
}
|
|
983
|
-
) :
|
|
985
|
+
) : tagline),
|
|
986
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
984
987
|
"h1",
|
|
985
988
|
{
|
|
986
989
|
className: cn(
|
|
987
|
-
"text-
|
|
990
|
+
"text-4xl font-semibold text-balance md:text-7xl",
|
|
988
991
|
headingClassName
|
|
989
992
|
),
|
|
990
993
|
children: heading
|
|
991
994
|
}
|
|
992
|
-
)),
|
|
995
|
+
) : heading),
|
|
993
996
|
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
994
997
|
"p",
|
|
995
998
|
{
|
|
996
|
-
className: cn(
|
|
999
|
+
className: cn(
|
|
1000
|
+
"max-w-full md:max-w-[70%] text-lg md:text-xl font-normal text-balance",
|
|
1001
|
+
descriptionClassName
|
|
1002
|
+
),
|
|
997
1003
|
children: description
|
|
998
1004
|
}
|
|
999
|
-
) :
|
|
1000
|
-
|
|
1005
|
+
) : description),
|
|
1006
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1007
|
+
BlockActions,
|
|
1008
|
+
{
|
|
1009
|
+
actions,
|
|
1010
|
+
actionsSlot,
|
|
1011
|
+
actionsClassName
|
|
1012
|
+
}
|
|
1013
|
+
)
|
|
1001
1014
|
]
|
|
1002
1015
|
}
|
|
1003
1016
|
),
|
|
@@ -6,7 +6,6 @@ import { twMerge } from 'tailwind-merge';
|
|
|
6
6
|
import { Img } from '@page-speed/img';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { cva } from 'class-variance-authority';
|
|
9
|
-
import { Slot } from '@radix-ui/react-slot';
|
|
10
9
|
|
|
11
10
|
// components/blocks/hero/hero-customer-support-layered.tsx
|
|
12
11
|
function cn(...inputs) {
|
|
@@ -529,38 +528,6 @@ var buttonVariants = cva(baseStyles, {
|
|
|
529
528
|
size: "default"
|
|
530
529
|
}
|
|
531
530
|
});
|
|
532
|
-
var badgeVariants = cva(
|
|
533
|
-
"inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
|
|
534
|
-
{
|
|
535
|
-
variants: {
|
|
536
|
-
variant: {
|
|
537
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
538
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
539
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
540
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
541
|
-
}
|
|
542
|
-
},
|
|
543
|
-
defaultVariants: {
|
|
544
|
-
variant: "default"
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
);
|
|
548
|
-
function Badge({
|
|
549
|
-
className,
|
|
550
|
-
variant,
|
|
551
|
-
asChild = false,
|
|
552
|
-
...props
|
|
553
|
-
}) {
|
|
554
|
-
const Comp = asChild ? Slot : "span";
|
|
555
|
-
return /* @__PURE__ */ jsx(
|
|
556
|
-
Comp,
|
|
557
|
-
{
|
|
558
|
-
"data-slot": "badge",
|
|
559
|
-
className: cn(badgeVariants({ variant }), className),
|
|
560
|
-
...props
|
|
561
|
-
}
|
|
562
|
-
);
|
|
563
|
-
}
|
|
564
531
|
function normalizePhoneNumber(input) {
|
|
565
532
|
const trimmed = input.trim();
|
|
566
533
|
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
@@ -837,6 +804,70 @@ var Pressable = React3.forwardRef(
|
|
|
837
804
|
}
|
|
838
805
|
);
|
|
839
806
|
Pressable.displayName = "Pressable";
|
|
807
|
+
var MOBILE_CLASSES = {
|
|
808
|
+
"fit-left": "items-start md:items-center",
|
|
809
|
+
"fit-center": "items-center",
|
|
810
|
+
"fit-right": "items-end md:items-center",
|
|
811
|
+
"full-left": "items-stretch md:items-center",
|
|
812
|
+
"full-center": "items-stretch md:items-center",
|
|
813
|
+
"full-right": "items-stretch md:items-center"
|
|
814
|
+
};
|
|
815
|
+
function BlockActions({
|
|
816
|
+
mobileConfig,
|
|
817
|
+
actionsClassName,
|
|
818
|
+
verticalSpacing = "mt-4 md:mt-8",
|
|
819
|
+
actions,
|
|
820
|
+
actionsSlot
|
|
821
|
+
}) {
|
|
822
|
+
const width = mobileConfig?.width ?? "full";
|
|
823
|
+
const position = mobileConfig?.position ?? "center";
|
|
824
|
+
const mobileLayoutClass = MOBILE_CLASSES[`${width}-${position}`];
|
|
825
|
+
if (actionsSlot) {
|
|
826
|
+
return /* @__PURE__ */ jsx("div", { children: actionsSlot });
|
|
827
|
+
} else if (actions && actions?.length > 0) {
|
|
828
|
+
return /* @__PURE__ */ jsx(
|
|
829
|
+
"div",
|
|
830
|
+
{
|
|
831
|
+
className: cn(
|
|
832
|
+
"flex flex-col md:flex-row flex-wrap gap-4",
|
|
833
|
+
mobileLayoutClass,
|
|
834
|
+
actionsClassName,
|
|
835
|
+
verticalSpacing
|
|
836
|
+
),
|
|
837
|
+
children: actions.map((action, index) => /* @__PURE__ */ jsx(ActionComponent, { action }, index))
|
|
838
|
+
}
|
|
839
|
+
);
|
|
840
|
+
} else {
|
|
841
|
+
return null;
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
function ActionComponent({ action }) {
|
|
845
|
+
const {
|
|
846
|
+
label,
|
|
847
|
+
icon,
|
|
848
|
+
iconAfter,
|
|
849
|
+
children,
|
|
850
|
+
href,
|
|
851
|
+
onClick,
|
|
852
|
+
className: actionClassName,
|
|
853
|
+
...pressableProps
|
|
854
|
+
} = action;
|
|
855
|
+
return /* @__PURE__ */ jsx(
|
|
856
|
+
Pressable,
|
|
857
|
+
{
|
|
858
|
+
href,
|
|
859
|
+
onClick,
|
|
860
|
+
asButton: action.asButton ?? true,
|
|
861
|
+
className: actionClassName,
|
|
862
|
+
...pressableProps,
|
|
863
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
864
|
+
icon,
|
|
865
|
+
label,
|
|
866
|
+
iconAfter
|
|
867
|
+
] })
|
|
868
|
+
}
|
|
869
|
+
);
|
|
870
|
+
}
|
|
840
871
|
function HeroCustomerSupportLayered({
|
|
841
872
|
tagline,
|
|
842
873
|
heading,
|
|
@@ -851,7 +882,7 @@ function HeroCustomerSupportLayered({
|
|
|
851
882
|
actionsSlot,
|
|
852
883
|
actionsClassName,
|
|
853
884
|
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
854
|
-
spacing = "
|
|
885
|
+
spacing = "xl",
|
|
855
886
|
contentClassName,
|
|
856
887
|
taglineClassName,
|
|
857
888
|
headingClassName,
|
|
@@ -902,34 +933,6 @@ function HeroCustomerSupportLayered({
|
|
|
902
933
|
}
|
|
903
934
|
);
|
|
904
935
|
}, [imagesSlot, images, imagesClassName, optixFlowConfig]);
|
|
905
|
-
const renderActions = useMemo(() => {
|
|
906
|
-
if (actionsSlot) return actionsSlot;
|
|
907
|
-
if (!actions || actions.length === 0) return null;
|
|
908
|
-
return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col md:flex-row gap-4", actionsClassName), children: actions.map((action, index) => {
|
|
909
|
-
const {
|
|
910
|
-
label,
|
|
911
|
-
icon,
|
|
912
|
-
iconAfter,
|
|
913
|
-
children,
|
|
914
|
-
className: actionClassName,
|
|
915
|
-
...pressableProps
|
|
916
|
-
} = action;
|
|
917
|
-
return /* @__PURE__ */ jsx(
|
|
918
|
-
Pressable,
|
|
919
|
-
{
|
|
920
|
-
asButton: true,
|
|
921
|
-
className: actionClassName,
|
|
922
|
-
...pressableProps,
|
|
923
|
-
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
924
|
-
icon,
|
|
925
|
-
label,
|
|
926
|
-
iconAfter
|
|
927
|
-
] })
|
|
928
|
-
},
|
|
929
|
-
index
|
|
930
|
-
);
|
|
931
|
-
}) });
|
|
932
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
933
936
|
return /* @__PURE__ */ jsx(
|
|
934
937
|
Section,
|
|
935
938
|
{
|
|
@@ -940,43 +943,53 @@ function HeroCustomerSupportLayered({
|
|
|
940
943
|
patternClassName,
|
|
941
944
|
className,
|
|
942
945
|
containerClassName,
|
|
943
|
-
children: /* @__PURE__ */ jsx("div", { className: "
|
|
946
|
+
children: /* @__PURE__ */ jsx("div", { className: "pt-8 md:pt-0", children: /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 items-center gap-8 md:gap-20 md:grid-cols-2", children: [
|
|
944
947
|
/* @__PURE__ */ jsxs(
|
|
945
948
|
"div",
|
|
946
949
|
{
|
|
947
950
|
className: cn(
|
|
948
|
-
"flex w-full max-w-125 flex-col gap-
|
|
951
|
+
"flex w-full max-w-125 flex-col gap-4 md:gap-6",
|
|
949
952
|
contentClassName
|
|
950
953
|
),
|
|
951
954
|
children: [
|
|
952
|
-
tagline && (typeof tagline === "string" ? /* @__PURE__ */ jsx(
|
|
953
|
-
|
|
954
|
-
"h1",
|
|
955
|
+
tagline && (typeof tagline === "string" ? /* @__PURE__ */ jsx(
|
|
956
|
+
"div",
|
|
955
957
|
{
|
|
956
958
|
className: cn(
|
|
957
|
-
"
|
|
958
|
-
|
|
959
|
+
"font-light tracking-widest text-sm md:text-md uppercase",
|
|
960
|
+
taglineClassName
|
|
959
961
|
),
|
|
960
|
-
children:
|
|
962
|
+
children: tagline
|
|
961
963
|
}
|
|
962
|
-
) :
|
|
964
|
+
) : tagline),
|
|
965
|
+
heading && (typeof heading === "string" ? /* @__PURE__ */ jsx(
|
|
963
966
|
"h1",
|
|
964
967
|
{
|
|
965
968
|
className: cn(
|
|
966
|
-
"text-
|
|
969
|
+
"text-4xl font-semibold text-balance md:text-7xl",
|
|
967
970
|
headingClassName
|
|
968
971
|
),
|
|
969
972
|
children: heading
|
|
970
973
|
}
|
|
971
|
-
)),
|
|
974
|
+
) : heading),
|
|
972
975
|
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
973
976
|
"p",
|
|
974
977
|
{
|
|
975
|
-
className: cn(
|
|
978
|
+
className: cn(
|
|
979
|
+
"max-w-full md:max-w-[70%] text-lg md:text-xl font-normal text-balance",
|
|
980
|
+
descriptionClassName
|
|
981
|
+
),
|
|
976
982
|
children: description
|
|
977
983
|
}
|
|
978
|
-
) :
|
|
979
|
-
|
|
984
|
+
) : description),
|
|
985
|
+
/* @__PURE__ */ jsx(
|
|
986
|
+
BlockActions,
|
|
987
|
+
{
|
|
988
|
+
actions,
|
|
989
|
+
actionsSlot,
|
|
990
|
+
actionsClassName
|
|
991
|
+
}
|
|
992
|
+
)
|
|
980
993
|
]
|
|
981
994
|
}
|
|
982
995
|
),
|