kupos-ui-components-lib 9.7.4 → 9.7.6

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.
Files changed (31) hide show
  1. package/dist/KuposUIComponent.d.ts +0 -3
  2. package/dist/components/ServiceItem/ServiceItemDesktop.d.ts +1 -1
  3. package/dist/components/ServiceItem/ServiceItemDesktop.js +2 -15
  4. package/dist/components/ServiceItem/ServiceItemMobile.d.ts +1 -1
  5. package/dist/components/ServiceItem/ServiceItemMobile.js +7 -16
  6. package/dist/components/ServiceItem/mobileTypes.d.ts +3 -28
  7. package/dist/components/ServiceItem/types.d.ts +0 -18
  8. package/dist/styles.css +9 -165
  9. package/dist/types.d.ts +3 -0
  10. package/dist/ui/BottomAmenities/BottomAmenities.js +1 -1
  11. package/dist/ui/ExpendedDropDown/ExpandedDropdown.js +7 -14
  12. package/dist/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.js +101 -31
  13. package/dist/ui/SeatSection/SeatSection.js +1 -1
  14. package/dist/ui/mobileweb/ExpandedDropdownMobile.js +6 -15
  15. package/dist/utils/CommonService.js +1 -11
  16. package/package.json +1 -1
  17. package/src/KuposUIComponent.tsx +0 -3
  18. package/src/components/ServiceItem/ServiceItemDesktop.tsx +0 -42
  19. package/src/components/ServiceItem/ServiceItemMobile.tsx +286 -332
  20. package/src/components/ServiceItem/mobileTypes.ts +4 -24
  21. package/src/components/ServiceItem/types.ts +0 -19
  22. package/src/types.ts +3 -0
  23. package/src/ui/BottomAmenities/BottomAmenities.tsx +1 -1
  24. package/src/ui/ExpendedDropDown/ExpandedDropdown.tsx +12 -26
  25. package/src/ui/SeatSection/SeatSection.tsx +1 -1
  26. package/src/ui/mobileweb/ExpandedDropdownMobile.tsx +14 -34
  27. package/src/utils/CommonService.ts +1 -13
  28. package/src/assets/images/anims/service_list/thunder_icon.json +0 -1
  29. package/src/assets/images/anims/service_list/users_anim.json +0 -1
  30. package/src/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.tsx +0 -1021
  31. package/src/ui/FeatureServiceUI/FeatureServiceUi.tsx +0 -480
@@ -15,9 +15,6 @@ interface KuposUIComponentProps {
15
15
  orignLabel?: string;
16
16
  destinationLabel?: string;
17
17
  t?: (key: string) => string;
18
- ticketQuantity?: number;
19
- onIncreaseTicketQuantity?: (serviceItem: any) => void;
20
- onDecreaseTicketQuantity?: (serviceItem: any) => void;
21
18
  id?: string;
22
19
  name?: string;
23
20
  description?: string;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ServiceItemProps } from "./types";
3
- declare function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, removeDuplicateSeats, isPeruSites, showAvailableSeats, isSeatIcon, isLinatal, isPeru, t, siteType, isAllinBus, isExpand, setIsExpand, coachKey, viewersConfig, isNewUi, showLoginModal, isLoggedIn, showLoginOption, isFeatureDropDownExpand, setIsFeatureDropDownExpand, ticketQuantity, onIncreaseTicketQuantity, onDecreaseTicketQuantity, onRemateUiButtonClick, }: ServiceItemProps & {
3
+ declare function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, removeDuplicateSeats, isPeruSites, showAvailableSeats, isSeatIcon, isLinatal, isPeru, t, siteType, isAllinBus, isExpand, setIsExpand, coachKey, viewersConfig, showLoginModal, isLoggedIn, showLoginOption, }: ServiceItemProps & {
4
4
  currencySign?: string;
5
5
  }): React.ReactElement;
6
6
  export default ServiceItemPB;
@@ -23,7 +23,6 @@ import bombAnimation from "../../assets/images/anims/service_list/bomb.json";
23
23
  import dotAnimation from "../../assets/images/anims/service_list/dot_animation.json";
24
24
  import starAnimation from "../../assets/images/anims/service_list/star_anim.json";
25
25
  import femaleAnimation from "../../assets/images/anims/service_list/female_anim.json";
26
- import usersAnimation from "../../assets/images/anims/service_list/users_anim.json";
27
26
  import RatingBlock from "../../ui/RatingBlock";
28
27
  import DurationBlock from "../../ui/DurationBlock";
29
28
  import PetBlock from "../../ui/PetBlock";
@@ -33,8 +32,6 @@ import KuposButton from "../../ui/KuposButton/KuposButton";
33
32
  import BottomAmenities from "../../ui/BottomAmenities/BottomAmenities";
34
33
  import SeatSection from "../../ui/SeatSection/SeatSection";
35
34
  import DateTimeSection from "../../ui/DateTimeSection/DateTimeSection";
36
- import FeatureServiceUi from "../../ui/FeatureServiceUI/FeatureServiceUi";
37
- import thunderAnimation from "../../assets/images/anims/service_list/thunder_icon.json";
38
35
  import ServiceBadges from "../../ui/ServiceBadges/ServiceBadges";
39
36
  const SEAT_EXCEPTIONS = ["Asiento mascota"];
40
37
  const ANIMATION_MAP = {
@@ -67,9 +64,6 @@ const ANIMATION_MAP = {
67
64
  bombAnimation: {
68
65
  kupos: bombAnimation,
69
66
  },
70
- thunderAnimation: {
71
- kupos: thunderAnimation,
72
- },
73
67
  dotAnimation: {
74
68
  kupos: dotAnimation,
75
69
  },
@@ -79,11 +73,8 @@ const ANIMATION_MAP = {
79
73
  femaaleAnimation: {
80
74
  kupos: femaleAnimation,
81
75
  },
82
- usersAnimation: {
83
- kupos: usersAnimation,
84
- },
85
76
  };
86
- function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, removeDuplicateSeats, isPeruSites, showAvailableSeats, isSeatIcon, isLinatal, isPeru, t = (key) => key, siteType, isAllinBus, isExpand, setIsExpand, coachKey, viewersConfig, isNewUi, showLoginModal, isLoggedIn, showLoginOption, isFeatureDropDownExpand, setIsFeatureDropDownExpand, ticketQuantity, onIncreaseTicketQuantity, onDecreaseTicketQuantity, onRemateUiButtonClick, }) {
77
+ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, removeDuplicateSeats, isPeruSites, showAvailableSeats, isSeatIcon, isLinatal, isPeru, t = (key) => key, siteType, isAllinBus, isExpand, setIsExpand, coachKey, viewersConfig, showLoginModal, isLoggedIn, showLoginOption, }) {
87
78
  var _a;
88
79
  const getAnimationIcon = (icon) => {
89
80
  var _a;
@@ -252,11 +243,7 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
252
243
  },
253
244
  ];
254
245
  const otherItems = items.filter((i) => i.key !== "pet" && i.key !== "flexible" && !!i.condition);
255
- return (React.createElement(React.Fragment, null, isPeruSites ? (React.createElement(PeruServiceItemDesktop, { serviceItem: serviceItem, onBookButtonPress: onBookButtonPress, colors: colors, metaData: metaData, children: children, busStage: busStage, serviceDetailsLoading: serviceDetailsLoading, cityOrigin: cityOrigin, cityDestination: cityDestination, translation: translation, orignLabel: orignLabel, destinationLabel: destinationLabel, currencySign: currencySign, isCiva: isCiva, showRating: showRating, showLastSeats: showLastSeats, removeArrivalTime: removeArrivalTime, removeDuplicateSeats: removeDuplicateSeats, isPeruSites: isPeruSites, t: (key) => t(key), showAvailableSeats: showAvailableSeats, isSeatIcon: isSeatIcon, isPeru: isPeru, siteType: siteType, isAllinBus: isAllinBus })) : isNewUi ? (React.createElement(FeatureServiceUi, { serviceItem: serviceItem, showTopLabel: showTopLabel, isSoldOut: isSoldOut, getAnimationIcon: getAnimationIcon, cityOrigin: cityOrigin, cityDestination: cityDestination, renderIcon: renderIcon, viewersConfig: viewersConfig, isFeatureDropDownExpand: isFeatureDropDownExpand, ticketQuantity: ticketQuantity, onIncreaseTicketQuantity: onIncreaseTicketQuantity, onDecreaseTicketQuantity: onDecreaseTicketQuantity, onBookButtonPress: onRemateUiButtonClick, onToggleExpand: () => setIsFeatureDropDownExpand &&
256
- setIsFeatureDropDownExpand(isFeatureDropDownExpand === serviceItem.id ||
257
- isFeatureDropDownExpand === true
258
- ? null
259
- : serviceItem.id) })) : (React.createElement("div", { className: `relative hover:z-[150] ${hasOfferText || hasDpEnabled ? "mb-[55px]" : "mb-[10px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
246
+ return (React.createElement(React.Fragment, null, isPeruSites ? (React.createElement(PeruServiceItemDesktop, { serviceItem: serviceItem, onBookButtonPress: onBookButtonPress, colors: colors, metaData: metaData, children: children, busStage: busStage, serviceDetailsLoading: serviceDetailsLoading, cityOrigin: cityOrigin, cityDestination: cityDestination, translation: translation, orignLabel: orignLabel, destinationLabel: destinationLabel, currencySign: currencySign, isCiva: isCiva, showRating: showRating, showLastSeats: showLastSeats, removeArrivalTime: removeArrivalTime, removeDuplicateSeats: removeDuplicateSeats, isPeruSites: isPeruSites, t: (key) => t(key), showAvailableSeats: showAvailableSeats, isSeatIcon: isSeatIcon, isPeru: isPeru, siteType: siteType, isAllinBus: isAllinBus })) : (React.createElement("div", { className: `relative hover:z-[150] ${hasOfferText || hasDpEnabled ? "mb-[55px]" : "mb-[10px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
260
247
  (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.train_type_label) === "Tren Express (Nuevo)" ||
261
248
  showTopLabel
262
249
  ? "mt-[24px]"
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
2
  import { MobileServiceItemProps } from "./mobileTypes";
3
- declare function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, orignLabel, destinationLabel, amenitiesData, setShowDropdown, showDropdown, isExpanded, setIsExpanded, setAmenetiesAtomValue, isCiva, currencySign, isPeru, showRating, showLastSeats, removeDuplicateSeats, isLinatal, viewersConfig, isFeatureDropDownExpand, setIsFeatureDropDownExpand, ticketQuantity, onIncreaseTicketQuantity, onDecreaseTicketQuantity, cityOrigin, cityDestination, isNewUi, onRemateUiButtonClick, }: MobileServiceItemProps): React.ReactElement;
3
+ declare function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, orignLabel, destinationLabel, amenitiesData, setShowDropdown, showDropdown, isExpanded, setIsExpanded, setAmenetiesAtomValue, isCiva, currencySign, isPeru, showRating, showLastSeats, removeDuplicateSeats, isLinatal, viewersConfig, }: MobileServiceItemProps): React.ReactElement;
4
4
  export default ServiceItemMobile;
@@ -5,7 +5,6 @@ import BottomAmenitiesMobile from "../../ui/mobileweb/BottomAmenitiesMobile";
5
5
  import DateTimeSectionMobile from "../../ui/mobileweb/DateTimeSectionMobile";
6
6
  import ExpandedDropdownMobile from "../../ui/mobileweb/ExpandedDropdownMobile";
7
7
  import ServiceBadgesMobile from "../../ui/mobileweb/ServiceBadgesMobile";
8
- import FeatureServiceUiMobile from "../../ui/FeaturServiceUiMobile/FeatureServiceUiMobile";
9
8
  const SEAT_EXCEPTIONS = ["Asiento mascota"];
10
9
  const exceptions = [
11
10
  "gy",
@@ -18,7 +17,7 @@ const exceptions = [
18
17
  "blanco",
19
18
  "asiento_mascota",
20
19
  ];
21
- function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, orignLabel, destinationLabel, amenitiesData, setShowDropdown, showDropdown, isExpanded, setIsExpanded, setAmenetiesAtomValue, isCiva, currencySign, isPeru, showRating, showLastSeats, removeDuplicateSeats, isLinatal, viewersConfig, isFeatureDropDownExpand, setIsFeatureDropDownExpand, ticketQuantity, onIncreaseTicketQuantity, onDecreaseTicketQuantity, cityOrigin, cityDestination, isNewUi, onRemateUiButtonClick, }) {
20
+ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, orignLabel, destinationLabel, amenitiesData, setShowDropdown, showDropdown, isExpanded, setIsExpanded, setAmenetiesAtomValue, isCiva, currencySign, isPeru, showRating, showLastSeats, removeDuplicateSeats, isLinatal, viewersConfig, }) {
22
21
  var _a, _b, _c, _d, _e, _f, _g;
23
22
  const isItemExpanded = serviceItem.id === isExpanded;
24
23
  const isPetSeat = (Object.keys(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.pet_seat_info) || []).length > 0;
@@ -88,11 +87,7 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
88
87
  if (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_transpordo) {
89
88
  isConexion = true;
90
89
  }
91
- return (React.createElement(React.Fragment, null, isNewUi ? (React.createElement(FeatureServiceUiMobile, { serviceItem: serviceItem, showTopLabel: showTopLabel, colors: colors, isSoldOut: isSoldOut, cityOrigin: cityOrigin, cityDestination: cityDestination, renderIcon: renderIcon, viewersConfig: viewersConfig, isFeatureDropDownExpand: isFeatureDropDownExpand, ticketQuantity: ticketQuantity, onIncreaseTicketQuantity: onIncreaseTicketQuantity, onDecreaseTicketQuantity: onDecreaseTicketQuantity, onBookButtonPress: onRemateUiButtonClick, onToggleExpand: () => setIsFeatureDropDownExpand &&
92
- setIsFeatureDropDownExpand(isFeatureDropDownExpand === serviceItem.id ||
93
- isFeatureDropDownExpand === true
94
- ? null
95
- : serviceItem.id) })) : (React.createElement("div", { className: `relative ${!serviceItem.offer_text || !(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled) ? "mb-[14px]" : showTopLabel || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ? "mb-[20px]" : "mb-[12px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
90
+ return (React.createElement("div", { className: `relative ${!serviceItem.offer_text || !(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled) ? "mb-[14px]" : showTopLabel || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ? "mb-[20px]" : "mb-[12px]"} ${(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_direct_trip) ||
96
91
  isConexion ||
97
92
  (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.train_type_label) === "Tren Express (Nuevo)" ||
98
93
  showTopLabel
@@ -113,9 +108,7 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
113
108
  React.createElement("div", { className: "flex items-center" },
114
109
  React.createElement("img", { src: serviceItem.icons.rating, alt: "origin", className: `w-[12px] h-[12px] mr-[4px] object-contain ${isSoldOut ? "grayscale" : ""}` }),
115
110
  React.createElement("span", { style: { lineHeight: "normal" } }, getServiceStars(serviceItem))),
116
- React.createElement("div", { className: "flex items-center cursor-pointer ", style: {
117
- color: isSoldOut ? "#bbb" : "text-[#464647]",
118
- } },
111
+ React.createElement("div", { className: "flex items-center cursor-pointer ", style: { color: isSoldOut ? "#bbb" : "text-[#464647]" } },
119
112
  React.createElement("span", { className: "ml-[3px] min-[420]:text-[13px] text-[12px] text-ellipsis overflow-hidden whitespace-nowrap max-w-[120px]" }, serviceItem.operator_details[2]))))) : null)),
120
113
  React.createElement(DateTimeSectionMobile, { onBookButtonPress: onBookButtonPress, isCiva: isCiva, isSoldOut: isSoldOut, isLinatal: isLinatal, isPeru: isPeru, orignLabel: orignLabel, destinationLabel: destinationLabel, originIcon: (_c = serviceItem.icons) === null || _c === void 0 ? void 0 : _c.origin, destinationIcon: (_d = serviceItem.icons) === null || _d === void 0 ? void 0 : _d.destination, travelDate: serviceItem.travel_date, arrivalDate: serviceItem.arrival_date, depTime: serviceItem.dep_time, arrTime: serviceItem.arr_time, seatTypes: serviceItem.seat_types, seatPriceColor: colors.seatPriceColor, tooltipBgColor: colors.tooltipBgColor, currencySign: currencySign, availableSeats: serviceItem.available_seats, removeDuplicateSeats: removeDuplicateSeats, serviceItem: serviceItem, showLastSeats: showLastSeats, discountSeatPriceColor: colors.discountSeatPriceColor }),
121
114
  hasDiscount && (React.createElement("div", { className: "flex justify-end" }, isSoldOut ? (React.createElement("span", { className: "col-span-2 min-[420]:text-[13px] text-right text-[12px] text-[#ccc]" }, "Agotado")) : null)),
@@ -130,9 +123,7 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
130
123
  React.createElement(ServiceBadgesMobile, { showTopLabel: showTopLabel, isSoldOut: isSoldOut, colors: colors, renderIcon: renderIcon, serviceItem: serviceItem, isConexion: isConexion })),
131
124
  ((serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) || (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled)) &&
132
125
  !isSoldOut && (React.createElement("div", { className: "px-[12px] pt-[22px] pb-[8px] relative -z-9 -mt-[15px]", style: {
133
- background: isSoldOut
134
- ? offerGradientWithOpacity
135
- : offerGradient,
126
+ background: isSoldOut ? offerGradientWithOpacity : offerGradient,
136
127
  // opacity: isSoldOut ? 0.5 : 1,
137
128
  borderRadius: "0 0 14px 14px",
138
129
  zIndex: -1,
@@ -140,8 +131,8 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
140
131
  React.createElement("div", { className: "flex flex-col gap-[8px] text-[12px] min-[420px]:text-[12px] text-[#464647]", style: { lineHeight: 1.6 } },
141
132
  React.createElement("div", { className: "flex justify-between items-center" },
142
133
  (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_dp_enabled) &&
143
- Object.keys((_f = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.dp_discount_percents) !== null && _f !== void 0 ? _f : {})
144
- .length === 0 &&
134
+ Object.keys((_f = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.dp_discount_percents) !== null && _f !== void 0 ? _f : {}).length ===
135
+ 0 &&
145
136
  ((_g = serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.dp_discounted_seats) !== null && _g !== void 0 ? _g : []).length === 0 ? (React.createElement("div", { className: "flex items-center gap-[6px]" },
146
137
  React.createElement(LottiePlayer, { animationData: serviceItem.icons.starAnimation, width: "14px", height: "14px" }),
147
138
  React.createElement("span", { className: "text-[#fff]" }, "M\u00E1s elegido"))) : (React.createElement("div", { className: `flex ${((serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) || "").length > 10 ? "items-start" : "items-center"}` },
@@ -189,6 +180,6 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
189
180
  zIndex: (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) ? -3 : undefined,
190
181
  marginTop: (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) ? "-15px" : "-10px",
191
182
  } },
192
- React.createElement(ExpandedDropdownMobile, { serviceItem: serviceItem, isPeru: isPeru, petSeatInfo: serviceItem.pet_seat_info, petFriendlyAnim: serviceItem.icons.petFriendlyAnim, isSoldOut: isSoldOut, isChangeTicket: serviceItem.is_change_ticket === true, ladiesBookedSeats: serviceItem.ladies_booked_seats, isDpEnabled: serviceItem.is_dp_enabled, femaleAnim: serviceItem.icons.femaleAnim, flexibleAnim: serviceItem.icons.flexibleAnim, renderIcon: renderIcon })))))));
183
+ React.createElement(ExpandedDropdownMobile, { serviceItem: serviceItem, isPeru: isPeru, petSeatInfo: serviceItem.pet_seat_info, petFriendlyAnim: serviceItem.icons.petFriendlyAnim, isSoldOut: isSoldOut, isChangeTicket: serviceItem.is_change_ticket === true, ladiesBookedSeats: serviceItem.ladies_booked_seats, isDpEnabled: serviceItem.is_dp_enabled, femaleAnim: serviceItem.icons.femaleAnim, flexibleAnim: serviceItem.icons.flexibleAnim, renderIcon: renderIcon })))));
193
184
  }
194
185
  export default ServiceItemMobile;
@@ -125,25 +125,14 @@ export interface MobileServiceItemProps {
125
125
  whiteFireIcon?: string;
126
126
  femaleAnim?: string;
127
127
  cancelTicketIcon?: string;
128
- thunderAnim?: string;
129
- personsAnim?: string;
130
- whiteOrigin?: string;
131
- whiteDestination?: string;
132
- userIcon?: string;
133
- sheildIcon?: string;
134
- busIcon?: string;
135
- whiteDownArrow?: string;
136
- empressaIcon?: string;
137
- flexibleIcon?: string;
138
- listoIcon?: string;
139
- precioIcon?: string;
140
- confirmarIcon?: string;
128
+ changeTicketIcon?: string;
129
+ petFriendlyIcon?: string;
130
+ womenSeatIcon?: string;
141
131
  [key: string]: string | Record<string, string | undefined> | undefined;
142
132
  };
143
133
  useLottieFor?: string[];
144
134
  };
145
135
  onBookButtonPress?: () => void;
146
- onRemateUiButtonClick?: () => void;
147
136
  terminals?: any[];
148
137
  showDropdown?: boolean;
149
138
  setShowDropdown?: (value: boolean) => void;
@@ -198,18 +187,4 @@ export interface MobileServiceItemProps {
198
187
  label?: string;
199
188
  icon?: string;
200
189
  };
201
- isFeatureDropDownExpand?: any;
202
- setIsFeatureDropDownExpand?: (value: any) => void;
203
- ticketQuantity?: number;
204
- onIncreaseTicketQuantity?: (serviceItem: MobileServiceItemProps["serviceItem"]) => void;
205
- onDecreaseTicketQuantity?: (serviceItem: MobileServiceItemProps["serviceItem"]) => void;
206
- cityOrigin?: {
207
- value: number;
208
- label: string;
209
- };
210
- cityDestination?: {
211
- value: number;
212
- label: string;
213
- };
214
- isNewUi?: boolean;
215
190
  }
@@ -129,23 +129,11 @@ export interface ServiceItemProps {
129
129
  personIcon?: string;
130
130
  whiteFireIcon?: string;
131
131
  fireIcon?: string;
132
- whiteOrigin?: string;
133
- whiteDestination?: string;
134
- userIcon?: string;
135
- sheildIcon?: string;
136
- busIcon?: string;
137
- whiteDownArrow?: string;
138
- empressaIcon?: string;
139
- flexibleIcon?: string;
140
- listoIcon?: string;
141
- precioIcon?: string;
142
- confirmarIcon?: string;
143
132
  [key: string]: string | Record<string, string | undefined> | undefined;
144
133
  };
145
134
  useLottieFor?: string[];
146
135
  };
147
136
  onBookButtonPress?: () => void;
148
- onRemateUiButtonClick?: () => void;
149
137
  terminals?: any[];
150
138
  t?: (key: string) => string;
151
139
  serviceDetailsLoading?: boolean;
@@ -225,11 +213,6 @@ export interface ServiceItemProps {
225
213
  isAllinBus?: boolean;
226
214
  isExpand?: any;
227
215
  setIsExpand?: (value: any) => void;
228
- isFeatureDropDownExpand?: any;
229
- setIsFeatureDropDownExpand?: (value: any) => void;
230
- ticketQuantity?: number;
231
- onIncreaseTicketQuantity?: (serviceItem: ServiceItemProps["serviceItem"]) => void;
232
- onDecreaseTicketQuantity?: (serviceItem: ServiceItemProps["serviceItem"]) => void;
233
216
  coachKey?: number;
234
217
  viewersConfig?: {
235
218
  min: number;
@@ -238,7 +221,6 @@ export interface ServiceItemProps {
238
221
  label?: string;
239
222
  icon?: string;
240
223
  };
241
- isNewUi?: boolean;
242
224
  showLoginModal?: any;
243
225
  isLoggedIn?: any;
244
226
  showLoginOption?: boolean;
package/dist/styles.css CHANGED
@@ -36,15 +36,15 @@
36
36
  .-top-\[18px\] {
37
37
  top: calc(18px * -1);
38
38
  }
39
- .top-1\/3 {
40
- top: calc(1/3 * 100%);
41
- }
42
39
  .top-\[2px\] {
43
40
  top: 2px;
44
41
  }
45
42
  .top-\[5px\] {
46
43
  top: 5px;
47
44
  }
45
+ .top-\[16px\] {
46
+ top: 16px;
47
+ }
48
48
  .top-\[24px\] {
49
49
  top: 24px;
50
50
  }
@@ -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
  }
@@ -174,21 +168,9 @@
174
168
  .m-\[auto\] {
175
169
  margin: auto;
176
170
  }
177
- .mx-\[6px\] {
178
- margin-inline: 6px;
179
- }
180
- .mx-\[10px\] {
181
- margin-inline: 10px;
182
- }
183
171
  .mx-auto {
184
172
  margin-inline: auto;
185
173
  }
186
- .my-\[8px\] {
187
- margin-block: 8px;
188
- }
189
- .my-\[14px\] {
190
- margin-block: 14px;
191
- }
192
174
  .-mt-\[15px\] {
193
175
  margin-top: calc(15px * -1);
194
176
  }
@@ -207,24 +189,12 @@
207
189
  .mt-\[5px\] {
208
190
  margin-top: 5px;
209
191
  }
210
- .mt-\[6px\] {
211
- margin-top: 6px;
212
- }
213
- .mt-\[8px\] {
214
- margin-top: 8px;
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
  }
@@ -258,6 +228,9 @@
258
228
  .mb-\[2px\] {
259
229
  margin-bottom: 2px;
260
230
  }
231
+ .mb-\[3px\] {
232
+ margin-bottom: 3px;
233
+ }
261
234
  .mb-\[4px\] {
262
235
  margin-bottom: 4px;
263
236
  }
@@ -294,6 +267,9 @@
294
267
  .-ml-\[12px\] {
295
268
  margin-left: calc(12px * -1);
296
269
  }
270
+ .ml-\[2px\] {
271
+ margin-left: 2px;
272
+ }
297
273
  .ml-\[3px\] {
298
274
  margin-left: 3px;
299
275
  }
@@ -369,9 +345,6 @@
369
345
  .h-\[30px\] {
370
346
  height: 30px;
371
347
  }
372
- .h-\[34px\] {
373
- height: 34px;
374
- }
375
348
  .h-\[100\%\] {
376
349
  height: 100%;
377
350
  }
@@ -408,9 +381,6 @@
408
381
  .w-\[20px\] {
409
382
  width: 20px;
410
383
  }
411
- .w-\[34px\] {
412
- width: 34px;
413
- }
414
384
  .w-\[50\%\] {
415
385
  width: 50%;
416
386
  }
@@ -479,12 +449,6 @@
479
449
  .max-w-\[165px\] {
480
450
  max-width: 165px;
481
451
  }
482
- .max-w-\[220px\] {
483
- max-width: 220px;
484
- }
485
- .max-w-full {
486
- max-width: 100%;
487
- }
488
452
  .min-w-\[75px\] {
489
453
  min-width: 75px;
490
454
  }
@@ -515,9 +479,6 @@
515
479
  .cursor-default {
516
480
  cursor: default;
517
481
  }
518
- .cursor-not-allowed {
519
- cursor: not-allowed;
520
- }
521
482
  .cursor-pointer {
522
483
  cursor: pointer;
523
484
  }
@@ -530,21 +491,12 @@
530
491
  .grid-cols-2 {
531
492
  grid-template-columns: repeat(2, minmax(0, 1fr));
532
493
  }
533
- .grid-cols-3 {
534
- grid-template-columns: repeat(3, minmax(0, 1fr));
535
- }
536
- .grid-cols-4 {
537
- grid-template-columns: repeat(4, minmax(0, 1fr));
538
- }
539
494
  .grid-cols-\[0\.8fr_auto_26\%_1fr\] {
540
495
  grid-template-columns: 0.8fr auto 26% 1fr;
541
496
  }
542
497
  .grid-cols-\[1\.5fr_1fr_auto\] {
543
498
  grid-template-columns: 1.5fr 1fr auto;
544
499
  }
545
- .grid-cols-\[23\%_50\%_27\%\] {
546
- grid-template-columns: 23% 50% 27%;
547
- }
548
500
  .grid-cols-\[26px_auto_26\%_1fr\] {
549
501
  grid-template-columns: 26px auto 26% 1fr;
550
502
  }
@@ -572,9 +524,6 @@
572
524
  .items-start {
573
525
  align-items: flex-start;
574
526
  }
575
- .items-stretch {
576
- align-items: stretch;
577
- }
578
527
  .justify-between {
579
528
  justify-content: space-between;
580
529
  }
@@ -617,12 +566,6 @@
617
566
  .gap-\[14px\] {
618
567
  gap: 14px;
619
568
  }
620
- .gap-\[16px\] {
621
- gap: 16px;
622
- }
623
- .gap-\[20px\] {
624
- gap: 20px;
625
- }
626
569
  .gap-x-\[2\%\] {
627
570
  -moz-column-gap: 2%;
628
571
  column-gap: 2%;
@@ -631,20 +574,12 @@
631
574
  -moz-column-gap: 8px;
632
575
  column-gap: 8px;
633
576
  }
634
- .truncate {
635
- overflow: hidden;
636
- text-overflow: ellipsis;
637
- white-space: nowrap;
638
- }
639
577
  .overflow-hidden {
640
578
  overflow: hidden;
641
579
  }
642
580
  .overflow-y-hidden {
643
581
  overflow-y: hidden;
644
582
  }
645
- .rounded-\[4px\] {
646
- border-radius: 4px;
647
- }
648
583
  .rounded-\[8px\] {
649
584
  border-radius: 8px;
650
585
  }
@@ -657,9 +592,6 @@
657
592
  .rounded-\[15px\] {
658
593
  border-radius: 15px;
659
594
  }
660
- .rounded-\[16px\] {
661
- border-radius: 16px;
662
- }
663
595
  .rounded-\[18px\] {
664
596
  border-radius: 18px;
665
597
  }
@@ -703,10 +635,6 @@
703
635
  border-top-style: var(--tw-border-style);
704
636
  border-top-width: 8px;
705
637
  }
706
- .border-r {
707
- border-right-style: var(--tw-border-style);
708
- border-right-width: 1px;
709
- }
710
638
  .border-r-8 {
711
639
  border-right-style: var(--tw-border-style);
712
640
  border-right-width: 8px;
@@ -735,10 +663,6 @@
735
663
  border-bottom-style: var(--tw-border-style);
736
664
  border-bottom-width: 8px;
737
665
  }
738
- .border-l {
739
- border-left-style: var(--tw-border-style);
740
- border-left-width: 1px;
741
- }
742
666
  .border-l-8 {
743
667
  border-left-style: var(--tw-border-style);
744
668
  border-left-width: 8px;
@@ -755,9 +679,6 @@
755
679
  --tw-border-style: none;
756
680
  border-style: none;
757
681
  }
758
- .border-\[\#363c48\] {
759
- border-color: #363c48;
760
- }
761
682
  .border-\[\#ccc\] {
762
683
  border-color: #ccc;
763
684
  }
@@ -776,21 +697,9 @@
776
697
  .border-l-transparent {
777
698
  border-left-color: transparent;
778
699
  }
779
- .bg-\[\#0C1421\] {
780
- background-color: #0C1421;
781
- }
782
- .bg-\[\#2d374d\] {
783
- background-color: #2d374d;
784
- }
785
- .bg-\[\#222b3d\] {
786
- background-color: #222b3d;
787
- }
788
700
  .bg-\[\#E6E6E6\] {
789
701
  background-color: #E6E6E6;
790
702
  }
791
- .bg-\[\#FF8F45\] {
792
- background-color: #FF8F45;
793
- }
794
703
  .bg-\[\#FFF2F2\] {
795
704
  background-color: #FFF2F2;
796
705
  }
@@ -831,9 +740,6 @@
831
740
  .p-\[10px_15px\] {
832
741
  padding: 10px 15px;
833
742
  }
834
- .p-\[14px\] {
835
- padding: 14px;
836
- }
837
743
  .p-\[15px\] {
838
744
  padding: 15px;
839
745
  }
@@ -867,18 +773,9 @@
867
773
  .px-\[15px\] {
868
774
  padding-inline: 15px;
869
775
  }
870
- .px-\[16px\] {
871
- padding-inline: 16px;
872
- }
873
776
  .px-\[20px\] {
874
777
  padding-inline: 20px;
875
778
  }
876
- .px-\[22px\] {
877
- padding-inline: 22px;
878
- }
879
- .py-\[2px\] {
880
- padding-block: 2px;
881
- }
882
779
  .py-\[4px\] {
883
780
  padding-block: 4px;
884
781
  }
@@ -906,9 +803,6 @@
906
803
  .pt-\[10px\] {
907
804
  padding-top: 10px;
908
805
  }
909
- .pt-\[14px\] {
910
- padding-top: 14px;
911
- }
912
806
  .pt-\[20px\] {
913
807
  padding-top: 20px;
914
808
  }
@@ -924,9 +818,6 @@
924
818
  .pt-\[50px\] {
925
819
  padding-top: 50px;
926
820
  }
927
- .pr-\[10px\] {
928
- padding-right: 10px;
929
- }
930
821
  .pr-\[15px\] {
931
822
  padding-right: 15px;
932
823
  }
@@ -936,9 +827,6 @@
936
827
  .pr-\[22px\] {
937
828
  padding-right: 22px;
938
829
  }
939
- .pb-\[6px\] {
940
- padding-bottom: 6px;
941
- }
942
830
  .pb-\[7px\] {
943
831
  padding-bottom: 7px;
944
832
  }
@@ -957,9 +845,6 @@
957
845
  .pl-\[6px\] {
958
846
  padding-left: 6px;
959
847
  }
960
- .pl-\[22px\] {
961
- padding-left: 22px;
962
- }
963
848
  .text-center {
964
849
  text-align: center;
965
850
  }
@@ -996,9 +881,6 @@
996
881
  .text-\[14px\] {
997
882
  font-size: 14px;
998
883
  }
999
- .text-\[15px\] {
1000
- font-size: 15px;
1001
- }
1002
884
  .text-\[17\.33px\] {
1003
885
  font-size: 17.33px;
1004
886
  }
@@ -1008,21 +890,9 @@
1008
890
  .text-\[18px\] {
1009
891
  font-size: 18px;
1010
892
  }
1011
- .text-\[20px\] {
1012
- font-size: 20px;
1013
- }
1014
893
  .text-\[22px\] {
1015
894
  font-size: 22px;
1016
895
  }
1017
- .text-\[25px\] {
1018
- font-size: 25px;
1019
- }
1020
- .text-\[26px\] {
1021
- font-size: 26px;
1022
- }
1023
- .text-\[28px\] {
1024
- font-size: 28px;
1025
- }
1026
896
  .text-\[42px\] {
1027
897
  font-size: 42px;
1028
898
  }
@@ -1030,10 +900,6 @@
1030
900
  --tw-leading: 1.3;
1031
901
  line-height: 1.3;
1032
902
  }
1033
- .leading-\[14px\] {
1034
- --tw-leading: 14px;
1035
- line-height: 14px;
1036
- }
1037
903
  .leading-\[20px\] {
1038
904
  --tw-leading: 20px;
1039
905
  line-height: 20px;
@@ -1054,10 +920,6 @@
1054
920
  --tw-leading: 1;
1055
921
  line-height: 1;
1056
922
  }
1057
- .font-\[9px\] {
1058
- --tw-font-weight: 9px;
1059
- font-weight: 9px;
1060
- }
1061
923
  .font-\[14px\] {
1062
924
  --tw-font-weight: 14px;
1063
925
  font-weight: 14px;
@@ -1079,24 +941,12 @@
1079
941
  .whitespace-nowrap {
1080
942
  white-space: nowrap;
1081
943
  }
1082
- .text-\[\#4a4a4a\] {
1083
- color: #4a4a4a;
1084
- }
1085
944
  .text-\[\#9f9f9f\] {
1086
945
  color: #9f9f9f;
1087
946
  }
1088
- .text-\[\#666\] {
1089
- color: #666;
1090
- }
1091
- .text-\[\#272727\] {
1092
- color: #272727;
1093
- }
1094
947
  .text-\[\#464647\] {
1095
948
  color: #464647;
1096
949
  }
1097
- .text-\[\#FF8F45\] {
1098
- color: #FF8F45;
1099
- }
1100
950
  .text-\[\#c0c0c0\] {
1101
951
  color: #c0c0c0;
1102
952
  }
@@ -1115,9 +965,6 @@
1115
965
  .text-\[red\] {
1116
966
  color: red;
1117
967
  }
1118
- .text-\[white\] {
1119
- color: white;
1120
- }
1121
968
  .capitalize {
1122
969
  text-transform: capitalize;
1123
970
  }
@@ -1137,9 +984,6 @@
1137
984
  .opacity-0 {
1138
985
  opacity: 0%;
1139
986
  }
1140
- .opacity-50 {
1141
- opacity: 50%;
1142
- }
1143
987
  .opacity-100 {
1144
988
  opacity: 100%;
1145
989
  }