diff --git a/packages/mui-system/src/createStyled/createStyled.d.ts b/packages/mui-system/src/createStyled/createStyled.d.ts index 458a2b653ef98f..651fd020de5135 100644 --- a/packages/mui-system/src/createStyled/createStyled.d.ts +++ b/packages/mui-system/src/createStyled/createStyled.d.ts @@ -38,4 +38,4 @@ export default function createStyled(option styleFunctionSx?: typeof styleFunctionSx; }): CreateMUIStyled; -export function applyStyled(props: any, componentName: string, overridesResolver: Function): string; +export function internal_applyStyled(props: any, componentName: string, overridesResolver: Function): string; diff --git a/packages/mui-system/src/createStyled/createStyled.js b/packages/mui-system/src/createStyled/createStyled.js index 247963f2fb486e..6f041af6ab2bc5 100644 --- a/packages/mui-system/src/createStyled/createStyled.js +++ b/packages/mui-system/src/createStyled/createStyled.js @@ -241,15 +241,12 @@ export default function createStyled(input = {}) { return styled; } -export function applyStyled(props, componentName, overridesResolver) { - const styles = applyThemeOverrides(props, componentName, overridesResolver); - - // NOTE: Later on, we might want to apply other MUI features: - // const styles = [ - // applyThemeOverrides(props, componentName, overridesResolver), - // applyThemeVariants(props, componentName), - // applySystemSx(props, componentName), - // ] +export function internal_applyStyled(props, componentName, overridesResolver) { + const styles = [ + applyThemeOverrides(props, componentName, overridesResolver), + applyThemeVariants(props, componentName), + // applySystemSx(props, componentName), + ] return css(styles); }