@pixpilot/shadcn 0.10.1 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/OrContinueWithSeparator.d.ts +2 -2
- package/dist/components/ui/alert-dialog.d.ts +12 -12
- package/dist/components/ui/alert-dialog.js +0 -2
- package/dist/components/ui/alert.d.ts +4 -4
- package/dist/components/ui/alert.js +0 -1
- package/dist/components/ui/avatar.d.ts +4 -4
- package/dist/components/ui/avatar.js +0 -1
- package/dist/components/ui/badge.d.ts +2 -2
- package/dist/components/ui/badge.js +0 -1
- package/dist/components/ui/button-group.d.ts +4 -4
- package/dist/components/ui/button-group.js +0 -1
- package/dist/components/ui/button.d.ts +2 -2
- package/dist/components/ui/button.js +0 -1
- package/dist/components/ui/calendar.d.ts +3 -3
- package/dist/components/ui/calendar.js +0 -1
- package/dist/components/ui/card.d.ts +8 -8
- package/dist/components/ui/card.js +0 -1
- package/dist/components/ui/checkbox.d.ts +2 -2
- package/dist/components/ui/checkbox.js +0 -1
- package/dist/components/ui/color-picker.d.ts +11 -11
- package/dist/components/ui/color-picker.js +0 -1
- package/dist/components/ui/command.d.ts +10 -10
- package/dist/components/ui/command.js +0 -1
- package/dist/components/ui/dialog.d.ts +11 -11
- package/dist/components/ui/dialog.js +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +16 -16
- package/dist/components/ui/dropdown-menu.js +0 -1
- package/dist/components/ui/file-upload.d.ts +11 -11
- package/dist/components/ui/file-upload.js +0 -1
- package/dist/components/ui/form.d.ts +45 -0
- package/dist/components/ui/form.js +88 -0
- package/dist/components/ui/input-group.d.ts +7 -7
- package/dist/components/ui/input-group.js +0 -1
- package/dist/components/ui/input.d.ts +2 -2
- package/dist/components/ui/input.js +0 -1
- package/dist/components/ui/label.d.ts +2 -2
- package/dist/components/ui/label.js +0 -1
- package/dist/components/ui/pagination.d.ts +8 -8
- package/dist/components/ui/pagination.js +0 -2
- package/dist/components/ui/popover.d.ts +5 -5
- package/dist/components/ui/popover.js +0 -1
- package/dist/components/ui/radio-group.d.ts +3 -3
- package/dist/components/ui/radio-group.js +0 -1
- package/dist/components/ui/select.d.ts +11 -11
- package/dist/components/ui/select.js +0 -1
- package/dist/components/ui/separator.d.ts +2 -2
- package/dist/components/ui/separator.js +0 -1
- package/dist/components/ui/shadcn-io/tags/index.d.ts +9 -9
- package/dist/components/ui/shadcn-io/tags/index.js +0 -1
- package/dist/components/ui/shadcn-io/tags-input-inline/index.d.ts +7 -7
- package/dist/components/ui/sheet.d.ts +9 -9
- package/dist/components/ui/sheet.js +0 -1
- package/dist/components/ui/slider.d.ts +2 -2
- package/dist/components/ui/slider.js +0 -1
- package/dist/components/ui/switch.d.ts +2 -2
- package/dist/components/ui/switch.js +0 -1
- package/dist/components/ui/tabs.d.ts +5 -5
- package/dist/components/ui/tabs.js +0 -1
- package/dist/components/ui/textarea.d.ts +2 -2
- package/dist/components/ui/textarea.js +0 -1
- package/dist/components/ui/toggle-group.d.ts +3 -3
- package/dist/components/ui/toggle-group.js +0 -1
- package/dist/components/ui/toggle.d.ts +2 -2
- package/dist/components/ui/toggle.js +0 -1
- package/dist/components/ui/tooltip.d.ts +5 -5
- package/dist/components/ui/tooltip.js +0 -1
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +3 -0
- package/dist/index.js +0 -2
- package/package.json +6 -1
- package/dist/_virtual/rolldown_runtime.cjs +0 -25
- package/dist/components/index.cjs +0 -34
- package/dist/components/index.d.cts +0 -34
- package/dist/components/index.js +0 -34
- package/dist/components/ui/OrContinueWithSeparator.cjs +0 -30
- package/dist/components/ui/OrContinueWithSeparator.d.cts +0 -11
- package/dist/components/ui/alert-dialog.cjs +0 -101
- package/dist/components/ui/alert-dialog.d.cts +0 -48
- package/dist/components/ui/alert.cjs +0 -45
- package/dist/components/ui/alert.d.cts +0 -24
- package/dist/components/ui/avatar.cjs +0 -37
- package/dist/components/ui/avatar.d.cts +0 -19
- package/dist/components/ui/badge.cjs +0 -33
- package/dist/components/ui/badge.d.cts +0 -19
- package/dist/components/ui/button-group.cjs +0 -48
- package/dist/components/ui/button-group.d.cts +0 -28
- package/dist/components/ui/button.cjs +0 -56
- package/dist/components/ui/button.d.cts +0 -21
- package/dist/components/ui/calendar.cjs +0 -113
- package/dist/components/ui/calendar.d.cts +0 -26
- package/dist/components/ui/card.cjs +0 -67
- package/dist/components/ui/card.d.cts +0 -34
- package/dist/components/ui/checkbox.cjs +0 -31
- package/dist/components/ui/checkbox.d.cts +0 -11
- package/dist/components/ui/color-picker.cjs +0 -1171
- package/dist/components/ui/color-picker.d.cts +0 -94
- package/dist/components/ui/command.cjs +0 -104
- package/dist/components/ui/command.d.cts +0 -52
- package/dist/components/ui/dialog.cjs +0 -102
- package/dist/components/ui/dialog.d.cts +0 -47
- package/dist/components/ui/dropdown-menu.cjs +0 -144
- package/dist/components/ui/dropdown-menu.d.cts +0 -77
- package/dist/components/ui/file-upload.cjs +0 -926
- package/dist/components/ui/file-upload.d.cts +0 -95
- package/dist/components/ui/index.cjs +0 -33
- package/dist/components/ui/index.d.cts +0 -33
- package/dist/components/ui/index.js +0 -33
- package/dist/components/ui/input-group.cjs +0 -90
- package/dist/components/ui/input-group.d.cts +0 -43
- package/dist/components/ui/input.cjs +0 -20
- package/dist/components/ui/input.d.cts +0 -12
- package/dist/components/ui/label.cjs +0 -21
- package/dist/components/ui/label.d.cts +0 -11
- package/dist/components/ui/pagination.cjs +0 -92
- package/dist/components/ui/pagination.d.cts +0 -40
- package/dist/components/ui/popover.cjs +0 -44
- package/dist/components/ui/popover.d.cts +0 -22
- package/dist/components/ui/radio-group.cjs +0 -36
- package/dist/components/ui/radio-group.d.cts +0 -15
- package/dist/components/ui/select.cjs +0 -116
- package/dist/components/ui/select.d.cts +0 -52
- package/dist/components/ui/separator.cjs +0 -23
- package/dist/components/ui/separator.d.cts +0 -13
- package/dist/components/ui/shadcn-io/tags/index.cjs +0 -146
- package/dist/components/ui/shadcn-io/tags/index.d.cts +0 -70
- package/dist/components/ui/shadcn-io/tags-input-inline/index.cjs +0 -66
- package/dist/components/ui/shadcn-io/tags-input-inline/index.d.cts +0 -31
- package/dist/components/ui/sheet.cjs +0 -96
- package/dist/components/ui/sheet.d.cts +0 -40
- package/dist/components/ui/slider.cjs +0 -42
- package/dist/components/ui/slider.d.cts +0 -15
- package/dist/components/ui/switch.cjs +0 -28
- package/dist/components/ui/switch.d.cts +0 -11
- package/dist/components/ui/tabs.cjs +0 -65
- package/dist/components/ui/tabs.d.cts +0 -33
- package/dist/components/ui/textarea.cjs +0 -19
- package/dist/components/ui/textarea.d.cts +0 -10
- package/dist/components/ui/toggle-group.cjs +0 -59
- package/dist/components/ui/toggle-group.d.cts +0 -30
- package/dist/components/ui/toggle.cjs +0 -45
- package/dist/components/ui/toggle.d.cts +0 -19
- package/dist/components/ui/tooltip.cjs +0 -45
- package/dist/components/ui/tooltip.d.cts +0 -23
- package/dist/components/visually-hidden-input.cjs +0 -116
- package/dist/hooks/use-as-ref.cjs +0 -16
- package/dist/hooks/use-isomorphic-layout-effect.cjs +0 -9
- package/dist/hooks/use-lazy-ref.cjs +0 -13
- package/dist/index.cjs +0 -211
- package/dist/index.d.cts +0 -37
- package/dist/lib/compose-refs.cjs +0 -44
- package/dist/lib/index.cjs +0 -1
- package/dist/lib/index.d.cts +0 -1
- package/dist/lib/index.js +0 -1
- package/dist/lib/utils.cjs +0 -13
- package/dist/lib/utils.d.cts +0 -6
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime79 from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/ui/file-upload.d.ts
|
|
5
|
-
type Direction = 'ltr' | 'rtl';
|
|
6
|
-
interface FileState {
|
|
7
|
-
file: File;
|
|
8
|
-
progress: number;
|
|
9
|
-
error?: string;
|
|
10
|
-
status: 'idle' | 'uploading' | 'error' | 'success';
|
|
11
|
-
}
|
|
12
|
-
interface StoreState {
|
|
13
|
-
files: Map<File, FileState>;
|
|
14
|
-
dragOver: boolean;
|
|
15
|
-
invalid: boolean;
|
|
16
|
-
}
|
|
17
|
-
declare function useStore<T>(selector: (state: StoreState) => T): T;
|
|
18
|
-
interface FileUploadRootProps extends Omit<React.ComponentProps<'div'>, 'defaultValue' | 'onChange'> {
|
|
19
|
-
value?: File[];
|
|
20
|
-
defaultValue?: File[];
|
|
21
|
-
onValueChange?: (files: File[]) => void;
|
|
22
|
-
onAccept?: (files: File[]) => void;
|
|
23
|
-
onFileAccept?: (file: File) => void;
|
|
24
|
-
onFileReject?: (file: File, message: string) => void;
|
|
25
|
-
onFilesReject?: (files: Array<{
|
|
26
|
-
file: File;
|
|
27
|
-
message: string;
|
|
28
|
-
}>) => void;
|
|
29
|
-
onFileValidate?: (file: File) => string | null | undefined;
|
|
30
|
-
onUpload?: (files: File[], options: {
|
|
31
|
-
onProgress: (file: File, progress: number) => void;
|
|
32
|
-
onSuccess: (file: File) => void;
|
|
33
|
-
onError: (file: File, error: Error) => void;
|
|
34
|
-
}) => Promise<void> | void;
|
|
35
|
-
accept?: string;
|
|
36
|
-
maxFiles?: number;
|
|
37
|
-
maxSize?: number;
|
|
38
|
-
dir?: Direction;
|
|
39
|
-
label?: string;
|
|
40
|
-
name?: string;
|
|
41
|
-
asChild?: boolean;
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
invalid?: boolean;
|
|
44
|
-
multiple?: boolean;
|
|
45
|
-
required?: boolean;
|
|
46
|
-
}
|
|
47
|
-
declare function FileUploadRoot(props: FileUploadRootProps): react_jsx_runtime79.JSX.Element;
|
|
48
|
-
interface FileUploadDropzoneProps extends React.ComponentProps<'div'> {
|
|
49
|
-
asChild?: boolean;
|
|
50
|
-
}
|
|
51
|
-
declare function FileUploadDropzone(props: FileUploadDropzoneProps): react_jsx_runtime79.JSX.Element;
|
|
52
|
-
interface FileUploadTriggerProps extends React.ComponentProps<'button'> {
|
|
53
|
-
asChild?: boolean;
|
|
54
|
-
}
|
|
55
|
-
declare function FileUploadTrigger(props: FileUploadTriggerProps): react_jsx_runtime79.JSX.Element;
|
|
56
|
-
interface FileUploadListProps extends React.ComponentProps<'div'> {
|
|
57
|
-
orientation?: 'horizontal' | 'vertical';
|
|
58
|
-
asChild?: boolean;
|
|
59
|
-
forceMount?: boolean;
|
|
60
|
-
}
|
|
61
|
-
declare function FileUploadList(props: FileUploadListProps): react_jsx_runtime79.JSX.Element | null;
|
|
62
|
-
interface FileUploadItemProps extends React.ComponentProps<'div'> {
|
|
63
|
-
value: File;
|
|
64
|
-
asChild?: boolean;
|
|
65
|
-
}
|
|
66
|
-
declare function FileUploadItem(props: FileUploadItemProps): react_jsx_runtime79.JSX.Element | null;
|
|
67
|
-
interface FileUploadItemPreviewProps extends React.ComponentProps<'div'> {
|
|
68
|
-
render?: (file: File, fallback: () => React.ReactNode) => React.ReactNode;
|
|
69
|
-
asChild?: boolean;
|
|
70
|
-
}
|
|
71
|
-
declare function FileUploadItemPreview(props: FileUploadItemPreviewProps): react_jsx_runtime79.JSX.Element | null;
|
|
72
|
-
interface FileUploadItemMetadataProps extends React.ComponentProps<'div'> {
|
|
73
|
-
asChild?: boolean;
|
|
74
|
-
size?: 'default' | 'sm';
|
|
75
|
-
}
|
|
76
|
-
declare function FileUploadItemMetadata(props: FileUploadItemMetadataProps): react_jsx_runtime79.JSX.Element | null;
|
|
77
|
-
interface FileUploadItemProgressProps extends React.ComponentProps<'div'> {
|
|
78
|
-
variant?: 'linear' | 'circular' | 'fill';
|
|
79
|
-
size?: number;
|
|
80
|
-
strokeWidth?: number;
|
|
81
|
-
asChild?: boolean;
|
|
82
|
-
forceMount?: boolean;
|
|
83
|
-
}
|
|
84
|
-
declare function FileUploadItemProgress(props: FileUploadItemProgressProps): react_jsx_runtime79.JSX.Element | null;
|
|
85
|
-
interface FileUploadItemDeleteProps extends React.ComponentProps<'button'> {
|
|
86
|
-
asChild?: boolean;
|
|
87
|
-
}
|
|
88
|
-
declare function FileUploadItemDelete(props: FileUploadItemDeleteProps): react_jsx_runtime79.JSX.Element | null;
|
|
89
|
-
interface FileUploadClearProps extends React.ComponentProps<'button'> {
|
|
90
|
-
forceMount?: boolean;
|
|
91
|
-
asChild?: boolean;
|
|
92
|
-
}
|
|
93
|
-
declare function FileUploadClear(props: FileUploadClearProps): react_jsx_runtime79.JSX.Element | null;
|
|
94
|
-
//#endregion
|
|
95
|
-
export { FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadRoot, FileUploadRootProps, FileUploadTrigger, useStore };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const require_alert = require('./alert.cjs');
|
|
2
|
-
const require_alert_dialog = require('./alert-dialog.cjs');
|
|
3
|
-
const require_avatar = require('./avatar.cjs');
|
|
4
|
-
const require_badge = require('./badge.cjs');
|
|
5
|
-
const require_button = require('./button.cjs');
|
|
6
|
-
const require_separator = require('./separator.cjs');
|
|
7
|
-
const require_button_group = require('./button-group.cjs');
|
|
8
|
-
const require_calendar = require('./calendar.cjs');
|
|
9
|
-
const require_card = require('./card.cjs');
|
|
10
|
-
const require_checkbox = require('./checkbox.cjs');
|
|
11
|
-
const require_input = require('./input.cjs');
|
|
12
|
-
const require_popover = require('./popover.cjs');
|
|
13
|
-
const require_select = require('./select.cjs');
|
|
14
|
-
const require_color_picker = require('./color-picker.cjs');
|
|
15
|
-
const require_dialog = require('./dialog.cjs');
|
|
16
|
-
const require_command = require('./command.cjs');
|
|
17
|
-
const require_dropdown_menu = require('./dropdown-menu.cjs');
|
|
18
|
-
const require_file_upload = require('./file-upload.cjs');
|
|
19
|
-
const require_textarea = require('./textarea.cjs');
|
|
20
|
-
const require_input_group = require('./input-group.cjs');
|
|
21
|
-
const require_label = require('./label.cjs');
|
|
22
|
-
const require_OrContinueWithSeparator = require('./OrContinueWithSeparator.cjs');
|
|
23
|
-
const require_pagination = require('./pagination.cjs');
|
|
24
|
-
const require_radio_group = require('./radio-group.cjs');
|
|
25
|
-
const require_index = require('./shadcn-io/tags/index.cjs');
|
|
26
|
-
const require_index$1 = require('./shadcn-io/tags-input-inline/index.cjs');
|
|
27
|
-
const require_sheet = require('./sheet.cjs');
|
|
28
|
-
const require_slider = require('./slider.cjs');
|
|
29
|
-
const require_switch = require('./switch.cjs');
|
|
30
|
-
const require_tabs = require('./tabs.cjs');
|
|
31
|
-
const require_toggle = require('./toggle.cjs');
|
|
32
|
-
const require_toggle_group = require('./toggle-group.cjs');
|
|
33
|
-
const require_tooltip = require('./tooltip.cjs');
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Alert, AlertDescription, AlertTitle } from "./alert.cjs";
|
|
2
|
-
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./alert-dialog.cjs";
|
|
3
|
-
import { Avatar, AvatarFallback, AvatarImage } from "./avatar.cjs";
|
|
4
|
-
import { Badge, badgeVariants } from "./badge.cjs";
|
|
5
|
-
import { Button, buttonVariants } from "./button.cjs";
|
|
6
|
-
import { Separator } from "./separator.cjs";
|
|
7
|
-
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "./button-group.cjs";
|
|
8
|
-
import { Calendar, CalendarDayButton } from "./calendar.cjs";
|
|
9
|
-
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./card.cjs";
|
|
10
|
-
import { Checkbox } from "./checkbox.cjs";
|
|
11
|
-
import { Input, InputProps } from "./input.cjs";
|
|
12
|
-
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./popover.cjs";
|
|
13
|
-
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./select.cjs";
|
|
14
|
-
import { ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, ColorPickerProps, ColorPickerSwatch, ColorPickerTrigger, colorUtils, useStore } from "./color-picker.cjs";
|
|
15
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./dialog.cjs";
|
|
16
|
-
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./command.cjs";
|
|
17
|
-
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./dropdown-menu.cjs";
|
|
18
|
-
import { FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadRoot, FileUploadRootProps, FileUploadTrigger, useStore as useStore$1 } from "./file-upload.cjs";
|
|
19
|
-
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./input-group.cjs";
|
|
20
|
-
import { Label } from "./label.cjs";
|
|
21
|
-
import { OrContinueWithSeparator } from "./OrContinueWithSeparator.cjs";
|
|
22
|
-
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./pagination.cjs";
|
|
23
|
-
import { RadioGroup, RadioGroupItem } from "./radio-group.cjs";
|
|
24
|
-
import { Tags, TagsContent, TagsContentProps, TagsEmpty, TagsEmptyProps, TagsGroup, TagsGroupProps, TagsInput, TagsInputProps, TagsItem, TagsItemProps, TagsList, TagsListProps, TagsProps, TagsTrigger, TagsTriggerProps, TagsValue, TagsValueProps } from "./shadcn-io/tags/index.cjs";
|
|
25
|
-
import { TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot } from "./shadcn-io/tags-input-inline/index.cjs";
|
|
26
|
-
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./sheet.cjs";
|
|
27
|
-
import { Slider } from "./slider.cjs";
|
|
28
|
-
import { Switch } from "./switch.cjs";
|
|
29
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs.cjs";
|
|
30
|
-
import { Textarea } from "./textarea.cjs";
|
|
31
|
-
import { Toggle, toggleVariants } from "./toggle.cjs";
|
|
32
|
-
import { ToggleGroup, ToggleGroupItem, ToggleGroupItemProps, ToggleGroupProps } from "./toggle-group.cjs";
|
|
33
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.cjs";
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Alert, AlertDescription, AlertTitle } from "./alert.js";
|
|
2
|
-
import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger } from "./alert-dialog.js";
|
|
3
|
-
import { Avatar, AvatarFallback, AvatarImage } from "./avatar.js";
|
|
4
|
-
import { Badge, badgeVariants } from "./badge.js";
|
|
5
|
-
import { Button, buttonVariants } from "./button.js";
|
|
6
|
-
import { Separator } from "./separator.js";
|
|
7
|
-
import { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from "./button-group.js";
|
|
8
|
-
import { Calendar, CalendarDayButton } from "./calendar.js";
|
|
9
|
-
import { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./card.js";
|
|
10
|
-
import { Checkbox } from "./checkbox.js";
|
|
11
|
-
import { Input } from "./input.js";
|
|
12
|
-
import { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from "./popover.js";
|
|
13
|
-
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue } from "./select.js";
|
|
14
|
-
import { ColorPicker, ColorPickerAlphaSlider, ColorPickerArea, ColorPickerContent, ColorPickerEyeDropper, ColorPickerFormatSelect, ColorPickerHueSlider, ColorPickerInput, ColorPickerSwatch, ColorPickerTrigger, colorUtils, useStore } from "./color-picker.js";
|
|
15
|
-
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger } from "./dialog.js";
|
|
16
|
-
import { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "./command.js";
|
|
17
|
-
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "./dropdown-menu.js";
|
|
18
|
-
import { FileUploadClear, FileUploadDropzone, FileUploadItem, FileUploadItemDelete, FileUploadItemMetadata, FileUploadItemPreview, FileUploadItemProgress, FileUploadList, FileUploadRoot, FileUploadTrigger, useStore as useStore$1 } from "./file-upload.js";
|
|
19
|
-
import { Textarea } from "./textarea.js";
|
|
20
|
-
import { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea } from "./input-group.js";
|
|
21
|
-
import { Label } from "./label.js";
|
|
22
|
-
import { OrContinueWithSeparator } from "./OrContinueWithSeparator.js";
|
|
23
|
-
import { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "./pagination.js";
|
|
24
|
-
import { RadioGroup, RadioGroupItem } from "./radio-group.js";
|
|
25
|
-
import { Tags, TagsContent, TagsEmpty, TagsGroup, TagsInput, TagsItem, TagsList, TagsTrigger, TagsValue } from "./shadcn-io/tags/index.js";
|
|
26
|
-
import { TagsInputInLineClear, TagsInputInLineInput, TagsInputInLineItem, TagsInputInLineLabel, TagsInputInLineList, TagsInputInLineRoot } from "./shadcn-io/tags-input-inline/index.js";
|
|
27
|
-
import { Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger } from "./sheet.js";
|
|
28
|
-
import { Slider } from "./slider.js";
|
|
29
|
-
import { Switch } from "./switch.js";
|
|
30
|
-
import { Tabs, TabsContent, TabsList, TabsTrigger } from "./tabs.js";
|
|
31
|
-
import { Toggle, toggleVariants } from "./toggle.js";
|
|
32
|
-
import { ToggleGroup, ToggleGroupItem } from "./toggle-group.js";
|
|
33
|
-
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "./tooltip.js";
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_utils = require('../../lib/utils.cjs');
|
|
3
|
-
require('../../lib/index.cjs');
|
|
4
|
-
const require_button = require('./button.cjs');
|
|
5
|
-
const require_input = require('./input.cjs');
|
|
6
|
-
const require_textarea = require('./textarea.cjs');
|
|
7
|
-
let class_variance_authority = require("class-variance-authority");
|
|
8
|
-
class_variance_authority = require_rolldown_runtime.__toESM(class_variance_authority);
|
|
9
|
-
let react = require("react");
|
|
10
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
11
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
12
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
13
|
-
|
|
14
|
-
//#region src/components/ui/input-group.tsx
|
|
15
|
-
function InputGroup({ className,...props }) {
|
|
16
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
17
|
-
"data-slot": "input-group",
|
|
18
|
-
role: "group",
|
|
19
|
-
className: require_utils.cn("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none", "h-9 min-w-0 has-[>textarea]:h-auto", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]", "has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40", className),
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
const inputGroupAddonVariants = (0, class_variance_authority.cva)("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50", {
|
|
24
|
-
variants: { align: {
|
|
25
|
-
"inline-start": "order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]",
|
|
26
|
-
"inline-end": "order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]",
|
|
27
|
-
"block-start": "order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5",
|
|
28
|
-
"block-end": "order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"
|
|
29
|
-
} },
|
|
30
|
-
defaultVariants: { align: "inline-start" }
|
|
31
|
-
});
|
|
32
|
-
function InputGroupAddon({ className, align = "inline-start",...props }) {
|
|
33
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
34
|
-
role: "group",
|
|
35
|
-
"data-slot": "input-group-addon",
|
|
36
|
-
"data-align": align,
|
|
37
|
-
className: require_utils.cn(inputGroupAddonVariants({ align }), className),
|
|
38
|
-
onClick: (e) => {
|
|
39
|
-
if (e.target.closest("button")) return;
|
|
40
|
-
e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
41
|
-
},
|
|
42
|
-
...props
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
const inputGroupButtonVariants = (0, class_variance_authority.cva)("text-sm shadow-none flex gap-2 items-center", {
|
|
46
|
-
variants: { size: {
|
|
47
|
-
xs: "h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",
|
|
48
|
-
sm: "h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5",
|
|
49
|
-
"icon-xs": "size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0",
|
|
50
|
-
"icon-sm": "size-8 p-0 has-[>svg]:p-0"
|
|
51
|
-
} },
|
|
52
|
-
defaultVariants: { size: "xs" }
|
|
53
|
-
});
|
|
54
|
-
function InputGroupButton({ className, type = "button", variant = "ghost", size = "xs",...props }) {
|
|
55
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_button.Button, {
|
|
56
|
-
type,
|
|
57
|
-
"data-size": size,
|
|
58
|
-
variant,
|
|
59
|
-
className: require_utils.cn(inputGroupButtonVariants({ size }), className),
|
|
60
|
-
...props
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function InputGroupText({ className,...props }) {
|
|
64
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
65
|
-
className: require_utils.cn("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className),
|
|
66
|
-
...props
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
function InputGroupInput({ className,...props }) {
|
|
70
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_input.Input, {
|
|
71
|
-
"data-slot": "input-group-control",
|
|
72
|
-
className: require_utils.cn("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent", className),
|
|
73
|
-
...props
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
function InputGroupTextarea({ className,...props }) {
|
|
77
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_textarea.Textarea, {
|
|
78
|
-
"data-slot": "input-group-control",
|
|
79
|
-
className: require_utils.cn("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent", className),
|
|
80
|
-
...props
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
//#endregion
|
|
85
|
-
exports.InputGroup = InputGroup;
|
|
86
|
-
exports.InputGroupAddon = InputGroupAddon;
|
|
87
|
-
exports.InputGroupButton = InputGroupButton;
|
|
88
|
-
exports.InputGroupInput = InputGroupInput;
|
|
89
|
-
exports.InputGroupText = InputGroupText;
|
|
90
|
-
exports.InputGroupTextarea = InputGroupTextarea;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Button } from "./button.cjs";
|
|
2
|
-
import * as class_variance_authority_types3 from "class-variance-authority/types";
|
|
3
|
-
import * as react_jsx_runtime90 from "react/jsx-runtime";
|
|
4
|
-
import { VariantProps } from "class-variance-authority";
|
|
5
|
-
import * as React from "react";
|
|
6
|
-
|
|
7
|
-
//#region src/components/ui/input-group.d.ts
|
|
8
|
-
declare function InputGroup({
|
|
9
|
-
className,
|
|
10
|
-
...props
|
|
11
|
-
}: React.ComponentProps<'div'>): react_jsx_runtime90.JSX.Element;
|
|
12
|
-
declare const inputGroupAddonVariants: (props?: ({
|
|
13
|
-
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
14
|
-
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
15
|
-
declare function InputGroupAddon({
|
|
16
|
-
className,
|
|
17
|
-
align,
|
|
18
|
-
...props
|
|
19
|
-
}: React.ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>): react_jsx_runtime90.JSX.Element;
|
|
20
|
-
declare const inputGroupButtonVariants: (props?: ({
|
|
21
|
-
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
22
|
-
} & class_variance_authority_types3.ClassProp) | undefined) => string;
|
|
23
|
-
declare function InputGroupButton({
|
|
24
|
-
className,
|
|
25
|
-
type,
|
|
26
|
-
variant,
|
|
27
|
-
size,
|
|
28
|
-
...props
|
|
29
|
-
}: Omit<React.ComponentProps<typeof Button>, 'size'> & VariantProps<typeof inputGroupButtonVariants>): react_jsx_runtime90.JSX.Element;
|
|
30
|
-
declare function InputGroupText({
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}: React.ComponentProps<'span'>): react_jsx_runtime90.JSX.Element;
|
|
34
|
-
declare function InputGroupInput({
|
|
35
|
-
className,
|
|
36
|
-
...props
|
|
37
|
-
}: React.ComponentProps<'input'>): react_jsx_runtime90.JSX.Element;
|
|
38
|
-
declare function InputGroupTextarea({
|
|
39
|
-
className,
|
|
40
|
-
...props
|
|
41
|
-
}: React.ComponentProps<'textarea'>): react_jsx_runtime90.JSX.Element;
|
|
42
|
-
//#endregion
|
|
43
|
-
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_utils = require('../../lib/utils.cjs');
|
|
3
|
-
require('../../lib/index.cjs');
|
|
4
|
-
let react = require("react");
|
|
5
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
8
|
-
|
|
9
|
-
//#region src/components/ui/input.tsx
|
|
10
|
-
function Input({ className, type,...props }) {
|
|
11
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
12
|
-
type,
|
|
13
|
-
"data-slot": "input",
|
|
14
|
-
className: require_utils.cn("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", className),
|
|
15
|
-
...props
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
exports.Input = Input;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime89 from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
//#region src/components/ui/input.d.ts
|
|
5
|
-
type InputProps = React.ComponentProps<'input'>;
|
|
6
|
-
declare function Input({
|
|
7
|
-
className,
|
|
8
|
-
type,
|
|
9
|
-
...props
|
|
10
|
-
}: InputProps): react_jsx_runtime89.JSX.Element;
|
|
11
|
-
//#endregion
|
|
12
|
-
export { Input, InputProps };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_utils = require('../../lib/utils.cjs');
|
|
3
|
-
require('../../lib/index.cjs');
|
|
4
|
-
let react = require("react");
|
|
5
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
8
|
-
let __radix_ui_react_label = require("@radix-ui/react-label");
|
|
9
|
-
__radix_ui_react_label = require_rolldown_runtime.__toESM(__radix_ui_react_label);
|
|
10
|
-
|
|
11
|
-
//#region src/components/ui/label.tsx
|
|
12
|
-
function Label({ className,...props }) {
|
|
13
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_label.Root, {
|
|
14
|
-
"data-slot": "label",
|
|
15
|
-
className: require_utils.cn("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", className),
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
//#endregion
|
|
21
|
-
exports.Label = Label;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime96 from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
4
|
-
|
|
5
|
-
//#region src/components/ui/label.d.ts
|
|
6
|
-
declare function Label({
|
|
7
|
-
className,
|
|
8
|
-
...props
|
|
9
|
-
}: React.ComponentProps<typeof LabelPrimitive.Root>): react_jsx_runtime96.JSX.Element;
|
|
10
|
-
//#endregion
|
|
11
|
-
export { Label };
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_utils = require('../../lib/utils.cjs');
|
|
3
|
-
require('../../lib/index.cjs');
|
|
4
|
-
const require_button = require('./button.cjs');
|
|
5
|
-
require('../../index.cjs');
|
|
6
|
-
let react = require("react");
|
|
7
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
8
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
10
|
-
let lucide_react = require("lucide-react");
|
|
11
|
-
lucide_react = require_rolldown_runtime.__toESM(lucide_react);
|
|
12
|
-
|
|
13
|
-
//#region src/components/ui/pagination.tsx
|
|
14
|
-
function Pagination({ className,...props }) {
|
|
15
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
|
|
16
|
-
role: "navigation",
|
|
17
|
-
"aria-label": "pagination",
|
|
18
|
-
"data-slot": "pagination",
|
|
19
|
-
className: require_utils.cn("mx-auto flex w-full justify-center", className),
|
|
20
|
-
...props
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function PaginationContent({ className,...props }) {
|
|
24
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
25
|
-
"data-slot": "pagination-content",
|
|
26
|
-
className: require_utils.cn("flex flex-row items-center gap-1", className),
|
|
27
|
-
...props
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
function PaginationItem({ ...props }) {
|
|
31
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
32
|
-
"data-slot": "pagination-item",
|
|
33
|
-
...props
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function PaginationLink({ className, isActive, size = "icon",...props }) {
|
|
37
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
38
|
-
"aria-current": isActive ? "page" : void 0,
|
|
39
|
-
"data-slot": "pagination-link",
|
|
40
|
-
"data-active": isActive,
|
|
41
|
-
className: require_utils.cn(require_button.buttonVariants({
|
|
42
|
-
variant: isActive ? "outline" : "ghost",
|
|
43
|
-
size
|
|
44
|
-
}), className),
|
|
45
|
-
...props
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
function PaginationPrevious({ className,...props }) {
|
|
49
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(PaginationLink, {
|
|
50
|
-
"aria-label": "Go to previous page",
|
|
51
|
-
size: "default",
|
|
52
|
-
className: require_utils.cn("gap-1 px-2.5 sm:pl-2.5", className),
|
|
53
|
-
...props,
|
|
54
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronLeftIcon, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
55
|
-
className: "hidden sm:block",
|
|
56
|
-
children: "Previous"
|
|
57
|
-
})]
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
function PaginationNext({ className,...props }) {
|
|
61
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(PaginationLink, {
|
|
62
|
-
"aria-label": "Go to next page",
|
|
63
|
-
size: "default",
|
|
64
|
-
className: require_utils.cn("gap-1 px-2.5 sm:pr-2.5", className),
|
|
65
|
-
...props,
|
|
66
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
67
|
-
className: "hidden sm:block",
|
|
68
|
-
children: "Next"
|
|
69
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronRightIcon, {})]
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
function PaginationEllipsis({ className,...props }) {
|
|
73
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
74
|
-
"aria-hidden": true,
|
|
75
|
-
"data-slot": "pagination-ellipsis",
|
|
76
|
-
className: require_utils.cn("flex size-9 items-center justify-center", className),
|
|
77
|
-
...props,
|
|
78
|
-
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.MoreHorizontalIcon, { className: "size-4" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
79
|
-
className: "sr-only",
|
|
80
|
-
children: "More pages"
|
|
81
|
-
})]
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
//#endregion
|
|
86
|
-
exports.Pagination = Pagination;
|
|
87
|
-
exports.PaginationContent = PaginationContent;
|
|
88
|
-
exports.PaginationEllipsis = PaginationEllipsis;
|
|
89
|
-
exports.PaginationItem = PaginationItem;
|
|
90
|
-
exports.PaginationLink = PaginationLink;
|
|
91
|
-
exports.PaginationNext = PaginationNext;
|
|
92
|
-
exports.PaginationPrevious = PaginationPrevious;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { Button } from "./button.cjs";
|
|
2
|
-
import "../../index.cjs";
|
|
3
|
-
import * as react_jsx_runtime98 from "react/jsx-runtime";
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
|
|
6
|
-
//#region src/components/ui/pagination.d.ts
|
|
7
|
-
declare function Pagination({
|
|
8
|
-
className,
|
|
9
|
-
...props
|
|
10
|
-
}: React.ComponentProps<'nav'>): react_jsx_runtime98.JSX.Element;
|
|
11
|
-
declare function PaginationContent({
|
|
12
|
-
className,
|
|
13
|
-
...props
|
|
14
|
-
}: React.ComponentProps<'ul'>): react_jsx_runtime98.JSX.Element;
|
|
15
|
-
declare function PaginationItem({
|
|
16
|
-
...props
|
|
17
|
-
}: React.ComponentProps<'li'>): react_jsx_runtime98.JSX.Element;
|
|
18
|
-
type PaginationLinkProps = {
|
|
19
|
-
isActive?: boolean;
|
|
20
|
-
} & Pick<React.ComponentProps<typeof Button>, 'size'> & React.ComponentProps<'a'>;
|
|
21
|
-
declare function PaginationLink({
|
|
22
|
-
className,
|
|
23
|
-
isActive,
|
|
24
|
-
size,
|
|
25
|
-
...props
|
|
26
|
-
}: PaginationLinkProps): react_jsx_runtime98.JSX.Element;
|
|
27
|
-
declare function PaginationPrevious({
|
|
28
|
-
className,
|
|
29
|
-
...props
|
|
30
|
-
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime98.JSX.Element;
|
|
31
|
-
declare function PaginationNext({
|
|
32
|
-
className,
|
|
33
|
-
...props
|
|
34
|
-
}: React.ComponentProps<typeof PaginationLink>): react_jsx_runtime98.JSX.Element;
|
|
35
|
-
declare function PaginationEllipsis({
|
|
36
|
-
className,
|
|
37
|
-
...props
|
|
38
|
-
}: React.ComponentProps<'span'>): react_jsx_runtime98.JSX.Element;
|
|
39
|
-
//#endregion
|
|
40
|
-
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_utils = require('../../lib/utils.cjs');
|
|
3
|
-
require('../../lib/index.cjs');
|
|
4
|
-
let react = require("react");
|
|
5
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
8
|
-
let __radix_ui_react_popover = require("@radix-ui/react-popover");
|
|
9
|
-
__radix_ui_react_popover = require_rolldown_runtime.__toESM(__radix_ui_react_popover);
|
|
10
|
-
|
|
11
|
-
//#region src/components/ui/popover.tsx
|
|
12
|
-
function Popover({ ...props }) {
|
|
13
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_popover.Root, {
|
|
14
|
-
"data-slot": "popover",
|
|
15
|
-
...props
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function PopoverTrigger({ ...props }) {
|
|
19
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_popover.Trigger, {
|
|
20
|
-
"data-slot": "popover-trigger",
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function PopoverContent({ className, align = "center", sideOffset = 4,...props }) {
|
|
25
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_popover.Portal, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_popover.Content, {
|
|
26
|
-
"data-slot": "popover-content",
|
|
27
|
-
align,
|
|
28
|
-
sideOffset,
|
|
29
|
-
className: require_utils.cn("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden", className),
|
|
30
|
-
...props
|
|
31
|
-
}) });
|
|
32
|
-
}
|
|
33
|
-
function PopoverAnchor({ ...props }) {
|
|
34
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_popover.Anchor, {
|
|
35
|
-
"data-slot": "popover-anchor",
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
//#endregion
|
|
41
|
-
exports.Popover = Popover;
|
|
42
|
-
exports.PopoverAnchor = PopoverAnchor;
|
|
43
|
-
exports.PopoverContent = PopoverContent;
|
|
44
|
-
exports.PopoverTrigger = PopoverTrigger;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime105 from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
4
|
-
|
|
5
|
-
//#region src/components/ui/popover.d.ts
|
|
6
|
-
declare function Popover({
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Root>): react_jsx_runtime105.JSX.Element;
|
|
9
|
-
declare function PopoverTrigger({
|
|
10
|
-
...props
|
|
11
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>): react_jsx_runtime105.JSX.Element;
|
|
12
|
-
declare function PopoverContent({
|
|
13
|
-
className,
|
|
14
|
-
align,
|
|
15
|
-
sideOffset,
|
|
16
|
-
...props
|
|
17
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Content>): react_jsx_runtime105.JSX.Element;
|
|
18
|
-
declare function PopoverAnchor({
|
|
19
|
-
...props
|
|
20
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>): react_jsx_runtime105.JSX.Element;
|
|
21
|
-
//#endregion
|
|
22
|
-
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
-
const require_utils = require('../../lib/utils.cjs');
|
|
3
|
-
require('../../lib/index.cjs');
|
|
4
|
-
let react = require("react");
|
|
5
|
-
react = require_rolldown_runtime.__toESM(react);
|
|
6
|
-
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
-
react_jsx_runtime = require_rolldown_runtime.__toESM(react_jsx_runtime);
|
|
8
|
-
let lucide_react = require("lucide-react");
|
|
9
|
-
lucide_react = require_rolldown_runtime.__toESM(lucide_react);
|
|
10
|
-
let __radix_ui_react_radio_group = require("@radix-ui/react-radio-group");
|
|
11
|
-
__radix_ui_react_radio_group = require_rolldown_runtime.__toESM(__radix_ui_react_radio_group);
|
|
12
|
-
|
|
13
|
-
//#region src/components/ui/radio-group.tsx
|
|
14
|
-
function RadioGroup({ className,...props }) {
|
|
15
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_radio_group.Root, {
|
|
16
|
-
"data-slot": "radio-group",
|
|
17
|
-
className: require_utils.cn("grid gap-3", className),
|
|
18
|
-
...props
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
function RadioGroupItem({ className,...props }) {
|
|
22
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_radio_group.Item, {
|
|
23
|
-
"data-slot": "radio-group-item",
|
|
24
|
-
className: require_utils.cn("border-input text-primary focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50", className),
|
|
25
|
-
...props,
|
|
26
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__radix_ui_react_radio_group.Indicator, {
|
|
27
|
-
"data-slot": "radio-group-indicator",
|
|
28
|
-
className: "relative flex items-center justify-center",
|
|
29
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.CircleIcon, { className: "fill-primary absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2" })
|
|
30
|
-
})
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//#endregion
|
|
35
|
-
exports.RadioGroup = RadioGroup;
|
|
36
|
-
exports.RadioGroupItem = RadioGroupItem;
|