@syscore/ui-library 1.1.3 → 1.1.5
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 +421 -10
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.es.js +83 -83
- package/package.json +7 -7
|
@@ -147,7 +147,7 @@ const SidebarProvider = React.forwardRef<
|
|
|
147
147
|
} as React.CSSProperties
|
|
148
148
|
}
|
|
149
149
|
className={cn(
|
|
150
|
-
"group/sidebar-wrapper flex min-h-svh w-full has-
|
|
150
|
+
"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
|
|
151
151
|
className,
|
|
152
152
|
)}
|
|
153
153
|
ref={ref}
|
|
@@ -187,7 +187,7 @@ const Sidebar = React.forwardRef<
|
|
|
187
187
|
return (
|
|
188
188
|
<div
|
|
189
189
|
className={cn(
|
|
190
|
-
"flex h-full w-
|
|
190
|
+
"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
|
|
191
191
|
className,
|
|
192
192
|
)}
|
|
193
193
|
ref={ref}
|
|
@@ -204,7 +204,7 @@ const Sidebar = React.forwardRef<
|
|
|
204
204
|
<SheetContent
|
|
205
205
|
data-sidebar="sidebar"
|
|
206
206
|
data-mobile="true"
|
|
207
|
-
className="w-
|
|
207
|
+
className="w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden"
|
|
208
208
|
style={
|
|
209
209
|
{
|
|
210
210
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE,
|
|
@@ -230,31 +230,31 @@ const Sidebar = React.forwardRef<
|
|
|
230
230
|
{/* This is what handles the sidebar gap on desktop */}
|
|
231
231
|
<div
|
|
232
232
|
className={cn(
|
|
233
|
-
"duration-200 relative h-svh w-
|
|
233
|
+
"duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear",
|
|
234
234
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
235
235
|
"group-data-[side=right]:rotate-180",
|
|
236
236
|
variant === "floating" || variant === "inset"
|
|
237
|
-
? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)
|
|
238
|
-
: "group-data-[collapsible=icon]:w-
|
|
237
|
+
? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]"
|
|
238
|
+
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon)",
|
|
239
239
|
)}
|
|
240
240
|
/>
|
|
241
241
|
<div
|
|
242
242
|
className={cn(
|
|
243
|
-
"duration-200 fixed inset-y-0 z-10 hidden h-svh w-
|
|
243
|
+
"duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",
|
|
244
244
|
side === "left"
|
|
245
245
|
? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]"
|
|
246
246
|
: "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
247
247
|
// Adjust the padding for floating and inset variants.
|
|
248
248
|
variant === "floating" || variant === "inset"
|
|
249
|
-
? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)
|
|
250
|
-
: "group-data-[collapsible=icon]:w-
|
|
249
|
+
? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]"
|
|
250
|
+
: "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
251
251
|
className,
|
|
252
252
|
)}
|
|
253
253
|
{...props}
|
|
254
254
|
>
|
|
255
255
|
<div
|
|
256
256
|
data-sidebar="sidebar"
|
|
257
|
-
className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow"
|
|
257
|
+
className="flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow-sm"
|
|
258
258
|
>
|
|
259
259
|
{children}
|
|
260
260
|
</div>
|
|
@@ -307,9 +307,9 @@ const SidebarRail = React.forwardRef<
|
|
|
307
307
|
title="Toggle Sidebar"
|
|
308
308
|
className={cn(
|
|
309
309
|
"absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex",
|
|
310
|
-
"
|
|
310
|
+
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
311
311
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
312
|
-
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:
|
|
312
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar",
|
|
313
313
|
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
314
314
|
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
315
315
|
className,
|
|
@@ -329,7 +329,7 @@ const SidebarInset = React.forwardRef<
|
|
|
329
329
|
ref={ref}
|
|
330
330
|
className={cn(
|
|
331
331
|
"relative flex min-h-svh flex-1 flex-col bg-background",
|
|
332
|
-
"peer-data-[variant=inset]:min-h-[calc(100svh-
|
|
332
|
+
"peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",
|
|
333
333
|
className,
|
|
334
334
|
)}
|
|
335
335
|
{...props}
|
|
@@ -445,7 +445,7 @@ const SidebarGroupLabel = React.forwardRef<
|
|
|
445
445
|
ref={ref}
|
|
446
446
|
data-sidebar="group-label"
|
|
447
447
|
className={cn(
|
|
448
|
-
"duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-
|
|
448
|
+
"duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
449
449
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
450
450
|
className,
|
|
451
451
|
)}
|
|
@@ -466,9 +466,9 @@ const SidebarGroupAction = React.forwardRef<
|
|
|
466
466
|
ref={ref}
|
|
467
467
|
data-sidebar="group-action"
|
|
468
468
|
className={cn(
|
|
469
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-
|
|
469
|
+
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0",
|
|
470
470
|
// Increases the hit area of the button on mobile.
|
|
471
|
-
"after:absolute after:-inset-2 after:
|
|
471
|
+
"after:absolute after:-inset-2 md:after:hidden",
|
|
472
472
|
"group-data-[collapsible=icon]:hidden",
|
|
473
473
|
className,
|
|
474
474
|
)}
|
|
@@ -518,7 +518,7 @@ const SidebarMenuItem = React.forwardRef<
|
|
|
518
518
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
519
519
|
|
|
520
520
|
const sidebarMenuButtonVariants = cva(
|
|
521
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-
|
|
521
|
+
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
522
522
|
{
|
|
523
523
|
variants: {
|
|
524
524
|
variant: {
|
|
@@ -529,7 +529,7 @@ const sidebarMenuButtonVariants = cva(
|
|
|
529
529
|
size: {
|
|
530
530
|
default: "h-8 text-sm",
|
|
531
531
|
sm: "h-7 text-xs",
|
|
532
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]
|
|
532
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!",
|
|
533
533
|
},
|
|
534
534
|
},
|
|
535
535
|
defaultVariants: {
|
|
@@ -612,9 +612,9 @@ const SidebarMenuAction = React.forwardRef<
|
|
|
612
612
|
ref={ref}
|
|
613
613
|
data-sidebar="menu-action"
|
|
614
614
|
className={cn(
|
|
615
|
-
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-
|
|
615
|
+
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0",
|
|
616
616
|
// Increases the hit area of the button on mobile.
|
|
617
|
-
"after:absolute after:-inset-2 after:
|
|
617
|
+
"after:absolute after:-inset-2 md:after:hidden",
|
|
618
618
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
619
619
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
620
620
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
@@ -675,7 +675,7 @@ const SidebarMenuSkeleton = React.forwardRef<
|
|
|
675
675
|
/>
|
|
676
676
|
)}
|
|
677
677
|
<Skeleton
|
|
678
|
-
className="h-4 flex-1 max-w-
|
|
678
|
+
className="h-4 flex-1 max-w-(--skeleton-width)"
|
|
679
679
|
data-sidebar="menu-skeleton-text"
|
|
680
680
|
style={
|
|
681
681
|
{
|
|
@@ -728,7 +728,7 @@ const SidebarMenuSubButton = React.forwardRef<
|
|
|
728
728
|
data-size={size}
|
|
729
729
|
data-active={isActive}
|
|
730
730
|
className={cn(
|
|
731
|
-
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-
|
|
731
|
+
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground",
|
|
732
732
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
733
733
|
size === "sm" && "text-xs",
|
|
734
734
|
size === "md" && "text-sm",
|
|
@@ -18,7 +18,7 @@ const Slider = React.forwardRef<
|
|
|
18
18
|
<SliderPrimitive.Track className="relative h-2 w-full grow overflow-hidden rounded-full bg-secondary">
|
|
19
19
|
<SliderPrimitive.Range className="absolute h-full bg-primary" />
|
|
20
20
|
</SliderPrimitive.Track>
|
|
21
|
-
<SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-
|
|
21
|
+
<SliderPrimitive.Thumb className="block h-5 w-5 rounded-full border-2 border-primary bg-background 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" />
|
|
22
22
|
</SliderPrimitive.Root>
|
|
23
23
|
));
|
|
24
24
|
Slider.displayName = SliderPrimitive.Root.displayName;
|
|
@@ -13,7 +13,7 @@ const Toaster = ({ ...props }: ToasterProps) => {
|
|
|
13
13
|
toastOptions={{
|
|
14
14
|
classNames: {
|
|
15
15
|
toast:
|
|
16
|
-
"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]
|
|
16
|
+
"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster] group-[.toaster]:shadow-lg",
|
|
17
17
|
description: "group-[.toast]:text-muted-foreground",
|
|
18
18
|
actionButton:
|
|
19
19
|
"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
@@ -9,7 +9,7 @@ const Switch = React.forwardRef<
|
|
|
9
9
|
>(({ className, ...props }, ref) => (
|
|
10
10
|
<SwitchPrimitives.Root
|
|
11
11
|
className={cn(
|
|
12
|
-
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-
|
|
12
|
+
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
13
13
|
className,
|
|
14
14
|
)}
|
|
15
15
|
{...props}
|
|
@@ -27,7 +27,7 @@ const TabsTrigger = React.forwardRef<
|
|
|
27
27
|
<TabsPrimitive.Trigger
|
|
28
28
|
ref={ref}
|
|
29
29
|
className={cn(
|
|
30
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-
|
|
30
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs",
|
|
31
31
|
className,
|
|
32
32
|
)}
|
|
33
33
|
{...props}
|
|
@@ -42,7 +42,7 @@ const TabsContent = React.forwardRef<
|
|
|
42
42
|
<TabsPrimitive.Content
|
|
43
43
|
ref={ref}
|
|
44
44
|
className={cn(
|
|
45
|
-
"mt-2 ring-offset-background focus-visible:outline-
|
|
45
|
+
"mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
46
46
|
className,
|
|
47
47
|
)}
|
|
48
48
|
{...props}
|
|
@@ -10,7 +10,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
|
|
|
10
10
|
return (
|
|
11
11
|
<textarea
|
|
12
12
|
className={cn(
|
|
13
|
-
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-
|
|
13
|
+
"flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background 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",
|
|
14
14
|
className,
|
|
15
15
|
)}
|
|
16
16
|
ref={ref}
|
|
@@ -14,7 +14,7 @@ const ToastViewport = React.forwardRef<
|
|
|
14
14
|
<ToastPrimitives.Viewport
|
|
15
15
|
ref={ref}
|
|
16
16
|
className={cn(
|
|
17
|
-
"fixed top-0 z-
|
|
17
|
+
"fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
|
|
18
18
|
className,
|
|
19
19
|
)}
|
|
20
20
|
{...props}
|
|
@@ -23,7 +23,7 @@ const ToastViewport = React.forwardRef<
|
|
|
23
23
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
24
24
|
|
|
25
25
|
const toastVariants = cva(
|
|
26
|
-
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-
|
|
26
|
+
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",
|
|
27
27
|
{
|
|
28
28
|
variants: {
|
|
29
29
|
variant: {
|
|
@@ -60,7 +60,7 @@ const ToastAction = React.forwardRef<
|
|
|
60
60
|
<ToastPrimitives.Action
|
|
61
61
|
ref={ref}
|
|
62
62
|
className={cn(
|
|
63
|
-
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-
|
|
63
|
+
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",
|
|
64
64
|
className,
|
|
65
65
|
)}
|
|
66
66
|
{...props}
|
|
@@ -75,7 +75,7 @@ const ToastClose = React.forwardRef<
|
|
|
75
75
|
<ToastPrimitives.Close
|
|
76
76
|
ref={ref}
|
|
77
77
|
className={cn(
|
|
78
|
-
"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-
|
|
78
|
+
"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",
|
|
79
79
|
className,
|
|
80
80
|
)}
|
|
81
81
|
toast-close=""
|
|
@@ -5,7 +5,7 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
5
5
|
import { cn } from "@/lib/utils";
|
|
6
6
|
|
|
7
7
|
const toggleVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-
|
|
8
|
+
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|