@bonniernews/dn-design-system-web 4.1.0-alpha.0 → 4.1.0-alpha.2
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 +17 -0
- package/components/article-body-image/README.md +2 -1
- package/components/article-top-image/README.md +2 -1
- package/components/badge/README.md +2 -2
- package/components/blocked-content/README.md +2 -2
- package/components/buddy-menu/README.md +2 -1
- package/components/button/README.md +3 -2
- package/components/button-toggle/README.md +3 -2
- package/components/byline/README.md +2 -2
- package/components/checkbox/README.md +2 -1
- package/components/disclaimer/README.md +3 -3
- package/components/divider/README.md +2 -1
- package/components/factbox/README.md +2 -2
- package/components/footer/README.md +12 -11
- package/components/group-header/README.md +44 -0
- package/components/group-header/group-header.njk +42 -0
- package/components/group-header/group-header.scss +49 -0
- package/components/icon-button/README.md +3 -2
- package/components/icon-button-toggle/README.md +5 -4
- package/components/icon-sprite/README.md +3 -2
- package/components/icon-with-wrapper/README.md +4 -3
- package/components/image-caption/README.md +2 -1
- package/components/list-item/README-accordion.md +3 -2
- package/components/list-item/README-checkbox.md +2 -1
- package/components/list-item/README-radio.md +2 -1
- package/components/list-item/README-switch.md +3 -2
- package/components/list-item/README-toggle.md +2 -1
- package/components/list-item/README.md +4 -3
- package/components/pictogram/README.md +3 -2
- package/components/quote/README.md +2 -1
- package/components/radio-button/README.md +2 -1
- package/components/spinner/README.md +2 -1
- package/components/switch/README.md +2 -1
- package/components/teaser-dot/README.md +2 -1
- package/components/teaser-image/README.md +2 -3
- package/components/teaser-large/README.md +2 -2
- package/components/teaser-list-timeline/README.md +2 -2
- package/components/teaser-native/README.md +2 -2
- package/components/teaser-onsite/README.md +2 -2
- package/components/teaser-package/README.md +2 -2
- package/components/teaser-right-now/README.md +2 -2
- package/components/teaser-slideshow/README.md +2 -2
- package/components/teaser-split/README-container.md +2 -2
- package/components/teaser-split/README.md +2 -2
- package/components/teaser-standard/README.md +2 -2
- package/components/teaser-tipsa/README.md +2 -2
- package/components/text-button/README.md +3 -2
- package/components/text-button-toggle/README.md +4 -3
- package/components/text-input/README.md +2 -2
- package/components/thematic-break/README.md +2 -1
- package/components/video-caption/README.md +2 -2
- package/components/vip-badge/README.md +2 -2
- package/foundations/helpers/README-links.md +2 -1
- package/package.json +1 -1
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
|
+
## 4.1.0-alpha.2 (2023-08-25)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **web:** implement the groupheader component ([#961](https://github.com/BonnierNews/dn-design-system/issues/961)) ([7767031](https://github.com/BonnierNews/dn-design-system/commit/77670310626cbbe1516e5fd0937c300c6938dbcb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## 4.1.0-alpha.1 (2023-08-24)
|
|
16
|
+
|
|
17
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
6
23
|
## 4.1.0-alpha.0 (2023-08-23)
|
|
7
24
|
|
|
8
25
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/article-body-image](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/article-body-image)
|
|
2
|
-
- Storybook: [ArticleBodyImage
|
|
2
|
+
- Storybook: [ArticleBodyImage](https://designsystem.dn.se/?path=/docs/article-articlebodyimage--docs)
|
|
3
|
+
- Storybook (Latest): [ArticleBodyImage](https://designsystem-latest.dn.se/?path=/docs/article-articlebodyimage--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/article-top-image](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/article-top-image)
|
|
2
|
-
- Storybook: [ArticleTopImage
|
|
2
|
+
- Storybook: [ArticleTopImage](https://designsystem.dn.se/?path=/docs/article-articletopimage--docs)
|
|
3
|
+
- Storybook (Latest): [ArticleTopImage](https://designsystem-latest.dn.se/?path=/docs/article-articletopimage--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/badge](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/badge)
|
|
2
|
-
- Storybook: [Badge
|
|
3
|
-
- Storybook: [Badge
|
|
2
|
+
- Storybook: [Badge](https://designsystem.dn.se/?path=/docs/basic-badge--docs)
|
|
3
|
+
- Storybook (Latest): [Badge](https://designsystem-latest.dn.se/?path=/docs/basic-badge--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/blocked-content](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/blocked-content)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [BlockedContent](https://designsystem.dn.se/?path=/docs/article-blockedcontent--docs)
|
|
3
|
+
- Storybook (Latest): [BlockedContent](https://designsystem-latest.dn.se/?path=/docs/article-blockedcontent--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/buddy-menu](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/buddy-menu)
|
|
2
|
-
- Storybook: [BuddyMenu
|
|
2
|
+
- Storybook: [BuddyMenu](https://designsystem.dn.se/?path=/docs/page-buddymenu--docs)
|
|
3
|
+
- Storybook (Latest): [BuddyMenu](https://designsystem-latest.dn.se/?path=/docs/page-buddymenu--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/button](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/button)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Buttons > Button](https://designsystem.dn.se/?path=/docs/basic-buttons-button--docs)
|
|
3
|
+
- Storybook (Latest): [Buttons > Button](https://designsystem-latest.dn.se/?path=/docs/basic-buttons-button--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -17,7 +18,7 @@
|
|
|
17
18
|
|mobile.fullWidth | bool | no | true, false | false | Ex mobile: { fullWidth: true } |
|
|
18
19
|
|condensed | bool | no | true, false | false | Condensed reduces spacing to a bare minimum, use with care since this might make touch target area smaller than recommended size |
|
|
19
20
|
|iconPosition | String | no | none, left, right | none | |
|
|
20
|
-
|iconName | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
21
|
+
|iconName | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
21
22
|
|loading | bool | no | true, false | false | |
|
|
22
23
|
|type | String | no | button, submit | button | |
|
|
23
24
|
|href | String | no | | | If href is set the button will be rendered as an a-tag |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/button-toggle](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/button-toggle)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Buttons > ButtonToggle](https://designsystem.dn.se/?path=/docs/basic-buttons-buttontoggle--docs)
|
|
3
|
+
- Storybook (Latest): [Buttons > ButtonToggle](https://designsystem-latest.dn.se/?path=/docs/basic-buttons-buttontoggle--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -14,7 +15,7 @@
|
|
|
14
15
|
|selectedText | String | yes | | | |
|
|
15
16
|
|disabled | bool | no | true, false | false | |
|
|
16
17
|
|variant | String | no | brand, SecondaryFilled | brand | Design variant |
|
|
17
|
-
|size| String | no | default, small | default | |
|
|
18
|
+
|size| String | no | default, small, xsmall | default | |
|
|
18
19
|
|fullWidth | bool | no | true, false | false | Button will be full width on both desktop and mobile |
|
|
19
20
|
|condensed | bool | no | true, false | false | Condensed reduces spacing to a bare minimum, use with care since this might make touch target area smaller than recommended size |
|
|
20
21
|
|mobile.fullWidth | bool | no | true, false | false | Ex mobile: { fullWidth: true } |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/byline](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/byline)
|
|
2
|
-
- Storybook: [Byline
|
|
3
|
-
- Storybook: [Byline
|
|
2
|
+
- Storybook: [Byline](https://designsystem.dn.se/?path=/docs/article-byline--docs)
|
|
3
|
+
- Storybook (Latest): [Byline](https://designsystem-latest.dn.se/?path=/docs/article-byline--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/checkbox](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/checkbox)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Form > Checkbox](https://designsystem.dn.se/?path=/docs/basic-form-checkbox--docs)
|
|
3
|
+
- Storybook (Latest): [Form > Checkbox](https://designsystem-latest.dn.se/?path=/docs/basic-form-checkbox--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/disclaimer](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/disclaimer)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [Disclaimer](https://designsystem.dn.se/?path=/docs/article-disclaimer--docs)
|
|
3
|
+
- Storybook (Latest): [Disclaimer](https://designsystem-latest.dn.se/?path=/docs/article-disclaimer--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
|parameter | type | required | options | default | description |
|
|
12
12
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
13
13
|
|bodyHtml | String | yes | | | Intended use is text, links and inlined icons |
|
|
14
|
-
|iconName | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
14
|
+
|iconName | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
15
15
|
|variant | String | no | default, native | default | |
|
|
16
16
|
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
17
17
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/divider](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/divider)
|
|
2
|
-
- Storybook: [Divider
|
|
2
|
+
- Storybook: [Divider](https://designsystem.dn.se/?path=/docs/basic-divider--docs)
|
|
3
|
+
- Storybook (Latest): [Divider](https://designsystem-latest.dn.se/?path=/docs/basic-divider--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/factbox](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/factbox)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [Factbox](https://designsystem.dn.se/?path=/docs/article-factbox--docs)
|
|
3
|
+
- Storybook (Latest): [Factbox](https://designsystem-latest.dn.se/?path=/docs/article-factbox--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/footer](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/footer)
|
|
2
|
-
- Storybook: [Footer
|
|
2
|
+
- Storybook: [Footer](https://designsystem.dn.se/?path=/docs/page-footer--docs)
|
|
3
|
+
- Storybook (Latest): [Footer](https://designsystem-latest.dn.se/?path=/docs/page-footer--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -28,19 +29,19 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
28
29
|
|
|
29
30
|
{{ Footer({
|
|
30
31
|
linkGroups: [
|
|
31
|
-
{
|
|
32
|
-
title: "Om Dn",
|
|
32
|
+
{
|
|
33
|
+
title: "Om Dn",
|
|
33
34
|
links: [
|
|
34
|
-
{
|
|
35
|
+
{
|
|
35
36
|
href: "/kontakt/",
|
|
36
37
|
text: "Kontakta oss"
|
|
37
38
|
}
|
|
38
39
|
]
|
|
39
40
|
},
|
|
40
|
-
{
|
|
41
|
-
title: "Följ oss",
|
|
41
|
+
{
|
|
42
|
+
title: "Följ oss",
|
|
42
43
|
links: [
|
|
43
|
-
{
|
|
44
|
+
{
|
|
44
45
|
href: "#",
|
|
45
46
|
text: "Twitter",
|
|
46
47
|
classNames: "twitter-link",
|
|
@@ -56,10 +57,10 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
56
57
|
text: "Punkten efter Dagens Nyheter har funnits med.."
|
|
57
58
|
},
|
|
58
59
|
channels: [
|
|
59
|
-
{
|
|
60
|
-
href: "?channel=mobile",
|
|
61
|
-
text: "Mobil",
|
|
62
|
-
classNames: "hidden-mobile",
|
|
60
|
+
{
|
|
61
|
+
href: "?channel=mobile",
|
|
62
|
+
text: "Mobil",
|
|
63
|
+
classNames: "hidden-mobile",
|
|
63
64
|
attributes: {rel: "nofollow"}
|
|
64
65
|
}
|
|
65
66
|
],
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
- GitHub: [BonnierNews/dn-design-system/../web/src/components/group-header](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/group-header)
|
|
2
|
+
- Storybook: [GroupHeader](https://designsystem.dn.se/?path=/docs/basic-groupheader--docs)
|
|
3
|
+
- Storybook (Latest): [GroupHeader](https://designsystem.dn.se/?path=/docs/basic-groupheader--docs)
|
|
4
|
+
|
|
5
|
+
----
|
|
6
|
+
|
|
7
|
+
# GroupHeader
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
|parameter | type | required | options | default | description |
|
|
12
|
+
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
13
|
+
|title | string | yes | | | The title text |
|
|
14
|
+
|variant | string | no | icon, link, toggle | icon | The variant to render |
|
|
15
|
+
|href | string | no | | | If given, the title is rendered as a link. Only available for variants `icon` and `link` |
|
|
16
|
+
|linkText | string | no | | | The link text to render (only for variant `link`) |
|
|
17
|
+
|toggle | object | no | | | Arguments to the ToggleButton (only for variant `toggle`) |
|
|
18
|
+
|classNames | String | no | | | Ex. "my-special-class" |
|
|
19
|
+
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
20
|
+
|
|
21
|
+
Depending on variant, only one of `toggle`, `linkText` is allowed. In `icon` and `link` mode, the `href` is required to show the ornament.
|
|
22
|
+
|
|
23
|
+
## Minimum requirement example
|
|
24
|
+
|
|
25
|
+
### Nunjucks
|
|
26
|
+
|
|
27
|
+
These are copy paste friendly examples to quickliy get started using a component.
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
{% from '@bonniernews/dn-design-system-web/components/group-header/group-header.njk' import GroupHeader %}
|
|
31
|
+
|
|
32
|
+
{{ call GroupHeader({
|
|
33
|
+
title: "Dagens Nyheter",
|
|
34
|
+
href: "https://www.dn.se/"
|
|
35
|
+
}) }}
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### SCSS
|
|
39
|
+
```scss
|
|
40
|
+
@use "@bonniernews/dn-design-system-web/components/group-header/group-header";
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### JS
|
|
44
|
+
If you provide the `toggle` parameter, you might need to initiate that component, [as per the documentation](https://designsystem.dn.se/?path=/readmetab/basic-buttons-buttontoggle--docs).
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{% from '@bonniernews/dn-design-system-web/njk-helpers/attributes.njk' import getAttributes %}
|
|
2
|
+
{% from '@bonniernews/dn-design-system-web/components/icon-sprite/icon-sprite.njk' import IconUse %}
|
|
3
|
+
{% from '@bonniernews/dn-design-system-web/components/button-toggle/button-toggle.njk' import ButtonToggle %}
|
|
4
|
+
|
|
5
|
+
{% macro GroupHeader(params) %}
|
|
6
|
+
{% set componentClassName = "ds-group-header" %}
|
|
7
|
+
{% set classNamePrefix = componentClassName + "--" %}
|
|
8
|
+
{% set variant = [] %}
|
|
9
|
+
{% set attributes = getAttributes(params.attributes) %}
|
|
10
|
+
|
|
11
|
+
{% if params.classNames %}
|
|
12
|
+
{% set variant = (variant.push(params.classNames), variant) %}
|
|
13
|
+
{% endif%}
|
|
14
|
+
|
|
15
|
+
{% set classes = componentClassName + " " + variant | join(" ") %}
|
|
16
|
+
|
|
17
|
+
{% set groupHeaderInner %}
|
|
18
|
+
<h2 class="{{ componentClassName + '__title'}}">{{ params.title}}</h2>
|
|
19
|
+
|
|
20
|
+
{% if params.variant == 'toggle' and params.toggle %}
|
|
21
|
+
{# Could we add defaults here? #}
|
|
22
|
+
{{ ButtonToggle(params.toggle) }}
|
|
23
|
+
{% elif params.variant == 'link' and params.linkText and params.href %}
|
|
24
|
+
<span class="{{ componentClassName + '__right-link' }}">
|
|
25
|
+
{{ params.linkText }}
|
|
26
|
+
</span>
|
|
27
|
+
{% elif (params.variant == 'icon' or not params.variant) and params.href %}
|
|
28
|
+
{{ IconUse({ icon: "arrow_forward" }) }}
|
|
29
|
+
{% endif %}
|
|
30
|
+
{% endset %}
|
|
31
|
+
|
|
32
|
+
{% if (params.variant == 'link' or params.variant == 'icon' or not params.variant) and params.href %}
|
|
33
|
+
<a class="{{ classes }} {{ componentClassName + '--link'}}" href="{{ params.titleHref }}" {{ attributes | safe }}>
|
|
34
|
+
{{ groupHeaderInner | safe }}
|
|
35
|
+
</a>
|
|
36
|
+
{% else %}
|
|
37
|
+
<div class="{{ classes }}" {{ attributes | safe }}>
|
|
38
|
+
{{ groupHeaderInner | safe }}
|
|
39
|
+
</div>
|
|
40
|
+
{% endif %}
|
|
41
|
+
|
|
42
|
+
{% endmacro %}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
|
+
@use "../button-toggle/button-toggle.scss";
|
|
3
|
+
|
|
4
|
+
.ds-group-header {
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: space-between;
|
|
8
|
+
background: $ds-color-background-primary;
|
|
9
|
+
color: $ds-color-text-primary;
|
|
10
|
+
padding: ds-spacing-component(0 $ds-sc-x4);
|
|
11
|
+
@include ds-typography($ds-typography-functional-body02regular);
|
|
12
|
+
|
|
13
|
+
.ds-group-header__right-link,
|
|
14
|
+
.ds-btn-toggle,
|
|
15
|
+
.ds-icon {
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ds-group-header__right-link {
|
|
20
|
+
@include ds-link($ds-link-paragraph);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ds-icon {
|
|
24
|
+
height: 24px;
|
|
25
|
+
width: 24px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.ds-group-header--link {
|
|
29
|
+
@include ds-link($ds-link-list);
|
|
30
|
+
|
|
31
|
+
@include ds-hover(true) {
|
|
32
|
+
text-decoration: none;
|
|
33
|
+
|
|
34
|
+
.ds-group-header__title {
|
|
35
|
+
@include ds-underline(1px, 2px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ds-group-header__right-link {
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ds-group-header__title {
|
|
45
|
+
padding: ds-spacing-component($ds-sc-x3 0);
|
|
46
|
+
@include ds-typography($ds-typography-functional-body02bold);
|
|
47
|
+
margin: 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/icon-button](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/icon-button)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Buttons > IconButton](https://designsystem.dn.se/?path=/docs/basic-buttons-iconbutton--docs)
|
|
3
|
+
- Storybook (Latest): [Buttons > IconButton](https://designsystem-latest.dn.se/?path=/docs/basic-buttons-iconbutton--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
|
|
10
11
|
|parameter | type | required | options | default | description |
|
|
11
12
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
12
|
-
|iconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
13
|
+
|iconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
13
14
|
|disabled | bool | no | true, false | false | Note: only works on button-tag, not on a-tag |
|
|
14
15
|
|variant | String | no | outlined, transparent, elevated | outlined | Design variant |
|
|
15
16
|
|size| String | no | default, small, large | default | |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/icon-button-toggle](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/icon-button-toggle)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Buttons > IconButtonToggle](https://designsystem.dn.se/?path=/docs/basic-buttons-iconbuttontoggle--docs)
|
|
3
|
+
- Storybook (Latest): [Buttons > IconButtonToggle](https://designsystem-latest.dn.se/?path=/docs/basic-buttons-iconbuttontoggle--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -10,8 +11,8 @@
|
|
|
10
11
|
|parameter | type | required | options | default | description |
|
|
11
12
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
12
13
|
|selected | bool | no | true, false | false | |
|
|
13
|
-
|iconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
14
|
-
|selectedIconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
14
|
+
|iconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
15
|
+
|selectedIconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |v
|
|
15
16
|
|disabled | bool | no | true, false | false | Note: only works on button-tag, not on a-tag |
|
|
16
17
|
|variant | String | no | outlined, transparent | outlined | Design variant |
|
|
17
18
|
|size| String | no | default, small, large | default | |
|
|
@@ -49,4 +50,4 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
49
50
|
import dsIconButtonToggle from '@bonniernews/dn-design-system-web/components/icon-button-toggle/icon-button-toggle.js'
|
|
50
51
|
const toggleElements = Array.from(document.getElementsByClassName("ds-icon-btn-toggle"));
|
|
51
52
|
dsIconButtonToggle(toggleElements);
|
|
52
|
-
```
|
|
53
|
+
```
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/icon-sprite](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/icon-sprite)
|
|
2
|
-
- Storybook: [Icon
|
|
2
|
+
- Storybook: [Icon](https://designsystem.dn.se/?path=/docs/foundations-icons--docs)
|
|
3
|
+
- Storybook (Latest): [Icon](https://designsystem-latest.dn.se/?path=/docs/foundations-icons--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
# Icons
|
|
@@ -16,7 +17,7 @@ There are three ways to use icons from DS:
|
|
|
16
17
|
|
|
17
18
|
|parameter | type | required | options | default | description |
|
|
18
19
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
19
|
-
|icon | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
20
|
+
|icon | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
20
21
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
21
22
|
|attributes | Object | no | | | Ex. { "data-test": "lorem ipsum" } |
|
|
22
23
|
|~forcePx~ | | | | | Not supported |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/icon-with-wrapper](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/icon-with-wrapper)
|
|
2
|
-
- Storybook: [Icon
|
|
2
|
+
- Storybook: [Icon](https://designsystem.dn.se/?path=/docs/foundations-icons--docs)
|
|
3
|
+
- Storybook (Latest): [Icon](https://designsystem-latest.dn.se/?path=/docs/foundations-icons--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -9,7 +10,7 @@
|
|
|
9
10
|
|
|
10
11
|
|parameter | type | required | options | default | description |
|
|
11
12
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
12
|
-
|icon | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
13
|
+
|icon | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
13
14
|
|color | String | no | primary, primary-02 etc | primary | Any icon color, use without `icon-` prefix. For all available colors see: https://designsystem.dn.se/?path=/story/foundations-colors--colors |
|
|
14
15
|
|size| Int | no | 16, 20, 24, 32, 40 | 24 | |
|
|
15
16
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
@@ -48,7 +49,7 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
48
49
|
|
|
49
50
|
|parameter | type | required | options | default | description |
|
|
50
51
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
51
|
-
|icon | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
52
|
+
|icon | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
52
53
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
53
54
|
|attributes | Object | no | | | Ex. { "data-test": "lorem ipsum" } |
|
|
54
55
|
|~forcePx~ | | | | | Not supported |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/image-caption](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/image-caption)
|
|
2
|
-
- Storybook: [ImageCaption
|
|
2
|
+
- Storybook: [ImageCaption](https://designsystem.dn.se/?path=/docs/article-imagecaption--docs)
|
|
3
|
+
- Storybook (Latest): [ImageCaption](https://designsystem-latest.dn.se/?path=/docs/article-imagecaption--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/list-item](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/list-item)
|
|
2
|
-
- Storybook: [ListItem > AccordionListItem
|
|
2
|
+
- Storybook: [ListItem > AccordionListItem](https://designsystem.dn.se/?path=/story/basic-listitem-accordionlistitem--docs)
|
|
3
|
+
- Storybook (Latest): [ListItem > AccordionListItem](https://designsystem-latest.dn.se/?path=/story/basic-listitem-accordionlistitem--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
|meta | String | no | | | |
|
|
17
18
|
|disabled | bool | no | true, false | false | |
|
|
18
19
|
|border | bool | no | true, false | false | |
|
|
19
|
-
|leadingIcon | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
20
|
+
|leadingIcon | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
20
21
|
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
21
22
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
22
23
|
|forcePx | bool | no | true, false | false | Fixed pixel value is used for typography to prevent scaling based on html font-size
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/list-item](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/list-item)
|
|
2
|
-
- Storybook: [ListItem > CheckboxListItem
|
|
2
|
+
- Storybook: [ListItem > CheckboxListItem](https://designsystem.dn.se/?path=/docs/basic-listitem-checkboxlistitem--docs)
|
|
3
|
+
- Storybook (Latest): [ListItem > CheckboxListItem](https://designsystem-latest.dn.se/?path=/docs/basic-listitem-checkboxlistitem--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/list-item](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/list-item)
|
|
2
|
-
- Storybook: [ListItem > RadioListItem
|
|
2
|
+
- Storybook: [ListItem > RadioListItem](https://designsystem.dn.se/?path=/docs/basic-listitem-radiolistitem--docs)
|
|
3
|
+
- Storybook (Latest): [ListItem > RadioListItem](https://designsystem-latest.dn.se/?path=/docs/basic-listitem-radiolistitem--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/list-item](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/list-item)
|
|
2
|
-
- Storybook: [ListItem > SwitchListItem
|
|
2
|
+
- Storybook: [ListItem > SwitchListItem](https://designsystem.dn.se/?path=/docs/basic-listitem-switchlistitem--docs)
|
|
3
|
+
- Storybook (Latest): [ListItem > SwitchListItem](https://designsystem-latest.dn.se/?path=/docs/basic-listitem-switchlistitem--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
|selected | bool | no | true, false | false | |
|
|
17
18
|
|disabled | bool | no | true, false | false | |
|
|
18
19
|
|border | bool | no | true, false | false | |
|
|
19
|
-
|leadingIcon | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
20
|
+
|leadingIcon | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
20
21
|
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
21
22
|
|elementAttributes | Object | no | | | Sets attributes on actual switch element and not list item. Same structure as attributes above |
|
|
22
23
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/list-item](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/list-item)
|
|
2
|
-
- Storybook: [ListItem > ToggleListItem
|
|
2
|
+
- Storybook: [ListItem > ToggleListItem](https://designsystem.dn.se/?path=/docs/basic-listitem-togglelistitem--docs)
|
|
3
|
+
- Storybook (Latest): [ListItem > ToggleListItem](https://designsystem-latest.dn.se/?path=/docs/basic-listitem-togglelistitem--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/list-item](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/list-item)
|
|
2
|
-
- Storybook: [ListItem > StandardListItem
|
|
2
|
+
- Storybook: [ListItem > StandardListItem](https://designsystem.dn.se/?path=/docs/basic-listitem-standardlistitem--docs)
|
|
3
|
+
- Storybook (Latest): [ListItem > StandardListItem](https://designsystem-latest.dn.se/?path=/docs/basic-listitem-standardlistitem--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -15,8 +16,8 @@
|
|
|
15
16
|
|meta | String | no | | | |
|
|
16
17
|
|disabled | bool | no | true, false | false | Note: only works on button-tag, not on a-tag |
|
|
17
18
|
|border | bool | no | true, false | false | |
|
|
18
|
-
|leadingIcon | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
19
|
-
|trailingIcon | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
19
|
+
|leadingIcon | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
20
|
+
|trailingIcon | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
20
21
|
|href | String | no | | | If href is set the list item will be rendered as an a-tag |
|
|
21
22
|
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
22
23
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/pictogram](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/pictogram)
|
|
2
|
-
- Storybook: [Pictogram
|
|
2
|
+
- Storybook: [Pictogram](https://designsystem.dn.se/?path=/docs/basic-pictogram--docs)
|
|
3
|
+
- Storybook (Latest): [Pictogram](https://designsystem-latest.dn.se/?path=/docs/basic-pictogram--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -10,7 +11,7 @@
|
|
|
10
11
|
|parameter | type | required | options | default | description |
|
|
11
12
|
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
12
13
|
|variant| String | yes | brand, business | brand | Design variant |
|
|
13
|
-
|iconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
14
|
+
|iconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
14
15
|
|size| String | yes | small, large | small | |
|
|
15
16
|
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
16
17
|
|classNames | String | no | | | Ex. "my-special-class" |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/quote](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/quote)
|
|
2
|
-
- Storybook: [Quote
|
|
2
|
+
- Storybook: [Quote](https://designsystem.dn.se/?path=/docs/article-quote--docs)
|
|
3
|
+
- Storybook (Latest): [Quote](https://designsystem-latest.dn.se/?path=/docs/article-quote--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/radio-button](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/radio-button)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Form > RadioButton](https://designsystem.dn.se/?path=/docs/basic-form-radiobutton--docs)
|
|
3
|
+
- Storybook (Latest): [Form > RadioButton](https://designsystem-latest.dn.se/?path=/docs/basic-form-radiobutton--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/spinner](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/spinner)
|
|
2
|
-
- Storybook: [Spinner
|
|
2
|
+
- Storybook: [Spinner](https://designsystem.dn.se/?path=/docs/basic-spinner--docs)
|
|
3
|
+
- Storybook (Latest): [Spinner](https://designsystem-latest.dn.se/?path=/docs/basic-spinner--docs)
|
|
3
4
|
----
|
|
4
5
|
|
|
5
6
|
# Spinner
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/switch](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/switch)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Form > Switch](https://designsystem.dn.se/?path=/docs/basic-form-switch--docs)
|
|
3
|
+
- Storybook (Latest): [Form > Switch](https://designsystem-latest.dn.se/?path=/docs/basic-form-switch--docs)
|
|
3
4
|
----
|
|
4
5
|
|
|
5
6
|
# Switch
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-dot](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-dot)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Subcomponents > TeaserDot](https://designsystem.dn.se/?path=/docs/section-subcomponents-teaserdot--docs)
|
|
3
|
+
- Storybook (Latest): [Subcomponents > TeaserDot](https://designsystem-latest.dn.se/?path=/docs/section-subcomponents-teaserdot--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-image](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-image)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [Subcomponents > TeaserImage](https://designsystem.dn.se/?path=/docs/section-subcomponents-teaserimage--docs)
|
|
3
|
+
- Storybook (Latest): [Subcomponents > TeaserImage](https://designsystem-latest.dn.se/?path=/docs/section-subcomponents-teaserimage--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -37,4 +37,3 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
This scss is already included in `teaser.scss`.
|
|
40
|
-
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-large](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-large)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserLarge](https://designsystem.dn.se/?path=/docs/section-teaserlarge--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserLarge](https://designsystem-latest.dn.se/?path=/docs/section-teaserlarge--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-list-timeline](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-list-timeline)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserListTimeline](https://designsystem.dn.se/?path=/docs/section-teaserlisttimeline--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserListTimeline](https://designsystem-latest.dn.se/?path=/docs/section-teaserlisttimeline--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-native](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-native)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserNative](https://designsystem.dn.se/?path=/docs/section-teasernative--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserNative](https://designsystem-latest.dn.se/?path=/docs/section-teasernative--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-onsite](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-onsite)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserOnSite](https://designsystem.dn.se/?path=/docs/section-teaseronsite--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserOnSite](https://designsystem-latest.dn.se/?path=/docs/section-teaseronsite--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-package](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-package)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserPackage](https://designsystem.dn.se/?path=/docs/section-teaserpackage--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserPackage](https://designsystem-latest.dn.se/?path=/docs/section-teaserpackage--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-right-now](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-right-now)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserRightNow](https://designsystem.dn.se/?path=/docs/section-teaserrightnow--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserRightNow](https://designsystem-latest.dn.se/?path=/docs/section-teaserrightnow--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-slideshow](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-slideshow)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserSlideshow](https://designsystem.dn.se/?path=/docs/section-teaserslideshow--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserSlideshow](https://designsystem-latest.dn.se/?path=/docs/section-teaserslideshow--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-split](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-split)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserSplitContainer](https://designsystem.dn.se/?path=/docs/section-teasersplitcontainer--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserSplitContainer](https://designsystem-latest.dn.se/?path=/docs/section-teasersplitcontainer--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-split](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-split)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserSplit](https://designsystem.dn.se/?path=/docs/section-teasersplitcontainer-teasersplit--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserSplit](https://designsystem-latest.dn.se/?path=/docs/section-teasersplitcontainer-teasersplit--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-standard](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-standard)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserStandard](https://designsystem.dn.se/?path=/docs/section-teaserstandard--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserStandard](https://designsystem-latest.dn.se/?path=/docs/section-teaserstandard--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-tipsa](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-tipsa)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [TeaserTipsa](https://designsystem.dn.se/?path=/docs/section-teasertipsa--docs)
|
|
3
|
+
- Storybook (Latest): [TeaserTipsa](https://designsystem-latest.dn.se/?path=/docs/section-teasertipsa--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/text-button](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/text-button)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Buttons > TextButton](https://designsystem.dn.se/?path=/docs/basic-buttons-textbutton--docs)
|
|
3
|
+
- Storybook (Latest): [Buttons > TextButton](https://designsystem-latest.dn.se/?path=/docs/basic-buttons-textbutton--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -15,7 +16,7 @@
|
|
|
15
16
|
|mobile.fullWidth | bool | no | true, false | false | Ex mobile: { fullWidth: true } |
|
|
16
17
|
|condensed | bool | no | true, false | false | Condensed reduces spacing to a bare minimum, use with care since this might make touch target area smaller than recommended size |
|
|
17
18
|
|iconPosition | String | no | none, left, right | none | |
|
|
18
|
-
|iconName | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
19
|
+
|iconName | String | no | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
19
20
|
|loading | bool | no | true, false | false | |
|
|
20
21
|
|href | String | no | | | If href is set the button will be rendered as an a-tag |
|
|
21
22
|
|attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/text-button-toggle](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/text-button-toggle)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Buttons > TextButtonToggle](https://designsystem.dn.se/?path=/docs/basic-buttons-textbuttontoggle--docs)
|
|
3
|
+
- Storybook (Latest): [Buttons > TextButtonToggle](https://designsystem-latest.dn.se/?path=/docs/basic-buttons-textbuttontoggle--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -12,8 +13,8 @@
|
|
|
12
13
|
|selected | bool | no | true, false | false | |
|
|
13
14
|
|text | String | yes | | | |
|
|
14
15
|
|selectedText | String | yes | | | |
|
|
15
|
-
|iconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
16
|
-
|selectedIconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-
|
|
16
|
+
|iconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
17
|
+
|selectedIconName | String | yes | add, arrow_back, arrow_forward etc | | For all available icons see: https://designsystem.dn.se/?path=/story/foundations-icons--all-icons |
|
|
17
18
|
|disabled | bool | no | true, false | false | Note: only works on button-tag, not on a-tag |
|
|
18
19
|
|condensed | bool | no | true, false | false | Condensed reduces spacing to a bare minimum, use with care since this might make touch target area smaller than recommended size |
|
|
19
20
|
|loading | bool | no | true, false | false | |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/text-input](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/text-input)
|
|
2
|
-
- Storybook: [
|
|
3
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Form > TextInput](https://designsystem.dn.se/?path=/docs/basic-form-textinput--docs)
|
|
3
|
+
- Storybook (Latest): [Form > TextInput](https://designsystem-latest.dn.se/?path=/docs/basic-form-textinput--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
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
|
|
2
|
+
- Storybook: [ThematicBreak](https://designsystem.dn.se/?path=/docs/article-thematicbreak--docs)
|
|
3
|
+
- Storybook (Latest): [ThematicBreak](https://designsystem-latest.dn.se/?path=/docs/article-thematicbreak--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/video-caption](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/video-caption)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [VideoCaption](https://designsystem.dn.se/?path=/docs/article-videocaption--docs)
|
|
3
|
+
- Storybook (Latest): [VideoCaption](https://designsystem-latest.dn.se/?path=/docs/article-videocaption--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/components/vip-badge](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/vip-badge)
|
|
2
|
-
- Storybook
|
|
3
|
-
- Storybook (
|
|
2
|
+
- Storybook: [Subcomponents > Vip Badge](https://designsystem.dn.se/?path=/docs/section-subcomponents-vipbadge--docs)
|
|
3
|
+
- Storybook (Latest): [Subcomponents > Vip Badge](https://designsystem-latest.dn.se/?path=/docs/section-subcomponents-vipbadge--docs)
|
|
4
4
|
|
|
5
5
|
----
|
|
6
6
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
- GitHub: [BonnierNews/dn-design-system/../web/src/foundations/helpers/links.scss](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/foundations/helpers/links.scss)
|
|
2
|
-
- Storybook: [
|
|
2
|
+
- Storybook: [Link](https://designsystem.dn.se/?path=/docs/helpers-link--docs)
|
|
3
|
+
- Storybook (Latest): [Link](https://designsystem-latest.dn.se/?path=/docs/helpers-link--docs)
|
|
3
4
|
|
|
4
5
|
----
|
|
5
6
|
|
package/package.json
CHANGED