react-grab 0.1.0-beta.9 → 0.1.1
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/README.md +11 -144
- package/dist/chunk-36SL2CZY.js +106 -0
- package/dist/chunk-6U3F3XDB.js +10 -0
- package/dist/chunk-GRKSB45O.cjs +10 -0
- package/dist/chunk-HJN2RLDN.cjs +106 -0
- package/dist/chunk-SUB2GNIL.js +11 -0
- package/dist/chunk-WMEHCQ5V.cjs +11 -0
- package/dist/core/index.cjs +1 -1
- package/dist/core/index.d.cts +1 -1
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/design-system.cjs +1 -0
- package/dist/design-system.d.cts +6 -0
- package/dist/design-system.d.ts +6 -0
- package/dist/design-system.js +1 -0
- package/dist/{index-BUAJ3r2H.d.cts → index-CNbOr8nS.d.cts} +62 -8
- package/dist/{index-BUAJ3r2H.d.ts → index-CNbOr8nS.d.ts} +62 -8
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.global.js +46 -29
- package/dist/index.js +2 -2
- package/dist/styles.css +1 -1
- package/package.json +31 -32
- package/dist/chunk-JB7MX447.js +0 -90
- package/dist/chunk-XBEIVCZ6.cjs +0 -90
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {u,v,E,t,n,d,l,C,D,r,p,e,z,A,s,w,Ca,Ea,k,y,Ba,wa,x,Fa,Ia,Ga,Ha}from'./chunk-SUB2GNIL.js';/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
var ke=u('<button class="contain-layout flex items-center justify-center cursor-pointer interactive-scale touch-hitbox mr-1.5">'),ze=u('<button class="contain-layout flex items-center justify-center cursor-pointer interactive-scale outline-none mx-0.5"><div><div>'),Ze=u('<button class="contain-layout shrink-0 flex items-center justify-center cursor-pointer interactive-scale">'),Xe=u('<div><div><div class="flex items-center min-w-0"><div><div class="relative overflow-visible min-w-0"></div></div><div><div class="relative overflow-visible min-w-0"></div></div><div class="relative shrink-0 overflow-visible">'),Le=e$1=>{let c=()=>e$1.snapEdge??"bottom",h=()=>{if(!e$1.isCollapsed)return "";let i={top:"rounded-t-none rounded-b-[10px]",bottom:"rounded-b-none rounded-t-[10px]",left:"rounded-l-none rounded-r-[10px]",right:"rounded-r-none rounded-l-[10px]"}[c()],N=c()==="top"||c()==="bottom"?"px-2 py-0.25":"px-0.25 py-2";return `${i} ${N}`},C=()=>{let i=e$1.isCollapsed;switch(c()){case "top":return i?"rotate-180":"rotate-0";case "bottom":return i?"rotate-0":"rotate-180";case "left":return i?"rotate-90":"-rotate-90";case "right":return i?"-rotate-90":"rotate-90";default:return "rotate-0"}},E=()=>(()=>{var i=ke();return D(i,n(Fa,{size:14,get class(){return Ba("transition-colors",Ia(!!e$1.isActive&&!e$1.isCommentMode,!!e$1.isCommentMode))}})),i})(),M=()=>(()=>{var i=ke();return D(i,n(Ga,{size:14,get class(){return Ba("transition-colors",Ia(!!e$1.isCommentMode,!!e$1.isActive&&!e$1.isCommentMode))}})),i})(),F=()=>(()=>{var i=ze(),N=i.firstChild,o=N.firstChild;return e(P=>{var y=Ba("relative w-5 h-3 rounded-full transition-colors",e$1.enabled?"bg-black":"bg-black/25"),q=Ba("absolute top-0.5 w-2 h-2 rounded-full bg-white transition-transform",e$1.enabled?"left-2.5":"left-0.5");return y!==P.e&&x(N,P.e=y),q!==P.t&&x(o,P.t=q),P},{e:void 0,t:void 0}),i})(),p=()=>(()=>{var i=Ze();return D(i,n(Ha,{get class(){return Ba("text-[#B3B3B3] transition-transform duration-150",C())}})),i})();return (()=>{var i=Xe(),N=i.firstChild,o=N.firstChild,P=o.firstChild,y$1=P.firstChild,q=P.nextSibling,ae=q.firstChild,re=q.nextSibling;return y(i,"click",e$1.onPanelClick,true),y(i,"animationend",e$1.onAnimationEnd),D(y$1,()=>e$1.selectButton??E()),D(ae,()=>e$1.commentButton??M()),D(re,()=>e$1.toggleButton??F()),D(i,()=>e$1.collapseButton??p(),null),D(i,()=>e$1.shakeTooltip,null),e(s=>{var _=Ba("flex items-center justify-center rounded-[10px] antialiased transition-all duration-150 ease-out relative overflow-visible [font-synthesis:none] filter-[drop-shadow(0px_1px_2px_#51515140)] [corner-shape:superellipse(1.25)]",wa,!e$1.isCollapsed&&"py-1.5 gap-1.5 px-2",h(),e$1.isShaking&&"animate-shake"),u=e$1.transformOrigin,$=Ba("grid transition-all duration-150 ease-out",e$1.isCollapsed?"grid-cols-[0fr] opacity-0":"grid-cols-[1fr] opacity-100"),I=Ba("grid transition-all duration-150 ease-out",e$1.enabled?"grid-cols-[1fr] opacity-100":"grid-cols-[0fr] opacity-0"),U=Ba("grid transition-all duration-150 ease-out",e$1.enabled?"grid-cols-[1fr] opacity-100":"grid-cols-[0fr] opacity-0");return _!==s.e&&x(i,s.e=_),u!==s.t&&A(i,"transform-origin",s.t=u),$!==s.a&&x(N,s.a=$),I!==s.o&&x(P,s.o=I),U!==s.i&&x(q,s.i=U),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),i})()};v(["click"]);var je=u("<span style=font-size:10px;font-weight:500>/"),We=u('<div style=display:flex;align-items:center;gap:8px;margin-top:8px><button style="display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;background-color:transparent;border-radius:4px;font-size:10px;cursor:pointer;flex-shrink:0;transition:all 0.15s ease"></button><input type=range min=0 style=flex:1;height:4px;cursor:pointer>'),Ke=u("<div>"),Ye=u('<div><div><div style=display:flex;flex-direction:column;gap:2px;flex:1;min-width:0><div style=display:flex;align-items:center;gap:6px><span style=font-size:13px;font-weight:500;line-height:1.3></span></div><span style=font-size:11px;line-height:1.3></span></div><div style=display:flex;align-items:center;gap:4px;flex-shrink:0><button style="display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;background-color:transparent;border-radius:4px;font-size:12px;cursor:pointer;transition:all 0.15s ease"></button><button title="Refresh this card"style="display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;background-color:transparent;border-radius:4px;font-size:12px;cursor:pointer;transition:all 0.15s ease">\u21BB</button></div></div><div>'),Je=u('<div style="position:fixed;bottom:16px;right:16px;padding:6px 10px;border-radius:6px;font-family:ui-monospace, SFMono-Regular, monospace;font-size:12px;z-index:9999;backdrop-filter:blur(8px)"> FPS'),Qe=u('<div style="padding:16px 24px"><span style="color:rgba(250, 204, 21, 0.8)">\u2605 Starred (<!>)</span><div>'),et=u('<div style="padding:16px 24px"><span>Flows</span><div>'),tt=u('<div style="padding:16px 24px"><span>Selection Label</span><div>'),nt=u('<div style="padding:16px 24px"><span>Context Menu (Right-Click)</span><div>'),ot=u('<div style="padding:16px 24px"><span>Toolbar</span><div>'),at=u('<div style="padding:16px 24px"><span>Agent States</span><div>'),rt=u('<div style="padding:48px 24px;text-align:center"><span style=font-size:14px>No states match "<!>"'),it=u('<div style="display:flex;flex-direction:column;min-height:100vh;font-family:Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;transition:background-color 0.15s ease"><div style="display:flex;justify-content:space-between;align-items:center;padding:16px 24px"><div style=display:flex;align-items:center;gap:10px><svg width=24 height=24 viewBox="0 0 294 294"fill=none xmlns=http://www.w3.org/2000/svg><g clip-path=url(#clip0_logo)><mask id=mask0_logo maskUnits=userSpaceOnUse x=0 y=0 width=294 height=294 style=mask-type:luminance><path d="M294 0H0V294H294V0Z"fill=white></path></mask><g mask=url(#mask0_logo)><path d="M144.599 47.4924C169.712 27.3959 194.548 20.0265 212.132 30.1797C227.847 39.2555 234.881 60.3243 231.926 89.516C231.677 92.0069 231.328 94.5423 230.94 97.1058L228.526 110.14C228.517 110.136 228.505 110.132 228.495 110.127C228.486 110.165 228.479 110.203 228.468 110.24L216.255 105.741C216.256 105.736 216.248 105.728 216.248 105.723C207.915 103.125 199.421 101.075 190.82 99.5888L190.696 99.5588L173.526 97.2648L173.511 97.2631C173.492 97.236 173.467 97.2176 173.447 97.1905C163.862 96.2064 154.233 95.7166 144.599 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8624 138.391 86.939 147.193C90.8624 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245C115.749 197.245 115.758 197.246 115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.507 229.974L144.609 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.472 238.38C154.485 238.392 154.499 238.402 154.513 238.412L143.846 247.482L143.827 247.497C126.56 261.128 109.472 268.745 94.8019 268.745C88.5916 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3164 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3363 185.327 9.52301 167.51 9.52301 147.193C9.52301 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3164 60.3243 61.3496 39.2555 77.0657 30.1797C94.6494 20.0265 119.486 27.3959 144.599 47.4924ZM70.6423 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5176 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8516 207.742 83.0977 205.066 70.6423 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1787 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.9311 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.759 110.203C59.234 110.839 57.7378 111.475 56.27 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9104 147.193C67.822 135.23 63.7566 122.855 60.759 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.854 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.6291 47.6015 67.6975 64.5954 70.0424 87.9446L70.0416 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8263 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.773 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.29 38.512C183.321 38.512 169.34 44.4991 154.444 56.0153C163.93 64.9374 172.634 74.6557 180.462 85.064C193.375 86.6345 206.128 89.3102 218.584 93.0624C218.812 91.4325 219.003 89.8118 219.165 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.552 64.3097C138.104 70.2614 132.054 76.6306 126.443 83.3765C132.39 82.995 138.426 82.8046 144.552 82.8046C150.727 82.8046 156.778 83.0143 162.707 83.3765C157.08 76.6293 151.015 70.2596 144.552 64.3097Z"></path><path d="M144.598 47.4924C169.712 27.3959 194.547 20.0265 212.131 30.1797C227.847 39.2555 234.88 60.3243 231.926 89.516C231.677 92.0069 231.327 94.5423 230.941 97.1058L228.526 110.14L228.496 110.127C228.487 110.165 228.478 110.203 228.469 110.24L216.255 105.741L216.249 105.723C207.916 103.125 199.42 101.075 190.82 99.5888L190.696 99.5588L173.525 97.2648L173.511 97.263C173.492 97.236 173.468 97.2176 173.447 97.1905C163.863 96.2064 154.234 95.7166 144.598 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8622 138.391 86.939 147.193C90.8622 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245L115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.506 229.974L144.61 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.473 238.38L154.512 238.412L143.847 247.482L143.827 247.497C126.56 261.13 109.472 268.745 94.8018 268.745C88.5915 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3162 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3362 185.327 9.52298 167.51 9.52298 147.193C9.52298 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3162 60.3243 61.3496 39.2555 77.0657 30.1797C94.6493 20.0265 119.486 27.3959 144.598 47.4924ZM70.6422 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5175 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8515 207.742 83.0977 205.066 70.6422 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1786 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.931 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.7589 110.203C59.234 110.839 57.7378 111.475 56.2699 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9103 147.193C67.822 135.23 63.7566 122.855 60.7589 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.8539 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.629 47.6015 67.6975 64.5954 70.0424 87.9446L70.0415 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8262 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.772 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.291 38.512C183.321 38.512 169.34 44.4991 154.443 56.0153C163.929 64.9374 172.634 74.6557 180.462 85.064C193.374 86.6345 206.129 89.3102 218.584 93.0624C218.813 91.4325 219.003 89.8118 219.166 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.551 64.3097C138.103 70.2614 132.055 76.6306 126.443 83.3765C132.389 82.995 138.427 82.8046 144.551 82.8046C150.727 82.8046 156.779 83.0143 162.707 83.3765C157.079 76.6293 151.015 70.2596 144.551 64.3097Z"fill=#FF40E0></path></g><mask id=mask1_logo maskUnits=userSpaceOnUse x=102 y=84 width=161 height=162 style=mask-type:luminance><path d="M235.282 84.827L102.261 112.259L129.693 245.28L262.714 217.848L235.282 84.827Z"fill=white></path></mask><g mask=url(#mask1_logo)><path d="M136.863 129.916L213.258 141.224C220.669 142.322 222.495 152.179 215.967 155.856L187.592 171.843L184.135 204.227C183.339 211.678 173.564 213.901 169.624 207.526L129.021 141.831C125.503 136.14 130.245 128.936 136.863 129.916Z"fill=#FF40E0 stroke=#FF40E0 stroke-width=0.817337 stroke-linecap=round stroke-linejoin=round></path></g></g><defs><clipPath id=clip0_logo><rect width=294 height=294 fill=white></rect></clipPath></defs></svg><span style=font-size:14px;font-weight:600;letter-spacing:-0.01em>Design System</span></div><div style=display:flex;align-items:center;gap:8px;flex:1;max-width:400px><input type=text placeholder="Search states\u2026"style="flex:1;padding:6px 12px;border-radius:6px;font-size:13px;font-family:inherit;outline:none;transition:all 0.15s ease"></div><div style=display:flex;align-items:center;gap:8px><button></button><button>\u21BB Refresh</button><button>'),ne=[{id:"idle-default",label:"Idle (Default)",description:'TagBadge + "Click to Copy"',component:"label",props:{tagName:"button",componentName:"Button",status:"idle",hasAgent:false}},{id:"idle-with-filepath",label:"Idle (With File Path)",description:"Clickable tag badge with open icon",component:"label",props:{tagName:"div",componentName:"Header",status:"idle",hasAgent:false,filePath:"src/components/Header.tsx"}},{id:"idle-context-menu-open",label:"Idle (Context Menu Open)",description:"Open indicator icon visible",component:"label",props:{tagName:"main",componentName:"Main",status:"idle",hasAgent:false,isContextMenuOpen:true,filePath:"src/components/Main.tsx"}},{id:"idle-multi-element",label:"Idle (Multi-Element)",description:'Shows "3 elements" instead of tag',component:"label",props:{tagName:"div",elementsCount:3,status:"idle",hasAgent:false}},{id:"idle-tag-only",label:"Idle (Tag Only)",description:"HTML tag without component name",component:"label",props:{tagName:"section",status:"idle",hasAgent:false}},{id:"idle-long-component-name",label:"Idle (Long Component)",description:"Very long component name truncation",component:"label",props:{tagName:"div",componentName:"SuperLongComponentNameThatShouldDefinitelyTruncate",status:"idle",hasAgent:false}},{id:"idle-long-tag-name",label:"Idle (Long Tag)",description:"Long custom element tag name",component:"label",props:{tagName:"my-super-long-custom-web-component-element",status:"idle",hasAgent:false}},{id:"idle-long-filepath",label:"Idle (Long File Path)",description:"Deeply nested file path truncation",component:"label",props:{tagName:"div",componentName:"Button",status:"idle",hasAgent:false,filePath:"src/components/ui/forms/inputs/buttons/primary/PrimaryButton.tsx"}},{id:"idle-large-element-count",label:"Idle (Large Count)",description:"Many elements selected (99)",component:"label",props:{tagName:"div",elementsCount:99,status:"idle",hasAgent:false}},{id:"idle-long-both",label:"Idle (Long Tag + Component)",description:"Both tag and component name long",component:"label",props:{tagName:"custom-interactive-element",componentName:"InteractiveCustomElementWrapper",status:"idle",hasAgent:false,filePath:"src/wrappers/InteractiveCustomElementWrapper.tsx"}},{id:"idle-agent-not-connected",label:"Idle (Agent Not Connected)",description:"Agent available but not connected",component:"label",props:{tagName:"div",componentName:"Panel",status:"idle",hasAgent:true,isAgentConnected:false}},{id:"prompt-empty",label:"Prompt (Empty)",description:"Input field ready for typing",component:"label",props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""}},{id:"prompt-with-text",label:"Prompt (With Text)",description:"Input field with user text",component:"label",props:{tagName:"form",componentName:"Form",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make the button larger"}},{id:"prompt-with-reply",label:"Prompt (Reply Mode)",description:'Shows "previously:" quote above input',component:"label",props:{tagName:"span",componentName:"Text",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"now make it blue",replyToPrompt:"make the button larger"}},{id:"prompt-multiline",label:"Prompt (Multi-line)",description:"Long text that wraps to multiple lines",component:"label",props:{tagName:"div",componentName:"Container",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make the button bigger and change the background color to a nice gradient from blue to purple"}},{id:"prompt-long-reply",label:"Prompt (Long Previous)",description:"Long previously: text that truncates",component:"label",props:{tagName:"button",componentName:"Submit",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"also add rounded corners",replyToPrompt:"make the button larger and add a hover effect with a nice shadow underneath it"}},{id:"pending-dismiss",label:"Pending Dismiss",description:'"Discard?" confirmation dialog',component:"label",props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isPromptMode:true,isPendingDismiss:true}},{id:"copying-simple",label:"Copying (Simple)",description:'"Grabbing..." with pulse animation',component:"label",props:{tagName:"input",componentName:"TextField",status:"copying",hasAgent:false,statusText:"Grabbing\u2026"}},{id:"copying-with-prompt",label:"Copying (With Prompt)",description:"Disabled input + stop button",component:"label",props:{tagName:"section",componentName:"Section",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add form validation",statusText:"Thinking\u2026"}},{id:"pending-abort",label:"Pending Abort",description:'"Discard?" during copy operation',component:"label",props:{tagName:"article",componentName:"Article",status:"copying",hasAgent:true,isPendingAbort:true}},{id:"copying-applying",label:"Copying (Applying)",description:'"Applying changes\u2026" status variant',component:"label",props:{tagName:"form",componentName:"LoginForm",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add validation",statusText:"Applying changes\u2026"}},{id:"copying-analyzing",label:"Copying (Analyzing)",description:'"Analyzing\u2026" status variant',component:"label",props:{tagName:"table",componentName:"DataTable",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"make columns sortable",statusText:"Analyzing\u2026"}},{id:"copying-long-input",label:"Copying (Long Input)",description:"Long prompt during copying",component:"label",props:{tagName:"div",componentName:"Modal",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add a close button in the top right corner with an X icon and make it dismiss the modal when clicked",statusText:"Thinking\u2026"}},{id:"copying-long-component",label:"Copying (Long Component)",description:"Long component name while copying",component:"label",props:{tagName:"div",componentName:"InteractiveDataVisualizationChart",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add tooltips",statusText:"Applying\u2026"}},{id:"copied-simple",label:"Copied (Simple)",description:'Checkmark + "Copied" text only',component:"label",props:{tagName:"nav",componentName:"Navigation",status:"copied",hasAgent:false,hasOnDismiss:false,hasOnUndo:false}},{id:"copied-with-actions",label:"Copied (With Actions)",description:"Undo + Keep buttons",component:"label",props:{tagName:"footer",componentName:"Footer",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true}},{id:"copied-with-followup",label:"Copied (With Follow-up)",description:"Follow-up input field below",component:"label",props:{tagName:"aside",componentName:"Sidebar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true}},{id:"copied-no-dismiss",label:"Copied (No Dismiss)",description:"Checkmark + status only, no Keep button",component:"label",props:{tagName:"span",componentName:"Badge",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied",hasOnDismiss:false}},{id:"copied-no-undo",label:"Copied (No Undo)",description:"Keep button but no Undo",component:"label",props:{tagName:"li",componentName:"ListItem",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Changes saved",supportsUndo:false}},{id:"copied-with-more-options",label:"Copied (More Options)",description:"Ellipsis button for context menu",component:"label",props:{tagName:"div",componentName:"Widget",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Updated",supportsUndo:true,showMoreOptions:true}},{id:"copied-custom-dismiss",label:"Copied (Custom Dismiss)",description:'"Accept" instead of "Keep"',component:"label",props:{tagName:"section",componentName:"Hero",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Ready",supportsUndo:true,dismissButtonText:"Accept"}},{id:"copied-followup-placeholder",label:"Copied (Follow-up Placeholder)",description:"Previous prompt as placeholder",component:"label",props:{tagName:"header",componentName:"TopBar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,previousPrompt:"make it bigger"}},{id:"agent-long-component",label:"Agent (Long Component)",description:"Long component name with prompt",component:"label",props:{tagName:"div",componentName:"VeryLongComponentNameThatShouldTruncateInTheUI",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""}},{id:"agent-long-status",label:"Agent (Long Status)",description:"Very long status text during operation",component:"label",props:{tagName:"form",componentName:"SearchForm",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add validation",statusText:"Analyzing component structure and dependencies\u2026"}},{id:"agent-long-previous",label:"Agent (Long Previous Prompt)",description:"Very long previous prompt truncation",component:"label",props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"and also fix the spacing",replyToPrompt:"make the card have rounded corners with a subtle shadow and increase the padding on all sides to make it feel more spacious"}},{id:"agent-copied-long-status",label:"Agent Copied (Long Status)",description:"Long completion status message",component:"label",props:{tagName:"section",componentName:"HeroSection",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Successfully applied 5 changes across 3 files",supportsUndo:true,supportsFollowUp:true}},{id:"agent-copied-long-placeholder",label:"Agent Copied (Long Placeholder)",description:"Long previous prompt as placeholder",component:"label",props:{tagName:"nav",componentName:"Navbar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,previousPrompt:"make the navbar sticky with a blur background effect and add smooth scroll behavior"}},{id:"agent-all-features",label:"Agent (All Features)",description:"Undo + Follow-up + More options",component:"label",props:{tagName:"div",componentName:"Dashboard",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true,previousPrompt:"add dark mode"}},{id:"agent-single-char-component",label:"Agent (Single Char)",description:"Single character component name",component:"label",props:{tagName:"i",componentName:"I",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""}},{id:"agent-numeric-component",label:"Agent (Numeric Name)",description:"Component name with numbers",component:"label",props:{tagName:"div",componentName:"Card2024V2",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"update the styles"}},{id:"error",label:"Error",description:"Error message with Retry + Ok",component:"label",props:{tagName:"dialog",componentName:"Modal",status:"error",error:"Failed to copy element"}},{id:"error-retry-only",label:"Error (Retry Only)",description:"Retry button, no Ok",component:"label",props:{tagName:"form",componentName:"Search",status:"error",error:"Connection timeout",hasOnRetry:true,hasOnAcknowledge:false}},{id:"error-ok-only",label:"Error (Ok Only)",description:"Ok button, no Retry",component:"label",props:{tagName:"div",componentName:"Alert",status:"error",error:"Operation cancelled",hasOnRetry:false,hasOnAcknowledge:true}},{id:"error-long-message",label:"Error (Long Message)",description:"Truncated error > 50 chars",component:"label",props:{tagName:"section",componentName:"Dashboard",status:"error",error:"The server returned an unexpected error response. Please check your network connection and try again later."}},{id:"error-long-component",label:"Error (Long Component)",description:"Error with long component name",component:"label",props:{tagName:"div",componentName:"VeryLongComponentNameThatMightOverflow",status:"error",error:"Component not found"}},{id:"error-no-buttons",label:"Error (No Buttons)",description:"Error with no action buttons",component:"label",props:{tagName:"span",componentName:"Text",status:"error",error:"Unknown error occurred",hasOnRetry:false,hasOnAcknowledge:false}},{id:"context-menu-basic",label:"Context Menu (Basic)",description:"Copy, Copy HTML options",component:"context-menu",props:{tagName:"button",componentName:"Button",hasFilePath:false}},{id:"context-menu-with-open",label:"Context Menu (With Open)",description:"Includes Open option with file path",component:"context-menu",props:{tagName:"div",componentName:"Header",hasFilePath:true,filePath:"src/components/Header.tsx"}},{id:"context-menu-tag-only",label:"Context Menu (Tag Only)",description:"HTML tag without component name",component:"context-menu",props:{tagName:"section",hasFilePath:false}},{id:"context-menu-long-component",label:"Context Menu (Long Name)",description:"Long component name in header",component:"context-menu",props:{tagName:"div",componentName:"SuperLongComponentNameThatNeedsTruncation",hasFilePath:true,filePath:"src/components/SuperLongComponentNameThatNeedsTruncation.tsx"}},{id:"context-menu-long-tag",label:"Context Menu (Long Tag)",description:"Long custom element tag",component:"context-menu",props:{tagName:"my-custom-interactive-web-component",hasFilePath:false}},{id:"toolbar-default",label:"Toolbar (Default)",description:"Inactive, enabled state",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true}},{id:"toolbar-active",label:"Toolbar (Active)",description:"Selection mode active",component:"toolbar",props:{isToolbarActive:true,isToolbarEnabled:true}},{id:"toolbar-disabled",label:"Toolbar (Disabled)",description:"Toggle switch off",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:false}},{id:"toolbar-active-disabled",label:"Toolbar (Active + Disabled)",description:"Active but toggle off",component:"toolbar",props:{isToolbarActive:true,isToolbarEnabled:false}},{id:"toolbar-comment-mode",label:"Toolbar (Comment Mode)",description:"Comment selection mode active",component:"toolbar",props:{isToolbarActive:true,isToolbarCommentMode:true,isToolbarEnabled:true}},{id:"toolbar-collapsed-bottom",label:"Toolbar (Collapsed Bottom)",description:"Minimized, snapped to bottom edge",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"bottom"}},{id:"toolbar-collapsed-top",label:"Toolbar (Collapsed Top)",description:"Minimized, snapped to top edge",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"top"}},{id:"toolbar-collapsed-left",label:"Toolbar (Collapsed Left)",description:"Minimized, snapped to left edge",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"left"}},{id:"toolbar-collapsed-right",label:"Toolbar (Collapsed Right)",description:"Minimized, snapped to right edge",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"right"}},{id:"anim-copy-flow",label:"Copy Flow",description:"idle \u2192 copying \u2192 \u2713 copied",component:"label",props:{tagName:"button",componentName:"Button",status:"idle",hasAgent:false},animationSequence:[{props:{tagName:"button",componentName:"Button",status:"idle",hasAgent:false},durationMs:1500},{props:{tagName:"button",componentName:"Button",status:"copying",hasAgent:false,statusText:"Grabbing\u2026"},durationMs:2e3},{props:{tagName:"button",componentName:"Button",status:"copied",hasAgent:false,hasOnDismiss:false,hasOnUndo:false,showMoreOptions:true},durationMs:2e3}]},{id:"anim-agent-flow",label:"Agent Flow",description:"prompt \u2192 thinking \u2192 done",component:"label",props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},animationSequence:[{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:1e3},{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make it"},durationMs:400},{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make it bigger"},durationMs:800},{props:{tagName:"div",componentName:"Card",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"make it bigger",statusText:"Thinking\u2026"},durationMs:1500},{props:{tagName:"div",componentName:"Card",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"make it bigger",statusText:"Applying changes\u2026"},durationMs:1500},{props:{tagName:"div",componentName:"Card",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2500}]},{id:"anim-error-flow",label:"Error Flow",description:"idle \u2192 copying \u2192 error",component:"label",props:{tagName:"form",componentName:"Form",status:"idle",hasAgent:false},animationSequence:[{props:{tagName:"form",componentName:"Form",status:"idle",hasAgent:false},durationMs:1500},{props:{tagName:"form",componentName:"Form",status:"copying",hasAgent:false,statusText:"Grabbing\u2026"},durationMs:2e3},{props:{tagName:"form",componentName:"Form",status:"error",error:"Failed to copy element",hasOnRetry:true,hasOnAcknowledge:true},durationMs:2500}]},{id:"anim-discard-flow",label:"Discard Prompt",description:"prompt \u2192 pending dismiss \u2192 cancelled",component:"label",props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"change color"},animationSequence:[{props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"change color"},durationMs:1500},{props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isPromptMode:true,isPendingDismiss:true},durationMs:2e3},{props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"change color"},durationMs:1500}]},{id:"anim-abort-flow",label:"Abort Operation",description:"copying \u2192 pending abort \u2192 idle",component:"label",props:{tagName:"section",componentName:"Section",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add animation",statusText:"Thinking\u2026"},animationSequence:[{props:{tagName:"section",componentName:"Section",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add animation",statusText:"Thinking\u2026"},durationMs:1500},{props:{tagName:"section",componentName:"Section",status:"copying",hasAgent:true,isPendingAbort:true},durationMs:2e3},{props:{tagName:"section",componentName:"Section",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:1500}]},{id:"anim-toolbar-toggle",label:"Toolbar Toggle",description:"inactive \u2192 active \u2192 inactive",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true},animationSequence:[{props:{isToolbarActive:false,isToolbarEnabled:true},durationMs:1500},{props:{isToolbarActive:true,isToolbarEnabled:true},durationMs:2e3},{props:{isToolbarActive:false,isToolbarEnabled:true},durationMs:1500}]},{id:"anim-toolbar-enable",label:"Toolbar Enable",description:"disabled \u2192 enabled \u2192 disabled",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:false},animationSequence:[{props:{isToolbarActive:false,isToolbarEnabled:false},durationMs:1500},{props:{isToolbarActive:false,isToolbarEnabled:true},durationMs:2e3},{props:{isToolbarActive:false,isToolbarEnabled:false},durationMs:1500}]},{id:"anim-followup-flow",label:"Follow-up",description:"copied \u2192 follow-up \u2192 new result",component:"label",props:{tagName:"nav",componentName:"Navbar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},animationSequence:[{props:{tagName:"nav",componentName:"Navbar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3},{props:{tagName:"nav",componentName:"Navbar",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"also make it sticky",statusText:"Thinking\u2026"},durationMs:2e3},{props:{tagName:"nav",componentName:"Navbar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied 2 changes",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3}]},{id:"anim-undo-flow",label:"Undo Flow",description:"copied \u2192 undo \u2192 idle",component:"label",props:{tagName:"div",componentName:"Modal",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true,showMoreOptions:true},animationSequence:[{props:{tagName:"div",componentName:"Modal",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3},{props:{tagName:"div",componentName:"Modal",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:2e3}]},{id:"anim-retry-flow",label:"Retry After Error",description:"error \u2192 retry \u2192 \u2713 copied",component:"label",props:{tagName:"table",componentName:"DataTable",status:"error",error:"Connection timeout",hasOnRetry:true,hasOnAcknowledge:true},animationSequence:[{props:{tagName:"table",componentName:"DataTable",status:"error",error:"Connection timeout",hasOnRetry:true,hasOnAcknowledge:true},durationMs:2e3},{props:{tagName:"table",componentName:"DataTable",status:"copying",statusText:"Retrying\u2026"},durationMs:1500},{props:{tagName:"table",componentName:"DataTable",status:"copied",hasOnDismiss:false,hasOnUndo:false,showMoreOptions:true},durationMs:2e3}]},{id:"anim-agent-error-flow",label:"Agent Error",description:"prompt \u2192 thinking \u2192 error",component:"label",props:{tagName:"aside",componentName:"Sidebar",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},animationSequence:[{props:{tagName:"aside",componentName:"Sidebar",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:1e3},{props:{tagName:"aside",componentName:"Sidebar",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make it collapsible"},durationMs:800},{props:{tagName:"aside",componentName:"Sidebar",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Thinking\u2026"},durationMs:2e3},{props:{tagName:"aside",componentName:"Sidebar",status:"error",hasAgent:true,error:"Agent failed to respond",hasOnRetry:true,hasOnAcknowledge:true},durationMs:2500}]},{id:"anim-acknowledge-error",label:"Acknowledge Error",description:"error \u2192 ok \u2192 dismissed",component:"label",props:{tagName:"ul",componentName:"List",status:"error",error:"Element not found",hasOnRetry:true,hasOnAcknowledge:true},animationSequence:[{props:{tagName:"ul",componentName:"List",status:"error",error:"Element not found",hasOnRetry:true,hasOnAcknowledge:true},durationMs:2500},{props:{tagName:"ul",componentName:"List",status:"idle"},durationMs:2e3}]},{id:"anim-connect-agent",label:"Agent Connect",description:"disconnected \u2192 connected \u2192 prompt",component:"label",props:{tagName:"footer",componentName:"Footer",status:"idle",hasAgent:true,isAgentConnected:false},animationSequence:[{props:{tagName:"footer",componentName:"Footer",status:"idle",hasAgent:true,isAgentConnected:false},durationMs:2e3},{props:{tagName:"footer",componentName:"Footer",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:2500}]},{id:"anim-context-menu-flow",label:"Context Menu",description:"context menu options",component:"context-menu",props:{tagName:"article",componentName:"BlogPost",hasFilePath:false},animationSequence:[{props:{tagName:"article",componentName:"BlogPost",hasFilePath:false},durationMs:2e3},{props:{tagName:"article",componentName:"BlogPost",hasFilePath:true,filePath:"src/components/BlogPost.tsx"},durationMs:2500},{props:{tagName:"article",componentName:"BlogPost",hasFilePath:false},durationMs:2e3}]},{id:"anim-toolbar-collapse-bottom",label:"Toolbar Collapse (Bottom)",description:"expanded \u2192 collapsed \u2192 expanded",component:"toolbar",props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"bottom"},animationSequence:[{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"bottom"},durationMs:2e3},{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"bottom"},durationMs:2e3},{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"bottom"},durationMs:2e3}]},{id:"anim-toolbar-collapse-right",label:"Toolbar Collapse (Right)",description:"expanded \u2192 collapsed \u2192 expanded",component:"toolbar",props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"right"},animationSequence:[{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"right"},durationMs:2e3},{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"right"},durationMs:2e3},{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"right"},durationMs:2e3}]},{id:"anim-copy-with-file",label:"Copy with File Path",description:"idle \u2192 copying \u2192 \u2713 copied",component:"label",props:{tagName:"span",componentName:"Badge",status:"idle",filePath:"src/components/Badge.tsx"},animationSequence:[{props:{tagName:"span",componentName:"Badge",status:"idle",filePath:"src/components/Badge.tsx"},durationMs:1500},{props:{tagName:"span",componentName:"Badge",status:"copying",filePath:"src/components/Badge.tsx",statusText:"Grabbing\u2026"},durationMs:2e3},{props:{tagName:"span",componentName:"Badge",status:"copied",filePath:"src/components/Badge.tsx",hasOnDismiss:false,hasOnUndo:false,showMoreOptions:true},durationMs:2e3}]},{id:"anim-multiple-elements",label:"Multiple Elements",description:"1 \u2192 5 selected \u2192 copying \u2192 \u2713 copied",component:"label",props:{tagName:"li",componentName:"ListItem",status:"idle",elementsCount:1},animationSequence:[{props:{tagName:"li",componentName:"ListItem",status:"idle",elementsCount:1},durationMs:2e3},{props:{tagName:"li",componentName:"ListItem",status:"idle",elementsCount:5},durationMs:2e3},{props:{tagName:"li",componentName:"ListItem",status:"copying",elementsCount:5,statusText:"Grabbing 5\u2026"},durationMs:2e3},{props:{tagName:"li",componentName:"ListItem",status:"copied",elementsCount:5,hasOnDismiss:false,hasOnUndo:false,showMoreOptions:true},durationMs:2e3}]},{id:"anim-long-operation",label:"Long Operation",description:"copying with status updates",component:"label",props:{tagName:"main",componentName:"Dashboard",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Starting\u2026"},animationSequence:[{props:{tagName:"main",componentName:"Dashboard",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"redesign the layout"},durationMs:1500},{props:{tagName:"main",componentName:"Dashboard",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Analyzing\u2026"},durationMs:1500},{props:{tagName:"main",componentName:"Dashboard",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Generating code\u2026"},durationMs:1500},{props:{tagName:"main",componentName:"Dashboard",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Applying changes\u2026"},durationMs:1500},{props:{tagName:"main",componentName:"Dashboard",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3}]},{id:"anim-reply-to-prompt",label:"Reply to Prompt",description:"completed \u2192 edit with previous",component:"label",props:{tagName:"div",componentName:"Card",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsFollowUp:true,showMoreOptions:true},animationSequence:[{props:{tagName:"div",componentName:"Card",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3},{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"",previousPrompt:"make it bigger",replyToPrompt:"make it bigger"},durationMs:2500},{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"also add shadow",previousPrompt:"make it bigger",replyToPrompt:"make it bigger"},durationMs:1500}]}],st=300,lt=48,dt=16,pt=8,ut="12px 14px",ct=16;var mt="5px 10px",gt=6,ht=6,bt=12,ft=11,Ct=12;var Be=6,xt=12,Oe="0.15s ease",$e="react-grab-design-system-theme",De="react-grab-design-system-starred",Tt=e=>{let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",h="";for(let C=0;C<e;C++)h+=c.charAt(Math.floor(Math.random()*c.length));return h},Nt=e=>{let c=h=>h&&h+Tt(20+Math.floor(Math.random()*30));return {...e,tagName:c(e.tagName),componentName:c(e.componentName),filePath:c(e.filePath),statusText:c(e.statusText),error:c(e.error),inputValue:c(e.inputValue),replyToPrompt:c(e.replyToPrompt),previousPrompt:c(e.previousPrompt),dismissButtonText:c(e.dismissButtonText)}},vt=()=>{try{return localStorage.getItem($e)!=="light"}catch{return true}},At=e=>{try{localStorage.setItem($e,e?"dark":"light");}catch{}},yt=()=>{try{let e=localStorage.getItem(De);return e?new Set(JSON.parse(e)):new Set}catch{return new Set}},St=e=>{try{localStorage.setItem(De,JSON.stringify([...e]));}catch{}},wt={background:"#000000",cardBackground:"rgba(255, 255, 255, 0.05)",cardContentBackground:"rgba(0, 0, 0, 0.6)",cardBorder:"rgba(255, 255, 255, 0.1)",cardShadow:"0 8px 30px rgba(0, 0, 0, 0.3)",titleText:"#ffffff",descriptionText:"rgba(255, 255, 255, 0.5)",targetBackground:"rgba(215, 95, 203, 0.1)",targetBorder:"rgba(215, 95, 203, 0.3)",targetText:"rgba(215, 95, 203, 0.7)",toggleBackground:"rgba(255, 255, 255, 0.05)",toggleBorder:"rgba(255, 255, 255, 0.1)",toggleText:"#ffffff",sectionTitle:"rgba(255, 255, 255, 0.4)"},Mt={background:"#f5f5f5",cardBackground:"#ffffff",cardContentBackground:"rgba(0, 0, 0, 0.03)",cardBorder:"rgba(0, 0, 0, 0.1)",cardShadow:"0 8px 30px rgba(0, 0, 0, 0.08)",titleText:"#0a0a0a",descriptionText:"rgba(0, 0, 0, 0.5)",targetBackground:"rgba(215, 95, 203, 0.08)",targetBorder:"rgba(215, 95, 203, 0.3)",targetText:"rgba(215, 95, 203, 0.7)",toggleBackground:"#ffffff",toggleBorder:"rgba(0, 0, 0, 0.1)",toggleText:"#0a0a0a",sectionTitle:"rgba(0, 0, 0, 0.4)"},Ne=e=>({display:"flex","align-items":"center",gap:`${gt}px`,padding:mt,"background-color":e.toggleBackground,border:`1px solid ${e.toggleBorder}`,"border-radius":`${ht}px`,color:e.toggleText,"font-size":`${bt}px`,"font-weight":"500",cursor:"pointer",transition:`all ${Oe}`}),Pt=e=>({display:"flex","flex-direction":"column","background-color":e.cardBackground,"border-radius":`${pt}px`,border:`1px solid ${e.cardBorder}`,"box-shadow":e.cardShadow,overflow:"hidden","aspect-ratio":"1",transition:`all ${Oe}`}),_t=e=>({display:"flex","justify-content":"space-between","align-items":"flex-start",padding:ut,"border-bottom":`1px solid ${e.cardBorder}`}),Et=e=>({flex:"1",display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",padding:`${ct}px`,position:"relative","background-color":e.cardContentBackground}),kt=e=>({width:"100%",height:`${lt}px`,"background-color":e.targetBackground,border:`1px solid ${e.targetBorder}`,"border-radius":`${Be}px`,display:"flex","align-items":"center","justify-content":"center",color:e.targetText,"font-size":`${xt}px`,"font-family":"ui-monospace, SFMono-Regular, monospace"}),oe=e$1=>{let[c,h]=d(false),[C$1,E]=d(false),[M,F]=d(0),p,i=()=>!!e$1.state.animationSequence?.length,N=()=>e$1.state.animationSequence?.length??0,o=()=>{let s;return i()&&e$1.state.animationSequence?s=e$1.state.animationSequence[M()].props:s=e$1.state.props,e$1.isScrambled?Nt(s):s},P=()=>{if(!e$1.state.animationSequence)return;let s=e$1.state.animationSequence,_=s[M()];p=setTimeout(()=>{let u=(M()+1)%s.length;F(u),C$1()&&P();},_.durationMs);},y=s=>{s.stopPropagation(),C$1()?(E(false),p&&(clearTimeout(p),p=void 0)):(E(true),P());},q=s=>{let _=s.target;F(parseInt(_.value,10)),C$1()&&(E(false),p&&(clearTimeout(p),p=void 0));};l(()=>{p&&clearTimeout(p);});let ae=s=>{s.stopPropagation(),h(true),F(0),E(false),p&&(clearTimeout(p),p=void 0),e$1.onRefresh(),queueMicrotask(()=>h(false));},re=s=>{s.stopPropagation(),e$1.onToggleStar();};return (()=>{var s$1=Ye(),_=s$1.firstChild,u=_.firstChild,$=u.firstChild,I=$.firstChild,U=$.nextSibling,W=u.nextSibling,D$1=W.firstChild,Y=D$1.nextSibling,ie=_.nextSibling;return D(I,()=>e$1.state.label),D($,n(r,{get when(){return i()},get children(){var r=je(),k=r.firstChild;return D(r,()=>M()+1,k),D(r,N,null),e(R=>A(r,"color",e$1.theme.descriptionText)),r}}),null),D(U,()=>e$1.state.description),D(u,n(r,{get when(){return i()},get children(){var r=We(),k=r.firstChild,R=k.nextSibling;return k.$$click=y,D(k,()=>C$1()?"\u23F8":"\u25B6"),R.$$input=q,e(x=>{var G=`1px solid ${e$1.theme.cardBorder}`,z=e$1.theme.titleText,Z=C$1()?"Pause":"Play",X=N()-1,j=e$1.theme.titleText;return G!==x.e&&A(k,"border",x.e=G),z!==x.t&&A(k,"color",x.t=z),Z!==x.a&&w(k,"title",x.a=Z),X!==x.o&&w(R,"max",x.o=X),j!==x.i&&A(R,"accent-color",x.i=j),x},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),e(()=>R.value=M()),r}}),null),D$1.$$click=re,D(D$1,()=>e$1.isStarred?"\u2605":"\u2606"),Y.$$click=ae,D(ie,n(r,{get when(){return !c()},get children(){return [n(r,{get when(){return e$1.state.component!=="toolbar"},get children(){var r=Ke();return C(k=>e$1.registerCell(k),r),D(r,()=>e$1.getTargetDisplayText()),e(k=>z(r,kt(e$1.theme),k)),r}}),n(r,{get when(){return e$1.state.component==="label"},get children(){return n(Ca,{get tagName(){return o().tagName},get componentName(){return o().componentName},get elementsCount(){return o().elementsCount},get selectionBounds(){return e$1.getBounds()},get mouseX(){return s(()=>!!e$1.getBounds())()?e$1.getBounds().x+e$1.getBounds().width/2:void 0},visible:true,get status(){return o().status},get hasAgent(){return o().hasAgent},get isAgentConnected(){return o().isAgentConnected},get isPromptMode(){return o().isPromptMode},get inputValue(){return o().inputValue},get replyToPrompt(){return o().replyToPrompt},get statusText(){return o().statusText},get isPendingDismiss(){return o().isPendingDismiss},get isPendingAbort(){return o().isPendingAbort},get error(){return o().error},get isContextMenuOpen(){return o().isContextMenuOpen},get supportsUndo(){return o().supportsUndo},get supportsFollowUp(){return o().supportsFollowUp},get filePath(){return o().filePath},get dismissButtonText(){return o().dismissButtonText},get previousPrompt(){return o().previousPrompt},get onOpen(){return o().filePath?()=>{}:void 0},onInputChange:()=>{},onSubmit:()=>{},onToggleExpand:()=>{},onConfirmDismiss:()=>{},onCancelDismiss:()=>{},onConfirmAbort:()=>{},onCancelAbort:()=>{},get onAcknowledgeError(){return o().hasOnAcknowledge!==false?()=>{}:void 0},get onRetry(){return o().hasOnRetry!==false?()=>{}:void 0},get onDismiss(){return o().hasOnDismiss!==false?()=>{}:void 0},get onUndo(){return o().hasOnUndo!==false?()=>{}:void 0},onFollowUpSubmit:()=>{},onAbort:()=>{},get onShowContextMenu(){return o().showMoreOptions?()=>{}:void 0}})}}),n(r,{get when(){return e$1.state.component==="context-menu"},get children(){return n(Ea,{get position(){return s(()=>!!e$1.getBounds())()?{x:e$1.getBounds().x+e$1.getBounds().width/2,y:e$1.getBounds().y+e$1.getBounds().height}:null},get selectionBounds(){return e$1.getBounds()??null},get tagName(){return o().tagName},get componentName(){return o().componentName},get hasFilePath(){return o().hasFilePath??false},get actions(){return [{id:"copy",label:"Copy",shortcut:"C",onAction:()=>{}},{id:"screenshot",label:"Screenshot",shortcut:"S",onAction:()=>{}},{id:"copy-html",label:"Copy HTML",onAction:()=>{}},{id:"open",label:"Open",shortcut:"O",enabled:o().hasFilePath??false,onAction:()=>{}},{id:"comment",label:"Comment",shortcut:"Enter",onAction:()=>{}}]},onDismiss:()=>{},onHide:()=>{}})}}),n(r,{get when(){return e$1.state.component==="toolbar"},get children(){return n(Le,{get isActive(){return o().isToolbarActive??false},get isCommentMode(){return o().isToolbarCommentMode??false},get enabled(){return o().isToolbarEnabled??true},get isCollapsed(){return o().isToolbarCollapsed},get snapEdge(){return o().toolbarSnapEdge}})}})]}})),e(r=>{var k=Pt(e$1.theme),R=_t(e$1.theme),x=e$1.theme.titleText,G=e$1.theme.descriptionText,z$1=`1px solid ${e$1.isStarred?"rgba(250, 204, 21, 0.5)":e$1.theme.cardBorder}`,Z=e$1.isStarred?"rgba(250, 204, 21, 1)":e$1.theme.descriptionText,X=e$1.isStarred?"Unstar this card":"Star this card",j=`1px solid ${e$1.theme.cardBorder}`,ee=e$1.theme.descriptionText,K=Et(e$1.theme);return r.e=z(s$1,k,r.e),r.t=z(_,R,r.t),x!==r.a&&A(I,"color",r.a=x),G!==r.o&&A(U,"color",r.o=G),z$1!==r.i&&A(D$1,"border",r.i=z$1),Z!==r.n&&A(D$1,"color",r.n=Z),X!==r.s&&w(D$1,"title",r.s=X),j!==r.h&&A(Y,"border",r.h=j),ee!==r.r&&A(Y,"color",r.r=ee),r.d=z(ie,K,r.d),r},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),s$1})()},Lt=e$1=>{let[c,h]=d(0),C=0,E=performance.now(),M,F=()=>{C++;let p=performance.now(),i=p-E;i>=1e3&&(h(Math.round(C*1e3/i)),C=0,E=p),M=requestAnimationFrame(F);};return k(()=>{M=requestAnimationFrame(F);}),l(()=>{M&&cancelAnimationFrame(M);}),(()=>{var p=Je(),i=p.firstChild;return D(p,c,i),e(N=>{var o=e$1.theme.cardBackground,P=`1px solid ${e$1.theme.cardBorder}`,y=e$1.theme.titleText;return o!==N.e&&A(p,"background-color",N.e=o),P!==N.t&&A(p,"border",N.t=P),y!==N.a&&A(p,"color",N.a=y),N},{e:void 0,t:void 0,a:void 0}),p})()},Bt=()=>{let[e$1,c]=d(new Map),[h,C$1]=d(0),[E,M]=d(vt()),[F,p$1]=d(false),[i,N]=d(yt()),[o,P]=d(""),[y,q]=d(false),ae=()=>{p$1(true),c(new Map),queueMicrotask(()=>p$1(false));},re=()=>{M(n=>{let b=!n;return At(b),b});},s$1=n=>{N(b=>{let v=new Set(b);return v.has(n)?v.delete(n):v.add(n),St(v),v});},_=n=>i().has(n),u=()=>E()?wt:Mt,$=()=>({display:"block",color:u().sectionTitle,"font-size":`${ft}px`,"font-weight":"600","text-transform":"uppercase","letter-spacing":"0.05em","margin-bottom":`${Ct}px`}),I=()=>({display:"grid","grid-template-columns":`repeat(auto-fill, minmax(${st}px, 1fr))`,gap:`${dt}px`}),U=n=>n.component==="toolbar"?"":n.props.elementsCount&&n.props.elementsCount>1?`<${n.props.elementsCount} elements>`:`<${n.props.componentName||n.props.tagName||"element"} />`,W=(n,b)=>{c(v=>{let se=new Map(v);return se.set(n,b),se}),C$1(v=>v+1);},D$1=n=>{h();let b=e$1().get(n);if(!b)return;let v=b.getBoundingClientRect();return {x:v.x,y:v.y,width:v.width,height:v.height,borderRadius:`${Be}px`,transform:""}},Y,ie,r$1=()=>{C$1(n=>n+1);},k=n=>{ie=n,Y=new ResizeObserver(()=>{C$1(b=>b+1);}),Y.observe(n),window.addEventListener("scroll",r$1,true),n.addEventListener("scroll",r$1,true);};l(()=>{Y?.disconnect(),window.removeEventListener("scroll",r$1,true),ie?.removeEventListener("scroll",r$1,true);});let R=n=>!!n.animationSequence?.length,x=n=>{let b=o().toLowerCase().trim();return b?n.label.toLowerCase().includes(b)||n.description.toLowerCase().includes(b)||n.id.toLowerCase().includes(b)||(n.props.componentName?.toLowerCase().includes(b)??false)||(n.props.tagName?.toLowerCase().includes(b)??false):true},G=()=>ne.filter(n=>i().has(n.id)&&x(n)),z$1=()=>ne.filter(n=>n.component==="label"&&!n.props.hasAgent&&!R(n)&&x(n)),Z=()=>ne.filter(n=>n.component==="context-menu"&&!R(n)&&x(n)),X=()=>ne.filter(n=>n.component==="toolbar"&&!R(n)&&x(n)),j=()=>ne.filter(n=>n.component==="label"&&n.props.hasAgent&&!R(n)&&x(n)),ee=()=>ne.filter(n=>R(n)&&x(n)),K=n=>()=>{c(b=>{let v=new Map(b);return v.delete(n),v});};return (()=>{var n$1=it(),b=n$1.firstChild,v=b.firstChild,se=v.firstChild,Re=se.firstChild,Fe=Re.firstChild,Ie=Fe.nextSibling,Ue=Ie.firstChild,Ve=se.nextSibling,ve=v.nextSibling,le=ve.firstChild,qe=ve.nextSibling,pe=qe.firstChild,ge=pe.nextSibling,he=ge.nextSibling;return C(k,n$1),le.$$input=a=>P(a.currentTarget.value),pe.$$click=()=>q(a=>!a),D(pe,()=>y()?"\u2713 Scramble":"Scramble"),ge.$$click=ae,he.$$click=re,D(he,()=>E()?"Dark":"Light"),D(n$1,n(r,{get when(){return !F()},get children(){return [n(r,{get when(){return G().length>0},get children(){var a=Qe(),m=a.firstChild,T=m.firstChild,t=T.nextSibling;t.nextSibling;var L=m.nextSibling;return D(m,()=>G().length,t),D(L,n(p,{get each(){return G()},children:B=>n(oe,{state:B,get theme(){return u()},getBounds:()=>D$1(B.id),registerCell:te=>W(B.id,te),get onRefresh(){return K(B.id)},getTargetDisplayText:()=>U(B),get isStarred(){return _(B.id)},onToggleStar:()=>s$1(B.id),get isScrambled(){return y()}})})),e(B=>{var te={...$()},be=I();return B.e=z(m,te,B.e),B.t=z(L,be,B.t),B},{e:void 0,t:void 0}),a}}),n(r,{get when(){return ee().length>0},get children(){var a=et(),m=a.firstChild,T=m.nextSibling;return D(T,n(p,{get each(){return ee()},children:t=>n(oe,{state:t,get theme(){return u()},getBounds:()=>D$1(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s$1(t.id),get isScrambled(){return y()}})})),e(t=>{var g=$(),L=I();return t.e=z(m,g,t.e),t.t=z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),n(r,{get when(){return z$1().length>0},get children(){var a=tt(),m=a.firstChild,T=m.nextSibling;return D(T,n(p,{get each(){return z$1()},children:t=>n(oe,{state:t,get theme(){return u()},getBounds:()=>D$1(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s$1(t.id),get isScrambled(){return y()}})})),e(t=>{var g=$(),L=I();return t.e=z(m,g,t.e),t.t=z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),n(r,{get when(){return Z().length>0},get children(){var a=nt(),m=a.firstChild,T=m.nextSibling;return D(T,n(p,{get each(){return Z()},children:t=>n(oe,{state:t,get theme(){return u()},getBounds:()=>D$1(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s$1(t.id),get isScrambled(){return y()}})})),e(t=>{var g=$(),L=I();return t.e=z(m,g,t.e),t.t=z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),n(r,{get when(){return X().length>0},get children(){var a=ot(),m=a.firstChild,T=m.nextSibling;return D(T,n(p,{get each(){return X()},children:t=>n(oe,{state:t,get theme(){return u()},getBounds:()=>D$1(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s$1(t.id),get isScrambled(){return y()}})})),e(t=>{var g=$(),L=I();return t.e=z(m,g,t.e),t.t=z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),n(r,{get when(){return j().length>0},get children(){var a=at(),m=a.firstChild,T=m.nextSibling;return D(T,n(p,{get each(){return j()},children:t=>n(oe,{state:t,get theme(){return u()},getBounds:()=>D$1(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s$1(t.id),get isScrambled(){return y()}})})),e(t=>{var g=$(),L=I();return t.e=z(m,g,t.e),t.t=z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),n(r,{get when(){return s(()=>!!o().trim())()&&G().length+ee().length+z$1().length+Z().length+X().length+j().length===0},get children(){var a=rt(),m=a.firstChild,T=m.firstChild,t=T.nextSibling;t.nextSibling;return D(m,o,t),e(L=>A(m,"color",u().descriptionText)),a}})]}}),null),D(n$1,n(Lt,{get theme(){return u()}}),null),e(a=>{var m=u().background,T=`1px solid ${u().cardBorder}`,t=u().titleText,g=u().titleText,L=`1px solid ${u().cardBorder}`,B=u().cardBackground,te=u().titleText,be={...Ne(u()),"background-color":y()?"rgba(215, 95, 203, 0.2)":u().toggleBackground,"border-color":y()?"rgba(215, 95, 203, 0.5)":u().toggleBorder},Ge=Ne(u()),He=Ne(u());return m!==a.e&&A(n$1,"background-color",a.e=m),T!==a.t&&A(b,"border-bottom",a.t=T),t!==a.a&&w(Ue,"fill",a.a=t),g!==a.o&&A(Ve,"color",a.o=g),L!==a.i&&A(le,"border",a.i=L),B!==a.n&&A(le,"background-color",a.n=B),te!==a.s&&A(le,"color",a.s=te),a.h=z(pe,be,a.h),a.r=z(ge,Ge,a.r),a.d=z(he,He,a.d),a},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),e(()=>le.value=o()),n$1})()},cn=(e,c)=>{let h=document.createElement("div");h.setAttribute("data-react-grab-design-system","true"),h.style.position="relative",h.style.width="100%",h.style.minHeight="100vh";let C=h.attachShadow({mode:"open"});if(E){let p=document.createElement("style");p.textContent=E,C.appendChild(p);}let E$1=document.createElement("link");E$1.rel="stylesheet",E$1.href="https://fonts.googleapis.com/css2?family=Geist:wght@500&display=swap",C.appendChild(E$1);let M=document.createElement("div");M.style.width="100%",C.appendChild(M),e.appendChild(h);let F=t(()=>n(Bt,{}),M);return ()=>{F(),e.removeChild(h),c?.onDispose?.();}};v(["click","input"]);
|
|
10
|
+
export{cn as a};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';var chunkWMEHCQ5V_cjs=require('./chunk-WMEHCQ5V.cjs');/**
|
|
2
|
+
* @license MIT
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2025 Aiden Bai
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
var ke=chunkWMEHCQ5V_cjs.u('<button class="contain-layout flex items-center justify-center cursor-pointer interactive-scale touch-hitbox mr-1.5">'),ze=chunkWMEHCQ5V_cjs.u('<button class="contain-layout flex items-center justify-center cursor-pointer interactive-scale outline-none mx-0.5"><div><div>'),Ze=chunkWMEHCQ5V_cjs.u('<button class="contain-layout shrink-0 flex items-center justify-center cursor-pointer interactive-scale">'),Xe=chunkWMEHCQ5V_cjs.u('<div><div><div class="flex items-center min-w-0"><div><div class="relative overflow-visible min-w-0"></div></div><div><div class="relative overflow-visible min-w-0"></div></div><div class="relative shrink-0 overflow-visible">'),Le=e=>{let c=()=>e.snapEdge??"bottom",h=()=>{if(!e.isCollapsed)return "";let i={top:"rounded-t-none rounded-b-[10px]",bottom:"rounded-b-none rounded-t-[10px]",left:"rounded-l-none rounded-r-[10px]",right:"rounded-r-none rounded-l-[10px]"}[c()],N=c()==="top"||c()==="bottom"?"px-2 py-0.25":"px-0.25 py-2";return `${i} ${N}`},C=()=>{let i=e.isCollapsed;switch(c()){case "top":return i?"rotate-180":"rotate-0";case "bottom":return i?"rotate-0":"rotate-180";case "left":return i?"rotate-90":"-rotate-90";case "right":return i?"-rotate-90":"rotate-90";default:return "rotate-0"}},E=()=>(()=>{var i=ke();return chunkWMEHCQ5V_cjs.D(i,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.Fa,{size:14,get class(){return chunkWMEHCQ5V_cjs.Ba("transition-colors",chunkWMEHCQ5V_cjs.Ia(!!e.isActive&&!e.isCommentMode,!!e.isCommentMode))}})),i})(),M=()=>(()=>{var i=ke();return chunkWMEHCQ5V_cjs.D(i,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.Ga,{size:14,get class(){return chunkWMEHCQ5V_cjs.Ba("transition-colors",chunkWMEHCQ5V_cjs.Ia(!!e.isCommentMode,!!e.isActive&&!e.isCommentMode))}})),i})(),F=()=>(()=>{var i=ze(),N=i.firstChild,o=N.firstChild;return chunkWMEHCQ5V_cjs.e(P=>{var y=chunkWMEHCQ5V_cjs.Ba("relative w-5 h-3 rounded-full transition-colors",e.enabled?"bg-black":"bg-black/25"),q=chunkWMEHCQ5V_cjs.Ba("absolute top-0.5 w-2 h-2 rounded-full bg-white transition-transform",e.enabled?"left-2.5":"left-0.5");return y!==P.e&&chunkWMEHCQ5V_cjs.x(N,P.e=y),q!==P.t&&chunkWMEHCQ5V_cjs.x(o,P.t=q),P},{e:void 0,t:void 0}),i})(),p=()=>(()=>{var i=Ze();return chunkWMEHCQ5V_cjs.D(i,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.Ha,{get class(){return chunkWMEHCQ5V_cjs.Ba("text-[#B3B3B3] transition-transform duration-150",C())}})),i})();return (()=>{var i=Xe(),N=i.firstChild,o=N.firstChild,P=o.firstChild,y=P.firstChild,q=P.nextSibling,ae=q.firstChild,re=q.nextSibling;return chunkWMEHCQ5V_cjs.y(i,"click",e.onPanelClick,true),chunkWMEHCQ5V_cjs.y(i,"animationend",e.onAnimationEnd),chunkWMEHCQ5V_cjs.D(y,()=>e.selectButton??E()),chunkWMEHCQ5V_cjs.D(ae,()=>e.commentButton??M()),chunkWMEHCQ5V_cjs.D(re,()=>e.toggleButton??F()),chunkWMEHCQ5V_cjs.D(i,()=>e.collapseButton??p(),null),chunkWMEHCQ5V_cjs.D(i,()=>e.shakeTooltip,null),chunkWMEHCQ5V_cjs.e(s=>{var _=chunkWMEHCQ5V_cjs.Ba("flex items-center justify-center rounded-[10px] antialiased transition-all duration-150 ease-out relative overflow-visible [font-synthesis:none] filter-[drop-shadow(0px_1px_2px_#51515140)] [corner-shape:superellipse(1.25)]",chunkWMEHCQ5V_cjs.wa,!e.isCollapsed&&"py-1.5 gap-1.5 px-2",h(),e.isShaking&&"animate-shake"),u=e.transformOrigin,$=chunkWMEHCQ5V_cjs.Ba("grid transition-all duration-150 ease-out",e.isCollapsed?"grid-cols-[0fr] opacity-0":"grid-cols-[1fr] opacity-100"),I=chunkWMEHCQ5V_cjs.Ba("grid transition-all duration-150 ease-out",e.enabled?"grid-cols-[1fr] opacity-100":"grid-cols-[0fr] opacity-0"),U=chunkWMEHCQ5V_cjs.Ba("grid transition-all duration-150 ease-out",e.enabled?"grid-cols-[1fr] opacity-100":"grid-cols-[0fr] opacity-0");return _!==s.e&&chunkWMEHCQ5V_cjs.x(i,s.e=_),u!==s.t&&chunkWMEHCQ5V_cjs.A(i,"transform-origin",s.t=u),$!==s.a&&chunkWMEHCQ5V_cjs.x(N,s.a=$),I!==s.o&&chunkWMEHCQ5V_cjs.x(P,s.o=I),U!==s.i&&chunkWMEHCQ5V_cjs.x(q,s.i=U),s},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),i})()};chunkWMEHCQ5V_cjs.v(["click"]);var je=chunkWMEHCQ5V_cjs.u("<span style=font-size:10px;font-weight:500>/"),We=chunkWMEHCQ5V_cjs.u('<div style=display:flex;align-items:center;gap:8px;margin-top:8px><button style="display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;background-color:transparent;border-radius:4px;font-size:10px;cursor:pointer;flex-shrink:0;transition:all 0.15s ease"></button><input type=range min=0 style=flex:1;height:4px;cursor:pointer>'),Ke=chunkWMEHCQ5V_cjs.u("<div>"),Ye=chunkWMEHCQ5V_cjs.u('<div><div><div style=display:flex;flex-direction:column;gap:2px;flex:1;min-width:0><div style=display:flex;align-items:center;gap:6px><span style=font-size:13px;font-weight:500;line-height:1.3></span></div><span style=font-size:11px;line-height:1.3></span></div><div style=display:flex;align-items:center;gap:4px;flex-shrink:0><button style="display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;background-color:transparent;border-radius:4px;font-size:12px;cursor:pointer;transition:all 0.15s ease"></button><button title="Refresh this card"style="display:flex;align-items:center;justify-content:center;width:20px;height:20px;padding:0;background-color:transparent;border-radius:4px;font-size:12px;cursor:pointer;transition:all 0.15s ease">\u21BB</button></div></div><div>'),Je=chunkWMEHCQ5V_cjs.u('<div style="position:fixed;bottom:16px;right:16px;padding:6px 10px;border-radius:6px;font-family:ui-monospace, SFMono-Regular, monospace;font-size:12px;z-index:9999;backdrop-filter:blur(8px)"> FPS'),Qe=chunkWMEHCQ5V_cjs.u('<div style="padding:16px 24px"><span style="color:rgba(250, 204, 21, 0.8)">\u2605 Starred (<!>)</span><div>'),et=chunkWMEHCQ5V_cjs.u('<div style="padding:16px 24px"><span>Flows</span><div>'),tt=chunkWMEHCQ5V_cjs.u('<div style="padding:16px 24px"><span>Selection Label</span><div>'),nt=chunkWMEHCQ5V_cjs.u('<div style="padding:16px 24px"><span>Context Menu (Right-Click)</span><div>'),ot=chunkWMEHCQ5V_cjs.u('<div style="padding:16px 24px"><span>Toolbar</span><div>'),at=chunkWMEHCQ5V_cjs.u('<div style="padding:16px 24px"><span>Agent States</span><div>'),rt=chunkWMEHCQ5V_cjs.u('<div style="padding:48px 24px;text-align:center"><span style=font-size:14px>No states match "<!>"'),it=chunkWMEHCQ5V_cjs.u('<div style="display:flex;flex-direction:column;min-height:100vh;font-family:Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;transition:background-color 0.15s ease"><div style="display:flex;justify-content:space-between;align-items:center;padding:16px 24px"><div style=display:flex;align-items:center;gap:10px><svg width=24 height=24 viewBox="0 0 294 294"fill=none xmlns=http://www.w3.org/2000/svg><g clip-path=url(#clip0_logo)><mask id=mask0_logo maskUnits=userSpaceOnUse x=0 y=0 width=294 height=294 style=mask-type:luminance><path d="M294 0H0V294H294V0Z"fill=white></path></mask><g mask=url(#mask0_logo)><path d="M144.599 47.4924C169.712 27.3959 194.548 20.0265 212.132 30.1797C227.847 39.2555 234.881 60.3243 231.926 89.516C231.677 92.0069 231.328 94.5423 230.94 97.1058L228.526 110.14C228.517 110.136 228.505 110.132 228.495 110.127C228.486 110.165 228.479 110.203 228.468 110.24L216.255 105.741C216.256 105.736 216.248 105.728 216.248 105.723C207.915 103.125 199.421 101.075 190.82 99.5888L190.696 99.5588L173.526 97.2648L173.511 97.2631C173.492 97.236 173.467 97.2176 173.447 97.1905C163.862 96.2064 154.233 95.7166 144.599 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8624 138.391 86.939 147.193C90.8624 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245C115.749 197.245 115.758 197.246 115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.507 229.974L144.609 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.472 238.38C154.485 238.392 154.499 238.402 154.513 238.412L143.846 247.482L143.827 247.497C126.56 261.128 109.472 268.745 94.8019 268.745C88.5916 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3164 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3363 185.327 9.52301 167.51 9.52301 147.193C9.52301 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3164 60.3243 61.3496 39.2555 77.0657 30.1797C94.6494 20.0265 119.486 27.3959 144.599 47.4924ZM70.6423 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5176 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8516 207.742 83.0977 205.066 70.6423 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1787 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.9311 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.759 110.203C59.234 110.839 57.7378 111.475 56.27 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9104 147.193C67.822 135.23 63.7566 122.855 60.759 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.854 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.6291 47.6015 67.6975 64.5954 70.0424 87.9446L70.0416 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8263 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.773 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.29 38.512C183.321 38.512 169.34 44.4991 154.444 56.0153C163.93 64.9374 172.634 74.6557 180.462 85.064C193.375 86.6345 206.128 89.3102 218.584 93.0624C218.812 91.4325 219.003 89.8118 219.165 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.552 64.3097C138.104 70.2614 132.054 76.6306 126.443 83.3765C132.39 82.995 138.426 82.8046 144.552 82.8046C150.727 82.8046 156.778 83.0143 162.707 83.3765C157.08 76.6293 151.015 70.2596 144.552 64.3097Z"></path><path d="M144.598 47.4924C169.712 27.3959 194.547 20.0265 212.131 30.1797C227.847 39.2555 234.88 60.3243 231.926 89.516C231.677 92.0069 231.327 94.5423 230.941 97.1058L228.526 110.14L228.496 110.127C228.487 110.165 228.478 110.203 228.469 110.24L216.255 105.741L216.249 105.723C207.916 103.125 199.42 101.075 190.82 99.5888L190.696 99.5588L173.525 97.2648L173.511 97.263C173.492 97.236 173.468 97.2176 173.447 97.1905C163.863 96.2064 154.234 95.7166 144.598 95.7223C134.943 95.7162 125.295 96.219 115.693 97.2286C110.075 105.033 104.859 113.118 100.063 121.453C95.2426 129.798 90.8622 138.391 86.939 147.193C90.8622 155.996 95.2426 164.588 100.063 172.933C104.866 181.302 110.099 189.417 115.741 197.245L115.766 197.247L115.752 197.27L115.745 197.283L115.754 197.296L126.501 211.013L126.574 211.089C132.136 217.767 138.126 224.075 144.506 229.974L144.61 230.082L154.572 238.287C154.539 238.319 154.506 238.35 154.473 238.38L154.512 238.412L143.847 247.482L143.827 247.497C126.56 261.13 109.472 268.745 94.8018 268.745C88.5915 268.837 82.4687 267.272 77.0657 264.208C61.3496 255.132 54.3162 234.062 57.2707 204.871C57.528 202.307 57.8806 199.694 58.2904 197.054C28.3362 185.327 9.52298 167.51 9.52298 147.193C9.52298 129.042 24.2476 112.396 50.9901 100.375C53.3443 99.3163 55.7938 98.3058 58.2904 97.3526C57.8806 94.7023 57.528 92.0803 57.2707 89.516C54.3162 60.3243 61.3496 39.2555 77.0657 30.1797C94.6493 20.0265 119.486 27.3959 144.598 47.4924ZM70.6422 201.315C70.423 202.955 70.2229 204.566 70.0704 206.168C67.6686 229.567 72.5478 246.628 83.3615 252.988L83.5175 253.062C95.0399 259.717 114.015 254.426 134.782 238.38C125.298 229.45 116.594 219.725 108.764 209.314C95.8515 207.742 83.0977 205.066 70.6422 201.315ZM80.3534 163.438C77.34 171.677 74.8666 180.104 72.9484 188.664C81.1786 191.224 89.5657 193.247 98.0572 194.724L98.4618 194.813C95.2115 189.865 92.0191 184.66 88.931 179.378C85.8433 174.097 83.003 168.768 80.3534 163.438ZM60.7589 110.203C59.234 110.839 57.7378 111.475 56.2699 112.11C34.7788 121.806 22.3891 134.591 22.3891 147.193C22.3891 160.493 36.4657 174.297 60.7494 184.26C63.7439 171.581 67.8124 159.182 72.9103 147.193C67.822 135.23 63.7566 122.855 60.7589 110.203ZM98.4137 99.6404C89.8078 101.145 81.3075 103.206 72.9676 105.809C74.8539 114.203 77.2741 122.468 80.2132 130.554L80.3059 130.939C82.9938 125.6 85.8049 120.338 88.8834 115.008C91.9618 109.679 95.1544 104.569 98.4137 99.6404ZM94.9258 38.5215C90.9331 38.4284 86.9866 39.3955 83.4891 41.3243C72.629 47.6015 67.6975 64.5954 70.0424 87.9446L70.0415 88.2194C70.194 89.8208 70.3941 91.4325 70.6134 93.0624C83.0737 89.3364 95.8262 86.6703 108.736 85.0924C116.57 74.6779 125.28 64.9532 134.772 56.0249C119.877 44.5087 105.895 38.5215 94.9258 38.5215ZM205.737 41.3148C202.268 39.398 198.355 38.4308 194.394 38.5099L194.291 38.512C183.321 38.512 169.34 44.4991 154.443 56.0153C163.929 64.9374 172.634 74.6557 180.462 85.064C193.374 86.6345 206.129 89.3102 218.584 93.0624C218.813 91.4325 219.003 89.8118 219.166 88.2098C221.548 64.7099 216.65 47.6164 205.737 41.3148ZM144.551 64.3097C138.103 70.2614 132.055 76.6306 126.443 83.3765C132.389 82.995 138.427 82.8046 144.551 82.8046C150.727 82.8046 156.779 83.0143 162.707 83.3765C157.079 76.6293 151.015 70.2596 144.551 64.3097Z"fill=#FF40E0></path></g><mask id=mask1_logo maskUnits=userSpaceOnUse x=102 y=84 width=161 height=162 style=mask-type:luminance><path d="M235.282 84.827L102.261 112.259L129.693 245.28L262.714 217.848L235.282 84.827Z"fill=white></path></mask><g mask=url(#mask1_logo)><path d="M136.863 129.916L213.258 141.224C220.669 142.322 222.495 152.179 215.967 155.856L187.592 171.843L184.135 204.227C183.339 211.678 173.564 213.901 169.624 207.526L129.021 141.831C125.503 136.14 130.245 128.936 136.863 129.916Z"fill=#FF40E0 stroke=#FF40E0 stroke-width=0.817337 stroke-linecap=round stroke-linejoin=round></path></g></g><defs><clipPath id=clip0_logo><rect width=294 height=294 fill=white></rect></clipPath></defs></svg><span style=font-size:14px;font-weight:600;letter-spacing:-0.01em>Design System</span></div><div style=display:flex;align-items:center;gap:8px;flex:1;max-width:400px><input type=text placeholder="Search states\u2026"style="flex:1;padding:6px 12px;border-radius:6px;font-size:13px;font-family:inherit;outline:none;transition:all 0.15s ease"></div><div style=display:flex;align-items:center;gap:8px><button></button><button>\u21BB Refresh</button><button>'),ne=[{id:"idle-default",label:"Idle (Default)",description:'TagBadge + "Click to Copy"',component:"label",props:{tagName:"button",componentName:"Button",status:"idle",hasAgent:false}},{id:"idle-with-filepath",label:"Idle (With File Path)",description:"Clickable tag badge with open icon",component:"label",props:{tagName:"div",componentName:"Header",status:"idle",hasAgent:false,filePath:"src/components/Header.tsx"}},{id:"idle-context-menu-open",label:"Idle (Context Menu Open)",description:"Open indicator icon visible",component:"label",props:{tagName:"main",componentName:"Main",status:"idle",hasAgent:false,isContextMenuOpen:true,filePath:"src/components/Main.tsx"}},{id:"idle-multi-element",label:"Idle (Multi-Element)",description:'Shows "3 elements" instead of tag',component:"label",props:{tagName:"div",elementsCount:3,status:"idle",hasAgent:false}},{id:"idle-tag-only",label:"Idle (Tag Only)",description:"HTML tag without component name",component:"label",props:{tagName:"section",status:"idle",hasAgent:false}},{id:"idle-long-component-name",label:"Idle (Long Component)",description:"Very long component name truncation",component:"label",props:{tagName:"div",componentName:"SuperLongComponentNameThatShouldDefinitelyTruncate",status:"idle",hasAgent:false}},{id:"idle-long-tag-name",label:"Idle (Long Tag)",description:"Long custom element tag name",component:"label",props:{tagName:"my-super-long-custom-web-component-element",status:"idle",hasAgent:false}},{id:"idle-long-filepath",label:"Idle (Long File Path)",description:"Deeply nested file path truncation",component:"label",props:{tagName:"div",componentName:"Button",status:"idle",hasAgent:false,filePath:"src/components/ui/forms/inputs/buttons/primary/PrimaryButton.tsx"}},{id:"idle-large-element-count",label:"Idle (Large Count)",description:"Many elements selected (99)",component:"label",props:{tagName:"div",elementsCount:99,status:"idle",hasAgent:false}},{id:"idle-long-both",label:"Idle (Long Tag + Component)",description:"Both tag and component name long",component:"label",props:{tagName:"custom-interactive-element",componentName:"InteractiveCustomElementWrapper",status:"idle",hasAgent:false,filePath:"src/wrappers/InteractiveCustomElementWrapper.tsx"}},{id:"idle-agent-not-connected",label:"Idle (Agent Not Connected)",description:"Agent available but not connected",component:"label",props:{tagName:"div",componentName:"Panel",status:"idle",hasAgent:true,isAgentConnected:false}},{id:"prompt-empty",label:"Prompt (Empty)",description:"Input field ready for typing",component:"label",props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""}},{id:"prompt-with-text",label:"Prompt (With Text)",description:"Input field with user text",component:"label",props:{tagName:"form",componentName:"Form",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make the button larger"}},{id:"prompt-with-reply",label:"Prompt (Reply Mode)",description:'Shows "previously:" quote above input',component:"label",props:{tagName:"span",componentName:"Text",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"now make it blue",replyToPrompt:"make the button larger"}},{id:"prompt-multiline",label:"Prompt (Multi-line)",description:"Long text that wraps to multiple lines",component:"label",props:{tagName:"div",componentName:"Container",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make the button bigger and change the background color to a nice gradient from blue to purple"}},{id:"prompt-long-reply",label:"Prompt (Long Previous)",description:"Long previously: text that truncates",component:"label",props:{tagName:"button",componentName:"Submit",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"also add rounded corners",replyToPrompt:"make the button larger and add a hover effect with a nice shadow underneath it"}},{id:"pending-dismiss",label:"Pending Dismiss",description:'"Discard?" confirmation dialog',component:"label",props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isPromptMode:true,isPendingDismiss:true}},{id:"copying-simple",label:"Copying (Simple)",description:'"Grabbing..." with pulse animation',component:"label",props:{tagName:"input",componentName:"TextField",status:"copying",hasAgent:false,statusText:"Grabbing\u2026"}},{id:"copying-with-prompt",label:"Copying (With Prompt)",description:"Disabled input + stop button",component:"label",props:{tagName:"section",componentName:"Section",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add form validation",statusText:"Thinking\u2026"}},{id:"pending-abort",label:"Pending Abort",description:'"Discard?" during copy operation',component:"label",props:{tagName:"article",componentName:"Article",status:"copying",hasAgent:true,isPendingAbort:true}},{id:"copying-applying",label:"Copying (Applying)",description:'"Applying changes\u2026" status variant',component:"label",props:{tagName:"form",componentName:"LoginForm",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add validation",statusText:"Applying changes\u2026"}},{id:"copying-analyzing",label:"Copying (Analyzing)",description:'"Analyzing\u2026" status variant',component:"label",props:{tagName:"table",componentName:"DataTable",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"make columns sortable",statusText:"Analyzing\u2026"}},{id:"copying-long-input",label:"Copying (Long Input)",description:"Long prompt during copying",component:"label",props:{tagName:"div",componentName:"Modal",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add a close button in the top right corner with an X icon and make it dismiss the modal when clicked",statusText:"Thinking\u2026"}},{id:"copying-long-component",label:"Copying (Long Component)",description:"Long component name while copying",component:"label",props:{tagName:"div",componentName:"InteractiveDataVisualizationChart",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add tooltips",statusText:"Applying\u2026"}},{id:"copied-simple",label:"Copied (Simple)",description:'Checkmark + "Copied" text only',component:"label",props:{tagName:"nav",componentName:"Navigation",status:"copied",hasAgent:false,hasOnDismiss:false,hasOnUndo:false}},{id:"copied-with-actions",label:"Copied (With Actions)",description:"Undo + Keep buttons",component:"label",props:{tagName:"footer",componentName:"Footer",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true}},{id:"copied-with-followup",label:"Copied (With Follow-up)",description:"Follow-up input field below",component:"label",props:{tagName:"aside",componentName:"Sidebar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true}},{id:"copied-no-dismiss",label:"Copied (No Dismiss)",description:"Checkmark + status only, no Keep button",component:"label",props:{tagName:"span",componentName:"Badge",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied",hasOnDismiss:false}},{id:"copied-no-undo",label:"Copied (No Undo)",description:"Keep button but no Undo",component:"label",props:{tagName:"li",componentName:"ListItem",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Changes saved",supportsUndo:false}},{id:"copied-with-more-options",label:"Copied (More Options)",description:"Ellipsis button for context menu",component:"label",props:{tagName:"div",componentName:"Widget",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Updated",supportsUndo:true,showMoreOptions:true}},{id:"copied-custom-dismiss",label:"Copied (Custom Dismiss)",description:'"Accept" instead of "Keep"',component:"label",props:{tagName:"section",componentName:"Hero",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Ready",supportsUndo:true,dismissButtonText:"Accept"}},{id:"copied-followup-placeholder",label:"Copied (Follow-up Placeholder)",description:"Previous prompt as placeholder",component:"label",props:{tagName:"header",componentName:"TopBar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,previousPrompt:"make it bigger"}},{id:"agent-long-component",label:"Agent (Long Component)",description:"Long component name with prompt",component:"label",props:{tagName:"div",componentName:"VeryLongComponentNameThatShouldTruncateInTheUI",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""}},{id:"agent-long-status",label:"Agent (Long Status)",description:"Very long status text during operation",component:"label",props:{tagName:"form",componentName:"SearchForm",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add validation",statusText:"Analyzing component structure and dependencies\u2026"}},{id:"agent-long-previous",label:"Agent (Long Previous Prompt)",description:"Very long previous prompt truncation",component:"label",props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"and also fix the spacing",replyToPrompt:"make the card have rounded corners with a subtle shadow and increase the padding on all sides to make it feel more spacious"}},{id:"agent-copied-long-status",label:"Agent Copied (Long Status)",description:"Long completion status message",component:"label",props:{tagName:"section",componentName:"HeroSection",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Successfully applied 5 changes across 3 files",supportsUndo:true,supportsFollowUp:true}},{id:"agent-copied-long-placeholder",label:"Agent Copied (Long Placeholder)",description:"Long previous prompt as placeholder",component:"label",props:{tagName:"nav",componentName:"Navbar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,previousPrompt:"make the navbar sticky with a blur background effect and add smooth scroll behavior"}},{id:"agent-all-features",label:"Agent (All Features)",description:"Undo + Follow-up + More options",component:"label",props:{tagName:"div",componentName:"Dashboard",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true,previousPrompt:"add dark mode"}},{id:"agent-single-char-component",label:"Agent (Single Char)",description:"Single character component name",component:"label",props:{tagName:"i",componentName:"I",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""}},{id:"agent-numeric-component",label:"Agent (Numeric Name)",description:"Component name with numbers",component:"label",props:{tagName:"div",componentName:"Card2024V2",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"update the styles"}},{id:"error",label:"Error",description:"Error message with Retry + Ok",component:"label",props:{tagName:"dialog",componentName:"Modal",status:"error",error:"Failed to copy element"}},{id:"error-retry-only",label:"Error (Retry Only)",description:"Retry button, no Ok",component:"label",props:{tagName:"form",componentName:"Search",status:"error",error:"Connection timeout",hasOnRetry:true,hasOnAcknowledge:false}},{id:"error-ok-only",label:"Error (Ok Only)",description:"Ok button, no Retry",component:"label",props:{tagName:"div",componentName:"Alert",status:"error",error:"Operation cancelled",hasOnRetry:false,hasOnAcknowledge:true}},{id:"error-long-message",label:"Error (Long Message)",description:"Truncated error > 50 chars",component:"label",props:{tagName:"section",componentName:"Dashboard",status:"error",error:"The server returned an unexpected error response. Please check your network connection and try again later."}},{id:"error-long-component",label:"Error (Long Component)",description:"Error with long component name",component:"label",props:{tagName:"div",componentName:"VeryLongComponentNameThatMightOverflow",status:"error",error:"Component not found"}},{id:"error-no-buttons",label:"Error (No Buttons)",description:"Error with no action buttons",component:"label",props:{tagName:"span",componentName:"Text",status:"error",error:"Unknown error occurred",hasOnRetry:false,hasOnAcknowledge:false}},{id:"context-menu-basic",label:"Context Menu (Basic)",description:"Copy, Copy HTML options",component:"context-menu",props:{tagName:"button",componentName:"Button",hasFilePath:false}},{id:"context-menu-with-open",label:"Context Menu (With Open)",description:"Includes Open option with file path",component:"context-menu",props:{tagName:"div",componentName:"Header",hasFilePath:true,filePath:"src/components/Header.tsx"}},{id:"context-menu-tag-only",label:"Context Menu (Tag Only)",description:"HTML tag without component name",component:"context-menu",props:{tagName:"section",hasFilePath:false}},{id:"context-menu-long-component",label:"Context Menu (Long Name)",description:"Long component name in header",component:"context-menu",props:{tagName:"div",componentName:"SuperLongComponentNameThatNeedsTruncation",hasFilePath:true,filePath:"src/components/SuperLongComponentNameThatNeedsTruncation.tsx"}},{id:"context-menu-long-tag",label:"Context Menu (Long Tag)",description:"Long custom element tag",component:"context-menu",props:{tagName:"my-custom-interactive-web-component",hasFilePath:false}},{id:"toolbar-default",label:"Toolbar (Default)",description:"Inactive, enabled state",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true}},{id:"toolbar-active",label:"Toolbar (Active)",description:"Selection mode active",component:"toolbar",props:{isToolbarActive:true,isToolbarEnabled:true}},{id:"toolbar-disabled",label:"Toolbar (Disabled)",description:"Toggle switch off",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:false}},{id:"toolbar-active-disabled",label:"Toolbar (Active + Disabled)",description:"Active but toggle off",component:"toolbar",props:{isToolbarActive:true,isToolbarEnabled:false}},{id:"toolbar-comment-mode",label:"Toolbar (Comment Mode)",description:"Comment selection mode active",component:"toolbar",props:{isToolbarActive:true,isToolbarCommentMode:true,isToolbarEnabled:true}},{id:"toolbar-collapsed-bottom",label:"Toolbar (Collapsed Bottom)",description:"Minimized, snapped to bottom edge",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"bottom"}},{id:"toolbar-collapsed-top",label:"Toolbar (Collapsed Top)",description:"Minimized, snapped to top edge",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"top"}},{id:"toolbar-collapsed-left",label:"Toolbar (Collapsed Left)",description:"Minimized, snapped to left edge",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"left"}},{id:"toolbar-collapsed-right",label:"Toolbar (Collapsed Right)",description:"Minimized, snapped to right edge",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"right"}},{id:"anim-copy-flow",label:"Copy Flow",description:"idle \u2192 copying \u2192 \u2713 copied",component:"label",props:{tagName:"button",componentName:"Button",status:"idle",hasAgent:false},animationSequence:[{props:{tagName:"button",componentName:"Button",status:"idle",hasAgent:false},durationMs:1500},{props:{tagName:"button",componentName:"Button",status:"copying",hasAgent:false,statusText:"Grabbing\u2026"},durationMs:2e3},{props:{tagName:"button",componentName:"Button",status:"copied",hasAgent:false,hasOnDismiss:false,hasOnUndo:false,showMoreOptions:true},durationMs:2e3}]},{id:"anim-agent-flow",label:"Agent Flow",description:"prompt \u2192 thinking \u2192 done",component:"label",props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},animationSequence:[{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:1e3},{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make it"},durationMs:400},{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make it bigger"},durationMs:800},{props:{tagName:"div",componentName:"Card",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"make it bigger",statusText:"Thinking\u2026"},durationMs:1500},{props:{tagName:"div",componentName:"Card",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"make it bigger",statusText:"Applying changes\u2026"},durationMs:1500},{props:{tagName:"div",componentName:"Card",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2500}]},{id:"anim-error-flow",label:"Error Flow",description:"idle \u2192 copying \u2192 error",component:"label",props:{tagName:"form",componentName:"Form",status:"idle",hasAgent:false},animationSequence:[{props:{tagName:"form",componentName:"Form",status:"idle",hasAgent:false},durationMs:1500},{props:{tagName:"form",componentName:"Form",status:"copying",hasAgent:false,statusText:"Grabbing\u2026"},durationMs:2e3},{props:{tagName:"form",componentName:"Form",status:"error",error:"Failed to copy element",hasOnRetry:true,hasOnAcknowledge:true},durationMs:2500}]},{id:"anim-discard-flow",label:"Discard Prompt",description:"prompt \u2192 pending dismiss \u2192 cancelled",component:"label",props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"change color"},animationSequence:[{props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"change color"},durationMs:1500},{props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isPromptMode:true,isPendingDismiss:true},durationMs:2e3},{props:{tagName:"header",componentName:"Header",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"change color"},durationMs:1500}]},{id:"anim-abort-flow",label:"Abort Operation",description:"copying \u2192 pending abort \u2192 idle",component:"label",props:{tagName:"section",componentName:"Section",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add animation",statusText:"Thinking\u2026"},animationSequence:[{props:{tagName:"section",componentName:"Section",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"add animation",statusText:"Thinking\u2026"},durationMs:1500},{props:{tagName:"section",componentName:"Section",status:"copying",hasAgent:true,isPendingAbort:true},durationMs:2e3},{props:{tagName:"section",componentName:"Section",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:1500}]},{id:"anim-toolbar-toggle",label:"Toolbar Toggle",description:"inactive \u2192 active \u2192 inactive",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:true},animationSequence:[{props:{isToolbarActive:false,isToolbarEnabled:true},durationMs:1500},{props:{isToolbarActive:true,isToolbarEnabled:true},durationMs:2e3},{props:{isToolbarActive:false,isToolbarEnabled:true},durationMs:1500}]},{id:"anim-toolbar-enable",label:"Toolbar Enable",description:"disabled \u2192 enabled \u2192 disabled",component:"toolbar",props:{isToolbarActive:false,isToolbarEnabled:false},animationSequence:[{props:{isToolbarActive:false,isToolbarEnabled:false},durationMs:1500},{props:{isToolbarActive:false,isToolbarEnabled:true},durationMs:2e3},{props:{isToolbarActive:false,isToolbarEnabled:false},durationMs:1500}]},{id:"anim-followup-flow",label:"Follow-up",description:"copied \u2192 follow-up \u2192 new result",component:"label",props:{tagName:"nav",componentName:"Navbar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},animationSequence:[{props:{tagName:"nav",componentName:"Navbar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3},{props:{tagName:"nav",componentName:"Navbar",status:"copying",hasAgent:true,isAgentConnected:true,inputValue:"also make it sticky",statusText:"Thinking\u2026"},durationMs:2e3},{props:{tagName:"nav",componentName:"Navbar",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied 2 changes",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3}]},{id:"anim-undo-flow",label:"Undo Flow",description:"copied \u2192 undo \u2192 idle",component:"label",props:{tagName:"div",componentName:"Modal",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true,showMoreOptions:true},animationSequence:[{props:{tagName:"div",componentName:"Modal",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Applied changes",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3},{props:{tagName:"div",componentName:"Modal",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:2e3}]},{id:"anim-retry-flow",label:"Retry After Error",description:"error \u2192 retry \u2192 \u2713 copied",component:"label",props:{tagName:"table",componentName:"DataTable",status:"error",error:"Connection timeout",hasOnRetry:true,hasOnAcknowledge:true},animationSequence:[{props:{tagName:"table",componentName:"DataTable",status:"error",error:"Connection timeout",hasOnRetry:true,hasOnAcknowledge:true},durationMs:2e3},{props:{tagName:"table",componentName:"DataTable",status:"copying",statusText:"Retrying\u2026"},durationMs:1500},{props:{tagName:"table",componentName:"DataTable",status:"copied",hasOnDismiss:false,hasOnUndo:false,showMoreOptions:true},durationMs:2e3}]},{id:"anim-agent-error-flow",label:"Agent Error",description:"prompt \u2192 thinking \u2192 error",component:"label",props:{tagName:"aside",componentName:"Sidebar",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},animationSequence:[{props:{tagName:"aside",componentName:"Sidebar",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:1e3},{props:{tagName:"aside",componentName:"Sidebar",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"make it collapsible"},durationMs:800},{props:{tagName:"aside",componentName:"Sidebar",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Thinking\u2026"},durationMs:2e3},{props:{tagName:"aside",componentName:"Sidebar",status:"error",hasAgent:true,error:"Agent failed to respond",hasOnRetry:true,hasOnAcknowledge:true},durationMs:2500}]},{id:"anim-acknowledge-error",label:"Acknowledge Error",description:"error \u2192 ok \u2192 dismissed",component:"label",props:{tagName:"ul",componentName:"List",status:"error",error:"Element not found",hasOnRetry:true,hasOnAcknowledge:true},animationSequence:[{props:{tagName:"ul",componentName:"List",status:"error",error:"Element not found",hasOnRetry:true,hasOnAcknowledge:true},durationMs:2500},{props:{tagName:"ul",componentName:"List",status:"idle"},durationMs:2e3}]},{id:"anim-connect-agent",label:"Agent Connect",description:"disconnected \u2192 connected \u2192 prompt",component:"label",props:{tagName:"footer",componentName:"Footer",status:"idle",hasAgent:true,isAgentConnected:false},animationSequence:[{props:{tagName:"footer",componentName:"Footer",status:"idle",hasAgent:true,isAgentConnected:false},durationMs:2e3},{props:{tagName:"footer",componentName:"Footer",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:""},durationMs:2500}]},{id:"anim-context-menu-flow",label:"Context Menu",description:"context menu options",component:"context-menu",props:{tagName:"article",componentName:"BlogPost",hasFilePath:false},animationSequence:[{props:{tagName:"article",componentName:"BlogPost",hasFilePath:false},durationMs:2e3},{props:{tagName:"article",componentName:"BlogPost",hasFilePath:true,filePath:"src/components/BlogPost.tsx"},durationMs:2500},{props:{tagName:"article",componentName:"BlogPost",hasFilePath:false},durationMs:2e3}]},{id:"anim-toolbar-collapse-bottom",label:"Toolbar Collapse (Bottom)",description:"expanded \u2192 collapsed \u2192 expanded",component:"toolbar",props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"bottom"},animationSequence:[{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"bottom"},durationMs:2e3},{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"bottom"},durationMs:2e3},{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"bottom"},durationMs:2e3}]},{id:"anim-toolbar-collapse-right",label:"Toolbar Collapse (Right)",description:"expanded \u2192 collapsed \u2192 expanded",component:"toolbar",props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"right"},animationSequence:[{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"right"},durationMs:2e3},{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:true,toolbarSnapEdge:"right"},durationMs:2e3},{props:{isToolbarActive:true,isToolbarEnabled:true,isToolbarCollapsed:false,toolbarSnapEdge:"right"},durationMs:2e3}]},{id:"anim-copy-with-file",label:"Copy with File Path",description:"idle \u2192 copying \u2192 \u2713 copied",component:"label",props:{tagName:"span",componentName:"Badge",status:"idle",filePath:"src/components/Badge.tsx"},animationSequence:[{props:{tagName:"span",componentName:"Badge",status:"idle",filePath:"src/components/Badge.tsx"},durationMs:1500},{props:{tagName:"span",componentName:"Badge",status:"copying",filePath:"src/components/Badge.tsx",statusText:"Grabbing\u2026"},durationMs:2e3},{props:{tagName:"span",componentName:"Badge",status:"copied",filePath:"src/components/Badge.tsx",hasOnDismiss:false,hasOnUndo:false,showMoreOptions:true},durationMs:2e3}]},{id:"anim-multiple-elements",label:"Multiple Elements",description:"1 \u2192 5 selected \u2192 copying \u2192 \u2713 copied",component:"label",props:{tagName:"li",componentName:"ListItem",status:"idle",elementsCount:1},animationSequence:[{props:{tagName:"li",componentName:"ListItem",status:"idle",elementsCount:1},durationMs:2e3},{props:{tagName:"li",componentName:"ListItem",status:"idle",elementsCount:5},durationMs:2e3},{props:{tagName:"li",componentName:"ListItem",status:"copying",elementsCount:5,statusText:"Grabbing 5\u2026"},durationMs:2e3},{props:{tagName:"li",componentName:"ListItem",status:"copied",elementsCount:5,hasOnDismiss:false,hasOnUndo:false,showMoreOptions:true},durationMs:2e3}]},{id:"anim-long-operation",label:"Long Operation",description:"copying with status updates",component:"label",props:{tagName:"main",componentName:"Dashboard",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Starting\u2026"},animationSequence:[{props:{tagName:"main",componentName:"Dashboard",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"redesign the layout"},durationMs:1500},{props:{tagName:"main",componentName:"Dashboard",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Analyzing\u2026"},durationMs:1500},{props:{tagName:"main",componentName:"Dashboard",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Generating code\u2026"},durationMs:1500},{props:{tagName:"main",componentName:"Dashboard",status:"copying",hasAgent:true,isAgentConnected:true,statusText:"Applying changes\u2026"},durationMs:1500},{props:{tagName:"main",componentName:"Dashboard",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3}]},{id:"anim-reply-to-prompt",label:"Reply to Prompt",description:"completed \u2192 edit with previous",component:"label",props:{tagName:"div",componentName:"Card",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsFollowUp:true,showMoreOptions:true},animationSequence:[{props:{tagName:"div",componentName:"Card",status:"copied",hasAgent:true,isAgentConnected:true,statusText:"Done",supportsUndo:true,supportsFollowUp:true,showMoreOptions:true},durationMs:2e3},{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"",previousPrompt:"make it bigger",replyToPrompt:"make it bigger"},durationMs:2500},{props:{tagName:"div",componentName:"Card",status:"idle",hasAgent:true,isAgentConnected:true,isPromptMode:true,inputValue:"also add shadow",previousPrompt:"make it bigger",replyToPrompt:"make it bigger"},durationMs:1500}]}],st=300,lt=48,dt=16,pt=8,ut="12px 14px",ct=16;var mt="5px 10px",gt=6,ht=6,bt=12,ft=11,Ct=12;var Be=6,xt=12,Oe="0.15s ease",$e="react-grab-design-system-theme",De="react-grab-design-system-starred",Tt=e=>{let c="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",h="";for(let C=0;C<e;C++)h+=c.charAt(Math.floor(Math.random()*c.length));return h},Nt=e=>{let c=h=>h&&h+Tt(20+Math.floor(Math.random()*30));return {...e,tagName:c(e.tagName),componentName:c(e.componentName),filePath:c(e.filePath),statusText:c(e.statusText),error:c(e.error),inputValue:c(e.inputValue),replyToPrompt:c(e.replyToPrompt),previousPrompt:c(e.previousPrompt),dismissButtonText:c(e.dismissButtonText)}},vt=()=>{try{return localStorage.getItem($e)!=="light"}catch{return true}},At=e=>{try{localStorage.setItem($e,e?"dark":"light");}catch{}},yt=()=>{try{let e=localStorage.getItem(De);return e?new Set(JSON.parse(e)):new Set}catch{return new Set}},St=e=>{try{localStorage.setItem(De,JSON.stringify([...e]));}catch{}},wt={background:"#000000",cardBackground:"rgba(255, 255, 255, 0.05)",cardContentBackground:"rgba(0, 0, 0, 0.6)",cardBorder:"rgba(255, 255, 255, 0.1)",cardShadow:"0 8px 30px rgba(0, 0, 0, 0.3)",titleText:"#ffffff",descriptionText:"rgba(255, 255, 255, 0.5)",targetBackground:"rgba(215, 95, 203, 0.1)",targetBorder:"rgba(215, 95, 203, 0.3)",targetText:"rgba(215, 95, 203, 0.7)",toggleBackground:"rgba(255, 255, 255, 0.05)",toggleBorder:"rgba(255, 255, 255, 0.1)",toggleText:"#ffffff",sectionTitle:"rgba(255, 255, 255, 0.4)"},Mt={background:"#f5f5f5",cardBackground:"#ffffff",cardContentBackground:"rgba(0, 0, 0, 0.03)",cardBorder:"rgba(0, 0, 0, 0.1)",cardShadow:"0 8px 30px rgba(0, 0, 0, 0.08)",titleText:"#0a0a0a",descriptionText:"rgba(0, 0, 0, 0.5)",targetBackground:"rgba(215, 95, 203, 0.08)",targetBorder:"rgba(215, 95, 203, 0.3)",targetText:"rgba(215, 95, 203, 0.7)",toggleBackground:"#ffffff",toggleBorder:"rgba(0, 0, 0, 0.1)",toggleText:"#0a0a0a",sectionTitle:"rgba(0, 0, 0, 0.4)"},Ne=e=>({display:"flex","align-items":"center",gap:`${gt}px`,padding:mt,"background-color":e.toggleBackground,border:`1px solid ${e.toggleBorder}`,"border-radius":`${ht}px`,color:e.toggleText,"font-size":`${bt}px`,"font-weight":"500",cursor:"pointer",transition:`all ${Oe}`}),Pt=e=>({display:"flex","flex-direction":"column","background-color":e.cardBackground,"border-radius":`${pt}px`,border:`1px solid ${e.cardBorder}`,"box-shadow":e.cardShadow,overflow:"hidden","aspect-ratio":"1",transition:`all ${Oe}`}),_t=e=>({display:"flex","justify-content":"space-between","align-items":"flex-start",padding:ut,"border-bottom":`1px solid ${e.cardBorder}`}),Et=e=>({flex:"1",display:"flex","flex-direction":"column","align-items":"center","justify-content":"center",padding:`${ct}px`,position:"relative","background-color":e.cardContentBackground}),kt=e=>({width:"100%",height:`${lt}px`,"background-color":e.targetBackground,border:`1px solid ${e.targetBorder}`,"border-radius":`${Be}px`,display:"flex","align-items":"center","justify-content":"center",color:e.targetText,"font-size":`${xt}px`,"font-family":"ui-monospace, SFMono-Regular, monospace"}),oe=e=>{let[c,h]=chunkWMEHCQ5V_cjs.d(false),[C,E]=chunkWMEHCQ5V_cjs.d(false),[M,F]=chunkWMEHCQ5V_cjs.d(0),p,i=()=>!!e.state.animationSequence?.length,N=()=>e.state.animationSequence?.length??0,o=()=>{let s;return i()&&e.state.animationSequence?s=e.state.animationSequence[M()].props:s=e.state.props,e.isScrambled?Nt(s):s},P=()=>{if(!e.state.animationSequence)return;let s=e.state.animationSequence,_=s[M()];p=setTimeout(()=>{let u=(M()+1)%s.length;F(u),C()&&P();},_.durationMs);},y=s=>{s.stopPropagation(),C()?(E(false),p&&(clearTimeout(p),p=void 0)):(E(true),P());},q=s=>{let _=s.target;F(parseInt(_.value,10)),C()&&(E(false),p&&(clearTimeout(p),p=void 0));};chunkWMEHCQ5V_cjs.l(()=>{p&&clearTimeout(p);});let ae=s=>{s.stopPropagation(),h(true),F(0),E(false),p&&(clearTimeout(p),p=void 0),e.onRefresh(),queueMicrotask(()=>h(false));},re=s=>{s.stopPropagation(),e.onToggleStar();};return (()=>{var s=Ye(),_=s.firstChild,u=_.firstChild,$=u.firstChild,I=$.firstChild,U=$.nextSibling,W=u.nextSibling,D=W.firstChild,Y=D.nextSibling,ie=_.nextSibling;return chunkWMEHCQ5V_cjs.D(I,()=>e.state.label),chunkWMEHCQ5V_cjs.D($,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return i()},get children(){var r=je(),k=r.firstChild;return chunkWMEHCQ5V_cjs.D(r,()=>M()+1,k),chunkWMEHCQ5V_cjs.D(r,N,null),chunkWMEHCQ5V_cjs.e(R=>chunkWMEHCQ5V_cjs.A(r,"color",e.theme.descriptionText)),r}}),null),chunkWMEHCQ5V_cjs.D(U,()=>e.state.description),chunkWMEHCQ5V_cjs.D(u,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return i()},get children(){var r=We(),k=r.firstChild,R=k.nextSibling;return k.$$click=y,chunkWMEHCQ5V_cjs.D(k,()=>C()?"\u23F8":"\u25B6"),R.$$input=q,chunkWMEHCQ5V_cjs.e(x=>{var G=`1px solid ${e.theme.cardBorder}`,z=e.theme.titleText,Z=C()?"Pause":"Play",X=N()-1,j=e.theme.titleText;return G!==x.e&&chunkWMEHCQ5V_cjs.A(k,"border",x.e=G),z!==x.t&&chunkWMEHCQ5V_cjs.A(k,"color",x.t=z),Z!==x.a&&chunkWMEHCQ5V_cjs.w(k,"title",x.a=Z),X!==x.o&&chunkWMEHCQ5V_cjs.w(R,"max",x.o=X),j!==x.i&&chunkWMEHCQ5V_cjs.A(R,"accent-color",x.i=j),x},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0}),chunkWMEHCQ5V_cjs.e(()=>R.value=M()),r}}),null),D.$$click=re,chunkWMEHCQ5V_cjs.D(D,()=>e.isStarred?"\u2605":"\u2606"),Y.$$click=ae,chunkWMEHCQ5V_cjs.D(ie,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return !c()},get children(){return [chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return e.state.component!=="toolbar"},get children(){var r=Ke();return chunkWMEHCQ5V_cjs.C(k=>e.registerCell(k),r),chunkWMEHCQ5V_cjs.D(r,()=>e.getTargetDisplayText()),chunkWMEHCQ5V_cjs.e(k=>chunkWMEHCQ5V_cjs.z(r,kt(e.theme),k)),r}}),chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return e.state.component==="label"},get children(){return chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.Ca,{get tagName(){return o().tagName},get componentName(){return o().componentName},get elementsCount(){return o().elementsCount},get selectionBounds(){return e.getBounds()},get mouseX(){return chunkWMEHCQ5V_cjs.s(()=>!!e.getBounds())()?e.getBounds().x+e.getBounds().width/2:void 0},visible:true,get status(){return o().status},get hasAgent(){return o().hasAgent},get isAgentConnected(){return o().isAgentConnected},get isPromptMode(){return o().isPromptMode},get inputValue(){return o().inputValue},get replyToPrompt(){return o().replyToPrompt},get statusText(){return o().statusText},get isPendingDismiss(){return o().isPendingDismiss},get isPendingAbort(){return o().isPendingAbort},get error(){return o().error},get isContextMenuOpen(){return o().isContextMenuOpen},get supportsUndo(){return o().supportsUndo},get supportsFollowUp(){return o().supportsFollowUp},get filePath(){return o().filePath},get dismissButtonText(){return o().dismissButtonText},get previousPrompt(){return o().previousPrompt},get onOpen(){return o().filePath?()=>{}:void 0},onInputChange:()=>{},onSubmit:()=>{},onToggleExpand:()=>{},onConfirmDismiss:()=>{},onCancelDismiss:()=>{},onConfirmAbort:()=>{},onCancelAbort:()=>{},get onAcknowledgeError(){return o().hasOnAcknowledge!==false?()=>{}:void 0},get onRetry(){return o().hasOnRetry!==false?()=>{}:void 0},get onDismiss(){return o().hasOnDismiss!==false?()=>{}:void 0},get onUndo(){return o().hasOnUndo!==false?()=>{}:void 0},onFollowUpSubmit:()=>{},onAbort:()=>{},get onShowContextMenu(){return o().showMoreOptions?()=>{}:void 0}})}}),chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return e.state.component==="context-menu"},get children(){return chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.Ea,{get position(){return chunkWMEHCQ5V_cjs.s(()=>!!e.getBounds())()?{x:e.getBounds().x+e.getBounds().width/2,y:e.getBounds().y+e.getBounds().height}:null},get selectionBounds(){return e.getBounds()??null},get tagName(){return o().tagName},get componentName(){return o().componentName},get hasFilePath(){return o().hasFilePath??false},get actions(){return [{id:"copy",label:"Copy",shortcut:"C",onAction:()=>{}},{id:"screenshot",label:"Screenshot",shortcut:"S",onAction:()=>{}},{id:"copy-html",label:"Copy HTML",onAction:()=>{}},{id:"open",label:"Open",shortcut:"O",enabled:o().hasFilePath??false,onAction:()=>{}},{id:"comment",label:"Comment",shortcut:"Enter",onAction:()=>{}}]},onDismiss:()=>{},onHide:()=>{}})}}),chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return e.state.component==="toolbar"},get children(){return chunkWMEHCQ5V_cjs.n(Le,{get isActive(){return o().isToolbarActive??false},get isCommentMode(){return o().isToolbarCommentMode??false},get enabled(){return o().isToolbarEnabled??true},get isCollapsed(){return o().isToolbarCollapsed},get snapEdge(){return o().toolbarSnapEdge}})}})]}})),chunkWMEHCQ5V_cjs.e(r=>{var k=Pt(e.theme),R=_t(e.theme),x=e.theme.titleText,G=e.theme.descriptionText,z=`1px solid ${e.isStarred?"rgba(250, 204, 21, 0.5)":e.theme.cardBorder}`,Z=e.isStarred?"rgba(250, 204, 21, 1)":e.theme.descriptionText,X=e.isStarred?"Unstar this card":"Star this card",j=`1px solid ${e.theme.cardBorder}`,ee=e.theme.descriptionText,K=Et(e.theme);return r.e=chunkWMEHCQ5V_cjs.z(s,k,r.e),r.t=chunkWMEHCQ5V_cjs.z(_,R,r.t),x!==r.a&&chunkWMEHCQ5V_cjs.A(I,"color",r.a=x),G!==r.o&&chunkWMEHCQ5V_cjs.A(U,"color",r.o=G),z!==r.i&&chunkWMEHCQ5V_cjs.A(D,"border",r.i=z),Z!==r.n&&chunkWMEHCQ5V_cjs.A(D,"color",r.n=Z),X!==r.s&&chunkWMEHCQ5V_cjs.w(D,"title",r.s=X),j!==r.h&&chunkWMEHCQ5V_cjs.A(Y,"border",r.h=j),ee!==r.r&&chunkWMEHCQ5V_cjs.A(Y,"color",r.r=ee),r.d=chunkWMEHCQ5V_cjs.z(ie,K,r.d),r},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),s})()},Lt=e=>{let[c,h]=chunkWMEHCQ5V_cjs.d(0),C=0,E=performance.now(),M,F=()=>{C++;let p=performance.now(),i=p-E;i>=1e3&&(h(Math.round(C*1e3/i)),C=0,E=p),M=requestAnimationFrame(F);};return chunkWMEHCQ5V_cjs.k(()=>{M=requestAnimationFrame(F);}),chunkWMEHCQ5V_cjs.l(()=>{M&&cancelAnimationFrame(M);}),(()=>{var p=Je(),i=p.firstChild;return chunkWMEHCQ5V_cjs.D(p,c,i),chunkWMEHCQ5V_cjs.e(N=>{var o=e.theme.cardBackground,P=`1px solid ${e.theme.cardBorder}`,y=e.theme.titleText;return o!==N.e&&chunkWMEHCQ5V_cjs.A(p,"background-color",N.e=o),P!==N.t&&chunkWMEHCQ5V_cjs.A(p,"border",N.t=P),y!==N.a&&chunkWMEHCQ5V_cjs.A(p,"color",N.a=y),N},{e:void 0,t:void 0,a:void 0}),p})()},Bt=()=>{let[e,c]=chunkWMEHCQ5V_cjs.d(new Map),[h,C]=chunkWMEHCQ5V_cjs.d(0),[E,M]=chunkWMEHCQ5V_cjs.d(vt()),[F,p]=chunkWMEHCQ5V_cjs.d(false),[i,N]=chunkWMEHCQ5V_cjs.d(yt()),[o,P]=chunkWMEHCQ5V_cjs.d(""),[y,q]=chunkWMEHCQ5V_cjs.d(false),ae=()=>{p(true),c(new Map),queueMicrotask(()=>p(false));},re=()=>{M(n=>{let b=!n;return At(b),b});},s=n=>{N(b=>{let v=new Set(b);return v.has(n)?v.delete(n):v.add(n),St(v),v});},_=n=>i().has(n),u=()=>E()?wt:Mt,$=()=>({display:"block",color:u().sectionTitle,"font-size":`${ft}px`,"font-weight":"600","text-transform":"uppercase","letter-spacing":"0.05em","margin-bottom":`${Ct}px`}),I=()=>({display:"grid","grid-template-columns":`repeat(auto-fill, minmax(${st}px, 1fr))`,gap:`${dt}px`}),U=n=>n.component==="toolbar"?"":n.props.elementsCount&&n.props.elementsCount>1?`<${n.props.elementsCount} elements>`:`<${n.props.componentName||n.props.tagName||"element"} />`,W=(n,b)=>{c(v=>{let se=new Map(v);return se.set(n,b),se}),C(v=>v+1);},D=n=>{h();let b=e().get(n);if(!b)return;let v=b.getBoundingClientRect();return {x:v.x,y:v.y,width:v.width,height:v.height,borderRadius:`${Be}px`,transform:""}},Y,ie,r=()=>{C(n=>n+1);},k=n=>{ie=n,Y=new ResizeObserver(()=>{C(b=>b+1);}),Y.observe(n),window.addEventListener("scroll",r,true),n.addEventListener("scroll",r,true);};chunkWMEHCQ5V_cjs.l(()=>{Y?.disconnect(),window.removeEventListener("scroll",r,true),ie?.removeEventListener("scroll",r,true);});let R=n=>!!n.animationSequence?.length,x=n=>{let b=o().toLowerCase().trim();return b?n.label.toLowerCase().includes(b)||n.description.toLowerCase().includes(b)||n.id.toLowerCase().includes(b)||(n.props.componentName?.toLowerCase().includes(b)??false)||(n.props.tagName?.toLowerCase().includes(b)??false):true},G=()=>ne.filter(n=>i().has(n.id)&&x(n)),z=()=>ne.filter(n=>n.component==="label"&&!n.props.hasAgent&&!R(n)&&x(n)),Z=()=>ne.filter(n=>n.component==="context-menu"&&!R(n)&&x(n)),X=()=>ne.filter(n=>n.component==="toolbar"&&!R(n)&&x(n)),j=()=>ne.filter(n=>n.component==="label"&&n.props.hasAgent&&!R(n)&&x(n)),ee=()=>ne.filter(n=>R(n)&&x(n)),K=n=>()=>{c(b=>{let v=new Map(b);return v.delete(n),v});};return (()=>{var n=it(),b=n.firstChild,v=b.firstChild,se=v.firstChild,Re=se.firstChild,Fe=Re.firstChild,Ie=Fe.nextSibling,Ue=Ie.firstChild,Ve=se.nextSibling,ve=v.nextSibling,le=ve.firstChild,qe=ve.nextSibling,pe=qe.firstChild,ge=pe.nextSibling,he=ge.nextSibling;return chunkWMEHCQ5V_cjs.C(k,n),le.$$input=a=>P(a.currentTarget.value),pe.$$click=()=>q(a=>!a),chunkWMEHCQ5V_cjs.D(pe,()=>y()?"\u2713 Scramble":"Scramble"),ge.$$click=ae,he.$$click=re,chunkWMEHCQ5V_cjs.D(he,()=>E()?"Dark":"Light"),chunkWMEHCQ5V_cjs.D(n,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return !F()},get children(){return [chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return G().length>0},get children(){var a=Qe(),m=a.firstChild,T=m.firstChild,t=T.nextSibling;t.nextSibling;var L=m.nextSibling;return chunkWMEHCQ5V_cjs.D(m,()=>G().length,t),chunkWMEHCQ5V_cjs.D(L,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.p,{get each(){return G()},children:B=>chunkWMEHCQ5V_cjs.n(oe,{state:B,get theme(){return u()},getBounds:()=>D(B.id),registerCell:te=>W(B.id,te),get onRefresh(){return K(B.id)},getTargetDisplayText:()=>U(B),get isStarred(){return _(B.id)},onToggleStar:()=>s(B.id),get isScrambled(){return y()}})})),chunkWMEHCQ5V_cjs.e(B=>{var te={...$()},be=I();return B.e=chunkWMEHCQ5V_cjs.z(m,te,B.e),B.t=chunkWMEHCQ5V_cjs.z(L,be,B.t),B},{e:void 0,t:void 0}),a}}),chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return ee().length>0},get children(){var a=et(),m=a.firstChild,T=m.nextSibling;return chunkWMEHCQ5V_cjs.D(T,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.p,{get each(){return ee()},children:t=>chunkWMEHCQ5V_cjs.n(oe,{state:t,get theme(){return u()},getBounds:()=>D(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s(t.id),get isScrambled(){return y()}})})),chunkWMEHCQ5V_cjs.e(t=>{var g=$(),L=I();return t.e=chunkWMEHCQ5V_cjs.z(m,g,t.e),t.t=chunkWMEHCQ5V_cjs.z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return z().length>0},get children(){var a=tt(),m=a.firstChild,T=m.nextSibling;return chunkWMEHCQ5V_cjs.D(T,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.p,{get each(){return z()},children:t=>chunkWMEHCQ5V_cjs.n(oe,{state:t,get theme(){return u()},getBounds:()=>D(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s(t.id),get isScrambled(){return y()}})})),chunkWMEHCQ5V_cjs.e(t=>{var g=$(),L=I();return t.e=chunkWMEHCQ5V_cjs.z(m,g,t.e),t.t=chunkWMEHCQ5V_cjs.z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return Z().length>0},get children(){var a=nt(),m=a.firstChild,T=m.nextSibling;return chunkWMEHCQ5V_cjs.D(T,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.p,{get each(){return Z()},children:t=>chunkWMEHCQ5V_cjs.n(oe,{state:t,get theme(){return u()},getBounds:()=>D(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s(t.id),get isScrambled(){return y()}})})),chunkWMEHCQ5V_cjs.e(t=>{var g=$(),L=I();return t.e=chunkWMEHCQ5V_cjs.z(m,g,t.e),t.t=chunkWMEHCQ5V_cjs.z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return X().length>0},get children(){var a=ot(),m=a.firstChild,T=m.nextSibling;return chunkWMEHCQ5V_cjs.D(T,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.p,{get each(){return X()},children:t=>chunkWMEHCQ5V_cjs.n(oe,{state:t,get theme(){return u()},getBounds:()=>D(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s(t.id),get isScrambled(){return y()}})})),chunkWMEHCQ5V_cjs.e(t=>{var g=$(),L=I();return t.e=chunkWMEHCQ5V_cjs.z(m,g,t.e),t.t=chunkWMEHCQ5V_cjs.z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return j().length>0},get children(){var a=at(),m=a.firstChild,T=m.nextSibling;return chunkWMEHCQ5V_cjs.D(T,chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.p,{get each(){return j()},children:t=>chunkWMEHCQ5V_cjs.n(oe,{state:t,get theme(){return u()},getBounds:()=>D(t.id),registerCell:g=>W(t.id,g),get onRefresh(){return K(t.id)},getTargetDisplayText:()=>U(t),get isStarred(){return _(t.id)},onToggleStar:()=>s(t.id),get isScrambled(){return y()}})})),chunkWMEHCQ5V_cjs.e(t=>{var g=$(),L=I();return t.e=chunkWMEHCQ5V_cjs.z(m,g,t.e),t.t=chunkWMEHCQ5V_cjs.z(T,L,t.t),t},{e:void 0,t:void 0}),a}}),chunkWMEHCQ5V_cjs.n(chunkWMEHCQ5V_cjs.r,{get when(){return chunkWMEHCQ5V_cjs.s(()=>!!o().trim())()&&G().length+ee().length+z().length+Z().length+X().length+j().length===0},get children(){var a=rt(),m=a.firstChild,T=m.firstChild,t=T.nextSibling;t.nextSibling;return chunkWMEHCQ5V_cjs.D(m,o,t),chunkWMEHCQ5V_cjs.e(L=>chunkWMEHCQ5V_cjs.A(m,"color",u().descriptionText)),a}})]}}),null),chunkWMEHCQ5V_cjs.D(n,chunkWMEHCQ5V_cjs.n(Lt,{get theme(){return u()}}),null),chunkWMEHCQ5V_cjs.e(a=>{var m=u().background,T=`1px solid ${u().cardBorder}`,t=u().titleText,g=u().titleText,L=`1px solid ${u().cardBorder}`,B=u().cardBackground,te=u().titleText,be={...Ne(u()),"background-color":y()?"rgba(215, 95, 203, 0.2)":u().toggleBackground,"border-color":y()?"rgba(215, 95, 203, 0.5)":u().toggleBorder},Ge=Ne(u()),He=Ne(u());return m!==a.e&&chunkWMEHCQ5V_cjs.A(n,"background-color",a.e=m),T!==a.t&&chunkWMEHCQ5V_cjs.A(b,"border-bottom",a.t=T),t!==a.a&&chunkWMEHCQ5V_cjs.w(Ue,"fill",a.a=t),g!==a.o&&chunkWMEHCQ5V_cjs.A(Ve,"color",a.o=g),L!==a.i&&chunkWMEHCQ5V_cjs.A(le,"border",a.i=L),B!==a.n&&chunkWMEHCQ5V_cjs.A(le,"background-color",a.n=B),te!==a.s&&chunkWMEHCQ5V_cjs.A(le,"color",a.s=te),a.h=chunkWMEHCQ5V_cjs.z(pe,be,a.h),a.r=chunkWMEHCQ5V_cjs.z(ge,Ge,a.r),a.d=chunkWMEHCQ5V_cjs.z(he,He,a.d),a},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0}),chunkWMEHCQ5V_cjs.e(()=>le.value=o()),n})()},cn=(e,c)=>{let h=document.createElement("div");h.setAttribute("data-react-grab-design-system","true"),h.style.position="relative",h.style.width="100%",h.style.minHeight="100vh";let C=h.attachShadow({mode:"open"});if(chunkWMEHCQ5V_cjs.E){let p=document.createElement("style");p.textContent=chunkWMEHCQ5V_cjs.E,C.appendChild(p);}let E=document.createElement("link");E.rel="stylesheet",E.href="https://fonts.googleapis.com/css2?family=Geist:wght@500&display=swap",C.appendChild(E);let M=document.createElement("div");M.style.width="100%",C.appendChild(M),e.appendChild(h);let F=chunkWMEHCQ5V_cjs.t(()=>chunkWMEHCQ5V_cjs.n(Bt,{}),M);return ()=>{F(),e.removeChild(h),c?.onDispose?.();}};chunkWMEHCQ5V_cjs.v(["click","input"]);
|
|
10
|
+
exports.a=cn;
|