@donotdev/components 0.0.24 → 0.0.25
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/CarouselContent-HEXWLSR2.css +1 -0
- package/dist/CarouselContent-WGDMI6BH.js +1 -0
- package/dist/CodeContent-EYAMBIQ2.css +1 -0
- package/dist/CodeContent-RW7AXCX3.js +2 -0
- package/dist/CrawlContent-5CUKBDIN.js +1 -0
- package/dist/MarqueeContent-25D2GMPK.css +1 -0
- package/dist/MarqueeContent-DOKPFDYK.js +1 -0
- package/dist/advanced/Carousel/CarouselContent.js +2 -2
- package/dist/advanced/Carousel/CarouselSkeleton.js +1 -1
- package/dist/advanced/Code/CodeContent.js +1 -1
- package/dist/advanced/Code/CodeSkeleton.js +1 -1
- package/dist/advanced/Crawl/Crawl.d.ts.map +1 -1
- package/dist/advanced/Crawl/Crawl.js +1 -1
- package/dist/advanced/JsonViewer/JsonViewer.js +1 -1
- package/dist/advanced/Marquee/Marquee.d.ts.map +1 -1
- package/dist/advanced/Marquee/Marquee.js +1 -1
- package/dist/advanced/Marquee/MarqueeContent.js +3 -3
- package/dist/advanced/Marquee/MarqueeSkeleton.js +2 -2
- package/dist/advanced/Reveal/Reveal.js +1 -1
- package/dist/advanced/Roadmap/RoadmapContent.d.ts.map +1 -1
- package/dist/advanced/Roadmap/RoadmapContent.js +3 -3
- package/dist/advanced/SplitReveal/SplitReveal.d.ts.map +1 -1
- package/dist/advanced/SplitReveal/SplitReveal.js +2 -2
- package/dist/advanced/StackedCards/StackedCardsContent.d.ts.map +1 -1
- package/dist/advanced/StackedCards/StackedCardsContent.js +2 -2
- package/dist/atomic/Alert/index.d.ts +1 -1
- package/dist/atomic/Badge/index.d.ts +1 -1
- package/dist/atomic/Button/index.d.ts +1 -1
- package/dist/atomic/Button/index.d.ts.map +1 -1
- package/dist/atomic/Button/index.js +1 -1
- package/dist/atomic/Calendar/index.d.ts.map +1 -1
- package/dist/atomic/Calendar/index.js +5 -4
- package/dist/atomic/Collapsible/CollapsiblePrimitive.d.ts +7 -0
- package/dist/atomic/Collapsible/CollapsiblePrimitive.d.ts.map +1 -1
- package/dist/atomic/Collapsible/CollapsiblePrimitive.js +1 -1
- package/dist/atomic/Combobox/index.js +1 -2
- package/dist/atomic/CommandDialog/index.d.ts.map +1 -1
- package/dist/atomic/CommandDialog/index.js +5 -5
- package/dist/atomic/Dialog/index.d.ts +1 -1
- package/dist/atomic/Dialog/index.d.ts.map +1 -1
- package/dist/atomic/Dialog/index.js +1 -1
- package/dist/atomic/HeroSection/index.d.ts +1 -1
- package/dist/atomic/HoverCard/index.d.ts.map +1 -1
- package/dist/atomic/HoverCard/index.js +1 -1
- package/dist/atomic/Icons/Partner/providerIcons.js +11 -11
- package/dist/atomic/Input/index.d.ts +1 -1
- package/dist/atomic/Input/index.d.ts.map +1 -1
- package/dist/atomic/Input/index.js +1 -1
- package/dist/atomic/Pagination/index.d.ts.map +1 -1
- package/dist/atomic/Pagination/index.js +2 -2
- package/dist/atomic/RadioGroup/index.d.ts +10 -5
- package/dist/atomic/RadioGroup/index.d.ts.map +1 -1
- package/dist/atomic/RadioGroup/index.js +9 -4
- package/dist/atomic/RangeInput/index.js +1 -1
- package/dist/atomic/Rating/index.d.ts +10 -1
- package/dist/atomic/Rating/index.d.ts.map +1 -1
- package/dist/atomic/Rating/index.js +2 -2
- package/dist/atomic/Stepper/index.d.ts +1 -1
- package/dist/atomic/Tabs/index.d.ts +1 -1
- package/dist/atomic/Tag/index.d.ts +1 -1
- package/dist/atomic/Toaster/ToastPrimitive.d.ts +1 -1
- package/dist/atomic/Toaster/index.d.ts.map +1 -1
- package/dist/atomic/Toaster/index.js +1 -1
- package/dist/atomic/Toggle/index.d.ts +1 -1
- package/dist/atomic/TreeView/index.d.ts +1 -1
- package/dist/atomic/TreeView/index.d.ts.map +1 -1
- package/dist/atomic/VideoPlayer/index.d.ts.map +1 -1
- package/dist/chunk-E54ZWOWD.js +1 -0
- package/dist/chunk-FA4BDD6N.js +1 -0
- package/dist/chunk-IFHHPSKN.js +1 -0
- package/dist/chunk-O2XFH626.js +1 -0
- package/dist/chunk-Q3J75GL4.js +1 -0
- package/dist/chunk-U37VKGRT.js +3 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/hooks/useClickOutside.d.ts +0 -1
- package/dist/hooks/useClickOutside.d.ts.map +1 -1
- package/dist/hooks/useClickOutside.js +0 -1
- package/dist/hooks/useToast.d.ts +2 -3
- package/dist/hooks/useToast.d.ts.map +1 -1
- package/dist/hooks/useToast.js +1 -2
- package/dist/index.js +4 -7
- package/dist/styles/index.css +2 -48
- package/dist/utils/variants.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +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)}
|
|
@@ -0,0 +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};
|
|
@@ -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}@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}}
|
|
@@ -0,0 +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(`
|
|
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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as o}from"./chunk-E54ZWOWD.js";import"./chunk-O2XFH626.js";import{useEffect as k,useRef as x,useState as P,useMemo as c,isValidElement as R}from"react";import{Fragment as E,jsx as n,jsxs as u}from"react/jsx-runtime";var S=()=>typeof window<"u"&&typeof document<"u",T=({content:t,title:i,duration:m=26,contentHeight:v="150vh",tiltAngle:l,onPause:g,onResume:w})=>{let d=x(null),[s,f]=P(!1),h=r=>!r||typeof r!="string"?null:r.split(/\n\s*\n/).map(a=>a.trim()).filter(a=>a.length>0).map((a,N)=>n("p",{children:o(a,{allowedTags:["u","br","i","em","strong","b"]})},`p-${N}`)),y=c(()=>i?typeof i=="string"?n("h2",{className:"dndev-crawl-title",children:o(i,{allowedTags:["u","br","i","em","strong","b"]})}):i:null,[i]),b=c(()=>R(t)?t:Array.isArray(t)?t.map(e=>typeof e=="string"?e.trim():"").filter(e=>e&&e.length>0).map((e,a)=>n("p",{children:o(e,{allowedTags:["u","br","i","em","strong","b"]})},`c-${a}`)):typeof t=="string"?h(t):t,[t]),C=c(()=>{let r={"--crawl-content-height":v,animationName:"dndev-crawl-animation",animationDuration:`${m}s`,animationTimingFunction:"linear",animationIterationCount:"infinite",animationFillMode:"forwards",animationPlayState:s?"paused":"running"};return l!==void 0&&(r["--crawl-tilt"]=`${l}deg`),r},[s,m,v,l]);k(()=>{if(!S()||!d.current)return;let r=window.matchMedia("(prefers-reduced-motion: reduce)"),e=()=>{r.matches&&d.current&&d.current.classList.add("dndev-crawl-reduced-motion")};return e(),r.addEventListener("change",e),()=>r.removeEventListener("change",e)},[]);let p=()=>{s?(f(!1),w?.()):(f(!0),g?.())};return u(E,{children:[n("div",{className:"dndev-crawl-3d-container",onClick:p,children:n("div",{ref:d,className:"dndev-crawl-text",style:{...C,willChange:s?"auto":"transform"},children:u("div",{className:"dndev-crawl-content",children:[y,b]})})}),s&&n("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:p,children:n("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:n("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"white",children:n("path",{d:"M6 4h4v16H6V4zm8 0h4v16h-4V4z"})})})}),u("div",{className:"dndev-crawl-stars",children:[n("div",{className:"dndev-crawl-stars-layer-1"}),n("div",{className:"dndev-crawl-stars-layer-2"}),n("div",{className:"dndev-crawl-stars-layer-3"})]})]})},I=T;export{I as default};
|
|
@@ -0,0 +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}}
|
|
@@ -0,0 +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};
|
|
@@ -10,11 +10,11 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
10
10
|
*/
|
|
11
11
|
import { ChevronLeft, ChevronRight, Play, Pause } from 'lucide-react';
|
|
12
12
|
import { useRef, useState, useEffect, useLayoutEffect, useCallback, useMemo, memo, } from 'react';
|
|
13
|
+
import Stack from '../../atomic/Stack';
|
|
14
|
+
import { addEventListener } from '../../utils/eventListener';
|
|
13
15
|
import { cn } from '../../utils/helpers';
|
|
14
16
|
import { observeElement } from '../../utils/intersectionObserver';
|
|
15
|
-
import { addEventListener } from '../../utils/eventListener';
|
|
16
17
|
import { isRTLLanguage } from '../../utils/rtl';
|
|
17
|
-
import Stack from '../../atomic/Stack';
|
|
18
18
|
import './Carousel.css';
|
|
19
19
|
function CarouselComponent({ items, renderItem, className, slideClassName, showArrows = true, showDots = false, showProgress = true, autoplay = true, autoplayInterval = 5000, transition = 'slide', infinite = true, slidesToShow = 1, gap = 'none', swipeable = true, momentum = true, onActiveChange, onSlideClick, keyExtractor, 'aria-label': ariaLabel = 'Premium carousel', pauseOnHover = true, pauseOnInvisible = true, showPlayPause = true, lazy = false, preloadDistance = 1, }) {
|
|
20
20
|
// Normalize responsive slides — same pattern as Grid cols
|
|
@@ -8,8 +8,8 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
8
8
|
* @since 0.0.1
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
|
-
import { cn } from '../../utils/helpers';
|
|
12
11
|
import Stack from '../../atomic/Stack';
|
|
12
|
+
import { cn } from '../../utils/helpers';
|
|
13
13
|
function CarouselSkeleton({ className, itemCount = 1, showArrows = true, showDots = false, showProgress = false, }) {
|
|
14
14
|
return (_jsxs("div", { className: cn('dndev-relative dndev-overflow-hidden', className), role: "status", "aria-label": "Loading carousel", children: [_jsx("div", { className: "dndev-overflow-hidden", children: _jsx(Stack, { direction: "row", children: Array.from({ length: itemCount }).map((_, index) => (_jsx("div", { className: "dndev-w-full dndev-flex-shrink-0", children: _jsx("div", { className: "dndev-animate-pulse", style: {
|
|
15
15
|
height: '16rem',
|
|
@@ -12,8 +12,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
* @author AMBROISE PARK Consulting
|
|
13
13
|
*/
|
|
14
14
|
import { useEffect, useState, useMemo } from 'react';
|
|
15
|
-
import ScrollArea from '../../atomic/ScrollArea';
|
|
16
15
|
import CopyToClipboard from '../../atomic/CopyToClipboard';
|
|
16
|
+
import ScrollArea from '../../atomic/ScrollArea';
|
|
17
17
|
import Stack from '../../atomic/Stack';
|
|
18
18
|
import Text from '../../atomic/Text';
|
|
19
19
|
import { useIsDark } from '../../utils/isDark';
|
|
@@ -8,8 +8,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
* @since 0.0.1
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
|
-
import { cn } from '../../utils/helpers';
|
|
12
11
|
import Stack from '../../atomic/Stack';
|
|
12
|
+
import { cn } from '../../utils/helpers';
|
|
13
13
|
function CodeSkeleton({ className, showLineNumbers = true, showCopyButton = true, compact = false, lineCount = 10, }) {
|
|
14
14
|
return (_jsx("div", { className: cn('dndev-relative', className), style: {
|
|
15
15
|
opacity: 'var(--opacity-muted)',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Crawl.d.ts","sourceRoot":"","sources":["../../../src/advanced/Crawl/Crawl.tsx"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Crawl.d.ts","sourceRoot":"","sources":["../../../src/advanced/Crawl/Crawl.tsx"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AAEH,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AAQf,MAAM,WAAW,UAAU;IACzB,2FAA2F;IAC3F,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B,sFAAsF;IACtF,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC3B,oFAAoF;IACpF,OAAO,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;IACvC,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qEAAqE;IACrE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2DAA2D;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,mCAAmC;IACnC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,QAAA,MAAM,KAAK,GAAI,2GAUZ,UAAU,4CAgIZ,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -10,8 +10,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
12
12
|
import { useState, useMemo, lazy, Suspense, } from 'react';
|
|
13
|
-
import { cn } from '../../utils/helpers';
|
|
14
13
|
import { parseHtml } from './utils/parseHtml';
|
|
14
|
+
import { cn } from '../../utils/helpers';
|
|
15
15
|
// Lazy load heavy 3D animation content
|
|
16
16
|
const CrawlContent = lazy(() => import('./CrawlContent'));
|
|
17
17
|
/**
|
|
@@ -11,8 +11,8 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
import { Copy, ChevronRight, ChevronDown } from 'lucide-react';
|
|
13
13
|
import { useState, useCallback } from 'react';
|
|
14
|
-
import { cn } from '../../utils/helpers';
|
|
15
14
|
import Button, { BUTTON_VARIANT } from '../../atomic/Button';
|
|
15
|
+
import { cn } from '../../utils/helpers';
|
|
16
16
|
const JsonNode = ({ data, keyName, depth, defaultDepth, path, collapsed, onToggle, expandedPaths, }) => {
|
|
17
17
|
const isExpanded = expandedPaths[path] === true || (depth < defaultDepth && !collapsed);
|
|
18
18
|
const isObject = typeof data === 'object' && data !== null && !Array.isArray(data);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Marquee.d.ts","sourceRoot":"","sources":["../../../src/advanced/Marquee/Marquee.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Marquee.d.ts","sourceRoot":"","sources":["../../../src/advanced/Marquee/Marquee.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAG5C,YAAY,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAGrD,QAAA,MAAM,cAAc,gFAAyC,CAAC;AAE9D;;;;;;;;;;;;GAYG;AAEH,QAAA,MAAM,OAAO,GAAI,OAAO,cAAc,CAAC,OAAO,cAAc,CAAC,4CAmB5D,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -9,8 +9,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
11
|
import { Suspense, lazy } from 'react';
|
|
12
|
-
import { GAP_VARIANT } from '../../styles/componentConstants';
|
|
13
12
|
import MarqueeSkeleton from './MarqueeSkeleton';
|
|
13
|
+
import { GAP_VARIANT } from '../../styles/componentConstants';
|
|
14
14
|
// Lazy load the actual marquee implementation
|
|
15
15
|
const MarqueeContent = lazy(() => import('./MarqueeContent'));
|
|
16
16
|
/**
|
|
@@ -9,11 +9,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
11
|
import { useRef, useState, useEffect } from 'react';
|
|
12
|
-
import { cn } from '../../utils/helpers';
|
|
13
|
-
import { GAP_VARIANT } from '../../styles/componentConstants';
|
|
14
12
|
import Stack from '../../atomic/Stack';
|
|
15
|
-
import {
|
|
13
|
+
import { GAP_VARIANT } from '../../styles/componentConstants';
|
|
16
14
|
import { addEventListener } from '../../utils/eventListener';
|
|
15
|
+
import { cn } from '../../utils/helpers';
|
|
16
|
+
import { observeElement } from '../../utils/intersectionObserver';
|
|
17
17
|
const GAP_VALUES = {
|
|
18
18
|
none: 0,
|
|
19
19
|
tight: 8,
|
|
@@ -8,9 +8,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
8
8
|
* @since 0.0.1
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
|
-
import { cn } from '../../utils/helpers';
|
|
12
|
-
import { GAP_VARIANT } from '../../styles/componentConstants';
|
|
13
11
|
import Stack from '../../atomic/Stack';
|
|
12
|
+
import { GAP_VARIANT } from '../../styles/componentConstants';
|
|
13
|
+
import { cn } from '../../utils/helpers';
|
|
14
14
|
const GAP_VALUE = {
|
|
15
15
|
none: 'var(--gap-none)',
|
|
16
16
|
tight: 'var(--gap-sm)',
|
|
@@ -9,8 +9,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
11
|
import { useCallback, } from 'react';
|
|
12
|
-
import { cn } from '../../utils/helpers';
|
|
13
12
|
import { useViewportVisibility } from '../../hooks/useViewportVisibility';
|
|
13
|
+
import { cn } from '../../utils/helpers';
|
|
14
14
|
/**
|
|
15
15
|
* Industry-standard reveal animation component
|
|
16
16
|
* Based on patterns from Framer Motion, AOS, and modern design systems
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoadmapContent.d.ts","sourceRoot":"","sources":["../../../src/advanced/Roadmap/RoadmapContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RoadmapContent.d.ts","sourceRoot":"","sources":["../../../src/advanced/Roadmap/RoadmapContent.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAgBlE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAG/C,OAAO,eAAe,CAAC;AAEvB,MAAM,WAAW,WAAW;IAC1B,+CAA+C;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,wCAAwC;IACxC,IAAI,EAAE,UAAU,CAAC;IACjB,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,oBAAoB;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mDAAmD;IACnD,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,yDAAyD;IACzD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,6BAA6B;IAC7B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,yBAAyB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,4HAA4H;IAC5H,MAAM,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,CAAC;CAC7C;AAED,QAAA,MAAM,cAAc,GAA2B,wCAK5C,YAAY,4CA0Gd,CAAC;AA0DF,eAAe,cAAc,CAAC"}
|
|
@@ -10,9 +10,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
12
12
|
import { useState, useEffect, useSyncExternalStore } from 'react';
|
|
13
|
-
import { cn } from '../../utils/helpers';
|
|
14
13
|
import Card, { renderCardContent } from '../../atomic/Card';
|
|
15
14
|
import { useIntersectionObserver } from '../../hooks/useIntersectionObserver';
|
|
15
|
+
import { cn } from '../../utils/helpers';
|
|
16
16
|
/** Laptop breakpoint threshold (1024px) — matches @donotdev/core BREAKPOINT_THRESHOLDS */
|
|
17
17
|
const LAPTOP_QUERY = '(min-width: 1024px)';
|
|
18
18
|
const subscribe = (cb) => {
|
|
@@ -38,7 +38,7 @@ const RoadmapContent = function RoadmapContent({ steps, className, variant, layo
|
|
|
38
38
|
const Icon = step.icon;
|
|
39
39
|
const isActive = index <= activeStep;
|
|
40
40
|
const isCurrent = index === activeStep;
|
|
41
|
-
return (_jsxs("div", { className: "dndev-roadmap-step", onMouseEnter: () => setActiveStep(index), children: [_jsx("div", { className: "dndev-roadmap-node", "data-active": isActive, children: _jsx(Icon, {}) }), _jsxs(Card, { title: step.title, subtitle: step.subtitle, variant: variant, className: "dndev-roadmap-card", "data-active": isCurrent, onClick: step.onClick, footer: step.content ? (_jsx("div", { className: "dndev-roadmap-content", children: renderCardContent(step.content) })) : undefined, children: [_jsx("
|
|
41
|
+
return (_jsxs("div", { className: "dndev-roadmap-step", onMouseEnter: () => setActiveStep(index), children: [_jsx("div", { className: "dndev-roadmap-node", "data-active": isActive, children: _jsx(Icon, {}) }), _jsxs(Card, { title: step.title, subtitle: step.subtitle, variant: variant, className: "dndev-roadmap-card", "data-active": isCurrent, onClick: step.onClick, footer: step.content ? (_jsx("div", { className: "dndev-roadmap-content", children: renderCardContent(step.content) })) : undefined, children: [step.description && (_jsx("p", { className: "dndev-roadmap-description", children: step.description })), _jsx("span", { className: "dndev-roadmap-phase", children: step.phase })] })] }, index));
|
|
42
42
|
}) })] }) }));
|
|
43
43
|
}
|
|
44
44
|
// Vertical layout (scroll-based activation)
|
|
@@ -56,6 +56,6 @@ const RoadmapStepMobile = ({ step, index, isActive, variant, onEnter }) => {
|
|
|
56
56
|
}
|
|
57
57
|
}, [isIntersecting, onEnter]);
|
|
58
58
|
const Icon = step.icon;
|
|
59
|
-
return (_jsxs("div", { ref: ref, className: "dndev-roadmap-step-mobile", children: [_jsx("div", { className: "dndev-roadmap-node-mobile", "data-active": isActive, children: _jsx(Icon, {}) }), _jsxs(Card, { title: step.title, subtitle: step.subtitle, variant: variant, className: "dndev-roadmap-card-mobile", "data-active": isActive, onClick: step.onClick, footer: step.content ? (_jsx("div", { className: "dndev-roadmap-content", children: renderCardContent(step.content) })) : undefined, children: [_jsx("
|
|
59
|
+
return (_jsxs("div", { ref: ref, className: "dndev-roadmap-step-mobile", children: [_jsx("div", { className: "dndev-roadmap-node-mobile", "data-active": isActive, children: _jsx(Icon, {}) }), _jsxs(Card, { title: step.title, subtitle: step.subtitle, variant: variant, className: "dndev-roadmap-card-mobile", "data-active": isActive, onClick: step.onClick, footer: step.content ? (_jsx("div", { className: "dndev-roadmap-content", children: renderCardContent(step.content) })) : undefined, children: [step.description && (_jsx("p", { className: "dndev-roadmap-description", children: step.description })), _jsx("span", { className: "dndev-roadmap-phase", children: step.phase })] })] }));
|
|
60
60
|
};
|
|
61
61
|
export default RoadmapContent;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SplitReveal.d.ts","sourceRoot":"","sources":["../../../src/advanced/SplitReveal/SplitReveal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SplitReveal.d.ts","sourceRoot":"","sources":["../../../src/advanced/SplitReveal/SplitReveal.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtD;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,SAAS,GAAG,YAAY,EAAE,CAAC;IAClC;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;IAChE;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAC;IACjE;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAC5C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;;;GAQG;AACH,QAAA,MAAM,WAAW,EAAE,aAAa,CAAC,gBAAgB,CA2DhD,CAAC;AAEF;;;;;;GAMG;AACH,eAAe,WAAW,CAAC"}
|
|
@@ -8,11 +8,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
8
8
|
* @since 0.0.1
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
|
-
import { cn } from '../../utils/helpers';
|
|
12
11
|
import Card from '../../atomic/Card';
|
|
12
|
+
import Grid from '../../atomic/Grid';
|
|
13
13
|
import Text from '../../atomic/Text';
|
|
14
14
|
import { GAP_VARIANT } from '../../styles/componentConstants';
|
|
15
|
-
import
|
|
15
|
+
import { cn } from '../../utils/helpers';
|
|
16
16
|
import Reveal from '../Reveal';
|
|
17
17
|
/**
|
|
18
18
|
* SplitReveal - Desktop 2-column with reveal animations, mobile single column
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StackedCardsContent.d.ts","sourceRoot":"","sources":["../../../src/advanced/StackedCards/StackedCardsContent.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"StackedCardsContent.d.ts","sourceRoot":"","sources":["../../../src/advanced/StackedCards/StackedCardsContent.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE1D;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG;IAC5C,oEAAoE;IACpE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B,CAAC;AAEF,uCAAuC;AACvC,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,eAAe,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,mBAAmB,CAAC,SAAS,CAAC,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iEAAiE;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,QAAA,MAAM,mBAAmB,EAAE,aAAa,CAAC,iBAAiB,CAyBzD,CAAC;AA6EF,eAAe,mBAAmB,CAAC"}
|
|
@@ -9,13 +9,13 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
9
9
|
* @since 0.0.1
|
|
10
10
|
* @author AMBROISE PARK Consulting
|
|
11
11
|
*/
|
|
12
|
-
import { cn, getVariantDataAttrs } from '../../utils/helpers';
|
|
13
12
|
import Button from '../../atomic/Button';
|
|
13
|
+
import { renderCardHeader, renderCardContent } from '../../atomic/Card';
|
|
14
14
|
import Separator, { SEPARATOR_VARIANT } from '../../atomic/Separator';
|
|
15
15
|
import Text from '../../atomic/Text';
|
|
16
16
|
import { useIntersectionObserver } from '../../hooks/useIntersectionObserver';
|
|
17
|
+
import { cn, getVariantDataAttrs } from '../../utils/helpers';
|
|
17
18
|
import { surfaceVariants } from '../../utils/variants';
|
|
18
|
-
import { renderCardHeader, renderCardContent } from '../../atomic/Card';
|
|
19
19
|
/**
|
|
20
20
|
* StackedCards - Simple scroll-reveal stacked cards
|
|
21
21
|
*
|
|
@@ -20,7 +20,7 @@ export declare const ALERT_VARIANT: {
|
|
|
20
20
|
readonly INFO: "info";
|
|
21
21
|
};
|
|
22
22
|
declare const alertVariants: (props?: ({
|
|
23
|
-
variant?: "error" | "
|
|
23
|
+
variant?: "error" | "warning" | "info" | "success" | "muted" | null | undefined;
|
|
24
24
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
25
25
|
export type AlertVariant = (typeof ALERT_VARIANT)[keyof typeof ALERT_VARIANT];
|
|
26
26
|
export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'>, VariantProps<typeof alertVariants> {
|
|
@@ -24,7 +24,7 @@ export declare const BADGE_VARIANT: {
|
|
|
24
24
|
readonly DESTRUCTIVE: "destructive";
|
|
25
25
|
};
|
|
26
26
|
declare const badgeVariants: (props?: ({
|
|
27
|
-
variant?: "
|
|
27
|
+
variant?: "warning" | "success" | "default" | "muted" | "primary" | "secondary" | "accent" | "destructive" | "outline" | null | undefined;
|
|
28
28
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
29
29
|
export type BadgeVariant = VariantProps<typeof badgeVariants>['variant'];
|
|
30
30
|
/**
|
|
@@ -21,7 +21,7 @@ export declare const BUTTON_VARIANT: {
|
|
|
21
21
|
readonly DESTRUCTIVE: "destructive";
|
|
22
22
|
};
|
|
23
23
|
declare const buttonVariants: (props?: ({
|
|
24
|
-
variant?: "
|
|
24
|
+
variant?: "warning" | "success" | "default" | "link" | "muted" | "primary" | "secondary" | "accent" | "destructive" | "ghost" | "outline" | null | undefined;
|
|
25
25
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
26
26
|
/**
|
|
27
27
|
* Button variant type - derived from buttonVariants to ensure type safety
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Button/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Button/index.tsx"],"names":[],"mappings":"AAcA,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAC;AAM1D,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5E;;;GAGG;AACH,eAAO,MAAM,cAAc;;;;;;;;;;;;CAKjB,CAAC;AAEX,QAAA,MAAM,cAAc;;8EAmBlB,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,OAAO,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC;AAE3E;;;;;;GAMG;AACH,qEAAqE;AACrE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,WACf,SACE,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,SAAS,CAAC;IACjD;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;IACjD,yDAAyD;IACzD,IAAI,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,MAAM,GAAG,SAAS,CAAC;IACvD;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,oCAAoC;IACpC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,QAAA,MAAM,MAAM,2GAiKX,CAAC;AAIF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
11
|
import { cva } from 'class-variance-authority';
|
|
12
|
+
import { forwardRef } from 'react';
|
|
12
13
|
import { DISPLAY } from '../../styles/componentConstants';
|
|
13
14
|
import { THEME_VARIANT } from '../../utils/constants';
|
|
14
15
|
import { cn, getVariantDataAttrs } from '../../utils/helpers';
|
|
@@ -16,7 +17,6 @@ import Icon from '../Icons/Icon';
|
|
|
16
17
|
import Spinner from '../Spinner';
|
|
17
18
|
import Tooltip from '../Tooltip';
|
|
18
19
|
import './Button.css';
|
|
19
|
-
import { forwardRef } from 'react';
|
|
20
20
|
/**
|
|
21
21
|
* Button variant constants - THEME_VARIANT + Button-specific variants
|
|
22
22
|
* Used for button styling via data-variant attribute
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Calendar/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Calendar/index.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAAC;AAgFnD,iBAAS,QAAQ,CAAC,EAChB,SAAS,EACT,UAAU,EACV,eAAsB,EACtB,YAAgB,EAChB,aAA0B,EAC1B,UAAU,EACV,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,aAAa,2CAsEf;AAKD,eAAe,QAAQ,CAAC"}
|
|
@@ -7,6 +7,10 @@ import Button from '../Button';
|
|
|
7
7
|
import DropdownMenu from '../DropdownMenu';
|
|
8
8
|
import { DropdownMenuItemPrimitive } from '../DropdownMenu/DropdownMenuPrimitive';
|
|
9
9
|
import Icon from '../Icons/Icon';
|
|
10
|
+
function CalendarChevron(props) {
|
|
11
|
+
const icon = props.orientation === 'left' ? ChevronLeft : ChevronRight;
|
|
12
|
+
return _jsx(Icon, { icon: icon, className: props.className });
|
|
13
|
+
}
|
|
10
14
|
function CalendarDropdown({ options = [], value, onChange, 'aria-label': ariaLabel, }) {
|
|
11
15
|
const selectedOption = options.find((opt) => String(opt.value) === String(value));
|
|
12
16
|
const isMonth = options.length === 12;
|
|
@@ -61,10 +65,7 @@ function Calendar({ className, classNames, showOutsideDays = true, weekStartsOn
|
|
|
61
65
|
...classNames,
|
|
62
66
|
}, components: {
|
|
63
67
|
Dropdown: CalendarDropdown,
|
|
64
|
-
Chevron:
|
|
65
|
-
const icon = props.orientation === 'left' ? ChevronLeft : ChevronRight;
|
|
66
|
-
return _jsx(Icon, { icon: icon, className: props.className });
|
|
67
|
-
},
|
|
68
|
+
Chevron: CalendarChevron,
|
|
68
69
|
}, ...props }));
|
|
69
70
|
}
|
|
70
71
|
// Re-export CustomCaption logic (defined below to avoid hoisting issues, or move above)
|
|
@@ -10,6 +10,13 @@ import * as RadixCollapsible from '@radix-ui/react-collapsible';
|
|
|
10
10
|
import type { ComponentProps } from 'react';
|
|
11
11
|
declare const CollapsiblePrimitive: import("react").ForwardRefExoticComponent<RadixCollapsible.CollapsibleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<RadixCollapsible.CollapsibleTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
/**
|
|
14
|
+
* The content wrapper for Collapsible.
|
|
15
|
+
*
|
|
16
|
+
* @component
|
|
17
|
+
* @param {ComponentProps<typeof RadixCollapsible.CollapsibleContent>} props
|
|
18
|
+
* @returns {JSX.Element}
|
|
19
|
+
*/
|
|
13
20
|
declare const CollapsibleContent: ({ className, ...props }: ComponentProps<typeof RadixCollapsible.CollapsibleContent>) => import("react/jsx-runtime").JSX.Element;
|
|
14
21
|
export { CollapsiblePrimitive, CollapsibleTrigger, CollapsibleContent };
|
|
15
22
|
//# sourceMappingURL=CollapsiblePrimitive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollapsiblePrimitive.d.ts","sourceRoot":"","sources":["../../../src/atomic/Collapsible/CollapsiblePrimitive.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,gBAAgB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"CollapsiblePrimitive.d.ts","sourceRoot":"","sources":["../../../src/atomic/Collapsible/CollapsiblePrimitive.tsx"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AAEH,OAAO,KAAK,gBAAgB,MAAM,6BAA6B,CAAC;AAIhE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,QAAA,MAAM,oBAAoB,8HAAwB,CAAC;AACnD,QAAA,MAAM,kBAAkB,wIAAsC,CAAC;AAE/D;;;;;;GAMG;AAEH,QAAA,MAAM,kBAAkB,GAAI,yBAGzB,cAAc,CAAC,OAAO,gBAAgB,CAAC,kBAAkB,CAAC,4CAI5D,CAAC;AAEF,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -9,6 +9,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
11
|
import * as RadixCollapsible from '@radix-ui/react-collapsible';
|
|
12
|
+
import { cn } from '../../utils/helpers';
|
|
12
13
|
const CollapsiblePrimitive = RadixCollapsible.Root;
|
|
13
14
|
const CollapsibleTrigger = RadixCollapsible.CollapsibleTrigger;
|
|
14
15
|
/**
|
|
@@ -18,7 +19,6 @@ const CollapsibleTrigger = RadixCollapsible.CollapsibleTrigger;
|
|
|
18
19
|
* @param {ComponentProps<typeof RadixCollapsible.CollapsibleContent>} props
|
|
19
20
|
* @returns {JSX.Element}
|
|
20
21
|
*/
|
|
21
|
-
import { cn } from '../../utils/helpers';
|
|
22
22
|
const CollapsibleContent = ({ className, ...props }) => {
|
|
23
23
|
return (_jsx(RadixCollapsible.CollapsibleContent, { className: cn(className), ...props }));
|
|
24
24
|
};
|
|
@@ -110,7 +110,6 @@ const Combobox = ({ value, onValueChange, placeholder = 'Select...', emptyMessag
|
|
|
110
110
|
document.addEventListener('mousedown', handleClickOutside);
|
|
111
111
|
return () => document.removeEventListener('mousedown', handleClickOutside);
|
|
112
112
|
}
|
|
113
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps -- handleOpenChange is stable enough (only calls setOpen + onOpenChange)
|
|
114
113
|
}, [open]);
|
|
115
114
|
const handleSelect = (optionValue) => {
|
|
116
115
|
if (multiple) {
|
|
@@ -216,7 +215,7 @@ const Combobox = ({ value, onValueChange, placeholder = 'Select...', emptyMessag
|
|
|
216
215
|
const showClear = clearable && hasSelection && !disabled;
|
|
217
216
|
const reservedCount = (showCreate ? 1 : 0) + (clearable ? 1 : 0);
|
|
218
217
|
const trailingPad = computeTrailingPad(reservedCount);
|
|
219
|
-
return (_jsxs("div", { ref: containerRef, className: cn('dndev-relative', open && 'dndev-combobox-open'), style: { width: '100%' }, children: [_jsxs("div", { className: cn('dndev-relative dndev-combobox-wrapper', chips && 'dndev-combobox-wrapper--chips'), style: { '--combobox-pad-end': trailingPad }, onClick: chips ? handleInputClick : undefined, children: [chips, _jsx(Input, { ref: inputRef, id: id, label: chips ? undefined : label, value: displayValue, onChange: handleInputChange, onFocus: handleInputFocus, onClick: chips ? undefined : handleInputClick, onKeyDown: handleKeyDown, placeholder: hasSelection && chips ? '' : placeholder, disabled: disabled, required: required, bare: !!chips, role: "combobox", "aria-expanded": open, "aria-controls": `${id}-listbox`, "aria-autocomplete": "list", "data-variant": variant }), _jsxs("div", { className: "dndev-combobox-trailing", children: [showCreate && (_jsx("button", { type: "button", className: "dndev-combobox-action-btn dndev-combobox-action-btn--create", onClick: (e) => {
|
|
218
|
+
return (_jsxs("div", { ref: containerRef, className: cn('dndev-relative', open && 'dndev-combobox-open'), style: { width: '100%' }, children: [_jsxs("div", { className: cn('dndev-relative dndev-combobox-wrapper', chips && 'dndev-combobox-wrapper--chips'), style: { '--combobox-pad-end': trailingPad }, onClick: chips ? handleInputClick : undefined, children: [chips, _jsx(Input, { ref: inputRef, id: id, label: chips ? undefined : label, value: displayValue, onChange: handleInputChange, onFocus: handleInputFocus, onClick: chips ? undefined : handleInputClick, onKeyDown: handleKeyDown, placeholder: hasSelection && chips ? '' : placeholder, disabled: disabled, required: required, bare: !!chips, role: "combobox", "aria-expanded": open, "aria-controls": `${id}-listbox`, autoComplete: "one-time-code", "aria-autocomplete": "list", "data-variant": variant }), _jsxs("div", { className: "dndev-combobox-trailing", children: [showCreate && (_jsx("button", { type: "button", className: "dndev-combobox-action-btn dndev-combobox-action-btn--create", onClick: (e) => {
|
|
220
219
|
e.stopPropagation();
|
|
221
220
|
onCreateClick();
|
|
222
221
|
}, "aria-label": createActionLabel || createLabel || 'Create new', children: _jsx(Plus, {}) })), showClear && (_jsx("button", { type: "button", className: "dndev-combobox-action-btn dndev-combobox-action-btn--clear", onClick: handleClear, "aria-label": "Clear", children: _jsx(X, {}) })), isLoading ? (_jsx("span", { className: "dndev-combobox-spinner", children: _jsx(Spinner, {}) })) : (_jsx("span", { className: "dndev-combobox-chevron", children: _jsx(ChevronDown, {}) }))] })] }), open && (_jsx("div", { className: "dndev-floating dndev-menu-content dndev-z-tooltip dndev-combobox-content", style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/CommandDialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/CommandDialog/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,kDAAkD;AAClD,eAAO,MAAM,qBAAqB,eAH2B,IAAI,aAIvB,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,mBAAmB;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,qBAAqB;IACrB,MAAM,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;IAC1B,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,aAAa,GAAI,4FAUpB,kBAAkB,4CAyEpB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -8,16 +8,16 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
8
8
|
* @since 0.0.1
|
|
9
9
|
* @author AMBROISE PARK Consulting
|
|
10
10
|
*/
|
|
11
|
-
import { createContext, useContext, useRef } from 'react';
|
|
12
|
-
/** Context for CommandDialog to pass onClose to children without cloneElement */
|
|
13
|
-
const CommandDialogContext = createContext({});
|
|
14
|
-
/** Hook for Command to access dialog's onClose */
|
|
15
|
-
export const useCommandDialogClose = () => useContext(CommandDialogContext).onClose;
|
|
16
11
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
17
12
|
import { X } from 'lucide-react';
|
|
13
|
+
import { createContext, useContext, useRef } from 'react';
|
|
18
14
|
import { useSwipeToClose } from '../../hooks';
|
|
19
15
|
import { cn } from '../../utils/helpers';
|
|
20
16
|
import Button, { BUTTON_VARIANT } from '../Button';
|
|
17
|
+
/** Context for CommandDialog to pass onClose to children without cloneElement */
|
|
18
|
+
const CommandDialogContext = createContext({});
|
|
19
|
+
/** Hook for Command to access dialog's onClose */
|
|
20
|
+
export const useCommandDialogClose = () => useContext(CommandDialogContext).onClose;
|
|
21
21
|
const CommandDialog = ({ trigger, open, onOpenChange, title, description, children, footer, className, noSwipe = false, }) => {
|
|
22
22
|
const handleClose = () => {
|
|
23
23
|
onOpenChange?.(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { DialogContent as ContentPrimitive } from './DialogPrimitive';
|
|
1
2
|
import { type SurfaceVariant } from '../../utils/constants';
|
|
2
3
|
import { type ButtonVariant } from '../Button';
|
|
3
|
-
import { DialogContent as ContentPrimitive } from './DialogPrimitive';
|
|
4
4
|
import type { ReactNode, ComponentProps, RefObject } from 'react';
|
|
5
5
|
export type ContentSize = 'auto' | 'form' | 'text' | 'image' | 'code' | 'full';
|
|
6
6
|
declare const DialogContent: ({ className, children, noSwipe, closeButtonRef, onOpenChange, ...props }: ComponentProps<typeof ContentPrimitive> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Dialog/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/Dialog/index.tsx"],"names":[],"mappings":"AAcA,OAAO,EAGL,aAAa,IAAI,gBAAgB,EAQlC,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE7E,OAAe,EAAkB,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAU/E,QAAA,MAAM,aAAa,GAAI,0EAOpB,cAAc,CAAC,OAAO,gBAAgB,CAAC,GAAG;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,SAAS,CAAC,iBAAiB,GAAG,IAAI,CAAC,CAAC;IACrD,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC,4CAyBA,CAAC;AAiCF,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAEtE,MAAM,WAAW,WAAY,SAAQ,IAAI,CACvC,kBAAkB,EAClB,UAAU,GAAG,OAAO,CACrB;IACC,wCAAwC;IACxC,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,mBAAmB;IACnB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,qBAAqB;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,uCAAuC;IACvC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,sIAAsI;IACtI,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,sDAAsD;IACtD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kDAAkD;IAClD,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE;YACP,KAAK,EAAE,MAAM,CAAC;YACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;SACtB,CAAC;QACF,OAAO,CAAC,EAAE;YACR,KAAK,EAAE,MAAM,CAAC;YACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;YACrB,OAAO,CAAC,EAAE,aAAa,CAAC;SACzB,CAAC;KACH,CAAC;CACH;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,QAAA,MAAM,MAAM,GAAI,yIAcb,WAAW,4CAkFb,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,eAAe,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC1E,YAAY,EAAE,cAAc,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -10,11 +10,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
10
10
|
*/
|
|
11
11
|
import { X } from 'lucide-react';
|
|
12
12
|
import { useRef } from 'react';
|
|
13
|
+
import { Dialog as Root, DialogTrigger as Trigger, DialogContent as ContentPrimitive, DialogHeader as HeaderPrimitive, DialogFooter as FooterPrimitive, DialogTitle as TitlePrimitive, DialogDescription as DescriptionPrimitive, DialogClose as Close, DialogOverlay as OverlayPrimitive, DialogPortal, } from './DialogPrimitive';
|
|
13
14
|
import { useSwipeToClose } from '../../hooks';
|
|
14
15
|
import { SURFACE_VARIANT } from '../../utils/constants';
|
|
15
16
|
import { cn, getVariantDataAttrs } from '../../utils/helpers';
|
|
16
17
|
import Button, { BUTTON_VARIANT } from '../Button';
|
|
17
|
-
import { Dialog as Root, DialogTrigger as Trigger, DialogContent as ContentPrimitive, DialogHeader as HeaderPrimitive, DialogFooter as FooterPrimitive, DialogTitle as TitlePrimitive, DialogDescription as DescriptionPrimitive, DialogClose as Close, DialogOverlay as OverlayPrimitive, DialogPortal, } from './DialogPrimitive';
|
|
18
18
|
// Wrapper components that apply dndev-* classes
|
|
19
19
|
const DialogOverlay = ({ className, ...props }) => (_jsx(OverlayPrimitive, { className: cn('dndev-overlay', className), ...props }));
|
|
20
20
|
const DialogContent = ({ className, children, noSwipe = false, closeButtonRef, onOpenChange, ...props }) => {
|
|
@@ -25,7 +25,7 @@ import { type ElementType, type ComponentPropsWithRef, type ReactNode } from 're
|
|
|
25
25
|
import { type Tone } from '../../utils/constants';
|
|
26
26
|
import './HeroSection.css';
|
|
27
27
|
declare const heroSectionVariants: (props?: ({
|
|
28
|
-
variant?: "
|
|
28
|
+
variant?: "primary" | "accent" | "subtle" | null | undefined;
|
|
29
29
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
30
30
|
interface HeroSectionOwnProps extends VariantProps<typeof heroSectionVariants> {
|
|
31
31
|
/** Element type to render as @default 'section' */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/HoverCard/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atomic/HoverCard/index.tsx"],"names":[],"mappings":"AAoBA,OAAa,EAAE,KAAK,SAAS,EAAE,MAAM,SAAS,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,cAAe,SAAQ,IAAI,CAC1C,SAAS,EACT,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CACjE;IACC,mDAAmD;IACnD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,gCAAgC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,KAAK,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACnC,8BAA8B;IAC9B,IAAI,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3C,4BAA4B;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,iBAAS,SAAS,CAAC,EACjB,OAAO,EACP,KAAK,EACL,QAAQ,EACR,OAAO,EACP,MAAM,EACN,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,SAAa,EACb,UAAc,EACd,KAAgB,EAChB,IAAe,EACf,UAAc,EACd,SAAS,GACV,EAAE,cAAc,2CA4ChB;AAED,eAAe,SAAS,CAAC"}
|
|
@@ -11,8 +11,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
*/
|
|
12
12
|
import { useState } from 'react';
|
|
13
13
|
import { HoverCardPrimitive, HoverCardTrigger, HoverCardContent, } from './HoverCardPrimitive';
|
|
14
|
-
import Card, {} from '../Card';
|
|
15
14
|
import { cn } from '../../utils/helpers';
|
|
15
|
+
import Card, {} from '../Card';
|
|
16
16
|
/**
|
|
17
17
|
* Accessible hover card component.
|
|
18
18
|
* Shows rich content on hover using Radix HoverCard primitive.
|