Update input components

This commit is contained in:
2026-02-14 16:24:04 -05:00
parent f40845723d
commit aaa15b1cfc
6 changed files with 161 additions and 32 deletions

View File

@@ -1,5 +1,5 @@
import type React from "react";
import type { ChangeEventHandler } from "react";
import type { ChangeEventHandler, InputHTMLAttributes } from "react";
export interface TextInputProps {
@@ -164,10 +164,8 @@ export interface RadioListProps {
}
export interface DateInputProps {
id?: string;
className?: string;
defaultValue?: Date;
value?: Date;
onChange?: (newValue: Date) => void;
export interface DateInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "step">{
step?: number;
value: Date | undefined;
onChange: (newValue: Date | undefined) => void;
}