Skip to content

v2.0.0

Choose a tag to compare

@based-ghost based-ghost released this 09 Jan 03:42
· 406 commits to master since this release

Change Log

🚀 Feature

  • Added css property of type string | FlattenSimpleInterpolation | undefined (default value is undefined) to various nested objects of the themeConfig object. This property can be used to pass raw CSS styles as a string or wrapped in styled-components exported css function. Those objects are: select, control, icon, menu, noOptions, multiValue, and input.

Note there is a potential breaking change as a result of this update.
the select object no longer has the fontSize property, nor is it's color updated by the color.textColor property. Now, you would need to make an update to themeConfig like:

{
  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 of AutosizeInput.tsx component). Logic for this abstracted out to new hook: useIsBrowserMS.ts.