@desynova-digital/components 9.2.3 → 9.2.5

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.
Files changed (29) hide show
  1. package/_helpers/utils.js +4 -4
  2. package/atoms/cardV2/cardV2.js +5 -5
  3. package/atoms/cardV2/content.js +6 -6
  4. package/atoms/cardV2/contentV2.js +23 -16
  5. package/atoms/cardV2/thumbnail.js +10 -10
  6. package/atoms/cardV2/thumbnailV2.js +12 -12
  7. package/atoms/draftInputText/draftInputText.js +40 -40
  8. package/atoms/icon/icons.json +1931 -1931
  9. package/atoms/loader/CircleLoader.jsx +93 -93
  10. package/atoms/loader/ShimmerComponent/CollabShimmerCard.jsx +39 -39
  11. package/atoms/loader/ShimmerComponent/CollabShimmerCardTray.jsx +24 -24
  12. package/atoms/loader/ShimmerComponent/FiltersShimmer.jsx +19 -19
  13. package/atoms/loader/ShimmerComponent/GraphDetailShimmer.jsx +31 -31
  14. package/atoms/loader/ShimmerComponent/GraphTitleShimmer.jsx +23 -23
  15. package/atoms/loader/ShimmerComponent/GraphsComponentShimmer.jsx +23 -23
  16. package/atoms/loader/ShimmerComponent/Shimmer.jsx +48 -48
  17. package/atoms/loader/ThreeDotLoader.jsx +51 -51
  18. package/atoms/loader/spinningLoader.jsx +69 -69
  19. package/atoms/sideBar/sidebar.js +3 -3
  20. package/atoms/sideBar/sidebar.jsx +262 -262
  21. package/atoms/timeCodeInput/timeCodeMainInput.js +7 -7
  22. package/atoms/videoCard/videoCard.js +3 -3
  23. package/molecules/errorScreen/TableErrorScreen.jsx +85 -85
  24. package/molecules/errorScreen/errorScreen.js +9 -9
  25. package/molecules/errorScreen/errorScreen.jsx +149 -149
  26. package/molecules/filter/filter.js +38 -38
  27. package/molecules/richTextInput/RichTextInput.js +8 -8
  28. package/molecules/richTextInputV2/RichTextInputV2.js +8 -8
  29. package/package.json +2 -2
@@ -1,262 +1,262 @@
1
- import React, { Component } from "react";
2
- import PropTypes from "prop-types";
3
- import styled from "styled-components";
4
- import Button from "../button/index";
5
- import { Loader } from "../../components";
6
- import { colors } from "@desynova-digital/tokens";
7
- const SideBarOverlay = styled.div`
8
- position: fixed;
9
- width: 100%;
10
- height: 100%;
11
- top: 0;
12
- left: 0;
13
- background: rgba(0, 0, 0, 0.5);
14
- z-index: 100;
15
- visibility: ${(props) => (props.open ? "visible" : "hidden")};
16
- `;
17
-
18
- const SideBarBlock = styled.div`
19
- height: 100%;
20
- position: fixed;
21
- z-index: 101;
22
- top: 0;
23
- right: 0px;
24
- background-color: #121d29;
25
- box-shadow: 0px 2px 44px rgba(0, 0, 0, 0.5);
26
- overflow: hidden;
27
- width: 0px;
28
-
29
- transition: width 250ms ease-in-out;
30
-
31
- .ball {
32
- background-color: #151717;
33
- }
34
-
35
- .circle {
36
- border: 4px solid #1d2020;
37
- height: 10px;
38
- width: 10px;
39
- }
40
-
41
- div.loader-holder > div {
42
- height: 20px;
43
- margin-left: 5px;
44
- }
45
-
46
- .parentBox {
47
- width: 18px;
48
- height: 18px;
49
- }
50
-
51
- &.open {
52
- width: 400px;
53
- .sidebar-header,
54
- .bodyContainer,
55
- .button-container {
56
- opacity: 1;
57
- }
58
- }
59
-
60
- .sidebar-header {
61
- transition: opacity 50ms ease-in-out 250ms;
62
- opacity: 0;
63
- padding: 20px;
64
- display: flex;
65
- justify-content: space-between;
66
- align-items: center;
67
- box-sizing: border-box;
68
-
69
- .header-title {
70
- font-family: SFUIText-Light;
71
- line-height: 14px;
72
- font-size: 16px;
73
- line-height: 14px;
74
- color: #ffffff;
75
- }
76
- ${Button.Element} {
77
- margin: 0;
78
- background: transparent;
79
- border-color: transparent;
80
- padding: 0;
81
- &:hover {
82
- background: transparent;
83
- border-color: transparent;
84
- }
85
- }
86
- }
87
-
88
- .bodyContainer {
89
- opacity: 0;
90
- transition: opacity 50ms ease-in-out 250ms;
91
- color: white;
92
- font-family: SFUIText-Regular;
93
- overflow-y: scroll;
94
- overflow-x: hidden;
95
- height: calc(100% - 110px);
96
- padding: 0px 10px 0px 20px;
97
- overflow-x: hidden;
98
- }
99
-
100
- .bodyContainer-without-footer {
101
- height: calc(100% - 70px) !important;
102
- }
103
- `;
104
-
105
- const ButtonContainer = styled.div`
106
- font-family: SFUIText-Regular;
107
- display: flex;
108
- justify-content: center;
109
- padding: 10px 0;
110
- background: #182738;
111
- box-shadow: 0px -12px 24px rgb(0 0 0 / 20%);
112
- width: 100%;
113
- bottom: 0;
114
- position: absolute;
115
- opacity: 0;
116
- transition: opacity 50ms ease-in-out 250ms;
117
-
118
- .btn {
119
- border-radius: 22px;
120
- color: #ffffff;
121
- font-size: 12px;
122
- line-height: 12px;
123
- text-align: center;
124
- min-width: 150px;
125
- text-transform: uppercase;
126
- padding: 10px 0;
127
- margin: 0 10px;
128
- max-width: 150px;
129
- cursor: pointer;
130
- display: flex;
131
- justify-content: center;
132
- align-items: center;
133
-
134
- :hover {
135
- color: ${(props) => colors[props.theme].sideBar.themeColor};
136
- }
137
- }
138
-
139
- .default {
140
- background: #303f51;
141
-
142
- :hover {
143
- color: ${(props) => colors[props.theme].sideBar.lightthemeColor};
144
- }
145
- }
146
-
147
- .primary {
148
- color: rgb(12, 20, 29);
149
- background: ${(props) => colors[props.theme].sideBar.themeColor};
150
-
151
- :hover {
152
- color: rgb(12, 20, 29);
153
- transition: all 0.2s ease-in-out 0s;
154
- box-shadow: rgb(7 213 205 / 20%) 0px 12px 24px 0px;
155
- }
156
- }
157
- `;
158
-
159
- /**
160
- * @component
161
- * @name SideBar
162
- */
163
-
164
- export default class SideBar extends Component {
165
- constructor(props) {
166
- super(props);
167
- this.state = {
168
- show: false,
169
- renderFlag: false,
170
- };
171
- }
172
- componentDidMount = () => {
173
- this.setState({
174
- renderFlag: true,
175
- });
176
- };
177
-
178
- cancelClick() {
179
- const { onCancelClick } = this.props;
180
- onCancelClick();
181
- }
182
-
183
- buttonClick(field) {
184
- const { onButtonClick } = this.props;
185
- onButtonClick(field);
186
- this.setState({
187
- ...this.state,
188
- });
189
- }
190
- render() {
191
- const {
192
- title,
193
- content,
194
- sideBarButtonObject,
195
- showSideBar,
196
- loadingBtn,
197
- theme,
198
- } = this.props;
199
-
200
- return (
201
- <React.Fragment>
202
- <SideBarOverlay open={showSideBar} />
203
- <SideBarBlock theme={theme} className={showSideBar ? "open" : "close"}>
204
- <div className="sidebar-header">
205
- <p className="header-title">{title}</p>
206
- <Button
207
- theme={theme}
208
- appearance="cta"
209
- iconWidth={12}
210
- iconHeight={12}
211
- icon="cross"
212
- iconBackground={false}
213
- onClick={() => {
214
- this.buttonClick("cancel");
215
- }}
216
- />
217
- </div>
218
- <div
219
- className={`bodyContainer ${!sideBarButtonObject.length &&
220
- "bodyContainer-without-footer"}`}
221
- >
222
- {content}
223
- </div>
224
- {sideBarButtonObject && sideBarButtonObject.length ? (
225
- <ButtonContainer theme={theme} className="button-container">
226
- {sideBarButtonObject.map((object) => {
227
- return (
228
- <div
229
- key={object.field}
230
- className={`btn ${object.type || "default"}`}
231
- onClick={() => {
232
- this.buttonClick(object.field);
233
- }}
234
- >
235
- {object.title}
236
- {object.isLoading ? (
237
- <Loader theme={theme} loaderName="SpinningLoader" />
238
- ) : null}
239
- </div>
240
- );
241
- })}
242
- </ButtonContainer>
243
- ) : null}
244
- </SideBarBlock>
245
- </React.Fragment>
246
- );
247
- }
248
- }
249
-
250
- SideBar.propTypes = {
251
- theme: PropTypes.oneOf(["light", "dark", "nexc"]),
252
- showSideBar: PropTypes.bool,
253
- title: PropTypes.string,
254
- content: PropTypes.object,
255
- sideBarButtonObject: PropTypes.object,
256
- onCancelClick: PropTypes.func,
257
- onButtonClick: PropTypes.func,
258
- };
259
-
260
- SideBar.defaultProps = {
261
- theme: "dark",
262
- };
1
+ import React, { Component } from "react";
2
+ import PropTypes from "prop-types";
3
+ import styled from "styled-components";
4
+ import Button from "../button/index";
5
+ import { Loader } from "../../components";
6
+ import { colors } from "@desynova-digital/tokens";
7
+ const SideBarOverlay = styled.div`
8
+ position: fixed;
9
+ width: 100%;
10
+ height: 100%;
11
+ top: 0;
12
+ left: 0;
13
+ background: rgba(0, 0, 0, 0.5);
14
+ z-index: 100;
15
+ visibility: ${(props) => (props.open ? "visible" : "hidden")};
16
+ `;
17
+
18
+ const SideBarBlock = styled.div`
19
+ height: 100%;
20
+ position: fixed;
21
+ z-index: 101;
22
+ top: 0;
23
+ right: 0px;
24
+ background-color: #121d29;
25
+ box-shadow: 0px 2px 44px rgba(0, 0, 0, 0.5);
26
+ overflow: hidden;
27
+ width: 0px;
28
+
29
+ transition: width 250ms ease-in-out;
30
+
31
+ .ball {
32
+ background-color: #151717;
33
+ }
34
+
35
+ .circle {
36
+ border: 4px solid #1d2020;
37
+ height: 10px;
38
+ width: 10px;
39
+ }
40
+
41
+ div.loader-holder > div {
42
+ height: 20px;
43
+ margin-left: 5px;
44
+ }
45
+
46
+ .parentBox {
47
+ width: 18px;
48
+ height: 18px;
49
+ }
50
+
51
+ &.open {
52
+ width: 400px;
53
+ .sidebar-header,
54
+ .bodyContainer,
55
+ .button-container {
56
+ opacity: 1;
57
+ }
58
+ }
59
+
60
+ .sidebar-header {
61
+ transition: opacity 50ms ease-in-out 250ms;
62
+ opacity: 0;
63
+ padding: 20px;
64
+ display: flex;
65
+ justify-content: space-between;
66
+ align-items: center;
67
+ box-sizing: border-box;
68
+
69
+ .header-title {
70
+ font-family: SFUIText-Light;
71
+ line-height: 14px;
72
+ font-size: 16px;
73
+ line-height: 14px;
74
+ color: #ffffff;
75
+ }
76
+ ${Button.Element} {
77
+ margin: 0;
78
+ background: transparent;
79
+ border-color: transparent;
80
+ padding: 0;
81
+ &:hover {
82
+ background: transparent;
83
+ border-color: transparent;
84
+ }
85
+ }
86
+ }
87
+
88
+ .bodyContainer {
89
+ opacity: 0;
90
+ transition: opacity 50ms ease-in-out 250ms;
91
+ color: white;
92
+ font-family: SFUIText-Regular;
93
+ overflow-y: scroll;
94
+ overflow-x: hidden;
95
+ height: calc(100% - 110px);
96
+ padding: 0px 10px 0px 20px;
97
+ overflow-x: hidden;
98
+ }
99
+
100
+ .bodyContainer-without-footer {
101
+ height: calc(100% - 70px) !important;
102
+ }
103
+ `;
104
+
105
+ const ButtonContainer = styled.div`
106
+ font-family: SFUIText-Regular;
107
+ display: flex;
108
+ justify-content: center;
109
+ padding: 10px 0;
110
+ background: #182738;
111
+ box-shadow: 0px -12px 24px rgb(0 0 0 / 20%);
112
+ width: 100%;
113
+ bottom: 0;
114
+ position: absolute;
115
+ opacity: 0;
116
+ transition: opacity 50ms ease-in-out 250ms;
117
+
118
+ .btn {
119
+ border-radius: 22px;
120
+ color: #ffffff;
121
+ font-size: 12px;
122
+ line-height: 12px;
123
+ text-align: center;
124
+ min-width: 150px;
125
+ text-transform: uppercase;
126
+ padding: 10px 0;
127
+ margin: 0 10px;
128
+ max-width: 150px;
129
+ cursor: pointer;
130
+ display: flex;
131
+ justify-content: center;
132
+ align-items: center;
133
+
134
+ :hover {
135
+ color: ${(props) => colors[props.theme].sideBar.themeColor};
136
+ }
137
+ }
138
+
139
+ .default {
140
+ background: #303f51;
141
+
142
+ :hover {
143
+ color: ${(props) => colors[props.theme].sideBar.lightthemeColor};
144
+ }
145
+ }
146
+
147
+ .primary {
148
+ color: rgb(12, 20, 29);
149
+ background: ${(props) => colors[props.theme].sideBar.themeColor};
150
+
151
+ :hover {
152
+ color: rgb(12, 20, 29);
153
+ transition: all 0.2s ease-in-out 0s;
154
+ box-shadow: rgb(7 213 205 / 20%) 0px 12px 24px 0px;
155
+ }
156
+ }
157
+ `;
158
+
159
+ /**
160
+ * @component
161
+ * @name SideBar
162
+ */
163
+
164
+ export default class SideBar extends Component {
165
+ constructor(props) {
166
+ super(props);
167
+ this.state = {
168
+ show: false,
169
+ renderFlag: false,
170
+ };
171
+ }
172
+ componentDidMount = () => {
173
+ this.setState({
174
+ renderFlag: true,
175
+ });
176
+ };
177
+
178
+ cancelClick() {
179
+ const { onCancelClick } = this.props;
180
+ onCancelClick();
181
+ }
182
+
183
+ buttonClick(field) {
184
+ const { onButtonClick } = this.props;
185
+ onButtonClick(field);
186
+ this.setState({
187
+ ...this.state,
188
+ });
189
+ }
190
+ render() {
191
+ const {
192
+ title,
193
+ content,
194
+ sideBarButtonObject,
195
+ showSideBar,
196
+ loadingBtn,
197
+ theme,
198
+ } = this.props;
199
+
200
+ return (
201
+ <React.Fragment>
202
+ <SideBarOverlay open={showSideBar} />
203
+ <SideBarBlock theme={theme} className={showSideBar ? "open" : "close"}>
204
+ <div className="sidebar-header">
205
+ <p className="header-title">{title}</p>
206
+ <Button
207
+ theme={theme}
208
+ appearance="cta"
209
+ iconWidth={12}
210
+ iconHeight={12}
211
+ icon="cross"
212
+ iconBackground={false}
213
+ onClick={() => {
214
+ this.buttonClick("cancel");
215
+ }}
216
+ />
217
+ </div>
218
+ <div
219
+ className={`bodyContainer ${!sideBarButtonObject.length &&
220
+ "bodyContainer-without-footer"}`}
221
+ >
222
+ {content}
223
+ </div>
224
+ {sideBarButtonObject && sideBarButtonObject.length ? (
225
+ <ButtonContainer theme={theme} className="button-container">
226
+ {sideBarButtonObject.map((object) => {
227
+ return (
228
+ <div
229
+ key={object.field}
230
+ className={`btn ${object.type || "default"}`}
231
+ onClick={() => {
232
+ this.buttonClick(object.field);
233
+ }}
234
+ >
235
+ {object.title}
236
+ {object.isLoading ? (
237
+ <Loader theme={theme} loaderName="SpinningLoader" />
238
+ ) : null}
239
+ </div>
240
+ );
241
+ })}
242
+ </ButtonContainer>
243
+ ) : null}
244
+ </SideBarBlock>
245
+ </React.Fragment>
246
+ );
247
+ }
248
+ }
249
+
250
+ SideBar.propTypes = {
251
+ theme: PropTypes.oneOf(["light", "dark", "nexc"]),
252
+ showSideBar: PropTypes.bool,
253
+ title: PropTypes.string,
254
+ content: PropTypes.object,
255
+ sideBarButtonObject: PropTypes.object,
256
+ onCancelClick: PropTypes.func,
257
+ onButtonClick: PropTypes.func,
258
+ };
259
+
260
+ SideBar.defaultProps = {
261
+ theme: "dark",
262
+ };
@@ -162,13 +162,13 @@ var TimeCodeMainInput = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref)
162
162
  });
163
163
  var onChangeFn = function onChangeFn(e) {
164
164
  onTimePickerChange(e.target.value, e);
165
- /*
166
- * checkIfTimeValid(e.target.value);
167
- * if(checkIfTimeValid(e.target.value)) {
168
- * if (e.target.value.length) {
169
- * updateFormDataExternally(inputFieldType, e.target.value);
170
- * }
171
- * }
165
+ /*
166
+ * checkIfTimeValid(e.target.value);
167
+ * if(checkIfTimeValid(e.target.value)) {
168
+ * if (e.target.value.length) {
169
+ * updateFormDataExternally(inputFieldType, e.target.value);
170
+ * }
171
+ * }
172
172
  */
173
173
  };
174
174
  var onKeyDownFn = function onKeyDownFn(e) {
@@ -383,9 +383,9 @@ var defaultDimensions = {
383
383
  }
384
384
  },
385
385
  type4: {
386
- /*
387
- * //width:'280px',
388
- * //height:'auto',
386
+ /*
387
+ * //width:'280px',
388
+ * //height:'auto',
389
389
  */
390
390
 
391
391
  large: {