@synerise/ds-progress-bar 1.1.26 → 1.1.27
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,12 @@
|
|
|
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.1.27](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@1.1.26...@synerise/ds-progress-bar@1.1.27) (2026-01-12)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- regression fix ([0b95c50](https://github.com/Synerise/synerise-design/commit/0b95c50d6119b929520eb0139357f78e09d42e8c))
|
|
11
|
+
|
|
6
12
|
## [1.1.26](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@1.1.25...@synerise/ds-progress-bar@1.1.26) (2026-01-07)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @synerise/ds-progress-bar
|
package/dist/ProgressBar.js
CHANGED
|
@@ -43,14 +43,11 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
43
43
|
"data-testid": "progress-bar-container",
|
|
44
44
|
$steps: steps,
|
|
45
45
|
$inline: inline
|
|
46
|
-
}, rest), label && !inline && /*#__PURE__*/React.createElement(S.LabelWrapper, null, /*#__PURE__*/React.createElement(S.Label, {
|
|
47
|
-
"data-testid": "progress-bar-label"
|
|
48
|
-
|
|
49
|
-
}, label), /*#__PURE__*/React.createElement("span", {
|
|
46
|
+
}, rest), label && !inline && /*#__PURE__*/React.createElement(S.LabelWrapper, null, label && /*#__PURE__*/React.createElement(S.Label, {
|
|
47
|
+
"data-testid": "progress-bar-label"
|
|
48
|
+
}, label), /*#__PURE__*/React.createElement(S.Percent, {
|
|
50
49
|
"data-testid": "progress-bar-max-percent"
|
|
51
|
-
}, percent + "%")), /*#__PURE__*/React.createElement(
|
|
52
|
-
className: "progress-div"
|
|
53
|
-
}, tiles.map(function (tile, i) {
|
|
50
|
+
}, percent + "%")), /*#__PURE__*/React.createElement(S.ProgressOuter, null, tiles.map(function (tile, i) {
|
|
54
51
|
return /*#__PURE__*/React.createElement(S.ProgressWrapper, {
|
|
55
52
|
$thin: thin,
|
|
56
53
|
key: "key-" + tile.id,
|
|
@@ -59,8 +56,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
59
56
|
customColor: customColor,
|
|
60
57
|
$width: (tilesWidthRatios[i] || 0) * MAX_PERCENT + "%"
|
|
61
58
|
}));
|
|
62
|
-
})), inline && /*#__PURE__*/React.createElement(S.PercentWrapper, null, percent + "%"), description && !inline && /*#__PURE__*/React.createElement(
|
|
63
|
-
className: "progress-bar-description",
|
|
59
|
+
})), inline && /*#__PURE__*/React.createElement(S.PercentWrapper, null, label || percent + "%"), description && !inline && /*#__PURE__*/React.createElement(S.ProgressBarDescription, {
|
|
64
60
|
"data-testid": "progress-bar-description"
|
|
65
61
|
}, description));
|
|
66
62
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
var _excluded = ["colors", "label", "tileWidth", "percent"];
|
|
2
2
|
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; }
|
|
3
3
|
import React, { useCallback } from 'react';
|
|
4
|
-
import { FormFieldLabel } from '@synerise/ds-form-field';
|
|
5
4
|
import * as S from './ProgressTiles.styles';
|
|
6
5
|
var MAX_PERCENT = 100;
|
|
7
6
|
export var ProgressTiles = function ProgressTiles(_ref) {
|
|
@@ -25,9 +24,7 @@ export var ProgressTiles = function ProgressTiles(_ref) {
|
|
|
25
24
|
};
|
|
26
25
|
});
|
|
27
26
|
}, [colors, percent]);
|
|
28
|
-
return /*#__PURE__*/React.createElement(S.TilesWrapper, rest, label && /*#__PURE__*/React.createElement(
|
|
29
|
-
className: "progress-bar-label"
|
|
30
|
-
}, label), /*#__PURE__*/React.createElement("div", {
|
|
27
|
+
return /*#__PURE__*/React.createElement(S.TilesWrapper, rest, label && /*#__PURE__*/React.createElement(S.Label, null, label), /*#__PURE__*/React.createElement("div", {
|
|
31
28
|
className: "progress-bar-wrapper"
|
|
32
29
|
}, getTilesConfig().map(function (tile) {
|
|
33
30
|
return /*#__PURE__*/React.createElement(S.TileContainer, {
|
|
@@ -5,4 +5,5 @@ export declare const TileProgress: import("styled-components").StyledComponent<"
|
|
|
5
5
|
color: string;
|
|
6
6
|
width: string;
|
|
7
7
|
}, never>;
|
|
8
|
+
export declare const Label: import("styled-components").StyledComponent<({ id, label, tooltip, tooltipConfig, children, ...htmlAttributes }: import("@synerise/ds-form-field").FormFieldLabelProps) => React.JSX.Element, any, {}, never>;
|
|
8
9
|
export declare const TilesWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
|
+
import { FormFieldLabel } from '@synerise/ds-form-field';
|
|
2
3
|
export var TileContainer = styled.div.withConfig({
|
|
3
4
|
displayName: "ProgressTilesstyles__TileContainer",
|
|
4
5
|
componentId: "sc-sod9jl-0"
|
|
@@ -15,7 +16,11 @@ export var TileProgress = styled.div.withConfig({
|
|
|
15
16
|
}, function (props) {
|
|
16
17
|
return props.color;
|
|
17
18
|
});
|
|
19
|
+
export var Label = styled(FormFieldLabel).withConfig({
|
|
20
|
+
displayName: "ProgressTilesstyles__Label",
|
|
21
|
+
componentId: "sc-sod9jl-2"
|
|
22
|
+
})(["margin-bottom:12px;cursor:pointer;"]);
|
|
18
23
|
export var TilesWrapper = styled.div.withConfig({
|
|
19
24
|
displayName: "ProgressTilesstyles__TilesWrapper",
|
|
20
|
-
componentId: "sc-sod9jl-
|
|
21
|
-
})(["width:100%;display:flex;justify-content:center;flex-direction:column;.progress-bar-
|
|
25
|
+
componentId: "sc-sod9jl-3"
|
|
26
|
+
})(["width:100%;display:flex;justify-content:center;flex-direction:column;.progress-bar-wrapper{display:flex;}", ":first-of-type{border-radius:3px 0 0 3px;", ":first-of-type{border-radius:3px 0 0 3px;}}", ":last-of-type{border-radius:0 3px 3px 0;", ":last-of-type{border-radius:0 3px 3px 0;}}"], TileContainer, TileProgress, TileContainer, TileProgress);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-progress-bar",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.27",
|
|
4
4
|
"description": "Progress-Bar 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-form-field": "^1.2.
|
|
39
|
-
"@synerise/ds-utils": "^1.5.
|
|
38
|
+
"@synerise/ds-form-field": "^1.2.2",
|
|
39
|
+
"@synerise/ds-utils": "^1.5.3"
|
|
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": "
|
|
46
|
+
"gitHead": "70a5256c87ef38313eedb9a004d1c6980082b2f5"
|
|
47
47
|
}
|