cortex-react-ui 0.2.3 → 0.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.
@@ -109,7 +109,11 @@
109
109
  position: relative;
110
110
  width: 100%;
111
111
  height: 90%;
112
- overflow: hidden;
112
+ overflow: hidden;
113
+ display: flex;
114
+ > video {
115
+ margin: 0 auto;
116
+ }
113
117
  }
114
118
 
115
119
  .camera-controls {
@@ -0,0 +1,110 @@
1
+ @use "../global.scss";
2
+
3
+ @mixin scanner($props: null, $options: null) {
4
+ $internal-options: global.$default-options;
5
+
6
+ $internal-props: (
7
+ bgColor: #ffffff,
8
+ fgColor: global.$color-grey-darker,
9
+ closeBtnColor: global.$color-grey,
10
+ closeBtnHoverColor: global.$color-blue,
11
+ closeBtnDisableColor: global.$color-blue-grey-lighter,
12
+ confirm: (
13
+ headerBgColor: global.$color-orange-dark,
14
+ headerFgColor: #ffffff,
15
+ bgColor: #ffffff,
16
+ fgColor: global.$color-grey-darker,
17
+ ),
18
+ error: (
19
+ headerBgColor: global.$color-red,
20
+ headerFgColor: #ffffff,
21
+ bgColor: #ffffff,
22
+ fgColor: global.$color-grey-darker,
23
+ ),
24
+ warning: (
25
+ headerBgColor: global.$color-grey,
26
+ headerFgColor: #ffffff,
27
+ bgColor: #ffffff,
28
+ fgColor: global.$color-grey-darker,
29
+ ),
30
+ );
31
+
32
+ $internal-props: global.safe-map-merge($internal-props, $props);
33
+ $internal-options: global.safe-map-merge($internal-options, $options);
34
+
35
+ .btn {
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: center;
39
+ padding: 0.5rem 1rem;
40
+ border: 1px solid transparent;
41
+ border-radius: 0.375rem;
42
+ box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
43
+ font-size: 0.875rem;
44
+ font-weight: 500;
45
+ line-height: 1.25rem;
46
+ text-align: center;
47
+ text-transform: none;
48
+ white-space: nowrap;
49
+ vertical-align: middle;
50
+ user-select: none;
51
+ background-color: #4F46E5;
52
+ color: #fff;
53
+ cursor: pointer;
54
+ outline: none;
55
+ transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
56
+ }
57
+
58
+ .btn-default {
59
+ background-color: #4F46E5;
60
+ }
61
+
62
+ .btn-default:hover {
63
+ opacity: 0.8;
64
+ }
65
+
66
+ .select {
67
+ display: block;
68
+ width: 100%;
69
+ padding-left: 0.75rem;
70
+ color: #000;
71
+ padding-right: 2.5rem;
72
+ padding-top: 0.5rem;
73
+ padding-bottom: 0.5rem;
74
+ font-size: 1rem;
75
+ border-radius: 0.375rem;
76
+ }
77
+
78
+ /* DIALOG */
79
+ .dialog-header {
80
+ display: flex;
81
+ justify-content: space-between;
82
+ }
83
+
84
+ .dialog-header h4 {
85
+ margin: 0;
86
+ }
87
+
88
+ .dialog-mask {
89
+ overflow-x: hidden;
90
+ overflow-y: auto;
91
+ display: flex;
92
+ justify-content: center;
93
+ padding-top: 2.5rem;
94
+ padding-bottom: 5rem;
95
+ background-color: #0005;
96
+ position: fixed;
97
+ inset: 0;
98
+ }
99
+
100
+ .dialog-body {
101
+ display: flex;
102
+ flex-direction: column;
103
+ gap: 1.25rem;
104
+ padding: 1.25rem;
105
+ height: max-content;
106
+ background-color: white;
107
+ }
108
+
109
+ /* DIALOG */
110
+ }
@@ -29,20 +29,3 @@
29
29
  @include Selected.selected();
30
30
  @include BarLoader.barLoader();
31
31
  @include Camera.camera();
32
-
33
- // @include popper();
34
- // @include popper(
35
- // (
36
- // bgColor: red,
37
- // fgColor: blue,
38
- // )
39
- // );
40
- // @include popper(
41
- // (
42
- // bgColor: red,
43
- // fgColor: blue,
44
- // ),
45
- // (
46
- // properties: false
47
- // )
48
- // );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cortex-react-ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "React UI",
5
5
  "author": "Anthony",
6
6
  "license": "MIT",
@@ -1,196 +0,0 @@
1
- .camera-container {
2
- width: 100%;
3
- height: 100%;
4
- background-color: #000;
5
- }
6
-
7
- .camera-switch-btn {
8
- all: initial;
9
- display: flex;
10
- cursor: pointer;
11
- }
12
-
13
- .camera-recording-dot {
14
- width: 8px;
15
- height: 8px;
16
- border-radius: 50%;
17
- background-color: #f44336;
18
- animation: clignote 1s infinite;
19
- }
20
-
21
- .camera-recording-timer {
22
- z-index: 99;
23
- position: absolute;
24
- top: 1rem;
25
- left: 20px;
26
- display: flex;
27
- align-items: center;
28
- justify-content: center;
29
- background: rgba(0, 0, 0, 0.2);
30
- border-radius: 4px;
31
- padding: 3px 7px;
32
- font-size: 12px;
33
- color: #fff;
34
- font-family: sans-serif;
35
- gap: 6px;
36
- }
37
-
38
- .camera-offline-mode {
39
- position: absolute;
40
- top: 1rem;
41
- right: 20px;
42
- display: flex;
43
- align-items: center;
44
- justify-content: center;
45
- background: rgba(0, 0, 0, 0.2);
46
- border-radius: 4px;
47
- padding: 3px 7px;
48
- font-size: 12px;
49
- color: red;
50
- font-family: sans-serif;
51
- }
52
-
53
- .camera-mode {
54
- z-index: 9999;
55
- position: absolute;
56
- bottom: 2rem;
57
- right: 20px;
58
- padding: 0.5rem;
59
- border-radius: 6px;
60
- color: #ffffff;
61
- border: none;
62
- cursor: pointer;
63
- display: flex;
64
- justify-content: center;
65
- align-items: center;
66
- gap: 7px;
67
- background-color: #2196f3;
68
- transition: background-color 0.3s ease;
69
- }
70
-
71
- .camera-preview {
72
- position: relative;
73
- width: 100%;
74
- height: 100%;
75
- overflow: hidden;
76
- display: flex;
77
- > video {
78
- margin: 0 auto;
79
- }
80
- }
81
-
82
- .camera-controls {
83
- z-index: 999;
84
- position: absolute;
85
- bottom: 2rem;
86
- left: 0;
87
- right: 0;
88
- display: flex;
89
- justify-content: center;
90
- gap: 1rem;
91
- }
92
-
93
- .video-play-btn {
94
- all: initial;
95
- position: absolute;
96
- bottom: 10%;
97
- left: 50%;
98
- z-index: 9;
99
- width: 1em;
100
- height: 1em;
101
- min-width: 15px;
102
- min-height: 15px;
103
- transform: translate(-50%, -50%);
104
- display: flex;
105
- justify-content: center;
106
- align-items: center;
107
- border-radius: 50%;
108
- border: 1px solid;
109
- padding: 20px 20px;
110
- background-color: #ffffff;
111
- cursor: pointer;
112
- }
113
-
114
- .camera-button {
115
- padding: 0.5rem;
116
- border-radius: 6px;
117
- color: #ffffff;
118
- border: none;
119
- cursor: pointer;
120
- display: flex;
121
- justify-content: center;
122
- align-items: center;
123
- gap: 7px;
124
- transition: background-color 0.3s ease;
125
- }
126
- .camera-button--capture {
127
- border-radius: 50%;
128
- color: initial;
129
- width: 50px;
130
- height: 50px;
131
- border: 1px solid black;
132
- background-color: #ffffff;
133
- }
134
- .camera-button--record {
135
- border-radius: 50%;
136
- color: red;
137
- width: 50px;
138
- height: 50px;
139
- border: 1px solid black;
140
- background-color: #ffffff;
141
- }
142
- .camera-button--download {
143
- background-color: #4caf50;
144
- }
145
- .camera-button--download:hover {
146
- background-color: #388e3c;
147
- }
148
- .camera-button--reset {
149
- background-color: #9e9e9e;
150
- }
151
- .camera-button--reset:hover {
152
- background-color: #757575;
153
- }
154
-
155
- .camera-offline-mode {
156
- font-size: 0.875rem;
157
- font-family: sans-serif;
158
- color: #d32f2f;
159
- }
160
-
161
- .camera-screen-animation {
162
- animation: fadeIn 0.3s;
163
- }
164
-
165
- @keyframes fadeIn {
166
- 0% {
167
- opacity: 0;
168
- }
169
- 100% {
170
- opacity: 1;
171
- }
172
- }
173
- @keyframes pulse {
174
- 0% {
175
- transform: scale(1);
176
- }
177
- 50% {
178
- transform: scale(1.05);
179
- }
180
- 100% {
181
- transform: scale(1);
182
- }
183
- }
184
- @keyframes clignote {
185
- 0% {
186
- opacity: 1;
187
- }
188
- 50% {
189
- opacity: 0;
190
- }
191
- 100% {
192
- opacity: 1;
193
- }
194
- }
195
-
196
- /*# sourceMappingURL=index.css.map */
@@ -1,75 +0,0 @@
1
- .btn {
2
- display: flex;
3
- align-items: center;
4
- justify-content: center;
5
- padding: 0.5rem 1rem;
6
- border: 1px solid transparent;
7
- border-radius: 0.375rem;
8
- box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
9
- font-size: 0.875rem;
10
- font-weight: 500;
11
- line-height: 1.25rem;
12
- text-align: center;
13
- text-transform: none;
14
- white-space: nowrap;
15
- vertical-align: middle;
16
- user-select: none;
17
- background-color: #4F46E5;
18
- color: #fff;
19
- cursor: pointer;
20
- outline: none;
21
- transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
22
- }
23
-
24
- .btn-default {
25
- background-color: #4F46E5;
26
- }
27
-
28
- .btn-default:hover {
29
- opacity: 0.8;
30
- }
31
-
32
- .select {
33
- display: block;
34
- width: 100%;
35
- padding-left: 0.75rem;
36
- color: #000;
37
- padding-right: 2.5rem;
38
- padding-top: 0.5rem;
39
- padding-bottom: 0.5rem;
40
- font-size: 1rem;
41
- border-radius: 0.375rem;
42
- }
43
-
44
- /* DIALOG */
45
- .dialog-header {
46
- display: flex;
47
- justify-content: space-between;
48
- }
49
-
50
- .dialog-header h4 {
51
- margin: 0;
52
- }
53
-
54
- .dialog-mask {
55
- overflow-x: hidden;
56
- overflow-y: auto;
57
- display: flex;
58
- justify-content: center;
59
- padding-top: 2.5rem;
60
- padding-bottom: 5rem;
61
- background-color: #0005;
62
- position: fixed;
63
- inset: 0;
64
- }
65
-
66
- .dialog-body {
67
- display: flex;
68
- flex-direction: column;
69
- gap: 1.25rem;
70
- padding: 1.25rem;
71
- height: max-content;
72
- background-color: white;
73
- }
74
-
75
- /* DIALOG */