shadcn-packaged 2025.3.3 → 2025.3.10
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 +4 -4
- package/ui/chart.jsx +1 -1
- package/ui/dropdown-menu.jsx +2 -2
- package/ui/form.d.ts +1 -1
- package/ui/navigation-menu.jsx +1 -1
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "shadcn-packaged",
|
3
3
|
"private": false,
|
4
|
-
"version": "2025.3.
|
4
|
+
"version": "2025.3.10",
|
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": "^4.1.
|
27
|
+
"@hookform/resolvers": "^4.1.3",
|
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",
|
@@ -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.
|
58
|
+
"next-themes": "^0.4.5",
|
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.
|
74
|
+
"lucide-react": "^0.479.0",
|
75
75
|
"tailwind-merge": "^3.0.2",
|
76
76
|
"tailwindcss": "^3.4.17",
|
77
77
|
"tailwindcss-animate": "^1.0.7",
|
package/ui/chart.jsx
CHANGED
@@ -54,7 +54,7 @@ const ChartTooltipContent = React.forwardRef(({ active, payload, className, indi
|
|
54
54
|
return null;
|
55
55
|
}
|
56
56
|
const [item] = payload;
|
57
|
-
const key = `${labelKey || item
|
57
|
+
const key = `${labelKey || item?.dataKey || item?.name || "value"}`;
|
58
58
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
59
59
|
const value = !labelKey && typeof label === "string"
|
60
60
|
? config[label]?.label || label
|
package/ui/dropdown-menu.jsx
CHANGED
@@ -9,7 +9,7 @@ const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
9
9
|
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
10
10
|
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
11
11
|
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
12
|
-
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (<DropdownMenuPrimitive.SubTrigger ref={ref} className={cn("flex cursor-default
|
12
|
+
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => (<DropdownMenuPrimitive.SubTrigger ref={ref} className={cn("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", inset && "pl-8", className)} {...props}>
|
13
13
|
{children}
|
14
14
|
<ChevronRight className="ml-auto"/>
|
15
15
|
</DropdownMenuPrimitive.SubTrigger>));
|
@@ -19,7 +19,7 @@ const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) =
|
|
19
19
|
DropdownMenuSubContent.displayName =
|
20
20
|
DropdownMenuPrimitive.SubContent.displayName;
|
21
21
|
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (<DropdownMenuPrimitive.Portal>
|
22
|
-
<DropdownMenuPrimitive.Content ref={ref} sideOffset={sideOffset} 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}/>
|
22
|
+
<DropdownMenuPrimitive.Content ref={ref} sideOffset={sideOffset} className={cn("z-50 max-h-[var(--radix-dropdown-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 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}/>
|
23
23
|
</DropdownMenuPrimitive.Portal>));
|
24
24
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
25
25
|
const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => (<DropdownMenuPrimitive.Item ref={ref} className={cn("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", inset && "pl-8", className)} {...props}/>));
|
package/ui/form.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
3
|
-
import { ControllerProps, FieldPath, FieldValues } from "react-hook-form";
|
3
|
+
import { type ControllerProps, type FieldPath, type FieldValues } from "react-hook-form";
|
4
4
|
declare const Form: <TFieldValues extends FieldValues, TContext = any, TTransformedValues extends FieldValues | undefined = undefined>(props: import("react-hook-form").FormProviderProps<TFieldValues, TContext, TTransformedValues>) => React.JSX.Element;
|
5
5
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>({ ...props }: ControllerProps<TFieldValues, TName>) => React.JSX.Element;
|
6
6
|
declare const useFormField: () => {
|
package/ui/navigation-menu.jsx
CHANGED
@@ -11,7 +11,7 @@ NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
11
11
|
const NavigationMenuList = React.forwardRef(({ className, ...props }, ref) => (<NavigationMenuPrimitive.List ref={ref} className={cn("group flex flex-1 list-none items-center justify-center space-x-1", className)} {...props}/>));
|
12
12
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
13
13
|
const NavigationMenuItem = NavigationMenuPrimitive.Item;
|
14
|
-
const navigationMenuTriggerStyle = cva("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-none disabled:pointer-events-none disabled:opacity-50 data-[
|
14
|
+
const navigationMenuTriggerStyle = cva("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-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent");
|
15
15
|
const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => (<NavigationMenuPrimitive.Trigger ref={ref} className={cn(navigationMenuTriggerStyle(), "group", className)} {...props}>
|
16
16
|
{children}{" "}
|
17
17
|
<ChevronDown className="relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180" aria-hidden="true"/>
|