From 0f5c3b8498b66fe2b8a2e8a32bfc7392a9edbf45 Mon Sep 17 00:00:00 2001 From: leagrdv Date: Thu, 9 Jan 2025 15:07:02 +0100 Subject: [PATCH] chore(documentation, components): update header documentation --- .changeset/cyan-years-pretend.md | 6 + .../components/post-header/post-header.tsx | 12 +- .../src/components/post-header/readme.md | 13 ++ .../header/components/header.markup.ts | 117 ------------ .../stories/modules/header/header.docs.mdx | 12 +- .../stories/modules/header/header.stories.ts | 173 +++++++++++++++++- 6 files changed, 206 insertions(+), 127 deletions(-) create mode 100644 .changeset/cyan-years-pretend.md delete mode 100644 packages/documentation/src/stories/modules/header/components/header.markup.ts diff --git a/.changeset/cyan-years-pretend.md b/.changeset/cyan-years-pretend.md new file mode 100644 index 0000000000..944b3799ef --- /dev/null +++ b/.changeset/cyan-years-pretend.md @@ -0,0 +1,6 @@ +--- +'@swisspost/design-system-documentation': patch +'@swisspost/design-system-components': patch +--- + +Updated the documentation of the Post header. diff --git a/packages/components/src/components/post-header/post-header.tsx b/packages/components/src/components/post-header/post-header.tsx index b71d906cc5..668aeaccf1 100644 --- a/packages/components/src/components/post-header/post-header.tsx +++ b/packages/components/src/components/post-header/post-header.tsx @@ -6,6 +6,16 @@ import { slideDown, slideUp } from '@/animations/slide'; type DEVICE_SIZE = 'mobile' | 'tablet' | 'desktop' | null; +/** + * @slot post-logo - Should be used together with the `` component. + * @slot meta-navigation - Holds an `