UNPKG

@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>

43 lines (36 loc) 1.35 kB
'use strict'; 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 FormControl = require('@mui/material/FormControl'); function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } var FormControl__default = /*#__PURE__*/_interopDefaultLegacy(FormControl); /** * Styles */ var StyledLabel = styles.styled(FormControl__default["default"])(function (_a) { var _b; var theme = _a.theme; return (_b = { paddingTop: theme.spacing(4.5), paddingBottom: theme.spacing(3.5), borderBottom: "1px solid " + theme.palette.gray[500], ".MuiFormControl-root": { marginBottom: theme.spacing(1) } }, _b[theme.breakpoints.down("sm")] = { paddingTop: theme.spacing(2), paddingBottom: theme.spacing(1) }, _b); }); /** * Components */ var Fieldset = 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"] = Fieldset;