@asdp/ferryui 0.1.22-dev.10750 → 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 +58 -1
- package/dist/index.d.ts +58 -1
- package/dist/index.js +176 -68
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +177 -70
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -3811,6 +3811,7 @@ interface PaymentMethodCategory {
|
|
|
3811
3811
|
}
|
|
3812
3812
|
interface CardPaymentMethodListLabels {
|
|
3813
3813
|
selectAriaLabel: string;
|
|
3814
|
+
method: string;
|
|
3814
3815
|
}
|
|
3815
3816
|
interface CardPaymentMethodListProps {
|
|
3816
3817
|
/**
|
|
@@ -3829,6 +3830,62 @@ interface CardPaymentMethodListProps {
|
|
|
3829
3830
|
|
|
3830
3831
|
declare const CardPaymentMethodList: React$1.FC<CardPaymentMethodListProps>;
|
|
3831
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
|
+
|
|
3832
3889
|
interface PaymentGuideStep {
|
|
3833
3890
|
title: string;
|
|
3834
3891
|
value: string;
|
|
@@ -4127,4 +4184,4 @@ interface ModalListMenuServiceProps {
|
|
|
4127
4184
|
|
|
4128
4185
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
4129
4186
|
|
|
4130
|
-
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
|
@@ -3811,6 +3811,7 @@ interface PaymentMethodCategory {
|
|
|
3811
3811
|
}
|
|
3812
3812
|
interface CardPaymentMethodListLabels {
|
|
3813
3813
|
selectAriaLabel: string;
|
|
3814
|
+
method: string;
|
|
3814
3815
|
}
|
|
3815
3816
|
interface CardPaymentMethodListProps {
|
|
3816
3817
|
/**
|
|
@@ -3829,6 +3830,62 @@ interface CardPaymentMethodListProps {
|
|
|
3829
3830
|
|
|
3830
3831
|
declare const CardPaymentMethodList: React$1.FC<CardPaymentMethodListProps>;
|
|
3831
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
|
+
|
|
3832
3889
|
interface PaymentGuideStep {
|
|
3833
3890
|
title: string;
|
|
3834
3891
|
value: string;
|
|
@@ -4127,4 +4184,4 @@ interface ModalListMenuServiceProps {
|
|
|
4127
4184
|
|
|
4128
4185
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
4129
4186
|
|
|
4130
|
-
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
|
@@ -16432,10 +16432,12 @@ var CardPriceDetails = ({
|
|
|
16432
16432
|
// src/components/CardPaymentMethodList/CardPaymentMethodList.constants.ts
|
|
16433
16433
|
var DEFAULT_LABELS36 = {
|
|
16434
16434
|
id: {
|
|
16435
|
-
selectAriaLabel: "Pilih metode pembayaran"
|
|
16435
|
+
selectAriaLabel: "Pilih metode pembayaran",
|
|
16436
|
+
method: "Metode Pembayaran"
|
|
16436
16437
|
},
|
|
16437
16438
|
en: {
|
|
16438
|
-
selectAriaLabel: "Select payment method"
|
|
16439
|
+
selectAriaLabel: "Select payment method",
|
|
16440
|
+
method: "Payment Method"
|
|
16439
16441
|
}
|
|
16440
16442
|
};
|
|
16441
16443
|
var useStyles38 = reactComponents.makeStyles({
|
|
@@ -16500,55 +16502,160 @@ var CardPaymentMethodList = ({
|
|
|
16500
16502
|
}) => {
|
|
16501
16503
|
const styles = useStyles38();
|
|
16502
16504
|
const mergedLabels = { ...DEFAULT_LABELS36[language], ...labels };
|
|
16503
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxRuntime.
|
|
16504
|
-
|
|
16505
|
-
|
|
16506
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
|
|
16515
|
-
|
|
16516
|
-
{
|
|
16517
|
-
|
|
16518
|
-
|
|
16519
|
-
|
|
16520
|
-
|
|
16505
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles.container}`, children: [
|
|
16506
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { children: mergedLabels.method }),
|
|
16507
|
+
methods.map((category, index) => /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
16508
|
+
index > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.dividerContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Divider, {}) }),
|
|
16509
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Accordion, { multiple: true, collapsible: true, children: /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.AccordionItem, { value: category.value, children: [
|
|
16510
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16511
|
+
reactComponents.AccordionHeader,
|
|
16512
|
+
{
|
|
16513
|
+
expandIconPosition: "end",
|
|
16514
|
+
className: styles.title,
|
|
16515
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { children: category.title || category.value })
|
|
16516
|
+
}
|
|
16517
|
+
),
|
|
16518
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.AccordionPanel, { children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.itemContainer, children: category.options.map((option) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16519
|
+
"div",
|
|
16520
|
+
{
|
|
16521
|
+
className: styles.optionContainer,
|
|
16522
|
+
onClick: () => onSelect(option.value),
|
|
16523
|
+
children: [
|
|
16524
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.codeImage, children: [
|
|
16525
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16526
|
+
"img",
|
|
16527
|
+
{
|
|
16528
|
+
src: option.image,
|
|
16529
|
+
alt: option.label,
|
|
16530
|
+
className: styles.image
|
|
16531
|
+
}
|
|
16532
|
+
),
|
|
16533
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle2, { className: styles.optionLabel, children: option.label })
|
|
16534
|
+
] }),
|
|
16521
16535
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16522
|
-
|
|
16536
|
+
reactComponents.Radio,
|
|
16523
16537
|
{
|
|
16524
|
-
|
|
16525
|
-
|
|
16526
|
-
|
|
16538
|
+
checked: selectedValue === option.value,
|
|
16539
|
+
onChange: () => onSelect(option.value),
|
|
16540
|
+
value: option.value,
|
|
16541
|
+
name: "payment-method",
|
|
16542
|
+
disabled: option.disabled,
|
|
16543
|
+
"aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
|
|
16527
16544
|
}
|
|
16528
|
-
)
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
value: option.value,
|
|
16537
|
-
name: "payment-method",
|
|
16538
|
-
disabled: option.disabled,
|
|
16539
|
-
"aria-label": `${mergedLabels.selectAriaLabel} ${option.label}`
|
|
16540
|
-
}
|
|
16541
|
-
)
|
|
16542
|
-
]
|
|
16543
|
-
},
|
|
16544
|
-
option.value
|
|
16545
|
-
)) }) })
|
|
16546
|
-
] }) })
|
|
16547
|
-
] }, category.value || index)) }) });
|
|
16545
|
+
)
|
|
16546
|
+
]
|
|
16547
|
+
},
|
|
16548
|
+
option.value
|
|
16549
|
+
)) }) })
|
|
16550
|
+
] }) })
|
|
16551
|
+
] }, category.value || index))
|
|
16552
|
+
] }) });
|
|
16548
16553
|
};
|
|
16549
16554
|
|
|
16550
|
-
// src/components/
|
|
16555
|
+
// src/components/CardPaymentMethodFavorite/CardPaymentMethodFavorite.constants.ts
|
|
16551
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 = {
|
|
16552
16659
|
id: {
|
|
16553
16660
|
title: "Cara Pembayaran"
|
|
16554
16661
|
},
|
|
@@ -16556,7 +16663,7 @@ var DEFAULT_LABELS37 = {
|
|
|
16556
16663
|
title: "Payment Method"
|
|
16557
16664
|
}
|
|
16558
16665
|
};
|
|
16559
|
-
var
|
|
16666
|
+
var useStyles40 = reactComponents.makeStyles({
|
|
16560
16667
|
container: {
|
|
16561
16668
|
display: "flex",
|
|
16562
16669
|
flexDirection: "column",
|
|
@@ -16592,8 +16699,8 @@ var CardPaymentGuide = ({
|
|
|
16592
16699
|
guides,
|
|
16593
16700
|
className
|
|
16594
16701
|
}) => {
|
|
16595
|
-
const styles =
|
|
16596
|
-
const mergedLabels = { ...
|
|
16702
|
+
const styles = useStyles40();
|
|
16703
|
+
const mergedLabels = { ...DEFAULT_LABELS38[language], ...labels };
|
|
16597
16704
|
const displayTitle = title || mergedLabels.title;
|
|
16598
16705
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${styles.container} ${className || ""}`, children: [
|
|
16599
16706
|
displayTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.titleContainer, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { className: styles.title, children: displayTitle }) }),
|
|
@@ -16612,7 +16719,7 @@ var CardPaymentGuide = ({
|
|
|
16612
16719
|
};
|
|
16613
16720
|
|
|
16614
16721
|
// src/components/CardPaymentInfo/CardPaymentInfo.constants.ts
|
|
16615
|
-
var
|
|
16722
|
+
var DEFAULT_LABELS39 = {
|
|
16616
16723
|
id: {
|
|
16617
16724
|
expiryPrefix: "Kode virtual akun berlaku sampai",
|
|
16618
16725
|
copyCodeButton: "Salin Kode",
|
|
@@ -16632,7 +16739,7 @@ var DEFAULT_LABELS38 = {
|
|
|
16632
16739
|
changePayment: "Change Payment Method"
|
|
16633
16740
|
}
|
|
16634
16741
|
};
|
|
16635
|
-
var
|
|
16742
|
+
var useStyles41 = reactComponents.makeStyles({
|
|
16636
16743
|
container: {
|
|
16637
16744
|
display: "flex",
|
|
16638
16745
|
flexDirection: "column",
|
|
@@ -16724,8 +16831,8 @@ var CardPaymentInfo = ({
|
|
|
16724
16831
|
onCheckStatus,
|
|
16725
16832
|
onChangePayment
|
|
16726
16833
|
}) => {
|
|
16727
|
-
const styles =
|
|
16728
|
-
const mergedLabels = { ...
|
|
16834
|
+
const styles = useStyles41();
|
|
16835
|
+
const mergedLabels = { ...DEFAULT_LABELS39[language], ...labels };
|
|
16729
16836
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.card, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.container, children: [
|
|
16730
16837
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.headerRow, children: [
|
|
16731
16838
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Subtitle1, { children: mergedLabels.expiryPrefix }),
|
|
@@ -16797,7 +16904,7 @@ var CardPaymentInfo = ({
|
|
|
16797
16904
|
};
|
|
16798
16905
|
|
|
16799
16906
|
// src/components/CardStatusOrder/CardStatusOrder.constants.ts
|
|
16800
|
-
var
|
|
16907
|
+
var DEFAULT_LABELS40 = {
|
|
16801
16908
|
id: {
|
|
16802
16909
|
detailTitle: "Detail Pemesanan",
|
|
16803
16910
|
statusLabel: "Status",
|
|
@@ -16827,7 +16934,7 @@ var DEFAULT_LABELS39 = {
|
|
|
16827
16934
|
illustrationAlt: "E-Ticket Illustration"
|
|
16828
16935
|
}
|
|
16829
16936
|
};
|
|
16830
|
-
var
|
|
16937
|
+
var useStyles42 = reactComponents.makeStyles({
|
|
16831
16938
|
activeCard: {
|
|
16832
16939
|
width: "100%",
|
|
16833
16940
|
// padding: tokens.spacingHorizontalNone, // default
|
|
@@ -16897,8 +17004,8 @@ var CardStatusOrder = ({
|
|
|
16897
17004
|
onClickViewTicket,
|
|
16898
17005
|
className
|
|
16899
17006
|
}) => {
|
|
16900
|
-
const styles =
|
|
16901
|
-
const mergedLabels = { ...
|
|
17007
|
+
const styles = useStyles42();
|
|
17008
|
+
const mergedLabels = { ...DEFAULT_LABELS40[language], ...labels };
|
|
16902
17009
|
const displayStatus = statusLabel || mergedLabels.defaultStatus;
|
|
16903
17010
|
const displayTitle = title || mergedLabels.defaultTitle;
|
|
16904
17011
|
const displayDescription = description || mergedLabels.defaultDescription;
|
|
@@ -16995,7 +17102,7 @@ var CardStatusOrder = ({
|
|
|
16995
17102
|
};
|
|
16996
17103
|
|
|
16997
17104
|
// src/components/ModalPriceDetail/ModalPriceDetail.constants.ts
|
|
16998
|
-
var
|
|
17105
|
+
var DEFAULT_LABELS41 = {
|
|
16999
17106
|
id: {
|
|
17000
17107
|
title: "Rincian Harga",
|
|
17001
17108
|
passengerDetailHeader: "Detail Penumpang",
|
|
@@ -17027,7 +17134,7 @@ var DEFAULT_LABELS40 = {
|
|
|
17027
17134
|
closeAriaLabel: "Close"
|
|
17028
17135
|
}
|
|
17029
17136
|
};
|
|
17030
|
-
var
|
|
17137
|
+
var useStyles43 = reactComponents.makeStyles({
|
|
17031
17138
|
surface: {
|
|
17032
17139
|
width: "680px",
|
|
17033
17140
|
maxWidth: "90vw",
|
|
@@ -17187,8 +17294,8 @@ var ModalPriceDetail = ({
|
|
|
17187
17294
|
roundTripGrandTotal,
|
|
17188
17295
|
...props
|
|
17189
17296
|
}) => {
|
|
17190
|
-
const styles =
|
|
17191
|
-
const mergedLabels = { ...
|
|
17297
|
+
const styles = useStyles43();
|
|
17298
|
+
const mergedLabels = { ...DEFAULT_LABELS41[language], ...labels };
|
|
17192
17299
|
const locale = language === "id" ? "id-ID" : "en-US";
|
|
17193
17300
|
const formatCurrency = (value) => `${mergedLabels.currencyCode} ${value.toLocaleString(locale)}`;
|
|
17194
17301
|
const passengerItemsFromNested = detailItems.flatMap(
|
|
@@ -17717,7 +17824,7 @@ var ModalPriceDetail = ({
|
|
|
17717
17824
|
// src/components/FileUpload/FileUpload.constants.ts
|
|
17718
17825
|
var ACCEPTED_FILES = ".pdf,.jpg,.jpeg,.png";
|
|
17719
17826
|
var MAX_FILE_SIZE_MB = 10;
|
|
17720
|
-
var
|
|
17827
|
+
var DEFAULT_LABELS42 = {
|
|
17721
17828
|
id: {
|
|
17722
17829
|
placeholder: "Ketuk untuk pilih file",
|
|
17723
17830
|
maxSizeWarning: "Maksimal {maxSize}MB per file dalam format PDF, JPG, JPEG, PNG.",
|
|
@@ -17735,7 +17842,7 @@ var DEFAULT_LABELS41 = {
|
|
|
17735
17842
|
downloadTemplateDocument: "Download Template Document"
|
|
17736
17843
|
}
|
|
17737
17844
|
};
|
|
17738
|
-
var
|
|
17845
|
+
var useStyles44 = reactComponents.makeStyles({
|
|
17739
17846
|
surface: {
|
|
17740
17847
|
maxWidth: "90vw",
|
|
17741
17848
|
maxHeight: "90vh",
|
|
@@ -17762,7 +17869,7 @@ var ModalPreviewImage = ({
|
|
|
17762
17869
|
imageUrl,
|
|
17763
17870
|
alt = "Preview"
|
|
17764
17871
|
}) => {
|
|
17765
|
-
const styles =
|
|
17872
|
+
const styles = useStyles44();
|
|
17766
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: [
|
|
17767
17874
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17768
17875
|
reactComponents.DialogTitle,
|
|
@@ -17888,7 +17995,7 @@ var FileUpload = React__default.default.forwardRef(
|
|
|
17888
17995
|
downloadTemplateDocument = false,
|
|
17889
17996
|
infoLabel
|
|
17890
17997
|
}, ref) => {
|
|
17891
|
-
const mergedLabels = { ...
|
|
17998
|
+
const mergedLabels = { ...DEFAULT_LABELS42[language], ...customLabels };
|
|
17892
17999
|
const styles = uploadStyles();
|
|
17893
18000
|
const fileInputRef = React.useRef(null);
|
|
17894
18001
|
const [, setIsDragOver] = React.useState(false);
|
|
@@ -18325,11 +18432,11 @@ function hexToRgba(hex, alpha = 1) {
|
|
|
18325
18432
|
}
|
|
18326
18433
|
|
|
18327
18434
|
// src/components/CardProfileMenu/CardProfileMenu.constants.ts
|
|
18328
|
-
var
|
|
18435
|
+
var DEFAULT_LABELS43 = {
|
|
18329
18436
|
id: {},
|
|
18330
18437
|
en: {}
|
|
18331
18438
|
};
|
|
18332
|
-
var
|
|
18439
|
+
var useStyles45 = reactComponents.makeStyles({
|
|
18333
18440
|
container: {
|
|
18334
18441
|
display: "flex",
|
|
18335
18442
|
flexDirection: "column",
|
|
@@ -18389,8 +18496,8 @@ var CardProfileMenu = ({
|
|
|
18389
18496
|
selectedValue,
|
|
18390
18497
|
onTabSelect
|
|
18391
18498
|
}) => {
|
|
18392
|
-
const styles =
|
|
18393
|
-
({ ...
|
|
18499
|
+
const styles = useStyles45();
|
|
18500
|
+
({ ...DEFAULT_LABELS43[language], ...labels });
|
|
18394
18501
|
const handleTabSelect = (_, data) => {
|
|
18395
18502
|
onTabSelect(data.value);
|
|
18396
18503
|
};
|
|
@@ -18434,6 +18541,7 @@ exports.CardOrdererInfo = CardOrdererInfo;
|
|
|
18434
18541
|
exports.CardPassengerList = CardPassengerList;
|
|
18435
18542
|
exports.CardPaymentGuide = CardPaymentGuide;
|
|
18436
18543
|
exports.CardPaymentInfo = CardPaymentInfo;
|
|
18544
|
+
exports.CardPaymentMethodFavorite = CardPaymentMethodFavorite;
|
|
18437
18545
|
exports.CardPaymentMethodList = CardPaymentMethodList;
|
|
18438
18546
|
exports.CardPriceDetails = CardPriceDetails;
|
|
18439
18547
|
exports.CardProfileMenu = CardProfileMenu;
|