@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.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { CarouselAnnouncerFunction, DialogProps } from '@fluentui/react-components';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
3
|
import * as react_hook_form from 'react-hook-form';
|
|
5
4
|
import { FieldValues, Path, Control, UseFormWatch, UseFormSetValue, UseFormGetValues } from 'react-hook-form';
|
|
6
5
|
|
|
@@ -548,13 +547,13 @@ declare const CardTicket: React$1.FC<CardTicketProps>;
|
|
|
548
547
|
* Horizontal ticket card background with decorative perforated edges
|
|
549
548
|
* Use this for desktop/landscape layouts
|
|
550
549
|
*/
|
|
551
|
-
declare const BackgroundTicketCard: (props: React$1.SVGProps<SVGSVGElement>) =>
|
|
550
|
+
declare const BackgroundTicketCard: (props: React$1.SVGProps<SVGSVGElement>) => React$1.JSX.Element;
|
|
552
551
|
|
|
553
552
|
/**
|
|
554
553
|
* Vertical ticket card background with decorative perforated edges
|
|
555
554
|
* Use this for mobile/portrait layouts
|
|
556
555
|
*/
|
|
557
|
-
declare const BackgroundTicketCardVertical: (props: React$1.SVGProps<SVGSVGElement>) =>
|
|
556
|
+
declare const BackgroundTicketCardVertical: (props: React$1.SVGProps<SVGSVGElement>) => React$1.JSX.Element;
|
|
558
557
|
|
|
559
558
|
type ServiceId = 'ferry' | 'ifcs' | 'skpt' | 'hotel' | 'other';
|
|
560
559
|
interface CardServiceMenuLabels {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { CarouselAnnouncerFunction, DialogProps } from '@fluentui/react-components';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
3
|
import * as react_hook_form from 'react-hook-form';
|
|
5
4
|
import { FieldValues, Path, Control, UseFormWatch, UseFormSetValue, UseFormGetValues } from 'react-hook-form';
|
|
6
5
|
|
|
@@ -548,13 +547,13 @@ declare const CardTicket: React$1.FC<CardTicketProps>;
|
|
|
548
547
|
* Horizontal ticket card background with decorative perforated edges
|
|
549
548
|
* Use this for desktop/landscape layouts
|
|
550
549
|
*/
|
|
551
|
-
declare const BackgroundTicketCard: (props: React$1.SVGProps<SVGSVGElement>) =>
|
|
550
|
+
declare const BackgroundTicketCard: (props: React$1.SVGProps<SVGSVGElement>) => React$1.JSX.Element;
|
|
552
551
|
|
|
553
552
|
/**
|
|
554
553
|
* Vertical ticket card background with decorative perforated edges
|
|
555
554
|
* Use this for mobile/portrait layouts
|
|
556
555
|
*/
|
|
557
|
-
declare const BackgroundTicketCardVertical: (props: React$1.SVGProps<SVGSVGElement>) =>
|
|
556
|
+
declare const BackgroundTicketCardVertical: (props: React$1.SVGProps<SVGSVGElement>) => React$1.JSX.Element;
|
|
558
557
|
|
|
559
558
|
type ServiceId = 'ferry' | 'ifcs' | 'skpt' | 'hotel' | 'other';
|
|
560
559
|
interface CardServiceMenuLabels {
|
package/dist/index.js
CHANGED
|
@@ -14655,22 +14655,22 @@ var CardBookingAddOn = ({
|
|
|
14655
14655
|
const styles = useStyles29();
|
|
14656
14656
|
const mergedLabels = { ...DEFAULT_LABELS28[language], ...labels };
|
|
14657
14657
|
const addOnRows = [
|
|
14658
|
-
{
|
|
14658
|
+
addOnData?.lounge && {
|
|
14659
14659
|
key: "lounge",
|
|
14660
|
-
label: addOnData
|
|
14661
|
-
price: addOnData
|
|
14660
|
+
label: addOnData.lounge.label || mergedLabels.loungeLabel,
|
|
14661
|
+
price: addOnData.lounge.price
|
|
14662
14662
|
},
|
|
14663
|
-
{
|
|
14663
|
+
addOnData?.assurance && {
|
|
14664
14664
|
key: "assurance",
|
|
14665
|
-
label: addOnData
|
|
14666
|
-
price: addOnData
|
|
14665
|
+
label: addOnData.assurance.label || mergedLabels.assuranceLabel,
|
|
14666
|
+
price: addOnData.assurance.price
|
|
14667
14667
|
},
|
|
14668
|
-
{
|
|
14668
|
+
addOnData?.meal && {
|
|
14669
14669
|
key: "meal",
|
|
14670
|
-
label: addOnData
|
|
14671
|
-
price: addOnData
|
|
14670
|
+
label: addOnData.meal.label || mergedLabels.mealLabel,
|
|
14671
|
+
price: addOnData.meal.price
|
|
14672
14672
|
}
|
|
14673
|
-
];
|
|
14673
|
+
].filter(Boolean);
|
|
14674
14674
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: `${styles.container} ${className || ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.bookingDetail, children: [
|
|
14675
14675
|
/* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Card, { className: styles.bookingDetailTop, children: [
|
|
14676
14676
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { children: mergedLabels.bookingDetails }),
|
|
@@ -15689,6 +15689,16 @@ var useStyles34 = reactComponents.makeStyles({
|
|
|
15689
15689
|
flexDirection: "column",
|
|
15690
15690
|
rowGap: reactComponents.tokens.spacingVerticalL
|
|
15691
15691
|
},
|
|
15692
|
+
passengerList: {
|
|
15693
|
+
display: "flex",
|
|
15694
|
+
flexDirection: "column",
|
|
15695
|
+
rowGap: reactComponents.tokens.spacingVerticalL
|
|
15696
|
+
},
|
|
15697
|
+
passengerListScrollable: {
|
|
15698
|
+
maxHeight: "560px",
|
|
15699
|
+
overflowY: "auto",
|
|
15700
|
+
paddingRight: reactComponents.tokens.spacingHorizontalXS
|
|
15701
|
+
},
|
|
15692
15702
|
passengerCard: {
|
|
15693
15703
|
boxShadow: "none",
|
|
15694
15704
|
border: `${reactComponents.tokens.strokeWidthThin} solid ${reactComponents.tokens.colorNeutralStroke1}`,
|
|
@@ -15747,12 +15757,13 @@ var CardReviewPassenger = ({
|
|
|
15747
15757
|
const styles = useStyles34();
|
|
15748
15758
|
const mergedLabels = { ...DEFAULT_LABELS33[language], ...labels };
|
|
15749
15759
|
const displayTitle = title || mergedLabels.title;
|
|
15760
|
+
const isScrollable = !isLoading && passengers.length > 5;
|
|
15750
15761
|
return /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Card, { className: `${styles.card} ${className || ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { direction: "column", nogutter: true, className: styles.list, children: [
|
|
15751
15762
|
/* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { nogutter: true, className: styles.titleRow, children: [
|
|
15752
15763
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { children: displayTitle }),
|
|
15753
15764
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, { className: styles.titleDivider })
|
|
15754
15765
|
] }) }),
|
|
15755
|
-
isLoading ? Array.from({ length: 2 }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Card, { className: styles.passengerCard, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { nogutter: true, className: styles.passengerRow, children: [
|
|
15766
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: `${styles.passengerList} ${isScrollable ? styles.passengerListScrollable : ""}`, children: isLoading ? Array.from({ length: 2 }).map((_, index) => /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Card, { className: styles.passengerCard, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { nogutter: true, className: styles.passengerRow, children: [
|
|
15756
15767
|
/* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { children: /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Skeleton, { children: [
|
|
15757
15768
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.SkeletonItem, { style: { width: "180px", height: "18px", marginBottom: "8px" } }),
|
|
15758
15769
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.SkeletonItem, { style: { width: "220px", height: "16px" } })
|
|
@@ -15790,7 +15801,7 @@ var CardReviewPassenger = ({
|
|
|
15790
15801
|
}
|
|
15791
15802
|
) })
|
|
15792
15803
|
] }) }) }, passenger.id || index);
|
|
15793
|
-
})
|
|
15804
|
+
}) })
|
|
15794
15805
|
] }) });
|
|
15795
15806
|
};
|
|
15796
15807
|
|