@hobenakicoffee/libraries 1.28.0 → 1.29.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/package.json +5 -39
- package/src/nuqs/common.ts +12 -0
- package/src/nuqs/index.ts +2 -0
- package/src/nuqs/transactions.ts +31 -0
- package/src/components/ui/alert-dialog.tsx +0 -196
- package/src/components/ui/alert.tsx +0 -76
- package/src/components/ui/avatar.tsx +0 -110
- package/src/components/ui/badge.tsx +0 -49
- package/src/components/ui/breadcrumb.tsx +0 -122
- package/src/components/ui/button-group.tsx +0 -82
- package/src/components/ui/card.tsx +0 -100
- package/src/components/ui/chart.tsx +0 -364
- package/src/components/ui/checkbox.tsx +0 -30
- package/src/components/ui/dialog.tsx +0 -162
- package/src/components/ui/drawer.tsx +0 -126
- package/src/components/ui/dropdown-menu.tsx +0 -267
- package/src/components/ui/empty-minimal.tsx +0 -20
- package/src/components/ui/empty.tsx +0 -101
- package/src/components/ui/field.tsx +0 -235
- package/src/components/ui/input-group.tsx +0 -170
- package/src/components/ui/input-otp.tsx +0 -84
- package/src/components/ui/input.tsx +0 -37
- package/src/components/ui/item.tsx +0 -196
- package/src/components/ui/label.tsx +0 -19
- package/src/components/ui/popover.tsx +0 -87
- package/src/components/ui/radio-group.tsx +0 -47
- package/src/components/ui/select.tsx +0 -205
- package/src/components/ui/separator.tsx +0 -26
- package/src/components/ui/sheet.tsx +0 -141
- package/src/components/ui/sidebar.tsx +0 -699
- package/src/components/ui/skeleton.tsx +0 -13
- package/src/components/ui/sonner.tsx +0 -74
- package/src/components/ui/table.tsx +0 -114
- package/src/components/ui/tabs.tsx +0 -88
- package/src/components/ui/textarea.tsx +0 -35
- package/src/components/ui/toggle-group.tsx +0 -91
- package/src/components/ui/toggle.tsx +0 -44
- package/src/components/ui/tooltip.tsx +0 -59
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { Cancel01Icon } from "@hugeicons/core-free-icons";
|
|
2
|
-
import { HugeiconsIcon } from "@hugeicons/react";
|
|
3
|
-
import { Dialog as SheetPrimitive } from "radix-ui";
|
|
4
|
-
import type * as React from "react";
|
|
5
|
-
import { Button } from "@/components/ui/button";
|
|
6
|
-
import { cn } from "@/lib/utils";
|
|
7
|
-
|
|
8
|
-
function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
|
|
9
|
-
return <SheetPrimitive.Root data-slot="sheet" {...props} />;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function SheetTrigger({
|
|
13
|
-
...props
|
|
14
|
-
}: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
|
|
15
|
-
return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function SheetClose({
|
|
19
|
-
...props
|
|
20
|
-
}: React.ComponentProps<typeof SheetPrimitive.Close>) {
|
|
21
|
-
return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function SheetPortal({
|
|
25
|
-
...props
|
|
26
|
-
}: React.ComponentProps<typeof SheetPrimitive.Portal>) {
|
|
27
|
-
return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function SheetOverlay({
|
|
31
|
-
className,
|
|
32
|
-
...props
|
|
33
|
-
}: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
|
|
34
|
-
return (
|
|
35
|
-
<SheetPrimitive.Overlay
|
|
36
|
-
className={cn(
|
|
37
|
-
"data-closed:fade-out-0 data-open:fade-in-0 fixed inset-0 z-50 bg-black/10 duration-100 data-closed:animate-out data-open:animate-in data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs",
|
|
38
|
-
className
|
|
39
|
-
)}
|
|
40
|
-
data-slot="sheet-overlay"
|
|
41
|
-
{...props}
|
|
42
|
-
/>
|
|
43
|
-
);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function SheetContent({
|
|
47
|
-
className,
|
|
48
|
-
children,
|
|
49
|
-
side = "right",
|
|
50
|
-
showCloseButton = true,
|
|
51
|
-
...props
|
|
52
|
-
}: React.ComponentProps<typeof SheetPrimitive.Content> & {
|
|
53
|
-
side?: "top" | "right" | "bottom" | "left";
|
|
54
|
-
showCloseButton?: boolean;
|
|
55
|
-
}) {
|
|
56
|
-
return (
|
|
57
|
-
<SheetPortal>
|
|
58
|
-
<SheetOverlay />
|
|
59
|
-
<SheetPrimitive.Content
|
|
60
|
-
className={cn(
|
|
61
|
-
"data-[side=right]:data-closed:slide-out-to-right-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=top]:data-closed:slide-out-to-top-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:fade-out-0 data-open:fade-in-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=bottom]:data-open:slide-in-from-bottom-10 fixed z-50 flex flex-col gap-4 bg-background bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=top]:inset-x-0 data-[side=left]:inset-y-0 data-[side=right]:inset-y-0 data-[side=top]:top-0 data-[side=right]:right-0 data-[side=bottom]:bottom-0 data-[side=left]:left-0 data-[side=bottom]:h-auto data-[side=left]:h-full data-[side=right]:h-full data-[side=top]:h-auto data-[side=left]:w-3/4 data-[side=right]:w-3/4 data-closed:animate-out data-open:animate-in data-[side=bottom]:border-t data-[side=left]:border-r data-[side=top]:border-b data-[side=right]:border-l data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm",
|
|
62
|
-
className
|
|
63
|
-
)}
|
|
64
|
-
data-side={side}
|
|
65
|
-
data-slot="sheet-content"
|
|
66
|
-
{...props}
|
|
67
|
-
>
|
|
68
|
-
{children}
|
|
69
|
-
{showCloseButton && (
|
|
70
|
-
<SheetPrimitive.Close asChild data-slot="sheet-close">
|
|
71
|
-
<Button
|
|
72
|
-
className="absolute top-4 right-4"
|
|
73
|
-
size="icon-sm"
|
|
74
|
-
variant="ghost"
|
|
75
|
-
>
|
|
76
|
-
<HugeiconsIcon icon={Cancel01Icon} strokeWidth={2} />
|
|
77
|
-
<span className="sr-only">Close</span>
|
|
78
|
-
</Button>
|
|
79
|
-
</SheetPrimitive.Close>
|
|
80
|
-
)}
|
|
81
|
-
</SheetPrimitive.Content>
|
|
82
|
-
</SheetPortal>
|
|
83
|
-
);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
|
|
87
|
-
return (
|
|
88
|
-
<div
|
|
89
|
-
className={cn("flex flex-col gap-1.5 p-4", className)}
|
|
90
|
-
data-slot="sheet-header"
|
|
91
|
-
{...props}
|
|
92
|
-
/>
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {
|
|
97
|
-
return (
|
|
98
|
-
<div
|
|
99
|
-
className={cn("mt-auto flex flex-col gap-2 p-4", className)}
|
|
100
|
-
data-slot="sheet-footer"
|
|
101
|
-
{...props}
|
|
102
|
-
/>
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
function SheetTitle({
|
|
107
|
-
className,
|
|
108
|
-
...props
|
|
109
|
-
}: React.ComponentProps<typeof SheetPrimitive.Title>) {
|
|
110
|
-
return (
|
|
111
|
-
<SheetPrimitive.Title
|
|
112
|
-
className={cn("font-medium text-foreground text-lg", className)}
|
|
113
|
-
data-slot="sheet-title"
|
|
114
|
-
{...props}
|
|
115
|
-
/>
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
function SheetDescription({
|
|
120
|
-
className,
|
|
121
|
-
...props
|
|
122
|
-
}: React.ComponentProps<typeof SheetPrimitive.Description>) {
|
|
123
|
-
return (
|
|
124
|
-
<SheetPrimitive.Description
|
|
125
|
-
className={cn("text-muted-foreground text-sm", className)}
|
|
126
|
-
data-slot="sheet-description"
|
|
127
|
-
{...props}
|
|
128
|
-
/>
|
|
129
|
-
);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export {
|
|
133
|
-
Sheet,
|
|
134
|
-
SheetTrigger,
|
|
135
|
-
SheetClose,
|
|
136
|
-
SheetContent,
|
|
137
|
-
SheetHeader,
|
|
138
|
-
SheetFooter,
|
|
139
|
-
SheetTitle,
|
|
140
|
-
SheetDescription,
|
|
141
|
-
};
|