@szum-tech/design-system 1.18.3 → 2.0.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.
package/dist/index.d.ts CHANGED
@@ -1,59 +1,37 @@
1
- import * as React from 'react';
2
- import React__default from 'react';
3
- import * as ReactAvatar from '@radix-ui/react-avatar';
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React$1 from 'react';
3
+ import { Avatar as Avatar$1, Tooltip as Tooltip$1, Select as Select$1, Dialog as Dialog$1, Separator as Separator$1, Label as Label$1, AlertDialog as AlertDialog$1 } from 'radix-ui';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
6
- import * as react_jsx_runtime from 'react/jsx-runtime';
7
- import * as ReactTooltip from '@radix-ui/react-tooltip';
8
- import * as ReactSelect from '@radix-ui/react-select';
9
- import * as ReactSheet from '@radix-ui/react-dialog';
10
- import * as ReactSeparator from '@radix-ui/react-separator';
11
6
  import * as react_hook_form from 'react-hook-form';
12
7
  import { FormProviderProps, FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
13
- import * as ReactLabel from '@radix-ui/react-label';
14
8
  import * as _radix_ui_react_slot from '@radix-ui/react-slot';
15
9
  import { Slot } from '@radix-ui/react-slot';
16
- import * as ReactAlertDialog from '@radix-ui/react-alert-dialog';
17
-
18
- declare const avatarCva: (props?: ({
19
- size?: "sm" | "md" | "lg" | null | undefined;
20
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
21
-
22
- type AvatarCvaProps = VariantProps<typeof avatarCva>;
23
- type AvatarSizeType = NonNullable<AvatarCvaProps["size"]>;
10
+ export { cn } from './utils.js';
11
+ import 'clsx';
24
12
 
25
- type AvatarProps = ReactAvatar.AvatarProps & {
13
+ type AvatarProps = Avatar$1.AvatarProps & React$1.RefAttributes<HTMLSpanElement> & {
26
14
  /**
27
15
  * Defines avatar size
28
16
  */
29
17
  size?: AvatarSizeType;
30
18
  };
31
- declare const Avatar: (props: ReactAvatar.AvatarProps & {
32
- /**
33
- * Defines avatar size
34
- */
35
- size?: AvatarSizeType | undefined;
36
- } & React.RefAttributes<HTMLSpanElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
37
-
38
- type AvatarImageProps = React.ComponentPropsWithoutRef<typeof ReactAvatar.Image>;
39
- declare const AvatarImage: (props: Omit<ReactAvatar.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
40
-
41
- type AvatarFallbackProps = React.ComponentPropsWithoutRef<typeof ReactAvatar.Fallback>;
42
- declare const AvatarFallback: (props: Omit<ReactAvatar.AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>, "ref"> & React.RefAttributes<HTMLSpanElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
19
+ declare function Avatar({ className, size, ref, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
43
20
 
44
- declare const buttonCva: (props?: ({
45
- fullWidth?: boolean | null | undefined;
46
- color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
21
+ declare const avatarCva: (props?: ({
47
22
  size?: "sm" | "md" | "lg" | null | undefined;
48
- variant?: "text" | "outlined" | "contained" | null | undefined;
49
23
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
50
24
 
51
- type ButtonCvaProps = VariantProps<typeof buttonCva>;
52
- type ButtonSizeType = NonNullable<ButtonCvaProps["size"]>;
53
- type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
54
- type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
25
+ type AvatarCvaProps = VariantProps<typeof avatarCva>;
26
+ type AvatarSizeType = NonNullable<AvatarCvaProps["size"]>;
27
+
28
+ type AvatarImageProps = React$1.ComponentProps<typeof Avatar$1.Image>;
29
+ declare function AvatarImage({ className, ref, ...props }: AvatarImageProps): react_jsx_runtime.JSX.Element;
30
+
31
+ type AvatarFallbackProps = React$1.ComponentProps<typeof Avatar$1.Fallback>;
32
+ declare function AvatarFallback({ className, ref, ...props }: AvatarFallbackProps): react_jsx_runtime.JSX.Element;
55
33
 
56
- type Props$1 = {
34
+ type Props = {
57
35
  /**
58
36
  * Defines button full width
59
37
  */
@@ -73,7 +51,7 @@ type Props$1 = {
73
51
  /**
74
52
  * Defines button content
75
53
  */
76
- children?: React.ReactNode;
54
+ children?: React$1.ReactNode;
77
55
  /**
78
56
  * Disabled button
79
57
  */
@@ -81,11 +59,11 @@ type Props$1 = {
81
59
  /**
82
60
  * Defines left icon
83
61
  */
84
- startIcon?: React.ReactElement;
62
+ startIcon?: React$1.ReactElement;
85
63
  /**
86
64
  * Defines right icon
87
65
  */
88
- endIcon?: React.ReactElement;
66
+ endIcon?: React$1.ReactElement;
89
67
  /**
90
68
  * Defines is button is in loading state
91
69
  */
@@ -96,81 +74,89 @@ type Props$1 = {
96
74
  loadingPosition?: "start" | "end";
97
75
  asChild?: boolean;
98
76
  };
99
- type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & Props$1;
100
- declare const Button: (props: React.ButtonHTMLAttributes<HTMLButtonElement> & Props$1 & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
77
+ type ButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement> & Props;
78
+ declare function Button({ asChild, variant, color, disabled, fullWidth, ref, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
101
79
 
102
- type InputProps = React.InputHTMLAttributes<HTMLInputElement> & {
80
+ declare const buttonCva: (props?: ({
81
+ fullWidth?: boolean | null | undefined;
82
+ color?: "neutral" | "primary" | "success" | "warning" | "error" | null | undefined;
83
+ size?: "sm" | "md" | "lg" | null | undefined;
84
+ variant?: "text" | "outlined" | "contained" | null | undefined;
85
+ } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
86
+
87
+ type ButtonCvaProps = VariantProps<typeof buttonCva>;
88
+ type ButtonSizeType = NonNullable<ButtonCvaProps["size"]>;
89
+ type ButtonVariantType = NonNullable<ButtonCvaProps["variant"]>;
90
+ type ButtonColorType = NonNullable<ButtonCvaProps["color"]>;
91
+
92
+ type InputProps = React$1.DetailedHTMLProps<React$1.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
103
93
  invalid?: boolean;
104
- startIcon?: React.ReactElement | string;
105
- endIcon?: React.ReactElement | string;
94
+ startIcon?: React$1.ReactElement | string;
95
+ endIcon?: React$1.ReactElement | string;
106
96
  };
107
- declare const Input: (props: React.InputHTMLAttributes<HTMLInputElement> & {
108
- invalid?: boolean | undefined;
109
- startIcon?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
110
- endIcon?: string | React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
111
- } & React.RefAttributes<HTMLInputElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
112
-
113
- type TooltipProps = ReactTooltip.TooltipContentProps & {
114
- children?: React.ReactNode;
97
+ declare function Input({ invalid, startIcon, endIcon, disabled, className, ...props }: InputProps): react_jsx_runtime.JSX.Element;
98
+
99
+ type TooltipProps = Tooltip$1.TooltipContentProps & {
100
+ children?: React$1.ReactNode;
115
101
  defaultOpen?: boolean;
116
102
  open?: boolean;
117
103
  onOpenChange?: (open: boolean) => void;
118
- content?: React.ReactNode;
104
+ content?: React$1.ReactNode;
119
105
  collisionPadding?: number;
120
106
  };
121
107
  declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
122
108
 
123
109
  type TooltipProviderProps = {
124
- children: React.ReactNode;
110
+ children: React$1.ReactNode;
125
111
  };
126
112
  declare function TooltipProvider({ children }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
127
113
 
128
- type OmitStylesProps<T> = Omit<T, "className" | "style">;
129
-
130
- type Props = {
114
+ type TextareaProps = React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
131
115
  invalid?: boolean;
132
116
  };
133
- type TextareaProps = OmitStylesProps<React.ComponentPropsWithoutRef<"textarea">> & Props;
134
- declare const Textarea: (props: OmitStylesProps<Omit<React.DetailedHTMLProps<React.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement>, "ref">> & Props & React.RefAttributes<HTMLTextAreaElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
117
+ declare function Textarea({ invalid, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
135
118
 
136
- type SelectProps = OmitStylesProps<ReactSelect.SelectProps> & {
137
- placeholder?: React.ReactNode;
119
+ type SelectProps = Select$1.SelectProps & {
120
+ ref?: React$1.ComponentProps<typeof Select$1.Trigger>["ref"];
121
+ placeholder?: React$1.ReactNode;
138
122
  invalid?: boolean;
139
123
  };
140
- declare const Select: (props: OmitStylesProps<ReactSelect.SelectProps> & {
141
- placeholder?: React.ReactNode;
142
- invalid?: boolean | undefined;
143
- } & React.RefAttributes<HTMLButtonElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
124
+ declare function Select({ children, placeholder, invalid, ref, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
144
125
 
145
- type SelectItemProps = OmitStylesProps<ReactSelect.SelectItemProps>;
146
- declare const SelectItem: (props: SelectItemProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
126
+ type SelectItemProps = React$1.ComponentProps<typeof Select$1.Item>;
127
+ declare function SelectItem({ children, ...props }: SelectItemProps): react_jsx_runtime.JSX.Element;
147
128
 
148
- type CardProps = React.HTMLAttributes<HTMLDivElement>;
149
- declare const Card: (props: CardProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
129
+ type CardProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
130
+ declare function Card({ className, ...props }: CardProps): react_jsx_runtime.JSX.Element;
150
131
 
151
- type CardHeaderProps = React.HTMLAttributes<HTMLDivElement>;
152
- declare const CardHeader: (props: CardHeaderProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
132
+ type CardHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
133
+ declare function CardHeader({ className, ...props }: CardHeaderProps): react_jsx_runtime.JSX.Element;
153
134
 
154
- type CardTitleProps = React__default.HTMLAttributes<HTMLHeadingElement>;
155
- declare const CardTitle: (props: CardTitleProps & React__default.RefAttributes<HTMLParagraphElement>) => React__default.ReactElement<any, string | React__default.JSXElementConstructor<any>> | null;
135
+ type CardTitleProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
136
+ declare function CardTitle({ className, ...props }: CardTitleProps): react_jsx_runtime.JSX.Element;
156
137
 
157
- type CardDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
158
- declare const CardDescription: (props: CardDescriptionProps & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
138
+ type CardDescriptionProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
139
+ declare function CardDescription({ className, ...props }: CardDescriptionProps): react_jsx_runtime.JSX.Element;
159
140
 
160
- type CardContentProps = React.HTMLAttributes<HTMLDivElement>;
161
- declare const CardContent: (props: CardContentProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
141
+ type CardContentProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
142
+ declare function CardContent({ className, ...props }: CardContentProps): react_jsx_runtime.JSX.Element;
162
143
 
163
- type CardFooterProps = React.HTMLAttributes<HTMLDivElement>;
164
- declare const CardFooter: (props: CardFooterProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
144
+ type CardFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
145
+ declare function CardFooter({ className, ...props }: CardFooterProps): react_jsx_runtime.JSX.Element;
165
146
 
166
- type SheetProps = ReactSheet.DialogProps;
167
- declare const Sheet: React.FC<ReactSheet.DialogProps>;
147
+ type SheetProps = Dialog$1.DialogProps;
148
+ declare const Sheet: React$1.FC<Dialog$1.DialogProps>;
168
149
 
169
- type SheetTriggerProps = ReactSheet.DialogTriggerProps;
170
- declare const SheetTrigger: React.ForwardRefExoticComponent<ReactSheet.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
150
+ type SheetTriggerProps = Dialog$1.DialogTriggerProps;
151
+ declare const SheetTrigger: React$1.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
171
152
 
172
- type SheetCloseProps = ReactSheet.DialogCloseProps;
173
- declare const SheetClose: React.ForwardRefExoticComponent<ReactSheet.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
153
+ type SheetCloseProps = Dialog$1.DialogCloseProps;
154
+ declare const SheetClose: React$1.ForwardRefExoticComponent<Dialog$1.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
155
+
156
+ type SheetContentProps = React$1.ComponentProps<typeof Dialog$1.Content> & {
157
+ side?: SheetContentSide;
158
+ };
159
+ declare function SheetContent({ side, className, children, ...props }: SheetContentProps): react_jsx_runtime.JSX.Element;
174
160
 
175
161
  declare const sheetContentStyles: (props?: ({
176
162
  side?: "left" | "right" | "top" | "bottom" | null | undefined;
@@ -179,38 +165,36 @@ declare const sheetContentStyles: (props?: ({
179
165
  type SheetContentCvaProps = VariantProps<typeof sheetContentStyles>;
180
166
  type SheetContentSide = NonNullable<SheetContentCvaProps["side"]>;
181
167
 
182
- type SheetContentProps = React.ComponentPropsWithoutRef<typeof ReactSheet.Content> & {
183
- side?: SheetContentSide;
184
- };
185
- declare const SheetContent: (props: Omit<ReactSheet.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
186
- side?: SheetContentSide | undefined;
187
- } & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
188
-
189
- type SheetHeaderProps = React.HTMLAttributes<HTMLDivElement>;
168
+ type SheetHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
190
169
  declare function SheetHeader({ className, ...props }: SheetHeaderProps): react_jsx_runtime.JSX.Element;
191
170
 
192
- type SheetFooterProps = React.HTMLAttributes<HTMLDivElement>;
171
+ type SheetFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
193
172
  declare function SheetFooter({ className, ...props }: SheetFooterProps): react_jsx_runtime.JSX.Element;
194
173
 
195
- type SheetTitleProps = React.ComponentPropsWithoutRef<typeof ReactSheet.Title>;
196
- declare const SheetTitle: (props: Omit<ReactSheet.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
174
+ type SheetTitleProps = React$1.ComponentProps<typeof Dialog$1.Title>;
175
+ declare function SheetTitle({ className, ...props }: SheetTitleProps): react_jsx_runtime.JSX.Element;
197
176
 
198
- type SheetDescriptionProps = React.ComponentPropsWithoutRef<typeof ReactSheet.Description>;
199
- declare const SheetDescription: (props: Omit<ReactSheet.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
177
+ type SheetDescriptionProps = React$1.ComponentProps<typeof Dialog$1.Description>;
178
+ declare function SheetDescription({ className, ...props }: SheetDescriptionProps): react_jsx_runtime.JSX.Element;
200
179
 
201
- type SeparatorProps = React.ComponentPropsWithoutRef<typeof ReactSeparator.Root>;
202
- declare const Separator: (props: Omit<ReactSeparator.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
180
+ type SeparatorProps = React$1.ComponentProps<typeof Separator$1.Root>;
181
+ declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
203
182
 
204
- type HeaderProps = {
205
- children?: React__default.ReactNode;
183
+ type HeaderProps = React$1.RefAttributes<HTMLHtmlElement> & {
184
+ children?: React$1.ReactNode;
206
185
  };
207
- declare function Header({ children }: HeaderProps): react_jsx_runtime.JSX.Element;
186
+ declare function Header({ children, ...props }: HeaderProps): react_jsx_runtime.JSX.Element;
208
187
 
209
- type DialogProps = ReactSheet.DialogProps;
210
- declare const Dialog: React.FC<ReactSheet.DialogProps>;
188
+ type DialogProps = Dialog$1.DialogProps;
189
+ declare const Dialog: React$1.FC<Dialog$1.DialogProps>;
211
190
 
212
- type DialogCloseProps = ReactSheet.DialogCloseProps;
213
- declare const DialogClose: React.ForwardRefExoticComponent<ReactSheet.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
191
+ type DialogCloseProps = Dialog$1.DialogCloseProps;
192
+ declare const DialogClose: React$1.ForwardRefExoticComponent<Dialog$1.DialogCloseProps & React$1.RefAttributes<HTMLButtonElement>>;
193
+
194
+ type DialogContentProps = React$1.ComponentProps<typeof Dialog$1.Content> & {
195
+ width?: DialogContentWidth;
196
+ };
197
+ declare function DialogContent({ className, children, width, ...props }: DialogContentProps): react_jsx_runtime.JSX.Element;
214
198
 
215
199
  declare const dialogContentStyles: (props?: ({
216
200
  width?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" | null | undefined;
@@ -219,54 +203,50 @@ declare const dialogContentStyles: (props?: ({
219
203
  type DialogContentCvaProps = VariantProps<typeof dialogContentStyles>;
220
204
  type DialogContentWidth = NonNullable<DialogContentCvaProps["width"]>;
221
205
 
222
- type DialogContentProps = React.ComponentPropsWithoutRef<typeof ReactSheet.Content> & {
223
- width?: DialogContentWidth;
224
- };
225
- declare const DialogContent: (props: Omit<ReactSheet.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
226
- width?: DialogContentWidth | undefined;
227
- } & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
206
+ type DialogTriggerProps = Dialog$1.DialogTriggerProps;
207
+ declare const DialogTrigger: React$1.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
228
208
 
229
- type DialogTriggerProps = ReactSheet.DialogTriggerProps;
230
- declare const DialogTrigger: React.ForwardRefExoticComponent<ReactSheet.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
231
-
232
- type DialogHeaderProps = React.HTMLAttributes<HTMLDivElement>;
209
+ type DialogHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
233
210
  declare function DialogHeader({ className, ...props }: DialogHeaderProps): react_jsx_runtime.JSX.Element;
234
211
 
235
- type DialogFooterProps = React.HTMLAttributes<HTMLDivElement>;
212
+ type DialogFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
236
213
  declare function DialogFooter({ className, ...props }: DialogFooterProps): react_jsx_runtime.JSX.Element;
237
214
 
238
- type DialogTitleProps = React.ComponentPropsWithoutRef<typeof ReactSheet.Title>;
239
- declare const DialogTitle: (props: Omit<ReactSheet.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
215
+ type DialogTitleProps = React$1.ComponentProps<typeof Dialog$1.Title>;
216
+ declare function DialogTitle({ className, ...props }: DialogTitleProps): react_jsx_runtime.JSX.Element;
240
217
 
241
- type DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof ReactSheet.Description>;
242
- declare const DialogDescription: (props: Omit<ReactSheet.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
218
+ type DialogDescriptionProps = React$1.ComponentProps<typeof Dialog$1.Description>;
219
+ declare function DialogDescription({ className, ...props }: DialogDescriptionProps): react_jsx_runtime.JSX.Element;
243
220
 
244
221
  type FormProps = FormProviderProps;
245
222
  declare const Form: <TFieldValues extends react_hook_form.FieldValues, TContext = any, TTransformedValues extends react_hook_form.FieldValues | undefined = undefined>(props: FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
246
223
 
247
- type FormItemProps = React.HTMLAttributes<HTMLDivElement>;
248
- declare const FormItem: (props: FormItemProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
224
+ type FormItemProps = React$1.HTMLAttributes<HTMLDivElement>;
225
+ declare const FormItem: React$1.ForwardRefExoticComponent<FormItemProps & React$1.RefAttributes<HTMLDivElement>>;
249
226
 
250
227
  declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
251
228
 
252
- type LabelProps = React.ComponentPropsWithoutRef<typeof ReactLabel.Root>;
253
- declare const Label: (props: Omit<ReactLabel.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & React.RefAttributes<HTMLLabelElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
229
+ type LabelProps = React$1.ComponentProps<typeof Label$1.Root>;
230
+ declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
254
231
 
255
232
  type FormLabelProps = LabelProps & {
256
- caption?: React.ReactNode;
233
+ caption?: React$1.ReactNode;
257
234
  };
258
- declare const FormLabel: (props: Omit<ReactLabel.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & {
259
- caption?: React.ReactNode;
260
- } & React.RefAttributes<HTMLLabelElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
235
+ declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<FormLabelProps, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
261
236
 
262
- type FormControlProps = React.ComponentPropsWithoutRef<typeof Slot>;
263
- declare const FormControl: (props: Omit<_radix_ui_react_slot.SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
237
+ type FormControlProps = React$1.ComponentPropsWithoutRef<typeof Slot>;
238
+ declare const FormControl: React$1.ForwardRefExoticComponent<Omit<_radix_ui_react_slot.SlotProps & React$1.RefAttributes<HTMLElement>, "ref"> & React$1.RefAttributes<HTMLElement>>;
264
239
 
265
- type FormMessageProps = React.HTMLAttributes<HTMLParagraphElement>;
266
- declare const FormMessage: (props: FormMessageProps & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
240
+ type FormMessageProps = React$1.HTMLAttributes<HTMLParagraphElement>;
241
+ declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps & React$1.RefAttributes<HTMLParagraphElement>>;
267
242
 
268
- type FormDescriptionProps = React.HTMLAttributes<HTMLParagraphElement>;
269
- declare const FormDescription: (props: FormDescriptionProps & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
243
+ type FormDescriptionProps = React$1.HTMLAttributes<HTMLParagraphElement>;
244
+ declare const FormDescription: React$1.ForwardRefExoticComponent<FormDescriptionProps & React$1.RefAttributes<HTMLParagraphElement>>;
245
+
246
+ type HelperTextProps = React$1.HTMLAttributes<HTMLParagraphElement> & React$1.RefAttributes<HTMLParagraphElement> & {
247
+ type?: HelperTextType;
248
+ };
249
+ declare function HelperText({ className, children, type, role, ref, ...props }: HelperTextProps): react_jsx_runtime.JSX.Element;
270
250
 
271
251
  declare const helperTextCva: (props?: ({
272
252
  type?: "error" | "description" | null | undefined;
@@ -275,64 +255,31 @@ declare const helperTextCva: (props?: ({
275
255
  type HelperTextCvaProps = VariantProps<typeof helperTextCva>;
276
256
  type HelperTextType = NonNullable<HelperTextCvaProps["type"]>;
277
257
 
278
- type HelperTextProps = React.HTMLAttributes<HTMLParagraphElement> & {
279
- type?: HelperTextType;
280
- };
281
- declare const HelperText: (props: React.HTMLAttributes<HTMLParagraphElement> & {
282
- type?: HelperTextType | undefined;
283
- } & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
284
-
285
- type AlertDialogProps = ReactAlertDialog.AlertDialogProps;
286
- declare const AlertDialog: React.FC<ReactAlertDialog.AlertDialogProps>;
258
+ type AlertDialogProps = AlertDialog$1.AlertDialogProps;
259
+ declare const AlertDialog: React$1.FC<AlertDialog$1.AlertDialogProps>;
287
260
 
288
- type AlertDialogTriggerProps = ReactAlertDialog.AlertDialogTriggerProps;
289
- declare const AlertDialogTrigger: React.ForwardRefExoticComponent<ReactAlertDialog.AlertDialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
261
+ type AlertDialogTriggerProps = AlertDialog$1.AlertDialogTriggerProps;
262
+ declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialog$1.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
290
263
 
291
- type AlertDialogContentProps = React.ComponentPropsWithoutRef<typeof ReactAlertDialog.Content>;
292
- declare const AlertDialogContent: (props: Omit<ReactAlertDialog.AlertDialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
264
+ type AlertDialogContentProps = React$1.ComponentProps<typeof AlertDialog$1.Content>;
265
+ declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
293
266
 
294
- type AlertDialogHeaderProps = React__default.HTMLAttributes<HTMLDivElement>;
267
+ type AlertDialogHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
295
268
  declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): react_jsx_runtime.JSX.Element;
296
269
 
297
- type AlertDialogFooterProps = React.HTMLAttributes<HTMLDivElement>;
270
+ type AlertDialogFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
298
271
  declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): react_jsx_runtime.JSX.Element;
299
272
 
300
- type AlertDialogTitleProps = React.ComponentPropsWithoutRef<typeof ReactAlertDialog.Title>;
301
- declare const AlertDialogTitle: (props: Omit<ReactAlertDialog.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
302
-
303
- type AlertDialogDescriptionProps = React.ComponentPropsWithoutRef<typeof ReactAlertDialog.Description>;
304
- declare const AlertDialogDescription: (props: Omit<ReactAlertDialog.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>) => React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
305
-
306
- type AlertDialogActionProps = ReactAlertDialog.AlertDialogActionProps;
307
- declare const AlertDialogAction: React.ForwardRefExoticComponent<ReactAlertDialog.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>>;
273
+ type AlertDialogTitleProps = React$1.ComponentProps<typeof AlertDialog$1.Title>;
274
+ declare function AlertDialogTitle({ className, ref, ...props }: AlertDialogTitleProps): react_jsx_runtime.JSX.Element;
308
275
 
309
- type AlertDialogCancelProps = ReactAlertDialog.AlertDialogCancelProps;
310
- declare const AlertDialogCancel: React.ForwardRefExoticComponent<ReactAlertDialog.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>>;
276
+ type AlertDialogDescriptionProps = React$1.ComponentProps<typeof AlertDialog$1.Description>;
277
+ declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): react_jsx_runtime.JSX.Element;
311
278
 
312
- type ThemeType = "light" | "dark";
313
- interface ThemeContextType {
314
- theme: ThemeType;
315
- setTheme: React__default.Dispatch<React__default.SetStateAction<ThemeType>>;
316
- }
317
-
318
- declare const ThemeContext: React__default.Context<ThemeContextType>;
319
-
320
- interface ThemeProviderProps {
321
- /**
322
- * Children Components using theming.
323
- */
324
- children?: React__default.ReactNode;
325
- /**
326
- * Define the default theme which is set at the beginning if neither local storage nor media is defined.
327
- */
328
- defaultTheme?: ThemeType;
329
- /**
330
- * Define theme that is always set initially.
331
- */
332
- theme?: ThemeType;
333
- }
334
- declare function ThemeProvider({ children, defaultTheme, theme }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
279
+ type AlertDialogActionProps = AlertDialog$1.AlertDialogActionProps;
280
+ declare const AlertDialogAction: React$1.ForwardRefExoticComponent<AlertDialog$1.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>>;
335
281
 
336
- declare const useTheme: () => ThemeContextType;
282
+ type AlertDialogCancelProps = AlertDialog$1.AlertDialogCancelProps;
283
+ declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<AlertDialog$1.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>>;
337
284
 
338
- export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarSizeType, Button, type ButtonColorType, type ButtonProps, type ButtonSizeType, type ButtonVariantType, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, type DialogContentWidth, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, Header, type HeaderProps, HelperText, type HelperTextProps, type HelperTextType, Input, type InputProps, Label, type LabelProps, Select, SelectItem, type SelectItemProps, type SelectProps, Separator, type SeparatorProps, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentSide, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, Textarea, type TextareaProps, ThemeContext, type ThemeContextType, ThemeProvider, type ThemeProviderProps, type ThemeType, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps, useTheme };
285
+ export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, type AvatarProps, type AvatarSizeType, Button, type ButtonColorType, type ButtonProps, type ButtonSizeType, type ButtonVariantType, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, type DialogContentWidth, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, type DialogProps, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, type FormProps, Header, type HeaderProps, HelperText, type HelperTextProps, type HelperTextType, Input, type InputProps, Label, type LabelProps, Select, SelectItem, type SelectItemProps, type SelectProps, Separator, type SeparatorProps, Sheet, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, type SheetContentSide, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, Textarea, type TextareaProps, Tooltip, type TooltipProps, TooltipProvider, type TooltipProviderProps };