paradiego
This commit is contained in:
12
node_modules/@mui/material/zero-styled/index.d.ts
generated
vendored
Normal file
12
node_modules/@mui/material/zero-styled/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as React from 'react';
|
||||
import { Interpolation } from '@mui/system';
|
||||
import { extendSxProp } from '@mui/system/styleFunctionSx';
|
||||
import { Theme } from '../styles/createTheme';
|
||||
import useTheme from '../styles/useTheme';
|
||||
export { css, keyframes } from '@mui/system';
|
||||
export { default as styled } from '../styles/styled';
|
||||
export declare function globalCss(styles: Interpolation<{
|
||||
theme: Theme;
|
||||
}>): (props: Record<string, any>) => React.JSX.Element;
|
||||
export declare function internal_createExtendSxProp(): typeof extendSxProp;
|
||||
export { useTheme };
|
||||
27
node_modules/@mui/material/zero-styled/index.js
generated
vendored
Normal file
27
node_modules/@mui/material/zero-styled/index.js
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import * as React from 'react';
|
||||
import { extendSxProp } from '@mui/system/styleFunctionSx';
|
||||
import useTheme from "../styles/useTheme.js";
|
||||
import GlobalStyles from "../GlobalStyles/index.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
export { css, keyframes } from '@mui/system';
|
||||
export { default as styled } from "../styles/styled.js";
|
||||
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 };
|
||||
6
node_modules/@mui/material/zero-styled/package.json
generated
vendored
Normal file
6
node_modules/@mui/material/zero-styled/package.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "./index.js",
|
||||
"main": "../node/zero-styled/index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user