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
+14
View File
@@ -0,0 +1,14 @@
/**
* Copied from @base-ui/utils
*
* Shadow DOM-aware containment check.
*
* Native `parent.contains(child)` returns `false` when the child is inside a
* shadow root that is a descendant of the parent. This function handles that
* case by traversing up through shadow root hosts.
*
* @param parent - The potential ancestor element.
* @param child - The potential descendant element.
* @returns Whether `parent` contains `child`, even across shadow root boundaries.
*/
export default function contains(parent: Element | null | undefined, child: Element | null | undefined): boolean;
+14
View File
@@ -0,0 +1,14 @@
/**
* Copied from @base-ui/utils
*
* Shadow DOM-aware containment check.
*
* Native `parent.contains(child)` returns `false` when the child is inside a
* shadow root that is a descendant of the parent. This function handles that
* case by traversing up through shadow root hosts.
*
* @param parent - The potential ancestor element.
* @param child - The potential descendant element.
* @returns Whether `parent` contains `child`, even across shadow root boundaries.
*/
export default function contains(parent: Element | null | undefined, child: Element | null | undefined): boolean;
+42
View File
@@ -0,0 +1,42 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = contains;
/**
* Copied from @base-ui/utils
*
* Shadow DOM-aware containment check.
*
* Native `parent.contains(child)` returns `false` when the child is inside a
* shadow root that is a descendant of the parent. This function handles that
* case by traversing up through shadow root hosts.
*
* @param parent - The potential ancestor element.
* @param child - The potential descendant element.
* @returns Whether `parent` contains `child`, even across shadow root boundaries.
*/
function contains(parent, child) {
if (!parent || !child) {
return false;
}
// First, attempt with the faster native method.
if (parent.contains(child)) {
return true;
}
// Then fall back to traversing out of shadow roots when needed.
const rootNode = child.getRootNode?.();
if (rootNode && rootNode instanceof ShadowRoot) {
let next = child;
while (next) {
if (parent === next) {
return true;
}
next = next.parentNode ?? next.host ?? null;
}
}
return false;
}
+36
View File
@@ -0,0 +1,36 @@
/**
* Copied from @base-ui/utils
*
* Shadow DOM-aware containment check.
*
* Native `parent.contains(child)` returns `false` when the child is inside a
* shadow root that is a descendant of the parent. This function handles that
* case by traversing up through shadow root hosts.
*
* @param parent - The potential ancestor element.
* @param child - The potential descendant element.
* @returns Whether `parent` contains `child`, even across shadow root boundaries.
*/
export default function contains(parent, child) {
if (!parent || !child) {
return false;
}
// First, attempt with the faster native method.
if (parent.contains(child)) {
return true;
}
// Then fall back to traversing out of shadow roots when needed.
const rootNode = child.getRootNode?.();
if (rootNode && rootNode instanceof ShadowRoot) {
let next = child;
while (next) {
if (parent === next) {
return true;
}
next = next.parentNode ?? next.host ?? null;
}
}
return false;
}
+1
View File
@@ -0,0 +1 @@
export { default } from "./contains.mjs";
+1
View File
@@ -0,0 +1 @@
export { default } from "./contains.js";
+13
View File
@@ -0,0 +1,13 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _contains.default;
}
});
var _contains = _interopRequireDefault(require("./contains"));
+1
View File
@@ -0,0 +1 @@
export { default } from "./contains.mjs";