kupos-ui-components-lib 8.0.6 → 8.0.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.
|
@@ -413,12 +413,13 @@ function ServiceItemPB({ serviceItem, onBookButtonPress, colors, metaData, child
|
|
|
413
413
|
showLastSeats ? (React.createElement("div", { className: "flex justify-end mr-[11px]" }, (serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) < 10 &&
|
|
414
414
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.available_seats) > 0 && (React.createElement("div", { className: "text-[12px] text-[red] mt-1 text-center" }, "\u00A1 \u00DAltimos Asientos!")))) : null,
|
|
415
415
|
React.createElement("div", { className: "flex items-center mt-[15px] border-t border-[#eee] pt-[10px]" },
|
|
416
|
-
React.createElement("div", { className: "grid items-center gap-[
|
|
417
|
-
gridTemplateColumns:
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
416
|
+
React.createElement("div", { className: "grid items-center gap-[2%] flex-1", style: {
|
|
417
|
+
gridTemplateColumns: "30% 18% 23% 23%",
|
|
418
|
+
// otherItems
|
|
419
|
+
// .map((i) => i.width)
|
|
420
|
+
// .join(" "),
|
|
421
|
+
} }, otherItems.map((item) => (React.createElement("div", { key: item.key, className: "flex items-center " }, item.render)))),
|
|
422
|
+
React.createElement("div", { className: "flex items-center ml-[12px] shrink-0 w-[130px] justify-end" }, amenitiesItem === null || amenitiesItem === void 0 ? void 0 : amenitiesItem.render)))),
|
|
422
423
|
children,
|
|
423
424
|
(serviceItem === null || serviceItem === void 0 ? void 0 : serviceItem.offer_text) && (React.createElement("div", { className: ` text-white p-[10px_15px] text-left w-full flex items-center absolute -bottom-[36px] pt-[50px] -z-10 rounded-b-[14px] text-[14px]`, style: {
|
|
424
425
|
backgroundColor: isSoldOut
|
package/dist/styles.css
CHANGED
|
@@ -327,6 +327,9 @@
|
|
|
327
327
|
.w-\[120px\] {
|
|
328
328
|
width: 120px;
|
|
329
329
|
}
|
|
330
|
+
.w-\[130px\] {
|
|
331
|
+
width: 130px;
|
|
332
|
+
}
|
|
330
333
|
.w-\[188px\] {
|
|
331
334
|
width: 188px;
|
|
332
335
|
}
|
|
@@ -419,6 +422,9 @@
|
|
|
419
422
|
.justify-end {
|
|
420
423
|
justify-content: flex-end;
|
|
421
424
|
}
|
|
425
|
+
.gap-\[2\%\] {
|
|
426
|
+
gap: 2%;
|
|
427
|
+
}
|
|
422
428
|
.gap-\[2px\] {
|
|
423
429
|
gap: 2px;
|
|
424
430
|
}
|
package/package.json
CHANGED
|
@@ -819,25 +819,53 @@ function ServiceItemPB({
|
|
|
819
819
|
</div>
|
|
820
820
|
) : null}
|
|
821
821
|
|
|
822
|
+
{/* <div className="flex items-center mt-[15px] border-t border-[#eee] pt-[10px]">
|
|
823
|
+
<div
|
|
824
|
+
className="grid items-center gap-[12px] w-full"
|
|
825
|
+
style={{
|
|
826
|
+
gridTemplateColumns: "30% 20% 20% 20% auto",
|
|
827
|
+
}}
|
|
828
|
+
>
|
|
829
|
+
{items
|
|
830
|
+
.sort((a, b) =>
|
|
831
|
+
a.key === "amenities"
|
|
832
|
+
? 1
|
|
833
|
+
: b.key === "amenities"
|
|
834
|
+
? -1
|
|
835
|
+
: 0,
|
|
836
|
+
)
|
|
837
|
+
.map((item) => (
|
|
838
|
+
<div key={item.key} className="flex items-center">
|
|
839
|
+
{item.condition === false ? (
|
|
840
|
+
<div style={{ minHeight: "20px", width: "100%" }} />
|
|
841
|
+
) : (
|
|
842
|
+
item.render
|
|
843
|
+
)}
|
|
844
|
+
</div>
|
|
845
|
+
))}
|
|
846
|
+
</div>
|
|
847
|
+
</div> */}
|
|
848
|
+
|
|
822
849
|
<div className="flex items-center mt-[15px] border-t border-[#eee] pt-[10px]">
|
|
823
850
|
{/* 🔹 LEFT SIDE (GRID ITEMS) */}
|
|
824
851
|
<div
|
|
825
|
-
className="grid items-center gap-[
|
|
852
|
+
className="grid items-center gap-[2%] flex-1"
|
|
826
853
|
style={{
|
|
827
|
-
gridTemplateColumns:
|
|
828
|
-
|
|
829
|
-
|
|
854
|
+
gridTemplateColumns: "30% 18% 23% 23%",
|
|
855
|
+
// otherItems
|
|
856
|
+
// .map((i) => i.width)
|
|
857
|
+
// .join(" "),
|
|
830
858
|
}}
|
|
831
859
|
>
|
|
832
860
|
{otherItems.map((item) => (
|
|
833
|
-
<div key={item.key} className="flex items-center">
|
|
861
|
+
<div key={item.key} className="flex items-center ">
|
|
834
862
|
{item.render}
|
|
835
863
|
</div>
|
|
836
864
|
))}
|
|
837
865
|
</div>
|
|
838
866
|
|
|
839
867
|
{/* 🔹 RIGHT SIDE (ALWAYS END) */}
|
|
840
|
-
<div className="flex items-center ml-[12px] shrink-0">
|
|
868
|
+
<div className="flex items-center ml-[12px] shrink-0 w-[130px] justify-end">
|
|
841
869
|
{amenitiesItem?.render}
|
|
842
870
|
</div>
|
|
843
871
|
</div>
|