aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/layout
Commit message (Collapse)AuthorAgeFilesLines
* 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