@desynova-digital/components 9.1.21 → 9.1.22
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/_helpers/utils.js +4 -4
- package/atoms/avatar/index.js +1 -2
- package/atoms/badge/index.js +1 -2
- package/atoms/button/button.js +1 -2
- package/atoms/card/index.js +1 -2
- package/atoms/cardStack/index.js +1 -2
- package/atoms/cardV2/cardV2.js +6 -7
- package/atoms/cardV2/content.js +7 -8
- package/atoms/cardV2/thumbnail.js +11 -12
- package/atoms/cardV2/timeline.js +1 -2
- package/atoms/customSelect/customSelect.js +1 -2
- package/atoms/datePicker/datePicker.js +11 -12
- package/atoms/draftInputText/draftInputText.js +44 -45
- package/atoms/dropdown/dropdown.js +1 -2
- package/atoms/dropdownList/dropdownList.js +1 -2
- package/atoms/graphs/circleDonut/circleDonut.js +1 -2
- package/atoms/graphs/circleGraph/circleGraph.js +1 -2
- package/atoms/graphs/circleNested/circleNested.js +1 -2
- package/atoms/graphs/pieChart/pieChart.js +1 -2
- package/atoms/graphs/verticalBarGraph/verticalBarGraph.js +1 -2
- package/atoms/icon/icons.json +1708 -1708
- package/atoms/icon/index.js +1 -2
- package/atoms/inputText/inputText.js +1 -2
- package/atoms/loader/CircleLoader.jsx +93 -93
- package/atoms/loader/ShimmerComponent/CollabShimmerCard.jsx +39 -39
- package/atoms/loader/ShimmerComponent/CollabShimmerCardTray.jsx +24 -24
- package/atoms/loader/ShimmerComponent/FiltersShimmer.jsx +19 -19
- package/atoms/loader/ShimmerComponent/GraphDetailShimmer.jsx +31 -31
- package/atoms/loader/ShimmerComponent/GraphTitleShimmer.jsx +23 -23
- package/atoms/loader/ShimmerComponent/GraphsComponentShimmer.jsx +23 -23
- package/atoms/loader/ShimmerComponent/Shimmer.js +1 -2
- package/atoms/loader/ShimmerComponent/Shimmer.jsx +48 -48
- package/atoms/loader/ThreeDotLoader.jsx +51 -51
- package/atoms/loader/index.js +1 -2
- package/atoms/loader/spinningLoader.jsx +69 -69
- package/atoms/popup/popup.js +1 -2
- package/atoms/radio/index.js +1 -2
- package/atoms/sideBar/sidebar.js +4 -5
- package/atoms/sideBar/sidebar.jsx +249 -249
- package/atoms/tag/index.js +1 -2
- package/atoms/thematicBreak/index.js +1 -2
- package/atoms/timeCodeInput/timeCodeInput.js +1 -2
- package/atoms/timeCodeInput/timeCodeMSInput.js +1 -2
- package/atoms/timeCodeInput/timeCodeMainInput.js +10 -11
- package/atoms/timeCodeInput/timeCodeStandardInput.js +4 -5
- package/atoms/timer/timer.js +1 -2
- package/atoms/toast/toast.js +1 -2
- package/atoms/videoCard/index.js +1 -2
- package/atoms/videoCard/videoCard.js +3 -3
- package/components.js +1 -2
- package/molecules/errorScreen/TableErrorScreen.jsx +85 -85
- package/molecules/errorScreen/errorScreen.js +9 -9
- package/molecules/errorScreen/errorScreen.jsx +149 -149
- package/molecules/filter/filter.js +39 -40
- package/molecules/graphDetailCard/graphDetailCard.js +1 -2
- package/molecules/pageHeader/index.js +1 -2
- package/molecules/richTextInput/RichTextInput.js +9 -10
- package/molecules/table/table.js +7 -8
- package/molecules/videoPlayer/videoPlayer.js +6 -6
- package/package.json +2 -2
package/atoms/icon/index.js
CHANGED
|
@@ -18,6 +18,5 @@ Object.defineProperty(exports, "__ICONNAMES__", {
|
|
|
18
18
|
});
|
|
19
19
|
exports["default"] = void 0;
|
|
20
20
|
var _icon = _interopRequireWildcard(require("./icon"));
|
|
21
|
-
function
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
21
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
23
22
|
var _default = exports["default"] = _icon["default"];
|
|
@@ -17,8 +17,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
17
17
|
var _tokens = require("@desynova-digital/tokens");
|
|
18
18
|
var _excluded = ["theme", "maxLength", "defaultValue", "type", "showLengthCount", "disablePaste"];
|
|
19
19
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
20
|
-
function
|
|
21
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
20
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
22
21
|
var InputTextDiv = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n background: transparent;\n font-family: \"SFUIText-Medium\";\n position: relative;\n width: 100%;\n display: block;\n\n > label {\n color: #999999;\n font-size: 14px;\n\n font-family: inherit;\n position: absolute;\n pointer-events: none;\n left: 0px;\n top: 5px;\n transition: 0.2s ease all;\n -moz-transition: 0.2s ease all;\n -webkit-transition: 0.2s ease all;\n }\n > input:focus ~ label {\n top: -10px;\n left: 0px;\n font-size: 10px;\n color: #999999;\n text-transform: capitalize;\n }\n > input ~ label.floaton {\n top: -5px;\n left: 0px;\n font-size: 10px;\n color: #999999;\n text-transform: capitalize;\n }\n"])));
|
|
23
22
|
var InputError = _styledComponents["default"].span(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n color: ", ";\n padding-top: 5px;\n display: inline-block;\n font-size: 12px;\n font-family: inherit;\n width: 100%;\n text-align: left;\n"])), function (props) {
|
|
24
23
|
return _tokens.colors[props.theme].inputError.color;
|
|
@@ -1,93 +1,93 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
|
|
5
|
-
import { colors } from '@desynova-digital/tokens'
|
|
6
|
-
class CircleLoader extends React.Component {
|
|
7
|
-
constructor(props) {
|
|
8
|
-
super(props);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
render() {
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<LoaderBox {...this.props}>
|
|
15
|
-
<div>
|
|
16
|
-
<div className="loader">Loading...</div>
|
|
17
|
-
</div>
|
|
18
|
-
</LoaderBox>
|
|
19
|
-
);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const propTypes = {
|
|
24
|
-
};
|
|
25
|
-
CircleLoader.propTypes = {
|
|
26
|
-
/** The visual style used to convey the label's purpose */
|
|
27
|
-
theme: PropTypes.oneOf(['light', 'dark', 'nexc'])
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const LoaderBox = styled.div`
|
|
31
|
-
position: relative;
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 100%;
|
|
34
|
-
z-index: 1;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
background: transparent;
|
|
39
|
-
opacity: 1;
|
|
40
|
-
top: 1px;
|
|
41
|
-
left: 0px;
|
|
42
|
-
font-family: 'SFUIText-light';
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
.loader,
|
|
46
|
-
.loader:after {
|
|
47
|
-
border-radius: 50%;
|
|
48
|
-
width: 10em;
|
|
49
|
-
height: 10em;
|
|
50
|
-
}
|
|
51
|
-
.loader {
|
|
52
|
-
margin: 0px auto;
|
|
53
|
-
font-size: 10px;
|
|
54
|
-
position: relative;
|
|
55
|
-
text-indent: -9999em;
|
|
56
|
-
border-top: 1.1em solid #eaeaea;
|
|
57
|
-
border-right: 1.1em solid #e3e3e3;
|
|
58
|
-
border-bottom: 1.1em solid #e0e0e0;
|
|
59
|
-
border-left: 1.1em solid ${(props) => colors[props.theme].label.circleLoader};
|
|
60
|
-
-webkit-transform: translateZ(0);
|
|
61
|
-
-ms-transform: translateZ(0);
|
|
62
|
-
transform: translateZ(0);
|
|
63
|
-
-webkit-animation: load8 1.1s infinite linear;
|
|
64
|
-
animation: load8 1.1s infinite linear;
|
|
65
|
-
}
|
|
66
|
-
@-webkit-keyframes load8 {
|
|
67
|
-
0% {
|
|
68
|
-
-webkit-transform: rotate(0deg);
|
|
69
|
-
transform: rotate(0deg);
|
|
70
|
-
}
|
|
71
|
-
100% {
|
|
72
|
-
-webkit-transform: rotate(360deg);
|
|
73
|
-
transform: rotate(360deg);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
@keyframes load8 {
|
|
77
|
-
0% {
|
|
78
|
-
-webkit-transform: rotate(0deg);
|
|
79
|
-
transform: rotate(0deg);
|
|
80
|
-
}
|
|
81
|
-
100% {
|
|
82
|
-
-webkit-transform: rotate(360deg);
|
|
83
|
-
transform: rotate(360deg);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
`;
|
|
87
|
-
|
|
88
|
-
LoaderBox.defaultProps = {};
|
|
89
|
-
|
|
90
|
-
CircleLoader.defaultProps = {
|
|
91
|
-
theme: 'dark'
|
|
92
|
-
};
|
|
93
|
-
export default CircleLoader ;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
4
|
+
|
|
5
|
+
import { colors } from '@desynova-digital/tokens'
|
|
6
|
+
class CircleLoader extends React.Component {
|
|
7
|
+
constructor(props) {
|
|
8
|
+
super(props);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
render() {
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<LoaderBox {...this.props}>
|
|
15
|
+
<div>
|
|
16
|
+
<div className="loader">Loading...</div>
|
|
17
|
+
</div>
|
|
18
|
+
</LoaderBox>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const propTypes = {
|
|
24
|
+
};
|
|
25
|
+
CircleLoader.propTypes = {
|
|
26
|
+
/** The visual style used to convey the label's purpose */
|
|
27
|
+
theme: PropTypes.oneOf(['light', 'dark', 'nexc'])
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const LoaderBox = styled.div`
|
|
31
|
+
position: relative;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
z-index: 1;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
background: transparent;
|
|
39
|
+
opacity: 1;
|
|
40
|
+
top: 1px;
|
|
41
|
+
left: 0px;
|
|
42
|
+
font-family: 'SFUIText-light';
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
.loader,
|
|
46
|
+
.loader:after {
|
|
47
|
+
border-radius: 50%;
|
|
48
|
+
width: 10em;
|
|
49
|
+
height: 10em;
|
|
50
|
+
}
|
|
51
|
+
.loader {
|
|
52
|
+
margin: 0px auto;
|
|
53
|
+
font-size: 10px;
|
|
54
|
+
position: relative;
|
|
55
|
+
text-indent: -9999em;
|
|
56
|
+
border-top: 1.1em solid #eaeaea;
|
|
57
|
+
border-right: 1.1em solid #e3e3e3;
|
|
58
|
+
border-bottom: 1.1em solid #e0e0e0;
|
|
59
|
+
border-left: 1.1em solid ${(props) => colors[props.theme].label.circleLoader};
|
|
60
|
+
-webkit-transform: translateZ(0);
|
|
61
|
+
-ms-transform: translateZ(0);
|
|
62
|
+
transform: translateZ(0);
|
|
63
|
+
-webkit-animation: load8 1.1s infinite linear;
|
|
64
|
+
animation: load8 1.1s infinite linear;
|
|
65
|
+
}
|
|
66
|
+
@-webkit-keyframes load8 {
|
|
67
|
+
0% {
|
|
68
|
+
-webkit-transform: rotate(0deg);
|
|
69
|
+
transform: rotate(0deg);
|
|
70
|
+
}
|
|
71
|
+
100% {
|
|
72
|
+
-webkit-transform: rotate(360deg);
|
|
73
|
+
transform: rotate(360deg);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
@keyframes load8 {
|
|
77
|
+
0% {
|
|
78
|
+
-webkit-transform: rotate(0deg);
|
|
79
|
+
transform: rotate(0deg);
|
|
80
|
+
}
|
|
81
|
+
100% {
|
|
82
|
+
-webkit-transform: rotate(360deg);
|
|
83
|
+
transform: rotate(360deg);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
`;
|
|
87
|
+
|
|
88
|
+
LoaderBox.defaultProps = {};
|
|
89
|
+
|
|
90
|
+
CircleLoader.defaultProps = {
|
|
91
|
+
theme: 'dark'
|
|
92
|
+
};
|
|
93
|
+
export default CircleLoader ;
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import Shimmer from './Shimmer';
|
|
4
|
-
|
|
5
|
-
const MainContainer = styled.div`
|
|
6
|
-
display: flex;
|
|
7
|
-
height: 189px;
|
|
8
|
-
width: 222px;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
const ShimmerDivContainer = styled.div`
|
|
13
|
-
position: relative;
|
|
14
|
-
top: 20px;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
gap: 5px;
|
|
18
|
-
left: 10px;
|
|
19
|
-
`;
|
|
20
|
-
const CollabShimmerCard = () => {
|
|
21
|
-
return (
|
|
22
|
-
<div>
|
|
23
|
-
<MainContainer>
|
|
24
|
-
<div style={{ height: '124px', width: ' 100%', background: '#182738' }}></div>
|
|
25
|
-
<div style={{ height: '65px', width: '100%', background: '#14202e' }}>
|
|
26
|
-
<ShimmerDivContainer>
|
|
27
|
-
<Shimmer height="12px" width="56px" />
|
|
28
|
-
<div style={{ display: 'flex', flexDirection: 'row', gap: '5px' }}>
|
|
29
|
-
<Shimmer height="10px" width="27px" />
|
|
30
|
-
<Shimmer height="10px" width="44px" />
|
|
31
|
-
</div>
|
|
32
|
-
</ShimmerDivContainer>
|
|
33
|
-
</div>
|
|
34
|
-
</MainContainer>
|
|
35
|
-
</div>
|
|
36
|
-
);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export default CollabShimmerCard;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import Shimmer from './Shimmer';
|
|
4
|
+
|
|
5
|
+
const MainContainer = styled.div`
|
|
6
|
+
display: flex;
|
|
7
|
+
height: 189px;
|
|
8
|
+
width: 222px;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
const ShimmerDivContainer = styled.div`
|
|
13
|
+
position: relative;
|
|
14
|
+
top: 20px;
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-direction: column;
|
|
17
|
+
gap: 5px;
|
|
18
|
+
left: 10px;
|
|
19
|
+
`;
|
|
20
|
+
const CollabShimmerCard = () => {
|
|
21
|
+
return (
|
|
22
|
+
<div>
|
|
23
|
+
<MainContainer>
|
|
24
|
+
<div style={{ height: '124px', width: ' 100%', background: '#182738' }}></div>
|
|
25
|
+
<div style={{ height: '65px', width: '100%', background: '#14202e' }}>
|
|
26
|
+
<ShimmerDivContainer>
|
|
27
|
+
<Shimmer height="12px" width="56px" />
|
|
28
|
+
<div style={{ display: 'flex', flexDirection: 'row', gap: '5px' }}>
|
|
29
|
+
<Shimmer height="10px" width="27px" />
|
|
30
|
+
<Shimmer height="10px" width="44px" />
|
|
31
|
+
</div>
|
|
32
|
+
</ShimmerDivContainer>
|
|
33
|
+
</div>
|
|
34
|
+
</MainContainer>
|
|
35
|
+
</div>
|
|
36
|
+
);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export default CollabShimmerCard;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import CollabShimmerCard from './CollabShimmerCard';
|
|
3
|
-
import Shimmer from './Shimmer';
|
|
4
|
-
|
|
5
|
-
const CollabShimmerCardTray = () => {
|
|
6
|
-
const ShimmerCount = ({ count }) => {
|
|
7
|
-
const shimmerCards = Array.from({ length: count }, (_, index) => <CollabShimmerCard key={index} />);
|
|
8
|
-
return <React.Fragment>{shimmerCards}</React.Fragment>;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div style={{ padding: '20px' }}>
|
|
13
|
-
<div style={{ height: '20px', width: '100%', display: 'flex', gap: '5px', marginBottom: '10px' }}>
|
|
14
|
-
<Shimmer height="18px" width="79px" />
|
|
15
|
-
<Shimmer height="18px" width="25px" />
|
|
16
|
-
</div>
|
|
17
|
-
<div style={{ display: 'flex', flexDirection: 'row', gap: '15px' }}>
|
|
18
|
-
<ShimmerCount count={6} />
|
|
19
|
-
</div>
|
|
20
|
-
</div>
|
|
21
|
-
);
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export default CollabShimmerCardTray;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import CollabShimmerCard from './CollabShimmerCard';
|
|
3
|
+
import Shimmer from './Shimmer';
|
|
4
|
+
|
|
5
|
+
const CollabShimmerCardTray = () => {
|
|
6
|
+
const ShimmerCount = ({ count }) => {
|
|
7
|
+
const shimmerCards = Array.from({ length: count }, (_, index) => <CollabShimmerCard key={index} />);
|
|
8
|
+
return <React.Fragment>{shimmerCards}</React.Fragment>;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<div style={{ padding: '20px' }}>
|
|
13
|
+
<div style={{ height: '20px', width: '100%', display: 'flex', gap: '5px', marginBottom: '10px' }}>
|
|
14
|
+
<Shimmer height="18px" width="79px" />
|
|
15
|
+
<Shimmer height="18px" width="25px" />
|
|
16
|
+
</div>
|
|
17
|
+
<div style={{ display: 'flex', flexDirection: 'row', gap: '15px' }}>
|
|
18
|
+
<ShimmerCount count={6} />
|
|
19
|
+
</div>
|
|
20
|
+
</div>
|
|
21
|
+
);
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export default CollabShimmerCardTray;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Shimmer from './Shimmer';
|
|
3
|
-
|
|
4
|
-
const FiltersShimmer = () => {
|
|
5
|
-
return (
|
|
6
|
-
<React.Fragment>
|
|
7
|
-
<div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}>
|
|
8
|
-
<Shimmer height="12px" width="40px"></Shimmer>
|
|
9
|
-
<div style={{ display: 'flex', gap: '5px' }}>
|
|
10
|
-
<Shimmer height="24px" width="119.5px"></Shimmer>
|
|
11
|
-
<Shimmer height="24px" width="119.5px"></Shimmer>
|
|
12
|
-
<Shimmer height="24px" width="29.5px"></Shimmer>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</React.Fragment>
|
|
16
|
-
);
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export default FiltersShimmer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Shimmer from './Shimmer';
|
|
3
|
+
|
|
4
|
+
const FiltersShimmer = () => {
|
|
5
|
+
return (
|
|
6
|
+
<React.Fragment>
|
|
7
|
+
<div style={{ display: 'flex', flexDirection: 'column', gap: '5px' }}>
|
|
8
|
+
<Shimmer height="12px" width="40px"></Shimmer>
|
|
9
|
+
<div style={{ display: 'flex', gap: '5px' }}>
|
|
10
|
+
<Shimmer height="24px" width="119.5px"></Shimmer>
|
|
11
|
+
<Shimmer height="24px" width="119.5px"></Shimmer>
|
|
12
|
+
<Shimmer height="24px" width="29.5px"></Shimmer>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</React.Fragment>
|
|
16
|
+
);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export default FiltersShimmer;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
const GraphDetailDiv = styled.div`
|
|
4
|
-
height: 350px;
|
|
5
|
-
min-width: 295px;
|
|
6
|
-
border-radius: 4px;
|
|
7
|
-
background: #15212f;
|
|
8
|
-
box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.1);
|
|
9
|
-
-webkit-transition: all 0.4s ease;
|
|
10
|
-
transition: all 0.4s ease;
|
|
11
|
-
position: relative;
|
|
12
|
-
overflow: hidden;
|
|
13
|
-
border-bottom: 0px solid #07d5cd;
|
|
14
|
-
max-width: 25%;
|
|
15
|
-
width: 100%;
|
|
16
|
-
margin: 0px 10px;
|
|
17
|
-
`;
|
|
18
|
-
import React from 'react';
|
|
19
|
-
import Shimmer from './Shimmer';
|
|
20
|
-
|
|
21
|
-
const GraphDetailsShimmer = () => {
|
|
22
|
-
return (
|
|
23
|
-
<GraphDetailDiv>
|
|
24
|
-
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: '30px' }}>
|
|
25
|
-
<Shimmer height="20px" width="80px" />
|
|
26
|
-
</div>
|
|
27
|
-
</GraphDetailDiv>
|
|
28
|
-
);
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default GraphDetailsShimmer;
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const GraphDetailDiv = styled.div`
|
|
4
|
+
height: 350px;
|
|
5
|
+
min-width: 295px;
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
background: #15212f;
|
|
8
|
+
box-shadow: 0px 12px 24px rgba(0, 0, 0, 0.1);
|
|
9
|
+
-webkit-transition: all 0.4s ease;
|
|
10
|
+
transition: all 0.4s ease;
|
|
11
|
+
position: relative;
|
|
12
|
+
overflow: hidden;
|
|
13
|
+
border-bottom: 0px solid #07d5cd;
|
|
14
|
+
max-width: 25%;
|
|
15
|
+
width: 100%;
|
|
16
|
+
margin: 0px 10px;
|
|
17
|
+
`;
|
|
18
|
+
import React from 'react';
|
|
19
|
+
import Shimmer from './Shimmer';
|
|
20
|
+
|
|
21
|
+
const GraphDetailsShimmer = () => {
|
|
22
|
+
return (
|
|
23
|
+
<GraphDetailDiv>
|
|
24
|
+
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'center', marginTop: '30px' }}>
|
|
25
|
+
<Shimmer height="20px" width="80px" />
|
|
26
|
+
</div>
|
|
27
|
+
</GraphDetailDiv>
|
|
28
|
+
);
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default GraphDetailsShimmer;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Shimmer from './Shimmer';
|
|
3
|
-
|
|
4
|
-
const GraphTitleShimmer = () => {
|
|
5
|
-
return (
|
|
6
|
-
<div
|
|
7
|
-
style={{
|
|
8
|
-
padding: '20px',
|
|
9
|
-
display: 'flex',
|
|
10
|
-
justifyContent: 'space-between',
|
|
11
|
-
alignItems: 'center'
|
|
12
|
-
}}>
|
|
13
|
-
<div style={{ width: '81.5px', height: '21px' }}>
|
|
14
|
-
<Shimmer height="21px" width="81.5" />
|
|
15
|
-
</div>
|
|
16
|
-
<div style={{ width: '71.8px', height: '18px' }}>
|
|
17
|
-
<Shimmer height="18px" width="71.8" />
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default GraphTitleShimmer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Shimmer from './Shimmer';
|
|
3
|
+
|
|
4
|
+
const GraphTitleShimmer = () => {
|
|
5
|
+
return (
|
|
6
|
+
<div
|
|
7
|
+
style={{
|
|
8
|
+
padding: '20px',
|
|
9
|
+
display: 'flex',
|
|
10
|
+
justifyContent: 'space-between',
|
|
11
|
+
alignItems: 'center'
|
|
12
|
+
}}>
|
|
13
|
+
<div style={{ width: '81.5px', height: '21px' }}>
|
|
14
|
+
<Shimmer height="21px" width="81.5" />
|
|
15
|
+
</div>
|
|
16
|
+
<div style={{ width: '71.8px', height: '18px' }}>
|
|
17
|
+
<Shimmer height="18px" width="71.8" />
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default GraphTitleShimmer;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import GraphDetailsShimmer from "./GraphDetailShimmer";
|
|
3
|
-
import GraphTitleShimmer from "./GraphTitleShimmer";
|
|
4
|
-
|
|
5
|
-
const GraphsComponentShimmer = () => {
|
|
6
|
-
let val = window.location.href.split("/").pop() === "hotstar" ? 2 : 4;
|
|
7
|
-
const components = [];
|
|
8
|
-
|
|
9
|
-
for (let i = 0; i < val; i++) {
|
|
10
|
-
components.push(<GraphDetailsShimmer key={i} />);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return (
|
|
14
|
-
<div style={{ display: "flex", flexDirection: "column" }}>
|
|
15
|
-
<GraphTitleShimmer />
|
|
16
|
-
<div style={{ padding: "0 10px", display: "flex", gap: "10px" }}>
|
|
17
|
-
{components.map((component) => component)}
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export default GraphsComponentShimmer;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import GraphDetailsShimmer from "./GraphDetailShimmer";
|
|
3
|
+
import GraphTitleShimmer from "./GraphTitleShimmer";
|
|
4
|
+
|
|
5
|
+
const GraphsComponentShimmer = () => {
|
|
6
|
+
let val = window.location.href.split("/").pop() === "hotstar" ? 2 : 4;
|
|
7
|
+
const components = [];
|
|
8
|
+
|
|
9
|
+
for (let i = 0; i < val; i++) {
|
|
10
|
+
components.push(<GraphDetailsShimmer key={i} />);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<div style={{ display: "flex", flexDirection: "column" }}>
|
|
15
|
+
<GraphTitleShimmer />
|
|
16
|
+
<div style={{ padding: "0 10px", display: "flex", gap: "10px" }}>
|
|
17
|
+
{components.map((component) => component)}
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default GraphsComponentShimmer;
|
|
@@ -10,8 +10,7 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
10
10
|
var _react = _interopRequireDefault(require("react"));
|
|
11
11
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
12
12
|
var _templateObject, _templateObject2;
|
|
13
|
-
function
|
|
14
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
15
14
|
var shimmerAnimation = (0, _styledComponents.keyframes)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n 0% {\n transform: translateX(-100%);\n } \n \n 100% {\n transform: translateX(100%);\n }\n"])));
|
|
16
15
|
var ShimmerContainer = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n position: relative;\n background-color: linear-gradient(\n 85deg,\n rgba(48, 63, 81, 0.5) 0%,\n rgba(48, 63, 81, 0.24) 50.76%,\n rgba(48, 63, 81, 0.11) 68.68%,\n rgba(48, 63, 81, 0) 100%\n );\n width: ", ";\n height: ", ";\n border-radius: ", ";\n overflow: hidden;\n box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.11);\n &::after {\n display: block;\n content: '';\n position: absolute;\n width: 100%;\n height: 100%;\n transform: translateX(-100%);\n background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);\n animation: ", " 1s infinite;\n }\n"])), function (props) {
|
|
17
16
|
return props.width;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled, { keyframes } from 'styled-components';
|
|
3
|
-
|
|
4
|
-
const shimmerAnimation = keyframes`
|
|
5
|
-
0% {
|
|
6
|
-
transform: translateX(-100%);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
100% {
|
|
10
|
-
transform: translateX(100%);
|
|
11
|
-
}
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
const ShimmerContainer = styled.div`
|
|
15
|
-
position: relative;
|
|
16
|
-
background-color: linear-gradient(
|
|
17
|
-
85deg,
|
|
18
|
-
rgba(48, 63, 81, 0.5) 0%,
|
|
19
|
-
rgba(48, 63, 81, 0.24) 50.76%,
|
|
20
|
-
rgba(48, 63, 81, 0.11) 68.68%,
|
|
21
|
-
rgba(48, 63, 81, 0) 100%
|
|
22
|
-
);
|
|
23
|
-
width: ${(props) => props.width};
|
|
24
|
-
height: ${(props) => props.height};
|
|
25
|
-
border-radius: ${(props) => props.borderRadius || '38px'};
|
|
26
|
-
overflow: hidden;
|
|
27
|
-
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.11);
|
|
28
|
-
&::after {
|
|
29
|
-
display: block;
|
|
30
|
-
content: '';
|
|
31
|
-
position: absolute;
|
|
32
|
-
width: 100%;
|
|
33
|
-
height: 100%;
|
|
34
|
-
transform: translateX(-100%);
|
|
35
|
-
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
|
|
36
|
-
animation: ${shimmerAnimation} 1s infinite;
|
|
37
|
-
}
|
|
38
|
-
`;
|
|
39
|
-
|
|
40
|
-
const Shimmer = ({ height, width, borderRadius }) => {
|
|
41
|
-
return (
|
|
42
|
-
<div style={{ marginRight: '2px' }}>
|
|
43
|
-
<ShimmerContainer width={width} height={height} borderRadius={borderRadius} />{' '}
|
|
44
|
-
</div>
|
|
45
|
-
);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default Shimmer;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled, { keyframes } from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const shimmerAnimation = keyframes`
|
|
5
|
+
0% {
|
|
6
|
+
transform: translateX(-100%);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
100% {
|
|
10
|
+
transform: translateX(100%);
|
|
11
|
+
}
|
|
12
|
+
`;
|
|
13
|
+
|
|
14
|
+
const ShimmerContainer = styled.div`
|
|
15
|
+
position: relative;
|
|
16
|
+
background-color: linear-gradient(
|
|
17
|
+
85deg,
|
|
18
|
+
rgba(48, 63, 81, 0.5) 0%,
|
|
19
|
+
rgba(48, 63, 81, 0.24) 50.76%,
|
|
20
|
+
rgba(48, 63, 81, 0.11) 68.68%,
|
|
21
|
+
rgba(48, 63, 81, 0) 100%
|
|
22
|
+
);
|
|
23
|
+
width: ${(props) => props.width};
|
|
24
|
+
height: ${(props) => props.height};
|
|
25
|
+
border-radius: ${(props) => props.borderRadius || '38px'};
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.11);
|
|
28
|
+
&::after {
|
|
29
|
+
display: block;
|
|
30
|
+
content: '';
|
|
31
|
+
position: absolute;
|
|
32
|
+
width: 100%;
|
|
33
|
+
height: 100%;
|
|
34
|
+
transform: translateX(-100%);
|
|
35
|
+
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
|
|
36
|
+
animation: ${shimmerAnimation} 1s infinite;
|
|
37
|
+
}
|
|
38
|
+
`;
|
|
39
|
+
|
|
40
|
+
const Shimmer = ({ height, width, borderRadius }) => {
|
|
41
|
+
return (
|
|
42
|
+
<div style={{ marginRight: '2px' }}>
|
|
43
|
+
<ShimmerContainer width={width} height={height} borderRadius={borderRadius} />{' '}
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export default Shimmer;
|