@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
package/CHANGELOG.md CHANGED
@@ -4,52 +4,103 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
- ## [21.1.0-beta.5](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.0-beta.4...@bonniernews/dn-design-system-web@21.1.0-beta.5) (2024-11-08)
7
+ ## [22.0.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.14...@bonniernews/dn-design-system-web@22.0.0) (2024-12-13)
8
+
9
+
10
+ ### ⚠ BREAKING CHANGES
11
+
12
+ * **foundations:** update figma variables (#1544)
13
+
14
+ ### Maintenance
15
+
16
+ * **app:** simpler Button (remove emphasis and rounded) ([#1531](https://github.com/BonnierNews/dn-design-system/issues/1531)) ([cbfe0c3](https://github.com/BonnierNews/dn-design-system/commit/cbfe0c31ffa0298071d40a0e556d7c123be7fc89))
17
+ * **deps-dev:** bump axios from 1.7.8 to 1.7.9 ([#1536](https://github.com/BonnierNews/dn-design-system/issues/1536)) ([7b1a581](https://github.com/BonnierNews/dn-design-system/commit/7b1a581d0dbe2cd2d614eb7dd8a7b18e11c2d5c6))
18
+ * **deps:** bump dotenv from 16.4.5 to 16.4.7 ([#1537](https://github.com/BonnierNews/dn-design-system/issues/1537)) ([b551c0e](https://github.com/BonnierNews/dn-design-system/commit/b551c0e489571b4791ed48d135681c652942ca46))
19
+ * **foundations:** update figma variables ([#1544](https://github.com/BonnierNews/dn-design-system/issues/1544)) ([98b5b4d](https://github.com/BonnierNews/dn-design-system/commit/98b5b4d56968c420348dd99e9d75ba3df2ec0c00))
20
+ * prerelease packages ([c1b73ef](https://github.com/BonnierNews/dn-design-system/commit/c1b73efc01a42347f8aae368cca946ba53f150c5))
21
+ * prerelease packages ([e0942fa](https://github.com/BonnierNews/dn-design-system/commit/e0942fa913cfeaa535c998875581b57fb05cfbd5))
22
+
23
+ ## [21.1.14](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.13...@bonniernews/dn-design-system-web@21.1.14) (2024-12-12)
24
+
25
+ ## [21.1.13](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.12...@bonniernews/dn-design-system-web@21.1.13) (2024-12-12)
26
+
27
+
28
+ ### Maintenance
29
+
30
+ * **deps-dev:** bump @testing-library/react-native from 12.8.1 to 12.9.0 ([#1522](https://github.com/BonnierNews/dn-design-system/issues/1522)) ([3a5f288](https://github.com/BonnierNews/dn-design-system/commit/3a5f288a75fe66326477b3dc397a9c9f0546a92f))
31
+ * **deps:** bump @emotion/react from 11.13.3 to 11.14.0 ([#1528](https://github.com/BonnierNews/dn-design-system/issues/1528)) ([1f93394](https://github.com/BonnierNews/dn-design-system/commit/1f93394eeb22e4a2a1bc70abf1089a149e093f4a))
32
+ * **deps:** bump zustand from 4.4.7 to 4.5.5 ([#1520](https://github.com/BonnierNews/dn-design-system/issues/1520)) ([5ca4877](https://github.com/BonnierNews/dn-design-system/commit/5ca487756d8216f5595e5b08eedf6be02e376fb1))
33
+ * **web:** game header tsx ([#1527](https://github.com/BonnierNews/dn-design-system/issues/1527)) ([695dd0b](https://github.com/BonnierNews/dn-design-system/commit/695dd0b899d413ac4d38c3892cabfd52e57d0c29))
34
+ * **web:** spacing with tsx ([#1526](https://github.com/BonnierNews/dn-design-system/issues/1526)) ([189d9e8](https://github.com/BonnierNews/dn-design-system/commit/189d9e879c7400f62e6ed12938770fed98bacf52))
35
+
36
+ ## [21.1.12](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.11...@bonniernews/dn-design-system-web@21.1.12) (2024-12-06)
37
+
38
+
39
+ ### Maintenance
40
+
41
+ * **web:** types for icons and colors ([#1525](https://github.com/BonnierNews/dn-design-system/issues/1525)) ([e1af15f](https://github.com/BonnierNews/dn-design-system/commit/e1af15f2dcf5f420ea67a748d061e39145c0dbbd))
42
+
43
+ ## [21.1.11](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.10...@bonniernews/dn-design-system-web@21.1.11) (2024-12-05)
44
+
45
+
46
+ ### Maintenance
47
+
48
+ * **web:** unbundle exports ([#1524](https://github.com/BonnierNews/dn-design-system/issues/1524)) ([d6ed9d1](https://github.com/BonnierNews/dn-design-system/commit/d6ed9d14bca82af7e69a6de4e0ed53b0bde937a6))
49
+
50
+ ## [21.1.10](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.9...@bonniernews/dn-design-system-web@21.1.10) (2024-12-04)
8
51
 
9
52
 
10
53
  ### Bug Fixes
11
54
 
12
- * **web:** support breaking no image ([#1492](https://github.com/BonnierNews/dn-design-system/issues/1492)) ([dbf30ca](https://github.com/BonnierNews/dn-design-system/commit/dbf30ca9420bd8bc173de127499c0260abc3990a))
55
+ * **web:** icons, including sprite and pictogram, as .tsx ([#1523](https://github.com/BonnierNews/dn-design-system/issues/1523)) ([17dc7f9](https://github.com/BonnierNews/dn-design-system/commit/17dc7f9faf88d4c86815e158267a59aad34be689))
13
56
 
14
- ## [21.1.0-beta.4](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.0-beta.3...@bonniernews/dn-design-system-web@21.1.0-beta.4) (2024-11-06)
57
+ ## [21.1.9](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.8...@bonniernews/dn-design-system-web@21.1.9) (2024-11-29)
15
58
 
16
- ## [21.1.0-beta.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.0.2...@bonniernews/dn-design-system-web@21.1.0-beta.3) (2024-11-06)
59
+
60
+ ### Bug Fixes
61
+
62
+ * **web:** remove unused grade code for teasers ([#1507](https://github.com/BonnierNews/dn-design-system/issues/1507)) ([ec97bde](https://github.com/BonnierNews/dn-design-system/commit/ec97bde80759afc5a7779a753263f7b38b4058ee))
63
+
64
+ ## [21.1.8](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.7...@bonniernews/dn-design-system-web@21.1.8) (2024-11-28)
17
65
 
18
66
 
19
67
  ### Features
20
68
 
21
- * **web:** breaking aka nivå3puff till visuella toppar ([#1450](https://github.com/BonnierNews/dn-design-system/issues/1450)) ([5adacb9](https://github.com/BonnierNews/dn-design-system/commit/5adacb9d8b1fadecd615278e63139627f3b88cb7))
22
- * **web:** nivå1puff till visuella toppar ([#1460](https://github.com/BonnierNews/dn-design-system/issues/1460)) ([7743c3b](https://github.com/BonnierNews/dn-design-system/commit/7743c3bfad040b46921e934570808b33083401ce))
23
- * **web:** one level of bauta with background color ([9184544](https://github.com/BonnierNews/dn-design-system/commit/91845447403cb2ec5a787fd64c341d620861b148))
24
- * **web:** one level of bauta with background color ([644acd6](https://github.com/BonnierNews/dn-design-system/commit/644acd6166d7385ac08c930fe725215a9e35fc80))
69
+ * **app:** support bold text accessibility setting ([#1430](https://github.com/BonnierNews/dn-design-system/issues/1430)) ([0e2ebb4](https://github.com/BonnierNews/dn-design-system/commit/0e2ebb4e3d0573e6eb57f13a93eea97d998a05d2))
25
70
 
26
71
 
27
72
  ### Bug Fixes
28
73
 
29
- * **web:** correct spacing teasers ([#1491](https://github.com/BonnierNews/dn-design-system/issues/1491)) ([b2624b8](https://github.com/BonnierNews/dn-design-system/commit/b2624b8311384d38971f82eb84e73560244a4b18))
30
- * **web:** media box sizing border box ([#1473](https://github.com/BonnierNews/dn-design-system/issues/1473)) ([48aeeca](https://github.com/BonnierNews/dn-design-system/commit/48aeecac1be293bbcb8ece678d562c26c0ec59d6))
74
+ * **web:** spinner component as .tsx ([#1510](https://github.com/BonnierNews/dn-design-system/issues/1510)) ([783531d](https://github.com/BonnierNews/dn-design-system/commit/783531d0c2feaec293396a67ea467df503bf678f))
31
75
 
32
76
 
33
77
  ### Maintenance
34
78
 
35
- * **deps-dev:** bump @babel/preset-env from 7.25.8 to 7.25.9 ([#1469](https://github.com/BonnierNews/dn-design-system/issues/1469)) ([b9a9884](https://github.com/BonnierNews/dn-design-system/commit/b9a988470f8862d4c010f27a097d9a65af115d2b))
36
- * **deps-dev:** bump @testing-library/react-native from 12.7.2 to 12.8.0 ([#1477](https://github.com/BonnierNews/dn-design-system/issues/1477)) ([59e489f](https://github.com/BonnierNews/dn-design-system/commit/59e489f4227e83e1d6df43eb9acf6c1ea42db3e3))
37
- * **deps:** bump @react-native-community/slider from 4.5.4 to 4.5.5 ([#1475](https://github.com/BonnierNews/dn-design-system/issues/1475)) ([c321542](https://github.com/BonnierNews/dn-design-system/commit/c321542bdf60e16f86fc02cae937b301e649bb48))
38
- * **foundations:** update tokens from Figma ([#1467](https://github.com/BonnierNews/dn-design-system/issues/1467)) ([af2cd99](https://github.com/BonnierNews/dn-design-system/commit/af2cd99ce8ab17494a3e51e34588d25e24a9ef38))
39
- * prerelease packages ([974fe99](https://github.com/BonnierNews/dn-design-system/commit/974fe99363323771a4284b36a895757fd4c49630))
40
- * prerelease packages ([3ebfd91](https://github.com/BonnierNews/dn-design-system/commit/3ebfd91c6780c6222c74b500eade9fd19cac88f3))
41
- * **web:** change screenshot location ([#1482](https://github.com/BonnierNews/dn-design-system/issues/1482)) ([472d0df](https://github.com/BonnierNews/dn-design-system/commit/472d0df71292d72206f908b82b45148a3b79cb91))
42
- * **web:** released version v21.1.0-beta.1 ([9d45c5a](https://github.com/BonnierNews/dn-design-system/commit/9d45c5a4bbcfe53698ca9dffe3e1771422fbcdac))
43
- * **web:** released version v21.1.0-beta.2 ([49b9324](https://github.com/BonnierNews/dn-design-system/commit/49b9324c7074d6835aab2de9bb7d9e18649f58b6))
44
- * **web:** visuella-toppar-update-tokens ([#1468](https://github.com/BonnierNews/dn-design-system/issues/1468)) ([943705a](https://github.com/BonnierNews/dn-design-system/commit/943705afb2922c4d32bb4e042cd746857cbd26cf))
79
+ * **deps-dev:** bump axios from 1.7.7 to 1.7.8 ([#1521](https://github.com/BonnierNews/dn-design-system/issues/1521)) ([2699715](https://github.com/BonnierNews/dn-design-system/commit/2699715ebc2b94662b7a2b96dfa81db553810b6b))
80
+ * prerelease packages ([4b262a2](https://github.com/BonnierNews/dn-design-system/commit/4b262a2f8b155239dd88af41449b77decef29c64))
81
+
82
+ ## [21.1.7](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.6...@bonniernews/dn-design-system-web@21.1.7) (2024-11-21)
45
83
 
46
- ## [21.1.0-beta.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.0-beta.1...@bonniernews/dn-design-system-web@21.1.0-beta.2) (2024-10-25)
47
84
 
48
85
  ### Bug Fixes
49
86
 
50
- * **web:** media box sizing border box ([#1473](https://github.com/BonnierNews/dn-design-system/issues/1473)) ([e132abf](https://github.com/BonnierNews/dn-design-system/commit/e132abf44fc8d525fed7ff565ebdcc3702941669))
87
+ * **web:** footer component tsx ([#1511](https://github.com/BonnierNews/dn-design-system/issues/1511)) ([cea4d87](https://github.com/BonnierNews/dn-design-system/commit/cea4d8777fa6eee63d2a43db2b070c837f583d33))
88
+ * **web:** make generate document action fail of wrong path ([#1513](https://github.com/BonnierNews/dn-design-system/issues/1513)) ([4bf20be](https://github.com/BonnierNews/dn-design-system/commit/4bf20be5df01055b33a38df5e409ec084d69af65))
89
+
51
90
 
52
- ## [21.1.0-beta.1](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.0.2...@bonniernews/dn-design-system-web@21.1.0-beta.1) (2024-10-25)
91
+ ### Maintenance
92
+
93
+ * **deps:** bump cross-spawn from 6.0.5 to 6.0.6 in /web ([#1508](https://github.com/BonnierNews/dn-design-system/issues/1508)) ([dad260a](https://github.com/BonnierNews/dn-design-system/commit/dad260a48967b58a08a6c6ba3b581aeffccf3b54))
94
+ * **deps:** bump sass from 1.80.3 to 1.81.0 ([#1505](https://github.com/BonnierNews/dn-design-system/issues/1505)) ([9455509](https://github.com/BonnierNews/dn-design-system/commit/94555094aac9ffbff6e5f25aedb68dc3485dc85d))
95
+ * **web:** only build docs stories for readme script ([#1512](https://github.com/BonnierNews/dn-design-system/issues/1512)) ([bffc019](https://github.com/BonnierNews/dn-design-system/commit/bffc0195375b4cb2025a479ac0462628092e153f))
96
+ * **web:** update readme about generating docs ([#1509](https://github.com/BonnierNews/dn-design-system/issues/1509)) ([036e7c1](https://github.com/BonnierNews/dn-design-system/commit/036e7c1eb22b69ba8860efe53463e20b8a88ccbf))
97
+
98
+ ## [21.1.6](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.5...@bonniernews/dn-design-system-web@21.1.6) (2024-11-19)
99
+
100
+
101
+ ### Maintenance
102
+
103
+ * **web:** fix jsx error with tsx components ([#1506](https://github.com/BonnierNews/dn-design-system/issues/1506)) ([ad3bf54](https://github.com/BonnierNews/dn-design-system/commit/ad3bf54aabb0f7239c1406e55946adfcf6245aa5))
53
104
 
54
105
  ## [21.1.5](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.1.4...@bonniernews/dn-design-system-web@21.1.5) (2024-11-15)
55
106
 
@@ -88,6 +139,7 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
88
139
 
89
140
  ## [21.1.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.0.4...@bonniernews/dn-design-system-web@21.1.0) (2024-11-11)
90
141
 
142
+
91
143
  ### Features
92
144
 
93
145
  * **web:** one level of bauta with background color ([#1428](https://github.com/BonnierNews/dn-design-system/issues/1428)) ([c78c0a5](https://github.com/BonnierNews/dn-design-system/commit/c78c0a5e8a05a4ee4d31d7a58e5d23b1c39a7807))
@@ -102,9 +154,7 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
102
154
  * prerelease packages ([92a0383](https://github.com/BonnierNews/dn-design-system/commit/92a038392e8bc9b4bfa8b3f2dc508b16ef1ff4cf))
103
155
 
104
156
  ## [21.0.3](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.0.2...@bonniernews/dn-design-system-web@21.0.3) (2024-11-04)
105
- * **web:** breaking aka nivå3puff till visuella toppar ([#1450](https://github.com/BonnierNews/dn-design-system/issues/1450)) ([602040c](https://github.com/BonnierNews/dn-design-system/commit/602040c5a0e8ef7a7bd996bc6508e97956229c1b))
106
- * **web:** nivå1puff till visuella toppar ([#1460](https://github.com/BonnierNews/dn-design-system/issues/1460)) ([d8dcacf](https://github.com/BonnierNews/dn-design-system/commit/d8dcacf7c76b80aac7e48fbf602bc5079d3a1cd3))
107
- * **web:** one level of bauta with background color ([8734216](https://github.com/BonnierNews/dn-design-system/commit/87342169eacf9d59f202f45424022c1bd733a74e))
157
+
108
158
 
109
159
  ### Maintenance
110
160
 
@@ -119,9 +169,6 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
119
169
  * prerelease packages ([974fe99](https://github.com/BonnierNews/dn-design-system/commit/974fe99363323771a4284b36a895757fd4c49630))
120
170
  * prerelease packages ([3ebfd91](https://github.com/BonnierNews/dn-design-system/commit/3ebfd91c6780c6222c74b500eade9fd19cac88f3))
121
171
  * **web:** change screenshot location ([#1482](https://github.com/BonnierNews/dn-design-system/issues/1482)) ([472d0df](https://github.com/BonnierNews/dn-design-system/commit/472d0df71292d72206f908b82b45148a3b79cb91))
122
- * **foundations:** update tokens from Figma ([#1467](https://github.com/BonnierNews/dn-design-system/issues/1467)) ([af2cd99](https://github.com/BonnierNews/dn-design-system/commit/af2cd99ce8ab17494a3e51e34588d25e24a9ef38))
123
- * prerelease packages ([3ebfd91](https://github.com/BonnierNews/dn-design-system/commit/3ebfd91c6780c6222c74b500eade9fd19cac88f3))
124
- * **web:** visuella-toppar-update-tokens ([#1468](https://github.com/BonnierNews/dn-design-system/issues/1468)) ([87277b4](https://github.com/BonnierNews/dn-design-system/commit/87277b487b6f663d4ca106a74cb878012e579a42))
125
172
 
126
173
  ## [21.0.2](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@21.0.1...@bonniernews/dn-design-system-web@21.0.2) (2024-10-24)
127
174
 
@@ -136,6 +183,7 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
136
183
 
137
184
  * **web:** one level of bauta with background color ([075ed25](https://github.com/BonnierNews/dn-design-system/commit/075ed259c6f3c50ed6018bd566fdc7b9b5c05c73))
138
185
 
186
+
139
187
  ### Maintenance
140
188
 
141
189
  * **deps-dev:** bump @babel/runtime from 7.25.7 to 7.25.9 ([#1458](https://github.com/BonnierNews/dn-design-system/issues/1458)) ([2a160a8](https://github.com/BonnierNews/dn-design-system/commit/2a160a8cfe74b593002ddc460fa4734dc008250d))
@@ -10,8 +10,6 @@ $ds-teaser-standard-image-width-mobile: 104px;
10
10
  $ds-teaser-standard-image-width-tablet: 156px;
11
11
  $ds-teaser-standard-image-width-desktop: 196px;
12
12
 
13
- $grade-size: ds-px-to-rem(34px);
14
-
15
13
  @mixin ds-teaser-focus($offset: 2px, $includeSelector: true) {
16
14
  @include ds-focus($offset, $includeSelector);
17
15
  }
@@ -65,29 +63,6 @@ $grade-size: ds-px-to-rem(34px);
65
63
  @include ds-mq-smallest-breakpoint(tablet) {
66
64
  margin-top: ds-spacing($ds-s-075);
67
65
  }
68
-
69
- &.ds-teaser__text--with-grade {
70
- min-height: calc($grade-size + ds-spacing($ds-s-025, "rem"));
71
- }
72
- }
73
-
74
- .ds-icon.ds-icon--grade {
75
- color: $ds-color-icon-primary;
76
- border-radius: 50%;
77
- float: left;
78
- font-size: 0;
79
- line-height: 0;
80
- margin: ds-spacing($ds-s-025 $ds-s-050 0 0, "rem");
81
- height: $grade-size;
82
- width: $grade-size;
83
-
84
- svg {
85
- width: 100%;
86
- height: 100%;
87
- circle {
88
- stroke: currentColor;
89
- }
90
- }
91
66
  }
92
67
 
93
68
  .ds-teaser__sticker {
@@ -99,12 +74,6 @@ $grade-size: ds-px-to-rem(34px);
99
74
  .ds-teaser__media {
100
75
  width: 100%;
101
76
  position: relative;
102
- box-sizing: border-box;
103
-
104
- &--rounded {
105
- border-radius: ds-border-radius(x1);
106
- overflow: hidden;
107
- }
108
77
  }
109
78
 
110
79
  .ds-vip-badge {
@@ -134,6 +103,6 @@ $grade-size: ds-px-to-rem(34px);
134
103
  }
135
104
 
136
105
  &--bauta {
137
- background-color: $ds-color-surface-breaking;
106
+ background-color: $bauta-surface-color;
138
107
  }
139
108
  }
@@ -0,0 +1,75 @@
1
+ - GitHub: [BonnierNews/dn-design-system/../web/src/components/footer](https://github.com/BonnierNews/dn-design-system/tree/main/web/src/components/footer)
2
+ - Storybook: [Footer](https://designsystem.dn.se/?path=/docs/page-footer--docs)
3
+ - Storybook (Latest): [Footer](https://designsystem-latest.dn.se/?path=/docs/page-footer--docs)
4
+
5
+ ----
6
+
7
+ # Footer
8
+
9
+ ## Parameters
10
+
11
+ |parameter | type | required | options | default | description |
12
+ |:--- | :--- | :--- | :--- | :--- | :--- |
13
+ |linkGroups | Array > Object | yes | | | Ex. [{ title: "Om Dn", attributes: {"data-test": "test"}, links: [{ href: "/kontakt/", text: "Kontakta oss" }] }, { title: "Följ oss", links: [{ href: "#", text: "Twitter", classNames: "twitter-link", attributes: { target: "_blank" } }] }] |
14
+ |editorsHtml | HTML String | yes | | | |
15
+ |copyright | String | yes | | | |
16
+ |rudolf | Object | yes | | | Ex. { imgUrl: "images/rudolf.png", text: "Punkten efter Dagens Nyheter har funnits med.." } |
17
+ |channels | Array > Object | no | | | Ex. [{ href: "?channel=mobile", text: "Mobil", classNames: "hidden-mobile", attributes: {rel: "nofollow"} }] |
18
+ |classNames | String | no | | | Ex. "my-special-class" |
19
+ |attributes | Object | no | | | Ex. { target: "_blank", "data-test": "lorem ipsum" } |
20
+ |forcePx | bool | no | true, false | false | Fixed pixel value is used for typography to prevent scaling based on html font-size
21
+
22
+ ## Minimum requirement example
23
+
24
+ ### Nunjucks
25
+
26
+ These are copy paste friendly examples to quickliy get started using a component.
27
+
28
+ ```html
29
+ {% from '@bonniernews/dn-design-system-web/components/footer/footer.njk' import Footer %}
30
+
31
+ {{ Footer({
32
+ linkGroups: [
33
+ {
34
+ title: "Om Dn",
35
+ links: [
36
+ {
37
+ href: "/kontakt/",
38
+ text: "Kontakta oss"
39
+ }
40
+ ]
41
+ },
42
+ {
43
+ title: "Följ oss",
44
+ links: [
45
+ {
46
+ href: "#",
47
+ text: "Twitter",
48
+ classNames: "twitter-link",
49
+ attributes: { target: "_blank" }
50
+ }
51
+ ]
52
+ }
53
+ ],
54
+ editorsHtml: "<p>Chefredaktör och ansvarig utgivare:&nbsp;Peter Wolodarski...</p>",
55
+ copyright: "&copy; Dagens Nyheter AB 2023",
56
+ rudolf: {
57
+ imgUrl: "images/rudolf.png",
58
+ text: "Punkten efter Dagens Nyheter har funnits med.."
59
+ },
60
+ channels: [
61
+ {
62
+ href: "?channel=mobile",
63
+ text: "Mobil",
64
+ classNames: "hidden-mobile",
65
+ attributes: {rel: "nofollow"}
66
+ }
67
+ ],
68
+ forcePx: true
69
+ })}}
70
+ ```
71
+
72
+ ### SCSS
73
+ ```scss
74
+ @use "@bonniernews/dn-design-system-web/components/footer/footer" as *;
75
+ ```