@opensite/ui 2.3.6 → 2.3.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/about-split-hero.cjs +1 -1
- package/dist/about-split-hero.js +1 -1
- package/dist/about-story-gallery.cjs +68 -9
- package/dist/about-story-gallery.js +69 -10
- package/dist/about-streamline-team.cjs +690 -708
- package/dist/about-streamline-team.js +689 -707
- package/dist/about-vision-gallery.cjs +13 -79
- package/dist/about-vision-gallery.d.cts +1 -9
- package/dist/about-vision-gallery.d.ts +1 -9
- package/dist/about-vision-gallery.js +13 -79
- package/dist/community-initiatives.cjs +827 -865
- package/dist/community-initiatives.js +826 -864
- package/dist/components.cjs +46 -122
- package/dist/components.js +46 -122
- package/dist/index.cjs +46 -92
- package/dist/index.js +46 -92
- package/dist/registry.cjs +175 -198
- package/dist/registry.js +175 -198
- package/package.json +1 -1
|
@@ -1,13 +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
7
|
var img = require('@page-speed/img');
|
|
8
|
-
var classVarianceAuthority = require('class-variance-authority');
|
|
9
8
|
var jsxRuntime = require('react/jsx-runtime');
|
|
10
|
-
var
|
|
9
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
11
10
|
|
|
12
11
|
function _interopNamespace(e) {
|
|
13
12
|
if (e && e.__esModule) return e;
|
|
@@ -27,246 +26,387 @@ function _interopNamespace(e) {
|
|
|
27
26
|
return Object.freeze(n);
|
|
28
27
|
}
|
|
29
28
|
|
|
30
|
-
var
|
|
29
|
+
var React3__namespace = /*#__PURE__*/_interopNamespace(React3);
|
|
31
30
|
|
|
32
31
|
// components/blocks/about/about-streamline-team.tsx
|
|
33
32
|
function cn(...inputs) {
|
|
34
33
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
35
34
|
}
|
|
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
|
-
|
|
61
|
-
}
|
|
62
|
-
function getNestedCardTextColor(parentBg, options) {
|
|
63
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
64
|
-
return isDark ? "text-foreground" : "";
|
|
65
|
-
}
|
|
66
|
-
function getTextColor(parentBg, variant = "default", options) {
|
|
67
|
-
const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
|
|
68
|
-
if (isDark) {
|
|
69
|
-
switch (variant) {
|
|
70
|
-
case "default":
|
|
71
|
-
return "text-foreground";
|
|
72
|
-
case "muted":
|
|
73
|
-
return "text-foreground/80";
|
|
74
|
-
case "subtle":
|
|
75
|
-
return "text-foreground/60";
|
|
76
|
-
case "accent":
|
|
77
|
-
return "text-accent-foreground";
|
|
78
|
-
}
|
|
79
|
-
} else {
|
|
80
|
-
switch (variant) {
|
|
81
|
-
case "default":
|
|
82
|
-
return "text-foreground";
|
|
83
|
-
case "muted":
|
|
84
|
-
return "text-muted-foreground";
|
|
85
|
-
case "subtle":
|
|
86
|
-
return "text-muted-foreground/70";
|
|
87
|
-
case "accent":
|
|
88
|
-
return "text-primary";
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
function normalizePhoneNumber(input) {
|
|
93
|
-
const trimmed = input.trim();
|
|
94
|
-
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
95
|
-
return trimmed;
|
|
96
|
-
}
|
|
97
|
-
const match = trimmed.match(/^[\s\+\-\(\)]*(\d[\d\s\-\(\)\.]*\d)[\s\-]*(x|ext\.?|extension)?[\s\-]*(\d+)?$/i);
|
|
98
|
-
if (match) {
|
|
99
|
-
const mainNumber = match[1].replace(/[\s\-\(\)\.]/g, "");
|
|
100
|
-
const extension = match[3];
|
|
101
|
-
const normalized = mainNumber.length >= 10 && !trimmed.startsWith("+") ? `+${mainNumber}` : mainNumber;
|
|
102
|
-
const withExtension = extension ? `${normalized};ext=${extension}` : normalized;
|
|
103
|
-
return `tel:${withExtension}`;
|
|
104
|
-
}
|
|
105
|
-
const cleaned = trimmed.replace(/[\s\-\(\)\.]/g, "");
|
|
106
|
-
return `tel:${cleaned}`;
|
|
107
|
-
}
|
|
108
|
-
function normalizeEmail(input) {
|
|
109
|
-
const trimmed = input.trim();
|
|
110
|
-
if (trimmed.toLowerCase().startsWith("mailto:")) {
|
|
111
|
-
return trimmed;
|
|
112
|
-
}
|
|
113
|
-
return `mailto:${trimmed}`;
|
|
114
|
-
}
|
|
115
|
-
function isEmail(input) {
|
|
116
|
-
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
117
|
-
return emailRegex.test(input.trim());
|
|
118
|
-
}
|
|
119
|
-
function isPhoneNumber(input) {
|
|
120
|
-
const trimmed = input.trim();
|
|
121
|
-
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
122
|
-
return true;
|
|
123
|
-
}
|
|
124
|
-
const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
|
|
125
|
-
return phoneRegex.test(trimmed);
|
|
126
|
-
}
|
|
127
|
-
function isInternalUrl(href) {
|
|
128
|
-
if (typeof window === "undefined") {
|
|
129
|
-
return href.startsWith("/") && !href.startsWith("//");
|
|
130
|
-
}
|
|
131
|
-
const trimmed = href.trim();
|
|
132
|
-
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
try {
|
|
136
|
-
const url = new URL(trimmed, window.location.href);
|
|
137
|
-
const currentOrigin = window.location.origin;
|
|
138
|
-
const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
|
|
139
|
-
return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
|
|
140
|
-
} catch {
|
|
141
|
-
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
|
+
);
|
|
142
60
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
+
]
|
|
147
125
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
+
]
|
|
151
162
|
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
+
} : {}
|
|
158
174
|
}
|
|
159
|
-
} catch {
|
|
160
175
|
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
if (trimmed.toLowerCase().startsWith("mailto:") || isEmail(trimmed)) {
|
|
173
|
-
return "mailto";
|
|
174
|
-
}
|
|
175
|
-
if (trimmed.toLowerCase().startsWith("tel:") || isPhoneNumber(trimmed)) {
|
|
176
|
-
return "tel";
|
|
177
|
-
}
|
|
178
|
-
if (isInternalUrl(trimmed)) {
|
|
179
|
-
return "internal";
|
|
180
|
-
}
|
|
181
|
-
try {
|
|
182
|
-
new URL(trimmed, typeof window !== "undefined" ? window.location.href : "http://localhost");
|
|
183
|
-
return "external";
|
|
184
|
-
} catch {
|
|
185
|
-
return "internal";
|
|
186
|
-
}
|
|
187
|
-
}, [href, onClick]);
|
|
188
|
-
const normalizedHref = React__namespace.useMemo(() => {
|
|
189
|
-
if (!href || href.trim() === "") {
|
|
190
|
-
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
|
+
} : {}
|
|
191
187
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
+
}
|
|
204
206
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
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%)"
|
|
217
218
|
}
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
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%)"
|
|
222
230
|
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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"
|
|
239
298
|
}
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
console.error("Error in navigation handler:", error);
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
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()
|
|
255
310
|
}
|
|
256
|
-
|
|
257
|
-
|
|
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
|
+
}
|
|
258
327
|
);
|
|
259
|
-
return {
|
|
260
|
-
linkType,
|
|
261
|
-
normalizedHref,
|
|
262
|
-
target,
|
|
263
|
-
rel,
|
|
264
|
-
isExternal,
|
|
265
|
-
isInternal,
|
|
266
|
-
shouldUseRouter,
|
|
267
|
-
handleClick
|
|
268
|
-
};
|
|
269
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";
|
|
270
410
|
var baseStyles = [
|
|
271
411
|
// Layout
|
|
272
412
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap shrink-0",
|
|
@@ -409,7 +549,185 @@ var buttonVariants = classVarianceAuthority.cva(baseStyles, {
|
|
|
409
549
|
size: "default"
|
|
410
550
|
}
|
|
411
551
|
});
|
|
412
|
-
|
|
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(
|
|
413
731
|
({
|
|
414
732
|
children,
|
|
415
733
|
className,
|
|
@@ -455,437 +773,122 @@ var Pressable = React__namespace.forwardRef(
|
|
|
455
773
|
className: combinedClassName,
|
|
456
774
|
onClick: handleClick,
|
|
457
775
|
"aria-label": ariaLabel,
|
|
458
|
-
"aria-describedby": ariaDescribedby,
|
|
459
|
-
id,
|
|
460
|
-
...dataProps,
|
|
461
|
-
...buttonDataAttributes
|
|
462
|
-
};
|
|
463
|
-
if (finalComponentType === "a" && shouldRenderLink) {
|
|
464
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
465
|
-
"a",
|
|
466
|
-
{
|
|
467
|
-
ref,
|
|
468
|
-
href: normalizedHref,
|
|
469
|
-
target,
|
|
470
|
-
rel,
|
|
471
|
-
...commonProps,
|
|
472
|
-
...props,
|
|
473
|
-
children
|
|
474
|
-
}
|
|
475
|
-
);
|
|
476
|
-
}
|
|
477
|
-
if (finalComponentType === "button") {
|
|
478
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
479
|
-
"button",
|
|
480
|
-
{
|
|
481
|
-
ref,
|
|
482
|
-
type: props.type || "button",
|
|
483
|
-
...commonProps,
|
|
484
|
-
...props,
|
|
485
|
-
children
|
|
486
|
-
}
|
|
487
|
-
);
|
|
488
|
-
}
|
|
489
|
-
if (finalComponentType === "div") {
|
|
490
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
491
|
-
"div",
|
|
492
|
-
{
|
|
493
|
-
ref,
|
|
494
|
-
...commonProps,
|
|
495
|
-
children
|
|
496
|
-
}
|
|
497
|
-
);
|
|
498
|
-
}
|
|
499
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
500
|
-
"span",
|
|
501
|
-
{
|
|
502
|
-
ref,
|
|
503
|
-
...commonProps,
|
|
504
|
-
children
|
|
505
|
-
}
|
|
506
|
-
);
|
|
507
|
-
}
|
|
508
|
-
);
|
|
509
|
-
Pressable.displayName = "Pressable";
|
|
510
|
-
var DEFAULT_ICON_API_KEY = "au382bi7fsh96w9h9xlrnat2jglx";
|
|
511
|
-
function DynamicIcon({ apiKey, ...props }) {
|
|
512
|
-
return /* @__PURE__ */ jsxRuntime.jsx(icon.Icon, { ...props, apiKey: apiKey ?? DEFAULT_ICON_API_KEY });
|
|
513
|
-
}
|
|
514
|
-
var maxWidthStyles = {
|
|
515
|
-
sm: "max-w-screen-sm",
|
|
516
|
-
md: "max-w-screen-md",
|
|
517
|
-
lg: "max-w-screen-lg",
|
|
518
|
-
xl: "max-w-7xl",
|
|
519
|
-
"2xl": "max-w-screen-2xl",
|
|
520
|
-
"4xl": "max-w-[1536px]",
|
|
521
|
-
full: "max-w-full"
|
|
522
|
-
};
|
|
523
|
-
var Container = React__namespace.default.forwardRef(
|
|
524
|
-
({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
|
|
525
|
-
const Component = as;
|
|
526
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
527
|
-
Component,
|
|
528
|
-
{
|
|
529
|
-
ref,
|
|
530
|
-
className: cn(
|
|
531
|
-
"mx-auto w-full px-2 sm:px-4 lg:px-8",
|
|
532
|
-
maxWidthStyles[maxWidth],
|
|
533
|
-
className
|
|
534
|
-
),
|
|
535
|
-
...props,
|
|
536
|
-
children
|
|
537
|
-
}
|
|
538
|
-
);
|
|
539
|
-
}
|
|
540
|
-
);
|
|
541
|
-
Container.displayName = "Container";
|
|
542
|
-
|
|
543
|
-
// lib/patternSvgs.ts
|
|
544
|
-
var patternSvgs = {
|
|
545
|
-
squareAltGrid: "https://cdn.ing/assets/files/record/286187/4gpn0yq2ptra8iwlvmwwv860ggwv",
|
|
546
|
-
grid1: "https://cdn.ing/assets/files/record/286186/nbdflpgp4ostrno079hygibsflp3",
|
|
547
|
-
noise: "https://cdn.ing/assets/i/r/286188/zrqcp9hynh3j7p2laihwzfbujgrl/noise.png",
|
|
548
|
-
dots: "https://cdn.ing/assets/files/record/286198/yfsjx9thvtxzhl2qtshxyhkrm524",
|
|
549
|
-
dotPattern: "https://cdn.ing/assets/files/record/286192/7ig0cku8aqbboiza8nuk6hw0nnsr",
|
|
550
|
-
dotPattern2: "https://cdn.ing/assets/files/record/286189/arez6gd2s7isn9i1o6c7sexdq7bl",
|
|
551
|
-
circles: "https://cdn.ing/assets/files/record/286190/gtmia3sncjtzetdshc20zf1d3c17",
|
|
552
|
-
waves: "https://cdn.ing/assets/files/record/286191/mqlb33fzxz9cdth1bx7if0wmpkp1",
|
|
553
|
-
crossPattern: "https://cdn.ing/assets/files/record/286193/9yfqwdbnqaipbp7fsb3wbzzmq472",
|
|
554
|
-
architect: "https://cdn.ing/assets/files/record/286194/vgs88ugpvyhxu13wqgy0acvae6re",
|
|
555
|
-
tinyCheckers: "https://cdn.ing/assets/files/record/286195/65efaknsw8kcpf9o3c2gybytsl5b",
|
|
556
|
-
p6: "https://cdn.ing/assets/i/r/286196/6kl0rqnd6mjk8j7e525fo8fo0vkc/p6.webp"
|
|
557
|
-
};
|
|
558
|
-
var maskTop = "radial-gradient(ellipse 70% 60% at 50% 0%, #000 60%, transparent 100%)";
|
|
559
|
-
var maskBottom = "radial-gradient(ellipse 100% 80% at 50% 100%, #000 50%, transparent 90%)";
|
|
560
|
-
var maskCenter = "radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 70%)";
|
|
561
|
-
var maskTopLeft = "radial-gradient(ellipse 80% 80% at 0% 0%, #000 50%, transparent 90%)";
|
|
562
|
-
var maskTopRight = "radial-gradient(ellipse 80% 80% at 100% 0%, #000 50%, transparent 90%)";
|
|
563
|
-
var maskBottomLeft = "radial-gradient(ellipse 80% 80% at 0% 100%, #000 50%, transparent 90%)";
|
|
564
|
-
var maskBottomRight = "radial-gradient(ellipse 80% 80% at 100% 100%, #000 50%, transparent 90%)";
|
|
565
|
-
var circuitBoardPattern = (id, mask) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
566
|
-
"svg",
|
|
567
|
-
{
|
|
568
|
-
className: "h-full w-full",
|
|
569
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
570
|
-
style: mask ? {
|
|
571
|
-
maskImage: mask,
|
|
572
|
-
WebkitMaskImage: mask
|
|
573
|
-
} : void 0,
|
|
574
|
-
children: [
|
|
575
|
-
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
576
|
-
"pattern",
|
|
577
|
-
{
|
|
578
|
-
id,
|
|
579
|
-
x: "0",
|
|
580
|
-
y: "0",
|
|
581
|
-
width: "100",
|
|
582
|
-
height: "100",
|
|
583
|
-
patternUnits: "userSpaceOnUse",
|
|
584
|
-
children: [
|
|
585
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
586
|
-
"path",
|
|
587
|
-
{
|
|
588
|
-
d: "M0 50h40M60 50h40M50 0v40M50 60v40",
|
|
589
|
-
stroke: "hsl(var(--muted))",
|
|
590
|
-
strokeWidth: "1",
|
|
591
|
-
fill: "none"
|
|
592
|
-
}
|
|
593
|
-
),
|
|
594
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "50", r: "3", fill: "hsl(var(--muted))" }),
|
|
595
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "0", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
596
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "100", cy: "50", r: "2", fill: "hsl(var(--muted))" }),
|
|
597
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "0", r: "2", fill: "hsl(var(--muted))" }),
|
|
598
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "50", cy: "100", r: "2", fill: "hsl(var(--muted))" })
|
|
599
|
-
]
|
|
600
|
-
}
|
|
601
|
-
) }),
|
|
602
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
603
|
-
]
|
|
604
|
-
}
|
|
605
|
-
);
|
|
606
|
-
var gridDotsPattern = (id, mask) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
607
|
-
"svg",
|
|
608
|
-
{
|
|
609
|
-
className: "h-full w-full",
|
|
610
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
611
|
-
style: mask ? {
|
|
612
|
-
maskImage: mask,
|
|
613
|
-
WebkitMaskImage: mask
|
|
614
|
-
} : void 0,
|
|
615
|
-
children: [
|
|
616
|
-
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
617
|
-
"pattern",
|
|
618
|
-
{
|
|
619
|
-
id,
|
|
620
|
-
x: "0",
|
|
621
|
-
y: "0",
|
|
622
|
-
width: "40",
|
|
623
|
-
height: "40",
|
|
624
|
-
patternUnits: "userSpaceOnUse",
|
|
625
|
-
children: [
|
|
626
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
627
|
-
"path",
|
|
628
|
-
{
|
|
629
|
-
d: "M0 20h40M20 0v40",
|
|
630
|
-
stroke: "hsl(var(--muted))",
|
|
631
|
-
strokeWidth: "0.5",
|
|
632
|
-
fill: "none"
|
|
633
|
-
}
|
|
634
|
-
),
|
|
635
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "20", cy: "20", r: "2", fill: "hsl(var(--muted))" })
|
|
636
|
-
]
|
|
637
|
-
}
|
|
638
|
-
) }),
|
|
639
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { width: "100%", height: "100%", fill: `url(#${id})` })
|
|
640
|
-
]
|
|
641
|
-
}
|
|
642
|
-
);
|
|
643
|
-
var gridPattern = (size, mask) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
644
|
-
"div",
|
|
645
|
-
{
|
|
646
|
-
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)]",
|
|
647
|
-
style: {
|
|
648
|
-
backgroundSize: `${size}px ${size}px`,
|
|
649
|
-
...mask ? {
|
|
650
|
-
maskImage: mask,
|
|
651
|
-
WebkitMaskImage: mask
|
|
652
|
-
} : {}
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
);
|
|
656
|
-
var diagonalCrossPattern = (mask) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
657
|
-
"div",
|
|
658
|
-
{
|
|
659
|
-
className: "h-full w-full",
|
|
660
|
-
style: {
|
|
661
|
-
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)",
|
|
662
|
-
...mask ? {
|
|
663
|
-
maskImage: mask,
|
|
664
|
-
WebkitMaskImage: mask
|
|
665
|
-
} : {}
|
|
666
|
-
}
|
|
667
|
-
}
|
|
668
|
-
);
|
|
669
|
-
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)";
|
|
670
|
-
var dashedGridPattern = (fadeMask) => {
|
|
671
|
-
const mask = fadeMask ? `${dashedGridMaskBase}, ${fadeMask}` : dashedGridMaskBase;
|
|
672
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
673
|
-
"div",
|
|
674
|
-
{
|
|
675
|
-
className: "h-full w-full",
|
|
676
|
-
style: {
|
|
677
|
-
backgroundImage: "linear-gradient(to right, hsl(var(--muted)) 1px, transparent 1px), linear-gradient(to bottom, hsl(var(--muted)) 1px, transparent 1px)",
|
|
678
|
-
backgroundSize: "20px 20px",
|
|
679
|
-
backgroundPosition: "0 0, 0 0",
|
|
680
|
-
maskImage: mask,
|
|
681
|
-
WebkitMaskImage: mask,
|
|
682
|
-
maskComposite: "intersect",
|
|
683
|
-
WebkitMaskComposite: "source-in"
|
|
684
|
-
}
|
|
776
|
+
"aria-describedby": ariaDescribedby,
|
|
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
|
+
);
|
|
685
794
|
}
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
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
|
+
);
|
|
697
806
|
}
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
style: {
|
|
708
|
-
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
|
+
);
|
|
709
816
|
}
|
|
710
|
-
}
|
|
711
|
-
);
|
|
712
|
-
var patternOverlays = {
|
|
713
|
-
circuitBoardBasic: () => circuitBoardPattern("circuit-board-basic"),
|
|
714
|
-
circuitBoardFadeTop: () => circuitBoardPattern("circuit-board-fade-top", maskTop),
|
|
715
|
-
circuitBoardFadeBottom: () => circuitBoardPattern("circuit-board-fade-bottom", maskBottom),
|
|
716
|
-
circuitBoardFadeCenter: () => circuitBoardPattern("circuit-board-fade-center", maskCenter),
|
|
717
|
-
circuitBoardFadeTopLeft: () => circuitBoardPattern("circuit-board-fade-top-left", maskTopLeft),
|
|
718
|
-
circuitBoardFadeTopRight: () => circuitBoardPattern("circuit-board-fade-top-right", maskTopRight),
|
|
719
|
-
circuitBoardFadeBottomLeft: () => circuitBoardPattern("circuit-board-fade-bottom-left", maskBottomLeft),
|
|
720
|
-
circuitBoardFadeBottomRight: () => circuitBoardPattern("circuit-board-fade-bottom-right", maskBottomRight),
|
|
721
|
-
dashedGridBasic: () => dashedGridPattern(),
|
|
722
|
-
dashedGridFadeTop: () => dashedGridPattern(maskTop),
|
|
723
|
-
dashedGridFadeBottom: () => dashedGridPattern(maskBottom),
|
|
724
|
-
dashedGridFadeCenter: () => dashedGridPattern(maskCenter),
|
|
725
|
-
dashedGridFadeTopLeft: () => dashedGridPattern(maskTopLeft),
|
|
726
|
-
dashedGridFadeTopRight: () => dashedGridPattern(maskTopRight),
|
|
727
|
-
dashedGridFadeBottomLeft: () => dashedGridPattern(maskBottomLeft),
|
|
728
|
-
dashedGridFadeBottomRight: () => dashedGridPattern(maskBottomRight),
|
|
729
|
-
diagonalCrossBasic: () => diagonalCrossPattern(),
|
|
730
|
-
diagonalCrossFadeTop: () => diagonalCrossPattern(maskTop),
|
|
731
|
-
diagonalCrossFadeBottom: () => diagonalCrossPattern(maskBottom),
|
|
732
|
-
diagonalCrossFadeCenter: () => diagonalCrossPattern(maskCenter),
|
|
733
|
-
diagonalCrossFadeTopLeft: () => diagonalCrossPattern(maskTopLeft),
|
|
734
|
-
diagonalCrossFadeTopRight: () => diagonalCrossPattern(maskTopRight),
|
|
735
|
-
diagonalCrossFadeBottomLeft: () => diagonalCrossPattern(maskBottomLeft),
|
|
736
|
-
diagonalCrossFadeBottomRight: () => diagonalCrossPattern(maskBottomRight),
|
|
737
|
-
gridBasic: () => gridPattern(40),
|
|
738
|
-
gridFadeTop: () => gridPattern(32, maskTop),
|
|
739
|
-
gridFadeBottom: () => gridPattern(32, maskBottom),
|
|
740
|
-
gridFadeCenter: () => gridPattern(40, maskCenter),
|
|
741
|
-
gridFadeTopLeft: () => gridPattern(32, maskTopLeft),
|
|
742
|
-
gridFadeTopRight: () => gridPattern(32, maskTopRight),
|
|
743
|
-
gridFadeBottomLeft: () => gridPattern(32, maskBottomLeft),
|
|
744
|
-
gridFadeBottomRight: () => gridPattern(32, maskBottomRight),
|
|
745
|
-
gridDotsBasic: () => gridDotsPattern("grid-dots-basic"),
|
|
746
|
-
gridDotsFadeCenter: () => gridDotsPattern("grid-dots-fade-center", maskCenter),
|
|
747
|
-
gradientGlowTop: () => gradientGlow("top"),
|
|
748
|
-
gradientGlowBottom: () => gradientGlow("bottom"),
|
|
749
|
-
spotlightLeft: () => spotlight("left"),
|
|
750
|
-
spotlightRight: () => spotlight("right")
|
|
751
|
-
};
|
|
752
|
-
var inlinePatternStyles = {
|
|
753
|
-
radialGradientTop: {
|
|
754
|
-
background: "radial-gradient(125% 125% at 50% 10%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
755
|
-
},
|
|
756
|
-
radialGradientBottom: {
|
|
757
|
-
background: "radial-gradient(125% 125% at 50% 90%, hsl(var(--background)) 40%, hsl(var(--primary)) 100%)"
|
|
758
|
-
}
|
|
759
|
-
};
|
|
760
|
-
function PatternBackground({
|
|
761
|
-
pattern,
|
|
762
|
-
opacity = 0.08,
|
|
763
|
-
className,
|
|
764
|
-
style
|
|
765
|
-
}) {
|
|
766
|
-
if (!pattern) {
|
|
767
|
-
return null;
|
|
768
|
-
}
|
|
769
|
-
if (pattern in inlinePatternStyles) {
|
|
770
|
-
const inlineStyle = inlinePatternStyles[pattern];
|
|
771
817
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
772
|
-
"
|
|
818
|
+
"span",
|
|
773
819
|
{
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
820
|
+
ref,
|
|
821
|
+
...commonProps,
|
|
822
|
+
children
|
|
777
823
|
}
|
|
778
824
|
);
|
|
779
825
|
}
|
|
780
|
-
|
|
781
|
-
|
|
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) {
|
|
782
849
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
783
850
|
"div",
|
|
784
851
|
{
|
|
785
|
-
className: cn(
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
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))
|
|
789
859
|
}
|
|
790
860
|
);
|
|
861
|
+
} else {
|
|
862
|
+
return null;
|
|
791
863
|
}
|
|
792
|
-
|
|
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;
|
|
793
876
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
794
|
-
|
|
877
|
+
Pressable,
|
|
795
878
|
{
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
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
|
+
] })
|
|
805
889
|
}
|
|
806
890
|
);
|
|
807
891
|
}
|
|
808
|
-
var backgroundStyles = {
|
|
809
|
-
default: "bg-background text-foreground",
|
|
810
|
-
white: "bg-white text-dark",
|
|
811
|
-
gray: "bg-muted/30 text-foreground",
|
|
812
|
-
dark: "bg-foreground text-background",
|
|
813
|
-
transparent: "bg-transparent text-foreground",
|
|
814
|
-
gradient: "bg-linear-to-br from-primary via-primary/90 to-foreground text-primary-foreground",
|
|
815
|
-
primary: "bg-primary text-primary-foreground",
|
|
816
|
-
secondary: "bg-secondary text-secondary-foreground",
|
|
817
|
-
muted: "bg-muted text-muted-foreground"
|
|
818
|
-
};
|
|
819
|
-
var spacingStyles = {
|
|
820
|
-
none: "py-0 md:py-0",
|
|
821
|
-
sm: "py-12 md:py-16",
|
|
822
|
-
md: "py-16 md:py-24",
|
|
823
|
-
lg: "py-20 md:py-32",
|
|
824
|
-
xl: "py-24 md:py-40"
|
|
825
|
-
};
|
|
826
|
-
var predefinedSpacings = ["none", "sm", "md", "lg", "xl"];
|
|
827
|
-
var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
|
|
828
|
-
var Section = React__namespace.default.forwardRef(
|
|
829
|
-
({
|
|
830
|
-
id,
|
|
831
|
-
title,
|
|
832
|
-
subtitle,
|
|
833
|
-
children,
|
|
834
|
-
className,
|
|
835
|
-
style,
|
|
836
|
-
background = "default",
|
|
837
|
-
spacing = "lg",
|
|
838
|
-
pattern,
|
|
839
|
-
patternOpacity,
|
|
840
|
-
patternClassName,
|
|
841
|
-
containerClassName,
|
|
842
|
-
containerMaxWidth = "xl",
|
|
843
|
-
...props
|
|
844
|
-
}, ref) => {
|
|
845
|
-
const effectivePatternOpacity = patternOpacity !== void 0 ? patternOpacity : pattern ? 1 : 0;
|
|
846
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
847
|
-
"section",
|
|
848
|
-
{
|
|
849
|
-
ref,
|
|
850
|
-
id,
|
|
851
|
-
className: cn(
|
|
852
|
-
"relative",
|
|
853
|
-
pattern ? "overflow-hidden" : null,
|
|
854
|
-
backgroundStyles[background],
|
|
855
|
-
isPredefinedSpacing(spacing) ? spacingStyles[spacing] : spacing,
|
|
856
|
-
className
|
|
857
|
-
),
|
|
858
|
-
style,
|
|
859
|
-
...props,
|
|
860
|
-
children: [
|
|
861
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
862
|
-
PatternBackground,
|
|
863
|
-
{
|
|
864
|
-
pattern,
|
|
865
|
-
opacity: effectivePatternOpacity,
|
|
866
|
-
className: patternClassName
|
|
867
|
-
}
|
|
868
|
-
),
|
|
869
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
870
|
-
Container,
|
|
871
|
-
{
|
|
872
|
-
maxWidth: containerMaxWidth,
|
|
873
|
-
className: cn("relative z-10", containerClassName),
|
|
874
|
-
children: [
|
|
875
|
-
(title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mb-6 text-center md:mb-16", children: [
|
|
876
|
-
subtitle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "mb-2 text-sm font-semibold uppercase tracking-wider", children: subtitle }),
|
|
877
|
-
title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: "text-3xl font-bold tracking-tight md:text-4xl lg:text-5xl", children: title })
|
|
878
|
-
] }),
|
|
879
|
-
children
|
|
880
|
-
]
|
|
881
|
-
}
|
|
882
|
-
)
|
|
883
|
-
]
|
|
884
|
-
}
|
|
885
|
-
);
|
|
886
|
-
}
|
|
887
|
-
);
|
|
888
|
-
Section.displayName = "Section";
|
|
889
892
|
function AboutStreamlineTeam({
|
|
890
893
|
className,
|
|
891
894
|
title,
|
|
@@ -914,7 +917,7 @@ function AboutStreamlineTeam({
|
|
|
914
917
|
pattern,
|
|
915
918
|
patternOpacity
|
|
916
919
|
}) {
|
|
917
|
-
const featuresContent =
|
|
920
|
+
const featuresContent = React3.useMemo(() => {
|
|
918
921
|
if (featuresSlot) return featuresSlot;
|
|
919
922
|
if (!features || features.length === 0) return null;
|
|
920
923
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-10 space-y-6", featuresClassName), children: features.map((feature, idx) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-4", children: [
|
|
@@ -922,7 +925,9 @@ function AboutStreamlineTeam({
|
|
|
922
925
|
"div",
|
|
923
926
|
{
|
|
924
927
|
className: cn(
|
|
925
|
-
"flex
|
|
928
|
+
"flex shrink-0 items-center justify-center",
|
|
929
|
+
"size-12 rounded-lg",
|
|
930
|
+
"bg-primary text-primary-foreground",
|
|
926
931
|
feature.iconBgClass
|
|
927
932
|
),
|
|
928
933
|
children: feature.icon
|
|
@@ -930,35 +935,10 @@ function AboutStreamlineTeam({
|
|
|
930
935
|
),
|
|
931
936
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
932
937
|
feature.title && (typeof feature.title === "string" ? /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "font-semibold", children: feature.title }) : feature.title),
|
|
933
|
-
feature.description && (typeof feature.description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
934
|
-
"p",
|
|
935
|
-
{
|
|
936
|
-
className: cn("text-sm", getTextColor(background, "muted")),
|
|
937
|
-
children: feature.description
|
|
938
|
-
}
|
|
939
|
-
) : feature.description)
|
|
938
|
+
feature.description && (typeof feature.description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: feature.description }) : feature.description)
|
|
940
939
|
] })
|
|
941
940
|
] }, idx)) });
|
|
942
941
|
}, [featuresSlot, features, featuresClassName, background]);
|
|
943
|
-
const actionsContent = React.useMemo(() => {
|
|
944
|
-
if (actionsSlot) return actionsSlot;
|
|
945
|
-
if (!actions || actions.length === 0) return null;
|
|
946
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-8", actionsClassName), children: actions.map((action, idx) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
947
|
-
Pressable,
|
|
948
|
-
{
|
|
949
|
-
href: action.href,
|
|
950
|
-
onClick: action.onClick,
|
|
951
|
-
size: action.size || "lg",
|
|
952
|
-
variant: action.variant || "default",
|
|
953
|
-
asButton: true,
|
|
954
|
-
children: [
|
|
955
|
-
action.label,
|
|
956
|
-
/* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/arrow-right", size: 16, className: "ml-2" })
|
|
957
|
-
]
|
|
958
|
-
},
|
|
959
|
-
idx
|
|
960
|
-
)) });
|
|
961
|
-
}, [actionsSlot, actions, actionsClassName]);
|
|
962
942
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
963
943
|
Section,
|
|
964
944
|
{
|
|
@@ -966,7 +946,7 @@ function AboutStreamlineTeam({
|
|
|
966
946
|
spacing,
|
|
967
947
|
pattern,
|
|
968
948
|
patternOpacity,
|
|
969
|
-
className
|
|
949
|
+
className,
|
|
970
950
|
containerClassName,
|
|
971
951
|
children: [
|
|
972
952
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "grid gap-12 lg:grid-cols-2 lg:items-center", children: [
|
|
@@ -989,14 +969,17 @@ function AboutStreamlineTeam({
|
|
|
989
969
|
src: secondaryImage.src,
|
|
990
970
|
alt: secondaryImage.alt,
|
|
991
971
|
className: cn(
|
|
992
|
-
"
|
|
972
|
+
"size-24 md:size-48",
|
|
973
|
+
"rounded-xl object-cover shadow-lg",
|
|
974
|
+
"border-4 border-background",
|
|
975
|
+
"absolute -bottom-8 -right-2 md:-right-8",
|
|
993
976
|
secondaryImageClassName
|
|
994
977
|
),
|
|
995
978
|
optixFlowConfig
|
|
996
979
|
}
|
|
997
980
|
)
|
|
998
981
|
] }),
|
|
999
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
982
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "pl-0 md:pl-8", children: [
|
|
1000
983
|
title && (typeof title === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1001
984
|
"h1",
|
|
1002
985
|
{
|
|
@@ -1006,18 +989,8 @@ function AboutStreamlineTeam({
|
|
|
1006
989
|
),
|
|
1007
990
|
children: title
|
|
1008
991
|
}
|
|
1009
|
-
) :
|
|
1010
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1011
|
-
"p",
|
|
1012
|
-
{
|
|
1013
|
-
className: cn(
|
|
1014
|
-
"mt-6 text-lg",
|
|
1015
|
-
getTextColor(background, "muted"),
|
|
1016
|
-
descriptionClassName
|
|
1017
|
-
),
|
|
1018
|
-
children: description
|
|
1019
|
-
}
|
|
1020
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-6", descriptionClassName), children: description })),
|
|
992
|
+
) : title),
|
|
993
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("mt-6 text-lg", descriptionClassName), children: description }) : description),
|
|
1021
994
|
featuresContent
|
|
1022
995
|
] })
|
|
1023
996
|
] }),
|
|
@@ -1025,35 +998,44 @@ function AboutStreamlineTeam({
|
|
|
1025
998
|
"div",
|
|
1026
999
|
{
|
|
1027
1000
|
className: cn(
|
|
1028
|
-
"mt-
|
|
1029
|
-
|
|
1030
|
-
|
|
1001
|
+
"mt-10 md:mt-24 p-6 md:p-16",
|
|
1002
|
+
"bg-muted text-muted-foreground",
|
|
1003
|
+
"rounded-2xl shadow-lg",
|
|
1031
1004
|
teamSectionClassName
|
|
1032
1005
|
),
|
|
1033
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1006
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1007
|
+
"div",
|
|
1008
|
+
{
|
|
1009
|
+
className: cn(
|
|
1010
|
+
"flex flex-col md:flex-row",
|
|
1011
|
+
"justify-center md:justify-between items-center md:items-start",
|
|
1012
|
+
"gap-8 md:gap-24"
|
|
1013
|
+
),
|
|
1014
|
+
children: [
|
|
1015
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-6 md:gap-8 text-center md:text-left", children: [
|
|
1016
|
+
teamTitle && (typeof teamTitle === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
1017
|
+
"h2",
|
|
1018
|
+
{
|
|
1019
|
+
className: cn(
|
|
1020
|
+
"text-3xl font-bold md:text-4xl",
|
|
1021
|
+
teamTitleClassName
|
|
1022
|
+
),
|
|
1023
|
+
children: teamTitle
|
|
1024
|
+
}
|
|
1025
|
+
) : teamTitle),
|
|
1026
|
+
teamDescription && (typeof teamDescription === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-lg", teamDescriptionClassName), children: teamDescription }) : teamDescription)
|
|
1027
|
+
] }),
|
|
1028
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1029
|
+
BlockActions,
|
|
1030
|
+
{
|
|
1031
|
+
actions,
|
|
1032
|
+
actionsSlot,
|
|
1033
|
+
actionsClassName
|
|
1034
|
+
}
|
|
1035
|
+
)
|
|
1036
|
+
]
|
|
1037
|
+
}
|
|
1038
|
+
)
|
|
1057
1039
|
}
|
|
1058
1040
|
)
|
|
1059
1041
|
]
|