refactor: replace @chakra-ui/addon
with local setup
#12944
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
In response to attempting to add a RTL language as a locale option for Storybook, this PR removes
@chakra-ui/storybook-addon
in favor of a local decorator setup.It is expected that the addon will not be updated due to ongoing building of Chakra v3 (which will deprecate the addon). In it's current state, the addon is not set up to properly sync with the changing of locale direction via
i18next
, affecting DX.Creation of a local decorator similar to the addon expects a resolution to this, along with other modifications.
The
.storybook/types
brings in thegetThemingArgTypes
from the addon to generate SB controls based on the given component theme. (Currently in use inButton.stories
)The Farsi language is added to SB as a locale option to generate RTL snapshots in Chromatic.