@spicenet-io/spiceflow-ui 1.10.4 → 1.10.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
from { transform: rotate(0deg); }
|
|
19
19
|
to { transform: rotate(360deg); }
|
|
20
20
|
}
|
|
21
|
-
`}),!w&&s&&s.length>1&&e.jsx("div",{style:{overflow:"hidden",maxHeight:m?"200px":"0px",opacity:m?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:m?"16px":"0"},children:e.jsx("div",{style:{maxHeight:"180px",overflowY:"auto",display:"flex",flexDirection:"column",gap:"8px"},children:s.map((P,_)=>e.jsxs("div",{style:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"#f9fafb",border:"1px solid #e5e7eb",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{fontWeight:600,fontSize:"13px",color:"#111827",fontFamily:'"IBM Plex Mono", monospace'},children:P.asset.symbol}),P.amount&&e.jsx("span",{style:{fontSize:"12px",color:"#6b7280"},children:P.amount})]}),e.jsx("span",{style:{fontSize:"12px",color:P.success?"#10b981":"#ef4444",fontWeight:500},children:P.success?"\u2713":"\u2717"})]},_))})}),!w&&!I&&s&&e.jsx("div",{style:{padding:"12px",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"8px",marginBottom:"16px"},children:e.jsx("p",{style:{fontSize:"13px",color:"#dc2626",margin:0,lineHeight:1.5},children:s.find(P=>!P.success)?.error
|
|
21
|
+
`}),!w&&s&&s.length>1&&e.jsx("div",{style:{overflow:"hidden",maxHeight:m?"200px":"0px",opacity:m?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:m?"16px":"0"},children:e.jsx("div",{style:{maxHeight:"180px",overflowY:"auto",display:"flex",flexDirection:"column",gap:"8px"},children:s.map((P,_)=>e.jsxs("div",{style:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"#f9fafb",border:"1px solid #e5e7eb",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e.jsx("span",{style:{fontWeight:600,fontSize:"13px",color:"#111827",fontFamily:'"IBM Plex Mono", monospace'},children:P.asset.symbol}),P.amount&&e.jsx("span",{style:{fontSize:"12px",color:"#6b7280"},children:P.amount})]}),e.jsx("span",{style:{fontSize:"12px",color:P.success?"#10b981":"#ef4444",fontWeight:500},children:P.success?"\u2713":"\u2717"})]},_))})}),!w&&!I&&s&&e.jsx("div",{style:{padding:"12px",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"8px",marginBottom:"16px"},children:e.jsx("p",{style:{fontSize:"13px",color:"#dc2626",margin:0,lineHeight:1.5},children:s.find(P=>!P.success)?.error||`${n.charAt(0).toUpperCase()+n.slice(1)} failed. Please try again.`})}),!w&&e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[!I&&C&&e.jsxs("button",{onClick:C,onMouseEnter:()=>h("retry-tx"),onMouseLeave:()=>{h(null),S(null)},onMouseDown:()=>S("retry-tx"),onMouseUp:()=>S(null),style:{width:"100%",height:"48px",padding:"14px 24px",borderRadius:"6px",backgroundColor:x==="retry-tx"?"#d43d3d":y==="retry-tx"?"#f05555":"#ea4b4b",border:"1px solid #0e0d0b",color:"#0e0d0b",fontFamily:'"IBM Plex Mono", monospace',fontWeight:500,fontSize:"16px",lineHeight:"156%",textTransform:"uppercase",cursor:"pointer",transition:"all 0.15s ease",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",transform:x==="retry-results"?"scale(0.98)":y==="retry-results"?"translateY(-2px)":"none",boxShadow:x==="retry-tx"?"1px 1px 0px black":y==="retry-tx"?"5px 5px 0px white, 6px 6px 0px black":"3px 3px 0px white, 4px 4px 0px black"},children:["TRY AGAIN $",n]}),I&&e.jsxs("button",{onClick:F,onMouseEnter:()=>h("continue-tx"),onMouseLeave:()=>{h(null),S(null)},onMouseDown:()=>S("continue-tx"),onMouseUp:()=>S(null),style:{width:"100%",height:"48px",padding:"14px 24px",borderRadius:"6px",backgroundColor:x==="continue-tx"?"#d43d3d":y==="continue-tx"?"#f05555":"#ea4b4b",border:"1px solid #0e0d0b",color:"#0e0d0b",fontFamily:'"IBM Plex Mono", monospace',fontWeight:500,fontSize:"16px",lineHeight:"156%",textTransform:"uppercase",cursor:"pointer",transition:"all 0.15s ease",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",transform:x==="continue-tx"?"scale(0.98)":y==="continue-tx"?"translateY(-2px)":"none",boxShadow:x==="continue-tx"?"1px 1px 0px black":y==="continue-results"?"5px 5px 0px white, 6px 6px 0px black":"3px 3px 0px white, 4px 4px 0px black"},children:["CONTINUE ",n," \u2192"]})]})]}),e.jsx("style",{children:`
|
|
22
22
|
@keyframes slideUp {
|
|
23
23
|
from {
|
|
24
24
|
transform: translateY(100%);
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import{defineChain as mo,createPublicClient as yo,http as xo,isAddress as Ot,get
|
|
|
18
18
|
from { transform: rotate(0deg); }
|
|
19
19
|
to { transform: rotate(360deg); }
|
|
20
20
|
}
|
|
21
|
-
`}),!I&&o&&o.length>1&&e("div",{style:{overflow:"hidden",maxHeight:y?"200px":"0px",opacity:y?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:y?"16px":"0"},children:e("div",{style:{maxHeight:"180px",overflowY:"auto",display:"flex",flexDirection:"column",gap:"8px"},children:o.map((J,oe)=>s("div",{style:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"#f9fafb",border:"1px solid #e5e7eb",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e("span",{style:{fontWeight:600,fontSize:"13px",color:"#111827",fontFamily:'"IBM Plex Mono", monospace'},children:J.asset.symbol}),J.amount&&e("span",{style:{fontSize:"12px",color:"#6b7280"},children:J.amount})]}),e("span",{style:{fontSize:"12px",color:J.success?"#10b981":"#ef4444",fontWeight:500},children:J.success?"\u2713":"\u2717"})]},oe))})}),!I&&!F&&o&&e("div",{style:{padding:"12px",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"8px",marginBottom:"16px"},children:e("p",{style:{fontSize:"13px",color:"#dc2626",margin:0,lineHeight:1.5},children:o.find(J=>!J.success)?.error
|
|
21
|
+
`}),!I&&o&&o.length>1&&e("div",{style:{overflow:"hidden",maxHeight:y?"200px":"0px",opacity:y?1:0,transition:"max-height 0.3s ease, opacity 0.3s ease",marginBottom:y?"16px":"0"},children:e("div",{style:{maxHeight:"180px",overflowY:"auto",display:"flex",flexDirection:"column",gap:"8px"},children:o.map((J,oe)=>s("div",{style:{padding:"10px 12px",borderRadius:"6px",backgroundColor:"#f9fafb",border:"1px solid #e5e7eb",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[s("div",{style:{display:"flex",alignItems:"center",gap:"8px"},children:[e("span",{style:{fontWeight:600,fontSize:"13px",color:"#111827",fontFamily:'"IBM Plex Mono", monospace'},children:J.asset.symbol}),J.amount&&e("span",{style:{fontSize:"12px",color:"#6b7280"},children:J.amount})]}),e("span",{style:{fontSize:"12px",color:J.success?"#10b981":"#ef4444",fontWeight:500},children:J.success?"\u2713":"\u2717"})]},oe))})}),!I&&!F&&o&&e("div",{style:{padding:"12px",backgroundColor:"#fef2f2",border:"1px solid #fecaca",borderRadius:"8px",marginBottom:"16px"},children:e("p",{style:{fontSize:"13px",color:"#dc2626",margin:0,lineHeight:1.5},children:o.find(J=>!J.success)?.error||`${n.charAt(0).toUpperCase()+n.slice(1)} failed. Please try again.`})}),!I&&s("div",{style:{display:"flex",flexDirection:"column",gap:"8px"},children:[!F&&A&&s("button",{onClick:A,onMouseEnter:()=>h("retry-tx"),onMouseLeave:()=>{h(null),k(null)},onMouseDown:()=>k("retry-tx"),onMouseUp:()=>k(null),style:{width:"100%",height:"48px",padding:"14px 24px",borderRadius:"6px",backgroundColor:f==="retry-tx"?"#d43d3d":x==="retry-tx"?"#f05555":"#ea4b4b",border:"1px solid #0e0d0b",color:"#0e0d0b",fontFamily:'"IBM Plex Mono", monospace',fontWeight:500,fontSize:"16px",lineHeight:"156%",textTransform:"uppercase",cursor:"pointer",transition:"all 0.15s ease",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",transform:f==="retry-results"?"scale(0.98)":x==="retry-results"?"translateY(-2px)":"none",boxShadow:f==="retry-tx"?"1px 1px 0px black":x==="retry-tx"?"5px 5px 0px white, 6px 6px 0px black":"3px 3px 0px white, 4px 4px 0px black"},children:["TRY AGAIN $",n]}),F&&s("button",{onClick:v,onMouseEnter:()=>h("continue-tx"),onMouseLeave:()=>{h(null),k(null)},onMouseDown:()=>k("continue-tx"),onMouseUp:()=>k(null),style:{width:"100%",height:"48px",padding:"14px 24px",borderRadius:"6px",backgroundColor:f==="continue-tx"?"#d43d3d":x==="continue-tx"?"#f05555":"#ea4b4b",border:"1px solid #0e0d0b",color:"#0e0d0b",fontFamily:'"IBM Plex Mono", monospace',fontWeight:500,fontSize:"16px",lineHeight:"156%",textTransform:"uppercase",cursor:"pointer",transition:"all 0.15s ease",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",transform:f==="continue-tx"?"scale(0.98)":x==="continue-tx"?"translateY(-2px)":"none",boxShadow:f==="continue-tx"?"1px 1px 0px black":x==="continue-results"?"5px 5px 0px white, 6px 6px 0px black":"3px 3px 0px white, 4px 4px 0px black"},children:["CONTINUE ",n," \u2192"]})]})]}),e("style",{children:`
|
|
22
22
|
@keyframes slideUp {
|
|
23
23
|
from {
|
|
24
24
|
transform: translateY(100%);
|