cortex-react-ui 0.1.107 → 0.1.109
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/lib/cjs/types/BarLoader/BarLoader.d.ts +10 -0
- package/lib/cjs/types/BarLoader/index.d.ts +1 -0
- package/lib/cjs/types/Selected/Selected.d.ts +8 -0
- package/lib/cjs/types/Selected/index.d.ts +1 -0
- package/lib/styles/BarLoader/index.scss +108 -0
- package/lib/styles/Selected/index.scss +69 -0
- package/lib/styles/index.scss +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BarLoaderProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
color?: 'red' | 'blue' | 'yellow' | 'orange';
|
|
5
|
+
className?: string;
|
|
6
|
+
mode: 'determinate' | 'indeterminate';
|
|
7
|
+
isComplete: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const BarLoader: React.FC<BarLoaderProps>;
|
|
10
|
+
export default BarLoader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BarLoader';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Selected';
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
.loader {
|
|
2
|
+
position:relative;
|
|
3
|
+
padding:2px;
|
|
4
|
+
text-align: center;
|
|
5
|
+
font-size: 15px;
|
|
6
|
+
font-weight: bold;
|
|
7
|
+
|
|
8
|
+
:before {
|
|
9
|
+
content:'';
|
|
10
|
+
position:absolute;
|
|
11
|
+
top:-1px;
|
|
12
|
+
right:-4px;
|
|
13
|
+
bottom:-1px;
|
|
14
|
+
left:-4px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.loader-color-red{
|
|
18
|
+
background-color:rgba(255, 0, 0, 0.2);
|
|
19
|
+
|
|
20
|
+
&.completed{
|
|
21
|
+
z-index: 3;
|
|
22
|
+
background: red !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.loader-color-yellow{
|
|
27
|
+
background-color:rgba(0, 255, 0, 0.2);
|
|
28
|
+
|
|
29
|
+
&.completed{
|
|
30
|
+
z-index: 3;
|
|
31
|
+
background: yellow !important;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.loader-color-blue{
|
|
36
|
+
background-color:rgba(14, 190, 255, 0.2);
|
|
37
|
+
|
|
38
|
+
&.completed{
|
|
39
|
+
z-index: 3;
|
|
40
|
+
background: #0ebeff !important;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&.loader-color-orange{
|
|
45
|
+
background-color:rgba(255, 165, 0, 0.2);
|
|
46
|
+
|
|
47
|
+
&.completed{
|
|
48
|
+
z-index: 3;
|
|
49
|
+
background: orange !important;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.loaderBar {
|
|
55
|
+
position:absolute;
|
|
56
|
+
top:0;
|
|
57
|
+
right:100%;
|
|
58
|
+
bottom:0;
|
|
59
|
+
left:0;
|
|
60
|
+
background:#0ebeff;
|
|
61
|
+
width:0;
|
|
62
|
+
animation:borealisBar 1s linear infinite;
|
|
63
|
+
z-index: 2;
|
|
64
|
+
|
|
65
|
+
&.loaderBar-color-red{
|
|
66
|
+
background:red !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&.loaderBar-color-blue{
|
|
70
|
+
background:#0ebeff !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.loaderBar-color-yellow{
|
|
74
|
+
background:yellow !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.loaderBar-color-orange{
|
|
78
|
+
background:orange !important;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.loaderBar-title{
|
|
83
|
+
text-align: center;
|
|
84
|
+
padding-top: 2px
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@keyframes borealisBar {
|
|
88
|
+
0% {
|
|
89
|
+
left:0%;
|
|
90
|
+
right:100%;
|
|
91
|
+
width:0%;
|
|
92
|
+
}
|
|
93
|
+
10% {
|
|
94
|
+
left:0%;
|
|
95
|
+
right:75%;
|
|
96
|
+
width:25%;
|
|
97
|
+
}
|
|
98
|
+
90% {
|
|
99
|
+
right:0%;
|
|
100
|
+
left:75%;
|
|
101
|
+
width:25%;
|
|
102
|
+
}
|
|
103
|
+
100% {
|
|
104
|
+
left:100%;
|
|
105
|
+
right:0%;
|
|
106
|
+
width:0%;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@import "../global.scss";
|
|
2
|
+
|
|
3
|
+
.ui-selected-params {
|
|
4
|
+
float: left;
|
|
5
|
+
color: black;
|
|
6
|
+
margin: 15px;
|
|
7
|
+
border: 1px solid black;
|
|
8
|
+
width: 250px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ui-selected-title {
|
|
12
|
+
color: black;
|
|
13
|
+
font-weight: bold;
|
|
14
|
+
font-size: 15px;
|
|
15
|
+
margin-left: 5px;
|
|
16
|
+
display: table;
|
|
17
|
+
margin-top: -10px;
|
|
18
|
+
background-color: white;
|
|
19
|
+
padding-right: 5px;
|
|
20
|
+
padding-left: 5px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ui-selected-content {
|
|
24
|
+
color: black;
|
|
25
|
+
margin: 10px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ui-selected-button {
|
|
29
|
+
display: inline;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ui-selected-btn {
|
|
33
|
+
width: 28%;
|
|
34
|
+
border-radius: 5px;
|
|
35
|
+
height: 30px;
|
|
36
|
+
margin: 5px;
|
|
37
|
+
margin-left: 7px;
|
|
38
|
+
font-weight: bold;
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
background-color: #75c475;
|
|
41
|
+
color: white;
|
|
42
|
+
border: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ui-not-selected {
|
|
46
|
+
width: 28%;
|
|
47
|
+
border-radius: 5px;
|
|
48
|
+
height: 30px;
|
|
49
|
+
margin: 5px;
|
|
50
|
+
margin-left: 7px;
|
|
51
|
+
font-weight: bold;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
background-color: black;
|
|
54
|
+
color: white;
|
|
55
|
+
border: none;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ui-new-selected {
|
|
59
|
+
width: 28%;
|
|
60
|
+
border-radius: 5px;
|
|
61
|
+
height: 30px;
|
|
62
|
+
margin: 5px;
|
|
63
|
+
margin-left: 7px;
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
background-color: red;
|
|
67
|
+
color: white;
|
|
68
|
+
border: none;
|
|
69
|
+
}
|
package/lib/styles/index.scss
CHANGED