Skip to content

Commit

Permalink
Make type globally declared so it's easier to move files
Browse files Browse the repository at this point in the history
  • Loading branch information
imagoiq committed Mar 5, 2024
1 parent 5871ddb commit ff5c221
Show file tree
Hide file tree
Showing 78 changed files with 23 additions and 88 deletions.
Original file line number Diff line number Diff line change
@@ -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<HTMLPostAccordionElement & HTMLPostCollapsibleElementEventMap> = {
id: '4d1b4185-e04d-494a-ab38-2b56c1778b0b',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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<HTMLPostAlertElement> = {
id: '8fd36823-966e-46a8-8432-a4439f6e208f',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: 'cb3ba4a2-1265-4a20-b184-b85443146efa',
Expand Down
Original file line number Diff line number Diff line change
@@ -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<HTMLPostCollapsibleElement> = {
id: '6a91848c-16ec-4a23-bc45-51c797b5b2c3',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: '63113d0a-6ceb-472c-ac6a-729404e862ca',
title: 'Components/Dropdown',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../../types/storybook';

const meta: MetaExtended = {
id: 'e5a39d4f-4448-4398-9380-7c9fcae4a514',
Expand Down
Original file line number Diff line number Diff line change
@@ -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<string, undefined | boolean> = {
'null': undefined,
Expand Down
Original file line number Diff line number Diff line change
@@ -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<string, undefined | boolean> = {
'null': undefined,
Expand Down
Original file line number Diff line number Diff line change
@@ -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<string, undefined | boolean> = {
'null': undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, undefined | boolean> = {
'null': undefined,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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<string, undefined | boolean> = {
'null': undefined,
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<HTMLSwisspostInternetBreadcrumbsElement> = {
id: '4347e5bf-8bf2-4f44-9075-9faaa53591ed',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: 'd59a459b-6f14-47c6-9f98-a36a3f79a6e3',
title: 'Components/Intranet Header',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: 'caa89695-5c39-4cb5-8e62-579d918cbd2f',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: '446648d9-0360-4dec-a6f4-87f2f28b5f33',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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);

Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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<HTMLPostTabsElement> = {
id: 'bb1291ca-4dbb-450c-a15f-596836d9f39e',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: 'a4d9f996-6e77-4fad-bb19-40fad1bb7a1d',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: '0456901c-3713-4f1f-b592-1f4dbd65a500',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: '46da78e8-e83b-4ca1-aaf6-bbc662efef14',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: 'e869afc1-3c50-4c20-a495-3d846f7a759e',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: '5704bdc4-c5b5-45e6-b123-c54d01fce2f1',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../../types/storybook';

const meta: MetaExtended = {
id: '20af6e2b-32b1-42ef-a187-b026aea7fe13',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { StoryObj } from '@storybook/web-components';
import { MetaExtended } from '../../../../types/storybook';

const meta: MetaExtended = {
id: '677cfabf-dbf0-4de2-ad07-6d5bfb9e2375',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
Loading

0 comments on commit ff5c221

Please sign in to comment.