@windrun-huaiin/third-ui 5.12.2 → 5.12.3

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.
@@ -3598,77 +3598,58 @@ function PricePlan({ currency = "$", pricePlanConfig, sectionClassName }) {
3598
3598
  top: Math.max(8, y),
3599
3599
  zIndex: 9999,
3600
3600
  maxWidth: 200,
3601
- background: "#222",
3602
- color: "#fff",
3603
- borderRadius: 10,
3604
- padding: "16px",
3605
- boxShadow: "0 4px 24px 0 rgba(0,0,0,0.25)",
3606
- fontSize: 15,
3607
- lineHeight: 1.6,
3601
+ transform: "translateY(-50%)",
3608
3602
  pointerEvents: "none",
3609
- whiteSpace: "pre-line",
3610
- transform: "translateY(-50%)"
3603
+ whiteSpace: "pre-line"
3611
3604
  };
3612
- return /* @__PURE__ */ jsx47("div", { style, children: content });
3605
+ return /* @__PURE__ */ jsx47(
3606
+ "div",
3607
+ {
3608
+ style,
3609
+ className: "bg-gray-700 dark:bg-gray-200 text-gray-100 dark:text-gray-800 text-xs leading-relaxed px-3 py-2 rounded-lg shadow-lg border border-gray-300 dark:border-gray-600 backdrop-blur-sm",
3610
+ children: content
3611
+ }
3612
+ );
3613
3613
  };
3614
3614
  return /* @__PURE__ */ jsxs21("section", { id: "pricing", className: cn("px-4 py-10 md:px-16 md:py-16 mx-auto max-w-7xl scroll-mt-10", sectionClassName), children: [
3615
3615
  /* @__PURE__ */ jsx47("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-3", children: t("title") }),
3616
3616
  /* @__PURE__ */ jsx47("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-8 text-base md:text-lg mx-auto", children: t("subtitle") }),
3617
- /* @__PURE__ */ jsxs21("div", { className: "flex justify-center items-center gap-8 mb-12", children: [
3618
- /* @__PURE__ */ jsxs21("div", { className: "flex flex-row-reverse items-center gap-2 w-[180px] justify-end", children: [
3617
+ /* @__PURE__ */ jsxs21("div", { className: "flex flex-col items-center", children: [
3618
+ /* @__PURE__ */ jsx47("div", { className: "flex items-center relative mb-3", children: /* @__PURE__ */ jsxs21("div", { className: "flex bg-white dark:bg-gray-900 border border-gray-300 dark:border-gray-700 rounded-full p-1", children: [
3619
3619
  /* @__PURE__ */ jsx47(
3620
3620
  "button",
3621
3621
  {
3622
3622
  className: cn(
3623
- "min-w-[120px] px-6 py-2 rounded-full font-medium border transition text-lg",
3624
- billingKey === "monthly" ? "text-white bg-gradient-to-r from-purple-400 to-pink-500 hover:from-purple-500 hover:to-pink-600 dark:from-purple-500 dark:to-pink-600 dark:hover:from-purple-600" : "bg-white dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200 hover:border-purple-400",
3625
- "mr-4"
3623
+ "min-w-[120px] px-6 py-2 font-medium transition text-lg relative",
3624
+ billingKey === "monthly" ? "text-white bg-gradient-to-r from-purple-400 to-pink-500 hover:from-purple-500 hover:to-pink-600 dark:from-purple-500 dark:to-pink-600 dark:hover:from-purple-600 rounded-full shadow-sm" : "text-gray-800 dark:text-gray-200 hover:text-gray-900 dark:hover:text-gray-100 rounded-full"
3626
3625
  ),
3627
3626
  onClick: () => setBillingKey("monthly"),
3628
3627
  type: "button",
3629
3628
  children: ((_a = billingSwitch.options.find((opt) => opt.key === "monthly")) == null ? void 0 : _a.name) || "Monthly"
3630
3629
  }
3631
3630
  ),
3632
- (() => {
3633
- const opt = billingSwitch.options.find((opt2) => opt2.key === "monthly");
3634
- const bOpt = billingOptions.find((opt2) => opt2.key === "monthly");
3635
- if (!(opt && bOpt && opt.discountText && bOpt.discount !== 0)) return /* @__PURE__ */ jsx47("span", { className: "min-w-[80px] px-2 py-1 text-xs rounded invisible" });
3636
- return /* @__PURE__ */ jsx47("span", { className: cn(
3637
- "min-w-[80px] px-2 py-1 text-xs rounded bg-yellow-100 text-yellow-800 font-semibold align-middle text-center inline-flex items-center justify-center whitespace-nowrap",
3638
- billingKey !== "monthly" && "invisible"
3639
- ), children: opt.discountText.replace(
3640
- "{percent}",
3641
- String(Math.round(Math.abs(bOpt.discount) * 100))
3642
- ) });
3643
- })()
3644
- ] }),
3645
- /* @__PURE__ */ jsxs21("div", { className: "flex items-center gap-2 w-[180px] justify-start", children: [
3646
3631
  /* @__PURE__ */ jsx47(
3647
3632
  "button",
3648
3633
  {
3649
3634
  className: cn(
3650
- "min-w-[120px] px-6 py-2 rounded-full font-medium border transition text-lg",
3651
- billingKey === "yearly" ? "text-white bg-gradient-to-r from-purple-400 to-pink-500 hover:from-purple-500 hover:to-pink-600 dark:from-purple-500 dark:to-pink-600 dark:hover:from-purple-600" : "bg-white dark:bg-gray-900 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200 hover:border-purple-400",
3652
- "ml-4"
3635
+ "min-w-[120px] px-6 py-2 font-medium transition text-lg relative",
3636
+ billingKey === "yearly" ? "text-white bg-gradient-to-r from-purple-400 to-pink-500 hover:from-purple-500 hover:to-pink-600 dark:from-purple-500 dark:to-pink-600 dark:hover:from-purple-600 rounded-full shadow-sm" : "text-gray-800 dark:text-gray-200 hover:text-gray-900 dark:hover:text-gray-100 rounded-full"
3653
3637
  ),
3654
3638
  onClick: () => setBillingKey("yearly"),
3655
3639
  type: "button",
3656
3640
  children: ((_b = billingSwitch.options.find((opt) => opt.key === "yearly")) == null ? void 0 : _b.name) || "Yearly"
3657
3641
  }
3658
- ),
3659
- (() => {
3660
- const opt = billingSwitch.options.find((opt2) => opt2.key === "yearly");
3661
- const bOpt = billingOptions.find((opt2) => opt2.key === "yearly");
3662
- if (!(opt && bOpt && opt.discountText && bOpt.discount !== 0)) return /* @__PURE__ */ jsx47("span", { className: "min-w-[80px] px-2 py-1 text-xs rounded invisible" });
3663
- return /* @__PURE__ */ jsx47("span", { className: cn(
3664
- "min-w-[80px] px-2 py-1 text-xs rounded bg-yellow-100 text-yellow-800 font-semibold align-middle text-center inline-flex items-center justify-center whitespace-nowrap",
3665
- billingKey !== "yearly" && "invisible"
3666
- ), children: opt.discountText.replace(
3667
- "{percent}",
3668
- String(Math.round(Math.abs(bOpt.discount) * 100))
3669
- ) });
3670
- })()
3671
- ] })
3642
+ )
3643
+ ] }) }),
3644
+ /* @__PURE__ */ jsx47("div", { className: "h-8 flex items-center justify-center mb-3", children: (() => {
3645
+ const opt = billingSwitch.options.find((opt2) => opt2.key === billingKey);
3646
+ const bOpt = billingOptions.find((opt2) => opt2.key === billingKey);
3647
+ if (!(opt && bOpt && opt.discountText && bOpt.discount !== 0)) return null;
3648
+ return /* @__PURE__ */ jsx47("span", { className: "px-2 py-1 text-xs rounded bg-yellow-100 text-yellow-800 font-semibold align-middle text-center inline-flex items-center justify-center whitespace-nowrap", children: opt.discountText.replace(
3649
+ "{percent}",
3650
+ String(Math.round(Math.abs(bOpt.discount) * 100))
3651
+ ) });
3652
+ })() })
3672
3653
  ] }),
3673
3654
  /* @__PURE__ */ jsx47("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-8", children: plans.map((plan, _idx) => {
3674
3655
  var _a2, _b2, _c;