@blips/ui 0.0.1 → 1.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.cjs +1347 -146
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +185 -6
- package/dist/index.d.ts +185 -6
- package/dist/index.js +1295 -148
- package/dist/index.js.map +1 -1
- package/package.json +25 -13
- package/src/components/accordion.tsx +12 -12
- package/src/components/alert-dialog.tsx +25 -24
- package/src/components/alert.tsx +11 -11
- package/src/components/aspect-ratio.tsx +3 -3
- package/src/components/avatar.tsx +11 -11
- package/src/components/badge.tsx +6 -6
- package/src/components/breadcrumb.tsx +23 -23
- package/src/components/button-group.tsx +83 -0
- package/src/components/button.tsx +11 -11
- package/src/components/calendar.tsx +21 -24
- package/src/components/card.tsx +15 -22
- package/src/components/carousel.tsx +72 -71
- package/src/components/chart.tsx +368 -0
- package/src/components/checkbox.tsx +7 -7
- package/src/components/collapsible.tsx +6 -6
- package/src/components/command.tsx +27 -26
- package/src/components/context-menu.tsx +33 -33
- package/src/components/dialog.tsx +22 -22
- package/src/components/drawer.tsx +21 -21
- package/src/components/dropdown-menu.tsx +34 -34
- package/src/components/form.tsx +178 -0
- package/src/components/hover-card.tsx +8 -8
- package/src/components/input-group.tsx +175 -0
- package/src/components/input-otp.tsx +16 -16
- package/src/components/input.tsx +6 -6
- package/src/components/kbd.tsx +28 -0
- package/src/components/label.tsx +9 -9
- package/src/components/menubar.tsx +36 -36
- package/src/components/navigation-menu.tsx +21 -21
- package/src/components/pagination.tsx +22 -21
- package/src/components/popover.tsx +8 -8
- package/src/components/progress.tsx +7 -7
- package/src/components/radio-group.tsx +11 -11
- package/src/components/resizable.tsx +14 -14
- package/src/components/scroll-area.tsx +8 -8
- package/src/components/select.tsx +23 -23
- package/src/components/separator.tsx +6 -6
- package/src/components/sheet.tsx +24 -24
- package/src/components/sidebar.tsx +774 -0
- package/src/components/skeleton.tsx +3 -3
- package/src/components/slider.tsx +6 -6
- package/src/components/sonner.tsx +9 -9
- package/src/components/spinner.tsx +16 -0
- package/src/components/switch.tsx +6 -6
- package/src/components/table.tsx +19 -19
- package/src/components/tabs.tsx +11 -11
- package/src/components/textarea.tsx +6 -6
- package/src/components/toggle-group.tsx +15 -14
- package/src/components/toggle.tsx +8 -8
- package/src/components/tooltip.tsx +10 -10
- package/src/globals.css +45 -0
- package/src/hooks/use-mobile.tsx +19 -0
- package/src/index.ts +78 -0
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { cn } from "
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"
|
|
3
|
+
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
|
+
import { type ButtonProps, buttonVariants } from "@/components/button"
|
|
5
6
|
|
|
6
7
|
const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
|
|
7
8
|
<nav
|
|
@@ -10,8 +11,8 @@ const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (
|
|
|
10
11
|
className={cn("mx-auto flex w-full justify-center", className)}
|
|
11
12
|
{...props}
|
|
12
13
|
/>
|
|
13
|
-
)
|
|
14
|
-
Pagination.displayName = "Pagination"
|
|
14
|
+
)
|
|
15
|
+
Pagination.displayName = "Pagination"
|
|
15
16
|
|
|
16
17
|
const PaginationContent = React.forwardRef<
|
|
17
18
|
HTMLUListElement,
|
|
@@ -22,21 +23,21 @@ const PaginationContent = React.forwardRef<
|
|
|
22
23
|
className={cn("flex flex-row items-center gap-1", className)}
|
|
23
24
|
{...props}
|
|
24
25
|
/>
|
|
25
|
-
))
|
|
26
|
-
PaginationContent.displayName = "PaginationContent"
|
|
26
|
+
))
|
|
27
|
+
PaginationContent.displayName = "PaginationContent"
|
|
27
28
|
|
|
28
29
|
const PaginationItem = React.forwardRef<
|
|
29
30
|
HTMLLIElement,
|
|
30
31
|
React.ComponentProps<"li">
|
|
31
32
|
>(({ className, ...props }, ref) => (
|
|
32
33
|
<li ref={ref} className={cn("", className)} {...props} />
|
|
33
|
-
))
|
|
34
|
-
PaginationItem.displayName = "PaginationItem"
|
|
34
|
+
))
|
|
35
|
+
PaginationItem.displayName = "PaginationItem"
|
|
35
36
|
|
|
36
37
|
type PaginationLinkProps = {
|
|
37
|
-
isActive?: boolean
|
|
38
|
+
isActive?: boolean
|
|
38
39
|
} & Pick<ButtonProps, "size"> &
|
|
39
|
-
React.ComponentProps<"a"
|
|
40
|
+
React.ComponentProps<"a">
|
|
40
41
|
|
|
41
42
|
const PaginationLink = ({
|
|
42
43
|
className,
|
|
@@ -55,8 +56,8 @@ const PaginationLink = ({
|
|
|
55
56
|
)}
|
|
56
57
|
{...props}
|
|
57
58
|
/>
|
|
58
|
-
)
|
|
59
|
-
PaginationLink.displayName = "PaginationLink"
|
|
59
|
+
)
|
|
60
|
+
PaginationLink.displayName = "PaginationLink"
|
|
60
61
|
|
|
61
62
|
const PaginationPrevious = ({
|
|
62
63
|
className,
|
|
@@ -71,8 +72,8 @@ const PaginationPrevious = ({
|
|
|
71
72
|
<ChevronLeft className="h-4 w-4" />
|
|
72
73
|
<span>Previous</span>
|
|
73
74
|
</PaginationLink>
|
|
74
|
-
)
|
|
75
|
-
PaginationPrevious.displayName = "PaginationPrevious"
|
|
75
|
+
)
|
|
76
|
+
PaginationPrevious.displayName = "PaginationPrevious"
|
|
76
77
|
|
|
77
78
|
const PaginationNext = ({
|
|
78
79
|
className,
|
|
@@ -87,8 +88,8 @@ const PaginationNext = ({
|
|
|
87
88
|
<span>Next</span>
|
|
88
89
|
<ChevronRight className="h-4 w-4" />
|
|
89
90
|
</PaginationLink>
|
|
90
|
-
)
|
|
91
|
-
PaginationNext.displayName = "PaginationNext"
|
|
91
|
+
)
|
|
92
|
+
PaginationNext.displayName = "PaginationNext"
|
|
92
93
|
|
|
93
94
|
const PaginationEllipsis = ({
|
|
94
95
|
className,
|
|
@@ -102,8 +103,8 @@ const PaginationEllipsis = ({
|
|
|
102
103
|
<MoreHorizontal className="h-4 w-4" />
|
|
103
104
|
<span className="sr-only">More pages</span>
|
|
104
105
|
</span>
|
|
105
|
-
)
|
|
106
|
-
PaginationEllipsis.displayName = "PaginationEllipsis"
|
|
106
|
+
)
|
|
107
|
+
PaginationEllipsis.displayName = "PaginationEllipsis"
|
|
107
108
|
|
|
108
109
|
export {
|
|
109
110
|
Pagination,
|
|
@@ -113,4 +114,4 @@ export {
|
|
|
113
114
|
PaginationLink,
|
|
114
115
|
PaginationNext,
|
|
115
116
|
PaginationPrevious,
|
|
116
|
-
}
|
|
117
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import * as PopoverPrimitive from "@radix-ui/react-popover"
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
5
|
|
|
6
|
-
const Popover = PopoverPrimitive.Root
|
|
6
|
+
const Popover = PopoverPrimitive.Root
|
|
7
7
|
|
|
8
|
-
const PopoverTrigger = PopoverPrimitive.Trigger
|
|
8
|
+
const PopoverTrigger = PopoverPrimitive.Trigger
|
|
9
9
|
|
|
10
10
|
const PopoverContent = React.forwardRef<
|
|
11
11
|
React.ElementRef<typeof PopoverPrimitive.Content>,
|
|
@@ -23,7 +23,7 @@ const PopoverContent = React.forwardRef<
|
|
|
23
23
|
{...props}
|
|
24
24
|
/>
|
|
25
25
|
</PopoverPrimitive.Portal>
|
|
26
|
-
))
|
|
27
|
-
PopoverContent.displayName = PopoverPrimitive.Content.displayName
|
|
26
|
+
))
|
|
27
|
+
PopoverContent.displayName = PopoverPrimitive.Content.displayName
|
|
28
28
|
|
|
29
|
-
export { Popover, PopoverTrigger, PopoverContent }
|
|
29
|
+
export { Popover, PopoverTrigger, PopoverContent }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use client"
|
|
1
|
+
"use client"
|
|
2
2
|
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import * as ProgressPrimitive from "@radix-ui/react-progress"
|
|
5
5
|
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
7
|
|
|
8
8
|
const Progress = React.forwardRef<
|
|
9
9
|
React.ElementRef<typeof ProgressPrimitive.Root>,
|
|
@@ -22,7 +22,7 @@ const Progress = React.forwardRef<
|
|
|
22
22
|
style={{ transform: `translateX(-${100 - (value || 0)}%)` }}
|
|
23
23
|
/>
|
|
24
24
|
</ProgressPrimitive.Root>
|
|
25
|
-
))
|
|
26
|
-
Progress.displayName = ProgressPrimitive.Root.displayName
|
|
25
|
+
))
|
|
26
|
+
Progress.displayName = ProgressPrimitive.Root.displayName
|
|
27
27
|
|
|
28
|
-
export { Progress }
|
|
28
|
+
export { Progress }
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"
|
|
3
|
+
import { Circle } from "lucide-react"
|
|
4
4
|
|
|
5
|
-
import { cn } from "
|
|
5
|
+
import { cn } from "@/lib/utils"
|
|
6
6
|
|
|
7
7
|
const RadioGroup = React.forwardRef<
|
|
8
8
|
React.ElementRef<typeof RadioGroupPrimitive.Root>,
|
|
@@ -14,9 +14,9 @@ const RadioGroup = React.forwardRef<
|
|
|
14
14
|
{...props}
|
|
15
15
|
ref={ref}
|
|
16
16
|
/>
|
|
17
|
-
)
|
|
18
|
-
})
|
|
19
|
-
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName
|
|
17
|
+
)
|
|
18
|
+
})
|
|
19
|
+
RadioGroup.displayName = RadioGroupPrimitive.Root.displayName
|
|
20
20
|
|
|
21
21
|
const RadioGroupItem = React.forwardRef<
|
|
22
22
|
React.ElementRef<typeof RadioGroupPrimitive.Item>,
|
|
@@ -35,8 +35,8 @@ const RadioGroupItem = React.forwardRef<
|
|
|
35
35
|
<Circle className="h-2.5 w-2.5 fill-current text-current" />
|
|
36
36
|
</RadioGroupPrimitive.Indicator>
|
|
37
37
|
</RadioGroupPrimitive.Item>
|
|
38
|
-
)
|
|
39
|
-
})
|
|
40
|
-
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName
|
|
38
|
+
)
|
|
39
|
+
})
|
|
40
|
+
RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName
|
|
41
41
|
|
|
42
|
-
export { RadioGroup, RadioGroupItem }
|
|
42
|
+
export { RadioGroup, RadioGroupItem }
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
"use client"
|
|
1
|
+
"use client"
|
|
2
2
|
|
|
3
|
-
import { GripVertical } from "lucide-react"
|
|
4
|
-
import
|
|
3
|
+
import { GripVertical } from "lucide-react"
|
|
4
|
+
import * as ResizablePrimitive from "react-resizable-panels"
|
|
5
5
|
|
|
6
|
-
import { cn } from "
|
|
6
|
+
import { cn } from "@/lib/utils"
|
|
7
7
|
|
|
8
8
|
const ResizablePanelGroup = ({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React.ComponentProps<typeof Group>) => (
|
|
12
|
-
<Group
|
|
11
|
+
}: React.ComponentProps<typeof ResizablePrimitive.Group>) => (
|
|
12
|
+
<ResizablePrimitive.Group
|
|
13
13
|
className={cn(
|
|
14
14
|
"flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
|
|
15
15
|
className
|
|
16
16
|
)}
|
|
17
17
|
{...props}
|
|
18
18
|
/>
|
|
19
|
-
)
|
|
19
|
+
)
|
|
20
20
|
|
|
21
|
-
const ResizablePanel = Panel
|
|
21
|
+
const ResizablePanel = ResizablePrimitive.Panel
|
|
22
22
|
|
|
23
23
|
const ResizableHandle = ({
|
|
24
24
|
withHandle,
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React.ComponentProps<typeof Separator> & {
|
|
28
|
-
withHandle?: boolean
|
|
27
|
+
}: React.ComponentProps<typeof ResizablePrimitive.Separator> & {
|
|
28
|
+
withHandle?: boolean
|
|
29
29
|
}) => (
|
|
30
|
-
<Separator
|
|
30
|
+
<ResizablePrimitive.Separator
|
|
31
31
|
className={cn(
|
|
32
32
|
"relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",
|
|
33
33
|
className
|
|
@@ -39,7 +39,7 @@ const ResizableHandle = ({
|
|
|
39
39
|
<GripVertical className="h-2.5 w-2.5" />
|
|
40
40
|
</div>
|
|
41
41
|
)}
|
|
42
|
-
</Separator>
|
|
43
|
-
)
|
|
42
|
+
</ResizablePrimitive.Separator>
|
|
43
|
+
)
|
|
44
44
|
|
|
45
|
-
export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
|
|
45
|
+
export { ResizablePanelGroup, ResizablePanel, ResizableHandle }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
5
|
|
|
6
6
|
const ScrollArea = React.forwardRef<
|
|
7
7
|
React.ElementRef<typeof ScrollAreaPrimitive.Root>,
|
|
@@ -18,8 +18,8 @@ const ScrollArea = React.forwardRef<
|
|
|
18
18
|
<ScrollBar />
|
|
19
19
|
<ScrollAreaPrimitive.Corner />
|
|
20
20
|
</ScrollAreaPrimitive.Root>
|
|
21
|
-
))
|
|
22
|
-
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
|
|
21
|
+
))
|
|
22
|
+
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName
|
|
23
23
|
|
|
24
24
|
const ScrollBar = React.forwardRef<
|
|
25
25
|
React.ElementRef<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>,
|
|
@@ -40,7 +40,7 @@ const ScrollBar = React.forwardRef<
|
|
|
40
40
|
>
|
|
41
41
|
<ScrollAreaPrimitive.ScrollAreaThumb className="relative flex-1 rounded-full bg-border" />
|
|
42
42
|
</ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
43
|
-
))
|
|
44
|
-
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
|
|
43
|
+
))
|
|
44
|
+
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName
|
|
45
45
|
|
|
46
|
-
export { ScrollArea, ScrollBar }
|
|
46
|
+
export { ScrollArea, ScrollBar }
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
"use client"
|
|
1
|
+
"use client"
|
|
2
2
|
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import * as SelectPrimitive from "@radix-ui/react-select"
|
|
5
|
+
import { Check, ChevronDown, ChevronUp } from "lucide-react"
|
|
6
6
|
|
|
7
|
-
import { cn } from "
|
|
7
|
+
import { cn } from "@/lib/utils"
|
|
8
8
|
|
|
9
|
-
const Select = SelectPrimitive.Root
|
|
9
|
+
const Select = SelectPrimitive.Root
|
|
10
10
|
|
|
11
|
-
const SelectGroup = SelectPrimitive.Group
|
|
11
|
+
const SelectGroup = SelectPrimitive.Group
|
|
12
12
|
|
|
13
|
-
const SelectValue = SelectPrimitive.Value
|
|
13
|
+
const SelectValue = SelectPrimitive.Value
|
|
14
14
|
|
|
15
15
|
const SelectTrigger = React.forwardRef<
|
|
16
16
|
React.ElementRef<typeof SelectPrimitive.Trigger>,
|
|
@@ -29,8 +29,8 @@ const SelectTrigger = React.forwardRef<
|
|
|
29
29
|
<ChevronDown className="h-4 w-4 opacity-50" />
|
|
30
30
|
</SelectPrimitive.Icon>
|
|
31
31
|
</SelectPrimitive.Trigger>
|
|
32
|
-
))
|
|
33
|
-
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
|
|
32
|
+
))
|
|
33
|
+
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName
|
|
34
34
|
|
|
35
35
|
const SelectScrollUpButton = React.forwardRef<
|
|
36
36
|
React.ElementRef<typeof SelectPrimitive.ScrollUpButton>,
|
|
@@ -46,8 +46,8 @@ const SelectScrollUpButton = React.forwardRef<
|
|
|
46
46
|
>
|
|
47
47
|
<ChevronUp className="h-4 w-4" />
|
|
48
48
|
</SelectPrimitive.ScrollUpButton>
|
|
49
|
-
))
|
|
50
|
-
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
|
|
49
|
+
))
|
|
50
|
+
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName
|
|
51
51
|
|
|
52
52
|
const SelectScrollDownButton = React.forwardRef<
|
|
53
53
|
React.ElementRef<typeof SelectPrimitive.ScrollDownButton>,
|
|
@@ -63,9 +63,9 @@ const SelectScrollDownButton = React.forwardRef<
|
|
|
63
63
|
>
|
|
64
64
|
<ChevronDown className="h-4 w-4" />
|
|
65
65
|
</SelectPrimitive.ScrollDownButton>
|
|
66
|
-
))
|
|
66
|
+
))
|
|
67
67
|
SelectScrollDownButton.displayName =
|
|
68
|
-
SelectPrimitive.ScrollDownButton.displayName
|
|
68
|
+
SelectPrimitive.ScrollDownButton.displayName
|
|
69
69
|
|
|
70
70
|
const SelectContent = React.forwardRef<
|
|
71
71
|
React.ElementRef<typeof SelectPrimitive.Content>,
|
|
@@ -96,8 +96,8 @@ const SelectContent = React.forwardRef<
|
|
|
96
96
|
<SelectScrollDownButton />
|
|
97
97
|
</SelectPrimitive.Content>
|
|
98
98
|
</SelectPrimitive.Portal>
|
|
99
|
-
))
|
|
100
|
-
SelectContent.displayName = SelectPrimitive.Content.displayName
|
|
99
|
+
))
|
|
100
|
+
SelectContent.displayName = SelectPrimitive.Content.displayName
|
|
101
101
|
|
|
102
102
|
const SelectLabel = React.forwardRef<
|
|
103
103
|
React.ElementRef<typeof SelectPrimitive.Label>,
|
|
@@ -108,8 +108,8 @@ const SelectLabel = React.forwardRef<
|
|
|
108
108
|
className={cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className)}
|
|
109
109
|
{...props}
|
|
110
110
|
/>
|
|
111
|
-
))
|
|
112
|
-
SelectLabel.displayName = SelectPrimitive.Label.displayName
|
|
111
|
+
))
|
|
112
|
+
SelectLabel.displayName = SelectPrimitive.Label.displayName
|
|
113
113
|
|
|
114
114
|
const SelectItem = React.forwardRef<
|
|
115
115
|
React.ElementRef<typeof SelectPrimitive.Item>,
|
|
@@ -131,8 +131,8 @@ const SelectItem = React.forwardRef<
|
|
|
131
131
|
|
|
132
132
|
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
133
133
|
</SelectPrimitive.Item>
|
|
134
|
-
))
|
|
135
|
-
SelectItem.displayName = SelectPrimitive.Item.displayName
|
|
134
|
+
))
|
|
135
|
+
SelectItem.displayName = SelectPrimitive.Item.displayName
|
|
136
136
|
|
|
137
137
|
const SelectSeparator = React.forwardRef<
|
|
138
138
|
React.ElementRef<typeof SelectPrimitive.Separator>,
|
|
@@ -143,8 +143,8 @@ const SelectSeparator = React.forwardRef<
|
|
|
143
143
|
className={cn("-mx-1 my-1 h-px bg-muted", className)}
|
|
144
144
|
{...props}
|
|
145
145
|
/>
|
|
146
|
-
))
|
|
147
|
-
SelectSeparator.displayName = SelectPrimitive.Separator.displayName
|
|
146
|
+
))
|
|
147
|
+
SelectSeparator.displayName = SelectPrimitive.Separator.displayName
|
|
148
148
|
|
|
149
149
|
export {
|
|
150
150
|
Select,
|
|
@@ -157,4 +157,4 @@ export {
|
|
|
157
157
|
SelectSeparator,
|
|
158
158
|
SelectScrollUpButton,
|
|
159
159
|
SelectScrollDownButton,
|
|
160
|
-
}
|
|
160
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as React from "react"
|
|
2
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator"
|
|
3
3
|
|
|
4
|
-
import { cn } from "
|
|
4
|
+
import { cn } from "@/lib/utils"
|
|
5
5
|
|
|
6
6
|
const Separator = React.forwardRef<
|
|
7
7
|
React.ElementRef<typeof SeparatorPrimitive.Root>,
|
|
@@ -23,7 +23,7 @@ const Separator = React.forwardRef<
|
|
|
23
23
|
{...props}
|
|
24
24
|
/>
|
|
25
25
|
)
|
|
26
|
-
)
|
|
27
|
-
Separator.displayName = SeparatorPrimitive.Root.displayName
|
|
26
|
+
)
|
|
27
|
+
Separator.displayName = SeparatorPrimitive.Root.displayName
|
|
28
28
|
|
|
29
|
-
export { Separator }
|
|
29
|
+
export { Separator }
|
package/src/components/sheet.tsx
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
"use client"
|
|
1
|
+
"use client"
|
|
2
2
|
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
3
|
+
import * as React from "react"
|
|
4
|
+
import * as SheetPrimitive from "@radix-ui/react-dialog"
|
|
5
|
+
import { cva, type VariantProps } from "class-variance-authority"
|
|
6
|
+
import { X } from "lucide-react"
|
|
7
7
|
|
|
8
|
-
import { cn } from "
|
|
8
|
+
import { cn } from "@/lib/utils"
|
|
9
9
|
|
|
10
|
-
const Sheet = SheetPrimitive.Root
|
|
10
|
+
const Sheet = SheetPrimitive.Root
|
|
11
11
|
|
|
12
|
-
const SheetTrigger = SheetPrimitive.Trigger
|
|
12
|
+
const SheetTrigger = SheetPrimitive.Trigger
|
|
13
13
|
|
|
14
|
-
const SheetClose = SheetPrimitive.Close
|
|
14
|
+
const SheetClose = SheetPrimitive.Close
|
|
15
15
|
|
|
16
|
-
const SheetPortal = SheetPrimitive.Portal
|
|
16
|
+
const SheetPortal = SheetPrimitive.Portal
|
|
17
17
|
|
|
18
18
|
const SheetOverlay = React.forwardRef<
|
|
19
19
|
React.ElementRef<typeof SheetPrimitive.Overlay>,
|
|
@@ -27,8 +27,8 @@ const SheetOverlay = React.forwardRef<
|
|
|
27
27
|
{...props}
|
|
28
28
|
ref={ref}
|
|
29
29
|
/>
|
|
30
|
-
))
|
|
31
|
-
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName
|
|
30
|
+
))
|
|
31
|
+
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName
|
|
32
32
|
|
|
33
33
|
const sheetVariants = cva(
|
|
34
34
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
@@ -47,7 +47,7 @@ const sheetVariants = cva(
|
|
|
47
47
|
side: "right",
|
|
48
48
|
},
|
|
49
49
|
}
|
|
50
|
-
)
|
|
50
|
+
)
|
|
51
51
|
|
|
52
52
|
interface SheetContentProps
|
|
53
53
|
extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>,
|
|
@@ -71,8 +71,8 @@ const SheetContent = React.forwardRef<
|
|
|
71
71
|
</SheetPrimitive.Close>
|
|
72
72
|
</SheetPrimitive.Content>
|
|
73
73
|
</SheetPortal>
|
|
74
|
-
))
|
|
75
|
-
SheetContent.displayName = SheetPrimitive.Content.displayName
|
|
74
|
+
))
|
|
75
|
+
SheetContent.displayName = SheetPrimitive.Content.displayName
|
|
76
76
|
|
|
77
77
|
const SheetHeader = ({
|
|
78
78
|
className,
|
|
@@ -85,8 +85,8 @@ const SheetHeader = ({
|
|
|
85
85
|
)}
|
|
86
86
|
{...props}
|
|
87
87
|
/>
|
|
88
|
-
)
|
|
89
|
-
SheetHeader.displayName = "SheetHeader"
|
|
88
|
+
)
|
|
89
|
+
SheetHeader.displayName = "SheetHeader"
|
|
90
90
|
|
|
91
91
|
const SheetFooter = ({
|
|
92
92
|
className,
|
|
@@ -99,8 +99,8 @@ const SheetFooter = ({
|
|
|
99
99
|
)}
|
|
100
100
|
{...props}
|
|
101
101
|
/>
|
|
102
|
-
)
|
|
103
|
-
SheetFooter.displayName = "SheetFooter"
|
|
102
|
+
)
|
|
103
|
+
SheetFooter.displayName = "SheetFooter"
|
|
104
104
|
|
|
105
105
|
const SheetTitle = React.forwardRef<
|
|
106
106
|
React.ElementRef<typeof SheetPrimitive.Title>,
|
|
@@ -111,8 +111,8 @@ const SheetTitle = React.forwardRef<
|
|
|
111
111
|
className={cn("text-lg font-semibold text-foreground", className)}
|
|
112
112
|
{...props}
|
|
113
113
|
/>
|
|
114
|
-
))
|
|
115
|
-
SheetTitle.displayName = SheetPrimitive.Title.displayName
|
|
114
|
+
))
|
|
115
|
+
SheetTitle.displayName = SheetPrimitive.Title.displayName
|
|
116
116
|
|
|
117
117
|
const SheetDescription = React.forwardRef<
|
|
118
118
|
React.ElementRef<typeof SheetPrimitive.Description>,
|
|
@@ -123,8 +123,8 @@ const SheetDescription = React.forwardRef<
|
|
|
123
123
|
className={cn("text-sm text-muted-foreground", className)}
|
|
124
124
|
{...props}
|
|
125
125
|
/>
|
|
126
|
-
))
|
|
127
|
-
SheetDescription.displayName = SheetPrimitive.Description.displayName
|
|
126
|
+
))
|
|
127
|
+
SheetDescription.displayName = SheetPrimitive.Description.displayName
|
|
128
128
|
|
|
129
129
|
export {
|
|
130
130
|
Sheet,
|
|
@@ -137,4 +137,4 @@ export {
|
|
|
137
137
|
SheetFooter,
|
|
138
138
|
SheetTitle,
|
|
139
139
|
SheetDescription,
|
|
140
|
-
}
|
|
140
|
+
}
|