react-animated-select 0.5.6 → 0.6.0

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.
package/demo/src/rac.css DELETED
@@ -1,746 +0,0 @@
1
- :root {
2
- --def-white: white;
3
- --blck-bc: #151515;
4
- --blck-bc-hvr: #252525ff;
5
- --blck-bc-fcs: gray;
6
- --def-btn: #5ea500;
7
- --def-btn-hvr: #3e6c00;
8
- --del-btn: #e7000b;
9
- --del-btn-hvr: #950007;
10
- overflow-x: hidden;
11
- --rcp-background: #111111;
12
- --rcp-input-bg: #181818;
13
- --rcp-border: #222222;
14
- --rcp-text-main: #ffffff;
15
- --rcp-text-secondary: #888888;
16
- --rcp-radius: 8px;
17
- }
18
-
19
- *, *::before, *::after {
20
- box-sizing: border-box;
21
- }
22
-
23
- a {
24
- outline: none;
25
- }
26
-
27
- html {
28
- height: 100%;
29
- }
30
-
31
- body {
32
- background-color: black;
33
- color: white;
34
- scroll-behavior: smooth;
35
- height: 100%;
36
- margin: 0;
37
- }
38
-
39
- #root {
40
- height: 100%;
41
- }
42
-
43
- input[type=radio] {
44
- display: none;
45
- }
46
-
47
- *::-webkit-scrollbar {
48
- width: 6px;
49
- height: 6px;
50
- }
51
-
52
- *::-webkit-scrollbar-track {
53
- background: transparent;
54
- }
55
-
56
- *::-webkit-scrollbar-thumb {
57
- background-color: var(--blck-bc);
58
- border-radius: 999px;
59
- border: 2px solid transparent;
60
- background-clip: content-box;
61
- transition: background-color 300ms ease, opacity 300ms ease;
62
- }
63
-
64
- *::-webkit-scrollbar-thumb:hover {
65
- background-color: var(--blck-bc-hvr);
66
- }
67
- * {
68
- scrollbar-width: thin;
69
- scrollbar-color: var(--blck-bc-hvr) var(--blck-bc);
70
- }
71
-
72
- .app-main {
73
- overflow: hidden;
74
- display: flex;
75
- height: 100%;
76
- --screen: 'desktop';
77
-
78
- @media (max-width: 1024px) {
79
- flex-direction: var(--direction);
80
- justify-content: var(--justify);
81
- text-align: center;
82
- --screen: 'mobile';
83
- }
84
- }
85
-
86
- .fade-main {
87
- width: 100%;
88
- }
89
-
90
- .page-list {
91
- display: flex;
92
- width: 100%;
93
- height: 100%;
94
-
95
- @media (max-width: 1024px) {
96
- flex-direction: column;
97
- }
98
- }
99
-
100
- /* STYLES FOR slideDown ANIMATION */
101
-
102
- .slideDown-enter {
103
- overflow: hidden;
104
- height: 0;
105
- }
106
-
107
- .slideDown-enter-active {
108
- overflow: hidden;
109
- transition: height 300ms ease;
110
- }
111
-
112
- .slideDown-enter-done {
113
- height: auto;
114
- }
115
-
116
- .slideDown-exit {
117
- overflow: hidden;
118
- }
119
-
120
- .slideDown-exit-active {
121
- overflow: hidden;
122
- height: 0;
123
- transition: height 300ms ease;
124
- }
125
-
126
- /* */
127
-
128
- .slide-left-enter {
129
- overflow: hidden;
130
- width: 0;
131
- }
132
-
133
- .slide-left-enter-active {
134
- overflow: hidden;
135
- transition: width 300ms ease;
136
- }
137
-
138
- .slide-left-enter-done {
139
- width: auto;
140
- }
141
-
142
- .slide-left-exit {
143
- overflow: hidden;
144
- }
145
-
146
- .slide-left-exit-active {
147
- overflow: hidden;
148
- width: 0;
149
- transition: width 300ms ease;
150
- }
151
-
152
- .content-wrapper {
153
- position: relative;
154
- overflow-x: hidden;
155
- width: 100%;
156
- display: flex;
157
- height: 100%;
158
- }
159
-
160
- .nav-change-enter {
161
- opacity: 0;
162
- transform: scale(0.5);
163
- transition: 300ms transform, 300ms opacity, 300ms filter;
164
- }
165
-
166
- .nav-change-enter-active {
167
- opacity: 1;
168
- transform: scale(1);
169
- }
170
-
171
- .nav-change-exit {
172
- opacity: 1;
173
- transform: scale(0.5);
174
- transition: 300ms transform, 300ms opacity, 300ms filter;
175
- position: absolute;
176
- width: 100%;
177
- top: 0;
178
- left: 0;
179
- height: 100%;
180
- }
181
-
182
- .nav-change-exit-active {
183
- opacity: 0;
184
- transform: scale(0.9);
185
- }
186
-
187
- .rac-demo-checkbox {
188
- display: initial !important;
189
- margin: 0;
190
- width: 3vw;
191
- height: 3vw;
192
- accent-color: #252525;
193
- cursor: pointer;
194
-
195
- @media (max-width: 1024px) {
196
- width: 7vw;
197
- height: 7vw;
198
- }
199
- }
200
-
201
- .select-arrow-wrapper {
202
- margin-left: 0.5vw;
203
- }
204
-
205
- .rac-demo-select {
206
- --rac-list-background: #111111;
207
- --rac-scroll-color: var(--blck-bc-hvr);
208
- --rac-scroll-track: var(--blck-bc);
209
- --rac-arrow-padding: 0;
210
- --rac-arrow-height: 1.5em;
211
- --rac-arrow-width: 1.5em;
212
- --rac-group-arrow-height: 1.5em;
213
- --rac-group-arrow-width: 1.5em;
214
- --rac-cancel-height: 1.5em;
215
- --rac-cancel-width: 1.5em;
216
-
217
- --rac-option-hover: #777;
218
- --rac-option-highlight: #606060;
219
- --rac-option-selected: #4a4a4a;
220
- min-height: 4vw;
221
- width: 100%;
222
- background-color: var(--blck-bc-hvr);
223
- color: var(--def-white);
224
- border: 0.1vw solid transparent;
225
- outline: none;
226
- border-radius: 1vw;
227
- display: flex;
228
- align-items: center;
229
- padding: 1vw;
230
- font-size: 1.25vw;
231
-
232
- @media (max-width: 1024px) {
233
- font-size: 6vw;
234
- height: 10vw;
235
- border-radius: 2vw;
236
- padding: 2vw;
237
- }
238
- }
239
-
240
- .rac-group-header {
241
- background-color: #1e1e1e;
242
- border-radius: 10px;
243
- }
244
-
245
- .rac-error-style {
246
- border-color: red;
247
- }
248
-
249
- .rac-disabled-style, .rac-loading-style, .rac-error-style {
250
- opacity: 0.75;
251
- }
252
-
253
- .rac-main {
254
- width: 100%;
255
- height: 100%;
256
- display: flex;
257
- flex-direction: column;
258
- text-align: center;
259
- background-color: #171a1f;
260
- overflow: auto;
261
- scrollbar-gutter: stable;
262
- scroll-behavior: smooth;
263
- }
264
-
265
- .rac-lead-title {
266
- margin: 0;
267
- padding: 2.25vw 0vw 1vw;
268
- font-size: 2.5vw;
269
-
270
- @media (max-width: 1024px) {
271
- padding: 4vw 0vw 2vw;
272
- font-size: 8vw;
273
- }
274
- }
275
-
276
- .rac-groups {
277
- height: auto;
278
- justify-content: space-evenly;
279
- align-items: stretch;
280
- border: 0.1px solid #444850;
281
- background-color: #1a1b23;
282
- border-radius: 15px;
283
- display: flex;
284
- margin: 2vw;
285
-
286
- @media (max-width: 1024px) {
287
- margin: 0;
288
- border: 0;
289
- flex-direction: column-reverse;
290
- padding: 0vw 2vw;
291
- }
292
- }
293
-
294
- .rac-props {
295
- display: flex;
296
- flex-direction: column;
297
- min-width: 20%;
298
- align-items: baseline;
299
- padding: 1.25vw;
300
- overflow-y: auto;
301
- overflow-x: hidden;
302
- scrollbar-gutter: stable;
303
- height: 0;
304
- min-height: 100%;
305
-
306
- @media (max-width: 1024px) {
307
- min-height: auto;
308
- height: fit-content;
309
- }
310
- }
311
-
312
- .rac-props-title {
313
- margin: 0;
314
- width: 100%;
315
- }
316
-
317
- .rac-animation {
318
- display: flex;
319
- flex-direction: column;
320
- }
321
-
322
- .rac-animation-title {
323
- margin: 0;
324
- }
325
-
326
- .rac-texts {
327
- display: flex;
328
- flex-direction: column;
329
- }
330
-
331
- .rac-placeholders-title {
332
- margin: 0;
333
-
334
- @media (max-width: 1024px) {
335
- font-size: 4vw;
336
- }
337
- }
338
-
339
- .rac-placeholders-list {
340
- padding-top: 1vw;
341
- display: flex;
342
- flex-direction: column;
343
-
344
- @media (max-width: 1024px) {
345
- gap: 2vw;
346
- }
347
- }
348
-
349
- .rac-range-label {
350
- display: flex;
351
- flex-direction: column;
352
- padding: 0.75vw 0vw;
353
- gap: 1vw;
354
- width: 100%;
355
-
356
- @media (max-width: 1024px) {
357
- gap: 1vw;
358
- }
359
- }
360
-
361
- .rac-opacity-label {
362
- display: flex;
363
- }
364
-
365
- .rac-select-wrapper {
366
- min-width: 33%;
367
- padding: 1.25vw;
368
- height: auto;
369
- width: 100%;
370
- display: flex;
371
- flex-direction: column;
372
- text-align: start;
373
- overflow-y: auto;
374
- overflow-x: hidden;
375
- scrollbar-gutter: stable;
376
- min-height: 100%;
377
-
378
- @media (max-width: 1024px) {
379
- min-height: auto;
380
- height: fit-content;
381
- overflow: visible;
382
- }
383
- }
384
-
385
- .rac-visual {
386
- background-color: #17181e;
387
- border-left: 1px solid #33353e;
388
- border-right: 1px solid #33353e;
389
- padding: 1.25vw;
390
- min-width: 33%;
391
- overflow-y: auto;
392
- overflow-x: hidden;
393
- scrollbar-gutter: stable;
394
- height: 0;
395
- min-height: 100%;
396
-
397
- @media (max-width: 1024px) {
398
- border: none;
399
- background-color: initial;
400
- min-height: auto;
401
- height: fit-content;
402
- }
403
-
404
- }
405
-
406
- .rac-option-title {
407
- width: 100%;
408
- text-align: center;
409
- padding: 1vw 0vw 0vw;
410
- font-size: 1.75vw;
411
- margin: 1vw 0vw 0vw;
412
- border-top: 0.1px solid #43464f;
413
-
414
- @media (max-width: 1024px) {
415
- padding: 2vw 0vw 0vw;
416
- margin: 3vw 0vw 2vw;
417
- font-size: 4vw;
418
- }
419
- }
420
-
421
- .rac-prop-label {
422
- display: flex;
423
- flex-direction: column;
424
- text-align: start;
425
- width: 100%;
426
-
427
- @media (max-width: 1024px) {
428
- gap: 1vw;
429
- }
430
- }
431
-
432
- .rac-prop-span {
433
- padding-left: 1vw;
434
- font-size: 1.25vw;
435
-
436
- @media (max-width: 1024px) {
437
- font-size: 5vw;
438
- }
439
- }
440
-
441
- .rac-prop-value {
442
- margin: 0.75vw 0vw;
443
- padding: 1vw;
444
- background-color: #252525;
445
- outline: none;
446
- border: 0.1px solid transparent;
447
- border-radius: 20px;
448
- color: white;
449
- font-size: 1.5vw;
450
-
451
- &::placeholder {
452
- color: gray;
453
- }
454
-
455
- @media (max-width: 1024px) {
456
- font-size: 5vw;
457
- padding: 1vw 2vw;
458
- border-radius: 10px;
459
- }
460
- }
461
-
462
- .rac-add-option {
463
- margin: 0.75vw 0vw;
464
- padding: 1vw;
465
- width: 100%;
466
- background-color: #252525;
467
- outline: none;
468
- border: 0.1px solid transparent;
469
- border-radius: 20px;
470
- color: white;
471
- font-size: 1.5vw;
472
- transition: 300ms border;
473
-
474
- &::placeholder {
475
- color: gray;
476
- }
477
-
478
- &:hover {
479
- border: 0.1vw solid var(--def-btn);
480
- }
481
-
482
- @media (max-width: 1024px) {
483
- font-size: 6vw;
484
- padding: 1vw 3vw;
485
- border-radius: 10px;
486
- }
487
- }
488
-
489
- .rac-checkbox-wrapper {
490
- cursor: pointer;
491
- padding: 0.75vw 1vw;
492
- gap: 1vw;
493
- display: flex;
494
- align-items: center;
495
- font-size: 1.5vw;
496
-
497
- @media (max-width: 1024px) {
498
- gap: 3vw;
499
- font-size: 5.75vw;
500
- padding: 2vw 1vw;
501
- }
502
- }
503
-
504
- .rac-add-option-button {
505
- outline: none;
506
- width: 95%;
507
- border: 0.1px solid transparent;
508
- height: 4vw;
509
- border-radius: 10px;
510
- background-color: #2d5a3c;
511
- color: white;
512
- font-size: 1.5vw;
513
- padding: 0vw 1vw;
514
- margin: 1vw 1vw;
515
- transition: 300ms background-color;
516
-
517
- @media (max-width: 1024px) {
518
- font-size: 5vw;
519
- margin: 1vw 0vw;
520
- border-radius: 10px;
521
- height: 8vw;
522
- width: 100%;
523
- }
524
-
525
- &:hover,
526
- &:focus {
527
- border: 0.1px solid transparent;
528
- background-color: #274e34;
529
- }
530
- }
531
-
532
- .rac-form-group {
533
- border-bottom: 0.1px solid #43464f;
534
- margin-bottom: 1vw;
535
- padding-bottom: 1vw;
536
- }
537
-
538
- .rac-select-overview-title {
539
- font-size: 2vw;
540
- margin: 0;
541
- padding: 0vw 0vw 2vw;
542
- text-align: center;
543
-
544
- @media (max-width: 1024px) {
545
- font-size: 5vw;
546
- padding: 1vw 0vw 3vw;
547
- }
548
- }
549
-
550
- .rac-option-demo {
551
- width: min-content;
552
- text-wrap: nowrap;
553
- display: flex;
554
- gap: 0.5vw;
555
- font-size: 1.25vw;
556
- background-color: #111;
557
- padding: 1vw;
558
- border-radius: 15px;
559
- align-items: center;
560
-
561
- @media (max-width: 1024px) {
562
- gap: 2.5vw;
563
- font-size: 6vw;
564
- padding: 2vw;
565
- border-radius: 10px;
566
- }
567
- }
568
-
569
- .rac-demo-option-list {
570
- display: flex;
571
- flex-wrap: wrap;
572
- gap: 0.5vw;
573
-
574
- @media (max-width: 1024px) {
575
- gap: 2.5vw;
576
- padding-top: 2vw;
577
- }
578
- }
579
-
580
- .rac-delete-demo-option {
581
- outline: none;
582
- border: none;
583
- border-radius: 3px;
584
- background-color: red;
585
- color: white;
586
-
587
- &:hover,
588
- &:focus {
589
- border: none;
590
- }
591
- }
592
-
593
- .rac-delete-button-icon {
594
- height: 1.5vw;
595
- padding: 0.5vw;
596
-
597
- @media (max-width: 1024px) {
598
- height: 4.5vw;
599
- padding: 1.25vw;
600
- }
601
- }
602
-
603
- .rac-option-list-button {
604
- outline: none;
605
- border: none;
606
- background-color: #c96a2d;
607
- width: 95%;
608
- border: 0.1px solid transparent;
609
- min-height: 4vw;
610
- border-radius: 10px;
611
- color: white;
612
- font-size: 1.5vw;
613
- padding: 0vw 1vw;
614
- margin: 1vw 1vw;
615
- transition: 300ms background-color;
616
-
617
- &:hover,
618
- &:focus {
619
- border: 0.1px solid transparent;
620
- background-color: #994e20;
621
- }
622
-
623
- @media (max-width: 1024px) {
624
- font-size: 5vw;
625
- margin: 1vw 0vw;
626
- border-radius: 10px;
627
- height: 8vw;
628
- width: 100%;
629
- }
630
- }
631
-
632
- .rac-fade-text {
633
- animation: fadeIn 200ms ease;
634
- }
635
-
636
- @keyframes fadeIn {
637
- from {
638
- opacity: 0;
639
- transform: translateY(4px);
640
- }
641
- to {
642
- opacity: 1;
643
- transform: translateY(0);
644
- }
645
- }
646
-
647
- .rac-added-option {
648
- width: 100%;
649
- display: block;
650
- text-align: center;
651
- color: #35bb61;
652
- font-size: 1.25vw;
653
-
654
- @media (max-width: 1024px) {
655
- font-size: 4vw;
656
- padding: 2vw;
657
- }
658
- }
659
-
660
- .rac-range-input {
661
- appearance: none;
662
- width: 100%;
663
- height: 8px;
664
- border-radius: 4px;
665
- background: #ddd;
666
- outline: none;
667
- margin: 8px 0;
668
- transition: background 0.3s;
669
- }
670
-
671
- .rac-range-input::-webkit-slider-thumb {
672
- -webkit-appearance: none;
673
- appearance: none;
674
- width: 20px;
675
- height: 20px;
676
- border-radius: 50%;
677
- background: #3b82f6;
678
- cursor: pointer;
679
- box-shadow: 0 0 4px rgba(0,0,0,0.2);
680
- transition: background 0.3s, transform 0.2s;
681
- }
682
- .rac-range-input::-webkit-slider-thumb:hover {
683
- transform: scale(1.2);
684
- }
685
-
686
- .rac-range-input::-moz-range-thumb {
687
- width: 20px;
688
- height: 20px;
689
- border-radius: 50%;
690
- background: #3b82f6;
691
- cursor: pointer;
692
- box-shadow: 0 0 4px rgba(0,0,0,0.2);
693
- transition: background 0.3s, transform 0.2s;
694
- }
695
- .rac-range-input::-moz-range-thumb:hover {
696
- transform: scale(1.2);
697
- }
698
-
699
- .rac-range-input::-webkit-slider-runnable-track {
700
- height: 8px;
701
- border-radius: 4px;
702
- background: linear-gradient(to right, #3b82f6 0%, #3b82f6 var(--value, 50%), #ddd var(--value, 50%), #ddd 100%);
703
- }
704
-
705
- .rac-range-input::-moz-range-track {
706
- height: 8px;
707
- border-radius: 4px;
708
- background: #ddd;
709
- }
710
-
711
- .rac-options {
712
- border-radius: 1vw;
713
- }
714
-
715
- .rac-select-list {
716
- max-height: 350px;
717
- color: white;
718
- border: var(--select-border);
719
- padding: 1vw;
720
- width: 100%;
721
- opacity: var(--opacity);
722
-
723
- @media (max-width: 1024px) {
724
- padding: 2.5vw 2.5vw;
725
- }
726
- }
727
-
728
- .rac-select-title {
729
- margin: 0;
730
- display: inline-flex;
731
- width: fit-content;
732
- text-overflow: ellipsis;
733
- overflow: hidden;
734
- white-space: nowrap;
735
- transition: 300ms color;
736
-
737
- @media (max-width: 1024px) {
738
- padding-left: 1vw;
739
- }
740
- }
741
-
742
- .rac-select-option {
743
- border-radius: 1vw;
744
- text-overflow: ellipsis;
745
- overflow: hidden;
746
- }