import { cva } from 'class-variance-authority'; /** * The empty box (DS UploadTile): 140px, a 1.5px dashed outline on surface. The whole box is the * picker's label, so it is one large target; it shows the hidden input's keyboard focus. */ export const fileDropVariants = cva( 'min-h-35 rounded-lg border-[1.5px] border-dashed bg-surface p-4 text-center transition-colors duration-120 ease-standard peer-focus-visible:focus-ring', { variants: { invalid: { true: 'border-danger', false: 'border-border-default actionable:cursor-pointer hover:border-text-secondary', }, disabled: { true: 'frozen', false: '' }, }, defaultVariants: { invalid: false, disabled: false }, }, ); /** * The picked file (DS UploadTile `done`): a solid hairline frame with an image's whole preview, * then its name and size with «تغییر تصویر» and remove, or the upload bar. */ export const filePickedVariants = cva( 'min-h-18 rounded-lg border bg-surface p-2', { variants: { invalid: { true: 'border-danger', false: 'border-border-subtle' }, }, defaultVariants: { invalid: false }, }, );