@visns-studio/visns-components 5.4.18 → 5.4.20

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.
@@ -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: 10px; // Adds space between checkboxes
109
- margin-top: 8px; // Adjust as needed to create space between the label and checkboxes
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: 5px; // Space between checkbox and its label
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: 18px;
124
- height: 18px;
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: 10px;
155
- height: 10px;
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: 5px;
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
 
@@ -254,7 +281,7 @@ select:not(:placeholder-shown) + .fi__span {
254
281
  .formItem
255
282
  input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
256
283
  [type='checkbox']
257
- ):not(.inovua-react-toolkit-combo-box__input):not(
284
+ ):not([type='radio']):not(.inovua-react-toolkit-combo-box__input):not(
258
285
  .inovua-react-toolkit-date-input__input
259
286
  ):not(.inovua-react-toolkit-text-input__input):not(
260
287
  .inovua-react-toolkit-numeric-input__input
@@ -275,7 +302,7 @@ select:not(:placeholder-shown) + .fi__span {
275
302
  .formItem
276
303
  input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
277
304
  [type='checkbox']
278
- ):not(.inovua-react-toolkit-combo-box__input):not(
305
+ ):not([type='radio']):not(.inovua-react-toolkit-combo-box__input):not(
279
306
  .inovua-react-toolkit-date-input__input
280
307
  ):not(.inovua-react-toolkit-numeric-input__input):hover {
281
308
  border: 1px solid rgba(var(--paragraph-color-rgb), 0.85);
@@ -287,7 +314,7 @@ select:not(:placeholder-shown) + .fi__span {
287
314
  .formItem
288
315
  input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
289
316
  [type='checkbox']
290
- ):not(.inovua-react-toolkit-combo-box__input):not(
317
+ ):not([type='radio']):not(.inovua-react-toolkit-combo-box__input):not(
291
318
  .inovua-react-toolkit-date-input__input
292
319
  ):not(.inovua-react-toolkit-numeric-input__input):focus {
293
320
  border: 1px solid rgba(var(--paragraph-color-rgb), 0.85);
@@ -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: 18px !important;
47
- height: 18px !important;
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: 10px !important;
79
- height: 10px !important;
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;
@@ -150,12 +189,12 @@ a {
150
189
  textarea,
151
190
  select,
152
191
  input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
153
- .inovua-react-toolkit-numeric-input__input
154
- ):not(.inovua-react-toolkit-combo-box__input):not(
155
- .inovua-react-toolkit-date-input__input
156
- ):not(.inovua-react-toolkit-text-input__input):not(
157
- .inovua-react-toolkit-numeric-input__input
158
- ) {
192
+ [type='checkbox']
193
+ ):not([type='radio']):not(.inovua-react-toolkit-numeric-input__input):not(
194
+ .inovua-react-toolkit-combo-box__input
195
+ ):not(.inovua-react-toolkit-date-input__input):not(
196
+ .inovua-react-toolkit-text-input__input
197
+ ):not(.inovua-react-toolkit-numeric-input__input) {
159
198
  background: white;
160
199
  border-radius: var(--br);
161
200
  border: 1px solid rgba(var(--paragraph-color-rgb), 0.15);
@@ -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: 18px !important;
350
- height: 18px !important;
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: 10px !important;
382
- height: 10px !important;
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
  }
package/src/index.js CHANGED
@@ -44,6 +44,7 @@ import GenericFormBuilder from './components/crm/generic/GenericFormBuilder';
44
44
  import GenericIndex from './components/crm/generic/GenericIndex';
45
45
  import GenericMain from './components/crm/generic/GenericMain';
46
46
  import GenericQuote from './components/crm/generic/GenericQuote';
47
+ import GenericReport from './components/crm/generic/GenericReport';
47
48
  import GenericSort from './components/crm/generic/GenericSort';
48
49
  import NotificationList from './components/crm/generic/NotificationList';
49
50
 
@@ -72,6 +73,7 @@ export {
72
73
  GenericIndex,
73
74
  GenericMain,
74
75
  GenericQuote,
76
+ GenericReport,
75
77
  GenericSort,
76
78
  Loader,
77
79
  Login,