Files
NapCatQQ/.pnpm-store/v3/files/0d/d1fb3fe98f3fa08a3a4192647c5050718048ab04b74c2e61034a8263de9575aba256223728e42b9a7056a060525b6a01a542be7b2095f798c7aaa57abfe474
T
TanTan e311ca3275
Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

47 lines
1.5 KiB
Plaintext

"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/use-accordion.ts
var use_accordion_exports = {};
__export(use_accordion_exports, {
useReactAriaAccordion: () => useReactAriaAccordion
});
module.exports = __toCommonJS(use_accordion_exports);
var import_selection = require("@react-aria/selection");
function useReactAriaAccordion(props, state, ref) {
let { listProps } = (0, import_selection.useSelectableList)({
...props,
...state,
allowsTabNavigation: true,
disallowSelectAll: true,
ref
});
delete listProps.onKeyDownCapture;
return {
accordionProps: {
...listProps,
tabIndex: void 0
}
};
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
useReactAriaAccordion
});