shadcn-packaged 2025.3.10 → 2025.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shadcn-packaged",
3
3
  "private": false,
4
- "version": "2025.3.10",
4
+ "version": "2025.3.17",
5
5
  "type": "module",
6
6
  "module": "index.mjs",
7
7
  "scripts": {
@@ -55,7 +55,7 @@
55
55
  "date-fns": "^4.1.0",
56
56
  "embla-carousel-react": "^8.5.2",
57
57
  "input-otp": "^1.4.2",
58
- "next-themes": "^0.4.5",
58
+ "next-themes": "^0.4.6",
59
59
  "react-day-picker": "^8.10.1",
60
60
  "react-hook-form": "^7.54.2",
61
61
  "react-resizable-panels": "^2.1.7",
@@ -71,7 +71,7 @@
71
71
  "class-variance-authority": "^0.7.1",
72
72
  "clsx": "^2.1.1",
73
73
  "globals": "^15.14.0",
74
- "lucide-react": "^0.479.0",
74
+ "lucide-react": "^0.482.0",
75
75
  "tailwind-merge": "^3.0.2",
76
76
  "tailwindcss": "^3.4.17",
77
77
  "tailwindcss-animate": "^1.0.7",
@@ -17,7 +17,7 @@ ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
17
17
  const ContextMenuSubContent = React.forwardRef(({ className, ...props }, ref) => (<ContextMenuPrimitive.SubContent ref={ref} className={cn("z-50 min-w-[8rem] 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", className)} {...props}/>));
18
18
  ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
19
19
  const ContextMenuContent = React.forwardRef(({ className, ...props }, ref) => (<ContextMenuPrimitive.Portal>
20
- <ContextMenuPrimitive.Content ref={ref} className={cn("z-50 min-w-[8rem] 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", className)} {...props}/>
20
+ <ContextMenuPrimitive.Content ref={ref} className={cn("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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", className)} {...props}/>
21
21
  </ContextMenuPrimitive.Portal>));
22
22
  ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
23
23
  const ContextMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (<ContextMenuPrimitive.Item ref={ref} className={cn("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", inset && "pl-8", className)} {...props}/>));
package/ui/select.jsx CHANGED
@@ -23,7 +23,7 @@ const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) =
23
23
  SelectScrollDownButton.displayName =
24
24
  SelectPrimitive.ScrollDownButton.displayName;
25
25
  const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => (<SelectPrimitive.Portal>
26
- <SelectPrimitive.Content ref={ref} className={cn("relative z-50 max-h-96 min-w-[8rem] 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", position === "popper" &&
26
+ <SelectPrimitive.Content ref={ref} className={cn("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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", position === "popper" &&
27
27
  "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className)} position={position} {...props}>
28
28
  <SelectScrollUpButton />
29
29
  <SelectPrimitive.Viewport className={cn("p-1", position === "popper" &&
package/ui/sidebar.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from "react";
2
2
  import { VariantProps } from "class-variance-authority";
3
3
  import { TooltipContent } from "../ui/tooltip";
4
- type SidebarContext = {
4
+ type SidebarContextProps = {
5
5
  state: "expanded" | "collapsed";
6
6
  open: boolean;
7
7
  setOpen: (open: boolean) => void;
@@ -10,8 +10,7 @@ type SidebarContext = {
10
10
  isMobile: boolean;
11
11
  toggleSidebar: () => void;
12
12
  };
13
- declare const SidebarContext: React.Context<SidebarContext>;
14
- declare function useSidebar(): SidebarContext;
13
+ declare function useSidebar(): SidebarContextProps;
15
14
  declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
16
15
  defaultOpen?: boolean;
17
16
  open?: boolean;