UNPKG

2.64 kBJavaScriptView Raw
1import _formatMuiErrorMessage from "@mui/utils/formatMuiErrorMessage";
2export { default as THEME_ID } from "./identifier.js";
3export { default as adaptV4Theme } from "./adaptV4Theme.js";
4export { hexToRgb, rgbToHex, hslToRgb, decomposeColor, recomposeColor, getContrastRatio, getLuminance, emphasize, alpha, darken, lighten, css, keyframes } from '@mui/system';
5export { unstable_createBreakpoints } from '@mui/system/createBreakpoints';
6// TODO: Remove this function in v6.
7// eslint-disable-next-line @typescript-eslint/naming-convention
8export function experimental_sx() {
9 throw new Error(process.env.NODE_ENV !== "production" ? 'MUI: The `experimental_sx` has been moved to `theme.unstable_sx`.' + 'For more details, see https://github.com/mui/material-ui/pull/35150.' : _formatMuiErrorMessage(19));
10}
11export { default as createTheme, createMuiTheme } from "./createTheme.js";
12export { default as unstable_createMuiStrictModeTheme } from "./createMuiStrictModeTheme.js";
13export { default as createStyles } from "./createStyles.js";
14export { getUnit as unstable_getUnit, toUnitless as unstable_toUnitless } from "./cssUtils.js";
15export { default as responsiveFontSizes } from "./responsiveFontSizes.js";
16export { default as createTransitions, duration, easing } from "./createTransitions.js";
17export { default as createColorScheme } from "./createColorScheme.js";
18export { default as useTheme } from "./useTheme.js";
19export { default as useThemeProps } from "./useThemeProps.js";
20export { default as styled } from "./styled.js";
21export { default as experimentalStyled } from "./styled.js";
22export { default as ThemeProvider } from "./ThemeProvider.js";
23export { StyledEngineProvider } from '@mui/system';
24// The legacy utilities from @mui/styles
25// These are just empty functions that throws when invoked
26export { default as makeStyles } from "./makeStyles.js";
27export { default as withStyles } from "./withStyles.js";
28export { default as withTheme } from "./withTheme.js";
29export * from "./ThemeProviderWithVars.js";
30export { default as extendTheme } from "./createThemeWithVars.js";
31export { default as experimental_extendTheme } from "./experimental_extendTheme.js"; // TODO: Remove in v7
32export { default as getOverlayAlpha } from "./getOverlayAlpha.js";
33export { default as shouldSkipGeneratingVar } from "./shouldSkipGeneratingVar.js";
34
35// Private methods for creating parts of the theme
36export { default as private_createTypography } from "./createTypography.js";
37export { default as private_createMixins } from "./createMixins.js";
38export { default as private_excludeVariablesFromRoot } from "./excludeVariablesFromRoot.js";
\No newline at end of file