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.

55 lines (47 loc) 2.26 kB
import * as react_jsx_runtime from 'react/jsx-runtime'; import { Popover, PopoverTrigger } from '@ark-ui/react/popover'; import { Assign } from '@ark-ui/react'; import React__default from 'react'; import { ark } from '@ark-ui/react/factory'; import { B as ButtonRootProps } from '../../button-root-BYIIM3Zt.js'; import { T as TagProps } from '../../tag.types-Cnjrtd38.js'; import 'tailwind-variants'; import 'tailwind-merge'; type PlacementType = NonNullable<PopoverRootProps['positioning']>['placement']; type PopoverSharedProps = { placement?: PlacementType; trigger?: React__default.ReactNode; hasButtonClose?: boolean; handleClickButtonClose?: () => void; }; type PopoverRootProps = Assign<React__default.ComponentProps<typeof Popover.Root>, PopoverSharedProps>; declare function PopoverRoot({ children, placement, trigger, hasButtonClose, handleClickButtonClose, open, ...props }: PopoverRootProps): react_jsx_runtime.JSX.Element; declare namespace PopoverRoot { var displayName: string; } type TitleProps = React.ComponentProps<typeof ark.span>; declare function PopoverTitle({ className, ...props }: TitleProps): react_jsx_runtime.JSX.Element; declare namespace PopoverTitle { var displayName: string; } type DescriptionProps = React.ComponentProps<typeof ark.span> & { hasPopoverButton?: boolean; }; declare function PopoverDescription({ className, hasPopoverButton, ...props }: DescriptionProps): react_jsx_runtime.JSX.Element; declare namespace PopoverDescription { var displayName: string; } type PopoverButtonProps = Omit<ButtonRootProps, 'variant' | 'full'>; declare function PopoverButton({ children, ...props }: PopoverButtonProps): react_jsx_runtime.JSX.Element; declare namespace PopoverButton { var displayName: string; } type PopoverTagProps = Omit<TagProps, 'variants'>; declare function PopoverTag({ children, ...props }: PopoverTagProps): react_jsx_runtime.JSX.Element; declare namespace PopoverTag { var displayName: string; } declare namespace namespace { export { PopoverButton as Button, PopoverDescription as Description, PopoverTitle as Label, PopoverRoot as Root, PopoverTag as Tag, PopoverTrigger as Trigger }; } export { namespace as Popover, type PopoverRootProps as PopoverProps };