shared.mjs 528 B

12345678910111213141516171819202122
  1. import { truthProp, unknownProp, numericProp } from "../utils/index.mjs";
  2. const popupSharedProps = {
  3. show: Boolean,
  4. zIndex: numericProp,
  5. overlay: truthProp,
  6. duration: numericProp,
  7. teleport: [String, Object],
  8. lockScroll: truthProp,
  9. lazyRender: truthProp,
  10. beforeClose: Function,
  11. overlayStyle: Object,
  12. overlayClass: unknownProp,
  13. transitionAppear: Boolean,
  14. closeOnClickOverlay: truthProp
  15. };
  16. const popupSharedPropKeys = Object.keys(
  17. popupSharedProps
  18. );
  19. export {
  20. popupSharedPropKeys,
  21. popupSharedProps
  22. };