@bonniernews/dn-design-system-web 8.3.4 → 8.4.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 CHANGED
@@ -3,6 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 8.4.0 (2023-11-17)
7
+
8
+
9
+ ### Features
10
+
11
+ * **web:** make individual items in vertical media lists themable ([#1099](https://github.com/BonnierNews/dn-design-system/issues/1099)) ([ab0173d](https://github.com/BonnierNews/dn-design-system/commit/ab0173da5c872b1b66e1ed64af1574afe8fe20f4))
12
+
13
+
14
+
6
15
  ## 8.3.4 (2023-11-17)
7
16
 
8
17
 
@@ -43,7 +43,7 @@ These are copy paste friendly examples to quickliy get started using a component
43
43
  listTitle: "Senaste klippen",
44
44
  listType: "media",
45
45
  mediaIcon: "play_arrow-filled",
46
- teasers: [ { title: 'Svenska hjältehunden Killian arbetar mot klockan i Marocko – är det försent?', vignette: "VÄRLDEN", targetLink: '#', isItalicHeadline: false, publicationTime: 'I går 21:22', mediaHtml: '<div class="picture"><img class="picture__img" src="??"></div>', video: 'true', attributes: { "data-test": "list-item-test-data" } } ]
46
+ teasers: [ { title: 'Svenska hjältehunden Killian arbetar mot klockan i Marocko – är det försent?', vignette: "VÄRLDEN", targetLink: '#', theme: 'nyheter', isItalicHeadline: false, publicationTime: 'I går 21:22', mediaHtml: '<div class="picture"><img class="picture__img" src="??"></div>', video: 'true', attributes: { "data-test": "list-item-test-data" } } ]
47
47
  })}}
48
48
  ```
49
49
 
@@ -73,6 +73,7 @@
73
73
  {%- set classes = [
74
74
  "ds-teaser-list-vertical__media-item",
75
75
  "ds-teaser-list-vertical__media-item--italic" if teaser.isItalicHeadline,
76
+ "ds-theme--" + teaser.theme if teaser.theme,
76
77
  teaser.classNames if teaser.classNames
77
78
  ] | join(" ") %}
78
79
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "8.3.4",
3
+ "version": "8.4.0",
4
4
  "description": "DN design system for web.",
5
5
  "main": "index.js",
6
6
  "homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",