shadcn-packaged 2025.2.10 → 2025.2.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.2.10",
4
+ "version": "2025.2.17",
5
5
  "type": "module",
6
6
  "module": "index.mjs",
7
7
  "scripts": {
@@ -24,7 +24,7 @@
24
24
  "index.mjs"
25
25
  ],
26
26
  "dependencies": {
27
- "@hookform/resolvers": "^3.10.0",
27
+ "@hookform/resolvers": "^4.1.0",
28
28
  "@radix-ui/react-accordion": "^1.2.3",
29
29
  "@radix-ui/react-alert-dialog": "^1.1.6",
30
30
  "@radix-ui/react-aspect-ratio": "^1.1.2",
@@ -63,7 +63,7 @@
63
63
  "recharts": "^2.15.1",
64
64
  "sonner": "^1.7.4",
65
65
  "vaul": "^1.1.2",
66
- "zod": "^3.24.1"
66
+ "zod": "^3.24.2"
67
67
  },
68
68
  "devDependencies": {
69
69
  "@types/node": "^22.10.7",
package/ui/menubar.d.ts CHANGED
@@ -1,15 +1,10 @@
1
1
  import * as React from "react";
2
2
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
3
- declare const MenubarMenu: {
4
- (props: MenubarPrimitive.MenubarMenuProps & {
5
- __scopeMenubar?: import("@radix-ui/react-context").Scope;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- displayName: string;
8
- };
9
- declare const MenubarGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarGroupProps & React.RefAttributes<HTMLDivElement>>;
10
- declare const MenubarPortal: React.FC<MenubarPrimitive.MenubarPortalProps>;
11
- declare const MenubarSub: React.FC<MenubarPrimitive.MenubarSubProps>;
12
- declare const MenubarRadioGroup: React.ForwardRefExoticComponent<MenubarPrimitive.MenubarRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
3
+ declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): React.JSX.Element;
4
+ declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): React.JSX.Element;
5
+ declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): React.JSX.Element;
6
+ declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): React.JSX.Element;
7
+ declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): React.JSX.Element;
13
8
  declare const Menubar: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
9
  declare const MenubarTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
15
10
  declare const MenubarSubTrigger: React.ForwardRefExoticComponent<Omit<MenubarPrimitive.MenubarSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
package/ui/menubar.jsx CHANGED
@@ -3,11 +3,21 @@ import * as React from "react";
3
3
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
4
4
  import { Check, ChevronRight, Circle } from "lucide-react";
5
5
  import { cn } from "../lib/utils";
6
- const MenubarMenu = MenubarPrimitive.Menu;
7
- const MenubarGroup = MenubarPrimitive.Group;
8
- const MenubarPortal = MenubarPrimitive.Portal;
9
- const MenubarSub = MenubarPrimitive.Sub;
10
- const MenubarRadioGroup = MenubarPrimitive.RadioGroup;
6
+ function MenubarMenu({ ...props }) {
7
+ return <MenubarPrimitive.Menu {...props}/>;
8
+ }
9
+ function MenubarGroup({ ...props }) {
10
+ return <MenubarPrimitive.Group {...props}/>;
11
+ }
12
+ function MenubarPortal({ ...props }) {
13
+ return <MenubarPrimitive.Portal {...props}/>;
14
+ }
15
+ function MenubarRadioGroup({ ...props }) {
16
+ return <MenubarPrimitive.RadioGroup {...props}/>;
17
+ }
18
+ function MenubarSub({ ...props }) {
19
+ return <MenubarPrimitive.Sub data-slot="menubar-sub" {...props}/>;
20
+ }
11
21
  const Menubar = React.forwardRef(({ className, ...props }, ref) => (<MenubarPrimitive.Root ref={ref} className={cn("flex h-10 items-center space-x-1 rounded-md border bg-background p-1", className)} {...props}/>));
12
22
  Menubar.displayName = MenubarPrimitive.Root.displayName;
13
23
  const MenubarTrigger = React.forwardRef(({ className, ...props }, ref) => (<MenubarPrimitive.Trigger ref={ref} className={cn("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground", className)} {...props}/>));