@eeacms/volto-eea-design-system 1.0.0-alpha.4 → 1.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/CHANGELOG.md +85 -1
  2. package/package.json +5 -5
  3. package/src/semantic.less +4 -0
  4. package/src/ui/Banner/Banner.stories.jsx +37 -1
  5. package/src/ui/Copyright/Copyright.jsx +27 -0
  6. package/src/ui/Copyright/Copyright.stories.jsx +40 -0
  7. package/src/ui/Header/Header.jsx +15 -12
  8. package/src/ui/Hero/Hero.jsx +20 -1
  9. package/src/ui/Hero/Hero.stories.jsx +70 -0
  10. package/src/ui/TagList/TagList.jsx +4 -0
  11. package/src/ui/TagList/TagList.stories.jsx +7 -5
  12. package/src/ui/index.js +2 -0
  13. package/theme/theme.config +2 -0
  14. package/theme/themes/eea/elements/label.variables +5 -5
  15. package/theme/themes/eea/elements/list.overrides +6 -0
  16. package/theme/themes/eea/elements/list.variables +1 -1
  17. package/theme/themes/eea/extras/banner.less +2 -1
  18. package/theme/themes/eea/extras/contentBox.less +2 -2
  19. package/theme/themes/eea/extras/copyright.less +29 -0
  20. package/theme/themes/eea/extras/copyright.variables +11 -0
  21. package/theme/themes/eea/extras/hero.less +7 -0
  22. package/theme/themes/eea/extras/hero.variables +5 -1
  23. package/theme/themes/eea/extras/tag.variables +1 -1
  24. package/theme/themes/eea/extras/tagList.less +13 -1
  25. package/theme/themes/eea/extras/tagList.variables +3 -1
  26. package/theme/themes/eea/tokens/colors.less +1 -1
  27. package/website/docs/2-whatsnew.md +88 -2
  28. package/website/docs/webdev/3-Guidelines/2-colours.mdx +818 -0
  29. package/website/docs/webdev/3-Guidelines/3-images.md +6 -0
  30. package/website/docs/webdev/3-Guidelines/_partials/_markdown-eea-color-palette.mdx +558 -0
  31. package/website/docs/webdev/3-Guidelines/_partials/_markdown-link-colors.mdx +20 -0
  32. package/website/docs/webdev/3-Guidelines/_partials/_markdown-state-colors.mdx +23 -0
  33. package/website/docs/webdev/3-Guidelines/_partials/_markdown-supplementary-colors.mdx +162 -0
  34. package/website/docs/webdev/md_components/button_components/showcase_markdown.md +7 -7
  35. package/website/docs/webdev/md_components/button_components/usage_markdown.md +7 -0
  36. package/website/docs/webdev/md_components/media_container_image_components/usage_markdown.md +2 -1
  37. package/website/docs/webdev/md_components/page_header_components/usage_markdown.md +9 -6
  38. package/website/docs/webdev/md_components/static/BISE.png +0 -0
  39. package/website/docs/webdev/md_components/static/FISE.png +0 -0
  40. package/website/docs/webdev/md_components/static/FISE_logo.svg +1 -0
  41. package/website/docs/webdev/md_components/static/WISEF.png +0 -0
  42. package/website/docs/webdev/md_components/static/WISEM.png +0 -0
  43. package/website/docs/webdev/md_components/static/newEEAlogo.png +0 -0
  44. package/website/docusaurus.config.js +1 -1
  45. package/website/src/css/custom.css +118 -2
  46. package/website/docs/webdev/3-Guidelines/2-colours.md +0 -915
package/CHANGELOG.md CHANGED
@@ -4,6 +4,91 @@ 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.0.0-alpha.6](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.5...1.0.0-alpha.6) - 7 December 2022
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat(Header): add hideSearch prop [Miu Razvan - [`13ddfe5`](https://github.com/eea/volto-eea-design-system/commit/13ddfe59a6bd7fe2050b70ac4524a6f6c5c169ea)]
12
+ - feat(Docusaurus): Image copyright information #257 from eea/image-copyright-info [ichim-david - [`2119515`](https://github.com/eea/volto-eea-design-system/commit/21195153240da052acb7171f7904449ed7854cb3)]
13
+ - feat(copyright): create copyright component and import it in banner [Antonis Tarantilis - [`8fcde9d`](https://github.com/eea/volto-eea-design-system/commit/8fcde9df2915585e2336024436cef76642820d75)]
14
+
15
+ #### :bug: Bug Fixes
16
+
17
+ - fix(tags): content gap when using tags-content wrapper [David Ichim - [`c4eb9b8`](https://github.com/eea/volto-eea-design-system/commit/c4eb9b89d4ea09f936b7fcdc22a84105fd8639af)]
18
+
19
+ #### :nail_care: Enhancements
20
+
21
+ - change(copyright): removed copyrightVariant from Banner and Hero stories [David Ichim - [`ac62e07`](https://github.com/eea/volto-eea-design-system/commit/ac62e079d4eafb818f9cae25880a04d9e069d107)]
22
+ - change(copyright): now uses text color css variable with fallback to white [David Ichim - [`ee7268b`](https://github.com/eea/volto-eea-design-system/commit/ee7268ba359f079dfce45fd0fe91f75ae5c37e94)]
23
+ - change(copyright): removed color variant [David Ichim - [`747b8a2`](https://github.com/eea/volto-eea-design-system/commit/747b8a27155569247d4975837587e3320327fce9)]
24
+ - change(copyright): line height to match page header implementation [David Ichim - [`a56254e`](https://github.com/eea/volto-eea-design-system/commit/a56254e7588cfc6aca999f550084d79dca6e9a6c)]
25
+ - change(copyright): implementation to add classes on content sections [David Ichim - [`e10bde6`](https://github.com/eea/volto-eea-design-system/commit/e10bde674f2b1f722ec6c70734e4a72c018f4afe)]
26
+ - change(tagList): modified implementation to align to volto-tags-block [David Ichim - [`7a57a3d`](https://github.com/eea/volto-eea-design-system/commit/7a57a3d4bf7ede4b5ab5f3ef045d664aaaf67f2c)]
27
+ - refactor(hero): add copyright component to hero [Antonis Tarantilis - [`0fa88fa`](https://github.com/eea/volto-eea-design-system/commit/0fa88fad3e7b48789dc6d0462b9f78dd359b8949)]
28
+ - refactor(copyright): remove data section [Antonis Tarantilis - [`52cb09d`](https://github.com/eea/volto-eea-design-system/commit/52cb09dc363bb0a2e363ec86dcefb4c57e07a14d)]
29
+
30
+ #### :house: Documentation changes
31
+
32
+ - docs(copyright): copyright documentation [Dora Anastasiou - [`a90ed76`](https://github.com/eea/volto-eea-design-system/commit/a90ed766e60b5eb5b027beb36d2b1967d2c41fa3)]
33
+
34
+ #### :hammer_and_wrench: Others
35
+
36
+ - Release 1.0.0-alpha.6 [Alin Voinea - [`6ca32f0`](https://github.com/eea/volto-eea-design-system/commit/6ca32f03c1860781d3c1c4ff9558713ad8acac95)]
37
+ - feature(copyright): image information #250 from eea/feature-copyright [ichim-david - [`a8618c7`](https://github.com/eea/volto-eea-design-system/commit/a8618c7f0230a19b6c973aa2c9646463de9eeffb)]
38
+ - lint fix by introducing local variable tagsGap [David Ichim - [`7b6c0ae`](https://github.com/eea/volto-eea-design-system/commit/7b6c0ae2ebfed06221700faf9a0d0c2bdeb60d99)]
39
+ - grammar fixes [ichim-david - [`cb2a5a5`](https://github.com/eea/volto-eea-design-system/commit/cb2a5a5fd9dfc01eccc179721b06988742f5b2e2)]
40
+ - Update usage_markdown.md [ichim-david - [`f76d4a2`](https://github.com/eea/volto-eea-design-system/commit/f76d4a242f795451d64ef2d192d0006a0ed5eac1)]
41
+ - Update 3-images.md [ichim-david - [`1b0ef03`](https://github.com/eea/volto-eea-design-system/commit/1b0ef033f9c8a36aaa739f268263f24a6d0fb473)]
42
+ ### [1.0.0-alpha.5](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.4...1.0.0-alpha.5) - 29 November 2022
43
+
44
+ #### :rocket: New Features
45
+
46
+ - feat(Iconography): import and showcase remix icons [Antonis Tarantilis - [`777112f`](https://github.com/eea/volto-eea-design-system/commit/777112f7e77ce8c74c3fd4384bff6ec9694aba04)]
47
+
48
+ #### :bug: Bug Fixes
49
+
50
+ - fix(contentBox): avoid text decoration for header-link added on cards [David Ichim - [`3ccb592`](https://github.com/eea/volto-eea-design-system/commit/3ccb592db6f465cec59124b94fb6918b513bb761)]
51
+ - fix(label): color for yellow variant as white isn't accessible on yellow color [David Ichim - [`91d8880`](https://github.com/eea/volto-eea-design-system/commit/91d8880a829d2728c49a1953f6d2d8c2c812990c)]
52
+ - fix(label): margin value for ribbon image left and right margin [David Ichim - [`f8e1129`](https://github.com/eea/volto-eea-design-system/commit/f8e1129734709d6034539a6522105af9d43fef20)]
53
+ - fix(lists): bullet position by using padding instead of margin [David Ichim - [`0ecae2e`](https://github.com/eea/volto-eea-design-system/commit/0ecae2e7fe61b98d8795f876a525fbbc873bf799)]
54
+ - fix(docusaurus): right bar overflow fix [Manthos Matzios - [`197c763`](https://github.com/eea/volto-eea-design-system/commit/197c763624f70556c62379bc0751763725d0fed3)]
55
+
56
+ #### :nail_care: Enhancements
57
+
58
+ - change(tag): set gap on tags element for margin between tag elements [David Ichim - [`726bc6d`](https://github.com/eea/volto-eea-design-system/commit/726bc6da821a366a5afa03659e614cc73ed02c0b)]
59
+ - refactor(docusaurus): move supplementary, state and link colors to partials [Giorgos Stamatis - [`2776be3`](https://github.com/eea/volto-eea-design-system/commit/2776be32615d7a6bdd8561a523fb9cfb1a85e38b)]
60
+ - refactor(docusaurus): fix side menu / moved more content in palette partial [Giorgos Stamatis - [`f5b7077`](https://github.com/eea/volto-eea-design-system/commit/f5b70775471369ca8f3193784b9bc66caa8fb76f)]
61
+ - refactor(docusaurus): eea color palette in separate file [Giorgos Stamatis - [`6c855df`](https://github.com/eea/volto-eea-design-system/commit/6c855df9c2238f8d21860ade4578aa969b68448e)]
62
+ - refactor(docusaurus): classes for color boxes [Giorgos Stamatis - [`80219d5`](https://github.com/eea/volto-eea-design-system/commit/80219d52bc63842d8e6382dbbe7d43cdc8a29b9c)]
63
+ - perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
64
+
65
+ #### :house: Internal changes
66
+
67
+ - chore(colours): fix wrong class name [Giorgos Stamatis - [`51ad0a8`](https://github.com/eea/volto-eea-design-system/commit/51ad0a8232f7f35cae05f5861d7822db852b3f8d)]
68
+
69
+ #### :house: Documentation changes
70
+
71
+ - docs(colors): switch FISE logo to png [Giorgos Stamatis - [`335471f`](https://github.com/eea/volto-eea-design-system/commit/335471fd95bbd78cd7bd80b960272baa0a32e1c5)]
72
+ - docs(colours): adjust logos heights [Antonis Tarantilis - [`854d4fb`](https://github.com/eea/volto-eea-design-system/commit/854d4fb761be7307e83e5dd2eb0fe5a0117727c5)]
73
+ - docs(colors): thematic pages integration [Dora Anastasiou - [`ea7a422`](https://github.com/eea/volto-eea-design-system/commit/ea7a4220a93d3fd2f437b51462f7f19d99f52595)]
74
+ - docs(colors): fix swatches accessibility [Dora Anastasiou - [`306cb74`](https://github.com/eea/volto-eea-design-system/commit/306cb74d3e06390a9c15da9b8b29c9d3c8f0f6c5)]
75
+ - docs(typography): merge designer and dev units [Giorgos Stamatis - [`65c240e`](https://github.com/eea/volto-eea-design-system/commit/65c240eddbf20b3fc870d301b96837f49ad9caca)]
76
+ - docs(colors): updated visited [Dora Anastasiou - [`0248fd1`](https://github.com/eea/volto-eea-design-system/commit/0248fd164cbf85168945797244977c305c67608d)]
77
+ - docs(FISE): replaced logo [Giorgos Stamatis - [`f7d8331`](https://github.com/eea/volto-eea-design-system/commit/f7d833127f769d79f099618b98789c6929b4ba08)]
78
+ - docs(colors): blue-grey-6 adjustment [Giorgos Stamatis - [`e7ab2d1`](https://github.com/eea/volto-eea-design-system/commit/e7ab2d15d3a617bc5b3713897f3e3521d9e2720a)]
79
+ - docs(docusaurus): typography and colors fixes according to comments on PR [Manthos Matzios - [`ae20a72`](https://github.com/eea/volto-eea-design-system/commit/ae20a7258cc88465fa0937895c2999952736f456)]
80
+ - docs(typography): readded extra font sizes, fixed fluid [Manthos Matzios - [`a4a5d89`](https://github.com/eea/volto-eea-design-system/commit/a4a5d892538a9713d14ac718b1bf2c771be09810)]
81
+ - docs(colors): minors updates and instructions [Manthos Matzios - [`84ac882`](https://github.com/eea/volto-eea-design-system/commit/84ac8828e430b4af2b461534b4e2f81189080145)]
82
+ - docs(docusaurus): Iconography updates, thematic platforms [Dora Anastasiou - [`2a0e596`](https://github.com/eea/volto-eea-design-system/commit/2a0e596bd002290e0759d8c5e568da4d318f7d59)]
83
+ - docs(colours): added active colour [Manthos Matzios - [`574f7a9`](https://github.com/eea/volto-eea-design-system/commit/574f7a95ea8a9510d03a104ad72fafafcae5d738)]
84
+ - docs(typography): changed em to percentages [Manthos Matzios - [`d417600`](https://github.com/eea/volto-eea-design-system/commit/d4176007ff4b421bc988b618488e0ba6b550f9fe)]
85
+ - docs(docusaurus): color updates [Manthos Matzios - [`cc13b54`](https://github.com/eea/volto-eea-design-system/commit/cc13b5499a9ae13bb45925a057f8ff4d6a2e4643)]
86
+
87
+ #### :hammer_and_wrench: Others
88
+
89
+ - feature(Docusaurus): Updates on color palette information including thematic websites #231 from eea/refactor-docusaurus [ichim-david - [`ec7843d`](https://github.com/eea/volto-eea-design-system/commit/ec7843dea07f626dc1c71ae1baa8bb5b0caa52f3)]
90
+ - Back to dev [Alin Voinea - [`563fbc5`](https://github.com/eea/volto-eea-design-system/commit/563fbc5fac0d4b0295690d0a3a4e04271753f18a)]
91
+ - perf(docusaurus): added remixicon and roboto locally [Giorgos Stamatis - [`b67b1a7`](https://github.com/eea/volto-eea-design-system/commit/b67b1a72bc9cdc7c62a25967e81b430f8b62d558)]
7
92
  ### [1.0.0-alpha.4](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.3...1.0.0-alpha.4) - 22 November 2022
8
93
 
9
94
  #### :bug: Bug Fixes
@@ -24,7 +109,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
24
109
 
25
110
  #### :hammer_and_wrench: Others
26
111
 
27
- - Release 1.0.0-alpha.4 [Alin Voinea - [`ec8938b`](https://github.com/eea/volto-eea-design-system/commit/ec8938b4847a2973c7a853896d609d2de0041019)]
28
112
  - Exclude mockups from npm package [Alin Voinea - [`634af8e`](https://github.com/eea/volto-eea-design-system/commit/634af8e3ddabec36a18597d8d7638888269875fc)]
29
113
  - Update eea.github.io on all commits in develop branch [Alin Voinea - [`3d0b8d7`](https://github.com/eea/volto-eea-design-system/commit/3d0b8d745138bd2e0219560c8c895ce2c56dbf04)]
30
114
  - Trigger re-build [Alin Voinea - [`3566dd2`](https://github.com/eea/volto-eea-design-system/commit/3566dd2b4d2cd12496e05b792c85a78de550dd50)]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.0.0-alpha.4",
3
+ "version": "1.0.0-alpha.6",
4
4
  "description": "@eeacms/volto-eea-design-system: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
@@ -21,14 +21,14 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@eeacms/volto-corsproxy": "*",
24
- "remixicon": "2.5.0",
24
+ "react-countup": "^6.3.0",
25
25
  "react-slick": "^0.28.1",
26
- "slick-carousel": "^1.8.1",
27
- "react-countup": "^6.3.0"
26
+ "remixicon": "2.5.0",
27
+ "slick-carousel": "^1.8.1"
28
28
  },
29
29
  "devDependencies": {
30
- "@plone/scripts": "*",
31
30
  "@cypress/code-coverage": "^3.10.0",
31
+ "@plone/scripts": "*",
32
32
  "babel-plugin-transform-class-properties": "^6.24.1",
33
33
  "md5": "^2.3.0"
34
34
  },
package/src/semantic.less CHANGED
@@ -284,3 +284,7 @@
284
284
  & {
285
285
  @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/hero';
286
286
  }
287
+
288
+ & {
289
+ @import '@eeacms/volto-eea-design-system/../theme/themes/eea/extras/copyright';
290
+ }
@@ -2,7 +2,8 @@ import React from 'react';
2
2
  import Banner from './Banner';
3
3
  // eslint-disable-next-line import/no-unresolved
4
4
  import imgUrl from '@eeacms/volto-eea-design-system/../theme/themes/eea/assets/images/banner.png';
5
- import { Popup } from 'semantic-ui-react';
5
+ import { Popup, Icon } from 'semantic-ui-react';
6
+ import Copyright from '../Copyright/Copyright';
6
7
 
7
8
  export default {
8
9
  title: 'Components/Page Header',
@@ -43,6 +44,32 @@ export default {
43
44
  type: { summary: 'boolean' },
44
45
  },
45
46
  },
47
+ copyrightPosition: {
48
+ name: 'Position',
49
+ control: {
50
+ type: 'inline-radio',
51
+ options: ['left', 'right'],
52
+ },
53
+ type: { name: 'string' },
54
+ table: {
55
+ category: 'Copyright',
56
+ defaultValue: { summary: '"left"' },
57
+ },
58
+ },
59
+ copyrightIcon: {
60
+ table: {
61
+ category: 'Copyright',
62
+ defaultValue: { summary: '""' },
63
+ type: { summary: 'string' },
64
+ },
65
+ },
66
+ copyrightText: {
67
+ table: {
68
+ category: 'Copyright',
69
+ defaultValue: { summary: '""' },
70
+ type: { summary: 'string' },
71
+ },
72
+ },
46
73
  },
47
74
  };
48
75
 
@@ -100,6 +127,12 @@ const Template = (args) => (
100
127
  </>
101
128
  </Banner.Metadata>
102
129
  )}
130
+ <Copyright copyrightPosition={args.copyrightPosition}>
131
+ <Copyright.Icon>
132
+ <Icon className={args.copyrightIcon} />
133
+ </Copyright.Icon>
134
+ <Copyright.Text>{args.copyrightText}</Copyright.Text>
135
+ </Copyright>
103
136
  </Banner.Content>
104
137
  </Banner>
105
138
  );
@@ -117,4 +150,7 @@ Default.args = {
117
150
  image: true,
118
151
  hideShareButton: false,
119
152
  hideDownloadButton: false,
153
+ copyrightPosition: 'left',
154
+ copyrightIcon: 'ri-copyright-line',
155
+ copyrightText: 'Image copyright: Velit fusce sed sem ut.',
120
156
  };
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import PropTypes from 'prop-types';
3
+
4
+ Copyright.propTypes = {
5
+ copyrightPosition: PropTypes.oneOf(['left', 'right']),
6
+ };
7
+
8
+ function Copyright({ children, ...rest }) {
9
+ return (
10
+ <div className={`eea copyright ${rest.copyrightPosition}`}>
11
+ <div className={'wrapper'}>{children}</div>
12
+ </div>
13
+ );
14
+ }
15
+
16
+ Copyright.Icon = ({ children, ...rest }) => (
17
+ <span {...rest} className={'icon-wrapper'}>
18
+ {children}
19
+ </span>
20
+ );
21
+
22
+ Copyright.Text = ({ children, ...rest }) => (
23
+ <span {...rest} className={'icon-content'}>
24
+ {children}
25
+ </span>
26
+ );
27
+ export default Copyright;
@@ -0,0 +1,40 @@
1
+ import React from 'react';
2
+ import Copyright from './Copyright';
3
+ import { Container, Icon, Segment } from 'semantic-ui-react';
4
+
5
+ export default {
6
+ title: 'Components/Copyright',
7
+ component: Copyright,
8
+ argTypes: {
9
+ copyrightPosition: {
10
+ name: 'Position',
11
+ control: {
12
+ type: 'inline-radio',
13
+ options: ['left', 'right'],
14
+ },
15
+ type: { name: 'string' },
16
+ table: {
17
+ defaultValue: { summary: '"left"' },
18
+ },
19
+ },
20
+ },
21
+ };
22
+
23
+ export const Default = (args) => (
24
+ <Container>
25
+ <Segment className={'inverted'}>
26
+ <Copyright copyrightPosition={args.copyrightPosition}>
27
+ <Copyright.Icon>
28
+ <Icon className={args.icon} />
29
+ </Copyright.Icon>
30
+ <Copyright.Text>{args.text}</Copyright.Text>
31
+ </Copyright>
32
+ </Segment>
33
+ </Container>
34
+ );
35
+
36
+ Default.args = {
37
+ copyrightPosition: 'left',
38
+ icon: 'ri-copyright-line',
39
+ text: 'Image copyright: Velit fusce sed sem ut.',
40
+ };
@@ -107,6 +107,7 @@ const Main = ({
107
107
  pathname,
108
108
  transparency,
109
109
  inverted,
110
+ hideSearch,
110
111
  }) => {
111
112
  const history = useHistory();
112
113
  const [activeItem, setActiveItem] = React.useState(pathname);
@@ -231,18 +232,20 @@ const Main = ({
231
232
  ))}
232
233
  </div>
233
234
  )}
234
- <div
235
- className="search-action"
236
- onClick={searchOnClick}
237
- role="none"
238
- ref={searchButtonRef}
239
- >
240
- {/* <Icon name={!state.activeSearch ? 'search' : 'close'} /> */}
241
- <Image
242
- src={!searchIsActive ? `${searchIcon}` : `${closeIcon}`}
243
- alt="search button open/close"
244
- />
245
- </div>
235
+ {!hideSearch && (
236
+ <div
237
+ className="search-action"
238
+ onClick={searchOnClick}
239
+ role="none"
240
+ ref={searchButtonRef}
241
+ >
242
+ {/* <Icon name={!state.activeSearch ? 'search' : 'close'} /> */}
243
+ <Image
244
+ src={!searchIsActive ? `${searchIcon}` : `${closeIcon}`}
245
+ alt="search button open/close"
246
+ />
247
+ </div>
248
+ )}
246
249
  <Header.BurgerAction
247
250
  className={`mobile ${burger}`}
248
251
  onClick={mobileBurgerOnClick}
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
 
4
+ import { Icon } from 'semantic-ui-react';
5
+ import Copyright from '../Copyright/Copyright';
6
+
4
7
  Hero.propTypes = {
5
8
  image: PropTypes.bool,
6
9
  fullWidth: PropTypes.bool,
@@ -21,6 +24,11 @@ function Hero({
21
24
  alignContent,
22
25
  backgroundVariant,
23
26
  children,
27
+
28
+ has_copyright,
29
+ copyrightPosition,
30
+ copyrightIcon,
31
+ copyrightText,
24
32
  }) {
25
33
  return (
26
34
  // full width prop
@@ -36,7 +44,18 @@ function Hero({
36
44
  <div
37
45
  className={`hero-block-inner-wrapper d-flex ui container flex-items-${alignContent}`}
38
46
  >
39
- <div className="hero-block-body">{children}</div>
47
+ <div className="hero-block-body">
48
+ {children}
49
+
50
+ {has_copyright && (
51
+ <Copyright copyrightPosition={copyrightPosition}>
52
+ <Copyright.Icon>
53
+ <Icon className={copyrightIcon} />
54
+ </Copyright.Icon>
55
+ <Copyright.Text>{copyrightText}</Copyright.Text>
56
+ </Copyright>
57
+ )}
58
+ </div>
40
59
  </div>
41
60
  </div>
42
61
  </div>
@@ -54,6 +54,40 @@ export default {
54
54
  type: { summary: 'boolean' },
55
55
  },
56
56
  },
57
+ has_copyright: {
58
+ name: 'Copyright',
59
+ table: {
60
+ category: 'Copyright',
61
+ defaultValue: { summary: '' },
62
+ type: { summary: 'boolean' },
63
+ },
64
+ },
65
+ copyrightPosition: {
66
+ name: 'Position',
67
+ control: {
68
+ type: 'inline-radio',
69
+ options: ['left', 'right'],
70
+ },
71
+ type: { name: 'string' },
72
+ table: {
73
+ category: 'Copyright',
74
+ defaultValue: { summary: '"left"' },
75
+ },
76
+ },
77
+ copyrightIcon: {
78
+ table: {
79
+ category: 'Copyright',
80
+ defaultValue: { summary: '""' },
81
+ type: { summary: 'string' },
82
+ },
83
+ },
84
+ copyrightText: {
85
+ table: {
86
+ category: 'Copyright',
87
+ defaultValue: { summary: '""' },
88
+ type: { summary: 'string' },
89
+ },
90
+ },
57
91
  },
58
92
  };
59
93
 
@@ -93,6 +127,11 @@ Default.args = {
93
127
  inverted: true,
94
128
  alignContent: 'center',
95
129
  backgroundVariant: 'grey',
130
+
131
+ has_copyright: true,
132
+ copyrightPosition: 'left',
133
+ copyrightIcon: 'ri-copyright-line',
134
+ copyrightText: 'Image copyright: Velit fusce sed sem ut.',
96
135
  };
97
136
  Default.parameters = {
98
137
  controls: {
@@ -125,6 +164,11 @@ Playground.args = {
125
164
  inverted: true,
126
165
  alignContent: 'center',
127
166
  backgroundVariant: 'tertiary',
167
+
168
+ has_copyright: true,
169
+ copyrightPosition: 'left',
170
+ copyrightIcon: 'ri-copyright-line',
171
+ copyrightText: 'Image copyright: Velit fusce sed sem ut.',
128
172
  };
129
173
  Playground.argTypes = {
130
174
  fullWidth: {
@@ -202,4 +246,30 @@ Playground.argTypes = {
202
246
  type: { summary: 'string' },
203
247
  },
204
248
  },
249
+ copyrightPosition: {
250
+ name: 'Position',
251
+ control: {
252
+ type: 'inline-radio',
253
+ options: ['left', 'right'],
254
+ },
255
+ type: { name: 'string' },
256
+ table: {
257
+ category: 'Copyright',
258
+ defaultValue: { summary: '"left"' },
259
+ },
260
+ },
261
+ copyrightIcon: {
262
+ table: {
263
+ category: 'Copyright',
264
+ defaultValue: { summary: '""' },
265
+ type: { summary: 'string' },
266
+ },
267
+ },
268
+ copyrightText: {
269
+ table: {
270
+ category: 'Copyright',
271
+ defaultValue: { summary: '""' },
272
+ type: { summary: 'string' },
273
+ },
274
+ },
205
275
  };
@@ -14,4 +14,8 @@ TagList.Title = ({ children, ...rest }) => (
14
14
  </span>
15
15
  );
16
16
 
17
+ TagList.Content = ({ children }) => (
18
+ <div className="tags-content">{children}</div>
19
+ );
20
+
17
21
  export default TagList;
@@ -43,11 +43,13 @@ export const List = (args) => (
43
43
  <Container>
44
44
  <TagList className={args.direction}>
45
45
  <TagList.Title>{args.title}</TagList.Title>
46
- {args.tags.map((tag, index) => [
47
- <Tag className={tag.class} href={tag.href} key={index}>
48
- {tag.category}
49
- </Tag>,
50
- ])}
46
+ <TagList.Content>
47
+ {args.tags.map((tag, index) => [
48
+ <Tag className={tag.class} href={tag.href} key={index}>
49
+ {tag.category}
50
+ </Tag>,
51
+ ])}
52
+ </TagList.Content>
51
53
  </TagList>
52
54
  </Container>
53
55
  );
package/src/ui/index.js CHANGED
@@ -37,3 +37,5 @@ export LanguageLabeledIcon from './LanguageLabeledIcon/LanguageLabeledIcon';
37
37
  export RelatedContent from './Card/RelatedContent/RelatedContent';
38
38
 
39
39
  export Hero from './Hero/Hero';
40
+
41
+ export Copyright from './Copyright/Copyright';
@@ -109,6 +109,7 @@
109
109
  @callout : 'eea';
110
110
  @quote : 'eea';
111
111
  @hero : 'eea';
112
+ @copyright : 'eea';
112
113
 
113
114
  /*******************************
114
115
  Folders
@@ -134,4 +135,5 @@
134
135
  @import (optional) "@{siteFolder}/@{addon}/@{addontype}s/@{addonelement}.overrides";
135
136
  }
136
137
 
138
+
137
139
  /* End Config */
@@ -9,8 +9,8 @@
9
9
  @labelFontSize: @fontSize;
10
10
 
11
11
  @verticalAlign: baseline;
12
- @verticalMargin: 0em;
13
- @horizontalMargin: @relative2px;
12
+ @verticalMargin: 0;
13
+ @horizontalMargin: 0;
14
14
  @backgroundColor: @grey;
15
15
  @color: @white;
16
16
  @backgroundImage: none;
@@ -142,7 +142,7 @@
142
142
  @rightRibbonOffset: calc(100% + @ribbonMargin + @ribbonTriangleSize);
143
143
 
144
144
  @ribbonImageTopDistance: 1rem;
145
- @ribbonImageMargin: -0.05rem; /* Rounding Offset on Triangle */
145
+ @ribbonImageMargin: 0.05rem; /* Rounding Offset on Triangle */
146
146
  @ribbonImageOffset: calc(-@ribbonImageMargin - @ribbonTriangleSize);
147
147
  @rightRibbonImageOffset: calc(100% + @ribbonImageMargin + @ribbonTriangleSize);
148
148
 
@@ -173,7 +173,7 @@
173
173
 
174
174
  @redTextColor: @white;
175
175
  @orangeTextColor: @white;
176
- @yellowTextColor: @white;
176
+ @yellowTextColor: @textColor;
177
177
  @oliveTextColor: @white;
178
178
  @greenTextColor: @white;
179
179
  @tealTextColor: @white;
@@ -187,7 +187,7 @@
187
187
 
188
188
  @redHoverTextColor: @white;
189
189
  @orangeHoverTextColor: @white;
190
- @yellowHoverTextColor: @white;
190
+ @yellowHoverTextColor: @textColor;
191
191
  @oliveHoverTextColor: @white;
192
192
  @greenHoverTextColor: @white;
193
193
  @tealHoverTextColor: @white;
@@ -19,6 +19,12 @@ dl dd {
19
19
  }
20
20
 
21
21
  /* Unordered list */
22
+
23
+ // use padding instead
24
+ ul.ui.list, .ui.bulleted.list {
25
+ padding-left: @bulletDistance;
26
+ margin-left: 0;
27
+ }
22
28
  .ui.bulleted.list .list > .item:before,
23
29
  .ui.bulleted.list .list > a.item:before,
24
30
  .ui.bulleted.list > .item:before,
@@ -165,7 +165,7 @@
165
165
  /* Bulleted */
166
166
 
167
167
  @bulletSize: 1.1rem;
168
- @bulletDistance: 1.25rem;
168
+ @bulletDistance: @rem-space-5;
169
169
  @bulletOffset: -@bulletDistance;
170
170
 
171
171
  @bulletOpacity: 1;
@@ -43,6 +43,7 @@
43
43
  .metadata {
44
44
  font-size: @mobileMetadataFontSize;
45
45
  line-height: @mobileMetadataLineHeight;
46
+ margin-bottom: @rem-space-3;
46
47
 
47
48
  .field.type {
48
49
  font-weight: @metadataTypeFontWeight;
@@ -129,7 +130,7 @@
129
130
  }
130
131
  }
131
132
 
132
- @media only screen and (max-width: @tabletBreakpoint - 1) {
133
+ @media only screen and (max-width: @largestMobileScreen) {
133
134
  .actions .action {
134
135
  margin-bottom: @mobileActionsActionMarginBottom;
135
136
  }
@@ -55,7 +55,7 @@
55
55
  --text-color-hover: @backgroundColorSupplementary;
56
56
  }
57
57
  // inherit link
58
- .content-box[class*="ary"] a:not(.ui, .item) {
58
+ .content-box[class*="ary"] a:not(.ui, .item, .header-link) {
59
59
  color: inherit;
60
60
  text-decoration: underline;
61
61
  }
@@ -64,4 +64,4 @@
64
64
  .content-box .slate-editor-link {
65
65
  color: inherit;
66
66
  text-decoration: underline;
67
- }
67
+ }
@@ -0,0 +1,29 @@
1
+ @type: 'extra';
2
+ @element: 'copyright';
3
+
4
+ @import (multiple) '../../theme.config';
5
+
6
+ /*-------------------
7
+ Copyright
8
+ --------------------*/
9
+
10
+ .eea.copyright {
11
+ width: @copyrightWidth;
12
+
13
+ .wrapper {
14
+ display: flex;
15
+ color: @copyrightContentColor;
16
+ font-size: @copyrightContentFontSize;
17
+ line-height: @copyrightLineHeight;
18
+ gap: @copyrightContentPaddingRight;
19
+ }
20
+ &.left .wrapper {
21
+ justify-content: flex-start;
22
+ }
23
+ &.right .wrapper {
24
+ justify-content: flex-end;
25
+ }
26
+ .icon {
27
+ margin: 0; // override default
28
+ }
29
+ }
@@ -0,0 +1,11 @@
1
+ /*******************************
2
+ Copyright
3
+ *******************************/
4
+
5
+ @copyrightWidth: 100%;
6
+
7
+ /* Content */
8
+ @copyrightContentColor: var(--text-color, @grey-1);
9
+ @copyrightContentFontSize: @font-size-00;
10
+ @copyrightLineHeight: @font-lineheight-0;
11
+ @copyrightContentPaddingRight: @rem-space-1;
@@ -46,6 +46,10 @@
46
46
  height: 100%;
47
47
  }
48
48
 
49
+ .hero-block-body .eea.copyright {
50
+ position: absolute;
51
+ bottom: @mobileCopyrightBottom;
52
+ }
49
53
 
50
54
  .hero-block-text .quoted > * {
51
55
  display: inline-block;
@@ -91,6 +95,9 @@
91
95
  .hero-block-body {
92
96
  gap: @desktopHeroBlockBodyGap;
93
97
  }
98
+ .hero-block-body .eea.copyright {
99
+ bottom: @desktopCopyrightBottom;
100
+ }
94
101
  }
95
102
 
96
103
  .loadUIOverrides();