diff --git a/CHANGELOG.md b/CHANGELOG.md index a4f5b8d96f6..fe00261b308 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,68 @@ # Changelog +# 4.9.0 + +#### :rocket: New Feature + +- [#3714](https://github.com/ec-europa/europa-component-library/pull/3714) feat(button, link): add indicator - FRONT-4677 ([@emeryro](https://github.com/emeryro)) +- [#3712](https://github.com/ec-europa/europa-component-library/pull/3712) feat(navigation-list): Adding image-as-illustration variant - FRONT-4678 ([@planctus](https://github.com/planctus)) + +#### :warning: Markup Changes + +- [#3699](https://github.com/ec-europa/europa-component-library/pull/3699) feat(forms): add option to hide label - FRONT-4668 ([@emeryro](https://github.com/emeryro)) +- [#3701](https://github.com/ec-europa/europa-component-library/pull/3701) feat(gallery): add gallery label with instruction - FRONT-4372 ([@emeryro](https://github.com/emeryro)) +- [#3687](https://github.com/ec-europa/europa-component-library/pull/3687) feat(splash-page): Column display whith a low amout of items, fixing EU styles - FRONT-4662 ([@planctus](https://github.com/planctus)) + +#### :warning: Data Changes + +- [#3699](https://github.com/ec-europa/europa-component-library/pull/3699) feat(forms): add option to hide label - FRONT-4668 ([@emeryro](https://github.com/emeryro)) +- [#3701](https://github.com/ec-europa/europa-component-library/pull/3701) feat(gallery): add gallery label with instruction - FRONT-4372 ([@emeryro](https://github.com/emeryro)) + +#### :bug: Bug Fix + +- [#3737](https://github.com/ec-europa/europa-component-library/pull/3737) fix(showcase): Including menu markup in the showcase examples - FRONT-4689 ([@planctus](https://github.com/planctus)) +- [#3711](https://github.com/ec-europa/europa-component-library/pull/3711) fix(default-css): Fixing rules for links inside lists, fixing description list - FRONT-4676 ([@planctus](https://github.com/planctus)) +- [#3694](https://github.com/ec-europa/europa-component-library/pull/3694) feat(logos): Adding japanese logo files with correct file name, hiding the others - FRONT-4670 ([@planctus](https://github.com/planctus)) +- [#3684](https://github.com/ec-europa/europa-component-library/pull/3684) fix(tabs): fix rtl mobile - FRONT-4659 ([@emeryro](https://github.com/emeryro)) + +#### :nail_care: Enhancement + +- [#3721](https://github.com/ec-europa/europa-component-library/pull/3721) feat(list): update indentation - FRONT-4682 ([@emeryro](https://github.com/emeryro)) +- [#3719](https://github.com/ec-europa/europa-component-library/pull/3719) feat(banner): improve focus for video banner - FRONT-4681 ([@emeryro](https://github.com/emeryro)) +- [#3699](https://github.com/ec-europa/europa-component-library/pull/3699) feat(forms): add option to hide label - FRONT-4668 ([@emeryro](https://github.com/emeryro)) +- [#3700](https://github.com/ec-europa/europa-component-library/pull/3700) chore(website): Using the existing ECL_VERSION to dynamically refer to the proper url of the CDN - FRONT-4671 ([@planctus](https://github.com/planctus)) +- [#3701](https://github.com/ec-europa/europa-component-library/pull/3701) feat(gallery): add gallery label with instruction - FRONT-4372 ([@emeryro](https://github.com/emeryro)) +- [#3687](https://github.com/ec-europa/europa-component-library/pull/3687) feat(splash-page): Column display whith a low amout of items, fixing EU styles - FRONT-4662 ([@planctus](https://github.com/planctus)) +- [#3697](https://github.com/ec-europa/europa-component-library/pull/3697) feat(featured-item): Styles adapted to support no title use case - FRONT-4669 ([@planctus](https://github.com/planctus)) +- [#3692](https://github.com/ec-europa/europa-component-library/pull/3692) feat(lists): Another round on unordered and ordered list in EC and EU - FRONT-4656 ([@planctus](https://github.com/planctus)) +- [#3691](https://github.com/ec-europa/europa-component-library/pull/3691) feat(language-list): update active state and spacing - FRONT-4661 ([@emeryro](https://github.com/emeryro)) +- [#3686](https://github.com/ec-europa/europa-component-library/pull/3686) feat(link): dynamic underline offset ([@emeryro](https://github.com/emeryro)) + +#### :memo: Documentation + +- [#3720](https://github.com/ec-europa/europa-component-library/pull/3720) fix(docs): Fix wrong API name class for Menu and MegaMenu - FRONT-4685 ([@joarod-eu](https://github.com/joarod-eu)) + +#### :house: Internal + +- [#3742](https://github.com/ec-europa/europa-component-library/pull/3742) chore(deps): Updates 04-12-24 ([@planctus](https://github.com/planctus)) +- [#3735](https://github.com/ec-europa/europa-component-library/pull/3735) chore(form): Manually reintroducing wrongly deleted code ([@planctus](https://github.com/planctus)) +- [#3734](https://github.com/ec-europa/europa-component-library/pull/3734) chore(deps): Fix deps, updates 25-11-24 ([@planctus](https://github.com/planctus)) +- [#3732](https://github.com/ec-europa/europa-component-library/pull/3732) chore(build): fix build issue - FRONT-4686 ([@emeryro](https://github.com/emeryro)) +- [#3722](https://github.com/ec-europa/europa-component-library/pull/3722) docs(splash-page): add usage page - FRONT-4684 ([@emeryro](https://github.com/emeryro)) +- [#3715](https://github.com/ec-europa/europa-component-library/pull/3715) chore(deps): Updates - 13-11-24 ([@planctus](https://github.com/planctus)) +- [#3710](https://github.com/ec-europa/europa-component-library/pull/3710) chore(deps): Updates - 11-11-24 ([@planctus](https://github.com/planctus)) +- [#3707](https://github.com/ec-europa/europa-component-library/pull/3707) fix(search-form): add missing label - FRONT-4667 ([@emeryro](https://github.com/emeryro)) +- [#3696](https://github.com/ec-europa/europa-component-library/pull/3696) chore(deps): Updates 28-10-24 ([@planctus](https://github.com/planctus)) +- [#3695](https://github.com/ec-europa/europa-component-library/pull/3695) chore(sass): Removing warnings by updating the code ([@planctus](https://github.com/planctus)) +- [#3693](https://github.com/ec-europa/europa-component-library/pull/3693) chore(deps): Updates - 25-10-24 ([@planctus](https://github.com/planctus)) +- [#3683](https://github.com/ec-europa/europa-component-library/pull/3683) chore: using the right pattern for react-snap, hopefully ([@planctus](https://github.com/planctus)) + +#### Committers: 3 + +- Romain Emery ([@emeryro](https://github.com/emeryro)) +- [@joarod-eu](https://github.com/joarod-eu) +- [@planctus](https://github.com/planctus) + # 4.8.1 #### :nail_care: Enhancement diff --git a/README.md b/README.md index 67a47b1ce91..cd5511bfe63 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,8 @@ The ECL is bundled in various [presets](docs/presets.md) in order to accomodate ```html @@ -44,8 +44,8 @@ The ECL is bundled in various [presets](docs/presets.md) in order to accomodate ```html @@ -54,8 +54,8 @@ The ECL is bundled in various [presets](docs/presets.md) in order to accomodate ```html @@ -64,8 +64,8 @@ The ECL is bundled in various [presets](docs/presets.md) in order to accomodate ```html @@ -74,8 +74,8 @@ The ECL is bundled in various [presets](docs/presets.md) in order to accomodate ```html @@ -84,9 +84,9 @@ The ECL is bundled in various [presets](docs/presets.md) in order to accomodate ```html @@ -94,8 +94,8 @@ The ECL is bundled in various [presets](docs/presets.md) in order to accomodate ```html ``` diff --git a/package.json b/package.json index 7ba45c715e6..3381ce1af4f 100644 --- a/package.json +++ b/package.json @@ -68,14 +68,14 @@ "npm-run-all": "4.1.5", "patch-package": "8.0.0", "postinstall-postinstall": "2.1.0", - "prettier": "3.3.3", + "prettier": "3.4.2", "prop-types": "15.8.1", "react": "18.3.1", "react-dom": "18.3.1", "rimraf": "6.0.1", "size-limit": "11.1.6", "ssri": "12.0.0", - "stylelint": "16.10.0", + "stylelint": "16.11.0", "stylelint-config-css-modules": "4.4.0", "stylelint-config-prettier": "9.0.5", "stylelint-config-standard": "36.0.1", @@ -121,7 +121,7 @@ "ws": ">=8.17.1", "micromatch": ">=4.0.8", "serve-static": ">=1.16.0", - "path-to-regexp": "0.1.10" + "path-to-regexp": "0.1.12" }, "engines": { "node": ">=12.0.0", diff --git a/src/implementations/twig/components/accordion/package.json b/src/implementations/twig/components/accordion/package.json index 242082a385f..449a9e638ff 100644 --- a/src/implementations/twig/components/accordion/package.json +++ b/src/implementations/twig/components/accordion/package.json @@ -2,7 +2,7 @@ "name": "@ecl/twig-component-accordion", "author": "European Commission", "license": "EUPL-1.2", - "version": "4.8.1", + "version": "4.9.0", "description": "ECL Accordion", "publishConfig": { "access": "public" @@ -11,8 +11,8 @@ "@ecl/twig-component-icon": "^3.0.0" }, "devDependencies": { - "@ecl/specs-component-accordion": "4.8.1", - "@ecl/vanilla-component-accordion": "4.8.1" + "@ecl/specs-component-accordion": "4.9.0", + "@ecl/vanilla-component-accordion": "4.9.0" }, "repository": { "type": "git", diff --git a/src/implementations/twig/components/banner/package.json b/src/implementations/twig/components/banner/package.json index f9deb396ba2..423ecf13792 100644 --- a/src/implementations/twig/components/banner/package.json +++ b/src/implementations/twig/components/banner/package.json @@ -2,20 +2,20 @@ "name": "@ecl/twig-component-banner", "author": "European Commission", "license": "EUPL-1.2", - "version": "4.8.1", + "version": "4.9.0", "description": "ECL Banner", "publishConfig": { "access": "public" }, "dependencies": { - "@ecl/twig-component-button": "4.8.1", - "@ecl/twig-component-link": "4.8.1", - "@ecl/twig-component-picture": "4.8.1", - "@ecl/twig-component-video": "4.8.1" + "@ecl/twig-component-button": "4.9.0", + "@ecl/twig-component-link": "4.9.0", + "@ecl/twig-component-picture": "4.9.0", + "@ecl/twig-component-video": "4.9.0" }, "devDependencies": { - "@ecl/specs-component-banner": "4.8.1", - "@ecl/vanilla-component-banner": "4.8.1" + "@ecl/specs-component-banner": "4.9.0", + "@ecl/vanilla-component-banner": "4.9.0" }, "repository": { "type": "git", diff --git a/src/implementations/twig/components/blockquote/package.json b/src/implementations/twig/components/blockquote/package.json index 46d9fc2b973..5287346dc0b 100644 --- a/src/implementations/twig/components/blockquote/package.json +++ b/src/implementations/twig/components/blockquote/package.json @@ -2,17 +2,17 @@ "name": "@ecl/twig-component-blockquote", "author": "European Commission", "license": "EUPL-1.2", - "version": "4.8.1", + "version": "4.9.0", "description": "ECL Blockquote", "publishConfig": { "access": "public" }, "dependencies": { - "@ecl/twig-component-picture": "4.8.1" + "@ecl/twig-component-picture": "4.9.0" }, "devDependencies": { - "@ecl/specs-component-blockquote": "4.8.1", - "@ecl/vanilla-component-blockquote": "4.8.1" + "@ecl/specs-component-blockquote": "4.9.0", + "@ecl/vanilla-component-blockquote": "4.9.0" }, "repository": { "type": "git", diff --git a/src/implementations/twig/components/breadcrumb/package.json b/src/implementations/twig/components/breadcrumb/package.json index 009f65478c0..755dba148fc 100644 --- a/src/implementations/twig/components/breadcrumb/package.json +++ b/src/implementations/twig/components/breadcrumb/package.json @@ -2,19 +2,19 @@ "name": "@ecl/twig-component-breadcrumb", "author": "European Commission", "license": "EUPL-1.2", - "version": "4.8.1", + "version": "4.9.0", "description": "ECL Breadcrumb", "publishConfig": { "access": "public" }, "dependencies": { - "@ecl/twig-component-button": "4.8.1", - "@ecl/twig-component-icon": "4.8.1", - "@ecl/twig-component-link": "4.8.1" + "@ecl/twig-component-button": "4.9.0", + "@ecl/twig-component-icon": "4.9.0", + "@ecl/twig-component-link": "4.9.0" }, "devDependencies": { - "@ecl/specs-component-breadcrumb": "4.8.1", - "@ecl/vanilla-component-breadcrumb": "4.8.1" + "@ecl/specs-component-breadcrumb": "4.9.0", + "@ecl/vanilla-component-breadcrumb": "4.9.0" }, "repository": { "type": "git", diff --git a/src/implementations/twig/components/button/README.md b/src/implementations/twig/components/button/README.md index 6bc20da7748..3eeccb53439 100644 --- a/src/implementations/twig/components/button/README.md +++ b/src/implementations/twig/components/button/README.md @@ -15,6 +15,7 @@ npm install --save @ecl/twig-component-button - **"hide_label"** (bool) (default: false): hide button label, for screen reader only. Note: requires to have an icon defined - **"icon_position"** (string, optional) (default: after): Define icon position, can be 'before' or 'after' - **"icon"** (optional) (associative array) OR (array) of associate arrays - Default structure of the icon component with extra_classes as an internal key. +- **"indicator"** (object) (default: {}) object of type Indicator. To be displayed it should be defined and not empty (should contain at least an empty value), and only if there is an icon and no label - **"extra_classes"** (optional) (string) (default: '') Extra classes (space separated) - **"extra_attributes"** (optional) (array) (default: []) Extra attributes - "name" (string) Attribute name, eg. 'data-test' diff --git a/src/implementations/twig/components/button/__snapshots__/button.test.js.snap b/src/implementations/twig/components/button/__snapshots__/button.test.js.snap index 9da7188975f..71eabf925df 100644 --- a/src/implementations/twig/components/button/__snapshots__/button.test.js.snap +++ b/src/implementations/twig/components/button/__snapshots__/button.test.js.snap @@ -152,6 +152,47 @@ exports[`Button CTA button - icon only renders correctly 1`] = ` `; +exports[`Button CTA button - with indicator renders correctly 1`] = ` + + + +`; + exports[`Button CTA renders correctly 1`] = `