@synerise/ds-progress-bar 0.7.3 → 0.7.5

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,22 @@
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.7.5](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@0.7.4...@synerise/ds-progress-bar@0.7.5) (2024-09-17)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-progress-bar
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.7.4](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@0.7.3...@synerise/ds-progress-bar@0.7.4) (2024-09-13)
15
+
16
+ **Note:** Version bump only for package @synerise/ds-progress-bar
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.7.3](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@0.7.2...@synerise/ds-progress-bar@0.7.3) (2024-09-11)
7
23
 
8
24
  **Note:** Version bump only for package @synerise/ds-progress-bar
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { MultivalueProps } from './Multivalue.types';
3
3
  declare const Multivalue: React.FC<MultivalueProps>;
4
4
  export default Multivalue;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import * as S from './MultiValue.styles';
3
3
 
4
4
  var normalizePercent = function normalizePercent(value) {
@@ -13,15 +13,12 @@ var Multivalue = function Multivalue(props) {
13
13
  return b.percent - a.percent;
14
14
  });
15
15
  return /*#__PURE__*/React.createElement(S.Container, null, sortedByPercent.map(function (val, index) {
16
- return (
17
- /*#__PURE__*/
16
+ return /*#__PURE__*/React.createElement(S.Multivalue, {
18
17
  // eslint-disable-next-line react/no-array-index-key
19
- React.createElement(S.Multivalue, {
20
- key: val.color + "-" + val.percent + "-" + index,
21
- color: val.color,
22
- percent: normalizePercent(val.percent)
23
- })
24
- );
18
+ key: val.color + "-" + val.percent + "-" + index,
19
+ color: val.color,
20
+ percent: normalizePercent(val.percent)
21
+ });
25
22
  }));
26
23
  };
27
24
 
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ProgressProps } from './ProgressBar.types';
3
3
  declare class ProgressBar extends React.PureComponent<ProgressProps> {
4
4
  static defaultProps: {
@@ -2,7 +2,7 @@ function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.crea
2
2
 
3
3
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
4
 
5
- import * as React from 'react';
5
+ import React from 'react';
6
6
  import * as S from './ProgressBar.styles';
7
7
 
8
8
  var ProgressBar = /*#__PURE__*/function (_React$PureComponent) {
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { ProgressTilesProps } from './ProgressTiles.types';
3
3
  export declare const ProgressTiles: React.FC<ProgressTilesProps>;
4
4
  export default ProgressTiles;
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { Label } from '@synerise/ds-typography';
3
3
  import * as S from './ProgressTiles.styles';
4
4
  var MAX_PERCENT = 100;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-progress-bar",
3
- "version": "0.7.3",
3
+ "version": "0.7.5",
4
4
  "description": "Progress-Bar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -33,8 +33,8 @@
33
33
  ],
34
34
  "types": "dist/index.d.ts",
35
35
  "dependencies": {
36
- "@synerise/ds-typography": "^0.15.1",
37
- "@synerise/ds-utils": "^0.29.1"
36
+ "@synerise/ds-typography": "^0.15.2",
37
+ "@synerise/ds-utils": "^0.29.3"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@synerise/ds-core": "*",
@@ -42,5 +42,5 @@
42
42
  "react": ">=16.9.0 <= 17.0.2",
43
43
  "styled-components": "5.0.1"
44
44
  },
45
- "gitHead": "fcf3fa64e906cf9fefb37a61ee28218c8eed9b73"
45
+ "gitHead": "ae3c38b44ca0f9071cd55f7b82c182a99b5710e8"
46
46
  }