cortex-react-components 2.28.1 → 2.28.3
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-53ERRCTV.mjs +4 -0
- package/dist/{chunk-LHO4WFYP.mjs → chunk-5FWH5YVM.mjs} +1 -1
- package/dist/{chunk-ALEPCEWP.mjs → chunk-5MMNC65L.mjs} +1 -1
- package/dist/{chunk-RS4VD3ML.mjs → chunk-6FHRZHAJ.mjs} +1 -1
- package/dist/{chunk-WRCRZUGO.mjs → chunk-GUEJKEJJ.mjs} +1 -1
- package/dist/{chunk-L2OBO2VZ.mjs → chunk-J3VJUPR7.mjs} +1 -1
- package/dist/{chunk-FBEHQRZ4.mjs → chunk-JBGWDOOS.mjs} +1 -1
- package/dist/{chunk-RV4XL2CG.mjs → chunk-JU4TJYSZ.mjs} +1 -1
- package/dist/{chunk-5NIEZE7A.mjs → chunk-KBEXWUKI.mjs} +1 -1
- package/dist/{chunk-EM4CGGGV.mjs → chunk-KPQ56JSD.mjs} +1 -1
- package/dist/{chunk-JCWFPKF3.mjs → chunk-MAZGVZJN.mjs} +1 -1
- package/dist/{chunk-P7S6XFU4.mjs → chunk-MX3JKY3V.mjs} +1 -1
- package/dist/{chunk-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
- package/dist/{chunk-7DDFZ2M3.mjs → chunk-PVPDARFR.mjs} +1 -1
- package/dist/chunk-SMKYMYUV.mjs +1 -0
- package/dist/chunk-SX2LOHXX.mjs +4 -0
- package/dist/{chunk-ATPB5HSG.mjs → chunk-V7SNI22Q.mjs} +1 -1
- package/dist/{chunk-G2DQLEAJ.mjs → chunk-VKLEU4ZW.mjs} +1 -1
- package/dist/{chunk-AQQCH7Z2.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/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.js +1 -1
- package/dist/components/CRM/CogeBoard.mjs +1 -1
- package/dist/components/CRM/KanbanBoard.js +1 -1
- package/dist/components/CRM/KanbanBoard.mjs +1 -1
- package/dist/components/CRM/KanbanColumn.js +1 -1
- package/dist/components/CRM/KanbanColumn.mjs +1 -1
- package/dist/components/CRM/index.js +1 -1
- package/dist/components/CRM/index.mjs +1 -1
- package/dist/components/CRM/types.d.ts +1 -1
- package/dist/components/CRM/types.js +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/PartTypes/MessageHandler.mjs +1 -1
- package/dist/components/Chat/PartTypes/index.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/AppSidebarLeft.mjs +1 -1
- package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
- package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
- package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
- package/dist/components/DigitalColleagues/index.mjs +1 -1
- package/dist/components/Foundary/AppSidebarLeft.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.mjs +1 -1
- package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
- package/dist/components/Foundary/Views/index.mjs +1 -1
- package/dist/components/Foundary/file-edit.mjs +1 -1
- package/dist/components/Foundary/index.mjs +1 -1
- 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/SidebarLeft.mjs +1 -1
- package/dist/components/Menus/SidebarRight.mjs +1 -1
- package/dist/components/Menus/index.mjs +1 -1
- package/dist/components/Other/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/FileView.mjs +1 -1
- package/dist/components/Projects/KanbanBoardView.mjs +1 -1
- package/dist/components/Projects/ProjectPage.mjs +1 -1
- package/dist/components/Projects/ProjectView.mjs +1 -1
- package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
- package/dist/components/Projects/file-list.mjs +1 -1
- package/dist/components/Projects/index.mjs +1 -1
- package/dist/components/dc-temp/index.mjs +1 -1
- package/dist/components/index.js +1 -1
- 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/index.js +1 -1
- 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/payload-types.d.ts +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/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-BDDEMCAH.mjs +0 -4
- package/dist/chunk-M527EJIX.mjs +0 -4
- package/dist/chunk-V6GC3UGV.mjs +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "cortex-react-components",
|
|
3
3
|
"author": "Cortex Reply",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "2.28.
|
|
5
|
+
"version": "2.28.3",
|
|
6
6
|
"description": "A library of React components with styles. Designed to seamlessly integrate with React and Next.js.",
|
|
7
7
|
"license": "MPL-2.0",
|
|
8
8
|
"main": "./dist/index.js",
|
package/dist/chunk-BDDEMCAH.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as m}from"./chunk-LLED3RQS.mjs";import{a as i}from"./chunk-V6GC3UGV.mjs";import{useState as f,useCallback as R}from"react";import{DragDropContext as P}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as r,jsxs as M}from"react/jsx-runtime";var w=["Cold","Qualified","Proposal Made","SoW Submitted","Won","Lost","Dormant"];function h({initialData:s,addNewDeal:v,updateDeal:l,addComment:p,addNewCustomer:N}){let[a,u]=f(null),C=e=>(s.deals??[]).filter(t=>t.status===e),D=e=>e.reduce((t,o)=>t+(o.value||0),0),g=(e,t)=>{let o={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return e.reduce((c,d)=>c+(d.value||0)*o[t],0)},b=R(e=>{let{source:t,destination:o}=e;if(!o||t.droppableId===o.droppableId&&t.index===o.index)return;let c=t.droppableId,d=o.droppableId,n=s.deals?.filter(S=>S.id===t.index)[0],x=[...s.deals??[]];n&&(n.status=d,l(n))},[l]);return r(P,{onDragEnd:b,children:M("div",{className:"p-4 h-full overflow-auto",children:[r("div",{className:"flex space-x-4 pb-4",children:w.filter(e=>e!=="Lost").map(e=>{let t=C(e);return r(i,{status:e,deals:t,customers:s.customers??[],users:s.users,categories:s.categories??[],onDealClick:u,calculateColumnValue:D,calculateWeightedValue:g},e)})}),a&&r(m,{deal:a,users:s.users,customer:a.customer,categories:s.categories??[],onClose:()=>u(null),onSave:l,onAddComment:e=>p(a.id.toString(),e)})]})})}export{h as a};
|
package/dist/chunk-M527EJIX.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
import{a as m}from"./chunk-LLED3RQS.mjs";import{a as i}from"./chunk-V6GC3UGV.mjs";import{useState as b,useCallback as R}from"react";import{DragDropContext as v}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as l,jsxs as M}from"react/jsx-runtime";var P=["firm","forecast","other"];function I({initialData:o,updateDeal:u,addComment:p}){let[a,d]=b(null),g=t=>(o.deals??[]).filter(e=>e.gecoStatus===t).filter(e=>e.status!=="Lost").filter(e=>e.status!=="Cold"),C=t=>t.reduce((e,s)=>e+(s.value||0),0),S=(t,e)=>{let s={Cold:0,Qualified:.1,"Proposal Made":.25,"SoW Submitted":.8,Won:1,Lost:0,Dormant:0};return t.reduce((n,r)=>n+(r.value||0)*(s[r.status]??0),0)},D=R(t=>{let{source:e,destination:s}=t;if(!s||e.droppableId===s.droppableId&&e.index===s.index)return;let n=e.droppableId,r=s.droppableId,c=o.deals?.filter(f=>f.id===e.index)[0],x=[...o.deals??[]];c&&(c.gecoStatus=r,u(c))},[u]);return l(v,{onDragEnd:D,children:M("div",{className:"p-4 h-full overflow-auto",children:[l("div",{className:"flex space-x-4 pb-4",children:P.map(t=>{let e=g(t);return l(i,{status:t,deals:e,customers:o.customers??[],users:o.users,categories:o.categories??[],onDealClick:d,calculateColumnValue:C,calculateWeightedValue:S,compact:!0},t)})}),a&&l(m,{deal:a,users:o.users,customer:a.customer,categories:o.categories??[],onClose:()=>d(null),onSave:u,onAddComment:t=>p(a.id.toString(),t)})]})})}export{I as a};
|
package/dist/chunk-V6GC3UGV.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as m}from"./chunk-KVD6XDZT.mjs";import{Droppable as u,Draggable as d}from"@atlaskit/pragmatic-drag-and-drop-react-beautiful-dnd-migration";import{jsx as t,jsxs as e}from"react/jsx-runtime";function S({status:o,deals:r,users:b,customers:f,categories:i,onDealClick:n,calculateColumnValue:p,calculateWeightedValue:c,compact:g=!1}){return e("div",{className:"flex flex-col w-80",children:[e("h2",{className:"text-xl font-semibold mb-4",children:[" ",o.charAt(0).toUpperCase()+o.slice(1)]}),t(u,{droppableId:o,isDropDisabled:!1,children:l=>e("div",{ref:l.innerRef,...l.droppableProps,className:"bg-background/90 p-4 rounded-lg flex-grow min-h-[200px] shadow-inner",children:[r.map((a,D)=>t(d,{draggableId:a.id.toString(),index:a.id,children:s=>t("div",{ref:s.innerRef,...s.draggableProps,...s.dragHandleProps,children:t(m,{deal:a,customer:a.customer,categories:i,onClick:()=>n(a),compact:g})})},a.id.toString())),l.placeholder]})}),e("div",{className:"mt-4 text-sm p-3 rounded-lg shadow",children:[e("p",{className:"font-semibold",children:["Total:"," ",e("span",{className:"text-green-600",children:["\xA3",p(r).toLocaleString()]})]}),e("p",{className:"font-semibold",children:["Weighted:"," ",e("span",{className:"text-blue-600",children:["\xA3",c(r,o).toLocaleString()]})]})]})]})}export{S as a};
|