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

popup-react

Package Overview
Dependencies
Maintainers
0
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

popup-react - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

dist/assets/close.png

2

dist/index.js
/*! For license information please see index.js.LICENSE.txt */
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.$=r(require("react")):e.$=r(e.react)}(self,(e=>(()=>{"use strict";var r={20:(e,r,t)=>{var o=t(155),p=Symbol.for("react.element"),i=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,x={key:!0,ref:!0,__self:!0,__source:!0};function s(e,r,t){var o,i={},s=null,l=null;for(o in void 0!==t&&(s=""+t),void 0!==r.key&&(s=""+r.key),void 0!==r.ref&&(l=r.ref),r)n.call(r,o)&&!x.hasOwnProperty(o)&&(i[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===i[o]&&(i[o]=r[o]);return{$$typeof:p,type:e,key:s,ref:l,props:i,_owner:a.current}}r.Fragment=i,r.jsx=s,r.jsxs=s},848:(e,r,t)=>{e.exports=t(20)},155:r=>{r.exports=e}},t={};function o(e){var p=t[e];if(void 0!==p)return p.exports;var i=t[e]={exports:{}};return r[e](i,i.exports,o),i.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var p={};o.r(p),o.d(p,{ImageQuickView:()=>x});var i=o(848);function n(){return(0,i.jsx)("div",{style:{height:"100vh",width:"100vw",position:"fixed",top:"0",left:"0",backgroundColor:"white",opacity:"50%"}})}function a({children:e,onClose:r=()=>{}}){return(0,i.jsxs)("div",{style:{position:"fixed",left:"50%",top:"50%",transform:"translateX(-50%) translateY(-50%)",maxHeight:"80vh",maxWidth:"80vw",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px"},children:[(0,i.jsx)("img",{src:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" width="50px" height="50px"><path d="M 9.15625 6.3125 L 6.3125 9.15625 L 22.15625 25 L 6.21875 40.96875 L 9.03125 43.78125 L 25 27.84375 L 40.9375 43.78125 L 43.78125 40.9375 L 27.84375 25 L 43.6875 9.15625 L 40.84375 6.3125 L 25 22.15625 Z"/></svg>',onClick:r,style:{position:"absolute",top:"-15px",right:"-15px",height:"20px",width:"20px",padding:"5px",borderRadius:"100%",backgroundColor:"#ffffffcc",boxShadow:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px",cursor:"pointer"}}),e]})}function x({src:e="",alt:r="",bgWrapper:t=!0,isVisible:o=!1,onClose:p=()=>{}}){return(0,i.jsx)(i.Fragment,{children:o&&e&&(0,i.jsxs)(i.Fragment,{children:[t&&(0,i.jsx)(n,{}),(0,i.jsx)(a,{onClose:p,children:(0,i.jsx)("img",{src:e,alt:r,style:{maxWidth:"80vw",maxHeight:"80vh",minWidth:"200px",objectFit:"contain"}})})]})})}return p})()));
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports.$=r(require("react")):e.$=r(e.react)}(self,(e=>(()=>{"use strict";var r={20:(e,r,t)=>{var o=t(155),i=Symbol.for("react.element"),n=Symbol.for("react.fragment"),p=Object.prototype.hasOwnProperty,a=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,r,t){var o,n={},c=null,l=null;for(o in void 0!==t&&(c=""+t),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(l=r.ref),r)p.call(r,o)&&!s.hasOwnProperty(o)&&(n[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===n[o]&&(n[o]=r[o]);return{$$typeof:i,type:e,key:c,ref:l,props:n,_owner:a.current}}r.Fragment=n,r.jsx=c,r.jsxs=c},848:(e,r,t)=>{e.exports=t(20)},155:r=>{r.exports=e}},t={};function o(e){var i=t[e];if(void 0!==i)return i.exports;var n=t[e]={exports:{}};return r[e](n,n.exports,o),n.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var r=o.g.document;if(!e&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(e=r.currentScript.src),!e)){var t=r.getElementsByTagName("script");if(t.length)for(var i=t.length-1;i>-1&&(!e||!/^http(s?):/.test(e));)e=t[i--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})();var i={};o.r(i),o.d(i,{ImageQuickView:()=>c});var n=o(848);function p(){return(0,n.jsx)("div",{style:{height:"100vh",width:"100vw",position:"fixed",top:"0",left:"0",backgroundColor:"white",opacity:"50%"}})}const a=o.p+"assets/close.png";function s({children:e,onClose:r=()=>{}}){return(0,n.jsxs)("div",{style:{position:"fixed",left:"50%",top:"50%",transform:"translateX(-50%) translateY(-50%)",maxHeight:"80vh",maxWidth:"80vw",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px"},children:[(0,n.jsx)("img",{src:a,onClick:r,style:{position:"absolute",top:"-15px",right:"-15px",height:"20px",width:"20px",padding:"5px",borderRadius:"100%",backgroundColor:"#ffffffcc",boxShadow:"rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px",cursor:"pointer"}}),e]})}function c({src:e="",alt:r="",bgWrapper:t=!0,isVisible:o=!1,onClose:i=()=>{}}){return(0,n.jsx)(n.Fragment,{children:o&&e&&(0,n.jsxs)(n.Fragment,{children:[t&&(0,n.jsx)(p,{}),(0,n.jsx)(s,{onClose:i,children:(0,n.jsx)("img",{src:e,alt:r,style:{maxWidth:"80vw",maxHeight:"80vh",minWidth:"200px",objectFit:"contain"}})})]})})}return i})()));
//# sourceMappingURL=index.js.map
{
"name": "popup-react",
"version": "1.0.1",
"version": "1.0.2",
"description": "A collection of beautiful popup components for react.",

@@ -5,0 +5,0 @@ "author": {

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