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

@radix-ui/react-popover

Package Overview
Dependencies
Maintainers
5
Versions
247
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.0.8 to 0.0.9

2

dist/index.js

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

var e=require("aria-hidden").hideOthers,r=require("react-remove-scroll").RemoveScroll,t=require("@radix-ui/react-id").useId,o=require("@radix-ui/react-primitive"),n=o.Primitive,a=o.extendPrimitive,u=require("@radix-ui/react-presence").Presence,i=require("@radix-ui/react-focus-guards").useFocusGuards,c=require("@radix-ui/react-portal").Portal,s=require("@radix-ui/react-focus-scope").FocusScope,l=require("@radix-ui/react-dismissable-layer").DismissableLayer,p=m({},require("@radix-ui/react-popper")),f=require("@radix-ui/react-use-controllable-state").useControllableState,d=require("@radix-ui/react-context").createContext,v=require("@radix-ui/react-compose-refs"),y=v.useComposedRefs,O=v.composeRefs,b=require("@radix-ui/primitive").composeEventHandlers,g=m({},require("react"));function m(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 P(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 h(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?P(Object(t),!0).forEach((function(r){C(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):P(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function C(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 x(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 j(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 D(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 D(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 D(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 F=j(d("Popover"),2),E=F[0],S=F[1],R=function(e){var r=e.children,o=e.open,n=e.defaultOpen,a=e.onOpenChange,u=g.useRef(null),i=j(f({prop:o,defaultProp:n,onChange:a}),2),c=i[0],s=void 0!==c&&c,l=i[1];return g.createElement(E,{contentId:t(),triggerRef:u,open:s,onOpenChange:l,onOpenToggle:g.useCallback((function(){return l((function(e){return!e}))}),[l])},r)};exports.Popover=R,R.displayName="Popover";var A=g.forwardRef((function(e,r){var t=e.as,o=void 0===t?"button":t,a=x(e,["as"]),u=S("PopoverTrigger"),i=y(r,u.triggerRef);return g.createElement(n,w({type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":u.open?"open":"closed"},a,{as:o,ref:i,onClick:b(e.onClick,u.onOpenToggle)}))}));exports.PopoverTrigger=A,A.displayName="PopoverTrigger";var q=g.forwardRef((function(e,r){var t=e.forceMount,o=x(e,["forceMount"]),n=S("PopoverContent");return g.createElement(u,{present:t||n.open},g.createElement(k,w({"data-state":n.open?"open":"closed"},o,{ref:r})))}));exports.PopoverContent=q;var k=g.forwardRef((function(t,o){var n=t.anchorRef,a=t.trapFocus,u=void 0===a||a,f=t.onOpenAutoFocus,d=t.onCloseAutoFocus,v=t.disableOutsidePointerEvents,y=void 0!==v&&v,m=t.onEscapeKeyDown,P=t.onPointerDownOutside,D=t.onFocusOutside,F=t.onInteractOutside,E=t.disableOutsideScroll,R=void 0!==E&&E,A=t.portalled,q=void 0===A||A,k=x(t,["anchorRef","trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","disableOutsideScroll","portalled"]),I=S("PopoverContent"),T=j(g.useState(!1),2),M=T[0],N=T[1],K=q?c:g.Fragment,B=R?r:g.Fragment;i();var U=g.useRef(null);return g.useEffect((function(){var r=U.current;if(r)return e(r)}),[]),g.createElement(K,null,g.createElement(B,null,g.createElement(s,{trapped:!M&&(u&&I.open),onMountAutoFocus:f,onUnmountAutoFocus:function(e){M?e.preventDefault():null==d||d(e)}},(function(e){return g.createElement(l,{disableOutsidePointerEvents:y,onEscapeKeyDown:m,onPointerDownOutside:b(P,(function(e){var r,t=null===(r=I.triggerRef.current)||void 0===r?void 0:r.contains(e.target),o=0===e.button&&!1===e.ctrlKey;N(!y&&o),t&&e.preventDefault(),e.defaultPrevented&&N(!1)}),{checkForDefaultPrevented:!1}),onFocusOutside:b(D,(function(e){u&&e.preventDefault()}),{checkForDefaultPrevented:!1}),onInteractOutside:F,onDismiss:function(){return I.onOpenChange(!1)}},(function(r){return g.createElement(p.Root,w({role:"dialog","aria-modal":!0,id:I.contentId},k,{ref:O(o,U,e.ref,r.ref),anchorRef:n||I.triggerRef,style:h(h(h({},r.style),k.style),{},C({},"--radix-popover-content-transform-origin","var(--radix-popper-transform-origin)")),onBlurCapture:b(k.onBlurCapture,r.onBlurCapture,{checkForDefaultPrevented:!1}),onFocusCapture:b(k.onFocusCapture,r.onFocusCapture,{checkForDefaultPrevented:!1}),onMouseDownCapture:b(k.onMouseDownCapture,r.onMouseDownCapture,{checkForDefaultPrevented:!1}),onTouchStartCapture:b(k.onTouchStartCapture,r.onTouchStartCapture,{checkForDefaultPrevented:!1})}))}))}))))}));q.displayName="PopoverContent";var I=g.forwardRef((function(e,r){var t=e.as,o=void 0===t?"button":t,a=x(e,["as"]),u=S("PopoverClose");return g.createElement(n,w({type:"button"},a,{as:o,ref:r,onClick:b(e.onClick,(function(){return u.onOpenChange(!1)}))}))}));exports.PopoverClose=I,I.displayName="PopoverClose";var T=a(p.Arrow,{displayName:"PopoverArrow"});exports.PopoverArrow=T;var M=R;exports.Root=M;var N=A;exports.Trigger=N;var K=q;exports.Content=K;var B=I;exports.Close=B;var U=T;exports.Arrow=U;
function e(e,r,o){Object.defineProperty(e,r,{get:o,enumerable:!0})}var r=require("aria-hidden").hideOthers,o=require("react-remove-scroll").RemoveScroll,t=require("@radix-ui/react-id").useId,n=require("@radix-ui/react-primitive"),u=n.Primitive,a=n.extendPrimitive,i=require("@radix-ui/react-presence").Presence,s=require("@radix-ui/react-focus-guards").useFocusGuards,c=require("@radix-ui/react-portal").Portal,p=require("@radix-ui/react-focus-scope").FocusScope,l=require("@radix-ui/react-dismissable-layer").DismissableLayer,d=require("@radix-ui/react-popper"),f=d.Root,v=d.Arrow,g=require("@radix-ui/react-use-controllable-state").useControllableState,C=require("@radix-ui/react-context").createContext,P=require("@radix-ui/react-compose-refs"),x=P.useComposedRefs,m=P.composeRefs,h=require("@radix-ui/primitive").composeEventHandlers,O=require("react"),y=O.useRef,F=O.createElement,D=O.useCallback,b=O.forwardRef,q=O.useState,w=O.Fragment,R=O.useEffect,k={};function T(){return(T=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t])}return e}).apply(this,arguments)}const[A,S]=C("Popover"),E=e=>{const{children:r,open:o,defaultOpen:n,onOpenChange:u}=e,a=y(null),[i=!1,s]=g({prop:o,defaultProp:n,onChange:u});return F(A,{contentId:t(),triggerRef:a,open:i,onOpenChange:s,onOpenToggle:D((()=>s((e=>!e))),[s])},r)};exports.Popover=E,E.displayName="Popover";const I="button",M=b(((e,r)=>{const{as:o=I,...t}=e,n=S("PopoverTrigger"),a=x(r,n.triggerRef);return F(u,T({type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":n.open?"open":"closed"},t,{as:o,ref:a,onClick:h(e.onClick,n.onOpenToggle)}))}));exports.PopoverTrigger=M,M.displayName="PopoverTrigger";const N=b(((e,r)=>{const{forceMount:o,...t}=e,n=S("PopoverContent");return F(i,{present:o||n.open},F(j,T({"data-state":n.open?"open":"closed"},t,{ref:r})))}));exports.PopoverContent=N;const j=b(((e,t)=>{const{anchorRef:n,trapFocus:u=!0,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:d=!1,onEscapeKeyDown:v,onPointerDownOutside:g,onFocusOutside:C,onInteractOutside:P,disableOutsideScroll:x=!1,portalled:O=!0,...D}=e,b=S("PopoverContent"),[k,A]=q(!1),E=O?c:w,I=x?o:w;s();const M=y(null);return R((()=>{const e=M.current;if(e)return r(e)}),[]),F(E,null,F(I,null,F(p,{trapped:!k&&(u&&b.open),onMountAutoFocus:a,onUnmountAutoFocus:e=>{k?e.preventDefault():i?.(e)}},(e=>F(l,{disableOutsidePointerEvents:d,onEscapeKeyDown:v,onPointerDownOutside:h(g,(e=>{const r=b.triggerRef.current?.contains?.(e.target),o=0===e.button&&!1===e.ctrlKey;A(!d&&o),r&&e.preventDefault(),e.defaultPrevented&&A(!1)}),{checkForDefaultPrevented:!1}),onFocusOutside:h(C,(e=>{u&&e.preventDefault()}),{checkForDefaultPrevented:!1}),onInteractOutside:P,onDismiss:()=>b.onOpenChange(!1)},(r=>F(f,T({role:"dialog","aria-modal":!0,id:b.contentId},D,{ref:m(t,M,e.ref,r.ref),anchorRef:n||b.triggerRef,style:{...r.style,...D.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"},onBlurCapture:h(D.onBlurCapture,r.onBlurCapture,{checkForDefaultPrevented:!1}),onFocusCapture:h(D.onFocusCapture,r.onFocusCapture,{checkForDefaultPrevented:!1}),onMouseDownCapture:h(D.onMouseDownCapture,r.onMouseDownCapture,{checkForDefaultPrevented:!1}),onTouchStartCapture:h(D.onTouchStartCapture,r.onTouchStartCapture,{checkForDefaultPrevented:!1})}))))))))}));N.displayName="PopoverContent";const B="button",K=b(((e,r)=>{const{as:o=B,...t}=e,n=S("PopoverClose");return F(u,T({type:"button"},t,{as:o,ref:r,onClick:h(e.onClick,(()=>n.onOpenChange(!1)))}))}));exports.PopoverClose=K,K.displayName="PopoverClose";const G=a(v,{displayName:"PopoverArrow"});exports.PopoverArrow=G;const H=E;exports.Root=H;const L=M;exports.Trigger=L;const U=N;exports.Content=U;const z=K;exports.Close=z;const J=G;exports.Arrow=J,e(k,"Arrow",(function(){return J})),e(k,"Close",(function(){return z})),e(k,"Content",(function(){return U})),e(k,"Trigger",(function(){return L})),e(k,"Root",(function(){return H})),e(k,"PopoverArrow",(function(){return G})),e(k,"PopoverClose",(function(){return K})),e(k,"PopoverContent",(function(){return N})),e(k,"PopoverTrigger",(function(){return M})),e(k,"Popover",(function(){return E}));
//# sourceMappingURL=index.js.map

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

import{hideOthers as e}from"aria-hidden";import{RemoveScroll as o}from"react-remove-scroll";import{useId as r}from"@radix-ui/react-id";import{Primitive as t,extendPrimitive as n}from"@radix-ui/react-primitive";import{Presence as a}from"@radix-ui/react-presence";import{useFocusGuards as p}from"@radix-ui/react-focus-guards";import{Portal as i}from"@radix-ui/react-portal";import{FocusScope as c}from"@radix-ui/react-focus-scope";import{DismissableLayer as s}from"@radix-ui/react-dismissable-layer";import*as u from"@radix-ui/react-popper";import{useControllableState as l}from"@radix-ui/react-use-controllable-state";import{createContext as d}from"@radix-ui/react-context";import{useComposedRefs as f,composeRefs as m}from"@radix-ui/react-compose-refs";import{composeEventHandlers as v}from"@radix-ui/primitive";import*as g from"react";function P(){return(P=Object.assign||function(e){for(var o=1;o<arguments.length;o++){var r=arguments[o];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])}return e}).apply(this,arguments)}const[C,x]=d("Popover");export const Popover=e=>{const{children:o,open:t,defaultOpen:n,onOpenChange:a}=e,p=g.useRef(null),[i=!1,c]=l({prop:t,defaultProp:n,onChange:a});return g.createElement(C,{contentId:r(),triggerRef:p,open:i,onOpenChange:c,onOpenToggle:g.useCallback((()=>c((e=>!e))),[c])},o)};Popover.displayName="Popover";const h="button";export const PopoverTrigger=g.forwardRef(((e,o)=>{const{as:r=h,...n}=e,a=x("PopoverTrigger"),p=f(o,a.triggerRef);return g.createElement(t,P({type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":a.open?"open":"closed"},n,{as:r,ref:p,onClick:v(e.onClick,a.onOpenToggle)}))}));PopoverTrigger.displayName="PopoverTrigger";export const PopoverContent=g.forwardRef(((e,o)=>{const{forceMount:r,...t}=e,n=x("PopoverContent");return g.createElement(a,{present:r||n.open},g.createElement(O,P({"data-state":n.open?"open":"closed"},t,{ref:o})))}));const O=g.forwardRef(((r,t)=>{const{anchorRef:n,trapFocus:a=!0,onOpenAutoFocus:l,onCloseAutoFocus:d,disableOutsidePointerEvents:f=!1,onEscapeKeyDown:C,onPointerDownOutside:h,onFocusOutside:O,onInteractOutside:F,disableOutsideScroll:w=!1,portalled:y=!0,...D}=r,E=x("PopoverContent"),[R,b]=g.useState(!1),k=y?i:g.Fragment,T=w?o:g.Fragment;p();const A=g.useRef(null);return g.useEffect((()=>{const o=A.current;if(o)return e(o)}),[]),g.createElement(k,null,g.createElement(T,null,g.createElement(c,{trapped:!R&&(a&&E.open),onMountAutoFocus:l,onUnmountAutoFocus:e=>{R?e.preventDefault():null==d||d(e)}},(e=>g.createElement(s,{disableOutsidePointerEvents:f,onEscapeKeyDown:C,onPointerDownOutside:v(h,(e=>{var o;const r=null===(o=E.triggerRef.current)||void 0===o?void 0:o.contains(e.target),t=0===e.button&&!1===e.ctrlKey;b(!f&&t),r&&e.preventDefault(),e.defaultPrevented&&b(!1)}),{checkForDefaultPrevented:!1}),onFocusOutside:v(O,(e=>{a&&e.preventDefault()}),{checkForDefaultPrevented:!1}),onInteractOutside:F,onDismiss:()=>E.onOpenChange(!1)},(o=>g.createElement(u.Root,P({role:"dialog","aria-modal":!0,id:E.contentId},D,{ref:m(t,A,e.ref,o.ref),anchorRef:n||E.triggerRef,style:{...o.style,...D.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"},onBlurCapture:v(D.onBlurCapture,o.onBlurCapture,{checkForDefaultPrevented:!1}),onFocusCapture:v(D.onFocusCapture,o.onFocusCapture,{checkForDefaultPrevented:!1}),onMouseDownCapture:v(D.onMouseDownCapture,o.onMouseDownCapture,{checkForDefaultPrevented:!1}),onTouchStartCapture:v(D.onTouchStartCapture,o.onTouchStartCapture,{checkForDefaultPrevented:!1})}))))))))}));PopoverContent.displayName="PopoverContent";const F="button";export const PopoverClose=g.forwardRef(((e,o)=>{const{as:r=F,...n}=e,a=x("PopoverClose");return g.createElement(t,P({type:"button"},n,{as:r,ref:o,onClick:v(e.onClick,(()=>a.onOpenChange(!1)))}))}));PopoverClose.displayName="PopoverClose";export const PopoverArrow=n(u.Arrow,{displayName:"PopoverArrow"});export const Root=Popover;export const Trigger=PopoverTrigger;export const Content=PopoverContent;export const Close=PopoverClose;export const Arrow=PopoverArrow;
function o(o,e,r){Object.defineProperty(o,e,{get:r,enumerable:!0})}import{hideOthers as e}from"aria-hidden";import{RemoveScroll as r}from"react-remove-scroll";import{useId as t}from"@radix-ui/react-id";import{Primitive as n,extendPrimitive as p}from"@radix-ui/react-primitive";import{Presence as a}from"@radix-ui/react-presence";import{useFocusGuards as i}from"@radix-ui/react-focus-guards";import{Portal as u}from"@radix-ui/react-portal";import{FocusScope as c}from"@radix-ui/react-focus-scope";import{DismissableLayer as s}from"@radix-ui/react-dismissable-layer";import{Root as l,Arrow as d}from"@radix-ui/react-popper";import{useControllableState as f}from"@radix-ui/react-use-controllable-state";import{createContext as v}from"@radix-ui/react-context";import{useComposedRefs as P,composeRefs as g}from"@radix-ui/react-compose-refs";import{composeEventHandlers as m}from"@radix-ui/primitive";import{useRef as C,createElement as x,useCallback as h,forwardRef as O,useState as y,Fragment as w,useEffect as D}from"react";var F={};function T(){return(T=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(o[t]=r[t])}return o}).apply(this,arguments)}const[b,A]=v("Popover");export const Popover=o=>{const{children:e,open:r,defaultOpen:n,onOpenChange:p}=o,a=C(null),[i=!1,u]=f({prop:r,defaultProp:n,onChange:p});return x(b,{contentId:t(),triggerRef:a,open:i,onOpenChange:u,onOpenToggle:h((()=>u((o=>!o))),[u])},e)};Popover.displayName="Popover";const k="button";export const PopoverTrigger=O(((o,e)=>{const{as:r=k,...t}=o,p=A("PopoverTrigger"),a=P(e,p.triggerRef);return x(n,T({type:"button","aria-haspopup":"dialog","aria-expanded":p.open,"aria-controls":p.contentId,"data-state":p.open?"open":"closed"},t,{as:r,ref:a,onClick:m(o.onClick,p.onOpenToggle)}))}));PopoverTrigger.displayName="PopoverTrigger";export const PopoverContent=O(((o,e)=>{const{forceMount:r,...t}=o,n=A("PopoverContent");return x(a,{present:r||n.open},x(R,T({"data-state":n.open?"open":"closed"},t,{ref:e})))}));const R=O(((o,t)=>{const{anchorRef:n,trapFocus:p=!0,onOpenAutoFocus:a,onCloseAutoFocus:d,disableOutsidePointerEvents:f=!1,onEscapeKeyDown:v,onPointerDownOutside:P,onFocusOutside:h,onInteractOutside:O,disableOutsideScroll:F=!1,portalled:b=!0,...k}=o,R=A("PopoverContent"),[I,M]=y(!1),N=b?u:w,E=F?r:w;i();const S=C(null);return D((()=>{const o=S.current;if(o)return e(o)}),[]),x(N,null,x(E,null,x(c,{trapped:!I&&(p&&R.open),onMountAutoFocus:a,onUnmountAutoFocus:o=>{I?o.preventDefault():d?.(o)}},(o=>x(s,{disableOutsidePointerEvents:f,onEscapeKeyDown:v,onPointerDownOutside:m(P,(o=>{const e=R.triggerRef.current?.contains?.(o.target),r=0===o.button&&!1===o.ctrlKey;M(!f&&r),e&&o.preventDefault(),o.defaultPrevented&&M(!1)}),{checkForDefaultPrevented:!1}),onFocusOutside:m(h,(o=>{p&&o.preventDefault()}),{checkForDefaultPrevented:!1}),onInteractOutside:O,onDismiss:()=>R.onOpenChange(!1)},(e=>x(l,T({role:"dialog","aria-modal":!0,id:R.contentId},k,{ref:g(t,S,o.ref,e.ref),anchorRef:n||R.triggerRef,style:{...e.style,...k.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"},onBlurCapture:m(k.onBlurCapture,e.onBlurCapture,{checkForDefaultPrevented:!1}),onFocusCapture:m(k.onFocusCapture,e.onFocusCapture,{checkForDefaultPrevented:!1}),onMouseDownCapture:m(k.onMouseDownCapture,e.onMouseDownCapture,{checkForDefaultPrevented:!1}),onTouchStartCapture:m(k.onTouchStartCapture,e.onTouchStartCapture,{checkForDefaultPrevented:!1})}))))))))}));PopoverContent.displayName="PopoverContent";const I="button";export const PopoverClose=O(((o,e)=>{const{as:r=I,...t}=o,p=A("PopoverClose");return x(n,T({type:"button"},t,{as:r,ref:e,onClick:m(o.onClick,(()=>p.onOpenChange(!1)))}))}));PopoverClose.displayName="PopoverClose";export const PopoverArrow=p(d,{displayName:"PopoverArrow"});export const Root=Popover;export const Trigger=PopoverTrigger;export const Content=PopoverContent;export const Close=PopoverClose;export const Arrow=PopoverArrow;o(F,"Arrow",(function(){return Arrow})),o(F,"Close",(function(){return Close})),o(F,"Content",(function(){return Content})),o(F,"Trigger",(function(){return Trigger})),o(F,"Root",(function(){return Root})),o(F,"PopoverArrow",(function(){return PopoverArrow})),o(F,"PopoverClose",(function(){return PopoverClose})),o(F,"PopoverContent",(function(){return PopoverContent})),o(F,"PopoverTrigger",(function(){return PopoverTrigger})),o(F,"Popover",(function(){return Popover}));
//# sourceMappingURL=index.module.js.map
{
"name": "@radix-ui/react-popover",
"version": "0.0.8",
"version": "0.0.9",
"license": "MIT",

@@ -22,3 +22,3 @@ "source": "src/index.ts",

"@radix-ui/react-context": "0.0.1",
"@radix-ui/react-dismissable-layer": "0.0.6",
"@radix-ui/react-dismissable-layer": "0.0.7",
"@radix-ui/react-focus-guards": "0.0.3",

@@ -28,5 +28,5 @@ "@radix-ui/react-focus-scope": "0.0.6",

"@radix-ui/react-polymorphic": "0.0.6",
"@radix-ui/react-popper": "0.0.8",
"@radix-ui/react-popper": "0.0.9",
"@radix-ui/react-portal": "0.0.6",
"@radix-ui/react-presence": "0.0.7",
"@radix-ui/react-presence": "0.0.8",
"@radix-ui/react-primitive": "0.0.6",

@@ -33,0 +33,0 @@ "@radix-ui/react-use-controllable-state": "0.0.1",

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