@elliemae/ds-circular-progress-indicator 2.3.1-rc.2 → 3.0.0-alpha.2
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/dist/cjs/DSCircularProgressIndicator.js +246 -0
- package/dist/cjs/DSCircularProgressIndicator.js.map +7 -0
- package/dist/cjs/index.js +40 -0
- package/dist/cjs/index.js.map +7 -0
- package/dist/cjs/v2/DSCircularIndeterminateIndicator.js +121 -0
- package/dist/cjs/v2/DSCircularIndeterminateIndicator.js.map +7 -0
- package/dist/cjs/v2/constants.js +65 -0
- package/dist/cjs/v2/constants.js.map +7 -0
- package/dist/cjs/v2/index.js +36 -0
- package/dist/cjs/v2/index.js.map +7 -0
- package/dist/cjs/v2/react-desc-prop-types.js +83 -0
- package/dist/cjs/v2/react-desc-prop-types.js.map +7 -0
- package/dist/cjs/v2/styled.js +137 -0
- package/dist/cjs/v2/styled.js.map +7 -0
- package/dist/esm/DSCircularProgressIndicator.js +217 -0
- package/dist/esm/DSCircularProgressIndicator.js.map +7 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +7 -0
- package/dist/esm/v2/DSCircularIndeterminateIndicator.js +97 -0
- package/dist/esm/v2/DSCircularIndeterminateIndicator.js.map +7 -0
- package/dist/esm/v2/constants.js +36 -0
- package/dist/esm/v2/constants.js.map +7 -0
- package/dist/esm/v2/index.js +10 -0
- package/dist/esm/v2/index.js.map +7 -0
- package/dist/esm/v2/react-desc-prop-types.js +56 -0
- package/dist/esm/v2/react-desc-prop-types.js.map +7 -0
- package/dist/esm/v2/styled.js +108 -0
- package/dist/esm/v2/styled.js.map +7 -0
- package/package.json +38 -41
- package/cjs/DSCircularProgressIndicator.js +0 -268
- package/cjs/index.js +0 -14
- package/cjs/v2/DSCircularIndeterminateIndicator.js +0 -113
- package/cjs/v2/constants.js +0 -37
- package/cjs/v2/index.js +0 -10
- package/cjs/v2/react-desc-prop-types.js +0 -39
- package/cjs/v2/styled.js +0 -51
- package/esm/DSCircularProgressIndicator.js +0 -258
- package/esm/index.js +0 -2
- package/esm/v2/DSCircularIndeterminateIndicator.js +0 -103
- package/esm/v2/constants.js +0 -30
- package/esm/v2/index.js +0 -1
- package/esm/v2/react-desc-prop-types.js +0 -30
- package/esm/v2/styled.js +0 -39
- package/types/DSCircularProgressIndicator.d.ts +0 -42
- package/types/index.d.ts +0 -2
- package/types/tests/DSCircularProgressIndicator.test.d.ts +0 -1
- package/types/v2/DSCircularIndeterminateIndicator.d.ts +0 -4
- package/types/v2/constants.d.ts +0 -28
- package/types/v2/index.d.ts +0 -1
- package/types/v2/react-desc-prop-types.d.ts +0 -14
- package/types/v2/styled.d.ts +0 -12
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
const sizeToPx = {
|
|
3
|
+
xs: 16,
|
|
4
|
+
s: 24,
|
|
5
|
+
m: 32,
|
|
6
|
+
l: 48,
|
|
7
|
+
xl: 56,
|
|
8
|
+
xxl: 64
|
|
9
|
+
};
|
|
10
|
+
const sizeToWeight = {
|
|
11
|
+
xs: "3px",
|
|
12
|
+
s: "3px",
|
|
13
|
+
m: "3px",
|
|
14
|
+
l: "4px",
|
|
15
|
+
xl: "5px",
|
|
16
|
+
xxl: "6px"
|
|
17
|
+
};
|
|
18
|
+
const colorToHex = {
|
|
19
|
+
light: "#EBF6FF",
|
|
20
|
+
dark: "#1394E5"
|
|
21
|
+
};
|
|
22
|
+
const sizeToTextSize = {
|
|
23
|
+
xs: "12px",
|
|
24
|
+
s: "12px",
|
|
25
|
+
m: "12px",
|
|
26
|
+
l: "13px",
|
|
27
|
+
xl: "14px",
|
|
28
|
+
xxl: "16px"
|
|
29
|
+
};
|
|
30
|
+
export {
|
|
31
|
+
colorToHex,
|
|
32
|
+
sizeToPx,
|
|
33
|
+
sizeToTextSize,
|
|
34
|
+
sizeToWeight
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/constants.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const sizeToPx = {\n xs: 16,\n s: 24,\n m: 32,\n l: 48,\n xl: 56,\n xxl: 64,\n};\n\nexport const sizeToWeight = {\n xs: '3px',\n s: '3px',\n m: '3px',\n l: '4px',\n xl: '5px',\n xxl: '6px',\n};\n\nexport const colorToHex = {\n light: '#EBF6FF',\n dark: '#1394E5',\n};\n\nexport const sizeToTextSize = {\n xs: '12px',\n s: '12px',\n m: '12px',\n l: '13px',\n xl: '14px',\n xxl: '16px',\n};\n"],
|
|
5
|
+
"mappings": "AAAA;ACAO,MAAM,WAAW;AAAA,EACtB,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AAAA;AAGA,MAAM,eAAe;AAAA,EAC1B,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AAAA;AAGA,MAAM,aAAa;AAAA,EACxB,OAAO;AAAA,EACP,MAAM;AAAA;AAGD,MAAM,iBAAiB;AAAA,EAC5B,IAAI;AAAA,EACJ,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,IAAI;AAAA,EACJ,KAAK;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import {
|
|
3
|
+
DSCircularIndeterminateIndicator,
|
|
4
|
+
DSCircularIndeterminateIndicatorWithSchema
|
|
5
|
+
} from "./DSCircularIndeterminateIndicator";
|
|
6
|
+
export {
|
|
7
|
+
DSCircularIndeterminateIndicator,
|
|
8
|
+
DSCircularIndeterminateIndicatorWithSchema
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/index.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export {\n DSCircularIndeterminateIndicator,\n DSCircularIndeterminateIndicatorWithSchema,\n} from './DSCircularIndeterminateIndicator';\n"],
|
|
5
|
+
"mappings": "AAAA;ACAA;AAAA;AAAA;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
import * as React from "react";
|
|
21
|
+
import { PropTypes, globalAttributesPropTypes } from "@elliemae/ds-props-helpers";
|
|
22
|
+
const CircularIndeterminateIndicatorPropTypes = __spreadProps(__spreadValues({}, globalAttributesPropTypes), {
|
|
23
|
+
size: PropTypes.oneOf(["xs", "s", "m", "l", "xl", "xxl"]).description("Size of the indicator").defaultValue("m"),
|
|
24
|
+
color: PropTypes.oneOf(["light", "dark"]).description("Color mode for the indicator").defaultValue("dark"),
|
|
25
|
+
text: PropTypes.string.description("Optional text to show under the indicator").defaultValue(""),
|
|
26
|
+
showText: PropTypes.bool.description("Whether to show the optional text or not").defaultValue(true),
|
|
27
|
+
withTooltip: PropTypes.bool.description("Whether to include a tooltip that shows the optional text on hover").defaultValue(false),
|
|
28
|
+
tooltipStartPlacementPreference: PropTypes.oneOf([
|
|
29
|
+
"top-start",
|
|
30
|
+
"top",
|
|
31
|
+
"top-end",
|
|
32
|
+
"right-start",
|
|
33
|
+
"right",
|
|
34
|
+
"right-end",
|
|
35
|
+
"bottom-end",
|
|
36
|
+
"bottom",
|
|
37
|
+
"bottom-start",
|
|
38
|
+
"left-end",
|
|
39
|
+
"left",
|
|
40
|
+
"left-start"
|
|
41
|
+
]).description("start placement preference for the tooltip").defaultValue("center")
|
|
42
|
+
});
|
|
43
|
+
const defaultProps = {
|
|
44
|
+
size: "m",
|
|
45
|
+
color: "dark",
|
|
46
|
+
text: "",
|
|
47
|
+
showText: true,
|
|
48
|
+
withTooltip: false,
|
|
49
|
+
tooltipStartPlacementPreference: "bottom",
|
|
50
|
+
__duration: 4
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
CircularIndeterminateIndicatorPropTypes,
|
|
54
|
+
defaultProps
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/react-desc-prop-types.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport { PropTypes, globalAttributesPropTypes } from '@elliemae/ds-props-helpers';\nimport { WeakValidationMap } from 'react';\n\nexport declare namespace DSCircularIndeterminateIndicatorT {\n interface Props {\n size?: 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl';\n color?: 'light' | 'dark';\n text?: string;\n showText?: boolean;\n withTooltip: boolean;\n tooltipStartPlacementPreference?:\n | 'top-start'\n | 'top'\n | 'top-end'\n | 'right-start'\n | 'right'\n | 'right-end'\n | 'bottom-end'\n | 'bottom'\n | 'bottom-start'\n | 'left-end'\n | 'left'\n | 'left-start';\n __duration: number;\n }\n}\n\nexport const CircularIndeterminateIndicatorPropTypes = {\n ...globalAttributesPropTypes,\n size: PropTypes.oneOf(['xs', 's', 'm', 'l', 'xl', 'xxl']).description('Size of the indicator').defaultValue('m'),\n color: PropTypes.oneOf(['light', 'dark']).description('Color mode for the indicator').defaultValue('dark'),\n text: PropTypes.string.description('Optional text to show under the indicator').defaultValue(''),\n showText: PropTypes.bool.description('Whether to show the optional text or not').defaultValue(true),\n withTooltip: PropTypes.bool\n .description('Whether to include a tooltip that shows the optional text on hover')\n .defaultValue(false),\n tooltipStartPlacementPreference: PropTypes.oneOf([\n 'top-start',\n 'top',\n 'top-end',\n 'right-start',\n 'right',\n 'right-end',\n 'bottom-end',\n 'bottom',\n 'bottom-start',\n 'left-end',\n 'left',\n 'left-start',\n ])\n .description('start placement preference for the tooltip')\n .defaultValue('center'),\n} as WeakValidationMap<unknown>;\n\nexport const defaultProps: DSCircularIndeterminateIndicatorT.Props = {\n size: 'm',\n color: 'dark',\n text: '',\n showText: true,\n withTooltip: false,\n tooltipStartPlacementPreference: 'bottom',\n __duration: 4,\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;ACCA;AA2BO,MAAM,0CAA0C,iCAClD,4BADkD;AAAA,EAErD,MAAM,UAAU,MAAM,CAAC,MAAM,KAAK,KAAK,KAAK,MAAM,QAAQ,YAAY,yBAAyB,aAAa;AAAA,EAC5G,OAAO,UAAU,MAAM,CAAC,SAAS,SAAS,YAAY,gCAAgC,aAAa;AAAA,EACnG,MAAM,UAAU,OAAO,YAAY,6CAA6C,aAAa;AAAA,EAC7F,UAAU,UAAU,KAAK,YAAY,4CAA4C,aAAa;AAAA,EAC9F,aAAa,UAAU,KACpB,YAAY,sEACZ,aAAa;AAAA,EAChB,iCAAiC,UAAU,MAAM;AAAA,IAC/C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,KAEC,YAAY,8CACZ,aAAa;AAAA;AAGX,MAAM,eAAwD;AAAA,EACnE,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,UAAU;AAAA,EACV,aAAa;AAAA,EACb,iCAAiC;AAAA,EACjC,YAAY;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { kfrm } from "@elliemae/ds-system";
|
|
4
|
+
const { PI } = Math;
|
|
5
|
+
const getArcLength = (percentage, radius) => 2 * PI * radius / 100 * percentage;
|
|
6
|
+
const strokeTailAnimation = (r) => {
|
|
7
|
+
const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;
|
|
8
|
+
const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;
|
|
9
|
+
return kfrm`
|
|
10
|
+
0% {
|
|
11
|
+
stroke-dasharray: ${miniDash};
|
|
12
|
+
}
|
|
13
|
+
50% {
|
|
14
|
+
stroke-dasharray: ${fullDash};
|
|
15
|
+
}
|
|
16
|
+
100% {
|
|
17
|
+
stroke-dasharray: ${miniDash};
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
20
|
+
};
|
|
21
|
+
const rotateAnimation = kfrm`
|
|
22
|
+
0%, 12.5% {
|
|
23
|
+
transform: rotate(0);
|
|
24
|
+
}
|
|
25
|
+
25%, 37.5% {
|
|
26
|
+
transform: rotate(270deg);
|
|
27
|
+
}
|
|
28
|
+
50%, 62.5% {
|
|
29
|
+
transform: rotate(540deg);
|
|
30
|
+
}
|
|
31
|
+
75%, 87.5% {
|
|
32
|
+
transform: rotate(810deg);
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
transform: rotate(1080deg);
|
|
36
|
+
}
|
|
37
|
+
`;
|
|
38
|
+
const dashAnimation = (r) => {
|
|
39
|
+
const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;
|
|
40
|
+
const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;
|
|
41
|
+
return kfrm`
|
|
42
|
+
0% {
|
|
43
|
+
stroke-dasharray: ${miniDash};
|
|
44
|
+
stroke-dashoffset: 0;
|
|
45
|
+
}
|
|
46
|
+
12.5% {
|
|
47
|
+
stroke-dasharray: ${fullDash};
|
|
48
|
+
stroke-dashoffset: 0;
|
|
49
|
+
}
|
|
50
|
+
25% {
|
|
51
|
+
stroke-dasharray: ${miniDash};
|
|
52
|
+
stroke-dashoffset: ${getArcLength(-75, r)};
|
|
53
|
+
}
|
|
54
|
+
37.5% {
|
|
55
|
+
stroke-dasharray: ${fullDash};
|
|
56
|
+
stroke-dashoffset: ${getArcLength(-75, r)};
|
|
57
|
+
}
|
|
58
|
+
50% {
|
|
59
|
+
stroke-dasharray: ${miniDash};
|
|
60
|
+
stroke-dashoffset: ${getArcLength(-150, r)};
|
|
61
|
+
}
|
|
62
|
+
62.5% {
|
|
63
|
+
stroke-dasharray: ${fullDash};
|
|
64
|
+
stroke-dashoffset: ${getArcLength(-150, r)};
|
|
65
|
+
}
|
|
66
|
+
75% {
|
|
67
|
+
stroke-dasharray: ${miniDash};
|
|
68
|
+
stroke-dashoffset: ${getArcLength(-225, r)};
|
|
69
|
+
}
|
|
70
|
+
87.5% {
|
|
71
|
+
stroke-dasharray: ${fullDash};
|
|
72
|
+
stroke-dashoffset: ${getArcLength(-225, r)};
|
|
73
|
+
}
|
|
74
|
+
100% {
|
|
75
|
+
stroke-dasharray: ${miniDash};
|
|
76
|
+
stroke-dashoffset: ${getArcLength(-300, r)};
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
};
|
|
80
|
+
const StyledSvg = styled.svg`
|
|
81
|
+
display: block;
|
|
82
|
+
margin: auto;
|
|
83
|
+
transform-origin: center center;
|
|
84
|
+
transform: rotate(-90deg);
|
|
85
|
+
`;
|
|
86
|
+
const StyledPath = styled.path`
|
|
87
|
+
transform-origin: center center;
|
|
88
|
+
animation: ${rotateAnimation} ${(props) => props.__duration}s linear infinite,
|
|
89
|
+
${(props) => strokeTailAnimation(props.r)} ${(props) => props.__duration / 4}s linear infinite;
|
|
90
|
+
`;
|
|
91
|
+
const StyledRect = styled.rect`
|
|
92
|
+
transform-origin: center center;
|
|
93
|
+
animation: ${rotateAnimation} ${(props) => props.__duration}s linear infinite;
|
|
94
|
+
`;
|
|
95
|
+
const StyledCircle = styled.circle`
|
|
96
|
+
stroke-dashoffset: 0;
|
|
97
|
+
fill: none;
|
|
98
|
+
animation: ${(props) => dashAnimation(props.r)} ${(props) => props.__duration}s linear infinite;
|
|
99
|
+
clip-path: ${(props) => props.clipPath};
|
|
100
|
+
-webkit-clip-path: ${(props) => props.clipPath};
|
|
101
|
+
`;
|
|
102
|
+
export {
|
|
103
|
+
StyledCircle,
|
|
104
|
+
StyledPath,
|
|
105
|
+
StyledRect,
|
|
106
|
+
StyledSvg
|
|
107
|
+
};
|
|
108
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/styled.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-underscore-dangle */\nimport styled from 'styled-components';\nimport { kfrm } from '@elliemae/ds-system';\n\nconst { PI } = Math;\n\nconst getArcLength = (percentage: number, radius: number) => ((2 * PI * radius) / 100) * percentage;\n\nconst strokeTailAnimation = (r: number) => {\n const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;\n const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;\n\n return kfrm`\n 0% {\n stroke-dasharray: ${miniDash};\n }\n 50% {\n stroke-dasharray: ${fullDash};\n }\n 100% {\n stroke-dasharray: ${miniDash};\n }\n`;\n};\n\nconst rotateAnimation = kfrm`\n 0%, 12.5% {\n transform: rotate(0);\n }\n 25%, 37.5% {\n transform: rotate(270deg);\n }\n 50%, 62.5% {\n transform: rotate(540deg);\n }\n 75%, 87.5% {\n transform: rotate(810deg);\n }\n 100% {\n transform: rotate(1080deg);\n }\n`;\n\nconst dashAnimation = (r: number) => {\n const miniDash = `${getArcLength(0, r)} ${getArcLength(100, r)}`;\n const fullDash = `${getArcLength(75, r)} ${getArcLength(25, r)}`;\n\n return kfrm`\n 0% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: 0;\n }\n 12.5% {\n stroke-dasharray: ${fullDash};\n stroke-dashoffset: 0;\n }\n 25% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: ${getArcLength(-75, r)};\n }\n 37.5% {\n stroke-dasharray: ${fullDash};\n stroke-dashoffset: ${getArcLength(-75, r)};\n }\n 50% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: ${getArcLength(-150, r)};\n }\n 62.5% {\n stroke-dasharray: ${fullDash};\n stroke-dashoffset: ${getArcLength(-150, r)};\n }\n 75% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: ${getArcLength(-225, r)};\n }\n 87.5% {\n stroke-dasharray: ${fullDash};\n stroke-dashoffset: ${getArcLength(-225, r)};\n }\n 100% {\n stroke-dasharray: ${miniDash};\n stroke-dashoffset: ${getArcLength(-300, r)};\n }\n`;\n};\n\nexport const StyledSvg = styled.svg`\n display: block;\n margin: auto;\n transform-origin: center center;\n transform: rotate(-90deg);\n`;\n\nexport const StyledPath = styled.path<{ __duration: number; r: number }>`\n transform-origin: center center;\n animation: ${rotateAnimation} ${(props) => props.__duration}s linear infinite,\n ${(props) => strokeTailAnimation(props.r)} ${(props) => props.__duration / 4}s linear infinite;\n`;\n\nexport const StyledRect = styled.rect<{ __duration: number }>`\n transform-origin: center center;\n animation: ${rotateAnimation} ${(props) => props.__duration}s linear infinite;\n`;\n\nexport const StyledCircle = styled.circle<{ r: number; __duration: number }>`\n stroke-dashoffset: 0;\n fill: none;\n animation: ${(props) => dashAnimation(props.r)} ${(props) => props.__duration}s linear infinite;\n clip-path: ${(props) => props.clipPath};\n -webkit-clip-path: ${(props) => props.clipPath};\n`;\n"],
|
|
5
|
+
"mappings": "AAAA;ACCA;AACA;AAEA,MAAM,EAAE,OAAO;AAEf,MAAM,eAAe,CAAC,YAAoB,WAAqB,IAAI,KAAK,SAAU,MAAO;AAEzF,MAAM,sBAAsB,CAAC,MAAc;AACzC,QAAM,WAAW,GAAG,aAAa,GAAG,MAAM,aAAa,KAAK;AAC5D,QAAM,WAAW,GAAG,aAAa,IAAI,MAAM,aAAa,IAAI;AAE5D,SAAO;AAAA;AAAA,4BAEmB;AAAA;AAAA;AAAA,4BAGA;AAAA;AAAA;AAAA,4BAGA;AAAA;AAAA;AAAA;AAK5B,MAAM,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAkBxB,MAAM,gBAAgB,CAAC,MAAc;AACnC,QAAM,WAAW,GAAG,aAAa,GAAG,MAAM,aAAa,KAAK;AAC5D,QAAM,WAAW,GAAG,aAAa,IAAI,MAAM,aAAa,IAAI;AAE5D,SAAO;AAAA;AAAA,4BAEmB;AAAA;AAAA;AAAA;AAAA,4BAIA;AAAA;AAAA;AAAA;AAAA,4BAIA;AAAA,6BACC,aAAa,KAAK;AAAA;AAAA;AAAA,4BAGnB;AAAA,6BACC,aAAa,KAAK;AAAA;AAAA;AAAA,4BAGnB;AAAA,6BACC,aAAa,MAAM;AAAA;AAAA;AAAA,4BAGpB;AAAA,6BACC,aAAa,MAAM;AAAA;AAAA;AAAA,4BAGpB;AAAA,6BACC,aAAa,MAAM;AAAA;AAAA;AAAA,4BAGpB;AAAA,6BACC,aAAa,MAAM;AAAA;AAAA;AAAA,4BAGpB;AAAA,6BACC,aAAa,MAAM;AAAA;AAAA;AAAA;AAKzC,MAAM,YAAY,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAOzB,MAAM,aAAa,OAAO;AAAA;AAAA,eAElB,mBAAmB,CAAC,UAAU,MAAM;AAAA,MAC7C,CAAC,UAAU,oBAAoB,MAAM,MAAM,CAAC,UAAU,MAAM,aAAa;AAAA;AAGxE,MAAM,aAAa,OAAO;AAAA;AAAA,eAElB,mBAAmB,CAAC,UAAU,MAAM;AAAA;AAG5C,MAAM,eAAe,OAAO;AAAA;AAAA;AAAA,eAGpB,CAAC,UAAU,cAAc,MAAM,MAAM,CAAC,UAAU,MAAM;AAAA,eACtD,CAAC,UAAU,MAAM;AAAA,uBACT,CAAC,UAAU,MAAM;AAAA;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -1,39 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-circular-progress-indicator",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Circular progress indicator",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./v2/styled": {
|
|
15
|
-
"import": "./esm/v2/styled.js",
|
|
16
|
-
"require": "./cjs/v2/styled.js"
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
17
16
|
},
|
|
18
17
|
"./v2/react-desc-prop-types": {
|
|
19
|
-
"import": "./esm/v2/react-desc-prop-types.js",
|
|
20
|
-
"require": "./cjs/v2/react-desc-prop-types.js"
|
|
18
|
+
"import": "./dist/esm/v2/react-desc-prop-types.js",
|
|
19
|
+
"require": "./dist/cjs/v2/react-desc-prop-types.js"
|
|
21
20
|
},
|
|
22
21
|
"./v2": {
|
|
23
|
-
"import": "./esm/v2/index.js",
|
|
24
|
-
"require": "./cjs/v2/index.js"
|
|
22
|
+
"import": "./dist/esm/v2/index.js",
|
|
23
|
+
"require": "./dist/cjs/v2/index.js"
|
|
25
24
|
},
|
|
26
25
|
"./v2/DSCircularIndeterminateIndicator": {
|
|
27
|
-
"import": "./esm/v2/DSCircularIndeterminateIndicator.js",
|
|
28
|
-
"require": "./cjs/v2/DSCircularIndeterminateIndicator.js"
|
|
29
|
-
},
|
|
30
|
-
"./v2/constants": {
|
|
31
|
-
"import": "./esm/v2/constants.js",
|
|
32
|
-
"require": "./cjs/v2/constants.js"
|
|
26
|
+
"import": "./dist/esm/v2/DSCircularIndeterminateIndicator.js",
|
|
27
|
+
"require": "./dist/cjs/v2/DSCircularIndeterminateIndicator.js"
|
|
33
28
|
},
|
|
34
29
|
"./DSCircularProgressIndicator": {
|
|
35
|
-
"import": "./esm/DSCircularProgressIndicator.js",
|
|
36
|
-
"require": "./cjs/DSCircularProgressIndicator.js"
|
|
30
|
+
"import": "./dist/esm/DSCircularProgressIndicator.js",
|
|
31
|
+
"require": "./dist/cjs/DSCircularProgressIndicator.js"
|
|
37
32
|
}
|
|
38
33
|
},
|
|
39
34
|
"sideEffects": [
|
|
@@ -45,37 +40,39 @@
|
|
|
45
40
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
46
41
|
},
|
|
47
42
|
"engines": {
|
|
48
|
-
"
|
|
49
|
-
"node": ">=
|
|
43
|
+
"pnpm": ">=6",
|
|
44
|
+
"node": ">=16"
|
|
50
45
|
},
|
|
51
46
|
"author": "ICE MT",
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
47
|
+
"jestSonar": {
|
|
48
|
+
"sonar56x": true,
|
|
49
|
+
"reportPath": "reports",
|
|
50
|
+
"reportFile": "tests.xml",
|
|
51
|
+
"indent": 4
|
|
57
52
|
},
|
|
58
53
|
"dependencies": {
|
|
59
|
-
"@elliemae/ds-classnames": "
|
|
60
|
-
"@elliemae/ds-
|
|
61
|
-
"@elliemae/ds-
|
|
62
|
-
"
|
|
63
|
-
"@elliemae/ds-tooltip": "2.3.1-rc.2",
|
|
64
|
-
"react-desc": "~4.1.3",
|
|
65
|
-
"uid": "~2.0.0"
|
|
54
|
+
"@elliemae/ds-classnames": "3.0.0-alpha.2",
|
|
55
|
+
"@elliemae/ds-props-helpers": "3.0.0-alpha.2",
|
|
56
|
+
"@elliemae/ds-tooltip": "3.0.0-alpha.2",
|
|
57
|
+
"react-desc": "~4.1.3"
|
|
66
58
|
},
|
|
67
59
|
"devDependencies": {
|
|
68
|
-
"@testing-library/jest-dom": "~5.15.
|
|
60
|
+
"@testing-library/jest-dom": "~5.15.1",
|
|
69
61
|
"@testing-library/react": "~12.1.2"
|
|
70
62
|
},
|
|
71
63
|
"peerDependencies": {
|
|
72
64
|
"react": "^17.0.2",
|
|
73
|
-
"react-dom": "^17.0.2"
|
|
74
|
-
"styled-components": "^5.3.3"
|
|
65
|
+
"react-dom": "^17.0.2"
|
|
75
66
|
},
|
|
76
67
|
"publishConfig": {
|
|
77
68
|
"access": "public",
|
|
78
|
-
"
|
|
79
|
-
|
|
69
|
+
"typeSafety": false
|
|
70
|
+
},
|
|
71
|
+
"scripts": {
|
|
72
|
+
"dev": "cross-env NODE_ENV=development node ../../scripts/build/build.mjs --watch",
|
|
73
|
+
"test": "node ../../scripts/testing/test.mjs",
|
|
74
|
+
"lint": "node ../../scripts/lint.mjs",
|
|
75
|
+
"dts": "node ../../scripts/dts.mjs",
|
|
76
|
+
"build": "cross-env NODE_ENV=production node ../../scripts/build/build.mjs"
|
|
80
77
|
}
|
|
81
78
|
}
|
|
@@ -1,268 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var _jsx = require('@babel/runtime/helpers/jsx');
|
|
6
|
-
require('react');
|
|
7
|
-
var reactDesc = require('react-desc');
|
|
8
|
-
var dsClassnames = require('@elliemae/ds-classnames');
|
|
9
|
-
var DSTooltip = require('@elliemae/ds-tooltip');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
var _jsx__default = /*#__PURE__*/_interopDefaultLegacy(_jsx);
|
|
14
|
-
var DSTooltip__default = /*#__PURE__*/_interopDefaultLegacy(DSTooltip);
|
|
15
|
-
|
|
16
|
-
var _path, _path2;
|
|
17
|
-
const {
|
|
18
|
-
classNameBlock,
|
|
19
|
-
classNameElement
|
|
20
|
-
} = dsClassnames.convertPropToCssClassName('circular-progress-indicator');
|
|
21
|
-
|
|
22
|
-
const CircularProgressIndicator = _ref => {
|
|
23
|
-
let {
|
|
24
|
-
size,
|
|
25
|
-
showLabel,
|
|
26
|
-
showTooltip,
|
|
27
|
-
waiting,
|
|
28
|
-
loading
|
|
29
|
-
} = _ref;
|
|
30
|
-
const waitingLabel = 'Waiting...';
|
|
31
|
-
const loadingLabel = 'Loading...';
|
|
32
|
-
const currentLabel = waiting && !loading ? waitingLabel : loadingLabel;
|
|
33
|
-
let sizePx;
|
|
34
|
-
let sizeLabel;
|
|
35
|
-
let strokeWidth;
|
|
36
|
-
let trackWidth;
|
|
37
|
-
let markerHeight = '0.7';
|
|
38
|
-
let markerRefY = '4.8';
|
|
39
|
-
let grayArcStrokeDasharray = '45 170';
|
|
40
|
-
let grayArcStrokeDashoffset = '127.5';
|
|
41
|
-
|
|
42
|
-
switch (size.toUpperCase()) {
|
|
43
|
-
case 'XS':
|
|
44
|
-
sizePx = 8;
|
|
45
|
-
sizeLabel = 12;
|
|
46
|
-
strokeWidth = 10;
|
|
47
|
-
trackWidth = 3;
|
|
48
|
-
markerHeight = '1';
|
|
49
|
-
grayArcStrokeDasharray = '46 174';
|
|
50
|
-
grayArcStrokeDashoffset = '133';
|
|
51
|
-
break;
|
|
52
|
-
|
|
53
|
-
case 'S':
|
|
54
|
-
sizePx = 16;
|
|
55
|
-
sizeLabel = 12;
|
|
56
|
-
strokeWidth = 8;
|
|
57
|
-
trackWidth = 3;
|
|
58
|
-
markerHeight = '1';
|
|
59
|
-
grayArcStrokeDasharray = '46 174';
|
|
60
|
-
grayArcStrokeDashoffset = '133';
|
|
61
|
-
break;
|
|
62
|
-
|
|
63
|
-
case 'M':
|
|
64
|
-
sizePx = 24;
|
|
65
|
-
sizeLabel = 12;
|
|
66
|
-
strokeWidth = 7;
|
|
67
|
-
trackWidth = 3;
|
|
68
|
-
markerHeight = '1';
|
|
69
|
-
markerRefY = '5.5';
|
|
70
|
-
grayArcStrokeDasharray = '46 174';
|
|
71
|
-
grayArcStrokeDashoffset = '133';
|
|
72
|
-
break;
|
|
73
|
-
|
|
74
|
-
case 'L':
|
|
75
|
-
sizePx = 32;
|
|
76
|
-
sizeLabel = 13;
|
|
77
|
-
strokeWidth = 6;
|
|
78
|
-
trackWidth = 3;
|
|
79
|
-
markerRefY = '5';
|
|
80
|
-
break;
|
|
81
|
-
|
|
82
|
-
case 'XL':
|
|
83
|
-
sizePx = 48;
|
|
84
|
-
sizeLabel = 14;
|
|
85
|
-
strokeWidth = 5;
|
|
86
|
-
trackWidth = 1;
|
|
87
|
-
break;
|
|
88
|
-
|
|
89
|
-
case 'XXL':
|
|
90
|
-
sizePx = 56;
|
|
91
|
-
sizeLabel = 16;
|
|
92
|
-
strokeWidth = 4;
|
|
93
|
-
trackWidth = 1;
|
|
94
|
-
break;
|
|
95
|
-
|
|
96
|
-
case 'XXXL':
|
|
97
|
-
sizePx = 64;
|
|
98
|
-
sizeLabel = 16;
|
|
99
|
-
strokeWidth = 5;
|
|
100
|
-
trackWidth = 2;
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
const labelText = /*#__PURE__*/_jsx__default["default"]("p", {
|
|
105
|
-
"data-testid": "circular-indicator-label",
|
|
106
|
-
className: classNameElement('label'),
|
|
107
|
-
style: {
|
|
108
|
-
fontSize: "".concat(sizeLabel, "px")
|
|
109
|
-
}
|
|
110
|
-
}, void 0, currentLabel); // Only adds the tooltip if sizePx < 17 or showTooltip is true
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
const buildIndicator = Component => sizePx < 17 || showTooltip ? /*#__PURE__*/_jsx__default["default"](DSTooltip__default["default"], {
|
|
114
|
-
containerProps: {
|
|
115
|
-
id: 'ds-circular-progress-indicator',
|
|
116
|
-
'data-testid': 'circular-indicator-title'
|
|
117
|
-
},
|
|
118
|
-
interactionType: "hover",
|
|
119
|
-
title: currentLabel,
|
|
120
|
-
triggerComponent: Component,
|
|
121
|
-
placement: "bottom"
|
|
122
|
-
}) : Component;
|
|
123
|
-
|
|
124
|
-
const grayTrack = /*#__PURE__*/_jsx__default["default"]("circle", {
|
|
125
|
-
className: classNameElement('track'),
|
|
126
|
-
cx: "50%",
|
|
127
|
-
cy: "50%",
|
|
128
|
-
fill: "none",
|
|
129
|
-
r: "28",
|
|
130
|
-
strokeWidth: "".concat(trackWidth, "px")
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
const grayArc = /*#__PURE__*/_jsx__default["default"]("circle", {
|
|
134
|
-
className: classNameElement('arc-gray'),
|
|
135
|
-
stroke: "#E0E3E8",
|
|
136
|
-
strokeDasharray: "".concat(grayArcStrokeDasharray),
|
|
137
|
-
strokeDashoffset: "".concat(grayArcStrokeDashoffset),
|
|
138
|
-
cx: "50%",
|
|
139
|
-
cy: "50%",
|
|
140
|
-
fill: "none",
|
|
141
|
-
r: "28",
|
|
142
|
-
strokeWidth: "".concat(trackWidth, "px")
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
const indicator = /*#__PURE__*/_jsx__default["default"]("svg", {
|
|
146
|
-
height: "".concat(sizePx, "px"),
|
|
147
|
-
version: "1.1",
|
|
148
|
-
viewBox: "0 0 66 66",
|
|
149
|
-
width: "".concat(sizePx, "px"),
|
|
150
|
-
"data-testid": "circular-indicator"
|
|
151
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"]("defs", {}, void 0, /*#__PURE__*/_jsx__default["default"]("linearGradient", {
|
|
152
|
-
id: "grad1",
|
|
153
|
-
x1: "0%",
|
|
154
|
-
x2: "100%",
|
|
155
|
-
y1: "100%",
|
|
156
|
-
y2: "0%"
|
|
157
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"]("stop", {
|
|
158
|
-
offset: "0%",
|
|
159
|
-
style: {
|
|
160
|
-
stopColor: '#E0E3E8',
|
|
161
|
-
stopOpacity: 1
|
|
162
|
-
}
|
|
163
|
-
}), /*#__PURE__*/_jsx__default["default"]("stop", {
|
|
164
|
-
offset: "89%",
|
|
165
|
-
style: {
|
|
166
|
-
stopColor: '#5594e2',
|
|
167
|
-
stopOpacity: 1
|
|
168
|
-
}
|
|
169
|
-
}), /*#__PURE__*/_jsx__default["default"]("stop", {
|
|
170
|
-
offset: "100%",
|
|
171
|
-
style: {
|
|
172
|
-
stopColor: '#5594e2',
|
|
173
|
-
stopOpacity: 1
|
|
174
|
-
}
|
|
175
|
-
})), /*#__PURE__*/_jsx__default["default"]("linearGradient", {
|
|
176
|
-
id: "grad2",
|
|
177
|
-
x1: "0%",
|
|
178
|
-
x2: "100%",
|
|
179
|
-
y1: "100%",
|
|
180
|
-
y2: "0%"
|
|
181
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"]("stop", {
|
|
182
|
-
offset: "0%",
|
|
183
|
-
style: {
|
|
184
|
-
stopColor: '#5594e2',
|
|
185
|
-
stopOpacity: 1
|
|
186
|
-
}
|
|
187
|
-
}), /*#__PURE__*/_jsx__default["default"]("stop", {
|
|
188
|
-
offset: "11%",
|
|
189
|
-
style: {
|
|
190
|
-
stopColor: '#5594e2',
|
|
191
|
-
stopOpacity: 1
|
|
192
|
-
}
|
|
193
|
-
}), /*#__PURE__*/_jsx__default["default"]("stop", {
|
|
194
|
-
offset: "100%",
|
|
195
|
-
style: {
|
|
196
|
-
stopColor: '#E0E3E8',
|
|
197
|
-
stopOpacity: 1
|
|
198
|
-
}
|
|
199
|
-
})), /*#__PURE__*/_jsx__default["default"]("marker", {
|
|
200
|
-
id: "inverseL",
|
|
201
|
-
viewBox: "0 0 5 10",
|
|
202
|
-
refX: "0.5",
|
|
203
|
-
refY: "".concat(markerRefY),
|
|
204
|
-
markerUnits: "strokeWidth",
|
|
205
|
-
markerWidth: "0.5",
|
|
206
|
-
markerHeight: "".concat(markerHeight),
|
|
207
|
-
orient: "auto"
|
|
208
|
-
}, void 0, _path || (_path = /*#__PURE__*/_jsx__default["default"]("path", {
|
|
209
|
-
d: "M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z",
|
|
210
|
-
fill: "#FFF"
|
|
211
|
-
}))), /*#__PURE__*/_jsx__default["default"]("marker", {
|
|
212
|
-
id: "inverseR",
|
|
213
|
-
viewBox: "0 0 5 10",
|
|
214
|
-
refX: "0",
|
|
215
|
-
refY: "5",
|
|
216
|
-
markerUnits: "strokeWidth",
|
|
217
|
-
markerWidth: "0.7",
|
|
218
|
-
markerHeight: "".concat(markerHeight)
|
|
219
|
-
}, void 0, _path2 || (_path2 = /*#__PURE__*/_jsx__default["default"]("path", {
|
|
220
|
-
d: "M 0 0 L 6 0 A 5 5 0 0 0 6 10 L 0 10 z",
|
|
221
|
-
fill: "#FFF"
|
|
222
|
-
})))), grayTrack, !waiting && /*#__PURE__*/_jsx__default["default"]("g", {
|
|
223
|
-
fill: "none",
|
|
224
|
-
fillRule: "evenodd",
|
|
225
|
-
stroke: "none",
|
|
226
|
-
strokeWidth: "1"
|
|
227
|
-
}, void 0, /*#__PURE__*/_jsx__default["default"]("path", {
|
|
228
|
-
className: classNameElement('arc-blue'),
|
|
229
|
-
d: "M30,5 C17.536025,6 6,17.536027 5,31",
|
|
230
|
-
stroke: "#5594e2",
|
|
231
|
-
strokeWidth: "".concat(strokeWidth - 0.5, "px"),
|
|
232
|
-
strokeLinecap: "round",
|
|
233
|
-
"data-testid": "circular-indicator-blue-arc"
|
|
234
|
-
}), /*#__PURE__*/_jsx__default["default"]("path", {
|
|
235
|
-
className: classNameElement('arc-white'),
|
|
236
|
-
d: "M33,5 C17.536027,5 5,17.536027 5,33",
|
|
237
|
-
stroke: "#FFF",
|
|
238
|
-
strokeWidth: "".concat(strokeWidth + 2, "px"),
|
|
239
|
-
markerStart: "url(#inverseR)",
|
|
240
|
-
markerEnd: "url(#inverseL)"
|
|
241
|
-
}), grayArc));
|
|
242
|
-
|
|
243
|
-
return /*#__PURE__*/_jsx__default["default"]("div", {
|
|
244
|
-
className: classNameBlock('wrapper'),
|
|
245
|
-
role: "status",
|
|
246
|
-
"aria-hidden": waiting || loading ? 'false' : 'true'
|
|
247
|
-
}, void 0, buildIndicator(indicator), showLabel && labelText);
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
CircularProgressIndicator.defaultProps = {
|
|
251
|
-
size: 'm',
|
|
252
|
-
showLabel: false,
|
|
253
|
-
showTooltip: false,
|
|
254
|
-
waiting: false,
|
|
255
|
-
loading: false
|
|
256
|
-
};
|
|
257
|
-
const circularProgressIndicatorProps = {
|
|
258
|
-
size: reactDesc.PropTypes.oneOf(['xs', 's', 'm', 'l', 'xl', 'xxl', 'xxxl']).description('Defines the size of the indicator').defaultValue('m'),
|
|
259
|
-
showLabel: reactDesc.PropTypes.bool.description('Wheter the indicator displays its state on a label or not').defaultValue(false),
|
|
260
|
-
showTooltip: reactDesc.PropTypes.bool.description('Wheter the indicator displays its state on a tooltip or not').defaultValue(false),
|
|
261
|
-
waiting: reactDesc.PropTypes.bool.description('Defines the state of the indicator as Waiting and only displays the gray track').defaultValue(false),
|
|
262
|
-
loading: reactDesc.PropTypes.bool.description('Defines the state of the indicator as Loading and displays a blue spinner animation').defaultValue(false)
|
|
263
|
-
};
|
|
264
|
-
const CircularProgressIndicatorWithSchema = reactDesc.describe(CircularProgressIndicator);
|
|
265
|
-
CircularProgressIndicatorWithSchema.propTypes = circularProgressIndicatorProps;
|
|
266
|
-
|
|
267
|
-
exports.CircularProgressIndicatorWithSchema = CircularProgressIndicatorWithSchema;
|
|
268
|
-
exports["default"] = CircularProgressIndicator;
|
package/cjs/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var DSCircularProgressIndicator = require('./DSCircularProgressIndicator.js');
|
|
6
|
-
var DSCircularIndeterminateIndicator = require('./v2/DSCircularIndeterminateIndicator.js');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.CircularProgressIndicatorWithSchema = DSCircularProgressIndicator.CircularProgressIndicatorWithSchema;
|
|
11
|
-
exports.DSCircularProgressIndicator = DSCircularProgressIndicator["default"];
|
|
12
|
-
exports["default"] = DSCircularProgressIndicator["default"];
|
|
13
|
-
exports.DSCircularIndeterminateIndicator = DSCircularIndeterminateIndicator.DSCircularIndeterminateIndicator;
|
|
14
|
-
exports.DSCircularIndeterminateIndicatorWithSchema = DSCircularIndeterminateIndicator.DSCircularIndeterminateIndicatorWithSchema;
|