@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
package/dist/ui/index.es.js
CHANGED
|
@@ -86,7 +86,7 @@ const Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
86
86
|
{
|
|
87
87
|
ref,
|
|
88
88
|
className: cn(
|
|
89
|
-
"rounded-lg border bg-card text-card-foreground shadow-
|
|
89
|
+
"rounded-lg border bg-card text-card-foreground shadow-xs",
|
|
90
90
|
className
|
|
91
91
|
),
|
|
92
92
|
...props
|
|
@@ -143,7 +143,7 @@ const Separator = React.forwardRef(
|
|
|
143
143
|
orientation,
|
|
144
144
|
className: cn(
|
|
145
145
|
"shrink-0 bg-border",
|
|
146
|
-
orientation === "horizontal" ? "h-
|
|
146
|
+
orientation === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
147
147
|
className
|
|
148
148
|
),
|
|
149
149
|
...props
|
|
@@ -172,8 +172,8 @@ const ScrollBar = React.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
172
172
|
orientation,
|
|
173
173
|
className: cn(
|
|
174
174
|
"flex touch-none select-none transition-colors",
|
|
175
|
-
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-
|
|
176
|
-
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-
|
|
175
|
+
orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px",
|
|
176
|
+
orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px",
|
|
177
177
|
className
|
|
178
178
|
),
|
|
179
179
|
...props,
|
|
@@ -206,7 +206,7 @@ const TableFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
206
206
|
{
|
|
207
207
|
ref,
|
|
208
208
|
className: cn(
|
|
209
|
-
"border-t bg-muted/50 font-medium [&>tr]:
|
|
209
|
+
"border-t bg-muted/50 font-medium last:[&>tr]:border-b-0",
|
|
210
210
|
className
|
|
211
211
|
),
|
|
212
212
|
...props
|
|
@@ -277,7 +277,7 @@ const ResizableHandle = ({
|
|
|
277
277
|
ResizablePrimitive.PanelResizeHandle,
|
|
278
278
|
{
|
|
279
279
|
className: cn(
|
|
280
|
-
"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-
|
|
280
|
+
"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",
|
|
281
281
|
className
|
|
282
282
|
),
|
|
283
283
|
...props,
|
|
@@ -301,7 +301,7 @@ function useIsMobile() {
|
|
|
301
301
|
return !!isMobile;
|
|
302
302
|
}
|
|
303
303
|
const buttonVariants = cva(
|
|
304
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-
|
|
304
|
+
"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",
|
|
305
305
|
{
|
|
306
306
|
variants: {
|
|
307
307
|
variant: {
|
|
@@ -346,7 +346,7 @@ const Input = React.forwardRef(
|
|
|
346
346
|
{
|
|
347
347
|
type,
|
|
348
348
|
className: cn(
|
|
349
|
-
"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-
|
|
349
|
+
"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",
|
|
350
350
|
className
|
|
351
351
|
),
|
|
352
352
|
ref,
|
|
@@ -398,7 +398,7 @@ const SheetContent = React.forwardRef(({ side = "right", className, children, ..
|
|
|
398
398
|
...props,
|
|
399
399
|
children: [
|
|
400
400
|
children,
|
|
401
|
-
/* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-
|
|
401
|
+
/* @__PURE__ */ jsxs(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", children: [
|
|
402
402
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
403
403
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
404
404
|
] })
|
|
@@ -564,7 +564,7 @@ const SidebarProvider = React.forwardRef(
|
|
|
564
564
|
...style
|
|
565
565
|
},
|
|
566
566
|
className: cn(
|
|
567
|
-
"group/sidebar-wrapper flex min-h-svh w-full has-
|
|
567
|
+
"group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",
|
|
568
568
|
className
|
|
569
569
|
),
|
|
570
570
|
ref,
|
|
@@ -590,7 +590,7 @@ const Sidebar = React.forwardRef(
|
|
|
590
590
|
"div",
|
|
591
591
|
{
|
|
592
592
|
className: cn(
|
|
593
|
-
"flex h-full w-
|
|
593
|
+
"flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",
|
|
594
594
|
className
|
|
595
595
|
),
|
|
596
596
|
ref,
|
|
@@ -605,7 +605,7 @@ const Sidebar = React.forwardRef(
|
|
|
605
605
|
{
|
|
606
606
|
"data-sidebar": "sidebar",
|
|
607
607
|
"data-mobile": "true",
|
|
608
|
-
className: "w-
|
|
608
|
+
className: "w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
609
609
|
style: {
|
|
610
610
|
"--sidebar-width": SIDEBAR_WIDTH_MOBILE
|
|
611
611
|
},
|
|
@@ -628,10 +628,10 @@ const Sidebar = React.forwardRef(
|
|
|
628
628
|
"div",
|
|
629
629
|
{
|
|
630
630
|
className: cn(
|
|
631
|
-
"duration-200 relative h-svh w-
|
|
631
|
+
"duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear",
|
|
632
632
|
"group-data-[collapsible=offcanvas]:w-0",
|
|
633
633
|
"group-data-[side=right]:rotate-180",
|
|
634
|
-
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)
|
|
634
|
+
variant === "floating" || variant === "inset" ? "group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon)"
|
|
635
635
|
)
|
|
636
636
|
}
|
|
637
637
|
),
|
|
@@ -639,10 +639,10 @@ const Sidebar = React.forwardRef(
|
|
|
639
639
|
"div",
|
|
640
640
|
{
|
|
641
641
|
className: cn(
|
|
642
|
-
"duration-200 fixed inset-y-0 z-10 hidden h-svh w-
|
|
642
|
+
"duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex",
|
|
643
643
|
side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",
|
|
644
644
|
// Adjust the padding for floating and inset variants.
|
|
645
|
-
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)
|
|
645
|
+
variant === "floating" || variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",
|
|
646
646
|
className
|
|
647
647
|
),
|
|
648
648
|
...props,
|
|
@@ -650,7 +650,7 @@ const Sidebar = React.forwardRef(
|
|
|
650
650
|
"div",
|
|
651
651
|
{
|
|
652
652
|
"data-sidebar": "sidebar",
|
|
653
|
-
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",
|
|
653
|
+
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",
|
|
654
654
|
children
|
|
655
655
|
}
|
|
656
656
|
)
|
|
@@ -698,9 +698,9 @@ const SidebarRail = React.forwardRef(({ className, ...props }, ref) => {
|
|
|
698
698
|
title: "Toggle Sidebar",
|
|
699
699
|
className: cn(
|
|
700
700
|
"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",
|
|
701
|
-
"
|
|
701
|
+
"in-data-[side=left]:cursor-w-resize in-data-[side=right]:cursor-e-resize",
|
|
702
702
|
"[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize",
|
|
703
|
-
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:
|
|
703
|
+
"group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full hover:group-data-[collapsible=offcanvas]:bg-sidebar",
|
|
704
704
|
"[[data-side=left][data-collapsible=offcanvas]_&]:-right-2",
|
|
705
705
|
"[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",
|
|
706
706
|
className
|
|
@@ -717,7 +717,7 @@ const SidebarInset = React.forwardRef(({ className, ...props }, ref) => {
|
|
|
717
717
|
ref,
|
|
718
718
|
className: cn(
|
|
719
719
|
"relative flex min-h-svh flex-1 flex-col bg-background",
|
|
720
|
-
"peer-data-[variant=inset]:min-h-[calc(100svh-
|
|
720
|
+
"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",
|
|
721
721
|
className
|
|
722
722
|
),
|
|
723
723
|
...props
|
|
@@ -811,7 +811,7 @@ const SidebarGroupLabel = React.forwardRef(({ className, asChild = false, ...pro
|
|
|
811
811
|
ref,
|
|
812
812
|
"data-sidebar": "group-label",
|
|
813
813
|
className: cn(
|
|
814
|
-
"duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-
|
|
814
|
+
"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",
|
|
815
815
|
"group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",
|
|
816
816
|
className
|
|
817
817
|
),
|
|
@@ -828,9 +828,9 @@ const SidebarGroupAction = React.forwardRef(({ className, asChild = false, ...pr
|
|
|
828
828
|
ref,
|
|
829
829
|
"data-sidebar": "group-action",
|
|
830
830
|
className: cn(
|
|
831
|
-
"absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-
|
|
831
|
+
"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",
|
|
832
832
|
// Increases the hit area of the button on mobile.
|
|
833
|
-
"after:absolute after:-inset-2 after:
|
|
833
|
+
"after:absolute after:-inset-2 md:after:hidden",
|
|
834
834
|
"group-data-[collapsible=icon]:hidden",
|
|
835
835
|
className
|
|
836
836
|
),
|
|
@@ -870,7 +870,7 @@ const SidebarMenuItem = React.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
870
870
|
));
|
|
871
871
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
872
872
|
const sidebarMenuButtonVariants = cva(
|
|
873
|
-
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-
|
|
873
|
+
"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",
|
|
874
874
|
{
|
|
875
875
|
variants: {
|
|
876
876
|
variant: {
|
|
@@ -880,7 +880,7 @@ const sidebarMenuButtonVariants = cva(
|
|
|
880
880
|
size: {
|
|
881
881
|
default: "h-8 text-sm",
|
|
882
882
|
sm: "h-7 text-xs",
|
|
883
|
-
lg: "h-12 text-sm group-data-[collapsible=icon]
|
|
883
|
+
lg: "h-12 text-sm group-data-[collapsible=icon]:p-0!"
|
|
884
884
|
}
|
|
885
885
|
},
|
|
886
886
|
defaultVariants: {
|
|
@@ -943,9 +943,9 @@ const SidebarMenuAction = React.forwardRef(({ className, asChild = false, showOn
|
|
|
943
943
|
ref,
|
|
944
944
|
"data-sidebar": "menu-action",
|
|
945
945
|
className: cn(
|
|
946
|
-
"absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-
|
|
946
|
+
"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",
|
|
947
947
|
// Increases the hit area of the button on mobile.
|
|
948
|
-
"after:absolute after:-inset-2 after:
|
|
948
|
+
"after:absolute after:-inset-2 md:after:hidden",
|
|
949
949
|
"peer-data-[size=sm]/menu-button:top-1",
|
|
950
950
|
"peer-data-[size=default]/menu-button:top-1.5",
|
|
951
951
|
"peer-data-[size=lg]/menu-button:top-2.5",
|
|
@@ -998,7 +998,7 @@ const SidebarMenuSkeleton = React.forwardRef(({ className, showIcon = false, ...
|
|
|
998
998
|
/* @__PURE__ */ jsx(
|
|
999
999
|
Skeleton,
|
|
1000
1000
|
{
|
|
1001
|
-
className: "h-4 flex-1 max-w-
|
|
1001
|
+
className: "h-4 flex-1 max-w-(--skeleton-width)",
|
|
1002
1002
|
"data-sidebar": "menu-skeleton-text",
|
|
1003
1003
|
style: {
|
|
1004
1004
|
"--skeleton-width": width
|
|
@@ -1036,7 +1036,7 @@ const SidebarMenuSubButton = React.forwardRef(({ asChild = false, size = "md", i
|
|
|
1036
1036
|
"data-size": size,
|
|
1037
1037
|
"data-active": isActive,
|
|
1038
1038
|
className: cn(
|
|
1039
|
-
"flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-
|
|
1039
|
+
"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",
|
|
1040
1040
|
"data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",
|
|
1041
1041
|
size === "sm" && "text-xs",
|
|
1042
1042
|
size === "md" && "text-sm",
|
|
@@ -1066,7 +1066,7 @@ const Textarea = React.forwardRef(
|
|
|
1066
1066
|
"textarea",
|
|
1067
1067
|
{
|
|
1068
1068
|
className: cn(
|
|
1069
|
-
"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-
|
|
1069
|
+
"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",
|
|
1070
1070
|
className
|
|
1071
1071
|
),
|
|
1072
1072
|
ref,
|
|
@@ -1081,7 +1081,7 @@ const Checkbox = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1081
1081
|
{
|
|
1082
1082
|
ref,
|
|
1083
1083
|
className: cn(
|
|
1084
|
-
"peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-
|
|
1084
|
+
"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",
|
|
1085
1085
|
className
|
|
1086
1086
|
),
|
|
1087
1087
|
...props,
|
|
@@ -1112,7 +1112,7 @@ const RadioGroupItem = React.forwardRef(({ className, ...props }, ref) => {
|
|
|
1112
1112
|
{
|
|
1113
1113
|
ref,
|
|
1114
1114
|
className: cn(
|
|
1115
|
-
"aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-
|
|
1115
|
+
"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",
|
|
1116
1116
|
className
|
|
1117
1117
|
),
|
|
1118
1118
|
...props,
|
|
@@ -1125,7 +1125,7 @@ const Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1125
1125
|
SwitchPrimitives.Root,
|
|
1126
1126
|
{
|
|
1127
1127
|
className: cn(
|
|
1128
|
-
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-
|
|
1128
|
+
"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",
|
|
1129
1129
|
className
|
|
1130
1130
|
),
|
|
1131
1131
|
...props,
|
|
@@ -1152,7 +1152,7 @@ const Slider = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
1152
1152
|
...props,
|
|
1153
1153
|
children: [
|
|
1154
1154
|
/* @__PURE__ */ jsx(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
1155
|
-
/* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-
|
|
1155
|
+
/* @__PURE__ */ jsx(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" })
|
|
1156
1156
|
]
|
|
1157
1157
|
}
|
|
1158
1158
|
));
|
|
@@ -1162,7 +1162,7 @@ const InputOTP = React.forwardRef(({ className, containerClassName, ...props },
|
|
|
1162
1162
|
{
|
|
1163
1163
|
ref,
|
|
1164
1164
|
containerClassName: cn(
|
|
1165
|
-
"flex items-center gap-2 has-
|
|
1165
|
+
"flex items-center gap-2 has-disabled:opacity-50",
|
|
1166
1166
|
containerClassName
|
|
1167
1167
|
),
|
|
1168
1168
|
className: cn("disabled:cursor-not-allowed", className),
|
|
@@ -1203,7 +1203,7 @@ const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
1203
1203
|
{
|
|
1204
1204
|
ref,
|
|
1205
1205
|
className: cn(
|
|
1206
|
-
"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-
|
|
1206
|
+
"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",
|
|
1207
1207
|
className
|
|
1208
1208
|
),
|
|
1209
1209
|
...props,
|
|
@@ -1245,7 +1245,7 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
|
|
|
1245
1245
|
{
|
|
1246
1246
|
ref,
|
|
1247
1247
|
className: cn(
|
|
1248
|
-
"relative z-50 max-h-96 min-w-
|
|
1248
|
+
"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",
|
|
1249
1249
|
position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
1250
1250
|
className
|
|
1251
1251
|
),
|
|
@@ -1258,7 +1258,7 @@ const SelectContent = React.forwardRef(({ className, children, position = "poppe
|
|
|
1258
1258
|
{
|
|
1259
1259
|
className: cn(
|
|
1260
1260
|
"p-1",
|
|
1261
|
-
position === "popper" && "h-
|
|
1261
|
+
position === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"
|
|
1262
1262
|
),
|
|
1263
1263
|
children
|
|
1264
1264
|
}
|
|
@@ -1282,7 +1282,7 @@ const SelectItem = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1282
1282
|
{
|
|
1283
1283
|
ref,
|
|
1284
1284
|
className: cn(
|
|
1285
|
-
"relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
1285
|
+
"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",
|
|
1286
1286
|
className
|
|
1287
1287
|
),
|
|
1288
1288
|
...props,
|
|
@@ -1396,7 +1396,7 @@ const FormMessage = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
1396
1396
|
});
|
|
1397
1397
|
FormMessage.displayName = "FormMessage";
|
|
1398
1398
|
const toggleVariants = cva(
|
|
1399
|
-
"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-
|
|
1399
|
+
"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",
|
|
1400
1400
|
{
|
|
1401
1401
|
variants: {
|
|
1402
1402
|
variant: {
|
|
@@ -1458,7 +1458,7 @@ const ToggleGroupItem = React.forwardRef(({ className, children, variant, size,
|
|
|
1458
1458
|
});
|
|
1459
1459
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
|
|
1460
1460
|
const badgeVariants = cva(
|
|
1461
|
-
"inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-
|
|
1461
|
+
"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",
|
|
1462
1462
|
{
|
|
1463
1463
|
variants: {
|
|
1464
1464
|
variant: {
|
|
@@ -1656,7 +1656,7 @@ const BreadcrumbList = React.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
1656
1656
|
{
|
|
1657
1657
|
ref,
|
|
1658
1658
|
className: cn(
|
|
1659
|
-
"flex flex-wrap items-center gap-1.5 break-
|
|
1659
|
+
"flex flex-wrap items-center gap-1.5 wrap-break-word text-sm text-muted-foreground sm:gap-2.5",
|
|
1660
1660
|
className
|
|
1661
1661
|
),
|
|
1662
1662
|
...props
|
|
@@ -1802,7 +1802,7 @@ const TabsTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1802
1802
|
{
|
|
1803
1803
|
ref,
|
|
1804
1804
|
className: cn(
|
|
1805
|
-
"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-
|
|
1805
|
+
"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",
|
|
1806
1806
|
className
|
|
1807
1807
|
),
|
|
1808
1808
|
...props
|
|
@@ -1814,7 +1814,7 @@ const TabsContent = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
1814
1814
|
{
|
|
1815
1815
|
ref,
|
|
1816
1816
|
className: cn(
|
|
1817
|
-
"mt-2 ring-offset-background focus-visible:outline-
|
|
1817
|
+
"mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
1818
1818
|
className
|
|
1819
1819
|
),
|
|
1820
1820
|
...props
|
|
@@ -1853,7 +1853,7 @@ const PaginationLink = ({
|
|
|
1853
1853
|
"aria-current": isActive ? "page" : void 0,
|
|
1854
1854
|
className: cn(
|
|
1855
1855
|
buttonVariants({
|
|
1856
|
-
variant: isActive ? "outline" : "ghost",
|
|
1856
|
+
variant: isActive ? "outline-solid" : "ghost",
|
|
1857
1857
|
size
|
|
1858
1858
|
}),
|
|
1859
1859
|
className
|
|
@@ -1942,7 +1942,7 @@ const NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => /*
|
|
|
1942
1942
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
1943
1943
|
const NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
1944
1944
|
const navigationMenuTriggerStyle = cva(
|
|
1945
|
-
"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-
|
|
1945
|
+
"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"
|
|
1946
1946
|
);
|
|
1947
1947
|
const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
1948
1948
|
NavigationMenuPrimitive.Trigger,
|
|
@@ -1956,7 +1956,7 @@ const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props
|
|
|
1956
1956
|
/* @__PURE__ */ jsx(
|
|
1957
1957
|
ChevronDown,
|
|
1958
1958
|
{
|
|
1959
|
-
className: "relative top-
|
|
1959
|
+
className: "relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180",
|
|
1960
1960
|
"aria-hidden": "true"
|
|
1961
1961
|
}
|
|
1962
1962
|
)
|
|
@@ -1981,7 +1981,7 @@ const NavigationMenuViewport = React.forwardRef(({ className, ...props }, ref) =
|
|
|
1981
1981
|
NavigationMenuPrimitive.Viewport,
|
|
1982
1982
|
{
|
|
1983
1983
|
className: cn(
|
|
1984
|
-
"origin-top-center relative mt-1.5 h-
|
|
1984
|
+
"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)",
|
|
1985
1985
|
className
|
|
1986
1986
|
),
|
|
1987
1987
|
ref,
|
|
@@ -1994,7 +1994,7 @@ const NavigationMenuIndicator = React.forwardRef(({ className, ...props }, ref)
|
|
|
1994
1994
|
{
|
|
1995
1995
|
ref,
|
|
1996
1996
|
className: cn(
|
|
1997
|
-
"top-full z-
|
|
1997
|
+
"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",
|
|
1998
1998
|
className
|
|
1999
1999
|
),
|
|
2000
2000
|
...props,
|
|
@@ -2022,7 +2022,7 @@ const MenubarTrigger = React.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2022
2022
|
{
|
|
2023
2023
|
ref,
|
|
2024
2024
|
className: cn(
|
|
2025
|
-
"flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-
|
|
2025
|
+
"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",
|
|
2026
2026
|
className
|
|
2027
2027
|
),
|
|
2028
2028
|
...props
|
|
@@ -2034,7 +2034,7 @@ const MenubarSubTrigger = React.forwardRef(({ className, inset, children, ...pro
|
|
|
2034
2034
|
{
|
|
2035
2035
|
ref,
|
|
2036
2036
|
className: cn(
|
|
2037
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
2037
|
+
"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",
|
|
2038
2038
|
inset && "pl-8",
|
|
2039
2039
|
className
|
|
2040
2040
|
),
|
|
@@ -2051,7 +2051,7 @@ const MenubarSubContent = React.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2051
2051
|
{
|
|
2052
2052
|
ref,
|
|
2053
2053
|
className: cn(
|
|
2054
|
-
"z-50 min-w-
|
|
2054
|
+
"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",
|
|
2055
2055
|
className
|
|
2056
2056
|
),
|
|
2057
2057
|
...props
|
|
@@ -2067,7 +2067,7 @@ const MenubarContent = React.forwardRef(
|
|
|
2067
2067
|
alignOffset,
|
|
2068
2068
|
sideOffset,
|
|
2069
2069
|
className: cn(
|
|
2070
|
-
"z-50 min-w-
|
|
2070
|
+
"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",
|
|
2071
2071
|
className
|
|
2072
2072
|
),
|
|
2073
2073
|
...props
|
|
@@ -2080,7 +2080,7 @@ const MenubarItem = React.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
2080
2080
|
{
|
|
2081
2081
|
ref,
|
|
2082
2082
|
className: cn(
|
|
2083
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
2083
|
+
"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",
|
|
2084
2084
|
inset && "pl-8",
|
|
2085
2085
|
className
|
|
2086
2086
|
),
|
|
@@ -2093,7 +2093,7 @@ const MenubarCheckboxItem = React.forwardRef(({ className, children, checked, ..
|
|
|
2093
2093
|
{
|
|
2094
2094
|
ref,
|
|
2095
2095
|
className: cn(
|
|
2096
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
2096
|
+
"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",
|
|
2097
2097
|
className
|
|
2098
2098
|
),
|
|
2099
2099
|
checked,
|
|
@@ -2110,7 +2110,7 @@ const MenubarRadioItem = React.forwardRef(({ className, children, ...props }, re
|
|
|
2110
2110
|
{
|
|
2111
2111
|
ref,
|
|
2112
2112
|
className: cn(
|
|
2113
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
2113
|
+
"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",
|
|
2114
2114
|
className
|
|
2115
2115
|
),
|
|
2116
2116
|
...props,
|
|
@@ -2170,7 +2170,7 @@ const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, .
|
|
|
2170
2170
|
{
|
|
2171
2171
|
ref,
|
|
2172
2172
|
className: cn(
|
|
2173
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
2173
|
+
"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",
|
|
2174
2174
|
inset && "pl-8",
|
|
2175
2175
|
className
|
|
2176
2176
|
),
|
|
@@ -2187,7 +2187,7 @@ const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) =
|
|
|
2187
2187
|
{
|
|
2188
2188
|
ref,
|
|
2189
2189
|
className: cn(
|
|
2190
|
-
"z-50 min-w-
|
|
2190
|
+
"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",
|
|
2191
2191
|
className
|
|
2192
2192
|
),
|
|
2193
2193
|
...props
|
|
@@ -2200,7 +2200,7 @@ const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
2200
2200
|
ref,
|
|
2201
2201
|
sideOffset,
|
|
2202
2202
|
className: cn(
|
|
2203
|
-
"z-50 min-w-
|
|
2203
|
+
"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",
|
|
2204
2204
|
className
|
|
2205
2205
|
),
|
|
2206
2206
|
...props
|
|
@@ -2212,7 +2212,7 @@ const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2212
2212
|
{
|
|
2213
2213
|
ref,
|
|
2214
2214
|
className: cn(
|
|
2215
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
2215
|
+
"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",
|
|
2216
2216
|
inset && "pl-8",
|
|
2217
2217
|
className
|
|
2218
2218
|
),
|
|
@@ -2225,7 +2225,7 @@ const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checke
|
|
|
2225
2225
|
{
|
|
2226
2226
|
ref,
|
|
2227
2227
|
className: cn(
|
|
2228
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
2228
|
+
"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",
|
|
2229
2229
|
className
|
|
2230
2230
|
),
|
|
2231
2231
|
checked,
|
|
@@ -2242,7 +2242,7 @@ const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props
|
|
|
2242
2242
|
{
|
|
2243
2243
|
ref,
|
|
2244
2244
|
className: cn(
|
|
2245
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
2245
|
+
"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",
|
|
2246
2246
|
className
|
|
2247
2247
|
),
|
|
2248
2248
|
...props,
|
|
@@ -2317,7 +2317,7 @@ const DialogContent = React.forwardRef(({ className, children, ...props }, ref)
|
|
|
2317
2317
|
...props,
|
|
2318
2318
|
children: [
|
|
2319
2319
|
children,
|
|
2320
|
-
/* @__PURE__ */ jsxs(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-
|
|
2320
|
+
/* @__PURE__ */ jsxs(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-accent data-[state=open]:text-muted-foreground", children: [
|
|
2321
2321
|
/* @__PURE__ */ jsx(X, { className: "h-4 w-4" }),
|
|
2322
2322
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
2323
2323
|
] })
|
|
@@ -2469,7 +2469,7 @@ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffs
|
|
|
2469
2469
|
align,
|
|
2470
2470
|
sideOffset,
|
|
2471
2471
|
className: cn(
|
|
2472
|
-
"z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-
|
|
2472
|
+
"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",
|
|
2473
2473
|
className
|
|
2474
2474
|
),
|
|
2475
2475
|
...props
|
|
@@ -2485,7 +2485,7 @@ const HoverCardContent = React.forwardRef(({ className, align = "center", sideOf
|
|
|
2485
2485
|
align,
|
|
2486
2486
|
sideOffset,
|
|
2487
2487
|
className: cn(
|
|
2488
|
-
"z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-
|
|
2488
|
+
"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",
|
|
2489
2489
|
className
|
|
2490
2490
|
),
|
|
2491
2491
|
...props
|
|
@@ -2503,7 +2503,7 @@ const ContextMenuSubTrigger = React.forwardRef(({ className, inset, children, ..
|
|
|
2503
2503
|
{
|
|
2504
2504
|
ref,
|
|
2505
2505
|
className: cn(
|
|
2506
|
-
"flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
2506
|
+
"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",
|
|
2507
2507
|
inset && "pl-8",
|
|
2508
2508
|
className
|
|
2509
2509
|
),
|
|
@@ -2520,7 +2520,7 @@ const ContextMenuSubContent = React.forwardRef(({ className, ...props }, ref) =>
|
|
|
2520
2520
|
{
|
|
2521
2521
|
ref,
|
|
2522
2522
|
className: cn(
|
|
2523
|
-
"z-50 min-w-
|
|
2523
|
+
"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",
|
|
2524
2524
|
className
|
|
2525
2525
|
),
|
|
2526
2526
|
...props
|
|
@@ -2532,7 +2532,7 @@ const ContextMenuContent = React.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2532
2532
|
{
|
|
2533
2533
|
ref,
|
|
2534
2534
|
className: cn(
|
|
2535
|
-
"z-50 min-w-
|
|
2535
|
+
"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",
|
|
2536
2536
|
className
|
|
2537
2537
|
),
|
|
2538
2538
|
...props
|
|
@@ -2544,7 +2544,7 @@ const ContextMenuItem = React.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
2544
2544
|
{
|
|
2545
2545
|
ref,
|
|
2546
2546
|
className: cn(
|
|
2547
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
2547
|
+
"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",
|
|
2548
2548
|
inset && "pl-8",
|
|
2549
2549
|
className
|
|
2550
2550
|
),
|
|
@@ -2557,7 +2557,7 @@ const ContextMenuCheckboxItem = React.forwardRef(({ className, children, checked
|
|
|
2557
2557
|
{
|
|
2558
2558
|
ref,
|
|
2559
2559
|
className: cn(
|
|
2560
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
2560
|
+
"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",
|
|
2561
2561
|
className
|
|
2562
2562
|
),
|
|
2563
2563
|
checked,
|
|
@@ -2574,7 +2574,7 @@ const ContextMenuRadioItem = React.forwardRef(({ className, children, ...props }
|
|
|
2574
2574
|
{
|
|
2575
2575
|
ref,
|
|
2576
2576
|
className: cn(
|
|
2577
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-
|
|
2577
|
+
"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",
|
|
2578
2578
|
className
|
|
2579
2579
|
),
|
|
2580
2580
|
...props,
|
|
@@ -2820,7 +2820,7 @@ const Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2820
2820
|
));
|
|
2821
2821
|
Command.displayName = Command$1.displayName;
|
|
2822
2822
|
const CommandDialog = ({ children, ...props }) => {
|
|
2823
|
-
return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx(Command, { className: "[
|
|
2823
|
+
return /* @__PURE__ */ jsx(Dialog, { ...props, children: /* @__PURE__ */ jsx(DialogContent, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ jsx(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", children }) }) });
|
|
2824
2824
|
};
|
|
2825
2825
|
const CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
2826
2826
|
/* @__PURE__ */ jsx(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
@@ -2829,7 +2829,7 @@ const CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2829
2829
|
{
|
|
2830
2830
|
ref,
|
|
2831
2831
|
className: cn(
|
|
2832
|
-
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-
|
|
2832
|
+
"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",
|
|
2833
2833
|
className
|
|
2834
2834
|
),
|
|
2835
2835
|
...props
|
|
@@ -2860,7 +2860,7 @@ const CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2860
2860
|
{
|
|
2861
2861
|
ref,
|
|
2862
2862
|
className: cn(
|
|
2863
|
-
"overflow-hidden p-1 text-foreground [
|
|
2863
|
+
"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",
|
|
2864
2864
|
className
|
|
2865
2865
|
),
|
|
2866
2866
|
...props
|
|
@@ -2881,7 +2881,7 @@ const CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2881
2881
|
{
|
|
2882
2882
|
ref,
|
|
2883
2883
|
className: cn(
|
|
2884
|
-
"relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-
|
|
2884
|
+
"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",
|
|
2885
2885
|
className
|
|
2886
2886
|
),
|
|
2887
2887
|
...props
|
|
@@ -2910,7 +2910,7 @@ const ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2910
2910
|
{
|
|
2911
2911
|
ref,
|
|
2912
2912
|
className: cn(
|
|
2913
|
-
"fixed top-0 z-
|
|
2913
|
+
"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]",
|
|
2914
2914
|
className
|
|
2915
2915
|
),
|
|
2916
2916
|
...props
|
|
@@ -2918,7 +2918,7 @@ const ToastViewport = React.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2918
2918
|
));
|
|
2919
2919
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
2920
2920
|
const toastVariants = cva(
|
|
2921
|
-
"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-
|
|
2921
|
+
"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",
|
|
2922
2922
|
{
|
|
2923
2923
|
variants: {
|
|
2924
2924
|
variant: {
|
|
@@ -2947,7 +2947,7 @@ const ToastAction = React.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2947
2947
|
{
|
|
2948
2948
|
ref,
|
|
2949
2949
|
className: cn(
|
|
2950
|
-
"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-
|
|
2950
|
+
"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",
|
|
2951
2951
|
className
|
|
2952
2952
|
),
|
|
2953
2953
|
...props
|
|
@@ -2959,7 +2959,7 @@ const ToastClose = React.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2959
2959
|
{
|
|
2960
2960
|
ref,
|
|
2961
2961
|
className: cn(
|
|
2962
|
-
"absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-
|
|
2962
|
+
"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",
|
|
2963
2963
|
className
|
|
2964
2964
|
),
|
|
2965
2965
|
"toast-close": "",
|
|
@@ -3136,7 +3136,7 @@ const ChartContainer = React.forwardRef(({ id, className, children, config, ...p
|
|
|
3136
3136
|
"data-chart": chartId,
|
|
3137
3137
|
ref,
|
|
3138
3138
|
className: cn(
|
|
3139
|
-
"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-
|
|
3139
|
+
"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",
|
|
3140
3140
|
className
|
|
3141
3141
|
),
|
|
3142
3142
|
...props,
|
|
@@ -3226,7 +3226,7 @@ const ChartTooltipContent = React.forwardRef(
|
|
|
3226
3226
|
{
|
|
3227
3227
|
ref,
|
|
3228
3228
|
className: cn(
|
|
3229
|
-
"grid min-w-
|
|
3229
|
+
"grid min-w-32 items-start gap-1.5 rounded-lg border bg-background px-2.5 py-1.5 text-xs shadow-xl",
|
|
3230
3230
|
className
|
|
3231
3231
|
),
|
|
3232
3232
|
children: [
|
|
@@ -3247,7 +3247,7 @@ const ChartTooltipContent = React.forwardRef(
|
|
|
3247
3247
|
"div",
|
|
3248
3248
|
{
|
|
3249
3249
|
className: cn(
|
|
3250
|
-
"shrink-0 rounded-[2px] border-
|
|
3250
|
+
"shrink-0 rounded-[2px] border-border bg-(--color-bg)",
|
|
3251
3251
|
{
|
|
3252
3252
|
"h-2.5 w-2.5": indicator === "dot",
|
|
3253
3253
|
"w-1": indicator === "line",
|
|
@@ -3356,7 +3356,7 @@ const Toaster = ({ ...props }) => {
|
|
|
3356
3356
|
className: "toaster group",
|
|
3357
3357
|
toastOptions: {
|
|
3358
3358
|
classNames: {
|
|
3359
|
-
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]
|
|
3359
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster] group-[.toaster]:shadow-lg",
|
|
3360
3360
|
description: "group-[.toast]:text-muted-foreground",
|
|
3361
3361
|
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
3362
3362
|
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|