@desynova-digital/components 8.19.12 → 8.19.14

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.
@@ -0,0 +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: 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 }) => {
41
+ return (
42
+ <div style={{ marginRight: '2px' }}>
43
+ <ShimmerContainer width={width} height={height} />{' '}
44
+ </div>
45
+ );
46
+ };
47
+
48
+ export default Shimmer;
@@ -0,0 +1,107 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ var _react = require('react');
8
+
9
+ var _react2 = _interopRequireDefault(_react);
10
+
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
+
13
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+
15
+ var TableErrorScreen = function TableErrorScreen() {
16
+ return _react2.default.createElement(
17
+ 'div',
18
+ {
19
+ style: _defineProperty({
20
+ height: '279px',
21
+ width: '100%',
22
+ display: 'flex',
23
+ alignItems: 'center',
24
+ justifyContent: 'center'
25
+ }, 'alignItems', 'center') },
26
+ _react2.default.createElement(
27
+ 'div',
28
+ {
29
+ style: {
30
+ width: '520px',
31
+ height: '130px',
32
+ display: 'flex',
33
+ alignItems: 'center',
34
+ justifyContent: 'center',
35
+ gap: '10px'
36
+ } },
37
+ _react2.default.createElement(
38
+ 'div',
39
+ {
40
+ style: {
41
+ height: '120px',
42
+ width: '120px',
43
+ background: '#303F51',
44
+ display: 'flex',
45
+ alignItems: 'center',
46
+ justifyContent: 'center',
47
+ borderRadius: '50%',
48
+ flexDirection: 'column'
49
+ } },
50
+ _react2.default.createElement(
51
+ 'div',
52
+ {
53
+ style: {
54
+ display: 'flex',
55
+ alignItems: 'flex-start',
56
+ justifyContent: 'center',
57
+ gap: '8px',
58
+ flexDirection: 'column'
59
+ } },
60
+ _react2.default.createElement('div', { style: { height: '10px', width: '60px', background: '#182738', borderRadius: '10px' } }),
61
+ _react2.default.createElement('div', { style: { height: '10px', width: '40px', background: '#182738', borderRadius: '10px' } }),
62
+ _react2.default.createElement('div', { style: { height: '10px', width: '50px', background: '#182738', borderRadius: '10px' } }),
63
+ _react2.default.createElement('div', { style: { height: '10px', width: '30px', background: '#182738', borderRadius: '10px' } }),
64
+ _react2.default.createElement('div', { style: { height: '10px', width: '50px', background: '#182738', borderRadius: '10px' } })
65
+ )
66
+ ),
67
+ _react2.default.createElement(
68
+ 'div',
69
+ {
70
+ style: {
71
+ height: '120px',
72
+ width: '300px ',
73
+ display: 'flex',
74
+ alignItems: 'flex-start',
75
+ justifyContent: 'center',
76
+ flexDirection: 'column'
77
+ } },
78
+ _react2.default.createElement(
79
+ 'p',
80
+ {
81
+ style: {
82
+ color: 'var(--color-text-color-pure-white, #FFF)',
83
+ fontSize: '24px',
84
+ fontWeight: '500',
85
+ lineHeight: '36px',
86
+ fontStyle: 'normal'
87
+ } },
88
+ 'No Results Found'
89
+ ),
90
+ _react2.default.createElement(
91
+ 'p',
92
+ {
93
+ style: {
94
+ color: 'var(--color-text-color-pure-white, #FFF)',
95
+ fontSize: '14px',
96
+ fontStyle: 'normal',
97
+ fontWeight: '300',
98
+ lineHeight: '21px'
99
+ } },
100
+ 'Try a different filter set'
101
+ )
102
+ )
103
+ )
104
+ );
105
+ };
106
+
107
+ exports.default = TableErrorScreen;
@@ -0,0 +1,84 @@
1
+ import React from 'react';
2
+
3
+ const TableErrorScreen = () => {
4
+ return (
5
+ <div
6
+ style={{
7
+ height: '279px',
8
+ width: '100%',
9
+ display: 'flex',
10
+ alignItems: 'center',
11
+ justifyContent: 'center',
12
+ alignItems: 'center'
13
+ }}>
14
+ <div
15
+ style={{
16
+ width: '520px',
17
+ height: '130px',
18
+ display: 'flex',
19
+ alignItems: 'center',
20
+ justifyContent: 'center',
21
+ gap: '10px'
22
+ }}>
23
+ <div
24
+ style={{
25
+ height: '120px',
26
+ width: '120px',
27
+ background: '#303F51',
28
+ display: 'flex',
29
+ alignItems: 'center',
30
+ justifyContent: 'center',
31
+ borderRadius: '50%',
32
+ flexDirection: 'column'
33
+ }}>
34
+ <div
35
+ style={{
36
+ display: 'flex',
37
+ alignItems: 'flex-start',
38
+ justifyContent: 'center',
39
+ gap: '8px',
40
+ flexDirection: 'column'
41
+ }}>
42
+ <div style={{ height: '10px', width: '60px', background: '#182738', borderRadius: '10px' }}></div>
43
+ <div style={{ height: '10px', width: '40px', background: '#182738', borderRadius: '10px' }}></div>
44
+ <div style={{ height: '10px', width: '50px', background: '#182738', borderRadius: '10px' }}></div>
45
+ <div style={{ height: '10px', width: '30px', background: '#182738', borderRadius: '10px' }}></div>
46
+ <div style={{ height: '10px', width: '50px', background: '#182738', borderRadius: '10px' }}></div>
47
+ </div>
48
+ </div>
49
+ <div
50
+ style={{
51
+ height: '120px',
52
+ width: '300px ',
53
+ display: 'flex',
54
+ alignItems: 'flex-start',
55
+ justifyContent: 'center',
56
+ flexDirection: 'column'
57
+ }}>
58
+ <p
59
+ style={{
60
+ color: 'var(--color-text-color-pure-white, #FFF)',
61
+ fontSize: '24px',
62
+ fontWeight: '500',
63
+ lineHeight: '36px',
64
+ fontStyle: 'normal'
65
+ }}>
66
+ No Results Found
67
+ </p>
68
+ <p
69
+ style={{
70
+ color: 'var(--color-text-color-pure-white, #FFF)',
71
+ fontSize: '14px',
72
+ fontStyle: 'normal',
73
+ fontWeight: '300',
74
+ lineHeight: '21px'
75
+ }}>
76
+ Try a different filter set
77
+ </p>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ );
82
+ };
83
+
84
+ export default TableErrorScreen;