-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: implement new worksapace wrapper for global views (#2412)
* chore: implement new worksapace wrapper for global views pages * fix: merge conflicts * fix: merge conflicts
- Loading branch information
Showing
18 changed files
with
1,875 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
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 }; |
Oops, something went wrong.