@eeacms/volto-eea-design-system 0.4.3 → 0.4.4

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 CHANGED
@@ -4,8 +4,52 @@ 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.4](https://github.com/eea/volto-eea-design-system/compare/0.4.3...0.4.4)
8
+
9
+ - Make dots container of slick slider relative [`#184`](https://github.com/eea/volto-eea-design-system/pull/184)
10
+ - [R3] Divider component [`#170`](https://github.com/eea/volto-eea-design-system/pull/170)
11
+ - Remove a tag for menu item -> use only the class [`#183`](https://github.com/eea/volto-eea-design-system/pull/183)
12
+ - Autobuild of docusaurus docs [`7f0962d`](https://github.com/eea/volto-eea-design-system/commit/7f0962d26986e801c46b3390a90640b4f5f8cd24)
13
+ - fix(divider): Text colors and transform [`e524e10`](https://github.com/eea/volto-eea-design-system/commit/e524e1002bb0700ea69782cf5a95c6073ab383d2)
14
+ - Autobuild of docusaurus docs [`1652dda`](https://github.com/eea/volto-eea-design-system/commit/1652dda1428a7e4736c0d1b818a0fe27255d12ea)
15
+ - refactor(footer): to latest figma design #182 [`3e0ba2b`](https://github.com/eea/volto-eea-design-system/commit/3e0ba2b659db9dc1b140d853840a06bd3ce31cab)
16
+ - Autobuild of docusaurus docs [`58402e0`](https://github.com/eea/volto-eea-design-system/commit/58402e040a8a5080b4a07cd575fb9fe87624b593)
17
+ - change(Divider): Rename color property to theme [`0deffc8`](https://github.com/eea/volto-eea-design-system/commit/0deffc823609d23131a85bc180e4a3f5a67a64aa)
18
+ - change(footer): tweaked column sizes to the values before my changes [`fdf2718`](https://github.com/eea/volto-eea-design-system/commit/fdf271868e44bce2904cc28c6fa924ee4c9ba759)
19
+ - refactor(footer): move subfooter logic to the proper component #185 [`3034577`](https://github.com/eea/volto-eea-design-system/commit/303457719128c9699dd34939bd8db2b647977667)
20
+ - change(footer): added managed by section as properties [`9328fc3`](https://github.com/eea/volto-eea-design-system/commit/9328fc3084baf22439e1892d256d9a167b911849)
21
+ - Autobuild of docusaurus docs [`d171921`](https://github.com/eea/volto-eea-design-system/commit/d1719215a0ec3c52474b79d647618e329a627e08)
22
+ - lint fix [`657cf4e`](https://github.com/eea/volto-eea-design-system/commit/657cf4ed917c4ff992aa033c3d9f4884a949d86d)
23
+ - change(footer): moved SubFooter logic to SubFooter.jsx from Footer story [`902383a`](https://github.com/eea/volto-eea-design-system/commit/902383a0bb3446dc69237099bd429ead5e30a6c1)
24
+ - Remove unnecessary spaces [`d137981`](https://github.com/eea/volto-eea-design-system/commit/d137981430809345bfb3ad494e7ab981c93c3e51)
25
+ - Autobuild of docusaurus docs [`5b0be9c`](https://github.com/eea/volto-eea-design-system/commit/5b0be9cc97e1166b983f46d5732e5c57f4e970d0)
26
+ - refactor(testimonial): changed divider color to secondary [`84282f9`](https://github.com/eea/volto-eea-design-system/commit/84282f960ab22ccb8403e975c055c61d1023193a)
27
+ - Autobuild of docusaurus docs [`e856488`](https://github.com/eea/volto-eea-design-system/commit/e85648834e23c02670957b8463d4e0fd3a649728)
28
+ - fix(footer): story aria labels for social media links [`254bdc7`](https://github.com/eea/volto-eea-design-system/commit/254bdc7ba944943f5d08a71f9d0a3a31bdc06044)
29
+ - docs(divider): switch to secondary color [`239844b`](https://github.com/eea/volto-eea-design-system/commit/239844be374a2f6bc4667e7ab3d2f52bfdc181ad)
30
+ - perf(storybook): added storybook favicon [`38eabc3`](https://github.com/eea/volto-eea-design-system/commit/38eabc3124c85dd56bf5c68c0fb1e967c39055ec)
31
+ - docs(divider): showcase path fix [`d5ea03f`](https://github.com/eea/volto-eea-design-system/commit/d5ea03f60034edc918054aa273e44b84b2537716)
32
+ - refactor(footer): update links and logo align [`7afbab9`](https://github.com/eea/volto-eea-design-system/commit/7afbab9b37982a557ac8bfa4430205ce912c3b8b)
33
+ - refactor(footer): logo updates and adjustments [`101bc9d`](https://github.com/eea/volto-eea-design-system/commit/101bc9dfe4136240457f335de867a83c28d59339)
34
+ - fix(divider): restore space between classes [`c595c15`](https://github.com/eea/volto-eea-design-system/commit/c595c152c144463f33757157ed7d6797ae31ceed)
35
+ - refactor(footer): update controls [`b0b872b`](https://github.com/eea/volto-eea-design-system/commit/b0b872b1415c9792a5886f619195f9c0471ea564)
36
+ - refactor(footer): use tokens and adjust spacing [`2cb1669`](https://github.com/eea/volto-eea-design-system/commit/2cb166949913f725271050e863b38e7630748135)
37
+ - refactor(Divider):add divider with content inside story [`e2d66dc`](https://github.com/eea/volto-eea-design-system/commit/e2d66dca901fa189d69b65239dc34b1969097be8)
38
+ - refactor(footer): use remix icons for social links [`5ef9aa2`](https://github.com/eea/volto-eea-design-system/commit/5ef9aa2cebb6f96857a1920cefbf7e367b4d7c28)
39
+ - refactor(Divider_:remove green color class & add tertiary [`95f3018`](https://github.com/eea/volto-eea-design-system/commit/95f30186bc1768e08f00ad7d5ffa2a70402ac553)
40
+ - refactor(Divider):remove clean class and use fitted prop [`8d2be35`](https://github.com/eea/volto-eea-design-system/commit/8d2be350dcc44fd56b5fbfb791fb6b2a45bd8a52)
41
+ - refactor(footer): update logos and less structure [`66b8e0f`](https://github.com/eea/volto-eea-design-system/commit/66b8e0f12825968d94f7d572f2823d9a8a3a239b)
42
+ - refactor(footer): first footer updates [`d18a2ee`](https://github.com/eea/volto-eea-design-system/commit/d18a2ee59d0deb143075d8dfeb949898ad1f6399)
43
+ - refactor(divider): remove custom divider from theme config [`a0409e8`](https://github.com/eea/volto-eea-design-system/commit/a0409e8df3c9ba043717140455369a3630f0da85)
44
+ - refactor(testimonial): update divider [`784450a`](https://github.com/eea/volto-eea-design-system/commit/784450abdf395318fe89d8d3d0a1e398393cc93c)
45
+ - refactor(divider): remove custom divider [`d4870d2`](https://github.com/eea/volto-eea-design-system/commit/d4870d2252ad216e82213fa1f94cc39609ae676d)
46
+ - feat(divider): create story for divider [`b10a2e0`](https://github.com/eea/volto-eea-design-system/commit/b10a2e08b14962bed9f13317754f4124ee60d313)
47
+
7
48
  #### [0.4.3](https://github.com/eea/volto-eea-design-system/compare/0.4.2...0.4.3)
8
49
 
50
+ > 3 June 2022
51
+
52
+ - Release [`#181`](https://github.com/eea/volto-eea-design-system/pull/181)
9
53
  - Autobuild of docusaurus docs [`adc7b64`](https://github.com/eea/volto-eea-design-system/commit/adc7b64312b98a56a893bc99571149353a8c0f00)
10
54
  - fix(edit): Fix columns/accordion inner toolbar padding [`fafbb52`](https://github.com/eea/volto-eea-design-system/commit/fafbb525baa60c339906dc6a33d2f9418d050be6)
11
55
  - Autobuild of docusaurus docs [`12f9a51`](https://github.com/eea/volto-eea-design-system/commit/12f9a51906a6b444857c2b2c988436eeab412064)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "@eeacms/volto-eea-design-system: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/semantic.less CHANGED
@@ -233,10 +233,6 @@
233
233
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/inpageNavigation';
234
234
  }
235
235
 
236
- & {
237
- @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/divider';
238
- }
239
-
240
236
  & {
241
237
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/testimonial';
242
238
  }
@@ -0,0 +1,170 @@
1
+ import React from 'react';
2
+ import { Divider, Container } from 'semantic-ui-react';
3
+
4
+ export default {
5
+ title: 'Components/Divider',
6
+ component: Divider,
7
+ argTypes: {
8
+ theme: {
9
+ options: ['default', 'primary', 'secondary', 'tertiary'],
10
+ control: { type: 'select' },
11
+ description: 'Variations of the divider',
12
+ table: {
13
+ type: {
14
+ summary: 'string',
15
+ },
16
+ defaultValue: {
17
+ summary: 'default',
18
+ },
19
+ },
20
+ },
21
+ section: {
22
+ description:
23
+ 'A divider can provide greater margins to divide sections of content.',
24
+ table: {
25
+ type: {
26
+ summary: 'boolean',
27
+ },
28
+ defaultValue: {
29
+ summary: false,
30
+ },
31
+ },
32
+ },
33
+ hidden: {
34
+ description:
35
+ 'A hidden divider divides content without creating a dividing line',
36
+ table: {
37
+ type: {
38
+ summary: 'boolean',
39
+ },
40
+ defaultValue: {
41
+ summary: false,
42
+ },
43
+ },
44
+ },
45
+ short: {
46
+ description: 'Shot divider',
47
+ table: {
48
+ type: {
49
+ summary: 'boolean',
50
+ },
51
+ defaultValue: {
52
+ summary: false,
53
+ },
54
+ },
55
+ },
56
+ fitted: {
57
+ description: 'Remove space above or below the divider',
58
+ table: {
59
+ type: {
60
+ summary: 'boolean',
61
+ },
62
+ defaultValue: {
63
+ summary: false,
64
+ },
65
+ },
66
+ },
67
+ content: {
68
+ description: 'Horizontal divider content',
69
+ table: {
70
+ type: {
71
+ summary: 'string | object',
72
+ },
73
+ defaultValue: {
74
+ summary: '',
75
+ },
76
+ },
77
+ },
78
+ },
79
+ };
80
+
81
+ function Template({ hidden, theme, section, short, fitted }) {
82
+ return (
83
+ <Container>
84
+ <p>
85
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
86
+ ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
87
+ magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
88
+ ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
89
+ quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
90
+ arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
91
+ Nullam dictum felis eu pede link mollis.
92
+ </p>
93
+ <Divider
94
+ hidden={hidden}
95
+ section={section}
96
+ className={`${theme === 'default' ? '' : theme} ${
97
+ short ? 'short' : ''
98
+ }`}
99
+ fitted={fitted}
100
+ />
101
+ <p>
102
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
103
+ ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
104
+ magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
105
+ ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
106
+ quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
107
+ arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
108
+ Nullam dictum felis eu pede link mollis.
109
+ </p>
110
+ </Container>
111
+ );
112
+ }
113
+
114
+ export const Default = Template.bind({});
115
+ Default.args = {
116
+ theme: 'default',
117
+ hidden: false,
118
+ section: false,
119
+ short: false,
120
+ fitted: false,
121
+ };
122
+ Default.parameters = {
123
+ controls: { exclude: ['content'] },
124
+ hideNoControlsWarning: true,
125
+ };
126
+
127
+ function DividerWithContentTemplate({ content, theme, section, fitted }) {
128
+ return (
129
+ <Container>
130
+ <p>
131
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
132
+ ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
133
+ magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
134
+ ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
135
+ quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
136
+ arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
137
+ Nullam dictum felis eu pede link mollis.
138
+ </p>
139
+ <Divider
140
+ horizontal
141
+ section={section}
142
+ className={`${theme === 'default' ? '' : theme}`}
143
+ fitted={fitted}
144
+ >
145
+ <div>{content}</div>
146
+ </Divider>
147
+ <p>
148
+ Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo
149
+ ligula eget dolor. Aenean massa strong. Cum sociis natoque penatibus et
150
+ magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis,
151
+ ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa
152
+ quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget,
153
+ arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo.
154
+ Nullam dictum felis eu pede link mollis.
155
+ </p>
156
+ </Container>
157
+ );
158
+ }
159
+
160
+ export const DividerWithContent = DividerWithContentTemplate.bind({});
161
+ DividerWithContent.args = {
162
+ content: 'Divider Content',
163
+ theme: 'default',
164
+ section: false,
165
+ fitted: false,
166
+ };
167
+ DividerWithContent.parameters = {
168
+ controls: { exclude: ['short', 'hidden'] },
169
+ hideNoControlsWarning: true,
170
+ };
@@ -7,16 +7,18 @@ const Contact = ({ children, contacts, header, address }) =>
7
7
  children?.length ? (
8
8
  children
9
9
  ) : (
10
- <>
10
+ <div className="contact-block">
11
11
  <p className="header">{header}</p>
12
12
  {contacts?.map((contact, index) => (
13
13
  <div className="contact" key={index}>
14
- <Icon name={contact.icon} size="big"></Icon>
15
- <Link to={contact.link}>{contact.text}</Link>
14
+ <Link to={contact.link}>
15
+ <Icon className={contact.icon} size="big"></Icon>
16
+ {contact.text}
17
+ </Link>
16
18
  </div>
17
19
  ))}
18
20
  {address && <p className="address">{address}</p>}
19
- </>
21
+ </div>
20
22
  );
21
23
 
22
24
  Contact.propTypes = {
@@ -2,8 +2,8 @@ import React from 'react';
2
2
 
3
3
  const FooterHeader = (props) => {
4
4
  return (
5
- <div className="theme-sites">
6
- <p className="header">{props.children}</p>
5
+ <div className="theme-sites mobile hidden">
6
+ <p className="header text-center">{props.children}</p>
7
7
  </div>
8
8
  );
9
9
  };
@@ -9,7 +9,7 @@ const Sites = (props) => {
9
9
 
10
10
  //fallback to props
11
11
  return (
12
- <div className="theme-sites">
12
+ <div className="theme-sites mobile hidden">
13
13
  <div className="logos">
14
14
  <Grid columns={5}>
15
15
  {props.sites &&
@@ -9,9 +9,9 @@ const Social = (props) => {
9
9
 
10
10
  return (
11
11
  <div className="social">
12
- {props.social.map((item, index) => (
12
+ {props.social?.map((item, index) => (
13
13
  <a href={item.link} aria-label={`${item.name} link`} key={index}>
14
- <Icon name={item.name}></Icon>
14
+ <Icon className={item.icon}></Icon>
15
15
  </a>
16
16
  ))}
17
17
  </div>
@@ -1,9 +1,62 @@
1
1
  import React from 'react';
2
+ import Footer from './Footer';
3
+
4
+ import { Grid, Image } from 'semantic-ui-react';
2
5
 
3
6
  const SubFooter = (props) => {
4
7
  if (props.children) {
5
8
  return <div>{props.children}</div>;
6
9
  }
10
+
11
+ return (
12
+ <div className={'subfooter'}>
13
+ <Grid>
14
+ <Grid.Column mobile={12} tablet={5} computer={6}>
15
+ <div className="item">
16
+ <p className="header text-center logo-header">
17
+ {props.logosHeader}
18
+ </p>
19
+
20
+ <Grid>
21
+ {props.managedBy &&
22
+ props.managedBy.map((manager, index) => (
23
+ <Grid.Column
24
+ mobile={manager.columnSize.mobile}
25
+ tablet={manager.columnSize.tablet}
26
+ computer={manager.columnSize.computer}
27
+ >
28
+ <div className={manager.className}>
29
+ <a href={manager.link}>
30
+ <Image src={manager.src} alt={manager.alt}></Image>
31
+ </a>
32
+ </div>
33
+ </Grid.Column>
34
+ ))}
35
+ </Grid>
36
+ </div>
37
+ </Grid.Column>
38
+ <Grid.Column
39
+ mobile={6}
40
+ tablet={2}
41
+ computer={2}
42
+ className="mobile hidden"
43
+ ></Grid.Column>
44
+ <Grid.Column mobile={12} tablet={5} computer={4}>
45
+ <div className="item">
46
+ <Footer.Contact
47
+ contacts={props.contacts}
48
+ header={props.contactHeader}
49
+ address={props.address}
50
+ />
51
+ <Footer.Social social={props.social} />
52
+ </div>
53
+ </Grid.Column>
54
+ </Grid>
55
+ <Grid.Row>
56
+ <Footer.Actions actions={props.actions} />
57
+ </Grid.Row>
58
+ </div>
59
+ );
7
60
  };
8
61
 
9
62
  export default SubFooter;
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import Divider from '../../Divider/Divider';
4
3
 
5
4
  import Quote from '../Quote';
6
- import { Grid, Card, Image } from 'semantic-ui-react';
5
+ import { Grid, Card, Image, Divider } from 'semantic-ui-react';
7
6
 
8
7
  Testimonial.propTypes = {
9
8
  title: PropTypes.string,
@@ -12,9 +11,9 @@ Testimonial.propTypes = {
12
11
  function Testimonial({ children, ...rest }) {
13
12
  return (
14
13
  <div className="eea testimonial" {...rest}>
15
- <Divider />
14
+ <Divider fitted className="secondary" />
16
15
  <Grid>{children}</Grid>
17
- <Divider />
16
+ <Divider fitted className="secondary" />
18
17
  </div>
19
18
  );
20
19
  }
Binary file
@@ -85,7 +85,6 @@
85
85
  @header : 'eea';
86
86
  @tag : 'eea';
87
87
  @inpageNavigation : 'eea';
88
- @divider : 'eea';
89
88
  @testimonial : 'eea';
90
89
  @avatarGrid : 'eea';
91
90
  @keyContent : 'eea';