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

79 lines 2.79 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var typestyle_1 = require("typestyle"); var theming_1 = require("../../../Common/theming/"); var utils_1 = require("../../../Common/theming/utils"); exports.display1LeftGreyLevel1 = { fontFamily: 'Roboto', fontWeight: 500, textAlign: 'left', color: theming_1.UpThemeColorMap.gray1, }; exports.body1RightGreyLevel1 = { fontFamily: 'Roboto', textAlign: 'left', color: theming_1.UpThemeColorMap.gray1, }; exports.body1CenterGreyLevel1 = { fontFamily: 'Roboto', fontSize: '1vw', textAlign: 'center', color: theming_1.UpThemeColorMap.gray1, }; exports.CircularProgressStyle = typestyle_1.style({ position: 'absolute', top: 0, left: 0, }); exports.CompletedCircularProgressStyle = typestyle_1.style({ zIndex: 5, }); exports.WrapperCircularProgressStyle = typestyle_1.style({ position: 'relative', display: 'block', margin: 'auto', $nest: { '&:after': {}, svg: { position: 'absolute', top: 0, left: 0, transform: 'rotate(-90deg)', }, '& svg > circle': { strokeDasharray: [0], transition: 'all 1s linear', }, }, }); exports.DefaultValueLabelStyle = function (props) { return (tslib_1.__assign(tslib_1.__assign({}, exports.display1LeftGreyLevel1), { $nest: { '.up-progress-value': { fontSize: utils_1.toRem(props.size / 6), marginRight: utils_1.toRem(2), }, '.up-progress-value-max': { fontSize: utils_1.toRem(props.size / 7), } } })); }; exports.DefaultUniteStyle = function (props) { return (tslib_1.__assign(tslib_1.__assign({}, exports.display1LeftGreyLevel1), { fontSize: utils_1.toRem(props.size / 7) })); }; exports.DefaultWrapperValueLabelStyle = typestyle_1.style(tslib_1.__assign(tslib_1.__assign({}, exports.body1RightGreyLevel1), { marginBottom: utils_1.toRem(8), textAlign: 'center' })); exports.LabelCircularProgressStyle = function (props) { var fullSize = props.size + 20; return typestyle_1.style({ position: 'absolute', top: utils_1.toRem((fullSize / 2) - (fullSize / 8) + 10), left: utils_1.toRem(props.thickness + (fullSize / 10) + 5), right: 0, width: utils_1.toRem(fullSize - props.thickness + 2 - (fullSize / 10)), textAlign: 'center', }); }; exports.TooltipCircularProgressStyle = function (props) { return typestyle_1.style({ width: '100%', textAlign: 'center', padding: utils_1.toRem(8), }); }; //# sourceMappingURL=styles.js.map