@bonniernews/dn-design-system-web 8.1.1 → 8.2.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.2.0 (2023-11-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * **web:** add timestamps to TeaserStandard and TeaserLarge ([#1087](https://github.com/BonnierNews/dn-design-system/issues/1087)) ([0e90215](https://github.com/BonnierNews/dn-design-system/commit/0e90215a5e12f1be299e8eabb6d9a19bcb42c374))
12
+
13
+
14
+
6
15
  ## 8.1.1 (2023-11-14)
7
16
 
8
17
 
@@ -68,6 +68,17 @@ $grade-size: ds-px-to-rem(34px);
68
68
  }
69
69
  }
70
70
 
71
+ .ds-teaser__publication-time {
72
+ display: block;
73
+ @include ds-typography($ds-typography-functional-meta02regular);
74
+ color: $ds-color-text-primary-02;
75
+ margin-top: ds-spacing($ds-s-050);
76
+ }
77
+
78
+ .ds-teaser__text + .ds-teaser__publication-time {
79
+ margin-top: ds-spacing($ds-s-075);
80
+ }
81
+
71
82
  .ds-icon.ds-icon--grade {
72
83
  color: $ds-color-icon-primary;
73
84
  border-radius: 50%;
@@ -26,6 +26,7 @@
26
26
  |isLargeHeadline | bool | no | true, false | false | If the headline should be large. Only has an effect if `isItalicHeadline` is true. |
27
27
  |isFlashingDot | bool | no | true, false | false | If there should be a flashing ball before the text |
28
28
  |isLocked | bool | no | true, false | false | If the paywall indicator should be shown. It is only shown if the teaser has an image. |
29
+ |publicationTime | string | no | | null | Publication time text. |
29
30
  |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
30
31
  |classNames | String | no | | | Ex. "my-special-class" |
31
32
  |~forcePx~ | | | | | Not supported |
@@ -69,6 +69,9 @@
69
69
  {{ params.text }}
70
70
  </p>
71
71
  {% endif %}
72
+ {% if params.publicationTime %}
73
+ <span class="ds-teaser__publication-time">{{ params.publicationTime }}</span>
74
+ {% endif %}
72
75
  </div>
73
76
 
74
77
  {% if params.bylineHtml %}
@@ -24,6 +24,7 @@
24
24
  |isItalicHeadline | bool | no | true, false | false | If the headline should be italic |
25
25
  |isFlashingDot | bool | no | true, false | false | If there should be a flashing ball before the text |
26
26
  |isLocked | bool | no | true, false | false | If the paywall indicator should be shown. It is only shown if the teaser has an image. |
27
+ |publicationTime | string | no | | null | Publication time text. |
27
28
  |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
28
29
  |classNames | String | no | | | Ex. "my-special-class" |
29
30
  |~forcePx~ | | | | | Not supported |
@@ -66,6 +66,9 @@
66
66
  {{ params.text }}
67
67
  </p>
68
68
  {% endif %}
69
+ {% if params.publicationTime %}
70
+ <span class="ds-teaser__publication-time">{{ params.publicationTime }}</span>
71
+ {% endif %}
69
72
  </div>
70
73
  {% endcall %}
71
74
  {% endmacro %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "8.1.1",
3
+ "version": "8.2.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",