@@ -66,14 +66,14 @@ type WithStylePrivateProps<
6666> = Style extends null
6767 ? object
6868 : {
69- styles ?: Style
70- makeStyles ?: ( extraArgs ?: Record < string , unknown > ) => void
71- }
69+ styles ?: Style
70+ makeStyles ?: ( extraArgs ?: Record < string , unknown > ) => void
71+ }
7272
7373type ThemeOverrideProp < Theme extends ComponentTheme | null = ComponentTheme > = {
7474 themeOverride ?:
75- | Partial < Theme >
76- | ( ( componentTheme : Theme , currentTheme : BaseTheme ) => Partial < Theme > )
75+ | Partial < Theme >
76+ | ( ( componentTheme : Theme , currentTheme : BaseTheme ) => Partial < Theme > )
7777}
7878
7979type WithStyleProps <
@@ -87,7 +87,7 @@ declare const process: Record<string, any> | undefined
8787
8888const defaultValues = {
8989 styles : { } ,
90- makeStyles : ( ) => { }
90+ makeStyles : ( ) => { }
9191}
9292
9393/**
@@ -175,7 +175,7 @@ const withStyle = decorator(
175175 if ( frozenTheme && ! frozenTheme [ themeKey ] ) {
176176 console . error (
177177 `The version of ${ displayName } you are using does not support the currently applied "${ themeKey } " theme. ` +
178- `Please upgrade to the latest version of ${ displayName } .`
178+ `Please upgrade to the latest version of ${ displayName } .`
179179 )
180180 }
181181
@@ -231,7 +231,7 @@ const withStyle = decorator(
231231 theme . newTheme . sharedTokens ?.( semantics ) ,
232232 sharedTokensOverrides
233233 )
234-
234+ // Note: Some components do not have a theme, e.g., FormFieldMessages
235235 const baseComponentTheme =
236236 theme . newTheme . components [ componentId as keyof NewComponentTypes ] ?.(
237237 semantics
@@ -247,17 +247,17 @@ const withStyle = decorator(
247247 // @ts -ignore TODO-theme-types: fix typing
248248 typeof componentOverridesFromThemeOverrideProp === 'function'
249249 ? componentOverridesFromThemeOverrideProp (
250- componentThemeFromSettingsProvider ,
251- themeInContext
252- )
250+ componentThemeFromSettingsProvider ,
251+ themeInContext
252+ )
253253 : componentOverridesFromThemeOverrideProp
254254 )
255255
256256 // TODO do not call here generateStyle, it does not receive the extraArgs
257257 const [ styles , setStyles ] = useState (
258258 generateStyle
259259 ? // @ts -ignore TODO-theme-types: fix typing
260- generateStyle ( componentTheme , componentProps , sharedTokens , { } )
260+ generateStyle ( componentTheme , componentProps , sharedTokens , { } )
261261 : { }
262262 )
263263
0 commit comments