From d29e99a9608f3525c3d42b8a5344271dfbd9f227 Mon Sep 17 00:00:00 2001 From: Gery Hirschfeld Date: Thu, 21 Mar 2024 09:09:27 +0100 Subject: [PATCH] fix type declarations --- .changeset/nasty-tigers-fold.md | 5 +++++ .changeset/red-llamas-cover.md | 5 +++++ .changeset/young-suns-help.md | 5 +++++ .../components/bal-accordion/bal-accordion.stories.ts | 2 +- docs/stories/components/bal-checkbox/bal-checkbox.stories.ts | 2 +- docs/stories/components/bal-icon/bal-icon.stories.ts | 2 +- docs/stories/components/bal-radio/bal-radio.stories.ts | 2 +- docs/stories/components/bal-stack/bal-stack.stories.ts | 2 +- packages/brand-icons/package.json | 4 +--- packages/icons/package.json | 5 +++-- packages/maps/package.json | 5 +++-- packages/table/package.json | 1 + tsconfig.base.json | 3 +++ 13 files changed, 31 insertions(+), 12 deletions(-) create mode 100644 .changeset/nasty-tigers-fold.md create mode 100644 .changeset/red-llamas-cover.md create mode 100644 .changeset/young-suns-help.md diff --git a/.changeset/nasty-tigers-fold.md b/.changeset/nasty-tigers-fold.md new file mode 100644 index 0000000000..10f34ce913 --- /dev/null +++ b/.changeset/nasty-tigers-fold.md @@ -0,0 +1,5 @@ +--- +'@baloise/ds-core': patch +--- + +**maps**: include type declarations diff --git a/.changeset/red-llamas-cover.md b/.changeset/red-llamas-cover.md new file mode 100644 index 0000000000..1b21dd9a62 --- /dev/null +++ b/.changeset/red-llamas-cover.md @@ -0,0 +1,5 @@ +--- +'@baloise/ds-core': patch +--- + +**brand-icons**: include type declarations diff --git a/.changeset/young-suns-help.md b/.changeset/young-suns-help.md new file mode 100644 index 0000000000..1e38a38ecc --- /dev/null +++ b/.changeset/young-suns-help.md @@ -0,0 +1,5 @@ +--- +'@baloise/ds-core': patch +--- + +**icon**: include type declarations diff --git a/docs/stories/components/bal-accordion/bal-accordion.stories.ts b/docs/stories/components/bal-accordion/bal-accordion.stories.ts index d18cbf40b4..92ba0aeae9 100644 --- a/docs/stories/components/bal-accordion/bal-accordion.stories.ts +++ b/docs/stories/components/bal-accordion/bal-accordion.stories.ts @@ -9,7 +9,7 @@ import { StoryFactory, lorem1, } from '../../utils' -import { balBrandIconCarGreen } from '@baloise/ds-brand-icons' +import { balBrandIconCarGreen } from '@baloise/ds-brand-icons/dist' type Args = JSX.BalAccordion & { content: string } diff --git a/docs/stories/components/bal-checkbox/bal-checkbox.stories.ts b/docs/stories/components/bal-checkbox/bal-checkbox.stories.ts index 83b9ba9281..6b12177517 100644 --- a/docs/stories/components/bal-checkbox/bal-checkbox.stories.ts +++ b/docs/stories/components/bal-checkbox/bal-checkbox.stories.ts @@ -1,7 +1,7 @@ import type { JSX } from '@baloise/ds-core' import type { Meta } from '@storybook/html' import { props, withRender, withContent, withDefaultContent, withComponentControls, StoryFactory } from '../../utils' -import { balBrandIconCarGreen, balBrandIconCarRed, balBrandIconCarPurple } from '@baloise/ds-brand-icons' +import { balBrandIconCarGreen, balBrandIconCarRed, balBrandIconCarPurple } from '@baloise/ds-brand-icons/dist' type Args = JSX.BalCheckbox & { content: string } diff --git a/docs/stories/components/bal-icon/bal-icon.stories.ts b/docs/stories/components/bal-icon/bal-icon.stories.ts index 624ffa2205..fd1494e099 100644 --- a/docs/stories/components/bal-icon/bal-icon.stories.ts +++ b/docs/stories/components/bal-icon/bal-icon.stories.ts @@ -1,5 +1,5 @@ import type { JSX } from '@baloise/ds-core' -import { balBrandIconCarCrashWithAnimalGreen } from '@baloise/ds-brand-icons' +import { balBrandIconCarCrashWithAnimalGreen } from '@baloise/ds-brand-icons/dist' import type { Meta } from '@storybook/html' import { props, withRender, withContent, withDefaultContent, withComponentControls, StoryFactory } from '../../utils' diff --git a/docs/stories/components/bal-radio/bal-radio.stories.ts b/docs/stories/components/bal-radio/bal-radio.stories.ts index 86e2fd5aff..1ffd8f8536 100644 --- a/docs/stories/components/bal-radio/bal-radio.stories.ts +++ b/docs/stories/components/bal-radio/bal-radio.stories.ts @@ -1,7 +1,7 @@ import type { JSX } from '@baloise/ds-core' import type { Meta } from '@storybook/html' import { props, withRender, withComponentControls, StoryFactory } from '../../utils' -import { balBrandIconCarGreen, balBrandIconCarRed, balBrandIconCarPurple } from '@baloise/ds-brand-icons' +import { balBrandIconCarGreen, balBrandIconCarRed, balBrandIconCarPurple } from '@baloise/ds-brand-icons/dist' type Args = JSX.BalRadio & { content: string } diff --git a/docs/stories/components/bal-stack/bal-stack.stories.ts b/docs/stories/components/bal-stack/bal-stack.stories.ts index ec49545455..628f13b17b 100644 --- a/docs/stories/components/bal-stack/bal-stack.stories.ts +++ b/docs/stories/components/bal-stack/bal-stack.stories.ts @@ -5,7 +5,7 @@ import { balBrandIconPiggyBankPurple, balBrandIconInvestSaveChfRed, balBrandIconSafeSavingChildTangerine, -} from '@baloise/ds-brand-icons' +} from '@baloise/ds-brand-icons/dist' type Args = JSX.BalStack & { content: string } diff --git a/packages/brand-icons/package.json b/packages/brand-icons/package.json index 635c6cf649..84431c4d4c 100644 --- a/packages/brand-icons/package.json +++ b/packages/brand-icons/package.json @@ -12,7 +12,5 @@ "homepage": "https://design.baloise.dev", "license": "Apache-2.0", "type": "module", - "types": "dist/index.esm.d.ts", - "module": "dist/index.esm.js", - "main": "dist/index.esm.js" + "types": "./index.esm.d.ts" } diff --git a/packages/icons/package.json b/packages/icons/package.json index c7386887aa..349f2e1ee6 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -9,7 +9,8 @@ "publishConfig": { "access": "public" }, - "type": "module", "homepage": "https://design.baloise.dev", - "license": "Apache-2.0" + "license": "Apache-2.0", + "type": "module", + "types": "./index.esm.d.ts" } diff --git a/packages/maps/package.json b/packages/maps/package.json index 939a0a5fb0..ec1e539d1c 100644 --- a/packages/maps/package.json +++ b/packages/maps/package.json @@ -9,7 +9,8 @@ "publishConfig": { "access": "public" }, - "type": "module", "homepage": "https://design.baloise.dev", - "license": "Apache-2.0" + "license": "Apache-2.0", + "type": "module", + "types": "./index.esm.d.ts" } diff --git a/packages/table/package.json b/packages/table/package.json index d91138aaee..70e42676a9 100644 --- a/packages/table/package.json +++ b/packages/table/package.json @@ -13,6 +13,7 @@ "license": "Apache-2.0", "type": "commonjs", "main": "./dist/index.cjs", + "types": "./dist/index.cjs.d.ts", "module": "./dist/index.js", "styles": "./css/design-system-table.css", "files": [ diff --git a/tsconfig.base.json b/tsconfig.base.json index 70e031ad6f..14c67197ce 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -40,6 +40,9 @@ "@baloise/ds-icons": [ "packages/icons/src/index.ts" ], + "@baloise/ds-brand-icons": [ + "packages/brand-icons/src/index.ts" + ], "@baloise/ds-maps": [ "packages/maps/src/index.ts" ],