flowbite-2.0
Version:
The most popular library of interactive components built with Tailwind CSS
82 lines • 2.92 kB
TypeScript
import { AccordionInterface } from '../components/accordion/interface';
import { CarouselInterface } from '../components/carousel/interface';
import { CollapseInterface } from '../components/collapse/interface';
import { DialInterface } from '../components/dial/interface';
import { DismissInterface } from '../components/dismiss/interface';
import { DrawerInterface } from '../components/drawer/interface';
import { DropdownInterface } from '../components/dropdown/interface';
import { ModalInterface } from '../components/modal/interface';
import { PopoverInterface } from '../components/popover/interface';
import { TabsInterface } from '../components/tabs/interface';
import { TooltipInterface } from '../components/tooltip/interface';
declare class Instances {
private _instances;
constructor();
addInstance(component: keyof Instances['_instances'], instance: any, id?: string, forceOverride?: boolean): boolean;
getAllInstances(): {
Accordion: {
[ ]: AccordionInterface;
};
Carousel: {
[ ]: CarouselInterface;
};
Collapse: {
[ ]: CollapseInterface;
};
Dial: {
[ ]: DialInterface;
};
Dismiss: {
[ ]: DismissInterface;
};
Drawer: {
[ ]: DrawerInterface;
};
Dropdown: {
[ ]: DropdownInterface;
};
Modal: {
[ ]: ModalInterface;
};
Popover: {
[ ]: PopoverInterface;
};
Tabs: {
[ ]: TabsInterface;
};
Tooltip: {
[ ]: TooltipInterface;
};
};
getInstances(component: keyof Instances['_instances']): false | {
[ ]: AccordionInterface;
} | {
[ ]: CarouselInterface;
} | {
[ ]: CollapseInterface;
} | {
[ ]: DialInterface;
} | {
[ ]: DismissInterface;
} | {
[ ]: DrawerInterface;
} | {
[ ]: DropdownInterface;
} | {
[ ]: ModalInterface;
} | {
[ ]: TabsInterface;
} | {
[ ]: TooltipInterface;
};
getInstance(component: keyof Instances['_instances'], id: string): any;
destroyAndRemoveInstance(component: keyof Instances['_instances'], id: string): void;
removeInstance(component: keyof Instances['_instances'], id: string): void;
destroyInstanceObject(component: keyof Instances['_instances'], id: string): void;
instanceExists(component: keyof Instances['_instances'], id: string): boolean;
private _generateRandomId;
private _componentAndInstanceCheck;
}
declare const instances: Instances;
export default instances;
//# sourceMappingURL=instances.d.ts.map