import { AnchorHTMLAttributes } from 'react'; import { ButtonHTMLAttributes } from 'react'; import { ChangeEventHandler } from 'react'; import { ClassValue } from 'clsx'; import { FocusEventHandler } from 'react'; import { ForwardRefExoticComponent } from 'react'; import { InputHTMLAttributes } from 'react'; import { JSX } from 'react/jsx-runtime'; import { MouseEventHandler } from 'react'; import { ReactNode } from 'react'; import { RefAttributes } from 'react'; export declare const Alignment: { readonly START: "start"; readonly CENTER: "center"; readonly END: "end"; }; export declare const Breakpoint: { SM: string; MD: string; LG: string; XL: string; }; export declare const Button: ForwardRefExoticComponent>; export declare const ButtonIcon: ForwardRefExoticComponent>; export declare type ButtonIconProps = { size?: 1 | 2 | 3; onClick?: MouseEventHandler; children?: ReactNode; }; export declare type ButtonProps = { type?: ButtonHTMLAttributes["type"]; color?: ValueOf; isDisabled?: boolean; isLoading?: boolean; onClick?: MouseEventHandler; children?: ReactNode; }; export declare const CenterLayout: ({ children }: CenterLayoutProps) => JSX.Element; export declare type CenterLayoutProps = { children?: ReactNode; }; export declare const Checkbox: ForwardRefExoticComponent>; export declare type CheckboxProps = { label?: string; isChecked?: boolean; isDisabled?: boolean; isError?: boolean; onChange?: ChangeEventHandler; onBlur?: FocusEventHandler; }; export declare const cn: (...inputs: ClassValue[]) => string; export declare const Color: { readonly NEUTRAL: "neutral"; readonly PRIMARY: "primary"; readonly INFO: "info"; readonly WARNING: "warning"; readonly ERROR: "error"; readonly SUCCESS: "success"; }; export declare const Dialog: ({ id, color, title, description, onConfirm, onCancel, }: DialogProps) => JSX.Element; export declare type DialogProps = { id?: string; color?: ValueOf; title?: string; description?: string; onConfirm?: () => void; onCancel?: () => void; }; export declare const Dialogs: () => JSX.Element; export declare const Direction: { readonly TOP: "top"; readonly BOTTOM: "bottom"; readonly LEFT: "left"; readonly RIGHT: "right"; }; export declare const Drawer: ({ position, trigger, children }: DrawerProps) => JSX.Element; export declare type DrawerProps = { position?: ValueOf>; trigger?: ReactNode; children?: ReactNode; }; export declare const Dropdown: ({ align, position, trigger, children }: DropdownProps) => JSX.Element; export declare const DropdownDivider: () => JSX.Element; export declare const DropdownItem: ({ icon, onSelect, children }: DropdownItemProps) => JSX.Element; export declare type DropdownItemProps = { icon?: ReactNode; onSelect?: (event: Event) => void; children?: ReactNode; }; declare type DropdownProps = { align?: ValueOf; position?: ValueOf; trigger?: ReactNode; children?: ReactNode; }; export declare const ErrorPage: () => JSX.Element; export declare const Input: ForwardRefExoticComponent>; export declare const InputPassword: ForwardRefExoticComponent>; export declare type InputPasswordProps = InputProps; export declare type InputProps = { type?: InputHTMLAttributes["type"]; label?: string; icon?: { left?: ReactNode; right?: ReactNode; }; placeholder?: string; value?: string; error?: string; isDisabled?: boolean; isError?: boolean; onChange?: ChangeEventHandler; onBlur?: FocusEventHandler; }; export declare const InputText: ForwardRefExoticComponent>; export declare type InputTextProps = InputProps; export declare const Label: ({ htmlFor, children }: LabelProps) => JSX.Element; export declare type LabelProps = { htmlFor?: string; children?: ReactNode; }; export declare const Link: ({ target, href, onClick, children }: LinkProps) => JSX.Element; export declare type LinkProps = { target?: AnchorHTMLAttributes["target"]; href?: string; onClick?: MouseEventHandler; children?: ReactNode; }; export declare const Nav: ({ children }: NavProps) => JSX.Element; export declare const NavItem: ({ target, href, icon, isActive, onClick, children, }: NavItemProps) => JSX.Element; export declare type NavItemProps = { target?: AnchorHTMLAttributes["target"]; href?: string; icon?: ReactNode; isActive?: boolean; onClick?: MouseEventHandler; children?: ReactNode; }; export declare type NavProps = { children?: ReactNode; }; export declare const NotFoundPage: () => JSX.Element; export declare const SignInPage: () => JSX.Element; export declare const Spinner: ({ theme }: SpinnerProps) => JSX.Element; export declare type SpinnerProps = { theme?: ValueOf; }; declare const Text_2: ForwardRefExoticComponent>; export { Text_2 as Text } export declare type TextProps = { color?: ValueOf; children?: ReactNode; }; export declare const Theme: { readonly LIGHT: "light"; readonly DARK: "dark"; }; export declare const Title: ForwardRefExoticComponent>; export declare type TitleProps = { order?: 1 | 2 | 3 | 4 | 5 | 6; isCenter?: boolean; children?: ReactNode; }; export declare const Toast: ({ id, color, title, description, duration, isLoading, }: ToastProps) => JSX.Element; export declare type ToastProps = { id?: string; color?: ValueOf; title?: string; description?: string; duration?: number; isLoading?: boolean; }; export declare const Toasts: () => JSX.Element; export declare const Tooltip: ({ position, content, children }: TooltipProps) => JSX.Element; export declare type TooltipProps = { position?: ValueOf; content?: ReactNode; children?: ReactNode; }; export declare const useBreakpoint: () => { sm: boolean; md: boolean; lg: boolean; xl: boolean; }; export declare const useDialog: () => { dialogs: DialogProps[]; open: (dialog: DialogProps) => string; close: (id: string) => void; }; export declare const useToast: () => { toasts: ToastProps[]; add: (toast: ToastProps) => string; remove: (id: string) => void; }; /** * Returns the union of all the values of a given object type. */ export declare type ValueOf = T extends any ? T[keyof T] : never; export { }