@docyrus/shadcn 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/README.md +12 -3
- package/dist/index.d.ts +67 -55
- package/dist/index.js +621 -794
- package/dist/index.js.map +1 -1
- package/package.json +30 -19
package/README.md
CHANGED
|
@@ -14,16 +14,25 @@ This package bundles all shadcn/ui components into a single NPM package with wee
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
pnpm add @docyrus/shadcn
|
|
17
|
+
pnpm add @docyrus/shadcn tailwindcss radix-ui lucide-react tailwind-merge class-variance-authority clsx tw-animate-css
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
If you're using **base-*** styles, also install:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pnpm add @base-ui/react
|
|
18
24
|
```
|
|
19
25
|
|
|
20
26
|
## Usage
|
|
21
27
|
|
|
22
|
-
### Quick Start
|
|
28
|
+
### Quick Start (default: radix-vega)
|
|
23
29
|
|
|
24
30
|
```tsx
|
|
25
31
|
import { Button, Card, Input, Dialog } from "@docyrus/shadcn";
|
|
26
32
|
import "@docyrus/shadcn/styles.css";
|
|
33
|
+
|
|
34
|
+
// Or import individual components
|
|
35
|
+
import { Button } from "@docyrus/shadcn/button";
|
|
27
36
|
```
|
|
28
37
|
|
|
29
38
|
### Import by Style
|
|
@@ -40,7 +49,7 @@ import { Button } from "@docyrus/shadcn/base-nova";
|
|
|
40
49
|
import { Button } from "@docyrus/shadcn/new-york/button";
|
|
41
50
|
|
|
42
51
|
// Styles
|
|
43
|
-
import "@docyrus/shadcn/
|
|
52
|
+
import "@docyrus/shadcn/radix-vega/styles.css";
|
|
44
53
|
```
|
|
45
54
|
|
|
46
55
|
### Import Utilities
|
package/dist/index.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Separator as Separator$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, Dialog as Dialog$1, ContextMenu as ContextMenu$1, Direction, DropdownMenu as DropdownMenu$1, Label as Label$1,
|
|
3
|
+
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Separator as Separator$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, Dialog as Dialog$1, ContextMenu as ContextMenu$1, Direction, DropdownMenu as DropdownMenu$1, Label as Label$1, HoverCard as HoverCard$1, Menubar as Menubar$1, NavigationMenu as NavigationMenu$1, Popover as Popover$1, Progress as Progress$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Tooltip as Tooltip$1, Slider as Slider$1, Switch as Switch$1, Tabs as Tabs$1, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1 } from 'radix-ui';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
|
-
import { DayPicker, DayButton } from 'react-day-picker';
|
|
6
|
+
import { DayPicker, DayButton, Locale } from 'react-day-picker';
|
|
7
7
|
import useEmblaCarousel, { UseEmblaCarouselType } from 'embla-carousel-react';
|
|
8
8
|
import * as RechartsPrimitive from 'recharts';
|
|
9
9
|
import { Combobox as Combobox$1 } from '@base-ui/react';
|
|
10
10
|
import { Command as Command$1 } from 'cmdk';
|
|
11
11
|
import { Drawer as Drawer$1 } from 'vaul';
|
|
12
|
-
import * as react_hook_form from 'react-hook-form';
|
|
13
|
-
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
14
12
|
import { OTPInput } from 'input-otp';
|
|
15
13
|
import { SeparatorProps, PanelProps, GroupProps } from 'react-resizable-panels';
|
|
16
14
|
import { ToasterProps } from 'sonner';
|
|
@@ -18,13 +16,13 @@ export { useIsMobile } from './hooks/use-mobile.js';
|
|
|
18
16
|
export { cn } from './lib/utils.js';
|
|
19
17
|
import 'clsx';
|
|
20
18
|
|
|
21
|
-
declare function Accordion({ ...props }: React$1.ComponentProps<typeof Accordion$1.Root>): react_jsx_runtime.JSX.Element;
|
|
19
|
+
declare function Accordion({ className, ...props }: React$1.ComponentProps<typeof Accordion$1.Root>): react_jsx_runtime.JSX.Element;
|
|
22
20
|
declare function AccordionItem({ className, ...props }: React$1.ComponentProps<typeof Accordion$1.Item>): react_jsx_runtime.JSX.Element;
|
|
23
21
|
declare function AccordionTrigger({ className, children, ...props }: React$1.ComponentProps<typeof Accordion$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
24
22
|
declare function AccordionContent({ className, children, ...props }: React$1.ComponentProps<typeof Accordion$1.Content>): react_jsx_runtime.JSX.Element;
|
|
25
23
|
|
|
26
24
|
declare const buttonVariants: (props?: ({
|
|
27
|
-
variant?: "link" | "default" | "
|
|
25
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
28
26
|
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
29
27
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
30
28
|
declare function Button({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
@@ -40,9 +38,9 @@ declare function AlertDialogContent({ className, size, ...props }: React$1.Compo
|
|
|
40
38
|
}): react_jsx_runtime.JSX.Element;
|
|
41
39
|
declare function AlertDialogHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
42
40
|
declare function AlertDialogFooter({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
41
|
+
declare function AlertDialogMedia({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
43
42
|
declare function AlertDialogTitle({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Title>): react_jsx_runtime.JSX.Element;
|
|
44
43
|
declare function AlertDialogDescription({ className, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Description>): react_jsx_runtime.JSX.Element;
|
|
45
|
-
declare function AlertDialogMedia({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
46
44
|
declare function AlertDialogAction({ className, variant, size, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Action> & Pick<React$1.ComponentProps<typeof Button>, "variant" | "size">): react_jsx_runtime.JSX.Element;
|
|
47
45
|
declare function AlertDialogCancel({ className, variant, size, ...props }: React$1.ComponentProps<typeof AlertDialog$1.Cancel> & Pick<React$1.ComponentProps<typeof Button>, "variant" | "size">): react_jsx_runtime.JSX.Element;
|
|
48
46
|
|
|
@@ -52,6 +50,7 @@ declare const alertVariants: (props?: ({
|
|
|
52
50
|
declare function Alert({ className, variant, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof alertVariants>): react_jsx_runtime.JSX.Element;
|
|
53
51
|
declare function AlertTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
54
52
|
declare function AlertDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
53
|
+
declare function AlertAction({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
55
54
|
|
|
56
55
|
declare function AspectRatio({ ...props }: React.ComponentProps<typeof AspectRatio$1.Root>): react_jsx_runtime.JSX.Element;
|
|
57
56
|
|
|
@@ -65,13 +64,13 @@ declare function AvatarGroup({ className, ...props }: React$1.ComponentProps<"di
|
|
|
65
64
|
declare function AvatarGroupCount({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
66
65
|
|
|
67
66
|
declare const badgeVariants: (props?: ({
|
|
68
|
-
variant?: "link" | "default" | "
|
|
67
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
69
68
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
70
69
|
declare function Badge({ className, variant, asChild, ...props }: React$1.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
71
70
|
asChild?: boolean;
|
|
72
71
|
}): react_jsx_runtime.JSX.Element;
|
|
73
72
|
|
|
74
|
-
declare function Breadcrumb({ ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
73
|
+
declare function Breadcrumb({ className, ...props }: React$1.ComponentProps<"nav">): react_jsx_runtime.JSX.Element;
|
|
75
74
|
declare function BreadcrumbList({ className, ...props }: React$1.ComponentProps<"ol">): react_jsx_runtime.JSX.Element;
|
|
76
75
|
declare function BreadcrumbItem({ className, ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
77
76
|
declare function BreadcrumbLink({ asChild, className, ...props }: React$1.ComponentProps<"a"> & {
|
|
@@ -92,12 +91,16 @@ declare function ButtonGroupText({ className, asChild, ...props }: React.Compone
|
|
|
92
91
|
}): react_jsx_runtime.JSX.Element;
|
|
93
92
|
declare function ButtonGroupSeparator({ className, orientation, ...props }: React.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
94
93
|
|
|
95
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
94
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React$1.ComponentProps<typeof DayPicker> & {
|
|
96
95
|
buttonVariant?: React$1.ComponentProps<typeof Button>["variant"];
|
|
97
96
|
}): react_jsx_runtime.JSX.Element;
|
|
98
|
-
declare function CalendarDayButton({ className, day, modifiers, ...props }: React$1.ComponentProps<typeof DayButton>
|
|
97
|
+
declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React$1.ComponentProps<typeof DayButton> & {
|
|
98
|
+
locale?: Partial<Locale>;
|
|
99
|
+
}): react_jsx_runtime.JSX.Element;
|
|
99
100
|
|
|
100
|
-
declare function Card({ className, ...props }: React$1.ComponentProps<"div">
|
|
101
|
+
declare function Card({ className, size, ...props }: React$1.ComponentProps<"div"> & {
|
|
102
|
+
size?: "default" | "sm";
|
|
103
|
+
}): react_jsx_runtime.JSX.Element;
|
|
101
104
|
declare function CardHeader({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
102
105
|
declare function CardTitle({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
103
106
|
declare function CardDescription({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
@@ -115,6 +118,15 @@ type CarouselProps = {
|
|
|
115
118
|
orientation?: "horizontal" | "vertical";
|
|
116
119
|
setApi?: (api: CarouselApi) => void;
|
|
117
120
|
};
|
|
121
|
+
type CarouselContextProps = {
|
|
122
|
+
carouselRef: ReturnType<typeof useEmblaCarousel>[0];
|
|
123
|
+
api: ReturnType<typeof useEmblaCarousel>[1];
|
|
124
|
+
scrollPrev: () => void;
|
|
125
|
+
scrollNext: () => void;
|
|
126
|
+
canScrollPrev: boolean;
|
|
127
|
+
canScrollNext: boolean;
|
|
128
|
+
} & CarouselProps;
|
|
129
|
+
declare function useCarousel(): CarouselContextProps;
|
|
118
130
|
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React$1.ComponentProps<"div"> & CarouselProps): react_jsx_runtime.JSX.Element;
|
|
119
131
|
declare function CarouselContent({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
120
132
|
declare function CarouselItem({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
@@ -184,7 +196,7 @@ declare function ComboboxChips({ className, ...props }: React$1.ComponentPropsWi
|
|
|
184
196
|
declare function ComboboxChip({ className, children, showRemove, ...props }: Combobox$1.Chip.Props & {
|
|
185
197
|
showRemove?: boolean;
|
|
186
198
|
}): react_jsx_runtime.JSX.Element;
|
|
187
|
-
declare function ComboboxChipsInput({ className,
|
|
199
|
+
declare function ComboboxChipsInput({ className, ...props }: Combobox$1.Input.Props): react_jsx_runtime.JSX.Element;
|
|
188
200
|
declare function useComboboxAnchor(): React$1.RefObject<HTMLDivElement | null>;
|
|
189
201
|
|
|
190
202
|
declare function Dialog({ ...props }: React$1.ComponentProps<typeof Dialog$1.Root>): react_jsx_runtime.JSX.Element;
|
|
@@ -211,29 +223,35 @@ declare function CommandDialog({ title, description, children, className, showCl
|
|
|
211
223
|
}): react_jsx_runtime.JSX.Element;
|
|
212
224
|
declare function CommandInput({ className, ...props }: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime.JSX.Element;
|
|
213
225
|
declare function CommandList({ className, ...props }: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime.JSX.Element;
|
|
214
|
-
declare function CommandEmpty({ ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
226
|
+
declare function CommandEmpty({ className, ...props }: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime.JSX.Element;
|
|
215
227
|
declare function CommandGroup({ className, ...props }: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime.JSX.Element;
|
|
216
228
|
declare function CommandSeparator({ className, ...props }: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime.JSX.Element;
|
|
217
|
-
declare function CommandItem({ className, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
229
|
+
declare function CommandItem({ className, children, ...props }: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime.JSX.Element;
|
|
218
230
|
declare function CommandShortcut({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
219
231
|
|
|
220
232
|
declare function ContextMenu({ ...props }: React$1.ComponentProps<typeof ContextMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
221
|
-
declare function ContextMenuTrigger({ ...props }: React$1.ComponentProps<typeof ContextMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
233
|
+
declare function ContextMenuTrigger({ className, ...props }: React$1.ComponentProps<typeof ContextMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
222
234
|
declare function ContextMenuGroup({ ...props }: React$1.ComponentProps<typeof ContextMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
223
235
|
declare function ContextMenuPortal({ ...props }: React$1.ComponentProps<typeof ContextMenu$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
224
236
|
declare function ContextMenuSub({ ...props }: React$1.ComponentProps<typeof ContextMenu$1.Sub>): react_jsx_runtime.JSX.Element;
|
|
225
237
|
declare function ContextMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof ContextMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
238
|
+
declare function ContextMenuContent({ className, ...props }: React$1.ComponentProps<typeof ContextMenu$1.Content> & {
|
|
239
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
240
|
+
}): react_jsx_runtime.JSX.Element;
|
|
241
|
+
declare function ContextMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof ContextMenu$1.Item> & {
|
|
242
|
+
inset?: boolean;
|
|
243
|
+
variant?: "default" | "destructive";
|
|
244
|
+
}): react_jsx_runtime.JSX.Element;
|
|
226
245
|
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React$1.ComponentProps<typeof ContextMenu$1.SubTrigger> & {
|
|
227
246
|
inset?: boolean;
|
|
228
247
|
}): react_jsx_runtime.JSX.Element;
|
|
229
248
|
declare function ContextMenuSubContent({ className, ...props }: React$1.ComponentProps<typeof ContextMenu$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
230
|
-
declare function
|
|
231
|
-
|
|
249
|
+
declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React$1.ComponentProps<typeof ContextMenu$1.CheckboxItem> & {
|
|
250
|
+
inset?: boolean;
|
|
251
|
+
}): react_jsx_runtime.JSX.Element;
|
|
252
|
+
declare function ContextMenuRadioItem({ className, children, inset, ...props }: React$1.ComponentProps<typeof ContextMenu$1.RadioItem> & {
|
|
232
253
|
inset?: boolean;
|
|
233
|
-
variant?: "default" | "destructive";
|
|
234
254
|
}): react_jsx_runtime.JSX.Element;
|
|
235
|
-
declare function ContextMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof ContextMenu$1.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
236
|
-
declare function ContextMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof ContextMenu$1.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
237
255
|
declare function ContextMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof ContextMenu$1.Label> & {
|
|
238
256
|
inset?: boolean;
|
|
239
257
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -259,15 +277,19 @@ declare function DrawerDescription({ className, ...props }: React$1.ComponentPro
|
|
|
259
277
|
declare function DropdownMenu({ ...props }: React$1.ComponentProps<typeof DropdownMenu$1.Root>): react_jsx_runtime.JSX.Element;
|
|
260
278
|
declare function DropdownMenuPortal({ ...props }: React$1.ComponentProps<typeof DropdownMenu$1.Portal>): react_jsx_runtime.JSX.Element;
|
|
261
279
|
declare function DropdownMenuTrigger({ ...props }: React$1.ComponentProps<typeof DropdownMenu$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
262
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
280
|
+
declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof DropdownMenu$1.Content>): react_jsx_runtime.JSX.Element;
|
|
263
281
|
declare function DropdownMenuGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenu$1.Group>): react_jsx_runtime.JSX.Element;
|
|
264
282
|
declare function DropdownMenuItem({ className, inset, variant, ...props }: React$1.ComponentProps<typeof DropdownMenu$1.Item> & {
|
|
265
283
|
inset?: boolean;
|
|
266
284
|
variant?: "default" | "destructive";
|
|
267
285
|
}): react_jsx_runtime.JSX.Element;
|
|
268
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof DropdownMenu$1.CheckboxItem>
|
|
286
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React$1.ComponentProps<typeof DropdownMenu$1.CheckboxItem> & {
|
|
287
|
+
inset?: boolean;
|
|
288
|
+
}): react_jsx_runtime.JSX.Element;
|
|
269
289
|
declare function DropdownMenuRadioGroup({ ...props }: React$1.ComponentProps<typeof DropdownMenu$1.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
270
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: React$1.ComponentProps<typeof DropdownMenu$1.RadioItem>
|
|
290
|
+
declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React$1.ComponentProps<typeof DropdownMenu$1.RadioItem> & {
|
|
291
|
+
inset?: boolean;
|
|
292
|
+
}): react_jsx_runtime.JSX.Element;
|
|
271
293
|
declare function DropdownMenuLabel({ className, inset, ...props }: React$1.ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
272
294
|
inset?: boolean;
|
|
273
295
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -313,26 +335,6 @@ declare function FieldError({ className, children, errors, ...props }: React.Com
|
|
|
313
335
|
} | undefined>;
|
|
314
336
|
}): react_jsx_runtime.JSX.Element | null;
|
|
315
337
|
|
|
316
|
-
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues = TFieldValues>(props: react_hook_form.FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React$1.JSX.Element;
|
|
317
|
-
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => react_jsx_runtime.JSX.Element;
|
|
318
|
-
declare const useFormField: () => {
|
|
319
|
-
invalid: boolean;
|
|
320
|
-
isDirty: boolean;
|
|
321
|
-
isTouched: boolean;
|
|
322
|
-
isValidating: boolean;
|
|
323
|
-
error?: react_hook_form.FieldError;
|
|
324
|
-
id: string;
|
|
325
|
-
name: string;
|
|
326
|
-
formItemId: string;
|
|
327
|
-
formDescriptionId: string;
|
|
328
|
-
formMessageId: string;
|
|
329
|
-
};
|
|
330
|
-
declare function FormItem({ className, ...props }: React$1.ComponentProps<"div">): react_jsx_runtime.JSX.Element;
|
|
331
|
-
declare function FormLabel({ className, ...props }: React$1.ComponentProps<typeof Label$1.Root>): react_jsx_runtime.JSX.Element;
|
|
332
|
-
declare function FormControl({ ...props }: React$1.ComponentProps<typeof Slot.Root>): react_jsx_runtime.JSX.Element;
|
|
333
|
-
declare function FormDescription({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element;
|
|
334
|
-
declare function FormMessage({ className, ...props }: React$1.ComponentProps<"p">): react_jsx_runtime.JSX.Element | null;
|
|
335
|
-
|
|
336
338
|
declare function HoverCard({ ...props }: React$1.ComponentProps<typeof HoverCard$1.Root>): react_jsx_runtime.JSX.Element;
|
|
337
339
|
declare function HoverCardTrigger({ ...props }: React$1.ComponentProps<typeof HoverCard$1.Trigger>): react_jsx_runtime.JSX.Element;
|
|
338
340
|
declare function HoverCardContent({ className, align, sideOffset, ...props }: React$1.ComponentProps<typeof HoverCard$1.Content>): react_jsx_runtime.JSX.Element;
|
|
@@ -365,7 +367,7 @@ declare function ItemGroup({ className, ...props }: React$1.ComponentProps<"div"
|
|
|
365
367
|
declare function ItemSeparator({ className, ...props }: React$1.ComponentProps<typeof Separator>): react_jsx_runtime.JSX.Element;
|
|
366
368
|
declare const itemVariants: (props?: ({
|
|
367
369
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
368
|
-
size?: "default" | "sm" | null | undefined;
|
|
370
|
+
size?: "default" | "xs" | "sm" | null | undefined;
|
|
369
371
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
370
372
|
declare function Item({ className, variant, size, asChild, ...props }: React$1.ComponentProps<"div"> & VariantProps<typeof itemVariants> & {
|
|
371
373
|
asChild?: boolean;
|
|
@@ -395,8 +397,12 @@ declare function MenubarItem({ className, inset, variant, ...props }: React$1.Co
|
|
|
395
397
|
inset?: boolean;
|
|
396
398
|
variant?: "default" | "destructive";
|
|
397
399
|
}): react_jsx_runtime.JSX.Element;
|
|
398
|
-
declare function MenubarCheckboxItem({ className, children, checked, ...props }: React$1.ComponentProps<typeof Menubar$1.CheckboxItem>
|
|
399
|
-
|
|
400
|
+
declare function MenubarCheckboxItem({ className, children, checked, inset, ...props }: React$1.ComponentProps<typeof Menubar$1.CheckboxItem> & {
|
|
401
|
+
inset?: boolean;
|
|
402
|
+
}): react_jsx_runtime.JSX.Element;
|
|
403
|
+
declare function MenubarRadioItem({ className, children, inset, ...props }: React$1.ComponentProps<typeof Menubar$1.RadioItem> & {
|
|
404
|
+
inset?: boolean;
|
|
405
|
+
}): react_jsx_runtime.JSX.Element;
|
|
400
406
|
declare function MenubarLabel({ className, inset, ...props }: React$1.ComponentProps<typeof Menubar$1.Label> & {
|
|
401
407
|
inset?: boolean;
|
|
402
408
|
}): react_jsx_runtime.JSX.Element;
|
|
@@ -408,9 +414,10 @@ declare function MenubarSubTrigger({ className, inset, children, ...props }: Rea
|
|
|
408
414
|
}): react_jsx_runtime.JSX.Element;
|
|
409
415
|
declare function MenubarSubContent({ className, ...props }: React$1.ComponentProps<typeof Menubar$1.SubContent>): react_jsx_runtime.JSX.Element;
|
|
410
416
|
|
|
411
|
-
|
|
417
|
+
type NativeSelectProps = Omit<React$1.ComponentProps<"select">, "size"> & {
|
|
412
418
|
size?: "sm" | "default";
|
|
413
|
-
}
|
|
419
|
+
};
|
|
420
|
+
declare function NativeSelect({ className, size, ...props }: NativeSelectProps): react_jsx_runtime.JSX.Element;
|
|
414
421
|
declare function NativeSelectOption({ ...props }: React$1.ComponentProps<"option">): react_jsx_runtime.JSX.Element;
|
|
415
422
|
declare function NativeSelectOptGroup({ className, ...props }: React$1.ComponentProps<"optgroup">): react_jsx_runtime.JSX.Element;
|
|
416
423
|
|
|
@@ -433,8 +440,12 @@ type PaginationLinkProps = {
|
|
|
433
440
|
isActive?: boolean;
|
|
434
441
|
} & Pick<React$1.ComponentProps<typeof Button>, "size"> & React$1.ComponentProps<"a">;
|
|
435
442
|
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
436
|
-
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>
|
|
437
|
-
|
|
443
|
+
declare function PaginationPrevious({ className, text, ...props }: React$1.ComponentProps<typeof PaginationLink> & {
|
|
444
|
+
text?: string;
|
|
445
|
+
}): react_jsx_runtime.JSX.Element;
|
|
446
|
+
declare function PaginationNext({ className, text, ...props }: React$1.ComponentProps<typeof PaginationLink> & {
|
|
447
|
+
text?: string;
|
|
448
|
+
}): react_jsx_runtime.JSX.Element;
|
|
438
449
|
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
439
450
|
|
|
440
451
|
declare function Popover({ ...props }: React$1.ComponentProps<typeof Popover$1.Root>): react_jsx_runtime.JSX.Element;
|
|
@@ -460,7 +471,7 @@ declare function ScrollArea({ className, children, ...props }: React$1.Component
|
|
|
460
471
|
declare function ScrollBar({ className, orientation, ...props }: React$1.ComponentProps<typeof ScrollArea$1.ScrollAreaScrollbar>): react_jsx_runtime.JSX.Element;
|
|
461
472
|
|
|
462
473
|
declare function Select({ ...props }: React$1.ComponentProps<typeof Select$1.Root>): react_jsx_runtime.JSX.Element;
|
|
463
|
-
declare function SelectGroup({ ...props }: React$1.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
|
|
474
|
+
declare function SelectGroup({ className, ...props }: React$1.ComponentProps<typeof Select$1.Group>): react_jsx_runtime.JSX.Element;
|
|
464
475
|
declare function SelectValue({ ...props }: React$1.ComponentProps<typeof Select$1.Value>): react_jsx_runtime.JSX.Element;
|
|
465
476
|
declare function SelectTrigger({ className, size, children, ...props }: React$1.ComponentProps<typeof Select$1.Trigger> & {
|
|
466
477
|
size?: "sm" | "default";
|
|
@@ -504,7 +515,7 @@ declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: se
|
|
|
504
515
|
open?: boolean;
|
|
505
516
|
onOpenChange?: (open: boolean) => void;
|
|
506
517
|
}): react_jsx_runtime.JSX.Element;
|
|
507
|
-
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
518
|
+
declare function Sidebar({ side, variant, collapsible, className, children, dir, ...props }: React$1.ComponentProps<"div"> & {
|
|
508
519
|
side?: "left" | "right";
|
|
509
520
|
variant?: "sidebar" | "floating" | "inset";
|
|
510
521
|
collapsible?: "offcanvas" | "icon" | "none";
|
|
@@ -589,9 +600,10 @@ declare const toggleVariants: (props?: ({
|
|
|
589
600
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
590
601
|
declare function Toggle({ className, variant, size, ...props }: React$1.ComponentProps<typeof Toggle$1.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
591
602
|
|
|
592
|
-
declare function ToggleGroup({ className, variant, size, spacing, children, ...props }: React$1.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants> & {
|
|
603
|
+
declare function ToggleGroup({ className, variant, size, spacing, orientation, children, ...props }: React$1.ComponentProps<typeof ToggleGroup$1.Root> & VariantProps<typeof toggleVariants> & {
|
|
593
604
|
spacing?: number;
|
|
605
|
+
orientation?: "horizontal" | "vertical";
|
|
594
606
|
}): react_jsx_runtime.JSX.Element;
|
|
595
607
|
declare function ToggleGroupItem({ className, children, variant, size, ...props }: React$1.ComponentProps<typeof ToggleGroup$1.Item> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
596
608
|
|
|
597
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle,
|
|
609
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AspectRatio, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, type ChartConfig, ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent, Checkbox, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DirectionProvider, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Kbd, KbdGroup, Label, Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, NativeSelect, NativeSelectOptGroup, NativeSelectOption, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, RadioGroup, RadioGroupItem, ResizableHandle, ResizablePanel, ResizablePanelGroup, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonGroupVariants, buttonVariants, navigationMenuTriggerStyle, tabsListVariants, toggleVariants, useCarousel, useComboboxAnchor, useDirection, useSidebar };
|