cortex-react-components 2.13.6 → 2.13.8
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-IF3425JX.mjs → chunk-2VOOH4YJ.mjs} +1 -1
- package/dist/{chunk-62A35O55.mjs → chunk-3MCZBHGA.mjs} +1 -1
- package/dist/{chunk-XKGBG5FX.mjs → chunk-4IVQWIYV.mjs} +1 -1
- package/dist/{chunk-67QPOSVV.mjs → chunk-57PJ7CHJ.mjs} +1 -1
- package/dist/{chunk-LHO4WFYP.mjs → chunk-5FWH5YVM.mjs} +1 -1
- package/dist/{chunk-5WVFEIMC.mjs → chunk-6DQ7FEQQ.mjs} +1 -1
- package/dist/{chunk-2HWSTGAP.mjs → chunk-6FHRZHAJ.mjs} +1 -1
- package/dist/{chunk-HKGW6JI2.mjs → chunk-75XBZHOC.mjs} +1 -1
- package/dist/chunk-7O5XSUX2.mjs +1 -0
- package/dist/{chunk-B7AXSCTN.mjs → chunk-7V2BDLRI.mjs} +1 -1
- package/dist/{chunk-M7NV6EFH.mjs → chunk-B2TBKNIJ.mjs} +1 -1
- package/dist/{chunk-MFCVMJBO.mjs → chunk-BDDEMCAH.mjs} +1 -1
- package/dist/chunk-DCOFQFVJ.mjs +1 -0
- package/dist/{chunk-76AKO55V.mjs → chunk-DHXQXFOB.mjs} +1 -1
- package/dist/chunk-DXRAJQMA.mjs +1 -0
- package/dist/{chunk-N3B3XNV3.mjs → chunk-FRXZ2OKW.mjs} +1 -1
- package/dist/{chunk-MXCW6SOT.mjs → chunk-FX6IXEMQ.mjs} +1 -1
- package/dist/{chunk-TKCFCYEQ.mjs → chunk-HSQAHQNP.mjs} +1 -1
- package/dist/chunk-IKZZNNKD.mjs +4 -0
- package/dist/{chunk-NWISIJFD.mjs → chunk-K4MFTVNB.mjs} +1 -1
- package/dist/{chunk-AQQCH7Z2.mjs → chunk-KBEXWUKI.mjs} +1 -1
- package/dist/{chunk-5SHZBJ5R.mjs → chunk-KY3ELFX5.mjs} +1 -1
- package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
- package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
- package/dist/{chunk-X3I4Y44O.mjs → chunk-LAQHJZ32.mjs} +1 -1
- package/dist/{chunk-MLMDTZHL.mjs → chunk-LVXEY6OU.mjs} +1 -1
- package/dist/{chunk-AMVJPDM3.mjs → chunk-M527EJIX.mjs} +1 -1
- package/dist/{chunk-DMCFEJ2C.mjs → chunk-MAZGVZJN.mjs} +1 -1
- package/dist/{chunk-CBYI4FLL.mjs → chunk-MIOYUP5Z.mjs} +1 -1
- package/dist/{chunk-I2GNNRFH.mjs → chunk-MUHR5KA5.mjs} +1 -1
- package/dist/{chunk-P7S6XFU4.mjs → chunk-MX3JKY3V.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-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
- package/dist/{chunk-2RQDJ5XT.mjs → chunk-Q7KKN6MH.mjs} +1 -1
- package/dist/{chunk-QSXEJ2NO.mjs → chunk-QW5KPNB3.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-7GMAMIHM.mjs → chunk-SPAOEUCG.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-GTXTHH5Y.mjs → chunk-ULO56RLR.mjs} +1 -1
- package/dist/{chunk-X3JZSN3W.mjs → chunk-UZSBX5GO.mjs} +1 -1
- package/dist/{chunk-255P6K5W.mjs → chunk-VBSFVJM5.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-5NIEZE7A.mjs → chunk-XX4GSGRP.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/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/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/DigitalColleagues/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.js +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.js +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
- package/dist/components/Foundary/MainPage.mjs +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.js +1 -1
- package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
- package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
- package/dist/components/Foundary/Views/index.js +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/index.js +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- package/dist/components/HeaderFooter/Header.mjs +1 -1
- package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
- package/dist/components/HeaderFooter/SectionHeading.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/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/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/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/AddFileModal.css +1 -0
- package/dist/components/Projects/AddFileModal.d.ts +8 -0
- package/dist/components/Projects/AddFileModal.js +4 -0
- package/dist/components/Projects/AddFileModal.mjs +1 -0
- package/dist/components/Projects/FileView.d.ts +2 -2
- package/dist/components/Projects/FileView.js +1 -1
- package/dist/components/Projects/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.js +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.d.ts +1 -1
- package/dist/components/Projects/ProjectView.js +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/ProjectsIndexView.mjs +1 -1
- package/dist/components/Projects/TasksView.js +1 -1
- package/dist/components/Projects/TasksView.mjs +1 -1
- package/dist/components/Projects/file-list.d.ts +1 -1
- package/dist/components/Projects/index.js +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.js +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/dc-temp/mock-data.d.ts +2 -1
- package/dist/components/dc-temp/mock-data.js +1 -1
- package/dist/components/dc-temp/mock-data.mjs +1 -1
- package/dist/components/index.js +12 -12
- package/dist/components/index.mjs +1 -1
- package/dist/components/ui/index.mjs +1 -1
- package/dist/components/ui/sidebar.mjs +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.js +16 -16
- 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-5N4WW7O2.mjs +0 -1
- package/dist/chunk-ENRNRNPQ.mjs +0 -1
- package/dist/chunk-QBUU2AQL.mjs +0 -4
package/dist/chunk-5N4WW7O2.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as V}from"./chunk-Z22NSJMF.mjs";import{a as R,c as S,d as T,g as I,i as p}from"./chunk-YFAZQYK4.mjs";import{a as E}from"./chunk-B4H6T2GP.mjs";import{a as u}from"./chunk-TVZOULLL.mjs";import{a as F,f as L,g as A,i as B}from"./chunk-3UMMMQEH.mjs";import{a as D}from"./chunk-L5JPAKPM.mjs";import{b as C}from"./chunk-ZUA4KNIR.mjs";import{a as y,e as U}from"./chunk-YO3GQYRJ.mjs";import{useEffect as z,useState as x}from"react";import{Plus as K,Clock as W,Calendar as Y,User as G,Edit2 as J,Trash2 as Q}from"lucide-react";import{Fragment as re,jsx as e,jsxs as t}from"react/jsx-runtime";var X=a=>a.toLocaleDateString("en-US",{weekday:"short",year:"numeric",month:"short",day:"numeric"}),Z=a=>{let[n,m]=a.split(":"),s=new Date;return s.setHours(parseInt(n),parseInt(m)),s.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})},O=(a,n)=>{let m=new Date,s=new Date(a);if(n){let[i,d]=n.split(":");s.setHours(parseInt(i),parseInt(d))}return s<m},P=a=>{let n=new Date;return a.toDateString()===n.toDateString()},_=a=>{let n=new Date;return n.setDate(n.getDate()+1),a.toDateString()===n.toDateString()},ee=({colleagues:a,onAddReminder:n,open:m,setOpen:s})=>{let[i,d]=x({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""}),[c,v]=x(!1),f=l=>{if(l.preventDefault(),!a.find(w=>w?.id.toString()===i.colleagueId.toString())){console.error("No valid colleague selected"),v(!0);return}v(!1);let k={title:i.title,description:i.description,dueDate:new Date(i.dueDate).toISOString(),dueTime:i.dueTime||void 0,isRecurring:i.isRecurring,assignedColleague:Number(i.colleagueId),project:1,updatedAt:new Date().toISOString()};n(k),s(!1),d({title:"",description:"",dueDate:"",dueTime:"",colleagueId:"",priority:"medium",isRecurring:!1,recurrencePattern:"weekly",recurrenceInterval:1,reminderEnabled:!0,reminderMinutes:15,tags:""})};z(()=>{i.colleagueId&&v(!1)},[i.colleagueId]);let o=a.filter(Boolean);return e(F,{open:m,onOpenChange:s,children:t(L,{className:"max-w-2xl",children:[e(A,{children:e(B,{children:"Add New Reminder"})}),t("form",{onSubmit:f,className:"space-y-4",children:[e("div",{className:"grid grid-cols-2 gap-4",children:t("div",{children:[e(u,{htmlFor:"title",children:"Title"}),e(D,{id:"title",value:i.title,onChange:l=>d({...i,title:l.target.value}),placeholder:"Enter reminder title",required:!0})]})}),t("div",{children:[e(u,{htmlFor:"description",children:"Description"}),e(E,{id:"description",value:i.description,onChange:l=>d({...i,description:l.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(u,{htmlFor:"dueDate",children:"Due Date"}),e(D,{id:"dueDate",type:"date",value:i.dueDate,onChange:l=>d({...i,dueDate:l.target.value}),required:!0})]}),t("div",{children:[e(u,{htmlFor:"dueTime",children:"Due Time (optional)"}),e(D,{id:"dueTime",type:"time",value:i.dueTime,onChange:l=>d({...i,dueTime:l.target.value})})]})]}),t("div",{children:[e(u,{className:`${c?"text-destructive":""}`,htmlFor:"colleague",children:"Assigned Colleague"}),t(R,{value:i.colleagueId,onValueChange:l=>{d({...i,colleagueId:l})},required:!0,children:[e(T,{className:`${c?"text-destructive border-red-500":""}`,children:e(S,{className:`${c?"text-destructive border-red-500":""}`,placeholder:"Select a digital colleague",children:a.find(l=>l?.id.toString()===i.colleagueId.toString())?.name||"Select a digital colleague"})}),e(I,{children:o.map(l=>e(p,{value:l.id.toString(),children:l.name},l.id))})]}),c&&e("p",{className:"text-destructive text-sm",children:"Please select a digital colleague"})]}),t("div",{className:"space-y-2",children:[t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"isRecurring",checked:i.isRecurring,onChange:l=>d({...i,isRecurring:l.target.checked}),className:"rounded border-border"}),e(u,{htmlFor:"isRecurring",children:"Make this a recurring reminder"})]}),i.isRecurring&&t("div",{className:"grid grid-cols-2 gap-4 pl-6",children:[t("div",{children:[e(u,{htmlFor:"recurrencePattern",children:"Frequency"}),t(R,{value:i.recurrencePattern,onValueChange:l=>d({...i,recurrencePattern:l}),children:[e(T,{children:e(S,{})}),t(I,{children:[e(p,{value:"daily",children:"Daily"}),e(p,{value:"weekly",children:"Weekly"}),e(p,{value:"monthly",children:"Monthly"}),e(p,{value:"yearly",children:"Yearly"})]})]})]}),t("div",{children:[e(u,{htmlFor:"recurrenceInterval",children:"Every"}),e(D,{id:"recurrenceInterval",type:"number",min:"1",value:i.recurrenceInterval,onChange:l=>d({...i,recurrenceInterval:parseInt(l.target.value)})})]})]})]}),t("div",{className:"flex justify-end space-x-2",children:[e(C,{type:"button",variant:"outline",onClick:()=>s(!1),children:"Cancel"}),e(C,{type:"submit",children:"Add Reminder"})]})]})]})})},te=({reminder:a,colleagues:n,onUpdateReminder:m,open:s,onClose:i})=>{let[d,c]=x({title:a.title,description:a.description,dueDate:a.dueDate?.toString().split("T")[0],dueTime:a.dueTime||"",isRecurring:a.isRecurring}),v=o=>{o.preventDefault(),m(a.id.toString(),{title:d.title,description:d.description,dueDate:new Date(d.dueDate||"").toISOString(),dueTime:d.dueTime||void 0,isRecurring:d.isRecurring}),i()},f=n.filter(Boolean);return e(F,{open:s,onOpenChange:i,children:t(L,{className:"max-w-2xl",children:[e(A,{children:e(B,{children:"Edit Reminder"})}),t("form",{onSubmit:v,className:"space-y-4",children:[e("div",{className:"grid grid-cols-2 gap-4",children:t("div",{children:[e(u,{htmlFor:"edit-title",children:"Title"}),e(D,{id:"edit-title",value:d.title,onChange:o=>c({...d,title:o.target.value}),placeholder:"Enter reminder title",required:!0})]})}),t("div",{children:[e(u,{htmlFor:"edit-description",children:"Description"}),e(E,{id:"edit-description",value:d.description||"",onChange:o=>c({...d,description:o.target.value}),placeholder:"Enter reminder description",rows:3})]}),t("div",{className:"grid grid-cols-2 gap-4",children:[t("div",{children:[e(u,{htmlFor:"edit-dueDate",children:"Due Date"}),e(D,{id:"edit-dueDate",type:"date",value:d.dueDate,onChange:o=>c({...d,dueDate:o.target.value}),required:!0})]}),t("div",{children:[e(u,{htmlFor:"edit-dueTime",children:"Due Time (optional)"}),e(D,{id:"edit-dueTime",type:"time",value:d.dueTime,onChange:o=>c({...d,dueTime:o.target.value})})]})]}),e("div",{className:"space-y-2",children:t("div",{className:"flex items-center space-x-2",children:[e("input",{type:"checkbox",id:"edit-isRecurring",checked:d.isRecurring||!1,onChange:o=>c({...d,isRecurring:o.target.checked}),className:"rounded border-border"}),e(u,{htmlFor:"edit-isRecurring",children:"Make this a recurring reminder"})]})}),t("div",{className:"flex justify-end space-x-2",children:[e(C,{type:"button",variant:"outline",onClick:i,children:"Cancel"}),e(C,{type:"submit",children:"Save Changes"})]})]})]})})},ae=({reminder:a,colleagues:n,onUpdateReminder:m,onDeleteReminder:s})=>{let[i,d]=x(!1);if(!a||!a.id)return null;let c=O(new Date(a.dueDate||""),a.dueTime||""),v=P(new Date(a.dueDate||"")),f=_(new Date(a.dueDate||"")),o=()=>{m(a.id.toString(),{})},l=()=>v?"Today":f?"Tomorrow":X(new Date(a.dueDate||""));return t(re,{children:[e(te,{reminder:a,colleagues:n,onUpdateReminder:m,open:i,onClose:()=>d(!1)}),e(y,{children:e(U,{className:"p-4",children:t("div",{className:"flex items-start justify-between",children:[t("div",{className:"flex items-start space-x-3 flex-1",children:[e("button",{onClick:o,className:"mt-1 text-primary hover:text-primary/80"}),t("div",{className:"flex-1",children:[e("div",{className:"flex items-center space-x-2 mb-1",children:e("h3",{children:a.title})}),e("p",{className:"text-sm text-muted-foreground mb-2",children:a.description}),t("div",{className:"flex items-center space-x-4 text-sm text-muted-foreground",children:[e("div",{className:"flex items-center space-x-1",children:e(Y,{className:"h-4 w-4"})}),a.dueTime&&t("div",{className:"flex items-center space-x-1",children:[e(W,{className:"h-4 w-4"}),e("span",{children:Z(a.dueTime)})]}),e("div",{className:"flex items-center space-x-1",children:e(G,{className:"h-4 w-4"})})]})]})]}),t("div",{className:"flex items-center space-x-1",children:[e(C,{variant:"ghost",size:"sm",onClick:()=>d(!0),className:"h-8 w-8 p-0",children:e(J,{className:"h-4 w-4"})}),e(C,{variant:"ghost",size:"sm",onClick:()=>s(a.id.toString()),className:"h-8 w-8 p-0 text-destructive hover:text-destructive/80",children:e(Q,{className:"h-4 w-4"})})]})]})})})]})},ie=({initialReminders:a=[],initialColleagues:n=[],onAddReminder:m,onUpdateReminder:s,onDeleteReminder:i})=>{let[d,c]=x(a.filter(Boolean)),[v]=x(n.filter(Boolean)),[f,o]=x("all"),[l,M]=x(""),[k,w]=x(!1),q=r=>{if(!r.title){console.error("Invalid reminder data:",r);return}let g={...r,id:Date.now(),createdAt:new Date().toISOString()};c(N=>[...N,g]),m?.(r)},$=(r,g)=>{if(!r){console.error("No reminder ID provided for update");return}c(N=>N.map(b=>b?.id.toString()===r?{...b,...g}:b)),s?.(r,g)},j=r=>{if(!r){console.error("No reminder ID provided for deletion");return}c(g=>g.filter(N=>N?.id.toString()!==r)),i?.(r)},H=d.filter(r=>{if(!r)return!1;if(l){let g=l.toLowerCase();if(!(r.title.toLowerCase().includes(g)||r.description?.toLowerCase().includes(g)))return!1}switch(f){case"pending":case"completed":case"overdue":return O(new Date(r.dueDate||""),r.dueTime||"");case"today":return P(new Date(r.dueDate||""));default:return!0}}).sort((r,g)=>{if(!r||!g)return 0;let N={high:3,medium:2,low:1},b=0;return b!==0?b:new Date(r.dueDate||"").getTime()-new Date(g.dueDate||"").getTime()}),h={total:d.filter(Boolean).length,overdue:d.filter(r=>r&&O(new Date(r.dueDate||""),r.dueTime||"")).length,today:d.filter(r=>r&&P(new Date(r.dueDate||""))).length},le=v.find(Boolean)||{id:"1",name:"Default Colleague",description:"Default digital colleague for task management",jobDescription:"Default team member for task management",workInstructions:"Handle basic task assignments and reminders",capabilities:["task-management","reminder-creation"],knowledge:[],coreKnowledge:[]};return t("div",{className:"px-2 md:px-4 py-4 space-y-8",children:[e(V,{title:"Task Reminders",description:"Manage reminders and stay on top of important tasks and deadlines.",gradient:"bg-gradient-to-r from-emerald-600 via-teal-600 to-cyan-600",primaryAction:{label:"Add reminder",onClick:()=>{w(!0)}}}),t("div",{className:"h-full bg-background",children:[e(ee,{colleagues:v,onAddReminder:q,open:k,setOpen:w}),t("div",{className:"p-6",children:[t("div",{className:"flex items-center justify-between mb-6",children:[t("div",{children:[e("h1",{className:"text-2xl font-bold text-foreground",children:"Task Reminders"}),e("p",{className:"text-muted-foreground",children:"Manage your digital colleague task reminders"})]}),t(C,{className:"flex items-center space-x-2",onClick:()=>w(!0),children:[e(K,{className:"h-4 w-4"}),e("span",{children:"Add Reminder"})]})]}),t("div",{className:"grid grid-cols-5 gap-4 mb-6",children:[t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-foreground",children:h.total}),e("div",{className:"text-sm text-muted-foreground",children:"Total"})]}),t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-primary",children:h.overdue}),e("div",{className:"text-sm text-muted-foreground",children:"Pending"})]}),t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-success",children:h.today}),e("div",{className:"text-sm text-muted-foreground",children:"Completed"})]}),t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-destructive",children:h.overdue}),e("div",{className:"text-sm text-muted-foreground",children:"Overdue"})]}),t(y,{className:"p-4",children:[e("div",{className:"text-2xl font-bold text-warning",children:h.today}),e("div",{className:"text-sm text-muted-foreground",children:"Today"})]})]}),t("div",{className:"flex items-center space-x-4 mb-6",children:[e("div",{className:"flex-1",children:e(D,{placeholder:"Search reminders...",value:l,onChange:r=>M(r.target.value),className:"max-w-md"})}),t(R,{value:f,onValueChange:r=>o(r),children:[e(T,{className:"w-40",children:e(S,{})}),t(I,{children:[t(p,{value:"all",children:["All (",h.total,")"]}),t(p,{value:"overdue",children:["Overdue (",h.overdue,")"]}),t(p,{value:"overdue",children:["Overdue (",h.overdue,")"]}),t(p,{value:"today",children:["Today (",h.today,")"]})]})]})]}),e("div",{className:"space-y-4",children:H.length===0?t(y,{className:"p-8 text-center",children:[e("div",{className:"text-muted-foreground",children:l||f!=="all"?"No reminders match your filters":"No reminders yet"}),!l&&f==="all"&&e("p",{className:"text-sm text-muted-foreground/60 mt-2",children:"Create your first reminder to get started"})]}):H.map(r=>r&&e(ae,{reminder:r,colleagues:v,onUpdateReminder:$,onDeleteReminder:j},r.id))})]})]})]})},Se=ie;export{ie as a,Se as b};
|
package/dist/chunk-ENRNRNPQ.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Brush as a,Camera as t,Code as c,CuboidIcon as m,FileText as l,ImageIcon as i,Layers as o,LayoutGrid as s,Palette as d,Sparkles as r,Type as p,Video as n}from"lucide-react";import{jsx as e}from"react/jsx-runtime";var w=[{name:"PixelMaster",icon:e(i,{className:"text-violet-500"}),description:"Advanced image editing and composition",category:"Creative",recent:!0,new:!1,progress:100},{name:"VectorPro",icon:e(a,{className:"text-orange-500"}),description:"Professional vector graphics creation",category:"Creative",recent:!0,new:!1,progress:100},{name:"VideoStudio",icon:e(n,{className:"text-pink-500"}),description:"Cinematic video editing and production",category:"Video",recent:!0,new:!1,progress:100},{name:"MotionFX",icon:e(r,{className:"text-blue-500"}),description:"Stunning visual effects and animations",category:"Video",recent:!1,new:!1,progress:100},{name:"PageCraft",icon:e(o,{className:"text-red-500"}),description:"Professional page design and layout",category:"Creative",recent:!1,new:!1,progress:100},{name:"UXFlow",icon:e(s,{className:"text-fuchsia-500"}),description:"Intuitive user experience design",category:"Design",recent:!1,new:!0,progress:85},{name:"PhotoLab",icon:e(t,{className:"text-teal-500"}),description:"Advanced photo editing and organization",category:"Photography",recent:!1,new:!1,progress:100},{name:"DocMaster",icon:e(l,{className:"text-red-600"}),description:"Document editing and management",category:"Document",recent:!1,new:!1,progress:100},{name:"WebCanvas",icon:e(c,{className:"text-emerald-500"}),description:"Web design and development",category:"Web",recent:!1,new:!0,progress:70},{name:"3DStudio",icon:e(m,{className:"text-indigo-500"}),description:"3D modeling and rendering",category:"3D",recent:!1,new:!0,progress:60},{name:"FontForge",icon:e(p,{className:"text-amber-500"}),description:"Typography and font creation",category:"Typography",recent:!1,new:!1,progress:100},{name:"ColorPalette",icon:e(d,{className:"text-purple-500"}),description:"Color scheme creation and management",category:"Design",recent:!1,new:!1,progress:100}],D=[{id:"1",filename:"Brand Redesign.pxm",filesize:24.5,createdAt:new Date,url:"https://example.com/brand-redesign.pxm",mimeType:"image/png",name:"Brand Redesign.pxm",app:"PixelMaster",modified:"2 hours ago",icon:e(i,{className:"text-violet-500"}),shared:!0,size:"24.5 MB",collaborators:3},{id:"2",filename:"Company Logo.vec",filesize:8.2,createdAt:new Date,url:"https://example.com/company-logo.vec",mimeType:"image/svg+xml",name:"Company Logo.vec",app:"VectorPro",modified:"Yesterday",icon:e(a,{className:"text-orange-500"}),shared:!0,size:"8.2 MB",collaborators:2},{id:"3",filename:"Product Launch Video.vid",filesize:1.2,createdAt:new Date,url:"https://example.com/product-launch-video.vid",mimeType:"video/mp4",name:"Product Launch Video.vid",app:"VideoStudio",modified:"3 days ago",icon:e(n,{className:"text-pink-500"}),shared:!1,size:"1.2 GB",collaborators:0},{id:"4",filename:"UI Animation.mfx",filesize:345,createdAt:new Date,url:"https://example.com/ui-animation.mfx",mimeType:"video/mp4",name:"UI Animation.mfx",app:"MotionFX",modified:"Last week",icon:e(r,{className:"text-blue-500"}),shared:!0,size:"345 MB",collaborators:4},{id:"5",filename:"Magazine Layout.pgc",filesize:42.8,createdAt:new Date,url:"https://example.com/magazine-layout.pgc",mimeType:"image/png",name:"Magazine Layout.pgc",app:"PageCraft",modified:"2 weeks ago",icon:e(o,{className:"text-red-500"}),shared:!1,size:"42.8 MB",collaborators:0},{id:"6",filename:"Mobile App Design.uxf",filesize:18.3,createdAt:new Date,url:"https://example.com/mobile-app-design.uxf",mimeType:"image/png",name:"Mobile App Design.uxf",app:"UXFlow",modified:"3 weeks ago",icon:e(s,{className:"text-fuchsia-500"}),shared:!0,size:"18.3 MB",collaborators:5},{id:"7",filename:"Product Photography.phl",filesize:156,createdAt:new Date,url:"https://example.com/product-photography.phl",mimeType:"image/png",name:"Product Photography.phl",app:"PhotoLab",modified:"Last month",icon:e(t,{className:"text-teal-500"}),shared:!1,size:"156 MB",collaborators:0}],b=[{id:1,name:"Website Redesign",description:"Complete overhaul of company website",progress:75,dueDate:"June 15, 2025",members:4,files:23},{id:2,name:"Mobile App Launch",description:"Design and assets for new mobile application",progress:60,dueDate:"July 30, 2025",members:6,files:42},{id:3,name:"Brand Identity",description:"New brand guidelines and assets",progress:90,dueDate:"May 25, 2025",members:3,files:18},{id:4,name:"Marketing Campaign",description:"Summer promotion materials",progress:40,dueDate:"August 10, 2025",members:5,files:31}],P=[{title:"Mastering Digital Illustration",description:"Learn advanced techniques for creating stunning digital art",duration:"1h 45m",level:"Advanced",instructor:"Sarah Chen",category:"Illustration",views:"24K"},{title:"UI/UX Design Fundamentals",description:"Essential principles for creating intuitive user interfaces",duration:"2h 20m",level:"Intermediate",instructor:"Michael Rodriguez",category:"Design",views:"56K"},{title:"Video Editing Masterclass",description:"Professional techniques for cinematic video editing",duration:"3h 10m",level:"Advanced",instructor:"James Wilson",category:"Video",views:"32K"},{title:"Typography Essentials",description:"Create beautiful and effective typography for any project",duration:"1h 30m",level:"Beginner",instructor:"Emma Thompson",category:"Typography",views:"18K"},{title:"Color Theory for Designers",description:"Understanding color relationships and psychology",duration:"2h 05m",level:"Intermediate",instructor:"David Kim",category:"Design",views:"41K"}],C=[{title:"Minimalist Logo Design",author:"Alex Morgan",likes:342,comments:28,image:"/placeholder.svg?height=300&width=400",time:"2 days ago"},{title:"3D Character Concept",author:"Priya Sharma",likes:518,comments:47,image:"/placeholder.svg?height=300&width=400",time:"1 week ago"},{title:"UI Dashboard Redesign",author:"Thomas Wright",likes:276,comments:32,image:"/placeholder.svg?height=300&width=400",time:"3 days ago"},{title:"Product Photography Setup",author:"Olivia Chen",likes:189,comments:15,image:"/placeholder.svg?height=300&width=400",time:"5 days ago"}];export{w as a,D as b,b as c,P as d,C as e};
|
package/dist/chunk-QBUU2AQL.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as n}from"./chunk-DSSHQ6K7.mjs";import{a as x}from"./chunk-Z22NSJMF.mjs";import{a as A}from"./chunk-FGEFYI5E.mjs";import{a as w}from"./chunk-L5JPAKPM.mjs";import{b as v}from"./chunk-ZUA4KNIR.mjs";import{a as g,e as y}from"./chunk-YO3GQYRJ.mjs";import{useEffect as U,useState as r}from"react";import{Plus as V,Search as $,File as R,Filter as q}from"lucide-react";import{motion as z,AnimatePresence as G}from"motion/react";import{jsx as e,jsxs as i}from"react/jsx-runtime";function M({initialFiles:c=[],onFileAdd:k,onFileEdit:S,onFileDelete:D,onFileClick:E,compactView:d=!1,className:H}){let[h,C]=r(c),[a,N]=r(""),[o,P]=r("all"),[s,B]=r("all");U(()=>{C(c)},[c]);let O=Array.from(new Set(h.map(l=>l.mimeType))),t=h.filter(l=>{let F=l.name.toLowerCase().includes(a.toLowerCase()),u=o==="all"||l.mimeType===o;return F&&u}),b=t.slice(0,10),I=t.filter(Boolean),T=()=>{k?.()},m=l=>{S?.(l)},p=l=>{console.log("deleting file",l),C(F=>F.filter(u=>u.name!==l.name)),D?.(l.id)},f=l=>{E?.(l)},L=()=>{N(""),P("all")};return e("div",{className:"px-2 md:px-4 py-4 space-y-8",children:e(G,{mode:"wait",children:e(z.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},exit:{opacity:0,y:-10},transition:{duration:.2},children:i("div",{className:`space-y-6 ${H||""}`,children:[e(x,{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:T},secondaryAction:{label:"Download all",onClick:()=>console.log("Download all clicked")}}),e(g,{children:e(y,{className:"pt-6",children:i("div",{className:"flex flex-col md:flex-row gap-4",children:[e("div",{className:"flex-1",children:i("div",{className:"relative",children:[e($,{className:"absolute left-3 top-3 h-4 w-4 text-muted-foreground"}),e(w,{placeholder:"Search files...",value:a,onChange:l=>N(l.target.value),className:"pl-9"})]})}),(a||o!=="all")&&i(v,{variant:"outline",onClick:L,className:"gap-2",children:[e(q,{className:"h-4 w-4"}),"Clear"]})]})})}),i("div",{className:"space-y-4",children:[e(A,{activeTab:s,onTabChange:B,tabOptions:[{value:"all",label:`All Files (${t.length})`},{value:"recent",label:`Recent (${b.length})`}],maxWidth:"500px",gridCols:3}),s==="all"&&e(n,{files:t,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!d}),s==="recent"&&e(n,{files:b,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!d}),s==="shared"&&e(n,{files:I,onFileClick:f,onFileEdit:m,onFileDelete:p,showHeader:!d})]}),t.length===0&&e(g,{children:e(y,{className:"pt-6",children:i("div",{className:"text-center py-8",children:[e(R,{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:a||o!=="all"?"Try adjusting your filters to see more results.":"Get started by uploading your first file."}),i(v,{onClick:T,className:"gap-2",children:[e(V,{className:"h-4 w-4"}),"Upload File"]})]})})})]})},"files-view")})})}export{M as a};
|