@bonniernews/dn-design-system-web 3.0.0-alpha.99 → 4.0.0-alpha.1
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 +138 -0
- package/assets/article-image/article-image.njk +1 -1
- package/assets/article-image/article-image.scss +1 -1
- package/assets/teaser/teaser.scss +11 -1
- package/components/byline/README.md +3 -3
- package/components/byline/byline.njk +1 -1
- package/components/byline/byline.scss +18 -1
- package/components/image-caption/image-caption.njk +5 -1
- package/components/pictogram/pictogram.scss +4 -1
- package/components/teaser-large/teaser-large.njk +5 -3
- package/components/teaser-list-timeline/README.md +44 -0
- package/components/teaser-list-timeline/teaser-list-timeline.njk +62 -0
- package/components/teaser-list-timeline/teaser-list-timeline.scss +80 -0
- package/components/teaser-native/README.md +41 -0
- package/components/teaser-native/teaser-native.njk +59 -0
- package/components/teaser-native/teaser-native.scss +109 -0
- package/components/teaser-package/teaser-package.scss +3 -1
- package/components/teaser-split/teaser-split.njk +5 -3
- package/components/teaser-standard/teaser-standard.njk +17 -15
- package/components/teaser-standard/teaser-standard.scss +6 -8
- package/foundations/base.scss +3 -3
- package/foundations/colors.scss +22 -5
- package/foundations/helpers/colors.scss +1 -1
- package/foundations/helpers/forward.helpers.scss +0 -1
- package/foundations/helpers/opacity.scss +1 -1
- package/foundations/helpers/shadows.scss +6 -6
- package/foundations/helpers/spacing.scss +2 -2
- package/foundations/helpers/typography.scss +12 -10
- package/foundations/helpers/utilities.scss +1 -1
- package/foundations/icons/icon.njk +25 -0
- package/foundations/icons/sprite.njk +1 -1
- package/foundations/icons/sprite.svg +1 -1
- package/foundations/icons/svg/arrow_upward.svg +3 -0
- package/foundations/icons/svg/forward_30.svg +3 -0
- package/foundations/icons/svg/link.svg +3 -0
- package/foundations/icons/svg/refresh.svg +3 -0
- package/foundations/icons/svg/replay_30.svg +3 -0
- package/foundations/shadows.scss +5 -5
- package/foundations/typography/fontDefinitions.scss +56 -56
- package/foundations/variables/typographyTokensList.scss +1 -0
- package/foundations/variables/typographyTokensScreenExtraLarge.scss +79 -74
- package/foundations/variables/typographyTokensScreenLarge.scss +150 -144
- package/foundations/variables/typographyTokensScreenSmall.scss +61 -55
- package/package.json +11 -9
- package/tokens/colors-dark-mode.json +93 -0
- package/tokens/colors-light-mode.json +92 -0
- package/tokens/icon-list.json +79 -0
- package/tokens/typography-list.json +92 -0
- package/.stylelintignore +0 -1
- package/.stylelintrc.json +0 -17
- package/assets/teaser/dot-or-grade.njk +0 -7
- package/foundations/helpers/fontDefinitionsHelper.scss +0 -32
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"add": "add",
|
|
3
|
+
"arrow_back": "arrow_back",
|
|
4
|
+
"arrow_forward": "arrow_forward",
|
|
5
|
+
"arrow_outward": "arrow_outward",
|
|
6
|
+
"arrow_upward": "arrow_upward",
|
|
7
|
+
"bookmark-filled": "bookmark-filled",
|
|
8
|
+
"bookmarked": "bookmarked",
|
|
9
|
+
"campaign": "campaign",
|
|
10
|
+
"cancel": "cancel",
|
|
11
|
+
"celebration": "celebration",
|
|
12
|
+
"check_box_outline_blank": "check_box_outline_blank",
|
|
13
|
+
"check_box-filled": "check_box-filled",
|
|
14
|
+
"check_circle": "check_circle",
|
|
15
|
+
"check": "check",
|
|
16
|
+
"chevron_left": "chevron_left",
|
|
17
|
+
"chevron_right": "chevron_right",
|
|
18
|
+
"close": "close",
|
|
19
|
+
"comment": "comment",
|
|
20
|
+
"delete": "delete",
|
|
21
|
+
"download": "download",
|
|
22
|
+
"edit": "edit",
|
|
23
|
+
"expand_less": "expand_less",
|
|
24
|
+
"expand_more": "expand_more",
|
|
25
|
+
"facebook": "facebook",
|
|
26
|
+
"favorite-filled": "favorite-filled",
|
|
27
|
+
"favorite": "favorite",
|
|
28
|
+
"feed": "feed",
|
|
29
|
+
"filter_list": "filter_list",
|
|
30
|
+
"filter_none": "filter_none",
|
|
31
|
+
"format_size": "format_size",
|
|
32
|
+
"grid_view": "grid_view",
|
|
33
|
+
"headphones-filled": "headphones-filled",
|
|
34
|
+
"headphones": "headphones",
|
|
35
|
+
"history": "history",
|
|
36
|
+
"home-filled": "home-filled",
|
|
37
|
+
"home": "home",
|
|
38
|
+
"info-filled": "info-filled",
|
|
39
|
+
"info": "info",
|
|
40
|
+
"instagram": "instagram",
|
|
41
|
+
"integrity": "integrity",
|
|
42
|
+
"ios_share": "ios_share",
|
|
43
|
+
"lock": "lock",
|
|
44
|
+
"logout": "logout",
|
|
45
|
+
"mail": "mail",
|
|
46
|
+
"manage_accounts-filled": "manage_accounts-filled",
|
|
47
|
+
"manage_accounts": "manage_accounts",
|
|
48
|
+
"mark_email_unread": "mark_email_unread",
|
|
49
|
+
"memory": "memory",
|
|
50
|
+
"menu-filled": "menu-filled",
|
|
51
|
+
"menu": "menu",
|
|
52
|
+
"mode_comment": "mode_comment",
|
|
53
|
+
"more_horiz": "more_horiz",
|
|
54
|
+
"notifications": "notifications",
|
|
55
|
+
"pause": "pause",
|
|
56
|
+
"person": "person",
|
|
57
|
+
"play_arrow-filled": "play_arrow-filled",
|
|
58
|
+
"play_arrow": "play_arrow",
|
|
59
|
+
"print": "print",
|
|
60
|
+
"priority_high": "priority_high",
|
|
61
|
+
"queue_music": "queue_music",
|
|
62
|
+
"radio_button_checked": "radio_button_checked",
|
|
63
|
+
"radio_button_unchecked": "radio_button_unchecked",
|
|
64
|
+
"redeem": "redeem",
|
|
65
|
+
"search_off": "search_off",
|
|
66
|
+
"search": "search",
|
|
67
|
+
"share": "share",
|
|
68
|
+
"support_agent": "support_agent",
|
|
69
|
+
"system_update": "system_update",
|
|
70
|
+
"twitter": "twitter",
|
|
71
|
+
"user_policy": "user_policy",
|
|
72
|
+
"view_list": "view_list",
|
|
73
|
+
"vip": "vip",
|
|
74
|
+
"visibility_off": "visibility_off",
|
|
75
|
+
"visibility": "visibility",
|
|
76
|
+
"volume_off": "volume_off",
|
|
77
|
+
"volume_up": "volume_up",
|
|
78
|
+
"wifi_off": "wifi_off"
|
|
79
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"expressive-heading01regular": "'expressive-heading01regular'",
|
|
3
|
+
"expressive-heading01semibold": "'expressive-heading01semibold'",
|
|
4
|
+
"expressive-heading01bold": "'expressive-heading01bold'",
|
|
5
|
+
"expressive-heading01italicregular": "'expressive-heading01italicregular'",
|
|
6
|
+
"expressive-heading01italicsemibold": "'expressive-heading01italicsemibold'",
|
|
7
|
+
"expressive-heading01italicbold": "'expressive-heading01italicbold'",
|
|
8
|
+
"expressive-heading02regular": "'expressive-heading02regular'",
|
|
9
|
+
"expressive-heading02semibold": "'expressive-heading02semibold'",
|
|
10
|
+
"expressive-heading02bold": "'expressive-heading02bold'",
|
|
11
|
+
"expressive-heading02italicregular": "'expressive-heading02italicregular'",
|
|
12
|
+
"expressive-heading02italicsemibold": "'expressive-heading02italicsemibold'",
|
|
13
|
+
"expressive-heading02italicbold": "'expressive-heading02italicbold'",
|
|
14
|
+
"expressive-heading03regular": "'expressive-heading03regular'",
|
|
15
|
+
"expressive-heading03semibold": "'expressive-heading03semibold'",
|
|
16
|
+
"expressive-heading03bold": "'expressive-heading03bold'",
|
|
17
|
+
"expressive-heading03italicregular": "'expressive-heading03italicregular'",
|
|
18
|
+
"expressive-heading03italicsemibold": "'expressive-heading03italicsemibold'",
|
|
19
|
+
"expressive-heading03italicbold": "'expressive-heading03italicbold'",
|
|
20
|
+
"expressive-heading04regular": "'expressive-heading04regular'",
|
|
21
|
+
"expressive-heading04semibold": "'expressive-heading04semibold'",
|
|
22
|
+
"expressive-heading04bold": "'expressive-heading04bold'",
|
|
23
|
+
"expressive-heading04italicregular": "'expressive-heading04italicregular'",
|
|
24
|
+
"expressive-heading04italicsemibold": "'expressive-heading04italicsemibold'",
|
|
25
|
+
"expressive-heading04italicbold": "'expressive-heading04italicbold'",
|
|
26
|
+
"expressive-heading05regular": "'expressive-heading05regular'",
|
|
27
|
+
"expressive-heading05semibold": "'expressive-heading05semibold'",
|
|
28
|
+
"expressive-heading05bold": "'expressive-heading05bold'",
|
|
29
|
+
"expressive-heading05italicregular": "'expressive-heading05italicregular'",
|
|
30
|
+
"expressive-heading05italicsemibold": "'expressive-heading05italicsemibold'",
|
|
31
|
+
"expressive-heading05italicbold": "'expressive-heading05italicbold'",
|
|
32
|
+
"functional-heading01regular": "'functional-heading01regular'",
|
|
33
|
+
"functional-heading01semibold": "'functional-heading01semibold'",
|
|
34
|
+
"functional-heading01bold": "'functional-heading01bold'",
|
|
35
|
+
"functional-heading02regular": "'functional-heading02regular'",
|
|
36
|
+
"functional-heading02semibold": "'functional-heading02semibold'",
|
|
37
|
+
"functional-heading02bold": "'functional-heading02bold'",
|
|
38
|
+
"functional-heading03regular": "'functional-heading03regular'",
|
|
39
|
+
"functional-heading03semibold": "'functional-heading03semibold'",
|
|
40
|
+
"functional-heading03bold": "'functional-heading03bold'",
|
|
41
|
+
"functional-heading04regular": "'functional-heading04regular'",
|
|
42
|
+
"functional-heading04semibold": "'functional-heading04semibold'",
|
|
43
|
+
"functional-heading04bold": "'functional-heading04bold'",
|
|
44
|
+
"functional-heading05regular": "'functional-heading05regular'",
|
|
45
|
+
"functional-heading05semibold": "'functional-heading05semibold'",
|
|
46
|
+
"functional-heading05bold": "'functional-heading05bold'",
|
|
47
|
+
"expressive-preamble01regular": "'expressive-preamble01regular'",
|
|
48
|
+
"expressive-preamble01semibold": "'expressive-preamble01semibold'",
|
|
49
|
+
"expressive-preamble01bold": "'expressive-preamble01bold'",
|
|
50
|
+
"expressive-preamble01italicregular": "'expressive-preamble01italicregular'",
|
|
51
|
+
"expressive-preamble01italicsemibold": "'expressive-preamble01italicsemibold'",
|
|
52
|
+
"expressive-preamble01italicbold": "'expressive-preamble01italicbold'",
|
|
53
|
+
"expressive-body01regular": "'expressive-body01regular'",
|
|
54
|
+
"expressive-body01semibold": "'expressive-body01semibold'",
|
|
55
|
+
"expressive-body01bold": "'expressive-body01bold'",
|
|
56
|
+
"expressive-body01italicregular": "'expressive-body01italicregular'",
|
|
57
|
+
"expressive-body01italicsemibold": "'expressive-body01italicsemibold'",
|
|
58
|
+
"expressive-body01italicbold": "'expressive-body01italicbold'",
|
|
59
|
+
"expressive-body02regular": "'expressive-body02regular'",
|
|
60
|
+
"expressive-body02semibold": "'expressive-body02semibold'",
|
|
61
|
+
"expressive-body02bold": "'expressive-body02bold'",
|
|
62
|
+
"expressive-body02italicregular": "'expressive-body02italicregular'",
|
|
63
|
+
"expressive-body02italicsemibold": "'expressive-body02italicsemibold'",
|
|
64
|
+
"expressive-body02italicbold": "'expressive-body02italicbold'",
|
|
65
|
+
"functional-body01regular": "'functional-body01regular'",
|
|
66
|
+
"functional-body01semibold": "'functional-body01semibold'",
|
|
67
|
+
"functional-body01bold": "'functional-body01bold'",
|
|
68
|
+
"functional-body02regular": "'functional-body02regular'",
|
|
69
|
+
"functional-body02semibold": "'functional-body02semibold'",
|
|
70
|
+
"functional-body02bold": "'functional-body02bold'",
|
|
71
|
+
"functional-body03regular": "'functional-body03regular'",
|
|
72
|
+
"functional-body03semibold": "'functional-body03semibold'",
|
|
73
|
+
"functional-body03bold": "'functional-body03bold'",
|
|
74
|
+
"functional-meta01regular": "'functional-meta01regular'",
|
|
75
|
+
"functional-meta01semibold": "'functional-meta01semibold'",
|
|
76
|
+
"functional-meta01bold": "'functional-meta01bold'",
|
|
77
|
+
"functional-meta02regular": "'functional-meta02regular'",
|
|
78
|
+
"functional-meta02semibold": "'functional-meta02semibold'",
|
|
79
|
+
"functional-meta02bold": "'functional-meta02bold'",
|
|
80
|
+
"detailstandard-button": "'detailstandard-button'",
|
|
81
|
+
"detailbottom-nav": "'detailbottom-nav'",
|
|
82
|
+
"detaildropcap": "'detaildropcap'",
|
|
83
|
+
"detailstandard-button-small": "'detailstandard-button-small'",
|
|
84
|
+
"detailarticle-label": "'detailarticle-label'",
|
|
85
|
+
"detailmedryckare": "'detailmedryckare'",
|
|
86
|
+
"detailbaota-xl-label": "'detailbaota-xl-label'",
|
|
87
|
+
"detailarticle-standard": "'detailarticle-standard'",
|
|
88
|
+
"detailarticle-opinion": "'detailarticle-opinion'",
|
|
89
|
+
"detailarticle-longread": "'detailarticle-longread'",
|
|
90
|
+
"detailarticle-longread-premium": "'detailarticle-longread-premium'",
|
|
91
|
+
"detailarticle-quote": "'detailarticle-quote'"
|
|
92
|
+
}
|
package/.stylelintignore
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
foundations/variables/
|
package/.stylelintrc.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{% from '@bonniernews/dn-design-system-web/components/teaser-dot/teaser-dot.njk' import TeaserDot %}
|
|
2
|
-
{% from '@bonniernews/dn-design-system-web/foundations/icons/grade-icon.njk' import GetGrade %}
|
|
3
|
-
|
|
4
|
-
{% macro getDotOrGrade(params) %}
|
|
5
|
-
{% set gradeHtml = GetGrade({ grade: params.grade, type: "single" }) | trim if params.grade else "" %}
|
|
6
|
-
{{ gradeHtml if gradeHtml.length else TeaserDot({ flashing: params.flashing }) }}
|
|
7
|
-
{% endmacro %}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
@use "sass:list";
|
|
2
|
-
@use 'sass:map';
|
|
3
|
-
|
|
4
|
-
@function getSources($sourceMap) {
|
|
5
|
-
$results: ();
|
|
6
|
-
@each $value in $sourceMap {
|
|
7
|
-
$results: list.append(
|
|
8
|
-
$results,
|
|
9
|
-
url("~@bonniernews/dn-designsystem-foundations/src/typography/fonts/web/" + map.get(
|
|
10
|
-
$value,
|
|
11
|
-
file
|
|
12
|
-
))
|
|
13
|
-
format("#{map.get($value, format)}"),
|
|
14
|
-
comma
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
@return $results;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@mixin generateFontDefinitions($font) {
|
|
21
|
-
@each $fontDefinition in $font {
|
|
22
|
-
@font-face {
|
|
23
|
-
font-family: map.get($fontDefinition, fontFamily);
|
|
24
|
-
src: getSources(map.get($fontDefinition, sources));
|
|
25
|
-
font-weight: map.get($fontDefinition, fontWeight);
|
|
26
|
-
@if map.get($fontDefinition, fontStyle) {
|
|
27
|
-
font-style: map.get($fontDefinition, fontStyle);
|
|
28
|
-
}
|
|
29
|
-
font-display: map.get($fontDefinition, fontDisplay);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|