cortex-react-components 1.22.3 → 1.23.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 (106) hide show
  1. package/dist/chunk-2JZGT4F6.mjs +4 -0
  2. package/dist/{chunk-IE2A7UT3.mjs → chunk-4VDJWCUB.mjs} +1 -1
  3. package/dist/{chunk-YJLGN2LA.mjs → chunk-7D3JENEX.mjs} +1 -1
  4. package/dist/{chunk-D43ENVPX.mjs → chunk-AFA6LBJ4.mjs} +1 -1
  5. package/dist/{chunk-ZDDN4BC5.mjs → chunk-C2JAWRTF.mjs} +1 -1
  6. package/dist/{chunk-2XFMQU5T.mjs → chunk-CKC7NDYJ.mjs} +1 -1
  7. package/dist/{chunk-KHQHXFXT.mjs → chunk-CQLNCTJO.mjs} +1 -1
  8. package/dist/{chunk-J3CPOHE6.mjs → chunk-EG6XIOOJ.mjs} +1 -1
  9. package/dist/{chunk-DSLEVJ5J.mjs → chunk-FHRWUBJS.mjs} +1 -1
  10. package/dist/chunk-FWAGER33.mjs +1 -0
  11. package/dist/{chunk-CLX23VLS.mjs → chunk-GCVL4HMJ.mjs} +1 -1
  12. package/dist/chunk-K6WYPF6T.mjs +1 -0
  13. package/dist/{chunk-6AIYOOQB.mjs → chunk-KVLKXXVS.mjs} +1 -1
  14. package/dist/{chunk-OCZX7ASJ.mjs → chunk-MWFVTY5P.mjs} +1 -1
  15. package/dist/{chunk-G2IGGQXC.mjs → chunk-N7Z6I6KY.mjs} +1 -1
  16. package/dist/chunk-NOEITQK2.mjs +1 -0
  17. package/dist/{chunk-5O6DFU4X.mjs → chunk-NSUCU5DU.mjs} +1 -1
  18. package/dist/chunk-ONSYX5JZ.mjs +1 -0
  19. package/dist/{chunk-GXHXPWKT.mjs → chunk-QI2O4DFP.mjs} +1 -1
  20. package/dist/{chunk-UJRNR62B.mjs → chunk-QXFTL6FL.mjs} +1 -1
  21. package/dist/chunk-RA7HHB4S.mjs +9 -0
  22. package/dist/{chunk-3UEZYNR7.mjs → chunk-RPZFHDAH.mjs} +1 -1
  23. package/dist/{chunk-VPMCRWSX.mjs → chunk-TDEZBNLK.mjs} +1 -1
  24. package/dist/{chunk-77CKHTBZ.mjs → chunk-UEBU2LBX.mjs} +1 -1
  25. package/dist/chunk-VMQF6E47.mjs +1 -0
  26. package/dist/{chunk-DT4BKA5D.mjs → chunk-YCCULI7X.mjs} +1 -1
  27. package/dist/components/Blocks/Banner.mjs +1 -1
  28. package/dist/components/Blocks/CallToAction.mjs +1 -1
  29. package/dist/components/Blocks/Content.mjs +1 -1
  30. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  31. package/dist/components/Blocks/FeaturesBlock.stories.mjs +1 -1
  32. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  33. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  34. package/dist/components/Blocks/index.mjs +1 -1
  35. package/dist/components/HeaderFooter/SectionHeading.d.ts +2 -1
  36. package/dist/components/HeaderFooter/SectionHeading.js +1 -1
  37. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  38. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  39. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  40. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  41. package/dist/components/Heros/RenderHero.mjs +1 -1
  42. package/dist/components/Heros/index.mjs +1 -1
  43. package/dist/components/Layouts/BlogList.d.ts +24 -0
  44. package/dist/components/Layouts/BlogList.js +12 -0
  45. package/dist/components/Layouts/BlogList.mjs +1 -0
  46. package/dist/components/Layouts/BlogList.stories.js +12 -0
  47. package/dist/components/Layouts/BlogList.stories.mjs +1 -0
  48. package/dist/components/Layouts/index.d.ts +1 -0
  49. package/dist/components/Layouts/index.js +9 -1
  50. package/dist/components/Layouts/index.mjs +1 -1
  51. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  52. package/dist/components/Menus/SidebarLeft.stories.mjs +1 -1
  53. package/dist/components/Menus/SidebarRight.mjs +1 -1
  54. package/dist/components/Menus/SidebarRight.stories.mjs +1 -1
  55. package/dist/components/Menus/index.mjs +1 -1
  56. package/dist/components/Pages/Documentation.mjs +1 -1
  57. package/dist/components/Pages/Documentation.stories.mjs +1 -1
  58. package/dist/components/Pages/IndexPage.mjs +1 -1
  59. package/dist/components/Pages/IndexPage.stories.mjs +1 -1
  60. package/dist/components/Pages/Page.mjs +1 -1
  61. package/dist/components/Pages/Page.stories.mjs +1 -1
  62. package/dist/components/Pages/Website.mjs +1 -1
  63. package/dist/components/Pages/Website.stories.mjs +1 -1
  64. package/dist/components/Payload/RichText/index.mjs +1 -1
  65. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  66. package/dist/components/Payload/index.mjs +1 -1
  67. package/dist/components/index.js +12 -4
  68. package/dist/components/index.mjs +1 -1
  69. package/dist/components/ui/index.mjs +1 -1
  70. package/dist/components/ui/inputs/text-input/index.js +1 -1
  71. package/dist/components/ui/inputs/text-input/index.mjs +1 -1
  72. package/dist/components/ui/inputs/textarea-input/index.js +1 -1
  73. package/dist/components/ui/inputs/textarea-input/index.mjs +1 -1
  74. package/dist/components/ui/sidebar.mjs +1 -1
  75. package/dist/globals.css +1 -1
  76. package/dist/index.js +12 -4
  77. package/dist/index.mjs +1 -1
  78. package/dist/metafile-cjs.json +1 -1
  79. package/dist/metafile-esm.json +1 -1
  80. package/dist/sections/AboutSection.js +1 -1
  81. package/dist/sections/AboutSection.mjs +1 -1
  82. package/dist/sections/AboutSection.stories.js +1 -1
  83. package/dist/sections/AboutSection.stories.mjs +1 -1
  84. package/dist/sections/BlogListSection.mjs +1 -1
  85. package/dist/sections/BlogListSection.stories.mjs +1 -1
  86. package/dist/sections/ContactSection.js +1 -1
  87. package/dist/sections/ContactSection.mjs +1 -1
  88. package/dist/sections/ContactSection.stories.js +1 -1
  89. package/dist/sections/ContactSection.stories.mjs +1 -1
  90. package/dist/sections/PricingSection.js +1 -1
  91. package/dist/sections/PricingSection.mjs +1 -1
  92. package/dist/sections/PricingSection.stories.js +1 -1
  93. package/dist/sections/PricingSection.stories.mjs +1 -1
  94. package/dist/sections/ServiceSection.mjs +1 -1
  95. package/dist/sections/ServiceSection.stories.mjs +1 -1
  96. package/dist/sections/form/index.js +1 -1
  97. package/dist/sections/form/index.mjs +1 -1
  98. package/dist/sections/index.js +1 -1
  99. package/dist/sections/index.mjs +1 -1
  100. package/package.json +1 -1
  101. package/dist/chunk-52UEE46P.mjs +0 -1
  102. package/dist/chunk-E3FZ6GTZ.mjs +0 -1
  103. package/dist/chunk-FXOSDDE3.mjs +0 -1
  104. package/dist/chunk-MGZHZWWG.mjs +0 -4
  105. package/dist/chunk-VYJK4R76.mjs +0 -1
  106. package/dist/chunk-W4BDQBY4.mjs +0 -1
@@ -1 +0,0 @@
1
- import{a as g}from"./chunk-AD7PG4E2.mjs";import{a as o}from"./chunk-7REKDTES.mjs";import{a as s}from"./chunk-6ZNVXWZR.mjs";import{a as e}from"./chunk-WZLEEZ5C.mjs";import{a as n}from"./chunk-UESKYRNK.mjs";import{jsx as i,jsxs as a}from"react/jsx-runtime";function f({blogs:m,pages:l,categories:t,types:r}){return i("section",{children:i(n,{children:a("div",{className:"grid gap-30px lg:grid-cols-[1fr_410px]",children:[a("div",{children:[r&&i(s,{types:r}),i(g,{blogs:m}),i(e,{pages:l})]}),i("div",{className:"grid gap-30px w-full self-baseline max-md:mx-auto max-md:max-w-[410px] lg:gap-10",children:i("div",{className:"lg:-mt-24 w-full",children:t&&t.links&&i(o,{links:t.links,title:t.title})})})]})})})}export{f as a};
@@ -1,4 +0,0 @@
1
- "use client";
2
- "use strict";
3
-
4
- import{a as b}from"./chunk-YLGJP63J.mjs";import{a as p}from"./chunk-52UEE46P.mjs";import{a as C}from"./chunk-J3CPOHE6.mjs";import{b as v}from"./chunk-GLEWUUGS.mjs";import{a as i}from"./chunk-NIQ4466A.mjs";import{Formik as x}from"formik";import{FaUser as L}from"react-icons/fa6";import*as m from"yup";import{toast as f}from"sonner";import{jsx as e,jsxs as n}from"react/jsx-runtime";var s={tooShort:"Must be at least ${min} characters",tooLong:"Must be at most ${max} characters",required:"This field is required",email:"Invalid email format"},N=m.object().shape({name:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),email:m.string().email(s.email).required(s.required),subject:m.string().min(2,s.tooShort).max(50,s.tooLong).required(s.required),message:m.string().min(2,s.tooShort).max(300,s.tooLong).required(s.required)}),u=i("!pr-[44px]"),g=i("!border-red-600 border"),d=i("sr-only");function T(){return e(x,{initialValues:{name:"",email:"",subject:"",message:""},validationSchema:N,onSubmit:async(a,{resetForm:t})=>{let o=await b(a);o.data===null?f.error(o.message):(f.success(o.message),t())},children:({errors:a,touched:t,values:o,handleChange:r,handleBlur:c,isSubmitting:l,handleSubmit:h})=>n("form",{onSubmit:h,className:"grid grid-cols-1 gap-2 pt-2 lg:grid-cols-2",children:[n("div",{children:[e(p,{placeholder:"Your Name",type:"text",name:"name",value:o.name,onChange:r,onBlur:c,disabled:l,icon:e(L,{}),className:i(u,a.name&&t.name&&g)}),a.name&&t.name&&e("p",{title:a.name,"aria-live":"polite",role:"error message",className:d,children:a.name})]}),n("div",{children:[e(p,{placeholder:"Your Email",type:"email",name:"email",value:o.email,onChange:r,onBlur:c,disabled:l,icon:e(w,{}),className:i(u,a.email&&t.email&&g)}),a.email&&t.email&&e("p",{title:a.email,"aria-live":"polite",role:"error message",className:d,children:a.email})]}),n("div",{className:"lg:col-span-2",children:[e(p,{placeholder:"Subject",type:"text",name:"subject",value:o.subject,onChange:r,onBlur:c,disabled:l,className:i(u,a.subject&&t.subject&&g)}),a.subject&&t.subject&&e("p",{title:a.subject,"aria-live":"polite",role:"error message",className:d,children:a.subject})]}),n("div",{className:"lg:col-span-2",children:[e(C,{placeholder:"Write Message...",name:"message",value:o.message,onChange:r,onBlur:c,disabled:l,icon:e(S,{}),className:i(u,a.message&&t.message&&g)}),a.message&&t.message&&e("p",{title:a.message,"aria-live":"polite",role:"error message",className:d,children:a.message})]}),e("div",{className:"lg:col-span-2",children:e(v,{type:"submit",className:"w-full outline outline-accent bg-background text-accent hover:bg-accent hover:text-accent-foreground",disabled:l,children:e("span",{children:"SEND"})})})]})})}function w(){return e("svg",{width:16,height:15,viewBox:"0 0 16 15",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M14.9727 1.76172L13.2227 13.1094C13.1953 13.3828 13.0312 13.6289 12.7852 13.7656C12.6484 13.8203 12.5117 13.875 12.3477 13.875C12.2383 13.875 12.1289 13.8477 12.0195 13.793L8.68359 12.3984L7.28906 14.4766C7.17969 14.668 6.98828 14.75 6.79688 14.75C6.49609 14.75 6.25 14.5039 6.25 14.2031V11.5781C6.25 11.3594 6.30469 11.168 6.41406 11.0312L12.375 3.375L4.33594 10.6211L1.51953 9.44531C1.21875 9.30859 1 9.03516 1 8.67969C0.972656 8.29688 1.13672 8.02344 1.4375 7.85938L13.6875 0.886719C13.9609 0.722656 14.3438 0.722656 14.6172 0.914062C14.8906 1.10547 15.0273 1.43359 14.9727 1.76172Z"})})}function S(){return e("svg",{width:"14",height:"11",viewBox:"0 0 14 11",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:e("path",{d:"M12.6875 0.5C13.3984 0.5 14 1.10156 14 1.8125C14 2.25 13.7812 2.63281 13.4531 2.87891L7.51953 7.33594C7.19141 7.58203 6.78125 7.58203 6.45312 7.33594L0.519531 2.87891C0.191406 2.63281 0 2.25 0 1.8125C0 1.10156 0.574219 0.5 1.3125 0.5H12.6875ZM5.93359 8.04688C6.5625 8.51172 7.41016 8.51172 8.03906 8.04688L14 3.5625V9.25C14 10.2344 13.207 11 12.25 11H1.75C0.765625 11 0 10.2344 0 9.25V3.5625L5.93359 8.04688Z"})})}export{T as a};
@@ -1 +0,0 @@
1
- import{d as o}from"./chunk-5O6DFU4X.mjs";import{a as s}from"./chunk-NIQ4466A.mjs";import{jsx as e,jsxs as m}from"react/jsx-runtime";function g({subtitle:a,title:r,description:t,alignment:n="start",hasBottomSpacing:i=!1,className:c}){let l=s(n==="start"&&"text-left",n==="center"&&"text-center",n==="end"&&"text-right",{"mb-10 md:mb-[3.75rem]":i},c);return m("div",{className:l,children:[a&&e("span",{className:"mb-[.625rem] block font-secondary text-base font-bold uppercase leading-[1.5] tracking-widest text-accent md:text-md",children:a}),e("h2",{className:"font-secondary text-xl font-bold leading-[1.25] text-accent-900 dark:text-white md:text-2xl",children:r}),typeof t=="string"?t&&e("p",{className:"mt-5 whitespace-pre-line",children:t}):t&&e(o,{content:t,enableGutter:!1})]})}export{g as a};
@@ -1 +0,0 @@
1
- import{a as r}from"./chunk-IB72MBM7.mjs";import{d as a}from"./chunk-5O6DFU4X.mjs";import m from"clsx";import{jsx as o,jsxs as l}from"react/jsx-runtime";var g=i=>{let{className:n,docs:t,introContent:e}=i;return l("div",{className:m("container",n),children:[e&&o(a,{content:e,enableGutter:!1}),o("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8 items-stretch",children:t==null?void 0:t.map((s,p)=>typeof s=="string"?null:o(r,{doc:s,relationTo:"posts",showCategories:!0},p))})]})};export{g as a};