@opensite/ui 2.0.8 → 2.1.0
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-agency-animated-images.cjs +4 -4
- package/dist/hero-agency-animated-images.js +4 -4
- package/dist/hero-business-carousel-dots.cjs +46 -36
- package/dist/hero-business-carousel-dots.js +46 -36
- package/dist/hero-coming-soon-countdown.cjs +93 -54
- package/dist/hero-coming-soon-countdown.d.cts +31 -6
- package/dist/hero-coming-soon-countdown.d.ts +31 -6
- package/dist/hero-coming-soon-countdown.js +93 -54
- package/dist/hero-creative-studio-stacked.cjs +9 -6
- package/dist/hero-creative-studio-stacked.d.cts +5 -1
- package/dist/hero-creative-studio-stacked.d.ts +5 -1
- package/dist/hero-creative-studio-stacked.js +9 -6
- package/dist/hero-customer-support-layered.cjs +1 -1
- package/dist/hero-customer-support-layered.js +1 -1
- package/dist/hero-developer-tools-code.cjs +2 -2
- package/dist/hero-developer-tools-code.js +2 -2
- package/dist/hero-digital-agency-fullscreen.cjs +14 -12
- package/dist/hero-digital-agency-fullscreen.d.cts +1 -1
- package/dist/hero-digital-agency-fullscreen.d.ts +1 -1
- package/dist/hero-digital-agency-fullscreen.js +14 -12
- package/dist/hero-ecommerce-product-showcase.cjs +76 -57
- package/dist/hero-ecommerce-product-showcase.js +76 -57
- package/dist/hero-enterprise-security.cjs +81 -60
- package/dist/hero-enterprise-security.js +81 -60
- package/dist/hero-event-registration.cjs +43 -10
- package/dist/hero-event-registration.js +43 -10
- package/dist/hero-hiring-animated-text.cjs +661 -639
- package/dist/hero-hiring-animated-text.d.cts +1 -9
- package/dist/hero-hiring-animated-text.d.ts +1 -9
- package/dist/hero-hiring-animated-text.js +657 -635
- package/dist/hero-saas-dashboard-preview.cjs +88 -46
- package/dist/hero-saas-dashboard-preview.d.cts +34 -19
- package/dist/hero-saas-dashboard-preview.d.ts +34 -19
- package/dist/hero-saas-dashboard-preview.js +89 -47
- package/dist/hero-split-image-newsletter.cjs +91 -49
- package/dist/hero-split-image-newsletter.d.cts +33 -18
- package/dist/hero-split-image-newsletter.d.ts +33 -18
- package/dist/hero-split-image-newsletter.js +92 -50
- package/dist/hero-startup-launch-cta.cjs +2 -2
- package/dist/hero-startup-launch-cta.js +2 -2
- package/dist/registry.cjs +556 -345
- package/dist/registry.js +556 -345
- package/package.json +1 -1
|
@@ -1,193 +1,390 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as React3 from 'react';
|
|
3
|
+
import React3__default, { useState, useCallback, useEffect, useMemo } from 'react';
|
|
4
4
|
import { clsx } from 'clsx';
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
|
-
import { cva } from 'class-variance-authority';
|
|
7
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
+
import { cva } from 'class-variance-authority';
|
|
8
8
|
|
|
9
9
|
// components/blocks/hero/hero-hiring-animated-text.tsx
|
|
10
10
|
function cn(...inputs) {
|
|
11
11
|
return twMerge(clsx(inputs));
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return emailRegex.test(input.trim());
|
|
39
|
-
}
|
|
40
|
-
function isPhoneNumber(input) {
|
|
41
|
-
const trimmed = input.trim();
|
|
42
|
-
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
|
|
46
|
-
return phoneRegex.test(trimmed);
|
|
47
|
-
}
|
|
48
|
-
function isInternalUrl(href) {
|
|
49
|
-
if (typeof window === "undefined") {
|
|
50
|
-
return href.startsWith("/") && !href.startsWith("//");
|
|
51
|
-
}
|
|
52
|
-
const trimmed = href.trim();
|
|
53
|
-
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
try {
|
|
57
|
-
const url = new URL(trimmed, window.location.href);
|
|
58
|
-
const currentOrigin = window.location.origin;
|
|
59
|
-
const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
|
|
60
|
-
return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
|
|
61
|
-
} catch {
|
|
62
|
-
return false;
|
|
13
|
+
var maxWidthStyles = {
|
|
14
|
+
sm: "max-w-screen-sm",
|
|
15
|
+
md: "max-w-screen-md",
|
|
16
|
+
lg: "max-w-screen-lg",
|
|
17
|
+
xl: "max-w-7xl",
|
|
18
|
+
"2xl": "max-w-screen-2xl",
|
|
19
|
+
"4xl": "max-w-[1536px]",
|
|
20
|
+
full: "max-w-full"
|
|
21
|
+
};
|
|
22
|
+
var Container = React3__default.forwardRef(
|
|
23
|
+
({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
|
|
24
|
+
const Component = as;
|
|
25
|
+
return /* @__PURE__ */ jsx(
|
|
26
|
+
Component,
|
|
27
|
+
{
|
|
28
|
+
ref,
|
|
29
|
+
className: cn(
|
|
30
|
+
"mx-auto w-full px-2 sm:px-4 lg:px-8",
|
|
31
|
+
maxWidthStyles[maxWidth],
|
|
32
|
+
className
|
|
33
|
+
),
|
|
34
|
+
...props,
|
|
35
|
+
children
|
|
36
|
+
}
|
|
37
|
+
);
|
|
63
38
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
39
|
+
);
|
|
40
|
+
Container.displayName = "Container";
|
|
41
|
+
|
|
42
|
+
// lib/patternSvgs.ts
|
|
43
|
+
var patternSvgs = {
|
|
44
|
+
squareAltGrid: "https://cdn.ing/assets/files/record/286187/4gpn0yq2ptra8iwlvmwwv860ggwv",
|
|
45
|
+
grid1: "https://cdn.ing/assets/files/record/286186/nbdflpgp4ostrno079hygibsflp3",
|
|
46
|
+
noise: "https://cdn.ing/assets/i/r/286188/zrqcp9hynh3j7p2laihwzfbujgrl/noise.png",
|
|
47
|
+
dots: "https://cdn.ing/assets/files/record/286198/yfsjx9thvtxzhl2qtshxyhkrm524",
|
|
48
|
+
dotPattern: "https://cdn.ing/assets/files/record/286192/7ig0cku8aqbboiza8nuk6hw0nnsr",
|
|
49
|
+
dotPattern2: "https://cdn.ing/assets/files/record/286189/arez6gd2s7isn9i1o6c7sexdq7bl",
|
|
50
|
+
circles: "https://cdn.ing/assets/files/record/286190/gtmia3sncjtzetdshc20zf1d3c17",
|
|
51
|
+
waves: "https://cdn.ing/assets/files/record/286191/mqlb33fzxz9cdth1bx7if0wmpkp1",
|
|
52
|
+
crossPattern: "https://cdn.ing/assets/files/record/286193/9yfqwdbnqaipbp7fsb3wbzzmq472",
|
|
53
|
+
architect: "https://cdn.ing/assets/files/record/286194/vgs88ugpvyhxu13wqgy0acvae6re",
|
|
54
|
+
tinyCheckers: "https://cdn.ing/assets/files/record/286195/65efaknsw8kcpf9o3c2gybytsl5b",
|
|
55
|
+
p6: "https://cdn.ing/assets/i/r/286196/6kl0rqnd6mjk8j7e525fo8fo0vkc/p6.webp"
|
|
56
|
+
};
|
|
57
|
+
var maskTop = "radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%)";
|
|
58
|
+
var maskBottom = "radial-gradient(ellipse 100% 80% at 50% 100%, #000 50%, transparent 90%)";
|
|
59
|
+
var maskCenter = "radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%)";
|
|
60
|
+
var maskTopLeft = "radial-gradient(ellipse 80% 80% at 0% 0%, #000 50%, transparent 90%)";
|
|
61
|
+
var maskTopRight = "radial-gradient(ellipse 80% 80% at 100% 0%, #000 50%, transparent 90%)";
|
|
62
|
+
var maskBottomLeft = "radial-gradient(ellipse 80% 80% at 0% 100%, #000 50%, transparent 90%)";
|
|
63
|
+
var maskBottomRight = "radial-gradient(ellipse 80% 80% at 100% 100%, #000 50%, transparent 90%)";
|
|
64
|
+
var circuitBoardPattern = (id, mask) => /* @__PURE__ */ jsxs(
|
|
65
|
+
"svg",
|
|
66
|
+
{
|
|
67
|
+
className: "h-full w-full",
|
|
68
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
69
|
+
style: mask ? {
|
|
70
|
+
maskImage: mask,
|
|
71
|
+
WebkitMaskImage: mask
|
|
72
|
+
} : void 0,
|
|
73
|
+
children: [
|
|
74
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
75
|
+
"pattern",
|
|
76
|
+
{
|
|
77
|
+
id,
|
|
78
|
+
x: "0",
|
|
79
|
+
y: "0",
|
|
80
|
+
width: "100",
|
|
81
|
+
height: "100",
|
|
82
|
+
patternUnits: "userSpaceOnUse",
|
|
83
|
+
children: [
|
|
84
|
+
/* @__PURE__ */ jsx(
|
|
85
|
+
"path",
|
|
86
|
+
{
|
|
87
|
+
d: "M0 50h40M60 50h40M50 0v40M50 60v40",
|
|
88
|
+
stroke: "hsl(var(--muted))",
|
|
89
|
+
strokeWidth: "1",
|
|
90
|
+
fill: "none"
|
|
91
|
+
}
|
|
92
|
+
),
|
|
93
|
+
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "50", r: "3", fill: "hsl(var(--muted))" }),
|
|
94
|
+
/* @__PURE__ */ jsx("circle", { cx: "0", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
95
|
+
/* @__PURE__ */ jsx("circle", { cx: "100", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
96
|
+
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "0", r: "2", fill: "hsl(var(--muted))" }),
|
|
97
|
+
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "100", r: "2", fill: "hsl(var(--muted))" })
|
|
98
|
+
]
|
|
99
|
+
}
|
|
100
|
+
) }),
|
|
101
|
+
/* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
102
|
+
]
|
|
68
103
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
104
|
+
);
|
|
105
|
+
var gridDotsPattern = (id, mask) => /* @__PURE__ */ jsxs(
|
|
106
|
+
"svg",
|
|
107
|
+
{
|
|
108
|
+
className: "h-full w-full",
|
|
109
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
110
|
+
style: mask ? {
|
|
111
|
+
maskImage: mask,
|
|
112
|
+
WebkitMaskImage: mask
|
|
113
|
+
} : void 0,
|
|
114
|
+
children: [
|
|
115
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
116
|
+
"pattern",
|
|
117
|
+
{
|
|
118
|
+
id,
|
|
119
|
+
x: "0",
|
|
120
|
+
y: "0",
|
|
121
|
+
width: "40",
|
|
122
|
+
height: "40",
|
|
123
|
+
patternUnits: "userSpaceOnUse",
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ jsx(
|
|
126
|
+
"path",
|
|
127
|
+
{
|
|
128
|
+
d: "M0 20h40M20 0v40",
|
|
129
|
+
stroke: "hsl(var(--muted))",
|
|
130
|
+
strokeWidth: "0.5",
|
|
131
|
+
fill: "none"
|
|
132
|
+
}
|
|
133
|
+
),
|
|
134
|
+
/* @__PURE__ */ jsx("circle", { cx: "20", cy: "20", r: "2", fill: "hsl(var(--muted))" })
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
) }),
|
|
138
|
+
/* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
139
|
+
]
|
|
72
140
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
141
|
+
);
|
|
142
|
+
var gridPattern = (size, mask) => /* @__PURE__ */ jsx(
|
|
143
|
+
"div",
|
|
144
|
+
{
|
|
145
|
+
className: "h-full w-full bg-[linear-gradient(to_right,_hsl(var(--muted))_1px,_transparent_1px),linear-gradient(to_bottom,_hsl(var(--muted))_1px,_transparent_1px)]",
|
|
146
|
+
style: {
|
|
147
|
+
backgroundSize: `${size}px ${size}px`,
|
|
148
|
+
...mask ? {
|
|
149
|
+
maskImage: mask,
|
|
150
|
+
WebkitMaskImage: mask
|
|
151
|
+
} : {}
|
|
79
152
|
}
|
|
80
|
-
} catch {
|
|
81
153
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
if (trimmed.toLowerCase().startsWith("mailto:") || isEmail(trimmed)) {
|
|
94
|
-
return "mailto";
|
|
95
|
-
}
|
|
96
|
-
if (trimmed.toLowerCase().startsWith("tel:") || isPhoneNumber(trimmed)) {
|
|
97
|
-
return "tel";
|
|
98
|
-
}
|
|
99
|
-
if (isInternalUrl(trimmed)) {
|
|
100
|
-
return "internal";
|
|
101
|
-
}
|
|
102
|
-
try {
|
|
103
|
-
new URL(trimmed, typeof window !== "undefined" ? window.location.href : "http://localhost");
|
|
104
|
-
return "external";
|
|
105
|
-
} catch {
|
|
106
|
-
return "internal";
|
|
107
|
-
}
|
|
108
|
-
}, [href, onClick]);
|
|
109
|
-
const normalizedHref = React.useMemo(() => {
|
|
110
|
-
if (!href || href.trim() === "") {
|
|
111
|
-
return void 0;
|
|
154
|
+
);
|
|
155
|
+
var diagonalCrossPattern = (mask) => /* @__PURE__ */ jsx(
|
|
156
|
+
"div",
|
|
157
|
+
{
|
|
158
|
+
className: "h-full w-full",
|
|
159
|
+
style: {
|
|
160
|
+
backgroundImage: "repeating-linear-gradient(45deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px), repeating-linear-gradient(135deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px)",
|
|
161
|
+
...mask ? {
|
|
162
|
+
maskImage: mask,
|
|
163
|
+
WebkitMaskImage: mask
|
|
164
|
+
} : {}
|
|
112
165
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
166
|
+
}
|
|
167
|
+
);
|
|
168
|
+
var dashedGridMaskBase = "repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px), repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px)";
|
|
169
|
+
var dashedGridPattern = (fadeMask) => {
|
|
170
|
+
const mask = fadeMask ? `${dashedGridMaskBase}, ${fadeMask}` : dashedGridMaskBase;
|
|
171
|
+
return /* @__PURE__ */ jsx(
|
|
172
|
+
"div",
|
|
173
|
+
{
|
|
174
|
+
className: "h-full w-full",
|
|
175
|
+
style: {
|
|
176
|
+
backgroundImage: "linear-gradient(to right, hsl(var(--muted)) 1px, transparent 1px), linear-gradient(to bottom, hsl(var(--muted)) 1px, transparent 1px)",
|
|
177
|
+
backgroundSize: "20px 20px",
|
|
178
|
+
backgroundPosition: "0 0, 0 0",
|
|
179
|
+
maskImage: mask,
|
|
180
|
+
WebkitMaskImage: mask,
|
|
181
|
+
maskComposite: "intersect",
|
|
182
|
+
WebkitMaskComposite: "source-in"
|
|
183
|
+
}
|
|
125
184
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
return void 0;
|
|
185
|
+
);
|
|
186
|
+
};
|
|
187
|
+
var gradientGlow = (position) => /* @__PURE__ */ jsx(
|
|
188
|
+
"div",
|
|
189
|
+
{
|
|
190
|
+
className: cn(
|
|
191
|
+
"pointer-events-none absolute left-1/2 z-0 aspect-square w-3/4 -translate-x-1/2 rounded-full opacity-50 blur-3xl",
|
|
192
|
+
position === "top" ? "-top-1/4" : "-bottom-1/4"
|
|
193
|
+
),
|
|
194
|
+
style: {
|
|
195
|
+
background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
|
|
138
196
|
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
var spotlight = (position) => /* @__PURE__ */ jsx(
|
|
200
|
+
"div",
|
|
201
|
+
{
|
|
202
|
+
className: cn(
|
|
203
|
+
"pointer-events-none absolute top-1/2 z-0 aspect-square w-3/4 -translate-y-1/2 rounded-full opacity-40 blur-3xl",
|
|
204
|
+
position === "left" ? "-left-1/4" : "-right-1/4"
|
|
205
|
+
),
|
|
206
|
+
style: {
|
|
207
|
+
background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
|
|
143
208
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
209
|
+
}
|
|
210
|
+
);
|
|
211
|
+
var patternOverlays = {
|
|
212
|
+
circuitBoardBasic: () => circuitBoardPattern("circuit-board-basic"),
|
|
213
|
+
circuitBoardFadeTop: () => circuitBoardPattern("circuit-board-fade-top", maskTop),
|
|
214
|
+
circuitBoardFadeBottom: () => circuitBoardPattern("circuit-board-fade-bottom", maskBottom),
|
|
215
|
+
circuitBoardFadeCenter: () => circuitBoardPattern("circuit-board-fade-center", maskCenter),
|
|
216
|
+
circuitBoardFadeTopLeft: () => circuitBoardPattern("circuit-board-fade-top-left", maskTopLeft),
|
|
217
|
+
circuitBoardFadeTopRight: () => circuitBoardPattern("circuit-board-fade-top-right", maskTopRight),
|
|
218
|
+
circuitBoardFadeBottomLeft: () => circuitBoardPattern("circuit-board-fade-bottom-left", maskBottomLeft),
|
|
219
|
+
circuitBoardFadeBottomRight: () => circuitBoardPattern("circuit-board-fade-bottom-right", maskBottomRight),
|
|
220
|
+
dashedGridBasic: () => dashedGridPattern(),
|
|
221
|
+
dashedGridFadeTop: () => dashedGridPattern(maskTop),
|
|
222
|
+
dashedGridFadeBottom: () => dashedGridPattern(maskBottom),
|
|
223
|
+
dashedGridFadeCenter: () => dashedGridPattern(maskCenter),
|
|
224
|
+
dashedGridFadeTopLeft: () => dashedGridPattern(maskTopLeft),
|
|
225
|
+
dashedGridFadeTopRight: () => dashedGridPattern(maskTopRight),
|
|
226
|
+
dashedGridFadeBottomLeft: () => dashedGridPattern(maskBottomLeft),
|
|
227
|
+
dashedGridFadeBottomRight: () => dashedGridPattern(maskBottomRight),
|
|
228
|
+
diagonalCrossBasic: () => diagonalCrossPattern(),
|
|
229
|
+
diagonalCrossFadeTop: () => diagonalCrossPattern(maskTop),
|
|
230
|
+
diagonalCrossFadeBottom: () => diagonalCrossPattern(maskBottom),
|
|
231
|
+
diagonalCrossFadeCenter: () => diagonalCrossPattern(maskCenter),
|
|
232
|
+
diagonalCrossFadeTopLeft: () => diagonalCrossPattern(maskTopLeft),
|
|
233
|
+
diagonalCrossFadeTopRight: () => diagonalCrossPattern(maskTopRight),
|
|
234
|
+
diagonalCrossFadeBottomLeft: () => diagonalCrossPattern(maskBottomLeft),
|
|
235
|
+
diagonalCrossFadeBottomRight: () => diagonalCrossPattern(maskBottomRight),
|
|
236
|
+
gridBasic: () => gridPattern(40),
|
|
237
|
+
gridFadeTop: () => gridPattern(32, maskTop),
|
|
238
|
+
gridFadeBottom: () => gridPattern(32, maskBottom),
|
|
239
|
+
gridFadeCenter: () => gridPattern(40, maskCenter),
|
|
240
|
+
gridFadeTopLeft: () => gridPattern(32, maskTopLeft),
|
|
241
|
+
gridFadeTopRight: () => gridPattern(32, maskTopRight),
|
|
242
|
+
gridFadeBottomLeft: () => gridPattern(32, maskBottomLeft),
|
|
243
|
+
gridFadeBottomRight: () => gridPattern(32, maskBottomRight),
|
|
244
|
+
gridDotsBasic: () => gridDotsPattern("grid-dots-basic"),
|
|
245
|
+
gridDotsFadeCenter: () => gridDotsPattern("grid-dots-fade-center", maskCenter),
|
|
246
|
+
gradientGlowTop: () => gradientGlow("top"),
|
|
247
|
+
gradientGlowBottom: () => gradientGlow("bottom"),
|
|
248
|
+
spotlightLeft: () => spotlight("left"),
|
|
249
|
+
spotlightRight: () => spotlight("right")
|
|
250
|
+
};
|
|
251
|
+
var inlinePatternStyles = {
|
|
252
|
+
radialGradientTop: {
|
|
253
|
+
background: "radial-gradient(125% 125% at 50% 10%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
254
|
+
},
|
|
255
|
+
radialGradientBottom: {
|
|
256
|
+
background: "radial-gradient(125% 125% at 50% 90%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
function PatternBackground({
|
|
260
|
+
pattern,
|
|
261
|
+
opacity = 0.08,
|
|
262
|
+
className,
|
|
263
|
+
style
|
|
264
|
+
}) {
|
|
265
|
+
if (!pattern) {
|
|
266
|
+
return null;
|
|
267
|
+
}
|
|
268
|
+
if (pattern in inlinePatternStyles) {
|
|
269
|
+
const inlineStyle = inlinePatternStyles[pattern];
|
|
270
|
+
return /* @__PURE__ */ jsx(
|
|
271
|
+
"div",
|
|
272
|
+
{
|
|
273
|
+
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
274
|
+
style: { ...inlineStyle, opacity, ...style },
|
|
275
|
+
"aria-hidden": "true"
|
|
160
276
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
console.error("Error in navigation handler:", error);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
if (pattern in patternOverlays) {
|
|
280
|
+
const Overlay = patternOverlays[pattern];
|
|
281
|
+
return /* @__PURE__ */ jsx(
|
|
282
|
+
"div",
|
|
283
|
+
{
|
|
284
|
+
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
285
|
+
style: { opacity, ...style },
|
|
286
|
+
"aria-hidden": "true",
|
|
287
|
+
children: Overlay()
|
|
176
288
|
}
|
|
177
|
-
|
|
178
|
-
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
const patternUrl = pattern in patternSvgs ? patternSvgs[pattern] : pattern;
|
|
292
|
+
return /* @__PURE__ */ jsx(
|
|
293
|
+
"div",
|
|
294
|
+
{
|
|
295
|
+
className: cn("pointer-events-none absolute inset-0 z-0", className),
|
|
296
|
+
style: {
|
|
297
|
+
backgroundImage: `url(${patternUrl})`,
|
|
298
|
+
backgroundRepeat: "repeat",
|
|
299
|
+
backgroundSize: "auto",
|
|
300
|
+
opacity,
|
|
301
|
+
...style
|
|
302
|
+
},
|
|
303
|
+
"aria-hidden": "true"
|
|
304
|
+
}
|
|
179
305
|
);
|
|
180
|
-
return {
|
|
181
|
-
linkType,
|
|
182
|
-
normalizedHref,
|
|
183
|
-
target,
|
|
184
|
-
rel,
|
|
185
|
-
isExternal,
|
|
186
|
-
isInternal,
|
|
187
|
-
shouldUseRouter,
|
|
188
|
-
handleClick
|
|
189
|
-
};
|
|
190
306
|
}
|
|
307
|
+
var backgroundStyles = {
|
|
308
|
+
default: "bg-background text-foreground",
|
|
309
|
+
white: "bg-white text-dark",
|
|
310
|
+
gray: "bg-muted/30 text-foreground",
|
|
311
|
+
dark: "bg-foreground text-background",
|
|
312
|
+
transparent: "bg-transparent text-foreground",
|
|
313
|
+
gradient: "bg-linear-to-br from-primary via-primary/90 to-foreground text-primary-foreground",
|
|
314
|
+
primary: "bg-primary text-primary-foreground",
|
|
315
|
+
secondary: "bg-secondary text-secondary-foreground",
|
|
316
|
+
muted: "bg-muted text-muted-foreground"
|
|
317
|
+
};
|
|
318
|
+
var spacingStyles = {
|
|
319
|
+
none: "py-0 md:py-0",
|
|
320
|
+
sm: "py-12 md:py-16",
|
|
321
|
+
md: "py-16 md:py-24",
|
|
322
|
+
lg: "py-20 md:py-32",
|
|
323
|
+
xl: "py-24 md:py-40"
|
|
324
|
+
};
|
|
325
|
+
var predefinedSpacings = ["none", "sm", "md", "lg", "xl"];
|
|
326
|
+
var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
|
|
327
|
+
var Section = React3__default.forwardRef(
|
|
328
|
+
({
|
|
329
|
+
id,
|
|
330
|
+
title,
|
|
331
|
+
subtitle,
|
|
332
|
+
children,
|
|
333
|
+
className,
|
|
334
|
+
style,
|
|
335
|
+
background = "default",
|
|
336
|
+
spacing = "lg",
|
|
337
|
+
pattern,
|
|
338
|
+
patternOpacity,
|
|
339
|
+
patternClassName,
|
|
340
|
+
containerClassName,
|
|
341
|
+
containerMaxWidth = "xl",
|
|
342
|
+
...props
|
|
343
|
+
}, ref) => {
|
|
344
|
+
const effectivePatternOpacity = patternOpacity !== void 0 ? patternOpacity : pattern ? 1 : 0;
|
|
345
|
+
return /* @__PURE__ */ jsxs(
|
|
346
|
+
"section",
|
|
347
|
+
{
|
|
348
|
+
ref,
|
|
349
|
+
id,
|
|
350
|
+
className: cn(
|
|
351
|
+
"relative",
|
|
352
|
+
pattern ? "overflow-hidden" : null,
|
|
353
|
+
backgroundStyles[background],
|
|
354
|
+
isPredefinedSpacing(spacing) ? spacingStyles[spacing] : spacing,
|
|
355
|
+
className
|
|
356
|
+
),
|
|
357
|
+
style,
|
|
358
|
+
...props,
|
|
359
|
+
children: [
|
|
360
|
+
/* @__PURE__ */ jsx(
|
|
361
|
+
PatternBackground,
|
|
362
|
+
{
|
|
363
|
+
pattern,
|
|
364
|
+
opacity: effectivePatternOpacity,
|
|
365
|
+
className: patternClassName
|
|
366
|
+
}
|
|
367
|
+
),
|
|
368
|
+
/* @__PURE__ */ jsxs(
|
|
369
|
+
Container,
|
|
370
|
+
{
|
|
371
|
+
maxWidth: containerMaxWidth,
|
|
372
|
+
className: cn("relative z-10", containerClassName),
|
|
373
|
+
children: [
|
|
374
|
+
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-6 text-center md:mb-16", children: [
|
|
375
|
+
subtitle && /* @__PURE__ */ jsx("p", { className: "mb-2 text-sm font-semibold uppercase tracking-wider", children: subtitle }),
|
|
376
|
+
title && /* @__PURE__ */ jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl", children: title })
|
|
377
|
+
] }),
|
|
378
|
+
children
|
|
379
|
+
]
|
|
380
|
+
}
|
|
381
|
+
)
|
|
382
|
+
]
|
|
383
|
+
}
|
|
384
|
+
);
|
|
385
|
+
}
|
|
386
|
+
);
|
|
387
|
+
Section.displayName = "Section";
|
|
191
388
|
var baseStyles = [
|
|
192
389
|
// Layout
|
|
193
390
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap shrink-0",
|
|
@@ -330,7 +527,185 @@ var buttonVariants = cva(baseStyles, {
|
|
|
330
527
|
size: "default"
|
|
331
528
|
}
|
|
332
529
|
});
|
|
333
|
-
|
|
530
|
+
function normalizePhoneNumber(input) {
|
|
531
|
+
const trimmed = input.trim();
|
|
532
|
+
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
533
|
+
return trimmed;
|
|
534
|
+
}
|
|
535
|
+
const match = trimmed.match(/^[\s\+\-\(\)]*(\d[\d\s\-\(\)\.]*\d)[\s\-]*(x|ext\.?|extension)?[\s\-]*(\d+)?$/i);
|
|
536
|
+
if (match) {
|
|
537
|
+
const mainNumber = match[1].replace(/[\s\-\(\)\.]/g, "");
|
|
538
|
+
const extension = match[3];
|
|
539
|
+
const normalized = mainNumber.length >= 10 && !trimmed.startsWith("+") ? `+${mainNumber}` : mainNumber;
|
|
540
|
+
const withExtension = extension ? `${normalized};ext=${extension}` : normalized;
|
|
541
|
+
return `tel:${withExtension}`;
|
|
542
|
+
}
|
|
543
|
+
const cleaned = trimmed.replace(/[\s\-\(\)\.]/g, "");
|
|
544
|
+
return `tel:${cleaned}`;
|
|
545
|
+
}
|
|
546
|
+
function normalizeEmail(input) {
|
|
547
|
+
const trimmed = input.trim();
|
|
548
|
+
if (trimmed.toLowerCase().startsWith("mailto:")) {
|
|
549
|
+
return trimmed;
|
|
550
|
+
}
|
|
551
|
+
return `mailto:${trimmed}`;
|
|
552
|
+
}
|
|
553
|
+
function isEmail(input) {
|
|
554
|
+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
555
|
+
return emailRegex.test(input.trim());
|
|
556
|
+
}
|
|
557
|
+
function isPhoneNumber(input) {
|
|
558
|
+
const trimmed = input.trim();
|
|
559
|
+
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
560
|
+
return true;
|
|
561
|
+
}
|
|
562
|
+
const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
|
|
563
|
+
return phoneRegex.test(trimmed);
|
|
564
|
+
}
|
|
565
|
+
function isInternalUrl(href) {
|
|
566
|
+
if (typeof window === "undefined") {
|
|
567
|
+
return href.startsWith("/") && !href.startsWith("//");
|
|
568
|
+
}
|
|
569
|
+
const trimmed = href.trim();
|
|
570
|
+
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
|
|
571
|
+
return true;
|
|
572
|
+
}
|
|
573
|
+
try {
|
|
574
|
+
const url = new URL(trimmed, window.location.href);
|
|
575
|
+
const currentOrigin = window.location.origin;
|
|
576
|
+
const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
|
|
577
|
+
return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
|
|
578
|
+
} catch {
|
|
579
|
+
return false;
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
function toRelativePath(href) {
|
|
583
|
+
if (typeof window === "undefined") {
|
|
584
|
+
return href;
|
|
585
|
+
}
|
|
586
|
+
const trimmed = href.trim();
|
|
587
|
+
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
|
|
588
|
+
return trimmed;
|
|
589
|
+
}
|
|
590
|
+
try {
|
|
591
|
+
const url = new URL(trimmed, window.location.href);
|
|
592
|
+
const currentOrigin = window.location.origin;
|
|
593
|
+
const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
|
|
594
|
+
if (normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin)) {
|
|
595
|
+
return url.pathname + url.search + url.hash;
|
|
596
|
+
}
|
|
597
|
+
} catch {
|
|
598
|
+
}
|
|
599
|
+
return trimmed;
|
|
600
|
+
}
|
|
601
|
+
function useNavigation({
|
|
602
|
+
href,
|
|
603
|
+
onClick
|
|
604
|
+
} = {}) {
|
|
605
|
+
const linkType = React3.useMemo(() => {
|
|
606
|
+
if (!href || href.trim() === "") {
|
|
607
|
+
return onClick ? "none" : "none";
|
|
608
|
+
}
|
|
609
|
+
const trimmed = href.trim();
|
|
610
|
+
if (trimmed.toLowerCase().startsWith("mailto:") || isEmail(trimmed)) {
|
|
611
|
+
return "mailto";
|
|
612
|
+
}
|
|
613
|
+
if (trimmed.toLowerCase().startsWith("tel:") || isPhoneNumber(trimmed)) {
|
|
614
|
+
return "tel";
|
|
615
|
+
}
|
|
616
|
+
if (isInternalUrl(trimmed)) {
|
|
617
|
+
return "internal";
|
|
618
|
+
}
|
|
619
|
+
try {
|
|
620
|
+
new URL(trimmed, typeof window !== "undefined" ? window.location.href : "http://localhost");
|
|
621
|
+
return "external";
|
|
622
|
+
} catch {
|
|
623
|
+
return "internal";
|
|
624
|
+
}
|
|
625
|
+
}, [href, onClick]);
|
|
626
|
+
const normalizedHref = React3.useMemo(() => {
|
|
627
|
+
if (!href || href.trim() === "") {
|
|
628
|
+
return void 0;
|
|
629
|
+
}
|
|
630
|
+
const trimmed = href.trim();
|
|
631
|
+
switch (linkType) {
|
|
632
|
+
case "tel":
|
|
633
|
+
return normalizePhoneNumber(trimmed);
|
|
634
|
+
case "mailto":
|
|
635
|
+
return normalizeEmail(trimmed);
|
|
636
|
+
case "internal":
|
|
637
|
+
return toRelativePath(trimmed);
|
|
638
|
+
case "external":
|
|
639
|
+
return trimmed;
|
|
640
|
+
default:
|
|
641
|
+
return trimmed;
|
|
642
|
+
}
|
|
643
|
+
}, [href, linkType]);
|
|
644
|
+
const target = React3.useMemo(() => {
|
|
645
|
+
switch (linkType) {
|
|
646
|
+
case "external":
|
|
647
|
+
return "_blank";
|
|
648
|
+
case "internal":
|
|
649
|
+
return "_self";
|
|
650
|
+
case "mailto":
|
|
651
|
+
case "tel":
|
|
652
|
+
return void 0;
|
|
653
|
+
default:
|
|
654
|
+
return void 0;
|
|
655
|
+
}
|
|
656
|
+
}, [linkType]);
|
|
657
|
+
const rel = React3.useMemo(() => {
|
|
658
|
+
if (linkType === "external") {
|
|
659
|
+
return "noopener noreferrer";
|
|
660
|
+
}
|
|
661
|
+
return void 0;
|
|
662
|
+
}, [linkType]);
|
|
663
|
+
const isExternal = linkType === "external";
|
|
664
|
+
const isInternal = linkType === "internal";
|
|
665
|
+
const shouldUseRouter = isInternal && typeof normalizedHref === "string" && normalizedHref.startsWith("/");
|
|
666
|
+
const handleClick = React3.useCallback(
|
|
667
|
+
(event) => {
|
|
668
|
+
if (onClick) {
|
|
669
|
+
try {
|
|
670
|
+
onClick(event);
|
|
671
|
+
} catch (error) {
|
|
672
|
+
console.error("Error in user onClick handler:", error);
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
if (event.defaultPrevented) {
|
|
676
|
+
return;
|
|
677
|
+
}
|
|
678
|
+
if (shouldUseRouter && normalizedHref && event.button === 0 && // left-click only
|
|
679
|
+
!event.metaKey && !event.altKey && !event.ctrlKey && !event.shiftKey) {
|
|
680
|
+
if (typeof window !== "undefined") {
|
|
681
|
+
const handler = window.__opensiteNavigationHandler;
|
|
682
|
+
if (typeof handler === "function") {
|
|
683
|
+
try {
|
|
684
|
+
const handled = handler(normalizedHref, event.nativeEvent || event);
|
|
685
|
+
if (handled !== false) {
|
|
686
|
+
event.preventDefault();
|
|
687
|
+
}
|
|
688
|
+
} catch (error) {
|
|
689
|
+
console.error("Error in navigation handler:", error);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
},
|
|
695
|
+
[onClick, shouldUseRouter, normalizedHref]
|
|
696
|
+
);
|
|
697
|
+
return {
|
|
698
|
+
linkType,
|
|
699
|
+
normalizedHref,
|
|
700
|
+
target,
|
|
701
|
+
rel,
|
|
702
|
+
isExternal,
|
|
703
|
+
isInternal,
|
|
704
|
+
shouldUseRouter,
|
|
705
|
+
handleClick
|
|
706
|
+
};
|
|
707
|
+
}
|
|
708
|
+
var Pressable = React3.forwardRef(
|
|
334
709
|
({
|
|
335
710
|
children,
|
|
336
711
|
className,
|
|
@@ -372,437 +747,126 @@ var Pressable = React.forwardRef(
|
|
|
372
747
|
"data-variant": variant ?? "default",
|
|
373
748
|
"data-size": size ?? "default"
|
|
374
749
|
} : {};
|
|
375
|
-
const commonProps = {
|
|
376
|
-
className: combinedClassName,
|
|
377
|
-
onClick: handleClick,
|
|
378
|
-
"aria-label": ariaLabel,
|
|
379
|
-
"aria-describedby": ariaDescribedby,
|
|
380
|
-
id,
|
|
381
|
-
...dataProps,
|
|
382
|
-
...buttonDataAttributes
|
|
383
|
-
};
|
|
384
|
-
if (finalComponentType === "a" && shouldRenderLink) {
|
|
385
|
-
return /* @__PURE__ */ jsx(
|
|
386
|
-
"a",
|
|
387
|
-
{
|
|
388
|
-
ref,
|
|
389
|
-
href: normalizedHref,
|
|
390
|
-
target,
|
|
391
|
-
rel,
|
|
392
|
-
...commonProps,
|
|
393
|
-
...props,
|
|
394
|
-
children
|
|
395
|
-
}
|
|
396
|
-
);
|
|
397
|
-
}
|
|
398
|
-
if (finalComponentType === "button") {
|
|
399
|
-
return /* @__PURE__ */ jsx(
|
|
400
|
-
"button",
|
|
401
|
-
{
|
|
402
|
-
ref,
|
|
403
|
-
type: props.type || "button",
|
|
404
|
-
...commonProps,
|
|
405
|
-
...props,
|
|
406
|
-
children
|
|
407
|
-
}
|
|
408
|
-
);
|
|
409
|
-
}
|
|
410
|
-
if (finalComponentType === "div") {
|
|
411
|
-
return /* @__PURE__ */ jsx(
|
|
412
|
-
"div",
|
|
413
|
-
{
|
|
414
|
-
ref,
|
|
415
|
-
...commonProps,
|
|
416
|
-
children
|
|
417
|
-
}
|
|
418
|
-
);
|
|
419
|
-
}
|
|
420
|
-
return /* @__PURE__ */ jsx(
|
|
421
|
-
"span",
|
|
422
|
-
{
|
|
423
|
-
ref,
|
|
424
|
-
...commonProps,
|
|
425
|
-
children
|
|
426
|
-
}
|
|
427
|
-
);
|
|
428
|
-
}
|
|
429
|
-
);
|
|
430
|
-
Pressable.displayName = "Pressable";
|
|
431
|
-
var maxWidthStyles = {
|
|
432
|
-
sm: "max-w-screen-sm",
|
|
433
|
-
md: "max-w-screen-md",
|
|
434
|
-
lg: "max-w-screen-lg",
|
|
435
|
-
xl: "max-w-7xl",
|
|
436
|
-
"2xl": "max-w-screen-2xl",
|
|
437
|
-
"4xl": "max-w-[1536px]",
|
|
438
|
-
full: "max-w-full"
|
|
439
|
-
};
|
|
440
|
-
var Container = React__default.forwardRef(
|
|
441
|
-
({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
|
|
442
|
-
const Component = as;
|
|
443
|
-
return /* @__PURE__ */ jsx(
|
|
444
|
-
Component,
|
|
445
|
-
{
|
|
446
|
-
ref,
|
|
447
|
-
className: cn(
|
|
448
|
-
"mx-auto w-full px-2 sm:px-4 lg:px-8",
|
|
449
|
-
maxWidthStyles[maxWidth],
|
|
450
|
-
className
|
|
451
|
-
),
|
|
452
|
-
...props,
|
|
453
|
-
children
|
|
454
|
-
}
|
|
455
|
-
);
|
|
456
|
-
}
|
|
457
|
-
);
|
|
458
|
-
Container.displayName = "Container";
|
|
459
|
-
|
|
460
|
-
// lib/patternSvgs.ts
|
|
461
|
-
var patternSvgs = {
|
|
462
|
-
squareAltGrid: "https://cdn.ing/assets/files/record/286187/4gpn0yq2ptra8iwlvmwwv860ggwv",
|
|
463
|
-
grid1: "https://cdn.ing/assets/files/record/286186/nbdflpgp4ostrno079hygibsflp3",
|
|
464
|
-
noise: "https://cdn.ing/assets/i/r/286188/zrqcp9hynh3j7p2laihwzfbujgrl/noise.png",
|
|
465
|
-
dots: "https://cdn.ing/assets/files/record/286198/yfsjx9thvtxzhl2qtshxyhkrm524",
|
|
466
|
-
dotPattern: "https://cdn.ing/assets/files/record/286192/7ig0cku8aqbboiza8nuk6hw0nnsr",
|
|
467
|
-
dotPattern2: "https://cdn.ing/assets/files/record/286189/arez6gd2s7isn9i1o6c7sexdq7bl",
|
|
468
|
-
circles: "https://cdn.ing/assets/files/record/286190/gtmia3sncjtzetdshc20zf1d3c17",
|
|
469
|
-
waves: "https://cdn.ing/assets/files/record/286191/mqlb33fzxz9cdth1bx7if0wmpkp1",
|
|
470
|
-
crossPattern: "https://cdn.ing/assets/files/record/286193/9yfqwdbnqaipbp7fsb3wbzzmq472",
|
|
471
|
-
architect: "https://cdn.ing/assets/files/record/286194/vgs88ugpvyhxu13wqgy0acvae6re",
|
|
472
|
-
tinyCheckers: "https://cdn.ing/assets/files/record/286195/65efaknsw8kcpf9o3c2gybytsl5b",
|
|
473
|
-
p6: "https://cdn.ing/assets/i/r/286196/6kl0rqnd6mjk8j7e525fo8fo0vkc/p6.webp"
|
|
474
|
-
};
|
|
475
|
-
var maskTop = "radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%)";
|
|
476
|
-
var maskBottom = "radial-gradient(ellipse 100% 80% at 50% 100%, #000 50%, transparent 90%)";
|
|
477
|
-
var maskCenter = "radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%)";
|
|
478
|
-
var maskTopLeft = "radial-gradient(ellipse 80% 80% at 0% 0%, #000 50%, transparent 90%)";
|
|
479
|
-
var maskTopRight = "radial-gradient(ellipse 80% 80% at 100% 0%, #000 50%, transparent 90%)";
|
|
480
|
-
var maskBottomLeft = "radial-gradient(ellipse 80% 80% at 0% 100%, #000 50%, transparent 90%)";
|
|
481
|
-
var maskBottomRight = "radial-gradient(ellipse 80% 80% at 100% 100%, #000 50%, transparent 90%)";
|
|
482
|
-
var circuitBoardPattern = (id, mask) => /* @__PURE__ */ jsxs(
|
|
483
|
-
"svg",
|
|
484
|
-
{
|
|
485
|
-
className: "h-full w-full",
|
|
486
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
487
|
-
style: mask ? {
|
|
488
|
-
maskImage: mask,
|
|
489
|
-
WebkitMaskImage: mask
|
|
490
|
-
} : void 0,
|
|
491
|
-
children: [
|
|
492
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
493
|
-
"pattern",
|
|
494
|
-
{
|
|
495
|
-
id,
|
|
496
|
-
x: "0",
|
|
497
|
-
y: "0",
|
|
498
|
-
width: "100",
|
|
499
|
-
height: "100",
|
|
500
|
-
patternUnits: "userSpaceOnUse",
|
|
501
|
-
children: [
|
|
502
|
-
/* @__PURE__ */ jsx(
|
|
503
|
-
"path",
|
|
504
|
-
{
|
|
505
|
-
d: "M0 50h40M60 50h40M50 0v40M50 60v40",
|
|
506
|
-
stroke: "hsl(var(--muted))",
|
|
507
|
-
strokeWidth: "1",
|
|
508
|
-
fill: "none"
|
|
509
|
-
}
|
|
510
|
-
),
|
|
511
|
-
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "50", r: "3", fill: "hsl(var(--muted))" }),
|
|
512
|
-
/* @__PURE__ */ jsx("circle", { cx: "0", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
513
|
-
/* @__PURE__ */ jsx("circle", { cx: "100", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
514
|
-
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "0", r: "2", fill: "hsl(var(--muted))" }),
|
|
515
|
-
/* @__PURE__ */ jsx("circle", { cx: "50", cy: "100", r: "2", fill: "hsl(var(--muted))" })
|
|
516
|
-
]
|
|
517
|
-
}
|
|
518
|
-
) }),
|
|
519
|
-
/* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
520
|
-
]
|
|
521
|
-
}
|
|
522
|
-
);
|
|
523
|
-
var gridDotsPattern = (id, mask) => /* @__PURE__ */ jsxs(
|
|
524
|
-
"svg",
|
|
525
|
-
{
|
|
526
|
-
className: "h-full w-full",
|
|
527
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
528
|
-
style: mask ? {
|
|
529
|
-
maskImage: mask,
|
|
530
|
-
WebkitMaskImage: mask
|
|
531
|
-
} : void 0,
|
|
532
|
-
children: [
|
|
533
|
-
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsxs(
|
|
534
|
-
"pattern",
|
|
535
|
-
{
|
|
536
|
-
id,
|
|
537
|
-
x: "0",
|
|
538
|
-
y: "0",
|
|
539
|
-
width: "40",
|
|
540
|
-
height: "40",
|
|
541
|
-
patternUnits: "userSpaceOnUse",
|
|
542
|
-
children: [
|
|
543
|
-
/* @__PURE__ */ jsx(
|
|
544
|
-
"path",
|
|
545
|
-
{
|
|
546
|
-
d: "M0 20h40M20 0v40",
|
|
547
|
-
stroke: "hsl(var(--muted))",
|
|
548
|
-
strokeWidth: "0.5",
|
|
549
|
-
fill: "none"
|
|
550
|
-
}
|
|
551
|
-
),
|
|
552
|
-
/* @__PURE__ */ jsx("circle", { cx: "20", cy: "20", r: "2", fill: "hsl(var(--muted))" })
|
|
553
|
-
]
|
|
554
|
-
}
|
|
555
|
-
) }),
|
|
556
|
-
/* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
557
|
-
]
|
|
558
|
-
}
|
|
559
|
-
);
|
|
560
|
-
var gridPattern = (size, mask) => /* @__PURE__ */ jsx(
|
|
561
|
-
"div",
|
|
562
|
-
{
|
|
563
|
-
className: "h-full w-full bg-[linear-gradient(to_right,_hsl(var(--muted))_1px,_transparent_1px),linear-gradient(to_bottom,_hsl(var(--muted))_1px,_transparent_1px)]",
|
|
564
|
-
style: {
|
|
565
|
-
backgroundSize: `${size}px ${size}px`,
|
|
566
|
-
...mask ? {
|
|
567
|
-
maskImage: mask,
|
|
568
|
-
WebkitMaskImage: mask
|
|
569
|
-
} : {}
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
);
|
|
573
|
-
var diagonalCrossPattern = (mask) => /* @__PURE__ */ jsx(
|
|
574
|
-
"div",
|
|
575
|
-
{
|
|
576
|
-
className: "h-full w-full",
|
|
577
|
-
style: {
|
|
578
|
-
backgroundImage: "repeating-linear-gradient(45deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px), repeating-linear-gradient(135deg, transparent, transparent 32px, hsl(var(--muted)) 32px, hsl(var(--muted)) 33px)",
|
|
579
|
-
...mask ? {
|
|
580
|
-
maskImage: mask,
|
|
581
|
-
WebkitMaskImage: mask
|
|
582
|
-
} : {}
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
);
|
|
586
|
-
var dashedGridMaskBase = "repeating-linear-gradient(to right, black 0px, black 3px, transparent 3px, transparent 8px), repeating-linear-gradient(to bottom, black 0px, black 3px, transparent 3px, transparent 8px)";
|
|
587
|
-
var dashedGridPattern = (fadeMask) => {
|
|
588
|
-
const mask = fadeMask ? `${dashedGridMaskBase}, ${fadeMask}` : dashedGridMaskBase;
|
|
589
|
-
return /* @__PURE__ */ jsx(
|
|
590
|
-
"div",
|
|
591
|
-
{
|
|
592
|
-
className: "h-full w-full",
|
|
593
|
-
style: {
|
|
594
|
-
backgroundImage: "linear-gradient(to right, hsl(var(--muted)) 1px, transparent 1px), linear-gradient(to bottom, hsl(var(--muted)) 1px, transparent 1px)",
|
|
595
|
-
backgroundSize: "20px 20px",
|
|
596
|
-
backgroundPosition: "0 0, 0 0",
|
|
597
|
-
maskImage: mask,
|
|
598
|
-
WebkitMaskImage: mask,
|
|
599
|
-
maskComposite: "intersect",
|
|
600
|
-
WebkitMaskComposite: "source-in"
|
|
601
|
-
}
|
|
750
|
+
const commonProps = {
|
|
751
|
+
className: combinedClassName,
|
|
752
|
+
onClick: handleClick,
|
|
753
|
+
"aria-label": ariaLabel,
|
|
754
|
+
"aria-describedby": ariaDescribedby,
|
|
755
|
+
id,
|
|
756
|
+
...dataProps,
|
|
757
|
+
...buttonDataAttributes
|
|
758
|
+
};
|
|
759
|
+
if (finalComponentType === "a" && shouldRenderLink) {
|
|
760
|
+
return /* @__PURE__ */ jsx(
|
|
761
|
+
"a",
|
|
762
|
+
{
|
|
763
|
+
ref,
|
|
764
|
+
href: normalizedHref,
|
|
765
|
+
target,
|
|
766
|
+
rel,
|
|
767
|
+
...commonProps,
|
|
768
|
+
...props,
|
|
769
|
+
children
|
|
770
|
+
}
|
|
771
|
+
);
|
|
602
772
|
}
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
773
|
+
if (finalComponentType === "button") {
|
|
774
|
+
return /* @__PURE__ */ jsx(
|
|
775
|
+
"button",
|
|
776
|
+
{
|
|
777
|
+
ref,
|
|
778
|
+
type: props.type || "button",
|
|
779
|
+
...commonProps,
|
|
780
|
+
...props,
|
|
781
|
+
children
|
|
782
|
+
}
|
|
783
|
+
);
|
|
614
784
|
}
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
style: {
|
|
625
|
-
background: "radial-gradient(circle, hsl(var(--primary)) 0%, transparent 70%)"
|
|
785
|
+
if (finalComponentType === "div") {
|
|
786
|
+
return /* @__PURE__ */ jsx(
|
|
787
|
+
"div",
|
|
788
|
+
{
|
|
789
|
+
ref,
|
|
790
|
+
...commonProps,
|
|
791
|
+
children
|
|
792
|
+
}
|
|
793
|
+
);
|
|
626
794
|
}
|
|
627
|
-
}
|
|
628
|
-
);
|
|
629
|
-
var patternOverlays = {
|
|
630
|
-
circuitBoardBasic: () => circuitBoardPattern("circuit-board-basic"),
|
|
631
|
-
circuitBoardFadeTop: () => circuitBoardPattern("circuit-board-fade-top", maskTop),
|
|
632
|
-
circuitBoardFadeBottom: () => circuitBoardPattern("circuit-board-fade-bottom", maskBottom),
|
|
633
|
-
circuitBoardFadeCenter: () => circuitBoardPattern("circuit-board-fade-center", maskCenter),
|
|
634
|
-
circuitBoardFadeTopLeft: () => circuitBoardPattern("circuit-board-fade-top-left", maskTopLeft),
|
|
635
|
-
circuitBoardFadeTopRight: () => circuitBoardPattern("circuit-board-fade-top-right", maskTopRight),
|
|
636
|
-
circuitBoardFadeBottomLeft: () => circuitBoardPattern("circuit-board-fade-bottom-left", maskBottomLeft),
|
|
637
|
-
circuitBoardFadeBottomRight: () => circuitBoardPattern("circuit-board-fade-bottom-right", maskBottomRight),
|
|
638
|
-
dashedGridBasic: () => dashedGridPattern(),
|
|
639
|
-
dashedGridFadeTop: () => dashedGridPattern(maskTop),
|
|
640
|
-
dashedGridFadeBottom: () => dashedGridPattern(maskBottom),
|
|
641
|
-
dashedGridFadeCenter: () => dashedGridPattern(maskCenter),
|
|
642
|
-
dashedGridFadeTopLeft: () => dashedGridPattern(maskTopLeft),
|
|
643
|
-
dashedGridFadeTopRight: () => dashedGridPattern(maskTopRight),
|
|
644
|
-
dashedGridFadeBottomLeft: () => dashedGridPattern(maskBottomLeft),
|
|
645
|
-
dashedGridFadeBottomRight: () => dashedGridPattern(maskBottomRight),
|
|
646
|
-
diagonalCrossBasic: () => diagonalCrossPattern(),
|
|
647
|
-
diagonalCrossFadeTop: () => diagonalCrossPattern(maskTop),
|
|
648
|
-
diagonalCrossFadeBottom: () => diagonalCrossPattern(maskBottom),
|
|
649
|
-
diagonalCrossFadeCenter: () => diagonalCrossPattern(maskCenter),
|
|
650
|
-
diagonalCrossFadeTopLeft: () => diagonalCrossPattern(maskTopLeft),
|
|
651
|
-
diagonalCrossFadeTopRight: () => diagonalCrossPattern(maskTopRight),
|
|
652
|
-
diagonalCrossFadeBottomLeft: () => diagonalCrossPattern(maskBottomLeft),
|
|
653
|
-
diagonalCrossFadeBottomRight: () => diagonalCrossPattern(maskBottomRight),
|
|
654
|
-
gridBasic: () => gridPattern(40),
|
|
655
|
-
gridFadeTop: () => gridPattern(32, maskTop),
|
|
656
|
-
gridFadeBottom: () => gridPattern(32, maskBottom),
|
|
657
|
-
gridFadeCenter: () => gridPattern(40, maskCenter),
|
|
658
|
-
gridFadeTopLeft: () => gridPattern(32, maskTopLeft),
|
|
659
|
-
gridFadeTopRight: () => gridPattern(32, maskTopRight),
|
|
660
|
-
gridFadeBottomLeft: () => gridPattern(32, maskBottomLeft),
|
|
661
|
-
gridFadeBottomRight: () => gridPattern(32, maskBottomRight),
|
|
662
|
-
gridDotsBasic: () => gridDotsPattern("grid-dots-basic"),
|
|
663
|
-
gridDotsFadeCenter: () => gridDotsPattern("grid-dots-fade-center", maskCenter),
|
|
664
|
-
gradientGlowTop: () => gradientGlow("top"),
|
|
665
|
-
gradientGlowBottom: () => gradientGlow("bottom"),
|
|
666
|
-
spotlightLeft: () => spotlight("left"),
|
|
667
|
-
spotlightRight: () => spotlight("right")
|
|
668
|
-
};
|
|
669
|
-
var inlinePatternStyles = {
|
|
670
|
-
radialGradientTop: {
|
|
671
|
-
background: "radial-gradient(125% 125% at 50% 10%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
672
|
-
},
|
|
673
|
-
radialGradientBottom: {
|
|
674
|
-
background: "radial-gradient(125% 125% at 50% 90%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
675
|
-
}
|
|
676
|
-
};
|
|
677
|
-
function PatternBackground({
|
|
678
|
-
pattern,
|
|
679
|
-
opacity = 0.08,
|
|
680
|
-
className,
|
|
681
|
-
style
|
|
682
|
-
}) {
|
|
683
|
-
if (!pattern) {
|
|
684
|
-
return null;
|
|
685
|
-
}
|
|
686
|
-
if (pattern in inlinePatternStyles) {
|
|
687
|
-
const inlineStyle = inlinePatternStyles[pattern];
|
|
688
795
|
return /* @__PURE__ */ jsx(
|
|
689
|
-
"
|
|
796
|
+
"span",
|
|
690
797
|
{
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
798
|
+
ref,
|
|
799
|
+
...commonProps,
|
|
800
|
+
children
|
|
694
801
|
}
|
|
695
802
|
);
|
|
696
803
|
}
|
|
697
|
-
|
|
698
|
-
|
|
804
|
+
);
|
|
805
|
+
Pressable.displayName = "Pressable";
|
|
806
|
+
var MOBILE_CLASSES = {
|
|
807
|
+
"fit-left": "items-start md:items-center",
|
|
808
|
+
"fit-center": "items-center",
|
|
809
|
+
"fit-right": "items-end md:items-center",
|
|
810
|
+
"full-left": "items-stretch md:items-center",
|
|
811
|
+
"full-center": "items-stretch md:items-center",
|
|
812
|
+
"full-right": "items-stretch md:items-center"
|
|
813
|
+
};
|
|
814
|
+
function BlockActions({
|
|
815
|
+
mobileConfig,
|
|
816
|
+
actionsClassName,
|
|
817
|
+
verticalSpacing = "mt-4 md:mt-8",
|
|
818
|
+
actions,
|
|
819
|
+
actionsSlot
|
|
820
|
+
}) {
|
|
821
|
+
const width = mobileConfig?.width ?? "full";
|
|
822
|
+
const position = mobileConfig?.position ?? "center";
|
|
823
|
+
const mobileLayoutClass = MOBILE_CLASSES[`${width}-${position}`];
|
|
824
|
+
if (actionsSlot) {
|
|
825
|
+
return /* @__PURE__ */ jsx("div", { children: actionsSlot });
|
|
826
|
+
} else if (actions && actions?.length > 0) {
|
|
699
827
|
return /* @__PURE__ */ jsx(
|
|
700
828
|
"div",
|
|
701
829
|
{
|
|
702
|
-
className: cn(
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
830
|
+
className: cn(
|
|
831
|
+
"flex flex-col md:flex-row flex-wrap gap-4",
|
|
832
|
+
mobileLayoutClass,
|
|
833
|
+
actionsClassName,
|
|
834
|
+
verticalSpacing
|
|
835
|
+
),
|
|
836
|
+
children: actions.map((action, index) => /* @__PURE__ */ jsx(ActionComponent, { action }, index))
|
|
706
837
|
}
|
|
707
838
|
);
|
|
839
|
+
} else {
|
|
840
|
+
return null;
|
|
708
841
|
}
|
|
709
|
-
|
|
842
|
+
}
|
|
843
|
+
function ActionComponent({ action }) {
|
|
844
|
+
const {
|
|
845
|
+
label,
|
|
846
|
+
icon,
|
|
847
|
+
iconAfter,
|
|
848
|
+
children,
|
|
849
|
+
href,
|
|
850
|
+
onClick,
|
|
851
|
+
className: actionClassName,
|
|
852
|
+
...pressableProps
|
|
853
|
+
} = action;
|
|
710
854
|
return /* @__PURE__ */ jsx(
|
|
711
|
-
|
|
855
|
+
Pressable,
|
|
712
856
|
{
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
857
|
+
href,
|
|
858
|
+
onClick,
|
|
859
|
+
asButton: action.asButton ?? true,
|
|
860
|
+
className: actionClassName,
|
|
861
|
+
...pressableProps,
|
|
862
|
+
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
863
|
+
icon,
|
|
864
|
+
label,
|
|
865
|
+
iconAfter
|
|
866
|
+
] })
|
|
722
867
|
}
|
|
723
868
|
);
|
|
724
869
|
}
|
|
725
|
-
var backgroundStyles = {
|
|
726
|
-
default: "bg-background text-foreground",
|
|
727
|
-
white: "bg-white text-dark",
|
|
728
|
-
gray: "bg-muted/30 text-foreground",
|
|
729
|
-
dark: "bg-foreground text-background",
|
|
730
|
-
transparent: "bg-transparent text-foreground",
|
|
731
|
-
gradient: "bg-linear-to-br from-primary via-primary/90 to-foreground text-primary-foreground",
|
|
732
|
-
primary: "bg-primary text-primary-foreground",
|
|
733
|
-
secondary: "bg-secondary text-secondary-foreground",
|
|
734
|
-
muted: "bg-muted text-muted-foreground"
|
|
735
|
-
};
|
|
736
|
-
var spacingStyles = {
|
|
737
|
-
none: "py-0 md:py-0",
|
|
738
|
-
sm: "py-12 md:py-16",
|
|
739
|
-
md: "py-16 md:py-24",
|
|
740
|
-
lg: "py-20 md:py-32",
|
|
741
|
-
xl: "py-24 md:py-40"
|
|
742
|
-
};
|
|
743
|
-
var predefinedSpacings = ["none", "sm", "md", "lg", "xl"];
|
|
744
|
-
var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
|
|
745
|
-
var Section = React__default.forwardRef(
|
|
746
|
-
({
|
|
747
|
-
id,
|
|
748
|
-
title,
|
|
749
|
-
subtitle,
|
|
750
|
-
children,
|
|
751
|
-
className,
|
|
752
|
-
style,
|
|
753
|
-
background = "default",
|
|
754
|
-
spacing = "lg",
|
|
755
|
-
pattern,
|
|
756
|
-
patternOpacity,
|
|
757
|
-
patternClassName,
|
|
758
|
-
containerClassName,
|
|
759
|
-
containerMaxWidth = "xl",
|
|
760
|
-
...props
|
|
761
|
-
}, ref) => {
|
|
762
|
-
const effectivePatternOpacity = patternOpacity !== void 0 ? patternOpacity : pattern ? 1 : 0;
|
|
763
|
-
return /* @__PURE__ */ jsxs(
|
|
764
|
-
"section",
|
|
765
|
-
{
|
|
766
|
-
ref,
|
|
767
|
-
id,
|
|
768
|
-
className: cn(
|
|
769
|
-
"relative",
|
|
770
|
-
pattern ? "overflow-hidden" : null,
|
|
771
|
-
backgroundStyles[background],
|
|
772
|
-
isPredefinedSpacing(spacing) ? spacingStyles[spacing] : spacing,
|
|
773
|
-
className
|
|
774
|
-
),
|
|
775
|
-
style,
|
|
776
|
-
...props,
|
|
777
|
-
children: [
|
|
778
|
-
/* @__PURE__ */ jsx(
|
|
779
|
-
PatternBackground,
|
|
780
|
-
{
|
|
781
|
-
pattern,
|
|
782
|
-
opacity: effectivePatternOpacity,
|
|
783
|
-
className: patternClassName
|
|
784
|
-
}
|
|
785
|
-
),
|
|
786
|
-
/* @__PURE__ */ jsxs(
|
|
787
|
-
Container,
|
|
788
|
-
{
|
|
789
|
-
maxWidth: containerMaxWidth,
|
|
790
|
-
className: cn("relative z-10", containerClassName),
|
|
791
|
-
children: [
|
|
792
|
-
(title || subtitle) && /* @__PURE__ */ jsxs("div", { className: "mb-6 text-center md:mb-16", children: [
|
|
793
|
-
subtitle && /* @__PURE__ */ jsx("p", { className: "mb-2 text-sm font-semibold uppercase tracking-wider", children: subtitle }),
|
|
794
|
-
title && /* @__PURE__ */ jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl", children: title })
|
|
795
|
-
] }),
|
|
796
|
-
children
|
|
797
|
-
]
|
|
798
|
-
}
|
|
799
|
-
)
|
|
800
|
-
]
|
|
801
|
-
}
|
|
802
|
-
);
|
|
803
|
-
}
|
|
804
|
-
);
|
|
805
|
-
Section.displayName = "Section";
|
|
806
870
|
function HeroHiringAnimatedText({
|
|
807
871
|
headingPrefix,
|
|
808
872
|
animatedTexts,
|
|
@@ -810,15 +874,13 @@ function HeroHiringAnimatedText({
|
|
|
810
874
|
description,
|
|
811
875
|
actions,
|
|
812
876
|
actionsSlot,
|
|
813
|
-
scrollAction,
|
|
814
|
-
scrollActionSlot,
|
|
815
877
|
backgroundImage,
|
|
816
878
|
background,
|
|
817
|
-
spacing = "py-0 md:py-0",
|
|
818
879
|
pattern,
|
|
819
880
|
patternOpacity,
|
|
820
881
|
className,
|
|
821
|
-
|
|
882
|
+
spacing = "py-0 md:py-0",
|
|
883
|
+
containerClassName = "sm:px-4 mx-auto h-screen w-full max-w-7xl relative z-10 px-6 pb-12 md:pb-18",
|
|
822
884
|
contentClassName,
|
|
823
885
|
headingClassName,
|
|
824
886
|
descriptionClassName,
|
|
@@ -866,51 +928,6 @@ function HeroHiringAnimatedText({
|
|
|
866
928
|
headingClassName,
|
|
867
929
|
activeIndex
|
|
868
930
|
]);
|
|
869
|
-
const renderActions = useMemo(() => {
|
|
870
|
-
if (actionsSlot) return actionsSlot;
|
|
871
|
-
if (!actions || actions.length === 0) return null;
|
|
872
|
-
return /* @__PURE__ */ jsx("div", { className: cn("flex flex-col md:flex-row gap-4", actionsClassName), children: actions.map((action, index) => {
|
|
873
|
-
const {
|
|
874
|
-
label,
|
|
875
|
-
icon,
|
|
876
|
-
iconAfter,
|
|
877
|
-
children,
|
|
878
|
-
className: actionClassName,
|
|
879
|
-
...pressableProps
|
|
880
|
-
} = action;
|
|
881
|
-
return /* @__PURE__ */ jsx(
|
|
882
|
-
Pressable,
|
|
883
|
-
{
|
|
884
|
-
asButton: true,
|
|
885
|
-
className: actionClassName,
|
|
886
|
-
...pressableProps,
|
|
887
|
-
children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
888
|
-
icon,
|
|
889
|
-
label,
|
|
890
|
-
iconAfter
|
|
891
|
-
] })
|
|
892
|
-
},
|
|
893
|
-
index
|
|
894
|
-
);
|
|
895
|
-
}) });
|
|
896
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
897
|
-
const renderScrollAction = useMemo(() => {
|
|
898
|
-
if (scrollActionSlot) return scrollActionSlot;
|
|
899
|
-
if (!scrollAction) return null;
|
|
900
|
-
const {
|
|
901
|
-
label,
|
|
902
|
-
icon,
|
|
903
|
-
iconAfter,
|
|
904
|
-
children,
|
|
905
|
-
className: actionClassName,
|
|
906
|
-
...pressableProps
|
|
907
|
-
} = scrollAction;
|
|
908
|
-
return /* @__PURE__ */ jsx(Pressable, { asButton: true, className: actionClassName, ...pressableProps, children: children ?? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
909
|
-
icon,
|
|
910
|
-
/* @__PURE__ */ jsx("div", { children: label }),
|
|
911
|
-
iconAfter
|
|
912
|
-
] }) });
|
|
913
|
-
}, [scrollActionSlot, scrollAction]);
|
|
914
931
|
return /* @__PURE__ */ jsx(
|
|
915
932
|
Section,
|
|
916
933
|
{
|
|
@@ -933,7 +950,7 @@ function HeroHiringAnimatedText({
|
|
|
933
950
|
),
|
|
934
951
|
children: [
|
|
935
952
|
renderHeading,
|
|
936
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-8", children: [
|
|
953
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center md:items-start flex-col gap-8", children: [
|
|
937
954
|
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
938
955
|
"p",
|
|
939
956
|
{
|
|
@@ -944,10 +961,15 @@ function HeroHiringAnimatedText({
|
|
|
944
961
|
children: description
|
|
945
962
|
}
|
|
946
963
|
) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
964
|
+
/* @__PURE__ */ jsx(
|
|
965
|
+
BlockActions,
|
|
966
|
+
{
|
|
967
|
+
actions,
|
|
968
|
+
actionsSlot,
|
|
969
|
+
actionsClassName,
|
|
970
|
+
mobileConfig: { width: "full", position: "center" }
|
|
971
|
+
}
|
|
972
|
+
)
|
|
951
973
|
] })
|
|
952
974
|
]
|
|
953
975
|
}
|