diff --git a/scripts/make-dist.mjs b/scripts/make-dist.mjs index 9bc60b7..5a41214 100644 --- a/scripts/make-dist.mjs +++ b/scripts/make-dist.mjs @@ -20,6 +20,7 @@ export { default as OtpField } from "../src/components/OtpField.astro"; export { default as PasswordField } from "../src/components/PasswordField.astro"; export { default as ThemeSwitcher } from "../src/components/ThemeSwitcher.astro"; export { default as TimePicker } from "../src/components/TimePicker.astro"; +export { default as Drawer } from "../src/components/Drawer.astro"; export { cn } from "../src/utils/cn.js"; `; @@ -39,6 +40,7 @@ export const OtpField: any; export const PasswordField: any; export const ThemeSwitcher: any; export const TimePicker: any; +export const Drawer: any; export function cn(...classes: Array): string; `; diff --git a/src/components/Drawer.astro b/src/components/Drawer.astro index 70afa8c..b56b28f 100644 --- a/src/components/Drawer.astro +++ b/src/components/Drawer.astro @@ -494,7 +494,6 @@ const sizeProperty = isHorizontal ? "width" : "height"; // Avoid double initialization if (drawerElement.drawerInstance) { - console.log(`Drawer "${id}" already initialized`); return; } @@ -508,8 +507,6 @@ const sizeProperty = isHorizontal ? "width" : "height"; bubbles: true, }); drawerElement.dispatchEvent(initEvent); - - console.log(`Drawer "${id}" initialized successfully`); } catch (error) { console.error(`Failed to initialize drawer "${id}":`, error); } diff --git a/src/index.ts b/src/index.ts index 746329d..f20e2cd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -13,6 +13,7 @@ export { default as OtpField } from "../src/components/OtpField.astro"; export { default as PasswordField } from "../src/components/PasswordField.astro"; export { default as ThemeSwitcher } from "../src/components/ThemeSwitcher.astro"; export { default as TimePicker } from "../src/components/TimePicker.astro"; +export { default as Drawer } from "../src/components/Drawer.astro"; // Utils export { cn } from "./utils/cn"; \ No newline at end of file