@asdp/ferryui 0.1.22-dev.8649 → 0.1.22-dev.8653
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 +64 -1
- package/dist/index.d.ts +64 -1
- package/dist/index.js +616 -320
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +613 -317
- 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,6 +239,7 @@ 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 {
|
|
@@ -354,6 +370,7 @@ interface CardTicketLabels {
|
|
|
354
370
|
facilitiesLabel: string;
|
|
355
371
|
selectTicketButton: string;
|
|
356
372
|
timezoneLabel: string;
|
|
373
|
+
currencySymbol: string;
|
|
357
374
|
}
|
|
358
375
|
interface CardTicketProps {
|
|
359
376
|
/**
|
|
@@ -535,6 +552,10 @@ interface CardTicketSearchLabels {
|
|
|
535
552
|
placeholderTypeClass: string;
|
|
536
553
|
placeholderTypeService: string;
|
|
537
554
|
placeholderPassenger: string;
|
|
555
|
+
errorOriginRequired: string;
|
|
556
|
+
errorDestinationRequired: string;
|
|
557
|
+
errorDepartureDateRequired: string;
|
|
558
|
+
errorReturnDateRequired: string;
|
|
538
559
|
}
|
|
539
560
|
interface CardTicketSearchProps {
|
|
540
561
|
/**
|
|
@@ -1416,7 +1437,26 @@ interface FilterCount {
|
|
|
1416
1437
|
priceRange?: number;
|
|
1417
1438
|
durationRange?: number;
|
|
1418
1439
|
}
|
|
1440
|
+
interface SortMenuLabels {
|
|
1441
|
+
filterButtonText: string;
|
|
1442
|
+
sortButtonText: string;
|
|
1443
|
+
clearFiltersText: string;
|
|
1444
|
+
recommendation: string;
|
|
1445
|
+
highestPrice: string;
|
|
1446
|
+
lowestPrice: string;
|
|
1447
|
+
earliestDeparture: string;
|
|
1448
|
+
latestDeparture: string;
|
|
1449
|
+
}
|
|
1419
1450
|
interface SortMenuProps {
|
|
1451
|
+
/**
|
|
1452
|
+
* Language for labels (Indonesian or English)
|
|
1453
|
+
* @default 'id'
|
|
1454
|
+
*/
|
|
1455
|
+
language?: Language;
|
|
1456
|
+
/**
|
|
1457
|
+
* Custom labels override (optional)
|
|
1458
|
+
*/
|
|
1459
|
+
labels?: Partial<SortMenuLabels>;
|
|
1420
1460
|
/**
|
|
1421
1461
|
* Current sort value
|
|
1422
1462
|
*/
|
|
@@ -1446,26 +1486,35 @@ interface SortMenuProps {
|
|
|
1446
1486
|
/**
|
|
1447
1487
|
* Filter button text
|
|
1448
1488
|
* @default "Filter"
|
|
1489
|
+
* @deprecated Use labels
|
|
1449
1490
|
*/
|
|
1450
1491
|
filterButtonText?: string;
|
|
1451
1492
|
/**
|
|
1452
1493
|
* Sort button text
|
|
1453
1494
|
* @default "Urutkan Berdasarkan"
|
|
1495
|
+
* @deprecated Use labels
|
|
1454
1496
|
*/
|
|
1455
1497
|
sortButtonText?: string;
|
|
1456
1498
|
/**
|
|
1457
1499
|
* Clear filters button text template
|
|
1458
1500
|
* @default "{count} Filter Dipilih"
|
|
1501
|
+
* @deprecated Use labels
|
|
1459
1502
|
*/
|
|
1460
1503
|
clearFiltersText?: string;
|
|
1461
1504
|
}
|
|
1462
1505
|
|
|
1463
1506
|
declare const SortMenu: React$1.FC<SortMenuProps>;
|
|
1464
1507
|
|
|
1508
|
+
/**
|
|
1509
|
+
* @deprecated Use getSortOptions and find the label from there
|
|
1510
|
+
*/
|
|
1465
1511
|
declare const DEFAULT_SORT_OPTIONS: {
|
|
1466
1512
|
value: string;
|
|
1467
1513
|
label: string;
|
|
1468
1514
|
}[];
|
|
1515
|
+
/**
|
|
1516
|
+
* @deprecated Use labels directly
|
|
1517
|
+
*/
|
|
1469
1518
|
declare const getSortLabel: (value: string) => string;
|
|
1470
1519
|
|
|
1471
1520
|
interface ModalFilterTicketProps {
|
|
@@ -1580,6 +1629,8 @@ interface ModalFilterTicketLabels {
|
|
|
1580
1629
|
durationRangeText: (min: number, max: number) => string;
|
|
1581
1630
|
resetButton: string;
|
|
1582
1631
|
applyButton: string;
|
|
1632
|
+
hourUnit: string;
|
|
1633
|
+
currencySymbol: string;
|
|
1583
1634
|
}
|
|
1584
1635
|
|
|
1585
1636
|
declare const ModalFilterTicket: React$1.FC<ModalFilterTicketProps>;
|
|
@@ -1625,6 +1676,11 @@ interface DateFilterProps {
|
|
|
1625
1676
|
* Currently selected date label
|
|
1626
1677
|
*/
|
|
1627
1678
|
selectedDate: string;
|
|
1679
|
+
/**
|
|
1680
|
+
* Language for localization
|
|
1681
|
+
* @default 'id'
|
|
1682
|
+
*/
|
|
1683
|
+
language?: Language;
|
|
1628
1684
|
/**
|
|
1629
1685
|
* Callback when a date is clicked
|
|
1630
1686
|
*/
|
|
@@ -1661,7 +1717,7 @@ interface DateFilterLabels {
|
|
|
1661
1717
|
|
|
1662
1718
|
declare const DateFilter: React$1.FC<DateFilterProps>;
|
|
1663
1719
|
|
|
1664
|
-
declare const DEFAULT_LABELS: DateFilterLabels
|
|
1720
|
+
declare const DEFAULT_LABELS: Record<Language, DateFilterLabels>;
|
|
1665
1721
|
declare const DEFAULT_SCROLL_AMOUNT = 150;
|
|
1666
1722
|
|
|
1667
1723
|
/**
|
|
@@ -2489,6 +2545,7 @@ interface CardVehicleOwnerFormLabels {
|
|
|
2489
2545
|
cargoReceiverCompanyPlaceholder: string;
|
|
2490
2546
|
cargoReceiverIndividualPlaceholder: string;
|
|
2491
2547
|
totalWeightLabel: string;
|
|
2548
|
+
commentLabel: string;
|
|
2492
2549
|
cargoListTitle: string;
|
|
2493
2550
|
cargoItemTitle: string;
|
|
2494
2551
|
commodityLabel: string;
|
|
@@ -2510,6 +2567,8 @@ interface CardVehicleOwnerFormLabels {
|
|
|
2510
2567
|
ton: string;
|
|
2511
2568
|
unit: string;
|
|
2512
2569
|
};
|
|
2570
|
+
pricePlaceholder: string;
|
|
2571
|
+
currencySymbol: string;
|
|
2513
2572
|
}
|
|
2514
2573
|
|
|
2515
2574
|
declare const CardVehicleOwnerForm: React$1.FC<CardVehicleOwnerFormProps>;
|
|
@@ -2526,6 +2585,7 @@ interface CardBookingTicketLabels {
|
|
|
2526
2585
|
viewBookingButton: string;
|
|
2527
2586
|
changePaymentButton: string;
|
|
2528
2587
|
timezoneLabel: string;
|
|
2588
|
+
currencySymbol: string;
|
|
2529
2589
|
}
|
|
2530
2590
|
interface CardBookingTicketProps {
|
|
2531
2591
|
/**
|
|
@@ -2676,6 +2736,7 @@ interface CardAddonLabels {
|
|
|
2676
2736
|
totalPrice: string;
|
|
2677
2737
|
passengerInsurance: string;
|
|
2678
2738
|
removeOrder: string;
|
|
2739
|
+
currencySymbol: string;
|
|
2679
2740
|
}
|
|
2680
2741
|
interface CardAddonProps {
|
|
2681
2742
|
/**
|
|
@@ -2737,6 +2798,7 @@ declare const CardAddon: React$1.FC<CardAddonProps>;
|
|
|
2737
2798
|
|
|
2738
2799
|
interface CardMealCatalogLabels {
|
|
2739
2800
|
addButton: string;
|
|
2801
|
+
currencySymbol: string;
|
|
2740
2802
|
}
|
|
2741
2803
|
interface MealItem {
|
|
2742
2804
|
id: number;
|
|
@@ -3008,6 +3070,7 @@ interface CardPaymentInfoLabels {
|
|
|
3008
3070
|
totalPayment: string;
|
|
3009
3071
|
checkStatusInfo: string;
|
|
3010
3072
|
checkStatusButton: string;
|
|
3073
|
+
currencySymbol: string;
|
|
3011
3074
|
}
|
|
3012
3075
|
interface CardPaymentInfoProps {
|
|
3013
3076
|
/**
|
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,6 +239,7 @@ 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 {
|
|
@@ -354,6 +370,7 @@ interface CardTicketLabels {
|
|
|
354
370
|
facilitiesLabel: string;
|
|
355
371
|
selectTicketButton: string;
|
|
356
372
|
timezoneLabel: string;
|
|
373
|
+
currencySymbol: string;
|
|
357
374
|
}
|
|
358
375
|
interface CardTicketProps {
|
|
359
376
|
/**
|
|
@@ -535,6 +552,10 @@ interface CardTicketSearchLabels {
|
|
|
535
552
|
placeholderTypeClass: string;
|
|
536
553
|
placeholderTypeService: string;
|
|
537
554
|
placeholderPassenger: string;
|
|
555
|
+
errorOriginRequired: string;
|
|
556
|
+
errorDestinationRequired: string;
|
|
557
|
+
errorDepartureDateRequired: string;
|
|
558
|
+
errorReturnDateRequired: string;
|
|
538
559
|
}
|
|
539
560
|
interface CardTicketSearchProps {
|
|
540
561
|
/**
|
|
@@ -1416,7 +1437,26 @@ interface FilterCount {
|
|
|
1416
1437
|
priceRange?: number;
|
|
1417
1438
|
durationRange?: number;
|
|
1418
1439
|
}
|
|
1440
|
+
interface SortMenuLabels {
|
|
1441
|
+
filterButtonText: string;
|
|
1442
|
+
sortButtonText: string;
|
|
1443
|
+
clearFiltersText: string;
|
|
1444
|
+
recommendation: string;
|
|
1445
|
+
highestPrice: string;
|
|
1446
|
+
lowestPrice: string;
|
|
1447
|
+
earliestDeparture: string;
|
|
1448
|
+
latestDeparture: string;
|
|
1449
|
+
}
|
|
1419
1450
|
interface SortMenuProps {
|
|
1451
|
+
/**
|
|
1452
|
+
* Language for labels (Indonesian or English)
|
|
1453
|
+
* @default 'id'
|
|
1454
|
+
*/
|
|
1455
|
+
language?: Language;
|
|
1456
|
+
/**
|
|
1457
|
+
* Custom labels override (optional)
|
|
1458
|
+
*/
|
|
1459
|
+
labels?: Partial<SortMenuLabels>;
|
|
1420
1460
|
/**
|
|
1421
1461
|
* Current sort value
|
|
1422
1462
|
*/
|
|
@@ -1446,26 +1486,35 @@ interface SortMenuProps {
|
|
|
1446
1486
|
/**
|
|
1447
1487
|
* Filter button text
|
|
1448
1488
|
* @default "Filter"
|
|
1489
|
+
* @deprecated Use labels
|
|
1449
1490
|
*/
|
|
1450
1491
|
filterButtonText?: string;
|
|
1451
1492
|
/**
|
|
1452
1493
|
* Sort button text
|
|
1453
1494
|
* @default "Urutkan Berdasarkan"
|
|
1495
|
+
* @deprecated Use labels
|
|
1454
1496
|
*/
|
|
1455
1497
|
sortButtonText?: string;
|
|
1456
1498
|
/**
|
|
1457
1499
|
* Clear filters button text template
|
|
1458
1500
|
* @default "{count} Filter Dipilih"
|
|
1501
|
+
* @deprecated Use labels
|
|
1459
1502
|
*/
|
|
1460
1503
|
clearFiltersText?: string;
|
|
1461
1504
|
}
|
|
1462
1505
|
|
|
1463
1506
|
declare const SortMenu: React$1.FC<SortMenuProps>;
|
|
1464
1507
|
|
|
1508
|
+
/**
|
|
1509
|
+
* @deprecated Use getSortOptions and find the label from there
|
|
1510
|
+
*/
|
|
1465
1511
|
declare const DEFAULT_SORT_OPTIONS: {
|
|
1466
1512
|
value: string;
|
|
1467
1513
|
label: string;
|
|
1468
1514
|
}[];
|
|
1515
|
+
/**
|
|
1516
|
+
* @deprecated Use labels directly
|
|
1517
|
+
*/
|
|
1469
1518
|
declare const getSortLabel: (value: string) => string;
|
|
1470
1519
|
|
|
1471
1520
|
interface ModalFilterTicketProps {
|
|
@@ -1580,6 +1629,8 @@ interface ModalFilterTicketLabels {
|
|
|
1580
1629
|
durationRangeText: (min: number, max: number) => string;
|
|
1581
1630
|
resetButton: string;
|
|
1582
1631
|
applyButton: string;
|
|
1632
|
+
hourUnit: string;
|
|
1633
|
+
currencySymbol: string;
|
|
1583
1634
|
}
|
|
1584
1635
|
|
|
1585
1636
|
declare const ModalFilterTicket: React$1.FC<ModalFilterTicketProps>;
|
|
@@ -1625,6 +1676,11 @@ interface DateFilterProps {
|
|
|
1625
1676
|
* Currently selected date label
|
|
1626
1677
|
*/
|
|
1627
1678
|
selectedDate: string;
|
|
1679
|
+
/**
|
|
1680
|
+
* Language for localization
|
|
1681
|
+
* @default 'id'
|
|
1682
|
+
*/
|
|
1683
|
+
language?: Language;
|
|
1628
1684
|
/**
|
|
1629
1685
|
* Callback when a date is clicked
|
|
1630
1686
|
*/
|
|
@@ -1661,7 +1717,7 @@ interface DateFilterLabels {
|
|
|
1661
1717
|
|
|
1662
1718
|
declare const DateFilter: React$1.FC<DateFilterProps>;
|
|
1663
1719
|
|
|
1664
|
-
declare const DEFAULT_LABELS: DateFilterLabels
|
|
1720
|
+
declare const DEFAULT_LABELS: Record<Language, DateFilterLabels>;
|
|
1665
1721
|
declare const DEFAULT_SCROLL_AMOUNT = 150;
|
|
1666
1722
|
|
|
1667
1723
|
/**
|
|
@@ -2489,6 +2545,7 @@ interface CardVehicleOwnerFormLabels {
|
|
|
2489
2545
|
cargoReceiverCompanyPlaceholder: string;
|
|
2490
2546
|
cargoReceiverIndividualPlaceholder: string;
|
|
2491
2547
|
totalWeightLabel: string;
|
|
2548
|
+
commentLabel: string;
|
|
2492
2549
|
cargoListTitle: string;
|
|
2493
2550
|
cargoItemTitle: string;
|
|
2494
2551
|
commodityLabel: string;
|
|
@@ -2510,6 +2567,8 @@ interface CardVehicleOwnerFormLabels {
|
|
|
2510
2567
|
ton: string;
|
|
2511
2568
|
unit: string;
|
|
2512
2569
|
};
|
|
2570
|
+
pricePlaceholder: string;
|
|
2571
|
+
currencySymbol: string;
|
|
2513
2572
|
}
|
|
2514
2573
|
|
|
2515
2574
|
declare const CardVehicleOwnerForm: React$1.FC<CardVehicleOwnerFormProps>;
|
|
@@ -2526,6 +2585,7 @@ interface CardBookingTicketLabels {
|
|
|
2526
2585
|
viewBookingButton: string;
|
|
2527
2586
|
changePaymentButton: string;
|
|
2528
2587
|
timezoneLabel: string;
|
|
2588
|
+
currencySymbol: string;
|
|
2529
2589
|
}
|
|
2530
2590
|
interface CardBookingTicketProps {
|
|
2531
2591
|
/**
|
|
@@ -2676,6 +2736,7 @@ interface CardAddonLabels {
|
|
|
2676
2736
|
totalPrice: string;
|
|
2677
2737
|
passengerInsurance: string;
|
|
2678
2738
|
removeOrder: string;
|
|
2739
|
+
currencySymbol: string;
|
|
2679
2740
|
}
|
|
2680
2741
|
interface CardAddonProps {
|
|
2681
2742
|
/**
|
|
@@ -2737,6 +2798,7 @@ declare const CardAddon: React$1.FC<CardAddonProps>;
|
|
|
2737
2798
|
|
|
2738
2799
|
interface CardMealCatalogLabels {
|
|
2739
2800
|
addButton: string;
|
|
2801
|
+
currencySymbol: string;
|
|
2740
2802
|
}
|
|
2741
2803
|
interface MealItem {
|
|
2742
2804
|
id: number;
|
|
@@ -3008,6 +3070,7 @@ interface CardPaymentInfoLabels {
|
|
|
3008
3070
|
totalPayment: string;
|
|
3009
3071
|
checkStatusInfo: string;
|
|
3010
3072
|
checkStatusButton: string;
|
|
3073
|
+
currencySymbol: string;
|
|
3011
3074
|
}
|
|
3012
3075
|
interface CardPaymentInfoProps {
|
|
3013
3076
|
/**
|