@eeacms/volto-eea-design-system 0.2.3 → 0.3.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/.github/workflows/auto-comment.yml +20 -0
- package/CHANGELOG.md +75 -0
- package/package.json +1 -1
- package/src/semantic.less +2 -2
- package/src/ui/Breadcrumbs/Breadcrumb.stories.jsx +3 -0
- package/src/ui/Breadcrumbs/Breadcrumbs.jsx +1 -0
- package/src/ui/Callout/Callout.jsx +12 -0
- package/src/ui/Callout/Callout.stories.jsx +42 -0
- package/src/ui/{Pullquote/Pullquote.jsx → Quote/Quote.jsx} +9 -9
- package/src/ui/{Pullquote/Pullquote.stories.jsx → Quote/Quote.stories.jsx} +18 -18
- package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.jsx +10 -11
- package/src/ui/{Testimonial → Quote/Testimonial}/Testimonial.stories.jsx +17 -8
- package/src/ui/index.js +3 -3
- package/theme/theme.config +1 -1
- package/theme/themes/eea/collections/breadcrumb.overrides +0 -16
- package/theme/themes/eea/collections/form.overrides +1 -1
- package/theme/themes/eea/collections/table.overrides +48 -0
- package/theme/themes/eea/collections/table.variables +16 -0
- package/theme/themes/eea/elements/button.overrides +11 -2
- package/theme/themes/eea/elements/container.overrides +4 -19
- package/theme/themes/eea/elements/container.variables +5 -4
- package/theme/themes/eea/elements/input.overrides +68 -0
- package/theme/themes/eea/elements/segment.overrides +80 -0
- package/theme/themes/eea/extras/avatar.variables +28 -0
- package/theme/themes/eea/extras/callout.less +43 -0
- package/theme/themes/eea/extras/callout.variables +19 -0
- package/theme/themes/eea/extras/header.less +1 -1
- package/theme/themes/eea/extras/main.variables +1 -1
- package/theme/themes/eea/extras/{pullquote.less → quote.less} +20 -20
- package/theme/themes/eea/extras/quote.variables +34 -0
- package/theme/themes/eea/extras/testimonial.less +46 -6
- package/theme/themes/eea/extras/testimonial.variables +14 -6
- package/theme/themes/eea/globals/site.variables +11 -5
- package/theme/themes/eea/modules/accordion.variables +2 -2
- package/theme/themes/eea/tokens/fonts.less +38 -0
- package/theme/themes/eea/tokens/sizes.less +17 -0
- package/theme/themes/eea/tokens/tokens.less +2 -0
- package/src/ui/Blockquote/Blockquote.jsx +0 -16
- package/src/ui/Blockquote/Blockquote.stories.jsx +0 -48
- package/theme/themes/eea/extras/blockquote.less +0 -92
- package/theme/themes/eea/extras/blockquote.variables +0 -35
- package/theme/themes/eea/extras/pullquote.variables +0 -34
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@size-000: -.5rem;
|
|
2
|
+
@size-00: -.25rem;
|
|
3
|
+
@size-1: .25rem;
|
|
4
|
+
@size-2: .5rem;
|
|
5
|
+
@size-3: 1rem;
|
|
6
|
+
@size-4: 1.25rem;
|
|
7
|
+
@size-5: 1.5rem;
|
|
8
|
+
@size-6: 1.75rem;
|
|
9
|
+
@size-7: 2rem;
|
|
10
|
+
@size-8: 3rem;
|
|
11
|
+
@size-9: 4rem;
|
|
12
|
+
@size-10: 5rem;
|
|
13
|
+
@size-11: 7.5rem;
|
|
14
|
+
@size-12: 10rem;
|
|
15
|
+
@size-13: 15rem;
|
|
16
|
+
@size-14: 20rem;
|
|
17
|
+
@size-15: 30rem;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
function Blockquote({ children, className, ...rest }) {
|
|
4
|
-
return (
|
|
5
|
-
<div className="eea blockquote" {...rest}>
|
|
6
|
-
<blockquote className="quote">{children}</blockquote>
|
|
7
|
-
</div>
|
|
8
|
-
);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
Blockquote.Content = ({ children, as: As, ...rest }) =>
|
|
12
|
-
As ? <As {...rest}>{children}</As> : children;
|
|
13
|
-
|
|
14
|
-
Blockquote.Meta = ({ children }) => <div className="meta">{children}</div>;
|
|
15
|
-
|
|
16
|
-
export default Blockquote;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Blockquote from './Blockquote';
|
|
3
|
-
|
|
4
|
-
const CITATION =
|
|
5
|
-
'An interconnected grid will help deliver the ultimate goal of the Energy Union, to make sure affordable, secure and sustainable energy, and also growth across the EU.';
|
|
6
|
-
const AUTHOR = 'President Juncker';
|
|
7
|
-
|
|
8
|
-
export default {
|
|
9
|
-
title: 'Components/Blockquote',
|
|
10
|
-
component: Blockquote,
|
|
11
|
-
argTypes: {
|
|
12
|
-
content: {
|
|
13
|
-
name: 'citation',
|
|
14
|
-
description: 'Blockquote content',
|
|
15
|
-
type: { name: 'string', required: true },
|
|
16
|
-
},
|
|
17
|
-
meta: {
|
|
18
|
-
name: 'meta',
|
|
19
|
-
description: 'Author of the content',
|
|
20
|
-
type: { name: 'string', required: true },
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const Default = (args) => (
|
|
26
|
-
<Blockquote>
|
|
27
|
-
<Blockquote.Content>{args.content}</Blockquote.Content>
|
|
28
|
-
<Blockquote.Meta>{args.meta}</Blockquote.Meta>
|
|
29
|
-
</Blockquote>
|
|
30
|
-
);
|
|
31
|
-
|
|
32
|
-
Default.args = {
|
|
33
|
-
content: CITATION,
|
|
34
|
-
meta: AUTHOR,
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export const Reversed = (args) => (
|
|
38
|
-
<Blockquote>
|
|
39
|
-
<Blockquote.Meta>{args.meta}</Blockquote.Meta>
|
|
40
|
-
<Blockquote.Content>{args.content}</Blockquote.Content>
|
|
41
|
-
</Blockquote>
|
|
42
|
-
);
|
|
43
|
-
|
|
44
|
-
Reversed.args = {
|
|
45
|
-
content:
|
|
46
|
-
'The Ministry of Environment & Energy is responsible for environmental policy, the preparation of plans and programmes, and overseeing their implementation. The Ministry is also in charge of the transposition of EU environmental Directives into national law.',
|
|
47
|
-
meta: '22 December 1989',
|
|
48
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
@type: 'extra';
|
|
2
|
-
@element: 'blockquote';
|
|
3
|
-
|
|
4
|
-
@import (multiple) '../../theme.config';
|
|
5
|
-
|
|
6
|
-
/*******************************
|
|
7
|
-
Blockquote
|
|
8
|
-
*******************************/
|
|
9
|
-
|
|
10
|
-
blockquote.callout,
|
|
11
|
-
p.callout {
|
|
12
|
-
border: @calloutBorder;
|
|
13
|
-
box-shadow: @calloutBoxShadow;
|
|
14
|
-
border-radius: @calloutBorderRadius;
|
|
15
|
-
padding-top: @calloutPadding;
|
|
16
|
-
padding-bottom: @calloutPadding;
|
|
17
|
-
border-left: @mobileBlockquoteBorderLeft;
|
|
18
|
-
color: @quoteColor;
|
|
19
|
-
font-size: @mobileQuoteFontSize;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.eea.blockquote {
|
|
23
|
-
border-left: @mobileBlockquoteBorderLeft;
|
|
24
|
-
|
|
25
|
-
.quote {
|
|
26
|
-
display: flex;
|
|
27
|
-
flex-direction: column;
|
|
28
|
-
margin: @mobileQuoteMargin;
|
|
29
|
-
gap: @quoteGap;
|
|
30
|
-
color: @quoteColor;
|
|
31
|
-
font-size: @mobileQuoteFontSize;
|
|
32
|
-
font-weight: @quoteFontWeight;
|
|
33
|
-
|
|
34
|
-
.meta {
|
|
35
|
-
margin: @metaMargin;
|
|
36
|
-
font-size: @mobileMetaFontSize;
|
|
37
|
-
font-weight: @metaWeight;
|
|
38
|
-
align-self: @metaAlignSelf;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.eea.slate.blockquote {
|
|
44
|
-
.quote {
|
|
45
|
-
display: block;
|
|
46
|
-
flex-direction: unset;
|
|
47
|
-
gap: unset;
|
|
48
|
-
font-weight: @slateQuoteFontWeight;
|
|
49
|
-
|
|
50
|
-
br {
|
|
51
|
-
content: '';
|
|
52
|
-
display: flex;
|
|
53
|
-
margin: @slateQuoteGap 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
@media only screen and (min-width: @tabletBreakpoint) {
|
|
59
|
-
blockquote.callout,
|
|
60
|
-
p.callout {
|
|
61
|
-
border-left: @tabletBlockquoteBorderLeft;
|
|
62
|
-
font-size: @tabletQuoteFontSize;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.eea.blockquote {
|
|
66
|
-
border-left: @tabletBlockquoteBorderLeft;
|
|
67
|
-
.quote {
|
|
68
|
-
margin: @tabletQuoteMargin;
|
|
69
|
-
font-size: @tabletQuoteFontSize;
|
|
70
|
-
.meta {
|
|
71
|
-
font-size: @tabletMetaFontSize;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
@media only screen and (min-width: @computerBreakpoint) {
|
|
78
|
-
blockquote.callout,
|
|
79
|
-
p.callout {
|
|
80
|
-
font-size: @computerQuoteFontSize;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.eea.blockquote .quote {
|
|
84
|
-
margin: @computerQuoteMargin;
|
|
85
|
-
font-size: @computerQuoteFontSize;
|
|
86
|
-
.meta {
|
|
87
|
-
font-size: @computerMetaFontSize;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.loadUIOverrides();
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*******************************
|
|
2
|
-
Blockquote
|
|
3
|
-
*******************************/
|
|
4
|
-
/* Body */
|
|
5
|
-
@mobileBlockquoteBorderLeft : @5px solid @secondaryColor;
|
|
6
|
-
@tabletBlockquoteBorderLeft : @10px solid @secondaryColor;
|
|
7
|
-
@childrenBorderLeft : none;
|
|
8
|
-
|
|
9
|
-
/* Quote */
|
|
10
|
-
@quoteColor : @secondaryColor;
|
|
11
|
-
@mobileQuoteMargin : 0.75rem 0.625rem;
|
|
12
|
-
@tabletQuoteMargin : 0.75rem 1rem;
|
|
13
|
-
@computerQuoteMargin : 0.75rem 1.25rem;
|
|
14
|
-
@quoteGap : 0.75rem;
|
|
15
|
-
@slateQuoteGap : 0.75rem / 2;
|
|
16
|
-
@quoteColor : @japaneseIndigo;
|
|
17
|
-
@mobileQuoteFontSize : 0.688rem;
|
|
18
|
-
@tabletQuoteFontSize : @h6;
|
|
19
|
-
@computerQuoteFontSize : @h5;
|
|
20
|
-
@quoteFontWeight : 700;
|
|
21
|
-
@slateQuoteFontWeight : 400;
|
|
22
|
-
|
|
23
|
-
/* Meta */
|
|
24
|
-
@metaMargin : 0;
|
|
25
|
-
@metaWeight : 400;
|
|
26
|
-
@mobileMetaFontSize : 0.688rem;
|
|
27
|
-
@tabletMetaFontSize : @h6;
|
|
28
|
-
@computerMetaFontSize : @h5;
|
|
29
|
-
@metaAlignSelf : start;
|
|
30
|
-
|
|
31
|
-
/* Callout */
|
|
32
|
-
@calloutBorder : none;
|
|
33
|
-
@calloutBoxShadow : none;
|
|
34
|
-
@calloutBorderRadius : 0;
|
|
35
|
-
@calloutPadding : 0;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/*******************************
|
|
2
|
-
Pullquote
|
|
3
|
-
*******************************/
|
|
4
|
-
|
|
5
|
-
/* Body */
|
|
6
|
-
@pullquotePadding : @largeGap 0;
|
|
7
|
-
@pullquoteFloatLeftPadding : @largeGap @largeGap @largeGap 0;
|
|
8
|
-
@pullquoteFloatRightPadding : @largeGap 0 @largeGap @largeGap;
|
|
9
|
-
@pullquoteMargin : 0;
|
|
10
|
-
@maxWidthOnFloat : 50%;
|
|
11
|
-
@contentWordBreak : break-word;
|
|
12
|
-
@contentWordBreakHyphens : manual;
|
|
13
|
-
|
|
14
|
-
/* Quote paragraph */
|
|
15
|
-
@mobileQuotePadding : 0;
|
|
16
|
-
@tabletQuotePadding : 0.5rem 0 1rem;
|
|
17
|
-
|
|
18
|
-
/* Author */
|
|
19
|
-
@authorTextColor : @darkCyan;
|
|
20
|
-
@authorTextAlign : right;
|
|
21
|
-
@authorFontWeight : @bold;
|
|
22
|
-
@authorFontSize : 1.25rem;
|
|
23
|
-
@authorMargin : 0;
|
|
24
|
-
|
|
25
|
-
/* Metadata */
|
|
26
|
-
@metaTextAlign : right;
|
|
27
|
-
@metaFontWeight : @normal;
|
|
28
|
-
@metaFontSize : 1rem;
|
|
29
|
-
|
|
30
|
-
/* Icon */
|
|
31
|
-
@mobileQuoteIconSize : 2rem;
|
|
32
|
-
@tabletQuoteIconSize : 3rem;
|
|
33
|
-
@quoteIconColor : @secondaryColor;
|
|
34
|
-
@quoteDownIconFloat : right;
|