You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So this probably should only support the default variants considering all the other Typography components would need to be altered, and at that point I'd imagine the consumer would just create their own bindings for each instead. Here's some partials for the create theme:
typet_fontStyle= {
...ReactDOM.Style.t,
fontFamily?: string,
fontSize?: string,
fontWeightLight?: string;
fontWeightRegular?: string;
fontWeightMedium?: string;
fontWeightBold?: string;
htmlFontSize?: number;
}
// this shouldn't be partial for the theme type returned by useTheme for exampletypet_typography= {
allVariants?: t_fontStyle,
h1?: t_fontStyle,
h2?: t_fontStyle,
h3?: t_fontStyle,
h4?: t_fontStyle,
h5?: t_fontStyle,
h6?: t_fontStyle,
subtitle1?: t_fontStyle,
subtitle2?: t_fontStyle,
body1?: t_fontStyle,
body2?: t_fontStyle,
caption?: t_fontStyle,
button?: t_fontStyle,
overline?: t_fontStyle,
}
Shadows probably should be typed as an array instead of a tuple because Rescript doesn't allow indexed tuple access but Typescript does
The text was updated successfully, but these errors were encountered:
Also great that you clean up and extend everything now. I was considering creating a v6 branch already, but I think that can wait a bit longer until all remaining issues are fixed. v6 migration should not be so bad from what I gathered.
Also great that you clean up and extend everything now. I was considering creating a v6 branch already, but I think that can wait a bit longer until all remaining issues are fixed. v6 migration should not be so bad from what I gathered.
We are actually using these bindings against v6 so yeah it should not be so bad at all. I'm definitely happy to contribute for v6 stuff.
rescript-mui/packages/rescript-mui-material/src/components/Theme.res
Lines 127 to 137 in ba58b9e
see:
https://github.com/mui/material-ui/blob/v5.x/packages/mui-material/src/styles/createTheme.d.ts#L28-L36
https://github.com/mui/material-ui/blob/v5.x/packages/mui-material/src/styles/createTypography.d.ts#L66
https://github.com/mui/material-ui/blob/v5.x/packages/mui-material/src/styles/shadows.d.ts#L1
So this probably should only support the default variants considering all the other Typography components would need to be altered, and at that point I'd imagine the consumer would just create their own bindings for each instead. Here's some partials for the create theme:
Shadows probably should be typed as an array instead of a tuple because Rescript doesn't allow indexed tuple access but Typescript does
The text was updated successfully, but these errors were encountered: