Sha256: f4c9d491557fc30f29652080ceb51f891caa5689102ec843cc1d2fadc5a84e02

Contents?: true

Size: 912 Bytes

Versions: 8

Compression:

Stored size: 912 Bytes

Contents

(function() {
  Rev.registerComponent('Input', {
    getDefaultProps: function() {
      return {
        dom: "input"
      };
    },
    render: function() {
      var dom, inputClassName, inputProps, labelClassName;
      labelClassName = this.cx({
        'RevInput': true,
        'RevInput--label': true,
        'error': this.props.error
      });
      inputProps = this.getPropsWithout('error', 'className');
      inputClassName = this.cx({
        'RevInput--input': true,
        'error': this.props.error
      });
      dom = this.props.dom;
      return React.createElement("label", {
        "className": labelClassName
      }, this.props.label, React.createElement(dom, _(inputProps).extend({
        className: inputClassName
      })), (this.props.error ? React.createElement("small", {
        "className": "RevError error"
      }, this.props.error) : void 0));
    }
  });

}).call(this);

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
revelry_core-0.1.12.4 spec/dummy/tmp/jasmine/assets/revelry/ui/forms/Input.self.js
revelry_core-0.1.12.2 spec/dummy/tmp/jasmine/assets/revelry/ui/forms/Input.self.js
revelry_core-0.1.11.6 spec/dummy/tmp/jasmine/assets/revelry/ui/forms/Input.self.js
revelry_core-0.1.10.1 spec/dummy/tmp/jasmine/assets/revelry/ui/forms/Input.self.js
revelry_core-0.1.10.0 spec/dummy/tmp/jasmine/assets/revelry/ui/forms/Input.self.js
revelry_core-0.1.9.1 spec/dummy/tmp/jasmine/assets/revelry/ui/forms/Input.self.js
revelry_core-0.1.9.0 spec/dummy/tmp/jasmine/assets/revelry/ui/forms/Input.self.js
revelry_core-0.1.8.0 spec/dummy/tmp/jasmine/assets/revelry/ui/forms/Input.self.js