'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var index = require('../../../utils/index.js');

const errorMessage = 'Error, incorrect variant. Use the correct value for variants';
const getBorderColor = (variant) => {
    switch (variant) {
        case 'neutral':
            return index.getColorAlias('containerInverse');
        case 'info':
            return index.getColorAlias('supportInfoInverse');
        case 'positive':
            return index.getColorAlias('supportPositiveInverse');
        case 'warning':
            return index.getColorAlias('supportWarning');
        case 'error':
            return index.getColorAlias('supportError');
        default:
            console.warn(errorMessage);
            return '';
    }
};
const getIconFill = (variant) => {
    switch (variant) {
        case 'neutral':
            return index.getColorAlias('containerDefault');
        case 'info':
            return index.getColorAlias('supportInfoInverse');
        case 'positive':
            return index.getColorAlias('supportPositiveInverse');
        case 'warning':
            return index.getColorAlias('supportWarning');
        case 'error':
            return index.getColorAlias('supportError');
        default:
            console.warn(errorMessage);
            return '';
    }
};
const getAriaRole = (variant) => {
    switch (variant) {
        case 'info':
        case 'neutral':
        case 'positive':
            return 'status';
        case 'warning':
        case 'error':
            return 'alert';
        default:
            return 'alert';
    }
};

exports.getAriaRole = getAriaRole;
exports.getBorderColor = getBorderColor;
exports.getIconFill = getIconFill;
