@asdp/ferryui 0.1.22-dev.8893 → 0.1.22-dev.8898
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 +29 -23
- package/dist/index.d.ts +29 -23
- package/dist/index.js +817 -174
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +817 -174
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -2
package/dist/index.d.mts
CHANGED
|
@@ -2205,6 +2205,13 @@ interface ModalListPassengerProps {
|
|
|
2205
2205
|
*/
|
|
2206
2206
|
declare const ModalListPassenger: React$1.FC<ModalListPassengerProps>;
|
|
2207
2207
|
|
|
2208
|
+
interface ScannedData {
|
|
2209
|
+
title?: string;
|
|
2210
|
+
name?: string;
|
|
2211
|
+
idNumber?: string;
|
|
2212
|
+
city?: string;
|
|
2213
|
+
age?: number;
|
|
2214
|
+
}
|
|
2208
2215
|
interface ModalPassengerFormLabels {
|
|
2209
2216
|
title: string;
|
|
2210
2217
|
titleLabel: string;
|
|
@@ -2228,6 +2235,23 @@ interface ModalPassengerFormLabels {
|
|
|
2228
2235
|
idTypeOtherPlaceholder: string;
|
|
2229
2236
|
countryLabel: string;
|
|
2230
2237
|
countryPlaceholder: string;
|
|
2238
|
+
autofill: string;
|
|
2239
|
+
selectIdTypeTitle: string;
|
|
2240
|
+
scanIdentityTitle: string;
|
|
2241
|
+
scanInstructions1: string;
|
|
2242
|
+
scanInstructions2: string;
|
|
2243
|
+
readingData: string;
|
|
2244
|
+
nameRead: string;
|
|
2245
|
+
idNumberRead: string;
|
|
2246
|
+
cityRead: string;
|
|
2247
|
+
scanUnreadable: string;
|
|
2248
|
+
photoNotClear: string;
|
|
2249
|
+
retakeAdvice: string;
|
|
2250
|
+
retakeButton: string;
|
|
2251
|
+
manualInputButton: string;
|
|
2252
|
+
cancelScanButton: string;
|
|
2253
|
+
savePhotoButton: string;
|
|
2254
|
+
cameraPermissionError: string;
|
|
2231
2255
|
errors: {
|
|
2232
2256
|
requiredTitle: string;
|
|
2233
2257
|
requiredName: string;
|
|
@@ -2341,31 +2365,13 @@ interface ModalPassengerFormProps {
|
|
|
2341
2365
|
* Custom labels override
|
|
2342
2366
|
*/
|
|
2343
2367
|
labels?: Partial<ModalPassengerFormLabels>;
|
|
2368
|
+
/**
|
|
2369
|
+
* Callback when scan identity completes successfully
|
|
2370
|
+
* Receives the scanned data for external processing
|
|
2371
|
+
*/
|
|
2372
|
+
onScanComplete?: (data: ScannedData) => void;
|
|
2344
2373
|
}
|
|
2345
2374
|
|
|
2346
|
-
/**
|
|
2347
|
-
* ModalPassengerForm - A reusable modal component for adding/editing passenger details
|
|
2348
|
-
*
|
|
2349
|
-
* This component provides a form interface for passenger information with features like:
|
|
2350
|
-
* - Different fields for adult vs child/infant passengers
|
|
2351
|
-
* - Form validation
|
|
2352
|
-
* - Support for add and edit modes
|
|
2353
|
-
*
|
|
2354
|
-
* @example
|
|
2355
|
-
* ```tsx
|
|
2356
|
-
* <ModalPassengerForm
|
|
2357
|
-
* open={isOpen}
|
|
2358
|
-
* onClose={() => setIsOpen(false)}
|
|
2359
|
-
* onSubmit={handleSubmit}
|
|
2360
|
-
* defaultValues={passengerData}
|
|
2361
|
-
* isAdultForm={true}
|
|
2362
|
-
* titleOptions={titleOpts}
|
|
2363
|
-
* idTypeOptions={idTypeOpts}
|
|
2364
|
-
* cityOptions={cityOpts}
|
|
2365
|
-
* ticketClassOptions={ticketClassOpts}
|
|
2366
|
-
* />
|
|
2367
|
-
* ```
|
|
2368
|
-
*/
|
|
2369
2375
|
declare const ModalPassengerForm: React$1.FC<ModalPassengerFormProps>;
|
|
2370
2376
|
|
|
2371
2377
|
interface PassengerListItem {
|
package/dist/index.d.ts
CHANGED
|
@@ -2205,6 +2205,13 @@ interface ModalListPassengerProps {
|
|
|
2205
2205
|
*/
|
|
2206
2206
|
declare const ModalListPassenger: React$1.FC<ModalListPassengerProps>;
|
|
2207
2207
|
|
|
2208
|
+
interface ScannedData {
|
|
2209
|
+
title?: string;
|
|
2210
|
+
name?: string;
|
|
2211
|
+
idNumber?: string;
|
|
2212
|
+
city?: string;
|
|
2213
|
+
age?: number;
|
|
2214
|
+
}
|
|
2208
2215
|
interface ModalPassengerFormLabels {
|
|
2209
2216
|
title: string;
|
|
2210
2217
|
titleLabel: string;
|
|
@@ -2228,6 +2235,23 @@ interface ModalPassengerFormLabels {
|
|
|
2228
2235
|
idTypeOtherPlaceholder: string;
|
|
2229
2236
|
countryLabel: string;
|
|
2230
2237
|
countryPlaceholder: string;
|
|
2238
|
+
autofill: string;
|
|
2239
|
+
selectIdTypeTitle: string;
|
|
2240
|
+
scanIdentityTitle: string;
|
|
2241
|
+
scanInstructions1: string;
|
|
2242
|
+
scanInstructions2: string;
|
|
2243
|
+
readingData: string;
|
|
2244
|
+
nameRead: string;
|
|
2245
|
+
idNumberRead: string;
|
|
2246
|
+
cityRead: string;
|
|
2247
|
+
scanUnreadable: string;
|
|
2248
|
+
photoNotClear: string;
|
|
2249
|
+
retakeAdvice: string;
|
|
2250
|
+
retakeButton: string;
|
|
2251
|
+
manualInputButton: string;
|
|
2252
|
+
cancelScanButton: string;
|
|
2253
|
+
savePhotoButton: string;
|
|
2254
|
+
cameraPermissionError: string;
|
|
2231
2255
|
errors: {
|
|
2232
2256
|
requiredTitle: string;
|
|
2233
2257
|
requiredName: string;
|
|
@@ -2341,31 +2365,13 @@ interface ModalPassengerFormProps {
|
|
|
2341
2365
|
* Custom labels override
|
|
2342
2366
|
*/
|
|
2343
2367
|
labels?: Partial<ModalPassengerFormLabels>;
|
|
2368
|
+
/**
|
|
2369
|
+
* Callback when scan identity completes successfully
|
|
2370
|
+
* Receives the scanned data for external processing
|
|
2371
|
+
*/
|
|
2372
|
+
onScanComplete?: (data: ScannedData) => void;
|
|
2344
2373
|
}
|
|
2345
2374
|
|
|
2346
|
-
/**
|
|
2347
|
-
* ModalPassengerForm - A reusable modal component for adding/editing passenger details
|
|
2348
|
-
*
|
|
2349
|
-
* This component provides a form interface for passenger information with features like:
|
|
2350
|
-
* - Different fields for adult vs child/infant passengers
|
|
2351
|
-
* - Form validation
|
|
2352
|
-
* - Support for add and edit modes
|
|
2353
|
-
*
|
|
2354
|
-
* @example
|
|
2355
|
-
* ```tsx
|
|
2356
|
-
* <ModalPassengerForm
|
|
2357
|
-
* open={isOpen}
|
|
2358
|
-
* onClose={() => setIsOpen(false)}
|
|
2359
|
-
* onSubmit={handleSubmit}
|
|
2360
|
-
* defaultValues={passengerData}
|
|
2361
|
-
* isAdultForm={true}
|
|
2362
|
-
* titleOptions={titleOpts}
|
|
2363
|
-
* idTypeOptions={idTypeOpts}
|
|
2364
|
-
* cityOptions={cityOpts}
|
|
2365
|
-
* ticketClassOptions={ticketClassOpts}
|
|
2366
|
-
* />
|
|
2367
|
-
* ```
|
|
2368
|
-
*/
|
|
2369
2375
|
declare const ModalPassengerForm: React$1.FC<ModalPassengerFormProps>;
|
|
2370
2376
|
|
|
2371
2377
|
interface PassengerListItem {
|