@asdp/ferryui 0.1.22-dev.8631 → 0.1.22-dev.8633
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 +406 -34
- package/dist/index.d.ts +406 -34
- package/dist/index.js +1252 -490
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1249 -487
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -181,7 +181,18 @@ interface CarouselWithCustomNavProps {
|
|
|
181
181
|
}
|
|
182
182
|
declare const CarouselWithCustomNav: React$1.FC<CarouselWithCustomNavProps>;
|
|
183
183
|
|
|
184
|
+
type Language = 'id' | 'en';
|
|
185
|
+
|
|
186
|
+
interface CardPromoLabels {
|
|
187
|
+
defaultImageAlt: string;
|
|
188
|
+
defaultButtonText: string;
|
|
189
|
+
}
|
|
184
190
|
interface CardPromoProps {
|
|
191
|
+
/**
|
|
192
|
+
* Language for labels (Indonesian or English)
|
|
193
|
+
* @default 'id'
|
|
194
|
+
*/
|
|
195
|
+
language?: Language;
|
|
185
196
|
/**
|
|
186
197
|
* Image URL for the promo
|
|
187
198
|
*/
|
|
@@ -239,7 +250,13 @@ interface CardPromoProps {
|
|
|
239
250
|
* Image Only
|
|
240
251
|
*/
|
|
241
252
|
imageOnly?: boolean;
|
|
253
|
+
/**
|
|
254
|
+
* Custom labels override (optional)
|
|
255
|
+
* If not provided, default labels based on language will be used
|
|
256
|
+
*/
|
|
257
|
+
labels?: Partial<CardPromoLabels>;
|
|
242
258
|
}
|
|
259
|
+
|
|
243
260
|
declare const CardPromo: React$1.FC<CardPromoProps>;
|
|
244
261
|
|
|
245
262
|
interface CardBannerProps {
|
|
@@ -270,7 +287,26 @@ interface CardBannerProps {
|
|
|
270
287
|
}
|
|
271
288
|
declare const CardBanner: React$1.FC<CardBannerProps>;
|
|
272
289
|
|
|
290
|
+
interface CardTicketLabels {
|
|
291
|
+
availableSeatsLabel: string;
|
|
292
|
+
estimationPrefix: string;
|
|
293
|
+
priceDetailsButton: string;
|
|
294
|
+
policyButton: string;
|
|
295
|
+
totalPriceLabel: string;
|
|
296
|
+
facilitiesLabel: string;
|
|
297
|
+
selectTicketButton: string;
|
|
298
|
+
timezoneLabel: string;
|
|
299
|
+
}
|
|
273
300
|
interface CardTicketProps {
|
|
301
|
+
/**
|
|
302
|
+
* Language for labels
|
|
303
|
+
* @default 'id'
|
|
304
|
+
*/
|
|
305
|
+
language?: Language;
|
|
306
|
+
/**
|
|
307
|
+
* Custom labels override
|
|
308
|
+
*/
|
|
309
|
+
labels?: Partial<CardTicketLabels>;
|
|
274
310
|
/**
|
|
275
311
|
* Ticket ID
|
|
276
312
|
*/
|
|
@@ -363,8 +399,6 @@ declare const BackgroundTicketCard: (props: React$1.SVGProps<SVGSVGElement>) =>
|
|
|
363
399
|
*/
|
|
364
400
|
declare const BackgroundTicketCardVertical: (props: React$1.SVGProps<SVGSVGElement>) => react_jsx_runtime.JSX.Element;
|
|
365
401
|
|
|
366
|
-
type Language = 'id' | 'en';
|
|
367
|
-
|
|
368
402
|
declare const SERVICE_MENU_ITEMS: {
|
|
369
403
|
readonly ferry: {
|
|
370
404
|
readonly id: "ferry";
|
|
@@ -581,7 +615,21 @@ interface SearchSummaryField {
|
|
|
581
615
|
*/
|
|
582
616
|
icon?: string;
|
|
583
617
|
}
|
|
618
|
+
interface CardTicketSearchSummaryLabels {
|
|
619
|
+
originHarbor: string;
|
|
620
|
+
destinationHarbor: string;
|
|
621
|
+
departureDate: string;
|
|
622
|
+
serviceClass: string;
|
|
623
|
+
typeOfService: string;
|
|
624
|
+
totalPassengers: string;
|
|
625
|
+
changeSearchButton: string;
|
|
626
|
+
}
|
|
584
627
|
interface CardTicketSearchSummaryProps {
|
|
628
|
+
/**
|
|
629
|
+
* Language for labels (Indonesian or English)
|
|
630
|
+
* @default 'id'
|
|
631
|
+
*/
|
|
632
|
+
language?: Language;
|
|
585
633
|
/**
|
|
586
634
|
* Origin harbor name
|
|
587
635
|
*/
|
|
@@ -611,17 +659,10 @@ interface CardTicketSearchSummaryProps {
|
|
|
611
659
|
*/
|
|
612
660
|
onChangeSearch: () => void;
|
|
613
661
|
/**
|
|
614
|
-
* Custom field labels
|
|
662
|
+
* Custom field labels override (optional)
|
|
663
|
+
* If not provided, default labels based on language will be used
|
|
615
664
|
*/
|
|
616
|
-
labels?:
|
|
617
|
-
originHarbor?: string;
|
|
618
|
-
destinationHarbor?: string;
|
|
619
|
-
departureDate?: string;
|
|
620
|
-
serviceClass?: string;
|
|
621
|
-
typeOfService?: string;
|
|
622
|
-
totalPassengers?: string;
|
|
623
|
-
changeSearchButton?: string;
|
|
624
|
-
};
|
|
665
|
+
labels?: Partial<CardTicketSearchSummaryLabels>;
|
|
625
666
|
/**
|
|
626
667
|
* Show swap button between origin and destination
|
|
627
668
|
* @default false
|
|
@@ -635,15 +676,7 @@ interface CardTicketSearchSummaryProps {
|
|
|
635
676
|
|
|
636
677
|
declare const CardTicketSearchSummary: React$1.FC<CardTicketSearchSummaryProps>;
|
|
637
678
|
|
|
638
|
-
declare const DEFAULT_LABELS$2:
|
|
639
|
-
originHarbor: string;
|
|
640
|
-
destinationHarbor: string;
|
|
641
|
-
departureDate: string;
|
|
642
|
-
serviceClass: string;
|
|
643
|
-
typeOfService: string;
|
|
644
|
-
totalPassengers: string;
|
|
645
|
-
changeSearchButton: string;
|
|
646
|
-
};
|
|
679
|
+
declare const DEFAULT_LABELS$2: Record<Language, CardTicketSearchSummaryLabels>;
|
|
647
680
|
|
|
648
681
|
type InputType = 'checkbox' | 'date' | 'datetime-local' | 'email' | 'file' | 'identity' | 'emailOrPhone' | 'number' | 'otp' | 'passport' | 'password' | 'phone' | 'radio' | 'radiobutton' | 'select' | 'switch' | 'tel' | 'text' | 'textarea' | 'time' | 'url';
|
|
649
682
|
interface SelectOption {
|
|
@@ -741,10 +774,31 @@ interface HarborItem {
|
|
|
741
774
|
*/
|
|
742
775
|
name: string;
|
|
743
776
|
}
|
|
777
|
+
/**
|
|
778
|
+
* Labels for ModalSearchHarbor component
|
|
779
|
+
*/
|
|
780
|
+
interface ModalSearchHarborLabels {
|
|
781
|
+
title: string;
|
|
782
|
+
searchPlaceholder: string;
|
|
783
|
+
lastSearchedHeader: string;
|
|
784
|
+
clearAllButton: string;
|
|
785
|
+
allHarborsHeader: string;
|
|
786
|
+
loadingData: string;
|
|
787
|
+
harborNotFound: string;
|
|
788
|
+
}
|
|
744
789
|
/**
|
|
745
790
|
* Props for ModalSearchHarbor component
|
|
746
791
|
*/
|
|
747
792
|
interface ModalSearchHarborProps {
|
|
793
|
+
/**
|
|
794
|
+
* Language for labels
|
|
795
|
+
* @default 'id'
|
|
796
|
+
*/
|
|
797
|
+
language?: Language;
|
|
798
|
+
/**
|
|
799
|
+
* Custom labels override
|
|
800
|
+
*/
|
|
801
|
+
labels?: Partial<ModalSearchHarborLabels>;
|
|
748
802
|
/**
|
|
749
803
|
* Whether the modal is open
|
|
750
804
|
*/
|
|
@@ -755,7 +809,6 @@ interface ModalSearchHarborProps {
|
|
|
755
809
|
onClose: () => void;
|
|
756
810
|
/**
|
|
757
811
|
* Modal title
|
|
758
|
-
* @default "Pilih Pelabuhan"
|
|
759
812
|
*/
|
|
760
813
|
title?: string;
|
|
761
814
|
/**
|
|
@@ -809,6 +862,7 @@ interface ModalSearchHarborProps {
|
|
|
809
862
|
*/
|
|
810
863
|
onClearLastSearched: () => void;
|
|
811
864
|
}
|
|
865
|
+
|
|
812
866
|
/**
|
|
813
867
|
* ModalSearchHarbor - A reusable modal component for searching and selecting harbors
|
|
814
868
|
*
|
|
@@ -843,10 +897,27 @@ declare const ModalSearchHarbor: React$1.FC<ModalSearchHarborProps>;
|
|
|
843
897
|
* Tab type for trip selection
|
|
844
898
|
*/
|
|
845
899
|
type TabType = 'one-way' | 'round-trip';
|
|
900
|
+
/**
|
|
901
|
+
* Labels for ModalSelectDate component
|
|
902
|
+
*/
|
|
903
|
+
interface ModalSelectDateLabels {
|
|
904
|
+
title: string;
|
|
905
|
+
oneWay: string;
|
|
906
|
+
roundTrip: string;
|
|
907
|
+
}
|
|
846
908
|
/**
|
|
847
909
|
* Props for ModalSelectDate component
|
|
848
910
|
*/
|
|
849
911
|
interface ModalSelectDateProps {
|
|
912
|
+
/**
|
|
913
|
+
* Language for labels
|
|
914
|
+
* @default 'id'
|
|
915
|
+
*/
|
|
916
|
+
language?: Language;
|
|
917
|
+
/**
|
|
918
|
+
* Custom labels override
|
|
919
|
+
*/
|
|
920
|
+
labels?: Partial<ModalSelectDateLabels>;
|
|
850
921
|
/**
|
|
851
922
|
* Whether the modal is open
|
|
852
923
|
*/
|
|
@@ -857,7 +928,6 @@ interface ModalSelectDateProps {
|
|
|
857
928
|
onClose: () => void;
|
|
858
929
|
/**
|
|
859
930
|
* Modal title
|
|
860
|
-
* @default "Pilih Tanggal"
|
|
861
931
|
*/
|
|
862
932
|
title?: string;
|
|
863
933
|
/**
|
|
@@ -910,6 +980,7 @@ interface ModalSelectDateProps {
|
|
|
910
980
|
*/
|
|
911
981
|
showRoundtrip?: boolean;
|
|
912
982
|
}
|
|
983
|
+
|
|
913
984
|
/**
|
|
914
985
|
* ModalSelectDate - A reusable modal component for selecting dates
|
|
915
986
|
*
|
|
@@ -1034,6 +1105,7 @@ interface ServiceClass {
|
|
|
1034
1105
|
name: string;
|
|
1035
1106
|
key: string;
|
|
1036
1107
|
serviceName: PassengerServiceCode;
|
|
1108
|
+
labelKey: keyof ModalTotalPassengersLabels;
|
|
1037
1109
|
}
|
|
1038
1110
|
/**
|
|
1039
1111
|
* Default service classes available
|
|
@@ -1041,6 +1113,18 @@ interface ServiceClass {
|
|
|
1041
1113
|
declare const DEFAULT_SERVICE_CLASSES: ServiceClass[];
|
|
1042
1114
|
|
|
1043
1115
|
type PassengerTypeCode = "ADULT" | "CHILD" | "INFANT" | "ELDERLY";
|
|
1116
|
+
/**
|
|
1117
|
+
* Labels for ModalTotalPassengers component
|
|
1118
|
+
*/
|
|
1119
|
+
interface ModalTotalPassengersLabels {
|
|
1120
|
+
title: string;
|
|
1121
|
+
infoMessage: string;
|
|
1122
|
+
loading: string;
|
|
1123
|
+
saveButton: string;
|
|
1124
|
+
economy: string;
|
|
1125
|
+
business: string;
|
|
1126
|
+
executive: string;
|
|
1127
|
+
}
|
|
1044
1128
|
/**
|
|
1045
1129
|
* Passenger object structure
|
|
1046
1130
|
*/
|
|
@@ -1093,6 +1177,15 @@ interface SelectedPassengerItem {
|
|
|
1093
1177
|
* Props for ModalTotalPassengers component
|
|
1094
1178
|
*/
|
|
1095
1179
|
interface ModalTotalPassengersProps {
|
|
1180
|
+
/**
|
|
1181
|
+
* Language for labels
|
|
1182
|
+
* @default 'id'
|
|
1183
|
+
*/
|
|
1184
|
+
language?: Language;
|
|
1185
|
+
/**
|
|
1186
|
+
* Custom labels override
|
|
1187
|
+
*/
|
|
1188
|
+
labels?: Partial<ModalTotalPassengersLabels>;
|
|
1096
1189
|
/**
|
|
1097
1190
|
* Whether the modal is open
|
|
1098
1191
|
*/
|
|
@@ -1103,7 +1196,6 @@ interface ModalTotalPassengersProps {
|
|
|
1103
1196
|
onClose: () => void;
|
|
1104
1197
|
/**
|
|
1105
1198
|
* Modal title
|
|
1106
|
-
* @default "Pilih Jumlah Penumpang"
|
|
1107
1199
|
*/
|
|
1108
1200
|
title?: string;
|
|
1109
1201
|
/**
|
|
@@ -1111,9 +1203,9 @@ interface ModalTotalPassengersProps {
|
|
|
1111
1203
|
*/
|
|
1112
1204
|
passengerTypes: PassengerType[];
|
|
1113
1205
|
/**
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1206
|
+
* Array of service classes
|
|
1207
|
+
* @default DEFAULT_SERVICE_CLASSES
|
|
1208
|
+
*/
|
|
1117
1209
|
serviceClasses?: ServiceClass[];
|
|
1118
1210
|
/**
|
|
1119
1211
|
* Currently selected passengers
|
|
@@ -1135,10 +1227,10 @@ interface ModalTotalPassengersProps {
|
|
|
1135
1227
|
maxPassengers?: number;
|
|
1136
1228
|
/**
|
|
1137
1229
|
* Message to display in the info bar
|
|
1138
|
-
* @default "Anda dapat menambahkan hingga {maxPassengers} penumpang pada golongan kendaraan ini."
|
|
1139
1230
|
*/
|
|
1140
1231
|
infoMessage?: string;
|
|
1141
1232
|
}
|
|
1233
|
+
|
|
1142
1234
|
/**
|
|
1143
1235
|
* ModalTotalPassengers - A reusable modal component for selecting passenger counts
|
|
1144
1236
|
*
|
|
@@ -1177,10 +1269,28 @@ interface TypeOfService {
|
|
|
1177
1269
|
child: TypeOfService[];
|
|
1178
1270
|
typeOfPassanger: string;
|
|
1179
1271
|
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Labels for ModalTypeOfService component
|
|
1274
|
+
*/
|
|
1275
|
+
interface ModalTypeOfServiceLabels {
|
|
1276
|
+
title: string;
|
|
1277
|
+
cancelButton: string;
|
|
1278
|
+
saveButton: string;
|
|
1279
|
+
vehiclesAlt: string;
|
|
1280
|
+
}
|
|
1180
1281
|
/**
|
|
1181
1282
|
* Props for ModalTypeOfService component
|
|
1182
1283
|
*/
|
|
1183
1284
|
interface ModalTypeOfServiceProps {
|
|
1285
|
+
/**
|
|
1286
|
+
* Language for labels
|
|
1287
|
+
* @default 'id'
|
|
1288
|
+
*/
|
|
1289
|
+
language?: Language;
|
|
1290
|
+
/**
|
|
1291
|
+
* Custom labels override
|
|
1292
|
+
*/
|
|
1293
|
+
labels?: Partial<ModalTypeOfServiceLabels>;
|
|
1184
1294
|
/**
|
|
1185
1295
|
* Whether the modal is open
|
|
1186
1296
|
*/
|
|
@@ -1191,7 +1301,6 @@ interface ModalTypeOfServiceProps {
|
|
|
1191
1301
|
onClose: () => void;
|
|
1192
1302
|
/**
|
|
1193
1303
|
* Modal title
|
|
1194
|
-
* @default "Pilih Tipe Layanan"
|
|
1195
1304
|
*/
|
|
1196
1305
|
title?: string;
|
|
1197
1306
|
/**
|
|
@@ -1217,6 +1326,7 @@ interface ModalTypeOfServiceProps {
|
|
|
1217
1326
|
height: number;
|
|
1218
1327
|
}) => ReactNode;
|
|
1219
1328
|
}
|
|
1329
|
+
|
|
1220
1330
|
/**
|
|
1221
1331
|
* ModalTypeOfService - A reusable modal component for selecting service types
|
|
1222
1332
|
*
|
|
@@ -1322,6 +1432,11 @@ declare const DEFAULT_SORT_OPTIONS: {
|
|
|
1322
1432
|
declare const getSortLabel: (value: string) => string;
|
|
1323
1433
|
|
|
1324
1434
|
interface ModalFilterTicketProps {
|
|
1435
|
+
/**
|
|
1436
|
+
* Language for labels (Indonesian or English)
|
|
1437
|
+
* @default 'id'
|
|
1438
|
+
*/
|
|
1439
|
+
language?: Language;
|
|
1325
1440
|
/**
|
|
1326
1441
|
* Whether the modal is open
|
|
1327
1442
|
*/
|
|
@@ -1432,7 +1547,7 @@ interface ModalFilterTicketLabels {
|
|
|
1432
1547
|
|
|
1433
1548
|
declare const ModalFilterTicket: React$1.FC<ModalFilterTicketProps>;
|
|
1434
1549
|
|
|
1435
|
-
declare const DEFAULT_LABELS$1: ModalFilterTicketLabels
|
|
1550
|
+
declare const DEFAULT_LABELS$1: Record<Language, ModalFilterTicketLabels>;
|
|
1436
1551
|
declare const DEFAULT_SERVICE_TYPES: {
|
|
1437
1552
|
value: string;
|
|
1438
1553
|
label: string;
|
|
@@ -1512,6 +1627,32 @@ declare const DateFilter: React$1.FC<DateFilterProps>;
|
|
|
1512
1627
|
declare const DEFAULT_LABELS: DateFilterLabels;
|
|
1513
1628
|
declare const DEFAULT_SCROLL_AMOUNT = 150;
|
|
1514
1629
|
|
|
1630
|
+
/**
|
|
1631
|
+
* Labels for ModalSearchTicket component
|
|
1632
|
+
*/
|
|
1633
|
+
interface ModalSearchTicketLabels {
|
|
1634
|
+
title: string;
|
|
1635
|
+
fromLabel: string;
|
|
1636
|
+
fromPlaceholder: string;
|
|
1637
|
+
fromRequired: string;
|
|
1638
|
+
toLabel: string;
|
|
1639
|
+
toPlaceholder: string;
|
|
1640
|
+
toRequired: string;
|
|
1641
|
+
departureDateLabel: string;
|
|
1642
|
+
departureDatePlaceholder: string;
|
|
1643
|
+
departureDateRequired: string;
|
|
1644
|
+
roundTripLabel: string;
|
|
1645
|
+
returnDateLabel: string;
|
|
1646
|
+
returnDatePlaceholder: string;
|
|
1647
|
+
returnDateRequired: string;
|
|
1648
|
+
serviceClassLabel: string;
|
|
1649
|
+
serviceClassPlaceholder: string;
|
|
1650
|
+
typeOfServiceLabel: string;
|
|
1651
|
+
typeOfServicePlaceholder: string;
|
|
1652
|
+
passengerLabel: string;
|
|
1653
|
+
passengerPlaceholder: string;
|
|
1654
|
+
searchButton: string;
|
|
1655
|
+
}
|
|
1515
1656
|
/**
|
|
1516
1657
|
* Form data structure for search ticket modal
|
|
1517
1658
|
*/
|
|
@@ -1554,6 +1695,15 @@ interface SearchTicketFormData {
|
|
|
1554
1695
|
* Props for ModalSearchTicket component
|
|
1555
1696
|
*/
|
|
1556
1697
|
interface ModalSearchTicketProps extends Partial<DialogProps> {
|
|
1698
|
+
/**
|
|
1699
|
+
* Language for labels
|
|
1700
|
+
* @default 'id'
|
|
1701
|
+
*/
|
|
1702
|
+
language?: Language;
|
|
1703
|
+
/**
|
|
1704
|
+
* Custom labels override
|
|
1705
|
+
*/
|
|
1706
|
+
labels?: Partial<ModalSearchTicketLabels>;
|
|
1557
1707
|
/**
|
|
1558
1708
|
* Whether the modal is open
|
|
1559
1709
|
*/
|
|
@@ -1716,16 +1866,32 @@ type StepStatus = 'completed' | 'active' | 'inactive';
|
|
|
1716
1866
|
|
|
1717
1867
|
declare const Stepper: React$1.FC<StepperProps>;
|
|
1718
1868
|
|
|
1719
|
-
interface
|
|
1869
|
+
interface Orderer {
|
|
1720
1870
|
name?: string;
|
|
1721
1871
|
phoneNumber?: string;
|
|
1722
1872
|
email?: string;
|
|
1723
1873
|
}
|
|
1874
|
+
interface CardOrdererInfoLabels {
|
|
1875
|
+
title: string;
|
|
1876
|
+
ordererName: string;
|
|
1877
|
+
phoneNumber: string;
|
|
1878
|
+
email: string;
|
|
1879
|
+
}
|
|
1724
1880
|
interface CardOrdererInfoProps {
|
|
1725
1881
|
/**
|
|
1726
|
-
*
|
|
1882
|
+
* Language for labels (Indonesian or English)
|
|
1883
|
+
* @default 'id'
|
|
1727
1884
|
*/
|
|
1728
|
-
|
|
1885
|
+
language?: Language;
|
|
1886
|
+
/**
|
|
1887
|
+
* Orderer information
|
|
1888
|
+
*/
|
|
1889
|
+
orderer?: Orderer;
|
|
1890
|
+
/**
|
|
1891
|
+
* Custom labels override (optional)
|
|
1892
|
+
* If not provided, default labels based on language will be used
|
|
1893
|
+
*/
|
|
1894
|
+
labels?: Partial<CardOrdererInfoLabels>;
|
|
1729
1895
|
/**
|
|
1730
1896
|
* Additional CSS class name
|
|
1731
1897
|
*/
|
|
@@ -1961,7 +2127,16 @@ interface PassengerListItem {
|
|
|
1961
2127
|
*/
|
|
1962
2128
|
serviceName?: string;
|
|
1963
2129
|
}
|
|
2130
|
+
interface CardPassengerListLabels {
|
|
2131
|
+
defaultTitle: string;
|
|
2132
|
+
passengerPrefix: string;
|
|
2133
|
+
}
|
|
1964
2134
|
interface CardPassengerListProps {
|
|
2135
|
+
/**
|
|
2136
|
+
* Language for labels (Indonesian or English)
|
|
2137
|
+
* @default 'id'
|
|
2138
|
+
*/
|
|
2139
|
+
language?: Language;
|
|
1965
2140
|
/**
|
|
1966
2141
|
* Card title
|
|
1967
2142
|
* @default "Data Penumpang"
|
|
@@ -1975,6 +2150,11 @@ interface CardPassengerListProps {
|
|
|
1975
2150
|
* Callback when a passenger is clicked
|
|
1976
2151
|
*/
|
|
1977
2152
|
onPassengerClick: (passenger: PassengerListItem) => void;
|
|
2153
|
+
/**
|
|
2154
|
+
* Custom labels override (optional)
|
|
2155
|
+
* If not provided, default labels based on language will be used
|
|
2156
|
+
*/
|
|
2157
|
+
labels?: Partial<CardPassengerListLabels>;
|
|
1978
2158
|
/**
|
|
1979
2159
|
* Additional CSS class name
|
|
1980
2160
|
*/
|
|
@@ -2001,7 +2181,24 @@ interface CardPassengerListProps {
|
|
|
2001
2181
|
*/
|
|
2002
2182
|
declare const CardPassengerList: React$1.FC<CardPassengerListProps>;
|
|
2003
2183
|
|
|
2184
|
+
interface CardVehicleDetailLabels {
|
|
2185
|
+
title: string;
|
|
2186
|
+
vehicleNumberLabel: string;
|
|
2187
|
+
vehicleNumberPlaceholder: string;
|
|
2188
|
+
loadQuestion: string;
|
|
2189
|
+
yesLabel: string;
|
|
2190
|
+
noLabel: string;
|
|
2191
|
+
}
|
|
2004
2192
|
interface CardVehicleDetailProps {
|
|
2193
|
+
/**
|
|
2194
|
+
* Language for labels
|
|
2195
|
+
* @default 'id'
|
|
2196
|
+
*/
|
|
2197
|
+
language?: Language;
|
|
2198
|
+
/**
|
|
2199
|
+
* Custom labels override
|
|
2200
|
+
*/
|
|
2201
|
+
labels?: Partial<CardVehicleDetailLabels>;
|
|
2005
2202
|
/**
|
|
2006
2203
|
* Title of the vehicle service type
|
|
2007
2204
|
*/
|
|
@@ -2125,7 +2322,27 @@ declare const CardVehicleOwnerForm: React$1.FC<CardVehicleOwnerFormProps>;
|
|
|
2125
2322
|
|
|
2126
2323
|
type ReservationStep = 'manifest' | 'addon' | 'meals' | 'review' | 'payment' | 'eticket' | string;
|
|
2127
2324
|
type PaymentStep = 'method' | 'pay' | string;
|
|
2325
|
+
interface CardBookingTicketLabels {
|
|
2326
|
+
bookingDetails: string;
|
|
2327
|
+
routeTitle: string;
|
|
2328
|
+
estimationPrefix: string;
|
|
2329
|
+
totalPriceLabel: string;
|
|
2330
|
+
nextButton: string;
|
|
2331
|
+
previousButton: string;
|
|
2332
|
+
viewBookingButton: string;
|
|
2333
|
+
changePaymentButton: string;
|
|
2334
|
+
timezoneLabel: string;
|
|
2335
|
+
}
|
|
2128
2336
|
interface CardBookingTicketProps {
|
|
2337
|
+
/**
|
|
2338
|
+
* Language for labels
|
|
2339
|
+
* @default 'id'
|
|
2340
|
+
*/
|
|
2341
|
+
language?: Language;
|
|
2342
|
+
/**
|
|
2343
|
+
* Custom labels override
|
|
2344
|
+
*/
|
|
2345
|
+
labels?: Partial<CardBookingTicketLabels>;
|
|
2129
2346
|
/**
|
|
2130
2347
|
* Ship Name (e.g. KMP PORTLINK)
|
|
2131
2348
|
*/
|
|
@@ -2198,7 +2415,19 @@ interface CardBookingTicketProps {
|
|
|
2198
2415
|
|
|
2199
2416
|
declare const CardBookingTicket: React$1.FC<CardBookingTicketProps>;
|
|
2200
2417
|
|
|
2418
|
+
interface CardFAQLabels {
|
|
2419
|
+
title: string;
|
|
2420
|
+
}
|
|
2201
2421
|
interface CardFAQProps {
|
|
2422
|
+
/**
|
|
2423
|
+
* Language for labels
|
|
2424
|
+
* @default 'id'
|
|
2425
|
+
*/
|
|
2426
|
+
language?: Language;
|
|
2427
|
+
/**
|
|
2428
|
+
* Custom labels override
|
|
2429
|
+
*/
|
|
2430
|
+
labels?: Partial<CardFAQLabels>;
|
|
2202
2431
|
/**
|
|
2203
2432
|
* Optional class name for the container
|
|
2204
2433
|
*/
|
|
@@ -2238,7 +2467,22 @@ interface MealData {
|
|
|
2238
2467
|
onUpdateQuantity: (id: number, delta: number) => void;
|
|
2239
2468
|
onDelete: (id: number) => void;
|
|
2240
2469
|
}
|
|
2470
|
+
interface CardAddonLabels {
|
|
2471
|
+
viewDetail: string;
|
|
2472
|
+
totalPrice: string;
|
|
2473
|
+
passengerInsurance: string;
|
|
2474
|
+
removeOrder: string;
|
|
2475
|
+
}
|
|
2241
2476
|
interface CardAddonProps {
|
|
2477
|
+
/**
|
|
2478
|
+
* Language for labels
|
|
2479
|
+
* @default 'id'
|
|
2480
|
+
*/
|
|
2481
|
+
language?: Language;
|
|
2482
|
+
/**
|
|
2483
|
+
* Custom labels override
|
|
2484
|
+
*/
|
|
2485
|
+
labels?: Partial<CardAddonLabels>;
|
|
2242
2486
|
/**
|
|
2243
2487
|
* Main title of the card header
|
|
2244
2488
|
*/
|
|
@@ -2287,6 +2531,9 @@ interface CardAddonProps {
|
|
|
2287
2531
|
|
|
2288
2532
|
declare const CardAddon: React$1.FC<CardAddonProps>;
|
|
2289
2533
|
|
|
2534
|
+
interface CardMealCatalogLabels {
|
|
2535
|
+
addButton: string;
|
|
2536
|
+
}
|
|
2290
2537
|
interface MealItem {
|
|
2291
2538
|
id: number;
|
|
2292
2539
|
name: string;
|
|
@@ -2301,6 +2548,15 @@ interface MealCategory {
|
|
|
2301
2548
|
list: MealItem[];
|
|
2302
2549
|
}
|
|
2303
2550
|
interface CardMealCatalogProps {
|
|
2551
|
+
/**
|
|
2552
|
+
* Language for labels
|
|
2553
|
+
* @default 'id'
|
|
2554
|
+
*/
|
|
2555
|
+
language?: Language;
|
|
2556
|
+
/**
|
|
2557
|
+
* Custom labels override
|
|
2558
|
+
*/
|
|
2559
|
+
labels?: Partial<CardMealCatalogLabels>;
|
|
2304
2560
|
/**
|
|
2305
2561
|
* Configuration for the top banner
|
|
2306
2562
|
*/
|
|
@@ -2349,7 +2605,18 @@ interface ReviewItem {
|
|
|
2349
2605
|
*/
|
|
2350
2606
|
valueClassName?: string;
|
|
2351
2607
|
}
|
|
2608
|
+
interface CardReviewLabels {
|
|
2609
|
+
}
|
|
2352
2610
|
interface CardReviewProps {
|
|
2611
|
+
/**
|
|
2612
|
+
* Language for labels
|
|
2613
|
+
* @default 'id'
|
|
2614
|
+
*/
|
|
2615
|
+
language?: Language;
|
|
2616
|
+
/**
|
|
2617
|
+
* Custom labels override
|
|
2618
|
+
*/
|
|
2619
|
+
labels?: Partial<CardReviewLabels>;
|
|
2353
2620
|
/**
|
|
2354
2621
|
* Title of the section (e.g. "Detail Pemesan")
|
|
2355
2622
|
*/
|
|
@@ -2383,7 +2650,20 @@ interface ReviewPassengerItem {
|
|
|
2383
2650
|
ticketClass: string;
|
|
2384
2651
|
serviceClass?: string;
|
|
2385
2652
|
}
|
|
2653
|
+
interface CardReviewPassengerLabels {
|
|
2654
|
+
title: string;
|
|
2655
|
+
idNumber: string;
|
|
2656
|
+
}
|
|
2386
2657
|
interface CardReviewPassengerProps {
|
|
2658
|
+
/**
|
|
2659
|
+
* Language for labels
|
|
2660
|
+
* @default 'id'
|
|
2661
|
+
*/
|
|
2662
|
+
language?: Language;
|
|
2663
|
+
/**
|
|
2664
|
+
* Custom labels override
|
|
2665
|
+
*/
|
|
2666
|
+
labels?: Partial<CardReviewPassengerLabels>;
|
|
2387
2667
|
/**
|
|
2388
2668
|
* Title of the card section, defaults to "Penumpang"
|
|
2389
2669
|
*/
|
|
@@ -2421,7 +2701,22 @@ interface PriceSection {
|
|
|
2421
2701
|
title?: string;
|
|
2422
2702
|
detail: PriceItem[];
|
|
2423
2703
|
}
|
|
2704
|
+
interface CardPriceDetailsLabels {
|
|
2705
|
+
defaultTitle: string;
|
|
2706
|
+
totalPayment: string;
|
|
2707
|
+
bookingTerms: string[];
|
|
2708
|
+
agreementInfo: string;
|
|
2709
|
+
agreementLinkFerizy: string;
|
|
2710
|
+
agreementCovidInfo: string;
|
|
2711
|
+
agreementCovidLink: string;
|
|
2712
|
+
agreementFinal: string;
|
|
2713
|
+
}
|
|
2424
2714
|
interface CardPriceDetailsProps {
|
|
2715
|
+
/**
|
|
2716
|
+
* Language for labels (Indonesian or English)
|
|
2717
|
+
* @default 'id'
|
|
2718
|
+
*/
|
|
2719
|
+
language?: Language;
|
|
2425
2720
|
/**
|
|
2426
2721
|
* Title of the card, defaults to "Rincian Harga"
|
|
2427
2722
|
*/
|
|
@@ -2434,6 +2729,11 @@ interface CardPriceDetailsProps {
|
|
|
2434
2729
|
* Total payment details
|
|
2435
2730
|
*/
|
|
2436
2731
|
total: number;
|
|
2732
|
+
/**
|
|
2733
|
+
* Custom labels override (optional)
|
|
2734
|
+
* If not provided, default labels based on language will be used
|
|
2735
|
+
*/
|
|
2736
|
+
labels?: Partial<CardPriceDetailsLabels>;
|
|
2437
2737
|
}
|
|
2438
2738
|
|
|
2439
2739
|
declare const CardPriceDetails: React$1.FC<CardPriceDetailsProps>;
|
|
@@ -2448,7 +2748,18 @@ interface PaymentMethodCategory {
|
|
|
2448
2748
|
value: string;
|
|
2449
2749
|
options: PaymentOption[];
|
|
2450
2750
|
}
|
|
2751
|
+
interface CardPaymentMethodListLabels {
|
|
2752
|
+
}
|
|
2451
2753
|
interface CardPaymentMethodListProps {
|
|
2754
|
+
/**
|
|
2755
|
+
* Language for labels
|
|
2756
|
+
* @default 'id'
|
|
2757
|
+
*/
|
|
2758
|
+
language?: Language;
|
|
2759
|
+
/**
|
|
2760
|
+
* Custom labels override
|
|
2761
|
+
*/
|
|
2762
|
+
labels?: Partial<CardPaymentMethodListLabels>;
|
|
2452
2763
|
methods: PaymentMethodCategory[];
|
|
2453
2764
|
selectedValue?: string;
|
|
2454
2765
|
onSelect: (value: string) => void;
|
|
@@ -2461,7 +2772,19 @@ interface PaymentGuideStep {
|
|
|
2461
2772
|
value: string;
|
|
2462
2773
|
steps: string[];
|
|
2463
2774
|
}
|
|
2775
|
+
interface CardPaymentGuideLabels {
|
|
2776
|
+
title: string;
|
|
2777
|
+
}
|
|
2464
2778
|
interface CardPaymentGuideProps {
|
|
2779
|
+
/**
|
|
2780
|
+
* Language for labels
|
|
2781
|
+
* @default 'id'
|
|
2782
|
+
*/
|
|
2783
|
+
language?: Language;
|
|
2784
|
+
/**
|
|
2785
|
+
* Custom labels override
|
|
2786
|
+
*/
|
|
2787
|
+
labels?: Partial<CardPaymentGuideLabels>;
|
|
2465
2788
|
title?: string;
|
|
2466
2789
|
guides: PaymentGuideStep[];
|
|
2467
2790
|
className?: string;
|
|
@@ -2473,7 +2796,23 @@ interface BankInfo {
|
|
|
2473
2796
|
name: string;
|
|
2474
2797
|
icon: string;
|
|
2475
2798
|
}
|
|
2799
|
+
interface CardPaymentInfoLabels {
|
|
2800
|
+
expiryPrefix: string;
|
|
2801
|
+
copyCodeButton: string;
|
|
2802
|
+
totalPayment: string;
|
|
2803
|
+
checkStatusInfo: string;
|
|
2804
|
+
checkStatusButton: string;
|
|
2805
|
+
}
|
|
2476
2806
|
interface CardPaymentInfoProps {
|
|
2807
|
+
/**
|
|
2808
|
+
* Language for labels
|
|
2809
|
+
* @default 'id'
|
|
2810
|
+
*/
|
|
2811
|
+
language?: Language;
|
|
2812
|
+
/**
|
|
2813
|
+
* Custom labels override
|
|
2814
|
+
*/
|
|
2815
|
+
labels?: Partial<CardPaymentInfoLabels>;
|
|
2477
2816
|
expiryDate: string;
|
|
2478
2817
|
bank: BankInfo;
|
|
2479
2818
|
virtualAccount: string;
|
|
@@ -2485,7 +2824,29 @@ interface CardPaymentInfoProps {
|
|
|
2485
2824
|
|
|
2486
2825
|
declare const CardPaymentInfo: React$1.FC<CardPaymentInfoProps>;
|
|
2487
2826
|
|
|
2827
|
+
interface CardStatusOrderLabels {
|
|
2828
|
+
detailTitle: string;
|
|
2829
|
+
statusLabel: string;
|
|
2830
|
+
bookingCodeLabel: string;
|
|
2831
|
+
scheduleLabel: string;
|
|
2832
|
+
routeLabel: string;
|
|
2833
|
+
userTypeLabel: string;
|
|
2834
|
+
serviceLabel: string;
|
|
2835
|
+
viewTicketButton: string;
|
|
2836
|
+
defaultStatus: string;
|
|
2837
|
+
defaultTitle: string;
|
|
2838
|
+
defaultDescription: string;
|
|
2839
|
+
}
|
|
2488
2840
|
interface CardStatusOrderProps {
|
|
2841
|
+
/**
|
|
2842
|
+
* Language for labels
|
|
2843
|
+
* @default 'id'
|
|
2844
|
+
*/
|
|
2845
|
+
language?: Language;
|
|
2846
|
+
/**
|
|
2847
|
+
* Custom labels override
|
|
2848
|
+
*/
|
|
2849
|
+
labels?: Partial<CardStatusOrderLabels>;
|
|
2489
2850
|
bookingCode: string;
|
|
2490
2851
|
departureDate: string;
|
|
2491
2852
|
departureTime: string;
|
|
@@ -2551,7 +2912,18 @@ interface ProfileMenuSection {
|
|
|
2551
2912
|
sectionLabel: string;
|
|
2552
2913
|
tabs: ProfileMenuTab[];
|
|
2553
2914
|
}
|
|
2915
|
+
interface CardProfileMenuLabels {
|
|
2916
|
+
}
|
|
2554
2917
|
interface CardProfileMenuProps {
|
|
2918
|
+
/**
|
|
2919
|
+
* Language for labels (Indonesian or English)
|
|
2920
|
+
* @default 'id'
|
|
2921
|
+
*/
|
|
2922
|
+
language?: Language;
|
|
2923
|
+
/**
|
|
2924
|
+
* Custom labels override (optional)
|
|
2925
|
+
*/
|
|
2926
|
+
labels?: Partial<CardProfileMenuLabels>;
|
|
2555
2927
|
/**
|
|
2556
2928
|
* List of menu sections with tabs
|
|
2557
2929
|
*/
|
|
@@ -2568,4 +2940,4 @@ interface CardProfileMenuProps {
|
|
|
2568
2940
|
|
|
2569
2941
|
declare const CardProfileMenu: React$1.FC<CardProfileMenuProps>;
|
|
2570
2942
|
|
|
2571
|
-
export { BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, 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 CardProfileMenuProps, CardPromo, type CardPromoProps, CardReview, CardReviewPassenger, type CardReviewPassengerProps, type CardReviewProps, CardServiceMenu, type CardServiceMenuProps, CardStatusOrder, type CardStatusOrderProps, CardTicket, type CardTicketProps, CardTicketSearch, DEFAULT_LABELS$3 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$2 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryCode, DEFAULT_COUNTRY_CODES, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_CLASSES, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type FilterCount, type HarborItem, InputDynamic, type InputDynamicProps, type InputType, MODAL_PRESETS, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, type
|
|
2943
|
+
export { BackgroundTicketCard, BackgroundTicketCardVertical, type BadgeConfig, 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$3 as CardTicketSearchDefaultLabels, type CardTicketSearchFormData, type CardTicketSearchLabels, type CardTicketSearchProps, type ServiceMenuItem as CardTicketSearchServiceMenuItem, CardTicketSearchSummary, DEFAULT_LABELS$2 as CardTicketSearchSummaryDefaultLabels, type CardTicketSearchSummaryProps, CardVehicleDetail, type CardVehicleDetailProps, CardVehicleOwnerForm, type CardVehicleOwnerFormProps, type CargoItem, CarouselWithCustomNav, type CarouselWithCustomNavProps, type CountryCode, DEFAULT_COUNTRY_CODES, DEFAULT_DURATION_RANGE, DEFAULT_PRICE_RANGE, DEFAULT_SCROLL_AMOUNT, DEFAULT_SERVICE_CLASSES, DEFAULT_SERVICE_TYPES, DEFAULT_SORT_OPTIONS, DEFAULT_TIME_SLOTS, DEFAULT_VEHICLE_ICONS, DateFilter, DEFAULT_LABELS as DateFilterDefaultLabels, type DateFilterLabels, type DateFilterProps, type DateItem, type FilterCount, type HarborItem, InputDynamic, type InputDynamicProps, type InputType, MODAL_PRESETS, type MealCategory, type MealItem, ModalFilterTicket, DEFAULT_LABELS$1 as ModalFilterTicketDefaultLabels, type ModalFilterTicketLabels, type ModalFilterTicketProps, ModalIllustration, type ModalIllustrationButton, type ModalIllustrationProps, ModalListPassenger, type PassengerItem as ModalListPassengerItem, type ModalListPassengerProps, ModalPassengerForm, type ModalPassengerFormProps, type ModalPresetKey, ModalPriceDetail, type ModalPriceDetailProps, ModalSearchHarbor, type ModalSearchHarborProps, ModalSearchTicket, type ModalSearchTicketProps, ModalSelectDate, type ModalSelectDateProps, ModalService, type ModalServiceProps, ModalTotalPassengers, type ModalTotalPassengersProps, ModalTypeOfService, type ModalTypeOfServiceProps, type Passenger, type PassengerFormData, type PassengerListItem, type PassengerService, type PassengerServiceCode, type PassengerType, type PaymentGuideStep, type PaymentMethodCategory, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type RadioOption, type ReservationStep, type ReviewPassengerItem, type SearchSummaryField, type SearchTicketFormData, type SelectOption, type SelectedPassengerItem, type ServiceClass, type ServiceId, type ServiceItem, SortMenu, type SortMenuProps, type SortOption, type StepStatus, Stepper, type StepperProps, type StepperStep, type TabType, type TypeOfService, type VehicleOwner, getBadgeConfig, getModalPreset, getSortLabel };
|