You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

8 months ago
  1. // @flow
  2. import { popperGenerator, detectOverflow } from './createPopper';
  3. import eventListeners from './modifiers/eventListeners';
  4. import popperOffsets from './modifiers/popperOffsets';
  5. import computeStyles from './modifiers/computeStyles';
  6. import applyStyles from './modifiers/applyStyles';
  7. import offset from './modifiers/offset';
  8. import flip from './modifiers/flip';
  9. import preventOverflow from './modifiers/preventOverflow';
  10. import arrow from './modifiers/arrow';
  11. import hide from './modifiers/hide';
  12. export type * from './types';
  13. const defaultModifiers = [
  14. eventListeners,
  15. popperOffsets,
  16. computeStyles,
  17. applyStyles,
  18. offset,
  19. flip,
  20. preventOverflow,
  21. arrow,
  22. hide,
  23. ];
  24. const createPopper = popperGenerator({ defaultModifiers });
  25. // eslint-disable-next-line import/no-unused-modules
  26. export { createPopper, popperGenerator, defaultModifiers, detectOverflow };
  27. // eslint-disable-next-line import/no-unused-modules
  28. export { createPopper as createPopperLite } from './popper-lite';
  29. // eslint-disable-next-line import/no-unused-modules
  30. export * from './modifiers';