kupos-ui-components-lib 1.1.1 → 1.1.2
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/components/ServiceItem/ServiceItemMobile.d.ts +1 -1
- package/dist/components/ServiceItem/ServiceItemMobile.js +4 -2
- package/dist/components/ServiceItem/mobileTypes.d.ts +1 -0
- package/dist/styles.css +0 -3
- package/package.json +1 -1
- package/src/components/ServiceItem/ServiceItemMobile.tsx +7 -1
- package/src/components/ServiceItem/mobileTypes.ts +1 -0
|
@@ -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, setAmenetiesAtomValue, isCiva, currencySign, }: MobileServiceItemProps): React.ReactElement;
|
|
3
|
+
declare function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, orignLabel, destinationLabel, amenitiesData, setShowDropdown, showDropdown, setAmenetiesAtomValue, isCiva, currencySign, isPeru, }: MobileServiceItemProps): React.ReactElement;
|
|
4
4
|
export default ServiceItemMobile;
|
|
@@ -14,7 +14,7 @@ const exceptions = [
|
|
|
14
14
|
"blanco",
|
|
15
15
|
"asiento_mascota",
|
|
16
16
|
];
|
|
17
|
-
function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, orignLabel, destinationLabel, amenitiesData, setShowDropdown, showDropdown, setAmenetiesAtomValue, isCiva, currencySign, }) {
|
|
17
|
+
function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, orignLabel, destinationLabel, amenitiesData, setShowDropdown, showDropdown, setAmenetiesAtomValue, isCiva, currencySign, isPeru, }) {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
const isPetSeat = (Object.keys(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.pet_seat_info) || []).length > 0;
|
|
20
20
|
let isSoldOut = serviceItem.available_seats <= 0;
|
|
@@ -186,7 +186,9 @@ function ServiceItemMobile({ serviceItem, onBookButtonPress, colors, busStage, o
|
|
|
186
186
|
backgroundColor: "#ccc",
|
|
187
187
|
margin: "auto",
|
|
188
188
|
} }),
|
|
189
|
-
React.createElement("div", { className: "content-center
|
|
189
|
+
React.createElement("div", { className: "content-center", style: {
|
|
190
|
+
width: isPeru ? "30%" : "40%",
|
|
191
|
+
} },
|
|
190
192
|
React.createElement("div", { className: "flex flex-col justify-between h-[2.5rem] ", style: { gap: isSoldOut ? "0px" : "5px" } },
|
|
191
193
|
seatTypes(),
|
|
192
194
|
isSoldOut ? (React.createElement("div", { className: "flex justify-end" },
|
package/dist/styles.css
CHANGED
package/package.json
CHANGED
|
@@ -31,6 +31,7 @@ function ServiceItemMobile({
|
|
|
31
31
|
setAmenetiesAtomValue,
|
|
32
32
|
isCiva,
|
|
33
33
|
currencySign,
|
|
34
|
+
isPeru,
|
|
34
35
|
}: MobileServiceItemProps): React.ReactElement {
|
|
35
36
|
const isPetSeat = (Object.keys(serviceItem?.pet_seat_info) || []).length > 0;
|
|
36
37
|
let isSoldOut = serviceItem.available_seats <= 0;
|
|
@@ -363,7 +364,12 @@ function ServiceItemMobile({
|
|
|
363
364
|
}}
|
|
364
365
|
></div>
|
|
365
366
|
{/* SEATS */}
|
|
366
|
-
<div
|
|
367
|
+
<div
|
|
368
|
+
className="content-center"
|
|
369
|
+
style={{
|
|
370
|
+
width: isPeru ? "30%" : "40%",
|
|
371
|
+
}}
|
|
372
|
+
>
|
|
367
373
|
<div
|
|
368
374
|
className="flex flex-col justify-between h-[2.5rem] "
|
|
369
375
|
style={{ gap: isSoldOut ? "0px" : "5px" }}
|