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
+24
View File
@@ -0,0 +1,24 @@
"use strict";
'use client';
/**
* If `focusSource` is present, attempt to pass `focusVisible` through `focus()` options.
* Fall back to a plain focus call when the browser does not support it.
*/
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = focusWithVisible;
function focusWithVisible(element, focusSource) {
if (focusSource == null) {
element.focus();
return;
}
try {
element.focus({
focusVisible: focusSource === 'keyboard'
});
} catch (error) {
element.focus();
}
}