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