fixed offset / added tooltipOffsetTop prop

This commit is contained in:
Vladimir Khvan 2023-06-22 14:11:01 +05:00
parent 93d6874919
commit fb8ca44bfa
2 changed files with 4 additions and 3 deletions

View File

@ -525,6 +525,8 @@ PasswordInput.propTypes = {
onCopyToClipboard: PropTypes.func,
/** Sets the tooltip offset to the left */
tooltipOffsetLeft: PropTypes.number,
/** Sets the tooltip offset to the top */
tooltipOffsetTop: PropTypes.number,
/** Sets the password input view to simple (without tooltips, password progress bar and several additional buttons (copy and generate password) */
simpleView: PropTypes.bool,
/** Sets a title of the password generation button */
@ -550,8 +552,8 @@ PasswordInput.defaultProps = {
generatorSpecial: "!@#$%^&*",
className: "",
tooltipOffsetLeft: 0,
tooltipOffsetTop: -5,
tooltipOffsetLeft: 175,
tooltipOffsetTop: 50,
simpleView: false,
passwordSettings: {
minLength: 8,

View File

@ -84,7 +84,6 @@ const Template = ({
tooltipPasswordLength={`${tooltipPasswordLength} ${settingMinLength}`}
passwordSettings={fakeSettings}
onValidateInput={onValidateInputHandler}
tooltipOffsetLeft={150}
/>
</div>
);