@synerise/ds-progress-bar 0.6.15 → 0.6.18

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,13 +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
- ## [0.6.15](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@0.6.14...@synerise/ds-progress-bar@0.6.15) (2022-07-28)
6
+ ## [0.6.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@0.6.17...@synerise/ds-progress-bar@0.6.18) (2022-08-04)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-progress-bar
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.6.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@0.6.14...@synerise/ds-progress-bar@0.6.17) (2022-08-04)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-progress-bar
17
+
7
18
 
8
19
 
9
- ### Bug Fixes
10
20
 
11
- * **progress-bar:** fix bar when is over 99% ([413ec7f](https://github.com/Synerise/synerise-design/commit/413ec7f4aec1febdea73279ba69ee08836e29573))
12
- * **progress-bar:** fix bar when is over 99% ([cf69288](https://github.com/Synerise/synerise-design/commit/cf692889473701ae1bb726f3d28da7cd0d362cd2))
21
+
22
+ ## [0.6.16](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@0.6.14...@synerise/ds-progress-bar@0.6.16) (2022-08-04)
23
+
24
+ **Note:** Version bump only for package @synerise/ds-progress-bar
13
25
 
14
26
 
15
27
 
@@ -8,7 +8,6 @@ declare class ProgressBar extends React.PureComponent<ProgressProps> {
8
8
  strokeColor: string;
9
9
  showLabel: boolean;
10
10
  description: string;
11
- maxPercent: boolean;
12
11
  };
13
12
  render(): React.ReactNode;
14
13
  }
@@ -27,17 +27,7 @@ var ProgressBar = /*#__PURE__*/function (_React$PureComponent) {
27
27
  className = _this$props.className,
28
28
  thick = _this$props.thick,
29
29
  labelFormatter = _this$props.labelFormatter,
30
- containerStyles = _this$props.containerStyles,
31
- maxPercent = _this$props.maxPercent;
32
-
33
- var maxBorderWidth = function maxBorderWidth() {
34
- if (percent === 100) {
35
- return maxPercent;
36
- }
37
-
38
- return false;
39
- };
40
-
30
+ containerStyles = _this$props.containerStyles;
41
31
  return /*#__PURE__*/React.createElement(S.Container, {
42
32
  className: (className || '') + " progress-bar-container",
43
33
  "data-testid": "progress-bar-container",
@@ -51,7 +41,6 @@ var ProgressBar = /*#__PURE__*/function (_React$PureComponent) {
51
41
  "data-testid": "progress-bar-max-percent"
52
42
  }, " (" + percent + "%)"))), /*#__PURE__*/React.createElement(S.AntdProgressBar, {
53
43
  percent: percent,
54
- maxPercent: maxBorderWidth(),
55
44
  type: type,
56
45
  thick: thick,
57
46
  status: status,
@@ -73,8 +62,7 @@ _defineProperty(ProgressBar, "defaultProps", {
73
62
  strokeLinecap: 'round',
74
63
  strokeColor: '#76dc25',
75
64
  showLabel: false,
76
- description: '',
77
- maxPercent: true
65
+ description: ''
78
66
  });
79
67
 
80
68
  export default ProgressBar;
@@ -15,7 +15,7 @@ export var MaxValue = styled.strong.withConfig({
15
15
  export var AntdProgressBar = styled(Progress).withConfig({
16
16
  displayName: "ProgressBarstyles__AntdProgressBar",
17
17
  componentId: "sc-1gqovic-2"
18
- })(["&.ant-progress-line{width:100%;height:", ";margin-top:", ";margin:14px 0;border-radius:3px;color:", ";overflow:hidden;box-sizing:content-box;.ant-progress-outer{display:flex;}.ant-progress-inner{width:100%;}.ant-progress-outer,.ant-progress-inner{background:", ";}.ant-progress-outer,.ant-progress-inner,.ant-progress-bg{height:6px !important;}.ant-progress-bg:first-child{border-top-right-radius:0px;border-bottom-right-radius:0px;border-right:", ";}}"], function (props) {
18
+ })(["&.ant-progress-line{width:100%;height:", ";margin-top:", ";margin:14px 0;border-radius:3px;color:", ";overflow:hidden;box-sizing:content-box;.ant-progress-outer{display:flex;}.ant-progress-inner{width:100%;}.ant-progress-outer,.ant-progress-inner{background:", ";}.ant-progress-outer,.ant-progress-inner,.ant-progress-bg{height:6px !important;}.ant-progress-bg:first-child{border-top-right-radius:0px;border-bottom-right-radius:0px;border-right:2px solid ", ";}}"], function (props) {
19
19
  return props.thick ? '3px' : '6px';
20
20
  }, function (props) {
21
21
  return props.thick ? '3px' : '0px';
@@ -24,5 +24,5 @@ export var AntdProgressBar = styled(Progress).withConfig({
24
24
  }, function (props) {
25
25
  return props.theme.palette['grey-100'];
26
26
  }, function (props) {
27
- return props.maxPercent ? "0px" : "2px solid " + props.theme.palette.white;
27
+ return props.theme.palette.white;
28
28
  });
@@ -7,5 +7,4 @@ export interface ProgressProps extends AntProgressProps {
7
7
  thick?: boolean;
8
8
  labelFormatter?: (amount?: string | number, percent?: string | number) => React.ReactNode;
9
9
  containerStyles?: React.CSSProperties;
10
- maxPercent?: boolean;
11
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-progress-bar",
3
- "version": "0.6.15",
3
+ "version": "0.6.18",
4
4
  "description": "Progress-Bar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -32,7 +32,7 @@
32
32
  ],
33
33
  "types": "dist/index.d.ts",
34
34
  "dependencies": {
35
- "@synerise/ds-typography": "^0.12.2"
35
+ "@synerise/ds-typography": "^0.12.5"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "@synerise/ds-core": "*",
@@ -40,7 +40,7 @@
40
40
  "react": ">=16.9.0 < 17.0.0"
41
41
  },
42
42
  "devDependencies": {
43
- "@synerise/ds-utils": "^0.22.3"
43
+ "@synerise/ds-utils": "^0.22.6"
44
44
  },
45
- "gitHead": "bf12565ec1e6a4124b0c54cdb61e22eae4401d93"
45
+ "gitHead": "28486eab4b37b485cbe2a383e3ae9b8e9d789862"
46
46
  }