@visns-studio/visns-components 5.4.18 → 5.4.19
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/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@nivo/core": "^0.88.0",
|
|
9
9
|
"@nivo/line": "^0.88.0",
|
|
10
10
|
"@nivo/pie": "^0.88.0",
|
|
11
|
-
"@tinymce/tinymce-react": "^
|
|
11
|
+
"@tinymce/tinymce-react": "^6.1.0",
|
|
12
12
|
"@vitejs/plugin-react": "^4.3.4",
|
|
13
13
|
"add": "^2.0.6",
|
|
14
14
|
"akar-icons": "^1.9.31",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react-datepicker": "^7.6.0",
|
|
37
37
|
"react-dropzone": "^14.3.8",
|
|
38
38
|
"react-grid-gallery": "^1.0.1",
|
|
39
|
-
"react-number-format": "^5.4.
|
|
39
|
+
"react-number-format": "^5.4.4",
|
|
40
40
|
"react-password-strength-bar": "^0.4.1",
|
|
41
41
|
"react-promise-tracker": "^2.1.1",
|
|
42
42
|
"react-quill": "^2.0.0",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"reactjs-popup": "^2.0.6",
|
|
55
55
|
"style-loader": "^4.0.0",
|
|
56
56
|
"swapy": "^1.0.5",
|
|
57
|
-
"sweetalert2": "^11.
|
|
57
|
+
"sweetalert2": "^11.18.0",
|
|
58
58
|
"truncate": "^3.0.0",
|
|
59
59
|
"uuid": "^10.0.0",
|
|
60
60
|
"validator": "^13.15.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
82
82
|
},
|
|
83
83
|
"name": "@visns-studio/visns-components",
|
|
84
|
-
"version": "5.4.
|
|
84
|
+
"version": "5.4.19",
|
|
85
85
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
86
86
|
"main": "src/index.js",
|
|
87
87
|
"files": [
|
|
@@ -1358,6 +1358,10 @@ function Field({
|
|
|
1358
1358
|
type={'checkbox'}
|
|
1359
1359
|
checked={cell[cellKey] || false}
|
|
1360
1360
|
data-id={settings.id}
|
|
1361
|
+
style={{
|
|
1362
|
+
transform: 'scale(1)', // Use normal scale
|
|
1363
|
+
margin: '3px', // Reduced margin
|
|
1364
|
+
}}
|
|
1361
1365
|
onChange={(e) => {
|
|
1362
1366
|
e.stopPropagation(); // Stop event bubbling
|
|
1363
1367
|
onChangeTableRadio(e, rowKey, cellKey);
|
|
@@ -1456,8 +1460,8 @@ function Field({
|
|
|
1456
1460
|
checked={cell[cellKey] || false}
|
|
1457
1461
|
data-id={settings.id}
|
|
1458
1462
|
style={{
|
|
1459
|
-
transform: 'scale(1
|
|
1460
|
-
margin: '
|
|
1463
|
+
transform: 'scale(1)', // Use normal scale
|
|
1464
|
+
margin: '3px', // Reduced margin
|
|
1461
1465
|
}}
|
|
1462
1466
|
onChange={(e) => {
|
|
1463
1467
|
e.stopPropagation(); // Stop event bubbling
|
|
@@ -635,8 +635,8 @@
|
|
|
635
635
|
}
|
|
636
636
|
|
|
637
637
|
.schedulingTable td input[type='checkbox'] {
|
|
638
|
-
width:
|
|
639
|
-
height:
|
|
638
|
+
width: 14px !important;
|
|
639
|
+
height: 14px !important;
|
|
640
640
|
border-radius: 4px;
|
|
641
641
|
background-color: var(--item-color);
|
|
642
642
|
border: 2px solid rgba(var(--primary-rgb), 0.15);
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
.fi__optionscontainer {
|
|
106
106
|
display: flex;
|
|
107
107
|
flex-wrap: wrap; // Allows options to wrap if they exceed the container's width
|
|
108
|
-
gap:
|
|
109
|
-
margin-top:
|
|
108
|
+
gap: 6px; // Further reduced gap for more compact layout
|
|
109
|
+
margin-top: 4px; // Further reduced margin for more compact layout
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
.fi__checkboxcontainer {
|
|
@@ -116,14 +116,13 @@
|
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.fi__customcheckbox {
|
|
119
|
-
margin-right:
|
|
119
|
+
margin-right: 4px; // Reduced space between checkbox and its label
|
|
120
120
|
-webkit-appearance: none; // Reset default appearance for Safari
|
|
121
121
|
-moz-appearance: none;
|
|
122
122
|
appearance: none;
|
|
123
|
-
width:
|
|
124
|
-
height:
|
|
123
|
+
width: 14px;
|
|
124
|
+
height: 14px;
|
|
125
125
|
border: 1px solid rgba(var(--paragraph-color-rgb), 0.5);
|
|
126
|
-
border-radius: 50% !important; // Make it round for radio buttons
|
|
127
126
|
outline: none;
|
|
128
127
|
position: relative;
|
|
129
128
|
cursor: pointer;
|
|
@@ -131,6 +130,16 @@
|
|
|
131
130
|
background-color: white;
|
|
132
131
|
display: inline-block;
|
|
133
132
|
transition: border-color 0.2s ease-in-out;
|
|
133
|
+
transform: scale(1) !important; /* Override any transform scale */
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Apply border-radius based on input type */
|
|
137
|
+
input[type='radio'].fi__customcheckbox {
|
|
138
|
+
border-radius: 50% !important; // Make it round for radio buttons
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
input[type='checkbox'].fi__customcheckbox {
|
|
142
|
+
border-radius: 3px !important; // Make it square for checkboxes
|
|
134
143
|
}
|
|
135
144
|
|
|
136
145
|
/* Hover state */
|
|
@@ -144,25 +153,43 @@
|
|
|
144
153
|
background-color: white;
|
|
145
154
|
}
|
|
146
155
|
|
|
147
|
-
/* Create the inner circle for checked state */
|
|
156
|
+
/* Create the inner circle/square for checked state */
|
|
148
157
|
.fi__customcheckbox:checked::after {
|
|
149
158
|
content: '';
|
|
150
159
|
position: absolute;
|
|
151
160
|
top: 50%;
|
|
152
161
|
left: 50%;
|
|
153
162
|
transform: translate(-50%, -50%);
|
|
154
|
-
width:
|
|
155
|
-
height:
|
|
156
|
-
border-radius: 50% !important;
|
|
163
|
+
width: 7px;
|
|
164
|
+
height: 7px;
|
|
157
165
|
background-color: var(--primary-color);
|
|
158
166
|
display: block;
|
|
159
167
|
box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
|
|
160
168
|
}
|
|
161
169
|
|
|
170
|
+
/* Apply border-radius to the checked state based on input type */
|
|
171
|
+
input[type='radio'].fi__customcheckbox:checked::after {
|
|
172
|
+
border-radius: 50% !important; // Make it round for radio buttons
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
input[type='checkbox'].fi__customcheckbox:checked::after {
|
|
176
|
+
content: '✓' !important;
|
|
177
|
+
border-radius: 0 !important;
|
|
178
|
+
width: auto !important;
|
|
179
|
+
height: auto !important;
|
|
180
|
+
background-color: transparent !important;
|
|
181
|
+
font-size: 10px !important;
|
|
182
|
+
line-height: 1 !important;
|
|
183
|
+
color: var(--primary-color) !important;
|
|
184
|
+
box-shadow: none !important;
|
|
185
|
+
font-weight: bold !important;
|
|
186
|
+
}
|
|
187
|
+
|
|
162
188
|
.fi__checkboxlabel {
|
|
163
189
|
user-select: none; // Improves UX by preventing text selection
|
|
164
|
-
margin-left:
|
|
190
|
+
margin-left: 4px;
|
|
165
191
|
vertical-align: middle;
|
|
192
|
+
font-size: 0.9em; // Slightly smaller font for more compact appearance
|
|
166
193
|
}
|
|
167
194
|
}
|
|
168
195
|
|
|
@@ -43,8 +43,8 @@ input[type='radio'],
|
|
|
43
43
|
-webkit-appearance: none !important;
|
|
44
44
|
-moz-appearance: none !important;
|
|
45
45
|
appearance: none !important;
|
|
46
|
-
width:
|
|
47
|
-
height:
|
|
46
|
+
width: 14px !important;
|
|
47
|
+
height: 14px !important;
|
|
48
48
|
border: 1px solid rgba(var(--paragraph-color-rgb, 0, 0, 0), 0.5) !important;
|
|
49
49
|
border-radius: 50% !important;
|
|
50
50
|
outline: none !important;
|
|
@@ -57,8 +57,29 @@ input[type='radio'],
|
|
|
57
57
|
transition: border-color 0.2s ease-in-out !important;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/* Global checkbox styling */
|
|
61
|
+
input[type='checkbox'] {
|
|
62
|
+
-webkit-appearance: none !important;
|
|
63
|
+
-moz-appearance: none !important;
|
|
64
|
+
appearance: none !important;
|
|
65
|
+
width: 14px !important;
|
|
66
|
+
height: 14px !important;
|
|
67
|
+
border: 1px solid rgba(var(--paragraph-color-rgb, 0, 0, 0), 0.5) !important;
|
|
68
|
+
border-radius: 3px !important;
|
|
69
|
+
outline: none !important;
|
|
70
|
+
position: relative !important;
|
|
71
|
+
cursor: pointer !important;
|
|
72
|
+
vertical-align: middle !important;
|
|
73
|
+
background-color: white !important;
|
|
74
|
+
display: inline-block !important;
|
|
75
|
+
box-sizing: border-box !important;
|
|
76
|
+
transition: border-color 0.2s ease-in-out !important;
|
|
77
|
+
transform: scale(1) !important; /* Override any transform scale */
|
|
78
|
+
}
|
|
79
|
+
|
|
60
80
|
input[type='radio']:hover,
|
|
61
|
-
.radio-input:hover
|
|
81
|
+
.radio-input:hover,
|
|
82
|
+
input[type='checkbox']:hover {
|
|
62
83
|
border-color: var(--primary-color, #0066cc) !important;
|
|
63
84
|
}
|
|
64
85
|
|
|
@@ -68,6 +89,11 @@ input[type='radio']:checked,
|
|
|
68
89
|
background-color: white !important;
|
|
69
90
|
}
|
|
70
91
|
|
|
92
|
+
input[type='checkbox']:checked {
|
|
93
|
+
border-color: var(--primary-color, #0066cc) !important;
|
|
94
|
+
background-color: white !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
71
97
|
input[type='radio']:checked::after,
|
|
72
98
|
.radio-input:checked::after {
|
|
73
99
|
content: '' !important;
|
|
@@ -75,14 +101,27 @@ input[type='radio']:checked::after,
|
|
|
75
101
|
top: 50% !important;
|
|
76
102
|
left: 50% !important;
|
|
77
103
|
transform: translate(-50%, -50%) !important;
|
|
78
|
-
width:
|
|
79
|
-
height:
|
|
104
|
+
width: 7px !important;
|
|
105
|
+
height: 7px !important;
|
|
80
106
|
border-radius: 50% !important;
|
|
81
107
|
background-color: var(--primary-color, #0066cc) !important;
|
|
82
108
|
display: block !important;
|
|
83
109
|
box-shadow: 0 0 2px rgba(0, 0, 0, 0.2) !important;
|
|
84
110
|
}
|
|
85
111
|
|
|
112
|
+
input[type='checkbox']:checked::after {
|
|
113
|
+
content: '✓' !important;
|
|
114
|
+
position: absolute !important;
|
|
115
|
+
top: 50% !important;
|
|
116
|
+
left: 50% !important;
|
|
117
|
+
transform: translate(-50%, -50%) !important;
|
|
118
|
+
font-size: 10px !important;
|
|
119
|
+
line-height: 1 !important;
|
|
120
|
+
color: var(--primary-color, #0066cc) !important;
|
|
121
|
+
display: block !important;
|
|
122
|
+
font-weight: bold !important;
|
|
123
|
+
}
|
|
124
|
+
|
|
86
125
|
select {
|
|
87
126
|
background: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+)
|
|
88
127
|
no-repeat 100% 50% #fff;
|
|
@@ -346,8 +385,8 @@ input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
|
|
|
346
385
|
.radio-input {
|
|
347
386
|
-webkit-appearance: none !important;
|
|
348
387
|
appearance: none !important;
|
|
349
|
-
width:
|
|
350
|
-
height:
|
|
388
|
+
width: 14px !important;
|
|
389
|
+
height: 14px !important;
|
|
351
390
|
border: 1px solid rgba(var(--paragraph-color-rgb, 0, 0, 0), 0.5) !important;
|
|
352
391
|
border-radius: 50% !important;
|
|
353
392
|
outline: none !important;
|
|
@@ -360,8 +399,27 @@ input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
|
|
|
360
399
|
transition: border-color 0.2s ease-in-out !important;
|
|
361
400
|
}
|
|
362
401
|
|
|
402
|
+
input[type='checkbox'] {
|
|
403
|
+
-webkit-appearance: none !important;
|
|
404
|
+
appearance: none !important;
|
|
405
|
+
width: 14px !important;
|
|
406
|
+
height: 14px !important;
|
|
407
|
+
border: 1px solid rgba(var(--paragraph-color-rgb, 0, 0, 0), 0.5) !important;
|
|
408
|
+
border-radius: 3px !important;
|
|
409
|
+
outline: none !important;
|
|
410
|
+
position: relative !important;
|
|
411
|
+
cursor: pointer !important;
|
|
412
|
+
vertical-align: middle !important;
|
|
413
|
+
background-color: white !important;
|
|
414
|
+
display: inline-block !important;
|
|
415
|
+
box-sizing: border-box !important;
|
|
416
|
+
transition: border-color 0.2s ease-in-out !important;
|
|
417
|
+
transform: scale(1) !important; /* Override any transform scale */
|
|
418
|
+
}
|
|
419
|
+
|
|
363
420
|
input[type='radio']:hover,
|
|
364
|
-
.radio-input:hover
|
|
421
|
+
.radio-input:hover,
|
|
422
|
+
input[type='checkbox']:hover {
|
|
365
423
|
border-color: var(--primary-color, #0066cc) !important;
|
|
366
424
|
}
|
|
367
425
|
|
|
@@ -371,6 +429,11 @@ input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
|
|
|
371
429
|
background-color: white !important;
|
|
372
430
|
}
|
|
373
431
|
|
|
432
|
+
input[type='checkbox']:checked {
|
|
433
|
+
border-color: var(--primary-color, #0066cc) !important;
|
|
434
|
+
background-color: white !important;
|
|
435
|
+
}
|
|
436
|
+
|
|
374
437
|
input[type='radio']:checked::after,
|
|
375
438
|
.radio-input:checked::after {
|
|
376
439
|
content: '' !important;
|
|
@@ -378,11 +441,24 @@ input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
|
|
|
378
441
|
top: 50% !important;
|
|
379
442
|
left: 50% !important;
|
|
380
443
|
transform: translate(-50%, -50%) !important;
|
|
381
|
-
width:
|
|
382
|
-
height:
|
|
444
|
+
width: 7px !important;
|
|
445
|
+
height: 7px !important;
|
|
383
446
|
border-radius: 50% !important;
|
|
384
447
|
background-color: var(--primary-color, #0066cc) !important;
|
|
385
448
|
display: block !important;
|
|
386
449
|
box-shadow: 0 0 2px rgba(0, 0, 0, 0.2) !important;
|
|
387
450
|
}
|
|
451
|
+
|
|
452
|
+
input[type='checkbox']:checked::after {
|
|
453
|
+
content: '✓' !important;
|
|
454
|
+
position: absolute !important;
|
|
455
|
+
top: 50% !important;
|
|
456
|
+
left: 50% !important;
|
|
457
|
+
transform: translate(-50%, -50%) !important;
|
|
458
|
+
font-size: 10px !important;
|
|
459
|
+
line-height: 1 !important;
|
|
460
|
+
color: var(--primary-color, #0066cc) !important;
|
|
461
|
+
display: block !important;
|
|
462
|
+
font-weight: bold !important;
|
|
463
|
+
}
|
|
388
464
|
}
|