@windrun-huaiin/third-ui 5.6.0 → 5.6.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 +9 -22
- package/dist/fuma/mdx/index.d.ts +9 -22
- package/dist/fuma/mdx/index.js +55 -55
- package/dist/fuma/mdx/index.js.map +1 -1
- package/dist/fuma/mdx/index.mjs +54 -54
- package/dist/fuma/mdx/index.mjs.map +1 -1
- package/dist/fuma/server.js +94 -49
- package/dist/fuma/server.js.map +1 -1
- package/dist/fuma/server.mjs +98 -49
- package/dist/fuma/server.mjs.map +1 -1
- package/package.json +1 -1
- package/src/fuma/fuma-page-genarator.tsx +3 -3
- package/src/fuma/mdx/index.ts +2 -2
- package/src/fuma/mdx/toc-footer-wrapper.tsx +20 -0
- package/src/fuma/mdx/toc.tsx +0 -35
|
@@ -60,27 +60,6 @@ declare function GradientButton({ title, icon, href, align, }: {
|
|
|
60
60
|
align?: 'left' | 'center' | 'right';
|
|
61
61
|
}): react_jsx_runtime.JSX.Element;
|
|
62
62
|
|
|
63
|
-
interface TocFooterProps {
|
|
64
|
-
/**
|
|
65
|
-
* The last modified date of the page.
|
|
66
|
-
*/
|
|
67
|
-
lastModified: string | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* The path to the file for the \"Edit on GitHub\" link.
|
|
70
|
-
* This should be the relative path from the repository root, e.g., 'src/mdx/docs/your-page.mdx'.
|
|
71
|
-
*/
|
|
72
|
-
editPath?: string | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* Whether to show the copy button.
|
|
75
|
-
*/
|
|
76
|
-
showCopy?: boolean | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* GitHub base URL for edit links
|
|
79
|
-
*/
|
|
80
|
-
githubBaseUrl?: string;
|
|
81
|
-
}
|
|
82
|
-
declare function TocFooter({ lastModified, showCopy, editPath, githubBaseUrl }: TocFooterProps): react_jsx_runtime.JSX.Element;
|
|
83
|
-
|
|
84
63
|
declare function LLMCopyButton({ llmApiUrl }?: {
|
|
85
64
|
llmApiUrl?: string;
|
|
86
65
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -135,4 +114,12 @@ interface ZiaFolderProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
135
114
|
declare function ZiaFile({ name, icon, className, anotion, href, ...rest }: ZiaFileProps): React.ReactElement;
|
|
136
115
|
declare function ZiaFolder({ name, anotion, defaultOpen, className, children, ...props }: ZiaFolderProps): React.ReactElement;
|
|
137
116
|
|
|
138
|
-
|
|
117
|
+
interface TocFooterProps {
|
|
118
|
+
lastModified: string | undefined;
|
|
119
|
+
editPath?: string;
|
|
120
|
+
githubBaseUrl?: string;
|
|
121
|
+
showCopy?: boolean;
|
|
122
|
+
}
|
|
123
|
+
declare function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, showCopy }: TocFooterProps): react_jsx_runtime.JSX.Element;
|
|
124
|
+
|
|
125
|
+
export { EditOnGitHub, FumaBannerSuit, FumaGithubInfo, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, LLMCopyButton, LastUpdatedDate, Mermaid, SiteX, type SiteXProps, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
|
package/dist/fuma/mdx/index.d.ts
CHANGED
|
@@ -60,27 +60,6 @@ declare function GradientButton({ title, icon, href, align, }: {
|
|
|
60
60
|
align?: 'left' | 'center' | 'right';
|
|
61
61
|
}): react_jsx_runtime.JSX.Element;
|
|
62
62
|
|
|
63
|
-
interface TocFooterProps {
|
|
64
|
-
/**
|
|
65
|
-
* The last modified date of the page.
|
|
66
|
-
*/
|
|
67
|
-
lastModified: string | undefined;
|
|
68
|
-
/**
|
|
69
|
-
* The path to the file for the \"Edit on GitHub\" link.
|
|
70
|
-
* This should be the relative path from the repository root, e.g., 'src/mdx/docs/your-page.mdx'.
|
|
71
|
-
*/
|
|
72
|
-
editPath?: string | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* Whether to show the copy button.
|
|
75
|
-
*/
|
|
76
|
-
showCopy?: boolean | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* GitHub base URL for edit links
|
|
79
|
-
*/
|
|
80
|
-
githubBaseUrl?: string;
|
|
81
|
-
}
|
|
82
|
-
declare function TocFooter({ lastModified, showCopy, editPath, githubBaseUrl }: TocFooterProps): react_jsx_runtime.JSX.Element;
|
|
83
|
-
|
|
84
63
|
declare function LLMCopyButton({ llmApiUrl }?: {
|
|
85
64
|
llmApiUrl?: string;
|
|
86
65
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -135,4 +114,12 @@ interface ZiaFolderProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
135
114
|
declare function ZiaFile({ name, icon, className, anotion, href, ...rest }: ZiaFileProps): React.ReactElement;
|
|
136
115
|
declare function ZiaFolder({ name, anotion, defaultOpen, className, children, ...props }: ZiaFolderProps): React.ReactElement;
|
|
137
116
|
|
|
138
|
-
|
|
117
|
+
interface TocFooterProps {
|
|
118
|
+
lastModified: string | undefined;
|
|
119
|
+
editPath?: string;
|
|
120
|
+
githubBaseUrl?: string;
|
|
121
|
+
showCopy?: boolean;
|
|
122
|
+
}
|
|
123
|
+
declare function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, showCopy }: TocFooterProps): react_jsx_runtime.JSX.Element;
|
|
124
|
+
|
|
125
|
+
export { EditOnGitHub, FumaBannerSuit, FumaGithubInfo, GradientButton, ImageGrid, ImageZoom, type ImageZoomProps, LLMCopyButton, LastUpdatedDate, Mermaid, SiteX, type SiteXProps, TocFooterWrapper, TrophyCard, ZiaCard, type ZiaCardProps, ZiaFile, type ZiaFileProps, ZiaFolder, type ZiaFolderProps };
|
package/dist/fuma/mdx/index.js
CHANGED
|
@@ -90,7 +90,7 @@ __export(mdx_exports, {
|
|
|
90
90
|
LastUpdatedDate: () => LastUpdatedDate,
|
|
91
91
|
Mermaid: () => Mermaid,
|
|
92
92
|
SiteX: () => SiteX,
|
|
93
|
-
|
|
93
|
+
TocFooterWrapper: () => TocFooterWrapper,
|
|
94
94
|
TrophyCard: () => TrophyCard,
|
|
95
95
|
ZiaCard: () => ZiaCard,
|
|
96
96
|
ZiaFile: () => ZiaFile,
|
|
@@ -3183,40 +3183,29 @@ function LastUpdatedDate({ date }) {
|
|
|
3183
3183
|
] });
|
|
3184
3184
|
}
|
|
3185
3185
|
|
|
3186
|
-
// src/fuma/mdx/toc.tsx
|
|
3187
|
-
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3188
|
-
function TocFooter({ lastModified, showCopy, editPath, githubBaseUrl }) {
|
|
3189
|
-
const showEdit = githubBaseUrl && editPath;
|
|
3190
|
-
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-col gap-y-2 items-start m-4", children: [
|
|
3191
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(LastUpdatedDate, { date: lastModified }),
|
|
3192
|
-
showCopy && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(LLMCopyButton, {}),
|
|
3193
|
-
showEdit && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(EditOnGitHub, { url: `${githubBaseUrl}${editPath}` })
|
|
3194
|
-
] });
|
|
3195
|
-
}
|
|
3196
|
-
|
|
3197
3186
|
// src/fuma/mdx/fuma-banner-suit.tsx
|
|
3198
3187
|
var import_banner = require("fumadocs-ui/components/banner");
|
|
3199
3188
|
var import_next_intl = require("next-intl");
|
|
3200
|
-
var
|
|
3189
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
3201
3190
|
function FumaBannerSuit({ showText }) {
|
|
3202
3191
|
const t = (0, import_next_intl.useTranslations)("home");
|
|
3203
|
-
return showText ? /* @__PURE__ */ (0,
|
|
3192
|
+
return showText ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_banner.Banner, { variant: "rainbow", changeLayout: true, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("p", { className: "text-xl", children: t("banner") }) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_banner.Banner, { variant: "normal", changeLayout: true, className: "bg-white dark:bg-[rgb(10,10,10)]" });
|
|
3204
3193
|
}
|
|
3205
3194
|
|
|
3206
3195
|
// src/fuma/mdx/fuma-github-info.tsx
|
|
3207
3196
|
var import_react39 = require("react");
|
|
3208
|
-
var
|
|
3197
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
3209
3198
|
function GitHubInfoSkeleton({ owner, repo, className }) {
|
|
3210
|
-
return /* @__PURE__ */ (0,
|
|
3211
|
-
/* @__PURE__ */ (0,
|
|
3212
|
-
/* @__PURE__ */ (0,
|
|
3213
|
-
/* @__PURE__ */ (0,
|
|
3199
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: `flex flex-col gap-1.5 p-2 rounded-lg text-sm text-fd-foreground/80 lg:flex-row lg:items-center animate-pulse ${className}`, children: [
|
|
3200
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex items-center gap-2", children: [
|
|
3201
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "size-3.5 bg-fd-muted rounded" }),
|
|
3202
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "h-4 bg-fd-muted rounded w-20" })
|
|
3214
3203
|
] }),
|
|
3215
|
-
/* @__PURE__ */ (0,
|
|
3204
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "h-3 bg-fd-muted rounded w-8" })
|
|
3216
3205
|
] });
|
|
3217
3206
|
}
|
|
3218
3207
|
function GitHubInfoFallback({ owner, repo, className }) {
|
|
3219
|
-
return /* @__PURE__ */ (0,
|
|
3208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3220
3209
|
"a",
|
|
3221
3210
|
{
|
|
3222
3211
|
href: `https://github.com/${owner}/${repo}`,
|
|
@@ -3224,17 +3213,17 @@ function GitHubInfoFallback({ owner, repo, className }) {
|
|
|
3224
3213
|
target: "_blank",
|
|
3225
3214
|
className: `flex flex-col gap-1.5 p-2 rounded-lg text-sm text-fd-foreground/80 transition-colors lg:flex-row lg:items-center hover:text-fd-accent-foreground hover:bg-fd-accent ${className}`,
|
|
3226
3215
|
children: [
|
|
3227
|
-
/* @__PURE__ */ (0,
|
|
3228
|
-
/* @__PURE__ */ (0,
|
|
3229
|
-
/* @__PURE__ */ (0,
|
|
3230
|
-
/* @__PURE__ */ (0,
|
|
3216
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("p", { className: "flex items-center gap-2 truncate", children: [
|
|
3217
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("svg", { fill: "currentColor", viewBox: "0 0 24 24", className: "size-3.5", children: [
|
|
3218
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("title", { children: "GitHub" }),
|
|
3219
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" })
|
|
3231
3220
|
] }),
|
|
3232
3221
|
owner,
|
|
3233
3222
|
"/",
|
|
3234
3223
|
repo
|
|
3235
3224
|
] }),
|
|
3236
|
-
/* @__PURE__ */ (0,
|
|
3237
|
-
/* @__PURE__ */ (0,
|
|
3225
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("p", { className: "flex text-xs items-center gap-1 text-fd-muted-foreground", children: [
|
|
3226
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(globalLucideIcons.ExternalLink, { className: "size-3" }),
|
|
3238
3227
|
"GitHub"
|
|
3239
3228
|
] })
|
|
3240
3229
|
]
|
|
@@ -3248,7 +3237,7 @@ function GitHubInfoSuccess({
|
|
|
3248
3237
|
className
|
|
3249
3238
|
}) {
|
|
3250
3239
|
const humanizedStars = humanizeNumber(stars);
|
|
3251
|
-
return /* @__PURE__ */ (0,
|
|
3240
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
3252
3241
|
"a",
|
|
3253
3242
|
{
|
|
3254
3243
|
href: `https://github.com/${owner}/${repo}`,
|
|
@@ -3256,17 +3245,17 @@ function GitHubInfoSuccess({
|
|
|
3256
3245
|
target: "_blank",
|
|
3257
3246
|
className: `flex flex-col gap-1.5 p-2 rounded-lg text-sm text-fd-foreground/80 transition-colors lg:flex-row lg:items-center hover:text-fd-accent-foreground hover:bg-fd-accent ${className}`,
|
|
3258
3247
|
children: [
|
|
3259
|
-
/* @__PURE__ */ (0,
|
|
3260
|
-
/* @__PURE__ */ (0,
|
|
3261
|
-
/* @__PURE__ */ (0,
|
|
3262
|
-
/* @__PURE__ */ (0,
|
|
3248
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("p", { className: "flex items-center gap-2 truncate", children: [
|
|
3249
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("svg", { fill: "currentColor", viewBox: "0 0 24 24", className: "size-3.5", children: [
|
|
3250
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("title", { children: "GitHub" }),
|
|
3251
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)("path", { d: "M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" })
|
|
3263
3252
|
] }),
|
|
3264
3253
|
owner,
|
|
3265
3254
|
"/",
|
|
3266
3255
|
repo
|
|
3267
3256
|
] }),
|
|
3268
|
-
/* @__PURE__ */ (0,
|
|
3269
|
-
/* @__PURE__ */ (0,
|
|
3257
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("p", { className: "flex text-xs items-center gap-1 text-fd-muted-foreground", children: [
|
|
3258
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(globalLucideIcons.Star, { className: "size-3" }),
|
|
3270
3259
|
humanizedStars
|
|
3271
3260
|
] })
|
|
3272
3261
|
]
|
|
@@ -3335,12 +3324,12 @@ function FumaGithubInfo({ owner, repo, token, className }) {
|
|
|
3335
3324
|
fetchRepoData();
|
|
3336
3325
|
}, [owner, repo, token]);
|
|
3337
3326
|
if (loading) {
|
|
3338
|
-
return /* @__PURE__ */ (0,
|
|
3327
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(GitHubInfoSkeleton, { owner, repo, className });
|
|
3339
3328
|
}
|
|
3340
3329
|
if (error || !data) {
|
|
3341
|
-
return /* @__PURE__ */ (0,
|
|
3330
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(GitHubInfoFallback, { owner, repo, className });
|
|
3342
3331
|
}
|
|
3343
|
-
return /* @__PURE__ */ (0,
|
|
3332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3344
3333
|
GitHubInfoSuccess,
|
|
3345
3334
|
{
|
|
3346
3335
|
owner,
|
|
@@ -3353,7 +3342,7 @@ function FumaGithubInfo({ owner, repo, token, className }) {
|
|
|
3353
3342
|
|
|
3354
3343
|
// src/fuma/mdx/site-x.tsx
|
|
3355
3344
|
var import_next_intl2 = require("next-intl");
|
|
3356
|
-
var
|
|
3345
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3357
3346
|
function SiteX(_a) {
|
|
3358
3347
|
var _b = _a, { type, namespace, tKey, className } = _b, props = __objRest(_b, ["type", "namespace", "tKey", "className"]);
|
|
3359
3348
|
let ns = namespace;
|
|
@@ -3367,7 +3356,7 @@ function SiteX(_a) {
|
|
|
3367
3356
|
const t = (0, import_next_intl2.useTranslations)(ns);
|
|
3368
3357
|
const text = t(key, { defaultValue: type === "site" ? "Site----" : "----@example.com" });
|
|
3369
3358
|
if (type === "site") {
|
|
3370
|
-
return /* @__PURE__ */ (0,
|
|
3359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3371
3360
|
"strong",
|
|
3372
3361
|
__spreadProps(__spreadValues({}, props), {
|
|
3373
3362
|
className: cn(
|
|
@@ -3379,7 +3368,7 @@ function SiteX(_a) {
|
|
|
3379
3368
|
);
|
|
3380
3369
|
}
|
|
3381
3370
|
if (type === "email") {
|
|
3382
|
-
return /* @__PURE__ */ (0,
|
|
3371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3383
3372
|
"a",
|
|
3384
3373
|
__spreadProps(__spreadValues({}, props), {
|
|
3385
3374
|
href: `mailto:${text}`,
|
|
@@ -3398,13 +3387,13 @@ function SiteX(_a) {
|
|
|
3398
3387
|
var import_react40 = require("react");
|
|
3399
3388
|
var import_collapsible = require("fumadocs-ui/components/ui/collapsible");
|
|
3400
3389
|
var import_link5 = __toESM(require("next/link"));
|
|
3401
|
-
var
|
|
3390
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3402
3391
|
var itemVariants = "flex flex-row items-center gap-2 rounded-md px-2 py-1.5 text-sm hover:bg-fd-accent hover:text-fd-accent-foreground [&_svg]:size-4";
|
|
3403
3392
|
var anotionClass = "ms-2 px-2 py-0.5 rounded text-xs font-semibold bg-fd-accent/80 text-fd-accent-foreground dark:bg-white/20 dark:text-white";
|
|
3404
3393
|
function ZiaFile(_a) {
|
|
3405
3394
|
var _b = _a, {
|
|
3406
3395
|
name,
|
|
3407
|
-
icon = /* @__PURE__ */ (0,
|
|
3396
|
+
icon = /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(globalLucideIcons.File, {}),
|
|
3408
3397
|
className,
|
|
3409
3398
|
anotion,
|
|
3410
3399
|
href
|
|
@@ -3418,16 +3407,16 @@ function ZiaFile(_a) {
|
|
|
3418
3407
|
const validHref = typeof href === "string" && href.trim() !== "";
|
|
3419
3408
|
const validAnotion = typeof anotion === "string" && anotion.trim() !== "";
|
|
3420
3409
|
if (validHref) {
|
|
3421
|
-
return /* @__PURE__ */ (0,
|
|
3410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_link5.default, { href, className: cn(itemVariants, className), children: [
|
|
3422
3411
|
icon,
|
|
3423
|
-
/* @__PURE__ */ (0,
|
|
3424
|
-
validAnotion && /* @__PURE__ */ (0,
|
|
3412
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: name }),
|
|
3413
|
+
validAnotion && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: anotionClass, children: anotion })
|
|
3425
3414
|
] });
|
|
3426
3415
|
}
|
|
3427
|
-
return /* @__PURE__ */ (0,
|
|
3416
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", __spreadProps(__spreadValues({ className: cn(itemVariants, className) }, rest), { children: [
|
|
3428
3417
|
icon,
|
|
3429
|
-
/* @__PURE__ */ (0,
|
|
3430
|
-
validAnotion && /* @__PURE__ */ (0,
|
|
3418
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: name }),
|
|
3419
|
+
validAnotion && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: anotionClass, children: anotion })
|
|
3431
3420
|
] }));
|
|
3432
3421
|
}
|
|
3433
3422
|
function ZiaFolder(_a) {
|
|
@@ -3446,15 +3435,26 @@ function ZiaFolder(_a) {
|
|
|
3446
3435
|
]);
|
|
3447
3436
|
const [open, setOpen] = (0, import_react40.useState)(defaultOpen);
|
|
3448
3437
|
const validAnotion = typeof anotion === "string" && anotion.trim() !== "";
|
|
3449
|
-
return /* @__PURE__ */ (0,
|
|
3450
|
-
/* @__PURE__ */ (0,
|
|
3451
|
-
open ? /* @__PURE__ */ (0,
|
|
3452
|
-
/* @__PURE__ */ (0,
|
|
3453
|
-
validAnotion && /* @__PURE__ */ (0,
|
|
3438
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_collapsible.Collapsible, __spreadProps(__spreadValues({ open, onOpenChange: setOpen }, props), { children: [
|
|
3439
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_collapsible.CollapsibleTrigger, { className: cn(itemVariants, className, "w-full"), children: [
|
|
3440
|
+
open ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(globalLucideIcons.FolderOpen, {}) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(globalLucideIcons.Folder, {}),
|
|
3441
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: name }),
|
|
3442
|
+
validAnotion && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: anotionClass, children: anotion })
|
|
3454
3443
|
] }),
|
|
3455
|
-
/* @__PURE__ */ (0,
|
|
3444
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_collapsible.CollapsibleContent, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "ms-2 flex flex-col border-l ps-2", children }) })
|
|
3456
3445
|
] }));
|
|
3457
3446
|
}
|
|
3447
|
+
|
|
3448
|
+
// src/fuma/mdx/toc-footer-wrapper.tsx
|
|
3449
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3450
|
+
function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, showCopy }) {
|
|
3451
|
+
const showEdit = githubBaseUrl && editPath;
|
|
3452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex flex-col gap-y-2 items-start m-4", children: [
|
|
3453
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(LastUpdatedDate, { date: lastModified }),
|
|
3454
|
+
showCopy && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(LLMCopyButton, {}),
|
|
3455
|
+
showEdit && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(EditOnGitHub, { url: `${githubBaseUrl}${editPath}` })
|
|
3456
|
+
] });
|
|
3457
|
+
}
|
|
3458
3458
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3459
3459
|
0 && (module.exports = {
|
|
3460
3460
|
EditOnGitHub,
|
|
@@ -3467,7 +3467,7 @@ function ZiaFolder(_a) {
|
|
|
3467
3467
|
LastUpdatedDate,
|
|
3468
3468
|
Mermaid,
|
|
3469
3469
|
SiteX,
|
|
3470
|
-
|
|
3470
|
+
TocFooterWrapper,
|
|
3471
3471
|
TrophyCard,
|
|
3472
3472
|
ZiaCard,
|
|
3473
3473
|
ZiaFile,
|