kupos-ui-components-lib 9.7.7 → 9.7.8
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/PeruServiceItemDesktop.d.ts +1 -1
- package/dist/components/ServiceItem/PeruServiceItemDesktop.js +188 -134
- package/dist/components/ServiceItem/ServiceItemDesktop.d.ts +1 -1
- package/dist/components/ServiceItem/ServiceItemDesktop.js +2 -15
- 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 +0 -22
- package/dist/styles.css +0 -221
- package/dist/ui/FeatureServiceUI/FeatureServiceUi.js +1 -1
- package/dist/utils/CommonService.js +1 -11
- package/package.json +1 -1
- package/src/KuposUIComponent.tsx +0 -3
- package/src/components/ServiceItem/PeruServiceItemDesktop.tsx +345 -254
- package/src/components/ServiceItem/ServiceItemDesktop.tsx +5 -49
- package/src/components/ServiceItem/ServiceItemMobile.tsx +286 -340
- package/src/components/ServiceItem/mobileTypes.ts +1 -29
- package/src/components/ServiceItem/types.ts +1 -23
- package/src/styles.css +0 -15
- package/src/utils/CommonService.ts +1 -13
- 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 -517
- package/src/ui/FeatureServiceUI/FeatureServiceUi.tsx +0 -554
|
@@ -27,7 +27,6 @@ import bombAnimation from "../../assets/images/anims/service_list/bomb.json";
|
|
|
27
27
|
import dotAnimation from "../../assets/images/anims/service_list/dot_animation.json";
|
|
28
28
|
import starAnimation from "../../assets/images/anims/service_list/star_anim.json";
|
|
29
29
|
import femaleAnimation from "../../assets/images/anims/service_list/female_anim.json";
|
|
30
|
-
import usersAnimation from "../../assets/images/anims/service_list/users_anim.json";
|
|
31
30
|
|
|
32
31
|
import RatingBlock from "../../ui/RatingBlock";
|
|
33
32
|
import DurationBlock from "../../ui/DurationBlock";
|
|
@@ -38,9 +37,6 @@ import KuposButton from "../../ui/KuposButton/KuposButton";
|
|
|
38
37
|
import BottomAmenities from "../../ui/BottomAmenities/BottomAmenities";
|
|
39
38
|
import SeatSection from "../../ui/SeatSection/SeatSection";
|
|
40
39
|
import DateTimeSection from "../../ui/DateTimeSection/DateTimeSection";
|
|
41
|
-
import FeatureServiceUi from "../../ui/FeatureServiceUI/FeatureServiceUi";
|
|
42
|
-
|
|
43
|
-
import thunderAnimation from "../../assets/images/anims/service_list/thunder_icon.json";
|
|
44
40
|
import ServiceBadges from "../../ui/ServiceBadges/ServiceBadges";
|
|
45
41
|
|
|
46
42
|
const SEAT_EXCEPTIONS = ["Asiento mascota"];
|
|
@@ -75,9 +71,6 @@ const ANIMATION_MAP: Record<string, Record<string, any>> = {
|
|
|
75
71
|
bombAnimation: {
|
|
76
72
|
kupos: bombAnimation,
|
|
77
73
|
},
|
|
78
|
-
thunderAnimation: {
|
|
79
|
-
kupos: thunderAnimation,
|
|
80
|
-
},
|
|
81
74
|
dotAnimation: {
|
|
82
75
|
kupos: dotAnimation,
|
|
83
76
|
},
|
|
@@ -87,9 +80,6 @@ const ANIMATION_MAP: Record<string, Record<string, any>> = {
|
|
|
87
80
|
femaaleAnimation: {
|
|
88
81
|
kupos: femaleAnimation,
|
|
89
82
|
},
|
|
90
|
-
usersAnimation: {
|
|
91
|
-
kupos: usersAnimation,
|
|
92
|
-
},
|
|
93
83
|
};
|
|
94
84
|
|
|
95
85
|
function ServiceItemPB({
|
|
@@ -123,20 +113,9 @@ function ServiceItemPB({
|
|
|
123
113
|
setIsExpand,
|
|
124
114
|
coachKey,
|
|
125
115
|
viewersConfig,
|
|
126
|
-
isNewUi,
|
|
127
116
|
showLoginModal,
|
|
128
117
|
isLoggedIn,
|
|
129
118
|
showLoginOption,
|
|
130
|
-
isFeatureDropDownExpand,
|
|
131
|
-
setIsFeatureDropDownExpand,
|
|
132
|
-
ticketQuantity,
|
|
133
|
-
onIncreaseTicketQuantity,
|
|
134
|
-
onDecreaseTicketQuantity,
|
|
135
|
-
onRemateUiButtonClick,
|
|
136
|
-
selectedTimeSlot,
|
|
137
|
-
onTimeSlotChange,
|
|
138
|
-
isTimeDropdownOpen,
|
|
139
|
-
onTimeDropdownToggle,
|
|
140
119
|
}: ServiceItemProps & { currencySign?: string }): React.ReactElement {
|
|
141
120
|
const getAnimationIcon = (icon: string) => {
|
|
142
121
|
const animation = ANIMATION_MAP[icon];
|
|
@@ -435,35 +414,12 @@ function ServiceItemPB({
|
|
|
435
414
|
isPeru={isPeru}
|
|
436
415
|
siteType={siteType}
|
|
437
416
|
isAllinBus={isAllinBus}
|
|
438
|
-
/>
|
|
439
|
-
) : isNewUi ? (
|
|
440
|
-
<FeatureServiceUi
|
|
441
|
-
serviceItem={serviceItem}
|
|
442
|
-
showTopLabel={showTopLabel}
|
|
443
|
-
isSoldOut={isSoldOut}
|
|
444
|
-
getAnimationIcon={getAnimationIcon}
|
|
445
|
-
cityOrigin={cityOrigin}
|
|
446
|
-
cityDestination={cityDestination}
|
|
447
|
-
renderIcon={renderIcon}
|
|
448
417
|
viewersConfig={viewersConfig}
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
onToggleExpand={() =>
|
|
455
|
-
setIsFeatureDropDownExpand &&
|
|
456
|
-
setIsFeatureDropDownExpand(
|
|
457
|
-
isFeatureDropDownExpand === serviceItem.id ||
|
|
458
|
-
isFeatureDropDownExpand === true
|
|
459
|
-
? null
|
|
460
|
-
: serviceItem.id,
|
|
461
|
-
)
|
|
462
|
-
}
|
|
463
|
-
selectedTimeSlot={selectedTimeSlot}
|
|
464
|
-
onTimeSlotChange={onTimeSlotChange}
|
|
465
|
-
isTimeDropdownOpen={isTimeDropdownOpen}
|
|
466
|
-
onTimeDropdownToggle={onTimeDropdownToggle}
|
|
418
|
+
isLoggedIn={isLoggedIn}
|
|
419
|
+
showLoginModal={showLoginModal}
|
|
420
|
+
isExpand={isExpand}
|
|
421
|
+
setIsExpand={setIsExpand}
|
|
422
|
+
coachKey={coachKey}
|
|
467
423
|
/>
|
|
468
424
|
) : (
|
|
469
425
|
<div
|