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

98 lines 3.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var lib_1 = require("typestyle/lib"); var utils_1 = require("../../../Common/theming/utils"); exports.boxUpload = lib_1.style({ border: '2px dashed #d7d7d7', $nest: { '&:hover': { borderColor: "#f39100", } } }); exports.boxUploaded = lib_1.style({ border: '1px solid', borderTopColor: '#d7d7d7', borderRightColor: '#d7d7d7', borderLeftColor: '#d7d7d7', borderBottomColor: '#F5F5F5', backgroundColor: '#F5F5F5', borderRadius: '4px 0x', }); exports.base = { fontFamily: 'Roboto', textAlign: 'center', cursor: 'pointer', width: '100%', borderTopRightRadius: '4px', borderTopLeftRadius: '4px', minHeight: utils_1.toRem(64), height: 'auto', marginTop: utils_1.toRem(8), position: 'relative', }; exports.baseStyle = function (bgSrc, theme) { return lib_1.style(tslib_1.__assign(tslib_1.__assign({}, exports.base), { maxWidth: "100%", backgroundImage: "url(" + bgSrc + ")", backgroundRepeat: "no-repeat", $nest: { "& canvas": { maxWidth: "100%", borderRadius: theme.borderRadius, } } })); }; exports.fileStyle = lib_1.style({ color: '#7a756f', textAlign: 'center', height: '100%', width: '100%', marginTop: utils_1.toRem(16), }); exports.wrapperDropStyle = lib_1.style({ width: '100%', }); exports.extensionsStyle = function (props) { return lib_1.style({ fontSize: utils_1.toRem(11), fontFamily: 'Roboto', color: props.theme.colorMap.darkGray5, }); }; exports.wrapperActionStyle = function (props) { return lib_1.style({ position: 'absolute', top: '1px', right: '1px', borderRadius: '4px', borderLeft: "1px solid " + props.theme.colorMap.primary, borderBottom: "1px solid " + props.theme.colorMap.primary, borderTopLeftRadius: 0, borderTopRightRadius: 0, borderBottomRightRadius: 0, background: props.theme.colorMap.white, $nest: { span: { marginRight: utils_1.toRem(4), }, }, }); }; exports.wrapperErrorsStyle = lib_1.style({ margin: utils_1.toRem(18) + " " + utils_1.toRem(9) }); exports.wrapperFileNameStyle = function (props) { return lib_1.style({ display: 'flex', justifyContent: 'space-between', borderRadius: '4px', borderLeft: "1px solid " + props.theme.colorMap.disabledFg, borderBottom: "1px solid " + props.theme.colorMap.disabledFg, borderRight: "1px solid " + props.theme.colorMap.disabledFg, borderTopLeftRadius: 0, borderTopRightRadius: 0, background: props.theme.colorMap.white, padding: utils_1.toRem(5) + " " + utils_1.toRem(15), $nest: { span: { marginRight: utils_1.toRem(4), textOverflow: 'ellipsis', fontSize: utils_1.toRem(15), color: '#4A4A4A', }, }, }); }; //# sourceMappingURL=styles.js.map