@blocknote/shadcn 0.36.1 → 0.38.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/blocknote-shadcn.cjs +1 -1
- package/dist/blocknote-shadcn.cjs.map +1 -1
- package/dist/blocknote-shadcn.js +1237 -1187
- package/dist/blocknote-shadcn.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +17 -19
- package/src/BlockNoteView.tsx +2 -0
- package/src/badge/Badge.tsx +3 -6
- package/src/comments/Card.tsx +7 -9
- package/src/comments/Comment.tsx +10 -27
- package/src/components/ui/avatar.tsx +44 -39
- package/src/components/ui/badge.tsx +22 -12
- package/src/components/ui/button.tsx +33 -32
- package/src/components/ui/card.tsx +78 -72
- package/src/components/ui/dropdown-menu.tsx +230 -176
- package/src/components/ui/form.tsx +40 -51
- package/src/components/ui/input.tsx +16 -20
- package/src/components/ui/label.tsx +19 -19
- package/src/components/ui/popover.tsx +40 -23
- package/src/components/ui/select.tsx +153 -133
- package/src/components/ui/skeleton.tsx +3 -5
- package/src/components/ui/tabs.tsx +59 -46
- package/src/components/ui/toggle.tsx +23 -21
- package/src/components/ui/tooltip.tsx +50 -21
- package/src/components.ts +0 -1
- package/src/form/TextInput.tsx +4 -4
- package/src/index.tsx +1 -2
- package/src/lib/utils.ts +2 -8
- package/src/menu/Button.tsx +1 -1
- package/src/menu/Menu.tsx +2 -2
- package/src/panel/Panel.tsx +2 -2
- package/src/panel/PanelTab.tsx +1 -1
- package/src/panel/PanelTextInput.tsx +1 -1
- package/src/popover/popover.tsx +2 -2
- package/src/sideMenu/SideMenuButton.tsx +1 -1
- package/src/style.css +6 -127
- package/src/suggestionMenu/SuggestionMenu.tsx +1 -1
- package/src/suggestionMenu/SuggestionMenuEmptyItem.tsx +3 -1
- package/src/suggestionMenu/SuggestionMenuItem.tsx +13 -10
- package/src/suggestionMenu/SuggestionMenuLabel.tsx +4 -1
- package/src/suggestionMenu/SuggestionMenuLoader.tsx +3 -2
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenu.tsx +8 -1
- package/src/suggestionMenu/gridSuggestionMenu/GridSuggestionMenuItem.tsx +10 -1
- package/src/tableHandle/ExtendButton.tsx +6 -6
- package/src/tableHandle/TableHandle.tsx +1 -1
- package/src/toolbar/Toolbar.tsx +7 -9
- package/types/src/BlockNoteView.d.ts +1 -0
- package/types/src/ShadCNComponentsContext.d.ts +116 -132
- package/types/src/components/ui/avatar.d.ts +3 -3
- package/types/src/components/ui/badge.d.ts +5 -5
- package/types/src/components/ui/button.d.ts +4 -5
- package/types/src/components/ui/card.d.ts +8 -7
- package/types/src/components/ui/dropdown-menu.d.ts +21 -23
- package/types/src/components/ui/form.d.ts +10 -9
- package/types/src/components/ui/input.d.ts +1 -3
- package/types/src/components/ui/label.d.ts +2 -3
- package/types/src/components/ui/popover.d.ts +6 -5
- package/types/src/components/ui/select.d.ts +13 -11
- package/types/src/components/ui/skeleton.d.ts +1 -1
- package/types/src/components/ui/tabs.d.ts +6 -6
- package/types/src/components/ui/toggle.d.ts +3 -6
- package/types/src/components/ui/tooltip.d.ts +6 -6
- package/types/src/components.d.ts +0 -1
- package/types/src/index.d.ts +1 -1
- package/src/tailwindStyles.css +0 -421
|
@@ -1,234 +1,218 @@
|
|
|
1
|
+
import { Avatar as ShadCNAvatar, AvatarFallback as ShadCNAvatarFallback, AvatarImage as ShadCNAvatarImage } from "./components/ui/avatar.js";
|
|
1
2
|
import { Badge as ShadCNBadge } from "./components/ui/badge.js";
|
|
3
|
+
import { Button as ShadCNButton } from "./components/ui/button.js";
|
|
4
|
+
import { Card as ShadCNCard, CardContent as ShadCNCardContent } from "./components/ui/card.js";
|
|
5
|
+
import { DropdownMenu as ShadCNDropdownMenu, DropdownMenuCheckboxItem as ShadCNDropdownMenuCheckboxItem, DropdownMenuContent as ShadCNDropdownMenuContent, DropdownMenuItem as ShadCNDropdownMenuItem, DropdownMenuLabel as ShadCNDropdownMenuLabel, DropdownMenuSeparator as ShadCNDropdownMenuSeparator, DropdownMenuSub as ShadCNDropdownMenuSub, DropdownMenuSubContent as ShadCNDropdownMenuSubContent, DropdownMenuSubTrigger as ShadCNDropdownMenuSubTrigger, DropdownMenuTrigger as ShadCNDropdownMenuTrigger } from "./components/ui/dropdown-menu.js";
|
|
6
|
+
import { Input as ShadCNInput } from "./components/ui/input.js";
|
|
7
|
+
import { Label as ShadCNLabel } from "./components/ui/label.js";
|
|
8
|
+
import { Popover as ShadCNPopover, PopoverContent as ShadCNPopoverContent, PopoverTrigger as ShadCNPopoverTrigger } from "./components/ui/popover.js";
|
|
9
|
+
import { Select as ShadCNSelect, SelectContent as ShadCNSelectContent, SelectItem as ShadCNSelectItem, SelectTrigger as ShadCNSelectTrigger, SelectValue as ShadCNSelectValue } from "./components/ui/select.js";
|
|
2
10
|
import { Skeleton as ShadCNSkeleton } from "./components/ui/skeleton.js";
|
|
11
|
+
import { Tabs as ShadCNTabs, TabsContent as ShadCNTabsContent, TabsList as ShadCNTabsList, TabsTrigger as ShadCNTabsTrigger } from "./components/ui/tabs.js";
|
|
12
|
+
import { Toggle as ShadCNToggle } from "./components/ui/toggle.js";
|
|
13
|
+
import { Tooltip as ShadCNTooltip, TooltipContent as ShadCNTooltipContent, TooltipProvider as ShadCNTooltipProvider, TooltipTrigger as ShadCNTooltipTrigger } from "./components/ui/tooltip.js";
|
|
3
14
|
export declare const ShadCNDefaultComponents: {
|
|
4
15
|
Avatar: {
|
|
5
|
-
Avatar:
|
|
6
|
-
AvatarFallback:
|
|
7
|
-
AvatarImage:
|
|
16
|
+
Avatar: typeof ShadCNAvatar;
|
|
17
|
+
AvatarFallback: typeof ShadCNAvatarFallback;
|
|
18
|
+
AvatarImage: typeof ShadCNAvatarImage;
|
|
8
19
|
};
|
|
9
20
|
Badge: {
|
|
10
21
|
Badge: typeof ShadCNBadge;
|
|
11
22
|
};
|
|
12
23
|
Button: {
|
|
13
|
-
Button:
|
|
24
|
+
Button: typeof ShadCNButton;
|
|
14
25
|
};
|
|
15
26
|
Card: {
|
|
16
|
-
Card:
|
|
17
|
-
CardContent:
|
|
27
|
+
Card: typeof ShadCNCard;
|
|
28
|
+
CardContent: typeof ShadCNCardContent;
|
|
18
29
|
};
|
|
19
30
|
DropdownMenu: {
|
|
20
|
-
DropdownMenu:
|
|
21
|
-
DropdownMenuCheckboxItem:
|
|
22
|
-
DropdownMenuContent:
|
|
23
|
-
DropdownMenuItem:
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
DropdownMenuSub: import("react").FC<import("@radix-ui/react-dropdown-menu").DropdownMenuSubProps>;
|
|
31
|
-
DropdownMenuSubContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
-
DropdownMenuSubTrigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
33
|
-
inset?: boolean;
|
|
34
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
35
|
-
DropdownMenuTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dropdown-menu").DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
31
|
+
DropdownMenu: typeof ShadCNDropdownMenu;
|
|
32
|
+
DropdownMenuCheckboxItem: typeof ShadCNDropdownMenuCheckboxItem;
|
|
33
|
+
DropdownMenuContent: typeof ShadCNDropdownMenuContent;
|
|
34
|
+
DropdownMenuItem: typeof ShadCNDropdownMenuItem;
|
|
35
|
+
DropdownMenuLabel: typeof ShadCNDropdownMenuLabel;
|
|
36
|
+
DropdownMenuSeparator: typeof ShadCNDropdownMenuSeparator;
|
|
37
|
+
DropdownMenuSub: typeof ShadCNDropdownMenuSub;
|
|
38
|
+
DropdownMenuSubContent: typeof ShadCNDropdownMenuSubContent;
|
|
39
|
+
DropdownMenuSubTrigger: typeof ShadCNDropdownMenuSubTrigger;
|
|
40
|
+
DropdownMenuTrigger: typeof ShadCNDropdownMenuTrigger;
|
|
36
41
|
};
|
|
37
42
|
Form: {
|
|
38
43
|
Form: <TFieldValues extends import("react-hook-form").FieldValues, TContext = any, TTransformedValues extends import("react-hook-form").FieldValues | undefined = undefined>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
39
44
|
};
|
|
40
45
|
Input: {
|
|
41
|
-
Input:
|
|
46
|
+
Input: typeof ShadCNInput;
|
|
42
47
|
};
|
|
43
48
|
Label: {
|
|
44
|
-
Label:
|
|
49
|
+
Label: typeof ShadCNLabel;
|
|
45
50
|
};
|
|
46
51
|
Popover: {
|
|
47
|
-
Popover:
|
|
48
|
-
PopoverContent:
|
|
49
|
-
PopoverTrigger:
|
|
52
|
+
Popover: typeof ShadCNPopover;
|
|
53
|
+
PopoverContent: typeof ShadCNPopoverContent;
|
|
54
|
+
PopoverTrigger: typeof ShadCNPopoverTrigger;
|
|
50
55
|
};
|
|
51
56
|
Select: {
|
|
52
|
-
Select:
|
|
53
|
-
SelectContent:
|
|
54
|
-
SelectItem:
|
|
55
|
-
SelectTrigger:
|
|
56
|
-
SelectValue:
|
|
57
|
+
Select: typeof ShadCNSelect;
|
|
58
|
+
SelectContent: typeof ShadCNSelectContent;
|
|
59
|
+
SelectItem: typeof ShadCNSelectItem;
|
|
60
|
+
SelectTrigger: typeof ShadCNSelectTrigger;
|
|
61
|
+
SelectValue: typeof ShadCNSelectValue;
|
|
57
62
|
};
|
|
58
63
|
Skeleton: {
|
|
59
64
|
Skeleton: typeof ShadCNSkeleton;
|
|
60
65
|
};
|
|
61
66
|
Tabs: {
|
|
62
|
-
Tabs:
|
|
63
|
-
TabsContent:
|
|
64
|
-
TabsList:
|
|
65
|
-
TabsTrigger:
|
|
67
|
+
Tabs: typeof ShadCNTabs;
|
|
68
|
+
TabsContent: typeof ShadCNTabsContent;
|
|
69
|
+
TabsList: typeof ShadCNTabsList;
|
|
70
|
+
TabsTrigger: typeof ShadCNTabsTrigger;
|
|
66
71
|
};
|
|
67
72
|
Toggle: {
|
|
68
|
-
Toggle:
|
|
69
|
-
variant?: "default" | "outline" | null | undefined;
|
|
70
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
71
|
-
} & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
73
|
+
Toggle: typeof ShadCNToggle;
|
|
72
74
|
};
|
|
73
75
|
Tooltip: {
|
|
74
|
-
Tooltip:
|
|
75
|
-
TooltipContent:
|
|
76
|
-
TooltipProvider:
|
|
77
|
-
TooltipTrigger:
|
|
76
|
+
Tooltip: typeof ShadCNTooltip;
|
|
77
|
+
TooltipContent: typeof ShadCNTooltipContent;
|
|
78
|
+
TooltipProvider: typeof ShadCNTooltipProvider;
|
|
79
|
+
TooltipTrigger: typeof ShadCNTooltipTrigger;
|
|
78
80
|
};
|
|
79
81
|
};
|
|
80
82
|
export type ShadCNComponents = typeof ShadCNDefaultComponents;
|
|
81
83
|
export declare const ShadCNComponentsContext: import("react").Context<{
|
|
82
84
|
Avatar: {
|
|
83
|
-
Avatar:
|
|
84
|
-
AvatarFallback:
|
|
85
|
-
AvatarImage:
|
|
85
|
+
Avatar: typeof ShadCNAvatar;
|
|
86
|
+
AvatarFallback: typeof ShadCNAvatarFallback;
|
|
87
|
+
AvatarImage: typeof ShadCNAvatarImage;
|
|
86
88
|
};
|
|
87
89
|
Badge: {
|
|
88
90
|
Badge: typeof ShadCNBadge;
|
|
89
91
|
};
|
|
90
92
|
Button: {
|
|
91
|
-
Button:
|
|
93
|
+
Button: typeof ShadCNButton;
|
|
92
94
|
};
|
|
93
95
|
Card: {
|
|
94
|
-
Card:
|
|
95
|
-
CardContent:
|
|
96
|
+
Card: typeof ShadCNCard;
|
|
97
|
+
CardContent: typeof ShadCNCardContent;
|
|
96
98
|
};
|
|
97
99
|
DropdownMenu: {
|
|
98
|
-
DropdownMenu:
|
|
99
|
-
DropdownMenuCheckboxItem:
|
|
100
|
-
DropdownMenuContent:
|
|
101
|
-
DropdownMenuItem:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
DropdownMenuSub: import("react").FC<import("@radix-ui/react-dropdown-menu").DropdownMenuSubProps>;
|
|
109
|
-
DropdownMenuSubContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
110
|
-
DropdownMenuSubTrigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
111
|
-
inset?: boolean;
|
|
112
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
113
|
-
DropdownMenuTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dropdown-menu").DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
100
|
+
DropdownMenu: typeof ShadCNDropdownMenu;
|
|
101
|
+
DropdownMenuCheckboxItem: typeof ShadCNDropdownMenuCheckboxItem;
|
|
102
|
+
DropdownMenuContent: typeof ShadCNDropdownMenuContent;
|
|
103
|
+
DropdownMenuItem: typeof ShadCNDropdownMenuItem;
|
|
104
|
+
DropdownMenuLabel: typeof ShadCNDropdownMenuLabel;
|
|
105
|
+
DropdownMenuSeparator: typeof ShadCNDropdownMenuSeparator;
|
|
106
|
+
DropdownMenuSub: typeof ShadCNDropdownMenuSub;
|
|
107
|
+
DropdownMenuSubContent: typeof ShadCNDropdownMenuSubContent;
|
|
108
|
+
DropdownMenuSubTrigger: typeof ShadCNDropdownMenuSubTrigger;
|
|
109
|
+
DropdownMenuTrigger: typeof ShadCNDropdownMenuTrigger;
|
|
114
110
|
};
|
|
115
111
|
Form: {
|
|
116
112
|
Form: <TFieldValues extends import("react-hook-form").FieldValues, TContext = any, TTransformedValues extends import("react-hook-form").FieldValues | undefined = undefined>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
117
113
|
};
|
|
118
114
|
Input: {
|
|
119
|
-
Input:
|
|
115
|
+
Input: typeof ShadCNInput;
|
|
120
116
|
};
|
|
121
117
|
Label: {
|
|
122
|
-
Label:
|
|
118
|
+
Label: typeof ShadCNLabel;
|
|
123
119
|
};
|
|
124
120
|
Popover: {
|
|
125
|
-
Popover:
|
|
126
|
-
PopoverContent:
|
|
127
|
-
PopoverTrigger:
|
|
121
|
+
Popover: typeof ShadCNPopover;
|
|
122
|
+
PopoverContent: typeof ShadCNPopoverContent;
|
|
123
|
+
PopoverTrigger: typeof ShadCNPopoverTrigger;
|
|
128
124
|
};
|
|
129
125
|
Select: {
|
|
130
|
-
Select:
|
|
131
|
-
SelectContent:
|
|
132
|
-
SelectItem:
|
|
133
|
-
SelectTrigger:
|
|
134
|
-
SelectValue:
|
|
126
|
+
Select: typeof ShadCNSelect;
|
|
127
|
+
SelectContent: typeof ShadCNSelectContent;
|
|
128
|
+
SelectItem: typeof ShadCNSelectItem;
|
|
129
|
+
SelectTrigger: typeof ShadCNSelectTrigger;
|
|
130
|
+
SelectValue: typeof ShadCNSelectValue;
|
|
135
131
|
};
|
|
136
132
|
Skeleton: {
|
|
137
133
|
Skeleton: typeof ShadCNSkeleton;
|
|
138
134
|
};
|
|
139
135
|
Tabs: {
|
|
140
|
-
Tabs:
|
|
141
|
-
TabsContent:
|
|
142
|
-
TabsList:
|
|
143
|
-
TabsTrigger:
|
|
136
|
+
Tabs: typeof ShadCNTabs;
|
|
137
|
+
TabsContent: typeof ShadCNTabsContent;
|
|
138
|
+
TabsList: typeof ShadCNTabsList;
|
|
139
|
+
TabsTrigger: typeof ShadCNTabsTrigger;
|
|
144
140
|
};
|
|
145
141
|
Toggle: {
|
|
146
|
-
Toggle:
|
|
147
|
-
variant?: "default" | "outline" | null | undefined;
|
|
148
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
149
|
-
} & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
142
|
+
Toggle: typeof ShadCNToggle;
|
|
150
143
|
};
|
|
151
144
|
Tooltip: {
|
|
152
|
-
Tooltip:
|
|
153
|
-
TooltipContent:
|
|
154
|
-
TooltipProvider:
|
|
155
|
-
TooltipTrigger:
|
|
145
|
+
Tooltip: typeof ShadCNTooltip;
|
|
146
|
+
TooltipContent: typeof ShadCNTooltipContent;
|
|
147
|
+
TooltipProvider: typeof ShadCNTooltipProvider;
|
|
148
|
+
TooltipTrigger: typeof ShadCNTooltipTrigger;
|
|
156
149
|
};
|
|
157
150
|
} | undefined>;
|
|
158
151
|
export declare function useShadCNComponentsContext(): {
|
|
159
152
|
Avatar: {
|
|
160
|
-
Avatar:
|
|
161
|
-
AvatarFallback:
|
|
162
|
-
AvatarImage:
|
|
153
|
+
Avatar: typeof ShadCNAvatar;
|
|
154
|
+
AvatarFallback: typeof ShadCNAvatarFallback;
|
|
155
|
+
AvatarImage: typeof ShadCNAvatarImage;
|
|
163
156
|
};
|
|
164
157
|
Badge: {
|
|
165
158
|
Badge: typeof ShadCNBadge;
|
|
166
159
|
};
|
|
167
160
|
Button: {
|
|
168
|
-
Button:
|
|
161
|
+
Button: typeof ShadCNButton;
|
|
169
162
|
};
|
|
170
163
|
Card: {
|
|
171
|
-
Card:
|
|
172
|
-
CardContent:
|
|
164
|
+
Card: typeof ShadCNCard;
|
|
165
|
+
CardContent: typeof ShadCNCardContent;
|
|
173
166
|
};
|
|
174
167
|
DropdownMenu: {
|
|
175
|
-
DropdownMenu:
|
|
176
|
-
DropdownMenuCheckboxItem:
|
|
177
|
-
DropdownMenuContent:
|
|
178
|
-
DropdownMenuItem:
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
DropdownMenuSub: import("react").FC<import("@radix-ui/react-dropdown-menu").DropdownMenuSubProps>;
|
|
186
|
-
DropdownMenuSubContent: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSubContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
187
|
-
DropdownMenuSubTrigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/react-dropdown-menu").DropdownMenuSubTriggerProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & {
|
|
188
|
-
inset?: boolean;
|
|
189
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
190
|
-
DropdownMenuTrigger: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dropdown-menu").DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
168
|
+
DropdownMenu: typeof ShadCNDropdownMenu;
|
|
169
|
+
DropdownMenuCheckboxItem: typeof ShadCNDropdownMenuCheckboxItem;
|
|
170
|
+
DropdownMenuContent: typeof ShadCNDropdownMenuContent;
|
|
171
|
+
DropdownMenuItem: typeof ShadCNDropdownMenuItem;
|
|
172
|
+
DropdownMenuLabel: typeof ShadCNDropdownMenuLabel;
|
|
173
|
+
DropdownMenuSeparator: typeof ShadCNDropdownMenuSeparator;
|
|
174
|
+
DropdownMenuSub: typeof ShadCNDropdownMenuSub;
|
|
175
|
+
DropdownMenuSubContent: typeof ShadCNDropdownMenuSubContent;
|
|
176
|
+
DropdownMenuSubTrigger: typeof ShadCNDropdownMenuSubTrigger;
|
|
177
|
+
DropdownMenuTrigger: typeof ShadCNDropdownMenuTrigger;
|
|
191
178
|
};
|
|
192
179
|
Form: {
|
|
193
180
|
Form: <TFieldValues extends import("react-hook-form").FieldValues, TContext = any, TTransformedValues extends import("react-hook-form").FieldValues | undefined = undefined>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
194
181
|
};
|
|
195
182
|
Input: {
|
|
196
|
-
Input:
|
|
183
|
+
Input: typeof ShadCNInput;
|
|
197
184
|
};
|
|
198
185
|
Label: {
|
|
199
|
-
Label:
|
|
186
|
+
Label: typeof ShadCNLabel;
|
|
200
187
|
};
|
|
201
188
|
Popover: {
|
|
202
|
-
Popover:
|
|
203
|
-
PopoverContent:
|
|
204
|
-
PopoverTrigger:
|
|
189
|
+
Popover: typeof ShadCNPopover;
|
|
190
|
+
PopoverContent: typeof ShadCNPopoverContent;
|
|
191
|
+
PopoverTrigger: typeof ShadCNPopoverTrigger;
|
|
205
192
|
};
|
|
206
193
|
Select: {
|
|
207
|
-
Select:
|
|
208
|
-
SelectContent:
|
|
209
|
-
SelectItem:
|
|
210
|
-
SelectTrigger:
|
|
211
|
-
SelectValue:
|
|
194
|
+
Select: typeof ShadCNSelect;
|
|
195
|
+
SelectContent: typeof ShadCNSelectContent;
|
|
196
|
+
SelectItem: typeof ShadCNSelectItem;
|
|
197
|
+
SelectTrigger: typeof ShadCNSelectTrigger;
|
|
198
|
+
SelectValue: typeof ShadCNSelectValue;
|
|
212
199
|
};
|
|
213
200
|
Skeleton: {
|
|
214
201
|
Skeleton: typeof ShadCNSkeleton;
|
|
215
202
|
};
|
|
216
203
|
Tabs: {
|
|
217
|
-
Tabs:
|
|
218
|
-
TabsContent:
|
|
219
|
-
TabsList:
|
|
220
|
-
TabsTrigger:
|
|
204
|
+
Tabs: typeof ShadCNTabs;
|
|
205
|
+
TabsContent: typeof ShadCNTabsContent;
|
|
206
|
+
TabsList: typeof ShadCNTabsList;
|
|
207
|
+
TabsTrigger: typeof ShadCNTabsTrigger;
|
|
221
208
|
};
|
|
222
209
|
Toggle: {
|
|
223
|
-
Toggle:
|
|
224
|
-
variant?: "default" | "outline" | null | undefined;
|
|
225
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
226
|
-
} & import("class-variance-authority/dist/types.js").ClassProp) | undefined) => string> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
210
|
+
Toggle: typeof ShadCNToggle;
|
|
227
211
|
};
|
|
228
212
|
Tooltip: {
|
|
229
|
-
Tooltip:
|
|
230
|
-
TooltipContent:
|
|
231
|
-
TooltipProvider:
|
|
232
|
-
TooltipTrigger:
|
|
213
|
+
Tooltip: typeof ShadCNTooltip;
|
|
214
|
+
TooltipContent: typeof ShadCNTooltipContent;
|
|
215
|
+
TooltipProvider: typeof ShadCNTooltipProvider;
|
|
216
|
+
TooltipTrigger: typeof ShadCNTooltipTrigger;
|
|
233
217
|
};
|
|
234
218
|
} | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
3
|
-
declare
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
3
|
+
declare function Avatar({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export { Avatar, AvatarImage, AvatarFallback };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type VariantProps } from "class-variance-authority";
|
|
2
1
|
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
4
|
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/dist/types
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
export { Badge, badgeVariants };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { type VariantProps } from "class-variance-authority";
|
|
2
1
|
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/dist/types
|
|
7
|
-
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
|
-
}
|
|
10
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
10
|
export { Button, buttonVariants };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
declare
|
|
3
|
-
declare
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
declare
|
|
7
|
-
declare
|
|
8
|
-
declare
|
|
9
|
-
declare
|
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
10
9
|
inset?: boolean;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
declare
|
|
14
|
-
declare
|
|
10
|
+
variant?: "default" | "destructive";
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
15
16
|
inset?: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare
|
|
18
|
-
declare
|
|
19
|
-
declare
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
20
22
|
inset?: boolean;
|
|
21
|
-
}
|
|
22
|
-
declare
|
|
23
|
-
|
|
24
|
-
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime.js").JSX.Element;
|
|
25
|
-
displayName: string;
|
|
26
|
-
};
|
|
27
|
-
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, };
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
import
|
|
2
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
+
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
+
import { type ControllerProps, type FieldPath, type FieldValues } from "react-hook-form";
|
|
4
5
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
|
5
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime
|
|
6
|
+
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
6
7
|
declare const useFormField: () => {
|
|
7
8
|
invalid: boolean;
|
|
8
9
|
isDirty: boolean;
|
|
@@ -15,9 +16,9 @@ declare const useFormField: () => {
|
|
|
15
16
|
formDescriptionId: string;
|
|
16
17
|
formMessageId: string;
|
|
17
18
|
};
|
|
18
|
-
declare
|
|
19
|
-
declare
|
|
20
|
-
declare
|
|
21
|
-
declare
|
|
22
|
-
declare
|
|
23
|
-
export {
|
|
19
|
+
declare function FormItem({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function FormLabel({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function FormControl({ ...props }: React.ComponentProps<typeof Slot>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function FormDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function FormMessage({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
export { useFormField, Form, FormItem, FormLabel, FormControl, FormDescription, FormMessage, FormField, };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
|
|
3
|
-
}
|
|
4
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
2
|
+
declare function Input({ className, type, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
|
|
5
3
|
export { Input };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
1
|
import * as React from "react";
|
|
4
|
-
|
|
2
|
+
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
+
declare function Label({ className, ...props }: React.ComponentProps<typeof LabelPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export { Label };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
2
1
|
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
declare
|
|
5
|
-
declare
|
|
6
|
-
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Popover, PopoverTrigger, PopoverContent, PopoverAnchor };
|