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.
@@ -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
- isFeatureDropDownExpand={isFeatureDropDownExpand}
450
- ticketQuantity={ticketQuantity}
451
- onIncreaseTicketQuantity={onIncreaseTicketQuantity}
452
- onDecreaseTicketQuantity={onDecreaseTicketQuantity}
453
- onBookButtonPress={onRemateUiButtonClick}
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