v2.0.0
Change Log
🚀 Feature
- Added
cssproperty of typestring|FlattenSimpleInterpolation|undefined(default value is undefined) to various nested objects of thethemeConfigobject. This property can be used to pass raw CSS styles as a string or wrapped in styled-components exportedcssfunction. Those objects are: select, control, icon, menu, noOptions, multiValue, and input.
Note there is a potential breaking change as a result of this update.
theselectobject no longer has thefontSizeproperty, nor is it's color updated by thecolor.textColorproperty. Now, you would need to make an update tothemeConfiglike:
{
select: {
css: 'font-size: 1rem; color: #000;'
}
}
🛠 Misc
- Bump some dev dependencies
- Micro-optimization to store result of testing for IE browser in a
ref(and testing just once, rather than on every render ofAutosizeInput.tsxcomponent). Logic for this abstracted out to new hook:useIsBrowserMS.ts.