@asdp/ferryui 0.1.22-dev.10751 → 0.1.22-dev.10755
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 +57 -1
- package/dist/index.d.ts +57 -1
- package/dist/index.js +127 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +128 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3830,6 +3830,62 @@ interface CardPaymentMethodListProps {
|
|
|
3830
3830
|
|
|
3831
3831
|
declare const CardPaymentMethodList: React$1.FC<CardPaymentMethodListProps>;
|
|
3832
3832
|
|
|
3833
|
+
interface FavoritePaymentOption {
|
|
3834
|
+
label: string;
|
|
3835
|
+
value: string;
|
|
3836
|
+
image: string;
|
|
3837
|
+
disabled?: boolean;
|
|
3838
|
+
}
|
|
3839
|
+
interface CardPaymentMethodFavoriteLabels {
|
|
3840
|
+
/** Card title */
|
|
3841
|
+
method: string;
|
|
3842
|
+
/** Warning message above the payment options */
|
|
3843
|
+
warningMessage: string;
|
|
3844
|
+
/** Label for the "view all methods" action */
|
|
3845
|
+
viewAllMethods: string;
|
|
3846
|
+
/** Prefix for radio option aria-label */
|
|
3847
|
+
selectAriaLabel: string;
|
|
3848
|
+
}
|
|
3849
|
+
interface CardPaymentMethodFavoriteProps {
|
|
3850
|
+
/**
|
|
3851
|
+
* Language for labels
|
|
3852
|
+
* @default 'id'
|
|
3853
|
+
*/
|
|
3854
|
+
language?: Language;
|
|
3855
|
+
/**
|
|
3856
|
+
* Custom labels override
|
|
3857
|
+
*/
|
|
3858
|
+
labels?: Partial<CardPaymentMethodFavoriteLabels>;
|
|
3859
|
+
/**
|
|
3860
|
+
* Favorite payment methods shown in the list
|
|
3861
|
+
*/
|
|
3862
|
+
methods: FavoritePaymentOption[];
|
|
3863
|
+
/**
|
|
3864
|
+
* Currently selected payment method value
|
|
3865
|
+
*/
|
|
3866
|
+
selectedValue?: string;
|
|
3867
|
+
/**
|
|
3868
|
+
* Called when a payment method is selected
|
|
3869
|
+
*/
|
|
3870
|
+
onSelect: (value: string) => void;
|
|
3871
|
+
/**
|
|
3872
|
+
* Called when "view all payment methods" is clicked
|
|
3873
|
+
*/
|
|
3874
|
+
onViewAllMethods?: () => void;
|
|
3875
|
+
/**
|
|
3876
|
+
* Whether to show the warning message bar
|
|
3877
|
+
* @default true
|
|
3878
|
+
*/
|
|
3879
|
+
showWarning?: boolean;
|
|
3880
|
+
/**
|
|
3881
|
+
* Whether to show the "view all payment methods" button
|
|
3882
|
+
* @default true
|
|
3883
|
+
*/
|
|
3884
|
+
showViewAllButton?: boolean;
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
declare const CardPaymentMethodFavorite: React$1.FC<CardPaymentMethodFavoriteProps>;
|
|
3888
|
+
|
|
3833
3889
|
interface PaymentGuideStep {
|
|
3834
3890
|
title: string;
|
|
3835
3891
|
value: string;
|
|
@@ -4128,4 +4184,4 @@ interface ModalListMenuServiceProps {
|
|
|
4128
4184
|
|
|
4129
4185
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
4130
4186
|
|
|
4131
|
-
export { API_CONFIG, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingAddOn, type CardBookingAddOnData, type CardBookingAddOnItem, type CardBookingAddOnLabels, type CardBookingAddOnProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewDetail, type CardReviewDetailProps, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HARDCODED_ID, HARDCODED_NAME, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, type IdentityType, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, type Passenger, type PassengerClass, type PassengerFormData, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
|
4187
|
+
export { API_CONFIG, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingAddOn, type CardBookingAddOnData, type CardBookingAddOnItem, type CardBookingAddOnLabels, type CardBookingAddOnProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodFavorite, type CardPaymentMethodFavoriteProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewDetail, type CardReviewDetailProps, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, type FavoritePaymentOption, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HARDCODED_ID, HARDCODED_NAME, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, type IdentityType, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, type Passenger, type PassengerClass, type PassengerFormData, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
package/dist/index.d.ts
CHANGED
|
@@ -3830,6 +3830,62 @@ interface CardPaymentMethodListProps {
|
|
|
3830
3830
|
|
|
3831
3831
|
declare const CardPaymentMethodList: React$1.FC<CardPaymentMethodListProps>;
|
|
3832
3832
|
|
|
3833
|
+
interface FavoritePaymentOption {
|
|
3834
|
+
label: string;
|
|
3835
|
+
value: string;
|
|
3836
|
+
image: string;
|
|
3837
|
+
disabled?: boolean;
|
|
3838
|
+
}
|
|
3839
|
+
interface CardPaymentMethodFavoriteLabels {
|
|
3840
|
+
/** Card title */
|
|
3841
|
+
method: string;
|
|
3842
|
+
/** Warning message above the payment options */
|
|
3843
|
+
warningMessage: string;
|
|
3844
|
+
/** Label for the "view all methods" action */
|
|
3845
|
+
viewAllMethods: string;
|
|
3846
|
+
/** Prefix for radio option aria-label */
|
|
3847
|
+
selectAriaLabel: string;
|
|
3848
|
+
}
|
|
3849
|
+
interface CardPaymentMethodFavoriteProps {
|
|
3850
|
+
/**
|
|
3851
|
+
* Language for labels
|
|
3852
|
+
* @default 'id'
|
|
3853
|
+
*/
|
|
3854
|
+
language?: Language;
|
|
3855
|
+
/**
|
|
3856
|
+
* Custom labels override
|
|
3857
|
+
*/
|
|
3858
|
+
labels?: Partial<CardPaymentMethodFavoriteLabels>;
|
|
3859
|
+
/**
|
|
3860
|
+
* Favorite payment methods shown in the list
|
|
3861
|
+
*/
|
|
3862
|
+
methods: FavoritePaymentOption[];
|
|
3863
|
+
/**
|
|
3864
|
+
* Currently selected payment method value
|
|
3865
|
+
*/
|
|
3866
|
+
selectedValue?: string;
|
|
3867
|
+
/**
|
|
3868
|
+
* Called when a payment method is selected
|
|
3869
|
+
*/
|
|
3870
|
+
onSelect: (value: string) => void;
|
|
3871
|
+
/**
|
|
3872
|
+
* Called when "view all payment methods" is clicked
|
|
3873
|
+
*/
|
|
3874
|
+
onViewAllMethods?: () => void;
|
|
3875
|
+
/**
|
|
3876
|
+
* Whether to show the warning message bar
|
|
3877
|
+
* @default true
|
|
3878
|
+
*/
|
|
3879
|
+
showWarning?: boolean;
|
|
3880
|
+
/**
|
|
3881
|
+
* Whether to show the "view all payment methods" button
|
|
3882
|
+
* @default true
|
|
3883
|
+
*/
|
|
3884
|
+
showViewAllButton?: boolean;
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
declare const CardPaymentMethodFavorite: React$1.FC<CardPaymentMethodFavoriteProps>;
|
|
3888
|
+
|
|
3833
3889
|
interface PaymentGuideStep {
|
|
3834
3890
|
title: string;
|
|
3835
3891
|
value: string;
|
|
@@ -4128,4 +4184,4 @@ interface ModalListMenuServiceProps {
|
|
|
4128
4184
|
|
|
4129
4185
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
4130
4186
|
|
|
4131
|
-
export { API_CONFIG, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingAddOn, type CardBookingAddOnData, type CardBookingAddOnItem, type CardBookingAddOnLabels, type CardBookingAddOnProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewDetail, type CardReviewDetailProps, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HARDCODED_ID, HARDCODED_NAME, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, type IdentityType, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, type Passenger, type PassengerClass, type PassengerFormData, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
|
4187
|
+
export { API_CONFIG, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, CardBookingAddOn, type CardBookingAddOnData, type CardBookingAddOnItem, type CardBookingAddOnLabels, type CardBookingAddOnProps, CardBookingTicket, type CardBookingTicketProps, CardFAQ, type CardFAQProps, CardMealCatalog, type CardMealCatalogProps, CardOrdererInfo, type CardOrdererInfoProps, CardPassengerList, type CardPassengerListProps, CardPaymentGuide, type CardPaymentGuideProps, CardPaymentInfo, type CardPaymentInfoProps, CardPaymentMethodFavorite, type CardPaymentMethodFavoriteProps, CardPaymentMethodList, type CardPaymentMethodListProps, CardPriceDetails, type CardPriceDetailsProps, CardProfileMenu, type CardProfileMenuLabels, type CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewDetail, type CardReviewDetailProps, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$4 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$3 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryOption, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type DepartureItem, EmptyContent, type EmptyContentButton, DEFAULT_LABELS$2 as EmptyContentDefaultLabels, type EmptyContentLabels, type EmptyContentProps, type FavoritePaymentOption, FileUpload, type FileUploadProps, type FilterCount, GENDER, type GENDER_TYPE, HARDCODED_ID, HARDCODED_NAME, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, type IdentityType, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_TYPE, type LoadType, MANIFEST_ENTITY, type MANIFEST_ENTITY_TYPE, MODAL_PRESETS, MY_TICKET_STATUS, type MY_TICKET_STATUS_TYPE, MY_TICKET_TAB, type MY_TICKET_TAB_TYPE, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListMenuService, type ModalListMenuServiceProps, ModalListPassenger, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPreviewImage, type ModalPreviewImageProps, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type CardServiceMenuItem as ModalServiceItem, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, PASSENGER_TYPE, type PASSENGER_TYPE_TYPE, type Passenger, type PassengerClass, type PassengerFormData, type PassengerService, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type Provider, type RadioOption, type ReservationStep, type ReviewPassengerItem, type RouteItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, calculateAge, getBadgeConfig, getModalPreset, getSortLabel, hexToRgba };
|
package/dist/index.js
CHANGED
|
@@ -16552,8 +16552,110 @@ var CardPaymentMethodList = ({
|
|
|
16552
16552
|
] }) });
|
|
16553
16553
|
};
|
|
16554
16554
|
|
|
16555
|
-
// src/components/
|
|
16555
|
+
// src/components/CardPaymentMethodFavorite/CardPaymentMethodFavorite.constants.ts
|
|
16556
16556
|
var DEFAULT_LABELS37 = {
|
|
16557
|
+
id: {
|
|
16558
|
+
method: "Metode Pembayaran Favorit",
|
|
16559
|
+
warningMessage: "Harap pilih salah satu metode pembayaran di bawah ini untuk melanjutkan.",
|
|
16560
|
+
viewAllMethods: "Lihat Semua Metode Pembayaran",
|
|
16561
|
+
selectAriaLabel: "Pilih metode pembayaran"
|
|
16562
|
+
},
|
|
16563
|
+
en: {
|
|
16564
|
+
method: "Favorite Payment Method",
|
|
16565
|
+
warningMessage: "Please select one of the payment methods below to continue.",
|
|
16566
|
+
viewAllMethods: "View All Payment Methods",
|
|
16567
|
+
selectAriaLabel: "Select payment method"
|
|
16568
|
+
}
|
|
16569
|
+
};
|
|
16570
|
+
var useStyles39 = reactComponents.makeStyles({
|
|
16571
|
+
container: {
|
|
16572
|
+
display: "flex",
|
|
16573
|
+
flexDirection: "column",
|
|
16574
|
+
width: "100%",
|
|
16575
|
+
rowGap: reactComponents.tokens.spacingHorizontalXXL
|
|
16576
|
+
},
|
|
16577
|
+
image: {
|
|
16578
|
+
width: "40px",
|
|
16579
|
+
height: "40px",
|
|
16580
|
+
objectFit: "contain"
|
|
16581
|
+
},
|
|
16582
|
+
card: {
|
|
16583
|
+
position: "relative",
|
|
16584
|
+
borderRadius: reactComponents.tokens.borderRadiusXLarge,
|
|
16585
|
+
...reactComponents.shorthands.padding(
|
|
16586
|
+
reactComponents.tokens.spacingHorizontalXL,
|
|
16587
|
+
reactComponents.tokens.spacingVerticalXXL
|
|
16588
|
+
),
|
|
16589
|
+
backgroundColor: reactComponents.tokens.colorNeutralBackground1,
|
|
16590
|
+
zIndex: 3
|
|
16591
|
+
}
|
|
16592
|
+
});
|
|
16593
|
+
var CardPaymentMethodFavorite = ({
|
|
16594
|
+
language = "id",
|
|
16595
|
+
labels,
|
|
16596
|
+
methods,
|
|
16597
|
+
selectedValue,
|
|
16598
|
+
onSelect,
|
|
16599
|
+
onViewAllMethods,
|
|
16600
|
+
showWarning = true,
|
|
16601
|
+
showViewAllButton = true
|
|
16602
|
+
}) => {
|
|
16603
|
+
const styles = useStyles39();
|
|
16604
|
+
const mergedLabels = { ...DEFAULT_LABELS37[language], ...labels };
|
|
16605
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles.container}`, children: [
|
|
16606
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { children: mergedLabels.method }),
|
|
16607
|
+
showWarning && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16608
|
+
reactComponents.MessageBar,
|
|
16609
|
+
{
|
|
16610
|
+
intent: "warning",
|
|
16611
|
+
style: { borderRadius: reactComponents.tokens.borderRadiusLarge },
|
|
16612
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16613
|
+
reactComponents.Caption1Strong,
|
|
16614
|
+
{
|
|
16615
|
+
style: { color: reactComponents.tokens.colorStatusWarningForeground1 },
|
|
16616
|
+
children: mergedLabels.warningMessage
|
|
16617
|
+
}
|
|
16618
|
+
)
|
|
16619
|
+
}
|
|
16620
|
+
),
|
|
16621
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Row, { nogutter: true, style: { gap: reactComponents.tokens.spacingVerticalL }, children: methods.map((option) => /* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: 12, children: /* @__PURE__ */ jsxRuntime.jsxs(reactGridSystem.Row, { justify: "between", children: [
|
|
16622
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: "content", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16623
|
+
"img",
|
|
16624
|
+
{
|
|
16625
|
+
src: option.image,
|
|
16626
|
+
alt: option.label,
|
|
16627
|
+
className: styles.image
|
|
16628
|
+
}
|
|
16629
|
+
) }),
|
|
16630
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle2, { children: option.label }) }),
|
|
16631
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactGridSystem.Col, { xs: "content", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
16632
|
+
reactComponents.Radio,
|
|
16633
|
+
{
|
|
16634
|
+
checked: selectedValue === option.value,
|
|
16635
|
+
onChange: () => onSelect(option.value),
|
|
16636
|
+
value: option.value,
|
|
16637
|
+
name: "payment-method-favorite",
|
|
16638
|
+
disabled: option.disabled,
|
|
16639
|
+
"aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
|
|
16640
|
+
}
|
|
16641
|
+
) })
|
|
16642
|
+
] }) }, option.value)) }),
|
|
16643
|
+
showViewAllButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
16644
|
+
reactComponents.Button,
|
|
16645
|
+
{
|
|
16646
|
+
style: { width: "100%" },
|
|
16647
|
+
appearance: "transparent",
|
|
16648
|
+
iconPosition: "after",
|
|
16649
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(reactIcons.ChevronDownRegular, {}),
|
|
16650
|
+
onClick: onViewAllMethods,
|
|
16651
|
+
children: mergedLabels.viewAllMethods
|
|
16652
|
+
}
|
|
16653
|
+
)
|
|
16654
|
+
] }) });
|
|
16655
|
+
};
|
|
16656
|
+
|
|
16657
|
+
// src/components/CardPaymentGuide/CardPaymentGuide.constants.ts
|
|
16658
|
+
var DEFAULT_LABELS38 = {
|
|
16557
16659
|
id: {
|
|
16558
16660
|
title: "Cara Pembayaran"
|
|
16559
16661
|
},
|
|
@@ -16561,7 +16663,7 @@ var DEFAULT_LABELS37 = {
|
|
|
16561
16663
|
title: "Payment Method"
|
|
16562
16664
|
}
|
|
16563
16665
|
};
|
|
16564
|
-
var
|
|
16666
|
+
var useStyles40 = reactComponents.makeStyles({
|
|
16565
16667
|
container: {
|
|
16566
16668
|
display: "flex",
|
|
16567
16669
|
flexDirection: "column",
|
|
@@ -16597,8 +16699,8 @@ var CardPaymentGuide = ({
|
|
|
16597
16699
|
guides,
|
|
16598
16700
|
className
|
|
16599
16701
|
}) => {
|
|
16600
|
-
const styles =
|
|
16601
|
-
const mergedLabels = { ...
|
|
16702
|
+
const styles = useStyles40();
|
|
16703
|
+
const mergedLabels = { ...DEFAULT_LABELS38[language], ...labels };
|
|
16602
16704
|
const displayTitle = title || mergedLabels.title;
|
|
16603
16705
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles.container} ${className || ""}`, children: [
|
|
16604
16706
|
displayTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.titleContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { className: styles.title, children: displayTitle }) }),
|
|
@@ -16617,7 +16719,7 @@ var CardPaymentGuide = ({
|
|
|
16617
16719
|
};
|
|
16618
16720
|
|
|
16619
16721
|
// src/components/CardPaymentInfo/CardPaymentInfo.constants.ts
|
|
16620
|
-
var
|
|
16722
|
+
var DEFAULT_LABELS39 = {
|
|
16621
16723
|
id: {
|
|
16622
16724
|
expiryPrefix: "Kode virtual akun berlaku sampai",
|
|
16623
16725
|
copyCodeButton: "Salin Kode",
|
|
@@ -16637,7 +16739,7 @@ var DEFAULT_LABELS38 = {
|
|
|
16637
16739
|
changePayment: "Change Payment Method"
|
|
16638
16740
|
}
|
|
16639
16741
|
};
|
|
16640
|
-
var
|
|
16742
|
+
var useStyles41 = reactComponents.makeStyles({
|
|
16641
16743
|
container: {
|
|
16642
16744
|
display: "flex",
|
|
16643
16745
|
flexDirection: "column",
|
|
@@ -16729,8 +16831,8 @@ var CardPaymentInfo = ({
|
|
|
16729
16831
|
onCheckStatus,
|
|
16730
16832
|
onChangePayment
|
|
16731
16833
|
}) => {
|
|
16732
|
-
const styles =
|
|
16733
|
-
const mergedLabels = { ...
|
|
16834
|
+
const styles = useStyles41();
|
|
16835
|
+
const mergedLabels = { ...DEFAULT_LABELS39[language], ...labels };
|
|
16734
16836
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.container, children: [
|
|
16735
16837
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.headerRow, children: [
|
|
16736
16838
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { children: mergedLabels.expiryPrefix }),
|
|
@@ -16802,7 +16904,7 @@ var CardPaymentInfo = ({
|
|
|
16802
16904
|
};
|
|
16803
16905
|
|
|
16804
16906
|
// src/components/CardStatusOrder/CardStatusOrder.constants.ts
|
|
16805
|
-
var
|
|
16907
|
+
var DEFAULT_LABELS40 = {
|
|
16806
16908
|
id: {
|
|
16807
16909
|
detailTitle: "Detail Pemesanan",
|
|
16808
16910
|
statusLabel: "Status",
|
|
@@ -16832,7 +16934,7 @@ var DEFAULT_LABELS39 = {
|
|
|
16832
16934
|
illustrationAlt: "E-Ticket Illustration"
|
|
16833
16935
|
}
|
|
16834
16936
|
};
|
|
16835
|
-
var
|
|
16937
|
+
var useStyles42 = reactComponents.makeStyles({
|
|
16836
16938
|
activeCard: {
|
|
16837
16939
|
width: "100%",
|
|
16838
16940
|
// padding: tokens.spacingHorizontalNone, // default
|
|
@@ -16902,8 +17004,8 @@ var CardStatusOrder = ({
|
|
|
16902
17004
|
onClickViewTicket,
|
|
16903
17005
|
className
|
|
16904
17006
|
}) => {
|
|
16905
|
-
const styles =
|
|
16906
|
-
const mergedLabels = { ...
|
|
17007
|
+
const styles = useStyles42();
|
|
17008
|
+
const mergedLabels = { ...DEFAULT_LABELS40[language], ...labels };
|
|
16907
17009
|
const displayStatus = statusLabel || mergedLabels.defaultStatus;
|
|
16908
17010
|
const displayTitle = title || mergedLabels.defaultTitle;
|
|
16909
17011
|
const displayDescription = description || mergedLabels.defaultDescription;
|
|
@@ -17000,7 +17102,7 @@ var CardStatusOrder = ({
|
|
|
17000
17102
|
};
|
|
17001
17103
|
|
|
17002
17104
|
// src/components/ModalPriceDetail/ModalPriceDetail.constants.ts
|
|
17003
|
-
var
|
|
17105
|
+
var DEFAULT_LABELS41 = {
|
|
17004
17106
|
id: {
|
|
17005
17107
|
title: "Rincian Harga",
|
|
17006
17108
|
passengerDetailHeader: "Detail Penumpang",
|
|
@@ -17032,7 +17134,7 @@ var DEFAULT_LABELS40 = {
|
|
|
17032
17134
|
closeAriaLabel: "Close"
|
|
17033
17135
|
}
|
|
17034
17136
|
};
|
|
17035
|
-
var
|
|
17137
|
+
var useStyles43 = reactComponents.makeStyles({
|
|
17036
17138
|
surface: {
|
|
17037
17139
|
width: "680px",
|
|
17038
17140
|
maxWidth: "90vw",
|
|
@@ -17192,8 +17294,8 @@ var ModalPriceDetail = ({
|
|
|
17192
17294
|
roundTripGrandTotal,
|
|
17193
17295
|
...props
|
|
17194
17296
|
}) => {
|
|
17195
|
-
const styles =
|
|
17196
|
-
const mergedLabels = { ...
|
|
17297
|
+
const styles = useStyles43();
|
|
17298
|
+
const mergedLabels = { ...DEFAULT_LABELS41[language], ...labels };
|
|
17197
17299
|
const locale = language === "id" ? "id-ID" : "en-US";
|
|
17198
17300
|
const formatCurrency = (value) => `${mergedLabels.currencyCode} ${value.toLocaleString(locale)}`;
|
|
17199
17301
|
const passengerItemsFromNested = detailItems.flatMap(
|
|
@@ -17722,7 +17824,7 @@ var ModalPriceDetail = ({
|
|
|
17722
17824
|
// src/components/FileUpload/FileUpload.constants.ts
|
|
17723
17825
|
var ACCEPTED_FILES = ".pdf,.jpg,.jpeg,.png";
|
|
17724
17826
|
var MAX_FILE_SIZE_MB = 10;
|
|
17725
|
-
var
|
|
17827
|
+
var DEFAULT_LABELS42 = {
|
|
17726
17828
|
id: {
|
|
17727
17829
|
placeholder: "Ketuk untuk pilih file",
|
|
17728
17830
|
maxSizeWarning: "Maksimal {maxSize}MB per file dalam format PDF, JPG, JPEG, PNG.",
|
|
@@ -17740,7 +17842,7 @@ var DEFAULT_LABELS41 = {
|
|
|
17740
17842
|
downloadTemplateDocument: "Download Template Document"
|
|
17741
17843
|
}
|
|
17742
17844
|
};
|
|
17743
|
-
var
|
|
17845
|
+
var useStyles44 = reactComponents.makeStyles({
|
|
17744
17846
|
surface: {
|
|
17745
17847
|
maxWidth: "90vw",
|
|
17746
17848
|
maxHeight: "90vh",
|
|
@@ -17767,7 +17869,7 @@ var ModalPreviewImage = ({
|
|
|
17767
17869
|
imageUrl,
|
|
17768
17870
|
alt = "Preview"
|
|
17769
17871
|
}) => {
|
|
17770
|
-
const styles =
|
|
17872
|
+
const styles = useStyles44();
|
|
17771
17873
|
return /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Dialog, { open, onOpenChange: (_, data) => onOpenChange(data.open), children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.DialogSurface, { className: styles.surface, children: /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.DialogBody, { children: [
|
|
17772
17874
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17773
17875
|
reactComponents.DialogTitle,
|
|
@@ -17893,7 +17995,7 @@ var FileUpload = React__default.default.forwardRef(
|
|
|
17893
17995
|
downloadTemplateDocument = false,
|
|
17894
17996
|
infoLabel
|
|
17895
17997
|
}, ref) => {
|
|
17896
|
-
const mergedLabels = { ...
|
|
17998
|
+
const mergedLabels = { ...DEFAULT_LABELS42[language], ...customLabels };
|
|
17897
17999
|
const styles = uploadStyles();
|
|
17898
18000
|
const fileInputRef = React.useRef(null);
|
|
17899
18001
|
const [, setIsDragOver] = React.useState(false);
|
|
@@ -18330,11 +18432,11 @@ function hexToRgba(hex, alpha = 1) {
|
|
|
18330
18432
|
}
|
|
18331
18433
|
|
|
18332
18434
|
// src/components/CardProfileMenu/CardProfileMenu.constants.ts
|
|
18333
|
-
var
|
|
18435
|
+
var DEFAULT_LABELS43 = {
|
|
18334
18436
|
id: {},
|
|
18335
18437
|
en: {}
|
|
18336
18438
|
};
|
|
18337
|
-
var
|
|
18439
|
+
var useStyles45 = reactComponents.makeStyles({
|
|
18338
18440
|
container: {
|
|
18339
18441
|
display: "flex",
|
|
18340
18442
|
flexDirection: "column",
|
|
@@ -18394,8 +18496,8 @@ var CardProfileMenu = ({
|
|
|
18394
18496
|
selectedValue,
|
|
18395
18497
|
onTabSelect
|
|
18396
18498
|
}) => {
|
|
18397
|
-
const styles =
|
|
18398
|
-
({ ...
|
|
18499
|
+
const styles = useStyles45();
|
|
18500
|
+
({ ...DEFAULT_LABELS43[language], ...labels });
|
|
18399
18501
|
const handleTabSelect = (_, data) => {
|
|
18400
18502
|
onTabSelect(data.value);
|
|
18401
18503
|
};
|
|
@@ -18439,6 +18541,7 @@ exports.CardOrdererInfo = CardOrdererInfo;
|
|
|
18439
18541
|
exports.CardPassengerList = CardPassengerList;
|
|
18440
18542
|
exports.CardPaymentGuide = CardPaymentGuide;
|
|
18441
18543
|
exports.CardPaymentInfo = CardPaymentInfo;
|
|
18544
|
+
exports.CardPaymentMethodFavorite = CardPaymentMethodFavorite;
|
|
18442
18545
|
exports.CardPaymentMethodList = CardPaymentMethodList;
|
|
18443
18546
|
exports.CardPriceDetails = CardPriceDetails;
|
|
18444
18547
|
exports.CardProfileMenu = CardProfileMenu;
|