@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.
41 lines (37 loc) • 1.28 kB
text/typescript
import * as react_jsx_runtime from 'react/jsx-runtime';
import { T as TIconProps } from '../../deprecated-C8F8FhFr.cjs';
import '@raiadrogasil/pulso-design-tokens';
import '@raiadrogasil/pulso-icons';
type SnackbarTypes = 'brand-accent' | 'informative' | 'success' | 'warning' | 'danger';
type SnackbarBaseProps = {
children?: React.ReactNode;
type: SnackbarTypes;
duration?: number;
buttonLabel?: string;
};
type SnackbarWithLayout = {
layout?: 'with-button' | 'with-link';
onClickFooter: () => void;
};
type SnackbarWithoutLayout = {
layout?: never;
onClickFooter?: () => void;
};
type SnackbarProps = (SnackbarWithLayout | SnackbarWithoutLayout) & SnackbarBaseProps;
type SnackbarRootProps = SnackbarProps;
declare const Snackbar: {
Root: {
(props: SnackbarRootProps): react_jsx_runtime.JSX.Element;
displayName: string;
};
Content: (props: {
title?: string;
description: string;
onClickAction?: () => void;
closable?: boolean;
iconName?: TIconProps["symbol"];
}) => react_jsx_runtime.JSX.Element;
Footer: (props: {}) => react_jsx_runtime.JSX.Element | undefined;
Timebar: (props: {}) => react_jsx_runtime.JSX.Element;
};
export { Snackbar, type SnackbarProps };