<commit_before>"use strict";

import React, {Component} from 'react';
import {extend} from 'underscore';
import style from '../style/placeholder';

/**
 * Placeholder component.
 *
 * This component should be used together with Belle's Select.
 */
export default class Placeholder extends Component {

  constructor (properties) {
    super(properties);
  }

  render () {
    const computedStyle = extend({}, style.placeholderStyle, this.props.style);

    return (
      <div style={ computedStyle }>
        { this.props.children }
      </div>
    );
  }
}

Placeholder.propTypes = {
  style: React.PropTypes.object
};

Placeholder.displayName = 'Belle Placeholder';
<commit_msg>feat(Placeholder): allow to provide any kind of property to the Placeholder<commit_after>"use strict";

import React, {Component} from 'react';
import {extend, omit} from 'underscore';
import style from '../style/placeholder';

/**
 * Placeholder component.
 *
 * This component should be used together with Belle's Select.
 */
export default class Placeholder extends Component {

  constructor (properties) {
    super(properties);
    this.state = {
      childProperties: omit(properties, 'style')
    };
  }

  render () {
    const computedStyle = extend({}, style.placeholderStyle, this.props.style);

    return (
      <div style={ computedStyle } {...this.state.childProperties}>
        { this.props.children }
      </div>
    );
  }
}

Placeholder.propTypes = {
  style: React.PropTypes.object
};

Placeholder.displayName = 'Belle Placeholder';

{'fraction_non_alphanumeric': 0.127190136275146, 'fraction_numerical': 0.0, 'mean_word_length': 3.5352941176470587, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3688792', 'n_tokens_mistral': 442, 'n_tokens_neox': 427, 'n_words': 122}