@radix-ui/react-menu
Advanced tools
Comparing version 0.1.7-rc.44 to 0.1.7-rc.45
@@ -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>; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
323281
2119
+ Added@radix-ui/popper@0.1.1-rc.2(transitive)
+ Added@radix-ui/primitive@0.1.1-rc.2(transitive)
+ Added@radix-ui/react-arrow@0.1.5-rc.42(transitive)
+ Added@radix-ui/react-collection@0.1.5-rc.42(transitive)
+ Added@radix-ui/react-compose-refs@0.1.1-rc.42(transitive)
+ Added@radix-ui/react-context@0.1.2-rc.42(transitive)
+ Added@radix-ui/react-direction@0.1.0-rc.45(transitive)
+ Added@radix-ui/react-dismissable-layer@0.1.6-rc.42(transitive)
+ Added@radix-ui/react-focus-guards@0.1.1-rc.42(transitive)
+ Added@radix-ui/react-focus-scope@0.1.5-rc.42(transitive)
+ Added@radix-ui/react-id@0.1.6-rc.42(transitive)
+ Added@radix-ui/react-popper@0.1.5-rc.42(transitive)
+ Added@radix-ui/react-portal@0.1.5-rc.42(transitive)
+ Added@radix-ui/react-presence@0.1.3-rc.42(transitive)
+ Added@radix-ui/react-primitive@0.1.5-rc.42(transitive)
+ Added@radix-ui/react-roving-focus@0.1.6-rc.45(transitive)
+ Added@radix-ui/react-slot@0.1.3-rc.42(transitive)
+ Added@radix-ui/react-use-callback-ref@0.1.1-rc.42(transitive)
+ Added@radix-ui/react-use-controllable-state@0.1.1-rc.42(transitive)
+ Added@radix-ui/react-use-escape-keydown@0.1.1-rc.42(transitive)
+ Added@radix-ui/react-use-layout-effect@0.1.1-rc.42(transitive)
+ Added@radix-ui/react-use-rect@0.1.2-rc.42(transitive)
+ Added@radix-ui/react-use-size@0.1.2-rc.42(transitive)
+ Added@radix-ui/rect@0.1.2-rc.2(transitive)
- Removed@radix-ui/popper@0.1.1-rc.1(transitive)
- Removed@radix-ui/primitive@0.1.1-rc.1(transitive)
- Removed@radix-ui/react-arrow@0.1.5-rc.41(transitive)
- Removed@radix-ui/react-collection@0.1.5-rc.41(transitive)
- Removed@radix-ui/react-compose-refs@0.1.1-rc.41(transitive)
- Removed@radix-ui/react-context@0.1.2-rc.41(transitive)
- Removed@radix-ui/react-direction@0.1.0-rc.44(transitive)
- Removed@radix-ui/react-dismissable-layer@0.1.6-rc.41(transitive)
- Removed@radix-ui/react-focus-guards@0.1.1-rc.41(transitive)
- Removed@radix-ui/react-focus-scope@0.1.5-rc.41(transitive)
- Removed@radix-ui/react-id@0.1.6-rc.41(transitive)
- Removed@radix-ui/react-popper@0.1.5-rc.41(transitive)
- Removed@radix-ui/react-portal@0.1.5-rc.41(transitive)
- Removed@radix-ui/react-presence@0.1.3-rc.41(transitive)
- Removed@radix-ui/react-primitive@0.1.5-rc.41(transitive)
- Removed@radix-ui/react-roving-focus@0.1.6-rc.44(transitive)
- Removed@radix-ui/react-slot@0.1.3-rc.41(transitive)
- Removed@radix-ui/react-use-callback-ref@0.1.1-rc.41(transitive)
- Removed@radix-ui/react-use-controllable-state@0.1.1-rc.41(transitive)
- Removed@radix-ui/react-use-escape-keydown@0.1.1-rc.41(transitive)
- Removed@radix-ui/react-use-layout-effect@0.1.1-rc.41(transitive)
- Removed@radix-ui/react-use-rect@0.1.2-rc.41(transitive)
- Removed@radix-ui/react-use-size@0.1.2-rc.41(transitive)
- Removed@radix-ui/rect@0.1.2-rc.1(transitive)