react-core-ts 1.3.6 → 1.3.8

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,621 @@
1
+ body * {
2
+ box-sizing: border-box;
3
+ }
4
+ :root {
5
+ --grey-dark: #4a4a4a;
6
+ --grey-light: #d3d3d3;
7
+ --blue-navy: #001f3f;
8
+ --input-disabled: #a9a9a9;
9
+ --error-light: #f08080;
10
+ --error-extra-light: #fddede;
11
+ --success: #28a745;
12
+ --success-light: #d4edda;
13
+ --blue-light: #add8e6;
14
+ }
15
+ :root {
16
+ --blue-navy: #001f3f;
17
+ --table-hover: #your-hover-color; /* Replace with your actual color code */
18
+ }
19
+
20
+ .custom-spinner {
21
+ width: 24px !important; /* w-6 */
22
+ height: 24px; /* h-6 */
23
+ color: transparent; /* text-table-hover */
24
+ fill: var(--blue-navy); /* fill-blue-navy */
25
+ animation: spin 1s linear infinite; /* animate-spin */
26
+ width: 15px;
27
+ position: relative;
28
+ top: 1px;
29
+ }
30
+
31
+ @keyframes spin {
32
+ 0% {
33
+ transform: rotate(0deg);
34
+ }
35
+ 100% {
36
+ transform: rotate(360deg);
37
+ }
38
+ }
39
+
40
+ .textfield,
41
+ .textfield-big {
42
+ outline: none;
43
+ color: var(--grey-dark);
44
+ border-color: var(--grey-light);
45
+ background-color: white;
46
+ }
47
+
48
+ .textfield:focus,
49
+ .textfield-big:focus {
50
+ border-color: var(--blue-navy);
51
+ }
52
+
53
+ .textfield:disabled,
54
+ .textfield-big:disabled {
55
+ color: var(--input-disabled);
56
+ }
57
+
58
+ .textfield-error,
59
+ .textfield-big-error {
60
+ outline: none;
61
+ color: var(--error-light) !important;
62
+ border-color: var(--error-light) !important;
63
+ background-color: var(--error-extra-light) !important ;
64
+ }
65
+
66
+ .textfield-error::placeholder,
67
+ .textfield-big-error::placeholder {
68
+ color: var(--error-light);
69
+ }
70
+
71
+ .textfield-success {
72
+ outline: none;
73
+ color: var(--success);
74
+ border-color: var(--success);
75
+ background-color: var(--success-light);
76
+ }
77
+
78
+ .textfield-success:focus {
79
+ ring-width: 0;
80
+ }
81
+
82
+ .textfield-success::placeholder {
83
+ color: var(--success);
84
+ }
85
+
86
+ .textfield-editable {
87
+ outline: none;
88
+ color: var(--grey-dark);
89
+ border-color: var(--blue-navy);
90
+ background-color: var(--blue-light);
91
+ }
92
+
93
+ .textfield-editable::placeholder {
94
+ color: var(--grey-dark);
95
+ }
96
+
97
+ .qbs-autocomplete-suggestions {
98
+ position: absolute;
99
+ height: auto;
100
+ width: 100%;
101
+ padding: 8px; /* Corresponding to p-1.5 in Tailwind */
102
+ z-index: 99;
103
+ margin-top: 4px;
104
+ margin-bottom: 0;
105
+ border-radius: 8px;
106
+ background: #fff;
107
+ box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.15);
108
+ transform: translateY(0); /* Default position */
109
+ transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
110
+ opacity: 1;
111
+
112
+ /* Ensure content doesn't overflow during transition */
113
+ }
114
+ .qbs-autocomplete-suggestions.bottom {
115
+ top: 100%; /* Position below the input */
116
+ /* Other styling */
117
+ }
118
+
119
+ .qbs-autocomplete-suggestions.top {
120
+ bottom: 100%; /* Position above the input */
121
+ /* Other styling */
122
+ }
123
+ .qbs-autocomplete-suggestions-item {
124
+ cursor: pointer;
125
+ padding: 6px 8px;
126
+ border-radius: 6px;
127
+ color: #222;
128
+ font-size: 14px;
129
+ font-weight: 500;
130
+ line-height: 20px; /* 142.857% */
131
+ width: 100%;
132
+ display: flex;
133
+ align-items: flex-start;
134
+ gap: 8px;
135
+ }
136
+ .qbs-autocomplete-suggestions-item:hover {
137
+ background: #f8f8f8;
138
+ border-radius: 6px;
139
+ }
140
+
141
+ /* When value.id is equal to suggestion.id */
142
+ .is-selected {
143
+ border-radius: 6px;
144
+ background: var(--neutrals-grey-20, #f4f4f4);
145
+ }
146
+
147
+ /* When value.id is NOT equal to suggestion.id */
148
+ .qbs-autocomplete-suggestions-item .is-not-selected:hover {
149
+ background-color: #f1f5f9; /* Replace with actual color code for 'hover:bg-table-hover' */
150
+ }
151
+
152
+ .qbs-autocomplete-notfound {
153
+ cursor: pointer;
154
+ padding: 6px 8px;
155
+ border-radius: 6px;
156
+ font-size: 12px;
157
+ font-weight: 500;
158
+ }
159
+ .qbs-autocomplete-witherror-close-icon {
160
+ position: absolute;
161
+ top: calc(50% - 8px);
162
+ right: 22px; /* right-1 */
163
+ padding-left: 0.25rem; /* px-1 */
164
+ padding-right: 0.25rem; /* px-1 */
165
+ display: flex;
166
+ justify-content: center;
167
+ align-items: center;
168
+ }
169
+ .qbs-autocomplete-close-icon {
170
+ position: absolute;
171
+ top: calc(50% - 8px);
172
+ right: 2px; /* right-1 */
173
+ padding-left: 0.25rem; /* px-1 */
174
+ padding-right: 0.25rem; /* px-1 */
175
+ display: flex;
176
+ justify-content: center;
177
+ align-items: center;
178
+ }
179
+ .qbs-textfield-default {
180
+ width: 100%;
181
+ position: relative;
182
+ padding-right: 8px;
183
+ min-height: 36px;
184
+ height: 36px;
185
+ border-radius: 6px;
186
+ padding-left: 8px;
187
+ border: 1px solid #d6d8dc;
188
+ background: #fff;
189
+ box-sizing: border-box;
190
+ font-size: 14px;
191
+ font-style: normal;
192
+ font-weight: 500;
193
+ line-height: 20px;
194
+ color: #313131;
195
+ }
196
+
197
+ .qbs-expandable-container {
198
+ border: 1px solid #d6d8dc;
199
+ background: #fff;
200
+ box-sizing: border-box;
201
+ padding: 5px;
202
+ display: flex;
203
+ flex-wrap: wrap;
204
+ flex: 1 1 0%;
205
+ gap: 5px;
206
+ }
207
+
208
+ .qbs-dropdown-selected-container {
209
+ border: 0px;
210
+ border-top: 1px solid #d6d8dc;
211
+ min-height: 35px;
212
+ margin-top: 2px;
213
+ padding-top: 10px;
214
+ }
215
+ .qbs-dropdown-selected-preview {
216
+ .qbs-dropdown-selected-container {
217
+ border-top: 0px;
218
+ }
219
+ }
220
+
221
+ .qbs-dropdown-selected-container .qbs-clear-link,
222
+ .qbs-expandable-container .qbs-clear-link {
223
+ color: #e76458;
224
+ }
225
+
226
+ .qbs-textfield-default.expandable {
227
+ height: auto;
228
+ border: none;
229
+ }
230
+
231
+ .qbs-expandable-container .qbs-textfield-expandable {
232
+ flex: 1 1 auto;
233
+ display: inline-grid;
234
+ grid-template-columns: 0px min-content;
235
+ grid-area: 1 / 1 / 2 / 3;
236
+ overflow: hidden;
237
+ }
238
+ .qbs-expandable-container .qbs-textfield-expandable::after {
239
+ content: attr(data-value) " ";
240
+ visibility: hidden;
241
+ white-space: pre;
242
+ grid-area: 1 / 2;
243
+ font: inherit;
244
+ min-width: 2px;
245
+ border: 0px;
246
+ margin: 0px;
247
+ outline: 0px;
248
+ padding: 0px;
249
+ }
250
+ .qbs-expandable-container .qbs-textfield-expandable input {
251
+ opacity: 1;
252
+ width: auto;
253
+ grid-area: 1 / 2;
254
+ min-width: 10px;
255
+ border: 0px;
256
+ margin: 0px;
257
+ outline: 0px;
258
+ padding: 0px;
259
+ height: auto;
260
+ min-height: auto;
261
+ border-radius: 0;
262
+ }
263
+
264
+ .qbs-textfield-default::placeholder {
265
+ font-size: 14px;
266
+ font-style: normal;
267
+ font-weight: 500;
268
+ line-height: 20px;
269
+ }
270
+
271
+ .qbs-autocomplete-close-icon button:focus-within {
272
+ outline: none;
273
+ }
274
+
275
+ .fullWidth {
276
+ width: 100%;
277
+ }
278
+
279
+ .autoWidth {
280
+ width: auto;
281
+ }
282
+ .icon-button {
283
+ background: transparent;
284
+ border: none;
285
+ display: inline-flex;
286
+ cursor: pointer;
287
+ padding: 0px 1px;
288
+ }
289
+ .icon-button-rotate {
290
+ rotate: 180deg;
291
+ }
292
+ .labels {
293
+ font-size: 12px;
294
+ }
295
+ .dropdown-search-input {
296
+ min-width: -webkit-fill-available;
297
+ border-radius: 6px;
298
+ border: 1px solid var(--border-card-color-default, #d6d8dc);
299
+ background: var(--surface-input-bg-color-default, #fff);
300
+ color: #313131;
301
+ font-size: 14px;
302
+ height: 36px;
303
+ padding: 0px 8px;
304
+ font-style: normal;
305
+ font-weight: 500;
306
+ line-height: 20px;
307
+ padding-left: 32px;
308
+ }
309
+ .qbs-autocomplete-suggestions-sub {
310
+ position: relative;
311
+ overflow: auto;
312
+ max-height: 184px;
313
+ top: 0;
314
+ display: flex;
315
+ flex-direction: column;
316
+ gap: 4px;
317
+ }
318
+ .qbs-autocomplete-listitem-container {
319
+ display: flex;
320
+ align-items: center;
321
+ gap: 0px;
322
+ }
323
+ ul {
324
+ list-style-type: none;
325
+ }
326
+
327
+ .react-core-ts-search-container {
328
+ display: flex;
329
+ align-items: center;
330
+ gap: var(--spacing-4, 4px);
331
+ align-self: stretch;
332
+ margin-bottom: 4px;
333
+ }
334
+ .selected-item {
335
+ display: flex;
336
+ align-items: center;
337
+ justify-content: space-between;
338
+ padding: 3px 6px;
339
+ margin: 0;
340
+ background-color: #e0e0e0;
341
+ color: #333;
342
+ border-radius: 6px;
343
+ border: 1px solid rgba(231, 100, 88, 0.1);
344
+ background: rgba(231, 100, 88, 0.1);
345
+ font-size: 12px;
346
+ font-style: normal;
347
+ font-weight: 500;
348
+ line-height: 16px;
349
+ color: #e76458;
350
+ gap: 6px;
351
+ height: 22px;
352
+ }
353
+
354
+ .remove-item-btn {
355
+ background-color: transparent;
356
+ border: none;
357
+ color: #e76458;
358
+ cursor: pointer;
359
+ }
360
+
361
+ .remove-item-btn:hover {
362
+ color: #e76458;
363
+ }
364
+
365
+ .selected-items-container {
366
+ display: flex;
367
+ gap: 12px;
368
+ align-items: center;
369
+ position: absolute;
370
+ left: 8px;
371
+ z-index: 99;
372
+ top: 6.5px;
373
+ flex-wrap: wrap;
374
+ }
375
+
376
+ .qbs-expandable-container .selected-items-container {
377
+ position: relative;
378
+ top: 0;
379
+ left: 0;
380
+ }
381
+
382
+ .selected-items-container .badge {
383
+ background-color: #c63a3a;
384
+ color: #fff;
385
+ }
386
+
387
+ .selected-item-more {
388
+ display: flex;
389
+ align-items: center;
390
+ justify-content: center;
391
+ padding: 3px 8px;
392
+ margin: 0;
393
+ border-radius: 6px;
394
+ background: #c63a3a;
395
+ font-size: 12px;
396
+ font-style: normal;
397
+ font-weight: 500;
398
+ line-height: 16px;
399
+ color: #fff;
400
+ height: 22px;
401
+ }
402
+
403
+ .loadMoreSection {
404
+ margin: 0;
405
+ cursor: pointer;
406
+ display: flex;
407
+ justify-content: flex-start;
408
+ padding: 8px;
409
+ }
410
+ .loadMoreSection p {
411
+ color: #336cfc;
412
+ font-size: 14px;
413
+ font-style: normal;
414
+ font-weight: 500;
415
+ line-height: 20px;
416
+ margin: 0;
417
+ }
418
+ ::-webkit-scrollbar-track {
419
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
420
+ border-radius: 0px;
421
+ background-color: transparent;
422
+ }
423
+
424
+ ::-webkit-scrollbar {
425
+ width: 6px;
426
+ height: 4px;
427
+ background-color: transparent;
428
+ }
429
+
430
+ ::-webkit-scrollbar-thumb {
431
+ border-radius: 100px;
432
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
433
+ background-color: #ddd;
434
+ }
435
+
436
+ .qbs-autocomplete-suggestions-item.is-selected {
437
+ color: #e76458;
438
+ background: #f8f8f8;
439
+ }
440
+
441
+ span.dropdown-search-icon {
442
+ position: absolute;
443
+ left: 8px;
444
+ top: 10px;
445
+ }
446
+
447
+ .dropdown-search-input:focus {
448
+ outline: none;
449
+ border: 1px solid #222;
450
+ }
451
+
452
+ .qbs-autocomplete-checkbox-container {
453
+ gap: 8px;
454
+ padding: 6px 8px;
455
+ display: flex;
456
+ align-items: flex-start;
457
+ }
458
+
459
+ .qbs-autocomplete-checkbox-container .qbs-autocomplete-suggestions-item {
460
+ padding: 0;
461
+ /* pointer-events: none; */
462
+ }
463
+
464
+ .qbs-autocomplete-checkbox-container:hover {
465
+ background: #f8f8f8;
466
+ border-radius: 6px;
467
+ }
468
+
469
+ .qbs-autocomplete-checkbox-container.is-selected {
470
+ background: #f8f8f8;
471
+ border-radius: 6px;
472
+ }
473
+
474
+ .qbs-autocomplete-checkbox {
475
+ position: relative;
476
+ display: flex;
477
+ align-items: center;
478
+ justify-content: center;
479
+ }
480
+
481
+ .qbs-autocomplete-checkbox input {
482
+ opacity: 0;
483
+ }
484
+
485
+ .qbs-autocomplete-checkbox input ~ label {
486
+ position: absolute;
487
+ border-radius: 3px;
488
+ border: 1px solid #999696;
489
+ width: 16px;
490
+ height: 16px;
491
+ top: 3px;
492
+ transition: all 0.2s ease;
493
+ cursor: pointer;
494
+ }
495
+
496
+ .qbs-autocomplete-checkbox input ~ label svg {
497
+ opacity: 0;
498
+ transition: all 0.2s ease;
499
+ position: absolute;
500
+ left: 3px;
501
+ top: 3px;
502
+ width: 9px;
503
+ height: 9px;
504
+ }
505
+
506
+ .qbs-autocomplete-checkbox input:checked ~ label {
507
+ transition: all 0.2s ease;
508
+ border-radius: 3px;
509
+ background: #e76458;
510
+ border-color: #e76458;
511
+ }
512
+ .qbs-autocomplete-checkbox input:checked ~ label svg {
513
+ opacity: 1;
514
+ transition: all 0.2s ease;
515
+ }
516
+
517
+ .action_label {
518
+ font-size: 14px;
519
+ color: #4c7ad6;
520
+ }
521
+ /* Tooltip.css */
522
+ /* .tooltip-wrapper {
523
+ position: relative;
524
+ display: inline-block;
525
+ }
526
+
527
+ .tooltip-content {
528
+ visibility: hidden;
529
+ width: max-content;
530
+ background-color: black;
531
+ color: white;
532
+ text-align: center;
533
+ max-width: 150px;
534
+ padding: 5px 10px;
535
+ border-radius: 6px;
536
+ position: absolute;
537
+ z-index: 1;
538
+ bottom: 125%;
539
+ left: 50%;
540
+ transform: translateX(-50%);
541
+ transition: visibility 0.2s ease-in-out;
542
+ }
543
+
544
+ .tooltip-content::after {
545
+ content: '';
546
+ position: absolute;
547
+ top: 100%;
548
+ left: 50%;
549
+ margin-left: -5px;
550
+ border-width: 5px;
551
+ border-style: solid;
552
+ border-color: black transparent transparent transparent;
553
+ }
554
+
555
+ .tooltip-wrapper:hover .tooltip-content {
556
+ visibility: visible;
557
+ } */
558
+ .qbs-table-tooltip {
559
+ position: relative;
560
+ display: contents;
561
+ cursor: pointer;
562
+ }
563
+
564
+ .qbs-table-tooltip .tooltiptext,
565
+ .tooltiptext {
566
+ visibility: hidden;
567
+ background-color: #000;
568
+ color: #fff;
569
+ text-align: center;
570
+ padding: 6px;
571
+ border-radius: 4px;
572
+ position: absolute;
573
+ z-index: 9999;
574
+ opacity: 0;
575
+ transition: opacity 0.3s;
576
+ font-size: 14px;
577
+ font-style: normal;
578
+ font-weight: 400;
579
+ line-height: 16px;
580
+ max-width: 300px;
581
+ }
582
+
583
+ .qbs-table-tooltip.up .tooltiptext {
584
+ bottom: 125%;
585
+ left: 0%;
586
+ }
587
+
588
+ .qbs-table-tooltip.down .tooltiptext {
589
+ top: 125%;
590
+ right: 0px;
591
+ left: auto;
592
+ }
593
+
594
+ .qbs-table-tooltip:hover .tooltiptext {
595
+ visibility: visible;
596
+ opacity: 1;
597
+ }
598
+
599
+ .qbs-table-tooltip .tooltiptext::after,
600
+ .tooltiptext::after {
601
+ content: "";
602
+ position: absolute;
603
+ border-width: 5px;
604
+ border-style: solid;
605
+ }
606
+
607
+ .qbs-table-tooltip.up .tooltiptext::after,
608
+ .up.tooltiptext::after {
609
+ top: 100%;
610
+ left: 50%;
611
+ margin-left: -5px;
612
+ border-color: #000 transparent transparent transparent;
613
+ }
614
+
615
+ .qbs-table-tooltip.down .tooltiptext::after,
616
+ .down.tooltiptext::after {
617
+ bottom: 100%;
618
+ left: 50%;
619
+ margin-left: -5px;
620
+ border-color: transparent transparent #000 transparent;
621
+ }