@deftui/react 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +24 -0
- package/dist/index.mjs +24 -0
- package/dist/styles.css +88 -0
- package/dist/styles.shadcn.css +537 -0
- package/dist/styles.tokens.css +87 -0
- package/dist/vendor/coss/form.d.mts +4 -0
- package/dist/vendor/coss/form.mjs +12 -0
- package/dist/vendor/coss/hooks/use-copy-to-clipboard.d.mts +7 -0
- package/dist/vendor/coss/hooks/use-copy-to-clipboard.mjs +30 -0
- package/dist/vendor/coss/hooks/use-media-query.d.mts +20 -0
- package/dist/vendor/coss/hooks/use-media-query.mjs +57 -0
- package/dist/vendor/coss/scroll-area.d.mts +10 -0
- package/dist/vendor/coss/scroll-area.mjs +39 -0
- package/dist/vendor/shadcn/alert-dialog.d.mts +14 -0
- package/dist/vendor/shadcn/alert-dialog.mjs +80 -0
- package/dist/vendor/shadcn/badge.d.mts +7 -0
- package/dist/vendor/shadcn/badge.mjs +28 -0
- package/dist/vendor/shadcn/breadcrumb.d.mts +10 -0
- package/dist/vendor/shadcn/breadcrumb.mjs +71 -0
- package/dist/vendor/shadcn/button.d.mts +8 -0
- package/dist/vendor/shadcn/button.mjs +43 -0
- package/dist/vendor/shadcn/calendar.d.mts +7 -0
- package/dist/vendor/shadcn/calendar.mjs +107 -0
- package/dist/vendor/shadcn/card.d.mts +11 -0
- package/dist/vendor/shadcn/card.mjs +55 -0
- package/dist/vendor/shadcn/carousel.d.mts +19 -0
- package/dist/vendor/shadcn/carousel.mjs +131 -0
- package/dist/vendor/shadcn/combobox.d.mts +20 -0
- package/dist/vendor/shadcn/combobox.mjs +151 -0
- package/dist/vendor/shadcn/dialog.d.mts +15 -0
- package/dist/vendor/shadcn/dialog.mjs +91 -0
- package/dist/vendor/shadcn/drawer.d.mts +13 -0
- package/dist/vendor/shadcn/drawer.mjs +122 -0
- package/dist/vendor/shadcn/dropdown-menu.d.mts +28 -0
- package/dist/vendor/shadcn/dropdown-menu.mjs +130 -0
- package/dist/vendor/shadcn/empty.d.mts +11 -0
- package/dist/vendor/shadcn/empty.mjs +58 -0
- package/dist/vendor/shadcn/field.d.mts +14 -0
- package/dist/vendor/shadcn/field.mjs +60 -0
- package/dist/vendor/shadcn/input-group.d.mts +12 -0
- package/dist/vendor/shadcn/input-group.mjs +78 -0
- package/dist/vendor/shadcn/input.d.mts +3 -0
- package/dist/vendor/shadcn/input.mjs +14 -0
- package/dist/vendor/shadcn/kbd.d.mts +3 -0
- package/dist/vendor/shadcn/kbd.mjs +18 -0
- package/dist/vendor/shadcn/label.d.mts +3 -0
- package/dist/vendor/shadcn/label.mjs +13 -0
- package/dist/vendor/shadcn/lib/utils.mjs +1 -0
- package/dist/vendor/shadcn/pagination.d.mts +17 -0
- package/dist/vendor/shadcn/pagination.mjs +79 -0
- package/dist/vendor/shadcn/popover.d.mts +8 -0
- package/dist/vendor/shadcn/popover.mjs +47 -0
- package/dist/vendor/shadcn/progress.d.mts +7 -0
- package/dist/vendor/shadcn/progress.mjs +43 -0
- package/dist/vendor/shadcn/radio-group.d.mts +5 -0
- package/dist/vendor/shadcn/radio-group.mjs +26 -0
- package/dist/vendor/shadcn/select.d.mts +12 -0
- package/dist/vendor/shadcn/select.mjs +97 -0
- package/dist/vendor/shadcn/separator.d.mts +3 -0
- package/dist/vendor/shadcn/separator.mjs +14 -0
- package/dist/vendor/shadcn/sheet.mjs +69 -0
- package/dist/vendor/shadcn/sidebar.d.mts +60 -0
- package/dist/vendor/shadcn/sidebar.mjs +366 -0
- package/dist/vendor/shadcn/skeleton.mjs +3 -0
- package/dist/vendor/shadcn/spinner.d.mts +2 -0
- package/dist/vendor/shadcn/spinner.mjs +14 -0
- package/dist/vendor/shadcn/switch.d.mts +5 -0
- package/dist/vendor/shadcn/switch.mjs +18 -0
- package/dist/vendor/shadcn/table.d.mts +9 -0
- package/dist/vendor/shadcn/table.mjs +59 -0
- package/dist/vendor/shadcn/tabs.d.mts +10 -0
- package/dist/vendor/shadcn/tabs.mjs +44 -0
- package/dist/vendor/shadcn/textarea.d.mts +3 -0
- package/dist/vendor/shadcn/textarea.mjs +12 -0
- package/dist/vendor/shadcn/toast.d.mts +5 -0
- package/dist/vendor/shadcn/toast.mjs +122 -0
- package/dist/vendor/shadcn/tooltip.d.mts +5 -0
- package/dist/vendor/shadcn/tooltip.mjs +33 -0
- package/dist/vendor.css +1 -0
- package/dist/widgets/breadcrumb.d.mts +17 -0
- package/dist/widgets/breadcrumb.mjs +22 -0
- package/dist/widgets/datetime-picker.d.mts +25 -0
- package/dist/widgets/datetime-picker.mjs +75 -0
- package/dist/widgets/image-display.d.mts +12 -0
- package/dist/widgets/image-display.mjs +29 -0
- package/dist/widgets/index.d.mts +186 -0
- package/dist/widgets/index.mjs +187 -0
- package/dist/widgets/pagination.d.mts +10 -0
- package/dist/widgets/pagination.mjs +12 -0
- package/dist/widgets/sidebar.d.mts +26 -0
- package/dist/widgets/sidebar.mjs +27 -0
- package/dist/widgets/toast.d.mts +2 -0
- package/dist/widgets/toast.mjs +1 -0
- package/package.json +53 -4
- package/README.md +0 -3
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
import { Button } from "../vendor/shadcn/button.mjs";
|
|
2
|
+
import { AlertDialog as AlertDialog$1, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogPrimitive, AlertDialogTitle, AlertDialogTrigger } from "../vendor/shadcn/alert-dialog.mjs";
|
|
3
|
+
import { Card as Card$1, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "../vendor/shadcn/card.mjs";
|
|
4
|
+
import { Input } from "../vendor/shadcn/input.mjs";
|
|
5
|
+
import { Textarea } from "../vendor/shadcn/textarea.mjs";
|
|
6
|
+
import { InputGroup as InputGroup$1, InputGroupAddon, InputGroupInput, InputGroupText, InputGroupTextarea } from "../vendor/shadcn/input-group.mjs";
|
|
7
|
+
import { Combobox as Combobox$1, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxPrimitive, ComboboxValue } from "../vendor/shadcn/combobox.mjs";
|
|
8
|
+
import { Dialog as Dialog$1, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogPrimitive, DialogTitle, DialogTrigger } from "../vendor/shadcn/dialog.mjs";
|
|
9
|
+
import { Drawer as Drawer$1, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerPrimitive, DrawerTitle, DrawerTrigger } from "../vendor/shadcn/drawer.mjs";
|
|
10
|
+
import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger } from "../vendor/shadcn/dropdown-menu.mjs";
|
|
11
|
+
import { Empty as Empty$1, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle } from "../vendor/shadcn/empty.mjs";
|
|
12
|
+
import { Label } from "../vendor/shadcn/label.mjs";
|
|
13
|
+
import { Separator } from "../vendor/shadcn/separator.mjs";
|
|
14
|
+
import { Field as Field$1, FieldDescription, FieldError, FieldLabel } from "../vendor/shadcn/field.mjs";
|
|
15
|
+
import { Kbd as Kbd$1, KbdGroup } from "../vendor/shadcn/kbd.mjs";
|
|
16
|
+
import { Popover as Popover$1, PopoverContent, PopoverDescription, PopoverTitle, PopoverTrigger } from "../vendor/shadcn/popover.mjs";
|
|
17
|
+
import { Progress as Progress$1, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue } from "../vendor/shadcn/progress.mjs";
|
|
18
|
+
import { RadioGroup, RadioGroupItem } from "../vendor/shadcn/radio-group.mjs";
|
|
19
|
+
import { Select as Select$1, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue } from "../vendor/shadcn/select.mjs";
|
|
20
|
+
import { Table as Table$1, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow } from "../vendor/shadcn/table.mjs";
|
|
21
|
+
import { Tabs as Tabs$1, TabsContent, TabsList, TabsTrigger } from "../vendor/shadcn/tabs.mjs";
|
|
22
|
+
import { Tooltip as Tooltip$1, TooltipContent, TooltipTrigger } from "../vendor/shadcn/tooltip.mjs";
|
|
23
|
+
import { Toaster, toast } from "../vendor/shadcn/toast.mjs";
|
|
24
|
+
import "./toast.mjs";
|
|
25
|
+
import { useSidebar } from "../vendor/shadcn/sidebar.mjs";
|
|
26
|
+
import { Sidebar } from "./sidebar.mjs";
|
|
27
|
+
import { Breadcrumb } from "./breadcrumb.mjs";
|
|
28
|
+
import { Pagination } from "./pagination.mjs";
|
|
29
|
+
import { Carousel, FadeImage } from "./image-display.mjs";
|
|
30
|
+
import { DatePicker, DateRangePicker, TimePicker } from "./datetime-picker.mjs";
|
|
31
|
+
import { Form } from "../vendor/coss/form.mjs";
|
|
32
|
+
import { Badge } from "../vendor/shadcn/badge.mjs";
|
|
33
|
+
import { Switch } from "../vendor/shadcn/switch.mjs";
|
|
34
|
+
import { Spinner } from "../vendor/shadcn/spinner.mjs";
|
|
35
|
+
import { ScrollArea } from "../vendor/coss/scroll-area.mjs";
|
|
36
|
+
// src/widgets/index.ts
|
|
37
|
+
const Kbd = Object.assign(Kbd$1, {
|
|
38
|
+
Root: Kbd$1,
|
|
39
|
+
Group: KbdGroup
|
|
40
|
+
});
|
|
41
|
+
const Tabs = Object.assign(Tabs$1, {
|
|
42
|
+
Root: Tabs$1,
|
|
43
|
+
List: TabsList,
|
|
44
|
+
Trigger: TabsTrigger,
|
|
45
|
+
Content: TabsContent
|
|
46
|
+
});
|
|
47
|
+
const Card = Object.assign(Card$1, {
|
|
48
|
+
Root: Card$1,
|
|
49
|
+
Header: CardHeader,
|
|
50
|
+
Content: CardContent,
|
|
51
|
+
Footer: CardFooter,
|
|
52
|
+
Title: CardTitle,
|
|
53
|
+
Action: CardAction,
|
|
54
|
+
Description: CardDescription
|
|
55
|
+
});
|
|
56
|
+
const Field = Object.assign(Field$1, {
|
|
57
|
+
Root: Field$1,
|
|
58
|
+
Label: FieldLabel,
|
|
59
|
+
Description: FieldDescription,
|
|
60
|
+
Error: FieldError
|
|
61
|
+
});
|
|
62
|
+
const Empty = Object.assign(Empty$1, {
|
|
63
|
+
Root: Empty$1,
|
|
64
|
+
Header: EmptyHeader,
|
|
65
|
+
Content: EmptyContent,
|
|
66
|
+
Media: EmptyMedia,
|
|
67
|
+
Title: EmptyTitle,
|
|
68
|
+
Description: EmptyDescription
|
|
69
|
+
});
|
|
70
|
+
const Table = Object.assign(Table$1, {
|
|
71
|
+
Root: Table$1,
|
|
72
|
+
Header: TableHeader,
|
|
73
|
+
Body: TableBody,
|
|
74
|
+
Footer: TableFooter,
|
|
75
|
+
Row: TableRow,
|
|
76
|
+
Head: TableHead,
|
|
77
|
+
Cell: TableCell
|
|
78
|
+
});
|
|
79
|
+
const Radio = Object.assign(RadioGroupItem, {
|
|
80
|
+
Root: RadioGroupItem,
|
|
81
|
+
Group: RadioGroup
|
|
82
|
+
});
|
|
83
|
+
const Select = Object.assign(Select$1, {
|
|
84
|
+
Root: Select$1,
|
|
85
|
+
Trigger: SelectTrigger,
|
|
86
|
+
Value: SelectValue,
|
|
87
|
+
Content: SelectContent,
|
|
88
|
+
Separator: SelectSeparator,
|
|
89
|
+
Group: SelectGroup,
|
|
90
|
+
Label: SelectLabel,
|
|
91
|
+
Item: SelectItem
|
|
92
|
+
});
|
|
93
|
+
const Drawer = Object.assign(Drawer$1, {
|
|
94
|
+
Root: Drawer$1,
|
|
95
|
+
Trigger: DrawerTrigger,
|
|
96
|
+
Close: DrawerClose,
|
|
97
|
+
Content: DrawerContent,
|
|
98
|
+
Header: DrawerHeader,
|
|
99
|
+
Footer: DrawerFooter,
|
|
100
|
+
Title: DrawerTitle,
|
|
101
|
+
Description: DrawerDescription,
|
|
102
|
+
Handle: DrawerPrimitive.Handle,
|
|
103
|
+
createHandle: DrawerPrimitive.createHandle
|
|
104
|
+
});
|
|
105
|
+
const Dialog = Object.assign(Dialog$1, {
|
|
106
|
+
Root: Dialog$1,
|
|
107
|
+
Trigger: DialogTrigger,
|
|
108
|
+
Close: DialogClose,
|
|
109
|
+
Content: DialogContent,
|
|
110
|
+
Header: DialogHeader,
|
|
111
|
+
Footer: DialogFooter,
|
|
112
|
+
Title: DialogTitle,
|
|
113
|
+
Description: DialogDescription,
|
|
114
|
+
Handle: DialogPrimitive.Handle,
|
|
115
|
+
createHandle: DialogPrimitive.createHandle
|
|
116
|
+
});
|
|
117
|
+
const Tooltip = Object.assign(Tooltip$1, {
|
|
118
|
+
Root: Tooltip$1,
|
|
119
|
+
Trigger: TooltipTrigger,
|
|
120
|
+
Content: TooltipContent
|
|
121
|
+
});
|
|
122
|
+
const Popover = Object.assign(Popover$1, {
|
|
123
|
+
Root: Popover$1,
|
|
124
|
+
Trigger: PopoverTrigger,
|
|
125
|
+
Content: PopoverContent,
|
|
126
|
+
Title: PopoverTitle,
|
|
127
|
+
Description: PopoverDescription
|
|
128
|
+
});
|
|
129
|
+
const Dropdown = Object.assign(DropdownMenu, {
|
|
130
|
+
Root: DropdownMenu,
|
|
131
|
+
Trigger: DropdownMenuTrigger,
|
|
132
|
+
Content: DropdownMenuContent,
|
|
133
|
+
Sub: DropdownMenuSub,
|
|
134
|
+
SubTrigger: DropdownMenuSubTrigger,
|
|
135
|
+
SubContent: DropdownMenuSubContent,
|
|
136
|
+
Group: DropdownMenuGroup,
|
|
137
|
+
GroupLabel: DropdownMenuLabel,
|
|
138
|
+
Separator: DropdownMenuSeparator,
|
|
139
|
+
Item: DropdownMenuItem,
|
|
140
|
+
Shortcut: DropdownMenuShortcut,
|
|
141
|
+
RadioItem: DropdownMenuRadioItem,
|
|
142
|
+
RadioGroup: DropdownMenuRadioGroup,
|
|
143
|
+
CheckboxItem: DropdownMenuCheckboxItem
|
|
144
|
+
});
|
|
145
|
+
const Progress = Object.assign(Progress$1, {
|
|
146
|
+
Root: Progress$1,
|
|
147
|
+
Label: ProgressLabel,
|
|
148
|
+
Value: ProgressValue,
|
|
149
|
+
Track: ProgressTrack,
|
|
150
|
+
Indicator: ProgressIndicator
|
|
151
|
+
});
|
|
152
|
+
const AlertDialog = Object.assign(AlertDialog$1, {
|
|
153
|
+
Root: AlertDialog$1,
|
|
154
|
+
Trigger: AlertDialogTrigger,
|
|
155
|
+
Close: AlertDialogCancel,
|
|
156
|
+
Content: AlertDialogContent,
|
|
157
|
+
Header: AlertDialogHeader,
|
|
158
|
+
Footer: AlertDialogFooter,
|
|
159
|
+
Title: AlertDialogTitle,
|
|
160
|
+
Description: AlertDialogDescription,
|
|
161
|
+
Handle: AlertDialogPrimitive.Handle,
|
|
162
|
+
createHandle: AlertDialogPrimitive.createHandle
|
|
163
|
+
});
|
|
164
|
+
const InputGroup = Object.assign(InputGroup$1, {
|
|
165
|
+
Root: InputGroup$1,
|
|
166
|
+
Addon: InputGroupAddon,
|
|
167
|
+
AddonText: InputGroupText,
|
|
168
|
+
Input: InputGroupInput,
|
|
169
|
+
Textarea: InputGroupTextarea
|
|
170
|
+
});
|
|
171
|
+
const Combobox = Object.assign(Combobox$1, {
|
|
172
|
+
Root: Combobox$1,
|
|
173
|
+
Content: ComboboxContent,
|
|
174
|
+
Empty: ComboboxEmpty,
|
|
175
|
+
List: ComboboxList,
|
|
176
|
+
Input: ComboboxInput,
|
|
177
|
+
ChipsInput: ComboboxChipsInput,
|
|
178
|
+
Chips: ComboboxChips,
|
|
179
|
+
Value: ComboboxValue,
|
|
180
|
+
Chip: ComboboxChip,
|
|
181
|
+
Group: ComboboxGroup,
|
|
182
|
+
GroupLabel: ComboboxLabel,
|
|
183
|
+
GroupCollection: ComboboxCollection,
|
|
184
|
+
Item: ComboboxItem,
|
|
185
|
+
createItems: ComboboxPrimitive.createItems
|
|
186
|
+
});
|
|
187
|
+
export { AlertDialog, Badge, Breadcrumb, Button, Card, Carousel, Combobox, DatePicker, DateRangePicker, Dialog, Drawer, Dropdown, Empty, FadeImage, Field, Form, Input, InputGroup, Kbd, Label, Pagination, Popover, Progress, Radio, ScrollArea, Select, Separator, Sidebar, Spinner, Switch, Table, Tabs, Textarea, TimePicker, Toaster as ToastProvider, Tooltip, toast, useSidebar };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Pagination as Pagination$1, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "../vendor/shadcn/pagination.mjs";
|
|
2
|
+
export declare const Pagination: typeof Pagination$1 & {
|
|
3
|
+
Root: typeof Pagination$1;
|
|
4
|
+
Content: typeof PaginationContent;
|
|
5
|
+
Item: typeof PaginationItem;
|
|
6
|
+
Link: typeof PaginationLink;
|
|
7
|
+
Next: typeof PaginationNext;
|
|
8
|
+
Previous: typeof PaginationPrevious;
|
|
9
|
+
Ellipsis: typeof PaginationEllipsis;
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Pagination as Pagination$1, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "../vendor/shadcn/pagination.mjs";
|
|
2
|
+
// src/widgets/pagination.tsx
|
|
3
|
+
const Pagination = Object.assign(Pagination$1, {
|
|
4
|
+
Root: Pagination$1,
|
|
5
|
+
Content: PaginationContent,
|
|
6
|
+
Item: PaginationItem,
|
|
7
|
+
Link: PaginationLink,
|
|
8
|
+
Next: PaginationNext,
|
|
9
|
+
Previous: PaginationPrevious,
|
|
10
|
+
Ellipsis: PaginationEllipsis
|
|
11
|
+
});
|
|
12
|
+
export { Pagination };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Sidebar as Sidebar$1, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "../vendor/shadcn/sidebar.mjs";
|
|
2
|
+
export declare const Sidebar: typeof Sidebar$1 & {
|
|
3
|
+
Provider: typeof SidebarProvider;
|
|
4
|
+
Root: typeof Sidebar$1;
|
|
5
|
+
Inset: typeof SidebarInset;
|
|
6
|
+
Trigger: typeof SidebarTrigger;
|
|
7
|
+
Header: typeof SidebarHeader;
|
|
8
|
+
Content: typeof SidebarContent;
|
|
9
|
+
Footer: typeof SidebarFooter;
|
|
10
|
+
Rail: typeof SidebarRail;
|
|
11
|
+
Group: typeof SidebarGroup;
|
|
12
|
+
GroupLabel: typeof SidebarGroupLabel;
|
|
13
|
+
GroupAction: typeof SidebarGroupAction;
|
|
14
|
+
GroupContent: typeof SidebarGroupContent;
|
|
15
|
+
Menu: typeof SidebarMenu;
|
|
16
|
+
MenuItem: typeof SidebarMenuItem;
|
|
17
|
+
MenuButton: typeof SidebarMenuButton;
|
|
18
|
+
MenuAction: typeof SidebarMenuAction;
|
|
19
|
+
MenuBadge: typeof SidebarMenuBadge;
|
|
20
|
+
MenuSub: typeof SidebarMenuSub;
|
|
21
|
+
MenuSubItem: typeof SidebarMenuSubItem;
|
|
22
|
+
MenuSubButton: typeof SidebarMenuSubButton;
|
|
23
|
+
Input: typeof SidebarInput;
|
|
24
|
+
Separator: typeof SidebarSeparator;
|
|
25
|
+
};
|
|
26
|
+
export { useSidebar };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Sidebar as Sidebar$1, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar } from "../vendor/shadcn/sidebar.mjs";
|
|
2
|
+
// src/widgets/sidebar.tsx
|
|
3
|
+
const Sidebar = Object.assign(Sidebar$1, {
|
|
4
|
+
Provider: SidebarProvider,
|
|
5
|
+
Root: Sidebar$1,
|
|
6
|
+
Inset: SidebarInset,
|
|
7
|
+
Trigger: SidebarTrigger,
|
|
8
|
+
Header: SidebarHeader,
|
|
9
|
+
Content: SidebarContent,
|
|
10
|
+
Footer: SidebarFooter,
|
|
11
|
+
Rail: SidebarRail,
|
|
12
|
+
Group: SidebarGroup,
|
|
13
|
+
GroupLabel: SidebarGroupLabel,
|
|
14
|
+
GroupAction: SidebarGroupAction,
|
|
15
|
+
GroupContent: SidebarGroupContent,
|
|
16
|
+
Menu: SidebarMenu,
|
|
17
|
+
MenuItem: SidebarMenuItem,
|
|
18
|
+
MenuButton: SidebarMenuButton,
|
|
19
|
+
MenuAction: SidebarMenuAction,
|
|
20
|
+
MenuBadge: SidebarMenuBadge,
|
|
21
|
+
MenuSub: SidebarMenuSub,
|
|
22
|
+
MenuSubItem: SidebarMenuSubItem,
|
|
23
|
+
MenuSubButton: SidebarMenuSubButton,
|
|
24
|
+
Input: SidebarInput,
|
|
25
|
+
Separator: SidebarSeparator
|
|
26
|
+
});
|
|
27
|
+
export { Sidebar, useSidebar };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Toaster as ToastProvider, toast } from "../vendor/shadcn/toast.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,55 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deftui/react",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"repository": {
|
|
5
|
+
"type": "git",
|
|
6
|
+
"url": "git+https://github.com/KiriRainCat/deftui.git",
|
|
7
|
+
"directory": "packages/react"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"type": "module",
|
|
13
|
+
"types": "./dist/index.d.mts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.mts",
|
|
17
|
+
"import": "./dist/index.mjs"
|
|
18
|
+
},
|
|
19
|
+
"./styles": {
|
|
20
|
+
"style": "./dist/styles.css",
|
|
21
|
+
"import": "./dist/styles.css"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "vp pack",
|
|
29
|
+
"check": "vp lint",
|
|
30
|
+
"fix": "vp check --fix"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@base-ui/react": "^1.9.0",
|
|
34
|
+
"@daypicker/react": "^10.0.2",
|
|
35
|
+
"@fontsource-variable/inter": "^5.3.0",
|
|
36
|
+
"class-variance-authority": "^0.7.1",
|
|
37
|
+
"cn": "^0.5.0",
|
|
38
|
+
"date-fns": "^4.4.0",
|
|
39
|
+
"embla-carousel-react": "^8.6.0",
|
|
40
|
+
"lucide-react": "^1.62.0",
|
|
41
|
+
"radashi": "^12.9.7",
|
|
42
|
+
"tw-animate-css": "^1.4.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/react": "^19.3.0",
|
|
46
|
+
"@types/react-dom": "^19.3.0",
|
|
47
|
+
"shadcn": "^4.22.2",
|
|
48
|
+
"vite-plus": "catalog:"
|
|
49
|
+
},
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": "^19",
|
|
52
|
+
"react-dom": "^19",
|
|
53
|
+
"tailwindcss": "^4"
|
|
54
|
+
}
|
|
55
|
+
}
|
package/README.md
DELETED