cortex-react-components 2.3.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. package/dist/{chunk-N3B3XNV3.mjs → chunk-2BRDNDUB.mjs} +1 -1
  2. package/dist/{chunk-M7NV6EFH.mjs → chunk-3HNU2NYP.mjs} +1 -1
  3. package/dist/{chunk-FKU4VQR6.mjs → chunk-3NRXQBBS.mjs} +1 -1
  4. package/dist/chunk-553B5H2H.mjs +4 -0
  5. package/dist/{chunk-PK3OBSCB.mjs → chunk-5MWZTJYP.mjs} +1 -1
  6. package/dist/{chunk-B7AXSCTN.mjs → chunk-6MSM3CZ6.mjs} +1 -1
  7. package/dist/{chunk-5SHZBJ5R.mjs → chunk-75F3LJMX.mjs} +1 -1
  8. package/dist/{chunk-7BCUACIY.mjs → chunk-7HR6FNWF.mjs} +1 -1
  9. package/dist/{chunk-MXCW6SOT.mjs → chunk-7R47MHQE.mjs} +1 -1
  10. package/dist/{chunk-RAGDUV7M.mjs → chunk-7VDNUJZC.mjs} +1 -1
  11. package/dist/{chunk-LJQPLE4S.mjs → chunk-AJQHGVZ5.mjs} +1 -1
  12. package/dist/{chunk-LHEZJYVN.mjs → chunk-AQZEZ3UR.mjs} +1 -1
  13. package/dist/{chunk-QUXHULLX.mjs → chunk-ATIEKI6M.mjs} +1 -1
  14. package/dist/{chunk-QTILVWJA.mjs → chunk-B2EJGXDG.mjs} +1 -1
  15. package/dist/{chunk-GS2VFNHY.mjs → chunk-B3F6F2S4.mjs} +1 -1
  16. package/dist/{chunk-U3F45KVI.mjs → chunk-BKR3FRMQ.mjs} +1 -1
  17. package/dist/{chunk-YKG4FNS4.mjs → chunk-C4RWEPVF.mjs} +1 -1
  18. package/dist/{chunk-7GMAMIHM.mjs → chunk-CXOVEABI.mjs} +1 -1
  19. package/dist/{chunk-YNTAZCKJ.mjs → chunk-DKVCSRUJ.mjs} +1 -1
  20. package/dist/{chunk-ABGNIQRP.mjs → chunk-ECXVQZBN.mjs} +1 -1
  21. package/dist/{chunk-IF3425JX.mjs → chunk-FE7ZGUPU.mjs} +1 -1
  22. package/dist/{chunk-H3CJOE6S.mjs → chunk-GHOL5L32.mjs} +1 -1
  23. package/dist/{chunk-2RQDJ5XT.mjs → chunk-GTZJWMZR.mjs} +1 -1
  24. package/dist/{chunk-TK4JC5PG.mjs → chunk-INPV5MBU.mjs} +1 -1
  25. package/dist/{chunk-RNMPX2AU.mjs → chunk-IPIDKLAW.mjs} +1 -1
  26. package/dist/{chunk-LJOWXPWW.mjs → chunk-KWYJ3XZI.mjs} +1 -1
  27. package/dist/{chunk-WUA65ZZB.mjs → chunk-L3BLBPSR.mjs} +1 -1
  28. package/dist/{chunk-CLGBBNRB.mjs → chunk-LAQ3QAUW.mjs} +1 -1
  29. package/dist/chunk-LW4QFIFR.mjs +4 -0
  30. package/dist/chunk-LYPWYO4W.mjs +1 -0
  31. package/dist/{chunk-FTZRG54P.mjs → chunk-M4UVNIK2.mjs} +1 -1
  32. package/dist/{chunk-7EXAS7HK.mjs → chunk-MAAKU7PN.mjs} +1 -1
  33. package/dist/{chunk-HKGW6JI2.mjs → chunk-NINFDOV5.mjs} +1 -1
  34. package/dist/{chunk-ZFUP5NVF.mjs → chunk-O5P35LEY.mjs} +1 -1
  35. package/dist/{chunk-SW7RYGO6.mjs → chunk-OQYER4E7.mjs} +1 -1
  36. package/dist/chunk-PC6TVU7J.mjs +1 -0
  37. package/dist/{chunk-N7BHIWS5.mjs → chunk-R75OR5VS.mjs} +1 -1
  38. package/dist/{chunk-255P6K5W.mjs → chunk-RGOKBIQ5.mjs} +1 -1
  39. package/dist/{chunk-67QPOSVV.mjs → chunk-RJGYVDOU.mjs} +1 -1
  40. package/dist/{chunk-CAKJOTEE.mjs → chunk-RVHCTANZ.mjs} +1 -1
  41. package/dist/{chunk-SRUG246N.mjs → chunk-TXVA6XJT.mjs} +1 -1
  42. package/dist/{chunk-P2MTGU2L.mjs → chunk-UJSXVIXW.mjs} +1 -1
  43. package/dist/{chunk-67VXPDWA.mjs → chunk-VR5WOPRD.mjs} +1 -1
  44. package/dist/{chunk-S4A4VHOI.mjs → chunk-VWLPVN4M.mjs} +1 -1
  45. package/dist/{chunk-ERJXTG6X.mjs → chunk-WIRQ5IRT.mjs} +1 -1
  46. package/dist/components/Blocks/Banner.mjs +1 -1
  47. package/dist/components/Blocks/CallToAction.mjs +1 -1
  48. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  49. package/dist/components/Blocks/Content.mjs +1 -1
  50. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  51. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  52. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  53. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  54. package/dist/components/Blocks/index.mjs +1 -1
  55. package/dist/components/CRM/index.mjs +1 -1
  56. package/dist/components/Cards/ContentCard.mjs +1 -1
  57. package/dist/components/Cards/FeatureCard.mjs +1 -1
  58. package/dist/components/Cards/index.mjs +1 -1
  59. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  60. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  61. package/dist/components/DigitalColleagues/ManagementSidebar.mjs +1 -1
  62. package/dist/components/DigitalColleagues/Pages/dashboardpage.js +1 -1
  63. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  64. package/dist/components/DigitalColleagues/README-document-edit.js +238 -0
  65. package/dist/components/DigitalColleagues/README-document-edit.mjs +238 -0
  66. package/dist/components/DigitalColleagues/README-document-preview.js +210 -0
  67. package/dist/components/DigitalColleagues/README-document-preview.mjs +210 -0
  68. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  69. package/dist/components/DigitalColleagues/Views/KnowledgeView.js +1 -1
  70. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  71. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  72. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  73. package/dist/components/DigitalColleagues/document-edit.d.ts +4 -2
  74. package/dist/components/DigitalColleagues/document-edit.js +2 -1
  75. package/dist/components/DigitalColleagues/document-edit.mjs +1 -1
  76. package/dist/components/DigitalColleagues/document-preview-examples.css +1 -0
  77. package/dist/components/DigitalColleagues/document-preview-examples.d.ts +12 -0
  78. package/dist/components/DigitalColleagues/document-preview-examples.js +35 -0
  79. package/dist/components/DigitalColleagues/document-preview-examples.mjs +31 -0
  80. package/dist/components/DigitalColleagues/document-preview.d.ts +12 -2
  81. package/dist/components/DigitalColleagues/document-preview.js +2 -1
  82. package/dist/components/DigitalColleagues/document-preview.mjs +1 -1
  83. package/dist/components/DigitalColleagues/index.js +1 -1
  84. package/dist/components/DigitalColleagues/index.mjs +1 -1
  85. package/dist/components/DigitalColleagues/knowledge-browser.js +1 -1
  86. package/dist/components/DigitalColleagues/knowledge-browser.mjs +1 -1
  87. package/dist/components/DigitalColleagues/types.d.ts +1 -1
  88. package/dist/components/HeaderFooter/Header.mjs +1 -1
  89. package/dist/components/HeaderFooter/HeaderDesktop.mjs +1 -1
  90. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  91. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  92. package/dist/components/HeaderFooter/index.mjs +1 -1
  93. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  94. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  95. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  96. package/dist/components/Heros/PostHero/index.mjs +1 -1
  97. package/dist/components/Heros/RenderHero.mjs +1 -1
  98. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  99. package/dist/components/Heros/index.mjs +1 -1
  100. package/dist/components/Holidays/HolidayGrid.js +1 -1
  101. package/dist/components/Holidays/HolidayGrid.mjs +1 -1
  102. package/dist/components/Holidays/HolidayTracker.js +1 -1
  103. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  104. package/dist/components/Holidays/RequestLeave.js +1 -1
  105. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  106. package/dist/components/Holidays/index.js +1 -1
  107. package/dist/components/Holidays/index.mjs +1 -1
  108. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  109. package/dist/components/Layouts/Print.mjs +1 -1
  110. package/dist/components/Layouts/SlideShow.mjs +1 -1
  111. package/dist/components/Layouts/index.mjs +1 -1
  112. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  113. package/dist/components/Menus/SidebarRight.mjs +1 -1
  114. package/dist/components/Menus/index.mjs +1 -1
  115. package/dist/components/Other/index.mjs +1 -1
  116. package/dist/components/Payload/RichText/index.mjs +1 -1
  117. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  118. package/dist/components/Payload/index.mjs +1 -1
  119. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  120. package/dist/components/Projects/ProjectPage.mjs +1 -1
  121. package/dist/components/Projects/ProjectView.mjs +1 -1
  122. package/dist/components/dc-temp/index.js +1 -1
  123. package/dist/components/dc-temp/index.mjs +1 -1
  124. package/dist/components/index.js +11 -11
  125. package/dist/components/index.mjs +1 -1
  126. package/dist/components/ui/index.mjs +1 -1
  127. package/dist/components/ui/sidebar.mjs +1 -1
  128. package/dist/globals.css +1 -1
  129. package/dist/index.js +15 -15
  130. package/dist/index.mjs +1 -1
  131. package/dist/metafile-cjs.json +1 -1
  132. package/dist/metafile-esm.json +1 -1
  133. package/dist/pages/Blog.mjs +1 -1
  134. package/dist/pages/Documentation.mjs +1 -1
  135. package/dist/pages/IndexPage.mjs +1 -1
  136. package/dist/pages/Intranet.mjs +1 -1
  137. package/dist/pages/LandingPage.mjs +1 -1
  138. package/dist/pages/Page.mjs +1 -1
  139. package/dist/pages/Publish.mjs +1 -1
  140. package/dist/pages/Website.mjs +1 -1
  141. package/dist/sections/AboutSection.mjs +1 -1
  142. package/dist/sections/BlogDetail.mjs +1 -1
  143. package/dist/sections/BlogList.mjs +1 -1
  144. package/dist/sections/BlogListSection.mjs +1 -1
  145. package/dist/sections/ContactSection.mjs +1 -1
  146. package/dist/sections/PageSections.mjs +1 -1
  147. package/dist/sections/PricingSection.mjs +1 -1
  148. package/dist/sections/ServiceDetail.mjs +1 -1
  149. package/dist/sections/ServiceDetailSection.mjs +1 -1
  150. package/dist/sections/ServiceSection.mjs +1 -1
  151. package/dist/sections/form/index.mjs +1 -1
  152. package/dist/sections/index.mjs +1 -1
  153. package/dist/utils/BankHolidays.d.ts +1 -4
  154. package/dist/utils/BankHolidays.js +1 -1
  155. package/dist/utils/BankHolidays.mjs +1 -1
  156. package/dist/utils/DaysUtil.js +1 -1
  157. package/dist/utils/DaysUtil.mjs +1 -1
  158. package/package.json +1 -1
  159. package/dist/chunk-A24EPYUY.mjs +0 -1
  160. package/dist/chunk-BDFHWLTS.mjs +0 -4
  161. package/dist/chunk-GILMVRED.mjs +0 -4
  162. package/dist/chunk-QKGEV7LG.mjs +0 -1
@@ -1 +0,0 @@
1
- import{a as i}from"./chunk-QKGEV7LG.mjs";var r=t=>{let a=t.getDay()===0,n=t.getDay()===6,e=i.some(s=>s.date.toISOString()===t.toISOString());return a||n||e},l=(t,a,n=!1)=>{let e=new Date(t),s=new Date(a),o=0;if(n&&!r(e))return .5;for(;e<=s;)r(e)||o++,e.setDate(e.getDate()+1);return o},u=(t,a)=>!t||!a?!1:t.toDateString()!==a.toDateString();export{r as a,l as b,u as c};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as r}from"./chunk-B4H6T2GP.mjs";import{a as m}from"./chunk-L5JPAKPM.mjs";import{b as s}from"./chunk-ZUA4KNIR.mjs";import{b as d}from"./chunk-CSBGSBEU.mjs";import{motion as f}from"framer-motion";import{Edit3 as b,Save as x,X as N}from"lucide-react";import{useState as h}from"react";import{jsx as e,jsxs as t}from"react/jsx-runtime";function S({document:c,onSave:u,onCancel:p}){let[n,i]=h({...c,updatedAt:new Date}),v=()=>{u(n)},g=a=>{let o=a.split(",").map(l=>l.trim()).filter(l=>l.length>0);i(l=>({...l,tags:o}))};return t(f.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[t("div",{className:"border-b border-border bg-card p-8",children:[t("div",{className:"flex items-start justify-between gap-4 mb-6",children:[t("div",{className:"flex items-center gap-3",children:[e("div",{className:"flex-shrink-0 p-3 rounded-xl bg-primary/10 border border-primary/20",children:e(b,{className:"h-6 w-6 text-primary"})}),e("h1",{className:"text-2xl font-bold text-foreground",children:"Edit Document"})]}),t("div",{className:"flex gap-2",children:[t(s,{variant:"outline",size:"sm",onClick:p,className:"gap-2",children:[e(N,{className:"h-4 w-4"}),"Cancel"]}),t(s,{size:"sm",onClick:v,className:"gap-2",children:[e(x,{className:"h-4 w-4"}),"Save Changes"]})]})]}),t("div",{className:"space-y-4",children:[t("div",{children:[e("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Title"}),e(m,{value:n.title,onChange:a=>i(o=>({...o,title:a.target.value})),className:"text-lg font-semibold",placeholder:"Document title..."})]}),t("div",{children:[e("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Description"}),e(r,{value:n.description||"",onChange:a=>i(o=>({...o,description:a.target.value})),placeholder:"Document description...",rows:2})]}),t("div",{children:[e("label",{className:"block text-sm font-medium text-foreground mb-2",children:"Tags (comma-separated)"}),e(m,{value:n.tags?.join(", ")||"",onChange:a=>g(a.target.value),placeholder:"tag1, tag2, tag3..."})]}),t("div",{className:"flex items-center gap-2",children:[e("span",{className:"text-sm font-medium text-foreground",children:"Format:"}),e(d,{variant:"secondary",className:"font-mono",children:n.format.toUpperCase()})]})]})]}),e("div",{className:"flex-1 overflow-auto",children:t("div",{className:"p-8",children:[e("label",{className:"block text-sm font-medium text-foreground mb-4",children:"Content"}),e(r,{value:n.content||"",onChange:a=>i(o=>({...o,content:a.target.value})),placeholder:"Document content...",className:"min-h-[400px] font-mono text-sm",style:{resize:"vertical"}})]})})]})}export{S as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as o}from"./chunk-BDFHWLTS.mjs";import{b as d}from"./chunk-ZUA4KNIR.mjs";import{motion as b}from"framer-motion";import{File as n,FileText as i,Edit3 as v}from"lucide-react";import{useState as N}from"react";import{jsx as e,jsxs as r}from"react/jsx-runtime";function C({document:t,onDocumentUpdate:m,editable:l=!0}){let[c,s]=N(!1),u=a=>{switch(a){case"markdown":case"mdx":return e(i,{className:"h-6 w-6 text-primary"});case"richtext":return e(n,{className:"h-6 w-6 text-success"});default:return e(n,{className:"h-6 w-6 text-muted-foreground"})}},p=a=>{switch(a){case"markdown":return"bg-primary/10 text-primary border-primary/20";case"mdx":return"bg-secondary/10 text-secondary border-secondary/20";case"richtext":return"bg-success/10 text-success border-success/20";default:return"bg-muted text-muted-foreground border-border"}},f=a=>{s(!1),m?.(a)},g=()=>{s(!1)};return c?e(o,{document:t,onSave:f,onCancel:g}):r(b.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},className:"h-full flex flex-col",children:[r("div",{className:"border-b border-border bg-card p-8",children:[r("div",{className:"flex items-start justify-between gap-4 mb-4",children:[r("div",{className:"flex items-start gap-4 flex-1 min-w-0",children:[e("div",{className:"flex-shrink-0 p-3 rounded-xl bg-muted border border-border",children:u(t.format)}),r("div",{className:"flex-1 min-w-0",children:[e("h1",{className:"text-2xl font-bold text-foreground mb-2 leading-tight",children:t.title}),t.description&&e("p",{className:"text-muted-foreground text-lg leading-relaxed mb-4",children:t.description})]})]}),l&&e("div",{className:"flex-shrink-0",children:r(d,{variant:"outline",size:"sm",onClick:()=>s(!0),className:"gap-2",children:[e(v,{className:"h-4 w-4"}),"Edit"]})})]}),r("div",{className:"flex flex-wrap gap-2",children:[e("span",{className:`inline-flex items-center px-3 py-1 rounded-full text-sm font-medium border ${p(t.format)}`,children:t.format.toUpperCase()}),t.tags?.map(a=>r("span",{className:"inline-flex items-center px-3 py-1 rounded-full text-sm bg-muted text-muted-foreground border border-border",children:["#",a]},a))]})]}),e("div",{className:"flex-1 overflow-auto",children:r("div",{className:"p-8",children:[t.metadata&&Object.keys(t.metadata).length>0&&r("div",{className:"mb-6",children:[e("h3",{className:"text-sm font-semibold text-foreground mb-2",children:"Metadata"}),e("div",{className:"bg-muted rounded-lg p-3 border border-border",children:e("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-x-4 gap-y-1 text-xs",children:Object.entries(t.metadata).map(([a,x])=>r("div",{className:"flex gap-1",children:[r("span",{className:"text-muted-foreground font-medium",children:[a.replace(/([A-Z])/g," $1").trim(),":"]}),e("span",{className:"text-foreground truncate",children:String(x)})]},a))})})]}),e("div",{className:"space-y-4",children:t.content?r("div",{className:"relative",children:[e("div",{className:"bg-card border border-border rounded-xl p-6 overflow-hidden",children:r("pre",{className:"text-card-foreground text-sm leading-relaxed whitespace-pre-wrap font-mono",children:[t.content.substring(0,1500),t.content.length>1500&&"..."]})}),t.content.length>1500&&e("div",{className:"absolute bottom-0 left-0 right-0 h-16 bg-gradient-to-t from-card to-transparent rounded-b-xl flex items-end justify-center pb-2",children:e("span",{className:"text-muted-foreground text-xs",children:"Content truncated"})})]}):r("div",{className:"text-center py-12 bg-muted rounded-xl border-2 border-dashed border-border",children:[e("div",{className:"w-16 h-16 mx-auto mb-4 rounded-full bg-background flex items-center justify-center",children:e(i,{className:"h-8 w-8 text-muted-foreground"})}),e("h4",{className:"text-foreground font-medium mb-1",children:"No content available"}),e("p",{className:"text-muted-foreground text-sm",children:"This document doesn't have preview content"})]})})]})})]})}export{C as a};
@@ -1 +0,0 @@
1
- var a=[{date:new Date(2025,3,18),name:"Good Friday"},{date:new Date(2025,3,21),name:"Easter Monday"},{date:new Date(2025,4,5),name:"Early May bank holiday"},{date:new Date(2025,5,26),name:"Spring bank holiday"},{date:new Date(2025,7,25),name:"Summer bank holiday"},{date:new Date(2025,11,25),name:"Christmas Day"},{date:new Date(2025,11,26),name:"Boxing Day"}];export{a};