@elliemae/ds-circular-progress-indicator 2.0.0-alpha.11 → 2.0.0-alpha.12

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.
@@ -19,13 +19,14 @@ const {
19
19
  classNameElement
20
20
  } = dsClassnames.convertPropToCssClassName('circular-progress-indicator');
21
21
 
22
- const CircularProgressIndicator = ({
23
- size,
24
- showLabel,
25
- showTooltip,
26
- waiting,
27
- loading
28
- }) => {
22
+ const CircularProgressIndicator = _ref => {
23
+ let {
24
+ size,
25
+ showLabel,
26
+ showTooltip,
27
+ waiting,
28
+ loading
29
+ } = _ref;
29
30
  const waitingLabel = 'Waiting...';
30
31
  const loadingLabel = 'Loading...';
31
32
  const currentLabel = waiting && !loading ? waitingLabel : loadingLabel;
@@ -10,13 +10,14 @@ const {
10
10
  classNameElement
11
11
  } = convertPropToCssClassName('circular-progress-indicator');
12
12
 
13
- const CircularProgressIndicator = ({
14
- size,
15
- showLabel,
16
- showTooltip,
17
- waiting,
18
- loading
19
- }) => {
13
+ const CircularProgressIndicator = _ref => {
14
+ let {
15
+ size,
16
+ showLabel,
17
+ showTooltip,
18
+ waiting,
19
+ loading
20
+ } = _ref;
20
21
  const waitingLabel = 'Waiting...';
21
22
  const loadingLabel = 'Loading...';
22
23
  const currentLabel = waiting && !loading ? waitingLabel : loadingLabel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-circular-progress-indicator",
3
- "version": "2.0.0-alpha.11",
3
+ "version": "2.0.0-alpha.12",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Circular progress indicator",
6
6
  "module": "./esm/index.js",
@@ -36,9 +36,13 @@
36
36
  "build": "node ../../scripts/build/build.js"
37
37
  },
38
38
  "dependencies": {
39
- "@elliemae/ds-classnames": "2.0.0-alpha.11",
40
- "@elliemae/ds-tooltip": "2.0.0-alpha.11",
41
- "react-desc": "^4.1.3"
39
+ "@elliemae/ds-classnames": "2.0.0-alpha.12",
40
+ "@elliemae/ds-tooltip": "2.0.0-alpha.12",
41
+ "react-desc": "~4.1.3"
42
+ },
43
+ "devDependencies": {
44
+ "@testing-library/jest-dom": "~5.15.0",
45
+ "@testing-library/react": "~12.1.2"
42
46
  },
43
47
  "peerDependencies": {
44
48
  "react": "^17.0.2",
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
1
2
  /// <reference types="react" />
2
3
  declare const CircularProgressIndicator: {
3
4
  ({ size, showLabel, showTooltip, waiting, loading }: {
@@ -15,13 +16,33 @@ declare const CircularProgressIndicator: {
15
16
  loading: boolean;
16
17
  };
17
18
  propTypes: {
19
+ size: {
20
+ deprecated: import("react-desc").PropTypesDescValidator;
21
+ };
22
+ showLabel: {
23
+ deprecated: import("react-desc").PropTypesDescValidator;
24
+ };
25
+ showTooltip: {
26
+ deprecated: import("react-desc").PropTypesDescValidator;
27
+ };
28
+ waiting: {
29
+ deprecated: import("react-desc").PropTypesDescValidator;
30
+ };
31
+ loading: {
32
+ deprecated: import("react-desc").PropTypesDescValidator;
33
+ };
34
+ };
35
+ };
36
+ declare const CircularProgressIndicatorWithSchema: {
37
+ (props?: {
18
38
  size: any;
19
39
  showLabel: any;
20
40
  showTooltip: any;
21
41
  waiting: any;
22
42
  loading: any;
23
- };
43
+ } | undefined): JSX.Element;
44
+ propTypes: unknown;
45
+ toTypescript: () => import("react-desc").TypescriptSchema;
24
46
  };
25
- declare const CircularProgressIndicatorWithSchema: any;
26
47
  export { CircularProgressIndicatorWithSchema };
27
48
  export default CircularProgressIndicator;