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

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
@@ -1,7 +1,8 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from '@base-ui/react/alert-dialog';
2
2
  import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
3
3
  import { ButtonHTMLAttributes } from 'react';
4
- import { CheckboxGroup as CheckboxGroup_2 } from '@base-ui/react/checkbox-group';
4
+ import { ChangeEvent } from 'react';
5
+ import { CheckboxGroup as CheckboxGroup_3 } from '@base-ui/react/checkbox-group';
5
6
  import { Checkbox as CheckboxPrimitive } from '@base-ui/react/checkbox';
6
7
  import { ClassNameValue } from 'tailwind-merge';
7
8
  import { ClassProp } from 'class-variance-authority/types';
@@ -19,12 +20,14 @@ import { DialogProps as DialogProps_2 } from '@radix-ui/react-dialog';
19
20
  import { Dispatch } from 'react';
20
21
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
21
22
  import { ElementType } from 'react';
22
- import { FieldError } from 'react-hook-form';
23
+ import { FieldError as FieldError_2 } from 'react-hook-form';
23
24
  import { FieldPath } from 'react-hook-form';
25
+ import { Field as FieldPrimitive } from '@base-ui/react/field';
24
26
  import { FieldValues } from 'react-hook-form';
25
27
  import { FormEvent } from 'react';
26
28
  import { HTMLAttributes } from 'react';
27
29
  import { HTMLProps } from 'react';
30
+ import { Input as InputPrimitive } from '@base-ui/react/input';
28
31
  import { JSX } from 'react/jsx-runtime';
29
32
  import { ListIterateeCustom } from 'lodash';
30
33
  import { LucideIcon } from 'lucide-react';
@@ -229,7 +232,7 @@ declare type ButtonProps = ComponentProps<typeof Button>;
229
232
  declare type ButtonProps_2 = ComponentProps<typeof Button>;
230
233
 
231
234
  export declare const buttonVariants: (props?: ({
232
- variant?: "default" | "success" | "error" | "link" | "outline" | "secondary" | "ghost" | null | undefined;
235
+ variant?: "default" | "link" | "error" | "success" | "outline" | "secondary" | "ghost" | null | undefined;
233
236
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
234
237
  shape?: "rounded" | "circle" | "square" | null | undefined;
235
238
  } & ClassProp) | undefined) => string;
@@ -307,21 +310,58 @@ declare interface CenterProps extends ComponentProps<"div"> {
307
310
  inline?: boolean;
308
311
  }
309
312
 
310
- export declare function Checkbox({ children, className, id, indicatorProps, ...props }: CheckboxProps): React_2.ReactElement;
313
+ export declare const Checkbox: typeof CheckboxSingle & {
314
+ Item: typeof CheckboxItem;
315
+ Group: typeof CheckboxGroup_2;
316
+ Legend: typeof CheckboxLegend;
317
+ };
318
+
319
+ export declare function CheckboxGroup({ className, ...props }: CheckboxGroup_3.Props): React_2.ReactElement;
320
+
321
+ declare function CheckboxGroup_2({ legend, children, error, description, defaultValue, value, onChange, allValues, disabled, controlFirst, className, }: CheckboxGroupProps): React_2.ReactElement;
311
322
 
312
- export declare function CheckboxGroup({ className, ...props }: CheckboxGroup_2.Props): React_2.ReactElement;
323
+ export declare interface CheckboxGroupProps {
324
+ legend?: ReactNode;
325
+ children: ReactNode;
326
+ error?: string;
327
+ description?: ReactNode;
328
+ defaultValue?: string[];
329
+ value?: string[];
330
+ onChange?: (value: string[]) => void;
331
+ allValues?: string[];
332
+ disabled?: boolean;
333
+ controlFirst?: boolean;
334
+ className?: string;
335
+ }
313
336
 
314
337
  export declare function CheckboxIndicator({ className, ...props }: CheckboxPrimitive.Indicator.Props): React_2.ReactElement;
315
338
 
339
+ declare function CheckboxItem({ className, label, id, ...props }: CheckboxItemProps): React_2.ReactElement;
340
+
341
+ export declare interface CheckboxItemProps extends Omit<CheckboxPrimitive.Root.Props, "children"> {
342
+ label: ReactNode;
343
+ }
344
+
345
+ declare function CheckboxLegend({ children, className }: CheckboxLegendProps): React_2.ReactElement;
346
+
347
+ export declare interface CheckboxLegendProps {
348
+ children: ReactNode;
349
+ className?: string;
350
+ }
351
+
316
352
  export { CheckboxPrimitive }
317
353
 
318
354
  declare interface CheckboxProps extends Omit<CheckboxPrimitive.Root.Props, "children"> {
319
- children?: React_2.ReactNode;
355
+ children?: ReactNode;
356
+ label?: ReactNode;
320
357
  indicatorProps?: CheckboxPrimitive.Indicator.Props;
358
+ controlFirst?: boolean;
321
359
  }
322
360
 
323
361
  export declare function CheckboxRoot({ className, ...props }: CheckboxPrimitive.Root.Props): React_2.ReactElement;
324
362
 
363
+ declare function CheckboxSingle({ children, label, className, id, indicatorProps, controlFirst, ...props }: CheckboxProps): React_2.ReactElement;
364
+
325
365
  export declare type ClassName = string | undefined;
326
366
 
327
367
  export declare const click: (element: HTMLElement) => void;
@@ -627,7 +667,31 @@ declare interface ExtendedProps_2 {
627
667
  */
628
668
  export declare const extractInitials: (string: string) => string;
629
669
 
630
- export declare const Field: ({ label, labelClassName, labelProps, error, errorClassName, errorProps, children, className, ...props }: Props_10) => JSX.Element;
670
+ export declare function Field({ label, required, tooltip, description, error, controlFirst, children, className, ...props }: FieldProps): JSX.Element;
671
+
672
+ export declare function FieldDescription({ className, ...props }: FieldPrimitive.Description.Props): JSX.Element;
673
+
674
+ export declare function FieldError({ className, ...props }: FieldPrimitive.Error.Props): JSX.Element;
675
+
676
+ export declare type FieldErrorMatch = FieldPrimitive.Error.Props["match"];
677
+
678
+ export declare function FieldLabel({ className, ...props }: FieldPrimitive.Label.Props): JSX.Element;
679
+
680
+ export { FieldPrimitive }
681
+
682
+ export declare interface FieldProps extends FieldPrimitive.Root.Props {
683
+ label?: ReactNode;
684
+ required?: boolean;
685
+ tooltip?: ReactNode;
686
+ description?: ReactNode;
687
+ error?: string | {
688
+ message: ReactNode;
689
+ match: NonNullable<FieldErrorMatch>;
690
+ };
691
+ controlFirst?: boolean;
692
+ }
693
+
694
+ export declare function FieldRoot({ className, ...props }: FieldPrimitive.Root.Props): JSX.Element;
631
695
 
632
696
  declare type FileError = {
633
697
  file: File;
@@ -667,7 +731,7 @@ export declare const FileTypeGroups: Record<string, FileTypeValue[]>;
667
731
 
668
732
  export declare type FileTypeValue = (typeof FileType)[keyof typeof FileType];
669
733
 
670
- export declare const Form: <TFieldValues extends FieldValues = FieldValues>({ onSubmit, id, form, children, className, }: Props_11<TFieldValues>) => JSX.Element;
734
+ export declare const Form: <TFieldValues extends FieldValues = FieldValues>({ onSubmit, id, form, children, className, }: Props_10<TFieldValues>) => JSX.Element;
671
735
 
672
736
  export declare const FormControl: ({ className, ...props }: React_2.ComponentProps<typeof Slot>) => JSX.Element;
673
737
 
@@ -710,7 +774,7 @@ declare type GenericObject_2 = Record<string, any>;
710
774
 
711
775
  export declare const getFormData: (event: FormEvent<HTMLFormElement>) => Record<string, string>;
712
776
 
713
- export declare const Heading: <C extends React.ElementType = "h2">({ className, size, weight, as, ...props }: Props_12<C>) => JSX.Element;
777
+ export declare const Heading: <C extends React.ElementType = "h2">({ className, size, weight, as, ...props }: Props_11<C>) => JSX.Element;
714
778
 
715
779
  declare const HeadingVariants: (props?: ({
716
780
  size?: "sm" | "lg" | "md" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | null | undefined;
@@ -728,7 +792,25 @@ declare type HotkeyOptions = {
728
792
 
729
793
  export declare type ID = string | number;
730
794
 
731
- export declare const Input: ({ value: prop, onChange, defaultValue: defaultProp, ...rest }: Props_13) => JSX.Element;
795
+ export declare function Input({ className, label, tooltip, description, error, required, ...inputProps }: InputProps): JSX.Element;
796
+
797
+ export { InputPrimitive }
798
+
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"> {
812
+ onChange?: (value: string, event: ChangeEvent<HTMLInputElement>) => void;
813
+ }
732
814
 
733
815
  declare interface ItemTimeline {
734
816
  content?: ReactNode;
@@ -777,12 +859,12 @@ export declare type LibraryProviderProps = {
777
859
  tooltipDelay?: ComponentPropsWithoutRef<typeof TooltipPrimitive.Provider>["delay"];
778
860
  } & Omit<ToastProviderProps, "children">;
779
861
 
780
- export declare const Loader: ({ center, containerClassName, variant, size, ...props }: Props_14) => JSX.Element;
862
+ export declare const Loader: ({ center, containerClassName, variant, size, ...props }: Props_12) => JSX.Element;
781
863
 
782
864
  declare type LoaderVariants = VariantProps<typeof loaderVariants>;
783
865
 
784
866
  declare const loaderVariants: (props?: ({
785
- variant?: "success" | "error" | "warning" | "info" | "secondary" | "ghost" | "primary" | null | undefined;
867
+ variant?: "error" | "success" | "secondary" | "ghost" | "primary" | "warning" | "info" | null | undefined;
786
868
  size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
787
869
  } & ClassProp) | undefined) => string;
788
870
 
@@ -968,7 +1050,7 @@ declare type noop = (this: any, ...args: any[]) => any;
968
1050
 
969
1051
  export declare type Nullable<T> = T | null;
970
1052
 
971
- export declare const NumberInput: ({ value: prop, onChange, defaultValue: defaultProp, className, min, max, ...props }: Props_15) => JSX.Element;
1053
+ export declare const NumberInput: ({ value: prop, onChange, defaultValue: defaultProp, className, min, max, ...props }: Props_13) => JSX.Element;
972
1054
 
973
1055
  declare type OpenProps = {
974
1056
  open?: boolean;
@@ -987,15 +1069,35 @@ export declare type OverrideProps<T, TOverridden> = Omit<T, keyof TOverridden> &
987
1069
 
988
1070
  export declare type PageSize = (typeof TABLE_PAGE_SIZES)[number];
989
1071
 
990
- export declare const Pagination: ({ optionProps, className, containerProps, ...rangeProps }: Props_16) => JSX.Element;
1072
+ export declare const Pagination: ({ optionProps, className, containerProps, ...rangeProps }: Props_14) => JSX.Element;
991
1073
 
992
1074
  declare interface PaginationOptionProps extends ButtonHTMLAttributes<HTMLButtonElement> {
993
1075
  isActive?: boolean;
994
1076
  }
995
1077
 
996
- export declare const Password: ({ className, containerClassName, showIcon, hideIcon, onShow, onHide, toggleable, ...rest }: Props_17) => JSX.Element;
1078
+ export declare function Password({ label, tooltip, description, error, required, ...passwordProps }: PasswordProps): JSX.Element;
997
1079
 
998
- export declare const Popover: (props: Props_18) => JSX.Element;
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 {
1093
+ showIcon?: ReactNode;
1094
+ hideIcon?: ReactNode;
1095
+ onShow?: () => void;
1096
+ onHide?: () => void;
1097
+ toggleable?: boolean;
1098
+ }
1099
+
1100
+ export declare const Popover: (props: Props_15) => JSX.Element;
999
1101
 
1000
1102
  export declare const PopoverContent: ({ className, align, sideOffset, matchTriggerWidth, style, focus, ...props }: PopoverContentProps) => JSX.Element;
1001
1103
 
@@ -1015,7 +1117,7 @@ export declare function Progress({ size, variant, className, trackProps, indicat
1015
1117
  export declare function ProgressIndicator({ className, variant, ...props }: Progress_2.Indicator.Props & VariantProps<typeof progressIndicatorVariants>): React_2.ReactElement;
1016
1118
 
1017
1119
  declare const progressIndicatorVariants: (props?: ({
1018
- variant?: "default" | "success" | "error" | "warning" | "info" | null | undefined;
1120
+ variant?: "default" | "error" | "success" | "warning" | "info" | null | undefined;
1019
1121
  } & ClassProp) | undefined) => string;
1020
1122
 
1021
1123
  export declare function ProgressLabel({ className, ...props }: Progress_2.Label.Props): React_2.ReactElement;
@@ -1044,16 +1146,7 @@ declare interface Props extends ExtendedProps {
1044
1146
  onSelect?: (value: AutoCompleteItem["value"], item: AutoCompleteItem) => any;
1045
1147
  }
1046
1148
 
1047
- declare interface Props_10 extends ComponentProps<"div"> {
1048
- label?: ReactNode;
1049
- labelClassName?: string;
1050
- labelProps?: ComponentPropsWithoutRef<"label">;
1051
- error?: ReactNode;
1052
- errorClassName?: string;
1053
- errorProps?: ComponentPropsWithoutRef<"p">;
1054
- }
1055
-
1056
- declare type Props_11<TFieldValues extends FieldValues> = {
1149
+ declare type Props_10<TFieldValues extends FieldValues> = {
1057
1150
  onSubmit: (data: TFieldValues) => void;
1058
1151
  form: UseFormReturn<TFieldValues, any, any>;
1059
1152
  children: React_2.ReactNode;
@@ -1061,25 +1154,16 @@ declare type Props_11<TFieldValues extends FieldValues> = {
1061
1154
  id?: string;
1062
1155
  };
1063
1156
 
1064
- declare type Props_12<C extends React.ElementType> = VariantProps<typeof HeadingVariants> & {
1157
+ declare type Props_11<C extends React.ElementType> = VariantProps<typeof HeadingVariants> & {
1065
1158
  as?: C;
1066
1159
  } & Omit<React.ComponentPropsWithoutRef<C>, "as">;
1067
1160
 
1068
- declare type Props_13 = OverrideProps<ComponentProps<"input">, {
1069
- /** valor del input */
1070
- value?: string;
1071
- /** functión a ejecutar cuando el valor cambia */
1072
- onChange?: (value: string) => void;
1073
- /** valor por defecto del input */
1074
- defaultValue?: string;
1075
- }>;
1076
-
1077
- declare type Props_14 = LucideProps & LoaderVariants & {
1161
+ declare type Props_12 = LucideProps & LoaderVariants & {
1078
1162
  center?: boolean;
1079
1163
  containerClassName?: string;
1080
1164
  };
1081
1165
 
1082
- declare type Props_15 = OverrideProps<ComponentProps<"input">, {
1166
+ declare type Props_13 = OverrideProps<ComponentProps<"input">, {
1083
1167
  /** valor del input */
1084
1168
  value?: number;
1085
1169
  /** functión a ejecutar cuando el valor cambia */
@@ -1092,28 +1176,13 @@ declare type Props_15 = OverrideProps<ComponentProps<"input">, {
1092
1176
  max?: number;
1093
1177
  }>;
1094
1178
 
1095
- declare interface Props_16 extends useRangePaginationProps {
1179
+ declare interface Props_14 extends useRangePaginationProps {
1096
1180
  optionProps?: PaginationOptionProps;
1097
1181
  className?: string;
1098
1182
  containerProps?: HTMLProps<HTMLDivElement>;
1099
1183
  }
1100
1184
 
1101
- declare type Props_17 = OverrideProps<ComponentProps<typeof Input>, {
1102
- /** Clase CSS para el contenedor */
1103
- containerClassName?: string;
1104
- /** Ícono para mostrar la contraseña */
1105
- showIcon?: ReactNode;
1106
- /** Ícono para ocultar la contraseña */
1107
- hideIcon?: ReactNode;
1108
- /** Callback cuando se muestra la contraseña */
1109
- onShow?: () => void;
1110
- /** Callback cuando se oculta la contraseña */
1111
- onHide?: () => void;
1112
- /** Habilita/deshabilita el botón de mostrar/ocultar contraseña */
1113
- toggleable?: boolean;
1114
- }>;
1115
-
1116
- declare interface Props_18 {
1185
+ declare interface Props_15 {
1117
1186
  trigger?: ReactNode;
1118
1187
  children: ReactNode;
1119
1188
  rootProps?: ComponentPropsWithoutRef<typeof PopoverRoot>;
@@ -1127,19 +1196,12 @@ declare interface Props_18 {
1127
1196
  offset?: ComponentPropsWithoutRef<typeof PopoverContent>["sideOffset"];
1128
1197
  }
1129
1198
 
1130
- declare interface Props_19 extends ComponentPropsWithoutRef<typeof Slot> {
1199
+ declare interface Props_16 extends ComponentPropsWithoutRef<typeof Slot> {
1131
1200
  /** Si el componente está presente o no */
1132
1201
  when: ComponentProps<typeof Presence>["present"];
1133
1202
  }
1134
1203
 
1135
- declare interface Props_2 extends HTMLProps<HTMLDivElement> {
1136
- /**
1137
- * La URL de la imagen
1138
- */
1139
- src: string;
1140
- }
1141
-
1142
- declare type Props_20<T> = {
1204
+ declare type Props_17<T> = {
1143
1205
  data: T[];
1144
1206
  columns: ColumnDef<T>[];
1145
1207
  onRowClick?: (row: T) => void;
@@ -1147,18 +1209,25 @@ declare type Props_20<T> = {
1147
1209
  selected?: (row: T) => boolean;
1148
1210
  } & ExtendedProps_2 & Omit<ComponentPropsWithoutRef<typeof TableRoot>, "data" | "selected" | "onDoubleClick">;
1149
1211
 
1150
- declare type Props_21 = {
1212
+ declare type Props_18 = {
1151
1213
  setPageSize?: (value: PageSize) => void;
1152
1214
  pageSize?: PageSize;
1153
1215
  } & Omit<usePaginationProps, "pageSize"> & TablePaginationExtendedProps;
1154
1216
 
1155
- declare type Props_22 = ClosableProps | NonClosableProps;
1217
+ declare type Props_19 = ClosableProps | NonClosableProps;
1218
+
1219
+ declare interface Props_2 extends HTMLProps<HTMLDivElement> {
1220
+ /**
1221
+ * La URL de la imagen
1222
+ */
1223
+ src: string;
1224
+ }
1156
1225
 
1157
- declare type Props_23<T extends TreeNode> = TreeRootProps & {
1226
+ declare type Props_20<T extends TreeNode> = TreeRootProps & {
1158
1227
  items: T[];
1159
1228
  };
1160
1229
 
1161
- declare interface Props_24<T> extends UseAsyncOptions<T> {
1230
+ declare interface Props_21<T> extends UseAsyncOptions<T> {
1162
1231
  fn: () => Promise<T>;
1163
1232
  dependencies?: DependencyList;
1164
1233
  }
@@ -1372,7 +1441,7 @@ declare type Shortcut = Partial<{
1372
1441
  shortcutOptions: MenuShortcutProps_2["options"];
1373
1442
  }>;
1374
1443
 
1375
- export declare const Show: ({ when, ...props }: Props_19) => JSX.Element;
1444
+ export declare const Show: ({ when, ...props }: Props_16) => JSX.Element;
1376
1445
 
1377
1446
  export declare type SingleDateValue = {
1378
1447
  value?: DateSingle;
@@ -1452,11 +1521,13 @@ declare interface StepperTriggerProps {
1452
1521
 
1453
1522
  declare type StyleProps = ColorProps | VariantProps_2;
1454
1523
 
1455
- export declare function Switch({ children, className, id, thumbProps, ...props }: SwitchProps): React_2.ReactElement;
1524
+ export declare function Switch({ children, label, className, id, thumbProps, controlFirst, ...props }: SwitchProps): React_2.ReactElement;
1456
1525
 
1457
1526
  declare interface SwitchProps extends Omit<Switch_2.Root.Props, "children"> {
1458
1527
  children?: React_2.ReactNode;
1528
+ label?: React_2.ReactNode;
1459
1529
  thumbProps?: Switch_2.Thumb.Props;
1530
+ controlFirst?: boolean;
1460
1531
  }
1461
1532
 
1462
1533
  export declare function SwitchRoot({ className, ...props }: Switch_2.Root.Props): React_2.ReactElement;
@@ -1469,7 +1540,7 @@ export declare interface TabContentProps extends HTMLProps<HTMLDivElement> {
1469
1540
  value: string;
1470
1541
  }
1471
1542
 
1472
- export declare const Table: <T>({ data, columns, onRowClick, onDoubleClick, selected, theadClassName, theadProps, tbodyClassName, tbodyProps, trClassName, trProps, thClassName, thProps, tdClassName, tdProps, ...tableProps }: Props_20<T>) => JSX.Element;
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;
1473
1544
 
1474
1545
  export declare const TABLE_PAGE_SIZES: number[];
1475
1546
 
@@ -1497,7 +1568,7 @@ declare type TableHeaderProps = React_2.ComponentProps<"thead">;
1497
1568
 
1498
1569
  declare type TableHeadProps = React_2.ComponentProps<"th">;
1499
1570
 
1500
- export declare const TablePagination: ({ containerClassName, containerProps, selectClassName, selectProps, sizes, ...props }: Props_21) => JSX.Element;
1571
+ export declare const TablePagination: ({ containerClassName, containerProps, selectClassName, selectProps, sizes, ...props }: Props_18) => JSX.Element;
1501
1572
 
1502
1573
  declare interface TablePaginationExtendedProps {
1503
1574
  containerClassName?: ClassName;
@@ -1552,13 +1623,13 @@ export declare interface TabTriggerProps extends Omit<HTMLProps<HTMLButtonElemen
1552
1623
  value: string;
1553
1624
  }
1554
1625
 
1555
- export declare const Tag: ({ className, color, variant, rounded, icon, closable, onClose, children, ...props }: Props_22) => JSX.Element;
1626
+ export declare const Tag: ({ className, color, variant, rounded, icon, closable, onClose, children, ...props }: Props_19) => JSX.Element;
1556
1627
 
1557
1628
  export declare type TagVariant = VariantProps<typeof tagVariants>;
1558
1629
 
1559
1630
  export declare const tagVariants: (props?: ({
1560
1631
  rounded?: "default" | "square" | "full" | null | undefined;
1561
- variant?: "success" | "error" | "outline" | "secondary" | "primary" | "borderless" | null | undefined;
1632
+ variant?: "error" | "success" | "outline" | "secondary" | "primary" | "borderless" | null | undefined;
1562
1633
  } & ClassProp) | undefined) => string;
1563
1634
 
1564
1635
  export declare const Textarea: ({ className, ...props }: TextAreaProps) => JSX.Element;
@@ -1759,7 +1830,7 @@ export declare function TooltipRoot(props: RootProps): JSX.Element;
1759
1830
 
1760
1831
  export declare function TooltipTrigger({ className, ...props }: TriggerProps): JSX.Element;
1761
1832
 
1762
- export declare function Tree<T extends TreeNode>({ items, ...props }: Props_23<T>): JSX.Element;
1833
+ export declare function Tree<T extends TreeNode>({ items, ...props }: Props_20<T>): JSX.Element;
1763
1834
 
1764
1835
  export declare const TreeItem: <T extends object>({ className, ...props }: OverrideProps<TreeItemProps<T>, {
1765
1836
  id: string | number;
@@ -1849,7 +1920,7 @@ export declare function useArray<T>(defaultProp: T[]): readonly [T[], {
1849
1920
  readonly update: (predicate: ListIterateeCustom<T, boolean>, newItem: T | ((item: T) => T)) => void;
1850
1921
  }];
1851
1922
 
1852
- export declare function useAsync<T>({ fn, dependencies, onError, onSuccess, onFinish, }: Props_24<T>): AsyncState<T>;
1923
+ export declare function useAsync<T>({ fn, dependencies, onError, onSuccess, onFinish, }: Props_21<T>): AsyncState<T>;
1853
1924
 
1854
1925
  declare interface UseAsyncOptions<T> {
1855
1926
  onError?: (error: Error) => void;
@@ -1889,7 +1960,7 @@ export declare const useFormField: () => {
1889
1960
  isDirty: boolean;
1890
1961
  isTouched: boolean;
1891
1962
  isValidating: boolean;
1892
- error?: FieldError;
1963
+ error?: FieldError_2;
1893
1964
  id: string;
1894
1965
  name: string;
1895
1966
  formItemId: string;