dt-shared-front 1.1.186 → 2.0.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/components/divider/divider.d.ts +0 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/loader-line/loader-line.d.ts +0 -1
- package/dist/components/media/media.d.ts +5 -2
- package/dist/components/radio/radio.d.ts +0 -1
- package/dist/components/tag-button/tag-buttton-group.d.ts +0 -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 +28 -28
- package/package.json +7 -7
@@ -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>>;
|
@@ -9,15 +9,18 @@ interface IMediaProps {
|
|
9
9
|
renderMobile?: IMediaRender;
|
10
10
|
renderTablet?: IMediaRender;
|
11
11
|
renderDesktop?: IMediaRender;
|
12
|
+
defaultMatches?: IMediaMatches;
|
12
13
|
render?: (matches: IMediaMatches) => React.ReactNode;
|
13
14
|
}
|
14
|
-
export declare const Media: ({ renderDesktop, renderMobile, renderTablet, render }: IMediaProps) => JSX.Element;
|
15
|
+
export declare const Media: ({ renderDesktop, renderMobile, renderTablet, render, defaultMatches }: IMediaProps) => JSX.Element;
|
15
16
|
interface IMediaContext {
|
16
17
|
mobile: boolean;
|
17
18
|
tablet: boolean;
|
18
19
|
desktop: boolean;
|
19
20
|
}
|
20
|
-
export declare const MediaProvider: ({ children }: PropsWithChildren<{
|
21
|
+
export declare const MediaProvider: ({ children, defaultMatches }: React.PropsWithChildren<{
|
22
|
+
defaultMatches?: IMediaMatches;
|
23
|
+
}>) => JSX.Element;
|
21
24
|
export declare type IReactComponent<P = any> = React.ClassicComponentClass<P> | React.ComponentClass<P> | React.FunctionComponent<P> | React.ForwardRefExoticComponent<P>;
|
22
25
|
export declare function withMedia<T extends IReactComponent>(Component: T): T;
|
23
26
|
export declare const useMedia: () => IMediaContext;
|
@@ -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>>;
|