{"version":3,"file":"VaulFooter.cjs","sources":["../../src/lib/VaulFooter.tsx"],"sourcesContent":["import type {\n  BoxProps,\n  CompoundStylesApiProps,\n  ElementProps,\n  ExtendComponent,\n  Factory,\n  MantineThemeComponent\n} from '@mantine/core'\nimport { Box, factory, useProps } from '@mantine/core'\nimport { useVaulContext } from './context'\nimport type { VaulClasses } from './types'\nimport classes from './vaul.module.css'\n\nexport interface VaulFooterProps extends BoxProps, CompoundStylesApiProps<VaulFooterFactory>, ElementProps<'div'> {}\nexport type VaulFooterStylesNames = 'footer'\n\nexport type VaulFooterFactory = Factory<{\n  props: VaulFooterProps\n  ref: HTMLDivElement\n  stylesNames: VaulFooterStylesNames\n  compound: true\n}>\n\nconst defaultProps: VaulFooterProps = {}\n\nexport const VaulFooter = factory<VaulFooterFactory>((_props, ref) => {\n  const { style, className, classNames, styles, vars, mod, ...rest } = useProps('VaulFooter', defaultProps, _props)\n\n  const { getStyles, variant } = useVaulContext()\n\n  return (\n    <Box\n      ref={ref}\n      mod={[{ part: 'footer' }, mod]}\n      {...getStyles('footer', { className, classNames, styles, style, variant })}\n      {...(rest as any)}\n    />\n  )\n})\n\nconst extendVaulFooter = (c: ExtendComponent<VaulFooterFactory>): MantineThemeComponent => c\n\nVaulFooter.displayName = 'mantine-vaul/VaulFooter'\nVaulFooter.classes = classes as VaulClasses\nVaulFooter.extend = extendVaulFooter\n"],"names":["defaultProps","VaulFooter","factory","_props","ref","style","className","classNames","styles","vars","mod","rest","useProps","getStyles","variant","useVaulContext","jsx","Box","extendVaulFooter","c","classes"],"mappings":"8MAuBMA,EAAgC,CAAA,EAEzBC,EAAaC,EAAA,QAA2B,CAACC,EAAQC,IAAQ,CACpE,KAAM,CAAE,MAAAC,EAAO,UAAAC,EAAW,WAAAC,EAAY,OAAAC,EAAQ,KAAAC,EAAM,IAAAC,EAAK,GAAGC,CAAK,EAAIC,EAAS,SAAA,aAAcZ,EAAcG,CAAM,EAE1G,CAAE,UAAAU,EAAW,QAAAC,CAAQ,EAAIC,EAAe,eAAA,EAG5C,OAAAC,EAAA,IAACC,EAAA,IAAA,CACC,IAAAb,EACA,IAAK,CAAC,CAAE,KAAM,QAAA,EAAYM,CAAG,EAC5B,GAAGG,EAAU,SAAU,CAAE,UAAAP,EAAW,WAAAC,EAAY,OAAAC,EAAQ,MAAAH,EAAO,QAAAS,EAAS,EACxE,GAAIH,CAAA,CAAA,CAGX,CAAC,EAEKO,EAAoBC,GAAiEA,EAE3FlB,EAAW,YAAc,0BACzBA,EAAW,QAAUmB,EAAAA,QACrBnB,EAAW,OAASiB"}