aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout
Commit message (Collapse)AuthorAgeFilesLines
* refactor(stories): migrate stories to CSF3 formatArmand Philippot2023-12-1516-296/+136
|
* refactor(components): integrate sectioned page template into PageArmand Philippot2023-11-234-133/+17
| | | | | | | | * replace Section component by a generic one (other components should be able to use it) * add a PageSection component * add `hasSections` prop to Page component * remove sectioned-page template
* refactor(hooks): remove useSettings hookArmand Philippot2023-11-152-5/+5
| | | | | | | It does not make sense to re-export an existing object through a hook. On some pages both the hook and the object was imported... It is better to use the CONFIG (previously settings) object directly and by doing it we avoid potential errors because of conditional hooks.
* refactor(components): rewrite Copyright componentArmand Philippot2023-11-115-175/+0
| | | | | | | | | * remove `icon` prop (it is confusing because a copyright should have the copyright symbol, the license is not part of the copyright) * reorganize copyright informations I also updated the CC BY SA icon because the elements was in the wrong order.
* feat(components): add a Time componentArmand Philippot2023-11-116-23/+225
| | | | | | Instead of using helpers functions to format the date each time we need to use a time element, it makes more sense to create a new component dedicated to this task.
* refactor(components): rewrite Notice componentArmand Philippot2023-11-115-162/+0
| | | | * Rename message prop to children prop and set ReactNode as type
* refactor(components): remove Column and NoScript from atomsArmand Philippot2023-11-1112-177/+6
| | | | | | | * Column is a simple div meant to be used inside Columns component so they should live together. * NoScript is only used in Layout component and its name does not make sense since it needs to be used inside a `noscript` element.
* feat(components): replace icons with a generic Icon componentArmand Philippot2023-10-243-12/+11
| | | | | 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-2431-143/+404
| | | | | Some components have been renamed to be able to create Footer, Header and Nav.
* refactor(components): rewrite Heading componentArmand Philippot2023-10-242-1/+2
| | | | | | | | | * 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 Section componentArmand Philippot2023-10-247-122/+111
| | | | | | * Make it compliant with ESlint rules * Remove mandatory heading, it now depends on the consumer * Change defaults for hasBorder and variant
* build: convert project to esmArmand Philippot2023-10-247-0/+7
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-2022-83/+66
| | | | | | 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-1913-16/+16
| | | | | | 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.
* test: install and configure cypressArmand Philippot2022-06-027-7/+7
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* chore: complete Storybook storiesArmand Philippot2022-05-212-16/+0
|
* chore: improve accessibilityArmand Philippot2022-05-152-2/+19
|
* chore: add Article pagesArmand Philippot2022-05-151-1/+0
|
* chore: add a Contact pageArmand Philippot2022-05-072-3/+24
|
* chore: add a Column componentArmand Philippot2022-04-293-0/+57
|
* chore: add a PageLayout componentArmand Philippot2022-04-252-1/+10
|
* chore: add a Sidebar componentArmand Philippot2022-04-204-0/+97
|
* refactor(storybook): reorganize design systemArmand Philippot2022-04-205-22/+105
| | | | | Add more stories for each components and change some components categories for better organization.
* refactor: support React 18Armand Philippot2022-04-165-9/+13
| | | | | | | | 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 ContactForm componentArmand Philippot2022-04-151-0/+5
|
* chore: add a Notice componentArmand Philippot2022-04-154-0/+104
|
* chore: add a Copyright componentArmand Philippot2022-04-114-0/+178
|
* chore: add a NoScript componentArmand Philippot2022-04-114-0/+97
|
* chore: add a Section componentArmand Philippot2022-04-094-0/+184
|
* chore: add a Main componentArmand Philippot2022-04-093-0/+87