"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports["default"] = void 0;
var _locale = require("../../src/locale");
var _snippets = _interopRequireDefault(require("./snippets"));
var _default = exports["default"] = {
  snippets: _snippets["default"],
  componentName: 'Input.TextArea',
  "group": (0, _locale.t)('inputText-area.key_ibsMLLGc3qMU'),
  title: (0, _locale.t)('inputText-area.key_aLy0RryXNnpD'),
  category: (0, _locale.t)('inputText-area.key_4ofK92qtCu1U'),
  props: [{
    name: 'defaultValue',
    title: {
      label: (0, _locale.t)('inputText-area.key_QECUx6Kr9EHN'),
      tip: (0, _locale.t)('inputText-area.key_RCy8re0n0pHt')
    },
    propType: 'string',
    setter: 'TextAreaSetter'
  }, {
    name: 'value',
    title: {
      label: (0, _locale.t)('inputText-area.key_ODQrL7Gm31X5'),
      tip: (0, _locale.t)('inputText-area.key_rd86g0dfafkC')
    },
    propType: 'string',
    setter: 'TextAreaSetter'
  }, {
    name: 'bordered',
    title: {
      label: (0, _locale.t)('inputText-area.key_XPgTBFDzO75o'),
      tip: (0, _locale.t)('inputText-area.key_qeAEZ5gNV21r')
    },
    propType: 'bool',
    defaultValue: true,
    setter: 'BoolSetter'
  }, {
    name: 'disabled',
    title: {
      label: (0, _locale.t)('inputText-area.key_MAg1FdGRmqTe'),
      tip: (0, _locale.t)('inputText-area.key_lo0fFDDZT2zH')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'placeholder',
    title: {
      label: (0, _locale.t)('inputText-area.key_9MvmFNst7KGY'),
      tip: (0, _locale.t)('inputText-area.key_sCssSMOalsXL')
    },
    propType: 'string',
    defaultValue: (0, _locale.t)('inputText-area.key_faRSlXC5gmw8'),
    setter: 'StringSetter'
  }, {
    name: 'showCount',
    title: {
      label: (0, _locale.t)('inputText-area.key_tNJJ6tvL3NX5'),
      tip: (0, _locale.t)('inputText-area.key_OpNp2ng2zk7d')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'id',
    title: {
      label: (0, _locale.t)('inputText-area.key_n0O9KRmOs7lc'),
      tip: (0, _locale.t)('inputText-area.key_CjcjJ5WRKSsU')
    },
    propType: 'string',
    setter: 'StringSetter'
  }, {
    name: 'maxLength',
    title: {
      label: (0, _locale.t)('inputText-area.key_bzQ6sP2z6R9Y'),
      tip: (0, _locale.t)('inputText-area.key_5VloUBv9rnnf')
    },
    propType: 'number',
    setter: 'NumberSetter'
  }, {
    name: 'size',
    title: {
      label: (0, _locale.t)('inputText-area.key_4cFEzniD0CXh'),
      tip: (0, _locale.t)('inputText-area.key_JkwBjQQ953tl')
    },
    propType: {
      type: 'oneOf',
      value: ['large', 'middle', 'small']
    },
    setter: {
      componentName: 'RadioGroupSetter',
      props: {
        options: [{
          title: (0, _locale.t)('inputText-area.key_scxcCLTEun3a'),
          value: 'large'
        }, {
          title: (0, _locale.t)('inputText-area.key_hXnA3bRZt4bU'),
          value: 'middle'
        }, {
          title: (0, _locale.t)('inputText-area.key_rlPzaXZYmjT3'),
          value: 'small'
        }]
      }
    },
    defaultValue: 'middle'
  }, {
    name: 'autoSize',
    title: {
      label: (0, _locale.t)('inputText-area.key_KR0uZyuefXwL'),
      tip: (0, _locale.t)('inputText-area.key_1sJyzplFAcOR')
    },
    propType: {
      type: 'oneOfType',
      value: ['bool', {
        type: 'shape',
        value: [{
          name: 'minRows',
          title: (0, _locale.t)('inputText-area.key_PuuXsEOkrMHB'),
          setter: 'NumberSetter',
          defaultValue: 3
        }, {
          name: 'maxRows',
          title: (0, _locale.t)('inputText-area.key_Dag0EswCF91U'),
          setter: 'NumberSetter',
          defaultValue: 3
        }]
      }]
    },
    defaultValue: false
  }, {
    name: 'onChange',
    title: {
      label: (0, _locale.t)('inputText-area.key_8Fg2NrhDVqTU'),
      tip: (0, _locale.t)('inputText-area.key_8fZENreMzSLv')
    },
    propType: 'func'
  }, {
    name: 'onPressEnter',
    title: {
      label: (0, _locale.t)('inputText-area.key_nNaxHNvfU6WS'),
      tip: (0, _locale.t)('inputText-area.key_3oR1nrmFm383')
    },
    propType: 'func'
  }, {
    name: 'onResize',
    title: {
      label: (0, _locale.t)('inputText-area.key_mJwMysJw6dlm'),
      tip: (0, _locale.t)('inputText-area.key_UkNNxF4eknXT')
    },
    propType: 'func'
  }, {
    name: 'onFocus',
    title: {
      label: (0, _locale.t)('inputText-area.key_Kh2FmdCGzq4K'),
      tip: (0, _locale.t)('inputText-area.key_qI8EGCACS2gb')
    },
    propType: 'func'
  }, {
    name: 'onKeyDown',
    title: {
      label: (0, _locale.t)('inputText-area.key_9iTxqn27xUr8'),
      tip: (0, _locale.t)('inputText-area.key_eAArb3eByVrF')
    },
    propType: 'func'
  }, {
    name: 'onKeyPress',
    title: {
      label: (0, _locale.t)('inputText-area.key_MO0Ds0gr1mX2'),
      tip: (0, _locale.t)('inputText-area.key_xi2ywv7lKbap')
    },
    propType: 'func'
  }, {
    name: 'onKeyUp',
    title: {
      label: (0, _locale.t)('inputText-area.key_kVHTlq99Let4'),
      tip: (0, _locale.t)('inputText-area.key_xzfNDmvKRyCZ')
    },
    propType: 'func'
  }, {
    name: 'onBlur',
    title: {
      label: (0, _locale.t)('inputText-area.key_LhLgfQ0m8lCe'),
      tip: (0, _locale.t)('inputText-area.key_D6gWmnMXSqJw')
    },
    propType: 'func'
  }],
  configure: {
    supports: {
      style: true,
      events: false
    }
  }
};