@asdp/ferryui 0.1.22-dev.8491 → 0.1.22-dev.8560
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 +562 -12
- package/dist/index.d.ts +562 -12
- package/dist/index.js +2809 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2796 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React$1, { ReactNode } from 'react';
|
|
2
2
|
import { CarouselAnnouncerFunction, DialogProps } from '@fluentui/react-components';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
-
import { FieldValues, Path } from 'react-hook-form';
|
|
4
|
+
import { FieldValues, Path, Control, UseFormWatch, UseFormSetValue, UseFormGetValues } from 'react-hook-form';
|
|
5
5
|
|
|
6
6
|
interface ModalIllustrationButton {
|
|
7
7
|
/**
|
|
@@ -1943,16 +1943,6 @@ interface PassengerListItem {
|
|
|
1943
1943
|
*/
|
|
1944
1944
|
serviceName?: string;
|
|
1945
1945
|
}
|
|
1946
|
-
interface BadgeConfig {
|
|
1947
|
-
/**
|
|
1948
|
-
* Badge background color
|
|
1949
|
-
*/
|
|
1950
|
-
color: string;
|
|
1951
|
-
/**
|
|
1952
|
-
* Path to badge icon
|
|
1953
|
-
*/
|
|
1954
|
-
icon: string;
|
|
1955
|
-
}
|
|
1956
1946
|
interface CardPassengerListProps {
|
|
1957
1947
|
/**
|
|
1958
1948
|
* Card title
|
|
@@ -1993,6 +1983,539 @@ interface CardPassengerListProps {
|
|
|
1993
1983
|
*/
|
|
1994
1984
|
declare const CardPassengerList: React$1.FC<CardPassengerListProps>;
|
|
1995
1985
|
|
|
1986
|
+
interface CardVehicleDetailProps {
|
|
1987
|
+
/**
|
|
1988
|
+
* Title of the vehicle service type
|
|
1989
|
+
*/
|
|
1990
|
+
serviceTitle: string;
|
|
1991
|
+
/**
|
|
1992
|
+
* Image URL for the vehicle service
|
|
1993
|
+
*/
|
|
1994
|
+
serviceImage: string;
|
|
1995
|
+
/**
|
|
1996
|
+
* React Hook Form control
|
|
1997
|
+
*/
|
|
1998
|
+
control: Control<any>;
|
|
1999
|
+
/**
|
|
2000
|
+
* Name of the form field for vehicle number
|
|
2001
|
+
* @default "vehicleNumber"
|
|
2002
|
+
*/
|
|
2003
|
+
vehicleNumberName?: string;
|
|
2004
|
+
/**
|
|
2005
|
+
* Whether to show the "Has Load" radio option
|
|
2006
|
+
* @default false
|
|
2007
|
+
*/
|
|
2008
|
+
showLoadOption?: boolean;
|
|
2009
|
+
/**
|
|
2010
|
+
* Current value of "Has Load" option
|
|
2011
|
+
*/
|
|
2012
|
+
hasLoad?: 'true' | 'false';
|
|
2013
|
+
/**
|
|
2014
|
+
* Callback when "Has Load" option changes
|
|
2015
|
+
*/
|
|
2016
|
+
onHasLoadChange?: (value: 'true' | 'false') => void;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
declare const CardVehicleDetail: React$1.FC<CardVehicleDetailProps>;
|
|
2020
|
+
|
|
2021
|
+
interface CargoItem {
|
|
2022
|
+
id: number;
|
|
2023
|
+
commodity?: string;
|
|
2024
|
+
cargoType?: string;
|
|
2025
|
+
quantity?: number | string;
|
|
2026
|
+
industryType?: string;
|
|
2027
|
+
cargoCategory?: string;
|
|
2028
|
+
}
|
|
2029
|
+
interface VehicleOwner {
|
|
2030
|
+
id: number;
|
|
2031
|
+
senderType?: 'Perusahaan' | 'Perseorangan';
|
|
2032
|
+
senderName?: string;
|
|
2033
|
+
estimatedWeight?: number | string;
|
|
2034
|
+
originCity?: string;
|
|
2035
|
+
destinationCity?: string;
|
|
2036
|
+
cargoOwnerType?: 'Perusahaan' | 'Perseorangan';
|
|
2037
|
+
cargoOwnerName?: string;
|
|
2038
|
+
logisticsCompanyType?: 'Perusahaan' | 'Perseorangan';
|
|
2039
|
+
logisticsCompanyName?: string;
|
|
2040
|
+
cargoReceiverType?: 'Perusahaan' | 'Perseorangan';
|
|
2041
|
+
cargoReceiverName?: string;
|
|
2042
|
+
cargoWeight?: number | string;
|
|
2043
|
+
cargoItems?: CargoItem[];
|
|
2044
|
+
price?: number;
|
|
2045
|
+
[key: string]: any;
|
|
2046
|
+
}
|
|
2047
|
+
interface CardVehicleOwnerFormProps {
|
|
2048
|
+
/**
|
|
2049
|
+
* List of owners to display
|
|
2050
|
+
*/
|
|
2051
|
+
owners: VehicleOwner[];
|
|
2052
|
+
/**
|
|
2053
|
+
* Whether the vehicle has load/cargo
|
|
2054
|
+
*/
|
|
2055
|
+
hasLoad: boolean;
|
|
2056
|
+
/**
|
|
2057
|
+
* React Hook Form control
|
|
2058
|
+
*/
|
|
2059
|
+
control: Control<any>;
|
|
2060
|
+
/**
|
|
2061
|
+
* React Hook Form watch function
|
|
2062
|
+
*/
|
|
2063
|
+
watch: UseFormWatch<any>;
|
|
2064
|
+
/**
|
|
2065
|
+
* React Hook Form setValue function
|
|
2066
|
+
*/
|
|
2067
|
+
setValue: UseFormSetValue<any>;
|
|
2068
|
+
/**
|
|
2069
|
+
* React Hook Form getValues function
|
|
2070
|
+
*/
|
|
2071
|
+
getValues: UseFormGetValues<any>;
|
|
2072
|
+
/**
|
|
2073
|
+
* Callback to add a new owner
|
|
2074
|
+
*/
|
|
2075
|
+
onAddOwner: () => void;
|
|
2076
|
+
/**
|
|
2077
|
+
* Callback to delete an owner
|
|
2078
|
+
*/
|
|
2079
|
+
onDeleteOwner: (id: number) => void;
|
|
2080
|
+
/**
|
|
2081
|
+
* Callback to update an owner's data
|
|
2082
|
+
*/
|
|
2083
|
+
onUpdateOwner: (id: number, data: Partial<VehicleOwner>) => void;
|
|
2084
|
+
/**
|
|
2085
|
+
* Callback to add a cargo item to an owner
|
|
2086
|
+
*/
|
|
2087
|
+
onAddCargo: (ownerId: number) => void;
|
|
2088
|
+
/**
|
|
2089
|
+
* Callback to delete a cargo item
|
|
2090
|
+
*/
|
|
2091
|
+
onDeleteCargo: (ownerId: number, cargoId: number) => void;
|
|
2092
|
+
/**
|
|
2093
|
+
* Callback to update cargo quantity
|
|
2094
|
+
*/
|
|
2095
|
+
onUpdateCargoQuantity: (ownerId: number, cargoId: number, quantity: number) => void;
|
|
2096
|
+
/**
|
|
2097
|
+
* Options for company select inputs
|
|
2098
|
+
*/
|
|
2099
|
+
companyOptions?: SelectOption[];
|
|
2100
|
+
/**
|
|
2101
|
+
* Options for city select inputs
|
|
2102
|
+
* @default [] */
|
|
2103
|
+
cityOptions?: SelectOption[];
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
declare const CardVehicleOwnerForm: React$1.FC<CardVehicleOwnerFormProps>;
|
|
2107
|
+
|
|
2108
|
+
type ReservationStep = 'manifest' | 'addon' | 'meals' | 'review' | 'payment' | 'eticket' | string;
|
|
2109
|
+
type PaymentStep = 'method' | 'pay' | string;
|
|
2110
|
+
interface CardBookingTicketProps {
|
|
2111
|
+
/**
|
|
2112
|
+
* Ship Name (e.g. KMP PORTLINK)
|
|
2113
|
+
*/
|
|
2114
|
+
shipName?: string;
|
|
2115
|
+
/**
|
|
2116
|
+
* Ship Type (e.g. Executive, Reguler)
|
|
2117
|
+
*/
|
|
2118
|
+
shipType?: string;
|
|
2119
|
+
/**
|
|
2120
|
+
* Badge color for ship type
|
|
2121
|
+
*/
|
|
2122
|
+
shipTypeColor?: 'brand' | 'danger' | 'important' | 'informative' | 'severe' | 'subtle' | 'success' | 'warning';
|
|
2123
|
+
/**
|
|
2124
|
+
* Departure Day (e.g. Kamis, 25 Sep)
|
|
2125
|
+
*/
|
|
2126
|
+
departureDay?: string;
|
|
2127
|
+
/**
|
|
2128
|
+
* Departure Time (e.g. 18:15)
|
|
2129
|
+
*/
|
|
2130
|
+
departureTime?: string;
|
|
2131
|
+
/**
|
|
2132
|
+
* Departure Location (e.g. Merak, Banten)
|
|
2133
|
+
*/
|
|
2134
|
+
departureLocation?: string;
|
|
2135
|
+
/**
|
|
2136
|
+
* Arrival Day (e.g. Jumat, 26 Sep)
|
|
2137
|
+
*/
|
|
2138
|
+
arrivalDay?: string;
|
|
2139
|
+
/**
|
|
2140
|
+
* Arrival Time (e.g. 19:25)
|
|
2141
|
+
*/
|
|
2142
|
+
arrivalTime?: string;
|
|
2143
|
+
/**
|
|
2144
|
+
* Arrival Location (e.g. Bakauheni, Lampung)
|
|
2145
|
+
*/
|
|
2146
|
+
arrivalLocation?: string;
|
|
2147
|
+
/**
|
|
2148
|
+
* Duration string (e.g. 1 jam 10 menit)
|
|
2149
|
+
*/
|
|
2150
|
+
duration?: string;
|
|
2151
|
+
/**
|
|
2152
|
+
* Total price formatted string (e.g. 50.000)
|
|
2153
|
+
*/
|
|
2154
|
+
totalPrice: string;
|
|
2155
|
+
/**
|
|
2156
|
+
* Current Reservation Step
|
|
2157
|
+
*/
|
|
2158
|
+
reservationStep: ReservationStep;
|
|
2159
|
+
/**
|
|
2160
|
+
* Current Payment Step
|
|
2161
|
+
*/
|
|
2162
|
+
paymentStep: PaymentStep;
|
|
2163
|
+
/**
|
|
2164
|
+
* Callback for price detail click
|
|
2165
|
+
*/
|
|
2166
|
+
onPriceDetailClick: () => void;
|
|
2167
|
+
/**
|
|
2168
|
+
* Callback for Next button (Lanjutkan / Lihat Pemesanan)
|
|
2169
|
+
*/
|
|
2170
|
+
onNext: () => void;
|
|
2171
|
+
/**
|
|
2172
|
+
* Callback for Previous button (Sebelumnya / Ubah Metode Pembayaran)
|
|
2173
|
+
*/
|
|
2174
|
+
onPrevious: () => void;
|
|
2175
|
+
/**
|
|
2176
|
+
* Whether to show or hide the card (though usually handled by parent)
|
|
2177
|
+
*/
|
|
2178
|
+
className?: string;
|
|
2179
|
+
}
|
|
2180
|
+
|
|
2181
|
+
declare const CardBookingTicket: React$1.FC<CardBookingTicketProps>;
|
|
2182
|
+
|
|
2183
|
+
interface CardFAQProps {
|
|
2184
|
+
/**
|
|
2185
|
+
* Optional class name for the container
|
|
2186
|
+
*/
|
|
2187
|
+
className?: string;
|
|
2188
|
+
}
|
|
2189
|
+
|
|
2190
|
+
declare const CardFAQ: React$1.FC<CardFAQProps>;
|
|
2191
|
+
|
|
2192
|
+
interface AddonFooterData {
|
|
2193
|
+
priceLabel: string;
|
|
2194
|
+
price: number;
|
|
2195
|
+
priceUnit?: string;
|
|
2196
|
+
actionLabel?: string;
|
|
2197
|
+
onActionClick?: () => void;
|
|
2198
|
+
actionType: 'detail-link' | 'primary-button';
|
|
2199
|
+
}
|
|
2200
|
+
interface AssuranceItem {
|
|
2201
|
+
label: string;
|
|
2202
|
+
priceDetails: string;
|
|
2203
|
+
totalPrice: number;
|
|
2204
|
+
}
|
|
2205
|
+
interface AssuranceData {
|
|
2206
|
+
totalPassenger: number;
|
|
2207
|
+
items: AssuranceItem[];
|
|
2208
|
+
totalPrice: number;
|
|
2209
|
+
}
|
|
2210
|
+
interface MealItem$1 {
|
|
2211
|
+
id: number;
|
|
2212
|
+
name: string;
|
|
2213
|
+
image: string;
|
|
2214
|
+
description: string;
|
|
2215
|
+
price: number;
|
|
2216
|
+
quantity: number;
|
|
2217
|
+
}
|
|
2218
|
+
interface MealData {
|
|
2219
|
+
items: MealItem$1[];
|
|
2220
|
+
onUpdateQuantity: (id: number, delta: number) => void;
|
|
2221
|
+
onDelete: (id: number) => void;
|
|
2222
|
+
}
|
|
2223
|
+
interface CardAddonProps {
|
|
2224
|
+
/**
|
|
2225
|
+
* Main title of the card header
|
|
2226
|
+
*/
|
|
2227
|
+
title: string;
|
|
2228
|
+
/**
|
|
2229
|
+
* Title of the content item
|
|
2230
|
+
*/
|
|
2231
|
+
itemTitle: string;
|
|
2232
|
+
/**
|
|
2233
|
+
* Subtitle of the content item
|
|
2234
|
+
*/
|
|
2235
|
+
itemSubtitle: string;
|
|
2236
|
+
/**
|
|
2237
|
+
* URL of the icon image
|
|
2238
|
+
*/
|
|
2239
|
+
iconUrl?: string;
|
|
2240
|
+
/**
|
|
2241
|
+
* Description text displayed below the item content
|
|
2242
|
+
*/
|
|
2243
|
+
description?: string;
|
|
2244
|
+
/**
|
|
2245
|
+
* Action element displayed on the right side of the item content (e.g. Switch)
|
|
2246
|
+
*/
|
|
2247
|
+
rightAction?: React$1.ReactNode;
|
|
2248
|
+
/**
|
|
2249
|
+
* Data driven footer configuration
|
|
2250
|
+
*/
|
|
2251
|
+
footerData?: AddonFooterData;
|
|
2252
|
+
/**
|
|
2253
|
+
* Data for Assurance breakdown view
|
|
2254
|
+
*/
|
|
2255
|
+
assuranceData?: AssuranceData;
|
|
2256
|
+
/**
|
|
2257
|
+
* Data for Meal list view
|
|
2258
|
+
*/
|
|
2259
|
+
mealData?: MealData;
|
|
2260
|
+
/**
|
|
2261
|
+
* Optional custom children (fallback)
|
|
2262
|
+
*/
|
|
2263
|
+
children?: React$1.ReactNode;
|
|
2264
|
+
/**
|
|
2265
|
+
* Optional class name
|
|
2266
|
+
*/
|
|
2267
|
+
className?: string;
|
|
2268
|
+
}
|
|
2269
|
+
|
|
2270
|
+
declare const CardAddon: React$1.FC<CardAddonProps>;
|
|
2271
|
+
|
|
2272
|
+
interface MealItem {
|
|
2273
|
+
id: number;
|
|
2274
|
+
name: string;
|
|
2275
|
+
description?: string;
|
|
2276
|
+
price: number;
|
|
2277
|
+
image: string;
|
|
2278
|
+
quantity: number;
|
|
2279
|
+
[key: string]: any;
|
|
2280
|
+
}
|
|
2281
|
+
interface MealCategory {
|
|
2282
|
+
category: string;
|
|
2283
|
+
list: MealItem[];
|
|
2284
|
+
}
|
|
2285
|
+
interface CardMealCatalogProps {
|
|
2286
|
+
/**
|
|
2287
|
+
* Configuration for the top banner
|
|
2288
|
+
*/
|
|
2289
|
+
banner: {
|
|
2290
|
+
imageUrl: string;
|
|
2291
|
+
title: string;
|
|
2292
|
+
subtitle: string;
|
|
2293
|
+
};
|
|
2294
|
+
/**
|
|
2295
|
+
* Text displayed in the disclaimer box
|
|
2296
|
+
*/
|
|
2297
|
+
disclaimerText: string;
|
|
2298
|
+
/**
|
|
2299
|
+
* List of meal categories and their items
|
|
2300
|
+
*/
|
|
2301
|
+
categories: MealCategory[];
|
|
2302
|
+
/**
|
|
2303
|
+
* Callback when "Tambah" button is clicked
|
|
2304
|
+
*/
|
|
2305
|
+
onAdd: (item: MealItem) => void;
|
|
2306
|
+
/**
|
|
2307
|
+
* Callback when quantity is updated (+ or -)
|
|
2308
|
+
*/
|
|
2309
|
+
onUpdateQuantity: (itemId: number, delta: number) => void;
|
|
2310
|
+
/**
|
|
2311
|
+
* Optional class name
|
|
2312
|
+
*/
|
|
2313
|
+
className?: string;
|
|
2314
|
+
}
|
|
2315
|
+
|
|
2316
|
+
declare const CardMealCatalog: React$1.FC<CardMealCatalogProps>;
|
|
2317
|
+
|
|
2318
|
+
interface ReviewItem {
|
|
2319
|
+
label: React$1.ReactNode;
|
|
2320
|
+
value: React$1.ReactNode;
|
|
2321
|
+
/**
|
|
2322
|
+
* Optional class name for the row container
|
|
2323
|
+
*/
|
|
2324
|
+
className?: string;
|
|
2325
|
+
/**
|
|
2326
|
+
* Optional class name for the label
|
|
2327
|
+
*/
|
|
2328
|
+
labelClassName?: string;
|
|
2329
|
+
/**
|
|
2330
|
+
* Optional class name for the value
|
|
2331
|
+
*/
|
|
2332
|
+
valueClassName?: string;
|
|
2333
|
+
}
|
|
2334
|
+
interface CardReviewProps {
|
|
2335
|
+
/**
|
|
2336
|
+
* Title of the section (e.g. "Detail Pemesan")
|
|
2337
|
+
*/
|
|
2338
|
+
title: string;
|
|
2339
|
+
/**
|
|
2340
|
+
* Optional items to display as list rows
|
|
2341
|
+
*/
|
|
2342
|
+
items?: ReviewItem[];
|
|
2343
|
+
/**
|
|
2344
|
+
* Custom children content (will be rendered after items if both exist)
|
|
2345
|
+
*/
|
|
2346
|
+
children?: React$1.ReactNode;
|
|
2347
|
+
/**
|
|
2348
|
+
* Optional class name for the card
|
|
2349
|
+
*/
|
|
2350
|
+
className?: string;
|
|
2351
|
+
/**
|
|
2352
|
+
* Optional action in the header (e.g. Ubah button) - though not present in current designs, good for extensibility
|
|
2353
|
+
*/
|
|
2354
|
+
headerAction?: React$1.ReactNode;
|
|
2355
|
+
}
|
|
2356
|
+
|
|
2357
|
+
declare const CardReview: React$1.FC<CardReviewProps>;
|
|
2358
|
+
|
|
2359
|
+
interface ReviewPassengerItem {
|
|
2360
|
+
id: string | number;
|
|
2361
|
+
name: string;
|
|
2362
|
+
identityNumber: string;
|
|
2363
|
+
ageLabel: string;
|
|
2364
|
+
ageValue: string;
|
|
2365
|
+
ticketClass: string;
|
|
2366
|
+
serviceClass?: string;
|
|
2367
|
+
}
|
|
2368
|
+
interface CardReviewPassengerProps {
|
|
2369
|
+
/**
|
|
2370
|
+
* Title of the card section, defaults to "Penumpang"
|
|
2371
|
+
*/
|
|
2372
|
+
title?: string;
|
|
2373
|
+
/**
|
|
2374
|
+
* List of passengers to display
|
|
2375
|
+
*/
|
|
2376
|
+
passengers: ReviewPassengerItem[];
|
|
2377
|
+
/**
|
|
2378
|
+
* Optional class name
|
|
2379
|
+
*/
|
|
2380
|
+
className?: string;
|
|
2381
|
+
}
|
|
2382
|
+
|
|
2383
|
+
declare const CardReviewPassenger: React$1.FC<CardReviewPassengerProps>;
|
|
2384
|
+
|
|
2385
|
+
interface PriceItem {
|
|
2386
|
+
name: string;
|
|
2387
|
+
price: number;
|
|
2388
|
+
/**
|
|
2389
|
+
* If true, the value will be displayed with a minus sign or specific style (e.g. discount)
|
|
2390
|
+
*/
|
|
2391
|
+
isRedeem?: boolean;
|
|
2392
|
+
/**
|
|
2393
|
+
* Variant for the text color
|
|
2394
|
+
*/
|
|
2395
|
+
variant?: 'default' | 'danger' | 'muted';
|
|
2396
|
+
/**
|
|
2397
|
+
* Optional description helper text (e.g. for tax explanation)
|
|
2398
|
+
*/
|
|
2399
|
+
description?: string;
|
|
2400
|
+
}
|
|
2401
|
+
interface PriceSection {
|
|
2402
|
+
category?: string;
|
|
2403
|
+
title?: string;
|
|
2404
|
+
detail: PriceItem[];
|
|
2405
|
+
}
|
|
2406
|
+
interface CardPriceDetailsProps {
|
|
2407
|
+
/**
|
|
2408
|
+
* Title of the card, defaults to "Rincian Harga"
|
|
2409
|
+
*/
|
|
2410
|
+
title?: string;
|
|
2411
|
+
/**
|
|
2412
|
+
* Sections of price details
|
|
2413
|
+
*/
|
|
2414
|
+
sections: PriceSection[];
|
|
2415
|
+
/**
|
|
2416
|
+
* Total payment details
|
|
2417
|
+
*/
|
|
2418
|
+
total: number;
|
|
2419
|
+
}
|
|
2420
|
+
|
|
2421
|
+
declare const CardPriceDetails: React$1.FC<CardPriceDetailsProps>;
|
|
2422
|
+
|
|
2423
|
+
interface PaymentOption {
|
|
2424
|
+
label: string;
|
|
2425
|
+
value: string;
|
|
2426
|
+
image: string;
|
|
2427
|
+
}
|
|
2428
|
+
interface PaymentMethodCategory {
|
|
2429
|
+
title: string;
|
|
2430
|
+
value: string;
|
|
2431
|
+
options: PaymentOption[];
|
|
2432
|
+
}
|
|
2433
|
+
interface CardPaymentMethodListProps {
|
|
2434
|
+
methods: PaymentMethodCategory[];
|
|
2435
|
+
selectedValue?: string;
|
|
2436
|
+
onSelect: (value: string) => void;
|
|
2437
|
+
}
|
|
2438
|
+
|
|
2439
|
+
declare const CardPaymentMethodList: React$1.FC<CardPaymentMethodListProps>;
|
|
2440
|
+
|
|
2441
|
+
interface PaymentGuideStep {
|
|
2442
|
+
title: string;
|
|
2443
|
+
value: string;
|
|
2444
|
+
steps: string[];
|
|
2445
|
+
}
|
|
2446
|
+
interface CardPaymentGuideProps {
|
|
2447
|
+
title?: string;
|
|
2448
|
+
guides: PaymentGuideStep[];
|
|
2449
|
+
className?: string;
|
|
2450
|
+
}
|
|
2451
|
+
|
|
2452
|
+
declare const CardPaymentGuide: React$1.FC<CardPaymentGuideProps>;
|
|
2453
|
+
|
|
2454
|
+
interface BankInfo {
|
|
2455
|
+
name: string;
|
|
2456
|
+
icon: string;
|
|
2457
|
+
}
|
|
2458
|
+
interface CardPaymentInfoProps {
|
|
2459
|
+
expiryDate: string;
|
|
2460
|
+
bank: BankInfo;
|
|
2461
|
+
virtualAccount: string;
|
|
2462
|
+
totalAmount: number;
|
|
2463
|
+
guides: PaymentGuideStep[];
|
|
2464
|
+
onCopyVA?: () => void;
|
|
2465
|
+
onCheckStatus?: () => void;
|
|
2466
|
+
}
|
|
2467
|
+
|
|
2468
|
+
declare const CardPaymentInfo: React$1.FC<CardPaymentInfoProps>;
|
|
2469
|
+
|
|
2470
|
+
interface CardStatusOrderProps {
|
|
2471
|
+
bookingCode: string;
|
|
2472
|
+
departureDate: string;
|
|
2473
|
+
departureTime: string;
|
|
2474
|
+
arrivalDate: string;
|
|
2475
|
+
arrivalTime: string;
|
|
2476
|
+
origin: string;
|
|
2477
|
+
destination: string;
|
|
2478
|
+
duration?: string;
|
|
2479
|
+
vehicleClass: string;
|
|
2480
|
+
serviceType: string;
|
|
2481
|
+
vehicleNumber?: string;
|
|
2482
|
+
shipType?: string;
|
|
2483
|
+
statusLabel?: string;
|
|
2484
|
+
statusIcon?: JSX.Element;
|
|
2485
|
+
statusColor?: 'success' | 'danger' | 'warning' | 'brand' | 'important' | 'informative' | 'severe' | 'subtle';
|
|
2486
|
+
illustrationUrl?: string;
|
|
2487
|
+
title?: string;
|
|
2488
|
+
description?: string;
|
|
2489
|
+
onClickViewTicket?: () => void;
|
|
2490
|
+
isLoading?: boolean;
|
|
2491
|
+
className?: string;
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
declare const CardStatusOrder: React$1.FC<CardStatusOrderProps>;
|
|
2495
|
+
|
|
2496
|
+
interface PriceDetailItem {
|
|
2497
|
+
key: string;
|
|
2498
|
+
label: string | React.ReactNode;
|
|
2499
|
+
price: number;
|
|
2500
|
+
badge?: string;
|
|
2501
|
+
list?: PriceDetailItem[];
|
|
2502
|
+
}
|
|
2503
|
+
interface ModalPriceDetailProps {
|
|
2504
|
+
isOpen: boolean;
|
|
2505
|
+
onOpenChange: (open: boolean) => void;
|
|
2506
|
+
detailItems: PriceDetailItem[];
|
|
2507
|
+
addonItems: PriceDetailItem[];
|
|
2508
|
+
subTotal: number;
|
|
2509
|
+
taxAmount: number;
|
|
2510
|
+
grandTotal: number;
|
|
2511
|
+
}
|
|
2512
|
+
|
|
2513
|
+
declare const ModalPriceDetail: React$1.FC<ModalPriceDetailProps>;
|
|
2514
|
+
|
|
2515
|
+
interface BadgeConfig {
|
|
2516
|
+
color: string;
|
|
2517
|
+
icon?: string;
|
|
2518
|
+
}
|
|
1996
2519
|
/**
|
|
1997
2520
|
* Get badge configuration based on ticket class
|
|
1998
2521
|
* @param ticketClass - The ticket class (ECONOMY, BUSINESS, EXECUTIVE)
|
|
@@ -2000,4 +2523,31 @@ declare const CardPassengerList: React$1.FC<CardPassengerListProps>;
|
|
|
2000
2523
|
*/
|
|
2001
2524
|
declare const getBadgeConfig: (ticketClass?: string) => BadgeConfig;
|
|
2002
2525
|
|
|
2003
|
-
|
|
2526
|
+
interface ProfileMenuTab {
|
|
2527
|
+
label: string;
|
|
2528
|
+
value: string;
|
|
2529
|
+
icon: string;
|
|
2530
|
+
href?: string;
|
|
2531
|
+
}
|
|
2532
|
+
interface ProfileMenuSection {
|
|
2533
|
+
sectionLabel: string;
|
|
2534
|
+
tabs: ProfileMenuTab[];
|
|
2535
|
+
}
|
|
2536
|
+
interface CardProfileMenuProps {
|
|
2537
|
+
/**
|
|
2538
|
+
* List of menu sections with tabs
|
|
2539
|
+
*/
|
|
2540
|
+
sections: ProfileMenuSection[];
|
|
2541
|
+
/**
|
|
2542
|
+
* Currently selected tab value
|
|
2543
|
+
*/
|
|
2544
|
+
selectedValue?: string;
|
|
2545
|
+
/**
|
|
2546
|
+
* Callback when a tab is selected
|
|
2547
|
+
*/
|
|
2548
|
+
onTabSelect: (value: string) => void;
|
|
2549
|
+
}
|
|
2550
|
+
|
|
2551
|
+
declare const CardProfileMenu: React$1.FC<CardProfileMenuProps>;
|
|
2552
|
+
|
|
2553
|
+
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, 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 OrdererInfo, type Passenger, type PassengerFormData, type PassengerListItem, type PassengerService, type PassengerServiceCode, type PassengerType, type PaymentStep, type PriceDetailItem, type ProfileMenuSection, type ProfileMenuTab, type RadioOption, type ReservationStep, 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 };
|