cortex-react-components 2.29.0-beta.11 → 2.29.0-beta.13

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 (120) hide show
  1. package/dist/{chunk-VRE6VCHX.mjs → chunk-2BR55L74.mjs} +1 -1
  2. package/dist/{chunk-IIF5E7AJ.mjs → chunk-2W5UZALU.mjs} +1 -1
  3. package/dist/{chunk-BHCJFM6D.mjs → chunk-5B3PAKEB.mjs} +1 -1
  4. package/dist/{chunk-UUW7OPLB.mjs → chunk-5SQJK4M5.mjs} +1 -1
  5. package/dist/{chunk-CDC43MQF.mjs → chunk-6LCKHANB.mjs} +1 -1
  6. package/dist/{chunk-JP7GHZ53.mjs → chunk-6MFAWZRQ.mjs} +1 -1
  7. package/dist/{chunk-RLDPGHPX.mjs → chunk-6UMEZWX6.mjs} +1 -1
  8. package/dist/{chunk-VYZUAY74.mjs → chunk-7FPCEJXM.mjs} +1 -1
  9. package/dist/{chunk-2BSRNGGH.mjs → chunk-D5RCP3ZQ.mjs} +1 -1
  10. package/dist/{chunk-64ATK5PU.mjs → chunk-HMRXEVD5.mjs} +1 -1
  11. package/dist/chunk-IXZUFC6Y.mjs +4 -0
  12. package/dist/{chunk-R2BQ6JD2.mjs → chunk-JTHYUI4E.mjs} +1 -1
  13. package/dist/{chunk-W6BGSZXG.mjs → chunk-LODLJMHI.mjs} +1 -1
  14. package/dist/{chunk-B2BULJR5.mjs → chunk-MD6HBEMI.mjs} +1 -1
  15. package/dist/{chunk-ZX3L62MN.mjs → chunk-NKP6F2FT.mjs} +1 -1
  16. package/dist/chunk-OIVIGTDT.mjs +4 -0
  17. package/dist/{chunk-A7IFELCB.mjs → chunk-OTGGV6NW.mjs} +1 -1
  18. package/dist/chunk-P4NVJNGE.mjs +4 -0
  19. package/dist/{chunk-RIRZRO6U.mjs → chunk-P55W6AFU.mjs} +1 -1
  20. package/dist/{chunk-G77SLUQD.mjs → chunk-PJRQT2R6.mjs} +1 -1
  21. package/dist/{chunk-6OCJ7CZ4.mjs → chunk-PTZ5BEAI.mjs} +1 -1
  22. package/dist/{chunk-T5HJS6OF.mjs → chunk-RSDUFAIB.mjs} +1 -1
  23. package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
  24. package/dist/{chunk-2PHIGOJD.mjs → chunk-T46EPXCV.mjs} +1 -1
  25. package/dist/{chunk-RDXPKTPJ.mjs → chunk-T5DDLCLZ.mjs} +1 -1
  26. package/dist/{chunk-GXU54C5S.mjs → chunk-TOVISRXM.mjs} +1 -1
  27. package/dist/{chunk-JJD5N4O6.mjs → chunk-ULE372K2.mjs} +1 -1
  28. package/dist/{chunk-BIIHI5MH.mjs → chunk-WSM5P7TR.mjs} +1 -1
  29. package/dist/{chunk-25FZW7UE.mjs → chunk-WZ37RZYG.mjs} +1 -1
  30. package/dist/{chunk-UZSBX5GO.mjs → chunk-X3JZSN3W.mjs} +1 -1
  31. package/dist/{chunk-T7SP3SIU.mjs → chunk-X422OZSY.mjs} +1 -1
  32. package/dist/{chunk-VNYUNZ3M.mjs → chunk-XGIYNUGC.mjs} +1 -1
  33. package/dist/{chunk-N4YUZD6B.mjs → chunk-XIBE7BB3.mjs} +1 -1
  34. package/dist/{chunk-RJRJB6EL.mjs → chunk-XSN75ALA.mjs} +1 -1
  35. package/dist/{chunk-QAHGHERG.mjs → chunk-ZG2ZUVRG.mjs} +1 -1
  36. package/dist/components/Blocks/Banner.mjs +1 -1
  37. package/dist/components/Blocks/CallToAction.mjs +1 -1
  38. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  39. package/dist/components/Blocks/Content.mjs +1 -1
  40. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  41. package/dist/components/Blocks/ImageBlock.mjs +1 -1
  42. package/dist/components/Blocks/MediaBlock.mjs +1 -1
  43. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  44. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  45. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  46. package/dist/components/Blocks/index.mjs +1 -1
  47. package/dist/components/CRM/index.mjs +1 -1
  48. package/dist/components/Cards/ContentCard.mjs +1 -1
  49. package/dist/components/Cards/FeatureCard.mjs +1 -1
  50. package/dist/components/Cards/index.mjs +1 -1
  51. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  52. package/dist/components/DigitalColleagues/Views/index.mjs +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.mjs +1 -1
  56. package/dist/components/Foundary/index.mjs +1 -1
  57. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  58. package/dist/components/HeaderFooter/VideoHeader.mjs +1 -1
  59. package/dist/components/HeaderFooter/index.mjs +1 -1
  60. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  61. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  62. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  63. package/dist/components/Heros/RenderHero.mjs +1 -1
  64. package/dist/components/Heros/SectionHero/index.mjs +1 -1
  65. package/dist/components/Heros/index.mjs +1 -1
  66. package/dist/components/Holidays/CalendarView.d.ts +2 -1
  67. package/dist/components/Holidays/CalendarView.js +1 -1
  68. package/dist/components/Holidays/CalendarView.mjs +1 -1
  69. package/dist/components/Holidays/HolidayTracker.d.ts +2 -1
  70. package/dist/components/Holidays/HolidayTracker.js +1 -1
  71. package/dist/components/Holidays/HolidayTracker.mjs +1 -1
  72. package/dist/components/Holidays/RequestLeave.js +1 -1
  73. package/dist/components/Holidays/RequestLeave.mjs +1 -1
  74. package/dist/components/Holidays/index.js +1 -1
  75. package/dist/components/Holidays/index.mjs +1 -1
  76. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  77. package/dist/components/Layouts/Print.mjs +1 -1
  78. package/dist/components/Layouts/SlideShow.mjs +1 -1
  79. package/dist/components/Layouts/index.mjs +1 -1
  80. package/dist/components/Other/index.mjs +1 -1
  81. package/dist/components/Payload/CollectionArchive/index.mjs +1 -1
  82. package/dist/components/Payload/Media/index.mjs +1 -1
  83. package/dist/components/Payload/PayloadCard/index.mjs +1 -1
  84. package/dist/components/Payload/RichText/index.mjs +1 -1
  85. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  86. package/dist/components/Payload/index.mjs +1 -1
  87. package/dist/components/Projects/EpicsView.mjs +1 -1
  88. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  89. package/dist/components/Projects/ProjectPage.mjs +1 -1
  90. package/dist/components/Projects/ProjectView.mjs +1 -1
  91. package/dist/components/Projects/index.mjs +1 -1
  92. package/dist/components/index.js +27 -27
  93. package/dist/components/index.mjs +1 -1
  94. package/dist/decorators/Intranet.mjs +1 -1
  95. package/dist/index.js +39 -39
  96. package/dist/index.mjs +1 -1
  97. package/dist/metafile-cjs.json +1 -1
  98. package/dist/metafile-esm.json +1 -1
  99. package/dist/pages/Blog.mjs +1 -1
  100. package/dist/pages/Documentation.mjs +1 -1
  101. package/dist/pages/IndexPage.mjs +1 -1
  102. package/dist/pages/LandingPage.mjs +1 -1
  103. package/dist/pages/Page.mjs +1 -1
  104. package/dist/pages/Publish.mjs +1 -1
  105. package/dist/pages/Website.mjs +1 -1
  106. package/dist/sections/AboutSection.mjs +1 -1
  107. package/dist/sections/BlogDetail.mjs +1 -1
  108. package/dist/sections/BlogList.mjs +1 -1
  109. package/dist/sections/ContactSection.mjs +1 -1
  110. package/dist/sections/PageSections.mjs +1 -1
  111. package/dist/sections/PricingSection.mjs +1 -1
  112. package/dist/sections/ServiceDetail.mjs +1 -1
  113. package/dist/sections/ServiceDetailSection.mjs +1 -1
  114. package/dist/sections/ServiceSection.mjs +1 -1
  115. package/dist/sections/form/index.mjs +1 -1
  116. package/dist/sections/index.mjs +1 -1
  117. package/package.json +1 -1
  118. package/dist/chunk-2KOTYRQB.mjs +0 -4
  119. package/dist/chunk-TQRP4O54.mjs +0 -4
  120. package/dist/chunk-X2JWNPWT.mjs +0 -4
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{b as r}from"./chunk-ZUA4KNIR.mjs";import{a as g}from"./chunk-QTW33JYG.mjs";import{a as n}from"./chunk-MDJREBVI.mjs";import{useState as b}from"react";import{ChevronLeft as x,ChevronRight as N}from"lucide-react";import{jsx as t,jsxs as s}from"react/jsx-runtime";function I({currentDate:a,setCurrentDate:d,holidays:p}){let[i,w]=b(null),v=(new Date(a.getFullYear(),a.getMonth(),1).getDay()+6)%7,m=Array.from({length:42},(e,o)=>{let l=new Date(a.getFullYear(),a.getMonth(),o-v+1,a.getHours()),y=p.filter(c=>g.toUtcMidnight(new Date(c.startDate))<=l&&g.toUtcEndOfDay(new Date(c.endDate))>=l);return{date:l,isCurrentMonth:l.getMonth()===a.getMonth(),isToday:l.toDateString()===new Date().toDateString(),holidays:y}}),h=()=>{d(new Date(a.getFullYear(),a.getMonth()-1,1))},f=()=>{d(new Date(a.getFullYear(),a.getMonth()+1,1))},u=()=>{d(new Date)};return s("div",{className:"lg:flex lg:h-full lg:flex-col",children:[s("header",{className:"flex items-center justify-between border-b border-gray-200 px-6 py-4 lg:flex-none",children:[t("h1",{className:"text-base font-semibold text-foreground",children:t("time",{dateTime:a.toISOString(),children:a.toLocaleString("default",{month:"long",year:"numeric"})})}),t("div",{className:"flex items-center",children:s("div",{className:"relative flex items-center rounded-md gap-1 md:items-stretch",children:[s(r,{onClick:h,variant:"outline",size:"icon",className:"rounded-l-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Previous month"}),t(x,{className:"h-5 w-5","aria-hidden":"true"})]}),t(r,{variant:"outline",onClick:u,className:"hidden border-l border-r border-accent px-3.5 text-sm font-semibold text-accent hover:bg-gray-50 focus:relative md:block",children:"Today"}),s(r,{onClick:f,variant:"outline",size:"icon",className:"rounded-r-md border-accent hover:text-accent",children:[t("span",{className:"sr-only",children:"Next month"}),t(N,{className:"h-5 w-5","aria-hidden":"true"})]})]})})]}),s("div",{className:"shadow ring-1 ring-black ring-opacity-5 lg:flex lg:flex-auto lg:flex-col",children:[s("div",{className:"grid grid-cols-7 gap-px border-b border-gray-300 bg-gray-200 text-center text-xs font-semibold leading-6 text-gray-700 lg:flex-none",children:[s("div",{className:"bg-white py-2",children:["M",t("span",{className:"sr-only sm:not-sr-only",children:"on"})]}),s("div",{className:"bg-white py-2",children:["T",t("span",{className:"sr-only sm:not-sr-only",children:"ue"})]}),s("div",{className:"bg-white py-2",children:["W",t("span",{className:"sr-only sm:not-sr-only",children:"ed"})]}),s("div",{className:"bg-white py-2",children:["T",t("span",{className:"sr-only sm:not-sr-only",children:"hu"})]}),s("div",{className:"bg-white py-2",children:["F",t("span",{className:"sr-only sm:not-sr-only",children:"ri"})]}),s("div",{className:"bg-white py-2",children:["S",t("span",{className:"sr-only sm:not-sr-only",children:"at"})]}),s("div",{className:"bg-white py-2",children:["S",t("span",{className:"sr-only sm:not-sr-only",children:"un"})]})]}),s("div",{className:"flex bg-gray-200 text-xs leading-6 text-gray-700 lg:flex-auto overflow-visible",children:[t("div",{className:"hidden w-full lg:grid lg:grid-cols-7 lg:grid-rows-6 lg:gap-px overflow-visible",children:m.map(e=>s("div",{className:n(e.isCurrentMonth?"bg-white":"bg-gray-50 text-gray-500","relative px-3 py-2 overflow-visible"),children:[t("time",{dateTime:e.date.toISOString(),className:n("flex h-6 w-6 items-center justify-center rounded-full",e.isToday&&"bg-indigo-600 font-semibold text-white"),children:e.date.getDate()}),e.holidays.length>0&&t("ol",{className:"mt-2 space-y-1 overflow-visible",children:e.holidays.map(o=>t("li",{className:"overflow-visible",children:t("div",{className:`text-xs px-1 py-0.5 rounded ${o.status==="approved"?"border-green-500":"border-gray-500"} border overflow-visible`,children:o.userName})},o.id))})]},e.date.toISOString()))}),t("div",{className:"isolate grid w-full grid-cols-7 grid-rows-6 gap-px lg:hidden",children:m.map(e=>s("button",{type:"button",className:n(e.isCurrentMonth?"bg-white":"bg-gray-50",(e.date===i||e.isToday)&&"font-semibold",e.date===i&&"text-white",!e.date&&e.isToday&&"text-indigo-600",e.date!==i&&e.isCurrentMonth&&!e.isToday&&"text-gray-900",e.date!==i&&!e.isCurrentMonth&&!e.isToday&&"text-gray-500","flex h-14 flex-col px-3 py-2 hover:bg-gray-100 focus:z-10"),children:[t("time",{dateTime:e.date.toISOString(),className:n("ml-auto",e.date===i&&e.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-indigo-600",e.date===i&&!e.isToday&&"flex h-6 w-6 items-center justify-center rounded-full bg-gray-900"),children:e.date.getDate()}),s("span",{className:"sr-only",children:[e.holidays.length," holidays"]}),e.holidays.length>0&&t("span",{className:"-mx-0.5 mt-auto flex flex-wrap-reverse",children:e.holidays.map(o=>t("span",{className:`mx-0.5 mb-1 h-1.5 w-1.5 rounded-full ${o.status==="approved"?"bg-green-500":"bg-gray-500"}`},o.id))})]},e.date.toISOString()))})]})]})]})}export{I as a};