react-core-ts 1.4.12 → 1.4.14

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,655 @@
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-dropdown-selected-container .qbs-done-link,
227
+ .qbs-expandable-container .qbs-done-link {
228
+ color: #336cfc;
229
+ margin-left: 10px;
230
+ }
231
+
232
+ .qbs-textfield-default.expandable {
233
+ height: auto;
234
+ border: none;
235
+ }
236
+
237
+ .qbs-expandable-container .qbs-textfield-expandable {
238
+ flex: 1 1 auto;
239
+ display: inline-grid;
240
+ grid-template-columns: 0px min-content;
241
+ grid-area: 1 / 1 / 2 / 3;
242
+ overflow: hidden;
243
+ }
244
+ .qbs-expandable-container .qbs-textfield-expandable::after {
245
+ content: attr(data-value) ' ';
246
+ visibility: hidden;
247
+ white-space: pre;
248
+ grid-area: 1 / 2;
249
+ font: inherit;
250
+ min-width: 2px;
251
+ border: 0px;
252
+ margin: 0px;
253
+ outline: 0px;
254
+ padding: 0px;
255
+ }
256
+ .qbs-expandable-container .qbs-textfield-expandable input {
257
+ opacity: 1;
258
+ width: auto;
259
+ grid-area: 1 / 2;
260
+ min-width: 10px;
261
+ border: 0px;
262
+ margin: 0px;
263
+ outline: 0px;
264
+ padding: 0px;
265
+ height: auto;
266
+ min-height: auto;
267
+ border-radius: 0;
268
+ }
269
+
270
+ .qbs-textfield-default::placeholder {
271
+ font-size: 14px;
272
+ font-style: normal;
273
+ font-weight: 500;
274
+ line-height: 20px;
275
+ }
276
+
277
+ .qbs-autocomplete-close-icon button:focus-within {
278
+ outline: none;
279
+ }
280
+
281
+ .fullWidth {
282
+ width: 100%;
283
+ }
284
+
285
+ .autoWidth {
286
+ width: auto;
287
+ }
288
+ .icon-button {
289
+ background: transparent;
290
+ border: none;
291
+ display: inline-flex;
292
+ cursor: pointer;
293
+ padding: 0px 1px;
294
+ }
295
+ .icon-button-rotate {
296
+ rotate: 180deg;
297
+ }
298
+ .labels {
299
+ font-size: 12px;
300
+ }
301
+ .dropdown-search-input {
302
+ min-width: -webkit-fill-available;
303
+ border-radius: 6px;
304
+ border: 1px solid var(--border-card-color-default, #d6d8dc);
305
+ background: var(--surface-input-bg-color-default, #fff);
306
+ color: #313131;
307
+ font-size: 14px;
308
+ height: 36px;
309
+ padding: 0px 8px;
310
+ font-style: normal;
311
+ font-weight: 500;
312
+ line-height: 20px;
313
+ padding-left: 32px;
314
+ }
315
+ .qbs-autocomplete-suggestions-sub {
316
+ position: relative;
317
+ overflow: auto;
318
+ max-height: 184px;
319
+ top: 0;
320
+ display: flex;
321
+ flex-direction: column;
322
+ gap: 4px;
323
+ }
324
+ .padding-class {
325
+ padding: 12px !important;
326
+ }
327
+ .qbs-autocomplete-listitem-container {
328
+ display: flex !important;
329
+ align-items: center !important;
330
+ gap: 0px;
331
+ }
332
+ ul {
333
+ list-style-type: none;
334
+ }
335
+
336
+ .react-core-ts-search-container {
337
+ display: flex;
338
+ align-items: center;
339
+ gap: var(--spacing-4, 4px);
340
+ align-self: stretch;
341
+ margin-bottom: 4px;
342
+ }
343
+ .selected-item {
344
+ display: flex;
345
+ align-items: center;
346
+ justify-content: space-between;
347
+ padding: 3px 6px;
348
+ margin: 0;
349
+ background-color: #e0e0e0;
350
+ color: #333;
351
+ border-radius: 6px;
352
+ border: 1px solid rgba(231, 100, 88, 0.1);
353
+ background: rgba(231, 100, 88, 0.1);
354
+ font-size: 12px;
355
+ font-style: normal;
356
+ font-weight: 500;
357
+ line-height: 16px;
358
+ color: #e76458;
359
+ gap: 6px;
360
+ height: 22px;
361
+ }
362
+
363
+ .remove-item-btn {
364
+ background-color: transparent;
365
+ border: none;
366
+ color: #e76458;
367
+ cursor: pointer;
368
+ }
369
+
370
+ .remove-item-btn:hover {
371
+ color: #e76458;
372
+ }
373
+
374
+ .selected-items-container {
375
+ display: flex;
376
+ gap: 12px;
377
+ align-items: center;
378
+ position: absolute;
379
+ left: 8px;
380
+ z-index: 99;
381
+ top: 6.5px;
382
+ flex-wrap: wrap;
383
+ }
384
+
385
+ .qbs-expandable-container .selected-items-container {
386
+ position: relative;
387
+ top: 0;
388
+ left: 0;
389
+ }
390
+
391
+ .selected-items-container .badge {
392
+ background-color: #c63a3a;
393
+ color: #fff;
394
+ }
395
+
396
+ .selected-item-more {
397
+ display: flex;
398
+ align-items: center;
399
+ justify-content: center;
400
+ padding: 3px 8px;
401
+ margin: 0;
402
+ border-radius: 6px;
403
+ background: #c63a3a;
404
+ font-size: 12px;
405
+ font-style: normal;
406
+ font-weight: 500;
407
+ line-height: 16px;
408
+ color: #fff;
409
+ height: 22px;
410
+ }
411
+
412
+ .loadMoreSection {
413
+ margin: 0;
414
+ cursor: pointer;
415
+ display: flex;
416
+ justify-content: flex-start;
417
+ padding: 8px;
418
+ }
419
+ .loadMoreSection p {
420
+ color: #336cfc;
421
+ font-size: 14px;
422
+ font-style: normal;
423
+ font-weight: 500;
424
+ line-height: 20px;
425
+ margin: 0;
426
+ }
427
+ ::-webkit-scrollbar-track {
428
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
429
+ border-radius: 0px;
430
+ background-color: transparent;
431
+ }
432
+
433
+ ::-webkit-scrollbar {
434
+ width: 6px;
435
+ height: 4px;
436
+ background-color: transparent;
437
+ }
438
+
439
+ ::-webkit-scrollbar-thumb {
440
+ border-radius: 100px;
441
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
442
+ background-color: #ddd;
443
+ }
444
+
445
+ .qbs-autocomplete-suggestions-item.is-selected {
446
+ color: #e76458;
447
+ background: #f8f8f8;
448
+ }
449
+
450
+ span.dropdown-search-icon {
451
+ position: absolute;
452
+ left: 8px;
453
+ top: 10px;
454
+ }
455
+
456
+ .dropdown-search-input:focus {
457
+ outline: none;
458
+ border: 1px solid #222;
459
+ }
460
+
461
+ .qbs-autocomplete-checkbox-container {
462
+ gap: 8px;
463
+ padding: 6px 8px;
464
+ display: flex;
465
+ align-items: flex-start;
466
+ outline: none;
467
+ box-shadow: none;
468
+ }
469
+
470
+ .qbs-autocomplete-checkbox-container .qbs-autocomplete-suggestions-item {
471
+ padding: 0;
472
+ /* pointer-events: none; */
473
+ }
474
+
475
+ .qbs-autocomplete-checkbox-container:hover {
476
+ background: #f8f8f8;
477
+ border-radius: 6px;
478
+ }
479
+
480
+ .qbs-autocomplete-checkbox-container.is-selected {
481
+ background: #f8f8f8;
482
+ border-radius: 6px;
483
+ }
484
+
485
+ .qbs-autocomplete-checkbox {
486
+ position: relative;
487
+ display: flex;
488
+ align-items: center;
489
+ justify-content: center;
490
+ }
491
+
492
+ .qbs-autocomplete-checkbox input {
493
+ opacity: 0;
494
+ }
495
+
496
+ .qbs-autocomplete-checkbox input ~ label {
497
+ position: absolute;
498
+ border-radius: 3px;
499
+ border: 1px solid #999696;
500
+ width: 16px;
501
+ height: 16px;
502
+ top: 1px;
503
+ transition: all 0.2s ease;
504
+ cursor: pointer;
505
+ }
506
+
507
+ .qbs-autocomplete-checkbox input ~ label svg {
508
+ opacity: 0;
509
+ transition: all 0.2s ease;
510
+ position: absolute;
511
+ left: 3px;
512
+ top: 3px;
513
+ width: 9px;
514
+ height: 9px;
515
+ }
516
+
517
+ .qbs-autocomplete-checkbox input:checked ~ label {
518
+ transition: all 0.2s ease;
519
+ border-radius: 3px;
520
+ background: #e76458;
521
+ border-color: #e76458;
522
+ }
523
+ .qbs-autocomplete-checkbox input:checked ~ label svg {
524
+ opacity: 1;
525
+ transition: all 0.2s ease;
526
+ }
527
+
528
+ .action_label {
529
+ font-size: 14px;
530
+ color: #4c7ad6;
531
+ }
532
+ /* Tooltip.css */
533
+ /* .tooltip-wrapper {
534
+ position: relative;
535
+ display: inline-block;
536
+ }
537
+
538
+ .tooltip-content {
539
+ visibility: hidden;
540
+ width: max-content;
541
+ background-color: black;
542
+ color: white;
543
+ text-align: center;
544
+ max-width: 150px;
545
+ padding: 5px 10px;
546
+ border-radius: 6px;
547
+ position: absolute;
548
+ z-index: 1;
549
+ bottom: 125%;
550
+ left: 50%;
551
+ transform: translateX(-50%);
552
+ transition: visibility 0.2s ease-in-out;
553
+ }
554
+
555
+ .tooltip-content::after {
556
+ content: '';
557
+ position: absolute;
558
+ top: 100%;
559
+ left: 50%;
560
+ margin-left: -5px;
561
+ border-width: 5px;
562
+ border-style: solid;
563
+ border-color: black transparent transparent transparent;
564
+ }
565
+
566
+ .tooltip-wrapper:hover .tooltip-content {
567
+ visibility: visible;
568
+ } */
569
+ .qbs-table-tooltip {
570
+ position: relative;
571
+ display: contents;
572
+ cursor: pointer;
573
+ }
574
+
575
+ .qbs-table-tooltip .tooltiptext,
576
+ .tooltiptext {
577
+ visibility: hidden;
578
+ background-color: #000;
579
+ color: #fff;
580
+ text-align: center;
581
+ padding: 6px;
582
+ border-radius: 4px;
583
+ position: absolute;
584
+ z-index: 9999;
585
+ opacity: 0;
586
+ transition: opacity 0.3s;
587
+ font-size: 14px;
588
+ font-style: normal;
589
+ font-weight: 400;
590
+ line-height: 16px;
591
+ max-width: 300px;
592
+ }
593
+
594
+ .qbs-table-tooltip.up .tooltiptext {
595
+ bottom: 125%;
596
+ left: 0%;
597
+ }
598
+
599
+ .qbs-table-tooltip.down .tooltiptext {
600
+ top: 125%;
601
+ right: 0px;
602
+ left: auto;
603
+ }
604
+
605
+ .qbs-table-tooltip:hover .tooltiptext {
606
+ visibility: visible;
607
+ opacity: 1;
608
+ }
609
+
610
+ .qbs-table-tooltip .tooltiptext::after,
611
+ .tooltiptext::after {
612
+ content: '';
613
+ position: absolute;
614
+ border-width: 5px;
615
+ border-style: solid;
616
+ }
617
+
618
+ .qbs-table-tooltip.up .tooltiptext::after,
619
+ .up.tooltiptext::after {
620
+ top: 100%;
621
+ left: 50%;
622
+ margin-left: -5px;
623
+ border-color: #000 transparent transparent transparent;
624
+ }
625
+
626
+ .qbs-table-tooltip.down .tooltiptext::after,
627
+ .down.tooltiptext::after {
628
+ bottom: 100%;
629
+ left: 50%;
630
+ margin-left: -5px;
631
+ border-color: transparent transparent #000 transparent;
632
+ }
633
+
634
+ .autocomplete-suggections .qbs-autocomplete-suggections-items {
635
+ display: flex;
636
+ justify-content: space-between;
637
+ align-items: center;
638
+ cursor: pointer;
639
+ outline: none;
640
+ box-shadow: none;
641
+ }
642
+
643
+ .qbs-autocomplete-suggections-items.is-selected {
644
+ background-color: #f1f5f9;
645
+ }
646
+
647
+ .autocomplete-suggections .qbs-autocomplete-suggections-items .short-code,
648
+ .qbs-autocomplete-listitem-container .short-code{
649
+ font-size: 12px;
650
+ background: #f0f0f0;
651
+ padding: 4px 8px;
652
+ border: 1px solid #ccc;
653
+ border-radius: 4px;
654
+ white-space: nowrap;
655
+ }