aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* feat(components): add an Overlay componentArmand Philippot2023-11-111-0/+1
| | | | | | | | * add useScrollbarWidth hook * add useScrollLock hook * add a new component to lock scroll with an overlay (it can be useful especially on small screens to prevent background contents to be scrolled)
* refactor(components): rewrite Modal componentArmand Philippot2023-11-111-1/+0
| | | | | * add an optional close button * add an icon prop
* refactor(components): replace ResponsiveImage with Figure componentArmand Philippot2023-11-111-0/+1
| | | | | | | | The styles applied to ResponsiveImage are related to the figure and figcaption elements. Those elements could be use with other contents than images. So I extracted them in a Figure component. The ResponsiveImage component is no longer useful: the consumer should use the Image component from `next` and wrap it in a link if needed.
* feat(components): add a generic Flip componentArmand Philippot2023-11-111-0/+1
| | | | | | 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): add a VisuallyHidden componentArmand Philippot2023-11-111-0/+1
|
* refactor(components): rewrite Notice componentArmand Philippot2023-11-111-0/+1
| | | | * Rename message prop to children prop and set ReactNode as type
* feat(components): replace icons with a generic Icon componentArmand Philippot2023-10-241-1/+0
| | | | | Sizes are also predefined and can be set using the `size` prop, so the consumers should no longer adjust the size in CSS.
* feat(components): add Article, Aside, Footer, Header, Main & NavArmand Philippot2023-10-241-0/+1
| | | | | Some components have been renamed to be able to create Footer, Header and Nav.
* refactor(components): rewrite Heading componentArmand Philippot2023-10-241-1/+1
| | | | | | | | | * remove `alignment` and `withMargin` props (consumer should handle that) * move styles to Sass placeholders to avoid repeats with headings coming from WordPress * refactor some other components that depend on Heading to avoid ESlint errors
* refactor(components): rewrite form componentsArmand Philippot2023-10-241-0/+1
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-0/+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.