@windrun-huaiin/third-ui 5.2.0 → 5.2.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.
@@ -3065,8 +3065,8 @@ import {
3065
3065
  CollapsibleContent,
3066
3066
  CollapsibleTrigger
3067
3067
  } from "fumadocs-ui/components/ui/collapsible";
3068
- import React34 from "react";
3069
- import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs15 } from "react/jsx-runtime";
3068
+ import Link5 from "next/link";
3069
+ import { jsx as jsx43, jsxs as jsxs15 } from "react/jsx-runtime";
3070
3070
  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";
3071
3071
  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";
3072
3072
  function ZiaFile(_a) {
@@ -3084,19 +3084,19 @@ function ZiaFile(_a) {
3084
3084
  "href"
3085
3085
  ]);
3086
3086
  const validHref = typeof href === "string" && href.trim() !== "";
3087
- const Comp = validHref ? "a" : "div";
3088
3087
  const validAnotion = typeof anotion === "string" && anotion.trim() !== "";
3089
- return React34.createElement(
3090
- Comp,
3091
- __spreadValues(__spreadValues({
3092
- className: cn(itemVariants, className)
3093
- }, validHref ? { href, target: "_blank", rel: "noopener noreferrer" } : {}), rest),
3094
- /* @__PURE__ */ jsxs15(Fragment4, { children: [
3088
+ if (validHref) {
3089
+ return /* @__PURE__ */ jsxs15(Link5, { href, className: cn(itemVariants, className), children: [
3095
3090
  icon,
3096
3091
  /* @__PURE__ */ jsx43("span", { children: name }),
3097
3092
  validAnotion && /* @__PURE__ */ jsx43("span", { className: anotionClass, children: anotion })
3098
- ] })
3099
- );
3093
+ ] });
3094
+ }
3095
+ return /* @__PURE__ */ jsxs15("div", __spreadProps(__spreadValues({ className: cn(itemVariants, className) }, rest), { children: [
3096
+ icon,
3097
+ /* @__PURE__ */ jsx43("span", { children: name }),
3098
+ validAnotion && /* @__PURE__ */ jsx43("span", { className: anotionClass, children: anotion })
3099
+ ] }));
3100
3100
  }
3101
3101
  function ZiaFolder(_a) {
3102
3102
  var _b = _a, {