@asdp/ferryui 0.1.22-dev.8649 → 0.1.22-dev.8661
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 +107 -1
- package/dist/index.d.ts +107 -1
- package/dist/index.js +838 -420
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +835 -417
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -167,7 +167,21 @@ declare const MODAL_PRESETS: {
|
|
|
167
167
|
readonly TRANSACTION_LIMIT: Partial<ModalIllustrationProps>;
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
+
interface CarouselWithCustomNavLabels {
|
|
171
|
+
carouselAriaLabel: string;
|
|
172
|
+
slideAriaLabel: string;
|
|
173
|
+
announcementTemplate: string;
|
|
174
|
+
}
|
|
170
175
|
interface CarouselWithCustomNavProps {
|
|
176
|
+
/**
|
|
177
|
+
* Language for labels
|
|
178
|
+
* @default 'id'
|
|
179
|
+
*/
|
|
180
|
+
language?: Language;
|
|
181
|
+
/**
|
|
182
|
+
* Custom labels override
|
|
183
|
+
*/
|
|
184
|
+
labels?: Partial<CarouselWithCustomNavLabels>;
|
|
171
185
|
/**
|
|
172
186
|
* Carousel items/children
|
|
173
187
|
*/
|
|
@@ -207,6 +221,7 @@ interface CarouselWithCustomNavProps {
|
|
|
207
221
|
/**
|
|
208
222
|
* ARIA label for the carousel slider
|
|
209
223
|
* @default "Carousel"
|
|
224
|
+
* @deprecated Use labels
|
|
210
225
|
*/
|
|
211
226
|
ariaLabel?: string;
|
|
212
227
|
/**
|
|
@@ -224,11 +239,15 @@ interface CarouselWithCustomNavProps {
|
|
|
224
239
|
*/
|
|
225
240
|
cardFocus?: boolean;
|
|
226
241
|
}
|
|
242
|
+
|
|
227
243
|
declare const CarouselWithCustomNav: React$1.FC<CarouselWithCustomNavProps>;
|
|
228
244
|
|
|
229
245
|
interface CardPromoLabels {
|
|
230
246
|
defaultImageAlt: string;
|
|
231
247
|
defaultButtonText: string;
|
|
248
|
+
promoAriaLabel: string;
|
|
249
|
+
promoAriaLabelSingle: string;
|
|
250
|
+
loadingContent: string;
|
|
232
251
|
}
|
|
233
252
|
interface CardPromoProps {
|
|
234
253
|
/**
|
|
@@ -354,6 +373,8 @@ interface CardTicketLabels {
|
|
|
354
373
|
facilitiesLabel: string;
|
|
355
374
|
selectTicketButton: string;
|
|
356
375
|
timezoneLabel: string;
|
|
376
|
+
currencySymbol: string;
|
|
377
|
+
logoAlt: string;
|
|
357
378
|
}
|
|
358
379
|
interface CardTicketProps {
|
|
359
380
|
/**
|
|
@@ -469,6 +490,7 @@ interface CardServiceMenuLabels {
|
|
|
469
490
|
hotelDescription: string;
|
|
470
491
|
otherLabel: string;
|
|
471
492
|
otherDescription: string;
|
|
493
|
+
serviceAriaLabel: string;
|
|
472
494
|
}
|
|
473
495
|
interface CardServiceMenuProps {
|
|
474
496
|
/**
|
|
@@ -529,12 +551,22 @@ interface CardTicketSearchLabels {
|
|
|
529
551
|
roundTripLabel: string;
|
|
530
552
|
searchButton: string;
|
|
531
553
|
placeholderPort: string;
|
|
554
|
+
ferryDescription: string;
|
|
555
|
+
ifcsDescription: string;
|
|
556
|
+
skptDescription: string;
|
|
557
|
+
hotelDescription: string;
|
|
558
|
+
otherDescription: string;
|
|
532
559
|
placeholderDestinationPort: string;
|
|
533
560
|
placeholderDepartureDate: string;
|
|
534
561
|
placeholderReturnDate: string;
|
|
535
562
|
placeholderTypeClass: string;
|
|
536
563
|
placeholderTypeService: string;
|
|
537
564
|
placeholderPassenger: string;
|
|
565
|
+
errorOriginRequired: string;
|
|
566
|
+
errorDestinationRequired: string;
|
|
567
|
+
errorDepartureDateRequired: string;
|
|
568
|
+
errorReturnDateRequired: string;
|
|
569
|
+
switchAriaLabel: string;
|
|
538
570
|
}
|
|
539
571
|
interface CardTicketSearchProps {
|
|
540
572
|
/**
|
|
@@ -626,6 +658,7 @@ interface CardTicketSearchSummaryLabels {
|
|
|
626
658
|
typeOfService: string;
|
|
627
659
|
totalPassengers: string;
|
|
628
660
|
changeSearchButton: string;
|
|
661
|
+
swapAriaLabel: string;
|
|
629
662
|
}
|
|
630
663
|
interface CardTicketSearchSummaryProps {
|
|
631
664
|
/**
|
|
@@ -775,6 +808,13 @@ interface InputDynamicLabels {
|
|
|
775
808
|
identityPlaceholder: string;
|
|
776
809
|
identityPhonePlaceholder: string;
|
|
777
810
|
identityIdPlaceholder: string;
|
|
811
|
+
showPasswordAriaLabel: string;
|
|
812
|
+
hidePasswordAriaLabel: string;
|
|
813
|
+
datePickerPlaceholder: string;
|
|
814
|
+
phoneDefaultPlaceholder: string;
|
|
815
|
+
requiredFieldError: string;
|
|
816
|
+
invalidEmailError: string;
|
|
817
|
+
emailOrPhoneRequiredError: string;
|
|
778
818
|
}
|
|
779
819
|
|
|
780
820
|
declare const InputDynamic: React$1.FC<InputDynamicProps>;
|
|
@@ -805,6 +845,7 @@ interface ModalSearchHarborLabels {
|
|
|
805
845
|
allHarborsHeader: string;
|
|
806
846
|
loadingData: string;
|
|
807
847
|
harborNotFound: string;
|
|
848
|
+
closeAriaLabel: string;
|
|
808
849
|
}
|
|
809
850
|
/**
|
|
810
851
|
* Props for ModalSearchHarbor component
|
|
@@ -924,6 +965,7 @@ interface ModalSelectDateLabels {
|
|
|
924
965
|
title: string;
|
|
925
966
|
oneWay: string;
|
|
926
967
|
roundTrip: string;
|
|
968
|
+
closeAriaLabel: string;
|
|
927
969
|
}
|
|
928
970
|
/**
|
|
929
971
|
* Props for ModalSelectDate component
|
|
@@ -1053,6 +1095,7 @@ interface ModalServiceLabels {
|
|
|
1053
1095
|
error: string;
|
|
1054
1096
|
selectAll: string;
|
|
1055
1097
|
saveButton: string;
|
|
1098
|
+
closeAriaLabel: string;
|
|
1056
1099
|
}
|
|
1057
1100
|
/**
|
|
1058
1101
|
* Props for ModalService component
|
|
@@ -1161,6 +1204,7 @@ interface ModalTotalPassengersLabels {
|
|
|
1161
1204
|
economy: string;
|
|
1162
1205
|
business: string;
|
|
1163
1206
|
executive: string;
|
|
1207
|
+
closeAriaLabel: string;
|
|
1164
1208
|
}
|
|
1165
1209
|
/**
|
|
1166
1210
|
* Passenger object structure
|
|
@@ -1314,6 +1358,7 @@ interface ModalTypeOfServiceLabels {
|
|
|
1314
1358
|
cancelButton: string;
|
|
1315
1359
|
saveButton: string;
|
|
1316
1360
|
vehiclesAlt: string;
|
|
1361
|
+
closeAriaLabel: string;
|
|
1317
1362
|
}
|
|
1318
1363
|
/**
|
|
1319
1364
|
* Props for ModalTypeOfService component
|
|
@@ -1416,7 +1461,27 @@ interface FilterCount {
|
|
|
1416
1461
|
priceRange?: number;
|
|
1417
1462
|
durationRange?: number;
|
|
1418
1463
|
}
|
|
1464
|
+
interface SortMenuLabels {
|
|
1465
|
+
filterButtonText: string;
|
|
1466
|
+
sortButtonText: string;
|
|
1467
|
+
clearFiltersText: string;
|
|
1468
|
+
recommendation: string;
|
|
1469
|
+
highestPrice: string;
|
|
1470
|
+
lowestPrice: string;
|
|
1471
|
+
earliestDeparture: string;
|
|
1472
|
+
latestDeparture: string;
|
|
1473
|
+
resetSortAriaLabel: string;
|
|
1474
|
+
}
|
|
1419
1475
|
interface SortMenuProps {
|
|
1476
|
+
/**
|
|
1477
|
+
* Language for labels (Indonesian or English)
|
|
1478
|
+
* @default 'id'
|
|
1479
|
+
*/
|
|
1480
|
+
language?: Language;
|
|
1481
|
+
/**
|
|
1482
|
+
* Custom labels override (optional)
|
|
1483
|
+
*/
|
|
1484
|
+
labels?: Partial<SortMenuLabels>;
|
|
1420
1485
|
/**
|
|
1421
1486
|
* Current sort value
|
|
1422
1487
|
*/
|
|
@@ -1446,26 +1511,35 @@ interface SortMenuProps {
|
|
|
1446
1511
|
/**
|
|
1447
1512
|
* Filter button text
|
|
1448
1513
|
* @default "Filter"
|
|
1514
|
+
* @deprecated Use labels
|
|
1449
1515
|
*/
|
|
1450
1516
|
filterButtonText?: string;
|
|
1451
1517
|
/**
|
|
1452
1518
|
* Sort button text
|
|
1453
1519
|
* @default "Urutkan Berdasarkan"
|
|
1520
|
+
* @deprecated Use labels
|
|
1454
1521
|
*/
|
|
1455
1522
|
sortButtonText?: string;
|
|
1456
1523
|
/**
|
|
1457
1524
|
* Clear filters button text template
|
|
1458
1525
|
* @default "{count} Filter Dipilih"
|
|
1526
|
+
* @deprecated Use labels
|
|
1459
1527
|
*/
|
|
1460
1528
|
clearFiltersText?: string;
|
|
1461
1529
|
}
|
|
1462
1530
|
|
|
1463
1531
|
declare const SortMenu: React$1.FC<SortMenuProps>;
|
|
1464
1532
|
|
|
1533
|
+
/**
|
|
1534
|
+
* @deprecated Use getSortOptions and find the label from there
|
|
1535
|
+
*/
|
|
1465
1536
|
declare const DEFAULT_SORT_OPTIONS: {
|
|
1466
1537
|
value: string;
|
|
1467
1538
|
label: string;
|
|
1468
1539
|
}[];
|
|
1540
|
+
/**
|
|
1541
|
+
* @deprecated Use labels directly
|
|
1542
|
+
*/
|
|
1469
1543
|
declare const getSortLabel: (value: string) => string;
|
|
1470
1544
|
|
|
1471
1545
|
interface ModalFilterTicketProps {
|
|
@@ -1580,6 +1654,9 @@ interface ModalFilterTicketLabels {
|
|
|
1580
1654
|
durationRangeText: (min: number, max: number) => string;
|
|
1581
1655
|
resetButton: string;
|
|
1582
1656
|
applyButton: string;
|
|
1657
|
+
hourUnit: string;
|
|
1658
|
+
currencySymbol: string;
|
|
1659
|
+
closeAriaLabel: string;
|
|
1583
1660
|
}
|
|
1584
1661
|
|
|
1585
1662
|
declare const ModalFilterTicket: React$1.FC<ModalFilterTicketProps>;
|
|
@@ -1625,6 +1702,11 @@ interface DateFilterProps {
|
|
|
1625
1702
|
* Currently selected date label
|
|
1626
1703
|
*/
|
|
1627
1704
|
selectedDate: string;
|
|
1705
|
+
/**
|
|
1706
|
+
* Language for localization
|
|
1707
|
+
* @default 'id'
|
|
1708
|
+
*/
|
|
1709
|
+
language?: Language;
|
|
1628
1710
|
/**
|
|
1629
1711
|
* Callback when a date is clicked
|
|
1630
1712
|
*/
|
|
@@ -1661,7 +1743,7 @@ interface DateFilterLabels {
|
|
|
1661
1743
|
|
|
1662
1744
|
declare const DateFilter: React$1.FC<DateFilterProps>;
|
|
1663
1745
|
|
|
1664
|
-
declare const DEFAULT_LABELS: DateFilterLabels
|
|
1746
|
+
declare const DEFAULT_LABELS: Record<Language, DateFilterLabels>;
|
|
1665
1747
|
declare const DEFAULT_SCROLL_AMOUNT = 150;
|
|
1666
1748
|
|
|
1667
1749
|
/**
|
|
@@ -1689,6 +1771,7 @@ interface ModalSearchTicketLabels {
|
|
|
1689
1771
|
passengerLabel: string;
|
|
1690
1772
|
passengerPlaceholder: string;
|
|
1691
1773
|
searchButton: string;
|
|
1774
|
+
closeAriaLabel: string;
|
|
1692
1775
|
}
|
|
1693
1776
|
/**
|
|
1694
1777
|
* Form data structure for search ticket modal
|
|
@@ -1984,6 +2067,13 @@ interface ModalListPassengerLabels {
|
|
|
1984
2067
|
searchPlaceholder: string;
|
|
1985
2068
|
addPassengerButton: string;
|
|
1986
2069
|
cancelButton: string;
|
|
2070
|
+
editPassengerAriaLabel: string;
|
|
2071
|
+
categories: {
|
|
2072
|
+
adult: string;
|
|
2073
|
+
child: string;
|
|
2074
|
+
infant: string;
|
|
2075
|
+
elderly: string;
|
|
2076
|
+
};
|
|
1987
2077
|
}
|
|
1988
2078
|
interface PassengerItem {
|
|
1989
2079
|
/**
|
|
@@ -2489,6 +2579,7 @@ interface CardVehicleOwnerFormLabels {
|
|
|
2489
2579
|
cargoReceiverCompanyPlaceholder: string;
|
|
2490
2580
|
cargoReceiverIndividualPlaceholder: string;
|
|
2491
2581
|
totalWeightLabel: string;
|
|
2582
|
+
commentLabel: string;
|
|
2492
2583
|
cargoListTitle: string;
|
|
2493
2584
|
cargoItemTitle: string;
|
|
2494
2585
|
commodityLabel: string;
|
|
@@ -2510,6 +2601,11 @@ interface CardVehicleOwnerFormLabels {
|
|
|
2510
2601
|
ton: string;
|
|
2511
2602
|
unit: string;
|
|
2512
2603
|
};
|
|
2604
|
+
pricePlaceholder: string;
|
|
2605
|
+
currencySymbol: string;
|
|
2606
|
+
deleteOwnerAriaLabel: string;
|
|
2607
|
+
decrementQuantityAriaLabel: string;
|
|
2608
|
+
incrementQuantityAriaLabel: string;
|
|
2513
2609
|
}
|
|
2514
2610
|
|
|
2515
2611
|
declare const CardVehicleOwnerForm: React$1.FC<CardVehicleOwnerFormProps>;
|
|
@@ -2526,6 +2622,7 @@ interface CardBookingTicketLabels {
|
|
|
2526
2622
|
viewBookingButton: string;
|
|
2527
2623
|
changePaymentButton: string;
|
|
2528
2624
|
timezoneLabel: string;
|
|
2625
|
+
currencySymbol: string;
|
|
2529
2626
|
}
|
|
2530
2627
|
interface CardBookingTicketProps {
|
|
2531
2628
|
/**
|
|
@@ -2676,6 +2773,7 @@ interface CardAddonLabels {
|
|
|
2676
2773
|
totalPrice: string;
|
|
2677
2774
|
passengerInsurance: string;
|
|
2678
2775
|
removeOrder: string;
|
|
2776
|
+
currencySymbol: string;
|
|
2679
2777
|
}
|
|
2680
2778
|
interface CardAddonProps {
|
|
2681
2779
|
/**
|
|
@@ -2737,6 +2835,9 @@ declare const CardAddon: React$1.FC<CardAddonProps>;
|
|
|
2737
2835
|
|
|
2738
2836
|
interface CardMealCatalogLabels {
|
|
2739
2837
|
addButton: string;
|
|
2838
|
+
currencySymbol: string;
|
|
2839
|
+
decrementAriaLabel: string;
|
|
2840
|
+
incrementAriaLabel: string;
|
|
2740
2841
|
}
|
|
2741
2842
|
interface MealItem {
|
|
2742
2843
|
id: number;
|
|
@@ -2810,6 +2911,7 @@ interface ReviewItem {
|
|
|
2810
2911
|
valueClassName?: string;
|
|
2811
2912
|
}
|
|
2812
2913
|
interface CardReviewLabels {
|
|
2914
|
+
defaultTitle: string;
|
|
2813
2915
|
}
|
|
2814
2916
|
interface CardReviewProps {
|
|
2815
2917
|
/**
|
|
@@ -2955,6 +3057,7 @@ interface PaymentMethodCategory {
|
|
|
2955
3057
|
options: PaymentOption[];
|
|
2956
3058
|
}
|
|
2957
3059
|
interface CardPaymentMethodListLabels {
|
|
3060
|
+
selectAriaLabel: string;
|
|
2958
3061
|
}
|
|
2959
3062
|
interface CardPaymentMethodListProps {
|
|
2960
3063
|
/**
|
|
@@ -3008,6 +3111,7 @@ interface CardPaymentInfoLabels {
|
|
|
3008
3111
|
totalPayment: string;
|
|
3009
3112
|
checkStatusInfo: string;
|
|
3010
3113
|
checkStatusButton: string;
|
|
3114
|
+
currencySymbol: string;
|
|
3011
3115
|
}
|
|
3012
3116
|
interface CardPaymentInfoProps {
|
|
3013
3117
|
/**
|
|
@@ -3042,6 +3146,7 @@ interface CardStatusOrderLabels {
|
|
|
3042
3146
|
defaultStatus: string;
|
|
3043
3147
|
defaultTitle: string;
|
|
3044
3148
|
defaultDescription: string;
|
|
3149
|
+
illustrationAlt: string;
|
|
3045
3150
|
}
|
|
3046
3151
|
interface CardStatusOrderProps {
|
|
3047
3152
|
/**
|
|
@@ -3088,6 +3193,7 @@ interface ModalPriceDetailLabels {
|
|
|
3088
3193
|
grandTotalLabel: string;
|
|
3089
3194
|
currencyPrefix: string;
|
|
3090
3195
|
currencyCode: string;
|
|
3196
|
+
closeAriaLabel: string;
|
|
3091
3197
|
}
|
|
3092
3198
|
interface PriceDetailItem {
|
|
3093
3199
|
key: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -167,7 +167,21 @@ declare const MODAL_PRESETS: {
|
|
|
167
167
|
readonly TRANSACTION_LIMIT: Partial<ModalIllustrationProps>;
|
|
168
168
|
};
|
|
169
169
|
|
|
170
|
+
interface CarouselWithCustomNavLabels {
|
|
171
|
+
carouselAriaLabel: string;
|
|
172
|
+
slideAriaLabel: string;
|
|
173
|
+
announcementTemplate: string;
|
|
174
|
+
}
|
|
170
175
|
interface CarouselWithCustomNavProps {
|
|
176
|
+
/**
|
|
177
|
+
* Language for labels
|
|
178
|
+
* @default 'id'
|
|
179
|
+
*/
|
|
180
|
+
language?: Language;
|
|
181
|
+
/**
|
|
182
|
+
* Custom labels override
|
|
183
|
+
*/
|
|
184
|
+
labels?: Partial<CarouselWithCustomNavLabels>;
|
|
171
185
|
/**
|
|
172
186
|
* Carousel items/children
|
|
173
187
|
*/
|
|
@@ -207,6 +221,7 @@ interface CarouselWithCustomNavProps {
|
|
|
207
221
|
/**
|
|
208
222
|
* ARIA label for the carousel slider
|
|
209
223
|
* @default "Carousel"
|
|
224
|
+
* @deprecated Use labels
|
|
210
225
|
*/
|
|
211
226
|
ariaLabel?: string;
|
|
212
227
|
/**
|
|
@@ -224,11 +239,15 @@ interface CarouselWithCustomNavProps {
|
|
|
224
239
|
*/
|
|
225
240
|
cardFocus?: boolean;
|
|
226
241
|
}
|
|
242
|
+
|
|
227
243
|
declare const CarouselWithCustomNav: React$1.FC<CarouselWithCustomNavProps>;
|
|
228
244
|
|
|
229
245
|
interface CardPromoLabels {
|
|
230
246
|
defaultImageAlt: string;
|
|
231
247
|
defaultButtonText: string;
|
|
248
|
+
promoAriaLabel: string;
|
|
249
|
+
promoAriaLabelSingle: string;
|
|
250
|
+
loadingContent: string;
|
|
232
251
|
}
|
|
233
252
|
interface CardPromoProps {
|
|
234
253
|
/**
|
|
@@ -354,6 +373,8 @@ interface CardTicketLabels {
|
|
|
354
373
|
facilitiesLabel: string;
|
|
355
374
|
selectTicketButton: string;
|
|
356
375
|
timezoneLabel: string;
|
|
376
|
+
currencySymbol: string;
|
|
377
|
+
logoAlt: string;
|
|
357
378
|
}
|
|
358
379
|
interface CardTicketProps {
|
|
359
380
|
/**
|
|
@@ -469,6 +490,7 @@ interface CardServiceMenuLabels {
|
|
|
469
490
|
hotelDescription: string;
|
|
470
491
|
otherLabel: string;
|
|
471
492
|
otherDescription: string;
|
|
493
|
+
serviceAriaLabel: string;
|
|
472
494
|
}
|
|
473
495
|
interface CardServiceMenuProps {
|
|
474
496
|
/**
|
|
@@ -529,12 +551,22 @@ interface CardTicketSearchLabels {
|
|
|
529
551
|
roundTripLabel: string;
|
|
530
552
|
searchButton: string;
|
|
531
553
|
placeholderPort: string;
|
|
554
|
+
ferryDescription: string;
|
|
555
|
+
ifcsDescription: string;
|
|
556
|
+
skptDescription: string;
|
|
557
|
+
hotelDescription: string;
|
|
558
|
+
otherDescription: string;
|
|
532
559
|
placeholderDestinationPort: string;
|
|
533
560
|
placeholderDepartureDate: string;
|
|
534
561
|
placeholderReturnDate: string;
|
|
535
562
|
placeholderTypeClass: string;
|
|
536
563
|
placeholderTypeService: string;
|
|
537
564
|
placeholderPassenger: string;
|
|
565
|
+
errorOriginRequired: string;
|
|
566
|
+
errorDestinationRequired: string;
|
|
567
|
+
errorDepartureDateRequired: string;
|
|
568
|
+
errorReturnDateRequired: string;
|
|
569
|
+
switchAriaLabel: string;
|
|
538
570
|
}
|
|
539
571
|
interface CardTicketSearchProps {
|
|
540
572
|
/**
|
|
@@ -626,6 +658,7 @@ interface CardTicketSearchSummaryLabels {
|
|
|
626
658
|
typeOfService: string;
|
|
627
659
|
totalPassengers: string;
|
|
628
660
|
changeSearchButton: string;
|
|
661
|
+
swapAriaLabel: string;
|
|
629
662
|
}
|
|
630
663
|
interface CardTicketSearchSummaryProps {
|
|
631
664
|
/**
|
|
@@ -775,6 +808,13 @@ interface InputDynamicLabels {
|
|
|
775
808
|
identityPlaceholder: string;
|
|
776
809
|
identityPhonePlaceholder: string;
|
|
777
810
|
identityIdPlaceholder: string;
|
|
811
|
+
showPasswordAriaLabel: string;
|
|
812
|
+
hidePasswordAriaLabel: string;
|
|
813
|
+
datePickerPlaceholder: string;
|
|
814
|
+
phoneDefaultPlaceholder: string;
|
|
815
|
+
requiredFieldError: string;
|
|
816
|
+
invalidEmailError: string;
|
|
817
|
+
emailOrPhoneRequiredError: string;
|
|
778
818
|
}
|
|
779
819
|
|
|
780
820
|
declare const InputDynamic: React$1.FC<InputDynamicProps>;
|
|
@@ -805,6 +845,7 @@ interface ModalSearchHarborLabels {
|
|
|
805
845
|
allHarborsHeader: string;
|
|
806
846
|
loadingData: string;
|
|
807
847
|
harborNotFound: string;
|
|
848
|
+
closeAriaLabel: string;
|
|
808
849
|
}
|
|
809
850
|
/**
|
|
810
851
|
* Props for ModalSearchHarbor component
|
|
@@ -924,6 +965,7 @@ interface ModalSelectDateLabels {
|
|
|
924
965
|
title: string;
|
|
925
966
|
oneWay: string;
|
|
926
967
|
roundTrip: string;
|
|
968
|
+
closeAriaLabel: string;
|
|
927
969
|
}
|
|
928
970
|
/**
|
|
929
971
|
* Props for ModalSelectDate component
|
|
@@ -1053,6 +1095,7 @@ interface ModalServiceLabels {
|
|
|
1053
1095
|
error: string;
|
|
1054
1096
|
selectAll: string;
|
|
1055
1097
|
saveButton: string;
|
|
1098
|
+
closeAriaLabel: string;
|
|
1056
1099
|
}
|
|
1057
1100
|
/**
|
|
1058
1101
|
* Props for ModalService component
|
|
@@ -1161,6 +1204,7 @@ interface ModalTotalPassengersLabels {
|
|
|
1161
1204
|
economy: string;
|
|
1162
1205
|
business: string;
|
|
1163
1206
|
executive: string;
|
|
1207
|
+
closeAriaLabel: string;
|
|
1164
1208
|
}
|
|
1165
1209
|
/**
|
|
1166
1210
|
* Passenger object structure
|
|
@@ -1314,6 +1358,7 @@ interface ModalTypeOfServiceLabels {
|
|
|
1314
1358
|
cancelButton: string;
|
|
1315
1359
|
saveButton: string;
|
|
1316
1360
|
vehiclesAlt: string;
|
|
1361
|
+
closeAriaLabel: string;
|
|
1317
1362
|
}
|
|
1318
1363
|
/**
|
|
1319
1364
|
* Props for ModalTypeOfService component
|
|
@@ -1416,7 +1461,27 @@ interface FilterCount {
|
|
|
1416
1461
|
priceRange?: number;
|
|
1417
1462
|
durationRange?: number;
|
|
1418
1463
|
}
|
|
1464
|
+
interface SortMenuLabels {
|
|
1465
|
+
filterButtonText: string;
|
|
1466
|
+
sortButtonText: string;
|
|
1467
|
+
clearFiltersText: string;
|
|
1468
|
+
recommendation: string;
|
|
1469
|
+
highestPrice: string;
|
|
1470
|
+
lowestPrice: string;
|
|
1471
|
+
earliestDeparture: string;
|
|
1472
|
+
latestDeparture: string;
|
|
1473
|
+
resetSortAriaLabel: string;
|
|
1474
|
+
}
|
|
1419
1475
|
interface SortMenuProps {
|
|
1476
|
+
/**
|
|
1477
|
+
* Language for labels (Indonesian or English)
|
|
1478
|
+
* @default 'id'
|
|
1479
|
+
*/
|
|
1480
|
+
language?: Language;
|
|
1481
|
+
/**
|
|
1482
|
+
* Custom labels override (optional)
|
|
1483
|
+
*/
|
|
1484
|
+
labels?: Partial<SortMenuLabels>;
|
|
1420
1485
|
/**
|
|
1421
1486
|
* Current sort value
|
|
1422
1487
|
*/
|
|
@@ -1446,26 +1511,35 @@ interface SortMenuProps {
|
|
|
1446
1511
|
/**
|
|
1447
1512
|
* Filter button text
|
|
1448
1513
|
* @default "Filter"
|
|
1514
|
+
* @deprecated Use labels
|
|
1449
1515
|
*/
|
|
1450
1516
|
filterButtonText?: string;
|
|
1451
1517
|
/**
|
|
1452
1518
|
* Sort button text
|
|
1453
1519
|
* @default "Urutkan Berdasarkan"
|
|
1520
|
+
* @deprecated Use labels
|
|
1454
1521
|
*/
|
|
1455
1522
|
sortButtonText?: string;
|
|
1456
1523
|
/**
|
|
1457
1524
|
* Clear filters button text template
|
|
1458
1525
|
* @default "{count} Filter Dipilih"
|
|
1526
|
+
* @deprecated Use labels
|
|
1459
1527
|
*/
|
|
1460
1528
|
clearFiltersText?: string;
|
|
1461
1529
|
}
|
|
1462
1530
|
|
|
1463
1531
|
declare const SortMenu: React$1.FC<SortMenuProps>;
|
|
1464
1532
|
|
|
1533
|
+
/**
|
|
1534
|
+
* @deprecated Use getSortOptions and find the label from there
|
|
1535
|
+
*/
|
|
1465
1536
|
declare const DEFAULT_SORT_OPTIONS: {
|
|
1466
1537
|
value: string;
|
|
1467
1538
|
label: string;
|
|
1468
1539
|
}[];
|
|
1540
|
+
/**
|
|
1541
|
+
* @deprecated Use labels directly
|
|
1542
|
+
*/
|
|
1469
1543
|
declare const getSortLabel: (value: string) => string;
|
|
1470
1544
|
|
|
1471
1545
|
interface ModalFilterTicketProps {
|
|
@@ -1580,6 +1654,9 @@ interface ModalFilterTicketLabels {
|
|
|
1580
1654
|
durationRangeText: (min: number, max: number) => string;
|
|
1581
1655
|
resetButton: string;
|
|
1582
1656
|
applyButton: string;
|
|
1657
|
+
hourUnit: string;
|
|
1658
|
+
currencySymbol: string;
|
|
1659
|
+
closeAriaLabel: string;
|
|
1583
1660
|
}
|
|
1584
1661
|
|
|
1585
1662
|
declare const ModalFilterTicket: React$1.FC<ModalFilterTicketProps>;
|
|
@@ -1625,6 +1702,11 @@ interface DateFilterProps {
|
|
|
1625
1702
|
* Currently selected date label
|
|
1626
1703
|
*/
|
|
1627
1704
|
selectedDate: string;
|
|
1705
|
+
/**
|
|
1706
|
+
* Language for localization
|
|
1707
|
+
* @default 'id'
|
|
1708
|
+
*/
|
|
1709
|
+
language?: Language;
|
|
1628
1710
|
/**
|
|
1629
1711
|
* Callback when a date is clicked
|
|
1630
1712
|
*/
|
|
@@ -1661,7 +1743,7 @@ interface DateFilterLabels {
|
|
|
1661
1743
|
|
|
1662
1744
|
declare const DateFilter: React$1.FC<DateFilterProps>;
|
|
1663
1745
|
|
|
1664
|
-
declare const DEFAULT_LABELS: DateFilterLabels
|
|
1746
|
+
declare const DEFAULT_LABELS: Record<Language, DateFilterLabels>;
|
|
1665
1747
|
declare const DEFAULT_SCROLL_AMOUNT = 150;
|
|
1666
1748
|
|
|
1667
1749
|
/**
|
|
@@ -1689,6 +1771,7 @@ interface ModalSearchTicketLabels {
|
|
|
1689
1771
|
passengerLabel: string;
|
|
1690
1772
|
passengerPlaceholder: string;
|
|
1691
1773
|
searchButton: string;
|
|
1774
|
+
closeAriaLabel: string;
|
|
1692
1775
|
}
|
|
1693
1776
|
/**
|
|
1694
1777
|
* Form data structure for search ticket modal
|
|
@@ -1984,6 +2067,13 @@ interface ModalListPassengerLabels {
|
|
|
1984
2067
|
searchPlaceholder: string;
|
|
1985
2068
|
addPassengerButton: string;
|
|
1986
2069
|
cancelButton: string;
|
|
2070
|
+
editPassengerAriaLabel: string;
|
|
2071
|
+
categories: {
|
|
2072
|
+
adult: string;
|
|
2073
|
+
child: string;
|
|
2074
|
+
infant: string;
|
|
2075
|
+
elderly: string;
|
|
2076
|
+
};
|
|
1987
2077
|
}
|
|
1988
2078
|
interface PassengerItem {
|
|
1989
2079
|
/**
|
|
@@ -2489,6 +2579,7 @@ interface CardVehicleOwnerFormLabels {
|
|
|
2489
2579
|
cargoReceiverCompanyPlaceholder: string;
|
|
2490
2580
|
cargoReceiverIndividualPlaceholder: string;
|
|
2491
2581
|
totalWeightLabel: string;
|
|
2582
|
+
commentLabel: string;
|
|
2492
2583
|
cargoListTitle: string;
|
|
2493
2584
|
cargoItemTitle: string;
|
|
2494
2585
|
commodityLabel: string;
|
|
@@ -2510,6 +2601,11 @@ interface CardVehicleOwnerFormLabels {
|
|
|
2510
2601
|
ton: string;
|
|
2511
2602
|
unit: string;
|
|
2512
2603
|
};
|
|
2604
|
+
pricePlaceholder: string;
|
|
2605
|
+
currencySymbol: string;
|
|
2606
|
+
deleteOwnerAriaLabel: string;
|
|
2607
|
+
decrementQuantityAriaLabel: string;
|
|
2608
|
+
incrementQuantityAriaLabel: string;
|
|
2513
2609
|
}
|
|
2514
2610
|
|
|
2515
2611
|
declare const CardVehicleOwnerForm: React$1.FC<CardVehicleOwnerFormProps>;
|
|
@@ -2526,6 +2622,7 @@ interface CardBookingTicketLabels {
|
|
|
2526
2622
|
viewBookingButton: string;
|
|
2527
2623
|
changePaymentButton: string;
|
|
2528
2624
|
timezoneLabel: string;
|
|
2625
|
+
currencySymbol: string;
|
|
2529
2626
|
}
|
|
2530
2627
|
interface CardBookingTicketProps {
|
|
2531
2628
|
/**
|
|
@@ -2676,6 +2773,7 @@ interface CardAddonLabels {
|
|
|
2676
2773
|
totalPrice: string;
|
|
2677
2774
|
passengerInsurance: string;
|
|
2678
2775
|
removeOrder: string;
|
|
2776
|
+
currencySymbol: string;
|
|
2679
2777
|
}
|
|
2680
2778
|
interface CardAddonProps {
|
|
2681
2779
|
/**
|
|
@@ -2737,6 +2835,9 @@ declare const CardAddon: React$1.FC<CardAddonProps>;
|
|
|
2737
2835
|
|
|
2738
2836
|
interface CardMealCatalogLabels {
|
|
2739
2837
|
addButton: string;
|
|
2838
|
+
currencySymbol: string;
|
|
2839
|
+
decrementAriaLabel: string;
|
|
2840
|
+
incrementAriaLabel: string;
|
|
2740
2841
|
}
|
|
2741
2842
|
interface MealItem {
|
|
2742
2843
|
id: number;
|
|
@@ -2810,6 +2911,7 @@ interface ReviewItem {
|
|
|
2810
2911
|
valueClassName?: string;
|
|
2811
2912
|
}
|
|
2812
2913
|
interface CardReviewLabels {
|
|
2914
|
+
defaultTitle: string;
|
|
2813
2915
|
}
|
|
2814
2916
|
interface CardReviewProps {
|
|
2815
2917
|
/**
|
|
@@ -2955,6 +3057,7 @@ interface PaymentMethodCategory {
|
|
|
2955
3057
|
options: PaymentOption[];
|
|
2956
3058
|
}
|
|
2957
3059
|
interface CardPaymentMethodListLabels {
|
|
3060
|
+
selectAriaLabel: string;
|
|
2958
3061
|
}
|
|
2959
3062
|
interface CardPaymentMethodListProps {
|
|
2960
3063
|
/**
|
|
@@ -3008,6 +3111,7 @@ interface CardPaymentInfoLabels {
|
|
|
3008
3111
|
totalPayment: string;
|
|
3009
3112
|
checkStatusInfo: string;
|
|
3010
3113
|
checkStatusButton: string;
|
|
3114
|
+
currencySymbol: string;
|
|
3011
3115
|
}
|
|
3012
3116
|
interface CardPaymentInfoProps {
|
|
3013
3117
|
/**
|
|
@@ -3042,6 +3146,7 @@ interface CardStatusOrderLabels {
|
|
|
3042
3146
|
defaultStatus: string;
|
|
3043
3147
|
defaultTitle: string;
|
|
3044
3148
|
defaultDescription: string;
|
|
3149
|
+
illustrationAlt: string;
|
|
3045
3150
|
}
|
|
3046
3151
|
interface CardStatusOrderProps {
|
|
3047
3152
|
/**
|
|
@@ -3088,6 +3193,7 @@ interface ModalPriceDetailLabels {
|
|
|
3088
3193
|
grandTotalLabel: string;
|
|
3089
3194
|
currencyPrefix: string;
|
|
3090
3195
|
currencyCode: string;
|
|
3196
|
+
closeAriaLabel: string;
|
|
3091
3197
|
}
|
|
3092
3198
|
interface PriceDetailItem {
|
|
3093
3199
|
key: string;
|