This commit is contained in:
kjs
2025-10-17 16:21:08 +09:00
parent 2a8081a253
commit 2e916678fa
22 changed files with 1641 additions and 871 deletions

View File

@@ -18,11 +18,11 @@ export default function InputWidget({ widget, value, onChange, className }: Inpu
};
return (
<div className={cn("space-y-2", className)}>
<div className={cn("space-y-1.5", className)}>
{widget.label && (
<Label htmlFor={widget.id} className="text-sm font-medium">
<Label htmlFor={widget.id} className="text-xs font-medium">
{widget.label}
{widget.required && <span className="ml-1 text-red-500">*</span>}
{widget.required && <span className="text-destructive ml-0.5">*</span>}
</Label>
)}
<Input
@@ -33,7 +33,7 @@ export default function InputWidget({ widget, value, onChange, className }: Inpu
onChange={handleChange}
required={widget.required}
readOnly={widget.readonly}
className={cn("w-full", widget.readonly && "cursor-not-allowed bg-gray-50")}
className={cn("h-9 w-full text-sm", widget.readonly && "bg-muted/50 cursor-not-allowed")}
/>
</div>
);