@opensite/ui 3.7.5 → 3.7.6

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 (111) hide show
  1. package/dist/blog-featured-popular.cjs +13 -12
  2. package/dist/blog-featured-popular.d.cts +1 -1
  3. package/dist/blog-featured-popular.d.ts +1 -1
  4. package/dist/blog-featured-popular.js +13 -12
  5. package/dist/blog-horizontal-cards.cjs +22 -41
  6. package/dist/blog-horizontal-cards.d.cts +1 -1
  7. package/dist/blog-horizontal-cards.d.ts +1 -1
  8. package/dist/blog-horizontal-cards.js +22 -41
  9. package/dist/blog-related-articles.cjs +8 -7
  10. package/dist/blog-related-articles.js +8 -7
  11. package/dist/carousel-icon-tabs.cjs +6 -4
  12. package/dist/carousel-icon-tabs.d.cts +5 -1
  13. package/dist/carousel-icon-tabs.d.ts +5 -1
  14. package/dist/carousel-icon-tabs.js +6 -4
  15. package/dist/carousel-progress-slider.cjs +3 -2
  16. package/dist/carousel-progress-slider.js +3 -2
  17. package/dist/carousel-scale-focus.cjs +1 -1
  18. package/dist/carousel-scale-focus.js +1 -1
  19. package/dist/carousel-scrolling-feature-showcase.cjs +4 -2
  20. package/dist/carousel-scrolling-feature-showcase.js +4 -2
  21. package/dist/carousel-sidebar-resources.cjs +11 -15
  22. package/dist/carousel-sidebar-resources.d.cts +5 -1
  23. package/dist/carousel-sidebar-resources.d.ts +5 -1
  24. package/dist/carousel-sidebar-resources.js +11 -15
  25. package/dist/carousel-tabs-content.cjs +1 -1
  26. package/dist/carousel-tabs-content.js +1 -1
  27. package/dist/expandable-case-study-cards.cjs +3 -3
  28. package/dist/expandable-case-study-cards.js +3 -3
  29. package/dist/feature-animated-carousel.cjs +2 -1
  30. package/dist/feature-animated-carousel.js +2 -1
  31. package/dist/feature-bento-image-grid.cjs +8 -9
  32. package/dist/feature-bento-image-grid.js +8 -9
  33. package/dist/feature-image-overlay-badge.cjs +3 -40
  34. package/dist/feature-image-overlay-badge.js +3 -40
  35. package/dist/feature-integration-cards.cjs +4 -13
  36. package/dist/feature-integration-cards.js +4 -13
  37. package/dist/footer-newsletter-contact.cjs +4 -4
  38. package/dist/footer-newsletter-contact.js +4 -4
  39. package/dist/hero-adaptable-product-grid.cjs +2 -1
  40. package/dist/hero-adaptable-product-grid.js +2 -1
  41. package/dist/hero-ai-powered-carousel.cjs +2 -1
  42. package/dist/hero-ai-powered-carousel.js +2 -1
  43. package/dist/hero-architecture-fullscreen.cjs +3 -2
  44. package/dist/hero-architecture-fullscreen.js +3 -2
  45. package/dist/hero-badge-image-split.cjs +3 -2
  46. package/dist/hero-badge-image-split.js +3 -2
  47. package/dist/hero-badge-shadow-overlay.cjs +2 -1
  48. package/dist/hero-badge-shadow-overlay.js +2 -1
  49. package/dist/hero-billing-platform-logos.cjs +12 -8
  50. package/dist/hero-billing-platform-logos.js +12 -8
  51. package/dist/hero-business-carousel-dots.cjs +2 -1
  52. package/dist/hero-business-carousel-dots.js +2 -1
  53. package/dist/hero-conversation-intelligence.cjs +2 -1
  54. package/dist/hero-conversation-intelligence.js +2 -1
  55. package/dist/hero-crm-streamlined.cjs +2 -2
  56. package/dist/hero-crm-streamlined.js +2 -2
  57. package/dist/hero-design-carousel-portfolio.cjs +2 -1
  58. package/dist/hero-design-carousel-portfolio.js +2 -1
  59. package/dist/hero-ecommerce-product-showcase.cjs +8 -4
  60. package/dist/hero-ecommerce-product-showcase.js +8 -4
  61. package/dist/hero-event-registration.cjs +2 -1
  62. package/dist/hero-event-registration.js +2 -1
  63. package/dist/hero-gradient-avatars-rating.cjs +4 -2
  64. package/dist/hero-gradient-avatars-rating.js +4 -2
  65. package/dist/hero-mental-health-team.cjs +13 -18
  66. package/dist/hero-mental-health-team.js +13 -18
  67. package/dist/hero-mentorship-video-split.cjs +3 -10
  68. package/dist/hero-mentorship-video-split.js +3 -10
  69. package/dist/hero-product-showcase-floating.cjs +4 -2
  70. package/dist/hero-product-showcase-floating.js +4 -2
  71. package/dist/hero-saas-dashboard-preview.cjs +2 -1
  72. package/dist/hero-saas-dashboard-preview.js +2 -1
  73. package/dist/hero-software-growth-video-dialog.cjs +2 -1
  74. package/dist/hero-software-growth-video-dialog.js +2 -1
  75. package/dist/hero-split-icon-cards.cjs +7 -59
  76. package/dist/hero-split-icon-cards.js +7 -59
  77. package/dist/hero-task-timer-animated.cjs +155 -86
  78. package/dist/hero-task-timer-animated.d.cts +19 -18
  79. package/dist/hero-task-timer-animated.d.ts +19 -18
  80. package/dist/hero-task-timer-animated.js +156 -68
  81. package/dist/navbar-animated-preview.cjs +1 -1
  82. package/dist/navbar-animated-preview.js +1 -1
  83. package/dist/navbar-enterprise-mega.cjs +9 -3
  84. package/dist/navbar-enterprise-mega.d.cts +3 -0
  85. package/dist/navbar-enterprise-mega.d.ts +3 -0
  86. package/dist/navbar-enterprise-mega.js +9 -3
  87. package/dist/navbar-image-preview.cjs +10 -2
  88. package/dist/navbar-image-preview.d.cts +6 -6
  89. package/dist/navbar-image-preview.d.ts +6 -6
  90. package/dist/navbar-image-preview.js +10 -2
  91. package/dist/process-hover-cards.cjs +4 -2
  92. package/dist/process-hover-cards.js +4 -2
  93. package/dist/process-icon-timeline.cjs +1 -2
  94. package/dist/process-icon-timeline.d.cts +0 -4
  95. package/dist/process-icon-timeline.d.ts +0 -4
  96. package/dist/process-icon-timeline.js +1 -2
  97. package/dist/process-scroll-image.cjs +2 -2
  98. package/dist/process-scroll-image.js +2 -2
  99. package/dist/process-steps-grid.cjs +7 -5
  100. package/dist/process-steps-grid.js +7 -5
  101. package/dist/registry.cjs +391 -315
  102. package/dist/registry.js +391 -315
  103. package/dist/testimonials-animated-split.cjs +2 -1
  104. package/dist/testimonials-animated-split.js +2 -1
  105. package/dist/testimonials-carousel-image.cjs +4 -2
  106. package/dist/testimonials-carousel-image.js +4 -2
  107. package/dist/testimonials-company-logo.cjs +4 -2
  108. package/dist/testimonials-company-logo.js +4 -2
  109. package/dist/testimonials-scrolling-columns.cjs +4 -2
  110. package/dist/testimonials-scrolling-columns.js +4 -2
  111. package/package.json +1 -1
@@ -725,7 +725,8 @@ function HeroEventRegistration({
725
725
  src: image.src,
726
726
  alt: image.alt,
727
727
  className: cn("aspect-square w-full object-cover", image.className),
728
- optixFlowConfig
728
+ optixFlowConfig,
729
+ loading: "eager"
729
730
  }
730
731
  )
731
732
  }
@@ -704,7 +704,8 @@ function HeroEventRegistration({
704
704
  src: image.src,
705
705
  alt: image.alt,
706
706
  className: cn("aspect-square w-full object-cover", image.className),
707
- optixFlowConfig
707
+ optixFlowConfig,
708
+ loading: "eager"
708
709
  }
709
710
  )
710
711
  }
@@ -657,7 +657,8 @@ function HeroGradientAvatarsRating({
657
657
  "h-full w-full object-cover transition-transform duration-300 hover:scale-105",
658
658
  images[0].className
659
659
  ),
660
- optixFlowConfig
660
+ optixFlowConfig,
661
+ loading: "eager"
661
662
  }
662
663
  )
663
664
  }
@@ -677,7 +678,8 @@ function HeroGradientAvatarsRating({
677
678
  "h-full w-full object-cover transition-transform duration-300 hover:scale-105",
678
679
  images[1].className
679
680
  ),
680
- optixFlowConfig
681
+ optixFlowConfig,
682
+ loading: "eager"
681
683
  }
682
684
  )
683
685
  }
@@ -635,7 +635,8 @@ function HeroGradientAvatarsRating({
635
635
  "h-full w-full object-cover transition-transform duration-300 hover:scale-105",
636
636
  images[0].className
637
637
  ),
638
- optixFlowConfig
638
+ optixFlowConfig,
639
+ loading: "eager"
639
640
  }
640
641
  )
641
642
  }
@@ -655,7 +656,8 @@ function HeroGradientAvatarsRating({
655
656
  "h-full w-full object-cover transition-transform duration-300 hover:scale-105",
656
657
  images[1].className
657
658
  ),
658
- optixFlowConfig
659
+ optixFlowConfig,
660
+ loading: "eager"
659
661
  }
660
662
  )
661
663
  }
@@ -488,7 +488,7 @@ function HeroMentalHealthTeam({
488
488
  pattern,
489
489
  patternOpacity,
490
490
  className,
491
- spacing = "xl",
491
+ spacing = "hero",
492
492
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
493
493
  headerClassName,
494
494
  headingClassName,
@@ -508,7 +508,8 @@ function HeroMentalHealthTeam({
508
508
  "block h-full w-full object-cover object-center",
509
509
  smallImages[0].className
510
510
  ),
511
- optixFlowConfig
511
+ optixFlowConfig,
512
+ loading: "eager"
512
513
  }
513
514
  ) }) }),
514
515
  smallImages[1] && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "col-[2/3] row-[1/2] w-full md:col-[2/3] md:row-[1/2]", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-full max-h-77.5 w-full overflow-hidden rounded-2xl", children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -520,7 +521,8 @@ function HeroMentalHealthTeam({
520
521
  "block h-full w-full object-cover object-center",
521
522
  smallImages[1].className
522
523
  ),
523
- optixFlowConfig
524
+ optixFlowConfig,
525
+ loading: "eager"
524
526
  }
525
527
  ) }) })
526
528
  ] });
@@ -542,16 +544,17 @@ function HeroMentalHealthTeam({
542
544
  src: avatarSrc,
543
545
  alt: testimonial.avatar?.alt ?? "",
544
546
  className: "h-full w-full object-cover object-center",
545
- optixFlowConfig
547
+ optixFlowConfig,
548
+ loading: "eager"
546
549
  }
547
550
  ) }),
548
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full w-full flex-col justify-between gap-2 text-muted-foreground", children: [
551
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full w-full flex-col justify-between gap-2 opacity-70", children: [
549
552
  /* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-lg font-medium", children: [
550
553
  '"',
551
554
  testimonial.quote,
552
555
  '"'
553
556
  ] }),
554
- /* @__PURE__ */ jsxRuntime.jsx("p", { className: "", children: testimonial.author })
557
+ /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm", children: testimonial.author })
555
558
  ] })
556
559
  ]
557
560
  }
@@ -569,7 +572,8 @@ function HeroMentalHealthTeam({
569
572
  "block h-full w-full object-cover object-center",
570
573
  featureImage.className
571
574
  ),
572
- optixFlowConfig
575
+ optixFlowConfig,
576
+ loading: "eager"
573
577
  }
574
578
  ) }) });
575
579
  }, [featureImageSlot, featureImage, optixFlowConfig]);
@@ -601,16 +605,7 @@ function HeroMentalHealthTeam({
601
605
  ),
602
606
  children: heading
603
607
  }
604
- ) : /* @__PURE__ */ jsxRuntime.jsx(
605
- "h1",
606
- {
607
- className: cn(
608
- "text-center text-4xl leading-tight font-medium sm:text-5xl md:text-6xl text-balance",
609
- headingClassName
610
- ),
611
- children: heading
612
- }
613
- )),
608
+ ) : heading),
614
609
  description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
615
610
  "p",
616
611
  {
@@ -620,7 +615,7 @@ function HeroMentalHealthTeam({
620
615
  ),
621
616
  children: description
622
617
  }
623
- ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description })),
618
+ ) : description),
624
619
  /* @__PURE__ */ jsxRuntime.jsx(
625
620
  BlockActions,
626
621
  {
@@ -482,7 +482,7 @@ function HeroMentalHealthTeam({
482
482
  pattern,
483
483
  patternOpacity,
484
484
  className,
485
- spacing = "xl",
485
+ spacing = "hero",
486
486
  containerClassName = "px-6 sm:px-6 md:px-8 lg:px-8",
487
487
  headerClassName,
488
488
  headingClassName,
@@ -502,7 +502,8 @@ function HeroMentalHealthTeam({
502
502
  "block h-full w-full object-cover object-center",
503
503
  smallImages[0].className
504
504
  ),
505
- optixFlowConfig
505
+ optixFlowConfig,
506
+ loading: "eager"
506
507
  }
507
508
  ) }) }),
508
509
  smallImages[1] && /* @__PURE__ */ jsx("div", { className: "col-[2/3] row-[1/2] w-full md:col-[2/3] md:row-[1/2]", children: /* @__PURE__ */ jsx("div", { className: "h-full max-h-77.5 w-full overflow-hidden rounded-2xl", children: /* @__PURE__ */ jsx(
@@ -514,7 +515,8 @@ function HeroMentalHealthTeam({
514
515
  "block h-full w-full object-cover object-center",
515
516
  smallImages[1].className
516
517
  ),
517
- optixFlowConfig
518
+ optixFlowConfig,
519
+ loading: "eager"
518
520
  }
519
521
  ) }) })
520
522
  ] });
@@ -536,16 +538,17 @@ function HeroMentalHealthTeam({
536
538
  src: avatarSrc,
537
539
  alt: testimonial.avatar?.alt ?? "",
538
540
  className: "h-full w-full object-cover object-center",
539
- optixFlowConfig
541
+ optixFlowConfig,
542
+ loading: "eager"
540
543
  }
541
544
  ) }),
542
- /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col justify-between gap-2 text-muted-foreground", children: [
545
+ /* @__PURE__ */ jsxs("div", { className: "flex h-full w-full flex-col justify-between gap-2 opacity-70", children: [
543
546
  /* @__PURE__ */ jsxs("p", { className: "text-lg font-medium", children: [
544
547
  '"',
545
548
  testimonial.quote,
546
549
  '"'
547
550
  ] }),
548
- /* @__PURE__ */ jsx("p", { className: "", children: testimonial.author })
551
+ /* @__PURE__ */ jsx("p", { className: "text-sm", children: testimonial.author })
549
552
  ] })
550
553
  ]
551
554
  }
@@ -563,7 +566,8 @@ function HeroMentalHealthTeam({
563
566
  "block h-full w-full object-cover object-center",
564
567
  featureImage.className
565
568
  ),
566
- optixFlowConfig
569
+ optixFlowConfig,
570
+ loading: "eager"
567
571
  }
568
572
  ) }) });
569
573
  }, [featureImageSlot, featureImage, optixFlowConfig]);
@@ -595,16 +599,7 @@ function HeroMentalHealthTeam({
595
599
  ),
596
600
  children: heading
597
601
  }
598
- ) : /* @__PURE__ */ jsx(
599
- "h1",
600
- {
601
- className: cn(
602
- "text-center text-4xl leading-tight font-medium sm:text-5xl md:text-6xl text-balance",
603
- headingClassName
604
- ),
605
- children: heading
606
- }
607
- )),
602
+ ) : heading),
608
603
  description && (typeof description === "string" ? /* @__PURE__ */ jsx(
609
604
  "p",
610
605
  {
@@ -614,7 +609,7 @@ function HeroMentalHealthTeam({
614
609
  ),
615
610
  children: description
616
611
  }
617
- ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
612
+ ) : description),
618
613
  /* @__PURE__ */ jsx(
619
614
  BlockActions,
620
615
  {
@@ -590,7 +590,7 @@ function HeroMentorshipVideoSplit({
590
590
  {
591
591
  onClick: () => setIsVideoOpen(true),
592
592
  className: cn(
593
- "group relative flex overflow-hidden rounded-lg p-0",
593
+ "group relative flex overflow-hidden rounded-lg p-0 cursor-pointer",
594
594
  videoAspectRatio === "vertical" ? "h-36 w-20" : "h-20 w-36"
595
595
  ),
596
596
  children: /* @__PURE__ */ jsxRuntime.jsxs(AspectRatio, { ratio: aspectRatio, className: "flex h-full w-full", children: [
@@ -606,14 +606,7 @@ function HeroMentorshipVideoSplit({
606
606
  optixFlowConfig
607
607
  }
608
608
  ),
609
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "m-auto aspect-square z-10 bg-card text-card-foreground p-2 rounded-xl shadow-xl", children: /* @__PURE__ */ jsxRuntime.jsx(
610
- DynamicIcon,
611
- {
612
- name: "lucide/play",
613
- size: 24,
614
- className: "transition-transform group-hover:scale-125"
615
- }
616
- ) })
609
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "m-auto aspect-square z-10 bg-card text-card-foreground p-2 rounded-xl ring-4 ring-card flex items-center justify-center opacity-80 hover:opacity-100 transition-all duration-500", children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: "lucide/play", size: 24 }) })
617
610
  ] })
618
611
  }
619
612
  )
@@ -678,7 +671,7 @@ function HeroMentorshipVideoSplit({
678
671
  "p",
679
672
  {
680
673
  className: cn(
681
- "text-lg font-medium md:text-xl",
674
+ "text-lg font-normal md:text-xl text-pretty",
682
675
  descriptionClassName
683
676
  ),
684
677
  children: description
@@ -567,7 +567,7 @@ function HeroMentorshipVideoSplit({
567
567
  {
568
568
  onClick: () => setIsVideoOpen(true),
569
569
  className: cn(
570
- "group relative flex overflow-hidden rounded-lg p-0",
570
+ "group relative flex overflow-hidden rounded-lg p-0 cursor-pointer",
571
571
  videoAspectRatio === "vertical" ? "h-36 w-20" : "h-20 w-36"
572
572
  ),
573
573
  children: /* @__PURE__ */ jsxs(AspectRatio, { ratio: aspectRatio, className: "flex h-full w-full", children: [
@@ -583,14 +583,7 @@ function HeroMentorshipVideoSplit({
583
583
  optixFlowConfig
584
584
  }
585
585
  ),
586
- /* @__PURE__ */ jsx("div", { className: "m-auto aspect-square z-10 bg-card text-card-foreground p-2 rounded-xl shadow-xl", children: /* @__PURE__ */ jsx(
587
- DynamicIcon,
588
- {
589
- name: "lucide/play",
590
- size: 24,
591
- className: "transition-transform group-hover:scale-125"
592
- }
593
- ) })
586
+ /* @__PURE__ */ jsx("div", { className: "m-auto aspect-square z-10 bg-card text-card-foreground p-2 rounded-xl ring-4 ring-card flex items-center justify-center opacity-80 hover:opacity-100 transition-all duration-500", children: /* @__PURE__ */ jsx(DynamicIcon, { name: "lucide/play", size: 24 }) })
594
587
  ] })
595
588
  }
596
589
  )
@@ -655,7 +648,7 @@ function HeroMentorshipVideoSplit({
655
648
  "p",
656
649
  {
657
650
  className: cn(
658
- "text-lg font-medium md:text-xl",
651
+ "text-lg font-normal md:text-xl text-pretty",
659
652
  descriptionClassName
660
653
  ),
661
654
  children: description
@@ -670,7 +670,8 @@ function HeroProductShowcaseFloating({
670
670
  "size-8 rounded-full border-2 border-background object-cover",
671
671
  avatar.className
672
672
  ),
673
- optixFlowConfig
673
+ optixFlowConfig,
674
+ loading: "eager"
674
675
  },
675
676
  idx
676
677
  )) }),
@@ -693,7 +694,8 @@ function HeroProductShowcaseFloating({
693
694
  "h-full w-full rounded-lg object-cover shadow-2xl",
694
695
  productImage.className
695
696
  ),
696
- optixFlowConfig
697
+ optixFlowConfig,
698
+ loading: "eager"
697
699
  }
698
700
  ) }),
699
701
  renderFloatingStat,
@@ -649,7 +649,8 @@ function HeroProductShowcaseFloating({
649
649
  "size-8 rounded-full border-2 border-background object-cover",
650
650
  avatar.className
651
651
  ),
652
- optixFlowConfig
652
+ optixFlowConfig,
653
+ loading: "eager"
653
654
  },
654
655
  idx
655
656
  )) }),
@@ -672,7 +673,8 @@ function HeroProductShowcaseFloating({
672
673
  "h-full w-full rounded-lg object-cover shadow-2xl",
673
674
  productImage.className
674
675
  ),
675
- optixFlowConfig
676
+ optixFlowConfig,
677
+ loading: "eager"
676
678
  }
677
679
  ) }),
678
680
  renderFloatingStat,
@@ -651,7 +651,8 @@ function HeroSaasDashboardPreview({
651
651
  src: browserPreview.image.src,
652
652
  alt: browserPreview.image.alt,
653
653
  className: cn("w-full", browserPreview.image.className),
654
- optixFlowConfig
654
+ optixFlowConfig,
655
+ loading: "eager"
655
656
  }
656
657
  )
657
658
  ]
@@ -630,7 +630,8 @@ function HeroSaasDashboardPreview({
630
630
  src: browserPreview.image.src,
631
631
  alt: browserPreview.image.alt,
632
632
  className: cn("w-full", browserPreview.image.className),
633
- optixFlowConfig
633
+ optixFlowConfig,
634
+ loading: "eager"
634
635
  }
635
636
  )
636
637
  ]
@@ -690,7 +690,8 @@ function HeroSoftwareGrowthVideoDialog({
690
690
  "size-full object-cover object-center rounded-xl shadow-xl",
691
691
  showcaseImages[index].className
692
692
  ),
693
- optixFlowConfig
693
+ optixFlowConfig,
694
+ loading: "eager"
694
695
  }
695
696
  ) }) }, index))
696
697
  }
@@ -667,7 +667,8 @@ function HeroSoftwareGrowthVideoDialog({
667
667
  "size-full object-cover object-center rounded-xl shadow-xl",
668
668
  showcaseImages[index].className
669
669
  ),
670
- optixFlowConfig
670
+ optixFlowConfig,
671
+ loading: "eager"
671
672
  }
672
673
  ) }) }, index))
673
674
  }
@@ -33,36 +33,6 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
33
33
  function cn(...inputs) {
34
34
  return tailwindMerge.twMerge(clsx.clsx(inputs));
35
35
  }
36
- function getTextColor(parentBg, variant = "default", options) {
37
- const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
38
- if (isDark) {
39
- switch (variant) {
40
- case "default":
41
- return "text-foreground";
42
- case "muted":
43
- return "text-foreground/80";
44
- case "subtle":
45
- return "text-foreground/60";
46
- case "accent":
47
- return "text-accent-foreground";
48
- }
49
- } else {
50
- switch (variant) {
51
- case "default":
52
- return "text-foreground";
53
- case "muted":
54
- return "text-muted-foreground";
55
- case "subtle":
56
- return "text-muted-foreground/70";
57
- case "accent":
58
- return "text-primary";
59
- }
60
- }
61
- }
62
- function getAccentColor(parentBg, options) {
63
- const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
64
- return isDark ? "text-accent-foreground" : "text-primary";
65
- }
66
36
  var DEFAULT_ICON_API_KEY = "au382bi7fsh96w9h9xlrnat2jglx";
67
37
  var DynamicIcon = React__namespace.memo(function DynamicIcon2({
68
38
  apiKey,
@@ -543,30 +513,19 @@ function HeroSplitIconCards({
543
513
  if (cardsSlot) return cardsSlot;
544
514
  if (!cardItems || cardItems.length === 0) return null;
545
515
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "grid grid-cols-1 gap-4", children: cardItems.map((item, idx) => {
546
- const card = /* @__PURE__ */ jsxRuntime.jsx(Card, { className: "h-full border-border/60 px-0 py-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-4 p-6", children: [
516
+ const card = /* @__PURE__ */ jsxRuntime.jsx(Card, { className: "h-full border-border/60 px-0 py-0 hover:shadow-xl duration-500 transition-all", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-start gap-4 p-6", children: [
547
517
  /* @__PURE__ */ jsxRuntime.jsx(
548
518
  "div",
549
519
  {
550
520
  className: cn(
551
- "flex h-14 w-14 items-center justify-center rounded-xl",
552
- `${getAccentColor(background)}/10`,
553
- getAccentColor(background)
521
+ "flex h-14 w-14 items-center justify-center rounded-xl bg-primary text-primary-foreground"
554
522
  ),
555
523
  children: /* @__PURE__ */ jsxRuntime.jsx(DynamicIcon, { name: item.icon, size: 24 })
556
524
  }
557
525
  ),
558
- /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
559
- /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-bold ", children: item.title }),
560
- item.subtitle ? /* @__PURE__ */ jsxRuntime.jsx(
561
- "p",
562
- {
563
- className: cn(
564
- "mt-2 text-sm",
565
- getTextColor(background, "muted")
566
- ),
567
- children: item.subtitle
568
- }
569
- ) : null
526
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "text-card-foreground", children: [
527
+ /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-lg font-bold", children: item.title }),
528
+ item.subtitle ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-sm opacity-70"), children: item.subtitle }) : null
570
529
  ] })
571
530
  ] }) });
572
531
  return item.href ? /* @__PURE__ */ jsxRuntime.jsx(pressable.Pressable, { href: item.href, className: "block", children: card }, idx) : /* @__PURE__ */ jsxRuntime.jsx("div", { children: card }, idx);
@@ -588,8 +547,7 @@ function HeroSplitIconCards({
588
547
  "p",
589
548
  {
590
549
  className: cn(
591
- "text-xs font-semibold uppercase tracking-[0.25em]",
592
- getAccentColor(background)
550
+ "text-xs font-semibold uppercase tracking-[0.25em]"
593
551
  ),
594
552
  children: eyebrow
595
553
  }
@@ -614,17 +572,7 @@ function HeroSplitIconCards({
614
572
  children: heading
615
573
  }
616
574
  )),
617
- description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx(
618
- "p",
619
- {
620
- className: cn(
621
- "text-lg",
622
- getTextColor(background, "muted"),
623
- descriptionClassName
624
- ),
625
- children: description
626
- }
627
- ) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description })),
575
+ description && (typeof description === "string" ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: cn("text-lg", descriptionClassName), children: description }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: descriptionClassName, children: description })),
628
576
  renderActions
629
577
  ] }) }),
630
578
  renderCards
@@ -12,36 +12,6 @@ import { Img } from '@page-speed/img';
12
12
  function cn(...inputs) {
13
13
  return twMerge(clsx(inputs));
14
14
  }
15
- function getTextColor(parentBg, variant = "default", options) {
16
- const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
17
- if (isDark) {
18
- switch (variant) {
19
- case "default":
20
- return "text-foreground";
21
- case "muted":
22
- return "text-foreground/80";
23
- case "subtle":
24
- return "text-foreground/60";
25
- case "accent":
26
- return "text-accent-foreground";
27
- }
28
- } else {
29
- switch (variant) {
30
- case "default":
31
- return "text-foreground";
32
- case "muted":
33
- return "text-muted-foreground";
34
- case "subtle":
35
- return "text-muted-foreground/70";
36
- case "accent":
37
- return "text-primary";
38
- }
39
- }
40
- }
41
- function getAccentColor(parentBg, options) {
42
- const isDark = parentBg === "dark" || parentBg === "secondary" || parentBg === "primary";
43
- return isDark ? "text-accent-foreground" : "text-primary";
44
- }
45
15
  var DEFAULT_ICON_API_KEY = "au382bi7fsh96w9h9xlrnat2jglx";
46
16
  var DynamicIcon = React.memo(function DynamicIcon2({
47
17
  apiKey,
@@ -522,30 +492,19 @@ function HeroSplitIconCards({
522
492
  if (cardsSlot) return cardsSlot;
523
493
  if (!cardItems || cardItems.length === 0) return null;
524
494
  return /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 gap-4", children: cardItems.map((item, idx) => {
525
- const card = /* @__PURE__ */ jsx(Card, { className: "h-full border-border/60 px-0 py-0", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 p-6", children: [
495
+ const card = /* @__PURE__ */ jsx(Card, { className: "h-full border-border/60 px-0 py-0 hover:shadow-xl duration-500 transition-all", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start gap-4 p-6", children: [
526
496
  /* @__PURE__ */ jsx(
527
497
  "div",
528
498
  {
529
499
  className: cn(
530
- "flex h-14 w-14 items-center justify-center rounded-xl",
531
- `${getAccentColor(background)}/10`,
532
- getAccentColor(background)
500
+ "flex h-14 w-14 items-center justify-center rounded-xl bg-primary text-primary-foreground"
533
501
  ),
534
502
  children: /* @__PURE__ */ jsx(DynamicIcon, { name: item.icon, size: 24 })
535
503
  }
536
504
  ),
537
- /* @__PURE__ */ jsxs("div", { children: [
538
- /* @__PURE__ */ jsx("h3", { className: "text-lg font-bold ", children: item.title }),
539
- item.subtitle ? /* @__PURE__ */ jsx(
540
- "p",
541
- {
542
- className: cn(
543
- "mt-2 text-sm",
544
- getTextColor(background, "muted")
545
- ),
546
- children: item.subtitle
547
- }
548
- ) : null
505
+ /* @__PURE__ */ jsxs("div", { className: "text-card-foreground", children: [
506
+ /* @__PURE__ */ jsx("h3", { className: "text-lg font-bold", children: item.title }),
507
+ item.subtitle ? /* @__PURE__ */ jsx("p", { className: cn("text-sm opacity-70"), children: item.subtitle }) : null
549
508
  ] })
550
509
  ] }) });
551
510
  return item.href ? /* @__PURE__ */ jsx(Pressable, { href: item.href, className: "block", children: card }, idx) : /* @__PURE__ */ jsx("div", { children: card }, idx);
@@ -567,8 +526,7 @@ function HeroSplitIconCards({
567
526
  "p",
568
527
  {
569
528
  className: cn(
570
- "text-xs font-semibold uppercase tracking-[0.25em]",
571
- getAccentColor(background)
529
+ "text-xs font-semibold uppercase tracking-[0.25em]"
572
530
  ),
573
531
  children: eyebrow
574
532
  }
@@ -593,17 +551,7 @@ function HeroSplitIconCards({
593
551
  children: heading
594
552
  }
595
553
  )),
596
- description && (typeof description === "string" ? /* @__PURE__ */ jsx(
597
- "p",
598
- {
599
- className: cn(
600
- "text-lg",
601
- getTextColor(background, "muted"),
602
- descriptionClassName
603
- ),
604
- children: description
605
- }
606
- ) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
554
+ description && (typeof description === "string" ? /* @__PURE__ */ jsx("p", { className: cn("text-lg", descriptionClassName), children: description }) : /* @__PURE__ */ jsx("div", { className: descriptionClassName, children: description })),
607
555
  renderActions
608
556
  ] }) }),
609
557
  renderCards