dt-shared-front 2.2.122 → 2.2.124
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/date-picker/date-picker.d.ts +6 -1
- package/dist/components/form/form-focus-error.d.ts +1 -1
- package/dist/components/form/form.d.ts +2 -2
- package/dist/components/info-block/info-block.d.ts +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/rating/rating.d.ts +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +41 -41
- package/dist/main.css.map +1 -1
- package/package.json +8 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { ComponentProps } from 'react';
|
|
1
|
+
import React, { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
declare const AntDatePicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<import("antd/lib/date-picker/generatePicker").PickerProps<Date> & {
|
|
3
3
|
status?: "" | "error" | "warning";
|
|
4
4
|
dropdownClassName?: string;
|
|
@@ -50,10 +50,15 @@ declare type IDatePickerProps = {
|
|
|
50
50
|
error?: boolean;
|
|
51
51
|
onClear?: (e: any) => void;
|
|
52
52
|
onTouchStart?: (e: any) => void;
|
|
53
|
+
onClick?: (e: any) => void;
|
|
53
54
|
format?: string;
|
|
54
55
|
mask?: string;
|
|
55
56
|
labelPlaceholder?: string;
|
|
56
57
|
isWbTheme?: boolean;
|
|
58
|
+
placeholder?: string;
|
|
59
|
+
className?: string;
|
|
60
|
+
onChange?: (e: any) => void;
|
|
61
|
+
suffixIcon?: ReactNode;
|
|
57
62
|
} & ComponentProps<typeof AntDatePicker>;
|
|
58
63
|
export declare const DatePicker: React.ForwardRefExoticComponent<IDatePickerProps & React.RefAttributes<unknown>>;
|
|
59
64
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { FormikContextType } from
|
|
3
|
-
import { PropsWithChildren } from
|
|
2
|
+
import { FormikContextType } from 'formik';
|
|
3
|
+
import { PropsWithChildren } from 'react';
|
|
4
4
|
interface IFormProps {
|
|
5
5
|
form: FormikContextType<any>;
|
|
6
6
|
className?: string;
|
|
@@ -13,5 +13,5 @@ interface IInfoBlockProps {
|
|
|
13
13
|
variant?: keyof typeof EInfoBlockVariant;
|
|
14
14
|
onClick?: () => void;
|
|
15
15
|
}
|
|
16
|
-
export declare const InfoBlock: ({ title, description, onClick, className, variant, children }: PropsWithChildren<IInfoBlockProps>) => React.JSX.Element;
|
|
16
|
+
export declare const InfoBlock: ({ title, description, onClick, className, variant, children, }: PropsWithChildren<IInfoBlockProps>) => React.JSX.Element;
|
|
17
17
|
export {};
|
|
@@ -70,4 +70,4 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
|
70
70
|
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
|
71
71
|
onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
|
|
72
72
|
valueTransformer?: (value: string) => string;
|
|
73
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
73
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -28,4 +28,4 @@ export declare const TextArea: React.ForwardRefExoticComponent<{
|
|
|
28
28
|
onClear?: () => void;
|
|
29
29
|
onSearch?: (e: any) => void;
|
|
30
30
|
onChange?: (value: string, event?: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
31
|
-
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
|
31
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLTextAreaElement>>;
|