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