kupos-ui-components-lib 9.7.3 → 9.7.5

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 (30) 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 -27
  7. package/dist/components/ServiceItem/types.d.ts +0 -17
  8. package/dist/styles.css +6 -165
  9. package/dist/types.d.ts +3 -0
  10. package/dist/ui/ExpendedDropDown/ExpandedDropdown.js +6 -13
  11. package/dist/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.js +98 -52
  12. package/dist/ui/FeatureServiceUI/FeatureServiceUi.js +22 -24
  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 -41
  19. package/src/components/ServiceItem/ServiceItemMobile.tsx +286 -331
  20. package/src/components/ServiceItem/mobileTypes.ts +4 -23
  21. package/src/components/ServiceItem/types.ts +0 -18
  22. package/src/types.ts +3 -0
  23. package/src/ui/ExpendedDropDown/ExpandedDropdown.tsx +11 -25
  24. package/src/ui/SeatSection/SeatSection.tsx +1 -1
  25. package/src/ui/mobileweb/ExpandedDropdownMobile.tsx +14 -34
  26. package/src/utils/CommonService.ts +1 -13
  27. package/src/assets/images/anims/service_list/thunder_icon.json +0 -1
  28. package/src/assets/images/anims/service_list/users_anim.json +0 -1
  29. package/src/ui/FeaturServiceUiMobile/FeatureServiceUiMobile.tsx +0 -1042
  30. package/src/ui/FeatureServiceUI/FeatureServiceUi.tsx +0 -477
@@ -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, }: 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, }) {
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: onBookButtonPress, 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, }: 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, }) {
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: onBookButtonPress, 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,19 +125,9 @@ 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[];
@@ -197,18 +187,4 @@ export interface MobileServiceItemProps {
197
187
  label?: string;
198
188
  icon?: string;
199
189
  };
200
- isFeatureDropDownExpand?: any;
201
- setIsFeatureDropDownExpand?: (value: any) => void;
202
- ticketQuantity?: number;
203
- onIncreaseTicketQuantity?: (serviceItem: MobileServiceItemProps["serviceItem"]) => void;
204
- onDecreaseTicketQuantity?: (serviceItem: MobileServiceItemProps["serviceItem"]) => void;
205
- cityOrigin?: {
206
- value: number;
207
- label: string;
208
- };
209
- cityDestination?: {
210
- value: number;
211
- label: string;
212
- };
213
- isNewUi?: boolean;
214
190
  }
@@ -129,17 +129,6 @@ 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[];
@@ -224,11 +213,6 @@ export interface ServiceItemProps {
224
213
  isAllinBus?: boolean;
225
214
  isExpand?: any;
226
215
  setIsExpand?: (value: any) => void;
227
- isFeatureDropDownExpand?: any;
228
- setIsFeatureDropDownExpand?: (value: any) => void;
229
- ticketQuantity?: number;
230
- onIncreaseTicketQuantity?: (serviceItem: ServiceItemProps["serviceItem"]) => void;
231
- onDecreaseTicketQuantity?: (serviceItem: ServiceItemProps["serviceItem"]) => void;
232
216
  coachKey?: number;
233
217
  viewersConfig?: {
234
218
  min: number;
@@ -237,7 +221,6 @@ export interface ServiceItemProps {
237
221
  label?: string;
238
222
  icon?: string;
239
223
  };
240
- isNewUi?: boolean;
241
224
  showLoginModal?: any;
242
225
  isLoggedIn?: any;
243
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
  }
@@ -294,6 +264,9 @@
294
264
  .-ml-\[12px\] {
295
265
  margin-left: calc(12px * -1);
296
266
  }
267
+ .ml-\[2px\] {
268
+ margin-left: 2px;
269
+ }
297
270
  .ml-\[3px\] {
298
271
  margin-left: 3px;
299
272
  }
@@ -369,9 +342,6 @@
369
342
  .h-\[30px\] {
370
343
  height: 30px;
371
344
  }
372
- .h-\[34px\] {
373
- height: 34px;
374
- }
375
345
  .h-\[100\%\] {
376
346
  height: 100%;
377
347
  }
@@ -408,9 +378,6 @@
408
378
  .w-\[20px\] {
409
379
  width: 20px;
410
380
  }
411
- .w-\[34px\] {
412
- width: 34px;
413
- }
414
381
  .w-\[50\%\] {
415
382
  width: 50%;
416
383
  }
@@ -479,12 +446,6 @@
479
446
  .max-w-\[165px\] {
480
447
  max-width: 165px;
481
448
  }
482
- .max-w-\[220px\] {
483
- max-width: 220px;
484
- }
485
- .max-w-full {
486
- max-width: 100%;
487
- }
488
449
  .min-w-\[75px\] {
489
450
  min-width: 75px;
490
451
  }
@@ -515,9 +476,6 @@
515
476
  .cursor-default {
516
477
  cursor: default;
517
478
  }
518
- .cursor-not-allowed {
519
- cursor: not-allowed;
520
- }
521
479
  .cursor-pointer {
522
480
  cursor: pointer;
523
481
  }
@@ -530,21 +488,12 @@
530
488
  .grid-cols-2 {
531
489
  grid-template-columns: repeat(2, minmax(0, 1fr));
532
490
  }
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
491
  .grid-cols-\[0\.8fr_auto_26\%_1fr\] {
540
492
  grid-template-columns: 0.8fr auto 26% 1fr;
541
493
  }
542
494
  .grid-cols-\[1\.5fr_1fr_auto\] {
543
495
  grid-template-columns: 1.5fr 1fr auto;
544
496
  }
545
- .grid-cols-\[23\%_50\%_27\%\] {
546
- grid-template-columns: 23% 50% 27%;
547
- }
548
497
  .grid-cols-\[26px_auto_26\%_1fr\] {
549
498
  grid-template-columns: 26px auto 26% 1fr;
550
499
  }
@@ -572,9 +521,6 @@
572
521
  .items-start {
573
522
  align-items: flex-start;
574
523
  }
575
- .items-stretch {
576
- align-items: stretch;
577
- }
578
524
  .justify-between {
579
525
  justify-content: space-between;
580
526
  }
@@ -617,12 +563,6 @@
617
563
  .gap-\[14px\] {
618
564
  gap: 14px;
619
565
  }
620
- .gap-\[16px\] {
621
- gap: 16px;
622
- }
623
- .gap-\[20px\] {
624
- gap: 20px;
625
- }
626
566
  .gap-x-\[2\%\] {
627
567
  -moz-column-gap: 2%;
628
568
  column-gap: 2%;
@@ -631,20 +571,12 @@
631
571
  -moz-column-gap: 8px;
632
572
  column-gap: 8px;
633
573
  }
634
- .truncate {
635
- overflow: hidden;
636
- text-overflow: ellipsis;
637
- white-space: nowrap;
638
- }
639
574
  .overflow-hidden {
640
575
  overflow: hidden;
641
576
  }
642
577
  .overflow-y-hidden {
643
578
  overflow-y: hidden;
644
579
  }
645
- .rounded-\[4px\] {
646
- border-radius: 4px;
647
- }
648
580
  .rounded-\[8px\] {
649
581
  border-radius: 8px;
650
582
  }
@@ -657,9 +589,6 @@
657
589
  .rounded-\[15px\] {
658
590
  border-radius: 15px;
659
591
  }
660
- .rounded-\[16px\] {
661
- border-radius: 16px;
662
- }
663
592
  .rounded-\[18px\] {
664
593
  border-radius: 18px;
665
594
  }
@@ -703,10 +632,6 @@
703
632
  border-top-style: var(--tw-border-style);
704
633
  border-top-width: 8px;
705
634
  }
706
- .border-r {
707
- border-right-style: var(--tw-border-style);
708
- border-right-width: 1px;
709
- }
710
635
  .border-r-8 {
711
636
  border-right-style: var(--tw-border-style);
712
637
  border-right-width: 8px;
@@ -735,10 +660,6 @@
735
660
  border-bottom-style: var(--tw-border-style);
736
661
  border-bottom-width: 8px;
737
662
  }
738
- .border-l {
739
- border-left-style: var(--tw-border-style);
740
- border-left-width: 1px;
741
- }
742
663
  .border-l-8 {
743
664
  border-left-style: var(--tw-border-style);
744
665
  border-left-width: 8px;
@@ -755,9 +676,6 @@
755
676
  --tw-border-style: none;
756
677
  border-style: none;
757
678
  }
758
- .border-\[\#363c48\] {
759
- border-color: #363c48;
760
- }
761
679
  .border-\[\#ccc\] {
762
680
  border-color: #ccc;
763
681
  }
@@ -776,21 +694,9 @@
776
694
  .border-l-transparent {
777
695
  border-left-color: transparent;
778
696
  }
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
697
  .bg-\[\#E6E6E6\] {
789
698
  background-color: #E6E6E6;
790
699
  }
791
- .bg-\[\#FF8F45\] {
792
- background-color: #FF8F45;
793
- }
794
700
  .bg-\[\#FFF2F2\] {
795
701
  background-color: #FFF2F2;
796
702
  }
@@ -831,9 +737,6 @@
831
737
  .p-\[10px_15px\] {
832
738
  padding: 10px 15px;
833
739
  }
834
- .p-\[14px\] {
835
- padding: 14px;
836
- }
837
740
  .p-\[15px\] {
838
741
  padding: 15px;
839
742
  }
@@ -867,18 +770,9 @@
867
770
  .px-\[15px\] {
868
771
  padding-inline: 15px;
869
772
  }
870
- .px-\[16px\] {
871
- padding-inline: 16px;
872
- }
873
773
  .px-\[20px\] {
874
774
  padding-inline: 20px;
875
775
  }
876
- .px-\[22px\] {
877
- padding-inline: 22px;
878
- }
879
- .py-\[2px\] {
880
- padding-block: 2px;
881
- }
882
776
  .py-\[4px\] {
883
777
  padding-block: 4px;
884
778
  }
@@ -906,9 +800,6 @@
906
800
  .pt-\[10px\] {
907
801
  padding-top: 10px;
908
802
  }
909
- .pt-\[14px\] {
910
- padding-top: 14px;
911
- }
912
803
  .pt-\[20px\] {
913
804
  padding-top: 20px;
914
805
  }
@@ -924,9 +815,6 @@
924
815
  .pt-\[50px\] {
925
816
  padding-top: 50px;
926
817
  }
927
- .pr-\[10px\] {
928
- padding-right: 10px;
929
- }
930
818
  .pr-\[15px\] {
931
819
  padding-right: 15px;
932
820
  }
@@ -936,9 +824,6 @@
936
824
  .pr-\[22px\] {
937
825
  padding-right: 22px;
938
826
  }
939
- .pb-\[6px\] {
940
- padding-bottom: 6px;
941
- }
942
827
  .pb-\[7px\] {
943
828
  padding-bottom: 7px;
944
829
  }
@@ -957,9 +842,6 @@
957
842
  .pl-\[6px\] {
958
843
  padding-left: 6px;
959
844
  }
960
- .pl-\[22px\] {
961
- padding-left: 22px;
962
- }
963
845
  .text-center {
964
846
  text-align: center;
965
847
  }
@@ -996,9 +878,6 @@
996
878
  .text-\[14px\] {
997
879
  font-size: 14px;
998
880
  }
999
- .text-\[15px\] {
1000
- font-size: 15px;
1001
- }
1002
881
  .text-\[17\.33px\] {
1003
882
  font-size: 17.33px;
1004
883
  }
@@ -1008,21 +887,9 @@
1008
887
  .text-\[18px\] {
1009
888
  font-size: 18px;
1010
889
  }
1011
- .text-\[20px\] {
1012
- font-size: 20px;
1013
- }
1014
890
  .text-\[22px\] {
1015
891
  font-size: 22px;
1016
892
  }
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
893
  .text-\[42px\] {
1027
894
  font-size: 42px;
1028
895
  }
@@ -1030,10 +897,6 @@
1030
897
  --tw-leading: 1.3;
1031
898
  line-height: 1.3;
1032
899
  }
1033
- .leading-\[14px\] {
1034
- --tw-leading: 14px;
1035
- line-height: 14px;
1036
- }
1037
900
  .leading-\[20px\] {
1038
901
  --tw-leading: 20px;
1039
902
  line-height: 20px;
@@ -1054,10 +917,6 @@
1054
917
  --tw-leading: 1;
1055
918
  line-height: 1;
1056
919
  }
1057
- .font-\[9px\] {
1058
- --tw-font-weight: 9px;
1059
- font-weight: 9px;
1060
- }
1061
920
  .font-\[14px\] {
1062
921
  --tw-font-weight: 14px;
1063
922
  font-weight: 14px;
@@ -1079,24 +938,12 @@
1079
938
  .whitespace-nowrap {
1080
939
  white-space: nowrap;
1081
940
  }
1082
- .text-\[\#4a4a4a\] {
1083
- color: #4a4a4a;
1084
- }
1085
941
  .text-\[\#9f9f9f\] {
1086
942
  color: #9f9f9f;
1087
943
  }
1088
- .text-\[\#666\] {
1089
- color: #666;
1090
- }
1091
- .text-\[\#272727\] {
1092
- color: #272727;
1093
- }
1094
944
  .text-\[\#464647\] {
1095
945
  color: #464647;
1096
946
  }
1097
- .text-\[\#FF8F45\] {
1098
- color: #FF8F45;
1099
- }
1100
947
  .text-\[\#c0c0c0\] {
1101
948
  color: #c0c0c0;
1102
949
  }
@@ -1115,9 +962,6 @@
1115
962
  .text-\[red\] {
1116
963
  color: red;
1117
964
  }
1118
- .text-\[white\] {
1119
- color: white;
1120
- }
1121
965
  .capitalize {
1122
966
  text-transform: capitalize;
1123
967
  }
@@ -1137,9 +981,6 @@
1137
981
  .opacity-0 {
1138
982
  opacity: 0%;
1139
983
  }
1140
- .opacity-50 {
1141
- opacity: 50%;
1142
- }
1143
984
  .opacity-100 {
1144
985
  opacity: 100%;
1145
986
  }
package/dist/types.d.ts CHANGED
@@ -109,6 +109,9 @@ export interface ServiceItemProps {
109
109
  specialDeparture?: string;
110
110
  fireIcon?: string;
111
111
  cancelTicketIcon?: string;
112
+ changeTicketIcon?: string;
113
+ petFriendlyIcon?: string;
114
+ womenSeatIcon?: string;
112
115
  [key: string]: string | Record<string, string | undefined> | undefined;
113
116
  };
114
117
  useLottieFor?: string[];