|
6 | 6 | import { DistributiveOmit } from '@mui/types'; |
7 | 7 |
|
8 | 8 | export { default as THEME_ID } from '../styles/identifier'; |
9 | | -export { |
10 | | - default as createTheme, |
11 | | -} from './createTheme'; |
| 9 | +export { default as createTheme } from './createTheme'; |
12 | 10 | export type { |
13 | 11 | // New types for augmenting the Theme Components |
14 | 12 | CreateThemeComponent, |
@@ -51,10 +49,7 @@ export type { |
51 | 49 | Transitions, |
52 | 50 | TransitionsOptions, |
53 | 51 | } from '../styles/createTransitions'; |
54 | | -export { |
55 | | - duration, |
56 | | - easing, |
57 | | -} from '../styles/createTransitions'; |
| 52 | +export { duration, easing } from '../styles/createTransitions'; |
58 | 53 | export type { Mixins, CSSProperties, MixinsOptions } from '../styles/createMixins'; |
59 | 54 | export type { |
60 | 55 | Direction, |
@@ -89,8 +84,7 @@ export { |
89 | 84 | } from '@mui/system'; |
90 | 85 | export { unstable_createBreakpoints } from '@mui/system/createBreakpoints'; |
91 | 86 | export { default as useTheme } from './useTheme'; |
92 | | -export { default as useThemeProps } from './useThemeProps'; |
93 | | -export * from './useThemeProps'; |
| 87 | +export { default as useThemeProps, type ThemedProps, type ThemeWithProps } from './useThemeProps'; |
94 | 88 | export { default as styled } from './styled'; |
95 | 89 | export { default as ThemeProvider } from './ThemeProvider'; |
96 | 90 | export type { ThemeProviderProps } from './ThemeProvider'; |
@@ -121,6 +115,7 @@ export type StandardProps< |
121 | 115 | style?: React.CSSProperties; |
122 | 116 | }; |
123 | 117 |
|
| 118 | +// eslint-disable-next-line @typescript-eslint/no-namespace |
124 | 119 | export namespace PropTypes { |
125 | 120 | // keeping the type structure for backwards compat |
126 | 121 | export type Color = 'inherit' | 'primary' | 'secondary' | 'default'; |
|
0 commit comments