@bonniernews/dn-design-system-web 20.7.0-beta.1 → 21.1.0-beta.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,43 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [21.1.0-beta.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.0.0...@bonniernews/dn-design-system-web@21.1.0-beta.0) (2024-10-18)
8
+
9
+
10
+ ### Features
11
+
12
+ * **web:** one level of bauta with background color ([075ed25](https://github.com/BonnierNews/dn-design-system/commit/075ed259c6f3c50ed6018bd566fdc7b9b5c05c73))
13
+
14
+
15
+ ### Maintenance
16
+
17
+ * **web:** released version v20.7.0-beta.0 ([8ae341a](https://github.com/BonnierNews/dn-design-system/commit/8ae341aea8b99cdd063e0541e95618876a8baa84))
18
+
19
+ ## [21.0.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@20.6.1...@bonniernews/dn-design-system-web@21.0.0) (2024-10-18)
20
+
21
+ ### ⚠ BREAKING CHANGES
22
+
23
+ * **web:** JS imports requires file extension
24
+
25
+ ### Bug Fixes
26
+
27
+ * **web:** less specific export ([#1436](https://github.com/BonnierNews/dn-design-system/issues/1436)) ([9da4652](https://github.com/BonnierNews/dn-design-system/commit/9da46527d7e63c800a8391fe2280717e4dd733cd))
28
+
29
+ ### Maintenance
30
+
31
+ * **deps-dev:** bump @actions/core from 1.10.1 to 1.11.1 ([#1433](https://github.com/BonnierNews/dn-design-system/issues/1433)) ([0aa8f7c](https://github.com/BonnierNews/dn-design-system/commit/0aa8f7c87c052599ec75e19c0a03921ef6417afd))
32
+ * **deps-dev:** bump @babel/runtime from 7.24.5 to 7.25.7 ([#1431](https://github.com/BonnierNews/dn-design-system/issues/1431)) ([f9835dc](https://github.com/BonnierNews/dn-design-system/commit/f9835dc526d20abb98ebcf0fbbad6a1bb143ec80))
33
+ * **deps-dev:** bump @react-native/metro-config from 0.75.2 to 0.75.4 ([#1434](https://github.com/BonnierNews/dn-design-system/issues/1434)) ([22e6777](https://github.com/BonnierNews/dn-design-system/commit/22e67776633a67be1201a78bb5bd9bc6744e291c))
34
+ * **deps-dev:** bump @testing-library/react-native from 12.6.1 to 12.7.2 ([#1432](https://github.com/BonnierNews/dn-design-system/issues/1432)) ([9f44974](https://github.com/BonnierNews/dn-design-system/commit/9f449744f5db8fddf95e08067fce8ae9cf351f1f))
35
+ * **deps:** bump @babel/core from 7.25.2 to 7.25.8 ([#1438](https://github.com/BonnierNews/dn-design-system/issues/1438)) ([7859441](https://github.com/BonnierNews/dn-design-system/commit/7859441441ee67a3a67dd721a6b2ca7f82376863))
36
+ * **deps:** bump @react-native-community/slider from 4.5.2 to 4.5.4 ([#1440](https://github.com/BonnierNews/dn-design-system/issues/1440)) ([d759986](https://github.com/BonnierNews/dn-design-system/commit/d759986423adf1fea025b3fdeb1794577cdb49d7))
37
+ * **deps:** bump express from 4.19.2 to 4.21.1 ([#1429](https://github.com/BonnierNews/dn-design-system/issues/1429)) ([08ea9e8](https://github.com/BonnierNews/dn-design-system/commit/08ea9e884c315661aa6fc6350e7542ea70054555))
38
+ * **deps:** bump sass from 1.77.8 to 1.80.2 ([#1439](https://github.com/BonnierNews/dn-design-system/issues/1439)) ([2583327](https://github.com/BonnierNews/dn-design-system/commit/2583327bc547d5a6ab11f3dc2c74c6ba5b62e99f))
39
+ * **foundations:** update tokens from Figma ([#1441](https://github.com/BonnierNews/dn-design-system/issues/1441)) ([786153f](https://github.com/BonnierNews/dn-design-system/commit/786153f0c09c37141c78623c3419c6afa0c11f07))
40
+ * prerelease packages ([bc56bbc](https://github.com/BonnierNews/dn-design-system/commit/bc56bbce004e95eaf01b636bfc7b132165561271))
41
+ * prerelease packages ([ec0ca89](https://github.com/BonnierNews/dn-design-system/commit/ec0ca895f0e4995f0b700ee40140920f3105ef86))
42
+ * revert "chore(deps-dev): bump @react-native/metro-config from 0.75.2 to 0.75.4" ([#1435](https://github.com/BonnierNews/dn-design-system/issues/1435)) ([97a0feb](https://github.com/BonnierNews/dn-design-system/commit/97a0febdabed45c94a01b0600a040d8eb20dbf46))
43
+
7
44
  ## [20.7.0-beta.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@20.6.1...@bonniernews/dn-design-system-web@20.7.0-beta.1) (2024-10-17)
8
45
 
9
46
 
@@ -21,6 +58,13 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
21
58
  * prerelease packages ([ec0ca89](https://github.com/BonnierNews/dn-design-system/commit/ec0ca895f0e4995f0b700ee40140920f3105ef86))
22
59
  * revert "chore(deps-dev): bump @react-native/metro-config from 0.75.2 to 0.75.4" ([#1435](https://github.com/BonnierNews/dn-design-system/issues/1435)) ([97a0feb](https://github.com/BonnierNews/dn-design-system/commit/97a0febdabed45c94a01b0600a040d8eb20dbf46))
23
60
 
61
+ ## [20.7.0-beta.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@20.6.0...@bonniernews/dn-design-system-web@20.7.0-beta.0) (2024-10-17)
62
+
63
+
64
+ ### Features
65
+
66
+ * **web:** one level of bauta with background color ([8f843f7](https://github.com/BonnierNews/dn-design-system/commit/8f843f7f24352feaa89b9c2f332a070845749f0f))
67
+
24
68
  ## [20.6.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@20.6.0...@bonniernews/dn-design-system-web@20.6.1) (2024-10-16)
25
69
 
26
70
 
@@ -28,6 +72,7 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
28
72
 
29
73
  * move to figma variables ([#1419](https://github.com/BonnierNews/dn-design-system/issues/1419)) ([96eaa70](https://github.com/BonnierNews/dn-design-system/commit/96eaa701b712e66a0597b2524ae31db34eea6294))
30
74
  * prerelease packages ([c2ddd94](https://github.com/BonnierNews/dn-design-system/commit/c2ddd9434e69a243959a1a510394cdacd791ef21))
75
+
31
76
  * **web:** running multiple screenshots via test_ids ([#1426](https://github.com/BonnierNews/dn-design-system/issues/1426)) ([996e498](https://github.com/BonnierNews/dn-design-system/commit/996e49813c9a1124cad803760437fba4420cbce7))
32
77
 
33
78
  ## [20.6.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@20.5.4...@bonniernews/dn-design-system-web@20.6.0) (2024-10-09)
@@ -13,6 +13,7 @@
13
13
  classNamePrefix + (params.type or "icon"),
14
14
  classNamePrefix + params.variant if params.variant,
15
15
  classNamePrefix + 'bottom-border' if params.showBottomBorder,
16
+ 'ds-dark' if params.variant == 'bauta',
16
17
  params.classNames if params.classNames
17
18
  ] | join(" ") %}
18
19
 
@@ -45,7 +46,7 @@
45
46
  {% else %}
46
47
  {{ groupHeaderInner | safe }}
47
48
  {% endif %}
48
- {# there is no static-white toggle btn so it is disabled for bauta/xl for now #}
49
+ {# there is no static-white toggle btn so it is disabled for bauta for now #}
49
50
  {% if params.type == 'toggle' and not params.variant %}
50
51
  {{ ButtonToggle({
51
52
  variant: "brand",
@@ -23,15 +23,7 @@ $ds-group-header__icon-size: 24px;
23
23
  }
24
24
 
25
25
  &--bauta {
26
- --group-header-background: #{$ds-theme-color};
27
- --group-header-color: #{$ds-color-text-on-brand};
28
- --group-header-icon-color: #{$ds-color-icon-on-brand};
29
- }
30
-
31
- &--bautaxl {
32
- --group-header-background: #{$ds-color-static-black};
33
- --group-header-color: #{$ds-color-static-yellow};
34
- --group-header-icon-color: #{$ds-color-icon-on-brand};
26
+ --group-header-background: #{$bauta-surface-color};
35
27
  }
36
28
 
37
29
  &--toggle,
@@ -116,10 +108,6 @@ $ds-group-header__icon-size: 24px;
116
108
  padding-bottom: ds-spacing($ds-s-075) - ds-border-width(x1);
117
109
  }
118
110
 
119
- &--bautaxl .ds-group-header__title {
120
- @include ds-typography($ds-typography-detailbaota-xl-label);
121
- }
122
-
123
111
  .ds-group-header__image {
124
112
  margin-left: ds-spacing($ds-s-100);
125
113
  align-self: center;
@@ -8,7 +8,8 @@
8
8
  componentClassName,
9
9
  classNamePrefix + params.areaType if params.areaType,
10
10
  'ds-theme--' + params.theme if params.theme,
11
- params.classNames if params.classNames
11
+ params.classNames if params.classNames,
12
+ 'ds-dark' if params.areaType == 'bauta'
12
13
  ] | join(" ") %}
13
14
  {%- set attributes = getAttributes(params.attributes) %}
14
15
 
@@ -46,38 +46,23 @@
46
46
  display: none;
47
47
  }
48
48
 
49
- &.ds-teaser-package--bautaxl {
50
- &::after {
51
- background-color: transparent;
49
+ &.ds-teaser-package--bauta {
50
+ background-color: $bauta-surface-color;
51
+
52
+ & .ds-teaser,
53
+ & .ds-teaser--slideshow {
54
+ background-color: $bauta-surface-color;
52
55
  }
53
56
 
54
- .ds-group-header + .ds-teaser--large:not(.ds-teaser--large-italic):not(.ds-teaser--large-big-italic) {
55
- .ds-teaser__title {
56
- @include ds-typography($ds-typography-detailteaser-baotaxl);
57
+ .ds-split-container {
58
+ background-color: $bauta-surface-color;
59
+ &::after {
60
+ background-color: $updated-color-border-primary;
57
61
  }
62
+ }
58
63
 
59
- @include ds-mq-only-breakpoint(mobile) {
60
- background-color: $ds-color-static-black;
61
- .ds-teaser__title,
62
- .ds-teaser__text {
63
- color: $ds-color-static-white;
64
- }
65
- .ds-teaser-dot {
66
- color: $ds-color-static-red-300;
67
- }
68
- .ds-teaser__vignette,
69
- .ds-teaser__sticker {
70
- color: $ds-color-static-red-300;
71
- }
72
- &::after {
73
- background-color: $ds-color-static-transparent-white-10;
74
- }
75
-
76
- & + .ds-teaser::after,
77
- & + .ds-split-container::after {
78
- display: none;
79
- }
80
- }
64
+ & > .ds-teaser::after {
65
+ background-color: $updated-color-border-primary;
81
66
  }
82
67
  }
83
68
  }
@@ -78,7 +78,7 @@
78
78
  {%- set classNamePrefix = componentClassName + "--" %}
79
79
  {%- set classes = [
80
80
  componentClassName,
81
- classNamePrefix + params.areaType if params.areaType == "bauta" or params.areaType == "bautaxl",
81
+ classNamePrefix + params.areaType if params.areaType == "bauta",
82
82
  "ds-theme--" + params.theme if params.theme,
83
83
  params.classNames if params.classNames
84
84
  ] | join(" ") %}
@@ -6,6 +6,11 @@
6
6
  @use "../variables/colorsDnLightTokens";
7
7
  @use "../variables/colorsDnDarkTokens";
8
8
 
9
+ // Temporary variables before we update tokens
10
+ $bauta-surface-color: #360003;
11
+ $updated-color-border-primary: #ffffff19;
12
+ // end of temporary variables
13
+
9
14
  $ds-theme-color: var(--ds-theme-color);
10
15
 
11
16
  @mixin get-dark-color-scheme() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "20.7.0-beta.1",
3
+ "version": "21.1.0-beta.0",
4
4
  "description": "DN design system for web.",
5
5
  "main": "index.tsx",
6
6
  "type": "module",