Files
2026-08-07 21:39:30 +02:00

26 lines
892 B
JavaScript

import { extendSxProp } from '@mui/system/styleFunctionSx';
import useTheme from "../styles/useTheme.mjs";
import GlobalStyles from "../GlobalStyles/index.mjs";
import { jsx as _jsx } from "react/jsx-runtime";
export { css, keyframes } from '@mui/system';
export { default as styled } from "../styles/styled.mjs";
export function globalCss(styles) {
return function GlobalStylesWrapper(props) {
return (
/*#__PURE__*/
// Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
_jsx(GlobalStyles, {
styles: typeof styles === 'function' ? theme => styles({
theme,
...props
}) : styles
})
);
};
}
// eslint-disable-next-line @typescript-eslint/naming-convention
export function internal_createExtendSxProp() {
return extendSxProp;
}
export { useTheme };