@szum-tech/design-system 2.0.3 → 2.1.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 (116) hide show
  1. package/dist/chunk-463KEXY6.cjs +79 -0
  2. package/dist/chunk-4YZSPNLW.cjs +42 -0
  3. package/dist/chunk-5EN2HNFU.js +50 -0
  4. package/dist/chunk-5ENMEB5L.cjs +341 -0
  5. package/dist/chunk-AO4TMCYJ.js +88 -0
  6. package/dist/chunk-C5YRMEKV.js +319 -0
  7. package/dist/chunk-H2BWO3SI.cjs +0 -1
  8. package/dist/chunk-HFHADY43.js +36 -0
  9. package/dist/chunk-HIWVHD4V.js +56 -0
  10. package/dist/chunk-HXC3EALP.js +39 -0
  11. package/dist/chunk-IFBQNWVG.js +70 -0
  12. package/dist/chunk-INJBKPIE.js +88 -0
  13. package/dist/chunk-J264N6AZ.js +22 -0
  14. package/dist/chunk-J56UDYA3.js +70 -0
  15. package/dist/chunk-KPB3CBHE.cjs +40 -0
  16. package/dist/chunk-LI7IHIOM.cjs +30 -0
  17. package/dist/chunk-LND2W67K.cjs +17 -0
  18. package/dist/chunk-N7DXGCBJ.cjs +30 -0
  19. package/dist/chunk-PB3EGVTV.cjs +116 -0
  20. package/dist/chunk-QRSQCHBO.cjs +59 -0
  21. package/dist/chunk-RF5YR553.cjs +24 -0
  22. package/dist/chunk-TD2KDWNP.js +57 -0
  23. package/dist/chunk-TSN5DAKH.cjs +99 -0
  24. package/dist/chunk-US32J7DK.js +15 -0
  25. package/dist/chunk-UZBZFCWX.js +28 -0
  26. package/dist/chunk-V4POHGAW.cjs +60 -0
  27. package/dist/chunk-VFRIU5CV.cjs +16 -0
  28. package/dist/chunk-VQMM75HD.cjs +66 -0
  29. package/dist/chunk-WTVBTZ3P.js +29 -0
  30. package/dist/chunk-XGA2F5GG.cjs +72 -0
  31. package/dist/chunk-XPM62WMM.js +23 -0
  32. package/dist/chunk-YHU2OW52.js +14 -0
  33. package/dist/chunk-YXTTED5V.cjs +31 -0
  34. package/dist/chunk-ZD2QRAOX.js +0 -1
  35. package/dist/components/alert-dialog/index.cjs +43 -0
  36. package/dist/components/alert-dialog/index.d.cts +32 -0
  37. package/dist/components/alert-dialog/index.d.ts +32 -0
  38. package/dist/components/alert-dialog/index.js +2 -0
  39. package/dist/components/avatar/index.cjs +19 -0
  40. package/dist/components/avatar/index.d.cts +28 -0
  41. package/dist/components/avatar/index.d.ts +28 -0
  42. package/dist/components/avatar/index.js +2 -0
  43. package/dist/components/button/index.cjs +11 -0
  44. package/dist/components/button/index.d.cts +64 -0
  45. package/dist/components/button/index.d.ts +64 -0
  46. package/dist/components/button/index.js +2 -0
  47. package/dist/components/card/index.cjs +30 -0
  48. package/dist/components/card/index.d.cts +22 -0
  49. package/dist/components/card/index.d.ts +22 -0
  50. package/dist/components/card/index.js +1 -0
  51. package/dist/components/dialog/index.cjs +38 -0
  52. package/dist/components/dialog/index.d.cts +40 -0
  53. package/dist/components/dialog/index.d.ts +40 -0
  54. package/dist/components/dialog/index.js +1 -0
  55. package/dist/components/form/index.cjs +50 -0
  56. package/dist/components/form/index.d.cts +32 -0
  57. package/dist/components/form/index.d.ts +32 -0
  58. package/dist/components/form/index.js +17 -0
  59. package/dist/components/header/index.cjs +10 -0
  60. package/dist/components/header/index.d.cts +9 -0
  61. package/dist/components/header/index.d.ts +9 -0
  62. package/dist/components/header/index.js +1 -0
  63. package/dist/components/helper-text/index.cjs +10 -0
  64. package/dist/components/helper-text/index.d.cts +18 -0
  65. package/dist/components/helper-text/index.d.ts +18 -0
  66. package/dist/components/helper-text/index.js +1 -0
  67. package/dist/components/index.cjs +230 -0
  68. package/dist/components/index.d.cts +22 -0
  69. package/dist/components/index.d.ts +22 -0
  70. package/dist/components/index.js +17 -0
  71. package/dist/components/input/index.cjs +11 -0
  72. package/dist/components/input/index.d.cts +11 -0
  73. package/dist/components/input/index.d.ts +11 -0
  74. package/dist/components/input/index.js +2 -0
  75. package/dist/components/label/index.cjs +10 -0
  76. package/dist/components/label/index.d.cts +8 -0
  77. package/dist/components/label/index.d.ts +8 -0
  78. package/dist/components/label/index.js +1 -0
  79. package/dist/components/select/index.cjs +14 -0
  80. package/dist/components/select/index.d.cts +15 -0
  81. package/dist/components/select/index.d.ts +15 -0
  82. package/dist/components/select/index.js +1 -0
  83. package/dist/components/separator/index.cjs +11 -0
  84. package/dist/components/separator/index.d.cts +8 -0
  85. package/dist/components/separator/index.d.ts +8 -0
  86. package/dist/components/separator/index.js +2 -0
  87. package/dist/components/sheet/index.cjs +38 -0
  88. package/dist/components/sheet/index.d.cts +40 -0
  89. package/dist/components/sheet/index.d.ts +40 -0
  90. package/dist/components/sheet/index.js +1 -0
  91. package/dist/components/textarea/index.cjs +10 -0
  92. package/dist/components/textarea/index.d.cts +9 -0
  93. package/dist/components/textarea/index.d.ts +9 -0
  94. package/dist/components/textarea/index.js +1 -0
  95. package/dist/components/tooltip/index.cjs +14 -0
  96. package/dist/components/tooltip/index.d.cts +20 -0
  97. package/dist/components/tooltip/index.d.ts +20 -0
  98. package/dist/components/tooltip/index.js +1 -0
  99. package/dist/icons/index.cjs +22 -0
  100. package/dist/icons/index.js +1 -0
  101. package/dist/{utils.cjs → utils/index.cjs} +1 -1
  102. package/dist/utils/index.js +1 -0
  103. package/package.json +50 -38
  104. package/dist/chunk-EKHM64CK.js +0 -7290
  105. package/dist/chunk-G4TX2R77.cjs +0 -7613
  106. package/dist/icons.cjs +0 -1294
  107. package/dist/icons.js +0 -1
  108. package/dist/index.cjs +0 -906
  109. package/dist/index.d.cts +0 -285
  110. package/dist/index.d.ts +0 -285
  111. package/dist/index.js +0 -830
  112. package/dist/utils.js +0 -1
  113. package/dist/{icons.d.ts → icons/index.d.cts} +1 -1
  114. package/dist/{icons.d.cts → icons/index.d.ts} +1 -1
  115. /package/dist/{utils.d.cts → utils/index.d.cts} +0 -0
  116. /package/dist/{utils.d.ts → utils/index.d.ts} +0 -0
package/dist/index.d.cts DELETED
@@ -1,285 +0,0 @@
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
- import { VariantProps } from 'class-variance-authority';
5
- import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
6
- import * as react_hook_form from 'react-hook-form';
7
- import { FormProviderProps, FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
8
- import * as _radix_ui_react_slot from '@radix-ui/react-slot';
9
- import { Slot } from '@radix-ui/react-slot';
10
- export { cn } from './utils.cjs';
11
- import 'clsx';
12
-
13
- type AvatarProps = Avatar$1.AvatarProps & React$1.RefAttributes<HTMLSpanElement> & {
14
- /**
15
- * Defines avatar size
16
- */
17
- size?: AvatarSizeType;
18
- };
19
- declare function Avatar({ className, size, ref, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
20
-
21
- declare const avatarCva: (props?: ({
22
- size?: "sm" | "md" | "lg" | null | undefined;
23
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
24
-
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;
33
-
34
- type Props = {
35
- /**
36
- * Defines button full width
37
- */
38
- fullWidth?: boolean;
39
- /**
40
- * Defines button color
41
- */
42
- color?: ButtonColorType;
43
- /**
44
- * Defines button variant
45
- */
46
- variant?: ButtonVariantType;
47
- /**
48
- * Defines button size
49
- */
50
- size?: ButtonSizeType;
51
- /**
52
- * Defines button content
53
- */
54
- children?: React$1.ReactNode;
55
- /**
56
- * Disabled button
57
- */
58
- disabled?: boolean;
59
- /**
60
- * Defines left icon
61
- */
62
- startIcon?: React$1.ReactElement;
63
- /**
64
- * Defines right icon
65
- */
66
- endIcon?: React$1.ReactElement;
67
- /**
68
- * Defines is button is in loading state
69
- */
70
- loading?: boolean;
71
- /**
72
- * Defines is position of loading icon
73
- */
74
- loadingPosition?: "start" | "end";
75
- asChild?: boolean;
76
- };
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;
79
-
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> & {
93
- invalid?: boolean;
94
- startIcon?: React$1.ReactElement | string;
95
- endIcon?: React$1.ReactElement | string;
96
- };
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;
101
- defaultOpen?: boolean;
102
- open?: boolean;
103
- onOpenChange?: (open: boolean) => void;
104
- content?: React$1.ReactNode;
105
- collisionPadding?: number;
106
- };
107
- declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
108
-
109
- type TooltipProviderProps = {
110
- children: React$1.ReactNode;
111
- };
112
- declare function TooltipProvider({ children }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
113
-
114
- type TextareaProps = React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
115
- invalid?: boolean;
116
- };
117
- declare function Textarea({ invalid, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
118
-
119
- type SelectProps = Select$1.SelectProps & {
120
- ref?: React$1.ComponentProps<typeof Select$1.Trigger>["ref"];
121
- placeholder?: React$1.ReactNode;
122
- invalid?: boolean;
123
- };
124
- declare function Select({ children, placeholder, invalid, ref, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
125
-
126
- type SelectItemProps = React$1.ComponentProps<typeof Select$1.Item>;
127
- declare function SelectItem({ children, ...props }: SelectItemProps): react_jsx_runtime.JSX.Element;
128
-
129
- type CardProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
130
- declare function Card({ className, ...props }: CardProps): react_jsx_runtime.JSX.Element;
131
-
132
- type CardHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
133
- declare function CardHeader({ className, ...props }: CardHeaderProps): react_jsx_runtime.JSX.Element;
134
-
135
- type CardTitleProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
136
- declare function CardTitle({ className, ...props }: CardTitleProps): react_jsx_runtime.JSX.Element;
137
-
138
- type CardDescriptionProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
139
- declare function CardDescription({ className, ...props }: CardDescriptionProps): react_jsx_runtime.JSX.Element;
140
-
141
- type CardContentProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
142
- declare function CardContent({ className, ...props }: CardContentProps): react_jsx_runtime.JSX.Element;
143
-
144
- type CardFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
145
- declare function CardFooter({ className, ...props }: CardFooterProps): react_jsx_runtime.JSX.Element;
146
-
147
- type SheetProps = Dialog$1.DialogProps;
148
- declare const Sheet: React$1.FC<Dialog$1.DialogProps>;
149
-
150
- type SheetTriggerProps = Dialog$1.DialogTriggerProps;
151
- declare const SheetTrigger: React$1.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
152
-
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;
160
-
161
- declare const sheetContentStyles: (props?: ({
162
- side?: "left" | "right" | "top" | "bottom" | null | undefined;
163
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
164
-
165
- type SheetContentCvaProps = VariantProps<typeof sheetContentStyles>;
166
- type SheetContentSide = NonNullable<SheetContentCvaProps["side"]>;
167
-
168
- type SheetHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
169
- declare function SheetHeader({ className, ...props }: SheetHeaderProps): react_jsx_runtime.JSX.Element;
170
-
171
- type SheetFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
172
- declare function SheetFooter({ className, ...props }: SheetFooterProps): react_jsx_runtime.JSX.Element;
173
-
174
- type SheetTitleProps = React$1.ComponentProps<typeof Dialog$1.Title>;
175
- declare function SheetTitle({ className, ...props }: SheetTitleProps): react_jsx_runtime.JSX.Element;
176
-
177
- type SheetDescriptionProps = React$1.ComponentProps<typeof Dialog$1.Description>;
178
- declare function SheetDescription({ className, ...props }: SheetDescriptionProps): react_jsx_runtime.JSX.Element;
179
-
180
- type SeparatorProps = React$1.ComponentProps<typeof Separator$1.Root>;
181
- declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
182
-
183
- type HeaderProps = React$1.RefAttributes<HTMLHtmlElement> & {
184
- children?: React$1.ReactNode;
185
- };
186
- declare function Header({ children, ...props }: HeaderProps): react_jsx_runtime.JSX.Element;
187
-
188
- type DialogProps = Dialog$1.DialogProps;
189
- declare const Dialog: React$1.FC<Dialog$1.DialogProps>;
190
-
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;
198
-
199
- declare const dialogContentStyles: (props?: ({
200
- width?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" | null | undefined;
201
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
202
-
203
- type DialogContentCvaProps = VariantProps<typeof dialogContentStyles>;
204
- type DialogContentWidth = NonNullable<DialogContentCvaProps["width"]>;
205
-
206
- type DialogTriggerProps = Dialog$1.DialogTriggerProps;
207
- declare const DialogTrigger: React$1.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
208
-
209
- type DialogHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
210
- declare function DialogHeader({ className, ...props }: DialogHeaderProps): react_jsx_runtime.JSX.Element;
211
-
212
- type DialogFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
213
- declare function DialogFooter({ className, ...props }: DialogFooterProps): react_jsx_runtime.JSX.Element;
214
-
215
- type DialogTitleProps = React$1.ComponentProps<typeof Dialog$1.Title>;
216
- declare function DialogTitle({ className, ...props }: DialogTitleProps): react_jsx_runtime.JSX.Element;
217
-
218
- type DialogDescriptionProps = React$1.ComponentProps<typeof Dialog$1.Description>;
219
- declare function DialogDescription({ className, ...props }: DialogDescriptionProps): react_jsx_runtime.JSX.Element;
220
-
221
- type FormProps = FormProviderProps;
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;
223
-
224
- type FormItemProps = React$1.HTMLAttributes<HTMLDivElement>;
225
- declare const FormItem: React$1.ForwardRefExoticComponent<FormItemProps & React$1.RefAttributes<HTMLDivElement>>;
226
-
227
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
228
-
229
- type LabelProps = React$1.ComponentProps<typeof Label$1.Root>;
230
- declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
231
-
232
- type FormLabelProps = LabelProps & {
233
- caption?: React$1.ReactNode;
234
- };
235
- declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<FormLabelProps, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
236
-
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>>;
239
-
240
- type FormMessageProps = React$1.HTMLAttributes<HTMLParagraphElement>;
241
- declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps & React$1.RefAttributes<HTMLParagraphElement>>;
242
-
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;
250
-
251
- declare const helperTextCva: (props?: ({
252
- type?: "error" | "description" | null | undefined;
253
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
254
-
255
- type HelperTextCvaProps = VariantProps<typeof helperTextCva>;
256
- type HelperTextType = NonNullable<HelperTextCvaProps["type"]>;
257
-
258
- type AlertDialogProps = AlertDialog$1.AlertDialogProps;
259
- declare const AlertDialog: React$1.FC<AlertDialog$1.AlertDialogProps>;
260
-
261
- type AlertDialogTriggerProps = AlertDialog$1.AlertDialogTriggerProps;
262
- declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialog$1.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
263
-
264
- type AlertDialogContentProps = React$1.ComponentProps<typeof AlertDialog$1.Content>;
265
- declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
266
-
267
- type AlertDialogHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
268
- declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): react_jsx_runtime.JSX.Element;
269
-
270
- type AlertDialogFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
271
- declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): react_jsx_runtime.JSX.Element;
272
-
273
- type AlertDialogTitleProps = React$1.ComponentProps<typeof AlertDialog$1.Title>;
274
- declare function AlertDialogTitle({ className, ref, ...props }: AlertDialogTitleProps): react_jsx_runtime.JSX.Element;
275
-
276
- type AlertDialogDescriptionProps = React$1.ComponentProps<typeof AlertDialog$1.Description>;
277
- declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): react_jsx_runtime.JSX.Element;
278
-
279
- type AlertDialogActionProps = AlertDialog$1.AlertDialogActionProps;
280
- declare const AlertDialogAction: React$1.ForwardRefExoticComponent<AlertDialog$1.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>>;
281
-
282
- type AlertDialogCancelProps = AlertDialog$1.AlertDialogCancelProps;
283
- declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<AlertDialog$1.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>>;
284
-
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 };
package/dist/index.d.ts DELETED
@@ -1,285 +0,0 @@
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
- import { VariantProps } from 'class-variance-authority';
5
- import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
6
- import * as react_hook_form from 'react-hook-form';
7
- import { FormProviderProps, FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
8
- import * as _radix_ui_react_slot from '@radix-ui/react-slot';
9
- import { Slot } from '@radix-ui/react-slot';
10
- export { cn } from './utils.js';
11
- import 'clsx';
12
-
13
- type AvatarProps = Avatar$1.AvatarProps & React$1.RefAttributes<HTMLSpanElement> & {
14
- /**
15
- * Defines avatar size
16
- */
17
- size?: AvatarSizeType;
18
- };
19
- declare function Avatar({ className, size, ref, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
20
-
21
- declare const avatarCva: (props?: ({
22
- size?: "sm" | "md" | "lg" | null | undefined;
23
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
24
-
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;
33
-
34
- type Props = {
35
- /**
36
- * Defines button full width
37
- */
38
- fullWidth?: boolean;
39
- /**
40
- * Defines button color
41
- */
42
- color?: ButtonColorType;
43
- /**
44
- * Defines button variant
45
- */
46
- variant?: ButtonVariantType;
47
- /**
48
- * Defines button size
49
- */
50
- size?: ButtonSizeType;
51
- /**
52
- * Defines button content
53
- */
54
- children?: React$1.ReactNode;
55
- /**
56
- * Disabled button
57
- */
58
- disabled?: boolean;
59
- /**
60
- * Defines left icon
61
- */
62
- startIcon?: React$1.ReactElement;
63
- /**
64
- * Defines right icon
65
- */
66
- endIcon?: React$1.ReactElement;
67
- /**
68
- * Defines is button is in loading state
69
- */
70
- loading?: boolean;
71
- /**
72
- * Defines is position of loading icon
73
- */
74
- loadingPosition?: "start" | "end";
75
- asChild?: boolean;
76
- };
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;
79
-
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> & {
93
- invalid?: boolean;
94
- startIcon?: React$1.ReactElement | string;
95
- endIcon?: React$1.ReactElement | string;
96
- };
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;
101
- defaultOpen?: boolean;
102
- open?: boolean;
103
- onOpenChange?: (open: boolean) => void;
104
- content?: React$1.ReactNode;
105
- collisionPadding?: number;
106
- };
107
- declare function Tooltip({ defaultOpen, content, open, onOpenChange, children, side, align, collisionPadding, sideOffset, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
108
-
109
- type TooltipProviderProps = {
110
- children: React$1.ReactNode;
111
- };
112
- declare function TooltipProvider({ children }: TooltipProviderProps): react_jsx_runtime.JSX.Element;
113
-
114
- type TextareaProps = React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
115
- invalid?: boolean;
116
- };
117
- declare function Textarea({ invalid, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
118
-
119
- type SelectProps = Select$1.SelectProps & {
120
- ref?: React$1.ComponentProps<typeof Select$1.Trigger>["ref"];
121
- placeholder?: React$1.ReactNode;
122
- invalid?: boolean;
123
- };
124
- declare function Select({ children, placeholder, invalid, ref, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
125
-
126
- type SelectItemProps = React$1.ComponentProps<typeof Select$1.Item>;
127
- declare function SelectItem({ children, ...props }: SelectItemProps): react_jsx_runtime.JSX.Element;
128
-
129
- type CardProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
130
- declare function Card({ className, ...props }: CardProps): react_jsx_runtime.JSX.Element;
131
-
132
- type CardHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
133
- declare function CardHeader({ className, ...props }: CardHeaderProps): react_jsx_runtime.JSX.Element;
134
-
135
- type CardTitleProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLHeadingElement>, HTMLHeadingElement>;
136
- declare function CardTitle({ className, ...props }: CardTitleProps): react_jsx_runtime.JSX.Element;
137
-
138
- type CardDescriptionProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
139
- declare function CardDescription({ className, ...props }: CardDescriptionProps): react_jsx_runtime.JSX.Element;
140
-
141
- type CardContentProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
142
- declare function CardContent({ className, ...props }: CardContentProps): react_jsx_runtime.JSX.Element;
143
-
144
- type CardFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
145
- declare function CardFooter({ className, ...props }: CardFooterProps): react_jsx_runtime.JSX.Element;
146
-
147
- type SheetProps = Dialog$1.DialogProps;
148
- declare const Sheet: React$1.FC<Dialog$1.DialogProps>;
149
-
150
- type SheetTriggerProps = Dialog$1.DialogTriggerProps;
151
- declare const SheetTrigger: React$1.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
152
-
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;
160
-
161
- declare const sheetContentStyles: (props?: ({
162
- side?: "left" | "right" | "top" | "bottom" | null | undefined;
163
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
164
-
165
- type SheetContentCvaProps = VariantProps<typeof sheetContentStyles>;
166
- type SheetContentSide = NonNullable<SheetContentCvaProps["side"]>;
167
-
168
- type SheetHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
169
- declare function SheetHeader({ className, ...props }: SheetHeaderProps): react_jsx_runtime.JSX.Element;
170
-
171
- type SheetFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
172
- declare function SheetFooter({ className, ...props }: SheetFooterProps): react_jsx_runtime.JSX.Element;
173
-
174
- type SheetTitleProps = React$1.ComponentProps<typeof Dialog$1.Title>;
175
- declare function SheetTitle({ className, ...props }: SheetTitleProps): react_jsx_runtime.JSX.Element;
176
-
177
- type SheetDescriptionProps = React$1.ComponentProps<typeof Dialog$1.Description>;
178
- declare function SheetDescription({ className, ...props }: SheetDescriptionProps): react_jsx_runtime.JSX.Element;
179
-
180
- type SeparatorProps = React$1.ComponentProps<typeof Separator$1.Root>;
181
- declare function Separator({ className, orientation, decorative, ...props }: SeparatorProps): react_jsx_runtime.JSX.Element;
182
-
183
- type HeaderProps = React$1.RefAttributes<HTMLHtmlElement> & {
184
- children?: React$1.ReactNode;
185
- };
186
- declare function Header({ children, ...props }: HeaderProps): react_jsx_runtime.JSX.Element;
187
-
188
- type DialogProps = Dialog$1.DialogProps;
189
- declare const Dialog: React$1.FC<Dialog$1.DialogProps>;
190
-
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;
198
-
199
- declare const dialogContentStyles: (props?: ({
200
- width?: "sm" | "md" | "lg" | "xs" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "full" | null | undefined;
201
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
202
-
203
- type DialogContentCvaProps = VariantProps<typeof dialogContentStyles>;
204
- type DialogContentWidth = NonNullable<DialogContentCvaProps["width"]>;
205
-
206
- type DialogTriggerProps = Dialog$1.DialogTriggerProps;
207
- declare const DialogTrigger: React$1.ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
208
-
209
- type DialogHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
210
- declare function DialogHeader({ className, ...props }: DialogHeaderProps): react_jsx_runtime.JSX.Element;
211
-
212
- type DialogFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
213
- declare function DialogFooter({ className, ...props }: DialogFooterProps): react_jsx_runtime.JSX.Element;
214
-
215
- type DialogTitleProps = React$1.ComponentProps<typeof Dialog$1.Title>;
216
- declare function DialogTitle({ className, ...props }: DialogTitleProps): react_jsx_runtime.JSX.Element;
217
-
218
- type DialogDescriptionProps = React$1.ComponentProps<typeof Dialog$1.Description>;
219
- declare function DialogDescription({ className, ...props }: DialogDescriptionProps): react_jsx_runtime.JSX.Element;
220
-
221
- type FormProps = FormProviderProps;
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;
223
-
224
- type FormItemProps = React$1.HTMLAttributes<HTMLDivElement>;
225
- declare const FormItem: React$1.ForwardRefExoticComponent<FormItemProps & React$1.RefAttributes<HTMLDivElement>>;
226
-
227
- declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
228
-
229
- type LabelProps = React$1.ComponentProps<typeof Label$1.Root>;
230
- declare function Label({ className, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
231
-
232
- type FormLabelProps = LabelProps & {
233
- caption?: React$1.ReactNode;
234
- };
235
- declare const FormLabel: React$1.ForwardRefExoticComponent<Omit<FormLabelProps, "ref"> & React$1.RefAttributes<HTMLLabelElement>>;
236
-
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>>;
239
-
240
- type FormMessageProps = React$1.HTMLAttributes<HTMLParagraphElement>;
241
- declare const FormMessage: React$1.ForwardRefExoticComponent<FormMessageProps & React$1.RefAttributes<HTMLParagraphElement>>;
242
-
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;
250
-
251
- declare const helperTextCva: (props?: ({
252
- type?: "error" | "description" | null | undefined;
253
- } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
254
-
255
- type HelperTextCvaProps = VariantProps<typeof helperTextCva>;
256
- type HelperTextType = NonNullable<HelperTextCvaProps["type"]>;
257
-
258
- type AlertDialogProps = AlertDialog$1.AlertDialogProps;
259
- declare const AlertDialog: React$1.FC<AlertDialog$1.AlertDialogProps>;
260
-
261
- type AlertDialogTriggerProps = AlertDialog$1.AlertDialogTriggerProps;
262
- declare const AlertDialogTrigger: React$1.ForwardRefExoticComponent<AlertDialog$1.AlertDialogTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
263
-
264
- type AlertDialogContentProps = React$1.ComponentProps<typeof AlertDialog$1.Content>;
265
- declare function AlertDialogContent({ className, ...props }: AlertDialogContentProps): react_jsx_runtime.JSX.Element;
266
-
267
- type AlertDialogHeaderProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
268
- declare function AlertDialogHeader({ className, ...props }: AlertDialogHeaderProps): react_jsx_runtime.JSX.Element;
269
-
270
- type AlertDialogFooterProps = React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
271
- declare function AlertDialogFooter({ className, ...props }: AlertDialogFooterProps): react_jsx_runtime.JSX.Element;
272
-
273
- type AlertDialogTitleProps = React$1.ComponentProps<typeof AlertDialog$1.Title>;
274
- declare function AlertDialogTitle({ className, ref, ...props }: AlertDialogTitleProps): react_jsx_runtime.JSX.Element;
275
-
276
- type AlertDialogDescriptionProps = React$1.ComponentProps<typeof AlertDialog$1.Description>;
277
- declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): react_jsx_runtime.JSX.Element;
278
-
279
- type AlertDialogActionProps = AlertDialog$1.AlertDialogActionProps;
280
- declare const AlertDialogAction: React$1.ForwardRefExoticComponent<AlertDialog$1.AlertDialogActionProps & React$1.RefAttributes<HTMLButtonElement>>;
281
-
282
- type AlertDialogCancelProps = AlertDialog$1.AlertDialogCancelProps;
283
- declare const AlertDialogCancel: React$1.ForwardRefExoticComponent<AlertDialog$1.AlertDialogCancelProps & React$1.RefAttributes<HTMLButtonElement>>;
284
-
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 };