diff --git a/src/app/globals.css b/src/app/globals.css index 95b35d5..405cd60 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -29,7 +29,7 @@ input[type="number"] { -moz-appearance: textfield; } -input[type="password"] { +input[type="password"]:not(:placeholder-shown) { font-family: "irancell"; font-style: normal; font-weight: normal; @@ -91,7 +91,7 @@ input[type="password"] { input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 0px transparent inset !important; box-shadow: 0 0 0px 0px transparent inset !important; - -webkit-text-fill-color: #000 !important; + -webkit-text-fill-color: #b6b6b6da !important; background: currentColor !important; transition: background-color 10000s ease-in-out 0s; } @@ -99,7 +99,7 @@ input:-webkit-autofill { input:autofill { -webkit-box-shadow: 0 0 0px 0px transparent inset !important; box-shadow: 0 0 0px 0px transparent inset !important; - -webkit-text-fill-color: #000 !important; + -webkit-text-fill-color: #b6b6b6da !important; background: currentColor !important; transition: background-color 10000s ease-in-out 0s; } diff --git a/src/components/input/PasswordField.tsx b/src/components/input/PasswordField.tsx new file mode 100644 index 0000000..323f394 --- /dev/null +++ b/src/components/input/PasswordField.tsx @@ -0,0 +1,50 @@ +'use client'; + +import React from 'react' +import Tooltip from '../utils/Tooltip'; +import clsx from 'clsx'; +import { EyeToggleIcon } from '../icons/EyeToggleIcon'; +import useToggle from '@/hooks/helpers/useToggle'; +import { AUTH_PAGE_ELEMENT } from '@/enums'; + +type Props = { + htmlFor: string; + labelText?: React.ReactNode; + value?: string; + valid?: boolean +} & Omit, "id">; + + +function PasswordField({ onChange, htmlFor, labelText, children, valid = true, className, ...inputProps }: Props) { + const { state, toggle } = useToggle(); + + return ( +
+ + + +
+ ) +} + +export default PasswordField \ No newline at end of file