UNPKG

4.1 kBTypeScriptView Raw
1export { default as THEME_ID } from './identifier';
2export {
3 default as createTheme,
4 default as unstable_createMuiStrictModeTheme,
5 createMuiTheme,
6 ThemeOptions,
7 Theme,
8 CssThemeVariables,
9} from './createTheme';
10export { default as adaptV4Theme, DeprecatedThemeOptions } from './adaptV4Theme';
11export { Shadows } from './shadows';
12export { ZIndex } from './zIndex';
13export {
14 CommonColors,
15 Palette,
16 PaletteColor,
17 PaletteColorOptions,
18 PaletteOptions,
19 SimplePaletteColorOptions,
20 TypeText,
21 TypeAction,
22 TypeBackground,
23 PaletteMode,
24 Color,
25} from './createPalette';
26export { default as createColorScheme } from './createColorScheme';
27export { default as createStyles } from './createStyles';
28export {
29 Typography as TypographyVariants,
30 TypographyOptions as TypographyVariantsOptions,
31 TypographyStyle,
32 Variant as TypographyVariant,
33} from './createTypography';
34export { default as responsiveFontSizes } from './responsiveFontSizes';
35export {
36 Duration,
37 Easing,
38 Transitions,
39 TransitionsOptions,
40 duration,
41 easing,
42} from './createTransitions';
43export { Mixins } from './createMixins';
44export {
45 Direction,
46 Breakpoint,
47 BreakpointOverrides,
48 Breakpoints,
49 BreakpointsOptions,
50 CreateMUIStyled,
51 Interpolation,
52 CSSInterpolation,
53 CSSObject,
54 css,
55 keyframes,
56 // color manipulators
57 hexToRgb,
58 rgbToHex,
59 hslToRgb,
60 decomposeColor,
61 recomposeColor,
62 getContrastRatio,
63 getLuminance,
64 emphasize,
65 alpha,
66 darken,
67 lighten,
68 ColorFormat,
69 ColorObject,
70 StyledEngineProvider,
71 SxProps,
72} from '@mui/system';
73export { unstable_createBreakpoints } from '@mui/system/createBreakpoints';
74// TODO: Remove this function in v6.
75// eslint-disable-next-line @typescript-eslint/naming-convention
76export function experimental_sx(): any;
77export { default as useTheme } from './useTheme';
78export { default as useThemeProps } from './useThemeProps';
79export * from './useThemeProps';
80export { default as styled } from './styled';
81/**
82 * @deprecated will be removed in v5.beta, please use styled from @mui/material/styles instead
83 */
84export { default as experimentalStyled } from './styled';
85export { default as ThemeProvider } from './ThemeProvider';
86export { ComponentsProps, ComponentsPropsList } from './props';
87export { ComponentsVariants } from './variants';
88export { ComponentsOverrides, ComponentNameToClassKey } from './overrides';
89export { Components } from './components';
90export { getUnit as unstable_getUnit, toUnitless as unstable_toUnitless } from './cssUtils';
91
92export type ClassNameMap<ClassKey extends string = string> = Record<ClassKey, string>;
93
94export interface StyledComponentProps<ClassKey extends string = string> {
95 /**
96 * Override or extend the styles applied to the component.
97 */
98 classes?: Partial<ClassNameMap<ClassKey>>;
99}
100
101export { default as makeStyles } from './makeStyles';
102export { default as withStyles } from './withStyles';
103export { default as withTheme } from './withTheme';
104
105export * from './ThemeProviderWithVars';
106
107export { default as extendTheme } from './createThemeWithVars';
108
109export type {
110 ColorSchemeOverrides,
111 SupportedColorScheme,
112 ColorSystem,
113 CssVarsPalette,
114 Opacity,
115 Overlays,
116 PaletteAlert,
117 PaletteActionChannel,
118 PaletteAppBar,
119 PaletteAvatar,
120 PaletteChip,
121 PaletteColorChannel,
122 PaletteCommonChannel,
123 PaletteFilledInput,
124 PaletteLinearProgress,
125 PaletteSkeleton,
126 PaletteSlider,
127 PaletteSnackbarContent,
128 PaletteSpeedDialAction,
129 PaletteStepConnector,
130 PaletteStepContent,
131 PaletteSwitch,
132 PaletteTableCell,
133 PaletteTextChannel,
134 PaletteTooltip,
135 CssVarsThemeOptions,
136 CssVarsTheme,
137 ThemeVars,
138 ThemeCssVar,
139 ThemeCssVarOverrides,
140 ColorSystemOptions,
141} from './createThemeWithVars';
142export { default as getOverlayAlpha } from './getOverlayAlpha';
143export { default as shouldSkipGeneratingVar } from './shouldSkipGeneratingVar';
144
145// Private methods for creating parts of the theme
146export { default as private_createTypography } from './createTypography';
147export { default as private_excludeVariablesFromRoot } from './excludeVariablesFromRoot';