@hexdspace/react 0.1.35 → 0.1.36

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.
Files changed (2) hide show
  1. package/dist/index.js +5 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -3076,7 +3076,11 @@ var DropdownMenuItem = React13.forwardRef(
3076
3076
  }
3077
3077
  );
3078
3078
  DropdownMenuItem.displayName = "DropdownMenuItem";
3079
- var DropdownMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(DropdownMenuPrimitive.Separator, { ref, className: cn("my-1 h-px bg-(--divider)", className), ...props }));
3079
+ var DropdownMenuSeparator = React13.forwardRef(({ className, ...props }, ref) => {
3080
+ const orientation = React13.useContext(DropdownMenuOrientationContext);
3081
+ const orientationClassName = orientation === "horizontal" ? "mx-1 w-px self-stretch bg-(--divider)" : "my-1 h-px bg-(--divider)";
3082
+ return /* @__PURE__ */ jsx19(DropdownMenuPrimitive.Separator, { ref, className: cn(orientationClassName, className), ...props });
3083
+ });
3080
3084
  DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
3081
3085
 
3082
3086
  // src/ui/components/Kbd.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexdspace/react",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",