@up-group/react-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
21 lines • 2.12 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var themedComponents_1 = require("../../../Common/theming/themedComponents");
exports.sizeMap = {
auto: "40px",
small: "100px",
medium: "150px",
large: "250px",
xlarge: "350px"
};
var inline = (_a = ["\n .up-label-text{\n line-height: 30px;\n }\n >div,\n .up-input,\n .up-input-group,\n .up-select {\n display: inline-block;\n vertical-align: top; \n }\n .up-input-group .up-input {\n margin-left: 0; \n }\n"], _a.raw = ["\n .up-label-text{\n line-height: 30px;\n }\n >div,\n .up-input,\n .up-input-group,\n .up-select {\n display: inline-block;\n vertical-align: top; \n }\n .up-input-group .up-input {\n margin-left: 0; \n }\n"], themedComponents_1.css(_a));
var base = function (props) {
return (_a = ["\n display: block;\n margin: 0 0 8px;\n .up-label-text {\n text-align: ", ";\n width: ", ";\n margin-right:8px;\n display: inline-block;\n }\n .up-input,\n .up-select {\n display: block;\n text-transform: none; \n }\n .up-select select {\n width: 100%;\n vertical-align: top;\n font-weight: 400; \n }\n .pt-button-group.pt-vertical {\n margin-top:0px;\n }\n"], _a.raw = ["\n display: block;\n margin: 0 0 8px;\n .up-label-text {\n text-align: ", ";\n width: ", ";\n margin-right:8px;\n display: inline-block;\n }\n .up-input,\n .up-select {\n display: block;\n text-transform: none; \n }\n .up-select select {\n width: 100%;\n vertical-align: top;\n font-weight: 400; \n }\n .pt-button-group.pt-vertical {\n margin-top:0px;\n }\n"], themedComponents_1.css(_a, props.textAlign, exports.sizeMap[props.width]));
var _a;
};
exports.LabelStyled = (_b = ["\n ", "\n ", "\n"], _b.raw = ["\n ", "\n ", "\n"], themedComponents_1.default.label(_b, function (props) { return base(props); }, function (props) {
return props.inline ? inline : (_a = [""], _a.raw = [""], themedComponents_1.css(_a));
var _a;
}));
var _a, _b;
//# sourceMappingURL=styles.js.map