aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/widgets/table-of-contents.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): merge HeadingButton and Widget componentsArmand Philippot2023-11-111-2/+6
| | | | | | The HeadingButton component was only used inside Widget component and it is not very useful on its own so I merge the two components in a new Collapsible component.
* refactor(components): rewrite List componentArmand Philippot2023-11-111-5/+4
| | | | | | | | | * 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
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-10/+6
| | | | | | 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-191-1/+3
| | | | | | 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 a LegalNotice pageArmand Philippot2022-05-031-0/+2
|
* chore: add a TableOfContents componentArmand Philippot2022-04-221-0/+53