@vlinderclimate/net-zero-ui
Version:
<div align="center"> <img src="https://storage.yandexcloud.net/static.vlinderstorage.com/Telegram_VlinderTech.png" width=200 /> </div> <h1 align="center">Net Zero UI kit</h1>
40 lines (33 loc) • 1.54 kB
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var tslib_es6 = require('../tslib.es6-9240d9d1.js');
var jsxRuntime = require('react/jsx-runtime');
var styles = require('@mui/material/styles');
var FormControlLabelGroup = require('@mui/material/FormControlLabel');
var theme_typography = require('../theme/typography.js');
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var FormControlLabelGroup__default = /*#__PURE__*/_interopDefaultLegacy(FormControlLabelGroup);
/**
* Styles
*/
var StyledLabel = styles.styled(FormControlLabelGroup__default["default"])(function (_a) {
var _b, _c;
var theme = _a.theme;
return (_b = {
color: theme.palette.gray[700] + " !important",
position: "relative",
marginRight: 0,
marginLeft: 0,
".MuiFormControlLabel-label": tslib_es6.__assign(tslib_es6.__assign({}, theme_typography["default"].caption.main), (_c = { color: "inherit !important" }, _c[theme.breakpoints.down("sm")] = tslib_es6.__assign({}, theme_typography["default"].caption.mobile), _c))
},
_b[theme.breakpoints.down("sm")] = {},
_b);
});
/**
* Components
*/
var FormControlLabel = function (_a) {
var children = _a.children, rest = tslib_es6.__rest(_a, ["children"]);
return jsxRuntime.jsx(StyledLabel, tslib_es6.__assign({}, rest, { children: children }), void 0);
};
exports["default"] = FormControlLabel;