@eeacms/volto-eea-design-system 1.21.1 → 1.22.0

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/CHANGELOG.md CHANGED
@@ -4,6 +4,19 @@ 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.22.0](https://github.com/eea/volto-eea-design-system/compare/1.21.1...1.22.0) - 24 November 2023
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat(mega-menu): added ability to set a * option that would hold configuration for non specific layouts [David Ichim - [`11b4b8c`](https://github.com/eea/volto-eea-design-system/commit/11b4b8ca14741d2fac6b11a09ab6ad1af65264b2)]
12
+
13
+ #### :nail_care: Enhancements
14
+
15
+ - change(header): ensure header items are without large gaps when menu goes over 2 lines [David Ichim - [`f6aba05`](https://github.com/eea/volto-eea-design-system/commit/f6aba059320c608cadaf5563085ffa63d0812583)]
16
+
17
+ #### :hammer_and_wrench: Others
18
+
19
+ - Bump package version [David Ichim - [`4304cf6`](https://github.com/eea/volto-eea-design-system/commit/4304cf667fd63ac9ce13524dfaaa972bdd1dd009)]
7
20
  ### [1.21.1](https://github.com/eea/volto-eea-design-system/compare/1.21.0...1.21.1) - 21 November 2023
8
21
 
9
22
  #### :bug: Bug Fixes
@@ -30,11 +43,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
30
43
  - Add dropdown test case to Header component [David Ichim - [`9ea3234`](https://github.com/eea/volto-eea-design-system/commit/9ea3234c2c0f1c819c7c2b54a75c56cda7812c56)]
31
44
  - Remove unused import in Header.test.jsx [David Ichim - [`082069e`](https://github.com/eea/volto-eea-design-system/commit/082069e1f057786e0f1fb00c98d54b8e03b5d9c5)]
32
45
  - Added some tests for TopDropdownMenu mobile and dropdown interaction [David Ichim - [`9d24488`](https://github.com/eea/volto-eea-design-system/commit/9d24488c1e97b2b1b14bd9bd8cb6f5b68414794b)]
33
- - test: [JENKINS] Run cypress in started frontend container [valentinab25 - [`eadf018`](https://github.com/eea/volto-eea-design-system/commit/eadf018aa1f32d310619ce4ef08f9b11950a20dc)]
34
46
  - Lint fix [David Ichim - [`e29fd50`](https://github.com/eea/volto-eea-design-system/commit/e29fd50ee73477007dcf94a268596e6c11176d7b)]
35
- - test: [JENKINS] Add cpu limit on cypress docker [valentinab25 - [`947cb92`](https://github.com/eea/volto-eea-design-system/commit/947cb929c01ebb6f46bf124833fe1fec0f385edb)]
36
- - test: [JENKINS] Increase shm-size to cypress docker [valentinab25 - [`8356dfe`](https://github.com/eea/volto-eea-design-system/commit/8356dfe929039dcd165af0692cbbfc771a0f7fb4)]
37
- - test: [JENKINS] Improve cypress time [valentinab25 - [`e38f17e`](https://github.com/eea/volto-eea-design-system/commit/e38f17ed735e743e59df7d06ca723c1218bdb569)]
38
47
  ### [1.20.0](https://github.com/eea/volto-eea-design-system/compare/1.19.0...1.20.0) - 2 November 2023
39
48
 
40
49
  #### :rocket: New Features
@@ -67,9 +76,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
67
76
 
68
77
  #### :house: Internal changes
69
78
 
70
- - chore: [JENKINS] do not run tests on PR comments [valentinab25 - [`51b68fc`](https://github.com/eea/volto-eea-design-system/commit/51b68fc76a956996e01521b784262c67e7094d35)]
71
- - chore: [JENKINS] add comment step [valentinab25 - [`5022758`](https://github.com/eea/volto-eea-design-system/commit/50227587db2c72d17e26e7b66f28d4c09b760873)]
72
- - chore: [JENKINS] Refactor automated testing [valentinab25 - [`a70ca64`](https://github.com/eea/volto-eea-design-system/commit/a70ca642918f578d6737d975e4769bac8312f48d)]
73
79
  - chore: husky, lint-staged use fixed versions [valentinab25 - [`59ecb8e`](https://github.com/eea/volto-eea-design-system/commit/59ecb8e28b259472303324f9655b0cbbcbbf9c23)]
74
80
 
75
81
  #### :hammer_and_wrench: Others
@@ -195,7 +201,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
195
201
 
196
202
  #### :hammer_and_wrench: Others
197
203
 
198
- - test: Fix eslint and yarn i18n [Alin Voinea - [`331149f`](https://github.com/eea/volto-eea-design-system/commit/331149f5eb16a9cc6f2d996f7b793909773063c2)]
199
204
  - i18n: Add en [Alin Voinea - [`4584295`](https://github.com/eea/volto-eea-design-system/commit/458429530d993c27cfb962ddfe2f376f3568bf01)]
200
205
  - Release 1.17.0 [Alin Voinea - [`e3c25ee`](https://github.com/eea/volto-eea-design-system/commit/e3c25eeeca5e863244faae396b5aa915d0702633)]
201
206
  - test: add unit tests for DS components - refs #254313 [ana-oprea - [`0c4d4d1`](https://github.com/eea/volto-eea-design-system/commit/0c4d4d118b8e13082c576dc5c2dce6a715f49006)]
@@ -305,7 +310,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
305
310
  #### :hammer_and_wrench: Others
306
311
 
307
312
  - Release 1.14.0 [Alin Voinea - [`cb9084f`](https://github.com/eea/volto-eea-design-system/commit/cb9084fb2246dc1b729e12a419a26daa12c26f7a)]
308
- - test: [JENKINS] set pipe fail [valentinab25 - [`1cdfc39`](https://github.com/eea/volto-eea-design-system/commit/1cdfc39d08f1ae301dea57f1e4be5265c4a4c6f9)]
309
313
  - test: try storybook upload [valentinab25 - [`6d5833d`](https://github.com/eea/volto-eea-design-system/commit/6d5833d4419d00f1ac04c9eb78a0884214f9a494)]
310
314
  - test: remove useless code [valentinab25 - [`2c14b0c`](https://github.com/eea/volto-eea-design-system/commit/2c14b0ce4596cfc11a81b9762677596d1861acfe)]
311
315
  ### [1.13.2](https://github.com/eea/volto-eea-design-system/compare/1.13.1...1.13.2) - 13 June 2023
@@ -344,7 +348,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
344
348
 
345
349
  #### :house: Internal changes
346
350
 
347
- - chore: [JENKINS] Deprecate circularity website [valentinab25 - [`fb2b166`](https://github.com/eea/volto-eea-design-system/commit/fb2b166d64f95a1c183901abfe0fe0254d1bbc7a)]
348
351
 
349
352
  #### :house: Documentation changes
350
353
 
@@ -678,7 +681,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
678
681
 
679
682
  - Release 1.0.0-beta.5 [Alin Voinea - [`e4417e1`](https://github.com/eea/volto-eea-design-system/commit/e4417e121477511c350ae3fbe4e70aadb445ed86)]
680
683
  - better useOnScreen hook [Andrei Grigore - [`c214b6b`](https://github.com/eea/volto-eea-design-system/commit/c214b6b76443f81c795ce2f3aa457562ec088b30)]
681
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`b227cf8`](https://github.com/eea/volto-eea-design-system/commit/b227cf8a8c44b9d91e9fda8a7999fb0a42bacdca)]
682
684
  - 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)]
683
685
  - prettier [David Ichim - [`a7f8384`](https://github.com/eea/volto-eea-design-system/commit/a7f838470c1bcc4e2be115d514d92a1b686a5e9b)]
684
686
  - fixed less build failure due to changes in footer.less [David Ichim - [`190bc8c`](https://github.com/eea/volto-eea-design-system/commit/190bc8cfa88191b45808f1e27c6e2737ee3d15b1)]
@@ -749,7 +751,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
749
751
 
750
752
  #### :house: Internal changes
751
753
 
752
- - chore(docusaurus): ignore website/.yarn [Giorgos Stamatis - [`0b33ffd`](https://github.com/eea/volto-eea-design-system/commit/0b33ffd1dda61b126e3cc5ff48888124d6aee41b)]
753
754
  - style(header): react syntax fix [Antonis Tarantilis - [`3add127`](https://github.com/eea/volto-eea-design-system/commit/3add1271c785a92bea0ef925d7bc562cef1e0d92)]
754
755
 
755
756
  #### :house: Documentation changes
@@ -946,7 +947,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
946
947
 
947
948
  - Release 1.0.0-alpha.10 [Alin Voinea - [`7014d08`](https://github.com/eea/volto-eea-design-system/commit/7014d080ce114bd0bc039abeecbd7229333b0971)]
948
949
  - Add variable definitions [kreafox - [`293fe65`](https://github.com/eea/volto-eea-design-system/commit/293fe65e2f24e6290e1286229169a77f9be4750e)]
949
- - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`ef58a6f`](https://github.com/eea/volto-eea-design-system/commit/ef58a6f5ad8deea26b1395a86778fe1159b7617b)]
950
950
  - Back to dev [Alin Voinea - [`31d4616`](https://github.com/eea/volto-eea-design-system/commit/31d461662b9184a7bbe190e86f3c47fab39229fe)]
951
951
  ### [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
952
952
 
@@ -1004,7 +1004,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1004
1004
  - bump package version [David Ichim - [`b4628be`](https://github.com/eea/volto-eea-design-system/commit/b4628bed134abc76e38a243d4e98143e19cef989)]
1005
1005
  - 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)]
1006
1006
  - (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)]
1007
- - Add Sonarqube tag using advisory-board-frontend addons list [EEA Jenkins - [`c4769e9`](https://github.com/eea/volto-eea-design-system/commit/c4769e987d525f5dcafac8e6cf8a89fd8111667d)]
1008
1007
  - test(Jenkins): Run tests and cypress with latest canary @plone/volto [Alin Voinea - [`92feea0`](https://github.com/eea/volto-eea-design-system/commit/92feea09796c9ef0530f65fa1d34139905133215)]
1009
1008
  - Proof reading page header section [ichim-david - [`230239e`](https://github.com/eea/volto-eea-design-system/commit/230239e1b22734fb8606656985bc5e513731e244)]
1010
1009
  ### [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
@@ -1036,7 +1035,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1036
1035
  #### :hammer_and_wrench: Others
1037
1036
 
1038
1037
  - Release 1.0.0-alpha.7 [Alin Voinea - [`7e66bcc`](https://github.com/eea/volto-eea-design-system/commit/7e66bcc296b389bc55073e7f99681534977dce3a)]
1039
- - Add Sonarqube tag using cca-frontend addons list [EEA Jenkins - [`ce47e9b`](https://github.com/eea/volto-eea-design-system/commit/ce47e9b163bcb4eda988e3a87718b54ffbd3f99f)]
1040
1038
  - added back descriptionDistance variable until package release [David Ichim - [`3af811a`](https://github.com/eea/volto-eea-design-system/commit/3af811a8d86a132e16de118697ba5a4302a8a4da)]
1041
1039
  - Back to dev [Alin Voinea - [`cb531c9`](https://github.com/eea/volto-eea-design-system/commit/cb531c933c907bdbb88c9de0f1df2eb7ce899a4c)]
1042
1040
  - Proper paths if the package is not installed, but in development [Tiberiu Ichim - [`7a2655f`](https://github.com/eea/volto-eea-design-system/commit/7a2655f7cf9d3c687f172eefcf2b4cff4b12f832)]
@@ -1124,7 +1122,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1124
1122
  #### :hammer_and_wrench: Others
1125
1123
 
1126
1124
  - 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)]
1127
- - Upgrade Jenkinsfile storybook to yarn 3 [Alin Voinea - [`d20de8d`](https://github.com/eea/volto-eea-design-system/commit/d20de8d6e21a14660b7b5125a80218a8a6f19e62)]
1128
1125
  - Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
1129
1126
  - perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
1130
1127
  ### [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
@@ -1217,7 +1214,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1217
1214
  - modified left value of full width classes with toolbars [David Ichim - [`70d82d4`](https://github.com/eea/volto-eea-design-system/commit/70d82d47fbc2c00a3a709de0d5c087c8443a1eae)]
1218
1215
  - WIP settings column grid width when using full size class [David Ichim - [`affc7ac`](https://github.com/eea/volto-eea-design-system/commit/affc7ac99527aa92d5a192d90dc8c9ec46a66404)]
1219
1216
  - fix eslint [Miu Razvan - [`30c52e4`](https://github.com/eea/volto-eea-design-system/commit/30c52e4eb443555ca44c1b35df064e73d52c0a8b)]
1220
- - Add Sonarqube tag using circularity-frontend addons list [EEA Jenkins - [`76a41c7`](https://github.com/eea/volto-eea-design-system/commit/76a41c786995fd54afe4d1c345de939f683ffa70)]
1221
1217
  - 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)]
1222
1218
  - clean up [Miu Razvan - [`89f3cb3`](https://github.com/eea/volto-eea-design-system/commit/89f3cb33d70a14806a953f0acd1807e94169ee5c)]
1223
1219
  - Feature(container): flexible container size #260 from eea/feature-flexible-container [ichim-david - [`8f84c5b`](https://github.com/eea/volto-eea-design-system/commit/8f84c5b67afe9cbe01b2a44a8f92a9a554e1036a)]
@@ -1319,7 +1315,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1319
1315
 
1320
1316
  #### :nail_care: Enhancements
1321
1317
 
1322
- - change(jenkins): added yarn policy for storybook building [ichim-david - [`3d1b844`](https://github.com/eea/volto-eea-design-system/commit/3d1b844efeea40b99c00c9aa97089e0a0be58a57)]
1323
1318
  - change(docusaurus): typography updates [ichim-david - [`60a93a4`](https://github.com/eea/volto-eea-design-system/commit/60a93a4aece4e478ae13c2dfe697fd3703aa178a)]
1324
1319
  - change(accordion): allow customization of accordion title with css variables [David Ichim - [`15e7d27`](https://github.com/eea/volto-eea-design-system/commit/15e7d27f02c640df582f51a51ef36e645723f842)]
1325
1320
  - 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)]
@@ -1354,7 +1349,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
1354
1349
  #### :hammer_and_wrench: Others
1355
1350
 
1356
1351
  - Merge pull request #243 from eea/develop [ichim-david - [`576564c`](https://github.com/eea/volto-eea-design-system/commit/576564ce395ee6ac9e74bcb19d5c4f0b4cd3c33b)]
1357
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`4a5be6e`](https://github.com/eea/volto-eea-design-system/commit/4a5be6eec78dae230626e61ea2c77e7f3c62510d)]
1358
1352
  - Back to dev [Alin Voinea - [`b251255`](https://github.com/eea/volto-eea-design-system/commit/b251255a7ed14d8290717726d86eaf54b87aa2d4)]
1359
1353
  ### [0.9.0](https://github.com/eea/volto-eea-design-system/compare/0.8.1...0.9.0) - 19 September 2022
1360
1354
 
@@ -2110,10 +2104,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2110
2104
  #### :hammer_and_wrench: Others
2111
2105
 
2112
2106
  - prettier changes [David Ichim - [`134da52`](https://github.com/eea/volto-eea-design-system/commit/134da52549b9d5eac5a12b7ad3005073500ac2c4)]
2113
- - [JENKINSFILE] remove debug, add error per stage [valentinab25 - [`903eecd`](https://github.com/eea/volto-eea-design-system/commit/903eecdb6bcbb8d73cff5e447d80c85e2a2c906d)]
2114
- - [JENKINSFILE] mention comment author in comment [valentinab25 - [`39a26aa`](https://github.com/eea/volto-eea-design-system/commit/39a26aa1ff0f35e93e8df9f442c29c5ab79ff493)]
2115
- - [JENKINSFILE] format PR comments [valentinab25 - [`739438c`](https://github.com/eea/volto-eea-design-system/commit/739438c64950c745d630d1998314a2bed595b23a)]
2116
- - [JENKINSFILE] Add failure comment, no jenkins fail [valentinab25 - [`c325bf1`](https://github.com/eea/volto-eea-design-system/commit/c325bf14f3fb0da150f2a56cda0a9f03d8d8a628)]
2117
2107
  ### [0.2.3](https://github.com/eea/volto-eea-design-system/compare/0.2.2...0.2.3) - 29 April 2022
2118
2108
 
2119
2109
  #### :rocket: New Features
@@ -2538,7 +2528,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2538
2528
  - set profile section overflow to auto [nileshgulia1 - [`71ab47f`](https://github.com/eea/volto-eea-design-system/commit/71ab47f89a433233c14b394c3824e607dd18a393)]
2539
2529
  - remove segment custom width [nileshgulia1 - [`1d3ea40`](https://github.com/eea/volto-eea-design-system/commit/1d3ea40f98bbdc1eab95b4da739a659b5e29ec16)]
2540
2530
  - fix profile section css overflow [nileshgulia1 - [`db5126f`](https://github.com/eea/volto-eea-design-system/commit/db5126fc902e191d1e18fb7e4c54877c8d8786e6)]
2541
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`647a6e3`](https://github.com/eea/volto-eea-design-system/commit/647a6e3e2093f2c4884c356eb148453551c8f33f)]
2542
2531
  - fix warning related to proptype [nileshgulia1 - [`946c6c6`](https://github.com/eea/volto-eea-design-system/commit/946c6c6bc9dece0985ae4b9f9cad6ece2be0ff2c)]
2543
2532
  - removed override already present in card.less [ichim-david - [`50d2ab2`](https://github.com/eea/volto-eea-design-system/commit/50d2ab26f85c8f409da02ec128cc1df34848ca69)]
2544
2533
  - update [Miu Razvan - [`bbcab87`](https://github.com/eea/volto-eea-design-system/commit/bbcab87ef4c8475f347f0daf4ab7e428e69c2316)]
@@ -2625,7 +2614,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
2625
2614
  - remove segment custom width [nileshgulia1 - [`4a60d84`](https://github.com/eea/volto-eea-design-system/commit/4a60d84d5fe76578b7760aa1dad6eef9a20916a7)]
2626
2615
  - Reformat header.less [Tiberiu Ichim - [`1f99dfc`](https://github.com/eea/volto-eea-design-system/commit/1f99dfc82c165304ca5600ce5138c1233615ab69)]
2627
2616
  - fix profile section css overflow [nileshgulia1 - [`8fd2654`](https://github.com/eea/volto-eea-design-system/commit/8fd265413149f1b5e033dffa0fbcb5ef5ecad15f)]
2628
- - Add Sonarqube tag using eea-website-frontend addons list [EEA Jenkins - [`6051724`](https://github.com/eea/volto-eea-design-system/commit/6051724437a38675e659c797bb5586ef81286ec0)]
2629
2617
  - fix warning related to proptype [nileshgulia1 - [`824b9be`](https://github.com/eea/volto-eea-design-system/commit/824b9beff77aae139882cd50a1d670a02ec6f723)]
2630
2618
  - refactor breadcrumbs component, make it functional and customizable [nileshgulia1 - [`4ec374e`](https://github.com/eea/volto-eea-design-system/commit/4ec374e20565eb0a5aed0ff67a02cd6f77eba1f0)]
2631
2619
  - removed override already present in card.less [ichim-david - [`93c4e5a`](https://github.com/eea/volto-eea-design-system/commit/93c4e5aac9cc85ff2cc6c04180f6655d5f5616dc)]
@@ -3194,7 +3182,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
3194
3182
  - Refs #142010 - Optimize Volto-addons gitflow pipelines [valentinab25 - [`3af46d2`](https://github.com/eea/volto-eea-design-system/commit/3af46d2b14fa0b1ef44736f25b0f9ac93b23d18d)]
3195
3183
  - 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)]
3196
3184
  - 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)]
3197
- - Add Sonarqube tag using ims-frontend addons list [EEA Jenkins - [`8d657d0`](https://github.com/eea/volto-eea-design-system/commit/8d657d056cde5163cfe90ac66bc973f55d82e5e9)]
3198
3185
  ### [0.1.0](https://github.com/eea/volto-eea-design-system/compare/0.0.1...0.1.0) - 17 November 2021
3199
3186
 
3200
3187
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.21.1",
3
+ "version": "1.22.0",
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",
@@ -345,10 +345,14 @@ function HeaderMenuPopUp({
345
345
  (current) => current.url === activeItem || current['@id'] === activeItem,
346
346
  );
347
347
 
348
+ // Get layout for current menu item and fallback to a * layout that can
349
+ // be used for all menu items that don't have a specific layout
348
350
  const layout =
349
- !!menuItemsLayouts &&
350
- Object.keys(menuItemsLayouts).includes(menuItem?.url) &&
351
- menuItemsLayouts[menuItem.url];
351
+ (!!menuItemsLayouts &&
352
+ Object.keys(menuItemsLayouts).includes(menuItem?.url) &&
353
+ menuItemsLayouts[menuItem.url]) ||
354
+ (!!menuItemsLayouts && menuItemsLayouts['*']) ||
355
+ {};
352
356
 
353
357
  return (
354
358
  <Transition visible={visible} animation="slide down" duration={300}>
@@ -1,5 +1,7 @@
1
1
  import React from 'react';
2
- import { Tab, Container } from 'semantic-ui-react';
2
+ import { Tab, Container, Menu, Icon } from 'semantic-ui-react';
3
+ import cx from 'classnames';
4
+ import './style.less';
3
5
 
4
6
  export default {
5
7
  title: 'Components/Tab',
@@ -216,3 +218,188 @@ Vertical.argTypes = {
216
218
  },
217
219
  },
218
220
  };
221
+
222
+ function IconTabContent({
223
+ variant,
224
+ renderActive,
225
+ hideTabTitle,
226
+ iconPosition,
227
+ iconSize,
228
+ }) {
229
+ const panes = [
230
+ {
231
+ menuItem: (
232
+ <Menu.Item>
233
+ <div
234
+ className={cx({
235
+ 'asset-top': iconPosition === 'top',
236
+ 'asset-left': iconPosition === 'left',
237
+ 'asset-right': iconPosition === 'right',
238
+ })}
239
+ >
240
+ <Icon
241
+ className={cx('aligned ri-sun-line', iconSize)}
242
+ size={iconSize}
243
+ {...{
244
+ ...(hideTabTitle && {
245
+ role: 'img',
246
+ 'aria-hidden': 'false',
247
+ 'aria-label': 'Ground level ozone',
248
+ }),
249
+ }}
250
+ />
251
+ {!hideTabTitle && <>Ground level ozone</>}
252
+ </div>
253
+ </Menu.Item>
254
+ ),
255
+ render: () => (
256
+ <Tab.Pane>
257
+ is not directly emitted into the atmosphere. Instead, it forms in the
258
+ atmosphere from a chain of chemical reactions following emissions of
259
+ certain precursor gases: NOX, carbon monoxide (CO) and NMVOCs and
260
+ methane (CH4).
261
+ </Tab.Pane>
262
+ ),
263
+ },
264
+ {
265
+ menuItem: (
266
+ <Menu.Item>
267
+ <div
268
+ className={cx({
269
+ 'asset-top': iconPosition === 'top',
270
+ 'asset-left': iconPosition === 'left',
271
+ 'asset-right': iconPosition === 'right',
272
+ })}
273
+ >
274
+ <Icon
275
+ className={cx('aligned ri-moon-line', iconSize)}
276
+ size={iconSize}
277
+ {...{
278
+ ...(hideTabTitle && {
279
+ role: 'img',
280
+ 'aria-hidden': 'false',
281
+ 'aria-label': 'Nitrogen oxides',
282
+ }),
283
+ }}
284
+ />
285
+ {!hideTabTitle && <>Nitrogen oxides</>}
286
+ </div>
287
+ </Menu.Item>
288
+ ),
289
+ render: () => (
290
+ <Tab.Pane>
291
+ are emitted during fuel combustion from industrial facilities and the
292
+ road transport sector. NOX is a group of gases comprising nitrogen
293
+ monoxide (NO) and nitrogen dioxide (NO2). NO makes up the majority of
294
+ NOX emissions. NOX contributes to the formation of ozone and
295
+ particulate matter.
296
+ </Tab.Pane>
297
+ ),
298
+ },
299
+ {
300
+ menuItem: (
301
+ <Menu.Item>
302
+ <div
303
+ className={cx({
304
+ 'asset-top': iconPosition === 'top',
305
+ 'asset-left': iconPosition === 'left',
306
+ 'asset-right': iconPosition === 'right',
307
+ })}
308
+ >
309
+ <Icon
310
+ className={cx('aligned ri-flashlight-line', iconSize)}
311
+ size={iconSize}
312
+ {...{
313
+ ...(hideTabTitle && {
314
+ role: 'img',
315
+ 'aria-hidden': 'false',
316
+ 'aria-label': 'Particulate matter',
317
+ }),
318
+ }}
319
+ />
320
+ {!hideTabTitle && <>Particulate matter</>}
321
+ </div>
322
+ </Menu.Item>
323
+ ),
324
+ render: () => (
325
+ <Tab.Pane>
326
+ is a mixture of aerosol particles (solid and liquid) covering a wide
327
+ range of sizes and chemical compositions. PM is either directly
328
+ emitted as primary particles or it forms in the atmosphere from
329
+ emissions of certain precursor pollutants such as SO2, NOX, NH3 and
330
+ NMVOCs. PM is emitted from many anthropogenic sources, including both
331
+ combustion and non-combustion sources. Natural emissions of PM also
332
+ occur, including from sea salt and windblown Saharan dust.
333
+ </Tab.Pane>
334
+ ),
335
+ },
336
+ ];
337
+
338
+ return (
339
+ <Tab
340
+ panes={panes}
341
+ renderActiveOnly={renderActive}
342
+ menu={{
343
+ secondary: true,
344
+ pointing: true,
345
+ fluid: true,
346
+ className: variant,
347
+ tabIndex: 0,
348
+ }}
349
+ ></Tab>
350
+ );
351
+ }
352
+
353
+ const IconTabTemplate = (args) => (
354
+ <Container>
355
+ <IconTabContent {...args}></IconTabContent>
356
+ </Container>
357
+ );
358
+
359
+ export const MenuIcon = IconTabTemplate.bind({});
360
+
361
+ MenuIcon.args = {
362
+ renderActive: true,
363
+ hideTabTitle: false,
364
+ iconPosition: 'top',
365
+ iconSize: 'small',
366
+ variant: 'secondary',
367
+ };
368
+
369
+ MenuIcon.argTypes = {
370
+ hideTabTitle: {
371
+ description: 'hide label',
372
+ table: {
373
+ type: {
374
+ summary: 'boolean',
375
+ },
376
+ defaultValue: {
377
+ summary: false,
378
+ },
379
+ },
380
+ },
381
+ iconPosition: {
382
+ control: {
383
+ type: 'inline-radio',
384
+ options: ['top', 'left', 'right'],
385
+ },
386
+ description: 'icon position',
387
+ type: { name: 'string' },
388
+ table: {
389
+ defaultValue: { summary: '""' },
390
+ },
391
+ },
392
+ iconSize: {
393
+ control: { type: 'inline-radio' },
394
+ options: ['mini', 'tiny', 'small', 'big', 'massive'],
395
+ description: 'icon size',
396
+ table: {
397
+ type: {
398
+ summary: 'string',
399
+ },
400
+ defaultValue: {
401
+ summary: 'large',
402
+ },
403
+ },
404
+ },
405
+ };
@@ -0,0 +1,20 @@
1
+ .ui.menu .asset-top,
2
+ .ui.menu .asset-left,
3
+ .ui.menu .asset-right {
4
+ display: flex;
5
+ align-items: center;
6
+ gap: 0.6em;
7
+ }
8
+
9
+ .ui.menu .asset-top {
10
+ flex-direction: column;
11
+ text-align: center;
12
+ }
13
+
14
+ .ui.menu .asset-left {
15
+ flex-direction: row;
16
+ }
17
+
18
+ .ui.menu .asset-right {
19
+ flex-direction: row-reverse;
20
+ }
@@ -260,6 +260,7 @@
260
260
  width: 100%;
261
261
  align-items: flex-end;
262
262
  justify-content: flex-end;
263
+ gap: 0 @mainMenuGap;
263
264
 
264
265
  .item {
265
266
  a {
@@ -456,6 +457,7 @@
456
457
 
457
458
  .search-action {
458
459
  display: flex;
460
+ flex-shrink: 0;
459
461
  width: @mobileActionsBoxWidth;
460
462
  height: @mobileMainSectionHeight;
461
463
  align-items: center;
@@ -648,11 +650,12 @@
648
650
 
649
651
  .ui.text.menu {
650
652
  display: flex;
651
- width: 88%;
652
653
  max-height: 100%;
653
654
  flex-wrap: wrap;
654
- justify-content: space-between;
655
+ justify-content: end;
655
656
  margin: 0;
657
+ padding-left: 0;
658
+ gap: 0 @mainMenuGap;
656
659
 
657
660
  .item {
658
661
  padding: @mainMenuItemPadding;
@@ -115,6 +115,7 @@
115
115
  @computerLogoMarginTop : @rem-space-5;
116
116
 
117
117
  /* Main menu */
118
+ @mainMenuGap : @component-padding;
118
119
  @mainMenuItemColor : @primaryColor;
119
120
  @mainMenuItemInvertedColor : @white;
120
121
  @mainMenuItemFontSize : ~"min(max(0.875rem, 1.5vw), 1.125rem)";
@@ -104,3 +104,7 @@
104
104
  @size-12: @size-11 + @space-20; // 240px
105
105
  @size-13: @size-12 + @space-20; // 320px
106
106
  @size-14: @size-13 + @size-11; // 480px
107
+
108
+ // start of variables to use instead of direct tokens
109
+ @component-padding: @rem-space-5;
110
+ @component-separator: @rem-space-8;