@eeacms/volto-eea-design-system 0.4.3 → 0.5.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/package.json +1 -1
  3. package/src/semantic.less +4 -4
  4. package/src/ui/Divider/Divider.stories.jsx +170 -0
  5. package/src/ui/Footer/Contact.jsx +6 -4
  6. package/src/ui/Footer/FooterHeader.jsx +2 -2
  7. package/src/ui/Footer/FooterSites.jsx +1 -1
  8. package/src/ui/Footer/Social.jsx +2 -2
  9. package/src/ui/Footer/SubFooter.jsx +54 -0
  10. package/src/ui/Header/Header.jsx +64 -34
  11. package/src/ui/Header/HeaderMenuPopUp.js +215 -54
  12. package/src/ui/Header/HeaderSearchPopUp.js +4 -4
  13. package/src/ui/Hero/Hero.jsx +55 -0
  14. package/src/ui/Hero/Hero.stories.jsx +205 -0
  15. package/src/ui/Logo/Logo.jsx +2 -3
  16. package/src/ui/Quote/Testimonial/Testimonial.jsx +3 -4
  17. package/src/ui/index.js +2 -0
  18. package/storybook-static/favicon.ico +0 -0
  19. package/theme/theme.config +0 -1
  20. package/theme/themes/eea/assets/images/forest.png +0 -0
  21. package/theme/themes/eea/assets/logo/EionetFull.svg +10 -0
  22. package/theme/themes/eea/assets/logo/climate-health.svg +53 -0
  23. package/theme/themes/eea/assets/logo/eea.svg +9 -0
  24. package/theme/themes/eea/assets/logo/eionet.svg +10 -0
  25. package/theme/themes/eea/assets/logo/fise.svg +37 -36
  26. package/theme/themes/eea/collections/menu.overrides +5 -5
  27. package/theme/themes/eea/definitions/views/item.less +13 -6
  28. package/theme/themes/eea/elements/container.overrides +1 -2
  29. package/theme/themes/eea/elements/divider.overrides +63 -0
  30. package/theme/themes/eea/elements/divider.variables +10 -1
  31. package/theme/themes/eea/elements/image.overrides +39 -0
  32. package/theme/themes/eea/elements/input.overrides +21 -8
  33. package/theme/themes/eea/extras/footer.less +188 -225
  34. package/theme/themes/eea/extras/footer.variables +49 -77
  35. package/theme/themes/eea/extras/header.less +473 -511
  36. package/theme/themes/eea/extras/header.variables +108 -80
  37. package/theme/themes/eea/extras/hero.less +59 -0
  38. package/theme/themes/eea/extras/hero.variables +23 -0
  39. package/theme/themes/eea/globals/site.overrides +5 -16
  40. package/theme/themes/eea/globals/site.variables +8 -0
  41. package/theme/themes/eea/globals/utilities.less +2 -2
  42. package/theme/themes/eea/modules/accordion.overrides +18 -0
  43. package/theme/themes/eea/modules/tab.overrides +2 -2
  44. package/theme/themes/eea/tokens/fonts.less +4 -3
  45. package/theme/themes/eea/views/card.overrides +7 -5
  46. package/theme/themes/eea/views/item.overrides +18 -3
  47. package/src/ui/Divider/Divider.jsx +0 -7
  48. package/theme/themes/eea/extras/divider.less +0 -14
  49. package/theme/themes/eea/extras/divider.variables +0 -9
package/CHANGELOG.md CHANGED
@@ -4,8 +4,137 @@ 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
+ #### [0.5.0](https://github.com/eea/volto-eea-design-system/compare/0.4.5...0.5.0)
8
+
9
+ - fix(header-dropdown): mobile text is now visible [`#111`](https://github.com/eea/volto-eea-design-system/pull/111)
10
+ - fix(header): Internal links in mega menu [`d8ca135`](https://github.com/eea/volto-eea-design-system/commit/d8ca13558c3e8c336800791f2fea8a8d33a2b602)
11
+ - Update package.json [`9dc3816`](https://github.com/eea/volto-eea-design-system/commit/9dc38165a95deca1faf2dfccdc03fd6cab3d8c54)
12
+ - refactor(header): and mega menu to latest spec #114 [`44fcf68`](https://github.com/eea/volto-eea-design-system/commit/44fcf68be242f97ced852b28ac3ab820dc0e1045)
13
+ - fix(header): show active menu when clicking on children [`a54fa67`](https://github.com/eea/volto-eea-design-system/commit/a54fa67a1a92e2ab4216e6d149f66e1ee53aab89)
14
+ - change(header): use Link instead of a tag for menu items [`9812b3f`](https://github.com/eea/volto-eea-design-system/commit/9812b3fba7b8305399d6972daf135b8a2d88e876)
15
+ - change(header): hide first link(home) from header menu on site [`ae7f3b9`](https://github.com/eea/volto-eea-design-system/commit/ae7f3b9385620eb3d840dd90f512e37cd8556a6d)
16
+ - change(header): renamed mega menu items href attribute to url [`3ed8144`](https://github.com/eea/volto-eea-design-system/commit/3ed8144589f87a9ad219c97193863c999a72cb6d)
17
+ - change(header): disable sticky setting until feature is more stable [`1d7af95`](https://github.com/eea/volto-eea-design-system/commit/1d7af954c85cb6a8a657c1625e4ae863e562346a)
18
+ - refactor(header): add link for menu title inside desktop mega menu [`24355d0`](https://github.com/eea/volto-eea-design-system/commit/24355d000b2bd808b2031cd2b78e60cafb9ad5b1)
19
+ - change(megamenu): typo correction and key setting on list.items [`96d2c4f`](https://github.com/eea/volto-eea-design-system/commit/96d2c4fbfa722d22a215e8d27f1400e65fe9476e)
20
+ - Autobuild of docusaurus docs [`e75be30`](https://github.com/eea/volto-eea-design-system/commit/e75be303421cd7ea70b0a15998636c6416459869)
21
+ - feat(hero): added storybook implementation of hero component #172 [`17b9d16`](https://github.com/eea/volto-eea-design-system/commit/17b9d1693e31bf7b3b41ca84be7bd21f07065674)
22
+ - Autobuild of docusaurus docs [`fe9d209`](https://github.com/eea/volto-eea-design-system/commit/fe9d209da5e493a6ce5c7fee63a47ba3d9788530)
23
+ - feature(item): added themes to item icons #190 [`a6a2907`](https://github.com/eea/volto-eea-design-system/commit/a6a2907df09575a18fb6e81dc52e8d6651eff118)
24
+ - Override tile image in .block parrent [`005655d`](https://github.com/eea/volto-eea-design-system/commit/005655ddff6f45e211f1ff8156b0b7efa1e47a2e)
25
+ - Move item icon themes to item.overrides [`31e8921`](https://github.com/eea/volto-eea-design-system/commit/31e8921f4ee4d92ba3a9c58275b41dd3101cffd2)
26
+ - Override only the width [`8d49270`](https://github.com/eea/volto-eea-design-system/commit/8d4927084e5daedcb69e6f3a57cab73a9016a55f)
27
+ - Add end of line [`51639d8`](https://github.com/eea/volto-eea-design-system/commit/51639d804a2b84f66373fb77c569bcc43b22e303)
28
+ - Add item themes; override .block .ui.image width based on size [`06010db`](https://github.com/eea/volto-eea-design-system/commit/06010db21398638d46d2e007317d72a7aff7e7d9)
29
+ - refactor(hero): add full-heigh control to adjust height [`a45cb7c`](https://github.com/eea/volto-eea-design-system/commit/a45cb7c599cdc11426207001e67d8f7d727233fe)
30
+ - refactor(utilities): update hex with color token [`8dc65ef`](https://github.com/eea/volto-eea-design-system/commit/8dc65ef55a62dcb32b6eb8a684524a8dc1fa6ba6)
31
+ - refactor(headings): update heading sizes for mobile [`19f3cca`](https://github.com/eea/volto-eea-design-system/commit/19f3ccacaf2c744b5f5c2ec8635773de7ef0016b)
32
+ - refactor(header): minor updates on colors and widths [`a70129f`](https://github.com/eea/volto-eea-design-system/commit/a70129fd929fedb344a47e049cca94274e84a3b1)
33
+ - refactor(hero):make button variant and inverted different button controls [`7e182ca`](https://github.com/eea/volto-eea-design-system/commit/7e182ca9ecdb76507205d84f83cad6a79dd74a03)
34
+ - fix(header): fix accessibility issue by David [`783dcec`](https://github.com/eea/volto-eea-design-system/commit/783dcec0d140e6e6e568d0f82833dcbf8a5c7d3d)
35
+ - fix(header): accessibility and dropdown possition fixes [`505ac36`](https://github.com/eea/volto-eea-design-system/commit/505ac36a27d86e620fb5af515a0b8b5979610f0a)
36
+ - refactor(header):main bar sticky on scroll up [`9c9e7c6`](https://github.com/eea/volto-eea-design-system/commit/9c9e7c6f9651c0663a1eab1856d7324a73afb2de)
37
+ - refactor(megaMenu): update mega menu in header component [`2d1ce45`](https://github.com/eea/volto-eea-design-system/commit/2d1ce454553d116efa96288079b8b77649e10abb)
38
+ - refactor(header): add control for inverted logo [`023ca45`](https://github.com/eea/volto-eea-design-system/commit/023ca45e6f263166211cbea0d63b1938d11221da)
39
+ - refactor(hero): move quoted utility to h2 tag [`7376676`](https://github.com/eea/volto-eea-design-system/commit/7376676b4875494f16c49945f6b5dac19c6b8009)
40
+ - refactor(header): update main section and and add color variations [`f2f0fd1`](https://github.com/eea/volto-eea-design-system/commit/f2f0fd1de7c04eff4b2a9b62d03dd13a1b0d69bc)
41
+ - refactor(header): update structure and variables of top bar [`af70909`](https://github.com/eea/volto-eea-design-system/commit/af709094f94f0cc2e2309b1aedb376e45dc7f136)
42
+ - refactor(hero):prettier & style changes [`d846884`](https://github.com/eea/volto-eea-design-system/commit/d84688440417a430afd9fd24f4c8cfeef0121203)
43
+ - refactor(hero): align hero's text and meta seperately [`4fa958f`](https://github.com/eea/volto-eea-design-system/commit/4fa958f7c7cc6d331a8eb7aaf25dc44d6cd3632a)
44
+ - refactor(hero):add button variant controls [`f362a7b`](https://github.com/eea/volto-eea-design-system/commit/f362a7b2ec273131fa0876f23b74c740c7217b3a)
45
+ - refactor(hero): update variables with new design tokens [`1d97922`](https://github.com/eea/volto-eea-design-system/commit/1d9792231c50f12fd68364e201054f6ab0926665)
46
+ - feat(hero): add hero block component and stories [`6019fc8`](https://github.com/eea/volto-eea-design-system/commit/6019fc843ec14a8afc7558e92c2d4b4bb14ee199)
47
+ - refactor(header): add control for main section stickiness [`2f07572`](https://github.com/eea/volto-eea-design-system/commit/2f07572f78074137e7e6a49585273210ed5cedcb)
48
+ - change(header): disabled active menu when clicking on globalnav links [`3f7b5ee`](https://github.com/eea/volto-eea-design-system/commit/3f7b5eedb038b51fbae8a14a683dc6adc919549b)
49
+ - fix(header): transparency class should apply on the current bg color or image [`f9a0033`](https://github.com/eea/volto-eea-design-system/commit/f9a0033c5538cb19f08f26cf28d47954cc52607d)
50
+ - refactor(header) add position sticky & transparent for main section [`29df772`](https://github.com/eea/volto-eea-design-system/commit/29df772edfe23b1752aa3d184659eea90c3c9221)
51
+ - refactor(header): add control that toggles transparency class on main section [`b8d4bdb`](https://github.com/eea/volto-eea-design-system/commit/b8d4bdb9c527f102ffd3718f32bf1a43309a9bb4)
52
+ - refactor(Language List): add less variables [`7ccc1cc`](https://github.com/eea/volto-eea-design-system/commit/7ccc1ccf57419b6eecbf71d479db72b84428d43a)
53
+ - refactor(Language List): render language dropdown as ul and li elements [`3617442`](https://github.com/eea/volto-eea-design-system/commit/3617442da78af07d3f473d0c43c47dd48c9b2ac3)
54
+ - change(header): mark top level active menu item [`665c449`](https://github.com/eea/volto-eea-design-system/commit/665c449bc2667cc1471a4b97923c897ad3506792)
55
+ - change(header): target link instead of span directly [`9e865fb`](https://github.com/eea/volto-eea-design-system/commit/9e865fbb5b256196756c3d84de397296ac0b447a)
56
+ - change(header): introduced item class to the mega menu link content [`00ca376`](https://github.com/eea/volto-eea-design-system/commit/00ca376ea4cf1de4851e84567b97c374ee7f66e3)
57
+ - fix(header): dropdown disappears after window resize #116 [`fc7dd8b`](https://github.com/eea/volto-eea-design-system/commit/fc7dd8bd7911421fb734a696a2dd5d3ad3b652b0)
58
+ - change(header): use viewport width for changing mobile text in header dropdowns [`b50fa58`](https://github.com/eea/volto-eea-design-system/commit/b50fa585c0abeedc04a46395f08e50a9e112c430)
59
+ - update storybook header.topdropdown [`e58ac08`](https://github.com/eea/volto-eea-design-system/commit/e58ac0821af56c06272e3373383647cbbff20978)
60
+ - rename to viewportWidth [`32162e7`](https://github.com/eea/volto-eea-design-system/commit/32162e7c695774bbb68ac63a0008e8b148f1e9f5)
61
+ - don't connect component to store [`470b8ba`](https://github.com/eea/volto-eea-design-system/commit/470b8bade5e8f2eaabb20a7bb02c8e82ca42f8a0)
62
+ - use volto-screen-helper width [`ea156aa`](https://github.com/eea/volto-eea-design-system/commit/ea156aad1100166ba78635163cfacdcfb913c1d4)
63
+ - fix(header): dropdowns disappear on resize [`52338fd`](https://github.com/eea/volto-eea-design-system/commit/52338fd3e711f4918612e052dc2034a8d9bd40bd)
64
+ - fix(header-topdropdown): dedupe html dropdown elements for topdropdowns #115 [`f10a7a8`](https://github.com/eea/volto-eea-design-system/commit/f10a7a8743a5fb2cecd0c3374ec9d894e914143f)
65
+ - behave as mobile under 480 only [`11b99e1`](https://github.com/eea/volto-eea-design-system/commit/11b99e15cb83245a32bb04f3937f5b95a60b1e95)
66
+ - make it account for all mobile-s,m,l [`69e23ae`](https://github.com/eea/volto-eea-design-system/commit/69e23ae8d12042f241dc53c9e296c340d5b17089)
67
+ - fix(header-topdropdown): dedupe html elements for topdropdowns [`cd8a2a7`](https://github.com/eea/volto-eea-design-system/commit/cd8a2a7ea091e81b736438f7c2a87c254af1b092)
68
+ - refactor(header): restore union dropdown after implementation [`7e98bab`](https://github.com/eea/volto-eea-design-system/commit/7e98bab497ee10ad89d2dfed76c7117b633206fe)
69
+ - fix(header): mobile dropdown now visible [`34371b4`](https://github.com/eea/volto-eea-design-system/commit/34371b436f2ec100f3920f78de49983ba16679b0)
70
+ - Add divider content for metadata field in Banner [`327ad1c`](https://github.com/eea/volto-eea-design-system/commit/327ad1c5fdca0d376d04fd36084b940e5dd016ab)
71
+ - refactor(header): update search input [`368962e`](https://github.com/eea/volto-eea-design-system/commit/368962eabb668e2ec1bdcd18ae81658e7b1d911b)
72
+ - refactor(header): remove unused imports [`7e232db`](https://github.com/eea/volto-eea-design-system/commit/7e232db6ce0b2553be79d98d8497fa06f548b772)
73
+ - refactor(header): update search input and file endings [`afab36f`](https://github.com/eea/volto-eea-design-system/commit/afab36f96f245e197eff528cb1d9e6fea45bc7ba)
74
+ - refactor(header): add fluid font sizes [`5f2743e`](https://github.com/eea/volto-eea-design-system/commit/5f2743e39107fd1bd00a54e03bf92963eb9853f2)
75
+ - refactor(header): minor responsive fixes [`16a0006`](https://github.com/eea/volto-eea-design-system/commit/16a000634505c9e8f8b310860a30b62798a0fb87)
76
+
77
+ #### [0.4.5](https://github.com/eea/volto-eea-design-system/compare/0.4.4...0.4.5)
78
+
79
+ > 8 June 2022
80
+
81
+ - change(tabs,footer): tabs styling and react warning fixes [`#188`](https://github.com/eea/volto-eea-design-system/pull/188)
82
+ - Autobuild of docusaurus docs [`728c62b`](https://github.com/eea/volto-eea-design-system/commit/728c62b1ddc9ea5e7f551230b657897c6eafbc57)
83
+ - change(tabs): Add style for tabs accordion template #187 [`fb8adbf`](https://github.com/eea/volto-eea-design-system/commit/fb8adbf84ac564a14d45bb6e8f4e1661811672d5)
84
+ - Autobuild of docusaurus docs [`06fbae7`](https://github.com/eea/volto-eea-design-system/commit/06fbae751c4f14ace793d4aa51f1ba0b52fec735)
85
+ - change(footer): avoid react error by providing key prop to grid column [`ef0b193`](https://github.com/eea/volto-eea-design-system/commit/ef0b1937d614a889a0c2117e483a834ed1aec1e3)
86
+ - Cleanup [`d4b9637`](https://github.com/eea/volto-eea-design-system/commit/d4b9637ebd2d6c015f8d4323551c6cbc4b7506df)
87
+ - Add style for tabs accordion template [`a109983`](https://github.com/eea/volto-eea-design-system/commit/a10998372a268b99991f7dda55103149f29d00cb)
88
+
89
+ #### [0.4.4](https://github.com/eea/volto-eea-design-system/compare/0.4.3...0.4.4)
90
+
91
+ > 8 June 2022
92
+
93
+ - feat(footer,divider): refactoring and volto implementation [`#186`](https://github.com/eea/volto-eea-design-system/pull/186)
94
+ - Make dots container of slick slider relative [`#184`](https://github.com/eea/volto-eea-design-system/pull/184)
95
+ - [R3] Divider component [`#170`](https://github.com/eea/volto-eea-design-system/pull/170)
96
+ - Remove a tag for menu item -> use only the class [`#183`](https://github.com/eea/volto-eea-design-system/pull/183)
97
+ - Autobuild of docusaurus docs [`7f0962d`](https://github.com/eea/volto-eea-design-system/commit/7f0962d26986e801c46b3390a90640b4f5f8cd24)
98
+ - fix(divider): Text colors and transform [`e524e10`](https://github.com/eea/volto-eea-design-system/commit/e524e1002bb0700ea69782cf5a95c6073ab383d2)
99
+ - Autobuild of docusaurus docs [`1652dda`](https://github.com/eea/volto-eea-design-system/commit/1652dda1428a7e4736c0d1b818a0fe27255d12ea)
100
+ - refactor(footer): to latest figma design #182 [`3e0ba2b`](https://github.com/eea/volto-eea-design-system/commit/3e0ba2b659db9dc1b140d853840a06bd3ce31cab)
101
+ - Autobuild of docusaurus docs [`58402e0`](https://github.com/eea/volto-eea-design-system/commit/58402e040a8a5080b4a07cd575fb9fe87624b593)
102
+ - change(Divider): Rename color property to theme [`0deffc8`](https://github.com/eea/volto-eea-design-system/commit/0deffc823609d23131a85bc180e4a3f5a67a64aa)
103
+ - change(footer): tweaked column sizes to the values before my changes [`fdf2718`](https://github.com/eea/volto-eea-design-system/commit/fdf271868e44bce2904cc28c6fa924ee4c9ba759)
104
+ - refactor(footer): move subfooter logic to the proper component #185 [`3034577`](https://github.com/eea/volto-eea-design-system/commit/303457719128c9699dd34939bd8db2b647977667)
105
+ - change(footer): added managed by section as properties [`9328fc3`](https://github.com/eea/volto-eea-design-system/commit/9328fc3084baf22439e1892d256d9a167b911849)
106
+ - Autobuild of docusaurus docs [`d171921`](https://github.com/eea/volto-eea-design-system/commit/d1719215a0ec3c52474b79d647618e329a627e08)
107
+ - lint fix [`657cf4e`](https://github.com/eea/volto-eea-design-system/commit/657cf4ed917c4ff992aa033c3d9f4884a949d86d)
108
+ - change(footer): moved SubFooter logic to SubFooter.jsx from Footer story [`902383a`](https://github.com/eea/volto-eea-design-system/commit/902383a0bb3446dc69237099bd429ead5e30a6c1)
109
+ - Remove unnecessary spaces [`d137981`](https://github.com/eea/volto-eea-design-system/commit/d137981430809345bfb3ad494e7ab981c93c3e51)
110
+ - Autobuild of docusaurus docs [`5b0be9c`](https://github.com/eea/volto-eea-design-system/commit/5b0be9cc97e1166b983f46d5732e5c57f4e970d0)
111
+ - refactor(testimonial): changed divider color to secondary [`84282f9`](https://github.com/eea/volto-eea-design-system/commit/84282f960ab22ccb8403e975c055c61d1023193a)
112
+ - Autobuild of docusaurus docs [`e856488`](https://github.com/eea/volto-eea-design-system/commit/e85648834e23c02670957b8463d4e0fd3a649728)
113
+ - fix(footer): story aria labels for social media links [`254bdc7`](https://github.com/eea/volto-eea-design-system/commit/254bdc7ba944943f5d08a71f9d0a3a31bdc06044)
114
+ - docs(divider): switch to secondary color [`239844b`](https://github.com/eea/volto-eea-design-system/commit/239844be374a2f6bc4667e7ab3d2f52bfdc181ad)
115
+ - perf(storybook): added storybook favicon [`38eabc3`](https://github.com/eea/volto-eea-design-system/commit/38eabc3124c85dd56bf5c68c0fb1e967c39055ec)
116
+ - docs(divider): showcase path fix [`d5ea03f`](https://github.com/eea/volto-eea-design-system/commit/d5ea03f60034edc918054aa273e44b84b2537716)
117
+ - refactor(footer): update links and logo align [`7afbab9`](https://github.com/eea/volto-eea-design-system/commit/7afbab9b37982a557ac8bfa4430205ce912c3b8b)
118
+ - refactor(footer): logo updates and adjustments [`101bc9d`](https://github.com/eea/volto-eea-design-system/commit/101bc9dfe4136240457f335de867a83c28d59339)
119
+ - fix(divider): restore space between classes [`c595c15`](https://github.com/eea/volto-eea-design-system/commit/c595c152c144463f33757157ed7d6797ae31ceed)
120
+ - refactor(footer): update controls [`b0b872b`](https://github.com/eea/volto-eea-design-system/commit/b0b872b1415c9792a5886f619195f9c0471ea564)
121
+ - refactor(footer): use tokens and adjust spacing [`2cb1669`](https://github.com/eea/volto-eea-design-system/commit/2cb166949913f725271050e863b38e7630748135)
122
+ - refactor(Divider):add divider with content inside story [`e2d66dc`](https://github.com/eea/volto-eea-design-system/commit/e2d66dca901fa189d69b65239dc34b1969097be8)
123
+ - refactor(footer): use remix icons for social links [`5ef9aa2`](https://github.com/eea/volto-eea-design-system/commit/5ef9aa2cebb6f96857a1920cefbf7e367b4d7c28)
124
+ - refactor(Divider_:remove green color class & add tertiary [`95f3018`](https://github.com/eea/volto-eea-design-system/commit/95f30186bc1768e08f00ad7d5ffa2a70402ac553)
125
+ - refactor(Divider):remove clean class and use fitted prop [`8d2be35`](https://github.com/eea/volto-eea-design-system/commit/8d2be350dcc44fd56b5fbfb791fb6b2a45bd8a52)
126
+ - refactor(footer): update logos and less structure [`66b8e0f`](https://github.com/eea/volto-eea-design-system/commit/66b8e0f12825968d94f7d572f2823d9a8a3a239b)
127
+ - refactor(footer): first footer updates [`d18a2ee`](https://github.com/eea/volto-eea-design-system/commit/d18a2ee59d0deb143075d8dfeb949898ad1f6399)
128
+ - refactor(divider): remove custom divider from theme config [`a0409e8`](https://github.com/eea/volto-eea-design-system/commit/a0409e8df3c9ba043717140455369a3630f0da85)
129
+ - refactor(testimonial): update divider [`784450a`](https://github.com/eea/volto-eea-design-system/commit/784450abdf395318fe89d8d3d0a1e398393cc93c)
130
+ - refactor(divider): remove custom divider [`d4870d2`](https://github.com/eea/volto-eea-design-system/commit/d4870d2252ad216e82213fa1f94cc39609ae676d)
131
+ - feat(divider): create story for divider [`b10a2e0`](https://github.com/eea/volto-eea-design-system/commit/b10a2e08b14962bed9f13317754f4124ee60d313)
132
+
7
133
  #### [0.4.3](https://github.com/eea/volto-eea-design-system/compare/0.4.2...0.4.3)
8
134
 
135
+ > 3 June 2022
136
+
137
+ - Release [`#181`](https://github.com/eea/volto-eea-design-system/pull/181)
9
138
  - Autobuild of docusaurus docs [`adc7b64`](https://github.com/eea/volto-eea-design-system/commit/adc7b64312b98a56a893bc99571149353a8c0f00)
10
139
  - fix(edit): Fix columns/accordion inner toolbar padding [`fafbb52`](https://github.com/eea/volto-eea-design-system/commit/fafbb525baa60c339906dc6a33d2f9418d050be6)
11
140
  - Autobuild of docusaurus docs [`12f9a51`](https://github.com/eea/volto-eea-design-system/commit/12f9a51906a6b444857c2b2c988436eeab412064)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.4.3",
3
+ "version": "0.5.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",
package/src/semantic.less CHANGED
@@ -233,10 +233,6 @@
233
233
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/inpageNavigation';
234
234
  }
235
235
 
236
- & {
237
- @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/divider';
238
- }
239
-
240
236
  & {
241
237
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/testimonial';
242
238
  }
@@ -276,3 +272,7 @@
276
272
  & {
277
273
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/languageLabeledIcon';
278
274
  }
275
+
276
+ & {
277
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/hero';
278
+ }
@@ -0,0 +1,170 @@
1
+ import React from 'react';
2
+ import { Divider, Container } from 'semantic-ui-react';
3
+
4
+ export default {
5
+ title: 'Components/Divider',
6
+ component: Divider,
7
+ argTypes: {
8
+ theme: {
9
+ options: ['default', 'primary', 'secondary', 'tertiary'],
10
+ control: { type: 'select' },
11
+ description: 'Variations of the divider',
12
+ table: {
13
+ type: {
14
+ summary: 'string',
15
+ },
16
+ defaultValue: {
17
+ summary: 'default',
18
+ },
19
+ },
20
+ },
21
+ section: {
22
+ description:
23
+ 'A divider can provide greater margins to divide sections of content.',
24
+ table: {
25
+ type: {
26
+ summary: 'boolean',
27
+ },
28
+ defaultValue: {
29
+ summary: false,
30
+ },
31
+ },
32
+ },
33
+ hidden: {
34
+ description:
35
+ 'A hidden divider divides content without creating a dividing line',
36
+ table: {
37
+ type: {
38
+ summary: 'boolean',
39
+ },
40
+ defaultValue: {
41
+ summary: false,
42
+ },
43
+ },
44
+ },
45
+ short: {
46
+ description: 'Shot divider',
47
+ table: {
48
+ type: {
49
+ summary: 'boolean',
50
+ },
51
+ defaultValue: {
52
+ summary: false,
53
+ },
54
+ },
55
+ },
56
+ fitted: {
57
+ description: 'Remove space above or below the divider',
58
+ table: {
59
+ type: {
60
+ summary: 'boolean',
61
+ },
62
+ defaultValue: {
63
+ summary: false,
64
+ },
65
+ },
66
+ },
67
+ content: {
68
+ description: 'Horizontal divider content',
69
+ table: {
70
+ type: {
71
+ summary: 'string | object',
72
+ },
73
+ defaultValue: {
74
+ summary: '',
75
+ },
76
+ },
77
+ },
78
+ },
79
+ };
80
+
81
+ function Template({ hidden, theme, section, short, fitted }) {
82
+ return (
83
+ <Container>
84
+ <p>
85
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
86
+ ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
87
+ magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
88
+ ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
89
+ quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
90
+ arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
91
+ Nullam dictum felis eu pede link mollis.
92
+ </p>
93
+ <Divider
94
+ hidden={hidden}
95
+ section={section}
96
+ className={`${theme === 'default' ? '' : theme} ${
97
+ short ? 'short' : ''
98
+ }`}
99
+ fitted={fitted}
100
+ />
101
+ <p>
102
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
103
+ ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
104
+ magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
105
+ ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
106
+ quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
107
+ arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
108
+ Nullam dictum felis eu pede link mollis.
109
+ </p>
110
+ </Container>
111
+ );
112
+ }
113
+
114
+ export const Default = Template.bind({});
115
+ Default.args = {
116
+ theme: 'default',
117
+ hidden: false,
118
+ section: false,
119
+ short: false,
120
+ fitted: false,
121
+ };
122
+ Default.parameters = {
123
+ controls: { exclude: ['content'] },
124
+ hideNoControlsWarning: true,
125
+ };
126
+
127
+ function DividerWithContentTemplate({ content, theme, section, fitted }) {
128
+ return (
129
+ <Container>
130
+ <p>
131
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
132
+ ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
133
+ magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
134
+ ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
135
+ quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
136
+ arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
137
+ Nullam dictum felis eu pede link mollis.
138
+ </p>
139
+ <Divider
140
+ horizontal
141
+ section={section}
142
+ className={`${theme === 'default' ? '' : theme}`}
143
+ fitted={fitted}
144
+ >
145
+ <div>{content}</div>
146
+ </Divider>
147
+ <p>
148
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
149
+ ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
150
+ magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
151
+ ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
152
+ quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
153
+ arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
154
+ Nullam dictum felis eu pede link mollis.
155
+ </p>
156
+ </Container>
157
+ );
158
+ }
159
+
160
+ export const DividerWithContent = DividerWithContentTemplate.bind({});
161
+ DividerWithContent.args = {
162
+ content: 'Divider Content',
163
+ theme: 'default',
164
+ section: false,
165
+ fitted: false,
166
+ };
167
+ DividerWithContent.parameters = {
168
+ controls: { exclude: ['short', 'hidden'] },
169
+ hideNoControlsWarning: true,
170
+ };
@@ -7,16 +7,18 @@ const Contact = ({ children, contacts, header, address }) =>
7
7
  children?.length ? (
8
8
  children
9
9
  ) : (
10
- <>
10
+ <div className="contact-block">
11
11
  <p className="header">{header}</p>
12
12
  {contacts?.map((contact, index) => (
13
13
  <div className="contact" key={index}>
14
- <Icon name={contact.icon} size="big"></Icon>
15
- <Link to={contact.link}>{contact.text}</Link>
14
+ <Link to={contact.link}>
15
+ <Icon className={contact.icon} size="big"></Icon>
16
+ {contact.text}
17
+ </Link>
16
18
  </div>
17
19
  ))}
18
20
  {address && <p className="address">{address}</p>}
19
- </>
21
+ </div>
20
22
  );
21
23
 
22
24
  Contact.propTypes = {
@@ -2,8 +2,8 @@ import React from 'react';
2
2
 
3
3
  const FooterHeader = (props) => {
4
4
  return (
5
- <div className="theme-sites">
6
- <p className="header">{props.children}</p>
5
+ <div className="theme-sites mobile hidden">
6
+ <p className="header text-center">{props.children}</p>
7
7
  </div>
8
8
  );
9
9
  };
@@ -9,7 +9,7 @@ const Sites = (props) => {
9
9
 
10
10
  //fallback to props
11
11
  return (
12
- <div className="theme-sites">
12
+ <div className="theme-sites mobile hidden">
13
13
  <div className="logos">
14
14
  <Grid columns={5}>
15
15
  {props.sites &&
@@ -9,9 +9,9 @@ const Social = (props) => {
9
9
 
10
10
  return (
11
11
  <div className="social">
12
- {props.social.map((item, index) => (
12
+ {props.social?.map((item, index) => (
13
13
  <a href={item.link} aria-label={`${item.name} link`} key={index}>
14
- <Icon name={item.name}></Icon>
14
+ <Icon className={item.icon}></Icon>
15
15
  </a>
16
16
  ))}
17
17
  </div>
@@ -1,9 +1,63 @@
1
1
  import React from 'react';
2
+ import Footer from './Footer';
3
+
4
+ import { Grid, Image } from 'semantic-ui-react';
2
5
 
3
6
  const SubFooter = (props) => {
4
7
  if (props.children) {
5
8
  return <div>{props.children}</div>;
6
9
  }
10
+
11
+ return (
12
+ <div className={'subfooter'}>
13
+ <Grid>
14
+ <Grid.Column mobile={12} tablet={5} computer={6}>
15
+ <div className="item">
16
+ <p className="header text-center logo-header">
17
+ {props.logosHeader}
18
+ </p>
19
+
20
+ <Grid>
21
+ {props.managedBy &&
22
+ props.managedBy.map((manager, index) => (
23
+ <Grid.Column
24
+ mobile={manager.columnSize.mobile}
25
+ tablet={manager.columnSize.tablet}
26
+ computer={manager.columnSize.computer}
27
+ key={index}
28
+ >
29
+ <div className={manager.className}>
30
+ <a href={manager.link}>
31
+ <Image src={manager.src} alt={manager.alt}></Image>
32
+ </a>
33
+ </div>
34
+ </Grid.Column>
35
+ ))}
36
+ </Grid>
37
+ </div>
38
+ </Grid.Column>
39
+ <Grid.Column
40
+ mobile={6}
41
+ tablet={2}
42
+ computer={2}
43
+ className="mobile hidden"
44
+ ></Grid.Column>
45
+ <Grid.Column mobile={12} tablet={5} computer={4}>
46
+ <div className="item">
47
+ <Footer.Contact
48
+ contacts={props.contacts}
49
+ header={props.contactHeader}
50
+ address={props.address}
51
+ />
52
+ <Footer.Social social={props.social} />
53
+ </div>
54
+ </Grid.Column>
55
+ </Grid>
56
+ <Grid.Row>
57
+ <Footer.Actions actions={props.actions} />
58
+ </Grid.Row>
59
+ </div>
60
+ );
7
61
  };
8
62
 
9
63
  export default SubFooter;