text: import React, { Component } from 'react';
  import { Input } from '@arch-ui/input';
  
  export default class TextFilterView extends Component {
    handleChange = event => {
      const value = event.target.value;
      if (/^-?\d*\.?\d*$/.test(value)) {
        this.props.onChange(value);
      }
    };
  
    render() {
      const { filter, field, innerRef, value } = this.props;
  
      if (!filter) return null;
  
      const placeholder = field.getFilterLabel(filter);
  
      return (
        <Input onChange={this.handleChange} ref={innerRef} placeholder={placeholder} value={value} />
      );
    }
  }
  