@sozialhelden/ui 1.3.0 → 1.4.0

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 (3) hide show
  1. package/dist/index.d.ts +36 -0
  2. package/dist/index.js +3846 -3518
  3. package/package.json +5 -4
package/dist/index.d.ts CHANGED
@@ -3,9 +3,14 @@ import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
3
  import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
4
4
  import { ClassProp } from 'class-variance-authority/types';
5
5
  import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
6
+ import { ControllerProps } from 'react-hook-form';
6
7
  import { default as default_2 } from 'embla-carousel-react';
7
8
  import * as DialogPrimitive from '@radix-ui/react-dialog';
8
9
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
10
+ import { FieldError } from 'react-hook-form';
11
+ import { FieldPath } from 'react-hook-form';
12
+ import { FieldValues } from 'react-hook-form';
13
+ import { FormProviderProps } from 'react-hook-form';
9
14
  import { JSX } from 'react/jsx-runtime';
10
15
  import * as LabelPrimitive from '@radix-ui/react-label';
11
16
  import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
@@ -16,6 +21,7 @@ import * as React_2 from 'react';
16
21
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
17
22
  import * as SelectPrimitive from '@radix-ui/react-select';
18
23
  import * as SliderPrimitive from '@radix-ui/react-slider';
24
+ import { Slot } from '@radix-ui/react-slot';
19
25
  import * as SwitchPrimitive from '@radix-ui/react-switch';
20
26
  import * as TooltipPrimitive from '@radix-ui/react-tooltip';
21
27
  import { UseEmblaCarouselType } from 'embla-carousel-react';
@@ -180,6 +186,20 @@ export declare function DropdownMenuSubTrigger({ className, inset, children, ...
180
186
 
181
187
  export declare function DropdownMenuTrigger({ ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): JSX.Element;
182
188
 
189
+ export declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React_2.JSX.Element;
190
+
191
+ export declare function FormControl({ ...props }: React_2.ComponentProps<typeof Slot>): JSX.Element;
192
+
193
+ export declare function FormDescription({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element;
194
+
195
+ export declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => JSX.Element;
196
+
197
+ export declare function FormItem({ className, ...props }: React_2.ComponentProps<"div">): JSX.Element;
198
+
199
+ export declare function FormLabel({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
200
+
201
+ export declare function FormMessage({ className, ...props }: React_2.ComponentProps<"p">): JSX.Element | null;
202
+
183
203
  export declare function Input({ className, type, ...props }: React_2.ComponentProps<"input">): JSX.Element;
184
204
 
185
205
  export declare function Label({ className, ...props }: React_2.ComponentProps<typeof LabelPrimitive.Root>): JSX.Element;
@@ -262,4 +282,20 @@ export declare function TooltipTrigger({ ...props }: React_2.ComponentProps<type
262
282
 
263
283
  declare type UseCarouselParameters = Parameters<typeof default_2>;
264
284
 
285
+ export declare const useFormField: () => {
286
+ invalid: boolean;
287
+ isDirty: boolean;
288
+ isTouched: boolean;
289
+ isValidating: boolean;
290
+ error?: FieldError;
291
+ id: string;
292
+ name: string;
293
+ formItemId: string;
294
+ formDescriptionId: string;
295
+ formMessageId: string;
296
+ };
297
+
298
+
299
+ export * from "@radix-ui/react-visually-hidden";
300
+
265
301
  export { }