aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/atoms/lists
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components,pages): extract MDX components mapping from pagesArmand Philippot2023-11-221-6/+6
| | | | | | | Instead of repeating the overriding on each pages, we should define it in one place and reuse it in pages. By default it is not possible to override native HTML tags with MDX so I added a plugin in next config to allow it.
* refactor(components): rewrite NavList componentArmand Philippot2023-11-112-14/+36
| | | | | | | * extract NavItem from NavList * remove `kind` and `listClassName` props (since the consumer has control over NavList, NavItem and NavLink components these props are obsolete)
* feat(components): add a generic Grid componentArmand Philippot2023-11-111-7/+5
| | | | | * merge Columns, Gallery and CardsList into Grid component * add more options to control the grid
* refactor(components): rewrite DescriptionList componentArmand Philippot2023-11-1117-531/+437
| | | | | | | | | | | | | * 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(components): rewrite List componentArmand Philippot2023-11-1110-255/+509
| | | | | | | | | * 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
* build: convert project to esmArmand Philippot2023-10-243-0/+3
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-2011-55/+48
| | | | | | 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-195-6/+4
| | | | | | 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-023-3/+3
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* chore: complete Storybook storiesArmand Philippot2022-05-212-1/+14
|
* chore: update some stylesArmand Philippot2022-05-212-20/+2
| | | | | | | * Improve wp-blocks-columns, wp-block-quote and some images * Make Sharing widget consistent between pages * Remove margin option from lists * Fix Topic logo alignement
* chore: adjust and complete missing stylesArmand Philippot2022-05-161-0/+2
| | | | | | * add logo to topics pages and links * add Prism styles to articles * and a few other adjustements
* refactor: rewrite DescriptionList and Meta componentsArmand Philippot2022-05-098-95/+373
| | | | | | 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.
* chore: add homepageArmand Philippot2022-05-033-4/+29
|
* refactor(storybook): reorganize design systemArmand Philippot2022-04-202-7/+22
| | | | | 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 LinksListWidget componentArmand Philippot2022-04-151-3/+8
|
* chore: add a MainNav componentArmand Philippot2022-04-142-9/+21
|
* chore: add a Card componentArmand Philippot2022-04-133-19/+86
|
* refactor: use a consistent classname prop and avoid children propArmand Philippot2022-04-084-20/+20
| | | | | | | | I was using the FunctionComponent type for some component that do not use children. So I change the type to VoidFunctionComponent to avoid mistakes. I also rename all the "classes" or "additionalClasses" props to "className" to keep consistency between each components.
* chore: add a DescriptionList componentArmand Philippot2022-04-074-0/+177
|
* chore: add a List componentArmand Philippot2022-04-054-0/+218