@elliemae/ds-circular-progress-indicator 2.2.1 → 2.2.3-next.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/cjs/index.js +3 -0
- package/cjs/v2/DSCircularIndeterminateIndicator.js +134 -0
- package/cjs/v2/index.js +10 -0
- package/cjs/v2/react-desc-prop-types.js +17 -0
- package/esm/index.js +1 -0
- package/esm/v2/DSCircularIndeterminateIndicator.js +123 -0
- package/esm/v2/index.js +1 -0
- package/esm/v2/react-desc-prop-types.js +13 -0
- package/package.json +15 -3
- package/types/index.d.ts +1 -0
- package/types/v2/DSCircularIndeterminateIndicator.d.ts +9 -0
- package/types/v2/index.d.ts +1 -0
- package/types/v2/react-desc-prop-types.d.ts +32 -0
package/cjs/index.js
CHANGED
|
@@ -3,9 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var DSCircularProgressIndicator = require('./DSCircularProgressIndicator.js');
|
|
6
|
+
var DSCircularIndeterminateIndicator = require('./v2/DSCircularIndeterminateIndicator.js');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
exports.CircularProgressIndicatorWithSchema = DSCircularProgressIndicator.CircularProgressIndicatorWithSchema;
|
|
10
11
|
exports.DSCircularProgressIndicator = DSCircularProgressIndicator["default"];
|
|
11
12
|
exports["default"] = DSCircularProgressIndicator["default"];
|
|
13
|
+
exports.DSCircularIndeterminateIndicator = DSCircularIndeterminateIndicator.DSCircularIndeterminateIndicator;
|
|
14
|
+
exports.DSCircularIndeterminateIndicatorWithSchema = DSCircularIndeterminateIndicator.DSCircularIndeterminateIndicatorWithSchema;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
+
var _taggedTemplateLiteral = require('@babel/runtime/helpers/taggedTemplateLiteral');
|
|
7
|
+
require('react');
|
|
8
|
+
var dsGrid = require('@elliemae/ds-grid');
|
|
9
|
+
var DSTooltip = require('@elliemae/ds-tooltip');
|
|
10
|
+
var reactDesc = require('react-desc');
|
|
11
|
+
var styled = require('styled-components');
|
|
12
|
+
var dsSystem = require('@elliemae/ds-system');
|
|
13
|
+
var uid = require('uid');
|
|
14
|
+
var reactDescPropTypes = require('./react-desc-prop-types.js');
|
|
15
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
16
|
+
|
|
17
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
|
+
|
|
19
|
+
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
20
|
+
var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
|
|
21
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
22
|
+
|
|
23
|
+
var _templateObject, _templateObject2, _circle;
|
|
24
|
+
const r = dsSystem.kfrm(_templateObject || (_templateObject = _taggedTemplateLiteral__default["default"](["to { transform: rotate(2turn) }"])));
|
|
25
|
+
const s = dsSystem.kfrm(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral__default["default"](["0%, 39% { stroke-dasharray: 942px 2826px }"])));
|
|
26
|
+
const StyledSvg = /*#__PURE__*/styled__default["default"].svg.withConfig({
|
|
27
|
+
componentId: "sc-3syz25-0"
|
|
28
|
+
})(["#gg{transform:rotate(45deg);stroke:url(#", ");mask:url(#", ");}mask use{stroke:#fff;stroke-linecap:round;stroke-dasharray:942px 2826px;animation:", " ", "s cubic-bezier(0.5,-0.43,0.5,1.43) infinite,", " ", "s ease-in-out infinite alternate;}"], props => props.linearGradientUid, props => props.maskUid, r, props => props.duration, s, props => props.duration / 2);
|
|
29
|
+
const sizeToPx = {
|
|
30
|
+
xs: '16px',
|
|
31
|
+
s: '24px',
|
|
32
|
+
m: '32px',
|
|
33
|
+
l: '48px',
|
|
34
|
+
xl: '56px',
|
|
35
|
+
xxl: '64px'
|
|
36
|
+
};
|
|
37
|
+
const sizeToWeight = {
|
|
38
|
+
xs: '10%',
|
|
39
|
+
s: '9%',
|
|
40
|
+
m: '8%',
|
|
41
|
+
l: '6%',
|
|
42
|
+
xl: '5%',
|
|
43
|
+
xxl: '4%'
|
|
44
|
+
};
|
|
45
|
+
const colorToHex = {
|
|
46
|
+
light: '#FFFFFF',
|
|
47
|
+
dark: '#0F364A'
|
|
48
|
+
};
|
|
49
|
+
const sizeToTextSize = {
|
|
50
|
+
xs: '12px',
|
|
51
|
+
s: '12px',
|
|
52
|
+
m: '12px',
|
|
53
|
+
l: '13px',
|
|
54
|
+
xl: '14px',
|
|
55
|
+
xxl: '16px'
|
|
56
|
+
};
|
|
57
|
+
const DSCircularIndeterminateIndicator = _ref => {
|
|
58
|
+
let {
|
|
59
|
+
size = 'm',
|
|
60
|
+
color = 'dark',
|
|
61
|
+
text = '',
|
|
62
|
+
showText = true,
|
|
63
|
+
withTooltip = false,
|
|
64
|
+
tooltipStartPlacementPreference = 'bottom',
|
|
65
|
+
__duration = 1.5
|
|
66
|
+
} = _ref;
|
|
67
|
+
const Wrapper = withTooltip ? DSTooltip.DSTooltipV3 : _ref2 => {
|
|
68
|
+
let {
|
|
69
|
+
children
|
|
70
|
+
} = _ref2;
|
|
71
|
+
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
72
|
+
children: children
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
const linearGradientUid = uid.uid(16);
|
|
76
|
+
const maskUid = uid.uid(16);
|
|
77
|
+
const circleUid = uid.uid(16);
|
|
78
|
+
return /*#__PURE__*/_jsx__default["default"](dsGrid.Grid, {
|
|
79
|
+
gutter: "xs",
|
|
80
|
+
justifyContent: "center",
|
|
81
|
+
role: "status"
|
|
82
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](Wrapper, {
|
|
83
|
+
text: text,
|
|
84
|
+
textAlign: "center",
|
|
85
|
+
startPlacementPreference: tooltipStartPlacementPreference
|
|
86
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"](StyledSvg, {
|
|
87
|
+
viewBox: "-1950 -975 3900 1950",
|
|
88
|
+
fill: "none",
|
|
89
|
+
stroke: "transparent",
|
|
90
|
+
strokeWidth: sizeToWeight[size],
|
|
91
|
+
width: sizeToPx[size],
|
|
92
|
+
height: sizeToPx[size],
|
|
93
|
+
style: {
|
|
94
|
+
display: 'block',
|
|
95
|
+
margin: 'auto'
|
|
96
|
+
},
|
|
97
|
+
linearGradientUid: linearGradientUid,
|
|
98
|
+
maskUid: maskUid,
|
|
99
|
+
duration: __duration
|
|
100
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("g", {
|
|
101
|
+
transform: "scale(2.298)"
|
|
102
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("linearGradient", {
|
|
103
|
+
id: linearGradientUid
|
|
104
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("stop", {
|
|
105
|
+
stopColor: color === 'dark' ? '#48a3ff' : '#ccd6ff'
|
|
106
|
+
}), /*#__PURE__*/_jsx__default["default"]("stop", {
|
|
107
|
+
stopColor: color === 'dark' ? '#49d0ff' : '#ebf6ff',
|
|
108
|
+
offset: "1"
|
|
109
|
+
})), /*#__PURE__*/_jsx__default["default"]("mask", {
|
|
110
|
+
id: maskUid
|
|
111
|
+
}, void 0, _circle || (_circle = /*#__PURE__*/_jsx__default["default"]("circle", {
|
|
112
|
+
r: "1200",
|
|
113
|
+
fill: "#000"
|
|
114
|
+
})), /*#__PURE__*/_jsx__default["default"]("use", {
|
|
115
|
+
xlinkHref: "#".concat(circleUid)
|
|
116
|
+
})), /*#__PURE__*/_jsx__default["default"]("circle", {
|
|
117
|
+
id: circleUid,
|
|
118
|
+
r: "600"
|
|
119
|
+
}), /*#__PURE__*/_jsx__default["default"]("g", {
|
|
120
|
+
id: "gg"
|
|
121
|
+
}, void 0, /*#__PURE__*/_jsx__default["default"]("use", {
|
|
122
|
+
xlinkHref: "#".concat(circleUid)
|
|
123
|
+
})))), text !== '' && showText && /*#__PURE__*/_jsx__default["default"]("span", {
|
|
124
|
+
style: {
|
|
125
|
+
color: colorToHex[color],
|
|
126
|
+
fontSize: sizeToTextSize[size]
|
|
127
|
+
}
|
|
128
|
+
}, void 0, text)));
|
|
129
|
+
};
|
|
130
|
+
const DSCircularIndeterminateIndicatorWithSchema = reactDesc.describe(DSCircularIndeterminateIndicator);
|
|
131
|
+
DSCircularIndeterminateIndicatorWithSchema.propTypes = reactDescPropTypes.CircularIndeterminateIndicatorPropTypes;
|
|
132
|
+
|
|
133
|
+
exports.DSCircularIndeterminateIndicator = DSCircularIndeterminateIndicator;
|
|
134
|
+
exports.DSCircularIndeterminateIndicatorWithSchema = DSCircularIndeterminateIndicatorWithSchema;
|
package/cjs/v2/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var DSCircularIndeterminateIndicator = require('./DSCircularIndeterminateIndicator.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.DSCircularIndeterminateIndicator = DSCircularIndeterminateIndicator.DSCircularIndeterminateIndicator;
|
|
10
|
+
exports.DSCircularIndeterminateIndicatorWithSchema = DSCircularIndeterminateIndicator.DSCircularIndeterminateIndicatorWithSchema;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var reactDesc = require('react-desc');
|
|
6
|
+
|
|
7
|
+
/* eslint-disable max-lines */
|
|
8
|
+
const CircularIndeterminateIndicatorPropTypes = {
|
|
9
|
+
size: reactDesc.PropTypes.oneOf(['xs', 's', 'm', 'l', 'xl', 'xxl']).description('Size of the indicator').defaultValue('m'),
|
|
10
|
+
color: reactDesc.PropTypes.oneOf(['light', 'dark']).description('Color mode for the indicator').defaultValue('dark'),
|
|
11
|
+
text: reactDesc.PropTypes.string.description('Optional text to show under the indicator').defaultValue(''),
|
|
12
|
+
showText: reactDesc.PropTypes.bool.description('Whether to show the optional text or not').defaultValue(true),
|
|
13
|
+
withTooltip: reactDesc.PropTypes.bool.description('Whether to include a tooltip that shows the optional text on hover').defaultValue(false),
|
|
14
|
+
tooltipStartPlacementPreference: reactDesc.PropTypes.oneOf(['top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']).description('start placement preference for the tooltip').defaultValue('center')
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
exports.CircularIndeterminateIndicatorPropTypes = CircularIndeterminateIndicatorPropTypes;
|
package/esm/index.js
CHANGED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import _jsx from '@babel/runtime/helpers/esm/jsx';
|
|
2
|
+
import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
|
|
3
|
+
import 'react';
|
|
4
|
+
import { Grid } from '@elliemae/ds-grid';
|
|
5
|
+
import { DSTooltipV3 } from '@elliemae/ds-tooltip';
|
|
6
|
+
import { describe } from 'react-desc';
|
|
7
|
+
import styled from 'styled-components';
|
|
8
|
+
import { kfrm } from '@elliemae/ds-system';
|
|
9
|
+
import { uid } from 'uid';
|
|
10
|
+
import { CircularIndeterminateIndicatorPropTypes } from './react-desc-prop-types.js';
|
|
11
|
+
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
12
|
+
|
|
13
|
+
var _templateObject, _templateObject2, _circle;
|
|
14
|
+
const r = kfrm(_templateObject || (_templateObject = _taggedTemplateLiteral(["to { transform: rotate(2turn) }"])));
|
|
15
|
+
const s = kfrm(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["0%, 39% { stroke-dasharray: 942px 2826px }"])));
|
|
16
|
+
const StyledSvg = /*#__PURE__*/styled.svg.withConfig({
|
|
17
|
+
componentId: "sc-3syz25-0"
|
|
18
|
+
})(["#gg{transform:rotate(45deg);stroke:url(#", ");mask:url(#", ");}mask use{stroke:#fff;stroke-linecap:round;stroke-dasharray:942px 2826px;animation:", " ", "s cubic-bezier(0.5,-0.43,0.5,1.43) infinite,", " ", "s ease-in-out infinite alternate;}"], props => props.linearGradientUid, props => props.maskUid, r, props => props.duration, s, props => props.duration / 2);
|
|
19
|
+
const sizeToPx = {
|
|
20
|
+
xs: '16px',
|
|
21
|
+
s: '24px',
|
|
22
|
+
m: '32px',
|
|
23
|
+
l: '48px',
|
|
24
|
+
xl: '56px',
|
|
25
|
+
xxl: '64px'
|
|
26
|
+
};
|
|
27
|
+
const sizeToWeight = {
|
|
28
|
+
xs: '10%',
|
|
29
|
+
s: '9%',
|
|
30
|
+
m: '8%',
|
|
31
|
+
l: '6%',
|
|
32
|
+
xl: '5%',
|
|
33
|
+
xxl: '4%'
|
|
34
|
+
};
|
|
35
|
+
const colorToHex = {
|
|
36
|
+
light: '#FFFFFF',
|
|
37
|
+
dark: '#0F364A'
|
|
38
|
+
};
|
|
39
|
+
const sizeToTextSize = {
|
|
40
|
+
xs: '12px',
|
|
41
|
+
s: '12px',
|
|
42
|
+
m: '12px',
|
|
43
|
+
l: '13px',
|
|
44
|
+
xl: '14px',
|
|
45
|
+
xxl: '16px'
|
|
46
|
+
};
|
|
47
|
+
const DSCircularIndeterminateIndicator = _ref => {
|
|
48
|
+
let {
|
|
49
|
+
size = 'm',
|
|
50
|
+
color = 'dark',
|
|
51
|
+
text = '',
|
|
52
|
+
showText = true,
|
|
53
|
+
withTooltip = false,
|
|
54
|
+
tooltipStartPlacementPreference = 'bottom',
|
|
55
|
+
__duration = 1.5
|
|
56
|
+
} = _ref;
|
|
57
|
+
const Wrapper = withTooltip ? DSTooltipV3 : _ref2 => {
|
|
58
|
+
let {
|
|
59
|
+
children
|
|
60
|
+
} = _ref2;
|
|
61
|
+
return /*#__PURE__*/jsx(Fragment, {
|
|
62
|
+
children: children
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
const linearGradientUid = uid(16);
|
|
66
|
+
const maskUid = uid(16);
|
|
67
|
+
const circleUid = uid(16);
|
|
68
|
+
return /*#__PURE__*/_jsx(Grid, {
|
|
69
|
+
gutter: "xs",
|
|
70
|
+
justifyContent: "center",
|
|
71
|
+
role: "status"
|
|
72
|
+
}, void 0, /*#__PURE__*/_jsx(Wrapper, {
|
|
73
|
+
text: text,
|
|
74
|
+
textAlign: "center",
|
|
75
|
+
startPlacementPreference: tooltipStartPlacementPreference
|
|
76
|
+
}, void 0, /*#__PURE__*/_jsx(StyledSvg, {
|
|
77
|
+
viewBox: "-1950 -975 3900 1950",
|
|
78
|
+
fill: "none",
|
|
79
|
+
stroke: "transparent",
|
|
80
|
+
strokeWidth: sizeToWeight[size],
|
|
81
|
+
width: sizeToPx[size],
|
|
82
|
+
height: sizeToPx[size],
|
|
83
|
+
style: {
|
|
84
|
+
display: 'block',
|
|
85
|
+
margin: 'auto'
|
|
86
|
+
},
|
|
87
|
+
linearGradientUid: linearGradientUid,
|
|
88
|
+
maskUid: maskUid,
|
|
89
|
+
duration: __duration
|
|
90
|
+
}, void 0, /*#__PURE__*/_jsx("g", {
|
|
91
|
+
transform: "scale(2.298)"
|
|
92
|
+
}, void 0, /*#__PURE__*/_jsx("linearGradient", {
|
|
93
|
+
id: linearGradientUid
|
|
94
|
+
}, void 0, /*#__PURE__*/_jsx("stop", {
|
|
95
|
+
stopColor: color === 'dark' ? '#48a3ff' : '#ccd6ff'
|
|
96
|
+
}), /*#__PURE__*/_jsx("stop", {
|
|
97
|
+
stopColor: color === 'dark' ? '#49d0ff' : '#ebf6ff',
|
|
98
|
+
offset: "1"
|
|
99
|
+
})), /*#__PURE__*/_jsx("mask", {
|
|
100
|
+
id: maskUid
|
|
101
|
+
}, void 0, _circle || (_circle = /*#__PURE__*/_jsx("circle", {
|
|
102
|
+
r: "1200",
|
|
103
|
+
fill: "#000"
|
|
104
|
+
})), /*#__PURE__*/_jsx("use", {
|
|
105
|
+
xlinkHref: "#".concat(circleUid)
|
|
106
|
+
})), /*#__PURE__*/_jsx("circle", {
|
|
107
|
+
id: circleUid,
|
|
108
|
+
r: "600"
|
|
109
|
+
}), /*#__PURE__*/_jsx("g", {
|
|
110
|
+
id: "gg"
|
|
111
|
+
}, void 0, /*#__PURE__*/_jsx("use", {
|
|
112
|
+
xlinkHref: "#".concat(circleUid)
|
|
113
|
+
})))), text !== '' && showText && /*#__PURE__*/_jsx("span", {
|
|
114
|
+
style: {
|
|
115
|
+
color: colorToHex[color],
|
|
116
|
+
fontSize: sizeToTextSize[size]
|
|
117
|
+
}
|
|
118
|
+
}, void 0, text)));
|
|
119
|
+
};
|
|
120
|
+
const DSCircularIndeterminateIndicatorWithSchema = describe(DSCircularIndeterminateIndicator);
|
|
121
|
+
DSCircularIndeterminateIndicatorWithSchema.propTypes = CircularIndeterminateIndicatorPropTypes;
|
|
122
|
+
|
|
123
|
+
export { DSCircularIndeterminateIndicator, DSCircularIndeterminateIndicatorWithSchema };
|
package/esm/v2/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DSCircularIndeterminateIndicator, DSCircularIndeterminateIndicatorWithSchema } from './DSCircularIndeterminateIndicator.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PropTypes } from 'react-desc';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable max-lines */
|
|
4
|
+
const CircularIndeterminateIndicatorPropTypes = {
|
|
5
|
+
size: PropTypes.oneOf(['xs', 's', 'm', 'l', 'xl', 'xxl']).description('Size of the indicator').defaultValue('m'),
|
|
6
|
+
color: PropTypes.oneOf(['light', 'dark']).description('Color mode for the indicator').defaultValue('dark'),
|
|
7
|
+
text: PropTypes.string.description('Optional text to show under the indicator').defaultValue(''),
|
|
8
|
+
showText: PropTypes.bool.description('Whether to show the optional text or not').defaultValue(true),
|
|
9
|
+
withTooltip: PropTypes.bool.description('Whether to include a tooltip that shows the optional text on hover').defaultValue(false),
|
|
10
|
+
tooltipStartPlacementPreference: PropTypes.oneOf(['top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start']).description('start placement preference for the tooltip').defaultValue('center')
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { CircularIndeterminateIndicatorPropTypes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-circular-progress-indicator",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.3-next.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Circular progress indicator",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
"import": "./esm/index.js",
|
|
12
12
|
"require": "./cjs/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./v2/react-desc-prop-types": {
|
|
15
|
+
"import": "./esm/v2/react-desc-prop-types.js",
|
|
16
|
+
"require": "./cjs/v2/react-desc-prop-types.js"
|
|
17
|
+
},
|
|
18
|
+
"./v2": {
|
|
19
|
+
"import": "./esm/v2/index.js",
|
|
20
|
+
"require": "./cjs/v2/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./v2/DSCircularIndeterminateIndicator": {
|
|
23
|
+
"import": "./esm/v2/DSCircularIndeterminateIndicator.js",
|
|
24
|
+
"require": "./cjs/v2/DSCircularIndeterminateIndicator.js"
|
|
25
|
+
},
|
|
14
26
|
"./DSCircularProgressIndicator": {
|
|
15
27
|
"import": "./esm/DSCircularProgressIndicator.js",
|
|
16
28
|
"require": "./cjs/DSCircularProgressIndicator.js"
|
|
@@ -36,8 +48,8 @@
|
|
|
36
48
|
"build": "node ../../scripts/build/build.js"
|
|
37
49
|
},
|
|
38
50
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-classnames": "2.2.
|
|
40
|
-
"@elliemae/ds-tooltip": "2.2.
|
|
51
|
+
"@elliemae/ds-classnames": "2.2.3-next.0",
|
|
52
|
+
"@elliemae/ds-tooltip": "2.2.3-next.0",
|
|
41
53
|
"react-desc": "~4.1.3"
|
|
42
54
|
},
|
|
43
55
|
"devDependencies": {
|
package/types/index.d.ts
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { DSCircularIndeterminateIndicatorT } from './react-desc-prop-types';
|
|
4
|
+
export declare const DSCircularIndeterminateIndicator: React.ComponentType<DSCircularIndeterminateIndicatorT.Props>;
|
|
5
|
+
export declare const DSCircularIndeterminateIndicatorWithSchema: {
|
|
6
|
+
(props?: unknown): JSX.Element;
|
|
7
|
+
propTypes: unknown;
|
|
8
|
+
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DSCircularIndeterminateIndicator';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference path="../../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
+
export declare namespace DSCircularIndeterminateIndicatorT {
|
|
3
|
+
interface Props {
|
|
4
|
+
size?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
5
|
+
color?: 'light' | 'dark';
|
|
6
|
+
text?: string;
|
|
7
|
+
showText?: boolean;
|
|
8
|
+
withTooltip: boolean;
|
|
9
|
+
tooltipStartPlacementPreference?: 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start';
|
|
10
|
+
__duration: number;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export declare const CircularIndeterminateIndicatorPropTypes: {
|
|
14
|
+
size: {
|
|
15
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
16
|
+
};
|
|
17
|
+
color: {
|
|
18
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
19
|
+
};
|
|
20
|
+
text: {
|
|
21
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
22
|
+
};
|
|
23
|
+
showText: {
|
|
24
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
+
};
|
|
26
|
+
withTooltip: {
|
|
27
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
28
|
+
};
|
|
29
|
+
tooltipStartPlacementPreference: {
|
|
30
|
+
deprecated: import("react-desc").PropTypesDescValidator;
|
|
31
|
+
};
|
|
32
|
+
};
|