New Metadata component for Blits, and some updates to style typings and utils
Changes
Added Metadata component
Added flexUtils to handle some of the logic we're missing as Blits has no flex yet :(
Added styleUtils with some generic types for Component styling, all component style objects need to satisfy this type now (see any component's style for how this works)
Added methods to search a style object for a specific property (can be deeply nested e.g. obj.foo.bar) - search is prioritised based on tone and state to avoid needing to write all combinations into style objects. Props will be searched in this priority: Tone + State -> State -> Tone -> Base
Updated the Storybook decorator to allow object properties to be passed into components
Updated Storybook decorator to focus on the component by default (if available)
Testing
Launch Storybook and take a look at the Metadata component, try its controls to see that they are all working. Also please take a quick look at the other components to make sure they still render correctly as they've all been updated to use the new styleUtils
Description
New Metadata component for Blits, and some updates to style typings and utils
Changes
Testing
Launch Storybook and take a look at the Metadata component, try its controls to see that they are all working. Also please take a quick look at the other components to make sure they still render correctly as they've all been updated to use the new styleUtils