From 869f5c3f5953569496cc985666d84832e914be53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliz=C3=A9=20Debray?= <33580481+alizedebray@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:35:43 +0200 Subject: [PATCH 01/40] fix(styles): prevent utility API from creating unwanted classes (#3644) --- packages/styles/src/functions/_string.scss | 7 ++++- packages/styles/src/utilities/_mixins.scss | 25 +++++++----------- packages/styles/src/utilities/index.scss | 26 +++++++++++++------ .../styles/tests/functions/string.test.scss | 12 +++++++++ .../styles/tests/utilities/mixins.test.scss | 25 +++++++++++++++--- 5 files changed, 66 insertions(+), 29 deletions(-) diff --git a/packages/styles/src/functions/_string.scss b/packages/styles/src/functions/_string.scss index 1c79f06f99..4572699983 100644 --- a/packages/styles/src/functions/_string.scss +++ b/packages/styles/src/functions/_string.scss @@ -1,6 +1,11 @@ @use 'sass:string'; -@function replace($string, $term, $replacement: '') { +@function contains($string, $term) { + $index: string.index($string, $term); + @return if($index == null, false, true); +} + +@function replace($string, $term, $replacement) { $index: string.index($string, $term); @if $index { diff --git a/packages/styles/src/utilities/_mixins.scss b/packages/styles/src/utilities/_mixins.scss index 01e84ab529..6c98727479 100644 --- a/packages/styles/src/utilities/_mixins.scss +++ b/packages/styles/src/utilities/_mixins.scss @@ -1,22 +1,15 @@ +@use '../functions/string'; @use '../mixins/media'; @use '../variables/breakpoints'; -@mixin generate-utilities($properties, $value, $prefix, $suffix, $infix: '') { - .#{$prefix}#{$infix}#{$suffix} { - @each $property in $properties { - #{$property}: #{$value}; - } - } -} - -@mixin generate-responsive-utilities($properties, $value, $prefix, $suffix) { - @each $breakpoint, $min-width in breakpoints.$grid-breakpoints { - @if ($min-width == 0) { - @include generate-utilities($properties, $value, $prefix, $suffix); - } @else { - @include media.min($min-width) { - $infix: '-#{$breakpoint}'; - @include generate-utilities($properties, $value, $prefix, $suffix, $infix); +@mixin generate-utilities($group, $tokens, $properties, $prefix, $infix: '') { + @each $key, $value in $tokens { + @if (string.contains($key, 'post-utility-#{$group}')) { + $suffix: string.replace($key, 'post-utility-#{$group}', ''); + .#{$prefix}#{$infix}#{$suffix} { + @each $property in $properties { + #{$property}: #{$value} !important; + } } } } diff --git a/packages/styles/src/utilities/index.scss b/packages/styles/src/utilities/index.scss index 4faeb72b77..84aeed5e0d 100644 --- a/packages/styles/src/utilities/index.scss +++ b/packages/styles/src/utilities/index.scss @@ -1,6 +1,8 @@ @use 'sass:map'; @use '../functions/string'; +@use '../mixins/media'; +@use '../variables/breakpoints'; @use './mixins' as *; @use './variables' as *; @@ -15,15 +17,23 @@ $responsive: map.get($classesConfig, responsive); $prefixes: map.get($classesConfig, prefixes); - @each $key, $value in $tokens { - $suffix: string.replace($key, 'post-utility-#{$group}'); - - @each $prefix, $properties in $prefixes { - @if $responsive { - @include generate-responsive-utilities($properties, $value, $prefix, $suffix); - } @else { - @include generate-utilities($properties, $value, $prefix, $suffix); + @each $prefix, $properties in $prefixes { + @if $responsive { + @each $breakpoint, $min-width in breakpoints.$grid-breakpoints { + @if ($min-width == 0) { + // responsive utilities on smaller breakpoint (no breakpoint infix) + @include generate-utilities($group, $tokens, $properties, $prefix); + } @else { + // responsive utilities on all breakpoints that are not the smallest (with breakpoint infix) + @include media.min($min-width) { + $infix: '-#{$breakpoint}'; + @include generate-utilities($group, $tokens, $properties, $prefix, $infix); + } + } } + } @else { + // non-responsive utilities + @include generate-utilities($group, $tokens, $properties, $prefix); } } } diff --git a/packages/styles/tests/functions/string.test.scss b/packages/styles/tests/functions/string.test.scss index 2247cf29a6..2eee309474 100644 --- a/packages/styles/tests/functions/string.test.scss +++ b/packages/styles/tests/functions/string.test.scss @@ -3,6 +3,18 @@ $paragraph: "I think Ruth's dog is cuter than your dog!"; +// it should return true if the term is found +@include jest.equal( + true, + string.contains($paragraph, 'dog') +); + +// it should return false if the term is not found +@include jest.equal( + false, + string.contains($paragraph, 'cat') +); + // it should replace a term by another @include jest.equal( 'I think my dog is cuter than your dog!', diff --git a/packages/styles/tests/utilities/mixins.test.scss b/packages/styles/tests/utilities/mixins.test.scss index 8792c4c959..230947b399 100644 --- a/packages/styles/tests/utilities/mixins.test.scss +++ b/packages/styles/tests/utilities/mixins.test.scss @@ -3,9 +3,26 @@ @use 'tests/jest'; @use 'src/utilities/mixins'; - .test { - @include mixins.generate-utilities('font-weight', '400', 'fw', 'normal'); - @include mixins.generate-utilities('font-size', '1.5rem', 'fs', 'large', 'sm'); - @include mixins.generate-responsive-utilities('row-gap', '48px', 'rg', '48'); + @include mixins.generate-utilities( + $group: 'font-weight', + $tokens: ( + post-utility-font-weight-normal: 400, + ), + $properties: font-weight, + $prefix: 'fw' + ); + + @include mixins.generate-utilities( + $group: 'gutter', + $tokens: ( + post-utility-gutter-12: 12px, + ), + $properties: ( + --gutter-x, + --gutter-y, + ), + $prefix: 'g', + $infix: '-lg' + ); } From 252c76818a569bac5b924e4e45c2ee5cd72c2a90 Mon Sep 17 00:00:00 2001 From: Swiss Post Bot <103635272+swisspost-bot@users.noreply.github.com> Date: Tue, 8 Oct 2024 18:01:33 +0200 Subject: [PATCH 02/40] =?UTF-8?q?chore(changesets):=20=F0=9F=A6=8B?= =?UTF-8?q?=F0=9F=93=A6=20publish=20packages=20(main)=20(next)=20(#3551)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. ⚠️⚠️⚠️⚠️⚠️⚠️ `main` is currently in **pre mode** so this branch has prereleases rather than normal releases. If you want to exit prereleases, run `changeset pre exit` on `main`. ⚠️⚠️⚠️⚠️⚠️⚠️ # Releases ## @swisspost/design-system-components@9.0.0-next.1 ### Major Changes - Made the heading-level property required for the accordion and removed it from the accordion-item docs. (by [@schaertim](https://github.com/schaertim) with [#3383](https://github.com/swisspost/design-system/pull/3383)) ### Patch Changes - Fixed a bug in nested accordions where closing a child item unintentionally closed all parent accordion elements. (by [@schaertim](https://github.com/schaertim) with [#3427](https://github.com/swisspost/design-system/pull/3427)) - Fixed an issue related to conflicting pointer and focus events hiding the tooltip unexpectedly in some situations. The tooltip now behaves as expected in this situation. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#3592](https://github.com/swisspost/design-system/pull/3592)) - Updated dependencies: - @swisspost/design-system-styles@9.0.0-next.1 ## @swisspost/design-system-styles@9.0.0-next.1 ### Major Changes - Removed the following placeholders: `%list-adjustment`, `%module-container`, `%default-module-spacer`, `%text-container`. (by [@leagrdv](https://github.com/leagrdv) with [#3623](https://github.com/swisspost/design-system/pull/3623)) - Updated the margin, padding, and gap utility classes to use the pixel values (1, 2, ... , 112) instead of size names (hair, line, ..., bigger-giant). (by [@alizedebray](https://github.com/alizedebray) with [#3557](https://github.com/swisspost/design-system/pull/3557)) ### Minor Changes - Added Text Highlighted component. (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3586](https://github.com/swisspost/design-system/pull/3586)) - Added lead text component for introductory paragraphs. (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3575](https://github.com/swisspost/design-system/pull/3575)) ### Patch Changes - styles: Added reset styles (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3545](https://github.com/swisspost/design-system/pull/3545)) - Removed global styles (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3554](https://github.com/swisspost/design-system/pull/3554)) - Updated the style of headings (h1-h6). (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3534](https://github.com/swisspost/design-system/pull/3534)) ## @swisspost/design-system-components-angular@9.0.0-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-components@9.0.0-next.1 ## @swisspost/internet-header@1.14.6-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-styles@9.0.0-next.1 ## @swisspost/design-system-intranet-header@9.0.0-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-styles@9.0.0-next.1 ## @swisspost/design-system-styles-primeng@9.0.0-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-styles@9.0.0-next.1 ## @swisspost/design-system-icons@9.0.0-next.1 ## @swisspost/design-system-migrations@9.0.0-next.1 ## @swisspost/design-system-documentation@6.0.0-next.1 ### Major Changes - Made the heading-level property required for the accordion and removed it from the accordion-item docs. (by [@schaertim](https://github.com/schaertim) with [#3383](https://github.com/swisspost/design-system/pull/3383)) ### Minor Changes - Added a toolbar for switching the theme, channel, and mode of all stories. (by [@alizedebray](https://github.com/alizedebray) with [#3528](https://github.com/swisspost/design-system/pull/3528)) - Added documentation outlining the mission statement of the Design System. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#3568](https://github.com/swisspost/design-system/pull/3568)) - Added Text Highlighted component. (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3586](https://github.com/swisspost/design-system/pull/3586)) - Updated the margin, padding, and gap utility classes to use the pixel values (1, 2, ... , 112) instead of size names (hair, line, ..., bigger-giant). (by [@alizedebray](https://github.com/alizedebray) with [#3557](https://github.com/swisspost/design-system/pull/3557)) - Added documentation for design principles. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#3565](https://github.com/swisspost/design-system/pull/3565)) - Added lead text component for introductory paragraphs. (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3575](https://github.com/swisspost/design-system/pull/3575)) ### Patch Changes - Updated the style of headings (h1-h6). (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3534](https://github.com/swisspost/design-system/pull/3534)) - Fixed typos in the Sass and HTML href paths. (by [@schaertim](https://github.com/schaertim) with [#3466](https://github.com/swisspost/design-system/pull/3466)) - Updated dependencies: - @swisspost/design-system-components@9.0.0-next.1 - @swisspost/design-system-styles@9.0.0-next.1 - @swisspost/design-system-components-react@9.0.0-next.1 - @swisspost/internet-header@1.14.6-next.1 - @swisspost/design-system-icons@9.0.0-next.1 ## @swisspost/design-system-components-angular-workspace@1.1.10-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-components@9.0.0-next.1 - @swisspost/design-system-styles@9.0.0-next.1 ## @swisspost/design-system-components-react@9.0.0-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-components@9.0.0-next.1 ## @swisspost/design-system-intranet-header-workspace@3.0.22-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-styles@9.0.0-next.1 ## @swisspost/design-system-intranet-header-showcase@1.0.10-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-intranet-header@9.0.0-next.1 ## @swisspost/design-system-nextjs-integration@0.1.14-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-styles@9.0.0-next.1 - @swisspost/design-system-components-react@9.0.0-next.1 - @swisspost/internet-header@1.14.6-next.1 ## @swisspost/design-system-styles-primeng-workspace@1.0.6-next.1 ### Patch Changes - Updated dependencies: - @swisspost/design-system-styles@9.0.0-next.1 ## @swisspost/design-system-tokens@9.0.0-next.1 --------- Co-authored-by: github-actions[bot] --- .changeset/pre.json | 16 ++- packages/components-angular/CHANGELOG.md | 8 ++ packages/components-angular/package.json | 6 +- .../projects/components/CHANGELOG.md | 7 ++ .../projects/components/package.json | 4 +- packages/components-react/CHANGELOG.md | 7 ++ packages/components-react/package.json | 4 +- packages/components/CHANGELOG.md | 14 +++ packages/components/package.json | 4 +- packages/documentation/CHANGELOG.md | 32 +++++ packages/documentation/package.json | 16 +-- packages/documentation/public/_redirects | 1 + .../documentation/public/assets/versions.json | 31 ++++- packages/icons/CHANGELOG.md | 2 + packages/icons/package.json | 2 +- packages/internet-header/CHANGELOG.md | 7 ++ packages/internet-header/package.json | 4 +- .../intranet-header-workspace/CHANGELOG.md | 7 ++ .../intranet-header-workspace/package.json | 4 +- .../intranet-header-showcase/CHANGELOG.md | 7 ++ .../intranet-header-showcase/package.json | 4 +- .../projects/intranet-header/CHANGELOG.md | 7 ++ .../projects/intranet-header/package.json | 6 +- packages/migrations/CHANGELOG.md | 2 + packages/migrations/package.json | 2 +- packages/nextjs-integration/CHANGELOG.md | 9 ++ packages/nextjs-integration/package.json | 8 +- .../styles-primeng-workspace/CHANGELOG.md | 7 ++ .../styles-primeng-workspace/package.json | 4 +- .../projects/styles-primeng/CHANGELOG.md | 7 ++ .../projects/styles-primeng/package.json | 4 +- packages/styles/CHANGELOG.md | 22 ++++ packages/styles/package.json | 6 +- packages/tokens/CHANGELOG.md | 2 + packages/tokens/package.json | 2 +- pnpm-lock.yaml | 118 ++++++------------ 36 files changed, 273 insertions(+), 120 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 69e07b8b2c..c665a31949 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -22,19 +22,33 @@ "@swisspost/design-system-tokens": "8.2.0" }, "changesets": [ + "big-frogs-admire", + "breezy-cups-add", "clean-icons-complain", "cold-baboons-appear", "cold-panthers-vanish", + "cuddly-bears-check", + "eleven-keys-work", + "empty-islands-kneel", "fair-actors-scream", "friendly-insects-breathe", "funny-shrimps-care", "gorgeous-flowers-flow", "great-humans-talk", "heavy-rats-explode", + "kind-papayas-provide", + "lemon-clocks-clean", + "nervous-rocks-shop", "ninety-nails-float", "pink-weeks-relate", "plenty-apricots-raise", + "proud-actors-knock", + "red-lies-lick", "selfish-bats-run", - "sharp-crews-watch" + "sharp-crews-watch", + "six-spiders-smoke", + "tame-terms-push", + "tidy-dolls-walk", + "yellow-yaks-jog" ] } diff --git a/packages/components-angular/CHANGELOG.md b/packages/components-angular/CHANGELOG.md index 983627550c..b58a34c25a 100644 --- a/packages/components-angular/CHANGELOG.md +++ b/packages/components-angular/CHANGELOG.md @@ -1,5 +1,13 @@ # @swisspost/design-system-components-angular-workspace +## 1.1.10-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-components@9.0.0-next.1 + - @swisspost/design-system-styles@9.0.0-next.1 + ## 1.1.10-next.0 ### Patch Changes diff --git a/packages/components-angular/package.json b/packages/components-angular/package.json index fa919da9af..be51de464b 100644 --- a/packages/components-angular/package.json +++ b/packages/components-angular/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-components-angular-workspace", - "version": "1.1.10-next.0", + "version": "1.1.10-next.1", "scripts": { "start": "ng serve --port 9210", "build": "ng build components", @@ -18,8 +18,8 @@ "@angular/platform-browser": "18.1.3", "@angular/platform-browser-dynamic": "18.1.3", "@angular/router": "18.1.3", - "@swisspost/design-system-components": "workspace:9.0.0-next.0", - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", + "@swisspost/design-system-components": "workspace:9.0.0-next.1", + "@swisspost/design-system-styles": "workspace:9.0.0-next.1", "rxjs": "7.8.1", "tslib": "2.6.3", "zone.js": "0.14.8" diff --git a/packages/components-angular/projects/components/CHANGELOG.md b/packages/components-angular/projects/components/CHANGELOG.md index 4f3d1766ae..087ed7e423 100644 --- a/packages/components-angular/projects/components/CHANGELOG.md +++ b/packages/components-angular/projects/components/CHANGELOG.md @@ -1,5 +1,12 @@ # @swisspost/design-system-components-angular +## 9.0.0-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-components@9.0.0-next.1 + ## 9.0.0-next.0 ### Patch Changes diff --git a/packages/components-angular/projects/components/package.json b/packages/components-angular/projects/components/package.json index b2cb41d845..aa512d26a8 100644 --- a/packages/components-angular/projects/components/package.json +++ b/packages/components-angular/projects/components/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-components-angular", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "description": "Swiss Post Design System - Angular Wrapper Components", "author": "Swiss Post ", "license": "Apache-2.0", @@ -19,7 +19,7 @@ }, "dependencies": { "tslib": "2.6.3", - "@swisspost/design-system-components": "workspace:9.0.0-next.0" + "@swisspost/design-system-components": "workspace:9.0.0-next.1" }, "peerDependencies": { "@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0", diff --git a/packages/components-react/CHANGELOG.md b/packages/components-react/CHANGELOG.md index 07725a7934..88e333652a 100644 --- a/packages/components-react/CHANGELOG.md +++ b/packages/components-react/CHANGELOG.md @@ -1,5 +1,12 @@ # @swisspost/design-system-components-react +## 9.0.0-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-components@9.0.0-next.1 + ## 9.0.0-next.0 ### Patch Changes diff --git a/packages/components-react/package.json b/packages/components-react/package.json index df5fbef502..9200c39be8 100644 --- a/packages/components-react/package.json +++ b/packages/components-react/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-components-react", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "license": "Apache-2.0", "main": "dist/index.js", "types": "dist/index.d.ts", @@ -20,7 +20,7 @@ "lint": "eslint src/**/*.ts" }, "dependencies": { - "@swisspost/design-system-components": "workspace:9.0.0-next.0" + "@swisspost/design-system-components": "workspace:9.0.0-next.1" }, "devDependencies": { "@types/node": "20.14.14", diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 0e0a41711c..888081a674 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -1,5 +1,19 @@ # @swisspost/design-system-components +## 9.0.0-next.1 + +### Major Changes + +- Made the heading-level property required for the accordion and removed it from the accordion-item docs. (by [@schaertim](https://github.com/schaertim) with [#3383](https://github.com/swisspost/design-system/pull/3383)) + +### Patch Changes + +- Fixed a bug in nested accordions where closing a child item unintentionally closed all parent accordion elements. (by [@schaertim](https://github.com/schaertim) with [#3427](https://github.com/swisspost/design-system/pull/3427)) + +- Fixed an issue related to conflicting pointer and focus events hiding the tooltip unexpectedly in some situations. The tooltip now behaves as expected in this situation. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#3592](https://github.com/swisspost/design-system/pull/3592)) +- Updated dependencies: + - @swisspost/design-system-styles@9.0.0-next.1 + ## 9.0.0-next.0 ### Patch Changes diff --git a/packages/components/package.json b/packages/components/package.json index 507eae4cee..36574a4d22 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-components", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "description": "A collection of web components built with Stencil JS for the Swiss Post Design System.", "license": "Apache-2.0", "main": "dist/index.cjs.js", @@ -40,7 +40,7 @@ "dependencies": { "@floating-ui/dom": "1.6.8", "@oddbird/popover-polyfill": "0.3.7", - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", + "@swisspost/design-system-styles": "workspace:9.0.0-next.1", "ally.js": "1.4.1", "long-press-event": "2.5.0" }, diff --git a/packages/documentation/CHANGELOG.md b/packages/documentation/CHANGELOG.md index d34b970d18..eb7ee10038 100644 --- a/packages/documentation/CHANGELOG.md +++ b/packages/documentation/CHANGELOG.md @@ -1,5 +1,37 @@ # @swisspost/design-system-documentation +## 6.0.0-next.1 + +### Major Changes + +- Made the heading-level property required for the accordion and removed it from the accordion-item docs. (by [@schaertim](https://github.com/schaertim) with [#3383](https://github.com/swisspost/design-system/pull/3383)) + +### Minor Changes + +- Added a toolbar for switching the theme, channel, and mode of all stories. (by [@alizedebray](https://github.com/alizedebray) with [#3528](https://github.com/swisspost/design-system/pull/3528)) + +- Added documentation outlining the mission statement of the Design System. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#3568](https://github.com/swisspost/design-system/pull/3568)) + +- Added Text Highlighted component. (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3586](https://github.com/swisspost/design-system/pull/3586)) + +- Updated the margin, padding, and gap utility classes to use the pixel values (1, 2, ... , 112) instead of size names (hair, line, ..., bigger-giant). (by [@alizedebray](https://github.com/alizedebray) with [#3557](https://github.com/swisspost/design-system/pull/3557)) + +- Added documentation for design principles. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#3565](https://github.com/swisspost/design-system/pull/3565)) + +- Added lead text component for introductory paragraphs. (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3575](https://github.com/swisspost/design-system/pull/3575)) + +### Patch Changes + +- Updated the style of headings (h1-h6). (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3534](https://github.com/swisspost/design-system/pull/3534)) + +- Fixed typos in the Sass and HTML href paths. (by [@schaertim](https://github.com/schaertim) with [#3466](https://github.com/swisspost/design-system/pull/3466)) +- Updated dependencies: + - @swisspost/design-system-components@9.0.0-next.1 + - @swisspost/design-system-styles@9.0.0-next.1 + - @swisspost/design-system-components-react@9.0.0-next.1 + - @swisspost/internet-header@1.14.6-next.1 + - @swisspost/design-system-icons@9.0.0-next.1 + ## 6.0.0-next.0 ### Major Changes diff --git a/packages/documentation/package.json b/packages/documentation/package.json index f9807db9fd..129e5dceff 100644 --- a/packages/documentation/package.json +++ b/packages/documentation/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-documentation", - "version": "6.0.0-next.0", + "version": "6.0.0-next.1", "description": "Swiss Post Design System Documentation.", "author": "Swiss Post ", "license": "Apache-2.0", @@ -28,11 +28,11 @@ "lint": "eslint **/*.{js,ts,tsx,mdx}" }, "dependencies": { - "@swisspost/design-system-components": "workspace:9.0.0-next.0", - "@swisspost/design-system-components-react": "workspace:9.0.0-next.0", - "@swisspost/design-system-icons": "workspace:9.0.0-next.0", - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", - "@swisspost/internet-header": "workspace:1.14.6-next.0", + "@swisspost/design-system-components": "workspace:9.0.0-next.1", + "@swisspost/design-system-components-react": "workspace:9.0.0-next.1", + "@swisspost/design-system-icons": "workspace:9.0.0-next.1", + "@swisspost/design-system-styles": "workspace:9.0.0-next.1", + "@swisspost/internet-header": "workspace:1.14.6-next.1", "bootstrap": "5.3.3" }, "devDependencies": { @@ -53,8 +53,8 @@ "@storybook/types": "8.2.7", "@storybook/web-components": "8.2.7", "@storybook/web-components-vite": "8.2.7", - "@swisspost/design-system-components-angular": "workspace:9.0.0-next.0", - "@swisspost/design-system-intranet-header": "workspace:9.0.0-next.0", + "@swisspost/design-system-components-angular": "workspace:9.0.0-next.1", + "@swisspost/design-system-intranet-header": "workspace:9.0.0-next.1", "@types/css-modules": "1.0.5", "@types/mdx": "2.0.13", "@types/react": "18.3.3", diff --git a/packages/documentation/public/_redirects b/packages/documentation/public/_redirects index a60e07ff31..f1034be048 100644 --- a/packages/documentation/public/_redirects +++ b/packages/documentation/public/_redirects @@ -5,3 +5,4 @@ /v6 https://design-system-version-6.netlify.app /v7 https://design-system-version-7.netlify.app /v8 https://design-system-version-8.netlify.app +/v9 https://swisspost-design-system-version-9.netlify.app diff --git a/packages/documentation/public/assets/versions.json b/packages/documentation/public/assets/versions.json index 25da98d29a..0cdd6edddb 100644 --- a/packages/documentation/public/assets/versions.json +++ b/packages/documentation/public/assets/versions.json @@ -1,9 +1,37 @@ [ { "title": "Version 9", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "description": "Pattern documentation, code snippets and implementation guidelines for the Design System Styles.", "url": "https://design-system.post.ch", + "dependencies": { + "@angular/core": "^18.0.0", + "@ng-bootstrap/ng-bootstrap": "^17.0.0", + "bootstrap": "~5.3.0", + "@swisspost/design-system-changelog-github": "1.0.2", + "@swisspost/design-system-components": "9.0.0-next.1", + "@swisspost/design-system-components-angular-workspace": "1.1.10-next.1", + "@swisspost/design-system-components-angular": "9.0.0-next.1", + "@swisspost/design-system-components-react": "9.0.0-next.1", + "@swisspost/design-system-documentation": "6.0.0-next.1", + "@swisspost/design-system-icons": "9.0.0-next.1", + "@swisspost/internet-header": "1.14.6-next.1", + "@swisspost/design-system-intranet-header-workspace": "3.0.22-next.1", + "@swisspost/design-system-intranet-header": "9.0.0-next.1", + "@swisspost/design-system-intranet-header-showcase": "1.0.10-next.1", + "@swisspost/design-system-migrations": "9.0.0-next.1", + "@swisspost/design-system-nextjs-integration": "0.1.14-next.1", + "@swisspost/design-system-styles": "9.0.0-next.1", + "@swisspost/design-system-styles-primeng-workspace": "1.0.6-next.1", + "@swisspost/design-system-styles-primeng": "9.0.0-next.1", + "@swisspost/design-system-tokens": "9.0.0-next.1" + } + }, + { + "title": "Version 9", + "version": "9.0.0-next.0", + "description": "Pattern documentation, code snippets and implementation guidelines for the Design System Styles.", + "url": "https://swisspost-design-system-version-9.netlify.app", "dependencies": { "@angular/core": "^18.0.0", "@ng-bootstrap/ng-bootstrap": "^17.0.0", @@ -13,7 +41,6 @@ "@swisspost/design-system-components-angular-workspace": "1.1.10-next.0", "@swisspost/design-system-components-angular": "9.0.0-next.0", "@swisspost/design-system-components-react": "9.0.0-next.0", - "@swisspost/design-system-demo": "8.0.3-next.0", "@swisspost/design-system-documentation": "6.0.0-next.0", "@swisspost/design-system-icons": "9.0.0-next.0", "@swisspost/internet-header": "1.14.6-next.0", diff --git a/packages/icons/CHANGELOG.md b/packages/icons/CHANGELOG.md index 45eb6ac9c3..35af5cf54a 100644 --- a/packages/icons/CHANGELOG.md +++ b/packages/icons/CHANGELOG.md @@ -1,5 +1,7 @@ # @swisspost/design-system-icons +## 9.0.0-next.1 + ## 9.0.0-next.0 ## 8.2.0 diff --git a/packages/icons/package.json b/packages/icons/package.json index adad8f233b..8ef0f70b9b 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-icons", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "description": "A collection of Swiss Post icons intended for use with the Design System.", "author": "Swiss Post ", "license": "Apache-2.0", diff --git a/packages/internet-header/CHANGELOG.md b/packages/internet-header/CHANGELOG.md index e587bc4ef3..c017feb6f3 100644 --- a/packages/internet-header/CHANGELOG.md +++ b/packages/internet-header/CHANGELOG.md @@ -1,5 +1,12 @@ # @swisspost/internet-header +## 1.14.6-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-styles@9.0.0-next.1 + ## 1.14.6-next.0 ### Patch Changes diff --git a/packages/internet-header/package.json b/packages/internet-header/package.json index fe7f300f93..88c02c0d4a 100644 --- a/packages/internet-header/package.json +++ b/packages/internet-header/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/internet-header", - "version": "1.14.6-next.0", + "version": "1.14.6-next.1", "description": "The header for client facing applications.", "author": "Swiss Post ", "license": "Apache-2.0", @@ -42,7 +42,7 @@ "generate": "stencil generate" }, "dependencies": { - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", + "@swisspost/design-system-styles": "workspace:9.0.0-next.1", "body-scroll-lock": "4.0.0-beta.0", "iframe-resizer": "4.4.5", "jquery": "3.7.1", diff --git a/packages/intranet-header-workspace/CHANGELOG.md b/packages/intranet-header-workspace/CHANGELOG.md index 6725dc8c3e..1263aafc62 100644 --- a/packages/intranet-header-workspace/CHANGELOG.md +++ b/packages/intranet-header-workspace/CHANGELOG.md @@ -1,5 +1,12 @@ # @swisspost/design-system-intranet-header-workspace +## 3.0.22-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-styles@9.0.0-next.1 + ## 3.0.22-next.0 ### Patch Changes diff --git a/packages/intranet-header-workspace/package.json b/packages/intranet-header-workspace/package.json index 53184e7a5e..e243a47461 100644 --- a/packages/intranet-header-workspace/package.json +++ b/packages/intranet-header-workspace/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-intranet-header-workspace", - "version": "3.0.22-next.0", + "version": "3.0.22-next.1", "license": "Apache-2.0", "private": true, "scripts": { @@ -21,7 +21,7 @@ "@angular/router": "18.1.3", "@ng-bootstrap/ng-bootstrap": "17.0.0", "@popperjs/core": "2.11.8", - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", + "@swisspost/design-system-styles": "workspace:9.0.0-next.1", "rxjs": "7.8.1", "tslib": "2.6.3", "watch": "1.0.2", diff --git a/packages/intranet-header-workspace/projects/intranet-header-showcase/CHANGELOG.md b/packages/intranet-header-workspace/projects/intranet-header-showcase/CHANGELOG.md index e1af2eb676..6dde7874d4 100644 --- a/packages/intranet-header-workspace/projects/intranet-header-showcase/CHANGELOG.md +++ b/packages/intranet-header-workspace/projects/intranet-header-showcase/CHANGELOG.md @@ -1,5 +1,12 @@ # @swisspost/design-system-intranet-header-showcase +## 1.0.10-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-intranet-header@9.0.0-next.1 + ## 1.0.10-next.0 ### Patch Changes diff --git a/packages/intranet-header-workspace/projects/intranet-header-showcase/package.json b/packages/intranet-header-workspace/projects/intranet-header-showcase/package.json index 8afdab6fe2..d5a31a03fe 100644 --- a/packages/intranet-header-workspace/projects/intranet-header-showcase/package.json +++ b/packages/intranet-header-workspace/projects/intranet-header-showcase/package.json @@ -1,9 +1,9 @@ { "name": "@swisspost/design-system-intranet-header-showcase", - "version": "1.0.10-next.0", + "version": "1.0.10-next.1", "license": "Apache-2.0", "private": true, "dependencies": { - "@swisspost/design-system-intranet-header": "workspace:9.0.0-next.0" + "@swisspost/design-system-intranet-header": "workspace:9.0.0-next.1" } } diff --git a/packages/intranet-header-workspace/projects/intranet-header/CHANGELOG.md b/packages/intranet-header-workspace/projects/intranet-header/CHANGELOG.md index 3279867a49..0bd21864af 100644 --- a/packages/intranet-header-workspace/projects/intranet-header/CHANGELOG.md +++ b/packages/intranet-header-workspace/projects/intranet-header/CHANGELOG.md @@ -1,5 +1,12 @@ # @swisspost/design-system-intranet-header +## 9.0.0-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-styles@9.0.0-next.1 + ## 9.0.0-next.0 ### Patch Changes diff --git a/packages/intranet-header-workspace/projects/intranet-header/package.json b/packages/intranet-header-workspace/projects/intranet-header/package.json index 928e6de85b..c51f39c0df 100644 --- a/packages/intranet-header-workspace/projects/intranet-header/package.json +++ b/packages/intranet-header-workspace/projects/intranet-header/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-intranet-header", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "description": "Intranet header for internal Swiss Post applications as an Angular component.", "author": "Swiss Post ", "license": "Apache-2.0", @@ -18,11 +18,11 @@ "linkDirectory": true }, "dependencies": { - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", + "@swisspost/design-system-styles": "workspace:9.0.0-next.1", "tslib": "2.6.3" }, "devDependencies": { - "@swisspost/design-system-intranet-header-workspace": "workspace:3.0.22-next.0" + "@swisspost/design-system-intranet-header-workspace": "workspace:3.0.22-next.1" }, "peerDependencies": { "@angular/common": "^16.0.0 || ^17.0.0 || ^18.0.0", diff --git a/packages/migrations/CHANGELOG.md b/packages/migrations/CHANGELOG.md index 16d544e747..00931819ad 100644 --- a/packages/migrations/CHANGELOG.md +++ b/packages/migrations/CHANGELOG.md @@ -1,5 +1,7 @@ # @swisspost/design-system-migrations +## 9.0.0-next.1 + ## 9.0.0-next.0 ## 8.2.0 diff --git a/packages/migrations/package.json b/packages/migrations/package.json index 2e21a1c694..2aee55a165 100644 --- a/packages/migrations/package.json +++ b/packages/migrations/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-migrations", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "description": "Scripts to migrate an Angular application from one Design System version to another.", "author": "Swiss Post ", "license": "Apache-2.0", diff --git a/packages/nextjs-integration/CHANGELOG.md b/packages/nextjs-integration/CHANGELOG.md index a1c030912d..619dbc6087 100644 --- a/packages/nextjs-integration/CHANGELOG.md +++ b/packages/nextjs-integration/CHANGELOG.md @@ -1,5 +1,14 @@ # @swisspost/design-system-nextjs-integration +## 0.1.14-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-styles@9.0.0-next.1 + - @swisspost/design-system-components-react@9.0.0-next.1 + - @swisspost/internet-header@1.14.6-next.1 + ## 0.1.14-next.0 ### Patch Changes diff --git a/packages/nextjs-integration/package.json b/packages/nextjs-integration/package.json index 083a4afdfa..d19d1bc3ed 100644 --- a/packages/nextjs-integration/package.json +++ b/packages/nextjs-integration/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-nextjs-integration", - "version": "0.1.14-next.0", + "version": "0.1.14-next.1", "private": true, "scripts": { "dev": "next dev", @@ -9,9 +9,9 @@ "lint": "next lint" }, "dependencies": { - "@swisspost/design-system-components-react": "workspace:9.0.0-next.0", - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", - "@swisspost/internet-header": "workspace:1.14.6-next.0", + "@swisspost/design-system-components-react": "workspace:9.0.0-next.1", + "@swisspost/design-system-styles": "workspace:9.0.0-next.1", + "@swisspost/internet-header": "workspace:1.14.6-next.1", "next": "14.2.10", "react": "^18", "react-dom": "^18" diff --git a/packages/styles-primeng-workspace/CHANGELOG.md b/packages/styles-primeng-workspace/CHANGELOG.md index 630f0f2d49..10b0690cb4 100644 --- a/packages/styles-primeng-workspace/CHANGELOG.md +++ b/packages/styles-primeng-workspace/CHANGELOG.md @@ -1,5 +1,12 @@ # @swisspost/design-system-styles-primeng-workspace +## 1.0.6-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-styles@9.0.0-next.1 + ## 1.0.6-next.0 ### Patch Changes diff --git a/packages/styles-primeng-workspace/package.json b/packages/styles-primeng-workspace/package.json index bb648f3a70..be124dee37 100644 --- a/packages/styles-primeng-workspace/package.json +++ b/packages/styles-primeng-workspace/package.json @@ -1,7 +1,7 @@ { "name": "@swisspost/design-system-styles-primeng-workspace", "description": "Showcase for a Post like custom prime-ng theme", - "version": "1.0.6-next.0", + "version": "1.0.6-next.1", "license": "Apache-2.0", "private": true, "scripts": { @@ -22,7 +22,7 @@ "@angular/platform-browser": "18.1.3", "@angular/platform-browser-dynamic": "18.1.3", "@angular/router": "18.1.3", - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", + "@swisspost/design-system-styles": "workspace:9.0.0-next.1", "primeng": "17.18.7", "rxjs": "7.8.1", "tslib": "2.6.3", diff --git a/packages/styles-primeng-workspace/projects/styles-primeng/CHANGELOG.md b/packages/styles-primeng-workspace/projects/styles-primeng/CHANGELOG.md index 139cca7332..022e3e5d4a 100644 --- a/packages/styles-primeng-workspace/projects/styles-primeng/CHANGELOG.md +++ b/packages/styles-primeng-workspace/projects/styles-primeng/CHANGELOG.md @@ -1,5 +1,12 @@ # @swisspost/design-system-styles-primeng +## 9.0.0-next.1 + +### Patch Changes + +- Updated dependencies: + - @swisspost/design-system-styles@9.0.0-next.1 + ## 9.0.0-next.0 ### Patch Changes diff --git a/packages/styles-primeng-workspace/projects/styles-primeng/package.json b/packages/styles-primeng-workspace/projects/styles-primeng/package.json index 914b2afc3f..be9b67e10b 100644 --- a/packages/styles-primeng-workspace/projects/styles-primeng/package.json +++ b/packages/styles-primeng-workspace/projects/styles-primeng/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-styles-primeng", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "description": "Swiss Post styles for PrimeNg datatable.", "author": "Swiss Post ", "license": "Apache-2.0", @@ -23,7 +23,7 @@ "primeng": "^17.18.0" }, "dependencies": { - "@swisspost/design-system-styles": "workspace:9.0.0-next.0", + "@swisspost/design-system-styles": "workspace:9.0.0-next.1", "tslib": "2.6.3" }, "sideEffects": false, diff --git a/packages/styles/CHANGELOG.md b/packages/styles/CHANGELOG.md index 101f2af0f6..367208c2cf 100644 --- a/packages/styles/CHANGELOG.md +++ b/packages/styles/CHANGELOG.md @@ -1,5 +1,27 @@ # @swisspost/design-system-styles +## 9.0.0-next.1 + +### Major Changes + +- Removed the following placeholders: `%list-adjustment`, `%module-container`, `%default-module-spacer`, `%text-container`. (by [@leagrdv](https://github.com/leagrdv) with [#3623](https://github.com/swisspost/design-system/pull/3623)) + +- Updated the margin, padding, and gap utility classes to use the pixel values (1, 2, ... , 112) instead of size names (hair, line, ..., bigger-giant). (by [@alizedebray](https://github.com/alizedebray) with [#3557](https://github.com/swisspost/design-system/pull/3557)) + +### Minor Changes + +- Added Text Highlighted component. (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3586](https://github.com/swisspost/design-system/pull/3586)) + +- Added lead text component for introductory paragraphs. (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3575](https://github.com/swisspost/design-system/pull/3575)) + +### Patch Changes + +- styles: Added reset styles (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3545](https://github.com/swisspost/design-system/pull/3545)) + +- Removed global styles (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3554](https://github.com/swisspost/design-system/pull/3554)) + +- Updated the style of headings (h1-h6). (by [@bashirkarimi](https://github.com/bashirkarimi) with [#3534](https://github.com/swisspost/design-system/pull/3534)) + ## 9.0.0-next.0 ### Major Changes diff --git a/packages/styles/package.json b/packages/styles/package.json index 33692b10af..b2c7e9f007 100644 --- a/packages/styles/package.json +++ b/packages/styles/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-styles", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "description": "Design System Styles for the Swiss Post web platform.", "author": "Swiss Post ", "license": "Apache-2.0", @@ -49,8 +49,8 @@ "gulp-sourcemaps": "3.0.0" }, "devDependencies": { - "@swisspost/design-system-icons": "workspace:9.0.0-next.0", - "@swisspost/design-system-tokens": "workspace:9.0.0-next.0", + "@swisspost/design-system-icons": "workspace:9.0.0-next.1", + "@swisspost/design-system-tokens": "workspace:9.0.0-next.1", "@types/node": "20.14.14", "autoprefixer": "10.4.19", "copyfiles": "2.4.1", diff --git a/packages/tokens/CHANGELOG.md b/packages/tokens/CHANGELOG.md index ebc5ea8f31..cfc4196db4 100644 --- a/packages/tokens/CHANGELOG.md +++ b/packages/tokens/CHANGELOG.md @@ -1,5 +1,7 @@ # @swisspost/design-system-tokens +## 9.0.0-next.1 + ## 9.0.0-next.0 ## 8.2.0 diff --git a/packages/tokens/package.json b/packages/tokens/package.json index a36d014d4a..97fb533390 100644 --- a/packages/tokens/package.json +++ b/packages/tokens/package.json @@ -1,6 +1,6 @@ { "name": "@swisspost/design-system-tokens", - "version": "9.0.0-next.0", + "version": "9.0.0-next.1", "private": true, "description": "Design Tokens for the Swiss Post.", "author": "Swiss Post ", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2cc5b6be15..30e469b854 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -47,7 +47,7 @@ importers: specifier: 0.3.7 version: 0.3.7 '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../styles/dist ally.js: specifier: 1.4.1 @@ -150,10 +150,10 @@ importers: specifier: 18.1.3 version: 18.1.3(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1) '@swisspost/design-system-components': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../components '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../styles/dist rxjs: specifier: 7.8.1 @@ -167,7 +167,7 @@ importers: devDependencies: '@angular-devkit/build-angular': specifier: 18.1.3 - version: 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(typescript@5.5.4) + version: 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.14.14))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7)(typescript@5.5.4) '@angular-eslint/builder': specifier: 18.2.0 version: 18.2.0(eslint@8.57.0)(typescript@5.5.4) @@ -218,7 +218,7 @@ importers: version: 2.1.0(jasmine-core@5.2.0)(karma-jasmine@5.1.0(karma@6.4.4))(karma@6.4.4) ng-packagr: specifier: 18.1.0 - version: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4) + version: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4) typescript: specifier: 5.5.4 version: 5.5.4 @@ -232,7 +232,7 @@ importers: specifier: ^16.0.0 || ^17.0.0 || ^18.0.0 version: 18.1.1(rxjs@7.8.1)(zone.js@0.14.8) '@swisspost/design-system-components': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../../../components tslib: specifier: 2.6.3 @@ -242,7 +242,7 @@ importers: packages/components-react: dependencies: '@swisspost/design-system-components': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../components devDependencies: '@types/node': @@ -294,19 +294,19 @@ importers: packages/documentation: dependencies: '@swisspost/design-system-components': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../components '@swisspost/design-system-components-react': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../components-react '@swisspost/design-system-icons': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../icons '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../styles/dist '@swisspost/internet-header': - specifier: workspace:1.14.6-next.0 + specifier: workspace:1.14.6-next.1 version: link:../internet-header bootstrap: specifier: 5.3.3 @@ -364,10 +364,10 @@ importers: specifier: 8.2.7 version: 8.2.7(lit@3.1.4)(storybook@8.2.7(@babel/preset-env@7.24.7(@babel/core@7.25.2)))(typescript@5.5.4)(vite@5.4.8(@types/node@20.14.14)(less@4.2.0)(sass@1.78.0)(terser@5.29.2)) '@swisspost/design-system-components-angular': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../components-angular/dist/components '@swisspost/design-system-intranet-header': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../intranet-header-workspace/dist/intranet-header '@types/css-modules': specifier: 1.0.5 @@ -502,7 +502,7 @@ importers: packages/internet-header: dependencies: '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../styles/dist body-scroll-lock: specifier: 4.0.0-beta.0 @@ -653,7 +653,7 @@ importers: specifier: 2.11.8 version: 2.11.8 '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../styles/dist rxjs: specifier: 7.8.1 @@ -670,7 +670,7 @@ importers: devDependencies: '@angular-devkit/build-angular': specifier: 18.1.3 - version: 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(typescript@5.5.4) + version: 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.14.14))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7)(typescript@5.5.4) '@angular-eslint/builder': specifier: 18.2.0 version: 18.2.0(eslint@8.57.0)(typescript@5.5.4) @@ -724,7 +724,7 @@ importers: version: 2.1.0(jasmine-core@5.2.0)(karma-jasmine@5.1.0(karma@6.4.4))(karma@6.4.4) ng-packagr: specifier: 18.1.0 - version: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4) + version: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4) rimraf: specifier: 6.0.1 version: 6.0.1 @@ -741,21 +741,21 @@ importers: specifier: ^16.0.0 || ^17.0.0 || ^18.0.0 version: 18.1.1(rxjs@7.8.1)(zone.js@0.14.8) '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../../../styles/dist tslib: specifier: 2.6.3 version: 2.6.3 devDependencies: '@swisspost/design-system-intranet-header-workspace': - specifier: workspace:3.0.22-next.0 + specifier: workspace:3.0.22-next.1 version: link:../.. publishDirectory: ../../dist/intranet-header packages/intranet-header-workspace/projects/intranet-header-showcase: dependencies: '@swisspost/design-system-intranet-header': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../../dist/intranet-header packages/migrations: @@ -801,13 +801,13 @@ importers: packages/nextjs-integration: dependencies: '@swisspost/design-system-components-react': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../components-react '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../styles/dist '@swisspost/internet-header': - specifier: workspace:1.14.6-next.0 + specifier: workspace:1.14.6-next.1 version: link:../internet-header next: specifier: 14.2.10 @@ -869,10 +869,10 @@ importers: version: 3.0.0 devDependencies: '@swisspost/design-system-icons': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../icons '@swisspost/design-system-tokens': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../tokens/dist '@types/node': specifier: 20.14.14 @@ -963,7 +963,7 @@ importers: specifier: 18.1.3 version: 18.1.3(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(@angular/platform-browser@18.1.3(@angular/animations@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(@angular/common@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))(rxjs@7.8.1))(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(rxjs@7.8.1) '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../styles/dist primeng: specifier: 17.18.7 @@ -980,7 +980,7 @@ importers: devDependencies: '@angular-devkit/build-angular': specifier: 18.1.3 - version: 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(typescript@5.5.4) + version: 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.14.14))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7)(typescript@5.5.4) '@angular/cli': specifier: 18.1.3 version: 18.1.3(chokidar@3.6.0) @@ -1010,7 +1010,7 @@ importers: version: 2.1.0(jasmine-core@5.2.0)(karma-jasmine@5.1.0(karma@6.4.4))(karma@6.4.4) ng-packagr: specifier: 18.1.0 - version: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4) + version: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4) npm-run-all2: specifier: 6.2.2 version: 6.2.2 @@ -1039,7 +1039,7 @@ importers: specifier: ^18.0.0 version: 18.1.1(rxjs@7.8.1)(zone.js@0.14.8) '@swisspost/design-system-styles': - specifier: workspace:9.0.0-next.0 + specifier: workspace:9.0.0-next.1 version: link:../../../styles/dist primeng: specifier: ^17.18.0 @@ -5893,6 +5893,7 @@ packages: eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true esniff@2.0.1: @@ -11036,13 +11037,13 @@ snapshots: transitivePeerDependencies: - chokidar - '@angular-devkit/build-angular@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(typescript@5.5.4)': + '@angular-devkit/build-angular@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(jest-environment-jsdom@29.7.0)(jest@29.7.0(@types/node@20.14.14))(karma@6.4.4)(ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4))(tailwindcss@3.4.7)(typescript@5.5.4)': dependencies: '@ampproject/remapping': 2.3.0 '@angular-devkit/architect': 0.1801.3(chokidar@3.6.0) '@angular-devkit/build-webpack': 0.1801.3(chokidar@3.6.0)(webpack-dev-server@5.0.4(webpack@5.92.1(esbuild@0.21.5)))(webpack@5.92.1(esbuild@0.21.5)) '@angular-devkit/core': 18.1.3(chokidar@3.6.0) - '@angular/build': 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(less@4.2.0)(postcss@8.4.38)(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(terser@5.29.2)(typescript@5.5.4) + '@angular/build': 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(less@4.2.0)(postcss@8.4.38)(tailwindcss@3.4.7)(terser@5.29.2)(typescript@5.5.4) '@angular/compiler-cli': 18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4) '@babel/core': 7.24.7 '@babel/generator': 7.24.7 @@ -11109,8 +11110,8 @@ snapshots: jest: 29.7.0(@types/node@20.14.14)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) jest-environment-jsdom: 29.7.0 karma: 6.4.4 - ng-packagr: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4) - tailwindcss: 3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) + ng-packagr: 18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4) + tailwindcss: 3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.6.2)) transitivePeerDependencies: - '@rspack/core' - '@swc/core' @@ -11241,7 +11242,7 @@ snapshots: tslib: 2.6.3 optional: true - '@angular/build@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(less@4.2.0)(postcss@8.4.38)(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(terser@5.29.2)(typescript@5.5.4)': + '@angular/build@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/localize@18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))))(@types/node@20.14.14)(chokidar@3.6.0)(less@4.2.0)(postcss@8.4.38)(tailwindcss@3.4.7)(terser@5.29.2)(typescript@5.5.4)': dependencies: '@ampproject/remapping': 2.3.0 '@angular-devkit/architect': 0.1801.3(chokidar@3.6.0) @@ -11276,7 +11277,7 @@ snapshots: '@angular/localize': 18.1.3(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8))) less: 4.2.0 postcss: 8.4.38 - tailwindcss: 3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) + tailwindcss: 3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.6.2)) transitivePeerDependencies: - '@types/node' - chokidar @@ -20602,7 +20603,7 @@ snapshots: - '@babel/core' - babel-plugin-macros - ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)))(tslib@2.6.3)(typescript@5.5.4): + ng-packagr@18.1.0(@angular/compiler-cli@18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4))(tailwindcss@3.4.7)(tslib@2.6.3)(typescript@5.5.4): dependencies: '@angular/compiler-cli': 18.1.3(@angular/compiler@18.1.3(@angular/core@18.1.3(rxjs@7.8.1)(zone.js@0.14.8)))(typescript@5.5.4) '@rollup/plugin-json': 6.1.0(rollup@4.18.1) @@ -20631,7 +20632,7 @@ snapshots: typescript: 5.5.4 optionalDependencies: rollup: 4.18.1 - tailwindcss: 3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) + tailwindcss: 3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.6.2)) transitivePeerDependencies: - supports-color @@ -21341,15 +21342,6 @@ snapshots: postcss: 8.4.45 ts-node: 10.9.2(@types/node@20.14.14)(typescript@5.5.4) - postcss-load-config@4.0.2(postcss@8.4.40)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)): - dependencies: - lilconfig: 3.1.2 - yaml: 2.5.0 - optionalDependencies: - postcss: 8.4.40 - ts-node: 10.9.2(@types/node@20.14.14)(typescript@5.5.4) - optional: true - postcss-load-config@4.0.2(postcss@8.4.40)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.6.2)): dependencies: lilconfig: 3.1.2 @@ -23031,34 +23023,6 @@ snapshots: string-width: 4.2.3 strip-ansi: 6.0.1 - tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)): - dependencies: - '@alloc/quick-lru': 5.2.0 - arg: 5.0.2 - chokidar: 3.6.0 - didyoumean: 1.2.2 - dlv: 1.1.3 - fast-glob: 3.3.2 - glob-parent: 6.0.2 - is-glob: 4.0.3 - jiti: 1.21.6 - lilconfig: 2.1.0 - micromatch: 4.0.7 - normalize-path: 3.0.0 - object-hash: 3.0.0 - picocolors: 1.0.1 - postcss: 8.4.40 - postcss-import: 15.1.0(postcss@8.4.40) - postcss-js: 4.0.1(postcss@8.4.40) - postcss-load-config: 4.0.2(postcss@8.4.40)(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.5.4)) - postcss-nested: 6.2.0(postcss@8.4.40) - postcss-selector-parser: 6.1.1 - resolve: 1.22.8 - sucrase: 3.35.0 - transitivePeerDependencies: - - ts-node - optional: true - tailwindcss@3.4.7(ts-node@10.9.2(@types/node@20.14.14)(typescript@5.6.2)): dependencies: '@alloc/quick-lru': 5.2.0 @@ -23128,7 +23092,7 @@ snapshots: term-size@2.2.1: {} - terser-webpack-plugin@5.3.10(esbuild@0.21.5)(webpack@5.92.1): + terser-webpack-plugin@5.3.10(esbuild@0.21.5)(webpack@5.92.1(esbuild@0.21.5)): dependencies: '@jridgewell/trace-mapping': 0.3.25 jest-worker: 27.5.1 @@ -23919,7 +23883,7 @@ snapshots: neo-async: 2.6.2 schema-utils: 3.3.0 tapable: 2.2.1 - terser-webpack-plugin: 5.3.10(esbuild@0.21.5)(webpack@5.92.1) + terser-webpack-plugin: 5.3.10(esbuild@0.21.5)(webpack@5.92.1(esbuild@0.21.5)) watchpack: 2.4.1 webpack-sources: 3.2.3 transitivePeerDependencies: From da7b10f728b611baa24686b8212c97a7018133cf Mon Sep 17 00:00:00 2001 From: Philipp Gfeller <1659006+gfellerph@users.noreply.github.com> Date: Tue, 8 Oct 2024 20:31:55 +0200 Subject: [PATCH 03/40] feat(dialog): adding styles for native dialog (#2772) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Styles for the dialog element, replacing ngb-modal. --------- Co-authored-by: Alizé Debray <33580481+alizedebray@users.noreply.github.com> --- .changeset/kind-buses-trade.md | 6 + .changeset/popular-games-rush.md | 5 + .../snapshots/components/dialog.snapshot.ts | 7 + packages/documentation/package.json | 2 +- .../stories/components/dialog/dialog.docs.mdx | 35 +++ .../dialog/dialog.snapshot.stories.ts | 40 +++ .../components/dialog/dialog.stories.ts | 235 ++++++++++++++++++ .../components/dialog/samples/js-form-data.ts | 5 + .../stories/components/modal/modal.docs.mdx | 4 + .../stories/components/modal/modal.stories.ts | 2 +- .../notification-overlay.docs.mdx | 4 + .../notification-overlay.stories.ts | 2 +- packages/migrations/package.json | 2 +- packages/styles/src/components/_index.scss | 1 + packages/styles/src/components/dialog.scss | 233 +++++++++++++++++ packages/styles/src/variables/_animation.scss | 19 ++ 16 files changed, 598 insertions(+), 4 deletions(-) create mode 100644 .changeset/kind-buses-trade.md create mode 100644 .changeset/popular-games-rush.md create mode 100644 packages/documentation/cypress/snapshots/components/dialog.snapshot.ts create mode 100644 packages/documentation/src/stories/components/dialog/dialog.docs.mdx create mode 100644 packages/documentation/src/stories/components/dialog/dialog.snapshot.stories.ts create mode 100644 packages/documentation/src/stories/components/dialog/dialog.stories.ts create mode 100644 packages/documentation/src/stories/components/dialog/samples/js-form-data.ts create mode 100644 packages/styles/src/components/dialog.scss diff --git a/.changeset/kind-buses-trade.md b/.changeset/kind-buses-trade.md new file mode 100644 index 0000000000..03a0351ecb --- /dev/null +++ b/.changeset/kind-buses-trade.md @@ -0,0 +1,6 @@ +--- +'@swisspost/design-system-documentation': minor +'@swisspost/design-system-styles': minor +--- + +Added styling support and documentation for the `` element. The dialog will replace the current modal and notification overlay components coming from ng-bootstrap. diff --git a/.changeset/popular-games-rush.md b/.changeset/popular-games-rush.md new file mode 100644 index 0000000000..e0299a924b --- /dev/null +++ b/.changeset/popular-games-rush.md @@ -0,0 +1,5 @@ +--- +'@swisspost/design-system-styles': patch +--- + +Deprecated the ng-bootstrap components Modal and Notification overlay in favor of the new Dialog component. The styles for these ng-bootstrap components will be removed in a future major version. diff --git a/packages/documentation/cypress/snapshots/components/dialog.snapshot.ts b/packages/documentation/cypress/snapshots/components/dialog.snapshot.ts new file mode 100644 index 0000000000..7ec2745610 --- /dev/null +++ b/packages/documentation/cypress/snapshots/components/dialog.snapshot.ts @@ -0,0 +1,7 @@ +describe('Dialog', () => { + it('default', () => { + cy.visit('/iframe.html?id=snapshots--dialog'); + cy.get('dialog[open]', { timeout: 30000 }).should('be.visible'); + cy.percySnapshot('Dialog', { widths: [1440] }); + }); +}); diff --git a/packages/documentation/package.json b/packages/documentation/package.json index 129e5dceff..1060baf857 100644 --- a/packages/documentation/package.json +++ b/packages/documentation/package.json @@ -25,7 +25,7 @@ "e2e:watch": "cypress open", "doctor": "storybook doctor", "snapshots": "percy exec -- cypress run --config-file ./cypress.snapshot.config.js --record --key 0995e768-43ec-42bd-a127-ff944a2ad8c9", - "lint": "eslint **/*.{js,ts,tsx,mdx}" + "lint": "eslint **/*.{ts,tsx,mdx}" }, "dependencies": { "@swisspost/design-system-components": "workspace:9.0.0-next.1", diff --git a/packages/documentation/src/stories/components/dialog/dialog.docs.mdx b/packages/documentation/src/stories/components/dialog/dialog.docs.mdx new file mode 100644 index 0000000000..91ab622432 --- /dev/null +++ b/packages/documentation/src/stories/components/dialog/dialog.docs.mdx @@ -0,0 +1,35 @@ +import { Canvas, Controls, Meta, Source } from '@storybook/blocks'; +import * as DialogStories from './dialog.stories'; +import JSFormData from './samples/js-form-data?raw'; +import StylesPackageImport from '@/shared/styles-package-import.mdx'; + + + +# Dialog + +

Communicate crucial information and request user action.

+ + +
+ +
+ + + +## Examples + +### Form dialog + + +#### Using form data + +Register a `submit` event listener on the form. In the event handler, you have access to all the form field values inside the dialog. The dialog box closes when the form gets submitted. + + + +### Custom content dialog +The dialog can also contain arbitrary content. + diff --git a/packages/documentation/src/stories/components/dialog/dialog.snapshot.stories.ts b/packages/documentation/src/stories/components/dialog/dialog.snapshot.stories.ts new file mode 100644 index 0000000000..9160ab7f2d --- /dev/null +++ b/packages/documentation/src/stories/components/dialog/dialog.snapshot.stories.ts @@ -0,0 +1,40 @@ +import meta, { Default } from './dialog.stories'; +import { html } from 'lit'; +import { bombArgs } from '@/utils'; +import type { Args, StoryContext, StoryObj } from '@storybook/web-components'; + +const { id, ...metaWithoutId } = meta; + +export default { + ...metaWithoutId, + title: 'Snapshots', +}; + +type Story = StoryObj; + +export const Dialog: Story = { + render: (_args: Args, context: StoryContext) => { + return html` + +
+ ${bombArgs({ + backgroundColor: ['bg-white', 'bg-primary'], + size: context.argTypes.size.options, + icon: ['none', '1034'], + closeButton: [true, false], + content: [ + 'Content', + 'Contentus momentus vero siteos et accusam iretea et justo. Contentus momentus vero siteos et accusam iretea et justo.', + ], + open: [true], + }).map((args: Args) => Default.render?.({ ...context.args, ...args }, context))} +
+ `; + }, +}; diff --git a/packages/documentation/src/stories/components/dialog/dialog.stories.ts b/packages/documentation/src/stories/components/dialog/dialog.stories.ts new file mode 100644 index 0000000000..24569321fe --- /dev/null +++ b/packages/documentation/src/stories/components/dialog/dialog.stories.ts @@ -0,0 +1,235 @@ +import { Args, Meta, StoryObj } from '@storybook/web-components'; +import { html, nothing } from 'lit-html'; + +const meta: Meta = { + id: '562eac2b-6dc1-4007-ba8e-4e981cef0cbc', + title: 'Components/Dialog', + parameters: { + design: { + type: 'figma', + url: 'https://www.figma.com/design/xZ0IW0MJO0vnFicmrHiKaY/Components-Post?node-id=20215-22938&m=dev', + }, + }, + args: { + title: 'Dialog', + content: 'This is a dialog', + size: 'medium', + position: 'center', + icon: 'none', + backgroundColor: 'bg-white', + animation: 'pop-in', + closeButton: true, + open: false, + }, + argTypes: { + title: { + name: 'Title', + description: 'Optional title', + control: 'text', + table: { category: 'Content' }, + }, + content: { + name: 'Content', + description: 'Dialog text', + control: 'text', + table: { category: 'Content' }, + }, + size: { + name: 'Size', + description: 'Max width of the dialog.', + control: { + type: 'radio', + }, + options: ['small', 'medium', 'large'], + table: { category: 'Variant' }, + }, + position: { + name: 'Position', + description: 'Position of the dialog on the screen', + control: { + type: 'radio', + }, + options: ['top', 'center', 'bottom'], + table: { category: 'Variant' }, + }, + animation: { + name: 'Animation', + description: 'Choose an animation effect for showing and hidding the dialog.', + control: 'radio', + options: ['pop-in', 'slide-in', 'none'], + table: { category: 'Variant' }, + }, + icon: { + name: 'Icon', + description: 'Display an icon in the dialog.', + control: { + type: 'select', + labels: { + none: 'None', + 1034: '1034 (Info)', + 2104: '2104 (Danger)', + 2106: '2106 (Warning)', + 2105: '2105 (Success)', + }, + }, + options: ['none', '1034', '2105', '2104', '2106'], + table: { category: 'Content' }, + }, + backgroundColor: { + name: 'Background color', + description: 'The background color of the dialog field', + control: { + type: 'select', + }, + options: ['bg-white', 'bg-light', 'bg-primary'], + table: { category: 'Variant' }, + }, + closeButton: { + name: 'Close button', + description: 'Show a close button to dismiss the dialog', + control: 'boolean', + table: { category: 'Content' }, + }, + open: { + name: 'Default open', + description: 'Test property for snapshots', + control: 'boolean', + table: { disable: true }, + }, + }, + decorators: [ + story => + html`
+ ${story()} +
`, + ], +}; + +export default meta; + +const getHeader = (text: string) => { + return html`

${text}

`; +}; + +const getCloseButton = () => { + return html``; +}; + +const getControls = () => { + return html` + `; +}; + +const Template = { + render: (args: Args) => { + const header = getHeader(args.title); + const body = html`${args.content}`; + const controls = getControls(); + const postDialogIcon = + args.icon && args.icon !== 'none' + ? html`` + : nothing; + const postDialogCloseButton = args.closeButton ? getCloseButton() : nothing; + + // Don't declare default values or show empty containers + if (args.backgroundColor === 'bg-white') args.backgroundColor = nothing; + if (args.animation === 'pop-in') args.animation = nothing; + if (args.position === 'center') args.position = nothing; + if (args.size === 'medium') args.size = nothing; + + return html` + +
+ ${postDialogIcon} +

${header}

+
${body}
+
${controls}
+ ${postDialogCloseButton} +
+
+ `; + }, +}; + +const FormTemplate = { + ...Template, + render: (args: Args) => { + return html` + +
+

Form example

+
+
+ + +
+ Hintus textus elare volare cantare hendrerit in vulputate velit esse molestie + consequat, vel illum dolore eu feugiat nulla facilisis. +
+
+
+ +
+ + +
+
+
+ `; + }, +}; + +const CustomContentTemplate = { + ...Template, + render: () => { + return html` + +
+

Custom content

+

This is some other content, just placed inside the dialog.

+ +
+
+ `; + }, +}; + +type Story = StoryObj; + +export const Default: Story = { + ...Template, +}; + +export const Form: Story = { + ...FormTemplate, +}; + +export const Custom: Story = { + ...CustomContentTemplate, +}; diff --git a/packages/documentation/src/stories/components/dialog/samples/js-form-data.ts b/packages/documentation/src/stories/components/dialog/samples/js-form-data.ts new file mode 100644 index 0000000000..6cbb0e30e7 --- /dev/null +++ b/packages/documentation/src/stories/components/dialog/samples/js-form-data.ts @@ -0,0 +1,5 @@ +document.querySelector('#example-dialog-form')?.addEventListener('submit', event => { + if (!event.target) return; + const formData = Object.fromEntries(new FormData(event.target as HTMLFormElement)); // Object containing your form data + console.log(formData); +}); diff --git a/packages/documentation/src/stories/components/modal/modal.docs.mdx b/packages/documentation/src/stories/components/modal/modal.docs.mdx index eb7bb019bf..03a9af9868 100644 --- a/packages/documentation/src/stories/components/modal/modal.docs.mdx +++ b/packages/documentation/src/stories/components/modal/modal.docs.mdx @@ -24,6 +24,10 @@ import modalBlocking from './modal-blocking.sample?raw'; +
+ This component is deprecated in favor of the dialog component. +
+