Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
romgrk committed Oct 30, 2024
1 parent ec79cf1 commit e9d5581
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/mui-system/src/createStyled/createStyled.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ export default function createStyled<Theme extends object = DefaultTheme>(option
styleFunctionSx?: typeof styleFunctionSx;
}): CreateMUIStyled<Theme>;

export function applyStyled(props: any, componentName: string, overridesResolver: Function): string;
export function internal_applyStyled(props: any, componentName: string, overridesResolver: Function): string;
15 changes: 6 additions & 9 deletions packages/mui-system/src/createStyled/createStyled.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit e9d5581

Please sign in to comment.