diff --git a/src/lib/Label.svelte.d.ts b/src/lib/Label.svelte.d.ts new file mode 100644 index 0000000..b8d1bd0 --- /dev/null +++ b/src/lib/Label.svelte.d.ts @@ -0,0 +1,10 @@ +import type { Snippet } from 'svelte'; +type $$ComponentProps = { + for: string; + error?: boolean; + bigError?: boolean; + children: Snippet; +}; +declare const Label: import("svelte").Component<$$ComponentProps, {}, "">; +type Label = ReturnType; +export default Label; diff --git a/src/lib/StyledRawInput.svelte.d.ts b/src/lib/StyledRawInput.svelte.d.ts new file mode 100644 index 0000000..a131988 --- /dev/null +++ b/src/lib/StyledRawInput.svelte.d.ts @@ -0,0 +1,12 @@ +import type { HTMLInputAttributes } from 'svelte/elements'; +import { type InputValidatorEvent, type ValidatorOptions } from '@repo/validate'; +type $Props = Omit & { + name: string; + value?: string; + validate?: ValidatorOptions; + ref?: HTMLInputElement | null; + onvalidate?: (e: InputValidatorEvent) => void; +}; +declare const StyledRawInput: import("svelte").Component<$Props, {}, "value" | "ref">; +type StyledRawInput = ReturnType; +export default StyledRawInput; diff --git a/src/lib/TimeInput.svelte.d.ts b/src/lib/TimeInput.svelte.d.ts new file mode 100644 index 0000000..c3a9606 --- /dev/null +++ b/src/lib/TimeInput.svelte.d.ts @@ -0,0 +1,10 @@ +type $$ComponentProps = { + name: string; + label?: string; + value?: string; + required?: boolean; + invalidMessage?: string; +}; +declare const TimeInput: import("svelte").Component<$$ComponentProps, {}, "value">; +type TimeInput = ReturnType; +export default TimeInput;