@arche-mc2/arche-controls
Version:
We know that there are a ton of react UI library projects to choose from. Our hope with this one is to provide the next generation of react components that you can use to bootstrap your next project, or as a reference for building a UIKit. Read on to get
32 lines • 1.13 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var typestyle_1 = require("typestyle");
var csx_1 = require("csx");
var utils_1 = require("../../../Common/theming/utils");
var plainStyle = function (props) {
if (props.plain) {
return {
textDecoration: 'inherit',
lineHeight: 'inherit',
cursor: 'pointer',
};
}
return {
textDecoration: 'underline',
lineHeight: 'inherit',
cursor: 'pointer',
};
};
var colorStyle = function (props) {
return {
color: props.color || props.theme.colorMap.primary,
$nest: {
'&:hover': {
color: props.color ? csx_1.color(props.color).darken(0.1).toHexString() : props.theme.colorMap.primary,
},
},
};
};
exports.getStyles = function (props) { return (typestyle_1.style(tslib_1.__assign(tslib_1.__assign({ fontSize: utils_1.toRem(16), lineHeight: 1.5, fontWeight: 400 }, colorStyle(props)), plainStyle(props)))); };
//# sourceMappingURL=styles.js.map