"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _wauField = _interopRequireDefault(require("../../../wau-field"));
var _createField = _interopRequireDefault(require("../../create-field"));
var _jsxRuntime = require("react/jsx-runtime");
const valueType = 'text';
/**
 * 文本组件
 *
 * @param
 */
const ProFormText = (0, _createField.default)( /*#__PURE__*/_react.default.forwardRef(({
  fieldProps,
  proFieldProps
}, ref) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_wauField.default, {
    mode: "edit",
    valueType: valueType,
    fieldProps: fieldProps,
    ref: ref,
    ...proFieldProps
  });
}), {
  valueType
});
const Password = (0, _createField.default)( /*#__PURE__*/_react.default.forwardRef(({
  fieldProps,
  proFieldProps
}, ref) => {
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_wauField.default, {
    mode: "edit",
    valueType: "password",
    fieldProps: fieldProps,
    ref: ref,
    ...proFieldProps
  });
}), {
  valueType
});
const WrappedProFormText = ProFormText;
WrappedProFormText.Password = Password;
var _default = WrappedProFormText;
exports.default = _default;