{"version":3,"file":"shared.mjs","sources":["../../../../../../../packages/components/popup/src/shared.ts"],"sourcesContent":["import { numericProp, truthProp, unknownProp } from '@xzx-design/utils'\n\nimport type { CSSProperties, PropType, TeleportProps } from 'vue'\nimport type { Interceptor } from '@xzx-design/utils'\n\nexport const popupSharedProps = {\n  // whether to show popup\n  show: Boolean,\n  // z-index\n  zIndex: numericProp,\n  // whether to show overlay\n  overlay: truthProp,\n  // transition duration\n  duration: numericProp,\n  // teleport\n  teleport: [String, Object] as PropType<TeleportProps['to']>,\n  // prevent body scroll\n  lockScroll: truthProp,\n  // whether to lazy render\n  lazyRender: truthProp,\n  // callback function before close\n  beforeClose: Function as PropType<Interceptor>,\n  // overlay custom style\n  overlayStyle: Object as PropType<CSSProperties>,\n  // overlay custom class name\n  overlayClass: unknownProp,\n  // Initial rendering animation\n  transitionAppear: Boolean,\n  // whether to close popup when overlay is clicked\n  closeOnClickOverlay: truthProp,\n}\n\nexport type PopupSharedPropKeys = Array<keyof typeof popupSharedProps>\n\nexport const popupSharedPropKeys = Object.keys(\n  popupSharedProps\n) as PopupSharedPropKeys\n"],"names":[],"mappings":";;;AAKO,MAAM,gBAAmB,GAAA;AAAA,EAE9B,IAAM,EAAA,OAAA;AAAA,EAEN,MAAQ,EAAA,WAAA;AAAA,EAER,OAAS,EAAA,SAAA;AAAA,EAET,QAAU,EAAA,WAAA;AAAA,EAEV,QAAA,EAAU,CAAC,MAAA,EAAQ,MAAM,CAAA;AAAA,EAEzB,UAAY,EAAA,SAAA;AAAA,EAEZ,UAAY,EAAA,SAAA;AAAA,EAEZ,WAAa,EAAA,QAAA;AAAA,EAEb,YAAc,EAAA,MAAA;AAAA,EAEd,YAAc,EAAA,WAAA;AAAA,EAEd,gBAAkB,EAAA,OAAA;AAAA,EAElB,mBAAqB,EAAA,SAAA;AACvB,EAAA;AAIO,MAAM,sBAAsB,MAAO,CAAA,IAAA;AAAA,EACxC,gBAAA;AACF;;;;"}