@mantine/code-highlight
Version:
Code highlight with Mantine theme
1 lines • 690 B
Source Map (JSON)
{"version":3,"file":"CodeHighlight.context.mjs","names":[],"sources":["../../src/CodeHighlight/CodeHighlight.context.ts"],"sourcesContent":["import { createSafeContext, GetStylesApi } from '@mantine/core';\nimport type { CodeHighlightFactory } from './CodeHighlight';\n\nexport interface CodeHighlightContextValue {\n getStyles: GetStylesApi<CodeHighlightFactory>;\n codeColorScheme: 'light' | 'dark' | (string & {}) | undefined;\n}\n\nexport const [CodeHighlightContextProvider, useCodeHighlightContext] =\n createSafeContext<CodeHighlightContextValue>(\n 'CodeHighlightProvider was not found in the component tree'\n );\n"],"mappings":";;;AAQA,MAAa,CAAC,8BAA8B,2BAC1C,kBACE,2DACF"}