UNPKG

@undp/design-system-react

Version:

React based design system for UNDP

86 lines (55 loc) 3.06 kB
import { ClassProp } from 'class-variance-authority/types'; import { JSX } from 'react/jsx-runtime'; import { MessageScroller as MessageScroller_2 } from '@shadcn/react/message-scroller'; import type * as React_2 from 'react'; import { useMessageScroller } from '@shadcn/react/message-scroller'; import { useMessageScrollerScrollable } from '@shadcn/react/message-scroller'; import { useMessageScrollerVisibility } from '@shadcn/react/message-scroller'; import { VariantProps } from 'class-variance-authority'; 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 function MessageScroller({ className, ...props }: React_2.ComponentProps<typeof MessageScroller_2.Root>): JSX.Element; export declare function MessageScrollerButton({ direction, className, children, render, variant, size, ...props }: React_2.ComponentProps<typeof MessageScroller_2.Button> & Pick<React_2.ComponentProps<typeof Button>, 'variant' | 'size'>): JSX.Element; export declare function MessageScrollerContent({ className, ...props }: React_2.ComponentProps<typeof MessageScroller_2.Content>): JSX.Element; export declare function MessageScrollerItem({ className, scrollAnchor, ...props }: React_2.ComponentProps<typeof MessageScroller_2.Item>): JSX.Element; export declare function MessageScrollerProvider(props: React_2.ComponentProps<typeof MessageScroller_2.Provider>): JSX.Element; export declare function MessageScrollerViewport({ className, ...props }: React_2.ComponentProps<typeof MessageScroller_2.Viewport>): JSX.Element; export { useMessageScroller } export { useMessageScrollerScrollable } export { useMessageScrollerVisibility } 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; }