From a6f9fae1f7173d7f61b028e1fe5061dfdaaddbd0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 5 Jun 2024 06:33:58 +0000 Subject: [PATCH] chore(main): release 0.52.0 --- CHANGELOG.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4ebfb3ce54..2863a356973 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,60 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +## [0.52.0](https://github.com/sbb-design-systems/lyne-components/compare/v0.51.1...v0.52.0) (2024-06-05) + + +### ⚠ BREAKING CHANGES + +* The half-public data-now attribute has become a public `now` property that can be used to set time or date-based components into a specific state, especially for testing purposes. + - `sbb-calendar`, `sbb-datepicker`, `sbb-timetable-row`, `sbb-journey-summary`, `sbb-pearl-chain`, `sbb-pearl-chain-time`: change the attribute `data-now` to `now`. The property `now` can be a Date or Unix timestamp. If you had a timestamp in milliseconds before, please divide by 1000 to get seconds. + - `sbb-clock`: change the attribute `data-now` to `now`. The property `now` has to be in the format "HH:MM:SS". +* `Lyne components` and `Lyne components react` libraries have been renamed, please update imports accordingly. + - `@sbb-esta/lyne-components` => `@sbb-esta/lyne-elements` + - `@sbb-esta/lyne-components-react` => `@sbb-esta/lyne-react` + The following components, and their react wrappers, have been moved into `@sbb-esta/lyne-elements-experimental` and `@sbb-esta/lyne-react-experimental` respectively: + - sbb-journey-summary + - sbb-pearl-chain + - sbb-pearl-chain-time + - sbb-pearl-chain-vertical + - sbb-pearl-chain-vertical-item + - sbb-timetable-duration + - sbb-timetable-row +* **sbb-link:** Due to screen reader limitations, we had to move the `link` role inside the Shadow DOM. Therefore, for the following components, replace the `[aria-label]` usages with `[accessibility-label]` attribute or `accessibilityLabel` property: + - `sbb-breadcrumb` + - `sbb-button-link`, `sbb-secondary-button-link`, `sbb-tertiary-button-link`, `sbb-transparent-button-link` + - `sbb-card-link` + - `sbb-header-link` + - `sbb-link`, `sbb-block-link` + - `sbb-menu-link` + - `sbb-navigation-link` + - `sbb-teaser`, `sbb-teaser-hero`, `sbb-teaser-paid` + +### Features + +* add 'now' property instead of data-now attribute ([#2674](https://github.com/sbb-design-systems/lyne-components/issues/2674)) ([94c25b1](https://github.com/sbb-design-systems/lyne-components/commit/94c25b1b84250ea39f07ea3c6efa38a1c9c74e39)) +* **journey-header:** add size s ([#2656](https://github.com/sbb-design-systems/lyne-components/issues/2656)) ([610ef3a](https://github.com/sbb-design-systems/lyne-components/commit/610ef3af31a161fadbc7202f54dc49a95c1fd3f4)) +* **sbb-lead-container:** initial implementation ([#2672](https://github.com/sbb-design-systems/lyne-components/issues/2672)) ([bb1f3a8](https://github.com/sbb-design-systems/lyne-components/commit/bb1f3a850291b533491563feca207cadcbd08a9d)) +* **sbb-popover:** change close button size ([#2688](https://github.com/sbb-design-systems/lyne-components/issues/2688)) ([1f259be](https://github.com/sbb-design-systems/lyne-components/commit/1f259beb31d09a185803f3b24e418489376c3bce)) +* **sbb-tab-group:** add size s variant ([#2683](https://github.com/sbb-design-systems/lyne-components/issues/2683)) ([c00aa58](https://github.com/sbb-design-systems/lyne-components/commit/c00aa58add944e30ad74a99e5058860b9d263251)) +* **sbb-tag, sbb-tag-group:** add size s variant ([#2664](https://github.com/sbb-design-systems/lyne-components/issues/2664)) ([6291bdc](https://github.com/sbb-design-systems/lyne-components/commit/6291bdcf62c7b5cecbd60296841a4dbd2e1b852b)) + + +### Bug Fixes + +* prevent stack overflow with attribute changes ([#2661](https://github.com/sbb-design-systems/lyne-components/issues/2661)) ([4b382ed](https://github.com/sbb-design-systems/lyne-components/commit/4b382ede1942ecf09fce323e2a57b7fac437d064)) +* **sbb-alert:** improve SSR hydration support ([#2650](https://github.com/sbb-design-systems/lyne-components/issues/2650)) ([1b09429](https://github.com/sbb-design-systems/lyne-components/commit/1b094291be6e03516bd4e41555c05fe2c6fa46c3)) +* **sbb-block-link:** always show underline except for footer links ([#2705](https://github.com/sbb-design-systems/lyne-components/issues/2705)) ([5fbedd2](https://github.com/sbb-design-systems/lyne-components/commit/5fbedd2b05a0b88e05e156b168409f8a741860f5)) +* **sbb-button:** fix gap between icon and text for size s ([#2678](https://github.com/sbb-design-systems/lyne-components/issues/2678)) ([38efbd8](https://github.com/sbb-design-systems/lyne-components/commit/38efbd86161f1bb59a66512c054543bfcf62bac2)) +* **sbb-image:** render URL correctly with SSR ([#2712](https://github.com/sbb-design-systems/lyne-components/issues/2712)) ([fde1700](https://github.com/sbb-design-systems/lyne-components/commit/fde17007f0391fdf7cd6f1512477a8a67b65a1b6)) +* **sbb-link:** fix accessibility by inlining link functionality into Shadow DOM ([52344e9](https://github.com/sbb-design-systems/lyne-components/commit/52344e95138a622b2fa3012b7f13963002fde0de)) +* **sbb-radio-button:** fix checked initialization ([#2692](https://github.com/sbb-design-systems/lyne-components/issues/2692)) ([abdaf43](https://github.com/sbb-design-systems/lyne-components/commit/abdaf43389ac19f590b5b0326cc8783166bc243d)) + + +### Code Refactoring + +* rename `lyne-components` into `lyne-elements` and create `lyne-elements-experimental` ([edd3a73](https://github.com/sbb-design-systems/lyne-components/commit/edd3a730ee09d2ca3e54f77c6e1510ff83789ec9)) + ## [0.51.1](https://github.com/sbb-design-systems/lyne-components/compare/v0.51.0...v0.51.1) (2024-05-08) diff --git a/package.json b/package.json index bb43d2993d1..a86d67a6728 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sbb-esta/lyne-elements", - "version": "0.51.1", + "version": "0.52.0", "description": "Lyne Design System", "keywords": [ "design system",