aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/nav
Commit message (Collapse)AuthorAgeFilesLines
* refactor(stories): migrate stories to CSF3 formatArmand Philippot2023-12-153-178/+111
|
* refactor(components): rewrite Breadcrumbs componentArmand Philippot2023-11-115-238/+0
|
* refactor(components): rewrite Pagination componentArmand Philippot2023-11-115-458/+0
|
* refactor(components): rewrite NavList componentArmand Philippot2023-11-1113-230/+178
| | | | | | | * extract NavItem from NavList * remove `kind` and `listClassName` props (since the consumer has control over NavList, NavItem and NavLink components these props are obsolete)
* refactor(components): rewrite NavLink componentArmand Philippot2023-11-116-73/+190
| | | | * handle style variants to avoid declaring the styles in consumers
* refactor(components): rewrite Link componentArmand Philippot2023-11-118-2/+227
| | | | | | | | | * rename `external` prop to `isExternal` * rename `download` prop to `isDownload` * rewrite CSS to reduce code length and complexity * move link styles in Sass placeholders to avoid repeats because of WordPress articles * move NavLink component to molecules
* refactor(components): rewrite List componentArmand Philippot2023-11-116-51/+31
| | | | | | | | | * change `items` prop to children * replace `kind` prop with `isHierarchical`, `isOrdered` & `isInline` props * add `hideMarker` prop * add `spacing` prop to control item spacing * move lists styles to Sass placeholders to avoid repeats because of headless WordPress
* feat(components): replace icons with a generic Icon componentArmand Philippot2023-10-242-6/+16
| | | | | 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-245-33/+28
| | | | | Some components have been renamed to be able to create Footer, Header and Nav.
* refactor(components): rewrite Button and ButtonLink componentsArmand Philippot2023-10-241-22/+18
| | | | | | | | | | | | | | Both: * move styles to Sass placeholders Button: * add `isPressed` prop to Button * add `isLoading` prop to Button (to differentiate state from disabled) ButtonLink: * replace `external` prop with `isExternal` prop * replace `href` prop with `to` prop
* build: convert project to esmArmand Philippot2023-10-243-0/+3
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-2010-35/+27
| | | | | | 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-1910-17/+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.
* chore: add aria hidden attribute to SVG iconsArmand Philippot2022-06-071-1/+1
|
* test: install and configure cypressArmand Philippot2022-06-023-3/+3
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* chore: complete Storybook storiesArmand Philippot2022-05-213-24/+4
|
* chore: handle blog pagination when JS is disabledArmand Philippot2022-05-202-6/+6
|
* chore: add homepageArmand Philippot2022-05-032-1/+32
|
* chore: add a PageLayout componentArmand Philippot2022-04-252-4/+31
|
* chore: add a Pagination componentArmand Philippot2022-04-214-0/+472
|
* refactor(storybook): reorganize design systemArmand Philippot2022-04-202-30/+72
| | | | | Add more stories for each components and change some components categories for better organization.
* refactor: support React 18Armand Philippot2022-04-162-4/+4
| | | | | | | | 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 MainNav componentArmand Philippot2022-04-141-2/+11
|
* chore: add a Nav componentArmand Philippot2022-04-124-0/+196
|
* chore: add a Breadcrumb componentArmand Philippot2022-04-114-0/+195