Skip to content

Commit

Permalink
chore: implement new worksapace wrapper for global views (#2412)
Browse files Browse the repository at this point in the history
* chore: implement new worksapace wrapper for global views pages

* fix: merge conflicts

* fix: merge conflicts
  • Loading branch information
aaryan610 committed Oct 11, 2023
1 parent 67b2821 commit 265e60a
Show file tree
Hide file tree
Showing 18 changed files with 1,875 additions and 269 deletions.
74 changes: 74 additions & 0 deletions packages/ui/dist/index.d.ts
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 };
Loading

0 comments on commit 265e60a

Please sign in to comment.