@opensite/ui 2.8.4 → 2.8.5
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/registry.cjs +169 -98
- package/dist/registry.js +169 -98
- package/dist/testimonials-scrolling-columns.cjs +21 -16
- package/dist/testimonials-scrolling-columns.d.cts +5 -1
- package/dist/testimonials-scrolling-columns.d.ts +5 -1
- package/dist/testimonials-scrolling-columns.js +21 -16
- package/dist/testimonials-simple-grid.cjs +61 -47
- package/dist/testimonials-simple-grid.d.cts +5 -1
- package/dist/testimonials-simple-grid.d.ts +5 -1
- package/dist/testimonials-simple-grid.js +61 -47
- package/dist/testimonials-slider-minimal.cjs +22 -7
- package/dist/testimonials-slider-minimal.d.cts +5 -1
- package/dist/testimonials-slider-minimal.d.ts +5 -1
- package/dist/testimonials-slider-minimal.js +22 -7
- package/dist/testimonials-split-image.cjs +16 -3
- package/dist/testimonials-split-image.d.cts +5 -1
- package/dist/testimonials-split-image.d.ts +5 -1
- package/dist/testimonials-split-image.js +16 -3
- package/dist/testimonials-stats-header.cjs +20 -5
- package/dist/testimonials-stats-header.d.cts +5 -1
- package/dist/testimonials-stats-header.d.ts +5 -1
- package/dist/testimonials-stats-header.js +20 -5
- package/dist/testimonials-wall-compact.cjs +29 -20
- package/dist/testimonials-wall-compact.d.cts +5 -1
- package/dist/testimonials-wall-compact.d.ts +5 -1
- package/dist/testimonials-wall-compact.js +29 -20
- package/package.json +1 -1
package/dist/registry.js
CHANGED
|
@@ -45153,7 +45153,8 @@ function TestimonialsSimpleGrid({
|
|
|
45153
45153
|
quoteClassName,
|
|
45154
45154
|
authorClassName,
|
|
45155
45155
|
background,
|
|
45156
|
-
|
|
45156
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45157
|
+
spacing = "xl",
|
|
45157
45158
|
pattern,
|
|
45158
45159
|
patternOpacity
|
|
45159
45160
|
}) {
|
|
@@ -45167,49 +45168,70 @@ function TestimonialsSimpleGrid({
|
|
|
45167
45168
|
if (typeof testimonial.author === "string") return testimonial.author;
|
|
45168
45169
|
return "";
|
|
45169
45170
|
}, []);
|
|
45170
|
-
const getAvatarSrc = useCallback(
|
|
45171
|
-
|
|
45172
|
-
|
|
45171
|
+
const getAvatarSrc = useCallback(
|
|
45172
|
+
(testimonial) => {
|
|
45173
|
+
return testimonial.avatarSrc || testimonial.avatar?.src;
|
|
45174
|
+
},
|
|
45175
|
+
[]
|
|
45176
|
+
);
|
|
45173
45177
|
const getInitials = useCallback((name) => {
|
|
45174
45178
|
return name.split(" ").map((n) => n[0]).join("");
|
|
45175
45179
|
}, []);
|
|
45176
45180
|
const renderedTestimonials = useMemo(() => {
|
|
45177
45181
|
if (testimonialsSlot) return testimonialsSlot;
|
|
45178
45182
|
if (!testimonials || testimonials.length === 0) return null;
|
|
45179
|
-
return /* @__PURE__ */ jsx(
|
|
45180
|
-
|
|
45181
|
-
|
|
45182
|
-
|
|
45183
|
-
|
|
45184
|
-
|
|
45185
|
-
|
|
45186
|
-
|
|
45187
|
-
|
|
45188
|
-
|
|
45189
|
-
|
|
45190
|
-
|
|
45191
|
-
|
|
45192
|
-
|
|
45193
|
-
|
|
45194
|
-
|
|
45195
|
-
|
|
45196
|
-
|
|
45197
|
-
|
|
45198
|
-
|
|
45199
|
-
|
|
45200
|
-
/* @__PURE__ */ jsx(
|
|
45201
|
-
|
|
45202
|
-
|
|
45203
|
-
|
|
45204
|
-
|
|
45205
|
-
|
|
45206
|
-
|
|
45183
|
+
return /* @__PURE__ */ jsx(
|
|
45184
|
+
"div",
|
|
45185
|
+
{
|
|
45186
|
+
className: cn("grid gap-6", gridCols[effectiveColumns], gridClassName),
|
|
45187
|
+
children: testimonials.map((testimonial, index) => {
|
|
45188
|
+
const authorName = getAuthorName(testimonial);
|
|
45189
|
+
const avatarSrc = getAvatarSrc(testimonial);
|
|
45190
|
+
return /* @__PURE__ */ jsx(Card, { className: cardClassName, children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6", children: [
|
|
45191
|
+
testimonial.quote && (typeof testimonial.quote === "string" ? /* @__PURE__ */ jsxs(
|
|
45192
|
+
"p",
|
|
45193
|
+
{
|
|
45194
|
+
className: cn(
|
|
45195
|
+
"mb-6 text-sm leading-relaxed ",
|
|
45196
|
+
quoteClassName
|
|
45197
|
+
),
|
|
45198
|
+
children: [
|
|
45199
|
+
"\u201C",
|
|
45200
|
+
testimonial.quote,
|
|
45201
|
+
"\u201D"
|
|
45202
|
+
]
|
|
45203
|
+
}
|
|
45204
|
+
) : /* @__PURE__ */ jsx("div", { className: cn("mb-6", quoteClassName), children: testimonial.quote })),
|
|
45205
|
+
/* @__PURE__ */ jsxs("div", { className: cn("flex items-center gap-3", authorClassName), children: [
|
|
45206
|
+
/* @__PURE__ */ jsxs(Avatar, { className: "size-10", children: [
|
|
45207
|
+
/* @__PURE__ */ jsx(AvatarImage, { src: avatarSrc, alt: authorName }),
|
|
45208
|
+
/* @__PURE__ */ jsx(AvatarFallback, { children: getInitials(authorName) })
|
|
45209
|
+
] }),
|
|
45210
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
45211
|
+
testimonial.author && (typeof testimonial.author === "string" ? /* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: testimonial.author }) : testimonial.author),
|
|
45212
|
+
/* @__PURE__ */ jsxs("p", { className: "text-xs ", children: [
|
|
45213
|
+
testimonial.role && (typeof testimonial.role === "string" ? testimonial.role : null),
|
|
45214
|
+
testimonial.company && (typeof testimonial.company === "string" ? `, ${testimonial.company}` : null)
|
|
45215
|
+
] })
|
|
45216
|
+
] })
|
|
45207
45217
|
] })
|
|
45208
|
-
] })
|
|
45209
|
-
|
|
45210
|
-
|
|
45211
|
-
|
|
45212
|
-
}, [
|
|
45218
|
+
] }) }, index);
|
|
45219
|
+
})
|
|
45220
|
+
}
|
|
45221
|
+
);
|
|
45222
|
+
}, [
|
|
45223
|
+
testimonialsSlot,
|
|
45224
|
+
gridCols,
|
|
45225
|
+
effectiveColumns,
|
|
45226
|
+
gridClassName,
|
|
45227
|
+
testimonials,
|
|
45228
|
+
cardClassName,
|
|
45229
|
+
quoteClassName,
|
|
45230
|
+
authorClassName,
|
|
45231
|
+
getAuthorName,
|
|
45232
|
+
getAvatarSrc,
|
|
45233
|
+
getInitials
|
|
45234
|
+
]);
|
|
45213
45235
|
return /* @__PURE__ */ jsxs(
|
|
45214
45236
|
Section,
|
|
45215
45237
|
{
|
|
@@ -45218,6 +45240,7 @@ function TestimonialsSimpleGrid({
|
|
|
45218
45240
|
pattern,
|
|
45219
45241
|
patternOpacity,
|
|
45220
45242
|
className,
|
|
45243
|
+
containerClassName,
|
|
45221
45244
|
children: [
|
|
45222
45245
|
/* @__PURE__ */ jsxs(
|
|
45223
45246
|
"div",
|
|
@@ -45234,16 +45257,7 @@ function TestimonialsSimpleGrid({
|
|
|
45234
45257
|
children: heading
|
|
45235
45258
|
}
|
|
45236
45259
|
) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
|
|
45237
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
45238
|
-
"p",
|
|
45239
|
-
{
|
|
45240
|
-
className: cn(
|
|
45241
|
-
"mt-4 text-lg text-muted-foreground",
|
|
45242
|
-
descriptionClassName
|
|
45243
|
-
),
|
|
45244
|
-
children: description
|
|
45245
|
-
}
|
|
45246
|
-
) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
45260
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mt-4 text-lg ", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
45247
45261
|
]
|
|
45248
45262
|
}
|
|
45249
45263
|
),
|
|
@@ -45263,7 +45277,8 @@ function TestimonialsSliderMinimal({
|
|
|
45263
45277
|
avatarClassName,
|
|
45264
45278
|
dotsClassName,
|
|
45265
45279
|
background,
|
|
45266
|
-
|
|
45280
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45281
|
+
spacing = "xl",
|
|
45267
45282
|
pattern,
|
|
45268
45283
|
patternOpacity
|
|
45269
45284
|
}) {
|
|
@@ -45295,9 +45310,12 @@ function TestimonialsSliderMinimal({
|
|
|
45295
45310
|
if (typeof testimonial.author === "string") return testimonial.author;
|
|
45296
45311
|
return "";
|
|
45297
45312
|
}, []);
|
|
45298
|
-
const getAvatarSrc = useCallback(
|
|
45299
|
-
|
|
45300
|
-
|
|
45313
|
+
const getAvatarSrc = useCallback(
|
|
45314
|
+
(testimonial) => {
|
|
45315
|
+
return testimonial.avatarSrc || testimonial.avatar?.src;
|
|
45316
|
+
},
|
|
45317
|
+
[]
|
|
45318
|
+
);
|
|
45301
45319
|
const getInitials = useCallback((name) => {
|
|
45302
45320
|
return name.split(" ").map((n) => n[0]).join("");
|
|
45303
45321
|
}, []);
|
|
@@ -45342,7 +45360,7 @@ function TestimonialsSliderMinimal({
|
|
|
45342
45360
|
] }),
|
|
45343
45361
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
45344
45362
|
current.author && (typeof current.author === "string" ? /* @__PURE__ */ jsx("p", { className: "font-semibold", children: current.author }) : current.author),
|
|
45345
|
-
current.role && (typeof current.role === "string" ? /* @__PURE__ */ jsx("p", { className: "text-sm
|
|
45363
|
+
current.role && (typeof current.role === "string" ? /* @__PURE__ */ jsx("p", { className: "text-sm ", children: current.role }) : current.role)
|
|
45346
45364
|
] })
|
|
45347
45365
|
]
|
|
45348
45366
|
}
|
|
@@ -45350,7 +45368,17 @@ function TestimonialsSliderMinimal({
|
|
|
45350
45368
|
]
|
|
45351
45369
|
}
|
|
45352
45370
|
);
|
|
45353
|
-
}, [
|
|
45371
|
+
}, [
|
|
45372
|
+
testimonialsSlot,
|
|
45373
|
+
isTransitioning,
|
|
45374
|
+
current,
|
|
45375
|
+
quoteClassName,
|
|
45376
|
+
authorClassName,
|
|
45377
|
+
avatarClassName,
|
|
45378
|
+
getAuthorName,
|
|
45379
|
+
getAvatarSrc,
|
|
45380
|
+
getInitials
|
|
45381
|
+
]);
|
|
45354
45382
|
return /* @__PURE__ */ jsx(
|
|
45355
45383
|
Section,
|
|
45356
45384
|
{
|
|
@@ -45359,6 +45387,7 @@ function TestimonialsSliderMinimal({
|
|
|
45359
45387
|
pattern,
|
|
45360
45388
|
patternOpacity,
|
|
45361
45389
|
className,
|
|
45390
|
+
containerClassName,
|
|
45362
45391
|
children: /* @__PURE__ */ jsxs("div", { className: cn("mx-auto max-w-3xl text-center", contentClassName), children: [
|
|
45363
45392
|
renderedTestimonial,
|
|
45364
45393
|
testimonials && testimonials.length > 0 && /* @__PURE__ */ jsx("div", { className: cn("mt-8 flex justify-center gap-2", dotsClassName), children: testimonials.map((_, index) => /* @__PURE__ */ jsx(
|
|
@@ -45367,7 +45396,7 @@ function TestimonialsSliderMinimal({
|
|
|
45367
45396
|
onClick: () => goToSlide(index),
|
|
45368
45397
|
className: cn(
|
|
45369
45398
|
"size-2 rounded-full transition-all",
|
|
45370
|
-
index === currentIndex ? "w-6 bg-primary
|
|
45399
|
+
index === currentIndex ? "w-6 bg-primary text-primary-foreground" : ""
|
|
45371
45400
|
),
|
|
45372
45401
|
"aria-label": `Go to testimonial ${index + 1}`
|
|
45373
45402
|
},
|
|
@@ -45391,7 +45420,8 @@ function TestimonialsSplitImage({
|
|
|
45391
45420
|
quoteClassName,
|
|
45392
45421
|
authorClassName,
|
|
45393
45422
|
background,
|
|
45394
|
-
|
|
45423
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45424
|
+
spacing = "xl",
|
|
45395
45425
|
pattern,
|
|
45396
45426
|
patternOpacity,
|
|
45397
45427
|
optixFlowConfig
|
|
@@ -45446,7 +45476,7 @@ function TestimonialsSplitImage({
|
|
|
45446
45476
|
] }),
|
|
45447
45477
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
45448
45478
|
testimonial.author && (typeof testimonial.author === "string" ? /* @__PURE__ */ jsx("p", { className: "font-semibold", children: testimonial.author }) : testimonial.author),
|
|
45449
|
-
(testimonial.role || testimonial.company) && /* @__PURE__ */ jsxs("p", { className: "text-sm
|
|
45479
|
+
(testimonial.role || testimonial.company) && /* @__PURE__ */ jsxs("p", { className: "text-sm ", children: [
|
|
45450
45480
|
testimonial.role && (typeof testimonial.role === "string" ? testimonial.role : testimonial.role),
|
|
45451
45481
|
testimonial.company && (typeof testimonial.company === "string" ? ` at ${testimonial.company}` : testimonial.company)
|
|
45452
45482
|
] })
|
|
@@ -45455,7 +45485,18 @@ function TestimonialsSplitImage({
|
|
|
45455
45485
|
]
|
|
45456
45486
|
}
|
|
45457
45487
|
);
|
|
45458
|
-
}, [
|
|
45488
|
+
}, [
|
|
45489
|
+
testimonialSlot,
|
|
45490
|
+
effectiveImagePosition,
|
|
45491
|
+
contentClassName,
|
|
45492
|
+
quoteIconClassName,
|
|
45493
|
+
testimonial,
|
|
45494
|
+
quoteClassName,
|
|
45495
|
+
authorClassName,
|
|
45496
|
+
getAuthorName,
|
|
45497
|
+
getAvatarSrc,
|
|
45498
|
+
getInitials
|
|
45499
|
+
]);
|
|
45459
45500
|
return /* @__PURE__ */ jsx(
|
|
45460
45501
|
Section,
|
|
45461
45502
|
{
|
|
@@ -45464,6 +45505,7 @@ function TestimonialsSplitImage({
|
|
|
45464
45505
|
pattern,
|
|
45465
45506
|
patternOpacity,
|
|
45466
45507
|
className,
|
|
45508
|
+
containerClassName,
|
|
45467
45509
|
children: /* @__PURE__ */ jsxs(
|
|
45468
45510
|
"div",
|
|
45469
45511
|
{
|
|
@@ -45513,7 +45555,8 @@ function TestimonialsStatsHeader({
|
|
|
45513
45555
|
quoteClassName,
|
|
45514
45556
|
authorClassName,
|
|
45515
45557
|
background,
|
|
45516
|
-
|
|
45558
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45559
|
+
spacing = "xl",
|
|
45517
45560
|
pattern,
|
|
45518
45561
|
patternOpacity
|
|
45519
45562
|
}) {
|
|
@@ -45521,9 +45564,12 @@ function TestimonialsStatsHeader({
|
|
|
45521
45564
|
if (typeof testimonial.author === "string") return testimonial.author;
|
|
45522
45565
|
return "";
|
|
45523
45566
|
}, []);
|
|
45524
|
-
const getAvatarSrc = useCallback(
|
|
45525
|
-
|
|
45526
|
-
|
|
45567
|
+
const getAvatarSrc = useCallback(
|
|
45568
|
+
(testimonial) => {
|
|
45569
|
+
return testimonial.avatarSrc || testimonial.avatar?.src;
|
|
45570
|
+
},
|
|
45571
|
+
[]
|
|
45572
|
+
);
|
|
45527
45573
|
const getInitials = useCallback((name) => {
|
|
45528
45574
|
return name.split(" ").map((n) => n[0]).join("");
|
|
45529
45575
|
}, []);
|
|
@@ -45604,7 +45650,17 @@ function TestimonialsStatsHeader({
|
|
|
45604
45650
|
})
|
|
45605
45651
|
}
|
|
45606
45652
|
);
|
|
45607
|
-
}, [
|
|
45653
|
+
}, [
|
|
45654
|
+
testimonialsSlot,
|
|
45655
|
+
testimonialsGridClassName,
|
|
45656
|
+
testimonials,
|
|
45657
|
+
cardClassName,
|
|
45658
|
+
quoteClassName,
|
|
45659
|
+
authorClassName,
|
|
45660
|
+
getAuthorName,
|
|
45661
|
+
getAvatarSrc,
|
|
45662
|
+
getInitials
|
|
45663
|
+
]);
|
|
45608
45664
|
return /* @__PURE__ */ jsxs(
|
|
45609
45665
|
Section,
|
|
45610
45666
|
{
|
|
@@ -45613,6 +45669,7 @@ function TestimonialsStatsHeader({
|
|
|
45613
45669
|
pattern,
|
|
45614
45670
|
patternOpacity,
|
|
45615
45671
|
className,
|
|
45672
|
+
containerClassName,
|
|
45616
45673
|
children: [
|
|
45617
45674
|
/* @__PURE__ */ jsxs(
|
|
45618
45675
|
"div",
|
|
@@ -45662,17 +45719,24 @@ function TestimonialsWallCompact({
|
|
|
45662
45719
|
authorClassName,
|
|
45663
45720
|
quoteClassName,
|
|
45664
45721
|
background,
|
|
45665
|
-
|
|
45722
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45723
|
+
spacing = "xl",
|
|
45666
45724
|
pattern,
|
|
45667
45725
|
patternOpacity
|
|
45668
45726
|
}) {
|
|
45669
|
-
const getAuthorName = useCallback(
|
|
45670
|
-
|
|
45671
|
-
|
|
45672
|
-
|
|
45673
|
-
|
|
45674
|
-
|
|
45675
|
-
|
|
45727
|
+
const getAuthorName = useCallback(
|
|
45728
|
+
(testimonial) => {
|
|
45729
|
+
if (typeof testimonial.author === "string") return testimonial.author;
|
|
45730
|
+
return "";
|
|
45731
|
+
},
|
|
45732
|
+
[]
|
|
45733
|
+
);
|
|
45734
|
+
const getAvatarSrc = useCallback(
|
|
45735
|
+
(testimonial) => {
|
|
45736
|
+
return testimonial.avatarSrc || testimonial.avatar?.src;
|
|
45737
|
+
},
|
|
45738
|
+
[]
|
|
45739
|
+
);
|
|
45676
45740
|
const getInitials = useCallback((name) => {
|
|
45677
45741
|
return name.split(" ").map((n) => n[0]).join("");
|
|
45678
45742
|
}, []);
|
|
@@ -45714,7 +45778,7 @@ function TestimonialsWallCompact({
|
|
|
45714
45778
|
] }),
|
|
45715
45779
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
45716
45780
|
testimonial.author && (typeof testimonial.author === "string" ? /* @__PURE__ */ jsx("p", { className: "truncate text-sm font-medium", children: testimonial.author }) : testimonial.author),
|
|
45717
|
-
testimonial.handle && /* @__PURE__ */ jsx("p", { className: "truncate text-xs
|
|
45781
|
+
testimonial.handle && /* @__PURE__ */ jsx("p", { className: "truncate text-xs ", children: testimonial.handle })
|
|
45718
45782
|
] })
|
|
45719
45783
|
] }),
|
|
45720
45784
|
testimonial.badge && (typeof testimonial.badge === "string" ? /* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "shrink-0 text-xs", children: testimonial.badge }) : testimonial.badge)
|
|
@@ -45729,7 +45793,17 @@ function TestimonialsWallCompact({
|
|
|
45729
45793
|
})
|
|
45730
45794
|
}
|
|
45731
45795
|
);
|
|
45732
|
-
}, [
|
|
45796
|
+
}, [
|
|
45797
|
+
testimonialsSlot,
|
|
45798
|
+
gridClassName,
|
|
45799
|
+
testimonials,
|
|
45800
|
+
cardClassName,
|
|
45801
|
+
authorClassName,
|
|
45802
|
+
quoteClassName,
|
|
45803
|
+
getAuthorName,
|
|
45804
|
+
getAvatarSrc,
|
|
45805
|
+
getInitials
|
|
45806
|
+
]);
|
|
45733
45807
|
return /* @__PURE__ */ jsxs(
|
|
45734
45808
|
Section,
|
|
45735
45809
|
{
|
|
@@ -45738,6 +45812,7 @@ function TestimonialsWallCompact({
|
|
|
45738
45812
|
pattern,
|
|
45739
45813
|
patternOpacity,
|
|
45740
45814
|
className,
|
|
45815
|
+
containerClassName,
|
|
45741
45816
|
children: [
|
|
45742
45817
|
/* @__PURE__ */ jsxs(
|
|
45743
45818
|
"div",
|
|
@@ -45754,16 +45829,7 @@ function TestimonialsWallCompact({
|
|
|
45754
45829
|
children: heading
|
|
45755
45830
|
}
|
|
45756
45831
|
) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
|
|
45757
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
45758
|
-
"p",
|
|
45759
|
-
{
|
|
45760
|
-
className: cn(
|
|
45761
|
-
"mt-4 text-lg text-muted-foreground",
|
|
45762
|
-
descriptionClassName
|
|
45763
|
-
),
|
|
45764
|
-
children: description
|
|
45765
|
-
}
|
|
45766
|
-
) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
45832
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mt-4 text-lg", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
45767
45833
|
]
|
|
45768
45834
|
}
|
|
45769
45835
|
),
|
|
@@ -46489,15 +46555,19 @@ function TestimonialsScrollingColumns({
|
|
|
46489
46555
|
quoteClassName,
|
|
46490
46556
|
authorClassName,
|
|
46491
46557
|
background,
|
|
46492
|
-
|
|
46558
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
46559
|
+
spacing = "xl",
|
|
46493
46560
|
pattern,
|
|
46494
46561
|
patternOpacity,
|
|
46495
46562
|
optixFlowConfig
|
|
46496
46563
|
}) {
|
|
46497
|
-
const getAuthorName = useCallback(
|
|
46498
|
-
|
|
46499
|
-
|
|
46500
|
-
|
|
46564
|
+
const getAuthorName = useCallback(
|
|
46565
|
+
(testimonial) => {
|
|
46566
|
+
if (typeof testimonial.author === "string") return testimonial.author;
|
|
46567
|
+
return "";
|
|
46568
|
+
},
|
|
46569
|
+
[]
|
|
46570
|
+
);
|
|
46501
46571
|
const renderedTestimonials = useMemo(() => {
|
|
46502
46572
|
if (testimonialsSlot) return testimonialsSlot;
|
|
46503
46573
|
if (!testimonials || testimonials.length === 0) return null;
|
|
@@ -46571,7 +46641,16 @@ function TestimonialsScrollingColumns({
|
|
|
46571
46641
|
})
|
|
46572
46642
|
}
|
|
46573
46643
|
);
|
|
46574
|
-
}, [
|
|
46644
|
+
}, [
|
|
46645
|
+
testimonialsSlot,
|
|
46646
|
+
gridClassName,
|
|
46647
|
+
testimonials,
|
|
46648
|
+
cardClassName,
|
|
46649
|
+
optixFlowConfig,
|
|
46650
|
+
quoteClassName,
|
|
46651
|
+
authorClassName,
|
|
46652
|
+
getAuthorName
|
|
46653
|
+
]);
|
|
46575
46654
|
return /* @__PURE__ */ jsxs(
|
|
46576
46655
|
Section,
|
|
46577
46656
|
{
|
|
@@ -46580,6 +46659,7 @@ function TestimonialsScrollingColumns({
|
|
|
46580
46659
|
pattern,
|
|
46581
46660
|
patternOpacity,
|
|
46582
46661
|
className,
|
|
46662
|
+
containerClassName,
|
|
46583
46663
|
children: [
|
|
46584
46664
|
/* @__PURE__ */ jsxs(
|
|
46585
46665
|
"div",
|
|
@@ -46596,16 +46676,7 @@ function TestimonialsScrollingColumns({
|
|
|
46596
46676
|
children: heading
|
|
46597
46677
|
}
|
|
46598
46678
|
) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
|
|
46599
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
46600
|
-
"p",
|
|
46601
|
-
{
|
|
46602
|
-
className: cn(
|
|
46603
|
-
"mt-4 text-lg text-muted-foreground",
|
|
46604
|
-
descriptionClassName
|
|
46605
|
-
),
|
|
46606
|
-
children: description
|
|
46607
|
-
}
|
|
46608
|
-
) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
46679
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mt-4 text-lg ", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
46609
46680
|
]
|
|
46610
46681
|
}
|
|
46611
46682
|
),
|
|
@@ -450,15 +450,19 @@ function TestimonialsScrollingColumns({
|
|
|
450
450
|
quoteClassName,
|
|
451
451
|
authorClassName,
|
|
452
452
|
background,
|
|
453
|
-
|
|
453
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
454
|
+
spacing = "xl",
|
|
454
455
|
pattern,
|
|
455
456
|
patternOpacity,
|
|
456
457
|
optixFlowConfig
|
|
457
458
|
}) {
|
|
458
|
-
const getAuthorName = React.useCallback(
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
459
|
+
const getAuthorName = React.useCallback(
|
|
460
|
+
(testimonial) => {
|
|
461
|
+
if (typeof testimonial.author === "string") return testimonial.author;
|
|
462
|
+
return "";
|
|
463
|
+
},
|
|
464
|
+
[]
|
|
465
|
+
);
|
|
462
466
|
const renderedTestimonials = React.useMemo(() => {
|
|
463
467
|
if (testimonialsSlot) return testimonialsSlot;
|
|
464
468
|
if (!testimonials || testimonials.length === 0) return null;
|
|
@@ -532,7 +536,16 @@ function TestimonialsScrollingColumns({
|
|
|
532
536
|
})
|
|
533
537
|
}
|
|
534
538
|
);
|
|
535
|
-
}, [
|
|
539
|
+
}, [
|
|
540
|
+
testimonialsSlot,
|
|
541
|
+
gridClassName,
|
|
542
|
+
testimonials,
|
|
543
|
+
cardClassName,
|
|
544
|
+
optixFlowConfig,
|
|
545
|
+
quoteClassName,
|
|
546
|
+
authorClassName,
|
|
547
|
+
getAuthorName
|
|
548
|
+
]);
|
|
536
549
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
537
550
|
Section,
|
|
538
551
|
{
|
|
@@ -541,6 +554,7 @@ function TestimonialsScrollingColumns({
|
|
|
541
554
|
pattern,
|
|
542
555
|
patternOpacity,
|
|
543
556
|
className,
|
|
557
|
+
containerClassName,
|
|
544
558
|
children: [
|
|
545
559
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
546
560
|
"div",
|
|
@@ -557,16 +571,7 @@ function TestimonialsScrollingColumns({
|
|
|
557
571
|
children: heading
|
|
558
572
|
}
|
|
559
573
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
|
|
560
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
561
|
-
"p",
|
|
562
|
-
{
|
|
563
|
-
className: cn(
|
|
564
|
-
"mt-4 text-lg text-muted-foreground",
|
|
565
|
-
descriptionClassName
|
|
566
|
-
),
|
|
567
|
-
children: description
|
|
568
|
-
}
|
|
569
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
574
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("mt-4 text-lg ", descriptionClassName), children: description }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
570
575
|
]
|
|
571
576
|
}
|
|
572
577
|
),
|
|
@@ -85,6 +85,10 @@ interface TestimonialsScrollingColumnsProps {
|
|
|
85
85
|
* OptixFlow image optimization config
|
|
86
86
|
*/
|
|
87
87
|
optixFlowConfig?: OptixFlowConfig;
|
|
88
|
+
/**
|
|
89
|
+
* Additional CSS classes for the container
|
|
90
|
+
*/
|
|
91
|
+
containerClassName?: string;
|
|
88
92
|
}
|
|
89
93
|
/**
|
|
90
94
|
* TestimonialsScrollingColumns - An animated testimonial section with staggered card
|
|
@@ -111,6 +115,6 @@ interface TestimonialsScrollingColumnsProps {
|
|
|
111
115
|
* />
|
|
112
116
|
* ```
|
|
113
117
|
*/
|
|
114
|
-
declare function TestimonialsScrollingColumns({ testimonials, testimonialsSlot, heading, description, className, headerClassName, headingClassName, descriptionClassName, gridClassName, cardClassName, quoteClassName, authorClassName, background, spacing, pattern, patternOpacity, optixFlowConfig, }: TestimonialsScrollingColumnsProps): React.JSX.Element;
|
|
118
|
+
declare function TestimonialsScrollingColumns({ testimonials, testimonialsSlot, heading, description, className, headerClassName, headingClassName, descriptionClassName, gridClassName, cardClassName, quoteClassName, authorClassName, background, containerClassName, spacing, pattern, patternOpacity, optixFlowConfig, }: TestimonialsScrollingColumnsProps): React.JSX.Element;
|
|
115
119
|
|
|
116
120
|
export { type ScrollingColumnTestimonialItem, TestimonialsScrollingColumns, type TestimonialsScrollingColumnsProps };
|
|
@@ -85,6 +85,10 @@ interface TestimonialsScrollingColumnsProps {
|
|
|
85
85
|
* OptixFlow image optimization config
|
|
86
86
|
*/
|
|
87
87
|
optixFlowConfig?: OptixFlowConfig;
|
|
88
|
+
/**
|
|
89
|
+
* Additional CSS classes for the container
|
|
90
|
+
*/
|
|
91
|
+
containerClassName?: string;
|
|
88
92
|
}
|
|
89
93
|
/**
|
|
90
94
|
* TestimonialsScrollingColumns - An animated testimonial section with staggered card
|
|
@@ -111,6 +115,6 @@ interface TestimonialsScrollingColumnsProps {
|
|
|
111
115
|
* />
|
|
112
116
|
* ```
|
|
113
117
|
*/
|
|
114
|
-
declare function TestimonialsScrollingColumns({ testimonials, testimonialsSlot, heading, description, className, headerClassName, headingClassName, descriptionClassName, gridClassName, cardClassName, quoteClassName, authorClassName, background, spacing, pattern, patternOpacity, optixFlowConfig, }: TestimonialsScrollingColumnsProps): React.JSX.Element;
|
|
118
|
+
declare function TestimonialsScrollingColumns({ testimonials, testimonialsSlot, heading, description, className, headerClassName, headingClassName, descriptionClassName, gridClassName, cardClassName, quoteClassName, authorClassName, background, containerClassName, spacing, pattern, patternOpacity, optixFlowConfig, }: TestimonialsScrollingColumnsProps): React.JSX.Element;
|
|
115
119
|
|
|
116
120
|
export { type ScrollingColumnTestimonialItem, TestimonialsScrollingColumns, type TestimonialsScrollingColumnsProps };
|
|
@@ -429,15 +429,19 @@ function TestimonialsScrollingColumns({
|
|
|
429
429
|
quoteClassName,
|
|
430
430
|
authorClassName,
|
|
431
431
|
background,
|
|
432
|
-
|
|
432
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
433
|
+
spacing = "xl",
|
|
433
434
|
pattern,
|
|
434
435
|
patternOpacity,
|
|
435
436
|
optixFlowConfig
|
|
436
437
|
}) {
|
|
437
|
-
const getAuthorName = useCallback(
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
438
|
+
const getAuthorName = useCallback(
|
|
439
|
+
(testimonial) => {
|
|
440
|
+
if (typeof testimonial.author === "string") return testimonial.author;
|
|
441
|
+
return "";
|
|
442
|
+
},
|
|
443
|
+
[]
|
|
444
|
+
);
|
|
441
445
|
const renderedTestimonials = useMemo(() => {
|
|
442
446
|
if (testimonialsSlot) return testimonialsSlot;
|
|
443
447
|
if (!testimonials || testimonials.length === 0) return null;
|
|
@@ -511,7 +515,16 @@ function TestimonialsScrollingColumns({
|
|
|
511
515
|
})
|
|
512
516
|
}
|
|
513
517
|
);
|
|
514
|
-
}, [
|
|
518
|
+
}, [
|
|
519
|
+
testimonialsSlot,
|
|
520
|
+
gridClassName,
|
|
521
|
+
testimonials,
|
|
522
|
+
cardClassName,
|
|
523
|
+
optixFlowConfig,
|
|
524
|
+
quoteClassName,
|
|
525
|
+
authorClassName,
|
|
526
|
+
getAuthorName
|
|
527
|
+
]);
|
|
515
528
|
return /* @__PURE__ */ jsxs(
|
|
516
529
|
Section,
|
|
517
530
|
{
|
|
@@ -520,6 +533,7 @@ function TestimonialsScrollingColumns({
|
|
|
520
533
|
pattern,
|
|
521
534
|
patternOpacity,
|
|
522
535
|
className,
|
|
536
|
+
containerClassName,
|
|
523
537
|
children: [
|
|
524
538
|
/* @__PURE__ */ jsxs(
|
|
525
539
|
"div",
|
|
@@ -536,16 +550,7 @@ function TestimonialsScrollingColumns({
|
|
|
536
550
|
children: heading
|
|
537
551
|
}
|
|
538
552
|
) : /* @__PURE__ */ jsx("div", { className: headingClassName, children: heading })),
|
|
539
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsx(
|
|
540
|
-
"p",
|
|
541
|
-
{
|
|
542
|
-
className: cn(
|
|
543
|
-
"mt-4 text-lg text-muted-foreground",
|
|
544
|
-
descriptionClassName
|
|
545
|
-
),
|
|
546
|
-
children: description
|
|
547
|
-
}
|
|
548
|
-
) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
553
|
+
description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("mt-4 text-lg ", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
549
554
|
]
|
|
550
555
|
}
|
|
551
556
|
),
|