@admin-layout/tailwind-design-pro 12.0.16-alpha.6 → 12.0.16-alpha.7
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/README.md +10 -0
- package/lib/components/Layout/BasicLayout/index.js +1 -1
- package/lib/components/Layout/BasicLayout/index.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js +1 -1
- package/lib/components/Layout/GlobalHeader/Header.js.map +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js +1 -1
- package/lib/components/Layout/GlobalHeader/MainHeader.js.map +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.js +1 -1
- package/lib/components/Layout/Sidebar/Sidebar.js.map +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.js +1 -1
- package/lib/components/SettingDrawer/InvitationSettings.js.map +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js +1 -1
- package/lib/components/SettingDrawer/LayoutChange.js.map +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.js +1 -1
- package/lib/components/SettingDrawer/NavigationsModes.js.map +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js +1 -1
- package/lib/components/SettingDrawer/RegionalSettings.js.map +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js +1 -1
- package/lib/components/SettingDrawer/SettingDrawer.js.map +1 -1
- package/lib/components/index.d.ts +0 -1
- package/lib/components/index.d.ts.map +1 -1
- package/lib/components/index.js +1 -1
- package/lib/components/typings.d.ts +0 -5
- package/lib/components/typings.d.ts.map +1 -1
- package/lib/hooks/index.d.ts +0 -3
- package/lib/hooks/index.d.ts.map +1 -1
- package/package.json +5 -15
- package/lib/components/UI/CardList.d.ts +0 -61
- package/lib/components/UI/CardList.d.ts.map +0 -1
- package/lib/components/UI/CardList.js +0 -43
- package/lib/components/UI/CardList.js.map +0 -1
- package/lib/components/UI/CategoriesTypeList.d.ts +0 -29
- package/lib/components/UI/CategoriesTypeList.d.ts.map +0 -1
- package/lib/components/UI/CategoriesTypeList.js +0 -139
- package/lib/components/UI/CategoriesTypeList.js.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts +0 -83
- package/lib/components/UI/LazyLoadingGoogleMarker.d.ts.map +0 -1
- package/lib/components/UI/LazyLoadingGoogleMarker.js +0 -107
- package/lib/components/UI/LazyLoadingGoogleMarker.js.map +0 -1
- package/lib/components/UI/Pagination.d.ts +0 -6
- package/lib/components/UI/Pagination.d.ts.map +0 -1
- package/lib/components/UI/Pagination.js +0 -56
- package/lib/components/UI/Pagination.js.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.d.ts +0 -99
- package/lib/components/UI/ParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/ParamSearchResultContainer.js +0 -120
- package/lib/components/UI/ParamSearchResultContainer.js.map +0 -1
- package/lib/components/UI/PropertyCard.d.ts +0 -24
- package/lib/components/UI/PropertyCard.d.ts.map +0 -1
- package/lib/components/UI/PropertyCard.js +0 -420
- package/lib/components/UI/PropertyCard.js.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.d.ts +0 -10
- package/lib/components/UI/PropertyCardOnMap.d.ts.map +0 -1
- package/lib/components/UI/PropertyCardOnMap.js +0 -108
- package/lib/components/UI/PropertyCardOnMap.js.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.d.ts +0 -8
- package/lib/components/UI/VehicleCard/PricePopover.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/PricePopover.js +0 -98
- package/lib/components/UI/VehicleCard/PricePopover.js.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts +0 -7
- package/lib/components/UI/VehicleCard/VehicleBadge.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts +0 -9
- package/lib/components/UI/VehicleCard/VehicleFeature.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard/VehicleFeature.js +0 -22
- package/lib/components/UI/VehicleCard/VehicleFeature.js.map +0 -1
- package/lib/components/UI/VehicleCard/types.d.ts +0 -59
- package/lib/components/UI/VehicleCard/types.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.d.ts +0 -15
- package/lib/components/UI/VehicleCard.d.ts.map +0 -1
- package/lib/components/UI/VehicleCard.js +0 -166
- package/lib/components/UI/VehicleCard.js.map +0 -1
- package/lib/components/UI/VehicleCardList.d.ts +0 -14
- package/lib/components/UI/VehicleCardList.d.ts.map +0 -1
- package/lib/components/UI/VehicleCardList.js +0 -38
- package/lib/components/UI/VehicleCardList.js.map +0 -1
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts +0 -90
- package/lib/components/UI/VehicleParamSearchResultContainer.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.d.ts +0 -7
- package/lib/components/UI/icons/LocationIcon.d.ts.map +0 -1
- package/lib/components/UI/icons/LocationIcon.js +0 -18
- package/lib/components/UI/icons/LocationIcon.js.map +0 -1
- package/lib/components/UI/icons/index.d.ts +0 -2
- package/lib/components/UI/icons/index.d.ts.map +0 -1
- package/lib/components/UI/index.d.ts +0 -10
- package/lib/components/UI/index.d.ts.map +0 -1
- package/lib/components/typings.js +0 -6
- package/lib/components/typings.js.map +0 -1
- package/lib/hooks/use-get-current-lat-long.d.ts +0 -18
- package/lib/hooks/use-get-current-lat-long.d.ts.map +0 -1
- package/lib/hooks/use-get-current-lat-long.js +0 -29
- package/lib/hooks/use-get-current-lat-long.js.map +0 -1
- package/lib/hooks/useTailwindTheme.js +0 -82
- package/lib/hooks/useTailwindTheme.js.map +0 -1
- package/lib/hooks/useWindowSize.d.ts +0 -6
- package/lib/hooks/useWindowSize.d.ts.map +0 -1
- package/lib/hooks/useWindowSize.js +0 -20
- package/lib/hooks/useWindowSize.js.map +0 -1
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/airbnbDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts +0 -6
- package/lib/middlewares/bookingCarRentalMiddleware.d.ts.map +0 -1
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/bookingDatasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/datasourcesMiddleware.d.ts +0 -6
- package/lib/middlewares/datasourcesMiddleware.d.ts.map +0 -1
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts +0 -7
- package/lib/middlewares/pricelineDatasourcesMiddleware.d.ts.map +0 -1
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import {jsxs,Fragment,jsx}from'react/jsx-runtime';import {useState,useRef,useEffect}from'react';import {BiTag}from'@react-icons/all-files/bi/BiTag.js';const PricePopover = ({
|
|
2
|
-
pricing
|
|
3
|
-
}) => {
|
|
4
|
-
const [position, setPosition] = useState({
|
|
5
|
-
top: 0,
|
|
6
|
-
left: 0
|
|
7
|
-
});
|
|
8
|
-
const popoverRef = useRef(null);
|
|
9
|
-
const triggerRef = useRef(null);
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
const updatePosition = () => {
|
|
12
|
-
if (!popoverRef.current || !triggerRef.current) return;
|
|
13
|
-
const trigger = triggerRef.current.getBoundingClientRect();
|
|
14
|
-
const popover = popoverRef.current.getBoundingClientRect();
|
|
15
|
-
const viewport = {
|
|
16
|
-
width: window.innerWidth,
|
|
17
|
-
height: window.innerHeight
|
|
18
|
-
};
|
|
19
|
-
let top = trigger.bottom + 8;
|
|
20
|
-
let left = trigger.left;
|
|
21
|
-
if (top + popover.height > viewport.height) {
|
|
22
|
-
top = trigger.top - popover.height - 8;
|
|
23
|
-
}
|
|
24
|
-
if (left + popover.width > viewport.width) {
|
|
25
|
-
left = viewport.width - popover.width - 16;
|
|
26
|
-
}
|
|
27
|
-
left = Math.max(16, left);
|
|
28
|
-
setPosition({
|
|
29
|
-
top,
|
|
30
|
-
left
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
updatePosition();
|
|
34
|
-
window.addEventListener('scroll', updatePosition);
|
|
35
|
-
window.addEventListener('resize', updatePosition);
|
|
36
|
-
return () => {
|
|
37
|
-
window.removeEventListener('scroll', updatePosition);
|
|
38
|
-
window.removeEventListener('resize', updatePosition);
|
|
39
|
-
};
|
|
40
|
-
}, []);
|
|
41
|
-
return jsxs(Fragment, {
|
|
42
|
-
children: [jsx("div", {
|
|
43
|
-
ref: triggerRef,
|
|
44
|
-
className: "absolute inset-0"
|
|
45
|
-
}), jsx("div", {
|
|
46
|
-
ref: popoverRef,
|
|
47
|
-
style: {
|
|
48
|
-
top: position.top,
|
|
49
|
-
left: position.left,
|
|
50
|
-
position: 'fixed'
|
|
51
|
-
},
|
|
52
|
-
className: "invisible group-hover:visible opacity-0 group-hover:opacity-100 transition-all duration-200 themed-dropdown p-4 min-w-[280px] z-50",
|
|
53
|
-
children: jsxs("div", {
|
|
54
|
-
className: "flex flex-col gap-3",
|
|
55
|
-
children: [jsxs("div", {
|
|
56
|
-
className: "flex items-center justify-between text-[15px]",
|
|
57
|
-
children: [jsx("span", {
|
|
58
|
-
className: "text-muted-foreground",
|
|
59
|
-
children: "Base rate"
|
|
60
|
-
}), jsxs("span", {
|
|
61
|
-
className: "font-medium text-foreground",
|
|
62
|
-
children: [pricing.currency, " ", pricing.amount]
|
|
63
|
-
})]
|
|
64
|
-
}), pricing.discount && jsxs("div", {
|
|
65
|
-
className: "flex items-center justify-between text-success",
|
|
66
|
-
children: [jsxs("div", {
|
|
67
|
-
className: "flex items-center",
|
|
68
|
-
children: [jsx(BiTag, {
|
|
69
|
-
className: "h-4 w-4 mr-1"
|
|
70
|
-
}), jsx("span", {
|
|
71
|
-
children: "Discount"
|
|
72
|
-
})]
|
|
73
|
-
}), jsxs("span", {
|
|
74
|
-
children: ["-", pricing.discount]
|
|
75
|
-
})]
|
|
76
|
-
}), jsx("div", {
|
|
77
|
-
className: "border-t border-border mt-1 pt-3",
|
|
78
|
-
children: jsxs("div", {
|
|
79
|
-
className: "flex items-center justify-between",
|
|
80
|
-
children: [jsxs("span", {
|
|
81
|
-
className: "font-medium text-[15px] text-foreground",
|
|
82
|
-
children: ["Total ", pricing.period && `(${pricing.period})`]
|
|
83
|
-
}), jsxs("div", {
|
|
84
|
-
className: "text-right",
|
|
85
|
-
children: [jsxs("span", {
|
|
86
|
-
className: "text-xl font-semibold text-foreground",
|
|
87
|
-
children: [pricing.currency, " ", pricing.amount]
|
|
88
|
-
}), pricing.beforeTaxes && jsx("div", {
|
|
89
|
-
className: "text-sm text-muted-foreground",
|
|
90
|
-
children: "before taxes"
|
|
91
|
-
})]
|
|
92
|
-
})]
|
|
93
|
-
})
|
|
94
|
-
})]
|
|
95
|
-
})
|
|
96
|
-
})]
|
|
97
|
-
});
|
|
98
|
-
};export{PricePopover as default};//# sourceMappingURL=PricePopover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PricePopover.js","sources":["../../../../src/components/UI/VehicleCard/PricePopover.tsx"],"sourcesContent":[null],"names":[],"mappings":"uJAQA,MAAM,YAAY,GAAgC,CAAC;AAC/C,EAAA;AACA,CAAA,KAAA;AACA,EAAA,MAAA,CAAA,qBAA0C,CAAA,GAAI,QAAE,CAAA;IAEhD,GAAS,EAAA,CAAA;QACL,EAAM;;kBACqD,GAAA,MAAA,CAAA,IAAA,CAAA;kBAEjD,GAAA,OAAU,IAAU,CAAA;YAC1B,MAAM;AACN,IAAA,MAAA,iBAAiB,MAAA;qBACR,CAAA,OAAQ,IAAW,CAAA,UAAA,CAAA,OAAA,EAAA;mBAClB,GAAA,UAAoB,CAAA,OAAA,CAAA,qBAAA,EAAA;mBAC5B,GAAA,UAAA,CAAA,OAAA,CAAA,qBAAA,EAAA;AAEF,MAAA,MAAA,QAAU,GAAA;AACV,QAAA,KAAA,EAAA,MAAQ,CAAA;cAEJ,EAAA,MAAM,CAAA;;aAET,GAAA,OAAA,CAAA,MAAA,GAAA,CAAA;cAEG,GAAA,OAAO,CAAA,IAAA;gBACP,OAAO,CAAQ,MAAA,GAAM,eAAW,EAAA;cACnC,OAAA,CAAA,GAAA,GAAA,OAAA,CAAA,MAAA,GAAA,CAAA;;AAID,MAAA,IAAA,IAAA,GAAA,OAAY,CAAE,QAAS,QAAI,CAAA,KAAA,EAAA;AAC/B,QAAA,IAAE,GAAA,QAAA,CAAA,KAAA,GAAA,OAAA,CAAA,KAAA,GAAA,EAAA;AAEF;AACA,MAAA,IAAA,GAAA,IAAuB,CAAA,GAAA,CAAA,EAAA,EAAA,IAAA,CAAA;AACvB,MAAA,WAAuB,CAAA;AAEvB,QAAA,GAAA;AACI,QAAA;AACA,OAAA,CAAA;AACJ,KAAA;IACJ,cAAO,EAAA;AAEP,IAAA,MAAA,CAAO,gBAEC,CAAA,QAAA,EAAA,cAAA,CAAA;2BAIqB,CAAA,QAAI,EAAA,cAAA,CAAA;;AAEjB,MAAA,MAAA,CAAA,mBAAiB,CAAA,QAAA,EAAA,cAAA,CAAA;AACpB,MAAA,MAAA,CAAA,mBAC6I,CAAA,QAAA,EAAA,cAAA,CAAA;AAuC9J,KAAE;AAEF,GAAA,EAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleBadge.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/VehicleCard/VehicleBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,cAAc;IACpB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAY1C,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
interface CardFeatureProps {
|
|
3
|
-
icon: ReactNode;
|
|
4
|
-
label: string;
|
|
5
|
-
iconColor?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const VehicleFeature: React.FC<CardFeatureProps>;
|
|
8
|
-
export default VehicleFeature;
|
|
9
|
-
//# sourceMappingURL=VehicleFeature.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleFeature.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/VehicleCard/VehicleFeature.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGzC,UAAU,gBAAgB;IACtB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAgB9C,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import {jsxs,jsx}from'react/jsx-runtime';import {renderDynamicIcon}from'../../../helpers/DynamicIcon.js';const VehicleFeature = ({
|
|
2
|
-
icon,
|
|
3
|
-
label,
|
|
4
|
-
iconColor = '#6B7280'
|
|
5
|
-
}) => {
|
|
6
|
-
return jsxs("div", {
|
|
7
|
-
className: "flex items-center bg-muted px-1.5 py-0.5 rounded-themed text-[11px] text-muted-foreground",
|
|
8
|
-
children: [jsx("div", {
|
|
9
|
-
className: "text-muted-foreground mr-0.5",
|
|
10
|
-
children: renderDynamicIcon({
|
|
11
|
-
name: icon,
|
|
12
|
-
style: {
|
|
13
|
-
iconColor: iconColor,
|
|
14
|
-
w: '20px',
|
|
15
|
-
h: '20px'
|
|
16
|
-
}
|
|
17
|
-
})
|
|
18
|
-
}), jsx("span", {
|
|
19
|
-
children: label
|
|
20
|
-
})]
|
|
21
|
-
});
|
|
22
|
-
};export{VehicleFeature as default};//# sourceMappingURL=VehicleFeature.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleFeature.js","sources":["../../../../src/components/UI/VehicleCard/VehicleFeature.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"yGASA,MAAM,cAAc,GAA+B,CAAC;AAChD,EAAA,IAAA;AAIgB,EAAA,KAAA;AACA,EAAA,SAAA,GAAA;AACI,CAAA,KAAA;AACA,EAAA,OAAAA,IAAA,CAAA,KAAA,EAAA;AACA,IAAA,SAAA,EAAA,2FAAS;AACZ,IAAA,QAAA,EAAA,CAAAC,GAAA,CAAA,KAAA,EAAA;AACJ,MAAA,SAAA,EAAA,8BAEL;AAGZ,MAAE,QAAA,EAAA,iBAAA,CAAA;AAEF,QAAA,IAAA,EAAA;;;;;;;;;;;"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export interface CarBags {
|
|
2
|
-
count: number;
|
|
3
|
-
size?: string;
|
|
4
|
-
}
|
|
5
|
-
export interface RentalCompany {
|
|
6
|
-
name: string;
|
|
7
|
-
logo?: string;
|
|
8
|
-
rating?: number;
|
|
9
|
-
reviewCount?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface PickupInfo {
|
|
12
|
-
location: string;
|
|
13
|
-
description?: string;
|
|
14
|
-
freePickup?: boolean;
|
|
15
|
-
}
|
|
16
|
-
export interface CarPricing {
|
|
17
|
-
currency: string;
|
|
18
|
-
amount: number | string;
|
|
19
|
-
originalPrice?: string;
|
|
20
|
-
discount?: string;
|
|
21
|
-
period?: string;
|
|
22
|
-
beforeTaxes?: boolean;
|
|
23
|
-
freeCancel?: boolean;
|
|
24
|
-
deals?: number;
|
|
25
|
-
}
|
|
26
|
-
export interface CarActions {
|
|
27
|
-
showInfo?: boolean;
|
|
28
|
-
showEmail?: boolean;
|
|
29
|
-
}
|
|
30
|
-
export interface Car {
|
|
31
|
-
id: string;
|
|
32
|
-
make: string;
|
|
33
|
-
model: string;
|
|
34
|
-
image?: string;
|
|
35
|
-
subtitle?: string;
|
|
36
|
-
tags?: string[];
|
|
37
|
-
isNewListing?: boolean;
|
|
38
|
-
isFavorite?: boolean;
|
|
39
|
-
rating?: number;
|
|
40
|
-
reviews?: string;
|
|
41
|
-
hostStatus?: string;
|
|
42
|
-
location?: string;
|
|
43
|
-
hasAC?: boolean;
|
|
44
|
-
transmission?: string;
|
|
45
|
-
seats?: number;
|
|
46
|
-
bags?: CarBags;
|
|
47
|
-
mileage?: string;
|
|
48
|
-
rentalCompany?: RentalCompany;
|
|
49
|
-
pickupInfo?: PickupInfo;
|
|
50
|
-
pricing?: CarPricing;
|
|
51
|
-
actions?: CarActions;
|
|
52
|
-
source?: string;
|
|
53
|
-
}
|
|
54
|
-
export interface CarCardProps {
|
|
55
|
-
car: Car;
|
|
56
|
-
onFavorite?: (id: string) => void;
|
|
57
|
-
onViewDeal?: (id: string) => void;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/VehicleCard/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,OAAO;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE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import React from 'react';
|
|
2
|
-
type VehicleCardProps = {
|
|
3
|
-
item?: any;
|
|
4
|
-
isSaved?: boolean;
|
|
5
|
-
setFocus?: (index: number) => void;
|
|
6
|
-
setBlur?: (index: number) => void;
|
|
7
|
-
handleLike?: (index: number) => void;
|
|
8
|
-
likeBtnLoading?: boolean;
|
|
9
|
-
categoryTypes?: any[];
|
|
10
|
-
authenticated?: boolean;
|
|
11
|
-
extraIcons?: any[];
|
|
12
|
-
};
|
|
13
|
-
declare const VehicleCard: React.FC<VehicleCardProps>;
|
|
14
|
-
export default VehicleCard;
|
|
15
|
-
//# sourceMappingURL=VehicleCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCard.d.ts","sourceRoot":"","sources":["../../../src/components/UI/VehicleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAqC1B,KAAK,gBAAgB,GAAG;IACpB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;IACtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,GAAG,EAAE,CAAC;CACtB,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsK3C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {AiFillHeart}from'@react-icons/all-files/ai/AiFillHeart.js';import {AiFillStar}from'@react-icons/all-files/ai/AiFillStar.js';import {AiOutlineHeart}from'@react-icons/all-files/ai/AiOutlineHeart.js';import {FaAward}from'@react-icons/all-files/fa/FaAward.js';import {FaShieldAlt}from'@react-icons/all-files/fa/FaShieldAlt.js';import {FiMapPin}from'@react-icons/all-files/fi/FiMapPin.js';import {Button}from'@admin-layout/tailwind-ui';import VehicleFeature from'./VehicleCard/VehicleFeature.js';import PricePopover from'./VehicleCard/PricePopover.js';import {useMemo}from'react';const startCase = str => {
|
|
2
|
-
return str.toLowerCase().split('_').map(word => word.charAt(0).toUpperCase() + word.slice(1)).join(' ');
|
|
3
|
-
};
|
|
4
|
-
const seatWordToNumber = word => {
|
|
5
|
-
const map = {
|
|
6
|
-
ONE: 1,
|
|
7
|
-
TWO: 2,
|
|
8
|
-
THREE: 3,
|
|
9
|
-
FOUR: 4,
|
|
10
|
-
FIVE: 5,
|
|
11
|
-
SIX: 6,
|
|
12
|
-
SEVEN: 7,
|
|
13
|
-
EIGHT: 8,
|
|
14
|
-
NINE: 9,
|
|
15
|
-
TEN: 10
|
|
16
|
-
};
|
|
17
|
-
return map[word.toUpperCase()] || word;
|
|
18
|
-
};
|
|
19
|
-
const VehicleCard = ({
|
|
20
|
-
item,
|
|
21
|
-
isSaved,
|
|
22
|
-
setFocus,
|
|
23
|
-
setBlur,
|
|
24
|
-
handleLike,
|
|
25
|
-
likeBtnLoading,
|
|
26
|
-
categoryTypes,
|
|
27
|
-
authenticated,
|
|
28
|
-
extraIcons = []
|
|
29
|
-
}) => {
|
|
30
|
-
useMemo(() => categoryTypes?.filter(type => item?.types?.includes(type.id)), [item, categoryTypes]);
|
|
31
|
-
return jsx("div", {
|
|
32
|
-
className: "bg-card text-card-foreground rounded-themed overflow-hidden border border-border sm:h-[250px] themed-card",
|
|
33
|
-
onMouseEnter: () => setFocus(item.id),
|
|
34
|
-
onMouseLeave: () => setBlur(item.id),
|
|
35
|
-
children: jsxs("div", {
|
|
36
|
-
className: "flex flex-col sm:flex-row sm:h-full",
|
|
37
|
-
children: [jsxs("div", {
|
|
38
|
-
className: "relative w-full sm:w-[240px] h-[200px] sm:h-full flex-shrink-0",
|
|
39
|
-
children: [item.thumbnail?.url && jsx("img", {
|
|
40
|
-
src: item.thumbnail.url,
|
|
41
|
-
alt: item.title,
|
|
42
|
-
className: "w-full h-full object-contain bg-muted p-2"
|
|
43
|
-
}), jsx("button", {
|
|
44
|
-
onClick: () => handleLike?.(item.id),
|
|
45
|
-
className: "absolute top-2 right-2 p-1.5 bg-background/90 backdrop-blur-sm rounded-full hover:bg-background transition-colors duration-200",
|
|
46
|
-
children: item.isUserLike ? jsx(AiFillHeart, {
|
|
47
|
-
className: "h-4 w-4 text-error"
|
|
48
|
-
}) : jsx(AiOutlineHeart, {
|
|
49
|
-
className: "h-4 w-4 text-muted-foreground"
|
|
50
|
-
})
|
|
51
|
-
})]
|
|
52
|
-
}), jsxs("div", {
|
|
53
|
-
className: "flex-1 p-4 flex flex-col",
|
|
54
|
-
children: [jsxs("div", {
|
|
55
|
-
children: [jsxs("div", {
|
|
56
|
-
className: "flex items-start justify-between gap-2 mb-2",
|
|
57
|
-
children: [jsx("h2", {
|
|
58
|
-
className: "text-base font-semibold text-foreground truncate",
|
|
59
|
-
children: item.title
|
|
60
|
-
}), item.stats?.averageRating && jsxs("div", {
|
|
61
|
-
className: "flex items-center shrink-0",
|
|
62
|
-
children: [jsx("span", {
|
|
63
|
-
className: "font-semibold text-foreground",
|
|
64
|
-
children: item.stats.averageRating
|
|
65
|
-
}), jsx(AiFillStar, {
|
|
66
|
-
className: "h-3.5 w-3.5 text-warning ml-0.5"
|
|
67
|
-
}), item.stats?.totalReviews && jsxs("span", {
|
|
68
|
-
className: "text-xs text-muted-foreground ml-1",
|
|
69
|
-
children: ["(", item.stats.totalReviews, ")"]
|
|
70
|
-
})]
|
|
71
|
-
})]
|
|
72
|
-
}), jsxs("div", {
|
|
73
|
-
className: "flex flex-wrap items-center gap-2 text-xs mb-2",
|
|
74
|
-
children: [item.orgName && jsxs("span", {
|
|
75
|
-
className: "text-accent flex items-center",
|
|
76
|
-
children: [jsx(FaAward, {
|
|
77
|
-
className: "h-3.5 w-3.5 mr-0.5"
|
|
78
|
-
}), item.orgName]
|
|
79
|
-
}), item.preferences?.details?.freeCancellation && jsxs("span", {
|
|
80
|
-
className: "text-success flex items-center",
|
|
81
|
-
children: [jsx(FaShieldAlt, {
|
|
82
|
-
className: "h-3.5 w-3.5 mr-0.5"
|
|
83
|
-
}), "Free cancellation"]
|
|
84
|
-
})]
|
|
85
|
-
}), item.address?.description && jsxs("div", {
|
|
86
|
-
className: "flex items-center text-xs text-muted-foreground mb-3",
|
|
87
|
-
children: [jsx(FiMapPin, {
|
|
88
|
-
className: "h-3.5 w-3.5 mr-0.5 flex-shrink-0"
|
|
89
|
-
}), jsx("span", {
|
|
90
|
-
className: "truncate",
|
|
91
|
-
children: item.address.description
|
|
92
|
-
})]
|
|
93
|
-
})]
|
|
94
|
-
}), jsx("div", {
|
|
95
|
-
className: "flex flex-wrap gap-1.5 mb-4",
|
|
96
|
-
children: Object.entries(item.preferences?.details?.metadata || {}).map(([key, value]) => {
|
|
97
|
-
// Skip non-feature metadata
|
|
98
|
-
if (key === '__typename' || key === 'suitcases') return null;
|
|
99
|
-
const feature = value;
|
|
100
|
-
if (!feature.enable) return null;
|
|
101
|
-
let label = '';
|
|
102
|
-
switch (key) {
|
|
103
|
-
case 'aircon':
|
|
104
|
-
label = 'AC';
|
|
105
|
-
break;
|
|
106
|
-
case 'seats':
|
|
107
|
-
label = `${seatWordToNumber(item.preferences.details.seats.replace('_SEATER', ''))} Seats`;
|
|
108
|
-
break;
|
|
109
|
-
case 'suitcases':
|
|
110
|
-
const small = value.small?.value || 0;
|
|
111
|
-
const big = value.big?.value || 0;
|
|
112
|
-
label = `${small + big} Bags`;
|
|
113
|
-
break;
|
|
114
|
-
case 'unlimitedMileage':
|
|
115
|
-
label = startCase(item.mileage);
|
|
116
|
-
break;
|
|
117
|
-
default:
|
|
118
|
-
label = startCase(key);
|
|
119
|
-
}
|
|
120
|
-
return jsx(VehicleFeature, {
|
|
121
|
-
icon: feature.icon,
|
|
122
|
-
label: label
|
|
123
|
-
}, key);
|
|
124
|
-
})
|
|
125
|
-
}), jsx("div", {
|
|
126
|
-
className: "mt-auto",
|
|
127
|
-
children: jsxs("div", {
|
|
128
|
-
className: "flex items-end justify-between",
|
|
129
|
-
children: [jsxs("div", {
|
|
130
|
-
className: "relative group",
|
|
131
|
-
children: [item.pricingInfo && jsxs(Fragment, {
|
|
132
|
-
children: [jsx("div", {
|
|
133
|
-
className: "space-y-0.5",
|
|
134
|
-
children: jsxs("div", {
|
|
135
|
-
className: "flex items-baseline",
|
|
136
|
-
children: [jsxs("span", {
|
|
137
|
-
className: "text-lg font-bold text-foreground",
|
|
138
|
-
children: [item.pricingInfo.currency, item.pricingInfo.basePrice]
|
|
139
|
-
}), jsx("span", {
|
|
140
|
-
className: "text-muted-foreground text-xs ml-1",
|
|
141
|
-
children: "total"
|
|
142
|
-
})]
|
|
143
|
-
})
|
|
144
|
-
}), jsx(PricePopover, {
|
|
145
|
-
pricing: {
|
|
146
|
-
freeCancel: item.preferences?.details?.freeCancellation,
|
|
147
|
-
currency: item.pricingInfo.currency,
|
|
148
|
-
amount: item.pricingInfo.basePrice,
|
|
149
|
-
period: 'total'
|
|
150
|
-
}
|
|
151
|
-
})]
|
|
152
|
-
}), item.__typename && jsxs("span", {
|
|
153
|
-
className: "text-xs text-muted-foreground block mt-1",
|
|
154
|
-
children: ["via ", item.__typename.replace('Vehicle', '')]
|
|
155
|
-
})]
|
|
156
|
-
}), jsx(Button, {
|
|
157
|
-
onClick: () => {},
|
|
158
|
-
className: "themed-button",
|
|
159
|
-
children: "View deal"
|
|
160
|
-
})]
|
|
161
|
-
})
|
|
162
|
-
})]
|
|
163
|
-
})]
|
|
164
|
-
})
|
|
165
|
-
});
|
|
166
|
-
};export{VehicleCard as default};//# sourceMappingURL=VehicleCard.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCard.js","sources":["../../../src/components/UI/VehicleCard.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs"],"mappings":"ynBAaA,MAAM,SAAS,GAAG,GAAC,IAAe;AAC9B,EAAA,OAAA,GAAU,CAAA,WAAA,EAAA,CAAA,KAAA,CAAA,GAAA,CAAA,CAAA,GAAA,CAAA,IAAA,IAAA,IAAA,CAAA,MAAA,CAAA,CAAA,CAAA,CAAA,WAAA,EAAA,GAAA,IAAA,CAAA,KAAA,CAAA,CAAA,CAAA,CAAA,CAAA,IAAA,CAAA,GAAA,CAAA;AACL,CAAA;sBACU,GAAA,IAAA,IAAA;WACP,GAAE;SACL,CAAI;AACb,IAAE,GAAA,EAAA,CAAA;AAEF,IAAA,KAAsB,EAAA,CAAA;AAClB,IAAA,IAAA,EAAM;AACF,IAAA,IAAA,EAAA,CAAG;AACH,IAAA,GAAA,EAAA,CAAA;AACA,IAAA,KAAA,EAAA,CAAA;AACA,IAAA,KAAA,EAAA,CAAI;AACJ,IAAA,IAAA,EAAA,CAAA;AACA,IAAA,GAAA,EAAA;AACA,GAAA;AACA,EAAA,OAAA,GAAA,CAAK,IAAG,CAAA,WAAA,EAAA,CAAA,IAAA,IAAA;AACR,CAAA;AACA,MAAA,WAAO,GAAA,CAAA;MACT;SACK;AACX,EAAE,QAAA;AAcF,EAAM,OAAA;AAWF,EAAA,UAAW;AAEX,EAAA,cACI;;AAgFoB,EAAA,aAAA;AAAiD,EAAA,UAAA,GAAA;;6BAGrC,EAAC,MAAM,CAAA,IAAA,IAAA,IAAA,EAAA,KAAA,EAAA,QAAA,CAAA,IAAA,CAAA,EAAA,CAAA,CAAA,EAAA,CAAA,IAAA,EAAA,aAAA,CAAA;AAAE,EAAA,OAAAA,GAAA,CAAA,KAAA,EAAA;0HAEN;gCACf,CAAQ,IAAA,CAAA,EAAA,CAAA;AACJ,IAAA,YAAA,EAAA,MAAA,OAAA,CAAA,IAAA,CAAA,EAAA,CAAA;;sDAEU;AACV,MAAA,QAAA,EAAA,CAAAC,IAAA,CAAA,KAAA,EAAA;mFAEa;0CAEHD,GAAA,CAAA,KAAA,EAAA;AACV,UAAA,GAAA,EAAA,IAAA,CAAA,SAAA,CAAA,GAAA;;;AAGI,SAAA,CAAA,EAAAA,GAAA,CAAA,QAAA,EAAA;0CACM,CAAA,EAAA,CAAA;AACV,UAAA,SAAA,EAAA,gIAAuB;AACnB,UAAA,QAAA,EAAA,IAAA,CAAA,UAAA,GAAAA,GAAA,CAAA,WAAiB,EAAA;;AAErB,WAAA,CAAA,GAAAA,GAAA,CAAA,cAAA,EAAA;AACI,YAAA,SAAA,EAAA;;AAGR,SAAA,CAAA;AACJ,OAAA,CAAA,EAAAC,IAAA,CAAA,KAAA,EAAA;AAoBwB,QAAA,SAAA,EAAA,0BAAA;AACA,QAAA,QAAA,EAAA,CAAAA,IAAA,CAAA,KAAA,EAAA;AACA,UAAA,QAAA,EAAA,CAAAA,IAAA,CAAA,KAAA,EAAA;AACA,YAAA,SAAA,EAAA,6CAAQ;;AAqBxD,cAAE,SAAA,EAAA,kDAAA;AAEF,cAAA,cAA2B,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
type VehicleCardListProps = {
|
|
3
|
-
cars?: any[];
|
|
4
|
-
setFocus: (index: number) => void;
|
|
5
|
-
setBlur: (index: number) => void;
|
|
6
|
-
handleLike: (index: number) => void;
|
|
7
|
-
likeBtnLoading: boolean;
|
|
8
|
-
vehicleTypes: any[];
|
|
9
|
-
extraIcons?: any;
|
|
10
|
-
className?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const VehicleCardList: React.FC<VehicleCardListProps>;
|
|
13
|
-
export {};
|
|
14
|
-
//# sourceMappingURL=VehicleCardList.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCardList.d.ts","sourceRoot":"","sources":["../../../src/components/UI/VehicleCardList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,oBAAoB,GAAG;IACxB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,cAAc,EAAE,OAAO,CAAC;IACxB,YAAY,EAAE,GAAG,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA0B1D,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';import {useTranslation}from'react-i18next';import {isEmpty}from'lodash-es';import {isUserAuthenticated}from'@adminide-stack/user-auth0-client';import VehicleCard from'./VehicleCard.js';const VehicleCardList = props => {
|
|
2
|
-
const {
|
|
3
|
-
setBlur,
|
|
4
|
-
setFocus,
|
|
5
|
-
cars,
|
|
6
|
-
handleLike,
|
|
7
|
-
likeBtnLoading,
|
|
8
|
-
vehicleTypes,
|
|
9
|
-
extraIcons,
|
|
10
|
-
className = ''
|
|
11
|
-
} = props;
|
|
12
|
-
const {
|
|
13
|
-
t
|
|
14
|
-
} = useTranslation();
|
|
15
|
-
const {
|
|
16
|
-
authenticated
|
|
17
|
-
} = isUserAuthenticated();
|
|
18
|
-
if (isEmpty(cars)) {
|
|
19
|
-
return jsx("div", {
|
|
20
|
-
className: "text-base text-foreground",
|
|
21
|
-
children: t('property.not_found_any_room')
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
return jsx("div", {
|
|
25
|
-
className: "flex flex-wrap gap-4 flex-col",
|
|
26
|
-
children: cars.map((car, index) => jsx(VehicleCard, {
|
|
27
|
-
item: car,
|
|
28
|
-
isSaved: false,
|
|
29
|
-
setFocus: () => setFocus(index),
|
|
30
|
-
setBlur: setBlur,
|
|
31
|
-
handleLike: handleLike,
|
|
32
|
-
likeBtnLoading: likeBtnLoading,
|
|
33
|
-
categoryTypes: vehicleTypes,
|
|
34
|
-
authenticated: authenticated,
|
|
35
|
-
extraIcons: extraIcons
|
|
36
|
-
}, car.id))
|
|
37
|
-
});
|
|
38
|
-
};export{VehicleCardList};//# sourceMappingURL=VehicleCardList.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCardList.js","sources":["../../../src/components/UI/VehicleCardList.tsx"],"sourcesContent":[null],"names":[],"mappings":"6NAiBa,MAAA,eAAe,GAAmC,KAAC,IAAS;QAC/D;AACN,IAAA;AACA,IAAA,QAAQ;AAER,IAAA,IAAI;cACO;IACX,cAAC;AACD,IAAA,YACI;AAiBR,IAAE,UAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { MutableRefObject } from 'react';
|
|
2
|
-
import { GraphQLError } from 'graphql';
|
|
3
|
-
interface IProperty {
|
|
4
|
-
id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
types: string[];
|
|
7
|
-
name: string;
|
|
8
|
-
description?: string;
|
|
9
|
-
introduction?: string;
|
|
10
|
-
address: any;
|
|
11
|
-
location: string;
|
|
12
|
-
images: any;
|
|
13
|
-
thumbnailUrl?: string;
|
|
14
|
-
thumbnailAlt?: string;
|
|
15
|
-
verificationDocuments?: any;
|
|
16
|
-
info?: any;
|
|
17
|
-
user: any;
|
|
18
|
-
status?: any;
|
|
19
|
-
errors?: any;
|
|
20
|
-
preferences?: any;
|
|
21
|
-
orgName?: string;
|
|
22
|
-
serviceConfiguration?: any;
|
|
23
|
-
totalReview?: number;
|
|
24
|
-
totalStar?: number;
|
|
25
|
-
reviews?: any;
|
|
26
|
-
comments?: any;
|
|
27
|
-
userLikes?: any;
|
|
28
|
-
calendarEvents?: any[];
|
|
29
|
-
isUserLike?: boolean;
|
|
30
|
-
formattedPrice?: number;
|
|
31
|
-
timeZone: string;
|
|
32
|
-
createdAt: any;
|
|
33
|
-
updatedAt?: any;
|
|
34
|
-
stats?: any;
|
|
35
|
-
guideBookId?: string;
|
|
36
|
-
guestSharing?: any;
|
|
37
|
-
}
|
|
38
|
-
interface IAirbnbProperty {
|
|
39
|
-
id: string;
|
|
40
|
-
title: string;
|
|
41
|
-
types: string[];
|
|
42
|
-
name: string;
|
|
43
|
-
description?: string;
|
|
44
|
-
introduction?: string;
|
|
45
|
-
address: any;
|
|
46
|
-
location: string;
|
|
47
|
-
images: any;
|
|
48
|
-
thumbnailUrl?: string;
|
|
49
|
-
thumbnailAlt?: string;
|
|
50
|
-
verificationDocuments?: any;
|
|
51
|
-
info?: any;
|
|
52
|
-
user: any;
|
|
53
|
-
status?: any;
|
|
54
|
-
errors?: any;
|
|
55
|
-
preferences?: any;
|
|
56
|
-
orgName?: string;
|
|
57
|
-
serviceConfiguration?: any;
|
|
58
|
-
totalReview?: number;
|
|
59
|
-
totalStar?: number;
|
|
60
|
-
reviews?: any;
|
|
61
|
-
comments?: any;
|
|
62
|
-
userLikes?: any;
|
|
63
|
-
calendarEvents?: any[];
|
|
64
|
-
isUserLike?: boolean;
|
|
65
|
-
formattedPrice?: number;
|
|
66
|
-
timeZone: string;
|
|
67
|
-
createdAt: any;
|
|
68
|
-
updatedAt?: any;
|
|
69
|
-
stats?: any;
|
|
70
|
-
guideBookId?: string;
|
|
71
|
-
guestSharing?: any;
|
|
72
|
-
}
|
|
73
|
-
interface IParamSearchResultContainer {
|
|
74
|
-
data: IProperty[] | IAirbnbProperty[];
|
|
75
|
-
error: GraphQLError | Error;
|
|
76
|
-
listInnerRef: MutableRefObject<HTMLDivElement>;
|
|
77
|
-
handleSetFocus?: (index: number) => void;
|
|
78
|
-
handleRemoveFocus?: (index: number) => void;
|
|
79
|
-
handleLike?: (index: number) => void;
|
|
80
|
-
extraIcons?: any[];
|
|
81
|
-
currentPage: number;
|
|
82
|
-
totalPages: number;
|
|
83
|
-
totalPropertiesCount: number;
|
|
84
|
-
onPageChange: (page: number) => void;
|
|
85
|
-
likeBtnLoading?: boolean;
|
|
86
|
-
propertyTypes?: any[];
|
|
87
|
-
}
|
|
88
|
-
export declare const ParamSearchResultContainer: (props: IParamSearchResultContainer) => import("react/jsx-runtime").JSX.Element;
|
|
89
|
-
export {};
|
|
90
|
-
//# sourceMappingURL=VehicleParamSearchResultContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleParamSearchResultContainer.d.ts","sourceRoot":"","sources":["../../../src/components/UI/VehicleParamSearchResultContainer.tsx"],"names":[],"mappings":"AAAA,OAAc,EAA6C,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAI3F,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAOvC,UAAU,SAAS;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,GAAG,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB,CAAC,EAAE,GAAG,CAAC;IAC5B,IAAI,CAAC,EAAE,GAAG,CAAC;IACX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,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,GAAG,EAAE,CAAC;CACzB;AAID,eAAO,MAAM,0BAA0B,GAAI,OAAO,2BAA2B,4CA0E5E,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LocationIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/icons/LocationIcon.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,GAAI;;;;;CAAkC,4CAY9D,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {jsx}from'react/jsx-runtime';const LocationIcon = ({
|
|
2
|
-
className = '',
|
|
3
|
-
w,
|
|
4
|
-
h,
|
|
5
|
-
...props
|
|
6
|
-
}) => jsx("svg", {
|
|
7
|
-
viewBox: "0 0 24 24",
|
|
8
|
-
className: `inline-block ${className}`,
|
|
9
|
-
style: {
|
|
10
|
-
width: w || '1em',
|
|
11
|
-
height: h || '1em'
|
|
12
|
-
},
|
|
13
|
-
...props,
|
|
14
|
-
children: jsx("path", {
|
|
15
|
-
d: "M12.0001 1.49866C7.85965 1.49866 4.50012 4.52256 4.50012 8.24865C4.50012 14.2487 12.0001 22.4986 12.0001 22.4986C12.0001 22.4986 19.5001 14.2487 19.5001 8.24865C19.5001 4.52256 16.1406 1.49866 12.0001 1.49866ZM12.0001 11.9987C11.4068 11.9987 10.8268 11.8227 10.3334 11.4931C9.84006 11.1634 9.45554 10.6949 9.22848 10.1467C9.00142 9.59853 8.94201 8.99533 9.05776 8.41338C9.17352 7.83144 9.45924 7.29689 9.8788 6.87733C10.2984 6.45778 10.8329 6.17205 11.4148 6.0563C11.9968 5.94054 12.6 5.99995 13.1482 6.22702C13.6963 6.45408 14.1649 6.8386 14.4945 7.33194C14.8242 7.82529 15.0001 8.40531 15.0001 8.99865C14.9992 9.79404 14.6829 10.5566 14.1205 11.119C13.5581 11.6814 12.7955 11.9978 12.0001 11.9987Z",
|
|
16
|
-
fill: "currentColor"
|
|
17
|
-
})
|
|
18
|
-
});export{LocationIcon};//# sourceMappingURL=LocationIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LocationIcon.js","sources":["../../../../src/components/UI/icons/LocationIcon.tsx"],"sourcesContent":[null],"names":[],"mappings":"oCAEO,MAAM,YAAY,GAAG,CAAC;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/UI/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './CategoriesTypeList';
|
|
2
|
-
export * from './PropertyCardOnMap';
|
|
3
|
-
export * from './LazyLoadingGoogleMarker';
|
|
4
|
-
export * from './ParamSearchResultContainer';
|
|
5
|
-
export * from './CardList';
|
|
6
|
-
export * from './PropertyCard';
|
|
7
|
-
export * from './Pagination';
|
|
8
|
-
export * from './VehicleCard';
|
|
9
|
-
export * from './VehicleCardList';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/UI/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typings.js","sources":["../../src/components/typings.ts"],"sourcesContent":[null],"names":[],"mappings":"IAwKY;AAAZ,CAAA,UAAY,UAAU,EAAA;AAClB,EAAA,UAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AACA,EAAA,UAAA,CAAA,SAAA,CAAA,GAAA,SAAA;AACA,EAAA,UAAA,CAAA,MAAA,CAAA,GAAA,MAAA;AACJ,CAAC,EAJW,UAAU,KAAV,UAAU,GAIrB,EAAA,CAAA,CAAA"}
|