@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
1 lines • 975 B
Source Map (JSON)
{"version":3,"file":"Space.cjs","names":["factory","useProps","Box"],"sources":["../../../src/components/Space/Space.tsx"],"sourcesContent":["import {\n Box,\n BoxProps,\n ElementProps,\n factory,\n Factory,\n StylesApiProps,\n useProps,\n} from '../../core';\n\nexport interface SpaceProps extends BoxProps, StylesApiProps<SpaceFactory>, ElementProps<'div'> {}\n\nexport type SpaceFactory = Factory<{\n props: SpaceProps;\n ref: HTMLDivElement;\n}>;\n\nexport const Space = factory<SpaceFactory>((props) => {\n const { w, h, miw, mih, ...others } = useProps('Space', null, props);\n return <Box {...others} w={w} miw={miw ?? w} h={h} mih={mih ?? h} />;\n});\n\nSpace.displayName = '@mantine/core/Space';\n"],"mappings":";;;;;;;AAiBA,MAAa,QAAQA,gBAAAA,SAAuB,UAAU;CACpD,MAAM,EAAE,GAAG,GAAG,KAAK,KAAK,GAAG,WAAWC,kBAAAA,SAAS,SAAS,MAAM,MAAM;AACpE,QAAO,iBAAA,GAAA,kBAAA,KAACC,YAAAA,KAAD;EAAK,GAAI;EAAW;EAAG,KAAK,OAAO;EAAM;EAAG,KAAK,OAAO;EAAK,CAAA;EACpE;AAEF,MAAM,cAAc"}