@bonniernews/dn-design-system-web 21.2.1-beta.0 → 22.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.
Files changed (112) hide show
  1. package/CHANGELOG.md +77 -29
  2. package/assets/teaser/teaser.scss +1 -32
  3. package/components/footer/README-NJK.md +75 -0
  4. package/components/footer/README.md +184 -71
  5. package/components/game-header/README.md +12 -36
  6. package/components/group-header/group-header.scss +1 -1
  7. package/components/spinner/README-NJK.md +37 -0
  8. package/components/spinner/README.md +10 -33
  9. package/components/teaser-image/teaser-image.scss +1 -1
  10. package/components/teaser-large/README.md +0 -1
  11. package/components/teaser-large/teaser-large.njk +4 -14
  12. package/components/teaser-large/teaser-large.scss +0 -16
  13. package/components/teaser-list-vertical/teaser-list-vertical.njk +1 -0
  14. package/components/teaser-native/teaser-native.njk +3 -5
  15. package/components/teaser-native/teaser-native.scss +6 -0
  16. package/components/teaser-onsite/README.md +8 -1
  17. package/components/teaser-onsite/teaser-onsite.njk +1 -5
  18. package/components/teaser-package/teaser-package.scss +6 -17
  19. package/components/teaser-slideshow/teaser-slideshow.scss +1 -1
  20. package/components/teaser-split/README.md +0 -1
  21. package/components/teaser-split/teaser-split.njk +3 -7
  22. package/components/teaser-split/teaser-split.scss +1 -3
  23. package/components/teaser-standard/README.md +0 -1
  24. package/components/teaser-standard/teaser-standard.njk +4 -8
  25. package/components/teaser-standard/teaser-standard.scss +6 -5
  26. package/foundations/helpers/colors.scss +6 -1
  27. package/foundations/variables/colorsCssVariables.scss +0 -4
  28. package/foundations/variables/colorsDnDarkTokens.scss +60 -64
  29. package/foundations/variables/colorsDnLightTokens.scss +51 -55
  30. package/foundations/variables/metrics.scss +1 -2
  31. package/foundations/variables/typographyFontWeight.scss +0 -1
  32. package/foundations/variables/typographyTokensList.scss +0 -1
  33. package/foundations/variables/typographyTokensScreenExtraLarge.scss +4 -11
  34. package/foundations/variables/typographyTokensScreenLarge.scss +3 -10
  35. package/foundations/variables/typographyTokensScreenSmall.scss +6 -13
  36. package/index.d.ts +4 -0
  37. package/package.json +4 -22
  38. package/preact/components/divider/divider.js +21 -0
  39. package/preact/components/divider/divider.js.map +7 -0
  40. package/preact/components/footer/footer.d.ts +33 -0
  41. package/preact/components/footer/footer.js +68 -0
  42. package/preact/components/footer/footer.js.map +7 -0
  43. package/preact/components/footer/logoWithPayoff.d.ts +1 -0
  44. package/preact/components/footer/logoWithPayoff.js +15 -0
  45. package/preact/components/footer/logoWithPayoff.js.map +7 -0
  46. package/preact/components/game-header/game-header.d.ts +18 -0
  47. package/preact/components/game-header/game-header.js +29 -0
  48. package/preact/components/game-header/game-header.js.map +7 -0
  49. package/preact/components/icon-sprite/icon-sprite.d.ts +18 -0
  50. package/preact/components/icon-sprite/icon-sprite.js +132 -0
  51. package/preact/components/icon-sprite/icon-sprite.js.map +7 -0
  52. package/preact/components/icon-with-wrapper/icon-with-wrapper.d.ts +23 -0
  53. package/{tokens-tmp/colors-css-variables.json → preact/components/icon-with-wrapper/icon-with-wrapper.js} +50 -6
  54. package/preact/components/icon-with-wrapper/icon-with-wrapper.js.map +7 -0
  55. package/preact/components/pictogram/pictogram.d.ts +17 -0
  56. package/preact/components/pictogram/pictogram.js +39 -0
  57. package/preact/components/pictogram/pictogram.js.map +7 -0
  58. package/preact/components/quote/quote.js +22 -0
  59. package/preact/components/quote/quote.js.map +7 -0
  60. package/preact/components/spinner/spinner.d.ts +16 -0
  61. package/preact/components/spinner/spinner.js +24 -0
  62. package/preact/components/spinner/spinner.js.map +7 -0
  63. package/preact/components/teaser-card/teaser-card.js +25 -0
  64. package/preact/components/teaser-card/teaser-card.js.map +7 -0
  65. package/preact/components/teaser-onsite/teaser-onsite.js +56 -0
  66. package/preact/components/teaser-onsite/teaser-onsite.js.map +7 -0
  67. package/preact/components/thematic-break/thematic-break.js +20 -0
  68. package/preact/components/thematic-break/thematic-break.js.map +7 -0
  69. package/preact/helpers/formatClassString.d.ts +1 -0
  70. package/tokens/colors-css-variables.json +1 -5
  71. package/tokens/colors-dark-mode.json +60 -64
  72. package/tokens/colors-light-mode.json +53 -57
  73. package/tokens/typography-list.json +0 -1
  74. package/tsconfig.json +3 -2
  75. package/types-lib/ds-color.d.ts +100 -0
  76. package/types-lib/ds-icon.d.ts +96 -0
  77. package/variables/colors-css-variables.json +18 -27
  78. package/.release-it-beta.cjs +0 -25
  79. package/.release-it.cjs +0 -39
  80. package/components/divider/divider.tsx +0 -28
  81. package/components/quote/quote.tsx +0 -34
  82. package/components/teaser-breaking/README-UXD.md +0 -0
  83. package/components/teaser-breaking/README.md +0 -46
  84. package/components/teaser-breaking/teaser-breaking.njk +0 -46
  85. package/components/teaser-breaking/teaser-breaking.scss +0 -52
  86. package/components/teaser-card/teaser-card.tsx +0 -44
  87. package/components/teaser-onsite/teaser-onsite.tsx +0 -43
  88. package/components/thematic-break/thematic-break.tsx +0 -27
  89. package/helpers/teaser.tsx +0 -32
  90. package/index.tsx +0 -8
  91. package/preact/components.cjs +0 -68
  92. package/preact/components.cjs.map +0 -7
  93. package/preact/components.esm.js +0 -45
  94. package/preact/components.esm.js.map +0 -7
  95. package/preact/index.d.ts +0 -6
  96. package/react/components/divider/divider.d.ts +0 -14
  97. package/react/components/quote/quote.d.ts +0 -16
  98. package/react/components/teaser-card/teaser-card.d.ts +0 -17
  99. package/react/components/teaser-onsite/teaser-onsite.d.ts +0 -23
  100. package/react/components/thematic-break/thematic-break.d.ts +0 -13
  101. package/react/components.cjs +0 -68
  102. package/react/components.cjs.map +0 -7
  103. package/react/components.esm.js +0 -45
  104. package/react/components.esm.js.map +0 -7
  105. package/react/index.d.ts +0 -6
  106. package/tokens-tmp/shadows-css-variables.json +0 -6
  107. package/tokens-tmp/spacing-base-list.json +0 -14
  108. package/tokens-tmp/spacing-detail-list.json +0 -18
  109. package/tsconfig-preact.json +0 -12
  110. package/tsconfig-react.json +0 -11
  111. /package/components/icon-sprite/{README.md → README-NJK.md} +0 -0
  112. /package/components/pictogram/{README.md → README-NJK.md} +0 -0
@@ -3,98 +3,94 @@
3
3
  "primary": "#050505",
4
4
  "primary-02": "#666666",
5
5
  "secondary": "#ffffff",
6
- "critical": "#da000d",
6
+ "critical": "#DA000D",
7
7
  "disabled": "#666666",
8
8
  "on-brand": "#ffffff",
9
9
  "on-business": "#ffffff",
10
10
  "on-critical": "#ffffff",
11
11
  "on-success": "#ffffff",
12
- "brand": "#da000d",
13
- "body-link": "#4373ce",
14
- "body-link-visited": "#4373ce",
15
- "positive": "#3a8352",
16
- "culture": "#227ac3"
12
+ "brand": "#DA000D",
13
+ "body-link": "#4373CE",
14
+ "body-link-visited": "#4373CE",
15
+ "positive": "#3A8352"
17
16
  },
18
17
  "icon": {
19
18
  "primary": "#050505",
20
19
  "primary-02": "#666666",
21
20
  "secondary": "#ffffff",
22
- "critical": "#da000d",
21
+ "critical": "#DA000D",
23
22
  "disabled": "#666666",
24
23
  "on-brand": "#ffffff",
25
24
  "on-business": "#ffffff",
26
- "brand": "#da000d",
25
+ "brand": "#DA000D",
27
26
  "on-critical": "#ffffff",
28
- "on-success": "#ffffff",
29
- "culture": "#227ac3"
27
+ "on-success": "#ffffff"
30
28
  },
31
29
  "component": {
32
- "brand": "#da000d",
33
- "business": "#3a8352",
30
+ "brand": "#DA000D",
31
+ "business": "#3A8352",
34
32
  "primary": "#141414",
35
- "primary-overlay": "rgba(8, 8, 8, 0.13)",
36
- "primary-overlay-02": "rgba(8, 8, 8, 0.2)",
33
+ "primary-overlay": "#08080821",
34
+ "primary-overlay-02": "#08080833",
37
35
  "secondary": "#ffffff",
38
- "secondary-overlay": "rgba(255, 255, 255, 0.13)",
39
- "secondary-overlay-02": "rgba(255, 255, 255, 0.2)",
40
- "critical": "#ea3e3f",
41
- "critical-overlay": "#a51d24",
36
+ "secondary-overlay": "#ffffff21",
37
+ "secondary-overlay-02": "#ffffff33",
38
+ "critical": "#EA3E3F",
39
+ "critical-overlay": "#A51D24",
42
40
  "static-white": "#ffffff",
43
- "positive": "#3a8352",
44
- "primary-02": "#cfcfcf"
41
+ "positive": "#3A8352",
42
+ "primary-02": "#CFCFCF"
45
43
  },
46
44
  "surface": {
47
- "below": "#f2f2f2",
48
- "native-article": "#ededed",
45
+ "below": "#EDEDED",
46
+ "native-article": "#EDEDED",
49
47
  "background": "#ffffff",
50
- "raised": "#ededed",
48
+ "raised": "#EDEDED",
51
49
  "elevated": "#ffffff",
52
- "overlay": "rgba(5, 5, 5, 0.5)",
53
- "quiz": "#ea3e3f",
54
- "korsord": "#8bb6e8",
55
- "sudoko": "#90d0bd",
56
- "brand": "#da000d",
57
- "inverted": "#141414",
58
- "breaking": "#300407"
50
+ "overlay": "#05050580",
51
+ "quiz": "#EA3E3F",
52
+ "korsord": "#8BB6E8",
53
+ "sudoko": "#90D0BD",
54
+ "brand": "#DA000D",
55
+ "inverted": "#141414"
59
56
  },
60
57
  "border": {
61
- "primary": "rgba(5, 5, 5, 0.13)",
62
- "primary-02": "rgba(8, 8, 8, 0.4)",
58
+ "primary": "#08080821",
59
+ "primary-02": "#08080866",
63
60
  "primary-03": "#050505",
64
61
  "secondary": "#ffffff",
65
- "business": "#3a8352",
66
- "critical": "#da000d",
67
- "focus": "#da000d",
62
+ "business": "#3A8352",
63
+ "critical": "#DA000D",
64
+ "focus": "#DA000D",
68
65
  "focus-02": "#141414",
69
- "focus-03": "#da000d",
70
- "focus-04": "#3a8352",
71
- "brand": "#da000d",
72
- "culture": "#227ac3"
66
+ "focus-03": "#DA000D",
67
+ "focus-04": "#3A8352",
68
+ "brand": "#DA000D"
73
69
  },
74
70
  "background": {
75
71
  "primary": "#ffffff"
76
72
  },
77
73
  "static": {
78
- "red-100": "#fad4d4",
74
+ "red-100": "#FAD4D4",
79
75
  "black": "#141414",
80
- "transparent-black": "rgba(20, 20, 20, 0.6)",
76
+ "transparent-black": "#14141499",
81
77
  "white": "#ffffff",
82
- "transparent-white": "rgba(255, 255, 255, 0.5)",
83
- "green-100": "#cee4d6",
84
- "red-300": "#ef7171",
85
- "transparent-white-10": "rgba(255, 255, 255, 0.13)",
86
- "kultur": "#568cbb",
87
- "economy": "#60bca1",
88
- "sport": "#f58d2d",
89
- "neutral-200": "#e0e0e0",
90
- "sthlm": "#ff589b",
91
- "ad-yellow": "#ffeac2",
92
- "neutral-100": "#ededed",
93
- "neutral-500": "#9e9e9e",
94
- "red-500": "#da000d",
95
- "yellow": "#ffe600",
96
- "red-200": "#f6acad",
97
- "red-0": "#fce8e8"
78
+ "transparent-white": "#ffffff80",
79
+ "green-100": "#CEE4D6",
80
+ "red-300": "#EF7171",
81
+ "transparent-white-10": "#ffffff21",
82
+ "kultur": "#568CBB",
83
+ "economy": "#60BCA1",
84
+ "sport": "#F58D2D",
85
+ "neutral-200": "#E0E0E0",
86
+ "sthlm": "#FF589B",
87
+ "ad-yellow": "#FFEAC2",
88
+ "neutral-100": "#EDEDED",
89
+ "neutral-500": "#9E9E9E",
90
+ "red-500": "#DA000D",
91
+ "yellow": "#FFE600",
92
+ "red-200": "#F6ACAD",
93
+ "red-0": "#FCE8E8"
98
94
  },
99
95
  "gradient": {
100
96
  "content-fade-left": "linear-gradient(90deg, #ffffff00 0%, #ffffff 100%)",
@@ -16,7 +16,6 @@
16
16
  "detailteaser-standard-compact": "'detailteaser-standard-compact'",
17
17
  "detailteaser-standard-compact-opinion": "'detailteaser-standard-compact-opinion'",
18
18
  "detailteaser-large": "'detailteaser-large'",
19
- "detailteaser-breaking": "'detailteaser-breaking'",
20
19
  "detailteaser-large-opinion": "'detailteaser-large-opinion'",
21
20
  "detailteaser-large-storRubrik": "'detailteaser-large-storRubrik'",
22
21
  "detailteaser-standard": "'detailteaser-standard'",
package/tsconfig.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "extends": "@bonniernews/tsconfig",
3
- "include": ["index.tsx", "components/**/*.tsx"] ,
3
+ "include": ["components/**/*.tsx", "types-lib/**/*.ts", "index.d.ts"],
4
4
  "compilerOptions": {
5
5
  "moduleResolution": "Bundler",
6
6
  "allowJs": true,
@@ -9,7 +9,8 @@
9
9
  "rootDir": "./",
10
10
  "allowUmdGlobalAccess": true,
11
11
  "typeRoots": [
12
- "node_modules/@types"
12
+ "node_modules/@types",
13
+ "types-lib/*.ts"
13
14
  ],
14
15
  "jsx": "react-jsx",
15
16
  "jsxFactory": "",
@@ -0,0 +1,100 @@
1
+ export enum DsColorEnum {
2
+ "text-primary" = "text-primary",
3
+ "text-primary-02" = "text-primary-02",
4
+ "text-secondary" = "text-secondary",
5
+ "text-critical" = "text-critical",
6
+ "text-disabled" = "text-disabled",
7
+ "text-on-brand" = "text-on-brand",
8
+ "text-on-business" = "text-on-business",
9
+ "text-on-critical" = "text-on-critical",
10
+ "text-on-success" = "text-on-success",
11
+ "text-brand" = "text-brand",
12
+ "text-body-link" = "text-body-link",
13
+ "text-body-link-visited" = "text-body-link-visited",
14
+ "text-positive" = "text-positive",
15
+ "icon-primary" = "icon-primary",
16
+ "icon-primary-02" = "icon-primary-02",
17
+ "icon-secondary" = "icon-secondary",
18
+ "icon-critical" = "icon-critical",
19
+ "icon-disabled" = "icon-disabled",
20
+ "icon-on-brand" = "icon-on-brand",
21
+ "icon-on-business" = "icon-on-business",
22
+ "icon-brand" = "icon-brand",
23
+ "icon-on-critical" = "icon-on-critical",
24
+ "icon-on-success" = "icon-on-success",
25
+ "component-brand" = "component-brand",
26
+ "component-business" = "component-business",
27
+ "component-primary" = "component-primary",
28
+ "component-primary-overlay" = "component-primary-overlay",
29
+ "component-primary-overlay-02" = "component-primary-overlay-02",
30
+ "component-secondary" = "component-secondary",
31
+ "component-secondary-overlay" = "component-secondary-overlay",
32
+ "component-secondary-overlay-02" = "component-secondary-overlay-02",
33
+ "component-critical" = "component-critical",
34
+ "component-critical-overlay" = "component-critical-overlay",
35
+ "component-static-white" = "component-static-white",
36
+ "component-positive" = "component-positive",
37
+ "component-primary-02" = "component-primary-02",
38
+ "surface-below" = "surface-below",
39
+ "surface-native-article" = "surface-native-article",
40
+ "surface-background" = "surface-background",
41
+ "surface-raised" = "surface-raised",
42
+ "surface-elevated" = "surface-elevated",
43
+ "surface-overlay" = "surface-overlay",
44
+ "surface-quiz" = "surface-quiz",
45
+ "surface-korsord" = "surface-korsord",
46
+ "surface-sudoko" = "surface-sudoko",
47
+ "surface-brand" = "surface-brand",
48
+ "surface-inverted" = "surface-inverted",
49
+ "border-primary" = "border-primary",
50
+ "border-primary-02" = "border-primary-02",
51
+ "border-primary-03" = "border-primary-03",
52
+ "border-secondary" = "border-secondary",
53
+ "border-business" = "border-business",
54
+ "border-critical" = "border-critical",
55
+ "border-focus" = "border-focus",
56
+ "border-focus-02" = "border-focus-02",
57
+ "border-focus-03" = "border-focus-03",
58
+ "border-focus-04" = "border-focus-04",
59
+ "border-brand" = "border-brand",
60
+ "background-primary" = "background-primary",
61
+ "static-red-100" = "static-red-100",
62
+ "static-black" = "static-black",
63
+ "static-transparent-black" = "static-transparent-black",
64
+ "static-white" = "static-white",
65
+ "static-transparent-white" = "static-transparent-white",
66
+ "static-green-100" = "static-green-100",
67
+ "static-red-300" = "static-red-300",
68
+ "static-transparent-white-10" = "static-transparent-white-10",
69
+ "static-kultur" = "static-kultur",
70
+ "static-economy" = "static-economy",
71
+ "static-sport" = "static-sport",
72
+ "static-neutral-200" = "static-neutral-200",
73
+ "static-sthlm" = "static-sthlm",
74
+ "static-ad-yellow" = "static-ad-yellow",
75
+ "static-neutral-100" = "static-neutral-100",
76
+ "static-neutral-500" = "static-neutral-500",
77
+ "static-red-500" = "static-red-500",
78
+ "static-yellow" = "static-yellow",
79
+ "static-red-200" = "static-red-200",
80
+ "static-red-0" = "static-red-0",
81
+ "gradient-content-fade-left" = "gradient-content-fade-left",
82
+ "gradient-content-fade-right" = "gradient-content-fade-right",
83
+ "gradient-content-fade-up" = "gradient-content-fade-up",
84
+ "gradient-content-fade-down" = "gradient-content-fade-down"
85
+ }
86
+ export type DsColor = keyof typeof DsColorEnum;
87
+
88
+ export enum DsColorIconEnum {
89
+ "icon-primary" = "icon-primary",
90
+ "icon-primary-02" = "icon-primary-02",
91
+ "icon-secondary" = "icon-secondary",
92
+ "icon-critical" = "icon-critical",
93
+ "icon-disabled" = "icon-disabled",
94
+ "icon-on-brand" = "icon-on-brand",
95
+ "icon-on-business" = "icon-on-business",
96
+ "icon-brand" = "icon-brand",
97
+ "icon-on-critical" = "icon-on-critical",
98
+ "icon-on-success" = "icon-on-success"
99
+ }
100
+ export type DsColorIcon = keyof typeof DsColorIconEnum;
@@ -0,0 +1,96 @@
1
+ export enum DsIconEnum {
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_down" = "chevron_down",
17
+ "chevron_left" = "chevron_left",
18
+ "chevron_right" = "chevron_right",
19
+ "close" = "close",
20
+ "comment" = "comment",
21
+ "delete" = "delete",
22
+ "download" = "download",
23
+ "edit" = "edit",
24
+ "expand_less" = "expand_less",
25
+ "expand_more" = "expand_more",
26
+ "facebook" = "facebook",
27
+ "favorite-filled" = "favorite-filled",
28
+ "favorite" = "favorite",
29
+ "feed" = "feed",
30
+ "feedback" = "feedback",
31
+ "filter_list" = "filter_list",
32
+ "filter_none" = "filter_none",
33
+ "format_size" = "format_size",
34
+ "forward_10" = "forward_10",
35
+ "forward_30" = "forward_30",
36
+ "grid_view" = "grid_view",
37
+ "headphones-filled" = "headphones-filled",
38
+ "headphones" = "headphones",
39
+ "history" = "history",
40
+ "home-filled" = "home-filled",
41
+ "home" = "home",
42
+ "info-filled" = "info-filled",
43
+ "info" = "info",
44
+ "instagram" = "instagram",
45
+ "integrity" = "integrity",
46
+ "ios_share" = "ios_share",
47
+ "link" = "link",
48
+ "lock" = "lock",
49
+ "login" = "login",
50
+ "logout" = "logout",
51
+ "mail" = "mail",
52
+ "manage_accounts-filled" = "manage_accounts-filled",
53
+ "manage_accounts" = "manage_accounts",
54
+ "mark_email_unread" = "mark_email_unread",
55
+ "memory" = "memory",
56
+ "menu-filled" = "menu-filled",
57
+ "menu" = "menu",
58
+ "mode_comment" = "mode_comment",
59
+ "more_horiz" = "more_horiz",
60
+ "mystery" = "mystery",
61
+ "newsmode" = "newsmode",
62
+ "notifications" = "notifications",
63
+ "pause" = "pause",
64
+ "person" = "person",
65
+ "play_arrow-filled" = "play_arrow-filled",
66
+ "play_arrow" = "play_arrow",
67
+ "print" = "print",
68
+ "priority_high" = "priority_high",
69
+ "push_pin" = "push_pin",
70
+ "queue_music" = "queue_music",
71
+ "quiz" = "quiz",
72
+ "radio_button_checked" = "radio_button_checked",
73
+ "radio_button_unchecked" = "radio_button_unchecked",
74
+ "redeem" = "redeem",
75
+ "refresh" = "refresh",
76
+ "replay_10" = "replay_10",
77
+ "replay_30" = "replay_30",
78
+ "schedule_filled" = "schedule_filled",
79
+ "schedule" = "schedule",
80
+ "search_off" = "search_off",
81
+ "search" = "search",
82
+ "share" = "share",
83
+ "support_agent" = "support_agent",
84
+ "system_update" = "system_update",
85
+ "twitter" = "twitter",
86
+ "user_policy" = "user_policy",
87
+ "view_list" = "view_list",
88
+ "vip" = "vip",
89
+ "visibility_off" = "visibility_off",
90
+ "visibility" = "visibility",
91
+ "volume_off" = "volume_off",
92
+ "volume_up" = "volume_up",
93
+ "wifi_off" = "wifi_off",
94
+ "x" = "x"
95
+ }
96
+ export type DsIcon = keyof typeof DsIconEnum;
@@ -7,15 +7,17 @@
7
7
  "surface-primaryinvert-raised": "var(--ds-color-surface-primaryinvert-raised)",
8
8
  "surface-primaryinvert-elevated": "var(--ds-color-surface-primaryinvert-elevated)",
9
9
  "surface-brand": "var(--ds-color-surface-brand)",
10
+ "surface-culture": "var(--ds-color-surface-culture)",
10
11
  "surface-breaking": "var(--ds-color-surface-breaking)",
11
12
  "surface-overlay": "var(--ds-color-surface-overlay)",
12
- "border-brand": "var(--ds-color-border-brand)",
13
13
  "border-primary": "var(--ds-color-border-primary)",
14
14
  "border-primary-strong": "var(--ds-color-border-primary-strong)",
15
15
  "border-primary-strongest": "var(--ds-color-border-primary-strongest)",
16
16
  "border-primaryinvert": "var(--ds-color-border-primaryinvert)",
17
17
  "border-primaryinvert-strong": "var(--ds-color-border-primaryinvert-strong)",
18
18
  "border-primaryinvert-strongest": "var(--ds-color-border-primaryinvert-strongest)",
19
+ "border-brand": "var(--ds-color-border-brand)",
20
+ "border-culture": "var(--ds-color-border-culture)",
19
21
  "text-primary": "var(--ds-color-text-primary)",
20
22
  "text-primary-subtle": "var(--ds-color-text-primary-subtle)",
21
23
  "text-primary-disabled": "var(--ds-color-text-primary-disabled)",
@@ -23,6 +25,7 @@
23
25
  "text-primaryinvert-subtle": "var(--ds-color-text-primaryinvert-subtle)",
24
26
  "text-primaryinvert-disabled": "var(--ds-color-text-primaryinvert-disabled)",
25
27
  "text-brand": "var(--ds-color-text-brand)",
28
+ "text-culture": "var(--ds-color-text-culture)",
26
29
  "text-critical": "var(--ds-color-text-critical)",
27
30
  "text-on-brand": "var(--ds-color-text-on-brand)",
28
31
  "text-body-link": "var(--ds-color-text-body-link)",
@@ -51,38 +54,26 @@
51
54
  "culture-900": "var(--ds-color-culture-900)",
52
55
  "culture-1000": "var(--ds-color-culture-1000)",
53
56
  "culture-1100": "var(--ds-color-culture-1100)",
54
- "sport-0": "var(--ds-color-sport-0)",
55
- "sport-100": "var(--ds-color-sport-100)",
56
- "sport-200": "var(--ds-color-sport-200)",
57
- "sport-300": "var(--ds-color-sport-300)",
58
- "sport-400": "var(--ds-color-sport-400)",
59
- "sport-500": "var(--ds-color-sport-500)",
60
- "sport-600": "var(--ds-color-sport-600)",
61
- "sport-700": "var(--ds-color-sport-700)",
62
- "sport-800": "var(--ds-color-sport-800)",
63
- "sport-900": "var(--ds-color-sport-900)",
64
- "sport-1000": "var(--ds-color-sport-1000)",
65
- "sport-1100": "var(--ds-color-sport-1100)",
66
- "bright-neutral-0": "var(--ds-color-bright-neutral-0)",
67
- "bright-neutral-100": "var(--ds-color-bright-neutral-100)",
68
- "bright-neutral-200": "var(--ds-color-bright-neutral-200)",
69
- "bright-neutral-300": "var(--ds-color-bright-neutral-300)",
70
- "bright-neutral-400": "var(--ds-color-bright-neutral-400)",
71
- "bright-neutral-500": "var(--ds-color-bright-neutral-500)",
72
- "bright-neutral-050": "var(--ds-color-bright-neutral-050)",
57
+ "neutral-100": "var(--ds-color-neutral-100)",
58
+ "neutral-200": "var(--ds-color-neutral-200)",
59
+ "neutral-300": "var(--ds-color-neutral-300)",
60
+ "neutral-400": "var(--ds-color-neutral-400)",
61
+ "neutral-500": "var(--ds-color-neutral-500)",
62
+ "neutral-600": "var(--ds-color-neutral-600)",
63
+ "neutral-700": "var(--ds-color-neutral-700)",
64
+ "neutral-800": "var(--ds-color-neutral-800)",
65
+ "neutral-900": "var(--ds-color-neutral-900)",
66
+ "neutral-1000": "var(--ds-color-neutral-1000)",
67
+ "neutral-1100": "var(--ds-color-neutral-1100)",
68
+ "neutral-white": "var(--ds-color-neutral-white)",
69
+ "neutral-050": "var(--ds-color-neutral-050)",
70
+ "neutral-black": "var(--ds-color-neutral-black)",
73
71
  "bright-neutral-alpha-100": "var(--ds-color-bright-neutral-alpha-100)",
74
72
  "bright-neutral-alpha-200": "var(--ds-color-bright-neutral-alpha-200)",
75
73
  "bright-neutral-alpha-300": "var(--ds-color-bright-neutral-alpha-300)",
76
74
  "bright-neutral-alpha-400": "var(--ds-color-bright-neutral-alpha-400)",
77
75
  "bright-neutral-alpha-500": "var(--ds-color-bright-neutral-alpha-500)",
78
76
  "bright-neutral-alpha-050": "var(--ds-color-bright-neutral-alpha-050)",
79
- "dark-neutral-0": "var(--ds-color-dark-neutral-0)",
80
- "dark-neutral-100": "var(--ds-color-dark-neutral-100)",
81
- "dark-neutral-200": "var(--ds-color-dark-neutral-200)",
82
- "dark-neutral-300": "var(--ds-color-dark-neutral-300)",
83
- "dark-neutral-400": "var(--ds-color-dark-neutral-400)",
84
- "dark-neutral-500": "var(--ds-color-dark-neutral-500)",
85
- "dark-neutral-050": "var(--ds-color-dark-neutral-050)",
86
77
  "dark-neutral-alpha-100": "var(--ds-color-dark-neutral-alpha-100)",
87
78
  "dark-neutral-alpha-200": "var(--ds-color-dark-neutral-alpha-200)",
88
79
  "dark-neutral-alpha-300": "var(--ds-color-dark-neutral-alpha-300)",
@@ -1,25 +0,0 @@
1
- const version = '${version}';
2
- const packageName = process.env.npm_package_name;
3
-
4
- module.exports = {
5
- plugins: {
6
- '@release-it/conventional-changelog': {
7
- path: '.',
8
- infile: false, // Disable changelog writes on beta releases
9
- },
10
- },
11
- git: {
12
- push: true,
13
- tagName: `@bonniernews/dn-design-system-web@${version}`,
14
- commitsPath: '.',
15
- commitMessage: `chore(web): released version v${version}`,
16
- requireCommits: false
17
- },
18
- github: {
19
- "tokenRef": "GITHUB_TOKEN"
20
- },
21
- npm: {
22
- publish: false,
23
- versionArgs: ['--workspaces false'],
24
- }
25
- };
package/.release-it.cjs DELETED
@@ -1,39 +0,0 @@
1
- const version = '${version}';
2
- const packageName = process.env.npm_package_name;
3
-
4
- module.exports = {
5
- plugins: {
6
- '@release-it/conventional-changelog': {
7
- path: '.',
8
- infile: 'CHANGELOG.md',
9
- header: `# Changelog\n\nAll changes to @bonniernews/dn-design-system-web will be documented in this file.\n\n`,
10
- preset: {
11
- name: 'conventionalcommits',
12
- types: [
13
- { type: "feat", "section": "Features" },
14
- { type: "fix", "section": "Bug Fixes" },
15
- { type: "chore", "section": "Maintenance", "hidden": false },
16
- { type: "docs", "section": "Maintenance", "hidden": false },
17
- { type: "style", "section": "Maintenance", "hidden": false },
18
- { type: "refactor", "section": "Maintenance", "hidden": false },
19
- { type: "perf", "section": "Maintenance", "hidden": false },
20
- { type: "test", "section": "Maintenance", "hidden": false }
21
- ]
22
- },
23
- },
24
- },
25
- git: {
26
- push: true,
27
- tagName: `@bonniernews/dn-design-system-web@${version}`,
28
- commitsPath: '.',
29
- commitMessage: `chore(web): released version v${version}`,
30
- requireCommits: false
31
- },
32
- github: {
33
- "tokenRef": "GITHUB_TOKEN"
34
- },
35
- npm: {
36
- publish: false,
37
- versionArgs: ['--workspaces false'],
38
- }
39
- };
@@ -1,28 +0,0 @@
1
- import { formatClassString } from "@bonniernews/dn-design-system-web/helpers/formatClassString.ts";
2
-
3
- export interface DividerProps {
4
- variant?: 'soft' | 'medium' | 'hard';
5
- classNames?: string;
6
- attributes?: object;
7
- }
8
-
9
- /**
10
- * - GitHub: [BonnierNews/dn-design-system/../web/src/components/divider](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/divider)
11
- * - Storybook: [Divider](https://designsystem.dn.se/?path=/docs/basic-divider--docs)
12
- *
13
- * The component will not include styling by itself. Make sure to include the right styles for the component. See example below:
14
- * `@use '@bonniernews/dn-design-system-web/components/divider/divider.scss'`
15
- */
16
- export const Divider = ({ variant = 'soft', classNames, attributes }: DividerProps) => {
17
- const classes = formatClassString([
18
- 'ds-divider',
19
- `ds-divider--${variant}`,
20
- classNames
21
- ])
22
-
23
- return (
24
- <div className={classes} {...attributes}><hr /></div>
25
- );
26
- };
27
-
28
- export default Divider;
@@ -1,34 +0,0 @@
1
- import { formatClassString } from "@bonniernews/dn-design-system-web/helpers/formatClassString.ts";
2
-
3
- export interface QuoteProps {
4
- bodyHtml: string;
5
- theme?: 'kultur' | 'nyheter' | 'sport' | 'ekonomi' | 'sthlm';
6
- classNames?: string;
7
- /** Ex. { target: "_blank", "data-test": "lorem ipsum" } */
8
- attributes?: object;
9
- forcePx?: boolean;
10
- }
11
-
12
- /**
13
- * - GitHub: [BonnierNews/dn-design-system/../web/src/components/quote](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/quote)
14
- * - Storybook: [Quote](https://designsystem.dn.se/?path=/docs/article-quote--docs)
15
- *
16
- * The component will not include styling by itself. Make sure to include the right styles for the component. See example below:
17
- * `@use '@bonniernews/dn-design-system-web/components/quote/quote.scss'`
18
- */
19
- export const Quote = ({ bodyHtml, theme = 'nyheter', classNames, attributes, forcePx }: QuoteProps) => {
20
- const componentClassName = 'ds-quote';
21
-
22
- const classes = formatClassString([
23
- componentClassName,
24
- `ds-theme--${theme}`,
25
- forcePx && 'ds-force-px',
26
- classNames,
27
- ])
28
-
29
- const quoteHtml = `<span class="${componentClassName}__border"></span> ${bodyHtml}`
30
-
31
- return (
32
- <blockquote dangerouslySetInnerHTML={{ __html: quoteHtml }} className={classes} {...attributes} />
33
- );
34
- };
File without changes
@@ -1,46 +0,0 @@
1
- - GitHub: [BonnierNews/dn-design-system/../web/src/components/teaser-breaking](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/teaser-breaking)
2
- - Storybook: [TeaserBreaking](https://designsystem.dn.se/?path=/docs/section-teaserbreaking--docs)
3
- - Storybook (Latest): [TeaserBreaking](https://designsystem-latest.dn.se/?path=/docs/section-teaserbreaking--docs)
4
-
5
- ----
6
-
7
- # teaser-breaking
8
-
9
- This teaser never has a lock-symbol/vip-badge
10
-
11
- ## Parameters
12
-
13
- |parameter | type | required | options | default | description |
14
- |:--- | :--- | :--- | :--- | :--- | :--- |
15
- |title | String | yes | | | Heading of the teaser |
16
- |targetLink | String | yes | | | Target URL for the teaser |
17
- |areaType | String | no | "right" or "bauta" | | The area where the column is rendered |
18
- |theme | String | no | nyheter, kultur, ekonomi, sport, sthlm | (empty) | The theme-class to apply to the teaser |
19
- |text | String | no | | | Teaser subtext |
20
- |vignette | String | no | | | Top text in the teaser |
21
- |highlight | String | no | | | Text before the heading |
22
- |mediaHtml | HTML String | no | | | Main image or other media |
23
- |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
24
- |classNames | String | no | | | Ex. "my-special-class" |
25
- |~forcePx~ | | | | | Not supported |
26
-
27
- ## Minimum requirement example
28
-
29
- ### Nunjucks
30
-
31
- These are copy paste friendly examples to quickliy get started using a component.
32
-
33
- ```html
34
- {% from '@bonniernews/dn-design-system-web/components/teaser-breaking/teaser-breaking.njk' import TeaserBreaking %}
35
-
36
- {{ TeaserBreaking({
37
- title: "Upp på börsen",
38
- text: "Det ser ganska normalt ut på Stockholmsbörsen.",
39
- highlight: "Ekonominytt:"
40
- })}}
41
- ```
42
-
43
- ### SCSS
44
- ```scss
45
- @use "@bonniernews/dn-design-system-web/components/teaser-breaking/teaser-breaking" as *;
46
- ```