feat: initial commit - Phase 1 & 2 core features

This commit is contained in:
hiderfong
2026-04-22 17:07:33 +08:00
commit 1773bda06b
25005 changed files with 6252106 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
import { isClient } from "../browser.mjs";
import { isString } from "../types.mjs";
//#region ../../packages/utils/dom/element.ts
const getElement = ((target) => {
if (!isClient || target === "") return null;
if (isString(target)) try {
return document.querySelector(target);
} catch {
return null;
}
return target;
});
//#endregion
export { getElement };
//# sourceMappingURL=element.mjs.map