@asdp/ferryui 0.1.22-dev.9337 → 0.1.22-dev.9360
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 +164 -5
- package/dist/index.d.ts +164 -5
- package/dist/index.js +923 -514
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +921 -514
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -698,7 +698,7 @@ interface CardTicketSearchProps {
|
|
|
698
698
|
|
|
699
699
|
declare const CardTicketSearch: React$1.FC<CardTicketSearchProps>;
|
|
700
700
|
|
|
701
|
-
declare const DEFAULT_LABELS$
|
|
701
|
+
declare const DEFAULT_LABELS$4: Record<Language, CardTicketSearchLabels>;
|
|
702
702
|
|
|
703
703
|
interface SearchSummaryField {
|
|
704
704
|
/**
|
|
@@ -776,7 +776,7 @@ interface CardTicketSearchSummaryProps {
|
|
|
776
776
|
|
|
777
777
|
declare const CardTicketSearchSummary: React$1.FC<CardTicketSearchSummaryProps>;
|
|
778
778
|
|
|
779
|
-
declare const DEFAULT_LABELS$
|
|
779
|
+
declare const DEFAULT_LABELS$3: Record<Language, CardTicketSearchSummaryLabels>;
|
|
780
780
|
|
|
781
781
|
type InputType = 'checkbox' | 'country' | 'date' | 'datetime-local' | 'email' | 'file' | 'identity' | 'emailOrPhone' | 'number' | 'otp' | 'passport' | 'password' | 'phone' | 'radio' | 'radiobutton' | 'select' | 'switch' | 'tel' | 'text' | 'textarea' | 'time' | 'url';
|
|
782
782
|
interface SelectOption {
|
|
@@ -909,6 +909,90 @@ interface CountryOption {
|
|
|
909
909
|
*/
|
|
910
910
|
declare const COUNTRIES: CountryOption[];
|
|
911
911
|
|
|
912
|
+
interface EmptyContentLabels {
|
|
913
|
+
defaultImageAlt: string;
|
|
914
|
+
defaultTitle: string;
|
|
915
|
+
defaultMessage: string;
|
|
916
|
+
defaultButtonText: string;
|
|
917
|
+
}
|
|
918
|
+
interface EmptyContentButton {
|
|
919
|
+
/**
|
|
920
|
+
* Button text
|
|
921
|
+
*/
|
|
922
|
+
text: string;
|
|
923
|
+
/**
|
|
924
|
+
* Button click handler
|
|
925
|
+
*/
|
|
926
|
+
onClick: () => void;
|
|
927
|
+
/**
|
|
928
|
+
* Button appearance
|
|
929
|
+
* @default "primary"
|
|
930
|
+
*/
|
|
931
|
+
appearance?: 'primary' | 'outline' | 'secondary' | 'subtle' | 'transparent';
|
|
932
|
+
}
|
|
933
|
+
interface EmptyContentProps {
|
|
934
|
+
/**
|
|
935
|
+
* Title for the empty state
|
|
936
|
+
* If not provided, falls back to the default label for the given language
|
|
937
|
+
*/
|
|
938
|
+
title?: string;
|
|
939
|
+
/**
|
|
940
|
+
* Dynamic content name to replace `{konten}` or `{content}` placeholder in the default title
|
|
941
|
+
*/
|
|
942
|
+
content?: string;
|
|
943
|
+
/**
|
|
944
|
+
* Message content for the empty state
|
|
945
|
+
* Can be a string or React node for more complex content
|
|
946
|
+
* If not provided, falls back to the default label for the given language
|
|
947
|
+
*/
|
|
948
|
+
message?: string | ReactNode;
|
|
949
|
+
/**
|
|
950
|
+
* Image source URL
|
|
951
|
+
* @default "/assets/images/illustrations/no-content.svg"
|
|
952
|
+
* @remarks
|
|
953
|
+
* When using this component in your application, ensure the asset is available at this path
|
|
954
|
+
* in your public directory, or provide a custom imageSrc prop pointing to your own image.
|
|
955
|
+
*/
|
|
956
|
+
imageSrc?: string;
|
|
957
|
+
/**
|
|
958
|
+
* Image alt text
|
|
959
|
+
* If not provided, falls back to the default label for the given language
|
|
960
|
+
*/
|
|
961
|
+
imageAlt?: string;
|
|
962
|
+
/**
|
|
963
|
+
* Image width
|
|
964
|
+
* @default 240
|
|
965
|
+
*/
|
|
966
|
+
imageWidth?: number;
|
|
967
|
+
/**
|
|
968
|
+
* Image height
|
|
969
|
+
* @default 180
|
|
970
|
+
*/
|
|
971
|
+
imageHeight?: number;
|
|
972
|
+
/**
|
|
973
|
+
* Optional action button configuration
|
|
974
|
+
* If not provided, no button will be displayed
|
|
975
|
+
*/
|
|
976
|
+
actionButton?: EmptyContentButton;
|
|
977
|
+
/**
|
|
978
|
+
* Language for default labels
|
|
979
|
+
* @default 'id'
|
|
980
|
+
*/
|
|
981
|
+
language?: Language;
|
|
982
|
+
/**
|
|
983
|
+
* Custom labels override
|
|
984
|
+
*/
|
|
985
|
+
labels?: Partial<EmptyContentLabels>;
|
|
986
|
+
/**
|
|
987
|
+
* Additional class name for root element
|
|
988
|
+
*/
|
|
989
|
+
className?: string;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
declare const EmptyContent: React$1.FC<EmptyContentProps>;
|
|
993
|
+
|
|
994
|
+
declare const DEFAULT_LABELS$2: Record<Language, EmptyContentLabels>;
|
|
995
|
+
|
|
912
996
|
/**
|
|
913
997
|
* Harbor item interface
|
|
914
998
|
*/
|
|
@@ -940,6 +1024,8 @@ interface ModalSearchHarborLabels {
|
|
|
940
1024
|
closeAriaLabel: string;
|
|
941
1025
|
popularHarborHeader: string;
|
|
942
1026
|
favoriteHeader: string;
|
|
1027
|
+
emptyContent: string;
|
|
1028
|
+
travelPlanHeader: string;
|
|
943
1029
|
}
|
|
944
1030
|
/**
|
|
945
1031
|
* Props for ModalSearchHarbor component
|
|
@@ -988,10 +1074,15 @@ interface ModalSearchHarborProps {
|
|
|
988
1074
|
*/
|
|
989
1075
|
popularHarbors: HarborItem[];
|
|
990
1076
|
/**
|
|
991
|
-
* Loading state
|
|
1077
|
+
* Loading state port
|
|
992
1078
|
* @default false
|
|
993
1079
|
*/
|
|
994
|
-
|
|
1080
|
+
isLoadingPort?: boolean;
|
|
1081
|
+
/**
|
|
1082
|
+
* Loading state travel plan
|
|
1083
|
+
* @default false
|
|
1084
|
+
*/
|
|
1085
|
+
isLoadingTravelPlan?: boolean;
|
|
995
1086
|
/**
|
|
996
1087
|
* Current search query value
|
|
997
1088
|
*/
|
|
@@ -1028,6 +1119,32 @@ interface ModalSearchHarborProps {
|
|
|
1028
1119
|
* Callback when clearing all favorite
|
|
1029
1120
|
*/
|
|
1030
1121
|
onClearFavorite: () => void;
|
|
1122
|
+
/**
|
|
1123
|
+
* Reload button for port
|
|
1124
|
+
*/
|
|
1125
|
+
reloadButtonPort?: EmptyContentButton;
|
|
1126
|
+
/**
|
|
1127
|
+
* Reload button for travel plan
|
|
1128
|
+
*/
|
|
1129
|
+
reloadButtonTravelPlan?: EmptyContentButton;
|
|
1130
|
+
/**
|
|
1131
|
+
* Reload button for all
|
|
1132
|
+
*/
|
|
1133
|
+
reloadButtonAll?: EmptyContentButton;
|
|
1134
|
+
/**
|
|
1135
|
+
* Image source for empty state
|
|
1136
|
+
*/
|
|
1137
|
+
emptyImageSrc?: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* Error state for travel plan
|
|
1140
|
+
* @default false
|
|
1141
|
+
*/
|
|
1142
|
+
isErrorTravelPlan?: boolean;
|
|
1143
|
+
/**
|
|
1144
|
+
* Error state for port
|
|
1145
|
+
* @default false
|
|
1146
|
+
*/
|
|
1147
|
+
isErrorPort?: boolean;
|
|
1031
1148
|
}
|
|
1032
1149
|
|
|
1033
1150
|
/**
|
|
@@ -1202,6 +1319,7 @@ interface ModalServiceLabels {
|
|
|
1202
1319
|
selectAll: string;
|
|
1203
1320
|
saveButton: string;
|
|
1204
1321
|
closeAriaLabel: string;
|
|
1322
|
+
emptyContent: string;
|
|
1205
1323
|
}
|
|
1206
1324
|
/**
|
|
1207
1325
|
* Props for ModalService component
|
|
@@ -1252,6 +1370,14 @@ interface ModalServiceProps {
|
|
|
1252
1370
|
* Custom labels override
|
|
1253
1371
|
*/
|
|
1254
1372
|
labels?: Partial<ModalServiceLabels>;
|
|
1373
|
+
/**
|
|
1374
|
+
* Reload button for error state
|
|
1375
|
+
*/
|
|
1376
|
+
reloadButton?: EmptyContentButton;
|
|
1377
|
+
/**
|
|
1378
|
+
* Image source for empty state
|
|
1379
|
+
*/
|
|
1380
|
+
emptyImageSrc?: string;
|
|
1255
1381
|
}
|
|
1256
1382
|
|
|
1257
1383
|
/**
|
|
@@ -1300,6 +1426,7 @@ interface ModalTotalPassengersLabels {
|
|
|
1300
1426
|
loading: string;
|
|
1301
1427
|
saveButton: string;
|
|
1302
1428
|
closeAriaLabel: string;
|
|
1429
|
+
emptyContent: string;
|
|
1303
1430
|
}
|
|
1304
1431
|
/**
|
|
1305
1432
|
* Passenger object structure
|
|
@@ -1412,6 +1539,19 @@ interface ModalTotalPassengersProps {
|
|
|
1412
1539
|
* Message to display in the info bar
|
|
1413
1540
|
*/
|
|
1414
1541
|
infoMessage?: string;
|
|
1542
|
+
/**
|
|
1543
|
+
* Error state
|
|
1544
|
+
* @default false
|
|
1545
|
+
*/
|
|
1546
|
+
isError?: boolean;
|
|
1547
|
+
/**
|
|
1548
|
+
* Reload button for error state
|
|
1549
|
+
*/
|
|
1550
|
+
reloadButton?: EmptyContentButton;
|
|
1551
|
+
/**
|
|
1552
|
+
* Image source for empty state
|
|
1553
|
+
*/
|
|
1554
|
+
emptyImageSrc?: string;
|
|
1415
1555
|
}
|
|
1416
1556
|
|
|
1417
1557
|
/**
|
|
@@ -1607,6 +1747,7 @@ interface ModalTypeOfServiceLabels {
|
|
|
1607
1747
|
saveButton: string;
|
|
1608
1748
|
vehiclesAlt: string;
|
|
1609
1749
|
closeAriaLabel: string;
|
|
1750
|
+
emptyContent: string;
|
|
1610
1751
|
}
|
|
1611
1752
|
/**
|
|
1612
1753
|
* Props for ModalTypeOfService component
|
|
@@ -1655,6 +1796,24 @@ interface ModalTypeOfServiceProps {
|
|
|
1655
1796
|
width: number;
|
|
1656
1797
|
height: number;
|
|
1657
1798
|
}) => ReactNode;
|
|
1799
|
+
/**
|
|
1800
|
+
* Loading state for service types data
|
|
1801
|
+
* @default false
|
|
1802
|
+
*/
|
|
1803
|
+
isLoading?: boolean;
|
|
1804
|
+
/**
|
|
1805
|
+
* Error state for service types data
|
|
1806
|
+
* @default false
|
|
1807
|
+
*/
|
|
1808
|
+
isError?: boolean;
|
|
1809
|
+
/**
|
|
1810
|
+
* Reload button for error state
|
|
1811
|
+
*/
|
|
1812
|
+
reloadButton?: EmptyContentButton;
|
|
1813
|
+
/**
|
|
1814
|
+
* Image source for empty state
|
|
1815
|
+
*/
|
|
1816
|
+
emptyImageSrc?: string;
|
|
1658
1817
|
}
|
|
1659
1818
|
|
|
1660
1819
|
/**
|
|
@@ -3682,4 +3841,4 @@ interface ModalListMenuServiceProps {
|
|
|
3682
3841
|
|
|
3683
3842
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3684
3843
|
|
|
3685
|
-
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, 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, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$
|
|
3844
|
+
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, 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, 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, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_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 PassengerItem as ModalListPassengerItem, 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 PassengerListItem, 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
|
@@ -698,7 +698,7 @@ interface CardTicketSearchProps {
|
|
|
698
698
|
|
|
699
699
|
declare const CardTicketSearch: React$1.FC<CardTicketSearchProps>;
|
|
700
700
|
|
|
701
|
-
declare const DEFAULT_LABELS$
|
|
701
|
+
declare const DEFAULT_LABELS$4: Record<Language, CardTicketSearchLabels>;
|
|
702
702
|
|
|
703
703
|
interface SearchSummaryField {
|
|
704
704
|
/**
|
|
@@ -776,7 +776,7 @@ interface CardTicketSearchSummaryProps {
|
|
|
776
776
|
|
|
777
777
|
declare const CardTicketSearchSummary: React$1.FC<CardTicketSearchSummaryProps>;
|
|
778
778
|
|
|
779
|
-
declare const DEFAULT_LABELS$
|
|
779
|
+
declare const DEFAULT_LABELS$3: Record<Language, CardTicketSearchSummaryLabels>;
|
|
780
780
|
|
|
781
781
|
type InputType = 'checkbox' | 'country' | 'date' | 'datetime-local' | 'email' | 'file' | 'identity' | 'emailOrPhone' | 'number' | 'otp' | 'passport' | 'password' | 'phone' | 'radio' | 'radiobutton' | 'select' | 'switch' | 'tel' | 'text' | 'textarea' | 'time' | 'url';
|
|
782
782
|
interface SelectOption {
|
|
@@ -909,6 +909,90 @@ interface CountryOption {
|
|
|
909
909
|
*/
|
|
910
910
|
declare const COUNTRIES: CountryOption[];
|
|
911
911
|
|
|
912
|
+
interface EmptyContentLabels {
|
|
913
|
+
defaultImageAlt: string;
|
|
914
|
+
defaultTitle: string;
|
|
915
|
+
defaultMessage: string;
|
|
916
|
+
defaultButtonText: string;
|
|
917
|
+
}
|
|
918
|
+
interface EmptyContentButton {
|
|
919
|
+
/**
|
|
920
|
+
* Button text
|
|
921
|
+
*/
|
|
922
|
+
text: string;
|
|
923
|
+
/**
|
|
924
|
+
* Button click handler
|
|
925
|
+
*/
|
|
926
|
+
onClick: () => void;
|
|
927
|
+
/**
|
|
928
|
+
* Button appearance
|
|
929
|
+
* @default "primary"
|
|
930
|
+
*/
|
|
931
|
+
appearance?: 'primary' | 'outline' | 'secondary' | 'subtle' | 'transparent';
|
|
932
|
+
}
|
|
933
|
+
interface EmptyContentProps {
|
|
934
|
+
/**
|
|
935
|
+
* Title for the empty state
|
|
936
|
+
* If not provided, falls back to the default label for the given language
|
|
937
|
+
*/
|
|
938
|
+
title?: string;
|
|
939
|
+
/**
|
|
940
|
+
* Dynamic content name to replace `{konten}` or `{content}` placeholder in the default title
|
|
941
|
+
*/
|
|
942
|
+
content?: string;
|
|
943
|
+
/**
|
|
944
|
+
* Message content for the empty state
|
|
945
|
+
* Can be a string or React node for more complex content
|
|
946
|
+
* If not provided, falls back to the default label for the given language
|
|
947
|
+
*/
|
|
948
|
+
message?: string | ReactNode;
|
|
949
|
+
/**
|
|
950
|
+
* Image source URL
|
|
951
|
+
* @default "/assets/images/illustrations/no-content.svg"
|
|
952
|
+
* @remarks
|
|
953
|
+
* When using this component in your application, ensure the asset is available at this path
|
|
954
|
+
* in your public directory, or provide a custom imageSrc prop pointing to your own image.
|
|
955
|
+
*/
|
|
956
|
+
imageSrc?: string;
|
|
957
|
+
/**
|
|
958
|
+
* Image alt text
|
|
959
|
+
* If not provided, falls back to the default label for the given language
|
|
960
|
+
*/
|
|
961
|
+
imageAlt?: string;
|
|
962
|
+
/**
|
|
963
|
+
* Image width
|
|
964
|
+
* @default 240
|
|
965
|
+
*/
|
|
966
|
+
imageWidth?: number;
|
|
967
|
+
/**
|
|
968
|
+
* Image height
|
|
969
|
+
* @default 180
|
|
970
|
+
*/
|
|
971
|
+
imageHeight?: number;
|
|
972
|
+
/**
|
|
973
|
+
* Optional action button configuration
|
|
974
|
+
* If not provided, no button will be displayed
|
|
975
|
+
*/
|
|
976
|
+
actionButton?: EmptyContentButton;
|
|
977
|
+
/**
|
|
978
|
+
* Language for default labels
|
|
979
|
+
* @default 'id'
|
|
980
|
+
*/
|
|
981
|
+
language?: Language;
|
|
982
|
+
/**
|
|
983
|
+
* Custom labels override
|
|
984
|
+
*/
|
|
985
|
+
labels?: Partial<EmptyContentLabels>;
|
|
986
|
+
/**
|
|
987
|
+
* Additional class name for root element
|
|
988
|
+
*/
|
|
989
|
+
className?: string;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
declare const EmptyContent: React$1.FC<EmptyContentProps>;
|
|
993
|
+
|
|
994
|
+
declare const DEFAULT_LABELS$2: Record<Language, EmptyContentLabels>;
|
|
995
|
+
|
|
912
996
|
/**
|
|
913
997
|
* Harbor item interface
|
|
914
998
|
*/
|
|
@@ -940,6 +1024,8 @@ interface ModalSearchHarborLabels {
|
|
|
940
1024
|
closeAriaLabel: string;
|
|
941
1025
|
popularHarborHeader: string;
|
|
942
1026
|
favoriteHeader: string;
|
|
1027
|
+
emptyContent: string;
|
|
1028
|
+
travelPlanHeader: string;
|
|
943
1029
|
}
|
|
944
1030
|
/**
|
|
945
1031
|
* Props for ModalSearchHarbor component
|
|
@@ -988,10 +1074,15 @@ interface ModalSearchHarborProps {
|
|
|
988
1074
|
*/
|
|
989
1075
|
popularHarbors: HarborItem[];
|
|
990
1076
|
/**
|
|
991
|
-
* Loading state
|
|
1077
|
+
* Loading state port
|
|
992
1078
|
* @default false
|
|
993
1079
|
*/
|
|
994
|
-
|
|
1080
|
+
isLoadingPort?: boolean;
|
|
1081
|
+
/**
|
|
1082
|
+
* Loading state travel plan
|
|
1083
|
+
* @default false
|
|
1084
|
+
*/
|
|
1085
|
+
isLoadingTravelPlan?: boolean;
|
|
995
1086
|
/**
|
|
996
1087
|
* Current search query value
|
|
997
1088
|
*/
|
|
@@ -1028,6 +1119,32 @@ interface ModalSearchHarborProps {
|
|
|
1028
1119
|
* Callback when clearing all favorite
|
|
1029
1120
|
*/
|
|
1030
1121
|
onClearFavorite: () => void;
|
|
1122
|
+
/**
|
|
1123
|
+
* Reload button for port
|
|
1124
|
+
*/
|
|
1125
|
+
reloadButtonPort?: EmptyContentButton;
|
|
1126
|
+
/**
|
|
1127
|
+
* Reload button for travel plan
|
|
1128
|
+
*/
|
|
1129
|
+
reloadButtonTravelPlan?: EmptyContentButton;
|
|
1130
|
+
/**
|
|
1131
|
+
* Reload button for all
|
|
1132
|
+
*/
|
|
1133
|
+
reloadButtonAll?: EmptyContentButton;
|
|
1134
|
+
/**
|
|
1135
|
+
* Image source for empty state
|
|
1136
|
+
*/
|
|
1137
|
+
emptyImageSrc?: string;
|
|
1138
|
+
/**
|
|
1139
|
+
* Error state for travel plan
|
|
1140
|
+
* @default false
|
|
1141
|
+
*/
|
|
1142
|
+
isErrorTravelPlan?: boolean;
|
|
1143
|
+
/**
|
|
1144
|
+
* Error state for port
|
|
1145
|
+
* @default false
|
|
1146
|
+
*/
|
|
1147
|
+
isErrorPort?: boolean;
|
|
1031
1148
|
}
|
|
1032
1149
|
|
|
1033
1150
|
/**
|
|
@@ -1202,6 +1319,7 @@ interface ModalServiceLabels {
|
|
|
1202
1319
|
selectAll: string;
|
|
1203
1320
|
saveButton: string;
|
|
1204
1321
|
closeAriaLabel: string;
|
|
1322
|
+
emptyContent: string;
|
|
1205
1323
|
}
|
|
1206
1324
|
/**
|
|
1207
1325
|
* Props for ModalService component
|
|
@@ -1252,6 +1370,14 @@ interface ModalServiceProps {
|
|
|
1252
1370
|
* Custom labels override
|
|
1253
1371
|
*/
|
|
1254
1372
|
labels?: Partial<ModalServiceLabels>;
|
|
1373
|
+
/**
|
|
1374
|
+
* Reload button for error state
|
|
1375
|
+
*/
|
|
1376
|
+
reloadButton?: EmptyContentButton;
|
|
1377
|
+
/**
|
|
1378
|
+
* Image source for empty state
|
|
1379
|
+
*/
|
|
1380
|
+
emptyImageSrc?: string;
|
|
1255
1381
|
}
|
|
1256
1382
|
|
|
1257
1383
|
/**
|
|
@@ -1300,6 +1426,7 @@ interface ModalTotalPassengersLabels {
|
|
|
1300
1426
|
loading: string;
|
|
1301
1427
|
saveButton: string;
|
|
1302
1428
|
closeAriaLabel: string;
|
|
1429
|
+
emptyContent: string;
|
|
1303
1430
|
}
|
|
1304
1431
|
/**
|
|
1305
1432
|
* Passenger object structure
|
|
@@ -1412,6 +1539,19 @@ interface ModalTotalPassengersProps {
|
|
|
1412
1539
|
* Message to display in the info bar
|
|
1413
1540
|
*/
|
|
1414
1541
|
infoMessage?: string;
|
|
1542
|
+
/**
|
|
1543
|
+
* Error state
|
|
1544
|
+
* @default false
|
|
1545
|
+
*/
|
|
1546
|
+
isError?: boolean;
|
|
1547
|
+
/**
|
|
1548
|
+
* Reload button for error state
|
|
1549
|
+
*/
|
|
1550
|
+
reloadButton?: EmptyContentButton;
|
|
1551
|
+
/**
|
|
1552
|
+
* Image source for empty state
|
|
1553
|
+
*/
|
|
1554
|
+
emptyImageSrc?: string;
|
|
1415
1555
|
}
|
|
1416
1556
|
|
|
1417
1557
|
/**
|
|
@@ -1607,6 +1747,7 @@ interface ModalTypeOfServiceLabels {
|
|
|
1607
1747
|
saveButton: string;
|
|
1608
1748
|
vehiclesAlt: string;
|
|
1609
1749
|
closeAriaLabel: string;
|
|
1750
|
+
emptyContent: string;
|
|
1610
1751
|
}
|
|
1611
1752
|
/**
|
|
1612
1753
|
* Props for ModalTypeOfService component
|
|
@@ -1655,6 +1796,24 @@ interface ModalTypeOfServiceProps {
|
|
|
1655
1796
|
width: number;
|
|
1656
1797
|
height: number;
|
|
1657
1798
|
}) => ReactNode;
|
|
1799
|
+
/**
|
|
1800
|
+
* Loading state for service types data
|
|
1801
|
+
* @default false
|
|
1802
|
+
*/
|
|
1803
|
+
isLoading?: boolean;
|
|
1804
|
+
/**
|
|
1805
|
+
* Error state for service types data
|
|
1806
|
+
* @default false
|
|
1807
|
+
*/
|
|
1808
|
+
isError?: boolean;
|
|
1809
|
+
/**
|
|
1810
|
+
* Reload button for error state
|
|
1811
|
+
*/
|
|
1812
|
+
reloadButton?: EmptyContentButton;
|
|
1813
|
+
/**
|
|
1814
|
+
* Image source for empty state
|
|
1815
|
+
*/
|
|
1816
|
+
emptyImageSrc?: string;
|
|
1658
1817
|
}
|
|
1659
1818
|
|
|
1660
1819
|
/**
|
|
@@ -3682,4 +3841,4 @@ interface ModalListMenuServiceProps {
|
|
|
3682
3841
|
|
|
3683
3842
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3684
3843
|
|
|
3685
|
-
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, 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, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$
|
|
3844
|
+
export { API_CONFIG, API_ENDPOINTS, API_ERROR_MESSAGES, BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, type BillingDetail, COUNTRIES, CardAddon, type CardAddonProps, CardBanner, type CardBannerProps, 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, 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, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, InputDynamic, type InputDynamicProps, type InputType, LOAD_TYPE, type LOAD_TYPE_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 PassengerItem as ModalListPassengerItem, 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 PassengerListItem, 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 };
|