dt-shared-front 2.2.57-alpha.1 → 2.2.57

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.
@@ -54,5 +54,5 @@ declare type IDatePickerProps = {
54
54
  mask?: string;
55
55
  labelPlaceholder?: string;
56
56
  } & ComponentProps<typeof AntDatePicker>;
57
- export declare const DatePicker: ({ error, onClear, format, mask, labelPlaceholder, onClick, ...props }: IDatePickerProps) => React.JSX.Element;
57
+ export declare const DatePicker: React.ForwardRefExoticComponent<IDatePickerProps & React.RefAttributes<unknown>>;
58
58
  export {};
@@ -64,4 +64,4 @@ export declare const Input: React.ForwardRefExoticComponent<{
64
64
  onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
65
65
  onSearch?: ((val: string) => void) | ((val: string) => Promise<void>);
66
66
  valueTransformer?: (value: string) => string;
67
- } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "size" | "variant"> & React.RefAttributes<HTMLInputElement>>;
67
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactElement, Ref } from 'react';
2
2
  import { SelectProps } from 'antd/lib/select';
3
3
  export interface ISelectOption<T> {
4
4
  label: string;
@@ -30,5 +30,5 @@ declare type ISelectProps<T> = Omit<SelectProps, 'options' | 'onChange'> & {
30
30
  isMobileModal?: boolean;
31
31
  modalTitle?: string;
32
32
  };
33
- export declare function Select<T = any>({ debounceTimeout, onServerSearch, onServerSearchGroup, onRenderOption, valueKey, labelKey, labelPlaceholder, labels, popupClassName, suffixIcon, stacked, error, isMobileModal, modalTitle, disabled, ...props }: ISelectProps<T>): React.JSX.Element;
33
+ export declare const Select: <T = any>(props: ISelectProps<T>, ref: Ref<HTMLInputElement>) => ReactElement;
34
34
  export {};
@@ -1,6 +1,5 @@
1
- import React from 'react';
1
+ import { ComponentProps, InputHTMLAttributes, ReactNode, Ref, ReactElement } from 'react';
2
2
  import { Input, IInputProps } from '@shared/input';
3
- import { ComponentProps, InputHTMLAttributes, ReactNode } from 'react';
4
3
  export interface IStackedInputValue<T> {
5
4
  value: string;
6
5
  key: T;
@@ -20,5 +19,5 @@ declare type IStackedInputProps<T> = {
20
19
  value?: string;
21
20
  onRenderOption?: (item: T) => ReactNode;
22
21
  } & ComponentProps<typeof Input> & Omit<InputHTMLAttributes<HTMLInputElement>, 'size' | 'variant' | 'onChange'>;
23
- export declare function StackedInput<T>({ onSelect, onRenderOption, options, option, ...props }: IStackedInputProps<T>): React.JSX.Element;
22
+ export declare const StackedInput: <T>(props: IStackedInputProps<T>, ref: Ref<HTMLInputElement>) => ReactElement;
24
23
  export {};
@@ -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>, "onChange" | "size" | "variant"> & React.RefAttributes<HTMLTextAreaElement>>;
29
+ } & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLTextAreaElement>>;