feat: add onboarding with oldmarr import (#1606)

This commit is contained in:
Meier Lukas
2024-12-15 15:40:26 +01:00
committed by GitHub
parent 82ec77d2da
commit 6de74d9525
108 changed files with 6045 additions and 312 deletions

View File

@@ -0,0 +1,21 @@
import type { ChangeEvent, FocusEvent } from "react";
export interface InputPropsFor<T, TOnChangeArg, TComponent extends HTMLElement = HTMLInputElement>
extends BasePropsFor<TOnChangeArg, TComponent> {
value?: T;
defaultValue?: T;
}
interface BasePropsFor<TOnChangeArg, TComponent extends HTMLElement> {
onChange: (value: TOnChangeArg) => void;
error?: string;
onBlur?: (event: FocusEvent<TComponent>) => void;
onFocus?: (event: FocusEvent<TComponent>) => void;
}
export interface CheckboxProps<
TOnChangeArg = ChangeEvent<HTMLInputElement>,
TComponent extends HTMLElement = HTMLInputElement,
> extends BasePropsFor<TOnChangeArg, TComponent> {
checked?: boolean;
}