@eeacms/volto-eea-design-system 1.0.0-alpha.13.1 → 1.0.0-alpha.14

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,10 +4,21 @@ 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.14](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.13.1...1.0.0-alpha.14) - 30 January 2023
8
+
9
+ #### :nail_care: Enhancements
10
+
11
+ - change(mobile menu): integrate a-z topic with menu rendering logic [David Ichim - [`246d3d8`](https://github.com/eea/volto-eea-design-system/commit/246d3d839b773e2f6e1fff7fed5f9aa7a4968daa)]
12
+
13
+ #### :hammer_and_wrench: Others
14
+
15
+ - bump release to alpha 14 [David Ichim - [`92f0197`](https://github.com/eea/volto-eea-design-system/commit/92f01975a809553ed122824c8407c74da9132c23)]
16
+ - link fix [David Ichim - [`e1c12a1`](https://github.com/eea/volto-eea-design-system/commit/e1c12a132a1a99d773af359ebce071fb37c7e661)]
7
17
  ### [1.0.0-alpha.13.1](https://github.com/eea/volto-eea-design-system/compare/1.0.0-alpha.13...1.0.0-alpha.13.1) - 30 January 2023
8
18
 
9
19
  #### :nail_care: Enhancements
10
20
 
21
+ - change(mobile menu): hardcode a-z topics to '/en/topics-in-depth' #286 from eea/develop [ichim-david - [`6436224`](https://github.com/eea/volto-eea-design-system/commit/6436224e1922fb5d4b4053c874cebe5c57b2a6b9)]
11
22
  - change(mobile menu): hardcode a-z topics to '/en/topics-in-depth' [David Ichim - [`5235b52`](https://github.com/eea/volto-eea-design-system/commit/5235b52047a80a8b626aa5ef3ef304c4d9a82003)]
12
23
 
13
24
  #### :hammer_and_wrench: Others
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-eea-design-system",
3
- "version": "1.0.0-alpha.13.1",
3
+ "version": "1.0.0-alpha.14",
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",
@@ -1407,7 +1407,7 @@ const Template = (args) => {
1407
1407
  active: item['@id'] === pathname,
1408
1408
  })}
1409
1409
  >
1410
- {/* nav_title ovverides title */}
1410
+ {/* nav_title overrides title */}
1411
1411
  {item.nav_title && item.nav_title !== '' ? (
1412
1412
  <span>{item.nav_title}</span>
1413
1413
  ) : (
@@ -4,7 +4,6 @@ import { Container, Grid, List, Icon, Accordion } from 'semantic-ui-react';
4
4
 
5
5
  import { cloneDeep } from 'lodash';
6
6
 
7
- import { Link } from 'react-router-dom';
8
7
  import { useClickOutside } from '@eeacms/volto-eea-design-system/helpers';
9
8
 
10
9
  const createColumns = (item, length, renderMenuItem) => {
@@ -222,6 +221,11 @@ const SecondLevelContent = ({ element, topics = false, renderMenuItem }) => {
222
221
  const atAGlance = element.items.find(
223
222
  (element) => element.title === 'At a glance',
224
223
  );
224
+ const inDepth = element.items.find(
225
+ (element) => element.url.indexOf('in-depth') !== -1,
226
+ );
227
+ // eslint-disable-next-line no-unused-expressions
228
+ inDepth ? (inDepth.nav_title = 'A-Z Topics') : '';
225
229
  content = (
226
230
  <List>
227
231
  {atAGlance &&
@@ -234,14 +238,15 @@ const SecondLevelContent = ({ element, topics = false, renderMenuItem }) => {
234
238
  })}
235
239
  </React.Fragment>
236
240
  ))}
237
- <Link
238
- role="listitem"
239
- className="item"
240
- to={'/en/topics/in-depth'}
241
- key={element['@id']}
242
- >
243
- A-Z Topics
244
- </Link>
241
+ {inDepth && (
242
+ <React.Fragment key={inDepth.url}>
243
+ {renderMenuItem(inDepth, {
244
+ key: inDepth.url,
245
+ role: 'listitem',
246
+ className: 'item',
247
+ })}
248
+ </React.Fragment>
249
+ )}
245
250
  </List>
246
251
  );
247
252
  } else {