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

@radix-ui/react-dropdown-menu

Package Overview
Dependencies
Maintainers
6
Versions
264
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.1 to 0.0.2

2

dist/index.js

@@ -1,2 +0,2 @@

var e=c({},require("@radix-ui/react-menu")),r=require("@radix-ui/utils").getPartDataAttrObj,t=require("@radix-ui/react-polymorphic").forwardRefWithAs,o=require("@radix-ui/react-utils"),n=o.composeEventHandlers,a=o.createContext,u=o.extendComponent,i=o.useComposedRefs,p=o.useControlledState,d=o.useId,s=c({},require("react"));function c(e,r){return Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})),e}function l(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,o)}return t}function f(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?l(Object(t),!0).forEach((function(r){v(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):l(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function v(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function w(){return(w=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e}).apply(this,arguments)}function b(e,r){if(null==e)return{};var t,o,n=function(e,r){if(null==e)return{};var t,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)t=a[o],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)t=a[o],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function y(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],o=!0,n=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(o=(u=i.next()).done)&&(t.push(u.value),!r||t.length!==r);o=!0);}catch(e){n=!0,a=e}finally{try{o||null==i.return||i.return()}finally{if(n)throw a}}return t}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return O(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return O(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,o=new Array(r);t<r;t++)o[t]=e[t];return o}var m=y(a("DropdownMenuContext","DropdownMenu"),2),g=m[0],D=m[1],x=function(e){var r=e.children,t=e.id,o=e.open,n=e.defaultOpen,a=e.onOpenChange,u=s.useRef(null),i=d(),c=t||"dropdown-menu-".concat(i),l=y(p({prop:o,defaultProp:n,onChange:a}),2),f=l[0],v=void 0!==f&&f,w=l[1],b=s.useMemo((function(){return{triggerRef:u,id:c,open:v,setOpen:w}}),[c,v,w]);return s.createElement(g.Provider,{value:b},r)};exports.DropdownMenu=x,x.displayName="DropdownMenu";var M=t((function(e,t){var o=e.as,a=void 0===o?"button":o,u=(e.onClick,b(e,["as","onClick"])),p=D("DropdownMenuTrigger"),d=i(t,p.triggerRef);return s.createElement(a,w({},r("DropdownMenuTrigger"),{ref:d,type:"button","aria-haspopup":"menu","aria-expanded":!!p.open||void 0,"aria-controls":p.open?p.id:void 0},u,{onMouseDown:n(u.onMouseDown,(function(e){0===e.button&&!1===e.ctrlKey&&p.setOpen((function(e){return!e}))})),onKeyDown:n(u.onKeyDown,(function(e){" "!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),p.setOpen(!0))}))}))}));exports.DropdownMenuTrigger=M,M.displayName="DropdownMenuTrigger";var h=t((function(t,o){var n=t.anchorRef,a=t.disableOutsidePointerEvents,u=void 0===a||a,i=(t.onPointerDownOutside,t.onInteractOutside),p=t.disableOutsideScroll,d=void 0===p||p,c=t.portalled,l=void 0===c||c,O=b(t,["anchorRef","disableOutsidePointerEvents","onPointerDownOutside","onInteractOutside","disableOutsideScroll","portalled"]),m=D("DropdownMenuContent"),g=y(s.useState(!1),2),x=g[0],M=g[1];return s.createElement(e.Root,w({ref:o},O,r("DropdownMenuContent"),{id:m.id,style:f(f({},O.style),{},v({},"--radix-dropdown-menu-content-transform-origin","var(--radix-popper-transform-origin)")),open:m.open,onOpenChange:m.setOpen,anchorRef:n||m.triggerRef,trapFocus:!0,onCloseAutoFocus:function(e){var r;x?e.preventDefault():null===(r=m.triggerRef.current)||void 0===r||r.focus()},disableOutsidePointerEvents:u,onPointerDownOutside:function(e){var r,t=null===(r=m.triggerRef.current)||void 0===r?void 0:r.contains(e.target);M(!u),t?e.preventDefault():null==i||i(e),e.defaultPrevented&&M(!1)},onInteractOutside:i,disableOutsideScroll:d,portalled:l,onDismiss:function(){return m.setOpen(!1)}}))}));exports.DropdownMenuContent=h,h.displayName="DropdownMenuContent";var I=u(e.Group,"DropdownMenuGroup");exports.DropdownMenuGroup=I;var j=u(e.Label,"DropdownMenuLabel");exports.DropdownMenuLabel=j;var P=u(e.Item,"DropdownMenuItem");exports.DropdownMenuItem=P;var C=u(e.CheckboxItem,"DropdownMenuCheckboxItem");exports.DropdownMenuCheckboxItem=C;var R=u(e.RadioGroup,"DropdownMenuRadioGroup");exports.DropdownMenuRadioGroup=R;var S=u(e.RadioItem,"DropdownMenuRadioItem");exports.DropdownMenuRadioItem=S;var A=u(e.ItemIndicator,"DropdownMenuItemIndicator");exports.DropdownMenuItemIndicator=A;var k=u(e.Separator,"DropdownMenuSeparator");exports.DropdownMenuSeparator=k;var E=u(e.Arrow,"DropdownMenuArrow");exports.DropdownMenuArrow=E;var G=x;exports.Root=G;var T=M;exports.Trigger=T;var q=h;exports.Content=q;var L=I;exports.Group=L;var K=j;exports.Label=K;var N=P;exports.Item=N;var F=C;exports.CheckboxItem=F;var U=R;exports.RadioGroup=U;var _=S;exports.RadioItem=_;var H=A;exports.ItemIndicator=H;var W=k;exports.Separator=W;var $=E;exports.Arrow=$;
var e=s({},require("@radix-ui/react-menu")),r=require("@radix-ui/utils").getSelector,o=require("@radix-ui/react-primitive").Primitive,n=require("@radix-ui/react-utils"),t=n.composeEventHandlers,a=n.createContext,u=n.extendComponent,i=n.useComposedRefs,p=n.useControlledState,c=n.useId,d=s({},require("react"));function s(e,r){return Object.keys(r).forEach((function(o){"default"!==o&&"__esModule"!==o&&Object.defineProperty(e,o,{enumerable:!0,get:function(){return r[o]}})})),e}function l(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,n)}return o}function f(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?l(Object(o),!0).forEach((function(r){v(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}function v(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}function w(){return(w=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e}).apply(this,arguments)}function m(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var o=[],n=!0,t=!1,a=void 0;try{for(var u,i=e[Symbol.iterator]();!(n=(u=i.next()).done)&&(o.push(u.value),!r||o.length!==r);n=!0);}catch(e){t=!0,a=e}finally{try{n||null==i.return||i.return()}finally{if(t)throw a}}return o}(e,r)||function(e,r){if(!e)return;if("string"==typeof e)return b(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);"Object"===o&&e.constructor&&(o=e.constructor.name);if("Map"===o||"Set"===o)return Array.from(e);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return b(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,n=new Array(r);o<r;o++)n[o]=e[o];return n}var D=m(a("DropdownMenuContext","DropdownMenu"),2),y=D[0],g=D[1],x=function(e){var r=e.children,o=e.id,n=e.open,t=e.defaultOpen,a=e.onOpenChange,u=d.useRef(null),i=c(),s=o||"dropdown-menu-".concat(i),l=m(p({prop:n,defaultProp:t,onChange:a}),2),f=l[0],v=void 0!==f&&f,w=l[1],b=d.useMemo((function(){return{triggerRef:u,id:s,open:v,setOpen:w}}),[s,v,w]);return d.createElement(y.Provider,{value:b},r)};exports.DropdownMenu=x,x.displayName="DropdownMenu";var O=d.forwardRef((function(e,n){var a=g("DropdownMenuTrigger"),u=i(n,a.triggerRef);return d.createElement(o,w({as:"button",selector:r("DropdownMenuTrigger"),type:"button","aria-haspopup":"menu","aria-expanded":!!a.open||void 0,"aria-controls":a.open?a.id:void 0},e,{ref:u,onMouseDown:t(e.onMouseDown,(function(e){0===e.button&&!1===e.ctrlKey&&a.setOpen((function(e){return!e}))})),onKeyDown:t(e.onKeyDown,(function(e){[" ","Enter","ArrowUp","ArrowDown"].includes(e.key)&&(e.preventDefault(),a.setOpen(!0))}))}))}));exports.DropdownMenuTrigger=O,O.displayName="DropdownMenuTrigger";var M=d.forwardRef((function(o,n){var a=g("DropdownMenuContent");return d.createElement(e.Root,w({selector:r("DropdownMenuContent"),disableOutsidePointerEvents:!0,disableOutsideScroll:!0,portalled:!0},o,{ref:n,id:a.id,style:f(f({},o.style),{},v({},"--radix-dropdown-menu-content-transform-origin","var(--radix-popper-transform-origin)")),open:a.open,onOpenChange:a.setOpen,anchorRef:o.anchorRef||a.triggerRef,trapFocus:!0,onCloseAutoFocus:function(e){var r;e.preventDefault(),null===(r=a.triggerRef.current)||void 0===r||r.focus()},onPointerDownOutside:t(o.onPointerDownOutside,(function(e){var r;(null===(r=a.triggerRef.current)||void 0===r?void 0:r.contains(e.target))&&e.preventDefault()}),{checkForDefaultPrevented:!1}),onDismiss:function(){return a.setOpen(!1)}}))}));exports.DropdownMenuContent=M,M.displayName="DropdownMenuContent";var h=u(e.Group,"DropdownMenuGroup");exports.DropdownMenuGroup=h;var I=u(e.Label,"DropdownMenuLabel");exports.DropdownMenuLabel=I;var R=u(e.Item,"DropdownMenuItem");exports.DropdownMenuItem=R;var j=u(e.CheckboxItem,"DropdownMenuCheckboxItem");exports.DropdownMenuCheckboxItem=j;var C=u(e.RadioGroup,"DropdownMenuRadioGroup");exports.DropdownMenuRadioGroup=C;var P=u(e.RadioItem,"DropdownMenuRadioItem");exports.DropdownMenuRadioItem=P;var S=u(e.ItemIndicator,"DropdownMenuItemIndicator");exports.DropdownMenuItemIndicator=S;var A=u(e.Separator,"DropdownMenuSeparator");exports.DropdownMenuSeparator=A;var E=u(e.Arrow,"DropdownMenuArrow");exports.DropdownMenuArrow=E;var k=x;exports.Root=k;var G=O;exports.Trigger=G;var T=M;exports.Content=T;var q=h;exports.Group=q;var L=I;exports.Label=L;var F=R;exports.Item=F;var K=j;exports.CheckboxItem=K;var N=C;exports.RadioGroup=N;var U=P;exports.RadioItem=U;var _=S;exports.ItemIndicator=_;var H=A;exports.Separator=H;var $=E;exports.Arrow=$;
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

import*as e from"@radix-ui/react-menu";import{getPartDataAttrObj as o}from"@radix-ui/utils";import{forwardRefWithAs as r}from"@radix-ui/react-polymorphic";import{composeEventHandlers as n,createContext as t,extendComponent as p,useComposedRefs as u,useControlledState as i,useId as a}from"@radix-ui/react-utils";import*as d from"react";function c(e,o){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);o&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var o=1;o<arguments.length;o++){var r=null!=arguments[o]?arguments[o]:{};o%2?c(Object(r),!0).forEach((function(o){l(e,o,r[o])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))}))}return e}function l(e,o,r){return o in e?Object.defineProperty(e,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[o]=r,e}function w(){return(w=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function D(e,o){if(null==e)return{};var r,n,t=function(e,o){if(null==e)return{};var r,n,t={},p=Object.keys(e);for(n=0;n<p.length;n++)r=p[n],o.indexOf(r)>=0||(t[r]=e[r]);return t}(e,o);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(e);for(n=0;n<p.length;n++)r=p[n],o.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}const[f,m]=t("DropdownMenuContext","DropdownMenu");export const DropdownMenu=e=>{const{children:o,id:r,open:n,defaultOpen:t,onOpenChange:p}=e,u=d.useRef(null),c=a(),s=r||"dropdown-menu-".concat(c),[l=!1,w]=i({prop:n,defaultProp:t,onChange:p}),D=d.useMemo((()=>({triggerRef:u,id:s,open:l,setOpen:w})),[s,l,w]);return d.createElement(f.Provider,{value:D},o)};DropdownMenu.displayName="DropdownMenu";const O="button";export const DropdownMenuTrigger=r(((e,r)=>{const{as:t=O,onClick:p}=e,i=D(e,["as","onClick"]),a=m("DropdownMenuTrigger"),c=u(r,a.triggerRef);return d.createElement(t,w({},o("DropdownMenuTrigger"),{ref:c,type:"button","aria-haspopup":"menu","aria-expanded":!!a.open||void 0,"aria-controls":a.open?a.id:void 0},i,{onMouseDown:n(i.onMouseDown,(e=>{0===e.button&&!1===e.ctrlKey&&a.setOpen((e=>!e))})),onKeyDown:n(i.onKeyDown,(e=>{" "!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key||(e.preventDefault(),a.setOpen(!0))}))}))}));DropdownMenuTrigger.displayName="DropdownMenuTrigger";export const DropdownMenuContent=r(((r,n)=>{const{anchorRef:t,disableOutsidePointerEvents:p=!0,onPointerDownOutside:u,onInteractOutside:i,disableOutsideScroll:a=!0,portalled:c=!0}=r,l=D(r,["anchorRef","disableOutsidePointerEvents","onPointerDownOutside","onInteractOutside","disableOutsideScroll","portalled"]),f=m("DropdownMenuContent"),[O,M]=d.useState(!1);return d.createElement(e.Root,w({ref:n},l,o("DropdownMenuContent"),{id:f.id,style:s(s({},l.style),{},{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}),open:f.open,onOpenChange:f.setOpen,anchorRef:t||f.triggerRef,trapFocus:!0,onCloseAutoFocus:e=>{var o;O?e.preventDefault():null===(o=f.triggerRef.current)||void 0===o||o.focus()},disableOutsidePointerEvents:p,onPointerDownOutside:e=>{var o;const r=null===(o=f.triggerRef.current)||void 0===o?void 0:o.contains(e.target);M(!p),r?e.preventDefault():null==i||i(e),e.defaultPrevented&&M(!1)},onInteractOutside:i,disableOutsideScroll:a,portalled:c,onDismiss:()=>f.setOpen(!1)}))}));DropdownMenuContent.displayName="DropdownMenuContent";export const DropdownMenuGroup=p(e.Group,"DropdownMenuGroup");export const DropdownMenuLabel=p(e.Label,"DropdownMenuLabel");export const DropdownMenuItem=p(e.Item,"DropdownMenuItem");export const DropdownMenuCheckboxItem=p(e.CheckboxItem,"DropdownMenuCheckboxItem");export const DropdownMenuRadioGroup=p(e.RadioGroup,"DropdownMenuRadioGroup");export const DropdownMenuRadioItem=p(e.RadioItem,"DropdownMenuRadioItem");export const DropdownMenuItemIndicator=p(e.ItemIndicator,"DropdownMenuItemIndicator");export const DropdownMenuSeparator=p(e.Separator,"DropdownMenuSeparator");export const DropdownMenuArrow=p(e.Arrow,"DropdownMenuArrow");export const Root=DropdownMenu;export const Trigger=DropdownMenuTrigger;export const Content=DropdownMenuContent;export const Group=DropdownMenuGroup;export const Label=DropdownMenuLabel;export const Item=DropdownMenuItem;export const CheckboxItem=DropdownMenuCheckboxItem;export const RadioGroup=DropdownMenuRadioGroup;export const RadioItem=DropdownMenuRadioItem;export const ItemIndicator=DropdownMenuItemIndicator;export const Separator=DropdownMenuSeparator;export const Arrow=DropdownMenuArrow;
import*as o from"@radix-ui/react-menu";import{getSelector as e}from"@radix-ui/utils";import{Primitive as r}from"@radix-ui/react-primitive";import{composeEventHandlers as n,createContext as t,extendComponent as p,useComposedRefs as u,useControlledState as i,useId as a}from"@radix-ui/react-utils";import*as d from"react";function c(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(o,e).enumerable}))),r.push.apply(r,n)}return r}function s(o){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?c(Object(r),!0).forEach((function(e){w(o,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(e){Object.defineProperty(o,e,Object.getOwnPropertyDescriptor(r,e))}))}return o}function w(o,e,r){return e in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function D(){return(D=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[n]=r[n])}return o}).apply(this,arguments)}const[l,m]=t("DropdownMenuContext","DropdownMenu");export const DropdownMenu=o=>{const{children:e,id:r,open:n,defaultOpen:t,onOpenChange:p}=o,u=d.useRef(null),c=a(),s=r||"dropdown-menu-".concat(c),[w=!1,D]=i({prop:n,defaultProp:t,onChange:p}),m=d.useMemo((()=>({triggerRef:u,id:s,open:w,setOpen:D})),[s,w,D]);return d.createElement(l.Provider,{value:m},e)};DropdownMenu.displayName="DropdownMenu";export const DropdownMenuTrigger=d.forwardRef(((o,t)=>{const p=m("DropdownMenuTrigger"),i=u(t,p.triggerRef);return d.createElement(r,D({as:"button",selector:e("DropdownMenuTrigger"),type:"button","aria-haspopup":"menu","aria-expanded":!!p.open||void 0,"aria-controls":p.open?p.id:void 0},o,{ref:i,onMouseDown:n(o.onMouseDown,(o=>{0===o.button&&!1===o.ctrlKey&&p.setOpen((o=>!o))})),onKeyDown:n(o.onKeyDown,(o=>{[" ","Enter","ArrowUp","ArrowDown"].includes(o.key)&&(o.preventDefault(),p.setOpen(!0))}))}))}));DropdownMenuTrigger.displayName="DropdownMenuTrigger";export const DropdownMenuContent=d.forwardRef(((r,t)=>{const p=m("DropdownMenuContent");return d.createElement(o.Root,D({selector:e("DropdownMenuContent"),disableOutsidePointerEvents:!0,disableOutsideScroll:!0,portalled:!0},r,{ref:t,id:p.id,style:s(s({},r.style),{},{"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)"}),open:p.open,onOpenChange:p.setOpen,anchorRef:r.anchorRef||p.triggerRef,trapFocus:!0,onCloseAutoFocus:o=>{var e;o.preventDefault(),null===(e=p.triggerRef.current)||void 0===e||e.focus()},onPointerDownOutside:n(r.onPointerDownOutside,(o=>{var e;(null===(e=p.triggerRef.current)||void 0===e?void 0:e.contains(o.target))&&o.preventDefault()}),{checkForDefaultPrevented:!1}),onDismiss:()=>p.setOpen(!1)}))}));DropdownMenuContent.displayName="DropdownMenuContent";export const DropdownMenuGroup=p(o.Group,"DropdownMenuGroup");export const DropdownMenuLabel=p(o.Label,"DropdownMenuLabel");export const DropdownMenuItem=p(o.Item,"DropdownMenuItem");export const DropdownMenuCheckboxItem=p(o.CheckboxItem,"DropdownMenuCheckboxItem");export const DropdownMenuRadioGroup=p(o.RadioGroup,"DropdownMenuRadioGroup");export const DropdownMenuRadioItem=p(o.RadioItem,"DropdownMenuRadioItem");export const DropdownMenuItemIndicator=p(o.ItemIndicator,"DropdownMenuItemIndicator");export const DropdownMenuSeparator=p(o.Separator,"DropdownMenuSeparator");export const DropdownMenuArrow=p(o.Arrow,"DropdownMenuArrow");export const Root=DropdownMenu;export const Trigger=DropdownMenuTrigger;export const Content=DropdownMenuContent;export const Group=DropdownMenuGroup;export const Label=DropdownMenuLabel;export const Item=DropdownMenuItem;export const CheckboxItem=DropdownMenuCheckboxItem;export const RadioGroup=DropdownMenuRadioGroup;export const RadioItem=DropdownMenuRadioItem;export const ItemIndicator=DropdownMenuItemIndicator;export const Separator=DropdownMenuSeparator;export const Arrow=DropdownMenuArrow;
//# sourceMappingURL=index.module.js.map
{
"name": "@radix-ui/react-dropdown-menu",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",

@@ -21,10 +21,8 @@ "source": "src/index.ts",

"dependencies": {
"@radix-ui/react-menu": "0.0.1",
"@radix-ui/react-polymorphic": "0.0.1",
"@radix-ui/react-utils": "0.0.1",
"@radix-ui/utils": "0.0.1"
"@radix-ui/react-menu": "0.0.2",
"@radix-ui/react-polymorphic": "0.0.2",
"@radix-ui/react-primitive": "0.0.1",
"@radix-ui/react-utils": "0.0.2",
"@radix-ui/utils": "0.0.2"
},
"devDependencies": {
"parcel": "^2.0.0-beta.1"
},
"peerDependencies": {

@@ -31,0 +29,0 @@ "react": "^16.8 || ^17.0"

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