@verifiedinc-public/shared-ui-elements 0.14.4 → 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.
- package/dist/components/Banners/Banner.d.ts +10 -0
- package/dist/components/Banners/ExactBirthdayBanner.d.ts +7 -0
- package/dist/components/Banners/ResendPhoneBanner.d.ts +15 -0
- package/dist/components/Banners/TestPhoneNumbersBanner.d.ts +7 -0
- package/dist/components/form/DateInput.d.ts +5 -12
- package/dist/shared-ui-elements.mjs +1855 -1864
- package/package.json +1 -1
- package/src/components/Banners/Banner.tsx +42 -0
- package/src/components/Banners/ExactBirthdayBanner.tsx +18 -0
- package/src/components/Banners/ResendPhoneBanner.tsx +55 -0
- package/src/components/Banners/TestPhoneNumbersBanner.tsx +25 -0
- package/src/components/Snackbar/index.tsx +1 -0
- package/src/components/form/DateInput.tsx +24 -63
- package/src/stories/components/form/DateInput.stories.ts +6 -9
@@ -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,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 {};
|
@@ -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
|
-
|
5
|
+
value?: string;
|
7
6
|
helperText?: string;
|
8
|
-
onChange?: (
|
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 {};
|