aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/modals
Commit message (Collapse)AuthorAgeFilesLines
* refactor(hooks): rewrite useOnClickOutside hookArmand Philippot2023-11-111-4/+6
| | | | | | | * remove `useCapture` parameter (it does not make sense to use bubbling here) * return a MutableRefObject instead of a RefObject to be able to test the hook
* refactor(components): rewrite Modal componentArmand Philippot2023-11-1111-0/+735
| | | | | * add an optional close button * add an icon prop
* refactor(components): rewrite form componentsArmand Philippot2023-10-2410-459/+0
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-207-22/+31
| | | | | | 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-196-11/+11
| | | | | | 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-4/+0
| | | | | | 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.
* test: install and configure cypressArmand Philippot2022-06-022-2/+2
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* chore: replace the Ackee select by a toggle componentArmand Philippot2022-06-014-11/+32
|
* chore: complete Storybook storiesArmand Philippot2022-05-211-0/+13
|
* chore: close toolbar modals on click/focus outsideArmand Philippot2022-05-181-9/+7
|
* refactor(storybook): reorganize design systemArmand Philippot2022-04-202-17/+37
| | | | | Add more stories for each components and change some components categories for better organization.
* refactor: support React 18Armand Philippot2022-04-163-9/+22
| | | | | | | | 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-142-4/+38
|
* refactor: use a consistent classname prop and avoid children propArmand Philippot2022-04-084-10/+63
| | | | | | | | I was using the FunctionComponent type for some component that do not use children. So I change the type to VoidFunctionComponent to avoid mistakes. I also rename all the "classes" or "additionalClasses" props to "className" to keep consistency between each components.
* chore: add a Tooltip componentArmand Philippot2022-04-078-0/+302