@baolq/ui 1.1.15 → 1.1.16
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/components/form.d.ts +24 -12
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1437 -1378
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,21 +1,33 @@
|
|
|
1
|
+
import { ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
1
2
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
declare const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: import('react-hook-form').FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
4
|
+
declare const FormField: {
|
|
5
|
+
<TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
declare const useFormField: () => {
|
|
9
|
+
invalid: boolean;
|
|
10
|
+
isDirty: boolean;
|
|
11
|
+
isTouched: boolean;
|
|
12
|
+
isValidating: boolean;
|
|
13
|
+
error?: import('react-hook-form').FieldError;
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
formItemId: string;
|
|
17
|
+
formDescriptionId: string;
|
|
18
|
+
formMessageId: string;
|
|
19
|
+
};
|
|
20
|
+
interface FormItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
13
21
|
}
|
|
14
22
|
declare const FormItem: React.ForwardRefExoticComponent<FormItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
declare const FormLabel: React.ForwardRefExoticComponent<Omit<import('./label').LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
24
|
+
declare const FormControl: React.ForwardRefExoticComponent<Omit<import('@radix-ui/react-slot').SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
25
|
+
declare const FormDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
26
|
+
declare const FormMessage: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
15
27
|
export interface FormSectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
28
|
title?: string;
|
|
17
29
|
description?: string;
|
|
18
30
|
}
|
|
19
31
|
declare const FormSection: React.ForwardRefExoticComponent<FormSectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
32
|
declare const FormActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
-
export { Form, FormItem, FormSection,
|
|
33
|
+
export { Form, FormActions, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, FormSection, useFormField, };
|