@bonniernews/dn-design-system-web 26.0.1 → 27.0.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
@@ -4,6 +4,30 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [27.0.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@26.0.2...@bonniernews/dn-design-system-web@27.0.0) (2025-02-09)
8
+
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+
12
+ * update variables (#1601)
13
+
14
+ ### Maintenance
15
+
16
+ * prerelease packages ([d61250d](https://github.com/BonnierNews/dn-design-system/commit/d61250d70c8d4f05701eba31feecd6488105e0b7))
17
+ * update variables ([#1601](https://github.com/BonnierNews/dn-design-system/issues/1601)) ([221b0b5](https://github.com/BonnierNews/dn-design-system/commit/221b0b5bae56b8dcfee1c461341c8c3ddcf3f731))
18
+
19
+ ## [26.0.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@26.0.1...@bonniernews/dn-design-system-web@26.0.2) (2025-02-05)
20
+
21
+
22
+ ### Bug Fixes
23
+
24
+ * **web:** do not render spinner if button has a link ([#1599](https://github.com/BonnierNews/dn-design-system/issues/1599)) ([17e562a](https://github.com/BonnierNews/dn-design-system/commit/17e562afa88bfff82c535c9328101d21488f6885))
25
+
26
+
27
+ ### Maintenance
28
+
29
+ * **deps:** bump store2 from 2.14.2 to 2.14.4 in /web ([#1593](https://github.com/BonnierNews/dn-design-system/issues/1593)) ([e48bfdf](https://github.com/BonnierNews/dn-design-system/commit/e48bfdf4e9c4f201e132bdc0c30e0f8a52cb1825))
30
+
7
31
  ## [26.0.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@26.0.0...@bonniernews/dn-design-system-web@26.0.1) (2025-02-03)
8
32
 
9
33
 
@@ -79,6 +79,9 @@
79
79
  {% endif %}
80
80
  {% endcall %}
81
81
  {% else %}
82
+ {% if params.href %}
83
+ {% set loadingHtml = null %}
84
+ {% endif %}
82
85
  {% set buttonParams = { isIconButton: params.isIconBtn, a11y: params.a11y, text: text, iconSvg: iconSvg, loadingHtml: loadingHtml , attributes: params.attributes } %}
83
86
  {%- if params.href %}
84
87
  <a href="{{ params.href | default('#', true) }}" {{ ariaLabel | safe }} class="{{ classes }}" {{- attributes | safe }}>
@@ -1,8 +1,8 @@
1
- $ds-hex-dark-surface-foreground: #000000;
2
- $ds-hex-dark-surface-primary: #0f0f0f;
3
- $ds-hex-dark-surface-primary-raised-soft: #171717;
4
- $ds-hex-dark-surface-primary-raised-strong: #212121;
5
- $ds-hex-dark-surface-primary-elevated: #0f0f0f;
1
+ $ds-hex-dark-surface-foreground: #0d0d0d;
2
+ $ds-hex-dark-surface-primary: #171717;
3
+ $ds-hex-dark-surface-primary-raised-soft: #242424;
4
+ $ds-hex-dark-surface-primary-raised-strong: #333333;
5
+ $ds-hex-dark-surface-primary-elevated: #333333;
6
6
  $ds-hex-dark-surface-primaryinvert: #ffffff;
7
7
  $ds-hex-dark-surface-primaryinvert-raised-soft: rgba(5, 5, 5, 0.05);
8
8
  $ds-hex-dark-surface-primaryinvert-elevated: #ffffff;
@@ -14,20 +14,20 @@ $ds-hex-dark-surface-overlay: rgba(5, 5, 5, 0.5);
14
14
  $ds-hex-dark-surface-ad-yellow: #ffeac6;
15
15
  $ds-hex-dark-surface-native-article: #2b2b2b;
16
16
  $ds-hex-dark-surface-quiz: #ea3e3f;
17
- $ds-hex-dark-border-primary: rgba(255, 255, 255, 0.15);
18
- $ds-hex-dark-border-primary-strong: rgba(255, 255, 255, 0.39);
17
+ $ds-hex-dark-border-primary: rgba(255, 255, 255, 0.1);
18
+ $ds-hex-dark-border-primary-strong: rgba(255, 255, 255, 0.25);
19
19
  $ds-hex-dark-border-primary-strongest: #ffffff;
20
20
  $ds-hex-dark-border-primaryinvert: rgba(5, 5, 5, 0.13);
21
21
  $ds-hex-dark-border-primaryinvert-strong: rgba(5, 5, 5, 0.5);
22
- $ds-hex-dark-border-primaryinvert-strongest: #000000;
22
+ $ds-hex-dark-border-primaryinvert-strongest: #0d0d0d;
23
23
  $ds-hex-dark-border-brand: #fd2330;
24
24
  $ds-hex-dark-border-culture: #4293d7;
25
- $ds-hex-dark-text-primary: #e8e8e8;
25
+ $ds-hex-dark-text-primary: #e5e5e5;
26
26
  $ds-hex-dark-text-primary-subtle: #b2b2b2;
27
27
  $ds-hex-dark-text-primary-disabled: #b2b2b2;
28
- $ds-hex-dark-text-primaryinvert: #000000;
28
+ $ds-hex-dark-text-primaryinvert: #0d0d0d;
29
29
  $ds-hex-dark-text-primaryinvert-subtle: #595959;
30
- $ds-hex-dark-text-primaryinvert-disabled: #000000;
30
+ $ds-hex-dark-text-primaryinvert-disabled: #0d0d0d;
31
31
  $ds-hex-dark-text-brand: #fd2330;
32
32
  $ds-hex-dark-text-culture: #4293d7;
33
33
  $ds-hex-dark-text-critical: #fd2330;
@@ -62,19 +62,19 @@ $ds-hex-dark-culture-900: #0e314e;
62
62
  $ds-hex-dark-culture-1000: #152029;
63
63
  $ds-hex-dark-culture-1100: #05101a;
64
64
  $ds-hex-dark-neutral-100: #f2f2f2;
65
- $ds-hex-dark-neutral-200: #e8e8e8;
65
+ $ds-hex-dark-neutral-200: #e5e5e5;
66
66
  $ds-hex-dark-neutral-300: #cdcdcd;
67
67
  $ds-hex-dark-neutral-400: #b2b2b2;
68
68
  $ds-hex-dark-neutral-500: #8c8c8c;
69
69
  $ds-hex-dark-neutral-600: #666666;
70
70
  $ds-hex-dark-neutral-700: #595959;
71
71
  $ds-hex-dark-neutral-800: #363636;
72
- $ds-hex-dark-neutral-900: #212121;
73
- $ds-hex-dark-neutral-1000: #171717;
74
- $ds-hex-dark-neutral-1100: #0f0f0f;
72
+ $ds-hex-dark-neutral-900: #333333;
73
+ $ds-hex-dark-neutral-1000: #242424;
74
+ $ds-hex-dark-neutral-1100: #171717;
75
75
  $ds-hex-dark-neutral-white: #ffffff;
76
76
  $ds-hex-dark-neutral-050: #f8f8f8;
77
- $ds-hex-dark-neutral-black: #000000;
77
+ $ds-hex-dark-neutral-black: #0d0d0d;
78
78
  $ds-hex-dark-bright-neutral-alpha-100: rgba(5, 5, 5, 0.05);
79
79
  $ds-hex-dark-bright-neutral-alpha-200: rgba(5, 5, 5, 0.13);
80
80
  $ds-hex-dark-bright-neutral-alpha-300: rgba(5, 5, 5, 0.2);
@@ -1,11 +1,11 @@
1
1
  $ds-hex-surface-foreground: #f8f8f8;
2
2
  $ds-hex-surface-primary: #ffffff;
3
3
  $ds-hex-surface-primary-raised-soft: #f2f2f2;
4
- $ds-hex-surface-primary-raised-strong: #e8e8e8;
4
+ $ds-hex-surface-primary-raised-strong: #e5e5e5;
5
5
  $ds-hex-surface-primary-elevated: #ffffff;
6
- $ds-hex-surface-primaryinvert: #000000;
6
+ $ds-hex-surface-primaryinvert: #0d0d0d;
7
7
  $ds-hex-surface-primaryinvert-raised-soft: #ffffff0d;
8
- $ds-hex-surface-primaryinvert-elevated: #171717;
8
+ $ds-hex-surface-primaryinvert-elevated: #242424;
9
9
  $ds-hex-surface-brand: #da000d;
10
10
  $ds-hex-surface-success: #3a8352;
11
11
  $ds-hex-surface-culture: #227ac3;
@@ -14,15 +14,15 @@ $ds-hex-surface-overlay: #05050580;
14
14
  $ds-hex-surface-ad-yellow: #ffeac6;
15
15
  $ds-hex-surface-native-article: #ededed;
16
16
  $ds-hex-surface-quiz: #ea3e3f;
17
- $ds-hex-border-primary: #05050521;
18
- $ds-hex-border-primary-strong: #05050580;
19
- $ds-hex-border-primary-strongest: #000000;
17
+ $ds-hex-border-primary: #0505051a;
18
+ $ds-hex-border-primary-strong: #05050540;
19
+ $ds-hex-border-primary-strongest: #0d0d0d;
20
20
  $ds-hex-border-primaryinvert: #ffffff26;
21
21
  $ds-hex-border-primaryinvert-strong: #ffffff63;
22
22
  $ds-hex-border-primaryinvert-strongest: #ffffff;
23
23
  $ds-hex-border-brand: #da000d;
24
24
  $ds-hex-border-culture: #227ac3;
25
- $ds-hex-text-primary: #000000;
25
+ $ds-hex-text-primary: #0d0d0d;
26
26
  $ds-hex-text-primary-subtle: #595959;
27
27
  $ds-hex-text-primary-disabled: #595959;
28
28
  $ds-hex-text-primaryinvert: #f2f2f2;
@@ -62,19 +62,19 @@ $ds-hex-culture-900: #0e314e;
62
62
  $ds-hex-culture-1000: #152029;
63
63
  $ds-hex-culture-1100: #05101a;
64
64
  $ds-hex-neutral-100: #f2f2f2;
65
- $ds-hex-neutral-200: #e8e8e8;
65
+ $ds-hex-neutral-200: #e5e5e5;
66
66
  $ds-hex-neutral-300: #cdcdcd;
67
67
  $ds-hex-neutral-400: #b2b2b2;
68
68
  $ds-hex-neutral-500: #8c8c8c;
69
69
  $ds-hex-neutral-600: #666666;
70
70
  $ds-hex-neutral-700: #595959;
71
71
  $ds-hex-neutral-800: #363636;
72
- $ds-hex-neutral-900: #212121;
73
- $ds-hex-neutral-1000: #171717;
74
- $ds-hex-neutral-1100: #0f0f0f;
72
+ $ds-hex-neutral-900: #333333;
73
+ $ds-hex-neutral-1000: #242424;
74
+ $ds-hex-neutral-1100: #171717;
75
75
  $ds-hex-neutral-white: #ffffff;
76
76
  $ds-hex-neutral-050: #f8f8f8;
77
- $ds-hex-neutral-black: #000000;
77
+ $ds-hex-neutral-black: #0d0d0d;
78
78
  $ds-hex-bright-neutral-alpha-100: #0505050d;
79
79
  $ds-hex-bright-neutral-alpha-200: #05050521;
80
80
  $ds-hex-bright-neutral-alpha-300: #05050533;
@@ -1,30 +1,30 @@
1
1
  $shadowsDnDark: (
2
2
  elevation-xs: (
3
3
  x: 0,
4
- y: 0,
5
- blur: 0,
6
- spread: 0,
7
- color: #0505051a
4
+ y: 1,
5
+ blur: 2,
6
+ spread: 1,
7
+ color: rgba(13, 13, 13, 0.25)
8
8
  ),
9
9
  elevation-sm: (
10
10
  x: 0,
11
- y: 0,
12
- blur: 0,
13
- spread: 0,
14
- color: #0505051a
11
+ y: 2,
12
+ blur: 4,
13
+ spread: 1,
14
+ color: rgba(13, 13, 13, 0.25)
15
15
  ),
16
16
  elevation-md: (
17
17
  x: 0,
18
- y: 0,
19
- blur: 0,
18
+ y: 4,
19
+ blur: 8,
20
20
  spread: 0,
21
- color: #0505051a
21
+ color: rgba(13, 13, 13, 0.25)
22
22
  ),
23
23
  elevation-lg: (
24
24
  x: 0,
25
- y: 0,
26
- blur: 0,
25
+ y: 4,
26
+ blur: 16,
27
27
  spread: 0,
28
- color: #0000001a
28
+ color: rgba(13, 13, 13, 0.25)
29
29
  )
30
30
  );
@@ -4,27 +4,27 @@ $shadowsDnLight: (
4
4
  y: 1,
5
5
  blur: 2,
6
6
  spread: 1,
7
- color: #0505051a
7
+ color: rgba(13, 13, 13, 0.15)
8
8
  ),
9
9
  elevation-sm: (
10
10
  x: 0,
11
11
  y: 2,
12
12
  blur: 4,
13
13
  spread: 1,
14
- color: #0505051a
14
+ color: rgba(13, 13, 13, 0.15)
15
15
  ),
16
16
  elevation-md: (
17
17
  x: 0,
18
18
  y: 4,
19
19
  blur: 8,
20
20
  spread: 0,
21
- color: #0505051a
21
+ color: rgba(13, 13, 13, 0.15)
22
22
  ),
23
23
  elevation-lg: (
24
24
  x: 0,
25
25
  y: 4,
26
26
  blur: 16,
27
27
  spread: 0,
28
- color: #0000001a
28
+ color: rgba(13, 13, 13, 0.15)
29
29
  )
30
30
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "26.0.1",
3
+ "version": "27.0.0",
4
4
  "description": "DN design system for web.",
5
5
  "type": "module",
6
6
  "homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",
@@ -146,7 +146,8 @@ var ButtonBase = ({
146
146
  } else {
147
147
  const buttonParams = { isIconButton, a11y, text, icon, loadingHtml, attributes };
148
148
  if (href) {
149
- buttonToRender = /* @__PURE__ */ jsx5("a", { href, className: classes, ...attributes, children: /* @__PURE__ */ jsx5(InnerButton, { ...buttonParams }) });
149
+ const params = { ...buttonParams, loadingHtml: null };
150
+ buttonToRender = /* @__PURE__ */ jsx5("a", { href, className: classes, ...attributes, children: /* @__PURE__ */ jsx5(InnerButton, { ...params }) });
150
151
  } else {
151
152
  buttonToRender = /* @__PURE__ */ jsx5("button", { type, className: classes, ...attributes, disabled, children: /* @__PURE__ */ jsx5(InnerButton, { ...buttonParams }) });
152
153
  }