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

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 (58) hide show
  1. package/dist/plugin/vite-plugin-vendure-dashboard.js +1 -1
  2. package/package.json +40 -27
  3. package/src/app/routes/_authenticated/_collections/collections.graphql.ts +32 -0
  4. package/src/app/routes/_authenticated/_collections/collections.tsx +153 -133
  5. package/src/app/routes/_authenticated/_collections/components/collection-bulk-actions.tsx +34 -1
  6. package/src/app/routes/_authenticated/_collections/components/move-collections-dialog.tsx +430 -0
  7. package/src/app/routes/_authenticated/_collections/components/move-single-collection.tsx +33 -0
  8. package/src/app/routes/_authenticated/_customers/components/customer-address-card.tsx +8 -3
  9. package/src/lib/components/data-table/data-table.tsx +1 -1
  10. package/src/lib/components/shared/paginated-list-data-table.tsx +1 -1
  11. package/src/lib/components/ui/accordion.tsx +50 -45
  12. package/src/lib/components/ui/alert-dialog.tsx +122 -93
  13. package/src/lib/components/ui/alert.tsx +54 -48
  14. package/src/lib/components/ui/aspect-ratio.tsx +9 -0
  15. package/src/lib/components/ui/avatar.tsx +53 -0
  16. package/src/lib/components/ui/badge.tsx +37 -29
  17. package/src/lib/components/ui/breadcrumb.tsx +89 -82
  18. package/src/lib/components/ui/button.tsx +52 -51
  19. package/src/lib/components/ui/calendar.tsx +196 -435
  20. package/src/lib/components/ui/card.tsx +78 -33
  21. package/src/lib/components/ui/carousel.tsx +241 -0
  22. package/src/lib/components/ui/chart.tsx +351 -0
  23. package/src/lib/components/ui/checkbox.tsx +28 -23
  24. package/src/lib/components/ui/collapsible.tsx +0 -2
  25. package/src/lib/components/ui/command.tsx +159 -114
  26. package/src/lib/components/ui/context-menu.tsx +252 -0
  27. package/src/lib/components/ui/dialog.tsx +115 -90
  28. package/src/lib/components/ui/drawer.tsx +133 -0
  29. package/src/lib/components/ui/dropdown-menu.tsx +207 -170
  30. package/src/lib/components/ui/form.tsx +138 -114
  31. package/src/lib/components/ui/hover-card.tsx +32 -26
  32. package/src/lib/components/ui/input-otp.tsx +77 -0
  33. package/src/lib/components/ui/input.tsx +17 -15
  34. package/src/lib/components/ui/label.tsx +19 -16
  35. package/src/lib/components/ui/menubar.tsx +274 -0
  36. package/src/lib/components/ui/navigation-menu.tsx +168 -0
  37. package/src/lib/components/ui/pagination.tsx +108 -87
  38. package/src/lib/components/ui/popover.tsx +36 -28
  39. package/src/lib/components/ui/progress.tsx +29 -0
  40. package/src/lib/components/ui/radio-group.tsx +45 -0
  41. package/src/lib/components/ui/resizable.tsx +54 -0
  42. package/src/lib/components/ui/scroll-area.tsx +48 -40
  43. package/src/lib/components/ui/select.tsx +151 -129
  44. package/src/lib/components/ui/separator.tsx +22 -20
  45. package/src/lib/components/ui/sheet.tsx +110 -91
  46. package/src/lib/components/ui/sidebar.tsx +652 -622
  47. package/src/lib/components/ui/skeleton.tsx +10 -10
  48. package/src/lib/components/ui/slider.tsx +63 -0
  49. package/src/lib/components/ui/sonner.tsx +7 -11
  50. package/src/lib/components/ui/switch.tsx +27 -22
  51. package/src/lib/components/ui/table.tsx +96 -64
  52. package/src/lib/components/ui/tabs.tsx +56 -38
  53. package/src/lib/components/ui/textarea.tsx +14 -14
  54. package/src/lib/components/ui/toggle-group.tsx +73 -0
  55. package/src/lib/components/ui/toggle.tsx +45 -0
  56. package/src/lib/components/ui/tooltip.tsx +45 -37
  57. package/src/lib/framework/page/list-page.tsx +1 -1
  58. package/vite/vite-plugin-vendure-dashboard.ts +1 -1
@@ -1,51 +1,59 @@
1
- import * as TooltipPrimitive from '@radix-ui/react-tooltip';
2
- import * as React from 'react';
1
+ import * as React from "react"
2
+ import * as TooltipPrimitive from "@radix-ui/react-tooltip"
3
3
 
4
- import { cn } from '@/vdb/lib/utils.js';
4
+ import { cn } from "@/vdb/lib/utils"
5
5
 
6
6
  function TooltipProvider({
7
- delayDuration = 0,
8
- ...props
7
+ delayDuration = 0,
8
+ ...props
9
9
  }: React.ComponentProps<typeof TooltipPrimitive.Provider>) {
10
- return (
11
- <TooltipPrimitive.Provider data-slot="tooltip-provider" delayDuration={delayDuration} {...props} />
12
- );
10
+ return (
11
+ <TooltipPrimitive.Provider
12
+ data-slot="tooltip-provider"
13
+ delayDuration={delayDuration}
14
+ {...props}
15
+ />
16
+ )
13
17
  }
14
18
 
15
- function Tooltip({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Root>) {
16
- return (
17
- <TooltipProvider>
18
- <TooltipPrimitive.Root data-slot="tooltip" {...props} />
19
- </TooltipProvider>
20
- );
19
+ function Tooltip({
20
+ ...props
21
+ }: React.ComponentProps<typeof TooltipPrimitive.Root>) {
22
+ return (
23
+ <TooltipProvider>
24
+ <TooltipPrimitive.Root data-slot="tooltip" {...props} />
25
+ </TooltipProvider>
26
+ )
21
27
  }
22
28
 
23
- function TooltipTrigger({ ...props }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
24
- return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />;
29
+ function TooltipTrigger({
30
+ ...props
31
+ }: React.ComponentProps<typeof TooltipPrimitive.Trigger>) {
32
+ return <TooltipPrimitive.Trigger data-slot="tooltip-trigger" {...props} />
25
33
  }
26
34
 
27
35
  function TooltipContent({
28
- className,
29
- sideOffset = 4,
30
- children,
31
- ...props
36
+ className,
37
+ sideOffset = 0,
38
+ children,
39
+ ...props
32
40
  }: React.ComponentProps<typeof TooltipPrimitive.Content>) {
33
- return (
34
- <TooltipPrimitive.Portal>
35
- <TooltipPrimitive.Content
36
- data-slot="tooltip-content"
37
- sideOffset={sideOffset}
38
- className={cn(
39
- 'bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 max-w-sm rounded-md px-3 py-1.5 text-xs',
40
- className,
41
- )}
42
- {...props}
43
- >
44
- {children}
45
- <TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
46
- </TooltipPrimitive.Content>
47
- </TooltipPrimitive.Portal>
48
- );
41
+ return (
42
+ <TooltipPrimitive.Portal>
43
+ <TooltipPrimitive.Content
44
+ data-slot="tooltip-content"
45
+ sideOffset={sideOffset}
46
+ className={cn(
47
+ "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
48
+ className
49
+ )}
50
+ {...props}
51
+ >
52
+ {children}
53
+ <TooltipPrimitive.Arrow className="bg-primary fill-primary z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" />
54
+ </TooltipPrimitive.Content>
55
+ </TooltipPrimitive.Portal>
56
+ )
49
57
  }
50
58
 
51
- export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
59
+ export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider }
@@ -90,7 +90,7 @@ export function ListPage<
90
90
  transformData,
91
91
  setTableOptions,
92
92
  bulkActions,
93
- }: ListPageProps<T, U, V, AC>) {
93
+ }: Readonly<ListPageProps<T, U, V, AC>>) {
94
94
  const route = typeof routeOrFn === 'function' ? routeOrFn() : routeOrFn;
95
95
  const routeSearch = route.useSearch();
96
96
  const navigate = useNavigate<AnyRouter>({ from: route.fullPath });
@@ -111,7 +111,7 @@ export function vendureDashboardPlugin(options: VitePluginVendureDashboardOption
111
111
  : [
112
112
  TanStackRouterVite({
113
113
  autoCodeSplitting: true,
114
- routeFileIgnorePattern: '.graphql.ts|components',
114
+ routeFileIgnorePattern: '.graphql.ts|components|hooks',
115
115
  routesDirectory: path.join(packageRoot, 'src/app/routes'),
116
116
  generatedRouteTree: path.join(packageRoot, 'src/app/routeTree.gen.ts'),
117
117
  }),