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.
@@ -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 w-[47%]" },
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" },
@@ -125,6 +125,7 @@ export interface MobileServiceItemProps {
125
125
  };
126
126
  isCiva?: boolean;
127
127
  currencySign?: string;
128
+ isPeru?: boolean;
128
129
  orignLabel?: string;
129
130
  destinationLabel?: string;
130
131
  variant?: "desktop" | "mobile" | "auto";
package/dist/styles.css CHANGED
@@ -249,9 +249,6 @@
249
249
  .w-\[20px\] {
250
250
  width: 20px;
251
251
  }
252
- .w-\[47\%\] {
253
- width: 47%;
254
- }
255
252
  .w-\[50\%\] {
256
253
  width: 50%;
257
254
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kupos-ui-components-lib",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "A reusable UI components package",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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 className="content-center w-[47%]">
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" }}
@@ -137,6 +137,7 @@ export interface MobileServiceItemProps {
137
137
  };
138
138
  isCiva?: boolean;
139
139
  currencySign?: string;
140
+ isPeru?: boolean;
140
141
 
141
142
  orignLabel?: string;
142
143
  destinationLabel?: string;