@visns-studio/visns-components 4.4.0 → 4.4.2

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,215 @@
1
+ .btn {
2
+ width: max-content;
3
+ display: inline-block;
4
+ position: relative;
5
+ padding: 0.65rem 1rem;
6
+ cursor: pointer;
7
+ font-size: 1rem;
8
+ color: var(--tertiary-color);
9
+ text-decoration: none;
10
+ overflow: hidden;
11
+ background: var(--primary-color);
12
+ border: 1px solid rgba(var(--primary-color--rgb), 1.1);
13
+ border-radius: var(--br);
14
+ outline: none;
15
+ transition: all 0.2s cubic-bezier(0.85, 0, 0.15, 1) 0s;
16
+ font-size: 1.25em;
17
+
18
+ &:hover {
19
+ color: var(--primary-color);
20
+ background: var(--highlight-color);
21
+ border: 1px solid rgba(var(--highlight-color-rgb), 1.05);
22
+ }
23
+ }
24
+ .vs-datagrid--row {
25
+ &:hover {
26
+ .InovuaReactDataGrid__row-cell-wrap {
27
+ background: rgb(240, 240, 240) !important;
28
+ cursor: pointer;
29
+ }
30
+ }
31
+ }
32
+
33
+ .InovuaReactDataGrid {
34
+ letter-spacing: 0.015rem !important;
35
+ color: black !important;
36
+ }
37
+
38
+ .InovuaReactDataGrid__header {
39
+ color: var(--primary-color) !important;
40
+ }
41
+
42
+ .InovuaReactDataGrid__row-hover-target {
43
+ &:hover {
44
+ color: black !important;
45
+ background: rgb(240, 240, 240) !important;
46
+ }
47
+ }
48
+
49
+ .InovuaReactDataGrid__row {
50
+ &:hover {
51
+ cursor: pointer;
52
+ }
53
+ }
54
+
55
+ #smartTableSearchInput {
56
+ background: #eeeeee;
57
+ border: 1px solid rgba(var(--table-color-rgb), 1.1);
58
+ border-radius: var(--br);
59
+ color: var(--paragraph-color);
60
+ padding: 10px 10px 10px 35px;
61
+
62
+ &:focus {
63
+ border: 1px solid lighten(#474747, 10%);
64
+ box-shadow: none;
65
+ transform: translateY(0);
66
+ }
67
+
68
+ &:hover {
69
+ box-shadow: none;
70
+ transform: translateY(0);
71
+ }
72
+ }
73
+
74
+ .filterInput--alt {
75
+ position: relative;
76
+ display: flex;
77
+ align-items: center;
78
+
79
+ input {
80
+ padding-left: 3rem !important;
81
+ }
82
+ }
83
+
84
+ .icon-search {
85
+ width: max-content;
86
+ height: auto;
87
+ position: absolute;
88
+ z-index: 500;
89
+ padding-top: 4px;
90
+ padding-left: 20px;
91
+ }
92
+
93
+ .filterAction--alt {
94
+ position: absolute;
95
+ right: 8px;
96
+ top: 8px;
97
+ gap: 5px;
98
+ display: flex;
99
+
100
+ > .btn {
101
+ padding: 10px 70px;
102
+ }
103
+ }
104
+
105
+ .icon-search {
106
+ width: max-content;
107
+ height: auto;
108
+ position: absolute;
109
+ z-index: 500;
110
+ padding-top: 4px;
111
+ padding-left: 20px;
112
+ }
113
+
114
+ .tdactions {
115
+ width: 100%;
116
+ display: flex;
117
+ flex-wrap: nowrap;
118
+ justify-content: flex-start;
119
+ align-items: center;
120
+ gap: 0.1rem;
121
+
122
+ span {
123
+ display: flex;
124
+ align-items: center;
125
+ position: relative;
126
+ width: 18px;
127
+ height: 18px;
128
+
129
+ svg {
130
+ width: 18px;
131
+ height: 18px;
132
+ }
133
+ }
134
+ }
135
+
136
+ .formcontainer {
137
+ width: 100%;
138
+ }
139
+
140
+ .modalwrap {
141
+ background: var(--tertiary-color);
142
+ border-radius: 3px;
143
+ overflow: visible;
144
+ border-top-left-radius: var(--br);
145
+ border-top-right-radius: var(--br);
146
+
147
+ .modal {
148
+ width: 100%;
149
+ position: relative;
150
+
151
+ &__header {
152
+ width: 100%;
153
+ background: var(--primary-color);
154
+ border: 2px solid rgba(var(--primary-color-rgb), 1.05);
155
+ border-top-left-radius: var(--br);
156
+ border-top-right-radius: var(--br);
157
+ box-sizing: border-box;
158
+
159
+ h1 {
160
+ color: var(--tertiary-color);
161
+ margin: 0;
162
+ padding: 0.75em 0.75em;
163
+ font-size: 1.15em;
164
+ }
165
+
166
+ .modal__close {
167
+ width: max-content;
168
+ position: absolute;
169
+ right: 5px;
170
+ top: 5px;
171
+ box-sizing: border-box;
172
+ background: rgba(var(--primary-color-rgb), 1.08);
173
+ cursor: pointer;
174
+ padding: 8px 8px;
175
+ margin: 0;
176
+ outline: none;
177
+ border: none;
178
+ border-radius: var(--br);
179
+ display: block;
180
+ line-height: 1;
181
+
182
+ svg {
183
+ color: white;
184
+ display: block;
185
+ }
186
+ }
187
+ }
188
+
189
+ &__content {
190
+ width: 100%;
191
+ position: relative;
192
+ padding: 0.25rem;
193
+ box-sizing: border-box;
194
+ border-top-left-radius: var(--br);
195
+ border-top-right-radius: var(--br);
196
+
197
+ .btn {
198
+ background: var(--primary-color);
199
+ border: 1px solid rgba(var(--primary-color-rgb), 1.05);
200
+
201
+ &:hover {
202
+ background: var(--highlight-color);
203
+ color: var(--primary-color);
204
+ }
205
+ }
206
+ }
207
+ }
208
+ }
209
+
210
+ .top--modal {
211
+ width: 100%;
212
+ max-width: 1000px !important;
213
+ height: auto;
214
+ padding: 0 !important;
215
+ }
@@ -0,0 +1,476 @@
1
+ /* General styles */
2
+ .label {
3
+ display: block;
4
+ }
5
+
6
+ input[type='file'] {
7
+ background: var(--item-color);
8
+ border-radius: var(--br);
9
+ border: 1px solid transparent;
10
+ box-shadow: var(--box-shadow-small);
11
+ padding: 1rem;
12
+ outline: none;
13
+ width: 100%;
14
+ box-sizing: border-box;
15
+ background: rgba(white, 0.5);
16
+ color: var(--paragraph-color);
17
+ transition: box-shadow 0.15s linear;
18
+ font-size: 1.25em;
19
+
20
+ &:focus {
21
+ border: 1px solid var(--primary-color);
22
+ }
23
+
24
+ &:hover {
25
+ border: 1px solid var(--primary-color);
26
+ }
27
+ }
28
+
29
+ /* Form styles */
30
+ .formcontainer {
31
+ width: 100%;
32
+ }
33
+
34
+ .modalForm {
35
+ width: 100%;
36
+ display: flex;
37
+ align-items: flex-start;
38
+ flex-wrap: wrap;
39
+ }
40
+
41
+ .formItem {
42
+ width: 50%;
43
+ padding: 0.5em;
44
+ position: relative;
45
+ box-sizing: border-box;
46
+ }
47
+
48
+ .fi__label {
49
+ position: relative;
50
+ }
51
+
52
+ .fi__span {
53
+ position: absolute;
54
+ transition: all 200ms;
55
+ opacity: 0.8;
56
+ left: 0;
57
+ padding: 19px 20px;
58
+ transform-origin: top left;
59
+ cursor: text;
60
+ font-size: 1.25em;
61
+ }
62
+
63
+ .fi__div {
64
+ transition: all 200ms;
65
+ opacity: 0.8;
66
+ left: 0;
67
+ padding: 19px 13px;
68
+ border-radius: var(--br);
69
+ border: 1px solid rgba(var(--paragraph-color-rgb), 0.15);
70
+ box-shadow: none;
71
+ }
72
+
73
+ .fi__toggle {
74
+ width: max-content;
75
+ padding: 0px 10px 0px 0;
76
+ box-sizing: border-box;
77
+ display: inline;
78
+ }
79
+
80
+ .fi__toggletxt {
81
+ position: relative;
82
+ left: 5px;
83
+ font-size: 0.95em;
84
+ top: -5px;
85
+ }
86
+
87
+ .formBuilderItem {
88
+ width: 25%;
89
+ padding: 0.35em;
90
+ position: relative;
91
+ box-sizing: border-box;
92
+ }
93
+
94
+ .fi__spancheckbox {
95
+ display: inline-block;
96
+ margin-bottom: 8px;
97
+ }
98
+
99
+ .fi__optionscontainer {
100
+ display: flex;
101
+ flex-wrap: wrap;
102
+ gap: 10px;
103
+ margin-top: 8px;
104
+ }
105
+
106
+ .fi__checkboxcontainer {
107
+ display: flex;
108
+ align-items: center;
109
+ }
110
+
111
+ .fi__customcheckbox {
112
+ margin-right: 5px;
113
+ }
114
+
115
+ .fi__checkboxlabel {
116
+ user-select: none;
117
+ }
118
+
119
+ .qtrBuilderItem {
120
+ flex-basis: 25%;
121
+ }
122
+
123
+ .halfBuilderItem {
124
+ flex-basis: 50%;
125
+ }
126
+
127
+ .fwBuilderItem {
128
+ flex-basis: 100%;
129
+ }
130
+
131
+ input:not(:placeholder-shown) + .fi__span,
132
+ textarea:not(:placeholder-shown) + .fi__span,
133
+ select:not(:placeholder-shown) + .fi__span {
134
+ transform: translateY(-40%) translateX(10px) scale(0.75);
135
+ opacity: 1;
136
+ padding: 0 4px;
137
+ background: var(--tertiary-color);
138
+ font-weight: 300;
139
+ }
140
+
141
+ .prefocus {
142
+ transform: translateY(-40%) translateX(10px) scale(0.75) !important;
143
+ opacity: 1 !important;
144
+ padding: 0 4px !important;
145
+ background: var(--tertiary-color) !important;
146
+ z-index: 500;
147
+ font-weight: 300;
148
+ }
149
+
150
+ .fwItem {
151
+ flex-basis: 100%;
152
+ }
153
+
154
+ .lastItem .btn {
155
+ width: 100%;
156
+ }
157
+
158
+ .inputError {
159
+ border-color: red !important;
160
+ }
161
+
162
+ select::-ms-expand {
163
+ display: none;
164
+ }
165
+
166
+ @media screen and (min-width: 0\0) {
167
+ select {
168
+ background: none\9;
169
+ padding: 5px\9;
170
+ }
171
+ }
172
+
173
+ /* Login Form */
174
+ .lcontainer {
175
+ --sidebar-width: 35%;
176
+ min-height: 100vh;
177
+ }
178
+
179
+ .lwrap {
180
+ display: flex;
181
+ }
182
+
183
+ .aside {
184
+ background: url(../images/loginbg.jpg) no-repeat var(--background-color);
185
+ background-size: cover;
186
+ opacity: 1;
187
+ position: fixed;
188
+ overflow: hidden;
189
+ height: 100%;
190
+ width: var(--sidebar-width);
191
+ }
192
+
193
+ .loginlogo {
194
+ display: block;
195
+ width: 100%;
196
+ max-width: 240px;
197
+ height: auto;
198
+ margin: 0 auto;
199
+ padding-bottom: 1rem;
200
+ }
201
+
202
+ .logincontainer {
203
+ margin-left: var(--sidebar-width);
204
+ min-height: 100vh;
205
+ flex-grow: 1;
206
+ display: flex;
207
+ align-items: center;
208
+ justify-content: center;
209
+ align-content: center;
210
+ flex-wrap: wrap;
211
+ }
212
+
213
+ .login {
214
+ width: 35rem;
215
+ height: auto;
216
+ padding: 1rem;
217
+ margin: 0;
218
+ display: flex;
219
+ flex-wrap: wrap;
220
+ }
221
+
222
+ .login .formItem {
223
+ padding: 0.25em 0;
224
+ }
225
+
226
+ .login .formItem small {
227
+ position: absolute;
228
+ width: 18px;
229
+ height: 18px;
230
+ right: 18px;
231
+ top: 18px;
232
+ opacity: 0.15;
233
+ }
234
+
235
+ .login .loginitem {
236
+ width: 100%;
237
+ padding: 0.25em 0;
238
+ }
239
+
240
+ .login .loginitem label {
241
+ width: 100%;
242
+ padding-bottom: 0.25rem;
243
+ }
244
+
245
+ .login .loginitem button {
246
+ width: 100%;
247
+ }
248
+
249
+ .forgotten span {
250
+ display: block;
251
+ text-align: center;
252
+ color: var(--paragraph-color);
253
+ padding: 1rem 0;
254
+ }
255
+
256
+ .forgotten span a {
257
+ color: var(--highlight-color);
258
+ text-decoration: none;
259
+ }
260
+
261
+ .alert-danger {
262
+ width: 100%;
263
+ display: flex;
264
+ padding: 20px;
265
+ border-radius: 3px;
266
+ background: #ff4d4d;
267
+ margin-bottom: 0.5rem;
268
+ box-sizing: border-box;
269
+ }
270
+
271
+ .alert-danger > span {
272
+ color: darken(#ff4d4d, 40%);
273
+ }
274
+
275
+ /* Autocomplete */
276
+ .AutocompletePlace-results {
277
+ z-index: 999;
278
+ }
279
+
280
+ .AutocompletePlace {
281
+ position: relative;
282
+ }
283
+
284
+ .AutocompletePlace > svg {
285
+ position: absolute;
286
+ right: 0.5em;
287
+ top: 0.5em;
288
+ color: var(--paragraph-color);
289
+ cursor: pointer;
290
+ }
291
+
292
+ .AutocompletePlace .toggleActive {
293
+ color: var(--highlight-color);
294
+ }
295
+
296
+ .AutocompletePlace-input {
297
+ padding: 0.65rem 3rem 0.65rem 0.95rem !important;
298
+ }
299
+
300
+ .AutocompletePlace-results {
301
+ position: absolute;
302
+ background-color: white;
303
+ padding: 0;
304
+ margin: 0;
305
+ border: 1px solid rgba(var(--primary-color-rgb), 0.25);
306
+ border-radius: var(--br);
307
+ overflow: hidden;
308
+ }
309
+
310
+ .AutocompletePlace-items {
311
+ list-style: none;
312
+ border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.1);
313
+ cursor: pointer;
314
+ padding: 10px 10px;
315
+ }
316
+
317
+ .AutocompletePlace-items:hover {
318
+ background-color: rgba(var(--paragraph-color-rgb), 0.065);
319
+ }
320
+
321
+ /* Date picker */
322
+ .react-datepicker-wrapper {
323
+ width: 100% !important;
324
+ }
325
+
326
+ .react-datepicker-popper {
327
+ z-index: 999 !important;
328
+ }
329
+
330
+ .react-datepicker__close-icon:after {
331
+ background-color: rgba(var(--primary-color-rgb), 0.45) !important;
332
+ font-size: 13px !important;
333
+ }
334
+
335
+ .react-datepicker__close-icon:hover:after {
336
+ background-color: rgba(var(--primary-color-rgb), 1) !important;
337
+ }
338
+
339
+ /* Custom Select */
340
+ select {
341
+ background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+)
342
+ no-repeat 100% 50% #fff;
343
+ -moz-appearance: none;
344
+ -webkit-appearance: none;
345
+ appearance: none;
346
+ }
347
+
348
+ /* Breaker */
349
+ .formbreak {
350
+ display: block;
351
+ width: 100%;
352
+ padding: 0.5em 1em;
353
+ background: rgba(var(--primary-color-rgb), 0.95);
354
+ border-radius: 3px;
355
+ box-sizing: border-box;
356
+ border: 1px solid darken(var(--primary-color), 10%);
357
+ }
358
+
359
+ .formbreak span {
360
+ font-size: 0.95em;
361
+ color: var(--highlight-color);
362
+ }
363
+
364
+ /* File Drag/Drop Upload */
365
+ .dropzone__container > div {
366
+ flex: 1 1 0%;
367
+ display: flex;
368
+ flex-direction: column;
369
+ align-items: center;
370
+ padding: 30px;
371
+ border-width: 2px;
372
+ border-radius: 2px;
373
+ border-color: rgb(238, 238, 238);
374
+ border-style: dashed;
375
+ background-color: rgb(250, 250, 250);
376
+ color: rgb(189, 189, 189);
377
+ outline: currentcolor none medium;
378
+ transition: border 0.24s ease-in-out 0s;
379
+ margin: 1em;
380
+ }
381
+
382
+ .dropzone__container p {
383
+ padding: 0;
384
+ margin: 0;
385
+ }
386
+
387
+ .dropzone__files {
388
+ list-style: none;
389
+ padding: 0;
390
+ margin: 1em;
391
+ box-sizing: border-box;
392
+ }
393
+
394
+ .dropzone__files li {
395
+ width: 100%;
396
+ display: block;
397
+ background: darken(var(--tertiary-color), 5%);
398
+ color: var(--primary-color);
399
+ border-radius: 3px;
400
+ transition: background 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
401
+ outline: none;
402
+ cursor: pointer;
403
+ border-radius: 3px;
404
+ padding: 1em 2em;
405
+ box-sizing: border-box;
406
+ position: relative;
407
+ margin-bottom: 5px;
408
+ }
409
+
410
+ .dropzone__files li:hover {
411
+ background: lighten(var(--secondary-color), 35%);
412
+ }
413
+
414
+ .dropzone__files li i {
415
+ position: relative;
416
+ top: 0;
417
+ right: 5px;
418
+ color: darken(var(--secondary-color), 15%);
419
+ }
420
+
421
+ .dropzone__files li button {
422
+ position: relative;
423
+ float: right;
424
+ background: none;
425
+ outline: none;
426
+ border: none;
427
+ z-index: 200;
428
+ cursor: pointer;
429
+ }
430
+
431
+ .dropzone__files li button i {
432
+ font-size: 1.15em;
433
+ color: var(--primary-color);
434
+ line-height: 1;
435
+ }
436
+
437
+ /* Rich Text Editor */
438
+ .ql-container {
439
+ height: 300px !important;
440
+ }
441
+
442
+ /* Multiselect */
443
+ .visns__ms input {
444
+ &:hover {
445
+ box-shadow: none !important;
446
+ transition: box-shadow 0.15s linear !important;
447
+ }
448
+
449
+ &:focus {
450
+ box-shadow: none !important;
451
+ }
452
+ }
453
+
454
+ .btn {
455
+ width: max-content;
456
+ display: inline-block;
457
+ position: relative;
458
+ padding: 0.65rem 1rem;
459
+ cursor: pointer;
460
+ font-size: 1rem;
461
+ color: var(--tertiary-color);
462
+ text-decoration: none;
463
+ overflow: hidden;
464
+ background: var(--primary-color);
465
+ border: 1px solid rgba(var(--primary-color--rgb), 1.1);
466
+ border-radius: var(--br);
467
+ outline: none;
468
+ transition: all 0.2s cubic-bezier(0.85, 0, 0.15, 1) 0s;
469
+ font-size: 1.25em;
470
+
471
+ &:hover {
472
+ color: var(--primary-color);
473
+ background: var(--highlight-color);
474
+ border: 1px solid rgba(var(--highlight-color-rgb), 1.05);
475
+ }
476
+ }