lightswind
Version:
A professionally designed animate react component library & templates market that brings together functionality, accessibility, and beautiful aesthetics for modern applications.
290 lines (289 loc) • 19.7 kB
TypeScript
import * as React from "react";
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
declare const useFormField: () => {
invalid: boolean;
isDirty: boolean;
isTouched: boolean;
isValidating: boolean;
error?: import("react-hook-form").FieldError;
id: string;
name: string;
formItemId: string;
formDescriptionId: string;
formMessageId: string;
};
declare const FormItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
declare const FormLabel: React.ForwardRefExoticComponent<React.LabelHTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>>;
declare const FormControl: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
declare const FormMessage: React.ForwardRefExoticComponent<Omit<{
className?: string | undefined;
ref?: React.LegacyRef<HTMLParagraphElement> | undefined;
hidden?: boolean | undefined;
color?: string | undefined;
content?: string | undefined;
tabIndex?: number | undefined;
onClick?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseEnter?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseLeave?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onFocus?: React.FocusEventHandler<HTMLParagraphElement> | undefined;
onBlur?: React.FocusEventHandler<HTMLParagraphElement> | undefined;
onKeyDown?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
role?: React.AriaRole | undefined;
slot?: string | undefined;
title?: string | undefined;
key?: React.Key | null | undefined;
defaultChecked?: boolean | undefined;
defaultValue?: string | number | readonly string[] | undefined;
suppressContentEditableWarning?: boolean | undefined;
suppressHydrationWarning?: boolean | undefined;
accessKey?: string | undefined;
autoCapitalize?: (string & {}) | "none" | "off" | "on" | "sentences" | "words" | "characters" | undefined;
autoFocus?: boolean | undefined;
contentEditable?: "inherit" | (boolean | "false" | "true") | "plaintext-only" | undefined;
contextMenu?: string | undefined;
dir?: string | undefined;
draggable?: (boolean | "false" | "true") | undefined;
enterKeyHint?: "search" | "next" | "enter" | "done" | "go" | "previous" | "send" | undefined;
id?: string | undefined;
lang?: string | undefined;
nonce?: string | undefined;
spellCheck?: (boolean | "false" | "true") | undefined;
translate?: "yes" | "no" | undefined;
radioGroup?: string | undefined;
about?: string | undefined;
datatype?: string | undefined;
inlist?: any;
prefix?: string | undefined;
property?: string | undefined;
rel?: string | undefined;
resource?: string | undefined;
rev?: string | undefined;
typeof?: string | undefined;
vocab?: string | undefined;
autoCorrect?: string | undefined;
autoSave?: string | undefined;
itemProp?: string | undefined;
itemScope?: boolean | undefined;
itemType?: string | undefined;
itemID?: string | undefined;
itemRef?: string | undefined;
results?: number | undefined;
security?: string | undefined;
unselectable?: "off" | "on" | undefined;
inputMode?: "search" | "none" | "text" | "decimal" | "numeric" | "tel" | "url" | "email" | undefined;
is?: string | undefined;
exportparts?: string | undefined;
part?: string | undefined;
"aria-activedescendant"?: string | undefined;
"aria-atomic"?: (boolean | "false" | "true") | undefined;
"aria-autocomplete"?: "both" | "none" | "inline" | "list" | undefined;
"aria-braillelabel"?: string | undefined;
"aria-brailleroledescription"?: string | undefined;
"aria-busy"?: (boolean | "false" | "true") | undefined;
"aria-checked"?: boolean | "mixed" | "false" | "true" | undefined;
"aria-colcount"?: number | undefined;
"aria-colindex"?: number | undefined;
"aria-colindextext"?: string | undefined;
"aria-colspan"?: number | undefined;
"aria-controls"?: string | undefined;
"aria-current"?: boolean | "page" | "false" | "true" | "time" | "location" | "step" | "date" | undefined;
"aria-describedby"?: string | undefined;
"aria-description"?: string | undefined;
"aria-details"?: string | undefined;
"aria-disabled"?: (boolean | "false" | "true") | undefined;
"aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
"aria-errormessage"?: string | undefined;
"aria-expanded"?: (boolean | "false" | "true") | undefined;
"aria-flowto"?: string | undefined;
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
"aria-haspopup"?: boolean | "listbox" | "grid" | "menu" | "false" | "true" | "dialog" | "tree" | undefined;
"aria-hidden"?: (boolean | "false" | "true") | undefined;
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
"aria-keyshortcuts"?: string | undefined;
"aria-label"?: string | undefined;
"aria-labelledby"?: string | undefined;
"aria-level"?: number | undefined;
"aria-live"?: "off" | "assertive" | "polite" | undefined;
"aria-modal"?: (boolean | "false" | "true") | undefined;
"aria-multiline"?: (boolean | "false" | "true") | undefined;
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
"aria-orientation"?: "horizontal" | "vertical" | undefined;
"aria-owns"?: string | undefined;
"aria-placeholder"?: string | undefined;
"aria-posinset"?: number | undefined;
"aria-pressed"?: boolean | "mixed" | "false" | "true" | undefined;
"aria-readonly"?: (boolean | "false" | "true") | undefined;
"aria-relevant"?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
"aria-required"?: (boolean | "false" | "true") | undefined;
"aria-roledescription"?: string | undefined;
"aria-rowcount"?: number | undefined;
"aria-rowindex"?: number | undefined;
"aria-rowindextext"?: string | undefined;
"aria-rowspan"?: number | undefined;
"aria-selected"?: (boolean | "false" | "true") | undefined;
"aria-setsize"?: number | undefined;
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
"aria-valuemax"?: number | undefined;
"aria-valuemin"?: number | undefined;
"aria-valuenow"?: number | undefined;
"aria-valuetext"?: string | undefined;
dangerouslySetInnerHTML?: {
__html: string | TrustedHTML;
} | undefined;
onCopy?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
onCopyCapture?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
onCut?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
onCutCapture?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
onPaste?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
onPasteCapture?: React.ClipboardEventHandler<HTMLParagraphElement> | undefined;
onCompositionEnd?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
onCompositionEndCapture?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
onCompositionStart?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
onCompositionStartCapture?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
onCompositionUpdate?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLParagraphElement> | undefined;
onFocusCapture?: React.FocusEventHandler<HTMLParagraphElement> | undefined;
onBlurCapture?: React.FocusEventHandler<HTMLParagraphElement> | undefined;
onChange?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onChangeCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onBeforeInput?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onBeforeInputCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onInput?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onInputCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onReset?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onResetCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onSubmit?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onSubmitCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onInvalid?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onInvalidCapture?: React.FormEventHandler<HTMLParagraphElement> | undefined;
onLoad?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onLoadCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onError?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onErrorCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onKeyDownCapture?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
onKeyPress?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
onKeyPressCapture?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
onKeyUp?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
onKeyUpCapture?: React.KeyboardEventHandler<HTMLParagraphElement> | undefined;
onAbort?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onAbortCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onCanPlay?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onCanPlayCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onCanPlayThrough?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onCanPlayThroughCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onDurationChange?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onDurationChangeCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onEmptied?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onEmptiedCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onEncrypted?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onEncryptedCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onEnded?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onEndedCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onLoadedData?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onLoadedDataCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onLoadedMetadata?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onLoadedMetadataCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onLoadStart?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onLoadStartCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onPause?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onPauseCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onPlay?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onPlayCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onPlaying?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onPlayingCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onProgress?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onProgressCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onRateChange?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onRateChangeCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onResize?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onResizeCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onSeeked?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onSeekedCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onSeeking?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onSeekingCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onStalled?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onStalledCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onSuspend?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onSuspendCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onTimeUpdate?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onTimeUpdateCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onVolumeChange?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onVolumeChangeCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onWaiting?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onWaitingCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onAuxClick?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onAuxClickCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onClickCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onContextMenu?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onContextMenuCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onDoubleClick?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onDoubleClickCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onDragCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragEndCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragEnter?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragEnterCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragExit?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragExitCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragLeave?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragLeaveCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragOver?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragOverCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDragStartCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDrop?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onDropCapture?: React.DragEventHandler<HTMLParagraphElement> | undefined;
onMouseDown?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseDownCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseMove?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseMoveCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseOut?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseOutCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseOver?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseOverCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseUp?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onMouseUpCapture?: React.MouseEventHandler<HTMLParagraphElement> | undefined;
onSelect?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onSelectCapture?: React.ReactEventHandler<HTMLParagraphElement> | undefined;
onTouchCancel?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
onTouchCancelCapture?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
onTouchEnd?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
onTouchEndCapture?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
onTouchMove?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
onTouchMoveCapture?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
onTouchStart?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
onTouchStartCapture?: React.TouchEventHandler<HTMLParagraphElement> | undefined;
onPointerDown?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerDownCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerMove?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerMoveCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerUp?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerUpCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerCancel?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerCancelCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerEnter?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerLeave?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerOver?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerOverCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerOut?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onPointerOutCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onGotPointerCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onLostPointerCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLParagraphElement> | undefined;
onScroll?: React.UIEventHandler<HTMLParagraphElement> | undefined;
onScrollCapture?: React.UIEventHandler<HTMLParagraphElement> | undefined;
onWheel?: React.WheelEventHandler<HTMLParagraphElement> | undefined;
onWheelCapture?: React.WheelEventHandler<HTMLParagraphElement> | undefined;
onAnimationStartCapture?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
onAnimationEnd?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
onAnimationEndCapture?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
onAnimationIteration?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
onAnimationIterationCapture?: React.AnimationEventHandler<HTMLParagraphElement> | undefined;
onTransitionEnd?: React.TransitionEventHandler<HTMLParagraphElement> | undefined;
onTransitionEndCapture?: React.TransitionEventHandler<HTMLParagraphElement> | undefined;
} & import("framer-motion").MotionProps & {
children?: React.ReactNode;
}, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };