Closed brambow closed 3 years ago
@tannerjt please still review this but I need to publish these changes to npm to move forward on a few projects. Just going to publish from this branch, not merge yet.
The latest changes here remove any direct emotion-theming dependencies in favor of 100% theme-ui. Looks like we were using emotion-theming mainly to support the Storybook site. I found a storybook addon for theme-ui. The only downside is that it renders in the same panel as the map stuff rather than being registered to storybook's addons panel, but overall it should be a better move for the library.
This PR includes a few breaking changes to the API. This is the beginning of changes that will be published as v2.0
<BaseComponent/>
API has been updated.panel
,top
,left
,bottom
baseType
- choices arenone
(default),panel
,button
sx
- set of styles that are passed to the base container (this existed but is now passed consistently)buttonOptions
- set of options passed to button-style components<ButtonComponent>
(baseType = 'button'
) provides and out-of-the-box UI option for button triggers