From ff5c22199647716b9d831615845348909d063ece Mon Sep 17 00:00:00 2001 From: imagoiq <12294151+imagoiq@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:25:27 +0100 Subject: [PATCH] Make type globally declared so it's easier to move files --- .../components/accordion/accordion.stories.ts | 1 - .../alert/standard-html/alert.stories.ts | 1 - .../alert/web-component/post-alert.stories.ts | 1 - .../src/stories/components/badge/badge.stories.ts | 1 - .../components/blockquote/blockquote.stories.ts | 1 - .../button-group/button-group.stories.ts | 1 - .../stories/components/button/button.stories.ts | 1 - .../cards/card-button/card-button.stories.ts | 1 - .../stories/components/cards/card/card.stories.ts | 1 - .../cards/product-card/product-card.stories.ts | 1 - .../components/carousel/carousel.stories.ts | 1 - .../components/collapsible/collapsible.stories.ts | 1 - .../components/datepicker/datepicker.stories.ts | 1 - .../components/dropdown/dropdown.stories.ts | 2 -- .../components/forms/checkbox/checkbox.stories.ts | 1 - .../components/forms/choice-card/choice-card.ts | 1 - .../forms/custom-select/custom-select.stories.ts | 1 - .../components/forms/input/input.stories.ts | 1 - .../components/forms/radio/radio.stories.ts | 1 - .../components/forms/range/range.stories.ts | 1 - .../components/forms/select/select.stories.ts | 1 - .../components/forms/switch/switch.stories.ts | 1 - .../components/forms/textarea/textarea.stories.ts | 1 - .../stories/components/heading/heading.stories.ts | 1 - .../src/stories/components/icons/icon.stories.ts | 1 - .../breadcrumbs/breadcrumbs.stories.ts | 1 - .../internet-header/footer/footer.stories.ts | 1 - .../internet-header/header/header.stories.ts | 1 - .../intranet-header/intranet-header.stories.ts | 2 -- .../src/stories/components/modal/modal.stories.ts | 1 - .../notification-overlay.stories.ts | 1 - .../components/pagination/pagination.stories.ts | 1 - .../stories/components/popover/popover.stories.ts | 1 - .../components/progressbar/progressbar.stories.ts | 1 - .../components/rating/post-rating.stories.ts | 1 - .../stories/components/spinner/spinner.stories.ts | 1 - .../stories/components/stepper/stepper.stories.ts | 1 - .../subnavigation/subnavigation.stories.ts | 1 - .../src/stories/components/table/table.stories.ts | 1 - .../src/stories/components/tabs/tabs.stories.ts | 1 - .../components/timepicker/timepicker.stories.ts | 1 - .../src/stories/components/toast/toast.stories.ts | 1 - .../stories/components/tooltip/tooltip.stories.ts | 1 - .../topic-teaser/topic-teaser.stories.ts | 1 - .../components/typeahead/typeahead.stories.ts | 1 - .../accessibility/accessibility.stories.ts | 1 - .../src/stories/foundation/color/color.stories.ts | 1 - .../foundation/elevation/elevation.stories.ts | 1 - .../foundation/icons/search-icons.stories.ts | 1 - .../layout/breakpoints/breakpoints.stories.ts | 1 - .../foundation/layout/columns/columns.stories.ts | 1 - .../layout/containers/containers.stories.ts | 1 - .../stories/foundation/layout/grid/grid.stories.ts | 1 - .../foundation/typography/typography.stories.ts | 1 - .../getting-started/angular/angular.docs.mdx | 2 +- .../getting-started/angular/angular.stories.ts | 1 - .../compatibility/compatibility.stories.ts | 1 - .../getting-started/introduction.stories.ts | 1 - .../components-angular.stories.ts | 1 - .../packages/components/components.stories.ts | 1 - .../packages/icons/package-icons.stories.ts | 1 - .../internet-header/internet-header.stories.ts | 1 - .../intranet-header/intranet-header.stories.ts | 1 - .../getting-started/packages/packages.data.ts | 8 -------- .../packages/styles/styles.stories.ts | 1 - packages/documentation/src/stories/home.stories.ts | 1 - .../stories/misc/changelog/changelog.stories.ts | 1 - .../migration-guide/migration-guide.stories.ts | 1 - .../src/stories/misc/versions/versions.stories.ts | 1 - .../src/stories/patterns/forms/forms.stories.ts | 1 - .../stories/patterns/metadata/metadata.stories.ts | 1 - .../utilities/background/background.stories.ts | 1 - .../src/stories/utilities/list/list.stories.ts | 1 - .../src/stories/utilities/sizing/sizing.stories.ts | 1 - .../stories/utilities/spacing/spacing.stories.ts | 1 - .../src/stories/utilities/text/text.stories.ts | 1 - packages/documentation/types/package.d.ts | 11 +++++++++++ packages/documentation/types/storybook.ts | 14 +++++++++++--- 78 files changed, 23 insertions(+), 88 deletions(-) create mode 100644 packages/documentation/types/package.d.ts diff --git a/packages/documentation/src/stories/components/accordion/accordion.stories.ts b/packages/documentation/src/stories/components/accordion/accordion.stories.ts index 444e6bc287..5129560b10 100644 --- a/packages/documentation/src/stories/components/accordion/accordion.stories.ts +++ b/packages/documentation/src/stories/components/accordion/accordion.stories.ts @@ -1,7 +1,6 @@ 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: 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..134ccd0cb7 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,6 @@ 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: 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..3a36379be0 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,6 @@ import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components'; import { html } from 'lit'; import { spreadArgs } from '../../../../utils'; -import { MetaExtended } from '../../../../../types/storybook'; 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..4e07a7a4f3 100644 --- a/packages/documentation/src/stories/components/badge/badge.stories.ts +++ b/packages/documentation/src/stories/components/badge/badge.stories.ts @@ -2,7 +2,6 @@ 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'; 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..bda0b48238 100644 --- a/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts +++ b/packages/documentation/src/stories/components/blockquote/blockquote.stories.ts @@ -1,6 +1,5 @@ import type { Args, StoryObj } from '@storybook/web-components'; import { html, unsafeStatic } from 'lit/static-html.js'; -import { MetaExtended } from '../../../../types/storybook'; 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..c51188a1fe 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,6 @@ 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: 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..15cb80239a 100644 --- a/packages/documentation/src/stories/components/button/button.stories.ts +++ b/packages/documentation/src/stories/components/button/button.stories.ts @@ -2,7 +2,6 @@ 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: 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..9ad5b045b8 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,6 @@ 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: 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..c7a6402ad1 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,6 @@ 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: 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..419a6d8b8e 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,6 @@ 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: 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..cd6b499fbd 100644 --- a/packages/documentation/src/stories/components/carousel/carousel.stories.ts +++ b/packages/documentation/src/stories/components/carousel/carousel.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..4b4ada75ab 100644 --- a/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts +++ b/packages/documentation/src/stories/components/collapsible/collapsible.stories.ts @@ -1,7 +1,6 @@ import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components'; import { html } from 'lit'; import { spreadArgs } from '../../../utils'; -import { MetaExtended } from '../../../../types/storybook'; 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..3a9ec5749c 100644 --- a/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts +++ b/packages/documentation/src/stories/components/datepicker/datepicker.stories.ts @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; 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..2646e2fd95 100644 --- a/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts +++ b/packages/documentation/src/stories/components/dropdown/dropdown.stories.ts @@ -1,5 +1,3 @@ -import { MetaExtended } from '../../../../types/storybook'; - const meta: MetaExtended = { id: '63113d0a-6ceb-472c-ac6a-729404e862ca', title: 'Components/Dropdown', 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..3f71b8ee6d 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,6 @@ 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: 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..23409933e5 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,6 @@ 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: 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..e7413d40b5 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../../types/storybook'; 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..8434b82bee 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,5 @@ 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, 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..6f322e023d 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,6 @@ 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, 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..8dc75f7b29 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,6 @@ 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, 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..1f63570c56 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,6 @@ 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, 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..eddc596f41 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,6 @@ 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: 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..34562e4d38 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,6 @@ 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, diff --git a/packages/documentation/src/stories/components/heading/heading.stories.ts b/packages/documentation/src/stories/components/heading/heading.stories.ts index 66b240fed7..5d8ab493b5 100644 --- a/packages/documentation/src/stories/components/heading/heading.stories.ts +++ b/packages/documentation/src/stories/components/heading/heading.stories.ts @@ -1,6 +1,5 @@ import type { Args, StoryObj } from '@storybook/web-components'; import { html, unsafeStatic } from 'lit/static-html.js'; -import { MetaExtended } from '../../../../types/storybook'; 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..6519e53673 100644 --- a/packages/documentation/src/stories/components/icons/icon.stories.ts +++ b/packages/documentation/src/stories/components/icons/icon.stories.ts @@ -4,7 +4,6 @@ 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: 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..03375b4a8c 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,6 @@ 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: 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..b689ff128c 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,6 @@ 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: 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..4ac2176c1e 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,6 @@ 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: 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..3e1084f5a0 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,5 +1,3 @@ -import { MetaExtended } from '../../../../types/storybook'; - const meta: MetaExtended = { id: 'd59a459b-6f14-47c6-9f98-a36a3f79a6e3', title: 'Components/Intranet Header', diff --git a/packages/documentation/src/stories/components/modal/modal.stories.ts b/packages/documentation/src/stories/components/modal/modal.stories.ts index 81bf50687e..d265ee52ef 100644 --- a/packages/documentation/src/stories/components/modal/modal.stories.ts +++ b/packages/documentation/src/stories/components/modal/modal.stories.ts @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; 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..f3327856f5 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,4 @@ import type { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..b1bc8e2407 100644 --- a/packages/documentation/src/stories/components/pagination/pagination.stories.ts +++ b/packages/documentation/src/stories/components/pagination/pagination.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..d9fdd72f68 100644 --- a/packages/documentation/src/stories/components/popover/popover.stories.ts +++ b/packages/documentation/src/stories/components/popover/popover.stories.ts @@ -1,7 +1,6 @@ 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: 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..3eba8187b8 100644 --- a/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts +++ b/packages/documentation/src/stories/components/progressbar/progressbar.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..134c39f056 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,5 @@ import { Args, StoryObj } from '@storybook/web-components'; import { html, nothing } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; 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..b4d4aa6c1e 100644 --- a/packages/documentation/src/stories/components/spinner/spinner.stories.ts +++ b/packages/documentation/src/stories/components/spinner/spinner.stories.ts @@ -1,6 +1,5 @@ import type { Args, StoryObj } from '@storybook/web-components'; import { html } from 'lit/static-html.js'; -import { MetaExtended } from '../../../../types/storybook'; 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..7fc0f0d95b 100644 --- a/packages/documentation/src/stories/components/stepper/stepper.stories.ts +++ b/packages/documentation/src/stories/components/stepper/stepper.stories.ts @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; 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..72620d784b 100644 --- a/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts +++ b/packages/documentation/src/stories/components/subnavigation/subnavigation.stories.ts @@ -1,7 +1,6 @@ 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); diff --git a/packages/documentation/src/stories/components/table/table.stories.ts b/packages/documentation/src/stories/components/table/table.stories.ts index 831e05c470..3a957612f1 100644 --- a/packages/documentation/src/stories/components/table/table.stories.ts +++ b/packages/documentation/src/stories/components/table/table.stories.ts @@ -1,7 +1,6 @@ import type { Args, StoryObj } from '@storybook/web-components'; import { html } from 'lit'; import { mapClasses } from '../../../utils'; -import { MetaExtended } from '../../../../types/storybook'; 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..b5d55860fe 100644 --- a/packages/documentation/src/stories/components/tabs/tabs.stories.ts +++ b/packages/documentation/src/stories/components/tabs/tabs.stories.ts @@ -1,7 +1,6 @@ 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: 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..b9bcbec4e5 100644 --- a/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts +++ b/packages/documentation/src/stories/components/timepicker/timepicker.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..cb775c7670 100644 --- a/packages/documentation/src/stories/components/toast/toast.stories.ts +++ b/packages/documentation/src/stories/components/toast/toast.stories.ts @@ -1,7 +1,6 @@ import { useArgs } from '@storybook/preview-api'; import { Args, StoryContext, StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; 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..afff7b4cc0 100644 --- a/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts +++ b/packages/documentation/src/stories/components/tooltip/tooltip.stories.ts @@ -3,7 +3,6 @@ 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: 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..e4ccda683f 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,6 @@ import type { Args, StoryObj } from '@storybook/web-components'; import { html, TemplateResult } from 'lit'; import { mapClasses } from '../../../utils'; -import { MetaExtended } from '../../../../types/storybook'; 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..6aab00b780 100644 --- a/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts +++ b/packages/documentation/src/stories/components/typeahead/typeahead.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..e01b88f654 100644 --- a/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts +++ b/packages/documentation/src/stories/foundation/accessibility/accessibility.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..1fc09ae20c 100644 --- a/packages/documentation/src/stories/foundation/color/color.stories.ts +++ b/packages/documentation/src/stories/foundation/color/color.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..7cd5000f23 100644 --- a/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts +++ b/packages/documentation/src/stories/foundation/elevation/elevation.stories.ts @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; 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..85a8fb1cf7 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..4075e3ffdf 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../../types/storybook'; 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..d40f94060a 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,5 @@ import type { Args, StoryContext, StoryFn, StoryObj } from '@storybook/web-components'; import { html, nothing } from 'lit'; -import { MetaExtended } from '../../../../../types/storybook'; 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..f5fa4a7ee8 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,4 @@ import type { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../../types/storybook'; 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..14a36c8ced 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,5 @@ import { StoryContext, StoryFn, StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../../types/storybook'; 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..1b7f0671f8 100644 --- a/packages/documentation/src/stories/foundation/typography/typography.stories.ts +++ b/packages/documentation/src/stories/foundation/typography/typography.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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 a1938499f8..29063f2e68 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 } from '../packages/packages.data'; import '../../../shared/tile/tile.component'; import './angular.styles.scss'; 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..18557e2850 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..57113cbd87 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; const meta: MetaExtended = { id: '829f6c45-5734-4d55-b290-2c8a86a07b67', diff --git a/packages/documentation/src/stories/getting-started/introduction.stories.ts b/packages/documentation/src/stories/getting-started/introduction.stories.ts index 7a4ebebc21..ec33f8f96e 100644 --- a/packages/documentation/src/stories/getting-started/introduction.stories.ts +++ b/packages/documentation/src/stories/getting-started/introduction.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../types/storybook'; const meta: MetaExtended = { id: 'dfc70c3b-4726-406b-8a41-af5738c89d05', 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..f95f8153d6 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../../types/storybook'; 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..ec30d6c5dc 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../../types/storybook'; 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..4d9fe013c9 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../../types/storybook'; 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..0df95a2736 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../../types/storybook'; 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..cf6bd2fced 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../../types/storybook'; const meta: MetaExtended = { id: '7068be42-1a20-4a34-9e79-7fb7f9f2940f', diff --git a/packages/documentation/src/stories/getting-started/packages/packages.data.ts b/packages/documentation/src/stories/getting-started/packages/packages.data.ts index f21b3c0d3a..87f9c457d2 100644 --- a/packages/documentation/src/stories/getting-started/packages/packages.data.ts +++ b/packages/documentation/src/stories/getting-started/packages/packages.data.ts @@ -6,14 +6,6 @@ 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; 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..474257ed71 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../../types/storybook'; 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..f8d041497a 100644 --- a/packages/documentation/src/stories/home.stories.ts +++ b/packages/documentation/src/stories/home.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../types/storybook'; 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..716679abdf 100644 --- a/packages/documentation/src/stories/misc/changelog/changelog.stories.ts +++ b/packages/documentation/src/stories/misc/changelog/changelog.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..9add0ba19a 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,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..5883ff8f45 100644 --- a/packages/documentation/src/stories/misc/versions/versions.stories.ts +++ b/packages/documentation/src/stories/misc/versions/versions.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..87bcadea4b 100644 --- a/packages/documentation/src/stories/patterns/forms/forms.stories.ts +++ b/packages/documentation/src/stories/patterns/forms/forms.stories.ts @@ -1,6 +1,5 @@ import { StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; 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..7df8a67174 100644 --- a/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts +++ b/packages/documentation/src/stories/patterns/metadata/metadata.stories.ts @@ -1,5 +1,4 @@ import { StoryObj } from '@storybook/web-components'; -import { MetaExtended } from '../../../../types/storybook'; 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..c874f375ba 100644 --- a/packages/documentation/src/stories/utilities/background/background.stories.ts +++ b/packages/documentation/src/stories/utilities/background/background.stories.ts @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; 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..3b50186d81 100644 --- a/packages/documentation/src/stories/utilities/list/list.stories.ts +++ b/packages/documentation/src/stories/utilities/list/list.stories.ts @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; 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..50f33b2330 100644 --- a/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts +++ b/packages/documentation/src/stories/utilities/sizing/sizing.stories.ts @@ -2,7 +2,6 @@ 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; diff --git a/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts b/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts index 75ad495d02..ef036ec3b8 100644 --- a/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts +++ b/packages/documentation/src/stories/utilities/spacing/spacing.stories.ts @@ -3,7 +3,6 @@ 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); diff --git a/packages/documentation/src/stories/utilities/text/text.stories.ts b/packages/documentation/src/stories/utilities/text/text.stories.ts index 613266d9c7..fda4b5cd86 100644 --- a/packages/documentation/src/stories/utilities/text/text.stories.ts +++ b/packages/documentation/src/stories/utilities/text/text.stories.ts @@ -1,6 +1,5 @@ import type { StoryObj } from '@storybook/web-components'; import { html } from 'lit'; -import { MetaExtended } from '../../../../types/storybook'; const meta: MetaExtended = { id: 'c55681df-4d21-469d-a5b3-c67686e7c104', diff --git a/packages/documentation/types/package.d.ts b/packages/documentation/types/package.d.ts new file mode 100644 index 0000000000..fe2ab8724d --- /dev/null +++ b/packages/documentation/types/package.d.ts @@ -0,0 +1,11 @@ +export {}; + +declare global { + 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..22b83d5d62 100644 --- a/packages/documentation/types/storybook.ts +++ b/packages/documentation/types/storybook.ts @@ -1,6 +1,14 @@ import { Args, Meta } from '@storybook/web-components'; -export interface MetaExtended extends Meta { - id: string; // Make id required - title: string; // Make title required +export {}; + +declare global { + interface MetaExtended extends Meta { + id: string; // Make id required + title: string; // Make title required + } + + interface MetaComponent extends MetaExtended { + packageType: PackageType; + } }