dt-shared-front 2.2.8 → 2.2.9
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/auto-complete/auto-complete.d.ts +2 -2
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +1 -2
- package/dist/components/button/button.d.ts +3 -4
- package/dist/components/checkbox/checkbox.d.ts +2 -2
- package/dist/components/counter/counter.d.ts +1 -2
- package/dist/components/date-picker/date-picker.d.ts +2 -2
- package/dist/components/divider/divider.d.ts +1 -2
- package/dist/components/dropdown/dropdown.d.ts +2 -3
- package/dist/components/form/form.d.ts +1 -2
- package/dist/components/form-control/form-control.d.ts +1 -2
- package/dist/components/heading/heading.d.ts +1 -2
- package/dist/components/icon/icon.d.ts +1 -2
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/link/link.d.ts +1 -2
- package/dist/components/loader/loader.d.ts +1 -2
- package/dist/components/loader-line/loader-line.d.ts +1 -2
- package/dist/components/media/media.d.ts +2 -2
- package/dist/components/menu/menu.d.ts +3 -3
- package/dist/components/message/index.d.ts +1 -0
- package/dist/components/message/message.d.ts +8 -0
- package/dist/components/modal/modal.d.ts +1 -1
- package/dist/components/modal/modal.provider.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +2 -3
- package/dist/components/rating/rating.d.ts +1 -2
- package/dist/components/select/select.d.ts +2 -2
- package/dist/components/selector/selector.d.ts +2 -3
- package/dist/components/skeleton/skeleton.d.ts +1 -2
- package/dist/components/slider/slider.d.ts +1 -2
- package/dist/components/spoiler/spoiler.d.ts +1 -2
- package/dist/components/stacked-input/stacked-input.d.ts +1 -2
- package/dist/components/switch/switch.d.ts +1 -2
- package/dist/components/tag-box/tag-box.d.ts +2 -2
- package/dist/components/tag-button/tag-button.d.ts +2 -2
- package/dist/components/tag-button/tag-buttton-group.d.ts +1 -2
- package/dist/components/text/text.d.ts +1 -2
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-spoiler/text-spoiler.d.ts +2 -2
- package/dist/components/tooltip/tooltip.d.ts +2 -2
- package/dist/components/upload/upload.d.ts +2 -3
- package/dist/components/views-count/views-count.d.ts +1 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/main.css +31 -30
- package/dist/main.css.map +1 -1
- package/dist/providers/shared.provider.d.ts +1 -2
- package/package.json +4 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { AutoCompleteProps } from
|
2
|
+
import { AutoCompleteProps } from 'antd/lib/auto-complete';
|
3
3
|
export interface ISelectOption<T> {
|
4
4
|
label: string;
|
5
5
|
value: string | number | null | undefined;
|
@@ -22,5 +22,5 @@ declare type IAutoCompleteProps<T> = Omit<AutoCompleteProps, 'options' | 'onChan
|
|
22
22
|
popupClassName?: string;
|
23
23
|
icon?: any;
|
24
24
|
};
|
25
|
-
export declare function AutoComplete<T>({ labels, labelKey, valueKey, onServerSearch, icon, debounceTimeout, labelPlaceholder, onRenderOption, popupClassName, ...props }: IAutoCompleteProps<T>):
|
25
|
+
export declare function AutoComplete<T>({ labels, labelKey, valueKey, onServerSearch, icon, debounceTimeout, labelPlaceholder, onRenderOption, popupClassName, ...props }: IAutoCompleteProps<T>): JSX.Element;
|
26
26
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
export interface IBreadcrumbsPath {
|
3
2
|
title: string;
|
4
3
|
path: string;
|
@@ -14,5 +13,5 @@ interface IBreadcrumbsProps {
|
|
14
13
|
variant?: keyof typeof EBreadcrumbsVariant;
|
15
14
|
onBack?: (path: string) => void;
|
16
15
|
}
|
17
|
-
export declare const Breadcrumbs: ({ paths, onBack, variant }: IBreadcrumbsProps) =>
|
16
|
+
export declare const Breadcrumbs: ({ paths, onBack, variant }: IBreadcrumbsProps) => JSX.Element;
|
18
17
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PropsWithChildren, MouseEvent } from 'react';
|
2
2
|
export declare enum EButtonSize {
|
3
3
|
smallS = "smallS",
|
4
4
|
small = "small",
|
@@ -14,7 +14,7 @@ export declare enum EButtonIconPosition {
|
|
14
14
|
left = "left",
|
15
15
|
right = "right"
|
16
16
|
}
|
17
|
-
interface IButtonProps {
|
17
|
+
export interface IButtonProps {
|
18
18
|
variant?: keyof typeof EButtonVariant;
|
19
19
|
size?: keyof typeof EButtonSize;
|
20
20
|
icon?: any;
|
@@ -26,5 +26,4 @@ interface IButtonProps {
|
|
26
26
|
type?: 'button' | 'submit' | 'reset';
|
27
27
|
onClick?: (e?: MouseEvent<HTMLButtonElement>) => void;
|
28
28
|
}
|
29
|
-
export declare const Button: ({ variant, size, iconPosition, width, icon: Icon, loading, disabled, children, className, onClick, type, }: PropsWithChildren<IButtonProps>) =>
|
30
|
-
export {};
|
29
|
+
export declare const Button: ({ variant, size, iconPosition, width, icon: Icon, loading, disabled, children, className, onClick, type, }: PropsWithChildren<IButtonProps>) => JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
2
|
export declare type ICheckboxProps = {
|
3
3
|
disabled?: boolean;
|
4
4
|
value?: boolean;
|
@@ -8,4 +8,4 @@ export declare type ICheckboxProps = {
|
|
8
8
|
small?: boolean;
|
9
9
|
name?: string;
|
10
10
|
};
|
11
|
-
export declare const Checkbox: ({ disabled, value, onChange, children, error, className }: PropsWithChildren<ICheckboxProps>) =>
|
11
|
+
export declare const Checkbox: ({ disabled, value, onChange, children, error, className }: PropsWithChildren<ICheckboxProps>) => JSX.Element;
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface ICounterProps {
|
3
2
|
value?: number;
|
4
3
|
max?: number;
|
5
4
|
min?: number;
|
6
5
|
onChange?: (count: number) => void;
|
7
6
|
}
|
8
|
-
export declare const Counter: (props: ICounterProps) =>
|
7
|
+
export declare const Counter: (props: ICounterProps) => JSX.Element;
|
9
8
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { ComponentProps } from 'react';
|
2
2
|
declare const AntDatePicker: import("antd/lib/date-picker/generatePicker/interface").PickerComponentClass<import("antd/lib/date-picker/generatePicker").PickerProps<Date> & {
|
3
3
|
status?: "" | "error" | "warning";
|
4
4
|
dropdownClassName?: string;
|
@@ -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) =>
|
57
|
+
export declare const DatePicker: ({ error, onClear, format, mask, labelPlaceholder, onClick, ...props }: IDatePickerProps) => JSX.Element;
|
58
58
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
export declare type IDividerProps = {
|
3
2
|
width?: string;
|
4
3
|
height?: string;
|
@@ -7,4 +6,4 @@ export declare type IDividerProps = {
|
|
7
6
|
children?: JSX.Element;
|
8
7
|
className?: string;
|
9
8
|
};
|
10
|
-
export declare const Divider: ({ width, height, bordered, className }: IDividerProps) =>
|
9
|
+
export declare const Divider: ({ width, height, bordered, className }: IDividerProps) => JSX.Element;
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import
|
2
|
-
import { DropDownProps as AntDropdownProps } from 'antd';
|
1
|
+
import { DropDownProps as AntDropdownProps } from 'antd/lib/dropdown';
|
3
2
|
interface IDropdownProps extends AntDropdownProps {
|
4
3
|
}
|
5
|
-
export declare const Dropdown: (props: IDropdownProps) =>
|
4
|
+
export declare const Dropdown: (props: IDropdownProps) => JSX.Element;
|
6
5
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { FormikContextType } from "formik";
|
3
2
|
import { PropsWithChildren } from "react";
|
4
3
|
interface IFormProps {
|
@@ -8,5 +7,5 @@ interface IFormProps {
|
|
8
7
|
onChange?: (values: any) => void;
|
9
8
|
onChangeBlur?: (values: any) => void;
|
10
9
|
}
|
11
|
-
export declare const Form: (props: PropsWithChildren<IFormProps>) =>
|
10
|
+
export declare const Form: (props: PropsWithChildren<IFormProps>) => JSX.Element;
|
12
11
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { ComponentProps, ElementType, PropsWithChildren } from "react";
|
3
2
|
declare type IFormControlProps<C extends ElementType> = {
|
4
3
|
[key in keyof ComponentProps<C>]?: ComponentProps<C>[key];
|
@@ -9,5 +8,5 @@ declare type IFormControlProps<C extends ElementType> = {
|
|
9
8
|
onChange?: any;
|
10
9
|
};
|
11
10
|
export declare const isRequiredField: (validationSchema: any, name: any) => any;
|
12
|
-
export declare function FormControl<T extends ElementType>({ name, label, component, onChange, ...props }: PropsWithChildren<IFormControlProps<T>>):
|
11
|
+
export declare function FormControl<T extends ElementType>({ name, label, component, onChange, ...props }: PropsWithChildren<IFormControlProps<T>>): JSX.Element;
|
13
12
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
export declare enum EHeadingLevel {
|
3
2
|
h1 = 1,
|
4
3
|
h2 = 2,
|
@@ -25,5 +24,5 @@ interface IHeadingProps {
|
|
25
24
|
centerText?: boolean;
|
26
25
|
weight?: keyof typeof EHeadingWeight;
|
27
26
|
}
|
28
|
-
export declare const Heading: ({ children, level, addition, attention, warning, success, inverse, error, className, centerText, weight, }: IHeadingProps) =>
|
27
|
+
export declare const Heading: ({ children, level, addition, attention, warning, success, inverse, error, className, centerText, weight, }: IHeadingProps) => JSX.Element;
|
29
28
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { PropsWithChildren } from 'react';
|
3
2
|
export declare enum EIconSize {
|
4
3
|
extraSmall = "extraSmall",
|
@@ -25,5 +24,5 @@ interface IIconProps {
|
|
25
24
|
onClick?: (e: any) => void;
|
26
25
|
'data-tooltip-target'?: boolean;
|
27
26
|
}
|
28
|
-
export declare const Icon: ({ icon: IconSvg, active, size, variant, className, onClick, ...props }: PropsWithChildren<IIconProps>) =>
|
27
|
+
export declare const Icon: ({ icon: IconSvg, active, size, variant, className, onClick, ...props }: PropsWithChildren<IIconProps>) => JSX.Element;
|
29
28
|
export {};
|
@@ -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>, "onChange" | "size" | "variant"> & React.RefAttributes<HTMLInputElement>>;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
export declare enum ELinkVariant {
|
3
2
|
link = "link",
|
4
3
|
href = "href",
|
@@ -45,5 +44,5 @@ interface ILinkProps {
|
|
45
44
|
style?: any;
|
46
45
|
tag?: string;
|
47
46
|
}
|
48
|
-
export declare const Link: ({ children, target, icon: Icon, variant, size, weight, decoration, href, bold, className, type, dashed, onClick, rel, style, tag, }: ILinkProps) =>
|
47
|
+
export declare const Link: ({ children, target, icon: Icon, variant, size, weight, decoration, href, bold, className, type, dashed, onClick, rel, style, tag, }: ILinkProps) => JSX.Element;
|
49
48
|
export {};
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface ILoaderProps {
|
3
2
|
absolute?: boolean;
|
4
3
|
fixed?: boolean;
|
5
4
|
active?: boolean;
|
6
5
|
}
|
7
|
-
export declare const Loader: (props: ILoaderProps) =>
|
6
|
+
export declare const Loader: (props: ILoaderProps) => JSX.Element;
|
8
7
|
export {};
|
@@ -1,6 +1,5 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
export declare type ILoaderLineProps = {
|
3
2
|
active?: boolean;
|
4
3
|
children?: JSX.Element;
|
5
4
|
};
|
6
|
-
export declare const LoaderLine: ({ active }: ILoaderLineProps) =>
|
5
|
+
export declare const LoaderLine: ({ active }: ILoaderLineProps) => JSX.Element;
|
@@ -12,7 +12,7 @@ interface IMediaProps {
|
|
12
12
|
defaultMatches?: IMediaMatches;
|
13
13
|
render?: (matches: IMediaMatches) => React.ReactNode;
|
14
14
|
}
|
15
|
-
export declare const Media: ({ renderDesktop, renderMobile, renderTablet, render, defaultMatches }: IMediaProps) =>
|
15
|
+
export declare const Media: ({ renderDesktop, renderMobile, renderTablet, render, defaultMatches }: IMediaProps) => JSX.Element;
|
16
16
|
interface IMediaContext {
|
17
17
|
mobile: boolean;
|
18
18
|
tablet: boolean;
|
@@ -20,7 +20,7 @@ interface IMediaContext {
|
|
20
20
|
}
|
21
21
|
export declare const MediaProvider: ({ children, defaultMatches }: React.PropsWithChildren<{
|
22
22
|
defaultMatches?: IMediaMatches;
|
23
|
-
}>) =>
|
23
|
+
}>) => JSX.Element;
|
24
24
|
export declare type IReactComponent<P = any> = React.ClassicComponentClass<P> | React.ComponentClass<P> | React.FunctionComponent<P> | React.ForwardRefExoticComponent<P>;
|
25
25
|
export declare function withMedia<T extends IReactComponent>(Component: T): T;
|
26
26
|
export declare const useMedia: () => IMediaContext;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import
|
2
|
-
import { MenuProps as AntMenuProps } from 'antd';
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
import { MenuProps as AntMenuProps } from 'antd/lib/menu';
|
3
3
|
interface IMenuProps extends AntMenuProps {
|
4
4
|
}
|
5
|
-
export declare const Menu: (props: PropsWithChildren<IMenuProps>) =>
|
5
|
+
export declare const Menu: (props: PropsWithChildren<IMenuProps>) => JSX.Element;
|
6
6
|
export {};
|
@@ -0,0 +1 @@
|
|
1
|
+
export { Message } from './message';
|
@@ -32,5 +32,5 @@ declare type IModalProps<C extends ElementType> = {
|
|
32
32
|
full?: boolean;
|
33
33
|
gallery?: boolean;
|
34
34
|
};
|
35
|
-
export declare const Modal: React.ForwardRefExoticComponent<
|
35
|
+
export declare const Modal: React.ForwardRefExoticComponent<Pick<IModalProps<any>, string | number | symbol> & React.RefAttributes<IModalRef<any>>>;
|
36
36
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { PropsWithChildren } from "react";
|
3
3
|
import { IModalRef } from "./modal";
|
4
|
-
export declare const ModalProvider: ({ children }: PropsWithChildren<any>) =>
|
4
|
+
export declare const ModalProvider: ({ children }: PropsWithChildren<any>) => JSX.Element;
|
5
5
|
export declare const useModal: (component: any, ...initialProps: any) => React.RefObject<IModalRef<any>>;
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import { RadioGroupProps } from 'antd';
|
1
|
+
import { RadioGroupProps } from 'antd/lib/radio';
|
3
2
|
declare type IRadioProps<T> = Omit<RadioGroupProps, 'options' | 'onChange' | 'value'> & {
|
4
3
|
options: T[] | T;
|
5
4
|
labels?: {
|
@@ -13,5 +12,5 @@ declare type IRadioProps<T> = Omit<RadioGroupProps, 'options' | 'onChange' | 'va
|
|
13
12
|
className?: string;
|
14
13
|
error?: boolean;
|
15
14
|
};
|
16
|
-
export declare function Radio<T = any>({ options, position, valueKey, labelKey, labels, className, error, ...props }: IRadioProps<T>):
|
15
|
+
export declare function Radio<T = any>({ options, position, valueKey, labelKey, labels, className, error, ...props }: IRadioProps<T>): JSX.Element;
|
17
16
|
export {};
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import React from "react";
|
2
1
|
interface IRatingProps {
|
3
2
|
value: number;
|
4
3
|
onChange?: (val: number) => void;
|
5
4
|
readonly?: boolean;
|
6
5
|
className?: string;
|
7
6
|
}
|
8
|
-
export declare const Rating: (props: IRatingProps) =>
|
7
|
+
export declare const Rating: (props: IRatingProps) => JSX.Element;
|
9
8
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { SelectProps } from 'antd';
|
2
|
+
import { SelectProps } from 'antd/lib/select';
|
3
3
|
export interface ISelectOption<T> {
|
4
4
|
label: string;
|
5
5
|
value: string | number | null | undefined;
|
@@ -28,5 +28,5 @@ declare type ISelectProps<T> = Omit<SelectProps, 'options' | 'onChange'> & {
|
|
28
28
|
popupClassName?: string;
|
29
29
|
suffixIcon?: any;
|
30
30
|
};
|
31
|
-
export declare function Select<T = any>({ debounceTimeout, onServerSearch, onServerSearchGroup, onRenderOption, valueKey, labelKey, labelPlaceholder, labels, popupClassName, suffixIcon, stacked, error, ...props }: ISelectProps<T>):
|
31
|
+
export declare function Select<T = any>({ debounceTimeout, onServerSearch, onServerSearchGroup, onRenderOption, valueKey, labelKey, labelPlaceholder, labels, popupClassName, suffixIcon, stacked, error, ...props }: ISelectProps<T>): JSX.Element;
|
32
32
|
export {};
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { SliderRangeProps, SliderSingleProps } from 'antd/lib/slider';
|
3
2
|
interface ISelectorRangeProps extends SliderRangeProps {
|
4
3
|
}
|
5
|
-
export declare const SelectorRange: (props: ISelectorRangeProps) =>
|
4
|
+
export declare const SelectorRange: (props: ISelectorRangeProps) => JSX.Element;
|
6
5
|
interface ISelectorProps extends SliderSingleProps {
|
7
6
|
}
|
8
|
-
export declare const Selector: (props: ISelectorProps) =>
|
7
|
+
export declare const Selector: (props: ISelectorProps) => JSX.Element;
|
9
8
|
export {};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { SkeletonProps } from 'react-loading-skeleton';
|
3
2
|
declare type ISkeletonProps = SkeletonProps;
|
4
|
-
export declare const Skeleton: (props: ISkeletonProps) =>
|
3
|
+
export declare const Skeleton: (props: ISkeletonProps) => JSX.Element;
|
5
4
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
interface ISliderProps {
|
3
2
|
items: any[];
|
4
3
|
slidesPerView: any;
|
@@ -29,5 +28,5 @@ interface ISliderProps {
|
|
29
28
|
speed?: number;
|
30
29
|
effect?: 'slide' | 'fade' | 'cube' | 'coverflow' | 'flip';
|
31
30
|
}
|
32
|
-
export declare const Slider: ({ items, slidesPerView, renderItem, viewItem, loop, asyncReady, showNavigation, navPosition, spaceBetween, autoplay, delay, freeMode, showCounter, centeredSlides, className, classNamePrev, classNameNext, touchStartPreventDefault, overflow, preloadImages, shortSwipes, longSwipes, longSwipesMs, longSwipesRatio, preventClicks, preventClicksPropagation, effect, speed, }: ISliderProps) =>
|
31
|
+
export declare const Slider: ({ items, slidesPerView, renderItem, viewItem, loop, asyncReady, showNavigation, navPosition, spaceBetween, autoplay, delay, freeMode, showCounter, centeredSlides, className, classNamePrev, classNameNext, touchStartPreventDefault, overflow, preloadImages, shortSwipes, longSwipes, longSwipesMs, longSwipesRatio, preventClicks, preventClicksPropagation, effect, speed, }: ISliderProps) => JSX.Element;
|
33
32
|
export {};
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { PropsWithChildren, ReactNode } from 'react';
|
3
2
|
interface ISpoilerProps {
|
4
3
|
title: string | ReactNode;
|
5
4
|
initialValue?: boolean;
|
6
5
|
className?: string;
|
7
6
|
}
|
8
|
-
export declare const Spoiler: (props: PropsWithChildren<ISpoilerProps>) =>
|
7
|
+
export declare const Spoiler: (props: PropsWithChildren<ISpoilerProps>) => JSX.Element;
|
9
8
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { Input, IInputProps } from '@shared/input';
|
3
2
|
import { ComponentProps, InputHTMLAttributes, ReactNode } from 'react';
|
4
3
|
export interface IStackedInputValue<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>):
|
22
|
+
export declare function StackedInput<T>({ onSelect, onRenderOption, options, option, ...props }: IStackedInputProps<T>): JSX.Element;
|
24
23
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
declare type ISwitchProps = {
|
3
2
|
value?: boolean;
|
4
3
|
name?: string;
|
@@ -6,5 +5,5 @@ declare type ISwitchProps = {
|
|
6
5
|
className?: string;
|
7
6
|
onChange?: (value: boolean) => void;
|
8
7
|
};
|
9
|
-
export declare const Switch: (props: ISwitchProps) =>
|
8
|
+
export declare const Switch: (props: ISwitchProps) => JSX.Element;
|
10
9
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { SelectProps } from
|
2
|
+
import { SelectProps } from 'antd/lib/select';
|
3
3
|
export interface ITagBoxOption<T> {
|
4
4
|
label: string;
|
5
5
|
value: string | number | null | undefined;
|
@@ -18,5 +18,5 @@ declare type ITagBoxProps<T> = Omit<SelectProps, 'options' | 'onChange'> & {
|
|
18
18
|
onRenderOption?: (item: T) => React.ReactNode;
|
19
19
|
popupClassName?: string;
|
20
20
|
};
|
21
|
-
export declare function TagBox<T>({ labels, valueKey, labelKey, labelPlaceholder, onRenderOption, popupClassName, ...props }: ITagBoxProps<T>):
|
21
|
+
export declare function TagBox<T>({ labels, valueKey, labelKey, labelPlaceholder, onRenderOption, popupClassName, ...props }: ITagBoxProps<T>): JSX.Element;
|
22
22
|
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
2
|
export declare enum ETagButtonSize {
|
3
3
|
small = "small",
|
4
4
|
medium = "medium",
|
@@ -25,5 +25,5 @@ interface IButtonProps {
|
|
25
25
|
onClick: (e?: boolean) => void;
|
26
26
|
selectedClassName?: string;
|
27
27
|
}
|
28
|
-
export declare const TagButton: ({ variant, size, disabled, selected, children, onClick, selectedClassName, }: PropsWithChildren<IButtonProps>) =>
|
28
|
+
export declare const TagButton: ({ variant, size, disabled, selected, children, onClick, selectedClassName, }: PropsWithChildren<IButtonProps>) => JSX.Element;
|
29
29
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { ETagButtonSize, ETagButtonVariant } from './tag-button';
|
3
2
|
interface ITagButtonGroupProps<T> {
|
4
3
|
variant?: keyof typeof ETagButtonVariant;
|
@@ -15,5 +14,5 @@ interface ITagButtonGroupProps<T> {
|
|
15
14
|
valueKey?: string;
|
16
15
|
labelKey?: string;
|
17
16
|
}
|
18
|
-
export declare function TagButtonGroup<T>({ labelKey, valueKey, labels, className, selectedClassName, ...props }: ITagButtonGroupProps<T>):
|
17
|
+
export declare function TagButtonGroup<T>({ labelKey, valueKey, labels, className, selectedClassName, ...props }: ITagButtonGroupProps<T>): JSX.Element;
|
19
18
|
export {};
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
export declare enum ETextSize {
|
3
2
|
small = "small",
|
4
3
|
medium = "medium",
|
@@ -27,5 +26,5 @@ interface ITextProps {
|
|
27
26
|
tag?: string;
|
28
27
|
onClick?: (e: any) => void;
|
29
28
|
}
|
30
|
-
export declare const Text: ({ children, size, bold, weight, addition, success, error, inverse, attention, warning, className, style, through, tag, onClick }: ITextProps) =>
|
29
|
+
export declare const Text: ({ children, size, bold, weight, addition, success, error, inverse, attention, warning, className, style, through, tag, onClick }: ITextProps) => JSX.Element;
|
31
30
|
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>, "
|
29
|
+
} & Omit<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange" | "size" | "variant"> & React.RefAttributes<HTMLTextAreaElement>>;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import
|
2
|
-
export declare const TextSpoiler: (props: PropsWithChildren<{}>) =>
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
|
+
export declare const TextSpoiler: (props: PropsWithChildren<{}>) => JSX.Element;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import
|
1
|
+
import { PropsWithChildren } from 'react';
|
2
2
|
import { TooltipPosition } from './tooltip.utils';
|
3
3
|
declare type ITootipProps = {
|
4
4
|
title: any;
|
@@ -7,5 +7,5 @@ declare type ITootipProps = {
|
|
7
7
|
placement?: keyof typeof TooltipPosition;
|
8
8
|
trigger?: any;
|
9
9
|
};
|
10
|
-
export declare const Tooltip: ({ placement, ...props }: PropsWithChildren<ITootipProps>) =>
|
10
|
+
export declare const Tooltip: ({ placement, ...props }: PropsWithChildren<ITootipProps>) => JSX.Element;
|
11
11
|
export {};
|
@@ -1,5 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import { UploadProps } from 'antd';
|
1
|
+
import { UploadProps } from 'antd/lib/upload';
|
3
2
|
import { PropsWithChildren } from 'react';
|
4
3
|
declare type IUploadProps = UploadProps & {
|
5
4
|
onUpload?: (file: File) => Promise<string>;
|
@@ -11,5 +10,5 @@ declare type IUploadProps = UploadProps & {
|
|
11
10
|
showRemove?: boolean;
|
12
11
|
hiddenList?: boolean;
|
13
12
|
};
|
14
|
-
export declare const Upload: ({ onUpload, onChange, renderName, showRemove, hiddenList, maxCount, path, value, ...props }: PropsWithChildren<IUploadProps>) =>
|
13
|
+
export declare const Upload: ({ onUpload, onChange, renderName, showRemove, hiddenList, maxCount, path, value, ...props }: PropsWithChildren<IUploadProps>) => JSX.Element;
|
15
14
|
export {};
|
@@ -1,9 +1,8 @@
|
|
1
|
-
import React from 'react';
|
2
1
|
import { EIconSize } from '../icon';
|
3
2
|
interface IViewsCountProps {
|
4
3
|
viewsCount: number;
|
5
4
|
className?: string;
|
6
5
|
size?: keyof typeof EIconSize;
|
7
6
|
}
|
8
|
-
export declare const ViewsCount: ({ viewsCount, className, size }: IViewsCountProps) =>
|
7
|
+
export declare const ViewsCount: ({ viewsCount, className, size }: IViewsCountProps) => JSX.Element;
|
9
8
|
export {};
|
package/dist/index.d.ts
CHANGED