Skip to content

Commit

Permalink
refactor(storybook-addon): update deps and tooling (#8109)
Browse files Browse the repository at this point in the history
* refactor(storybook-addon): update deps and tooling

* chore: add changeset
  • Loading branch information
TylerAPfledderer committed Nov 9, 2023
1 parent 389ff61 commit 4340dbd
Show file tree
Hide file tree
Showing 6 changed files with 241 additions and 125 deletions.
14 changes: 14 additions & 0 deletions .changeset/fair-boats-smile.md
@@ -0,0 +1,14 @@
---
"@chakra-ui/storybook-addon": minor
---

Bumps Storybook deps to latest (7.5.3) and updates the tooling

- Toggling state for color mode originally used Storybook's `useAddonState` api
hook. However, this hook is not reliable to persistent allow toggling of
boolean state. Replaces this hook with React's `useState` as this state is a
primitive.
- Makes use of the `makeDecorator` function to make this addon more like an
official Storybook addon.
- Removes unneeded props from the button components that were originally part of
a Type error bug.

1 comment on commit 4340dbd

@vercel
Copy link

@vercel vercel bot commented on 4340dbd Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.