-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[material-ui][TextField] Deprecate *Props
props
#42062
Conversation
*Props
props
Netlify deploy previewpackages/material-ui/material-ui.production.min.js: parsed: +0.14% , gzip: +0.13% Bundle size reportDetails of bundle changes (Toolpad) |
@@ -533,7 +533,6 @@ const InputBase = React.forwardRef(function InputBase(inProps, ref) { | |||
{startAdornment} | |||
<FormControlContext.Provider value={null}> | |||
<Input | |||
ownerState={ownerState} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't have been here; it's covered in line 557 below only for non-host components.
dfbf19d
to
bf3c73b
Compare
return readFile(path.join(dirname, fileName)); | ||
} | ||
|
||
export function describeJscodeshiftTransform({ transformName, transform, testCases, dirname }) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea to extract this out!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DiegoAndai Changes look good 👍
I tried running it locally on the whole docs/data/material
directory and it transformed all the TextField
s in the Autocomplete examples too (not sure if you've only ran it in the text-fields
examples dir so far 😬 )
@mj12albert, thanks for catching that! I updated all demos under Is there anything else to fix? I'm taking you as the primary reviewer, so if it's all good on your side, please approve so we can move forward 😊 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
The direction taken makes sense to me 👍 |
Part of #41281
Closes #11377
Implement
slots
andslotProps
props in TextField and deprecate*Props
props:InputProps
in favor ofslotProps.input
inputProps
in favor ofslotProps.htmlInput
SelectProps
in favor ofslotProps.select
InputLabelProps
in favor ofslotProps.inputLabel
FormHelperTextProps
in favor ofslotProps.formHelperText