@mantine/core
Version:
React components library focused on usability, accessibility and developer experience
1 lines • 742 B
Source Map (JSON)
{"version":3,"file":"Grid.context.cjs","names":["createSafeContext"],"sources":["../../../src/components/Grid/Grid.context.ts"],"sourcesContent":["import { createSafeContext, GetStylesApi, MantineSize } from '../../core';\nimport type { GridFactory } from './Grid';\n\nexport type GridBreakpoints = Record<MantineSize, string>;\n\nexport interface GridContextValue {\n getStyles: GetStylesApi<GridFactory>;\n grow: boolean | undefined;\n columns: number;\n breakpoints: GridBreakpoints | undefined;\n type: 'container' | 'media' | undefined;\n}\n\nexport const [GridProvider, useGridContext] = createSafeContext<GridContextValue>(\n 'Grid component was not found in tree'\n);\n"],"mappings":";;AAaA,MAAa,CAAC,cAAc,0FAAkBA,kBAC5C,uCACD"}