kupos-ui-components-lib 10.4.13 → 10.4.15
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/assets/images/anims/service_list/60_percent_anim.json +1 -0
- package/dist/assets/images/filter/arrow-down.png +0 -0
- package/dist/assets/images/filter/rapido.svg +14 -0
- package/dist/components/FilterSortBar/FilterChip.d.ts +6 -2
- package/dist/components/FilterSortBar/FilterChip.js +10 -32
- package/dist/components/FilterSortBar/FilterSortBarMobile.d.ts +1 -1
- package/dist/components/FilterSortBar/FilterSortBarMobile.js +86 -38
- package/dist/components/FilterSortBar/FiltersMasterSheet.d.ts +3 -1
- package/dist/components/FilterSortBar/FiltersMasterSheet.js +28 -97
- package/dist/components/FilterSortBar/OptionCheckboxList.js +5 -16
- package/dist/components/FilterSortBar/PriceRangeSlider.js +17 -55
- package/dist/components/FilterSortBar/SheetFooter.js +3 -30
- package/dist/components/FilterSortBar/defaultIcons.js +9 -0
- package/dist/components/FilterSortBar/icons.d.ts +7 -0
- package/dist/components/FilterSortBar/icons.js +8 -1
- package/dist/components/FilterSortBar/index.d.ts +1 -1
- package/dist/components/FilterSortBar/types.d.ts +34 -0
- package/dist/components/PaymentOptions/PaymentOptionsDesktop.d.ts +4 -0
- package/dist/components/PaymentOptions/PaymentOptionsDesktop.js +5 -0
- package/dist/components/PaymentOptions/PaymentOptionsMobile.d.ts +4 -0
- package/dist/components/PaymentOptions/PaymentOptionsMobile.js +5 -0
- package/dist/components/PaymentOptions/ResponsivePaymentOptions.d.ts +3 -0
- package/dist/components/PaymentOptions/ResponsivePaymentOptions.js +10 -0
- package/dist/components/PaymentOptions/index.d.ts +5 -0
- package/dist/components/PaymentOptions/index.js +4 -0
- package/dist/components/PaymentOptions/mobileTypes.d.ts +0 -0
- package/dist/components/PaymentOptions/mobileTypes.js +0 -0
- package/dist/components/PaymentOptions/type.d.ts +4 -0
- package/dist/components/PaymentOptions/type.js +1 -0
- package/dist/components/PaymentSideBar/PaymentSideBarMobile.js +1 -1
- package/dist/components/ServiceItem/ExpandedDropdown.d.ts +19 -0
- package/dist/components/ServiceItem/ExpandedDropdown.js +28 -0
- package/dist/components/ServiceItem/ServiceItemDesktopPeru.d.ts +6 -0
- package/dist/components/ServiceItem/ServiceItemDesktopPeru.js +612 -0
- package/dist/index.d.ts +1 -1
- package/dist/styles.css +233 -0
- package/dist/ui/PaymentCardMobile/PaymentCardMobile.js +40 -51
- package/dist/ui/TopAmenities/PromoCountdown.d.ts +18 -0
- package/dist/ui/TopAmenities/PromoCountdown.js +55 -0
- package/package.json +2 -2
- package/src/assets/images/filter/arrow-down.png +0 -0
- package/src/assets/images/filter/rapido.svg +14 -0
- package/src/components/FilterSortBar/FilterChip.tsx +31 -35
- package/src/components/FilterSortBar/FilterSortBarMobile.tsx +122 -66
- package/src/components/FilterSortBar/FiltersMasterSheet.tsx +34 -118
- package/src/components/FilterSortBar/OptionCheckboxList.tsx +5 -16
- package/src/components/FilterSortBar/PriceRangeSlider.tsx +20 -61
- package/src/components/FilterSortBar/SheetFooter.tsx +4 -32
- package/src/components/FilterSortBar/defaultIcons.ts +11 -0
- package/src/components/FilterSortBar/icons.tsx +38 -2
- package/src/components/FilterSortBar/index.ts +2 -0
- package/src/components/FilterSortBar/types.ts +36 -0
- package/src/components/PaymentSideBar/PaymentSideBarMobile.tsx +4 -1
- package/src/index.ts +2 -0
- package/src/ui/PaymentCardMobile/PaymentCardMobile.tsx +136 -98
- package/src/components/FilterSortBar/SingleFilterSheet.tsx +0 -82
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { BottomSheet } from "../../ui/BottomSheet";
|
|
3
|
-
import { CloseIcon } from "./icons";
|
|
4
|
-
import OptionCheckboxList from "./OptionCheckboxList";
|
|
5
|
-
import PriceRangeSlider from "./PriceRangeSlider";
|
|
6
|
-
import SheetFooter from "./SheetFooter";
|
|
7
|
-
import { FilterCategory, FilterSortBarColors, FilterSortBarIcons } from "./types";
|
|
8
|
-
|
|
9
|
-
interface SingleFilterSheetProps {
|
|
10
|
-
category: FilterCategory | null;
|
|
11
|
-
onClose: () => void;
|
|
12
|
-
onToggleOption: (optionId: string) => void;
|
|
13
|
-
onPriceRangeChange: (currentMin: number, currentMax: number) => void;
|
|
14
|
-
onClear: () => void;
|
|
15
|
-
onApply: () => void;
|
|
16
|
-
currencySign: string;
|
|
17
|
-
colors: Required<FilterSortBarColors>;
|
|
18
|
-
icons?: FilterSortBarIcons;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
const SingleFilterSheet = ({
|
|
22
|
-
category,
|
|
23
|
-
onClose,
|
|
24
|
-
onToggleOption,
|
|
25
|
-
onPriceRangeChange,
|
|
26
|
-
onClear,
|
|
27
|
-
onApply,
|
|
28
|
-
currencySign,
|
|
29
|
-
colors,
|
|
30
|
-
icons,
|
|
31
|
-
}: SingleFilterSheetProps) => {
|
|
32
|
-
return (
|
|
33
|
-
<BottomSheet isOpen={!!category} onClose={onClose} showBackdrop maxHeight="75vh">
|
|
34
|
-
{category && (
|
|
35
|
-
<div>
|
|
36
|
-
<div
|
|
37
|
-
style={{
|
|
38
|
-
display: "flex",
|
|
39
|
-
alignItems: "center",
|
|
40
|
-
justifyContent: "space-between",
|
|
41
|
-
marginBottom: 16,
|
|
42
|
-
}}
|
|
43
|
-
>
|
|
44
|
-
<span style={{ fontSize: 16, fontWeight: 700, color: "#464647" }}>
|
|
45
|
-
{category.sheetTitle || category.sectionLabel || category.label}
|
|
46
|
-
</span>
|
|
47
|
-
<div
|
|
48
|
-
onClick={onClose}
|
|
49
|
-
style={{ cursor: "pointer", padding: 4, WebkitTapHighlightColor: "transparent" }}
|
|
50
|
-
>
|
|
51
|
-
<CloseIcon size={14} src={icons?.closeIcon} />
|
|
52
|
-
</div>
|
|
53
|
-
</div>
|
|
54
|
-
|
|
55
|
-
<div style={{ maxHeight: "50vh", overflowY: "auto" }}>
|
|
56
|
-
{category.kind === "price" && category.priceRange ? (
|
|
57
|
-
<PriceRangeSlider
|
|
58
|
-
value={category.priceRange}
|
|
59
|
-
onChange={onPriceRangeChange}
|
|
60
|
-
currencySign={currencySign}
|
|
61
|
-
primaryColor={colors.primaryColor}
|
|
62
|
-
/>
|
|
63
|
-
) : (
|
|
64
|
-
<OptionCheckboxList
|
|
65
|
-
options={category.options || []}
|
|
66
|
-
kind={category.kind}
|
|
67
|
-
onToggle={onToggleOption}
|
|
68
|
-
primaryColor={colors.primaryColor}
|
|
69
|
-
starColor={colors.buttonColor || colors.primaryColor}
|
|
70
|
-
icons={icons}
|
|
71
|
-
/>
|
|
72
|
-
)}
|
|
73
|
-
</div>
|
|
74
|
-
|
|
75
|
-
<SheetFooter onClear={onClear} onApply={onApply} colors={colors} />
|
|
76
|
-
</div>
|
|
77
|
-
)}
|
|
78
|
-
</BottomSheet>
|
|
79
|
-
);
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export default SingleFilterSheet;
|