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
+10
View File
@@ -0,0 +1,10 @@
import { Ref } from "vue";
//#region ../../packages/hooks/use-focus/index.d.ts
declare const useFocus: (el: Ref<{
focus: () => void;
} | null>) => {
focus: () => void;
};
//#endregion
export { useFocus };
+10
View File
@@ -0,0 +1,10 @@
//#region ../../packages/hooks/use-focus/index.ts
const useFocus = (el) => {
return { focus: () => {
el.value?.focus?.();
} };
};
//#endregion
export { useFocus };
//# sourceMappingURL=index.mjs.map
+1
View File
@@ -0,0 +1 @@
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../../packages/hooks/use-focus/index.ts"],"sourcesContent":["import type { Ref } from 'vue'\n\nexport const useFocus = (\n el: Ref<{\n focus: () => void\n } | null>\n) => {\n return {\n focus: () => {\n el.value?.focus?.()\n },\n }\n}\n"],"mappings":";AAEA,MAAa,YACX,OAGG;AACH,QAAO,EACL,aAAa;AACX,KAAG,OAAO,SAAS;IAEtB"}