Skip to content

Commit

Permalink
run prepublishOnly
Browse files Browse the repository at this point in the history
  • Loading branch information
stevehu committed Jul 8, 2019
1 parent 28ea8ad commit 85fd9af
Show file tree
Hide file tree
Showing 29 changed files with 3,083 additions and 3,089 deletions.
557 changes: 269 additions & 288 deletions lib/Array.js

Large diffs are not rendered by default.

71 changes: 29 additions & 42 deletions lib/Checkbox.js
Original file line number Diff line number Diff line change
@@ -1,57 +1,44 @@
"use strict";

Object.defineProperty(exports, "__esModule", {
value: true
value: true
});
exports["default"] = void 0;

var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
/**
* Created by steve on 20/09/15.
*/
var _react = _interopRequireDefault(require("react"));

var _Checkbox = _interopRequireDefault(require("@material-ui/core/Checkbox"));

var _react = require("react");
var _FormGroup = _interopRequireDefault(require("@material-ui/core/FormGroup"));

var _react2 = _interopRequireDefault(_react);
var _FormControlLabel = _interopRequireDefault(require("@material-ui/core/FormControlLabel"));

var _Checkbox = require("@material-ui/core/Checkbox");
var _ComposedComponent = _interopRequireDefault(require("./ComposedComponent"));

var _Checkbox2 = _interopRequireDefault(_Checkbox);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

var _FormGroup = require("@material-ui/core/FormGroup");

var _FormGroup2 = _interopRequireDefault(_FormGroup);

var _FormControlLabel = require("@material-ui/core/FormControlLabel");

var _FormControlLabel2 = _interopRequireDefault(_FormControlLabel);

var _ComposedComponent = require("./ComposedComponent");

var _ComposedComponent2 = _interopRequireDefault(_ComposedComponent);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

var FormCheckbox = function FormCheckbox(_ref) {
var form = _ref.form,
value = _ref.value,
getLocalizedString = _ref.localization.getLocalizedString,
onChangeValidate = _ref.onChangeValidate;
return _react2.default.createElement(
_FormGroup2.default,
{ row: true },
_react2.default.createElement(_FormControlLabel2.default, _extends({
className: form.className,
label: form.title && getLocalizedString(form.title),
control: _react2.default.createElement(_Checkbox2.default, {
name: form.key.slice(-1)[0],
value: form.key.slice(-1)[0],
checked: value || false,
disabled: form.readonly,
onChange: onChangeValidate
})
}, form.otherProps))
);
var form = _ref.form,
value = _ref.value,
getLocalizedString = _ref.localization.getLocalizedString,
onChangeValidate = _ref.onChangeValidate;
return _react["default"].createElement(_FormGroup["default"], {
row: true
}, _react["default"].createElement(_FormControlLabel["default"], _extends({
className: form.className,
label: form.title && getLocalizedString(form.title),
control: _react["default"].createElement(_Checkbox["default"], {
name: form.key.slice(-1)[0],
value: form.key.slice(-1)[0],
checked: value || false,
disabled: form.readonly,
onChange: onChangeValidate
})
}, form.otherProps)));
};

exports.default = (0, _ComposedComponent2.default)(FormCheckbox);
var _default = (0, _ComposedComponent["default"])(FormCheckbox);

exports["default"] = _default;
Loading

0 comments on commit 85fd9af

Please sign in to comment.