aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/layout/overview.tsx
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Meta component with MetaListArmand Philippot2023-11-111-19/+5
| | | | | | 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): replace ResponsiveImage with Figure componentArmand Philippot2023-11-111-8/+9
| | | | | | | | The styles applied to ResponsiveImage are related to the figure and figcaption elements. Those elements could be use with other contents than images. So I extracted them in a Figure component. The ResponsiveImage component is no longer useful: the consumer should use the Image component from `next` and wrap it in a link if needed.
* refactor(components): rewrite DescriptionList componentArmand Philippot2023-11-111-4/+2
| | | | | | | | | | | | | * add a `spacing` prop * replace `layout` prop with `isInline` prop * remove `items` prop (and classNames props) in favor of new components: Description, Group, Term * remove `withSeparator` prop (CSS content is announced by screen readers and Firefox/Safari have no support for alternative text so the consumer should add itself an element with `aria-hidden` if it need a separator) Be aware, Meta component and its consumers can be visually broken, they should be refactored before using them in production.
* refactor: use named export for everything except pagesArmand Philippot2023-09-201-7/+11
| | | | | | 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-3/+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: make Links and Images compliant with Next.js 13Armand Philippot2023-01-231-7/+1
|
* chore: update images stylesArmand Philippot2022-05-201-1/+1
|
* chore: fix minor styles/typescript issues introduced during refactoringArmand Philippot2022-05-181-1/+0
|
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-091-6/+35
| | | | | | The meta can have different layout. The previous implementation was not enough to easily change the layout. Also, I prefer to restrict the meta types and it prevents me to repeat myself for the labels.
* refactor: support React 18Armand Philippot2022-04-161-2/+2
| | | | | | | | 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 an Overview componentArmand Philippot2022-04-151-0/+33