@asdp/ferryui 0.1.22-dev.10214 → 0.1.22-dev.10231

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
@@ -435,6 +435,7 @@ interface CardTicketLabels {
435
435
  currencySymbol: string;
436
436
  logoAlt: string;
437
437
  verifyingTicketButton: string;
438
+ totalPriceMissing: string;
438
439
  }
439
440
  interface CardTicketProps {
440
441
  /**
@@ -3383,7 +3384,7 @@ declare const CardFAQ: React$1.FC<CardFAQProps>;
3383
3384
 
3384
3385
  interface AddonFooterData {
3385
3386
  priceLabel: string;
3386
- price: number;
3387
+ price?: number;
3387
3388
  priceUnit?: string;
3388
3389
  actionLabel?: string;
3389
3390
  onActionClick?: () => void;
@@ -3601,6 +3602,11 @@ interface CardReviewProps {
3601
3602
  * Optional action in the header (e.g. Ubah button) - though not present in current designs, good for extensibility
3602
3603
  */
3603
3604
  headerAction?: React$1.ReactNode;
3605
+ /**
3606
+ * Loading state for skeleton display
3607
+ * @default false
3608
+ */
3609
+ isLoading?: boolean;
3604
3610
  }
3605
3611
 
3606
3612
  declare const CardReview: React$1.FC<CardReviewProps>;
@@ -3640,10 +3646,41 @@ interface CardReviewPassengerProps {
3640
3646
  * Optional class name
3641
3647
  */
3642
3648
  className?: string;
3649
+ /**
3650
+ * Loading state for skeleton display
3651
+ * @default false
3652
+ */
3653
+ isLoading?: boolean;
3643
3654
  }
3644
3655
 
3645
3656
  declare const CardReviewPassenger: React$1.FC<CardReviewPassengerProps>;
3646
3657
 
3658
+ interface TripData {
3659
+ /**
3660
+ * Origin location (e.g., "Merak, Banten")
3661
+ */
3662
+ from: string;
3663
+ /**
3664
+ * Destination location (e.g., "Bakehuni, Lampung")
3665
+ */
3666
+ to: string;
3667
+ /**
3668
+ * Schedule entry time (e.g., "Kam, 27 Nov 2025, 18:15")
3669
+ */
3670
+ scheduleTime: string;
3671
+ /**
3672
+ * Booking name
3673
+ */
3674
+ bookingName: string;
3675
+ /**
3676
+ * Passenger type/vehicle info (e.g., "Golongan VIB • Mobil Pickup • B 1234 CD")
3677
+ */
3678
+ passengerType: string;
3679
+ /**
3680
+ * Number of add-ons/services
3681
+ */
3682
+ addOnsCount: number;
3683
+ }
3647
3684
  interface CardReviewDetailLabels {
3648
3685
  title: string;
3649
3686
  fromLabel: string;
@@ -3655,6 +3692,8 @@ interface CardReviewDetailLabels {
3655
3692
  viewDetail: string;
3656
3693
  noAddOnsLabel: string;
3657
3694
  serviceLabel: string;
3695
+ departureLabel: string;
3696
+ returnLabel: string;
3658
3697
  }
3659
3698
  interface CardReviewDetailProps {
3660
3699
  /**
@@ -3667,29 +3706,13 @@ interface CardReviewDetailProps {
3667
3706
  */
3668
3707
  labels?: Partial<CardReviewDetailLabels>;
3669
3708
  /**
3670
- * Origin location (e.g., "Merak, Banten")
3671
- */
3672
- from: string;
3673
- /**
3674
- * Destination location (e.g., "Bakehuni, Lampung")
3675
- */
3676
- to: string;
3677
- /**
3678
- * Schedule entry time (e.g., "Kam, 27 Nov 2025, 18:15")
3679
- */
3680
- scheduleTime: string;
3681
- /**
3682
- * Booking name
3683
- */
3684
- bookingName: string;
3685
- /**
3686
- * Passenger type/vehicle info (e.g., "Golongan VIB • Mobil Pickup • B 1234 CD")
3709
+ * Departure trip data
3687
3710
  */
3688
- passengerType: string;
3711
+ departureData: TripData;
3689
3712
  /**
3690
- * Number of add-ons/services
3713
+ * Return trip data (only used when isRoundTrip is true)
3691
3714
  */
3692
- addOnsCount: number;
3715
+ returnData?: TripData;
3693
3716
  /**
3694
3717
  * Callback when "View Detail" button is clicked
3695
3718
  */
@@ -3698,6 +3721,16 @@ interface CardReviewDetailProps {
3698
3721
  * Optional class name
3699
3722
  */
3700
3723
  className?: string;
3724
+ /**
3725
+ * Loading state for skeleton display
3726
+ * @default false
3727
+ */
3728
+ isLoading?: boolean;
3729
+ /**
3730
+ * Indicate if the trip is round-trip, which will conditionally render return badge and section
3731
+ * @default false
3732
+ */
3733
+ isRoundTrip?: boolean;
3701
3734
  }
3702
3735
 
3703
3736
  declare const CardReviewDetail: React$1.FC<CardReviewDetailProps>;
package/dist/index.d.ts CHANGED
@@ -435,6 +435,7 @@ interface CardTicketLabels {
435
435
  currencySymbol: string;
436
436
  logoAlt: string;
437
437
  verifyingTicketButton: string;
438
+ totalPriceMissing: string;
438
439
  }
439
440
  interface CardTicketProps {
440
441
  /**
@@ -3383,7 +3384,7 @@ declare const CardFAQ: React$1.FC<CardFAQProps>;
3383
3384
 
3384
3385
  interface AddonFooterData {
3385
3386
  priceLabel: string;
3386
- price: number;
3387
+ price?: number;
3387
3388
  priceUnit?: string;
3388
3389
  actionLabel?: string;
3389
3390
  onActionClick?: () => void;
@@ -3601,6 +3602,11 @@ interface CardReviewProps {
3601
3602
  * Optional action in the header (e.g. Ubah button) - though not present in current designs, good for extensibility
3602
3603
  */
3603
3604
  headerAction?: React$1.ReactNode;
3605
+ /**
3606
+ * Loading state for skeleton display
3607
+ * @default false
3608
+ */
3609
+ isLoading?: boolean;
3604
3610
  }
3605
3611
 
3606
3612
  declare const CardReview: React$1.FC<CardReviewProps>;
@@ -3640,10 +3646,41 @@ interface CardReviewPassengerProps {
3640
3646
  * Optional class name
3641
3647
  */
3642
3648
  className?: string;
3649
+ /**
3650
+ * Loading state for skeleton display
3651
+ * @default false
3652
+ */
3653
+ isLoading?: boolean;
3643
3654
  }
3644
3655
 
3645
3656
  declare const CardReviewPassenger: React$1.FC<CardReviewPassengerProps>;
3646
3657
 
3658
+ interface TripData {
3659
+ /**
3660
+ * Origin location (e.g., "Merak, Banten")
3661
+ */
3662
+ from: string;
3663
+ /**
3664
+ * Destination location (e.g., "Bakehuni, Lampung")
3665
+ */
3666
+ to: string;
3667
+ /**
3668
+ * Schedule entry time (e.g., "Kam, 27 Nov 2025, 18:15")
3669
+ */
3670
+ scheduleTime: string;
3671
+ /**
3672
+ * Booking name
3673
+ */
3674
+ bookingName: string;
3675
+ /**
3676
+ * Passenger type/vehicle info (e.g., "Golongan VIB • Mobil Pickup • B 1234 CD")
3677
+ */
3678
+ passengerType: string;
3679
+ /**
3680
+ * Number of add-ons/services
3681
+ */
3682
+ addOnsCount: number;
3683
+ }
3647
3684
  interface CardReviewDetailLabels {
3648
3685
  title: string;
3649
3686
  fromLabel: string;
@@ -3655,6 +3692,8 @@ interface CardReviewDetailLabels {
3655
3692
  viewDetail: string;
3656
3693
  noAddOnsLabel: string;
3657
3694
  serviceLabel: string;
3695
+ departureLabel: string;
3696
+ returnLabel: string;
3658
3697
  }
3659
3698
  interface CardReviewDetailProps {
3660
3699
  /**
@@ -3667,29 +3706,13 @@ interface CardReviewDetailProps {
3667
3706
  */
3668
3707
  labels?: Partial<CardReviewDetailLabels>;
3669
3708
  /**
3670
- * Origin location (e.g., "Merak, Banten")
3671
- */
3672
- from: string;
3673
- /**
3674
- * Destination location (e.g., "Bakehuni, Lampung")
3675
- */
3676
- to: string;
3677
- /**
3678
- * Schedule entry time (e.g., "Kam, 27 Nov 2025, 18:15")
3679
- */
3680
- scheduleTime: string;
3681
- /**
3682
- * Booking name
3683
- */
3684
- bookingName: string;
3685
- /**
3686
- * Passenger type/vehicle info (e.g., "Golongan VIB • Mobil Pickup • B 1234 CD")
3709
+ * Departure trip data
3687
3710
  */
3688
- passengerType: string;
3711
+ departureData: TripData;
3689
3712
  /**
3690
- * Number of add-ons/services
3713
+ * Return trip data (only used when isRoundTrip is true)
3691
3714
  */
3692
- addOnsCount: number;
3715
+ returnData?: TripData;
3693
3716
  /**
3694
3717
  * Callback when "View Detail" button is clicked
3695
3718
  */
@@ -3698,6 +3721,16 @@ interface CardReviewDetailProps {
3698
3721
  * Optional class name
3699
3722
  */
3700
3723
  className?: string;
3724
+ /**
3725
+ * Loading state for skeleton display
3726
+ * @default false
3727
+ */
3728
+ isLoading?: boolean;
3729
+ /**
3730
+ * Indicate if the trip is round-trip, which will conditionally render return badge and section
3731
+ * @default false
3732
+ */
3733
+ isRoundTrip?: boolean;
3701
3734
  }
3702
3735
 
3703
3736
  declare const CardReviewDetail: React$1.FC<CardReviewDetailProps>;