Files
NapCatQQ/.pnpm-store/v3/files/fc/960bffe1cd46b6ae21fb629a214ecc52bb6eed48c1921a0c35f9dc6487f6414cccbb04267ceb1bae85bd9f6c71976f6e973331d203e5a72678e928d0ad1435
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

63 lines
2.4 KiB
Plaintext

"use client";
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/navbar-item.tsx
var navbar_item_exports = {};
__export(navbar_item_exports, {
default: () => navbar_item_default
});
module.exports = __toCommonJS(navbar_item_exports);
var import_system = require("@heroui/system");
var import_react_utils2 = require("@heroui/react-utils");
var import_shared_utils = require("@heroui/shared-utils");
// src/navbar-context.ts
var import_react_utils = require("@heroui/react-utils");
var [NavbarProvider, useNavbarContext] = (0, import_react_utils.createContext)({
name: "NavbarContext",
strict: true,
errorMessage: "useNavbarContext: `context` is undefined. Seems you forgot to wrap component within <Navbar />"
});
// src/navbar-item.tsx
var import_jsx_runtime = require("react/jsx-runtime");
var NavbarItem = (0, import_system.forwardRef)((props, ref) => {
var _a;
const { as, className, children, isActive, ...otherProps } = props;
const Component = as || "li";
const domRef = (0, import_react_utils2.useDOMRef)(ref);
const { slots, classNames } = useNavbarContext();
const styles = (0, import_shared_utils.clsx)(classNames == null ? void 0 : classNames.item, className);
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
Component,
{
ref: domRef,
className: (_a = slots.item) == null ? void 0 : _a.call(slots, { class: styles }),
"data-active": (0, import_shared_utils.dataAttr)(isActive),
...otherProps,
children
}
);
});
NavbarItem.displayName = "HeroUI.NavbarItem";
var navbar_item_default = NavbarItem;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {});