@synerise/ds-progress-bar 0.9.2 → 0.10.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,17 @@
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.10.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@0.9.2...@synerise/ds-progress-bar@0.10.0) (2025-01-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * antd@4.24 react@18 ([d97a667](https://github.com/Synerise/synerise-design/commit/d97a667b1f33aed3177e1851de3b6f60be2d46a6))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [0.9.2](https://github.com/Synerise/synerise-design/compare/@synerise/ds-progress-bar@0.9.1...@synerise/ds-progress-bar@0.9.2) (2025-01-21)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-progress-bar
@@ -1,4 +1,4 @@
1
- import { WithHTMLAttributes } from "@synerise/ds-utils";
1
+ import { WithHTMLAttributes } from '@synerise/ds-utils';
2
2
  export type MultivalueProps = WithHTMLAttributes<HTMLDivElement, {
3
3
  values: ProgressValue[];
4
4
  stackedBars?: boolean;
@@ -1,8 +1,5 @@
1
1
  function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _setPrototypeOf(subClass, superClass); }
2
2
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
3
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
5
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6
3
  import React from 'react';
7
4
  import * as S from './ProgressBar.styles';
8
5
  var ProgressBar = /*#__PURE__*/function (_React$PureComponent) {
@@ -59,7 +56,7 @@ var ProgressBar = /*#__PURE__*/function (_React$PureComponent) {
59
56
  };
60
57
  return ProgressBar;
61
58
  }(React.PureComponent);
62
- _defineProperty(ProgressBar, "defaultProps", {
59
+ ProgressBar.defaultProps = {
63
60
  type: 'line',
64
61
  status: 'normal',
65
62
  strokeLinecap: 'round',
@@ -67,5 +64,5 @@ _defineProperty(ProgressBar, "defaultProps", {
67
64
  showLabel: false,
68
65
  description: '',
69
66
  maxPercent: true
70
- });
67
+ };
71
68
  export default ProgressBar;
@@ -1,13 +1,7 @@
1
1
  /// <reference types="react" />
2
- import Progress from 'antd/lib/progress';
3
2
  export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
4
3
  export declare const MaxValue: import("styled-components").StyledComponent<"strong", any, {}, never>;
5
- export declare const AntdProgressBar: import("styled-components").StyledComponent<typeof Progress, any, import("antd/lib/progress").ProgressProps & {
6
- amount?: number | undefined;
7
- showLabel?: boolean | undefined;
8
- description?: import("react").ReactNode;
4
+ export declare const AntdProgressBar: import("styled-components").StyledComponent<import("react").FC<import("antd/lib/progress").ProgressProps>, any, {
9
5
  thick?: boolean | undefined;
10
- labelFormatter?: ((amount?: string | number | undefined, percent?: string | number | undefined) => import("react").ReactNode) | undefined;
11
- containerStyles?: import("react").CSSProperties | undefined;
12
6
  maxPercent?: boolean | undefined;
13
7
  }, never>;
@@ -0,0 +1 @@
1
+ import '@testing-library/jest-dom';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-progress-bar",
3
- "version": "0.9.2",
3
+ "version": "0.10.0",
4
4
  "description": "Progress-Bar UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -34,14 +34,14 @@
34
34
  ],
35
35
  "types": "dist/index.d.ts",
36
36
  "dependencies": {
37
- "@synerise/ds-typography": "^0.16.12",
38
- "@synerise/ds-utils": "^0.31.2"
37
+ "@synerise/ds-typography": "^0.17.0",
38
+ "@synerise/ds-utils": "^0.32.0"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@synerise/ds-core": "*",
42
- "antd": "4.7.0",
43
- "react": ">=16.9.0 <= 17.0.2",
44
- "styled-components": "5.0.1"
42
+ "antd": "4.24.16",
43
+ "react": ">=16.9.0 <= 18.3.1",
44
+ "styled-components": "^5.3.3"
45
45
  },
46
- "gitHead": "56e23cda61b7ddfe7da4669307183b105a500e1a"
46
+ "gitHead": "fbde34e126b492edaf148e469ab96247a891d6df"
47
47
  }