@boxcustodia/library 2.0.0-alpha.7 → 2.0.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -11,7 +11,6 @@ import { Collection } from 'react-aria-components';
11
11
  import { Command } from 'cmdk';
12
12
  import { ComponentProps } from 'react';
13
13
  import { ComponentPropsWithoutRef } from 'react';
14
- import { ControllerRenderProps } from 'react-hook-form';
15
14
  import { CSSProperties } from 'react';
16
15
  import { default as default_2 } from 'react';
17
16
  import { DependencyList } from 'react';
@@ -20,11 +19,9 @@ import { DialogProps as DialogProps_2 } from '@radix-ui/react-dialog';
20
19
  import { Dispatch } from 'react';
21
20
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
22
21
  import { ElementType } from 'react';
23
- import { FieldError as FieldError_2 } from 'react-hook-form';
24
- import { FieldPath } from 'react-hook-form';
25
22
  import { Field as FieldPrimitive } from '@base-ui/react/field';
26
- import { FieldValues } from 'react-hook-form';
27
23
  import { FormEvent } from 'react';
24
+ import { Form as FormPrimitive } from '@base-ui/react/form';
28
25
  import { HTMLAttributes } from 'react';
29
26
  import { HTMLProps } from 'react';
30
27
  import { Input as InputPrimitive } from '@base-ui/react/input';
@@ -56,11 +53,8 @@ import { TreeItemContent as TreeItemContent_2 } from 'react-aria-components';
56
53
  import { TreeItemProps } from 'react-aria-components';
57
54
  import { TreeProps } from 'react-aria-components';
58
55
  import { useControllableState } from '@radix-ui/react-use-controllable-state';
59
- import { UseFormProps } from 'react-hook-form';
60
- import { UseFormReturn } from 'react-hook-form';
61
56
  import { useRender } from '@base-ui/react/use-render';
62
57
  import { VariantProps } from 'class-variance-authority';
63
- import { z } from 'zod';
64
58
 
65
59
  /**
66
60
  * Accessible confirmation dialog with cancel and action buttons.
@@ -220,7 +214,9 @@ export declare type BaseEntity = {
220
214
  createdAt: Date;
221
215
  };
222
216
 
223
- declare type BaseProps = {
217
+ declare type BaseProps = FormPrimitive.Props;
218
+
219
+ declare type BaseProps_2 = {
224
220
  icon?: React.ReactNode;
225
221
  rounded?: TagVariant["rounded"];
226
222
  } & StyleProps & React.HTMLAttributes<HTMLDivElement>;
@@ -354,13 +350,14 @@ export { CheckboxPrimitive }
354
350
  declare interface CheckboxProps extends Omit<CheckboxPrimitive.Root.Props, "children"> {
355
351
  children?: ReactNode;
356
352
  label?: ReactNode;
353
+ tooltip?: ReactNode;
357
354
  indicatorProps?: CheckboxPrimitive.Indicator.Props;
358
355
  controlFirst?: boolean;
359
356
  }
360
357
 
361
358
  export declare function CheckboxRoot({ className, ...props }: CheckboxPrimitive.Root.Props): React_2.ReactElement;
362
359
 
363
- declare function CheckboxSingle({ children, label, className, id, indicatorProps, controlFirst, ...props }: CheckboxProps): React_2.ReactElement;
360
+ declare function CheckboxSingle({ className, indicatorProps, label, children, tooltip, controlFirst, required, id, ...props }: CheckboxProps): React_2.ReactElement;
364
361
 
365
362
  export declare type ClassName = string | undefined;
366
363
 
@@ -368,7 +365,7 @@ export declare const click: (element: HTMLElement) => void;
368
365
 
369
366
  export declare type ClickEvent = React.MouseEvent<HTMLButtonElement, MouseEvent>;
370
367
 
371
- declare type ClosableProps = BaseProps & {
368
+ declare type ClosableProps = BaseProps_2 & {
372
369
  closable: true;
373
370
  onClose: () => void;
374
371
  };
@@ -667,31 +664,61 @@ declare interface ExtendedProps_2 {
667
664
  */
668
665
  export declare const extractInitials: (string: string) => string;
669
666
 
670
- export declare function Field({ label, required, tooltip, description, error, controlFirst, children, className, ...props }: FieldProps): JSX.Element;
667
+ export declare function Field({ label, description, error, required, tooltip, inline, children, className, labelProps, descriptionProps, errorProps, ...rootProps }: FieldProps): JSX.Element;
668
+
669
+ export declare const FieldControl: typeof FieldPrimitive.Control;
671
670
 
672
671
  export declare function FieldDescription({ className, ...props }: FieldPrimitive.Description.Props): JSX.Element;
673
672
 
674
673
  export declare function FieldError({ className, ...props }: FieldPrimitive.Error.Props): JSX.Element;
675
674
 
675
+ export declare type FieldErrorItem = {
676
+ message: ReactNode;
677
+ match?: NonNullable<FieldErrorMatch>;
678
+ };
679
+
676
680
  export declare type FieldErrorMatch = FieldPrimitive.Error.Props["match"];
677
681
 
682
+ export declare type FieldErrorProp = string | FieldErrorItem | FieldErrorItem[];
683
+
684
+ export declare function FieldItem({ className, ...props }: FieldPrimitive.Item.Props): JSX.Element;
685
+
678
686
  export declare function FieldLabel({ className, ...props }: FieldPrimitive.Label.Props): JSX.Element;
679
687
 
680
688
  export { FieldPrimitive }
681
689
 
682
- export declare interface FieldProps extends FieldPrimitive.Root.Props {
690
+ export declare interface FieldProps extends Omit<FieldPrimitive.Root.Props, "children"> {
691
+ /** Text rendered inside `FieldLabel`. */
683
692
  label?: ReactNode;
693
+ /** Helper text rendered below the control. */
694
+ description?: ReactNode;
695
+ /**
696
+ * Error message(s) rendered below the control:
697
+ * - `string` → always renders once the field is invalid.
698
+ * - `{ message, match }` → renders only when the `ValidityState` key matches.
699
+ * - `FieldErrorItem[]` → multiple errors with individual matches.
700
+ */
701
+ error?: FieldErrorProp;
702
+ /** Shows a red asterisk after the label text. */
684
703
  required?: boolean;
704
+ /** Renders an info icon with a tooltip next to the label. */
685
705
  tooltip?: ReactNode;
686
- description?: ReactNode;
687
- error?: string | {
688
- message: ReactNode;
689
- match: NonNullable<FieldErrorMatch>;
690
- };
691
- controlFirst?: boolean;
706
+ /**
707
+ * Renders the control before the label on the same row.
708
+ * Use for single checkboxes and switches.
709
+ */
710
+ inline?: boolean;
711
+ children?: ReactNode;
712
+ labelProps?: FieldPrimitive.Label.Props;
713
+ descriptionProps?: FieldPrimitive.Description.Props;
714
+ errorProps?: Omit<FieldPrimitive.Error.Props, "match" | "children">;
692
715
  }
693
716
 
694
- export declare function FieldRoot({ className, ...props }: FieldPrimitive.Root.Props): JSX.Element;
717
+ export declare function FieldRoot({ className, required, ...props }: FieldPrimitive.Root.Props & {
718
+ required?: boolean;
719
+ }): JSX.Element;
720
+
721
+ export declare const FieldValidity: typeof FieldPrimitive.Validity;
695
722
 
696
723
  declare type FileError = {
697
724
  file: File;
@@ -731,32 +758,14 @@ export declare const FileTypeGroups: Record<string, FileTypeValue[]>;
731
758
 
732
759
  export declare type FileTypeValue = (typeof FileType)[keyof typeof FileType];
733
760
 
734
- export declare const Form: <TFieldValues extends FieldValues = FieldValues>({ onSubmit, id, form, children, className, }: Props_10<TFieldValues>) => JSX.Element;
735
-
736
- export declare const FormControl: ({ className, ...props }: React_2.ComponentProps<typeof Slot>) => JSX.Element;
761
+ export declare function Form({ onSubmit, onFormSubmit, className, ...props }: FormProps): default_2.ReactElement;
737
762
 
738
- export declare const FormDescription: ({ className, ...props }: React_2.ComponentProps<"p">) => JSX.Element;
763
+ export { FormPrimitive }
739
764
 
740
- export declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ name, label, description, className, render, itemProps, labelProps, controlProps, descriptionProps, messageProps, }: FormFieldProps<TFieldValues, TName>) => JSX.Element;
741
-
742
- declare type FormFieldProps<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>> = {
743
- name: TName;
744
- label?: string;
745
- description?: string;
746
- render: (field: ControllerRenderProps<TFieldValues, TName>) => React_2.ReactNode;
747
- className?: string;
748
- itemProps?: React_2.ComponentProps<typeof FormItem>;
749
- labelProps?: React_2.ComponentProps<typeof FormLabel>;
750
- controlProps?: React_2.ComponentProps<typeof FormControl>;
751
- descriptionProps?: React_2.ComponentProps<typeof FormDescription>;
752
- messageProps?: React_2.ComponentProps<typeof FormMessage>;
753
- };
754
-
755
- export declare const FormItem: ({ className, ...props }: React_2.ComponentProps<"div">) => JSX.Element;
756
-
757
- export declare const FormLabel: ({ className, ...props }: React_2.ComponentProps<"label">) => JSX.Element;
758
-
759
- export declare const FormMessage: ({ className, children, ...props }: React_2.ComponentProps<"p">) => JSX.Element | null;
765
+ export declare interface FormProps extends Omit<BaseProps, "onSubmit" | "onFormSubmit"> {
766
+ onSubmit?: BaseProps["onFormSubmit"];
767
+ onFormSubmit?: BaseProps["onFormSubmit"];
768
+ }
760
769
 
761
770
  export declare interface GenericMenuProps {
762
771
  trigger: default_2.ReactNode;
@@ -774,7 +783,7 @@ declare type GenericObject_2 = Record<string, any>;
774
783
 
775
784
  export declare const getFormData: (event: FormEvent<HTMLFormElement>) => Record<string, string>;
776
785
 
777
- export declare const Heading: <C extends React.ElementType = "h2">({ className, size, weight, as, ...props }: Props_11<C>) => JSX.Element;
786
+ export declare const Heading: <C extends React.ElementType = "h2">({ className, size, weight, as, ...props }: Props_10<C>) => JSX.Element;
778
787
 
779
788
  declare const HeadingVariants: (props?: ({
780
789
  size?: "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
@@ -792,25 +801,14 @@ declare type HotkeyOptions = {
792
801
 
793
802
  export declare type ID = string | number;
794
803
 
795
- export declare function Input({ className, label, tooltip, description, error, required, ...inputProps }: InputProps): JSX.Element;
804
+ export declare function Input({ className, nativeInput, onChange, ...props }: InputProps): JSX.Element;
796
805
 
797
806
  export { InputPrimitive }
798
807
 
799
- export declare interface InputProps extends InputRootProps {
800
- label?: ReactNode;
801
- tooltip?: ReactNode;
802
- description?: ReactNode;
803
- error?: string | {
804
- message: ReactNode;
805
- match: NonNullable<FieldErrorMatch>;
806
- };
807
- }
808
-
809
- export declare function InputRoot({ className, onChange, ...props }: InputRootProps): JSX.Element;
810
-
811
- export declare interface InputRootProps extends Omit<InputPrimitive.Props, "onChange" | "size"> {
808
+ export declare type InputProps = Omit<InputPrimitive.Props, "size" | "onChange"> & {
812
809
  onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
813
- }
810
+ nativeInput?: boolean;
811
+ };
814
812
 
815
813
  declare interface ItemTimeline {
816
814
  content?: ReactNode;
@@ -859,7 +857,7 @@ export declare type LibraryProviderProps = {
859
857
  tooltipDelay?: ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>["delay"];
860
858
  } & Omit<ToastProviderProps, "children">;
861
859
 
862
- export declare const Loader: ({ center, containerClassName, variant, size, ...props }: Props_12) => JSX.Element;
860
+ export declare const Loader: ({ center, containerClassName, variant, size, ...props }: Props_11) => JSX.Element;
863
861
 
864
862
  declare type LoaderVariants = VariantProps<typeof loaderVariants>;
865
863
 
@@ -1041,7 +1039,7 @@ declare type Mutation<TArgs extends any[], TReturn> = (...args: TArgs) => Promis
1041
1039
 
1042
1040
  declare type NavigationProps = Pick<CalendarNavigationProps, "goNextProps" | "goBackProps" | "changeViewProps">;
1043
1041
 
1044
- declare type NonClosableProps = BaseProps & {
1042
+ declare type NonClosableProps = BaseProps_2 & {
1045
1043
  closable?: false;
1046
1044
  onClose?: never;
1047
1045
  };
@@ -1050,7 +1048,7 @@ declare type noop = (this: any, ...args: any[]) => any;
1050
1048
 
1051
1049
  export declare type Nullable<T> = T | null;
1052
1050
 
1053
- export declare const NumberInput: ({ value: prop, onChange, defaultValue: defaultProp, className, min, max, ...props }: Props_13) => JSX.Element;
1051
+ export declare const NumberInput: ({ value: prop, onChange, defaultValue: defaultProp, className, min, max, ...props }: Props_12) => JSX.Element;
1054
1052
 
1055
1053
  declare type OpenProps = {
1056
1054
  open?: boolean;
@@ -1069,35 +1067,23 @@ export declare type OverrideProps<T, TOverridden> = Omit<T, keyof TOverridden> &
1069
1067
 
1070
1068
  export declare type PageSize = (typeof TABLE_PAGE_SIZES)[number];
1071
1069
 
1072
- export declare const Pagination: ({ optionProps, className, containerProps, ...rangeProps }: Props_14) => JSX.Element;
1070
+ export declare const Pagination: ({ optionProps, className, containerProps, ...rangeProps }: Props_13) => JSX.Element;
1073
1071
 
1074
1072
  declare interface PaginationOptionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
1075
1073
  isActive?: boolean;
1076
1074
  }
1077
1075
 
1078
- export declare function Password({ label, tooltip, description, error, required, ...passwordProps }: PasswordProps): JSX.Element;
1076
+ export declare function PasswordRoot({ className, showIcon, hideIcon, onShow, onHide, toggleable, onChange, ...rest }: PasswordRootProps): JSX.Element;
1079
1077
 
1080
- export declare interface PasswordProps extends PasswordRootProps {
1081
- label?: ReactNode;
1082
- tooltip?: ReactNode;
1083
- description?: ReactNode;
1084
- error?: string | {
1085
- message: ReactNode;
1086
- match: NonNullable<FieldErrorMatch>;
1087
- };
1088
- }
1089
-
1090
- export declare function PasswordRoot({ className, showIcon, hideIcon, onShow, onHide, toggleable, ...rest }: PasswordRootProps): JSX.Element;
1091
-
1092
- export declare interface PasswordRootProps extends InputRootProps {
1078
+ export declare type PasswordRootProps = Omit<InputProps, "unstyled" | "nativeInput"> & {
1093
1079
  showIcon?: ReactNode;
1094
1080
  hideIcon?: ReactNode;
1095
1081
  onShow?: () => void;
1096
1082
  onHide?: () => void;
1097
1083
  toggleable?: boolean;
1098
- }
1084
+ };
1099
1085
 
1100
- export declare const Popover: (props: Props_15) => JSX.Element;
1086
+ export declare const Popover: (props: Props_14) => JSX.Element;
1101
1087
 
1102
1088
  export declare const PopoverContent: ({ className, align, sideOffset, matchTriggerWidth, style, focus, ...props }: PopoverContentProps) => JSX.Element;
1103
1089
 
@@ -1146,24 +1132,16 @@ declare interface Props extends ExtendedProps {
1146
1132
  onSelect?: (value: AutoCompleteItem["value"], item: AutoCompleteItem) => any;
1147
1133
  }
1148
1134
 
1149
- declare type Props_10<TFieldValues extends FieldValues> = {
1150
- onSubmit: (data: TFieldValues) => void;
1151
- form: UseFormReturn<TFieldValues, any, any>;
1152
- children: React_2.ReactNode;
1153
- className?: string;
1154
- id?: string;
1155
- };
1156
-
1157
- declare type Props_11<C extends React.ElementType> = VariantProps<typeof HeadingVariants> & {
1135
+ declare type Props_10<C extends React.ElementType> = VariantProps<typeof HeadingVariants> & {
1158
1136
  as?: C;
1159
1137
  } & Omit<React.ComponentPropsWithoutRef<C>, "as">;
1160
1138
 
1161
- declare type Props_12 = LucideProps & LoaderVariants & {
1139
+ declare type Props_11 = LucideProps & LoaderVariants & {
1162
1140
  center?: boolean;
1163
1141
  containerClassName?: string;
1164
1142
  };
1165
1143
 
1166
- declare type Props_13 = OverrideProps<ComponentProps<"input">, {
1144
+ declare type Props_12 = OverrideProps<ComponentProps<"input">, {
1167
1145
  /** valor del input */
1168
1146
  value?: number;
1169
1147
  /** functión a ejecutar cuando el valor cambia */
@@ -1176,13 +1154,13 @@ declare type Props_13 = OverrideProps<ComponentProps<"input">, {
1176
1154
  max?: number;
1177
1155
  }>;
1178
1156
 
1179
- declare interface Props_14 extends useRangePaginationProps {
1157
+ declare interface Props_13 extends useRangePaginationProps {
1180
1158
  optionProps?: PaginationOptionProps;
1181
1159
  className?: string;
1182
1160
  containerProps?: HTMLProps<HTMLDivElement>;
1183
1161
  }
1184
1162
 
1185
- declare interface Props_15 {
1163
+ declare interface Props_14 {
1186
1164
  trigger?: ReactNode;
1187
1165
  children: ReactNode;
1188
1166
  rootProps?: ComponentPropsWithoutRef<typeof PopoverRoot>;
@@ -1196,12 +1174,12 @@ declare interface Props_15 {
1196
1174
  offset?: ComponentPropsWithoutRef<typeof PopoverContent>["sideOffset"];
1197
1175
  }
1198
1176
 
1199
- declare interface Props_16 extends ComponentPropsWithoutRef<typeof Slot> {
1177
+ declare interface Props_15 extends ComponentPropsWithoutRef<typeof Slot> {
1200
1178
  /** Si el componente está presente o no */
1201
1179
  when: ComponentProps<typeof Presence>["present"];
1202
1180
  }
1203
1181
 
1204
- declare type Props_17<T> = {
1182
+ declare type Props_16<T> = {
1205
1183
  data: T[];
1206
1184
  columns: ColumnDef<T>[];
1207
1185
  onRowClick?: (row: T) => void;
@@ -1209,12 +1187,16 @@ declare type Props_17<T> = {
1209
1187
  selected?: (row: T) => boolean;
1210
1188
  } & ExtendedProps_2 & Omit<ComponentPropsWithoutRef<typeof TableRoot>, "data" | "selected" | "onDoubleClick">;
1211
1189
 
1212
- declare type Props_18 = {
1190
+ declare type Props_17 = {
1213
1191
  setPageSize?: (value: PageSize) => void;
1214
1192
  pageSize?: PageSize;
1215
1193
  } & Omit<usePaginationProps, "pageSize"> & TablePaginationExtendedProps;
1216
1194
 
1217
- declare type Props_19 = ClosableProps | NonClosableProps;
1195
+ declare type Props_18 = ClosableProps | NonClosableProps;
1196
+
1197
+ declare type Props_19<T extends TreeNode> = TreeRootProps & {
1198
+ items: T[];
1199
+ };
1218
1200
 
1219
1201
  declare interface Props_2 extends HTMLProps<HTMLDivElement> {
1220
1202
  /**
@@ -1223,11 +1205,7 @@ declare interface Props_2 extends HTMLProps<HTMLDivElement> {
1223
1205
  src: string;
1224
1206
  }
1225
1207
 
1226
- declare type Props_20<T extends TreeNode> = TreeRootProps & {
1227
- items: T[];
1228
- };
1229
-
1230
- declare interface Props_21<T> extends UseAsyncOptions<T> {
1208
+ declare interface Props_20<T> extends UseAsyncOptions<T> {
1231
1209
  fn: () => Promise<T>;
1232
1210
  dependencies?: DependencyList;
1233
1211
  }
@@ -1441,7 +1419,7 @@ declare type Shortcut = Partial<{
1441
1419
  shortcutOptions: MenuShortcutProps_2["options"];
1442
1420
  }>;
1443
1421
 
1444
- export declare const Show: ({ when, ...props }: Props_16) => JSX.Element;
1422
+ export declare const Show: ({ when, ...props }: Props_15) => JSX.Element;
1445
1423
 
1446
1424
  export declare type SingleDateValue = {
1447
1425
  value?: DateSingle;
@@ -1540,7 +1518,7 @@ export declare interface TabContentProps extends HTMLProps<HTMLDivElement> {
1540
1518
  value: string;
1541
1519
  }
1542
1520
 
1543
- export declare const Table: <T>({ data, columns, onRowClick, onDoubleClick, selected, theadClassName, theadProps, tbodyClassName, tbodyProps, trClassName, trProps, thClassName, thProps, tdClassName, tdProps, ...tableProps }: Props_17<T>) => JSX.Element;
1521
+ export declare const Table: <T>({ data, columns, onRowClick, onDoubleClick, selected, theadClassName, theadProps, tbodyClassName, tbodyProps, trClassName, trProps, thClassName, thProps, tdClassName, tdProps, ...tableProps }: Props_16<T>) => JSX.Element;
1544
1522
 
1545
1523
  export declare const TABLE_PAGE_SIZES: number[];
1546
1524
 
@@ -1568,7 +1546,7 @@ declare type TableHeaderProps = React_2.ComponentProps<"thead">;
1568
1546
 
1569
1547
  declare type TableHeadProps = React_2.ComponentProps<"th">;
1570
1548
 
1571
- export declare const TablePagination: ({ containerClassName, containerProps, selectClassName, selectProps, sizes, ...props }: Props_18) => JSX.Element;
1549
+ export declare const TablePagination: ({ containerClassName, containerProps, selectClassName, selectProps, sizes, ...props }: Props_17) => JSX.Element;
1572
1550
 
1573
1551
  declare interface TablePaginationExtendedProps {
1574
1552
  containerClassName?: ClassName;
@@ -1623,7 +1601,7 @@ export declare interface TabTriggerProps extends Omit<HTMLProps<HTMLButtonElemen
1623
1601
  value: string;
1624
1602
  }
1625
1603
 
1626
- export declare const Tag: ({ className, color, variant, rounded, icon, closable, onClose, children, ...props }: Props_19) => JSX.Element;
1604
+ export declare const Tag: ({ className, color, variant, rounded, icon, closable, onClose, children, ...props }: Props_18) => JSX.Element;
1627
1605
 
1628
1606
  export declare type TagVariant = VariantProps<typeof tagVariants>;
1629
1607
 
@@ -1830,7 +1808,7 @@ export declare function TooltipRoot(props: RootProps): JSX.Element;
1830
1808
 
1831
1809
  export declare function TooltipTrigger({ className, ...props }: TriggerProps): JSX.Element;
1832
1810
 
1833
- export declare function Tree<T extends TreeNode>({ items, ...props }: Props_20<T>): JSX.Element;
1811
+ export declare function Tree<T extends TreeNode>({ items, ...props }: Props_19<T>): JSX.Element;
1834
1812
 
1835
1813
  export declare const TreeItem: <T extends object>({ className, ...props }: OverrideProps<TreeItemProps<T>, {
1836
1814
  id: string | number;
@@ -1920,7 +1898,7 @@ export declare function useArray<T>(defaultProp: T[]): readonly [T[], {
1920
1898
  readonly update: (predicate: ListIterateeCustom<T, boolean>, newItem: T | ((item: T) => T)) => void;
1921
1899
  }];
1922
1900
 
1923
- export declare function useAsync<T>({ fn, dependencies, onError, onSuccess, onFinish, }: Props_21<T>): AsyncState<T>;
1901
+ export declare function useAsync<T>({ fn, dependencies, onError, onSuccess, onFinish, }: Props_20<T>): AsyncState<T>;
1924
1902
 
1925
1903
  declare interface UseAsyncOptions<T> {
1926
1904
  onError?: (error: Error) => void;
@@ -1953,21 +1931,6 @@ export declare function useEventListener<K extends keyof HTMLElementEventMap, T
1953
1931
 
1954
1932
  export declare function useFocusTrap(active?: boolean): (instance: HTMLElement | null) => void;
1955
1933
 
1956
- export declare function useForm<T extends FieldValues = FieldValues>(schema: z.ZodType<T>, options?: Partial<UseFormProps<T>>): UseFormReturn<T, any, T>;
1957
-
1958
- export declare const useFormField: () => {
1959
- invalid: boolean;
1960
- isDirty: boolean;
1961
- isTouched: boolean;
1962
- isValidating: boolean;
1963
- error?: FieldError_2;
1964
- id: string;
1965
- name: string;
1966
- formItemId: string;
1967
- formDescriptionId: string;
1968
- formMessageId: string;
1969
- };
1970
-
1971
1934
  export declare function useHotkey(keys: string | string[], handler: (event: KeyboardEvent) => void, options?: HotkeyOptions): RefObject<any>;
1972
1935
 
1973
1936
  export declare function useHover<T extends HTMLElement>(options?: UseHoverOptions): {