@eeacms/volto-eea-design-system 0.7.5 → 0.8.1
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 +88 -0
- package/mockups/EEA component library.fig +0 -0
- package/mockups/page-templates/R1 R3 templates.fig +0 -0
- package/mockups/page-templates/WISE BISE FISE.fig +0 -0
- package/mockups/page-templates/datahub/Data hub updated proposal.fig +0 -0
- package/mockups/page-templates/homepage_selected_upd1.fig +0 -0
- package/mockups/special-designs/Mega Menu.fig +0 -0
- package/mockups/special-designs/New footer.fig +0 -0
- package/mockups/special-designs/Search (Final).fig +0 -0
- package/mockups/special-designs/Side Navigation.fig +0 -0
- package/package.json +1 -1
- package/src/ui/Card/AvatarGrid/AvatarGrid.jsx +25 -13
- package/src/ui/Card/AvatarGrid/AvatarGrid.stories.jsx +33 -13
- package/src/ui/Card/Card.stories.jsx +173 -77
- package/src/ui/Card/IconCard/IconCard.stories.jsx +195 -0
- package/src/ui/Card/PublicationCard.stories.jsx +15 -3
- package/src/ui/Card/RelatedContent/RelatedContent.jsx +30 -8
- package/src/ui/Card/RelatedContent/RelatedContent.stories.jsx +20 -0
- package/src/ui/Card/RoundedCard.stories.jsx +46 -20
- package/src/ui/Footer/Contact.jsx +11 -7
- package/src/ui/Footer/Footer.jsx +1 -1
- package/src/ui/Footer/FooterActions.jsx +24 -7
- package/src/ui/Footer/FooterHeader.jsx +1 -1
- package/src/ui/Footer/FooterSites.jsx +22 -10
- package/src/ui/Footer/SubFooter.jsx +42 -38
- package/theme/themes/eea/assets/images/Footer/Extras/footervisual.svg +2041 -1731
- package/theme/themes/eea/collections/breadcrumb.overrides +4 -0
- package/theme/themes/eea/collections/breadcrumb.variables +1 -1
- package/theme/themes/eea/collections/message.overrides +19 -20
- package/theme/themes/eea/collections/message.variables +45 -23
- package/theme/themes/eea/extras/banner.less +0 -8
- package/theme/themes/eea/extras/custom.overrides +4 -1
- package/theme/themes/eea/extras/footer.less +69 -59
- package/theme/themes/eea/extras/footer.variables +31 -35
- package/theme/themes/eea/extras/header.variables +1 -1
- package/theme/themes/eea/globals/site.overrides +20 -0
- package/theme/themes/eea/globals/site.variables +31 -28
- package/theme/themes/eea/globals/utilities.less +6 -1
- package/theme/themes/eea/tokens/fonts.less +18 -17
- package/theme/themes/eea/views/card.overrides +179 -123
- package/theme/themes/eea/views/card.variables +34 -33
- package/theme/themes/eea/views/item.overrides +15 -1
- package/theme/themes/eea/views/item.variables +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,8 +4,96 @@ 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.8.1](https://github.com/eea/volto-eea-design-system/compare/0.8.0...0.8.1)
|
|
8
|
+
|
|
9
|
+
- final Figma files in github as part of the Design System [`#229`](https://github.com/eea/volto-eea-design-system/pull/229)
|
|
10
|
+
- docs(figma): added figma files to repo [`6bd4144`](https://github.com/eea/volto-eea-design-system/commit/6bd4144ffc9c563ce224a07fe942fc4f2615c53f)
|
|
11
|
+
- Autobuild of docusaurus docs [`5c51018`](https://github.com/eea/volto-eea-design-system/commit/5c5101801ed7176d4f526b19d72ce57091d62848)
|
|
12
|
+
- change(footer): removed line between sections and moved actions back to the bottom of footer [`d9f33e4`](https://github.com/eea/volto-eea-design-system/commit/d9f33e4cf5a517acfbae497d6cb2fdccb048c281)
|
|
13
|
+
- Autobuild of docusaurus docs [`677ec42`](https://github.com/eea/volto-eea-design-system/commit/677ec42bbaca04621bc753ed42141288ed01ab0e)
|
|
14
|
+
- change(storybook): headings storybook now uses tertiary color by default reflecting site options [`1061e77`](https://github.com/eea/volto-eea-design-system/commit/1061e7749de2d4fe1233ccdc7f6f835ad491504a)
|
|
15
|
+
- Autobuild of docusaurus docs [`4a09a99`](https://github.com/eea/volto-eea-design-system/commit/4a09a99e7fec7da7d750bd7f2f3b8ede65649fbe)
|
|
16
|
+
- fix(docusaurus): intro page hero title color now that headers are using tertiary color [`618e3cb`](https://github.com/eea/volto-eea-design-system/commit/618e3cb7ac5533b1c087aea10452947c8676ab4e)
|
|
17
|
+
- Autobuild of docusaurus docs [`71850ad`](https://github.com/eea/volto-eea-design-system/commit/71850ad0eeba04d429804b103f6c5b31888bde44)
|
|
18
|
+
- change(message): use semantic colors for messages #204 from eea/refactor-message [`22d2c43`](https://github.com/eea/volto-eea-design-system/commit/22d2c43cd55a82621f2da3103652677b4b45db1a)
|
|
19
|
+
- refactor(message): remove override with custom background color on error [`9b40cd7`](https://github.com/eea/volto-eea-design-system/commit/9b40cd7ef2cca901e65a812585943c2e2d867b5f)
|
|
20
|
+
- refactor(message): add header controls [`960c2f7`](https://github.com/eea/volto-eea-design-system/commit/960c2f7b524b1f049bb2f666e3e8278feca506da)
|
|
21
|
+
- refactor(messages): mix semantc and token colors for messages [`12efa75`](https://github.com/eea/volto-eea-design-system/commit/12efa75c30956df9958058242be4b8732819a5a1)
|
|
22
|
+
- refactor(emotiveColors): temp update for tests [`61a720c`](https://github.com/eea/volto-eea-design-system/commit/61a720c1ddbbad2c5bab17c8b2f890618f2a747c)
|
|
23
|
+
- refactor(message): restore semantic variables [`1c16621`](https://github.com/eea/volto-eea-design-system/commit/1c16621b4862efc64d82d475798ed40938c65f5e)
|
|
24
|
+
- refactor(message): add container to story [`1259ece`](https://github.com/eea/volto-eea-design-system/commit/1259ecead7162d2a46f5e802ba07e7e0dcb72e42)
|
|
25
|
+
- fix(message): fix size controls [`ee51e1d`](https://github.com/eea/volto-eea-design-system/commit/ee51e1dca4f84aeb9e39be525016f751acc147de)
|
|
26
|
+
|
|
27
|
+
#### [0.8.0](https://github.com/eea/volto-eea-design-system/compare/0.7.6...0.8.0)
|
|
28
|
+
|
|
29
|
+
> 20 August 2022
|
|
30
|
+
|
|
31
|
+
- change(Cards): All variations accessibility fixes #210 [`#210`](https://github.com/eea/volto-eea-design-system/issues/210)
|
|
32
|
+
- feature(heading): and cards refactoring #227 from eea/develop [`334fbda`](https://github.com/eea/volto-eea-design-system/commit/334fbda2d5b751858d4cc8cae832ca7f5c1ad6c2)
|
|
33
|
+
- Update package.json [`3870cf3`](https://github.com/eea/volto-eea-design-system/commit/3870cf3265f0dab4e181c94a6657b9fa408bf186)
|
|
34
|
+
- Header refactor 153536 #226 from eea/header-refactor-153536 [`87a6fe7`](https://github.com/eea/volto-eea-design-system/commit/87a6fe73211eb028861e099a67e90d365c5111ea)
|
|
35
|
+
- change(typography): inherit header colors with @headerColor variable [`91d9357`](https://github.com/eea/volto-eea-design-system/commit/91d93577772534f67bb74df0c9ed260bbaccdd4c)
|
|
36
|
+
- change(typography): modified lineheight-0 after headers now use 1.2 instead of 1.25 [`04d78a8`](https://github.com/eea/volto-eea-design-system/commit/04d78a8b0094d9187548e1e3b16d6fbf2248821c)
|
|
37
|
+
- change(breadcrumb): use tertiary color also for breadcrumb [`c5cbd44`](https://github.com/eea/volto-eea-design-system/commit/c5cbd44bcabae36bcb99a1e987d701e2ea75434b)
|
|
38
|
+
- fix(heroblock): color even on edit page by inheriting color instead of using the tertiary color [`ac53fb7`](https://github.com/eea/volto-eea-design-system/commit/ac53fb74dedafcce231d1ca72843eff8a589c530)
|
|
39
|
+
- change(site): removed Archivo import as we should only use Roboto font [`a6af056`](https://github.com/eea/volto-eea-design-system/commit/a6af0564667075d2012c114acb2ad8e1f39b926f)
|
|
40
|
+
- change(heading): on homepage on the first hero set font size to h1 and inherit color [`5711096`](https://github.com/eea/volto-eea-design-system/commit/5711096e45c57b0c3c871f8dcf870c05405d217d)
|
|
41
|
+
- change(headers): added headerColor variable so that thematic sites can easily choose another heading color [`f09d2c5`](https://github.com/eea/volto-eea-design-system/commit/f09d2c5e95e82077cc7dfef43a5c56fc73d435c3)
|
|
42
|
+
- change(headings): only h2-h6 get tertiary color [`7d81308`](https://github.com/eea/volto-eea-design-system/commit/7d81308c4c0d52d5610a922146f5b426d9eaf323)
|
|
43
|
+
- change(style): color, space and adjust line-height as described in docusaurus [`3366da2`](https://github.com/eea/volto-eea-design-system/commit/3366da262ba2dc1c34f57964accf4d6ef6ed37e1)
|
|
44
|
+
- change(docusaurus): use tertiary color for headings and body color mirroring the design system styles [`145fe73`](https://github.com/eea/volto-eea-design-system/commit/145fe7348a19b51784a2879225d1b71a642eed45)
|
|
45
|
+
- change(docusaurus): use the tertiary color for body and heading colors [`11c4ed4`](https://github.com/eea/volto-eea-design-system/commit/11c4ed4683df4527ce79155bc65424789e3864af)
|
|
46
|
+
- change(docusaurus, fonts): documented font letter spacing modification [`522712a`](https://github.com/eea/volto-eea-design-system/commit/522712aeddb55f4ff96fdf4e8bea26f4575504ec)
|
|
47
|
+
- change(docusaurus): use Roboto font from google fonts also for docusaurus [`adca8e9`](https://github.com/eea/volto-eea-design-system/commit/adca8e911faac2d541eb2b9fecf1d9db5b8f9b4c)
|
|
48
|
+
- fix(docusaurus): typography guideline now has real font values for headings, body, caption and small text [`9508db9`](https://github.com/eea/volto-eea-design-system/commit/9508db918687b524c4d464539b9a4667399abb43)
|
|
49
|
+
- change(fonts): typo fixes for typography section of docusaurus [`cae4b02`](https://github.com/eea/volto-eea-design-system/commit/cae4b02b20ff578f5cad7c4238c36baa3cae545a)
|
|
50
|
+
- change(fonts): modified footer and header values afer global font size changes [`f160d35`](https://github.com/eea/volto-eea-design-system/commit/f160d354b36dc2bee0707b6d63097d5f08408abe)
|
|
51
|
+
- change(fonts): updated font sizes with values given in figma [`4b0ae48`](https://github.com/eea/volto-eea-design-system/commit/4b0ae48ab140d8bbbf6ccbf46eda8d957195ca50)
|
|
52
|
+
- change(fonts): modified headings font size as well as line height [`f0771ea`](https://github.com/eea/volto-eea-design-system/commit/f0771ea1942b6ef436a03c256491a690a52d7413)
|
|
53
|
+
- change(fonts): updated font sizes with values given in figma [`f16eef7`](https://github.com/eea/volto-eea-design-system/commit/f16eef7128ed4f2e7fe97b1ec77f651dc062b771)
|
|
54
|
+
- Autobuild of docusaurus docs [`b7bba2c`](https://github.com/eea/volto-eea-design-system/commit/b7bba2cfa2feebce9d2f1448d88dbf0682a821d7)
|
|
55
|
+
- feature(item): icon is now stackable moving the icon on top #220 [`b716acf`](https://github.com/eea/volto-eea-design-system/commit/b716acfc850345d666d99840445798cdae201a63)
|
|
56
|
+
- Autobuild of docusaurus docs [`bb6dc01`](https://github.com/eea/volto-eea-design-system/commit/bb6dc01543bdb6a0ebf8a10a00d54c40b6b39b7b)
|
|
57
|
+
- fix(item): remove duplicate argType [`dde0be5`](https://github.com/eea/volto-eea-design-system/commit/dde0be5f7fe362143e248f7e53aa1d2e5df1fda0)
|
|
58
|
+
- refactor(item): add stackable functionality [`8d714fa`](https://github.com/eea/volto-eea-design-system/commit/8d714fad0465cc71650dcb41236d5667ccc3e789)
|
|
59
|
+
- refactor(publicationCard): add links and fix accessibily issue [`80adf6c`](https://github.com/eea/volto-eea-design-system/commit/80adf6ce0f01e577c34ddba8b345a1fc562f6711)
|
|
60
|
+
- fix(tab): add tabindex for accessibility error [`ab512be`](https://github.com/eea/volto-eea-design-system/commit/ab512be71b86a3b696a228840e34d297928485ab)
|
|
61
|
+
- refactor(roundedCard): add optional link for image and header [`a6d3bf2`](https://github.com/eea/volto-eea-design-system/commit/a6d3bf27031d189c403c4a099b09a9066a1620a2)
|
|
62
|
+
- refactor(iconCards): run prettier [`fe84e46`](https://github.com/eea/volto-eea-design-system/commit/fe84e46adbc385098385120d14e7583b890db027)
|
|
63
|
+
- fix(iconCard): add aria-label at links [`44f64c7`](https://github.com/eea/volto-eea-design-system/commit/44f64c7127c0ccabbbf81eb5a838ee0f63284cea)
|
|
64
|
+
- refactor(roundedCard): remove unnecessary code and controls and add all variations [`6305c54`](https://github.com/eea/volto-eea-design-system/commit/6305c54df14faada4058c602af2e33dbc4fad39d)
|
|
65
|
+
- refactor(card): add tertiary hover and update css selectors [`ca06948`](https://github.com/eea/volto-eea-design-system/commit/ca069484da914520c92f7d67ac92c476ff2ee4a2)
|
|
66
|
+
- refactor(iconCard): add control for variations and link [`5e1b6a1`](https://github.com/eea/volto-eea-design-system/commit/5e1b6a1c7ab9fdce138c5643bc01763a02bed287)
|
|
67
|
+
- refactor(card): css updates for card variations and styling updates [`c8b4a43`](https://github.com/eea/volto-eea-design-system/commit/c8b4a43dd25c50e77e8c71fa8fbc45cd70bde94e)
|
|
68
|
+
- fix(card): merge fix [`df440ec`](https://github.com/eea/volto-eea-design-system/commit/df440ecd89eeb228f6f28df9109b84460cdfd523)
|
|
69
|
+
- fix(carousel): restore missing variable [`1728312`](https://github.com/eea/volto-eea-design-system/commit/1728312162d102aa2812eb3c7a55dac83bca8a04)
|
|
70
|
+
- refactor(carousel): update card titles to display styling fix [`edd966b`](https://github.com/eea/volto-eea-design-system/commit/edd966b5648be51f2d4056c68489648574506656)
|
|
71
|
+
- fix(carousel): restore flex grow for cards and opacity for arrows [`ce71305`](https://github.com/eea/volto-eea-design-system/commit/ce71305ab3fed5ff5c09b577e970050d3b29a2cb)
|
|
72
|
+
- feat(IconCard): card with icon instead of image [`a85a179`](https://github.com/eea/volto-eea-design-system/commit/a85a1791e3a1245474dcafc4fd833350156dccb4)
|
|
73
|
+
- refactor(card): update meta section and controls [`5e28e12`](https://github.com/eea/volto-eea-design-system/commit/5e28e12bacec6a226659553b8244aeb0165378c9)
|
|
74
|
+
- refactor(card): add links to cards and replace description with title in carousel [`0258737`](https://github.com/eea/volto-eea-design-system/commit/0258737d26bbb3015ee6222ec878e0477001f615)
|
|
75
|
+
- fix(card): fix content gaps, adjust new meta section and update text color for default [`f1a78e1`](https://github.com/eea/volto-eea-design-system/commit/f1a78e14fc9a4b809572bd5d4d45bd10711c6eaa)
|
|
76
|
+
- refactor(card): add new section in meta and remove links [`bfb82ae`](https://github.com/eea/volto-eea-design-system/commit/bfb82ae9635d26ef478db3d63b39f67b25d11fd5)
|
|
77
|
+
- refactor(carousel) add links in carousel cards & update structure and variables of less files [`f99cb21`](https://github.com/eea/volto-eea-design-system/commit/f99cb219f3a95f5aab49a180434a4f5e0db14462)
|
|
78
|
+
|
|
79
|
+
#### [0.7.6](https://github.com/eea/volto-eea-design-system/compare/0.7.5...0.7.6)
|
|
80
|
+
|
|
81
|
+
> 15 August 2022
|
|
82
|
+
|
|
83
|
+
- change(footer): Footer updates 147837 #225 [`fa9ae58`](https://github.com/eea/volto-eea-design-system/commit/fa9ae580c7fd45fb4983672167cb5b0b33cc6279)
|
|
84
|
+
- Autobuild of docusaurus docs [`03b82a6`](https://github.com/eea/volto-eea-design-system/commit/03b82a6a3e20731865de424d6cbce827f64d9504)
|
|
85
|
+
- change(footer): fix missing key warning from react dev [`77f72d5`](https://github.com/eea/volto-eea-design-system/commit/77f72d5bdc719805a6314058c741387ee7155d28)
|
|
86
|
+
- Autobuild of docusaurus docs [`f6930f5`](https://github.com/eea/volto-eea-design-system/commit/f6930f57c7a0b63de20f0fad757c6f1409e43ca2)
|
|
87
|
+
- change(footer): Footer updates 147837 #222 [`32fed23`](https://github.com/eea/volto-eea-design-system/commit/32fed231f1209caeddb18e0bb75d670f20bafb88)
|
|
88
|
+
- change(footer): set actions before thematic section on mobile [`db25f96`](https://github.com/eea/volto-eea-design-system/commit/db25f966a214c94677192215181453e9d59ca957)
|
|
89
|
+
- refactor(footer): initial redesign of main section [`8e85617`](https://github.com/eea/volto-eea-design-system/commit/8e85617157cdc31a7470acfcd72b85d8fadd1bce)
|
|
90
|
+
- refactor(footer): restructure theme sites logo columns [`dcba45a`](https://github.com/eea/volto-eea-design-system/commit/dcba45a0bfd832c7d5d1e092db8ea4040eceda57)
|
|
91
|
+
|
|
7
92
|
#### [0.7.5](https://github.com/eea/volto-eea-design-system/compare/0.7.3...0.7.5)
|
|
8
93
|
|
|
94
|
+
> 11 August 2022
|
|
95
|
+
|
|
96
|
+
- change(megamenu): mobile improvements with See all links, active elements and non accordion children #224 [`6767b99`](https://github.com/eea/volto-eea-design-system/commit/6767b99fea3925b35e9dede0a67ea90242e5e730)
|
|
9
97
|
- Update package.json [`e21e00d`](https://github.com/eea/volto-eea-design-system/commit/e21e00dc1e0b54daef2c71311a9da709bc1f7e6d)
|
|
10
98
|
- Autobuild of docusaurus docs [`ca7c756`](https://github.com/eea/volto-eea-design-system/commit/ca7c75680763219f0acdc4c91d348c4520de13f4)
|
|
11
99
|
- change(megamenu): mobile menu improvements #223 [`b3cabfe`](https://github.com/eea/volto-eea-design-system/commit/b3cabfe3ddc42c2ea39ae20d01bb6fd0db478ecc)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
2
|
import { Grid, Card, Image } from 'semantic-ui-react';
|
|
4
3
|
|
|
5
|
-
AvatarGrid.propTypes = {
|
|
6
|
-
title: PropTypes.string,
|
|
7
|
-
};
|
|
8
|
-
|
|
9
4
|
function AvatarGrid({ children, ...rest }) {
|
|
10
5
|
return (
|
|
11
6
|
<div className="eea avatar-grid" {...rest}>
|
|
@@ -18,11 +13,6 @@ AvatarGrid.Content = ({ children }) => {
|
|
|
18
13
|
return <div className="content">{children}</div>;
|
|
19
14
|
};
|
|
20
15
|
|
|
21
|
-
AvatarGrid.Title = ({ children, ...rest }) => (
|
|
22
|
-
<h3 className={`grid-title ${rest.showTitle ? '' : 'hidden'}`}>
|
|
23
|
-
{children}
|
|
24
|
-
</h3>
|
|
25
|
-
);
|
|
26
16
|
AvatarGrid.Group = ({ children, ...rest }) => {
|
|
27
17
|
let avatars = rest.avatars;
|
|
28
18
|
|
|
@@ -32,10 +22,32 @@ AvatarGrid.Group = ({ children, ...rest }) => {
|
|
|
32
22
|
{avatars.map((avatar, index) => (
|
|
33
23
|
<Grid.Column key={index} mobile={12} tablet={4} computer={4}>
|
|
34
24
|
<div className="avatar-wrapper">
|
|
35
|
-
<Card
|
|
36
|
-
|
|
25
|
+
<Card
|
|
26
|
+
className={`eea rounded ${
|
|
27
|
+
rest.variant === 'default' ? '' : rest.variant
|
|
28
|
+
} ${rest.inverted ? 'inverted' : ''}`}
|
|
29
|
+
fluid={rest.fluid}
|
|
30
|
+
>
|
|
31
|
+
{rest.hasLink ? (
|
|
32
|
+
<Image
|
|
33
|
+
as="a"
|
|
34
|
+
href={rest.href}
|
|
35
|
+
src={avatar.src}
|
|
36
|
+
wrapped
|
|
37
|
+
ui={false}
|
|
38
|
+
alt="card image"
|
|
39
|
+
/>
|
|
40
|
+
) : (
|
|
41
|
+
<Image src={avatar.src} wrapped ui={false} alt="card image" />
|
|
42
|
+
)}
|
|
37
43
|
<Card.Content>
|
|
38
|
-
|
|
44
|
+
{rest.hasLink ? (
|
|
45
|
+
<Card.Header>
|
|
46
|
+
<a href={rest.href}>{avatar.title}</a>
|
|
47
|
+
</Card.Header>
|
|
48
|
+
) : (
|
|
49
|
+
<Card.Header>{avatar.title}</Card.Header>
|
|
50
|
+
)}
|
|
39
51
|
<Card.Description>{avatar.description}</Card.Description>
|
|
40
52
|
</Card.Content>
|
|
41
53
|
</Card>
|
|
@@ -8,18 +8,38 @@ export default {
|
|
|
8
8
|
title: 'Components/Card/Rounded Card',
|
|
9
9
|
component: AvatarGrid,
|
|
10
10
|
argTypes: {
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
variant: {
|
|
12
|
+
options: ['default', 'primary', 'secondary', 'tertiary'],
|
|
13
|
+
control: { type: 'select' },
|
|
14
|
+
description: 'card variation class',
|
|
13
15
|
table: {
|
|
16
|
+
type: {
|
|
17
|
+
summary: 'string',
|
|
18
|
+
},
|
|
19
|
+
defaultValue: { summary: 'default' },
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
inverted: {
|
|
23
|
+
description: 'Inverted card',
|
|
24
|
+
table: {
|
|
25
|
+
defaultValue: { summary: 'false' },
|
|
14
26
|
type: { summary: 'boolean' },
|
|
15
|
-
defaultValue: { summary: true },
|
|
16
27
|
},
|
|
17
28
|
},
|
|
18
|
-
|
|
19
|
-
description: '
|
|
29
|
+
fluid: {
|
|
30
|
+
description: 'take up the width of its container',
|
|
20
31
|
table: {
|
|
21
|
-
|
|
22
|
-
|
|
32
|
+
type: {
|
|
33
|
+
summary: 'boolean',
|
|
34
|
+
},
|
|
35
|
+
defaultValue: { summary: false },
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
hasLink: {
|
|
39
|
+
description: 'Clickable card',
|
|
40
|
+
table: {
|
|
41
|
+
defaultValue: { summary: 'true' },
|
|
42
|
+
type: { summary: 'boolean' },
|
|
23
43
|
},
|
|
24
44
|
},
|
|
25
45
|
avatars: {
|
|
@@ -36,10 +56,7 @@ const GridTemplate = (args) => (
|
|
|
36
56
|
<Container>
|
|
37
57
|
<AvatarGrid>
|
|
38
58
|
<AvatarGrid.Content>
|
|
39
|
-
<AvatarGrid.
|
|
40
|
-
{args.title}
|
|
41
|
-
</AvatarGrid.Title>
|
|
42
|
-
<AvatarGrid.Group avatars={args.avatars}></AvatarGrid.Group>
|
|
59
|
+
<AvatarGrid.Group avatars={args.avatars} {...args}></AvatarGrid.Group>
|
|
43
60
|
</AvatarGrid.Content>
|
|
44
61
|
</AvatarGrid>
|
|
45
62
|
</Container>
|
|
@@ -47,8 +64,11 @@ const GridTemplate = (args) => (
|
|
|
47
64
|
|
|
48
65
|
export const RoundedGrid = GridTemplate.bind({});
|
|
49
66
|
RoundedGrid.args = {
|
|
50
|
-
|
|
51
|
-
|
|
67
|
+
variant: 'default',
|
|
68
|
+
inverted: false,
|
|
69
|
+
fluid: false,
|
|
70
|
+
hasLink: true,
|
|
71
|
+
href: '/#',
|
|
52
72
|
avatars: [
|
|
53
73
|
{
|
|
54
74
|
src: imgUrl,
|