@synerise/ds-divider 1.1.3 → 1.2.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
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.2.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-divider@1.1.3...@synerise/ds-divider@1.2.0) (2025-10-10)
7
+
8
+
9
+ ### Features
10
+
11
+ * **list-item:** submenu and header ([71fa4bf](https://github.com/Synerise/synerise-design/commit/71fa4bfadd5fdb52d61dfe8fe87a9e47567e5d16))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.1.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-divider@1.1.2...@synerise/ds-divider@1.1.3) (2025-09-30)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-divider
@@ -7,6 +7,7 @@ export type DividerProps = WithHTMLAttributes<HTMLDivElement, {
7
7
  labelAbove?: ReactNode;
8
8
  labelBelow?: ReactNode;
9
9
  hiddenLine?: boolean;
10
+ withSideMargin?: boolean;
10
11
  type?: DividerType;
11
12
  dashed?: boolean;
12
13
  }>;
@@ -1,3 +1,3 @@
1
1
  import React from 'react';
2
2
  import { type DividerProps } from '../Divider.types';
3
- export declare const Line: ({ marginBottom, marginTop, type, dashed, className, ...htmlAttributes }: DividerProps) => React.JSX.Element;
3
+ export declare const Line: ({ marginBottom, marginTop, type, dashed, withSideMargin, className, ...htmlAttributes }: DividerProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- var _excluded = ["marginBottom", "marginTop", "type", "dashed", "className"];
1
+ var _excluded = ["marginBottom", "marginTop", "type", "dashed", "withSideMargin", "className"];
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import React from 'react';
@@ -10,6 +10,7 @@ export var Line = function Line(_ref) {
10
10
  _ref$type = _ref.type,
11
11
  type = _ref$type === void 0 ? 'horizontal' : _ref$type,
12
12
  dashed = _ref.dashed,
13
+ withSideMargin = _ref.withSideMargin,
13
14
  className = _ref.className,
14
15
  htmlAttributes = _objectWithoutPropertiesLoose(_ref, _excluded);
15
16
  var svgProps = SVG_PROPS[type];
@@ -18,6 +19,7 @@ export var Line = function Line(_ref) {
18
19
  role: "separator",
19
20
  marginTop: marginTop,
20
21
  marginBottom: marginBottom,
22
+ withSideMargin: withSideMargin,
21
23
  type: type,
22
24
  dashed: dashed
23
25
  }, htmlAttributes), /*#__PURE__*/React.createElement("svg", _extends({}, svgProps.svgAttributes, {
@@ -26,6 +28,6 @@ export var Line = function Line(_ref) {
26
28
  strokeWidth: 2,
27
29
  vectorEffect: "non-scaling-stroke",
28
30
  stroke: "currentColor",
29
- "stroke-dasharray": "" + (dashed ? '1 2' : '')
31
+ strokeDasharray: "" + (dashed ? '1 2' : '')
30
32
  }))));
31
33
  };
@@ -2,6 +2,7 @@ import { type DividerType } from '../Divider.types';
2
2
  export declare const Line: import("styled-components").StyledComponent<"div", any, {
3
3
  marginTop?: number;
4
4
  marginBottom?: number;
5
+ withSideMargin?: boolean;
5
6
  type?: DividerType;
6
7
  dashed?: boolean;
7
8
  }, never>;
@@ -2,18 +2,18 @@ import styled from 'styled-components';
2
2
  export var Line = styled.div.withConfig({
3
3
  displayName: "Linestyles__Line",
4
4
  componentId: "sc-1fokvnj-0"
5
- })(["display:", ";vertical-align:", ";margin:", ";margin-bottom:", "px;margin-top:", "px;width:", ";height:", ";color:", ";"], function (props) {
6
- return props.type === 'vertical' ? 'inline-block' : 'flex';
5
+ })(["display:", ";vertical-align:", ";", " margin-bottom:", "px;margin-top:", "px;width:", ";height:", ";overflow:hidden;color:", ";"], function (props) {
6
+ return props.type === 'vertical' ? 'inline-block' : 'block';
7
7
  }, function (props) {
8
8
  return props.type === 'vertical' ? 'middle' : undefined;
9
9
  }, function (props) {
10
- return props.type === 'vertical' ? '0 8px' : '0';
10
+ return props.type === 'vertical' ? "\n margin: 0 8px;\n " : "\n margin: 0 " + (props.withSideMargin ? '12px' : '0px') + ";\n ";
11
11
  }, function (props) {
12
- return props.marginBottom;
12
+ return props.marginBottom || 0;
13
13
  }, function (props) {
14
- return props.marginTop;
14
+ return props.marginTop || 0;
15
15
  }, function (props) {
16
- return props.type === 'horizontal' ? '100%' : '1px';
16
+ return props.type === 'horizontal' ? 'auto' : '1px';
17
17
  }, function (props) {
18
18
  return props.type === 'vertical' ? '0.9em' : '1px';
19
19
  }, function (props) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-divider",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "Divider UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -35,13 +35,13 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-typography": "^1.0.21",
39
- "@synerise/ds-utils": "^1.4.2"
38
+ "@synerise/ds-typography": "^1.0.22",
39
+ "@synerise/ds-utils": "^1.5.0"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@synerise/ds-core": "*",
43
43
  "react": ">=16.9.0 <= 18.3.1",
44
44
  "styled-components": "^5.3.3"
45
45
  },
46
- "gitHead": "a89d4a4d780cd537376fbc58a58ed572fdad925b"
46
+ "gitHead": "4e09fc37fa21ff2e27655e7bb305b136db0ca199"
47
47
  }