@eeacms/volto-eea-design-system 1.33.0 → 1.34.0
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 +13 -1
- package/package.json +1 -1
- package/src/ui/Banner/Banner.jsx +20 -6
- package/src/ui/Breadcrumbs/Breadcrumbs.jsx +2 -1
- package/templates/eea.hbs +1 -27
- package/theme/themes/eea/elements/list.overrides +7 -0
- package/theme/themes/eea/elements/list.variables +5 -9
- package/theme/themes/eea/extras/banner.less +63 -1
- package/theme/themes/eea/extras/banner.variables +3 -0
- package/theme/themes/eea/extras/contextNavigation.less +17 -4
- package/theme/themes/eea/extras/contextNavigation.variables +7 -4
- package/theme/themes/eea/extras/header.less +14 -0
- package/theme/themes/eea/modules/checkbox.overrides +5 -0
- package/theme/themes/eea/tokens/fonts.less +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,19 @@ 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.34.0](https://github.com/eea/volto-eea-design-system/compare/1.33.1...1.34.0) - 11 October 2024
|
|
8
|
+
|
|
9
|
+
#### :hammer_and_wrench: Others
|
|
10
|
+
|
|
11
|
+
- Update package.json [Ichim David - [`015ed44`](https://github.com/eea/volto-eea-design-system/commit/015ed44a8c624a5ceaedf131425ab83f9b3832a4)]
|
|
12
|
+
### [1.33.1](https://github.com/eea/volto-eea-design-system/compare/1.33.0...1.33.1) - 19 September 2024
|
|
13
|
+
|
|
14
|
+
#### :house: Internal changes
|
|
15
|
+
|
|
16
|
+
- chore: Fix what's new link on top to open in the same window [alin - [`2e91336`](https://github.com/eea/volto-eea-design-system/commit/2e913366b629e908a27bebe6c6cb58d7ca7aa099)]
|
|
17
|
+
- chore: Cleanup What's new section in docusaurus [alin - [`3e72176`](https://github.com/eea/volto-eea-design-system/commit/3e721768edf8c3ba55c6d6aea4ed04d5323472f5)]
|
|
18
|
+
- chore: Add redmine links in whatsnew [valentinab25 - [`d1ef895`](https://github.com/eea/volto-eea-design-system/commit/d1ef895a2717259914ccc3667959d0398e716348)]
|
|
19
|
+
|
|
7
20
|
### [1.33.0](https://github.com/eea/volto-eea-design-system/compare/1.32.4...1.33.0) - 13 September 2024
|
|
8
21
|
|
|
9
22
|
#### :bug: Bug Fixes
|
|
@@ -16,7 +29,6 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
|
16
29
|
|
|
17
30
|
#### :hammer_and_wrench: Others
|
|
18
31
|
|
|
19
|
-
- Release 1.33.0 [alin - [`41cab61`](https://github.com/eea/volto-eea-design-system/commit/41cab61685812e3d6f8ca6092910867c9359daea)]
|
|
20
32
|
- test: use nodejs18 to run jobs [valentinab25 - [`779511c`](https://github.com/eea/volto-eea-design-system/commit/779511cdbf4e9a031ed3dc58ef13f3cf68372273)]
|
|
21
33
|
### [1.32.4](https://github.com/eea/volto-eea-design-system/compare/1.32.3...1.32.4) - 29 August 2024
|
|
22
34
|
|
package/package.json
CHANGED
package/src/ui/Banner/Banner.jsx
CHANGED
|
@@ -94,15 +94,29 @@ Banner.Action = React.forwardRef(function (
|
|
|
94
94
|
});
|
|
95
95
|
|
|
96
96
|
Banner.Content = ({ children, actions }) => {
|
|
97
|
+
// actions can be a single child or an array of children
|
|
98
|
+
// when we disable actions we get an array of false or undefined
|
|
99
|
+
const actionsWithChildren = actions
|
|
100
|
+
? React.Children.toArray(actions.props.children).some(Boolean)
|
|
101
|
+
: false;
|
|
102
|
+
|
|
97
103
|
return (
|
|
98
104
|
<div className="content">
|
|
99
105
|
<Grid>
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
+
{actionsWithChildren ? (
|
|
107
|
+
<>
|
|
108
|
+
<Grid.Column mobile={10} tablet={9} computer={9}>
|
|
109
|
+
{children}
|
|
110
|
+
</Grid.Column>
|
|
111
|
+
<Grid.Column mobile={2} tablet={3} computer={3} className="actions">
|
|
112
|
+
{actions}
|
|
113
|
+
</Grid.Column>
|
|
114
|
+
</>
|
|
115
|
+
) : (
|
|
116
|
+
<Grid.Column mobile={12} tablet={12} computer={12}>
|
|
117
|
+
{children}
|
|
118
|
+
</Grid.Column>
|
|
119
|
+
)}
|
|
106
120
|
</Grid>
|
|
107
121
|
</div>
|
|
108
122
|
);
|
|
@@ -15,6 +15,7 @@ const Breadcrumbs = ({
|
|
|
15
15
|
sections = [],
|
|
16
16
|
icon = 'ri-arrow-right-s-line',
|
|
17
17
|
size = 'tiny',
|
|
18
|
+
linkLevels = 1,
|
|
18
19
|
}) => {
|
|
19
20
|
return sections.length > 0 ? (
|
|
20
21
|
<Segment className="breadcrumbs" attached vertical>
|
|
@@ -31,7 +32,7 @@ const Breadcrumbs = ({
|
|
|
31
32
|
<Breadcrumb.Divider key={`divider-${item.href}`}>
|
|
32
33
|
<Icon className={icon}></Icon>
|
|
33
34
|
</Breadcrumb.Divider>
|
|
34
|
-
{index < items.length -
|
|
35
|
+
{index < items.length - linkLevels ? (
|
|
35
36
|
<Link key={item.key} to={item.href} className="section">
|
|
36
37
|
{item.title}
|
|
37
38
|
</Link>
|
package/templates/eea.hbs
CHANGED
|
@@ -2,33 +2,7 @@
|
|
|
2
2
|
title: What's new
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
### EEA Design System
|
|
6
|
-
|
|
7
|
-
#### Components ready to be used
|
|
8
|
-
|
|
9
|
-
The following components are ready to be used as Volto `blocks`, `slate` integration, or via the advanced `block styler`:
|
|
10
|
-
- Accordion `block`
|
|
11
|
-
- Call to Action `block`
|
|
12
|
-
- Callout - part of the Description `block`, `slate`
|
|
13
|
-
- Card - part of the Teaser `block` and Listing `block`, it includes several variations like round card e.g., used for Avatar
|
|
14
|
-
- Divider `block`
|
|
15
|
-
- Headings `slate`
|
|
16
|
-
- Hero `block`
|
|
17
|
-
- Item `block` - used for text with an icon (remixicon or custom SVG/image) on the left/right
|
|
18
|
-
- List `slate` - ordered and unordered
|
|
19
|
-
- Quote `block`
|
|
20
|
-
- Statistic `block`
|
|
21
|
-
- Tag `block`
|
|
22
|
-
- Table `block`
|
|
23
|
-
- Tabs `block`
|
|
24
|
-
- Timeline `block`
|
|
25
|
-
|
|
26
|
-
#### Future releases
|
|
27
|
-
|
|
28
|
-
Below is a non-exhaustive list of the work-in-progress which is planned for future releases:
|
|
29
|
-
- Navigation Portlet (used on the left/right hand of content)
|
|
30
|
-
- Spacing/padding system. We want to add the ability for editors to consistently apply various spacing/padding on certain components in order to allow a better alignment when components are used together.
|
|
31
|
-
- Improve docusaurus and storybook with more components, controls, and variations in order to better reflect what is possible in Volto.
|
|
5
|
+
### EEA Design System
|
|
32
6
|
|
|
33
7
|
{{#unless options.hideCredit}}
|
|
34
8
|
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
|
|
@@ -35,6 +35,13 @@ ul.ui.list li:before {
|
|
|
35
35
|
font-size: @bulletSize;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
/* Ordered list */
|
|
39
|
+
|
|
40
|
+
ol.ui.list,
|
|
41
|
+
.ui.ordered.list {
|
|
42
|
+
padding-left: @orderedDistance;
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
// Third layer margin fix
|
|
39
46
|
.ui.ordered.list .list .list > .item:before,
|
|
40
47
|
.ui.ordered.list .list .list > li:before {
|
|
@@ -111,9 +111,7 @@
|
|
|
111
111
|
@linkListItemHoverColor: @hoveredTextColor;
|
|
112
112
|
@linkListItemDownColor: @pressedTextColor;
|
|
113
113
|
@linkListItemActiveColor: @selectedTextColor;
|
|
114
|
-
@linkListTransition:
|
|
115
|
-
@defaultDuration color @defaultEasing
|
|
116
|
-
;
|
|
114
|
+
@linkListTransition: @defaultDuration color @defaultEasing;
|
|
117
115
|
|
|
118
116
|
/* Inverted Link List */
|
|
119
117
|
@invertedLinkListItemColor: @invertedUnselectedTextColor;
|
|
@@ -129,8 +127,7 @@
|
|
|
129
127
|
@selectionListTransition:
|
|
130
128
|
@defaultDuration color @defaultEasing,
|
|
131
129
|
@defaultDuration padding-left @defaultEasing,
|
|
132
|
-
@defaultDuration background-color @defaultEasing
|
|
133
|
-
;
|
|
130
|
+
@defaultDuration background-color @defaultEasing;
|
|
134
131
|
|
|
135
132
|
/* Selection List States */
|
|
136
133
|
@selectionListBackground: transparent;
|
|
@@ -158,8 +155,7 @@
|
|
|
158
155
|
@animatedListTransition:
|
|
159
156
|
@animatedDuration color @defaultEasing @animatedDelay,
|
|
160
157
|
@animatedDuration padding-left @defaultEasing @animatedDelay,
|
|
161
|
-
@animatedDuration background-color @defaultEasing @animatedDelay
|
|
162
|
-
;
|
|
158
|
+
@animatedDuration background-color @defaultEasing @animatedDelay;
|
|
163
159
|
@animatedListIndent: 1em;
|
|
164
160
|
|
|
165
161
|
/* Bulleted */
|
|
@@ -181,12 +177,13 @@
|
|
|
181
177
|
|
|
182
178
|
/* Ordered List */
|
|
183
179
|
@orderedCountName: ordered;
|
|
184
|
-
@orderedCountContent: counters(ordered,
|
|
180
|
+
@orderedCountContent: counters(ordered, '.') ' ';
|
|
185
181
|
@orderedCountColor: inherit;
|
|
186
182
|
@orderedCountDistance: 1.25rem;
|
|
187
183
|
@orderedCountOpacity: 1;
|
|
188
184
|
@orderedCountTextAlign: right;
|
|
189
185
|
@orderedCountVerticalAlign: middle;
|
|
186
|
+
@orderedDistance: @bulletDistance;
|
|
190
187
|
|
|
191
188
|
@orderedChildCountDistance: 1em;
|
|
192
189
|
@orderedChildCountOffset: -2em;
|
|
@@ -232,4 +229,3 @@
|
|
|
232
229
|
@veryRelaxedChildItemVerticalPadding: @relative4px;
|
|
233
230
|
@veryRelaxedHeaderMargin: 0.5rem;
|
|
234
231
|
@veryRelaxedHorizontalPadding: 1.5rem;
|
|
235
|
-
|
|
@@ -8,20 +8,25 @@
|
|
|
8
8
|
--------------------*/
|
|
9
9
|
|
|
10
10
|
.eea.banner {
|
|
11
|
+
--text-color: @white;
|
|
11
12
|
position: relative;
|
|
12
13
|
width: 100%;
|
|
14
|
+
max-width: @bannerMaxWidth;
|
|
13
15
|
background: @bannerBackgroundColor;
|
|
14
|
-
color: @
|
|
16
|
+
color: @bannerTextColor;
|
|
15
17
|
|
|
16
18
|
.gradient {
|
|
17
19
|
background: @backgroundGradient;
|
|
18
20
|
opacity: @backgroundGradientOpacity;
|
|
21
|
+
height: 100%;
|
|
19
22
|
|
|
20
23
|
.content {
|
|
24
|
+
width: 100%;
|
|
21
25
|
padding: @mobileContentPadding;
|
|
22
26
|
|
|
23
27
|
.ui.grid {
|
|
24
28
|
align-items: flex-end;
|
|
29
|
+
width: 100%;
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
.title {
|
|
@@ -107,6 +112,53 @@
|
|
|
107
112
|
}
|
|
108
113
|
}
|
|
109
114
|
|
|
115
|
+
.light-header {
|
|
116
|
+
.container {
|
|
117
|
+
width: 100%;
|
|
118
|
+
max-width: 1300px !important;
|
|
119
|
+
}
|
|
120
|
+
.eea.banner {
|
|
121
|
+
--text-color: @bannerHomepageColor;
|
|
122
|
+
|
|
123
|
+
.content-type {
|
|
124
|
+
color: @secondaryColorCSSVar;
|
|
125
|
+
font-weight: bold;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.gradient .content .subtitle {
|
|
129
|
+
margin: 0 0 0.5rem 0;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.homepage-header .banner {
|
|
135
|
+
--text-color: @bannerHomepageColor;
|
|
136
|
+
height: 500px;
|
|
137
|
+
|
|
138
|
+
.content-type {
|
|
139
|
+
color: @secondaryColorCSSVar;
|
|
140
|
+
font-size: @h2;
|
|
141
|
+
font-weight: bold;
|
|
142
|
+
}
|
|
143
|
+
.container {
|
|
144
|
+
display: flex;
|
|
145
|
+
height: 100%;
|
|
146
|
+
align-items: flex-end;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.content {
|
|
150
|
+
padding: 0 !important;
|
|
151
|
+
margin-bottom: 2rem;
|
|
152
|
+
}
|
|
153
|
+
.grid {
|
|
154
|
+
text-align: center;
|
|
155
|
+
}
|
|
156
|
+
.wrapper {
|
|
157
|
+
justify-content: center;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
|
|
110
162
|
/*Share Popup*/
|
|
111
163
|
|
|
112
164
|
.ui.popup.share-popup {
|
|
@@ -201,7 +253,14 @@
|
|
|
201
253
|
}
|
|
202
254
|
}
|
|
203
255
|
|
|
256
|
+
.light-header .eea.banner .gradient .content {
|
|
257
|
+
padding: @computerContentPadding;
|
|
258
|
+
}
|
|
259
|
+
|
|
204
260
|
@media only screen and (min-width: @computerBreakpoint) {
|
|
261
|
+
.hero-header .banner {
|
|
262
|
+
height: 800px;
|
|
263
|
+
}
|
|
205
264
|
.eea.banner {
|
|
206
265
|
.image {
|
|
207
266
|
.gradient .content {
|
|
@@ -211,6 +270,9 @@
|
|
|
211
270
|
|
|
212
271
|
.gradient .content {
|
|
213
272
|
padding: @computerContentPadding;
|
|
273
|
+
.light-header & {
|
|
274
|
+
padding: @computerContentPaddingWithImage;
|
|
275
|
+
}
|
|
214
276
|
|
|
215
277
|
.title {
|
|
216
278
|
margin: @computerTitleMargin;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
.context-navigation {
|
|
7
7
|
max-width : @widescreenSidenavMaxWidth;
|
|
8
|
-
background : @sidenavBackground;
|
|
8
|
+
// background : @sidenavBackground;
|
|
9
9
|
margin-right : @sidenavMarginRight;
|
|
10
10
|
padding-left : @sidenavPaddingLeft;
|
|
11
11
|
overflow : @sidenavOverflow;
|
|
@@ -115,18 +115,27 @@
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
/*******************************
|
|
118
|
-
|
|
118
|
+
Side navigation
|
|
119
119
|
*******************************/
|
|
120
120
|
.accordion-header {
|
|
121
121
|
cursor: pointer;
|
|
122
122
|
justify-content: space-between;
|
|
123
123
|
align-items: center;
|
|
124
124
|
padding: @sidenavAccordionHeaderPadding;
|
|
125
|
+
font-weight: @sidenavItemFontWeight;
|
|
126
|
+
background-color: @sidenavAccordionHeaderBackgroundColor;
|
|
127
|
+
box-shadow: @sidenavBoxShadow;
|
|
125
128
|
}
|
|
126
129
|
|
|
130
|
+
.context-navigation-list {
|
|
131
|
+
width: @sidenavMaxWidth;
|
|
132
|
+
box-shadow: @sidenavBoxShadow;
|
|
133
|
+
background-color: @sidenavBackground;
|
|
134
|
+
}
|
|
127
135
|
.context-navigation-list .title-link {
|
|
128
136
|
display: block;
|
|
129
137
|
color: @sidenavItemColor;
|
|
138
|
+
margin: 0 @sidenavItemMargin;
|
|
130
139
|
font-size : @sidenavItemFontSize;
|
|
131
140
|
font-weight: @sidenavItemFontWeight;
|
|
132
141
|
}
|
|
@@ -134,7 +143,6 @@
|
|
|
134
143
|
font-weight: @sidenavLevelTwoItemFontWeight;
|
|
135
144
|
}
|
|
136
145
|
.context-navigation {
|
|
137
|
-
box-shadow: @sidenavBoxShadow;
|
|
138
146
|
|
|
139
147
|
.current {
|
|
140
148
|
color: @sidenavItemActiveColor;
|
|
@@ -151,11 +159,16 @@
|
|
|
151
159
|
font-weight: @sidenavItemFontWeight;
|
|
152
160
|
padding: @sidenavFolderItemPadding;
|
|
153
161
|
text-align: left;
|
|
162
|
+
margin: @sidenavItemMargin;
|
|
154
163
|
&:not([aria-expanded="true"]) {
|
|
155
164
|
border-bottom: @sidenavContentBorderBottom;
|
|
156
165
|
}
|
|
157
166
|
}
|
|
158
|
-
|
|
167
|
+
.context-navigation-list.accordion-list {
|
|
168
|
+
max-height: @sidenavAccordionListMaxHeight;
|
|
169
|
+
overflow-y: auto;
|
|
170
|
+
-webkit-overflow-scrolling: touch;
|
|
171
|
+
}
|
|
159
172
|
.accordion-list {
|
|
160
173
|
margin-top: 0;
|
|
161
174
|
margin-bottom: 0;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Sidebar Nav
|
|
3
3
|
*******************************/
|
|
4
4
|
|
|
5
|
-
@sidenavMaxWidth:
|
|
6
|
-
@widescreenSidenavMaxWidth:
|
|
5
|
+
@sidenavMaxWidth: 315px;
|
|
6
|
+
@widescreenSidenavMaxWidth: 315px;
|
|
7
7
|
@mobileSidenavMaxWidth: 100%;
|
|
8
8
|
@sidenavBackground: @grey-0;
|
|
9
|
-
@sidenavMarginRight:
|
|
9
|
+
@sidenavMarginRight: 0;
|
|
10
10
|
@sidenavPaddingLeft: 0;
|
|
11
11
|
@sidenavOverflow: inherit;
|
|
12
|
-
@sidenavMargin:
|
|
12
|
+
@sidenavMargin: auto;
|
|
13
13
|
@sidenavShadowColor: @grey-3;
|
|
14
14
|
@sidenavBoxShadow: 0px 3px 3px @sidenavShadowColor;
|
|
15
15
|
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
@sidenavHeaderFontWeight: @font-weight-7;
|
|
20
20
|
@sidenavHeaderPadding: @rem-space-4;
|
|
21
21
|
@sidenavAccordionHeaderPadding: @rem-space-2 @rem-space-4;
|
|
22
|
+
@sidenavAccordionHeaderBackgroundColor: white;
|
|
23
|
+
@sidenavAccordionListMaxHeight: 86dvh;
|
|
22
24
|
@sidenavHeaderBorderBottom: @2px solid @blue-grey-5;
|
|
23
25
|
@sidenavHeaderIconMarginRight: @rem-space-4;
|
|
24
26
|
|
|
@@ -38,6 +40,7 @@
|
|
|
38
40
|
@sidenavItemHoverBackground: @blue-grey-5;
|
|
39
41
|
@sidenavItemHoverColor: @grey-0;
|
|
40
42
|
@sidenavLastItemMarginBottom: @rem-space-2;
|
|
43
|
+
@sidenavItemMargin: 2px;
|
|
41
44
|
|
|
42
45
|
/* Third level item */
|
|
43
46
|
@subparItemPaddingLeft: @rem-space-12;
|
|
@@ -15,8 +15,13 @@
|
|
|
15
15
|
.eea.header {
|
|
16
16
|
/* So child can have position sticky */
|
|
17
17
|
display: initial;
|
|
18
|
+
&:has(.eea-side-menu) {
|
|
19
|
+
margin-bottom: 3.7rem;
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
}
|
|
19
23
|
|
|
24
|
+
|
|
20
25
|
/*----------------------------------------------------------------------------
|
|
21
26
|
HEADER TOP BAR
|
|
22
27
|
----------------------------------------------------------------------------*/
|
|
@@ -224,6 +229,15 @@
|
|
|
224
229
|
content: ' ';
|
|
225
230
|
}
|
|
226
231
|
|
|
232
|
+
.light-header {
|
|
233
|
+
.main.bar.transparency:before {
|
|
234
|
+
background: linear-gradient(0deg, rgba(96, 96, 96, 0.2), #3d5265 100%);
|
|
235
|
+
}
|
|
236
|
+
#page-header {
|
|
237
|
+
margin-bottom: 2rem;
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
227
241
|
.main.bar {
|
|
228
242
|
background: @headerMainSectionBackground;
|
|
229
243
|
scrollbar-gutter: stable;
|