forked from hero/www_hero
57 lines
1.6 KiB
JavaScript
57 lines
1.6 KiB
JavaScript
|
// core components
|
||
|
import Accordion, { initAccordions } from './components/accordion';
|
||
|
import Carousel, { initCarousels } from './components/carousel';
|
||
|
import Collapse, { initCollapses } from './components/collapse';
|
||
|
import Dial, { initDials } from './components/dial';
|
||
|
import Dismiss, { initDismisses } from './components/dismiss';
|
||
|
import Drawer, { initDrawers } from './components/drawer';
|
||
|
import Dropdown, { initDropdowns } from './components/dropdown';
|
||
|
import Modal, { initModals } from './components/modal';
|
||
|
import Popover, { initPopovers } from './components/popover';
|
||
|
import Tabs, { initTabs } from './components/tabs';
|
||
|
import Tooltip, { initTooltips } from './components/tooltip';
|
||
|
import './components/index';
|
||
|
import Events from './dom/events';
|
||
|
var turboLoadEvents = new Events('turbo:load', [
|
||
|
initAccordions,
|
||
|
initCollapses,
|
||
|
initCarousels,
|
||
|
initDismisses,
|
||
|
initDropdowns,
|
||
|
initModals,
|
||
|
initDrawers,
|
||
|
initTabs,
|
||
|
initTooltips,
|
||
|
initPopovers,
|
||
|
initDials,
|
||
|
]);
|
||
|
turboLoadEvents.init();
|
||
|
var turboFrameLoadEvents = new Events('turbo:frame-load', [
|
||
|
initAccordions,
|
||
|
initCollapses,
|
||
|
initCarousels,
|
||
|
initDismisses,
|
||
|
initDropdowns,
|
||
|
initModals,
|
||
|
initDrawers,
|
||
|
initTabs,
|
||
|
initTooltips,
|
||
|
initPopovers,
|
||
|
initDials,
|
||
|
]);
|
||
|
turboFrameLoadEvents.init();
|
||
|
export default {
|
||
|
Accordion: Accordion,
|
||
|
Carousel: Carousel,
|
||
|
Collapse: Collapse,
|
||
|
Dial: Dial,
|
||
|
Drawer: Drawer,
|
||
|
Dismiss: Dismiss,
|
||
|
Dropdown: Dropdown,
|
||
|
Modal: Modal,
|
||
|
Popover: Popover,
|
||
|
Tabs: Tabs,
|
||
|
Tooltip: Tooltip,
|
||
|
Events: Events,
|
||
|
};
|
||
|
//# sourceMappingURL=index.turbo.js.map
|