@eeacms/volto-eea-design-system 1.23.6 → 1.23.8

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,17 @@ 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.23.8](https://github.com/eea/volto-eea-design-system/compare/1.23.7...1.23.8) - 8 May 2024
8
+
9
+ #### :rocket: New Features
10
+
11
+ - feat: draft image - refs #268495 [ichim-david - [`c277f1f`](https://github.com/eea/volto-eea-design-system/commit/c277f1fe7580582fdf8b6d939c752cdc2742badf)]
12
+
13
+ ### [1.23.7](https://github.com/eea/volto-eea-design-system/compare/1.23.6...1.23.7) - 8 May 2024
14
+
15
+ #### :hammer_and_wrench: Others
16
+
17
+ - cleanup [alin - [`b36ba0b`](https://github.com/eea/volto-eea-design-system/commit/b36ba0bb621d1922b453f7b810d2d00faf73226e)]
7
18
  ### [1.23.6](https://github.com/eea/volto-eea-design-system/compare/1.23.5...1.23.6) - 16 April 2024
8
19
 
9
20
  #### :bug: Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.23.6",
3
+ "version": "1.23.8",
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",
@@ -32,9 +32,11 @@
32
32
  "@cypress/code-coverage": "^3.10.0",
33
33
  "@plone/scripts": "*",
34
34
  "babel-plugin-transform-class-properties": "^6.24.1",
35
+ "cypress": "13.1.0",
35
36
  "husky": "^8.0.3",
36
37
  "lint-staged": "^14.0.1",
37
- "md5": "^2.3.0"
38
+ "md5": "^2.3.0",
39
+ "postcss-less": "6.0.0"
38
40
  },
39
41
  "lint-staged": {
40
42
  "src/**/*.{js,jsx,ts,tsx,json}": [
@@ -0,0 +1,27 @@
1
+ import React from 'react';
2
+ import { Default as HeaderDefault, HeaderArgs } from '../Header/Header.stories';
3
+ import './draft.css';
4
+
5
+ export default {
6
+ title: 'Layout/Draft Content',
7
+ component: HeaderDefault,
8
+ argTypes: {
9
+ showDraftContent: { control: 'boolean' },
10
+ },
11
+ };
12
+
13
+ const HeaderTemplate = (args) => {
14
+ const draftClass = args.showDraftContent
15
+ ? 'view-viewview wf-state-is-draft'
16
+ : '';
17
+ return (
18
+ <div className={draftClass}>
19
+ <HeaderDefault {...HeaderArgs} />
20
+ </div>
21
+ );
22
+ };
23
+
24
+ export const Default = HeaderTemplate.bind({});
25
+ Default.args = {
26
+ showDraftContent: true,
27
+ };
@@ -0,0 +1,3 @@
1
+ .view-viewview.wf-state-is-draft {
2
+ background-image: url('draft.png') !important;
3
+ }
Binary file
@@ -1540,7 +1540,7 @@ const Template = (args) => {
1540
1540
  };
1541
1541
 
1542
1542
  export const Default = Template.bind({});
1543
- Default.args = {
1543
+ export const HeaderArgs = {
1544
1544
  linksMenuTitle: 'Environmental information systems',
1545
1545
  tabletLinksMenuTitle: 'EEA information systems',
1546
1546
  mobileLinksMenuTitle: 'EEA information systems',
@@ -1551,3 +1551,4 @@ Default.args = {
1551
1551
  transparency: false,
1552
1552
  inverted: false,
1553
1553
  };
1554
+ Default.args = HeaderArgs;
@@ -8,7 +8,6 @@
8
8
  *******************************/
9
9
 
10
10
  .tag {
11
- cursor: pointer;
12
11
  display: inline-flex;
13
12
  align-items: center;
14
13
  justify-content: center;
@@ -21,6 +20,18 @@
21
20
  font-weight: @tagNameFontWeight;
22
21
  line-height: @tagNameLineHeight;
23
22
 
23
+ &.link {
24
+ .icon,
25
+ .name {
26
+ color: @tagLinkFontColor;
27
+ cursor: pointer;
28
+
29
+ &:visited {
30
+ color: @tagLinkFontColor;
31
+ }
32
+ }
33
+ }
34
+
24
35
  .icon {
25
36
  width: unset;
26
37
  height: unset;
@@ -6,6 +6,7 @@
6
6
  @tagPadding : @mediumGap 0;
7
7
  @tagHeight : 1.25rem;
8
8
  @tagMargin : 0 0 0 0;
9
+ @tagLinkFontColor : var(--text-color, @linkColor);
9
10
 
10
11
  /* Tag Icon */
11
12
  @tagHashtagFontSize : 0.75rem;