aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/toolbar/settings.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Toolbar with Navbar componentArmand Philippot2023-11-111-62/+0
| | | | | | | | * remove SearchModal and SettingsModal components * add a generic NavbarItem component (instead of the previous toolbar items to avoid unreadable styles...) * move FlippingLabel component logic into NavbarItem since it is only used here
* refactor(components): rewrite Modal componentArmand Philippot2023-11-111-5/+8
| | | | | * add an optional close button * add an icon prop
* refactor(hooks,provider): move reduce motion setterArmand Philippot2023-11-111-8/+2
| | | | | | | | | | 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-8/+1
|
* feat(components): add a generic Flip componentArmand Philippot2023-11-111-4/+3
| | | | | | The flipping animation is used at several places so it makes sense to use a single component to handle the animation. It will avoid styles duplication.
* feat(components): replace icons with a generic Icon componentArmand Philippot2023-10-241-3/+3
| | | | | Sizes are also predefined and can be set using the `size` prop, so the consumers should no longer adjust the size in CSS.
* refactor(components): rewrite form componentsArmand Philippot2023-10-241-11/+8
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-11/+9
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-191-5/+5
| | | | | | 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.
* fix(settings): avoid cropped tooltip on small devicesArmand Philippot2022-06-091-3/+3
| | | | | | I changed the settings disposition to make tooltip positioning easier. Jest complains about ref passed but everything seems to work as expected so I'm not sure it is relevant. Maybe a bug with cloneElement.
* chore: add aria hidden attribute to SVG iconsArmand Philippot2022-06-071-1/+1
|
* chore: replace Checkbox component with a BooleanField componentArmand Philippot2022-05-311-7/+11
| | | | | Checkbox and radio buttons are working the same way so I decided to group them in a same component.
* chore(toolbar): change icons to close button when activatedArmand Philippot2022-05-241-4/+5
|
* chore: complete Storybook storiesArmand Philippot2022-05-211-8/+1
|
* chore: handle settings changeArmand Philippot2022-05-181-7/+15
|
* chore: close toolbar modals on click/focus outsideArmand Philippot2022-05-181-9/+7
|
* refactor: support React 18Armand Philippot2022-04-161-6/+8
| | | | | | | | I replaced the deprecated VFC type with FC type and made all children explicits. Formatjs is still not compatible with React 18 so I need to skip type checking when comitting. There are some type errors because of IntlProvider in Storybook stories.
* chore: add a Settings componentArmand Philippot2022-04-141-0/+72