@bonniernews/dn-design-system-web 2.1.0-alpha.6 → 2.1.0-alpha.7

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,14 @@
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
+ ## [2.1.0-alpha.7](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@2.1.0-alpha.6...@bonniernews/dn-design-system-web@2.1.0-alpha.7) (2023-02-20)
7
+
8
+ **Note:** Version bump only for package @bonniernews/dn-design-system-web
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.1.0-alpha.6](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@2.1.0-alpha.5...@bonniernews/dn-design-system-web@2.1.0-alpha.6) (2023-02-20)
7
15
 
8
16
 
@@ -1,5 +1,5 @@
1
1
  - GitHub: [BonnierNews/dn-design-system/../web/src/components/thematic-break](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/thematic-break)
2
- - Storybook: [ThematicBreak > Web](https://designsystem.dn.se/?path=/story/components-app-web-thematicbreak-web)
2
+ - Storybook: [ThematicBreak > Web](https://designsystem.dn.se/?path=/story/components-app-web-article-components-thematicbreak-web--thematic-break)
3
3
 
4
4
  ----
5
5
 
@@ -1,16 +1,14 @@
1
+ {% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
2
+
1
3
  {% macro ThematicBreak(params) %}
2
4
  {% set componentClassName = "ds-thematic-break" %}
3
5
  {% set additionalClasses = [] %}
4
- {% set attributes %}
5
- {% for attribute, value in params.attributes %}
6
- {{attribute}}="{{value}}"
7
- {% endfor %}
8
- {% endset %}
6
+ {% set attributes = getAttributes(params.attributes) %}
9
7
 
10
8
  {% if params.classNames %}
11
9
  {% set additionalClasses = (additionalClasses.push(params.classNames), additionalClasses) %}
12
10
  {% endif%}
13
11
 
14
12
  {% set classes = componentClassName + " " + additionalClasses | join(" ") %}
15
- <hr class="{{ classes }}" {{- attributes | safe }}></hr>
13
+ <hr class="{{ classes }}" {{- attributes | safe }}>
16
14
  {% endmacro %}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "2.1.0-alpha.6",
3
+ "version": "2.1.0-alpha.7",
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",