Blame view

天文台pc/tianwentai-ui/node_modules/@mui/material/esm/zero-styled/index.js 889 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  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 };