UNPKG

@rdsaude/pulso-react-components

Version:

Biblioteca de componentes React do Pulso Design System da RD Saúde oferece componentes consistentes e de alto desempenho, alinhados com os padrões da RDSaúde. Ideal para desenvolver aplicações modernas e acessíveis.

32 lines (28 loc) 1.46 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import * as React from 'react'; import { Assign } from '@ark-ui/react'; import { ark } from '@ark-ui/react/factory'; import * as tailwind_variants from 'tailwind-variants'; import { VariantProps } from 'tailwind-variants'; import * as tailwind_merge from 'tailwind-merge'; declare const root: ((slotProps?: ({ size?: "md" | "lg" | "xl" | "ml" | undefined; variant?: "brand-primary" | "neutral-secondary" | "neutral-tertiary" | undefined; asIconOnly?: boolean | undefined; } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string) & ((slotProps?: ({ size?: "md" | "lg" | "xl" | "ml" | undefined; variant?: "brand-primary" | "neutral-secondary" | "neutral-tertiary" | undefined; asIconOnly?: boolean | undefined; } & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string); type ButtonSharedProps = Omit<VariantProps<typeof root>, 'asIconOnly'> & { disabled?: boolean; }; type ButtonRootProps = Assign<React.ComponentProps<typeof ark.button>, ButtonSharedProps> & { loading?: boolean; full?: boolean; }; declare function ButtonRoot({ children, className, variant, size, disabled, loading, asChild, full, ...props }: ButtonRootProps): react_jsx_runtime.JSX.Element; declare namespace ButtonRoot { var displayName: string; } export { type ButtonRootProps as B, type ButtonSharedProps as a, ButtonRoot as b };