@0xchain/ui 1.1.0-beta.41 → 1.1.0-beta.44

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.
Files changed (2) hide show
  1. package/dist/form.d.ts +37 -0
  2. package/package.json +1 -1
package/dist/form.d.ts CHANGED
@@ -1 +1,38 @@
1
+ import { ControllerProps } from 'react-hook-form';
2
+ import { FieldError } from 'react-hook-form';
3
+ import { FieldPath } from 'react-hook-form';
4
+ import { FieldValues } from 'react-hook-form';
5
+ import { FormProviderProps } from 'react-hook-form';
6
+ import { JSX } from 'react/jsx-runtime';
7
+ import * as LabelPrimitive from '@radix-ui/react-label';
8
+ import * as React_2 from 'react';
9
+ import { Slot } from '@radix-ui/react-slot';
10
+
11
+ export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
12
+
13
+ export declare function FormControl({ ...props }: React_2.ComponentProps<typeof Slot>): JSX.Element;
14
+
15
+ export declare function FormDescription({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element;
16
+
17
+ export declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => JSX.Element;
18
+
19
+ export declare function FormItem({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
20
+
21
+ export declare function FormLabel({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
22
+
23
+ export declare function FormMessage({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element | null;
24
+
25
+ export declare const useFormField: () => {
26
+ invalid: boolean;
27
+ isDirty: boolean;
28
+ isTouched: boolean;
29
+ isValidating: boolean;
30
+ error?: FieldError;
31
+ id: string;
32
+ name: string;
33
+ formItemId: string;
34
+ formDescriptionId: string;
35
+ formMessageId: string;
36
+ };
37
+
1
38
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@0xchain/ui",
3
- "version": "1.1.0-beta.41",
3
+ "version": "1.1.0-beta.44",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",