aboutsummaryrefslogtreecommitdiffstats
path: root/.storybook
Commit message (Collapse)AuthorAgeFilesLines
* refactor(providers,hooks): rewrite PrismThemeProvider & usePrismThemeArmand Philippot2023-11-111-11/+20
| | | | | | * reuse Theme provider logic * move DOM mutation from provider to hook * add a script to init theme before page load
* feat: replace next-themes with a custom ThemeProviderArmand Philippot2023-11-111-7/+7
| | | | | | | To be honest, next-themes was working fine. However since I use a theme provider for Prism code blocks, some code is duplicated between this app and the library. So I prefer to use a custom Provider without the options I don't need.
* refactor(hooks,provider): move reduce motion setterArmand Philippot2023-11-111-11/+13
| | | | | | | | | | Since the local storage key is not meant to change between the components, it should be set directly inside the app file. So both the local storage and the data attribute should be handle in a provider. I also added a custom document because we need a script to retrieve the stored value in local storage earlier to avoid flashing on hydration.
* refactor(hooks,providers): rewrite useAckee hook and AckeeProviderArmand Philippot2023-11-111-5/+13
|
* build(deps): remove storybook onboarding addonArmand Philippot2023-09-211-1/+0
| | | | This plugin was installed bumping Storybook, it is not necessary.
* build(deps): bump all dependenciesArmand Philippot2023-09-198-96/+113
| | | | | * MDX type has changed so some components props had to be updated * Since Storybook now supports TS, I renamed the main/preview files
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-192-16/+1
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* build(storybook): fix loading errors due to updated depsArmand Philippot2022-09-211-18/+0
|
* chore(storybook): use custom themes and add dark mode supportArmand Philippot2022-05-227-2/+162
|
* fix: render all images unoptimized in StorybookArmand Philippot2022-05-221-0/+18
| | | | | | There is a bug with next/image and Storybook. I was manually adding `unoptimized` to images. Instead we can use a workaround by adding an extra config in Storybook `preview.js` file.
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-091-0/+9
| | | | | | The meta can have different layout. The previous implementation was not enough to easily change the layout. Also, I prefer to restrict the meta types and it prevents me to repeat myself for the labels.
* refactor(storybook): reorganize design systemArmand Philippot2022-04-201-1/+13
| | | | | Add more stories for each components and change some components categories for better organization.
* build(storybook): handle SVGR importArmand Philippot2022-04-011-0/+10
|
* build(deps): add storybookArmand Philippot2022-03-312-0/+43