@service_laboratory/ui 0.0.2 → 0.0.3

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/ui.d.ts CHANGED
@@ -1,8 +1,15 @@
1
1
  import * as AvatarPrimitive from '@radix-ui/react-avatar';
2
2
  import { ClassProp } from 'class-variance-authority/types';
3
3
  import { ClassValue } from 'clsx';
4
+ import { ControllerProps } from 'react-hook-form';
5
+ import { FieldError } from 'react-hook-form';
6
+ import { FieldPath } from 'react-hook-form';
7
+ import { FieldValues } from 'react-hook-form';
8
+ import { FormProviderProps } from 'react-hook-form';
4
9
  import { JSX } from 'react/jsx-runtime';
10
+ import * as LabelPrimitive from '@radix-ui/react-label';
5
11
  import * as React_2 from 'react';
12
+ import { Slot } from '@radix-ui/react-slot';
6
13
  import { VariantProps } from 'class-variance-authority';
7
14
 
8
15
  export declare function Avatar({ className, ...props }: React_2.ComponentProps<typeof AvatarPrimitive.Root>): JSX.Element;
@@ -24,6 +31,47 @@ export declare const buttonVariants: (props?: ({
24
31
  size?: "default" | "sm" | "lg" | "icon" | null | undefined;
25
32
  } & ClassProp) | undefined) => string;
26
33
 
34
+ export declare function Card({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
35
+
36
+ export declare function CardAction({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
37
+
38
+ export declare function CardContent({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
39
+
40
+ export declare function CardDescription({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
41
+
42
+ export declare function CardFooter({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
43
+
44
+ export declare function CardHeader({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
45
+
46
+ export declare function CardTitle({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
47
+
27
48
  export declare function cn(...inputs: ClassValue[]): string;
28
49
 
50
+ export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
51
+
52
+ export declare function FormControl({ ...props }: React_2.ComponentProps<typeof Slot>): JSX.Element;
53
+
54
+ export declare function FormDescription({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element;
55
+
56
+ export declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => JSX.Element;
57
+
58
+ export declare function FormItem({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
59
+
60
+ export declare function FormLabel({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
61
+
62
+ export declare function FormMessage({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element | null;
63
+
64
+ export declare const useFormField: () => {
65
+ invalid: boolean;
66
+ isDirty: boolean;
67
+ isTouched: boolean;
68
+ isValidating: boolean;
69
+ error?: FieldError;
70
+ id: string;
71
+ name: string;
72
+ formItemId: string;
73
+ formDescriptionId: string;
74
+ formMessageId: string;
75
+ };
76
+
29
77
  export { }