neue Homepage auf react basis

This commit is contained in:
2026-08-07 21:39:30 +02:00
parent 164bdd19ad
commit ee89442c04
52191 changed files with 1230242 additions and 58 deletions
+4
View File
@@ -0,0 +1,4 @@
import * as React from 'react';
export declare const forwardRef: <T, P = {}>(render: React.ForwardRefRenderFunction<T, P & {
ref: React.Ref<T>;
}>) => React.ForwardRefExoticComponent<P> | React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
+4
View File
@@ -0,0 +1,4 @@
import * as React from 'react';
export declare const forwardRef: <T, P = {}>(render: React.ForwardRefRenderFunction<T, P & {
ref: React.Ref<T>;
}>) => React.ForwardRefExoticComponent<P> | React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<T>>;
+24
View File
@@ -0,0 +1,24 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.forwardRef = void 0;
var React = _interopRequireWildcard(require("react"));
var _reactMajor = _interopRequireDefault(require("../reactMajor"));
// Compatibility shim that ensures stable props object for forwardRef components
// Fixes https://github.com/react/react/issues/31613
// We ensure that the ref is always present in the props object (even if that's not the case for older versions of React) to avoid the footgun of spreading props over the ref in the newer versions of React.
// Footgun: <Component ref={ref} {...props} /> will break past React 19, but the types will now warn us that we should use <Component {...props} ref={ref} /> instead.
const forwardRef = render => {
if (_reactMajor.default >= 19) {
const Component = props => render(props, props.ref ?? null);
Component.displayName = render.displayName ?? render.name;
return Component;
}
return /*#__PURE__*/React.forwardRef(render);
};
exports.forwardRef = forwardRef;
if (process.env.NODE_ENV !== "production") forwardRef.displayName = "forwardRef";
+16
View File
@@ -0,0 +1,16 @@
import * as React from 'react';
import reactMajor from "../reactMajor/index.mjs";
// Compatibility shim that ensures stable props object for forwardRef components
// Fixes https://github.com/react/react/issues/31613
// We ensure that the ref is always present in the props object (even if that's not the case for older versions of React) to avoid the footgun of spreading props over the ref in the newer versions of React.
// Footgun: <Component ref={ref} {...props} /> will break past React 19, but the types will now warn us that we should use <Component {...props} ref={ref} /> instead.
export const forwardRef = render => {
if (reactMajor >= 19) {
const Component = props => render(props, props.ref ?? null);
Component.displayName = render.displayName ?? render.name;
return Component;
}
return /*#__PURE__*/React.forwardRef(render);
};
if (process.env.NODE_ENV !== "production") forwardRef.displayName = "forwardRef";
+1
View File
@@ -0,0 +1 @@
export * from "./forwardRef.mjs";
+1
View File
@@ -0,0 +1 @@
export * from "./forwardRef.js";
+16
View File
@@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _forwardRef = require("./forwardRef");
Object.keys(_forwardRef).forEach(function (key) {
if (key === "default" || key === "__esModule") return;
if (key in exports && exports[key] === _forwardRef[key]) return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function () {
return _forwardRef[key];
}
});
});
+1
View File
@@ -0,0 +1 @@
export * from "./forwardRef.mjs";