kupos-ui-components-lib 9.8.0 → 9.8.1
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/dist/KuposUIComponent.d.ts +0 -3
- package/dist/components/ServiceItem/ServiceItemDesktop.d.ts +1 -1
- package/dist/components/ServiceItem/ServiceItemDesktop.js +21 -21
- package/dist/components/ServiceItem/ServiceItemMobile.d.ts +1 -1
- package/dist/components/ServiceItem/ServiceItemMobile.js +7 -16
- package/dist/components/ServiceItem/mobileTypes.d.ts +0 -32
- package/dist/components/ServiceItem/types.d.ts +7 -22
- package/dist/styles.css +0 -209
- package/dist/ui/SeatSection/SeatSection.d.ts +5 -1
- package/dist/ui/SeatSection/SeatSection.js +26 -6
- package/dist/utils/CommonService.js +1 -11
- package/package.json +1 -1
- package/src/KuposUIComponent.tsx +0 -3
- package/src/components/ServiceItem/ServiceItemDesktop.tsx +38 -55
- package/src/components/ServiceItem/ServiceItemMobile.tsx +286 -340
- package/src/components/ServiceItem/mobileTypes.ts +1 -29
- package/src/components/ServiceItem/types.ts +7 -23
- package/src/styles.css +0 -15
- package/src/ui/SeatSection/SeatSection.tsx +56 -11
- package/src/utils/CommonService.ts +1 -13
- package/src/assets/images/anims/service_list/flame_anim.json +0 -1
- package/src/assets/images/anims/service_list/thunder_icon.json +0 -1
- package/src/assets/images/anims/service_list/users_anim.json +0 -1
- package/src/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.tsx +0 -529
- package/src/ui/FeatureServiceUI/FeatureServiceUi.tsx +0 -559
package/dist/styles.css
CHANGED
|
@@ -33,9 +33,6 @@
|
|
|
33
33
|
.-top-\[11px\] {
|
|
34
34
|
top: calc(11px * -1);
|
|
35
35
|
}
|
|
36
|
-
.-top-\[13px\] {
|
|
37
|
-
top: calc(13px * -1);
|
|
38
|
-
}
|
|
39
36
|
.-top-\[18px\] {
|
|
40
37
|
top: calc(18px * -1);
|
|
41
38
|
}
|
|
@@ -63,15 +60,9 @@
|
|
|
63
60
|
.top-\[88\%\] {
|
|
64
61
|
top: 88%;
|
|
65
62
|
}
|
|
66
|
-
.top-\[calc\(100\%\+10px\)\] {
|
|
67
|
-
top: calc(100% + 10px);
|
|
68
|
-
}
|
|
69
63
|
.right-\[0px\] {
|
|
70
64
|
right: 0px;
|
|
71
65
|
}
|
|
72
|
-
.right-\[18px\] {
|
|
73
|
-
right: 18px;
|
|
74
|
-
}
|
|
75
66
|
.-bottom-\[9\%\] {
|
|
76
67
|
bottom: calc(9% * -1);
|
|
77
68
|
}
|
|
@@ -84,9 +75,6 @@
|
|
|
84
75
|
.-bottom-\[36px\] {
|
|
85
76
|
bottom: calc(36px * -1);
|
|
86
77
|
}
|
|
87
|
-
.bottom-\[11px\] {
|
|
88
|
-
bottom: 11px;
|
|
89
|
-
}
|
|
90
78
|
.bottom-\[35px\] {
|
|
91
79
|
bottom: 35px;
|
|
92
80
|
}
|
|
@@ -180,18 +168,9 @@
|
|
|
180
168
|
.m-\[auto\] {
|
|
181
169
|
margin: auto;
|
|
182
170
|
}
|
|
183
|
-
.mx-\[10px\] {
|
|
184
|
-
margin-inline: 10px;
|
|
185
|
-
}
|
|
186
171
|
.mx-auto {
|
|
187
172
|
margin-inline: auto;
|
|
188
173
|
}
|
|
189
|
-
.my-\[8px\] {
|
|
190
|
-
margin-block: 8px;
|
|
191
|
-
}
|
|
192
|
-
.my-\[14px\] {
|
|
193
|
-
margin-block: 14px;
|
|
194
|
-
}
|
|
195
174
|
.-mt-\[15px\] {
|
|
196
175
|
margin-top: calc(15px * -1);
|
|
197
176
|
}
|
|
@@ -210,27 +189,15 @@
|
|
|
210
189
|
.mt-\[5px\] {
|
|
211
190
|
margin-top: 5px;
|
|
212
191
|
}
|
|
213
|
-
.mt-\[6px\] {
|
|
214
|
-
margin-top: 6px;
|
|
215
|
-
}
|
|
216
192
|
.mt-\[10px\] {
|
|
217
193
|
margin-top: 10px;
|
|
218
194
|
}
|
|
219
|
-
.mt-\[12px\] {
|
|
220
|
-
margin-top: 12px;
|
|
221
|
-
}
|
|
222
195
|
.mt-\[13px\] {
|
|
223
196
|
margin-top: 13px;
|
|
224
197
|
}
|
|
225
|
-
.mt-\[14px\] {
|
|
226
|
-
margin-top: 14px;
|
|
227
|
-
}
|
|
228
198
|
.mt-\[15px\] {
|
|
229
199
|
margin-top: 15px;
|
|
230
200
|
}
|
|
231
|
-
.mt-\[16px\] {
|
|
232
|
-
margin-top: 16px;
|
|
233
|
-
}
|
|
234
201
|
.mt-\[20px\] {
|
|
235
202
|
margin-top: 20px;
|
|
236
203
|
}
|
|
@@ -378,9 +345,6 @@
|
|
|
378
345
|
.h-\[30px\] {
|
|
379
346
|
height: 30px;
|
|
380
347
|
}
|
|
381
|
-
.h-\[34px\] {
|
|
382
|
-
height: 34px;
|
|
383
|
-
}
|
|
384
348
|
.h-\[100\%\] {
|
|
385
349
|
height: 100%;
|
|
386
350
|
}
|
|
@@ -417,9 +381,6 @@
|
|
|
417
381
|
.w-\[20px\] {
|
|
418
382
|
width: 20px;
|
|
419
383
|
}
|
|
420
|
-
.w-\[34px\] {
|
|
421
|
-
width: 34px;
|
|
422
|
-
}
|
|
423
384
|
.w-\[50\%\] {
|
|
424
385
|
width: 50%;
|
|
425
386
|
}
|
|
@@ -488,12 +449,6 @@
|
|
|
488
449
|
.max-w-\[165px\] {
|
|
489
450
|
max-width: 165px;
|
|
490
451
|
}
|
|
491
|
-
.max-w-\[220px\] {
|
|
492
|
-
max-width: 220px;
|
|
493
|
-
}
|
|
494
|
-
.max-w-full {
|
|
495
|
-
max-width: 100%;
|
|
496
|
-
}
|
|
497
452
|
.min-w-\[75px\] {
|
|
498
453
|
min-width: 75px;
|
|
499
454
|
}
|
|
@@ -515,9 +470,6 @@
|
|
|
515
470
|
--tw-translate-y: -10px;
|
|
516
471
|
translate: var(--tw-translate-x) var(--tw-translate-y);
|
|
517
472
|
}
|
|
518
|
-
.rotate-0 {
|
|
519
|
-
rotate: 0deg;
|
|
520
|
-
}
|
|
521
473
|
.rotate-180 {
|
|
522
474
|
rotate: 180deg;
|
|
523
475
|
}
|
|
@@ -527,9 +479,6 @@
|
|
|
527
479
|
.cursor-default {
|
|
528
480
|
cursor: default;
|
|
529
481
|
}
|
|
530
|
-
.cursor-not-allowed {
|
|
531
|
-
cursor: not-allowed;
|
|
532
|
-
}
|
|
533
482
|
.cursor-pointer {
|
|
534
483
|
cursor: pointer;
|
|
535
484
|
}
|
|
@@ -542,21 +491,12 @@
|
|
|
542
491
|
.grid-cols-2 {
|
|
543
492
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
544
493
|
}
|
|
545
|
-
.grid-cols-3 {
|
|
546
|
-
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
547
|
-
}
|
|
548
|
-
.grid-cols-4 {
|
|
549
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
550
|
-
}
|
|
551
494
|
.grid-cols-\[0\.8fr_auto_26\%_1fr\] {
|
|
552
495
|
grid-template-columns: 0.8fr auto 26% 1fr;
|
|
553
496
|
}
|
|
554
497
|
.grid-cols-\[1\.5fr_1fr_auto\] {
|
|
555
498
|
grid-template-columns: 1.5fr 1fr auto;
|
|
556
499
|
}
|
|
557
|
-
.grid-cols-\[25\%_48\%_27\%\] {
|
|
558
|
-
grid-template-columns: 25% 48% 27%;
|
|
559
|
-
}
|
|
560
500
|
.grid-cols-\[26px_auto_26\%_1fr\] {
|
|
561
501
|
grid-template-columns: 26px auto 26% 1fr;
|
|
562
502
|
}
|
|
@@ -584,9 +524,6 @@
|
|
|
584
524
|
.items-start {
|
|
585
525
|
align-items: flex-start;
|
|
586
526
|
}
|
|
587
|
-
.items-stretch {
|
|
588
|
-
align-items: stretch;
|
|
589
|
-
}
|
|
590
527
|
.justify-between {
|
|
591
528
|
justify-content: space-between;
|
|
592
529
|
}
|
|
@@ -629,12 +566,6 @@
|
|
|
629
566
|
.gap-\[14px\] {
|
|
630
567
|
gap: 14px;
|
|
631
568
|
}
|
|
632
|
-
.gap-\[16px\] {
|
|
633
|
-
gap: 16px;
|
|
634
|
-
}
|
|
635
|
-
.gap-\[20px\] {
|
|
636
|
-
gap: 20px;
|
|
637
|
-
}
|
|
638
569
|
.gap-x-\[2\%\] {
|
|
639
570
|
-moz-column-gap: 2%;
|
|
640
571
|
column-gap: 2%;
|
|
@@ -643,20 +574,12 @@
|
|
|
643
574
|
-moz-column-gap: 8px;
|
|
644
575
|
column-gap: 8px;
|
|
645
576
|
}
|
|
646
|
-
.truncate {
|
|
647
|
-
overflow: hidden;
|
|
648
|
-
text-overflow: ellipsis;
|
|
649
|
-
white-space: nowrap;
|
|
650
|
-
}
|
|
651
577
|
.overflow-hidden {
|
|
652
578
|
overflow: hidden;
|
|
653
579
|
}
|
|
654
580
|
.overflow-y-hidden {
|
|
655
581
|
overflow-y: hidden;
|
|
656
582
|
}
|
|
657
|
-
.rounded-\[4px\] {
|
|
658
|
-
border-radius: 4px;
|
|
659
|
-
}
|
|
660
583
|
.rounded-\[8px\] {
|
|
661
584
|
border-radius: 8px;
|
|
662
585
|
}
|
|
@@ -669,9 +592,6 @@
|
|
|
669
592
|
.rounded-\[15px\] {
|
|
670
593
|
border-radius: 15px;
|
|
671
594
|
}
|
|
672
|
-
.rounded-\[16px\] {
|
|
673
|
-
border-radius: 16px;
|
|
674
|
-
}
|
|
675
595
|
.rounded-\[18px\] {
|
|
676
596
|
border-radius: 18px;
|
|
677
597
|
}
|
|
@@ -715,10 +635,6 @@
|
|
|
715
635
|
border-top-style: var(--tw-border-style);
|
|
716
636
|
border-top-width: 8px;
|
|
717
637
|
}
|
|
718
|
-
.border-r {
|
|
719
|
-
border-right-style: var(--tw-border-style);
|
|
720
|
-
border-right-width: 1px;
|
|
721
|
-
}
|
|
722
638
|
.border-r-8 {
|
|
723
639
|
border-right-style: var(--tw-border-style);
|
|
724
640
|
border-right-width: 8px;
|
|
@@ -747,10 +663,6 @@
|
|
|
747
663
|
border-bottom-style: var(--tw-border-style);
|
|
748
664
|
border-bottom-width: 8px;
|
|
749
665
|
}
|
|
750
|
-
.border-l {
|
|
751
|
-
border-left-style: var(--tw-border-style);
|
|
752
|
-
border-left-width: 1px;
|
|
753
|
-
}
|
|
754
666
|
.border-l-8 {
|
|
755
667
|
border-left-style: var(--tw-border-style);
|
|
756
668
|
border-left-width: 8px;
|
|
@@ -767,9 +679,6 @@
|
|
|
767
679
|
--tw-border-style: none;
|
|
768
680
|
border-style: none;
|
|
769
681
|
}
|
|
770
|
-
.border-\[\#363c48\] {
|
|
771
|
-
border-color: #363c48;
|
|
772
|
-
}
|
|
773
682
|
.border-\[\#ccc\] {
|
|
774
683
|
border-color: #ccc;
|
|
775
684
|
}
|
|
@@ -788,24 +697,9 @@
|
|
|
788
697
|
.border-l-transparent {
|
|
789
698
|
border-left-color: transparent;
|
|
790
699
|
}
|
|
791
|
-
.bg-\[\#0C1421\] {
|
|
792
|
-
background-color: #0C1421;
|
|
793
|
-
}
|
|
794
|
-
.bg-\[\#2d374d\] {
|
|
795
|
-
background-color: #2d374d;
|
|
796
|
-
}
|
|
797
|
-
.bg-\[\#222b3d\] {
|
|
798
|
-
background-color: #222b3d;
|
|
799
|
-
}
|
|
800
700
|
.bg-\[\#E6E6E6\] {
|
|
801
701
|
background-color: #E6E6E6;
|
|
802
702
|
}
|
|
803
|
-
.bg-\[\#FF5C60\] {
|
|
804
|
-
background-color: #FF5C60;
|
|
805
|
-
}
|
|
806
|
-
.bg-\[\#FF8F45\] {
|
|
807
|
-
background-color: #FF8F45;
|
|
808
|
-
}
|
|
809
703
|
.bg-\[\#FFF2F2\] {
|
|
810
704
|
background-color: #FFF2F2;
|
|
811
705
|
}
|
|
@@ -824,9 +718,6 @@
|
|
|
824
718
|
.bg-\[lightgray\] {
|
|
825
719
|
background-color: lightgray;
|
|
826
720
|
}
|
|
827
|
-
.bg-transparent {
|
|
828
|
-
background-color: transparent;
|
|
829
|
-
}
|
|
830
721
|
.bg-\[length\:200\%_200\%\] {
|
|
831
722
|
background-size: 200% 200%;
|
|
832
723
|
}
|
|
@@ -849,9 +740,6 @@
|
|
|
849
740
|
.p-\[10px_15px\] {
|
|
850
741
|
padding: 10px 15px;
|
|
851
742
|
}
|
|
852
|
-
.p-\[14px\] {
|
|
853
|
-
padding: 14px;
|
|
854
|
-
}
|
|
855
743
|
.p-\[15px\] {
|
|
856
744
|
padding: 15px;
|
|
857
745
|
}
|
|
@@ -885,18 +773,9 @@
|
|
|
885
773
|
.px-\[15px\] {
|
|
886
774
|
padding-inline: 15px;
|
|
887
775
|
}
|
|
888
|
-
.px-\[16px\] {
|
|
889
|
-
padding-inline: 16px;
|
|
890
|
-
}
|
|
891
776
|
.px-\[20px\] {
|
|
892
777
|
padding-inline: 20px;
|
|
893
778
|
}
|
|
894
|
-
.px-\[22px\] {
|
|
895
|
-
padding-inline: 22px;
|
|
896
|
-
}
|
|
897
|
-
.py-\[2px\] {
|
|
898
|
-
padding-block: 2px;
|
|
899
|
-
}
|
|
900
779
|
.py-\[4px\] {
|
|
901
780
|
padding-block: 4px;
|
|
902
781
|
}
|
|
@@ -909,9 +788,6 @@
|
|
|
909
788
|
.py-\[8px\] {
|
|
910
789
|
padding-block: 8px;
|
|
911
790
|
}
|
|
912
|
-
.py-\[9px\] {
|
|
913
|
-
padding-block: 9px;
|
|
914
|
-
}
|
|
915
791
|
.py-\[10px\] {
|
|
916
792
|
padding-block: 10px;
|
|
917
793
|
}
|
|
@@ -927,9 +803,6 @@
|
|
|
927
803
|
.pt-\[10px\] {
|
|
928
804
|
padding-top: 10px;
|
|
929
805
|
}
|
|
930
|
-
.pt-\[14px\] {
|
|
931
|
-
padding-top: 14px;
|
|
932
|
-
}
|
|
933
806
|
.pt-\[20px\] {
|
|
934
807
|
padding-top: 20px;
|
|
935
808
|
}
|
|
@@ -945,9 +818,6 @@
|
|
|
945
818
|
.pt-\[50px\] {
|
|
946
819
|
padding-top: 50px;
|
|
947
820
|
}
|
|
948
|
-
.pr-\[10px\] {
|
|
949
|
-
padding-right: 10px;
|
|
950
|
-
}
|
|
951
821
|
.pr-\[15px\] {
|
|
952
822
|
padding-right: 15px;
|
|
953
823
|
}
|
|
@@ -957,9 +827,6 @@
|
|
|
957
827
|
.pr-\[22px\] {
|
|
958
828
|
padding-right: 22px;
|
|
959
829
|
}
|
|
960
|
-
.pb-\[6px\] {
|
|
961
|
-
padding-bottom: 6px;
|
|
962
|
-
}
|
|
963
830
|
.pb-\[7px\] {
|
|
964
831
|
padding-bottom: 7px;
|
|
965
832
|
}
|
|
@@ -978,9 +845,6 @@
|
|
|
978
845
|
.pl-\[6px\] {
|
|
979
846
|
padding-left: 6px;
|
|
980
847
|
}
|
|
981
|
-
.pl-\[22px\] {
|
|
982
|
-
padding-left: 22px;
|
|
983
|
-
}
|
|
984
848
|
.text-center {
|
|
985
849
|
text-align: center;
|
|
986
850
|
}
|
|
@@ -1026,21 +890,9 @@
|
|
|
1026
890
|
.text-\[18px\] {
|
|
1027
891
|
font-size: 18px;
|
|
1028
892
|
}
|
|
1029
|
-
.text-\[20px\] {
|
|
1030
|
-
font-size: 20px;
|
|
1031
|
-
}
|
|
1032
893
|
.text-\[22px\] {
|
|
1033
894
|
font-size: 22px;
|
|
1034
895
|
}
|
|
1035
|
-
.text-\[25px\] {
|
|
1036
|
-
font-size: 25px;
|
|
1037
|
-
}
|
|
1038
|
-
.text-\[26px\] {
|
|
1039
|
-
font-size: 26px;
|
|
1040
|
-
}
|
|
1041
|
-
.text-\[28px\] {
|
|
1042
|
-
font-size: 28px;
|
|
1043
|
-
}
|
|
1044
896
|
.text-\[42px\] {
|
|
1045
897
|
font-size: 42px;
|
|
1046
898
|
}
|
|
@@ -1048,10 +900,6 @@
|
|
|
1048
900
|
--tw-leading: 1.3;
|
|
1049
901
|
line-height: 1.3;
|
|
1050
902
|
}
|
|
1051
|
-
.leading-\[14px\] {
|
|
1052
|
-
--tw-leading: 14px;
|
|
1053
|
-
line-height: 14px;
|
|
1054
|
-
}
|
|
1055
903
|
.leading-\[20px\] {
|
|
1056
904
|
--tw-leading: 20px;
|
|
1057
905
|
line-height: 20px;
|
|
@@ -1072,10 +920,6 @@
|
|
|
1072
920
|
--tw-leading: 1;
|
|
1073
921
|
line-height: 1;
|
|
1074
922
|
}
|
|
1075
|
-
.font-\[9px\] {
|
|
1076
|
-
--tw-font-weight: 9px;
|
|
1077
|
-
font-weight: 9px;
|
|
1078
|
-
}
|
|
1079
923
|
.font-\[14px\] {
|
|
1080
924
|
--tw-font-weight: 14px;
|
|
1081
925
|
font-weight: 14px;
|
|
@@ -1097,27 +941,12 @@
|
|
|
1097
941
|
.whitespace-nowrap {
|
|
1098
942
|
white-space: nowrap;
|
|
1099
943
|
}
|
|
1100
|
-
.text-\[\#1a1a1a\] {
|
|
1101
|
-
color: #1a1a1a;
|
|
1102
|
-
}
|
|
1103
|
-
.text-\[\#4a4a4a\] {
|
|
1104
|
-
color: #4a4a4a;
|
|
1105
|
-
}
|
|
1106
944
|
.text-\[\#9f9f9f\] {
|
|
1107
945
|
color: #9f9f9f;
|
|
1108
946
|
}
|
|
1109
|
-
.text-\[\#666\] {
|
|
1110
|
-
color: #666;
|
|
1111
|
-
}
|
|
1112
|
-
.text-\[\#272727\] {
|
|
1113
|
-
color: #272727;
|
|
1114
|
-
}
|
|
1115
947
|
.text-\[\#464647\] {
|
|
1116
948
|
color: #464647;
|
|
1117
949
|
}
|
|
1118
|
-
.text-\[\#FF8F45\] {
|
|
1119
|
-
color: #FF8F45;
|
|
1120
|
-
}
|
|
1121
950
|
.text-\[\#c0c0c0\] {
|
|
1122
951
|
color: #c0c0c0;
|
|
1123
952
|
}
|
|
@@ -1136,9 +965,6 @@
|
|
|
1136
965
|
.text-\[red\] {
|
|
1137
966
|
color: red;
|
|
1138
967
|
}
|
|
1139
|
-
.text-\[white\] {
|
|
1140
|
-
color: white;
|
|
1141
|
-
}
|
|
1142
968
|
.capitalize {
|
|
1143
969
|
text-transform: capitalize;
|
|
1144
970
|
}
|
|
@@ -1158,16 +984,9 @@
|
|
|
1158
984
|
.opacity-0 {
|
|
1159
985
|
opacity: 0%;
|
|
1160
986
|
}
|
|
1161
|
-
.opacity-50 {
|
|
1162
|
-
opacity: 50%;
|
|
1163
|
-
}
|
|
1164
987
|
.opacity-100 {
|
|
1165
988
|
opacity: 100%;
|
|
1166
989
|
}
|
|
1167
|
-
.outline {
|
|
1168
|
-
outline-style: var(--tw-outline-style);
|
|
1169
|
-
outline-width: 1px;
|
|
1170
|
-
}
|
|
1171
990
|
.grayscale {
|
|
1172
991
|
--tw-grayscale: grayscale(100%);
|
|
1173
992
|
filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
|
|
@@ -1195,10 +1014,6 @@
|
|
|
1195
1014
|
transition-timing-function: var(--tw-ease, ease);
|
|
1196
1015
|
transition-duration: var(--tw-duration, 0s);
|
|
1197
1016
|
}
|
|
1198
|
-
.duration-200 {
|
|
1199
|
-
--tw-duration: 200ms;
|
|
1200
|
-
transition-duration: 200ms;
|
|
1201
|
-
}
|
|
1202
1017
|
.duration-300 {
|
|
1203
1018
|
--tw-duration: 300ms;
|
|
1204
1019
|
transition-duration: 300ms;
|
|
@@ -1207,11 +1022,6 @@
|
|
|
1207
1022
|
--tw-outline-style: none;
|
|
1208
1023
|
outline-style: none;
|
|
1209
1024
|
}
|
|
1210
|
-
.select-none {
|
|
1211
|
-
-webkit-user-select: none;
|
|
1212
|
-
-moz-user-select: none;
|
|
1213
|
-
user-select: none;
|
|
1214
|
-
}
|
|
1215
1025
|
.group-hover\:block {
|
|
1216
1026
|
&:is(:where(.group):hover *) {
|
|
1217
1027
|
@media (hover: hover) {
|
|
@@ -1351,19 +1161,6 @@
|
|
|
1351
1161
|
.hide-scrollbar::-webkit-scrollbar {
|
|
1352
1162
|
display: none;
|
|
1353
1163
|
}
|
|
1354
|
-
.kupos-time-dd > summary {
|
|
1355
|
-
list-style: none;
|
|
1356
|
-
}
|
|
1357
|
-
.kupos-time-dd > summary::-webkit-details-marker {
|
|
1358
|
-
display: none;
|
|
1359
|
-
}
|
|
1360
|
-
.kupos-time-chevron {
|
|
1361
|
-
transition: transform 200ms ease;
|
|
1362
|
-
flex-shrink: 0;
|
|
1363
|
-
}
|
|
1364
|
-
.kupos-time-dd[open] .kupos-time-chevron {
|
|
1365
|
-
transform: rotate(180deg);
|
|
1366
|
-
}
|
|
1367
1164
|
.hide-scrollbar {
|
|
1368
1165
|
-ms-overflow-style: none;
|
|
1369
1166
|
scrollbar-width: none;
|
|
@@ -1436,11 +1233,6 @@
|
|
|
1436
1233
|
syntax: "*";
|
|
1437
1234
|
inherits: false;
|
|
1438
1235
|
}
|
|
1439
|
-
@property --tw-outline-style {
|
|
1440
|
-
syntax: "*";
|
|
1441
|
-
inherits: false;
|
|
1442
|
-
initial-value: solid;
|
|
1443
|
-
}
|
|
1444
1236
|
@property --tw-blur {
|
|
1445
1237
|
syntax: "*";
|
|
1446
1238
|
inherits: false;
|
|
@@ -1532,7 +1324,6 @@
|
|
|
1532
1324
|
--tw-numeric-figure: initial;
|
|
1533
1325
|
--tw-numeric-spacing: initial;
|
|
1534
1326
|
--tw-numeric-fraction: initial;
|
|
1535
|
-
--tw-outline-style: solid;
|
|
1536
1327
|
--tw-blur: initial;
|
|
1537
1328
|
--tw-brightness: initial;
|
|
1538
1329
|
--tw-contrast: initial;
|
|
@@ -16,6 +16,10 @@ interface SeatSectionProps {
|
|
|
16
16
|
serviceItem?: any;
|
|
17
17
|
renderIcon?: (iconKey: string, size?: string) => React.ReactNode;
|
|
18
18
|
discountSeatPriceColor?: string;
|
|
19
|
+
isTrain?: boolean;
|
|
20
|
+
selectedSeatKey?: any;
|
|
21
|
+
onSeatSelect?: (key: any, price: number) => void;
|
|
22
|
+
topLabelColor?: string;
|
|
19
23
|
}
|
|
20
|
-
declare function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currencySign, removeDuplicateSeats, isPeru, serviceItem, renderIcon, dpSeatColor, discountSeatPriceColor, }: SeatSectionProps): React.ReactElement;
|
|
24
|
+
declare function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currencySign, removeDuplicateSeats, selectedSeatKey, onSeatSelect, isPeru, serviceItem, renderIcon, dpSeatColor, discountSeatPriceColor, isTrain, topLabelColor, }: SeatSectionProps): React.ReactElement;
|
|
21
25
|
export default SeatSection;
|
|
@@ -8,6 +8,7 @@ function getAllSeatTypes(seatTypes) {
|
|
|
8
8
|
let seatTypesWithPrices = seatTypes.filter(Boolean).map((val) => ({
|
|
9
9
|
label: val === null || val === void 0 ? void 0 : val.label,
|
|
10
10
|
price: val === null || val === void 0 ? void 0 : val.fare,
|
|
11
|
+
key: val === null || val === void 0 ? void 0 : val.key,
|
|
11
12
|
}));
|
|
12
13
|
seatTypesWithPrices.sort((a, b) => a.price - b.price);
|
|
13
14
|
return seatTypesWithPrices;
|
|
@@ -54,7 +55,7 @@ function getUniqueSeats(seatTypes) {
|
|
|
54
55
|
function getNumberOfSeats(seatTypes) {
|
|
55
56
|
return seatTypes.filter((val) => !SEAT_EXCEPTIONS.includes(val.label)).length;
|
|
56
57
|
}
|
|
57
|
-
function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currencySign, removeDuplicateSeats, isPeru, serviceItem, renderIcon, dpSeatColor, discountSeatPriceColor, }) {
|
|
58
|
+
function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currencySign, removeDuplicateSeats, selectedSeatKey, onSeatSelect, isPeru, serviceItem, renderIcon, dpSeatColor, discountSeatPriceColor, isTrain, topLabelColor, }) {
|
|
58
59
|
var _a;
|
|
59
60
|
const uniqueSeats = getUniqueSeats(seatTypes);
|
|
60
61
|
const sortedSeatTypes = getSortedSeatTypes(seatTypes);
|
|
@@ -65,11 +66,30 @@ function SeatSection({ seatTypes, availableSeats, isSoldOut, priceColor, currenc
|
|
|
65
66
|
: CommonService.currency(price, currencySign);
|
|
66
67
|
const renderSeatNames = () => {
|
|
67
68
|
const seats = removeDuplicateSeats ? uniqueSeats : sortedSeatTypes;
|
|
68
|
-
return seats.map((val, key) => SEAT_EXCEPTIONS.includes(val.label) ? null : (React.createElement("
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
return seats.map((val, key) => SEAT_EXCEPTIONS.includes(val.label) ? null : (React.createElement("div", { className: "flex items-center", style: isTrain ? { cursor: "pointer" } : undefined, onClick: isTrain && !isSoldOut
|
|
70
|
+
? () => onSeatSelect === null || onSeatSelect === void 0 ? void 0 : onSeatSelect(val.label, val.price)
|
|
71
|
+
: undefined },
|
|
72
|
+
isTrain && (React.createElement("div", { style: {
|
|
73
|
+
border: `1px solid ${val.label === selectedSeatKey ? topLabelColor : "#ccc"}`,
|
|
74
|
+
borderRadius: "50%",
|
|
75
|
+
width: "14px",
|
|
76
|
+
height: "14px",
|
|
77
|
+
minWidth: "14px",
|
|
78
|
+
marginRight: "10px",
|
|
79
|
+
display: "flex",
|
|
80
|
+
alignItems: "center",
|
|
81
|
+
justifyContent: "center",
|
|
82
|
+
} }, val.label === selectedSeatKey && (React.createElement("div", { style: {
|
|
83
|
+
backgroundColor: topLabelColor,
|
|
84
|
+
borderRadius: "50%",
|
|
85
|
+
width: "7px",
|
|
86
|
+
height: "7px",
|
|
87
|
+
} })))),
|
|
88
|
+
React.createElement("span", { key: key, className: `flex items-center justify-between text-[13.33px] ${isSoldOut ? "text-[#c0c0c0]" : ""}` }, typeof val.label === "string" || typeof val.label === "number"
|
|
89
|
+
? removeDuplicateSeats && isPeru
|
|
90
|
+
? CommonService.truncateSeatLabel(val.label)
|
|
91
|
+
: val.label
|
|
92
|
+
: null))));
|
|
73
93
|
};
|
|
74
94
|
const renderSeatPrices = () => {
|
|
75
95
|
if (isPeru) {
|
|
@@ -296,14 +296,10 @@ const commonService = {
|
|
|
296
296
|
startViewerCount: (node, viewersConfig) => {
|
|
297
297
|
if (!node || !viewersConfig)
|
|
298
298
|
return;
|
|
299
|
-
const { min, max, interval = 5000 } = viewersConfig;
|
|
300
|
-
const configKey = `${min}-${max}-${interval}`;
|
|
301
|
-
if (node.dataset.viewerId && node.dataset.viewerConfig === configKey) {
|
|
302
|
-
return;
|
|
303
|
-
}
|
|
304
299
|
const prevId = node.dataset.viewerId;
|
|
305
300
|
if (prevId)
|
|
306
301
|
clearInterval(Number(prevId));
|
|
302
|
+
const { min, max, interval = 5000 } = viewersConfig;
|
|
307
303
|
const clamp = (v) => Math.min(max, Math.max(min, v));
|
|
308
304
|
const initialValue = Math.floor(Math.random() * (max - min + 1)) + min;
|
|
309
305
|
node.textContent = String(initialValue);
|
|
@@ -314,7 +310,6 @@ const commonService = {
|
|
|
314
310
|
node.textContent = String(clamp(Math.round(next)));
|
|
315
311
|
}, interval);
|
|
316
312
|
node.dataset.viewerId = String(id);
|
|
317
|
-
node.dataset.viewerConfig = configKey;
|
|
318
313
|
},
|
|
319
314
|
startCountdown: (node, countdownSeconds = 599) => {
|
|
320
315
|
if (!node)
|
|
@@ -344,10 +339,6 @@ const commonService = {
|
|
|
344
339
|
startComprandoCount: (node, min = 4, max = 16) => {
|
|
345
340
|
if (!node)
|
|
346
341
|
return;
|
|
347
|
-
const configKey = `${min}-${max}`;
|
|
348
|
-
if (node.dataset.comprandoId && node.dataset.comprandoConfig === configKey) {
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
342
|
const prevId = node.dataset.comprandoId;
|
|
352
343
|
if (prevId)
|
|
353
344
|
clearInterval(Number(prevId));
|
|
@@ -364,7 +355,6 @@ const commonService = {
|
|
|
364
355
|
node.textContent = String(next);
|
|
365
356
|
}, 5000); // Update every 5 seconds
|
|
366
357
|
node.dataset.comprandoId = String(id);
|
|
367
|
-
node.dataset.comprandoConfig = configKey;
|
|
368
358
|
},
|
|
369
359
|
};
|
|
370
360
|
export default commonService;
|
package/package.json
CHANGED
package/src/KuposUIComponent.tsx
CHANGED
|
@@ -32,9 +32,6 @@ interface KuposUIComponentProps {
|
|
|
32
32
|
orignLabel?: string;
|
|
33
33
|
destinationLabel?: string;
|
|
34
34
|
t?: (key: string) => string;
|
|
35
|
-
ticketQuantity?: number;
|
|
36
|
-
onIncreaseTicketQuantity?: (serviceItem: any) => void;
|
|
37
|
-
onDecreaseTicketQuantity?: (serviceItem: any) => void;
|
|
38
35
|
|
|
39
36
|
// New ServiceItem props
|
|
40
37
|
id?: string;
|