@bonniernews/dn-design-system-web 2.1.0-alpha.6 → 2.1.0-alpha.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
@@ -3,6 +3,23 @@
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.8](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@2.1.0-alpha.7...@bonniernews/dn-design-system-web@2.1.0-alpha.8) (2023-02-20)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **web:** remove borders from review icons ([#683](https://github.com/BonnierNews/dn-design-system/issues/683)) ([f47ef42](https://github.com/BonnierNews/dn-design-system/commit/f47ef424be3d537af47c841c225d35f3a3d56535))
12
+
13
+
14
+
15
+ ## [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)
16
+
17
+ **Note:** Version bump only for package @bonniernews/dn-design-system-web
18
+
19
+
20
+
21
+
22
+
6
23
  ## [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
24
 
8
25
 
@@ -83,6 +83,10 @@ $ds-factbox__max-height: 500px - ($ds-factbox__padding * 2); // @todo verify max
83
83
  &:not([data-active-grade]) {
84
84
  opacity: $ds-opacity-component-disabled;
85
85
  }
86
+ &[data-active-grade] {
87
+ border: ds-metrics-border-width(x1) solid currentColor;
88
+ border-radius: 100%;
89
+ }
86
90
  &:first-child {
87
91
  margin: 0;
88
92
  }
@@ -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 %}
@@ -2,17 +2,17 @@
2
2
  {% set iconName = params.icon | lower %}
3
3
  <i class="ds-icon ds-icon--grade-{{ iconName }}">
4
4
  {% if iconName == "zero" %}
5
- <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M43 22C43 33.598 33.598 43 22 43C10.402 43 1 33.598 1 22C1 10.402 10.402 1 22 1C33.598 1 43 10.402 43 22ZM44 22C44 34.1503 34.1503 44 22 44C9.84974 44 0 34.1503 0 22C0 9.84974 9.84974 0 22 0C34.1503 0 44 9.84974 44 22ZM14.5 20.9719C14.5 15.4966 17.0479 12 21.3034 12C25.559 12 28.134 15.4966 28.134 20.9719C28.134 26.4471 25.559 29.9708 21.3034 29.9708C17.0479 29.9708 14.5 26.4471 14.5 20.9719ZM20.0295 27.8024C20.0295 28.8595 20.4632 29.4016 21.3034 29.4016C22.1708 29.4016 22.6045 28.8595 22.6045 27.8024V14.1684C22.6045 13.1113 22.1708 12.5963 21.3034 12.5963C20.4632 12.5963 20.0295 13.1113 20.0295 14.1684V27.8024ZM33.5 27.5043C33.5 29.1035 32.5513 29.9708 31.3587 29.9708C30.166 29.9708 29.2174 29.1035 29.2174 27.5043C29.2174 25.9321 30.166 25.0377 31.3587 25.0377C32.5513 25.0377 33.5 25.9321 33.5 27.5043Z"/></svg>
5
+ <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21.3034 12C17.0479 12 14.5 15.4966 14.5 20.9719C14.5 26.4471 17.0479 29.9708 21.3034 29.9708C25.559 29.9708 28.134 26.4471 28.134 20.9719C28.134 15.4966 25.559 12 21.3034 12ZM21.3034 29.4016C20.4632 29.4016 20.0295 28.8595 20.0295 27.8024V14.1684C20.0295 13.1113 20.4632 12.5963 21.3034 12.5963C22.1708 12.5963 22.6045 13.1113 22.6045 14.1684V27.8024C22.6045 28.8595 22.1708 29.4016 21.3034 29.4016Z"/><path d="M31.3587 29.9708C32.5513 29.9708 33.5 29.1035 33.5 27.5043C33.5 25.9321 32.5513 25.0377 31.3587 25.0377C30.166 25.0377 29.2174 25.9321 29.2174 27.5043C29.2174 29.1035 30.166 29.9708 31.3587 29.9708Z"/></svg>
6
6
  {% elif iconName == "one" %}
7
- <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M43 22C43 33.598 33.598 43 22 43C10.402 43 1 33.598 1 22C1 10.402 10.402 1 22 1C33.598 1 43 10.402 43 22ZM44 22C44 34.1503 34.1503 44 22 44C9.84974 44 0 34.1503 0 22C0 9.84974 9.84974 0 22 0C34.1503 0 44 9.84974 44 22ZM15 14.464C15 14.464 18.276 15.08 19.928 12H23.008V27.764C23.008 29.416 23.4 29.612 23.876 29.612H25.108V29.976H15.42V29.612H16.652C17.1 29.612 17.52 29.416 17.52 27.764V14.688C16.652 15.08 15 14.94 15 14.94V14.464ZM30.6448 28.016C30.6448 29.668 29.6648 30.564 28.4328 30.564C27.2008 30.564 26.2208 29.668 26.2208 28.016C26.2208 26.392 27.2008 25.468 28.4328 25.468C29.6648 25.468 30.6448 26.392 30.6448 28.016Z"/></svg>
7
+ <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19.928 12C18.276 15.08 15 14.464 15 14.464V14.94C15 14.94 16.652 15.08 17.52 14.688V27.764C17.52 29.416 17.1 29.612 16.652 29.612H15.42V29.976H25.108V29.612H23.876C23.4 29.612 23.008 29.416 23.008 27.764V12H19.928Z"/><path d="M28.4328 30.564C29.6648 30.564 30.6448 29.668 30.6448 28.016C30.6448 26.392 29.6648 25.468 28.4328 25.468C27.2008 25.468 26.2208 26.392 26.2208 28.016C26.2208 29.668 27.2008 30.564 28.4328 30.564Z"/></svg>
8
8
  {% elif iconName == "two" %}
9
- <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M43 22C43 33.598 33.598 43 22 43C10.402 43 1 33.598 1 22C1 10.402 10.402 1 22 1C33.598 1 43 10.402 43 22ZM44 22C44 34.1503 34.1503 44 22 44C9.84974 44 0 34.1503 0 22C0 9.84974 9.84974 0 22 0C34.1503 0 44 9.84974 44 22ZM24.452 25.356C24.956 25.356 26.16 24.852 26.16 22.892H26.496V30.312H13V29.668C13 29.668 17.9 25.244 19.776 22.584L19.8072 22.5376C20.0626 22.1588 20.756 21.1303 20.756 19.28V14.296C20.756 13.204 19.944 12.644 19.076 12.644C16.416 12.644 16.36 14.38 16.36 14.38C18.796 14.38 19.216 16.228 19.216 16.816C19.216 16.956 19.16 19.448 16.444 19.448C15.016 19.448 13.588 18.496 13.588 16.424C13.588 14.296 15.716 12 19.076 12C24.312 12 26.468 14.632 26.468 17.46C26.468 21.212 20.98 24.124 18.404 25.356H24.452ZM32.0529 28.016C32.0529 29.668 31.0729 30.564 29.8409 30.564C28.6089 30.564 27.6289 29.668 27.6289 28.016C27.6289 26.392 28.6089 25.468 29.8409 25.468C31.0729 25.468 32.0529 26.392 32.0529 28.016Z"/></svg>
9
+ <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M26.16 22.892C26.16 24.852 24.956 25.356 24.452 25.356H18.404C20.98 24.124 26.468 21.212 26.468 17.46C26.468 14.632 24.312 12 19.076 12C15.716 12 13.588 14.296 13.588 16.424C13.588 18.496 15.016 19.448 16.444 19.448C19.16 19.448 19.216 16.956 19.216 16.816C19.216 16.228 18.796 14.38 16.36 14.38C16.36 14.38 16.416 12.644 19.076 12.644C19.944 12.644 20.756 13.204 20.756 14.296V19.28C20.756 21.212 20 22.248 19.776 22.584C17.9 25.244 13 29.668 13 29.668V30.312H26.496V22.892H26.16Z"/><path d="M29.8409 30.564C31.0729 30.564 32.0529 29.668 32.0529 28.016C32.0529 26.392 31.0729 25.468 29.8409 25.468C28.6089 25.468 27.6289 26.392 27.6289 28.016C27.6289 29.668 28.6089 30.564 29.8409 30.564Z"/></svg>
10
10
  {% elif iconName == "three" %}
11
- <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M43 22C43 33.598 33.598 43 22 43C10.402 43 1 33.598 1 22C1 10.402 10.402 1 22 1C33.598 1 43 10.402 43 22ZM44 22C44 34.1503 34.1503 44 22 44C9.84974 44 0 34.1503 0 22C0 9.84974 9.84974 0 22 0C34.1503 0 44 9.84974 44 22ZM26.236 16.368C26.236 18.636 24.388 19.532 22.876 19.896C26.012 20.708 27.188 22.724 27.188 24.908C27.188 27.736 25.032 30.564 19.796 30.564C15.736 30.564 14 28.268 14 26.14C14 24.068 15.456 23.116 16.884 23.116C19.6 23.116 19.628 25.608 19.628 25.72C19.628 26.336 19.236 28.184 16.8 28.184C16.8 28.184 16.436 29.92 19.796 29.92C20.664 29.92 21.476 29.36 21.476 28.268V22.052C21.476 20.932 20.776 20.344 19.908 20.344H18.172V19.756H19.936C21.4361 19.756 21.4273 17.8762 21.4208 16.4878C21.4204 16.399 21.42 16.3122 21.42 16.228V14.072C21.42 13.092 20.692 12.588 19.908 12.588C16.884 12.588 17.024 14.156 17.024 14.156C19.236 14.156 19.6 15.808 19.6 16.34C19.6 16.48 19.544 18.692 17.108 18.692C15.82 18.692 14.532 17.852 14.532 16.004C14.532 14.1 16.212 12.056 19.824 12C22.344 12 26.236 12.7 26.236 16.368ZM31.9592 28.016C31.9592 29.668 30.9792 30.564 29.7472 30.564C28.5152 30.564 27.5352 29.668 27.5352 28.016C27.5352 26.392 28.5152 25.468 29.7472 25.468C30.9792 25.468 31.9592 26.392 31.9592 28.016Z"/></svg>
11
+ <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22.876 19.896C24.388 19.532 26.236 18.636 26.236 16.368C26.236 12.7 22.344 12 19.824 12C16.212 12.056 14.532 14.1 14.532 16.004C14.532 17.852 15.82 18.692 17.108 18.692C19.544 18.692 19.6 16.48 19.6 16.34C19.6 15.808 19.236 14.156 17.024 14.156C17.024 14.156 16.884 12.588 19.908 12.588C20.692 12.588 21.42 13.092 21.42 14.072V16.228C21.42 17.628 21.532 19.756 19.936 19.756H18.172V20.344H19.908C20.776 20.344 21.476 20.932 21.476 22.052V28.268C21.476 29.36 20.664 29.92 19.796 29.92C16.436 29.92 16.8 28.184 16.8 28.184C19.236 28.184 19.628 26.336 19.628 25.72C19.628 25.608 19.6 23.116 16.884 23.116C15.456 23.116 14 24.068 14 26.14C14 28.268 15.736 30.564 19.796 30.564C25.032 30.564 27.188 27.736 27.188 24.908C27.188 22.724 26.012 20.708 22.876 19.896Z"/><path d="M29.7472 30.564C30.9792 30.564 31.9592 29.668 31.9592 28.016C31.9592 26.392 30.9792 25.468 29.7472 25.468C28.5152 25.468 27.5352 26.392 27.5352 28.016C27.5352 29.668 28.5152 30.564 29.7472 30.564Z"/></svg>
12
12
  {% elif iconName == "four" %}
13
- <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M43 22C43 33.598 33.598 43 22 43C10.402 43 1 33.598 1 22C1 10.402 10.402 1 22 1C33.598 1 43 10.402 43 22ZM44 22C44 34.1503 34.1503 44 22 44C9.84974 44 0 34.1503 0 22C0 9.84974 9.84974 0 22 0C34.1503 0 44 9.84974 44 22ZM24.844 28.128C24.844 29.78 25.264 29.948 25.712 29.948H26.944V30.312H17.256V29.948H18.488C18.964 29.948 19.356 29.78 19.356 28.128V26.336H13V25.412L20.56 12H24.844V25.188H27.112V26.336H24.844V28.128ZM19.356 15.276L13.84 25.188H19.356V15.276ZM32.6545 28.016C32.6545 29.668 31.6745 30.564 30.4425 30.564C29.2105 30.564 28.2305 29.668 28.2305 28.016C28.2305 26.392 29.2105 25.468 30.4425 25.468C31.6745 25.468 32.6545 26.392 32.6545 28.016Z"/></svg>
13
+ <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M25.712 29.948C25.264 29.948 24.844 29.78 24.844 28.128V26.336H27.112V25.188H24.844V12H20.56L13 25.412V26.336H19.356V28.128C19.356 29.78 18.964 29.948 18.488 29.948H17.256V30.312H26.944V29.948H25.712ZM13.84 25.188L19.356 15.276V25.188H13.84Z"/><path d="M30.4425 30.564C31.6745 30.564 32.6545 29.668 32.6545 28.016C32.6545 26.392 31.6745 25.468 30.4425 25.468C29.2105 25.468 28.2305 26.392 28.2305 28.016C28.2305 29.668 29.2105 30.564 30.4425 30.564Z"/></svg>
14
14
  {% elif iconName == "five" %}
15
- <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M43 22C43 33.598 33.598 43 22 43C10.402 43 1 33.598 1 22C1 10.402 10.402 1 22 1C33.598 1 43 10.402 43 22ZM44 22C44 34.1503 34.1503 44 22 44C9.84974 44 0 34.1503 0 22C0 9.84974 9.84974 0 22 0C34.1503 0 44 9.84974 44 22ZM16.744 20.24C16.744 20.24 18.284 19.372 20.216 19.372C25.536 19.372 27.384 22.34 27.384 25.084C27.384 27.912 25.228 30.656 19.992 30.656C15.904 30.656 14 28.388 14 26.232C14 24.16 15.456 23.236 16.884 23.236C19.6 23.236 19.628 25.7 19.628 25.84C19.628 26.456 19.236 28.304 16.8 28.304C16.8 28.304 16.632 30.012 19.992 30.012C20.86 30.012 21.644 29.48 21.644 28.388V21.668C21.644 20.548 20.972 19.96 20.104 19.96L20.0703 19.9599C19.6886 19.9579 18.0658 19.9497 16.548 21.332L16.1 21.136L16.128 12.092H24.36C25.9 12.092 26.292 11 26.292 11L26.656 11.056L25.032 16.852H16.744V20.24ZM32.424 28.108C32.424 29.76 31.444 30.656 30.212 30.656C28.98 30.656 28 29.76 28 28.108C28 26.484 28.98 25.56 30.212 25.56C31.444 25.56 32.424 26.484 32.424 28.108Z"/></svg>
15
+ <svg viewBox="0 0 44 44" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.216 19.372C18.284 19.372 16.744 20.24 16.744 20.24V16.852H25.032L26.656 11.056L26.292 11C26.292 11 25.9 12.092 24.36 12.092H16.128L16.1 21.136L16.548 21.332C18.116 19.904 19.796 19.96 20.104 19.96C20.972 19.96 21.644 20.548 21.644 21.668V28.388C21.644 29.48 20.86 30.012 19.992 30.012C16.632 30.012 16.8 28.304 16.8 28.304C19.236 28.304 19.628 26.456 19.628 25.84C19.628 25.7 19.6 23.236 16.884 23.236C15.456 23.236 14 24.16 14 26.232C14 28.388 15.904 30.656 19.992 30.656C25.228 30.656 27.384 27.912 27.384 25.084C27.384 22.34 25.536 19.372 20.216 19.372Z"/><path d="M30.212 30.656C31.444 30.656 32.424 29.76 32.424 28.108C32.424 26.484 31.444 25.56 30.212 25.56C28.98 25.56 28 26.484 28 28.108C28 29.76 28.98 30.656 30.212 30.656Z"/></svg>
16
16
  {% endif %}
17
17
  </i>
18
18
  {% 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.8",
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",