@windrun-huaiin/third-ui 5.9.8 → 5.10.1
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/main/index.d.mts +24 -8
- package/dist/main/index.d.ts +24 -8
- package/dist/main/index.js +25 -25
- package/dist/main/index.js.map +1 -1
- package/dist/main/index.mjs +25 -25
- package/dist/main/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/main/cta.tsx +3 -2
- package/src/main/faq.tsx +3 -2
- package/src/main/features.tsx +3 -2
- package/src/main/gallery.tsx +3 -2
- package/src/main/price-plan.tsx +12 -11
- package/src/main/seo-content.tsx +3 -2
- package/src/main/tips.tsx +3 -2
- package/src/main/usage.tsx +3 -2
- package/src/main/x-button.tsx +2 -0
package/dist/main/index.d.mts
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React, { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
declare function Gallery(
|
|
4
|
+
declare function Gallery({ sectionClassName }: {
|
|
5
|
+
sectionClassName?: string;
|
|
6
|
+
}): react_jsx_runtime.JSX.Element;
|
|
5
7
|
|
|
6
|
-
declare function Usage(
|
|
8
|
+
declare function Usage({ sectionClassName }: {
|
|
9
|
+
sectionClassName?: string;
|
|
10
|
+
}): react_jsx_runtime.JSX.Element;
|
|
7
11
|
|
|
8
|
-
declare function Features(
|
|
12
|
+
declare function Features({ sectionClassName }: {
|
|
13
|
+
sectionClassName?: string;
|
|
14
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
15
|
|
|
10
|
-
declare function Tips(
|
|
16
|
+
declare function Tips({ sectionClassName }: {
|
|
17
|
+
sectionClassName?: string;
|
|
18
|
+
}): react_jsx_runtime.JSX.Element;
|
|
11
19
|
|
|
12
|
-
declare function FAQ(
|
|
20
|
+
declare function FAQ({ sectionClassName }: {
|
|
21
|
+
sectionClassName?: string;
|
|
22
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
23
|
|
|
14
|
-
declare function SeoContent(
|
|
24
|
+
declare function SeoContent({ sectionClassName }: {
|
|
25
|
+
sectionClassName?: string;
|
|
26
|
+
}): react_jsx_runtime.JSX.Element;
|
|
15
27
|
|
|
16
|
-
declare function CTA(
|
|
28
|
+
declare function CTA({ sectionClassName }: {
|
|
29
|
+
sectionClassName?: string;
|
|
30
|
+
}): react_jsx_runtime.JSX.Element;
|
|
17
31
|
|
|
18
32
|
declare function Footer(): react_jsx_runtime.JSX.Element;
|
|
19
33
|
|
|
@@ -26,6 +40,7 @@ declare function NProgressBar(): null;
|
|
|
26
40
|
interface PricePlanProps {
|
|
27
41
|
currency?: string;
|
|
28
42
|
pricePlanConfig: PricePlanAppConfig;
|
|
43
|
+
sectionClassName?: string;
|
|
29
44
|
}
|
|
30
45
|
interface BillingOption {
|
|
31
46
|
key: string;
|
|
@@ -39,7 +54,7 @@ interface PricePlanAppConfig {
|
|
|
39
54
|
prices: Prices;
|
|
40
55
|
minPlanFeaturesCount: number;
|
|
41
56
|
}
|
|
42
|
-
declare function PricePlan({ currency, pricePlanConfig }: PricePlanProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
declare function PricePlan({ currency, pricePlanConfig, sectionClassName }: PricePlanProps): react_jsx_runtime.JSX.Element;
|
|
43
58
|
|
|
44
59
|
interface AdsAlertDialogProps {
|
|
45
60
|
open: boolean;
|
|
@@ -66,6 +81,7 @@ interface MenuItemConfig extends BaseButtonConfig {
|
|
|
66
81
|
text: string;
|
|
67
82
|
color?: string;
|
|
68
83
|
};
|
|
84
|
+
splitTopBorder?: boolean;
|
|
69
85
|
}
|
|
70
86
|
interface SingleButtonProps {
|
|
71
87
|
type: 'single';
|
package/dist/main/index.d.ts
CHANGED
|
@@ -1,19 +1,33 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import React, { ReactNode } from 'react';
|
|
3
3
|
|
|
4
|
-
declare function Gallery(
|
|
4
|
+
declare function Gallery({ sectionClassName }: {
|
|
5
|
+
sectionClassName?: string;
|
|
6
|
+
}): react_jsx_runtime.JSX.Element;
|
|
5
7
|
|
|
6
|
-
declare function Usage(
|
|
8
|
+
declare function Usage({ sectionClassName }: {
|
|
9
|
+
sectionClassName?: string;
|
|
10
|
+
}): react_jsx_runtime.JSX.Element;
|
|
7
11
|
|
|
8
|
-
declare function Features(
|
|
12
|
+
declare function Features({ sectionClassName }: {
|
|
13
|
+
sectionClassName?: string;
|
|
14
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
15
|
|
|
10
|
-
declare function Tips(
|
|
16
|
+
declare function Tips({ sectionClassName }: {
|
|
17
|
+
sectionClassName?: string;
|
|
18
|
+
}): react_jsx_runtime.JSX.Element;
|
|
11
19
|
|
|
12
|
-
declare function FAQ(
|
|
20
|
+
declare function FAQ({ sectionClassName }: {
|
|
21
|
+
sectionClassName?: string;
|
|
22
|
+
}): react_jsx_runtime.JSX.Element;
|
|
13
23
|
|
|
14
|
-
declare function SeoContent(
|
|
24
|
+
declare function SeoContent({ sectionClassName }: {
|
|
25
|
+
sectionClassName?: string;
|
|
26
|
+
}): react_jsx_runtime.JSX.Element;
|
|
15
27
|
|
|
16
|
-
declare function CTA(
|
|
28
|
+
declare function CTA({ sectionClassName }: {
|
|
29
|
+
sectionClassName?: string;
|
|
30
|
+
}): react_jsx_runtime.JSX.Element;
|
|
17
31
|
|
|
18
32
|
declare function Footer(): react_jsx_runtime.JSX.Element;
|
|
19
33
|
|
|
@@ -26,6 +40,7 @@ declare function NProgressBar(): null;
|
|
|
26
40
|
interface PricePlanProps {
|
|
27
41
|
currency?: string;
|
|
28
42
|
pricePlanConfig: PricePlanAppConfig;
|
|
43
|
+
sectionClassName?: string;
|
|
29
44
|
}
|
|
30
45
|
interface BillingOption {
|
|
31
46
|
key: string;
|
|
@@ -39,7 +54,7 @@ interface PricePlanAppConfig {
|
|
|
39
54
|
prices: Prices;
|
|
40
55
|
minPlanFeaturesCount: number;
|
|
41
56
|
}
|
|
42
|
-
declare function PricePlan({ currency, pricePlanConfig }: PricePlanProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
declare function PricePlan({ currency, pricePlanConfig, sectionClassName }: PricePlanProps): react_jsx_runtime.JSX.Element;
|
|
43
58
|
|
|
44
59
|
interface AdsAlertDialogProps {
|
|
45
60
|
open: boolean;
|
|
@@ -66,6 +81,7 @@ interface MenuItemConfig extends BaseButtonConfig {
|
|
|
66
81
|
text: string;
|
|
67
82
|
color?: string;
|
|
68
83
|
};
|
|
84
|
+
splitTopBorder?: boolean;
|
|
69
85
|
}
|
|
70
86
|
interface SingleButtonProps {
|
|
71
87
|
type: 'single';
|
package/dist/main/index.js
CHANGED
|
@@ -3080,7 +3080,7 @@ function GradientButton({
|
|
|
3080
3080
|
|
|
3081
3081
|
// src/main/gallery.tsx
|
|
3082
3082
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
3083
|
-
function Gallery() {
|
|
3083
|
+
function Gallery({ sectionClassName }) {
|
|
3084
3084
|
const t = (0, import_next_intl.useTranslations)("gallery");
|
|
3085
3085
|
const galleryItems = t.raw("prompts");
|
|
3086
3086
|
const handleDownload = (index) => __async(null, null, function* () {
|
|
@@ -3099,7 +3099,7 @@ function Gallery() {
|
|
|
3099
3099
|
console.error("Download failed:", error);
|
|
3100
3100
|
}
|
|
3101
3101
|
});
|
|
3102
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("section", { id: "gallery", className: "container mx-auto px-4 py-20", children: [
|
|
3102
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("section", { id: "gallery", className: cn("container mx-auto px-4 py-20 scroll-mt-20", sectionClassName), children: [
|
|
3103
3103
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-6", children: [
|
|
3104
3104
|
t("titleL"),
|
|
3105
3105
|
" ",
|
|
@@ -3142,10 +3142,10 @@ function Gallery() {
|
|
|
3142
3142
|
// src/main/usage.tsx
|
|
3143
3143
|
var import_next_intl2 = require("next-intl");
|
|
3144
3144
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
3145
|
-
function Usage() {
|
|
3145
|
+
function Usage({ sectionClassName }) {
|
|
3146
3146
|
const t = (0, import_next_intl2.useTranslations)("usage");
|
|
3147
3147
|
const steps = t.raw("steps");
|
|
3148
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("section", { id: "usage", className: "px-16 py-10 mx-16 md:mx-32", children: [
|
|
3148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("section", { id: "usage", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
|
|
3149
3149
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [
|
|
3150
3150
|
t("title"),
|
|
3151
3151
|
" ",
|
|
@@ -3168,10 +3168,10 @@ function Usage() {
|
|
|
3168
3168
|
// src/main/features.tsx
|
|
3169
3169
|
var import_next_intl3 = require("next-intl");
|
|
3170
3170
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
3171
|
-
function Features() {
|
|
3171
|
+
function Features({ sectionClassName }) {
|
|
3172
3172
|
const t = (0, import_next_intl3.useTranslations)("features");
|
|
3173
3173
|
const featureItems = t.raw("items");
|
|
3174
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("section", { id: "features", className: "px-16 py-10 mx-16 md:mx-32", children: [
|
|
3174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("section", { id: "features", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-18", sectionClassName), children: [
|
|
3175
3175
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: [
|
|
3176
3176
|
t("title"),
|
|
3177
3177
|
" ",
|
|
@@ -3199,13 +3199,13 @@ function Features() {
|
|
|
3199
3199
|
// src/main/tips.tsx
|
|
3200
3200
|
var import_next_intl4 = require("next-intl");
|
|
3201
3201
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
3202
|
-
function Tips() {
|
|
3202
|
+
function Tips({ sectionClassName }) {
|
|
3203
3203
|
const t = (0, import_next_intl4.useTranslations)("tips");
|
|
3204
3204
|
const sections = t.raw("sections");
|
|
3205
3205
|
const midPoint = Math.ceil(sections.length / 2);
|
|
3206
3206
|
const leftColumn = sections.slice(0, midPoint);
|
|
3207
3207
|
const rightColumn = sections.slice(midPoint);
|
|
3208
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("section", { id: "tips", className: "px-16 py-10 mx-16 md:mx-32", children: [
|
|
3208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("section", { id: "tips", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
|
|
3209
3209
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-16", children: [
|
|
3210
3210
|
t("title"),
|
|
3211
3211
|
" ",
|
|
@@ -3222,7 +3222,7 @@ function Tips() {
|
|
|
3222
3222
|
var import_react36 = require("react");
|
|
3223
3223
|
var import_next_intl5 = require("next-intl");
|
|
3224
3224
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
3225
|
-
function FAQ() {
|
|
3225
|
+
function FAQ({ sectionClassName }) {
|
|
3226
3226
|
const t = (0, import_next_intl5.useTranslations)("faq");
|
|
3227
3227
|
const items = t.raw("items");
|
|
3228
3228
|
const [openArr, setOpenArr] = (0, import_react36.useState)(() => items.map(() => false));
|
|
@@ -3233,7 +3233,7 @@ function FAQ() {
|
|
|
3233
3233
|
return next;
|
|
3234
3234
|
});
|
|
3235
3235
|
};
|
|
3236
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("section", { id: "faq", className: "px-16 py-10 mx-16 md:mx-32", children: [
|
|
3236
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("section", { id: "faq", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
|
|
3237
3237
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-4", children: t("title") }),
|
|
3238
3238
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-12 text-base md:text-lg mx-auto", children: t("description") }),
|
|
3239
3239
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "space-y-6", children: items.map((item, idx) => {
|
|
@@ -3268,9 +3268,9 @@ function FAQ() {
|
|
|
3268
3268
|
// src/main/seo-content.tsx
|
|
3269
3269
|
var import_next_intl6 = require("next-intl");
|
|
3270
3270
|
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
3271
|
-
function SeoContent() {
|
|
3271
|
+
function SeoContent({ sectionClassName }) {
|
|
3272
3272
|
const t = (0, import_next_intl6.useTranslations)("seoContent");
|
|
3273
|
-
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("section", { id: "seo", className: "px-16 py-10 mx-16 md:mx-32", children: [
|
|
3273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("section", { id: "seo", className: cn("px-16 py-10 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: [
|
|
3274
3274
|
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("h1", { className: "text-3xl md:text-4xl font-bold text-center mb-8", children: [
|
|
3275
3275
|
t("title"),
|
|
3276
3276
|
" ",
|
|
@@ -3293,9 +3293,9 @@ function SeoContent() {
|
|
|
3293
3293
|
// src/main/cta.tsx
|
|
3294
3294
|
var import_next_intl7 = require("next-intl");
|
|
3295
3295
|
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3296
|
-
function CTA() {
|
|
3296
|
+
function CTA({ sectionClassName }) {
|
|
3297
3297
|
const t = (0, import_next_intl7.useTranslations)("cta");
|
|
3298
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("section", { id: "cta", className: "px-16 py-20 mx-16 md:mx-32", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("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: [
|
|
3298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("section", { id: "cta", className: cn("px-16 py-20 mx-16 md:mx-32 scroll-mt-20", sectionClassName), children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("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: [
|
|
3299
3299
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("h2", { className: "text-3xl md:text-4xl font-bold mb-6", children: [
|
|
3300
3300
|
t("title"),
|
|
3301
3301
|
" ",
|
|
@@ -3504,10 +3504,9 @@ function NProgressBar() {
|
|
|
3504
3504
|
// src/main/price-plan.tsx
|
|
3505
3505
|
var import_react39 = require("react");
|
|
3506
3506
|
var import_next_intl9 = require("next-intl");
|
|
3507
|
-
var import_clsx3 = __toESM(require("clsx"));
|
|
3508
3507
|
var import_navigation2 = require("next/navigation");
|
|
3509
3508
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3510
|
-
function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
3509
|
+
function PricePlan({ currency = "$", pricePlanConfig, sectionClassName }) {
|
|
3511
3510
|
var _a, _b;
|
|
3512
3511
|
const t = (0, import_next_intl9.useTranslations)("pricePlan");
|
|
3513
3512
|
const billingSwitch = t.raw("billingSwitch");
|
|
@@ -3540,7 +3539,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
|
3540
3539
|
if (typeof priceValue !== "number" || isNaN(priceValue)) {
|
|
3541
3540
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-col items-start w-full", children: [
|
|
3542
3541
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-end gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "text-4xl font-extrabold text-gray-900 dark:text-gray-100", children: priceValue }) }),
|
|
3543
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-center gap-2 min-h-[24px] mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: (
|
|
3542
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: "flex items-center gap-2 min-h-[24px] mt-1", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("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 }) })
|
|
3544
3543
|
] });
|
|
3545
3544
|
}
|
|
3546
3545
|
const originValue = Number(priceValue);
|
|
@@ -3570,7 +3569,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
|
3570
3569
|
] }),
|
|
3571
3570
|
discountText && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("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 })
|
|
3572
3571
|
] }),
|
|
3573
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: (
|
|
3572
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("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 })
|
|
3574
3573
|
] })
|
|
3575
3574
|
] });
|
|
3576
3575
|
}
|
|
@@ -3595,7 +3594,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
|
3595
3594
|
};
|
|
3596
3595
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { style, children: content });
|
|
3597
3596
|
};
|
|
3598
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("section", { id: "pricing", className: "px-4 py-10 md:px-16 md:py-16 mx-auto max-w-7xl", children: [
|
|
3597
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("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: [
|
|
3599
3598
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("h2", { className: "text-3xl md:text-4xl font-bold text-center mb-3", children: t("title") }),
|
|
3600
3599
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("p", { className: "text-center text-gray-600 dark:text-gray-400 mb-8 text-base md:text-lg mx-auto", children: t("subtitle") }),
|
|
3601
3600
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex justify-center items-center gap-8 mb-12", children: [
|
|
@@ -3603,7 +3602,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
|
3603
3602
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3604
3603
|
"button",
|
|
3605
3604
|
{
|
|
3606
|
-
className: (
|
|
3605
|
+
className: cn(
|
|
3607
3606
|
"min-w-[120px] px-6 py-2 rounded-full font-medium border transition text-lg",
|
|
3608
3607
|
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",
|
|
3609
3608
|
"mr-4"
|
|
@@ -3617,7 +3616,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
|
3617
3616
|
const opt = billingSwitch.options.find((opt2) => opt2.key === "monthly");
|
|
3618
3617
|
const bOpt = billingOptions.find((opt2) => opt2.key === "monthly");
|
|
3619
3618
|
if (!(opt && bOpt && opt.discountText && bOpt.discount !== 0)) return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "min-w-[80px] px-2 py-1 text-xs rounded invisible" });
|
|
3620
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: (
|
|
3619
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: cn(
|
|
3621
3620
|
"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",
|
|
3622
3621
|
billingKey !== "monthly" && "invisible"
|
|
3623
3622
|
), children: opt.discountText.replace(
|
|
@@ -3630,7 +3629,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
|
3630
3629
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3631
3630
|
"button",
|
|
3632
3631
|
{
|
|
3633
|
-
className: (
|
|
3632
|
+
className: cn(
|
|
3634
3633
|
"min-w-[120px] px-6 py-2 rounded-full font-medium border transition text-lg",
|
|
3635
3634
|
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",
|
|
3636
3635
|
"ml-4"
|
|
@@ -3644,7 +3643,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
|
3644
3643
|
const opt = billingSwitch.options.find((opt2) => opt2.key === "yearly");
|
|
3645
3644
|
const bOpt = billingOptions.find((opt2) => opt2.key === "yearly");
|
|
3646
3645
|
if (!(opt && bOpt && opt.discountText && bOpt.discount !== 0)) return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: "min-w-[80px] px-2 py-1 text-xs rounded invisible" });
|
|
3647
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: (
|
|
3646
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("span", { className: cn(
|
|
3648
3647
|
"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",
|
|
3649
3648
|
billingKey !== "yearly" && "invisible"
|
|
3650
3649
|
), children: opt.discountText.replace(
|
|
@@ -3659,7 +3658,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
|
3659
3658
|
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3660
3659
|
"div",
|
|
3661
3660
|
{
|
|
3662
|
-
className: (
|
|
3661
|
+
className: cn(
|
|
3663
3662
|
"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",
|
|
3664
3663
|
"hover:border-2 hover:border-purple-500",
|
|
3665
3664
|
"focus-within:border-2 focus-within:border-purple-500"
|
|
@@ -3701,7 +3700,7 @@ function PricePlan({ currency = "$", pricePlanConfig }) {
|
|
|
3701
3700
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
|
|
3702
3701
|
"button",
|
|
3703
3702
|
{
|
|
3704
|
-
className: (
|
|
3703
|
+
className: cn(
|
|
3705
3704
|
"w-full py-2 mt-auto text-white text-base font-bold shadow-lg hover:shadow-xl transition-all duration-300 rounded-full",
|
|
3706
3705
|
((_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"
|
|
3707
3706
|
),
|
|
@@ -6183,6 +6182,7 @@ function XButton(props) {
|
|
|
6183
6182
|
},
|
|
6184
6183
|
disabled: item.disabled,
|
|
6185
6184
|
className: `flex items-center w-full px-4 py-3 transition hover:bg-neutral-300 dark:hover:bg-neutral-600 text-left relative ${item.disabled ? disabledClass : ""}`,
|
|
6185
|
+
style: item.splitTopBorder ? { borderTop: "1px solid #AC62FD" } : void 0,
|
|
6186
6186
|
children: [
|
|
6187
6187
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("span", { className: "flex items-center", children: [
|
|
6188
6188
|
item.icon,
|