@bonniernews/dn-design-system-web 0.1.0-alpha.9 → 0.1.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/.stylelintignore +1 -0
- package/.stylelintrc.json +17 -0
- package/CHANGELOG.md +544 -0
- package/README.md +9 -1
- package/assets/form-field/form-field.njk +19 -0
- package/assets/form-field/form-field.scss +62 -0
- package/components/badge/README.md +34 -0
- package/components/badge/badge.njk +29 -0
- package/components/badge/badge.scss +36 -0
- package/components/button/README.md +42 -18
- package/components/button/button.njk +8 -6
- package/components/button/button.scss +171 -102
- package/components/checkbox/README.md +42 -0
- package/components/checkbox/checkbox.njk +61 -0
- package/components/checkbox/checkbox.scss +143 -0
- package/components/divider/README.md +32 -0
- package/components/divider/divider.njk +21 -0
- package/components/divider/divider.scss +24 -0
- package/components/icon-button/README.md +34 -9
- package/components/icon-button/icon-button.njk +20 -8
- package/components/icon-button/icon-button.scss +82 -103
- package/components/icon-with-wrapper/README.md +58 -0
- package/components/icon-with-wrapper/icon-with-wrapper.njk +34 -0
- package/components/icon-with-wrapper/icon-with-wrapper.scss +9 -0
- package/components/list-item/README-accordion.md +56 -0
- package/components/list-item/README-checkbox.md +44 -0
- package/components/list-item/README-radio.md +46 -0
- package/components/list-item/README-switch.md +46 -0
- package/components/list-item/README.md +48 -0
- package/components/list-item/list-item.js +8 -0
- package/components/list-item/list-item.njk +152 -0
- package/components/list-item/list-item.scss +236 -0
- package/components/radio-button/README.md +45 -0
- package/components/radio-button/radio-button.njk +56 -0
- package/components/radio-button/radio-button.scss +115 -0
- package/components/switch/README.md +42 -0
- package/components/switch/switch.njk +49 -0
- package/components/switch/switch.scss +139 -0
- package/components/text-button/README.md +44 -0
- package/components/text-button/text-button.njk +46 -0
- package/components/text-button/text-button.scss +148 -0
- package/components/text-input/README.md +57 -0
- package/components/text-input/text-input.js +20 -0
- package/components/text-input/text-input.njk +43 -0
- package/components/text-input/text-input.scss +157 -0
- package/foundations/a11y/a11y.scss +8 -0
- package/foundations/a11y/visually-hidden.njk +3 -0
- package/foundations/base.scss +23 -0
- package/foundations/colors.scss +5 -5
- package/foundations/helpers/colors.scss +1 -0
- package/foundations/helpers/mediaQueries.scss +8 -8
- package/foundations/helpers/metrics.scss +43 -0
- package/foundations/helpers/spacing.scss +30 -25
- package/foundations/helpers/typography.scss +56 -32
- package/foundations/helpers/utilities.scss +13 -0
- package/foundations/icons/icon-sprite.svg +1 -1
- package/foundations/icons/icon.njk +214 -48
- package/foundations/icons/svg/add.svg +1 -6
- package/foundations/icons/svg/arrow_back.svg +1 -6
- package/foundations/icons/svg/arrow_forward.svg +1 -6
- package/foundations/icons/svg/arrow_outward.svg +3 -0
- package/foundations/icons/svg/bookmark-filled.svg +3 -0
- package/foundations/icons/svg/bookmarked.svg +3 -0
- package/foundations/icons/svg/cancel.svg +3 -0
- package/foundations/icons/svg/celebration.svg +1 -6
- package/foundations/icons/svg/check.svg +1 -6
- package/foundations/icons/svg/check_box-filled.svg +3 -0
- package/foundations/icons/svg/check_box_outline_blank.svg +3 -0
- package/foundations/icons/svg/check_circle.svg +3 -0
- package/foundations/icons/svg/chevron_left.svg +3 -0
- package/foundations/icons/svg/chevron_right.svg +3 -0
- package/foundations/icons/svg/close.svg +3 -0
- package/foundations/icons/svg/comment.svg +3 -0
- package/foundations/icons/svg/delete.svg +1 -6
- package/foundations/icons/svg/expand_less.svg +3 -0
- package/foundations/icons/svg/expand_more.svg +3 -0
- package/foundations/icons/svg/favorite-filled.svg +1 -6
- package/foundations/icons/svg/favorite.svg +1 -6
- package/foundations/icons/svg/format_size.svg +3 -0
- package/foundations/icons/svg/grid_view.svg +3 -0
- package/foundations/icons/svg/headphones-filled.svg +1 -6
- package/foundations/icons/svg/headphones.svg +1 -6
- package/foundations/icons/svg/history.svg +3 -0
- package/foundations/icons/svg/home-filled.svg +1 -6
- package/foundations/icons/svg/home.svg +1 -6
- package/foundations/icons/svg/info-filled.svg +1 -6
- package/foundations/icons/svg/integrity.svg +3 -0
- package/foundations/icons/svg/ios_share.svg +3 -0
- package/foundations/icons/svg/lock.svg +1 -6
- package/foundations/icons/svg/logout.svg +3 -0
- package/foundations/icons/svg/mail.svg +3 -0
- package/foundations/icons/svg/manage_accounts-filled.svg +1 -6
- package/foundations/icons/svg/manage_accounts.svg +1 -6
- package/foundations/icons/svg/mark_email_unread.svg +1 -6
- package/foundations/icons/svg/memory.svg +3 -0
- package/foundations/icons/svg/menu-filled.svg +1 -6
- package/foundations/icons/svg/menu.svg +1 -6
- package/foundations/icons/svg/mode_comment.svg +3 -0
- package/foundations/icons/svg/more_horiz.svg +1 -6
- package/foundations/icons/svg/notifications.svg +1 -6
- package/foundations/icons/svg/person.svg +3 -0
- package/foundations/icons/svg/queue_music.svg +3 -0
- package/foundations/icons/svg/radio_button_checked.svg +3 -0
- package/foundations/icons/svg/radio_button_unchecked.svg +3 -0
- package/foundations/icons/svg/redeem.svg +3 -0
- package/foundations/icons/svg/search.svg +1 -6
- package/foundations/icons/svg/share.svg +3 -0
- package/foundations/icons/svg/support_agent.svg +3 -0
- package/foundations/icons/svg/user_policy.svg +3 -0
- package/foundations/icons/svg/view_list.svg +3 -0
- package/foundations/icons/svg/visibility.svg +1 -6
- package/foundations/icons/svg/visibility_off.svg +1 -6
- package/foundations/icons/svg/volume_off.svg +3 -0
- package/foundations/icons/svg/volume_up.svg +3 -0
- package/foundations/typography/README.md +15 -18
- package/foundations/typography/typography.njk +4 -0
- package/foundations/typography/typography.scss +4 -0
- package/foundations/variables/colorsDnDarkTokens.scss +52 -49
- package/foundations/variables/colorsDnLightTokens.scss +52 -49
- package/foundations/variables/colorsTokensList.scss +52 -0
- package/foundations/variables/metrics.scss +10 -0
- package/foundations/variables/spacingComponent.scss +9 -7
- package/foundations/variables/spacingLayout.scss +8 -6
- package/foundations/variables/typographyTokensList.scss +56 -0
- package/foundations/variables/typographyTokensScreenLarge.scss +175 -30
- package/foundations/variables/typographyTokensScreenSmall.scss +185 -40
- package/package.json +11 -1
- package/components/button-group/README.md +0 -20
- package/components/button-group/button-group.njk +0 -27
- package/components/button-group/button-group.scss +0 -20
- package/components/hyperlink/README.md +0 -15
- package/components/hyperlink/hyperlink.njk +0 -25
- package/components/hyperlink/hyperlink.scss +0 -1
- package/foundations/variables/colorsDnDark.scss +0 -66
- package/foundations/variables/colorsDnLight.scss +0 -66
- package/foundations/variables/typography.scss +0 -156
package/.stylelintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
foundations/variables/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
"stylelint-selector-bem-pattern",
|
|
4
|
+
"stylelint-sass-render-errors"
|
|
5
|
+
],
|
|
6
|
+
"extends": [
|
|
7
|
+
"stylelint-config-recommended-scss",
|
|
8
|
+
"stylelint-prettier/recommended"
|
|
9
|
+
],
|
|
10
|
+
"rules": {
|
|
11
|
+
"plugin/sass-render-errors": true,
|
|
12
|
+
"no-descending-specificity": null,
|
|
13
|
+
"plugin/selector-bem-pattern": {
|
|
14
|
+
"preset": "bem"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,550 @@
|
|
|
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
|
+
# [0.1.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.64...@bonniernews/dn-design-system-web@0.1.0) (2022-12-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# 0.1.0-alpha.64 (2022-12-05)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# 0.1.0-alpha.63 (2022-12-01)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **web:** change icon to real component ([#466](https://github.com/BonnierNews/dn-design-system/issues/466)) ([9903768](https://github.com/BonnierNews/dn-design-system/commit/99037681e5793949fb7fd9c439616c91ab6ed3df))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
# 0.1.0-alpha.62 (2022-11-30)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* **web:** fix label and make space for toggle btn in safari ([#464](https://github.com/BonnierNews/dn-design-system/issues/464)) ([f297c37](https://github.com/BonnierNews/dn-design-system/commit/f297c3744e05a99e8e08f2af0b6dfe31c6151a3d))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
# [0.1.0-alpha.61](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.60...@bonniernews/dn-design-system-web@0.1.0-alpha.61) (2022-11-29)
|
|
45
|
+
|
|
46
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
# [0.1.0-alpha.60](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.59...@bonniernews/dn-design-system-web@0.1.0-alpha.60) (2022-11-28)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* **web:** bugfix for icons in safari and firefox ([#459](https://github.com/BonnierNews/dn-design-system/issues/459)) ([80a4544](https://github.com/BonnierNews/dn-design-system/commit/80a4544615175169445ff1ccd97328c63b2f0036))
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
# 0.1.0-alpha.59 (2022-11-25)
|
|
64
|
+
|
|
65
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
# [0.1.0-alpha.58](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.57...@bonniernews/dn-design-system-web@0.1.0-alpha.58) (2022-11-21)
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
### Bug Fixes
|
|
75
|
+
|
|
76
|
+
* **web:** update readme ([#452](https://github.com/BonnierNews/dn-design-system/issues/452)) ([3ccc5de](https://github.com/BonnierNews/dn-design-system/commit/3ccc5de5ca9c416674630949bd547dc33b7d31f8))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
# [0.1.0-alpha.57](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.56...@bonniernews/dn-design-system-web@0.1.0-alpha.57) (2022-11-21)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
### Bug Fixes
|
|
86
|
+
|
|
87
|
+
* **web:** update readme ([#450](https://github.com/BonnierNews/dn-design-system/issues/450)) ([6373846](https://github.com/BonnierNews/dn-design-system/commit/6373846d47ae8ab113f41e65cc805b7ff01499c1))
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
# [0.1.0-alpha.56](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.55...@bonniernews/dn-design-system-web@0.1.0-alpha.56) (2022-11-21)
|
|
94
|
+
|
|
95
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
# [0.1.0-alpha.55](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.54...@bonniernews/dn-design-system-web@0.1.0-alpha.55) (2022-11-21)
|
|
102
|
+
|
|
103
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
# [0.1.0-alpha.54](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.53...@bonniernews/dn-design-system-web@0.1.0-alpha.54) (2022-11-21)
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
### Bug Fixes
|
|
113
|
+
|
|
114
|
+
* **web:** update readme ([#439](https://github.com/BonnierNews/dn-design-system/issues/439)) ([8f4ad72](https://github.com/BonnierNews/dn-design-system/commit/8f4ad720f0d7be0ac356440ff6bb1af1d558812f))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
# [0.1.0-alpha.53](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.52...@bonniernews/dn-design-system-web@0.1.0-alpha.53) (2022-11-17)
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
### Bug Fixes
|
|
124
|
+
|
|
125
|
+
* **web:** mark attributes as safe ([#435](https://github.com/BonnierNews/dn-design-system/issues/435)) ([dd4338d](https://github.com/BonnierNews/dn-design-system/commit/dd4338dfb2daa3b717f1f598742b31555b1c895e))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
# [0.1.0-alpha.52](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.51...@bonniernews/dn-design-system-web@0.1.0-alpha.52) (2022-11-17)
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
### Bug Fixes
|
|
135
|
+
|
|
136
|
+
* **web:** remove unnecessary disabled attributes from list item ([#430](https://github.com/BonnierNews/dn-design-system/issues/430)) ([90cc887](https://github.com/BonnierNews/dn-design-system/commit/90cc8875feb936a3a855e96a28ce9014a08a5f17))
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
# [0.1.0-alpha.51](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.50...@bonniernews/dn-design-system-web@0.1.0-alpha.51) (2022-11-17)
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
### Bug Fixes
|
|
146
|
+
|
|
147
|
+
* **web:** update scss examples in readme ([#424](https://github.com/BonnierNews/dn-design-system/issues/424)) ([4c892d5](https://github.com/BonnierNews/dn-design-system/commit/4c892d5456a386262ec655abb16cdd8029dbc764))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
# 0.1.0-alpha.50 (2022-11-17)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### Bug Fixes
|
|
157
|
+
|
|
158
|
+
* **web:** remove hover/active on disabled items ([#429](https://github.com/BonnierNews/dn-design-system/issues/429)) ([99703ce](https://github.com/BonnierNews/dn-design-system/commit/99703cecb536a0b6464051da6f2dafce733b26df))
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
# [0.1.0-alpha.49](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.48...@bonniernews/dn-design-system-web@0.1.0-alpha.49) (2022-11-15)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### Bug Fixes
|
|
168
|
+
|
|
169
|
+
* **web:** add background to outlined icon button ([#423](https://github.com/BonnierNews/dn-design-system/issues/423)) ([8cda87e](https://github.com/BonnierNews/dn-design-system/commit/8cda87ef8c5309c31b68e9626a8d1f3d51b45dd7))
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
# [0.1.0-alpha.48](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.47...@bonniernews/dn-design-system-web@0.1.0-alpha.48) (2022-11-15)
|
|
176
|
+
|
|
177
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
# [0.1.0-alpha.47](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.46...@bonniernews/dn-design-system-web@0.1.0-alpha.47) (2022-11-14)
|
|
184
|
+
|
|
185
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
# 0.1.0-alpha.46 (2022-11-14)
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
### Bug Fixes
|
|
195
|
+
|
|
196
|
+
* **web:** update readme for all components ([#418](https://github.com/BonnierNews/dn-design-system/issues/418)) ([7df88e8](https://github.com/BonnierNews/dn-design-system/commit/7df88e8553e07296e60ae587a13b43ddf565f13a))
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
# [0.1.0-alpha.45](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.44...@bonniernews/dn-design-system-web@0.1.0-alpha.45) (2022-11-07)
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
### Features
|
|
206
|
+
|
|
207
|
+
* **web:** list item component ([#400](https://github.com/BonnierNews/dn-design-system/issues/400)) ([09d6b07](https://github.com/BonnierNews/dn-design-system/commit/09d6b07838fd89d7c1f2d42ebdd08fbaf468a31d))
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
# 0.1.0-alpha.44 (2022-11-04)
|
|
214
|
+
|
|
215
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
# [0.1.0-alpha.43](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.42...@bonniernews/dn-design-system-web@0.1.0-alpha.43) (2022-11-03)
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
### Features
|
|
225
|
+
|
|
226
|
+
* **web:** update so spacing function can take params rem and em ([#410](https://github.com/BonnierNews/dn-design-system/issues/410)) ([b627dc8](https://github.com/BonnierNews/dn-design-system/commit/b627dc8e3e80c9745ee96dd8519f72a3f884dcca))
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
# 0.1.0-alpha.42 (2022-11-03)
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
### Features
|
|
236
|
+
|
|
237
|
+
* **web:** text field web, and story update ([#403](https://github.com/BonnierNews/dn-design-system/issues/403)) ([332917c](https://github.com/BonnierNews/dn-design-system/commit/332917cdcc32c29d8559d173ccf25ee9833a5423))
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
# 0.1.0-alpha.41 (2022-11-01)
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
### Bug Fixes
|
|
247
|
+
|
|
248
|
+
* **storybook:** add support for tables in markdown ([#408](https://github.com/BonnierNews/dn-design-system/issues/408)) ([6786563](https://github.com/BonnierNews/dn-design-system/commit/67865634b6186094521674c444e7b01b8cbcf458))
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
# [0.1.0-alpha.40](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.39...@bonniernews/dn-design-system-web@0.1.0-alpha.40) (2022-10-27)
|
|
255
|
+
|
|
256
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
# [0.1.0-alpha.39](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.38...@bonniernews/dn-design-system-web@0.1.0-alpha.39) (2022-10-27)
|
|
263
|
+
|
|
264
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
# [0.1.0-alpha.38](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.37...@bonniernews/dn-design-system-web@0.1.0-alpha.38) (2022-10-26)
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
### Features
|
|
274
|
+
|
|
275
|
+
* **web:** switch component ([#379](https://github.com/BonnierNews/dn-design-system/issues/379)) ([b9dd6c3](https://github.com/BonnierNews/dn-design-system/commit/b9dd6c3e78ddc92ac874fb09408405673a47a70e))
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
# 0.1.0-alpha.37 (2022-10-26)
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
### Bug Fixes
|
|
285
|
+
|
|
286
|
+
* **web:** update condensed text button and focus borders ([#383](https://github.com/BonnierNews/dn-design-system/issues/383)) ([8a8b179](https://github.com/BonnierNews/dn-design-system/commit/8a8b17922438695c9efe3db22f6213c1f3f6959f))
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
# 0.1.0-alpha.36 (2022-10-26)
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
### Features
|
|
296
|
+
|
|
297
|
+
* **web:** add size to icon component ([#389](https://github.com/BonnierNews/dn-design-system/issues/389)) ([da25e31](https://github.com/BonnierNews/dn-design-system/commit/da25e3109da5da44ac6a5398e4664739ade43904))
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
# 0.1.0-alpha.35 (2022-10-26)
|
|
304
|
+
|
|
305
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
# [0.1.0-alpha.34](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.33...@bonniernews/dn-design-system-web@0.1.0-alpha.34) (2022-10-25)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
### Features
|
|
315
|
+
|
|
316
|
+
* **web:** radio button component ([#369](https://github.com/BonnierNews/dn-design-system/issues/369)) ([3be818f](https://github.com/BonnierNews/dn-design-system/commit/3be818fb4f0c05565d6566eb62a84b4e26fd970a))
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
# 0.1.0-alpha.33 (2022-10-25)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
### Features
|
|
326
|
+
|
|
327
|
+
* **web:** checkbox component ([#363](https://github.com/BonnierNews/dn-design-system/issues/363)) ([86b58f6](https://github.com/BonnierNews/dn-design-system/commit/86b58f6b2b9e90787966b5496cd7677466c0e7f0))
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
# 0.1.0-alpha.32 (2022-10-24)
|
|
334
|
+
|
|
335
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
# [0.1.0-alpha.31](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.30...@bonniernews/dn-design-system-web@0.1.0-alpha.31) (2022-10-21)
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
### Bug Fixes
|
|
345
|
+
|
|
346
|
+
* **web:** update focus colors and add color variable list ([#353](https://github.com/BonnierNews/dn-design-system/issues/353)) ([2e12e66](https://github.com/BonnierNews/dn-design-system/commit/2e12e66067784030a8e613eea4d8927f167c04a2))
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
# 0.1.0-alpha.30 (2022-10-20)
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
### Features
|
|
356
|
+
|
|
357
|
+
* **web:** badge component ([#347](https://github.com/BonnierNews/dn-design-system/issues/347)) ([b8e3ca1](https://github.com/BonnierNews/dn-design-system/commit/b8e3ca1aa9451f03932d614a6632d8d09ba695e9))
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
# [0.1.0-alpha.29](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.28...@bonniernews/dn-design-system-web@0.1.0-alpha.29) (2022-10-20)
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
### Bug Fixes
|
|
367
|
+
|
|
368
|
+
* **web:** add forcePx parameter to buttons to prevent scaling ([#346](https://github.com/BonnierNews/dn-design-system/issues/346)) ([d0d81bc](https://github.com/BonnierNews/dn-design-system/commit/d0d81bcc91f72c3ec308b5f5226ce37b54f5edf0))
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
# [0.1.0-alpha.28](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.27...@bonniernews/dn-design-system-web@0.1.0-alpha.28) (2022-10-19)
|
|
375
|
+
|
|
376
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
# 0.1.0-alpha.27 (2022-10-19)
|
|
383
|
+
|
|
384
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
# 0.1.0-alpha.26 (2022-10-19)
|
|
391
|
+
|
|
392
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
# 0.1.0-alpha.25 (2022-10-17)
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
### Bug Fixes
|
|
402
|
+
|
|
403
|
+
* **web:** update buttons ([#306](https://github.com/BonnierNews/dn-design-system/issues/306)) ([37c8fb6](https://github.com/BonnierNews/dn-design-system/commit/37c8fb68149b047ff0f53e8ab611f3d6fecc9f9a))
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
# [0.1.0-alpha.24](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.23...@bonniernews/dn-design-system-web@0.1.0-alpha.24) (2022-10-14)
|
|
410
|
+
|
|
411
|
+
|
|
412
|
+
### Bug Fixes
|
|
413
|
+
|
|
414
|
+
* **web:** change prefix for color variables to ds-color ([#290](https://github.com/BonnierNews/dn-design-system/issues/290)) ([93c443a](https://github.com/BonnierNews/dn-design-system/commit/93c443a8242b850c5714b3a3d834435024085d86))
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
# 0.1.0-alpha.23 (2022-10-14)
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
### Bug Fixes
|
|
424
|
+
|
|
425
|
+
* **web:** add typography variables and normalize letter-spacing ([#289](https://github.com/BonnierNews/dn-design-system/issues/289)) ([995eb48](https://github.com/BonnierNews/dn-design-system/commit/995eb486e055e17d98594b9dce1b122fc09dcbdd))
|
|
426
|
+
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
# [0.1.0-alpha.22](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.21...@bonniernews/dn-design-system-web@0.1.0-alpha.22) (2022-10-10)
|
|
432
|
+
|
|
433
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
434
|
+
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
# 0.1.0-alpha.21 (2022-10-10)
|
|
440
|
+
|
|
441
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
# [0.1.0-alpha.20](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.19...@bonniernews/dn-design-system-web@0.1.0-alpha.20) (2022-10-07)
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
### Bug Fixes
|
|
451
|
+
|
|
452
|
+
* **web:** sync sass variables with tokens ([#269](https://github.com/BonnierNews/dn-design-system/issues/269)) ([b760051](https://github.com/BonnierNews/dn-design-system/commit/b760051a2a09ad299c20d193ac47cec95bbf5dab))
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
# 0.1.0-alpha.19 (2022-10-07)
|
|
459
|
+
|
|
460
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
# [0.1.0-alpha.18](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.17...@bonniernews/dn-design-system-web@0.1.0-alpha.18) (2022-10-03)
|
|
467
|
+
|
|
468
|
+
|
|
469
|
+
### Features
|
|
470
|
+
|
|
471
|
+
* **web:** divider component for web ([#252](https://github.com/BonnierNews/dn-design-system/issues/252)) ([93f5dfb](https://github.com/BonnierNews/dn-design-system/commit/93f5dfb365da8a554b4ea21d519c614cc06081df))
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
# 0.1.0-alpha.17 (2022-10-03)
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
### Features
|
|
481
|
+
|
|
482
|
+
* **web:** text button component for web ([#254](https://github.com/BonnierNews/dn-design-system/issues/254)) ([6711a5b](https://github.com/BonnierNews/dn-design-system/commit/6711a5b6d46da68eb25db1f9af4f25fbb219011d))
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
# [0.1.0-alpha.16](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.15...@bonniernews/dn-design-system-web@0.1.0-alpha.16) (2022-09-30)
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
### Bug Fixes
|
|
492
|
+
|
|
493
|
+
* **web:** use metrics and new spacing tokens ([#249](https://github.com/BonnierNews/dn-design-system/issues/249)) ([67fe9a7](https://github.com/BonnierNews/dn-design-system/commit/67fe9a715fdadeb1cf08f7fb291d35cd4818307a))
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
# 0.1.0-alpha.15 (2022-09-29)
|
|
500
|
+
|
|
501
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
# 0.1.0-alpha.14 (2022-09-27)
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
### Features
|
|
511
|
+
|
|
512
|
+
* **web:** update web typography ([#235](https://github.com/BonnierNews/dn-design-system/issues/235)) ([83a5039](https://github.com/BonnierNews/dn-design-system/commit/83a5039955f6df69f983b52531c46be29738e39d))
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
# 0.1.0-alpha.13 (2022-09-09)
|
|
519
|
+
|
|
520
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
521
|
+
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
# 0.1.0-alpha.12 (2022-09-08)
|
|
527
|
+
|
|
528
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
# [0.1.0-alpha.11](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@0.1.0-alpha.10...@bonniernews/dn-design-system-web@0.1.0-alpha.11) (2022-09-07)
|
|
535
|
+
|
|
536
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
# 0.1.0-alpha.10 (2022-09-07)
|
|
543
|
+
|
|
544
|
+
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
|
545
|
+
|
|
546
|
+
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
|
|
6
550
|
# 0.1.0-alpha.9 (2022-08-24)
|
|
7
551
|
|
|
8
552
|
**Note:** Version bump only for package @bonniernews/dn-design-system-web
|
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
# @bonniernews/dn-design-system-web
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Components and foundations of DN design system for web
|
|
4
|
+
|
|
5
|
+
Storybook: [https://designsystem.dn.se/](https://designsystem.dn.se/)
|
|
6
|
+
|
|
7
|
+
Storybook latest: [https://designsystem-latest.dn.se/](https://designsystem-latest.dn.se/)
|
|
8
|
+
|
|
9
|
+
Github: [https://github.com/BonnierNews/dn-design-system/tree/main/web/src](https://github.com/BonnierNews/dn-design-system/tree/main/web/src)
|
|
10
|
+
|
|
11
|
+
For specific instructions see each component readme.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{% from '@bonniernews/dn-design-system-web/foundations/icons/icon.njk' import Icon %}
|
|
2
|
+
{% set classes = [] %}
|
|
3
|
+
|
|
4
|
+
{% macro FormField(params, wrapperClasses) %}
|
|
5
|
+
{% if (params.error) %}
|
|
6
|
+
{% set classes = (classes.push("ds-form-field__error"), classes) %}
|
|
7
|
+
{% endif %}
|
|
8
|
+
|
|
9
|
+
<div class="ds-form-field {{ wrapperClasses | join(" ") }} {{ classes | join(" ") }} {{"hidden" if params.type == "hidden" }}">
|
|
10
|
+
{{ caller() if caller }}
|
|
11
|
+
<div class="ds-form-field__error-message js-field-error">
|
|
12
|
+
{{ Icon({ icon: "info-filled" }) }}
|
|
13
|
+
<span>{{ params.errorMessage | safe }}</span>
|
|
14
|
+
</div>
|
|
15
|
+
{% if params.helpText or params.helpHtml %}
|
|
16
|
+
<p class="ds-form-field__help-text">{{ params.helpHtml | safe if params.helpHtml else params.helpText }}</p>
|
|
17
|
+
{% endif %}
|
|
18
|
+
</div>
|
|
19
|
+
{% endmacro %}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
@use "../../foundations/helpers/spacing.scss" as *;
|
|
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 *;
|
|
6
|
+
|
|
7
|
+
$ds-form-field__error-icon-size: 20px;
|
|
8
|
+
|
|
9
|
+
.ds-form-field__help-text {
|
|
10
|
+
margin-top: ds-spacing-component(x2);
|
|
11
|
+
margin-bottom: 0;
|
|
12
|
+
color: var($ds-color-text-primary-02);
|
|
13
|
+
@include ds-typography($ds-typography-functional-body01regular);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ds-form-field__error-message {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.ds-form-field__error,
|
|
21
|
+
.invalid {
|
|
22
|
+
.ds-form-field__error-message {
|
|
23
|
+
display: flex;
|
|
24
|
+
margin-top: ds-spacing-component(x2);
|
|
25
|
+
.ds-icon {
|
|
26
|
+
margin: 0 ds-px-to-rem(ds-spacing-component(x2)) 0 0;
|
|
27
|
+
height: ds-px-to-rem($ds-form-field__error-icon-size);
|
|
28
|
+
width: ds-px-to-rem($ds-form-field__error-icon-size);
|
|
29
|
+
line-height: 0;
|
|
30
|
+
svg {
|
|
31
|
+
fill: var($ds-color-icon-critical);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
span {
|
|
35
|
+
@include ds-typography($ds-typography-functional-body01regular);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.ds-form-field__help-text {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ds-force-px {
|
|
45
|
+
&.ds-form-field__error,
|
|
46
|
+
.invalid {
|
|
47
|
+
.ds-form-field__error-message {
|
|
48
|
+
.ds-icon {
|
|
49
|
+
margin: 0 ds-spacing-component(x2) 0 0;
|
|
50
|
+
height: $ds-form-field__error-icon-size;
|
|
51
|
+
width: $ds-form-field__error-icon-size;
|
|
52
|
+
}
|
|
53
|
+
span {
|
|
54
|
+
@include ds-typography($ds-typography-functional-body01regular, true);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.ds-form-field__help-text {
|
|
60
|
+
@include ds-typography($ds-typography-functional-body01regular, true);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
- GitHub: [BonnierNews/dn-design-system/../web/src/components/badge](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/badge)
|
|
2
|
+
- Storybook: [Badge > Badge > Web](https://designsystem.dn.se/?path=/story/components-app-web-badge-badge-web)
|
|
3
|
+
- Storybook: [Badge > BadgeWithFigure > Web ](https://designsystem.dn.se/?path=/story/components-app-web-badge-badgewithfigure-web)
|
|
4
|
+
|
|
5
|
+
----
|
|
6
|
+
|
|
7
|
+
# Badge
|
|
8
|
+
|
|
9
|
+
## Parameters
|
|
10
|
+
|
|
11
|
+
|parameter | type | required | options | default | description |
|
|
12
|
+
|:--- | :--- | :--- | :--- | :--- | :--- |
|
|
13
|
+
|figure | int | no | | | Numbers above 9 will show as "9+"|
|
|
14
|
+
|classNames | String | no | | | Ex. "my-special-class" |
|
|
15
|
+
|forcePx | bool | no | true, false | false | Fixed pixel value is used for typography to prevent scaling based on html font-size |
|
|
16
|
+
|
|
17
|
+
## Minimum requirement example
|
|
18
|
+
|
|
19
|
+
### Nunjucks
|
|
20
|
+
|
|
21
|
+
These are copy paste friendly examples to quickliy get started using a component.
|
|
22
|
+
|
|
23
|
+
```html
|
|
24
|
+
{% from '@bonniernews/dn-design-system-web/components/badge/badge.njk' import Badge %}
|
|
25
|
+
|
|
26
|
+
{{ Badge({
|
|
27
|
+
figure: 2
|
|
28
|
+
})}}
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### SCSS
|
|
32
|
+
```scss
|
|
33
|
+
@use "@bonniernews/dn-design-system-web/components/badge/badge";
|
|
34
|
+
```
|