@vendure/dashboard 3.3.6-master-202507030835 → 3.3.6-master-202507031258

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 (53) hide show
  1. package/package.json +26 -39
  2. package/src/app/routes/_authenticated/_collections/components/move-collections-dialog.tsx +7 -7
  3. package/src/app/routes/_authenticated/_customers/components/customer-address-card.tsx +3 -8
  4. package/src/lib/components/data-table/data-table-bulk-actions.tsx +9 -3
  5. package/src/lib/components/data-table/data-table.tsx +3 -2
  6. package/src/lib/components/shared/translatable-form-field.tsx +2 -1
  7. package/src/lib/components/ui/accordion.tsx +45 -50
  8. package/src/lib/components/ui/alert-dialog.tsx +93 -122
  9. package/src/lib/components/ui/alert.tsx +48 -54
  10. package/src/lib/components/ui/badge.tsx +29 -37
  11. package/src/lib/components/ui/breadcrumb.tsx +82 -89
  12. package/src/lib/components/ui/button.tsx +51 -52
  13. package/src/lib/components/ui/calendar.tsx +435 -196
  14. package/src/lib/components/ui/card.tsx +33 -78
  15. package/src/lib/components/ui/checkbox.tsx +23 -28
  16. package/src/lib/components/ui/collapsible.tsx +2 -0
  17. package/src/lib/components/ui/command.tsx +114 -159
  18. package/src/lib/components/ui/dialog.tsx +90 -115
  19. package/src/lib/components/ui/dropdown-menu.tsx +170 -207
  20. package/src/lib/components/ui/form.tsx +114 -138
  21. package/src/lib/components/ui/hover-card.tsx +26 -32
  22. package/src/lib/components/ui/input.tsx +15 -17
  23. package/src/lib/components/ui/label.tsx +16 -19
  24. package/src/lib/components/ui/pagination.tsx +87 -108
  25. package/src/lib/components/ui/popover.tsx +28 -36
  26. package/src/lib/components/ui/scroll-area.tsx +40 -48
  27. package/src/lib/components/ui/separator.tsx +20 -22
  28. package/src/lib/components/ui/sheet.tsx +91 -110
  29. package/src/lib/components/ui/sidebar.tsx +622 -652
  30. package/src/lib/components/ui/skeleton.tsx +10 -10
  31. package/src/lib/components/ui/sonner.tsx +11 -7
  32. package/src/lib/components/ui/switch.tsx +22 -27
  33. package/src/lib/components/ui/table.tsx +64 -96
  34. package/src/lib/components/ui/tabs.tsx +38 -56
  35. package/src/lib/components/ui/textarea.tsx +14 -14
  36. package/src/lib/components/ui/tooltip.tsx +37 -45
  37. package/src/lib/framework/page/detail-page.tsx +26 -20
  38. package/src/lib/graphql/graphql-env.d.ts +1 -1
  39. package/src/lib/components/ui/aspect-ratio.tsx +0 -9
  40. package/src/lib/components/ui/avatar.tsx +0 -53
  41. package/src/lib/components/ui/carousel.tsx +0 -241
  42. package/src/lib/components/ui/chart.tsx +0 -351
  43. package/src/lib/components/ui/context-menu.tsx +0 -252
  44. package/src/lib/components/ui/drawer.tsx +0 -133
  45. package/src/lib/components/ui/input-otp.tsx +0 -77
  46. package/src/lib/components/ui/menubar.tsx +0 -274
  47. package/src/lib/components/ui/navigation-menu.tsx +0 -168
  48. package/src/lib/components/ui/progress.tsx +0 -29
  49. package/src/lib/components/ui/radio-group.tsx +0 -45
  50. package/src/lib/components/ui/resizable.tsx +0 -54
  51. package/src/lib/components/ui/slider.tsx +0 -63
  52. package/src/lib/components/ui/toggle-group.tsx +0 -73
  53. package/src/lib/components/ui/toggle.tsx +0 -45
@@ -1,48 +1,40 @@
1
- "use client"
1
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
2
+ import * as React from 'react';
2
3
 
3
- import * as React from "react"
4
- import * as PopoverPrimitive from "@radix-ui/react-popover"
4
+ import { cn } from '@/vdb/lib/utils.js';
5
5
 
6
- import { cn } from "@/vdb/lib/utils"
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
- ...props
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
- className,
22
- align = "center",
23
- sideOffset = 4,
24
- ...props
15
+ className,
16
+ align = 'center',
17
+ sideOffset = 4,
18
+ ...props
25
19
  }: React.ComponentProps<typeof PopoverPrimitive.Content>) {
26
- return (
27
- <PopoverPrimitive.Portal>
28
- <PopoverPrimitive.Content
29
- data-slot="popover-content"
30
- align={align}
31
- sideOffset={sideOffset}
32
- className={cn(
33
- "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 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
34
- className
35
- )}
36
- {...props}
37
- />
38
- </PopoverPrimitive.Portal>
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
- ...props
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, PopoverTrigger, PopoverContent, PopoverAnchor }
40
+ export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger };
@@ -1,58 +1,50 @@
1
- "use client"
1
+ import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
2
+ import * as React from 'react';
2
3
 
3
- import * as React from "react"
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
- className,
10
- children,
11
- ...props
7
+ className,
8
+ children,
9
+ ...props
12
10
  }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>) {
13
- return (
14
- <ScrollAreaPrimitive.Root
15
- data-slot="scroll-area"
16
- className={cn("relative", className)}
17
- {...props}
18
- >
19
- <ScrollAreaPrimitive.Viewport
20
- data-slot="scroll-area-viewport"
21
- className="focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1"
22
- >
23
- {children}
24
- </ScrollAreaPrimitive.Viewport>
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
- className,
33
- orientation = "vertical",
34
- ...props
26
+ className,
27
+ orientation = 'vertical',
28
+ ...props
35
29
  }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>) {
36
- return (
37
- <ScrollAreaPrimitive.ScrollAreaScrollbar
38
- data-slot="scroll-area-scrollbar"
39
- orientation={orientation}
40
- className={cn(
41
- "flex touch-none p-px transition-colors select-none",
42
- orientation === "vertical" &&
43
- "h-full w-2.5 border-l border-l-transparent",
44
- orientation === "horizontal" &&
45
- "h-2.5 flex-col border-t border-t-transparent",
46
- className
47
- )}
48
- {...props}
49
- >
50
- <ScrollAreaPrimitive.ScrollAreaThumb
51
- data-slot="scroll-area-thumb"
52
- className="bg-border relative flex-1 rounded-full"
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,28 +1,26 @@
1
- "use client"
1
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
2
+ import * as React from 'react';
2
3
 
3
- import * as React from "react"
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
- className,
10
- orientation = "horizontal",
11
- decorative = true,
12
- ...props
7
+ className,
8
+ orientation = 'horizontal',
9
+ decorative = true,
10
+ ...props
13
11
  }: React.ComponentProps<typeof SeparatorPrimitive.Root>) {
14
- return (
15
- <SeparatorPrimitive.Root
16
- data-slot="separator"
17
- decorative={decorative}
18
- orientation={orientation}
19
- className={cn(
20
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
21
- className
22
- )}
23
- {...props}
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 };
@@ -1,137 +1,118 @@
1
- import * as React from "react"
2
- import * as SheetPrimitive from "@radix-ui/react-dialog"
3
- import { XIcon } from "lucide-react"
1
+ 'use client';
4
2
 
5
- import { cn } from "@/vdb/lib/utils"
3
+ import * as SheetPrimitive from '@radix-ui/react-dialog';
4
+ import { XIcon } from 'lucide-react';
5
+ import * as React from 'react';
6
+
7
+ import { cn } from '@/vdb/lib/utils.js';
6
8
 
7
9
  function Sheet({ ...props }: React.ComponentProps<typeof SheetPrimitive.Root>) {
8
- return <SheetPrimitive.Root data-slot="sheet" {...props} />
10
+ return <SheetPrimitive.Root data-slot="sheet" {...props} />;
9
11
  }
10
12
 
11
- function SheetTrigger({
12
- ...props
13
- }: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
14
- return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />
13
+ function SheetTrigger({ ...props }: React.ComponentProps<typeof SheetPrimitive.Trigger>) {
14
+ return <SheetPrimitive.Trigger data-slot="sheet-trigger" {...props} />;
15
15
  }
16
16
 
17
- function SheetClose({
18
- ...props
19
- }: React.ComponentProps<typeof SheetPrimitive.Close>) {
20
- return <SheetPrimitive.Close data-slot="sheet-close" {...props} />
17
+ function SheetClose({ ...props }: React.ComponentProps<typeof SheetPrimitive.Close>) {
18
+ return <SheetPrimitive.Close data-slot="sheet-close" {...props} />;
21
19
  }
22
20
 
23
- function SheetPortal({
24
- ...props
25
- }: React.ComponentProps<typeof SheetPrimitive.Portal>) {
26
- return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />
21
+ function SheetPortal({ ...props }: React.ComponentProps<typeof SheetPrimitive.Portal>) {
22
+ return <SheetPrimitive.Portal data-slot="sheet-portal" {...props} />;
27
23
  }
28
24
 
29
- function SheetOverlay({
30
- className,
31
- ...props
32
- }: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
33
- return (
34
- <SheetPrimitive.Overlay
35
- data-slot="sheet-overlay"
36
- className={cn(
37
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",
38
- className
39
- )}
40
- {...props}
41
- />
42
- )
25
+ function SheetOverlay({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Overlay>) {
26
+ return (
27
+ <SheetPrimitive.Overlay
28
+ data-slot="sheet-overlay"
29
+ className={cn(
30
+ 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80',
31
+ className,
32
+ )}
33
+ {...props}
34
+ />
35
+ );
43
36
  }
44
37
 
45
38
  function SheetContent({
46
- className,
47
- children,
48
- side = "right",
49
- ...props
39
+ className,
40
+ children,
41
+ side = 'right',
42
+ ...props
50
43
  }: React.ComponentProps<typeof SheetPrimitive.Content> & {
51
- side?: "top" | "right" | "bottom" | "left"
44
+ side?: 'top' | 'right' | 'bottom' | 'left';
52
45
  }) {
53
- return (
54
- <SheetPortal>
55
- <SheetOverlay />
56
- <SheetPrimitive.Content
57
- data-slot="sheet-content"
58
- className={cn(
59
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
60
- side === "right" &&
61
- "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
62
- side === "left" &&
63
- "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
64
- side === "top" &&
65
- "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
66
- side === "bottom" &&
67
- "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
68
- className
69
- )}
70
- {...props}
71
- >
72
- {children}
73
- <SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
74
- <XIcon className="size-4" />
75
- <span className="sr-only">Close</span>
76
- </SheetPrimitive.Close>
77
- </SheetPrimitive.Content>
78
- </SheetPortal>
79
- )
46
+ return (
47
+ <SheetPortal>
48
+ <SheetOverlay />
49
+ <SheetPrimitive.Content
50
+ data-slot="sheet-content"
51
+ className={cn(
52
+ 'bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500',
53
+ side === 'right' &&
54
+ 'data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm',
55
+ side === 'left' &&
56
+ 'data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm',
57
+ side === 'top' &&
58
+ 'data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b',
59
+ side === 'bottom' &&
60
+ 'data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t',
61
+ className,
62
+ )}
63
+ {...props}
64
+ >
65
+ {children}
66
+ <SheetPrimitive.Close className="ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none">
67
+ <XIcon className="size-4" />
68
+ <span className="sr-only">Close</span>
69
+ </SheetPrimitive.Close>
70
+ </SheetPrimitive.Content>
71
+ </SheetPortal>
72
+ );
80
73
  }
81
74
 
82
- function SheetHeader({ className, ...props }: React.ComponentProps<"div">) {
83
- return (
84
- <div
85
- data-slot="sheet-header"
86
- className={cn("flex flex-col gap-1.5 p-4", className)}
87
- {...props}
88
- />
89
- )
75
+ function SheetHeader({ className, ...props }: React.ComponentProps<'div'>) {
76
+ return <div data-slot="sheet-header" className={cn('flex flex-col gap-1.5 p-4', className)} {...props} />;
90
77
  }
91
78
 
92
- function SheetFooter({ className, ...props }: React.ComponentProps<"div">) {
93
- return (
94
- <div
95
- data-slot="sheet-footer"
96
- className={cn("mt-auto flex flex-col gap-2 p-4", className)}
97
- {...props}
98
- />
99
- )
79
+ function SheetFooter({ className, ...props }: React.ComponentProps<'div'>) {
80
+ return (
81
+ <div
82
+ data-slot="sheet-footer"
83
+ className={cn('mt-auto flex flex-col gap-2 p-4', className)}
84
+ {...props}
85
+ />
86
+ );
100
87
  }
101
88
 
102
- function SheetTitle({
103
- className,
104
- ...props
105
- }: React.ComponentProps<typeof SheetPrimitive.Title>) {
106
- return (
107
- <SheetPrimitive.Title
108
- data-slot="sheet-title"
109
- className={cn("text-foreground font-semibold", className)}
110
- {...props}
111
- />
112
- )
89
+ function SheetTitle({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Title>) {
90
+ return (
91
+ <SheetPrimitive.Title
92
+ data-slot="sheet-title"
93
+ className={cn('text-foreground font-semibold tracking-tight', className)}
94
+ {...props}
95
+ />
96
+ );
113
97
  }
114
98
 
115
- function SheetDescription({
116
- className,
117
- ...props
118
- }: React.ComponentProps<typeof SheetPrimitive.Description>) {
119
- return (
120
- <SheetPrimitive.Description
121
- data-slot="sheet-description"
122
- className={cn("text-muted-foreground text-sm", className)}
123
- {...props}
124
- />
125
- )
99
+ function SheetDescription({ className, ...props }: React.ComponentProps<typeof SheetPrimitive.Description>) {
100
+ return (
101
+ <SheetPrimitive.Description
102
+ data-slot="sheet-description"
103
+ className={cn('text-muted-foreground text-sm', className)}
104
+ {...props}
105
+ />
106
+ );
126
107
  }
127
108
 
128
109
  export {
129
- Sheet,
130
- SheetTrigger,
131
- SheetClose,
132
- SheetContent,
133
- SheetHeader,
134
- SheetFooter,
135
- SheetTitle,
136
- SheetDescription,
137
- }
110
+ Sheet,
111
+ SheetClose,
112
+ SheetContent,
113
+ SheetDescription,
114
+ SheetFooter,
115
+ SheetHeader,
116
+ SheetTitle,
117
+ SheetTrigger,
118
+ };