@antoniobenincasa/ui 0.1.0 → 0.3.1

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,6 +1,14 @@
1
1
  import { ClassProp } from 'class-variance-authority/types';
2
+ import { ControllerProps } from 'react-hook-form';
3
+ import { FieldError } from 'react-hook-form';
4
+ import { FieldPath } from 'react-hook-form';
5
+ import { FieldValues } from 'react-hook-form';
6
+ import { FormProviderProps } from 'react-hook-form';
2
7
  import { JSX } from 'react/jsx-runtime';
8
+ import * as LabelPrimitive from '@radix-ui/react-label';
3
9
  import * as React_2 from 'react';
10
+ import { Slot } from '@radix-ui/react-slot';
11
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
4
12
  import { VariantProps } from 'class-variance-authority';
5
13
 
6
14
  export declare function Button({ className, variant, size, asChild, ...props }: React_2.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
@@ -26,6 +34,43 @@ export declare function CardHeader({ className, ...props }: React_2.ComponentPro
26
34
 
27
35
  export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
28
36
 
37
+ export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
38
+
39
+ export declare function FormControl({ ...props }: React_2.ComponentProps<typeof Slot>): JSX.Element;
40
+
41
+ export declare function FormDescription({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element;
42
+
43
+ export declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => JSX.Element;
44
+
45
+ export declare function FormItem({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
46
+
47
+ export declare function FormLabel({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
48
+
49
+ export declare function FormMessage({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element | null;
50
+
29
51
  export declare function Input({ className, type, ...props }: React_2.ComponentProps<"input">): JSX.Element;
30
52
 
53
+ export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
54
+
55
+ export declare function Tabs({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Root>): JSX.Element;
56
+
57
+ export declare function TabsContent({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Content>): JSX.Element;
58
+
59
+ export declare function TabsList({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.List>): JSX.Element;
60
+
61
+ export declare function TabsTrigger({ className, ...props }: React_2.ComponentProps<typeof TabsPrimitive.Trigger>): JSX.Element;
62
+
63
+ export declare const useFormField: () => {
64
+ invalid: boolean;
65
+ isDirty: boolean;
66
+ isTouched: boolean;
67
+ isValidating: boolean;
68
+ error?: FieldError;
69
+ id: string;
70
+ name: string;
71
+ formItemId: string;
72
+ formDescriptionId: string;
73
+ formMessageId: string;
74
+ };
75
+
31
76
  export { }