{"version":3,"file":"sticky2.mjs","sources":["../../../../../../../packages/components/sticky/src/sticky.ts"],"sourcesContent":["import {\n  buildProps,\n  makeNumericProp,\n  makeStringProp,\n  numericProp,\n} from '@xzx-design/utils'\n\nimport type { ExtractPropTypes, PropType } from 'vue'\nimport type Sticky from './sticky.vue'\nimport type { StickyPosition, StickyScrollParams } from './types'\n\nexport const stickyProps = buildProps({\n  zIndex: {\n    type: numericProp,\n  },\n  position: makeStringProp<StickyPosition>('top'),\n  container: {\n    type: Object as PropType<Element | undefined>,\n  },\n  offsetTop: makeNumericProp(0),\n  offsetBottom: makeNumericProp(0),\n})\n\nexport type StickyProps = ExtractPropTypes<typeof stickyProps>\nexport type StickyInstance = InstanceType<typeof Sticky>\n\nexport const stickyEmits = {\n  scroll: (params: StickyScrollParams) => params,\n  change: (status: boolean) => status,\n}\n\nexport type StickyEmits = ExtractPropTypes<typeof stickyEmits>\n"],"names":[],"mappings":";;;AAWO,MAAM,cAAc,UAAW,CAAA;AAAA,EACpC,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,WAAA;AAAA,GACR;AAAA,EACA,QAAA,EAAU,eAA+B,KAAK,CAAA;AAAA,EAC9C,SAAW,EAAA;AAAA,IACT,IAAM,EAAA,MAAA;AAAA,GACR;AAAA,EACA,SAAA,EAAW,gBAAgB,CAAC,CAAA;AAAA,EAC5B,YAAA,EAAc,gBAAgB,CAAC,CAAA;AACjC,CAAC,EAAA;AAKM,MAAM,WAAc,GAAA;AAAA,EACzB,MAAA,EAAQ,CAAC,MAA+B,KAAA,MAAA;AAAA,EACxC,MAAA,EAAQ,CAAC,MAAoB,KAAA,MAAA;AAC/B;;;;"}