@synerise/ds-divider 2.0.11 → 2.1.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
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-divider@2.0.11...@synerise/ds-divider@2.1.0) (2026-10-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.0.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-divider@2.0.10...@synerise/ds-divider@2.0.11) (2026-10-28)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-divider
package/CLAUDE.md CHANGED
@@ -69,8 +69,8 @@ import Divider from '@synerise/ds-divider';
69
69
  ## Styling
70
70
 
71
71
  Styles are split between two files:
72
- - `Divider.styles.ts` — `Label`: extends `Title` from `@synerise/ds-typography` with uppercase transform, `grey-500` colour, fixed height/margin.
73
- - `Line.styles.tsx` — `Line` wrapper div: controls `display`, margins, width/height, and line colour (`grey-300` solid / `grey-400` dashed) via `@synerise/ds-core` theme tokens.
72
+ - `Divider.styles.ts` — `Label`: extends `Title` from `@synerise/ds-typography` with uppercase transform, `--ds-divider-header-text-color` colour, fixed height/margin.
73
+ - `Line.styles.tsx` — `Line` wrapper div: controls `display`, margins, width/height, and line colour (`--ds-divider-line-color-solid` / `--ds-divider-line-color-dashed`).
74
74
 
75
75
  Vertical dividers switch to `display: inline-block` with `height: 0.9em` (relative to surrounding font size) and a fixed `8px` horizontal margin — these are not configurable via props.
76
76
 
@@ -78,7 +78,7 @@ Vertical dividers switch to `display: inline-block` with `height: 0.9em` (relati
78
78
 
79
79
  - `@synerise/ds-typography` — `Title` used for label rendering
80
80
  - `@synerise/ds-utils` — `WithHTMLAttributes` utility type
81
- - `@synerise/ds-core` — theme palette tokens consumed in styled-components
81
+ - `@synerise/ds-core` — not imported; its `DSProvider` injects the `--ds-divider-*` custom properties the styles read
82
82
 
83
83
  ## Implementation notes
84
84
 
@@ -3,9 +3,7 @@ import { Title } from "@synerise/ds-typography";
3
3
  const Label = /* @__PURE__ */ styled(Title).withConfig({
4
4
  displayName: "Dividerstyles__Label",
5
5
  componentId: "sc-1euulm7-0"
6
- })(["text-transform:uppercase;color:", ";height:16px;margin:12px;line-height:1.6;letter-spacing:0.1px;"], ({
7
- theme
8
- }) => theme.palette["grey-500"]);
6
+ })(["text-transform:uppercase;color:var(--ds-divider-header-text-color);height:16px;margin:12px;line-height:1.6;letter-spacing:0.1px;"]);
9
7
  export {
10
8
  Label
11
9
  };
@@ -6,7 +6,7 @@ const Line = /* @__PURE__ */ styled.div.withConfig({
6
6
  margin: 0 8px;
7
7
  ` : `
8
8
  margin: 0 ${props.withSideMargin ? "12px" : "0px"};
9
- `, (props) => props.marginBottom || 0, (props) => props.marginTop || 0, (props) => props.type === "horizontal" ? "auto" : "1px", (props) => props.type === "vertical" ? "0.9em" : "1px", (props) => props.dashed ? props.theme.palette["grey-400"] : props.theme.palette["grey-300"]);
9
+ `, (props) => props.marginBottom || 0, (props) => props.marginTop || 0, (props) => props.type === "horizontal" ? "auto" : "1px", (props) => props.type === "vertical" ? "0.9em" : "1px", (props) => props.dashed ? "var(--ds-divider-line-color-dashed)" : "var(--ds-divider-line-color-solid)");
10
10
  export {
11
11
  Line
12
12
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-divider",
3
- "version": "2.0.11",
3
+ "version": "2.1.0",
4
4
  "description": "Divider UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,8 +42,8 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-typography": "^2.0.11",
46
- "@synerise/ds-utils": "^2.2.2"
45
+ "@synerise/ds-typography": "^2.1.0",
46
+ "@synerise/ds-utils": "^2.3.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "vitest": "4"
@@ -53,5 +53,5 @@
53
53
  "react": ">=16.9.0 <= 18.3.1",
54
54
  "styled-components": "^5.3.3"
55
55
  },
56
- "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
56
+ "gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
57
57
  }