react-core-ts 1.0.15 → 1.0.16

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.
@@ -205,7 +205,7 @@ body * {
205
205
  overflow: hidden;
206
206
  }
207
207
  .qbs-expandable-container .qbs-textfield-expandable::after {
208
- content: attr(data-value) " ";
208
+ content: attr(data-value) ' ';
209
209
  visibility: hidden;
210
210
  white-space: pre;
211
211
  grid-area: 1 / 2;
@@ -218,7 +218,7 @@ body * {
218
218
  }
219
219
  .qbs-expandable-container .qbs-textfield-expandable input {
220
220
  opacity: 1;
221
- width: 100%;
221
+ width: auto;
222
222
  grid-area: 1 / 2;
223
223
  min-width: 10px;
224
224
  border: 0px;
@@ -522,7 +522,8 @@ span.dropdown-search-icon {
522
522
  cursor: pointer;
523
523
  }
524
524
 
525
- .qbs-table-tooltip .tooltiptext, .tooltiptext {
525
+ .qbs-table-tooltip .tooltiptext,
526
+ .tooltiptext {
526
527
  visibility: hidden;
527
528
  background-color: #000;
528
529
  color: #fff;
@@ -556,21 +557,24 @@ span.dropdown-search-icon {
556
557
  opacity: 1;
557
558
  }
558
559
 
559
- .qbs-table-tooltip .tooltiptext::after, .tooltiptext::after {
560
- content: "";
560
+ .qbs-table-tooltip .tooltiptext::after,
561
+ .tooltiptext::after {
562
+ content: '';
561
563
  position: absolute;
562
564
  border-width: 5px;
563
565
  border-style: solid;
564
566
  }
565
567
 
566
- .qbs-table-tooltip.up .tooltiptext::after, .up.tooltiptext::after {
568
+ .qbs-table-tooltip.up .tooltiptext::after,
569
+ .up.tooltiptext::after {
567
570
  top: 100%;
568
571
  left: 50%;
569
572
  margin-left: -5px;
570
573
  border-color: #000 transparent transparent transparent;
571
574
  }
572
575
 
573
- .qbs-table-tooltip.down .tooltiptext::after, .down.tooltiptext::after {
576
+ .qbs-table-tooltip.down .tooltiptext::after,
577
+ .down.tooltiptext::after {
574
578
  bottom: 100%;
575
579
  left: 50%;
576
580
  margin-left: -5px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-core-ts",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "React Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,582 +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
- .labels {
259
- font-size: 12px;
260
- }
261
- .dropdown-search-input {
262
- min-width: -webkit-fill-available;
263
- border-radius: 6px;
264
- border: 1px solid var(--border-card-color-default, #d6d8dc);
265
- background: var(--surface-input-bg-color-default, #fff);
266
- color: #313131;
267
- font-size: 14px;
268
- height: 36px;
269
- padding: 0px 8px;
270
- font-style: normal;
271
- font-weight: 500;
272
- line-height: 20px;
273
- padding-left: 32px;
274
- }
275
- .qbs-autocomplete-suggestions-sub {
276
- position: relative;
277
- overflow: auto;
278
- max-height: 192px;
279
- top: 0;
280
- display: flex;
281
- flex-direction: column;
282
- gap: 4px;
283
- }
284
- .qbs-autocomplete-listitem-container {
285
- display: flex;
286
- align-items: center;
287
- gap: 0px;
288
- }
289
- ul {
290
- list-style-type: none;
291
- }
292
-
293
- .react-core-ts-search-container {
294
- display: flex;
295
- align-items: center;
296
- gap: var(--spacing-4, 4px);
297
- align-self: stretch;
298
- margin-bottom: 4px;
299
- }
300
- .selected-item {
301
- display: flex;
302
- align-items: center;
303
- justify-content: space-between;
304
- padding: 3px 6px;
305
- margin: 0;
306
- background-color: #e0e0e0;
307
- color: #333;
308
- border-radius: 6px;
309
- border: 1px solid rgba(231, 100, 88, 0.1);
310
- background: rgba(231, 100, 88, 0.1);
311
- font-size: 12px;
312
- font-style: normal;
313
- font-weight: 500;
314
- line-height: 16px;
315
- color: #e76458;
316
- gap: 6px;
317
- height: 22px;
318
- }
319
-
320
- .remove-item-btn {
321
- background-color: transparent;
322
- border: none;
323
- color: #e76458;
324
- cursor: pointer;
325
- }
326
-
327
- .remove-item-btn:hover {
328
- color: #e76458;
329
- }
330
-
331
- .selected-items-container {
332
- display: flex;
333
- gap: 12px;
334
- align-items: center;
335
- position: absolute;
336
- left: 8px;
337
- z-index: 99;
338
- top: 6.5px;
339
- flex-wrap: wrap;
340
- }
341
-
342
- .qbs-expandable-container .selected-items-container {
343
- position: relative;
344
- top: 0;
345
- left: 0;
346
- }
347
-
348
- .selected-item-more {
349
- display: flex;
350
- align-items: center;
351
- justify-content: center;
352
- padding: 3px 8px;
353
- margin: 0;
354
- border-radius: 6px;
355
- background: #c63a3a;
356
- font-size: 12px;
357
- font-style: normal;
358
- font-weight: 500;
359
- line-height: 16px;
360
- color: #fff;
361
- height: 22px;
362
- }
363
-
364
- .loadMoreSection {
365
- margin: 0;
366
- cursor: pointer;
367
- display: flex;
368
- justify-content: flex-start;
369
- padding: 8px;
370
- }
371
- .loadMoreSection p {
372
- color: #336cfc;
373
- font-size: 14px;
374
- font-style: normal;
375
- font-weight: 500;
376
- line-height: 20px;
377
- margin: 0;
378
- }
379
- ::-webkit-scrollbar-track {
380
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
381
- border-radius: 0px;
382
- background-color: transparent;
383
- }
384
-
385
- ::-webkit-scrollbar {
386
- width: 6px;
387
- height: 4px;
388
- background-color: transparent;
389
- }
390
-
391
- ::-webkit-scrollbar-thumb {
392
- border-radius: 100px;
393
- -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
394
- background-color: #ddd;
395
- }
396
-
397
- .qbs-autocomplete-suggestions-item.is-selected {
398
- color: #e76458;
399
- background: #f8f8f8;
400
- }
401
-
402
- span.dropdown-search-icon {
403
- position: absolute;
404
- left: 8px;
405
- top: 10px;
406
- }
407
-
408
- .dropdown-search-input:focus {
409
- outline: none;
410
- border: 1px solid #222;
411
- }
412
-
413
- .qbs-autocomplete-checkbox-container {
414
- gap: 8px;
415
- padding: 6px 8px;
416
- display: flex;
417
- align-items: flex-start;
418
- }
419
-
420
- .qbs-autocomplete-checkbox-container .qbs-autocomplete-suggestions-item {
421
- padding: 0;
422
- pointer-events: none;
423
- }
424
-
425
- .qbs-autocomplete-checkbox-container:hover {
426
- background: #f8f8f8;
427
- border-radius: 6px;
428
- }
429
-
430
- .qbs-autocomplete-checkbox-container.is-selected {
431
- background: #f8f8f8;
432
- border-radius: 6px;
433
- }
434
-
435
- .qbs-autocomplete-checkbox {
436
- position: relative;
437
- display: flex;
438
- align-items: center;
439
- justify-content: center;
440
- }
441
-
442
- .qbs-autocomplete-checkbox input {
443
- opacity: 0;
444
- }
445
-
446
- .qbs-autocomplete-checkbox input ~ label {
447
- position: absolute;
448
- border-radius: 3px;
449
- border: 1px solid #999696;
450
- width: 16px;
451
- height: 16px;
452
- top: 3px;
453
- transition: all 0.2s ease;
454
- cursor: pointer;
455
- }
456
-
457
- .qbs-autocomplete-checkbox input ~ label svg {
458
- opacity: 0;
459
- transition: all 0.2s ease;
460
- position: absolute;
461
- left: 3px;
462
- top: 3px;
463
- width: 9px;
464
- height: 9px;
465
- }
466
-
467
- .qbs-autocomplete-checkbox input:checked ~ label {
468
- transition: all 0.2s ease;
469
- border-radius: 3px;
470
- background: #e76458;
471
- border-color: #e76458;
472
- }
473
- .qbs-autocomplete-checkbox input:checked ~ label svg {
474
- opacity: 1;
475
- transition: all 0.2s ease;
476
- }
477
-
478
- .action_label {
479
- font-size: 14px;
480
- color: #4c7ad6;
481
- }
482
- /* Tooltip.css */
483
- /* .tooltip-wrapper {
484
- position: relative;
485
- display: inline-block;
486
- }
487
-
488
- .tooltip-content {
489
- visibility: hidden;
490
- width: max-content;
491
- background-color: black;
492
- color: white;
493
- text-align: center;
494
- max-width: 150px;
495
- padding: 5px 10px;
496
- border-radius: 6px;
497
- position: absolute;
498
- z-index: 1;
499
- bottom: 125%;
500
- left: 50%;
501
- transform: translateX(-50%);
502
- transition: visibility 0.2s ease-in-out;
503
- }
504
-
505
- .tooltip-content::after {
506
- content: '';
507
- position: absolute;
508
- top: 100%;
509
- left: 50%;
510
- margin-left: -5px;
511
- border-width: 5px;
512
- border-style: solid;
513
- border-color: black transparent transparent transparent;
514
- }
515
-
516
- .tooltip-wrapper:hover .tooltip-content {
517
- visibility: visible;
518
- } */
519
- .qbs-table-tooltip {
520
- position: relative;
521
- display: contents;
522
- cursor: pointer;
523
- }
524
-
525
- .qbs-table-tooltip .tooltiptext,
526
- .tooltiptext {
527
- visibility: hidden;
528
- background-color: #000;
529
- color: #fff;
530
- text-align: center;
531
- padding: 6px;
532
- border-radius: 4px;
533
- position: absolute;
534
- z-index: 9999;
535
- opacity: 0;
536
- transition: opacity 0.3s;
537
- font-size: 14px;
538
- font-style: normal;
539
- font-weight: 400;
540
- line-height: 16px;
541
- max-width: 300px;
542
- }
543
-
544
- .qbs-table-tooltip.up .tooltiptext {
545
- bottom: 125%;
546
- left: 0%;
547
- }
548
-
549
- .qbs-table-tooltip.down .tooltiptext {
550
- top: 125%;
551
- right: 0px;
552
- left: auto;
553
- }
554
-
555
- .qbs-table-tooltip:hover .tooltiptext {
556
- visibility: visible;
557
- opacity: 1;
558
- }
559
-
560
- .qbs-table-tooltip .tooltiptext::after,
561
- .tooltiptext::after {
562
- content: '';
563
- position: absolute;
564
- border-width: 5px;
565
- border-style: solid;
566
- }
567
-
568
- .qbs-table-tooltip.up .tooltiptext::after,
569
- .up.tooltiptext::after {
570
- top: 100%;
571
- left: 50%;
572
- margin-left: -5px;
573
- border-color: #000 transparent transparent transparent;
574
- }
575
-
576
- .qbs-table-tooltip.down .tooltiptext::after,
577
- .down.tooltiptext::after {
578
- bottom: 100%;
579
- left: 50%;
580
- margin-left: -5px;
581
- border-color: transparent transparent #000 transparent;
582
- }
@@ -1 +0,0 @@
1
- @import './components/autocomplete.css';