react-core-ts 1.0.27 → 1.0.29

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.
@@ -21,13 +21,13 @@ var TreeNode = function (_a) {
21
21
  react_1.default.createElement("div", { style: { display: 'flex' }, className: "qbs-items-start qbs-gap-4 qbs-flex-row ".concat(((_b = node === null || node === void 0 ? void 0 : node.children) === null || _b === void 0 ? void 0 : _b.length) > 0 ? '' : 'ml-5') },
22
22
  (node === null || node === void 0 ? void 0 : node.children) && ((_c = node === null || node === void 0 ? void 0 : node.children) === null || _c === void 0 ? void 0 : _c.length) > 0 && (react_1.default.createElement("span", { onClick: function () { return handleToggle(node); }, className: "qbs-mt-1 qbs-cursor-pointer qbs-py-2 ".concat(node.expanded ? ' qbs-rotate-90' : '') },
23
23
  react_1.default.createElement(Icons_1.DropSideIcon, null))),
24
- react_1.default.createElement("div", { className: "qbs-flex qbs-gap-2 qbs-p-2 qbs-flex-row" },
24
+ react_1.default.createElement("div", { className: "qbs-flex qbs-gap-2 qbs-p-2 qbs-flex-row ".concat((node === null || node === void 0 ? void 0 : node.checked) ? 'qbs-bg-slected_node/20' : '') },
25
25
  (isMultiple || singleSelect) && (react_1.default.createElement("div", { className: "qbs-autocomplete-checkbox" },
26
26
  react_1.default.createElement("input", { onChange: function (e) { return handleCheckbox(e, node); }, type: "checkbox", checked: node.checked, id: "qbs-checkbox-".concat(idx.toString()) }),
27
27
  react_1.default.createElement("label", { htmlFor: "qbs-checkbox-".concat(idx.toString()) },
28
28
  react_1.default.createElement("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
29
29
  react_1.default.createElement("path", { d: "M0 3.21739L2.89883 6L8 1.06994L6.89494 0L2.89883 3.86768L1.09728 2.14745L0 3.21739Z", fill: "white" }))))),
30
- react_1.default.createElement("span", { className: " qbs-leading-[18px]" }, node[desc])))),
30
+ react_1.default.createElement("span", { className: " qbs-leading-[18px] qbs-text-sm" }, node[desc])))),
31
31
  children));
32
32
  };
33
33
  exports.default = TreeNode;
@@ -1 +1 @@
1
- {"version":3,"file":"TreeNode.js","sourceRoot":"","sources":["../../src/components/TreeNode.tsx"],"names":[],"mappings":";;;;;AAAA,gDAA0B;AAE1B,iCAAuC;AAEvC,IAAM,QAAQ,GAAkB,UAAC,EAUhC;;QATC,IAAI,UAAA,EACJ,UAAU,gBAAA,EACV,YAAY,kBAAA,EACZ,GAAG,SAAA,EACH,IAAI,UAAA,EACJ,YAAY,kBAAA,EACZ,UAAU,gBAAA,EACV,QAAQ,cAAA,EACR,MAAM,YAAA;IAEN,sDAAsD;IACtD,IAAM,YAAY,GAAG,UAAC,IAAU;QAC9B,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC;IAEF,IAAM,cAAc,GAAG,UAAC,CAAM,EAAE,QAAa;QACnC,IAAA,OAAO,GAAK,CAAC,CAAC,MAAM,QAAb,CAAc;QAC7B,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC,CAAC;IACF,OAAO,CACL;QACE,sCAAI,SAAS,EAAC,wBAAwB;YACpC,uCACE,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAC1B,SAAS,EAAE,iDACT,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,0CAAE,MAAM,IAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CACxC;gBAID,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,KAAI,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,QAAQ,0CAAE,MAAM,IAAG,CAAC,IAAI,CAC/C,wCACE,OAAO,EAAE,cAAM,OAAA,YAAY,CAAC,IAAI,CAAC,EAAlB,CAAkB,EACjC,SAAS,EAAE,+CACT,IAAI,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EACxC,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,EAAE,EAAE,uBAAgB,GAAG,CAAC,QAAQ,EAAE,CAAE,GACpC;wBACF,yCAAO,OAAO,EAAE,uBAAgB,GAAG,CAAC,QAAQ,EAAE,CAAE;4BAC9C,uCACE,KAAK,EAAC,GAAG,EACT,MAAM,EAAC,GAAG,EACV,OAAO,EAAC,SAAS,EACjB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;gCAElC,wCACE,CAAC,EAAC,qFAAqF,EACvF,IAAI,EAAC,OAAO,GACZ,CACE,CACA,CACJ,CACP;oBACD,wCAAM,SAAS,EAAC,iCAAiC,IAC9C,IAAI,CAAC,IAAI,CAAC,CACN,CACH,CACF,CACH;QAEJ,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,585 @@
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
+ }
@@ -0,0 +1,5 @@
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ @import './components/autocomplete.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-core-ts",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "React Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,7 +43,11 @@ const TreeNode: React.FC<any> = ({
43
43
  <DropSideIcon />
44
44
  </span>
45
45
  )}
46
- <div className="qbs-flex qbs-gap-2 qbs-p-2 qbs-flex-row">
46
+ <div
47
+ className={`qbs-flex qbs-gap-2 qbs-p-2 qbs-flex-row ${
48
+ node?.checked ? 'qbs-bg-slected_node/20' : ''
49
+ }`}
50
+ >
47
51
  {(isMultiple || singleSelect) && (
48
52
  <div className="qbs-autocomplete-checkbox">
49
53
  <input
@@ -68,7 +72,9 @@ const TreeNode: React.FC<any> = ({
68
72
  </label>
69
73
  </div>
70
74
  )}
71
- <span className=" qbs-leading-[18px]">{node[desc]}</span>
75
+ <span className=" qbs-leading-[18px] qbs-text-sm">
76
+ {node[desc]}
77
+ </span>
72
78
  </div>
73
79
  </div>
74
80
  </li>
@@ -1,6 +1,6 @@
1
1
  /** @type {import('tailwindcss').Config} */
2
2
  module.exports = {
3
- content: [],
3
+ content: ['./src/**/*.{js,jsx,ts,tsx}', './docs/**/*.{html,js}'], // Ensure this includes all relevant paths
4
4
  prefix: 'qbs-',
5
5
  purge: ['./src/**/*.{js,jsx,ts,tsx}', './docs/**/*.{html,js}'],
6
6
  theme: {
@@ -9,6 +9,7 @@ module.exports = {
9
9
  'blue-navy': '#001f3f',
10
10
  'table-hover': '#f8f8f8',
11
11
  'neutrals-grey-20': '#f4f4f4',
12
+ slected_node: '#8dc1f0',
12
13
  },
13
14
  },
14
15
  },