/// import './CardLink.css'; import '../../Doc/Colors/Colors.css'; import '../../../assets/css/common.css'; import '../../Doc/Typographies/Typography.css'; interface CardLinkTypes { title: string; address?: string; subtitle?: string; price?: string; urlImg?: string; altImg?: string; icon?: string; disabled?: boolean; color?: string; colorHover?: string; colorPrice?: string; backgroundColor?: string; backgroundColorHover?: string; backgroundColorDisabled?: string; addClass?: string; borderRadius?: string; dataTestId?: string; onClick?: () => void; } /** ##Utilisation: * * Le composant CardLink est utilisé pour réprésenter une valeur que l'utilisateur peut sélectionner. * * ### Props à implémenter obligatoirement : * * - title : texte principal, centré verticalement quand seul, sinon toujours au dessus. * * ### Props facultatives : * - color: couleur principale des texte de la card; * - colorHover: couleur principale des texte de la card au hover; * - backgroundColor: couleur de fond de la card; * - backgroundColorHover: couleur de fond de la card au hover; * - subtitle : ajoute une ligne de texte à la card de taille moyenne * - address : ajoute une ligne de texte à la card de petite taille * - urlImg : url de l'image à afficher à gauche de la card * - altImg : texte alternatif de l'image à afficher * - icon : valeur "add" si l'on veut ajouter un icon "+" à droite du composant et "arrow" si l'on veut ajouter un chevron pointant vers la droite * - price : à utiliser avec subtitle, ajoute du texte après subtitle * - colorPrice : défini la couleur du texte de price * - addClass : permet d'ajouter une ou plusieurs classes css au composant * - onClick : fonction qui se déclenchera si on clique sur la card * - disabled : désactive la card * - backgroundColorDisabled : défini la couleur de la card lorsqu'elle est disabled * - dataTestId : attribut à renseigner pour que le composant soit facilement ciblable avec Playwright * * ## Exemple d'usage: * ```jsx * * * ``` */ export declare function CardLink({ title, subtitle, address, urlImg, altImg, icon, price, onClick, disabled, color, colorHover, colorPrice, backgroundColor, backgroundColorHover, addClass, dataTestId, borderRadius, backgroundColorDisabled, }: CardLinkTypes): JSX.Element; export declare namespace CardLink { var defaultProps: { color: string; backgroundColor: string; backgroundColorHover: string; colorPrice: string; icon: string; borderRadius: string; address: string; subtitle: string; price: string; urlImg: string; altImg: string; disabled: boolean; onClick: undefined; colorHover: string; addClass: string; dataTestId: string; backgroundColorDisabled: string; }; } export default CardLink;