@opensite/ui 2.9.0 → 2.9.2

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.
Files changed (51) hide show
  1. package/dist/carousel-feature-badge.cjs +4 -3
  2. package/dist/carousel-feature-badge.d.cts +1 -1
  3. package/dist/carousel-feature-badge.d.ts +1 -1
  4. package/dist/carousel-feature-badge.js +4 -3
  5. package/dist/carousel-scrolling-feature-showcase.cjs +47 -38
  6. package/dist/carousel-scrolling-feature-showcase.js +47 -38
  7. package/dist/registry.cjs +454 -265
  8. package/dist/registry.js +454 -265
  9. package/dist/testimonials-grid-add-review.cjs +578 -39
  10. package/dist/testimonials-grid-add-review.d.cts +26 -26
  11. package/dist/testimonials-grid-add-review.d.ts +26 -26
  12. package/dist/testimonials-grid-add-review.js +577 -38
  13. package/dist/testimonials-images-helpful.cjs +85 -74
  14. package/dist/testimonials-images-helpful.js +85 -74
  15. package/dist/testimonials-list-verified.cjs +1 -0
  16. package/dist/testimonials-list-verified.js +1 -0
  17. package/dist/testimonials-logo-cards.cjs +8 -5
  18. package/dist/testimonials-logo-cards.js +8 -5
  19. package/dist/testimonials-masonry-grid.cjs +87 -11
  20. package/dist/testimonials-masonry-grid.d.cts +14 -1
  21. package/dist/testimonials-masonry-grid.d.ts +14 -1
  22. package/dist/testimonials-masonry-grid.js +88 -12
  23. package/dist/testimonials-mini-dividers.cjs +438 -26
  24. package/dist/testimonials-mini-dividers.js +434 -22
  25. package/dist/testimonials-minimal-numbered.cjs +1 -1
  26. package/dist/testimonials-minimal-numbered.js +1 -1
  27. package/dist/testimonials-parallax-number.cjs +1 -1
  28. package/dist/testimonials-parallax-number.js +1 -1
  29. package/dist/testimonials-quote-carousel.cjs +39 -37
  30. package/dist/testimonials-quote-carousel.d.cts +5 -1
  31. package/dist/testimonials-quote-carousel.d.ts +5 -1
  32. package/dist/testimonials-quote-carousel.js +39 -37
  33. package/dist/testimonials-scrolling-columns.cjs +438 -8
  34. package/dist/testimonials-scrolling-columns.js +436 -6
  35. package/dist/testimonials-simple-grid.cjs +82 -6
  36. package/dist/testimonials-simple-grid.d.cts +14 -1
  37. package/dist/testimonials-simple-grid.d.ts +14 -1
  38. package/dist/testimonials-simple-grid.js +83 -7
  39. package/dist/testimonials-stats-header.cjs +88 -8
  40. package/dist/testimonials-stats-header.d.cts +14 -1
  41. package/dist/testimonials-stats-header.d.ts +14 -1
  42. package/dist/testimonials-stats-header.js +89 -9
  43. package/dist/testimonials-twitter-cards.cjs +150 -25
  44. package/dist/testimonials-twitter-cards.d.cts +14 -1
  45. package/dist/testimonials-twitter-cards.d.ts +14 -1
  46. package/dist/testimonials-twitter-cards.js +151 -26
  47. package/dist/testimonials-wall-compact.cjs +529 -50
  48. package/dist/testimonials-wall-compact.d.cts +14 -1
  49. package/dist/testimonials-wall-compact.d.ts +14 -1
  50. package/dist/testimonials-wall-compact.js +526 -44
  51. package/package.json +1 -1
@@ -1,13 +1,14 @@
1
1
  "use client";
2
2
  'use strict';
3
3
 
4
- var React = require('react');
4
+ var React4 = require('react');
5
5
  var framerMotion = require('framer-motion');
6
6
  var clsx = require('clsx');
7
7
  var tailwindMerge = require('tailwind-merge');
8
8
  var icon = require('@page-speed/icon');
9
9
  var jsxRuntime = require('react/jsx-runtime');
10
10
  var img = require('@page-speed/img');
11
+ var classVarianceAuthority = require('class-variance-authority');
11
12
 
12
13
  function _interopNamespace(e) {
13
14
  if (e && e.__esModule) return e;
@@ -27,14 +28,14 @@ function _interopNamespace(e) {
27
28
  return Object.freeze(n);
28
29
  }
29
30
 
30
- var React__namespace = /*#__PURE__*/_interopNamespace(React);
31
+ var React4__namespace = /*#__PURE__*/_interopNamespace(React4);
31
32
 
32
33
  // components/blocks/testimonials/testimonials-scrolling-columns.tsx
33
34
  function cn(...inputs) {
34
35
  return tailwindMerge.twMerge(clsx.clsx(inputs));
35
36
  }
36
37
  var DEFAULT_ICON_API_KEY = "au382bi7fsh96w9h9xlrnat2jglx";
37
- var DynamicIcon = React__namespace.memo(function DynamicIcon2({
38
+ var DynamicIcon = React4__namespace.memo(function DynamicIcon2({
38
39
  apiKey,
39
40
  ...props
40
41
  }) {
@@ -111,7 +112,7 @@ var maxWidthStyles = {
111
112
  "4xl": "max-w-[1536px]",
112
113
  full: "max-w-full"
113
114
  };
114
- var Container = React__namespace.default.forwardRef(
115
+ var Container = React4__namespace.default.forwardRef(
115
116
  ({ children, maxWidth = "xl", className, as = "div", ...props }, ref) => {
116
117
  const Component = as;
117
118
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -417,7 +418,7 @@ var spacingStyles = {
417
418
  };
418
419
  var predefinedSpacings = ["none", "sm", "md", "lg", "xl", "hero"];
419
420
  var isPredefinedSpacing = (spacing) => predefinedSpacings.includes(spacing);
420
- var Section = React__namespace.default.forwardRef(
421
+ var Section = React4__namespace.default.forwardRef(
421
422
  ({
422
423
  id,
423
424
  title,
@@ -478,6 +479,424 @@ var Section = React__namespace.default.forwardRef(
478
479
  }
479
480
  );
480
481
  Section.displayName = "Section";
482
+ var baseStyles = [
483
+ // Layout
484
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap shrink-0",
485
+ // Typography - using CSS variables with sensible defaults
486
+ "font-[var(--button-font-family,inherit)]",
487
+ "font-[var(--button-font-weight,500)]",
488
+ "tracking-[var(--button-letter-spacing,0)]",
489
+ "leading-[var(--button-line-height,1.25)]",
490
+ "[text-transform:var(--button-text-transform,none)]",
491
+ "text-sm",
492
+ // Border radius
493
+ "rounded-[var(--button-radius,var(--radius,0.375rem))]",
494
+ // Smooth transition - using [transition:...] to set full shorthand property (not just transition-property)
495
+ "[transition:var(--button-transition,all_250ms_cubic-bezier(0.4,0,0.2,1))]",
496
+ // Box shadow (master level) - using [box-shadow:...] for complex multi-value shadows
497
+ "[box-shadow:var(--button-shadow,none)]",
498
+ "hover:[box-shadow:var(--button-shadow-hover,var(--button-shadow,none))]",
499
+ // Disabled state
500
+ "disabled:pointer-events-none disabled:opacity-50",
501
+ // SVG handling
502
+ "[&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0",
503
+ // Focus styles
504
+ "outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
505
+ // Invalid state
506
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive"
507
+ ].join(" ");
508
+ var buttonVariants = classVarianceAuthority.cva(baseStyles, {
509
+ variants: {
510
+ variant: {
511
+ // Default (Primary) variant - full customization
512
+ default: [
513
+ "bg-[var(--button-default-bg,hsl(var(--primary)))]",
514
+ "text-[var(--button-default-fg,hsl(var(--primary-foreground)))]",
515
+ "border-[length:var(--button-default-border-width,0px)]",
516
+ "border-[color:var(--button-default-border,transparent)]",
517
+ "[box-shadow:var(--button-default-shadow,var(--button-shadow,none))]",
518
+ "hover:bg-[var(--button-default-hover-bg,hsl(var(--primary)/0.9))]",
519
+ "hover:text-[var(--button-default-hover-fg,var(--button-default-fg,hsl(var(--primary-foreground))))]",
520
+ "hover:border-[color:var(--button-default-hover-border,var(--button-default-border,transparent))]",
521
+ "hover:[box-shadow:var(--button-default-shadow-hover,var(--button-shadow-hover,var(--button-default-shadow,var(--button-shadow,none))))]"
522
+ ].join(" "),
523
+ // Destructive variant - full customization
524
+ destructive: [
525
+ "bg-[var(--button-destructive-bg,hsl(var(--destructive)))]",
526
+ "text-[var(--button-destructive-fg,white)]",
527
+ "border-[length:var(--button-destructive-border-width,0px)]",
528
+ "border-[color:var(--button-destructive-border,transparent)]",
529
+ "[box-shadow:var(--button-destructive-shadow,var(--button-shadow,none))]",
530
+ "hover:bg-[var(--button-destructive-hover-bg,hsl(var(--destructive)/0.9))]",
531
+ "hover:text-[var(--button-destructive-hover-fg,var(--button-destructive-fg,white))]",
532
+ "hover:border-[color:var(--button-destructive-hover-border,var(--button-destructive-border,transparent))]",
533
+ "hover:[box-shadow:var(--button-destructive-shadow-hover,var(--button-shadow-hover,var(--button-destructive-shadow,var(--button-shadow,none))))]",
534
+ "focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40",
535
+ "dark:bg-destructive/60"
536
+ ].join(" "),
537
+ // Outline variant - full customization with proper border handling
538
+ outline: [
539
+ "bg-[var(--button-outline-bg,hsl(var(--background)))]",
540
+ "text-[var(--button-outline-fg,inherit)]",
541
+ "border-[length:var(--button-outline-border-width,1px)]",
542
+ "border-[color:var(--button-outline-border,hsl(var(--border)))]",
543
+ "[box-shadow:var(--button-outline-shadow,var(--button-shadow,0_1px_2px_0_rgb(0_0_0/0.05)))]",
544
+ "hover:bg-[var(--button-outline-hover-bg,hsl(var(--accent)))]",
545
+ "hover:text-[var(--button-outline-hover-fg,hsl(var(--accent-foreground)))]",
546
+ "hover:border-[color:var(--button-outline-hover-border,var(--button-outline-border,hsl(var(--border))))]",
547
+ "hover:[box-shadow:var(--button-outline-shadow-hover,var(--button-shadow-hover,var(--button-outline-shadow,var(--button-shadow,none))))]",
548
+ "dark:bg-input/30 dark:border-input dark:hover:bg-input/50"
549
+ ].join(" "),
550
+ // Secondary variant - full customization
551
+ secondary: [
552
+ "bg-[var(--button-secondary-bg,hsl(var(--secondary)))]",
553
+ "text-[var(--button-secondary-fg,hsl(var(--secondary-foreground)))]",
554
+ "border-[length:var(--button-secondary-border-width,0px)]",
555
+ "border-[color:var(--button-secondary-border,transparent)]",
556
+ "[box-shadow:var(--button-secondary-shadow,var(--button-shadow,none))]",
557
+ "hover:bg-[var(--button-secondary-hover-bg,hsl(var(--secondary)/0.8))]",
558
+ "hover:text-[var(--button-secondary-hover-fg,var(--button-secondary-fg,hsl(var(--secondary-foreground))))]",
559
+ "hover:border-[color:var(--button-secondary-hover-border,var(--button-secondary-border,transparent))]",
560
+ "hover:[box-shadow:var(--button-secondary-shadow-hover,var(--button-shadow-hover,var(--button-secondary-shadow,var(--button-shadow,none))))]"
561
+ ].join(" "),
562
+ // Ghost variant - full customization
563
+ ghost: [
564
+ "bg-[var(--button-ghost-bg,transparent)]",
565
+ "text-[var(--button-ghost-fg,inherit)]",
566
+ "border-[length:var(--button-ghost-border-width,0px)]",
567
+ "border-[color:var(--button-ghost-border,transparent)]",
568
+ "[box-shadow:var(--button-ghost-shadow,var(--button-shadow,none))]",
569
+ "hover:bg-[var(--button-ghost-hover-bg,hsl(var(--accent)))]",
570
+ "hover:text-[var(--button-ghost-hover-fg,hsl(var(--accent-foreground)))]",
571
+ "hover:border-[color:var(--button-ghost-hover-border,var(--button-ghost-border,transparent))]",
572
+ "hover:[box-shadow:var(--button-ghost-shadow-hover,var(--button-shadow-hover,var(--button-ghost-shadow,var(--button-shadow,none))))]",
573
+ "dark:hover:bg-accent/50"
574
+ ].join(" "),
575
+ // Link variant - full customization
576
+ link: [
577
+ "bg-[var(--button-link-bg,transparent)]",
578
+ "text-[var(--button-link-fg,hsl(var(--primary)))]",
579
+ "border-[length:var(--button-link-border-width,0px)]",
580
+ "border-[color:var(--button-link-border,transparent)]",
581
+ "[box-shadow:var(--button-link-shadow,none)]",
582
+ "hover:bg-[var(--button-link-hover-bg,transparent)]",
583
+ "hover:text-[var(--button-link-hover-fg,var(--button-link-fg,hsl(var(--primary))))]",
584
+ "hover:[box-shadow:var(--button-link-shadow-hover,none)]",
585
+ "underline-offset-4 hover:underline"
586
+ ].join(" ")
587
+ },
588
+ size: {
589
+ default: [
590
+ "h-[var(--button-height-md,2.25rem)]",
591
+ "px-[var(--button-padding-x-md,1rem)]",
592
+ "py-[var(--button-padding-y-md,0.5rem)]",
593
+ "has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
594
+ ].join(" "),
595
+ sm: [
596
+ "h-[var(--button-height-sm,2rem)]",
597
+ "px-[var(--button-padding-x-sm,0.75rem)]",
598
+ "py-[var(--button-padding-y-sm,0.25rem)]",
599
+ "gap-1.5",
600
+ "has-[>svg]:px-[calc(var(--button-padding-x-sm,0.75rem)*0.83)]"
601
+ ].join(" "),
602
+ md: [
603
+ "h-[var(--button-height-md,2.25rem)]",
604
+ "px-[var(--button-padding-x-md,1rem)]",
605
+ "py-[var(--button-padding-y-md,0.5rem)]",
606
+ "has-[>svg]:px-[calc(var(--button-padding-x-md,1rem)*0.75)]"
607
+ ].join(" "),
608
+ lg: [
609
+ "h-[var(--button-height-lg,2.5rem)]",
610
+ "px-[var(--button-padding-x-lg,1.5rem)]",
611
+ "py-[var(--button-padding-y-lg,0.5rem)]",
612
+ "has-[>svg]:px-[calc(var(--button-padding-x-lg,1.5rem)*0.67)]"
613
+ ].join(" "),
614
+ icon: "size-[var(--button-height-md,2.25rem)]",
615
+ "icon-sm": "size-[var(--button-height-sm,2rem)]",
616
+ "icon-lg": "size-[var(--button-height-lg,2.5rem)]"
617
+ }
618
+ },
619
+ defaultVariants: {
620
+ variant: "default",
621
+ size: "default"
622
+ }
623
+ });
624
+ function normalizePhoneNumber(input) {
625
+ const trimmed = input.trim();
626
+ if (trimmed.toLowerCase().startsWith("tel:")) {
627
+ return trimmed;
628
+ }
629
+ const match = trimmed.match(/^[\s\+\-\(\)]*(\d[\d\s\-\(\)\.]*\d)[\s\-]*(x|ext\.?|extension)?[\s\-]*(\d+)?$/i);
630
+ if (match) {
631
+ const mainNumber = match[1].replace(/[\s\-\(\)\.]/g, "");
632
+ const extension = match[3];
633
+ const normalized = mainNumber.length >= 10 && !trimmed.startsWith("+") ? `+${mainNumber}` : mainNumber;
634
+ const withExtension = extension ? `${normalized};ext=${extension}` : normalized;
635
+ return `tel:${withExtension}`;
636
+ }
637
+ const cleaned = trimmed.replace(/[\s\-\(\)\.]/g, "");
638
+ return `tel:${cleaned}`;
639
+ }
640
+ function normalizeEmail(input) {
641
+ const trimmed = input.trim();
642
+ if (trimmed.toLowerCase().startsWith("mailto:")) {
643
+ return trimmed;
644
+ }
645
+ return `mailto:${trimmed}`;
646
+ }
647
+ function isEmail(input) {
648
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
649
+ return emailRegex.test(input.trim());
650
+ }
651
+ function isPhoneNumber(input) {
652
+ const trimmed = input.trim();
653
+ if (trimmed.toLowerCase().startsWith("tel:")) {
654
+ return true;
655
+ }
656
+ const phoneRegex = /^[\s\+\-\(\)]*\d[\d\s\-\(\)\.]*\d[\s\-]*(x|ext\.?|extension)?[\s\-]*\d*$/i;
657
+ return phoneRegex.test(trimmed);
658
+ }
659
+ function isInternalUrl(href) {
660
+ if (typeof window === "undefined") {
661
+ return href.startsWith("/") && !href.startsWith("//");
662
+ }
663
+ const trimmed = href.trim();
664
+ if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
665
+ return true;
666
+ }
667
+ try {
668
+ const url = new URL(trimmed, window.location.href);
669
+ const currentOrigin = window.location.origin;
670
+ const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
671
+ return normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin);
672
+ } catch {
673
+ return false;
674
+ }
675
+ }
676
+ function toRelativePath(href) {
677
+ if (typeof window === "undefined") {
678
+ return href;
679
+ }
680
+ const trimmed = href.trim();
681
+ if (trimmed.startsWith("/") && !trimmed.startsWith("//")) {
682
+ return trimmed;
683
+ }
684
+ try {
685
+ const url = new URL(trimmed, window.location.href);
686
+ const currentOrigin = window.location.origin;
687
+ const normalizeOrigin = (origin) => origin.replace(/^(https?:\/\/)(www\.)?/, "$1");
688
+ if (normalizeOrigin(url.origin) === normalizeOrigin(currentOrigin)) {
689
+ return url.pathname + url.search + url.hash;
690
+ }
691
+ } catch {
692
+ }
693
+ return trimmed;
694
+ }
695
+ function useNavigation({
696
+ href,
697
+ onClick
698
+ } = {}) {
699
+ const linkType = React4__namespace.useMemo(() => {
700
+ if (!href || href.trim() === "") {
701
+ return onClick ? "none" : "none";
702
+ }
703
+ const trimmed = href.trim();
704
+ if (trimmed.toLowerCase().startsWith("mailto:") || isEmail(trimmed)) {
705
+ return "mailto";
706
+ }
707
+ if (trimmed.toLowerCase().startsWith("tel:") || isPhoneNumber(trimmed)) {
708
+ return "tel";
709
+ }
710
+ if (isInternalUrl(trimmed)) {
711
+ return "internal";
712
+ }
713
+ try {
714
+ new URL(trimmed, typeof window !== "undefined" ? window.location.href : "http://localhost");
715
+ return "external";
716
+ } catch {
717
+ return "internal";
718
+ }
719
+ }, [href, onClick]);
720
+ const normalizedHref = React4__namespace.useMemo(() => {
721
+ if (!href || href.trim() === "") {
722
+ return void 0;
723
+ }
724
+ const trimmed = href.trim();
725
+ switch (linkType) {
726
+ case "tel":
727
+ return normalizePhoneNumber(trimmed);
728
+ case "mailto":
729
+ return normalizeEmail(trimmed);
730
+ case "internal":
731
+ return toRelativePath(trimmed);
732
+ case "external":
733
+ return trimmed;
734
+ default:
735
+ return trimmed;
736
+ }
737
+ }, [href, linkType]);
738
+ const target = React4__namespace.useMemo(() => {
739
+ switch (linkType) {
740
+ case "external":
741
+ return "_blank";
742
+ case "internal":
743
+ return "_self";
744
+ case "mailto":
745
+ case "tel":
746
+ return void 0;
747
+ default:
748
+ return void 0;
749
+ }
750
+ }, [linkType]);
751
+ const rel = React4__namespace.useMemo(() => {
752
+ if (linkType === "external") {
753
+ return "noopener noreferrer";
754
+ }
755
+ return void 0;
756
+ }, [linkType]);
757
+ const isExternal = linkType === "external";
758
+ const isInternal = linkType === "internal";
759
+ const shouldUseRouter = isInternal && typeof normalizedHref === "string" && normalizedHref.startsWith("/");
760
+ const handleClick = React4__namespace.useCallback(
761
+ (event) => {
762
+ if (onClick) {
763
+ try {
764
+ onClick(event);
765
+ } catch (error) {
766
+ console.error("Error in user onClick handler:", error);
767
+ }
768
+ }
769
+ if (event.defaultPrevented) {
770
+ return;
771
+ }
772
+ if (shouldUseRouter && normalizedHref && event.button === 0 && // left-click only
773
+ !event.metaKey && !event.altKey && !event.ctrlKey && !event.shiftKey) {
774
+ if (typeof window !== "undefined") {
775
+ const handler = window.__opensiteNavigationHandler;
776
+ if (typeof handler === "function") {
777
+ try {
778
+ const handled = handler(normalizedHref, event.nativeEvent || event);
779
+ if (handled !== false) {
780
+ event.preventDefault();
781
+ }
782
+ } catch (error) {
783
+ console.error("Error in navigation handler:", error);
784
+ }
785
+ }
786
+ }
787
+ }
788
+ },
789
+ [onClick, shouldUseRouter, normalizedHref]
790
+ );
791
+ return {
792
+ linkType,
793
+ normalizedHref,
794
+ target,
795
+ rel,
796
+ isExternal,
797
+ isInternal,
798
+ shouldUseRouter,
799
+ handleClick
800
+ };
801
+ }
802
+ var Pressable = React4__namespace.forwardRef(
803
+ ({
804
+ children,
805
+ className,
806
+ href,
807
+ onClick,
808
+ variant,
809
+ size,
810
+ asButton = false,
811
+ fallbackComponentType = "span",
812
+ componentType,
813
+ "aria-label": ariaLabel,
814
+ "aria-describedby": ariaDescribedby,
815
+ id,
816
+ ...props
817
+ }, ref) => {
818
+ const navigation = useNavigation({ href, onClick });
819
+ const {
820
+ normalizedHref,
821
+ target,
822
+ rel,
823
+ linkType,
824
+ isInternal,
825
+ handleClick
826
+ } = navigation;
827
+ const shouldRenderLink = normalizedHref && linkType !== "none";
828
+ const shouldRenderButton = !shouldRenderLink && onClick;
829
+ const effectiveComponentType = componentType || (shouldRenderLink ? "a" : shouldRenderButton ? "button" : fallbackComponentType);
830
+ const finalComponentType = isInternal && shouldRenderLink ? "a" : effectiveComponentType;
831
+ const shouldApplyButtonStyles = asButton || variant || size;
832
+ const combinedClassName = cn(
833
+ shouldApplyButtonStyles && buttonVariants({ variant, size }),
834
+ className
835
+ );
836
+ const dataProps = Object.fromEntries(
837
+ Object.entries(props).filter(([key]) => key.startsWith("data-"))
838
+ );
839
+ const buttonDataAttributes = shouldApplyButtonStyles ? {
840
+ "data-slot": "button",
841
+ "data-variant": variant ?? "default",
842
+ "data-size": size ?? "default"
843
+ } : {};
844
+ const commonProps = {
845
+ className: combinedClassName,
846
+ onClick: handleClick,
847
+ "aria-label": ariaLabel,
848
+ "aria-describedby": ariaDescribedby,
849
+ id,
850
+ ...dataProps,
851
+ ...buttonDataAttributes
852
+ };
853
+ if (finalComponentType === "a" && shouldRenderLink) {
854
+ return /* @__PURE__ */ jsxRuntime.jsx(
855
+ "a",
856
+ {
857
+ ref,
858
+ href: normalizedHref,
859
+ target,
860
+ rel,
861
+ ...commonProps,
862
+ ...props,
863
+ children
864
+ }
865
+ );
866
+ }
867
+ if (finalComponentType === "button") {
868
+ return /* @__PURE__ */ jsxRuntime.jsx(
869
+ "button",
870
+ {
871
+ ref,
872
+ type: props.type || "button",
873
+ ...commonProps,
874
+ ...props,
875
+ children
876
+ }
877
+ );
878
+ }
879
+ if (finalComponentType === "div") {
880
+ return /* @__PURE__ */ jsxRuntime.jsx(
881
+ "div",
882
+ {
883
+ ref,
884
+ ...commonProps,
885
+ children
886
+ }
887
+ );
888
+ }
889
+ return /* @__PURE__ */ jsxRuntime.jsx(
890
+ "span",
891
+ {
892
+ ref,
893
+ ...commonProps,
894
+ children
895
+ }
896
+ );
897
+ }
898
+ );
899
+ Pressable.displayName = "Pressable";
481
900
  var containerVariants = {
482
901
  hidden: {},
483
902
  visible: {
@@ -517,14 +936,14 @@ function TestimonialsScrollingColumns({
517
936
  patternOpacity,
518
937
  optixFlowConfig
519
938
  }) {
520
- const getAuthorName = React.useCallback(
939
+ const getAuthorName = React4.useCallback(
521
940
  (testimonial) => {
522
941
  if (typeof testimonial.author === "string") return testimonial.author;
523
942
  return "";
524
943
  },
525
944
  []
526
945
  );
527
- const renderedTestimonials = React.useMemo(() => {
946
+ const renderedTestimonials = React4.useMemo(() => {
528
947
  if (testimonialsSlot) return testimonialsSlot;
529
948
  if (!testimonials || testimonials.length === 0) return null;
530
949
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -592,7 +1011,18 @@ function TestimonialsScrollingColumns({
592
1011
  ) : testimonial.quote),
593
1012
  /* @__PURE__ */ jsxRuntime.jsx("figcaption", { className: cn("mt-4", authorClassName), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "space-y-1", children: [
594
1013
  testimonial.author && (typeof testimonial.author === "string" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "uppercase text-base font-semibold", children: testimonial.author }) : null),
595
- testimonial.role && (typeof testimonial.role === "string" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-thin", children: testimonial.role }) : null)
1014
+ testimonial.role && (typeof testimonial.role === "string" ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "text-sm font-thin opacity-75", children: testimonial.role }) : null),
1015
+ testimonial.linkConfig?.href ? /* @__PURE__ */ jsxRuntime.jsx(
1016
+ Pressable,
1017
+ {
1018
+ href: testimonial.linkConfig.href,
1019
+ className: cn(
1020
+ "text-base font-bold",
1021
+ testimonial.linkConfig.className
1022
+ ),
1023
+ children: testimonial.linkConfig.label || "Full Review"
1024
+ }
1025
+ ) : null
596
1026
  ] }) })
597
1027
  ] })
598
1028
  ]