kupos-ui-components-lib 10.4.63 → 10.4.65

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 (62) hide show
  1. package/dist/components/ServiceItem/PeruServiceItemDesktop.js +3 -1
  2. package/dist/components/ServiceItem/PeruServiceItemMobile.js +5 -3
  3. package/dist/components/ServiceItem/ServiceItemDesktop.js +4 -2
  4. package/dist/components/ServiceItem/ServiceItemMobile.js +11 -13
  5. package/dist/components/ServiceItem/mobileTypes.d.ts +2 -0
  6. package/dist/components/ServiceItem/types.d.ts +2 -0
  7. package/dist/ui/ExpendedDropDown/ExpandedDropdown.d.ts +1 -0
  8. package/dist/ui/ExpendedDropDown/ExpandedDropdown.js +7 -1
  9. package/dist/ui/OfferBanner.d.ts +1 -1
  10. package/dist/ui/OfferBanner.js +9 -5
  11. package/dist/ui/PeruOfferBanner.d.ts +1 -1
  12. package/dist/ui/PeruOfferBanner.js +5 -1
  13. package/dist/ui/SeatSection/SeatSection.js +6 -4
  14. package/dist/ui/ServiceBadges/ServiceBadges.js +1 -1
  15. package/dist/ui/mobileweb/ExpandedDropdownMobile.d.ts +1 -0
  16. package/dist/ui/mobileweb/ExpandedDropdownMobile.js +6 -1
  17. package/dist/ui/mobileweb/SeatSectionMobile.js +7 -3
  18. package/dist/utils/CommonService.d.ts +7 -0
  19. package/dist/utils/CommonService.js +6 -0
  20. package/package.json +1 -1
  21. package/src/components/ServiceItem/PeruServiceItemDesktop.tsx +4 -1
  22. package/src/components/ServiceItem/PeruServiceItemMobile.tsx +6 -3
  23. package/src/components/ServiceItem/ServiceItemDesktop.tsx +4 -2
  24. package/src/components/ServiceItem/ServiceItemMobile.tsx +12 -13
  25. package/src/components/ServiceItem/mobileTypes.ts +2 -0
  26. package/src/components/ServiceItem/types.ts +2 -0
  27. package/src/ui/ExpendedDropDown/ExpandedDropdown.tsx +12 -2
  28. package/src/ui/OfferBanner.tsx +10 -5
  29. package/src/ui/PeruOfferBanner.tsx +7 -1
  30. package/src/ui/SeatSection/SeatSection.tsx +20 -16
  31. package/src/ui/ServiceBadges/ServiceBadges.tsx +1 -1
  32. package/src/ui/mobileweb/ExpandedDropdownMobile.tsx +13 -1
  33. package/src/ui/mobileweb/SeatSectionMobile.tsx +25 -18
  34. package/src/utils/CommonService.ts +13 -0
  35. package/dist/ServiceItemPb.d.ts +0 -4
  36. package/dist/ServiceItemPb.js +0 -486
  37. package/dist/assets/images/anims/service_list/60_percent_anim.json +0 -1
  38. package/dist/assets/images/directo-icon.png +0 -0
  39. package/dist/components/FilterSortBar/SingleFilterSheet.d.ts +0 -15
  40. package/dist/components/FilterSortBar/SingleFilterSheet.js +0 -21
  41. package/dist/components/PaymentOptions/PaymentOptionsDesktop.d.ts +0 -4
  42. package/dist/components/PaymentOptions/PaymentOptionsDesktop.js +0 -5
  43. package/dist/components/PaymentOptions/PaymentOptionsMobile.d.ts +0 -4
  44. package/dist/components/PaymentOptions/PaymentOptionsMobile.js +0 -5
  45. package/dist/components/PaymentOptions/ResponsivePaymentOptions.d.ts +0 -3
  46. package/dist/components/PaymentOptions/ResponsivePaymentOptions.js +0 -10
  47. package/dist/components/PaymentOptions/index.d.ts +0 -5
  48. package/dist/components/PaymentOptions/index.js +0 -4
  49. package/dist/components/PaymentOptions/mobileTypes.d.ts +0 -0
  50. package/dist/components/PaymentOptions/mobileTypes.js +0 -0
  51. package/dist/components/PaymentOptions/type.d.ts +0 -4
  52. package/dist/components/PaymentOptions/type.js +0 -1
  53. package/dist/components/ServiceItem/ExpandedDropdown.d.ts +0 -19
  54. package/dist/components/ServiceItem/ExpandedDropdown.js +0 -28
  55. package/dist/components/ServiceItem/ServiceItemDesktopPeru.d.ts +0 -6
  56. package/dist/components/ServiceItem/ServiceItemDesktopPeru.js +0 -612
  57. package/dist/example.d.ts +0 -5
  58. package/dist/example.js +0 -240
  59. package/dist/ui/ServiceType.d.ts +0 -9
  60. package/dist/ui/ServiceType.js +0 -9
  61. package/dist/ui/TopAmenities/PromoCountdown.d.ts +0 -18
  62. package/dist/ui/TopAmenities/PromoCountdown.js +0 -55
@@ -1,4 +0,0 @@
1
- import PaymentOptionsDesktop from "./PaymentOptionsDesktop";
2
- import PaymentOptionsMobile from "./PaymentOptionsMobile";
3
- import ResponsivePaymentOptions from "./ResponsivePaymentOptions";
4
- export { PaymentOptionsDesktop, PaymentOptionsMobile, ResponsivePaymentOptions };
File without changes
File without changes
@@ -1,4 +0,0 @@
1
- export interface PaymentOptionsProps {
2
- typeOfComponent: "paymentoptions";
3
- variant?: "desktop" | "mobile" | "auto";
4
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,19 +0,0 @@
1
- import React from "react";
2
- interface ExpandedDropdownProps {
3
- serviceItem: {
4
- pet_seat_info?: Record<string, any>;
5
- is_change_ticket?: boolean;
6
- is_tracking_enabled?: boolean;
7
- };
8
- showPromo: boolean;
9
- colors: {
10
- priceColor?: string;
11
- };
12
- grayscaleClass: string;
13
- translation?: {
14
- [key: string]: string;
15
- };
16
- getAnimationIcon: (icon: string) => any;
17
- }
18
- declare function ExpandedDropdown({ serviceItem, showPromo, colors, grayscaleClass, translation, getAnimationIcon, }: ExpandedDropdownProps): React.ReactElement;
19
- export default ExpandedDropdown;
@@ -1,28 +0,0 @@
1
- import React from "react";
2
- import LottiePlayer from "../../assets/LottiePlayer";
3
- function ExpandedDropdown({ serviceItem, showPromo, colors, grayscaleClass, translation, getAnimationIcon, }) {
4
- const hasPetInfo = serviceItem.pet_seat_info &&
5
- Object.keys(serviceItem.pet_seat_info).length > 0;
6
- return (React.createElement("div", { className: "px-[15px] pt-[26px] pb-[14px] -mt-[16px] pt-[20px] relative -z-9", style: {
7
- backgroundColor: "#f5f5f5",
8
- borderRadius: "0 0 10px 10px",
9
- border: showPromo
10
- ? `1px solid ${colors.priceColor}`
11
- : "1px solid #ccc",
12
- borderTop: "none",
13
- } },
14
- React.createElement("div", { className: "flex flex-col gap-[12px] text-[13px] text-[#464647]" },
15
- hasPetInfo && (React.createElement("div", { className: "flex items-center gap-[10px]" },
16
- React.createElement(LottiePlayer, { animationData: getAnimationIcon("petFriendlyAnim"), width: "20px", height: "20px" }),
17
- React.createElement("div", { className: "h-auto mr-[4px] text-[13px] text-[#464647] bold-text" },
18
- React.createElement("span", null, translation === null || translation === void 0 ? void 0 : translation.petFriendly)))),
19
- serviceItem.is_change_ticket && (React.createElement("div", { className: "flex items-center gap-[10px]" },
20
- React.createElement(LottiePlayer, { animationData: getAnimationIcon("flexibleIcon"), width: "20px", height: "20px" }),
21
- React.createElement("div", { className: "h-auto mr-[4px] text-[13px] text-[#464647] bold-text" },
22
- React.createElement("span", null, translation === null || translation === void 0 ? void 0 : translation.flexible)))),
23
- (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.is_tracking_enabled) && (React.createElement("div", { className: `${grayscaleClass} flex items-center gap-[10px]` },
24
- React.createElement(LottiePlayer, { animationData: getAnimationIcon("locationAnim"), width: "20px", height: "20px" }),
25
- React.createElement("div", { className: "h-auto mr-[4px] text-[13px] text-[#464647] bold-text" },
26
- React.createElement("span", null, "GPS Tracker")))))));
27
- }
28
- export default ExpandedDropdown;
@@ -1,6 +0,0 @@
1
- import React from "react";
2
- import { ServiceItemProps } from "./types";
3
- declare function ServiceItemDesktopPeru({ serviceItem, onBookButtonPress, colors, metaData, children, busStage, serviceDetailsLoading, cityOrigin, cityDestination, translation, orignLabel, destinationLabel, currencySign, isCiva, showRating, showLastSeats, removeArrivalTime, removeDuplicateSeats, originIconStyle, showAvailableSeats, isSeatIcon, isTurbus, t, }: ServiceItemProps & {
4
- currencySign?: string;
5
- }): React.ReactElement;
6
- export default ServiceItemDesktopPeru;