@opensite/ui 2.8.5 → 2.8.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/about-developer-profile.cjs +17 -10
- package/dist/about-developer-profile.js +17 -10
- package/dist/article-chapters-author.cjs +17 -10
- package/dist/article-chapters-author.js +17 -10
- package/dist/carousel-animated-sections.cjs +79 -25
- package/dist/carousel-animated-sections.d.cts +7 -2
- package/dist/carousel-animated-sections.d.ts +7 -2
- package/dist/carousel-animated-sections.js +79 -25
- package/dist/carousel-gallery-thumbnails.cjs +79 -25
- package/dist/carousel-gallery-thumbnails.d.cts +7 -2
- package/dist/carousel-gallery-thumbnails.d.ts +7 -2
- package/dist/carousel-gallery-thumbnails.js +79 -25
- package/dist/carousel-portfolio-hero.cjs +79 -25
- package/dist/carousel-portfolio-hero.d.cts +7 -2
- package/dist/carousel-portfolio-hero.d.ts +7 -2
- package/dist/carousel-portfolio-hero.js +79 -25
- package/dist/components.cjs +35 -10
- package/dist/components.d.cts +29 -2
- package/dist/components.d.ts +29 -2
- package/dist/components.js +35 -11
- package/dist/footer-accordion-social.cjs +17 -10
- package/dist/footer-accordion-social.js +17 -10
- package/dist/footer-animated-social.cjs +17 -10
- package/dist/footer-animated-social.js +17 -10
- package/dist/footer-brand-description.cjs +17 -10
- package/dist/footer-brand-description.js +17 -10
- package/dist/footer-brand-links-contact.cjs +17 -10
- package/dist/footer-brand-links-contact.js +17 -10
- package/dist/footer-comprehensive-links.cjs +17 -10
- package/dist/footer-comprehensive-links.js +17 -10
- package/dist/footer-contact-card.cjs +17 -10
- package/dist/footer-contact-card.js +17 -10
- package/dist/footer-cta-banner.cjs +17 -10
- package/dist/footer-cta-banner.js +17 -10
- package/dist/footer-cta-social.cjs +17 -10
- package/dist/footer-cta-social.js +17 -10
- package/dist/footer-info-cards-accordion.cjs +17 -10
- package/dist/footer-info-cards-accordion.js +17 -10
- package/dist/footer-nav-social.cjs +17 -10
- package/dist/footer-nav-social.js +17 -10
- package/dist/footer-newsletter-contact.cjs +17 -10
- package/dist/footer-newsletter-contact.js +17 -10
- package/dist/footer-newsletter-grid.cjs +17 -10
- package/dist/footer-newsletter-grid.js +17 -10
- package/dist/footer-newsletter-minimal.cjs +17 -10
- package/dist/footer-newsletter-minimal.js +17 -10
- package/dist/footer-social-apps.cjs +17 -10
- package/dist/footer-social-apps.js +17 -10
- package/dist/footer-social-newsletter.cjs +17 -10
- package/dist/footer-social-newsletter.js +17 -10
- package/dist/footer-split-image-accordion.cjs +17 -10
- package/dist/footer-split-image-accordion.js +17 -10
- package/dist/hero-badge-shadow-overlay.cjs +1 -1
- package/dist/hero-badge-shadow-overlay.js +1 -1
- package/dist/hero-coming-soon-countdown.cjs +17 -10
- package/dist/hero-coming-soon-countdown.js +17 -10
- package/dist/hero-video-background-dark.cjs +78 -16
- package/dist/hero-video-background-dark.d.cts +7 -2
- package/dist/hero-video-background-dark.d.ts +7 -2
- package/dist/hero-video-background-dark.js +78 -16
- package/dist/index.cjs +35 -10
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +35 -11
- package/dist/link-page-bento-layout.cjs +17 -10
- package/dist/link-page-bento-layout.js +17 -10
- package/dist/link-page-grid-cards.cjs +17 -10
- package/dist/link-page-grid-cards.js +17 -10
- package/dist/link-page-minimal-profile.cjs +17 -10
- package/dist/link-page-minimal-profile.js +17 -10
- package/dist/link-page-newsletter-social.cjs +17 -10
- package/dist/link-page-newsletter-social.js +17 -10
- package/dist/link-tree-block.cjs +17 -10
- package/dist/link-tree-block.js +17 -10
- package/dist/navbar-fullscreen-menu.cjs +17 -10
- package/dist/navbar-fullscreen-menu.js +17 -10
- package/dist/navbar-transparent-overlay.cjs +17 -10
- package/dist/navbar-transparent-overlay.js +17 -10
- package/dist/registry.cjs +1398 -851
- package/dist/registry.js +1398 -851
- package/dist/social-link-icon.cjs +17 -10
- package/dist/social-link-icon.d.cts +5 -0
- package/dist/social-link-icon.d.ts +5 -0
- package/dist/social-link-icon.js +17 -10
- package/dist/testimonials-animated-split.cjs +5 -5
- package/dist/testimonials-animated-split.js +5 -5
- package/dist/testimonials-bento-grid.cjs +48 -56
- package/dist/testimonials-bento-grid.js +48 -56
- package/dist/testimonials-carousel-image.cjs +608 -96
- package/dist/testimonials-carousel-image.d.cts +26 -2
- package/dist/testimonials-carousel-image.d.ts +26 -2
- package/dist/testimonials-carousel-image.js +609 -97
- package/dist/testimonials-centered-avatars.cjs +89 -62
- package/dist/testimonials-centered-avatars.d.cts +5 -1
- package/dist/testimonials-centered-avatars.d.ts +5 -1
- package/dist/testimonials-centered-avatars.js +89 -62
- package/dist/testimonials-company-logo.cjs +6 -6
- package/dist/testimonials-company-logo.js +6 -6
- package/dist/testimonials-grid-add-review.cjs +51 -29
- package/dist/testimonials-grid-add-review.js +51 -29
- package/dist/testimonials-images-helpful.cjs +181 -160
- package/dist/testimonials-images-helpful.d.cts +9 -1
- package/dist/testimonials-images-helpful.d.ts +9 -1
- package/dist/testimonials-images-helpful.js +181 -159
- package/dist/testimonials-list-verified.cjs +63 -44
- package/dist/testimonials-list-verified.d.cts +5 -1
- package/dist/testimonials-list-verified.d.ts +5 -1
- package/dist/testimonials-list-verified.js +64 -45
- package/dist/testimonials-logo-cards.cjs +53 -29
- package/dist/testimonials-logo-cards.d.cts +5 -1
- package/dist/testimonials-logo-cards.d.ts +5 -1
- package/dist/testimonials-logo-cards.js +53 -29
- package/dist/testimonials-marquee.cjs +524 -102
- package/dist/testimonials-marquee.d.cts +5 -1
- package/dist/testimonials-marquee.d.ts +5 -1
- package/dist/testimonials-marquee.js +525 -100
- package/dist/testimonials-mini-dividers.cjs +120 -83
- package/dist/testimonials-mini-dividers.d.cts +10 -6
- package/dist/testimonials-mini-dividers.d.ts +10 -6
- package/dist/testimonials-mini-dividers.js +120 -83
- package/dist/testimonials-minimal-numbered.cjs +7 -6
- package/dist/testimonials-minimal-numbered.d.cts +5 -1
- package/dist/testimonials-minimal-numbered.d.ts +5 -1
- package/dist/testimonials-minimal-numbered.js +7 -6
- package/dist/testimonials-parallax-number.cjs +14 -8
- package/dist/testimonials-parallax-number.js +14 -8
- package/dist/testimonials-scrolling-columns.cjs +97 -13
- package/dist/testimonials-scrolling-columns.js +97 -13
- package/dist/testimonials-simple-grid.cjs +513 -68
- package/dist/testimonials-simple-grid.d.cts +9 -5
- package/dist/testimonials-simple-grid.d.ts +9 -5
- package/dist/testimonials-simple-grid.js +510 -62
- package/dist/testimonials-slider-minimal.cjs +604 -90
- package/dist/testimonials-slider-minimal.d.cts +17 -1
- package/dist/testimonials-slider-minimal.d.ts +17 -1
- package/dist/testimonials-slider-minimal.js +598 -81
- package/dist/testimonials-split-image.cjs +452 -17
- package/dist/testimonials-split-image.js +448 -13
- package/dist/testimonials-twitter-cards.cjs +26 -14
- package/dist/testimonials-twitter-cards.js +26 -14
- package/package.json +11 -1
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var React2 = require('react');
|
|
5
|
+
var framerMotion = require('framer-motion');
|
|
5
6
|
var clsx = require('clsx');
|
|
6
7
|
var tailwindMerge = require('tailwind-merge');
|
|
7
|
-
var
|
|
8
|
+
var icon = require('@page-speed/icon');
|
|
8
9
|
var jsxRuntime = require('react/jsx-runtime');
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
var classVarianceAuthority = require('class-variance-authority');
|
|
11
|
+
var AvatarPrimitive = require('@radix-ui/react-avatar');
|
|
11
12
|
|
|
12
13
|
function _interopNamespace(e) {
|
|
13
14
|
if (e && e.__esModule) return e;
|
|
@@ -27,13 +28,439 @@ function _interopNamespace(e) {
|
|
|
27
28
|
return Object.freeze(n);
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
var
|
|
31
|
+
var React2__namespace = /*#__PURE__*/_interopNamespace(React2);
|
|
31
32
|
var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
|
|
32
33
|
|
|
33
34
|
// components/blocks/testimonials/testimonials-slider-minimal.tsx
|
|
34
35
|
function cn(...inputs) {
|
|
35
36
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
36
37
|
}
|
|
38
|
+
var DEFAULT_ICON_API_KEY = "au382bi7fsh96w9h9xlrnat2jglx";
|
|
39
|
+
var DynamicIcon = React2__namespace.memo(function DynamicIcon2({
|
|
40
|
+
apiKey,
|
|
41
|
+
...props
|
|
42
|
+
}) {
|
|
43
|
+
return /* @__PURE__ */ jsxRuntime.jsx(icon.Icon, { ...props, apiKey: apiKey ?? DEFAULT_ICON_API_KEY });
|
|
44
|
+
});
|
|
45
|
+
DynamicIcon.displayName = "DynamicIcon";
|
|
46
|
+
function normalizePhoneNumber(input) {
|
|
47
|
+
const trimmed = input.trim();
|
|
48
|
+
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
49
|
+
return trimmed;
|
|
50
|
+
}
|
|
51
|
+
const match = trimmed.match(/^[\s\+\-\(\)]*(\d[\d\s\-\(\)\.]*\d)[\s\-]*(x|ext\.?|extension)?[\s\-]*(\d+)?$/i);
|
|
52
|
+
if (match) {
|
|
53
|
+
const mainNumber = match[1].replace(/[\s\-\(\)\.]/g, "");
|
|
54
|
+
const extension = match[3];
|
|
55
|
+
const normalized = mainNumber.length >= 10 && !trimmed.startsWith("+") ? `+${mainNumber}` : mainNumber;
|
|
56
|
+
const withExtension = extension ? `${normalized};ext=${extension}` : normalized;
|
|
57
|
+
return `tel:${withExtension}`;
|
|
58
|
+
}
|
|
59
|
+
const cleaned = trimmed.replace(/[\s\-\(\)\.]/g, "");
|
|
60
|
+
return `tel:${cleaned}`;
|
|
61
|
+
}
|
|
62
|
+
function normalizeEmail(input) {
|
|
63
|
+
const trimmed = input.trim();
|
|
64
|
+
if (trimmed.toLowerCase().startsWith("mailto:")) {
|
|
65
|
+
return trimmed;
|
|
66
|
+
}
|
|
67
|
+
return `mailto:${trimmed}`;
|
|
68
|
+
}
|
|
69
|
+
function isEmail(input) {
|
|
70
|
+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
71
|
+
return emailRegex.test(input.trim());
|
|
72
|
+
}
|
|
73
|
+
function isPhoneNumber(input) {
|
|
74
|
+
const trimmed = input.trim();
|
|
75
|
+
if (trimmed.toLowerCase().startsWith("tel:")) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
|
|
79
|
+
return phoneRegex.test(trimmed);
|
|
80
|
+
}
|
|
81
|
+
function isInternalUrl(href) {
|
|
82
|
+
if (typeof window === "undefined") {
|
|
83
|
+
return href.startsWith("/") && !href.startsWith("//");
|
|
84
|
+
}
|
|
85
|
+
const trimmed = href.trim();
|
|
86
|
+
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
try {
|
|
90
|
+
const url = new URL(trimmed, window.location.href);
|
|
91
|
+
const currentOrigin = window.location.origin;
|
|
92
|
+
const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
|
|
93
|
+
return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
|
|
94
|
+
} catch {
|
|
95
|
+
return false;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function toRelativePath(href) {
|
|
99
|
+
if (typeof window === "undefined") {
|
|
100
|
+
return href;
|
|
101
|
+
}
|
|
102
|
+
const trimmed = href.trim();
|
|
103
|
+
if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
|
|
104
|
+
return trimmed;
|
|
105
|
+
}
|
|
106
|
+
try {
|
|
107
|
+
const url = new URL(trimmed, window.location.href);
|
|
108
|
+
const currentOrigin = window.location.origin;
|
|
109
|
+
const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
|
|
110
|
+
if (normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin)) {
|
|
111
|
+
return url.pathname + url.search + url.hash;
|
|
112
|
+
}
|
|
113
|
+
} catch {
|
|
114
|
+
}
|
|
115
|
+
return trimmed;
|
|
116
|
+
}
|
|
117
|
+
function useNavigation({
|
|
118
|
+
href,
|
|
119
|
+
onClick
|
|
120
|
+
} = {}) {
|
|
121
|
+
const linkType = React2__namespace.useMemo(() => {
|
|
122
|
+
if (!href || href.trim() === "") {
|
|
123
|
+
return onClick ? "none" : "none";
|
|
124
|
+
}
|
|
125
|
+
const trimmed = href.trim();
|
|
126
|
+
if (trimmed.toLowerCase().startsWith("mailto:") || isEmail(trimmed)) {
|
|
127
|
+
return "mailto";
|
|
128
|
+
}
|
|
129
|
+
if (trimmed.toLowerCase().startsWith("tel:") || isPhoneNumber(trimmed)) {
|
|
130
|
+
return "tel";
|
|
131
|
+
}
|
|
132
|
+
if (isInternalUrl(trimmed)) {
|
|
133
|
+
return "internal";
|
|
134
|
+
}
|
|
135
|
+
try {
|
|
136
|
+
new URL(trimmed, typeof window !== "undefined" ? window.location.href : "http://localhost");
|
|
137
|
+
return "external";
|
|
138
|
+
} catch {
|
|
139
|
+
return "internal";
|
|
140
|
+
}
|
|
141
|
+
}, [href, onClick]);
|
|
142
|
+
const normalizedHref = React2__namespace.useMemo(() => {
|
|
143
|
+
if (!href || href.trim() === "") {
|
|
144
|
+
return void 0;
|
|
145
|
+
}
|
|
146
|
+
const trimmed = href.trim();
|
|
147
|
+
switch (linkType) {
|
|
148
|
+
case "tel":
|
|
149
|
+
return normalizePhoneNumber(trimmed);
|
|
150
|
+
case "mailto":
|
|
151
|
+
return normalizeEmail(trimmed);
|
|
152
|
+
case "internal":
|
|
153
|
+
return toRelativePath(trimmed);
|
|
154
|
+
case "external":
|
|
155
|
+
return trimmed;
|
|
156
|
+
default:
|
|
157
|
+
return trimmed;
|
|
158
|
+
}
|
|
159
|
+
}, [href, linkType]);
|
|
160
|
+
const target = React2__namespace.useMemo(() => {
|
|
161
|
+
switch (linkType) {
|
|
162
|
+
case "external":
|
|
163
|
+
return "_blank";
|
|
164
|
+
case "internal":
|
|
165
|
+
return "_self";
|
|
166
|
+
case "mailto":
|
|
167
|
+
case "tel":
|
|
168
|
+
return void 0;
|
|
169
|
+
default:
|
|
170
|
+
return void 0;
|
|
171
|
+
}
|
|
172
|
+
}, [linkType]);
|
|
173
|
+
const rel = React2__namespace.useMemo(() => {
|
|
174
|
+
if (linkType === "external") {
|
|
175
|
+
return "noopener noreferrer";
|
|
176
|
+
}
|
|
177
|
+
return void 0;
|
|
178
|
+
}, [linkType]);
|
|
179
|
+
const isExternal = linkType === "external";
|
|
180
|
+
const isInternal = linkType === "internal";
|
|
181
|
+
const shouldUseRouter = isInternal && typeof normalizedHref === "string" && normalizedHref.startsWith("/");
|
|
182
|
+
const handleClick = React2__namespace.useCallback(
|
|
183
|
+
(event) => {
|
|
184
|
+
if (onClick) {
|
|
185
|
+
try {
|
|
186
|
+
onClick(event);
|
|
187
|
+
} catch (error) {
|
|
188
|
+
console.error("Error in user onClick handler:", error);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
if (event.defaultPrevented) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
if (shouldUseRouter && normalizedHref && event.button === 0 && // left-click only
|
|
195
|
+
!event.metaKey && !event.altKey && !event.ctrlKey && !event.shiftKey) {
|
|
196
|
+
if (typeof window !== "undefined") {
|
|
197
|
+
const handler = window.__opensiteNavigationHandler;
|
|
198
|
+
if (typeof handler === "function") {
|
|
199
|
+
try {
|
|
200
|
+
const handled = handler(normalizedHref, event.nativeEvent || event);
|
|
201
|
+
if (handled !== false) {
|
|
202
|
+
event.preventDefault();
|
|
203
|
+
}
|
|
204
|
+
} catch (error) {
|
|
205
|
+
console.error("Error in navigation handler:", error);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
[onClick, shouldUseRouter, normalizedHref]
|
|
212
|
+
);
|
|
213
|
+
return {
|
|
214
|
+
linkType,
|
|
215
|
+
normalizedHref,
|
|
216
|
+
target,
|
|
217
|
+
rel,
|
|
218
|
+
isExternal,
|
|
219
|
+
isInternal,
|
|
220
|
+
shouldUseRouter,
|
|
221
|
+
handleClick
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
var baseStyles = [
|
|
225
|
+
// Layout
|
|
226
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap shrink-0",
|
|
227
|
+
// Typography - using CSS variables with sensible defaults
|
|
228
|
+
"font-[var(--button-font-family,inherit)]",
|
|
229
|
+
"font-[var(--button-font-weight,500)]",
|
|
230
|
+
"tracking-[var(--button-letter-spacing,0)]",
|
|
231
|
+
"leading-[var(--button-line-height,1.25)]",
|
|
232
|
+
"[text-transform:var(--button-text-transform,none)]",
|
|
233
|
+
"text-sm",
|
|
234
|
+
// Border radius
|
|
235
|
+
"rounded-[var(--button-radius,var(--radius,0.375rem))]",
|
|
236
|
+
// Smooth transition - using [transition:...] to set full shorthand property (not just transition-property)
|
|
237
|
+
"[transition:var(--button-transition,all_250ms_cubic-bezier(0.4,0,0.2,1))]",
|
|
238
|
+
// Box shadow (master level) - using [box-shadow:...] for complex multi-value shadows
|
|
239
|
+
"[box-shadow:var(--button-shadow,none)]",
|
|
240
|
+
"hover:[box-shadow:var(--button-shadow-hover,var(--button-shadow,none))]",
|
|
241
|
+
// Disabled state
|
|
242
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
243
|
+
// SVG handling
|
|
244
|
+
"[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
|
|
245
|
+
// Focus styles
|
|
246
|
+
"outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
|
|
247
|
+
// Invalid state
|
|
248
|
+
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
|
|
249
|
+
].join(" ");
|
|
250
|
+
var buttonVariants = classVarianceAuthority.cva(baseStyles, {
|
|
251
|
+
variants: {
|
|
252
|
+
variant: {
|
|
253
|
+
// Default (Primary) variant - full customization
|
|
254
|
+
default: [
|
|
255
|
+
"bg-[var(--button-default-bg,hsl(var(--primary)))]",
|
|
256
|
+
"text-[var(--button-default-fg,hsl(var(--primary-foreground)))]",
|
|
257
|
+
"border-[length:var(--button-default-border-width,0px)]",
|
|
258
|
+
"border-[color:var(--button-default-border,transparent)]",
|
|
259
|
+
"[box-shadow:var(--button-default-shadow,var(--button-shadow,none))]",
|
|
260
|
+
"hover:bg-[var(--button-default-hover-bg,hsl(var(--primary)/0.9))]",
|
|
261
|
+
"hover:text-[var(--button-default-hover-fg,var(--button-default-fg,hsl(var(--primary-foreground))))]",
|
|
262
|
+
"hover:border-[color:var(--button-default-hover-border,var(--button-default-border,transparent))]",
|
|
263
|
+
"hover:[box-shadow:var(--button-default-shadow-hover,var(--button-shadow-hover,var(--button-default-shadow,var(--button-shadow,none))))]"
|
|
264
|
+
].join(" "),
|
|
265
|
+
// Destructive variant - full customization
|
|
266
|
+
destructive: [
|
|
267
|
+
"bg-[var(--button-destructive-bg,hsl(var(--destructive)))]",
|
|
268
|
+
"text-[var(--button-destructive-fg,white)]",
|
|
269
|
+
"border-[length:var(--button-destructive-border-width,0px)]",
|
|
270
|
+
"border-[color:var(--button-destructive-border,transparent)]",
|
|
271
|
+
"[box-shadow:var(--button-destructive-shadow,var(--button-shadow,none))]",
|
|
272
|
+
"hover:bg-[var(--button-destructive-hover-bg,hsl(var(--destructive)/0.9))]",
|
|
273
|
+
"hover:text-[var(--button-destructive-hover-fg,var(--button-destructive-fg,white))]",
|
|
274
|
+
"hover:border-[color:var(--button-destructive-hover-border,var(--button-destructive-border,transparent))]",
|
|
275
|
+
"hover:[box-shadow:var(--button-destructive-shadow-hover,var(--button-shadow-hover,var(--button-destructive-shadow,var(--button-shadow,none))))]",
|
|
276
|
+
"focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
|
|
277
|
+
"dark:bg-destructive/60"
|
|
278
|
+
].join(" "),
|
|
279
|
+
// Outline variant - full customization with proper border handling
|
|
280
|
+
outline: [
|
|
281
|
+
"bg-[var(--button-outline-bg,hsl(var(--background)))]",
|
|
282
|
+
"text-[var(--button-outline-fg,inherit)]",
|
|
283
|
+
"border-[length:var(--button-outline-border-width,1px)]",
|
|
284
|
+
"border-[color:var(--button-outline-border,hsl(var(--border)))]",
|
|
285
|
+
"[box-shadow:var(--button-outline-shadow,var(--button-shadow,0_1px_2px_0_rgb(0_0_0/0.05)))]",
|
|
286
|
+
"hover:bg-[var(--button-outline-hover-bg,hsl(var(--accent)))]",
|
|
287
|
+
"hover:text-[var(--button-outline-hover-fg,hsl(var(--accent-foreground)))]",
|
|
288
|
+
"hover:border-[color:var(--button-outline-hover-border,var(--button-outline-border,hsl(var(--border))))]",
|
|
289
|
+
"hover:[box-shadow:var(--button-outline-shadow-hover,var(--button-shadow-hover,var(--button-outline-shadow,var(--button-shadow,none))))]",
|
|
290
|
+
"dark:bg-input/30 dark:border-input dark:hover:bg-input/50"
|
|
291
|
+
].join(" "),
|
|
292
|
+
// Secondary variant - full customization
|
|
293
|
+
secondary: [
|
|
294
|
+
"bg-[var(--button-secondary-bg,hsl(var(--secondary)))]",
|
|
295
|
+
"text-[var(--button-secondary-fg,hsl(var(--secondary-foreground)))]",
|
|
296
|
+
"border-[length:var(--button-secondary-border-width,0px)]",
|
|
297
|
+
"border-[color:var(--button-secondary-border,transparent)]",
|
|
298
|
+
"[box-shadow:var(--button-secondary-shadow,var(--button-shadow,none))]",
|
|
299
|
+
"hover:bg-[var(--button-secondary-hover-bg,hsl(var(--secondary)/0.8))]",
|
|
300
|
+
"hover:text-[var(--button-secondary-hover-fg,var(--button-secondary-fg,hsl(var(--secondary-foreground))))]",
|
|
301
|
+
"hover:border-[color:var(--button-secondary-hover-border,var(--button-secondary-border,transparent))]",
|
|
302
|
+
"hover:[box-shadow:var(--button-secondary-shadow-hover,var(--button-shadow-hover,var(--button-secondary-shadow,var(--button-shadow,none))))]"
|
|
303
|
+
].join(" "),
|
|
304
|
+
// Ghost variant - full customization
|
|
305
|
+
ghost: [
|
|
306
|
+
"bg-[var(--button-ghost-bg,transparent)]",
|
|
307
|
+
"text-[var(--button-ghost-fg,inherit)]",
|
|
308
|
+
"border-[length:var(--button-ghost-border-width,0px)]",
|
|
309
|
+
"border-[color:var(--button-ghost-border,transparent)]",
|
|
310
|
+
"[box-shadow:var(--button-ghost-shadow,var(--button-shadow,none))]",
|
|
311
|
+
"hover:bg-[var(--button-ghost-hover-bg,hsl(var(--accent)))]",
|
|
312
|
+
"hover:text-[var(--button-ghost-hover-fg,hsl(var(--accent-foreground)))]",
|
|
313
|
+
"hover:border-[color:var(--button-ghost-hover-border,var(--button-ghost-border,transparent))]",
|
|
314
|
+
"hover:[box-shadow:var(--button-ghost-shadow-hover,var(--button-shadow-hover,var(--button-ghost-shadow,var(--button-shadow,none))))]",
|
|
315
|
+
"dark:hover:bg-accent/50"
|
|
316
|
+
].join(" "),
|
|
317
|
+
// Link variant - full customization
|
|
318
|
+
link: [
|
|
319
|
+
"bg-[var(--button-link-bg,transparent)]",
|
|
320
|
+
"text-[var(--button-link-fg,hsl(var(--primary)))]",
|
|
321
|
+
"border-[length:var(--button-link-border-width,0px)]",
|
|
322
|
+
"border-[color:var(--button-link-border,transparent)]",
|
|
323
|
+
"[box-shadow:var(--button-link-shadow,none)]",
|
|
324
|
+
"hover:bg-[var(--button-link-hover-bg,transparent)]",
|
|
325
|
+
"hover:text-[var(--button-link-hover-fg,var(--button-link-fg,hsl(var(--primary))))]",
|
|
326
|
+
"hover:[box-shadow:var(--button-link-shadow-hover,none)]",
|
|
327
|
+
"underline-offset-4 hover:underline"
|
|
328
|
+
].join(" ")
|
|
329
|
+
},
|
|
330
|
+
size: {
|
|
331
|
+
default: [
|
|
332
|
+
"h-[var(--button-height-md,2.25rem)]",
|
|
333
|
+
"px-[var(--button-padding-x-md,1rem)]",
|
|
334
|
+
"py-[var(--button-padding-y-md,0.5rem)]",
|
|
335
|
+
"has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
|
|
336
|
+
].join(" "),
|
|
337
|
+
sm: [
|
|
338
|
+
"h-[var(--button-height-sm,2rem)]",
|
|
339
|
+
"px-[var(--button-padding-x-sm,0.75rem)]",
|
|
340
|
+
"py-[var(--button-padding-y-sm,0.25rem)]",
|
|
341
|
+
"gap-1.5",
|
|
342
|
+
"has-[>svg]:px-[calc(var(--button-padding-x-sm,0.75rem)*0.83)]"
|
|
343
|
+
].join(" "),
|
|
344
|
+
md: [
|
|
345
|
+
"h-[var(--button-height-md,2.25rem)]",
|
|
346
|
+
"px-[var(--button-padding-x-md,1rem)]",
|
|
347
|
+
"py-[var(--button-padding-y-md,0.5rem)]",
|
|
348
|
+
"has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
|
|
349
|
+
].join(" "),
|
|
350
|
+
lg: [
|
|
351
|
+
"h-[var(--button-height-lg,2.5rem)]",
|
|
352
|
+
"px-[var(--button-padding-x-lg,1.5rem)]",
|
|
353
|
+
"py-[var(--button-padding-y-lg,0.5rem)]",
|
|
354
|
+
"has-[>svg]:px-[calc(var(--button-padding-x-lg,1.5rem)*0.67)]"
|
|
355
|
+
].join(" "),
|
|
356
|
+
icon: "size-[var(--button-height-md,2.25rem)]",
|
|
357
|
+
"icon-sm": "size-[var(--button-height-sm,2rem)]",
|
|
358
|
+
"icon-lg": "size-[var(--button-height-lg,2.5rem)]"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
defaultVariants: {
|
|
362
|
+
variant: "default",
|
|
363
|
+
size: "default"
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
var Pressable = React2__namespace.forwardRef(
|
|
367
|
+
({
|
|
368
|
+
children,
|
|
369
|
+
className,
|
|
370
|
+
href,
|
|
371
|
+
onClick,
|
|
372
|
+
variant,
|
|
373
|
+
size,
|
|
374
|
+
asButton = false,
|
|
375
|
+
fallbackComponentType = "span",
|
|
376
|
+
componentType,
|
|
377
|
+
"aria-label": ariaLabel,
|
|
378
|
+
"aria-describedby": ariaDescribedby,
|
|
379
|
+
id,
|
|
380
|
+
...props
|
|
381
|
+
}, ref) => {
|
|
382
|
+
const navigation = useNavigation({ href, onClick });
|
|
383
|
+
const {
|
|
384
|
+
normalizedHref,
|
|
385
|
+
target,
|
|
386
|
+
rel,
|
|
387
|
+
linkType,
|
|
388
|
+
isInternal,
|
|
389
|
+
handleClick
|
|
390
|
+
} = navigation;
|
|
391
|
+
const shouldRenderLink = normalizedHref && linkType !== "none";
|
|
392
|
+
const shouldRenderButton = !shouldRenderLink && onClick;
|
|
393
|
+
const effectiveComponentType = componentType || (shouldRenderLink ? "a" : shouldRenderButton ? "button" : fallbackComponentType);
|
|
394
|
+
const finalComponentType = isInternal && shouldRenderLink ? "a" : effectiveComponentType;
|
|
395
|
+
const shouldApplyButtonStyles = asButton || variant || size;
|
|
396
|
+
const combinedClassName = cn(
|
|
397
|
+
shouldApplyButtonStyles && buttonVariants({ variant, size }),
|
|
398
|
+
className
|
|
399
|
+
);
|
|
400
|
+
const dataProps = Object.fromEntries(
|
|
401
|
+
Object.entries(props).filter(([key]) => key.startsWith("data-"))
|
|
402
|
+
);
|
|
403
|
+
const buttonDataAttributes = shouldApplyButtonStyles ? {
|
|
404
|
+
"data-slot": "button",
|
|
405
|
+
"data-variant": variant ?? "default",
|
|
406
|
+
"data-size": size ?? "default"
|
|
407
|
+
} : {};
|
|
408
|
+
const commonProps = {
|
|
409
|
+
className: combinedClassName,
|
|
410
|
+
onClick: handleClick,
|
|
411
|
+
"aria-label": ariaLabel,
|
|
412
|
+
"aria-describedby": ariaDescribedby,
|
|
413
|
+
id,
|
|
414
|
+
...dataProps,
|
|
415
|
+
...buttonDataAttributes
|
|
416
|
+
};
|
|
417
|
+
if (finalComponentType === "a" && shouldRenderLink) {
|
|
418
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
419
|
+
"a",
|
|
420
|
+
{
|
|
421
|
+
ref,
|
|
422
|
+
href: normalizedHref,
|
|
423
|
+
target,
|
|
424
|
+
rel,
|
|
425
|
+
...commonProps,
|
|
426
|
+
...props,
|
|
427
|
+
children
|
|
428
|
+
}
|
|
429
|
+
);
|
|
430
|
+
}
|
|
431
|
+
if (finalComponentType === "button") {
|
|
432
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
433
|
+
"button",
|
|
434
|
+
{
|
|
435
|
+
ref,
|
|
436
|
+
type: props.type || "button",
|
|
437
|
+
...commonProps,
|
|
438
|
+
...props,
|
|
439
|
+
children
|
|
440
|
+
}
|
|
441
|
+
);
|
|
442
|
+
}
|
|
443
|
+
if (finalComponentType === "div") {
|
|
444
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
445
|
+
"div",
|
|
446
|
+
{
|
|
447
|
+
ref,
|
|
448
|
+
...commonProps,
|
|
449
|
+
children
|
|
450
|
+
}
|
|
451
|
+
);
|
|
452
|
+
}
|
|
453
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
454
|
+
"span",
|
|
455
|
+
{
|
|
456
|
+
ref,
|
|
457
|
+
...commonProps,
|
|
458
|
+
children
|
|
459
|
+
}
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
);
|
|
463
|
+
Pressable.displayName = "Pressable";
|
|
37
464
|
function Avatar({
|
|
38
465
|
className,
|
|
39
466
|
...props
|
|
@@ -88,7 +515,7 @@ var maxWidthStyles = {
|
|
|
88
515
|
"4xl": "max-w-[1536px]",
|
|
89
516
|
full: "max-w-full"
|
|
90
517
|
};
|
|
91
|
-
var Container =
|
|
518
|
+
var Container = React2__namespace.default.forwardRef(
|
|
92
519
|
({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
|
|
93
520
|
const Component = as;
|
|
94
521
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -394,7 +821,7 @@ var spacingStyles = {
|
|
|
394
821
|
};
|
|
395
822
|
var predefinedSpacings = ["none", "sm", "md", "lg", "xl", "hero"];
|
|
396
823
|
var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
|
|
397
|
-
var Section =
|
|
824
|
+
var Section = React2__namespace.default.forwardRef(
|
|
398
825
|
({
|
|
399
826
|
id,
|
|
400
827
|
title,
|
|
@@ -464,102 +891,135 @@ function TestimonialsSliderMinimal({
|
|
|
464
891
|
quoteClassName,
|
|
465
892
|
authorClassName,
|
|
466
893
|
avatarClassName,
|
|
894
|
+
navButtonClassName,
|
|
467
895
|
dotsClassName,
|
|
468
896
|
background,
|
|
469
897
|
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
470
|
-
spacing = "
|
|
898
|
+
spacing = "none",
|
|
471
899
|
pattern,
|
|
472
|
-
patternOpacity
|
|
900
|
+
patternOpacity,
|
|
901
|
+
previousButtonAriaLabel,
|
|
902
|
+
nextButtonAriaLabel,
|
|
903
|
+
navigationClassName
|
|
473
904
|
}) {
|
|
474
|
-
const [currentIndex, setCurrentIndex] =
|
|
475
|
-
const [isTransitioning, setIsTransitioning] = React.useState(false);
|
|
905
|
+
const [currentIndex, setCurrentIndex] = React2.useState(0);
|
|
476
906
|
const totalTestimonials = testimonials?.length ?? 0;
|
|
477
|
-
const
|
|
478
|
-
|
|
907
|
+
const autoPlayTimerRef = React2__namespace.useRef(
|
|
908
|
+
null
|
|
909
|
+
);
|
|
910
|
+
const resetAutoPlay = React2.useCallback(() => {
|
|
911
|
+
if (autoPlayTimerRef.current) {
|
|
912
|
+
clearInterval(autoPlayTimerRef.current);
|
|
913
|
+
autoPlayTimerRef.current = null;
|
|
914
|
+
}
|
|
915
|
+
if (!autoPlayInterval || autoPlayInterval <= 0 || totalTestimonials === 0)
|
|
916
|
+
return;
|
|
917
|
+
autoPlayTimerRef.current = setInterval(() => {
|
|
918
|
+
setCurrentIndex((prev) => (prev + 1) % totalTestimonials);
|
|
919
|
+
}, autoPlayInterval);
|
|
920
|
+
}, [autoPlayInterval, totalTestimonials]);
|
|
921
|
+
const goToNext = React2.useCallback(() => {
|
|
922
|
+
if (totalTestimonials === 0) return;
|
|
923
|
+
setCurrentIndex((prev) => prev === totalTestimonials - 1 ? 0 : prev + 1);
|
|
924
|
+
resetAutoPlay();
|
|
925
|
+
}, [totalTestimonials, resetAutoPlay]);
|
|
926
|
+
const goToPrevious = React2.useCallback(() => {
|
|
927
|
+
if (totalTestimonials === 0) return;
|
|
928
|
+
setCurrentIndex((prev) => prev === 0 ? totalTestimonials - 1 : prev - 1);
|
|
929
|
+
resetAutoPlay();
|
|
930
|
+
}, [totalTestimonials, resetAutoPlay]);
|
|
931
|
+
const goToIndex = React2.useCallback(
|
|
479
932
|
(index) => {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
setTimeout(() => {
|
|
483
|
-
setCurrentIndex(index);
|
|
484
|
-
setIsTransitioning(false);
|
|
485
|
-
}, 300);
|
|
933
|
+
setCurrentIndex(index);
|
|
934
|
+
resetAutoPlay();
|
|
486
935
|
},
|
|
487
|
-
[
|
|
936
|
+
[resetAutoPlay]
|
|
488
937
|
);
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}, [
|
|
938
|
+
React2.useEffect(() => {
|
|
939
|
+
resetAutoPlay();
|
|
940
|
+
return () => {
|
|
941
|
+
if (autoPlayTimerRef.current) {
|
|
942
|
+
clearInterval(autoPlayTimerRef.current);
|
|
943
|
+
}
|
|
944
|
+
};
|
|
945
|
+
}, [resetAutoPlay]);
|
|
497
946
|
const current = testimonials?.[currentIndex];
|
|
498
|
-
const getAuthorName =
|
|
947
|
+
const getAuthorName = React2.useCallback((testimonial) => {
|
|
499
948
|
if (typeof testimonial.author === "string") return testimonial.author;
|
|
500
949
|
return "";
|
|
501
950
|
}, []);
|
|
502
|
-
const getAvatarSrc =
|
|
951
|
+
const getAvatarSrc = React2.useCallback(
|
|
503
952
|
(testimonial) => {
|
|
504
953
|
return testimonial.avatarSrc || testimonial.avatar?.src;
|
|
505
954
|
},
|
|
506
955
|
[]
|
|
507
956
|
);
|
|
508
|
-
const getInitials =
|
|
957
|
+
const getInitials = React2.useCallback((name) => {
|
|
509
958
|
return name.split(" ").map((n) => n[0]).join("");
|
|
510
959
|
}, []);
|
|
511
|
-
const renderedTestimonial =
|
|
960
|
+
const renderedTestimonial = React2.useMemo(() => {
|
|
512
961
|
if (testimonialsSlot) return testimonialsSlot;
|
|
513
962
|
if (!current) return null;
|
|
514
963
|
const authorName = getAuthorName(current);
|
|
515
964
|
const avatarSrc = getAvatarSrc(current);
|
|
516
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
517
|
-
"
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
"
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
)
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
965
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-12 md:space-y-24", children: [
|
|
966
|
+
current.quote && (typeof current.quote === "string" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
967
|
+
"blockquote",
|
|
968
|
+
{
|
|
969
|
+
className: cn(
|
|
970
|
+
"text-xl font-thin leading-relaxed md:text-2xl text-balance line-clamp-6",
|
|
971
|
+
quoteClassName
|
|
972
|
+
),
|
|
973
|
+
children: [
|
|
974
|
+
"\u201C",
|
|
975
|
+
current.quote,
|
|
976
|
+
"\u201D"
|
|
977
|
+
]
|
|
978
|
+
}
|
|
979
|
+
) : current.quote),
|
|
980
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
981
|
+
"div",
|
|
982
|
+
{
|
|
983
|
+
className: cn(
|
|
984
|
+
"mt-8 flex flex-col items-center gap-6 md:gap-12",
|
|
985
|
+
authorClassName
|
|
986
|
+
),
|
|
987
|
+
children: [
|
|
988
|
+
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
989
|
+
Avatar,
|
|
990
|
+
{
|
|
991
|
+
className: cn(
|
|
992
|
+
"relative flex shrink-0 overflow-hidden rounded-full ring-4 ring-primary shadow-xl size-12",
|
|
993
|
+
avatarClassName
|
|
994
|
+
),
|
|
995
|
+
children: [
|
|
547
996
|
/* @__PURE__ */ jsxRuntime.jsx(AvatarImage, { src: avatarSrc, alt: authorName }),
|
|
548
997
|
/* @__PURE__ */ jsxRuntime.jsx(AvatarFallback, { children: getInitials(authorName) })
|
|
549
|
-
]
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
998
|
+
]
|
|
999
|
+
}
|
|
1000
|
+
),
|
|
1001
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-0", children: [
|
|
1002
|
+
current.author && (typeof current.author === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold", children: current.author }) : current.author),
|
|
1003
|
+
current.role && (typeof current.role === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm ", children: current.role }) : current.role)
|
|
1004
|
+
] }),
|
|
1005
|
+
current.linkConfig?.href && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1006
|
+
Pressable,
|
|
1007
|
+
{
|
|
1008
|
+
href: current.linkConfig.href,
|
|
1009
|
+
className: cn(
|
|
1010
|
+
current.linkConfig.className,
|
|
1011
|
+
"text-sm font-bold tracking-wide uppercase",
|
|
1012
|
+
"hover:underline hover:underline-offset-2"
|
|
1013
|
+
),
|
|
1014
|
+
children: current.linkConfig.label
|
|
1015
|
+
}
|
|
1016
|
+
)
|
|
1017
|
+
]
|
|
1018
|
+
}
|
|
1019
|
+
)
|
|
1020
|
+
] });
|
|
560
1021
|
}, [
|
|
561
1022
|
testimonialsSlot,
|
|
562
|
-
isTransitioning,
|
|
563
1023
|
current,
|
|
564
1024
|
quoteClassName,
|
|
565
1025
|
authorClassName,
|
|
@@ -577,21 +1037,75 @@ function TestimonialsSliderMinimal({
|
|
|
577
1037
|
patternOpacity,
|
|
578
1038
|
className,
|
|
579
1039
|
containerClassName,
|
|
580
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
1040
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1041
|
+
"div",
|
|
1042
|
+
{
|
|
1043
|
+
className: cn(
|
|
1044
|
+
"mx-auto max-w-3xl text-center min-h-[700px] flex flex-col items-center justify-center",
|
|
1045
|
+
contentClassName
|
|
1046
|
+
),
|
|
1047
|
+
children: [
|
|
1048
|
+
/* @__PURE__ */ jsxRuntime.jsx(framerMotion.AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1049
|
+
framerMotion.motion.div,
|
|
1050
|
+
{
|
|
1051
|
+
initial: { opacity: 0, y: 10 },
|
|
1052
|
+
animate: { opacity: 1, y: 0 },
|
|
1053
|
+
exit: { opacity: 0, y: -10 },
|
|
1054
|
+
transition: { duration: 0.4, ease: "easeInOut" },
|
|
1055
|
+
children: renderedTestimonial
|
|
1056
|
+
},
|
|
1057
|
+
currentIndex
|
|
1058
|
+
) }),
|
|
1059
|
+
testimonials && testimonials.length > 1 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1060
|
+
"div",
|
|
1061
|
+
{
|
|
1062
|
+
className: cn(
|
|
1063
|
+
"mt-8 flex items-center justify-center gap-4",
|
|
1064
|
+
navigationClassName
|
|
1065
|
+
),
|
|
1066
|
+
children: [
|
|
1067
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1068
|
+
Pressable,
|
|
1069
|
+
{
|
|
1070
|
+
asButton: true,
|
|
1071
|
+
variant: "default",
|
|
1072
|
+
size: "icon",
|
|
1073
|
+
className: cn("size-10 rounded-full", navButtonClassName),
|
|
1074
|
+
onClick: goToPrevious,
|
|
1075
|
+
"aria-label": previousButtonAriaLabel ?? "Previous testimonial",
|
|
1076
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/chevron-left", size: 24 })
|
|
1077
|
+
}
|
|
1078
|
+
),
|
|
1079
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("flex items-center gap-2", dotsClassName), children: testimonials.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1080
|
+
"button",
|
|
1081
|
+
{
|
|
1082
|
+
onClick: () => goToIndex(index),
|
|
1083
|
+
className: cn(
|
|
1084
|
+
"size-2 rounded-full transition-all",
|
|
1085
|
+
index === currentIndex ? "w-6 bg-primary text-primary-foreground" : "bg-card text-card-foreground"
|
|
1086
|
+
),
|
|
1087
|
+
"aria-label": `Go to testimonial ${index + 1}`
|
|
1088
|
+
},
|
|
1089
|
+
index
|
|
1090
|
+
)) }),
|
|
1091
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1092
|
+
Pressable,
|
|
1093
|
+
{
|
|
1094
|
+
asButton: true,
|
|
1095
|
+
variant: "default",
|
|
1096
|
+
size: "icon",
|
|
1097
|
+
className: cn("size-10 rounded-full", navButtonClassName),
|
|
1098
|
+
onClick: goToNext,
|
|
1099
|
+
"aria-label": nextButtonAriaLabel ?? "Next testimonial",
|
|
1100
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/chevron-right", size: 24 })
|
|
1101
|
+
}
|
|
1102
|
+
)
|
|
1103
|
+
]
|
|
1104
|
+
}
|
|
1105
|
+
)
|
|
1106
|
+
]
|
|
1107
|
+
}
|
|
1108
|
+
)
|
|
595
1109
|
}
|
|
596
1110
|
);
|
|
597
1111
|
}
|