diff --git a/packages/documentation/.storybook/styles/preview.scss b/packages/documentation/.storybook/styles/preview.scss index 17ac5c0106..5a1f5cbe93 100644 --- a/packages/documentation/.storybook/styles/preview.scss +++ b/packages/documentation/.storybook/styles/preview.scss @@ -1,6 +1,6 @@ // importing the complete styles package scss // TODO: replace intranet.scss with index.scss as soon as the issues in the portal.scss are fixed -@use '@swisspost/design-system-styles/intranet.scss'; +@use '@swisspost/design-system-styles/post-external.scss'; @use '@swisspost/design-system-styles/core.scss' as post; @use '@swisspost/design-system-styles/mixins/utilities'; @use '@swisspost/internet-header/dist/swisspost-internet-header/swisspost-internet-header.css'; diff --git a/packages/documentation/package.json b/packages/documentation/package.json index 549ca73209..d7d65ddcc4 100644 --- a/packages/documentation/package.json +++ b/packages/documentation/package.json @@ -28,10 +28,10 @@ "lint": "eslint **/*.{js,ts,tsx,mdx}" }, "dependencies": { - "@swisspost/design-system-components": "workspace:8.0.0", - "@swisspost/design-system-components-react": "workspace:8.0.0", - "@swisspost/design-system-icons": "workspace:8.0.0", - "@swisspost/design-system-styles": "workspace:8.0.0", + "@swisspost/design-system-components": "workspace:*", + "@swisspost/design-system-components-react": "workspace:*", + "@swisspost/design-system-icons": "workspace:*", + "@swisspost/design-system-styles": "workspace:*", "@swisspost/internet-header": "workspace:1.14.3", "bootstrap": "5.3.3" }, @@ -53,8 +53,8 @@ "@storybook/types": "8.2.5", "@storybook/web-components": "8.2.5", "@storybook/web-components-vite": "8.2.5", - "@swisspost/design-system-components-angular": "workspace:8.0.0", - "@swisspost/design-system-intranet-header": "workspace:8.0.0", + "@swisspost/design-system-components-angular": "workspace:*", + "@swisspost/design-system-intranet-header": "workspace:*", "@types/css-modules": "1.0.5", "@types/mdx": "2.0.13", "@types/react": "18.3.3", diff --git a/packages/styles/package.json b/packages/styles/package.json index 2e376f0027..7b06fa2996 100644 --- a/packages/styles/package.json +++ b/packages/styles/package.json @@ -44,7 +44,7 @@ }, "dependencies": { "@popperjs/core": "2.11.8", - "@swisspost/design-system-tokens": "workspace:0.1.0", + "@swisspost/design-system-tokens": "workspace:*", "bootstrap": "5.3.3" }, "devDependencies": { diff --git a/packages/styles/src/placeholders/_modes.scss b/packages/styles/src/placeholders/_modes.scss index 7295368277..01d3cb6be0 100644 --- a/packages/styles/src/placeholders/_modes.scss +++ b/packages/styles/src/placeholders/_modes.scss @@ -1,5 +1,5 @@ @use '@swisspost/design-system-tokens/mode' as mode; -@use '../mixins/tokens'; +@use './../mixins/tokens'; %post-light { @include tokens.from(mode.$post-light); diff --git a/packages/styles/src/post-external.scss b/packages/styles/src/post-external.scss index 6c670c2d63..005f73e0ae 100644 --- a/packages/styles/src/post-external.scss +++ b/packages/styles/src/post-external.scss @@ -3,4 +3,4 @@ @use './tokens/semantic/external'; @use './tokens/semantic/post-theme'; -@use './components'; +@use 'components'; diff --git a/packages/styles/src/post-internal.scss b/packages/styles/src/post-internal.scss index ccc031e8fa..aac9a0ac11 100644 --- a/packages/styles/src/post-internal.scss +++ b/packages/styles/src/post-internal.scss @@ -3,4 +3,4 @@ @use './tokens/semantic/internal'; @use './tokens/semantic/post-theme'; -@use './components'; +@use 'components'; diff --git a/packages/styles/src/tokens/semantic/_device.scss b/packages/styles/src/tokens/semantic/_device.scss index 32cd36d8db..c5e5485150 100644 --- a/packages/styles/src/tokens/semantic/_device.scss +++ b/packages/styles/src/tokens/semantic/_device.scss @@ -1,5 +1,5 @@ @use '@swisspost/design-system-tokens/device' as device; -@use '../../mixins/tokens'; +@use './../../mixins/tokens'; :root { @include tokens.from(device.$post-mobile); diff --git a/packages/styles/src/tokens/semantic/_external.scss b/packages/styles/src/tokens/semantic/_external.scss index fd7664cded..8ab03b4a6f 100644 --- a/packages/styles/src/tokens/semantic/_external.scss +++ b/packages/styles/src/tokens/semantic/_external.scss @@ -1,5 +1,5 @@ @use '@swisspost/design-system-tokens/channel' as channel; -@use '../../mixins/tokens'; +@use './../../mixins/tokens'; :root { @include tokens.from(channel.$post-edk); diff --git a/packages/styles/src/tokens/semantic/_internal.scss b/packages/styles/src/tokens/semantic/_internal.scss index 3946e0de7f..8442a64853 100644 --- a/packages/styles/src/tokens/semantic/_internal.scss +++ b/packages/styles/src/tokens/semantic/_internal.scss @@ -1,5 +1,5 @@ @use '@swisspost/design-system-tokens/channel' as channel; -@use '../../mixins/tokens'; +@use './../../mixins/tokens'; :root { @include tokens.from(channel.$post-idk); diff --git a/packages/styles/src/tokens/semantic/_modes.scss b/packages/styles/src/tokens/semantic/_modes.scss index ef91f4765e..f9189dd726 100644 --- a/packages/styles/src/tokens/semantic/_modes.scss +++ b/packages/styles/src/tokens/semantic/_modes.scss @@ -1,4 +1,4 @@ -@use '../../placeholders/modes'; +@use './../../placeholders/modes'; :root, [data-color-mode='light'] { diff --git a/packages/styles/src/tokens/semantic/_post-theme.scss b/packages/styles/src/tokens/semantic/_post-theme.scss index 4f8ec722fb..b0c3c12aca 100644 --- a/packages/styles/src/tokens/semantic/_post-theme.scss +++ b/packages/styles/src/tokens/semantic/_post-theme.scss @@ -1,5 +1,5 @@ @use '@swisspost/design-system-tokens/theme' as themes; -@use '../../mixins/tokens'; +@use './../../mixins/tokens'; :root { @include tokens.from(themes.$post-theme); diff --git a/packages/tokens/package.json b/packages/tokens/package.json index 19f7ca005c..5d553eb579 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -27,7 +27,7 @@ ], "publishConfig": { "directory": "./dist", - "access": "restricted", + "access": "public", "linkDirectory": true }, "devDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0bc2bba69b..2296452ab4 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -469,16 +469,16 @@ importers: packages/documentation: dependencies: '@swisspost/design-system-components': - specifier: workspace:8.0.0 + specifier: workspace:* version: link:../components '@swisspost/design-system-components-react': - specifier: workspace:8.0.0 + specifier: workspace:* version: link:../components-react '@swisspost/design-system-icons': - specifier: workspace:8.0.0 + specifier: workspace:* version: link:../icons '@swisspost/design-system-styles': - specifier: workspace:8.0.0 + specifier: workspace:* version: link:../styles/dist '@swisspost/internet-header': specifier: workspace:1.14.3 @@ -539,10 +539,10 @@ importers: specifier: 8.2.5 version: 8.2.5(lit@3.1.4)(storybook@8.2.5(@babel/preset-env@7.24.7(@babel/core@7.24.9)))(typescript@5.5.4)(vite@5.3.2(@types/node@20.14.12)(less@4.2.0)(sass@1.77.8)(terser@5.29.2)) '@swisspost/design-system-components-angular': - specifier: workspace:8.0.0 + specifier: workspace:* version: link:../components-angular/dist/components '@swisspost/design-system-intranet-header': - specifier: workspace:8.0.0 + specifier: workspace:* version: link:../intranet-header-workspace/dist/intranet-header '@types/css-modules': specifier: 1.0.5 @@ -787,7 +787,7 @@ importers: version: 2.0.4 ts-jest: specifier: 29.2.3 - version: 29.2.3(@babel/core@7.24.9)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.9))(jest@29.7.0(@types/node@20.14.12)(ts-node@10.9.2(@types/node@20.14.12)(typescript@5.5.4)))(typescript@5.5.4) + version: 29.2.3(@babel/core@7.24.9)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.9))(jest@29.7.0(@types/node@20.14.12))(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 @@ -19442,7 +19442,6 @@ snapshots: - babel-plugin-macros - supports-color - ts-node - optional: true jest@29.7.0(@types/node@20.14.12)(ts-node@10.9.2(@types/node@20.14.12)(typescript@5.5.4)): dependencies: @@ -23154,6 +23153,25 @@ snapshots: '@jest/types': 29.6.3 babel-jest: 29.7.0(@babel/core@7.24.9) + ts-jest@29.2.3(@babel/core@7.24.9)(@jest/transform@29.7.0)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.9))(jest@29.7.0(@types/node@20.14.12))(typescript@5.5.4): + dependencies: + bs-logger: 0.2.6 + ejs: 3.1.10 + fast-json-stable-stringify: 2.1.0 + jest: 29.7.0(@types/node@20.14.12) + jest-util: 29.7.0 + json5: 2.2.3 + lodash.memoize: 4.1.2 + make-error: 1.3.6 + semver: 7.6.2 + typescript: 5.5.4 + yargs-parser: 21.1.1 + optionalDependencies: + '@babel/core': 7.24.9 + '@jest/transform': 29.7.0 + '@jest/types': 29.6.3 + babel-jest: 29.7.0(@babel/core@7.24.9) + ts-node@10.9.2(@types/node@20.12.7)(typescript@5.5.4): dependencies: '@cspotcode/source-map-support': 0.8.1