@synerise/ds-progress-bar 2.0.11 → 2.1.1

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,25 @@
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.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@2.1.0...@synerise/ds-progress-bar@2.1.1) (2026-11-03)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-progress-bar
9
+
10
+
11
+
12
+
13
+
14
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@2.0.11...@synerise/ds-progress-bar@2.1.0) (2026-10-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.0.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@2.0.10...@synerise/ds-progress-bar@2.0.11) (2026-10-28)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-progress-bar
package/CLAUDE.md CHANGED
@@ -128,11 +128,11 @@ import ProgressBar, { Multivalue, ProgressTiles } from '@synerise/ds-progress-ba
128
128
 
129
129
  ## Styling
130
130
 
131
- All styles in `*.styles.ts` files. Use `theme.palette` tokens for backgrounds; `customColor` / `color` props accept any CSS colour string.
131
+ All styles in `*.styles.ts` files. Backgrounds use `var(--ds-progressbar-*)` tokens; `customColor` / `color` props accept any CSS colour string.
132
132
 
133
- - **ProgressBar**: bar track is `grey-200`; fill is `customColor` or `green-500`. Segment border-radius is 3px. In multi-step mode, first tile gets left radius only, last tile gets right radius only.
133
+ - **ProgressBar**: bar track is `var(--ds-progressbar-bar-bg-track)`; fill is `customColor` or `var(--ds-progressbar-bar-fill-default)`. Segment border-radius is 3px. In multi-step mode, first tile gets left radius only, last tile gets right radius only.
134
134
  - **Multivalue stacked**: bars overlap via `margin-top: -6px`; each bar has `border-right: 2px solid white` (hardcoded white) to create visual separation.
135
- - **ProgressTiles**: tile track is `grey-200`; fill uses the colour from `colors[]`. Same border-radius rule as ProgressBar.
135
+ - **ProgressTiles**: tile track is `var(--ds-progressbar-bar-bg-track)`; fill uses the colour from `colors[]`. Same border-radius rule as ProgressBar.
136
136
  - Both `ProgressBar.styles.ts` and `ProgressTiles.styles.ts` use `FormFieldLabel` from `@synerise/ds-form-field` for the label styled component.
137
137
 
138
138
  ## Key dependencies
@@ -19,7 +19,15 @@ const Multivalue = ({
19
19
  const finalValues = useMemo(() => stackedBars ? [...values].sort((a, b) => {
20
20
  return b.percent - a.percent;
21
21
  }) : values, [stackedBars, values]);
22
- return /* @__PURE__ */ jsx(Container, { stackedBars, ...htmlAttributes, children: finalValues.map((val, index) => /* @__PURE__ */ jsx(Tooltip, { title: val.tooltip, ...val?.tooltipProps, children: /* @__PURE__ */ jsx(Multivalue$1, { color: val.color, percent: normalizePercent(val.percent), onClick: val.onClick, $isFirst: index === 0, $isLast: index === finalValues.length - 1, $stacked: stackedBars }, `${val.color}-${val.percent}-${index}`) })) });
22
+ return /* @__PURE__ */ jsx(Container, { stackedBars, ...htmlAttributes, children: finalValues.map((val, index) => /* @__PURE__ */ jsx(
23
+ Tooltip,
24
+ {
25
+ title: val.tooltip,
26
+ ...val?.tooltipProps,
27
+ children: /* @__PURE__ */ jsx(Multivalue$1, { color: val.color, percent: normalizePercent(val.percent), onClick: val.onClick, $isFirst: index === 0, $isLast: index === finalValues.length - 1, $stacked: stackedBars })
28
+ },
29
+ `${val.color}-${val.percent}-${index}`
30
+ )) });
23
31
  };
24
32
  export {
25
33
  Multivalue as default
@@ -11,7 +11,7 @@ const Label = /* @__PURE__ */ styled(FormFieldLabel).withConfig({
11
11
  const ProgressWrapper = /* @__PURE__ */ styled.div.withConfig({
12
12
  displayName: "ProgressBarstyles__ProgressWrapper",
13
13
  componentId: "sc-1gqovic-2"
14
- })(["position:relative;margin-right:2px;width:", ";height:", ";background:", ";"], (props) => props.$width, (props) => props.$thin ? "4px" : "6px", (props) => props.theme.palette["grey-200"]);
14
+ })(["position:relative;margin-right:2px;width:", ";height:", ";background:var(--ds-progressbar-bar-bg-track);"], (props) => props.$width, (props) => props.$thin ? "4px" : "6px");
15
15
  const ProgressOuter = /* @__PURE__ */ styled.div.withConfig({
16
16
  displayName: "ProgressBarstyles__ProgressOuter",
17
17
  componentId: "sc-1gqovic-3"
@@ -27,11 +27,11 @@ const ProgressBarDescription = /* @__PURE__ */ styled.span.withConfig({
27
27
  const ProgressBar = /* @__PURE__ */ styled.div.withConfig({
28
28
  displayName: "ProgressBarstyles__ProgressBar",
29
29
  componentId: "sc-1gqovic-6"
30
- })(["position:absolute;height:100%;width:", ";background-color:", ";"], (props) => props.$width, (props) => props.customColor ? props.customColor : props.theme.palette["green-500"]);
30
+ })(["position:absolute;height:100%;width:", ";background-color:", ";"], (props) => props.$width, (props) => props.customColor ? props.customColor : "var(--ds-progressbar-bar-fill-default)");
31
31
  const PercentWrapper = /* @__PURE__ */ styled.div.withConfig({
32
32
  displayName: "ProgressBarstyles__PercentWrapper",
33
33
  componentId: "sc-1gqovic-7"
34
- })(["margin-left:8px;color:", ";font-weight:400;"], (props) => props.theme.palette["grey-800"]);
34
+ })(["margin-left:8px;color:var(--ds-progressbar-header-value-color);font-weight:400;"]);
35
35
  const Container = /* @__PURE__ */ styled.div.withConfig({
36
36
  displayName: "ProgressBarstyles__Container",
37
37
  componentId: "sc-1gqovic-8"
@@ -3,7 +3,7 @@ import { FormFieldLabel } from "@synerise/ds-form-field";
3
3
  const TileContainer = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "ProgressTilesstyles__TileContainer",
5
5
  componentId: "sc-sod9jl-0"
6
- })(["position:relative;margin-right:2px;width:", ";height:6px;background:", ";"], (props) => props.width, (props) => props.theme.palette["grey-200"]);
6
+ })(["position:relative;margin-right:2px;width:", ";height:6px;background:var(--ds-progressbar-bar-bg-track);"], (props) => props.width);
7
7
  const TileProgress = /* @__PURE__ */ styled.div.withConfig({
8
8
  displayName: "ProgressTilesstyles__TileProgress",
9
9
  componentId: "sc-sod9jl-1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-progress-bar",
3
- "version": "2.0.11",
3
+ "version": "2.1.1",
4
4
  "description": "Progress-Bar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,9 +42,9 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-form-field": "^2.0.11",
46
- "@synerise/ds-tooltip": "^2.0.11",
47
- "@synerise/ds-utils": "^2.2.2"
45
+ "@synerise/ds-form-field": "^2.1.1",
46
+ "@synerise/ds-tooltip": "^2.1.1",
47
+ "@synerise/ds-utils": "^2.3.1"
48
48
  },
49
49
  "devDependencies": {
50
50
  "vitest": "4"
@@ -54,5 +54,5 @@
54
54
  "react": ">=16.9.0 <= 18.3.1",
55
55
  "styled-components": "^5.3.3"
56
56
  },
57
- "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
57
+ "gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
58
58
  }