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

44 lines
1.7 KiB
Plaintext

var $0294ea432cd92340$exports = require("./usePress.main.js");
var $ev4bP$reactariautils = require("@react-aria/utils");
var $ev4bP$react = require("react");
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
$parcel$export(module.exports, "Pressable", () => $e1dbec26039c051d$export$27c701ed9e449e99);
/*
* Copyright 2020 Adobe. All rights reserved.
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. You may obtain a copy
* of the License at http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
* OF ANY KIND, either express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*/
const $e1dbec26039c051d$export$27c701ed9e449e99 = /*#__PURE__*/ (0, ($parcel$interopDefault($ev4bP$react))).forwardRef(({ children: children, ...props }, ref)=>{
ref = (0, $ev4bP$reactariautils.useObjectRef)(ref);
let { pressProps: pressProps } = (0, $0294ea432cd92340$exports.usePress)({
...props,
ref: ref
});
let child = (0, ($parcel$interopDefault($ev4bP$react))).Children.only(children);
return /*#__PURE__*/ (0, ($parcel$interopDefault($ev4bP$react))).cloneElement(child, // @ts-ignore
{
ref: ref,
...(0, $ev4bP$reactariautils.mergeProps)(child.props, pressProps)
});
});
//# sourceMappingURL=Pressable.main.js.map