import React from 'react';
import ProField from '../../../wau-field';
import createField from '../../create-field';
import { jsx as _jsx } from "react/jsx-runtime";
const valueType = 'text';
/**
 * 文本组件
 *
 * @param
 */
const ProFormText = createField( /*#__PURE__*/React.forwardRef(({
  fieldProps,
  proFieldProps
}, ref) => {
  return /*#__PURE__*/_jsx(ProField, {
    mode: "edit",
    valueType: valueType,
    fieldProps: fieldProps,
    ref: ref,
    ...proFieldProps
  });
}), {
  valueType
});
const Password = createField( /*#__PURE__*/React.forwardRef(({
  fieldProps,
  proFieldProps
}, ref) => {
  return /*#__PURE__*/_jsx(ProField, {
    mode: "edit",
    valueType: "password",
    fieldProps: fieldProps,
    ref: ref,
    ...proFieldProps
  });
}), {
  valueType
});
const WrappedProFormText = ProFormText;
WrappedProFormText.Password = Password;
export default WrappedProFormText;