1234567891011121314151617181920212223242526272829303132333435 |
- // @flow
- import { popperGenerator, detectOverflow } from './createPopper';
-
- import eventListeners from './modifiers/eventListeners';
- import popperOffsets from './modifiers/popperOffsets';
- import computeStyles from './modifiers/computeStyles';
- import applyStyles from './modifiers/applyStyles';
- import offset from './modifiers/offset';
- import flip from './modifiers/flip';
- import preventOverflow from './modifiers/preventOverflow';
- import arrow from './modifiers/arrow';
- import hide from './modifiers/hide';
-
- export type * from './types';
-
- const defaultModifiers = [
- eventListeners,
- popperOffsets,
- computeStyles,
- applyStyles,
- offset,
- flip,
- preventOverflow,
- arrow,
- hide,
- ];
-
- const createPopper = popperGenerator({ defaultModifiers });
-
- // eslint-disable-next-line import/no-unused-modules
- export { createPopper, popperGenerator, defaultModifiers, detectOverflow };
- // eslint-disable-next-line import/no-unused-modules
- export { createPopper as createPopperLite } from './popper-lite';
- // eslint-disable-next-line import/no-unused-modules
- export * from './modifiers';
|