react-core-ts 1.9.18 → 2.0.1

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.
Files changed (33) hide show
  1. package/dist/AutoCompleteWithTabFilter.d.ts +4 -0
  2. package/dist/AutoCompleteWithTabFilter.js +743 -0
  3. package/dist/AutoCompleteWithTabFilter.js.map +1 -0
  4. package/dist/AutoCompleteWithTreeStructure.js +3 -3
  5. package/dist/AutoCompleteWithTreeStructure.js.map +1 -1
  6. package/dist/ReactTextField.js +1 -1
  7. package/dist/ReactTextField.js.map +1 -1
  8. package/dist/commontypes.d.ts +13 -1
  9. package/dist/dropdownFilterTabs.d.ts +7 -0
  10. package/dist/dropdownFilterTabs.js +647 -0
  11. package/dist/dropdownFilterTabs.js.map +1 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +3 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/styles/components/selectedautocomplete.css +11 -0
  16. package/dist/styles/styles/components/autocomplete.css +717 -0
  17. package/dist/styles/styles/components/selectedautocomplete.css +179 -0
  18. package/dist/styles/styles/components/tooltip.css +497 -0
  19. package/dist/styles/styles/components/treedropdown.css +97 -0
  20. package/dist/styles/styles/global.css +8 -0
  21. package/dist/utilities/icons.d.ts +1 -0
  22. package/dist/utilities/icons.js +6 -1
  23. package/dist/utilities/icons.js.map +1 -1
  24. package/docs/App.tsx +109 -8
  25. package/package.json +1 -1
  26. package/src/AutoCompleteWithTabFilter.tsx +1244 -0
  27. package/src/AutoCompleteWithTreeStructure.tsx +4 -8
  28. package/src/ReactTextField.tsx +12 -4
  29. package/src/commontypes.ts +14 -1
  30. package/src/dropdownFilterTabs.tsx +1002 -0
  31. package/src/index.tsx +1 -0
  32. package/src/styles/components/selectedautocomplete.css +11 -0
  33. package/src/utilities/icons.tsx +10 -0
@@ -0,0 +1,179 @@
1
+ .qbs-flex {
2
+ display: flex;
3
+ }
4
+ .qbs-flex-wrap {
5
+ flex-wrap: wrap;
6
+ }
7
+ .qbs-w-full {
8
+ width: 100%;
9
+ }
10
+ .qbs-mb-2 {
11
+ margin-bottom: 0.5rem;
12
+ }
13
+ .-qbs-mt-2 {
14
+ margin-top: -0.5rem;
15
+ }
16
+ .qbs-flex-1 {
17
+ flex: 1 1 0%;
18
+ }
19
+ .qbs-inline-block {
20
+ display: inline-block;
21
+ }
22
+ .qbs-text-sm {
23
+ font-size: 0.875rem;
24
+ }
25
+ .qbs-cursor-pointer {
26
+ cursor: pointer;
27
+ }
28
+ .qbs-text-center {
29
+ text-align: center;
30
+ }
31
+ .qbs-p-1 {
32
+ padding: 0.25rem;
33
+ }
34
+ .qbs-border-b-2 {
35
+ border-bottom-width: 2px;
36
+ }
37
+ .qbs-tab-item {
38
+ color: #4b5563;
39
+ border-color: #d1d5db;
40
+ }
41
+ .qbs-tab-item:hover {
42
+ color: #2563eb;
43
+ }
44
+ .qbs-tab-active-item {
45
+ color: #2563eb;
46
+ border-color: #2563eb;
47
+ }
48
+ .qbs-relative {
49
+ position: relative;
50
+ }
51
+ .qbs-gap-1 {
52
+ gap: 0.25rem;
53
+ }
54
+ .qbs-rounded-full {
55
+ border-radius: 9999px;
56
+ }
57
+ .qbs-text-xs {
58
+ font-size: 0.75rem;
59
+ }
60
+ .qbs-inline-flex {
61
+ display: inline-flex;
62
+ }
63
+ .qbs-items-center {
64
+ align-items: center;
65
+ }
66
+ .qbs-justify-center {
67
+ justify-content: center;
68
+ }
69
+ .qbs-px-2 {
70
+ padding-left: 0.5rem;
71
+ padding-right: 0.5rem;
72
+ }
73
+ .qbs-py-1 {
74
+ padding-top: 0.25rem;
75
+ padding-bottom: 0.25rem;
76
+ }
77
+ .qbs-leading-none {
78
+ line-height: 1;
79
+ }
80
+ .qbs-min-w-6 {
81
+ min-width: 1.5rem;
82
+ }
83
+ .qbs-min-h-6 {
84
+ min-height: 1.5rem;
85
+ }
86
+ .qbs-align-middle {
87
+ vertical-align: middle;
88
+ }
89
+ .qbs-min-emp-h {
90
+ min-height: 183px;
91
+ padding-top: 80px;
92
+ padding-bottom: 80px;
93
+ }
94
+ .qbs-flex-grow {
95
+ flex-grow: 1;
96
+ }
97
+ .qbs-text-right {
98
+ text-align: right;
99
+ }
100
+ .qbs-readmore-collapse {
101
+ cursor: pointer;
102
+ width: 100%;
103
+ text-align: center;
104
+ display: flex;
105
+ justify-content: center;
106
+ margin-top: 5px;
107
+ }
108
+ .qbs-readmore-collapse div {
109
+ border-radius: 9999px;
110
+ min-width: 1.5rem;
111
+ min-height: 1.5rem;
112
+ padding: 5px;
113
+ }
114
+ .qbs-more-collapse:hover {
115
+ background-color: #d1d5db;
116
+ }
117
+ .qbs-hidden {
118
+ display: none;
119
+ }
120
+ .qbs-autocomplete-selected-suggestions {
121
+ padding: 8px 0px;
122
+ }
123
+ .qbs-autocomplete-selected-suggestions .qbs-autocomplete-suggestions-sub {
124
+ min-height: 184px;
125
+ }
126
+ .qbs-autocomplete-selected-suggestions .qbs-autocomplete-selected-suggestions-outer {
127
+ padding: 0px 8px;
128
+ }
129
+ .qbs-autocomplete-selected-suggestions .qbs-autocomplete-listitem-container{
130
+ padding-top: 0px;
131
+ padding-left: 4px;
132
+ padding-right: 4px;
133
+ }
134
+ .qbs-autocomplete-selected-suggestions .qbs-autocomplete-selected-suggestions-outer span.dropdown-search-icon {
135
+ left: 16px;
136
+ }
137
+ .qbs-autocomplete-selected-suggestions .qbs-autocomplete-selected-suggestions-outer .qbs-all-dropdown-btn {
138
+ right: 16px;
139
+ }
140
+ .selected-items-outer-container {
141
+ display: flex;
142
+ gap: 5px;
143
+ flex-wrap: wrap;
144
+ overflow-x: auto;
145
+ transition: height 3s ease-in-out, opacity 3s ease-in-out,
146
+ padding 1s ease-in-out;
147
+ }
148
+ .qbs-bottom-0{
149
+ bottom: 0;
150
+ }
151
+ .qbs-select-all-link{
152
+ border-bottom: 1px solid var(--border-card-color-default, #d6d8dc);
153
+ padding: 0px 8px;
154
+ }
155
+ .qbs-select-all-link .qbs-autocomplete-suggestions-item {
156
+ margin-top: 5px;
157
+ }
158
+
159
+ .qbs-select-all-link .qbs-autocomplete-checkbox-container:hover,
160
+ .qbs-select-all-link .qbs-autocomplete-checkbox-container.is-selected,
161
+ .qbs-select-all-link .qbs-autocomplete-suggestions-item:hover
162
+ {
163
+ background: #fff;
164
+ border-radius: 0px;
165
+ }
166
+ .qbs-select-all-link .qbs-autocomplete-listitem-container:hover {
167
+ background-color:#fff !important;
168
+ }
169
+
170
+ .has-selected-items {
171
+ color: #FF681D !important;
172
+ }
173
+
174
+ .tools-drop-btn-active {
175
+ color: #FF681D !important;
176
+ }
177
+ .qbs-tab-has-selected-items .qbs-tab-item{
178
+ color: #FF681D !important;
179
+ }
@@ -0,0 +1,497 @@
1
+ .tooltip-container {
2
+ position: relative;
3
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
4
+ }
5
+
6
+ .bottom {
7
+ .tooltip {
8
+ position: absolute;
9
+ bottom: -40;
10
+ right: 3px;
11
+ transform: translateX(0%);
12
+ padding: 0.3em 0.6em;
13
+ opacity: 0;
14
+ width: max-content;
15
+ max-width: 100%;
16
+ z-index: 999;
17
+ font-size: 12px;
18
+ color: #fff !important;
19
+ pointer-events: none;
20
+ transition: all 0.3s;
21
+ border: 1px solid #e55353;
22
+ background-color: #e55353;
23
+ border-radius: 6px;
24
+ color: rgb(34, 34, 34);
25
+
26
+ &.info {
27
+ color: #ffffff !important;
28
+ border: 1px solid #ffffff;
29
+ background-color: #000000;
30
+ right: 1px;
31
+ top: 5px;
32
+ }
33
+
34
+ &.card {
35
+ color: #ffffff !important;
36
+ border: 1px solid #ffffff;
37
+ background-color: #000000;
38
+ right: -8px;
39
+ top: 5px;
40
+ }
41
+ }
42
+
43
+ .tooltip::before {
44
+ position: absolute;
45
+ content: "";
46
+ height: 0.6em;
47
+ width: 0.6em;
48
+ right: 20px;
49
+ z-index: 999;
50
+ top: -4px;
51
+ border: 1px solid #e55353;
52
+ border-right: none;
53
+ border-bottom: none;
54
+ transform: translate(50%) rotate(45deg);
55
+ background-color: #e55353;
56
+ }
57
+
58
+ .info.tooltip::before {
59
+ border: 1px solid #000000;
60
+ background-color: #000000;
61
+ right: 14px;
62
+ position: absolute;
63
+ content: "";
64
+ height: 0.6em;
65
+ width: 0.6em;
66
+ z-index: 999;
67
+ top: -4px;
68
+ border-right: none;
69
+ border-bottom: none;
70
+ transform: translate(50%) rotate(45deg);
71
+ }
72
+
73
+ .card.tooltip::before {
74
+ border: 1px solid #000000;
75
+ background-color: #000000;
76
+ right: 14px;
77
+ position: absolute;
78
+ content: "";
79
+ height: 0.6em;
80
+ width: 0.6em;
81
+ z-index: 999;
82
+ top: -3px;
83
+ border-right: none;
84
+ border-bottom: none;
85
+ transform: translate(50%) rotate(45deg);
86
+ }
87
+
88
+ .tooltip-container:hover .tooltip {
89
+ top: 46px;
90
+ opacity: 1;
91
+ visibility: visible;
92
+ z-index: 999;
93
+ pointer-events: auto;
94
+
95
+ &.info {
96
+ top: 30px;
97
+ max-width: 500px;
98
+ position: absolute;
99
+ }
100
+
101
+ &.card {
102
+ top: 20px;
103
+ max-width: 300px;
104
+ position: absolute;
105
+ }
106
+ }
107
+ .tooltip-info {
108
+ position: absolute;
109
+ bottom: -40;
110
+ right: 3px;
111
+ transform: translateX(0%);
112
+ padding: 0.3em 0.6em;
113
+ opacity: 0;
114
+ width: max-content;
115
+ max-width: 100%;
116
+ z-index: 999;
117
+ top: 46px;
118
+ font-size: 12px;
119
+ color: #fff !important;
120
+ pointer-events: none;
121
+ transition: all 0.3s;
122
+ border: 1px solid #475467;
123
+ background-color: #475467;
124
+ border-radius: 6px;
125
+ }
126
+ .tooltip-info::before {
127
+ position: absolute;
128
+ content: "";
129
+ height: 0.6em;
130
+ width: 0.6em;
131
+ right: 20px;
132
+ z-index: 999;
133
+ top: -4px;
134
+ border: 1px solid #475467;
135
+ border-right: none;
136
+ border-bottom: none;
137
+ transform: translate(50%) rotate(45deg);
138
+ background-color: #475467;
139
+ }
140
+
141
+ .tooltip-container:hover .tooltip-info {
142
+ top: 46px;
143
+ opacity: 1;
144
+ visibility: visible;
145
+ z-index: 999;
146
+ pointer-events: auto;
147
+ }
148
+ }
149
+ .top-tool {
150
+ .tooltip {
151
+ position: absolute;
152
+ bottom: 45px !important;
153
+ left: 0;
154
+ top: auto !important;
155
+ transform: translateX(0%);
156
+ padding: 0.3em 0.6em;
157
+ opacity: 0;
158
+ width: max-content;
159
+ white-space: normal;
160
+ z-index: 999;
161
+ font-size: 12px;
162
+ max-width: 100%;
163
+ color: #ff681d !important;
164
+ pointer-events: none;
165
+ transition: all 0.3s;
166
+ border: 1px solid #ff681d;
167
+ background-color: #fff;
168
+ border-radius: 6px;
169
+ color: rgb(34, 34, 34);
170
+ }
171
+
172
+ .tooltip::before {
173
+ position: absolute;
174
+ content: "";
175
+ height: 0.6em;
176
+ width: 0.6em;
177
+ z-index: 999;
178
+ bottom: -4px;
179
+ border: 1px solid #ff681d;
180
+ border-left: none;
181
+ border-top: none;
182
+ transform: translate(50%) rotate(45deg);
183
+ background-color: #fff;
184
+ }
185
+
186
+ .tooltip-container:hover .tooltip {
187
+ bottom: 45px !important;
188
+ opacity: 1;
189
+ top: auto !important;
190
+ visibility: visible;
191
+ z-index: 999;
192
+ pointer-events: auto;
193
+ }
194
+ }
195
+ .bottom-tool {
196
+ .tooltip {
197
+ position: absolute;
198
+ bottom: -40;
199
+ transform: translateX(0%);
200
+ padding: 0.3em 0.6em;
201
+ opacity: 0;
202
+ width: max-content;
203
+ max-width: 100%;
204
+ z-index: 999;
205
+ font-size: 12px;
206
+ color: #ff681d !important;
207
+ white-space: wrap;
208
+ pointer-events: none;
209
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
210
+ border: 1px solid #ff681d;
211
+ background-color: #fff;
212
+ border-radius: 6px;
213
+ color: rgb(34, 34, 34);
214
+ }
215
+
216
+ .tooltip::before {
217
+ position: absolute;
218
+ content: "";
219
+ height: 0.6em;
220
+ width: 0.6em;
221
+ z-index: 999;
222
+ top: -4px;
223
+ border: 1px solid #ff681d;
224
+ border-right: none;
225
+ border-bottom: none;
226
+ transform: translate(50%) rotate(45deg);
227
+ background-color: #fff;
228
+ }
229
+
230
+ .tooltip-container:hover .tooltip {
231
+ top: 46px;
232
+ opacity: 1;
233
+ visibility: visible;
234
+ z-index: 999;
235
+ pointer-events: auto;
236
+ }
237
+ }
238
+
239
+ .right {
240
+ .tooltip {
241
+ position: absolute;
242
+ top: 2.5px;
243
+ left: calc(100% + 9px);
244
+ transform: translateX(0%);
245
+ padding: 8px;
246
+ opacity: 0;
247
+ min-width: 200px;
248
+ max-width: 200px;
249
+ min-height: calc(100% - 16px);
250
+ height: auto;
251
+ z-index: 999;
252
+ font-size: 12px;
253
+ color: #fff !important;
254
+ pointer-events: none;
255
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
256
+ border: 1px solid #e55353;
257
+ background-color: #e55353;
258
+ border-radius: 6px;
259
+ color: rgb(34, 34, 34);
260
+ }
261
+
262
+ .tooltip-card {
263
+ padding: 3px 10px 4px;
264
+ top: -4px;
265
+ min-width: 175px;
266
+ background-color: #3d414a;
267
+ border: 1px solid #3d414a;
268
+ }
269
+
270
+ .tooltip::before {
271
+ position: absolute;
272
+ content: "";
273
+ height: 0.6em;
274
+ width: 0.6em;
275
+ left: -8px;
276
+ top: 14px;
277
+ z-index: 999;
278
+ transform: translateY(10px);
279
+ border: 1px solid #e55353;
280
+ border-top: none;
281
+ border-right: none;
282
+ transform: translate(50%) rotate(45deg);
283
+ background-color: #e55353;
284
+ }
285
+
286
+ .tooltip-card::before {
287
+ top: 8px;
288
+ background-color: #3d414a;
289
+ border: 1px solid #3d414a;
290
+ }
291
+
292
+ .tooltip-container:hover {
293
+ .tooltip {
294
+ top: 2.5px;
295
+ opacity: 1;
296
+ visibility: visible;
297
+ z-index: 999;
298
+ pointer-events: auto;
299
+ }
300
+
301
+ .tooltip-card {
302
+ top: -4px;
303
+ }
304
+ }
305
+ }
306
+
307
+ .left {
308
+ .tooltip {
309
+ position: absolute;
310
+ top: 2.5px;
311
+ right: calc(100% + 9px);
312
+ transform: translateX(0%);
313
+ padding: 8px;
314
+ opacity: 0;
315
+ min-width: 200px;
316
+ max-width: 200px;
317
+ min-height: calc(100% - 16px);
318
+ z-index: 999;
319
+ font-size: 12px;
320
+ color: #fff !important;
321
+ pointer-events: none;
322
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
323
+ border: 1px solid #e55353;
324
+ background-color: #e55353;
325
+ border-radius: 6px;
326
+ color: rgb(34, 34, 34);
327
+ }
328
+
329
+ .tooltip::before {
330
+ position: absolute;
331
+ content: "";
332
+ height: 0.6em;
333
+ width: 0.6em;
334
+ right: 0px;
335
+ top: 14px;
336
+ z-index: 999;
337
+ transform: translateY(10px);
338
+ border: 1px solid #e55353;
339
+ border-bottom: none;
340
+ border-left: none;
341
+ transform: translate(50%) rotate(45deg);
342
+ background-color: #e55353;
343
+ }
344
+
345
+ .tooltip-container:hover .tooltip {
346
+ top: 2.5px;
347
+ opacity: 1;
348
+ visibility: visible;
349
+ z-index: 999;
350
+ pointer-events: auto;
351
+ }
352
+ }
353
+
354
+ .top {
355
+ .tooltip-info {
356
+ position: absolute;
357
+ top: -40;
358
+ left: 0;
359
+ transform: translateX(0%);
360
+ padding: 0.3em 0.6em;
361
+ opacity: 0;
362
+ width: 100%;
363
+ z-index: 999;
364
+ font-size: 12px;
365
+ color: #fff !important;
366
+ pointer-events: none;
367
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
368
+ border: 1px solid #475467;
369
+ background-color: #475467;
370
+ border-radius: 6px;
371
+ }
372
+
373
+ .tooltip-info::before {
374
+ position: absolute;
375
+ content: "";
376
+ height: 0.6em;
377
+ width: 0.6em;
378
+ right: 20px;
379
+ z-index: 999;
380
+ bottom: -4px;
381
+ border: 1px solid #475467;
382
+ border-left: none;
383
+ border-top: none;
384
+ transform: translate(50%) rotate(45deg);
385
+ background-color: #475467;
386
+ }
387
+
388
+ .tooltip-container:hover .tooltip-info {
389
+ top: -40px;
390
+ opacity: 1;
391
+ visibility: visible;
392
+ z-index: 999;
393
+ pointer-events: auto;
394
+ }
395
+ .tooltip {
396
+ position: absolute;
397
+ top: -40;
398
+ left: 0;
399
+ transform: translateX(0%);
400
+ padding: 0.3em 0.6em;
401
+ opacity: 0;
402
+ width: 100%;
403
+ z-index: 999;
404
+ font-size: 12px;
405
+ color: #fff !important;
406
+ pointer-events: none;
407
+ transition: background-color 0.3s, width 0.3s, height 0.3s, color 0.3s;
408
+ border: 1px solid #e55353;
409
+ background-color: #e55353;
410
+ border-radius: 6px;
411
+ color: rgb(34, 34, 34);
412
+ }
413
+
414
+ .tooltip::before {
415
+ position: absolute;
416
+ content: "";
417
+ height: 0.6em;
418
+ width: 0.6em;
419
+ right: 20px;
420
+ z-index: 999;
421
+ bottom: -4px;
422
+ border: 1px solid #e55353;
423
+ border-left: none;
424
+ border-top: none;
425
+ transform: translate(50%) rotate(45deg);
426
+ background-color: #e55353;
427
+ }
428
+
429
+ .tooltip-container:hover .tooltip {
430
+ top: -40px;
431
+ opacity: 1;
432
+ visibility: visible;
433
+ z-index: 999;
434
+ pointer-events: auto;
435
+ }
436
+ }
437
+
438
+ .custom-tooltip-container {
439
+ position: relative;
440
+ display: inline-block;
441
+ }
442
+
443
+ .custom-text {
444
+ font-size: 18px;
445
+ cursor: pointer;
446
+ }
447
+
448
+ .custom-tooltip {
449
+ position: absolute;
450
+ top: 100%;
451
+ left: 20%;
452
+ opacity: 0;
453
+ visibility: hidden;
454
+ font-size: 12px;
455
+ background: #deefff;
456
+ border-color: #bee0ff;
457
+ padding: 5px;
458
+ align-items: center;
459
+ transition: opacity 0.3s, visibility 0.3s, top 0.3s, background 0.3s;
460
+ z-index: 1;
461
+ }
462
+
463
+ .custom-tooltip::before {
464
+ content: "";
465
+ position: absolute;
466
+ bottom: 100%;
467
+ left: 20%;
468
+ /* Center the arrow */
469
+ border-width: 9px;
470
+ /* Slightly larger to act as border */
471
+ border-style: solid;
472
+ border-color: transparent transparent #bee0ff transparent;
473
+ /* Border color */
474
+ transform: translateX(-20%);
475
+ z-index: -1;
476
+ /* Ensure it's behind the ::after pseudo-element */
477
+ }
478
+
479
+ .custom-tooltip::after {
480
+ content: "";
481
+ position: absolute;
482
+ bottom: 100%;
483
+ left: 20%;
484
+ border-width: 8px;
485
+ border-style: solid;
486
+ border-color: transparent transparent #deefff transparent;
487
+ transform: translateX(-20%);
488
+ z-index: 1;
489
+ }
490
+
491
+ .custom-tooltip-container:hover .custom-tooltip {
492
+ top: 100%;
493
+ opacity: 1;
494
+ visibility: visible;
495
+ background: #deefff;
496
+ transform: translate(-20%, 10px);
497
+ }