@arolariu/components 0.0.9 → 0.0.10

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.
Files changed (52) hide show
  1. package/package.json +15 -4
  2. package/src/components/ui/accordion.tsx +66 -0
  3. package/src/components/ui/alert-dialog.tsx +157 -0
  4. package/src/components/ui/alert.tsx +66 -0
  5. package/src/components/ui/aspect-ratio.tsx +11 -0
  6. package/src/components/ui/avatar.tsx +53 -0
  7. package/src/components/ui/badge.tsx +46 -0
  8. package/src/components/ui/breadcrumb.tsx +109 -0
  9. package/src/components/ui/button.tsx +58 -0
  10. package/src/components/ui/calendar.tsx +75 -0
  11. package/src/components/ui/card.tsx +68 -0
  12. package/src/components/ui/carousel.tsx +241 -0
  13. package/src/components/ui/chart.tsx +353 -0
  14. package/src/components/ui/checkbox.tsx +32 -0
  15. package/src/components/ui/collapsible.tsx +33 -0
  16. package/src/components/ui/command.tsx +177 -0
  17. package/src/components/ui/context-menu.tsx +252 -0
  18. package/src/components/ui/dialog.tsx +135 -0
  19. package/src/components/ui/drawer.tsx +132 -0
  20. package/src/components/ui/dropdown-menu.tsx +257 -0
  21. package/src/components/ui/form.tsx +167 -0
  22. package/src/components/ui/hover-card.tsx +42 -0
  23. package/src/components/ui/input-otp.tsx +78 -0
  24. package/src/components/ui/input.tsx +21 -0
  25. package/src/components/ui/label.tsx +24 -0
  26. package/src/components/ui/menubar.tsx +276 -0
  27. package/src/components/ui/navigation-menu.tsx +170 -0
  28. package/src/components/ui/pagination.tsx +127 -0
  29. package/src/components/ui/popover.tsx +48 -0
  30. package/src/components/ui/progress.tsx +31 -0
  31. package/src/components/ui/radio-group.tsx +45 -0
  32. package/src/components/ui/resizable.tsx +56 -0
  33. package/src/components/ui/scroll-area.tsx +58 -0
  34. package/src/components/ui/select.tsx +181 -0
  35. package/src/components/ui/separator.tsx +28 -0
  36. package/src/components/ui/sheet.tsx +139 -0
  37. package/src/components/ui/sidebar.tsx +723 -0
  38. package/src/components/ui/skeleton.tsx +13 -0
  39. package/src/components/ui/slider.tsx +63 -0
  40. package/src/components/ui/sonner.tsx +29 -0
  41. package/src/components/ui/switch.tsx +31 -0
  42. package/src/components/ui/table.tsx +116 -0
  43. package/src/components/ui/tabs.tsx +66 -0
  44. package/src/components/ui/textarea.tsx +18 -0
  45. package/src/components/ui/toggle-group.tsx +73 -0
  46. package/src/components/ui/toggle.tsx +47 -0
  47. package/src/components/ui/tooltip.tsx +61 -0
  48. package/src/hooks/use-mobile.ts +19 -0
  49. package/src/hooks/use-mobile.tsx +19 -0
  50. package/src/index.css +137 -0
  51. package/src/index.ts +326 -0
  52. package/src/lib/utils.ts +6 -0
package/src/index.css ADDED
@@ -0,0 +1,137 @@
1
+ @import "tailwindcss";
2
+ @import "tailwindcss" layer(utilities);
3
+
4
+ @config '../tailwind.config.ts';
5
+
6
+ @layer utilities {
7
+ @plugin "daisyui";
8
+ }
9
+
10
+ /*
11
+ ---break---
12
+ */
13
+ @custom-variant dark (&:is(.dark *));
14
+
15
+ /*
16
+ The default border color has changed to `currentColor` in Tailwind CSS v4,
17
+ so we've added these compatibility styles to make sure everything still
18
+ looks the same as it did with Tailwind CSS v3.
19
+
20
+ If we ever want to remove these styles, we need to add an explicit border
21
+ color utility to any element that depends on these defaults.
22
+ */
23
+ @layer base {
24
+ *,
25
+ ::after,
26
+ ::before,
27
+ ::backdrop,
28
+ ::file-selector-button {
29
+ border-color: var(--color-gray-200, currentColor);
30
+ }
31
+ }
32
+
33
+ @layer base {
34
+ :root {
35
+ --sidebar-background: 0 0% 98%;
36
+
37
+ --sidebar-foreground: 240 5.3% 26.1%;
38
+
39
+ --sidebar-primary: 240 5.9% 10%;
40
+
41
+ --sidebar-primary-foreground: 0 0% 98%;
42
+
43
+ --sidebar-accent: 240 4.8% 95.9%;
44
+
45
+ --sidebar-accent-foreground: 240 5.9% 10%;
46
+
47
+ --sidebar-border: 220 13% 91%;
48
+
49
+ --sidebar-ring: 217.2 91.2% 59.8%;
50
+ }
51
+ .dark {
52
+ --sidebar-background: 240 5.9% 10%;
53
+
54
+ --sidebar-foreground: 240 4.8% 95.9%;
55
+
56
+ --sidebar-primary: 224.3 76.3% 48%;
57
+
58
+ --sidebar-primary-foreground: 0 0% 100%;
59
+
60
+ --sidebar-accent: 240 3.7% 15.9%;
61
+
62
+ --sidebar-accent-foreground: 240 4.8% 95.9%;
63
+
64
+ --sidebar-border: 240 3.7% 15.9%;
65
+
66
+ --sidebar-ring: 217.2 91.2% 59.8%;
67
+ }
68
+ }
69
+
70
+ /*
71
+ ---break---
72
+ */
73
+
74
+ :root {
75
+ --sidebar: hsl(0 0% 98%);
76
+ --sidebar-foreground: hsl(240 5.3% 26.1%);
77
+ --sidebar-primary: hsl(240 5.9% 10%);
78
+ --sidebar-primary-foreground: hsl(0 0% 98%);
79
+ --sidebar-accent: hsl(240 4.8% 95.9%);
80
+ --sidebar-accent-foreground: hsl(240 5.9% 10%);
81
+ --sidebar-border: hsl(220 13% 91%);
82
+ --sidebar-ring: hsl(217.2 91.2% 59.8%);
83
+ }
84
+
85
+ /*
86
+ ---break---
87
+ */
88
+
89
+ .dark {
90
+ --sidebar: hsl(240 5.9% 10%);
91
+ --sidebar-foreground: hsl(240 4.8% 95.9%);
92
+ --sidebar-primary: hsl(224.3 76.3% 48%);
93
+ --sidebar-primary-foreground: hsl(0 0% 100%);
94
+ --sidebar-accent: hsl(240 3.7% 15.9%);
95
+ --sidebar-accent-foreground: hsl(240 4.8% 95.9%);
96
+ --sidebar-border: hsl(240 3.7% 15.9%);
97
+ --sidebar-ring: hsl(217.2 91.2% 59.8%);
98
+ }
99
+
100
+ /*
101
+ ---break---
102
+ */
103
+
104
+ @theme inline {
105
+ --color-sidebar: var(--sidebar);
106
+ --color-sidebar-foreground: var(--sidebar-foreground);
107
+ --color-sidebar-primary: var(--sidebar-primary);
108
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
109
+ --color-sidebar-accent: var(--sidebar-accent);
110
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
111
+ --color-sidebar-border: var(--sidebar-border);
112
+ --color-sidebar-ring: var(--sidebar-ring);
113
+ --animate-accordion-down: accordion-down 0.2s ease-out;
114
+ --animate-accordion-up: accordion-up 0.2s ease-out;
115
+ /*
116
+ ---break---
117
+ */
118
+ @keyframes accordion-down {
119
+ from {
120
+ height: 0;
121
+ }
122
+ to {
123
+ height: var(--radix-accordion-content-height);
124
+ }
125
+ }
126
+ /*
127
+ ---break---
128
+ */
129
+ @keyframes accordion-up {
130
+ from {
131
+ height: var(--radix-accordion-content-height);
132
+ }
133
+ to {
134
+ height: 0;
135
+ }
136
+ }
137
+ }
package/src/index.ts ADDED
@@ -0,0 +1,326 @@
1
+ export {
2
+ Accordion,
3
+ AccordionItem,
4
+ AccordionTrigger,
5
+ AccordionContent,
6
+ } from "./components/ui/accordion";
7
+
8
+ export {
9
+ AlertDialog,
10
+ AlertDialogPortal,
11
+ AlertDialogOverlay,
12
+ AlertDialogTrigger,
13
+ AlertDialogContent,
14
+ AlertDialogHeader,
15
+ AlertDialogFooter,
16
+ AlertDialogTitle,
17
+ AlertDialogDescription,
18
+ AlertDialogAction,
19
+ AlertDialogCancel,
20
+ } from "./components/ui/alert-dialog";
21
+
22
+ export { Alert, AlertTitle, AlertDescription } from "./components/ui/alert";
23
+
24
+ export { AspectRatio } from "./components/ui/aspect-ratio";
25
+
26
+ export { Avatar, AvatarImage, AvatarFallback } from "./components/ui/avatar";
27
+
28
+ export { Badge, badgeVariants } from "./components/ui/badge";
29
+
30
+ export {
31
+ Breadcrumb,
32
+ BreadcrumbList,
33
+ BreadcrumbItem,
34
+ BreadcrumbLink,
35
+ BreadcrumbPage,
36
+ BreadcrumbSeparator,
37
+ BreadcrumbEllipsis,
38
+ } from "./components/ui/breadcrumb";
39
+
40
+ export { Button, buttonVariants } from "./components/ui/button";
41
+
42
+ export { Calendar } from "./components/ui/calendar";
43
+
44
+ export {
45
+ Card,
46
+ CardHeader,
47
+ CardFooter,
48
+ CardTitle,
49
+ CardDescription,
50
+ CardContent,
51
+ } from "./components/ui/card";
52
+
53
+ export {
54
+ type CarouselApi,
55
+ Carousel,
56
+ CarouselContent,
57
+ CarouselItem,
58
+ CarouselPrevious,
59
+ CarouselNext,
60
+ } from "./components/ui/carousel";
61
+
62
+ export {
63
+ ChartContainer,
64
+ ChartTooltip,
65
+ ChartTooltipContent,
66
+ ChartLegend,
67
+ ChartLegendContent,
68
+ ChartStyle,
69
+ } from "./components/ui/chart";
70
+
71
+ export { Checkbox } from "./components/ui/checkbox";
72
+
73
+ export {
74
+ Collapsible,
75
+ CollapsibleTrigger,
76
+ CollapsibleContent,
77
+ } from "./components/ui/collapsible";
78
+
79
+ export {
80
+ Command,
81
+ CommandDialog,
82
+ CommandInput,
83
+ CommandList,
84
+ CommandEmpty,
85
+ CommandGroup,
86
+ CommandItem,
87
+ CommandShortcut,
88
+ CommandSeparator,
89
+ } from "./components/ui/command";
90
+
91
+ export {
92
+ ContextMenu,
93
+ ContextMenuTrigger,
94
+ ContextMenuContent,
95
+ ContextMenuItem,
96
+ ContextMenuCheckboxItem,
97
+ ContextMenuRadioItem,
98
+ ContextMenuLabel,
99
+ ContextMenuSeparator,
100
+ ContextMenuShortcut,
101
+ ContextMenuGroup,
102
+ ContextMenuPortal,
103
+ ContextMenuSub,
104
+ ContextMenuSubContent,
105
+ ContextMenuSubTrigger,
106
+ ContextMenuRadioGroup,
107
+ } from "./components/ui/context-menu";
108
+
109
+ export {
110
+ Dialog,
111
+ DialogClose,
112
+ DialogContent,
113
+ DialogDescription,
114
+ DialogFooter,
115
+ DialogHeader,
116
+ DialogOverlay,
117
+ DialogPortal,
118
+ DialogTitle,
119
+ DialogTrigger,
120
+ } from "./components/ui/dialog";
121
+
122
+ export {
123
+ Drawer,
124
+ DrawerPortal,
125
+ DrawerOverlay,
126
+ DrawerTrigger,
127
+ DrawerClose,
128
+ DrawerContent,
129
+ DrawerHeader,
130
+ DrawerFooter,
131
+ DrawerTitle,
132
+ DrawerDescription,
133
+ } from "./components/ui/drawer";
134
+
135
+ export {
136
+ DropdownMenu,
137
+ DropdownMenuPortal,
138
+ DropdownMenuTrigger,
139
+ DropdownMenuContent,
140
+ DropdownMenuGroup,
141
+ DropdownMenuLabel,
142
+ DropdownMenuItem,
143
+ DropdownMenuCheckboxItem,
144
+ DropdownMenuRadioGroup,
145
+ DropdownMenuRadioItem,
146
+ DropdownMenuSeparator,
147
+ DropdownMenuShortcut,
148
+ DropdownMenuSub,
149
+ DropdownMenuSubTrigger,
150
+ DropdownMenuSubContent,
151
+ } from "./components/ui/dropdown-menu";
152
+
153
+ export {
154
+ useFormField,
155
+ Form,
156
+ FormItem,
157
+ FormLabel,
158
+ FormControl,
159
+ FormDescription,
160
+ FormMessage,
161
+ FormField,
162
+ } from "./components/ui/form";
163
+
164
+ export {
165
+ HoverCard,
166
+ HoverCardTrigger,
167
+ HoverCardContent,
168
+ } from "./components/ui/hover-card";
169
+
170
+ export {
171
+ InputOTP,
172
+ InputOTPGroup,
173
+ InputOTPSlot,
174
+ InputOTPSeparator,
175
+ } from "./components/ui/input-otp";
176
+
177
+ export { Input } from "./components/ui/input";
178
+
179
+ export { Label } from "./components/ui/label";
180
+
181
+ export {
182
+ Menubar,
183
+ MenubarPortal,
184
+ MenubarMenu,
185
+ MenubarTrigger,
186
+ MenubarContent,
187
+ MenubarGroup,
188
+ MenubarSeparator,
189
+ MenubarLabel,
190
+ MenubarItem,
191
+ MenubarShortcut,
192
+ MenubarCheckboxItem,
193
+ MenubarRadioGroup,
194
+ MenubarRadioItem,
195
+ MenubarSub,
196
+ MenubarSubTrigger,
197
+ MenubarSubContent,
198
+ } from "./components/ui/menubar";
199
+
200
+ export {
201
+ NavigationMenu,
202
+ NavigationMenuList,
203
+ NavigationMenuItem,
204
+ NavigationMenuContent,
205
+ NavigationMenuTrigger,
206
+ NavigationMenuLink,
207
+ NavigationMenuIndicator,
208
+ NavigationMenuViewport,
209
+ navigationMenuTriggerStyle,
210
+ } from "./components/ui/navigation-menu";
211
+
212
+ export {
213
+ Pagination,
214
+ PaginationContent,
215
+ PaginationLink,
216
+ PaginationItem,
217
+ PaginationPrevious,
218
+ PaginationNext,
219
+ PaginationEllipsis,
220
+ } from "./components/ui/pagination";
221
+
222
+ export {
223
+ Popover,
224
+ PopoverTrigger,
225
+ PopoverContent,
226
+ PopoverAnchor,
227
+ } from "./components/ui/popover";
228
+
229
+ export { Progress } from "./components/ui/progress";
230
+
231
+ export { RadioGroup, RadioGroupItem } from "./components/ui/radio-group";
232
+
233
+ export {
234
+ ResizablePanelGroup,
235
+ ResizablePanel,
236
+ ResizableHandle,
237
+ } from "./components/ui/resizable";
238
+
239
+ export { ScrollArea, ScrollBar } from "./components/ui/scroll-area";
240
+
241
+ export {
242
+ Select,
243
+ SelectGroup,
244
+ SelectValue,
245
+ SelectTrigger,
246
+ SelectContent,
247
+ SelectLabel,
248
+ SelectItem,
249
+ SelectSeparator,
250
+ SelectScrollUpButton,
251
+ SelectScrollDownButton,
252
+ } from "./components/ui/select";
253
+
254
+ export { Separator } from "./components/ui/separator";
255
+
256
+ export {
257
+ Sheet,
258
+ SheetTrigger,
259
+ SheetClose,
260
+ SheetContent,
261
+ SheetHeader,
262
+ SheetFooter,
263
+ SheetTitle,
264
+ SheetDescription,
265
+ } from "./components/ui/sheet";
266
+
267
+ export {
268
+ Sidebar,
269
+ SidebarContent,
270
+ SidebarFooter,
271
+ SidebarGroup,
272
+ SidebarGroupAction,
273
+ SidebarGroupContent,
274
+ SidebarGroupLabel,
275
+ SidebarHeader,
276
+ SidebarInput,
277
+ SidebarInset,
278
+ SidebarMenu,
279
+ SidebarMenuAction,
280
+ SidebarMenuBadge,
281
+ SidebarMenuButton,
282
+ SidebarMenuItem,
283
+ SidebarMenuSkeleton,
284
+ SidebarMenuSub,
285
+ SidebarMenuSubButton,
286
+ SidebarMenuSubItem,
287
+ SidebarProvider,
288
+ SidebarRail,
289
+ SidebarSeparator,
290
+ SidebarTrigger,
291
+ useSidebar,
292
+ } from "./components/ui/sidebar";
293
+
294
+ export { Skeleton } from "./components/ui/skeleton";
295
+
296
+ export { Slider } from "./components/ui/slider";
297
+
298
+ export { Toaster } from "./components/ui/sonner";
299
+
300
+ export { Switch } from "./components/ui/switch";
301
+
302
+ export {
303
+ Table,
304
+ TableHeader,
305
+ TableBody,
306
+ TableFooter,
307
+ TableHead,
308
+ TableRow,
309
+ TableCell,
310
+ TableCaption,
311
+ } from "./components/ui/table";
312
+
313
+ export { Tabs, TabsList, TabsTrigger, TabsContent } from "./components/ui/tabs";
314
+
315
+ export { Textarea } from "./components/ui/textarea";
316
+
317
+ export { ToggleGroup, ToggleGroupItem } from "./components/ui/toggle-group";
318
+
319
+ export { Toggle, toggleVariants } from "./components/ui/toggle";
320
+
321
+ export {
322
+ Tooltip,
323
+ TooltipTrigger,
324
+ TooltipContent,
325
+ TooltipProvider,
326
+ } from "./components/ui/tooltip";
@@ -0,0 +1,6 @@
1
+ import { clsx, type ClassValue } from "clsx";
2
+ import { twMerge } from "tailwind-merge";
3
+
4
+ export function cn(...inputs: ClassValue[]) {
5
+ return twMerge(clsx(inputs));
6
+ }