@asdp/ferryui 0.1.22-dev.10601 → 0.1.22-dev.10665
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/index.d.mts +2 -3
- package/dist/index.d.ts +2 -3
- package/dist/index.js +23 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14646,22 +14646,22 @@ var CardBookingAddOn = ({
|
|
|
14646
14646
|
const styles = useStyles29();
|
|
14647
14647
|
const mergedLabels = { ...DEFAULT_LABELS28[language], ...labels };
|
|
14648
14648
|
const addOnRows = [
|
|
14649
|
-
{
|
|
14649
|
+
addOnData?.lounge && {
|
|
14650
14650
|
key: "lounge",
|
|
14651
|
-
label: addOnData
|
|
14652
|
-
price: addOnData
|
|
14651
|
+
label: addOnData.lounge.label || mergedLabels.loungeLabel,
|
|
14652
|
+
price: addOnData.lounge.price
|
|
14653
14653
|
},
|
|
14654
|
-
{
|
|
14654
|
+
addOnData?.assurance && {
|
|
14655
14655
|
key: "assurance",
|
|
14656
|
-
label: addOnData
|
|
14657
|
-
price: addOnData
|
|
14656
|
+
label: addOnData.assurance.label || mergedLabels.assuranceLabel,
|
|
14657
|
+
price: addOnData.assurance.price
|
|
14658
14658
|
},
|
|
14659
|
-
{
|
|
14659
|
+
addOnData?.meal && {
|
|
14660
14660
|
key: "meal",
|
|
14661
|
-
label: addOnData
|
|
14662
|
-
price: addOnData
|
|
14661
|
+
label: addOnData.meal.label || mergedLabels.mealLabel,
|
|
14662
|
+
price: addOnData.meal.price
|
|
14663
14663
|
}
|
|
14664
|
-
];
|
|
14664
|
+
].filter(Boolean);
|
|
14665
14665
|
return /* @__PURE__ */ jsx("div", { className: `${styles.container} ${className || ""}`, children: /* @__PURE__ */ jsxs("div", { className: styles.bookingDetail, children: [
|
|
14666
14666
|
/* @__PURE__ */ jsxs(Card, { className: styles.bookingDetailTop, children: [
|
|
14667
14667
|
/* @__PURE__ */ jsx(Subtitle1, { children: mergedLabels.bookingDetails }),
|
|
@@ -15680,6 +15680,16 @@ var useStyles34 = makeStyles({
|
|
|
15680
15680
|
flexDirection: "column",
|
|
15681
15681
|
rowGap: tokens.spacingVerticalL
|
|
15682
15682
|
},
|
|
15683
|
+
passengerList: {
|
|
15684
|
+
display: "flex",
|
|
15685
|
+
flexDirection: "column",
|
|
15686
|
+
rowGap: tokens.spacingVerticalL
|
|
15687
|
+
},
|
|
15688
|
+
passengerListScrollable: {
|
|
15689
|
+
maxHeight: "560px",
|
|
15690
|
+
overflowY: "auto",
|
|
15691
|
+
paddingRight: tokens.spacingHorizontalXS
|
|
15692
|
+
},
|
|
15683
15693
|
passengerCard: {
|
|
15684
15694
|
boxShadow: "none",
|
|
15685
15695
|
border: `${tokens.strokeWidthThin} solid ${tokens.colorNeutralStroke1}`,
|
|
@@ -15738,12 +15748,13 @@ var CardReviewPassenger = ({
|
|
|
15738
15748
|
const styles = useStyles34();
|
|
15739
15749
|
const mergedLabels = { ...DEFAULT_LABELS33[language], ...labels };
|
|
15740
15750
|
const displayTitle = title || mergedLabels.title;
|
|
15751
|
+
const isScrollable = !isLoading && passengers.length > 5;
|
|
15741
15752
|
return /* @__PURE__ */ jsx(Card, { className: `${styles.card} ${className || ""}`, children: /* @__PURE__ */ jsxs(Row, { direction: "column", nogutter: true, className: styles.list, children: [
|
|
15742
15753
|
/* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsxs(Row, { nogutter: true, className: styles.titleRow, children: [
|
|
15743
15754
|
/* @__PURE__ */ jsx(Subtitle1, { children: displayTitle }),
|
|
15744
15755
|
/* @__PURE__ */ jsx(Divider, { className: styles.titleDivider })
|
|
15745
15756
|
] }) }),
|
|
15746
|
-
isLoading ? Array.from({ length: 2 }).map((_, index) => /* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsx(Card, { className: styles.passengerCard, children: /* @__PURE__ */ jsxs(Row, { nogutter: true, className: styles.passengerRow, children: [
|
|
15757
|
+
/* @__PURE__ */ jsx("div", { className: `${styles.passengerList} ${isScrollable ? styles.passengerListScrollable : ""}`, children: isLoading ? Array.from({ length: 2 }).map((_, index) => /* @__PURE__ */ jsx(Col, { xs: 12, children: /* @__PURE__ */ jsx(Card, { className: styles.passengerCard, children: /* @__PURE__ */ jsxs(Row, { nogutter: true, className: styles.passengerRow, children: [
|
|
15747
15758
|
/* @__PURE__ */ jsx(Col, { children: /* @__PURE__ */ jsxs(Skeleton, { children: [
|
|
15748
15759
|
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "180px", height: "18px", marginBottom: "8px" } }),
|
|
15749
15760
|
/* @__PURE__ */ jsx(SkeletonItem, { style: { width: "220px", height: "16px" } })
|
|
@@ -15781,7 +15792,7 @@ var CardReviewPassenger = ({
|
|
|
15781
15792
|
}
|
|
15782
15793
|
) })
|
|
15783
15794
|
] }) }) }, passenger.id || index);
|
|
15784
|
-
})
|
|
15795
|
+
}) })
|
|
15785
15796
|
] }) });
|
|
15786
15797
|
};
|
|
15787
15798
|
|