@amazecontinuityprojects/amazeui 1.0.0 → 1.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.
- package/dist/index.d.mts +81 -36
- package/dist/index.d.ts +81 -36
- package/dist/index.js +402 -162
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +385 -154
- package/dist/index.mjs.map +1 -1
- package/dist/tailwind.css +239 -0
- package/package.json +5 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,53 +1,58 @@
|
|
|
1
|
-
import * as react_native from 'react-native';
|
|
2
|
-
import { PressableProps, ViewProps, View, TextProps, Text, TextInputProps, TextInput, SwitchProps as SwitchProps$1, Switch as Switch$1, ModalProps } from 'react-native';
|
|
3
1
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
4
2
|
import * as React from 'react';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { PressableProps, ViewProps, TextProps, TextInputProps, SwitchProps as SwitchProps$1, Switch as Switch$1, ModalProps } from 'react-native';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import { ThemeProviderProps } from 'next-themes';
|
|
7
|
+
export { useTheme } from 'next-themes';
|
|
6
8
|
import { ClassValue } from 'clsx';
|
|
7
9
|
|
|
8
10
|
declare const buttonVariants: (props?: ({
|
|
9
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
11
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
10
12
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
11
13
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
12
14
|
declare const buttonTextVariants: (props?: ({
|
|
13
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
15
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
14
16
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
15
17
|
interface ButtonProps extends PressableProps, VariantProps<typeof buttonVariants> {
|
|
16
18
|
children: React.ReactNode;
|
|
17
19
|
className?: string;
|
|
18
20
|
textClassName?: string;
|
|
21
|
+
onClick?: (event: any) => void;
|
|
19
22
|
}
|
|
20
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<
|
|
23
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<any>>;
|
|
21
24
|
|
|
22
25
|
declare const Card: React.ForwardRefExoticComponent<ViewProps & {
|
|
23
26
|
className?: string;
|
|
24
|
-
|
|
27
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
28
|
+
onPress?: any;
|
|
29
|
+
} & React.RefAttributes<any>>;
|
|
25
30
|
declare const CardHeader: React.ForwardRefExoticComponent<ViewProps & {
|
|
26
31
|
className?: string;
|
|
27
|
-
} & React.RefAttributes<
|
|
32
|
+
} & React.RefAttributes<any>>;
|
|
28
33
|
declare const CardTitle: React.ForwardRefExoticComponent<TextProps & {
|
|
29
34
|
className?: string;
|
|
30
|
-
} & React.RefAttributes<
|
|
35
|
+
} & React.RefAttributes<any>>;
|
|
31
36
|
declare const CardDescription: React.ForwardRefExoticComponent<TextProps & {
|
|
32
37
|
className?: string;
|
|
33
|
-
} & React.RefAttributes<
|
|
38
|
+
} & React.RefAttributes<any>>;
|
|
34
39
|
declare const CardContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
35
40
|
className?: string;
|
|
36
|
-
} & React.RefAttributes<
|
|
41
|
+
} & React.RefAttributes<any>>;
|
|
37
42
|
declare const CardFooter: React.ForwardRefExoticComponent<ViewProps & {
|
|
38
43
|
className?: string;
|
|
39
|
-
} & React.RefAttributes<
|
|
44
|
+
} & React.RefAttributes<any>>;
|
|
40
45
|
|
|
41
46
|
interface InputProps extends TextInputProps {
|
|
42
47
|
className?: string;
|
|
43
48
|
}
|
|
44
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<
|
|
49
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<any>>;
|
|
45
50
|
|
|
46
51
|
declare const labelVariants: (props?: ({} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
47
52
|
interface LabelProps extends TextProps, VariantProps<typeof labelVariants> {
|
|
48
53
|
className?: string;
|
|
49
54
|
}
|
|
50
|
-
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<
|
|
55
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<any>>;
|
|
51
56
|
|
|
52
57
|
interface SkeletonProps extends ViewProps {
|
|
53
58
|
className?: string;
|
|
@@ -55,6 +60,9 @@ interface SkeletonProps extends ViewProps {
|
|
|
55
60
|
declare function Skeleton({ className, ...props }: SkeletonProps): React.JSX.Element;
|
|
56
61
|
|
|
57
62
|
interface SwitchProps extends SwitchProps$1 {
|
|
63
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
64
|
+
checked?: boolean;
|
|
65
|
+
onChange?: (event: any) => void;
|
|
58
66
|
className?: string;
|
|
59
67
|
}
|
|
60
68
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<Switch$1>>;
|
|
@@ -63,7 +71,7 @@ interface ProgressProps extends ViewProps {
|
|
|
63
71
|
className?: string;
|
|
64
72
|
value?: number;
|
|
65
73
|
}
|
|
66
|
-
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<
|
|
74
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<any>>;
|
|
67
75
|
|
|
68
76
|
interface TabsProps extends ViewProps {
|
|
69
77
|
value?: string;
|
|
@@ -74,35 +82,35 @@ interface TabsProps extends ViewProps {
|
|
|
74
82
|
declare function Tabs({ value: controlledValue, defaultValue, onValueChange, className, children, ...props }: TabsProps): React.JSX.Element;
|
|
75
83
|
declare const TabsList: React.ForwardRefExoticComponent<ViewProps & {
|
|
76
84
|
className?: string;
|
|
77
|
-
} & React.RefAttributes<
|
|
85
|
+
} & React.RefAttributes<any>>;
|
|
78
86
|
declare const TabsTrigger: React.ForwardRefExoticComponent<PressableProps & {
|
|
79
87
|
value: string;
|
|
80
88
|
className?: string;
|
|
81
89
|
textClassName?: string;
|
|
82
|
-
} & React.RefAttributes<
|
|
90
|
+
} & React.RefAttributes<any>>;
|
|
83
91
|
declare const TabsContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
84
92
|
value: string;
|
|
85
93
|
className?: string;
|
|
86
|
-
} & React.RefAttributes<
|
|
94
|
+
} & React.RefAttributes<any>>;
|
|
87
95
|
|
|
88
96
|
declare const Table: React.ForwardRefExoticComponent<ViewProps & {
|
|
89
97
|
className?: string;
|
|
90
|
-
} & React.RefAttributes<
|
|
98
|
+
} & React.RefAttributes<any>>;
|
|
91
99
|
declare const TableHeader: React.ForwardRefExoticComponent<ViewProps & {
|
|
92
100
|
className?: string;
|
|
93
|
-
} & React.RefAttributes<
|
|
101
|
+
} & React.RefAttributes<any>>;
|
|
94
102
|
declare const TableBody: React.ForwardRefExoticComponent<ViewProps & {
|
|
95
103
|
className?: string;
|
|
96
|
-
} & React.RefAttributes<
|
|
104
|
+
} & React.RefAttributes<any>>;
|
|
97
105
|
declare const TableRow: React.ForwardRefExoticComponent<ViewProps & {
|
|
98
106
|
className?: string;
|
|
99
|
-
} & React.RefAttributes<
|
|
107
|
+
} & React.RefAttributes<any>>;
|
|
100
108
|
declare const TableHead: React.ForwardRefExoticComponent<ViewProps & {
|
|
101
109
|
className?: string;
|
|
102
|
-
} & React.RefAttributes<
|
|
110
|
+
} & React.RefAttributes<any>>;
|
|
103
111
|
declare const TableCell: React.ForwardRefExoticComponent<ViewProps & {
|
|
104
112
|
className?: string;
|
|
105
|
-
} & React.RefAttributes<
|
|
113
|
+
} & React.RefAttributes<any>>;
|
|
106
114
|
|
|
107
115
|
interface DialogProps extends ModalProps {
|
|
108
116
|
open?: boolean;
|
|
@@ -110,10 +118,13 @@ interface DialogProps extends ModalProps {
|
|
|
110
118
|
children?: React.ReactNode;
|
|
111
119
|
}
|
|
112
120
|
declare function Dialog({ open, onOpenChange, children, ...props }: DialogProps): React.JSX.Element;
|
|
113
|
-
declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps &
|
|
121
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps & {
|
|
122
|
+
className?: string;
|
|
123
|
+
onClick?: any;
|
|
124
|
+
} & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
|
|
114
125
|
declare const DialogContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
115
126
|
className?: string;
|
|
116
|
-
} & React.RefAttributes<
|
|
127
|
+
} & React.RefAttributes<any>>;
|
|
117
128
|
declare const DialogHeader: {
|
|
118
129
|
({ className, ...props }: ViewProps & {
|
|
119
130
|
className?: string;
|
|
@@ -128,39 +139,73 @@ declare const DialogFooter: {
|
|
|
128
139
|
};
|
|
129
140
|
declare const DialogTitle: React.ForwardRefExoticComponent<TextProps & {
|
|
130
141
|
className?: string;
|
|
131
|
-
} & React.RefAttributes<
|
|
142
|
+
} & React.RefAttributes<any>>;
|
|
132
143
|
declare const DialogDescription: React.ForwardRefExoticComponent<TextProps & {
|
|
133
144
|
className?: string;
|
|
134
|
-
} & React.RefAttributes<
|
|
145
|
+
} & React.RefAttributes<any>>;
|
|
135
146
|
|
|
136
147
|
interface DropdownMenuProps {
|
|
137
148
|
children: React.ReactNode;
|
|
138
149
|
}
|
|
139
150
|
declare function DropdownMenu({ children }: DropdownMenuProps): React.JSX.Element;
|
|
140
|
-
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps &
|
|
151
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps & {
|
|
152
|
+
className?: string;
|
|
153
|
+
onClick?: any;
|
|
154
|
+
} & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
|
|
141
155
|
declare const DropdownMenuContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
142
156
|
className?: string;
|
|
143
|
-
} & React.RefAttributes<
|
|
144
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<react_native.PressableProps &
|
|
157
|
+
} & React.RefAttributes<any>>;
|
|
158
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<react_native.PressableProps & {
|
|
159
|
+
className?: string;
|
|
160
|
+
onClick?: any;
|
|
161
|
+
} & React.RefAttributes<any> & {
|
|
145
162
|
className?: string;
|
|
146
163
|
textClassName?: string;
|
|
147
|
-
}, "ref"> & React.RefAttributes<
|
|
164
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
148
165
|
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<TextProps & {
|
|
149
166
|
className?: string;
|
|
150
|
-
} & React.RefAttributes<
|
|
167
|
+
} & React.RefAttributes<any>>;
|
|
151
168
|
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<ViewProps & {
|
|
152
169
|
className?: string;
|
|
153
|
-
} & React.RefAttributes<
|
|
170
|
+
} & React.RefAttributes<any>>;
|
|
154
171
|
|
|
155
172
|
interface PopoverProps {
|
|
156
173
|
children: React.ReactNode;
|
|
157
174
|
}
|
|
158
175
|
declare function Popover({ children }: PopoverProps): React.JSX.Element;
|
|
159
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps &
|
|
176
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps & {
|
|
177
|
+
className?: string;
|
|
178
|
+
onClick?: any;
|
|
179
|
+
} & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
|
|
160
180
|
declare const PopoverContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
161
181
|
className?: string;
|
|
162
|
-
} & React.RefAttributes<
|
|
182
|
+
} & React.RefAttributes<any>>;
|
|
183
|
+
|
|
184
|
+
declare function useSidebar(): {
|
|
185
|
+
isOpen: boolean;
|
|
186
|
+
setIsOpen: (open: boolean) => void;
|
|
187
|
+
};
|
|
188
|
+
interface SidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
189
|
+
isOpen?: boolean;
|
|
190
|
+
onOpenChange?: (open: boolean) => void;
|
|
191
|
+
side?: "left" | "right";
|
|
192
|
+
}
|
|
193
|
+
declare const Sidebar: React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLDivElement>>;
|
|
194
|
+
declare const SidebarHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
declare const SidebarContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
196
|
+
declare const SidebarGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
197
|
+
declare const SidebarGroupLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
198
|
+
interface SidebarItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
199
|
+
icon?: React.ReactNode;
|
|
200
|
+
isActive?: boolean;
|
|
201
|
+
label?: React.ReactNode;
|
|
202
|
+
rightElement?: React.ReactNode;
|
|
203
|
+
}
|
|
204
|
+
declare const SidebarItem: React.ForwardRefExoticComponent<SidebarItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
205
|
+
declare const SidebarFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
206
|
+
|
|
207
|
+
declare function ThemeProvider({ children, ...props }: ThemeProviderProps): React.JSX.Element;
|
|
163
208
|
|
|
164
209
|
declare function cn(...inputs: ClassValue[]): string;
|
|
165
210
|
|
|
166
|
-
export { Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuProps, DropdownMenuSeparator, DropdownMenuTrigger, Input, type InputProps, Label, type LabelProps, Popover, PopoverContent, type PopoverProps, PopoverTrigger, Progress, type ProgressProps, Skeleton, type SkeletonProps, Switch, type SwitchProps, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, buttonTextVariants, buttonVariants, cn };
|
|
211
|
+
export { Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuProps, DropdownMenuSeparator, DropdownMenuTrigger, Input, type InputProps, Label, type LabelProps, Popover, PopoverContent, type PopoverProps, PopoverTrigger, Progress, type ProgressProps, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, Skeleton, type SkeletonProps, Switch, type SwitchProps, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, ThemeProvider, buttonTextVariants, buttonVariants, cn, useSidebar };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,53 +1,58 @@
|
|
|
1
|
-
import * as react_native from 'react-native';
|
|
2
|
-
import { PressableProps, ViewProps, View, TextProps, Text, TextInputProps, TextInput, SwitchProps as SwitchProps$1, Switch as Switch$1, ModalProps } from 'react-native';
|
|
3
1
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
4
2
|
import * as React from 'react';
|
|
3
|
+
import * as react_native from 'react-native';
|
|
4
|
+
import { PressableProps, ViewProps, TextProps, TextInputProps, SwitchProps as SwitchProps$1, Switch as Switch$1, ModalProps } from 'react-native';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
import { ThemeProviderProps } from 'next-themes';
|
|
7
|
+
export { useTheme } from 'next-themes';
|
|
6
8
|
import { ClassValue } from 'clsx';
|
|
7
9
|
|
|
8
10
|
declare const buttonVariants: (props?: ({
|
|
9
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
11
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
10
12
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
11
13
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
12
14
|
declare const buttonTextVariants: (props?: ({
|
|
13
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | "ghost" |
|
|
15
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
14
16
|
} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
15
17
|
interface ButtonProps extends PressableProps, VariantProps<typeof buttonVariants> {
|
|
16
18
|
children: React.ReactNode;
|
|
17
19
|
className?: string;
|
|
18
20
|
textClassName?: string;
|
|
21
|
+
onClick?: (event: any) => void;
|
|
19
22
|
}
|
|
20
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<
|
|
23
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<any>>;
|
|
21
24
|
|
|
22
25
|
declare const Card: React.ForwardRefExoticComponent<ViewProps & {
|
|
23
26
|
className?: string;
|
|
24
|
-
|
|
27
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
28
|
+
onPress?: any;
|
|
29
|
+
} & React.RefAttributes<any>>;
|
|
25
30
|
declare const CardHeader: React.ForwardRefExoticComponent<ViewProps & {
|
|
26
31
|
className?: string;
|
|
27
|
-
} & React.RefAttributes<
|
|
32
|
+
} & React.RefAttributes<any>>;
|
|
28
33
|
declare const CardTitle: React.ForwardRefExoticComponent<TextProps & {
|
|
29
34
|
className?: string;
|
|
30
|
-
} & React.RefAttributes<
|
|
35
|
+
} & React.RefAttributes<any>>;
|
|
31
36
|
declare const CardDescription: React.ForwardRefExoticComponent<TextProps & {
|
|
32
37
|
className?: string;
|
|
33
|
-
} & React.RefAttributes<
|
|
38
|
+
} & React.RefAttributes<any>>;
|
|
34
39
|
declare const CardContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
35
40
|
className?: string;
|
|
36
|
-
} & React.RefAttributes<
|
|
41
|
+
} & React.RefAttributes<any>>;
|
|
37
42
|
declare const CardFooter: React.ForwardRefExoticComponent<ViewProps & {
|
|
38
43
|
className?: string;
|
|
39
|
-
} & React.RefAttributes<
|
|
44
|
+
} & React.RefAttributes<any>>;
|
|
40
45
|
|
|
41
46
|
interface InputProps extends TextInputProps {
|
|
42
47
|
className?: string;
|
|
43
48
|
}
|
|
44
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<
|
|
49
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<any>>;
|
|
45
50
|
|
|
46
51
|
declare const labelVariants: (props?: ({} & class_variance_authority_dist_types.ClassProp) | undefined) => string;
|
|
47
52
|
interface LabelProps extends TextProps, VariantProps<typeof labelVariants> {
|
|
48
53
|
className?: string;
|
|
49
54
|
}
|
|
50
|
-
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<
|
|
55
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<any>>;
|
|
51
56
|
|
|
52
57
|
interface SkeletonProps extends ViewProps {
|
|
53
58
|
className?: string;
|
|
@@ -55,6 +60,9 @@ interface SkeletonProps extends ViewProps {
|
|
|
55
60
|
declare function Skeleton({ className, ...props }: SkeletonProps): React.JSX.Element;
|
|
56
61
|
|
|
57
62
|
interface SwitchProps extends SwitchProps$1 {
|
|
63
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
64
|
+
checked?: boolean;
|
|
65
|
+
onChange?: (event: any) => void;
|
|
58
66
|
className?: string;
|
|
59
67
|
}
|
|
60
68
|
declare const Switch: React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<Switch$1>>;
|
|
@@ -63,7 +71,7 @@ interface ProgressProps extends ViewProps {
|
|
|
63
71
|
className?: string;
|
|
64
72
|
value?: number;
|
|
65
73
|
}
|
|
66
|
-
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<
|
|
74
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<any>>;
|
|
67
75
|
|
|
68
76
|
interface TabsProps extends ViewProps {
|
|
69
77
|
value?: string;
|
|
@@ -74,35 +82,35 @@ interface TabsProps extends ViewProps {
|
|
|
74
82
|
declare function Tabs({ value: controlledValue, defaultValue, onValueChange, className, children, ...props }: TabsProps): React.JSX.Element;
|
|
75
83
|
declare const TabsList: React.ForwardRefExoticComponent<ViewProps & {
|
|
76
84
|
className?: string;
|
|
77
|
-
} & React.RefAttributes<
|
|
85
|
+
} & React.RefAttributes<any>>;
|
|
78
86
|
declare const TabsTrigger: React.ForwardRefExoticComponent<PressableProps & {
|
|
79
87
|
value: string;
|
|
80
88
|
className?: string;
|
|
81
89
|
textClassName?: string;
|
|
82
|
-
} & React.RefAttributes<
|
|
90
|
+
} & React.RefAttributes<any>>;
|
|
83
91
|
declare const TabsContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
84
92
|
value: string;
|
|
85
93
|
className?: string;
|
|
86
|
-
} & React.RefAttributes<
|
|
94
|
+
} & React.RefAttributes<any>>;
|
|
87
95
|
|
|
88
96
|
declare const Table: React.ForwardRefExoticComponent<ViewProps & {
|
|
89
97
|
className?: string;
|
|
90
|
-
} & React.RefAttributes<
|
|
98
|
+
} & React.RefAttributes<any>>;
|
|
91
99
|
declare const TableHeader: React.ForwardRefExoticComponent<ViewProps & {
|
|
92
100
|
className?: string;
|
|
93
|
-
} & React.RefAttributes<
|
|
101
|
+
} & React.RefAttributes<any>>;
|
|
94
102
|
declare const TableBody: React.ForwardRefExoticComponent<ViewProps & {
|
|
95
103
|
className?: string;
|
|
96
|
-
} & React.RefAttributes<
|
|
104
|
+
} & React.RefAttributes<any>>;
|
|
97
105
|
declare const TableRow: React.ForwardRefExoticComponent<ViewProps & {
|
|
98
106
|
className?: string;
|
|
99
|
-
} & React.RefAttributes<
|
|
107
|
+
} & React.RefAttributes<any>>;
|
|
100
108
|
declare const TableHead: React.ForwardRefExoticComponent<ViewProps & {
|
|
101
109
|
className?: string;
|
|
102
|
-
} & React.RefAttributes<
|
|
110
|
+
} & React.RefAttributes<any>>;
|
|
103
111
|
declare const TableCell: React.ForwardRefExoticComponent<ViewProps & {
|
|
104
112
|
className?: string;
|
|
105
|
-
} & React.RefAttributes<
|
|
113
|
+
} & React.RefAttributes<any>>;
|
|
106
114
|
|
|
107
115
|
interface DialogProps extends ModalProps {
|
|
108
116
|
open?: boolean;
|
|
@@ -110,10 +118,13 @@ interface DialogProps extends ModalProps {
|
|
|
110
118
|
children?: React.ReactNode;
|
|
111
119
|
}
|
|
112
120
|
declare function Dialog({ open, onOpenChange, children, ...props }: DialogProps): React.JSX.Element;
|
|
113
|
-
declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps &
|
|
121
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps & {
|
|
122
|
+
className?: string;
|
|
123
|
+
onClick?: any;
|
|
124
|
+
} & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
|
|
114
125
|
declare const DialogContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
115
126
|
className?: string;
|
|
116
|
-
} & React.RefAttributes<
|
|
127
|
+
} & React.RefAttributes<any>>;
|
|
117
128
|
declare const DialogHeader: {
|
|
118
129
|
({ className, ...props }: ViewProps & {
|
|
119
130
|
className?: string;
|
|
@@ -128,39 +139,73 @@ declare const DialogFooter: {
|
|
|
128
139
|
};
|
|
129
140
|
declare const DialogTitle: React.ForwardRefExoticComponent<TextProps & {
|
|
130
141
|
className?: string;
|
|
131
|
-
} & React.RefAttributes<
|
|
142
|
+
} & React.RefAttributes<any>>;
|
|
132
143
|
declare const DialogDescription: React.ForwardRefExoticComponent<TextProps & {
|
|
133
144
|
className?: string;
|
|
134
|
-
} & React.RefAttributes<
|
|
145
|
+
} & React.RefAttributes<any>>;
|
|
135
146
|
|
|
136
147
|
interface DropdownMenuProps {
|
|
137
148
|
children: React.ReactNode;
|
|
138
149
|
}
|
|
139
150
|
declare function DropdownMenu({ children }: DropdownMenuProps): React.JSX.Element;
|
|
140
|
-
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps &
|
|
151
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps & {
|
|
152
|
+
className?: string;
|
|
153
|
+
onClick?: any;
|
|
154
|
+
} & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
|
|
141
155
|
declare const DropdownMenuContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
142
156
|
className?: string;
|
|
143
|
-
} & React.RefAttributes<
|
|
144
|
-
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<react_native.PressableProps &
|
|
157
|
+
} & React.RefAttributes<any>>;
|
|
158
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<react_native.PressableProps & {
|
|
159
|
+
className?: string;
|
|
160
|
+
onClick?: any;
|
|
161
|
+
} & React.RefAttributes<any> & {
|
|
145
162
|
className?: string;
|
|
146
163
|
textClassName?: string;
|
|
147
|
-
}, "ref"> & React.RefAttributes<
|
|
164
|
+
}, "ref"> & React.RefAttributes<any>>;
|
|
148
165
|
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<TextProps & {
|
|
149
166
|
className?: string;
|
|
150
|
-
} & React.RefAttributes<
|
|
167
|
+
} & React.RefAttributes<any>>;
|
|
151
168
|
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<ViewProps & {
|
|
152
169
|
className?: string;
|
|
153
|
-
} & React.RefAttributes<
|
|
170
|
+
} & React.RefAttributes<any>>;
|
|
154
171
|
|
|
155
172
|
interface PopoverProps {
|
|
156
173
|
children: React.ReactNode;
|
|
157
174
|
}
|
|
158
175
|
declare function Popover({ children }: PopoverProps): React.JSX.Element;
|
|
159
|
-
declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps &
|
|
176
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<Omit<react_native.PressableProps & {
|
|
177
|
+
className?: string;
|
|
178
|
+
onClick?: any;
|
|
179
|
+
} & React.RefAttributes<any>, "ref"> & React.RefAttributes<any>>;
|
|
160
180
|
declare const PopoverContent: React.ForwardRefExoticComponent<ViewProps & {
|
|
161
181
|
className?: string;
|
|
162
|
-
} & React.RefAttributes<
|
|
182
|
+
} & React.RefAttributes<any>>;
|
|
183
|
+
|
|
184
|
+
declare function useSidebar(): {
|
|
185
|
+
isOpen: boolean;
|
|
186
|
+
setIsOpen: (open: boolean) => void;
|
|
187
|
+
};
|
|
188
|
+
interface SidebarProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
189
|
+
isOpen?: boolean;
|
|
190
|
+
onOpenChange?: (open: boolean) => void;
|
|
191
|
+
side?: "left" | "right";
|
|
192
|
+
}
|
|
193
|
+
declare const Sidebar: React.ForwardRefExoticComponent<SidebarProps & React.RefAttributes<HTMLDivElement>>;
|
|
194
|
+
declare const SidebarHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
195
|
+
declare const SidebarContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
196
|
+
declare const SidebarGroup: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
197
|
+
declare const SidebarGroupLabel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
198
|
+
interface SidebarItemProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
199
|
+
icon?: React.ReactNode;
|
|
200
|
+
isActive?: boolean;
|
|
201
|
+
label?: React.ReactNode;
|
|
202
|
+
rightElement?: React.ReactNode;
|
|
203
|
+
}
|
|
204
|
+
declare const SidebarItem: React.ForwardRefExoticComponent<SidebarItemProps & React.RefAttributes<HTMLButtonElement>>;
|
|
205
|
+
declare const SidebarFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
206
|
+
|
|
207
|
+
declare function ThemeProvider({ children, ...props }: ThemeProviderProps): React.JSX.Element;
|
|
163
208
|
|
|
164
209
|
declare function cn(...inputs: ClassValue[]): string;
|
|
165
210
|
|
|
166
|
-
export { Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuProps, DropdownMenuSeparator, DropdownMenuTrigger, Input, type InputProps, Label, type LabelProps, Popover, PopoverContent, type PopoverProps, PopoverTrigger, Progress, type ProgressProps, Skeleton, type SkeletonProps, Switch, type SwitchProps, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, buttonTextVariants, buttonVariants, cn };
|
|
211
|
+
export { Button, type ButtonProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, type DialogProps, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuLabel, type DropdownMenuProps, DropdownMenuSeparator, DropdownMenuTrigger, Input, type InputProps, Label, type LabelProps, Popover, PopoverContent, type PopoverProps, PopoverTrigger, Progress, type ProgressProps, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupLabel, SidebarHeader, SidebarItem, type SidebarItemProps, type SidebarProps, Skeleton, type SkeletonProps, Switch, type SwitchProps, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, type TabsProps, TabsTrigger, ThemeProvider, buttonTextVariants, buttonVariants, cn, useSidebar };
|