@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.
43 lines (39 loc) • 1.21 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 BaseProps = {
variants: 'neutral' | 'positive' | 'informative' | 'warning' | 'negative';
};
type HighlightProps = {
type: 'highlight';
iconName: TIconProps['symbol'];
};
type IconProps = {
type: 'icon';
iconName: TIconProps['symbol'];
};
type TextProps = {
type: 'text';
iconName?: never;
};
type CardInformativeProps = (HighlightProps | IconProps | TextProps) & BaseProps;
type CardInformativeRootProps = CardInformativeProps & {
children: React.ReactNode;
};
declare const CardInformative: {
Root: {
(props: CardInformativeRootProps): react_jsx_runtime.JSX.Element;
displayName: string;
};
Content: (props: {
children: React.ReactNode;
}) => react_jsx_runtime.JSX.Element;
Title: (props: {
children: React.ReactNode;
}) => react_jsx_runtime.JSX.Element;
Description: (props: {
children: React.ReactNode;
}) => react_jsx_runtime.JSX.Element;
};
export { CardInformative, type CardInformativeProps };