@eeacms/volto-eea-design-system 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +119 -1
- package/package.json +1 -1
- package/src/semantic.less +1 -5
- package/src/ui/Button/Button.stories.jsx +56 -36
- package/src/ui/{AvatarGrid → Card/AvatarGrid}/AvatarGrid.jsx +14 -14
- package/src/ui/{AvatarGrid → Card/AvatarGrid}/AvatarGrid.stories.jsx +24 -21
- package/src/ui/Card/Card.stories.jsx +249 -0
- package/src/ui/Card/PublicationCard.stories.jsx +46 -0
- package/src/ui/Card/RelatedContent/RelatedContent.jsx +76 -0
- package/src/ui/Card/RelatedContent/RelatedContent.stories.jsx +313 -0
- package/src/ui/Card/RoundedCard.stories.jsx +96 -0
- package/src/ui/KeyContent/KeyContent.jsx +9 -3
- package/src/ui/KeyContent/KeyContent.stories.jsx +1 -22
- package/src/ui/Loader/Loader.stories.jsx +21 -3
- package/src/ui/Testimonial/Testimonial.jsx +9 -8
- package/src/ui/Testimonial/Testimonial.stories.jsx +14 -11
- package/src/ui/Timeline/Timeline.jsx +1 -1
- package/src/ui/Timeline/Timeline.stories.jsx +12 -12
- package/src/ui/index.js +2 -4
- package/theme/theme.config +2 -4
- package/theme/themes/eea/collections/breadcrumb.overrides +27 -19
- package/theme/themes/eea/collections/breadcrumb.variables +3 -3
- package/theme/themes/eea/collections/form.overrides +116 -0
- package/theme/themes/eea/elements/button.overrides +100 -120
- package/theme/themes/eea/elements/button.variables +20 -6
- package/theme/themes/eea/elements/label.overrides +12 -3
- package/theme/themes/eea/elements/label.variables +1 -1
- package/theme/themes/eea/elements/list.overrides +10 -0
- package/theme/themes/eea/elements/list.variables +3 -1
- package/theme/themes/eea/elements/loader.overrides +197 -0
- package/theme/themes/eea/elements/loader.variables +12 -1
- package/theme/themes/eea/elements/segment.variables +2 -2
- package/theme/themes/eea/extras/avatarGrid.less +22 -24
- package/theme/themes/eea/extras/avatarGrid.variables +4 -8
- package/theme/themes/eea/extras/banner.less +32 -41
- package/theme/themes/eea/extras/blockquote.less +6 -3
- package/theme/themes/eea/extras/footer.less +239 -241
- package/theme/themes/eea/extras/keyContent.less +18 -16
- package/theme/themes/eea/extras/keyContent.variables +13 -7
- package/theme/themes/eea/extras/main.overrides +9 -0
- package/theme/themes/eea/extras/main.variables +3 -0
- package/theme/themes/eea/extras/pullquote.less +3 -3
- package/theme/themes/eea/extras/relatedContent.less +27 -0
- package/theme/themes/eea/extras/relatedContent.variables +3 -0
- package/theme/themes/eea/extras/tagList.less +0 -1
- package/theme/themes/eea/globals/site.variables +7 -7
- package/theme/themes/eea/modules/modal.overrides +4 -0
- package/theme/themes/eea/modules/progress.variables +1 -1
- package/theme/themes/eea/modules/tab.overrides +9 -1
- package/theme/themes/eea/modules/tab.variables +2 -1
- package/theme/themes/eea/views/card.overrides +242 -25
- package/theme/themes/eea/views/card.variables +92 -8
- package/src/ui/Avatar/Avatar.jsx +0 -32
- package/src/ui/Avatar/Avatar.stories.jsx +0 -61
- package/src/ui/PublicationCard/PublicationCard.jsx +0 -27
- package/src/ui/PublicationCard/PublicationCard.stories.jsx +0 -69
- package/src/ui/RelatedContent/RelatedContent.jsx +0 -90
- package/src/ui/RelatedContent/RelatedContent.stories.jsx +0 -80
- package/theme/themes/eea/extras/avatar.less +0 -97
- package/theme/themes/eea/extras/avatar.variables +0 -34
- package/theme/themes/eea/extras/publicationCard.less +0 -62
- package/theme/themes/eea/extras/publicationCard.variables +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -4,12 +4,130 @@ 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.2.2](https://github.com/eea/volto-eea-design-system/compare/0.2.1...0.2.2)
|
|
8
|
+
|
|
9
|
+
- fix(volto): various fixes for issues presented in ticket #147629 [`#150`](https://github.com/eea/volto-eea-design-system/pull/150)
|
|
10
|
+
- [R2] Card [updated for R3] [`#152`](https://github.com/eea/volto-eea-design-system/pull/152)
|
|
11
|
+
- [R2] Ordered list [`#144`](https://github.com/eea/volto-eea-design-system/pull/144)
|
|
12
|
+
- change(button): modified buttons to use default semantic ui button classification [`#149`](https://github.com/eea/volto-eea-design-system/pull/149)
|
|
13
|
+
- refactor(keyContent): update based on figma design [`#126`](https://github.com/eea/volto-eea-design-system/pull/126)
|
|
14
|
+
- feat(Toggle): create toggle story in forms [`#145`](https://github.com/eea/volto-eea-design-system/pull/145)
|
|
15
|
+
- refactor(loader): Cleanup the default loader [`#146`](https://github.com/eea/volto-eea-design-system/pull/146)
|
|
16
|
+
- [R2] Timeline [`#147`](https://github.com/eea/volto-eea-design-system/pull/147)
|
|
17
|
+
- Autobuild of docusaurus docs [`06e7103`](https://github.com/eea/volto-eea-design-system/commit/06e7103c0973bebc4112c3d8a1e52a4d1932518b)
|
|
18
|
+
- Autobuild of docusaurus docs [`e182730`](https://github.com/eea/volto-eea-design-system/commit/e182730119c2eb206908cd0c158a2af7fed7655c)
|
|
19
|
+
- Autobuild of docusaurus docs [`9e5172a`](https://github.com/eea/volto-eea-design-system/commit/9e5172ac2bb36766077aeb4f15f95f3c6ca6e98d)
|
|
20
|
+
- refactor(card): import image for rounded card [`ca5a47e`](https://github.com/eea/volto-eea-design-system/commit/ca5a47ea2cd713336c7c8ecdebebbdacd681282f)
|
|
21
|
+
- refactor(card): update rounded card image path [`8db3a85`](https://github.com/eea/volto-eea-design-system/commit/8db3a85a45e8e05a3fe86ab824e7550d437222c3)
|
|
22
|
+
- fix(dropdown): being hidden because of third party css [`7d353df`](https://github.com/eea/volto-eea-design-system/commit/7d353dfd65e93d08a3c8584adeeebea50bf7efe8)
|
|
23
|
+
- change(breadcrumb): brought back pastanaga overrides to breadcrumbs [`bca1c93`](https://github.com/eea/volto-eea-design-system/commit/bca1c939c1d49dab1d4b8e72c0999d78383fd643)
|
|
24
|
+
- fix(form): added back overrides from Pastanaga theme [`a3f7ff8`](https://github.com/eea/volto-eea-design-system/commit/a3f7ff810cdeb55b009c2dadc6753d01bbd10d8c)
|
|
25
|
+
- Autobuild of docusaurus docs [`2415149`](https://github.com/eea/volto-eea-design-system/commit/2415149325ee94345ef0711aeb4b34660e7250cb)
|
|
26
|
+
- change(progress,label): color accessibility fixes #151 [`09cf6e3`](https://github.com/eea/volto-eea-design-system/commit/09cf6e34ed5a57bfbfc8fe95787591387776df86)
|
|
27
|
+
- refactor(card): remove story [`afc5f79`](https://github.com/eea/volto-eea-design-system/commit/afc5f7903a0049563355e3c9292fdd89fa532740)
|
|
28
|
+
- refactor(card): use the rounded class for avatar grid [`8c000f3`](https://github.com/eea/volto-eea-design-system/commit/8c000f3c37103e0068b6d6554783da8188603442)
|
|
29
|
+
- change(button): bumped z-index of sidenav expand button [`445ed8a`](https://github.com/eea/volto-eea-design-system/commit/445ed8a8ede4e458814f380bee0600dbb8ff42f6)
|
|
30
|
+
- fix(modal): overflow hidden as clearfix of last child from modal [`b4923f5`](https://github.com/eea/volto-eea-design-system/commit/b4923f5165a0a7e8d2dd33ea4c35f9f951372909)
|
|
31
|
+
- fix(addForm): add min height to add form and fixed block chooser overflow [`ca4415d`](https://github.com/eea/volto-eea-design-system/commit/ca4415d49b973378894ec9270501beafbefff776)
|
|
32
|
+
- refactor(card): add card grid fluid story with no columns [`f38251c`](https://github.com/eea/volto-eea-design-system/commit/f38251ca3fa04a9b586468ead44bbfe8ae110fbb)
|
|
33
|
+
- refactor(card): remove stories [`0deb0ca`](https://github.com/eea/volto-eea-design-system/commit/0deb0cab6d7fd73957b149325960c266c33cdc6f)
|
|
34
|
+
- Autobuild of docusaurus docs [`41ad3f7`](https://github.com/eea/volto-eea-design-system/commit/41ad3f72174a3d8abc7f0257a70b58a9ef943fe8)
|
|
35
|
+
- change(button): show only labeled variant for buttons with icons [`bf49944`](https://github.com/eea/volto-eea-design-system/commit/bf499446dc02e4be8d6452a3e0cba5797b8a005e)
|
|
36
|
+
- refactor(card) Update rounded card class [`140b587`](https://github.com/eea/volto-eea-design-system/commit/140b58746673a864d7ea218c4f8a02dc70207af4)
|
|
37
|
+
- refactor(card): Rename variables from avatar to rounded [`be01316`](https://github.com/eea/volto-eea-design-system/commit/be0131631cf8e303f4077fe93b6685fd6b34bf46)
|
|
38
|
+
- fixed js syntax error from previous commit [`37dc1f5`](https://github.com/eea/volto-eea-design-system/commit/37dc1f5c1506040c1f155afdea76c4ed739ddda2)
|
|
39
|
+
- fix(button): labeled class needs to be placed after left or right keyword [`53d1204`](https://github.com/eea/volto-eea-design-system/commit/53d1204fe52665fe1023747da359d3100d45e58f)
|
|
40
|
+
- change(button): simplified storybook naming and examples [`9a7df4f`](https://github.com/eea/volto-eea-design-system/commit/9a7df4f46c24a234dd8bb290336ac8e7d5c7422b)
|
|
41
|
+
- change(button): text button now has an underline with a focus border like other buttons [`cdd9043`](https://github.com/eea/volto-eea-design-system/commit/cdd90436bf0c4f8acaca8bf27afef672fb0f3a89)
|
|
42
|
+
- refactor(card):tertiary variation minor story update [`87b8dca`](https://github.com/eea/volto-eea-design-system/commit/87b8dca0b8ef6c6f0fbf1ea6bc71b7b8b6ee9205)
|
|
43
|
+
- refactor(card):delete publication card variables & overrides files [`6be8a03`](https://github.com/eea/volto-eea-design-system/commit/6be8a037118762cf2280fbe44ba097a0cb7a79e0)
|
|
44
|
+
- refactor(card): move avatarGrid & relatedContent to Card folder [`1959d52`](https://github.com/eea/volto-eea-design-system/commit/1959d521de222c95aa13d9b3db249d133f879ccd)
|
|
45
|
+
- refactor(card):delete publication card folder & story [`68bf773`](https://github.com/eea/volto-eea-design-system/commit/68bf77306d710651bb2177d429f42b8efc127db2)
|
|
46
|
+
- refactor(card):organize controls and minor bug fixes [`f3f6e35`](https://github.com/eea/volto-eea-design-system/commit/f3f6e35df077e348ea1e0c2e5c5bd73d4af5aef9)
|
|
47
|
+
- refactor(card):use jsx extension [`413d328`](https://github.com/eea/volto-eea-design-system/commit/413d3284869a35f39f886df7862db6a52e8cc18e)
|
|
48
|
+
- refactor(card):delete primary and secondary card stories [`1f95d22`](https://github.com/eea/volto-eea-design-system/commit/1f95d227a026ecc34b29cc3e4938c3d13906cfd8)
|
|
49
|
+
- refactor(card): add card class control [`68c91a9`](https://github.com/eea/volto-eea-design-system/commit/68c91a9bf7e78874e12e868a0c466f12715a0698)
|
|
50
|
+
- refactor(card): update card variation grids path [`756589c`](https://github.com/eea/volto-eea-design-system/commit/756589cff5d3607994d6cf092cb5dd0e36d51903)
|
|
51
|
+
- refactor(card): minor fixes [`3a880d7`](https://github.com/eea/volto-eea-design-system/commit/3a880d7d14c89137b2a33342aed1a31c1b2b3939)
|
|
52
|
+
- refactor(List):change styles to match with the tags lists are rendered [`2673890`](https://github.com/eea/volto-eea-design-system/commit/2673890449579a0421d8ac1c89ad4c5e850322d7)
|
|
53
|
+
- refactor(List):render ordered list with ol,li tags [`87813c1`](https://github.com/eea/volto-eea-design-system/commit/87813c1a942ce498f89b51fe79a59b117afd28b0)
|
|
54
|
+
- refactor(List):render description list with dl,dt,dd tags [`ec669a7`](https://github.com/eea/volto-eea-design-system/commit/ec669a74da08f7a82bb4a1a0a2d752b6ee5ba4bb)
|
|
55
|
+
- refactor(List):render default list with dl & dt tags [`ece2280`](https://github.com/eea/volto-eea-design-system/commit/ece2280eb06481b3fd42e7a1ffec5c71c08e736f)
|
|
56
|
+
- refactor(card): prettier fixes [`e10e3d6`](https://github.com/eea/volto-eea-design-system/commit/e10e3d610a313c4e1995676130e2677f0ebab070)
|
|
57
|
+
- refactor(card): add styles for card variations [`7407bd3`](https://github.com/eea/volto-eea-design-system/commit/7407bd30e722f2d7b1a9d75a8c7cf155bf1c4996)
|
|
58
|
+
- refactor(card): add card variations [`e16d05b`](https://github.com/eea/volto-eea-design-system/commit/e16d05b4afa678b9089987b42a8257323a78093f)
|
|
59
|
+
- lint fixes [`a68866d`](https://github.com/eea/volto-eea-design-system/commit/a68866d4058f7412a2635371adebc370b6445281)
|
|
60
|
+
- change(button): simplified button styling [`fe892d6`](https://github.com/eea/volto-eea-design-system/commit/fe892d6f2f59aecf3f9e8b04f18b55fb0d384021)
|
|
61
|
+
- Autobuild of docusaurus docs [`d1c269f`](https://github.com/eea/volto-eea-design-system/commit/d1c269f2f0413a112ee30ef9ac1c4f412129c898)
|
|
62
|
+
- Autobuild of docusaurus docs [`958dd41`](https://github.com/eea/volto-eea-design-system/commit/958dd4193fa29bc84ef5c47ddfb81124ed98966c)
|
|
63
|
+
- Autobuild of docusaurus docs [`4f93966`](https://github.com/eea/volto-eea-design-system/commit/4f93966df8d4505f35065c9d82b918886a5ad787)
|
|
64
|
+
- refactor(avatar): add variable for image border radius [`c23341c`](https://github.com/eea/volto-eea-design-system/commit/c23341c66d34a9dfa572be4df24f1faf4325d58e)
|
|
65
|
+
- Autobuild of docusaurus docs [`72e6643`](https://github.com/eea/volto-eea-design-system/commit/72e66439261a4a11bd4c672e8e39fbb50738608f)
|
|
66
|
+
- change(button): primary color is blue and secondary is green [`53e0a0c`](https://github.com/eea/volto-eea-design-system/commit/53e0a0c6d32a04c52d089914a224b010b04a8846)
|
|
67
|
+
- refactor(progress): update colors for accessibility [`ea2f454`](https://github.com/eea/volto-eea-design-system/commit/ea2f454f73c859ac21c4fe6e415a2442a6c3d64c)
|
|
68
|
+
- refactor(progress): add container to story [`dfb33bb`](https://github.com/eea/volto-eea-design-system/commit/dfb33bb8f3560d43e3e7300560bb557591c0a6ba)
|
|
69
|
+
- refactor(label): add container to story [`565101f`](https://github.com/eea/volto-eea-design-system/commit/565101fff2c8860deedd599b7b0cff0660c663f6)
|
|
70
|
+
- fix(label): update highlight label color [`d55bbb0`](https://github.com/eea/volto-eea-design-system/commit/d55bbb03a5d28b2f269c1a1ca447c67dcdc7a748)
|
|
71
|
+
- refactor(list): remove horizontal control [`1f5e576`](https://github.com/eea/volto-eea-design-system/commit/1f5e576a37452ed368d6f9cf4d55960e737d48ad)
|
|
72
|
+
- doco(list): update Ordered List showcase [`75e40bf`](https://github.com/eea/volto-eea-design-system/commit/75e40bf4487ea334c9ebc2dd6c2a392d82e662f3)
|
|
73
|
+
- refactor(Timeline): change storybook timeline colors to fix accessibility issues [`79da8dc`](https://github.com/eea/volto-eea-design-system/commit/79da8dca48c709fd1df83b858296126f5e5c5753)
|
|
74
|
+
- refactor(DescriptionList): add container to story [`d647c1a`](https://github.com/eea/volto-eea-design-system/commit/d647c1a17097eae9bdfaf8eb8068f6d1d0b13972)
|
|
75
|
+
- refactor(DefaultList): add container to story [`f971193`](https://github.com/eea/volto-eea-design-system/commit/f971193369007a45fea7d517cdf0fc2314ebda69)
|
|
76
|
+
- refactor(UnorderedList): update list as ul, list items as li and add container to strory [`2c096e1`](https://github.com/eea/volto-eea-design-system/commit/2c096e117125a7fb943a5d2e665c0077761b271c)
|
|
77
|
+
- style(OrderedList): prettier fixes [`ed95e4d`](https://github.com/eea/volto-eea-design-system/commit/ed95e4dea2f33d46ca604e1b2c30d63b5596c03d)
|
|
78
|
+
- fix(OrderedList): adjust margins to fourth sublists [`663d384`](https://github.com/eea/volto-eea-design-system/commit/663d384790920f164d51edb304c411275972fbb7)
|
|
79
|
+
- refactor(OrderedList): rename TOC to Ordered List and add container to the story [`e00c4db`](https://github.com/eea/volto-eea-design-system/commit/e00c4db8e623651eb2ec9ad45de6e3d8c2693b2b)
|
|
80
|
+
- Next relese: 0.2.2 [`b3fb40f`](https://github.com/eea/volto-eea-design-system/commit/b3fb40ff5e46d7519b6356fdaf7326780bd89d9e)
|
|
81
|
+
- change(button): basic button is again without padding, border and background [`5a907c7`](https://github.com/eea/volto-eea-design-system/commit/5a907c721bda1d065153b108d6c9dc0ee20a886d)
|
|
82
|
+
- fix(OrderedList) : add list only if sub list exists [`8acbc8d`](https://github.com/eea/volto-eea-design-system/commit/8acbc8d5a492b411b169b106ab64bb78563f891f)
|
|
83
|
+
- refactor(OrderedList) : change table of contents story to ordered list [`cb6197c`](https://github.com/eea/volto-eea-design-system/commit/cb6197c872a97f1b990c675554b1da9b0a8f7959)
|
|
84
|
+
- change(button): basic icon buttons no longer have box shadows [`c2f3ea3`](https://github.com/eea/volto-eea-design-system/commit/c2f3ea38ec3c62dce37612ac1e666a0b064309f7)
|
|
85
|
+
- change(buttons): modified basic and circular variant behavior [`c06fed9`](https://github.com/eea/volto-eea-design-system/commit/c06fed9fa74216cf76971b7789dad231a5125ce8)
|
|
86
|
+
- change(button): added back button.overrides from pastanaga theme [`3b55acb`](https://github.com/eea/volto-eea-design-system/commit/3b55acbf8b8df0e3daa475ab12e4db44693a4053)
|
|
87
|
+
- change(segment): restore light grey background color for secondary segments [`8716b08`](https://github.com/eea/volto-eea-design-system/commit/8716b08a977cacf5dbdab8ab23c714bb03066b0c)
|
|
88
|
+
- refactor(RelatedContent):delete publication card component [`2ed0ed4`](https://github.com/eea/volto-eea-design-system/commit/2ed0ed4a1497224b669386f6d0942a79d00555ea)
|
|
89
|
+
- refactor(RelatedContent):change to use new card variant instead of publication card component [`7cf424a`](https://github.com/eea/volto-eea-design-system/commit/7cf424ae885d9b657a7635fc67a74a8af4c4e905)
|
|
90
|
+
- fix(RelatedContent):fix merge conflict [`adc34bf`](https://github.com/eea/volto-eea-design-system/commit/adc34bfdac7d668aa27578eb2a4844c136e0360f)
|
|
91
|
+
- refactor(PublicationCard):remake publication card to be a semantic card variation [`5a0c6ab`](https://github.com/eea/volto-eea-design-system/commit/5a0c6ab21c22a53aa6e34fafecfae15a3d435391)
|
|
92
|
+
- chore(Avatar) : add container to stories [`41b748c`](https://github.com/eea/volto-eea-design-system/commit/41b748cd23002d597d9b6fbb7947a443ef40f9b2)
|
|
93
|
+
- refactor(Avatar) : remake avatar as card variant [`ea77cdd`](https://github.com/eea/volto-eea-design-system/commit/ea77cdd1acafd2ea288f11074423705e5d6b7412)
|
|
94
|
+
- refactor(progress): update value color for accessibility error [`6fc76f8`](https://github.com/eea/volto-eea-design-system/commit/6fc76f8ff3df4bf2b83863687e5ab6bd5e4cd1ef)
|
|
95
|
+
- refactor(Avatar) : convert avatar component to card variation [`2004a94`](https://github.com/eea/volto-eea-design-system/commit/2004a941c18f8fe21f96f88d3288446fd5e283e8)
|
|
96
|
+
- perf(eol): lf fix [`19235e5`](https://github.com/eea/volto-eea-design-system/commit/19235e585ac50c3669f654a93798b8998894f900)
|
|
97
|
+
- perf(eol): lf fix [`7054b20`](https://github.com/eea/volto-eea-design-system/commit/7054b2067b0802c5bd04e185cba76e2577ccfdd1)
|
|
98
|
+
- perf(eol): linux eol [`6e0bb30`](https://github.com/eea/volto-eea-design-system/commit/6e0bb30132904f92b9755356f6b5ccbf72075425)
|
|
99
|
+
- refactor(publicationCard): update tag and name variables [`c109ad9`](https://github.com/eea/volto-eea-design-system/commit/c109ad98f257fea233f31d767c4a037a2758be2d)
|
|
100
|
+
- refactor(relatedContent): adjust column paddings [`8a1520d`](https://github.com/eea/volto-eea-design-system/commit/8a1520d1b958b65e968bffdba22c3484916a475e)
|
|
101
|
+
- fix(tab): restore mobile font sizes [`58f39be`](https://github.com/eea/volto-eea-design-system/commit/58f39be02a45ade92873b86597c33763379e0f44)
|
|
102
|
+
- perf(eol): change to LF [`c71e42e`](https://github.com/eea/volto-eea-design-system/commit/c71e42e4a8cf49c4a3b943bfdc8a94c9a9cc4940)
|
|
103
|
+
- fix(publicationCard): restore line endings [`582859e`](https://github.com/eea/volto-eea-design-system/commit/582859e0ab4fa969662d4cf3e60fe75b160f052a)
|
|
104
|
+
- refactor(publicationCard): replace px with rems [`53bf8da`](https://github.com/eea/volto-eea-design-system/commit/53bf8da5e42343de7f7f940c266beb5e530dd63a)
|
|
105
|
+
- refactor(avatarGrid): update less variables and layer structure [`db554a8`](https://github.com/eea/volto-eea-design-system/commit/db554a894ca10ba50ff425883000177854ea2455)
|
|
106
|
+
- refactor(avatar): update less variables and layer structure [`f965db1`](https://github.com/eea/volto-eea-design-system/commit/f965db1dd17d90e7165f66d39fdda9016c2eae91)
|
|
107
|
+
- fix(avatar) : fix naming convention for arg [`84fc5fa`](https://github.com/eea/volto-eea-design-system/commit/84fc5fa8faa7887f45cd52e58aa6fa6f8b951d26)
|
|
108
|
+
- refactor(Timeline):change timeline icons [`b2fe0bf`](https://github.com/eea/volto-eea-design-system/commit/b2fe0bf9a7a4583f1f10765a9f8c3c989412d472)
|
|
109
|
+
- refactor(storybook): clear up code [`3ada154`](https://github.com/eea/volto-eea-design-system/commit/3ada154b5ab562dc7605604de8002a9d3461e594)
|
|
110
|
+
- refactor(Related Content):show button when there are more hidden cards [`57ff1c8`](https://github.com/eea/volto-eea-design-system/commit/57ff1c8d485d16c34002da22bd765069e6eb3df0)
|
|
111
|
+
- refactor(less variables): change card description line number per device [`6946fda`](https://github.com/eea/volto-eea-design-system/commit/6946fdae2a1ede28a0e5971736817b3ae19bf290)
|
|
112
|
+
- refactor(PublicationCard):remove link wrapper [`5911a0d`](https://github.com/eea/volto-eea-design-system/commit/5911a0db1967c58311a6776864f92bc0692052fa)
|
|
113
|
+
- refactor(storybook): add story with related content inside of a tab [`dca008a`](https://github.com/eea/volto-eea-design-system/commit/dca008a35b27e4a75c13ef965ab8764df0d3b357)
|
|
114
|
+
- refactor(storybook): add publication cards stories with longer description [`37adefa`](https://github.com/eea/volto-eea-design-system/commit/37adefa500c8a85a5b0b86e5b17c687828ea21fc)
|
|
115
|
+
- fix(publication card): run prettier [`81a5bfc`](https://github.com/eea/volto-eea-design-system/commit/81a5bfc123ce69c44562a5585e41a630fe0bbf5a)
|
|
116
|
+
- refactor(less variables): publication card style changes [`c5a84e9`](https://github.com/eea/volto-eea-design-system/commit/c5a84e99ebea6345e45fac3b7ffc077ec42dfb45)
|
|
117
|
+
- refactor(storybook): add publication card story with different description sizes [`23af97b`](https://github.com/eea/volto-eea-design-system/commit/23af97bc708ac70d70b92efe9a782548c65aabc5)
|
|
118
|
+
- refactor(less variables): change publication card height per viewport [`d7a5256`](https://github.com/eea/volto-eea-design-system/commit/d7a525615672f387a2c8a0457bcde5c08aec45dd)
|
|
119
|
+
- refactor(less variables): add less to related content [`e1a5543`](https://github.com/eea/volto-eea-design-system/commit/e1a55438a9fc9dd141a9515c5363d834732a0c4d)
|
|
120
|
+
- refactor(Related Content): change in grid and add see all button [`955450e`](https://github.com/eea/volto-eea-design-system/commit/955450e974c89aa2297eaa28d278e5098fea7705)
|
|
121
|
+
- refactor(Related Content): change in related content grid [`bf856ce`](https://github.com/eea/volto-eea-design-system/commit/bf856ce66f9a74cb440cf8a7c93f62cd0d3965e9)
|
|
122
|
+
|
|
7
123
|
#### [0.2.1](https://github.com/eea/volto-eea-design-system/compare/0.2.0...0.2.1)
|
|
8
124
|
|
|
125
|
+
> 8 April 2022
|
|
126
|
+
|
|
127
|
+
- Release 0.2.1 [`#143`](https://github.com/eea/volto-eea-design-system/pull/143)
|
|
9
128
|
- refactor(loader): Revert changes to semantic ui / volto defaults [`#142`](https://github.com/eea/volto-eea-design-system/pull/142)
|
|
10
129
|
- 1.10 release #140 [`#141`](https://github.com/eea/volto-eea-design-system/pull/141)
|
|
11
130
|
- Autobuild of docusaurus docs [`d632472`](https://github.com/eea/volto-eea-design-system/commit/d63247239c8150075363871616652a99148509b0)
|
|
12
|
-
- Release 0.2.1 [`9f89d9d`](https://github.com/eea/volto-eea-design-system/commit/9f89d9d60ef259c5b5a7300ccde1e524eb4fa4d7)
|
|
13
131
|
- Autobuild of docusaurus docs [`af3f50d`](https://github.com/eea/volto-eea-design-system/commit/af3f50d17ad8266329c1bccd18d638f2617d722d)
|
|
14
132
|
- cleanup(loader): Remove useless HTML [`d1d180c`](https://github.com/eea/volto-eea-design-system/commit/d1d180c714ea225c1ad269360413a5e5e4b39f22)
|
|
15
133
|
- fix(version): Switch to 2.0.0.alpha.1 [`83b8b8e`](https://github.com/eea/volto-eea-design-system/commit/83b8b8ebba4f1eb31514b16476ac23a5d2b03ea9)
|
package/package.json
CHANGED
package/src/semantic.less
CHANGED
|
@@ -229,10 +229,6 @@
|
|
|
229
229
|
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/inpageNavigation';
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
& {
|
|
233
|
-
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/avatar';
|
|
234
|
-
}
|
|
235
|
-
|
|
236
232
|
& {
|
|
237
233
|
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/divider';
|
|
238
234
|
}
|
|
@@ -258,5 +254,5 @@
|
|
|
258
254
|
}
|
|
259
255
|
|
|
260
256
|
& {
|
|
261
|
-
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/
|
|
257
|
+
@import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/relatedContent';
|
|
262
258
|
}
|
|
@@ -30,6 +30,19 @@ export default {
|
|
|
30
30
|
},
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
+
//Default Button
|
|
34
|
+
export const Default = (args) => {
|
|
35
|
+
return <Button disabled={args.disabled}>{args.label}</Button>;
|
|
36
|
+
};
|
|
37
|
+
Default.args = {
|
|
38
|
+
label: 'Default Button',
|
|
39
|
+
disabled: false,
|
|
40
|
+
};
|
|
41
|
+
Default.parameters = {
|
|
42
|
+
controls: { exclude: ['animated', 'variant'] },
|
|
43
|
+
hideNoControlsWarning: true,
|
|
44
|
+
};
|
|
45
|
+
|
|
33
46
|
//Primary button
|
|
34
47
|
export const Primary = (args) => {
|
|
35
48
|
return (
|
|
@@ -65,54 +78,68 @@ Secondary.parameters = {
|
|
|
65
78
|
};
|
|
66
79
|
|
|
67
80
|
//secondary Button Inverted
|
|
68
|
-
export const
|
|
81
|
+
export const Inverted = (args) => {
|
|
69
82
|
return (
|
|
70
83
|
<Segment inverted compact>
|
|
84
|
+
<Button primary inverted disabled={args.disabled}>
|
|
85
|
+
{args.button1}
|
|
86
|
+
</Button>
|
|
71
87
|
<Button secondary inverted disabled={args.disabled}>
|
|
72
|
-
{args.
|
|
88
|
+
{args.button2}
|
|
89
|
+
</Button>
|
|
90
|
+
<Button inverted disabled={args.disabled}>
|
|
91
|
+
{args.button3}
|
|
73
92
|
</Button>
|
|
74
93
|
</Segment>
|
|
75
94
|
);
|
|
76
95
|
};
|
|
77
|
-
|
|
78
|
-
|
|
96
|
+
Inverted.args = {
|
|
97
|
+
button1: 'Primary Inverted',
|
|
98
|
+
button2: 'Secondary Inverted',
|
|
99
|
+
button3: 'Default Inverted',
|
|
79
100
|
disabled: false,
|
|
80
101
|
};
|
|
81
|
-
|
|
82
|
-
controls: { exclude: ['animated', 'variant'] },
|
|
102
|
+
Inverted.parameters = {
|
|
103
|
+
controls: { exclude: ['animated', 'variant', 'label'] },
|
|
83
104
|
hideNoControlsWarning: true,
|
|
84
105
|
};
|
|
85
106
|
|
|
86
107
|
//Call to action button
|
|
87
|
-
export const
|
|
108
|
+
export const Labeled = (args) => {
|
|
88
109
|
return (
|
|
89
|
-
<
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
</
|
|
110
|
+
<div className="eea">
|
|
111
|
+
<Button
|
|
112
|
+
className={args.variant + ' icon ' + args.icon_position + ' labeled'}
|
|
113
|
+
disabled={args.disabled}
|
|
114
|
+
>
|
|
115
|
+
{args.label}
|
|
116
|
+
<Icon name={args.icon + args.icon_position} />
|
|
117
|
+
</Button>
|
|
118
|
+
</div>
|
|
98
119
|
);
|
|
99
120
|
};
|
|
100
|
-
|
|
121
|
+
Labeled.args = {
|
|
101
122
|
label: 'CALL TO ACTION BUTTON',
|
|
102
123
|
icon: 'chevron right',
|
|
103
124
|
disabled: false,
|
|
104
125
|
};
|
|
105
|
-
|
|
106
|
-
controls: { exclude: ['animated'
|
|
126
|
+
Labeled.parameters = {
|
|
127
|
+
controls: { exclude: ['animated'] },
|
|
107
128
|
hideNoControlsWarning: true,
|
|
108
129
|
};
|
|
109
|
-
|
|
130
|
+
Labeled.argTypes = {
|
|
131
|
+
variant: {
|
|
132
|
+
options: ['primary', 'secondary', 'default'],
|
|
133
|
+
control: { type: 'radio' },
|
|
134
|
+
defaultValue: 'secondary',
|
|
135
|
+
},
|
|
136
|
+
|
|
110
137
|
label: {
|
|
111
|
-
name: '
|
|
112
|
-
type: { name: 'string', required:
|
|
138
|
+
name: 'label',
|
|
139
|
+
type: { name: 'string', required: false },
|
|
113
140
|
},
|
|
114
141
|
icon: {
|
|
115
|
-
name: '
|
|
142
|
+
name: 'icon',
|
|
116
143
|
type: { name: 'string', required: false },
|
|
117
144
|
defaultValue: 'chevron right',
|
|
118
145
|
options: [
|
|
@@ -136,6 +163,12 @@ CallToAction.argTypes = {
|
|
|
136
163
|
defaultValue: { summary: 'chevron right' },
|
|
137
164
|
},
|
|
138
165
|
},
|
|
166
|
+
|
|
167
|
+
icon_position: {
|
|
168
|
+
options: [' left', ' right'],
|
|
169
|
+
control: { type: 'radio' },
|
|
170
|
+
defaultValue: ' left',
|
|
171
|
+
},
|
|
139
172
|
};
|
|
140
173
|
|
|
141
174
|
//Text Button - can also play with text class
|
|
@@ -154,16 +187,3 @@ Text.parameters = {
|
|
|
154
187
|
controls: { exclude: ['animated', 'variant'] },
|
|
155
188
|
hideNoControlsWarning: true,
|
|
156
189
|
};
|
|
157
|
-
|
|
158
|
-
//Cancel Button
|
|
159
|
-
export const Cancel = (args) => {
|
|
160
|
-
return <Button disabled={args.disabled}>{args.label}</Button>;
|
|
161
|
-
};
|
|
162
|
-
Cancel.args = {
|
|
163
|
-
label: 'Cancel Button',
|
|
164
|
-
disabled: false,
|
|
165
|
-
};
|
|
166
|
-
Cancel.parameters = {
|
|
167
|
-
controls: { exclude: ['animated', 'variant'] },
|
|
168
|
-
hideNoControlsWarning: true,
|
|
169
|
-
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import
|
|
4
|
-
import { Grid } from 'semantic-ui-react';
|
|
3
|
+
import { Grid, Card, Image } from 'semantic-ui-react';
|
|
5
4
|
|
|
6
5
|
AvatarGrid.propTypes = {
|
|
7
6
|
title: PropTypes.string,
|
|
@@ -20,25 +19,26 @@ AvatarGrid.Content = ({ children }) => {
|
|
|
20
19
|
};
|
|
21
20
|
|
|
22
21
|
AvatarGrid.Title = ({ children, ...rest }) => (
|
|
23
|
-
<
|
|
22
|
+
<h3 className={`grid-title ${rest.showTitle ? '' : 'hidden'}`}>
|
|
23
|
+
{children}
|
|
24
|
+
</h3>
|
|
24
25
|
);
|
|
25
26
|
AvatarGrid.Group = ({ children, ...rest }) => {
|
|
26
27
|
let avatars = rest.avatars;
|
|
27
|
-
|
|
28
|
-
avatars = avatars.slice(0, 3);
|
|
29
|
-
}
|
|
28
|
+
|
|
30
29
|
return (
|
|
31
30
|
<div className="avatar group">
|
|
32
31
|
<Grid>
|
|
33
|
-
{avatars.map((avatar) => (
|
|
34
|
-
<Grid.Column mobile={12} tablet={4} computer={4}>
|
|
32
|
+
{avatars.map((avatar, index) => (
|
|
33
|
+
<Grid.Column key={index} mobile={12} tablet={4} computer={4}>
|
|
35
34
|
<div className="avatar-wrapper">
|
|
36
|
-
<
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
35
|
+
<Card className={`eea rounded big`} fluid={avatar.fluid}>
|
|
36
|
+
<Image src={avatar.src} wrapped ui={false} alt="card image" />
|
|
37
|
+
<Card.Content>
|
|
38
|
+
<Card.Header>{avatar.title}</Card.Header>
|
|
39
|
+
<Card.Description>{avatar.description}</Card.Description>
|
|
40
|
+
</Card.Content>
|
|
41
|
+
</Card>
|
|
42
42
|
</div>
|
|
43
43
|
</Grid.Column>
|
|
44
44
|
))}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
// eslint-disable-next-line import/no-unresolved
|
|
3
|
-
import imgUrl from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/avatar.png';
|
|
4
3
|
import AvatarGrid from './AvatarGrid';
|
|
4
|
+
import { Container } from 'semantic-ui-react';
|
|
5
|
+
import imgUrl from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/avatar.png';
|
|
5
6
|
|
|
6
7
|
export default {
|
|
7
|
-
title: 'Components/
|
|
8
|
+
title: 'Components/Card/Rounded Card',
|
|
8
9
|
component: AvatarGrid,
|
|
9
10
|
argTypes: {
|
|
10
11
|
showTitle: {
|
|
@@ -32,35 +33,37 @@ export default {
|
|
|
32
33
|
};
|
|
33
34
|
|
|
34
35
|
const GridTemplate = (args) => (
|
|
35
|
-
<
|
|
36
|
-
<AvatarGrid
|
|
37
|
-
<AvatarGrid.
|
|
38
|
-
{args.
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
36
|
+
<Container>
|
|
37
|
+
<AvatarGrid>
|
|
38
|
+
<AvatarGrid.Content>
|
|
39
|
+
<AvatarGrid.Title showTitle={args.showTitle}>
|
|
40
|
+
{args.title}
|
|
41
|
+
</AvatarGrid.Title>
|
|
42
|
+
<AvatarGrid.Group avatars={args.avatars}></AvatarGrid.Group>
|
|
43
|
+
</AvatarGrid.Content>
|
|
44
|
+
</AvatarGrid>
|
|
45
|
+
</Container>
|
|
43
46
|
);
|
|
44
47
|
|
|
45
|
-
export const
|
|
46
|
-
|
|
48
|
+
export const RoundedGrid = GridTemplate.bind({});
|
|
49
|
+
RoundedGrid.args = {
|
|
47
50
|
title: 'Amet - Lorem ipsum dolor sit amet',
|
|
48
51
|
showTitle: true,
|
|
49
52
|
avatars: [
|
|
50
53
|
{
|
|
51
|
-
|
|
52
|
-
title: 'Lorem
|
|
53
|
-
|
|
54
|
+
src: imgUrl,
|
|
55
|
+
title: 'Lorem Ipsum',
|
|
56
|
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
|
|
54
57
|
},
|
|
55
58
|
{
|
|
56
|
-
|
|
57
|
-
title: 'Lorem
|
|
58
|
-
|
|
59
|
+
src: imgUrl,
|
|
60
|
+
title: 'Lorem Ipsum',
|
|
61
|
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
|
|
59
62
|
},
|
|
60
63
|
{
|
|
61
|
-
|
|
62
|
-
title: 'Lorem
|
|
63
|
-
|
|
64
|
+
src: imgUrl,
|
|
65
|
+
title: 'Lorem Ipsum',
|
|
66
|
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
|
|
64
67
|
},
|
|
65
68
|
],
|
|
66
69
|
};
|