@mantine/spotlight
Version:
Command center components for react and Mantine
1 lines • 1.44 kB
Source Map (JSON)
{"version":3,"file":"SpotlightEmpty.mjs","names":["classes"],"sources":["../src/SpotlightEmpty.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 SpotlightEmptyStylesNames = 'empty';\n\nexport interface SpotlightEmptyProps\n extends BoxProps, CompoundStylesApiProps<SpotlightEmptyFactory>, ElementProps<'div'> {}\n\nexport type SpotlightEmptyFactory = Factory<{\n props: SpotlightEmptyProps;\n ref: HTMLDivElement;\n stylesNames: SpotlightEmptyStylesNames;\n compound: true;\n}>;\n\nexport const SpotlightEmpty = factory<SpotlightEmptyFactory>((props) => {\n const { className, style, classNames, styles, ...others } = useProps(\n 'SpotlightEmpty',\n null,\n props\n );\n\n const ctx = useSpotlightContext();\n\n return <Box {...ctx.getStyles('empty', { classNames, styles, className, style })} {...others} />;\n});\n\nSpotlightEmpty.classes = classes;\nSpotlightEmpty.displayName = '@mantine/spotlight/SpotlightEmpty';\n"],"mappings":";;;;;;AAwBA,MAAa,iBAAiB,SAAgC,UAAU;CACtE,MAAM,EAAE,WAAW,OAAO,YAAY,QAAQ,GAAG,WAAW,SAC1D,kBACA,MACA,KACF;CAIA,OAAO,oBAAC,KAAD;EAAK,GAFA,oBAEM,EAAE,UAAU,SAAS;GAAE;GAAY;GAAQ;GAAW;EAAM,CAAC;EAAG,GAAI;CAAS,CAAA;AACjG,CAAC;AAED,eAAe,UAAUA;AACzB,eAAe,cAAc"}