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

@interop-ui/react-dialog

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interop-ui/react-dialog - npm Package Compare versions

Comparing version 0.0.1-1 to 0.0.1-2

2

dist/index.js

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

var e,t,r=require("@interop-ui/react-portal").Portal,n=require("react-remove-scroll").RemoveScroll,o=require("@interop-ui/react-lock").Lock,i=require("@interop-ui/react-debug-context").useDebugContext,a=require("@interop-ui/utils").cssReset,l=require("@interop-ui/react-utils"),u=l.forwardRef,c=l.createStyleObj,s=l.createContext,f=l.useComposedRefs,p=l.composeEventHandlers,d=l.useControlledState,O=l.useId,g=(e={},t=require("react"),Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function C(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}(e,t)||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 j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var D=h(s("DialogContext","Dialog"),2),E=D[0],P=D[1],k=function(e){var t=e.children,r=e.isOpen,n=e.defaultIsOpen,o=e.onIsOpenChange,i=g.useRef(null),a="dialog-".concat(O()),l=h(d({prop:r,defaultProp:n,onChange:o}),2),u=l[0],c=void 0!==u&&u,s=l[1],f=g.useMemo((function(){return{triggerRef:i,id:a,isOpen:c,setIsOpen:s}}),[a,c,s]);return g.createElement(E.Provider,{value:f},t)};exports.Dialog=k;var w=u((function(e,t){var r=e.as,n=void 0===r?"button":r,o=e.onClick,i=C(e,["as","onClick"]),a=P("Dialog.Trigger"),l=f(t,a.triggerRef);return g.createElement(n,m({},F("trigger"),{ref:l,type:"button"===n?"button":void 0,"aria-haspopup":"dialog","aria-expanded":a.isOpen,"aria-controls":a.id,onClick:p(o,(function(){return a.setIsOpen(!0)}))},i))})),S=u((function(e,t){return P("Dialog.Overlay").isOpen?g.createElement(x,m({ref:t},e)):null})),x=u((function(e,t){var n=e.as,o=void 0===n?"div":n,i=C(e,["as"]);return g.createElement(r,null,g.createElement(o,m({},F("overlay"),{ref:t},i)))})),I=u((function(e,t){return P("Dialog.Content").isOpen?g.createElement(T,m({ref:t},e)):null})),T=u((function(e,t){var a=e.as,l=void 0===a?"div":a,u=e.refToFocusOnOpen,c=e.refToFocusOnClose,s=e.shouldCloseOnEscape,f=void 0===s||s,p=e.shouldCloseOnOutsideClick,d=void 0===p||p,O=C(e,["as","refToFocusOnOpen","refToFocusOnClose","shouldCloseOnEscape","shouldCloseOnOutsideClick"]),v=P("Dialog.Content"),y=i().disableLock?g.Fragment:n;return g.createElement(r,null,g.createElement(y,null,g.createElement(o,{onDeactivate:function(){return v.setIsOpen(!1)},refToFocusOnActivation:u,refToFocusOnDeactivation:null!=c?c:v.triggerRef,shouldDeactivateOnEscape:f,shouldDeactivateOnOutsideClick:d,shouldPreventOutsideClick:!0},g.createElement(l,m({},F("content"),{ref:t,role:"dialog","aria-modal":!0},O,{id:v.id})))))})),R=u((function(e,t){var r=e.as,n=void 0===r?"button":r,o=e.onClick,i=C(e,["as","onClick"]),a=P("Dialog.Close");return g.createElement(n,m({},F("close"),{ref:t,type:"button"===n?"button":void 0},i,{onClick:p(o,(function(){return a.setIsOpen(!1)}))}))}));k.Trigger=w,k.Overlay=S,k.Content=I,k.Close=R,k.displayName="Dialog",k.Trigger.displayName="Dialog.Trigger",k.Overlay.displayName="Dialog.Overlay",k.Content.displayName="Dialog.Content",k.Close.displayName="Dialog.Close";var q=h(c("Dialog",{root:{},trigger:y({},a("button")),overlay:y(y({},a("div")),{},{position:"fixed",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}),content:y(y({},a("div")),{},{position:"fixed",top:0,left:0}),close:y({},a("button"))}),2),A=q[0],F=q[1];exports.styles=A;
var e,t,r=require("@interop-ui/react-portal").Portal,n=require("react-remove-scroll").RemoveScroll,o=require("@interop-ui/react-lock").Lock,i=require("@interop-ui/react-debug-context").useDebugContext,a=require("@interop-ui/utils"),l=a.cssReset,u=a.makeId,c=require("@interop-ui/react-utils"),s=c.forwardRef,f=c.createStyleObj,p=c.createContext,d=c.useComposedRefs,O=c.composeEventHandlers,g=c.useControlledState,v=c.useId,y=(e={},t=require("react"),Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})})),e);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){C(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function C(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function j(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return E(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return E(e,t)}(e,t)||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 E(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var k=D(p("DialogContext","Dialog"),2),P=k[0],w=k[1],S=function(e){var t=e.children,r=e.id,n=e.isOpen,o=e.defaultIsOpen,i=e.onIsOpenChange,a=y.useRef(null),l=u("dialog",v()),c=r||l,s=D(g({prop:n,defaultProp:o,onChange:i}),2),f=s[0],p=void 0!==f&&f,d=s[1],O=y.useMemo((function(){return{triggerRef:a,id:c,isOpen:p,setIsOpen:d}}),[c,p,d]);return y.createElement(P.Provider,{value:O},t)};exports.Dialog=S;var x=s((function(e,t){var r=e.as,n=void 0===r?"button":r,o=e.onClick,i=j(e,["as","onClick"]),a=w("Dialog.Trigger"),l=d(t,a.triggerRef);return y.createElement(n,h({},M("trigger"),{ref:l,type:"button"===n?"button":void 0,"aria-haspopup":"dialog","aria-expanded":a.isOpen,"aria-controls":a.id,onClick:O(o,(function(){return a.setIsOpen(!0)}))},i))})),I=s((function(e,t){return w("Dialog.Overlay").isOpen?y.createElement(T,h({ref:t},e)):null})),T=s((function(e,t){var n=e.as,o=void 0===n?"div":n,i=j(e,["as"]);return y.createElement(r,null,y.createElement(o,h({},M("overlay"),{ref:t},i)))})),R=s((function(e,t){return w("Dialog.Content").isOpen?y.createElement(q,h({ref:t},e)):null})),q=s((function(e,t){var a=e.as,l=void 0===a?"div":a,u=e.refToFocusOnOpen,c=e.refToFocusOnClose,s=e.shouldCloseOnEscape,f=void 0===s||s,p=e.shouldCloseOnOutsideClick,d=void 0===p||p,O=j(e,["as","refToFocusOnOpen","refToFocusOnClose","shouldCloseOnEscape","shouldCloseOnOutsideClick"]),g=w("Dialog.Content"),v=i().disableLock?y.Fragment:n;return y.createElement(r,null,y.createElement(v,null,y.createElement(o,{onDeactivate:function(){return g.setIsOpen(!1)},refToFocusOnActivation:u,refToFocusOnDeactivation:null!=c?c:g.triggerRef,shouldDeactivateOnEscape:f,shouldDeactivateOnOutsideClick:d,shouldPreventOutsideClick:!0},y.createElement(l,h({},M("content"),{ref:t,role:"dialog","aria-modal":!0},O,{id:g.id})))))})),A=s((function(e,t){var r=e.as,n=void 0===r?"button":r,o=e.onClick,i=j(e,["as","onClick"]),a=w("Dialog.Close");return y.createElement(n,h({},M("close"),{ref:t,type:"button"===n?"button":void 0},i,{onClick:O(o,(function(){return a.setIsOpen(!1)}))}))}));S.Trigger=x,S.Overlay=I,S.Content=R,S.Close=A,S.displayName="Dialog",S.Trigger.displayName="Dialog.Trigger",S.Overlay.displayName="Dialog.Overlay",S.Content.displayName="Dialog.Content",S.Close.displayName="Dialog.Close";var F=D(f("Dialog",{root:{},trigger:m({},l("button")),overlay:m(m({},l("div")),{},{position:"fixed",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}),content:m(m({},l("div")),{},{position:"fixed",top:0,left:0}),close:m({},l("button"))}),2),N=F[0],M=F[1];exports.styles=N;
//# sourceMappingURL=index.js.map

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

import{Portal as e}from"@interop-ui/react-portal";import{RemoveScroll as t}from"react-remove-scroll";import{Lock as o}from"@interop-ui/react-lock";import{useDebugContext as r}from"@interop-ui/react-debug-context";import{cssReset as n}from"@interop-ui/utils";import{forwardRef as i,createStyleObj as l,createContext as a,useComposedRefs as c,composeEventHandlers as s,useControlledState as u,useId as p}from"@interop-ui/react-utils";import*as g from"react";function f(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function O(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?f(Object(o),!0).forEach((function(t){d(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):f(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}function y(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}const[b,v]=a("DialogContext","Dialog");export const Dialog=function(e){const{children:t,isOpen:o,defaultIsOpen:r,onIsOpenChange:n}=e,i=g.useRef(null),l="dialog-".concat(p()),[a=!1,c]=u({prop:o,defaultProp:r,onChange:n}),s=g.useMemo(()=>({triggerRef:i,id:l,isOpen:a,setIsOpen:c}),[l,a,c]);return g.createElement(b.Provider,{value:s},t)};const D="button",C=i((e,t)=>{const{as:o=D,onClick:r}=e,n=y(e,["as","onClick"]),i=v("Dialog.Trigger"),l=c(t,i.triggerRef);return g.createElement(o,m({},I("trigger"),{ref:l,type:o===D?"button":void 0,"aria-haspopup":"dialog","aria-expanded":i.isOpen,"aria-controls":i.id,onClick:s(r,()=>i.setIsOpen(!0))},n))}),h="div",j=i((function(e,t){return v("Dialog.Overlay").isOpen?g.createElement(E,m({ref:t},e)):null})),E=i((function(t,o){const{as:r=h}=t,n=y(t,["as"]);return g.createElement(e,null,g.createElement(r,m({},I("overlay"),{ref:o},n)))})),P="div",k=i((function(e,t){return v("Dialog.Content").isOpen?g.createElement(w,m({ref:t},e)):null})),w=i((function(n,i){const{as:l=P,refToFocusOnOpen:a,refToFocusOnClose:c,shouldCloseOnEscape:s=!0,shouldCloseOnOutsideClick:u=!0}=n,p=y(n,["as","refToFocusOnOpen","refToFocusOnClose","shouldCloseOnEscape","shouldCloseOnOutsideClick"]),f=v("Dialog.Content"),O=r().disableLock?g.Fragment:t;return g.createElement(e,null,g.createElement(O,null,g.createElement(o,{onDeactivate:()=>f.setIsOpen(!1),refToFocusOnActivation:a,refToFocusOnDeactivation:null!=c?c:f.triggerRef,shouldDeactivateOnEscape:s,shouldDeactivateOnOutsideClick:u,shouldPreventOutsideClick:!0},g.createElement(l,m({},I("content"),{ref:i,role:"dialog","aria-modal":!0},p,{id:f.id})))))})),T="button",x=i((e,t)=>{const{as:o=T,onClick:r}=e,n=y(e,["as","onClick"]),i=v("Dialog.Close");return g.createElement(o,m({},I("close"),{ref:t,type:o===T?"button":void 0},n,{onClick:s(r,()=>i.setIsOpen(!1))}))});Dialog.Trigger=C,Dialog.Overlay=j,Dialog.Content=k,Dialog.Close=x,Dialog.displayName="Dialog",Dialog.Trigger.displayName="Dialog.Trigger",Dialog.Overlay.displayName="Dialog.Overlay",Dialog.Content.displayName="Dialog.Content",Dialog.Close.displayName="Dialog.Close";const[F,I]=l("Dialog",{root:{},trigger:O({},n(D)),overlay:O(O({},n(h)),{},{position:"fixed",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}),content:O(O({},n(P)),{},{position:"fixed",top:0,left:0}),close:O({},n(T))});export{F as styles};
import{Portal as e}from"@interop-ui/react-portal";import{RemoveScroll as t}from"react-remove-scroll";import{Lock as o}from"@interop-ui/react-lock";import{useDebugContext as r}from"@interop-ui/react-debug-context";import{cssReset as n,makeId as i}from"@interop-ui/utils";import{forwardRef as l,createStyleObj as a,createContext as c,useComposedRefs as s,composeEventHandlers as u,useControlledState as p,useId as g}from"@interop-ui/react-utils";import*as f from"react";function O(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function d(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?O(Object(o),!0).forEach((function(t){m(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):O(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function m(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e}).apply(this,arguments)}function b(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},i=Object.keys(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)o=i[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}const[v,D]=c("DialogContext","Dialog");export const Dialog=function(e){const{children:t,id:o,isOpen:r,defaultIsOpen:n,onIsOpenChange:l}=e,a=f.useRef(null),c=i("dialog",g()),s=o||c,[u=!1,O]=p({prop:r,defaultProp:n,onChange:l}),d=f.useMemo(()=>({triggerRef:a,id:s,isOpen:u,setIsOpen:O}),[s,u,O]);return f.createElement(v.Provider,{value:d},t)};const C="button",h=l((e,t)=>{const{as:o=C,onClick:r}=e,n=b(e,["as","onClick"]),i=D("Dialog.Trigger"),l=s(t,i.triggerRef);return f.createElement(o,y({},N("trigger"),{ref:l,type:o===C?"button":void 0,"aria-haspopup":"dialog","aria-expanded":i.isOpen,"aria-controls":i.id,onClick:u(r,()=>i.setIsOpen(!0))},n))}),j="div",E=l((function(e,t){return D("Dialog.Overlay").isOpen?f.createElement(P,y({ref:t},e)):null})),P=l((function(t,o){const{as:r=j}=t,n=b(t,["as"]);return f.createElement(e,null,f.createElement(r,y({},N("overlay"),{ref:o},n)))})),k="div",w=l((function(e,t){return D("Dialog.Content").isOpen?f.createElement(T,y({ref:t},e)):null})),T=l((function(n,i){const{as:l=k,refToFocusOnOpen:a,refToFocusOnClose:c,shouldCloseOnEscape:s=!0,shouldCloseOnOutsideClick:u=!0}=n,p=b(n,["as","refToFocusOnOpen","refToFocusOnClose","shouldCloseOnEscape","shouldCloseOnOutsideClick"]),g=D("Dialog.Content"),O=r().disableLock?f.Fragment:t;return f.createElement(e,null,f.createElement(O,null,f.createElement(o,{onDeactivate:()=>g.setIsOpen(!1),refToFocusOnActivation:a,refToFocusOnDeactivation:null!=c?c:g.triggerRef,shouldDeactivateOnEscape:s,shouldDeactivateOnOutsideClick:u,shouldPreventOutsideClick:!0},f.createElement(l,y({},N("content"),{ref:i,role:"dialog","aria-modal":!0},p,{id:g.id})))))})),x="button",F=l((e,t)=>{const{as:o=x,onClick:r}=e,n=b(e,["as","onClick"]),i=D("Dialog.Close");return f.createElement(o,y({},N("close"),{ref:t,type:o===x?"button":void 0},n,{onClick:u(r,()=>i.setIsOpen(!1))}))});Dialog.Trigger=h,Dialog.Overlay=E,Dialog.Content=w,Dialog.Close=F,Dialog.displayName="Dialog",Dialog.Trigger.displayName="Dialog.Trigger",Dialog.Overlay.displayName="Dialog.Overlay",Dialog.Content.displayName="Dialog.Content",Dialog.Close.displayName="Dialog.Close";const[I,N]=a("Dialog",{root:{},trigger:d({},n(C)),overlay:d(d({},n(j)),{},{position:"fixed",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}),content:d(d({},n(k)),{},{position:"fixed",top:0,left:0}),close:d({},n(x))});export{I as styles};
//# sourceMappingURL=index.module.js.map
{
"name": "@interop-ui/react-dialog",
"version": "0.0.1-1",
"version": "0.0.1-2",
"license": "MIT",

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

"dependencies": {
"@interop-ui/react-debug-context": "0.0.1-1",
"@interop-ui/react-lock": "0.0.1-1",
"@interop-ui/react-portal": "0.0.1-1",
"@interop-ui/react-utils": "0.0.1-1",
"@interop-ui/react-debug-context": "0.0.1-2",
"@interop-ui/react-lock": "0.0.1-2",
"@interop-ui/react-portal": "0.0.1-2",
"@interop-ui/react-utils": "0.0.1-2",
"@interop-ui/utils": "0.0.1-1",

@@ -26,0 +26,0 @@ "react-remove-scroll": "^2.3.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