@windrun-huaiin/third-ui 5.8.0 → 5.8.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.
@@ -54,11 +54,12 @@ type ZiaCardProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
54
54
  };
55
55
  declare function ZiaCard({ icon, title, description, ...props }: ZiaCardProps): react_jsx_runtime.JSX.Element;
56
56
 
57
- declare function GradientButton({ title, icon, href, align, }: {
57
+ declare function GradientButton({ title, icon, href, align, openInNewTab, }: {
58
58
  title: React.ReactNode;
59
59
  icon?: React.ReactNode;
60
60
  href: string;
61
61
  align?: 'left' | 'center' | 'right';
62
+ openInNewTab?: boolean;
62
63
  }): react_jsx_runtime.JSX.Element;
63
64
 
64
65
  declare function FumaBannerSuit({ showText }: {
@@ -54,11 +54,12 @@ type ZiaCardProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
54
54
  };
55
55
  declare function ZiaCard({ icon, title, description, ...props }: ZiaCardProps): react_jsx_runtime.JSX.Element;
56
56
 
57
- declare function GradientButton({ title, icon, href, align, }: {
57
+ declare function GradientButton({ title, icon, href, align, openInNewTab, }: {
58
58
  title: React.ReactNode;
59
59
  icon?: React.ReactNode;
60
60
  href: string;
61
61
  align?: 'left' | 'center' | 'right';
62
+ openInNewTab?: boolean;
62
63
  }): react_jsx_runtime.JSX.Element;
63
64
 
64
65
  declare function FumaBannerSuit({ showText }: {
@@ -3075,14 +3075,15 @@ var Button = React35.forwardRef(
3075
3075
  Button.displayName = "Button";
3076
3076
 
3077
3077
  // src/fuma/mdx/gradient-button.tsx
3078
- var import_link3 = __toESM(require("fumadocs-core/link"));
3078
+ var import_link3 = __toESM(require("next/link"));
3079
3079
  var import_react37 = __toESM(require("react"));
3080
3080
  var import_jsx_runtime40 = require("react/jsx-runtime");
3081
3081
  function GradientButton({
3082
3082
  title,
3083
3083
  icon,
3084
3084
  href,
3085
- align = "left"
3085
+ align = "left",
3086
+ openInNewTab = true
3086
3087
  }) {
3087
3088
  const getAlignmentClass = () => {
3088
3089
  switch (align) {
@@ -3100,12 +3101,20 @@ function GradientButton({
3100
3101
  asChild: true,
3101
3102
  size: "lg",
3102
3103
  className: "\n bg-gradient-to-r \n from-purple-400 to-pink-500 \n hover:from-purple-500 hover:to-pink-600\n dark:from-purple-500 dark:to-pink-600 \n dark:hover:from-purple-600 dark:hover:to-pink-700\n text-white text-base font-bold shadow-lg hover:shadow-xl\n transition-all duration-300\n rounded-full\n ",
3103
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(import_link3.default, { href, target: "_blank", rel: "noopener noreferrer", className: "no-underline hover:no-underline", children: [
3104
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: title }),
3105
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "ml-1", children: icon ? import_react37.default.cloneElement(icon, {
3106
- className: "h-4 w-4 text-white"
3107
- }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(globalLucideIcons.ArrowRight, { className: "h-4 w-4 text-white" }) })
3108
- ] })
3104
+ children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
3105
+ import_link3.default,
3106
+ __spreadProps(__spreadValues({
3107
+ href,
3108
+ className: "no-underline hover:no-underline"
3109
+ }, openInNewTab ? { target: "_blank", rel: "noopener noreferrer" } : {}), {
3110
+ children: [
3111
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { children: title }),
3112
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "ml-1", children: icon ? import_react37.default.cloneElement(icon, {
3113
+ className: "h-4 w-4 text-white"
3114
+ }) : /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(globalLucideIcons.ArrowRight, { className: "h-4 w-4 text-white" }) })
3115
+ ]
3116
+ })
3117
+ )
3109
3118
  }
3110
3119
  ) });
3111
3120
  }