react-core-ts 1.3.55 → 1.3.56

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.
@@ -430,7 +430,7 @@ var AutoCompleteWithTreeStructure = (0, react_1.forwardRef)(function (_a, ref) {
430
430
  }
431
431
  }
432
432
  };
433
- (0, useDynamicHeight_1.default)('.qbs-autocomplete-suggestions-sub', customDropOffset !== null && customDropOffset !== void 0 ? customDropOffset : 300, dropOpen);
433
+ (0, useDynamicHeight_1.default)('.qbs-autocomplete-suggestions-sub', customDropOffset !== null && customDropOffset !== void 0 ? customDropOffset : 200, dropOpen);
434
434
  return ((0, jsx_runtime_1.jsxs)("div", __assign({ className: fullWidth ? 'fullWidth' : 'autoWidth', ref: dropdownRef }, { children: [label && ((0, jsx_runtime_1.jsxs)("div", __assign({ style: {
435
435
  marginBottom: 5,
436
436
  display: 'flex',
@@ -0,0 +1,632 @@
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
+
233
+
234
+ .qbs-textfield-default.expandable {
235
+ height: auto;
236
+ border: none;
237
+ }
238
+
239
+ .qbs-expandable-container .qbs-textfield-expandable {
240
+ flex: 1 1 auto;
241
+ display: inline-grid;
242
+ grid-template-columns: 0px min-content;
243
+ grid-area: 1 / 1 / 2 / 3;
244
+ overflow: hidden;
245
+ }
246
+ .qbs-expandable-container .qbs-textfield-expandable::after {
247
+ content: attr(data-value) ' ';
248
+ visibility: hidden;
249
+ white-space: pre;
250
+ grid-area: 1 / 2;
251
+ font: inherit;
252
+ min-width: 2px;
253
+ border: 0px;
254
+ margin: 0px;
255
+ outline: 0px;
256
+ padding: 0px;
257
+ }
258
+ .qbs-expandable-container .qbs-textfield-expandable input {
259
+ opacity: 1;
260
+ width: auto;
261
+ grid-area: 1 / 2;
262
+ min-width: 10px;
263
+ border: 0px;
264
+ margin: 0px;
265
+ outline: 0px;
266
+ padding: 0px;
267
+ height: auto;
268
+ min-height: auto;
269
+ border-radius: 0;
270
+ }
271
+
272
+ .qbs-textfield-default::placeholder {
273
+ font-size: 14px;
274
+ font-style: normal;
275
+ font-weight: 500;
276
+ line-height: 20px;
277
+ }
278
+
279
+ .qbs-autocomplete-close-icon button:focus-within {
280
+ outline: none;
281
+ }
282
+
283
+ .fullWidth {
284
+ width: 100%;
285
+ }
286
+
287
+ .autoWidth {
288
+ width: auto;
289
+ }
290
+ .icon-button {
291
+ background: transparent;
292
+ border: none;
293
+ display: inline-flex;
294
+ cursor: pointer;
295
+ padding: 0px 1px;
296
+ }
297
+ .icon-button-rotate {
298
+ rotate: 180deg;
299
+ }
300
+ .labels {
301
+ font-size: 12px;
302
+ }
303
+ .dropdown-search-input {
304
+ min-width: -webkit-fill-available;
305
+ border-radius: 6px;
306
+ border: 1px solid var(--border-card-color-default, #d6d8dc);
307
+ background: var(--surface-input-bg-color-default, #fff);
308
+ color: #313131;
309
+ font-size: 14px;
310
+ height: 36px;
311
+ padding: 0px 8px;
312
+ font-style: normal;
313
+ font-weight: 500;
314
+ line-height: 20px;
315
+ padding-left: 32px;
316
+ }
317
+ .qbs-autocomplete-suggestions-sub {
318
+ position: relative;
319
+ overflow: auto;
320
+ max-height: 184px;
321
+ top: 0;
322
+ display: flex;
323
+ flex-direction: column;
324
+ gap: 4px;
325
+ }
326
+ .padding-class {
327
+ padding: 12px !important;
328
+ }
329
+ .qbs-autocomplete-listitem-container {
330
+ display: flex;
331
+ align-items: center;
332
+ gap: 0px;
333
+ }
334
+ ul {
335
+ list-style-type: none;
336
+ }
337
+
338
+ .react-core-ts-search-container {
339
+ display: flex;
340
+ align-items: center;
341
+ gap: var(--spacing-4, 4px);
342
+ align-self: stretch;
343
+ margin-bottom: 4px;
344
+ }
345
+ .selected-item {
346
+ display: flex;
347
+ align-items: center;
348
+ justify-content: space-between;
349
+ padding: 3px 6px;
350
+ margin: 0;
351
+ background-color: #e0e0e0;
352
+ color: #333;
353
+ border-radius: 6px;
354
+ border: 1px solid rgba(231, 100, 88, 0.1);
355
+ background: rgba(231, 100, 88, 0.1);
356
+ font-size: 12px;
357
+ font-style: normal;
358
+ font-weight: 500;
359
+ line-height: 16px;
360
+ color: #e76458;
361
+ gap: 6px;
362
+ height: 22px;
363
+ }
364
+
365
+ .remove-item-btn {
366
+ background-color: transparent;
367
+ border: none;
368
+ color: #e76458;
369
+ cursor: pointer;
370
+ }
371
+
372
+ .remove-item-btn:hover {
373
+ color: #e76458;
374
+ }
375
+
376
+ .selected-items-container {
377
+ display: flex;
378
+ gap: 12px;
379
+ align-items: center;
380
+ position: absolute;
381
+ left: 8px;
382
+ z-index: 99;
383
+ top: 6.5px;
384
+ flex-wrap: wrap;
385
+ }
386
+
387
+ .qbs-expandable-container .selected-items-container {
388
+ position: relative;
389
+ top: 0;
390
+ left: 0;
391
+ }
392
+
393
+ .selected-items-container .badge {
394
+ background-color: #c63a3a;
395
+ color: #fff;
396
+ }
397
+
398
+ .selected-item-more {
399
+ display: flex;
400
+ align-items: center;
401
+ justify-content: center;
402
+ padding: 3px 8px;
403
+ margin: 0;
404
+ border-radius: 6px;
405
+ background: #c63a3a;
406
+ font-size: 12px;
407
+ font-style: normal;
408
+ font-weight: 500;
409
+ line-height: 16px;
410
+ color: #fff;
411
+ height: 22px;
412
+ }
413
+
414
+ .loadMoreSection {
415
+ margin: 0;
416
+ cursor: pointer;
417
+ display: flex;
418
+ justify-content: flex-start;
419
+ padding: 8px;
420
+ }
421
+ .loadMoreSection p {
422
+ color: #336cfc;
423
+ font-size: 14px;
424
+ font-style: normal;
425
+ font-weight: 500;
426
+ line-height: 20px;
427
+ margin: 0;
428
+ }
429
+ ::-webkit-scrollbar-track {
430
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
431
+ border-radius: 0px;
432
+ background-color: transparent;
433
+ }
434
+
435
+ ::-webkit-scrollbar {
436
+ width: 6px;
437
+ height: 4px;
438
+ background-color: transparent;
439
+ }
440
+
441
+ ::-webkit-scrollbar-thumb {
442
+ border-radius: 100px;
443
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
444
+ background-color: #ddd;
445
+ }
446
+
447
+ .qbs-autocomplete-suggestions-item.is-selected {
448
+ color: #e76458;
449
+ background: #f8f8f8;
450
+ }
451
+
452
+ span.dropdown-search-icon {
453
+ position: absolute;
454
+ left: 8px;
455
+ top: 10px;
456
+ }
457
+
458
+ .dropdown-search-input:focus {
459
+ outline: none;
460
+ border: 1px solid #222;
461
+ }
462
+
463
+ .qbs-autocomplete-checkbox-container {
464
+ gap: 8px;
465
+ padding: 6px 8px;
466
+ display: flex;
467
+ align-items: flex-start;
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: 3px;
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
+ }