dt-shared-front 2.0.1 → 2.1.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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare type IDividerProps = {
2
3
  width?: string;
3
4
  height?: string;
@@ -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>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLInputElement>>;
65
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "variant"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare type ILoaderLineProps = {
2
3
  active?: boolean;
3
4
  children?: JSX.Element;
@@ -9,18 +9,15 @@ interface IMediaProps {
9
9
  renderMobile?: IMediaRender;
10
10
  renderTablet?: IMediaRender;
11
11
  renderDesktop?: IMediaRender;
12
- defaultMatches?: IMediaMatches;
13
12
  render?: (matches: IMediaMatches) => React.ReactNode;
14
13
  }
15
- export declare const Media: ({ renderDesktop, renderMobile, renderTablet, render, defaultMatches }: IMediaProps) => JSX.Element;
14
+ export declare const Media: ({ renderDesktop, renderMobile, renderTablet, render }: IMediaProps) => JSX.Element;
16
15
  interface IMediaContext {
17
16
  mobile: boolean;
18
17
  tablet: boolean;
19
18
  desktop: boolean;
20
19
  }
21
- export declare const MediaProvider: ({ children, defaultMatches }: React.PropsWithChildren<{
22
- defaultMatches?: IMediaMatches;
23
- }>) => JSX.Element;
20
+ export declare const MediaProvider: ({ children }: PropsWithChildren<{}>) => JSX.Element;
24
21
  export declare type IReactComponent<P = any> = React.ClassicComponentClass<P> | React.ComponentClass<P> | React.FunctionComponent<P> | React.ForwardRefExoticComponent<P>;
25
22
  export declare function withMedia<T extends IReactComponent>(Component: T): T;
26
23
  export declare const useMedia: () => IMediaContext;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { RadioGroupProps } from 'antd';
2
3
  declare type IRadioProps<T> = Omit<RadioGroupProps, 'options' | 'onChange' | 'value'> & {
3
4
  options: T[] | T;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ETagButtonSize, ETagButtonVariant } from './tag-button';
2
3
  interface ITagButtonGroupProps<T> {
3
4
  variant?: keyof typeof ETagButtonVariant;
@@ -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>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLTextAreaElement>>;
29
+ } & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "size" | "variant"> & React.RefAttributes<HTMLTextAreaElement>>;