@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.cjs
CHANGED
|
@@ -45193,7 +45193,8 @@ function TestimonialsSimpleGrid({
|
|
|
45193
45193
|
quoteClassName,
|
|
45194
45194
|
authorClassName,
|
|
45195
45195
|
background,
|
|
45196
|
-
|
|
45196
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45197
|
+
spacing = "xl",
|
|
45197
45198
|
pattern,
|
|
45198
45199
|
patternOpacity
|
|
45199
45200
|
}) {
|
|
@@ -45207,49 +45208,70 @@ function TestimonialsSimpleGrid({
|
|
|
45207
45208
|
if (typeof testimonial.author === "string") return testimonial.author;
|
|
45208
45209
|
return "";
|
|
45209
45210
|
}, []);
|
|
45210
|
-
const getAvatarSrc = React8.useCallback(
|
|
45211
|
-
|
|
45212
|
-
|
|
45211
|
+
const getAvatarSrc = React8.useCallback(
|
|
45212
|
+
(testimonial) => {
|
|
45213
|
+
return testimonial.avatarSrc || testimonial.avatar?.src;
|
|
45214
|
+
},
|
|
45215
|
+
[]
|
|
45216
|
+
);
|
|
45213
45217
|
const getInitials = React8.useCallback((name) => {
|
|
45214
45218
|
return name.split(" ").map((n) => n[0]).join("");
|
|
45215
45219
|
}, []);
|
|
45216
45220
|
const renderedTestimonials = React8.useMemo(() => {
|
|
45217
45221
|
if (testimonialsSlot) return testimonialsSlot;
|
|
45218
45222
|
if (!testimonials || testimonials.length === 0) return null;
|
|
45219
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
45220
|
-
|
|
45221
|
-
|
|
45222
|
-
|
|
45223
|
-
|
|
45224
|
-
|
|
45225
|
-
|
|
45226
|
-
|
|
45227
|
-
|
|
45228
|
-
|
|
45229
|
-
|
|
45230
|
-
|
|
45231
|
-
|
|
45232
|
-
|
|
45233
|
-
|
|
45234
|
-
|
|
45235
|
-
|
|
45236
|
-
|
|
45237
|
-
|
|
45238
|
-
|
|
45239
|
-
|
|
45240
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
45241
|
-
|
|
45242
|
-
|
|
45243
|
-
|
|
45244
|
-
|
|
45245
|
-
|
|
45246
|
-
|
|
45223
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
45224
|
+
"div",
|
|
45225
|
+
{
|
|
45226
|
+
className: cn("grid gap-6", gridCols[effectiveColumns], gridClassName),
|
|
45227
|
+
children: testimonials.map((testimonial, index) => {
|
|
45228
|
+
const authorName = getAuthorName(testimonial);
|
|
45229
|
+
const avatarSrc = getAvatarSrc(testimonial);
|
|
45230
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Card, { className: cardClassName, children: /* @__PURE__ */ jsxRuntime.jsxs(CardContent, { className: "p-6", children: [
|
|
45231
|
+
testimonial.quote && (typeof testimonial.quote === "string" ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
45232
|
+
"p",
|
|
45233
|
+
{
|
|
45234
|
+
className: cn(
|
|
45235
|
+
"mb-6 text-sm leading-relaxed ",
|
|
45236
|
+
quoteClassName
|
|
45237
|
+
),
|
|
45238
|
+
children: [
|
|
45239
|
+
"\u201C",
|
|
45240
|
+
testimonial.quote,
|
|
45241
|
+
"\u201D"
|
|
45242
|
+
]
|
|
45243
|
+
}
|
|
45244
|
+
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mb-6", quoteClassName), children: testimonial.quote })),
|
|
45245
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex items-center gap-3", authorClassName), children: [
|
|
45246
|
+
/* @__PURE__ */ jsxRuntime.jsxs(Avatar, { className: "size-10", children: [
|
|
45247
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarImage, { src: avatarSrc, alt: authorName }),
|
|
45248
|
+
/* @__PURE__ */ jsxRuntime.jsx(AvatarFallback, { children: getInitials(authorName) })
|
|
45249
|
+
] }),
|
|
45250
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
45251
|
+
testimonial.author && (typeof testimonial.author === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-medium", children: testimonial.author }) : testimonial.author),
|
|
45252
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs ", children: [
|
|
45253
|
+
testimonial.role && (typeof testimonial.role === "string" ? testimonial.role : null),
|
|
45254
|
+
testimonial.company && (typeof testimonial.company === "string" ? `, ${testimonial.company}` : null)
|
|
45255
|
+
] })
|
|
45256
|
+
] })
|
|
45247
45257
|
] })
|
|
45248
|
-
] })
|
|
45249
|
-
|
|
45250
|
-
|
|
45251
|
-
|
|
45252
|
-
}, [
|
|
45258
|
+
] }) }, index);
|
|
45259
|
+
})
|
|
45260
|
+
}
|
|
45261
|
+
);
|
|
45262
|
+
}, [
|
|
45263
|
+
testimonialsSlot,
|
|
45264
|
+
gridCols,
|
|
45265
|
+
effectiveColumns,
|
|
45266
|
+
gridClassName,
|
|
45267
|
+
testimonials,
|
|
45268
|
+
cardClassName,
|
|
45269
|
+
quoteClassName,
|
|
45270
|
+
authorClassName,
|
|
45271
|
+
getAuthorName,
|
|
45272
|
+
getAvatarSrc,
|
|
45273
|
+
getInitials
|
|
45274
|
+
]);
|
|
45253
45275
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
45254
45276
|
Section,
|
|
45255
45277
|
{
|
|
@@ -45258,6 +45280,7 @@ function TestimonialsSimpleGrid({
|
|
|
45258
45280
|
pattern,
|
|
45259
45281
|
patternOpacity,
|
|
45260
45282
|
className,
|
|
45283
|
+
containerClassName,
|
|
45261
45284
|
children: [
|
|
45262
45285
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
45263
45286
|
"div",
|
|
@@ -45274,16 +45297,7 @@ function TestimonialsSimpleGrid({
|
|
|
45274
45297
|
children: heading
|
|
45275
45298
|
}
|
|
45276
45299
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
|
|
45277
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
45278
|
-
"p",
|
|
45279
|
-
{
|
|
45280
|
-
className: cn(
|
|
45281
|
-
"mt-4 text-lg text-muted-foreground",
|
|
45282
|
-
descriptionClassName
|
|
45283
|
-
),
|
|
45284
|
-
children: description
|
|
45285
|
-
}
|
|
45286
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
45300
|
+
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 }))
|
|
45287
45301
|
]
|
|
45288
45302
|
}
|
|
45289
45303
|
),
|
|
@@ -45303,7 +45317,8 @@ function TestimonialsSliderMinimal({
|
|
|
45303
45317
|
avatarClassName,
|
|
45304
45318
|
dotsClassName,
|
|
45305
45319
|
background,
|
|
45306
|
-
|
|
45320
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45321
|
+
spacing = "xl",
|
|
45307
45322
|
pattern,
|
|
45308
45323
|
patternOpacity
|
|
45309
45324
|
}) {
|
|
@@ -45335,9 +45350,12 @@ function TestimonialsSliderMinimal({
|
|
|
45335
45350
|
if (typeof testimonial.author === "string") return testimonial.author;
|
|
45336
45351
|
return "";
|
|
45337
45352
|
}, []);
|
|
45338
|
-
const getAvatarSrc = React8.useCallback(
|
|
45339
|
-
|
|
45340
|
-
|
|
45353
|
+
const getAvatarSrc = React8.useCallback(
|
|
45354
|
+
(testimonial) => {
|
|
45355
|
+
return testimonial.avatarSrc || testimonial.avatar?.src;
|
|
45356
|
+
},
|
|
45357
|
+
[]
|
|
45358
|
+
);
|
|
45341
45359
|
const getInitials = React8.useCallback((name) => {
|
|
45342
45360
|
return name.split(" ").map((n) => n[0]).join("");
|
|
45343
45361
|
}, []);
|
|
@@ -45382,7 +45400,7 @@ function TestimonialsSliderMinimal({
|
|
|
45382
45400
|
] }),
|
|
45383
45401
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
45384
45402
|
current.author && (typeof current.author === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold", children: current.author }) : current.author),
|
|
45385
|
-
current.role && (typeof current.role === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm
|
|
45403
|
+
current.role && (typeof current.role === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm ", children: current.role }) : current.role)
|
|
45386
45404
|
] })
|
|
45387
45405
|
]
|
|
45388
45406
|
}
|
|
@@ -45390,7 +45408,17 @@ function TestimonialsSliderMinimal({
|
|
|
45390
45408
|
]
|
|
45391
45409
|
}
|
|
45392
45410
|
);
|
|
45393
|
-
}, [
|
|
45411
|
+
}, [
|
|
45412
|
+
testimonialsSlot,
|
|
45413
|
+
isTransitioning,
|
|
45414
|
+
current,
|
|
45415
|
+
quoteClassName,
|
|
45416
|
+
authorClassName,
|
|
45417
|
+
avatarClassName,
|
|
45418
|
+
getAuthorName,
|
|
45419
|
+
getAvatarSrc,
|
|
45420
|
+
getInitials
|
|
45421
|
+
]);
|
|
45394
45422
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
45395
45423
|
Section,
|
|
45396
45424
|
{
|
|
@@ -45399,6 +45427,7 @@ function TestimonialsSliderMinimal({
|
|
|
45399
45427
|
pattern,
|
|
45400
45428
|
patternOpacity,
|
|
45401
45429
|
className,
|
|
45430
|
+
containerClassName,
|
|
45402
45431
|
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("mx-auto max-w-3xl text-center", contentClassName), children: [
|
|
45403
45432
|
renderedTestimonial,
|
|
45404
45433
|
testimonials && testimonials.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-8 flex justify-center gap-2", dotsClassName), children: testimonials.map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -45407,7 +45436,7 @@ function TestimonialsSliderMinimal({
|
|
|
45407
45436
|
onClick: () => goToSlide(index),
|
|
45408
45437
|
className: cn(
|
|
45409
45438
|
"size-2 rounded-full transition-all",
|
|
45410
|
-
index === currentIndex ? "w-6 bg-primary
|
|
45439
|
+
index === currentIndex ? "w-6 bg-primary text-primary-foreground" : ""
|
|
45411
45440
|
),
|
|
45412
45441
|
"aria-label": `Go to testimonial ${index + 1}`
|
|
45413
45442
|
},
|
|
@@ -45431,7 +45460,8 @@ function TestimonialsSplitImage({
|
|
|
45431
45460
|
quoteClassName,
|
|
45432
45461
|
authorClassName,
|
|
45433
45462
|
background,
|
|
45434
|
-
|
|
45463
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45464
|
+
spacing = "xl",
|
|
45435
45465
|
pattern,
|
|
45436
45466
|
patternOpacity,
|
|
45437
45467
|
optixFlowConfig
|
|
@@ -45486,7 +45516,7 @@ function TestimonialsSplitImage({
|
|
|
45486
45516
|
] }),
|
|
45487
45517
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
45488
45518
|
testimonial.author && (typeof testimonial.author === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "font-semibold", children: testimonial.author }) : testimonial.author),
|
|
45489
|
-
(testimonial.role || testimonial.company) && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm
|
|
45519
|
+
(testimonial.role || testimonial.company) && /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-sm ", children: [
|
|
45490
45520
|
testimonial.role && (typeof testimonial.role === "string" ? testimonial.role : testimonial.role),
|
|
45491
45521
|
testimonial.company && (typeof testimonial.company === "string" ? ` at ${testimonial.company}` : testimonial.company)
|
|
45492
45522
|
] })
|
|
@@ -45495,7 +45525,18 @@ function TestimonialsSplitImage({
|
|
|
45495
45525
|
]
|
|
45496
45526
|
}
|
|
45497
45527
|
);
|
|
45498
|
-
}, [
|
|
45528
|
+
}, [
|
|
45529
|
+
testimonialSlot,
|
|
45530
|
+
effectiveImagePosition,
|
|
45531
|
+
contentClassName,
|
|
45532
|
+
quoteIconClassName,
|
|
45533
|
+
testimonial,
|
|
45534
|
+
quoteClassName,
|
|
45535
|
+
authorClassName,
|
|
45536
|
+
getAuthorName,
|
|
45537
|
+
getAvatarSrc,
|
|
45538
|
+
getInitials
|
|
45539
|
+
]);
|
|
45499
45540
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
45500
45541
|
Section,
|
|
45501
45542
|
{
|
|
@@ -45504,6 +45545,7 @@ function TestimonialsSplitImage({
|
|
|
45504
45545
|
pattern,
|
|
45505
45546
|
patternOpacity,
|
|
45506
45547
|
className,
|
|
45548
|
+
containerClassName,
|
|
45507
45549
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
45508
45550
|
"div",
|
|
45509
45551
|
{
|
|
@@ -45553,7 +45595,8 @@ function TestimonialsStatsHeader({
|
|
|
45553
45595
|
quoteClassName,
|
|
45554
45596
|
authorClassName,
|
|
45555
45597
|
background,
|
|
45556
|
-
|
|
45598
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45599
|
+
spacing = "xl",
|
|
45557
45600
|
pattern,
|
|
45558
45601
|
patternOpacity
|
|
45559
45602
|
}) {
|
|
@@ -45561,9 +45604,12 @@ function TestimonialsStatsHeader({
|
|
|
45561
45604
|
if (typeof testimonial.author === "string") return testimonial.author;
|
|
45562
45605
|
return "";
|
|
45563
45606
|
}, []);
|
|
45564
|
-
const getAvatarSrc = React8.useCallback(
|
|
45565
|
-
|
|
45566
|
-
|
|
45607
|
+
const getAvatarSrc = React8.useCallback(
|
|
45608
|
+
(testimonial) => {
|
|
45609
|
+
return testimonial.avatarSrc || testimonial.avatar?.src;
|
|
45610
|
+
},
|
|
45611
|
+
[]
|
|
45612
|
+
);
|
|
45567
45613
|
const getInitials = React8.useCallback((name) => {
|
|
45568
45614
|
return name.split(" ").map((n) => n[0]).join("");
|
|
45569
45615
|
}, []);
|
|
@@ -45644,7 +45690,17 @@ function TestimonialsStatsHeader({
|
|
|
45644
45690
|
})
|
|
45645
45691
|
}
|
|
45646
45692
|
);
|
|
45647
|
-
}, [
|
|
45693
|
+
}, [
|
|
45694
|
+
testimonialsSlot,
|
|
45695
|
+
testimonialsGridClassName,
|
|
45696
|
+
testimonials,
|
|
45697
|
+
cardClassName,
|
|
45698
|
+
quoteClassName,
|
|
45699
|
+
authorClassName,
|
|
45700
|
+
getAuthorName,
|
|
45701
|
+
getAvatarSrc,
|
|
45702
|
+
getInitials
|
|
45703
|
+
]);
|
|
45648
45704
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
45649
45705
|
Section,
|
|
45650
45706
|
{
|
|
@@ -45653,6 +45709,7 @@ function TestimonialsStatsHeader({
|
|
|
45653
45709
|
pattern,
|
|
45654
45710
|
patternOpacity,
|
|
45655
45711
|
className,
|
|
45712
|
+
containerClassName,
|
|
45656
45713
|
children: [
|
|
45657
45714
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
45658
45715
|
"div",
|
|
@@ -45702,17 +45759,24 @@ function TestimonialsWallCompact({
|
|
|
45702
45759
|
authorClassName,
|
|
45703
45760
|
quoteClassName,
|
|
45704
45761
|
background,
|
|
45705
|
-
|
|
45762
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
45763
|
+
spacing = "xl",
|
|
45706
45764
|
pattern,
|
|
45707
45765
|
patternOpacity
|
|
45708
45766
|
}) {
|
|
45709
|
-
const getAuthorName = React8.useCallback(
|
|
45710
|
-
|
|
45711
|
-
|
|
45712
|
-
|
|
45713
|
-
|
|
45714
|
-
|
|
45715
|
-
|
|
45767
|
+
const getAuthorName = React8.useCallback(
|
|
45768
|
+
(testimonial) => {
|
|
45769
|
+
if (typeof testimonial.author === "string") return testimonial.author;
|
|
45770
|
+
return "";
|
|
45771
|
+
},
|
|
45772
|
+
[]
|
|
45773
|
+
);
|
|
45774
|
+
const getAvatarSrc = React8.useCallback(
|
|
45775
|
+
(testimonial) => {
|
|
45776
|
+
return testimonial.avatarSrc || testimonial.avatar?.src;
|
|
45777
|
+
},
|
|
45778
|
+
[]
|
|
45779
|
+
);
|
|
45716
45780
|
const getInitials = React8.useCallback((name) => {
|
|
45717
45781
|
return name.split(" ").map((n) => n[0]).join("");
|
|
45718
45782
|
}, []);
|
|
@@ -45754,7 +45818,7 @@ function TestimonialsWallCompact({
|
|
|
45754
45818
|
] }),
|
|
45755
45819
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
45756
45820
|
testimonial.author && (typeof testimonial.author === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-sm font-medium", children: testimonial.author }) : testimonial.author),
|
|
45757
|
-
testimonial.handle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs
|
|
45821
|
+
testimonial.handle && /* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs ", children: testimonial.handle })
|
|
45758
45822
|
] })
|
|
45759
45823
|
] }),
|
|
45760
45824
|
testimonial.badge && (typeof testimonial.badge === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Badge, { variant: "secondary", className: "shrink-0 text-xs", children: testimonial.badge }) : testimonial.badge)
|
|
@@ -45769,7 +45833,17 @@ function TestimonialsWallCompact({
|
|
|
45769
45833
|
})
|
|
45770
45834
|
}
|
|
45771
45835
|
);
|
|
45772
|
-
}, [
|
|
45836
|
+
}, [
|
|
45837
|
+
testimonialsSlot,
|
|
45838
|
+
gridClassName,
|
|
45839
|
+
testimonials,
|
|
45840
|
+
cardClassName,
|
|
45841
|
+
authorClassName,
|
|
45842
|
+
quoteClassName,
|
|
45843
|
+
getAuthorName,
|
|
45844
|
+
getAvatarSrc,
|
|
45845
|
+
getInitials
|
|
45846
|
+
]);
|
|
45773
45847
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
45774
45848
|
Section,
|
|
45775
45849
|
{
|
|
@@ -45778,6 +45852,7 @@ function TestimonialsWallCompact({
|
|
|
45778
45852
|
pattern,
|
|
45779
45853
|
patternOpacity,
|
|
45780
45854
|
className,
|
|
45855
|
+
containerClassName,
|
|
45781
45856
|
children: [
|
|
45782
45857
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
45783
45858
|
"div",
|
|
@@ -45794,16 +45869,7 @@ function TestimonialsWallCompact({
|
|
|
45794
45869
|
children: heading
|
|
45795
45870
|
}
|
|
45796
45871
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
|
|
45797
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
45798
|
-
"p",
|
|
45799
|
-
{
|
|
45800
|
-
className: cn(
|
|
45801
|
-
"mt-4 text-lg text-muted-foreground",
|
|
45802
|
-
descriptionClassName
|
|
45803
|
-
),
|
|
45804
|
-
children: description
|
|
45805
|
-
}
|
|
45806
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
45872
|
+
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 }))
|
|
45807
45873
|
]
|
|
45808
45874
|
}
|
|
45809
45875
|
),
|
|
@@ -46529,15 +46595,19 @@ function TestimonialsScrollingColumns({
|
|
|
46529
46595
|
quoteClassName,
|
|
46530
46596
|
authorClassName,
|
|
46531
46597
|
background,
|
|
46532
|
-
|
|
46598
|
+
containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
|
|
46599
|
+
spacing = "xl",
|
|
46533
46600
|
pattern,
|
|
46534
46601
|
patternOpacity,
|
|
46535
46602
|
optixFlowConfig
|
|
46536
46603
|
}) {
|
|
46537
|
-
const getAuthorName = React8.useCallback(
|
|
46538
|
-
|
|
46539
|
-
|
|
46540
|
-
|
|
46604
|
+
const getAuthorName = React8.useCallback(
|
|
46605
|
+
(testimonial) => {
|
|
46606
|
+
if (typeof testimonial.author === "string") return testimonial.author;
|
|
46607
|
+
return "";
|
|
46608
|
+
},
|
|
46609
|
+
[]
|
|
46610
|
+
);
|
|
46541
46611
|
const renderedTestimonials = React8.useMemo(() => {
|
|
46542
46612
|
if (testimonialsSlot) return testimonialsSlot;
|
|
46543
46613
|
if (!testimonials || testimonials.length === 0) return null;
|
|
@@ -46611,7 +46681,16 @@ function TestimonialsScrollingColumns({
|
|
|
46611
46681
|
})
|
|
46612
46682
|
}
|
|
46613
46683
|
);
|
|
46614
|
-
}, [
|
|
46684
|
+
}, [
|
|
46685
|
+
testimonialsSlot,
|
|
46686
|
+
gridClassName,
|
|
46687
|
+
testimonials,
|
|
46688
|
+
cardClassName,
|
|
46689
|
+
optixFlowConfig,
|
|
46690
|
+
quoteClassName,
|
|
46691
|
+
authorClassName,
|
|
46692
|
+
getAuthorName
|
|
46693
|
+
]);
|
|
46615
46694
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
46616
46695
|
Section,
|
|
46617
46696
|
{
|
|
@@ -46620,6 +46699,7 @@ function TestimonialsScrollingColumns({
|
|
|
46620
46699
|
pattern,
|
|
46621
46700
|
patternOpacity,
|
|
46622
46701
|
className,
|
|
46702
|
+
containerClassName,
|
|
46623
46703
|
children: [
|
|
46624
46704
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
46625
46705
|
"div",
|
|
@@ -46636,16 +46716,7 @@ function TestimonialsScrollingColumns({
|
|
|
46636
46716
|
children: heading
|
|
46637
46717
|
}
|
|
46638
46718
|
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: headingClassName, children: heading })),
|
|
46639
|
-
description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
46640
|
-
"p",
|
|
46641
|
-
{
|
|
46642
|
-
className: cn(
|
|
46643
|
-
"mt-4 text-lg text-muted-foreground",
|
|
46644
|
-
descriptionClassName
|
|
46645
|
-
),
|
|
46646
|
-
children: description
|
|
46647
|
-
}
|
|
46648
|
-
) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("mt-4", descriptionClassName), children: description }))
|
|
46719
|
+
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 }))
|
|
46649
46720
|
]
|
|
46650
46721
|
}
|
|
46651
46722
|
),
|