@synerise/ds-progress-bar 2.0.10 → 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,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.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)
|
|
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
|
+
|
|
17
|
+
## [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)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-progress-bar
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [2.0.10](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@2.0.9...@synerise/ds-progress-bar@2.0.10) (2026-10-26)
|
|
7
26
|
|
|
8
27
|
|
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.
|
|
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 `
|
|
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 `
|
|
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(
|
|
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:
|
|
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 :
|
|
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:
|
|
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:
|
|
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
|
|
3
|
+
"version": "2.1.0",
|
|
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
|
|
46
|
-
"@synerise/ds-tooltip": "^2.0
|
|
47
|
-
"@synerise/ds-utils": "^2.
|
|
45
|
+
"@synerise/ds-form-field": "^2.1.0",
|
|
46
|
+
"@synerise/ds-tooltip": "^2.1.0",
|
|
47
|
+
"@synerise/ds-utils": "^2.3.0"
|
|
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": "
|
|
57
|
+
"gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
|
|
58
58
|
}
|