"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.Password',
  "group": (0, _locale.t)('inputPassword.key_n5nh31IOFkWV'),
  title: (0, _locale.t)('inputPassword.key_k9f4arpAlIyv'),
  category: (0, _locale.t)('inputPassword.key_ThwD6DbRcgVk'),
  props: [{
    name: 'defaultValue',
    title: {
      label: (0, _locale.t)('inputPassword.key_7P46tL9xD1ac'),
      tip: (0, _locale.t)('inputPassword.key_EJcGb2f1r9R1')
    },
    propType: 'string',
    setter: 'StringSetter'
  }, {
    name: 'value',
    title: {
      label: (0, _locale.t)('inputPassword.key_4Dw8rC245Uex'),
      tip: (0, _locale.t)('inputPassword.key_bHXRN37RapIr')
    },
    propType: 'string',
    setter: 'StringSetter'
  }, {
    name: 'allowClear',
    title: {
      label: (0, _locale.t)('inputPassword.key_glMqJpNSr688'),
      tip: (0, _locale.t)('inputPassword.key_HjCMEj2JFbfu')
    },
    propType: 'bool',
    setter: 'BoolSetter'
  }, {
    name: 'bordered',
    title: {
      label: (0, _locale.t)('inputPassword.key_ev61Ga5t1AZX'),
      tip: (0, _locale.t)('inputPassword.key_JyCGN7cTo1WF')
    },
    propType: 'bool',
    defaultValue: true,
    setter: 'BoolSetter'
  }, {
    name: 'disabled',
    title: {
      label: (0, _locale.t)('inputPassword.key_Scy86W6qn950'),
      tip: (0, _locale.t)('inputPassword.key_foFTdpoKu5Rm')
    },
    propType: 'bool',
    defaultValue: false,
    setter: 'BoolSetter'
  }, {
    name: 'visibilityToggle',
    title: {
      label: (0, _locale.t)('inputPassword.key_7hqS5Op9HFhS'),
      tip: (0, _locale.t)('inputPassword.key_sRHREBLY2ZWU')
    },
    propType: 'bool',
    defaultValue: true,
    setter: 'BoolSetter'
  }, {
    name: 'placeholder',
    title: {
      label: (0, _locale.t)('inputPassword.key_2zLO4zjeZpTU'),
      tip: (0, _locale.t)('inputPassword.key_ls0DJTnZbTOG')
    },
    propType: 'string',
    defaultValue: (0, _locale.t)('inputPassword.key_lGzYwh0LBRpk'),
    setter: 'StringSetter'
  }, {
    name: "placeholderColor",
    title: {
      label: '占位颜色',
      tip: (0, _locale.t)("connector-pro.key_RAouAWkB9UYs")
    },
    propType: "string",
    setter: "ColorSetter",
    defaultValue: "rgba(255, 255, 255, 0.02)"
  }, {
    name: 'maxLength',
    title: {
      label: (0, _locale.t)('inputPassword.key_hoDNanfnNn2D'),
      tip: (0, _locale.t)('inputPassword.key_WN0qq0h2meyg')
    },
    propType: 'number',
    setter: 'NumberSetter'
  }, {
    name: 'size',
    title: {
      label: (0, _locale.t)('inputPassword.key_knP1lEGoH31b'),
      tip: (0, _locale.t)('inputPassword.key_BGgT7x0s6bp1')
    },
    propType: {
      type: 'oneOf',
      value: ['large', 'middle', 'small']
    },
    setter: {
      componentName: 'RadioGroupSetter',
      props: {
        options: [{
          title: (0, _locale.t)('inputPassword.key_hfrVqgfJDtkf'),
          value: 'large'
        }, {
          title: (0, _locale.t)('inputPassword.key_W2JHSAYZx2jE'),
          value: 'middle'
        }, {
          title: (0, _locale.t)('inputPassword.key_BIGdqdLe9ALH'),
          value: 'small'
        }]
      }
    },
    defaultValue: 'middle'
  }, {
    name: 'addonAfter',
    title: {
      label: (0, _locale.t)('inputPassword.key_iLnMww8hFPuu'),
      tip: (0, _locale.t)('inputPassword.key_MeNbGpw6s5Zg')
    },
    propType: {
      type: 'oneOfType',
      value: ['string', 'node']
    }
  }, {
    name: 'addonBefore',
    title: {
      label: (0, _locale.t)('inputPassword.key_zRkA4owttBgs'),
      tip: (0, _locale.t)('inputPassword.key_37bQelS3u4BN')
    },
    propType: {
      type: 'oneOfType',
      value: ['string', 'node']
    }
  }, {
    name: 'prefix',
    title: {
      label: (0, _locale.t)('inputPassword.key_Hbf5MOauE5cU'),
      tip: (0, _locale.t)('inputPassword.key_JPqHQQ2Zjac0')
    },
    propType: {
      type: 'oneOfType',
      value: ['string', 'node']
    }
  }, {
    name: 'onChange',
    title: {
      label: (0, _locale.t)('inputPassword.key_KnX6dlnL5lcS'),
      tip: (0, _locale.t)('inputPassword.key_34GaqNzd1TWh')
    },
    propType: 'func'
  }, {
    name: 'onPressEnter',
    title: {
      label: (0, _locale.t)('inputPassword.key_8VNkKmKJlvrW'),
      tip: (0, _locale.t)('inputPassword.key_mBrnfB1f88yz')
    },
    propType: 'func'
  }, {
    name: 'onFocus',
    title: {
      label: (0, _locale.t)('inputPassword.key_ciICE5xXWaNi'),
      tip: (0, _locale.t)('inputPassword.key_imiCdLktvjdn')
    },
    propType: 'func'
  }, {
    name: 'onKeyDown',
    title: {
      label: (0, _locale.t)('inputPassword.key_jzhNLNhnq1gg'),
      tip: (0, _locale.t)('inputPassword.key_5KyTiPA2ikS8')
    },
    propType: 'func'
  }, {
    name: 'onKeyPress',
    title: {
      label: (0, _locale.t)('inputPassword.key_7mpYibQ6F51k'),
      tip: (0, _locale.t)('inputPassword.key_9LiVy3p6i8eo')
    },
    propType: 'func'
  }, {
    name: 'onKeyUp',
    title: {
      label: (0, _locale.t)('inputPassword.key_j15uQTyzxSnH'),
      tip: (0, _locale.t)('inputPassword.key_7gbzA1ifBsCA')
    },
    propType: 'func'
  }, {
    name: 'onBlur',
    title: {
      label: (0, _locale.t)('inputPassword.key_RTGp9pqSL0oz'),
      tip: (0, _locale.t)('inputPassword.key_PmbgYfG8SpWW')
    },
    propType: 'func'
  }],
  configure: {
    supports: {
      style: true,
      events: false
    }
  }
};