kupos-ui-components-lib 9.6.8 → 9.6.10
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/components/ServiceItem/PeruServiceItemDesktop.d.ts +1 -1
- package/dist/components/ServiceItem/PeruServiceItemDesktop.js +189 -133
- package/dist/components/ServiceItem/ServiceItemDesktop.d.ts +1 -1
- package/dist/components/ServiceItem/ServiceItemDesktop.js +4 -9
- package/dist/components/ServiceItem/ServiceItemMobile.js +1 -1
- package/dist/components/ServiceItem/types.d.ts +0 -7
- package/dist/styles.css +0 -129
- package/dist/ui/ExpendedDropDown/ExpandedDropdown.js +6 -2
- package/dist/ui/mobileweb/ExpandedDropdownMobile.d.ts +3 -1
- package/dist/ui/mobileweb/ExpandedDropdownMobile.js +9 -3
- package/package.json +1 -1
- package/src/components/ServiceItem/PeruServiceItemDesktop.tsx +322 -255
- package/src/components/ServiceItem/ServiceItemDesktop.tsx +7 -20
- package/src/components/ServiceItem/ServiceItemMobile.tsx +2 -0
- package/src/components/ServiceItem/types.ts +0 -8
- package/src/ui/ExpendedDropDown/ExpandedDropdown.tsx +17 -3
- package/src/ui/mobileweb/ExpandedDropdownMobile.tsx +24 -2
- package/src/assets/images/anims/service_list/thunder_icon.json +0 -1
- package/src/ui/FeatureServiceUI/FeatureServiceUi.tsx +0 -549
package/dist/styles.css
CHANGED
|
@@ -63,9 +63,6 @@
|
|
|
63
63
|
.right-\[0px\] {
|
|
64
64
|
right: 0px;
|
|
65
65
|
}
|
|
66
|
-
.right-\[18px\] {
|
|
67
|
-
right: 18px;
|
|
68
|
-
}
|
|
69
66
|
.-bottom-\[9\%\] {
|
|
70
67
|
bottom: calc(9% * -1);
|
|
71
68
|
}
|
|
@@ -78,9 +75,6 @@
|
|
|
78
75
|
.-bottom-\[36px\] {
|
|
79
76
|
bottom: calc(36px * -1);
|
|
80
77
|
}
|
|
81
|
-
.bottom-\[11px\] {
|
|
82
|
-
bottom: 11px;
|
|
83
|
-
}
|
|
84
78
|
.bottom-\[35px\] {
|
|
85
79
|
bottom: 35px;
|
|
86
80
|
}
|
|
@@ -195,21 +189,12 @@
|
|
|
195
189
|
.mt-\[5px\] {
|
|
196
190
|
margin-top: 5px;
|
|
197
191
|
}
|
|
198
|
-
.mt-\[6px\] {
|
|
199
|
-
margin-top: 6px;
|
|
200
|
-
}
|
|
201
|
-
.mt-\[8px\] {
|
|
202
|
-
margin-top: 8px;
|
|
203
|
-
}
|
|
204
192
|
.mt-\[10px\] {
|
|
205
193
|
margin-top: 10px;
|
|
206
194
|
}
|
|
207
195
|
.mt-\[13px\] {
|
|
208
196
|
margin-top: 13px;
|
|
209
197
|
}
|
|
210
|
-
.mt-\[14px\] {
|
|
211
|
-
margin-top: 14px;
|
|
212
|
-
}
|
|
213
198
|
.mt-\[15px\] {
|
|
214
199
|
margin-top: 15px;
|
|
215
200
|
}
|
|
@@ -249,9 +234,6 @@
|
|
|
249
234
|
.mb-\[5px\] {
|
|
250
235
|
margin-bottom: 5px;
|
|
251
236
|
}
|
|
252
|
-
.mb-\[6px\] {
|
|
253
|
-
margin-bottom: 6px;
|
|
254
|
-
}
|
|
255
237
|
.mb-\[8px\] {
|
|
256
238
|
margin-bottom: 8px;
|
|
257
239
|
}
|
|
@@ -297,9 +279,6 @@
|
|
|
297
279
|
.ml-\[10px\] {
|
|
298
280
|
margin-left: 10px;
|
|
299
281
|
}
|
|
300
|
-
.ml-\[12px\] {
|
|
301
|
-
margin-left: 12px;
|
|
302
|
-
}
|
|
303
282
|
.ml-\[50px\] {
|
|
304
283
|
margin-left: 50px;
|
|
305
284
|
}
|
|
@@ -393,9 +372,6 @@
|
|
|
393
372
|
.w-\[20px\] {
|
|
394
373
|
width: 20px;
|
|
395
374
|
}
|
|
396
|
-
.w-\[30px\] {
|
|
397
|
-
width: 30px;
|
|
398
|
-
}
|
|
399
375
|
.w-\[50\%\] {
|
|
400
376
|
width: 50%;
|
|
401
377
|
}
|
|
@@ -420,12 +396,6 @@
|
|
|
420
396
|
.w-\[115px\] {
|
|
421
397
|
width: 115px;
|
|
422
398
|
}
|
|
423
|
-
.w-\[120px\] {
|
|
424
|
-
width: 120px;
|
|
425
|
-
}
|
|
426
|
-
.w-\[130px\] {
|
|
427
|
-
width: 130px;
|
|
428
|
-
}
|
|
429
399
|
.w-\[150px\] {
|
|
430
400
|
width: 150px;
|
|
431
401
|
}
|
|
@@ -464,12 +434,6 @@
|
|
|
464
434
|
.max-w-\[165px\] {
|
|
465
435
|
max-width: 165px;
|
|
466
436
|
}
|
|
467
|
-
.max-w-\[220px\] {
|
|
468
|
-
max-width: 220px;
|
|
469
|
-
}
|
|
470
|
-
.max-w-full {
|
|
471
|
-
max-width: 100%;
|
|
472
|
-
}
|
|
473
437
|
.min-w-\[75px\] {
|
|
474
438
|
min-width: 75px;
|
|
475
439
|
}
|
|
@@ -512,15 +476,9 @@
|
|
|
512
476
|
.grid-cols-2 {
|
|
513
477
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
514
478
|
}
|
|
515
|
-
.grid-cols-4 {
|
|
516
|
-
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
517
|
-
}
|
|
518
479
|
.grid-cols-\[0\.8fr_auto_26\%_1fr\] {
|
|
519
480
|
grid-template-columns: 0.8fr auto 26% 1fr;
|
|
520
481
|
}
|
|
521
|
-
.grid-cols-\[1\.3fr_2fr_1\.2fr\] {
|
|
522
|
-
grid-template-columns: 1.3fr 2fr 1.2fr;
|
|
523
|
-
}
|
|
524
482
|
.grid-cols-\[1\.5fr_1fr_auto\] {
|
|
525
483
|
grid-template-columns: 1.5fr 1fr auto;
|
|
526
484
|
}
|
|
@@ -551,9 +509,6 @@
|
|
|
551
509
|
.items-start {
|
|
552
510
|
align-items: flex-start;
|
|
553
511
|
}
|
|
554
|
-
.items-stretch {
|
|
555
|
-
align-items: stretch;
|
|
556
|
-
}
|
|
557
512
|
.justify-between {
|
|
558
513
|
justify-content: space-between;
|
|
559
514
|
}
|
|
@@ -596,12 +551,6 @@
|
|
|
596
551
|
.gap-\[14px\] {
|
|
597
552
|
gap: 14px;
|
|
598
553
|
}
|
|
599
|
-
.gap-\[16px\] {
|
|
600
|
-
gap: 16px;
|
|
601
|
-
}
|
|
602
|
-
.gap-\[20px\] {
|
|
603
|
-
gap: 20px;
|
|
604
|
-
}
|
|
605
554
|
.gap-x-\[2\%\] {
|
|
606
555
|
-moz-column-gap: 2%;
|
|
607
556
|
column-gap: 2%;
|
|
@@ -610,29 +559,18 @@
|
|
|
610
559
|
-moz-column-gap: 8px;
|
|
611
560
|
column-gap: 8px;
|
|
612
561
|
}
|
|
613
|
-
.truncate {
|
|
614
|
-
overflow: hidden;
|
|
615
|
-
text-overflow: ellipsis;
|
|
616
|
-
white-space: nowrap;
|
|
617
|
-
}
|
|
618
562
|
.overflow-hidden {
|
|
619
563
|
overflow: hidden;
|
|
620
564
|
}
|
|
621
565
|
.overflow-y-hidden {
|
|
622
566
|
overflow-y: hidden;
|
|
623
567
|
}
|
|
624
|
-
.rounded-\[4px\] {
|
|
625
|
-
border-radius: 4px;
|
|
626
|
-
}
|
|
627
568
|
.rounded-\[8px\] {
|
|
628
569
|
border-radius: 8px;
|
|
629
570
|
}
|
|
630
571
|
.rounded-\[10px\] {
|
|
631
572
|
border-radius: 10px;
|
|
632
573
|
}
|
|
633
|
-
.rounded-\[12px\] {
|
|
634
|
-
border-radius: 12px;
|
|
635
|
-
}
|
|
636
574
|
.rounded-\[14px\] {
|
|
637
575
|
border-radius: 14px;
|
|
638
576
|
}
|
|
@@ -682,10 +620,6 @@
|
|
|
682
620
|
border-top-style: var(--tw-border-style);
|
|
683
621
|
border-top-width: 8px;
|
|
684
622
|
}
|
|
685
|
-
.border-r {
|
|
686
|
-
border-right-style: var(--tw-border-style);
|
|
687
|
-
border-right-width: 1px;
|
|
688
|
-
}
|
|
689
623
|
.border-r-8 {
|
|
690
624
|
border-right-style: var(--tw-border-style);
|
|
691
625
|
border-right-width: 8px;
|
|
@@ -714,10 +648,6 @@
|
|
|
714
648
|
border-bottom-style: var(--tw-border-style);
|
|
715
649
|
border-bottom-width: 8px;
|
|
716
650
|
}
|
|
717
|
-
.border-l {
|
|
718
|
-
border-left-style: var(--tw-border-style);
|
|
719
|
-
border-left-width: 1px;
|
|
720
|
-
}
|
|
721
651
|
.border-l-8 {
|
|
722
652
|
border-left-style: var(--tw-border-style);
|
|
723
653
|
border-left-width: 8px;
|
|
@@ -734,9 +664,6 @@
|
|
|
734
664
|
--tw-border-style: none;
|
|
735
665
|
border-style: none;
|
|
736
666
|
}
|
|
737
|
-
.border-\[\#363c48\] {
|
|
738
|
-
border-color: #363c48;
|
|
739
|
-
}
|
|
740
667
|
.border-\[\#ccc\] {
|
|
741
668
|
border-color: #ccc;
|
|
742
669
|
}
|
|
@@ -755,15 +682,9 @@
|
|
|
755
682
|
.border-l-transparent {
|
|
756
683
|
border-left-color: transparent;
|
|
757
684
|
}
|
|
758
|
-
.bg-\[\#0C1421\] {
|
|
759
|
-
background-color: #0C1421;
|
|
760
|
-
}
|
|
761
685
|
.bg-\[\#E6E6E6\] {
|
|
762
686
|
background-color: #E6E6E6;
|
|
763
687
|
}
|
|
764
|
-
.bg-\[\#FF8F45\] {
|
|
765
|
-
background-color: #FF8F45;
|
|
766
|
-
}
|
|
767
688
|
.bg-\[\#FFF2F2\] {
|
|
768
689
|
background-color: #FFF2F2;
|
|
769
690
|
}
|
|
@@ -804,9 +725,6 @@
|
|
|
804
725
|
.p-\[10px_15px\] {
|
|
805
726
|
padding: 10px 15px;
|
|
806
727
|
}
|
|
807
|
-
.p-\[14px\] {
|
|
808
|
-
padding: 14px;
|
|
809
|
-
}
|
|
810
728
|
.p-\[15px\] {
|
|
811
729
|
padding: 15px;
|
|
812
730
|
}
|
|
@@ -840,15 +758,9 @@
|
|
|
840
758
|
.px-\[15px\] {
|
|
841
759
|
padding-inline: 15px;
|
|
842
760
|
}
|
|
843
|
-
.px-\[16px\] {
|
|
844
|
-
padding-inline: 16px;
|
|
845
|
-
}
|
|
846
761
|
.px-\[20px\] {
|
|
847
762
|
padding-inline: 20px;
|
|
848
763
|
}
|
|
849
|
-
.py-\[2px\] {
|
|
850
|
-
padding-block: 2px;
|
|
851
|
-
}
|
|
852
764
|
.py-\[4px\] {
|
|
853
765
|
padding-block: 4px;
|
|
854
766
|
}
|
|
@@ -873,12 +785,6 @@
|
|
|
873
785
|
.pt-\[6px\] {
|
|
874
786
|
padding-top: 6px;
|
|
875
787
|
}
|
|
876
|
-
.pt-\[10px\] {
|
|
877
|
-
padding-top: 10px;
|
|
878
|
-
}
|
|
879
|
-
.pt-\[14px\] {
|
|
880
|
-
padding-top: 14px;
|
|
881
|
-
}
|
|
882
788
|
.pt-\[20px\] {
|
|
883
789
|
padding-top: 20px;
|
|
884
790
|
}
|
|
@@ -903,9 +809,6 @@
|
|
|
903
809
|
.pr-\[22px\] {
|
|
904
810
|
padding-right: 22px;
|
|
905
811
|
}
|
|
906
|
-
.pb-\[6px\] {
|
|
907
|
-
padding-bottom: 6px;
|
|
908
|
-
}
|
|
909
812
|
.pb-\[7px\] {
|
|
910
813
|
padding-bottom: 7px;
|
|
911
814
|
}
|
|
@@ -972,12 +875,6 @@
|
|
|
972
875
|
.text-\[22px\] {
|
|
973
876
|
font-size: 22px;
|
|
974
877
|
}
|
|
975
|
-
.text-\[26px\] {
|
|
976
|
-
font-size: 26px;
|
|
977
|
-
}
|
|
978
|
-
.text-\[28px\] {
|
|
979
|
-
font-size: 28px;
|
|
980
|
-
}
|
|
981
878
|
.text-\[42px\] {
|
|
982
879
|
font-size: 42px;
|
|
983
880
|
}
|
|
@@ -985,10 +882,6 @@
|
|
|
985
882
|
--tw-leading: 1.3;
|
|
986
883
|
line-height: 1.3;
|
|
987
884
|
}
|
|
988
|
-
.leading-\[14px\] {
|
|
989
|
-
--tw-leading: 14px;
|
|
990
|
-
line-height: 14px;
|
|
991
|
-
}
|
|
992
885
|
.leading-\[20px\] {
|
|
993
886
|
--tw-leading: 20px;
|
|
994
887
|
line-height: 20px;
|
|
@@ -1009,10 +902,6 @@
|
|
|
1009
902
|
--tw-leading: 1;
|
|
1010
903
|
line-height: 1;
|
|
1011
904
|
}
|
|
1012
|
-
.font-\[9px\] {
|
|
1013
|
-
--tw-font-weight: 9px;
|
|
1014
|
-
font-weight: 9px;
|
|
1015
|
-
}
|
|
1016
905
|
.font-\[14px\] {
|
|
1017
906
|
--tw-font-weight: 14px;
|
|
1018
907
|
font-weight: 14px;
|
|
@@ -1034,27 +923,12 @@
|
|
|
1034
923
|
.whitespace-nowrap {
|
|
1035
924
|
white-space: nowrap;
|
|
1036
925
|
}
|
|
1037
|
-
.text-\[\#4a4a4a\] {
|
|
1038
|
-
color: #4a4a4a;
|
|
1039
|
-
}
|
|
1040
926
|
.text-\[\#9f9f9f\] {
|
|
1041
927
|
color: #9f9f9f;
|
|
1042
928
|
}
|
|
1043
|
-
.text-\[\#666\] {
|
|
1044
|
-
color: #666;
|
|
1045
|
-
}
|
|
1046
|
-
.text-\[\#171717\] {
|
|
1047
|
-
color: #171717;
|
|
1048
|
-
}
|
|
1049
|
-
.text-\[\#272727\] {
|
|
1050
|
-
color: #272727;
|
|
1051
|
-
}
|
|
1052
929
|
.text-\[\#464647\] {
|
|
1053
930
|
color: #464647;
|
|
1054
931
|
}
|
|
1055
|
-
.text-\[\#FF8F45\] {
|
|
1056
|
-
color: #FF8F45;
|
|
1057
|
-
}
|
|
1058
932
|
.text-\[\#c0c0c0\] {
|
|
1059
933
|
color: #c0c0c0;
|
|
1060
934
|
}
|
|
@@ -1070,9 +944,6 @@
|
|
|
1070
944
|
.text-\[\#fff\] {
|
|
1071
945
|
color: #fff;
|
|
1072
946
|
}
|
|
1073
|
-
.text-\[red\] {
|
|
1074
|
-
color: red;
|
|
1075
|
-
}
|
|
1076
947
|
.capitalize {
|
|
1077
948
|
text-transform: capitalize;
|
|
1078
949
|
}
|
|
@@ -9,7 +9,9 @@ function ExpandedDropdown({ serviceItem, isPeru = false, translation = {}, getAn
|
|
|
9
9
|
} },
|
|
10
10
|
React.createElement("div", { className: "flex flex-col gap-[6px] text-[13px] text-[#464647]", style: { lineHeight: 1.5, opacity: isSoldOut ? 0.5 : 1 } },
|
|
11
11
|
isPeru ? null : isChangeTicket ? (React.createElement("div", { className: "flex gap-[8px]", style: { lineHeight: 1.5 } },
|
|
12
|
-
React.createElement("span", { style: { marginTop: "2px" } },
|
|
12
|
+
React.createElement("span", { style: { marginTop: "2px" } },
|
|
13
|
+
" ",
|
|
14
|
+
React.createElement(LottiePlayer, { animationData: getAnimationIcon("flexibleIcon"), width: "20px", height: "20px" })),
|
|
13
15
|
React.createElement("span", null,
|
|
14
16
|
React.createElement("span", { className: "bold-text" }, "Pasaje flexible:"),
|
|
15
17
|
" Tu pasaje puede ser cambiado de manera online",
|
|
@@ -32,7 +34,9 @@ function ExpandedDropdown({ serviceItem, isPeru = false, translation = {}, getAn
|
|
|
32
34
|
ladiesBookedSeats &&
|
|
33
35
|
String(ladiesBookedSeats).trim() !== "" &&
|
|
34
36
|
isDpEnabled === true && (React.createElement("div", { className: "flex gap-[6px]" },
|
|
35
|
-
React.createElement("span", { style: { marginTop: "2px" } },
|
|
37
|
+
React.createElement("span", { style: { marginTop: "2px" } },
|
|
38
|
+
" ",
|
|
39
|
+
React.createElement(LottiePlayer, { animationData: getAnimationIcon("femaaleAnimation"), width: "20px", height: "20px" })),
|
|
36
40
|
React.createElement("span", null,
|
|
37
41
|
React.createElement("span", { className: "bold-text" }, "Asientos para damas:"),
|
|
38
42
|
" Esta empresa cuenta con asientos recomendados para mujeres."))),
|
|
@@ -13,6 +13,8 @@ interface ExpandedDropdownMobileProps {
|
|
|
13
13
|
isChangeTicket?: boolean;
|
|
14
14
|
ladiesBookedSeats?: string;
|
|
15
15
|
isDpEnabled?: boolean;
|
|
16
|
+
femaleAnim?: any;
|
|
17
|
+
flexibleAnim?: any;
|
|
16
18
|
}
|
|
17
|
-
declare function ExpandedDropdownMobile({ serviceItem, isPeru, petSeatInfo, petFriendlyAnim, isSoldOut, isChangeTicket, ladiesBookedSeats, isDpEnabled, }: ExpandedDropdownMobileProps): React.ReactElement;
|
|
19
|
+
declare function ExpandedDropdownMobile({ serviceItem, isPeru, petSeatInfo, petFriendlyAnim, isSoldOut, isChangeTicket, ladiesBookedSeats, isDpEnabled, femaleAnim, flexibleAnim, }: ExpandedDropdownMobileProps): React.ReactElement;
|
|
18
20
|
export default ExpandedDropdownMobile;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import LottiePlayer from "../../assets/LottiePlayer";
|
|
3
|
-
function ExpandedDropdownMobile({ serviceItem, isPeru, petSeatInfo, petFriendlyAnim, isSoldOut, isChangeTicket = false, ladiesBookedSeats, isDpEnabled, }) {
|
|
3
|
+
function ExpandedDropdownMobile({ serviceItem, isPeru, petSeatInfo, petFriendlyAnim, isSoldOut, isChangeTicket = false, ladiesBookedSeats, isDpEnabled, femaleAnim, flexibleAnim, }) {
|
|
4
4
|
return (React.createElement("div", { className: "px-[12px] pt-[22px] pb-[12px] relative -z-9", style: {
|
|
5
5
|
backgroundColor: "#ffefef",
|
|
6
6
|
borderRadius: "0 0 14px 14px",
|
|
@@ -19,7 +19,10 @@ function ExpandedDropdownMobile({ serviceItem, isPeru, petSeatInfo, petFriendlyA
|
|
|
19
19
|
" horas antes"),
|
|
20
20
|
" ",
|
|
21
21
|
"de la salida del bus. El monto ser\u00E1 reembolsado a tu billetera kupospay."))) : (React.createElement("div", { className: "flex gap-[8px] " },
|
|
22
|
-
React.createElement("span", { style: { marginTop: "2px" } },
|
|
22
|
+
React.createElement("span", { style: { marginTop: "2px" } },
|
|
23
|
+
" ",
|
|
24
|
+
React.createElement("div", null,
|
|
25
|
+
React.createElement(LottiePlayer, { animationData: flexibleAnim, width: "16px", height: "16px" }))),
|
|
23
26
|
React.createElement("span", null,
|
|
24
27
|
React.createElement("span", null,
|
|
25
28
|
React.createElement("span", { className: "bold-text" }, "Pasaje flexible:"),
|
|
@@ -27,7 +30,10 @@ function ExpandedDropdownMobile({ serviceItem, isPeru, petSeatInfo, petFriendlyA
|
|
|
27
30
|
ladiesBookedSeats &&
|
|
28
31
|
String(ladiesBookedSeats).trim() !== "" &&
|
|
29
32
|
isDpEnabled === true && (React.createElement("div", { className: "flex gap-[6px]" },
|
|
30
|
-
React.createElement("span", { style: { marginTop: "2px" } },
|
|
33
|
+
React.createElement("span", { style: { marginTop: "2px" } },
|
|
34
|
+
" ",
|
|
35
|
+
React.createElement("div", null,
|
|
36
|
+
React.createElement(LottiePlayer, { animationData: femaleAnim, width: "16px", height: "16px" }))),
|
|
31
37
|
React.createElement("span", null,
|
|
32
38
|
React.createElement("span", { className: "bold-text" }, "Asientos para damas:"),
|
|
33
39
|
" Esta empresa cuenta con asientos recomendados para mujeres."))),
|