@elliemae/ds-indeterminate-progress-indicator 2.4.2-rc.9 → 2.4.3-rc.1
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.
@@ -2,14 +2,13 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
6
|
-
var _jsx = require('@babel/runtime/helpers/jsx');
|
7
|
-
require('core-js/modules/web.dom-collections.iterator.js');
|
8
5
|
require('core-js/modules/esnext.async-iterator.filter.js');
|
9
6
|
require('core-js/modules/esnext.iterator.constructor.js');
|
10
7
|
require('core-js/modules/esnext.iterator.filter.js');
|
11
8
|
require('core-js/modules/esnext.async-iterator.for-each.js');
|
12
9
|
require('core-js/modules/esnext.iterator.for-each.js');
|
10
|
+
var _defineProperty = require('@babel/runtime/helpers/defineProperty');
|
11
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
13
12
|
var react = require('react');
|
14
13
|
var reactDesc = require('react-desc');
|
15
14
|
var dsClassnames = require('@elliemae/ds-classnames');
|
@@ -58,8 +57,12 @@ function DSIndeterminateProgressIndicator(_ref) {
|
|
58
57
|
"aria-busy": processing,
|
59
58
|
"aria-label": label,
|
60
59
|
"aria-live": "polite",
|
61
|
-
className:
|
62
|
-
failed ? classNameBlock('failed') : ''
|
60
|
+
className: `${cssClassName} ${!complete && !failed && !processing ? classNameBlock('default') : ''} ${complete ? classNameBlock('complete') : ''} ${// eslint-disable-next-line max-len
|
61
|
+
failed ? classNameBlock('failed') : ''} ${processing ? classNameBlock('processing') : ''} ${animated && processing ? 'animated' : ''}
|
62
|
+
${processingComplete ? classNameBlock('processing-complete') : ''}
|
63
|
+
${processingFail ? classNameBlock('processing-fail') : ''}
|
64
|
+
${lineOnly ? 'line-only' : null}
|
65
|
+
`,
|
63
66
|
role: "alert"
|
64
67
|
}, containerProps), {}, {
|
65
68
|
children: [!lineOnly ? /*#__PURE__*/_jsx__default["default"](DSTruncatedTooltipText__default["default"], {
|
@@ -67,11 +70,11 @@ function DSIndeterminateProgressIndicator(_ref) {
|
|
67
70
|
containerComponent: _div || (_div = /*#__PURE__*/_jsx__default["default"]("div", {})),
|
68
71
|
value: label
|
69
72
|
}) : null, /*#__PURE__*/_jsx__default["default"]("div", {
|
70
|
-
className:
|
73
|
+
className: `${classNameElement('bar')}`
|
71
74
|
}, void 0, /*#__PURE__*/_jsx__default["default"]("div", {
|
72
|
-
className:
|
75
|
+
className: `${classNameElement('bar-indicator')}`,
|
73
76
|
style: {
|
74
|
-
width:
|
77
|
+
width: `${!complete && !failed && !animated && processing ? percent : 100}%`
|
75
78
|
}
|
76
79
|
}))]
|
77
80
|
}));
|
@@ -5,7 +5,6 @@ import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
5
|
import 'core-js/modules/esnext.iterator.for-each.js';
|
6
6
|
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
7
7
|
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
8
|
-
import 'core-js/modules/web.dom-collections.iterator.js';
|
9
8
|
import { useState, useEffect } from 'react';
|
10
9
|
import { PropTypes, describe } from 'react-desc';
|
11
10
|
import { convertPropToCssClassName } from '@elliemae/ds-classnames';
|
@@ -48,8 +47,12 @@ function DSIndeterminateProgressIndicator(_ref) {
|
|
48
47
|
"aria-busy": processing,
|
49
48
|
"aria-label": label,
|
50
49
|
"aria-live": "polite",
|
51
|
-
className:
|
52
|
-
failed ? classNameBlock('failed') : ''
|
50
|
+
className: `${cssClassName} ${!complete && !failed && !processing ? classNameBlock('default') : ''} ${complete ? classNameBlock('complete') : ''} ${// eslint-disable-next-line max-len
|
51
|
+
failed ? classNameBlock('failed') : ''} ${processing ? classNameBlock('processing') : ''} ${animated && processing ? 'animated' : ''}
|
52
|
+
${processingComplete ? classNameBlock('processing-complete') : ''}
|
53
|
+
${processingFail ? classNameBlock('processing-fail') : ''}
|
54
|
+
${lineOnly ? 'line-only' : null}
|
55
|
+
`,
|
53
56
|
role: "alert"
|
54
57
|
}, containerProps), {}, {
|
55
58
|
children: [!lineOnly ? /*#__PURE__*/_jsx(DSTruncatedTooltipText, {
|
@@ -57,11 +60,11 @@ function DSIndeterminateProgressIndicator(_ref) {
|
|
57
60
|
containerComponent: _div || (_div = /*#__PURE__*/_jsx("div", {})),
|
58
61
|
value: label
|
59
62
|
}) : null, /*#__PURE__*/_jsx("div", {
|
60
|
-
className:
|
63
|
+
className: `${classNameElement('bar')}`
|
61
64
|
}, void 0, /*#__PURE__*/_jsx("div", {
|
62
|
-
className:
|
65
|
+
className: `${classNameElement('bar-indicator')}`,
|
63
66
|
style: {
|
64
|
-
width:
|
67
|
+
width: `${!complete && !failed && !animated && processing ? percent : 100}%`
|
65
68
|
}
|
66
69
|
}))]
|
67
70
|
}));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@elliemae/ds-indeterminate-progress-indicator",
|
3
|
-
"version": "2.4.
|
3
|
+
"version": "2.4.3-rc.1",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "ICE MT - Dimsum - Indeterminate Progress Indicator",
|
6
6
|
"module": "./esm/index.js",
|
@@ -36,8 +36,8 @@
|
|
36
36
|
"build": "node ../../scripts/build/build.js"
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
|
-
"@elliemae/ds-classnames": "2.4.
|
40
|
-
"@elliemae/ds-truncated-tooltip-text": "2.4.
|
39
|
+
"@elliemae/ds-classnames": "2.4.3-rc.1",
|
40
|
+
"@elliemae/ds-truncated-tooltip-text": "2.4.3-rc.1",
|
41
41
|
"react-desc": "~4.1.3"
|
42
42
|
},
|
43
43
|
"peerDependencies": {
|