dt-shared-front 2.2.20 → 2.2.22
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/form-control/form-control.d.ts +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/modal/modal.provider.d.ts +3 -3
- 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 +30 -30
- package/package.json +1 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { ComponentProps, ElementType, PropsWithChildren } from
|
2
|
+
import { ComponentProps, ElementType, PropsWithChildren } from 'react';
|
3
3
|
declare type IFormControlProps<C extends ElementType> = {
|
4
4
|
[key in keyof ComponentProps<C>]?: ComponentProps<C>[key];
|
5
5
|
} & {
|
@@ -62,4 +62,4 @@ export declare const Input: React.ForwardRefExoticComponent<{
|
|
62
62
|
onPointerUp?: (e: any) => void;
|
63
63
|
onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
|
64
64
|
onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
|
65
|
-
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
65
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { PropsWithChildren } from
|
3
|
-
import { IModalRef } from
|
2
|
+
import { PropsWithChildren } from 'react';
|
3
|
+
import { IModalRef } from './modal';
|
4
4
|
export declare const ModalProvider: ({ children }: PropsWithChildren<any>) => React.JSX.Element;
|
5
|
-
export declare const useModal: (component: any,
|
5
|
+
export declare const useModal: (component: any, initialProps?: any) => React.RefObject<IModalRef<any>>;
|
@@ -26,4 +26,4 @@ export declare const TextArea: React.ForwardRefExoticComponent<{
|
|
26
26
|
onClear?: () => void;
|
27
27
|
onSearch?: (e: any) => void;
|
28
28
|
onChange?: (value: string, event?: ChangeEvent<HTMLTextAreaElement>) => void;
|
29
|
-
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "
|
29
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLTextAreaElement>>;
|