Added New Imports
This commit is contained in:
@@ -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 PasswordField } from "../src/components/PasswordField.astro";
|
||||||
export { default as ThemeSwitcher } from "../src/components/ThemeSwitcher.astro";
|
export { default as ThemeSwitcher } from "../src/components/ThemeSwitcher.astro";
|
||||||
export { default as TimePicker } from "../src/components/TimePicker.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";
|
export { cn } from "../src/utils/cn.js";
|
||||||
`;
|
`;
|
||||||
|
|
||||||
@@ -39,6 +40,7 @@ export const OtpField: any;
|
|||||||
export const PasswordField: any;
|
export const PasswordField: any;
|
||||||
export const ThemeSwitcher: any;
|
export const ThemeSwitcher: any;
|
||||||
export const TimePicker: any;
|
export const TimePicker: any;
|
||||||
|
export const Drawer: any;
|
||||||
export function cn(...classes: Array<string | number | false | null | undefined>): string;
|
export function cn(...classes: Array<string | number | false | null | undefined>): string;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
|||||||
@@ -494,7 +494,6 @@ const sizeProperty = isHorizontal ? "width" : "height";
|
|||||||
|
|
||||||
// Avoid double initialization
|
// Avoid double initialization
|
||||||
if (drawerElement.drawerInstance) {
|
if (drawerElement.drawerInstance) {
|
||||||
console.log(`Drawer "${id}" already initialized`);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -508,8 +507,6 @@ const sizeProperty = isHorizontal ? "width" : "height";
|
|||||||
bubbles: true,
|
bubbles: true,
|
||||||
});
|
});
|
||||||
drawerElement.dispatchEvent(initEvent);
|
drawerElement.dispatchEvent(initEvent);
|
||||||
|
|
||||||
console.log(`Drawer "${id}" initialized successfully`);
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Failed to initialize drawer "${id}":`, error);
|
console.error(`Failed to initialize drawer "${id}":`, error);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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 PasswordField } from "../src/components/PasswordField.astro";
|
||||||
export { default as ThemeSwitcher } from "../src/components/ThemeSwitcher.astro";
|
export { default as ThemeSwitcher } from "../src/components/ThemeSwitcher.astro";
|
||||||
export { default as TimePicker } from "../src/components/TimePicker.astro";
|
export { default as TimePicker } from "../src/components/TimePicker.astro";
|
||||||
|
export { default as Drawer } from "../src/components/Drawer.astro";
|
||||||
|
|
||||||
// Utils
|
// Utils
|
||||||
export { cn } from "./utils/cn";
|
export { cn } from "./utils/cn";
|
||||||
Reference in New Issue
Block a user