cortex-react-components 2.23.2 → 2.25.0
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/chunk-2HKAJ4TZ.mjs +4 -0
- package/dist/{chunk-IF3425JX.mjs → chunk-2VOOH4YJ.mjs} +1 -1
- package/dist/{chunk-LBUC4M6L.mjs → chunk-3MCZBHGA.mjs} +1 -1
- package/dist/{chunk-UECG3SCG.mjs → chunk-3Y4EXCL7.mjs} +1 -1
- package/dist/{chunk-CBIULUZQ.mjs → chunk-4IVQWIYV.mjs} +1 -1
- package/dist/{chunk-67QPOSVV.mjs → chunk-57PJ7CHJ.mjs} +1 -1
- package/dist/{chunk-GZ7FGBTR.mjs → chunk-5EM6P7SU.mjs} +1 -1
- package/dist/{chunk-5WVFEIMC.mjs → chunk-6DQ7FEQQ.mjs} +1 -1
- package/dist/chunk-6UDBIRMT.mjs +1 -0
- package/dist/{chunk-HKGW6JI2.mjs → chunk-75XBZHOC.mjs} +1 -1
- package/dist/{chunk-M7NV6EFH.mjs → chunk-B2TBKNIJ.mjs} +1 -1
- package/dist/{chunk-TSFX33PR.mjs → chunk-BGQC6IQK.mjs} +1 -1
- package/dist/{chunk-GSSW663E.mjs → chunk-BZOG5JBW.mjs} +1 -1
- package/dist/{chunk-XJKRA2AE.mjs → chunk-CMU5JFUC.mjs} +1 -1
- package/dist/{chunk-N3B3XNV3.mjs → chunk-FRXZ2OKW.mjs} +1 -1
- package/dist/{chunk-MXCW6SOT.mjs → chunk-FX6IXEMQ.mjs} +1 -1
- package/dist/{chunk-LEUI66J6.mjs → chunk-GULRIPMU.mjs} +1 -1
- package/dist/{chunk-TKCFCYEQ.mjs → chunk-HSQAHQNP.mjs} +1 -1
- package/dist/{chunk-NWISIJFD.mjs → chunk-K4MFTVNB.mjs} +1 -1
- package/dist/{chunk-5SHZBJ5R.mjs → chunk-KY3ELFX5.mjs} +1 -1
- package/dist/{chunk-LJOWXPWW.mjs → chunk-MUHR5KA5.mjs} +1 -1
- package/dist/{chunk-YKG4FNS4.mjs → chunk-N52FSTLG.mjs} +1 -1
- package/dist/{chunk-ERJXTG6X.mjs → chunk-NPGGDQ6F.mjs} +1 -1
- package/dist/{chunk-JTMIQ7MK.mjs → chunk-NXAQ6ESJ.mjs} +1 -1
- package/dist/chunk-P5LSKHQC.mjs +9 -0
- package/dist/{chunk-CQAMS7RZ.mjs → chunk-PDAMYUP7.mjs} +1 -1
- package/dist/{chunk-JPLBPV7J.mjs → chunk-PYFPL7A5.mjs} +1 -1
- package/dist/{chunk-2RQDJ5XT.mjs → chunk-Q7KKN6MH.mjs} +1 -1
- package/dist/{chunk-H3CJOE6S.mjs → chunk-QWFFSMKK.mjs} +1 -1
- package/dist/{chunk-P55W6AFU.mjs → chunk-RIRZRO6U.mjs} +1 -1
- package/dist/{chunk-PK3OBSCB.mjs → chunk-RUZVSK25.mjs} +1 -1
- package/dist/{chunk-FKU4VQR6.mjs → chunk-S4ES6P3Y.mjs} +1 -1
- package/dist/chunk-SEITRCGW.mjs +1 -0
- package/dist/{chunk-7GMAMIHM.mjs → chunk-SPAOEUCG.mjs} +1 -1
- package/dist/{chunk-B7AXSCTN.mjs → chunk-STX6KQP5.mjs} +1 -1
- package/dist/{chunk-RSDUFAIB.mjs → chunk-T5HJS6OF.mjs} +1 -1
- package/dist/{chunk-LJQPLE4S.mjs → chunk-TUACRDU3.mjs} +1 -1
- package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
- package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
- package/dist/{chunk-SCBDVNHG.mjs → chunk-VATGKKXW.mjs} +1 -1
- package/dist/{chunk-255P6K5W.mjs → chunk-VBSFVJM5.mjs} +1 -1
- package/dist/{chunk-6PS55VJZ.mjs → chunk-VDFRWGXR.mjs} +1 -1
- package/dist/{chunk-XGIYNUGC.mjs → chunk-VNYUNZ3M.mjs} +1 -1
- package/dist/{chunk-2BR55L74.mjs → chunk-VRE6VCHX.mjs} +1 -1
- package/dist/chunk-VTFO5GXK.mjs +4 -0
- package/dist/chunk-XDELWNND.mjs +4 -0
- package/dist/{chunk-S7MFNEEY.mjs → chunk-YJ7XPZWV.mjs} +1 -1
- package/dist/components/Blocks/Banner.mjs +1 -1
- package/dist/components/Blocks/CallToAction.mjs +1 -1
- package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
- package/dist/components/Blocks/Content.mjs +1 -1
- package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
- package/dist/components/Blocks/ImageBlock.mjs +1 -1
- package/dist/components/Blocks/MediaBlock.mjs +1 -1
- package/dist/components/Blocks/RelatedPosts.mjs +1 -1
- package/dist/components/Blocks/RenderBlocks.mjs +1 -1
- package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
- package/dist/components/Blocks/index.mjs +1 -1
- package/dist/components/Cards/ContentCard.mjs +1 -1
- package/dist/components/Cards/FeatureCard.mjs +1 -1
- package/dist/components/Cards/index.mjs +1 -1
- package/dist/components/Chat/ChatInterface.mjs +1 -1
- package/dist/components/Chat/CopilotInterface.mjs +1 -1
- package/dist/components/Chat/demo-long-messages.mjs +1 -1
- package/dist/components/Chat/demo-tests.mjs +1 -1
- package/dist/components/Chat/demo.mjs +1 -1
- package/dist/components/Chat/example-usage.mjs +1 -1
- package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
- package/dist/components/Chat/index.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +6 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +6 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +6 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
- package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.js +6 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/RichText/index.js +1 -1
- package/dist/components/Foundary/RichText/index.mjs +1 -1
- package/dist/components/Foundary/RichText/plugins/toolbar-plugin.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.js +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +6 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/document-edit.js +1 -1
- package/dist/components/Foundary/document-edit.mjs +1 -1
- package/dist/components/Foundary/document-preview-examples.js +3 -3
- package/dist/components/Foundary/document-preview-examples.mjs +1 -1
- package/dist/components/Foundary/document-preview.js +1 -1
- package/dist/components/Foundary/document-preview.mjs +1 -1
- package/dist/components/Foundary/file-edit.css +1 -0
- package/dist/components/Foundary/file-edit.d.ts +9 -0
- package/dist/components/Foundary/file-edit.js +9 -0
- package/dist/components/Foundary/file-edit.mjs +2 -0
- package/dist/components/Foundary/index.js +6 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/Foundary/knowledge-browser.js +1 -1
- package/dist/components/Foundary/knowledge-browser.mjs +1 -1
- package/dist/components/Foundary/types.d.ts +1 -0
- package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
- package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
- package/dist/components/HeaderFooter/index.mjs +1 -1
- package/dist/components/Heros/HighImpact/index.mjs +1 -1
- package/dist/components/Heros/LowImpact/index.mjs +1 -1
- package/dist/components/Heros/MediumImpact/index.mjs +1 -1
- package/dist/components/Heros/PostHero/index.mjs +1 -1
- package/dist/components/Heros/RenderHero.mjs +1 -1
- package/dist/components/Heros/SectionHero/index.mjs +1 -1
- package/dist/components/Heros/index.mjs +1 -1
- package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
- package/dist/components/Layouts/Print.mjs +1 -1
- package/dist/components/Layouts/SlideShow.mjs +1 -1
- package/dist/components/Layouts/index.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/index.mjs +1 -1
- package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
- package/dist/components/Payload/Media/index.mjs +1 -1
- package/dist/components/Payload/PayloadCard/index.mjs +1 -1
- package/dist/components/Payload/RichText/index.mjs +1 -1
- package/dist/components/Payload/RichText/serialize.mjs +1 -1
- package/dist/components/Payload/index.mjs +1 -1
- package/dist/components/Projects/EpicsView.mjs +1 -1
- package/dist/components/Projects/FileView.d.ts +2 -1
- package/dist/components/Projects/FileView.js +6 -1
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.d.ts +3 -0
- package/dist/components/Projects/KanbanBoardView.js +6 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +6 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.js +6 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.d.ts +3 -0
- package/dist/components/Projects/TaskDetailsModal.js +6 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/file-list.d.ts +4 -2
- package/dist/components/Projects/file-list.js +6 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/Projects/index.js +6 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.js +6 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +31 -26
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +36 -31
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/pages/Blog.mjs +1 -1
- package/dist/pages/Documentation.mjs +1 -1
- package/dist/pages/IndexPage.mjs +1 -1
- package/dist/pages/Intranet.mjs +1 -1
- package/dist/pages/LandingPage.mjs +1 -1
- package/dist/pages/Page.mjs +1 -1
- package/dist/pages/Publish.mjs +1 -1
- package/dist/pages/Website.mjs +1 -1
- package/dist/sections/AboutSection.mjs +1 -1
- package/dist/sections/BlogDetail.mjs +1 -1
- package/dist/sections/BlogList.mjs +1 -1
- package/dist/sections/BlogListSection.mjs +1 -1
- package/dist/sections/ContactSection.mjs +1 -1
- package/dist/sections/PageSections.mjs +1 -1
- package/dist/sections/PricingSection.mjs +1 -1
- package/dist/sections/ServiceDetail.mjs +1 -1
- package/dist/sections/ServiceDetailSection.mjs +1 -1
- package/dist/sections/ServiceSection.mjs +1 -1
- package/dist/sections/form/index.mjs +1 -1
- package/dist/sections/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-JXQRVEQB.mjs +0 -4
- package/dist/chunk-L5NPH5RX.mjs +0 -1
- package/dist/chunk-NAGBKKTZ.mjs +0 -4
- package/dist/chunk-PZFYJ5FS.mjs +0 -4
- package/dist/chunk-UM57PWI7.mjs +0 -1
package/dist/chunk-JXQRVEQB.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{b as a}from"./chunk-ZUA4KNIR.mjs";import{motion as c}from"motion/react";import{Trash2 as v}from"lucide-react";import{jsx as e,jsxs as s}from"react/jsx-runtime";var p=t=>{if(!t||t<=0)return"0 KB";let o=t/1024;return o<1024?`${o.toFixed(2)} KB`:`${(o/1024).toFixed(2)} MB`};function F({files:t,onFileClick:o,onFileEdit:d,onFileDelete:l,showHeader:m=!0,className:r}){return s("div",{className:`rounded-3xl border overflow-hidden ${r||""}`,children:[m&&s("div",{className:"bg-muted/50 p-3 hidden md:grid md:grid-cols-10 text-sm font-medium",children:[e("div",{className:"col-span-6",children:"Name"}),e("div",{className:"col-span-2",children:"Size"}),e("div",{className:"col-span-2",children:"Modified"})]}),e("div",{className:"divide-y",children:t.map(i=>s(c.div,{whileHover:{backgroundColor:"rgba(0,0,0,0.02)"},className:"p-3 md:grid md:grid-cols-10 items-center flex flex-col md:flex-row gap-3 md:gap-0 cursor-pointer",onClick:()=>o?.(i),children:[s("div",{className:"col-span-6 flex items-center gap-3 w-full md:w-auto",children:[e("div",{className:"flex h-10 w-10 items-center justify-center rounded-2xl bg-muted"}),e("div",{children:e("p",{className:"font-medium",children:i.name})})]}),e("div",{className:"col-span-2 text-sm md:text-base",children:p(i.filesize)}),s("div",{className:"col-span-2 flex items-center justify-between w-full md:w-auto",children:[e("span",{className:"text-sm md:text-base",children:new Date(i.createdAt).toLocaleDateString()}),e("div",{className:"flex gap-1",children:e(a,{variant:"ghost",size:"icon",className:"h-8 w-8 rounded-xl text-red-500 hover:text-red-600",onClick:n=>{n.stopPropagation(),l?.(i)},children:e(v,{className:"h-4 w-4"})})})]})]},i.name))})]})}export{F as a};
|
package/dist/chunk-L5NPH5RX.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as q}from"./chunk-KZCIHFTM.mjs";import{a as J}from"./chunk-UM57PWI7.mjs";import{a as b}from"./chunk-KG7HG2VO.mjs";import{a as Q}from"./chunk-L3V5YDPH.mjs";import{a as G}from"./chunk-QC2UWZWL.mjs";import{a as V}from"./chunk-Z22NSJMF.mjs";import{a as w}from"./chunk-UVHMI3PU.mjs";import{b as F}from"./chunk-CSBGSBEU.mjs";import fe,{useEffect as c,useState as i,useRef as l}from"react";import{jsx as n,jsxs as T}from"react/jsx-runtime";var ye=({initialTasks:m=[],initialEpics:v=[],initialSprints:h=[],initialUsers:ke=[],initialColleagues:A=[],initialProjects:Te=[],onAddTask:W,onUpdateTask:C,onDeleteTask:x,onTaskClick:X,onAddEpic:Y,onAddComment:Z})=>{let[_,p]=i([]),[d,y]=i([]),[O,ee]=i([]),[H,N]=i(!1),[P,M]=i(!1),[r,u]=i(null),[E,B]=i(null),[te,ve]=i([]),[I,se]=i([]),[g,R]=i(0),o=l(null),ae=l(null),ne=fe.useMemo(()=>[...d.map(e=>e.id),0],[d]),U=l(""),j=l(""),$=l(""),K=l(""),f=e=>e.map(t=>`${t.id}-${new Date(t.createdAt).getTime()}-${new Date(t.updatedAt).getTime()}`).join("-");c(()=>{let e=f(m);e!==U.current&&(p(m),r&&u(m.find(t=>t.id===r.id)||null),U.current=e)},[m]),c(()=>{let e=f(v);e!==j.current&&(y(v),j.current=e)},[v]),c(()=>{let e=f(h);e!==$.current&&(ee(h),$.current=e)},[h]),c(()=>{let e=f(A.map(t=>({id:t.id,updatedAt:t.updatedAt,createdAt:t.createdAt})));e!==K.current&&(se(A),K.current=e)},[A]),c(()=>{let e=()=>{if(o.current){let a=o.current.offsetHeight;R(a)}};e();let t=new ResizeObserver(e);o.current&&t.observe(o.current);let s=()=>{setTimeout(e,100)};return window.addEventListener("storage",s),()=>{t.disconnect(),window.removeEventListener("storage",s)}},[]),c(()=>{let e=setTimeout(()=>{o.current&&R(o.current.offsetHeight)},300);return()=>clearTimeout(e)},[H,P]);let ie=_.filter(e=>!0),re=e=>ie.filter(t=>t.status===e),oe=e=>{let t={};return d.forEach(s=>{t[s.id]=e.filter(a=>w(a.epic)===s.id)}),t["no-epic"]=e.filter(s=>!w(s.epic)),t},L=e=>{B(e)},de=e=>{E&&(p(t=>t.map(s=>s.id===E.id?{...s,status:e}:s)),C?.(E.id.toString(),{status:e}),B(null))},ce=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};p(s=>[...s,t]),W?.(e)},le=async(e,t)=>{p(s=>s.map(a=>a.id===Number(e)?{...a,...t}:a)),C&&await C(e,t),r?.id===Number(e)&&u(s=>({...s,...t}))},pe=async e=>{p(t=>t.filter(s=>s.id!==Number(e))),r?.id===Number(e)&&u(null),x&&await x(e)},ue=e=>{let t={...e,id:Date.now(),createdAt:new Date().toISOString(),updatedAt:new Date().toISOString()};y(s=>[...s,t]),Y?.(e)},z=e=>{u(e),X?.(e)},me=[{id:"todo",title:"To Do",status:"todo"},{id:"in-progress",title:"In Progress",status:"in-progress"},{id:"review",title:"Review",status:"review"},{id:"done",title:"Done",status:"done"}],ge=g>0?`calc(100vh - ${g+120}px)`:"calc(100vh - 12rem)";return T("div",{ref:ae,className:"h-full flex flex-col px-2 md:px-4 py-4",children:[n("div",{ref:o,className:"flex-shrink-0",children:n(V,{title:"Project Board",description:"Manage tasks and track progress across your project sprints.",gradient:"bg-gradient-to-r from-purple-600 via-violet-600 to-indigo-600",primaryAction:{label:"Add task",onClick:()=>N(!0)},secondaryAction:{label:"Add epic",onClick:()=>M(!0)}})}),n("div",{className:"flex-1 min-h-0 mt-8",children:n("div",{className:"h-full",style:{height:g>0?`calc(100vh - ${g+120}px)`:"calc(100vh - 12rem)"},children:n("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 h-full",children:me.map(e=>{let t=re(e.status),s=oe(t);return T(q,{title:e.title,status:e.status,taskCount:t.length,onDrop:de,isCompact:e.status==="done",height:ge,children:[s["no-epic"].map(a=>n(b,{epic:null,task:a,onDragStart:L,onTaskClick:z,isCompact:e.status==="done"},a.id)),ne.map(a=>{let D=d.find(k=>k.id===a),S=s[a]||[];return S.length===0?null:T("div",{className:"mb-6",children:[T("div",{className:"flex items-center gap-2 mb-3",children:[n("div",{className:`w-3 h-3 rounded-full ${D?.color}`}),n("span",{className:"text-sm font-medium text-muted-foreground select-none-important",children:D?.name||"No Epic"}),n(F,{variant:"secondary",className:"text-xs",children:S.length})]})," ",n("div",{className:"space-y-3",children:S.map(k=>n(b,{task:k,epic:D,onDragStart:L,onTaskClick:z,isCompact:e.status==="done"},k.id))})]},a)})]},e.id)})})})}),n(G,{isOpen:H,onClose:()=>N(!1),onAddTask:ce,assignees:[...I,...te],epics:d,sprints:O}),n(Q,{isOpen:P,onClose:()=>M(!1),onAddEpic:ue}),r&&n(J,{isOpen:!!r,onClose:()=>u(null),initialTask:r,epics:d,sprints:O,onUpdateTask:le,onDeleteTask:pe,colleagues:I,onAddComment:Z})]})};export{ye as a};
|
package/dist/chunk-NAGBKKTZ.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as d}from"./chunk-JXQRVEQB.mjs";import{a as k}from"./chunk-DCOFQFVJ.mjs";import{a as A}from"./chunk-Z22NSJMF.mjs";import{a as x}from"./chunk-FGEFYI5E.mjs";import{a as T}from"./chunk-L5JPAKPM.mjs";import{b as F}from"./chunk-ZUA4KNIR.mjs";import{a as u,e as g}from"./chunk-YO3GQYRJ.mjs";import{useEffect as V,useRef as j,useState as o}from"react";import{Plus as z,Search as G,File as W,Filter as q}from"lucide-react";import{motion as J,AnimatePresence as K}from"motion/react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function Q({initialFiles:s=[],onFileAdd:D,onFileEdit:S,onFileDelete:E,onFileClick:H,compactView:c=!1,className:$}){let[P,h]=o(s),[n,v]=o(""),[y,B]=o("all"),[r,M]=o("all"),[O,C]=o(!1),b=j(""),I=l=>l.map(i=>`${i.id}-${new Date(i.createdAt).getTime()}-${new Date(i.updatedAt).getTime()}`).join("-");V(()=>{let l=I(s);l!==b.current&&(h(s),b.current=l)},[s]);let a=P.filter(l=>l.name.toLowerCase().includes(n.toLowerCase())),N=a.slice(0,10),L=a.filter(Boolean),w=()=>{C(!0)},m=l=>{S?.(l)},p=l=>{console.log("deleting file",l),h(i=>i.filter(U=>U.name!==l.name)),E?.(l.id.toString())},f=l=>{H?.(l)},R=()=>{v(""),B("all")};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(K,{mode:"wait",children:e(J.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:t("div",{className:`space-y-6 ${$||""}`,children:[e(A,{title:"Files",description:"Manage and organize your files and documents.",gradient:"bg-gradient-to-r from-blue-600 via-indigo-600 to-purple-600",primaryAction:{label:"Upload file",onClick:w},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),e(u,{children:e(g,{className:"pt-6",children:t("div",{className:"flex flex-col md:flex-row gap-4",children:[e("div",{className:"flex-1",children:t("div",{className:"relative",children:[e(G,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(T,{placeholder:"Search files...",value:n,onChange:l=>v(l.target.value),className:"pl-9"})]})}),(n||y!=="all")&&t(F,{variant:"outline",onClick:R,className:"gap-2",children:[e(q,{className:"h-4 w-4"}),"Clear"]})]})})}),t("div",{className:"space-y-4",children:[e(x,{activeTab:r,onTabChange:M,tabOptions:[{value:"all",label:`All Files (${a.length})`},{value:"recent",label:`Recent (${N.length})`}],maxWidth:"500px",gridCols:3}),r==="all"&&e(d,{files:a,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!c}),r==="recent"&&e(d,{files:N,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!c}),r==="shared"&&e(d,{files:L,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!c})]}),a.length===0&&e(u,{children:e(g,{className:"pt-6",children:t("div",{className:"text-center py-8",children:[e(W,{className:"h-12 w-12 text-muted-foreground mx-auto mb-4"}),e("h3",{className:"text-lg font-semibold mb-2",children:"No files found"}),e("p",{className:"text-muted-foreground mb-4",children:n||y!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),t(F,{onClick:w,className:"gap-2",children:[e(z,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")}),e(k,{isOpen:O,onClose:()=>C(!1),onAddFile:D})]})}export{Q as a};
|
package/dist/chunk-PZFYJ5FS.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as c}from"./chunk-LEUI66J6.mjs";import{d as m}from"./chunk-RKS7CWAP.mjs";import{a as s}from"./chunk-BZEGLKRZ.mjs";import{AutoFocusPlugin as p}from"@payloadcms/richtext-lexical/lexical/react/LexicalAutoFocusPlugin";import{LexicalComposer as g}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposer";import{ContentEditable as x}from"@payloadcms/richtext-lexical/lexical/react/LexicalContentEditable";import{LexicalErrorBoundary as f}from"@payloadcms/richtext-lexical/lexical/react/LexicalErrorBoundary";import{HistoryPlugin as C}from"@payloadcms/richtext-lexical/lexical/react/LexicalHistoryPlugin";import{RichTextPlugin as E}from"@payloadcms/richtext-lexical/lexical/react/LexicalRichTextPlugin";import{ListPlugin as b}from"@payloadcms/richtext-lexical/lexical/react/LexicalListPlugin";import{ListItemNode as v,ListNode as P}from"@payloadcms/richtext-lexical/lexical/list";import{HeadingNode as L}from"@payloadcms/richtext-lexical/lexical/rich-text";import{OnChangePlugin as N}from"@payloadcms/richtext-lexical/lexical/react/LexicalOnChangePlugin";import{useEffect as u}from"react";import{useLexicalComposerContext as R}from"@payloadcms/richtext-lexical/lexical/react/LexicalComposerContext";import{Fragment as T,jsx as t,jsxs as a}from"react/jsx-runtime";var y=({setValue:n,value:i,name:l,editable:e=!0})=>{let[o]=R(),r=d=>{d.read(()=>{let h=d.toJSON();n?.(()=>h)})};return u(()=>{o.setEditable(e)},[e]),u(()=>{i&&o.update(()=>{o.setEditorState(o.parseEditorState(i))})},[]),t("div",{className:"w-full",children:a("div",{className:" ",children:[e&&t(c,{}),a("div",{className:"px-4 my-4 border-l border-[#222222]",children:[t(E,{contentEditable:t(x,{name:l,className:"focus:outline-none focus:ring-0 focus-visible:outline-none min-h-40"}),ErrorBoundary:f}),e&&a(T,{children:[t(C,{}),t(p,{}),t(b,{}),t(N,{onChange:r}),t(m,{})]})]})]})})},S=({setValue:n,value:i,name:l,editable:e=!0})=>t(g,{initialConfig:{namespace:"Lexical editor",nodes:[P,v,L,s],onError(r){throw console.error("Lexical error:",r),r},theme:{code:"editor-code",heading:{h1:"text-4xl text-primary",h2:"text-3xl",h3:"text-2xl",h4:"text-lg",h5:"text-sm"},image:"editor-image",link:"editor-link",list:{listitem:"editor-listitem",nested:{listitem:"editor-nested-listitem"},ol:"list-decimal",ul:"list-disc"},ltr:"ltr",paragraph:"editor-paragraph",placeholder:"editor-placeholder",quote:"editor-quote",rtl:"rtl",text:{bold:"editor-text-bold font-bold",code:"editor-text-code",hashtag:"editor-text-hashtag",italic:"editor-text-italic italic",overflowed:"editor-text-overflowed",strikethrough:"editor-text-strikethrough line-through",underline:"editor-text-underline underline",underlineStrikethrough:"underline line-through"}}},children:t(y,{value:i,setValue:n,name:l,editable:e})}),Q=S;export{Q as a};
|
package/dist/chunk-UM57PWI7.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as C}from"./chunk-ZHBYZ4HE.mjs";import{a as y}from"./chunk-6SWKEZN6.mjs";import{a as p}from"./chunk-DFIXTV2M.mjs";import{a as T,f as x,g as h,i as b}from"./chunk-3UMMMQEH.mjs";import{useEffect as R,useState as r}from"react";import{Loader2 as X,Check as j,X as q}from"lucide-react";import{jsx as t,jsxs as i}from"react/jsx-runtime";var $=({isOpen:w,onClose:u,initialTask:l,epics:U,sprints:N,onUpdateTask:f,onDeleteTask:I,onAddComment:v,colleagues:M})=>{let[s,P]=r(l),[A,c]=r(new Date),[o,e]=r("idle"),[m,d]=r("idle"),[z,B]=r([]),[E,G]=r(M);R(()=>{P(l)},[l]);let D=async(a,n)=>{if(n!==s[a]){e("loading");try{await f(s.id.toString(),{[a]:n}),c(new Date),e("success"),setTimeout(()=>e("idle"),1500)}catch(g){console.log("error",g),e("error"),setTimeout(()=>e("idle"),3e3)}}},F=async(a,n)=>{if(n!==s[a]){e("loading");try{await f(s.id.toString(),{[a]:n}),c(new Date),e("success"),setTimeout(()=>e("idle"),1500)}catch(g){console.log("error",g),e("error"),setTimeout(()=>e("idle"),3e3)}}},H=async a=>{if(v){e("loading");try{await v?.({content:a,taskId:s.id.toString()}),c(new Date),e("success"),setTimeout(()=>e("idle"),1500)}catch{e("error"),setTimeout(()=>e("idle"),3e3)}}},L=async()=>{d("loading");try{await I(s.id.toString()),d("success"),setTimeout(()=>{u(),d("idle")},1e3)}catch{d("error"),setTimeout(()=>d("idle"),3e3)}},k=o!=="loading"&&m!=="loading",S=()=>{k&&u()},O=()=>o==="loading"?i("div",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[t(X,{className:"h-4 w-4 animate-spin"}),t("span",{children:"Updating..."})]}):o==="success"?i("div",{className:"flex items-center gap-2 text-sm text-success",children:[t(j,{className:"h-4 w-4"}),t("span",{children:"Updated successfully"})]}):o==="error"?i("div",{className:"flex items-center gap-2 text-sm text-destructive",children:[t(q,{className:"h-4 w-4"}),t("span",{children:"Update failed"})]}):null;return t(T,{open:w,onOpenChange:S,children:i(x,{className:"max-w-3xl max-h-[80vh] overflow-y-auto p-4",children:[i(h,{children:[t(b,{className:"sr-only",children:s?.name}),i("div",{className:"flex items-center justify-between",children:[t("div",{className:"flex-1",children:O()}),!k&&t("div",{className:"text-xs text-muted-foreground",children:"Please wait..."})]})]}),i("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4",children:[i("div",{className:"lg:col-span-2 space-y-4",children:[t(p,{fieldName:"name",value:s.name||"",label:"",onSave:D,className:"border-b border-border pb-3",disabled:o==="loading"}),t(p,{fieldName:"description",value:s.description||"",label:"Description",multiline:!0,onSave:D,disabled:o==="loading"}),t(y,{comments:(s?.comments||[]).map(a=>({author:a.author.value.name||"",createdAt:new Date(a.timestamp),text:a.text,id:a.id||""})),onAddComment:H})]}),t(C,{task:s,epics:U,sprints:N,lastUpdated:A,onUpdateTask:F,onClose:S,onDelete:L,isUpdating:o==="loading",isDeleting:m==="loading",deleteState:m,teamMembers:E})]})]})})};export{$ as a};
|