UNPKG

921 BJavaScriptView Raw
1import * as React from 'react';
2import { extendSxProp } from '@mui/system/styleFunctionSx';
3import useTheme from "../styles/useTheme.js";
4import GlobalStyles from "../GlobalStyles/index.js";
5import { jsx as _jsx } from "react/jsx-runtime";
6export { css, keyframes } from '@mui/system';
7export { default as styled } from "../styles/styled.js";
8export function globalCss(styles) {
9 return function GlobalStylesWrapper(props) {
10 return (
11 /*#__PURE__*/
12 // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
13 _jsx(GlobalStyles, {
14 styles: typeof styles === 'function' ? theme => styles({
15 theme,
16 ...props
17 }) : styles
18 })
19 );
20 };
21}
22
23// eslint-disable-next-line @typescript-eslint/naming-convention
24export function internal_createExtendSxProp() {
25 return extendSxProp;
26}
27export { useTheme };
\No newline at end of file