@admin-layout/tailwind-design-pro 10.1.1-alpha.3 → 10.1.1-alpha.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCard.d.ts","sourceRoot":"","sources":["../../../src/components/UI/VehicleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"VehicleCard.d.ts","sourceRoot":"","sources":["../../../src/components/UI/VehicleCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,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,eAAO,MAAM,WAAW,GAAI,2HAWzB,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,4CA+BzD,CAAC"}
|
|
@@ -11,27 +11,31 @@ import {jsx,jsxs}from'react/jsx-runtime';import {CarCardFooter}from'./VehicleCom
|
|
|
11
11
|
...props
|
|
12
12
|
}) => {
|
|
13
13
|
return jsx("div", {
|
|
14
|
-
className: "overflow-hidden bg-white rounded-lg border border-[#E7E7E8] shadow-sm transition-all duration-300 hover:shadow-md w-full max-w-4xl relative
|
|
14
|
+
className: "overflow-hidden bg-white rounded-lg border border-[#E7E7E8] shadow-sm transition-all duration-300 hover:shadow-md w-full max-w-4xl relative",
|
|
15
15
|
children: jsxs("div", {
|
|
16
16
|
className: "flex flex-col md:flex-row md:max-h-[191px] pb-2 md:pb-4",
|
|
17
17
|
children: [jsx(CarCardImage, {
|
|
18
|
-
imageUrl: car.
|
|
19
|
-
alt: car.
|
|
20
|
-
isFavorite:
|
|
18
|
+
imageUrl: car.thumbnail?.url,
|
|
19
|
+
alt: car.title || car.name,
|
|
20
|
+
isFavorite: car.isUserLike
|
|
21
21
|
}), jsxs("div", {
|
|
22
|
-
className: "flex flex-col flex-grow p-4
|
|
22
|
+
className: "flex flex-col flex-grow p-4",
|
|
23
23
|
children: [jsx(CarCardInfo, {
|
|
24
24
|
make: car.name.split(' ')[0],
|
|
25
25
|
model: car.name.split(' ').slice(1).join(' '),
|
|
26
|
-
year: new Date().getFullYear(),
|
|
27
|
-
rating: car.
|
|
28
|
-
trips: car.
|
|
29
|
-
isAllStarHost: car.
|
|
30
|
-
location: car.
|
|
26
|
+
year: car.year ? new Date(car.year * 1000).getFullYear() : undefined,
|
|
27
|
+
rating: car.stats?.averageRating || 0,
|
|
28
|
+
trips: car.stats?.totalReviews || 0,
|
|
29
|
+
isAllStarHost: car.preferences?.details?.aircon || false,
|
|
30
|
+
location: car.address?.description || car.supplier?.address
|
|
31
31
|
}), jsx("div", {
|
|
32
32
|
className: "mt-auto",
|
|
33
33
|
children: jsx(CarCardFooter, {
|
|
34
|
-
price:
|
|
34
|
+
price: {
|
|
35
|
+
amount: car.pricingInfo?.price,
|
|
36
|
+
currency: car.pricingInfo?.currency,
|
|
37
|
+
formattedPrice: car.formattedPrice
|
|
38
|
+
}
|
|
35
39
|
})
|
|
36
40
|
})]
|
|
37
41
|
})]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VehicleCard.js","sources":["../../../src/components/UI/VehicleCard.tsx"],"sourcesContent":[null],"names":[],"mappings":"sOAiBO,MAAM,WAAW,GAAG,CAAC;AAYxB,EAAA,IAAA,EAAA,GAAO;
|
|
1
|
+
{"version":3,"file":"VehicleCard.js","sources":["../../../src/components/UI/VehicleCard.tsx"],"sourcesContent":[null],"names":[],"mappings":"sOAiBO,MAAM,WAAW,GAAG,CAAC;AAYxB,EAAA,IAAA,EAAA,GAAO;AAoBqB,EAAA,OAAA;AACA,EAAA,QAAA;;;AAShC,EAAE,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/tailwind-design-pro",
|
|
3
|
-
"version": "10.1.1-alpha.
|
|
3
|
+
"version": "10.1.1-alpha.4",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"typescript": {
|
|
62
62
|
"definition": "lib/index.d.ts"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "e15f4e1dba6b32f2bfdcab68b53d1b6cbe740fa4"
|
|
65
65
|
}
|