@mantine/spotlight
Version:
Command center components for react and Mantine
1 lines • 1.54 kB
Source Map (JSON)
{"version":3,"file":"SpotlightFooter.cjs","names":["Box","useSpotlightContext","classes"],"sources":["../src/SpotlightFooter.tsx"],"sourcesContent":["import {\n Box,\n BoxProps,\n CompoundStylesApiProps,\n ElementProps,\n factory,\n Factory,\n useProps,\n} from '@mantine/core';\nimport { useSpotlightContext } from './Spotlight.context';\nimport classes from './Spotlight.module.css';\n\nexport type SpotlightFooterStylesNames = 'footer';\n\nexport interface SpotlightFooterProps\n extends BoxProps, CompoundStylesApiProps<SpotlightFooterFactory>, ElementProps<'div'> {}\n\nexport type SpotlightFooterFactory = Factory<{\n props: SpotlightFooterProps;\n ref: HTMLDivElement;\n stylesNames: SpotlightFooterStylesNames;\n compound: true;\n}>;\n\nexport const SpotlightFooter = factory<SpotlightFooterFactory>((props) => {\n const { className, style, classNames, styles, ...others } = useProps(\n 'SpotlightFooter',\n null,\n props\n );\n const ctx = useSpotlightContext();\n return <Box {...ctx.getStyles('footer', { className, classNames, style, styles })} {...others} />;\n});\n\nSpotlightFooter.classes = classes;\nSpotlightFooter.displayName = '@mantine/spotlight/SpotlightFooter';\n"],"mappings":";;;;;;AAwBA,MAAa,mBAAA,GAAA,cAAA,UAAmD,UAAU;CACxE,MAAM,EAAE,WAAW,OAAO,YAAY,QAAQ,GAAG,YAAA,GAAA,cAAA,UAC/C,mBACA,MACA,KACF;CAEA,OAAO,iBAAA,GAAA,kBAAA,KAACA,cAAAA,KAAD;EAAK,GADAC,0BAAAA,oBACM,EAAE,UAAU,UAAU;GAAE;GAAW;GAAY;GAAO;EAAO,CAAC;EAAG,GAAI;CAAS,CAAA;AAClG,CAAC;AAED,gBAAgB,UAAUC,yBAAAA;AAC1B,gBAAgB,cAAc"}