Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@radix-ui/react-menu

Package Overview
Dependencies
Maintainers
6
Versions
262
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@radix-ui/react-menu - npm Package Compare versions

Comparing version 0.1.7-rc.44 to 0.1.7-rc.45

6

dist/index.d.ts

@@ -9,6 +9,4 @@ import * as React from "react";

import * as RovingFocusGroup from "@radix-ui/react-roving-focus";
import { RemoveScroll } from "react-remove-scroll";
type Direction = 'ltr' | 'rtl';
export const createMenuScope: import("@radix-ui/react-context").CreateScope;
type RemoveScrollProps = React.ComponentProps<typeof RemoveScroll>;
export interface MenuProps {

@@ -20,6 +18,2 @@ children?: React.ReactNode;

modal?: boolean;
/**
* @see https://github.com/theKashey/react-remove-scroll#usage
*/
allowPinchZoom?: RemoveScrollProps['allowPinchZoom'];
}

@@ -26,0 +20,0 @@ export const Menu: React.FC<MenuProps>;

7

dist/index.js

@@ -134,3 +134,3 @@ var $cnSS2$babelruntimehelpersextends = require("@babel/runtime/helpers/extends");

const $213e4d2df823067d$export$d9b273488cd8ce6f = (props)=>{
const { __scopeMenu: __scopeMenu , open: open = false , children: children , dir: dir , onOpenChange: onOpenChange , modal: modal = true , allowPinchZoom: allowPinchZoom } = props;
const { __scopeMenu: __scopeMenu , open: open = false , children: children , dir: dir , onOpenChange: onOpenChange , modal: modal = true } = props;
const popperScope = $213e4d2df823067d$var$usePopperScope(__scopeMenu);

@@ -186,4 +186,3 @@ const [content, setContent] = $cnSS2$react.useState(null);

dir: direction,
modal: modal,
allowPinchZoom: allowPinchZoom
modal: modal
}, children)));

@@ -302,3 +301,3 @@ };

as: $cnSS2$radixuireactslot.Slot,
allowPinchZoom: rootContext.allowPinchZoom
allowPinchZoom: true
} : undefined;

@@ -305,0 +304,0 @@ const handleTypeaheadSearch = (key)=>{

@@ -94,3 +94,3 @@ import $epM9y$babelruntimehelpersesmextends from "@babel/runtime/helpers/esm/extends";

const $6cc32821e9371a1c$export$d9b273488cd8ce6f = (props)=>{
const { __scopeMenu: __scopeMenu , open: open = false , children: children , dir: dir , onOpenChange: onOpenChange , modal: modal = true , allowPinchZoom: allowPinchZoom } = props;
const { __scopeMenu: __scopeMenu , open: open = false , children: children , dir: dir , onOpenChange: onOpenChange , modal: modal = true } = props;
const popperScope = $6cc32821e9371a1c$var$usePopperScope(__scopeMenu);

@@ -146,4 +146,3 @@ const [content, setContent] = $epM9y$useState(null);

dir: direction,
modal: modal,
allowPinchZoom: allowPinchZoom
modal: modal
}, children)));

@@ -262,3 +261,3 @@ };

as: $epM9y$Slot,
allowPinchZoom: rootContext.allowPinchZoom
allowPinchZoom: true
} : undefined;

@@ -265,0 +264,0 @@ const handleTypeaheadSearch = (key)=>{

{
"name": "@radix-ui/react-menu",
"version": "0.1.7-rc.44",
"version": "0.1.7-rc.45",
"license": "MIT",

@@ -20,18 +20,18 @@ "source": "src/index.ts",

"@babel/runtime": "^7.13.10",
"@radix-ui/primitive": "0.1.1-rc.1",
"@radix-ui/react-collection": "0.1.5-rc.41",
"@radix-ui/react-compose-refs": "0.1.1-rc.41",
"@radix-ui/react-context": "0.1.2-rc.41",
"@radix-ui/react-direction": "0.1.0-rc.44",
"@radix-ui/react-dismissable-layer": "0.1.6-rc.41",
"@radix-ui/react-focus-guards": "0.1.1-rc.41",
"@radix-ui/react-focus-scope": "0.1.5-rc.41",
"@radix-ui/react-id": "0.1.6-rc.41",
"@radix-ui/react-popper": "0.1.5-rc.41",
"@radix-ui/react-portal": "0.1.5-rc.41",
"@radix-ui/react-presence": "0.1.3-rc.41",
"@radix-ui/react-primitive": "0.1.5-rc.41",
"@radix-ui/react-roving-focus": "0.1.6-rc.44",
"@radix-ui/react-slot": "0.1.3-rc.41",
"@radix-ui/react-use-callback-ref": "0.1.1-rc.41",
"@radix-ui/primitive": "0.1.1-rc.2",
"@radix-ui/react-collection": "0.1.5-rc.42",
"@radix-ui/react-compose-refs": "0.1.1-rc.42",
"@radix-ui/react-context": "0.1.2-rc.42",
"@radix-ui/react-direction": "0.1.0-rc.45",
"@radix-ui/react-dismissable-layer": "0.1.6-rc.42",
"@radix-ui/react-focus-guards": "0.1.1-rc.42",
"@radix-ui/react-focus-scope": "0.1.5-rc.42",
"@radix-ui/react-id": "0.1.6-rc.42",
"@radix-ui/react-popper": "0.1.5-rc.42",
"@radix-ui/react-portal": "0.1.5-rc.42",
"@radix-ui/react-presence": "0.1.3-rc.42",
"@radix-ui/react-primitive": "0.1.5-rc.42",
"@radix-ui/react-roving-focus": "0.1.6-rc.45",
"@radix-ui/react-slot": "0.1.3-rc.42",
"@radix-ui/react-use-callback-ref": "0.1.1-rc.42",
"aria-hidden": "^1.1.1",

@@ -38,0 +38,0 @@ "react-remove-scroll": "2.5.4"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc