vs-form-mui-4x
Version:
A schema-based form generator component for React using material-ui 4.x
72 lines (67 loc) • 2.18 kB
JavaScript
;
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = require('react');
var React__default = _interopDefault(React);
require('lodash/capitalize');
require('lodash/cloneDeep');
require('lodash/get');
require('lodash/has');
require('lodash/isArray');
require('lodash/isDate');
require('lodash/isBoolean');
require('lodash/isEmpty');
require('lodash/isFunction');
require('lodash/isInteger');
require('lodash/isNull');
require('lodash/isNumber');
require('lodash/isObject');
require('lodash/isPlainObject');
require('lodash/isRegExp');
require('lodash/isString');
require('lodash/isUndefined');
require('lodash/merge');
require('lodash/set');
require('lodash/toInteger');
require('lodash/toNumber');
require('lodash/trimEnd');
require('lodash/uniq');
require('lodash/debounce');
require('lodash/throttle');
var index = require('./index-7e71e00b.js');
require('@material-ui/core/FormControl');
require('@material-ui/core/FormHelperText');
require('@material-ui/core/FormLabel');
require('@material-ui/core/TextField');
require('@material-ui/core/InputAdornment');
require('@material-ui/core/Tooltip');
require('@material-ui/core/styles');
var classNames = _interopDefault(require('classnames'));
require('@material-ui/core/Icon');
require('@material-ui/core/SvgIcon');
require('date-fns');
require('events');
require('@material-ui/core/Typography');
require('@material-ui/core/Grid');
require('@material-ui/core/IconButton');
const styles = {
textPaddingTop: {
paddingTop: '1em'
}
};
class VsText extends React.Component {
constructor(props) {
super(props);
this.TypographyProps = {};
this.initProps();
}
get comp() { return this.props.comp; }
render() {
return (React.createElement(index.Text, Object.assign({ text: this.comp.text }, this.TypographyProps)));
}
initProps() {
this.TypographyProps = this.comp.props;
this.TypographyProps.className = classNames(this.props.classes.textPaddingTop, this.TypographyProps.className);
}
}
exports.default = VsText;
exports.styles = styles;