@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.
- package/package.json +26 -39
- 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/shared/translatable-form-field.tsx +2 -1
- 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/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/framework/page/detail-page.tsx +26 -20
- package/src/lib/graphql/graphql-env.d.ts +1 -1
- 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,73 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import * as React from "react"
|
|
4
|
-
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group"
|
|
5
|
-
import { type VariantProps } from "class-variance-authority"
|
|
6
|
-
|
|
7
|
-
import { cn } from "@/vdb/lib/utils"
|
|
8
|
-
import { toggleVariants } from "@/vdb/components/ui/toggle"
|
|
9
|
-
|
|
10
|
-
const ToggleGroupContext = React.createContext<
|
|
11
|
-
VariantProps<typeof toggleVariants>
|
|
12
|
-
>({
|
|
13
|
-
size: "default",
|
|
14
|
-
variant: "default",
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
function ToggleGroup({
|
|
18
|
-
className,
|
|
19
|
-
variant,
|
|
20
|
-
size,
|
|
21
|
-
children,
|
|
22
|
-
...props
|
|
23
|
-
}: React.ComponentProps<typeof ToggleGroupPrimitive.Root> &
|
|
24
|
-
VariantProps<typeof toggleVariants>) {
|
|
25
|
-
return (
|
|
26
|
-
<ToggleGroupPrimitive.Root
|
|
27
|
-
data-slot="toggle-group"
|
|
28
|
-
data-variant={variant}
|
|
29
|
-
data-size={size}
|
|
30
|
-
className={cn(
|
|
31
|
-
"group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs",
|
|
32
|
-
className
|
|
33
|
-
)}
|
|
34
|
-
{...props}
|
|
35
|
-
>
|
|
36
|
-
<ToggleGroupContext.Provider value={{ variant, size }}>
|
|
37
|
-
{children}
|
|
38
|
-
</ToggleGroupContext.Provider>
|
|
39
|
-
</ToggleGroupPrimitive.Root>
|
|
40
|
-
)
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function ToggleGroupItem({
|
|
44
|
-
className,
|
|
45
|
-
children,
|
|
46
|
-
variant,
|
|
47
|
-
size,
|
|
48
|
-
...props
|
|
49
|
-
}: React.ComponentProps<typeof ToggleGroupPrimitive.Item> &
|
|
50
|
-
VariantProps<typeof toggleVariants>) {
|
|
51
|
-
const context = React.useContext(ToggleGroupContext)
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<ToggleGroupPrimitive.Item
|
|
55
|
-
data-slot="toggle-group-item"
|
|
56
|
-
data-variant={context.variant || variant}
|
|
57
|
-
data-size={context.size || size}
|
|
58
|
-
className={cn(
|
|
59
|
-
toggleVariants({
|
|
60
|
-
variant: context.variant || variant,
|
|
61
|
-
size: context.size || size,
|
|
62
|
-
}),
|
|
63
|
-
"min-w-0 flex-1 shrink-0 rounded-none shadow-none first:rounded-l-md last:rounded-r-md focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first:border-l",
|
|
64
|
-
className
|
|
65
|
-
)}
|
|
66
|
-
{...props}
|
|
67
|
-
>
|
|
68
|
-
{children}
|
|
69
|
-
</ToggleGroupPrimitive.Item>
|
|
70
|
-
)
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export { ToggleGroup, ToggleGroupItem }
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import * as TogglePrimitive from "@radix-ui/react-toggle"
|
|
3
|
-
import { cva, type VariantProps } from "class-variance-authority"
|
|
4
|
-
|
|
5
|
-
import { cn } from "@/vdb/lib/utils"
|
|
6
|
-
|
|
7
|
-
const toggleVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
|
|
9
|
-
{
|
|
10
|
-
variants: {
|
|
11
|
-
variant: {
|
|
12
|
-
default: "bg-transparent",
|
|
13
|
-
outline:
|
|
14
|
-
"border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground",
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
default: "h-9 px-2 min-w-9",
|
|
18
|
-
sm: "h-8 px-1.5 min-w-8",
|
|
19
|
-
lg: "h-10 px-2.5 min-w-10",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
defaultVariants: {
|
|
23
|
-
variant: "default",
|
|
24
|
-
size: "default",
|
|
25
|
-
},
|
|
26
|
-
}
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
function Toggle({
|
|
30
|
-
className,
|
|
31
|
-
variant,
|
|
32
|
-
size,
|
|
33
|
-
...props
|
|
34
|
-
}: React.ComponentProps<typeof TogglePrimitive.Root> &
|
|
35
|
-
VariantProps<typeof toggleVariants>) {
|
|
36
|
-
return (
|
|
37
|
-
<TogglePrimitive.Root
|
|
38
|
-
data-slot="toggle"
|
|
39
|
-
className={cn(toggleVariants({ variant, size, className }))}
|
|
40
|
-
{...props}
|
|
41
|
-
/>
|
|
42
|
-
)
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { Toggle, toggleVariants }
|