[BREAKING] TextField's startIcon property is now renamed startSlot.
[Feat] New startSlot and endSlot props on the TextField component. These support rendering not only icons, but buttons too.
[Tweak] PasswordField's toggle visibility button is now implemented by using the TextField's endSlot feature.
About the last one in that list, I want to note that this change allowed me to remove the PasswordField's stylesheet entirely, and also the change was so seamless that the PasswordField's test file needed no changes at all. It brings in that feeling that things are falling more into place with this direction we're taking.
Short description
TextField
'sstartIcon
property is now renamedstartSlot
.startSlot
andendSlot
props on theTextField
component. These support rendering not only icons, but buttons too.PasswordField
's toggle visibility button is now implemented by using theTextField
'sendSlot
feature.About the last one in that list, I want to note that this change allowed me to remove the
PasswordField
's stylesheet entirely, and also the change was so seamless that thePasswordField
's test file needed no changes at all. It brings in that feeling that things are falling more into place with this direction we're taking.Demo
https://github.com/Doist/reactist/assets/15199/65b096a0-69df-454b-b3cb-55f9f8cf4cf0
PR Checklist
npm run validate
and made sure no errors / warnings were shownCHANGELOG.md
package.json
andpackage-lock.json
(npm --no-git-tag-version version <major|minor|patch>
) refnpm run build-all
)Versioning
New major version.