react-core-ts 1.0.5 → 1.0.6

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.
@@ -0,0 +1,523 @@
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-textfield-default::placeholder {
185
+ font-size: 14px;
186
+ font-style: normal;
187
+ font-weight: 500;
188
+ line-height: 20px;
189
+ }
190
+
191
+ .qbs-autocomplete-close-icon button:focus-within {
192
+ outline: none;
193
+ }
194
+
195
+ .fullWidth {
196
+ width: 100%;
197
+ }
198
+
199
+ .autoWidth {
200
+ width: auto;
201
+ }
202
+ .icon-button {
203
+ background: transparent;
204
+ border: none;
205
+ display: inline-flex;
206
+ cursor: pointer;
207
+ padding: 0px 1px;
208
+ }
209
+ .labels {
210
+ font-size: 12px;
211
+ }
212
+ .dropdown-search-input {
213
+ min-width: -webkit-fill-available;
214
+ border-radius: 6px;
215
+ border: 1px solid var(--border-card-color-default, #d6d8dc);
216
+ background: var(--surface-input-bg-color-default, #fff);
217
+ color: #313131;
218
+ font-size: 14px;
219
+ height: 36px;
220
+ padding: 0px 8px;
221
+ font-style: normal;
222
+ font-weight: 500;
223
+ line-height: 20px;
224
+ padding-left: 32px;
225
+ }
226
+ .qbs-autocomplete-suggestions-sub {
227
+ position: relative;
228
+ overflow: auto;
229
+ max-height: 192px;
230
+ top: 0;
231
+ display: flex;
232
+ flex-direction: column;
233
+ gap: 4px;
234
+ }
235
+ .qbs-autocomplete-listitem-container {
236
+ display: flex;
237
+ align-items: center;
238
+ gap: 0px;
239
+ }
240
+ ul {
241
+ list-style-type: none;
242
+ }
243
+
244
+ .react-core-ts-search-container {
245
+ display: flex;
246
+ align-items: center;
247
+ gap: var(--spacing-4, 4px);
248
+ align-self: stretch;
249
+ margin-bottom: 4px;
250
+ }
251
+ .selected-item {
252
+ display: flex;
253
+ align-items: center;
254
+ justify-content: space-between;
255
+ padding: 3px 6px;
256
+ margin: 0;
257
+ background-color: #e0e0e0;
258
+ color: #333;
259
+ border-radius: 6px;
260
+ border: 1px solid rgba(231, 100, 88, 0.1);
261
+ background: rgba(231, 100, 88, 0.1);
262
+ font-size: 12px;
263
+ font-style: normal;
264
+ font-weight: 500;
265
+ line-height: 16px;
266
+ color: #e76458;
267
+ gap: 6px;
268
+ height: 22px;
269
+ }
270
+
271
+ .remove-item-btn {
272
+ background-color: transparent;
273
+ border: none;
274
+ color: #e76458;
275
+ cursor: pointer;
276
+ }
277
+
278
+ .remove-item-btn:hover {
279
+ color: #e76458;
280
+ }
281
+
282
+ .selected-items-container {
283
+ display: flex;
284
+ gap: 12px;
285
+ align-items: center;
286
+ position: absolute;
287
+ left: 8px;
288
+ z-index: 99;
289
+ top: 6.5px;
290
+ flex-wrap: wrap;
291
+ }
292
+
293
+ .selected-item-more {
294
+ display: flex;
295
+ align-items: center;
296
+ justify-content: center;
297
+ padding: 3px 8px;
298
+ margin: 0;
299
+ border-radius: 6px;
300
+ background: #c63a3a;
301
+ font-size: 12px;
302
+ font-style: normal;
303
+ font-weight: 500;
304
+ line-height: 16px;
305
+ color: #fff;
306
+ height: 22px;
307
+ }
308
+
309
+ .loadMoreSection {
310
+ margin: 0;
311
+ cursor: pointer;
312
+ display: flex;
313
+ justify-content: flex-start;
314
+ padding: 8px;
315
+ }
316
+ .loadMoreSection p {
317
+ color: #336cfc;
318
+ font-size: 14px;
319
+ font-style: normal;
320
+ font-weight: 500;
321
+ line-height: 20px;
322
+ margin: 0;
323
+ }
324
+ ::-webkit-scrollbar-track {
325
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
326
+ border-radius: 0px;
327
+ background-color: transparent;
328
+ }
329
+
330
+ ::-webkit-scrollbar {
331
+ width: 6px;
332
+ height: 4px;
333
+ background-color: transparent;
334
+ }
335
+
336
+ ::-webkit-scrollbar-thumb {
337
+ border-radius: 100px;
338
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
339
+ background-color: #ddd;
340
+ }
341
+
342
+ .qbs-autocomplete-suggestions-item.is-selected {
343
+ color: #e76458;
344
+ background: #f8f8f8;
345
+ }
346
+
347
+ span.dropdown-search-icon {
348
+ position: absolute;
349
+ left: 8px;
350
+ top: 10px;
351
+ }
352
+
353
+ .dropdown-search-input:focus {
354
+ outline: none;
355
+ border: 1px solid #222;
356
+ }
357
+
358
+ .qbs-autocomplete-checkbox-container {
359
+ gap: 8px;
360
+ padding: 6px 8px;
361
+ display: flex;
362
+ align-items: flex-start;
363
+ }
364
+
365
+ .qbs-autocomplete-checkbox-container .qbs-autocomplete-suggestions-item {
366
+ padding: 0;
367
+ pointer-events: none;
368
+ }
369
+
370
+ .qbs-autocomplete-checkbox-container:hover {
371
+ background: #f8f8f8;
372
+ border-radius: 6px;
373
+ }
374
+
375
+ .qbs-autocomplete-checkbox-container.is-selected {
376
+ background: #f8f8f8;
377
+ border-radius: 6px;
378
+ }
379
+
380
+ .qbs-autocomplete-checkbox {
381
+ position: relative;
382
+ display: flex;
383
+ align-items: center;
384
+ justify-content: center;
385
+ }
386
+
387
+ .qbs-autocomplete-checkbox input {
388
+ opacity: 0;
389
+ }
390
+
391
+ .qbs-autocomplete-checkbox input ~ label {
392
+ position: absolute;
393
+ border-radius: 3px;
394
+ border: 1px solid #999696;
395
+ width: 16px;
396
+ height: 16px;
397
+ top: 3px;
398
+ transition: all 0.2s ease;
399
+ cursor: pointer;
400
+ }
401
+
402
+ .qbs-autocomplete-checkbox input ~ label svg {
403
+ opacity: 0;
404
+ transition: all 0.2s ease;
405
+ position: absolute;
406
+ left: 3px;
407
+ top: 3px;
408
+ width: 9px;
409
+ height: 9px;
410
+ }
411
+
412
+ .qbs-autocomplete-checkbox input:checked ~ label {
413
+ transition: all 0.2s ease;
414
+ border-radius: 3px;
415
+ background: #e76458;
416
+ border-color: #e76458;
417
+ }
418
+ .qbs-autocomplete-checkbox input:checked ~ label svg {
419
+ opacity: 1;
420
+ transition: all 0.2s ease;
421
+ }
422
+
423
+ .action_label {
424
+ font-size: 14px;
425
+ color: #4c7ad6;
426
+ }
427
+ /* Tooltip.css */
428
+ /* .tooltip-wrapper {
429
+ position: relative;
430
+ display: inline-block;
431
+ }
432
+
433
+ .tooltip-content {
434
+ visibility: hidden;
435
+ width: max-content;
436
+ background-color: black;
437
+ color: white;
438
+ text-align: center;
439
+ max-width: 150px;
440
+ padding: 5px 10px;
441
+ border-radius: 6px;
442
+ position: absolute;
443
+ z-index: 1;
444
+ bottom: 125%;
445
+ left: 50%;
446
+ transform: translateX(-50%);
447
+ transition: visibility 0.2s ease-in-out;
448
+ }
449
+
450
+ .tooltip-content::after {
451
+ content: '';
452
+ position: absolute;
453
+ top: 100%;
454
+ left: 50%;
455
+ margin-left: -5px;
456
+ border-width: 5px;
457
+ border-style: solid;
458
+ border-color: black transparent transparent transparent;
459
+ }
460
+
461
+ .tooltip-wrapper:hover .tooltip-content {
462
+ visibility: visible;
463
+ } */
464
+ .qbs-table-tooltip {
465
+ position: relative;
466
+ display: contents;
467
+ cursor: pointer;
468
+ }
469
+
470
+ .qbs-table-tooltip .tooltiptext {
471
+ visibility: hidden;
472
+ background-color: #000;
473
+ color: #fff;
474
+ text-align: center;
475
+ padding: 6px;
476
+ border-radius: 4px;
477
+ position: absolute;
478
+ z-index: 9999;
479
+ opacity: 0;
480
+ transition: opacity 0.3s;
481
+ font-size: 14px;
482
+ font-style: normal;
483
+ font-weight: 400;
484
+ line-height: 16px;
485
+ max-width: 300px;
486
+ }
487
+
488
+ .qbs-table-tooltip.up .tooltiptext {
489
+ bottom: 125%;
490
+ left: 0%;
491
+ }
492
+
493
+ .qbs-table-tooltip.down .tooltiptext {
494
+ top: 125%;
495
+ right: 0px;
496
+ left: auto;
497
+ }
498
+
499
+ .qbs-table-tooltip:hover .tooltiptext {
500
+ visibility: visible;
501
+ opacity: 1;
502
+ }
503
+
504
+ .qbs-table-tooltip .tooltiptext::after {
505
+ content: '';
506
+ position: absolute;
507
+ border-width: 5px;
508
+ border-style: solid;
509
+ }
510
+
511
+ .qbs-table-tooltip.up .tooltiptext::after {
512
+ top: 100%;
513
+ left: 50%;
514
+ margin-left: -5px;
515
+ border-color: #000 transparent transparent transparent;
516
+ }
517
+
518
+ .qbs-table-tooltip.down .tooltiptext::after {
519
+ bottom: 100%;
520
+ left: 50%;
521
+ margin-left: -5px;
522
+ border-color: transparent transparent #000 transparent;
523
+ }
@@ -0,0 +1 @@
1
+ @import './components/autocomplete.css';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-core-ts",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "React Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -125,7 +125,7 @@ body * {
125
125
  line-height: 20px; /* 142.857% */
126
126
  width: 100%;
127
127
  display: flex;
128
- align-items: start;
128
+ align-items: flex-start;
129
129
  gap: 8px;
130
130
  }
131
131
  .qbs-autocomplete-suggestions-item:hover {
@@ -358,7 +358,8 @@ span.dropdown-search-icon {
358
358
  .qbs-autocomplete-checkbox-container {
359
359
  gap: 8px;
360
360
  padding: 6px 8px;
361
- align-items: start;
361
+ display: flex;
362
+ align-items: flex-start;
362
363
  }
363
364
 
364
365
  .qbs-autocomplete-checkbox-container .qbs-autocomplete-suggestions-item {