@asdp/ferryui 0.1.22-dev.9339 → 0.1.22-dev.9415

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 CHANGED
@@ -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
- isLoading?: boolean;
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
  /**
@@ -1909,7 +2068,7 @@ interface ModalFilterTicketLabels {
1909
2068
 
1910
2069
  declare const ModalFilterTicket: React$1.FC<ModalFilterTicketProps>;
1911
2070
 
1912
- declare const DEFAULT_LABELS$2: Record<Language, ModalFilterTicketLabels>;
2071
+ declare const DEFAULT_LABELS$1: Record<Language, ModalFilterTicketLabels>;
1913
2072
  declare const DEFAULT_SERVICE_TYPES: {
1914
2073
  value: string;
1915
2074
  label: string;
@@ -1992,7 +2151,7 @@ interface DateFilterLabels {
1992
2151
 
1993
2152
  declare const DateFilter: React$1.FC<DateFilterProps>;
1994
2153
 
1995
- declare const DEFAULT_LABELS$1: Record<Language, DateFilterLabels>;
2154
+ declare const DEFAULT_LABELS: Record<Language, DateFilterLabels>;
1996
2155
  declare const DEFAULT_SCROLL_AMOUNT = 150;
1997
2156
 
1998
2157
  /**
@@ -3455,6 +3614,7 @@ interface CardPaymentInfoLabels {
3455
3614
  checkStatusInfo: string;
3456
3615
  checkStatusButton: string;
3457
3616
  currencySymbol: string;
3617
+ changePayment: string;
3458
3618
  }
3459
3619
  interface CardPaymentInfoProps {
3460
3620
  /**
@@ -3473,6 +3633,7 @@ interface CardPaymentInfoProps {
3473
3633
  guides: PaymentGuideStep[];
3474
3634
  onCopyVA?: () => void;
3475
3635
  onCheckStatus?: () => void;
3636
+ onChangePayment?: () => void;
3476
3637
  }
3477
3638
 
3478
3639
  declare const CardPaymentInfo: React$1.FC<CardPaymentInfoProps>;
@@ -3682,88 +3843,4 @@ interface ModalListMenuServiceProps {
3682
3843
 
3683
3844
  declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
3684
3845
 
3685
- interface NoContentLabels {
3686
- defaultImageAlt: string;
3687
- defaultTitle: string;
3688
- defaultMessage: string;
3689
- defaultButtonText: string;
3690
- }
3691
- interface NoContentButton {
3692
- /**
3693
- * Button text
3694
- */
3695
- text: string;
3696
- /**
3697
- * Button click handler
3698
- */
3699
- onClick: () => void;
3700
- /**
3701
- * Button appearance
3702
- * @default "primary"
3703
- */
3704
- appearance?: 'primary' | 'outline' | 'secondary' | 'subtle' | 'transparent';
3705
- }
3706
- interface NoContentProps {
3707
- /**
3708
- * Title for the empty state
3709
- * If not provided, falls back to the default label for the given language
3710
- */
3711
- title?: string;
3712
- /**
3713
- * Dynamic content name to replace `{konten}` or `{content}` placeholder in the default title
3714
- */
3715
- content?: string;
3716
- /**
3717
- * Message content for the empty state
3718
- * Can be a string or React node for more complex content
3719
- * If not provided, falls back to the default label for the given language
3720
- */
3721
- message?: string | ReactNode;
3722
- /**
3723
- * Image source URL
3724
- * @default "/assets/images/illustrations/no-content.svg"
3725
- * @remarks
3726
- * When using this component in your application, ensure the asset is available at this path
3727
- * in your public directory, or provide a custom imageSrc prop pointing to your own image.
3728
- */
3729
- imageSrc?: string;
3730
- /**
3731
- * Image alt text
3732
- * If not provided, falls back to the default label for the given language
3733
- */
3734
- imageAlt?: string;
3735
- /**
3736
- * Image width
3737
- * @default 240
3738
- */
3739
- imageWidth?: number;
3740
- /**
3741
- * Image height
3742
- * @default 180
3743
- */
3744
- imageHeight?: number;
3745
- /**
3746
- * Optional action button configuration
3747
- * If not provided, no button will be displayed
3748
- */
3749
- actionButton?: NoContentButton;
3750
- /**
3751
- * Language for default labels
3752
- * @default 'id'
3753
- */
3754
- language?: Language;
3755
- /**
3756
- * Custom labels override
3757
- */
3758
- labels?: Partial<NoContentLabels>;
3759
- /**
3760
- * Additional class name for root element
3761
- */
3762
- className?: string;
3763
- }
3764
-
3765
- declare const NoContent: React$1.FC<NoContentProps>;
3766
-
3767
- declare const DEFAULT_LABELS: Record<Language, NoContentLabels>;
3768
-
3769
- 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$1 as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type DepartureItem, 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$2 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, NoContent, type NoContentButton, DEFAULT_LABELS as NoContentDefaultLabels, type NoContentLabels, type NoContentProps, 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 };
3846
+ 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 };