@opensite/ui 2.3.6 → 2.3.8

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/index.js CHANGED
@@ -1908,7 +1908,7 @@ function AboutSplitHero({
1908
1908
  }
1909
1909
  }, [background]);
1910
1910
  const desktopOrder = directionConfig.desktop === "mediaRight" ? "lg:flex-row" : "lg:flex-row-reverse";
1911
- const mobileOrder = directionConfig.mobile === "mediaTop" ? "flex-col" : "flex-col-reverse";
1911
+ const mobileOrder = directionConfig.mobile === "mediaTop" ? "flex-col-reverse" : "flex-col";
1912
1912
  const contentArea = /* @__PURE__ */ jsxs(
1913
1913
  "div",
1914
1914
  {
@@ -2502,28 +2502,6 @@ function CommunityInitiatives({
2502
2502
  },
2503
2503
  []
2504
2504
  );
2505
- const actionsContent = useMemo(() => {
2506
- if (actionsSlot) return actionsSlot;
2507
- if (!actions || actions.length === 0) return null;
2508
- return /* @__PURE__ */ jsx(
2509
- "div",
2510
- {
2511
- className: cn("flex flex-wrap justify-center gap-4", actionsClassName),
2512
- children: actions.map((action, idx) => /* @__PURE__ */ jsx(
2513
- Pressable,
2514
- {
2515
- href: action.href,
2516
- onClick: action.onClick,
2517
- variant: action.variant || "default",
2518
- size: action.size || "lg",
2519
- asButton: true,
2520
- children: action.label
2521
- },
2522
- idx
2523
- ))
2524
- }
2525
- );
2526
- }, [actionsSlot, actions, actionsClassName]);
2527
2505
  const categoriesContent = useMemo(() => {
2528
2506
  if (categoriesSlot) return categoriesSlot;
2529
2507
  if (!categories || categories.length === 0) return null;
@@ -2555,7 +2533,7 @@ function CommunityInitiatives({
2555
2533
  category.id
2556
2534
  )) })
2557
2535
  ] }),
2558
- /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-2xl text-left md:text-center", children: /* @__PURE__ */ jsx("p", { className: cn(getTextColor(background, "muted")), children: currentCategory?.description }) }),
2536
+ /* @__PURE__ */ jsx("div", { className: "mx-auto max-w-2xl text-left md:text-center", children: /* @__PURE__ */ jsx("p", { className: "relative", children: currentCategory?.description }) }),
2559
2537
  categories.map((category) => /* @__PURE__ */ jsx(
2560
2538
  TabsContent,
2561
2539
  {
@@ -2577,47 +2555,13 @@ function CommunityInitiatives({
2577
2555
  ),
2578
2556
  children: [
2579
2557
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
2580
- /* @__PURE__ */ jsx(
2581
- "div",
2582
- {
2583
- className: cn(
2584
- "rounded-md p-2",
2585
- getNestedCardBg(background, "muted")
2586
- ),
2587
- children: /* @__PURE__ */ jsx(
2588
- DynamicIcon,
2589
- {
2590
- name: initiative.icon,
2591
- size: 24,
2592
- className: cn(getAccentColor(background))
2593
- }
2594
- )
2595
- }
2596
- ),
2558
+ /* @__PURE__ */ jsx("div", { className: cn("rounded-md p-2"), children: /* @__PURE__ */ jsx(DynamicIcon, { name: initiative.icon, size: 24 }) }),
2597
2559
  /* @__PURE__ */ jsx("h3", { className: "text-2xl font-bold", children: initiative.title })
2598
2560
  ] }),
2599
- /* @__PURE__ */ jsx("p", { className: cn(getTextColor(background, "muted")), children: initiative.description }),
2561
+ /* @__PURE__ */ jsx("p", { className: "relative", children: initiative.description }),
2600
2562
  initiative.metrics && /* @__PURE__ */ jsx("div", { className: "grid grid-cols-3 gap-4 pt-2", children: initiative.metrics.map((metric, i) => /* @__PURE__ */ jsxs("div", { className: "text-center", children: [
2601
- /* @__PURE__ */ jsx(
2602
- "div",
2603
- {
2604
- className: cn(
2605
- "text-2xl font-bold",
2606
- getAccentColor(background)
2607
- ),
2608
- children: metric.value
2609
- }
2610
- ),
2611
- /* @__PURE__ */ jsx(
2612
- "div",
2613
- {
2614
- className: cn(
2615
- "mt-1 text-xs",
2616
- getTextColor(background, "muted")
2617
- ),
2618
- children: metric.label
2619
- }
2620
- )
2563
+ /* @__PURE__ */ jsx("div", { className: cn("text-2xl font-bold"), children: metric.value }),
2564
+ /* @__PURE__ */ jsx("div", { className: cn("mt-1 text-xs"), children: metric.label })
2621
2565
  ] }, i)) })
2622
2566
  ]
2623
2567
  }
@@ -2650,8 +2594,7 @@ function CommunityInitiatives({
2650
2594
  Card,
2651
2595
  {
2652
2596
  className: cn(
2653
- "flex h-full min-h-[280px] w-full items-center justify-center",
2654
- getNestedCardBg(background, "subtle")
2597
+ "flex h-full min-h-[280px] w-full items-center justify-center"
2655
2598
  ),
2656
2599
  children: /* @__PURE__ */ jsxs(CardContent, { className: "p-6 text-center", children: [
2657
2600
  /* @__PURE__ */ jsx(
@@ -2659,11 +2602,7 @@ function CommunityInitiatives({
2659
2602
  {
2660
2603
  name: initiative.icon,
2661
2604
  size: 64,
2662
- className: cn(
2663
- "mx-auto mb-4",
2664
- getTextColor(background, "muted"),
2665
- "opacity-50"
2666
- )
2605
+ className: cn("mx-auto mb-4", "opacity-50")
2667
2606
  }
2668
2607
  ),
2669
2608
  /* @__PURE__ */ jsxs(Badge, { variant: "secondary", className: "mx-auto", children: [
@@ -2732,30 +2671,45 @@ function CommunityInitiatives({
2732
2671
  }
2733
2672
  ),
2734
2673
  categoriesContent,
2735
- /* @__PURE__ */ jsxs("div", { className: cn("mt-20 text-center", ctaClassName), children: [
2736
- ctaBadgeText && /* @__PURE__ */ jsx(
2737
- "div",
2738
- {
2739
- className: cn(
2740
- "mb-8 inline-flex items-center justify-center rounded-full p-1"
2741
- ),
2742
- children: /* @__PURE__ */ jsx(Badge, { className: "rounded-full bg-primary px-4 py-1 text-primary-foreground", children: ctaBadgeText })
2743
- }
2744
- ),
2745
- ctaHeading && (typeof ctaHeading === "string" ? /* @__PURE__ */ jsx("h3", { className: cn("mb-4 text-2xl font-bold", ctaHeadingClassName), children: ctaHeading }) : ctaHeading),
2746
- ctaDescription && (typeof ctaDescription === "string" ? /* @__PURE__ */ jsx(
2747
- "p",
2748
- {
2749
- className: cn(
2750
- "mx-auto mb-8 max-w-2xl",
2751
- getTextColor(background, "muted"),
2752
- ctaDescriptionClassName
2674
+ /* @__PURE__ */ jsxs(
2675
+ "div",
2676
+ {
2677
+ className: cn(
2678
+ "mt-10 md:mt-24 p-6 md:p-16",
2679
+ "text-center flex flex-col items-center",
2680
+ "bg-muted text-muted-foreground",
2681
+ "rounded-2xl shadow-lg",
2682
+ ctaClassName
2683
+ ),
2684
+ children: [
2685
+ ctaBadgeText && /* @__PURE__ */ jsx(
2686
+ "div",
2687
+ {
2688
+ className: cn(
2689
+ "mb-8 inline-flex items-center justify-center rounded-full p-1"
2690
+ ),
2691
+ children: /* @__PURE__ */ jsx(Badge, { className: "rounded-full bg-primary px-4 py-1 text-primary-foreground", children: ctaBadgeText })
2692
+ }
2753
2693
  ),
2754
- children: ctaDescription
2755
- }
2756
- ) : ctaDescription),
2757
- actionsContent
2758
- ] })
2694
+ ctaHeading && (typeof ctaHeading === "string" ? /* @__PURE__ */ jsx("h3", { className: cn("mb-4 text-2xl font-bold", ctaHeadingClassName), children: ctaHeading }) : ctaHeading),
2695
+ ctaDescription && (typeof ctaDescription === "string" ? /* @__PURE__ */ jsx(
2696
+ "p",
2697
+ {
2698
+ className: cn("mx-auto mb-8 max-w-2xl", ctaDescriptionClassName),
2699
+ children: ctaDescription
2700
+ }
2701
+ ) : ctaDescription),
2702
+ /* @__PURE__ */ jsx(
2703
+ BlockActions,
2704
+ {
2705
+ actions,
2706
+ actionsSlot,
2707
+ actionsClassName
2708
+ }
2709
+ )
2710
+ ]
2711
+ }
2712
+ )
2759
2713
  ]
2760
2714
  }
2761
2715
  );