UNPKG

react-base-guide

Version:

react ui components

22 lines 713 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const getBorderColor = (p) => { if (p.disabled || p.$disabled) { return p.theme.palette.element.border; } if (p.error || p.$error) { return p.theme.palette.element.error; } if (p.warning || p.$warning) { return p.theme.palette.element.warning; } if (p.success || p.$success) { return p.theme.palette.element.success; } if (p.hover || p.focus || p.$hover || p.$focus) { return p.theme.palette.element.primary; } return p.theme.palette.element.border; }; exports.default = getBorderColor; //# sourceMappingURL=get-border-color.js.map