@movmo_app/react-common 0.11.6 → 0.12.1

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.ts CHANGED
@@ -224,6 +224,12 @@ export declare interface PassengerFormProps {
224
224
  additionalFields?: default_2.ReactNode;
225
225
  errorState?: boolean;
226
226
  errorMessage?: string;
227
+ firstNameError?: boolean;
228
+ firstNameErrorMessage?: string;
229
+ middleNameError?: boolean;
230
+ middleNameErrorMessage?: string;
231
+ lastNameError?: boolean;
232
+ lastNameErrorMessage?: string;
227
233
  showPassportFields?: boolean;
228
234
  passportNumber?: string;
229
235
  setPassportNumber?: (value: string) => void;
@@ -326,6 +332,11 @@ export declare interface SignInModalProps {
326
332
  getCurrentUser: () => Promise<User>;
327
333
  onLoginSuccess: (user: User) => void;
328
334
  hideCloseButton?: boolean;
335
+ /**
336
+ * Show the phone input alongside email. Defaults to false (MOVMO-445):
337
+ * sign-in is email-only — email → Continue → OTP to the email. Pass true
338
+ * only for legacy flows that still collect a phone at sign-in.
339
+ */
329
340
  showPhone?: boolean;
330
341
  /**
331
342
  * Predicate used to detect HTTP 429 rate-limit rejections. Defaults to an
@@ -359,6 +370,11 @@ declare interface ToggleProps extends React_2.ComponentPropsWithoutRef<typeof Sw
359
370
 
360
371
  export declare const validateEmail: (email: string) => boolean;
361
372
 
373
+ export declare function validateName(value: string): {
374
+ isValid: boolean;
375
+ message?: string;
376
+ };
377
+
362
378
  export declare function validatePhoneNumber(phone: string, countryCode?: string): boolean;
363
379
 
364
380
  export { }