@eeacms/volto-eea-design-system 1.18.0 → 1.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.husky/pre-commit +2 -0
- package/CHANGELOG.md +39 -0
- package/cypress.config.js +2 -2
- package/package.json +26 -2
- package/src/ui/Accordion/Accordion.stories.js +1 -1
- package/src/ui/Banner/Banner.jsx +5 -0
- package/src/ui/Banner/Banner.test.jsx +44 -1
- package/theme/themes/eea/modules/accordion.overrides +10 -0
- package/theme/themes/eea/modules/accordion.variables +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file. Dates are d
|
|
|
4
4
|
|
|
5
5
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
6
6
|
|
|
7
|
+
### [1.18.2](https://github.com/eea/volto-eea-design-system/compare/1.18.1...1.18.2) - 25 September 2023
|
|
8
|
+
|
|
9
|
+
#### :bug: Bug Fixes
|
|
10
|
+
|
|
11
|
+
- fix: Clear filters in Search Block font-size - refs #258029 [Alin Voinea - [`3cbcebb`](https://github.com/eea/volto-eea-design-system/commit/3cbcebbc8021bb4b9dc0cec38fa371eff798543a)]
|
|
12
|
+
|
|
13
|
+
### [1.18.1](https://github.com/eea/volto-eea-design-system/compare/1.18.0...1.18.1) - 7 September 2023
|
|
14
|
+
|
|
15
|
+
#### :bug: Bug Fixes
|
|
16
|
+
|
|
17
|
+
- fix: Title block should refresh image on lead image change - refs #257544 [Alin Voinea - [`96a8e25`](https://github.com/eea/volto-eea-design-system/commit/96a8e2515079ea4869a783f3f492f90f6cb63bed)]
|
|
18
|
+
- fix(accordion): if statement for icon className #390 from eea/fix-accordion-icons [ichim-david - [`4d52524`](https://github.com/eea/volto-eea-design-system/commit/4d5252400613eeeec94aeee606f346bb23efd720)]
|
|
19
|
+
|
|
20
|
+
#### :nail_care: Enhancements
|
|
21
|
+
|
|
22
|
+
- change(accordion): fix if for icon className [Antonis Tarantilis - [`ba34003`](https://github.com/eea/volto-eea-design-system/commit/ba34003f082d900940a6b2c4466bfe6a2fe416a3)]
|
|
23
|
+
|
|
24
|
+
#### :hammer_and_wrench: Others
|
|
25
|
+
|
|
26
|
+
- test: EN locales, pre-commit fix, feature PRs checks Refs #257193 [valentinab25 - [`977bcb2`](https://github.com/eea/volto-eea-design-system/commit/977bcb256e2775446dc3d0282bbc4afc17c39c42)]
|
|
7
27
|
### [1.18.0](https://github.com/eea/volto-eea-design-system/compare/1.17.0...1.18.0) - 1 September 2023
|
|
8
28
|
|
|
9
29
|
#### :bug: Bug Fixes
|
|
@@ -52,6 +72,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
52
72
|
|
|
53
73
|
#### :hammer_and_wrench: Others
|
|
54
74
|
|
|
75
|
+
- test: Fix eslint and yarn i18n [Alin Voinea - [`331149f`](https://github.com/eea/volto-eea-design-system/commit/331149f5eb16a9cc6f2d996f7b793909773063c2)]
|
|
55
76
|
- i18n: Add en [Alin Voinea - [`4584295`](https://github.com/eea/volto-eea-design-system/commit/458429530d993c27cfb962ddfe2f376f3568bf01)]
|
|
56
77
|
- Release 1.17.0 [Alin Voinea - [`e3c25ee`](https://github.com/eea/volto-eea-design-system/commit/e3c25eeeca5e863244faae396b5aa915d0702633)]
|
|
57
78
|
- test: add unit tests for DS components - refs #254313 [ana-oprea - [`0c4d4d1`](https://github.com/eea/volto-eea-design-system/commit/0c4d4d118b8e13082c576dc5c2dce6a715f49006)]
|
|
@@ -161,6 +182,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
161
182
|
#### :hammer_and_wrench: Others
|
|
162
183
|
|
|
163
184
|
- Release 1.14.0 [Alin Voinea - [`cb9084f`](https://github.com/eea/volto-eea-design-system/commit/cb9084fb2246dc1b729e12a419a26daa12c26f7a)]
|
|
185
|
+
- test: [JENKINS] set pipe fail [valentinab25 - [`1cdfc39`](https://github.com/eea/volto-eea-design-system/commit/1cdfc39d08f1ae301dea57f1e4be5265c4a4c6f9)]
|
|
164
186
|
- test: try storybook upload [valentinab25 - [`6d5833d`](https://github.com/eea/volto-eea-design-system/commit/6d5833d4419d00f1ac04c9eb78a0884214f9a494)]
|
|
165
187
|
- test: remove useless code [valentinab25 - [`2c14b0c`](https://github.com/eea/volto-eea-design-system/commit/2c14b0ce4596cfc11a81b9762677596d1861acfe)]
|
|
166
188
|
### [1.13.2](https://github.com/eea/volto-eea-design-system/compare/1.13.1...1.13.2) - 13 June 2023
|
|
@@ -199,6 +221,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
199
221
|
|
|
200
222
|
#### :house: Internal changes
|
|
201
223
|
|
|
224
|
+
- chore: [JENKINS] Deprecate circularity website [valentinab25 - [`fb2b166`](https://github.com/eea/volto-eea-design-system/commit/fb2b166d64f95a1c183901abfe0fe0254d1bbc7a)]
|
|
202
225
|
|
|
203
226
|
#### :house: Documentation changes
|
|
204
227
|
|
|
@@ -532,6 +555,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
532
555
|
|
|
533
556
|
- Release 1.0.0-beta.5 [Alin Voinea - [`e4417e1`](https://github.com/eea/volto-eea-design-system/commit/e4417e121477511c350ae3fbe4e70aadb445ed86)]
|
|
534
557
|
- better useOnScreen hook [Andrei Grigore - [`c214b6b`](https://github.com/eea/volto-eea-design-system/commit/c214b6b76443f81c795ce2f3aa457562ec088b30)]
|
|
558
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b227cf8`](https://github.com/eea/volto-eea-design-system/commit/b227cf8a8c44b9d91e9fda8a7999fb0a42bacdca)]
|
|
535
559
|
- feature(mobile): increased performance by lazy loading footer images #303 from eea/increase_performance [ichim-david - [`80d1df1`](https://github.com/eea/volto-eea-design-system/commit/80d1df1c459680331d486f9e8e6a95c9db0adbf6)]
|
|
536
560
|
- prettier [David Ichim - [`a7f8384`](https://github.com/eea/volto-eea-design-system/commit/a7f838470c1bcc4e2be115d514d92a1b686a5e9b)]
|
|
537
561
|
- fixed less build failure due to changes in footer.less [David Ichim - [`190bc8c`](https://github.com/eea/volto-eea-design-system/commit/190bc8cfa88191b45808f1e27c6e2737ee3d15b1)]
|
|
@@ -602,6 +626,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
602
626
|
|
|
603
627
|
#### :house: Internal changes
|
|
604
628
|
|
|
629
|
+
- chore(docusaurus): ignore website/.yarn [Giorgos Stamatis - [`0b33ffd`](https://github.com/eea/volto-eea-design-system/commit/0b33ffd1dda61b126e3cc5ff48888124d6aee41b)]
|
|
605
630
|
- style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
|
|
606
631
|
|
|
607
632
|
#### :house: Documentation changes
|
|
@@ -798,6 +823,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
798
823
|
|
|
799
824
|
- Release 1.0.0-alpha.10 [Alin Voinea - [`7014d08`](https://github.com/eea/volto-eea-design-system/commit/7014d080ce114bd0bc039abeecbd7229333b0971)]
|
|
800
825
|
- Add variable definitions [kreafox - [`293fe65`](https://github.com/eea/volto-eea-design-system/commit/293fe65e2f24e6290e1286229169a77f9be4750e)]
|
|
826
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`ef58a6f`](https://github.com/eea/volto-eea-design-system/commit/ef58a6f5ad8deea26b1395a86778fe1159b7617b)]
|
|
801
827
|
- Back to dev [Alin Voinea - [`31d4616`](https://github.com/eea/volto-eea-design-system/commit/31d461662b9184a7bbe190e86f3c47fab39229fe)]
|
|
802
828
|
### [1.0.0-alpha.9](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.8...1.0.0-alpha.9) - 28 December 2022
|
|
803
829
|
|
|
@@ -855,6 +881,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
855
881
|
- bump package version [David Ichim - [`b4628be`](https://github.com/eea/volto-eea-design-system/commit/b4628bed134abc76e38a243d4e98143e19cef989)]
|
|
856
882
|
- feature(docusaurus, storybook): logos selection for sites plus inverted options #253 from eea/doc-logo-page [ichim-david - [`dbfc90d`](https://github.com/eea/volto-eea-design-system/commit/dbfc90d035dc40e9d4054347f00fde4de486d63d)]
|
|
857
883
|
- (feat): Add ability to disable the language select from website top menu - refs #158616 [dobri1408 - [`411c8e4`](https://github.com/eea/volto-eea-design-system/commit/411c8e4afaf0b2b9edfdeeecdca22aa4cc41f329)]
|
|
884
|
+
- Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`c4769e9`](https://github.com/eea/volto-eea-design-system/commit/c4769e987d525f5dcafac8e6cf8a89fd8111667d)]
|
|
858
885
|
- test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`92feea0`](https://github.com/eea/volto-eea-design-system/commit/92feea09796c9ef0530f65fa1d34139905133215)]
|
|
859
886
|
- Proof reading page header section [ichim-david - [`230239e`](https://github.com/eea/volto-eea-design-system/commit/230239e1b22734fb8606656985bc5e513731e244)]
|
|
860
887
|
### [1.0.0-alpha.7](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.6...1.0.0-alpha.7) - 16 December 2022
|
|
@@ -886,6 +913,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
886
913
|
#### :hammer_and_wrench: Others
|
|
887
914
|
|
|
888
915
|
- Release 1.0.0-alpha.7 [Alin Voinea - [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)]
|
|
916
|
+
- Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`ce47e9b`](https://github.com/eea/volto-eea-design-system/commit/ce47e9b163bcb4eda988e3a87718b54ffbd3f99f)]
|
|
889
917
|
- added back descriptionDistance variable until package release [David Ichim - [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)]
|
|
890
918
|
- Back to dev [Alin Voinea - [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)]
|
|
891
919
|
- Proper paths if the package is not installed, but in development [Tiberiu Ichim - [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)]
|
|
@@ -973,6 +1001,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
973
1001
|
#### :hammer_and_wrench: Others
|
|
974
1002
|
|
|
975
1003
|
- feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
|
|
1004
|
+
- Upgrade Jenkinsfile storybook to yarn 3 [Alin Voinea - [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)]
|
|
976
1005
|
- Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
|
|
977
1006
|
- perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
|
|
978
1007
|
### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 22 November 2022
|
|
@@ -1065,6 +1094,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1065
1094
|
- modified left value of full width classes with toolbars [David Ichim - [`70d82d4`](https://github.com/eea/volto-eea-design-system/commit/70d82d47fbc2c00a3a709de0d5c087c8443a1eae)]
|
|
1066
1095
|
- WIP settings column grid width when using full size class [David Ichim - [`affc7ac`](https://github.com/eea/volto-eea-design-system/commit/affc7ac99527aa92d5a192d90dc8c9ec46a66404)]
|
|
1067
1096
|
- fix eslint [Miu Razvan - [`30c52e4`](https://github.com/eea/volto-eea-design-system/commit/30c52e4eb443555ca44c1b35df064e73d52c0a8b)]
|
|
1097
|
+
- Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`76a41c7`](https://github.com/eea/volto-eea-design-system/commit/76a41c786995fd54afe4d1c345de939f683ffa70)]
|
|
1068
1098
|
- fix broken variable call for contentBox.variables introduced in previous commit by mistake [David Ichim - [`d249c11`](https://github.com/eea/volto-eea-design-system/commit/d249c1160d19bedb174a2fde3fdab48d9ce297d4)]
|
|
1069
1099
|
- clean up [Miu Razvan - [`89f3cb3`](https://github.com/eea/volto-eea-design-system/commit/89f3cb33d70a14806a953f0acd1807e94169ee5c)]
|
|
1070
1100
|
- Feature(container): flexible container size #260 from eea/feature-flexible-container [ichim-david - [`8f84c5b`](https://github.com/eea/volto-eea-design-system/commit/8f84c5b67afe9cbe01b2a44a8f92a9a554e1036a)]
|
|
@@ -1166,6 +1196,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1166
1196
|
|
|
1167
1197
|
#### :nail_care: Enhancements
|
|
1168
1198
|
|
|
1199
|
+
- change(jenkins): added yarn policy for storybook building [ichim-david - [`3d1b844`](https://github.com/eea/volto-eea-design-system/commit/3d1b844efeea40b99c00c9aa97089e0a0be58a57)]
|
|
1169
1200
|
- change(docusaurus): typography updates [ichim-david - [`60a93a4`](https://github.com/eea/volto-eea-design-system/commit/60a93a4aece4e478ae13c2dfe697fd3703aa178a)]
|
|
1170
1201
|
- change(accordion): allow customization of accordion title with css variables [David Ichim - [`15e7d27`](https://github.com/eea/volto-eea-design-system/commit/15e7d27f02c640df582f51a51ef36e645723f842)]
|
|
1171
1202
|
- change(content-box): added css variables that will set text color and background for children [David Ichim - [`86cac53`](https://github.com/eea/volto-eea-design-system/commit/86cac531cc94386b6022e1be80dba826b39f2443)]
|
|
@@ -1200,6 +1231,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1200
1231
|
#### :hammer_and_wrench: Others
|
|
1201
1232
|
|
|
1202
1233
|
- Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
|
|
1234
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a5be6e`](https://github.com/eea/volto-eea-design-system/commit/4a5be6eec78dae230626e61ea2c77e7f3c62510d)]
|
|
1203
1235
|
- Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
|
|
1204
1236
|
### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
|
|
1205
1237
|
|
|
@@ -1955,6 +1987,10 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
1955
1987
|
#### :hammer_and_wrench: Others
|
|
1956
1988
|
|
|
1957
1989
|
- prettier changes [David Ichim - [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)]
|
|
1990
|
+
- [JENKINSFILE] remove debug, add error per stage [valentinab25 - [`903eecd`](https://github.com/eea/volto-eea-design-system/commit/903eecdb6bcbb8d73cff5e447d80c85e2a2c906d)]
|
|
1991
|
+
- [JENKINSFILE] mention comment author in comment [valentinab25 - [`39a26aa`](https://github.com/eea/volto-eea-design-system/commit/39a26aa1ff0f35e93e8df9f442c29c5ab79ff493)]
|
|
1992
|
+
- [JENKINSFILE] format PR comments [valentinab25 - [`739438c`](https://github.com/eea/volto-eea-design-system/commit/739438c64950c745d630d1998314a2bed595b23a)]
|
|
1993
|
+
- [JENKINSFILE] Add failure comment, no jenkins fail [valentinab25 - [`c325bf1`](https://github.com/eea/volto-eea-design-system/commit/c325bf14f3fb0da150f2a56cda0a9f03d8d8a628)]
|
|
1958
1994
|
### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3) - 29 April 2022
|
|
1959
1995
|
|
|
1960
1996
|
#### :rocket: New Features
|
|
@@ -2379,6 +2415,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2379
2415
|
- set profile section overflow to auto [nileshgulia1 - [`71ab47f`](https://github.com/eea/volto-eea-design-system/commit/71ab47f89a433233c14b394c3824e607dd18a393)]
|
|
2380
2416
|
- remove segment custom width [nileshgulia1 - [`1d3ea40`](https://github.com/eea/volto-eea-design-system/commit/1d3ea40f98bbdc1eab95b4da739a659b5e29ec16)]
|
|
2381
2417
|
- fix profile section css overflow [nileshgulia1 - [`db5126f`](https://github.com/eea/volto-eea-design-system/commit/db5126fc902e191d1e18fb7e4c54877c8d8786e6)]
|
|
2418
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`647a6e3`](https://github.com/eea/volto-eea-design-system/commit/647a6e3e2093f2c4884c356eb148453551c8f33f)]
|
|
2382
2419
|
- fix warning related to proptype [nileshgulia1 - [`946c6c6`](https://github.com/eea/volto-eea-design-system/commit/946c6c6bc9dece0985ae4b9f9cad6ece2be0ff2c)]
|
|
2383
2420
|
- removed override already present in card.less [ichim-david - [`50d2ab2`](https://github.com/eea/volto-eea-design-system/commit/50d2ab26f85c8f409da02ec128cc1df34848ca69)]
|
|
2384
2421
|
- update [Miu Razvan - [`bbcab87`](https://github.com/eea/volto-eea-design-system/commit/bbcab87ef4c8475f347f0daf4ab7e428e69c2316)]
|
|
@@ -2465,6 +2502,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
2465
2502
|
- remove segment custom width [nileshgulia1 - [`4a60d84`](https://github.com/eea/volto-eea-design-system/commit/4a60d84d5fe76578b7760aa1dad6eef9a20916a7)]
|
|
2466
2503
|
- Reformat header.less [Tiberiu Ichim - [`1f99dfc`](https://github.com/eea/volto-eea-design-system/commit/1f99dfc82c165304ca5600ce5138c1233615ab69)]
|
|
2467
2504
|
- fix profile section css overflow [nileshgulia1 - [`8fd2654`](https://github.com/eea/volto-eea-design-system/commit/8fd265413149f1b5e033dffa0fbcb5ef5ecad15f)]
|
|
2505
|
+
- Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6051724`](https://github.com/eea/volto-eea-design-system/commit/6051724437a38675e659c797bb5586ef81286ec0)]
|
|
2468
2506
|
- fix warning related to proptype [nileshgulia1 - [`824b9be`](https://github.com/eea/volto-eea-design-system/commit/824b9beff77aae139882cd50a1d670a02ec6f723)]
|
|
2469
2507
|
- refactor breadcrumbs component, make it functional and customizable [nileshgulia1 - [`4ec374e`](https://github.com/eea/volto-eea-design-system/commit/4ec374e20565eb0a5aed0ff67a02cd6f77eba1f0)]
|
|
2470
2508
|
- removed override already present in card.less [ichim-david - [`93c4e5a`](https://github.com/eea/volto-eea-design-system/commit/93c4e5aac9cc85ff2cc6c04180f6655d5f5616dc)]
|
|
@@ -3033,6 +3071,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
3033
3071
|
- Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`3af46d2`](https://github.com/eea/volto-eea-design-system/commit/3af46d2b14fa0b1ef44736f25b0f9ac93b23d18d)]
|
|
3034
3072
|
- Refs #140454 updated eea-design-system readme with extra info on package contents [David Ichim - [`d2efc3d`](https://github.com/eea/volto-eea-design-system/commit/d2efc3ddae7b91efc82cf3bce8fb8e42d696a780)]
|
|
3035
3073
|
- Refs #140454 add h1 to the list of elements that are max 800px and centered [David Ichim - [`7d3c30f`](https://github.com/eea/volto-eea-design-system/commit/7d3c30f409aa4cb43810839f8960589456cc1b2e)]
|
|
3074
|
+
- Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`8d657d0`](https://github.com/eea/volto-eea-design-system/commit/8d657d056cde5163cfe90ac66bc973f55d82e5e9)]
|
|
3036
3075
|
### [0.1.0](https://github.com/eea/volto-eea-design-system/compare/0.0.1...0.1.0) - 17 November 2021
|
|
3037
3076
|
|
|
3038
3077
|
#### :hammer_and_wrench: Others
|
package/cypress.config.js
CHANGED
|
@@ -2,12 +2,12 @@ const { defineConfig } = require('cypress');
|
|
|
2
2
|
|
|
3
3
|
module.exports = defineConfig({
|
|
4
4
|
viewportWidth: 1280,
|
|
5
|
-
defaultCommandTimeout:
|
|
5
|
+
defaultCommandTimeout: 5000,
|
|
6
6
|
chromeWebSecurity: false,
|
|
7
7
|
reporter: 'junit',
|
|
8
8
|
video: true,
|
|
9
9
|
retries: {
|
|
10
|
-
runMode:
|
|
10
|
+
runMode: 1,
|
|
11
11
|
openMode: 0,
|
|
12
12
|
},
|
|
13
13
|
reporterOptions: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eeacms/volto-eea-design-system",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.2",
|
|
4
4
|
"description": "@eeacms/volto-eea-design-system: Volto add-on",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "European Environment Agency: IDM2 A-Team",
|
|
@@ -32,8 +32,31 @@
|
|
|
32
32
|
"@cypress/code-coverage": "^3.10.0",
|
|
33
33
|
"@plone/scripts": "*",
|
|
34
34
|
"babel-plugin-transform-class-properties": "^6.24.1",
|
|
35
|
+
"husky": "*",
|
|
36
|
+
"lint-staged": "*",
|
|
35
37
|
"md5": "^2.3.0"
|
|
36
38
|
},
|
|
39
|
+
"lint-staged": {
|
|
40
|
+
"src/**/*.{js,jsx,ts,tsx,json}": [
|
|
41
|
+
"make lint-fix",
|
|
42
|
+
"make prettier-fix"
|
|
43
|
+
],
|
|
44
|
+
"src/**/*.{jsx}": [
|
|
45
|
+
"make i18n"
|
|
46
|
+
],
|
|
47
|
+
"theme/**/*.{css,less}": [
|
|
48
|
+
"make stylelint-fix"
|
|
49
|
+
],
|
|
50
|
+
"src/**/*.{css,less}": [
|
|
51
|
+
"make stylelint-fix"
|
|
52
|
+
],
|
|
53
|
+
"theme/**/*.overrides": [
|
|
54
|
+
"make stylelint-fix"
|
|
55
|
+
],
|
|
56
|
+
"src/**/*.overrides": [
|
|
57
|
+
"make stylelint-fix"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
37
60
|
"scripts": {
|
|
38
61
|
"release": "release-it",
|
|
39
62
|
"release-major-beta": "release-it major --preRelease=beta",
|
|
@@ -51,6 +74,7 @@
|
|
|
51
74
|
"lint:fix": "make lint-fix",
|
|
52
75
|
"i18n": "make i18n",
|
|
53
76
|
"cypress:run": "make cypress-run",
|
|
54
|
-
"cypress:open": "make cypress-open"
|
|
77
|
+
"cypress:open": "make cypress-open",
|
|
78
|
+
"prepare": "husky install"
|
|
55
79
|
}
|
|
56
80
|
}
|
|
@@ -106,7 +106,7 @@ function AccordionContainer({ ...args }) {
|
|
|
106
106
|
<span>{panel.title}</span>
|
|
107
107
|
<Icon
|
|
108
108
|
className={
|
|
109
|
-
active ? 'ri-arrow-
|
|
109
|
+
active ? 'ri-arrow-up-s-line' : 'ri-arrow-down-s-line'
|
|
110
110
|
}
|
|
111
111
|
/>
|
|
112
112
|
</Accordion.Title>
|
package/src/ui/Banner/Banner.jsx
CHANGED
|
@@ -26,7 +26,12 @@ const socialPlatforms = {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
export const getImageSource = (image) => {
|
|
29
|
+
if (image?.data && image?.encoding === 'base64') {
|
|
30
|
+
return `data:${image.contentType};base64,${image.data}`;
|
|
31
|
+
}
|
|
29
32
|
if (image?.scales?.huge) return flattenToAppURL(image.scales.huge.download);
|
|
33
|
+
if (image?.scales?.great) return flattenToAppURL(image.scales.great.download);
|
|
34
|
+
if (image?.scales?.large) return flattenToAppURL(image.scales.large.download);
|
|
30
35
|
return null;
|
|
31
36
|
};
|
|
32
37
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { render, fireEvent } from '@testing-library/react';
|
|
3
3
|
import Banner from './Banner';
|
|
4
|
-
import { sharePage } from './Banner';
|
|
4
|
+
import { sharePage, getImageSource } from './Banner';
|
|
5
5
|
import '@testing-library/jest-dom/extend-expect';
|
|
6
6
|
|
|
7
7
|
describe('Banner', () => {
|
|
@@ -290,3 +290,46 @@ describe('sharePage', () => {
|
|
|
290
290
|
expect(mockLink.click).toHaveBeenCalled();
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
|
+
|
|
294
|
+
describe('getImageSource', () => {
|
|
295
|
+
it('returns the base64-encoded image source when given a base64-encoded image', () => {
|
|
296
|
+
const source = getImageSource({
|
|
297
|
+
data: 'base64-encoded-image-data',
|
|
298
|
+
encoding: 'base64',
|
|
299
|
+
contentType: 'image/png',
|
|
300
|
+
});
|
|
301
|
+
expect(source).toBe('data:image/png;base64,base64-encoded-image-data');
|
|
302
|
+
});
|
|
303
|
+
|
|
304
|
+
it('returns the URL of the huge image scale when given an image with a huge scale', () => {
|
|
305
|
+
const source = getImageSource({
|
|
306
|
+
scales: {
|
|
307
|
+
huge: { download: '/path/to/huge/image.png' },
|
|
308
|
+
},
|
|
309
|
+
});
|
|
310
|
+
expect(source).toBe('/path/to/huge/image.png');
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
it('returns the URL of the great image scale when given an image with a great scale', () => {
|
|
314
|
+
const source = getImageSource({
|
|
315
|
+
scales: {
|
|
316
|
+
great: { download: '/path/to/great/image.png' },
|
|
317
|
+
},
|
|
318
|
+
});
|
|
319
|
+
expect(source).toBe('/path/to/great/image.png');
|
|
320
|
+
});
|
|
321
|
+
|
|
322
|
+
it('returns the URL of the large image scale when given an image with a large scale', () => {
|
|
323
|
+
const source = getImageSource({
|
|
324
|
+
scales: {
|
|
325
|
+
large: { download: '/path/to/large/image.png' },
|
|
326
|
+
},
|
|
327
|
+
});
|
|
328
|
+
expect(source).toBe('/path/to/large/image.png');
|
|
329
|
+
});
|
|
330
|
+
|
|
331
|
+
it('returns null when given an image with no data or scales', () => {
|
|
332
|
+
const source = getImageSource({});
|
|
333
|
+
expect(source).toBeNull();
|
|
334
|
+
});
|
|
335
|
+
});
|
|
@@ -90,6 +90,16 @@
|
|
|
90
90
|
background: @contentBackground;
|
|
91
91
|
color: @contentColor;
|
|
92
92
|
}
|
|
93
|
+
|
|
94
|
+
&.filter-listing {
|
|
95
|
+
.title {
|
|
96
|
+
.icon {
|
|
97
|
+
font-size: @filterListingIconFontSize;
|
|
98
|
+
line-height: @filterListingIconLineHeight;
|
|
99
|
+
margin-left: @filterListingIconMarginLeft !important;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
93
103
|
}
|
|
94
104
|
|
|
95
105
|
/* All content padding are equal including last child */
|
|
@@ -39,6 +39,10 @@
|
|
|
39
39
|
@filterIconMargin: 0 10px;
|
|
40
40
|
@filterTextColor: @grey-4;
|
|
41
41
|
|
|
42
|
+
@filterListingIconFontSize: 1rem;
|
|
43
|
+
@filterListingIconLineHeight: 1rem;
|
|
44
|
+
@filterListingIconMarginLeft: 0.5rem;
|
|
45
|
+
|
|
42
46
|
/* Child Accordion */
|
|
43
47
|
@childAccordionMargin: 1em 0em 0em;
|
|
44
48
|
@childAccordionPadding: 0em;
|