@vendure/dashboard 3.3.6-master-202507030835 → 3.3.6-master-202507031127
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 +27 -40
- package/src/app/routes/_authenticated/_collections/components/move-collections-dialog.tsx +7 -7
- package/src/app/routes/_authenticated/_customers/components/customer-address-card.tsx +3 -8
- package/src/lib/components/data-table/data-table-bulk-actions.tsx +9 -3
- package/src/lib/components/data-table/data-table.tsx +3 -2
- package/src/lib/components/ui/accordion.tsx +45 -50
- package/src/lib/components/ui/alert-dialog.tsx +93 -122
- package/src/lib/components/ui/alert.tsx +48 -54
- package/src/lib/components/ui/badge.tsx +29 -37
- package/src/lib/components/ui/breadcrumb.tsx +82 -89
- package/src/lib/components/ui/button.tsx +51 -52
- package/src/lib/components/ui/calendar.tsx +435 -196
- package/src/lib/components/ui/card.tsx +33 -78
- package/src/lib/components/ui/checkbox.tsx +23 -28
- package/src/lib/components/ui/collapsible.tsx +2 -0
- package/src/lib/components/ui/command.tsx +114 -159
- package/src/lib/components/ui/dialog.tsx +90 -115
- package/src/lib/components/ui/dropdown-menu.tsx +170 -207
- package/src/lib/components/ui/form.tsx +114 -138
- package/src/lib/components/ui/hover-card.tsx +26 -32
- package/src/lib/components/ui/input.tsx +15 -17
- package/src/lib/components/ui/label.tsx +16 -19
- package/src/lib/components/ui/pagination.tsx +87 -108
- package/src/lib/components/ui/popover.tsx +28 -36
- package/src/lib/components/ui/scroll-area.tsx +40 -48
- package/src/lib/components/ui/select.tsx +129 -151
- package/src/lib/components/ui/separator.tsx +20 -22
- package/src/lib/components/ui/sheet.tsx +91 -110
- package/src/lib/components/ui/sidebar.tsx +622 -652
- package/src/lib/components/ui/skeleton.tsx +10 -10
- package/src/lib/components/ui/sonner.tsx +11 -7
- package/src/lib/components/ui/switch.tsx +22 -27
- package/src/lib/components/ui/table.tsx +64 -96
- package/src/lib/components/ui/tabs.tsx +38 -56
- package/src/lib/components/ui/textarea.tsx +14 -14
- package/src/lib/components/ui/tooltip.tsx +37 -45
- package/src/lib/components/ui/aspect-ratio.tsx +0 -9
- package/src/lib/components/ui/avatar.tsx +0 -53
- package/src/lib/components/ui/carousel.tsx +0 -241
- package/src/lib/components/ui/chart.tsx +0 -351
- package/src/lib/components/ui/context-menu.tsx +0 -252
- package/src/lib/components/ui/drawer.tsx +0 -133
- package/src/lib/components/ui/input-otp.tsx +0 -77
- package/src/lib/components/ui/menubar.tsx +0 -274
- package/src/lib/components/ui/navigation-menu.tsx +0 -168
- package/src/lib/components/ui/progress.tsx +0 -29
- package/src/lib/components/ui/radio-group.tsx +0 -45
- package/src/lib/components/ui/resizable.tsx +0 -54
- package/src/lib/components/ui/slider.tsx +0 -63
- package/src/lib/components/ui/toggle-group.tsx +0 -73
- package/src/lib/components/ui/toggle.tsx +0 -45
|
@@ -1,48 +1,40 @@
|
|
|
1
|
-
|
|
1
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
|
|
3
|
-
import
|
|
4
|
-
import * as PopoverPrimitive from "@radix-ui/react-popover"
|
|
4
|
+
import { cn } from '@/vdb/lib/utils.js';
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
function Popover({
|
|
9
|
-
...props
|
|
10
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Root>) {
|
|
11
|
-
return <PopoverPrimitive.Root data-slot="popover" {...props} />
|
|
6
|
+
function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>) {
|
|
7
|
+
return <PopoverPrimitive.Root data-slot="popover" {...props} />;
|
|
12
8
|
}
|
|
13
9
|
|
|
14
|
-
function PopoverTrigger({
|
|
15
|
-
|
|
16
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {
|
|
17
|
-
return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />
|
|
10
|
+
function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>) {
|
|
11
|
+
return <PopoverPrimitive.Trigger data-slot="popover-trigger" {...props} />;
|
|
18
12
|
}
|
|
19
13
|
|
|
20
14
|
function PopoverContent({
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
15
|
+
className,
|
|
16
|
+
align = 'center',
|
|
17
|
+
sideOffset = 4,
|
|
18
|
+
...props
|
|
25
19
|
}: React.ComponentProps<typeof PopoverPrimitive.Content>) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
20
|
+
return (
|
|
21
|
+
<PopoverPrimitive.Portal>
|
|
22
|
+
<PopoverPrimitive.Content
|
|
23
|
+
data-slot="popover-content"
|
|
24
|
+
align={align}
|
|
25
|
+
sideOffset={sideOffset}
|
|
26
|
+
className={cn(
|
|
27
|
+
'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 rounded-md border p-4 shadow-md outline-hidden',
|
|
28
|
+
className,
|
|
29
|
+
)}
|
|
30
|
+
{...props}
|
|
31
|
+
/>
|
|
32
|
+
</PopoverPrimitive.Portal>
|
|
33
|
+
);
|
|
40
34
|
}
|
|
41
35
|
|
|
42
|
-
function PopoverAnchor({
|
|
43
|
-
|
|
44
|
-
}: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {
|
|
45
|
-
return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />
|
|
36
|
+
function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>) {
|
|
37
|
+
return <PopoverPrimitive.Anchor data-slot="popover-anchor" {...props} />;
|
|
46
38
|
}
|
|
47
39
|
|
|
48
|
-
export { Popover,
|
|
40
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
|
|
@@ -1,58 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
|
|
3
|
-
import
|
|
4
|
-
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area"
|
|
5
|
-
|
|
6
|
-
import { cn } from "@/vdb/lib/utils"
|
|
4
|
+
import { cn } from '@/vdb/lib/utils.js';
|
|
7
5
|
|
|
8
6
|
function ScrollArea({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
className,
|
|
8
|
+
children,
|
|
9
|
+
...props
|
|
12
10
|
}: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<ScrollBar />
|
|
26
|
-
<ScrollAreaPrimitive.Corner />
|
|
27
|
-
</ScrollAreaPrimitive.Root>
|
|
28
|
-
)
|
|
11
|
+
return (
|
|
12
|
+
<ScrollAreaPrimitive.Root data-slot="scroll-area" className={cn('relative', className)} {...props}>
|
|
13
|
+
<ScrollAreaPrimitive.Viewport
|
|
14
|
+
data-slot="scroll-area-viewport"
|
|
15
|
+
className="ring-ring/10 dark:ring-ring/20 dark:outline-ring/40 outline-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] focus-visible:ring-4 focus-visible:outline-1"
|
|
16
|
+
>
|
|
17
|
+
{children}
|
|
18
|
+
</ScrollAreaPrimitive.Viewport>
|
|
19
|
+
<ScrollBar />
|
|
20
|
+
<ScrollAreaPrimitive.Corner />
|
|
21
|
+
</ScrollAreaPrimitive.Root>
|
|
22
|
+
);
|
|
29
23
|
}
|
|
30
24
|
|
|
31
25
|
function ScrollBar({
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
className,
|
|
27
|
+
orientation = 'vertical',
|
|
28
|
+
...props
|
|
35
29
|
}: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
</ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
55
|
-
)
|
|
30
|
+
return (
|
|
31
|
+
<ScrollAreaPrimitive.ScrollAreaScrollbar
|
|
32
|
+
data-slot="scroll-area-scrollbar"
|
|
33
|
+
orientation={orientation}
|
|
34
|
+
className={cn(
|
|
35
|
+
'flex touch-none p-px transition-colors select-none',
|
|
36
|
+
orientation === 'vertical' && 'h-full w-2.5 border-l border-l-transparent',
|
|
37
|
+
orientation === 'horizontal' && 'h-2.5 flex-col border-t border-t-transparent',
|
|
38
|
+
className,
|
|
39
|
+
)}
|
|
40
|
+
{...props}
|
|
41
|
+
>
|
|
42
|
+
<ScrollAreaPrimitive.ScrollAreaThumb
|
|
43
|
+
data-slot="scroll-area-thumb"
|
|
44
|
+
className="bg-border relative flex-1 rounded-full"
|
|
45
|
+
/>
|
|
46
|
+
</ScrollAreaPrimitive.ScrollAreaScrollbar>
|
|
47
|
+
);
|
|
56
48
|
}
|
|
57
49
|
|
|
58
|
-
export { ScrollArea, ScrollBar }
|
|
50
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -1,183 +1,161 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
+
import { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';
|
|
3
|
+
import * as React from 'react';
|
|
4
4
|
|
|
5
|
-
import { cn } from
|
|
5
|
+
import { cn } from '@/vdb/lib/utils.js';
|
|
6
6
|
|
|
7
|
-
function Select({
|
|
8
|
-
|
|
9
|
-
}: React.ComponentProps<typeof SelectPrimitive.Root>) {
|
|
10
|
-
return <SelectPrimitive.Root data-slot="select" {...props} />
|
|
7
|
+
function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>) {
|
|
8
|
+
return <SelectPrimitive.Root data-slot="select" {...props} />;
|
|
11
9
|
}
|
|
12
10
|
|
|
13
|
-
function SelectGroup({
|
|
14
|
-
|
|
15
|
-
}: React.ComponentProps<typeof SelectPrimitive.Group>) {
|
|
16
|
-
return <SelectPrimitive.Group data-slot="select-group" {...props} />
|
|
11
|
+
function SelectGroup({ ...props }: React.ComponentProps<typeof SelectPrimitive.Group>) {
|
|
12
|
+
return <SelectPrimitive.Group data-slot="select-group" {...props} />;
|
|
17
13
|
}
|
|
18
14
|
|
|
19
|
-
function SelectValue({
|
|
20
|
-
|
|
21
|
-
}: React.ComponentProps<typeof SelectPrimitive.Value>) {
|
|
22
|
-
return <SelectPrimitive.Value data-slot="select-value" {...props} />
|
|
15
|
+
function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>) {
|
|
16
|
+
return <SelectPrimitive.Value data-slot="select-value" {...props} />;
|
|
23
17
|
}
|
|
24
18
|
|
|
25
19
|
function SelectTrigger({
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
className,
|
|
21
|
+
size = 'default',
|
|
22
|
+
children,
|
|
23
|
+
...props
|
|
30
24
|
}: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
31
|
-
|
|
25
|
+
size?: 'sm' | 'default';
|
|
32
26
|
}) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
27
|
+
return (
|
|
28
|
+
<SelectPrimitive.Trigger
|
|
29
|
+
data-slot="select-trigger"
|
|
30
|
+
data-size={size}
|
|
31
|
+
className={cn(
|
|
32
|
+
"border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground 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 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
33
|
+
className,
|
|
34
|
+
)}
|
|
35
|
+
{...props}
|
|
36
|
+
>
|
|
37
|
+
{children}
|
|
38
|
+
<SelectPrimitive.Icon asChild>
|
|
39
|
+
<ChevronDownIcon className="size-4 opacity-50" />
|
|
40
|
+
</SelectPrimitive.Icon>
|
|
41
|
+
</SelectPrimitive.Trigger>
|
|
42
|
+
);
|
|
49
43
|
}
|
|
50
44
|
|
|
51
45
|
function SelectContent({
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
className,
|
|
47
|
+
children,
|
|
48
|
+
position = 'popper',
|
|
49
|
+
...props
|
|
56
50
|
}: React.ComponentProps<typeof SelectPrimitive.Content>) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
51
|
+
return (
|
|
52
|
+
<SelectPrimitive.Portal>
|
|
53
|
+
<SelectPrimitive.Content
|
|
54
|
+
data-slot="select-content"
|
|
55
|
+
className={cn(
|
|
56
|
+
'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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border shadow-md',
|
|
57
|
+
position === 'popper' &&
|
|
58
|
+
'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1',
|
|
59
|
+
className,
|
|
60
|
+
)}
|
|
61
|
+
position={position}
|
|
62
|
+
{...props}
|
|
63
|
+
>
|
|
64
|
+
<SelectScrollUpButton />
|
|
65
|
+
<SelectPrimitive.Viewport
|
|
66
|
+
className={cn(
|
|
67
|
+
'p-1',
|
|
68
|
+
position === 'popper' &&
|
|
69
|
+
'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1',
|
|
70
|
+
)}
|
|
71
|
+
>
|
|
72
|
+
{children}
|
|
73
|
+
</SelectPrimitive.Viewport>
|
|
74
|
+
<SelectScrollDownButton />
|
|
75
|
+
</SelectPrimitive.Content>
|
|
76
|
+
</SelectPrimitive.Portal>
|
|
77
|
+
);
|
|
84
78
|
}
|
|
85
79
|
|
|
86
|
-
function SelectLabel({
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
{...props}
|
|
95
|
-
/>
|
|
96
|
-
)
|
|
80
|
+
function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>) {
|
|
81
|
+
return (
|
|
82
|
+
<SelectPrimitive.Label
|
|
83
|
+
data-slot="select-label"
|
|
84
|
+
className={cn('px-2 py-1.5 text-sm font-medium', className)}
|
|
85
|
+
{...props}
|
|
86
|
+
/>
|
|
87
|
+
);
|
|
97
88
|
}
|
|
98
89
|
|
|
99
|
-
function SelectItem({
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
</span>
|
|
118
|
-
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
119
|
-
</SelectPrimitive.Item>
|
|
120
|
-
)
|
|
90
|
+
function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>) {
|
|
91
|
+
return (
|
|
92
|
+
<SelectPrimitive.Item
|
|
93
|
+
data-slot="select-item"
|
|
94
|
+
className={cn(
|
|
95
|
+
"focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
|
|
96
|
+
className,
|
|
97
|
+
)}
|
|
98
|
+
{...props}
|
|
99
|
+
>
|
|
100
|
+
<span className="absolute right-2 flex size-3.5 items-center justify-center">
|
|
101
|
+
<SelectPrimitive.ItemIndicator>
|
|
102
|
+
<CheckIcon className="size-4" />
|
|
103
|
+
</SelectPrimitive.ItemIndicator>
|
|
104
|
+
</span>
|
|
105
|
+
<SelectPrimitive.ItemText>{children}</SelectPrimitive.ItemText>
|
|
106
|
+
</SelectPrimitive.Item>
|
|
107
|
+
);
|
|
121
108
|
}
|
|
122
109
|
|
|
123
|
-
function SelectSeparator({
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
{...props}
|
|
132
|
-
/>
|
|
133
|
-
)
|
|
110
|
+
function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>) {
|
|
111
|
+
return (
|
|
112
|
+
<SelectPrimitive.Separator
|
|
113
|
+
data-slot="select-separator"
|
|
114
|
+
className={cn('bg-border pointer-events-none -mx-1 my-1 h-px', className)}
|
|
115
|
+
{...props}
|
|
116
|
+
/>
|
|
117
|
+
);
|
|
134
118
|
}
|
|
135
119
|
|
|
136
120
|
function SelectScrollUpButton({
|
|
137
|
-
|
|
138
|
-
|
|
121
|
+
className,
|
|
122
|
+
...props
|
|
139
123
|
}: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>) {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
<ChevronUpIcon className="size-4" />
|
|
150
|
-
</SelectPrimitive.ScrollUpButton>
|
|
151
|
-
)
|
|
124
|
+
return (
|
|
125
|
+
<SelectPrimitive.ScrollUpButton
|
|
126
|
+
data-slot="select-scroll-up-button"
|
|
127
|
+
className={cn('flex cursor-default items-center justify-center py-1', className)}
|
|
128
|
+
{...props}
|
|
129
|
+
>
|
|
130
|
+
<ChevronUpIcon className="size-4" />
|
|
131
|
+
</SelectPrimitive.ScrollUpButton>
|
|
132
|
+
);
|
|
152
133
|
}
|
|
153
134
|
|
|
154
135
|
function SelectScrollDownButton({
|
|
155
|
-
|
|
156
|
-
|
|
136
|
+
className,
|
|
137
|
+
...props
|
|
157
138
|
}: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
<ChevronDownIcon className="size-4" />
|
|
168
|
-
</SelectPrimitive.ScrollDownButton>
|
|
169
|
-
)
|
|
139
|
+
return (
|
|
140
|
+
<SelectPrimitive.ScrollDownButton
|
|
141
|
+
data-slot="select-scroll-down-button"
|
|
142
|
+
className={cn('flex cursor-default items-center justify-center py-1', className)}
|
|
143
|
+
{...props}
|
|
144
|
+
>
|
|
145
|
+
<ChevronDownIcon className="size-4" />
|
|
146
|
+
</SelectPrimitive.ScrollDownButton>
|
|
147
|
+
);
|
|
170
148
|
}
|
|
171
149
|
|
|
172
150
|
export {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
151
|
+
Select,
|
|
152
|
+
SelectContent,
|
|
153
|
+
SelectGroup,
|
|
154
|
+
SelectItem,
|
|
155
|
+
SelectLabel,
|
|
156
|
+
SelectScrollDownButton,
|
|
157
|
+
SelectScrollUpButton,
|
|
158
|
+
SelectSeparator,
|
|
159
|
+
SelectTrigger,
|
|
160
|
+
SelectValue,
|
|
161
|
+
};
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
|
|
3
|
-
import
|
|
4
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator"
|
|
5
|
-
|
|
6
|
-
import { cn } from "@/vdb/lib/utils"
|
|
4
|
+
import { cn } from '@/vdb/lib/utils.js';
|
|
7
5
|
|
|
8
6
|
function Separator({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
className,
|
|
8
|
+
orientation = 'horizontal',
|
|
9
|
+
decorative = true,
|
|
10
|
+
...props
|
|
13
11
|
}: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
return (
|
|
13
|
+
<SeparatorPrimitive.Root
|
|
14
|
+
data-slot="separator-root"
|
|
15
|
+
decorative={decorative}
|
|
16
|
+
orientation={orientation}
|
|
17
|
+
className={cn(
|
|
18
|
+
'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px',
|
|
19
|
+
className,
|
|
20
|
+
)}
|
|
21
|
+
{...props}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
26
24
|
}
|
|
27
25
|
|
|
28
|
-
export { Separator }
|
|
26
|
+
export { Separator };
|