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

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

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

Дмитрий Малюгин
committed
export interface ITableProps {

Дмитрий Малюгин
committed
columns: ITableColumn[];

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

Дмитрий Малюгин
committed
showAllLines?: boolean;
fontSize?: string;
theme?: TThemeColor;
textColor?: TThemeColor;
darknessTheme?: TDarkness;
darknessTextColor?: TDarkness;
paginatorOptions?: IPaginatorProps;
editable?: boolean;
noEditingSettings?: {
columns?: number[];
rows?: number[];
cells?: [number, number][];
handlers?: {
cell: [number, number];

Дмитрий Малюгин
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;
export interface IPaginatorProps {
total?: number;
itemsPerPage?: number;
fontSize?: string;
theme?: TThemeColor;
darknessTheme?: TDarkness;

Дмитрий Малюгин
committed
innerWidth?: string;
size?: TSize;
perView?: number;
perScroll?: number;

Дмитрий Малюгин
committed
circular?: boolean;
buttonsBelow?: boolean;
theme?: TThemeColor;
darknessTheme?: TDarkness;
}
items: IMDItemProps[];
theme?: TThemeColor;

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

Дмитрий Малюгин
committed
darknessIconColor?: TDarkness;
direction?: TDirection;
// direction?: TDirection | 'circle';
min?: number;
max?: number;
step?: number;
darknessTheme?: TDarkness;
darknessNegativeTheme?: TDarkness;
colorAsTheme?: boolean;
fontSize?: string;
textBold?: boolean;
textBefore?: string;
textAfter?: string;
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;
headerDivider?: boolean;
footerDivider?: boolean;
}
export interface IModalProps {
theme?: TThemeColor;
darknessTheme?: TDarkness;
width?: string;
height?: string;
position?: TExpandedPosition;
dismissible?: 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;
src?: string;
file?: File;
width?: number;
height?: number;
menuPosition?: 'top' | 'right' | 'bottom' | 'left';
theme?: TThemeColor;
darknessTheme?: TDarkness;
export interface IColorPickerProps {
size?: TSize;
disabled?: boolean;
buttonProps?: IButtonProps;
sameButtonColor?: boolean;
}

Дмитрий Малюгин
committed
export interface ISelectProps {

Дмитрий Малюгин
committed
groups?: ISelectGroup[];
selected?: string;

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

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

Дмитрий Малюгин
committed
name?: string;
theme?: TThemeColor;
placeholderColor?: TThemeColor;
openIconColor?: TThemeColor;

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

Дмитрий Малюгин
committed
disabled?: boolean;
noBorder?: boolean;
noSelectedBackground?: boolean;
noBackground?: boolean;

Дмитрий Малюгин
committed
}
export interface IInputDivProps {
scheme?: TInputDivScheme;
size?: TSize;
secret?: boolean;
dashed?: boolean;
numbersOnly?: boolean;
bottomOnly?: boolean;
theme?: TThemeColor;
darknessTheme?: TDarkness;
textColor?: TThemeColor;
darknessTextColor?: TDarkness;
}
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;
max?: number;
width?: string;
height?: string;
size?: TSize;
fontSize?: string;
colorGaps?: IColorGap[];
colorInactiveGaps?: IColorGap[];
theme?: TThemeColor;
inactiveTheme?: TThemeColor;
darknessTheme?: TDarkness;
darknessInactiveTheme?: TDarkness;
showLabel?: boolean;
labelBefore?: string;
labelAfter?: string;
noBorder?: boolean;
}
}
export interface ITSProps {
size?: TSize;
theme?: TThemeColorNoWhite;
negativeTheme?: TThemeColor;
darknessTheme?: TDarkness;
darknessNegativeTheme?: TDarkness;
active?: boolean;
duration?: number | false;
type?: TToastType;
theme?: TThemeColor;
size?: TSize;
text?: string;
header?: string;
icon?: TIcon;
position?: Exclude<TExpandedPosition, 'left' | 'right'>;
export interface ITagProps {
value?: string;
size?: TSize;
rounded?: boolean;
theme?: TThemeColor;
background?: TThemeColor;
border?: TThemeColor;
darknessTheme?: TDarkness;
darknessBackground?: TDarkness;
darknessBorder?: TDarkness;
}
active?: boolean;
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;