@syscore/ui-library 1.1.3 → 1.1.4
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/client/components/ui/badge.tsx +1 -1
- package/client/components/ui/breadcrumb.tsx +1 -1
- package/client/components/ui/button.tsx +1 -1
- package/client/components/ui/card.tsx +1 -1
- package/client/components/ui/chart.tsx +3 -3
- package/client/components/ui/checkbox.tsx +1 -1
- package/client/components/ui/command.tsx +4 -4
- package/client/components/ui/context-menu.tsx +6 -6
- package/client/components/ui/dialog.tsx +1 -1
- package/client/components/ui/dropdown-menu.tsx +6 -6
- package/client/components/ui/hover-card.tsx +1 -1
- package/client/components/ui/input-otp.tsx +1 -1
- package/client/components/ui/input.tsx +1 -1
- package/client/components/ui/menubar.tsx +7 -7
- package/client/components/ui/navigation-menu.tsx +4 -4
- package/client/components/ui/pagination.tsx +1 -1
- package/client/components/ui/popover.tsx +1 -1
- package/client/components/ui/radio-group.tsx +1 -1
- package/client/components/ui/resizable.tsx +1 -1
- package/client/components/ui/scroll-area.tsx +2 -2
- package/client/components/ui/select.tsx +4 -4
- package/client/components/ui/separator.tsx +1 -1
- package/client/components/ui/sheet.tsx +1 -1
- package/client/components/ui/sidebar.tsx +22 -22
- package/client/components/ui/slider.tsx +1 -1
- package/client/components/ui/sonner.tsx +1 -1
- package/client/components/ui/switch.tsx +1 -1
- package/client/components/ui/table.tsx +1 -1
- package/client/components/ui/tabs.tsx +2 -2
- package/client/components/ui/textarea.tsx +1 -1
- package/client/components/ui/toast.tsx +4 -4
- package/client/components/ui/toggle.tsx +1 -1
- package/client/global.css +420 -9
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.es.js +83 -83
- package/package.json +7 -7
|
@@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
4
4
|
import { cn } from "@/lib/utils";
|
|
5
5
|
|
|
6
6
|
const badgeVariants = cva(
|
|
7
|
-
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-
|
|
7
|
+
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
|
@@ -19,7 +19,7 @@ const BreadcrumbList = React.forwardRef<
|
|
|
19
19
|
<ol
|
|
20
20
|
ref={ref}
|
|
21
21
|
className={cn(
|
|
22
|
-
"flex flex-wrap items-center gap-1.5 break-
|
|
22
|
+
"flex flex-wrap items-center gap-1.5 wrap-break-word text-sm text-muted-foreground sm:gap-2.5",
|
|
23
23
|
className,
|
|
24
24
|
)}
|
|
25
25
|
{...props}
|
|
@@ -5,7 +5,7 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
5
5
|
import { cn } from "@/lib/utils";
|
|
6
6
|
|
|
7
7
|
const buttonVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-
|
|
8
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
@@ -50,7 +50,7 @@ const ChartContainer = React.forwardRef<
|
|
|
50
50
|
data-chart={chartId}
|
|
51
51
|
ref={ref}
|
|
52
52
|
className={cn(
|
|
53
|
-
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-
|
|
53
|
+
"flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",
|
|
54
54
|
className,
|
|
55
55
|
)}
|
|
56
56
|
{...props}
|
|
@@ -177,7 +177,7 @@ const ChartTooltipContent = React.forwardRef<
|
|
|
177
177
|
<div
|
|
178
178
|
ref={ref}
|
|
179
179
|
className={cn(
|
|
180
|
-
"grid min-w-
|
|
180
|
+
"grid min-w-32 items-start gap-1.5 rounded-lg border bg-background px-2.5 py-1.5 text-xs shadow-xl",
|
|
181
181
|
className,
|
|
182
182
|
)}
|
|
183
183
|
>
|
|
@@ -206,7 +206,7 @@ const ChartTooltipContent = React.forwardRef<
|
|
|
206
206
|
!hideIndicator && (
|
|
207
207
|
<div
|
|
208
208
|
className={cn(
|
|
209
|
-
"shrink-0 rounded-[2px] border-
|
|
209
|
+
"shrink-0 rounded-[2px] border-border bg-(--color-bg)",
|
|
210
210
|
{
|
|
211
211
|
"h-2.5 w-2.5": indicator === "dot",
|
|
212
212
|
"w-1": indicator === "line",
|
|
@@ -11,7 +11,7 @@ const Checkbox = React.forwardRef<
|
|
|
11
11
|
<CheckboxPrimitive.Root
|
|
12
12
|
ref={ref}
|
|
13
13
|
className={cn(
|
|
14
|
-
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-
|
|
14
|
+
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
15
15
|
className,
|
|
16
16
|
)}
|
|
17
17
|
{...props}
|
|
@@ -27,7 +27,7 @@ const CommandDialog = ({ children, ...props }: CommandDialogProps) => {
|
|
|
27
27
|
return (
|
|
28
28
|
<Dialog {...props}>
|
|
29
29
|
<DialogContent className="overflow-hidden p-0 shadow-lg">
|
|
30
|
-
<Command className="[
|
|
30
|
+
<Command className="**:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 **:[[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5">
|
|
31
31
|
{children}
|
|
32
32
|
</Command>
|
|
33
33
|
</DialogContent>
|
|
@@ -44,7 +44,7 @@ const CommandInput = React.forwardRef<
|
|
|
44
44
|
<CommandPrimitive.Input
|
|
45
45
|
ref={ref}
|
|
46
46
|
className={cn(
|
|
47
|
-
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-
|
|
47
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
|
|
48
48
|
className,
|
|
49
49
|
)}
|
|
50
50
|
{...props}
|
|
@@ -87,7 +87,7 @@ const CommandGroup = React.forwardRef<
|
|
|
87
87
|
<CommandPrimitive.Group
|
|
88
88
|
ref={ref}
|
|
89
89
|
className={cn(
|
|
90
|
-
"overflow-hidden p-1 text-foreground [
|
|
90
|
+
"overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",
|
|
91
91
|
className,
|
|
92
92
|
)}
|
|
93
93
|
{...props}
|
|
@@ -115,7 +115,7 @@ const CommandItem = React.forwardRef<
|
|
|
115
115
|
<CommandPrimitive.Item
|
|
116
116
|
ref={ref}
|
|
117
117
|
className={cn(
|
|
118
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
118
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
|
|
119
119
|
className,
|
|
120
120
|
)}
|
|
121
121
|
{...props}
|
|
@@ -25,7 +25,7 @@ const ContextMenuSubTrigger = React.forwardRef<
|
|
|
25
25
|
<ContextMenuPrimitive.SubTrigger
|
|
26
26
|
ref={ref}
|
|
27
27
|
className={cn(
|
|
28
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
28
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
29
29
|
inset && "pl-8",
|
|
30
30
|
className,
|
|
31
31
|
)}
|
|
@@ -44,7 +44,7 @@ const ContextMenuSubContent = React.forwardRef<
|
|
|
44
44
|
<ContextMenuPrimitive.SubContent
|
|
45
45
|
ref={ref}
|
|
46
46
|
className={cn(
|
|
47
|
-
"z-50 min-w-
|
|
47
|
+
"z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",
|
|
48
48
|
className,
|
|
49
49
|
)}
|
|
50
50
|
{...props}
|
|
@@ -60,7 +60,7 @@ const ContextMenuContent = React.forwardRef<
|
|
|
60
60
|
<ContextMenuPrimitive.Content
|
|
61
61
|
ref={ref}
|
|
62
62
|
className={cn(
|
|
63
|
-
"z-50 min-w-
|
|
63
|
+
"z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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",
|
|
64
64
|
className,
|
|
65
65
|
)}
|
|
66
66
|
{...props}
|
|
@@ -78,7 +78,7 @@ const ContextMenuItem = React.forwardRef<
|
|
|
78
78
|
<ContextMenuPrimitive.Item
|
|
79
79
|
ref={ref}
|
|
80
80
|
className={cn(
|
|
81
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
81
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
82
82
|
inset && "pl-8",
|
|
83
83
|
className,
|
|
84
84
|
)}
|
|
@@ -94,7 +94,7 @@ const ContextMenuCheckboxItem = React.forwardRef<
|
|
|
94
94
|
<ContextMenuPrimitive.CheckboxItem
|
|
95
95
|
ref={ref}
|
|
96
96
|
className={cn(
|
|
97
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
97
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
98
98
|
className,
|
|
99
99
|
)}
|
|
100
100
|
checked={checked}
|
|
@@ -118,7 +118,7 @@ const ContextMenuRadioItem = React.forwardRef<
|
|
|
118
118
|
<ContextMenuPrimitive.RadioItem
|
|
119
119
|
ref={ref}
|
|
120
120
|
className={cn(
|
|
121
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
121
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
122
122
|
className,
|
|
123
123
|
)}
|
|
124
124
|
{...props}
|
|
@@ -42,7 +42,7 @@ const DialogContent = React.forwardRef<
|
|
|
42
42
|
{...props}
|
|
43
43
|
>
|
|
44
44
|
{children}
|
|
45
|
-
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-
|
|
45
|
+
<DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground">
|
|
46
46
|
<X className="h-4 w-4" />
|
|
47
47
|
<span className="sr-only">Close</span>
|
|
48
48
|
</DialogPrimitive.Close>
|
|
@@ -25,7 +25,7 @@ const DropdownMenuSubTrigger = React.forwardRef<
|
|
|
25
25
|
<DropdownMenuPrimitive.SubTrigger
|
|
26
26
|
ref={ref}
|
|
27
27
|
className={cn(
|
|
28
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
28
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",
|
|
29
29
|
inset && "pl-8",
|
|
30
30
|
className,
|
|
31
31
|
)}
|
|
@@ -45,7 +45,7 @@ const DropdownMenuSubContent = React.forwardRef<
|
|
|
45
45
|
<DropdownMenuPrimitive.SubContent
|
|
46
46
|
ref={ref}
|
|
47
47
|
className={cn(
|
|
48
|
-
"z-50 min-w-
|
|
48
|
+
"z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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",
|
|
49
49
|
className,
|
|
50
50
|
)}
|
|
51
51
|
{...props}
|
|
@@ -63,7 +63,7 @@ const DropdownMenuContent = React.forwardRef<
|
|
|
63
63
|
ref={ref}
|
|
64
64
|
sideOffset={sideOffset}
|
|
65
65
|
className={cn(
|
|
66
|
-
"z-50 min-w-
|
|
66
|
+
"z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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",
|
|
67
67
|
className,
|
|
68
68
|
)}
|
|
69
69
|
{...props}
|
|
@@ -81,7 +81,7 @@ const DropdownMenuItem = React.forwardRef<
|
|
|
81
81
|
<DropdownMenuPrimitive.Item
|
|
82
82
|
ref={ref}
|
|
83
83
|
className={cn(
|
|
84
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
84
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
85
85
|
inset && "pl-8",
|
|
86
86
|
className,
|
|
87
87
|
)}
|
|
@@ -97,7 +97,7 @@ const DropdownMenuCheckboxItem = React.forwardRef<
|
|
|
97
97
|
<DropdownMenuPrimitive.CheckboxItem
|
|
98
98
|
ref={ref}
|
|
99
99
|
className={cn(
|
|
100
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
100
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
101
101
|
className,
|
|
102
102
|
)}
|
|
103
103
|
checked={checked}
|
|
@@ -121,7 +121,7 @@ const DropdownMenuRadioItem = React.forwardRef<
|
|
|
121
121
|
<DropdownMenuPrimitive.RadioItem
|
|
122
122
|
ref={ref}
|
|
123
123
|
className={cn(
|
|
124
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
124
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
125
125
|
className,
|
|
126
126
|
)}
|
|
127
127
|
{...props}
|
|
@@ -16,7 +16,7 @@ const HoverCardContent = React.forwardRef<
|
|
|
16
16
|
align={align}
|
|
17
17
|
sideOffset={sideOffset}
|
|
18
18
|
className={cn(
|
|
19
|
-
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-
|
|
19
|
+
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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",
|
|
20
20
|
className,
|
|
21
21
|
)}
|
|
22
22
|
{...props}
|
|
@@ -11,7 +11,7 @@ const InputOTP = React.forwardRef<
|
|
|
11
11
|
<OTPInput
|
|
12
12
|
ref={ref}
|
|
13
13
|
containerClassName={cn(
|
|
14
|
-
"flex items-center gap-2 has-
|
|
14
|
+
"flex items-center gap-2 has-disabled:opacity-50",
|
|
15
15
|
containerClassName,
|
|
16
16
|
)}
|
|
17
17
|
className={cn("disabled:cursor-not-allowed", className)}
|
|
@@ -8,7 +8,7 @@ const Input = React.forwardRef<HTMLInputElement, React.ComponentProps<"input">>(
|
|
|
8
8
|
<input
|
|
9
9
|
type={type}
|
|
10
10
|
className={cn(
|
|
11
|
-
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-
|
|
11
|
+
"flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
12
12
|
className,
|
|
13
13
|
)}
|
|
14
14
|
ref={ref}
|
|
@@ -36,7 +36,7 @@ const MenubarTrigger = React.forwardRef<
|
|
|
36
36
|
<MenubarPrimitive.Trigger
|
|
37
37
|
ref={ref}
|
|
38
38
|
className={cn(
|
|
39
|
-
"flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-
|
|
39
|
+
"flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
40
40
|
className,
|
|
41
41
|
)}
|
|
42
42
|
{...props}
|
|
@@ -53,7 +53,7 @@ const MenubarSubTrigger = React.forwardRef<
|
|
|
53
53
|
<MenubarPrimitive.SubTrigger
|
|
54
54
|
ref={ref}
|
|
55
55
|
className={cn(
|
|
56
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
56
|
+
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
|
|
57
57
|
inset && "pl-8",
|
|
58
58
|
className,
|
|
59
59
|
)}
|
|
@@ -72,7 +72,7 @@ const MenubarSubContent = React.forwardRef<
|
|
|
72
72
|
<MenubarPrimitive.SubContent
|
|
73
73
|
ref={ref}
|
|
74
74
|
className={cn(
|
|
75
|
-
"z-50 min-w-
|
|
75
|
+
"z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 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",
|
|
76
76
|
className,
|
|
77
77
|
)}
|
|
78
78
|
{...props}
|
|
@@ -95,7 +95,7 @@ const MenubarContent = React.forwardRef<
|
|
|
95
95
|
alignOffset={alignOffset}
|
|
96
96
|
sideOffset={sideOffset}
|
|
97
97
|
className={cn(
|
|
98
|
-
"z-50 min-w-
|
|
98
|
+
"z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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",
|
|
99
99
|
className,
|
|
100
100
|
)}
|
|
101
101
|
{...props}
|
|
@@ -114,7 +114,7 @@ const MenubarItem = React.forwardRef<
|
|
|
114
114
|
<MenubarPrimitive.Item
|
|
115
115
|
ref={ref}
|
|
116
116
|
className={cn(
|
|
117
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
117
|
+
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
118
118
|
inset && "pl-8",
|
|
119
119
|
className,
|
|
120
120
|
)}
|
|
@@ -130,7 +130,7 @@ const MenubarCheckboxItem = React.forwardRef<
|
|
|
130
130
|
<MenubarPrimitive.CheckboxItem
|
|
131
131
|
ref={ref}
|
|
132
132
|
className={cn(
|
|
133
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
133
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
134
134
|
className,
|
|
135
135
|
)}
|
|
136
136
|
checked={checked}
|
|
@@ -153,7 +153,7 @@ const MenubarRadioItem = React.forwardRef<
|
|
|
153
153
|
<MenubarPrimitive.RadioItem
|
|
154
154
|
ref={ref}
|
|
155
155
|
className={cn(
|
|
156
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
156
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
157
157
|
className,
|
|
158
158
|
)}
|
|
159
159
|
{...props}
|
|
@@ -41,7 +41,7 @@ NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
|
41
41
|
const NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
42
42
|
|
|
43
43
|
const navigationMenuTriggerStyle = cva(
|
|
44
|
-
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-
|
|
44
|
+
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50",
|
|
45
45
|
);
|
|
46
46
|
|
|
47
47
|
const NavigationMenuTrigger = React.forwardRef<
|
|
@@ -55,7 +55,7 @@ const NavigationMenuTrigger = React.forwardRef<
|
|
|
55
55
|
>
|
|
56
56
|
{children}{" "}
|
|
57
57
|
<ChevronDown
|
|
58
|
-
className="relative top-
|
|
58
|
+
className="relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180"
|
|
59
59
|
aria-hidden="true"
|
|
60
60
|
/>
|
|
61
61
|
</NavigationMenuPrimitive.Trigger>
|
|
@@ -86,7 +86,7 @@ const NavigationMenuViewport = React.forwardRef<
|
|
|
86
86
|
<div className={cn("absolute left-0 top-full flex justify-center")}>
|
|
87
87
|
<NavigationMenuPrimitive.Viewport
|
|
88
88
|
className={cn(
|
|
89
|
-
"origin-top-center relative mt-1.5 h-
|
|
89
|
+
"origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-(--radix-navigation-menu-viewport-width)",
|
|
90
90
|
className,
|
|
91
91
|
)}
|
|
92
92
|
ref={ref}
|
|
@@ -104,7 +104,7 @@ const NavigationMenuIndicator = React.forwardRef<
|
|
|
104
104
|
<NavigationMenuPrimitive.Indicator
|
|
105
105
|
ref={ref}
|
|
106
106
|
className={cn(
|
|
107
|
-
"top-full z-
|
|
107
|
+
"top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
|
|
108
108
|
className,
|
|
109
109
|
)}
|
|
110
110
|
{...props}
|
|
@@ -17,7 +17,7 @@ const PopoverContent = React.forwardRef<
|
|
|
17
17
|
align={align}
|
|
18
18
|
sideOffset={sideOffset}
|
|
19
19
|
className={cn(
|
|
20
|
-
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-
|
|
20
|
+
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden 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",
|
|
21
21
|
className,
|
|
22
22
|
)}
|
|
23
23
|
{...props}
|
|
@@ -26,7 +26,7 @@ const RadioGroupItem = React.forwardRef<
|
|
|
26
26
|
<RadioGroupPrimitive.Item
|
|
27
27
|
ref={ref}
|
|
28
28
|
className={cn(
|
|
29
|
-
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-
|
|
29
|
+
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
30
30
|
className,
|
|
31
31
|
)}
|
|
32
32
|
{...props}
|
|
@@ -27,7 +27,7 @@ const ResizableHandle = ({
|
|
|
27
27
|
}) => (
|
|
28
28
|
<ResizablePrimitive.PanelResizeHandle
|
|
29
29
|
className={cn(
|
|
30
|
-
"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-
|
|
30
|
+
"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-hidden 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",
|
|
31
31
|
className,
|
|
32
32
|
)}
|
|
33
33
|
{...props}
|
|
@@ -31,9 +31,9 @@ const ScrollBar = React.forwardRef<
|
|
|
31
31
|
className={cn(
|
|
32
32
|
"flex touch-none select-none transition-colors",
|
|
33
33
|
orientation === "vertical" &&
|
|
34
|
-
"h-full w-2.5 border-l border-l-transparent p-
|
|
34
|
+
"h-full w-2.5 border-l border-l-transparent p-px",
|
|
35
35
|
orientation === "horizontal" &&
|
|
36
|
-
"h-2.5 flex-col border-t border-t-transparent p-
|
|
36
|
+
"h-2.5 flex-col border-t border-t-transparent p-px",
|
|
37
37
|
className,
|
|
38
38
|
)}
|
|
39
39
|
{...props}
|
|
@@ -17,7 +17,7 @@ const SelectTrigger = React.forwardRef<
|
|
|
17
17
|
<SelectPrimitive.Trigger
|
|
18
18
|
ref={ref}
|
|
19
19
|
className={cn(
|
|
20
|
-
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-
|
|
20
|
+
"flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
21
21
|
className,
|
|
22
22
|
)}
|
|
23
23
|
{...props}
|
|
@@ -73,7 +73,7 @@ const SelectContent = React.forwardRef<
|
|
|
73
73
|
<SelectPrimitive.Content
|
|
74
74
|
ref={ref}
|
|
75
75
|
className={cn(
|
|
76
|
-
"relative z-50 max-h-96 min-w-
|
|
76
|
+
"relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
|
|
77
77
|
position === "popper" &&
|
|
78
78
|
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
79
79
|
className,
|
|
@@ -86,7 +86,7 @@ const SelectContent = React.forwardRef<
|
|
|
86
86
|
className={cn(
|
|
87
87
|
"p-1",
|
|
88
88
|
position === "popper" &&
|
|
89
|
-
"h-
|
|
89
|
+
"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)",
|
|
90
90
|
)}
|
|
91
91
|
>
|
|
92
92
|
{children}
|
|
@@ -116,7 +116,7 @@ const SelectItem = React.forwardRef<
|
|
|
116
116
|
<SelectPrimitive.Item
|
|
117
117
|
ref={ref}
|
|
118
118
|
className={cn(
|
|
119
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
119
|
+
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
120
120
|
className,
|
|
121
121
|
)}
|
|
122
122
|
{...props}
|
|
@@ -17,7 +17,7 @@ const Separator = React.forwardRef<
|
|
|
17
17
|
orientation={orientation}
|
|
18
18
|
className={cn(
|
|
19
19
|
"shrink-0 bg-border",
|
|
20
|
-
orientation === "horizontal" ? "h-
|
|
20
|
+
orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
21
21
|
className,
|
|
22
22
|
)}
|
|
23
23
|
{...props}
|
|
@@ -63,7 +63,7 @@ const SheetContent = React.forwardRef<
|
|
|
63
63
|
{...props}
|
|
64
64
|
>
|
|
65
65
|
{children}
|
|
66
|
-
<SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-
|
|
66
|
+
<SheetPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary">
|
|
67
67
|
<X className="h-4 w-4" />
|
|
68
68
|
<span className="sr-only">Close</span>
|
|
69
69
|
</SheetPrimitive.Close>
|