@asdp/ferryui 0.1.22-dev.9630 → 0.1.22-dev.9700
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 +20 -21
- package/dist/index.d.ts +20 -21
- package/dist/index.js +50 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +51 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1462,6 +1462,17 @@ interface Passenger {
|
|
|
1462
1462
|
regencyName: string;
|
|
1463
1463
|
phoneNumber: string;
|
|
1464
1464
|
email: string;
|
|
1465
|
+
passengerType?: string;
|
|
1466
|
+
serviceName?: string;
|
|
1467
|
+
_indices?: {
|
|
1468
|
+
i0: number;
|
|
1469
|
+
i1: number;
|
|
1470
|
+
i2: number;
|
|
1471
|
+
passengerAgeId: number;
|
|
1472
|
+
passengerAgeLabel: string;
|
|
1473
|
+
passengerClassId: number;
|
|
1474
|
+
passengerClassLabel: string;
|
|
1475
|
+
};
|
|
1465
1476
|
}
|
|
1466
1477
|
/**
|
|
1467
1478
|
* Service with passenger count
|
|
@@ -2818,24 +2829,6 @@ interface ModalPassengerFormProps {
|
|
|
2818
2829
|
|
|
2819
2830
|
declare const ModalPassengerForm: React$1.FC<ModalPassengerFormProps>;
|
|
2820
2831
|
|
|
2821
|
-
interface PassengerListItem {
|
|
2822
|
-
/**
|
|
2823
|
-
* Unique identifier for the passenger
|
|
2824
|
-
*/
|
|
2825
|
-
id?: number;
|
|
2826
|
-
/**
|
|
2827
|
-
* Passenger name
|
|
2828
|
-
*/
|
|
2829
|
-
name?: string;
|
|
2830
|
-
/**
|
|
2831
|
-
* Passenger type code (e.g., "ADULT", "CHILD", "INFANT")
|
|
2832
|
-
*/
|
|
2833
|
-
passengerType?: string;
|
|
2834
|
-
/**
|
|
2835
|
-
* Service class name (e.g., "ECONOMY", "BUSINESS", "EXECUTIVE")
|
|
2836
|
-
*/
|
|
2837
|
-
serviceName?: string;
|
|
2838
|
-
}
|
|
2839
2832
|
interface CardPassengerListLabels {
|
|
2840
2833
|
defaultTitle: string;
|
|
2841
2834
|
passengerPrefix: string;
|
|
@@ -2854,11 +2847,11 @@ interface CardPassengerListProps {
|
|
|
2854
2847
|
/**
|
|
2855
2848
|
* List of passengers to display
|
|
2856
2849
|
*/
|
|
2857
|
-
passengers:
|
|
2850
|
+
passengers: Passenger[];
|
|
2858
2851
|
/**
|
|
2859
2852
|
* Callback when a passenger is clicked
|
|
2860
2853
|
*/
|
|
2861
|
-
onPassengerClick: (passenger:
|
|
2854
|
+
onPassengerClick: (passenger: Passenger) => void;
|
|
2862
2855
|
/**
|
|
2863
2856
|
* Custom labels override (optional)
|
|
2864
2857
|
* If not provided, default labels based on language will be used
|
|
@@ -3794,6 +3787,12 @@ interface FileUploadProps<T extends FieldValues = FieldValues> {
|
|
|
3794
3787
|
*/
|
|
3795
3788
|
pdfIcon?: string;
|
|
3796
3789
|
downloadTemplateDocument?: boolean;
|
|
3790
|
+
/**
|
|
3791
|
+
* Optional info label text to display with an info icon next to the label.
|
|
3792
|
+
* When not provided, no info label is displayed.
|
|
3793
|
+
* Example: 'Maximum file size is 10MB'
|
|
3794
|
+
*/
|
|
3795
|
+
infoLabel?: string;
|
|
3797
3796
|
}
|
|
3798
3797
|
|
|
3799
3798
|
declare const FileUpload: React$1.ForwardRefExoticComponent<FileUploadProps<react_hook_form.FieldValues> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -3884,4 +3883,4 @@ interface ModalListMenuServiceProps {
|
|
|
3884
3883
|
|
|
3885
3884
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3886
3885
|
|
|
3887
|
-
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, HARDCODED_ID, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, 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 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
|
|
3886
|
+
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, HARDCODED_ID, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, 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 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 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
|
@@ -1462,6 +1462,17 @@ interface Passenger {
|
|
|
1462
1462
|
regencyName: string;
|
|
1463
1463
|
phoneNumber: string;
|
|
1464
1464
|
email: string;
|
|
1465
|
+
passengerType?: string;
|
|
1466
|
+
serviceName?: string;
|
|
1467
|
+
_indices?: {
|
|
1468
|
+
i0: number;
|
|
1469
|
+
i1: number;
|
|
1470
|
+
i2: number;
|
|
1471
|
+
passengerAgeId: number;
|
|
1472
|
+
passengerAgeLabel: string;
|
|
1473
|
+
passengerClassId: number;
|
|
1474
|
+
passengerClassLabel: string;
|
|
1475
|
+
};
|
|
1465
1476
|
}
|
|
1466
1477
|
/**
|
|
1467
1478
|
* Service with passenger count
|
|
@@ -2818,24 +2829,6 @@ interface ModalPassengerFormProps {
|
|
|
2818
2829
|
|
|
2819
2830
|
declare const ModalPassengerForm: React$1.FC<ModalPassengerFormProps>;
|
|
2820
2831
|
|
|
2821
|
-
interface PassengerListItem {
|
|
2822
|
-
/**
|
|
2823
|
-
* Unique identifier for the passenger
|
|
2824
|
-
*/
|
|
2825
|
-
id?: number;
|
|
2826
|
-
/**
|
|
2827
|
-
* Passenger name
|
|
2828
|
-
*/
|
|
2829
|
-
name?: string;
|
|
2830
|
-
/**
|
|
2831
|
-
* Passenger type code (e.g., "ADULT", "CHILD", "INFANT")
|
|
2832
|
-
*/
|
|
2833
|
-
passengerType?: string;
|
|
2834
|
-
/**
|
|
2835
|
-
* Service class name (e.g., "ECONOMY", "BUSINESS", "EXECUTIVE")
|
|
2836
|
-
*/
|
|
2837
|
-
serviceName?: string;
|
|
2838
|
-
}
|
|
2839
2832
|
interface CardPassengerListLabels {
|
|
2840
2833
|
defaultTitle: string;
|
|
2841
2834
|
passengerPrefix: string;
|
|
@@ -2854,11 +2847,11 @@ interface CardPassengerListProps {
|
|
|
2854
2847
|
/**
|
|
2855
2848
|
* List of passengers to display
|
|
2856
2849
|
*/
|
|
2857
|
-
passengers:
|
|
2850
|
+
passengers: Passenger[];
|
|
2858
2851
|
/**
|
|
2859
2852
|
* Callback when a passenger is clicked
|
|
2860
2853
|
*/
|
|
2861
|
-
onPassengerClick: (passenger:
|
|
2854
|
+
onPassengerClick: (passenger: Passenger) => void;
|
|
2862
2855
|
/**
|
|
2863
2856
|
* Custom labels override (optional)
|
|
2864
2857
|
* If not provided, default labels based on language will be used
|
|
@@ -3794,6 +3787,12 @@ interface FileUploadProps<T extends FieldValues = FieldValues> {
|
|
|
3794
3787
|
*/
|
|
3795
3788
|
pdfIcon?: string;
|
|
3796
3789
|
downloadTemplateDocument?: boolean;
|
|
3790
|
+
/**
|
|
3791
|
+
* Optional info label text to display with an info icon next to the label.
|
|
3792
|
+
* When not provided, no info label is displayed.
|
|
3793
|
+
* Example: 'Maximum file size is 10MB'
|
|
3794
|
+
*/
|
|
3795
|
+
infoLabel?: string;
|
|
3797
3796
|
}
|
|
3798
3797
|
|
|
3799
3798
|
declare const FileUpload: React$1.ForwardRefExoticComponent<FileUploadProps<react_hook_form.FieldValues> & React$1.RefAttributes<HTMLDivElement>>;
|
|
@@ -3884,4 +3883,4 @@ interface ModalListMenuServiceProps {
|
|
|
3884
3883
|
|
|
3885
3884
|
declare const ModalListMenuService: React$1.FC<ModalListMenuServiceProps>;
|
|
3886
3885
|
|
|
3887
|
-
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, HARDCODED_ID, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, 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 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
|
|
3886
|
+
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, HARDCODED_ID, HTTP_STATUS, type HarborItem, IDENTITY_TYPE, type IDENTITY_TYPE_TYPE, 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 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 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
|
@@ -247,6 +247,8 @@ var fontWeight = {
|
|
|
247
247
|
var sharedColors = {
|
|
248
248
|
"Shared_Cranberry_Primary": "#c50f1f",
|
|
249
249
|
"Shared_Red_Primary": "#d13438",
|
|
250
|
+
"Shared_Orange_Shade_20": "#bc4b09",
|
|
251
|
+
"Shared_Orange_Tint_60": "#fff9f5",
|
|
250
252
|
"Shared_Green_Primary": "#107c10"};
|
|
251
253
|
var lightModeColors = {
|
|
252
254
|
"Neutral_Foreground_Disabled_Rest": "#bdbdbd",
|
|
@@ -11858,6 +11860,25 @@ var useStyles25 = reactComponents.makeStyles({
|
|
|
11858
11860
|
height: "32px",
|
|
11859
11861
|
zIndex: 1,
|
|
11860
11862
|
filter: "drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"
|
|
11863
|
+
},
|
|
11864
|
+
warningBanner: {
|
|
11865
|
+
display: "flex",
|
|
11866
|
+
alignItems: "center",
|
|
11867
|
+
gap: "0.75rem",
|
|
11868
|
+
backgroundColor: sharedColors.Shared_Orange_Tint_60,
|
|
11869
|
+
border: `1px solid ${sharedColors.Shared_Orange_Shade_20}`,
|
|
11870
|
+
borderRadius: reactComponents.tokens.borderRadiusLarge,
|
|
11871
|
+
padding: "0.75rem 1rem",
|
|
11872
|
+
marginBottom: "1.5rem"
|
|
11873
|
+
},
|
|
11874
|
+
warningIcon: {
|
|
11875
|
+
color: sharedColors.Shared_Orange_Shade_20,
|
|
11876
|
+
flexShrink: 0,
|
|
11877
|
+
display: "flex"
|
|
11878
|
+
},
|
|
11879
|
+
warningText: {
|
|
11880
|
+
color: sharedColors.Shared_Orange_Shade_20,
|
|
11881
|
+
fontSize: reactComponents.tokens.fontSizeBase300
|
|
11861
11882
|
}
|
|
11862
11883
|
});
|
|
11863
11884
|
var CardPassengerList = ({
|
|
@@ -11876,6 +11897,10 @@ var CardPassengerList = ({
|
|
|
11876
11897
|
/* @__PURE__ */ jsxRuntime.jsx(reactComponents.Title3, { className: styles.headerTitle, children: displayTitle }),
|
|
11877
11898
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.headerLine })
|
|
11878
11899
|
] }),
|
|
11900
|
+
passengers.filter((p) => p.id).length !== passengers.length && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: styles.warningBanner, children: [
|
|
11901
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.warningIcon, children: /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { icon: "fluent:warning-20-filled", width: 24, height: 24 }) }),
|
|
11902
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.warningText, children: "Harap isi data penumpang dibawah ini untuk bisa melanjutkan pembelian tiket." })
|
|
11903
|
+
] }),
|
|
11879
11904
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.passengerList, children: passengers.map((passenger, index) => {
|
|
11880
11905
|
const badgeConfig = getBadgeConfig(passenger.serviceName);
|
|
11881
11906
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -11893,7 +11918,7 @@ var CardPassengerList = ({
|
|
|
11893
11918
|
},
|
|
11894
11919
|
children: [
|
|
11895
11920
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.passengerInfo, children: /* @__PURE__ */ jsxRuntime.jsxs(reactComponents.Subtitle2, { className: styles.passengerText, children: [
|
|
11896
|
-
passenger.
|
|
11921
|
+
passenger.fullName || `${mergedLabels.passengerPrefix} ${index + 1}`,
|
|
11897
11922
|
" ",
|
|
11898
11923
|
"(",
|
|
11899
11924
|
passenger.passengerType,
|
|
@@ -11925,7 +11950,7 @@ var CardPassengerList = ({
|
|
|
11925
11950
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11926
11951
|
react.Icon,
|
|
11927
11952
|
{
|
|
11928
|
-
icon: passenger.
|
|
11953
|
+
icon: passenger.id && passenger.serviceName ? "fluent:edit-24-regular" : "fluent:chevron-right-24-regular",
|
|
11929
11954
|
width: 20,
|
|
11930
11955
|
height: 20
|
|
11931
11956
|
}
|
|
@@ -15899,8 +15924,8 @@ var uploadStyles = reactComponents.makeStyles({
|
|
|
15899
15924
|
pointerEvents: "none"
|
|
15900
15925
|
},
|
|
15901
15926
|
filePreviewImage: {
|
|
15902
|
-
width: "
|
|
15903
|
-
height: "
|
|
15927
|
+
width: "32px",
|
|
15928
|
+
height: "32px",
|
|
15904
15929
|
borderRadius: reactComponents.tokens.borderRadiusSmall,
|
|
15905
15930
|
objectFit: "cover"
|
|
15906
15931
|
},
|
|
@@ -15908,6 +15933,18 @@ var uploadStyles = reactComponents.makeStyles({
|
|
|
15908
15933
|
maxWidth: "100%",
|
|
15909
15934
|
maxHeight: "70vh",
|
|
15910
15935
|
objectFit: "contain"
|
|
15936
|
+
},
|
|
15937
|
+
infoLabel: {
|
|
15938
|
+
'& [role="note"]': {
|
|
15939
|
+
backgroundColor: "black",
|
|
15940
|
+
color: "white"
|
|
15941
|
+
}
|
|
15942
|
+
},
|
|
15943
|
+
label: {
|
|
15944
|
+
whiteSpace: "nowrap",
|
|
15945
|
+
overflow: "hidden",
|
|
15946
|
+
textOverflow: "ellipsis",
|
|
15947
|
+
display: "block"
|
|
15911
15948
|
}
|
|
15912
15949
|
});
|
|
15913
15950
|
var FileUpload = React__default.default.forwardRef(
|
|
@@ -15923,7 +15960,8 @@ var FileUpload = React__default.default.forwardRef(
|
|
|
15923
15960
|
language = "id",
|
|
15924
15961
|
labels: customLabels,
|
|
15925
15962
|
pdfIcon,
|
|
15926
|
-
downloadTemplateDocument = false
|
|
15963
|
+
downloadTemplateDocument = false,
|
|
15964
|
+
infoLabel
|
|
15927
15965
|
}, ref) => {
|
|
15928
15966
|
const mergedLabels = { ...DEFAULT_LABELS39[language], ...customLabels };
|
|
15929
15967
|
const styles = uploadStyles();
|
|
@@ -16056,8 +16094,11 @@ var FileUpload = React__default.default.forwardRef(
|
|
|
16056
16094
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
16057
16095
|
reactComponents.Field,
|
|
16058
16096
|
{
|
|
16097
|
+
ref,
|
|
16059
16098
|
required,
|
|
16060
|
-
label:
|
|
16099
|
+
label: {
|
|
16100
|
+
children: (_, slotProps) => infoLabel ? /* @__PURE__ */ jsxRuntime.jsx(reactComponents.InfoLabel, { ...slotProps, info: infoLabel, className: styles.infoLabel, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: label }) }) : /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: label })
|
|
16101
|
+
},
|
|
16061
16102
|
className: styles.fieldContainer,
|
|
16062
16103
|
children: [
|
|
16063
16104
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -16137,8 +16178,10 @@ var FileUpload = React__default.default.forwardRef(
|
|
|
16137
16178
|
{
|
|
16138
16179
|
ref,
|
|
16139
16180
|
required,
|
|
16140
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { children: label }),
|
|
16141
16181
|
className: styles.fieldContainer,
|
|
16182
|
+
label: {
|
|
16183
|
+
children: (_, slotProps) => infoLabel ? /* @__PURE__ */ jsxRuntime.jsx(reactComponents.InfoLabel, { ...slotProps, info: infoLabel, className: styles.infoLabel, children: /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: label }) }) : /* @__PURE__ */ jsxRuntime.jsx(reactComponents.Body1, { className: styles.label, children: label })
|
|
16184
|
+
},
|
|
16142
16185
|
children: [
|
|
16143
16186
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
16144
16187
|
reactGridSystem.Container,
|