@eeacms/volto-eea-website-theme 0.7.4 → 0.7.5

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,6 +4,12 @@ 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.7.5](https://github.com/eea/volto-eea-website-theme/compare/0.7.4...0.7.5) - 27 September 2022
8
+
9
+ #### :bug: Bug Fixes
10
+
11
+ - fix(block-style): Keep only Preset styles - refs #148213 [Alin Voinea - [`d372a7d`](https://github.com/eea/volto-eea-website-theme/commit/d372a7ddf6b4bd1820a5abcd3ea90f65a2932e52)]
12
+
7
13
  ### [0.7.4](https://github.com/eea/volto-eea-website-theme/compare/0.7.3...0.7.4) - 27 September 2022
8
14
 
9
15
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-website-theme",
3
- "version": "0.7.4",
3
+ "version": "0.7.5",
4
4
  "description": "@eeacms/volto-eea-website-theme: Volto add-on",
5
5
  "main": "src/index.js",
6
6
  "author": "European Environment Agency: IDM2 A-Team",
package/src/config.js CHANGED
@@ -247,3 +247,40 @@ export const defaultLanguage = 'en';
247
247
  export const websiteTitle = 'Site';
248
248
  export const organisationName = 'European Environment Agency';
249
249
  export const logoTargetUrl = '/';
250
+
251
+ export const colors = [
252
+ // Primary & shades
253
+ '#007B6C',
254
+ '#005248',
255
+ '#007B6C',
256
+ '#00A390',
257
+ '#00CCB4',
258
+ '#00F5D8',
259
+ '#85FFF1',
260
+ '#C8FFF8',
261
+ // Secondary & shades
262
+ '#004B7F',
263
+ '#003052',
264
+ '#004B7F',
265
+ '#006BB8',
266
+ '#0083E0',
267
+ '#0A99FF',
268
+ '#47B3FF',
269
+ '#A0D7FF',
270
+ // Tertiary & shades
271
+ '#2E3E4C',
272
+ '#3D5265',
273
+ '#4C677F',
274
+ '#6989A5',
275
+ '#8EA6C2',
276
+ '#ACCAE5',
277
+ '#DAE8F4',
278
+ // Black & White shades
279
+ '#000000',
280
+ '#323232',
281
+ '#67696b',
282
+ '#BCBEC0',
283
+ '#E6E7E8',
284
+ '#F9F9F9',
285
+ '#FFFFFF',
286
+ ];
@@ -0,0 +1,24 @@
1
+ export const StyleSchema = () => {
2
+ return {
3
+ title: 'Styles',
4
+ fieldsets: [
5
+ {
6
+ id: 'default',
7
+ title: 'Default',
8
+ fields: [],
9
+ },
10
+ {
11
+ id: 'presets',
12
+ title: 'Preset styles',
13
+ fields: ['style_name'],
14
+ },
15
+ ],
16
+ properties: {
17
+ style_name: {
18
+ title: 'Style',
19
+ widget: 'style_select',
20
+ },
21
+ },
22
+ required: [],
23
+ };
24
+ };
package/src/index.js CHANGED
@@ -105,6 +105,9 @@ const applyConfig = (config) => {
105
105
  };
106
106
  }
107
107
 
108
+ // Custom block-style colors
109
+ config.settings.available_colors = eea.colors;
110
+
108
111
  // Custom block styles
109
112
  config.settings.previewText = '';
110
113
  config.settings.pluggableStyles = [
@@ -1,38 +0,0 @@
1
- const updatedEEAColorcheme = [
2
- // Primary & shades
3
- '#007B6C',
4
- '#005248',
5
- '#007B6C',
6
- '#00A390',
7
- '#00CCB4',
8
- '#00F5D8',
9
- '#85FFF1',
10
- '#C8FFF8',
11
- // Secondary & shades
12
- '#004B7F',
13
- '#003052',
14
- '#004B7F',
15
- '#006BB8',
16
- '#0083E0',
17
- '#0A99FF',
18
- '#47B3FF',
19
- '#A0D7FF',
20
- // Tertiary & shades
21
- '#2E3E4C',
22
- '#3D5265',
23
- '#4C677F',
24
- '#6989A5',
25
- '#8EA6C2',
26
- '#ACCAE5',
27
- '#DAE8F4',
28
- // Black & White shades
29
- '#000000',
30
- '#323232',
31
- '#67696b',
32
- '#BCBEC0',
33
- '#E6E7E8',
34
- '#F9F9F9',
35
- '#FFFFFF',
36
- ];
37
-
38
- export default updatedEEAColorcheme;