@eeacms/volto-eea-design-system 1.0.6 → 1.11.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 +119 -1
- package/package.json +1 -1
- package/src/semantic.less +0 -4
- package/src/ui/Accordion/Accordion.stories.js +52 -123
- package/src/ui/Breadcrumbs/Breadcrumb.stories.jsx +6 -34
- package/src/ui/Breadcrumbs/Breadcrumbs.jsx +24 -24
- package/src/ui/Card/Card.stories.jsx +159 -13
- package/src/ui/Comment/Comment.stories.js +25 -19
- package/src/ui/ContextNavigation/ContextNavigation.stories.jsx +18 -4
- package/src/ui/DownloadLabeledIcon/DownloadLabeledIcon.stories.jsx +3 -2
- package/src/ui/Footer/Contact.jsx +31 -6
- package/src/ui/Footer/Footer.stories.js +76 -25
- package/src/ui/Form/Button/Button.stories.jsx +1 -1
- package/src/ui/Header/Header.jsx +22 -6
- package/src/ui/Header/Header.stories.js +112 -210
- package/src/ui/Header/HeaderMenuPopUp.js +72 -63
- package/src/ui/Header/HeaderSearchPopUp.js +2 -1
- package/src/ui/InpageNavigation/InpageNavigation.jsx +4 -4
- package/src/ui/InpageNavigation/InpageNavigation.stories.jsx +5 -4
- package/src/ui/Label/Label.stories.js +3 -1
- package/src/ui/LabeledIconGroup/LabeledIconGroup.jsx +5 -4
- package/src/ui/LanguageLabeledIcon/LanguageLabeledIcon.stories.jsx +3 -2
- package/src/ui/Modal/Modal.stories.js +9 -2
- package/src/ui/NewTabLabeledIcon/NewTabLabeledIcon.jsx +9 -3
- package/src/ui/Tag/Tag.stories.jsx +1 -1
- package/src/ui/Video/Video.jsx +44 -0
- package/src/ui/Video/Video.stories.jsx +53 -0
- package/src/ui/index.js +2 -2
- package/theme/theme.config +0 -3
- package/theme/themes/eea/assets/logo/eionet.svg +80 -11
- package/theme/themes/eea/assets/video/demo-track-el.vtt +11 -0
- package/theme/themes/eea/assets/video/demo-track-en.vtt +11 -0
- package/theme/themes/eea/assets/video/demo-track-ro.vtt +11 -0
- package/theme/themes/eea/collections/breadcrumb.overrides +11 -0
- package/theme/themes/eea/collections/table.variables +1 -1
- package/theme/themes/eea/elements/button.overrides +26 -7
- package/theme/themes/eea/elements/button.variables +1 -0
- package/theme/themes/eea/elements/image.overrides +6 -0
- package/theme/themes/eea/elements/image.variables +1 -0
- package/theme/themes/eea/elements/label.overrides +12 -8
- package/theme/themes/eea/extras/contextNavigation.less +4 -2
- package/theme/themes/eea/extras/contextNavigation.variables +1 -1
- package/theme/themes/eea/extras/downloadLabeledIcon.less +31 -22
- package/theme/themes/eea/extras/downloadLabeledIcon.variables +16 -14
- package/theme/themes/eea/extras/header.less +8 -2
- package/theme/themes/eea/extras/header.variables +4 -1
- package/theme/themes/eea/extras/inpageNavigation.less +2 -0
- package/theme/themes/eea/extras/inpageNavigation.variables +2 -0
- package/theme/themes/eea/extras/labeledIconGroup.variables +3 -3
- package/theme/themes/eea/extras/languageLabeledIcon.less +28 -20
- package/theme/themes/eea/extras/languageLabeledIcon.variables +18 -16
- package/theme/themes/eea/extras/newTabLabeledIcon.less +21 -15
- package/theme/themes/eea/extras/newTabLabeledIcon.variables +7 -5
- package/theme/themes/eea/globals/mixins.less +8 -0
- package/theme/themes/eea/globals/site.overrides +4 -1
- package/theme/themes/eea/globals/utilities.less +47 -0
- package/theme/themes/eea/modules/accordion.overrides +7 -0
- package/theme/themes/eea/modules/checkbox.overrides +6 -0
- package/theme/themes/eea/modules/checkbox.variables +3 -3
- package/theme/themes/eea/modules/modal.overrides +13 -0
- package/theme/themes/eea/modules/modal.variables +5 -1
- package/theme/themes/eea/views/card.overrides +20 -8
- package/theme/themes/eea/views/card.variables +6 -2
- package/theme/themes/eea/views/item.overrides +2 -2
- package/src/ui/Card/AvatarGrid/AvatarGrid.jsx +0 -61
- package/src/ui/Card/AvatarGrid/AvatarGrid.stories.jsx +0 -89
- package/src/ui/Card/RoundedCard.stories.jsx +0 -122
- package/theme/themes/eea/extras/avatar.variables +0 -28
- package/theme/themes/eea/extras/avatarGrid.less +0 -43
- package/theme/themes/eea/extras/avatarGrid.variables +0 -16
package/CHANGELOG.md
CHANGED
|
@@ -4,10 +4,128 @@ 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.11.0](https://github.com/eea/volto-eea-design-system/compare/1.0.7...1.11.0) - 11 May 2023
|
|
8
|
+
|
|
9
|
+
#### :boom: Breaking Change
|
|
10
|
+
|
|
11
|
+
- breaking(table): cell text align is again inherited instead of center [David Ichim - [`46602c5`](https://github.com/eea/volto-eea-design-system/commit/46602c59bfebd0eae8ede2dcc345efdc635e35f6)]
|
|
12
|
+
|
|
13
|
+
#### :rocket: New Features
|
|
14
|
+
|
|
15
|
+
- feat(docusaurus): Add Video block to docusaurus #343 from eea/feature-video-block [ichim-david - [`f692fd4`](https://github.com/eea/volto-eea-design-system/commit/f692fd42a8c0171db3e86a95c504b7a6f8b89b30)]
|
|
16
|
+
- feat(cards): added image position and title and description max lines also to storybook #335 from eea/rounded-card-control [ichim-david - [`9cba23b`](https://github.com/eea/volto-eea-design-system/commit/9cba23bef8d74cdd5cf3505b9a9f3d51b68eedcf)]
|
|
17
|
+
- feat(accordion): Add control to change the heading tag of the title within storybook #337 from eea/accordion-refactor [ichim-david - [`3bf19bd`](https://github.com/eea/volto-eea-design-system/commit/3bf19bdc4053d9e5b8c69226d55b358632d82c5e)]
|
|
18
|
+
- feat(cards): add teaser card image alignment styles refs #250422 #338 from eea/teaser-image-alignment [ichim-david - [`1e5677c`](https://github.com/eea/volto-eea-design-system/commit/1e5677c8d40aeb5013097219d45954b869974e90)]
|
|
19
|
+
- feat(storybook): Add Video block to storybook based on existing Volto EEA add-on #331 from eea/feature-video-block [ichim-david - [`1b539c8`](https://github.com/eea/volto-eea-design-system/commit/1b539c8ccfab459fa7682cca7f75dd6aaaabca24)]
|
|
20
|
+
- feat(teaser): add object-fit and object-position classnames [nileshgulia1 - [`68c9567`](https://github.com/eea/volto-eea-design-system/commit/68c9567179e4e67136a9fd53758d1f6fb43f005c)]
|
|
21
|
+
- feat(video) initial component work in progress [Antonis Tarantilis - [`1c99c91`](https://github.com/eea/volto-eea-design-system/commit/1c99c914161827528bc3a6bf9f8c13bef4ba5817)]
|
|
22
|
+
- feat(video): add video block story [Antonis Tarantilis - [`e1addf5`](https://github.com/eea/volto-eea-design-system/commit/e1addf5df1219af4d6663310342ffb8587404e12)]
|
|
23
|
+
|
|
24
|
+
#### :bug: Bug Fixes
|
|
25
|
+
|
|
26
|
+
- fix(listing): link size for image block by setting display to block [David Ichim - [`5afa665`](https://github.com/eea/volto-eea-design-system/commit/5afa6651ce35aaef0b09da71f13dd90b90ac5052)]
|
|
27
|
+
- fix(footer): Check contact url if is internal #250343 #342 from eea/footer_url_internal_check [ichim-david - [`d753c21`](https://github.com/eea/volto-eea-design-system/commit/d753c2150ec211ec5f4838afc6dd53f89c8a3b7b)]
|
|
28
|
+
- fix: fill links in Storybook #250343 [andreiggr - [`e09995b`](https://github.com/eea/volto-eea-design-system/commit/e09995b1488176017d4e9c04ee89b84a8145d0c4)]
|
|
29
|
+
- fix(card): overrides file missing { and cleaned duplicated css code [David Ichim - [`0979032`](https://github.com/eea/volto-eea-design-system/commit/0979032827318d3af186e05d23bf781094d8e82f)]
|
|
30
|
+
- fix(cards): title from next line becoming visible with large titles [David Ichim - [`c196f1a`](https://github.com/eea/volto-eea-design-system/commit/c196f1a35ee06a0bec1d7b2e33d02f0744fe57fd)]
|
|
31
|
+
- fix(cards): use css variables [nileshgulia1 - [`71abd31`](https://github.com/eea/volto-eea-design-system/commit/71abd31ece6c24d85d32698fea448a9493475452)]
|
|
32
|
+
- fix(video): fix lint track error [Antonis Tarantilis - [`6249f9e`](https://github.com/eea/volto-eea-design-system/commit/6249f9e93b21c15883974ccbfa980749e342e4ab)]
|
|
33
|
+
- fix(video): fix tracks after the file loader module update [Antonis Tarantilis - [`a3a3614`](https://github.com/eea/volto-eea-design-system/commit/a3a3614e19ce25e65d8f51e70c47d6c634a15a0e)]
|
|
34
|
+
|
|
35
|
+
#### :nail_care: Enhancements
|
|
36
|
+
|
|
37
|
+
- change(cards, utilities): modified name of object fit and position classes to have hyphens [David Ichim - [`5fb39ab`](https://github.com/eea/volto-eea-design-system/commit/5fb39ab2601d36b92cf896a7de66025ba56928a6)]
|
|
38
|
+
- change(search): added possibility to configure button url in search popup #345 from eea/searchpopup_update [ichim-david - [`112e97e`](https://github.com/eea/volto-eea-design-system/commit/112e97e2139cd5bed5be23cd1bcc80065ae2ce09)]
|
|
39
|
+
- refactor(card): restore designs & add max lines controls [Antonis Tarantilis - [`e7d6e39`](https://github.com/eea/volto-eea-design-system/commit/e7d6e395dfc4110a361d27cd25af4a950a283aa4)]
|
|
40
|
+
- refactor(card): delete rounded card code and stories [Antonis Tarantilis - [`5177697`](https://github.com/eea/volto-eea-design-system/commit/5177697eac60b9876160b5f2741f0389e4bf8196)]
|
|
41
|
+
- refactor(card): add image controls [Antonis Tarantilis - [`5c1c0b8`](https://github.com/eea/volto-eea-design-system/commit/5c1c0b8081fdc5f944fcf495e17379a9526e25d0)]
|
|
42
|
+
- change(cards): set object fit and position on any ui images [David Ichim - [`1185305`](https://github.com/eea/volto-eea-design-system/commit/118530573145055ddb11e717ce2ba80270586c66)]
|
|
43
|
+
- refactor(accordion): update structure [Antonis Tarantilis - [`fc9847f`](https://github.com/eea/volto-eea-design-system/commit/fc9847fdc11576a73770caee0f141992652bb001)]
|
|
44
|
+
- refactor(card): add rounded control for cards [Antonis Tarantilis - [`df2e6a0`](https://github.com/eea/volto-eea-design-system/commit/df2e6a0bea91ee87a522a0c0eb3ea16d2eb61f0a)]
|
|
45
|
+
|
|
46
|
+
#### :house: Documentation changes
|
|
47
|
+
|
|
48
|
+
- docs(video): docusaurus page for video component [Dora Anastasiou - [`6e5b51e`](https://github.com/eea/volto-eea-design-system/commit/6e5b51e8fed58c4abc37b6d4a86a89256c9422a2)]
|
|
49
|
+
|
|
50
|
+
#### :hammer_and_wrench: Others
|
|
51
|
+
|
|
52
|
+
- Release 1.11.0 [alin - [`acc76ea`](https://github.com/eea/volto-eea-design-system/commit/acc76ea7b81e31a8d83179cb0af48482a8f84709)]
|
|
53
|
+
- bump package version [David Ichim - [`3dfa3f0`](https://github.com/eea/volto-eea-design-system/commit/3dfa3f088a4c012ac1bb36f3ef08fac9079f3f81)]
|
|
54
|
+
- added possibility to configure button url [Zoltan Szabo - [`91cd277`](https://github.com/eea/volto-eea-design-system/commit/91cd27764f646429f168c09361b370632e900c80)]
|
|
55
|
+
- Update Footer.stories.js [ichim-david - [`4001536`](https://github.com/eea/volto-eea-design-system/commit/400153652a87b141c5f081fa443127f40d8b2d61)]
|
|
56
|
+
- no need for title in link [andreiggr - [`b01c361`](https://github.com/eea/volto-eea-design-system/commit/b01c361c7e346d485214d69f33a7fc22180f5b5c)]
|
|
57
|
+
- Check contact url if is internal [andreiggr - [`5996d4e`](https://github.com/eea/volto-eea-design-system/commit/5996d4efc26aa00f2644f658252d6b817f06c177)]
|
|
58
|
+
- (feat): Make menu aware of pathname #151573 #336 from eea/ionut-menu [ichim-david - [`d4a2a96`](https://github.com/eea/volto-eea-design-system/commit/d4a2a96807bf9ea11ffaf08f2abeaa629c3dc876)]
|
|
59
|
+
- remove default acitve index [Dobricean Ioan Dorian - [`57235c6`](https://github.com/eea/volto-eea-design-system/commit/57235c6ad03730c23fe97f01c20a0a955cdcb732)]
|
|
60
|
+
- add default active index back [Dobricean Ioan Dorian - [`5020467`](https://github.com/eea/volto-eea-design-system/commit/5020467ed33612804626cf51dd5f2140d914757c)]
|
|
61
|
+
- remove console [Dobricean Ioan Dorian - [`7320e3a`](https://github.com/eea/volto-eea-design-system/commit/7320e3a3e2c1c8190480570edec3a57180c4eb4f)]
|
|
62
|
+
- ismultilingual [Dobricean Ioan Dorian - [`367c07c`](https://github.com/eea/volto-eea-design-system/commit/367c07c500cb8db3fb5941513ecba5eb357bc6af)]
|
|
63
|
+
- activeIndex [Dobricean Ioan Dorian - [`ba9d4b3`](https://github.com/eea/volto-eea-design-system/commit/ba9d4b3b1bf0ace3adc2b4dd55c09c509293138f)]
|
|
64
|
+
- Back to dev [Alin Voinea - [`98d0031`](https://github.com/eea/volto-eea-design-system/commit/98d00316740230cc3b4b95e031e0c1987effde76)]
|
|
65
|
+
- removed babel override, loader change should be done in storybook config [David Ichim - [`d63233e`](https://github.com/eea/volto-eea-design-system/commit/d63233ef24eb47a1f4ab68b454895886a0728fc7)]
|
|
66
|
+
### [1.0.7](https://github.com/eea/volto-eea-design-system/compare/1.0.6...1.0.7) - 10 April 2023
|
|
67
|
+
|
|
68
|
+
#### :rocket: New Features
|
|
69
|
+
|
|
70
|
+
- feat(storybook): components keyboard and screen reader optimization #324 from eea/design-system-accessibility [ichim-david - [`85faff7`](https://github.com/eea/volto-eea-design-system/commit/85faff73025442a012f079b6734ef868862cc44f)]
|
|
71
|
+
|
|
72
|
+
#### :bug: Bug Fixes
|
|
73
|
+
|
|
74
|
+
- fix(cards): focus outline for header needed for the overflow hidden solution with max title lines [David Ichim - [`849a7a8`](https://github.com/eea/volto-eea-design-system/commit/849a7a8e3cf801bf0a4d7e9189b603ea15219fcc)]
|
|
75
|
+
- fix(header): external url in header now takes you to the correct url #330 from eea/header-external-url-fix [ichim-david - [`086c61d`](https://github.com/eea/volto-eea-design-system/commit/086c61d683a7ac67dea221aa39ffe4cef05a9a68)]
|
|
76
|
+
- fix(item): flex variant on edit when inside blockchooser #333 from eea/fix-item-csss [ichim-david - [`65b9099`](https://github.com/eea/volto-eea-design-system/commit/65b9099779180feeb7d10384928bb0a3224b947d)]
|
|
77
|
+
- fix(item): use child selector instead of descendent as it interferes with blockchooser refs #157040 [nileshgulia1 - [`ad4ca37`](https://github.com/eea/volto-eea-design-system/commit/ad4ca3725c595c8dbeaff69f730928313c1779ec)]
|
|
78
|
+
- fix: github autoformat [andreiggr - [`be97749`](https://github.com/eea/volto-eea-design-system/commit/be9774981032759b3284a6fb93490a204a817c7a)]
|
|
79
|
+
- fix: dont run isInternalURL twice [Andrei Grigore - [`a48984e`](https://github.com/eea/volto-eea-design-system/commit/a48984e0cb224944aed3846447c416511d080779)]
|
|
80
|
+
- fix: check if client method change [andreiggr - [`7c53b83`](https://github.com/eea/volto-eea-design-system/commit/7c53b83a54e4e7d3c5329c46de03cdf7aabedf13)]
|
|
81
|
+
- fix: external url in header [andreiggr - [`9e3aea6`](https://github.com/eea/volto-eea-design-system/commit/9e3aea649ca6f9446324d5d351cdfcde08332f84)]
|
|
82
|
+
- fix(tag): fix in args [Antonis Tarantilis - [`18eaaf4`](https://github.com/eea/volto-eea-design-system/commit/18eaaf41fa80a3e175341a2ddd7376b8281fee7d)]
|
|
83
|
+
|
|
84
|
+
#### :nail_care: Enhancements
|
|
85
|
+
|
|
86
|
+
- change(card): simplified headerLineHeightOffset used as margin top for cards header [David Ichim - [`ca61105`](https://github.com/eea/volto-eea-design-system/commit/ca61105f2f39e6880ce545ba4d54f3568e7b87e2)]
|
|
87
|
+
- change(storybook): removed links for Label and Comment that we implement without a link [David Ichim - [`ee0bfdf`](https://github.com/eea/volto-eea-design-system/commit/ee0bfdf3aee3e4b6b6eba6dabd7817a37ace48ae)]
|
|
88
|
+
- change(logos): updated eionet logo used in the site footer #318 from eea/footer-logo-update [ichim-david - [`70671d0`](https://github.com/eea/volto-eea-design-system/commit/70671d03bbc228e3013e382cb51e6764a83b01a8)]
|
|
89
|
+
- refactor(label): add href attribute to links [Antonis Tarantilis - [`05f664d`](https://github.com/eea/volto-eea-design-system/commit/05f664dde27f1e0580ab7f32a7934e4d8e85c918)]
|
|
90
|
+
- change(breadcrumbs,mega-menu): better screen readers support, see links instead of groups #309 from eea/firefox-accessibility-tab-issues [ichim-david - [`d6b0b4a`](https://github.com/eea/volto-eea-design-system/commit/d6b0b4adba8f04799491025fb41ac97e875bcce0)]
|
|
91
|
+
- change(mega-menu): added code to align countries left column subtitle with the right column [David Ichim - [`1aa33dd`](https://github.com/eea/volto-eea-design-system/commit/1aa33dd7ac7154a91515eef688f276d664d5d7f3)]
|
|
92
|
+
- change(mega-menu): sub-title padding tweaks for better spacing normalization [David Ichim - [`e08668d`](https://github.com/eea/volto-eea-design-system/commit/e08668dd9fd948e57628e5582e7a4a7f08d96451)]
|
|
93
|
+
- change(breadcrumbs): fixed sizing of breadcrumbs list items [David Ichim - [`1761e98`](https://github.com/eea/volto-eea-design-system/commit/1761e984a6ffebbcca0c7b88128a01235fc6b903)]
|
|
94
|
+
- change(inpageNavigation): story improvements [Antonis Tarantilis - [`ade63c6`](https://github.com/eea/volto-eea-design-system/commit/ade63c6f0b08c62318d31c54568cca29d0f106bc)]
|
|
95
|
+
- refactor(inpageNavigation): restructure as a button [Antonis Tarantilis - [`48e22ac`](https://github.com/eea/volto-eea-design-system/commit/48e22ac0ee521f87497822a0ec9d627829d849d5)]
|
|
96
|
+
- change(breadcrumbs): label modification for better screen reader output [David Ichim - [`c967bef`](https://github.com/eea/volto-eea-design-system/commit/c967bef63ac6f622f5936235dd5590831a674d15)]
|
|
97
|
+
- change(checkbox): toggle hover color correction [Antonis Tarantilis - [`4f4d0df`](https://github.com/eea/volto-eea-design-system/commit/4f4d0df7292fdccb89f83feface51639bd5d6559)]
|
|
98
|
+
- refactor(checkbox): accessibility fix [Antonis Tarantilis - [`3b3047f`](https://github.com/eea/volto-eea-design-system/commit/3b3047f6a6bdd9e9ad858e6a7ca0c6f6b404e605)]
|
|
99
|
+
- refactor(newTabLabeledIcon): accessibility fix [Antonis Tarantilis - [`211e40a`](https://github.com/eea/volto-eea-design-system/commit/211e40aa47d1f0de91b1d949770c452336b80248)]
|
|
100
|
+
- refactor(languageLabeledIcon): accessibility fix [Antonis Tarantilis - [`61edd9e`](https://github.com/eea/volto-eea-design-system/commit/61edd9e1022a8954930db30c262290680974d880)]
|
|
101
|
+
- refactor(downloadLabeledIcon): accessibility fix [Antonis Tarantilis - [`df3935d`](https://github.com/eea/volto-eea-design-system/commit/df3935dc5836298768316399ba36927325541fef)]
|
|
102
|
+
- refactor(labeledIconGroup): group updates for all labeled icons [Antonis Tarantilis - [`a679d9d`](https://github.com/eea/volto-eea-design-system/commit/a679d9d05b804f516fdeed449eba1e74e227818c)]
|
|
103
|
+
- change(ContextNavigation): accessibility updates, not restructuring of the volto component [Antonis Tarantilis - [`03fe83d`](https://github.com/eea/volto-eea-design-system/commit/03fe83dce70c6931c543b93c71e3cd8e16f99ec8)]
|
|
104
|
+
- refactor(comment): accessibility fixes and text button update [Antonis Tarantilis - [`dad8cb6`](https://github.com/eea/volto-eea-design-system/commit/dad8cb67a0092b01b50197c94691ed8a5d00a128)]
|
|
105
|
+
- change(card): add links to teaser titles [Antonis Tarantilis - [`cc64c74`](https://github.com/eea/volto-eea-design-system/commit/cc64c74a69539af287f424abdf96226635284303)]
|
|
106
|
+
- refactor(card): fix header outline not showing issue [Antonis Tarantilis - [`48fc2e2`](https://github.com/eea/volto-eea-design-system/commit/48fc2e2328ff184402e15edbaf1ed2507e771a14)]
|
|
107
|
+
- refactor(modal): restructure close icon as button [Antonis Tarantilis - [`f1b836e`](https://github.com/eea/volto-eea-design-system/commit/f1b836e3071c220235eb327ee7ef67edac4d467d)]
|
|
108
|
+
- change(logo): update eionet svg [Antonis Tarantilis - [`3c87fc7`](https://github.com/eea/volto-eea-design-system/commit/3c87fc750a3dc376205a643eefced410a41b22c6)]
|
|
109
|
+
- refactor(megaMenu): clean up function after test [Antonis Tarantilis - [`883eb73`](https://github.com/eea/volto-eea-design-system/commit/883eb73cbc3db6a1fadd0200118eafdce91b7aab)]
|
|
110
|
+
- refactor(megaMenu): align menu items with demo site for better testing [Antonis Tarantilis - [`82a5c84`](https://github.com/eea/volto-eea-design-system/commit/82a5c84cfde81dd8243f3f9a2d1fcaa8ac4b1463)]
|
|
111
|
+
- refactor(breadcrumbs): updates on structure and story for accessibility [Antonis Tarantilis - [`770c8c0`](https://github.com/eea/volto-eea-design-system/commit/770c8c0bce88c5d9301ab0293a8e4865849bfeb2)]
|
|
112
|
+
- refactor(megaMenu): Restructure Topics and Countries lists [Antonis Tarantilis - [`d816e7a`](https://github.com/eea/volto-eea-design-system/commit/d816e7ab9cdf2f202ab994201c16241cfb26c33a)]
|
|
113
|
+
- change(mega-menu): use lists for navigation, enhance voice over support for better accessibility [David Ichim - [`d13137f`](https://github.com/eea/volto-eea-design-system/commit/d13137f024d6357514b85f184d219eb81dd585f2)]
|
|
114
|
+
- refactor(header): firefox accessibility errors fix [Antonis Tarantilis - [`c7d35b9`](https://github.com/eea/volto-eea-design-system/commit/c7d35b92b90940b466ea016dbbb3f1c6dfa0c3ab)]
|
|
115
|
+
|
|
116
|
+
#### :house: Internal changes
|
|
117
|
+
|
|
118
|
+
- style(megaMenu): remove comments and unused properties [Antonis Tarantilis - [`fa5f8f8`](https://github.com/eea/volto-eea-design-system/commit/fa5f8f878421d879026aacd86e5390112b8852a1)]
|
|
119
|
+
|
|
120
|
+
#### :house: Documentation changes
|
|
121
|
+
|
|
122
|
+
- docs(footer): logo update [Manthos Matzios - [`ad982d6`](https://github.com/eea/volto-eea-design-system/commit/ad982d63423442bc292cd7553ad3163b33b337bb)]
|
|
123
|
+
|
|
7
124
|
### [1.0.6](https://github.com/eea/volto-eea-design-system/compare/1.0.5...1.0.6) - 29 March 2023
|
|
8
125
|
|
|
9
126
|
#### :rocket: New Features
|
|
10
127
|
|
|
128
|
+
- feat: add viewport-(width/height) less functions and fixed banner image url #329 from eea/develop [ichim-david - [`e8e70bd`](https://github.com/eea/volto-eea-design-system/commit/e8e70bdc81f4f301a9dce370867a873e55563048)]
|
|
11
129
|
- feat: add viewport-(width/height) less functions [Miu Razvan - [`68300a3`](https://github.com/eea/volto-eea-design-system/commit/68300a3c34e66954c7ef3a6e52baa37431fbfa9e)]
|
|
12
130
|
|
|
13
131
|
#### :nail_care: Enhancements
|
|
@@ -102,7 +220,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
102
220
|
- fixed accordion selector typo [David Ichim - [`f4cabc8`](https://github.com/eea/volto-eea-design-system/commit/f4cabc8f2222cf587af9e04b0ea196799b84202f)]
|
|
103
221
|
### [1.0.1](https://github.com/eea/volto-eea-design-system/compare/1.0.0...1.0.1) - 13 March 2023
|
|
104
222
|
|
|
105
|
-
|
|
223
|
+
## [1.0.0](https://github.com/eea/volto-eea-design-system/compare/1.0.0-beta.6...1.0.0) - 13 March 2023
|
|
106
224
|
|
|
107
225
|
#### :bug: Bug Fixes
|
|
108
226
|
|
package/package.json
CHANGED
package/src/semantic.less
CHANGED
|
@@ -249,10 +249,6 @@
|
|
|
249
249
|
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/tagList';
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
& {
|
|
253
|
-
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/avatarGrid';
|
|
254
|
-
}
|
|
255
|
-
|
|
256
252
|
& {
|
|
257
253
|
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/keyContent';
|
|
258
254
|
}
|
|
@@ -15,85 +15,28 @@ export default {
|
|
|
15
15
|
defaultValue: 'primary',
|
|
16
16
|
options: ['default', 'primary', 'secondary', 'tertiary'],
|
|
17
17
|
control: { type: 'select' },
|
|
18
|
-
description: 'call to action variation',
|
|
19
18
|
table: {
|
|
20
19
|
defaultValue: { summary: 'primary' },
|
|
21
20
|
type: { summary: 'string' },
|
|
22
21
|
},
|
|
23
22
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
defaultValue: {
|
|
31
|
-
summary: '""',
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
toggle2: {
|
|
36
|
-
description: 'Text of the accordion toggler',
|
|
37
|
-
table: {
|
|
38
|
-
type: {
|
|
39
|
-
summary: 'string',
|
|
40
|
-
},
|
|
41
|
-
defaultValue: {
|
|
42
|
-
summary: '""',
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
},
|
|
46
|
-
toggle3: {
|
|
47
|
-
description: 'Text of the accordion toggler',
|
|
48
|
-
table: {
|
|
49
|
-
type: {
|
|
50
|
-
summary: 'string',
|
|
51
|
-
},
|
|
52
|
-
defaultValue: {
|
|
53
|
-
summary: '""',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
content1: {
|
|
58
|
-
description: 'Text of the hidden content',
|
|
59
|
-
table: {
|
|
60
|
-
type: {
|
|
61
|
-
summary: 'array',
|
|
62
|
-
},
|
|
63
|
-
defaultValue: {
|
|
64
|
-
summary: '""',
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
content2: {
|
|
69
|
-
description: 'Text of the hidden content',
|
|
70
|
-
table: {
|
|
71
|
-
type: {
|
|
72
|
-
summary: 'array',
|
|
73
|
-
},
|
|
74
|
-
defaultValue: {
|
|
75
|
-
summary: '""',
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
content3: {
|
|
80
|
-
description: 'Text of the hidden content',
|
|
23
|
+
title_size: {
|
|
24
|
+
name: 'Title size',
|
|
25
|
+
defaultValue: 'primary',
|
|
26
|
+
options: ['no value', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'],
|
|
27
|
+
control: { type: 'select' },
|
|
81
28
|
table: {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
defaultValue: {
|
|
86
|
-
summary: '""',
|
|
87
|
-
},
|
|
29
|
+
defaultValue: { summary: 'primary' },
|
|
30
|
+
type: { summary: 'string' },
|
|
88
31
|
},
|
|
89
32
|
},
|
|
90
33
|
},
|
|
91
34
|
};
|
|
92
35
|
|
|
93
36
|
function AccordionContainer({ ...args }) {
|
|
94
|
-
const [activeIndex, setActiveIndex] = useState();
|
|
37
|
+
const [activeIndex, setActiveIndex] = useState([0]);
|
|
95
38
|
|
|
96
|
-
const
|
|
39
|
+
const handleClick = (e, titleProps) => {
|
|
97
40
|
const { index } = titleProps;
|
|
98
41
|
const newIndex = activeIndex === index ? -1 : index;
|
|
99
42
|
|
|
@@ -102,70 +45,56 @@ function AccordionContainer({ ...args }) {
|
|
|
102
45
|
|
|
103
46
|
return (
|
|
104
47
|
<Container>
|
|
105
|
-
<
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
{args.content2.length > 0 &&
|
|
132
|
-
args.content2.map((item, index) => <p key={index}>{item}</p>)}
|
|
133
|
-
</Accordion.Content>
|
|
134
|
-
|
|
135
|
-
<Accordion.Title
|
|
136
|
-
active={activeIndex === 2}
|
|
137
|
-
index={2}
|
|
138
|
-
onClick={toggleOpenAccordion}
|
|
139
|
-
as="button"
|
|
140
|
-
>
|
|
141
|
-
{args.toggle3}
|
|
142
|
-
<Icon className="ri-arrow-down-s-line" />
|
|
143
|
-
</Accordion.Title>
|
|
144
|
-
<Accordion.Content active={activeIndex === 2}>
|
|
145
|
-
{args.content3.length > 0 &&
|
|
146
|
-
args.content3.map((item, index) => <p key={index}>{item}</p>)}
|
|
147
|
-
</Accordion.Content>
|
|
148
|
-
</Accordion>
|
|
48
|
+
<div className="accordion-block">
|
|
49
|
+
{args.panels.map((panel, index) => {
|
|
50
|
+
return (
|
|
51
|
+
<Accordion className={args.variant} key={index}>
|
|
52
|
+
<Accordion.Title
|
|
53
|
+
index={index}
|
|
54
|
+
tabIndex={0}
|
|
55
|
+
active={activeIndex === index}
|
|
56
|
+
onClick={handleClick}
|
|
57
|
+
as={args.title_size === 'no value' ? '' : args.title_size}
|
|
58
|
+
onKeyDown={(e) => {
|
|
59
|
+
if (e.nativeEvent.keyCode === 13) {
|
|
60
|
+
handleClick(e, { index });
|
|
61
|
+
}
|
|
62
|
+
}}
|
|
63
|
+
>
|
|
64
|
+
<span>{panel.title}</span>
|
|
65
|
+
<Icon className="ri-arrow-down-s-line" />
|
|
66
|
+
</Accordion.Title>
|
|
67
|
+
<Accordion.Content active={activeIndex === index}>
|
|
68
|
+
{panel.content}
|
|
69
|
+
</Accordion.Content>
|
|
70
|
+
</Accordion>
|
|
71
|
+
);
|
|
72
|
+
})}
|
|
73
|
+
</div>
|
|
149
74
|
</Container>
|
|
150
75
|
);
|
|
151
76
|
}
|
|
152
77
|
|
|
153
78
|
const Template = (args) => <AccordionContainer {...args}></AccordionContainer>;
|
|
154
|
-
|
|
155
79
|
export const Default = Template.bind({});
|
|
156
80
|
Default.args = {
|
|
157
81
|
variant: 'secondary',
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
82
|
+
title_size: 'no value',
|
|
83
|
+
panels: [
|
|
84
|
+
{
|
|
85
|
+
title: 'Water and marine environment',
|
|
86
|
+
content:
|
|
87
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Urna nisi mauris enim felis eget id sed tristique. At laoreet ligula pretium, pulvinar. Accumsan egestas ultricies erat sed. Eget non quis libero, odio elementum lectus lectus ullamcorper elit. In quam pulvinar amet, habitasse mi lorem nunc. Sed sed elementum est purus elementum eget. Elementum tortor at nulla nunc, tempor rhoncus, bibendum. Massa mauris, mauris, vel elementum adipiscing.',
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: 'Resource efficiency and waste',
|
|
91
|
+
content:
|
|
92
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Urna nisi mauris enim felis eget id sed tristique. At laoreet ligula pretium, pulvinar. Accumsan egestas ultricies erat sed. Eget non quis libero, odio elementum lectus lectus ullamcorper elit. In quam pulvinar amet, habitasse mi lorem nunc. Sed sed elementum est purus elementum eget. Elementum tortor at nulla nunc, tempor rhoncus, bibendum. Massa mauris, mauris, vel elementum adipiscing.',
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
title: 'Air pollution',
|
|
96
|
+
content:
|
|
97
|
+
'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Urna nisi mauris enim felis eget id sed tristique. At laoreet ligula pretium, pulvinar. Accumsan egestas ultricies erat sed. Eget non quis libero, odio elementum lectus lectus ullamcorper elit. In quam pulvinar amet, habitasse mi lorem nunc. Sed sed elementum est purus elementum eget. Elementum tortor at nulla nunc, tempor rhoncus, bibendum. Massa mauris, mauris, vel elementum adipiscing.',
|
|
98
|
+
},
|
|
170
99
|
],
|
|
171
100
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Breadcrumb
|
|
3
|
-
import
|
|
4
|
-
import { Link } from 'react-router-dom';
|
|
2
|
+
import { Breadcrumb } from 'semantic-ui-react';
|
|
3
|
+
import { BreadcrumbsComponent } from './Breadcrumbs';
|
|
5
4
|
|
|
6
5
|
export default {
|
|
7
6
|
title: 'Components/Breadcrumb',
|
|
@@ -37,43 +36,16 @@ export default {
|
|
|
37
36
|
},
|
|
38
37
|
};
|
|
39
38
|
|
|
40
|
-
//const Template = (args) => <Breadcrumb {...args}></Breadcrumb>;
|
|
41
|
-
|
|
42
39
|
const Template = (args) => (
|
|
43
|
-
<
|
|
44
|
-
<Breadcrumb size="tiny">
|
|
45
|
-
<Breadcrumb.Section key="home" href={args.root}>
|
|
46
|
-
<Image src={homeSVG} alt="home" />
|
|
47
|
-
</Breadcrumb.Section>
|
|
48
|
-
<Breadcrumb.Divider>
|
|
49
|
-
<Icon className="ri-arrow-right-s-line"></Icon>
|
|
50
|
-
</Breadcrumb.Divider>
|
|
51
|
-
{args.sections.map((section, index, sections) => [
|
|
52
|
-
index !== 0 && (
|
|
53
|
-
<Breadcrumb.Divider key={index}>
|
|
54
|
-
<Icon className="ri-arrow-right-s-line"></Icon>
|
|
55
|
-
</Breadcrumb.Divider>
|
|
56
|
-
),
|
|
57
|
-
index < sections.length - 1 ? (
|
|
58
|
-
<Link key={section.href} to={section.href} className="section">
|
|
59
|
-
{section.content}{' '}
|
|
60
|
-
</Link>
|
|
61
|
-
) : (
|
|
62
|
-
<Breadcrumb.Section key={section.key} active>
|
|
63
|
-
{section.content}{' '}
|
|
64
|
-
</Breadcrumb.Section>
|
|
65
|
-
),
|
|
66
|
-
])}
|
|
67
|
-
</Breadcrumb>
|
|
68
|
-
</Container>
|
|
40
|
+
<BreadcrumbsComponent root={args.root} sections={args.sections} />
|
|
69
41
|
);
|
|
70
42
|
|
|
71
43
|
export const Default = Template.bind({});
|
|
72
44
|
Default.args = {
|
|
73
45
|
root: 'https://www.eea.europa.eu/',
|
|
74
46
|
sections: [
|
|
75
|
-
{ key: 'Section 1',
|
|
76
|
-
{ key: 'Section 2',
|
|
77
|
-
{ key: 'Section 3',
|
|
47
|
+
{ key: 'Section 1', title: 'Section 1', href: '/#' },
|
|
48
|
+
{ key: 'Section 2', title: 'Section 2', href: '/#' },
|
|
49
|
+
{ key: 'Section 3', title: 'Section 3', href: '/#' },
|
|
78
50
|
],
|
|
79
51
|
};
|
|
@@ -17,32 +17,32 @@ const Breadcrumbs = ({
|
|
|
17
17
|
size = 'tiny',
|
|
18
18
|
}) => {
|
|
19
19
|
return sections.length > 0 ? (
|
|
20
|
-
<Segment
|
|
21
|
-
role="navigation"
|
|
22
|
-
aria-label={'breadcrumbs'}
|
|
23
|
-
className="breadcrumbs"
|
|
24
|
-
attached
|
|
25
|
-
vertical
|
|
26
|
-
>
|
|
20
|
+
<Segment className="breadcrumbs" attached vertical>
|
|
27
21
|
<Container>
|
|
28
|
-
<Breadcrumb size={size}>
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<Breadcrumb.Divider key={`divider-${item.href}`}>
|
|
34
|
-
<Icon className={icon}></Icon>
|
|
35
|
-
</Breadcrumb.Divider>,
|
|
36
|
-
index < items.length - 1 ? (
|
|
37
|
-
<Link key={item.key} to={item.href} className="section">
|
|
38
|
-
{item.title}
|
|
22
|
+
<Breadcrumb size={size} as="nav" aria-label={'Breadcrumbs'}>
|
|
23
|
+
<ol aria-label="Breadcrumbs navigation">
|
|
24
|
+
<li>
|
|
25
|
+
<Link to={root || '/'} className="section" title={'Home'}>
|
|
26
|
+
<Image src={homeIcon} alt="" />
|
|
39
27
|
</Link>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
28
|
+
</li>
|
|
29
|
+
{sections.map((item, index, items) => [
|
|
30
|
+
<li key={index}>
|
|
31
|
+
<Breadcrumb.Divider key={`divider-${item.href}`}>
|
|
32
|
+
<Icon className={icon}></Icon>
|
|
33
|
+
</Breadcrumb.Divider>
|
|
34
|
+
{index < items.length - 1 ? (
|
|
35
|
+
<Link key={item.key} to={item.href} className="section">
|
|
36
|
+
{item.title}
|
|
37
|
+
</Link>
|
|
38
|
+
) : (
|
|
39
|
+
<Breadcrumb.Section key={item.key} active>
|
|
40
|
+
{item.title}
|
|
41
|
+
</Breadcrumb.Section>
|
|
42
|
+
)}
|
|
43
|
+
</li>,
|
|
44
|
+
])}
|
|
45
|
+
</ol>
|
|
46
46
|
</Breadcrumb>
|
|
47
47
|
</Container>
|
|
48
48
|
</Segment>
|