@windrun-huaiin/third-ui 5.9.7 → 5.10.0

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.
@@ -3038,7 +3038,7 @@ function GradientButton({
3038
3038
 
3039
3039
  // src/main/gallery.tsx
3040
3040
  import { jsx as jsx36, jsxs as jsxs12 } from "react/jsx-runtime";
3041
- function Gallery() {
3041
+ function Gallery({ sectionClassName }) {
3042
3042
  const t = useTranslations("gallery");
3043
3043
  const galleryItems = t.raw("prompts");
3044
3044
  const handleDownload = (index) => __async(null, null, function* () {
@@ -3057,7 +3057,7 @@ function Gallery() {
3057
3057
  console.error("Download failed:", error);
3058
3058
  }
3059
3059
  });
3060
- return /* @__PURE__ */ jsxs12("section", { id: "gallery", className: "container mx-auto px-4 py-20", children: [
3060
+ return /* @__PURE__ */ jsxs12("section", { id: "gallery", className: cn("container mx-auto px-4 py-20 scroll-mt-20", sectionClassName), children: [
3061
3061
  /* @__PURE__ */ jsxs12("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-6", children: [
3062
3062
  t("titleL"),
3063
3063
  " ",
@@ -3100,10 +3100,10 @@ function Gallery() {
3100
3100
  // src/main/usage.tsx
3101
3101
  import { useTranslations as useTranslations2 } from "next-intl";
3102
3102
  import { jsx as jsx37, jsxs as jsxs13 } from "react/jsx-runtime";
3103
- function Usage() {
3103
+ function Usage({ sectionClassName }) {
3104
3104
  const t = useTranslations2("usage");
3105
3105
  const steps = t.raw("steps");
3106
- return /* @__PURE__ */ jsxs13("section", { id: "usage", className: "px-16 py-10 mx-16 md:mx-32", children: [
3106
+ return /* @__PURE__ */ jsxs13("section", { id: "usage", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
3107
3107
  /* @__PURE__ */ jsxs13("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [
3108
3108
  t("title"),
3109
3109
  " ",
@@ -3126,10 +3126,10 @@ function Usage() {
3126
3126
  // src/main/features.tsx
3127
3127
  import { useTranslations as useTranslations3 } from "next-intl";
3128
3128
  import { jsx as jsx38, jsxs as jsxs14 } from "react/jsx-runtime";
3129
- function Features() {
3129
+ function Features({ sectionClassName }) {
3130
3130
  const t = useTranslations3("features");
3131
3131
  const featureItems = t.raw("items");
3132
- return /* @__PURE__ */ jsxs14("section", { id: "features", className: "px-16 py-10 mx-16 md:mx-32", children: [
3132
+ return /* @__PURE__ */ jsxs14("section", { id: "features", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-18", sectionClassName), children: [
3133
3133
  /* @__PURE__ */ jsxs14("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [
3134
3134
  t("title"),
3135
3135
  " ",
@@ -3157,13 +3157,13 @@ function Features() {
3157
3157
  // src/main/tips.tsx
3158
3158
  import { useTranslations as useTranslations4 } from "next-intl";
3159
3159
  import { jsx as jsx39, jsxs as jsxs15 } from "react/jsx-runtime";
3160
- function Tips() {
3160
+ function Tips({ sectionClassName }) {
3161
3161
  const t = useTranslations4("tips");
3162
3162
  const sections = t.raw("sections");
3163
3163
  const midPoint = Math.ceil(sections.length / 2);
3164
3164
  const leftColumn = sections.slice(0, midPoint);
3165
3165
  const rightColumn = sections.slice(midPoint);
3166
- return /* @__PURE__ */ jsxs15("section", { id: "tips", className: "px-16 py-10 mx-16 md:mx-32", children: [
3166
+ return /* @__PURE__ */ jsxs15("section", { id: "tips", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
3167
3167
  /* @__PURE__ */ jsxs15("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-16", children: [
3168
3168
  t("title"),
3169
3169
  " ",
@@ -3180,7 +3180,7 @@ function Tips() {
3180
3180
  import { useState as useState2 } from "react";
3181
3181
  import { useTranslations as useTranslations5 } from "next-intl";
3182
3182
  import { jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
3183
- function FAQ() {
3183
+ function FAQ({ sectionClassName }) {
3184
3184
  const t = useTranslations5("faq");
3185
3185
  const items = t.raw("items");
3186
3186
  const [openArr, setOpenArr] = useState2(() => items.map(() => false));
@@ -3191,7 +3191,7 @@ function FAQ() {
3191
3191
  return next;
3192
3192
  });
3193
3193
  };
3194
- return /* @__PURE__ */ jsxs16("section", { id: "faq", className: "px-16 py-10 mx-16 md:mx-32", children: [
3194
+ return /* @__PURE__ */ jsxs16("section", { id: "faq", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
3195
3195
  /* @__PURE__ */ jsx40("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: t("title") }),
3196
3196
  /* @__PURE__ */ jsx40("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base md:text-lg mx-auto", children: t("description") }),
3197
3197
  /* @__PURE__ */ jsx40("div", { className: "space-y-6", children: items.map((item, idx) => {
@@ -3226,9 +3226,9 @@ function FAQ() {
3226
3226
  // src/main/seo-content.tsx
3227
3227
  import { useTranslations as useTranslations6 } from "next-intl";
3228
3228
  import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
3229
- function SeoContent() {
3229
+ function SeoContent({ sectionClassName }) {
3230
3230
  const t = useTranslations6("seoContent");
3231
- return /* @__PURE__ */ jsxs17("section", { id: "seo", className: "px-16 py-10 mx-16 md:mx-32", children: [
3231
+ return /* @__PURE__ */ jsxs17("section", { id: "seo", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
3232
3232
  /* @__PURE__ */ jsxs17("h1", { className: "text-3xl md:text-4xl font-bold text-center mb-8", children: [
3233
3233
  t("title"),
3234
3234
  " ",
@@ -3251,9 +3251,9 @@ function SeoContent() {
3251
3251
  // src/main/cta.tsx
3252
3252
  import { useTranslations as useTranslations7 } from "next-intl";
3253
3253
  import { jsx as jsx42, jsxs as jsxs18 } from "react/jsx-runtime";
3254
- function CTA() {
3254
+ function CTA({ sectionClassName }) {
3255
3255
  const t = useTranslations7("cta");
3256
- return /* @__PURE__ */ jsx42("section", { id: "cta", className: "px-16 py-20 mx-16 md:mx-32", children: /* @__PURE__ */ jsxs18("div", { className: "\n bg-gradient-to-r from-[#f7f8fa] via-[#e0c3fc] to-[#b2fefa]\n dark:bg-gradient-to-r dark:from-[#2d0b4e] dark:via-[#6a3fa0] dark:to-[#3a185a]\n rounded-2xl p-12 text-center\n bg-[length:200%_auto] animate-cta-gradient-wave\n ", children: [
3256
+ return /* @__PURE__ */ jsx42("section", { id: "cta", className: cn("px-16 py-20 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: /* @__PURE__ */ jsxs18("div", { className: "\n bg-gradient-to-r from-[#f7f8fa] via-[#e0c3fc] to-[#b2fefa]\n dark:bg-gradient-to-r dark:from-[#2d0b4e] dark:via-[#6a3fa0] dark:to-[#3a185a]\n rounded-2xl p-12 text-center\n bg-[length:200%_auto] animate-cta-gradient-wave\n ", children: [
3257
3257
  /* @__PURE__ */ jsxs18("h2", { className: "text-3xl md:text-4xl font-bold mb-6", children: [
3258
3258
  t("title"),
3259
3259
  " ",
@@ -3462,10 +3462,9 @@ function NProgressBar() {
3462
3462
  // src/main/price-plan.tsx
3463
3463
  import { useState as useState4 } from "react";
3464
3464
  import { useTranslations as useTranslations9 } from "next-intl";
3465
- import clsx3 from "clsx";
3466
3465
  import { useRouter } from "next/navigation";
3467
3466
  import { Fragment as Fragment5, jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
3468
- function PricePlan({ currency = "$", pricePlanConfig }) {
3467
+ function PricePlan({ currency = "$", pricePlanConfig, sectionClassName }) {
3469
3468
  var _a, _b;
3470
3469
  const t = useTranslations9("pricePlan");
3471
3470
  const billingSwitch = t.raw("billingSwitch");
@@ -3498,7 +3497,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
3498
3497
  if (typeof priceValue !== "number" || isNaN(priceValue)) {
3499
3498
  return /* @__PURE__ */ jsxs21("div", { className: "flex flex-col items-start w-full", children: [
3500
3499
  /* @__PURE__ */ jsx46("div", { className: "flex items-end gap-2", children: /* @__PURE__ */ jsx46("span", { className: "text-4xl font-extrabold text-gray-900 dark:text-gray-100", children: priceValue }) }),
3501
- /* @__PURE__ */ jsx46("div", { className: "flex items-center gap-2 min-h-[24px] mt-1", children: /* @__PURE__ */ jsx46("span", { className: clsx3("text-xs text-gray-700 dark:text-gray-300 font-medium", plan.showBillingSubTitle === false && "opacity-0 select-none"), children: plan.showBillingSubTitle === false ? "" : billingSubTitle }) })
3500
+ /* @__PURE__ */ jsx46("div", { className: "flex items-center gap-2 min-h-[24px] mt-1", children: /* @__PURE__ */ jsx46("span", { className: cn("text-xs text-gray-700 dark:text-gray-300 font-medium", plan.showBillingSubTitle === false && "opacity-0 select-none"), children: plan.showBillingSubTitle === false ? "" : billingSubTitle }) })
3502
3501
  ] });
3503
3502
  }
3504
3503
  const originValue = Number(priceValue);
@@ -3528,7 +3527,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
3528
3527
  ] }),
3529
3528
  discountText && /* @__PURE__ */ jsx46("span", { className: "px-2 py-0.5 text-xs rounded bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200 font-semibold align-middle", children: discountText })
3530
3529
  ] }),
3531
- /* @__PURE__ */ jsx46("span", { className: clsx3("text-xs text-gray-700 dark:text-gray-300 font-medium", plan.showBillingSubTitle === false && "opacity-0 select-none"), children: plan.showBillingSubTitle === false ? "" : billingSubTitle })
3530
+ /* @__PURE__ */ jsx46("span", { className: cn("text-xs text-gray-700 dark:text-gray-300 font-medium", plan.showBillingSubTitle === false && "opacity-0 select-none"), children: plan.showBillingSubTitle === false ? "" : billingSubTitle })
3532
3531
  ] })
3533
3532
  ] });
3534
3533
  }
@@ -3553,7 +3552,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
3553
3552
  };
3554
3553
  return /* @__PURE__ */ jsx46("div", { style, children: content });
3555
3554
  };
3556
- return /* @__PURE__ */ jsxs21("section", { id: "pricing", className: "px-4 py-10 md:px-16 md:py-16 mx-auto max-w-7xl", children: [
3555
+ 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: [
3557
3556
  /* @__PURE__ */ jsx46("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-3", children: t("title") }),
3558
3557
  /* @__PURE__ */ jsx46("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-8 text-base md:text-lg mx-auto", children: t("subtitle") }),
3559
3558
  /* @__PURE__ */ jsxs21("div", { className: "flex justify-center items-center gap-8 mb-12", children: [
@@ -3561,7 +3560,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
3561
3560
  /* @__PURE__ */ jsx46(
3562
3561
  "button",
3563
3562
  {
3564
- className: clsx3(
3563
+ className: cn(
3565
3564
  "min-w-[120px] px-6 py-2 rounded-full font-medium border transition text-lg",
3566
3565
  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",
3567
3566
  "mr-4"
@@ -3575,7 +3574,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
3575
3574
  const opt = billingSwitch.options.find((opt2) => opt2.key === "monthly");
3576
3575
  const bOpt = billingOptions.find((opt2) => opt2.key === "monthly");
3577
3576
  if (!(opt && bOpt && opt.discountText && bOpt.discount !== 0)) return /* @__PURE__ */ jsx46("span", { className: "min-w-[80px] px-2 py-1 text-xs rounded invisible" });
3578
- return /* @__PURE__ */ jsx46("span", { className: clsx3(
3577
+ return /* @__PURE__ */ jsx46("span", { className: cn(
3579
3578
  "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",
3580
3579
  billingKey !== "monthly" && "invisible"
3581
3580
  ), children: opt.discountText.replace(
@@ -3588,7 +3587,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
3588
3587
  /* @__PURE__ */ jsx46(
3589
3588
  "button",
3590
3589
  {
3591
- className: clsx3(
3590
+ className: cn(
3592
3591
  "min-w-[120px] px-6 py-2 rounded-full font-medium border transition text-lg",
3593
3592
  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",
3594
3593
  "ml-4"
@@ -3602,7 +3601,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
3602
3601
  const opt = billingSwitch.options.find((opt2) => opt2.key === "yearly");
3603
3602
  const bOpt = billingOptions.find((opt2) => opt2.key === "yearly");
3604
3603
  if (!(opt && bOpt && opt.discountText && bOpt.discount !== 0)) return /* @__PURE__ */ jsx46("span", { className: "min-w-[80px] px-2 py-1 text-xs rounded invisible" });
3605
- return /* @__PURE__ */ jsx46("span", { className: clsx3(
3604
+ return /* @__PURE__ */ jsx46("span", { className: cn(
3606
3605
  "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",
3607
3606
  billingKey !== "yearly" && "invisible"
3608
3607
  ), children: opt.discountText.replace(
@@ -3617,7 +3616,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
3617
3616
  return /* @__PURE__ */ jsxs21(
3618
3617
  "div",
3619
3618
  {
3620
- className: clsx3(
3619
+ className: cn(
3621
3620
  "flex flex-col bg-white dark:bg-gray-800/60 rounded-2xl border border-gray-300 dark:border-[#7c3aed40] transition p-8 h-full shadow-sm dark:shadow-none",
3622
3621
  "hover:border-2 hover:border-purple-500",
3623
3622
  "focus-within:border-2 focus-within:border-purple-500"
@@ -3659,7 +3658,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
3659
3658
  /* @__PURE__ */ jsx46(
3660
3659
  "button",
3661
3660
  {
3662
- className: clsx3(
3661
+ className: cn(
3663
3662
  "w-full py-2 mt-auto text-white text-base font-bold shadow-lg hover:shadow-xl transition-all duration-300 rounded-full",
3664
3663
  ((_a2 = plan.button) == null ? void 0 : _a2.disabled) ? "bg-gray-400 cursor-not-allowed" : "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 dark:hover:to-pink-700"
3665
3664
  ),
@@ -6037,16 +6036,6 @@ function AdsAlertDialog({
6037
6036
  // src/main/x-button.tsx
6038
6037
  import { useState as useState15, useRef as useRef12, useEffect as useEffect17 } from "react";
6039
6038
  import { Fragment as Fragment9, jsx as jsx56, jsxs as jsxs26 } from "react/jsx-runtime";
6040
- var XButtonIcons = {
6041
- copy: /* @__PURE__ */ jsx56(globalLucideIcons.Copy, { className: "w-5 h-5 mr-1" }),
6042
- checkCheck: /* @__PURE__ */ jsx56(globalLucideIcons.CheckCheck, { className: "w-5 h-5 mr-1" }),
6043
- globe: /* @__PURE__ */ jsx56(globalLucideIcons.Languages, { className: "w-5 h-5 mr-1" }),
6044
- loader: /* @__PURE__ */ jsx56(globalLucideIcons.Loader2, { className: "w-5 h-5 mr-1 animate-spin" }),
6045
- download: /* @__PURE__ */ jsx56(globalLucideIcons.Download, { className: "w-5 h-5 mr-1" }),
6046
- upload: /* @__PURE__ */ jsx56(globalLucideIcons.ImageUp, { className: "w-5 h-5 mr-1" }),
6047
- share: /* @__PURE__ */ jsx56(globalLucideIcons.Share, { className: "w-5 h-5 mr-1" }),
6048
- edit: /* @__PURE__ */ jsx56(globalLucideIcons.Pencil, { className: "w-5 h-5 mr-1" })
6049
- };
6050
6039
  function XButton(props) {
6051
6040
  var _a, _b;
6052
6041
  const [isLoading, setIsLoading] = useState15(false);
@@ -6186,8 +6175,7 @@ export {
6186
6175
  SeoContent,
6187
6176
  Tips,
6188
6177
  Usage,
6189
- XButton,
6190
- XButtonIcons
6178
+ XButton
6191
6179
  };
6192
6180
  /*! Bundled license information:
6193
6181