@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.
- package/dist/fuma/mdx/index.d.mts +4 -12
- package/dist/fuma/mdx/index.d.ts +4 -12
- package/dist/fuma/mdx/index.js +22 -10
- package/dist/fuma/mdx/index.js.map +1 -1
- package/dist/fuma/mdx/index.mjs +22 -10
- package/dist/fuma/mdx/index.mjs.map +1 -1
- package/dist/fuma/server.d.mts +5 -3
- package/dist/fuma/server.d.ts +5 -3
- package/dist/fuma/server.js +4 -2
- package/dist/fuma/server.js.map +1 -1
- package/dist/fuma/server.mjs +4 -2
- package/dist/fuma/server.mjs.map +1 -1
- package/dist/main/index.js +17 -8
- package/dist/main/index.js.map +1 -1
- package/dist/main/index.mjs +17 -8
- package/dist/main/index.mjs.map +1 -1
- package/dist/toc-base-BC7kXpDU.d.mts +15 -0
- package/dist/toc-base-BC7kXpDU.d.ts +15 -0
- package/package.json +1 -1
- package/src/fuma/fuma-page-genarator.tsx +15 -5
- package/src/fuma/mdx/gradient-button.tsx +8 -2
- package/src/fuma/mdx/toc-base.tsx +10 -2
package/dist/main/index.js
CHANGED
|
@@ -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("
|
|
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)(
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
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
|
}
|