cortex-react-components 2.13.5 → 2.13.6

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 (123) hide show
  1. package/dist/{chunk-VBSFVJM5.mjs → chunk-255P6K5W.mjs} +1 -1
  2. package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
  3. package/dist/{chunk-Q7KKN6MH.mjs → chunk-2RQDJ5XT.mjs} +1 -1
  4. package/dist/{chunk-KY3ELFX5.mjs → chunk-5SHZBJ5R.mjs} +1 -1
  5. package/dist/{chunk-6DQ7FEQQ.mjs → chunk-5WVFEIMC.mjs} +1 -1
  6. package/dist/{chunk-LQASBVUG.mjs → chunk-62A35O55.mjs} +1 -1
  7. package/dist/{chunk-57PJ7CHJ.mjs → chunk-67QPOSVV.mjs} +1 -1
  8. package/dist/chunk-6R36YTGY.mjs +1 -0
  9. package/dist/{chunk-2AWS5Z43.mjs → chunk-76AKO55V.mjs} +1 -1
  10. package/dist/{chunk-SPAOEUCG.mjs → chunk-7GMAMIHM.mjs} +1 -1
  11. package/dist/{chunk-BY5TSHJ5.mjs → chunk-B7AXSCTN.mjs} +1 -1
  12. package/dist/{chunk-6NED7ZVK.mjs → chunk-CBYI4FLL.mjs} +1 -1
  13. package/dist/{chunk-NPGGDQ6F.mjs → chunk-ERJXTG6X.mjs} +1 -1
  14. package/dist/{chunk-S4ES6P3Y.mjs → chunk-FKU4VQR6.mjs} +1 -1
  15. package/dist/chunk-GTXTHH5Y.mjs +4 -0
  16. package/dist/{chunk-QWFFSMKK.mjs → chunk-H3CJOE6S.mjs} +1 -1
  17. package/dist/{chunk-75XBZHOC.mjs → chunk-HKGW6JI2.mjs} +1 -1
  18. package/dist/{chunk-AEFWTCCE.mjs → chunk-I2GNNRFH.mjs} +1 -1
  19. package/dist/{chunk-2VOOH4YJ.mjs → chunk-IF3425JX.mjs} +1 -1
  20. package/dist/{chunk-TUACRDU3.mjs → chunk-LJQPLE4S.mjs} +1 -1
  21. package/dist/{chunk-B2TBKNIJ.mjs → chunk-M7NV6EFH.mjs} +1 -1
  22. package/dist/{chunk-FX6IXEMQ.mjs → chunk-MXCW6SOT.mjs} +1 -1
  23. package/dist/{chunk-FRXZ2OKW.mjs → chunk-N3B3XNV3.mjs} +1 -1
  24. package/dist/{chunk-K4MFTVNB.mjs → chunk-NWISIJFD.mjs} +1 -1
  25. package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
  26. package/dist/{chunk-RUZVSK25.mjs → chunk-PK3OBSCB.mjs} +1 -1
  27. package/dist/chunk-QC2UWZWL.mjs +1 -0
  28. package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
  29. package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
  30. package/dist/chunk-USGRM22Y.mjs +1 -0
  31. package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
  32. package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
  33. package/dist/{chunk-ZXJFBN7L.mjs → chunk-XKGBG5FX.mjs} +1 -1
  34. package/dist/{chunk-N52FSTLG.mjs → chunk-YKG4FNS4.mjs} +1 -1
  35. package/dist/components/Blocks/Banner.mjs +1 -1
  36. package/dist/components/Blocks/CallToAction.mjs +1 -1
  37. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  38. package/dist/components/Blocks/Content.mjs +1 -1
  39. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  40. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  41. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  42. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  43. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  44. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  45. package/dist/components/Blocks/index.mjs +1 -1
  46. package/dist/components/Cards/ContentCard.mjs +1 -1
  47. package/dist/components/Cards/FeatureCard.mjs +1 -1
  48. package/dist/components/Cards/index.mjs +1 -1
  49. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  50. package/dist/components/DigitalColleagues/Views/index.js +1 -1
  51. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  52. package/dist/components/DigitalColleagues/index.js +1 -1
  53. package/dist/components/DigitalColleagues/index.mjs +1 -1
  54. package/dist/components/Foundary/MainPage.mjs +1 -1
  55. package/dist/components/Foundary/Views/index.js +1 -1
  56. package/dist/components/Foundary/Views/index.mjs +1 -1
  57. package/dist/components/Foundary/index.js +1 -1
  58. package/dist/components/Foundary/index.mjs +1 -1
  59. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  60. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  61. package/dist/components/HeaderFooter/index.mjs +1 -1
  62. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  63. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  64. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  65. package/dist/components/Heros/RenderHero.mjs +1 -1
  66. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  67. package/dist/components/Heros/index.mjs +1 -1
  68. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  69. package/dist/components/Layouts/Print.mjs +1 -1
  70. package/dist/components/Layouts/SlideShow.mjs +1 -1
  71. package/dist/components/Layouts/index.mjs +1 -1
  72. package/dist/components/Other/index.mjs +1 -1
  73. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  74. package/dist/components/Payload/Media/index.mjs +1 -1
  75. package/dist/components/Payload/PayloadCard/index.mjs +1 -1
  76. package/dist/components/Payload/RichText/index.mjs +1 -1
  77. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  78. package/dist/components/Payload/index.mjs +1 -1
  79. package/dist/components/Projects/AddEpicModal.js +1 -1
  80. package/dist/components/Projects/AddEpicModal.mjs +1 -1
  81. package/dist/components/Projects/AddTaskModal.js +1 -1
  82. package/dist/components/Projects/AddTaskModal.mjs +1 -1
  83. package/dist/components/Projects/EpicsView.d.ts +1 -1
  84. package/dist/components/Projects/EpicsView.js +2 -1
  85. package/dist/components/Projects/EpicsView.mjs +1 -1
  86. package/dist/components/Projects/KanbanBoardView.js +1 -1
  87. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  88. package/dist/components/Projects/ProjectPage.js +1 -1
  89. package/dist/components/Projects/ProjectPage.mjs +1 -1
  90. package/dist/components/Projects/ProjectView.js +1 -1
  91. package/dist/components/Projects/ProjectView.mjs +1 -1
  92. package/dist/components/Projects/index.js +1 -1
  93. package/dist/components/Projects/index.mjs +1 -1
  94. package/dist/components/index.js +9 -9
  95. package/dist/components/index.mjs +1 -1
  96. package/dist/index.js +15 -15
  97. package/dist/index.mjs +1 -1
  98. package/dist/metafile-cjs.json +1 -1
  99. package/dist/metafile-esm.json +1 -1
  100. package/dist/pages/Blog.mjs +1 -1
  101. package/dist/pages/Documentation.mjs +1 -1
  102. package/dist/pages/IndexPage.mjs +1 -1
  103. package/dist/pages/Intranet.mjs +1 -1
  104. package/dist/pages/LandingPage.mjs +1 -1
  105. package/dist/pages/Page.mjs +1 -1
  106. package/dist/pages/Publish.mjs +1 -1
  107. package/dist/pages/Website.mjs +1 -1
  108. package/dist/sections/AboutSection.mjs +1 -1
  109. package/dist/sections/BlogDetail.mjs +1 -1
  110. package/dist/sections/BlogList.mjs +1 -1
  111. package/dist/sections/ContactSection.mjs +1 -1
  112. package/dist/sections/PageSections.mjs +1 -1
  113. package/dist/sections/PricingSection.mjs +1 -1
  114. package/dist/sections/ServiceDetail.mjs +1 -1
  115. package/dist/sections/ServiceDetailSection.mjs +1 -1
  116. package/dist/sections/ServiceSection.mjs +1 -1
  117. package/dist/sections/form/index.mjs +1 -1
  118. package/dist/sections/index.mjs +1 -1
  119. package/package.json +1 -1
  120. package/dist/chunk-7YVVWDS2.mjs +0 -4
  121. package/dist/chunk-E6Y5COQK.mjs +0 -1
  122. package/dist/chunk-TOI73VEE.mjs +0 -1
  123. package/dist/chunk-WSQHAE6Q.mjs +0 -1
@@ -1 +0,0 @@
1
- import{a as S,b as T}from"./chunk-E4TE4NV6.mjs";import{a as p,c as m,d,g,i as l}from"./chunk-YFAZQYK4.mjs";import{a as I}from"./chunk-B4H6T2GP.mjs";import{a as i}from"./chunk-TVZOULLL.mjs";import{a as k,f as h,g as f,h as N,i as C}from"./chunk-3UMMMQEH.mjs";import{a as y}from"./chunk-L5JPAKPM.mjs";import{b}from"./chunk-ZUA4KNIR.mjs";import{useState as B,useEffect as x}from"react";import{BookOpen as G,Bug as V,Zap as E,AlertCircle as M}from"lucide-react";import{jsx as t,jsxs as o}from"react/jsx-runtime";var H=[{value:"story",label:"Story",color:"bg-primary/20 text-primary",icon:G},{value:"task",label:"Task",color:"bg-secondary/20 text-secondary-foreground",icon:M},{value:"bug",label:"Bug",color:"bg-destructive/20 text-destructive",icon:V},{value:"spike",label:"Spike",color:"bg-accent/20 text-accent",icon:E}],R=[{value:"low",label:"Low",color:"bg-success/20 text-success"},{value:"medium",label:"Medium",color:"bg-warning/20 text-warning"},{value:"high",label:"High",color:"bg-destructive/20 text-destructive"}],X=({isOpen:n,onClose:u,onAddTask:D,epics:A,sprints:F,assignees:L,defaultEpicId:s})=>{let[a,c]=B({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epicId:"",sprintId:"none",assignee:""});x(()=>{n&&s&&c(e=>({...e,epicId:s}))},[n,s]),x(()=>{n&&c({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epicId:s||"",sprintId:"none",assignee:""})},[n]);let P=e=>{e.preventDefault(),a.name.trim()&&(D({name:a.name.trim(),description:a.description.trim(),status:"todo",priority:a.priority,type:a.type,storyPoints:a.storyPoints,epic:Number(a.epicId),sprint:Number(a.sprintId),assignee:a.assignee.trim()?{relationTo:"digital-colleagues",value:Number(a.assignee)}:null,dateLogged:new Date().toISOString(),index:0}),c({name:"",description:"",status:"todo",priority:"medium",type:"story",storyPoints:1,epicId:s||"",sprintId:"none",assignee:""}),u())},r=(e,v)=>{c(w=>({...w,[e]:v}))};return t(k,{open:n,onOpenChange:u,children:o(h,{className:"sm:max-w-md",children:[t(f,{children:t(C,{children:"Add New Task"})}),o("form",{onSubmit:P,className:"space-y-4",children:[o("div",{className:"space-y-2",children:[t(i,{htmlFor:"name",children:"Task Title"}),t(y,{id:"name",value:a.name,onChange:e=>r("name",e.target.value),placeholder:"Enter task title",required:!0})]}),o("div",{className:"space-y-2",children:[t(i,{htmlFor:"description",children:"Description"}),t(I,{id:"description",value:a.description,onChange:e=>r("description",e.target.value),placeholder:"Enter task description",rows:3})]}),o("div",{className:"space-y-2",children:[t(i,{children:"Type"}),t(S,{type:"single",value:a.type||"",onValueChange:e=>e&&r("type",e),children:H.map(e=>{let v=e.icon;return o(T,{value:e.value,className:"flex items-center gap-2 data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:[t(v,{className:"h-4 w-4"}),e.label]},e.value)})})]}),o("div",{className:"space-y-2",children:[t(i,{children:"Priority"}),t(S,{type:"single",value:a.priority||"",onValueChange:e=>e&&r("priority",e),children:R.map(e=>t(T,{value:e.value,className:"data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",children:e.label},e.value))})]}),o("div",{className:"space-y-2",children:[t(i,{htmlFor:"points",children:"Story Points"}),t(y,{id:"points",type:"number",min:"1",max:"100",value:a.storyPoints,onChange:e=>r("storyPoints",parseInt(e.target.value)||1),placeholder:"Enter story points",required:!0})]}),!s&&o("div",{className:"space-y-2",children:[t(i,{htmlFor:"epic",children:"Epic"}),o(p,{value:a.epicId,onValueChange:e=>r("epicId",e),children:[t(d,{children:t(m,{placeholder:"Select an epic"})}),t(g,{children:A.map(e=>t(l,{value:e.id.toString(),children:o("div",{className:"flex items-center gap-2",children:[t("div",{className:`w-3 h-3 rounded-full ${e.color}`}),e.name]})},e.id))})]})]}),o("div",{className:"space-y-2",children:[t(i,{htmlFor:"sprint",children:"Sprint (Optional)"}),o(p,{value:a.sprintId,onValueChange:e=>r("sprintId",e),children:[t(d,{children:t(m,{placeholder:"Select a sprint"})}),o(g,{children:[t(l,{value:"none",children:"No Sprint"}),F.map(e=>t(l,{value:e.id.toString(),children:t("div",{className:"flex items-center gap-2",children:e.name})},e.id))]})]})]}),o("div",{className:"space-y-2",children:[t(i,{htmlFor:"sprint",children:"Assignee"}),o(p,{value:a.assignee,onValueChange:e=>r("assignee",e),children:[t(d,{children:t(m,{placeholder:"Select an Assignee"})}),o(g,{children:[t(l,{value:"none",children:"No Assignee"}),L.map(e=>t(l,{value:e.id.toString(),children:t("div",{className:"flex items-center gap-2",children:e.name})},e.id))]})]})]}),o(N,{children:[t(b,{type:"button",variant:"outline",onClick:u,children:"Cancel"}),t(b,{type:"submit",className:"bg-blue-600 hover:bg-blue-700",children:"Add Task"})]})]})]})})};export{X as a};