UNPKG

@undp/design-system-react

Version:

React based design system for UNDP

95 lines (62 loc) 3.29 kB
import { ClassProp } from 'class-variance-authority/types'; import { JSX } from 'react/jsx-runtime'; import type * as React_2 from 'react'; import { VariantProps } from 'class-variance-authority'; export declare function Attachment({ className, state, size, orientation, ...props }: React_2.ComponentProps<'div'> & VariantProps<typeof attachmentVariants> & { state?: 'idle' | 'uploading' | 'processing' | 'error' | 'done'; }): JSX.Element; export declare function AttachmentAction({ variant, size, ...props }: React_2.ComponentProps<typeof Button>): JSX.Element; export declare function AttachmentActions({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element; export declare function AttachmentContent({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element; export declare function AttachmentDescription({ className, ...props }: React_2.ComponentProps<'span'>): JSX.Element; export declare function AttachmentGroup({ className, ...props }: React_2.ComponentProps<'div'>): JSX.Element; export declare function AttachmentMedia({ className, variant, ...props }: React_2.ComponentProps<'div'> & VariantProps<typeof attachmentMediaVariants>): JSX.Element; declare const attachmentMediaVariants: (props?: ({ variant?: "image" | "icon" | null | undefined; } & ClassProp) | undefined) => string; export declare function AttachmentTitle({ className, ...props }: React_2.ComponentProps<'span'>): JSX.Element; export declare function AttachmentTrigger({ className, asChild, type, ...props }: React_2.ComponentProps<'button'> & { asChild?: boolean; }): JSX.Element; declare const attachmentVariants: (props?: ({ size?: "default" | "xs" | "sm" | null | undefined; orientation?: "horizontal" | "vertical" | null | undefined; } & ClassProp) | undefined) => string; declare function Button({ className, variant, size, arrow, rounded, padding, asChild, ...props }: React_2.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & { asChild?: boolean; }): JSX.Element; declare const buttonVariants: (props?: ({ variant?: "link" | "error" | "warning" | "success" | "info" | "primary" | "secondary" | "tertiary" | "quaternary" | "surface" | "outline" | "icon" | "surface-hard" | "background" | "background-soft" | "foreground" | "foreground-soft" | null | undefined; arrow?: boolean | null | undefined; size?: "base" | "xs" | "sm" | "xl" | null | undefined; rounded?: "base" | "sm" | "md" | "lg" | "xl" | "2xl" | "full" | null | undefined; padding?: "base" | "sm" | "none" | null | undefined; } & ClassProp) | undefined) => string; export { } declare namespace BreadcrumbSeparator { var displayName: string; } declare namespace BreadcrumbEllipsis { var displayName: string; } declare namespace DialogHeader { var displayName: string; } declare namespace DialogFooter { var displayName: string; } declare namespace PaginationUnit { var displayName: string; } declare namespace PaginationLink { var displayName: string; } declare namespace PaginationPrevious { var displayName: string; } declare namespace PaginationNext { var displayName: string; } declare namespace PaginationEllipsis { var displayName: string; }