@bonniernews/dn-design-system-web 13.0.0 → 14.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,40 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [14.0.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@13.0.0...@bonniernews/dn-design-system-web@14.0.0) (2024-02-29)
8
+
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+
12
+ * **foundations:** update tokens related to vignettes (#1222)
13
+
14
+ ### Features
15
+
16
+ * **app:** new `Button` ([#1207](https://github.com/BonnierNews/dn-design-system/issues/1207)) ([ed1653d](https://github.com/BonnierNews/dn-design-system/commit/ed1653d411e8c895488917a1fec4cbbd41ec047e))
17
+ * **app:** new `TextButton` ([#1209](https://github.com/BonnierNews/dn-design-system/issues/1209)) ([aa2a98a](https://github.com/BonnierNews/dn-design-system/commit/aa2a98a1d2f08b7209ad649647d3eea8a8707ca3))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **app:** add support for testID in the new buttons ([#1217](https://github.com/BonnierNews/dn-design-system/issues/1217)) ([591a2f9](https://github.com/BonnierNews/dn-design-system/commit/591a2f9a4e8cd8753028985856c10aadc1631d6b))
23
+ * **app:** allow override lineheight again ([#1216](https://github.com/BonnierNews/dn-design-system/issues/1216)) ([6979be3](https://github.com/BonnierNews/dn-design-system/commit/6979be3077914e1426e051b0ea173f6df4b6026b))
24
+ * **app:** create IconButton and revert some button props ([#1221](https://github.com/BonnierNews/dn-design-system/issues/1221)) ([6296edc](https://github.com/BonnierNews/dn-design-system/commit/6296edc1436b19db23f5d4cb5ad3977a271cde43))
25
+ * **app:** support testID in TopBarIconButton ([#1218](https://github.com/BonnierNews/dn-design-system/issues/1218)) ([457741c](https://github.com/BonnierNews/dn-design-system/commit/457741c015214450070f4812a50caa803eab670a))
26
+ * **foundations:** update tokens related to vignettes ([#1222](https://github.com/BonnierNews/dn-design-system/issues/1222)) ([ba498cc](https://github.com/BonnierNews/dn-design-system/commit/ba498cc50a4190459a95eb8e0a902788ebf69910))
27
+
28
+
29
+ ### Maintenance
30
+
31
+ * **app:** remove `PressableHighlight` ([#1201](https://github.com/BonnierNews/dn-design-system/issues/1201)) ([ab34c8c](https://github.com/BonnierNews/dn-design-system/commit/ab34c8cd1125d020d734c1b422abe32ef963e36d))
32
+ * prerelease packages ([40e7f76](https://github.com/BonnierNews/dn-design-system/commit/40e7f765e675a9f52cac69653ab421ca7c768bd6))
33
+ * prerelease packages ([0f24211](https://github.com/BonnierNews/dn-design-system/commit/0f242115a56a29fd8391c9c429d8ae03c6f412ae))
34
+ * prerelease packages ([36267b4](https://github.com/BonnierNews/dn-design-system/commit/36267b44d3316b32a8be877f9562307ebca89771))
35
+ * prerelease packages ([77c696a](https://github.com/BonnierNews/dn-design-system/commit/77c696a7bdf3772d1090fe275e04bf99603d1011))
36
+ * prerelease packages ([3832d72](https://github.com/BonnierNews/dn-design-system/commit/3832d72604b5903a9eb2079c6603cab129bfc318))
37
+ * prerelease packages ([b24c7f3](https://github.com/BonnierNews/dn-design-system/commit/b24c7f3495e937a9263a41a9991ee80782c88c8d))
38
+ * prerelease packages ([a76ee70](https://github.com/BonnierNews/dn-design-system/commit/a76ee705ff504f1e7f04c5839e78d46ef02b74da))
39
+ * remove unnecessary memoized style in Icon and IconButton ([#1199](https://github.com/BonnierNews/dn-design-system/issues/1199)) ([be8cef9](https://github.com/BonnierNews/dn-design-system/commit/be8cef9fe9ce742b68d872fec7ebe3fdf211d739))
40
+
7
41
  ## [13.0.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@12.0.1...@bonniernews/dn-design-system-web@13.0.0) (2024-02-23)
8
42
 
9
43
 
@@ -32,7 +32,7 @@ $grade-size: ds-px-to-rem(34px);
32
32
 
33
33
  .ds-teaser__vignette {
34
34
  display: block;
35
- @include ds-typography($ds-typography-detailarticle-label);
35
+ @include ds-typography($ds-typography-functionallabel01);
36
36
  color: $ds-theme-color;
37
37
  margin-bottom: ds-spacing($ds-s-025);
38
38
  }
@@ -91,7 +91,7 @@ $grade-size: ds-px-to-rem(34px);
91
91
  .ds-teaser__sticker {
92
92
  display: inline;
93
93
  color: $ds-theme-color;
94
- @include ds-typography($ds-typography-detailarticle-label);
94
+ @include ds-typography($ds-typography-functionallabel01);
95
95
  }
96
96
 
97
97
  .ds-teaser__media {
@@ -115,6 +115,7 @@ $grade-size: ds-px-to-rem(34px);
115
115
  &--podcast {
116
116
  .ds-teaser__vignette {
117
117
  display: flex;
118
+ align-items: center;
118
119
  }
119
120
 
120
121
  .ds-icon--headphones {
@@ -63,7 +63,7 @@ $ds-teaser-list-vertical-media-icon-size: 20px;
63
63
 
64
64
  .ds-teaser-list-vertical__item-vignette {
65
65
  display: block;
66
- @include ds-typography($ds-typography-detailarticle-label);
66
+ @include ds-typography($ds-typography-functionallabel01);
67
67
  color: $ds-theme-color;
68
68
  margin-bottom: ds-spacing($ds-s-025);
69
69
  }
@@ -7,7 +7,7 @@
7
7
 
8
8
  .ds-teaser__title {
9
9
  color: $ds-theme-color;
10
- @include ds-typography($ds-typography-detailarticle-label);
10
+ @include ds-typography($ds-typography-functionallabel01);
11
11
  }
12
12
 
13
13
  @include ds-hover(true) {
@@ -1,8 +1,6 @@
1
1
  $ds-typography-detailstandard-button: 'detailstandard-button';
2
- $ds-typography-detailbottom-nav: 'detailbottom-nav';
3
2
  $ds-typography-detaildropcap: 'detaildropcap';
4
3
  $ds-typography-detailstandard-button-small: 'detailstandard-button-small';
5
- $ds-typography-detailarticle-label: 'detailarticle-label';
6
4
  $ds-typography-detailmedryckare: 'detailmedryckare';
7
5
  $ds-typography-detailbaota-xl-label: 'detailbaota-xl-label';
8
6
  $ds-typography-detailarticle-standard: 'detailarticle-standard';
@@ -24,6 +22,7 @@ $ds-typography-detailteaser-standard-opinion: 'detailteaser-standard-opinion';
24
22
  $ds-typography-detailteaser-twin: 'detailteaser-twin';
25
23
  $ds-typography-detailteaser-large-compact: 'detailteaser-large-compact';
26
24
  $ds-typography-detailteaser-large-compact-opinion: 'detailteaser-large-compact-opinion';
25
+ $ds-typography-detailteaser-large-storRubrik-opinion: 'detailteaser-large-storRubrik-opinion';
27
26
  $ds-typography-expressiveheading01: 'expressiveheading01';
28
27
  $ds-typography-expressiveheading02: 'expressiveheading02';
29
28
  $ds-typography-expressiveheading03: 'expressiveheading03';
@@ -103,11 +103,10 @@ $typographyTokensScreenExtraLarge: (
103
103
  ),
104
104
  detailteaser-large-storRubrik: (
105
105
  fontFamily: "DN Serif Display",
106
- fontWeight: Regular,
106
+ fontWeight: Bold,
107
107
  lineHeight: 1.1,
108
108
  fontSize: 56,
109
- letterSpacing: 0,
110
- fontStyle: italic
109
+ letterSpacing: 0
111
110
  ),
112
111
  detailteaser-standard: (
113
112
  fontFamily: "DN Serif Headline",
@@ -146,6 +145,14 @@ $typographyTokensScreenExtraLarge: (
146
145
  letterSpacing: 0,
147
146
  fontStyle: italic
148
147
  ),
148
+ detailteaser-large-storRubrik-opinion: (
149
+ fontFamily: "DN Serif Display",
150
+ fontWeight: Regular,
151
+ fontSize: 56,
152
+ lineHeight: 1.1,
153
+ letterSpacing: 0,
154
+ fontStyle: italic
155
+ ),
149
156
  detailstandard-button: (
150
157
  fontFamily: "DN Sans",
151
158
  fontWeight: SemiBold,
@@ -153,13 +160,6 @@ $typographyTokensScreenExtraLarge: (
153
160
  fontSize: 16,
154
161
  letterSpacing: 0
155
162
  ),
156
- detailbottom-nav: (
157
- fontFamily: "DN Sans",
158
- fontWeight: SemiBold,
159
- lineHeight: 1.1,
160
- fontSize: 12,
161
- letterSpacing: 0.2
162
- ),
163
163
  detailstandard-button-small: (
164
164
  fontFamily: "DN Sans",
165
165
  fontWeight: SemiBold,
@@ -167,14 +167,6 @@ $typographyTokensScreenExtraLarge: (
167
167
  fontSize: 14,
168
168
  letterSpacing: 0
169
169
  ),
170
- detailarticle-label: (
171
- fontFamily: "DN Sans",
172
- fontWeight: Bold,
173
- lineHeight: 1.1,
174
- fontSize: 12,
175
- textCase: uppercase,
176
- letterSpacing: 0.5
177
- ),
178
170
  detailmedryckare: (
179
171
  fontFamily: "DN Serif Text",
180
172
  fontWeight: Regular,
@@ -187,7 +179,7 @@ $typographyTokensScreenExtraLarge: (
187
179
  fontWeight: Bold,
188
180
  lineHeight: 1.5,
189
181
  fontSize: 16,
190
- textCase: upperCase,
182
+ textCase: uppercase,
191
183
  letterSpacing: 0.5
192
184
  ),
193
185
  expressiveheading01: (
@@ -262,14 +254,14 @@ $typographyTokensScreenExtraLarge: (
262
254
  ),
263
255
  expressiveingress01: (
264
256
  fontFamily: "DN Serif Headline",
265
- fontWeight: Bold,
257
+ fontWeight: SemiBold,
266
258
  fontSize: 20,
267
259
  lineHeight: 1.5,
268
260
  letterSpacing: 0
269
261
  ),
270
262
  expressiveingress02: (
271
263
  fontFamily: "DN Serif Headline",
272
- fontWeight: Bold,
264
+ fontWeight: SemiBold,
273
265
  fontSize: 24,
274
266
  lineHeight: 1.5,
275
267
  letterSpacing: 0
@@ -293,7 +285,8 @@ $typographyTokensScreenExtraLarge: (
293
285
  fontWeight: Bold,
294
286
  fontSize: 12,
295
287
  lineHeight: 1.1,
296
- letterSpacing: 0.5
288
+ letterSpacing: 0.5,
289
+ textCase: uppercase
297
290
  ),
298
291
  functionallabel02: (
299
292
  fontFamily: "DN Sans",
@@ -103,11 +103,10 @@ $typographyTokensScreenLarge: (
103
103
  ),
104
104
  detailteaser-large-storRubrik: (
105
105
  fontFamily: "DN Serif Display",
106
- fontWeight: Regular,
106
+ fontWeight: Bold,
107
107
  lineHeight: 1.1,
108
108
  fontSize: 56,
109
- letterSpacing: 0,
110
- fontStyle: italic
109
+ letterSpacing: 0
111
110
  ),
112
111
  detailteaser-standard: (
113
112
  fontFamily: "DN Serif Headline",
@@ -146,6 +145,14 @@ $typographyTokensScreenLarge: (
146
145
  letterSpacing: 0,
147
146
  fontStyle: italic
148
147
  ),
148
+ detailteaser-large-storRubrik-opinion: (
149
+ fontFamily: "DN Serif Display",
150
+ fontWeight: Regular,
151
+ fontSize: 56,
152
+ lineHeight: 1.1,
153
+ letterSpacing: 0,
154
+ fontStyle: italic
155
+ ),
149
156
  detailstandard-button: (
150
157
  fontFamily: "DN Sans",
151
158
  fontWeight: SemiBold,
@@ -153,13 +160,6 @@ $typographyTokensScreenLarge: (
153
160
  fontSize: 16,
154
161
  letterSpacing: 0
155
162
  ),
156
- detailbottom-nav: (
157
- fontFamily: "DN Sans",
158
- fontWeight: SemiBold,
159
- lineHeight: 1.1,
160
- fontSize: 12,
161
- letterSpacing: 0.2
162
- ),
163
163
  detailstandard-button-small: (
164
164
  fontFamily: "DN Sans",
165
165
  fontWeight: SemiBold,
@@ -167,14 +167,6 @@ $typographyTokensScreenLarge: (
167
167
  fontSize: 14,
168
168
  letterSpacing: 0
169
169
  ),
170
- detailarticle-label: (
171
- fontFamily: "DN Sans",
172
- fontWeight: Bold,
173
- lineHeight: 1.1,
174
- fontSize: 12,
175
- textCase: uppercase,
176
- letterSpacing: 0.5
177
- ),
178
170
  detailmedryckare: (
179
171
  fontFamily: "DN Serif Text",
180
172
  fontWeight: Regular,
@@ -187,7 +179,7 @@ $typographyTokensScreenLarge: (
187
179
  fontWeight: Bold,
188
180
  lineHeight: 1.5,
189
181
  fontSize: 16,
190
- textCase: upperCase,
182
+ textCase: uppercase,
191
183
  letterSpacing: 0.5
192
184
  ),
193
185
  expressiveheading01: (
@@ -262,14 +254,14 @@ $typographyTokensScreenLarge: (
262
254
  ),
263
255
  expressiveingress01: (
264
256
  fontFamily: "DN Serif Headline",
265
- fontWeight: Bold,
257
+ fontWeight: SemiBold,
266
258
  fontSize: 20,
267
259
  lineHeight: 1.5,
268
260
  letterSpacing: 0
269
261
  ),
270
262
  expressiveingress02: (
271
263
  fontFamily: "DN Serif Headline",
272
- fontWeight: Bold,
264
+ fontWeight: SemiBold,
273
265
  fontSize: 24,
274
266
  lineHeight: 1.5,
275
267
  letterSpacing: 0
@@ -293,7 +285,8 @@ $typographyTokensScreenLarge: (
293
285
  fontWeight: Bold,
294
286
  fontSize: 12,
295
287
  lineHeight: 1.1,
296
- letterSpacing: 0.5
288
+ letterSpacing: 0.5,
289
+ textCase: uppercase
297
290
  ),
298
291
  functionallabel02: (
299
292
  fontFamily: "DN Sans",
@@ -6,13 +6,6 @@ $typographyTokensScreenSmall: (
6
6
  fontSize: 16,
7
7
  letterSpacing: 0
8
8
  ),
9
- detailbottom-nav: (
10
- fontFamily: "DN Sans",
11
- fontWeight: SemiBold,
12
- lineHeight: 1.1,
13
- fontSize: 12,
14
- letterSpacing: 0.2
15
- ),
16
9
  detaildropcap: (
17
10
  fontFamily: "DN Serif Display",
18
11
  lineHeight: 1,
@@ -27,14 +20,6 @@ $typographyTokensScreenSmall: (
27
20
  fontSize: 14,
28
21
  letterSpacing: 0
29
22
  ),
30
- detailarticle-label: (
31
- fontFamily: "DN Sans",
32
- fontWeight: Bold,
33
- lineHeight: 1.1,
34
- fontSize: 12,
35
- textCase: uppercase,
36
- letterSpacing: 0.5
37
- ),
38
23
  detailmedryckare: (
39
24
  fontFamily: "DN Serif Text",
40
25
  fontWeight: Regular,
@@ -47,7 +32,7 @@ $typographyTokensScreenSmall: (
47
32
  fontWeight: Bold,
48
33
  lineHeight: 1.5,
49
34
  fontSize: 16,
50
- textCase: upperCase,
35
+ textCase: uppercase,
51
36
  letterSpacing: 0.5
52
37
  ),
53
38
  detailarticle-standard: (
@@ -147,11 +132,10 @@ $typographyTokensScreenSmall: (
147
132
  ),
148
133
  detailteaser-large-storRubrik: (
149
134
  fontFamily: "DN Serif Headline",
150
- fontWeight: Regular,
135
+ fontWeight: Bold,
151
136
  lineHeight: 1.1,
152
137
  fontSize: 26,
153
- letterSpacing: 0,
154
- fontStyle: italic
138
+ letterSpacing: 0
155
139
  ),
156
140
  detailteaser-standard: (
157
141
  fontFamily: "DN Serif Headline",
@@ -190,6 +174,14 @@ $typographyTokensScreenSmall: (
190
174
  letterSpacing: 0,
191
175
  fontStyle: italic
192
176
  ),
177
+ detailteaser-large-storRubrik-opinion: (
178
+ fontFamily: "DN Serif Headline",
179
+ fontWeight: Regular,
180
+ fontSize: 26,
181
+ lineHeight: 1.1,
182
+ letterSpacing: 0,
183
+ fontStyle: italic
184
+ ),
193
185
  expressiveheading01: (
194
186
  fontFamily: "DN Serif Text",
195
187
  fontWeight: Bold,
@@ -262,14 +254,14 @@ $typographyTokensScreenSmall: (
262
254
  ),
263
255
  expressiveingress01: (
264
256
  fontFamily: "DN Serif Text",
265
- fontWeight: Bold,
257
+ fontWeight: SemiBold,
266
258
  fontSize: 18,
267
259
  lineHeight: 1.5,
268
260
  letterSpacing: 0
269
261
  ),
270
262
  expressiveingress02: (
271
263
  fontFamily: "DN Serif Headline",
272
- fontWeight: Bold,
264
+ fontWeight: SemiBold,
273
265
  fontSize: 20,
274
266
  lineHeight: 1.5,
275
267
  letterSpacing: 0
@@ -293,7 +285,8 @@ $typographyTokensScreenSmall: (
293
285
  fontWeight: Bold,
294
286
  fontSize: 12,
295
287
  lineHeight: 1.1,
296
- letterSpacing: 0.5
288
+ letterSpacing: 0.5,
289
+ textCase: uppercase
297
290
  ),
298
291
  functionallabel02: (
299
292
  fontFamily: "DN Sans",
@@ -325,7 +318,7 @@ $typographyTokensScreenSmall: (
325
318
  ),
326
319
  functionalingress02: (
327
320
  fontFamily: "DN Sans",
328
- fontWeight: Bold,
321
+ fontWeight: SemiBold,
329
322
  fontSize: 20,
330
323
  lineHeight: 1.5,
331
324
  letterSpacing: 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "13.0.0",
3
+ "version": "14.0.0",
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",
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "detailstandard-button": "'detailstandard-button'",
3
- "detailbottom-nav": "'detailbottom-nav'",
4
3
  "detaildropcap": "'detaildropcap'",
5
4
  "detailstandard-button-small": "'detailstandard-button-small'",
6
- "detailarticle-label": "'detailarticle-label'",
7
5
  "detailmedryckare": "'detailmedryckare'",
8
6
  "detailbaota-xl-label": "'detailbaota-xl-label'",
9
7
  "detailarticle-standard": "'detailarticle-standard'",
@@ -25,6 +23,7 @@
25
23
  "detailteaser-twin": "'detailteaser-twin'",
26
24
  "detailteaser-large-compact": "'detailteaser-large-compact'",
27
25
  "detailteaser-large-compact-opinion": "'detailteaser-large-compact-opinion'",
26
+ "detailteaser-large-storRubrik-opinion": "'detailteaser-large-storRubrik-opinion'",
28
27
  "expressiveheading01": "'expressiveheading01'",
29
28
  "expressiveheading02": "'expressiveheading02'",
30
29
  "expressiveheading03": "'expressiveheading03'",