@bonniernews/dn-design-system-web 3.0.0-alpha.4 → 3.0.0-alpha.41
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 +325 -0
- package/README.md +1 -1
- package/assets/article-image/article-image.njk +11 -10
- package/assets/article-image/article-image.scss +1 -15
- package/assets/form-field/form-field.scss +5 -9
- package/assets/teaser/sticker.scss +31 -0
- package/assets/teaser/teaser.scss +60 -0
- package/components/article-body-image/README.md +2 -2
- package/components/article-body-image/article-body-image.njk +1 -5
- package/components/article-body-image/article-body-image.scss +1 -1
- package/components/article-top-image/README.md +2 -2
- package/components/article-top-image/article-top-image.njk +1 -5
- package/components/article-top-image/article-top-image.scss +1 -1
- package/components/badge/badge.scss +3 -7
- package/components/blocked-content/blocked-content.scss +4 -4
- package/components/buddy-menu/buddy-menu.scss +12 -19
- package/components/button/button.njk +36 -41
- package/components/button/button.scss +22 -19
- package/components/button-toggle/button-toggle.js +2 -0
- package/components/button-toggle/button-toggle.njk +34 -34
- package/components/button-toggle/button-toggle.scss +22 -21
- package/components/byline/byline.scss +6 -8
- package/components/checkbox/checkbox.scss +10 -14
- package/components/disclaimer/disclaimer.scss +24 -10
- package/components/divider/divider.scss +1 -1
- package/components/factbox/README.md +2 -2
- package/components/factbox/factbox.njk +9 -11
- package/components/factbox/factbox.scss +14 -44
- package/components/footer/footer.scss +14 -20
- package/components/icon-button/README.md +2 -1
- package/components/icon-button/icon-button.njk +3 -3
- package/components/icon-button/icon-button.scss +3 -4
- package/components/icon-button-toggle/icon-button-toggle.js +2 -0
- package/components/icon-button-toggle/icon-button-toggle.njk +27 -35
- package/components/icon-button-toggle/icon-button-toggle.scss +3 -4
- package/components/image-caption/README.md +38 -0
- package/components/image-caption/image-caption.njk +25 -0
- package/components/image-caption/image-caption.scss +15 -0
- package/components/list-item/list-item.scss +9 -11
- package/components/pictogram/README.md +39 -0
- package/components/pictogram/pictogram.njk +30 -0
- package/components/pictogram/pictogram.scss +53 -0
- package/components/quote/README.md +1 -2
- package/components/quote/quote.njk +6 -8
- package/components/quote/quote.scss +3 -16
- package/components/radio-button/radio-button.scss +10 -15
- package/components/spinner/spinner.njk +19 -23
- package/components/spinner/spinner.scss +1 -0
- package/components/switch/switch.scss +2 -2
- package/components/teaser-image/README.md +40 -0
- package/components/teaser-image/teaser-image.njk +21 -0
- package/components/teaser-image/teaser-image.scss +22 -0
- package/components/teaser-large/README.md +52 -0
- package/components/teaser-large/teaser-large.njk +82 -0
- package/components/teaser-large/teaser-large.scss +131 -0
- package/components/teaser-standard/README.md +50 -0
- package/components/teaser-standard/teaser-standard.njk +72 -0
- package/components/teaser-standard/teaser-standard.scss +38 -0
- package/components/teaser-tipsa/README.md +40 -0
- package/components/teaser-tipsa/teaser-tipsa.njk +32 -0
- package/components/teaser-tipsa/teaser-tipsa.scss +17 -0
- package/components/text-button/text-button.njk +32 -35
- package/components/text-button/text-button.scss +8 -13
- package/components/text-button-toggle/text-button-toggle.js +2 -0
- package/components/text-button-toggle/text-button-toggle.njk +29 -32
- package/components/text-button-toggle/text-button-toggle.scss +4 -10
- package/components/text-input/text-input.scss +20 -24
- package/components/thematic-break/thematic-break.scss +1 -1
- package/components/video-caption/README.md +37 -0
- package/components/video-caption/video-caption.njk +30 -0
- package/components/video-caption/video-caption.scss +18 -0
- package/components/vip-badge/README.md +35 -0
- package/components/vip-badge/vip-badge.njk +23 -0
- package/components/vip-badge/vip-badge.scss +48 -0
- package/foundations/colors.scss +31 -0
- package/foundations/helpers/README-links.md +1 -1
- package/foundations/helpers/README-spacing.md +48 -10
- package/foundations/helpers/colors.scss +2 -0
- package/foundations/helpers/spacing.scss +3 -1
- package/foundations/icons/icon-sprite.svg +1 -1
- package/foundations/icons/icon.njk +167 -143
- package/foundations/icons/svg/download.svg +3 -0
- package/foundations/icons/svg/filter_list.svg +3 -0
- package/foundations/icons/svg/pause.svg +3 -0
- package/foundations/icons/svg/vip.svg +3 -0
- package/foundations/typography/fontDefinitions.scss +82 -67
- package/foundations/variables/colorsCssVariables.scss +3 -0
- package/foundations/variables/colorsDnDarkTokens.scss +4 -1
- package/foundations/variables/colorsDnLightTokens.scss +4 -1
- package/foundations/variables/spacingComponentList.scss +10 -0
- package/foundations/variables/spacingLayout.scss +6 -1
- package/foundations/variables/spacingLayoutLargeScreen.scss +5 -0
- package/foundations/variables/spacingLayoutList.scss +13 -0
- package/foundations/variables/typographyTokensScreenLarge.scss +89 -89
- package/foundations/variables/typographyTokensScreenSmall.scss +114 -114
- package/package.json +2 -2
- package/tokens/colors-css-variables.json +3 -0
- package/tokens/spacing-component-list.json +12 -0
- package/tokens/spacing-layout-list.json +15 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,331 @@
|
|
|
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
|
+
## [3.0.0-alpha.41](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.40...@bonniernews/dn-design-system-web@3.0.0-alpha.41) (2023-05-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **web:** tipsa teaser ([#780](https://github.com/BonnierNews/dn-design-system/issues/780)) ([cb2a263](https://github.com/BonnierNews/dn-design-system/commit/cb2a2636cdbc823f8584133b27a6730e9eddb973))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **web:** teaserLarge should check params.targetId ([#789](https://github.com/BonnierNews/dn-design-system/issues/789)) ([4ea1838](https://github.com/BonnierNews/dn-design-system/commit/4ea18388286217e9171f1a851c3dad65c1eace0f))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
## 3.0.0-alpha.40 (2023-05-03)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
### Bug Fixes
|
|
24
|
+
|
|
25
|
+
* **web:** changes needed in large & standard teasers after implementing them in bang ([#782](https://github.com/BonnierNews/dn-design-system/issues/782)) ([d028b52](https://github.com/BonnierNews/dn-design-system/commit/d028b5240b4c263f88e9c903db2469ddd505bac5))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
## [3.0.0-alpha.39](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.38...@bonniernews/dn-design-system-web@3.0.0-alpha.39) (2023-05-02)
|
|
30
|
+
|
|
31
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## [3.0.0-alpha.38](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.37...@bonniernews/dn-design-system-web@3.0.0-alpha.38) (2023-04-28)
|
|
38
|
+
|
|
39
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
## [3.0.0-alpha.37](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.36...@bonniernews/dn-design-system-web@3.0.0-alpha.37) (2023-04-28)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Bug Fixes
|
|
49
|
+
|
|
50
|
+
* **web:** add bauta properties to shared argTypes ([#779](https://github.com/BonnierNews/dn-design-system/issues/779)) ([38790e7](https://github.com/BonnierNews/dn-design-system/commit/38790e7c8c381ac00789c7817e1c3aac6c0dd9d2))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [3.0.0-alpha.36](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.35...@bonniernews/dn-design-system-web@3.0.0-alpha.36) (2023-04-28)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## 3.0.0-alpha.35 (2023-04-27)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Features
|
|
66
|
+
|
|
67
|
+
* **web:** large and standard teasers ([#763](https://github.com/BonnierNews/dn-design-system/issues/763)) ([0713caa](https://github.com/BonnierNews/dn-design-system/commit/0713caa3c451419e21b185496d8d77726c972bfd))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
## [3.0.0-alpha.34](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.33...@bonniernews/dn-design-system-web@3.0.0-alpha.34) (2023-04-26)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Bug Fixes
|
|
75
|
+
|
|
76
|
+
* **web:** button accessbility ([#767](https://github.com/BonnierNews/dn-design-system/issues/767)) ([1b19f98](https://github.com/BonnierNews/dn-design-system/commit/1b19f983f208ab3467640b8f921e8f711f569ab5))
|
|
77
|
+
* **web:** vip-badge square top-right corner ([#771](https://github.com/BonnierNews/dn-design-system/issues/771)) ([19e2753](https://github.com/BonnierNews/dn-design-system/commit/19e275397f5d9ac7a16703141c0c5372ee1f0e02))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
## 3.0.0-alpha.33 (2023-04-24)
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
### Features
|
|
85
|
+
|
|
86
|
+
* **web:** pictogram component for web ([#770](https://github.com/BonnierNews/dn-design-system/issues/770)) ([2ad5076](https://github.com/BonnierNews/dn-design-system/commit/2ad50768177689598d9b34605161763630fea1f9))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## [3.0.0-alpha.32](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.31...@bonniernews/dn-design-system-web@3.0.0-alpha.32) (2023-04-21)
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### Bug Fixes
|
|
94
|
+
|
|
95
|
+
* **web:** set vip text in component and change property to boolean ([#768](https://github.com/BonnierNews/dn-design-system/issues/768)) ([5004120](https://github.com/BonnierNews/dn-design-system/commit/500412093b8caf4ea5e46d6a529a390da33b2b6d))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## 3.0.0-alpha.31 (2023-04-20)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
### ⚠ BREAKING CHANGES
|
|
103
|
+
|
|
104
|
+
* **web:** Quote and Factbox has property from ´variant´ to ´theme´
|
|
105
|
+
|
|
106
|
+
### Bug Fixes
|
|
107
|
+
|
|
108
|
+
* **web:** add web themes and update quote and factbox ([#761](https://github.com/BonnierNews/dn-design-system/issues/761)) ([0ee3299](https://github.com/BonnierNews/dn-design-system/commit/0ee329900641325278e04242074f819f66bda025))
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
## 3.0.0-alpha.30 (2023-04-19)
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
### Features
|
|
116
|
+
|
|
117
|
+
* **web:** vip badge component ([#759](https://github.com/BonnierNews/dn-design-system/issues/759)) ([7d0791e](https://github.com/BonnierNews/dn-design-system/commit/7d0791ee9d101265ec5f5427b550da783afff93e))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
## 3.0.0-alpha.29 (2023-04-19)
|
|
122
|
+
|
|
123
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
## 3.0.0-alpha.28 (2023-04-13)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Bug Fixes
|
|
133
|
+
|
|
134
|
+
* **web:** remove easing from hover effekt ([#753](https://github.com/BonnierNews/dn-design-system/issues/753)) ([86cce98](https://github.com/BonnierNews/dn-design-system/commit/86cce9804593683642ae2d44cd76803f06f340d6))
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
## 3.0.0-alpha.27 (2023-04-13)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
## [3.0.0-alpha.26](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.25...@bonniernews/dn-design-system-web@3.0.0-alpha.26) (2023-04-06)
|
|
147
|
+
|
|
148
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
## 3.0.0-alpha.25 (2023-04-05)
|
|
155
|
+
|
|
156
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
## 3.0.0-alpha.24 (2023-04-03)
|
|
163
|
+
|
|
164
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
## 3.0.0-alpha.23 (2023-03-31)
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### Bug Fixes
|
|
174
|
+
|
|
175
|
+
* **web:** only fullwidth factbox button in small screen ([#742](https://github.com/BonnierNews/dn-design-system/issues/742)) ([97b7a4d](https://github.com/BonnierNews/dn-design-system/commit/97b7a4dec6731ec38ae67345296338c08da65a00))
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
## 3.0.0-alpha.22 (2023-03-30)
|
|
180
|
+
|
|
181
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
## [3.0.0-alpha.21](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.20...@bonniernews/dn-design-system-web@3.0.0-alpha.21) (2023-03-28)
|
|
188
|
+
|
|
189
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
## [3.0.0-alpha.20](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.19...@bonniernews/dn-design-system-web@3.0.0-alpha.20) (2023-03-24)
|
|
196
|
+
|
|
197
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
## [3.0.0-alpha.19](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.18...@bonniernews/dn-design-system-web@3.0.0-alpha.19) (2023-03-24)
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Bug Fixes
|
|
207
|
+
|
|
208
|
+
* **web:** use spacing layout in disclaimer ([#730](https://github.com/BonnierNews/dn-design-system/issues/730)) ([a29d313](https://github.com/BonnierNews/dn-design-system/commit/a29d3137ac57cafa317c75f1f8c74504f45f270d))
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
## [3.0.0-alpha.18](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.17...@bonniernews/dn-design-system-web@3.0.0-alpha.18) (2023-03-24)
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### Bug Fixes
|
|
216
|
+
|
|
217
|
+
* **web:** dynamic spacing image top ([#736](https://github.com/BonnierNews/dn-design-system/issues/736)) ([dfb418f](https://github.com/BonnierNews/dn-design-system/commit/dfb418f471429d685a2fed738cbcd8006ef87f32))
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
## [3.0.0-alpha.17](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.16...@bonniernews/dn-design-system-web@3.0.0-alpha.17) (2023-03-24)
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
### Bug Fixes
|
|
225
|
+
|
|
226
|
+
* **web:** clean up helper includes ([#731](https://github.com/BonnierNews/dn-design-system/issues/731)) ([9680d73](https://github.com/BonnierNews/dn-design-system/commit/9680d73f7c4ce0609b1d964666ae9845f0464955))
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
## [3.0.0-alpha.16](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.15...@bonniernews/dn-design-system-web@3.0.0-alpha.16) (2023-03-24)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### Bug Fixes
|
|
234
|
+
|
|
235
|
+
* **web:** image-caption credit is now inline ([#734](https://github.com/BonnierNews/dn-design-system/issues/734)) ([beeeaf8](https://github.com/BonnierNews/dn-design-system/commit/beeeaf8236163438bc42963a55a7ca44856627c1))
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
## 3.0.0-alpha.15 (2023-03-24)
|
|
240
|
+
|
|
241
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
## [3.0.0-alpha.14](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.13...@bonniernews/dn-design-system-web@3.0.0-alpha.14) (2023-03-22)
|
|
248
|
+
|
|
249
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
## [3.0.0-alpha.13](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.12...@bonniernews/dn-design-system-web@3.0.0-alpha.13) (2023-03-21)
|
|
256
|
+
|
|
257
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
## [3.0.0-alpha.12](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.11...@bonniernews/dn-design-system-web@3.0.0-alpha.12) (2023-03-20)
|
|
264
|
+
|
|
265
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
## [3.0.0-alpha.11](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.10...@bonniernews/dn-design-system-web@3.0.0-alpha.11) (2023-03-15)
|
|
272
|
+
|
|
273
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
## [3.0.0-alpha.10](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.9...@bonniernews/dn-design-system-web@3.0.0-alpha.10) (2023-03-15)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
### Features
|
|
283
|
+
|
|
284
|
+
* **web:** image caption ([#723](https://github.com/BonnierNews/dn-design-system/issues/723)) ([5247279](https://github.com/BonnierNews/dn-design-system/commit/5247279d3205eef7bc19599e21dbac997994cc92))
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
## [3.0.0-alpha.9](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.8...@bonniernews/dn-design-system-web@3.0.0-alpha.9) (2023-03-15)
|
|
289
|
+
|
|
290
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
## [3.0.0-alpha.8](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.7...@bonniernews/dn-design-system-web@3.0.0-alpha.8) (2023-03-10)
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
### Bug Fixes
|
|
300
|
+
|
|
301
|
+
* **web:** treat b as strong ([#722](https://github.com/BonnierNews/dn-design-system/issues/722)) ([8148ce9](https://github.com/BonnierNews/dn-design-system/commit/8148ce98e11827668858a1507ea69b8f122d8a83))
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
## 3.0.0-alpha.7 (2023-03-10)
|
|
306
|
+
|
|
307
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
## [3.0.0-alpha.6](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.5...@bonniernews/dn-design-system-web@3.0.0-alpha.6) (2023-03-08)
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
### Bug Fixes
|
|
317
|
+
|
|
318
|
+
* **web:** add sass variables for spacing and refactor helper ([#719](https://github.com/BonnierNews/dn-design-system/issues/719)) ([e65417c](https://github.com/BonnierNews/dn-design-system/commit/e65417cbcbe54d6d388e7b7f8b88e33ec7598588))
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
## [3.0.0-alpha.5](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.4...@bonniernews/dn-design-system-web@3.0.0-alpha.5) (2023-03-08)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### Features
|
|
326
|
+
|
|
327
|
+
* **web:** video caption component ([#706](https://github.com/BonnierNews/dn-design-system/issues/706)) ([a64278a](https://github.com/BonnierNews/dn-design-system/commit/a64278a64840e2422baed278b7bae29055dabf78))
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
6
331
|
## [3.0.0-alpha.4](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@3.0.0-alpha.3...@bonniernews/dn-design-system-web@3.0.0-alpha.4) (2023-03-08)
|
|
7
332
|
|
|
8
333
|
|
package/README.md
CHANGED
|
@@ -10,4 +10,4 @@ Storybook latest: [https://designsystem-latest.dn.se/](https://designsystem-late
|
|
|
10
10
|
|
|
11
11
|
Github: [https://github.com/BonnierNews/dn-design-system/tree/main/web/src](https://github.com/BonnierNews/dn-design-system/tree/main/web/src)
|
|
12
12
|
|
|
13
|
-
For specific instructions see each component or helper readme
|
|
13
|
+
For specific instructions see each component or helper readme
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
{% from '@bonniernews/dn-design-system-web/components/image-caption/image-caption.njk' import ImageCaption %}
|
|
2
|
+
|
|
1
3
|
{% macro ArticleImage(params) %}
|
|
2
4
|
{% set macroClassName = "ds-article-image" %}
|
|
3
5
|
{% set additionalClasses = [] %}
|
|
@@ -18,16 +20,15 @@
|
|
|
18
20
|
{% endif %}
|
|
19
21
|
|
|
20
22
|
{% if params.caption or params.author %}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
</figcaption>
|
|
23
|
+
{% set caption = params.caption if params.caption else "" %}
|
|
24
|
+
{% set author = params.author if params.author else "" %}
|
|
25
|
+
{% set imageType = params.imageType if params.imageType else "" %}
|
|
26
|
+
{{ ImageCaption({
|
|
27
|
+
caption: caption,
|
|
28
|
+
author: author,
|
|
29
|
+
imageType: imageType,
|
|
30
|
+
forcePx: params.forcePx
|
|
31
|
+
})}}
|
|
31
32
|
{% endif %}
|
|
32
33
|
</figure>
|
|
33
34
|
{% endmacro %}
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
|
+
@use "../../components/image-caption/image-caption.scss" as *;
|
|
2
3
|
|
|
3
4
|
.ds-article-image {
|
|
4
5
|
margin: 0;
|
|
5
|
-
|
|
6
|
-
> figcaption {
|
|
7
|
-
@include ds-typography($ds-typography-functional-body01regular);
|
|
8
|
-
margin-top: ds-spacing-component(x2);
|
|
9
|
-
color: $ds-color-text-primary;
|
|
10
|
-
|
|
11
|
-
@at-root .ds-force-px#{&} {
|
|
12
|
-
@include ds-typography($ds-typography-functional-body01regular, true);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
> .ds-article-image__credits {
|
|
16
|
-
display: block;
|
|
17
|
-
color: $ds-color-text-primary-02;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
6
|
}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
@use "../../foundations/helpers/
|
|
2
|
-
@use "../../foundations/helpers/metrics.scss" as *;
|
|
3
|
-
@use "../../foundations/helpers/utilities.scss" as *;
|
|
4
|
-
@use "../../foundations/helpers/typography.scss" as *;
|
|
5
|
-
@use "../../foundations/helpers/colors.scss" as *;
|
|
1
|
+
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
6
2
|
@use "../../foundations/icons/icon.scss" as *;
|
|
7
3
|
|
|
8
4
|
$ds-form-field__error-icon-size: 20px;
|
|
9
5
|
|
|
10
6
|
.ds-form-field__help-text {
|
|
11
|
-
margin-top: ds-spacing-component(x2);
|
|
7
|
+
margin-top: ds-spacing-component($ds-sc-x2);
|
|
12
8
|
margin-bottom: 0;
|
|
13
9
|
color: $ds-color-text-primary-02;
|
|
14
10
|
@include ds-typography($ds-typography-functional-body01regular);
|
|
@@ -22,9 +18,9 @@ $ds-form-field__error-icon-size: 20px;
|
|
|
22
18
|
.invalid {
|
|
23
19
|
.ds-form-field__error-message {
|
|
24
20
|
display: flex;
|
|
25
|
-
margin-top: ds-spacing-component(x2);
|
|
21
|
+
margin-top: ds-spacing-component($ds-sc-x2);
|
|
26
22
|
.ds-icon {
|
|
27
|
-
margin: 0 ds-px-to-rem(ds-spacing-component(x2)) 0 0;
|
|
23
|
+
margin: 0 ds-px-to-rem(ds-spacing-component($ds-sc-x2)) 0 0;
|
|
28
24
|
height: ds-px-to-rem($ds-form-field__error-icon-size);
|
|
29
25
|
width: ds-px-to-rem($ds-form-field__error-icon-size);
|
|
30
26
|
line-height: 0;
|
|
@@ -48,7 +44,7 @@ $ds-form-field__error-icon-size: 20px;
|
|
|
48
44
|
.invalid {
|
|
49
45
|
.ds-form-field__error-message {
|
|
50
46
|
.ds-icon {
|
|
51
|
-
margin: 0 ds-spacing-component(x2) 0 0;
|
|
47
|
+
margin: 0 ds-spacing-component($ds-sc-x2) 0 0;
|
|
52
48
|
height: $ds-form-field__error-icon-size;
|
|
53
49
|
width: $ds-form-field__error-icon-size;
|
|
54
50
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
|
+
|
|
3
|
+
.ds-sticker {
|
|
4
|
+
display: inline;
|
|
5
|
+
color: $ds-theme-color;
|
|
6
|
+
@include ds-typography($ds-typography-detailarticle-label);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ds-sticker__flashing-dot {
|
|
10
|
+
border-radius: 50%;
|
|
11
|
+
background-color: $ds-theme-color;
|
|
12
|
+
display: inline-block;
|
|
13
|
+
width: ds-px-to-rem(10px);
|
|
14
|
+
height: ds-px-to-rem(10px);
|
|
15
|
+
margin-right: ds-px-to-rem(1px);
|
|
16
|
+
animation: pulse 1.25s ease-in-out infinite;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@keyframes pulse {
|
|
20
|
+
0% {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
50% {
|
|
25
|
+
opacity: 1;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
100% {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
2
|
+
@use "../../foundations/icons/icon.scss";
|
|
3
|
+
@use "../../components/vip-badge/vip-badge.scss";
|
|
4
|
+
@use "../../components/teaser-image/teaser-image.scss";
|
|
5
|
+
@use "./sticker.scss";
|
|
6
|
+
|
|
7
|
+
.ds-teaser {
|
|
8
|
+
display: block;
|
|
9
|
+
background-color: $ds-color-background-primary;
|
|
10
|
+
text-decoration: none;
|
|
11
|
+
|
|
12
|
+
.ds-teaser__content {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex: 1;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.ds-teaser__vignette {
|
|
19
|
+
display: block;
|
|
20
|
+
@include ds-typography($ds-typography-detailarticle-label);
|
|
21
|
+
color: $ds-theme-color;
|
|
22
|
+
margin-bottom: ds-spacing-component($ds-sc-x1);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ds-teaser__title {
|
|
26
|
+
color: $ds-color-text-primary;
|
|
27
|
+
margin: 0;
|
|
28
|
+
word-break: break-word;
|
|
29
|
+
|
|
30
|
+
.ds-teaser__highlight {
|
|
31
|
+
color: $ds-theme-color;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ds-teaser__text {
|
|
36
|
+
@include ds-typography($ds-typography-detailmedryckare);
|
|
37
|
+
color: $ds-color-text-primary;
|
|
38
|
+
margin: ds-spacing-component($ds-sc-x2 0 0);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ds-teaser__media {
|
|
42
|
+
width: 100%;
|
|
43
|
+
position: relative;
|
|
44
|
+
|
|
45
|
+
.ds-vip-badge {
|
|
46
|
+
position: absolute;
|
|
47
|
+
top: 0;
|
|
48
|
+
right: 0;
|
|
49
|
+
z-index: 5;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@include ds-hover {
|
|
54
|
+
&:hover {
|
|
55
|
+
.ds-teaser__title {
|
|
56
|
+
text-decoration: $ds-text-decoration-link-underline;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
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: [
|
|
2
|
+
- Storybook: [ArticleBodyImage > Web](https://designsystem.dn.se/?path=/story/components-app-web-article-components-image-bodyimage-web--article-body-image)
|
|
3
3
|
|
|
4
4
|
----
|
|
5
5
|
|
|
@@ -32,7 +32,7 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
32
32
|
fullWidth: true,
|
|
33
33
|
caption: "En bildtext",
|
|
34
34
|
imageType: "Foto",
|
|
35
|
-
author: "Paul Hansen"
|
|
35
|
+
author: "Paul Hansen"
|
|
36
36
|
})}}
|
|
37
37
|
```
|
|
38
38
|
|
|
@@ -11,13 +11,9 @@
|
|
|
11
11
|
{% set additionalClasses = (additionalClasses.push(params.classNames), additionalClasses) %}
|
|
12
12
|
{% endif %}
|
|
13
13
|
|
|
14
|
-
{% if params.forcePx %}
|
|
15
|
-
{% set additionalClasses = (additionalClasses.push("ds-force-px"), additionalClasses) %}
|
|
16
|
-
{% endif %}
|
|
17
|
-
|
|
18
14
|
{% set classes = componentClassName + " " + additionalClasses | join(" ") %}
|
|
19
15
|
|
|
20
|
-
{% set imageParams = { fullWidth: params.fullWidth, caption: params.caption, imageType: params.imageType, author: params.author, imageHtml: params.imageHtml, classNames: classes, attributes: attributes } %}
|
|
16
|
+
{% set imageParams = { fullWidth: params.fullWidth, caption: params.caption, imageType: params.imageType, author: params.author, imageHtml: params.imageHtml, classNames: classes, attributes: attributes, forcePx: params.forcePx } %}
|
|
21
17
|
|
|
22
18
|
{% call ArticleImage(imageParams) %}{% endcall %}
|
|
23
19
|
{% endmacro %}
|
|
@@ -1,5 +1,5 @@
|
|
|
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: [
|
|
2
|
+
- Storybook: [ArticleTopImage > Web](https://designsystem.dn.se/?path=/story/components-app-web-article-components-image-topimage-web--article-top-image)
|
|
3
3
|
|
|
4
4
|
----
|
|
5
5
|
|
|
@@ -30,7 +30,7 @@ These are copy paste friendly examples to quickliy get started using a component
|
|
|
30
30
|
imageHtml: exampleArticleTopImageHtml(),
|
|
31
31
|
caption: "En bildtext",
|
|
32
32
|
imageType: "Foto",
|
|
33
|
-
author: "Beatrice Lundborg"
|
|
33
|
+
author: "Beatrice Lundborg"
|
|
34
34
|
})}}
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -11,13 +11,9 @@
|
|
|
11
11
|
{% set additionalClasses = (additionalClasses.push(params.classNames), additionalClasses) %}
|
|
12
12
|
{% endif %}
|
|
13
13
|
|
|
14
|
-
{% if params.forcePx %}
|
|
15
|
-
{% set additionalClasses = (additionalClasses.push("ds-force-px"), additionalClasses) %}
|
|
16
|
-
{% endif %}
|
|
17
|
-
|
|
18
14
|
{% set classes = componentClassName + " " + additionalClasses | join(" ") %}
|
|
19
15
|
|
|
20
|
-
{% set imageParams = { fullWidth: true, caption: params.caption, imageType: params.imageType, author: params.author, imageHtml: params.imageHtml, classNames: classes, attributes: attributes } %}
|
|
16
|
+
{% set imageParams = { fullWidth: true, caption: params.caption, imageType: params.imageType, author: params.author, imageHtml: params.imageHtml, classNames: classes, attributes: attributes, forcePx: params.forcePx } %}
|
|
21
17
|
|
|
22
18
|
{% call ArticleImage(imageParams) %}{% endcall %}
|
|
23
19
|
{% endmacro %}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
@use "../../foundations/helpers/
|
|
2
|
-
@use "../../foundations/helpers/spacing.scss" as *;
|
|
3
|
-
@use "../../foundations/helpers/typography.scss" as *;
|
|
4
|
-
@use "../../foundations/helpers/utilities.scss" as *;
|
|
5
|
-
@use "../../foundations/helpers/colors.scss" as *;
|
|
1
|
+
@use "../../foundations/helpers/forward.helpers.scss" as *;
|
|
6
2
|
|
|
7
3
|
$ds-badge__min-size: 8px;
|
|
8
4
|
|
|
@@ -21,12 +17,12 @@ $ds-badge__min-size: 8px;
|
|
|
21
17
|
justify-content: center;
|
|
22
18
|
min-height: ds-px-to-rem($ds-badge__min-size);
|
|
23
19
|
min-width: ds-px-to-rem($ds-badge__min-size);
|
|
24
|
-
padding: 0 ds-px-to-rem(ds-spacing-component(x1));
|
|
20
|
+
padding: 0 ds-px-to-rem(ds-spacing-component($ds-sc-x1));
|
|
25
21
|
@at-root .ds-force-px#{&} {
|
|
26
22
|
@include ds-typography($ds-typography-functional-meta02semibold, true);
|
|
27
23
|
min-height: $ds-badge__min-size;
|
|
28
24
|
min-width: $ds-badge__min-size;
|
|
29
|
-
padding: 0 ds-spacing-component(x1);
|
|
25
|
+
padding: 0 ds-spacing-component($ds-sc-x1);
|
|
30
26
|
}
|
|
31
27
|
}
|
|
32
28
|
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
background-color: $ds-color-surface-background;
|
|
6
6
|
margin: 0;
|
|
7
7
|
@include ds-spacing-layout(
|
|
8
|
-
gap-vertical-static-medium 0 gap-vertical-static-large
|
|
8
|
+
$ds-sl-gap-vertical-static-medium 0 $ds-sl-gap-vertical-static-large
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
.ds-blocked-content__inner {
|
|
12
12
|
text-align: center;
|
|
13
13
|
border: ds-metrics-border-width(x1) solid $ds-color-border-primary;
|
|
14
14
|
border-radius: ds-metrics-border-radius(x1);
|
|
15
|
-
padding: ds-spacing-component(x8 x4 x4);
|
|
15
|
+
padding: ds-spacing-component($ds-sc-x8 $ds-sc-x4 $ds-sc-x4);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.ds-blocked-content__body {
|
|
19
|
-
margin: ds-spacing-component(0 0 x8);
|
|
19
|
+
margin: ds-spacing-component(0 0 $ds-sc-x8);
|
|
20
20
|
@include ds-typography($ds-typography-functional-body02regular);
|
|
21
21
|
color: $ds-color-text-primary;
|
|
22
22
|
@at-root .ds-force-px#{&} {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
.ds-blocked-content__title {
|
|
27
27
|
@include ds-typography($ds-typography-functional-heading01semibold);
|
|
28
28
|
color: $ds-color-text-primary;
|
|
29
|
-
margin: 0 0 ds-spacing-component(x2);
|
|
29
|
+
margin: 0 0 ds-spacing-component($ds-sc-x2);
|
|
30
30
|
@at-root .ds-force-px#{&} {
|
|
31
31
|
@include ds-typography($ds-typography-functional-heading01semibold, true);
|
|
32
32
|
}
|