dt-shared-front 2.2.86 → 2.2.87

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.
@@ -5,6 +5,10 @@ export declare enum EButtonSize {
5
5
  medium = "medium",
6
6
  large = "large"
7
7
  }
8
+ export declare enum EButtonBorderRadius {
9
+ default = "default",
10
+ circle = "circle"
11
+ }
8
12
  export declare enum EButtonVariant {
9
13
  default = "default",
10
14
  secondary = "secondary",
@@ -21,6 +25,7 @@ export interface IButtonProps {
21
25
  icon?: any;
22
26
  width?: string;
23
27
  iconPosition?: keyof typeof EButtonIconPosition;
28
+ borderRadius?: keyof typeof EButtonBorderRadius;
24
29
  loading?: boolean;
25
30
  isWbTheme?: boolean;
26
31
  disabled?: boolean;
@@ -28,4 +33,4 @@ export interface IButtonProps {
28
33
  type?: 'button' | 'submit' | 'reset';
29
34
  onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
30
35
  }
31
- export declare const Button: ({ variant, size, iconPosition, width, icon: Icon, loading, disabled, children, className, onClick, type, isWbTheme, }: PropsWithChildren<IButtonProps>) => React.JSX.Element;
36
+ export declare const Button: ({ variant, size, iconPosition, borderRadius, width, icon: Icon, loading, disabled, children, className, onClick, type, isWbTheme, }: PropsWithChildren<IButtonProps>) => React.JSX.Element;
@@ -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>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLInputElement>>;
73
+ } & Omit<React.InputHTMLAttributes<HTMLInputElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLInputElement>>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { RadioGroupProps } from 'antd/lib/radio';
3
3
  declare type IRadioProps<T> = Omit<RadioGroupProps, 'options' | 'onChange' | 'value'> & {
4
4
  options: T[] | T;
@@ -14,6 +14,7 @@ declare type IRadioProps<T> = Omit<RadioGroupProps, 'options' | 'onChange' | 'va
14
14
  classNameContainer?: string;
15
15
  error?: boolean;
16
16
  isWbTheme?: boolean;
17
+ onRenderOption?: (value: T) => ReactNode;
17
18
  };
18
- export declare function Radio<T = any>({ options, position, valueKey, labelKey, labels, className, error, isWbTheme, ...props }: IRadioProps<T>): React.JSX.Element;
19
+ export declare function Radio<T = any>({ options, position, valueKey, labelKey, labels, className, error, isWbTheme, onRenderOption, ...props }: IRadioProps<T>): React.JSX.Element;
19
20
  export {};
@@ -8,6 +8,7 @@ interface IContactsModalData {
8
8
  filter: any;
9
9
  items: any[];
10
10
  onClick: (item: any, option: any) => void;
11
+ onRenderOption?: (item: any) => React.ReactNode;
11
12
  }
12
13
  export declare const SelectModal: ({ modal, data }: PropsWithModal<{}, IContactsModalData>) => React.JSX.Element;
13
14
  export {};
@@ -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>, "variant" | "size" | "onChange"> & React.RefAttributes<HTMLTextAreaElement>>;
31
+ } & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "variant" | "size"> & React.RefAttributes<HTMLTextAreaElement>>;