forked from github/plane
265e60a536
* chore: implement new worksapace wrapper for global views pages * fix: merge conflicts * fix: merge conflicts
75 lines
2.3 KiB
TypeScript
75 lines
2.3 KiB
TypeScript
import * as React from 'react';
|
|
import React__default, { FC } from 'react';
|
|
|
|
declare type TButtonVariant = "primary" | "accent-primary" | "outline-primary" | "neutral-primary" | "link-primary" | "danger" | "accent-danger" | "outline-danger" | "link-danger" | "tertiary-danger";
|
|
|
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
variant?: TButtonVariant;
|
|
size?: "sm" | "md" | "lg";
|
|
className?: string;
|
|
loading?: boolean;
|
|
disabled?: boolean;
|
|
appendIcon?: any;
|
|
prependIcon?: any;
|
|
children: React.ReactNode;
|
|
}
|
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
|
|
interface IToggleSwitchProps {
|
|
value: boolean;
|
|
onChange: (value: boolean) => void;
|
|
label?: string;
|
|
size?: "sm" | "md" | "lg";
|
|
disabled?: boolean;
|
|
className?: string;
|
|
}
|
|
declare const ToggleSwitch: React.FC<IToggleSwitchProps>;
|
|
|
|
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
mode?: "primary" | "transparent" | "true-transparent";
|
|
inputSize?: "sm" | "md";
|
|
hasError?: boolean;
|
|
className?: string;
|
|
}
|
|
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
|
|
interface TextAreaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
mode?: "primary" | "transparent";
|
|
hasError?: boolean;
|
|
className?: string;
|
|
}
|
|
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
|
|
interface IRadialProgressBar {
|
|
progress: number;
|
|
}
|
|
declare const RadialProgressBar: FC<IRadialProgressBar>;
|
|
|
|
declare type Props$1 = {
|
|
maxValue?: number;
|
|
value?: number;
|
|
radius?: number;
|
|
strokeWidth?: number;
|
|
activeStrokeColor?: string;
|
|
inactiveStrokeColor?: string;
|
|
};
|
|
declare const ProgressBar: React__default.FC<Props$1>;
|
|
|
|
declare const Spinner: React.FC;
|
|
|
|
declare type Props = {
|
|
children: React__default.ReactNode;
|
|
className?: string;
|
|
};
|
|
declare const Loader: {
|
|
({ children, className }: Props): JSX.Element;
|
|
Item: React__default.FC<ItemProps>;
|
|
displayName: string;
|
|
};
|
|
declare type ItemProps = {
|
|
height?: string;
|
|
width?: string;
|
|
};
|
|
|
|
export { Button, ButtonProps, Input, InputProps, Loader, ProgressBar, RadialProgressBar, Spinner, TextArea, TextAreaProps, ToggleSwitch };
|