@bonniernews/dn-design-system-web 14.3.9 → 14.3.10

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 (62) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/components/article-body-image/README-UXD.md +0 -0
  3. package/components/article-top-image/README-UXD.md +0 -0
  4. package/components/badge/README-UXD.md +0 -0
  5. package/components/blocked-content/README-UXD.md +0 -0
  6. package/components/buddy-menu/README-UXD.md +0 -0
  7. package/components/button/README-UXD.md +40 -0
  8. package/components/button-toggle/README-UXD.md +0 -0
  9. package/components/byline/README-UXD.md +0 -0
  10. package/components/checkbox/README-UXD.md +0 -0
  11. package/components/direkt-circle/README-UXD.md +0 -0
  12. package/components/disclaimer/README-UXD.md +0 -0
  13. package/components/divider/README-UXD.md +0 -0
  14. package/components/factbox/README-UXD.md +0 -40
  15. package/components/floating-button/README-UXD.md +0 -0
  16. package/components/footer/README-UXD.md +0 -0
  17. package/components/game-header/README-UXD.md +0 -0
  18. package/components/group-header/README-UXD.md +0 -0
  19. package/components/icon-button/README-UXD.md +0 -0
  20. package/components/icon-button-toggle/README-UXD.md +0 -0
  21. package/components/icon-sprite/README-UXD.md +0 -0
  22. package/components/icon-sprite/README.md +1 -0
  23. package/components/icon-with-wrapper/README-UXD.md +0 -0
  24. package/components/image-caption/README-UXD.md +0 -0
  25. package/components/link-box/README-UXD.md +0 -0
  26. package/components/list-item/README-UXD.md +0 -0
  27. package/components/modal/README-UXD.md +0 -0
  28. package/components/pictogram/README-UXD.md +0 -0
  29. package/components/quote/README-UXD.md +0 -0
  30. package/components/radio-button/README-UXD.md +0 -0
  31. package/components/spinner/README-UXD.md +0 -0
  32. package/components/switch/README-UXD.md +0 -0
  33. package/components/tag-header/README-UXD.md +0 -0
  34. package/components/teaser-card/README-UXD.md +0 -0
  35. package/components/teaser-dot/README-UXD.md +0 -0
  36. package/components/teaser-footer/README-UXD.md +0 -0
  37. package/components/teaser-image/README-UXD.md +0 -0
  38. package/components/teaser-large/README-UXD.md +0 -0
  39. package/components/teaser-list-swipe/README-UXD.md +0 -0
  40. package/components/teaser-list-vertical/README-UXD.md +0 -0
  41. package/components/teaser-longlife/README-UXD.md +0 -0
  42. package/components/teaser-native/README-UXD.md +0 -0
  43. package/components/teaser-onsite/README-UXD.md +0 -0
  44. package/components/teaser-package/README-UXD.md +0 -0
  45. package/components/teaser-right-now/README-UXD.md +0 -0
  46. package/components/teaser-slideshow/README-UXD.md +0 -0
  47. package/components/teaser-split/README-UXD.md +0 -0
  48. package/components/teaser-standard/README-UXD.md +0 -0
  49. package/components/teaser-swipe-card/README-UXD.md +0 -0
  50. package/components/teaser-tipsa/README-UXD.md +0 -0
  51. package/components/text-button/README-UXD.md +0 -0
  52. package/components/text-button-toggle/README-UXD.md +0 -0
  53. package/components/text-input/README-UXD.md +0 -0
  54. package/components/thematic-break/README-UXD.md +0 -0
  55. package/components/tooltip/README-UXD.md +0 -0
  56. package/components/video-caption/README-UXD.md +0 -0
  57. package/components/vip-badge/README-UXD.md +0 -0
  58. package/foundations/helpers/README-UXD.md +0 -0
  59. package/foundations/typography/README-UXD.md +0 -0
  60. package/introduction/README-UXD.md +1 -0
  61. package/introduction/README.md +19 -0
  62. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,13 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [14.3.10](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@14.3.9...@bonniernews/dn-design-system-web@14.3.10) (2024-03-20)
8
+
9
+
10
+ ### Maintenance
11
+
12
+ * **web:** upgrade to storybook 8.0.0 add UXD-readme ([#1194](https://github.com/BonnierNews/dn-design-system/issues/1194)) ([59adc00](https://github.com/BonnierNews/dn-design-system/commit/59adc00f9d797e0e999250f1aa92d68626c8091c))
13
+
7
14
  ## [14.3.9](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@14.3.8...@bonniernews/dn-design-system-web@14.3.9) (2024-03-20)
8
15
 
9
16
 
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,40 @@
1
+ # Standard button
2
+
3
+ Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.
4
+
5
+
6
+ ### Anatomy
7
+
8
+ 1. **Label:** The text displayed on the button, indicating its function.
9
+ 2. **Icon** Iconography that enhances the function.
10
+ 3. **Background:** The background color or style that defines the button's appearance.
11
+ 4. **Border:** The outline surrounding the button, providing visual separation from surrounding elements.
12
+ 5. **Shape** The standard shape is rectangular but the component also supports a rounded format.
13
+
14
+
15
+ ## Variants
16
+
17
+ | Variant | How to use |
18
+ | --------- | ---------------------------------------------------------------------------------------------------- |
19
+ | [Brand](#brand) | Extra high emphasis button used for actions that are extra important for the user flow and conversion. I.e. ”Logga in” |
20
+ | [Primary](#primary) | High emphasis button used to attract attention to the most important task of the layout, typically the next step in the user flow. I.e. ”Nästa fråga” in a quiz. |
21
+ | Secondary| Medium emphasis button used for alternative non-primary actions. I.e. ”Alla nyheter” in a list of news. |
22
+ | Outline | Low emphasis Button used for less important actions. Usually used in combination with a primary or brand Button. |
23
+
24
+
25
+ ## Usage
26
+
27
+ Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.
28
+
29
+
30
+ ### Dos
31
+
32
+ - **Use Primary Buttons for Key Actions:** Employ primary buttons for primary actions within a given context, guiding user focus towards important interactions.
33
+ - **Provide Clear Labeling:** Ensure button labels are concise, descriptive, and indicative of the action they perform, enhancing usability.
34
+ - **Maintain Visual Hierarchy:** Utilize secondary and outline buttons to distinguish lesser actions or provide alternative choices, maintaining a clear visual hierarchy.
35
+
36
+ ### Don'ts
37
+
38
+ - **Avoid Ambiguous Labels:** Refrain from using vague or ambiguous labels like ”Fortsätt” that might confuse users about the button's function.
39
+ - **Overuse of Primary Buttons:** Reserve primary buttons for the most crucial actions to avoid overwhelming users with excessive visual weight.
40
+
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,40 +0,0 @@
1
- # Standard button
2
-
3
- Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.
4
-
5
-
6
- ### Anatomy
7
-
8
- 1. **Label:** The text displayed on the button, indicating its function.
9
- 2. **Icon** Iconography that enhances the function.
10
- 3. **Background:** The background color or style that defines the button's appearance.
11
- 4. **Border:** The outline surrounding the button, providing visual separation from surrounding elements.
12
- 5. **Shape** The standard shape is rectangular but the component also supports a rounded format.
13
-
14
-
15
- ## Variants
16
-
17
- | Variant | How to use |
18
- | --------- | ---------------------------------------------------------------------------------------------------- |
19
- | Brand | Extra high emphasis button used for actions that are extra important for the user flow and conversion. I.e. ”Logga in” |
20
- | Primary | High emphasis button used to attract attention to the most important task of the layout, typically the next step in the user flow. I.e. ”Nästa fråga” in a quiz. |
21
- | Secondary | Medium emphasis button used for alternative non-primary actions. I.e. ”Alla nyheter” in a list of news. |
22
- | Outline | Low emphasis Button used for less important actions. Usually used in combination with a primary or brand Button. |
23
-
24
-
25
- ## Usage
26
-
27
- Buttons are used to initialize an action. Button labels express what action will occur when the user interacts with it.
28
-
29
-
30
- ### Dos
31
-
32
- - **Use Primary Buttons for Key Actions:** Employ primary buttons for primary actions within a given context, guiding user focus towards important interactions.
33
- - **Provide Clear Labeling:** Ensure button labels are concise, descriptive, and indicative of the action they perform, enhancing usability.
34
- - **Maintain Visual Hierarchy:** Utilize secondary and outline buttons to distinguish lesser actions or provide alternative choices, maintaining a clear visual hierarchy.
35
-
36
- ### Don'ts
37
-
38
- - **Avoid Ambiguous Labels:** Refrain from using vague or ambiguous labels like ”Fortsätt” that might confuse users about the button's function.
39
- - **Overuse of Primary Buttons:** Reserve primary buttons for the most crucial actions to avoid overwhelming users with excessive visual weight.
40
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -3,6 +3,7 @@
3
3
  - Storybook (Latest): [Icon](https://designsystem-latest.dn.se/?path=/docs/foundations-icons--docs)
4
4
 
5
5
  ----
6
+
6
7
  # Icons
7
8
 
8
9
  There are three ways to use icons from DS:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1 @@
1
+ ## UXD documentation
@@ -0,0 +1,19 @@
1
+ # DN Design system
2
+
3
+ <img src="/images/digital-dn.png" width="150">
4
+
5
+ The design system used by Dagens Nyheter.
6
+
7
+ ## Technical documentation
8
+
9
+ Foundations, components and helpers of DN design system for web
10
+
11
+ ### Useful links
12
+
13
+ Storybook: [https://designsystem.dn.se/](https://designsystem.dn.se/)
14
+
15
+ Github: [https://github.com/BonnierNews/dn-design-system/tree/main/web/src](https://github.com/BonnierNews/dn-design-system/tree/main/web/src)
16
+
17
+ Changelog: [https://github.com/BonnierNews/dn-design-system/blob/main/web/src/CHANGELOG.md](https://github.com/BonnierNews/dn-design-system/blob/main/web/src/CHANGELOG.md)
18
+
19
+ For specific instructions see each component or helper readme.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "14.3.9",
3
+ "version": "14.3.10",
4
4
  "description": "DN design system for web.",
5
5
  "main": "index.js",
6
6
  "homepage": "https://github.com/BonnierNews/dn-design-system/tree/main/web/src#readme",