UNPKG

@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

58 lines 3.29 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var typestyle_1 = require("typestyle"); var utils_1 = require("../../../Common/theming/utils"); exports.upToolTipWrapper = typestyle_1.style({ display: 'inline-block', $nest: { '& .up-icon-wrapper.colored:hover svg, & .up-icon-wrapper.colored:hover svg path,& .up-icon-wrapper.colored:hover svg polygon, & .up-icon-wrapper.colored:hover svg polyline': { fill: '#C47400' } } }); exports.getStyles = function (props) { return typestyle_1.style(tslib_1.__assign(tslib_1.__assign({ pointerEvents: 'auto', opacity: 0.95, padding: 0, background: '#4E5B59 !important', border: '1px #4E5B59 solid', borderRadius: props.theme.borderRadius ? props.theme.borderRadius : 'initial' }, (props.type && props.type !== 'light' && { background: props.theme.colorMap["" + props.type] + " !important", border: props.theme.colorMap["" + props.type] })), { $nest: { '& .up-tooltip-content': { padding: 0, margin: 0, color: 'white', }, '& .up-tooltip-header': { padding: utils_1.toRem(8) + " " + utils_1.toRem(14), margin: 0, borderBottom: '1px solid #ebebeb', borderRadius: 0, borderTopLeftRadius: props.theme.borderRadius, borderTopRightRadius: props.theme.borderRadius, fontWeight: 700, fontSize: utils_1.toRem(13), color: '#4d4f5c', background: '#f7f7f7' }, '& .up-tooltip-body': { padding: utils_1.toRem(8), fontSize: utils_1.toRem(14), lineHeight: 1.15, whiteSpace: 'pre-line' }, '&:hover': { visibility: 'visible', opacity: 1 }, '&.place-top:after': tslib_1.__assign(tslib_1.__assign({ borderTopColor: '#4E5B59 !important' }, (props.type && props.type !== 'light' && { borderTopColor: props.theme.colorMap["" + props.type] + " !important" })), { borderTopStyle: 'solid !important', borderTopWidth: '6px !important' }), '&.place-left:after': tslib_1.__assign(tslib_1.__assign({ borderLeftColor: '#4E5B59 !important' }, (props.type && props.type !== 'light' && { borderLeftColor: props.theme.colorMap["" + props.type] + " !important" })), { borderLeftStyle: 'solid !important', borderLeftWidth: '6px !important' }), '&.place-right:after': tslib_1.__assign(tslib_1.__assign({ borderRightColor: '#4E5B59 !important' }, (props.type && props.type !== 'light' && { borderRightColor: props.theme.colorMap["" + props.type] + " !important" })), { borderRightStyle: 'solid !important', borderRightWidth: '6px !important' }), '&.place-bottom:after': tslib_1.__assign(tslib_1.__assign({ borderBottomColor: '#4E5B59 !important' }, (props.type && props.type !== 'light' && { borderBottomColor: props.theme.colorMap["" + props.type] + " !important" })), { borderBottomStyle: 'solid !important', borderBottomWidth: '6px !important', left: '10% !important' }) } })); }; //# sourceMappingURL=styles.js.map