@donotdev/components 0.0.27 → 0.0.29

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.
Files changed (39) hide show
  1. package/dist/{CarouselContent-HEXWLSR2.css → CarouselContent-OQEW3MTR.css} +1 -1
  2. package/dist/{CarouselContent-WGDMI6BH.js → CarouselContent-W2TS6Y5R.js} +1 -1
  3. package/dist/CodeContent-ENVN76NP.css +1 -0
  4. package/dist/{CodeContent-RW7AXCX3.js → CodeContent-FLV5Y6KX.js} +1 -1
  5. package/dist/{MarqueeContent-25D2GMPK.css → MarqueeContent-AL2RBZAP.css} +1 -1
  6. package/dist/{MarqueeContent-DOKPFDYK.js → MarqueeContent-EKASHCRG.js} +1 -1
  7. package/dist/atomic/CallToAction/index.d.ts +40 -4
  8. package/dist/atomic/CallToAction/index.d.ts.map +1 -1
  9. package/dist/atomic/CallToAction/index.js +29 -4
  10. package/dist/atomic/Grid/index.d.ts +6 -0
  11. package/dist/atomic/Grid/index.d.ts.map +1 -1
  12. package/dist/atomic/Grid/index.js +2 -1
  13. package/dist/atomic/HeroSection/index.d.ts +44 -4
  14. package/dist/atomic/HeroSection/index.d.ts.map +1 -1
  15. package/dist/atomic/HeroSection/index.js +28 -4
  16. package/dist/atomic/Section/index.d.ts +29 -4
  17. package/dist/atomic/Section/index.d.ts.map +1 -1
  18. package/dist/atomic/Section/index.js +22 -6
  19. package/dist/atomic/Spinner/index.d.ts +11 -3
  20. package/dist/atomic/Spinner/index.d.ts.map +1 -1
  21. package/dist/atomic/Spinner/index.js +12 -6
  22. package/dist/atomic/Stack/index.d.ts +6 -0
  23. package/dist/atomic/Stack/index.d.ts.map +1 -1
  24. package/dist/atomic/Stack/index.js +2 -1
  25. package/dist/atomic/Text/index.d.ts +7 -2
  26. package/dist/atomic/Text/index.d.ts.map +1 -1
  27. package/dist/atomic/Text/index.js +2 -2
  28. package/dist/atomic/VideoPlayer/index.d.ts.map +1 -1
  29. package/dist/atomic/VideoPlayer/index.js +10 -1
  30. package/dist/{chunk-Q3J75GL4.js → chunk-EOCKFSHC.js} +1 -1
  31. package/dist/chunk-NCBN5O34.js +3 -0
  32. package/dist/index.js +4 -4
  33. package/dist/styles/index.css +314 -23
  34. package/dist/utils/constants.d.ts +11 -0
  35. package/dist/utils/constants.d.ts.map +1 -1
  36. package/dist/utils/constants.js +10 -0
  37. package/package.json +1 -1
  38. package/dist/CodeContent-EYAMBIQ2.css +0 -1
  39. package/dist/chunk-U37VKGRT.js +0 -3
@@ -1 +1 @@
1
- .dndev-stack{display:flex;flex-direction:column;width:100%;&[data-width=fit]{width:fit-content}&[data-width=auto]{width:auto}&[data-centered=true]{margin-inline:auto}&[data-direction=row],div&[data-direction=row]{flex-direction:row}&[data-direction=row-reverse]{flex-direction:row-reverse}&[data-direction=column-reverse]{flex-direction:column-reverse}&[data-wrap=wrap]{flex-wrap:wrap}&[data-wrap=nowrap]{flex-wrap:nowrap}&[data-wrap=wrap-reverse]{flex-wrap:wrap-reverse}&[data-align=start]{align-items:flex-start}&[data-align=center]{align-items:center}&[data-align=end]{align-items:flex-end}&[data-align=stretch]{align-items:stretch}&[data-align=baseline]{align-items:baseline}&[data-justify=start]{justify-content:flex-start}&[data-justify=center]{justify-content:center}&[data-justify=end]{justify-content:flex-end}&[data-justify=between]{justify-content:space-between}&[data-justify=around]{justify-content:space-around}&[data-justify=evenly]{justify-content:space-evenly}&[data-gap=none]{gap:var(--gap-none)}&[data-gap=tight]{gap:var(--gap-sm)}&[data-gap=medium]{gap:var(--gap-md)}&[data-gap=large]{gap:var(--gap-lg)}&[data-direction=row]>*{min-width:0}&[data-direction=row][data-wrap=nowrap]:not([data-overflow])>*{overflow:hidden}&[data-direction=row][data-wrap=wrap]:not([data-overflow])>*,&[data-direction=row][data-wrap=wrap-reverse]:not([data-overflow])>*{overflow:visible}&[data-direction=row][data-overflow=hidden]>*{overflow:hidden}&[data-direction=row][data-overflow=visible]>*{overflow:visible}&[data-direction=row][data-overflow=auto]>*{overflow:auto}&[data-direction=row][data-overflow=scroll]>*{overflow:scroll}&[data-rigid=true]>*{flex-shrink:0}&[data-nowrap=true]>*{white-space:nowrap}&[data-force=true]>*{align-self:inherit!important}}.dndev-carousel-slide{flex-shrink:0;box-sizing:border-box;width:calc(100% / var(--carousel-slides-mobile, 1))}@media(min-width:768px){.dndev-carousel-slide{width:calc(100% / var(--carousel-slides-tablet, 1))}}@media(min-width:1024px){.dndev-carousel-slide{width:calc(100% / var(--carousel-slides-laptop, 1))}}@media(min-width:1440px){.dndev-carousel-slide{width:calc(100% / var(--carousel-slides-desktop, 1))}}.dndev-carousel-slide[data-gap=tight]{padding-inline-end:var(--gap-sm)}.dndev-carousel-slide[data-gap=medium]{padding-inline-end:var(--gap-md)}.dndev-carousel-slide[data-gap=large]{padding-inline-end:var(--gap-lg)}
1
+ .dndev-stack{display:flex;flex-direction:column;width:100%;&[data-width=fit]{width:fit-content}&[data-width=auto]{width:auto}&[data-centered=true]{margin-inline:auto}&[data-direction=row],div&[data-direction=row]{flex-direction:row}&[data-direction=row-reverse]{flex-direction:row-reverse}&[data-direction=column-reverse]{flex-direction:column-reverse}&[data-wrap=wrap]{flex-wrap:wrap}&[data-wrap=nowrap]{flex-wrap:nowrap}&[data-wrap=wrap-reverse]{flex-wrap:wrap-reverse}&[data-align=start]{align-items:flex-start}&[data-align=center]{align-items:center}&[data-align=end]{align-items:flex-end}&[data-align=stretch]{align-items:stretch}&[data-align=baseline]{align-items:baseline}&[data-justify=start]{justify-content:flex-start}&[data-justify=center]{justify-content:center}&[data-justify=end]{justify-content:flex-end}&[data-justify=between]{justify-content:space-between}&[data-justify=around]{justify-content:space-around}&[data-justify=evenly]{justify-content:space-evenly}&[data-gap=none]{gap:var(--gap-none)}&[data-gap=tight]{gap:var(--gap-sm)}&[data-gap=medium]{gap:var(--gap-md)}&[data-gap=large]{gap:var(--gap-lg)}&[data-direction=row]>*{min-width:0}&[data-direction=row][data-wrap=nowrap]:not([data-overflow])>*{overflow:hidden}&[data-direction=row][data-wrap=wrap]:not([data-overflow])>*,&[data-direction=row][data-wrap=wrap-reverse]:not([data-overflow])>*{overflow:visible}&[data-direction=row][data-overflow=hidden]>*{overflow:hidden}&[data-direction=row][data-overflow=visible]>*{overflow:visible}&[data-direction=row][data-overflow=auto]>*{overflow:auto}&[data-direction=row][data-overflow=scroll]>*{overflow:scroll}&[data-rigid=true]>*{flex-shrink:0}&[data-nowrap=true]>*{white-space:nowrap}&[data-force=true]>*{align-self:inherit!important}&[data-text-align=start]{text-align:start}&[data-text-align=center]{text-align:center}&[data-text-align=end]{text-align:end}}.dndev-carousel-slide{flex-shrink:0;box-sizing:border-box;width:calc(100% / var(--carousel-slides-mobile, 1))}@media(min-width:768px){.dndev-carousel-slide{width:calc(100% / var(--carousel-slides-tablet, 1))}}@media(min-width:1024px){.dndev-carousel-slide{width:calc(100% / var(--carousel-slides-laptop, 1))}}@media(min-width:1440px){.dndev-carousel-slide{width:calc(100% / var(--carousel-slides-desktop, 1))}}.dndev-carousel-slide[data-gap=tight]{padding-inline-end:var(--gap-sm)}.dndev-carousel-slide[data-gap=medium]{padding-inline-end:var(--gap-md)}.dndev-carousel-slide[data-gap=large]{padding-inline-end:var(--gap-lg)}
@@ -1 +1 @@
1
- import{a as ye}from"./chunk-IFHHPSKN.js";import{c as he,f as pe}from"./chunk-FA4BDD6N.js";import{a as P,k as ve}from"./chunk-Q3J75GL4.js";import"./chunk-O2XFH626.js";import{ChevronLeft as je,ChevronRight as Ke,Play as Ve,Pause as Be}from"lucide-react";import{useRef as k,useState as w,useEffect as $,useLayoutEffect as Ge,useCallback as c,useMemo as Q,memo as Qe}from"react";import{Fragment as Je,jsx as l,jsxs as W}from"react/jsx-runtime";function We({items:n,renderItem:we,className:J,slideClassName:xe,showArrows:Ce=!0,showDots:Me=!1,showProgress:ke=!0,autoplay:O=!0,autoplayInterval:Y=5e3,transition:_="slide",infinite:g=!0,slidesToShow:E=1,gap:U="none",swipeable:Z=!0,momentum:S=!0,onActiveChange:ee,onSlideClick:Ee,keyExtractor:te,"aria-label":Ie="Premium carousel",pauseOnHover:re=!0,pauseOnInvisible:Ye=!0,showPlayPause:Re=!0,lazy:ne=!1,preloadDistance:ae=1}){let oe=Array.isArray(E)?E:[E,E,E,E],[X,N,A,F]=oe,d=Math.max(...oe),z=k(null),y=k(null),[s,De]=w(0),[x,se]=w(O),[le,ie]=w(!1),[I,Se]=w(!0),[u,H]=w({isDragging:!1,startX:0,currentX:0,startTime:0,velocity:0}),j=k(null),h=k(null),m=k(null),[L,ce]=w("idle"),[de,ue]=w(!1);$(()=>{if(typeof window>"u")return;let e=window.matchMedia("(prefers-reduced-motion: reduce)");return ue(e.matches),pe(e,"change",r=>{ue(r.matches)})},[]);let[K,ge]=w(()=>typeof window>"u"?X:window.matchMedia("(min-width: 1440px)").matches?F:window.matchMedia("(min-width: 1024px)").matches?A:window.matchMedia("(min-width: 768px)").matches?N:X);$(()=>{if(typeof window>"u")return;let e=[{mq:window.matchMedia("(min-width: 1440px)"),value:F},{mq:window.matchMedia("(min-width: 1024px)"),value:A},{mq:window.matchMedia("(min-width: 768px)"),value:N}],t=()=>{for(let{mq:a,value:o}of e)if(a.matches){ge(o);return}ge(X)},r=e.map(({mq:a})=>{let o=()=>t();return a.addEventListener("change",o),()=>a.removeEventListener("change",o)});return()=>r.forEach(a=>a())},[X,N,A,F]);let q=Q(()=>({tension:.3,friction:.8,mass:1}),[]),Xe=Q(()=>{if(!g||n.length<=d)return n;let e=Math.max(d,2),t=n.slice(-e),r=n.slice(0,e);return[...t,...n,...r]},[n,g,d]),i=Q(()=>100/K,[K]),Le=Math.ceil(K/2)-1,me=k(!1);Ge(()=>{if(me.current||!g||!y.current||n.length<=d)return;me.current=!0;let e=Math.max(d,2);y.current.style.transform=`translateX(-${e*i}%)`},[g,d,i,n.length]);let Pe=c(e=>{if(!g)return e;let t=Math.max(d,2);return((e-t)%n.length+n.length)%n.length},[g,n.length,d]),be=k(I);be.current=I;let V=c((e,t,r=0)=>{if(!S)return;let a=parseFloat(e.style.transform.replace("translateX(","").replace("%)",""))||0,o=r,f=Date.now(),v=()=>{let C=(Date.now()-f)/1e3,D=a-t,M=-q.tension*D,Oe=-q.friction*o,He=(M+Oe)/q.mass;o+=He*C,a+=o*C,e.style.transform=`translateX(${a}%)`,be.current?Math.abs(D)>.1||Math.abs(o)>.1?h.current=requestAnimationFrame(v):(e.style.transform=`translateX(${t}%)`,e.style.transition="none",h.current=null):(e.style.transform=`translateX(${t}%)`,e.style.transition="none",h.current=null)};h.current!==null&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(v)},[S,q]),fe=c((e,t,r)=>{switch(_){case"fade":{e.style.transition=`opacity ${r} ease-in-out`,e.style.opacity="0";let o=parseInt(r,10)||300;m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{m.current=null,e.style.transform=`translateX(${t}%)`,e.style.opacity="1"},o/2);break}case"scale":{e.style.transition=`transform ${r} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,e.style.transform=`translateX(${t}%) scale(0.95)`;let o=parseInt(r,10)||300;m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{m.current=null,e.style.transform=`translateX(${t}%) scale(1)`},o/2);break}case"parallax":e.style.transition=`transform ${r} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,e.style.transform=`translateX(${t}%)`,e.querySelectorAll('[role="group"]').forEach((o,f)=>{let v=o,p=(f-Math.abs(t)/i)*.1;v.style.transform=`translateX(${p}%)`});break;default:e.style.transition=`transform ${r} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,e.style.transform=`translateX(${t}%)`;break}},[_,i]),b=c((e,t=!1)=>{if(L!=="idle"&&!t||!I&&!t)return;let r=y.current;if(!r)return;let a=e;if(g){let p=Math.max(d,2);a=e+p}else a=Math.max(0,Math.min(e,n.length-1));let o=-(a*i),f=t||de?"0ms":"300ms";t||ce("transitioning"),fe(r,o,f);let v=g?(e%n.length+n.length)%n.length:a;if(De(v),ee?.(v),g){let p=Math.max(d,2),C=a<p,D=a>=n.length+p;if(C||D){let M=C?a+n.length:a-n.length;r.dataset.needsReset="true",r.dataset.resetIndex=M.toString()}if(t&&r.dataset.needsReset==="true"){let M=parseInt(r.dataset.resetIndex||"0");r.style.transition="none",r.style.transform=`translateX(-${M*i}%)`,delete r.dataset.needsReset,delete r.dataset.resetIndex}}},[g,n.length,i,d,ee,de,L,I,fe]),T=c(()=>{b(s+1)},[s,b]),R=c(()=>{b(s-1)},[s,b]),B=c(()=>{se(!0)},[]),G=c(()=>{se(!1)},[]);$(()=>{if(!(!x||le||!I||n.length<=1))return j.current=setTimeout(()=>{T()},Y),()=>{j.current&&clearTimeout(j.current)}},[x,le,I,s,T,Y,n.length]),$(()=>z.current?he(z.current,t=>Se(t.isIntersecting),{threshold:.1}):void 0,[]),$(()=>()=>{h.current!==null&&(cancelAnimationFrame(h.current),h.current=null),m.current!==null&&(clearTimeout(m.current),m.current=null)},[]);let $e=c(e=>ne?Math.abs(e-s)<=ae:!0,[ne,s,ae]),Ne=c(e=>{if(!Z||L!=="idle")return;let t=e.touches[0];t&&H({isDragging:!0,startX:t.clientX,currentX:t.clientX,startTime:Date.now(),velocity:0})},[Z,L]),Ae=c(e=>{if(!u.isDragging)return;let t=e.touches[0];if(!t)return;let r=t.clientX-u.startX,a=Date.now()-u.startTime,o=a>0?r/a:0,f=y.current;if(f&&Math.abs(r)>10){e.preventDefault();let v=g?Math.max(d,2):0,p=-((s+v)*i),C=r/(z.current?.clientWidth||1)*100,D=Math.min(Math.abs(r)/200,.8),M=C*(1-D);f.style.transition="none",f.style.transform=`translateX(${p+M}%)`}H(v=>({...v,currentX:t.clientX,velocity:o}))},[u.isDragging,u.startX,u.startTime,s,i,g,d]),Fe=c(()=>{if(!u.isDragging)return;let e=u.currentX-u.startX,t=u.velocity,r=50;if(S&&Math.abs(t)>.5){let a=y.current;if(a){let o=t>0?s-1:s+1,f=-(o*i);V(a,f,t*100),b(o,!0)}}else if(Math.abs(e)>r)e>0?R():T();else{let a=y.current;if(a&&S){let o=-(s*i);V(a,o,t*100)}else b(s,!0)}H({isDragging:!1,startX:0,currentX:0,startTime:0,velocity:0})},[u,S,T,R,b,s,V,i]),ze=c(()=>{ce("idle");let e=y.current;if(e?.dataset.needsReset==="true"){let t=parseInt(e.dataset.resetIndex||"0");e.style.transition="none",e.style.transform=`translateX(-${t*i}%)`,delete e.dataset.needsReset,delete e.dataset.resetIndex}},[i]),qe=c(e=>{let t=ye();switch(e.key){case"ArrowLeft":e.preventDefault(),t?T():R();break;case"ArrowRight":e.preventDefault(),t?R():T();break;case"Home":e.preventDefault(),b(0);break;case"End":e.preventDefault(),b(n.length-1);break;case" ":e.preventDefault(),x?G():B();break}},[T,R,b,n.length,x,B,G]);return!n||n.length===0?l(ve,{align:"center",justify:"center",className:P("dndev-relative",J),children:l("div",{style:{color:"var(--muted-foreground)"},children:"No items to display"})}):W("div",{ref:z,className:P("dndev-relative dndev-overflow-hidden",J),style:{outline:"none","--carousel-slides-mobile":X,"--carousel-slides-tablet":N,"--carousel-slides-laptop":A,"--carousel-slides-desktop":F},onMouseEnter:()=>re&&ie(!0),onMouseLeave:()=>re&&ie(!1),onKeyDown:qe,tabIndex:0,role:"region","aria-label":Ie,"aria-live":"polite",children:[l("div",{className:"dndev-overflow-hidden",children:l("div",{ref:y,className:P("dndev-flex",u.isDragging&&"dndev-pointer-events-none",L==="transitioning"&&"dndev-pointer-events-none"),style:{cursor:u.isDragging?"grabbing":void 0},onTransitionEnd:ze,onTouchStart:Ne,onTouchMove:Ae,onTouchEnd:Fe,children:Xe.map((e,t)=>{let r=Pe(t),a=r===(s+Le)%n.length,o=$e(r);return l("div",{className:P("dndev-carousel-slide",xe),"data-gap":U!=="none"?U:void 0,style:{opacity:o?1:0},role:"group","aria-roledescription":"slide","aria-label":`Slide ${r+1} of ${n.length}`,onClick:()=>Ee?.(e,r),children:o&&we(e,r,a)},te?te(e,r):`${r}-${t}`)})})}),Ce&&n.length>1&&W(Je,{children:[l("button",{className:"dndev-absolute dndev-z-breadcrumbs dndev-flex dndev-items-center dndev-justify-center",style:{insetInlineStart:"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)",outline:"none"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:R,"aria-label":"Previous slide",tabIndex:-1,children:l(je,{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:{insetInlineEnd:"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)",outline:"none"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:T,"aria-label":"Next slide",tabIndex:-1,children:l(Ke,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})})]}),O&&Re&&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)",outline:"none"},tabIndex:-1,onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:()=>x?G():B(),"aria-label":x?"Pause carousel":"Play carousel",children:x?l(Be,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}}):l(Ve,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})}),Me&&n.length>1&&l("div",{className:"dndev-absolute dndev-flex dndev-gap-sm dndev-z-breadcrumbs",style:{bottom:"1rem",insetInlineStart:"50%",transform:"translateX(-50%)"},children:n.map((e,t)=>l("button",{tabIndex:-1,style:{width:t===s?"1.5rem":"0.5rem",height:"0.5rem",borderRadius:"9999px",transition:"all 0.3s",outline:"none",backgroundColor:t===s?"var(--foreground)":"rgb(from var(--foreground) r g b / 0.3)"},onMouseEnter:r=>{t!==s&&(r.currentTarget.style.backgroundColor="rgb(from var(--foreground) r g b / 0.5)")},onMouseLeave:r=>{t!==s&&(r.currentTarget.style.backgroundColor="rgb(from var(--foreground) r g b / 0.3)")},onClick:()=>b(t),"aria-label":`Go to slide ${t+1}`},t))}),ke&&O&&l("div",{className:"dndev-absolute",style:{bottom:0,insetInlineStart:0,insetInlineEnd:0,height:"0.25rem",backgroundColor:"rgb(from var(--foreground) r g b / 0.2)"},children:l("div",{style:{height:"100%",width:`${(s+1)/n.length*100}%`,backgroundColor:"var(--foreground)",transition:"width 0.1s linear"}})}),W("div",{className:"dndev-sr-only","aria-live":"polite","aria-atomic":"true",children:["Slide ",s+1," of ",n.length]})]})}var Te=Qe(We);Te.displayName="Carousel";var it=Te;export{it as default};
1
+ import{a as ye}from"./chunk-IFHHPSKN.js";import{c as he,f as pe}from"./chunk-FA4BDD6N.js";import{a as P,k as ve}from"./chunk-EOCKFSHC.js";import"./chunk-O2XFH626.js";import{ChevronLeft as je,ChevronRight as Ke,Play as Ve,Pause as Be}from"lucide-react";import{useRef as k,useState as w,useEffect as $,useLayoutEffect as Ge,useCallback as c,useMemo as Q,memo as Qe}from"react";import{Fragment as Je,jsx as l,jsxs as W}from"react/jsx-runtime";function We({items:n,renderItem:we,className:J,slideClassName:xe,showArrows:Ce=!0,showDots:Me=!1,showProgress:ke=!0,autoplay:O=!0,autoplayInterval:Y=5e3,transition:_="slide",infinite:g=!0,slidesToShow:E=1,gap:U="none",swipeable:Z=!0,momentum:S=!0,onActiveChange:ee,onSlideClick:Ee,keyExtractor:te,"aria-label":Ie="Premium carousel",pauseOnHover:re=!0,pauseOnInvisible:Ye=!0,showPlayPause:Re=!0,lazy:ne=!1,preloadDistance:ae=1}){let oe=Array.isArray(E)?E:[E,E,E,E],[X,N,A,F]=oe,d=Math.max(...oe),z=k(null),y=k(null),[s,De]=w(0),[x,se]=w(O),[le,ie]=w(!1),[I,Se]=w(!0),[u,H]=w({isDragging:!1,startX:0,currentX:0,startTime:0,velocity:0}),j=k(null),h=k(null),m=k(null),[L,ce]=w("idle"),[de,ue]=w(!1);$(()=>{if(typeof window>"u")return;let e=window.matchMedia("(prefers-reduced-motion: reduce)");return ue(e.matches),pe(e,"change",r=>{ue(r.matches)})},[]);let[K,ge]=w(()=>typeof window>"u"?X:window.matchMedia("(min-width: 1440px)").matches?F:window.matchMedia("(min-width: 1024px)").matches?A:window.matchMedia("(min-width: 768px)").matches?N:X);$(()=>{if(typeof window>"u")return;let e=[{mq:window.matchMedia("(min-width: 1440px)"),value:F},{mq:window.matchMedia("(min-width: 1024px)"),value:A},{mq:window.matchMedia("(min-width: 768px)"),value:N}],t=()=>{for(let{mq:a,value:o}of e)if(a.matches){ge(o);return}ge(X)},r=e.map(({mq:a})=>{let o=()=>t();return a.addEventListener("change",o),()=>a.removeEventListener("change",o)});return()=>r.forEach(a=>a())},[X,N,A,F]);let q=Q(()=>({tension:.3,friction:.8,mass:1}),[]),Xe=Q(()=>{if(!g||n.length<=d)return n;let e=Math.max(d,2),t=n.slice(-e),r=n.slice(0,e);return[...t,...n,...r]},[n,g,d]),i=Q(()=>100/K,[K]),Le=Math.ceil(K/2)-1,me=k(!1);Ge(()=>{if(me.current||!g||!y.current||n.length<=d)return;me.current=!0;let e=Math.max(d,2);y.current.style.transform=`translateX(-${e*i}%)`},[g,d,i,n.length]);let Pe=c(e=>{if(!g)return e;let t=Math.max(d,2);return((e-t)%n.length+n.length)%n.length},[g,n.length,d]),be=k(I);be.current=I;let V=c((e,t,r=0)=>{if(!S)return;let a=parseFloat(e.style.transform.replace("translateX(","").replace("%)",""))||0,o=r,f=Date.now(),v=()=>{let C=(Date.now()-f)/1e3,D=a-t,M=-q.tension*D,Oe=-q.friction*o,He=(M+Oe)/q.mass;o+=He*C,a+=o*C,e.style.transform=`translateX(${a}%)`,be.current?Math.abs(D)>.1||Math.abs(o)>.1?h.current=requestAnimationFrame(v):(e.style.transform=`translateX(${t}%)`,e.style.transition="none",h.current=null):(e.style.transform=`translateX(${t}%)`,e.style.transition="none",h.current=null)};h.current!==null&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(v)},[S,q]),fe=c((e,t,r)=>{switch(_){case"fade":{e.style.transition=`opacity ${r} ease-in-out`,e.style.opacity="0";let o=parseInt(r,10)||300;m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{m.current=null,e.style.transform=`translateX(${t}%)`,e.style.opacity="1"},o/2);break}case"scale":{e.style.transition=`transform ${r} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,e.style.transform=`translateX(${t}%) scale(0.95)`;let o=parseInt(r,10)||300;m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{m.current=null,e.style.transform=`translateX(${t}%) scale(1)`},o/2);break}case"parallax":e.style.transition=`transform ${r} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,e.style.transform=`translateX(${t}%)`,e.querySelectorAll('[role="group"]').forEach((o,f)=>{let v=o,p=(f-Math.abs(t)/i)*.1;v.style.transform=`translateX(${p}%)`});break;default:e.style.transition=`transform ${r} cubic-bezier(0.25, 0.46, 0.45, 0.94)`,e.style.transform=`translateX(${t}%)`;break}},[_,i]),b=c((e,t=!1)=>{if(L!=="idle"&&!t||!I&&!t)return;let r=y.current;if(!r)return;let a=e;if(g){let p=Math.max(d,2);a=e+p}else a=Math.max(0,Math.min(e,n.length-1));let o=-(a*i),f=t||de?"0ms":"300ms";t||ce("transitioning"),fe(r,o,f);let v=g?(e%n.length+n.length)%n.length:a;if(De(v),ee?.(v),g){let p=Math.max(d,2),C=a<p,D=a>=n.length+p;if(C||D){let M=C?a+n.length:a-n.length;r.dataset.needsReset="true",r.dataset.resetIndex=M.toString()}if(t&&r.dataset.needsReset==="true"){let M=parseInt(r.dataset.resetIndex||"0");r.style.transition="none",r.style.transform=`translateX(-${M*i}%)`,delete r.dataset.needsReset,delete r.dataset.resetIndex}}},[g,n.length,i,d,ee,de,L,I,fe]),T=c(()=>{b(s+1)},[s,b]),R=c(()=>{b(s-1)},[s,b]),B=c(()=>{se(!0)},[]),G=c(()=>{se(!1)},[]);$(()=>{if(!(!x||le||!I||n.length<=1))return j.current=setTimeout(()=>{T()},Y),()=>{j.current&&clearTimeout(j.current)}},[x,le,I,s,T,Y,n.length]),$(()=>z.current?he(z.current,t=>Se(t.isIntersecting),{threshold:.1}):void 0,[]),$(()=>()=>{h.current!==null&&(cancelAnimationFrame(h.current),h.current=null),m.current!==null&&(clearTimeout(m.current),m.current=null)},[]);let $e=c(e=>ne?Math.abs(e-s)<=ae:!0,[ne,s,ae]),Ne=c(e=>{if(!Z||L!=="idle")return;let t=e.touches[0];t&&H({isDragging:!0,startX:t.clientX,currentX:t.clientX,startTime:Date.now(),velocity:0})},[Z,L]),Ae=c(e=>{if(!u.isDragging)return;let t=e.touches[0];if(!t)return;let r=t.clientX-u.startX,a=Date.now()-u.startTime,o=a>0?r/a:0,f=y.current;if(f&&Math.abs(r)>10){e.preventDefault();let v=g?Math.max(d,2):0,p=-((s+v)*i),C=r/(z.current?.clientWidth||1)*100,D=Math.min(Math.abs(r)/200,.8),M=C*(1-D);f.style.transition="none",f.style.transform=`translateX(${p+M}%)`}H(v=>({...v,currentX:t.clientX,velocity:o}))},[u.isDragging,u.startX,u.startTime,s,i,g,d]),Fe=c(()=>{if(!u.isDragging)return;let e=u.currentX-u.startX,t=u.velocity,r=50;if(S&&Math.abs(t)>.5){let a=y.current;if(a){let o=t>0?s-1:s+1,f=-(o*i);V(a,f,t*100),b(o,!0)}}else if(Math.abs(e)>r)e>0?R():T();else{let a=y.current;if(a&&S){let o=-(s*i);V(a,o,t*100)}else b(s,!0)}H({isDragging:!1,startX:0,currentX:0,startTime:0,velocity:0})},[u,S,T,R,b,s,V,i]),ze=c(()=>{ce("idle");let e=y.current;if(e?.dataset.needsReset==="true"){let t=parseInt(e.dataset.resetIndex||"0");e.style.transition="none",e.style.transform=`translateX(-${t*i}%)`,delete e.dataset.needsReset,delete e.dataset.resetIndex}},[i]),qe=c(e=>{let t=ye();switch(e.key){case"ArrowLeft":e.preventDefault(),t?T():R();break;case"ArrowRight":e.preventDefault(),t?R():T();break;case"Home":e.preventDefault(),b(0);break;case"End":e.preventDefault(),b(n.length-1);break;case" ":e.preventDefault(),x?G():B();break}},[T,R,b,n.length,x,B,G]);return!n||n.length===0?l(ve,{align:"center",justify:"center",className:P("dndev-relative",J),children:l("div",{style:{color:"var(--muted-foreground)"},children:"No items to display"})}):W("div",{ref:z,className:P("dndev-relative dndev-overflow-hidden",J),style:{outline:"none","--carousel-slides-mobile":X,"--carousel-slides-tablet":N,"--carousel-slides-laptop":A,"--carousel-slides-desktop":F},onMouseEnter:()=>re&&ie(!0),onMouseLeave:()=>re&&ie(!1),onKeyDown:qe,tabIndex:0,role:"region","aria-label":Ie,"aria-live":"polite",children:[l("div",{className:"dndev-overflow-hidden",children:l("div",{ref:y,className:P("dndev-flex",u.isDragging&&"dndev-pointer-events-none",L==="transitioning"&&"dndev-pointer-events-none"),style:{cursor:u.isDragging?"grabbing":void 0},onTransitionEnd:ze,onTouchStart:Ne,onTouchMove:Ae,onTouchEnd:Fe,children:Xe.map((e,t)=>{let r=Pe(t),a=r===(s+Le)%n.length,o=$e(r);return l("div",{className:P("dndev-carousel-slide",xe),"data-gap":U!=="none"?U:void 0,style:{opacity:o?1:0},role:"group","aria-roledescription":"slide","aria-label":`Slide ${r+1} of ${n.length}`,onClick:()=>Ee?.(e,r),children:o&&we(e,r,a)},te?te(e,r):`${r}-${t}`)})})}),Ce&&n.length>1&&W(Je,{children:[l("button",{className:"dndev-absolute dndev-z-breadcrumbs dndev-flex dndev-items-center dndev-justify-center",style:{insetInlineStart:"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)",outline:"none"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:R,"aria-label":"Previous slide",tabIndex:-1,children:l(je,{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:{insetInlineEnd:"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)",outline:"none"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:T,"aria-label":"Next slide",tabIndex:-1,children:l(Ke,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})})]}),O&&Re&&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)",outline:"none"},tabIndex:-1,onMouseEnter:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.9)",e.currentTarget.style.opacity="1"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="rgb(from var(--background) r g b / 0.8)"},onClick:()=>x?G():B(),"aria-label":x?"Pause carousel":"Play carousel",children:x?l(Be,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}}):l(Ve,{style:{width:"var(--icon-md)",height:"var(--icon-md)",color:"var(--foreground)"}})}),Me&&n.length>1&&l("div",{className:"dndev-absolute dndev-flex dndev-gap-sm dndev-z-breadcrumbs",style:{bottom:"1rem",insetInlineStart:"50%",transform:"translateX(-50%)"},children:n.map((e,t)=>l("button",{tabIndex:-1,style:{width:t===s?"1.5rem":"0.5rem",height:"0.5rem",borderRadius:"9999px",transition:"all 0.3s",outline:"none",backgroundColor:t===s?"var(--foreground)":"rgb(from var(--foreground) r g b / 0.3)"},onMouseEnter:r=>{t!==s&&(r.currentTarget.style.backgroundColor="rgb(from var(--foreground) r g b / 0.5)")},onMouseLeave:r=>{t!==s&&(r.currentTarget.style.backgroundColor="rgb(from var(--foreground) r g b / 0.3)")},onClick:()=>b(t),"aria-label":`Go to slide ${t+1}`},t))}),ke&&O&&l("div",{className:"dndev-absolute",style:{bottom:0,insetInlineStart:0,insetInlineEnd:0,height:"0.25rem",backgroundColor:"rgb(from var(--foreground) r g b / 0.2)"},children:l("div",{style:{height:"100%",width:`${(s+1)/n.length*100}%`,backgroundColor:"var(--foreground)",transition:"width 0.1s linear"}})}),W("div",{className:"dndev-sr-only","aria-live":"polite","aria-atomic":"true",children:["Slide ",s+1," of ",n.length]})]})}var Te=Qe(We);Te.displayName="Carousel";var it=Te;export{it as default};
@@ -0,0 +1 @@
1
+ .dndev-spinner{width:1em;height:1em;border:2px solid transparent;border-top-color:var(--primary);border-inline-end-color:var(--primary);border-radius:50%;animation:spin .6s linear infinite;display:inline-block}.dndev-spinner[data-variant=default]{border-top-color:var(--foreground);border-inline-end-color:var(--foreground)}.dndev-spinner[data-variant=muted]{border-top-color:var(--muted-foreground);border-inline-end-color:var(--muted-foreground)}.dndev-spinner[data-variant=primary]{border-top-color:var(--primary);border-inline-end-color:var(--primary)}.dndev-spinner[data-variant=secondary]{border-top-color:var(--secondary);border-inline-end-color:var(--secondary)}.dndev-spinner[data-variant=accent]{border-top-color:var(--accent);border-inline-end-color:var(--accent)}.dndev-spinner[data-variant=success]{border-top-color:var(--success);border-inline-end-color:var(--success)}.dndev-spinner[data-variant=warning]{border-top-color:var(--warning);border-inline-end-color:var(--warning)}.dndev-spinner[data-variant=destructive]{border-top-color:var(--destructive);border-inline-end-color:var(--destructive)}.dndev-spinner-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgb(from var(--background) r g b / .8);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:var(--z-overlay, 9999);transition:opacity var(--dur-normal, .2s) var(--ease-in-out, ease-in-out)}.dndev-spinner-overlay .dndev-spinner{width:var(--icon-touch, 48px);height:var(--icon-touch, 48px);border-width:3px}.dndev-spinner-overlay--container{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgb(from var(--background) r g b / .8);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:var(--z-overlay, 9999);transition:opacity var(--dur-normal, .2s) var(--ease-in-out, ease-in-out)}.dndev-spinner-overlay--container .dndev-spinner{width:var(--icon-lg, 32px);height:var(--icon-lg, 32px);border-width:3px}.dndev-spinner-content{display:flex;flex-direction:column;align-items:center;gap:var(--gap-md, 12px)}.dndev-spinner-message{color:var(--muted-foreground);font-size:var(--font-size-sm, .875rem);font-weight:500}@keyframes spin{to{transform:rotate(360deg)}}[data-loading]{cursor:wait;pointer-events:none}.dndev-button-spinner{flex-shrink:0}.dndev-button-progress{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.dndev-progress-ring{width:1em;height:1em;transform:rotate(-90deg)}.dndev-copy-button-transition{transition:transform var(--dur-fast) ease-out}.dndev-copy-button-scaled{transform:scale(.95)}.dndev-stack{display:flex;flex-direction:column;width:100%;&[data-width=fit]{width:fit-content}&[data-width=auto]{width:auto}&[data-centered=true]{margin-inline:auto}&[data-direction=row],div&[data-direction=row]{flex-direction:row}&[data-direction=row-reverse]{flex-direction:row-reverse}&[data-direction=column-reverse]{flex-direction:column-reverse}&[data-wrap=wrap]{flex-wrap:wrap}&[data-wrap=nowrap]{flex-wrap:nowrap}&[data-wrap=wrap-reverse]{flex-wrap:wrap-reverse}&[data-align=start]{align-items:flex-start}&[data-align=center]{align-items:center}&[data-align=end]{align-items:flex-end}&[data-align=stretch]{align-items:stretch}&[data-align=baseline]{align-items:baseline}&[data-justify=start]{justify-content:flex-start}&[data-justify=center]{justify-content:center}&[data-justify=end]{justify-content:flex-end}&[data-justify=between]{justify-content:space-between}&[data-justify=around]{justify-content:space-around}&[data-justify=evenly]{justify-content:space-evenly}&[data-gap=none]{gap:var(--gap-none)}&[data-gap=tight]{gap:var(--gap-sm)}&[data-gap=medium]{gap:var(--gap-md)}&[data-gap=large]{gap:var(--gap-lg)}&[data-direction=row]>*{min-width:0}&[data-direction=row][data-wrap=nowrap]:not([data-overflow])>*{overflow:hidden}&[data-direction=row][data-wrap=wrap]:not([data-overflow])>*,&[data-direction=row][data-wrap=wrap-reverse]:not([data-overflow])>*{overflow:visible}&[data-direction=row][data-overflow=hidden]>*{overflow:hidden}&[data-direction=row][data-overflow=visible]>*{overflow:visible}&[data-direction=row][data-overflow=auto]>*{overflow:auto}&[data-direction=row][data-overflow=scroll]>*{overflow:scroll}&[data-rigid=true]>*{flex-shrink:0}&[data-nowrap=true]>*{white-space:nowrap}&[data-force=true]>*{align-self:inherit!important}&[data-text-align=start]{text-align:start}&[data-text-align=center]{text-align:center}&[data-text-align=end]{text-align:end}}
@@ -1,2 +1,2 @@
1
- import{q as l,v as y,w as S,y as w}from"./chunk-U37VKGRT.js";import{k as d}from"./chunk-Q3J75GL4.js";import"./chunk-O2XFH626.js";import{useEffect as C,useState as m,useMemo as x}from"react";import{jsx as e,jsxs as i}from"react/jsx-runtime";function V({children:o,language:p="tsx",className:z,showLineNumbers:H=!0,wrapLines:u=!1,showCopyButton:T=!0,onCopy:E,compact:h=!1}){let[s,L]=m(!1),[c,_]=m(null),[f,v]=m(!0),[k,D]=m(!1),N=w(),r=x(()=>o.trim().split(`
1
+ import{r as l,w as y,x as S,z as w}from"./chunk-NCBN5O34.js";import{k as d}from"./chunk-EOCKFSHC.js";import"./chunk-O2XFH626.js";import{useEffect as C,useState as m,useMemo as x}from"react";import{jsx as e,jsxs as i}from"react/jsx-runtime";function V({children:o,language:p="tsx",className:z,showLineNumbers:H=!0,wrapLines:u=!1,showCopyButton:T=!0,onCopy:E,compact:h=!1}){let[s,L]=m(!1),[c,_]=m(null),[f,v]=m(!0),[k,D]=m(!1),N=w(),r=x(()=>o.trim().split(`
2
2
  `),[o]);C(()=>{if(!s)return;let t=!0;return(async()=>{try{let[{getSingletonHighlighter:n},{createJavaScriptRegexEngine:b}]=await Promise.all([import("shiki"),import("shiki/engine/javascript")]),I=await n({themes:["github-dark","github-light"],langs:["typescript","tsx","javascript","jsx","json","css","html","bash","sql","yaml","markdown"],engine:b()});t&&(_(I),v(!1))}catch(n){n instanceof Error&&(n.message.includes("Cannot find module 'shiki'")||n.message.includes("Failed to fetch dynamically imported module")),t&&(D(!0),v(!1))}})(),()=>{t=!1}},[s]);let g=x(()=>{if(!s||!o||k||!c||f)return null;try{let t=N?"github-dark":"github-light",a=p||"text";return c.getLoadedLanguages().includes(a)?c.codeToHtml(o,{lang:a,theme:t}).replace(/^<pre[^>]*><code[^>]*>/,"").replace(/<\/code><\/pre>$/,"").replace(/\n/g,"").replace(/<script\b[^>]*>[\s\S]*?<\/script>/gi,"").replace(/\s+on\w+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,""):null}catch{return null}},[o,p,s,c,f,N,k]);return C(()=>{L(!0)},[]),i(d,{gap:"none",className:"dndev-code dndev-surface","data-glow":"blank","data-compact":h,children:[!h&&e("div",{className:"dndev-code-header",children:i(d,{direction:"row",align:"center",justify:"between",children:[i(d,{direction:"row",align:"center",gap:"tight",children:[i("div",{className:"dndev-code-traffic-lights",children:[e("div",{className:"dndev-code-traffic-light","data-color":"red"}),e("div",{className:"dndev-code-traffic-light","data-color":"yellow"}),e("div",{className:"dndev-code-traffic-light","data-color":"green"})]}),e(l,{as:"span",className:"dndev-code-language",children:p}),i(l,{as:"span",className:"dndev-code-line-count",children:[r.length," line",r.length!==1?"s":""]})]}),T&&s&&e(S,{text:o,onCopy:E})]})}),e(y,{className:"dndev-code-content",showHorizontal:!u,showVertical:!0,children:e("pre",{className:"dndev-code-pre","data-wrap":u,"data-compact":h,children:H?i(d,{direction:"row",gap:"none",children:[e("div",{className:"dndev-code-line-numbers",children:r.map((t,a)=>e("div",{className:"dndev-code-line-number",children:String(a+1).padStart(2," ")},a))}),g?e("code",{className:"dndev-code-code",dangerouslySetInnerHTML:{__html:g}}):e("code",{className:"dndev-code-code",children:r.map((t,a)=>e(l,{as:"code",variant:"code",style:{display:"block",background:"transparent",padding:0,lineHeight:1.5},children:t||"\xA0"},a))})]}):g?e("code",{className:"dndev-code-code",dangerouslySetInnerHTML:{__html:g}}):e("code",{className:"dndev-code-code",children:r.map((t,a)=>e(l,{as:"code",variant:"code",style:{display:"block",background:"transparent",padding:0},children:t||"\xA0"},a))})})})]})}var q=V;export{q as default};
@@ -1 +1 @@
1
- .dndev-stack{display:flex;flex-direction:column;width:100%;&[data-width=fit]{width:fit-content}&[data-width=auto]{width:auto}&[data-centered=true]{margin-inline:auto}&[data-direction=row],div&[data-direction=row]{flex-direction:row}&[data-direction=row-reverse]{flex-direction:row-reverse}&[data-direction=column-reverse]{flex-direction:column-reverse}&[data-wrap=wrap]{flex-wrap:wrap}&[data-wrap=nowrap]{flex-wrap:nowrap}&[data-wrap=wrap-reverse]{flex-wrap:wrap-reverse}&[data-align=start]{align-items:flex-start}&[data-align=center]{align-items:center}&[data-align=end]{align-items:flex-end}&[data-align=stretch]{align-items:stretch}&[data-align=baseline]{align-items:baseline}&[data-justify=start]{justify-content:flex-start}&[data-justify=center]{justify-content:center}&[data-justify=end]{justify-content:flex-end}&[data-justify=between]{justify-content:space-between}&[data-justify=around]{justify-content:space-around}&[data-justify=evenly]{justify-content:space-evenly}&[data-gap=none]{gap:var(--gap-none)}&[data-gap=tight]{gap:var(--gap-sm)}&[data-gap=medium]{gap:var(--gap-md)}&[data-gap=large]{gap:var(--gap-lg)}&[data-direction=row]>*{min-width:0}&[data-direction=row][data-wrap=nowrap]:not([data-overflow])>*{overflow:hidden}&[data-direction=row][data-wrap=wrap]:not([data-overflow])>*,&[data-direction=row][data-wrap=wrap-reverse]:not([data-overflow])>*{overflow:visible}&[data-direction=row][data-overflow=hidden]>*{overflow:hidden}&[data-direction=row][data-overflow=visible]>*{overflow:visible}&[data-direction=row][data-overflow=auto]>*{overflow:auto}&[data-direction=row][data-overflow=scroll]>*{overflow:scroll}&[data-rigid=true]>*{flex-shrink:0}&[data-nowrap=true]>*{white-space:nowrap}&[data-force=true]>*{align-self:inherit!important}}
1
+ .dndev-stack{display:flex;flex-direction:column;width:100%;&[data-width=fit]{width:fit-content}&[data-width=auto]{width:auto}&[data-centered=true]{margin-inline:auto}&[data-direction=row],div&[data-direction=row]{flex-direction:row}&[data-direction=row-reverse]{flex-direction:row-reverse}&[data-direction=column-reverse]{flex-direction:column-reverse}&[data-wrap=wrap]{flex-wrap:wrap}&[data-wrap=nowrap]{flex-wrap:nowrap}&[data-wrap=wrap-reverse]{flex-wrap:wrap-reverse}&[data-align=start]{align-items:flex-start}&[data-align=center]{align-items:center}&[data-align=end]{align-items:flex-end}&[data-align=stretch]{align-items:stretch}&[data-align=baseline]{align-items:baseline}&[data-justify=start]{justify-content:flex-start}&[data-justify=center]{justify-content:center}&[data-justify=end]{justify-content:flex-end}&[data-justify=between]{justify-content:space-between}&[data-justify=around]{justify-content:space-around}&[data-justify=evenly]{justify-content:space-evenly}&[data-gap=none]{gap:var(--gap-none)}&[data-gap=tight]{gap:var(--gap-sm)}&[data-gap=medium]{gap:var(--gap-md)}&[data-gap=large]{gap:var(--gap-lg)}&[data-direction=row]>*{min-width:0}&[data-direction=row][data-wrap=nowrap]:not([data-overflow])>*{overflow:hidden}&[data-direction=row][data-wrap=wrap]:not([data-overflow])>*,&[data-direction=row][data-wrap=wrap-reverse]:not([data-overflow])>*{overflow:visible}&[data-direction=row][data-overflow=hidden]>*{overflow:hidden}&[data-direction=row][data-overflow=visible]>*{overflow:visible}&[data-direction=row][data-overflow=auto]>*{overflow:auto}&[data-direction=row][data-overflow=scroll]>*{overflow:scroll}&[data-rigid=true]>*{flex-shrink:0}&[data-nowrap=true]>*{white-space:nowrap}&[data-force=true]>*{align-self:inherit!important}&[data-text-align=start]{text-align:start}&[data-text-align=center]{text-align:center}&[data-text-align=end]{text-align:end}}
@@ -1 +1 @@
1
- import{c as z,f as O}from"./chunk-FA4BDD6N.js";import{a as f,h as P,k as x}from"./chunk-Q3J75GL4.js";import"./chunk-O2XFH626.js";import{useRef as K,useState as a,useEffect as p}from"react";import{jsx as h}from"react/jsx-runtime";var C={none:0,tight:8,medium:16,large:32};var X={linear:"linear","ease-in-out":"ease-in-out","ease-out":"ease-out"};function Y({items:r,renderItem:q,className:D,itemClassName:y,gap:d=P.MEDIUM,speed:R=48,direction:S="auto",pauseOnHover:I=!0,ariaLabel:V,reducedMotion:F="respect",behavior:A="auto",pauseOnFocusWithin:H=!0,easing:$="ease-in-out"}){let[G,E]=a(!1),[_,N]=a(!1);p(()=>{if(typeof window>"u")return;let e=window.matchMedia("(prefers-reduced-motion: reduce)");N(e.matches);let n=c=>{N(c.matches)};return e.addEventListener("change",n),()=>e.removeEventListener("change",n)},[]),p(()=>{if(typeof document>"u")return;let e=document.documentElement;E(e.dir==="rtl");let n=new MutationObserver(()=>{E(e.dir==="rtl")});return n.observe(e,{attributes:!0,attributeFilter:["dir"]}),()=>n.disconnect()},[]);let s=S;S==="auto"&&(s=G?"right":"left");let t=s==="up"||s==="down",o=F==="ignore"||!_,i=A;A==="auto"&&(i=r.length<=20?"bounce":"infinite");let u=K(null),[U,v]=a(8e3),[k,g]=a(0),[b,W]=a(!0),[L,B]=a(!1);p(()=>u.current?z(u.current,n=>W(n.isIntersecting),{threshold:0}):void 0,[]),p(()=>{if(!u.current||typeof window>"u"||!o)return;let e=u.current,n=e.querySelector("[data-marquee-track]");if(!n)return;let c=()=>{let l=t?e.clientHeight:e.clientWidth,M=t?n.scrollHeight:n.scrollWidth,m=Math.max(0,M-l);if(B(m>0),m>0){let T=Math.min(512,Math.max(12,R));if(i==="bounce"){let w=m*2/T*1e3;v(Math.max(2e3,Math.floor(w))),g(m)}else{let w=(M+C[d])/T*1e3;v(Math.max(2e3,Math.floor(w))),g(M+C[d])}}else v(0),g(0)};if(requestAnimationFrame(c),typeof ResizeObserver<"u"){let l=new ResizeObserver(()=>{requestAnimationFrame(c)});return l.observe(e),()=>l.disconnect()}else return O(window,"resize",()=>requestAnimationFrame(c))},[r,R,t,o,i,d]);let Q=()=>t?s==="up"?"normal":"reverse":s==="left"?"normal":"reverse",J=()=>i==="infinite"&&L?[...r,...r].map((e,n)=>h("div",{className:f("dndev-flex-shrink-0",y),children:q(e,n%r.length)},n)):r.map((e,n)=>h("div",{className:f("dndev-flex-shrink-0",y),children:q(e,n)},n));return h("div",{ref:u,className:f("dndev-relative dndev-overflow-hidden",I&&"group",H&&"focus-within:group",D),role:"region","aria-label":V||`${i==="infinite"?"Scrolling":"Bouncing"} content with ${r.length} items`,"aria-live":o&&b?"off":"polite",children:h(x,{className:"marquee-track",direction:t?"column":"row",align:t?void 0:"center",gap:d,"data-marquee-track":!0,"data-marquee-direction":t?"vertical":"horizontal","data-marquee-behavior":i,"data-marquee-reduced-motion":!o,style:{"--marquee-duration":o&&b&&L?`${U}ms`:"0ms","--marquee-direction":Q(),"--marquee-distance":t?`${k}px`:`${k}px`,"--marquee-easing":X[$],animationPlayState:!o||!b?"paused":"running"},children:J()})})}var ie=Y;export{ie as default};
1
+ import{c as z,f as O}from"./chunk-FA4BDD6N.js";import{a as f,h as P,k as x}from"./chunk-EOCKFSHC.js";import"./chunk-O2XFH626.js";import{useRef as K,useState as a,useEffect as p}from"react";import{jsx as h}from"react/jsx-runtime";var C={none:0,tight:8,medium:16,large:32};var X={linear:"linear","ease-in-out":"ease-in-out","ease-out":"ease-out"};function Y({items:r,renderItem:q,className:D,itemClassName:y,gap:d=P.MEDIUM,speed:R=48,direction:S="auto",pauseOnHover:I=!0,ariaLabel:V,reducedMotion:F="respect",behavior:A="auto",pauseOnFocusWithin:H=!0,easing:$="ease-in-out"}){let[G,E]=a(!1),[_,N]=a(!1);p(()=>{if(typeof window>"u")return;let e=window.matchMedia("(prefers-reduced-motion: reduce)");N(e.matches);let n=c=>{N(c.matches)};return e.addEventListener("change",n),()=>e.removeEventListener("change",n)},[]),p(()=>{if(typeof document>"u")return;let e=document.documentElement;E(e.dir==="rtl");let n=new MutationObserver(()=>{E(e.dir==="rtl")});return n.observe(e,{attributes:!0,attributeFilter:["dir"]}),()=>n.disconnect()},[]);let s=S;S==="auto"&&(s=G?"right":"left");let t=s==="up"||s==="down",o=F==="ignore"||!_,i=A;A==="auto"&&(i=r.length<=20?"bounce":"infinite");let u=K(null),[U,v]=a(8e3),[k,g]=a(0),[b,W]=a(!0),[L,B]=a(!1);p(()=>u.current?z(u.current,n=>W(n.isIntersecting),{threshold:0}):void 0,[]),p(()=>{if(!u.current||typeof window>"u"||!o)return;let e=u.current,n=e.querySelector("[data-marquee-track]");if(!n)return;let c=()=>{let l=t?e.clientHeight:e.clientWidth,M=t?n.scrollHeight:n.scrollWidth,m=Math.max(0,M-l);if(B(m>0),m>0){let T=Math.min(512,Math.max(12,R));if(i==="bounce"){let w=m*2/T*1e3;v(Math.max(2e3,Math.floor(w))),g(m)}else{let w=(M+C[d])/T*1e3;v(Math.max(2e3,Math.floor(w))),g(M+C[d])}}else v(0),g(0)};if(requestAnimationFrame(c),typeof ResizeObserver<"u"){let l=new ResizeObserver(()=>{requestAnimationFrame(c)});return l.observe(e),()=>l.disconnect()}else return O(window,"resize",()=>requestAnimationFrame(c))},[r,R,t,o,i,d]);let Q=()=>t?s==="up"?"normal":"reverse":s==="left"?"normal":"reverse",J=()=>i==="infinite"&&L?[...r,...r].map((e,n)=>h("div",{className:f("dndev-flex-shrink-0",y),children:q(e,n%r.length)},n)):r.map((e,n)=>h("div",{className:f("dndev-flex-shrink-0",y),children:q(e,n)},n));return h("div",{ref:u,className:f("dndev-relative dndev-overflow-hidden",I&&"group",H&&"focus-within:group",D),role:"region","aria-label":V||`${i==="infinite"?"Scrolling":"Bouncing"} content with ${r.length} items`,"aria-live":o&&b?"off":"polite",children:h(x,{className:"marquee-track",direction:t?"column":"row",align:t?void 0:"center",gap:d,"data-marquee-track":!0,"data-marquee-direction":t?"vertical":"horizontal","data-marquee-behavior":i,"data-marquee-reduced-motion":!o,style:{"--marquee-duration":o&&b&&L?`${U}ms`:"0ms","--marquee-direction":Q(),"--marquee-distance":t?`${k}px`:`${k}px`,"--marquee-easing":X[$],animationPlayState:!o||!b?"paused":"running"},children:J()})})}var ie=Y;export{ie as default};
@@ -6,6 +6,13 @@
6
6
  * **Polymorphic Component**: Can render as `section`, `aside`, or `div` based on semantic needs.
7
7
  * Defaults to `section` for semantic HTML. Use `aside` for sidebar promotional CTAs.
8
8
  *
9
+ * **Bleed mode:** When `bleed` is set, the CTA breaks out of `PageContainer`
10
+ * content constraints to span the full viewport width — ideal for immersive CTAs.
11
+ *
12
+ * **Background image:** When `backgroundImage` is set, a cover image fills the CTA
13
+ * with a dark gradient overlay for text readability. Text automatically turns white.
14
+ * Combine with `bleed` for edge-to-edge CTA banners.
15
+ *
9
16
  * @example
10
17
  * ```tsx
11
18
  * // Standard CTA section (default)
@@ -19,6 +26,18 @@
19
26
  *
20
27
  * @example
21
28
  * ```tsx
29
+ * // Full-width CTA with background image
30
+ * <CallToAction
31
+ * bleed
32
+ * backgroundImage="/images/cta-bg.jpg"
33
+ * title="Ready to move in?"
34
+ * subtitle="Book a viewing today"
35
+ * primaryAction={<Button>Contact Us</Button>}
36
+ * />
37
+ * ```
38
+ *
39
+ * @example
40
+ * ```tsx
22
41
  * // Sidebar promotional CTA
23
42
  * <CallToAction
24
43
  * as="aside"
@@ -28,12 +47,12 @@
28
47
  * />
29
48
  * ```
30
49
  *
31
- * @version 0.0.3
50
+ * @version 0.0.4
32
51
  * @since 0.0.1
33
52
  * @author AMBROISE PARK Consulting
34
53
  */
35
54
  import { type ElementType, type ComponentPropsWithRef, type ReactNode } from 'react';
36
- import { type Tone } from '../../utils/constants';
55
+ import { type Tone, type TextAlign } from '../../utils/constants';
37
56
  import './CallToAction.css';
38
57
  /**
39
58
  * CallToAction-specific props (content directives)
@@ -56,15 +75,32 @@ interface CallToActionOwnProps {
56
75
  /** Secondary action button (ReactNode - bring your own Button+Link) */
57
76
  secondaryAction?: ReactNode;
58
77
  /**
59
- * Content alignment
78
+ * Text alignment (text-align)
60
79
  * @default 'center'
61
80
  */
62
- align?: 'start' | 'center' | 'end';
81
+ textAlign?: TextAlign;
82
+ /**
83
+ * Item alignment (align-items on content container)
84
+ * @default 'center'
85
+ */
86
+ align?: 'start' | 'center' | 'end' | 'stretch';
87
+ /**
88
+ * Content justification (justify-content on content container)
89
+ */
90
+ justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
63
91
  /**
64
92
  * Tone system for background colors (matches Section component)
65
93
  * @default 'ghost'
66
94
  */
67
95
  tone?: Tone;
96
+ /**
97
+ * Full-width bleed — breaks out of content-width constraints
98
+ * to span the full viewport width
99
+ * @default false
100
+ */
101
+ bleed?: boolean;
102
+ /** Background image URL — applies cover image with dark overlay for text readability */
103
+ backgroundImage?: string;
68
104
  /** Additional children (for custom content) */
69
105
  children?: ReactNode;
70
106
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/CallToAction/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAIxD,OAAO,oBAAoB,CAAC;AAE5B;;GAEG;AACH,UAAU,oBAAoB;IAC5B;;;;;;OAMG;IACH,EAAE,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;IAEjC,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,qEAAqE;IACrE,aAAa,CAAC,EAAE,SAAS,CAAC;IAE1B,uEAAuE;IACvE,eAAe,CAAC,EAAE,SAAS,CAAC;IAE5B;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAEnC;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,WAAW,GAAG,SAAS,IAC7D,oBAAoB,GAClB,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,oBAAoB,CAAC,CAAC;AAE/D,QAAA,MAAM,YAAY,mIAuDjB,CAAC;AAIF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/CallToAction/index.tsx"],"names":[],"mappings":"AAE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MAAM,YAAY,mIA2EjB,CAAC;AAIF,eAAe,YAAY,CAAC"}
@@ -8,6 +8,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  * **Polymorphic Component**: Can render as `section`, `aside`, or `div` based on semantic needs.
9
9
  * Defaults to `section` for semantic HTML. Use `aside` for sidebar promotional CTAs.
10
10
  *
11
+ * **Bleed mode:** When `bleed` is set, the CTA breaks out of `PageContainer`
12
+ * content constraints to span the full viewport width — ideal for immersive CTAs.
13
+ *
14
+ * **Background image:** When `backgroundImage` is set, a cover image fills the CTA
15
+ * with a dark gradient overlay for text readability. Text automatically turns white.
16
+ * Combine with `bleed` for edge-to-edge CTA banners.
17
+ *
11
18
  * @example
12
19
  * ```tsx
13
20
  * // Standard CTA section (default)
@@ -21,6 +28,18 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
21
28
  *
22
29
  * @example
23
30
  * ```tsx
31
+ * // Full-width CTA with background image
32
+ * <CallToAction
33
+ * bleed
34
+ * backgroundImage="/images/cta-bg.jpg"
35
+ * title="Ready to move in?"
36
+ * subtitle="Book a viewing today"
37
+ * primaryAction={<Button>Contact Us</Button>}
38
+ * />
39
+ * ```
40
+ *
41
+ * @example
42
+ * ```tsx
24
43
  * // Sidebar promotional CTA
25
44
  * <CallToAction
26
45
  * as="aside"
@@ -30,7 +49,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
30
49
  * />
31
50
  * ```
32
51
  *
33
- * @version 0.0.3
52
+ * @version 0.0.4
34
53
  * @since 0.0.1
35
54
  * @author AMBROISE PARK Consulting
36
55
  */
@@ -39,15 +58,21 @@ import { TONE } from '../../utils/constants';
39
58
  import { cn } from '../../utils/helpers';
40
59
  import Text, { TEXT_VARIANT } from '../Text';
41
60
  import './CallToAction.css';
42
- const CallToAction = forwardRef(function CallToAction({ as = 'section', title, subtitle, primaryAction, secondaryAction, align = 'center', tone = TONE.GHOST, children, className, ...props }, ref) {
61
+ const CallToAction = forwardRef(function CallToAction({ as = 'section', title, subtitle, primaryAction, secondaryAction, textAlign = 'center', align = 'center', justify, tone = TONE.GHOST, bleed = false, backgroundImage, children, className, ...props }, ref) {
43
62
  const Component = as;
44
63
  return createElement(Component, {
45
64
  ref,
46
65
  'aria-label': props['aria-label'] || 'Call to Action',
47
- className: cn('dndev-cta', className),
66
+ className: cn('dndev-cta', bleed && 'dndev-cta--bleed', backgroundImage && 'dndev-cta--bg-image', className),
48
67
  'data-tone': tone,
68
+ style: {
69
+ ...(backgroundImage
70
+ ? { backgroundImage: `url(${backgroundImage})` }
71
+ : {}),
72
+ ...props.style,
73
+ },
49
74
  ...props,
50
- }, _jsxs("div", { className: "dndev-cta-content", "data-text-align": align, children: [title && (_jsx(Text, { as: "div", level: "h2", style: { fontSize: 'var(--font-size-2xl)' }, children: title })), subtitle && (_jsx(Text, { as: "span", level: "h4", children: subtitle })), (primaryAction || secondaryAction) && (_jsxs("div", { className: "dndev-cta-actions", children: [primaryAction, secondaryAction] })), children] }));
75
+ }, _jsxs("div", { className: "dndev-cta-content", "data-text-align": textAlign, "data-align": align, "data-justify": justify || undefined, children: [title && (_jsx(Text, { as: "div", level: "h2", style: { fontSize: 'var(--font-size-2xl)' }, children: title })), subtitle && (_jsx(Text, { as: "span", level: "h4", children: subtitle })), (primaryAction || secondaryAction) && (_jsxs("div", { className: "dndev-cta-actions", children: [primaryAction, secondaryAction] })), children] }));
51
76
  });
52
77
  CallToAction.displayName = 'CallToAction';
53
78
  export default CallToAction;
@@ -40,6 +40,7 @@
40
40
  * @author AMBROISE PARK Consulting
41
41
  */
42
42
  import { type ElementType, type ComponentPropsWithRef, type ReactNode } from 'react';
43
+ import type { TextAlign } from '../../utils/constants';
43
44
  import './Grid.css';
44
45
  /**
45
46
  * Responsive columns array: [mobile, tablet, laptop, desktop]
@@ -93,6 +94,11 @@ interface GridOwnProps {
93
94
  * @default 'stretch'
94
95
  */
95
96
  justify?: 'start' | 'center' | 'end' | 'stretch';
97
+ /**
98
+ * Text alignment (text-align) — propagates to children via CSS inheritance
99
+ * No default — inherits from parent
100
+ */
101
+ textAlign?: TextAlign;
96
102
  /**
97
103
  * Named grid areas (CSS grid-template-areas)
98
104
  * Use with GridArea component for semantic grid layouts
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Grid/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAIf,OAAO,YAAY,CAAC;AAEpB;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAE9D;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAElE;;GAEG;AACH,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,GAAG,kBAAkB,CAAC;AAE7E;;GAEG;AACH,UAAU,YAAY;IACpB;;;;OAIG;IACH,EAAE,CAAC,EAAE,WAAW,CAAC;IAEjB;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,EAAE,QAAQ,CAAC;IAEhB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAE5C;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IAE/C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IAEjD;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC;IAEpC,cAAc;IACd,QAA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5C;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IAE/C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IAEjD;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,kBAAkB,CAAC;IAEpC,cAAc;IACd,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI,YAAY,GACjE,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,YAAY,CAAC,CAAC;AAErD;;;;;GAKG;AACH,QAAA,MAAM,IAAI,uHAgFT,CAAC;AAIF,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD,eAAe,IAAI,CAAC"}
@@ -50,7 +50,7 @@ import './Grid.css';
50
50
  * Polymorphic CSS Grid layout primitive.
51
51
  * Can render as any HTML element while maintaining grid layout.
52
52
  */
53
- const Grid = forwardRef(({ as = 'div', cols = 1, gap = GAP_VARIANT.MEDIUM, align = 'stretch', justify = 'stretch', areas, className, style, children, ...props }, ref) => {
53
+ const Grid = forwardRef(({ as = 'div', cols = 1, gap = GAP_VARIANT.MEDIUM, align = 'stretch', justify = 'stretch', textAlign, areas, className, style, children, ...props }, ref) => {
54
54
  const Component = as;
55
55
  // Detect which cols variant we're dealing with
56
56
  const isArray = Array.isArray(cols);
@@ -100,6 +100,7 @@ const Grid = forwardRef(({ as = 'div', cols = 1, gap = GAP_VARIANT.MEDIUM, align
100
100
  'data-gap': gap,
101
101
  'data-align': align,
102
102
  'data-justify': justify,
103
+ 'data-text-align': textAlign || undefined,
103
104
  'data-responsive': isResponsiveEqual ? 'true' : undefined,
104
105
  'data-responsive-tpl': isResponsiveTpl ? 'true' : undefined,
105
106
  'data-responsive-areas': isResponsiveAreas ? 'true' : undefined,
@@ -5,8 +5,16 @@
5
5
  *
6
6
  * **Polymorphic Component**: Can render as `section`, `header`, or `div` based on semantic needs.
7
7
  *
8
+ * **Bleed mode:** When `bleed` is set, the hero breaks out of `PageContainer`
9
+ * content constraints to span the full viewport width — ideal for immersive hero banners.
10
+ *
11
+ * **Background image:** When `backgroundImage` is set, a cover image fills the hero
12
+ * with a dark gradient overlay for text readability. Text automatically turns white.
13
+ * Combine with `bleed` for edge-to-edge hero banners.
14
+ *
8
15
  * @example
9
16
  * ```tsx
17
+ * // Basic hero
10
18
  * <HeroSection
11
19
  * title="Build Faster"
12
20
  * subtitle="The ultimate framework"
@@ -14,15 +22,26 @@
14
22
  * >
15
23
  * <Button>Get Started</Button>
16
24
  * </HeroSection>
25
+ *
26
+ * // Full-width hero with background image
27
+ * <HeroSection
28
+ * bleed
29
+ * backgroundImage="/images/hero-banner.jpg"
30
+ * title="Find Your Dream Home"
31
+ * subtitle="Premium apartments in Paris"
32
+ * fullHeight
33
+ * >
34
+ * <Button>Browse Listings</Button>
35
+ * </HeroSection>
17
36
  * ```
18
37
  *
19
- * @version 0.0.4
38
+ * @version 0.0.5
20
39
  * @since 0.0.1
21
40
  * @author AMBROISE PARK Consulting
22
41
  */
23
42
  import { type VariantProps } from 'class-variance-authority';
24
43
  import { type ElementType, type ComponentPropsWithRef, type ReactNode } from 'react';
25
- import { type Tone } from '../../utils/constants';
44
+ import { type Tone, type TextAlign } from '../../utils/constants';
26
45
  import './HeroSection.css';
27
46
  declare const heroSectionVariants: (props?: ({
28
47
  variant?: "accent" | "primary" | "subtle" | null | undefined;
@@ -38,10 +57,31 @@ interface HeroSectionOwnProps extends VariantProps<typeof heroSectionVariants> {
38
57
  subtitle?: string | ReactNode;
39
58
  /** Full viewport height */
40
59
  fullHeight?: boolean;
41
- /** Content alignment @default 'center' */
42
- align?: 'start' | 'center' | 'end';
60
+ /**
61
+ * Text alignment (text-align)
62
+ * @default 'center'
63
+ */
64
+ textAlign?: TextAlign;
65
+ /**
66
+ * Item alignment (align-items)
67
+ * @default 'center'
68
+ */
69
+ align?: 'start' | 'center' | 'end' | 'stretch';
70
+ /**
71
+ * Content justification (justify-content)
72
+ * @default 'center'
73
+ */
74
+ justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
43
75
  /** Tone system for background colors (matches Section/CallToAction) */
44
76
  tone?: Tone;
77
+ /**
78
+ * Full-width bleed — breaks out of content-width constraints
79
+ * to span the full viewport width
80
+ * @default false
81
+ */
82
+ bleed?: boolean;
83
+ /** Background image URL — applies cover image with dark overlay for text readability */
84
+ backgroundImage?: string;
45
85
  /** Content */
46
86
  children?: ReactNode;
47
87
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/HeroSection/index.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAGL,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAMxD,OAAO,mBAAmB,CAAC;AAE3B,QAAA,MAAM,mBAAmB;;8EAWvB,CAAC;AAEH,UAAU,mBAAoB,SAAQ,YAAY,CAAC,OAAO,mBAAmB,CAAC;IAC5E,mDAAmD;IACnD,EAAE,CAAC,EAAE,SAAS,GAAG,QAAQ,GAAG,KAAK,CAAC;IAClC,iBAAiB;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,oDAAoD;IACpD,QAAQ,CAAC,EAAE,MAAM,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,CAAC;IAC9B,2BAA2B;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IAEtB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;IAE/C;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACvE,uEAAuE;IACvE,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,wFAAwF;IACxF,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc;IACd,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AAED;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,WAAW,GAAG,SAAS,IAC5D,mBAAmB,GACjB,IAAI,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,MAAM,mBAAmB,CAAC,CAAC;AAE9D,QAAA,MAAM,WAAW,kIA8EhB,CAAC;AAIF,eAAe,WAAW,CAAC"}
@@ -7,8 +7,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
7
7
  *
8
8
  * **Polymorphic Component**: Can render as `section`, `header`, or `div` based on semantic needs.
9
9
  *
10
+ * **Bleed mode:** When `bleed` is set, the hero breaks out of `PageContainer`
11
+ * content constraints to span the full viewport width — ideal for immersive hero banners.
12
+ *
13
+ * **Background image:** When `backgroundImage` is set, a cover image fills the hero
14
+ * with a dark gradient overlay for text readability. Text automatically turns white.
15
+ * Combine with `bleed` for edge-to-edge hero banners.
16
+ *
10
17
  * @example
11
18
  * ```tsx
19
+ * // Basic hero
12
20
  * <HeroSection
13
21
  * title="Build Faster"
14
22
  * subtitle="The ultimate framework"
@@ -16,9 +24,20 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
24
  * >
17
25
  * <Button>Get Started</Button>
18
26
  * </HeroSection>
27
+ *
28
+ * // Full-width hero with background image
29
+ * <HeroSection
30
+ * bleed
31
+ * backgroundImage="/images/hero-banner.jpg"
32
+ * title="Find Your Dream Home"
33
+ * subtitle="Premium apartments in Paris"
34
+ * fullHeight
35
+ * >
36
+ * <Button>Browse Listings</Button>
37
+ * </HeroSection>
19
38
  * ```
20
39
  *
21
- * @version 0.0.4
40
+ * @version 0.0.5
22
41
  * @since 0.0.1
23
42
  * @author AMBROISE PARK Consulting
24
43
  */
@@ -42,11 +61,13 @@ const heroSectionVariants = cva('', {
42
61
  variant: 'primary',
43
62
  },
44
63
  });
45
- const HeroSection = forwardRef(function HeroSection({ as = 'section', badge, title, subtitle, variant, fullHeight = false, align = 'center', tone = TONE.GHOST, children, className, ...props }, ref) {
64
+ const HeroSection = forwardRef(function HeroSection({ as = 'section', badge, title, subtitle, variant, fullHeight = false, textAlign = 'center', align = 'center', justify = 'center', tone = TONE.GHOST, bleed = false, backgroundImage, children, className, ...props }, ref) {
46
65
  return createElement(as, {
47
66
  ref,
48
- className: cn('dndev-hero-section', className),
49
- 'data-text-align': align,
67
+ className: cn('dndev-hero-section', bleed && 'dndev-hero-section--bleed', backgroundImage && 'dndev-hero-section--bg-image', className),
68
+ 'data-text-align': textAlign,
69
+ 'data-align': align,
70
+ 'data-justify': justify,
50
71
  'data-variant': variant || undefined,
51
72
  'data-tone': tone,
52
73
  style: {
@@ -56,6 +77,9 @@ const HeroSection = forwardRef(function HeroSection({ as = 'section', badge, tit
56
77
  minHeight: 'calc(100dvh - var(--header-height, 0px) - var(--footer-height, 0px))',
57
78
  }
58
79
  : {}),
80
+ ...(backgroundImage
81
+ ? { backgroundImage: `url(${backgroundImage})` }
82
+ : {}),
59
83
  ...props.style,
60
84
  },
61
85
  ...props,
@@ -1,5 +1,5 @@
1
1
  import { type ElementType, type ComponentPropsWithRef, type ReactNode } from 'react';
2
- import { type Tone } from '../../utils/constants';
2
+ import { type Tone, type TextAlign } from '../../utils/constants';
3
3
  import { type GridCols } from '../Grid';
4
4
  import './Section.css';
5
5
  /**
@@ -20,10 +20,19 @@ interface SectionOwnProps {
20
20
  /** Tone system for visual rhythm */
21
21
  tone?: Tone;
22
22
  /**
23
- * Content alignment (text alignment)
23
+ * Text alignment (text-align)
24
24
  * @default 'center'
25
25
  */
26
- align?: 'start' | 'center' | 'end';
26
+ textAlign?: TextAlign;
27
+ /**
28
+ * Item alignment (align-items on content container)
29
+ * When `gridCols` is set, also passed to the inner Grid
30
+ */
31
+ align?: 'start' | 'center' | 'end' | 'stretch';
32
+ /**
33
+ * Content justification (justify-content on content container)
34
+ */
35
+ justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'evenly';
27
36
  /**
28
37
  * Grid columns - fixed, responsive, or custom template
29
38
  * When provided, wraps children in Grid
@@ -38,6 +47,12 @@ interface SectionOwnProps {
38
47
  * @default 'medium'
39
48
  */
40
49
  gridGap?: 'none' | 'tight' | 'medium' | 'large';
50
+ /**
51
+ * Full-width bleed — content breaks out of content-width constraints
52
+ * to span the full viewport width. Useful for hero images, maps, videos.
53
+ * @default false
54
+ */
55
+ bleed?: boolean;
41
56
  /**
42
57
  * Whether the section is collapsible
43
58
  * @default false
@@ -62,7 +77,12 @@ interface SectionOwnProps {
62
77
  */
63
78
  export type SectionProps<T extends ElementType = 'section'> = SectionOwnProps & Omit<ComponentPropsWithRef<T>, keyof SectionOwnProps>;
64
79
  /**
65
- * Minimal layout section with title, optional separator, and tone backgrounds.
80
+ * Minimal layout section with title, optional separator, tone backgrounds, and full-width bleed.
81
+ *
82
+ * **Bleed mode:** When `bleed` is set, the section breaks out of `PageContainer`
83
+ * content constraints to span the full viewport width. Use for hero images,
84
+ * maps, galleries, video players, or any content that needs edge-to-edge display.
85
+ * Works at any nesting depth — no fragile calc hacks needed.
66
86
  *
67
87
  * @component
68
88
  * @example
@@ -72,6 +92,11 @@ export type SectionProps<T extends ElementType = 'section'> = SectionOwnProps &
72
92
  * <Card />
73
93
  * <Card />
74
94
  * </Section>
95
+ *
96
+ * // Full-width bleed for an image gallery
97
+ * <Section bleed>
98
+ * <ImageGallery images={listing.images} />
99
+ * </Section>
75
100
  * ```
76
101
  */
77
102
  declare const Section: import("react").ForwardRefExoticComponent<Omit<SectionProps<"section">, "ref"> & import("react").RefAttributes<HTMLElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Section/index.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAIL,KAAK,WAAW,EAChB,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAQ,KAAK,IAAI,EAAE,MAAM,uBAAuB,CAAC;AAOxD,OAAa,EAAE,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAK9C,OAAO,eAAe,CAAC;AAEvB;;GAEG;AACH,UAAU,eAAe;IACvB;;;OAGG;IACH,EAAE,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;IAEtD,sBAAsB;IACtB,QAAQ,EAAE,SAAS,CAAC;IAEpB,qDAAqD;IACrD,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,kDAAkD;IAClD,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,oCAAoC;IACpC,IAAI,CAAC,EAAE,IAAI,CAAC;IAEZ;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IAEnC;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAEpB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAEhD;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG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