New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@flows/react-components

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flows/react-components - npm Package Compare versions

Comparing version

to
0.0.2-canary.4

dist/chunk-VXPNEHKY.mjs

2

dist/index.js
"use client"
"use strict";var Q=Object.create;var w=Object.defineProperty,j=Object.defineProperties,oo=Object.getOwnPropertyDescriptor,eo=Object.getOwnPropertyDescriptors,to=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,ro=Object.getPrototypeOf,y=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var W=(o,e,t)=>e in o?w(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))y.call(e,t)&&W(o,t,e[t]);if(c)for(var t of c(e))E.call(e,t)&&W(o,t,e[t]);return o},I=(o,e)=>j(o,eo(e));var m=(o,e)=>{var t={};for(var r in o)y.call(o,r)&&e.indexOf(r)<0&&(t[r]=o[r]);if(o!=null&&c)for(var r of c(o))e.indexOf(r)<0&&E.call(o,r)&&(t[r]=o[r]);return t};var D=(o,e)=>{for(var t in e)w(o,t,{get:e[t],enumerable:!0})},M=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of to(e))!y.call(o,a)&&a!==t&&w(o,a,{get:()=>e[a],enumerable:!(r=oo(e,a))||r.enumerable});return o};var b=(o,e,t)=>(t=o!=null?Q(ro(o)):{},M(e||!o||!o.__esModule?w(t,"default",{value:o,enumerable:!0}):t,o)),ao=o=>M(w({},"__esModule",{value:!0}),o);var go={};D(go,{components:()=>x});module.exports=ao(go);var x={};D(x,{Modal:()=>fo,Tooltip:()=>bo});var A=b(require("classnames"));var C={button:"s",primary:"o",secondary:"r"};var G=require("react/jsx-runtime"),g=r=>{var a=r,{className:o,variant:e}=a,t=m(a,["className","variant"]);return(0,G.jsx)("button",d({type:"button",className:(0,A.default)(C.button,C[e],o)},t))};var $=b(require("classnames"));var O=b(require("classnames"));var N={text:"i",body:"f",title:"d"};var L=require("react/jsx-runtime"),p=r=>{var a=r,{className:o,variant:e}=a,t=m(a,["className","variant"]);return(0,L.jsx)("p",d({className:(0,O.default)(N.text,N[e],o)},t))};var U=b(require("classnames"));var _={button:"a"};var V=require("react/jsx-runtime"),v=t=>{var r=t,{className:o}=r,e=m(r,["className"]);return(0,V.jsx)("button",d({type:"button",className:(0,U.default)(_.button,o)},e))};var z=require("react/jsx-runtime");function u(o){return(0,z.jsx)("svg",I(d({height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},o),{children:(0,z.jsx)("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})}))}var f={overlay:"t",wrapper:"n",modal:"w",footer:"b",close:"p"};var l=require("react/jsx-runtime"),H=o=>(0,l.jsxs)(l.Fragment,{children:[o.overlay?(0,l.jsx)("div",{className:(0,$.default)(f.overlay,o.onClose&&f.clickable),onClick:o.onClose,"aria-hidden":"true"}):null,(0,l.jsx)("div",{className:f.wrapper,children:(0,l.jsxs)("div",{className:f.modal,children:[(0,l.jsx)(p,{variant:"title",children:o.title}),(0,l.jsx)(p,{variant:"body",children:o.body}),(0,l.jsx)("div",{className:f.footer,children:o.buttons}),o.onClose?(0,l.jsx)(v,{className:f.close,onClick:o.onClose,children:(0,l.jsx)(u,{})}):null]})})]});var R=require("react/jsx-runtime"),fo=o=>(0,R.jsx)(H,{title:o.title,body:o.body,buttons:(0,R.jsx)(g,{variant:"primary",onClick:o.continue,children:o.continueText}),overlay:!o.hideOverlay,onClose:o.showCloseButton?o.close:void 0});var Y=require("react"),i=require("@floating-ui/react-dom");var n={root:"g",tooltip:"l",arrow:"v","arrow-bottom":"m","arrow-top":"x",footer:"u",close:"h"};var s=require("react/jsx-runtime"),po=4,X=6,wo=8,co=8,Z=o=>{var S,F;let e=(0,Y.useRef)(null),t=po+X,{refs:r,middlewareData:a,placement:h,x:q,y:J}=(0,i.useFloating)({elements:{reference:document.querySelector(o.targetElement)},middleware:[(0,i.flip)({fallbackPlacements:["top","bottom","left","right"]}),(0,i.shift)({crossAxis:!0,padding:wo}),(0,i.arrow)({element:e,padding:co}),(0,i.offset)(t)]}),K=h.includes("top")?"bottom":h.includes("bottom")?"top":h.includes("left")?"right":"left",B=(S=a.arrow)==null?void 0:S.x,P=(F=a.arrow)==null?void 0:F.y,T={left:B!=null?`${B}px`:"",top:P!=null?`${P}px`:"",right:"",bottom:"",[K]:`${-X}px`};return(0,s.jsx)("div",{className:n.root,children:(0,s.jsxs)("div",{className:n.tooltip,ref:r.setFloating,style:{left:q,top:J},children:[(0,s.jsx)(p,{variant:"title",children:o.title}),(0,s.jsx)(p,{variant:"body",children:o.body}),(0,s.jsx)("div",{className:n.footer,children:o.buttons}),o.onClose?(0,s.jsx)(v,{className:n.close,onClick:o.onClose,children:(0,s.jsx)(u,{})}):null,(0,s.jsx)("div",{className:[n.arrow,n["arrow-bottom"]].join(" "),ref:e,style:T}),(0,s.jsx)("div",{className:[n.arrow,n["arrow-top"]].join(" "),style:T})]})})};var k=require("react/jsx-runtime"),bo=o=>(0,k.jsx)(Z,{title:o.title,body:o.body,targetElement:o.targetElement,onClose:o.showCloseButton?o.close:void 0,buttons:(0,k.jsx)(g,{variant:"primary",onClick:o.continue,children:o.continueText})});
"use strict";var J=Object.create;var w=Object.defineProperty,K=Object.defineProperties,Q=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyDescriptors,oo=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,eo=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable;var F=(o,e,t)=>e in o?w(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,d=(o,e)=>{for(var t in e||(e={}))h.call(e,t)&&F(o,t,e[t]);if(c)for(var t of c(e))W.call(e,t)&&F(o,t,e[t]);return o},E=(o,e)=>K(o,j(e));var m=(o,e)=>{var t={};for(var r in o)h.call(o,r)&&e.indexOf(r)<0&&(t[r]=o[r]);if(o!=null&&c)for(var r of c(o))e.indexOf(r)<0&&W.call(o,r)&&(t[r]=o[r]);return t};var to=(o,e)=>{for(var t in e)w(o,t,{get:e[t],enumerable:!0})},I=(o,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of oo(e))!h.call(o,l)&&l!==t&&w(o,l,{get:()=>e[l],enumerable:!(r=Q(e,l))||r.enumerable});return o};var b=(o,e,t)=>(t=o!=null?J(eo(o)):{},I(e||!o||!o.__esModule?w(t,"default",{value:o,enumerable:!0}):t,o)),ro=o=>I(w({},"__esModule",{value:!0}),o);var bo={};to(bo,{Modal:()=>no,Tooltip:()=>co});module.exports=ro(bo);var D=b(require("classnames"));var y={button:"s",primary:"o",secondary:"r"};var M=require("react/jsx-runtime"),g=r=>{var l=r,{className:o,variant:e}=l,t=m(l,["className","variant"]);return(0,M.jsx)("button",d({type:"button",className:(0,D.default)(y.button,y[e],o)},t))};var U=b(require("classnames"));var A=b(require("classnames"));var C={text:"i",body:"f",title:"d"};var G=require("react/jsx-runtime"),p=r=>{var l=r,{className:o,variant:e}=l,t=m(l,["className","variant"]);return(0,G.jsx)("p",d({className:(0,A.default)(C.text,C[e],o)},t))};var L=b(require("classnames"));var O={button:"a"};var _=require("react/jsx-runtime"),v=t=>{var r=t,{className:o}=r,e=m(r,["className"]);return(0,_.jsx)("button",d({type:"button",className:(0,L.default)(O.button,o)},e))};var N=require("react/jsx-runtime");function u(o){return(0,N.jsx)("svg",E(d({height:16,viewBox:"0 0 16 16",width:16,xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},o),{children:(0,N.jsx)("path",{d:"M3.72 3.72a.75.75 0 0 1 1.06 0L8 6.94l3.22-3.22a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734L9.06 8l3.22 3.22a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215L8 9.06l-3.22 3.22a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042L6.94 8 3.72 4.78a.75.75 0 0 1 0-1.06Z"})}))}var f={overlay:"t",wrapper:"n",modal:"w",footer:"b",close:"p"};var a=require("react/jsx-runtime"),V=o=>(0,a.jsxs)(a.Fragment,{children:[o.overlay?(0,a.jsx)("div",{className:(0,U.default)(f.overlay,o.onClose&&f.clickable),onClick:o.onClose,"aria-hidden":"true"}):null,(0,a.jsx)("div",{className:f.wrapper,children:(0,a.jsxs)("div",{className:f.modal,children:[(0,a.jsx)(p,{variant:"title",children:o.title}),(0,a.jsx)(p,{variant:"body",children:o.body}),(0,a.jsx)("div",{className:f.footer,children:o.buttons}),o.onClose?(0,a.jsx)(v,{className:f.close,onClick:o.onClose,children:(0,a.jsx)(u,{})}):null]})})]});var z=require("react/jsx-runtime"),no=o=>(0,z.jsx)(V,{title:o.title,body:o.body,buttons:(0,z.jsx)(g,{variant:"primary",onClick:o.continue,children:o.continueText}),overlay:!o.hideOverlay,onClose:o.showCloseButton?o.close:void 0});var H=require("react"),i=require("@floating-ui/react-dom");var n={root:"g",tooltip:"l",arrow:"v","arrow-bottom":"m","arrow-top":"x",footer:"u",close:"h"};var s=require("react/jsx-runtime"),mo=4,$=6,po=8,wo=8,X=o=>{var T,S;let e=(0,H.useRef)(null),t=mo+$,{refs:r,middlewareData:l,placement:x,x:Y,y:Z}=(0,i.useFloating)({elements:{reference:document.querySelector(o.targetElement)},middleware:[(0,i.flip)({fallbackPlacements:["top","bottom","left","right"]}),(0,i.shift)({crossAxis:!0,padding:po}),(0,i.arrow)({element:e,padding:wo}),(0,i.offset)(t)]}),q=x.includes("top")?"bottom":x.includes("bottom")?"top":x.includes("left")?"right":"left",k=(T=l.arrow)==null?void 0:T.x,B=(S=l.arrow)==null?void 0:S.y,P={left:k!=null?`${k}px`:"",top:B!=null?`${B}px`:"",right:"",bottom:"",[q]:`${-$}px`};return(0,s.jsx)("div",{className:n.root,children:(0,s.jsxs)("div",{className:n.tooltip,ref:r.setFloating,style:{left:Y,top:Z},children:[(0,s.jsx)(p,{variant:"title",children:o.title}),(0,s.jsx)(p,{variant:"body",children:o.body}),(0,s.jsx)("div",{className:n.footer,children:o.buttons}),o.onClose?(0,s.jsx)(v,{className:n.close,onClick:o.onClose,children:(0,s.jsx)(u,{})}):null,(0,s.jsx)("div",{className:[n.arrow,n["arrow-bottom"]].join(" "),ref:e,style:P}),(0,s.jsx)("div",{className:[n.arrow,n["arrow-top"]].join(" "),style:P})]})})};var R=require("react/jsx-runtime"),co=o=>(0,R.jsx)(X,{title:o.title,body:o.body,targetElement:o.targetElement,onClose:o.showCloseButton?o.close:void 0,buttons:(0,R.jsx)(g,{variant:"primary",onClick:o.continue,children:o.continueText})});
{
"name": "@flows/react-components",
"version": "0.0.2-canary.3",
"version": "0.0.2-canary.4",
"description": "",

@@ -34,2 +34,7 @@ "license": "MIT",

},
"./tour": {
"types": "./dist/tour.d.ts",
"import": "./dist/tour.mjs",
"require": "./dist/tour.js"
},
"./index.css": {

@@ -36,0 +41,0 @@ "import": "./dist/index.css",

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