aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/molecules/layout/index.ts
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): rewrite Code component and usePrism hookArmand Philippot2023-11-111-1/+0
| | | | | | | | | | | | * move Prism styles to Sass placeholders to avoid repeats * let usePrism consumer define its plugins (remove default ones) * remove `plugins` prop from Code component * add new props to Code component to let consumer configure plugins (and handle plugin list from the given options) However there are some problems with Prism plugins: line-highlight and treeview does not seems to be loaded. I don't want to use Babel instead of SWC so I have no solution for now.
* refactor(components): replace Meta component with MetaListArmand Philippot2023-11-111-1/+0
| | | | | | It removes items complexity by allowing consumers to use any label/value association. Translations should also be defined by the consumer. Each item can now be configured separately (borders, layout...).
* refactor(components): rewrite Branding componentArmand Philippot2023-11-111-1/+0
| | | | | | The component should only be responsible of the layout for the logo, the name and the optional baseline. Also, the homepage url could be different from `/` so the consumer should give the right url.
* refactor(components): merge HeadingButton and Widget componentsArmand Philippot2023-11-111-1/+0
| | | | | | 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: use named export for everything except pagesArmand Philippot2023-09-201-0/+8
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.