@bonniernews/dn-design-system-web 33.0.4 → 33.0.6
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 +15 -0
- package/components/footer/README.md +4 -4
- package/components/group-header/README.md +1 -0
- package/components/teaser-list-swipe/README.md +1 -0
- package/components/teaser-longlife/teaser-longlife.scss +6 -0
- package/components/teaser-native/teaser-native.scss +6 -0
- package/components/teaser-slideshow/README.md +1 -1
- package/components/teaser-split/teaser-split.scss +6 -0
- package/components/teaser-text-on-image/teaser-text-on-image.scss +6 -0
- package/package.json +1 -1
- package/preact/components/group-header/group-header.d.ts +3 -1
- package/preact/components/group-header/group-header.js +5 -4
- package/preact/components/group-header/group-header.js.map +2 -2
- package/preact/components/link-box/link-box.js +5 -4
- package/preact/components/link-box/link-box.js.map +2 -2
- package/preact/components/teaser-list-swipe/teaser-list-swipe.d.ts +3 -1
- package/preact/components/teaser-list-swipe/teaser-list-swipe.js +12 -9
- package/preact/components/teaser-list-swipe/teaser-list-swipe.js.map +2 -2
- package/preact/components/teaser-list-vertical/teaser-list-vertical.js +5 -4
- package/preact/components/teaser-list-vertical/teaser-list-vertical.js.map +2 -2
- package/preact/components/teaser-package/teaser-package.js +5 -4
- package/preact/components/teaser-package/teaser-package.js.map +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,21 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
+
## [33.0.6](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@33.0.5...@bonniernews/dn-design-system-web@33.0.6) (2025-09-15)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **web:** fix issue with test in dev ([#1893](https://github.com/BonnierNews/dn-design-system/issues/1893)) ([1ce6d65](https://github.com/BonnierNews/dn-design-system/commit/1ce6d65afddea575ff70db96d84d1c8be67061c7))
|
|
13
|
+
* **web:** fix teaser native hover effect bug ([#1892](https://github.com/BonnierNews/dn-design-system/issues/1892)) ([03efc3c](https://github.com/BonnierNews/dn-design-system/commit/03efc3ccae30bf6d3f4ee1d77b7368757305ae77))
|
|
14
|
+
|
|
15
|
+
## [33.0.5](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@33.0.4...@bonniernews/dn-design-system-web@33.0.5) (2025-09-10)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **web:** add channel as prop ([#1889](https://github.com/BonnierNews/dn-design-system/issues/1889)) ([b37ad33](https://github.com/BonnierNews/dn-design-system/commit/b37ad33d6c711517ac56de9f8b68a63d9125d0ca))
|
|
21
|
+
|
|
7
22
|
## [33.0.4](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@33.0.3...@bonniernews/dn-design-system-web@33.0.4) (2025-09-09)
|
|
8
23
|
|
|
9
24
|
|
|
@@ -30,28 +30,28 @@ The component will not include styling by itself. Make sure to include the right
|
|
|
30
30
|
attributes: {
|
|
31
31
|
rel: 'nofollow'
|
|
32
32
|
},
|
|
33
|
-
classNames: 'hidden-mobile',
|
|
33
|
+
classNames: 'story-hidden-mobile',
|
|
34
34
|
text: 'Mobil'
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
37
|
attributes: {
|
|
38
38
|
rel: 'nofollow'
|
|
39
39
|
},
|
|
40
|
-
classNames: 'hidden-tablet',
|
|
40
|
+
classNames: 'story-hidden-tablet',
|
|
41
41
|
text: 'Tablet'
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
attributes: {
|
|
45
45
|
rel: 'nofollow'
|
|
46
46
|
},
|
|
47
|
-
classNames: 'hidden-desktop',
|
|
47
|
+
classNames: 'story-hidden-desktop',
|
|
48
48
|
text: 'Webb'
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
attributes: {
|
|
52
52
|
id: 'site-footer__cookie-settings'
|
|
53
53
|
},
|
|
54
|
-
classNames: 'hidden-tablet',
|
|
54
|
+
classNames: 'story-hidden-tablet',
|
|
55
55
|
text: 'Cookie-inställningar'
|
|
56
56
|
}
|
|
57
57
|
]}
|
|
@@ -21,6 +21,7 @@ The component will not include styling by itself. Make sure to include the right
|
|
|
21
21
|
| toggleLoading | `loading` parameter to ToggleButton (only for type `toggle`)<br />boolean | false |
|
|
22
22
|
| toggleClassNames | `classNames` parameter to ToggleButton (only for type `toggle`)<br />string | \- |
|
|
23
23
|
| toggleAttributes | `attributes` parameter to ToggleButton (only for type `toggle`)<br />{ \[key: string\]: string; } | { } |
|
|
24
|
+
| channel | Used to include or exclude elements based on channel<br />"mobile", "tablet", "desktop" | \- |
|
|
24
25
|
| classNames | Ex. "my-special-class"<br />string | \- |
|
|
25
26
|
| attributes | Ex. { target: "\_blank", "data-test": "lorem ipsum" }<br />Record<string, unknown> | { } |
|
|
26
27
|
|
|
@@ -19,6 +19,7 @@ The component will not include styling by itself. Make sure to include the right
|
|
|
19
19
|
| groupHeaderToggleSelected | Is toggle button selected or not<br />boolean | false |
|
|
20
20
|
| groupHeaderToggleClassNames | Class names for toggle button<br />string | \- |
|
|
21
21
|
| groupHeaderToggleAttributes | Attributes for toggle button. Ex. { "data-entity-id": "dn.epi.434" }<br />Record<string, string> | { } |
|
|
22
|
+
| channel | Used to include or exclude elements based on channel<br />"mobile", "tablet", "desktop" | \- |
|
|
22
23
|
| classNames | Ex. "my-special-class"<br />string | \- |
|
|
23
24
|
| attributes | Ex. { target: "\_blank", "data-test": "lorem ipsum" }<br />Record<string, unknown> | { } |
|
|
24
25
|
|
|
@@ -19,7 +19,7 @@ The component will not include styling by itself. Make sure to include the right
|
|
|
19
19
|
|
|
20
20
|
```jsx
|
|
21
21
|
<TeaserSlideshow
|
|
22
|
-
media={
|
|
22
|
+
media={<>--Gallery ComponentChild--</>}
|
|
23
23
|
text="Kolla på alla fina bilder från festen!"
|
|
24
24
|
title="Nyårsafton 2023"
|
|
25
25
|
/>
|
|
@@ -22,6 +22,12 @@
|
|
|
22
22
|
background: linear-gradient(var(--ds-color-gradients-overlay-end), var(--ds-color-gradients-overlay-start));
|
|
23
23
|
z-index: 2;
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
@include ds-hover(true) {
|
|
27
|
+
.ds-teaser__title {
|
|
28
|
+
@include ds-underline();
|
|
29
|
+
}
|
|
30
|
+
}
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
.ds-teaser__title,
|
package/package.json
CHANGED
|
@@ -30,6 +30,8 @@ export interface GroupHeaderProps extends SharedProps {
|
|
|
30
30
|
toggleAttributes?: {
|
|
31
31
|
[key: string]: string;
|
|
32
32
|
};
|
|
33
|
+
/** Used to include or exclude elements based on channel */
|
|
34
|
+
channel?: 'mobile' | 'tablet' | 'desktop';
|
|
33
35
|
}
|
|
34
36
|
/**
|
|
35
37
|
* - GitHub: [BonnierNews/dn-design-system/web/src/components/group-header](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/group-header)
|
|
@@ -38,4 +40,4 @@ export interface GroupHeaderProps extends SharedProps {
|
|
|
38
40
|
* The component will not include styling by itself. Make sure to include the right styles for the component. See example below:
|
|
39
41
|
* `@use '@bonniernews/dn-design-system-web/components/group-header/group-header.scss'`
|
|
40
42
|
*/
|
|
41
|
-
export declare function GroupHeader({ title, type, variant, media, href, linkText, showBottomBorder, toggleText, toggleSelectedText, toggleSelected, toggleLoading, toggleClassNames, toggleAttributes, classNames, attributes, }: GroupHeaderProps): import("preact").JSX.Element;
|
|
43
|
+
export declare function GroupHeader({ title, type, variant, media, href, linkText, showBottomBorder, toggleText, toggleSelectedText, toggleSelected, toggleLoading, toggleClassNames, toggleAttributes, classNames, attributes, channel, }: GroupHeaderProps): import("preact").JSX.Element;
|
|
@@ -249,7 +249,8 @@ function GroupHeader({
|
|
|
249
249
|
toggleClassNames,
|
|
250
250
|
toggleAttributes = {},
|
|
251
251
|
classNames,
|
|
252
|
-
attributes = {}
|
|
252
|
+
attributes = {},
|
|
253
|
+
channel
|
|
253
254
|
}) {
|
|
254
255
|
const componentClassName = "ds-group-header";
|
|
255
256
|
variant = variant !== "bauta" ? void 0 : variant;
|
|
@@ -266,8 +267,8 @@ function GroupHeader({
|
|
|
266
267
|
/* @__PURE__ */ jsx7("h2", { className: `${componentClassName}__title`, children: title }),
|
|
267
268
|
type === "link" && linkText && href && /* @__PURE__ */ jsx7("span", { className: `${componentClassName}__right-link`, children: linkText }),
|
|
268
269
|
type === "icon" && href && /* @__PURE__ */ jsx7(IconUse, { iconName: "arrow_forward", classNames: `${componentClassName}__icon` }),
|
|
269
|
-
type === "arrows" && href && linkText && /* @__PURE__ */ jsx7("span", { className: `${componentClassName}__right-link
|
|
270
|
-
type === "arrows" && href && !linkText && /* @__PURE__ */ jsx7(IconUse, { iconName: "arrow_forward", classNames: `${componentClassName}__icon
|
|
270
|
+
type === "arrows" && href && linkText && channel !== "desktop" && /* @__PURE__ */ jsx7("span", { className: `${componentClassName}__right-link`, children: linkText }),
|
|
271
|
+
type === "arrows" && href && !linkText && channel !== "desktop" && /* @__PURE__ */ jsx7(IconUse, { iconName: "arrow_forward", classNames: `${componentClassName}__icon` })
|
|
271
272
|
] });
|
|
272
273
|
const buttonVariant = variant ? "staticWhite" : "secondaryOutline";
|
|
273
274
|
return /* @__PURE__ */ jsxs3("div", { className: classes, ...attributes, children: [
|
|
@@ -287,7 +288,7 @@ function GroupHeader({
|
|
|
287
288
|
attributes: toggleAttributes
|
|
288
289
|
}
|
|
289
290
|
),
|
|
290
|
-
type === "arrows" && /* @__PURE__ */ jsxs3("div", { className: `${componentClassName}__arrows
|
|
291
|
+
type === "arrows" && channel === "desktop" && /* @__PURE__ */ jsxs3("div", { className: `${componentClassName}__arrows`, children: [
|
|
291
292
|
/* @__PURE__ */ jsx7(
|
|
292
293
|
button_default,
|
|
293
294
|
{
|