@grafana/ui
Version:
Grafana Components Library
1 lines • 3.41 kB
Source Map (JSON)
{"version":3,"file":"GlobalStyles.cjs","sources":["../../../../src/themes/GlobalStyles/GlobalStyles.tsx"],"sourcesContent":["import { Global } from '@emotion/react';\n\nimport { useTheme2 } from '../ThemeContext';\n\nimport { getAccessibilityStyles } from './accessibility';\nimport { getAlertingStyles } from './alerting';\nimport { getCardStyles } from './card';\nimport { getCodeStyles } from './code';\nimport { getDashboardGridStyles } from './dashboardGrid';\nimport { getDashDiffStyles } from './dashdiff';\nimport { getElementStyles } from './elements';\nimport { getExtraStyles } from './extra';\nimport { getFilterTableStyles } from './filterTable';\nimport { getFontStyles } from './fonts';\nimport { getFormElementStyles } from './forms';\nimport { getHacksStyles } from './hacks';\nimport { getJsonFormatterStyles } from './jsonFormatter';\nimport { getLegacySelectStyles } from './legacySelect';\nimport { getMarkdownStyles } from './markdownStyles';\nimport { getPageStyles } from './page';\nimport { getQueryEditorStyles } from './queryEditor';\nimport { getSkeletonStyles } from './skeletonStyles';\nimport { getSlateStyles } from './slate';\nimport { getUplotStyles } from './uPlot';\nimport { getUtilityClassStyles } from './utilityClasses';\n\n/** @internal */\nexport function GlobalStyles() {\n const theme = useTheme2();\n\n return (\n <Global\n styles={[\n getAccessibilityStyles(theme),\n getAlertingStyles(theme),\n getCodeStyles(theme),\n getDashDiffStyles(theme),\n getDashboardGridStyles(theme),\n getElementStyles(theme),\n getExtraStyles(theme),\n getFilterTableStyles(theme),\n getFontStyles(theme),\n getFormElementStyles(theme),\n getJsonFormatterStyles(theme),\n getCardStyles(theme),\n getMarkdownStyles(theme),\n getPageStyles(theme),\n getQueryEditorStyles(theme),\n getSkeletonStyles(theme),\n getSlateStyles(theme),\n getUplotStyles(theme),\n getUtilityClassStyles(theme),\n getLegacySelectStyles(theme),\n getHacksStyles({}),\n ]}\n />\n );\n}\n"],"names":["useTheme2","jsx","Global","getAccessibilityStyles","getAlertingStyles","getCodeStyles","getDashDiffStyles","getDashboardGridStyles","getElementStyles","getExtraStyles","getFilterTableStyles","getFontStyles","getFormElementStyles","getJsonFormatterStyles","getCardStyles","getMarkdownStyles","getPageStyles","getQueryEditorStyles","getSkeletonStyles","getSlateStyles","getUplotStyles","getUtilityClassStyles","getLegacySelectStyles","getHacksStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BO,SAAS,YAAA,GAAe;AAC7B,EAAA,MAAM,QAAQA,sBAAA,EAAU;AAExB,EAAA,uBACEC,cAAA;AAAA,IAACC,YAAA;AAAA,IAAA;AAAA,MACC,MAAA,EAAQ;AAAA,QACNC,qCAAuB,KAAK,CAAA;AAAA,QAC5BC,2BAAkB,KAAK,CAAA;AAAA,QACvBC,mBAAc,KAAK,CAAA;AAAA,QACnBC,2BAAkB,KAAK,CAAA;AAAA,QACvBC,qCAAuB,KAAK,CAAA;AAAA,QAC5BC,0BAAiB,KAAK,CAAA;AAAA,QACtBC,qBAAe,KAAK,CAAA;AAAA,QACpBC,iCAAqB,KAAK,CAAA;AAAA,QAC1BC,oBAAc,KAAK,CAAA;AAAA,QACnBC,2BAAqB,KAAK,CAAA;AAAA,QAC1BC,qCAAuB,KAAK,CAAA;AAAA,QAC5BC,mBAAc,KAAK,CAAA;AAAA,QACnBC,iCAAkB,KAAK,CAAA;AAAA,QACvBC,mBAAc,KAAK,CAAA;AAAA,QACnBC,iCAAqB,KAAK,CAAA;AAAA,QAC1BC,iCAAkB,KAAK,CAAA;AAAA,QACvBC,qBAAe,KAAK,CAAA;AAAA,QACpBC,qBAAe,KAAK,CAAA;AAAA,QACpBC,qCAAsB,KAAK,CAAA;AAAA,QAC3BC,mCAAsB,KAAK,CAAA;AAAA,QAC3BC,oBAAA,CAAe,EAAE;AAAA;AACnB;AAAA,GACF;AAEJ;;;;"}