import { connect, mapReadPretty } from '@formily/react';
import { isValid } from '@formily/shared';
import { Input } from 'antd';
import { PasswordProps } from 'antd/lib/input';
import React from 'react';
import { PasswordStrength } from './PasswordStrength';
export interface IPasswordProps extends PasswordProps {
checkStrength: boolean;
}
export const Password = connect(
(props: IPasswordProps) => {
const { value, className, checkStrength, ...others } = props;
const blockStyle: React.CSSProperties = {
position: 'absolute',
zIndex: 1,
height: 8,
top: 0,
background: '#fff',
width: 1,
transform: 'translate(-50%, 0)',
};
return (