@windrun-huaiin/third-ui 5.7.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.
@@ -2881,14 +2881,15 @@ var Button = React35.forwardRef(
2881
2881
  Button.displayName = "Button";
2882
2882
 
2883
2883
  // src/fuma/mdx/gradient-button.tsx
2884
- var import_link2 = __toESM(require("fumadocs-core/link"));
2884
+ var import_link2 = __toESM(require("next/link"));
2885
2885
  var import_react35 = __toESM(require("react"));
2886
2886
  var import_jsx_runtime35 = require("react/jsx-runtime");
2887
2887
  function GradientButton({
2888
2888
  title,
2889
2889
  icon,
2890
2890
  href,
2891
- align = "left"
2891
+ align = "left",
2892
+ openInNewTab = true
2892
2893
  }) {
2893
2894
  const getAlignmentClass = () => {
2894
2895
  switch (align) {
@@ -2906,12 +2907,20 @@ function GradientButton({
2906
2907
  asChild: true,
2907
2908
  size: "lg",
2908
2909
  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 ",
2909
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_link2.default, { href, target: "_blank", rel: "noopener noreferrer", className: "no-underline hover:no-underline", children: [
2910
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children: title }),
2911
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "ml-1", children: icon ? import_react35.default.cloneElement(icon, {
2912
- className: "h-4 w-4 text-white"
2913
- }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(globalLucideIcons.ArrowRight, { className: "h-4 w-4 text-white" }) })
2914
- ] })
2910
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
2911
+ import_link2.default,
2912
+ __spreadProps(__spreadValues({
2913
+ href,
2914
+ className: "no-underline hover:no-underline"
2915
+ }, openInNewTab ? { target: "_blank", rel: "noopener noreferrer" } : {}), {
2916
+ children: [
2917
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { children: title }),
2918
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "ml-1", children: icon ? import_react35.default.cloneElement(icon, {
2919
+ className: "h-4 w-4 text-white"
2920
+ }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(globalLucideIcons.ArrowRight, { className: "h-4 w-4 text-white" }) })
2921
+ ]
2922
+ })
2923
+ )
2915
2924
  }
2916
2925
  ) });
2917
2926
  }