Newer
Older
TDarkness,
TDirection,
TIcons,
TPosition,
TSize,
TTextStyle,
TThemeColor,
TThemeColorNoWhite,
} from '@interfaces/common';
import type {
IMDItemProps,
ISBOption,

Дмитрий Малюгин
committed
ISelectGroup,
ISelectOption,
ISliderOptions,

Дмитрий Малюгин
committed
ITableColumn,
ITableItem,
ITreeItem,
} from '@interfaces/componentsProp';

Дмитрий Малюгин
committed
export interface ITableProps {
columns: ITableColumn[];
data: ITableItem[][];

Дмитрий Малюгин
committed
gap?: string;

Дмитрий Малюгин
committed
showAllLines?: boolean;
fontSize?: string;
theme?: TThemeColor;
textColor?: TThemeColor;
darknessTheme?: TDarkness;
darknessTextColor?: TDarkness;

Дмитрий Малюгин
committed
}
export interface ITLProps {
items: ITreeItem[];
maxWidth?: number;
expand?: boolean;
theme?: TThemeColor;
textColor?: TThemeColor;
darknessTextColor?: TDarkness;
darknessTheme?: TDarkness;
}
export interface ITIProps {
state: {
isOpen: boolean;
label: string;
}[];
items: ITreeItem[];

Дмитрий Малюгин
committed
color: string;
items: IMDItemProps[];
theme?: TThemeColor;

Дмитрий Малюгин
committed
iconColor?: TThemeColor;
darknessTheme?: TDarkness;

Дмитрий Малюгин
committed
darknessIconColor?: TDarkness;
direction?: TDirection;
// direction?: TDirection | 'circle';
export interface ISliderProps {
width?: string | number;
min?: string | number;
max?: string | number;
step?: string | number;
size?: TSize;
theme?: TThemeColor;
backgroundColor?: TThemeColor;
darknessTheme?: TDarkness;
darknessBackgroundColor?: TDarkness;
orientation?: 'horizontal' | 'vertical';
isSmooth?: boolean;
options?: ISliderOptions[];
}
export interface IDrawerProps {
position?: TPosition;
width?: string | number;
theme?: TThemeColor;

Дмитрий Малюгин
committed
textColor?: TThemeColor;
darknessTheme?: TDarkness;
modal?: boolean;
dismissible?: boolean;
closeIcon?: TIcons;
headerDivider?: boolean;
footerDivider?: boolean;
}
export interface IModalProps {
theme?: TThemeColor;
darknessTheme?: TDarkness;
width?: string;
height?: string;
position?: TExpandedPosition;
dismissible?: boolean;
closeIcon?: TIcons;
headerDivider?: boolean;
}
export interface IPopupProps {
parentSelector?: string;
theme?: TThemeColor;

Дмитрий Малюгин
committed
textColor?: TThemeColor;
darknessTheme?: TDarkness;

Дмитрий Малюгин
committed
darknessTextColor?: TDarkness;
maxWidth?: string;
maxHeight?: string;
padding?: string;

Дмитрий Малюгин
committed
buttonMenu?: boolean;
top?: number;
left?: number;

Дмитрий Малюгин
committed
export interface ISelectProps {
options: ISelectOption[];
groups?: ISelectGroup[];
width?: string;
placeholder?: string;
openIcon?: TIcons;
size?: TSize;
name?: string;
theme?: TThemeColor;
background?: TThemeColor;
placeholderColor?: TThemeColor;
openIconColor?: TThemeColor;

Дмитрий Малюгин
committed
darknessTheme?: TDarkness;
darknessBackground?: TDarkness;
darknessOpenIcon?: TDarkness;

Дмитрий Малюгин
committed
disabled?: boolean;
}
export interface ISBProps {
options: ISBOption[];
size?: TSize;
rounded?: boolean;

Дмитрий Малюгин
committed
textColor?: TThemeColor;
darknessTheme?: TDarkness;

Дмитрий Малюгин
committed
darknessTextColor?: TDarkness;
darknessActiveBackgroundColor?: TDarkness;
disabled?: boolean;
}
export interface IButtonProps {
label?: string;
size?: TSize;
textStyle?: TTextStyle;
iconPos?: TPosition;
width?: string | number;
iconOnly?: boolean;
theme?: TThemeColor;
textColor?: TThemeColor;
darknessTheme?: TDarkness;
darknessTextColor?: TDarkness;
}
export interface ITSProps {
size?: TSize;
theme?: TThemeColorNoWhite;
negativeTheme?: TThemeColor;
darknessTheme?: TDarkness;
darknessNegativeTheme?: TDarkness;
export interface ITagProps {
value?: string;
size?: TSize;
rounded?: boolean;
iconLeft?: TIcons;
iconRight?: TIcons;
theme?: TThemeColor;
background?: TThemeColor;
border?: TThemeColor;
darknessTheme?: TDarkness;
darknessBackground?: TDarkness;
darknessBorder?: TDarkness;
}
export interface ICheckboxProps {
label?: string;
labelPos?: TPosition;
name?: string;
size?: TSize;
disabled?: boolean;
invalid?: boolean;
theme?: TThemeColor;
activeTheme?: TThemeColor;
textColor?: TThemeColor;
borderColor?: TThemeColor;
darknessTheme?: TDarkness;
darknessActiveTheme?: TDarkness;
darknessTextColor?: TDarkness;
export interface IDividerProps {
height?: number;
type?: TBorder;
color?: TThemeColor;
darknessColor?: TDarkness;