@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.
@@ -3104,7 +3104,7 @@ function SiteX(_a) {
3104
3104
  // src/fuma/mdx/zia-file.tsx
3105
3105
  var import_react37 = require("react");
3106
3106
  var import_collapsible = require("fumadocs-ui/components/ui/collapsible");
3107
- var import_react38 = __toESM(require("react"));
3107
+ var import_link5 = __toESM(require("next/link"));
3108
3108
  var import_jsx_runtime43 = require("react/jsx-runtime");
3109
3109
  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";
3110
3110
  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";
@@ -3123,19 +3123,19 @@ function ZiaFile(_a) {
3123
3123
  "href"
3124
3124
  ]);
3125
3125
  const validHref = typeof href === "string" && href.trim() !== "";
3126
- const Comp = validHref ? "a" : "div";
3127
3126
  const validAnotion = typeof anotion === "string" && anotion.trim() !== "";
3128
- return import_react38.default.createElement(
3129
- Comp,
3130
- __spreadValues(__spreadValues({
3131
- className: cn(itemVariants, className)
3132
- }, validHref ? { href, target: "_blank", rel: "noopener noreferrer" } : {}), rest),
3133
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
3127
+ if (validHref) {
3128
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_link5.default, { href, className: cn(itemVariants, className), children: [
3134
3129
  icon,
3135
3130
  /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: name }),
3136
3131
  validAnotion && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: anotionClass, children: anotion })
3137
- ] })
3138
- );
3132
+ ] });
3133
+ }
3134
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", __spreadProps(__spreadValues({ className: cn(itemVariants, className) }, rest), { children: [
3135
+ icon,
3136
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: name }),
3137
+ validAnotion && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: anotionClass, children: anotion })
3138
+ ] }));
3139
3139
  }
3140
3140
  function ZiaFolder(_a) {
3141
3141
  var _b = _a, {