@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
1 lines • 726 B
Source Map (JSON)
{"version":3,"file":"Drawer.context.cjs","names":["createSafeContext"],"sources":["../../../src/components/Drawer/Drawer.context.ts"],"sourcesContent":["import { createSafeContext, GetStylesApi, MantineRadius } from '../../core';\nimport type { DrawerRootFactory } from './DrawerRoot';\n\nexport type ScrollAreaComponent = React.FC<any>;\n\nexport interface DrawerContextValue {\n scrollAreaComponent: ScrollAreaComponent | undefined;\n getStyles: GetStylesApi<DrawerRootFactory>;\n radius: MantineRadius | undefined;\n}\n\nexport const [DrawerProvider, useDrawerContext] = createSafeContext<DrawerContextValue>(\n 'Drawer component was not found in tree'\n);\n"],"mappings":";;AAWA,MAAa,CAAC,gBAAgB,4FAAoBA,kBAChD,yCACD"}