@asdp/ferryui 0.1.22-dev.8882 → 0.1.22-dev.8895

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 CHANGED
@@ -172,6 +172,9 @@ interface CarouselWithCustomNavLabels {
172
172
  carouselAriaLabel: string;
173
173
  slideAriaLabel: string;
174
174
  announcementTemplate: string;
175
+ prevButtonAriaLabel: string;
176
+ nextButtonAriaLabel: string;
177
+ closeButtonAriaLabel: string;
175
178
  }
176
179
  interface CarouselWithCustomNavProps {
177
180
  /**
@@ -2202,6 +2205,13 @@ interface ModalListPassengerProps {
2202
2205
  */
2203
2206
  declare const ModalListPassenger: React$1.FC<ModalListPassengerProps>;
2204
2207
 
2208
+ interface ScannedData {
2209
+ title?: string;
2210
+ name?: string;
2211
+ idNumber?: string;
2212
+ city?: string;
2213
+ age?: number;
2214
+ }
2205
2215
  interface ModalPassengerFormLabels {
2206
2216
  title: string;
2207
2217
  titleLabel: string;
@@ -2225,6 +2235,23 @@ interface ModalPassengerFormLabels {
2225
2235
  idTypeOtherPlaceholder: string;
2226
2236
  countryLabel: string;
2227
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;
2228
2255
  errors: {
2229
2256
  requiredTitle: string;
2230
2257
  requiredName: string;
@@ -2338,31 +2365,13 @@ interface ModalPassengerFormProps {
2338
2365
  * Custom labels override
2339
2366
  */
2340
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;
2341
2373
  }
2342
2374
 
2343
- /**
2344
- * ModalPassengerForm - A reusable modal component for adding/editing passenger details
2345
- *
2346
- * This component provides a form interface for passenger information with features like:
2347
- * - Different fields for adult vs child/infant passengers
2348
- * - Form validation
2349
- * - Support for add and edit modes
2350
- *
2351
- * @example
2352
- * ```tsx
2353
- * <ModalPassengerForm
2354
- * open={isOpen}
2355
- * onClose={() => setIsOpen(false)}
2356
- * onSubmit={handleSubmit}
2357
- * defaultValues={passengerData}
2358
- * isAdultForm={true}
2359
- * titleOptions={titleOpts}
2360
- * idTypeOptions={idTypeOpts}
2361
- * cityOptions={cityOpts}
2362
- * ticketClassOptions={ticketClassOpts}
2363
- * />
2364
- * ```
2365
- */
2366
2375
  declare const ModalPassengerForm: React$1.FC<ModalPassengerFormProps>;
2367
2376
 
2368
2377
  interface PassengerListItem {
package/dist/index.d.ts CHANGED
@@ -172,6 +172,9 @@ interface CarouselWithCustomNavLabels {
172
172
  carouselAriaLabel: string;
173
173
  slideAriaLabel: string;
174
174
  announcementTemplate: string;
175
+ prevButtonAriaLabel: string;
176
+ nextButtonAriaLabel: string;
177
+ closeButtonAriaLabel: string;
175
178
  }
176
179
  interface CarouselWithCustomNavProps {
177
180
  /**
@@ -2202,6 +2205,13 @@ interface ModalListPassengerProps {
2202
2205
  */
2203
2206
  declare const ModalListPassenger: React$1.FC<ModalListPassengerProps>;
2204
2207
 
2208
+ interface ScannedData {
2209
+ title?: string;
2210
+ name?: string;
2211
+ idNumber?: string;
2212
+ city?: string;
2213
+ age?: number;
2214
+ }
2205
2215
  interface ModalPassengerFormLabels {
2206
2216
  title: string;
2207
2217
  titleLabel: string;
@@ -2225,6 +2235,23 @@ interface ModalPassengerFormLabels {
2225
2235
  idTypeOtherPlaceholder: string;
2226
2236
  countryLabel: string;
2227
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;
2228
2255
  errors: {
2229
2256
  requiredTitle: string;
2230
2257
  requiredName: string;
@@ -2338,31 +2365,13 @@ interface ModalPassengerFormProps {
2338
2365
  * Custom labels override
2339
2366
  */
2340
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;
2341
2373
  }
2342
2374
 
2343
- /**
2344
- * ModalPassengerForm - A reusable modal component for adding/editing passenger details
2345
- *
2346
- * This component provides a form interface for passenger information with features like:
2347
- * - Different fields for adult vs child/infant passengers
2348
- * - Form validation
2349
- * - Support for add and edit modes
2350
- *
2351
- * @example
2352
- * ```tsx
2353
- * <ModalPassengerForm
2354
- * open={isOpen}
2355
- * onClose={() => setIsOpen(false)}
2356
- * onSubmit={handleSubmit}
2357
- * defaultValues={passengerData}
2358
- * isAdultForm={true}
2359
- * titleOptions={titleOpts}
2360
- * idTypeOptions={idTypeOpts}
2361
- * cityOptions={cityOpts}
2362
- * ticketClassOptions={ticketClassOpts}
2363
- * />
2364
- * ```
2365
- */
2366
2375
  declare const ModalPassengerForm: React$1.FC<ModalPassengerFormProps>;
2367
2376
 
2368
2377
  interface PassengerListItem {