diff --git a/README.md b/README.md index 9885cef..32c51ab 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ src/styles.css тема (токены, шрифты, тёмный режим) Пакет ставится прямо из git, версии — теги `vX.Y.Z`: ```bash -npm i "git+https://git.med-logic.ru/medlogic/medkit.git#semver:^0.5.0" +npm i "git+https://git.med-logic.ru/medlogic/medkit.git#semver:^0.6.0" ``` `package-lock.json` фиксирует коммит; обновиться до свежего тега — `npm update @medkit/ui`. В medicine-ui kit подключён git-submodule в `packages/medkit` (npm workspace) — правки видны сразу. diff --git a/package.json b/package.json index 16a7fea..9f64be0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@medkit/ui", - "version": "0.5.0", + "version": "0.6.0", "private": true, "description": "Medkit — UI kit МИС «Медицина»: React 19 + Tailwind 4 + Radix (shadcn/ui)", "repository": { diff --git a/src/kit/login-form.tsx b/src/kit/login-form.tsx index 54ce775..8eb2537 100644 --- a/src/kit/login-form.tsx +++ b/src/kit/login-form.tsx @@ -2,18 +2,15 @@ import * as React from "react" import { ArrowLeftIcon, EyeIcon, EyeOffIcon, FileKeyIcon, Loader2Icon } from "lucide-react" import { Button } from "../ui/button" -import { Checkbox } from "../ui/checkbox" import { Input } from "../ui/input" import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput } from "../ui/input-group" import { InputOTP, InputOTPGroup, InputOTPSlot } from "../ui/input-otp" -import { Label } from "../ui/label" import { cn } from "../lib/utils" import { FormField } from "./form-field" export interface LoginCredentials { login: string password: string - remember: boolean } /** Второй шаг входа: у пользователя включён одноразовый код. */ @@ -40,7 +37,6 @@ export interface LoginFormProps { onResendOtp?: () => Promise /** Кнопка «Войти по электронной подписи»; выбор сертификата — на стороне приложения. */ onSignature?: () => Promise - onForgotPassword?: () => void className?: string } @@ -68,12 +64,10 @@ export function LoginForm({ onVerifyOtp, onResendOtp, onSignature, - onForgotPassword, className, }: LoginFormProps) { const [login, setLogin] = React.useState(defaultLogin) const [password, setPassword] = React.useState("") - const [remember, setRemember] = React.useState(true) const [showPassword, setShowPassword] = React.useState(false) const [capsLock, setCapsLock] = React.useState(false) const [challenge, setChallenge] = React.useState(null) @@ -112,7 +106,7 @@ export function LoginForm({ async function submitLogin() { if (busy || !login.trim() || !password) return - const result = await run("login", () => onLogin({ login: login.trim(), password, remember })) + const result = await run("login", () => onLogin({ login: login.trim(), password })) if (result.ok) startOtp(result.value) } @@ -277,25 +271,6 @@ export function LoginForm({ -
- - {onForgotPassword && ( - - )} -
- {error &&

{error}

}