@desynova-digital/components 9.1.40 → 9.1.42
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/cardV2/cardV2.js +5 -5
- package/atoms/cardV2/content.js +6 -6
- package/atoms/cardV2/thumbnail.js +39 -39
- package/atoms/draftInputText/draftInputText.js +40 -40
- package/atoms/icon/icons.json +1820 -1813
- 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.jsx +48 -48
- package/atoms/loader/ThreeDotLoader.jsx +51 -51
- package/atoms/loader/spinningLoader.jsx +69 -69
- package/atoms/sideBar/sidebar.js +13 -13
- package/atoms/sideBar/sidebar.jsx +262 -250
- package/atoms/timeCodeInput/timeCodeMainInput.js +7 -7
- package/atoms/videoCard/videoCard.js +3 -3
- 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 +38 -38
- package/molecules/richTextInput/RichTextInput.js +8 -8
- package/package.json +2 -2
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { colors } from "@desynova-digital/tokens";
|
|
4
|
-
const LoaderBox = styled.div`
|
|
5
|
-
display: inline-block;
|
|
6
|
-
|
|
7
|
-
& span {
|
|
8
|
-
display: inline-block;
|
|
9
|
-
width: 20px;
|
|
10
|
-
height: 20px;
|
|
11
|
-
border-radius: 100%;
|
|
12
|
-
background-color: ${(props) => colors[props.theme].label.boxBackground};
|
|
13
|
-
margin: 0px 5px;
|
|
14
|
-
opacity: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
& span:nth-child(1) {
|
|
18
|
-
animation: opacitychange 1s ease-in-out infinite;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
& span:nth-child(2) {
|
|
22
|
-
animation: opacitychange 1s ease-in-out 0.33s infinite;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
& span:nth-child(3) {
|
|
26
|
-
animation: opacitychange 1s ease-in-out 0.66s infinite;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
@keyframes opacitychange {
|
|
30
|
-
0%,
|
|
31
|
-
100% {
|
|
32
|
-
opacity: 0;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
60% {
|
|
36
|
-
opacity: 1;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
`;
|
|
40
|
-
|
|
41
|
-
const ThreeDotLoader = (props) => {
|
|
42
|
-
return (
|
|
43
|
-
<LoaderBox theme={props.theme} className="loader three-dot-loader">
|
|
44
|
-
<span />
|
|
45
|
-
<span />
|
|
46
|
-
<span />
|
|
47
|
-
</LoaderBox>
|
|
48
|
-
);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
export default ThreeDotLoader;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { colors } from "@desynova-digital/tokens";
|
|
4
|
+
const LoaderBox = styled.div`
|
|
5
|
+
display: inline-block;
|
|
6
|
+
|
|
7
|
+
& span {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
width: 20px;
|
|
10
|
+
height: 20px;
|
|
11
|
+
border-radius: 100%;
|
|
12
|
+
background-color: ${(props) => colors[props.theme].label.boxBackground};
|
|
13
|
+
margin: 0px 5px;
|
|
14
|
+
opacity: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
& span:nth-child(1) {
|
|
18
|
+
animation: opacitychange 1s ease-in-out infinite;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& span:nth-child(2) {
|
|
22
|
+
animation: opacitychange 1s ease-in-out 0.33s infinite;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& span:nth-child(3) {
|
|
26
|
+
animation: opacitychange 1s ease-in-out 0.66s infinite;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@keyframes opacitychange {
|
|
30
|
+
0%,
|
|
31
|
+
100% {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
60% {
|
|
36
|
+
opacity: 1;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
|
|
41
|
+
const ThreeDotLoader = (props) => {
|
|
42
|
+
return (
|
|
43
|
+
<LoaderBox theme={props.theme} className="loader three-dot-loader">
|
|
44
|
+
<span />
|
|
45
|
+
<span />
|
|
46
|
+
<span />
|
|
47
|
+
</LoaderBox>
|
|
48
|
+
);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default ThreeDotLoader;
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled from "styled-components";
|
|
3
|
-
import { colors } from "@desynova-digital/tokens";
|
|
4
|
-
const LoaderBox = styled.div`
|
|
5
|
-
position: relative;
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
height: ${(props) => (props.size === "small" ? "30px" : "50px")};
|
|
9
|
-
.parentBox {
|
|
10
|
-
position: relative;
|
|
11
|
-
width: ${(props) => (props.size === "small" ? "28.5714px" : "38.5714px")};
|
|
12
|
-
height: ${(props) => (props.size === "small" ? "28.5714px" : "38.5714px")};
|
|
13
|
-
animation: spin 0.6s 0s infinite linear;
|
|
14
|
-
animation-fill-mode: forwards;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.ball {
|
|
18
|
-
width: 4.28571px;
|
|
19
|
-
height: 4.28571px;
|
|
20
|
-
border-radius: 100%;
|
|
21
|
-
background-color: ${(props) =>
|
|
22
|
-
props.background ? `${props.background}` : `${colors[props.theme].label.spinLoader}`};
|
|
23
|
-
opacity: 0.8;
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 12.8571px;
|
|
26
|
-
animation: spin 0.6s 0s 0s infinite linear;
|
|
27
|
-
animation-fill-mode: forwards;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.circle {
|
|
31
|
-
width: ${(props) => (props.size === "small" ? "20px" : "30px")};
|
|
32
|
-
height: ${(props) => (props.size === "small" ? "20px" : "30px")};
|
|
33
|
-
border-radius: 100%;
|
|
34
|
-
border: ${(props) =>
|
|
35
|
-
props.background
|
|
36
|
-
? `4.28571px solid ${props.background}`
|
|
37
|
-
: `4.28571px solid ${colors[props.theme].label.spinLoader}`};
|
|
38
|
-
opacity: 0.2;
|
|
39
|
-
box-sizing: content-box;
|
|
40
|
-
position: absolute;
|
|
41
|
-
top: 50%;
|
|
42
|
-
left: 50%;
|
|
43
|
-
transform: translate(-50%, -50%);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@-webkit-keyframes spin {
|
|
47
|
-
100% {
|
|
48
|
-
-webkit-transform: rotate(360deg);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
@keyframes spin {
|
|
53
|
-
100% {
|
|
54
|
-
transform: rotate(360deg);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
`;
|
|
58
|
-
const SpinningLoader = ({ size, background,theme }) => {
|
|
59
|
-
return (
|
|
60
|
-
<LoaderBox theme={theme} size={size} background={background}>
|
|
61
|
-
<div className="parentBox">
|
|
62
|
-
<div className="ball" />
|
|
63
|
-
<div className="circle" />
|
|
64
|
-
</div>
|
|
65
|
-
</LoaderBox>
|
|
66
|
-
);
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
export default SpinningLoader;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import styled from "styled-components";
|
|
3
|
+
import { colors } from "@desynova-digital/tokens";
|
|
4
|
+
const LoaderBox = styled.div`
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
height: ${(props) => (props.size === "small" ? "30px" : "50px")};
|
|
9
|
+
.parentBox {
|
|
10
|
+
position: relative;
|
|
11
|
+
width: ${(props) => (props.size === "small" ? "28.5714px" : "38.5714px")};
|
|
12
|
+
height: ${(props) => (props.size === "small" ? "28.5714px" : "38.5714px")};
|
|
13
|
+
animation: spin 0.6s 0s infinite linear;
|
|
14
|
+
animation-fill-mode: forwards;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.ball {
|
|
18
|
+
width: 4.28571px;
|
|
19
|
+
height: 4.28571px;
|
|
20
|
+
border-radius: 100%;
|
|
21
|
+
background-color: ${(props) =>
|
|
22
|
+
props.background ? `${props.background}` : `${colors[props.theme].label.spinLoader}`};
|
|
23
|
+
opacity: 0.8;
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: 12.8571px;
|
|
26
|
+
animation: spin 0.6s 0s 0s infinite linear;
|
|
27
|
+
animation-fill-mode: forwards;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.circle {
|
|
31
|
+
width: ${(props) => (props.size === "small" ? "20px" : "30px")};
|
|
32
|
+
height: ${(props) => (props.size === "small" ? "20px" : "30px")};
|
|
33
|
+
border-radius: 100%;
|
|
34
|
+
border: ${(props) =>
|
|
35
|
+
props.background
|
|
36
|
+
? `4.28571px solid ${props.background}`
|
|
37
|
+
: `4.28571px solid ${colors[props.theme].label.spinLoader}`};
|
|
38
|
+
opacity: 0.2;
|
|
39
|
+
box-sizing: content-box;
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 50%;
|
|
42
|
+
left: 50%;
|
|
43
|
+
transform: translate(-50%, -50%);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@-webkit-keyframes spin {
|
|
47
|
+
100% {
|
|
48
|
+
-webkit-transform: rotate(360deg);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@keyframes spin {
|
|
53
|
+
100% {
|
|
54
|
+
transform: rotate(360deg);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
`;
|
|
58
|
+
const SpinningLoader = ({ size, background,theme }) => {
|
|
59
|
+
return (
|
|
60
|
+
<LoaderBox theme={theme} size={size} background={background}>
|
|
61
|
+
<div className="parentBox">
|
|
62
|
+
<div className="ball" />
|
|
63
|
+
<div className="circle" />
|
|
64
|
+
</div>
|
|
65
|
+
</LoaderBox>
|
|
66
|
+
);
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default SpinningLoader;
|
package/atoms/sideBar/sidebar.js
CHANGED
|
@@ -26,11 +26,11 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
26
26
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
27
27
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
28
28
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
29
|
-
var SideBarOverlay = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: rgba(0,0,0,0.5);\n z-index: 100;\n visibility: ", ";\n"])), function (props) {
|
|
30
|
-
return props.open ?
|
|
29
|
+
var SideBarOverlay = _styledComponents["default"].div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["\n position: fixed;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n background: rgba(0, 0, 0, 0.5);\n z-index: 100;\n visibility: ", ";\n"])), function (props) {
|
|
30
|
+
return props.open ? "visible" : "hidden";
|
|
31
31
|
});
|
|
32
|
-
var SideBarBlock = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
33
|
-
var ButtonContainer = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n
|
|
32
|
+
var SideBarBlock = _styledComponents["default"].div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["\n height: 100%;\n position: fixed;\n z-index: 101;\n top: 0;\n right: 0px;\n background-color: #121d29;\n box-shadow: 0px 2px 44px rgba(0, 0, 0, 0.5);\n overflow: hidden;\n width: 0px;\n\n transition: width 250ms ease-in-out;\n\n .ball {\n background-color: #151717;\n }\n\n .circle {\n border: 4px solid #1d2020;\n height: 10px;\n width: 10px;\n }\n\n div.loader-holder > div {\n height: 20px;\n margin-left: 5px;\n }\n\n .parentBox {\n width: 18px;\n height: 18px;\n }\n\n &.open {\n width: 400px;\n .sidebar-header,\n .bodyContainer,\n .button-container {\n opacity: 1;\n }\n }\n\n .sidebar-header {\n transition: opacity 50ms ease-in-out 250ms;\n opacity: 0;\n padding: 20px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n box-sizing: border-box;\n\n .header-title {\n font-family: SFUIText-Light;\n line-height: 14px;\n font-size: 16px;\n line-height: 14px;\n color: #ffffff;\n }\n ", " {\n margin: 0;\n background: transparent;\n border-color: transparent;\n padding: 0;\n &:hover {\n background: transparent;\n border-color: transparent;\n }\n }\n }\n\n .bodyContainer {\n opacity: 0;\n transition: opacity 50ms ease-in-out 250ms;\n color: white;\n font-family: SFUIText-Regular;\n overflow-y: scroll;\n overflow-x: hidden;\n height: calc(100% - 110px);\n padding: 0px 10px 0px 20px;\n overflow-x: hidden;\n }\n\n .bodyContainer-without-footer {\n height: calc(100% - 70px) !important;\n }\n"])), _index["default"].Element);
|
|
33
|
+
var ButtonContainer = _styledComponents["default"].div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["\n font-family: SFUIText-Regular;\n display: flex;\n justify-content: center;\n padding: 10px 0;\n background: #182738;\n box-shadow: 0px -12px 24px rgb(0 0 0 / 20%);\n width: 100%;\n bottom: 0;\n position: absolute;\n opacity: 0;\n transition: opacity 50ms ease-in-out 250ms;\n\n .btn {\n border-radius: 22px;\n color: #ffffff;\n font-size: 12px;\n line-height: 12px;\n text-align: center;\n min-width: 150px;\n text-transform: uppercase;\n padding: 10px 0;\n margin: 0 10px;\n max-width: 150px;\n cursor: pointer;\n display: flex;\n justify-content: center;\n align-items: center;\n\n :hover {\n color: ", ";\n }\n }\n\n .default {\n background: #303f51;\n\n :hover {\n color: ", ";\n }\n }\n\n .primary {\n color: rgb(12, 20, 29);\n background: ", ";\n\n :hover {\n color: rgb(12, 20, 29);\n transition: all 0.2s ease-in-out 0s;\n box-shadow: rgb(7 213 205 / 20%) 0px 12px 24px 0px;\n }\n }\n"])), function (props) {
|
|
34
34
|
return _tokens.colors[props.theme].sideBar.themeColor;
|
|
35
35
|
}, function (props) {
|
|
36
36
|
return _tokens.colors[props.theme].sideBar.lightthemeColor;
|
|
@@ -38,9 +38,9 @@ var ButtonContainer = _styledComponents["default"].div(_templateObject3 || (_tem
|
|
|
38
38
|
return _tokens.colors[props.theme].sideBar.themeColor;
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
/**
|
|
42
|
-
* @component
|
|
43
|
-
* @name SideBar
|
|
41
|
+
/**
|
|
42
|
+
* @component
|
|
43
|
+
* @name SideBar
|
|
44
44
|
*/
|
|
45
45
|
var SideBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
46
46
|
function SideBar(props) {
|
|
@@ -87,7 +87,7 @@ var SideBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
87
87
|
open: showSideBar
|
|
88
88
|
}), /*#__PURE__*/_react["default"].createElement(SideBarBlock, {
|
|
89
89
|
theme: theme,
|
|
90
|
-
className: showSideBar ?
|
|
90
|
+
className: showSideBar ? "open" : "close"
|
|
91
91
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
92
92
|
className: "sidebar-header"
|
|
93
93
|
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
@@ -100,17 +100,17 @@ var SideBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
100
100
|
icon: "cross",
|
|
101
101
|
iconBackground: false,
|
|
102
102
|
onClick: function onClick() {
|
|
103
|
-
_this2.buttonClick(
|
|
103
|
+
_this2.buttonClick("cancel");
|
|
104
104
|
}
|
|
105
105
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
106
|
-
className: "bodyContainer ".concat(!sideBarButtonObject.length &&
|
|
106
|
+
className: "bodyContainer ".concat(!sideBarButtonObject.length && "bodyContainer-without-footer")
|
|
107
107
|
}, content), sideBarButtonObject && sideBarButtonObject.length ? /*#__PURE__*/_react["default"].createElement(ButtonContainer, {
|
|
108
108
|
theme: theme,
|
|
109
109
|
className: "button-container"
|
|
110
110
|
}, sideBarButtonObject.map(function (object) {
|
|
111
111
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
112
112
|
key: object.field,
|
|
113
|
-
className: "btn ".concat(object.type ||
|
|
113
|
+
className: "btn ".concat(object.type || "default"),
|
|
114
114
|
onClick: function onClick() {
|
|
115
115
|
_this2.buttonClick(object.field);
|
|
116
116
|
}
|
|
@@ -123,7 +123,7 @@ var SideBar = exports["default"] = /*#__PURE__*/function (_Component) {
|
|
|
123
123
|
}]);
|
|
124
124
|
}(_react.Component);
|
|
125
125
|
SideBar.propTypes = {
|
|
126
|
-
theme: _propTypes["default"].oneOf([
|
|
126
|
+
theme: _propTypes["default"].oneOf(["light", "dark", "nexc"]),
|
|
127
127
|
showSideBar: _propTypes["default"].bool,
|
|
128
128
|
title: _propTypes["default"].string,
|
|
129
129
|
content: _propTypes["default"].object,
|
|
@@ -132,5 +132,5 @@ SideBar.propTypes = {
|
|
|
132
132
|
onButtonClick: _propTypes["default"].func
|
|
133
133
|
};
|
|
134
134
|
SideBar.defaultProps = {
|
|
135
|
-
theme:
|
|
135
|
+
theme: "dark"
|
|
136
136
|
};
|