@eeacms/volto-eea-design-system 0.3.1 → 0.4.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +129 -0
  2. package/package.json +3 -2
  3. package/src/semantic.less +21 -1
  4. package/src/ui/Card/Card.stories.jsx +185 -5
  5. package/src/ui/DownloadLabeledIcon/DownloadLabeledIcon.jsx +54 -0
  6. package/src/ui/DownloadLabeledIcon/DownloadLabeledIcon.stories.jsx +68 -0
  7. package/src/ui/LabeledIconGroup/LabeledIconGroup.jsx +67 -0
  8. package/src/ui/LabeledIconGroup/LabeledIconGroup.stories.jsx +74 -0
  9. package/src/ui/LanguageLabeledIcon/LanguageLabeledIcon.jsx +92 -0
  10. package/src/ui/LanguageLabeledIcon/LanguageLabeledIcon.stories.jsx +63 -0
  11. package/src/ui/NewTabLabeledIcon/NewTabLabeledIcon.jsx +26 -0
  12. package/src/ui/NewTabLabeledIcon/NewTabLabeledIcon.stories.jsx +49 -0
  13. package/src/ui/Quote/Quote.jsx +1 -1
  14. package/src/ui/Quote/Quote.stories.jsx +21 -29
  15. package/src/ui/index.js +8 -0
  16. package/theme/theme.config +4 -0
  17. package/theme/themes/eea/assets/images/Svg/data-analytics.svg +14 -0
  18. package/theme/themes/eea/assets/images/Svg/globe-eco.svg +3 -0
  19. package/theme/themes/eea/assets/images/Svg/knowledge.svg +3 -0
  20. package/theme/themes/eea/assets/images/Svg/network.svg +3 -0
  21. package/theme/themes/eea/assets/images/Svg/sustainable.svg +38 -0
  22. package/theme/themes/eea/collections/table.overrides +1 -1
  23. package/theme/themes/eea/definitions/views/item.less +475 -0
  24. package/theme/themes/eea/elements/label.overrides +111 -3
  25. package/theme/themes/eea/elements/label.variables +17 -3
  26. package/theme/themes/eea/extras/downloadLabeledIcon.less +87 -0
  27. package/theme/themes/eea/extras/downloadLabeledIcon.variables +45 -0
  28. package/theme/themes/eea/extras/labeledIconGroup.less +20 -0
  29. package/theme/themes/eea/extras/labeledIconGroup.variables +10 -0
  30. package/theme/themes/eea/extras/languageLabeledIcon.less +81 -0
  31. package/theme/themes/eea/extras/languageLabeledIcon.variables +41 -0
  32. package/theme/themes/eea/extras/newTabLabeledIcon.less +41 -0
  33. package/theme/themes/eea/extras/newTabLabeledIcon.variables +23 -0
  34. package/theme/themes/eea/extras/quote.less +3 -3
  35. package/theme/themes/eea/extras/quote.variables +4 -4
  36. package/theme/themes/eea/globals/site.overrides +2 -0
  37. package/theme/themes/eea/globals/site.variables +25 -6
  38. package/theme/themes/eea/globals/utilities.less +31 -0
  39. package/theme/themes/eea/tokens/borders.less +14 -0
  40. package/theme/themes/eea/tokens/colors.less +63 -0
  41. package/theme/themes/eea/tokens/fonts.less +2 -2
  42. package/theme/themes/eea/tokens/shadows.less +41 -0
  43. package/theme/themes/eea/tokens/shapes.less +6 -0
  44. package/theme/themes/eea/tokens/sizes.less +106 -17
  45. package/theme/themes/eea/tokens/tokens.less +5 -0
  46. package/theme/themes/eea/tokens/z-index.less +12 -0
  47. package/theme/themes/eea/views/card.overrides +108 -0
  48. package/theme/themes/eea/views/card.variables +29 -1
  49. package/theme/themes/eea/views/item.overrides +37 -0
  50. package/theme/themes/eea/views/item.variables +12 -3
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.4.2](https://github.com/eea/volto-eea-design-system/compare/0.4.1...0.4.2)
8
+
9
+ - Autobuild of docusaurus docs [`bc17743`](https://github.com/eea/volto-eea-design-system/commit/bc177436897f80d6ae37fe4856099733831b2c8a)
10
+ - change(docusaurus): color guideline updates and spacing tokens documentation #148 [`c1154ba`](https://github.com/eea/volto-eea-design-system/commit/c1154ba172c3b3b40b565c2bcb590f1a5e6b25a4)
11
+ - change(docusaurus): moved color swatches around in the color guide [`8a395fc`](https://github.com/eea/volto-eea-design-system/commit/8a395fce52a32cf92449a24d3d4cce5abf25a284)
12
+ - change(docusaurus): added category yml for all sections [`1740572`](https://github.com/eea/volto-eea-design-system/commit/17405728e3f44828da50890b9fc0f4e8a07f8bf2)
13
+ - change(docusaurus): rename gap to space and added em spaces [`f5b042d`](https://github.com/eea/volto-eea-design-system/commit/f5b042d311518ec3fb32c7f259c39ff62d4547f8)
14
+ - change(docusaurus): modified story links to avoid broken usage tabs [`78dc8d8`](https://github.com/eea/volto-eea-design-system/commit/78dc8d8f4e7cade3ab0e911e6dc002eefc1e7986)
15
+ - change(docusaurus): removed description from components and introduced category listing [`f220bf0`](https://github.com/eea/volto-eea-design-system/commit/f220bf0785f5aaede8c25c4164120b09de67b018)
16
+ - change(docusaurus): moved md_components files into webdev/md_components [`73c1c08`](https://github.com/eea/volto-eea-design-system/commit/73c1c08a270d504fa6f2ba2579bcb3e6e25fb112)
17
+ - change(docusaurus): renamed several file id's so that they match the incremental naming sequence [`11299c9`](https://github.com/eea/volto-eea-design-system/commit/11299c9a4c41ca901926f852227dbca0bc1aee17)
18
+ - change(docusaurus): moved extra docs to webdev section [`1ce0797`](https://github.com/eea/volto-eea-design-system/commit/1ce0797b91418272e4e405467cd1468292620005)
19
+ - merge changes from develop into docusaurus token documentation [`a940138`](https://github.com/eea/volto-eea-design-system/commit/a9401384ddf5fcfbf29e50d34f3d7851be85f19a)
20
+ - perf(docs): restructuring order [`8f4134d`](https://github.com/eea/volto-eea-design-system/commit/8f4134d81d1cc59b8ba0d8669415b5eb31c0513d)
21
+ - docs(Docusaurus): timeline, testimonial, quote and tags [`aaa54ec`](https://github.com/eea/volto-eea-design-system/commit/aaa54ecbe182872ffc7fff275d5065ebe790d348)
22
+ - docs(spacing): add relative gap tokens [`92abc8f`](https://github.com/eea/volto-eea-design-system/commit/92abc8fff2c7006e2c64684048e7783216a230bb)
23
+ - docs(Docusaurus): labeled icons [`f6a0f61`](https://github.com/eea/volto-eea-design-system/commit/f6a0f61ede3a36c7d66d9b3091b93b0b5ff9a445)
24
+ - docs(spacing): aligned images [`e946fe5`](https://github.com/eea/volto-eea-design-system/commit/e946fe59457b861a31939e99adf4b380777e01e0)
25
+ - docs(spacing): new image [`fcd3294`](https://github.com/eea/volto-eea-design-system/commit/fcd3294d53db76580b8bffc9678a09fd65b33113)
26
+ - docs(spacing): add missing gaps [`442db46`](https://github.com/eea/volto-eea-design-system/commit/442db468830150c8e4ad5f91775fc5b3c47dd655)
27
+ - docs(colors): updated colors [`a28c99e`](https://github.com/eea/volto-eea-design-system/commit/a28c99e60867c1eaa1b7b68d4154ccaa8c9ef958)
28
+ - docs(spacing): add spacing gap tokens [`2d53727`](https://github.com/eea/volto-eea-design-system/commit/2d53727f8e817588421efea464e849c9f9e16dce)
29
+ - docs(typography): add font size and line height tokens [`2ff65e4`](https://github.com/eea/volto-eea-design-system/commit/2ff65e47cfe56eb3efe976300b764ba13f8685ce)
30
+ - docs(docusaurus): minor fix [`6e66513`](https://github.com/eea/volto-eea-design-system/commit/6e66513f08cff598881ce1051b482ddadf8e0593)
31
+ - docs(tags/content): new page about tags and content [`60be402`](https://github.com/eea/volto-eea-design-system/commit/60be40268a77606c53fc45641bc22166b50b75e7)
32
+
33
+ #### [0.4.1](https://github.com/eea/volto-eea-design-system/compare/0.4.0...0.4.1)
34
+
35
+ > 2 June 2022
36
+
37
+ - Release [`#178`](https://github.com/eea/volto-eea-design-system/pull/178)
38
+ - [R3] Labeled icons [`#137`](https://github.com/eea/volto-eea-design-system/pull/137)
39
+ - Autobuild of docusaurus docs [`724be48`](https://github.com/eea/volto-eea-design-system/commit/724be48bebb5421663969b694fca79181f007977)
40
+ - refactor(LanguageLabeledIcons):minor storybook change [`78f5544`](https://github.com/eea/volto-eea-design-system/commit/78f55442a80cbc2f716ba81274ed08204e3c502a)
41
+ - refactor(LanguageLabeledIcon): set language code to uppercase and minor storybook change [`ac28693`](https://github.com/eea/volto-eea-design-system/commit/ac286931282c0a69bc6d7803e96cbe302db8994f)
42
+ - refactor(labeledIcon): adjust paddings [`9c1ecdd`](https://github.com/eea/volto-eea-design-system/commit/9c1ecddc52c81be1d952d0af67862a284eba9eec)
43
+ - refactor(labeledIcon): add group wrapper in labeled icon stories [`4b7dd31`](https://github.com/eea/volto-eea-design-system/commit/4b7dd314230145b6239fd800d41f546ab5d9eebb)
44
+ - fix(LabeledIconGroup):fix based on Langauge & Download Labeled icon components changes [`3015864`](https://github.com/eea/volto-eea-design-system/commit/3015864ce740f534aa204402f85a9f392e342513)
45
+ - refactor(LanguageLabeledIcon):implement with pop up [`0f3dd8f`](https://github.com/eea/volto-eea-design-system/commit/0f3dd8f0388484f94351a0ab0798ab53e84c9229)
46
+ - refactor(DownloadLabeledIcon):implement with pop up [`aa61f9b`](https://github.com/eea/volto-eea-design-system/commit/aa61f9b7d449c08c08bc4c004da6a0458598c828)
47
+ - refactor(labeledIcons): update margins for group labeled icons [`5fa5ca9`](https://github.com/eea/volto-eea-design-system/commit/5fa5ca9103a5d8ad1510c90cc8c46d0c82abcc63)
48
+ - refactor(labeledIcons): update colors on download links [`c042642`](https://github.com/eea/volto-eea-design-system/commit/c04264229c91bfdea927fd22f4ee1e8ddbcebd5c)
49
+ - refactor(labeledIcons): adjust language labeled icon to figma [`5741e3d`](https://github.com/eea/volto-eea-design-system/commit/5741e3d2e95665ef12670335b12d29cfbf998fdc)
50
+ - refactor(labeledIcons): adjust new tab labeled icon to figma and replace px with rems [`904615d`](https://github.com/eea/volto-eea-design-system/commit/904615d789ea711678f43ce9f9d02a450289031f)
51
+ - refactor(labeledIcons): add variable for icon color [`9f9d3cb`](https://github.com/eea/volto-eea-design-system/commit/9f9d3cba5115c5c91aaaca49c1f834950400673a)
52
+ - refactor(labeledIcons): adjust download icon to figma and replace px with rems [`4ae8530`](https://github.com/eea/volto-eea-design-system/commit/4ae85307a62526fed75ef0b1d37ad59076370b5a)
53
+ - fix(LanguageLabeledIcon):bug fix & languages change [`1436e2b`](https://github.com/eea/volto-eea-design-system/commit/1436e2bc270f8f079f07b7909254bd2e6e087084)
54
+ - fix(Labeled Icons):minor bug fix [`00f3022`](https://github.com/eea/volto-eea-design-system/commit/00f3022cdc2bfad634707f0d6d05768868f599be)
55
+ - feat(languageLabeledIcon) : add new component [`110558e`](https://github.com/eea/volto-eea-design-system/commit/110558eeec37d5b5f616a95298a313ba230dd6f4)
56
+ - chore(LabeledIconGroup) : lint changes [`ab36476`](https://github.com/eea/volto-eea-design-system/commit/ab364763bb2526adbbb7fc3c656a16b497568940)
57
+ - fix(LabeledIconGroup) : fix links for tests [`daa1065`](https://github.com/eea/volto-eea-design-system/commit/daa10653ca37f3e83302e2ebcc566b5f5ec4c4d9)
58
+ - chore(labeledIconGroup) : lint changes [`535cee4`](https://github.com/eea/volto-eea-design-system/commit/535cee4795dff75b35856cb4406a9bd33ee07ca4)
59
+ - feat(LanguageLabeledIcon):add new component [`d00200c`](https://github.com/eea/volto-eea-design-system/commit/d00200c278e1dab02b449b460a325e0f2e7b8ccd)
60
+ - feat(labeledIconGroup) : add new component [`787d648`](https://github.com/eea/volto-eea-design-system/commit/787d648342d78c4f9d28fde9d08e83089ef7b08f)
61
+ - fix(LabeledIcon) : fix lint errors [`91b042f`](https://github.com/eea/volto-eea-design-system/commit/91b042f8c16bd3e99659c1c24a5f2a946c72b03f)
62
+ - fix(newTabLabeledIcon) : add link item [`b1a9ada`](https://github.com/eea/volto-eea-design-system/commit/b1a9ada3dd7dae9e1841cfde5319a6ab37b15de2)
63
+ - feat(newTabLabeledIcon) : add new component [`8f5cd31`](https://github.com/eea/volto-eea-design-system/commit/8f5cd31257a306a58c1d9cdbf7cb428701412369)
64
+ - style(downloadLabeledIcon) : fix alignment [`4558017`](https://github.com/eea/volto-eea-design-system/commit/455801701d2958515885ba2c398312f0c56057b0)
65
+ - style(downloadLabeledIcon) : fix styling [`6d8e3ac`](https://github.com/eea/volto-eea-design-system/commit/6d8e3acb3bac1a4174d4bb526d6188cb5e5f8faa)
66
+ - feat(DownLoadLabeledIcon) : add new component [`6ea2fa1`](https://github.com/eea/volto-eea-design-system/commit/6ea2fa1ec17ce235401a8ac741afa8fede920d26)
67
+
68
+ #### [0.4.0](https://github.com/eea/volto-eea-design-system/compare/0.3.1...0.4.0)
69
+
70
+ > 1 June 2022
71
+
72
+ - Release [`#177`](https://github.com/eea/volto-eea-design-system/pull/177)
73
+ - [Homepage] Carousel [`#161`](https://github.com/eea/volto-eea-design-system/pull/161)
74
+ - [R2] Label [`#160`](https://github.com/eea/volto-eea-design-system/pull/160)
75
+ - docs(homepage): adding homepage with links for upcoming sections [`#166`](https://github.com/eea/volto-eea-design-system/pull/166)
76
+ - Release 0.4.0 [`f4bc509`](https://github.com/eea/volto-eea-design-system/commit/f4bc50928ab877f3670b181dbe6e8cfff7fa2daa)
77
+ - Autobuild of docusaurus docs [`df30dbb`](https://github.com/eea/volto-eea-design-system/commit/df30dbb2ed3de068445b9080851520357ef7636c)
78
+ - refactor(docusaurus): restructured and improved sections navigation #174 [`b47b026`](https://github.com/eea/volto-eea-design-system/commit/b47b0266ffd6baeaf1a5aea1a7ab22c909976de1)
79
+ - docs(docusaurus): copyedit, improved navigation [`998762a`](https://github.com/eea/volto-eea-design-system/commit/998762a5bd40d08f619c00743b66d82b43aed653)
80
+ - Autobuild of docusaurus docs [`28f8122`](https://github.com/eea/volto-eea-design-system/commit/28f81220c2093df75b4c36384cb9c865d0e94b4a)
81
+ - refactor(tokens): add 12 and 14px font size token #176 [`3681147`](https://github.com/eea/volto-eea-design-system/commit/368114729536f03dd85c2d3565b984c3bdfe3a72)
82
+ - refactor(tokens): add 14px font size token [`8d8695d`](https://github.com/eea/volto-eea-design-system/commit/8d8695dce62e7f29af01447308460e4fe3f72b21)
83
+ - Autobuild of docusaurus docs [`a53b457`](https://github.com/eea/volto-eea-design-system/commit/a53b45781ceec27cf034f9104cfb7b7c1aec519a)
84
+ - change(tokens): added size tokens to be used for width of elements [`cda5dea`](https://github.com/eea/volto-eea-design-system/commit/cda5dea1f6ad1ae980c89999d323d7b385894025)
85
+ - docs(website): created new sections, improved website navigation [`243f0be`](https://github.com/eea/volto-eea-design-system/commit/243f0be4d7fa6e988da0ca0f586f5ea478573eef)
86
+ - docs(website): restructuring, moved current DS docs to new folder [`8bb612f`](https://github.com/eea/volto-eea-design-system/commit/8bb612f1313dfc739d7912aa2e3252f468e1122f)
87
+ - Autobuild of docusaurus docs [`beda042`](https://github.com/eea/volto-eea-design-system/commit/beda0422a088fbb664d1df6878dedb21891f19cc)
88
+ - feature(homepage): added Item group with icons #167 [`2ec99f5`](https://github.com/eea/volto-eea-design-system/commit/2ec99f53aeb183b24073be4014a9c2ec30d5235c)
89
+ - Autobuild of docusaurus docs [`29ad0ab`](https://github.com/eea/volto-eea-design-system/commit/29ad0abfee50e2fcd99b2b7990d2a67b94892f72)
90
+ - change(tokens): added also rem space values [`aedbbdd`](https://github.com/eea/volto-eea-design-system/commit/aedbbddaf7f8be88ed2f8a2b8c21b60752896c53)
91
+ - Autobuild of docusaurus docs [`d69345a`](https://github.com/eea/volto-eea-design-system/commit/d69345a59a24773e20ca1bf918d5bf4f7f944540)
92
+ - change(tokens): rename gap to space and added em spaces [`719efc4`](https://github.com/eea/volto-eea-design-system/commit/719efc44070ef87f049a92e4da96bb111e9fc8ff)
93
+ - Autobuild of docusaurus docs [`54e0dc6`](https://github.com/eea/volto-eea-design-system/commit/54e0dc611160dd51032d319d306cb146ca00ff0c)
94
+ - feat(utilities): add file with basic utilities classes #173 [`855185f`](https://github.com/eea/volto-eea-design-system/commit/855185ff22c77efb75cc5c7850d181254b4c4927)
95
+ - change(utilities): values need important rule [`96150d9`](https://github.com/eea/volto-eea-design-system/commit/96150d9a22cb6be6f338f1e9d052cbd65e3602fc)
96
+ - feat(utilities): add file and basic utilities [`05c88b2`](https://github.com/eea/volto-eea-design-system/commit/05c88b294a49590e3fb355fb6e113f5020442915)
97
+ - refactor(item): add classes for size, set default to tile and add controls for grouped items [`d5a0405`](https://github.com/eea/volto-eea-design-system/commit/d5a0405abba4e5f5d36f899dc9e47f43a96d5e49)
98
+ - Autobuild of docusaurus docs [`7a06b17`](https://github.com/eea/volto-eea-design-system/commit/7a06b17662dd88994ff57de61c4625c25246c569)
99
+ - change(tokens): name spacing tokens gaps and added missing values up to 80px as documented [`9fbd912`](https://github.com/eea/volto-eea-design-system/commit/9fbd912a6f027150149d82678f88885a939120b0)
100
+ - Autobuild of docusaurus docs [`ec928f0`](https://github.com/eea/volto-eea-design-system/commit/ec928f0140004067b64928dd11bfb6c6a6c1079c)
101
+ - change(tokens): updated sizes with 4-8-16px increments [`1f53d65`](https://github.com/eea/volto-eea-design-system/commit/1f53d655df2b24053a5d331c56dfd14bd3602dfd)
102
+ - Autobuild of docusaurus docs [`b2869d1`](https://github.com/eea/volto-eea-design-system/commit/b2869d1658e827bb769a5b836f038e1cc8d8d737)
103
+ - Autobuild of docusaurus docs [`ff2c701`](https://github.com/eea/volto-eea-design-system/commit/ff2c701af58ee173625939120842d3d7e81bb6dc)
104
+ - refactor(quote): Rename sourceInfo to extra info [`76c2b40`](https://github.com/eea/volto-eea-design-system/commit/76c2b400de4814fe79f303bfd2a82842c848231c)
105
+ - Autobuild of docusaurus docs [`4c8e263`](https://github.com/eea/volto-eea-design-system/commit/4c8e26348399aa07515f5ef8a8a85860b5557d18)
106
+ - fix(table): Set responsive breakpoint to @tabletBreakpoint [`067e018`](https://github.com/eea/volto-eea-design-system/commit/067e01842030bfa5639e2a55cb8af5047bb2996f)
107
+ - Autobuild of docusaurus docs [`8e4f3e7`](https://github.com/eea/volto-eea-design-system/commit/8e4f3e79f038d88b0990ca07948e540097baab50)
108
+ - feature(tokens): added borders, z-index, shadows tokens #171 [`74c1788`](https://github.com/eea/volto-eea-design-system/commit/74c178837cedc7ee9fc55effde1096dc03245574)
109
+ - Autobuild of docusaurus docs [`9f5ddf7`](https://github.com/eea/volto-eea-design-system/commit/9f5ddf7994e3cfcdf83a0c74847eaa2910bf88cb)
110
+ - feature(tokens): added initial color design tokens #169 [`da3eae0`](https://github.com/eea/volto-eea-design-system/commit/da3eae05d07783aa5eadaed5d508ee3be8acc47d)
111
+ - Autobuild of docusaurus docs [`ee2c916`](https://github.com/eea/volto-eea-design-system/commit/ee2c91616719d092b72dec8d8fd8ffb5c57819b9)
112
+ - refactor(item): adjust margins to match figma designs [`6334581`](https://github.com/eea/volto-eea-design-system/commit/6334581b336a2f486e85199f371126beea47b92f)
113
+ - fix(item): remove image width css from item.less [`7b21cb2`](https://github.com/eea/volto-eea-design-system/commit/7b21cb2d5ddf6a6f72646f47fd268a0bd7af757d)
114
+ - refactor(item): import item.less in theme definitions [`c516374`](https://github.com/eea/volto-eea-design-system/commit/c51637480192dbece828616010174648ac865e2e)
115
+ - change(tokens): updated z-index tokens with negative values [`404efe4`](https://github.com/eea/volto-eea-design-system/commit/404efe4244d67276b435e60a1d7a69aaa90e3d8a)
116
+ - fix(tokens): hsla function for shadows [`b8e5d37`](https://github.com/eea/volto-eea-design-system/commit/b8e5d37a6e88321b1e2daf995b407c4ddd6e866e)
117
+ - docs(homepage): copy editing [`ee37d6f`](https://github.com/eea/volto-eea-design-system/commit/ee37d6f1d282b973af744f4305c0eb94c0993113)
118
+ - fix(tokens): remove css var from less file [`a9c4224`](https://github.com/eea/volto-eea-design-system/commit/a9c422476b412287713a6b475406615c3aed2aca)
119
+ - refactor(tokens): remove conditional border radius [`f0fe5ad`](https://github.com/eea/volto-eea-design-system/commit/f0fe5ada7b74e9c87623dd2b2774283dd89b9a58)
120
+ - refactor(tokens): add borders, shadows, shapes and z-index tokens [`7069106`](https://github.com/eea/volto-eea-design-system/commit/7069106c2b0ada9cdbad63249b4ada7fde72e05f)
121
+ - refactor(tocens): add color design tokens [`13bb165`](https://github.com/eea/volto-eea-design-system/commit/13bb165e103a25aadb9da6414773dc0d35081d88)
122
+ - Autobuild of docusaurus docs [`f5eeb6b`](https://github.com/eea/volto-eea-design-system/commit/f5eeb6b6746683d5bada81132d20b7cf2a618e6a)
123
+ - refactor(item): WIP replacing unstackable with row [`e3a44de`](https://github.com/eea/volto-eea-design-system/commit/e3a44de4b2dd26667e80e0d131c55b08f3c527d9)
124
+ - feat(ItemwithIcons): Initial Item group with icons, new item variation [`7f4ea47`](https://github.com/eea/volto-eea-design-system/commit/7f4ea476264856845a07cd24be6ec86ccd21ed8d)
125
+ - docs(homepage): adding design system homepage with links for upcoming sections [`c9a9685`](https://github.com/eea/volto-eea-design-system/commit/c9a968508acff74d1182e68cf049046dafd564c5)
126
+ - perf(carousel): added slick library [`ca9be51`](https://github.com/eea/volto-eea-design-system/commit/ca9be5125efa864bc30a0178274d744c5b2bc500)
127
+ - refactor(carousel): remove title from story and color on card hover [`12a1d7c`](https://github.com/eea/volto-eea-design-system/commit/12a1d7c3bd5e7ba6edf4eb20a2d7a6f8f22955f9)
128
+ - fix(carousel):add storybook controls descriptions [`269a603`](https://github.com/eea/volto-eea-design-system/commit/269a60383ed1e54fc57e26d4eed6b37d1da32236)
129
+ - feat(Carousel): create carousel for cards [`2b0d737`](https://github.com/eea/volto-eea-design-system/commit/2b0d73798b4fcbf2897d7a8167d9b4d3b3374fb2)
130
+ - refactor(Label):style changes based on label importance class [`ce4d5d1`](https://github.com/eea/volto-eea-design-system/commit/ce4d5d1a5bf1b1183242a253e37c509d61f82b8c)
131
+ - refactor(Label):add corner,ribbon & basic label stories and styles [`e2bbbb9`](https://github.com/eea/volto-eea-design-system/commit/e2bbbb947113a59127f91b86917ef0edbf36ab16)
132
+
7
133
  #### [0.3.1](https://github.com/eea/volto-eea-design-system/compare/0.3.0...0.3.1)
8
134
 
135
+ > 19 May 2022
136
+
137
+ - Release [`#168`](https://github.com/eea/volto-eea-design-system/pull/168)
9
138
  - Autobuild of docusaurus docs [`25a2a6d`](https://github.com/eea/volto-eea-design-system/commit/25a2a6d78db7a3e2313925bb40a6d58355bbfeb7)
10
139
  - fix(input,segment): toggle inputs and padding fixes within Volto sidebar forms [`de030d6`](https://github.com/eea/volto-eea-design-system/commit/de030d617325a8f9d028a5c1615faa160fcdd763)
11
140
  - Autobuild of docusaurus docs [`1150d98`](https://github.com/eea/volto-eea-design-system/commit/1150d98ee28d16017013209e53228324d5c510e5)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.3.1",
3
+ "version": "0.4.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",
@@ -21,7 +21,8 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@eeacms/volto-corsproxy": "*",
24
- "remixicon": "2.5.0"
24
+ "remixicon": "2.5.0",
25
+ "react-slick": "^0.28.1"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@cypress/code-coverage": "^3.9.5",
package/src/semantic.less CHANGED
@@ -127,8 +127,12 @@
127
127
  // @import '~semantic-ui-less/definitions/views/feed';
128
128
  //}
129
129
 
130
+ // & {
131
+ // @import '~semantic-ui-less/definitions/views/item';
132
+ // }
133
+
130
134
  & {
131
- @import '~semantic-ui-less/definitions/views/item';
135
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/definitions/views/item';
132
136
  }
133
137
 
134
138
  & {
@@ -256,3 +260,19 @@
256
260
  & {
257
261
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/relatedContent';
258
262
  }
263
+
264
+ & {
265
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/downloadLabeledIcon';
266
+ }
267
+
268
+ & {
269
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/newTabLabeledIcon';
270
+ }
271
+
272
+ & {
273
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/labeledIconGroup';
274
+ }
275
+
276
+ & {
277
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/languageLabeledIcon';
278
+ }
@@ -1,5 +1,9 @@
1
1
  import React from 'react';
2
- import { Card, Image, Grid, Container } from 'semantic-ui-react';
2
+ import { Card, Image, Grid, Container, Icon, Button } from 'semantic-ui-react';
3
+ import Slider from 'react-slick';
4
+
5
+ const tabletBreakpoint = 835;
6
+ const mobileBreakpoint = 480;
3
7
 
4
8
  export default {
5
9
  title: 'Components/Card/Default',
@@ -21,6 +25,15 @@ export default {
21
25
  defaultValue: { summary: 'null' },
22
26
  },
23
27
  },
28
+ cards: {
29
+ description: 'cards data',
30
+ table: {
31
+ type: {
32
+ summary: 'object',
33
+ },
34
+ defaultValue: { summary: '' },
35
+ },
36
+ },
24
37
  },
25
38
  };
26
39
 
@@ -105,12 +118,16 @@ Default.argTypes = {
105
118
  },
106
119
  },
107
120
  };
121
+ Default.parameters = {
122
+ controls: { exclude: ['cards'] },
123
+ hideNoControlsWarning: true,
124
+ };
108
125
 
109
126
  const GridTemplate = (args) => (
110
127
  <Container>
111
128
  <Grid>
112
- {args.cards.map((card) => (
113
- <Grid.Column mobile={12} tablet={6} computer={4}>
129
+ {args.cards.map((card, index) => (
130
+ <Grid.Column mobile={12} tablet={6} computer={4} key={index}>
114
131
  <Card fluid={card.fluid} className={args.class}>
115
132
  {card.hasImage && (
116
133
  <Image src={card.imgUrl} wrapped ui={false} alt="card image" />
@@ -181,8 +198,8 @@ CardGrid.argTypes = {
181
198
  const FluidGridTemplate = (args) => (
182
199
  <Container>
183
200
  <div className="fluid-card-row">
184
- {args.cards.map((card) => (
185
- <Card fluid={card.fluid} className={args.class}>
201
+ {args.cards.map((card, index) => (
202
+ <Card fluid={card.fluid} className={args.class} key={index}>
186
203
  {card.hasImage && (
187
204
  <Image src={card.imgUrl} wrapped ui={false} alt="card image" />
188
205
  )}
@@ -247,3 +264,166 @@ CardGrid.argTypes = {
247
264
  },
248
265
  },
249
266
  };
267
+
268
+ const Arrows = (props) => {
269
+ const { slider = {} } = props;
270
+
271
+ return (
272
+ <>
273
+ <Button
274
+ aria-label="Previous slide"
275
+ className="slider-arrow prev-arrow"
276
+ icon
277
+ onClick={() => {
278
+ if (slider.current) {
279
+ slider.current.slickPrev();
280
+ }
281
+ }}
282
+ >
283
+ <Icon className="ri-arrow-left-s-line" />
284
+ </Button>
285
+ <Button
286
+ aria-label="Next slide"
287
+ className="slider-arrow next-arrow"
288
+ icon
289
+ onClick={() => {
290
+ if (slider.current) {
291
+ slider.current.slickNext();
292
+ }
293
+ }}
294
+ >
295
+ <Icon className="ri-arrow-right-s-line" />
296
+ </Button>
297
+ </>
298
+ );
299
+ };
300
+
301
+ function CarouselCardsContent({ settings, cards, ...rest }) {
302
+ const slider = React.useRef(null);
303
+ return (
304
+ <div className="cards-carousel">
305
+ <Slider {...settings} ref={slider}>
306
+ {cards.map((card, index) => (
307
+ <Card fluid={card.fluid} key={index} className={rest.class}>
308
+ {card.hasImage && (
309
+ <Image src={card.imgUrl} wrapped ui={false} alt="card image" />
310
+ )}
311
+ <Card.Content>
312
+ <Card.Meta>{card.meta}</Card.Meta>
313
+ {/* <Card.Header>{card.title}</Card.Header> */}
314
+ <Card.Description>{card.description}</Card.Description>
315
+ </Card.Content>
316
+ {/* {card.links !== null &&
317
+ card.links.map((item, index) => (
318
+ <Card.Content extra key={index}>
319
+ <a href="/#">{item.linkName}</a>
320
+ </Card.Content>
321
+ ))} */}
322
+ </Card>
323
+ ))}
324
+ </Slider>
325
+ <Arrows slider={slider} />
326
+ </div>
327
+ );
328
+ }
329
+
330
+ const CarouselCardsTemplate = (args) => (
331
+ <Container>
332
+ <CarouselCardsContent {...args}></CarouselCardsContent>
333
+ </Container>
334
+ );
335
+
336
+ export const CarouselCards = CarouselCardsTemplate.bind({});
337
+ CarouselCards.args = {
338
+ title: 'Our news',
339
+ class: null,
340
+ settings: {
341
+ dots: true,
342
+ infinite: true,
343
+ slidesToShow: 4,
344
+ slidesToScroll: 1,
345
+ responsive: [
346
+ {
347
+ breakpoint: tabletBreakpoint,
348
+ settings: {
349
+ slidesToShow: 3,
350
+ slidesToScroll: 1,
351
+ },
352
+ },
353
+ {
354
+ breakpoint: mobileBreakpoint,
355
+ settings: {
356
+ slidesToShow: 1,
357
+ slidesToScroll: 1,
358
+ },
359
+ },
360
+ ],
361
+ },
362
+ cards: [
363
+ {
364
+ meta: 'March 20, 2022.',
365
+ imgUrl:
366
+ 'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
367
+ description:
368
+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
369
+ hasImage: true,
370
+ fluid: true,
371
+ links: [{ linkName: 'Link 1' }],
372
+ },
373
+ {
374
+ title: 'Lorem Ipsum',
375
+ meta: 'March 20, 2022.',
376
+ imgUrl:
377
+ 'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
378
+ description:
379
+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
380
+ hasImage: true,
381
+ fluid: true,
382
+ links: [{ linkName: 'Link 1' }],
383
+ },
384
+ {
385
+ title: 'Lorem Ipsum',
386
+ meta: 'March 20, 2022.',
387
+ imgUrl:
388
+ 'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
389
+ description:
390
+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
391
+ hasImage: true,
392
+ fluid: true,
393
+ links: [{ linkName: 'Link 1' }],
394
+ },
395
+ {
396
+ title: 'Lorem Ipsum',
397
+ meta: 'March 20, 2022.',
398
+ imgUrl:
399
+ 'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
400
+ description:
401
+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
402
+ hasImage: true,
403
+ fluid: true,
404
+ links: [{ linkName: 'Link 1' }],
405
+ },
406
+ {
407
+ title: 'Lorem Ipsum',
408
+ meta: 'March 20, 2022.',
409
+ imgUrl:
410
+ 'https://www.eea.europa.eu/media/pictures/european-environment-agency-building-with/image_large',
411
+ description:
412
+ 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Non ',
413
+ hasImage: true,
414
+ fluid: true,
415
+ links: [{ linkName: 'Link 1' }],
416
+ },
417
+ ],
418
+ };
419
+ CarouselCards.argTypes = {
420
+ settings: {
421
+ description: 'carousel slider settings',
422
+ table: {
423
+ type: {
424
+ summary: 'object',
425
+ },
426
+ defaultValue: { summary: '' },
427
+ },
428
+ },
429
+ };
@@ -0,0 +1,54 @@
1
+ import React from 'react';
2
+ import { Icon, Popup } from 'semantic-ui-react';
3
+
4
+ function DownloadLabeledIcon({ children, ...rest }) {
5
+ return (
6
+ <div className="eea download labeled icon">
7
+ <Popup
8
+ className="download-popup"
9
+ trigger={rest.trigger}
10
+ content={children}
11
+ basic
12
+ on="click"
13
+ position="bottom center"
14
+ />
15
+ </div>
16
+ );
17
+ }
18
+
19
+ const Label = ({ children, ...rest }) => {
20
+ return <div className="label">{children}</div>;
21
+ };
22
+
23
+ const IconItem = ({ children, ...rest }) => {
24
+ return (
25
+ <div className="icon wrapper">
26
+ <Icon className={rest.icon} />
27
+ </div>
28
+ );
29
+ };
30
+
31
+ const Dropdown = ({ children, ...rest }) => {
32
+ return (
33
+ <div className="dropdown">
34
+ <div className="link wrapper">
35
+ <ul>
36
+ {rest.links !== null &&
37
+ rest.links.map((item, index) => (
38
+ <li key={index}>
39
+ <a href={item.href}>
40
+ {item.linkName} <Icon className={rest.downloadIcon} />
41
+ </a>
42
+ </li>
43
+ ))}
44
+ </ul>
45
+ </div>
46
+ </div>
47
+ );
48
+ };
49
+
50
+ DownloadLabeledIcon.Label = Label;
51
+ DownloadLabeledIcon.Icon = IconItem;
52
+ DownloadLabeledIcon.Dropdown = Dropdown;
53
+
54
+ export default DownloadLabeledIcon;
@@ -0,0 +1,68 @@
1
+ import React from 'react';
2
+ import DownloadLabeledIcon from './DownloadLabeledIcon';
3
+ import LabeledIconGroup from '../LabeledIconGroup/LabeledIconGroup';
4
+
5
+ export default {
6
+ title: 'Components/Labeled Icons/Download',
7
+ component: DownloadLabeledIcon,
8
+ argTypes: {
9
+ label: {
10
+ description: 'Download Label',
11
+ table: {
12
+ defaultValue: { summary: '""' },
13
+ type: { summary: 'string' },
14
+ },
15
+ },
16
+ icon: {
17
+ description: 'Download Icon',
18
+ table: {
19
+ defaultValue: { summary: '""' },
20
+ type: { summary: 'string' },
21
+ },
22
+ },
23
+ downloadIcon: {
24
+ description: 'Download option Icon',
25
+ table: {
26
+ defaultValue: { summary: '""' },
27
+ type: { summary: 'string' },
28
+ },
29
+ },
30
+ links: {
31
+ description: 'array of list content',
32
+ table: {
33
+ type: { summary: 'object' },
34
+ defaultValue: { summary: ' "" ' },
35
+ },
36
+ },
37
+ },
38
+ };
39
+
40
+ const DefaultTemplate = (args) => (
41
+ <LabeledIconGroup>
42
+ <DownloadLabeledIcon
43
+ {...args}
44
+ trigger={
45
+ <div>
46
+ <DownloadLabeledIcon.Icon {...args}>
47
+ {args.icon}
48
+ </DownloadLabeledIcon.Icon>
49
+ <DownloadLabeledIcon.Label>{args.label}</DownloadLabeledIcon.Label>
50
+ </div>
51
+ }
52
+ >
53
+ <DownloadLabeledIcon.Dropdown {...args}></DownloadLabeledIcon.Dropdown>
54
+ </DownloadLabeledIcon>
55
+ </LabeledIconGroup>
56
+ );
57
+
58
+ export const Default = DefaultTemplate.bind({});
59
+ Default.args = {
60
+ label: 'Download',
61
+ icon: 'ri-download-2-fill',
62
+ downloadIcon: 'ri-download-2-fill',
63
+ links: [
64
+ { linkName: 'PDF', href: '/#' },
65
+ { linkName: 'SVG', href: '/#' },
66
+ { linkName: 'PNG', href: '/#' },
67
+ ],
68
+ };
@@ -0,0 +1,67 @@
1
+ import React from 'react';
2
+ import NewTabLabeledIcon from '../NewTabLabeledIcon/NewTabLabeledIcon';
3
+ import DownloadLabeledIcon from '../DownloadLabeledIcon/DownloadLabeledIcon';
4
+ import LanguageLabeledIcon from '../LanguageLabeledIcon/LanguageLabeledIcon';
5
+
6
+ function LabeledIconGroup({ children, ...rest }) {
7
+ return (
8
+ <div className="eea labeled icon group" {...rest}>
9
+ {children}
10
+ </div>
11
+ );
12
+ }
13
+
14
+ LabeledIconGroup.Download = ({ children, ...rest }) => {
15
+ return (
16
+ <div className="group wrapper">
17
+ <DownloadLabeledIcon
18
+ {...rest}
19
+ trigger={
20
+ <div>
21
+ <DownloadLabeledIcon.Icon {...rest}>
22
+ {rest.icon}
23
+ </DownloadLabeledIcon.Icon>
24
+ <DownloadLabeledIcon.Label>{rest.label}</DownloadLabeledIcon.Label>
25
+ </div>
26
+ }
27
+ >
28
+ <DownloadLabeledIcon.Dropdown {...rest}></DownloadLabeledIcon.Dropdown>
29
+ </DownloadLabeledIcon>
30
+ </div>
31
+ );
32
+ };
33
+
34
+ LabeledIconGroup.NewTab = ({ children, ...rest }) => {
35
+ return (
36
+ <div className="group wrapper">
37
+ <NewTabLabeledIcon {...rest}>
38
+ <NewTabLabeledIcon.Icon {...rest}>{rest.icon}</NewTabLabeledIcon.Icon>
39
+ <NewTabLabeledIcon.Label>{rest.label}</NewTabLabeledIcon.Label>
40
+ </NewTabLabeledIcon>
41
+ </div>
42
+ );
43
+ };
44
+
45
+ LabeledIconGroup.Language = ({ children, ...rest }) => {
46
+ return (
47
+ <div className="group wrapper">
48
+ <LanguageLabeledIcon
49
+ {...rest}
50
+ trigger={
51
+ <div>
52
+ <LanguageLabeledIcon.Icon
53
+ icon={rest.icon}
54
+ ></LanguageLabeledIcon.Icon>
55
+ <LanguageLabeledIcon.Label>{rest.label}</LanguageLabeledIcon.Label>
56
+ </div>
57
+ }
58
+ >
59
+ <LanguageLabeledIcon.Dropdown
60
+ items={rest.items}
61
+ ></LanguageLabeledIcon.Dropdown>
62
+ </LanguageLabeledIcon>
63
+ </div>
64
+ );
65
+ };
66
+
67
+ export default LabeledIconGroup;