- FIX KRITIS: apps/dimentorin/src/index.css @theme nyimpang dari Figma (67 token beda: primary-500 #1a8ce6 vs #23a1eb, semua warna success/info/warning/danger + skala typography). Disamakan dgn libs/ui (source of truth Figma). - Hapus hardcoded warna non-token di apps: blue-400, gray-5/6/700, amber/emerald/red-100, green-200/500 -> token primary/neutral/warning/success/danger - libs/ui: gray-* -> neutral-*, blue-* -> primary-*, #1a8ce6 -> #23a1eb, bg-[#F0F8FF] -> primary-50, SVG fill hex -> fill-* token classes - Typography: text-[27/26/22/11px] menyimpang dari skala Figma -> text-[29/23/19/12px] - Radius: rounded-4xl (32px, tidak ada di Figma) -> rounded-3xl (24px)
31 lines
1.4 KiB
TypeScript
31 lines
1.4 KiB
TypeScript
import { DetailedHTMLProps, FC, InputHTMLAttributes, ReactElement } from "react"
|
|
|
|
type TForgotStepProps = Omit<
|
|
DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>,
|
|
'size' | 'type'
|
|
> & {
|
|
step: number
|
|
};
|
|
|
|
export const ForgotStep: FC<TForgotStepProps> = ({
|
|
step = 1,
|
|
...rest
|
|
}): ReactElement => {
|
|
return (
|
|
<div className="w-full grid grid-cols-3 gap-3">
|
|
<div className="flex flex-col items-center justify-center gap-2">
|
|
<div className={`${step === 1 ? "bg-primary-500" : "bg-primary-200"} px-5 py-2 rounded-md w-full`}></div>
|
|
<h4 className={`${step === 1 ? "text-primary-500" : "text-neutral-500"} text-xs`}>Masukkan Email</h4>
|
|
</div>
|
|
<div className="flex flex-col items-center justify-center gap-2">
|
|
<div className={`${step === 2 ? "bg-primary-500" : "bg-primary-200"} px-5 py-2 rounded-md w-full`}></div>
|
|
<h4 className={`${step === 2 ? "text-primary-500" : "text-neutral-500"} text-xs`}>Verifikasi OTP</h4>
|
|
</div>
|
|
<div className="flex flex-col items-center justify-center gap-2">
|
|
<div className={`${step === 3 ? "bg-primary-500" : "bg-primary-200"} px-5 py-2 rounded-md w-full`}></div>
|
|
<h4 className={`${step === 3 ? "text-primary-500" : "text-neutral-500"} text-xs`}>Summon Password ^^</h4>
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|