{"size": 770, "ext": "js", "max_stars_repo_path": "lib/admin/api/input-plugins/checkbox.js", "max_stars_repo_name": "matiasgabrielgarcia/smocks", "max_stars_repo_stars_event_min_datetime": "2015-06-10T14:32:51.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-08T10:50:31.000Z", "max_issues_repo_path": "lib/admin/api/input-plugins/checkbox.js", "max_issues_repo_name": "matiasgabrielgarcia/smocks", "max_issues_repo_issues_event_min_datetime": "2016-01-21T01:52:23.000Z", "max_issues_repo_issues_event_max_datetime": "2017-08-30T16:38:31.000Z", "max_forks_repo_path": "lib/admin/api/input-plugins/checkbox.js", "max_forks_repo_name": "matiasgabrielgarcia/smocks", "max_forks_repo_forks_event_min_datetime": "2015-06-10T15:02:05.000Z", "max_forks_repo_forks_event_max_datetime": "2021-03-09T19:59:09.000Z"}
{"max_stars_count": 25, "max_issues_count": 17, "max_forks_count": 10, "avg_line_length": 35.0, "max_line_length": 156, "alphanum_fraction": 0.5714285714}
module.exports = {
  /*jshint multistr: true */
  ui: 'React.createClass({\n\
      displayName: "Checkbox",\n\
  \n\
    render: function () {\n\
      return React.createElement(InputItemWrapper, {\n\
        id: this.props.id, label: this.props.label },\n\
        React.DOM.div({className: "ui toggle checkbox"},\n\
          React.DOM.input({ id: \'input-\' + this.props.id, type: "checkbox", className: "hidden", name: this.props.id, defaultChecked: this.props.value,\n\
            onChange: this.onChange }),\n\
          React.DOM.label({htmlFor: \'input-\' + this.props.id}, this.props.value ? "yes" : "no")\n\
        )\n\
      );\n\
    },\n\
  \n\
    onChange: function (ev) {\n\
      this.props.onChange(ev.currentTarget.checked);\n\
    }\n\
  });'
};
