Skip to content

Commit f755ae4

Browse files
chore(changesets): 🦋📦 publish packages (main) (next) (#6672)
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/[email protected] ### Major Changes - Updated `post-header` to prevent unnecessary h-tags. An h-tag can now only be used for the header title in microsite or one-page variants, other elements no longer use h-tags. (by [@alizedebray](https://github.com/alizedebray) with [#6693](#6693)) - Renamed `post-tabs` parts to avoid naming confusions with other components. - `::part(tabs)` is now `::part(post-tabs)`. - `::part(content)` is now `::part(post-tabs-content)`. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6806](#6806)) - Updated the `post-accordion` and `post-accordion-item` styles to fully align with the design specification. As part of this cleanup, the `accordion-item` part has been removed from `post-accordion-item`. The component’s styles can now be customized directly by targeting the host or by using the exposed parts for the trigger button and body elements (e.g., `::part(post-accordion-body) { ... }`). (by [@oliverschuerch](https://github.com/oliverschuerch) with [#6676](#6676)) - Integrated the burger menu button into the `<post-header>` by removing the previous `post-togglebutton` slot and introducing the required `textMenu` prop. (by [@myrta2302](https://github.com/myrta2302) with [#6801](#6801)) - Added a required `caption` property to the `post-mainnavigation` component for the accessible name of the navigation landmark. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6841](#6841)) - ### Renamed the following component props #### post-back-to-top - `label` → `textBackToTop` #### post-breadcrumbs - `menuLabel` → `textMoreItems` - `label` → `textBreadcrumbs` - `homeText` → `textHome` #### post-footer - `label` → `textFooter` #### post-language-menu - `caption` → `textChangeLanguage` - `description` → `textCurrentLanguage` #### post-main-navigation - `caption` → `textMain` #### post-pagination - `labelLast` → `textLast` - `labelFirst` → `textFirst` - `labelPage` → `textPage` - `labelNext` → `textNext` - `labelPrevious` → `textPrevious` #### post-popover - `closeButtonCaption` → `textClose` #### post-stepper - `activeStepLabel` → `textStepNumber` - `completedLabel` → `textCompletedStep` - `currentLabel` → `textCurrentStep` (by [@myrta2302](https://github.com/myrta2302) with [#6894](#6894)) - Update the `post-megadropdown` to allow full customization of its content. The `post-megadropdown` can now contain any HTML elements, not just lists of links. As a result, list styling is no longer applied automatically. If you want a properly styled list of links, you must now add the required `post-megadropdown-*` classes to the corresponding elements yourself. BEFORE: ```html <post-megadropdown id="packages" label-close="Close" label-back="Back"> <a class="post-megadropdown-overview" href="/packages">Overview Packages</a> <post-list> <p>Send packages</p> <post-list-item><a href="/sch">Packages Switzerland</a></post-list-item> <post-list-item><a href="/kl">Small goods international</a></post-list-item> </post-list> <post-list> <p><a href="/step-by-step">Step by step</a></p> <post-list-item><a href="/sch">Packages Switzerland</a></post-list-item> <post-list-item><a href="/kl">Small goods international</a></post-list-item> </post-list> </post-megadropdown> ``` AFTER: ````html <post-megadropdown id="packages" label-close="Close" label-back="Back"> <a class="post-megadropdown-overview" href="/packages">Overview Packages</a> <div class="row row-cols-1 row-cols-sm-2"> <div class="col"> <p class="post-megadropdown-list-title" id="send-packages">Send packages</p> <ul class="post-megadropdown-list" aria-labelledby="send-packages"> <li><a href="/sch">Packages Switzerland</a></li> <li><a href="/kl">Small goods international</a></li> </ul> </div> <div class="col"> <a class="post-megadropdown-list-title" id="step-by-step-packages" href="/step-by-step" >Step by step</a > <ul class="post-megadropdown-list" aria-labelledby="step-by-step-packages"> <li><a href="/sch">Packages Switzerland</a></li> <li><a href="/kl">Small goods international</a></li> </ul> </div> </div> </post-megadropdown> ``` (by [@alizedebray](https://github.com/alizedebray) with [#6891](#6891)) ```` - Renamed slots in the `post-header` component for improved clarity and consistency. The following slots have been renamed: - `target-group` → `audience` - `global-controls` → `global-nav-primary` - `meta-navigation` → `global-nav-secondary` - `post-language-switch` → `language-menu` - `global-login` → `post-login` - `post-mainnavigation` → `main-nav` All slot names must be updated in existing implementations to ensure header components render correctly. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6780](#6780)) - Updated the `post-megadropdown` component to no longer use named slots, it now provides only a default slot for its content. The close and back buttons are built into the component and are configured using the `labelClose` and `labelBack` properties instead of slotted markup. To preserve styling, the overview link should use the `.post-megadropdown-overview` class. BEFORE: ```html <post-megadropdown> <button slot="back-button" class="btn btn-tertiary px-0 btn-sm"> <post-icon name="arrowleft"></post-icon> Back </button> <post-closebutton slot="close-button">Close</post-closebutton> <a slot="post-megadropdown-overview" href="/letters">Overview Letters</a> <!-- Mega drop-down links --> </post-megadropdown> ``` AFTER: ````html <post-megadropdown label-close="Close" label-back="Back"> <a class="post-megadropdown-overview" href="/letters">Overview Letters</a> <!-- Mega drop-down links --> </post-megadropdown> ``` (by [@alizedebray](https://github.com/alizedebray) with [#6813](#6813)) ```` - Renamed `post-menu` parts to avoid naming confusions with other components. - `::part(menu)` is now `::part(post-menu)`. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6806](#6806)) - Removed `local-controls` and `navigation-controls` slots from the `post-header` component. Use the new `local-nav` slot for all application-specific controls. (by [@alizedebray](https://github.com/alizedebray) with [#6747](#6747)) - Renamed language components for improved semantic clarity: - `post-language-switch` → `post-language-menu` - `post-language-option` → `post-language-menu-item` Component tags must be updated accordingly. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6773](#6773)) - Simplified the `post-footer` component by removing the `post-list` and `post-list-item`. The footer now only uses simple `ul` and `li` tags. (by [@leagrdv](https://github.com/leagrdv) with [#6740](#6740)) - Renamed `post-accordion-item` parts to avoid naming confusions with other components. - `::part(button)` is now `::part(post-accordion-button)`. - `::part(body)` is now `::part(post-accordion-body)`. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#6676](#6676)) - Refactored `<post-tabs>` component: - Renamed `post-tab-header` component to `post-tab-item` - Renamed `panel` property to `name` in `post-tab-item` component - Renamed `name` property to `for` in `post-tab-panel` component - Renamed `activePanel` property to `activeTab` in `post-tabs` component BEFORE: ```html <post-tabs active-panel="first"> <post-tab-header panel="first">First tab</post-tab-header> <post-tab-header panel="second">Second tab</post-tab-header> <post-tab-header panel="third">Third tab</post-tab-header> <post-tab-panel name="first"> This is the content of the first tab. </post-tab-panel> <post-tab-panel name="second"> This is the content of the second tab. </post-tab-panel> <post-tab-panel name="third"> This is the content of the third tab. </post-tab-panel> </post-tabs> ``` AFTER: ````html <post-tabs active-tab="first"> <post-tab-item name="first">First tab</post-tab-item> <post-tab-item name="second">Second tab</post-tab-item> <post-tab-item name="third">Third tab</post-tab-item> <post-tab-panel for="first"> This is the content of the first tab. </post-tab-panel> <post-tab-panel for="second"> This is the content of the second tab. </post-tab-panel> <post-tab-panel for="third"> This is the content of the third tab. </post-tab-panel> </post-tabs> ``` (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6350](#6350)) ```` ### Minor Changes - Added navigation variant to the `post-tabs` component, enabling anchor-based navigation. The component now automatically detects whether `post-tab-item` elements contain anchor links and switches between panels and navigation variants accordingly. The `aria-current="page"` attribute must be manually added to the anchor element representing the current page to ensure proper styling and accessibility. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6350](#6350)) ### Patch Changes - Fixed a header specific issue with a large visual impact. Because of the issue, the component ended up in an incorrect visual state, when the focussed element within (e.g. the burger-menu-toggle), was removed from the DOM during a viewport resize event. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#6911](#6911)) - Removed `tabindex="0"` from the `post-linkarea` component. The link area is mouse-only and should not be focusable, only the button it contains can receive keyboard focus. (by [@alizedebray](https://github.com/alizedebray) with [#6937](#6937)) - Fixed console error "Cannot read properties of undefined" appearing when using the `post-stepper` component. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6685](#6685)) - Updated the `<post-popover-trigger>` component, to provide the ability to wrap it around the `<post-popover>` element, instead of using the `id` and `for` attribute references. (by [@myrta2302](https://github.com/myrta2302) with [#6626](#6626)) - Updated the `<post-header>` component to show the local-header when the mobile menu is open and the page is scrolled. (by [@myrta2302](https://github.com/myrta2302) with [#6758](#6758)) - Updated `<post-header>` to reset scroll when mobile menu is closed. (by [@myrta2302](https://github.com/myrta2302) with [#6852](#6852)) - Updated `post-closebutton` focus styles to always match other buttons, ensuring a consistent focus ring. (by [@alizedebray](https://github.com/alizedebray) with [#6939](#6939)) - Fixed burger menu scrolling when a navigation megadropdown is open. (by [@myrta2302](https://github.com/myrta2302) with [#6772](#6772)) - Added High Contrast border around the arrow element used in tooltip and popover components. (by [@myrta2302](https://github.com/myrta2302) with [#6623](#6623)) - Fixed the `post-accordion-item` button arrow by rotating it 180 degrees so it meets the design requirements. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#6676](#6676)) - Added guards in `post-header` and `post-collapsible`, to prevent JS animation functions from being executed on server side. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#6696](#6696)) - Fixed a Firefox-specific rendering engine (Gecko) issue on mobile and tablet related to position sticky, that causes the global header to be positioned incorrectly when invisible child elements receive focus on a scrolled page. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#6910](#6910)) - Updated the animation of the header mega drop-downs and burger menu. (by [@myrta2302](https://github.com/myrta2302) with [#6758](#6758)) - Updated dependencies: - @swisspost/[email protected] - @swisspost/[email protected] ## @swisspost/[email protected] ### Major Changes - Refactored `<post-tabs>` component: - Renamed `post-tab-header` component to `post-tab-item` - Renamed `panel` property to `name` in `post-tab-item` component - Renamed `name` property to `for` in `post-tab-panel` component - Renamed `activePanel` property to `activeTab` in `post-tabs` component BEFORE: ```html <post-tabs active-panel="first"> <post-tab-header panel="first">First tab</post-tab-header> <post-tab-header panel="second">Second tab</post-tab-header> <post-tab-header panel="third">Third tab</post-tab-header> <post-tab-panel name="first"> This is the content of the first tab. </post-tab-panel> <post-tab-panel name="second"> This is the content of the second tab. </post-tab-panel> <post-tab-panel name="third"> This is the content of the third tab. </post-tab-panel> </post-tabs> ``` AFTER: ````html <post-tabs active-tab="first"> <post-tab-item name="first">First tab</post-tab-item> <post-tab-item name="second">Second tab</post-tab-item> <post-tab-item name="third">Third tab</post-tab-item> <post-tab-panel for="first"> This is the content of the first tab. </post-tab-panel> <post-tab-panel for="second"> This is the content of the second tab. </post-tab-panel> <post-tab-panel for="third"> This is the content of the third tab. </post-tab-panel> </post-tabs> ``` (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6350](#6350)) ```` ### Patch Changes - Updated dependencies: - @swisspost/[email protected] ## @swisspost/[email protected] ### Major Changes - Refactored `<post-tabs>` component: - Renamed `post-tab-header` component to `post-tab-item` - Renamed `panel` property to `name` in `post-tab-item` component - Renamed `name` property to `for` in `post-tab-panel` component - Renamed `activePanel` property to `activeTab` in `post-tabs` component BEFORE: ```html <post-tabs active-panel="first"> <post-tab-header panel="first">First tab</post-tab-header> <post-tab-header panel="second">Second tab</post-tab-header> <post-tab-header panel="third">Third tab</post-tab-header> <post-tab-panel name="first"> This is the content of the first tab. </post-tab-panel> <post-tab-panel name="second"> This is the content of the second tab. </post-tab-panel> <post-tab-panel name="third"> This is the content of the third tab. </post-tab-panel> </post-tabs> ``` AFTER: ````html <post-tabs active-tab="first"> <post-tab-item name="first">First tab</post-tab-item> <post-tab-item name="second">Second tab</post-tab-item> <post-tab-item name="third">Third tab</post-tab-item> <post-tab-panel for="first"> This is the content of the first tab. </post-tab-panel> <post-tab-panel for="second"> This is the content of the second tab. </post-tab-panel> <post-tab-panel for="third"> This is the content of the third tab. </post-tab-panel> </post-tabs> ``` (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6350](#6350)) ```` ### Patch Changes - Updated dependencies: - @swisspost/[email protected] ## @swisspost/[email protected] ### Major Changes - Updated styles for elements slotted in the `post-header` component. Slotted lists should now omit the `.list-inline` class and will be automatically styled as part of the `post-header`. Keeping the `.list-inline` class will cause incorrect spacing between header elements. (by [@alizedebray](https://github.com/alizedebray) with [#6661](#6661)) - Removed the `traget-group.css` file, target group styles are now bundled with the `post-header` styles. The `.traget-group` class no longer exist and the component will only work when placed into a `post-header`. (by [@alizedebray](https://github.com/alizedebray) with [#6661](#6661)) - Refactored the icon mixins so that icons no longer need to be included separately, imports are now handled automatically. The `custom-property` mixin as therefore be removed entirely. The `icon` mixin arguments have also been updated: `$height` and `$width` have been replaced with a single `$size` since all icons are square. (by [@alizedebray](https://github.com/alizedebray) with [#6836](#6836)) - Removed the subnavigation component in favor of page tabs. (by [@alizedebray](https://github.com/alizedebray) with [#6913](#6913)) ### Minor Changes - Extended Swiss Post Sans font support with Extra Black (950) weight. (by [@alizedebray](https://github.com/alizedebray) with [#6932](#6932)) - Implemented a `Divider` html/css component using tokens for styles. Divider documentation is also added to /Components/Divider page. (by [@bucknatt](https://github.com/bucknatt) with [#6783](#6783)) ### Patch Changes - Integrated the burger menu button into the `<post-header>` by removing the previous `post-togglebutton` slot and introducing the required `textMenu` prop. (by [@myrta2302](https://github.com/myrta2302) with [#6801](#6801)) - Fixed an issue where sections could overflow the body when a scrollbar was present due to incorrect width calculations. (by [@alizedebray](https://github.com/alizedebray) with [#6933](#6933)) - Update the `post-megadropdown` to allow full customization of its content. The `post-megadropdown` can now contain any HTML elements, not just lists of links. As a result, list styling is no longer applied automatically. If you want a properly styled list of links, you must now add the required `post-megadropdown-*` classes to the corresponding elements yourself. BEFORE: ```html <post-megadropdown id="packages" label-close="Close" label-back="Back"> <a class="post-megadropdown-overview" href="/packages">Overview Packages</a> <post-list> <p>Send packages</p> <post-list-item><a href="/sch">Packages Switzerland</a></post-list-item> <post-list-item><a href="/kl">Small goods international</a></post-list-item> </post-list> <post-list> <p><a href="/step-by-step">Step by step</a></p> <post-list-item><a href="/sch">Packages Switzerland</a></post-list-item> <post-list-item><a href="/kl">Small goods international</a></post-list-item> </post-list> </post-megadropdown> ``` AFTER: ````html <post-megadropdown id="packages" label-close="Close" label-back="Back"> <a class="post-megadropdown-overview" href="/packages">Overview Packages</a> <div class="row row-cols-1 row-cols-sm-2"> <div class="col"> <p class="post-megadropdown-list-title" id="send-packages">Send packages</p> <ul class="post-megadropdown-list" aria-labelledby="send-packages"> <li><a href="/sch">Packages Switzerland</a></li> <li><a href="/kl">Small goods international</a></li> </ul> </div> <div class="col"> <a class="post-megadropdown-list-title" id="step-by-step-packages" href="/step-by-step" >Step by step</a > <ul class="post-megadropdown-list" aria-labelledby="step-by-step-packages"> <li><a href="/sch">Packages Switzerland</a></li> <li><a href="/kl">Small goods international</a></li> </ul> </div> </div> </post-megadropdown> ``` (by [@alizedebray](https://github.com/alizedebray) with [#6891](#6891)) ```` - Updated the `<post-header>` component to show the local-header when the mobile menu is open and the page is scrolled. (by [@myrta2302](https://github.com/myrta2302) with [#6758](#6758)) - Removed `local-controls` and `navigation-controls` slots from the `post-header` component. Use the new `local-nav` slot for all application-specific controls. (by [@alizedebray](https://github.com/alizedebray) with [#6747](#6747)) - Simplified the `post-footer` component by removing the `post-list` and `post-list-item`. The footer now only uses simple `ul` and `li` tags. (by [@leagrdv](https://github.com/leagrdv) with [#6740](#6740)) - Updated dependencies: - @swisspost/[email protected] ## @swisspost/[email protected] ### Minor Changes - Added icons: `2742`, `2743` and `2744` (by [@swisspost-bot](https://github.com/swisspost-bot) with [#6708](#6708)) - Added icons: - `paintroll` (solid): 40px (by [@swisspost-bot](https://github.com/swisspost-bot) with [#6719](#6719)) - Added icons: `2745`, `2746`, `2747` and `2748` (by [@swisspost-bot](https://github.com/swisspost-bot) with [#6760](#6760)) - Added icons: - `adresschange` (line & solid): 16, 24, 32, 40, 48 and 64px - `alcoholicgoods` (line & solid): 16, 24, 32, 40, 48 and 64px - `anchor` (line & solid): 16, 24, 32, 40, 48 and 64px - `animals` (line & solid): 16, 24, 32, 40, 48 and 64px - `artobjects` (line & solid): 16, 24, 32, 40, 48 and 64px - `branchaccesspoint` (line & solid): 16, 24, 32, 40, 48 and 64px - `branchhandover` (line & solid): 16, 24, 32, 40, 48 and 64px - `branchselfservice` (line & solid): 16, 24, 32, 40, 48 and 64px - `busstop` (line & solid): 16, 24, 32, 40, 48 and 64px - `certificate` (line & solid): 16, 24, 32, 40, 48 and 64px - `documentcarnetata` (line & solid): 16, 24, 32, 40, 48 and 64px - `documentofficial` (line & solid): 16, 24, 32, 40, 48 and 64px - `dryice` (line & solid): 16, 24, 32, 40, 48 and 64px - `e` (line & solid): 16, 24, 32, 40, 48 and 64px - `explosives` (line & solid): 16, 24, 32, 40, 48 and 64px - `handsanitizer` (line & solid): 16, 24, 32, 40, 48 and 64px - `horseshoe` (line & solid): 16, 24, 32, 40, 48 and 64px - `lacquer` (line & solid): 16, 24, 32, 40, 48 and 64px - `layers` (line & solid): 16, 24, 32, 40, 48 and 64px - `music` (line & solid): 16, 24, 32, 40, 48 and 64px - `opensource` (line & solid): 16, 24, 32, 40, 48 and 64px - `pobox` (line & solid): 16, 24, 32, 40, 48 and 64px - `plant` (line & solid): 16, 24, 32, 40, 48 and 64px - `preciousmetals` (line & solid): 16, 24, 32, 40, 48 and 64px - `product` (line & solid): 16, 24, 32, 40, 48 and 64px - `relocation` (line & solid): 16, 24, 32, 40, 48 and 64px - `seed` (line & solid): 16, 24, 32, 40, 48 and 64px - `usb` (line & solid): 16, 24, 32, 40, 48 and 64px - `urn` (line & solid): 16, 24, 32, 40, 48 and 64px (by [@swisspost-bot](https://github.com/swisspost-bot) with [#6807](#6807)) - Added icons: - `bed` (line & solid): 16, 24, 32, 40, 48 and 64px - `hourglass` (line & solid): 16, 24, 32, 40, 48 and 64px (by [@swisspost-bot](https://github.com/swisspost-bot) with [#6860](#6860)) ### Patch Changes - Updated icons: - `mypost24` (line & solid): 16, 24, 32, 40, 48 and 64px (by [@swisspost-bot](https://github.com/swisspost-bot) with [#6760](#6760)) - Updated icons: - `globemeridian` (line): 16px - `handstop` (solid): 16 and 24px - `heart` (solid): 40, 48 and 64px - `locationfavorite` (line): 16px - `plus` (solid): 64px - `searchmenu` (solid): 24, 32, 40, 48 and 64px - `send` (solid): 16px - `shipmentbroken` (solid): 32px - `tooth` (solid): 64px - `tourlist` (solid): 16, 32, 40, 48 and 64px - `wallet` (solid): 16 and 24px (by [@swisspost-bot](https://github.com/swisspost-bot) with [#6787](#6787)) - Updated icons: - `brain` (line & solid): 16, 24, 32, 40, 48 and 64px - `documentonenote` (line & solid): 16, 24, 32, 40, 48 and 64px - `linkedin` (solid): 16, 24, 32, 40, 48 and 64px - `mailcarrier` (line): 16, 24, 32, 40, 48 and 64px - `qrcode` (line & solid): 16, 24, 32, 40, 48 and 64px - `snapchat` (solid): 16, 24, 32, 40, 48 and 64px - `streetviewsatellite` (line & solid): 16, 24, 32, 40, 48 and 64px - `streetviewterrain` (line & solid): 16, 24, 32, 40, 48 and 64px - `twitterx` (line & solid): 16, 24, 32, 40, 48 and 64px - `whatsapp` (solid): 16, 24, 32, 40, 48 and 64px - `xing` (line & solid): 16, 24, 32, 40, 48 and 64px - `youtube` (solid): 16, 24, 32, 40, 48 and 64px - `kununu` (solid): 16, 24, 32, 40, 48 and 64px (by [@swisspost-bot](https://github.com/swisspost-bot) with [#6832](#6832)) ## @swisspost/[email protected] ### Patch Changes - Updated dependencies: - @swisspost/[email protected] ## @swisspost/[email protected] ## @swisspost/[email protected] ## @swisspost/[email protected] ## @swisspost/[email protected] ### Major Changes - Removed the language switch from the documented components since it belongs to the `post-header` and should not be used independently. (by [@alizedebray](https://github.com/alizedebray) with [#6622](#6622)) - ### Renamed the following component props #### post-back-to-top - `label` → `textBackToTop` #### post-breadcrumbs - `menuLabel` → `textMoreItems` - `label` → `textBreadcrumbs` - `homeText` → `textHome` #### post-footer - `label` → `textFooter` #### post-language-menu - `caption` → `textChangeLanguage` - `description` → `textCurrentLanguage` #### post-main-navigation - `caption` → `textMain` #### post-pagination - `labelLast` → `textLast` - `labelFirst` → `textFirst` - `labelPage` → `textPage` - `labelNext` → `textNext` - `labelPrevious` → `textPrevious` #### post-popover - `closeButtonCaption` → `textClose` #### post-stepper - `activeStepLabel` → `textStepNumber` - `completedLabel` → `textCompletedStep` - `currentLabel` → `textCurrentStep` (by [@myrta2302](https://github.com/myrta2302) with [#6894](#6894)) - Renamed `post-accordion-item` parts to avoid naming confusions with other components. - `::part(button)` is now `::part(post-accordion-button)`. - `::part(body)` is now `::part(post-accordion-body)`. (by [@oliverschuerch](https://github.com/oliverschuerch) with [#6676](#6676)) - Removed the subnavigation component in favor of page tabs. (by [@alizedebray](https://github.com/alizedebray) with [#6913](#6913)) ### Minor Changes - Implemented a `Divider` html/css component using tokens for styles. Divider documentation is also added to /Components/Divider page. (by [@bucknatt](https://github.com/bucknatt) with [#6783](#6783)) - Moved the base typography elements into one single `Foundations > Typography` page and the "Text Highlighted" and "List" elements into the `Components` folder to align with Figma. (by [@bucknatt](https://github.com/bucknatt) with [#6508](#6508)) - Added navigation variant to the `post-tabs` component, enabling anchor-based navigation. The component now automatically detects whether `post-tab-item` elements contain anchor links and switches between panels and navigation variants accordingly. The `aria-current="page"` attribute must be manually added to the anchor element representing the current page to ensure proper styling and accessibility. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6350](#6350)) ### Patch Changes - Updated `post-header` to prevent unnecessary h-tags. An h-tag can now only be used for the header title in microsite or one-page variants, other elements no longer use h-tags. (by [@alizedebray](https://github.com/alizedebray) with [#6693](#6693)) - Improved accessibility by updating minimum font-size to 14px and converting font-size units from px to rem. (by [@bucknatt](https://github.com/bucknatt) with [#5964](#5964)) - Renamed `post-tabs` parts to avoid naming confusions with other components. - `::part(tabs)` is now `::part(post-tabs)`. - `::part(content)` is now `::part(post-tabs-content)`. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6806](#6806)) - Integrated the burger menu button into the `<post-header>` by removing the previous `post-togglebutton` slot and introducing the required `textMenu` prop. (by [@myrta2302](https://github.com/myrta2302) with [#6801](#6801)) - Fixed `post-banner` becoming unstyled when changing the type control in Storybook. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6756](#6756)) - Added a required `caption` property to the `post-mainnavigation` component for the accessible name of the navigation landmark. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6841](#6841)) - Updated styles for elements slotted in the `post-header` component. Slotted lists should now omit the `.list-inline` class and will be automatically styled as part of the `post-header`. Keeping the `.list-inline` class will cause incorrect spacing between header elements. (by [@alizedebray](https://github.com/alizedebray) with [#6661](#6661)) - Prevented JSON parsing errors by safely handling legacy `devModeEnabled` values in local storage. (by [@leagrdv](https://github.com/leagrdv) with [#6835](#6835)) - Update the `post-megadropdown` to allow full customization of its content. The `post-megadropdown` can now contain any HTML elements, not just lists of links. As a result, list styling is no longer applied automatically. If you want a properly styled list of links, you must now add the required `post-megadropdown-*` classes to the corresponding elements yourself. BEFORE: ```html <post-megadropdown id="packages" label-close="Close" label-back="Back"> <a class="post-megadropdown-overview" href="/packages">Overview Packages</a> <post-list> <p>Send packages</p> <post-list-item><a href="/sch">Packages Switzerland</a></post-list-item> <post-list-item><a href="/kl">Small goods international</a></post-list-item> </post-list> <post-list> <p><a href="/step-by-step">Step by step</a></p> <post-list-item><a href="/sch">Packages Switzerland</a></post-list-item> <post-list-item><a href="/kl">Small goods international</a></post-list-item> </post-list> </post-megadropdown> ``` AFTER: ````html <post-megadropdown id="packages" label-close="Close" label-back="Back"> <a class="post-megadropdown-overview" href="/packages">Overview Packages</a> <div class="row row-cols-1 row-cols-sm-2"> <div class="col"> <p class="post-megadropdown-list-title" id="send-packages">Send packages</p> <ul class="post-megadropdown-list" aria-labelledby="send-packages"> <li><a href="/sch">Packages Switzerland</a></li> <li><a href="/kl">Small goods international</a></li> </ul> </div> <div class="col"> <a class="post-megadropdown-list-title" id="step-by-step-packages" href="/step-by-step" >Step by step</a > <ul class="post-megadropdown-list" aria-labelledby="step-by-step-packages"> <li><a href="/sch">Packages Switzerland</a></li> <li><a href="/kl">Small goods international</a></li> </ul> </div> </div> </post-megadropdown> ``` (by [@alizedebray](https://github.com/alizedebray) with [#6891](#6891)) ```` - Renamed slots in the `post-header` component for improved clarity and consistency. The following slots have been renamed: - `target-group` → `audience` - `global-controls` → `global-nav-primary` - `meta-navigation` → `global-nav-secondary` - `post-language-switch` → `language-menu` - `global-login` → `post-login` - `post-mainnavigation` → `main-nav` All slot names must be updated in existing implementations to ensure header components render correctly. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6780](#6780)) - Updated the `post-megadropdown` component to no longer use named slots, it now provides only a default slot for its content. The close and back buttons are built into the component and are configured using the `labelClose` and `labelBack` properties instead of slotted markup. To preserve styling, the overview link should use the `.post-megadropdown-overview` class. BEFORE: ```html <post-megadropdown> <button slot="back-button" class="btn btn-tertiary px-0 btn-sm"> <post-icon name="arrowleft"></post-icon> Back </button> <post-closebutton slot="close-button">Close</post-closebutton> <a slot="post-megadropdown-overview" href="/letters">Overview Letters</a> <!-- Mega drop-down links --> </post-megadropdown> ``` AFTER: ````html <post-megadropdown label-close="Close" label-back="Back"> <a class="post-megadropdown-overview" href="/letters">Overview Letters</a> <!-- Mega drop-down links --> </post-megadropdown> ``` (by [@alizedebray](https://github.com/alizedebray) with [#6813](#6813)) ```` - Refactored the icon mixins so that icons no longer need to be included separately, imports are now handled automatically. The `custom-property` mixin as therefore be removed entirely. The `icon` mixin arguments have also been updated: `$height` and `$width` have been replaced with a single `$size` since all icons are square. (by [@alizedebray](https://github.com/alizedebray) with [#6836](#6836)) - Renamed `post-menu` parts to avoid naming confusions with other components. - `::part(menu)` is now `::part(post-menu)`. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6806](#6806)) - Removed `local-controls` and `navigation-controls` slots from the `post-header` component. Use the new `local-nav` slot for all application-specific controls. (by [@alizedebray](https://github.com/alizedebray) with [#6747](#6747)) - Changed hover background color of buttons in previews for better readability. (by [@leagrdv](https://github.com/leagrdv) with [#6748](#6748)) - Renamed language components for improved semantic clarity: - `post-language-switch` → `post-language-menu` - `post-language-option` → `post-language-menu-item` Component tags must be updated accordingly. (by [@alionazherdetska](https://github.com/alionazherdetska) with [#6773](#6773)) - Simplified the `post-footer` component by removing the `post-list` and `post-list-item`. The footer now only uses simple `ul` and `li` tags. (by [@leagrdv](https://github.com/leagrdv) with [#6740](#6740)) - Added padding in the version selector for better readability. (by [@bucknatt](https://github.com/bucknatt) with [#6698](#6698)) - Updated documentation: - Changed the main Figma link in the `Introduction` page - Restored the list of HTML components in the `Getting Started > Developer` page (by [@leagrdv](https://github.com/leagrdv) with [#6755](#6755)) - Fixed theme in storybook not being added correctly in production mode. (by [@leagrdv](https://github.com/leagrdv) with [#6717](#6717)) - Updated dependencies: - @swisspost/[email protected] - @swisspost/[email protected] - @swisspost/[email protected] - @swisspost/[email protected] - @swisspost/[email protected] - @swisspost/[email protected] ## @swisspost/[email protected] ### Patch Changes - Updated dependencies: - @swisspost/[email protected] - @swisspost/[email protected] ## @swisspost/[email protected] ### Patch Changes - Updated dependencies: - @swisspost/[email protected] ## @swisspost/[email protected] ### Patch Changes - Updated dependencies: - @swisspost/[email protected] - @swisspost/[email protected] ## @swisspost/[email protected] ### Patch Changes - Updated dependencies: - @swisspost/[email protected] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 8199b10 commit f755ae4

File tree

30 files changed

+840
-64
lines changed

30 files changed

+840
-64
lines changed

.changeset/pre.json

Lines changed: 53 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,25 @@
6363
"20251102021956-minor-post-icon-update",
6464
"20251104122928-minor-post-icon-update",
6565
"20251112083607-minor-ui-icon-update",
66+
"20251123023001-minor-post-icon-update",
67+
"20251124135922-minor-ui-icon-update",
68+
"20251128085555-minor-post-icon-update",
69+
"20251128085555-patch-ui-icon-update",
70+
"20251203084126-patch-ui-icon-update",
71+
"20251207022928-minor-ui-icon-update",
72+
"20251210074537-patch-ui-icon-update",
73+
"20251214023026-minor-ui-icon-update",
6674
"afraid-mangos-sing",
6775
"all-cloths-sleep",
6876
"angry-bulldogs-refuse",
6977
"angry-eagles-appear",
7078
"angry-rules-win",
79+
"angry-socks-fall",
7180
"angry-trams-stick",
7281
"beige-fans-see",
7382
"beige-jobs-do",
7483
"beige-spoons-stay",
84+
"better-taxes-lie",
7585
"big-boats-suffer",
7686
"big-frogs-admire",
7787
"big-guests-kiss",
@@ -118,6 +128,7 @@
118128
"chilly-onions-compare",
119129
"chubby-hounds-roll",
120130
"chubby-planes-appear",
131+
"clarify-post-header-focus-comment",
121132
"clean-bears-hammer",
122133
"clean-cherries-tickle",
123134
"clean-icons-complain",
@@ -161,6 +172,7 @@
161172
"cyan-days-kiss",
162173
"cyan-planets-compete",
163174
"cyan-years-pretend",
175+
"dark-monkeys-shave",
164176
"dirty-mayflies-taste",
165177
"dirty-shrimps-leave",
166178
"dirty-squids-hunt",
@@ -175,8 +187,10 @@
175187
"dull-garlics-look",
176188
"eager-chairs-sin",
177189
"early-baboons-cross",
190+
"early-brooms-cough",
178191
"early-knives-own",
179192
"early-news-fetch",
193+
"early-peas-go",
180194
"easy-bananas-learn",
181195
"easy-tables-allow",
182196
"eight-ants-warn",
@@ -196,6 +210,7 @@
196210
"empty-pants-brake",
197211
"every-lemons-stop",
198212
"evil-kings-beam",
213+
"evil-states-follow",
199214
"fair-actors-scream",
200215
"fair-dingos-wait",
201216
"fair-llamas-battle",
@@ -204,7 +219,6 @@
204219
"fair-squids-float",
205220
"famous-oranges-go",
206221
"famous-panthers-bow",
207-
"fast-bats-poke",
208222
"fast-eels-obey",
209223
"fast-fans-wash",
210224
"fast-frogs-pump",
@@ -234,6 +248,7 @@
234248
"forty-icons-punch",
235249
"forty-insects-chew",
236250
"forty-jokes-sin",
251+
"forty-llamas-admire",
237252
"forty-rice-switch",
238253
"forty-rings-refuse",
239254
"four-actors-enter",
@@ -244,15 +259,18 @@
244259
"four-monkeys-buy",
245260
"four-moose-design",
246261
"four-terms-cross",
262+
"free-lamps-create",
247263
"fresh-files-crash",
248264
"fresh-hats-do",
249265
"fresh-schools-peel",
250266
"friendly-impalas-reflect",
251267
"friendly-insects-breathe",
268+
"full-sides-write",
252269
"funny-goats-walk",
253270
"funny-knives-rule",
254271
"funny-months-attend",
255272
"funny-shrimps-care",
273+
"funny-trees-do",
256274
"fuzzy-feet-ring",
257275
"fuzzy-mice-wait",
258276
"gentle-ads-end",
@@ -280,7 +298,6 @@
280298
"gorgeous-flowers-flow",
281299
"gorgeous-glasses-end",
282300
"gorgeous-mugs-train",
283-
"gorgeous-needles-run",
284301
"great-avocados-fix",
285302
"great-boxes-drop",
286303
"great-houses-bake",
@@ -315,7 +332,9 @@
315332
"honest-sheep-burn",
316333
"hot-lizards-dance",
317334
"hot-streets-eat",
335+
"huge-jokes-give",
318336
"hungry-balloons-sin",
337+
"hungry-bugs-grin",
319338
"hungry-ducks-raise",
320339
"hungry-penguins-turn",
321340
"hungry-pumas-repair",
@@ -334,6 +353,7 @@
334353
"large-poems-dream",
335354
"late-birds-report",
336355
"late-days-approve",
356+
"late-planes-kiss",
337357
"late-toys-cross",
338358
"lazy-eels-nail",
339359
"lazy-gorillas-admire",
@@ -351,7 +371,10 @@
351371
"light-terms-knock",
352372
"light-toys-behave",
353373
"little-cars-unite",
374+
"little-crabs-stick",
375+
"little-ducks-say",
354376
"little-squids-camp",
377+
"long-aliens-act",
355378
"long-shrimps-roll",
356379
"loose-melons-switch",
357380
"loose-times-attend",
@@ -385,9 +408,11 @@
385408
"mighty-tables-play",
386409
"modern-pumpkins-kneel",
387410
"moody-coats-kneel",
411+
"moody-glasses-raise",
388412
"moody-gorillas-explain",
389413
"moody-mice-design",
390414
"moody-papayas-brush",
415+
"moody-rivers-flash",
391416
"moody-squids-lay",
392417
"nasty-ads-greet",
393418
"nasty-plants-shop",
@@ -429,6 +454,7 @@
429454
"olive-kangaroos-repair",
430455
"olive-llamas-dream",
431456
"olive-squids-enjoy",
457+
"orange-beers-knock",
432458
"orange-kiwis-breathe",
433459
"orange-maps-tan",
434460
"orange-seals-appear",
@@ -437,6 +463,7 @@
437463
"pink-schools-double",
438464
"pink-weeks-relate",
439465
"plain-bees-change",
466+
"plain-ravens-occur",
440467
"plain-snails-cover",
441468
"plenty-apricots-raise",
442469
"plenty-foxes-listen",
@@ -445,6 +472,8 @@
445472
"plenty-paws-run",
446473
"plenty-taxis-hear",
447474
"plenty-waves-notice",
475+
"polite-coats-smile",
476+
"polite-flowers-smell",
448477
"poor-bags-care",
449478
"poor-jars-call",
450479
"poor-laws-impress",
@@ -453,14 +482,18 @@
453482
"popular-otters-rhyme",
454483
"popular-rivers-poke",
455484
"pretty-beans-kneel",
485+
"pretty-glasses-ring",
456486
"pretty-meals-suffer",
457487
"proud-actors-knock",
458488
"proud-adults-bet",
459489
"proud-cheetahs-act",
460490
"proud-moons-impress",
491+
"puny-kids-return",
461492
"puny-parrots-turn",
493+
"purple-carpets-laugh",
462494
"purple-cooks-carry",
463495
"purple-impalas-own",
496+
"purple-papayas-guess",
464497
"purple-terms-march",
465498
"quick-buses-give",
466499
"quick-eagles-watch",
@@ -502,6 +535,7 @@
502535
"rude-pumas-juggle",
503536
"rude-shrimps-wonder",
504537
"sad-jeans-flow",
538+
"sad-pumas-act",
505539
"salty-badgers-doubt",
506540
"selfish-bats-run",
507541
"selfish-boats-appear",
@@ -512,12 +546,15 @@
512546
"serious-wasps-poke",
513547
"seven-kids-remember",
514548
"seven-nails-smoke",
549+
"seven-wings-dig",
515550
"shaggy-experts-give",
516551
"shaggy-hornets-wish",
517552
"shaggy-kings-notice",
553+
"shaggy-results-kiss",
518554
"shaggy-suns-suffer",
519555
"shaggy-women-drive",
520556
"shaky-cups-bake",
557+
"shaky-grapes-sniff",
521558
"shaky-nights-drop",
522559
"shaky-squids-cheer",
523560
"sharp-baboons-smile",
@@ -553,6 +590,7 @@
553590
"slimy-items-happen",
554591
"slimy-plums-sniff",
555592
"slimy-rockets-pull",
593+
"slimy-trains-sink",
556594
"slow-apes-double",
557595
"slow-breads-attack",
558596
"slow-doodles-behave",
@@ -564,7 +602,9 @@
564602
"smart-cobras-train",
565603
"smart-gifts-count",
566604
"smart-walls-carry",
605+
"smart-walls-jump",
567606
"smooth-bugs-explode",
607+
"smooth-cameras-sort",
568608
"smooth-hairs-thank",
569609
"smooth-spoons-matter",
570610
"social-streets-float",
@@ -574,6 +614,8 @@
574614
"soft-women-show",
575615
"some-banks-end",
576616
"some-mugs-enjoy",
617+
"some-parts-raise",
618+
"some-seas-invent",
577619
"some-snakes-repeat",
578620
"sour-pumas-cough",
579621
"spicy-forks-type",
@@ -594,9 +636,11 @@
594636
"stupid-knives-thank",
595637
"stupid-walls-tie",
596638
"sweet-cherries-drop",
639+
"sweet-grapes-run",
597640
"sweet-seals-search",
598641
"swift-glasses-eat",
599-
"swift-shrimps-dream",
642+
"tabs-anchor-navigation",
643+
"tabs-navigation-mode",
600644
"tall-cougars-remain",
601645
"tall-lions-tap",
602646
"tame-baboons-cry",
@@ -639,9 +683,10 @@
639683
"tiny-socks-count",
640684
"tired-cameras-stand",
641685
"tired-horses-kick",
686+
"tired-wasps-fry",
687+
"tired-ways-jog",
642688
"tough-bikes-punch",
643689
"tough-buckets-share",
644-
"tough-cheetahs-clean",
645690
"tough-dancers-attend",
646691
"tough-friends-know",
647692
"tough-pillows-pump",
@@ -664,13 +709,15 @@
664709
"two-hounds-march",
665710
"two-planets-fix",
666711
"two-shirts-shake",
712+
"upset-candles-change",
667713
"upset-hats-care",
668714
"vast-rivers-agree",
669715
"violet-geckos-shave",
670716
"violet-jokes-stare",
671717
"violet-poems-attend",
672718
"warm-drinks-prove",
673719
"warm-walls-stare",
720+
"weak-bugs-try",
674721
"weak-camels-deliver",
675722
"weak-falcons-study",
676723
"weak-jars-rhyme",
@@ -690,6 +737,7 @@
690737
"wise-rats-whisper",
691738
"wise-spies-shave",
692739
"wise-tomatoes-brake",
740+
"witty-bees-own",
693741
"witty-horses-destroy",
694742
"witty-socks-prove",
695743
"yellow-garlics-draw",
@@ -699,6 +747,7 @@
699747
"yellow-yaks-jog",
700748
"young-mangos-jump",
701749
"young-pears-guess",
750+
"young-states-teach",
702751
"yummy-dots-look",
703752
"yummy-readers-flash"
704753
]

packages/changelog-github/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @swisspost/design-system-changelog-github
22

3+
## 10.0.0-next.56
4+
35
## 10.0.0-next.55
46

57
## 10.0.0-next.54

packages/changelog-github/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@swisspost/design-system-changelog-github",
3-
"version": "10.0.0-next.55",
3+
"version": "10.0.0-next.56",
44
"description": "A changelog entry generator for GitHub that links to PRs and users",
55
"author": "Swiss Post <[email protected]>",
66
"license": "Apache-2.0",

packages/components-angular/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @swisspost/design-system-components-angular-workspace
22

3+
## 10.0.0-next.56
4+
5+
### Patch Changes
6+
7+
- Updated dependencies:
8+
- @swisspost/design-system-components@10.0.0-next.56
9+
- @swisspost/design-system-styles@10.0.0-next.56
10+
311
## 10.0.0-next.55
412

513
### Patch Changes

packages/components-angular/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@swisspost/design-system-components-angular-workspace",
3-
"version": "10.0.0-next.55",
3+
"version": "10.0.0-next.56",
44
"description": "Wrapper arround @swisspost/design-system-components for angular",
55
"author": "Swiss Post <[email protected]>",
66
"license": "Apache-2.0",
@@ -34,8 +34,8 @@
3434
"@angular/platform-browser": "20.3.9",
3535
"@angular/platform-browser-dynamic": "20.3.9",
3636
"@angular/router": "20.3.9",
37-
"@swisspost/design-system-components": "workspace:10.0.0-next.55",
38-
"@swisspost/design-system-styles": "workspace:10.0.0-next.55",
37+
"@swisspost/design-system-components": "workspace:10.0.0-next.56",
38+
"@swisspost/design-system-styles": "workspace:10.0.0-next.56",
3939
"rxjs": "7.8.2",
4040
"tslib": "2.8.1",
4141
"zone.js": "0.15.1"
@@ -46,7 +46,7 @@
4646
"@angular/compiler-cli": "20.3.9",
4747
"@cypress/schematic": "3.0.0",
4848
"@eslint/js": "9.18.0",
49-
"@swisspost/design-system-components-angular": "workspace:10.0.0-next.55",
49+
"@swisspost/design-system-components-angular": "workspace:10.0.0-next.56",
5050
"angular-eslint": "19.8.1",
5151
"copyfiles": "2.4.1",
5252
"cypress": "14.3.2",

0 commit comments

Comments
 (0)