Skip to content

Brewkit components 5 alpha

Pre-release
Pre-release
Compare
Choose a tag to compare
@kbulatovic kbulatovic released this 13 Jan 21:34

Version 5 alpha release

Changes summary

Brewkit 5 is out in testing alpha. Changes include

  • Removal of themes repo in favor of styles export from @brewkit/components.
  • Styles API is now used directly from @brewkit/components which is declarative approach over Material 4 styles solution (documentation is underway)
  • Types files are removed in favor of direct embedding into the component, this way we eliminate empty types files, and direct import from component structure (inspired by Material's approach)
  • Temporarily the storybook will be unavailable due to numerous file structure and API changes. New storybook implementation is underway. Not yet decided should we bother to reboot the old storybook for temporary support or just focus on the new one, which will be deployed soon.
  • Jest unit testing is also broken due to style API change, and it will be fixed in one of the next updates

Usage notes

Components are tested with ovrc-ui, and so far no major bugs are found.
If any other team on SnapOne decides to use this prerelease version, it will be great help if you report bugs/or have any suggestions.

Issues

Invalid hook call

More info here

This happens for reason no 3 in document above. Your bundler detecs additional react package declared as peer dependancy from @brewkit/components which collides with your react package in node modules.
This also happens if you

** Working solution ** link

Note: This is a temporary solution, until we find a more elegant way to address this.

Material - several instances found

More info here

** Working solution **
Same as for react Invalid hook call. Use @material-ui/styles package as alias in you bundler.