@donotdev/adv-comps 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Crawl/Crawl.d.ts +13 -64
- package/dist/components/Crawl/Crawl.d.ts.map +1 -1
- package/dist/components/Crawl/Crawl.js +18 -220
- package/dist/components/Crawl/CrawlContent.d.ts +32 -0
- package/dist/components/Crawl/CrawlContent.d.ts.map +1 -0
- package/dist/components/Crawl/CrawlContent.js +118 -0
- package/dist/components/Roadmap/Roadmap.css +248 -0
- package/dist/components/Roadmap/Roadmap.d.ts +15 -0
- package/dist/components/Roadmap/Roadmap.d.ts.map +1 -0
- package/dist/components/Roadmap/Roadmap.js +16 -0
- package/dist/components/Roadmap/RoadmapContent.d.ts +28 -0
- package/dist/components/Roadmap/RoadmapContent.d.ts.map +1 -0
- package/dist/components/Roadmap/RoadmapContent.js +47 -0
- package/dist/components/Roadmap/index.d.ts +3 -0
- package/dist/components/Roadmap/index.d.ts.map +1 -0
- package/dist/components/Roadmap/index.js +2 -0
- package/dist/components/StackedCards/StackedCards.css +10 -18
- package/dist/components/StackedCards/StackedCardsContent.d.ts +8 -0
- package/dist/components/StackedCards/StackedCardsContent.d.ts.map +1 -1
- package/dist/components/StackedCards/StackedCardsContent.js +10 -21
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";var Zt=Object.defineProperty;var ke=(e,t)=>()=>(e&&(t=e(e=0)),t);var Se=(e,t)=>{for(var r in t)Zt(e,r,{get:t[r],enumerable:!0})};var gt={};Se(gt,{default:()=>gr});import{useRef as sr,useState as Re,useEffect as ut}from"react";import{cn as Ve,GAP_VARIANT as lr,Stack as dr}from"@donotdev/components";import{observeElement as cr,addEventListener as mr}from"@donotdev/components";import{jsx as Me}from"react/jsx-runtime";function pr({items:e,renderItem:t,className:r,itemClassName:o,gap:i=lr.MEDIUM,speed:n=48,direction:c="auto",pauseOnHover:m=!0,ariaLabel:f,reducedMotion:u="respect",behavior:l="auto",pauseOnFocusWithin:s=!0,easing:p="ease-in-out"}){let y=typeof document<"u"&&document.dir==="rtl",S=typeof window<"u"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1,w=c;c==="auto"&&(w=y?"right":"left");let h=w==="up"||w==="down",x=u==="ignore"||!S,R=l;l==="auto"&&(R=e.length<=20?"bounce":"infinite");let C=sr(null),[I,P]=Re(8e3),[J,K]=Re(0),[B,N]=Re(!0),[se,g]=Re(!1);ut(()=>C.current?cr(C.current,G=>N(G.isIntersecting),{threshold:0}):void 0,[]),ut(()=>{if(!C.current||typeof window>"u"||!x)return;let H=C.current,G=H.querySelector("[data-marquee-track]");if(!G)return;let ue=()=>{let j=h?H.clientHeight:H.clientWidth,re=h?G.scrollHeight:G.scrollWidth,Q=Math.max(0,re-j);if(g(Q>0),Q>0){let pe=Math.min(512,Math.max(12,n));if(R==="bounce"){let le=Q*2/pe*1e3;P(Math.max(2e3,Math.floor(le))),K(Q)}else{let le=(re+pt[i])/pe*1e3;P(Math.max(2e3,Math.floor(le))),K(re+pt[i])}}else P(0),K(0)};if(requestAnimationFrame(ue),typeof ResizeObserver<"u"){let j=new ResizeObserver(()=>{requestAnimationFrame(ue)});return j.observe(H),()=>j.disconnect()}else return mr(window,"resize",()=>requestAnimationFrame(ue))},[e,n,h,x,R,i]);let M=()=>h?w==="up"?"normal":"reverse":w==="left"?"normal":"reverse",O=()=>R==="infinite"&&se?[...e,...e].map((H,G)=>Me("div",{className:Ve("dndev-flex-shrink-0",o),children:t(H,G%e.length)},G)):e.map((H,G)=>Me("div",{className:Ve("dndev-flex-shrink-0",o),children:t(H,G)},G));return Me("div",{ref:C,className:Ve("dndev-relative dndev-overflow-hidden",m&&"group",s&&"focus-within:group",r),role:"region","aria-label":f||`${R==="infinite"?"Scrolling":"Bouncing"} content with ${e.length} items`,"aria-live":x&&B?"off":"polite",children:Me(dr,{className:"marquee-track",direction:h?"column":"row",align:h?void 0:"center",gap:i,"data-marquee-track":!0,"data-marquee-direction":h?"vertical":"horizontal","data-marquee-behavior":R,"data-marquee-reduced-motion":!x,style:{"--marquee-duration":x&&B&&se?`${I}ms`:"0ms","--marquee-direction":M(),"--marquee-distance":h?`${J}px`:`${J}px`,"--marquee-easing":ur[p],animationPlayState:!x||!B?"paused":"running"},children:O()})})}var pt,ur,gr,vt=ke(()=>{"use strict";pt={none:0,tight:8,medium:16,large:32},ur={linear:"linear","ease-in-out":"ease-in-out","ease-out":"ease-out"};gr=pr});var Mt={};Se(Mt,{default:()=>pa});import{ChevronLeft as aa,ChevronRight as na,Play as oa,Pause as ia}from"lucide-react";import{useRef as Ue,useState as ne,useEffect as Ke,useCallback as $,useMemo as Qe,memo as sa}from"react";import{cn as Ie,observeElement as la,addEventListener as da,isRTLLanguage as ca,Stack as ma}from"@donotdev/components";import{Fragment as ga,jsx as L,jsxs as Je}from"react/jsx-runtime";function ua({items:e,renderItem:t,className:r,slideClassName:o,showArrows:i=!0,showDots:n=!1,showProgress:c=!0,autoplay:m=!0,autoplayInterval:f=5e3,transition:u="slide",infinite:l=!0,slidesToShow:s=1,swipeable:p=!0,momentum:y=!0,onActiveChange:S,onSlideClick:w,keyExtractor:h,"aria-label":x="Premium carousel",pauseOnHover:R=!0,pauseOnInvisible:C=!0,showPlayPause:I=!0,lazy:P=!1,preloadDistance:J=1}){if(!e||e.length===0)return L(ma,{align:"center",justify:"center",className:Ie("dndev-relative",r),children:L("div",{style:{color:"var(--muted-foreground)"},children:"No items to display"})});let K=Ue(null),B=Ue(null),[N,se]=ne(0),[g,M]=ne(m),[O,H]=ne(!1),[G,ue]=ne(!0),[X,j]=ne({isDragging:!1,startX:0,currentX:0,startTime:0,velocity:0}),re=Ue(null),[Q,pe]=ne("idle"),[le,nt]=ne(!1);Ke(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");return nt(a.matches),da(a,"change",v=>{nt(v.matches)})},[]);let Ce=Qe(()=>({tension:.3,friction:.8,mass:1}),[]),Bt=Qe(()=>{if(!l||e.length<=s)return e;let a=Math.max(s,2),d=e.slice(-a),v=e.slice(0,a);return[...d,...e,...v]},[e,l,s]),V=Qe(()=>100/s,[s]),Ge=$(a=>{if(!l)return a;let d=Math.max(s,2);return((a-d)%e.length+e.length)%e.length},[l,e.length,s]),ot=$(a=>{if(!l)return!0;let d=Math.max(s,2),v=e.length+d-1;return a>=d&&a<=v},[l,e.length,s]),Xe=$((a,d,v=0)=>{if(!y)return;let k=parseFloat(a.style.transform.replace("translateX(","").replace("%)",""))||0,z=v,_=Date.now(),U=()=>{let ge=(Date.now()-_)/1e3,xe=k-d,Qt=-Ce.tension*xe,Jt=-Ce.friction*z,jt=(Qt+Jt)/Ce.mass;z+=jt*ge,k+=z*ge,a.style.transform=`translateX(${k}%)`,Math.abs(xe)>.1||Math.abs(z)>.1?requestAnimationFrame(U):(a.style.transform=`translateX(${d}%)`,a.style.transition="none")};requestAnimationFrame(U)},[y,Ce]),it=$((a,d,v)=>{switch(u){case"fade":a.style.transition=`opacity ${v} ease-in-out`,a.style.opacity="0",setTimeout(()=>{a.style.transform=`translateX(${d}%)`,a.style.opacity="1"},parseInt(v)/2);break;case"scale":a.style.transition=`transform ${v} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,a.style.transform=`translateX(${d}%) scale(0.95)`,setTimeout(()=>{a.style.transform=`translateX(${d}%) scale(1)`},parseInt(v)/2);break;case"parallax":a.style.transition=`transform ${v} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,a.style.transform=`translateX(${d}%)`,a.querySelectorAll('[role="group"]').forEach((z,_)=>{let U=z,q=(_-Math.abs(d)/V)*.1;U.style.transform=`translateX(${q}%)`});break;default:a.style.transition=`transform ${v} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,a.style.transform=`translateX(${d}%)`;break}},[u,V]),Y=$((a,d=!1)=>{if(Q!=="idle"&&!d)return;let v=B.current;if(!v)return;let k=a;if(l){let q=Math.max(s,2);k=a+q,a>=e.length?k=q+a%e.length:a<0&&(k=q+e.length+a)}let z=-(k*V),_=d||le?"0ms":"300ms";d||pe("transitioning"),it(v,z,_);let U=Ge(k);if(se(U),S?.(U),l&&!d&&ot(k)){let q=Math.max(s,2);(k<=q-1||k>=e.length+q)&&(v.dataset.needsReset="true",v.dataset.resetIndex=k<=q-1?(e.length+q-1).toString():q.toString())}},[l,e.length,V,s,Ge,S,le,Q,ot,it]),te=$(()=>{Y(N+1)},[N,Y]),de=$(()=>{Y(N-1)},[N,Y]),qe=$(()=>{M(!0)},[]),Oe=$(()=>{M(!1)},[]);Ke(()=>{if(!(!g||O||!G||e.length<=1))return re.current=setTimeout(()=>{te()},f),()=>{re.current&&clearTimeout(re.current)}},[g,O,G,N,te,f,e.length]),Ke(()=>!C||!K.current?void 0:la(K.current,d=>ue(d.isIntersecting),{threshold:.1}),[C]);let Vt=$(a=>P?Math.abs(a-N)<=J:!0,[P,N,J]),Ft=$(a=>{if(!p||Q!=="idle")return;let d=a.touches[0];d&&j({isDragging:!0,startX:d.clientX,currentX:d.clientX,startTime:Date.now(),velocity:0})},[p,Q]),Yt=$(a=>{if(!X.isDragging)return;let d=a.touches[0];if(!d)return;let v=d.clientX-X.startX,k=Date.now()-X.startTime,z=k>0?v/k:0,_=B.current;if(_&&Math.abs(v)>10){a.preventDefault();let U=-(N*V),q=v/(K.current?.clientWidth||1)*100,ge=Math.min(Math.abs(v)/200,.8),xe=q*(1-ge);_.style.transition="none",_.style.transform=`translateX(${U+xe}%)`}j(U=>({...U,currentX:d.clientX,velocity:z}))},[X.isDragging,X.startX,X.startTime,N,V]),_t=$(()=>{if(!X.isDragging)return;let a=X.currentX-X.startX,d=X.velocity,v=50;if(y&&Math.abs(d)>.5){let k=B.current;if(k){let z=d>0?N-1:N+1,_=-(z*V);Xe(k,_,d*100),Y(z,!0)}}else if(Math.abs(a)>v)a>0?de():te();else{let k=B.current;if(k&&y){let z=-(N*V);Xe(k,z,d*100)}else Y(N,!0)}j({isDragging:!1,startX:0,currentX:0,startTime:0,velocity:0})},[X,y,te,de,Y,N,Xe,V]),Ut=$(()=>{pe("idle");let a=B.current;if(a?.dataset.needsReset==="true"){let d=parseInt(a.dataset.resetIndex||"0");a.style.transition="none",a.style.transform=`translateX(-${d*V}%)`,delete a.dataset.needsReset,delete a.dataset.resetIndex}},[V]),Kt=$(a=>{let d=ca();switch(a.key){case"ArrowLeft":a.preventDefault(),d?te():de();break;case"ArrowRight":a.preventDefault(),d?de():te();break;case"Home":a.preventDefault(),Y(0);break;case"End":a.preventDefault(),Y(e.length-1);break;case" ":a.preventDefault(),g?Oe():qe();break}},[te,de,Y,e.length,g,qe,Oe]);return Je("div",{ref:K,className:Ie("dndev-relative dndev-overflow-hidden",r),onMouseEnter:()=>R&&H(!0),onMouseLeave:()=>R&&H(!1),onKeyDown:Kt,tabIndex:0,role:"region","aria-label":x,"aria-live":"polite",children:[L("div",{className:"dndev-overflow-hidden",children:L("div",{ref:B,className:Ie("dndev-flex",X.isDragging&&"dndev-pointer-events-none",Q==="transitioning"&&"dndev-pointer-events-none"),style:{cursor:X.isDragging?"grabbing":void 0},onTransitionEnd:Ut,onTouchStart:Ft,onTouchMove:Yt,onTouchEnd:_t,children:Bt.map((a,d)=>{let v=Ge(d),k=v===N,z=Vt(v);return L("div",{className:Ie("dndev-flex-shrink-0",o),style:{width:`${V}%`,opacity:z?1:0},role:"group","aria-roledescription":"slide","aria-label":`Slide ${v+1} of ${e.length}`,onClick:()=>w?.(a,v),children:z&&t(a,v,k)},h?h(a,v):`${v}-${d}`)})})}),i&&e.length>1&&Je(ga,{children:[L("button",{className:"dndev-absolute dndev-z-breadcrumbs dndev-flex dndev-items-center dndev-justify-center",style:{left:"1rem",top:"50%",transform:"translateY(-50%)",width:"2.5rem",height:"2.5rem",opacity:0,transition:"opacity var(--dur-normal)",borderRadius:"9999px",backgroundColor:"rgb(from var(--background) r g b / 0.8)",border:"1px solid var(--border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",a.currentTarget.style.opacity="1"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:de,"aria-label":"Previous slide",children:L(aa,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})}),L("button",{className:"dndev-absolute dndev-z-breadcrumbs dndev-flex dndev-items-center dndev-justify-center",style:{right:"1rem",top:"50%",transform:"translateY(-50%)",width:"2.5rem",height:"2.5rem",opacity:0,transition:"opacity var(--dur-normal)",borderRadius:"9999px",backgroundColor:"rgb(from var(--background) r g b / 0.8)",border:"1px solid var(--border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",a.currentTarget.style.opacity="1"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:te,"aria-label":"Next slide",children:L(na,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})})]}),m&&I&&L("button",{className:"dndev-absolute dndev-z-breadcrumbs dndev-flex dndev-items-center dndev-justify-center",style:{insetBlockStart:"var(--gap-md)",insetInlineEnd:"var(--gap-md)",width:"2rem",height:"2rem",opacity:0,transition:"opacity var(--dur-normal)",borderRadius:"9999px",backgroundColor:"rgb(from var(--background) r g b / 0.8)",border:"1px solid var(--border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",a.currentTarget.style.opacity="1"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:()=>g?Oe():qe(),"aria-label":g?"Pause carousel":"Play carousel",children:g?L(ia,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}}):L(oa,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})}),n&&e.length>1&&L("div",{className:"dndev-absolute dndev-flex dndev-gap-sm dndev-z-breadcrumbs",style:{bottom:"1rem",left:"50%",transform:"translateX(-50%)"},children:e.map((a,d)=>L("button",{style:{width:d===N?"1.5rem":"0.5rem",height:"0.5rem",borderRadius:"9999px",transition:"all 0.3s",backgroundColor:d===N?"var(--foreground)":"rgb(from var(--foreground) r g b / 0.3)"},onMouseEnter:v=>{d!==N&&(v.currentTarget.style.backgroundColor="rgb(from var(--foreground) r g b / 0.5)")},onMouseLeave:v=>{d!==N&&(v.currentTarget.style.backgroundColor="rgb(from var(--foreground) r g b / 0.3)")},onClick:()=>Y(d),"aria-label":`Go to slide ${d+1}`},d))}),c&&m&&L("div",{className:"dndev-absolute dndev-left-0",style:{bottom:0,right:0,height:"0.25rem",backgroundColor:"rgb(from var(--foreground) r g b / 0.2)"},children:L("div",{style:{height:"100%",width:`${(N+1)/e.length*100}%`,backgroundColor:"var(--foreground)",transition:"width 0.1s linear"}})}),Je("div",{className:"dndev-sr-only","aria-live":"polite","aria-atomic":"true",children:["Slide ",N+1," of ",e.length]})]})}var Rt,pa,Et=ke(()=>{"use strict";Rt=sa(ua);Rt.displayName="Carousel";pa=Rt});var zt={};Se(zt,{default:()=>Sa});import{memo as wa}from"react";import{Card as Ca,Text as Ze}from"@donotdev/components";import{cn as xa}from"@donotdev/components";import{Fragment as Na,jsx as we,jsxs as Pt}from"react/jsx-runtime";var ka,Sa,At=ke(()=>{"use strict";ka=wa(function({title:t,items:r,gridCols:o=2,className:i,ariaLabel:n}){let c={1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"},m=Array.isArray(r)?r:[];return Array.isArray(r),Pt("div",{className:xa("dndev-marketing-stack",i),"aria-label":n,children:[t&&we(Ze,{as:"h3",level:"h2",children:t}),we("div",{className:"dndev-marketing-dndev-grid","data-cols":o,children:m.map((f,u)=>we(Ca,{title:f.useCase,subtitle:f.bestFit,content:Pt(Na,{children:[we(Ze,{variant:"muted",level:"body",children:f.dndev}),we(Ze,{variant:"muted",level:"small",className:"italic",children:f.reason})]})},u))})]})}),Sa=ka});var Ot={};Se(Ot,{default:()=>pn});import{memo as He}from"react";import{cn as rt,Card as rn,Icon as an,Stack as nn}from"@donotdev/components";import{jsx as A,jsxs as me}from"react/jsx-runtime";var ie,Xt,on,qt,sn,ln,dn,cn,mn,un,pn,Wt=ke(()=>{"use strict";ie={desktop:{cardWidth:300,cardHeight:200,cardGap:32,drop:80,startX:0,containerWidth:1024,containerHeight:380},mobile:{cardWidth:320,cardHeight:200,verticalGap:24,containerWidth:400,curveOffset:40}},Xt=He(({className:e,density:t,onClick:r,icon:o,title:i,subtitle:n,description:c})=>me(rn,{className:rt("dndev-min-w-0",r?"cursor-pointer":"",e),style:{height:"200px",padding:"var(--gap-md)",transform:"scale(1)",transition:"transform var(--duration-normal)"},onMouseEnter:m=>{m.currentTarget.style.transform="scale(0.80)"},onMouseLeave:m=>{m.currentTarget.style.transform="scale(1)"},onClick:r,children:[me(nn,{direction:"row",align:"center",gap:"medium",style:{marginBottom:"var(--gap-md)"},children:[A(on,{icon:o}),A("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,lineHeight:1.25,color:"var(--foreground)"},children:i})]}),n&&A("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",lineHeight:1.625,marginBottom:"var(--gap-md)"},children:n}),c&&A("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--accent)",transition:"color var(--duration-normal)",cursor:"pointer"},onMouseEnter:m=>{m.currentTarget.style.color="rgb(from var(--accent) r g b / 0.8)"},onMouseLeave:m=>{m.currentTarget.style.color="var(--accent)"},children:c})]})),on=He(({icon:e})=>e?A("div",{className:"dndev-inline-flex dndev-flex-shrink-0 dndev-items-center dndev-justify-center",style:{width:"var(--touch-target)",height:"var(--touch-target)",borderRadius:"var(--radius-lg)",background:"linear-gradient(to bottom right, rgb(from var(--primary) r g b / 0.1), rgb(from var(--primary) r g b / 0.2))",color:"var(--primary)",transition:"background var(--duration-normal)"},onMouseEnter:t=>{t.currentTarget.style.background="linear-gradient(to bottom right, rgb(from var(--primary) r g b / 0.2), rgb(from var(--primary) r g b / 0.3))"},onMouseLeave:t=>{t.currentTarget.style.background="linear-gradient(to bottom right, rgb(from var(--primary) r g b / 0.1), rgb(from var(--primary) r g b / 0.2))"},children:A(an,{icon:e,ariaHidden:!0})}):null),qt=He(function({className:t,startX:r,startY:o,endX:i,endY:n,index:c,isMobile:m=!1}){let f,u,l,s,p;if(m){let{curveOffset:y}=ie.mobile,S=(o+n)/2,w=r+y;u=Math.abs(w-r)+40,l=Math.abs(n-o)+40,s=Math.min(r,w)-20,p=Math.min(o,n)-20;let h=r-s,x=o-p,R=i-s,C=n-p,I=w-s,P=S-p;f=`M ${h} ${x} Q ${I} ${P} ${R} ${C}`}else{let y=(r+i)/2,S=o+(n-o)*.3;u=Math.abs(i-r)+40,l=Math.abs(n-o)+40,s=Math.min(r,i)-20,p=Math.min(o,n)-20;let w=r-s,h=o-p,x=i-s,R=n-p,C=y-s,I=S-p;f=`M ${w} ${h} Q ${C} ${I-20} ${x} ${R}`}return me("svg",{className:rt(t),style:{left:s,top:p,width:u,height:l,zIndex:1},viewBox:`0 0 ${u} ${l}`,role:"img",focusable:"false",children:[A("path",{d:f,fill:"none",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"8,8",className:"text-accent waterfall-connector",style:{animationDelay:`${c*.2}s`}}),A("circle",{cx:r-s,cy:o-p,r:"6",fill:"currentColor",className:"text-accent"}),A("circle",{cx:i-s,cy:n-p,r:"6",fill:"currentColor",className:"text-accent"})]})}),sn=e=>{let{cardWidth:t,cardGap:r,drop:o,startX:i}=ie.desktop;return{x:i+e*(t+r),y:e*o}},ln=e=>{let{cardHeight:t,verticalGap:r}=ie.mobile;return{x:0,y:e*(t+r)}},dn=e=>{let{cardWidth:t,cardGap:r,drop:o}=ie.desktop;return e===0?{startX:t,startY:o/2,endX:t+r+t/2,endY:o}:e===1?{startX:2*t+r,startY:1.5*o,endX:2.5*t+2*r,endY:2*o}:null},cn=e=>{let{cardWidth:t,cardHeight:r,verticalGap:o}=ie.mobile;return e===0?{startX:t,startY:.66*r,endX:t,endY:1.33*r+o}:e===1?{startX:t,startY:1.66*r+o,endX:t,endY:2.33*r+2*o}:null},mn=e=>{let{cardHeight:t,verticalGap:r}=ie.mobile;return(e-1)*(t+r)+t+40},un=He(({items:e,className:t,connectorClassName:r,density:o="comfortable",ariaLabel:i,direction:n="horizontal"})=>{if(!e?.length)return null;if(n==="descending"){let{desktop:m,mobile:f}=ie;return me("section",{className:rt("dndev-w-full dndev-overflow-hidden",t),children:[me("div",{className:"dndev-hidden dndev-relative ",style:{width:`${m.containerWidth}px`,height:`${m.containerHeight}px`},children:[A("ol",{className:"dndev-relative","aria-label":i??"Process steps",children:e.map((u,l)=>{let{x:s,y:p}=sn(l);return A("li",{className:"list-none dndev-absolute waterfall-card",style:{left:`${s}px`,top:`${p}px`,width:`${m.cardWidth}px`},children:A(Xt,{density:o,onClick:u.onClick,icon:u.icon,title:u.title,subtitle:u.subtitle,description:u.description})},`cascade-${l}-${u.title}`)})}),e.map((u,l)=>{if(l>=e.length-1)return null;let s=dn(l);return s?A(qt,{startX:s.startX,startY:s.startY,endX:s.endX,endY:s.endY,className:r,index:l,isMobile:!1},`desktop-connector-${l}`):null})]}),A("div",{className:" dndev-w-full px-[var(--content-padding)]",children:me("div",{className:"dndev-relative dndev-mx-auto",style:{width:`${f.containerWidth}px`,height:`${mn(e.length)}px`},children:[A("ol",{className:"dndev-relative","aria-label":i??"Process steps",children:e.map((u,l)=>{let{x:s,y:p}=ln(l);return A("li",{className:"list-none dndev-absolute",style:{left:`${s}px`,top:`${p}px`,width:`${f.cardWidth}px`},children:A(Xt,{density:o,onClick:u.onClick,icon:u.icon,title:u.title,subtitle:u.subtitle,description:u.description})},`mobile-${l}-${u.title}`)})}),e.map((u,l)=>{if(l>=e.length-1)return null;let s=cn(l);return s?A(qt,{startX:s.startX,startY:s.startY,endX:s.endX,endY:s.endY,className:r,index:l,isMobile:!0},`mobile-connector-${l}`):null})]})})]})}return null}),pn=un});import{useEffect as We,useRef as lt,useState as Ne,useMemo as Te,isValidElement as er}from"react";import{cn as tr}from"@donotdev/components";import{isClient as dt}from"@donotdev/core";import{createElement as ve}from"react";function fe(e,t={}){let{allowedTags:r=["p","br","u","i","em","strong","b"],preserveLineBreaks:o=!0,className:i}=t;if(!e||typeof e!="string")return[];let n=e;o&&(n=n.replace(/\n/g,"<br/>"));let c=n.split(/(<[^>]+>)/),m=[],f=0;for(let u=0;u<c.length;u++){let l=c[u];if(!l)continue;let s=l.match(/^<(\w+)(?:\s[^>]*)?\s*\/>$/);if(s&&s[1]){let y=s[1].toLowerCase();if(r.includes(y)){let S=st(y,"",i,f++);S&&m.push(S);continue}}let p=l.match(/^<(\w+)(?:\s[^>]*)?>$/);if(p&&p[1]){let y=p[1].toLowerCase();if(r.includes(y)){let S=`</${y}>`,w="",h=u+1;for(;h<c.length&&c[h]&&!c[h].includes(S);)w+=c[h],h++;h<c.length&&c[h]&&(w+=c[h].replace(S,""));let x=st(y,w,i,f++);x&&m.push(x),u=h;continue}}l&&!l.startsWith("<")&&m.push(l)}return m}function st(e,t,r,o){let i={key:o};switch(r&&(i.className=r),e){case"p":return ve("p",i,t);case"br":return ve("br",i);case"u":return ve("u",i,t);case"i":case"em":return ve("em",i,t);case"strong":case"b":return ve("strong",i,t);default:return t}}import{jsx as T,jsxs as he}from"react/jsx-runtime";var rr=({content:e,intro:t,title:r,duration:o=26,contentHeight:i="150vh",tiltAngle:n,className:c,style:m,"aria-label":f})=>{let u=g=>!g||typeof g!="string"?null:g.split(/\n\s*\n/).map(O=>O.trim()).filter(O=>O.length>0).map((O,H)=>T("p",{children:fe(O,{allowedTags:["u","br","i","em","strong","b"]})},`p-${H}`)),l=Te(()=>t==null?null:typeof t=="string"?T("div",{className:"dndev-crawl-intro-text",children:fe(t,{allowedTags:["u","br","i","em","strong","b"]})}):t,[t]),s=Te(()=>r?typeof r=="string"?T("h2",{className:"dndev-crawl-title",children:fe(r,{allowedTags:["u","br","i","em","strong","b"]})}):r:null,[r]),p=Te(()=>er(e)?e:Array.isArray(e)?e.map(M=>typeof M=="string"?M.trim():"").filter(M=>M&&M.length>0).map((M,O)=>T("p",{children:fe(M,{allowedTags:["u","br","i","em","strong","b"]})},`c-${O}`)):typeof e=="string"?u(e):e,[e]),y=lt(null),S=lt(null),[w,h]=Ne(!1),[x,R]=Ne(!1),[C,I]=Ne(!1),[P,J]=Ne(!1);We(()=>{J(!0),h(!0)},[]);let K=()=>{h(!1),R(!0),I(!1)},B=g=>{x&&!C&&!w&&I(!0)},N=g=>{g.stopPropagation(),I(!1)},se=Te(()=>{let g={"--crawl-content-height":i,animationName:x?"dndev-crawl-animation":"none",animationDuration:`${o}s`,animationTimingFunction:"linear",animationIterationCount:"infinite",animationFillMode:"forwards",animationPlayState:C?"paused":"running"};return n!==void 0&&(g["--crawl-tilt"]=`${n}deg`),g},[x,C,o,i,n]);return We(()=>{if(!P||!dt()||!y.current)return;let g=window.matchMedia("(prefers-reduced-motion: reduce)"),M=()=>{g.matches&&y.current&&y.current.classList.add("dndev-crawl-reduced-motion")};return M(),g.addEventListener("change",M),()=>g.removeEventListener("change",M)},[P]),We(()=>{if(!P||!dt()||!x||!S.current)return;let g=new IntersectionObserver(M=>{(M[0]?.isIntersecting??!0)||I(!0)},{threshold:.1});return g.observe(S.current),()=>g.disconnect()},[P,x]),he("div",{ref:S,className:tr("dndev-crawl-container","dndev-relative dndev-overflow-hidden",c),style:{...m,height:"calc(100dvh - var(--header-height))"},onClick:B,"aria-label":f||"Animated text crawl",role:"region","aria-live":"polite",children:[!w&&T("div",{className:"dndev-crawl-3d-container",children:T("div",{ref:y,className:"dndev-crawl-text",style:{...se,willChange:x&&!C?"transform":"auto"},children:he("div",{className:"dndev-crawl-content",children:[s,p]})})}),w&&P&&he("div",{className:"dndev-absolute dndev-inset-0 dndev-flex dndev-flex-col dndev-items-center dndev-justify-center",style:{zIndex:30,backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(4px)"},children:[l&&T("div",{className:"dndev-w-full",style:{paddingInline:"var(--content-padding)",marginBottom:"3rem"},children:T("div",{className:"dndev-crawl-intro-content",children:l})}),T("button",{onClick:K,style:{width:"96px",height:"96px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.2)",border:"4px solid rgba(255, 255, 255, 0.4)",backdropFilter:"blur(4px)",cursor:"pointer",transition:"all var(--dur-normal) var(--ease-in-out)",transformOrigin:"center"},onMouseEnter:g=>{g.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.3)",g.currentTarget.style.borderColor="rgba(255, 255, 255, 0.6)",g.currentTarget.style.transform="scale(1.1)"},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.2)",g.currentTarget.style.borderColor="rgba(255, 255, 255, 0.4)",g.currentTarget.style.transform="scale(1)"},"aria-label":"Start animated introduction",children:T("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"white",style:{marginInlineStart:"4px"},children:T("path",{d:"M8 5v14l11-7z"})})})]}),C&&x&&P&&T("div",{className:"dndev-absolute dndev-inset-0 dndev-flex dndev-items-center dndev-justify-center",style:{zIndex:30,backgroundColor:"rgba(0, 0, 0, 0.3)",backdropFilter:"blur(2px)"},onClick:N,children:T("button",{style:{width:"96px",height:"96px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.2)",border:"4px solid rgba(255, 255, 255, 0.4)",backdropFilter:"blur(4px)",cursor:"pointer",transition:"all var(--dur-normal) var(--ease-in-out)",transformOrigin:"center"},onMouseEnter:g=>{g.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.3)",g.currentTarget.style.borderColor="rgba(255, 255, 255, 0.6)",g.currentTarget.style.transform="scale(1.1)"},onMouseLeave:g=>{g.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.2)",g.currentTarget.style.borderColor="rgba(255, 255, 255, 0.4)",g.currentTarget.style.transform="scale(1)"},"aria-label":"Resume animation",children:T("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"white",children:T("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})})})}),x&&he("div",{className:"dndev-crawl-stars",children:[T("div",{className:"dndev-crawl-stars-layer-1"}),T("div",{className:"dndev-crawl-stars-layer-2"}),T("div",{className:"dndev-crawl-stars-layer-3"})]}),!P&&he("div",{className:"dndev-absolute dndev-inset-0 dndev-flex dndev-flex-col dndev-items-center dndev-justify-center",style:{zIndex:20,backgroundColor:"rgba(0, 0, 0, 0.5)"},children:[l&&T("div",{className:"dndev-w-full",style:{paddingInline:"var(--content-padding)",marginBottom:"3rem"},children:T("div",{className:"dndev-crawl-intro-content",children:l})}),T("div",{style:{width:"96px",height:"96px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.2)",border:"4px solid rgba(255, 255, 255, 0.4)"},children:T("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"white",style:{marginInlineStart:"4px"},children:T("path",{d:"M8 5v14l11-7z"})})})]})]})},ct=rr;import{Suspense as vr,lazy as fr}from"react";import{cn as ar,GAP_VARIANT as nr,Stack as or}from"@donotdev/components";import{jsx as Be}from"react/jsx-runtime";function ir({className:e,itemCount:t=8,itemWidth:r,gap:o=nr.MEDIUM,direction:i="horizontal"}){let n=i==="vertical";return Be("div",{className:ar("dndev-relative dndev-overflow-hidden",e),role:"status","aria-label":"Loading content",children:Be(or,{direction:n?"column":"row",align:n?void 0:"center",gap:o,children:Array.from({length:t*2}).map((c,m)=>Be("div",{className:"dndev-flex-shrink-0 dndev-animate-pulse",style:n?{height:"4rem",width:"100%",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}:{height:"4rem",width:r||"4rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}},m))})})}var mt=ir;import{GAP_VARIANT as yr}from"@donotdev/components";import{jsx as Fe}from"react/jsx-runtime";var hr=fr(()=>Promise.resolve().then(()=>(vt(),gt))),br=e=>{let{gap:t=yr.MEDIUM,direction:r="auto",...o}=e;return Fe(vr,{fallback:Fe(mt,{itemCount:8,gap:t,direction:r==="up"||r==="down"?"vertical":"horizontal"}),children:Fe(hr,{...o})})},ft=br;import{Eye as wr}from"lucide-react";import{useState as Cr}from"react";import{PortalButton as xr,cn as ht,Sheet as kr,Code as Sr,Stack as Nr}from"@donotdev/components";import{Fragment as Rr,jsx as Ee,jsxs as Mr}from"react/jsx-runtime";function Tr({data:e,sourceCode:t,language:r="tsx",title:o="Page Source",className:i}){let[n,c]=Cr(!1),m=t||e||"",f=u=>{};return Mr(Rr,{children:[Ee(xr,{icon:wr,onClick:()=>c(!0),className:ht("dndev-z-overlay",i),style:{position:"fixed",zIndex:"var(--z-overlay)",right:"var(--gap-sm)",bottom:"calc(var(--footer-height, 0px) + var(--gap-sm))"},tooltip:"Code Inspector","aria-label":"Code Inspector"}),Ee(kr,{open:n,onOpenChange:c,side:"bottom",className:ht("dndev-w-full",i),style:{width:"100%",height:"90%",maxHeight:"90dvh",borderRadius:"var(--radius-xl) var(--radius-xl) 0 0",display:"flex",flexDirection:"column",overflow:"hidden"},children:Ee(Nr,{gap:"none",style:{flex:"1 1 auto",minHeight:0,overflow:"hidden"},children:Ee(Sr,{language:r,showCopyButton:!0,onCopy:f,children:m})})})]})}var yt=Tr;import{memo as Er,useEffect as Pr,useRef as zr,useState as Ar}from"react";import{cn as Ye,Button as Ir,IconBox as Dr,Separator as Lr,SEPARATOR_VARIANT as $r,Text as Pe,useIntersectionObserver as Hr,getVariantDataAttrs as Gr,surfaceVariants as Xr}from"@donotdev/components";import{jsx as D,jsxs as ye}from"react/jsx-runtime";var bt={intersectionThreshold:.3,intersectionRootMargin:"0px 0px -20% 0px"},qr=Er(({icon:e})=>e?D(Dr,{icon:e,ariaHidden:!0}):null),Or=({items:e,className:t,ariaLabel:r,variant:o,style:i})=>{let[n,c]=Ar(0),m=zr(null),u=e.some(p=>p.customHeight)?Math.max(...e.map(p=>p.customHeight||0).filter(p=>p>0)):null,l={small:1,medium:2,large:3},s=e.reduce((p,y)=>{let S=y.estimatedHeight||"medium",w=l[S]||2,h=l[p]||2;return w>h?S:p},"medium");return D("div",{className:Ye("dndev-relative dndev-stacked-cards-container",t),ref:m,"aria-label":r,style:{"--e":n.toString()},children:e.map((p,y)=>D(Wr,{item:p,index:y,entered:n,onEnter:()=>c(y),totalItems:e.length,cardProps:{variant:o,style:i},maxEstimatedHeight:s,maxCustomHeight:u},y))})},Wr=({item:e,index:t,entered:r,onEnter:o,totalItems:i,cardProps:n,maxEstimatedHeight:c,maxCustomHeight:m})=>{let{ref:f,isIntersecting:u}=Hr({threshold:bt.intersectionThreshold,rootMargin:bt.intersectionRootMargin});Pr(()=>{typeof window<"u"&&u&&o()},[u,o]);let l=Array.isArray(e.content)?e.content:e.content?[e.content]:[];return D("section",{ref:f,className:"dndev-relative",style:{zIndex:i-t-1},children:D("div",{className:Ye("dndev-relative dndev-overflow-hidden stack","dndev-min-w-0"),"data-size":m?void 0:c,"data-stacked":t>r?"true":"false",style:{"--i":t.toString(),...m&&{"--dynamic-height":`${m}px`},...n.style},children:ye("div",{className:Ye(Xr({variant:n.variant}),"dndev-relative dndev-overflow-hidden dndev-h-full"),...Gr({variant:n.variant}),style:{padding:"var(--gap-sm)",...n.style},children:[ye("div",{className:"stack-content",children:[ye("div",{className:"dndev-stacked-cards-body",children:[ye("div",{className:"dndev-stacked-cards-left",children:[ye("div",{className:"dndev-stacked-cards-header",children:[e.icon&&D(qr,{icon:e.icon}),e.title&&D(Pe,{as:"h3",children:e.title})]}),e.subtitle&&D(Pe,{as:"p",level:"h4",variant:"primary",children:e.subtitle}),e.description&&D(Pe,{as:"p",level:"h4",variant:"muted",children:e.description})]}),D(Lr,{orientation:"vertical",variant:$r.ACCENT,className:"dndev-stacked-cards-separator"}),l.length>0&&D("div",{className:"dndev-stacked-cards-right",children:l.map((s,p)=>D(Pe,{as:"div",level:"body",variant:"muted",children:s},p))})]}),e.cta&&D("div",{className:"dndev-stacked-cards-cta",children:D(Ir,{onClick:e.onClick,variant:e.cta.variant||"primary",icon:e.cta.icon,children:e.cta.text})}),D("div",{className:"dndev-stacked-cards-spacer"})]}),D("div",{className:"dndev-stacked-cards-number",children:e.number?String(e.number):String(t+1).padStart(2,"0")})]})})})},wt=Or;import{jsx as Vr}from"react/jsx-runtime";var Br=function(t){return Vr(wt,{...t})},Ct=Br;import{useCallback as Fr}from"react";import{cn as Yr,useViewportVisibility as _r}from"@donotdev/components";import{jsx as xt}from"react/jsx-runtime";var Ur=({items:e=[],direction:t="fade-in",stagger:r=100,threshold:o,distance:i,duration:n,once:c=!1,viewport:m=!0,overrides:f=[],className:u,children:l})=>{let{ref:s,isVisible:p,hasTriggered:y,visibleItems:S,isItemVisible:w}=_r({threshold:o,once:c,trackItems:m,enableScrollListener:m}),h=Fr(R=>{let C=f.find(I=>I.index===R);if(C)return C.direction;switch(t){case"alternate-h":return R%2===0?"left":"right";case"alternate-v":return R%2===0?"top":"bottom";default:return t}},[t,f]),x=()=>e.map((R,C)=>{let I=h(C),P=C*r,J=m?w(C):p;return xt("div",{className:"dndev-reveal-item","data-direction":I,"data-visible":J,style:{"--reveal-delay":`${P}ms`,"--reveal-index":C,...i!==void 0&&{"--reveal-distance":`${i}vw`},...n!==void 0&&{"--reveal-duration":`${n}ms`}},children:R},C)});return xt("div",{ref:s,className:Yr("dndev-reveal-container",p&&"dndev-reveal-visible",u),"data-direction":t,"data-stagger":r,children:e.length>0?x():l})},be=Ur;import{jsx as _e,jsxs as Qr}from"react/jsx-runtime";function Kr({status:e,animationClass:t}){return _e("svg",{width:"100%",height:"100%",viewBox:"0 0 512 512",className:"drop--lg",preserveAspectRatio:"xMidYMid meet",children:Qr("g",{transform:"translate(0,512) scale(0.1,-0.1)",children:[_e("path",{d:`M2465 4956 c-60 -28 -97 -66 -124 -126 -20 -44 -21 -63 -21 -630 0
|
|
1
|
+
"use client";var ir=Object.defineProperty;var ce=(e,t)=>()=>(e&&(t=e(e=0)),t);var he=(e,t)=>{for(var r in t)ir(e,r,{get:t[r],enumerable:!0})};import{createElement as be}from"react";function me(e,t={}){let{allowedTags:r=["p","br","u","i","em","strong","b"],preserveLineBreaks:o=!0,className:n}=t;if(!e||typeof e!="string")return[];let i=e;o&&(i=i.replace(/\n/g,"<br/>"));let d=i.split(/(<[^>]+>)/),l=[],u=0;for(let c=0;c<d.length;c++){let m=d[c];if(!m)continue;let s=m.match(/^<(\w+)(?:\s[^>]*)?\s*\/>$/);if(s&&s[1]){let v=s[1].toLowerCase();if(r.includes(v)){let w=dt(v,"",n,u++);w&&l.push(w);continue}}let f=m.match(/^<(\w+)(?:\s[^>]*)?>$/);if(f&&f[1]){let v=f[1].toLowerCase();if(r.includes(v)){let w=`</${v}>`,b="",g=c+1;for(;g<d.length&&d[g]&&!d[g].includes(w);)b+=d[g],g++;g<d.length&&d[g]&&(b+=d[g].replace(w,""));let C=dt(v,b,n,u++);C&&l.push(C),c=g;continue}}m&&!m.startsWith("<")&&l.push(m)}return l}function dt(e,t,r,o){let n={key:o};switch(r&&(n.className=r),e){case"p":return be("p",n,t);case"br":return be("br",n);case"u":return be("u",n,t);case"i":case"em":return be("em",n,t);case"strong":case"b":return be("strong",n,t);default:return t}}var qe=ce(()=>{"use strict"});var lt={};he(lt,{default:()=>ur});import{useEffect as sr,useRef as dr,useState as lr,useMemo as We,isValidElement as cr}from"react";import{isClient as mr}from"@donotdev/core";import{Fragment as vr,jsx as G,jsxs as Be}from"react/jsx-runtime";var pr,ur,ct=ce(()=>{"use strict";qe();pr=({content:e,title:t,duration:r=26,contentHeight:o="150vh",tiltAngle:n,onPause:i,onResume:d})=>{let l=dr(null),[u,c]=lr(!1),m=b=>!b||typeof b!="string"?null:b.split(/\n\s*\n/).map(C=>C.trim()).filter(C=>C.length>0).map((C,S)=>G("p",{children:me(C,{allowedTags:["u","br","i","em","strong","b"]})},`p-${S}`)),s=We(()=>t?typeof t=="string"?G("h2",{className:"dndev-crawl-title",children:me(t,{allowedTags:["u","br","i","em","strong","b"]})}):t:null,[t]),f=We(()=>cr(e)?e:Array.isArray(e)?e.map(g=>typeof g=="string"?g.trim():"").filter(g=>g&&g.length>0).map((g,C)=>G("p",{children:me(g,{allowedTags:["u","br","i","em","strong","b"]})},`c-${C}`)):typeof e=="string"?m(e):e,[e]),v=We(()=>{let b={"--crawl-content-height":o,animationName:"dndev-crawl-animation",animationDuration:`${r}s`,animationTimingFunction:"linear",animationIterationCount:"infinite",animationFillMode:"forwards",animationPlayState:u?"paused":"running"};return n!==void 0&&(b["--crawl-tilt"]=`${n}deg`),b},[u,r,o,n]);sr(()=>{if(!mr()||!l.current)return;let b=window.matchMedia("(prefers-reduced-motion: reduce)"),g=()=>{b.matches&&l.current&&l.current.classList.add("dndev-crawl-reduced-motion")};return g(),b.addEventListener("change",g),()=>b.removeEventListener("change",g)},[]);let w=()=>{u?(c(!1),d?.()):(c(!0),i?.())};return Be(vr,{children:[G("div",{className:"dndev-crawl-3d-container",onClick:w,children:G("div",{ref:l,className:"dndev-crawl-text",style:{...v,willChange:u?"auto":"transform"},children:Be("div",{className:"dndev-crawl-content",children:[s,f]})})}),u&&G("div",{className:"dndev-absolute dndev-inset-0 dndev-flex dndev-items-center dndev-justify-center",style:{zIndex:30,backgroundColor:"rgba(0, 0, 0, 0.3)",backdropFilter:"blur(2px)"},onClick:w,children:G("button",{style:{width:"96px",height:"96px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.2)",border:"4px solid rgba(255, 255, 255, 0.4)",backdropFilter:"blur(4px)",cursor:"pointer",transition:"all var(--dur-normal) var(--ease-in-out)"},"aria-label":"Resume animation",children:G("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"white",children:G("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})})})}),Be("div",{className:"dndev-crawl-stars",children:[G("div",{className:"dndev-crawl-stars-layer-1"}),G("div",{className:"dndev-crawl-stars-layer-2"}),G("div",{className:"dndev-crawl-stars-layer-3"})]})]})},ur=pr});var ft={};he(ft,{default:()=>Ir});import{useRef as Tr,useState as Te,useEffect as vt}from"react";import{cn as Fe,GAP_VARIANT as Rr,Stack as Mr}from"@donotdev/components";import{observeElement as Pr,addEventListener as Er}from"@donotdev/components";import{jsx as Re}from"react/jsx-runtime";function Ar({items:e,renderItem:t,className:r,itemClassName:o,gap:n=Rr.MEDIUM,speed:i=48,direction:d="auto",pauseOnHover:l=!0,ariaLabel:u,reducedMotion:c="respect",behavior:m="auto",pauseOnFocusWithin:s=!0,easing:f="ease-in-out"}){let v=typeof document<"u"&&document.dir==="rtl",w=typeof window<"u"?window.matchMedia("(prefers-reduced-motion: reduce)").matches:!1,b=d;d==="auto"&&(b=v?"right":"left");let g=b==="up"||b==="down",C=c==="ignore"||!w,S=m;m==="auto"&&(S=e.length<=20?"bounce":"infinite");let N=Tr(null),[X,F]=Te(8e3),[te,j]=Te(0),[Y,k]=Te(!0),[Ce,U]=Te(!1);vt(()=>N.current?Pr(N.current,A=>k(A.isIntersecting),{threshold:0}):void 0,[]),vt(()=>{if(!N.current||typeof window>"u"||!C)return;let $=N.current,A=$.querySelector("[data-marquee-track]");if(!A)return;let ve=()=>{let K=g?$.clientHeight:$.clientWidth,re=g?A.scrollHeight:A.scrollWidth,_=Math.max(0,re-K);if(U(_>0),_>0){let ge=Math.min(512,Math.max(12,i));if(S==="bounce"){let de=_*2/ge*1e3;F(Math.max(2e3,Math.floor(de))),j(_)}else{let de=(re+gt[n])/ge*1e3;F(Math.max(2e3,Math.floor(de))),j(re+gt[n])}}else F(0),j(0)};if(requestAnimationFrame(ve),typeof ResizeObserver<"u"){let K=new ResizeObserver(()=>{requestAnimationFrame(ve)});return K.observe($),()=>K.disconnect()}else return Er(window,"resize",()=>requestAnimationFrame(ve))},[e,i,g,C,S,n]);let xe=()=>g?b==="up"?"normal":"reverse":b==="left"?"normal":"reverse",ke=()=>S==="infinite"&&Ce?[...e,...e].map(($,A)=>Re("div",{className:Fe("dndev-flex-shrink-0",o),children:t($,A%e.length)},A)):e.map(($,A)=>Re("div",{className:Fe("dndev-flex-shrink-0",o),children:t($,A)},A));return Re("div",{ref:N,className:Fe("dndev-relative dndev-overflow-hidden",l&&"group",s&&"focus-within:group",r),role:"region","aria-label":u||`${S==="infinite"?"Scrolling":"Bouncing"} content with ${e.length} items`,"aria-live":C&&Y?"off":"polite",children:Re(Mr,{className:"marquee-track",direction:g?"column":"row",align:g?void 0:"center",gap:n,"data-marquee-track":!0,"data-marquee-direction":g?"vertical":"horizontal","data-marquee-behavior":S,"data-marquee-reduced-motion":!C,style:{"--marquee-duration":C&&Y&&Ce?`${X}ms`:"0ms","--marquee-direction":xe(),"--marquee-distance":g?`${te}px`:`${te}px`,"--marquee-easing":zr[f],animationPlayState:!C||!Y?"paused":"running"},children:ke()})})}var gt,zr,Ir,ht=ce(()=>{"use strict";gt={none:0,tight:8,medium:16,large:32},zr={linear:"linear","ease-in-out":"ease-in-out","ease-out":"ease-out"};Ir=Ar});var Lt={};he(Lt,{default:()=>Xa});import{ChevronLeft as Ea,ChevronRight as za,Play as Aa,Pause as Ia}from"lucide-react";import{useRef as Ke,useState as oe,useEffect as Qe,useCallback as z,useMemo as Je,memo as Da}from"react";import{cn as Ae,observeElement as La,addEventListener as $a,isRTLLanguage as Ha,Stack as Ga}from"@donotdev/components";import{Fragment as qa,jsx as E,jsxs as je}from"react/jsx-runtime";function Oa({items:e,renderItem:t,className:r,slideClassName:o,showArrows:n=!0,showDots:i=!1,showProgress:d=!0,autoplay:l=!0,autoplayInterval:u=5e3,transition:c="slide",infinite:m=!0,slidesToShow:s=1,swipeable:f=!0,momentum:v=!0,onActiveChange:w,onSlideClick:b,keyExtractor:g,"aria-label":C="Premium carousel",pauseOnHover:S=!0,pauseOnInvisible:N=!0,showPlayPause:X=!0,lazy:F=!1,preloadDistance:te=1}){if(!e||e.length===0)return E(Ga,{align:"center",justify:"center",className:Ae("dndev-relative",r),children:E("div",{style:{color:"var(--muted-foreground)"},children:"No items to display"})});let j=Ke(null),Y=Ke(null),[k,Ce]=oe(0),[U,xe]=oe(l),[ke,$]=oe(!1),[A,ve]=oe(!0),[I,K]=oe({isDragging:!1,startX:0,currentX:0,startTime:0,velocity:0}),re=Ke(null),[_,ge]=oe("idle"),[de,ot]=oe(!1);Qe(()=>{if(typeof window>"u")return;let a=window.matchMedia("(prefers-reduced-motion: reduce)");return ot(a.matches),$a(a,"change",h=>{ot(h.matches)})},[]);let Se=Je(()=>({tension:.3,friction:.8,mass:1}),[]),Qt=Je(()=>{if(!m||e.length<=s)return e;let a=Math.max(s,2),p=e.slice(-a),h=e.slice(0,a);return[...p,...e,...h]},[e,m,s]),H=Je(()=>100/s,[s]),He=z(a=>{if(!m)return a;let p=Math.max(s,2);return((a-p)%e.length+e.length)%e.length},[m,e.length,s]),it=z(a=>{if(!m)return!0;let p=Math.max(s,2),h=e.length+p-1;return a>=p&&a<=h},[m,e.length,s]),Ge=z((a,p,h=0)=>{if(!v)return;let x=parseFloat(a.style.transform.replace("translateX(","").replace("%)",""))||0,R=h,W=Date.now(),B=()=>{let fe=(Date.now()-W)/1e3,Ne=x-p,ar=-Se.tension*Ne,nr=-Se.friction*R,or=(ar+nr)/Se.mass;R+=or*fe,x+=R*fe,a.style.transform=`translateX(${x}%)`,Math.abs(Ne)>.1||Math.abs(R)>.1?requestAnimationFrame(B):(a.style.transform=`translateX(${p}%)`,a.style.transition="none")};requestAnimationFrame(B)},[v,Se]),st=z((a,p,h)=>{switch(c){case"fade":a.style.transition=`opacity ${h} ease-in-out`,a.style.opacity="0",setTimeout(()=>{a.style.transform=`translateX(${p}%)`,a.style.opacity="1"},parseInt(h)/2);break;case"scale":a.style.transition=`transform ${h} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,a.style.transform=`translateX(${p}%) scale(0.95)`,setTimeout(()=>{a.style.transform=`translateX(${p}%) scale(1)`},parseInt(h)/2);break;case"parallax":a.style.transition=`transform ${h} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,a.style.transform=`translateX(${p}%)`,a.querySelectorAll('[role="group"]').forEach((R,W)=>{let B=R,D=(W-Math.abs(p)/H)*.1;B.style.transform=`translateX(${D}%)`});break;default:a.style.transition=`transform ${h} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,a.style.transform=`translateX(${p}%)`;break}},[c,H]),q=z((a,p=!1)=>{if(_!=="idle"&&!p)return;let h=Y.current;if(!h)return;let x=a;if(m){let D=Math.max(s,2);x=a+D,a>=e.length?x=D+a%e.length:a<0&&(x=D+e.length+a)}let R=-(x*H),W=p||de?"0ms":"300ms";p||ge("transitioning"),st(h,R,W);let B=He(x);if(Ce(B),w?.(B),m&&!p&&it(x)){let D=Math.max(s,2);(x<=D-1||x>=e.length+D)&&(h.dataset.needsReset="true",h.dataset.resetIndex=x<=D-1?(e.length+D-1).toString():D.toString())}},[m,e.length,H,s,He,w,de,_,it,st]),Z=z(()=>{q(k+1)},[k,q]),le=z(()=>{q(k-1)},[k,q]),Oe=z(()=>{xe(!0)},[]),Xe=z(()=>{xe(!1)},[]);Qe(()=>{if(!(!U||ke||!A||e.length<=1))return re.current=setTimeout(()=>{Z()},u),()=>{re.current&&clearTimeout(re.current)}},[U,ke,A,k,Z,u,e.length]),Qe(()=>!N||!j.current?void 0:La(j.current,p=>ve(p.isIntersecting),{threshold:.1}),[N]);let Jt=z(a=>F?Math.abs(a-k)<=te:!0,[F,k,te]),jt=z(a=>{if(!f||_!=="idle")return;let p=a.touches[0];p&&K({isDragging:!0,startX:p.clientX,currentX:p.clientX,startTime:Date.now(),velocity:0})},[f,_]),Zt=z(a=>{if(!I.isDragging)return;let p=a.touches[0];if(!p)return;let h=p.clientX-I.startX,x=Date.now()-I.startTime,R=x>0?h/x:0,W=Y.current;if(W&&Math.abs(h)>10){a.preventDefault();let B=-(k*H),D=h/(j.current?.clientWidth||1)*100,fe=Math.min(Math.abs(h)/200,.8),Ne=D*(1-fe);W.style.transition="none",W.style.transform=`translateX(${B+Ne}%)`}K(B=>({...B,currentX:p.clientX,velocity:R}))},[I.isDragging,I.startX,I.startTime,k,H]),er=z(()=>{if(!I.isDragging)return;let a=I.currentX-I.startX,p=I.velocity,h=50;if(v&&Math.abs(p)>.5){let x=Y.current;if(x){let R=p>0?k-1:k+1,W=-(R*H);Ge(x,W,p*100),q(R,!0)}}else if(Math.abs(a)>h)a>0?le():Z();else{let x=Y.current;if(x&&v){let R=-(k*H);Ge(x,R,p*100)}else q(k,!0)}K({isDragging:!1,startX:0,currentX:0,startTime:0,velocity:0})},[I,v,Z,le,q,k,Ge,H]),tr=z(()=>{ge("idle");let a=Y.current;if(a?.dataset.needsReset==="true"){let p=parseInt(a.dataset.resetIndex||"0");a.style.transition="none",a.style.transform=`translateX(-${p*H}%)`,delete a.dataset.needsReset,delete a.dataset.resetIndex}},[H]),rr=z(a=>{let p=Ha();switch(a.key){case"ArrowLeft":a.preventDefault(),p?Z():le();break;case"ArrowRight":a.preventDefault(),p?le():Z();break;case"Home":a.preventDefault(),q(0);break;case"End":a.preventDefault(),q(e.length-1);break;case" ":a.preventDefault(),U?Xe():Oe();break}},[Z,le,q,e.length,U,Oe,Xe]);return je("div",{ref:j,className:Ae("dndev-relative dndev-overflow-hidden",r),onMouseEnter:()=>S&&$(!0),onMouseLeave:()=>S&&$(!1),onKeyDown:rr,tabIndex:0,role:"region","aria-label":C,"aria-live":"polite",children:[E("div",{className:"dndev-overflow-hidden",children:E("div",{ref:Y,className:Ae("dndev-flex",I.isDragging&&"dndev-pointer-events-none",_==="transitioning"&&"dndev-pointer-events-none"),style:{cursor:I.isDragging?"grabbing":void 0},onTransitionEnd:tr,onTouchStart:jt,onTouchMove:Zt,onTouchEnd:er,children:Qt.map((a,p)=>{let h=He(p),x=h===k,R=Jt(h);return E("div",{className:Ae("dndev-flex-shrink-0",o),style:{width:`${H}%`,opacity:R?1:0},role:"group","aria-roledescription":"slide","aria-label":`Slide ${h+1} of ${e.length}`,onClick:()=>b?.(a,h),children:R&&t(a,h,x)},g?g(a,h):`${h}-${p}`)})})}),n&&e.length>1&&je(qa,{children:[E("button",{className:"dndev-absolute dndev-z-breadcrumbs dndev-flex dndev-items-center dndev-justify-center",style:{left:"1rem",top:"50%",transform:"translateY(-50%)",width:"2.5rem",height:"2.5rem",opacity:0,transition:"opacity var(--dur-normal)",borderRadius:"9999px",backgroundColor:"rgb(from var(--background) r g b / 0.8)",border:"1px solid var(--border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",a.currentTarget.style.opacity="1"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:le,"aria-label":"Previous slide",children:E(Ea,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})}),E("button",{className:"dndev-absolute dndev-z-breadcrumbs dndev-flex dndev-items-center dndev-justify-center",style:{right:"1rem",top:"50%",transform:"translateY(-50%)",width:"2.5rem",height:"2.5rem",opacity:0,transition:"opacity var(--dur-normal)",borderRadius:"9999px",backgroundColor:"rgb(from var(--background) r g b / 0.8)",border:"1px solid var(--border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",a.currentTarget.style.opacity="1"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:Z,"aria-label":"Next slide",children:E(za,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})})]}),l&&X&&E("button",{className:"dndev-absolute dndev-z-breadcrumbs dndev-flex dndev-items-center dndev-justify-center",style:{insetBlockStart:"var(--gap-md)",insetInlineEnd:"var(--gap-md)",width:"2rem",height:"2rem",opacity:0,transition:"opacity var(--dur-normal)",borderRadius:"9999px",backgroundColor:"rgb(from var(--background) r g b / 0.8)",border:"1px solid var(--border)"},onMouseEnter:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",a.currentTarget.style.opacity="1"},onMouseLeave:a=>{a.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:()=>U?Xe():Oe(),"aria-label":U?"Pause carousel":"Play carousel",children:U?E(Ia,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}}):E(Aa,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})}),i&&e.length>1&&E("div",{className:"dndev-absolute dndev-flex dndev-gap-sm dndev-z-breadcrumbs",style:{bottom:"1rem",left:"50%",transform:"translateX(-50%)"},children:e.map((a,p)=>E("button",{style:{width:p===k?"1.5rem":"0.5rem",height:"0.5rem",borderRadius:"9999px",transition:"all 0.3s",backgroundColor:p===k?"var(--foreground)":"rgb(from var(--foreground) r g b / 0.3)"},onMouseEnter:h=>{p!==k&&(h.currentTarget.style.backgroundColor="rgb(from var(--foreground) r g b / 0.5)")},onMouseLeave:h=>{p!==k&&(h.currentTarget.style.backgroundColor="rgb(from var(--foreground) r g b / 0.3)")},onClick:()=>q(p),"aria-label":`Go to slide ${p+1}`},p))}),d&&l&&E("div",{className:"dndev-absolute dndev-left-0",style:{bottom:0,right:0,height:"0.25rem",backgroundColor:"rgb(from var(--foreground) r g b / 0.2)"},children:E("div",{style:{height:"100%",width:`${(k+1)/e.length*100}%`,backgroundColor:"var(--foreground)",transition:"width 0.1s linear"}})}),je("div",{className:"dndev-sr-only","aria-live":"polite","aria-atomic":"true",children:["Slide ",k+1," of ",e.length]})]})}var Dt,Xa,$t=ce(()=>{"use strict";Dt=Da(Oa);Dt.displayName="Carousel";Xa=Dt});var Gt={};he(Gt,{default:()=>Ja});import{memo as _a}from"react";import{Card as Ua,Text as et}from"@donotdev/components";import{cn as Ka}from"@donotdev/components";import{Fragment as ja,jsx as we,jsxs as Ht}from"react/jsx-runtime";var Qa,Ja,Ot=ce(()=>{"use strict";Qa=_a(function({title:t,items:r,gridCols:o=2,className:n,ariaLabel:i}){let d={1:"grid-cols-1",2:"grid-cols-1 md:grid-cols-2",3:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3",4:"grid-cols-1 md:grid-cols-2 lg:grid-cols-4"},l=Array.isArray(r)?r:[];return Array.isArray(r),Ht("div",{className:Ka("dndev-marketing-stack",n),"aria-label":i,children:[t&&we(et,{as:"h3",level:"h2",children:t}),we("div",{className:"dndev-marketing-dndev-grid","data-cols":o,children:l.map((u,c)=>we(Ua,{title:u.useCase,subtitle:u.bestFit,content:Ht(ja,{children:[we(et,{variant:"muted",level:"body",children:u.dndev}),we(et,{variant:"muted",level:"small",className:"italic",children:u.reason})]})},c))})]})}),Ja=Qa});var Ut={};he(Ut,{default:()=>Xn});import{memo as $e}from"react";import{cn as at,Card as En,Icon as zn,Stack as An}from"@donotdev/components";import{jsx as P,jsxs as ue}from"react/jsx-runtime";var se,Yt,In,_t,Dn,Ln,$n,Hn,Gn,On,Xn,Kt=ce(()=>{"use strict";se={desktop:{cardWidth:300,cardHeight:200,cardGap:32,drop:80,startX:0,containerWidth:1024,containerHeight:380},mobile:{cardWidth:320,cardHeight:200,verticalGap:24,containerWidth:400,curveOffset:40}},Yt=$e(({className:e,density:t,onClick:r,icon:o,title:n,subtitle:i,description:d})=>ue(En,{className:at("dndev-min-w-0",r?"cursor-pointer":"",e),style:{height:"200px",padding:"var(--gap-md)",transform:"scale(1)",transition:"transform var(--duration-normal)"},onMouseEnter:l=>{l.currentTarget.style.transform="scale(0.80)"},onMouseLeave:l=>{l.currentTarget.style.transform="scale(1)"},onClick:r,children:[ue(An,{direction:"row",align:"center",gap:"medium",style:{marginBottom:"var(--gap-md)"},children:[P(In,{icon:o}),P("h3",{style:{fontSize:"var(--font-size-lg)",fontWeight:600,lineHeight:1.25,color:"var(--foreground)"},children:n})]}),i&&P("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",lineHeight:1.625,marginBottom:"var(--gap-md)"},children:i}),d&&P("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--accent)",transition:"color var(--duration-normal)",cursor:"pointer"},onMouseEnter:l=>{l.currentTarget.style.color="rgb(from var(--accent) r g b / 0.8)"},onMouseLeave:l=>{l.currentTarget.style.color="var(--accent)"},children:d})]})),In=$e(({icon:e})=>e?P("div",{className:"dndev-inline-flex dndev-flex-shrink-0 dndev-items-center dndev-justify-center",style:{width:"var(--touch-target)",height:"var(--touch-target)",borderRadius:"var(--radius-lg)",background:"linear-gradient(to bottom right, rgb(from var(--primary) r g b / 0.1), rgb(from var(--primary) r g b / 0.2))",color:"var(--primary)",transition:"background var(--duration-normal)"},onMouseEnter:t=>{t.currentTarget.style.background="linear-gradient(to bottom right, rgb(from var(--primary) r g b / 0.2), rgb(from var(--primary) r g b / 0.3))"},onMouseLeave:t=>{t.currentTarget.style.background="linear-gradient(to bottom right, rgb(from var(--primary) r g b / 0.1), rgb(from var(--primary) r g b / 0.2))"},children:P(zn,{icon:e,ariaHidden:!0})}):null),_t=$e(function({className:t,startX:r,startY:o,endX:n,endY:i,index:d,isMobile:l=!1}){let u,c,m,s,f;if(l){let{curveOffset:v}=se.mobile,w=(o+i)/2,b=r+v;c=Math.abs(b-r)+40,m=Math.abs(i-o)+40,s=Math.min(r,b)-20,f=Math.min(o,i)-20;let g=r-s,C=o-f,S=n-s,N=i-f,X=b-s,F=w-f;u=`M ${g} ${C} Q ${X} ${F} ${S} ${N}`}else{let v=(r+n)/2,w=o+(i-o)*.3;c=Math.abs(n-r)+40,m=Math.abs(i-o)+40,s=Math.min(r,n)-20,f=Math.min(o,i)-20;let b=r-s,g=o-f,C=n-s,S=i-f,N=v-s,X=w-f;u=`M ${b} ${g} Q ${N} ${X-20} ${C} ${S}`}return ue("svg",{className:at(t),style:{left:s,top:f,width:c,height:m,zIndex:1},viewBox:`0 0 ${c} ${m}`,role:"img",focusable:"false",children:[P("path",{d:u,fill:"none",stroke:"currentColor",strokeWidth:"3",strokeDasharray:"8,8",className:"text-accent waterfall-connector",style:{animationDelay:`${d*.2}s`}}),P("circle",{cx:r-s,cy:o-f,r:"6",fill:"currentColor",className:"text-accent"}),P("circle",{cx:n-s,cy:i-f,r:"6",fill:"currentColor",className:"text-accent"})]})}),Dn=e=>{let{cardWidth:t,cardGap:r,drop:o,startX:n}=se.desktop;return{x:n+e*(t+r),y:e*o}},Ln=e=>{let{cardHeight:t,verticalGap:r}=se.mobile;return{x:0,y:e*(t+r)}},$n=e=>{let{cardWidth:t,cardGap:r,drop:o}=se.desktop;return e===0?{startX:t,startY:o/2,endX:t+r+t/2,endY:o}:e===1?{startX:2*t+r,startY:1.5*o,endX:2.5*t+2*r,endY:2*o}:null},Hn=e=>{let{cardWidth:t,cardHeight:r,verticalGap:o}=se.mobile;return e===0?{startX:t,startY:.66*r,endX:t,endY:1.33*r+o}:e===1?{startX:t,startY:1.66*r+o,endX:t,endY:2.33*r+2*o}:null},Gn=e=>{let{cardHeight:t,verticalGap:r}=se.mobile;return(e-1)*(t+r)+t+40},On=$e(({items:e,className:t,connectorClassName:r,density:o="comfortable",ariaLabel:n,direction:i="horizontal"})=>{if(!e?.length)return null;if(i==="descending"){let{desktop:l,mobile:u}=se;return ue("section",{className:at("dndev-w-full dndev-overflow-hidden",t),children:[ue("div",{className:"dndev-hidden dndev-relative ",style:{width:`${l.containerWidth}px`,height:`${l.containerHeight}px`},children:[P("ol",{className:"dndev-relative","aria-label":n??"Process steps",children:e.map((c,m)=>{let{x:s,y:f}=Dn(m);return P("li",{className:"list-none dndev-absolute waterfall-card",style:{left:`${s}px`,top:`${f}px`,width:`${l.cardWidth}px`},children:P(Yt,{density:o,onClick:c.onClick,icon:c.icon,title:c.title,subtitle:c.subtitle,description:c.description})},`cascade-${m}-${c.title}`)})}),e.map((c,m)=>{if(m>=e.length-1)return null;let s=$n(m);return s?P(_t,{startX:s.startX,startY:s.startY,endX:s.endX,endY:s.endY,className:r,index:m,isMobile:!1},`desktop-connector-${m}`):null})]}),P("div",{className:" dndev-w-full px-[var(--content-padding)]",children:ue("div",{className:"dndev-relative dndev-mx-auto",style:{width:`${u.containerWidth}px`,height:`${Gn(e.length)}px`},children:[P("ol",{className:"dndev-relative","aria-label":n??"Process steps",children:e.map((c,m)=>{let{x:s,y:f}=Ln(m);return P("li",{className:"list-none dndev-absolute",style:{left:`${s}px`,top:`${f}px`,width:`${u.cardWidth}px`},children:P(Yt,{density:o,onClick:c.onClick,icon:c.icon,title:c.title,subtitle:c.subtitle,description:c.description})},`mobile-${m}-${c.title}`)})}),e.map((c,m)=>{if(m>=e.length-1)return null;let s=Hn(m);return s?P(_t,{startX:s.startX,startY:s.startY,endX:s.endX,endY:s.endY,className:r,index:m,isMobile:!0},`mobile-connector-${m}`):null})]})})]})}return null}),Xn=On});qe();import{useState as gr,useMemo as fr,lazy as hr,Suspense as br}from"react";import{cn as yr}from"@donotdev/components";import{jsx as ee,jsxs as mt}from"react/jsx-runtime";var wr=hr(()=>Promise.resolve().then(()=>(ct(),lt))),Cr=({content:e,intro:t,title:r,duration:o=26,contentHeight:n="150vh",tiltAngle:i,className:d,style:l,"aria-label":u})=>{let[c,m]=gr(!0),s=fr(()=>t==null?null:typeof t=="string"?ee("div",{className:"dndev-crawl-intro-text",children:me(t,{allowedTags:["u","br","i","em","strong","b"]})}):t,[t]),f=()=>{m(!1)};return mt("div",{className:yr("dndev-crawl-container","dndev-relative dndev-overflow-hidden",d),style:{...l,height:"calc(100dvh - var(--header-height))"},"aria-label":u||"Animated text crawl",role:"region","aria-live":"polite",children:[c&&mt("div",{className:"dndev-absolute dndev-inset-0 dndev-flex dndev-flex-col dndev-items-center dndev-justify-center",style:{zIndex:30,backgroundColor:"rgba(0, 0, 0, 0.6)",backdropFilter:"blur(4px)"},children:[s&&ee("div",{className:"dndev-w-full",style:{paddingInline:"var(--content-padding)",marginBottom:"3rem"},children:ee("div",{className:"dndev-crawl-intro-content",children:s})}),ee("button",{onClick:f,style:{width:"96px",height:"96px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"rgba(255, 255, 255, 0.2)",border:"4px solid rgba(255, 255, 255, 0.4)",backdropFilter:"blur(4px)",cursor:"pointer",transition:"all var(--dur-normal) var(--ease-in-out)"},onMouseEnter:v=>{v.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.3)",v.currentTarget.style.borderColor="rgba(255, 255, 255, 0.6)",v.currentTarget.style.transform="scale(1.1)"},onMouseLeave:v=>{v.currentTarget.style.backgroundColor="rgba(255, 255, 255, 0.2)",v.currentTarget.style.borderColor="rgba(255, 255, 255, 0.4)",v.currentTarget.style.transform="scale(1)"},"aria-label":"Start animated introduction",children:ee("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"white",style:{marginInlineStart:"4px"},children:ee("path",{d:"M8 5v14l11-7z"})})})]}),!c&&ee(br,{fallback:null,children:ee(wr,{title:r,content:e,duration:o,contentHeight:n,tiltAngle:i})})]})},pt=Cr;import{Suspense as Dr,lazy as Lr}from"react";import{cn as xr,GAP_VARIANT as kr,Stack as Sr}from"@donotdev/components";import{jsx as Ve}from"react/jsx-runtime";function Nr({className:e,itemCount:t=8,itemWidth:r,gap:o=kr.MEDIUM,direction:n="horizontal"}){let i=n==="vertical";return Ve("div",{className:xr("dndev-relative dndev-overflow-hidden",e),role:"status","aria-label":"Loading content",children:Ve(Sr,{direction:i?"column":"row",align:i?void 0:"center",gap:o,children:Array.from({length:t*2}).map((d,l)=>Ve("div",{className:"dndev-flex-shrink-0 dndev-animate-pulse",style:i?{height:"4rem",width:"100%",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}:{height:"4rem",width:r||"4rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}},l))})})}var ut=Nr;import{GAP_VARIANT as Hr}from"@donotdev/components";import{jsx as Ye}from"react/jsx-runtime";var $r=Lr(()=>Promise.resolve().then(()=>(ht(),ft))),Gr=e=>{let{gap:t=Hr.MEDIUM,direction:r="auto",...o}=e;return Ye(Dr,{fallback:Ye(ut,{itemCount:8,gap:t,direction:r==="up"||r==="down"?"vertical":"horizontal"}),children:Ye($r,{...o})})},bt=Gr;import{Eye as Or}from"lucide-react";import{useState as Xr}from"react";import{PortalButton as qr,cn as yt,Sheet as Wr,Code as Br,Stack as Vr}from"@donotdev/components";import{Fragment as Yr,jsx as Me,jsxs as _r}from"react/jsx-runtime";function Fr({data:e,sourceCode:t,language:r="tsx",title:o="Page Source",className:n}){let[i,d]=Xr(!1),l=t||e||"",u=c=>{};return _r(Yr,{children:[Me(qr,{icon:Or,onClick:()=>d(!0),className:yt("dndev-z-overlay",n),style:{position:"fixed",zIndex:"var(--z-overlay)",right:"var(--gap-sm)",bottom:"calc(var(--footer-height, 0px) + var(--gap-sm))"},tooltip:"Code Inspector","aria-label":"Code Inspector"}),Me(Wr,{open:i,onOpenChange:d,side:"bottom",className:yt("dndev-w-full",n),style:{width:"100%",height:"90%",maxHeight:"90dvh",borderRadius:"var(--radius-xl) var(--radius-xl) 0 0",display:"flex",flexDirection:"column",overflow:"hidden"},children:Me(Vr,{gap:"none",style:{flex:"1 1 auto",minHeight:0,overflow:"hidden"},children:Me(Br,{language:r,showCopyButton:!0,onCopy:u,children:l})})})]})}var wt=Fr;import{useEffect as Ur,useRef as Kr,useState as Qr}from"react";import{cn as _e,Button as Jr,Separator as jr,SEPARATOR_VARIANT as Zr,Text as ea,useIntersectionObserver as ta,getVariantDataAttrs as ra,surfaceVariants as aa,renderCardHeader as na,renderCardContent as oa}from"@donotdev/components";import{jsx as V,jsxs as Pe}from"react/jsx-runtime";var Ct={intersectionThreshold:.5,intersectionRootMargin:"0px 0px -20% 0px"},ia=({items:e,className:t,ariaLabel:r,variant:o,style:n,threshold:i=Ct.intersectionThreshold})=>{let[d,l]=Qr(0),u=Kr(null),m=e.some(v=>v.customHeight)?Math.max(...e.map(v=>v.customHeight||0).filter(v=>v>0)):null,s={small:1,medium:2,large:3},f=e.reduce((v,w)=>{let b=w.estimatedHeight||"medium",g=s[b]||2,C=s[v]||2;return g>C?b:v},"medium");return V("div",{className:_e("dndev-relative dndev-stacked-cards-container",t),ref:u,"aria-label":r,style:{"--e":d.toString()},children:e.map((v,w)=>V(sa,{item:v,index:w,entered:d,onEnter:()=>l(w),totalItems:e.length,cardProps:{variant:o,style:n},maxEstimatedHeight:f,maxCustomHeight:m,threshold:i},w))})},sa=({item:e,index:t,entered:r,onEnter:o,totalItems:n,cardProps:i,maxEstimatedHeight:d,maxCustomHeight:l,threshold:u})=>{let{ref:c,isIntersecting:m}=ta({threshold:u,rootMargin:Ct.intersectionRootMargin});Ur(()=>{typeof window<"u"&&m&&o()},[m,o]);let s=na(e.icon,e.title,e.subtitle),f=oa(e.content),v=!!f;return V("section",{ref:c,className:"dndev-relative",style:{zIndex:n-t-1},children:V("div",{className:_e("dndev-relative dndev-overflow-hidden stack","dndev-min-w-0"),"data-size":l?void 0:d,"data-stacked":t>r?"true":"false",style:{"--i":t.toString(),...l&&{"--dynamic-height":`${l}px`},...i.style},children:Pe("div",{className:_e("dndev-card",aa({variant:i.variant}),"dndev-relative dndev-overflow-hidden dndev-h-full"),...ra({variant:i.variant}),"data-role":"card","data-clickable":e.onClick?"true":void 0,onClick:e.onClick,style:i.style,children:[Pe("div",{className:"stack-content",children:[Pe("div",{className:"dndev-stacked-cards-body",children:[Pe("div",{className:"dndev-stacked-cards-left",children:[s,e.description&&V(ea,{as:"p",level:"small",variant:"muted",children:e.description})]}),V(jr,{orientation:"vertical",variant:Zr.ACCENT,className:"dndev-stacked-cards-separator"}),v&&V("div",{className:"dndev-stacked-cards-right",children:f})]}),e.cta&&V("div",{className:"dndev-stacked-cards-cta",children:V(Jr,{onClick:e.onClick,variant:e.cta.variant||"primary",icon:e.cta.icon,children:e.cta.text})}),V("div",{className:"dndev-stacked-cards-spacer"})]}),V("div",{className:"dndev-stacked-cards-number",children:e.number?String(e.number):String(t+1).padStart(2,"0")})]})})})},xt=ia;import{jsx as la}from"react/jsx-runtime";var da=function(t){return la(xt,{...t})},kt=da;import{useCallback as ca}from"react";import{cn as ma,useViewportVisibility as pa}from"@donotdev/components";import{jsx as St}from"react/jsx-runtime";var ua=({items:e=[],direction:t="fade-in",stagger:r=100,threshold:o,distance:n,duration:i,once:d=!1,viewport:l=!0,overrides:u=[],className:c,children:m})=>{let{ref:s,isVisible:f,hasTriggered:v,visibleItems:w,isItemVisible:b}=pa({threshold:o,once:d,trackItems:l,enableScrollListener:l}),g=ca(S=>{let N=u.find(X=>X.index===S);if(N)return N.direction;switch(t){case"alternate-h":return S%2===0?"left":"right";case"alternate-v":return S%2===0?"top":"bottom";default:return t}},[t,u]),C=()=>e.map((S,N)=>{let X=g(N),F=N*r,te=l?b(N):f;return St("div",{className:"dndev-reveal-item","data-direction":X,"data-visible":te,style:{"--reveal-delay":`${F}ms`,"--reveal-index":N,...n!==void 0&&{"--reveal-distance":`${n}vw`},...i!==void 0&&{"--reveal-duration":`${i}ms`}},children:S},N)});return St("div",{ref:s,className:ma("dndev-reveal-container",f&&"dndev-reveal-visible",c),"data-direction":t,"data-stagger":r,children:e.length>0?C():m})},ye=ua;import{useState as va,useEffect as ga}from"react";import{cn as Nt,Card as Tt,renderCardContent as Rt,useIntersectionObserver as fa}from"@donotdev/components";import{useBreakpoint as ha}from"@donotdev/core";import{jsx as M,jsxs as ae}from"react/jsx-runtime";var ba=function({steps:t,className:r,variant:o}){let[n,i]=va(0),d=ha("isLaptopOrDesktop"),l=t.length>1?n/(t.length-1)*100:0;return d?M("div",{className:Nt("dndev-roadmap",r),children:ae("div",{className:"dndev-roadmap-desktop",style:{"--step-count":t.length},children:[ae("div",{className:"dndev-roadmap-timeline",children:[M("div",{className:"dndev-roadmap-timeline-bg"}),M("div",{className:"dndev-roadmap-timeline-progress",style:{width:`${l}%`}})]}),M("div",{className:"dndev-roadmap-grid",style:{gridTemplateColumns:`repeat(${t.length}, 1fr)`},children:t.map((u,c)=>{let m=u.icon,s=c<=n,f=c===n;return ae("div",{className:"dndev-roadmap-step",onMouseEnter:()=>i(c),children:[M("div",{className:"dndev-roadmap-node","data-active":s,children:M(m,{})}),ae(Tt,{title:u.title,subtitle:u.subtitle,variant:o,className:"dndev-roadmap-card","data-active":f,footer:u.content?M("div",{className:"dndev-roadmap-content",children:Rt(u.content)}):void 0,children:[M("span",{className:"dndev-roadmap-phase",children:u.phase}),u.description&&M("p",{className:"dndev-roadmap-description",children:u.description})]})]},c)})})]})}):M("div",{className:Nt("dndev-roadmap",r),children:ae("div",{className:"dndev-roadmap-mobile",children:[M("div",{className:"dndev-roadmap-timeline-vertical",children:M("div",{className:"dndev-roadmap-timeline-vertical-progress",style:{height:`${l}%`}})}),t.map((u,c)=>M(ya,{step:u,index:c,isActive:c<=n,variant:o,onEnter:()=>i(c)},c))]})})},ya=({step:e,index:t,isActive:r,variant:o,onEnter:n})=>{let{ref:i,isIntersecting:d}=fa({threshold:.5,rootMargin:"0px 0px -20% 0px"});ga(()=>{typeof window<"u"&&d&&n()},[d,n]);let l=e.icon;return ae("div",{ref:i,className:"dndev-roadmap-step-mobile",children:[M("div",{className:"dndev-roadmap-node-mobile","data-active":r,children:M(l,{})}),ae(Tt,{title:e.title,subtitle:e.subtitle,variant:o,className:"dndev-roadmap-card-mobile","data-active":r,footer:e.content?M("div",{className:"dndev-roadmap-content",children:Rt(e.content)}):void 0,children:[M("span",{className:"dndev-roadmap-phase",children:e.phase}),e.description&&M("p",{className:"dndev-roadmap-description",children:e.description})]})]})},Mt=ba;import{jsx as Ca}from"react/jsx-runtime";var wa=function(t){return Ca(Mt,{...t})},Pt=wa;import{jsx as Ue,jsxs as ka}from"react/jsx-runtime";function xa({status:e,animationClass:t}){return Ue("svg",{width:"100%",height:"100%",viewBox:"0 0 512 512",className:"drop--lg",preserveAspectRatio:"xMidYMid meet",children:ka("g",{transform:"translate(0,512) scale(0.1,-0.1)",children:[Ue("path",{d:`M2465 4956 c-60 -28 -97 -66 -124 -126 -20 -44 -21 -63 -21 -630 0
|
|
2
2
|
-358 -4 -602 -11 -629 -21 -91 -84 -136 -207 -147 l-69 -7 -6 117 c-43 737
|
|
3
3
|
-303 1125 -722 1075 -168 -21 -359 -165 -522 -394 -459 -646 -810 -1966 -779
|
|
4
4
|
-2930 20 -639 129 -1031 311 -1121 50 -24 63 -26 126 -21 94 8 164 42 314 151
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
76 -3 126 21 182 90 291 482 311 1121 26 809 -217 1888 -584 2599 -104 200
|
|
11
11
|
-174 311 -271 428 -230 277 -488 368 -725 255 -258 -123 -411 -480 -443 -1033
|
|
12
12
|
l-6 -117 -69 7 c-123 11 -186 56 -207 147 -7 27 -11 270 -11 629 l0 585 -24
|
|
13
|
-
50 c-59 125 -193 177 -311 121z`,fill:"none",stroke:"currentColor",strokeWidth:"80",className:"/20"}),
|
|
13
|
+
50 c-59 125 -193 177 -311 121z`,fill:"none",stroke:"currentColor",strokeWidth:"80",className:"/20"}),Ue("path",{d:`M2465 4956 c-60 -28 -97 -66 -124 -126 -20 -44 -21 -63 -21 -630 0
|
|
14
14
|
-358 -4 -602 -11 -629 -21 -91 -84 -136 -207 -147 l-69 -7 -6 117 c-43 737
|
|
15
15
|
-303 1125 -722 1075 -168 -21 -359 -165 -522 -394 -459 -646 -810 -1966 -779
|
|
16
16
|
-2930 20 -639 129 -1031 311 -1121 50 -24 63 -26 126 -21 94 8 164 42 314 151
|
|
@@ -22,4 +22,4 @@ l-6 -117 -69 7 c-123 11 -186 56 -207 147 -7 27 -11 270 -11 629 l0 585 -24
|
|
|
22
22
|
76 -3 126 21 182 90 291 482 311 1121 26 809 -217 1888 -584 2599 -104 200
|
|
23
23
|
-174 311 -271 428 -230 277 -488 368 -725 255 -258 -123 -411 -480 -443 -1033
|
|
24
24
|
l-6 -117 -69 7 c-123 11 -186 56 -207 147 -7 27 -11 270 -11 629 l0 585 -24
|
|
25
|
-
50 c-59 125 -193 177 -311 121z`,fill:"currentColor",className:`${t||"breath-lung-442"} ${e==="complete"?"text-success":e==="active"?"text-primary active":e==="paused"?"text-primary active paused":"text-primary/40"}`})]})})}import{RotateCw as Jr}from"lucide-react";import{Button as kt,BUTTON_VARIANT as jr,Stack as ze}from"@donotdev/components";import{jsx as ae,jsxs as Ae}from"react/jsx-runtime";function Zr({status:e,animation:t,instructions:r,debug:o=!1,onSkip:i,statusValue:n,onRestart:c,isPaused:m=!1,isComplete:f=!1}){return Ae(ze,{direction:"column",align:"center",justify:"center",gap:"large",style:{width:"100%",height:"100%"},className:"dndev-relative",children:[o&&Ae(ze,{gap:"tight",className:"dndev-absolute",style:{top:"var(--gap-md)",insetInlineEnd:"var(--gap-md)",zIndex:20},children:[ae("div",{style:{fontSize:"var(--font-size-sm)",backgroundColor:"rgb(234 179 8)",color:"rgb(113 63 18)",borderRadius:"var(--radius)",padding:"var(--gap-sm) var(--gap-md)"},children:"\u{1F41B} Debug Mode"}),n&&Ae("div",{style:{fontSize:"var(--font-size-sm)",backgroundColor:"rgb(59 130 246)",color:"rgb(30 58 138)",borderRadius:"var(--radius)",padding:"var(--gap-sm) var(--gap-md)"},children:["Status: ",n]}),i&&ae(kt,{variant:jr.DESTRUCTIVE,onClick:i,children:"Skip \u2192"})]}),e&&ae(ze,{direction:"column",gap:"tight",align:"center",children:e}),Ae("div",{className:"dndev-relative dndev-flex dndev-items-center dndev-justify-center dndev-flex-shrink-0",style:{width:"min(400px, 35vh)",height:"min(400px, 35vh)",aspectRatio:"1 / 1"},children:[t,m&&ae("div",{className:"dndev-absolute dndev-inset-0 dndev-flex dndev-items-center dndev-justify-center dndev-z-breadcrumbs",style:{backgroundColor:"rgb(from var(--background) r g b / 0.5)",backdropFilter:"blur(8px)",borderRadius:"var(--radius-lg)"},children:ae("span",{style:{fontSize:"3.75rem"},children:"\u23F8\uFE0F"})}),f&&c&&ae(kt,{floating:!0,icon:Jr,onClick:c,"aria-label":"Do another cycle"})]}),ae(ze,{gap:"tight",align:"center",style:{textAlign:"center",maxWidth:"28rem"},children:r})]})}import{Suspense as va,lazy as fa}from"react";import{cn as ea,Stack as St}from"@donotdev/components";import{Fragment as ra,jsx as Z,jsxs as Nt}from"react/jsx-runtime";function ta({className:e,itemCount:t=1,showArrows:r=!0,showDots:o=!1,showProgress:i=!1}){return Nt("div",{className:ea("dndev-relative dndev-overflow-hidden",e),role:"status","aria-label":"Loading carousel",children:[Z("div",{className:"dndev-overflow-hidden",children:Z(St,{direction:"row",children:Array.from({length:t}).map((n,c)=>Z("div",{className:"dndev-w-full dndev-flex-shrink-0",children:Z("div",{className:"dndev-animate-pulse",style:{height:"16rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}})},c))})}),r&&Nt(ra,{children:[Z("div",{className:"dndev-absolute dndev-z-breadcrumbs dndev-animate-pulse",style:{left:"1rem",top:"50%",transform:"translateY(-50%)",width:"2.5rem",height:"2.5rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)"}}),Z("div",{className:"dndev-absolute dndev-z-breadcrumbs dndev-animate-pulse",style:{right:"1rem",top:"50%",transform:"translateY(-50%)",width:"2.5rem",height:"2.5rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)"}})]}),o&&Z(St,{direction:"row",gap:"tight",className:"dndev-absolute dndev-z-breadcrumbs",style:{bottom:"1rem",left:"50%",transform:"translateX(-50%)"},children:Array.from({length:t}).map((n,c)=>Z("div",{className:"dndev-animate-pulse",style:{width:"0.5rem",height:"0.5rem",backgroundColor:"var(--muted)",borderRadius:"9999px"}},c))}),i&&Z("div",{className:"dndev-absolute dndev-left-0 dndev-animate-pulse",style:{bottom:0,right:0,height:"0.25rem",backgroundColor:"var(--muted)"}})]})}var Tt=ta;import{jsx as je}from"react/jsx-runtime";var ha=fa(()=>Promise.resolve().then(()=>(Et(),Mt))),ya=e=>{let{showArrows:t=!0,showDots:r=!0,showProgress:o=!1}=e;return je(va,{fallback:je(Tt,{showArrows:t,showDots:r,showProgress:o}),children:je(ha,{...e})})},ba=ya;import{lazy as Ta,Suspense as Ra}from"react";import{Card as Ma,Grid as Ea}from"@donotdev/components";import{jsx as De}from"react/jsx-runtime";var Pa=Ta(()=>Promise.resolve().then(()=>(At(),zt)));function za({title:e,items:t,gridCols:r=2,className:o,ariaLabel:i}){return De(Ra,{fallback:De(Ea,{gap:"medium",cols:2,children:t.map((n,c)=>De(Ma,{title:"Loading..."},c))}),children:De(Pa,{title:e,items:t,gridCols:r,className:o,ariaLabel:i})})}var Aa=za;import{Card as Ia,Text as Da,Stack as La}from"@donotdev/components";import{jsx as et,jsxs as Ga}from"react/jsx-runtime";var $a=({text:e,icon:t="\u{1F389}",className:r})=>et(Ia,{className:r,style:{textAlign:"center"},children:Ga(La,{gap:"tight",style:{padding:"var(--gap-md)"},children:[t&&et("div",{style:{fontSize:"var(--font-size-2xl)"},children:t}),et(Da,{variant:"muted",children:e})]})}),Ha=$a;import{CheckCircle as Le}from"lucide-react";import{Dialog as Xa,Card as $e,Badge as qa,BADGE_VARIANT as Oa,Stack as F,Grid as Wa}from"@donotdev/components";import{jsx as b,jsxs as W}from"react/jsx-runtime";function Ba({open:e,onOpenChange:t,guide:r,icon:o}){let i=o;return b(Xa,{open:e,onOpenChange:t,title:W(F,{direction:"row",align:"center",gap:"medium",children:[i&&b(i,{className:"dndev-size-touch",style:{color:"var(--primary)"}}),b("div",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700},children:r.title})]}),description:b("div",{style:{fontSize:"var(--font-size-lg)"},children:r.subtitle}),style:{maxWidth:"56rem",maxHeight:"90dvh",overflowY:"auto"},children:W(F,{gap:"large",children:[r.quickStart&&W($e,{title:W(F,{direction:"row",align:"center",gap:"medium",children:[b(Le,{className:"dndev-size-md",style:{color:"var(--secondary)"}}),r.quickStart.title]}),children:[b("div",{className:"dndev-surface",style:{backgroundColor:"var(--muted)",padding:"var(--gap-md)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border)"},children:b("code",{style:{color:"var(--muted-foreground)",fontSize:"var(--font-size-sm)",fontFamily:"monospace"},children:r.quickStart.code})}),b("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",marginTop:"var(--gap-sm)"},children:r.quickStart.description})]}),r.steps&&W(F,{gap:"medium",children:[b("h3",{style:{fontSize:"var(--font-size-xl)",fontWeight:600},children:"Step by Step Process"}),b(F,{gap:"medium",children:r.steps.map((n,c)=>{let m=n.icon;return b("div",{className:"dndev-relative",children:W($e,{style:{overflow:"visible"},children:[b("div",{className:"dndev-absolute",style:{top:"-0.75rem",left:"-0.75rem",zIndex:20},children:b("div",{className:"dndev-flex dndev-items-center dndev-justify-center",style:{backgroundColor:"var(--primary)",color:"var(--primary-foreground)",borderRadius:"9999px",fontSize:"var(--font-size-sm)",fontWeight:700,boxShadow:"var(--shadow-xl)",border:"2px solid var(--background)",width:"2rem",height:"2rem"},children:c+1})}),W("div",{children:[W(F,{direction:"row",align:"center",gap:"medium",style:{paddingTop:"var(--gap-lg)",marginBottom:"var(--gap-md)"},children:[b(m,{className:"dndev-size-md",style:{color:"var(--primary)"}}),b("div",{style:{fontSize:"var(--font-size-lg)",fontWeight:600},children:n.title})]}),W(F,{gap:"large",children:[b("p",{style:{color:"var(--muted-foreground)"},children:n.description}),n.code&&b("div",{className:"dndev-surface",style:{backgroundColor:"var(--muted)",padding:"var(--gap-md)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border)"},children:b("code",{style:{color:"var(--muted-foreground)",fontSize:"var(--font-size-sm)",fontFamily:"monospace"},children:n.code})}),n.details&&b("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:n.details})]})]})]})},c)})})]}),r.features&&b($e,{title:W(F,{direction:"row",align:"center",gap:"medium",children:[b(Le,{className:"dndev-size-md",style:{color:"var(--secondary)"}}),"What You Get Out of the Box"]}),children:b(F,{gap:"medium",children:r.features.map((n,c)=>W(F,{direction:"row",align:"center",gap:"medium",style:{fontSize:"var(--font-size-sm)"},children:[b(Le,{className:"dndev-size-sm",style:{color:"var(--secondary)",flexShrink:0}}),b("span",{style:{color:"var(--muted-foreground)"},children:n})]},c))})}),r.templates&&b($e,{title:W(F,{direction:"row",align:"center",gap:"medium",children:[b(Le,{className:"dndev-size-md",style:{color:"var(--accent)"}}),"Available Templates"]}),children:b(Wa,{cols:3,gap:"medium",children:r.templates.map((n,c)=>W(F,{gap:"tight",children:[b(qa,{variant:Oa.OUTLINE,className:"dndev-justify-center",style:{width:"100%"},children:n.name}),b("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:n.description})]},c))})})]})})}import{Card as Va,Text as It,GAP_VARIANT as Fa,Grid as Dt}from"@donotdev/components";import{jsx as ce,jsxs as Lt}from"react/jsx-runtime";var Ya=({left:e,right:t,leftDirection:r="left",rightDirection:o="right",threshold:i,stagger:n=200,distance:c,duration:m,gap:f=Fa.LARGE,className:u,align:l="start",useStatCards:s=!1})=>{let p=()=>s&&Array.isArray(t)?ce(Dt,{cols:2,gap:"medium",children:t.map((S,w)=>ce(Va,{children:Lt("div",{style:{padding:"var(--gap-lg)"},children:[ce(It,{level:"h3",children:S.title}),ce(It,{as:"p",variant:"muted",children:S.description})]})},w))}):t,y={none:"dndev-gap-none",tight:"dndev-gap-sm",medium:"dndev-gap-md",large:"dndev-gap-lg"}[f];return Lt(Dt,{cols:2,gap:f,align:l,className:u,children:[ce(be,{direction:r,threshold:i,stagger:n,distance:c,duration:m,items:[e]}),ce(be,{direction:o,threshold:i,stagger:n,distance:c,duration:m,items:[p()]})]})},_a=Ya;import{Button as Ua,Input as Ka,cn as tt,Stack as Qa}from"@donotdev/components";import{jsx as $t,jsxs as Za}from"react/jsx-runtime";function Ja({input:e,button:t,className:r}){return Za(Qa,{align:"center",justify:"center",gap:"medium",className:tt("dndev-w-full",r),children:[$t(Ka,{value:e.value,onChange:o=>e.onChange(o.target.value),placeholder:e.placeholder,maxLength:e.maxLength,className:tt("dndev-w-full",e.className),style:{textAlign:"center"},"aria-label":e.label||"Input",autoComplete:"off",spellCheck:!1}),$t(Ua,{variant:t.variant||"primary",onClick:t.onClick,icon:t.icon,className:tt("dndev-w-full",t.className),style:{paddingInline:"2rem"},children:t.label})]})}var ja=Ja;import{Suspense as gn,lazy as vn}from"react";import{Fragment as en}from"react";import{cn as Ht,Stack as oe}from"@donotdev/components";import{jsx as E,jsxs as ee}from"react/jsx-runtime";function tn({stepCount:e=3,className:t,direction:r="horizontal"}){let o=Array.from({length:e},(i,n)=>n);return r==="vertical"?E("section",{className:Ht("dndev-w-full dndev-overflow-hidden",t),children:E("div",{className:"dndev-relative dndev-mx-auto",style:{maxWidth:"72rem",padding:"0 var(--content-padding)"},children:E("div",{className:"dndev-grid dndev-md:grid-cols-2 dndev-lg:grid-cols-3",style:{gap:"var(--gap-lg)"},children:o.map(i=>E("div",{style:{transform:i%3===1?"translateY(3rem)":i%3===2?"translateY(6rem)":void 0},children:ee("div",{style:{backgroundColor:"var(--background)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border)",boxShadow:"var(--shadow-sm)",padding:"var(--gap-md)"},children:[ee(oe,{direction:"row",align:"start",gap:"medium",style:{marginBottom:"var(--gap-md)"},children:[E("div",{className:"dndev-animate-pulse",style:{width:"3rem",height:"3rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}}),ee(oe,{gap:"tight",flex:"1",className:"dndev-min-w-0",children:[E("div",{className:"dndev-animate-pulse",style:{height:"1.5rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"75%"}}),E("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"100%"}})]})]}),ee(oe,{gap:"tight",children:[E("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"100%"}}),E("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"66%"}})]})]})},i))})})}):E("section",{className:Ht("dndev-w-full",t),children:E("div",{className:"dndev-mx-auto dndev-flex dndev-flex-col dndev-md:flex-row dndev-md:items-center dndev-gap-md",style:{maxWidth:"80rem"},children:o.map(i=>{let n=i===e-1;return ee(en,{children:[E("div",{className:"dndev-flex-1",children:ee("div",{className:"dndev-h-full",style:{backgroundColor:"var(--background)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border)",boxShadow:"var(--shadow-sm)",padding:"var(--gap-md)"},children:[ee(oe,{direction:"row",align:"start",gap:"medium",style:{marginBottom:"var(--gap-md)"},children:[E("div",{className:"dndev-animate-pulse",style:{width:"3rem",height:"3rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}}),ee(oe,{gap:"tight",flex:"1",className:"dndev-min-w-0",children:[E("div",{className:"dndev-animate-pulse",style:{height:"1.25rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"75%"}}),E("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"100%"}})]})]}),ee(oe,{gap:"tight",children:[E("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"100%"}}),E("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"66%"}})]})]})}),!n&&E(oe,{justify:"center",style:{paddingTop:"var(--gap-md)",paddingBottom:"var(--gap-md)"},children:E("div",{className:"dndev-animate-pulse",style:{width:"2rem",height:"1px",backgroundColor:"var(--muted)"}})})]},i)})})})}var Gt=tn;import{jsx as at}from"react/jsx-runtime";var fn=vn(()=>Promise.resolve().then(()=>(Wt(),Ot)));function hn(e){return at(gn,{fallback:at(Gt,{stepCount:e.items?.length||3,direction:e.direction==="descending"?"vertical":"horizontal"}),children:at(fn,{...e})})}var yn=hn;export{Zr as BreathingExerciseLayout,ba as Carousel,Aa as ComparisonGrid,Ha as CongratulationsCard,ct as Crawl,Ba as GuideModal,yt as InspectorGadget,Kr as LungsAnimation,ft as Marquee,be as Reveal,_a as SplitReveal,Ct as StackedCards,ja as StartChallengeForm,yn as Waterfall};
|
|
25
|
+
50 c-59 125 -193 177 -311 121z`,fill:"currentColor",className:`${t||"breath-lung-442"} ${e==="complete"?"text-success":e==="active"?"text-primary active":e==="paused"?"text-primary active paused":"text-primary/40"}`})]})})}import{RotateCw as Sa}from"lucide-react";import{Button as Et,BUTTON_VARIANT as Na,Stack as Ee}from"@donotdev/components";import{jsx as ne,jsxs as ze}from"react/jsx-runtime";function Ta({status:e,animation:t,instructions:r,debug:o=!1,onSkip:n,statusValue:i,onRestart:d,isPaused:l=!1,isComplete:u=!1}){return ze(Ee,{direction:"column",align:"center",justify:"center",gap:"large",style:{width:"100%",height:"100%"},className:"dndev-relative",children:[o&&ze(Ee,{gap:"tight",className:"dndev-absolute",style:{top:"var(--gap-md)",insetInlineEnd:"var(--gap-md)",zIndex:20},children:[ne("div",{style:{fontSize:"var(--font-size-sm)",backgroundColor:"rgb(234 179 8)",color:"rgb(113 63 18)",borderRadius:"var(--radius)",padding:"var(--gap-sm) var(--gap-md)"},children:"\u{1F41B} Debug Mode"}),i&&ze("div",{style:{fontSize:"var(--font-size-sm)",backgroundColor:"rgb(59 130 246)",color:"rgb(30 58 138)",borderRadius:"var(--radius)",padding:"var(--gap-sm) var(--gap-md)"},children:["Status: ",i]}),n&&ne(Et,{variant:Na.DESTRUCTIVE,onClick:n,children:"Skip \u2192"})]}),e&&ne(Ee,{direction:"column",gap:"tight",align:"center",children:e}),ze("div",{className:"dndev-relative dndev-flex dndev-items-center dndev-justify-center dndev-flex-shrink-0",style:{width:"min(400px, 35vh)",height:"min(400px, 35vh)",aspectRatio:"1 / 1"},children:[t,l&&ne("div",{className:"dndev-absolute dndev-inset-0 dndev-flex dndev-items-center dndev-justify-center dndev-z-breadcrumbs",style:{backgroundColor:"rgb(from var(--background) r g b / 0.5)",backdropFilter:"blur(8px)",borderRadius:"var(--radius-lg)"},children:ne("span",{style:{fontSize:"3.75rem"},children:"\u23F8\uFE0F"})}),u&&d&&ne(Et,{floating:!0,icon:Sa,onClick:d,"aria-label":"Do another cycle"})]}),ne(Ee,{gap:"tight",align:"center",style:{textAlign:"center",maxWidth:"28rem"},children:r})]})}import{Suspense as Wa,lazy as Ba}from"react";import{cn as Ra,Stack as zt}from"@donotdev/components";import{Fragment as Pa,jsx as Q,jsxs as At}from"react/jsx-runtime";function Ma({className:e,itemCount:t=1,showArrows:r=!0,showDots:o=!1,showProgress:n=!1}){return At("div",{className:Ra("dndev-relative dndev-overflow-hidden",e),role:"status","aria-label":"Loading carousel",children:[Q("div",{className:"dndev-overflow-hidden",children:Q(zt,{direction:"row",children:Array.from({length:t}).map((i,d)=>Q("div",{className:"dndev-w-full dndev-flex-shrink-0",children:Q("div",{className:"dndev-animate-pulse",style:{height:"16rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}})},d))})}),r&&At(Pa,{children:[Q("div",{className:"dndev-absolute dndev-z-breadcrumbs dndev-animate-pulse",style:{left:"1rem",top:"50%",transform:"translateY(-50%)",width:"2.5rem",height:"2.5rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)"}}),Q("div",{className:"dndev-absolute dndev-z-breadcrumbs dndev-animate-pulse",style:{right:"1rem",top:"50%",transform:"translateY(-50%)",width:"2.5rem",height:"2.5rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)"}})]}),o&&Q(zt,{direction:"row",gap:"tight",className:"dndev-absolute dndev-z-breadcrumbs",style:{bottom:"1rem",left:"50%",transform:"translateX(-50%)"},children:Array.from({length:t}).map((i,d)=>Q("div",{className:"dndev-animate-pulse",style:{width:"0.5rem",height:"0.5rem",backgroundColor:"var(--muted)",borderRadius:"9999px"}},d))}),n&&Q("div",{className:"dndev-absolute dndev-left-0 dndev-animate-pulse",style:{bottom:0,right:0,height:"0.25rem",backgroundColor:"var(--muted)"}})]})}var It=Ma;import{jsx as Ze}from"react/jsx-runtime";var Va=Ba(()=>Promise.resolve().then(()=>($t(),Lt))),Fa=e=>{let{showArrows:t=!0,showDots:r=!0,showProgress:o=!1}=e;return Ze(Wa,{fallback:Ze(It,{showArrows:t,showDots:r,showProgress:o}),children:Ze(Va,{...e})})},Ya=Fa;import{lazy as Za,Suspense as en}from"react";import{Card as tn,Grid as rn}from"@donotdev/components";import{jsx as Ie}from"react/jsx-runtime";var an=Za(()=>Promise.resolve().then(()=>(Ot(),Gt)));function nn({title:e,items:t,gridCols:r=2,className:o,ariaLabel:n}){return Ie(en,{fallback:Ie(rn,{gap:"medium",cols:2,children:t.map((i,d)=>Ie(tn,{title:"Loading..."},d))}),children:Ie(an,{title:e,items:t,gridCols:r,className:o,ariaLabel:n})})}var on=nn;import{Card as sn,Text as dn,Stack as ln}from"@donotdev/components";import{jsx as tt,jsxs as pn}from"react/jsx-runtime";var cn=({text:e,icon:t="\u{1F389}",className:r})=>tt(sn,{className:r,style:{textAlign:"center"},children:pn(ln,{gap:"tight",style:{padding:"var(--gap-md)"},children:[t&&tt("div",{style:{fontSize:"var(--font-size-2xl)"},children:t}),tt(dn,{variant:"muted",children:e})]})}),mn=cn;import{CheckCircle as De}from"lucide-react";import{Dialog as un,Card as Le,Badge as vn,BADGE_VARIANT as gn,Stack as O,Grid as fn}from"@donotdev/components";import{jsx as y,jsxs as L}from"react/jsx-runtime";function hn({open:e,onOpenChange:t,guide:r,icon:o}){let n=o;return y(un,{open:e,onOpenChange:t,title:L(O,{direction:"row",align:"center",gap:"medium",children:[n&&y(n,{className:"dndev-size-touch",style:{color:"var(--primary)"}}),y("div",{style:{fontSize:"var(--font-size-3xl)",fontWeight:700},children:r.title})]}),description:y("div",{style:{fontSize:"var(--font-size-lg)"},children:r.subtitle}),style:{maxWidth:"56rem",maxHeight:"90dvh",overflowY:"auto"},children:L(O,{gap:"large",children:[r.quickStart&&L(Le,{title:L(O,{direction:"row",align:"center",gap:"medium",children:[y(De,{className:"dndev-size-md",style:{color:"var(--secondary)"}}),r.quickStart.title]}),children:[y("div",{className:"dndev-surface",style:{backgroundColor:"var(--muted)",padding:"var(--gap-md)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border)"},children:y("code",{style:{color:"var(--muted-foreground)",fontSize:"var(--font-size-sm)",fontFamily:"monospace"},children:r.quickStart.code})}),y("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)",marginTop:"var(--gap-sm)"},children:r.quickStart.description})]}),r.steps&&L(O,{gap:"medium",children:[y("h3",{style:{fontSize:"var(--font-size-xl)",fontWeight:600},children:"Step by Step Process"}),y(O,{gap:"medium",children:r.steps.map((i,d)=>{let l=i.icon;return y("div",{className:"dndev-relative",children:L(Le,{style:{overflow:"visible"},children:[y("div",{className:"dndev-absolute",style:{top:"-0.75rem",left:"-0.75rem",zIndex:20},children:y("div",{className:"dndev-flex dndev-items-center dndev-justify-center",style:{backgroundColor:"var(--primary)",color:"var(--primary-foreground)",borderRadius:"9999px",fontSize:"var(--font-size-sm)",fontWeight:700,boxShadow:"var(--shadow-xl)",border:"2px solid var(--background)",width:"2rem",height:"2rem"},children:d+1})}),L("div",{children:[L(O,{direction:"row",align:"center",gap:"medium",style:{paddingTop:"var(--gap-lg)",marginBottom:"var(--gap-md)"},children:[y(l,{className:"dndev-size-md",style:{color:"var(--primary)"}}),y("div",{style:{fontSize:"var(--font-size-lg)",fontWeight:600},children:i.title})]}),L(O,{gap:"large",children:[y("p",{style:{color:"var(--muted-foreground)"},children:i.description}),i.code&&y("div",{className:"dndev-surface",style:{backgroundColor:"var(--muted)",padding:"var(--gap-md)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border)"},children:y("code",{style:{color:"var(--muted-foreground)",fontSize:"var(--font-size-sm)",fontFamily:"monospace"},children:i.code})}),i.details&&y("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:i.details})]})]})]})},d)})})]}),r.features&&y(Le,{title:L(O,{direction:"row",align:"center",gap:"medium",children:[y(De,{className:"dndev-size-md",style:{color:"var(--secondary)"}}),"What You Get Out of the Box"]}),children:y(O,{gap:"medium",children:r.features.map((i,d)=>L(O,{direction:"row",align:"center",gap:"medium",style:{fontSize:"var(--font-size-sm)"},children:[y(De,{className:"dndev-size-sm",style:{color:"var(--secondary)",flexShrink:0}}),y("span",{style:{color:"var(--muted-foreground)"},children:i})]},d))})}),r.templates&&y(Le,{title:L(O,{direction:"row",align:"center",gap:"medium",children:[y(De,{className:"dndev-size-md",style:{color:"var(--accent)"}}),"Available Templates"]}),children:y(fn,{cols:3,gap:"medium",children:r.templates.map((i,d)=>L(O,{gap:"tight",children:[y(vn,{variant:gn.OUTLINE,className:"dndev-justify-center",style:{width:"100%"},children:i.name}),y("p",{style:{fontSize:"var(--font-size-sm)",color:"var(--muted-foreground)"},children:i.description})]},d))})})]})})}import{Card as bn,Text as Xt,GAP_VARIANT as yn,Grid as qt}from"@donotdev/components";import{jsx as pe,jsxs as Wt}from"react/jsx-runtime";var wn=({left:e,right:t,leftDirection:r="left",rightDirection:o="right",threshold:n,stagger:i=200,distance:d,duration:l,gap:u=yn.LARGE,className:c,align:m="start",useStatCards:s=!1})=>{let f=()=>s&&Array.isArray(t)?pe(qt,{cols:2,gap:"medium",children:t.map((w,b)=>pe(bn,{children:Wt("div",{style:{padding:"var(--gap-lg)"},children:[pe(Xt,{level:"h3",children:w.title}),pe(Xt,{as:"p",variant:"muted",children:w.description})]})},b))}):t,v={none:"dndev-gap-none",tight:"dndev-gap-sm",medium:"dndev-gap-md",large:"dndev-gap-lg"}[u];return Wt(qt,{cols:2,gap:u,align:m,className:c,children:[pe(ye,{direction:r,threshold:n,stagger:i,distance:d,duration:l,items:[e]}),pe(ye,{direction:o,threshold:n,stagger:i,distance:d,duration:l,items:[f()]})]})},Cn=wn;import{Button as xn,Input as kn,cn as rt,Stack as Sn}from"@donotdev/components";import{jsx as Bt,jsxs as Rn}from"react/jsx-runtime";function Nn({input:e,button:t,className:r}){return Rn(Sn,{align:"center",justify:"center",gap:"medium",className:rt("dndev-w-full",r),children:[Bt(kn,{value:e.value,onChange:o=>e.onChange(o.target.value),placeholder:e.placeholder,maxLength:e.maxLength,className:rt("dndev-w-full",e.className),style:{textAlign:"center"},"aria-label":e.label||"Input",autoComplete:"off",spellCheck:!1}),Bt(xn,{variant:t.variant||"primary",onClick:t.onClick,icon:t.icon,className:rt("dndev-w-full",t.className),style:{paddingInline:"2rem"},children:t.label})]})}var Tn=Nn;import{Suspense as qn,lazy as Wn}from"react";import{Fragment as Mn}from"react";import{cn as Vt,Stack as ie}from"@donotdev/components";import{jsx as T,jsxs as J}from"react/jsx-runtime";function Pn({stepCount:e=3,className:t,direction:r="horizontal"}){let o=Array.from({length:e},(n,i)=>i);return r==="vertical"?T("section",{className:Vt("dndev-w-full dndev-overflow-hidden",t),children:T("div",{className:"dndev-relative dndev-mx-auto",style:{maxWidth:"72rem",padding:"0 var(--content-padding)"},children:T("div",{className:"dndev-grid dndev-md:grid-cols-2 dndev-lg:grid-cols-3",style:{gap:"var(--gap-lg)"},children:o.map(n=>T("div",{style:{transform:n%3===1?"translateY(3rem)":n%3===2?"translateY(6rem)":void 0},children:J("div",{style:{backgroundColor:"var(--background)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border)",boxShadow:"var(--shadow-sm)",padding:"var(--gap-md)"},children:[J(ie,{direction:"row",align:"start",gap:"medium",style:{marginBottom:"var(--gap-md)"},children:[T("div",{className:"dndev-animate-pulse",style:{width:"3rem",height:"3rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}}),J(ie,{gap:"tight",flex:"1",className:"dndev-min-w-0",children:[T("div",{className:"dndev-animate-pulse",style:{height:"1.5rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"75%"}}),T("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"100%"}})]})]}),J(ie,{gap:"tight",children:[T("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"100%"}}),T("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"66%"}})]})]})},n))})})}):T("section",{className:Vt("dndev-w-full",t),children:T("div",{className:"dndev-mx-auto dndev-flex dndev-flex-col dndev-md:flex-row dndev-md:items-center dndev-gap-md",style:{maxWidth:"80rem"},children:o.map(n=>{let i=n===e-1;return J(Mn,{children:[T("div",{className:"dndev-flex-1",children:J("div",{className:"dndev-h-full",style:{backgroundColor:"var(--background)",borderRadius:"var(--radius-lg)",border:"1px solid var(--border)",boxShadow:"var(--shadow-sm)",padding:"var(--gap-md)"},children:[J(ie,{direction:"row",align:"start",gap:"medium",style:{marginBottom:"var(--gap-md)"},children:[T("div",{className:"dndev-animate-pulse",style:{width:"3rem",height:"3rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius-lg)"}}),J(ie,{gap:"tight",flex:"1",className:"dndev-min-w-0",children:[T("div",{className:"dndev-animate-pulse",style:{height:"1.25rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"75%"}}),T("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"100%"}})]})]}),J(ie,{gap:"tight",children:[T("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"100%"}}),T("div",{className:"dndev-animate-pulse",style:{height:"1rem",backgroundColor:"var(--muted)",borderRadius:"var(--radius)",width:"66%"}})]})]})}),!i&&T(ie,{justify:"center",style:{paddingTop:"var(--gap-md)",paddingBottom:"var(--gap-md)"},children:T("div",{className:"dndev-animate-pulse",style:{width:"2rem",height:"1px",backgroundColor:"var(--muted)"}})})]},n)})})})}var Ft=Pn;import{jsx as nt}from"react/jsx-runtime";var Bn=Wn(()=>Promise.resolve().then(()=>(Kt(),Ut)));function Vn(e){return nt(qn,{fallback:nt(Ft,{stepCount:e.items?.length||3,direction:e.direction==="descending"?"vertical":"horizontal"}),children:nt(Bn,{...e})})}var Fn=Vn;export{Ta as BreathingExerciseLayout,Ya as Carousel,on as ComparisonGrid,mn as CongratulationsCard,pt as Crawl,hn as GuideModal,wt as InspectorGadget,xa as LungsAnimation,bt as Marquee,ye as Reveal,Pt as Roadmap,Cn as SplitReveal,kt as StackedCards,Tn as StartChallengeForm,Fn as Waterfall};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/adv-comps",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {},
|
|
53
53
|
"peerDependencies": {
|
|
54
|
-
"@donotdev/components": "0.0.
|
|
54
|
+
"@donotdev/components": "0.0.4",
|
|
55
55
|
"react": "^19.2.3",
|
|
56
56
|
"react-dom": "^19.2.3",
|
|
57
57
|
"shiki": "^3.20.0"
|