paradiego
This commit is contained in:
13
node_modules/@mui/system/GlobalStyles/GlobalStyles.d.ts
generated
vendored
Normal file
13
node_modules/@mui/system/GlobalStyles/GlobalStyles.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import * as React from 'react';
|
||||
import { Interpolation } from '@mui/styled-engine';
|
||||
import { Theme as SystemTheme } from '../createTheme';
|
||||
export interface GlobalStylesProps<Theme = SystemTheme> {
|
||||
styles: Interpolation<Theme>;
|
||||
defaultTheme?: object;
|
||||
themeId?: string;
|
||||
}
|
||||
declare function GlobalStyles<Theme = SystemTheme>({ styles, themeId, defaultTheme, }: GlobalStylesProps<Theme>): React.JSX.Element;
|
||||
declare namespace GlobalStyles {
|
||||
var propTypes: any;
|
||||
}
|
||||
export default GlobalStyles;
|
||||
37
node_modules/@mui/system/GlobalStyles/GlobalStyles.js
generated
vendored
Normal file
37
node_modules/@mui/system/GlobalStyles/GlobalStyles.js
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
'use client';
|
||||
|
||||
import * as React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { GlobalStyles as MuiGlobalStyles } from '@mui/styled-engine';
|
||||
import useTheme from "../useTheme/index.js";
|
||||
import { jsx as _jsx } from "react/jsx-runtime";
|
||||
function GlobalStyles({
|
||||
styles,
|
||||
themeId,
|
||||
defaultTheme = {}
|
||||
}) {
|
||||
const upperTheme = useTheme(defaultTheme);
|
||||
const globalStyles = typeof styles === 'function' ? styles(themeId ? upperTheme[themeId] || upperTheme : upperTheme) : styles;
|
||||
return /*#__PURE__*/_jsx(MuiGlobalStyles, {
|
||||
styles: globalStyles
|
||||
});
|
||||
}
|
||||
process.env.NODE_ENV !== "production" ? GlobalStyles.propTypes /* remove-proptypes */ = {
|
||||
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
||||
// │ These PropTypes are generated from the TypeScript type definitions. │
|
||||
// │ To update them, edit the TypeScript types and run `pnpm proptypes`. │
|
||||
// └─────────────────────────────────────────────────────────────────────┘
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
defaultTheme: PropTypes.object,
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
styles: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.array, PropTypes.func, PropTypes.number, PropTypes.object, PropTypes.string, PropTypes.bool]),
|
||||
/**
|
||||
* @ignore
|
||||
*/
|
||||
themeId: PropTypes.string
|
||||
} : void 0;
|
||||
export default GlobalStyles;
|
||||
2
node_modules/@mui/system/GlobalStyles/index.d.ts
generated
vendored
Normal file
2
node_modules/@mui/system/GlobalStyles/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default } from './GlobalStyles';
|
||||
export * from './GlobalStyles';
|
||||
2
node_modules/@mui/system/GlobalStyles/index.js
generated
vendored
Normal file
2
node_modules/@mui/system/GlobalStyles/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export { default } from "./GlobalStyles.js";
|
||||
export * from "./GlobalStyles.js";
|
||||
6
node_modules/@mui/system/GlobalStyles/package.json
generated
vendored
Normal file
6
node_modules/@mui/system/GlobalStyles/package.json
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"sideEffects": false,
|
||||
"module": "./index.js",
|
||||
"main": "../node/GlobalStyles/index.js",
|
||||
"types": "./index.d.ts"
|
||||
}
|
||||
Reference in New Issue
Block a user