import PropTypes from 'prop-types';

// Graphic Style
export const graphicStylePropTypes = {
    size: PropTypes.string,
    customImage: PropTypes.object,
    imageSize: PropTypes.string,
    imageBackgroundColor: PropTypes.string,
    buttonAlignment: PropTypes.string,
    textAlignment: PropTypes.string,
    displayTitle: PropTypes.bool,
    displayDescription: PropTypes.bool,
    displayButton: PropTypes.bool,
    buttonType: PropTypes.string,
    imageCornerRadius: PropTypes.number,
    cardBorderColor: PropTypes.string,
    displayShadow: PropTypes.bool,
    displayBorder: PropTypes.bool,
    onHoverShadowOnly: PropTypes.bool,
    onHoverBorderOnly: PropTypes.bool,
    customLink: PropTypes.string,
    title: PropTypes.string,
    description: PropTypes.string,
    buttonLabel: PropTypes.string,
    titleColor: PropTypes.string,
    descriptionColor: PropTypes.string,
    shadowColor: PropTypes.string,
    defaultValues: PropTypes.shape({
        customImage: PropTypes.object,
        title: PropTypes.string,
        description: PropTypes.string,
        buttonLabel: PropTypes.string
    })
};

export const graphicStyleDefaultProps = {
    size: '',
    customImage: {},
    imageSize: '',
    imageBackgroundColor: '',
    buttonAlignment: '',
    textAlignment: '',
    displayTitle: true,
    displayDescription: true,
    displayButton: true,
    buttonType: '',
    imageCornerRadius: 0,
    cardBorderColor: '',
    displayShadow: true,
    displayBorder: true,
    onHoverShadowOnly: true,
    onHoverBorderOnly: true,
    customLink: '',
    title: '',
    description: '',
    buttonLabel: '',
    titleColor: '',
    descriptionColor: '',
    shadowColor: '',
    defaultValues: {}
};

// Horizontal Style
export const horizontalStylePropTypes = {
    ...graphicStylePropTypes,
    cardBackgroundColor: PropTypes.string,
    cardCornerRadius: PropTypes.number
};

export const horizontalStyleDefaultProps = {
    ...graphicStyleDefaultProps,
    cardBackgroundColor: '',
    cardCornerRadius: 0
};

// Card Style
export const cardStylePropTypes = {
    ...graphicStylePropTypes,
    displayUpperTitle: PropTypes.bool,
    upperTitleAlignment: PropTypes.string,
    cardBackgroundColor: PropTypes.string,
    imageMask: PropTypes.string,
    cardCornerRadius: PropTypes.number,
    upperTitle: PropTypes.string
};

export const cardStyleDefaultProps = {
    ...graphicStyleDefaultProps,
    displayUpperTitle: true,
    upperTitleAlignment: '',
    cardBackgroundColor: '',
    imageMask: '',
    cardCornerRadius: 0,
    upperTitle: ''
};
