cortex-react-ui 0.1.108 → 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.
@@ -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,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
+ }
@@ -11,6 +11,7 @@
11
11
  @import "Button";
12
12
  @import "ToggleButton";
13
13
  @import "Selected";
14
+ @import "BarLoader";
14
15
 
15
16
 
16
17
  @include icons();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortex-react-ui",
3
- "version": "0.1.108",
3
+ "version": "0.1.109",
4
4
  "description": "React UI",
5
5
  "author": "Anthony",
6
6
  "license": "MIT",