main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

7
node_modules/next/dist/client/portal/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
/// <reference types="react" />
type PortalProps = {
children: React.ReactNode;
type: string;
};
export declare const Portal: ({ children, type }: PortalProps) => import("react").ReactPortal | null;
export {};

35
node_modules/next/dist/client/portal/index.js generated vendored Normal file
View File

@@ -0,0 +1,35 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "Portal", {
enumerable: true,
get: function() {
return Portal;
}
});
const _react = require("react");
const _reactdom = require("react-dom");
const Portal = (param)=>{
let { children, type } = param;
const [portalNode, setPortalNode] = (0, _react.useState)(null);
(0, _react.useEffect)(()=>{
const element = document.createElement(type);
document.body.appendChild(element);
setPortalNode(element);
return ()=>{
document.body.removeChild(element);
};
}, [
type
]);
return portalNode ? /*#__PURE__*/ (0, _reactdom.createPortal)(children, portalNode) : null;
};
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
Object.defineProperty(exports.default, '__esModule', { value: true });
Object.assign(exports.default, exports);
module.exports = exports.default;
}
//# sourceMappingURL=index.js.map

1
node_modules/next/dist/client/portal/index.js.map generated vendored Normal file
View File

@@ -0,0 +1 @@
{"version":3,"sources":["../../../src/client/portal/index.tsx"],"names":["Portal","children","type","portalNode","setPortalNode","useState","useEffect","element","document","createElement","body","appendChild","removeChild","createPortal"],"mappings":";;;;+BAQaA;;;eAAAA;;;uBARuB;0BACP;AAOtB,MAAMA,SAAS;QAAC,EAAEC,QAAQ,EAAEC,IAAI,EAAe;IACpD,MAAM,CAACC,YAAYC,cAAc,GAAGC,IAAAA,eAAQ,EAAqB;IAEjEC,IAAAA,gBAAS,EAAC;QACR,MAAMC,UAAUC,SAASC,aAAa,CAACP;QACvCM,SAASE,IAAI,CAACC,WAAW,CAACJ;QAC1BH,cAAcG;QACd,OAAO;YACLC,SAASE,IAAI,CAACE,WAAW,CAACL;QAC5B;IACF,GAAG;QAACL;KAAK;IAET,OAAOC,2BAAaU,IAAAA,sBAAY,EAACZ,UAAUE,cAAc;AAC3D"}