@verifiedinc-public/shared-ui-elements 0.14.3 → 0.14.5-beta.0

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.
@@ -0,0 +1,10 @@
1
+ import { SxProps, AlertColor } from '@mui/material';
2
+ import { ReactNode } from 'react';
3
+ interface BannerProps {
4
+ title: string;
5
+ severity: AlertColor;
6
+ children: ReactNode;
7
+ sx?: SxProps;
8
+ }
9
+ export declare function Banner({ title, severity, children, sx, }: BannerProps): React.JSX.Element;
10
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SxProps } from '@mui/material';
2
+ /**
3
+ * "Enter your exact Birthday" Banner
4
+ */
5
+ export declare function ExactBirthdayBanner({ sx, }: {
6
+ sx?: SxProps;
7
+ }): React.JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { SxProps } from '@mui/material';
2
+ interface ResendPhoneBannerProps {
3
+ phone: string;
4
+ onClick: () => void;
5
+ disabled?: boolean;
6
+ sx?: SxProps;
7
+ }
8
+ /**
9
+ * Banner to verify and resend the phone verification code.
10
+ * @param phone
11
+ * @param onClick
12
+ * @constructor
13
+ */
14
+ export declare function ResendPhoneBanner({ phone, onClick, disabled, sx, }: ResendPhoneBannerProps): React.JSX.Element;
15
+ export {};
@@ -0,0 +1,7 @@
1
+ import { SxProps } from '@mui/material';
2
+ /**
3
+ * Banner to inform about the test phone numbers
4
+ */
5
+ export declare function TestPhoneNumbersBanner({ sx, }: {
6
+ sx?: SxProps;
7
+ }): React.JSX.Element;
@@ -1,18 +1,11 @@
1
+ import { TextFieldProps } from '@mui/material';
1
2
  import { ChangeEventHandler } from 'react';
2
- interface DateInputProps {
3
- name?: string;
4
- value?: string;
3
+ interface DateInputProps extends Omit<TextFieldProps, 'onBlur' | 'onChange'> {
5
4
  label?: string;
6
- error?: boolean;
5
+ value?: string;
7
6
  helperText?: string;
8
- onChange?: (event: {
9
- target: {
10
- value: string;
11
- };
12
- }) => void;
7
+ onChange?: (value: string) => void;
13
8
  onBlur?: ChangeEventHandler<HTMLInputElement>;
14
- disabled?: boolean;
15
- allowFutureDates?: boolean;
16
9
  }
17
- export declare const DateInput: import('react').ForwardRefExoticComponent<Readonly<DateInputProps> & import('react').RefAttributes<unknown>>;
10
+ export declare const DateInput: import('react').ForwardRefExoticComponent<Omit<Readonly<DateInputProps>, "ref"> & import('react').RefAttributes<unknown>>;
18
11
  export {};