From 2dc3114bb633ad84f2bffc7824ea73b9fd1ab9a1 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 27 Feb 2024 12:01:49 +0100
Subject: [PATCH 01/36] chore(documentation): Rework getting started section
and add Angular CUSTOM_ELEMENTS_SCHEMA info
---
.../complex-card-demo.component.html | 2 +-
packages/documentation/.storybook/preview.ts | 38 +---
.../alert/standard-html/alert.stories.ts | 2 +-
.../components/button/button.stories.ts | 2 +-
.../icons/{components => }/icon.docs.mdx | 0
.../icons/{components => }/icon.stories.ts | 8 +-
.../breadcrumbs/breadcrumbs.docs.mdx | 0
.../breadcrumbs/breadcrumbs.stories.ts | 4 +-
.../overrides/breadcrumbs-config.docs.mdx | 0
.../overrides/breadcrumbs-config.stories.ts | 0
.../breadcrumbs/overrides/custom-items.ts | 0
.../custom-config/custom-footer-config.ts | 0
.../custom-config/footer-config.docs.mdx | 0
.../custom-config/footer-config.stories.ts | 0
.../{components => }/footer/footer.docs.mdx | 0
.../{components => }/footer/footer.stories.ts | 2 +-
.../internet-header/getting-started.docs.mdx | 100 ----------
.../header/config/custom-config.ts | 0
.../config/language-switch-overrides.ts | 0
.../header/config/os-flyout-overrides.ts | 0
.../{components => }/header/header.docs.mdx | 0
.../{components => }/header/header.scss | 0
.../{components => }/header/header.stories.ts | 4 +-
.../header-custom-config.docs.mdx | 0
.../header-custom-config.stories.ts | 0
.../header-custom-content.docs.mdx | 0
.../header-custom-content.stories.ts | 0
.../header-language-switch-overrides.docs.mdx | 0
...eader-language-switch-overrides.stories.ts | 0
.../header-os-flyout-overrides.docs.mdx | 0
.../header-os-flyout-overrides.stories.ts | 0
.../internet-header-lazy-loaded.sample.js | 4 -
.../internet-header/migration-guide.docs.mdx | 91 ---------
.../migration-guide.stories.ts | 16 --
.../intranet-header/intranet-header.docs.mdx | 6 +-
.../notification-overlay.stories.ts | 1 +
.../stories/components/toast/toast.stories.ts | 2 +-
.../icons}/search-icons.blocks.tsx | 2 +-
.../icons}/search-icons.docs.mdx | 2 +-
.../icons}/search-icons.stories.ts | 2 +-
.../icons}/search-icons.styles.scss | 2 +-
.../getting-started/angular/angular.docs.mdx | 77 ++++++++
.../angular/angular.stories.ts | 15 ++
.../angular/sample-icons-config.sample.json} | 0
...b-components-angular-manually.component.ts | 6 +
.../compatibility/compatibility.docs.mdx | 49 ++++-
.../getting-started/getting-started.docs.mdx | 109 +++++++++++
.../getting-started.stories.ts | 7 +-
.../angular-app-component.sample.html | 0
.../angular-app-module.sample.ts | 0
.../components-angular/angular.docs.mdx | 0
.../components-angular/angular.stories.ts | 4 +-
...ponents-cdn-bare-component-all.sample.html | 0
...components-cdn-lazy-loaded-all.sample.html | 0
...nents-cdn-lazy-loaded-specific.sample.html | 0
.../components/components-js-all.sample.js | 0
.../components-js-specific.sample.js | 0
.../components/components.docs.mdx | 0
.../components/components.stories.ts | 4 +-
.../package-icons-icon-meta.sample.html} | 0
.../package-icons-node-16.7.0.sample.json} | 0
.../icons/package-icons-node-old.sample.js} | 0
.../icons/package-icons-node-old.sample.json} | 0
.../packages/icons/package-icons.mdx} | 24 +--
.../packages/icons/package-icons.stories.ts} | 4 +-
.../internet-header-bare-component.sample.js | 0
...rnet-header-cdn-bare-component.sample.html | 0
...nternet-header-cdn-lazy-loaded.sample.html | 0
...internet-header-fix-app-styles.sample.html | 0
.../internet-header-frameworks.sample.html | 0
.../internet-header-install.sample.html | 0
.../internet-header-lazy-loaded.sample.js | 4 +
.../internet-header-old.sample.html | 0
.../internet-header-reference.sample.ts | 0
.../internet-header/internet-header.docs.mdx | 181 ++++++++++++++++++
.../internet-header.stories.ts | 16 ++
.../intranet-header/intranet-header.docs.mdx | 32 ++++
.../intranet-header.stories.ts | 16 ++
.../styles/styles-variable.sample.scss | 5 +
.../{ => packages}/styles/styles.docs.mdx | 0
.../{ => packages}/styles/styles.stories.ts | 4 +-
.../styles/styles-variable.sample.scss | 5 -
.../documentation/src/stories/home.docs.mdx | 2 +-
83 files changed, 550 insertions(+), 304 deletions(-)
rename packages/documentation/src/stories/components/icons/{components => }/icon.docs.mdx (100%)
rename packages/documentation/src/stories/components/icons/{components => }/icon.stories.ts (96%)
rename packages/documentation/src/stories/components/internet-header/{components => }/breadcrumbs/breadcrumbs.docs.mdx (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/breadcrumbs/breadcrumbs.stories.ts (93%)
rename packages/documentation/src/stories/components/internet-header/{components => }/breadcrumbs/overrides/breadcrumbs-config.docs.mdx (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/breadcrumbs/overrides/breadcrumbs-config.stories.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/breadcrumbs/overrides/custom-items.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/footer/custom-config/custom-footer-config.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/footer/custom-config/footer-config.docs.mdx (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/footer/custom-config/footer-config.stories.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/footer/footer.docs.mdx (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/footer/footer.stories.ts (95%)
delete mode 100644 packages/documentation/src/stories/components/internet-header/getting-started.docs.mdx
rename packages/documentation/src/stories/components/internet-header/{components => }/header/config/custom-config.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/config/language-switch-overrides.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/config/os-flyout-overrides.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/header.docs.mdx (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/header.scss (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/header.stories.ts (97%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/overrides-stories/header-custom-config.docs.mdx (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/overrides-stories/header-custom-config.stories.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/overrides-stories/header-custom-content.docs.mdx (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/overrides-stories/header-custom-content.stories.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/overrides-stories/header-language-switch-overrides.docs.mdx (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/overrides-stories/header-language-switch-overrides.stories.ts (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/overrides-stories/header-os-flyout-overrides.docs.mdx (100%)
rename packages/documentation/src/stories/components/internet-header/{components => }/header/overrides-stories/header-os-flyout-overrides.stories.ts (100%)
delete mode 100644 packages/documentation/src/stories/components/internet-header/internet-header-lazy-loaded.sample.js
delete mode 100644 packages/documentation/src/stories/components/internet-header/migration-guide.docs.mdx
delete mode 100644 packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts
rename packages/documentation/src/stories/{components/icons/search-icons => foundation/icons}/search-icons.blocks.tsx (97%)
rename packages/documentation/src/stories/{components/icons/search-icons => foundation/icons}/search-icons.docs.mdx (96%)
rename packages/documentation/src/stories/{components/icons/search-icons => foundation/icons}/search-icons.stories.ts (82%)
rename packages/documentation/src/stories/{components/icons/search-icons => foundation/icons}/search-icons.styles.scss (96%)
create mode 100644 packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
create mode 100644 packages/documentation/src/stories/getting-started/angular/angular.stories.ts
rename packages/documentation/src/stories/{components/icons/getting-started-angular-config.sample.json => getting-started/angular/sample-icons-config.sample.json} (100%)
create mode 100644 packages/documentation/src/stories/getting-started/angular/sample-web-components-angular-manually.component.ts
create mode 100644 packages/documentation/src/stories/getting-started/getting-started.docs.mdx
rename packages/documentation/src/stories/{components/internet-header => getting-started}/getting-started.stories.ts (50%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components-angular/angular-app-component.sample.html (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components-angular/angular-app-module.sample.ts (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components-angular/angular.docs.mdx (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components-angular/angular.stories.ts (69%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components/components-cdn-bare-component-all.sample.html (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components/components-cdn-lazy-loaded-all.sample.html (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components/components-cdn-lazy-loaded-specific.sample.html (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components/components-js-all.sample.js (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components/components-js-specific.sample.js (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components/components.docs.mdx (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/components/components.stories.ts (71%)
rename packages/documentation/src/stories/{components/icons/getting-started-icon-meta.sample.html => getting-started/packages/icons/package-icons-icon-meta.sample.html} (100%)
rename packages/documentation/src/stories/{components/icons/getting-started-node-16.7.0.sample.json => getting-started/packages/icons/package-icons-node-16.7.0.sample.json} (100%)
rename packages/documentation/src/stories/{components/icons/getting-started-node-old.sample.js => getting-started/packages/icons/package-icons-node-old.sample.js} (100%)
rename packages/documentation/src/stories/{components/icons/getting-started-node-old.sample.json => getting-started/packages/icons/package-icons-node-old.sample.json} (100%)
rename packages/documentation/src/stories/{components/icons/getting-started.docs.mdx => getting-started/packages/icons/package-icons.mdx} (78%)
rename packages/documentation/src/stories/{components/icons/getting-started.stories.ts => getting-started/packages/icons/package-icons.stories.ts} (72%)
rename packages/documentation/src/stories/{components => getting-started/packages}/internet-header/internet-header-bare-component.sample.js (100%)
rename packages/documentation/src/stories/{components => getting-started/packages}/internet-header/internet-header-cdn-bare-component.sample.html (100%)
rename packages/documentation/src/stories/{components => getting-started/packages}/internet-header/internet-header-cdn-lazy-loaded.sample.html (100%)
rename packages/documentation/src/stories/{components => getting-started/packages}/internet-header/internet-header-fix-app-styles.sample.html (100%)
rename packages/documentation/src/stories/{components => getting-started/packages}/internet-header/internet-header-frameworks.sample.html (100%)
rename packages/documentation/src/stories/{components => getting-started/packages}/internet-header/internet-header-install.sample.html (100%)
create mode 100644 packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-lazy-loaded.sample.js
rename packages/documentation/src/stories/{components => getting-started/packages}/internet-header/internet-header-old.sample.html (100%)
rename packages/documentation/src/stories/{components => getting-started/packages}/internet-header/internet-header-reference.sample.ts (100%)
create mode 100644 packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.docs.mdx
create mode 100644 packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
create mode 100644 packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.docs.mdx
create mode 100644 packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
create mode 100644 packages/documentation/src/stories/getting-started/packages/styles/styles-variable.sample.scss
rename packages/documentation/src/stories/getting-started/{ => packages}/styles/styles.docs.mdx (100%)
rename packages/documentation/src/stories/getting-started/{ => packages}/styles/styles.stories.ts (71%)
delete mode 100644 packages/documentation/src/stories/getting-started/styles/styles-variable.sample.scss
diff --git a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html b/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html
index 2c48d5536a..09f66490b8 100644
--- a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html
+++ b/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html
@@ -140,7 +140,7 @@
Card title
Card columns
-Card columns can be checked out in the swiss post example below.
+Card columns can be checked out in the Swiss post example below.
Default
diff --git a/packages/documentation/.storybook/preview.ts b/packages/documentation/.storybook/preview.ts
index e853b66118..1ed06a4592 100644
--- a/packages/documentation/.storybook/preview.ts
+++ b/packages/documentation/.storybook/preview.ts
@@ -25,13 +25,14 @@ const preview: Preview = {
// Category - Getting Started
'Getting Started',
- ['Styles', 'Components', 'Components-Angular', 'Compatibility'],
+ ['Getting Started', 'Angular', 'Compatibility', 'Packages'],
// Category - Foundations
'Foundations',
[
'Typography',
'Color',
+ 'Icons',
'Layout',
['Breakpoints', 'Containers', 'Grid', 'Columns', 'TODOS'],
'Elevation',
@@ -40,41 +41,6 @@ const preview: Preview = {
// Category - Components
'Components',
- [
- 'Accordion',
- 'Alert',
- 'Badge',
- 'Blockquote',
- 'Button',
- 'Button Group',
- 'Cards',
- 'Carousel',
- 'Collapsible',
- 'Datepicker',
- 'Dropdown',
- 'Forms',
- 'Heading',
- 'Icons',
- ['Getting Started'],
- 'Internet Header',
- ['Getting Started', 'Header'],
- 'Intranet Header',
- 'Modal',
- 'Notification overlay',
- 'Pagination',
- 'Popover',
- 'Progressbar',
- 'Spinner',
- 'Stepper',
- 'Subnavigation',
- 'Table',
- 'Tabs',
- 'Timepicker',
- 'Toast',
- 'Tooltip',
- 'Topic Teaser',
- 'Typeahead',
- ],
// Category - Patterns
'Patterns',
diff --git a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
index e30a253577..dbc7345204 100644
--- a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
+++ b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
@@ -64,7 +64,7 @@ const meta: Meta = {
'The icon to display in the alert. By default, the icon depends on the alert type.' +
'' +
'To use a custom icon, you must first ' +
- 'set up the icons in your project ' +
+ 'set up the icons in your project ' +
'. ',
if: {
arg: 'noIcon',
diff --git a/packages/documentation/src/stories/components/button/button.stories.ts b/packages/documentation/src/stories/components/button/button.stories.ts
index 4dd96e21ae..d302c742da 100644
--- a/packages/documentation/src/stories/components/button/button.stories.ts
+++ b/packages/documentation/src/stories/components/button/button.stories.ts
@@ -138,7 +138,7 @@ const meta: Meta = {
'Defines a custom icon.' +
'' +
'To use a custom icon, you must first ' +
- 'set up the icons in your project ' +
+ 'set up the icons in your project ' +
'. ',
if: {
arg: 'tag',
diff --git a/packages/documentation/src/stories/components/icons/components/icon.docs.mdx b/packages/documentation/src/stories/components/icons/icon.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/icons/components/icon.docs.mdx
rename to packages/documentation/src/stories/components/icons/icon.docs.mdx
diff --git a/packages/documentation/src/stories/components/icons/components/icon.stories.ts b/packages/documentation/src/stories/components/icons/icon.stories.ts
similarity index 96%
rename from packages/documentation/src/stories/components/icons/components/icon.stories.ts
rename to packages/documentation/src/stories/components/icons/icon.stories.ts
index c659175bac..1a404e466b 100644
--- a/packages/documentation/src/stories/components/icons/components/icon.stories.ts
+++ b/packages/documentation/src/stories/components/icons/icon.stories.ts
@@ -1,14 +1,14 @@
import { spread } from '@open-wc/lit-helpers';
import { Args, Meta, StoryObj } from '@storybook/web-components';
-import { Components } from '@swisspost/design-system-components';
import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { BADGE } from '../../../../../.storybook/constants';
-import { spreadArgs } from '../../../../utils';
+import { BADGE } from '../../../../.storybook/constants';
+import { spreadArgs } from '../../../utils';
+import { Components } from '@swisspost/design-system-components/src';
const meta: Meta = {
id: '0dcfe3c0-bfc0-4107-b43b-7e9d825b805f',
- title: 'Components/Icons/Icon Component',
+ title: 'Components/Icon',
component: 'post-icon',
parameters: {
badges: [BADGE.NEEDS_REVISION, BADGE.SINCE_V1],
diff --git a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/breadcrumbs.docs.mdx b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/breadcrumbs/breadcrumbs.docs.mdx
rename to packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.docs.mdx
diff --git a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/breadcrumbs.stories.ts b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
similarity index 93%
rename from packages/documentation/src/stories/components/internet-header/components/breadcrumbs/breadcrumbs.stories.ts
rename to packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
index b19a213166..208f5154eb 100644
--- a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/breadcrumbs.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
@@ -1,8 +1,8 @@
import { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spread } from '@open-wc/lit-helpers';
-import { BADGE } from '../../../../../../.storybook/constants';
-import { getAttributes } from '../../../../../utils';
+import { BADGE } from '../../../../../.storybook/constants';
+import { getAttributes } from '../../../../utils';
import customItems from './overrides/custom-items';
const meta: Meta = {
diff --git a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/breadcrumbs-config.docs.mdx b/packages/documentation/src/stories/components/internet-header/breadcrumbs/overrides/breadcrumbs-config.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/breadcrumbs-config.docs.mdx
rename to packages/documentation/src/stories/components/internet-header/breadcrumbs/overrides/breadcrumbs-config.docs.mdx
diff --git a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/breadcrumbs-config.stories.ts b/packages/documentation/src/stories/components/internet-header/breadcrumbs/overrides/breadcrumbs-config.stories.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/breadcrumbs-config.stories.ts
rename to packages/documentation/src/stories/components/internet-header/breadcrumbs/overrides/breadcrumbs-config.stories.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/custom-items.ts b/packages/documentation/src/stories/components/internet-header/breadcrumbs/overrides/custom-items.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/breadcrumbs/overrides/custom-items.ts
rename to packages/documentation/src/stories/components/internet-header/breadcrumbs/overrides/custom-items.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/footer/custom-config/custom-footer-config.ts b/packages/documentation/src/stories/components/internet-header/footer/custom-config/custom-footer-config.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/footer/custom-config/custom-footer-config.ts
rename to packages/documentation/src/stories/components/internet-header/footer/custom-config/custom-footer-config.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/footer/custom-config/footer-config.docs.mdx b/packages/documentation/src/stories/components/internet-header/footer/custom-config/footer-config.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/footer/custom-config/footer-config.docs.mdx
rename to packages/documentation/src/stories/components/internet-header/footer/custom-config/footer-config.docs.mdx
diff --git a/packages/documentation/src/stories/components/internet-header/components/footer/custom-config/footer-config.stories.ts b/packages/documentation/src/stories/components/internet-header/footer/custom-config/footer-config.stories.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/footer/custom-config/footer-config.stories.ts
rename to packages/documentation/src/stories/components/internet-header/footer/custom-config/footer-config.stories.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/footer/footer.docs.mdx b/packages/documentation/src/stories/components/internet-header/footer/footer.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/footer/footer.docs.mdx
rename to packages/documentation/src/stories/components/internet-header/footer/footer.docs.mdx
diff --git a/packages/documentation/src/stories/components/internet-header/components/footer/footer.stories.ts b/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
similarity index 95%
rename from packages/documentation/src/stories/components/internet-header/components/footer/footer.stories.ts
rename to packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
index db351b18b6..6b96109cf8 100644
--- a/packages/documentation/src/stories/components/internet-header/components/footer/footer.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
@@ -1,6 +1,6 @@
import { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { BADGE } from '../../../../../../.storybook/constants';
+import { BADGE } from '../../../../../.storybook/constants';
import customFooterConfig from './custom-config/custom-footer-config';
import { spread } from '@open-wc/lit-helpers';
diff --git a/packages/documentation/src/stories/components/internet-header/getting-started.docs.mdx b/packages/documentation/src/stories/components/internet-header/getting-started.docs.mdx
deleted file mode 100644
index df41f3f0b8..0000000000
--- a/packages/documentation/src/stories/components/internet-header/getting-started.docs.mdx
+++ /dev/null
@@ -1,100 +0,0 @@
-import { Meta, Source } from '@storybook/blocks';
-import { PostTabs, PostTabHeader, PostTabPanel } from '@swisspost/design-system-components-react';
-import SampleFrameworks from './internet-header-frameworks.sample.html?raw';
-import SampleLazyLoaded from './internet-header-lazy-loaded.sample.js?raw';
-import SampleBareComponent from './internet-header-bare-component.sample.js?raw';
-import SampleCDNLazyLoaded from './internet-header-cdn-lazy-loaded.sample.html?raw';
-import SampleCDNBareComponent from './internet-header-cdn-bare-component.sample.html?raw';
-import { SourceDarkMode } from '../../../../.storybook/preview';
-import * as GettingStartedStories from './getting-started.stories';
-
-
-
-# @swisspost/internet-header
-
-[![npm version](https://badge.fury.io/js/@swisspost%2Finternet-header.svg)](https://badge.fury.io/js/@swisspost%2Finternet-header)
-
-The header for client-facing applications.
-
-
-
-## Installation
-
-### Choosing between lazy-loaded or bare component version
-
-Internet-header package provide two versions:
-
-- Lazy-loaded (default): it allows better performance by dynamically load the component when used, so it reduces bundle size, startup time and first paint.
-- Bare component: if you already manage the lazy-loading or don't need it for any reason, you can use the component without any overhead.
-
-### Angular, Vue.js, React (or any other bundler setup)
-
-All the popular frameworks come with some form of bundler.
-This makes it easy to use npm packages like the Internet Header as you can import,
-bundle and deliver the header with your own code.
-
-When working with Angular or any other framework, the easiest installation method is via npm.
-
-
-
-
-
-
- Lazy-Loaded
-
-
-
-
- Bare Component
-
-
-
-
-
-### Include from a CDN
-
-If you are not using any bundler or don't want to install from npm, you can load the `internet-header` from your favourite [CDN](https://en.wikipedia.org/wiki/Content_delivery_network).
-Make sure to replace `{version}` with the version you want to use or remove `@{version}` to use the latest version.
-
-Available CDNs:
-
-- [jsDelivr](https://www.jsdelivr.com/): replace `{cdnURL}` with [https://cdn.jsdelivr.net/npm/@swisspost/internet-header](https://cdn.jsdelivr.net/npm/@swisspost/internet-header).
-- [unpkg](https://unpkg.com/): replace `{cdnURL}` with [https://unpkg.com/@swisspost/internet-header](https://unpkg.com/@swisspost/internet-header).
-
-
- Lazy-Loaded
-
-
-
-
- Bare Component
-
-
-
-
-## Configuration
-
-The Internet Header is built to support the already existing Portal Configuration used for the old Internet Header.
-
-If you're working on a new project, you probably need a new configuration. Please click the button below.
-
-Contact Post Portal Team
-
-Not every Online Service has configurations for all environments.
-For example, "TOPOS" only has `int02` configured and cannot use `int01` as value for environment.
-If you are not sure what's configured for your project, please reach out to the post-portal team as well.
-
-For settings on the header itself, see the examples provided in the left menu bar.
-
-## Help
-
-If you noticed a bug or need assistance with migrating to the new Internet Header, please post your enquiry at the [Design System GitHub Discussions](https://github.com/swisspost/design-system/discussions/categories/q-a).
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/config/custom-config.ts b/packages/documentation/src/stories/components/internet-header/header/config/custom-config.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/config/custom-config.ts
rename to packages/documentation/src/stories/components/internet-header/header/config/custom-config.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/config/language-switch-overrides.ts b/packages/documentation/src/stories/components/internet-header/header/config/language-switch-overrides.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/config/language-switch-overrides.ts
rename to packages/documentation/src/stories/components/internet-header/header/config/language-switch-overrides.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/config/os-flyout-overrides.ts b/packages/documentation/src/stories/components/internet-header/header/config/os-flyout-overrides.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/config/os-flyout-overrides.ts
rename to packages/documentation/src/stories/components/internet-header/header/config/os-flyout-overrides.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/header.docs.mdx b/packages/documentation/src/stories/components/internet-header/header/header.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/header.docs.mdx
rename to packages/documentation/src/stories/components/internet-header/header/header.docs.mdx
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/header.scss b/packages/documentation/src/stories/components/internet-header/header/header.scss
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/header.scss
rename to packages/documentation/src/stories/components/internet-header/header/header.scss
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts b/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
similarity index 97%
rename from packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts
rename to packages/documentation/src/stories/components/internet-header/header/header.stories.ts
index 5e286c28db..4fe0d4f2a2 100644
--- a/packages/documentation/src/stories/components/internet-header/components/header/header.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
@@ -1,7 +1,7 @@
import { Args, Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../../../.storybook/constants';
+import { BADGE } from '../../../../../.storybook/constants';
import { html } from 'lit';
-import { spreadArgs } from '../../../../../utils';
+import { spreadArgs } from '../../../../utils';
import customConfig from './config/custom-config';
import osFlyoutOverrides from './config/os-flyout-overrides';
import languageSwitchOverrides from './config/language-switch-overrides';
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-config.docs.mdx b/packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-custom-config.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-config.docs.mdx
rename to packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-custom-config.docs.mdx
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-config.stories.ts b/packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-custom-config.stories.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-config.stories.ts
rename to packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-custom-config.stories.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-content.docs.mdx b/packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-custom-content.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-content.docs.mdx
rename to packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-custom-content.docs.mdx
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-content.stories.ts b/packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-custom-content.stories.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-custom-content.stories.ts
rename to packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-custom-content.stories.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-language-switch-overrides.docs.mdx b/packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-language-switch-overrides.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-language-switch-overrides.docs.mdx
rename to packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-language-switch-overrides.docs.mdx
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-language-switch-overrides.stories.ts b/packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-language-switch-overrides.stories.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-language-switch-overrides.stories.ts
rename to packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-language-switch-overrides.stories.ts
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-os-flyout-overrides.docs.mdx b/packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-os-flyout-overrides.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-os-flyout-overrides.docs.mdx
rename to packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-os-flyout-overrides.docs.mdx
diff --git a/packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-os-flyout-overrides.stories.ts b/packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-os-flyout-overrides.stories.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/components/header/overrides-stories/header-os-flyout-overrides.stories.ts
rename to packages/documentation/src/stories/components/internet-header/header/overrides-stories/header-os-flyout-overrides.stories.ts
diff --git a/packages/documentation/src/stories/components/internet-header/internet-header-lazy-loaded.sample.js b/packages/documentation/src/stories/components/internet-header/internet-header-lazy-loaded.sample.js
deleted file mode 100644
index 80b5bf4cc3..0000000000
--- a/packages/documentation/src/stories/components/internet-header/internet-header-lazy-loaded.sample.js
+++ /dev/null
@@ -1,4 +0,0 @@
-// main.ts / index.js / ...
-import { defineCustomElements } from '@swisspost/internet-header/loader';
-
-defineCustomElements();
diff --git a/packages/documentation/src/stories/components/internet-header/migration-guide.docs.mdx b/packages/documentation/src/stories/components/internet-header/migration-guide.docs.mdx
deleted file mode 100644
index a1f9857575..0000000000
--- a/packages/documentation/src/stories/components/internet-header/migration-guide.docs.mdx
+++ /dev/null
@@ -1,91 +0,0 @@
-import { Meta, Source } from '@storybook/blocks';
-import SampleReference from './internet-header-reference.sample.ts?raw';
-import SampleInstall from './internet-header-install.sample.html?raw';
-import SampleFixAppStyles from './internet-header-fix-app-styles.sample.html?raw';
-import SampleOld from './internet-header-old.sample.html?raw';
-import { SourceDarkMode } from '../../../../.storybook/preview';
-import * as MigrationGuideStories from './migration-guide.stories';
-
-
-
-# Migration from the old header
-
-This guide aims to give a broad overview of how a migration can be performed.
-Different projects have different levels of integration with the header,
-and therefore require more steps to migrate.
-
-## Architecture
-
-The "new"
-Internet Header Web Component aims
-to encapsulate as much as possible whereas the old header had a big influence on the page —
-limiting design decisions and flexibility of the markup structure.
-The Web Component Header consists of one script and three standard Web Components that can be freely placed on the page.
-It's even possible to render those elements with Angular
-(or any other framework) to easier pass settings into the component.
-
-The new header is built
-to work with the existing Sitecore configuration
-already existing for your project to make the migration as smooth as possible.
-
-## Support
-
-If you need support during your migration,
-don't hesitate
-to contact the [Design System Team](https://github.com/swisspost/design-system/discussions/categories/general) on GitHub.
-
-## 1. Remove the old header
-
-In your index.html, you should find three scripts associated with the old header.
-One to load static assets, one to configure it and one to load it.
-
-- You can remove the configuration and the loader scripts, but remember your `serviceid`.
-- Try to remove the `staticassets` script to check if you still need it
-
-
-
-## 2. Fix your app styles
-
-The old header was responsible for wrapping your main code (here `#os_content`) with custom ``s.
-The new header does not provide those wrappers.
-Instead, every page has control over the main markup structure.
-A possible replacement of the above code could be:
-
-
-
-- Likely you'll need the class `container` around your main content to align it properly in the center.
-- For bonus points on semantic markup, use the [`
` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main) around the main page content
-- Check if you need the `staticasset` stylesheets linked in the header
-
-If you need to do any other changes,
-please make a post to the [Design System Teams Channel](https://teams.microsoft.com/l/channel/19%3ae7fa68fb13eb40b4bf4604edea5f4b3e%40thread.tacv2/%25F0%259F%259A%2591%2520Support?groupId=123c7c9e-052a-40e6-98d3-6cc6d46bad0a&tenantId=3ae7c479-0cf1-47f4-8f84-929f364eff67)
-in order to inform the devs to update this guide and provide useful information for other developers.
-
-## 3. jQuery
-
-The new Header does not ship jQuery anymore.
-While jQuery v3.6 is an internal dependency for the Login Widget,
-every project is now responsible for loading and updating jQuery individually.
-If you are depending on an older (<3.5) version of jQuery, please update.
-There is a long list of [known jQuery vulnerabilities](https://security.snyk.io/package/npm/jquery).
-
-## 4. Install the new header
-
-Please refer to the [Internet Header installation instructions](/?path=/docs/9b02bcb2-3b6a-4271-b550-675a62ff3890--docs) for an installation guide.
-
-After installation, you're ready to add the new tags to your markup:
-
-
-
-Place the new elements as described (and needed) as shown above.
-The breadcrumbs need a `container` wrapper to align themselves with the content of your page,
-the header and the footer already provide a container.
-If you don't have breadcrumbs, you can just delete the `` and the ``.
-
-## 5. Working with the new header
-
-If you need to change settings during runtime, you can get a reference to the header by querying:
-
-
-
-At the [Internet Header configuration page](/?path=/docs/ebb11274-091b-4cb7-9a3f-3e0451c9a865--docs) you can find a list of possible options.
diff --git a/packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts b/packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts
deleted file mode 100644
index d24e6fe789..0000000000
--- a/packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts
+++ /dev/null
@@ -1,16 +0,0 @@
-import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../.storybook/constants';
-
-const meta: Meta = {
- id: 'a6e4dfe1-0272-425b-9980-0ad40822c2c1',
- title: 'Components/Internet Header/Migration Guide',
- parameters: {
- badges: [BADGE.STABLE],
- },
-};
-
-export default meta;
-
-type Story = StoryObj;
-
-export const Default: Story = {};
diff --git a/packages/documentation/src/stories/components/intranet-header/intranet-header.docs.mdx b/packages/documentation/src/stories/components/intranet-header/intranet-header.docs.mdx
index dcdc29b8ea..77976865cd 100644
--- a/packages/documentation/src/stories/components/intranet-header/intranet-header.docs.mdx
+++ b/packages/documentation/src/stories/components/intranet-header/intranet-header.docs.mdx
@@ -8,9 +8,7 @@ import SamplePostweb from './intranet-header-postweb.sample.html?raw';
-# @swisspost/design-system-intranet-header
-
-[![npm version](https://badge.fury.io/js/@swisspost%2Fdesign-system-intranet-header.svg)](https://badge.fury.io/js/@swisspost%2Fdesign-system-intranet-header)
+# Intranet-header
Angular only component
@@ -34,7 +32,7 @@ The Header Angular component for internal usage.
## Installation
-
+See
Internet-header package page
## Usage
diff --git a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
index c6387f765f..7665c53ef8 100644
--- a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
+++ b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from '@storybook/web-components';
import { BADGE } from '../../../../.storybook/constants';
const meta: Meta = {
+ id: 'aab3f0df-08ca-4e33-90eb-77ffda6528db',
title: 'Components/Notification overlay',
parameters: {
badges: [BADGE.WEB_COMPONENT_CANDIDATE],
diff --git a/packages/documentation/src/stories/components/toast/toast.stories.ts b/packages/documentation/src/stories/components/toast/toast.stories.ts
index 932fa624c7..f87d5b5547 100644
--- a/packages/documentation/src/stories/components/toast/toast.stories.ts
+++ b/packages/documentation/src/stories/components/toast/toast.stories.ts
@@ -86,7 +86,7 @@ const meta: Meta = {
'Defines a custom icon.' +
'
' +
'To use a custom icon, you must first ' +
- 'set up the icons in your project ' +
+ 'set up the icons in your project ' +
'. ',
if: {
arg: 'noIcon',
diff --git a/packages/documentation/src/stories/components/icons/search-icons/search-icons.blocks.tsx b/packages/documentation/src/stories/foundation/icons/search-icons.blocks.tsx
similarity index 97%
rename from packages/documentation/src/stories/components/icons/search-icons/search-icons.blocks.tsx
rename to packages/documentation/src/stories/foundation/icons/search-icons.blocks.tsx
index ea23fb2dd7..cfa7d038a8 100644
--- a/packages/documentation/src/stories/components/icons/search-icons/search-icons.blocks.tsx
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.blocks.tsx
@@ -1,4 +1,4 @@
-import report from '@swisspost/design-system-icons/public/report.json';
+import report from '../../../../../icons/public/report.json';
import React from 'react';
import './search-icons.styles.scss';
diff --git a/packages/documentation/src/stories/components/icons/search-icons/search-icons.docs.mdx b/packages/documentation/src/stories/foundation/icons/search-icons.docs.mdx
similarity index 96%
rename from packages/documentation/src/stories/components/icons/search-icons/search-icons.docs.mdx
rename to packages/documentation/src/stories/foundation/icons/search-icons.docs.mdx
index 1caa334a3b..b0a7d776e0 100644
--- a/packages/documentation/src/stories/components/icons/search-icons/search-icons.docs.mdx
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.docs.mdx
@@ -4,7 +4,7 @@ import * as SearchIcons from './search-icons.stories';
-# Search for icons
+# Icons
The official Swiss Post Icon Library for the web with over 800 high-quality scalable vector
diff --git a/packages/documentation/src/stories/components/icons/search-icons/search-icons.stories.ts b/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
similarity index 82%
rename from packages/documentation/src/stories/components/icons/search-icons/search-icons.stories.ts
rename to packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
index be179e6e5c..26e565281e 100644
--- a/packages/documentation/src/stories/components/icons/search-icons/search-icons.stories.ts
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
@@ -2,7 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components';
const meta: Meta = {
id: '5704bdc4-c5b5-45e6-b123-c54d01fce2f1',
- title: 'Components/Icons/Search for Icons',
+ title: 'Foundations/Icons',
};
export default meta;
diff --git a/packages/documentation/src/stories/components/icons/search-icons/search-icons.styles.scss b/packages/documentation/src/stories/foundation/icons/search-icons.styles.scss
similarity index 96%
rename from packages/documentation/src/stories/components/icons/search-icons/search-icons.styles.scss
rename to packages/documentation/src/stories/foundation/icons/search-icons.styles.scss
index 6426154a30..b6f391c8be 100644
--- a/packages/documentation/src/stories/components/icons/search-icons/search-icons.styles.scss
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.styles.scss
@@ -1,4 +1,4 @@
-@use '@swisspost/design-system-styles/core' as post;
+@use '../../../../node_modules/@swisspost/design-system-styles/core' as post;
.icon-search {
.icon-search--filters {
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
new file mode 100644
index 0000000000..00336b580b
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
@@ -0,0 +1,77 @@
+import { Meta, Source } from '@storybook/blocks';
+import * as AngularStories from './angular.stories';
+import SampleIconsConfig from './sample-icons-config.sample.json?raw';
+import SampleWcAngularManually from './sample-web-components-angular-manually.component.ts?raw';
+
+
+
+# Angular
+
+The Swiss post design-system is compatible with Angular. Here are some tips, best practices and information to include components the easiest way.
+
+## Usage of Web Components
+
+In the design-system team, we believe that the [Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_Components) technologies should be the source for almost if not all future components.
+
+Currently, we are providing some of our packages with those technologies:
+* [Internet-header](?path=/docs/cfa21cbc-5f8d-4a42-8165-7f6ed20bf133--docs)
+* [Components](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs)
+
+Even though, Angular support Web components technologies natively, they are less convenient to use than regular Angular components.
+To mitigate the problem, we are providing packages that add Angular wrapper around Custom Elements.
+
+
+ Why you should use or not use Angular wrapper package
+
+
+
+
+
+
+ Advantages
+ Disadvantages
+
+
+
+
+
+
+ Type-checking
+ Angular component wrappers will be detached from change detection, preventing unnecessary repaints of your web component
+ Web component events will be converted to RxJS observables to align with Angular's `@Output()` and will not emit across component boundaries.
+ Optionally, form control web components can be used as control value accessors with Angular's reactive forms or `[ngModel]`.
+ It is not necessary to include the Angular `CUSTOM_ELEMENTS_SCHEMA` in all modules consuming your Stencil components.
+
+
+
+
+ Package is linked to a (minimal) angular version
+ As the packages are generated automatically, the design-system team has less control
+
+
+
+
+
+Source: [Stencil Documentation](https://stenciljs.com/docs/angular)
+
+### Angular wrapper package
+
+For the components package, we provide the equivalent package called [components-angular](/?path=/docs/833ef689-a573-40f5-a6a6-30a999b94733--docs) which contains a wrapper for Angular generated (almost) automatically.
+
+Note: at the moment, we do not provide any equivalent for internet-header package, so you'll need to add them manually.
+
+### Declare manually Web components
+
+In addition to define all or a specific components in `main.ts` (see Usage section of the package), you need to declare to Angular that you'll add Custom Elements to your application with the `schema` property in every module where you need to use the components.
+
+
+
+## Serve the icons within your application
+
+Icons from the design-system are stored in the icons package. To used them, you need to serve the image files from your application.
+Angular allows you to copy assets into the build by changing the `angular.json` configuration like this:
+
+
+
+
+
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.stories.ts b/packages/documentation/src/stories/getting-started/angular/angular.stories.ts
new file mode 100644
index 0000000000..e4aeb4ce83
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/angular/angular.stories.ts
@@ -0,0 +1,15 @@
+import { Meta, StoryObj } from '@storybook/web-components';
+
+const meta: Meta = {
+ id: '8426deb2-3d6d-4fcc-90e6-1ca9737b2ed0',
+ title: 'Getting Started/Angular',
+ parameters: {
+ badges: [],
+ },
+};
+
+export default meta;
+
+type Story = StoryObj;
+
+export const Default: Story = {};
diff --git a/packages/documentation/src/stories/components/icons/getting-started-angular-config.sample.json b/packages/documentation/src/stories/getting-started/angular/sample-icons-config.sample.json
similarity index 100%
rename from packages/documentation/src/stories/components/icons/getting-started-angular-config.sample.json
rename to packages/documentation/src/stories/getting-started/angular/sample-icons-config.sample.json
diff --git a/packages/documentation/src/stories/getting-started/angular/sample-web-components-angular-manually.component.ts b/packages/documentation/src/stories/getting-started/angular/sample-web-components-angular-manually.component.ts
new file mode 100644
index 0000000000..67d8b1ad7e
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/angular/sample-web-components-angular-manually.component.ts
@@ -0,0 +1,6 @@
+import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
+
+@NgModule({
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
+})
+export class Module {}
diff --git a/packages/documentation/src/stories/getting-started/compatibility/compatibility.docs.mdx b/packages/documentation/src/stories/getting-started/compatibility/compatibility.docs.mdx
index c5b668ac6d..cc727e2dcc 100644
--- a/packages/documentation/src/stories/getting-started/compatibility/compatibility.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/compatibility/compatibility.docs.mdx
@@ -7,11 +7,44 @@ import * as GettingStartedStories from './compatibility.stories';
List of compatible version numbers with external dependencies.
+## Components-Angular
+
+
+
## Intranet-header
- Package @swisspost/design-system-intranet-header
+ Package @swisspost/design-system-intranet-header
+
+
+
+
+
+
Version
@@ -48,7 +81,13 @@ import * as GettingStartedStories from './compatibility.stories';
- Package @swisspost/design-system-styles
+ Package @swisspost/design-system-styles
+
+
+
+
+
+
Version
@@ -86,6 +125,12 @@ import * as GettingStartedStories from './compatibility.stories';
Package @.../common-web-frontend
+
+
+
+
+
+
Version
diff --git a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
new file mode 100644
index 0000000000..ffcf024a9c
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
@@ -0,0 +1,109 @@
+import { Meta, Source } from '@storybook/blocks';
+import * as GettingStartedStories from './getting-started.stories';
+
+
+
+# Getting started
+
+Welcome to the Swiss post design system world! The design-system is formed with several packages and different compatibilities with your favorite framework.
+
+## Which package do I need?
+
+
+
+
+
diff --git a/packages/documentation/src/stories/components/internet-header/getting-started.stories.ts b/packages/documentation/src/stories/getting-started/getting-started.stories.ts
similarity index 50%
rename from packages/documentation/src/stories/components/internet-header/getting-started.stories.ts
rename to packages/documentation/src/stories/getting-started/getting-started.stories.ts
index 72364304e2..4f5ebcef9b 100644
--- a/packages/documentation/src/stories/components/internet-header/getting-started.stories.ts
+++ b/packages/documentation/src/stories/getting-started/getting-started.stories.ts
@@ -1,11 +1,10 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../.storybook/constants';
const meta: Meta = {
- id: '9b02bcb2-3b6a-4271-b550-675a62ff3890',
- title: 'Components/Internet Header/Getting Started',
+ id: 'dfc70c3b-4726-406b-8a41-af5738c89d05',
+ title: 'Getting Started/Getting Started',
parameters: {
- badges: [BADGE.STABLE],
+ badges: [],
},
};
diff --git a/packages/documentation/src/stories/getting-started/components-angular/angular-app-component.sample.html b/packages/documentation/src/stories/getting-started/packages/components-angular/angular-app-component.sample.html
similarity index 100%
rename from packages/documentation/src/stories/getting-started/components-angular/angular-app-component.sample.html
rename to packages/documentation/src/stories/getting-started/packages/components-angular/angular-app-component.sample.html
diff --git a/packages/documentation/src/stories/getting-started/components-angular/angular-app-module.sample.ts b/packages/documentation/src/stories/getting-started/packages/components-angular/angular-app-module.sample.ts
similarity index 100%
rename from packages/documentation/src/stories/getting-started/components-angular/angular-app-module.sample.ts
rename to packages/documentation/src/stories/getting-started/packages/components-angular/angular-app-module.sample.ts
diff --git a/packages/documentation/src/stories/getting-started/components-angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/packages/components-angular/angular.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/getting-started/components-angular/angular.docs.mdx
rename to packages/documentation/src/stories/getting-started/packages/components-angular/angular.docs.mdx
diff --git a/packages/documentation/src/stories/getting-started/components-angular/angular.stories.ts b/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
similarity index 69%
rename from packages/documentation/src/stories/getting-started/components-angular/angular.stories.ts
rename to packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
index 5a85a25afc..bf102cfa97 100644
--- a/packages/documentation/src/stories/getting-started/components-angular/angular.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
@@ -1,9 +1,9 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../.storybook/constants';
+import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: '833ef689-a573-40f5-a6a6-30a999b94733',
- title: 'Getting Started/Components-Angular',
+ title: 'Getting Started/Packages/Components-Angular',
parameters: {
badges: [BADGE.NEEDS_REVISION],
},
diff --git a/packages/documentation/src/stories/getting-started/components/components-cdn-bare-component-all.sample.html b/packages/documentation/src/stories/getting-started/packages/components/components-cdn-bare-component-all.sample.html
similarity index 100%
rename from packages/documentation/src/stories/getting-started/components/components-cdn-bare-component-all.sample.html
rename to packages/documentation/src/stories/getting-started/packages/components/components-cdn-bare-component-all.sample.html
diff --git a/packages/documentation/src/stories/getting-started/components/components-cdn-lazy-loaded-all.sample.html b/packages/documentation/src/stories/getting-started/packages/components/components-cdn-lazy-loaded-all.sample.html
similarity index 100%
rename from packages/documentation/src/stories/getting-started/components/components-cdn-lazy-loaded-all.sample.html
rename to packages/documentation/src/stories/getting-started/packages/components/components-cdn-lazy-loaded-all.sample.html
diff --git a/packages/documentation/src/stories/getting-started/components/components-cdn-lazy-loaded-specific.sample.html b/packages/documentation/src/stories/getting-started/packages/components/components-cdn-lazy-loaded-specific.sample.html
similarity index 100%
rename from packages/documentation/src/stories/getting-started/components/components-cdn-lazy-loaded-specific.sample.html
rename to packages/documentation/src/stories/getting-started/packages/components/components-cdn-lazy-loaded-specific.sample.html
diff --git a/packages/documentation/src/stories/getting-started/components/components-js-all.sample.js b/packages/documentation/src/stories/getting-started/packages/components/components-js-all.sample.js
similarity index 100%
rename from packages/documentation/src/stories/getting-started/components/components-js-all.sample.js
rename to packages/documentation/src/stories/getting-started/packages/components/components-js-all.sample.js
diff --git a/packages/documentation/src/stories/getting-started/components/components-js-specific.sample.js b/packages/documentation/src/stories/getting-started/packages/components/components-js-specific.sample.js
similarity index 100%
rename from packages/documentation/src/stories/getting-started/components/components-js-specific.sample.js
rename to packages/documentation/src/stories/getting-started/packages/components/components-js-specific.sample.js
diff --git a/packages/documentation/src/stories/getting-started/components/components.docs.mdx b/packages/documentation/src/stories/getting-started/packages/components/components.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/getting-started/components/components.docs.mdx
rename to packages/documentation/src/stories/getting-started/packages/components/components.docs.mdx
diff --git a/packages/documentation/src/stories/getting-started/components/components.stories.ts b/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
similarity index 71%
rename from packages/documentation/src/stories/getting-started/components/components.stories.ts
rename to packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
index 1a15879e29..b89a2b0095 100644
--- a/packages/documentation/src/stories/getting-started/components/components.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
@@ -1,9 +1,9 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../.storybook/constants';
+import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: 'edfb619b-fda1-4570-bf25-20830303d483',
- title: 'Getting Started/Components',
+ title: 'Getting Started/Packages/Components',
parameters: {
badges: [BADGE.NEEDS_REVISION],
},
diff --git a/packages/documentation/src/stories/components/icons/getting-started-icon-meta.sample.html b/packages/documentation/src/stories/getting-started/packages/icons/package-icons-icon-meta.sample.html
similarity index 100%
rename from packages/documentation/src/stories/components/icons/getting-started-icon-meta.sample.html
rename to packages/documentation/src/stories/getting-started/packages/icons/package-icons-icon-meta.sample.html
diff --git a/packages/documentation/src/stories/components/icons/getting-started-node-16.7.0.sample.json b/packages/documentation/src/stories/getting-started/packages/icons/package-icons-node-16.7.0.sample.json
similarity index 100%
rename from packages/documentation/src/stories/components/icons/getting-started-node-16.7.0.sample.json
rename to packages/documentation/src/stories/getting-started/packages/icons/package-icons-node-16.7.0.sample.json
diff --git a/packages/documentation/src/stories/components/icons/getting-started-node-old.sample.js b/packages/documentation/src/stories/getting-started/packages/icons/package-icons-node-old.sample.js
similarity index 100%
rename from packages/documentation/src/stories/components/icons/getting-started-node-old.sample.js
rename to packages/documentation/src/stories/getting-started/packages/icons/package-icons-node-old.sample.js
diff --git a/packages/documentation/src/stories/components/icons/getting-started-node-old.sample.json b/packages/documentation/src/stories/getting-started/packages/icons/package-icons-node-old.sample.json
similarity index 100%
rename from packages/documentation/src/stories/components/icons/getting-started-node-old.sample.json
rename to packages/documentation/src/stories/getting-started/packages/icons/package-icons-node-old.sample.json
diff --git a/packages/documentation/src/stories/components/icons/getting-started.docs.mdx b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.mdx
similarity index 78%
rename from packages/documentation/src/stories/components/icons/getting-started.docs.mdx
rename to packages/documentation/src/stories/getting-started/packages/icons/package-icons.mdx
index c5c49f0788..adf2ab496b 100644
--- a/packages/documentation/src/stories/components/icons/getting-started.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.mdx
@@ -1,13 +1,12 @@
import { Meta, Source } from '@storybook/blocks';
import { PostTabHeader, PostTabPanel, PostTabs } from '@swisspost/design-system-components-react';
-import * as GettingStartedStories from './getting-started.stories';
-import SampleAngularConfig from './getting-started-angular-config.sample.json?raw';
-import SampleNode16 from './getting-started-node-16.7.0.sample.json?raw';
-import SampleNodeOlder from './getting-started-node-old.sample.json?raw';
-import SampleNodeOlderJs from './getting-started-node-old.sample.js?raw';
-import SampleIconMeta from './getting-started-icon-meta.sample.html?raw';
+import * as PackageIconsStories from './package-icons.stories';
+import SampleNode16 from './package-icons-node-16.7.0.sample.json?raw';
+import SampleNodeOlder from './package-icons-node-old.sample.json?raw';
+import SampleNodeOlderJs from './package-icons-node-old.sample.js?raw';
+import SampleIconMeta from './package-icons-icon-meta.sample.html?raw';
-
+
# @swisspost/design-system-icons
@@ -32,11 +31,7 @@ The comprehensive collection of Swiss Post icons.
- If you want to use our [icon component](/?path=/docs/0dcfe3c0-bfc0-4107-b43b-7e9d825b805f--docs) to
- render the icons (which we strongly recommend), you must also install the
- components package.
-
- To learn how to set up this package please read our [Components - Getting Started](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs) page.
+ To render icon with a component you need to install the [Components package](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs) as well.
## Usage
@@ -48,10 +43,7 @@ Read on to find out what the possible solutions look like...
### Serve the icons within an Angular application
-It is very easy to serve the icons from the `node_modules` folder directly into your angular application.
-Just open your `angular.json` file and add the following to the `build.options.assets`:
-
-
+See [Getting started with Angular](/?path=/docs/8426deb2-3d6d-4fcc-90e6-1ca9737b2ed0--docs)
### Copy & paste the icons with a postinstall script
diff --git a/packages/documentation/src/stories/components/icons/getting-started.stories.ts b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
similarity index 72%
rename from packages/documentation/src/stories/components/icons/getting-started.stories.ts
rename to packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
index c85e1d102a..4a6ed2f7d2 100644
--- a/packages/documentation/src/stories/components/icons/getting-started.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
@@ -1,9 +1,9 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../.storybook/constants';
+import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: '40ed323b-9c1a-42ab-91ed-15f97f214608',
- title: 'Components/Icons/Getting Started',
+ title: 'Getting Started/Packages/Icons',
parameters: {
badges: [BADGE.NEEDS_REVISION],
},
diff --git a/packages/documentation/src/stories/components/internet-header/internet-header-bare-component.sample.js b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-bare-component.sample.js
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/internet-header-bare-component.sample.js
rename to packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-bare-component.sample.js
diff --git a/packages/documentation/src/stories/components/internet-header/internet-header-cdn-bare-component.sample.html b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-cdn-bare-component.sample.html
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/internet-header-cdn-bare-component.sample.html
rename to packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-cdn-bare-component.sample.html
diff --git a/packages/documentation/src/stories/components/internet-header/internet-header-cdn-lazy-loaded.sample.html b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-cdn-lazy-loaded.sample.html
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/internet-header-cdn-lazy-loaded.sample.html
rename to packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-cdn-lazy-loaded.sample.html
diff --git a/packages/documentation/src/stories/components/internet-header/internet-header-fix-app-styles.sample.html b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-fix-app-styles.sample.html
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/internet-header-fix-app-styles.sample.html
rename to packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-fix-app-styles.sample.html
diff --git a/packages/documentation/src/stories/components/internet-header/internet-header-frameworks.sample.html b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-frameworks.sample.html
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/internet-header-frameworks.sample.html
rename to packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-frameworks.sample.html
diff --git a/packages/documentation/src/stories/components/internet-header/internet-header-install.sample.html b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-install.sample.html
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/internet-header-install.sample.html
rename to packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-install.sample.html
diff --git a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-lazy-loaded.sample.js b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-lazy-loaded.sample.js
new file mode 100644
index 0000000000..f8c47cd34a
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-lazy-loaded.sample.js
@@ -0,0 +1,4 @@
+// main.ts / index.js / ...
+import { defineCustomElements } from 'packages/internet-header';
+
+defineCustomElements();
diff --git a/packages/documentation/src/stories/components/internet-header/internet-header-old.sample.html b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-old.sample.html
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/internet-header-old.sample.html
rename to packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-old.sample.html
diff --git a/packages/documentation/src/stories/components/internet-header/internet-header-reference.sample.ts b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-reference.sample.ts
similarity index 100%
rename from packages/documentation/src/stories/components/internet-header/internet-header-reference.sample.ts
rename to packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-reference.sample.ts
diff --git a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.docs.mdx b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.docs.mdx
new file mode 100644
index 0000000000..6146b55b12
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.docs.mdx
@@ -0,0 +1,181 @@
+import { Meta, Source } from '@storybook/blocks';
+import { PostTabs, PostTabHeader, PostTabPanel } from '@swisspost/design-system-components-react';
+import SampleFrameworks from './internet-header-frameworks.sample.html?raw';
+import SampleLazyLoaded from './internet-header-lazy-loaded.sample.js?raw';
+import SampleBareComponent from './internet-header-bare-component.sample.js?raw';
+import SampleCDNLazyLoaded from './internet-header-cdn-lazy-loaded.sample.html?raw';
+import SampleCDNBareComponent from './internet-header-cdn-bare-component.sample.html?raw';
+import SampleReference from './internet-header-reference.sample.ts?raw';
+import SampleInstall from './internet-header-install.sample.html?raw';
+import SampleFixAppStyles from './internet-header-fix-app-styles.sample.html?raw';
+import SampleOld from './internet-header-old.sample.html?raw';
+import * as GettingStartedStories from './internet-header.stories';
+import { SourceDarkMode } from '../../../../../.storybook/preview';
+
+
+
+# @swisspost/internet-header
+
+[![npm version](https://badge.fury.io/js/@swisspost%2Finternet-header.svg)](https://badge.fury.io/js/@swisspost%2Finternet-header)
+
+The header for client-facing applications.
+
+
+
+## Configuration
+
+The Internet Header is built to support the already existing Portal Configuration used for the old Internet Header.
+
+If you're working on a new project, you probably need a new configuration. Please click the button below.
+
+Contact Post Portal Team
+
+Not every Online Service has configurations for all environments.
+For example, "TOPOS" only has `int02` configured and cannot use `int01` as value for environment.
+If you are not sure what's configured for your project, please reach out to the post-portal team as well.
+
+## Installation
+
+### Choosing between lazy-loaded or bare component version
+
+Internet-header package provide two versions:
+
+- Lazy-loaded (default): it allows better performance by dynamically load the component when used, so it reduces bundle size, startup time and first paint.
+- Bare component: if you already manage the lazy-loading or don't need it for any reason, you can use the component without any overhead.
+
+### Angular, Vue.js, React (or any other bundler setup)
+
+All the popular frameworks come with some form of bundler.
+This makes it easy to use npm packages like the Internet Header as you can import,
+bundle and deliver the header with your own code.
+
+When working with Angular or any other framework, the easiest installation method is via npm.
+
+
+
+
+
+
+ Lazy-Loaded
+
+
+
+
+ Bare Component
+
+
+
+
+
+### Include from a CDN
+
+If you are not using any bundler or don't want to install from npm, you can load the `internet-header` from your favourite [CDN](https://en.wikipedia.org/wiki/Content_delivery_network).
+Make sure to replace `{version}` with the version you want to use or remove `@{version}` to use the latest version.
+
+Available CDNs:
+
+- [jsDelivr](https://www.jsdelivr.com/): replace `{cdnURL}` with [https://cdn.jsdelivr.net/npm/@swisspost/internet-header](https://cdn.jsdelivr.net/npm/@swisspost/internet-header).
+- [unpkg](https://unpkg.com/): replace `{cdnURL}` with [https://unpkg.com/@swisspost/internet-header](https://unpkg.com/@swisspost/internet-header).
+
+
+ Lazy-Loaded
+
+
+
+
+ Bare Component
+
+
+
+
+
+## Migration from the old header
+
+This guide aims to give a broad overview of how a migration can be performed.
+Different projects have different levels of integration with the header,
+and therefore require more steps to migrate.
+
+### Architecture
+
+The "new"
+Internet Header Web Component aims
+to encapsulate as much as possible whereas the old header had a big influence on the page —
+limiting design decisions and flexibility of the markup structure.
+The Web Component Header consists of one script and three standard Web Components that can be freely placed on the page.
+It's even possible to render those elements with Angular
+(or any other framework) to easier pass settings into the component.
+
+The new header is built
+to work with the existing Sitecore configuration
+already existing for your project to make the migration as smooth as possible.
+
+### Support
+
+If you need support during your migration,
+don't hesitate
+to contact the [Design System Team](https://github.com/swisspost/design-system/discussions/categories/general) on GitHub.
+
+### 1. Remove the old header
+
+In your index.html, you should find three scripts associated with the old header.
+One to load static assets, one to configure it and one to load it.
+
+- You can remove the configuration and the loader scripts, but remember your `serviceid`.
+- Try to remove the `staticassets` script to check if you still need it
+
+
+
+### 2. Fix your app styles
+
+The old header was responsible for wrapping your main code (here `#os_content`) with custom ``s.
+The new header does not provide those wrappers.
+Instead, every page has control over the main markup structure.
+A possible replacement of the above code could be:
+
+
+
+- Likely you'll need the class `container` around your main content to align it properly in the center.
+- For bonus points on semantic markup, use the [`
` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main) around the main page content
+- Check if you need the `staticasset` stylesheets linked in the header
+
+If you need to do any other changes,
+please make a post to the [Design System Teams Channel](https://teams.microsoft.com/l/channel/19%3ae7fa68fb13eb40b4bf4604edea5f4b3e%40thread.tacv2/%25F0%259F%259A%2591%2520Support?groupId=123c7c9e-052a-40e6-98d3-6cc6d46bad0a&tenantId=3ae7c479-0cf1-47f4-8f84-929f364eff67)
+in order to inform the devs to update this guide and provide useful information for other developers.
+
+### 3. jQuery
+
+The new Header does not ship jQuery anymore.
+While jQuery v3.6 is an internal dependency for the Login Widget,
+every project is now responsible for loading and updating jQuery individually.
+If you are depending on an older (<3.5) version of jQuery, please update.
+There is a long list of [known jQuery vulnerabilities](https://security.snyk.io/package/npm/jquery).
+
+### 4. Install the new header
+
+Please refer to the [Internet Header installation instructions](/?path=/docs/9b02bcb2-3b6a-4271-b550-675a62ff3890--docs) for an installation guide.
+
+After installation, you're ready to add the new tags to your markup:
+
+
+
+Place the new elements as described (and needed) as shown above.
+The breadcrumbs need a `container` wrapper to align themselves with the content of your page,
+the header and the footer already provide a container.
+If you don't have breadcrumbs, you can just delete the `` and the ``.
+
+### 5. Working with the new header
+
+If you need to change settings during runtime, you can get a reference to the header by querying:
+
+
+
+At the [Internet Header configuration page](/?path=/docs/ebb11274-091b-4cb7-9a3f-3e0451c9a865--docs) you can find a list of possible options.
diff --git a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
new file mode 100644
index 0000000000..9994f01227
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
@@ -0,0 +1,16 @@
+import { Meta, StoryObj } from '@storybook/web-components';
+import { BADGE } from '../../../../../.storybook/constants';
+
+const meta: Meta = {
+ id: 'cfa21cbc-5f8d-4a42-8165-7f6ed20bf133',
+ title: 'Getting Started/Packages/Internet-header',
+ parameters: {
+ badges: [BADGE.NEEDS_REVISION],
+ },
+};
+
+export default meta;
+
+type Story = StoryObj;
+
+export const Default: Story = {};
diff --git a/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.docs.mdx b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.docs.mdx
new file mode 100644
index 0000000000..b562d1638c
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.docs.mdx
@@ -0,0 +1,32 @@
+import { Meta, Source } from '@storybook/blocks';
+import * as IntranetHeaderStories from './intranet-header.stories';
+
+
+
+# @swisspost/design-system-intranet-header
+
+[![npm version](https://badge.fury.io/js/@swisspost%2Fdesign-system-intranet-header.svg)](https://badge.fury.io/js/@swisspost%2Fdesign-system-intranet-header)
+
+
+
Angular only component
+
The intranet header is an Angular component, as such it only works
+ within Angular projects.
+
+
+The Header Angular component for internal usage.
+
+
+
+## Installation
+
+
diff --git a/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
new file mode 100644
index 0000000000..57eca0b62f
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
@@ -0,0 +1,16 @@
+import { Meta, StoryObj } from '@storybook/web-components';
+import { BADGE } from '../../../../../.storybook/constants';
+
+const meta: Meta = {
+ id: '7068be42-1a20-4a34-9e79-7fb7f9f2940f',
+ title: 'Getting Started/Packages/Intranet-header',
+ parameters: {
+ badges: [BADGE.NEEDS_REVISION],
+ },
+};
+
+export default meta;
+
+type Story = StoryObj;
+
+export const Default: Story = {};
diff --git a/packages/documentation/src/stories/getting-started/packages/styles/styles-variable.sample.scss b/packages/documentation/src/stories/getting-started/packages/styles/styles-variable.sample.scss
new file mode 100644
index 0000000000..1c2f17215e
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/packages/styles/styles-variable.sample.scss
@@ -0,0 +1,5 @@
+@use '../../../../../node_modules/@swisspost/design-system-styles/core' as post;
+
+.my-component {
+ background-color: post.$yellow; // #FFCC00
+}
diff --git a/packages/documentation/src/stories/getting-started/styles/styles.docs.mdx b/packages/documentation/src/stories/getting-started/packages/styles/styles.docs.mdx
similarity index 100%
rename from packages/documentation/src/stories/getting-started/styles/styles.docs.mdx
rename to packages/documentation/src/stories/getting-started/packages/styles/styles.docs.mdx
diff --git a/packages/documentation/src/stories/getting-started/styles/styles.stories.ts b/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
similarity index 71%
rename from packages/documentation/src/stories/getting-started/styles/styles.stories.ts
rename to packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
index 93f1e12bfc..2518a9270e 100644
--- a/packages/documentation/src/stories/getting-started/styles/styles.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
@@ -1,9 +1,9 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../.storybook/constants';
+import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: 'e53e2de8-0bbf-4f70-babc-074c5466f700',
- title: 'Getting Started/Styles',
+ title: 'Getting Started/Packages/Styles',
parameters: {
badges: [BADGE.NEEDS_REVISION],
},
diff --git a/packages/documentation/src/stories/getting-started/styles/styles-variable.sample.scss b/packages/documentation/src/stories/getting-started/styles/styles-variable.sample.scss
deleted file mode 100644
index ae827a9197..0000000000
--- a/packages/documentation/src/stories/getting-started/styles/styles-variable.sample.scss
+++ /dev/null
@@ -1,5 +0,0 @@
-@use '@swisspost/design-system-styles/core.scss' as post;
-
-.my-component {
- background-color: post.$yellow; // #FFCC00
-}
diff --git a/packages/documentation/src/stories/home.docs.mdx b/packages/documentation/src/stories/home.docs.mdx
index bd262a0484..005b0a9825 100644
--- a/packages/documentation/src/stories/home.docs.mdx
+++ b/packages/documentation/src/stories/home.docs.mdx
@@ -18,7 +18,7 @@ import './home.styles.scss';
Date: Tue, 27 Feb 2024 12:14:46 +0100
Subject: [PATCH 02/36] Add changesets + fixes
---
.changeset/old-pumas-sit.md | 5 +++++
.../internet-header/internet-header-lazy-loaded.sample.js | 2 +-
.../packages/styles/styles-variable.sample.scss | 2 +-
3 files changed, 7 insertions(+), 2 deletions(-)
create mode 100644 .changeset/old-pumas-sit.md
diff --git a/.changeset/old-pumas-sit.md b/.changeset/old-pumas-sit.md
new file mode 100644
index 0000000000..70474d5cc4
--- /dev/null
+++ b/.changeset/old-pumas-sit.md
@@ -0,0 +1,5 @@
+---
+'@swisspost/design-system-documentation': patch
+---
+
+Reworked the getting-started section to better understand the different packages and add more info about Angular.
diff --git a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-lazy-loaded.sample.js b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-lazy-loaded.sample.js
index f8c47cd34a..80b5bf4cc3 100644
--- a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-lazy-loaded.sample.js
+++ b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header-lazy-loaded.sample.js
@@ -1,4 +1,4 @@
// main.ts / index.js / ...
-import { defineCustomElements } from 'packages/internet-header';
+import { defineCustomElements } from '@swisspost/internet-header/loader';
defineCustomElements();
diff --git a/packages/documentation/src/stories/getting-started/packages/styles/styles-variable.sample.scss b/packages/documentation/src/stories/getting-started/packages/styles/styles-variable.sample.scss
index 1c2f17215e..1883edb044 100644
--- a/packages/documentation/src/stories/getting-started/packages/styles/styles-variable.sample.scss
+++ b/packages/documentation/src/stories/getting-started/packages/styles/styles-variable.sample.scss
@@ -1,4 +1,4 @@
-@use '../../../../../node_modules/@swisspost/design-system-styles/core' as post;
+@use '@swisspost/design-system-styles/core' as post;
.my-component {
background-color: post.$yellow; // #FFCC00
From 490c5d274064856a57ab353e15ba1164b626d2f5 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 27 Feb 2024 12:15:53 +0100
Subject: [PATCH 03/36] Fix unwanted change
---
.../src/stories/foundation/icons/search-icons.styles.scss | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/foundation/icons/search-icons.styles.scss b/packages/documentation/src/stories/foundation/icons/search-icons.styles.scss
index b6f391c8be..6426154a30 100644
--- a/packages/documentation/src/stories/foundation/icons/search-icons.styles.scss
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.styles.scss
@@ -1,4 +1,4 @@
-@use '../../../../node_modules/@swisspost/design-system-styles/core' as post;
+@use '@swisspost/design-system-styles/core' as post;
.icon-search {
.icon-search--filters {
From b843a64b3d071a5042f82868b53cccb260ea2885 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 27 Feb 2024 12:17:05 +0100
Subject: [PATCH 04/36] Fix unwanted change
---
.../src/stories/foundation/icons/search-icons.blocks.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/foundation/icons/search-icons.blocks.tsx b/packages/documentation/src/stories/foundation/icons/search-icons.blocks.tsx
index cfa7d038a8..ea23fb2dd7 100644
--- a/packages/documentation/src/stories/foundation/icons/search-icons.blocks.tsx
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.blocks.tsx
@@ -1,4 +1,4 @@
-import report from '../../../../../icons/public/report.json';
+import report from '@swisspost/design-system-icons/public/report.json';
import React from 'react';
import './search-icons.styles.scss';
From e364468e8f3545b60e1f63c6627dea0ec2a46314 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 27 Feb 2024 16:04:11 +0100
Subject: [PATCH 05/36] Improve getting started page
---
.../.storybook/styles/preview.scss | 3 +
.../components/spinner/spinner.stories.ts | 1 +
.../getting-started/getting-started.docs.mdx | 58 +++++++++++++------
3 files changed, 44 insertions(+), 18 deletions(-)
diff --git a/packages/documentation/.storybook/styles/preview.scss b/packages/documentation/.storybook/styles/preview.scss
index d6292d5b20..89a096b66f 100644
--- a/packages/documentation/.storybook/styles/preview.scss
+++ b/packages/documentation/.storybook/styles/preview.scss
@@ -38,6 +38,9 @@
h6 {
margin-block: 1rem;
}
+ .table,.table-responsive{
+ margin-block: 2rem 1rem;
+ }
}
.sbdocs-content .container {
diff --git a/packages/documentation/src/stories/components/spinner/spinner.stories.ts b/packages/documentation/src/stories/components/spinner/spinner.stories.ts
index 7fe63244f6..3d3bf4df2a 100644
--- a/packages/documentation/src/stories/components/spinner/spinner.stories.ts
+++ b/packages/documentation/src/stories/components/spinner/spinner.stories.ts
@@ -3,6 +3,7 @@ import { html } from 'lit/static-html.js';
import { BADGE } from '../../../../.storybook/constants';
const meta: Meta = {
+ id: 'd0e645d0-3bf2-4b00-967a-5a1343107f60',
title: 'Components/Spinner',
render,
decorators: [story => generateDecorators(story)],
diff --git a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
index ffcf024a9c..f962673ee7 100644
--- a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
@@ -9,9 +9,11 @@ Welcome to the Swiss post design system world! The design-system is formed with
## Which package do I need?
+All components require at least the 📦 Styles package
+
- Compatibilities between components and frameworks and which package is needed
+ Compatibilities between components and frameworks and which package is needed
@@ -21,7 +23,7 @@ Welcome to the Swiss post design system world! The design-system is formed with
Component
- Vanilla JS
+ JavaScript
Angular
React
@@ -37,6 +39,14 @@ Welcome to the Swiss post design system world! The design-system is formed with
TBD
+
+ Intranet-header
+ N/A
+
+ 📦 Intranet-header
+
+ N/A
+
Web Components:
@@ -58,14 +68,6 @@ Welcome to the Swiss post design system world! The design-system is formed with
TBD
-
- Intranet-header
- N/A
-
- 📦 Intranet-header
-
- N/A
-
Angular components:
@@ -85,20 +87,40 @@ Welcome to the Swiss post design system world! The design-system is formed with
N/A
- 📦 Styles and Ng-Bootstrap module
+ Ng-Bootstrap module specific to the component
N/A
- Toast
-
- 📦 Styles with your own additional JavaScript for interaction
+
+ HTML components:
+
-
-
- All other components
- 📦 Styles
+ No other package is required
From b18d0170f54d1835130d1def31506ffc455e0811 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 27 Feb 2024 16:07:41 +0100
Subject: [PATCH 06/36] Improve getting started page
---
packages/documentation/.storybook/styles/preview.scss | 2 +-
.../src/stories/getting-started/getting-started.docs.mdx | 7 +++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/packages/documentation/.storybook/styles/preview.scss b/packages/documentation/.storybook/styles/preview.scss
index 89a096b66f..db161bce4f 100644
--- a/packages/documentation/.storybook/styles/preview.scss
+++ b/packages/documentation/.storybook/styles/preview.scss
@@ -39,7 +39,7 @@
margin-block: 1rem;
}
.table,.table-responsive{
- margin-block: 2rem 1rem;
+ margin-block: 1.5rem 1rem;
}
}
diff --git a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
index f962673ee7..d6be246a1b 100644
--- a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
@@ -9,7 +9,10 @@ Welcome to the Swiss post design system world! The design-system is formed with
## Which package do I need?
-All components require at least the 📦 Styles package
+
+
@@ -119,7 +122,7 @@ All components require at least the Topic Teaser
-
+
No other package is required
From c0fe4f84dbb4da605614e6b738fa0bb24b03d825 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 27 Feb 2024 16:08:41 +0100
Subject: [PATCH 07/36] Improve getting started page
---
.../src/stories/getting-started/getting-started.docs.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
index d6be246a1b..4fe1a5a251 100644
--- a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
@@ -11,7 +11,7 @@ Welcome to the Swiss post design system world! The design-system is formed with
From bf07aa740a73c679712eba397fa9e3a1e982dafc Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 27 Feb 2024 16:11:36 +0100
Subject: [PATCH 08/36] Improve getting started page
---
.../src/stories/getting-started/getting-started.docs.mdx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
index 4fe1a5a251..5741738a00 100644
--- a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
@@ -5,10 +5,11 @@ import * as GettingStartedStories from './getting-started.stories';
# Getting started
-Welcome to the Swiss post design system world! The design-system is formed with several packages and different compatibilities with your favorite framework.
+Welcome to the Swiss post design system world!
## Which package do I need?
+The design-system is formed with several packages and different compatibilities with your favorite framework.
All components require at least the
📦 Styles package.
From e7c3701f5a7b07012e1c51924a5b3a494016545c Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 27 Feb 2024 16:19:46 +0100
Subject: [PATCH 09/36] Remove badge to ensure, that we'll not add them again
after the PR to remove all badges
---
.../getting-started/compatibility/compatibility.stories.ts | 3 +--
.../packages/components-angular/angular.stories.ts | 3 +--
.../getting-started/packages/components/components.stories.ts | 3 +--
.../getting-started/packages/icons/package-icons.stories.ts | 3 +--
.../packages/internet-header/internet-header.stories.ts | 3 +--
.../packages/intranet-header/intranet-header.stories.ts | 3 +--
.../stories/getting-started/packages/styles/styles.stories.ts | 3 +--
7 files changed, 7 insertions(+), 14 deletions(-)
diff --git a/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts b/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
index f8229c21da..1ef5f2e963 100644
--- a/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
+++ b/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
@@ -1,11 +1,10 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../.storybook/constants';
const meta: Meta = {
id: '829f6c45-5734-4d55-b290-2c8a86a07b67',
title: 'Getting Started/Compatibility',
parameters: {
- badges: [BADGE.NEEDS_REVISION],
+ badges: [],
},
};
diff --git a/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts b/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
index bf102cfa97..f2f08500c5 100644
--- a/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
@@ -1,11 +1,10 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: '833ef689-a573-40f5-a6a6-30a999b94733',
title: 'Getting Started/Packages/Components-Angular',
parameters: {
- badges: [BADGE.NEEDS_REVISION],
+ badges: [],
},
};
diff --git a/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts b/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
index b89a2b0095..9c0539dbf6 100644
--- a/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
@@ -1,11 +1,10 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: 'edfb619b-fda1-4570-bf25-20830303d483',
title: 'Getting Started/Packages/Components',
parameters: {
- badges: [BADGE.NEEDS_REVISION],
+ badges: [],
},
};
diff --git a/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
index 4a6ed2f7d2..76aee24755 100644
--- a/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
@@ -1,11 +1,10 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: '40ed323b-9c1a-42ab-91ed-15f97f214608',
title: 'Getting Started/Packages/Icons',
parameters: {
- badges: [BADGE.NEEDS_REVISION],
+ badges: [],
},
};
diff --git a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
index 9994f01227..1d92b995b6 100644
--- a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
@@ -1,11 +1,10 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: 'cfa21cbc-5f8d-4a42-8165-7f6ed20bf133',
title: 'Getting Started/Packages/Internet-header',
parameters: {
- badges: [BADGE.NEEDS_REVISION],
+ badges: [],
},
};
diff --git a/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
index 57eca0b62f..200487c71a 100644
--- a/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
@@ -1,11 +1,10 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: '7068be42-1a20-4a34-9e79-7fb7f9f2940f',
title: 'Getting Started/Packages/Intranet-header',
parameters: {
- badges: [BADGE.NEEDS_REVISION],
+ badges: [],
},
};
diff --git a/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts b/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
index 2518a9270e..1e43e5924c 100644
--- a/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
@@ -1,11 +1,10 @@
import { Meta, StoryObj } from '@storybook/web-components';
-import { BADGE } from '../../../../../.storybook/constants';
const meta: Meta = {
id: 'e53e2de8-0bbf-4f70-babc-074c5466f700',
title: 'Getting Started/Packages/Styles',
parameters: {
- badges: [BADGE.NEEDS_REVISION],
+ badges: [],
},
};
From f67e4285359bbfdf9f9f2287e1e50453b1520446 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Wed, 28 Feb 2024 08:08:17 +0100
Subject: [PATCH 10/36] Fix spinner snapshot id
---
.../stories/components/spinner/spinner.snapshot.stories.ts | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/components/spinner/spinner.snapshot.stories.ts b/packages/documentation/src/stories/components/spinner/spinner.snapshot.stories.ts
index 760b0c5485..b2faf06d57 100644
--- a/packages/documentation/src/stories/components/spinner/spinner.snapshot.stories.ts
+++ b/packages/documentation/src/stories/components/spinner/spinner.snapshot.stories.ts
@@ -3,8 +3,10 @@ import meta from './spinner.stories';
import { html } from 'lit';
import { bombArgs } from '../../../utils';
+const { id, ...metaWithoutId } = meta;
+
export default {
- ...meta,
+ ...metaWithoutId,
title: 'Snapshots',
};
From 6b17a72c8a621ed8a3b2b33f8174080ff9cc8bc9 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Wed, 28 Feb 2024 08:16:40 +0100
Subject: [PATCH 11/36] Capitalize name of components in the sidebar like the
others
---
.../src/stories/components/forms/radio/radio.stories.ts | 2 +-
.../notification-overlay/notification-overlay.stories.ts | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
index 01b671572d..902dada757 100644
--- a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
+++ b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
@@ -11,7 +11,7 @@ const VALIDATION_STATE_MAP: Record
= {
const meta: Meta = {
id: '151242aa-a074-4a55-a81c-db597c83cdad',
- title: 'Components/Forms/Radio button',
+ title: 'Components/Forms/Radio Button',
parameters: {
controls: {
exclude: ['Hidden Legend'],
diff --git a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
index 7665c53ef8..f87ba20d81 100644
--- a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
+++ b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
@@ -3,7 +3,7 @@ import { BADGE } from '../../../../.storybook/constants';
const meta: Meta = {
id: 'aab3f0df-08ca-4e33-90eb-77ffda6528db',
- title: 'Components/Notification overlay',
+ title: 'Components/Notification Overlay',
parameters: {
badges: [BADGE.WEB_COMPONENT_CANDIDATE],
},
From c84a9b77f24d8ad2a29de7a1935fd74f41473380 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Wed, 28 Feb 2024 08:18:24 +0100
Subject: [PATCH 12/36] Normalize Card Button
---
.../stories/components/cards/card-button/card-button.stories.ts | 2 +-
.../src/stories/getting-started/getting-started.docs.mdx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts b/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
index 430afa0dc3..21493426af 100644
--- a/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
+++ b/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
@@ -5,7 +5,7 @@ import { useArgs } from '@storybook/preview-api';
import scss from './card-button.module.scss';
const meta: Meta = {
- title: 'Components/Cards/Card-Button',
+ title: 'Components/Cards/Card Button',
parameters: {
badges: [BADGE.WEB_COMPONENT_CANDIDATE],
},
diff --git a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
index 5741738a00..6d61a80427 100644
--- a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
@@ -104,7 +104,7 @@ The design-system is formed with several packages and different compatibilities
Button
Button Group
Card
- Card-Button
+ Card Button
Checkbox
Checkbox Card
Heading
From 9dd436999091c594c2d4e01d62080faaaa1367fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20F=C3=BCrhoff?=
<12294151+imagoiq@users.noreply.github.com>
Date: Thu, 29 Feb 2024 08:32:34 +0100
Subject: [PATCH 13/36] Update
packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Alizé Debray <33580481+alizedebray@users.noreply.github.com>
---
.../card/complex-card-demo/complex-card-demo.component.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html b/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html
index 09f66490b8..4f296d919d 100644
--- a/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html
+++ b/packages/demo/src/app/bootstrap/components/card/complex-card-demo/complex-card-demo.component.html
@@ -140,7 +140,7 @@ Card title
Card columns
-
Card columns can be checked out in the Swiss post example below.
+
Card columns can be checked out in the Swiss Post example below.
Default
From f706b033b0d68b0c265922a807d7b2fb4585193a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20F=C3=BCrhoff?=
<12294151+imagoiq@users.noreply.github.com>
Date: Thu, 29 Feb 2024 08:32:48 +0100
Subject: [PATCH 14/36] Update
packages/documentation/.storybook/styles/preview.scss
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Alizé Debray <33580481+alizedebray@users.noreply.github.com>
---
packages/documentation/.storybook/styles/preview.scss | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/packages/documentation/.storybook/styles/preview.scss b/packages/documentation/.storybook/styles/preview.scss
index db161bce4f..356190e310 100644
--- a/packages/documentation/.storybook/styles/preview.scss
+++ b/packages/documentation/.storybook/styles/preview.scss
@@ -38,7 +38,8 @@
h6 {
margin-block: 1rem;
}
- .table,.table-responsive{
+ .table,
+ .table-responsive {
margin-block: 1.5rem 1rem;
}
}
From 4bd9af85e8c7d1f13b65be0da7b23d887aefd901 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20F=C3=BCrhoff?=
<12294151+imagoiq@users.noreply.github.com>
Date: Thu, 29 Feb 2024 08:33:05 +0100
Subject: [PATCH 15/36] Update
packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Alizé Debray <33580481+alizedebray@users.noreply.github.com>
---
.../src/stories/getting-started/angular/angular.docs.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
index 00336b580b..fafd9034e7 100644
--- a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
@@ -7,7 +7,7 @@ import SampleWcAngularManually from './sample-web-components-angular-manually.co
# Angular
-The Swiss post design-system is compatible with Angular. Here are some tips, best practices and information to include components the easiest way.
+The Swiss Post Design System is compatible with Angular. Here are some tips, best practices and information to include components the easiest way.
## Usage of Web Components
From abfa8c9d27b0c58eefb19a19c390487ba0f99036 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Thu, 29 Feb 2024 10:13:04 +0100
Subject: [PATCH 16/36] Remove underline on emoji
---
.../stories/getting-started/getting-started.docs.mdx | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
index 6d61a80427..09705918fc 100644
--- a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
@@ -12,7 +12,7 @@ Welcome to the Swiss post design system world!
The design-system is formed with several packages and different compatibilities with your favorite framework.
@@ -36,10 +36,10 @@ The design-system is formed with several packages and different compatibilities
Internet-header
- 📦 Internet-header
+ 📦 Internet-header
- 📦 Internet-header with CUSTOM_ELEMENTS_SCHEMA
+ 📦 Internet-header with CUSTOM_ELEMENTS_SCHEMA
TBD
@@ -47,7 +47,7 @@ The design-system is formed with several packages and different compatibilities
Intranet-header
N/A
- 📦 Intranet-header
+ 📦 Intranet-header
N/A
@@ -65,10 +65,10 @@ The design-system is formed with several packages and different compatibilities
- 📦 Components
+ 📦 Components
- 📦 Components-Angular
+ 📦 Components-Angular
TBD
From 5cbe3e0571afca0b75682cd650bbe61b9cfcaf36 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Thu, 29 Feb 2024 10:14:20 +0100
Subject: [PATCH 17/36] Change icon to Search for Icons
---
.../src/stories/foundation/icons/search-icons.stories.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts b/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
index 26e565281e..0fe0cb38d9 100644
--- a/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
@@ -2,7 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components';
const meta: Meta = {
id: '5704bdc4-c5b5-45e6-b123-c54d01fce2f1',
- title: 'Foundations/Icons',
+ title: 'Foundations/Search for Icons',
};
export default meta;
From 3a6e289794829fece389df04f87c351ea68c8e3f Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Thu, 29 Feb 2024 10:17:40 +0100
Subject: [PATCH 18/36] Fix from migration
---
.../stories/components/internet-header/migration-guide.stories.ts | 0
1 file changed, 0 insertions(+), 0 deletions(-)
delete mode 100644 packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts
diff --git a/packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts b/packages/documentation/src/stories/components/internet-header/migration-guide.stories.ts
deleted file mode 100644
index e69de29bb2..0000000000
From 03ddc877a745b760aaf936771698059d03aa368d Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Thu, 29 Feb 2024 10:21:50 +0100
Subject: [PATCH 19/36] Reorder Search for Icons and fix title
---
packages/documentation/.storybook/preview.ts | 2 +-
.../src/stories/foundation/icons/search-icons.docs.mdx | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/documentation/.storybook/preview.ts b/packages/documentation/.storybook/preview.ts
index 1ed06a4592..377828f44a 100644
--- a/packages/documentation/.storybook/preview.ts
+++ b/packages/documentation/.storybook/preview.ts
@@ -32,7 +32,7 @@ const preview: Preview = {
[
'Typography',
'Color',
- 'Icons',
+ 'Search for Icons',
'Layout',
['Breakpoints', 'Containers', 'Grid', 'Columns', 'TODOS'],
'Elevation',
diff --git a/packages/documentation/src/stories/foundation/icons/search-icons.docs.mdx b/packages/documentation/src/stories/foundation/icons/search-icons.docs.mdx
index b0a7d776e0..4ea3a731c8 100644
--- a/packages/documentation/src/stories/foundation/icons/search-icons.docs.mdx
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.docs.mdx
@@ -4,7 +4,7 @@ import * as SearchIcons from './search-icons.stories';
-# Icons
+# Search for Icons
The official Swiss Post Icon Library for the web with over 800 high-quality scalable vector
From 155e40719f22d471257246142dc9fb4df83ae788 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Thu, 29 Feb 2024 10:31:12 +0100
Subject: [PATCH 20/36] Fix from merge
---
.../internet-header/breadcrumbs/breadcrumbs.stories.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
index 13147787bd..8e79d03d10 100644
--- a/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
@@ -1,7 +1,7 @@
import { Meta, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spread } from '@open-wc/lit-helpers';
-import { getAttributes } from '../../../../../utils';
+import { getAttributes } from '../../../../utils';
import customItems from './overrides/custom-items';
const meta: Meta
= {
From e984a468f5abcb17f61efab9f200d7e2f70b7a34 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20F=C3=BCrhoff?=
<12294151+imagoiq@users.noreply.github.com>
Date: Mon, 4 Mar 2024 07:05:25 +0100
Subject: [PATCH 21/36] Update
packages/documentation/src/stories/components/intranet-header/intranet-header.docs.mdx
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Oliver Schürch
---
.../stories/components/intranet-header/intranet-header.docs.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/components/intranet-header/intranet-header.docs.mdx b/packages/documentation/src/stories/components/intranet-header/intranet-header.docs.mdx
index ade4aafa71..9891803904 100644
--- a/packages/documentation/src/stories/components/intranet-header/intranet-header.docs.mdx
+++ b/packages/documentation/src/stories/components/intranet-header/intranet-header.docs.mdx
@@ -33,7 +33,7 @@ The Header Angular component for internal usage.
## Installation
-See Internet-header package page
+See Intranet-header package page
## Usage
From 0f3c6330c7899721fd0808182d8380045f607da3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20F=C3=BCrhoff?=
<12294151+imagoiq@users.noreply.github.com>
Date: Mon, 4 Mar 2024 07:06:29 +0100
Subject: [PATCH 22/36] Update
packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Oliver Schürch
---
.../src/stories/getting-started/angular/angular.docs.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
index fafd9034e7..eb890240d6 100644
--- a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
@@ -11,7 +11,7 @@ The Swiss Post Design System is compatible with Angular. Here are some tips, bes
## Usage of Web Components
-In the design-system team, we believe that the [Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_Components) technologies should be the source for almost if not all future components.
+In the design-system team, we believe that the [Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_Components) technologies should be the source for almost all, if not all, future components.
Currently, we are providing some of our packages with those technologies:
* [Internet-header](?path=/docs/cfa21cbc-5f8d-4a42-8165-7f6ed20bf133--docs)
From eca26dc55d2e17223fa43b9a54d1e351797bdf62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lo=C3=AFc=20F=C3=BCrhoff?=
<12294151+imagoiq@users.noreply.github.com>
Date: Mon, 4 Mar 2024 07:07:20 +0100
Subject: [PATCH 23/36] Update
packages/documentation/src/stories/getting-started/packages/icons/package-icons.mdx
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Co-authored-by: Oliver Schürch
---
.../stories/getting-started/packages/icons/package-icons.mdx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/getting-started/packages/icons/package-icons.mdx b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.mdx
index adf2ab496b..1091ed0622 100644
--- a/packages/documentation/src/stories/getting-started/packages/icons/package-icons.mdx
+++ b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.mdx
@@ -31,7 +31,7 @@ The comprehensive collection of Swiss Post icons.
- To render icon with a component you need to install the [Components package](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs) as well.
+ To render an icon with a component, you need to install the [Components package](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs) as well.
## Usage
From 4edc5247d3505d082ba43599b8f8f299fef26b9d Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Mon, 4 Mar 2024 07:15:14 +0100
Subject: [PATCH 24/36] Rename getting started to introduction
---
packages/documentation/.storybook/preview.ts | 2 +-
.../{getting-started.docs.mdx => introduction.docs.mdx} | 4 ++--
.../{getting-started.stories.ts => introduction.stories.ts} | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
rename packages/documentation/src/stories/getting-started/{getting-started.docs.mdx => introduction.docs.mdx} (98%)
rename packages/documentation/src/stories/getting-started/{getting-started.stories.ts => introduction.stories.ts} (84%)
diff --git a/packages/documentation/.storybook/preview.ts b/packages/documentation/.storybook/preview.ts
index 377828f44a..065d375f71 100644
--- a/packages/documentation/.storybook/preview.ts
+++ b/packages/documentation/.storybook/preview.ts
@@ -25,7 +25,7 @@ const preview: Preview = {
// Category - Getting Started
'Getting Started',
- ['Getting Started', 'Angular', 'Compatibility', 'Packages'],
+ ['Introduction', 'Angular', 'Compatibility', 'Packages'],
// Category - Foundations
'Foundations',
diff --git a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
similarity index 98%
rename from packages/documentation/src/stories/getting-started/getting-started.docs.mdx
rename to packages/documentation/src/stories/getting-started/introduction.docs.mdx
index 09705918fc..2883645d0c 100644
--- a/packages/documentation/src/stories/getting-started/getting-started.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
@@ -1,7 +1,7 @@
import { Meta, Source } from '@storybook/blocks';
-import * as GettingStartedStories from './getting-started.stories';
+import * as IntroductionStories from './introduction.stories';
-
+
# Getting started
diff --git a/packages/documentation/src/stories/getting-started/getting-started.stories.ts b/packages/documentation/src/stories/getting-started/introduction.stories.ts
similarity index 84%
rename from packages/documentation/src/stories/getting-started/getting-started.stories.ts
rename to packages/documentation/src/stories/getting-started/introduction.stories.ts
index 4f5ebcef9b..8c7e0b69df 100644
--- a/packages/documentation/src/stories/getting-started/getting-started.stories.ts
+++ b/packages/documentation/src/stories/getting-started/introduction.stories.ts
@@ -2,7 +2,7 @@ import { Meta, StoryObj } from '@storybook/web-components';
const meta: Meta = {
id: 'dfc70c3b-4726-406b-8a41-af5738c89d05',
- title: 'Getting Started/Getting Started',
+ title: 'Getting Started/Introduction',
parameters: {
badges: [],
},
From d37498c8f09aeff0e6959fe7a435f9de4c346532 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Mon, 4 Mar 2024 11:07:02 +0100
Subject: [PATCH 25/36] Use tile from homepage on Introduction and convert tile
to Lit
---
.../.storybook/styles/preview.scss | 2 -
.../src/shared/tile/tile.component.scss | 100 ++++++++++++++++++
.../src/shared/tile/tile.component.ts | 31 ++++++
.../components/accordion/accordion.stories.ts | 5 +-
.../alert/standard-html/alert.stories.ts | 5 +-
.../alert/web-component/post-alert.stories.ts | 5 +-
.../stories/components/badge/badge.stories.ts | 5 +-
.../blockquote/blockquote.stories.ts | 5 +-
.../button-group/button-group.stories.ts | 5 +-
.../components/button/button.stories.ts | 5 +-
.../cards/card-button/card-button.stories.ts | 5 +-
.../components/cards/card/card.stories.ts | 5 +-
.../product-card/product-card.stories.ts | 5 +-
.../components/carousel/carousel.stories.ts | 5 +-
.../collapsible/collapsible.stories.ts | 5 +-
.../datepicker/datepicker.stories.ts | 5 +-
.../components/dropdown/dropdown.stories.ts | 4 +-
.../forms/checkbox/checkbox.stories.ts | 5 +-
.../forms/choice-card/choice-card.ts | 5 +-
.../custom-select/custom-select.stories.ts | 5 +-
.../components/forms/input/input.stories.ts | 5 +-
.../components/forms/radio/radio.stories.ts | 5 +-
.../components/forms/range/range.stories.ts | 5 +-
.../components/forms/select/select.stories.ts | 5 +-
.../components/forms/switch/switch.stories.ts | 5 +-
.../forms/textarea/textarea.stories.ts | 5 +-
.../components/heading/heading.stories.ts | 5 +-
.../stories/components/icons/icon.stories.ts | 5 +-
.../breadcrumbs/breadcrumbs.stories.ts | 5 +-
.../internet-header/footer/footer.stories.ts | 5 +-
.../internet-header/header/header.stories.ts | 5 +-
.../intranet-header.stories.ts | 4 +-
.../stories/components/modal/modal.stories.ts | 5 +-
.../notification-overlay.stories.ts | 5 +-
.../pagination/pagination.stories.ts | 5 +-
.../components/popover/popover.stories.ts | 5 +-
.../progressbar/progressbar.stories.ts | 5 +-
.../components/rating/post-rating.stories.ts | 5 +-
.../components/spinner/spinner.stories.ts | 5 +-
.../components/stepper/stepper.stories.ts | 5 +-
.../subnavigation/subnavigation.stories.ts | 5 +-
.../stories/components/table/table.stories.ts | 5 +-
.../stories/components/tabs/tabs.stories.ts | 5 +-
.../timepicker/timepicker.stories.ts | 5 +-
.../stories/components/toast/toast.stories.ts | 5 +-
.../components/tooltip/tooltip.stories.ts | 5 +-
.../topic-teaser/topic-teaser.stories.ts | 5 +-
.../components/typeahead/typeahead.stories.ts | 5 +-
.../accessibility/accessibility.stories.ts | 5 +-
.../stories/foundation/color/color.stories.ts | 5 +-
.../foundation/elevation/elevation.stories.ts | 5 +-
.../foundation/icons/search-icons.stories.ts | 5 +-
.../layout/breakpoints/breakpoints.stories.ts | 5 +-
.../layout/columns/columns.stories.ts | 5 +-
.../layout/containers/containers.stories.ts | 5 +-
.../foundation/layout/grid/grid.stories.ts | 5 +-
.../typography/typography.stories.ts | 5 +-
.../angular/angular.stories.ts | 5 +-
.../compatibility/compatibility.stories.ts | 5 +-
.../getting-started/introduction.docs.mdx | 67 ++++++++----
.../getting-started/introduction.stories.ts | 5 +-
.../components-angular/angular.stories.ts | 5 +-
.../packages/components/components.stories.ts | 5 +-
.../packages/icons/package-icons.stories.ts | 5 +-
.../internet-header.stories.ts | 5 +-
.../intranet-header.stories.ts | 5 +-
.../packages/styles/styles.stories.ts | 5 +-
.../documentation/src/stories/home.blocks.tsx | 19 ----
.../documentation/src/stories/home.data.ts | 74 ++++++++++---
.../documentation/src/stories/home.docs.mdx | 11 +-
.../documentation/src/stories/home.stories.ts | 5 +-
.../src/stories/home.styles.scss | 90 ----------------
.../misc/changelog/changelog.stories.ts | 5 +-
.../migration-guide.stories.ts | 5 +-
.../stories/misc/versions/versions.stories.ts | 5 +-
.../stories/patterns/forms/forms.stories.ts | 5 +-
.../patterns/metadata/metadata.stories.ts | 5 +-
.../background/background.stories.ts | 5 +-
.../stories/utilities/list/list.stories.ts | 5 +-
.../utilities/sizing/sizing.stories.ts | 5 +-
.../utilities/spacing/spacing.stories.ts | 5 +-
.../stories/utilities/text/text.stories.ts | 5 +-
packages/documentation/types/storybook.ts | 6 ++
83 files changed, 471 insertions(+), 297 deletions(-)
create mode 100644 packages/documentation/src/shared/tile/tile.component.scss
create mode 100644 packages/documentation/src/shared/tile/tile.component.ts
create mode 100644 packages/documentation/types/storybook.ts
diff --git a/packages/documentation/.storybook/styles/preview.scss b/packages/documentation/.storybook/styles/preview.scss
index 59db047c64..0ff2ed3fe7 100644
--- a/packages/documentation/.storybook/styles/preview.scss
+++ b/packages/documentation/.storybook/styles/preview.scss
@@ -5,8 +5,6 @@
#storybook-root,
#storybook-docs {
- overflow: hidden;
-
.sbdocs-content .container >,
.sbdocs-content .container > post-tabs > post-tab-panel >,
.sbdocs-content .container > migration-global-state {
diff --git a/packages/documentation/src/shared/tile/tile.component.scss b/packages/documentation/src/shared/tile/tile.component.scss
new file mode 100644
index 0000000000..4a3a1406f5
--- /dev/null
+++ b/packages/documentation/src/shared/tile/tile.component.scss
@@ -0,0 +1,100 @@
+@use 'sass:map';
+@use '@swisspost/design-system-styles/core.scss' as post;
+@use '@swisspost/design-system-styles/mixins/utilities';
+
+$tile-size: var(--post-docs-tile-size, 120px);
+$tile-rg-size: var(--post-docs-tile-rg-size, calc($tile-size / 1.2));
+
+:host{
+ .tile {
+ display: flex;
+ flex-direction: column;
+ width: $tile-size;
+ height: $tile-size;
+ background-color: post.$white;
+ border-radius: post.$size-regular;
+ box-shadow: 0 2px 5px 0 rgba(post.$aubergine-dark, 0.3);
+ text-decoration: none;
+ text-align: center;
+
+ @include utilities.high-contrast-mode() {
+ border: 2px solid transparent;
+ }
+
+ .tile--title {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ flex: 0 0 auto;
+ padding: 0 post.$size-micro;
+ height: calc(#{post.$size-mini * 2} + 2.2em);
+ background-color: post.$yellow;
+ border-top-left-radius: inherit;
+ border-top-right-radius: inherit;
+ font-size: max(12px, calc($tile-size * 0.1));
+ font-weight: post.$font-weight-bold;
+ color: post.$black;
+ z-index: 1;
+ line-height: 1.1;
+ box-shadow: 0 2px 0 1px rgba(post.$yellow, 0.5);
+
+ ~ .tile--icon {
+ img {
+ max-height: 50px;
+ }
+ }
+ }
+
+ .tile--icon {
+ flex: 0 1 100%;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ gap: post.$size-micro;
+ border-bottom-left-radius: inherit;
+ border-bottom-right-radius: inherit;
+
+ ::slotted(img) {
+ height: 0;
+ min-height: min(100%, calc($tile-size * 0.4));
+ }
+
+ ::slotted(span) {
+ font-size: 0.6875em;
+ color: post.$gray-600;
+ }
+ }
+
+ &[href] {
+ transition: transform 150ms ease-out;
+
+ &:hover {
+ transform: scale(1.1);
+ }
+ }
+
+ @include post.media-breakpoint-down(rg) {
+ width: $tile-rg-size;
+ height: $tile-rg-size;
+
+ .tile--title {
+ height: calc(#{post.$size-mini * 1.5} + 2.2em);
+
+ ~ .tile--icon {
+ ::slotted(img) {
+ min-height: calc($tile-size * 0.3);
+ }
+ }
+ }
+
+ .tile--icon {
+ ::slotted(img) {
+ min-height: calc($tile-size * 0.4);
+ }
+ }
+ }
+ }
+}
+
+
diff --git a/packages/documentation/src/shared/tile/tile.component.ts b/packages/documentation/src/shared/tile/tile.component.ts
new file mode 100644
index 0000000000..2e4527c5d9
--- /dev/null
+++ b/packages/documentation/src/shared/tile/tile.component.ts
@@ -0,0 +1,31 @@
+import { css, LitElement, nothing, unsafeCSS } from 'lit';
+import { html, unsafeStatic } from 'lit/static-html.js';
+import { customElement, property } from 'lit/decorators.js';
+import { spread } from '@open-wc/lit-helpers';
+import Styles from './tile.component.scss';
+
+@customElement('ti-le')
+export class TileComponent extends LitElement {
+ @property({ type: String }) title: string = '';
+ @property({ type: String }) ariaLabel: string | null = null;
+ @property({ type: String }) href: string | null = null;
+
+ static get styles() {
+ return css`
+ ${unsafeCSS(Styles)}
+ `;
+ }
+
+ render() {
+ const isLink = this.href !== null;
+ const tag = isLink ? 'a' : 'div';
+ const attributes = isLink ? { href: this.href, target: '_blank' } : {};
+
+ return html` <${unsafeStatic(tag)} class="tile" ${spread(attributes)} aria-label="${
+ this.ariaLabel ?? nothing
+ }">
+ ${this.title ? html`${this.title} ` : nothing}
+
+ ${unsafeStatic(tag)}>`;
+ }
+}
diff --git a/packages/documentation/src/stories/components/accordion/accordion.stories.ts b/packages/documentation/src/stories/components/accordion/accordion.stories.ts
index f5aa458f25..444e6bc287 100644
--- a/packages/documentation/src/stories/components/accordion/accordion.stories.ts
+++ b/packages/documentation/src/stories/components/accordion/accordion.stories.ts
@@ -1,8 +1,9 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '4d1b4185-e04d-494a-ab38-2b56c1778b0b',
title: 'Components/Accordion',
component: 'post-accordion',
diff --git a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
index 55e2370a25..4c07784faa 100644
--- a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
+++ b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
@@ -1,11 +1,12 @@
// @ts-ignore
import { useArgs } from '@storybook/preview-api';
-import { Args, Meta, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
+import { Args, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { getAlertClasses } from './getAlertClasses';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '105e67d8-31e9-4d0b-87ff-685aba31fd4c',
title: 'Components/Alert',
render: renderAlert,
diff --git a/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts b/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts
index 702baaed1e..926b011994 100644
--- a/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts
+++ b/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts
@@ -1,8 +1,9 @@
-import { Meta, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
+import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spreadArgs } from '../../../../utils';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '8fd36823-966e-46a8-8432-a4439f6e208f',
title: 'Components/Post Alert',
component: 'post-alert',
diff --git a/packages/documentation/src/stories/components/badge/badge.stories.ts b/packages/documentation/src/stories/components/badge/badge.stories.ts
index 2fefed13d3..90948a3578 100644
--- a/packages/documentation/src/stories/components/badge/badge.stories.ts
+++ b/packages/documentation/src/stories/components/badge/badge.stories.ts
@@ -1,9 +1,10 @@
import { useArgs } from '@storybook/preview-api';
-import type { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { mapClasses } from '../../../utils';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'bec68e8b-445e-4760-8bd7-1b9970206d8d',
title: 'Components/Badge',
render: renderBadge,
diff --git a/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts b/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts
index 2fc841ef28..1acb56d8e1 100644
--- a/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts
+++ b/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts
@@ -1,7 +1,8 @@
-import type { Args, Meta, StoryObj } from '@storybook/web-components';
+import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'a4c7d5fa-9f8d-4a95-820b-ae4ce9ab4f03',
title: 'Components/Blockquote',
render: renderBlockquote,
diff --git a/packages/documentation/src/stories/components/button-group/button-group.stories.ts b/packages/documentation/src/stories/components/button-group/button-group.stories.ts
index a3ff2813b0..62985de479 100644
--- a/packages/documentation/src/stories/components/button-group/button-group.stories.ts
+++ b/packages/documentation/src/stories/components/button-group/button-group.stories.ts
@@ -1,8 +1,9 @@
-import type { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { useArgs } from '@storybook/preview-api';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '021d61aa-e039-4858-b4b9-b86a3e772811',
title: 'Components/Button Group',
render: renderButtonGroup,
diff --git a/packages/documentation/src/stories/components/button/button.stories.ts b/packages/documentation/src/stories/components/button/button.stories.ts
index ae5aad0da8..e906408e84 100644
--- a/packages/documentation/src/stories/components/button/button.stories.ts
+++ b/packages/documentation/src/stories/components/button/button.stories.ts
@@ -1,9 +1,10 @@
-import type { Args, Meta, StoryObj } from '@storybook/web-components';
+import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
import { spread } from '@open-wc/lit-helpers';
import { repeat } from 'lit/directives/repeat.js';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'eb78afcb-ce92-4990-94b6-6536d5ec6af4',
title: 'Components/Button',
parameters: {
diff --git a/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts b/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
index fd198c13c9..e78152072c 100644
--- a/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
+++ b/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
@@ -1,9 +1,10 @@
-import { Meta, StoryObj, Args } from '@storybook/web-components';
+import { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { useArgs } from '@storybook/preview-api';
import scss from './card-button.module.scss';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
title: 'Components/Cards/Card Button',
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/cards/card/card.stories.ts b/packages/documentation/src/stories/components/cards/card/card.stories.ts
index 1e4abc3b7f..2eccdcc914 100644
--- a/packages/documentation/src/stories/components/cards/card/card.stories.ts
+++ b/packages/documentation/src/stories/components/cards/card/card.stories.ts
@@ -1,9 +1,10 @@
-import type { Args, Meta, StoryObj } from '@storybook/web-components';
+import type { Args, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { choose } from 'lit/directives/choose.js';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '605c788d-3f75-4e6c-8498-be3d546843c2',
title: 'Components/Cards/Card',
decorators: [clickBlocker, paddedContainer],
diff --git a/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts b/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts
index ddffbb7434..d2895ef418 100644
--- a/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts
+++ b/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts
@@ -1,8 +1,9 @@
-import type { Args, Meta, StoryObj } from '@storybook/web-components';
+import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
import { nothing } from 'lit';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'b4800d9e-4837-4476-a327-bb4586eb7e97',
title: 'Components/Cards/Product Card',
decorators: [paddedContainer, clickBlocker],
diff --git a/packages/documentation/src/stories/components/carousel/carousel.stories.ts b/packages/documentation/src/stories/components/carousel/carousel.stories.ts
index 23d1ae1d5a..683e6c8699 100644
--- a/packages/documentation/src/stories/components/carousel/carousel.stories.ts
+++ b/packages/documentation/src/stories/components/carousel/carousel.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'cb3ba4a2-1265-4a20-b184-b85443146efa',
title: 'Components/Carousel',
parameters: {
diff --git a/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts b/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts
index 9572c3507b..3cd7bf7a20 100644
--- a/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts
+++ b/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts
@@ -1,8 +1,9 @@
-import { Meta, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
+import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spreadArgs } from '../../../utils';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '6a91848c-16ec-4a23-bc45-51c797b5b2c3',
title: 'Components/Collapsible',
component: 'post-collapsible',
diff --git a/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts b/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts
index 2b2e0edf64..ef4bc1ad8d 100644
--- a/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts
+++ b/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts
@@ -1,7 +1,8 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '6561b345-9d64-4f95-8ea6-2389586410bd',
title: 'Components/Datepicker',
parameters: {
diff --git a/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts b/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts
index de74d63592..e156a1dedd 100644
--- a/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts
+++ b/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts
@@ -1,6 +1,6 @@
-import { Meta } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '63113d0a-6ceb-472c-ac6a-729404e862ca',
title: 'Components/Dropdown',
parameters: {
diff --git a/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts b/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts
index 576be69f21..830de74c1a 100644
--- a/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts
+++ b/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts
@@ -1,10 +1,11 @@
import { useArgs } from '@storybook/preview-api';
-import type { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { mapClasses } from '../../../../utils';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'e6ecc86f-d148-413b-b796-614a89da54be',
title: 'Components/Forms/Checkbox',
render: renderCheckbox,
diff --git a/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts b/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts
index f5bc3b6392..11f0f1dc55 100644
--- a/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts
+++ b/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts
@@ -1,11 +1,12 @@
-import type { Args, Meta } from '@storybook/web-components';
+import type { Args } from '@storybook/web-components';
import { html } from 'lit/static-html.js';
import { classMap } from 'lit/directives/class-map.js';
import { BADGE } from '../../../../../.storybook/constants';
import { nothing } from 'lit';
import { useArgs } from '@storybook/preview-api';
+import { MetaExtended } from '../../../../../types/storybook';
-export const choiceCardMeta: Meta = {
+export const choiceCardMeta: MetaExtended = {
parameters: {
badges: [BADGE.NEEDS_REVISION],
controls: {
diff --git a/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts b/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts
index d8cdab660f..aa283acc3d 100644
--- a/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts
+++ b/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'e5a39d4f-4448-4398-9380-7c9fcae4a514',
title: 'Components/Forms/Custom Select',
parameters: {
diff --git a/packages/documentation/src/stories/components/forms/input/input.stories.ts b/packages/documentation/src/stories/components/forms/input/input.stories.ts
index 316c1692ef..dede0e923c 100644
--- a/packages/documentation/src/stories/components/forms/input/input.stories.ts
+++ b/packages/documentation/src/stories/components/forms/input/input.stories.ts
@@ -1,5 +1,6 @@
-import { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing, TemplateResult } from 'lit';
+import { MetaExtended } from '../../../../../types/storybook';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -7,7 +8,7 @@ const VALIDATION_STATE_MAP: Record = {
'is-invalid': true,
};
-const meta: Meta = {
+const meta: MetaExtended = {
id: '2df77c32-5e33-402e-bd2e-54d54271ce19',
title: 'Components/Forms/Input',
render: render,
diff --git a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
index af498d306e..9076d24e99 100644
--- a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
+++ b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
@@ -1,6 +1,7 @@
-import { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { useArgs } from '@storybook/preview-api';
import { html, nothing, TemplateResult } from 'lit';
+import { MetaExtended } from '../../../../../types/storybook';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -8,7 +9,7 @@ const VALIDATION_STATE_MAP: Record = {
'is-invalid': true,
};
-const meta: Meta = {
+const meta: MetaExtended = {
id: '151242aa-a074-4a55-a81c-db597c83cdad',
title: 'Components/Forms/Radio Button',
parameters: {
diff --git a/packages/documentation/src/stories/components/forms/range/range.stories.ts b/packages/documentation/src/stories/components/forms/range/range.stories.ts
index 72b73139d0..e8b25507a7 100644
--- a/packages/documentation/src/stories/components/forms/range/range.stories.ts
+++ b/packages/documentation/src/stories/components/forms/range/range.stories.ts
@@ -1,6 +1,7 @@
-import { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { useArgs } from '@storybook/preview-api';
import { html, nothing, TemplateResult } from 'lit';
+import { MetaExtended } from '../../../../../types/storybook';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -10,7 +11,7 @@ const VALIDATION_STATE_MAP: Record = {
const ARROW_KEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];
-const meta: Meta = {
+const meta: MetaExtended = {
id: '4c5a4537-d663-4d2b-9c49-17af95443696',
title: 'Components/Forms/Range',
render: render,
diff --git a/packages/documentation/src/stories/components/forms/select/select.stories.ts b/packages/documentation/src/stories/components/forms/select/select.stories.ts
index 5b159c06bd..df7cc82254 100644
--- a/packages/documentation/src/stories/components/forms/select/select.stories.ts
+++ b/packages/documentation/src/stories/components/forms/select/select.stories.ts
@@ -1,7 +1,8 @@
-import type { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { useArgs } from '@storybook/preview-api';
import { ifDefined } from 'lit/directives/if-defined.js';
+import { MetaExtended } from '../../../../../types/storybook';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -9,7 +10,7 @@ const VALIDATION_STATE_MAP: Record = {
'is-invalid': true,
};
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'bc251cd0-5173-463b-8729-586bb1bf1e1a',
title: 'Components/Forms/Select',
parameters: {
diff --git a/packages/documentation/src/stories/components/forms/switch/switch.stories.ts b/packages/documentation/src/stories/components/forms/switch/switch.stories.ts
index da2828c214..ce23c9ad70 100644
--- a/packages/documentation/src/stories/components/forms/switch/switch.stories.ts
+++ b/packages/documentation/src/stories/components/forms/switch/switch.stories.ts
@@ -1,10 +1,11 @@
import { useArgs } from '@storybook/preview-api';
-import type { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { mapClasses } from '../../../../utils';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '7fb639f8-86f6-4937-999c-4ee15f81643b',
title: 'Components/Forms/Switch',
render: renderSwitch,
diff --git a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
index 43069b017c..cee2c86375 100644
--- a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
+++ b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
@@ -1,6 +1,7 @@
-import type { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { mapClasses } from '../../../../utils';
+import { MetaExtended } from '../../../../../types/storybook';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -8,7 +9,7 @@ const VALIDATION_STATE_MAP: Record = {
'is-invalid': true,
};
-const meta: Meta = {
+const meta: MetaExtended = {
id: '152b7268-cce0-43d7-b931-41a57370f9a0',
title: 'Components/Forms/Textarea',
render: renderTextarea,
diff --git a/packages/documentation/src/stories/components/heading/heading.stories.ts b/packages/documentation/src/stories/components/heading/heading.stories.ts
index fdcd005a1d..66b240fed7 100644
--- a/packages/documentation/src/stories/components/heading/heading.stories.ts
+++ b/packages/documentation/src/stories/components/heading/heading.stories.ts
@@ -1,7 +1,8 @@
-import type { Args, Meta, StoryObj } from '@storybook/web-components';
+import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '7ecd87f1-de96-4e39-a057-ba1798eb6959',
title: 'Components/Heading',
parameters: {
diff --git a/packages/documentation/src/stories/components/icons/icon.stories.ts b/packages/documentation/src/stories/components/icons/icon.stories.ts
index b4a22858c1..1335c3cf98 100644
--- a/packages/documentation/src/stories/components/icons/icon.stories.ts
+++ b/packages/documentation/src/stories/components/icons/icon.stories.ts
@@ -1,11 +1,12 @@
import { spread } from '@open-wc/lit-helpers';
-import { Args, Meta, StoryObj } from '@storybook/web-components';
+import { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { spreadArgs } from '../../../utils';
import { Components } from '@swisspost/design-system-components/src';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '0dcfe3c0-bfc0-4107-b43b-7e9d825b805f',
title: 'Components/Icon',
component: 'post-icon',
diff --git a/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
index 8e79d03d10..26c4568823 100644
--- a/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
@@ -1,10 +1,11 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spread } from '@open-wc/lit-helpers';
import { getAttributes } from '../../../../utils';
import customItems from './overrides/custom-items';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '4347e5bf-8bf2-4f44-9075-9faaa53591ed',
title: 'Components/Internet Header/Breadcrumbs',
component: 'swisspost-internet-breadcrumbs',
diff --git a/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts b/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
index 4000c4dcd3..33ff443d62 100644
--- a/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
@@ -1,9 +1,10 @@
-import { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import customFooterConfig from './custom-config/custom-footer-config';
import { spread } from '@open-wc/lit-helpers';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '27fc009d-3eec-43a9-b3a2-55531e721817',
title: 'Components/Internet Header/Footer',
component: 'swisspost-internet-footer',
diff --git a/packages/documentation/src/stories/components/internet-header/header/header.stories.ts b/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
index d0259e1ef8..40af20ad80 100644
--- a/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
@@ -1,11 +1,12 @@
-import { Args, Meta, StoryObj } from '@storybook/web-components';
+import { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spreadArgs } from '../../../../utils';
import customConfig from './config/custom-config';
import osFlyoutOverrides from './config/os-flyout-overrides';
import languageSwitchOverrides from './config/language-switch-overrides';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'ebb11274-091b-4cb7-9a3f-3e0451c9a865',
title: 'Components/Internet Header/Header',
component: 'swisspost-internet-header',
diff --git a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts
index f5c8388cfb..a5c5c960d2 100644
--- a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts
+++ b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts
@@ -1,6 +1,6 @@
-import { Meta } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'd59a459b-6f14-47c6-9f98-a36a3f79a6e3',
title: 'Components/Intranet Header',
parameters: {
diff --git a/packages/documentation/src/stories/components/modal/modal.stories.ts b/packages/documentation/src/stories/components/modal/modal.stories.ts
index 12c91794ee..81bf50687e 100644
--- a/packages/documentation/src/stories/components/modal/modal.stories.ts
+++ b/packages/documentation/src/stories/components/modal/modal.stories.ts
@@ -1,7 +1,8 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '9a512414-84c5-473c-a7c8-a434eda9578d',
title: 'Components/Modal',
parameters: {
diff --git a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
index 20a035afca..da3435df69 100644
--- a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
+++ b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
@@ -1,6 +1,7 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'aab3f0df-08ca-4e33-90eb-77ffda6528db',
title: 'Components/Notification Overlay',
parameters: {
diff --git a/packages/documentation/src/stories/components/pagination/pagination.stories.ts b/packages/documentation/src/stories/components/pagination/pagination.stories.ts
index d24b55f6ae..82306c2f64 100644
--- a/packages/documentation/src/stories/components/pagination/pagination.stories.ts
+++ b/packages/documentation/src/stories/components/pagination/pagination.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'caa89695-5c39-4cb5-8e62-579d918cbd2f',
title: 'Components/Pagination',
parameters: {
diff --git a/packages/documentation/src/stories/components/popover/popover.stories.ts b/packages/documentation/src/stories/components/popover/popover.stories.ts
index 4448852455..dc9e163bb7 100644
--- a/packages/documentation/src/stories/components/popover/popover.stories.ts
+++ b/packages/documentation/src/stories/components/popover/popover.stories.ts
@@ -1,8 +1,9 @@
-import { Args, Meta, StoryObj } from '@storybook/web-components';
+import { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '9a636763-de2d-4f72-bc81-98daf10871f7',
title: 'Components/Popover',
component: 'post-popover',
diff --git a/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts b/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts
index 0f9c1c3c7d..36a3f07c3c 100644
--- a/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts
+++ b/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '446648d9-0360-4dec-a6f4-87f2f28b5f33',
title: 'Components/Progressbar',
parameters: {
diff --git a/packages/documentation/src/stories/components/rating/post-rating.stories.ts b/packages/documentation/src/stories/components/rating/post-rating.stories.ts
index afd7ddfda5..d3be7a027a 100644
--- a/packages/documentation/src/stories/components/rating/post-rating.stories.ts
+++ b/packages/documentation/src/stories/components/rating/post-rating.stories.ts
@@ -1,7 +1,8 @@
-import { Args, Meta, StoryObj } from '@storybook/web-components';
+import { Args, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '956e063b-b40c-4fe4-bc27-53b8c4ab1e81',
title: 'Components/Rating',
component: 'post-rating',
diff --git a/packages/documentation/src/stories/components/spinner/spinner.stories.ts b/packages/documentation/src/stories/components/spinner/spinner.stories.ts
index 3dcc065ed1..cd8b02c681 100644
--- a/packages/documentation/src/stories/components/spinner/spinner.stories.ts
+++ b/packages/documentation/src/stories/components/spinner/spinner.stories.ts
@@ -1,7 +1,8 @@
-import type { Args, Meta, StoryObj } from '@storybook/web-components';
+import type { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit/static-html.js';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'd0e645d0-3bf2-4b00-967a-5a1343107f60',
title: 'Components/Spinner',
render,
diff --git a/packages/documentation/src/stories/components/stepper/stepper.stories.ts b/packages/documentation/src/stories/components/stepper/stepper.stories.ts
index 1190717d9a..c0e62078d1 100644
--- a/packages/documentation/src/stories/components/stepper/stepper.stories.ts
+++ b/packages/documentation/src/stories/components/stepper/stepper.stories.ts
@@ -1,7 +1,8 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '7dc546d9-e248-4d06-befe-3ad62fcd310f',
title: 'Components/Stepper',
parameters: {
diff --git a/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts b/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts
index 3bf641513e..68e3479825 100644
--- a/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts
+++ b/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts
@@ -1,10 +1,11 @@
-import { Meta, StoryObj, Args, StoryContext } from '@storybook/web-components';
+import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import scss from './background.module.scss';
+import { MetaExtended } from '../../../../types/storybook';
const backgroundColors = scss.bgClasses.split('"').filter((_, index) => index % 2 === 1);
-const meta: Meta = {
+const meta: MetaExtended = {
title: 'Components/Subnavigation',
decorators: [clickBlocker],
render: renderTest,
diff --git a/packages/documentation/src/stories/components/table/table.stories.ts b/packages/documentation/src/stories/components/table/table.stories.ts
index 8574b1a17d..831e05c470 100644
--- a/packages/documentation/src/stories/components/table/table.stories.ts
+++ b/packages/documentation/src/stories/components/table/table.stories.ts
@@ -1,8 +1,9 @@
-import type { Args, Meta, StoryObj } from '@storybook/web-components';
+import type { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { mapClasses } from '../../../utils';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '81799516-470c-446b-a049-54946b6ccfca',
title: 'Components/Table',
render: renderTable,
diff --git a/packages/documentation/src/stories/components/tabs/tabs.stories.ts b/packages/documentation/src/stories/components/tabs/tabs.stories.ts
index cca94467db..77914c291d 100644
--- a/packages/documentation/src/stories/components/tabs/tabs.stories.ts
+++ b/packages/documentation/src/stories/components/tabs/tabs.stories.ts
@@ -1,8 +1,9 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'bb1291ca-4dbb-450c-a15f-596836d9f39e',
title: 'Components/Tabs',
component: 'post-tabs',
diff --git a/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts b/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts
index 9d4cda5241..e466aac893 100644
--- a/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts
+++ b/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'a4d9f996-6e77-4fad-bb19-40fad1bb7a1d',
title: 'Components/Timepicker',
parameters: {
diff --git a/packages/documentation/src/stories/components/toast/toast.stories.ts b/packages/documentation/src/stories/components/toast/toast.stories.ts
index d5ff146d30..f6cca55db1 100644
--- a/packages/documentation/src/stories/components/toast/toast.stories.ts
+++ b/packages/documentation/src/stories/components/toast/toast.stories.ts
@@ -1,8 +1,9 @@
import { useArgs } from '@storybook/preview-api';
-import { Args, Meta, StoryContext, StoryObj } from '@storybook/web-components';
+import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '825b65c9-7eaf-4e0a-9e20-5f5ed406726d',
title: 'Components/Toast',
parameters: {
diff --git a/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts b/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts
index 9cd35c3ed0..0363ff2214 100644
--- a/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts
+++ b/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts
@@ -1,10 +1,11 @@
-import { Args, Meta, StoryObj } from '@storybook/web-components';
+import { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { useArgs } from '@storybook/preview-api';
import { ifDefined } from 'lit/directives/if-defined.js';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'cd684d90-e7a7-41a9-8923-b1b72ad9b384',
title: 'Components/Tooltip',
component: 'post-tooltip',
diff --git a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts
index 4232c6f62c..e2eb676d37 100644
--- a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts
+++ b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts
@@ -1,8 +1,9 @@
-import type { Args, Meta, StoryObj } from '@storybook/web-components';
+import type { Args, StoryObj } from '@storybook/web-components';
import { html, TemplateResult } from 'lit';
import { mapClasses } from '../../../utils';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '2ffc7a53-c1aa-4ff5-b1e4-fa638591399c',
title: 'Components/Topic Teaser',
parameters: {
diff --git a/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts b/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts
index ebf1181ad1..e5fb78e625 100644
--- a/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts
+++ b/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '0456901c-3713-4f1f-b592-1f4dbd65a500',
title: 'Components/Typeahead',
parameters: {
diff --git a/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts b/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts
index 36b5dbc7fd..612f14171c 100644
--- a/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts
+++ b/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '46da78e8-e83b-4ca1-aaf6-bbc662efef14',
title: 'Foundations/Accessibility',
parameters: {
diff --git a/packages/documentation/src/stories/foundation/color/color.stories.ts b/packages/documentation/src/stories/foundation/color/color.stories.ts
index d53e03fcdf..be3e84fb18 100644
--- a/packages/documentation/src/stories/foundation/color/color.stories.ts
+++ b/packages/documentation/src/stories/foundation/color/color.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'e869afc1-3c50-4c20-a495-3d846f7a759e',
title: 'Foundations/Color',
parameters: {
diff --git a/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts b/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts
index e9f9896132..b9e29cc2f9 100644
--- a/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts
+++ b/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts
@@ -1,7 +1,8 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'cfdf83ff-efa7-4b3c-ac91-6898c4f88701',
title: 'Foundations/Elevation',
parameters: {
diff --git a/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts b/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
index 0fe0cb38d9..5636769a8f 100644
--- a/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '5704bdc4-c5b5-45e6-b123-c54d01fce2f1',
title: 'Foundations/Search for Icons',
};
diff --git a/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts b/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts
index 7402ff24b0..606ed93172 100644
--- a/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts
+++ b/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '20af6e2b-32b1-42ef-a187-b026aea7fe13',
title: 'Foundations/Layout/Breakpoints',
parameters: {
diff --git a/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts b/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts
index 860f83b3b5..d25e5ba625 100644
--- a/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts
+++ b/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts
@@ -1,7 +1,8 @@
-import type { Args, Meta, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
+import type { Args, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'cd70f48f-6308-4ec8-a8c6-982bd72c855c',
title: 'Foundations/Layout/Columns',
parameters: {
diff --git a/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts b/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts
index eb75d9a235..5f46c03e10 100644
--- a/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts
+++ b/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts
@@ -1,6 +1,7 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'a4ca9660-bb4a-4cc7-adfd-84767382ac03',
title: 'Foundations/Layout/Containers',
parameters: {
diff --git a/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts b/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts
index 4f6d43fcc6..3605b75584 100644
--- a/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts
+++ b/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts
@@ -1,7 +1,8 @@
-import { Meta, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
+import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '7240f2ef-216a-490e-9bd8-c0cef19f7b31',
title: 'Foundations/Layout/Grid',
parameters: {
diff --git a/packages/documentation/src/stories/foundation/typography/typography.stories.ts b/packages/documentation/src/stories/foundation/typography/typography.stories.ts
index c397858351..169525b605 100644
--- a/packages/documentation/src/stories/foundation/typography/typography.stories.ts
+++ b/packages/documentation/src/stories/foundation/typography/typography.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '677cfabf-dbf0-4de2-ad07-6d5bfb9e2375',
title: 'Foundations/Typography',
parameters: {
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.stories.ts b/packages/documentation/src/stories/getting-started/angular/angular.stories.ts
index e4aeb4ce83..7e05247236 100644
--- a/packages/documentation/src/stories/getting-started/angular/angular.stories.ts
+++ b/packages/documentation/src/stories/getting-started/angular/angular.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '8426deb2-3d6d-4fcc-90e6-1ca9737b2ed0',
title: 'Getting Started/Angular',
parameters: {
diff --git a/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts b/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
index 1ef5f2e963..dff55a6840 100644
--- a/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
+++ b/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '829f6c45-5734-4d55-b290-2c8a86a07b67',
title: 'Getting Started/Compatibility',
parameters: {
diff --git a/packages/documentation/src/stories/getting-started/introduction.docs.mdx b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
index 2883645d0c..f7a099dd0e 100644
--- a/packages/documentation/src/stories/getting-started/introduction.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
@@ -1,5 +1,7 @@
-import { Meta, Source } from '@storybook/blocks';
+import { Meta } from '@storybook/blocks';
import * as IntroductionStories from './introduction.stories';
+import { packages } from '../home.data';
+import '../../shared/tile/tile.component';
@@ -11,21 +13,19 @@ Welcome to the Swiss post design system world!
The design-system is formed with several packages and different compatibilities with your favorite framework.
-
-
-
-
+
+
Compatibilities between components and frameworks and which package is needed
+
-
-
-
+
+
+
+ Base + …
Component
JavaScript
Angular
@@ -34,12 +34,24 @@ The design-system is formed with several packages and different compatibilities
- Internet-header
-
- 📦 Internet-header
+
+ {[packages.find(pkg => pkg.name === 'Styles')].map((p => (
+
+
+ {p.version}
+
+ )))}
-
- 📦 Internet-header with CUSTOM_ELEMENTS_SCHEMA
+ Internet-header
+
+
+ {[packages.find(pkg => pkg.name === 'Internet-Header')].map((p => (
+
+
+ {p.version}
+
+ )))}
+
TBD
@@ -47,7 +59,12 @@ The design-system is formed with several packages and different compatibilities
Intranet-header
N/A
- 📦 Intranet-header
+ {[packages.find(pkg => pkg.name === 'Intranet-Header')].map((p => (
+
+
+ {p.version}
+
+ )))}
N/A
@@ -65,10 +82,20 @@ The design-system is formed with several packages and different compatibilities
- 📦 Components
+ {[packages.find(pkg => pkg.name === 'Components')].map((p => (
+
+
+ {p.version}
+
+ )))}
-
- 📦 Components-Angular
+
+ {[packages.find(pkg => pkg.name === 'Components Angular')].map((p => (
+
+
+ {p.version}
+
+ )))}
TBD
@@ -124,7 +151,7 @@ The design-system is formed with several packages and different compatibilities
- No other package is required
+ No additional package is required
diff --git a/packages/documentation/src/stories/getting-started/introduction.stories.ts b/packages/documentation/src/stories/getting-started/introduction.stories.ts
index 8c7e0b69df..7a4ebebc21 100644
--- a/packages/documentation/src/stories/getting-started/introduction.stories.ts
+++ b/packages/documentation/src/stories/getting-started/introduction.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'dfc70c3b-4726-406b-8a41-af5738c89d05',
title: 'Getting Started/Introduction',
parameters: {
diff --git a/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts b/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
index f2f08500c5..364a6d0edd 100644
--- a/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '833ef689-a573-40f5-a6a6-30a999b94733',
title: 'Getting Started/Packages/Components-Angular',
parameters: {
diff --git a/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts b/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
index 9c0539dbf6..54e3b6109c 100644
--- a/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'edfb619b-fda1-4570-bf25-20830303d483',
title: 'Getting Started/Packages/Components',
parameters: {
diff --git a/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
index 76aee24755..573be18829 100644
--- a/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '40ed323b-9c1a-42ab-91ed-15f97f214608',
title: 'Getting Started/Packages/Icons',
parameters: {
diff --git a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
index 1d92b995b6..0ef2027569 100644
--- a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'cfa21cbc-5f8d-4a42-8165-7f6ed20bf133',
title: 'Getting Started/Packages/Internet-header',
parameters: {
diff --git a/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
index 200487c71a..d234b31ea7 100644
--- a/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '7068be42-1a20-4a34-9e79-7fb7f9f2940f',
title: 'Getting Started/Packages/Intranet-header',
parameters: {
diff --git a/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts b/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
index 1e43e5924c..50dce456f8 100644
--- a/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'e53e2de8-0bbf-4f70-babc-074c5466f700',
title: 'Getting Started/Packages/Styles',
parameters: {
diff --git a/packages/documentation/src/stories/home.blocks.tsx b/packages/documentation/src/stories/home.blocks.tsx
index d491dfebe4..ef85ed4b0b 100644
--- a/packages/documentation/src/stories/home.blocks.tsx
+++ b/packages/documentation/src/stories/home.blocks.tsx
@@ -1,30 +1,11 @@
import React from 'react';
-interface ITileProps {
- title?: string;
- href?: string;
- children: React.ReactNode;
-}
-
interface IFeatureProps {
icon: string;
title: string;
children: React.ReactNode;
}
-export function Tile(props: ITileProps) {
- const isLink = props.href !== undefined;
- const Tag = isLink ? 'a' : 'div';
- const attributes = isLink ? { href: props.href, target: '_blank', rel: 'noopener' } : null;
-
- return (
-
- {props.title ? {props.title} : null}
- {props.children}
-
- );
-}
-
export function Feature(props: IFeatureProps) {
return (
diff --git a/packages/documentation/src/stories/home.data.ts b/packages/documentation/src/stories/home.data.ts
index 0f2415e5bd..f88c4e4661 100644
--- a/packages/documentation/src/stories/home.data.ts
+++ b/packages/documentation/src/stories/home.data.ts
@@ -1,8 +1,20 @@
import { DEPENDENCIES, getVersion } from '../utils/version';
+import metaStyles from './getting-started/packages/styles/styles.stories';
+import metaComponents from './getting-started/packages/components/components.stories';
+import metaComponentsAngular from './getting-started/packages/components-angular/angular.stories';
+import metaInternetHeader from './getting-started/packages/internet-header/internet-header.stories';
+import metaIntranetHeader from './getting-started/packages/intranet-header/intranet-header.stories';
+import metaIcons from './getting-started/packages/icons/package-icons.stories';
interface IPackage {
name: string;
- href: string;
+ docsStoryId: string;
+ link: {
+ [key: string]: {
+ href: string;
+ ariaLabel: string;
+ };
+ };
img: {
src: string;
alt: string;
@@ -22,55 +34,91 @@ interface ITechnology {
export const packages: IPackage[] = [
{
name: 'Styles',
- href: 'https://github.com/swisspost/design-system/tree/main/packages/styles',
+ docsStoryId: metaStyles.id,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/styles',
+ ariaLabel: 'Source of Styles package',
+ },
+ },
img: {
src: '/assets/images/packages/styles.svg',
- alt: 'design-system-styles package logo',
+ alt: '',
},
version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-styles'])}`,
},
{
name: 'Components',
- href: 'https://github.com/swisspost/design-system/tree/main/packages/components',
+ docsStoryId: metaComponents.id,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/components',
+ ariaLabel: 'Source of Components package',
+ },
+ },
img: {
src: '/assets/images/packages/components.svg',
- alt: 'design-system-components package Logo',
+ alt: '',
},
version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-components'])}`,
},
{
name: 'Components Angular',
- href: 'https://github.com/swisspost/design-system/tree/main/packages/components-angular',
+ docsStoryId: metaComponentsAngular.id,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/components-angular',
+ ariaLabel: 'Source of Components for Angular package',
+ },
+ },
img: {
src: '/assets/images/packages/components-angular.svg',
- alt: 'design-system-components-angular package Logo',
+ alt: '',
},
version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-components-angular'])}`,
},
{
name: 'Internet-Header',
- href: 'https://github.com/swisspost/design-system/tree/main/packages/internet-header',
+ docsStoryId: metaInternetHeader.id,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/internet-header',
+ ariaLabel: 'Source of Internet-Header package',
+ },
+ },
img: {
src: '/assets/images/packages/internet-header.svg',
- alt: 'internet-header package Logo',
+ alt: '',
},
version: `v${getVersion(DEPENDENCIES['@swisspost/internet-header'])}`,
},
{
name: 'Intranet-Header',
- href: 'https://github.com/swisspost/design-system/tree/main/packages/intranet-header-workspace/projects/intranet-header',
+ docsStoryId: metaIntranetHeader.id,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/intranet-header-workspace/projects/intranet-header',
+ ariaLabel: 'Source of Intranet-Header package',
+ },
+ },
img: {
src: '/assets/images/packages/intranet-header.svg',
- alt: 'design-system-intranet-header package Logo',
+ alt: '',
},
version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-intranet-header'])}`,
},
{
name: 'Icons',
- href: 'https://github.com/swisspost/design-system/tree/main/packages/icons',
+ docsStoryId: metaIcons.id,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/icons',
+ ariaLabel: 'Source of Icons package',
+ },
+ },
img: {
src: '/assets/images/packages/icons.svg',
- alt: 'design-system-icons package Logo',
+ alt: '',
},
version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-icons'])}`,
},
diff --git a/packages/documentation/src/stories/home.docs.mdx b/packages/documentation/src/stories/home.docs.mdx
index 005b0a9825..17614cc7a5 100644
--- a/packages/documentation/src/stories/home.docs.mdx
+++ b/packages/documentation/src/stories/home.docs.mdx
@@ -1,8 +1,9 @@
import { Meta } from '@storybook/blocks';
import * as HomeStories from './home.stories';
-import { Feature, Tile } from './home.blocks';
+import { Feature } from './home.blocks';
import { packages, technologies } from './home.data';
import './home.styles.scss';
+import '../shared/tile/tile.component';
@@ -10,10 +11,10 @@ import './home.styles.scss';
Packages & Resources
{packages.map(p => (
-
+
{p.version}
-
+
))}
@@ -99,10 +100,10 @@ import './home.styles.scss';
{technologies.map(t => (
-
+
{t.name}
-
+
))}
diff --git a/packages/documentation/src/stories/home.stories.ts b/packages/documentation/src/stories/home.stories.ts
index 708e2b63f8..93edbef719 100644
--- a/packages/documentation/src/stories/home.stories.ts
+++ b/packages/documentation/src/stories/home.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'Home',
title: 'Home',
parameters: {
diff --git a/packages/documentation/src/stories/home.styles.scss b/packages/documentation/src/stories/home.styles.scss
index c253526a9e..c63f55e9b8 100644
--- a/packages/documentation/src/stories/home.styles.scss
+++ b/packages/documentation/src/stories/home.styles.scss
@@ -25,9 +25,6 @@
}
}
-$tile-size: 120px;
-$tile-rg-size: 100px;
-
.tile-wrapper {
display: flex;
flex-wrap: wrap;
@@ -39,93 +36,6 @@ $tile-rg-size: 100px;
}
}
-.tile {
- display: flex;
- flex-direction: column;
- width: $tile-size;
- height: $tile-size;
- background-color: post.$white;
- border-radius: post.$size-regular;
- box-shadow: 0 2px 5px 0 rgba(post.$aubergine-dark, 0.3);
- text-decoration: none;
-
- @include utilities.high-contrast-mode() {
- border: 2px solid transparent;
- }
-
- .tile--title {
- display: flex;
- justify-content: center;
- align-items: center;
- flex: 0 0 auto;
- padding: 0 post.$size-micro;
- height: calc(#{post.$size-mini * 2} + 2.2em);
- background-color: post.$yellow;
- border-top-left-radius: inherit;
- border-top-right-radius: inherit;
- font-size: $tile-size * 0.1;
- font-weight: post.$font-weight-bold;
- line-height: 1.1;
- box-shadow: 0 2px 0 1px rgba(post.$yellow, 0.5);
-
- ~ .tile--icon {
- img {
- max-height: 50px;
- }
- }
- }
-
- .tile--icon {
- flex: 0 1 100%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- gap: post.$size-micro;
- border-bottom-left-radius: inherit;
- border-bottom-right-radius: inherit;
-
- img {
- max-height: 50px;
- }
-
- span {
- font-size: 0.6875em;
- color: post.$gray-600;
- }
- }
-
- &[href] {
- transition: transform 150ms ease-out;
-
- &:hover {
- transform: scale(1.1);
- }
- }
-
- @include post.media-breakpoint-down(rg) {
- width: $tile-rg-size;
- height: $tile-rg-size;
-
- .tile--title {
- height: calc(#{post.$size-mini * 1.5} + 2.2em);
- font-size: $tile-rg-size * 0.1;
-
- ~ .tile--icon {
- img {
- max-height: $tile-rg-size * 0.4;
- }
- }
- }
-
- .tile--icon {
- img {
- max-height: $tile-rg-size * 0.5;
- }
- }
- }
-}
-
.feature {
padding: post.$size-regular;
diff --git a/packages/documentation/src/stories/misc/changelog/changelog.stories.ts b/packages/documentation/src/stories/misc/changelog/changelog.stories.ts
index b714365247..6802175bb4 100644
--- a/packages/documentation/src/stories/misc/changelog/changelog.stories.ts
+++ b/packages/documentation/src/stories/misc/changelog/changelog.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'a060be2f-7af4-46ba-b3a1-a14be624b3ee',
title: 'Misc/Changelog',
};
diff --git a/packages/documentation/src/stories/misc/migration-guide/migration-guide.stories.ts b/packages/documentation/src/stories/misc/migration-guide/migration-guide.stories.ts
index 14857d9ed1..79ab2aac85 100644
--- a/packages/documentation/src/stories/misc/migration-guide/migration-guide.stories.ts
+++ b/packages/documentation/src/stories/misc/migration-guide/migration-guide.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'c23b1d0b-76b3-4e38-aa76-b10c29bb873f',
title: 'Misc/Migration Guide',
parameters: {
diff --git a/packages/documentation/src/stories/misc/versions/versions.stories.ts b/packages/documentation/src/stories/misc/versions/versions.stories.ts
index 7fa6328850..709cd1251f 100644
--- a/packages/documentation/src/stories/misc/versions/versions.stories.ts
+++ b/packages/documentation/src/stories/misc/versions/versions.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '873b1271-a700-4b28-aefe-28bcc14fd85a',
title: 'Misc/Versions',
parameters: {
diff --git a/packages/documentation/src/stories/patterns/forms/forms.stories.ts b/packages/documentation/src/stories/patterns/forms/forms.stories.ts
index 721a35f4a3..e33350f305 100644
--- a/packages/documentation/src/stories/patterns/forms/forms.stories.ts
+++ b/packages/documentation/src/stories/patterns/forms/forms.stories.ts
@@ -1,7 +1,8 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'd83829b2-7de2-48d2-be64-07a80c9caef3',
title: 'Patterns/Forms',
parameters: {
diff --git a/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts b/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts
index 4764602e7c..3f52ad7d5e 100644
--- a/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts
+++ b/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts
@@ -1,6 +1,7 @@
-import { Meta, StoryObj } from '@storybook/web-components';
+import { StoryObj } from '@storybook/web-components';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'a9543ea3-044d-4e86-bbb9-985c3f74f270',
title: 'Patterns/Metadata',
};
diff --git a/packages/documentation/src/stories/utilities/background/background.stories.ts b/packages/documentation/src/stories/utilities/background/background.stories.ts
index 4851b8a013..75107e9287 100644
--- a/packages/documentation/src/stories/utilities/background/background.stories.ts
+++ b/packages/documentation/src/stories/utilities/background/background.stories.ts
@@ -1,7 +1,8 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: '60852fac-a861-4415-8276-bd38d68653bb',
title: 'Utilities/Background',
parameters: {
diff --git a/packages/documentation/src/stories/utilities/list/list.stories.ts b/packages/documentation/src/stories/utilities/list/list.stories.ts
index a7b71289f9..4c8dd830b6 100644
--- a/packages/documentation/src/stories/utilities/list/list.stories.ts
+++ b/packages/documentation/src/stories/utilities/list/list.stories.ts
@@ -1,7 +1,8 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'e76192bb-b2eb-487a-b9c1-ef938bccdfc4',
title: 'Utilities/List',
parameters: {
diff --git a/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts b/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts
index a53fa20ccc..0e2025062f 100644
--- a/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts
+++ b/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts
@@ -1,7 +1,8 @@
-import type { Args, Meta, StoryObj } from '@storybook/web-components';
+import type { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import './sizing.styles.scss';
import scss from './sizing.module.scss';
+import { MetaExtended } from '../../../../types/storybook';
export const SCSS_VARIABLES = scss;
@@ -9,7 +10,7 @@ const sizingOptions = ['auto', ...Object.keys(SCSS_VARIABLES)];
const sizeOptionsPercent = ['auto', '25', '50', '75', '100'];
-const meta: Meta = {
+const meta: MetaExtended = {
render: renderSizing,
id: 'e728de1f-0d71-4317-8bb8-cbef0bf8d5db',
title: 'Utilities/Sizing',
diff --git a/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts b/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts
index cd9834c1d2..75ad495d02 100644
--- a/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts
+++ b/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts
@@ -1,8 +1,9 @@
-import type { Args, Meta, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
+import type { Args, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html } from 'lit/static-html.js';
import './spacing.styles.scss';
import { parse } from '../../../utils/sass-export';
import scss from './spacing.module.scss';
+import { MetaExtended } from '../../../../types/storybook';
export const SCSS_VARIABLES = parse(scss);
@@ -18,7 +19,7 @@ const positionOptions = {
s: 'To the left',
};
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'facaacfd-18f1-49b4-80f1-a96680730fa0',
title: 'Utilities/Spacing',
parameters: {
diff --git a/packages/documentation/src/stories/utilities/text/text.stories.ts b/packages/documentation/src/stories/utilities/text/text.stories.ts
index cc51930940..613266d9c7 100644
--- a/packages/documentation/src/stories/utilities/text/text.stories.ts
+++ b/packages/documentation/src/stories/utilities/text/text.stories.ts
@@ -1,7 +1,8 @@
-import type { Meta, StoryObj } from '@storybook/web-components';
+import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
+import { MetaExtended } from '../../../../types/storybook';
-const meta: Meta = {
+const meta: MetaExtended = {
id: 'c55681df-4d21-469d-a5b3-c67686e7c104',
title: 'Utilities/Text',
parameters: {
diff --git a/packages/documentation/types/storybook.ts b/packages/documentation/types/storybook.ts
new file mode 100644
index 0000000000..7cf98b5f21
--- /dev/null
+++ b/packages/documentation/types/storybook.ts
@@ -0,0 +1,6 @@
+import { Args, Meta } from '@storybook/web-components';
+
+export interface MetaExtended
extends Meta {
+ id: string; // Make id required
+ title: string; // Make title required
+}
From 1ff9a1150929666efddb10c74b0266640994a73f Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Mon, 4 Mar 2024 11:37:57 +0100
Subject: [PATCH 26/36] Fix overflow, some renaming and use tile in Angular
---
.../getting-started/angular/angular.docs.mdx | 15 +-
.../angular/angular.styles.scss | 13 ++
.../getting-started/introduction.docs.mdx | 14 +-
...r.docs.mdx => components-angular.docs.mdx} | 2 +-
...ories.ts => components-angular.stories.ts} | 0
.../getting-started/packages/packages.data.ts | 159 ++++++++++++++++++
.../documentation/src/stories/home.data.ts | 117 +------------
.../documentation/src/stories/home.docs.mdx | 17 +-
.../src/stories/home.styles.scss | 6 +
9 files changed, 210 insertions(+), 133 deletions(-)
create mode 100644 packages/documentation/src/stories/getting-started/angular/angular.styles.scss
rename packages/documentation/src/stories/getting-started/packages/components-angular/{angular.docs.mdx => components-angular.docs.mdx} (92%)
rename packages/documentation/src/stories/getting-started/packages/components-angular/{angular.stories.ts => components-angular.stories.ts} (100%)
create mode 100644 packages/documentation/src/stories/getting-started/packages/packages.data.ts
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
index eb890240d6..a1938499f8 100644
--- a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
@@ -2,6 +2,9 @@ import { Meta, Source } from '@storybook/blocks';
import * as AngularStories from './angular.stories';
import SampleIconsConfig from './sample-icons-config.sample.json?raw';
import SampleWcAngularManually from './sample-web-components-angular-manually.component.ts?raw';
+import { packages, PackageType } from '../packages/packages.data';
+import '../../../shared/tile/tile.component';
+import './angular.styles.scss';
@@ -14,8 +17,16 @@ The Swiss Post Design System is compatible with Angular. Here are some tips, bes
In the design-system team, we believe that the [Web Components](https://developer.mozilla.org/en-US/docs/Web/API/Web_Components) technologies should be the source for almost all, if not all, future components.
Currently, we are providing some of our packages with those technologies:
-* [Internet-header](?path=/docs/cfa21cbc-5f8d-4a42-8165-7f6ed20bf133--docs)
-* [Components](/?path=/docs/edfb619b-fda1-4570-bf25-20830303d483--docs)
+
+ {packages.filter(pkg => pkg.type === PackageType.Wc).map((p => (
+
+
+
+ {p.version}
+
+
+ )))}
+
Even though, Angular support Web components technologies natively, they are less convenient to use than regular Angular components.
To mitigate the problem, we are providing packages that add Angular wrapper around Custom Elements.
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.styles.scss b/packages/documentation/src/stories/getting-started/angular/angular.styles.scss
new file mode 100644
index 0000000000..1066c0faa3
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/angular/angular.styles.scss
@@ -0,0 +1,13 @@
+@use '@swisspost/design-system-styles/core.scss' as post;
+
+.tile-wrapper {
+ display: flex;
+ flex-wrap: wrap;
+ padding-left: 0;
+ list-style-type: none;
+ gap: post.$size-big;
+
+ @include post.media-breakpoint-down(rg) {
+ gap: post.$size-regular;
+ }
+}
diff --git a/packages/documentation/src/stories/getting-started/introduction.docs.mdx b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
index f7a099dd0e..9cdb4fa24c 100644
--- a/packages/documentation/src/stories/getting-started/introduction.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
@@ -1,6 +1,6 @@
import { Meta } from '@storybook/blocks';
import * as IntroductionStories from './introduction.stories';
-import { packages } from '../home.data';
+import { packages } from './packages/packages.data';
import '../../shared/tile/tile.component';
@@ -36,7 +36,7 @@ The design-system is formed with several packages and different compatibilities
{[packages.find(pkg => pkg.name === 'Styles')].map((p => (
-
+
{p.version}
@@ -46,7 +46,7 @@ The design-system is formed with several packages and different compatibilities
{[packages.find(pkg => pkg.name === 'Internet-Header')].map((p => (
-
+
{p.version}
@@ -60,7 +60,7 @@ The design-system is formed with several packages and different compatibilities
N/A
{[packages.find(pkg => pkg.name === 'Intranet-Header')].map((p => (
-
+
{p.version}
@@ -83,15 +83,15 @@ The design-system is formed with several packages and different compatibilities
{[packages.find(pkg => pkg.name === 'Components')].map((p => (
-
+
{p.version}
)))}
- {[packages.find(pkg => pkg.name === 'Components Angular')].map((p => (
-
+ {[packages.find(pkg => pkg.name === 'Components for Angular')].map((p => (
+
{p.version}
diff --git a/packages/documentation/src/stories/getting-started/packages/components-angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.docs.mdx
similarity index 92%
rename from packages/documentation/src/stories/getting-started/packages/components-angular/angular.docs.mdx
rename to packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.docs.mdx
index 56a5e3848f..5c7d6ef64f 100644
--- a/packages/documentation/src/stories/getting-started/packages/components-angular/angular.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.docs.mdx
@@ -1,5 +1,5 @@
import { Meta, Source } from '@storybook/blocks';
-import * as GettingStartedStories from './angular.stories';
+import * as GettingStartedStories from './components-angular.stories';
import AngularAppModuleSample from './angular-app-module.sample.ts?raw';
import AngularAppComponentSample from './angular-app-component.sample.html?raw';
diff --git a/packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts b/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts
similarity index 100%
rename from packages/documentation/src/stories/getting-started/packages/components-angular/angular.stories.ts
rename to packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts
diff --git a/packages/documentation/src/stories/getting-started/packages/packages.data.ts b/packages/documentation/src/stories/getting-started/packages/packages.data.ts
new file mode 100644
index 0000000000..f21b3c0d3a
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/packages/packages.data.ts
@@ -0,0 +1,159 @@
+import { DEPENDENCIES, getVersion } from '../../../utils/version';
+import metaStyles from './styles/styles.stories';
+import metaComponents from './components/components.stories';
+import metaComponentsAngular from './components-angular/components-angular.stories';
+import metaInternetHeader from './internet-header/internet-header.stories';
+import metaIntranetHeader from './intranet-header/intranet-header.stories';
+import metaIcons from './icons/package-icons.stories';
+
+export enum PackageType {
+ Html = 'HTML',
+ Wc = 'WebComponents',
+ Angular = 'Angular',
+ React = 'React',
+ Assets = 'Assets',
+}
+
+interface IPackage {
+ name: string;
+ docsStoryId: string;
+ type: PackageType;
+ link: {
+ [key: string]: {
+ href: string;
+ ariaLabel: string;
+ };
+ };
+ img: {
+ src: string;
+ alt: string;
+ };
+ version: string;
+}
+
+export const packages: IPackage[] = [
+ {
+ name: 'Styles',
+ docsStoryId: metaStyles.id,
+ type: PackageType.Html,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/styles',
+ ariaLabel: 'Source of Styles package',
+ },
+ docs: {
+ href: generateDocsRelativeLink(metaStyles.id),
+ ariaLabel: 'Getting started with Styles package',
+ },
+ },
+ img: {
+ src: '/assets/images/packages/styles.svg',
+ alt: '',
+ },
+ version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-styles'])}`,
+ },
+ {
+ name: 'Components',
+ docsStoryId: metaComponents.id,
+ type: PackageType.Wc,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/components',
+ ariaLabel: 'Source of Components package',
+ },
+ docs: {
+ href: generateDocsRelativeLink(metaComponents.id),
+ ariaLabel: 'Getting started with Components package',
+ },
+ },
+ img: {
+ src: '/assets/images/packages/components.svg',
+ alt: '',
+ },
+ version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-components'])}`,
+ },
+ {
+ name: 'Components for Angular',
+ docsStoryId: metaComponentsAngular.id,
+ type: PackageType.Angular,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/components-angular',
+ ariaLabel: 'Source of Components for Angular package',
+ },
+ docs: {
+ href: generateDocsRelativeLink(metaComponentsAngular.id),
+ ariaLabel: 'Getting started with Components for Angular package',
+ },
+ },
+ img: {
+ src: '/assets/images/packages/components-angular.svg',
+ alt: '',
+ },
+ version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-components-angular'])}`,
+ },
+ {
+ name: 'Internet-Header',
+ docsStoryId: metaInternetHeader.id,
+ type: PackageType.Wc,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/internet-header',
+ ariaLabel: 'Source of Internet-Header package',
+ },
+ docs: {
+ href: generateDocsRelativeLink(metaInternetHeader.id),
+ ariaLabel: 'Getting started with Internet-Header package',
+ },
+ },
+ img: {
+ src: '/assets/images/packages/internet-header.svg',
+ alt: '',
+ },
+ version: `v${getVersion(DEPENDENCIES['@swisspost/internet-header'])}`,
+ },
+ {
+ name: 'Intranet-Header',
+ docsStoryId: metaIntranetHeader.id,
+ type: PackageType.Angular,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/intranet-header-workspace/projects/intranet-header',
+ ariaLabel: 'Source of Intranet-Header package',
+ },
+ docs: {
+ href: generateDocsRelativeLink(metaIntranetHeader.id),
+ ariaLabel: 'Getting started with Intranet-Header package',
+ },
+ },
+ img: {
+ src: '/assets/images/packages/intranet-header.svg',
+ alt: '',
+ },
+ version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-intranet-header'])}`,
+ },
+ {
+ name: 'Icons',
+ docsStoryId: metaIcons.id,
+ type: PackageType.Assets,
+ link: {
+ github: {
+ href: 'https://github.com/swisspost/design-system/tree/main/packages/icons',
+ ariaLabel: 'Source of Icons package',
+ },
+ docs: {
+ href: generateDocsRelativeLink(metaIcons.id),
+ ariaLabel: 'Getting started with Icons package',
+ },
+ },
+ img: {
+ src: '/assets/images/packages/icons.svg',
+ alt: '',
+ },
+ version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-icons'])}`,
+ },
+];
+
+function generateDocsRelativeLink(storyId: string) {
+ return `/?path=/docs/${storyId}--docs`;
+}
diff --git a/packages/documentation/src/stories/home.data.ts b/packages/documentation/src/stories/home.data.ts
index f88c4e4661..ac6bccce27 100644
--- a/packages/documentation/src/stories/home.data.ts
+++ b/packages/documentation/src/stories/home.data.ts
@@ -1,26 +1,4 @@
-import { DEPENDENCIES, getVersion } from '../utils/version';
-import metaStyles from './getting-started/packages/styles/styles.stories';
-import metaComponents from './getting-started/packages/components/components.stories';
-import metaComponentsAngular from './getting-started/packages/components-angular/angular.stories';
-import metaInternetHeader from './getting-started/packages/internet-header/internet-header.stories';
-import metaIntranetHeader from './getting-started/packages/intranet-header/intranet-header.stories';
-import metaIcons from './getting-started/packages/icons/package-icons.stories';
-
-interface IPackage {
- name: string;
- docsStoryId: string;
- link: {
- [key: string]: {
- href: string;
- ariaLabel: string;
- };
- };
- img: {
- src: string;
- alt: string;
- };
- version: string;
-}
+import { getVersion } from '../utils/version';
interface ITechnology {
name: string;
@@ -31,99 +9,6 @@ interface ITechnology {
};
}
-export const packages: IPackage[] = [
- {
- name: 'Styles',
- docsStoryId: metaStyles.id,
- link: {
- github: {
- href: 'https://github.com/swisspost/design-system/tree/main/packages/styles',
- ariaLabel: 'Source of Styles package',
- },
- },
- img: {
- src: '/assets/images/packages/styles.svg',
- alt: '',
- },
- version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-styles'])}`,
- },
- {
- name: 'Components',
- docsStoryId: metaComponents.id,
- link: {
- github: {
- href: 'https://github.com/swisspost/design-system/tree/main/packages/components',
- ariaLabel: 'Source of Components package',
- },
- },
- img: {
- src: '/assets/images/packages/components.svg',
- alt: '',
- },
- version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-components'])}`,
- },
- {
- name: 'Components Angular',
- docsStoryId: metaComponentsAngular.id,
- link: {
- github: {
- href: 'https://github.com/swisspost/design-system/tree/main/packages/components-angular',
- ariaLabel: 'Source of Components for Angular package',
- },
- },
- img: {
- src: '/assets/images/packages/components-angular.svg',
- alt: '',
- },
- version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-components-angular'])}`,
- },
- {
- name: 'Internet-Header',
- docsStoryId: metaInternetHeader.id,
- link: {
- github: {
- href: 'https://github.com/swisspost/design-system/tree/main/packages/internet-header',
- ariaLabel: 'Source of Internet-Header package',
- },
- },
- img: {
- src: '/assets/images/packages/internet-header.svg',
- alt: '',
- },
- version: `v${getVersion(DEPENDENCIES['@swisspost/internet-header'])}`,
- },
- {
- name: 'Intranet-Header',
- docsStoryId: metaIntranetHeader.id,
- link: {
- github: {
- href: 'https://github.com/swisspost/design-system/tree/main/packages/intranet-header-workspace/projects/intranet-header',
- ariaLabel: 'Source of Intranet-Header package',
- },
- },
- img: {
- src: '/assets/images/packages/intranet-header.svg',
- alt: '',
- },
- version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-intranet-header'])}`,
- },
- {
- name: 'Icons',
- docsStoryId: metaIcons.id,
- link: {
- github: {
- href: 'https://github.com/swisspost/design-system/tree/main/packages/icons',
- ariaLabel: 'Source of Icons package',
- },
- },
- img: {
- src: '/assets/images/packages/icons.svg',
- alt: '',
- },
- version: `v${getVersion(DEPENDENCIES['@swisspost/design-system-icons'])}`,
- },
-];
-
export const technologies: ITechnology[] = [
{
name: 'Figma',
diff --git a/packages/documentation/src/stories/home.docs.mdx b/packages/documentation/src/stories/home.docs.mdx
index 17614cc7a5..b94292d0bf 100644
--- a/packages/documentation/src/stories/home.docs.mdx
+++ b/packages/documentation/src/stories/home.docs.mdx
@@ -1,22 +1,25 @@
import { Meta } from '@storybook/blocks';
import * as HomeStories from './home.stories';
import { Feature } from './home.blocks';
-import { packages, technologies } from './home.data';
+import { packages } from './getting-started/packages/packages.data';
import './home.styles.scss';
import '../shared/tile/tile.component';
+import { technologies } from './home.data';
Packages & Resources
-
+
{packages.map(p => (
-
-
- {p.version}
-
+
+
+
+ {p.version}
+
+
))}
-
+
Get started
diff --git a/packages/documentation/src/stories/home.styles.scss b/packages/documentation/src/stories/home.styles.scss
index c63f55e9b8..2d238cf481 100644
--- a/packages/documentation/src/stories/home.styles.scss
+++ b/packages/documentation/src/stories/home.styles.scss
@@ -2,6 +2,10 @@
@use '@swisspost/design-system-styles/core.scss' as post;
@use '@swisspost/design-system-styles/mixins/utilities';
+#storybook-docs{
+ overflow-x:hidden;
+}
+
.bg-fullwidth {
position: relative;
@@ -28,6 +32,8 @@
.tile-wrapper {
display: flex;
flex-wrap: wrap;
+ padding:0;
+ list-style-type: none;
justify-content: center;
gap: post.$size-big;
From ac7911e254903c16422b2dddfc4e79606e303d24 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Mon, 4 Mar 2024 11:49:32 +0100
Subject: [PATCH 27/36] Link internet-header doc page with Angular doc page and
restructure
---
.../internet-header/internet-header.docs.mdx | 18 ++++++++++++------
1 file changed, 12 insertions(+), 6 deletions(-)
diff --git a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.docs.mdx b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.docs.mdx
index 6146b55b12..ea8b532024 100644
--- a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.docs.mdx
@@ -1,5 +1,5 @@
import { Meta, Source } from '@storybook/blocks';
-import { PostTabs, PostTabHeader, PostTabPanel } from '@swisspost/design-system-components-react';
+import { PostTabHeader, PostTabPanel, PostTabs } from '@swisspost/design-system-components-react';
import SampleFrameworks from './internet-header-frameworks.sample.html?raw';
import SampleLazyLoaded from './internet-header-lazy-loaded.sample.js?raw';
import SampleBareComponent from './internet-header-bare-component.sample.js?raw';
@@ -26,7 +26,9 @@ The header for client-facing applications.
Migration Guide
-## Configuration
+## Preparation
+
+### Request a configuration
The Internet Header is built to support the already existing Portal Configuration used for the old Internet Header.
@@ -43,16 +45,16 @@ Not every Online Service has configurations for all environments.
For example, "TOPOS" only has `int02` configured and cannot use `int01` as value for environment.
If you are not sure what's configured for your project, please reach out to the post-portal team as well.
-## Installation
-
-### Choosing between lazy-loaded or bare component version
+### Choose between lazy-loaded or bare component version
Internet-header package provide two versions:
- Lazy-loaded (default): it allows better performance by dynamically load the component when used, so it reduces bundle size, startup time and first paint.
- Bare component: if you already manage the lazy-loading or don't need it for any reason, you can use the component without any overhead.
-### Angular, Vue.js, React (or any other bundler setup)
+## Installation
+
+### Install with a bundler
All the popular frameworks come with some form of bundler.
This makes it easy to use npm packages like the Internet Header as you can import,
@@ -98,6 +100,10 @@ Available CDNs:
+## Usage with Angular
+
+For Angular user, please have a look at [How to integrate Web Components inside Angular](/?path=/docs/8426deb2-3d6d-4fcc-90e6-1ca9737b2ed0--docs#usage-of-web-components)
+
## Migration from the old header
This guide aims to give a broad overview of how a migration can be performed.
From 5871ddb12c0d6fd28b5355f2cbf693b42fc54e81 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Mon, 4 Mar 2024 11:55:30 +0100
Subject: [PATCH 28/36] Fix package title
---
.../packages/components-angular/components-angular.stories.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts b/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts
index 364a6d0edd..6e4d89da9b 100644
--- a/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts
@@ -3,7 +3,7 @@ import { MetaExtended } from '../../../../../types/storybook';
const meta: MetaExtended = {
id: '833ef689-a573-40f5-a6a6-30a999b94733',
- title: 'Getting Started/Packages/Components-Angular',
+ title: 'Getting Started/Packages/Components for Angular',
parameters: {
badges: [],
},
From e53f0c11f6dea1dd2a1eae09cd9fe474d8292350 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 5 Mar 2024 14:51:55 +0100
Subject: [PATCH 29/36] Extract package data and types
---
.../packages => shared}/packages.data.ts | 23 +++++++------------
.../getting-started/angular/angular.docs.mdx | 2 +-
.../getting-started/introduction.docs.mdx | 2 +-
.../documentation/src/stories/home.docs.mdx | 2 +-
packages/documentation/types/package.ts | 7 ++++++
packages/documentation/types/storybook.ts | 5 ++++
6 files changed, 23 insertions(+), 18 deletions(-)
rename packages/documentation/src/{stories/getting-started/packages => shared}/packages.data.ts (84%)
create mode 100644 packages/documentation/types/package.ts
diff --git a/packages/documentation/src/stories/getting-started/packages/packages.data.ts b/packages/documentation/src/shared/packages.data.ts
similarity index 84%
rename from packages/documentation/src/stories/getting-started/packages/packages.data.ts
rename to packages/documentation/src/shared/packages.data.ts
index f21b3c0d3a..99b029cf70 100644
--- a/packages/documentation/src/stories/getting-started/packages/packages.data.ts
+++ b/packages/documentation/src/shared/packages.data.ts
@@ -1,18 +1,11 @@
-import { DEPENDENCIES, getVersion } from '../../../utils/version';
-import metaStyles from './styles/styles.stories';
-import metaComponents from './components/components.stories';
-import metaComponentsAngular from './components-angular/components-angular.stories';
-import metaInternetHeader from './internet-header/internet-header.stories';
-import metaIntranetHeader from './intranet-header/intranet-header.stories';
-import metaIcons from './icons/package-icons.stories';
-
-export enum PackageType {
- Html = 'HTML',
- Wc = 'WebComponents',
- Angular = 'Angular',
- React = 'React',
- Assets = 'Assets',
-}
+import { DEPENDENCIES, getVersion } from '../utils/version';
+import metaStyles from '../stories/getting-started/packages/styles/styles.stories';
+import metaComponents from '../stories/getting-started/packages/components/components.stories';
+import metaComponentsAngular from '../stories/getting-started/packages/components-angular/components-angular.stories';
+import metaInternetHeader from '../stories/getting-started/packages/internet-header/internet-header.stories';
+import metaIntranetHeader from '../stories/getting-started/packages/intranet-header/intranet-header.stories';
+import metaIcons from '../stories/getting-started/packages/icons/package-icons.stories';
+import { PackageType } from '../../types/package';
interface IPackage {
name: string;
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
index a1938499f8..a9b30b2c86 100644
--- a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
@@ -2,7 +2,7 @@ import { Meta, Source } from '@storybook/blocks';
import * as AngularStories from './angular.stories';
import SampleIconsConfig from './sample-icons-config.sample.json?raw';
import SampleWcAngularManually from './sample-web-components-angular-manually.component.ts?raw';
-import { packages, PackageType } from '../packages/packages.data';
+import { packages, PackageType } from '../../../shared/packages.data';
import '../../../shared/tile/tile.component';
import './angular.styles.scss';
diff --git a/packages/documentation/src/stories/getting-started/introduction.docs.mdx b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
index 9cdb4fa24c..bade107c4e 100644
--- a/packages/documentation/src/stories/getting-started/introduction.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
@@ -1,6 +1,6 @@
import { Meta } from '@storybook/blocks';
import * as IntroductionStories from './introduction.stories';
-import { packages } from './packages/packages.data';
+import { packages } from '../../shared/packages.data';
import '../../shared/tile/tile.component';
diff --git a/packages/documentation/src/stories/home.docs.mdx b/packages/documentation/src/stories/home.docs.mdx
index b94292d0bf..5eb0f6a4a0 100644
--- a/packages/documentation/src/stories/home.docs.mdx
+++ b/packages/documentation/src/stories/home.docs.mdx
@@ -1,7 +1,7 @@
import { Meta } from '@storybook/blocks';
import * as HomeStories from './home.stories';
import { Feature } from './home.blocks';
-import { packages } from './getting-started/packages/packages.data';
+import { packages } from '../shared/packages.data';
import './home.styles.scss';
import '../shared/tile/tile.component';
import { technologies } from './home.data';
diff --git a/packages/documentation/types/package.ts b/packages/documentation/types/package.ts
new file mode 100644
index 0000000000..e4382a6fd9
--- /dev/null
+++ b/packages/documentation/types/package.ts
@@ -0,0 +1,7 @@
+export enum PackageType {
+ Html = 'HTML',
+ Wc = 'WebComponents',
+ Angular = 'Angular',
+ React = 'React',
+ Assets = 'Assets',
+}
diff --git a/packages/documentation/types/storybook.ts b/packages/documentation/types/storybook.ts
index 7cf98b5f21..ea14c618e0 100644
--- a/packages/documentation/types/storybook.ts
+++ b/packages/documentation/types/storybook.ts
@@ -1,6 +1,11 @@
import { Args, Meta } from '@storybook/web-components';
+import { PackageType } from './package';
export interface MetaExtended
extends Meta {
id: string; // Make id required
title: string; // Make title required
}
+
+export interface MetaComponent extends MetaExtended {
+ packageType: PackageType;
+}
From 9946ed204e64180332dbd2591f31fbfba049e86a Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 5 Mar 2024 14:56:10 +0100
Subject: [PATCH 30/36] Fix packageType import
---
.../src/stories/getting-started/angular/angular.docs.mdx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
index a9b30b2c86..84265476a1 100644
--- a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
@@ -2,9 +2,10 @@ import { Meta, Source } from '@storybook/blocks';
import * as AngularStories from './angular.stories';
import SampleIconsConfig from './sample-icons-config.sample.json?raw';
import SampleWcAngularManually from './sample-web-components-angular-manually.component.ts?raw';
-import { packages, PackageType } from '../../../shared/packages.data';
+import { packages } from '../../../shared/packages.data';
import '../../../shared/tile/tile.component';
import './angular.styles.scss';
+import { PackageType } from '../../../../types/package';
From 18179715e4c210cd684337b77ee9f6d4f6ee314d Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Tue, 5 Mar 2024 15:41:58 +0100
Subject: [PATCH 31/36] Simplify types import
---
packages/documentation/src/shared/packages.data.ts | 2 +-
.../src/stories/components/accordion/accordion.stories.ts | 2 +-
.../src/stories/components/alert/standard-html/alert.stories.ts | 2 +-
.../components/alert/web-component/post-alert.stories.ts | 2 +-
.../documentation/src/stories/components/badge/badge.stories.ts | 2 +-
.../src/stories/components/blockquote/blockquote.stories.ts | 2 +-
.../src/stories/components/button-group/button-group.stories.ts | 2 +-
.../src/stories/components/button/button.stories.ts | 2 +-
.../stories/components/cards/card-button/card-button.stories.ts | 2 +-
.../src/stories/components/cards/card/card.stories.ts | 2 +-
.../components/cards/product-card/product-card.stories.ts | 2 +-
.../src/stories/components/carousel/carousel.stories.ts | 2 +-
.../src/stories/components/collapsible/collapsible.stories.ts | 2 +-
.../src/stories/components/datepicker/datepicker.stories.ts | 2 +-
.../src/stories/components/dropdown/dropdown.stories.ts | 2 +-
.../src/stories/components/forms/checkbox/checkbox.stories.ts | 2 +-
.../src/stories/components/forms/choice-card/choice-card.ts | 2 +-
.../components/forms/custom-select/custom-select.stories.ts | 2 +-
.../src/stories/components/forms/input/input.stories.ts | 2 +-
.../src/stories/components/forms/radio/radio.stories.ts | 2 +-
.../src/stories/components/forms/range/range.stories.ts | 2 +-
.../src/stories/components/forms/select/select.stories.ts | 2 +-
.../src/stories/components/forms/switch/switch.stories.ts | 2 +-
.../src/stories/components/forms/textarea/textarea.stories.ts | 2 +-
.../src/stories/components/heading/heading.stories.ts | 2 +-
.../documentation/src/stories/components/icons/icon.stories.ts | 2 +-
.../internet-header/breadcrumbs/breadcrumbs.stories.ts | 2 +-
.../stories/components/internet-header/footer/footer.stories.ts | 2 +-
.../stories/components/internet-header/header/header.stories.ts | 2 +-
.../components/intranet-header/intranet-header.stories.ts | 2 +-
.../documentation/src/stories/components/modal/modal.stories.ts | 2 +-
.../notification-overlay/notification-overlay.stories.ts | 2 +-
.../src/stories/components/pagination/pagination.stories.ts | 2 +-
.../src/stories/components/popover/popover.stories.ts | 2 +-
.../src/stories/components/progressbar/progressbar.stories.ts | 2 +-
.../src/stories/components/rating/post-rating.stories.ts | 2 +-
.../src/stories/components/spinner/spinner.stories.ts | 2 +-
.../src/stories/components/stepper/stepper.stories.ts | 2 +-
.../stories/components/subnavigation/subnavigation.stories.ts | 2 +-
.../documentation/src/stories/components/table/table.stories.ts | 2 +-
.../documentation/src/stories/components/tabs/tabs.stories.ts | 2 +-
.../src/stories/components/timepicker/timepicker.stories.ts | 2 +-
.../documentation/src/stories/components/toast/toast.stories.ts | 2 +-
.../src/stories/components/tooltip/tooltip.stories.ts | 2 +-
.../src/stories/components/topic-teaser/topic-teaser.stories.ts | 2 +-
.../src/stories/components/typeahead/typeahead.stories.ts | 2 +-
.../stories/foundation/accessibility/accessibility.stories.ts | 2 +-
.../documentation/src/stories/foundation/color/color.stories.ts | 2 +-
.../src/stories/foundation/elevation/elevation.stories.ts | 2 +-
.../src/stories/foundation/icons/search-icons.stories.ts | 2 +-
.../foundation/layout/breakpoints/breakpoints.stories.ts | 2 +-
.../src/stories/foundation/layout/columns/columns.stories.ts | 2 +-
.../stories/foundation/layout/containers/containers.stories.ts | 2 +-
.../src/stories/foundation/layout/grid/grid.stories.ts | 2 +-
.../src/stories/foundation/typography/typography.stories.ts | 2 +-
.../src/stories/getting-started/angular/angular.docs.mdx | 2 +-
.../src/stories/getting-started/angular/angular.stories.ts | 2 +-
.../getting-started/compatibility/compatibility.stories.ts | 2 +-
.../packages/components-angular/components-angular.stories.ts | 2 +-
.../getting-started/packages/components/components.stories.ts | 2 +-
.../getting-started/packages/icons/package-icons.stories.ts | 2 +-
.../packages/internet-header/internet-header.stories.ts | 2 +-
.../packages/intranet-header/intranet-header.stories.ts | 2 +-
.../stories/getting-started/packages/styles/styles.stories.ts | 2 +-
packages/documentation/src/stories/home.stories.ts | 2 +-
.../src/stories/misc/changelog/changelog.stories.ts | 2 +-
.../src/stories/misc/migration-guide/migration-guide.stories.ts | 2 +-
.../documentation/src/stories/misc/versions/versions.stories.ts | 2 +-
.../documentation/src/stories/patterns/forms/forms.stories.ts | 2 +-
.../src/stories/patterns/metadata/metadata.stories.ts | 2 +-
.../src/stories/utilities/background/background.stories.ts | 2 +-
.../documentation/src/stories/utilities/list/list.stories.ts | 2 +-
.../src/stories/utilities/sizing/sizing.stories.ts | 2 +-
.../src/stories/utilities/spacing/spacing.stories.ts | 2 +-
.../documentation/src/stories/utilities/text/text.stories.ts | 2 +-
packages/documentation/types/index.ts | 2 ++
packages/documentation/types/storybook.ts | 2 +-
77 files changed, 78 insertions(+), 76 deletions(-)
create mode 100644 packages/documentation/types/index.ts
diff --git a/packages/documentation/src/shared/packages.data.ts b/packages/documentation/src/shared/packages.data.ts
index 99b029cf70..a22560e36e 100644
--- a/packages/documentation/src/shared/packages.data.ts
+++ b/packages/documentation/src/shared/packages.data.ts
@@ -5,7 +5,7 @@ import metaComponentsAngular from '../stories/getting-started/packages/component
import metaInternetHeader from '../stories/getting-started/packages/internet-header/internet-header.stories';
import metaIntranetHeader from '../stories/getting-started/packages/intranet-header/intranet-header.stories';
import metaIcons from '../stories/getting-started/packages/icons/package-icons.stories';
-import { PackageType } from '../../types/package';
+import { PackageType } from '../../types';
interface IPackage {
name: string;
diff --git a/packages/documentation/src/stories/components/accordion/accordion.stories.ts b/packages/documentation/src/stories/components/accordion/accordion.stories.ts
index 444e6bc287..ecf9aacdd5 100644
--- a/packages/documentation/src/stories/components/accordion/accordion.stories.ts
+++ b/packages/documentation/src/stories/components/accordion/accordion.stories.ts
@@ -1,7 +1,7 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '4d1b4185-e04d-494a-ab38-2b56c1778b0b',
diff --git a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
index 4c07784faa..cbfae6199b 100644
--- a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
+++ b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
@@ -4,7 +4,7 @@ import { Args, StoryContext, StoryFn, StoryObj } from '@storybook/web-components
import { html, nothing } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { getAlertClasses } from './getAlertClasses';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '105e67d8-31e9-4d0b-87ff-685aba31fd4c',
diff --git a/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts b/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts
index 926b011994..bd0927ec07 100644
--- a/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts
+++ b/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts
@@ -1,7 +1,7 @@
import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spreadArgs } from '../../../../utils';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '8fd36823-966e-46a8-8432-a4439f6e208f',
diff --git a/packages/documentation/src/stories/components/badge/badge.stories.ts b/packages/documentation/src/stories/components/badge/badge.stories.ts
index 90948a3578..133d0c1641 100644
--- a/packages/documentation/src/stories/components/badge/badge.stories.ts
+++ b/packages/documentation/src/stories/components/badge/badge.stories.ts
@@ -2,7 +2,7 @@ import { useArgs } from '@storybook/preview-api';
import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { mapClasses } from '../../../utils';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'bec68e8b-445e-4760-8bd7-1b9970206d8d',
diff --git a/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts b/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts
index 1acb56d8e1..e8807c6c30 100644
--- a/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts
+++ b/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts
@@ -1,6 +1,6 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'a4c7d5fa-9f8d-4a95-820b-ae4ce9ab4f03',
diff --git a/packages/documentation/src/stories/components/button-group/button-group.stories.ts b/packages/documentation/src/stories/components/button-group/button-group.stories.ts
index 62985de479..0d50128f04 100644
--- a/packages/documentation/src/stories/components/button-group/button-group.stories.ts
+++ b/packages/documentation/src/stories/components/button-group/button-group.stories.ts
@@ -1,7 +1,7 @@
import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { useArgs } from '@storybook/preview-api';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '021d61aa-e039-4858-b4b9-b86a3e772811',
diff --git a/packages/documentation/src/stories/components/button/button.stories.ts b/packages/documentation/src/stories/components/button/button.stories.ts
index e906408e84..bcd2cf9644 100644
--- a/packages/documentation/src/stories/components/button/button.stories.ts
+++ b/packages/documentation/src/stories/components/button/button.stories.ts
@@ -2,7 +2,7 @@ import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
import { spread } from '@open-wc/lit-helpers';
import { repeat } from 'lit/directives/repeat.js';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'eb78afcb-ce92-4990-94b6-6536d5ec6af4',
diff --git a/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts b/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
index e78152072c..106fa8e97c 100644
--- a/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
+++ b/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
@@ -2,7 +2,7 @@ import { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { useArgs } from '@storybook/preview-api';
import scss from './card-button.module.scss';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
title: 'Components/Cards/Card Button',
diff --git a/packages/documentation/src/stories/components/cards/card/card.stories.ts b/packages/documentation/src/stories/components/cards/card/card.stories.ts
index 2eccdcc914..7846258b97 100644
--- a/packages/documentation/src/stories/components/cards/card/card.stories.ts
+++ b/packages/documentation/src/stories/components/cards/card/card.stories.ts
@@ -2,7 +2,7 @@ import type { Args, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { choose } from 'lit/directives/choose.js';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '605c788d-3f75-4e6c-8498-be3d546843c2',
diff --git a/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts b/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts
index d2895ef418..91cf16a43e 100644
--- a/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts
+++ b/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts
@@ -1,7 +1,7 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
import { nothing } from 'lit';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: 'b4800d9e-4837-4476-a327-bb4586eb7e97',
diff --git a/packages/documentation/src/stories/components/carousel/carousel.stories.ts b/packages/documentation/src/stories/components/carousel/carousel.stories.ts
index 683e6c8699..b471386edc 100644
--- a/packages/documentation/src/stories/components/carousel/carousel.stories.ts
+++ b/packages/documentation/src/stories/components/carousel/carousel.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'cb3ba4a2-1265-4a20-b184-b85443146efa',
diff --git a/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts b/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts
index 3cd7bf7a20..fe420c07fd 100644
--- a/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts
+++ b/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts
@@ -1,7 +1,7 @@
import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spreadArgs } from '../../../utils';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '6a91848c-16ec-4a23-bc45-51c797b5b2c3',
diff --git a/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts b/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts
index ef4bc1ad8d..e93af95c14 100644
--- a/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts
+++ b/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts
@@ -1,6 +1,6 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '6561b345-9d64-4f95-8ea6-2389586410bd',
diff --git a/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts b/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts
index e156a1dedd..aed5bed84c 100644
--- a/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts
+++ b/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts
@@ -1,4 +1,4 @@
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '63113d0a-6ceb-472c-ac6a-729404e862ca',
diff --git a/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts b/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts
index 830de74c1a..59d4e0c20c 100644
--- a/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts
+++ b/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts
@@ -3,7 +3,7 @@ import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { mapClasses } from '../../../../utils';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: 'e6ecc86f-d148-413b-b796-614a89da54be',
diff --git a/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts b/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts
index 11f0f1dc55..29942999c9 100644
--- a/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts
+++ b/packages/documentation/src/stories/components/forms/choice-card/choice-card.ts
@@ -4,7 +4,7 @@ import { classMap } from 'lit/directives/class-map.js';
import { BADGE } from '../../../../../.storybook/constants';
import { nothing } from 'lit';
import { useArgs } from '@storybook/preview-api';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
export const choiceCardMeta: MetaExtended = {
parameters: {
diff --git a/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts b/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts
index aa283acc3d..3101371bbf 100644
--- a/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts
+++ b/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: 'e5a39d4f-4448-4398-9380-7c9fcae4a514',
diff --git a/packages/documentation/src/stories/components/forms/input/input.stories.ts b/packages/documentation/src/stories/components/forms/input/input.stories.ts
index dede0e923c..575b9ad9aa 100644
--- a/packages/documentation/src/stories/components/forms/input/input.stories.ts
+++ b/packages/documentation/src/stories/components/forms/input/input.stories.ts
@@ -1,6 +1,6 @@
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing, TemplateResult } from 'lit';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
diff --git a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
index 9076d24e99..ff587a744c 100644
--- a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
+++ b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
@@ -1,7 +1,7 @@
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { useArgs } from '@storybook/preview-api';
import { html, nothing, TemplateResult } from 'lit';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
diff --git a/packages/documentation/src/stories/components/forms/range/range.stories.ts b/packages/documentation/src/stories/components/forms/range/range.stories.ts
index e8b25507a7..4a7e5c36f3 100644
--- a/packages/documentation/src/stories/components/forms/range/range.stories.ts
+++ b/packages/documentation/src/stories/components/forms/range/range.stories.ts
@@ -1,7 +1,7 @@
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { useArgs } from '@storybook/preview-api';
import { html, nothing, TemplateResult } from 'lit';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
diff --git a/packages/documentation/src/stories/components/forms/select/select.stories.ts b/packages/documentation/src/stories/components/forms/select/select.stories.ts
index df7cc82254..d614e4f0ab 100644
--- a/packages/documentation/src/stories/components/forms/select/select.stories.ts
+++ b/packages/documentation/src/stories/components/forms/select/select.stories.ts
@@ -2,7 +2,7 @@ import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { useArgs } from '@storybook/preview-api';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
diff --git a/packages/documentation/src/stories/components/forms/switch/switch.stories.ts b/packages/documentation/src/stories/components/forms/switch/switch.stories.ts
index ce23c9ad70..14abad124a 100644
--- a/packages/documentation/src/stories/components/forms/switch/switch.stories.ts
+++ b/packages/documentation/src/stories/components/forms/switch/switch.stories.ts
@@ -3,7 +3,7 @@ import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { mapClasses } from '../../../../utils';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '7fb639f8-86f6-4937-999c-4ee15f81643b',
diff --git a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
index cee2c86375..0cff72c8fc 100644
--- a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
+++ b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
@@ -1,7 +1,7 @@
import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { mapClasses } from '../../../../utils';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
diff --git a/packages/documentation/src/stories/components/heading/heading.stories.ts b/packages/documentation/src/stories/components/heading/heading.stories.ts
index 66b240fed7..43bc207c89 100644
--- a/packages/documentation/src/stories/components/heading/heading.stories.ts
+++ b/packages/documentation/src/stories/components/heading/heading.stories.ts
@@ -1,6 +1,6 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '7ecd87f1-de96-4e39-a057-ba1798eb6959',
diff --git a/packages/documentation/src/stories/components/icons/icon.stories.ts b/packages/documentation/src/stories/components/icons/icon.stories.ts
index 1335c3cf98..3c0d9482ad 100644
--- a/packages/documentation/src/stories/components/icons/icon.stories.ts
+++ b/packages/documentation/src/stories/components/icons/icon.stories.ts
@@ -4,7 +4,7 @@ import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { spreadArgs } from '../../../utils';
import { Components } from '@swisspost/design-system-components/src';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '0dcfe3c0-bfc0-4107-b43b-7e9d825b805f',
diff --git a/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
index 26c4568823..14cb938e24 100644
--- a/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
@@ -3,7 +3,7 @@ import { html } from 'lit';
import { spread } from '@open-wc/lit-helpers';
import { getAttributes } from '../../../../utils';
import customItems from './overrides/custom-items';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '4347e5bf-8bf2-4f44-9075-9faaa53591ed',
diff --git a/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts b/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
index 33ff443d62..efb68efac6 100644
--- a/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
@@ -2,7 +2,7 @@ import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import customFooterConfig from './custom-config/custom-footer-config';
import { spread } from '@open-wc/lit-helpers';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '27fc009d-3eec-43a9-b3a2-55531e721817',
diff --git a/packages/documentation/src/stories/components/internet-header/header/header.stories.ts b/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
index 40af20ad80..8da44bf0b8 100644
--- a/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
@@ -4,7 +4,7 @@ import { spreadArgs } from '../../../../utils';
import customConfig from './config/custom-config';
import osFlyoutOverrides from './config/os-flyout-overrides';
import languageSwitchOverrides from './config/language-switch-overrides';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: 'ebb11274-091b-4cb7-9a3f-3e0451c9a865',
diff --git a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts
index a5c5c960d2..b4be8d8106 100644
--- a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts
+++ b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts
@@ -1,4 +1,4 @@
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'd59a459b-6f14-47c6-9f98-a36a3f79a6e3',
diff --git a/packages/documentation/src/stories/components/modal/modal.stories.ts b/packages/documentation/src/stories/components/modal/modal.stories.ts
index 81bf50687e..a7be48ff26 100644
--- a/packages/documentation/src/stories/components/modal/modal.stories.ts
+++ b/packages/documentation/src/stories/components/modal/modal.stories.ts
@@ -1,6 +1,6 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '9a512414-84c5-473c-a7c8-a434eda9578d',
diff --git a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
index da3435df69..709892e52e 100644
--- a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
+++ b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
@@ -1,5 +1,5 @@
import type { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'aab3f0df-08ca-4e33-90eb-77ffda6528db',
diff --git a/packages/documentation/src/stories/components/pagination/pagination.stories.ts b/packages/documentation/src/stories/components/pagination/pagination.stories.ts
index 82306c2f64..d950aa20c4 100644
--- a/packages/documentation/src/stories/components/pagination/pagination.stories.ts
+++ b/packages/documentation/src/stories/components/pagination/pagination.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'caa89695-5c39-4cb5-8e62-579d918cbd2f',
diff --git a/packages/documentation/src/stories/components/popover/popover.stories.ts b/packages/documentation/src/stories/components/popover/popover.stories.ts
index dc9e163bb7..9453513231 100644
--- a/packages/documentation/src/stories/components/popover/popover.stories.ts
+++ b/packages/documentation/src/stories/components/popover/popover.stories.ts
@@ -1,7 +1,7 @@
import { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '9a636763-de2d-4f72-bc81-98daf10871f7',
diff --git a/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts b/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts
index 36a3f07c3c..1a2276a1d6 100644
--- a/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts
+++ b/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '446648d9-0360-4dec-a6f4-87f2f28b5f33',
diff --git a/packages/documentation/src/stories/components/rating/post-rating.stories.ts b/packages/documentation/src/stories/components/rating/post-rating.stories.ts
index d3be7a027a..b599196820 100644
--- a/packages/documentation/src/stories/components/rating/post-rating.stories.ts
+++ b/packages/documentation/src/stories/components/rating/post-rating.stories.ts
@@ -1,6 +1,6 @@
import { Args, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '956e063b-b40c-4fe4-bc27-53b8c4ab1e81',
diff --git a/packages/documentation/src/stories/components/spinner/spinner.stories.ts b/packages/documentation/src/stories/components/spinner/spinner.stories.ts
index cd8b02c681..e0208f883e 100644
--- a/packages/documentation/src/stories/components/spinner/spinner.stories.ts
+++ b/packages/documentation/src/stories/components/spinner/spinner.stories.ts
@@ -1,6 +1,6 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit/static-html.js';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'd0e645d0-3bf2-4b00-967a-5a1343107f60',
diff --git a/packages/documentation/src/stories/components/stepper/stepper.stories.ts b/packages/documentation/src/stories/components/stepper/stepper.stories.ts
index c0e62078d1..0e09136e76 100644
--- a/packages/documentation/src/stories/components/stepper/stepper.stories.ts
+++ b/packages/documentation/src/stories/components/stepper/stepper.stories.ts
@@ -1,6 +1,6 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '7dc546d9-e248-4d06-befe-3ad62fcd310f',
diff --git a/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts b/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts
index 68e3479825..d13bb00d7b 100644
--- a/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts
+++ b/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts
@@ -1,7 +1,7 @@
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import scss from './background.module.scss';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const backgroundColors = scss.bgClasses.split('"').filter((_, index) => index % 2 === 1);
diff --git a/packages/documentation/src/stories/components/table/table.stories.ts b/packages/documentation/src/stories/components/table/table.stories.ts
index 831e05c470..2faa7c6a87 100644
--- a/packages/documentation/src/stories/components/table/table.stories.ts
+++ b/packages/documentation/src/stories/components/table/table.stories.ts
@@ -1,7 +1,7 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { mapClasses } from '../../../utils';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '81799516-470c-446b-a049-54946b6ccfca',
diff --git a/packages/documentation/src/stories/components/tabs/tabs.stories.ts b/packages/documentation/src/stories/components/tabs/tabs.stories.ts
index 77914c291d..726fae0dc5 100644
--- a/packages/documentation/src/stories/components/tabs/tabs.stories.ts
+++ b/packages/documentation/src/stories/components/tabs/tabs.stories.ts
@@ -1,7 +1,7 @@
import { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'bb1291ca-4dbb-450c-a15f-596836d9f39e',
diff --git a/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts b/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts
index e466aac893..9f3896991f 100644
--- a/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts
+++ b/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'a4d9f996-6e77-4fad-bb19-40fad1bb7a1d',
diff --git a/packages/documentation/src/stories/components/toast/toast.stories.ts b/packages/documentation/src/stories/components/toast/toast.stories.ts
index f6cca55db1..d8b274db9f 100644
--- a/packages/documentation/src/stories/components/toast/toast.stories.ts
+++ b/packages/documentation/src/stories/components/toast/toast.stories.ts
@@ -1,7 +1,7 @@
import { useArgs } from '@storybook/preview-api';
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '825b65c9-7eaf-4e0a-9e20-5f5ed406726d',
diff --git a/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts b/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts
index 0363ff2214..86d6ef6f48 100644
--- a/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts
+++ b/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts
@@ -3,7 +3,7 @@ import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { useArgs } from '@storybook/preview-api';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'cd684d90-e7a7-41a9-8923-b1b72ad9b384',
diff --git a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts
index e2eb676d37..5852f73424 100644
--- a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts
+++ b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts
@@ -1,7 +1,7 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html, TemplateResult } from 'lit';
import { mapClasses } from '../../../utils';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '2ffc7a53-c1aa-4ff5-b1e4-fa638591399c',
diff --git a/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts b/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts
index e5fb78e625..2de4a5ae91 100644
--- a/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts
+++ b/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '0456901c-3713-4f1f-b592-1f4dbd65a500',
diff --git a/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts b/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts
index 612f14171c..db48e56637 100644
--- a/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts
+++ b/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '46da78e8-e83b-4ca1-aaf6-bbc662efef14',
diff --git a/packages/documentation/src/stories/foundation/color/color.stories.ts b/packages/documentation/src/stories/foundation/color/color.stories.ts
index be3e84fb18..507e42ae26 100644
--- a/packages/documentation/src/stories/foundation/color/color.stories.ts
+++ b/packages/documentation/src/stories/foundation/color/color.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'e869afc1-3c50-4c20-a495-3d846f7a759e',
diff --git a/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts b/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts
index b9e29cc2f9..19faa83953 100644
--- a/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts
+++ b/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts
@@ -1,6 +1,6 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'cfdf83ff-efa7-4b3c-ac91-6898c4f88701',
diff --git a/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts b/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
index 5636769a8f..d837eca4ca 100644
--- a/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
+++ b/packages/documentation/src/stories/foundation/icons/search-icons.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '5704bdc4-c5b5-45e6-b123-c54d01fce2f1',
diff --git a/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts b/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts
index 606ed93172..c62dcf96d6 100644
--- a/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts
+++ b/packages/documentation/src/stories/foundation/layout/breakpoints/breakpoints.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '20af6e2b-32b1-42ef-a187-b026aea7fe13',
diff --git a/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts b/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts
index d25e5ba625..87c55bea26 100644
--- a/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts
+++ b/packages/documentation/src/stories/foundation/layout/columns/columns.stories.ts
@@ -1,6 +1,6 @@
import type { Args, StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: 'cd70f48f-6308-4ec8-a8c6-982bd72c855c',
diff --git a/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts b/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts
index 5f46c03e10..fe6e491c99 100644
--- a/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts
+++ b/packages/documentation/src/stories/foundation/layout/containers/containers.stories.ts
@@ -1,5 +1,5 @@
import type { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: 'a4ca9660-bb4a-4cc7-adfd-84767382ac03',
diff --git a/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts b/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts
index 3605b75584..d9545c0d85 100644
--- a/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts
+++ b/packages/documentation/src/stories/foundation/layout/grid/grid.stories.ts
@@ -1,6 +1,6 @@
import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '7240f2ef-216a-490e-9bd8-c0cef19f7b31',
diff --git a/packages/documentation/src/stories/foundation/typography/typography.stories.ts b/packages/documentation/src/stories/foundation/typography/typography.stories.ts
index 169525b605..9680d3b61b 100644
--- a/packages/documentation/src/stories/foundation/typography/typography.stories.ts
+++ b/packages/documentation/src/stories/foundation/typography/typography.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '677cfabf-dbf0-4de2-ad07-6d5bfb9e2375',
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
index 84265476a1..dad481280e 100644
--- a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
@@ -5,7 +5,7 @@ import SampleWcAngularManually from './sample-web-components-angular-manually.co
import { packages } from '../../../shared/packages.data';
import '../../../shared/tile/tile.component';
import './angular.styles.scss';
-import { PackageType } from '../../../../types/package';
+import { PackageType } from '../../../../types';
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.stories.ts b/packages/documentation/src/stories/getting-started/angular/angular.stories.ts
index 7e05247236..6aab59da1d 100644
--- a/packages/documentation/src/stories/getting-started/angular/angular.stories.ts
+++ b/packages/documentation/src/stories/getting-started/angular/angular.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '8426deb2-3d6d-4fcc-90e6-1ca9737b2ed0',
diff --git a/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts b/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
index dff55a6840..ab28d84146 100644
--- a/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
+++ b/packages/documentation/src/stories/getting-started/compatibility/compatibility.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '829f6c45-5734-4d55-b290-2c8a86a07b67',
diff --git a/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts b/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts
index 6e4d89da9b..784d0b74a4 100644
--- a/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/components-angular/components-angular.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '833ef689-a573-40f5-a6a6-30a999b94733',
diff --git a/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts b/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
index 54e3b6109c..48077c7c9c 100644
--- a/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/components/components.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: 'edfb619b-fda1-4570-bf25-20830303d483',
diff --git a/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
index 573be18829..c413dc4767 100644
--- a/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/icons/package-icons.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '40ed323b-9c1a-42ab-91ed-15f97f214608',
diff --git a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
index 0ef2027569..01b075b195 100644
--- a/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/internet-header/internet-header.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: 'cfa21cbc-5f8d-4a42-8165-7f6ed20bf133',
diff --git a/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
index d234b31ea7..4a0b551d84 100644
--- a/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/intranet-header/intranet-header.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: '7068be42-1a20-4a34-9e79-7fb7f9f2940f',
diff --git a/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts b/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
index 50dce456f8..1a475e2afb 100644
--- a/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
+++ b/packages/documentation/src/stories/getting-started/packages/styles/styles.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types/storybook';
+import { MetaExtended } from '../../../../../types';
const meta: MetaExtended = {
id: 'e53e2de8-0bbf-4f70-babc-074c5466f700',
diff --git a/packages/documentation/src/stories/home.stories.ts b/packages/documentation/src/stories/home.stories.ts
index 93edbef719..e3387c82b2 100644
--- a/packages/documentation/src/stories/home.stories.ts
+++ b/packages/documentation/src/stories/home.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../types/storybook';
+import { MetaExtended } from '../../types';
const meta: MetaExtended = {
id: 'Home',
diff --git a/packages/documentation/src/stories/misc/changelog/changelog.stories.ts b/packages/documentation/src/stories/misc/changelog/changelog.stories.ts
index 6802175bb4..ea0dea670f 100644
--- a/packages/documentation/src/stories/misc/changelog/changelog.stories.ts
+++ b/packages/documentation/src/stories/misc/changelog/changelog.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'a060be2f-7af4-46ba-b3a1-a14be624b3ee',
diff --git a/packages/documentation/src/stories/misc/migration-guide/migration-guide.stories.ts b/packages/documentation/src/stories/misc/migration-guide/migration-guide.stories.ts
index 79ab2aac85..3db96cf337 100644
--- a/packages/documentation/src/stories/misc/migration-guide/migration-guide.stories.ts
+++ b/packages/documentation/src/stories/misc/migration-guide/migration-guide.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'c23b1d0b-76b3-4e38-aa76-b10c29bb873f',
diff --git a/packages/documentation/src/stories/misc/versions/versions.stories.ts b/packages/documentation/src/stories/misc/versions/versions.stories.ts
index 709cd1251f..9330914d74 100644
--- a/packages/documentation/src/stories/misc/versions/versions.stories.ts
+++ b/packages/documentation/src/stories/misc/versions/versions.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '873b1271-a700-4b28-aefe-28bcc14fd85a',
diff --git a/packages/documentation/src/stories/patterns/forms/forms.stories.ts b/packages/documentation/src/stories/patterns/forms/forms.stories.ts
index e33350f305..cdf72b9179 100644
--- a/packages/documentation/src/stories/patterns/forms/forms.stories.ts
+++ b/packages/documentation/src/stories/patterns/forms/forms.stories.ts
@@ -1,6 +1,6 @@
import { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'd83829b2-7de2-48d2-be64-07a80c9caef3',
diff --git a/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts b/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts
index 3f52ad7d5e..314532611e 100644
--- a/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts
+++ b/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'a9543ea3-044d-4e86-bbb9-985c3f74f270',
diff --git a/packages/documentation/src/stories/utilities/background/background.stories.ts b/packages/documentation/src/stories/utilities/background/background.stories.ts
index 75107e9287..d909169943 100644
--- a/packages/documentation/src/stories/utilities/background/background.stories.ts
+++ b/packages/documentation/src/stories/utilities/background/background.stories.ts
@@ -1,6 +1,6 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: '60852fac-a861-4415-8276-bd38d68653bb',
diff --git a/packages/documentation/src/stories/utilities/list/list.stories.ts b/packages/documentation/src/stories/utilities/list/list.stories.ts
index 4c8dd830b6..bb908272ef 100644
--- a/packages/documentation/src/stories/utilities/list/list.stories.ts
+++ b/packages/documentation/src/stories/utilities/list/list.stories.ts
@@ -1,6 +1,6 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'e76192bb-b2eb-487a-b9c1-ef938bccdfc4',
diff --git a/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts b/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts
index 0e2025062f..ea02d7e434 100644
--- a/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts
+++ b/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts
@@ -2,7 +2,7 @@ import type { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import './sizing.styles.scss';
import scss from './sizing.module.scss';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
export const SCSS_VARIABLES = scss;
diff --git a/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts b/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts
index 75ad495d02..3985e6e7cf 100644
--- a/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts
+++ b/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts
@@ -3,7 +3,7 @@ import { html } from 'lit/static-html.js';
import './spacing.styles.scss';
import { parse } from '../../../utils/sass-export';
import scss from './spacing.module.scss';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
export const SCSS_VARIABLES = parse(scss);
diff --git a/packages/documentation/src/stories/utilities/text/text.stories.ts b/packages/documentation/src/stories/utilities/text/text.stories.ts
index 613266d9c7..3019e69771 100644
--- a/packages/documentation/src/stories/utilities/text/text.stories.ts
+++ b/packages/documentation/src/stories/utilities/text/text.stories.ts
@@ -1,6 +1,6 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types/storybook';
+import { MetaExtended } from '../../../../types';
const meta: MetaExtended = {
id: 'c55681df-4d21-469d-a5b3-c67686e7c104',
diff --git a/packages/documentation/types/index.ts b/packages/documentation/types/index.ts
new file mode 100644
index 0000000000..da12ab5f30
--- /dev/null
+++ b/packages/documentation/types/index.ts
@@ -0,0 +1,2 @@
+export * from './package';
+export * from './storybook';
diff --git a/packages/documentation/types/storybook.ts b/packages/documentation/types/storybook.ts
index ea14c618e0..67a46b2f82 100644
--- a/packages/documentation/types/storybook.ts
+++ b/packages/documentation/types/storybook.ts
@@ -7,5 +7,5 @@ export interface MetaExtended extends Meta {
}
export interface MetaComponent extends MetaExtended {
- packageType: PackageType;
+ tags: [PackageType, ...string[]];
}
From 0e13663fabb0a04dcd03444b3343913093b5df53 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Wed, 6 Mar 2024 10:02:18 +0100
Subject: [PATCH 32/36] Automate construct of components list
---
packages/documentation/package.json | 1 +
packages/documentation/src/noop.txt | 1 -
.../components/accordion/accordion.stories.ts | 5 +-
.../alert/standard-html/alert.stories.ts | 5 +-
.../alert/web-component/post-alert.stories.ts | 7 +-
.../stories/components/badge/badge.stories.ts | 5 +-
.../blockquote/blockquote.stories.ts | 5 +-
.../button-group/button-group.stories.ts | 5 +-
.../components/button/button.stories.ts | 5 +-
.../cards/card-button/card-button.stories.ts | 6 +-
.../components/cards/card/card.stories.ts | 5 +-
.../product-card/product-card.stories.ts | 5 +-
.../components/carousel/carousel.stories.ts | 5 +-
.../collapsible/collapsible.stories.ts | 5 +-
.../datepicker/datepicker.stories.ts | 5 +-
.../components/dropdown/dropdown.stories.ts | 5 +-
.../forms/checkbox/checkbox.stories.ts | 5 +-
.../choice-card/checkbox-card.stories.ts | 6 +-
.../choice-card/radiobutton-card.stories.ts | 8 +-
.../custom-select/custom-select.stories.ts | 5 +-
.../components/forms/input/input.stories.ts | 5 +-
.../components/forms/radio/radio.stories.ts | 5 +-
.../components/forms/range/range.stories.ts | 5 +-
.../components/forms/select/select.stories.ts | 5 +-
.../components/forms/switch/switch.stories.ts | 5 +-
.../forms/textarea/textarea.stories.ts | 5 +-
.../components/heading/heading.stories.ts | 5 +-
.../stories/components/icons/icon.stories.ts | 5 +-
.../breadcrumbs/breadcrumbs.stories.ts | 5 +-
.../internet-header/footer/footer.stories.ts | 5 +-
.../internet-header/header/header.stories.ts | 5 +-
.../intranet-header.stories.ts | 5 +-
.../stories/components/modal/modal.stories.ts | 5 +-
.../notification-overlay.stories.ts | 5 +-
.../pagination/pagination.stories.ts | 5 +-
.../components/popover/popover.stories.ts | 5 +-
.../progressbar/progressbar.stories.ts | 5 +-
.../components/rating/post-rating.stories.ts | 5 +-
.../components/spinner/spinner.stories.ts | 5 +-
.../components/stepper/stepper.stories.ts | 5 +-
.../subnavigation/subnavigation.stories.ts | 6 +-
.../stories/components/table/table.stories.ts | 5 +-
.../stories/components/tabs/tabs.stories.ts | 5 +-
.../timepicker/timepicker.stories.ts | 5 +-
.../stories/components/toast/toast.stories.ts | 5 +-
.../components/tooltip/tooltip.stories.ts | 5 +-
.../topic-teaser/topic-teaser.stories.ts | 5 +-
.../components/typeahead/typeahead.stories.ts | 5 +-
.../getting-started/introduction.docs.mdx | 61 ++----------
.../getting-started/introduction.stories.ts | 2 +-
.../stories/getting-started/list-component.ts | 98 +++++++++++++++++++
packages/documentation/types/package.ts | 2 +
packages/documentation/types/storybook.ts | 4 +-
pnpm-lock.yaml | 9 ++
54 files changed, 270 insertions(+), 146 deletions(-)
delete mode 100644 packages/documentation/src/noop.txt
create mode 100644 packages/documentation/src/stories/getting-started/list-component.ts
diff --git a/packages/documentation/package.json b/packages/documentation/package.json
index 5604d4ca77..55d4c2d6b4 100644
--- a/packages/documentation/package.json
+++ b/packages/documentation/package.json
@@ -35,6 +35,7 @@
},
"devDependencies": {
"@geometricpanda/storybook-addon-badges": "2.0.1",
+ "@lit/task": "1.0.0",
"@open-wc/lit-helpers": "0.6.0",
"@percy/cli": "1.27.7",
"@percy/cypress": "3.1.2",
diff --git a/packages/documentation/src/noop.txt b/packages/documentation/src/noop.txt
deleted file mode 100644
index 07c5fa89e0..0000000000
--- a/packages/documentation/src/noop.txt
+++ /dev/null
@@ -1 +0,0 @@
-triggering a doc build, nothing to see here
\ No newline at end of file
diff --git a/packages/documentation/src/stories/components/accordion/accordion.stories.ts b/packages/documentation/src/stories/components/accordion/accordion.stories.ts
index ecf9aacdd5..04a73e63e3 100644
--- a/packages/documentation/src/stories/components/accordion/accordion.stories.ts
+++ b/packages/documentation/src/stories/components/accordion/accordion.stories.ts
@@ -1,11 +1,12 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '4d1b4185-e04d-494a-ab38-2b56c1778b0b',
title: 'Components/Accordion',
+ tags: ['package:WebComponents'],
component: 'post-accordion',
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
index cbfae6199b..d06ec8ae3e 100644
--- a/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
+++ b/packages/documentation/src/stories/components/alert/standard-html/alert.stories.ts
@@ -4,11 +4,12 @@ import { Args, StoryContext, StoryFn, StoryObj } from '@storybook/web-components
import { html, nothing } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { getAlertClasses } from './getAlertClasses';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '105e67d8-31e9-4d0b-87ff-685aba31fd4c',
title: 'Components/Alert',
+ tags: ['package:HTML'],
render: renderAlert,
decorators: [externalControl],
parameters: {
diff --git a/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts b/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts
index bd0927ec07..9968d8f551 100644
--- a/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts
+++ b/packages/documentation/src/stories/components/alert/web-component/post-alert.stories.ts
@@ -1,11 +1,12 @@
import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spreadArgs } from '../../../../utils';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '8fd36823-966e-46a8-8432-a4439f6e208f',
- title: 'Components/Post Alert',
+ title: 'Components/Alert',
+ tags: ['package:WebComponents', 'redirect:105e67d8-31e9-4d0b-87ff-685aba31fd4c'],
component: 'post-alert',
render: renderAlert,
decorators: [externalControl],
diff --git a/packages/documentation/src/stories/components/badge/badge.stories.ts b/packages/documentation/src/stories/components/badge/badge.stories.ts
index 133d0c1641..2be92512ef 100644
--- a/packages/documentation/src/stories/components/badge/badge.stories.ts
+++ b/packages/documentation/src/stories/components/badge/badge.stories.ts
@@ -2,11 +2,12 @@ import { useArgs } from '@storybook/preview-api';
import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { mapClasses } from '../../../utils';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'bec68e8b-445e-4760-8bd7-1b9970206d8d',
title: 'Components/Badge',
+ tags: ['package:HTML'],
render: renderBadge,
decorators: [externalControl],
parameters: {
diff --git a/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts b/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts
index e8807c6c30..9d9aa5f973 100644
--- a/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts
+++ b/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts
@@ -1,10 +1,11 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'a4c7d5fa-9f8d-4a95-820b-ae4ce9ab4f03',
title: 'Components/Blockquote',
+ tags: ['package:HTML'],
render: renderBlockquote,
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/button-group/button-group.stories.ts b/packages/documentation/src/stories/components/button-group/button-group.stories.ts
index 0d50128f04..b77cb83280 100644
--- a/packages/documentation/src/stories/components/button-group/button-group.stories.ts
+++ b/packages/documentation/src/stories/components/button-group/button-group.stories.ts
@@ -1,11 +1,12 @@
import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { useArgs } from '@storybook/preview-api';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '021d61aa-e039-4858-b4b9-b86a3e772811',
title: 'Components/Button Group',
+ tags: ['package:HTML'],
render: renderButtonGroup,
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/button/button.stories.ts b/packages/documentation/src/stories/components/button/button.stories.ts
index bcd2cf9644..2b593de613 100644
--- a/packages/documentation/src/stories/components/button/button.stories.ts
+++ b/packages/documentation/src/stories/components/button/button.stories.ts
@@ -2,11 +2,12 @@ import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
import { spread } from '@open-wc/lit-helpers';
import { repeat } from 'lit/directives/repeat.js';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'eb78afcb-ce92-4990-94b6-6536d5ec6af4',
title: 'Components/Button',
+ tags: ['package:HTML'],
parameters: {
badges: [],
design: {
diff --git a/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts b/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
index 106fa8e97c..9b9757a4e9 100644
--- a/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
+++ b/packages/documentation/src/stories/components/cards/card-button/card-button.stories.ts
@@ -2,10 +2,12 @@ import { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { useArgs } from '@storybook/preview-api';
import scss from './card-button.module.scss';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
+ id: '6f8f76ec-a2b5-4eb0-87f7-4021e1a5b8d0',
title: 'Components/Cards/Card Button',
+ tags: ['package:HTML'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/cards/card/card.stories.ts b/packages/documentation/src/stories/components/cards/card/card.stories.ts
index 7846258b97..5a96d67f62 100644
--- a/packages/documentation/src/stories/components/cards/card/card.stories.ts
+++ b/packages/documentation/src/stories/components/cards/card/card.stories.ts
@@ -2,11 +2,12 @@ import type { Args, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { choose } from 'lit/directives/choose.js';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '605c788d-3f75-4e6c-8498-be3d546843c2',
title: 'Components/Cards/Card',
+ tags: ['package:HTML'],
decorators: [clickBlocker, paddedContainer],
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts b/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts
index 91cf16a43e..99f51dd051 100644
--- a/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts
+++ b/packages/documentation/src/stories/components/cards/product-card/product-card.stories.ts
@@ -1,11 +1,12 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
import { nothing } from 'lit';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'b4800d9e-4837-4476-a327-bb4586eb7e97',
title: 'Components/Cards/Product Card',
+ tags: ['package:HTML'],
decorators: [paddedContainer, clickBlocker],
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/carousel/carousel.stories.ts b/packages/documentation/src/stories/components/carousel/carousel.stories.ts
index b471386edc..367d7ec546 100644
--- a/packages/documentation/src/stories/components/carousel/carousel.stories.ts
+++ b/packages/documentation/src/stories/components/carousel/carousel.stories.ts
@@ -1,9 +1,10 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'cb3ba4a2-1265-4a20-b184-b85443146efa',
title: 'Components/Carousel',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts b/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts
index fe420c07fd..65f225d4d9 100644
--- a/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts
+++ b/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts
@@ -1,11 +1,12 @@
import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { spreadArgs } from '../../../utils';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '6a91848c-16ec-4a23-bc45-51c797b5b2c3',
title: 'Components/Collapsible',
+ tags: ['package:WebComponents'],
component: 'post-collapsible',
render: renderCollapsible,
decorators: [externalControls],
diff --git a/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts b/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts
index e93af95c14..e8dac20710 100644
--- a/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts
+++ b/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts
@@ -1,10 +1,11 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '6561b345-9d64-4f95-8ea6-2389586410bd',
title: 'Components/Datepicker',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts b/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts
index aed5bed84c..d8ed29741d 100644
--- a/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts
+++ b/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts
@@ -1,8 +1,9 @@
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '63113d0a-6ceb-472c-ac6a-729404e862ca',
title: 'Components/Dropdown',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts b/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts
index 59d4e0c20c..cc0373ac27 100644
--- a/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts
+++ b/packages/documentation/src/stories/components/forms/checkbox/checkbox.stories.ts
@@ -3,11 +3,12 @@ import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { mapClasses } from '../../../../utils';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'e6ecc86f-d148-413b-b796-614a89da54be',
title: 'Components/Forms/Checkbox',
+ tags: ['package:HTML'],
render: renderCheckbox,
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/forms/choice-card/checkbox-card.stories.ts b/packages/documentation/src/stories/components/forms/choice-card/checkbox-card.stories.ts
index 7bf6c9b04c..056e213873 100644
--- a/packages/documentation/src/stories/components/forms/choice-card/checkbox-card.stories.ts
+++ b/packages/documentation/src/stories/components/forms/choice-card/checkbox-card.stories.ts
@@ -1,14 +1,18 @@
import { choiceCardDefault, choiceCardGroup, choiceCardMeta } from './choice-card';
+import { MetaComponent } from '../../../../../types';
-export default {
+const meta: MetaComponent = {
...choiceCardMeta,
id: '9637bbae-0533-4522-89d4-c2732431c69b',
title: 'Components/Forms/Checkbox Card',
+ tags: ['package:HTML'],
parameters: {
badges: [],
},
};
+export default meta;
+
export const Default = {
render: choiceCardDefault,
args: { ...choiceCardMeta.args, type: 'checkbox' },
diff --git a/packages/documentation/src/stories/components/forms/choice-card/radiobutton-card.stories.ts b/packages/documentation/src/stories/components/forms/choice-card/radiobutton-card.stories.ts
index fcdcd2d876..277eec8845 100644
--- a/packages/documentation/src/stories/components/forms/choice-card/radiobutton-card.stories.ts
+++ b/packages/documentation/src/stories/components/forms/choice-card/radiobutton-card.stories.ts
@@ -1,13 +1,17 @@
-import { choiceCardMeta, choiceCardDefault, choiceCardGroup } from './choice-card';
+import { choiceCardDefault, choiceCardGroup, choiceCardMeta } from './choice-card';
+import { MetaComponent } from '../../../../../types';
-export default {
+const meta: MetaComponent = {
...choiceCardMeta,
title: 'Components/Forms/Radio Button Card',
+ tags: ['package:HTML'],
parameters: {
badges: [],
},
};
+export default meta;
+
export const Default = {
render: choiceCardDefault,
args: { ...choiceCardMeta.args, type: 'radio' },
diff --git a/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts b/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts
index 3101371bbf..2a172da500 100644
--- a/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts
+++ b/packages/documentation/src/stories/components/forms/custom-select/custom-select.stories.ts
@@ -1,9 +1,10 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'e5a39d4f-4448-4398-9380-7c9fcae4a514',
title: 'Components/Forms/Custom Select',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/forms/input/input.stories.ts b/packages/documentation/src/stories/components/forms/input/input.stories.ts
index 575b9ad9aa..afd429caed 100644
--- a/packages/documentation/src/stories/components/forms/input/input.stories.ts
+++ b/packages/documentation/src/stories/components/forms/input/input.stories.ts
@@ -1,6 +1,6 @@
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing, TemplateResult } from 'lit';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -8,9 +8,10 @@ const VALIDATION_STATE_MAP: Record = {
'is-invalid': true,
};
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '2df77c32-5e33-402e-bd2e-54d54271ce19',
title: 'Components/Forms/Input',
+ tags: ['package:HTML'],
render: render,
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
index ff587a744c..d3e594e2bc 100644
--- a/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
+++ b/packages/documentation/src/stories/components/forms/radio/radio.stories.ts
@@ -1,7 +1,7 @@
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { useArgs } from '@storybook/preview-api';
import { html, nothing, TemplateResult } from 'lit';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -9,9 +9,10 @@ const VALIDATION_STATE_MAP: Record = {
'is-invalid': true,
};
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '151242aa-a074-4a55-a81c-db597c83cdad',
title: 'Components/Forms/Radio Button',
+ tags: ['package:HTML'],
parameters: {
controls: {
exclude: ['Hidden Legend'],
diff --git a/packages/documentation/src/stories/components/forms/range/range.stories.ts b/packages/documentation/src/stories/components/forms/range/range.stories.ts
index 4a7e5c36f3..63a2215d5e 100644
--- a/packages/documentation/src/stories/components/forms/range/range.stories.ts
+++ b/packages/documentation/src/stories/components/forms/range/range.stories.ts
@@ -1,7 +1,7 @@
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { useArgs } from '@storybook/preview-api';
import { html, nothing, TemplateResult } from 'lit';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -11,9 +11,10 @@ const VALIDATION_STATE_MAP: Record = {
const ARROW_KEYS = ['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight'];
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '4c5a4537-d663-4d2b-9c49-17af95443696',
title: 'Components/Forms/Range',
+ tags: ['package:HTML'],
render: render,
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/forms/select/select.stories.ts b/packages/documentation/src/stories/components/forms/select/select.stories.ts
index d614e4f0ab..cf7b20c9d8 100644
--- a/packages/documentation/src/stories/components/forms/select/select.stories.ts
+++ b/packages/documentation/src/stories/components/forms/select/select.stories.ts
@@ -2,7 +2,7 @@ import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { useArgs } from '@storybook/preview-api';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -10,9 +10,10 @@ const VALIDATION_STATE_MAP: Record = {
'is-invalid': true,
};
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'bc251cd0-5173-463b-8729-586bb1bf1e1a',
title: 'Components/Forms/Select',
+ tags: ['package:HTML'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/forms/switch/switch.stories.ts b/packages/documentation/src/stories/components/forms/switch/switch.stories.ts
index 14abad124a..f7b6ba1006 100644
--- a/packages/documentation/src/stories/components/forms/switch/switch.stories.ts
+++ b/packages/documentation/src/stories/components/forms/switch/switch.stories.ts
@@ -3,11 +3,12 @@ import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { mapClasses } from '../../../../utils';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '7fb639f8-86f6-4937-999c-4ee15f81643b',
title: 'Components/Forms/Switch',
+ tags: ['package:HTML'],
render: renderSwitch,
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
index 0cff72c8fc..d3d1d02f35 100644
--- a/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
+++ b/packages/documentation/src/stories/components/forms/textarea/textarea.stories.ts
@@ -1,7 +1,7 @@
import type { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
import { mapClasses } from '../../../../utils';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
const VALIDATION_STATE_MAP: Record = {
'null': undefined,
@@ -9,9 +9,10 @@ const VALIDATION_STATE_MAP: Record = {
'is-invalid': true,
};
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '152b7268-cce0-43d7-b931-41a57370f9a0',
title: 'Components/Forms/Textarea',
+ tags: ['package:HTML'],
render: renderTextarea,
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/heading/heading.stories.ts b/packages/documentation/src/stories/components/heading/heading.stories.ts
index 43bc207c89..52b086a186 100644
--- a/packages/documentation/src/stories/components/heading/heading.stories.ts
+++ b/packages/documentation/src/stories/components/heading/heading.stories.ts
@@ -1,10 +1,11 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html, unsafeStatic } from 'lit/static-html.js';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '7ecd87f1-de96-4e39-a057-ba1798eb6959',
title: 'Components/Heading',
+ tags: ['package:HTML'],
parameters: {
badges: [],
design: {
diff --git a/packages/documentation/src/stories/components/icons/icon.stories.ts b/packages/documentation/src/stories/components/icons/icon.stories.ts
index 3c0d9482ad..49e5721662 100644
--- a/packages/documentation/src/stories/components/icons/icon.stories.ts
+++ b/packages/documentation/src/stories/components/icons/icon.stories.ts
@@ -4,11 +4,12 @@ import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
import { spreadArgs } from '../../../utils';
import { Components } from '@swisspost/design-system-components/src';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '0dcfe3c0-bfc0-4107-b43b-7e9d825b805f',
title: 'Components/Icon',
+ tags: ['package:WebComponents'],
component: 'post-icon',
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
index 14cb938e24..ae7cc4f055 100644
--- a/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/breadcrumbs/breadcrumbs.stories.ts
@@ -3,12 +3,13 @@ import { html } from 'lit';
import { spread } from '@open-wc/lit-helpers';
import { getAttributes } from '../../../../utils';
import customItems from './overrides/custom-items';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '4347e5bf-8bf2-4f44-9075-9faaa53591ed',
title: 'Components/Internet Header/Breadcrumbs',
component: 'swisspost-internet-breadcrumbs',
+ tags: ['package:InternetHeader'],
render: renderInternetBreadcrumbs,
decorators: [hiddenHeader],
parameters: {
diff --git a/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts b/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
index efb68efac6..7e14f224bd 100644
--- a/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/footer/footer.stories.ts
@@ -2,12 +2,13 @@ import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import customFooterConfig from './custom-config/custom-footer-config';
import { spread } from '@open-wc/lit-helpers';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '27fc009d-3eec-43a9-b3a2-55531e721817',
title: 'Components/Internet Header/Footer',
component: 'swisspost-internet-footer',
+ tags: ['package:InternetHeader'],
render: renderInternetFooter,
decorators: [hiddenHeader],
parameters: {
diff --git a/packages/documentation/src/stories/components/internet-header/header/header.stories.ts b/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
index 8da44bf0b8..08d177bf5d 100644
--- a/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
+++ b/packages/documentation/src/stories/components/internet-header/header/header.stories.ts
@@ -4,11 +4,12 @@ import { spreadArgs } from '../../../../utils';
import customConfig from './config/custom-config';
import osFlyoutOverrides from './config/os-flyout-overrides';
import languageSwitchOverrides from './config/language-switch-overrides';
-import { MetaExtended } from '../../../../../types';
+import { MetaComponent } from '../../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'ebb11274-091b-4cb7-9a3f-3e0451c9a865',
title: 'Components/Internet Header/Header',
+ tags: ['package:InternetHeader'],
component: 'swisspost-internet-header',
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts
index b4be8d8106..5a3294d804 100644
--- a/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts
+++ b/packages/documentation/src/stories/components/intranet-header/intranet-header.stories.ts
@@ -1,8 +1,9 @@
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'd59a459b-6f14-47c6-9f98-a36a3f79a6e3',
title: 'Components/Intranet Header',
+ tags: ['package:IntranetHeader'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/modal/modal.stories.ts b/packages/documentation/src/stories/components/modal/modal.stories.ts
index a7be48ff26..6f5f0c470b 100644
--- a/packages/documentation/src/stories/components/modal/modal.stories.ts
+++ b/packages/documentation/src/stories/components/modal/modal.stories.ts
@@ -1,10 +1,11 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '9a512414-84c5-473c-a7c8-a434eda9578d',
title: 'Components/Modal',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
index 709892e52e..c3ae11ff76 100644
--- a/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
+++ b/packages/documentation/src/stories/components/notification-overlay/notification-overlay.stories.ts
@@ -1,9 +1,10 @@
import type { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'aab3f0df-08ca-4e33-90eb-77ffda6528db',
title: 'Components/Notification Overlay',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/pagination/pagination.stories.ts b/packages/documentation/src/stories/components/pagination/pagination.stories.ts
index d950aa20c4..c3feb49718 100644
--- a/packages/documentation/src/stories/components/pagination/pagination.stories.ts
+++ b/packages/documentation/src/stories/components/pagination/pagination.stories.ts
@@ -1,9 +1,10 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'caa89695-5c39-4cb5-8e62-579d918cbd2f',
title: 'Components/Pagination',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/popover/popover.stories.ts b/packages/documentation/src/stories/components/popover/popover.stories.ts
index 9453513231..8ac5ee9a97 100644
--- a/packages/documentation/src/stories/components/popover/popover.stories.ts
+++ b/packages/documentation/src/stories/components/popover/popover.stories.ts
@@ -1,11 +1,12 @@
import { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '9a636763-de2d-4f72-bc81-98daf10871f7',
title: 'Components/Popover',
+ tags: ['package:WebComponents'],
component: 'post-popover',
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts b/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts
index 1a2276a1d6..136318253c 100644
--- a/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts
+++ b/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts
@@ -1,9 +1,10 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '446648d9-0360-4dec-a6f4-87f2f28b5f33',
title: 'Components/Progressbar',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/rating/post-rating.stories.ts b/packages/documentation/src/stories/components/rating/post-rating.stories.ts
index b599196820..339bb97af6 100644
--- a/packages/documentation/src/stories/components/rating/post-rating.stories.ts
+++ b/packages/documentation/src/stories/components/rating/post-rating.stories.ts
@@ -1,10 +1,11 @@
import { Args, StoryObj } from '@storybook/web-components';
import { html, nothing } from 'lit';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '956e063b-b40c-4fe4-bc27-53b8c4ab1e81',
title: 'Components/Rating',
+ tags: ['package:WebComponents'],
component: 'post-rating',
render: render,
parameters: {
diff --git a/packages/documentation/src/stories/components/spinner/spinner.stories.ts b/packages/documentation/src/stories/components/spinner/spinner.stories.ts
index e0208f883e..1e897c8693 100644
--- a/packages/documentation/src/stories/components/spinner/spinner.stories.ts
+++ b/packages/documentation/src/stories/components/spinner/spinner.stories.ts
@@ -1,10 +1,11 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit/static-html.js';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'd0e645d0-3bf2-4b00-967a-5a1343107f60',
title: 'Components/Spinner',
+ tags: ['package:HTML'],
render,
decorators: [story => generateDecorators(story)],
parameters: {
diff --git a/packages/documentation/src/stories/components/stepper/stepper.stories.ts b/packages/documentation/src/stories/components/stepper/stepper.stories.ts
index 0e09136e76..e02789de49 100644
--- a/packages/documentation/src/stories/components/stepper/stepper.stories.ts
+++ b/packages/documentation/src/stories/components/stepper/stepper.stories.ts
@@ -1,10 +1,11 @@
import type { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '7dc546d9-e248-4d06-befe-3ad62fcd310f',
title: 'Components/Stepper',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts b/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts
index d13bb00d7b..071fde0196 100644
--- a/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts
+++ b/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts
@@ -1,12 +1,14 @@
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import scss from './background.module.scss';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
const backgroundColors = scss.bgClasses.split('"').filter((_, index) => index % 2 === 1);
-const meta: MetaExtended = {
+const meta: MetaComponent = {
+ id: '87ceabbb-f552-46eb-8a47-4d84e7f8cef0',
title: 'Components/Subnavigation',
+ tags: ['package:HTML'],
decorators: [clickBlocker],
render: renderTest,
parameters: {
diff --git a/packages/documentation/src/stories/components/table/table.stories.ts b/packages/documentation/src/stories/components/table/table.stories.ts
index 2faa7c6a87..1ff56053f0 100644
--- a/packages/documentation/src/stories/components/table/table.stories.ts
+++ b/packages/documentation/src/stories/components/table/table.stories.ts
@@ -1,11 +1,12 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { mapClasses } from '../../../utils';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '81799516-470c-446b-a049-54946b6ccfca',
title: 'Components/Table',
+ tags: ['package:HTML'],
render: renderTable,
parameters: {},
args: {
diff --git a/packages/documentation/src/stories/components/tabs/tabs.stories.ts b/packages/documentation/src/stories/components/tabs/tabs.stories.ts
index 726fae0dc5..80ffd6e013 100644
--- a/packages/documentation/src/stories/components/tabs/tabs.stories.ts
+++ b/packages/documentation/src/stories/components/tabs/tabs.stories.ts
@@ -1,11 +1,12 @@
import { StoryObj } from '@storybook/web-components';
import { html } from 'lit';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'bb1291ca-4dbb-450c-a15f-596836d9f39e',
title: 'Components/Tabs',
+ tags: ['package:WebComponents'],
component: 'post-tabs',
render: renderTabs,
parameters: {
diff --git a/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts b/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts
index 9f3896991f..06643422de 100644
--- a/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts
+++ b/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts
@@ -1,9 +1,10 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'a4d9f996-6e77-4fad-bb19-40fad1bb7a1d',
title: 'Components/Timepicker',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/toast/toast.stories.ts b/packages/documentation/src/stories/components/toast/toast.stories.ts
index d8b274db9f..c881980d62 100644
--- a/packages/documentation/src/stories/components/toast/toast.stories.ts
+++ b/packages/documentation/src/stories/components/toast/toast.stories.ts
@@ -1,11 +1,12 @@
import { useArgs } from '@storybook/preview-api';
import { Args, StoryContext, StoryObj } from '@storybook/web-components';
import { html } from 'lit';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '825b65c9-7eaf-4e0a-9e20-5f5ed406726d',
title: 'Components/Toast',
+ tags: ['package:HTML'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts b/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts
index 86d6ef6f48..7e6da547cc 100644
--- a/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts
+++ b/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts
@@ -3,11 +3,12 @@ import { html } from 'lit';
import { unsafeHTML } from 'lit/directives/unsafe-html.js';
import { useArgs } from '@storybook/preview-api';
import { ifDefined } from 'lit/directives/if-defined.js';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: 'cd684d90-e7a7-41a9-8923-b1b72ad9b384',
title: 'Components/Tooltip',
+ tags: ['package:WebComponents'],
component: 'post-tooltip',
parameters: {
badges: [],
diff --git a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts
index 5852f73424..4f3ee9696a 100644
--- a/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts
+++ b/packages/documentation/src/stories/components/topic-teaser/topic-teaser.stories.ts
@@ -1,11 +1,12 @@
import type { Args, StoryObj } from '@storybook/web-components';
import { html, TemplateResult } from 'lit';
import { mapClasses } from '../../../utils';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '2ffc7a53-c1aa-4ff5-b1e4-fa638591399c',
title: 'Components/Topic Teaser',
+ tags: ['package:HTML'],
parameters: {
badges: [],
layout: 'fullscreen',
diff --git a/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts b/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts
index 2de4a5ae91..ee2c1b36f1 100644
--- a/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts
+++ b/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts
@@ -1,9 +1,10 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../../types';
+import { MetaComponent } from '../../../../types';
-const meta: MetaExtended = {
+const meta: MetaComponent = {
id: '0456901c-3713-4f1f-b592-1f4dbd65a500',
title: 'Components/Typeahead',
+ tags: ['package:Angular'],
parameters: {
badges: [],
},
diff --git a/packages/documentation/src/stories/getting-started/introduction.docs.mdx b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
index bade107c4e..65d9873114 100644
--- a/packages/documentation/src/stories/getting-started/introduction.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
@@ -2,6 +2,8 @@ import { Meta } from '@storybook/blocks';
import * as IntroductionStories from './introduction.stories';
import { packages } from '../../shared/packages.data';
import '../../shared/tile/tile.component';
+import { PackageType } from '../../../types';
+import './list-component';
@@ -42,7 +44,10 @@ The design-system is formed with several packages and different compatibilities
)))}
- Internet-header
+
+ Internet-header:
+
+
{[packages.find(pkg => pkg.name === 'Internet-Header')].map((p => (
@@ -53,7 +58,7 @@ The design-system is formed with several packages and different compatibilities
)))}
- TBD
+ TBD
Intranet-header
@@ -71,15 +76,7 @@ The design-system is formed with several packages and different compatibilities
Web Components:
-
+
{[packages.find(pkg => pkg.name === 'Components')].map((p => (
@@ -102,19 +99,7 @@ The design-system is formed with several packages and different compatibilities
Angular components:
-
+
N/A
@@ -125,30 +110,7 @@ The design-system is formed with several packages and different compatibilities
HTML components:
-
+
No additional package is required
@@ -157,6 +119,3 @@ The design-system is formed with several packages and different compatibilities
-
-
-
diff --git a/packages/documentation/src/stories/getting-started/introduction.stories.ts b/packages/documentation/src/stories/getting-started/introduction.stories.ts
index 7a4ebebc21..2bbac42442 100644
--- a/packages/documentation/src/stories/getting-started/introduction.stories.ts
+++ b/packages/documentation/src/stories/getting-started/introduction.stories.ts
@@ -1,5 +1,5 @@
import { StoryObj } from '@storybook/web-components';
-import { MetaExtended } from '../../../types/storybook';
+import { MetaExtended } from '../../../types';
const meta: MetaExtended = {
id: 'dfc70c3b-4726-406b-8a41-af5738c89d05',
diff --git a/packages/documentation/src/stories/getting-started/list-component.ts b/packages/documentation/src/stories/getting-started/list-component.ts
new file mode 100644
index 0000000000..8184856d5a
--- /dev/null
+++ b/packages/documentation/src/stories/getting-started/list-component.ts
@@ -0,0 +1,98 @@
+import { html, LitElement } from 'lit';
+import { Task } from '@lit/task';
+import { customElement, property } from 'lit/decorators.js';
+import { PackageType } from '../../../types';
+
+const INDEX_PATH = '/index.json';
+const TAG_REDIRECT_PREFIX = 'redirect:';
+const TAG_PACKAGE_PREFIX = 'package:';
+
+interface Entry {
+ id: string;
+ name: string;
+ title: string;
+ href: string;
+ tags: string[];
+}
+
+interface IndexInput {
+ entries: {
+ [key: string]: Entry;
+ };
+}
+
+@customElement('list-component')
+export class ListComponent extends LitElement {
+ @property({ type: String }) packageType: PackageType | null = null;
+
+ createRenderRoot() {
+ /**
+ * Render template without shadow DOM.
+ */
+ return this;
+ }
+
+ private _indexTask = new Task(this, {
+ task: async ([packageType]) => {
+ const response = (await fetch(INDEX_PATH)) as any;
+ const rawData: IndexInput = await response.json();
+ return (
+ Object.values(rawData.entries)
+ .filter(
+ entry =>
+ entry.id.endsWith('--default') &&
+ entry.tags.includes(`${TAG_PACKAGE_PREFIX}${packageType}`),
+ )
+ .map(entry => {
+ const redirectId = entry.tags
+ .find(tag => tag.startsWith(TAG_REDIRECT_PREFIX))
+ ?.replace(TAG_REDIRECT_PREFIX, '');
+
+ return {
+ ...entry,
+ title: getTitleFromPath(entry.title),
+ href: getDocsPath(redirectId ?? entry.id),
+ } as Entry;
+ })
+ // Sort to re-order with stories inside folder
+ .sort((a, b) => {
+ if (a.title > b.title) {
+ return 1;
+ }
+ if (a.title < b.title) {
+ return -1;
+ }
+ return 0;
+ })
+ );
+ },
+ args: () => [this.packageType],
+ });
+
+ render() {
+ return this._indexTask.render({
+ pending: () => html`Loading…
`,
+ complete: entries => html`
+
+ `,
+ error: e => html`Error: ${e}
`,
+ });
+ }
+}
+
+function getTitleFromPath(path: string) {
+ return path.split('/').at(-1);
+}
+
+function getDocsPath(id: string) {
+ const idWithoutSuffix = id.split('--')[0];
+ return `/?path=/docs/${idWithoutSuffix}--docs`;
+}
diff --git a/packages/documentation/types/package.ts b/packages/documentation/types/package.ts
index e4382a6fd9..a6c2a69237 100644
--- a/packages/documentation/types/package.ts
+++ b/packages/documentation/types/package.ts
@@ -3,5 +3,7 @@ export enum PackageType {
Wc = 'WebComponents',
Angular = 'Angular',
React = 'React',
+ InternetHeader = 'InternetHeader',
+ IntranetHeader = 'IntranetHeader',
Assets = 'Assets',
}
diff --git a/packages/documentation/types/storybook.ts b/packages/documentation/types/storybook.ts
index 67a46b2f82..7aecb8235a 100644
--- a/packages/documentation/types/storybook.ts
+++ b/packages/documentation/types/storybook.ts
@@ -6,6 +6,8 @@ export interface MetaExtended extends Meta {
title: string; // Make title required
}
+export type TagPackagePrefix = K extends string ? `package:${K}` : K;
+
export interface MetaComponent extends MetaExtended {
- tags: [PackageType, ...string[]];
+ tags: [TagPackagePrefix, ...string[]];
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 834a35ca21..bf93a2d689 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -510,6 +510,9 @@ importers:
'@geometricpanda/storybook-addon-badges':
specifier: 2.0.1
version: 2.0.1(@storybook/blocks@7.6.12)(@storybook/components@7.6.12)(@storybook/core-events@7.6.12)(@storybook/manager-api@7.6.12)(@storybook/preview-api@7.6.12)(@storybook/theming@7.6.12)(@storybook/types@7.6.12)(react-dom@18.2.0)(react@18.2.0)
+ '@lit/task':
+ specifier: 1.0.0
+ version: 1.0.0
'@open-wc/lit-helpers':
specifier: 0.6.0
version: 0.6.0(lit@3.1.2)
@@ -5459,6 +5462,12 @@ packages:
'@lit-labs/ssr-dom-shim': 1.2.0
dev: true
+ /@lit/task@1.0.0:
+ resolution: {integrity: sha512-7jocGBh3yGlo3kKxQggZph2txK4X5GYNWp2FAsmV9u2spzUypwrzRzXe8I72icAb02B00+k2nlvxVcrQB6vyrw==}
+ dependencies:
+ '@lit/reactive-element': 2.0.4
+ dev: true
+
/@manypkg/find-root@1.1.0:
resolution: {integrity: sha512-mki5uBvhHzO8kYYix/WRy2WX8S3B5wdVSc9D6KcU5lQNglP2yt58/VfLuAK49glRXChosY8ap2oJ1qgma3GUVA==}
dependencies:
From be448619a7d9bd804d21d62efa0d612155ba67d9 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Wed, 6 Mar 2024 13:09:27 +0100
Subject: [PATCH 33/36] Fix warning
---
packages/documentation/src/shared/tile/tile.component.ts | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/documentation/src/shared/tile/tile.component.ts b/packages/documentation/src/shared/tile/tile.component.ts
index 2e4527c5d9..fa089a52cc 100644
--- a/packages/documentation/src/shared/tile/tile.component.ts
+++ b/packages/documentation/src/shared/tile/tile.component.ts
@@ -2,7 +2,7 @@ import { css, LitElement, nothing, unsafeCSS } from 'lit';
import { html, unsafeStatic } from 'lit/static-html.js';
import { customElement, property } from 'lit/decorators.js';
import { spread } from '@open-wc/lit-helpers';
-import Styles from './tile.component.scss';
+import Styles from './tile.component.scss?inline';
@customElement('ti-le')
export class TileComponent extends LitElement {
From 0f75be21faa0133598f499dcbaaf0856e07c39f4 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Wed, 6 Mar 2024 13:13:56 +0100
Subject: [PATCH 34/36] Fix react map missing key error
---
.../src/stories/getting-started/angular/angular.docs.mdx | 4 ++--
packages/documentation/src/stories/home.docs.mdx | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
index dad481280e..1db2cd500e 100644
--- a/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/angular/angular.docs.mdx
@@ -20,8 +20,8 @@ In the design-system team, we believe that the [Web Components](https://develope
Currently, we are providing some of our packages with those technologies:
{packages.filter(pkg => pkg.type === PackageType.Wc).map((p => (
-
-
+
+
{p.version}
diff --git a/packages/documentation/src/stories/home.docs.mdx b/packages/documentation/src/stories/home.docs.mdx
index 5eb0f6a4a0..cad0d43198 100644
--- a/packages/documentation/src/stories/home.docs.mdx
+++ b/packages/documentation/src/stories/home.docs.mdx
@@ -12,8 +12,8 @@ import { technologies } from './home.data';
Packages & Resources
{packages.map(p => (
-
-
+
+
{p.version}
@@ -103,7 +103,7 @@ import { technologies } from './home.data';
{technologies.map(t => (
-
+
{t.name}
From 2783b2b9321b90ee12808707765bd158009e1052 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Wed, 6 Mar 2024 13:18:43 +0100
Subject: [PATCH 35/36] Fix cannot appear as a descendant of
---
.../stories/getting-started/packages/styles/styles.docs.mdx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/packages/documentation/src/stories/getting-started/packages/styles/styles.docs.mdx b/packages/documentation/src/stories/getting-started/packages/styles/styles.docs.mdx
index ad0e3a1708..ff190f2f59 100644
--- a/packages/documentation/src/stories/getting-started/packages/styles/styles.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/packages/styles/styles.docs.mdx
@@ -67,9 +67,9 @@ Import one of our stylesheets into your project (for example into your `/src/sty
Use the SCSS core for your custom styles and make sure you're always using the most up to date definitions:
-
+
NOTE: The core file itself, does not produce any CSS output. It only contains variables, functions
and mixins.
-
+
From 4d57ef40f9796e7625ce96f2ecae1c4885f0fcc6 Mon Sep 17 00:00:00 2001
From: imagoiq <12294151+imagoiq@users.noreply.github.com>
Date: Mon, 11 Mar 2024 11:27:11 +0100
Subject: [PATCH 36/36] Fix title and change column order
---
.../getting-started/introduction.docs.mdx | 24 +++++++++----------
pnpm-lock.yaml | 2 +-
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/packages/documentation/src/stories/getting-started/introduction.docs.mdx b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
index 65d9873114..83c25cc289 100644
--- a/packages/documentation/src/stories/getting-started/introduction.docs.mdx
+++ b/packages/documentation/src/stories/getting-started/introduction.docs.mdx
@@ -7,7 +7,7 @@ import './list-component';
-# Getting started
+# Introduction
Welcome to the Swiss post design system world!
@@ -19,23 +19,27 @@ The design-system is formed with several packages and different compatibilities
Compatibilities between components and frameworks and which package is needed
-
+
- Base + …
Component
- JavaScript
+ Base + …
+ JavaScript (Vanilla)
Angular
React
+
+ Internet-header:
+
+
{[packages.find(pkg => pkg.name === 'Styles')].map((p => (
@@ -44,10 +48,6 @@ The design-system is formed with several packages and different compatibilities
)))}
-
- Internet-header:
-
-
{[packages.find(pkg => pkg.name === 'Internet-Header')].map((p => (
@@ -61,7 +61,7 @@ The design-system is formed with several packages and different compatibilities
TBD
- Intranet-header
+ Intranet-header
N/A
{[packages.find(pkg => pkg.name === 'Intranet-Header')].map((p => (
@@ -74,7 +74,7 @@ The design-system is formed with several packages and different compatibilities
N/A
-
+
Web Components:
@@ -97,7 +97,7 @@ The design-system is formed with several packages and different compatibilities
TBD
-
+
Angular components:
@@ -108,7 +108,7 @@ The design-system is formed with several packages and different compatibilities
N/A
-
+
HTML components:
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index bf93a2d689..d44a8c0216 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1714,7 +1714,7 @@ packages:
'@angular/core': 16.2.12
rxjs: ^6.5.3 || ^7.4.0
dependencies:
- '@angular/core': 16.2.12(rxjs@7.8.1)(zone.js@0.14.3)
+ '@angular/core': 16.2.12(rxjs@7.8.1)(zone.js@0.13.0)
rxjs: 7.8.1
tslib: 2.6.2
dev: false