@asdp/ferryui 0.1.22-dev.9336 → 0.1.22-dev.9339
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 +89 -5
- package/dist/index.d.ts +89 -5
- package/dist/index.js +256 -138
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +255 -139
- 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 {
|
|
@@ -1909,7 +1909,7 @@ interface ModalFilterTicketLabels {
|
|
|
1909
1909
|
|
|
1910
1910
|
declare const ModalFilterTicket: React$1.FC<ModalFilterTicketProps>;
|
|
1911
1911
|
|
|
1912
|
-
declare const DEFAULT_LABELS$
|
|
1912
|
+
declare const DEFAULT_LABELS$2: Record<Language, ModalFilterTicketLabels>;
|
|
1913
1913
|
declare const DEFAULT_SERVICE_TYPES: {
|
|
1914
1914
|
value: string;
|
|
1915
1915
|
label: string;
|
|
@@ -1992,7 +1992,7 @@ interface DateFilterLabels {
|
|
|
1992
1992
|
|
|
1993
1993
|
declare const DateFilter: React$1.FC<DateFilterProps>;
|
|
1994
1994
|
|
|
1995
|
-
declare const DEFAULT_LABELS: Record<Language, DateFilterLabels>;
|
|
1995
|
+
declare const DEFAULT_LABELS$1: Record<Language, DateFilterLabels>;
|
|
1996
1996
|
declare const DEFAULT_SCROLL_AMOUNT = 150;
|
|
1997
1997
|
|
|
1998
1998
|
/**
|
|
@@ -3682,4 +3682,88 @@ interface ModalListMenuServiceProps {
|
|
|
3682
3682
|
|
|
3683
3683
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3684
3684
|
|
|
3685
|
-
|
|
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 };
|
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 {
|
|
@@ -1909,7 +1909,7 @@ interface ModalFilterTicketLabels {
|
|
|
1909
1909
|
|
|
1910
1910
|
declare const ModalFilterTicket: React$1.FC<ModalFilterTicketProps>;
|
|
1911
1911
|
|
|
1912
|
-
declare const DEFAULT_LABELS$
|
|
1912
|
+
declare const DEFAULT_LABELS$2: Record<Language, ModalFilterTicketLabels>;
|
|
1913
1913
|
declare const DEFAULT_SERVICE_TYPES: {
|
|
1914
1914
|
value: string;
|
|
1915
1915
|
label: string;
|
|
@@ -1992,7 +1992,7 @@ interface DateFilterLabels {
|
|
|
1992
1992
|
|
|
1993
1993
|
declare const DateFilter: React$1.FC<DateFilterProps>;
|
|
1994
1994
|
|
|
1995
|
-
declare const DEFAULT_LABELS: Record<Language, DateFilterLabels>;
|
|
1995
|
+
declare const DEFAULT_LABELS$1: Record<Language, DateFilterLabels>;
|
|
1996
1996
|
declare const DEFAULT_SCROLL_AMOUNT = 150;
|
|
1997
1997
|
|
|
1998
1998
|
/**
|
|
@@ -3682,4 +3682,88 @@ interface ModalListMenuServiceProps {
|
|
|
3682
3682
|
|
|
3683
3683
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3684
3684
|
|
|
3685
|
-
|
|
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 };
|