@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.
@@ -3140,40 +3140,29 @@ function LastUpdatedDate({ date }) {
3140
3140
  ] });
3141
3141
  }
3142
3142
 
3143
- // src/fuma/mdx/toc.tsx
3144
- import { jsx as jsx42, jsxs as jsxs16 } from "react/jsx-runtime";
3145
- function TocFooter({ lastModified, showCopy, editPath, githubBaseUrl }) {
3146
- const showEdit = githubBaseUrl && editPath;
3147
- return /* @__PURE__ */ jsxs16("div", { className: "flex flex-col gap-y-2 items-start m-4", children: [
3148
- /* @__PURE__ */ jsx42(LastUpdatedDate, { date: lastModified }),
3149
- showCopy && /* @__PURE__ */ jsx42(LLMCopyButton, {}),
3150
- showEdit && /* @__PURE__ */ jsx42(EditOnGitHub, { url: `${githubBaseUrl}${editPath}` })
3151
- ] });
3152
- }
3153
-
3154
3143
  // src/fuma/mdx/fuma-banner-suit.tsx
3155
3144
  import { Banner } from "fumadocs-ui/components/banner";
3156
3145
  import { useTranslations } from "next-intl";
3157
- import { jsx as jsx43 } from "react/jsx-runtime";
3146
+ import { jsx as jsx42 } from "react/jsx-runtime";
3158
3147
  function FumaBannerSuit({ showText }) {
3159
3148
  const t = useTranslations("home");
3160
- return showText ? /* @__PURE__ */ jsx43(Banner, { variant: "rainbow", changeLayout: true, children: /* @__PURE__ */ jsx43("p", { className: "text-xl", children: t("banner") }) }) : /* @__PURE__ */ jsx43(Banner, { variant: "normal", changeLayout: true, className: "bg-white dark:bg-[rgb(10,10,10)]" });
3149
+ return showText ? /* @__PURE__ */ jsx42(Banner, { variant: "rainbow", changeLayout: true, children: /* @__PURE__ */ jsx42("p", { className: "text-xl", children: t("banner") }) }) : /* @__PURE__ */ jsx42(Banner, { variant: "normal", changeLayout: true, className: "bg-white dark:bg-[rgb(10,10,10)]" });
3161
3150
  }
3162
3151
 
3163
3152
  // src/fuma/mdx/fuma-github-info.tsx
3164
3153
  import { useEffect as useEffect2, useState as useState4 } from "react";
3165
- import { jsx as jsx44, jsxs as jsxs17 } from "react/jsx-runtime";
3154
+ import { jsx as jsx43, jsxs as jsxs16 } from "react/jsx-runtime";
3166
3155
  function GitHubInfoSkeleton({ owner, repo, className }) {
3167
- return /* @__PURE__ */ jsxs17("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: [
3168
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3169
- /* @__PURE__ */ jsx44("div", { className: "size-3.5 bg-fd-muted rounded" }),
3170
- /* @__PURE__ */ jsx44("div", { className: "h-4 bg-fd-muted rounded w-20" })
3156
+ return /* @__PURE__ */ jsxs16("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: [
3157
+ /* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-2", children: [
3158
+ /* @__PURE__ */ jsx43("div", { className: "size-3.5 bg-fd-muted rounded" }),
3159
+ /* @__PURE__ */ jsx43("div", { className: "h-4 bg-fd-muted rounded w-20" })
3171
3160
  ] }),
3172
- /* @__PURE__ */ jsx44("div", { className: "h-3 bg-fd-muted rounded w-8" })
3161
+ /* @__PURE__ */ jsx43("div", { className: "h-3 bg-fd-muted rounded w-8" })
3173
3162
  ] });
3174
3163
  }
3175
3164
  function GitHubInfoFallback({ owner, repo, className }) {
3176
- return /* @__PURE__ */ jsxs17(
3165
+ return /* @__PURE__ */ jsxs16(
3177
3166
  "a",
3178
3167
  {
3179
3168
  href: `https://github.com/${owner}/${repo}`,
@@ -3181,17 +3170,17 @@ function GitHubInfoFallback({ owner, repo, className }) {
3181
3170
  target: "_blank",
3182
3171
  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}`,
3183
3172
  children: [
3184
- /* @__PURE__ */ jsxs17("p", { className: "flex items-center gap-2 truncate", children: [
3185
- /* @__PURE__ */ jsxs17("svg", { fill: "currentColor", viewBox: "0 0 24 24", className: "size-3.5", children: [
3186
- /* @__PURE__ */ jsx44("title", { children: "GitHub" }),
3187
- /* @__PURE__ */ jsx44("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" })
3173
+ /* @__PURE__ */ jsxs16("p", { className: "flex items-center gap-2 truncate", children: [
3174
+ /* @__PURE__ */ jsxs16("svg", { fill: "currentColor", viewBox: "0 0 24 24", className: "size-3.5", children: [
3175
+ /* @__PURE__ */ jsx43("title", { children: "GitHub" }),
3176
+ /* @__PURE__ */ jsx43("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" })
3188
3177
  ] }),
3189
3178
  owner,
3190
3179
  "/",
3191
3180
  repo
3192
3181
  ] }),
3193
- /* @__PURE__ */ jsxs17("p", { className: "flex text-xs items-center gap-1 text-fd-muted-foreground", children: [
3194
- /* @__PURE__ */ jsx44(globalLucideIcons.ExternalLink, { className: "size-3" }),
3182
+ /* @__PURE__ */ jsxs16("p", { className: "flex text-xs items-center gap-1 text-fd-muted-foreground", children: [
3183
+ /* @__PURE__ */ jsx43(globalLucideIcons.ExternalLink, { className: "size-3" }),
3195
3184
  "GitHub"
3196
3185
  ] })
3197
3186
  ]
@@ -3205,7 +3194,7 @@ function GitHubInfoSuccess({
3205
3194
  className
3206
3195
  }) {
3207
3196
  const humanizedStars = humanizeNumber(stars);
3208
- return /* @__PURE__ */ jsxs17(
3197
+ return /* @__PURE__ */ jsxs16(
3209
3198
  "a",
3210
3199
  {
3211
3200
  href: `https://github.com/${owner}/${repo}`,
@@ -3213,17 +3202,17 @@ function GitHubInfoSuccess({
3213
3202
  target: "_blank",
3214
3203
  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}`,
3215
3204
  children: [
3216
- /* @__PURE__ */ jsxs17("p", { className: "flex items-center gap-2 truncate", children: [
3217
- /* @__PURE__ */ jsxs17("svg", { fill: "currentColor", viewBox: "0 0 24 24", className: "size-3.5", children: [
3218
- /* @__PURE__ */ jsx44("title", { children: "GitHub" }),
3219
- /* @__PURE__ */ jsx44("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" })
3205
+ /* @__PURE__ */ jsxs16("p", { className: "flex items-center gap-2 truncate", children: [
3206
+ /* @__PURE__ */ jsxs16("svg", { fill: "currentColor", viewBox: "0 0 24 24", className: "size-3.5", children: [
3207
+ /* @__PURE__ */ jsx43("title", { children: "GitHub" }),
3208
+ /* @__PURE__ */ jsx43("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" })
3220
3209
  ] }),
3221
3210
  owner,
3222
3211
  "/",
3223
3212
  repo
3224
3213
  ] }),
3225
- /* @__PURE__ */ jsxs17("p", { className: "flex text-xs items-center gap-1 text-fd-muted-foreground", children: [
3226
- /* @__PURE__ */ jsx44(globalLucideIcons.Star, { className: "size-3" }),
3214
+ /* @__PURE__ */ jsxs16("p", { className: "flex text-xs items-center gap-1 text-fd-muted-foreground", children: [
3215
+ /* @__PURE__ */ jsx43(globalLucideIcons.Star, { className: "size-3" }),
3227
3216
  humanizedStars
3228
3217
  ] })
3229
3218
  ]
@@ -3292,12 +3281,12 @@ function FumaGithubInfo({ owner, repo, token, className }) {
3292
3281
  fetchRepoData();
3293
3282
  }, [owner, repo, token]);
3294
3283
  if (loading) {
3295
- return /* @__PURE__ */ jsx44(GitHubInfoSkeleton, { owner, repo, className });
3284
+ return /* @__PURE__ */ jsx43(GitHubInfoSkeleton, { owner, repo, className });
3296
3285
  }
3297
3286
  if (error || !data) {
3298
- return /* @__PURE__ */ jsx44(GitHubInfoFallback, { owner, repo, className });
3287
+ return /* @__PURE__ */ jsx43(GitHubInfoFallback, { owner, repo, className });
3299
3288
  }
3300
- return /* @__PURE__ */ jsx44(
3289
+ return /* @__PURE__ */ jsx43(
3301
3290
  GitHubInfoSuccess,
3302
3291
  {
3303
3292
  owner,
@@ -3310,7 +3299,7 @@ function FumaGithubInfo({ owner, repo, token, className }) {
3310
3299
 
3311
3300
  // src/fuma/mdx/site-x.tsx
3312
3301
  import { useTranslations as useTranslations2 } from "next-intl";
3313
- import { jsx as jsx45 } from "react/jsx-runtime";
3302
+ import { jsx as jsx44 } from "react/jsx-runtime";
3314
3303
  function SiteX(_a) {
3315
3304
  var _b = _a, { type, namespace, tKey, className } = _b, props = __objRest(_b, ["type", "namespace", "tKey", "className"]);
3316
3305
  let ns = namespace;
@@ -3324,7 +3313,7 @@ function SiteX(_a) {
3324
3313
  const t = useTranslations2(ns);
3325
3314
  const text = t(key, { defaultValue: type === "site" ? "Site----" : "----@example.com" });
3326
3315
  if (type === "site") {
3327
- return /* @__PURE__ */ jsx45(
3316
+ return /* @__PURE__ */ jsx44(
3328
3317
  "strong",
3329
3318
  __spreadProps(__spreadValues({}, props), {
3330
3319
  className: cn(
@@ -3336,7 +3325,7 @@ function SiteX(_a) {
3336
3325
  );
3337
3326
  }
3338
3327
  if (type === "email") {
3339
- return /* @__PURE__ */ jsx45(
3328
+ return /* @__PURE__ */ jsx44(
3340
3329
  "a",
3341
3330
  __spreadProps(__spreadValues({}, props), {
3342
3331
  href: `mailto:${text}`,
@@ -3359,13 +3348,13 @@ import {
3359
3348
  CollapsibleTrigger
3360
3349
  } from "fumadocs-ui/components/ui/collapsible";
3361
3350
  import Link5 from "next/link";
3362
- import { jsx as jsx46, jsxs as jsxs18 } from "react/jsx-runtime";
3351
+ import { jsx as jsx45, jsxs as jsxs17 } from "react/jsx-runtime";
3363
3352
  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";
3364
3353
  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";
3365
3354
  function ZiaFile(_a) {
3366
3355
  var _b = _a, {
3367
3356
  name,
3368
- icon = /* @__PURE__ */ jsx46(globalLucideIcons.File, {}),
3357
+ icon = /* @__PURE__ */ jsx45(globalLucideIcons.File, {}),
3369
3358
  className,
3370
3359
  anotion,
3371
3360
  href
@@ -3379,16 +3368,16 @@ function ZiaFile(_a) {
3379
3368
  const validHref = typeof href === "string" && href.trim() !== "";
3380
3369
  const validAnotion = typeof anotion === "string" && anotion.trim() !== "";
3381
3370
  if (validHref) {
3382
- return /* @__PURE__ */ jsxs18(Link5, { href, className: cn(itemVariants, className), children: [
3371
+ return /* @__PURE__ */ jsxs17(Link5, { href, className: cn(itemVariants, className), children: [
3383
3372
  icon,
3384
- /* @__PURE__ */ jsx46("span", { children: name }),
3385
- validAnotion && /* @__PURE__ */ jsx46("span", { className: anotionClass, children: anotion })
3373
+ /* @__PURE__ */ jsx45("span", { children: name }),
3374
+ validAnotion && /* @__PURE__ */ jsx45("span", { className: anotionClass, children: anotion })
3386
3375
  ] });
3387
3376
  }
3388
- return /* @__PURE__ */ jsxs18("div", __spreadProps(__spreadValues({ className: cn(itemVariants, className) }, rest), { children: [
3377
+ return /* @__PURE__ */ jsxs17("div", __spreadProps(__spreadValues({ className: cn(itemVariants, className) }, rest), { children: [
3389
3378
  icon,
3390
- /* @__PURE__ */ jsx46("span", { children: name }),
3391
- validAnotion && /* @__PURE__ */ jsx46("span", { className: anotionClass, children: anotion })
3379
+ /* @__PURE__ */ jsx45("span", { children: name }),
3380
+ validAnotion && /* @__PURE__ */ jsx45("span", { className: anotionClass, children: anotion })
3392
3381
  ] }));
3393
3382
  }
3394
3383
  function ZiaFolder(_a) {
@@ -3407,15 +3396,26 @@ function ZiaFolder(_a) {
3407
3396
  ]);
3408
3397
  const [open, setOpen] = useState5(defaultOpen);
3409
3398
  const validAnotion = typeof anotion === "string" && anotion.trim() !== "";
3410
- return /* @__PURE__ */ jsxs18(Collapsible, __spreadProps(__spreadValues({ open, onOpenChange: setOpen }, props), { children: [
3411
- /* @__PURE__ */ jsxs18(CollapsibleTrigger, { className: cn(itemVariants, className, "w-full"), children: [
3412
- open ? /* @__PURE__ */ jsx46(globalLucideIcons.FolderOpen, {}) : /* @__PURE__ */ jsx46(globalLucideIcons.Folder, {}),
3413
- /* @__PURE__ */ jsx46("span", { children: name }),
3414
- validAnotion && /* @__PURE__ */ jsx46("span", { className: anotionClass, children: anotion })
3399
+ return /* @__PURE__ */ jsxs17(Collapsible, __spreadProps(__spreadValues({ open, onOpenChange: setOpen }, props), { children: [
3400
+ /* @__PURE__ */ jsxs17(CollapsibleTrigger, { className: cn(itemVariants, className, "w-full"), children: [
3401
+ open ? /* @__PURE__ */ jsx45(globalLucideIcons.FolderOpen, {}) : /* @__PURE__ */ jsx45(globalLucideIcons.Folder, {}),
3402
+ /* @__PURE__ */ jsx45("span", { children: name }),
3403
+ validAnotion && /* @__PURE__ */ jsx45("span", { className: anotionClass, children: anotion })
3415
3404
  ] }),
3416
- /* @__PURE__ */ jsx46(CollapsibleContent, { children: /* @__PURE__ */ jsx46("div", { className: "ms-2 flex flex-col border-l ps-2", children }) })
3405
+ /* @__PURE__ */ jsx45(CollapsibleContent, { children: /* @__PURE__ */ jsx45("div", { className: "ms-2 flex flex-col border-l ps-2", children }) })
3417
3406
  ] }));
3418
3407
  }
3408
+
3409
+ // src/fuma/mdx/toc-footer-wrapper.tsx
3410
+ import { jsx as jsx46, jsxs as jsxs18 } from "react/jsx-runtime";
3411
+ function TocFooterWrapper({ lastModified, editPath, githubBaseUrl, showCopy }) {
3412
+ const showEdit = githubBaseUrl && editPath;
3413
+ return /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-y-2 items-start m-4", children: [
3414
+ /* @__PURE__ */ jsx46(LastUpdatedDate, { date: lastModified }),
3415
+ showCopy && /* @__PURE__ */ jsx46(LLMCopyButton, {}),
3416
+ showEdit && /* @__PURE__ */ jsx46(EditOnGitHub, { url: `${githubBaseUrl}${editPath}` })
3417
+ ] });
3418
+ }
3419
3419
  export {
3420
3420
  EditOnGitHub,
3421
3421
  FumaBannerSuit,
@@ -3427,7 +3427,7 @@ export {
3427
3427
  LastUpdatedDate,
3428
3428
  Mermaid,
3429
3429
  SiteX,
3430
- TocFooter,
3430
+ TocFooterWrapper,
3431
3431
  TrophyCard,
3432
3432
  ZiaCard,
3433
3433
  ZiaFile,