UNPKG

@up-group-ui/react-controls

Version:
18 lines 598 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStyles = void 0; var typestyle_1 = require("typestyle"); var defaultProps = { color: '#000', textAlign: 'center', }; var getStyles = function (props) { var _a; return (0, typestyle_1.style)({ textAlign: props.textAlign || defaultProps.textAlign, color: props.color || ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.colorMap.primary) || defaultProps.color, display: 'inline-block', }); }; exports.getStyles = getStyles; //# sourceMappingURL=styles.js.map