@szum-tech/design-system 1.18.3 → 2.0.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/LICENSE +1 -1
- package/README.md +116 -62
- package/dist/chunk-EKHM64CK.js +7290 -0
- package/dist/chunk-G4TX2R77.cjs +7613 -0
- package/dist/chunk-H2BWO3SI.cjs +11 -0
- package/dist/chunk-ZD2QRAOX.js +9 -0
- package/dist/icons.cjs +1294 -0
- package/dist/icons.js +1 -0
- package/dist/index.cjs +906 -0
- package/dist/index.d.cts +285 -0
- package/dist/index.d.ts +136 -189
- package/dist/index.js +827 -99
- package/dist/utils.cjs +10 -0
- package/dist/utils.d.cts +5 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +1 -0
- package/package.json +97 -70
- package/tailwind/animation.css +53 -0
- package/tailwind/global.css +23 -0
- package/tailwind/palette.css +196 -0
- package/tailwind/scroll.css +25 -0
- package/tailwind/typography.css +74 -0
- package/dist/index.d.mts +0 -338
- package/dist/index.mjs +0 -19
- package/icons/index.js +0 -17
- package/icons/index.mjs +0 -6
- package/theme/global.css +0 -141
- package/theme/main-preset.js +0 -231
- /package/{icons/index.d.mts → dist/icons.d.cts} +0 -0
- /package/{icons/index.d.ts → dist/icons.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,59 +1,37 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
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
|
-
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
52
|
-
type
|
|
53
|
-
|
|
54
|
-
type
|
|
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
|
|
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> &
|
|
100
|
-
declare
|
|
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
|
-
|
|
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
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
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
|
|
129
|
-
|
|
130
|
-
type Props = {
|
|
114
|
+
type TextareaProps = React$1.DetailedHTMLProps<React$1.TextareaHTMLAttributes<HTMLTextAreaElement>, HTMLTextAreaElement> & {
|
|
131
115
|
invalid?: boolean;
|
|
132
116
|
};
|
|
133
|
-
|
|
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 =
|
|
137
|
-
|
|
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
|
|
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 =
|
|
146
|
-
declare
|
|
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
|
|
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
|
|
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 =
|
|
155
|
-
declare
|
|
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<
|
|
158
|
-
declare
|
|
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
|
|
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
|
|
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 =
|
|
167
|
-
declare const Sheet: React.FC<
|
|
147
|
+
type SheetProps = Dialog$1.DialogProps;
|
|
148
|
+
declare const Sheet: React$1.FC<Dialog$1.DialogProps>;
|
|
168
149
|
|
|
169
|
-
type SheetTriggerProps =
|
|
170
|
-
declare const SheetTrigger: React.ForwardRefExoticComponent<
|
|
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 =
|
|
173
|
-
declare const SheetClose: React.ForwardRefExoticComponent<
|
|
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
|
|
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.
|
|
196
|
-
declare
|
|
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.
|
|
199
|
-
declare
|
|
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.
|
|
202
|
-
declare
|
|
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?:
|
|
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 =
|
|
210
|
-
declare const Dialog: React.FC<
|
|
188
|
+
type DialogProps = Dialog$1.DialogProps;
|
|
189
|
+
declare const Dialog: React$1.FC<Dialog$1.DialogProps>;
|
|
211
190
|
|
|
212
|
-
type DialogCloseProps =
|
|
213
|
-
declare const DialogClose: React.ForwardRefExoticComponent<
|
|
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
|
|
223
|
-
|
|
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
|
|
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.
|
|
239
|
-
declare
|
|
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.
|
|
242
|
-
declare
|
|
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:
|
|
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.
|
|
253
|
-
declare
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
279
|
-
|
|
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 =
|
|
289
|
-
declare const AlertDialogTrigger: React.ForwardRefExoticComponent<
|
|
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.
|
|
292
|
-
declare
|
|
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 =
|
|
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.
|
|
301
|
-
declare
|
|
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
|
|
310
|
-
declare
|
|
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
|
|
313
|
-
|
|
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
|
-
|
|
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,
|
|
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 };
|