react-core-ts 1.0.34 → 1.0.40

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.
@@ -3,4 +3,4 @@
3
3
  @tailwind utilities;
4
4
 
5
5
  @import './components/autocomplete.css';
6
- @import './components/treenode.css';
6
+ @import './components/treedropdown.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-core-ts",
3
- "version": "1.0.34",
3
+ "version": "1.0.40",
4
4
  "description": "React Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,585 +0,0 @@
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
- }
109
- .qbs-autocomplete-suggestions.bottom {
110
- top: 100%; /* Position below the input */
111
- /* Other styling */
112
- }
113
-
114
- .qbs-autocomplete-suggestions.top {
115
- bottom: 100%; /* Position above the input */
116
- /* Other styling */
117
- }
118
- .qbs-autocomplete-suggestions-item {
119
- cursor: pointer;
120
- padding: 6px 8px;
121
- border-radius: 6px;
122
- color: #222;
123
- font-size: 14px;
124
- font-weight: 500;
125
- line-height: 20px; /* 142.857% */
126
- width: 100%;
127
- display: flex;
128
- align-items: flex-start;
129
- gap: 8px;
130
- }
131
- .qbs-autocomplete-suggestions-item:hover {
132
- background: #f8f8f8;
133
- border-radius: 6px;
134
- }
135
-
136
- /* When value.id is equal to suggestion.id */
137
- .is-selected {
138
- border-radius: 6px;
139
- background: var(--neutrals-grey-20, #f4f4f4);
140
- }
141
-
142
- /* When value.id is NOT equal to suggestion.id */
143
- .qbs-autocomplete-suggestions-item .is-not-selected:hover {
144
- background-color: #f1f5f9; /* Replace with actual color code for 'hover:bg-table-hover' */
145
- }
146
-
147
- .qbs-autocomplete-notfound {
148
- cursor: pointer;
149
- padding: 6px 8px;
150
- border-radius: 6px;
151
- font-size: 12px;
152
- font-weight: 500;
153
- }
154
-
155
- .qbs-autocomplete-close-icon {
156
- position: absolute;
157
- top: calc(50% - 7px);
158
- right: 2px; /* right-1 */
159
- padding-left: 0.25rem; /* px-1 */
160
- padding-right: 0.25rem; /* px-1 */
161
- display: flex;
162
- justify-content: center;
163
- align-items: center;
164
- background-color: white; /* bg-white */
165
- }
166
- .qbs-textfield-default {
167
- width: 100%;
168
- position: relative;
169
- padding-right: 8px;
170
- min-height: 36px;
171
- height: 36px;
172
- border-radius: 6px;
173
- padding-left: 8px;
174
- border: 1px solid #d6d8dc;
175
- background: #fff;
176
- box-sizing: border-box;
177
- font-size: 14px;
178
- font-style: normal;
179
- font-weight: 500;
180
- line-height: 20px;
181
- color: #313131;
182
- }
183
-
184
- .qbs-expandable-container {
185
- border: 1px solid #d6d8dc;
186
- background: #fff;
187
- box-sizing: border-box;
188
- padding: 5px;
189
- display: flex;
190
- flex-wrap: wrap;
191
- flex: 1 1 0%;
192
- gap: 5px;
193
- }
194
-
195
- .qbs-textfield-default.expandable {
196
- height: auto;
197
- border: none;
198
- }
199
-
200
- .qbs-expandable-container .qbs-textfield-expandable {
201
- flex: 1 1 auto;
202
- display: inline-grid;
203
- grid-template-columns: 0px min-content;
204
- grid-area: 1 / 1 / 2 / 3;
205
- overflow: hidden;
206
- }
207
- .qbs-expandable-container .qbs-textfield-expandable::after {
208
- content: attr(data-value) ' ';
209
- visibility: hidden;
210
- white-space: pre;
211
- grid-area: 1 / 2;
212
- font: inherit;
213
- min-width: 2px;
214
- border: 0px;
215
- margin: 0px;
216
- outline: 0px;
217
- padding: 0px;
218
- }
219
- .qbs-expandable-container .qbs-textfield-expandable input {
220
- opacity: 1;
221
- width: auto;
222
- grid-area: 1 / 2;
223
- min-width: 10px;
224
- border: 0px;
225
- margin: 0px;
226
- outline: 0px;
227
- padding: 0px;
228
- height: auto;
229
- min-height: auto;
230
- border-radius: 0;
231
- }
232
-
233
- .qbs-textfield-default::placeholder {
234
- font-size: 14px;
235
- font-style: normal;
236
- font-weight: 500;
237
- line-height: 20px;
238
- }
239
-
240
- .qbs-autocomplete-close-icon button:focus-within {
241
- outline: none;
242
- }
243
-
244
- .fullWidth {
245
- width: 100%;
246
- }
247
-
248
- .autoWidth {
249
- width: auto;
250
- }
251
- .icon-button {
252
- background: transparent;
253
- border: none;
254
- display: inline-flex;
255
- cursor: pointer;
256
- padding: 0px 1px;
257
- }
258
- .icon-button-rotate{
259
- rotate: 180deg;
260
- }
261
- .labels {
262
- font-size: 12px;
263
- }
264
- .dropdown-search-input {
265
- min-width: -webkit-fill-available;
266
- border-radius: 6px;
267
- border: 1px solid var(--border-card-color-default, #d6d8dc);
268
- background: var(--surface-input-bg-color-default, #fff);
269
- color: #313131;
270
- font-size: 14px;
271
- height: 36px;
272
- padding: 0px 8px;
273
- font-style: normal;
274
- font-weight: 500;
275
- line-height: 20px;
276
- padding-left: 32px;
277
- }
278
- .qbs-autocomplete-suggestions-sub {
279
- position: relative;
280
- overflow: auto;
281
- max-height: 184px;
282
- top: 0;
283
- display: flex;
284
- flex-direction: column;
285
- gap: 4px;
286
- }
287
- .qbs-autocomplete-listitem-container {
288
- display: flex;
289
- align-items: center;
290
- gap: 0px;
291
- }
292
- ul {
293
- list-style-type: none;
294
- }
295
-
296
- .react-core-ts-search-container {
297
- display: flex;
298
- align-items: center;
299
- gap: var(--spacing-4, 4px);
300
- align-self: stretch;
301
- margin-bottom: 4px;
302
- }
303
- .selected-item {
304
- display: flex;
305
- align-items: center;
306
- justify-content: space-between;
307
- padding: 3px 6px;
308
- margin: 0;
309
- background-color: #e0e0e0;
310
- color: #333;
311
- border-radius: 6px;
312
- border: 1px solid rgba(231, 100, 88, 0.1);
313
- background: rgba(231, 100, 88, 0.1);
314
- font-size: 12px;
315
- font-style: normal;
316
- font-weight: 500;
317
- line-height: 16px;
318
- color: #e76458;
319
- gap: 6px;
320
- height: 22px;
321
- }
322
-
323
- .remove-item-btn {
324
- background-color: transparent;
325
- border: none;
326
- color: #e76458;
327
- cursor: pointer;
328
- }
329
-
330
- .remove-item-btn:hover {
331
- color: #e76458;
332
- }
333
-
334
- .selected-items-container {
335
- display: flex;
336
- gap: 12px;
337
- align-items: center;
338
- position: absolute;
339
- left: 8px;
340
- z-index: 99;
341
- top: 6.5px;
342
- flex-wrap: wrap;
343
- }
344
-
345
- .qbs-expandable-container .selected-items-container {
346
- position: relative;
347
- top: 0;
348
- left: 0;
349
- }
350
-
351
- .selected-item-more {
352
- display: flex;
353
- align-items: center;
354
- justify-content: center;
355
- padding: 3px 8px;
356
- margin: 0;
357
- border-radius: 6px;
358
- background: #c63a3a;
359
- font-size: 12px;
360
- font-style: normal;
361
- font-weight: 500;
362
- line-height: 16px;
363
- color: #fff;
364
- height: 22px;
365
- }
366
-
367
- .loadMoreSection {
368
- margin: 0;
369
- cursor: pointer;
370
- display: flex;
371
- justify-content: flex-start;
372
- padding: 8px;
373
- }
374
- .loadMoreSection p {
375
- color: #336cfc;
376
- font-size: 14px;
377
- font-style: normal;
378
- font-weight: 500;
379
- line-height: 20px;
380
- margin: 0;
381
- }
382
- ::-webkit-scrollbar-track {
383
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
384
- border-radius: 0px;
385
- background-color: transparent;
386
- }
387
-
388
- ::-webkit-scrollbar {
389
- width: 6px;
390
- height: 4px;
391
- background-color: transparent;
392
- }
393
-
394
- ::-webkit-scrollbar-thumb {
395
- border-radius: 100px;
396
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
397
- background-color: #ddd;
398
- }
399
-
400
- .qbs-autocomplete-suggestions-item.is-selected {
401
- color: #e76458;
402
- background: #f8f8f8;
403
- }
404
-
405
- span.dropdown-search-icon {
406
- position: absolute;
407
- left: 8px;
408
- top: 10px;
409
- }
410
-
411
- .dropdown-search-input:focus {
412
- outline: none;
413
- border: 1px solid #222;
414
- }
415
-
416
- .qbs-autocomplete-checkbox-container {
417
- gap: 8px;
418
- padding: 6px 8px;
419
- display: flex;
420
- align-items: flex-start;
421
- }
422
-
423
- .qbs-autocomplete-checkbox-container .qbs-autocomplete-suggestions-item {
424
- padding: 0;
425
- pointer-events: none;
426
- }
427
-
428
- .qbs-autocomplete-checkbox-container:hover {
429
- background: #f8f8f8;
430
- border-radius: 6px;
431
- }
432
-
433
- .qbs-autocomplete-checkbox-container.is-selected {
434
- background: #f8f8f8;
435
- border-radius: 6px;
436
- }
437
-
438
- .qbs-autocomplete-checkbox {
439
- position: relative;
440
- display: flex;
441
- align-items: center;
442
- justify-content: center;
443
- }
444
-
445
- .qbs-autocomplete-checkbox input {
446
- opacity: 0;
447
- }
448
-
449
- .qbs-autocomplete-checkbox input ~ label {
450
- position: absolute;
451
- border-radius: 3px;
452
- border: 1px solid #999696;
453
- width: 16px;
454
- height: 16px;
455
- top: 3px;
456
- transition: all 0.2s ease;
457
- cursor: pointer;
458
- }
459
-
460
- .qbs-autocomplete-checkbox input ~ label svg {
461
- opacity: 0;
462
- transition: all 0.2s ease;
463
- position: absolute;
464
- left: 3px;
465
- top: 3px;
466
- width: 9px;
467
- height: 9px;
468
- }
469
-
470
- .qbs-autocomplete-checkbox input:checked ~ label {
471
- transition: all 0.2s ease;
472
- border-radius: 3px;
473
- background: #e76458;
474
- border-color: #e76458;
475
- }
476
- .qbs-autocomplete-checkbox input:checked ~ label svg {
477
- opacity: 1;
478
- transition: all 0.2s ease;
479
- }
480
-
481
- .action_label {
482
- font-size: 14px;
483
- color: #4c7ad6;
484
- }
485
- /* Tooltip.css */
486
- /* .tooltip-wrapper {
487
- position: relative;
488
- display: inline-block;
489
- }
490
-
491
- .tooltip-content {
492
- visibility: hidden;
493
- width: max-content;
494
- background-color: black;
495
- color: white;
496
- text-align: center;
497
- max-width: 150px;
498
- padding: 5px 10px;
499
- border-radius: 6px;
500
- position: absolute;
501
- z-index: 1;
502
- bottom: 125%;
503
- left: 50%;
504
- transform: translateX(-50%);
505
- transition: visibility 0.2s ease-in-out;
506
- }
507
-
508
- .tooltip-content::after {
509
- content: '';
510
- position: absolute;
511
- top: 100%;
512
- left: 50%;
513
- margin-left: -5px;
514
- border-width: 5px;
515
- border-style: solid;
516
- border-color: black transparent transparent transparent;
517
- }
518
-
519
- .tooltip-wrapper:hover .tooltip-content {
520
- visibility: visible;
521
- } */
522
- .qbs-table-tooltip {
523
- position: relative;
524
- display: contents;
525
- cursor: pointer;
526
- }
527
-
528
- .qbs-table-tooltip .tooltiptext,
529
- .tooltiptext {
530
- visibility: hidden;
531
- background-color: #000;
532
- color: #fff;
533
- text-align: center;
534
- padding: 6px;
535
- border-radius: 4px;
536
- position: absolute;
537
- z-index: 9999;
538
- opacity: 0;
539
- transition: opacity 0.3s;
540
- font-size: 14px;
541
- font-style: normal;
542
- font-weight: 400;
543
- line-height: 16px;
544
- max-width: 300px;
545
- }
546
-
547
- .qbs-table-tooltip.up .tooltiptext {
548
- bottom: 125%;
549
- left: 0%;
550
- }
551
-
552
- .qbs-table-tooltip.down .tooltiptext {
553
- top: 125%;
554
- right: 0px;
555
- left: auto;
556
- }
557
-
558
- .qbs-table-tooltip:hover .tooltiptext {
559
- visibility: visible;
560
- opacity: 1;
561
- }
562
-
563
- .qbs-table-tooltip .tooltiptext::after,
564
- .tooltiptext::after {
565
- content: '';
566
- position: absolute;
567
- border-width: 5px;
568
- border-style: solid;
569
- }
570
-
571
- .qbs-table-tooltip.up .tooltiptext::after,
572
- .up.tooltiptext::after {
573
- top: 100%;
574
- left: 50%;
575
- margin-left: -5px;
576
- border-color: #000 transparent transparent transparent;
577
- }
578
-
579
- .qbs-table-tooltip.down .tooltiptext::after,
580
- .down.tooltiptext::after {
581
- bottom: 100%;
582
- left: 50%;
583
- margin-left: -5px;
584
- border-color: transparent transparent #000 transparent;
585
- }
@@ -1,47 +0,0 @@
1
- .qbs-tree-list-container {
2
- display: flex;
3
- flex-direction: column;
4
- }
5
- .qbs-tree-list-container {
6
- display: flex;
7
- flex-direction: row;
8
- align-items: flex-start;
9
- gap: 1rem; /* Corresponds to gap-4 in Tailwind */
10
- }
11
-
12
- .qbs-tree-list-container-sub .no-children {
13
- margin-left: 1.75rem; /* Corresponds to ml-7 in Tailwind */
14
- }
15
- .qbs-tree-list-container-sub-icon {
16
- margin-top: 0.25rem; /* Corresponds to mt-1 in Tailwind */
17
- cursor: pointer;
18
- padding-top: 0.5rem; /* Corresponds to py-2 in Tailwind */
19
- padding-bottom: 0.5rem;
20
- transition: transform 0.3s ease; /* Smooth rotation transition */
21
- }
22
-
23
- .qbs-tree-list-container-sub-icon.expanded {
24
- transform: rotate(90deg); /* Corresponds to rotate-90 in Tailwind */
25
- }
26
- .qbs-tree-list-container-sub-container {
27
- display: flex;
28
- gap: 0.5rem; /* Corresponds to gap-2 in Tailwind */
29
- padding: 0.5rem; /* Corresponds to p-2 in Tailwind */
30
- flex-direction: row; /* Corresponds to flex-row in Tailwind */
31
- width: 100%; /* Corresponds to w-full in Tailwind */
32
- }
33
-
34
- .qbs-tree-list-container-sub-container.checked {
35
- background: color #8dc1f0 / 20px; /* Custom background for 'slected_node/20' */
36
- }
37
- .qbs-tree-list-container-sub-text {
38
- line-height: 18px; /* Corresponds to leading-[18px] in Tailwind */
39
- font-size: 0.875rem; /* Corresponds to text-sm in Tailwind (14px) */
40
- }
41
- .qbs-tree-list-container-child {
42
- margin-left: 1rem; /* Corresponds to ml-4 in Tailwind */
43
- margin-top: 0.5rem; /* Corresponds to mt-2 in Tailwind */
44
- display: flex; /* Corresponds to flex in Tailwind */
45
- flex-direction: column; /* Corresponds to flex-col in Tailwind */
46
- gap: 0.5rem; /* Corresponds to gap-2 in Tailwind */
47
- }
@@ -1,6 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- @import './components/autocomplete.css';
6
- @import './components/treedropdown.css';