@bonniernews/dn-design-system-web 20.3.0 → 20.3.1-beta.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/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ All changes to @bonniernews/dn-design-system-web will be documented in this file
4
4
 
5
5
 
6
6
 
7
+ ## [20.3.1-beta.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@20.3.0...@bonniernews/dn-design-system-web@20.3.1-beta.0) (2024-09-18)
8
+
9
+
10
+ ### Maintenance
11
+
12
+ * **deps-dev:** bump remove-markdown from 0.5.2 to 0.5.5 ([#1393](https://github.com/BonnierNews/dn-design-system/issues/1393)) ([1310aa0](https://github.com/BonnierNews/dn-design-system/commit/1310aa0392048140748325593f9797dc86e9977b))
13
+ * **deps:** bump express to 4.21.0 ([#1400](https://github.com/BonnierNews/dn-design-system/issues/1400)) ([ddd6612](https://github.com/BonnierNews/dn-design-system/commit/ddd66129828845f96f574ee05f327f32ccff77f6))
14
+ * prerelease packages ([94dd232](https://github.com/BonnierNews/dn-design-system/commit/94dd23255267ddf5a1bc653282dd4a91dbfdfb0e))
15
+
7
16
  ## [20.3.0](https://github.com/BonnierNews/dn-design-system/compare/@bonniernews/dn-design-system-web@20.2.0...@bonniernews/dn-design-system-web@20.3.0) (2024-09-12)
8
17
 
9
18
 
@@ -0,0 +1,24 @@
1
+ .ds-divider {
2
+ margin: 0;
3
+ padding: 16px 0;
4
+ width: 100%;
5
+ }
6
+
7
+ .ds-divider hr {
8
+ hr {
9
+ margin: 0 auto;
10
+ border: none;
11
+ background-color: grey;
12
+ height: 1px;
13
+ width: 100%;
14
+ }
15
+ }
16
+ /* .ds-divider--soft hr {
17
+ background-color: $ds-color-border-primary;
18
+ }
19
+ .ds-divider--medium hr {
20
+ background-color: $ds-color-border-primary-02;
21
+ }
22
+ .ds-divider--strong hr {
23
+ background-color: $ds-color-border-primary-03;
24
+ } */
@@ -3,6 +3,7 @@
3
3
  .ds-divider {
4
4
  margin: 0;
5
5
  padding: ds-spacing($ds-s-100 0);
6
+ width: 100%;
6
7
 
7
8
  hr {
8
9
  margin: 0 auto;
@@ -0,0 +1,23 @@
1
+ export interface DividerProps {
2
+ variant?: 'soft' | 'medium' | 'hard';
3
+ classNames?: string;
4
+ attributes?: object;
5
+ }
6
+
7
+ export const Divider = ({ variant = 'soft', classNames, attributes }: DividerProps) => {
8
+ const componentClassName = 'ds-divider';
9
+ const classNamePrefix = `${componentClassName}--`;
10
+ const classes = [
11
+ componentClassName,
12
+ `${classNamePrefix}${variant}`,
13
+ classNames
14
+ ].filter(Boolean).join(' ');
15
+
16
+ return (
17
+ <div className={classes} {...attributes}>
18
+ <hr />
19
+ </div>
20
+ );
21
+ };
22
+
23
+ export default Divider;
@@ -14,10 +14,11 @@
14
14
  margin-left: ds-spacing($ds-s-050);
15
15
 
16
16
  @include ds-typography($ds-typography-functionalmeta01, $lineHeight: $ds-lineheight-l);
17
- color: $ds-color-static-white;
18
-
19
- background-color: $ds-color-static-transparent-black;
20
- z-index: 5;
17
+ & {
18
+ color: $ds-color-static-white;
19
+ background-color: $ds-color-static-transparent-black;
20
+ z-index: 5;
21
+ }
21
22
  }
22
23
 
23
24
  &--mask {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/dn-design-system-web",
3
- "version": "20.3.0",
3
+ "version": "20.3.1-beta.0",
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",