cortex-react-components 3.0.0 → 3.0.2

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 (159) hide show
  1. package/README.md +31 -3
  2. package/dist/{chunk-P7S6XFU4.mjs → chunk-23XORW7A.mjs} +1 -1
  3. package/dist/{chunk-EAR5WX7W.mjs → chunk-2DF4XGV6.mjs} +1 -1
  4. package/dist/{chunk-X4EFKBGH.mjs → chunk-3ZERPOTU.mjs} +1 -1
  5. package/dist/{chunk-KOLP657S.mjs → chunk-7CCYFMN6.mjs} +1 -1
  6. package/dist/{chunk-2PHIGOJD.mjs → chunk-7YLCUMJH.mjs} +1 -1
  7. package/dist/{chunk-EWZXTRGJ.mjs → chunk-A6INQL3D.mjs} +1 -1
  8. package/dist/{chunk-YZIRIYAS.mjs → chunk-AE22EADM.mjs} +1 -1
  9. package/dist/{chunk-MZHIWEJV.mjs → chunk-AFWCGPWL.mjs} +1 -1
  10. package/dist/{chunk-AQQCH7Z2.mjs → chunk-AGWQ5S2Z.mjs} +1 -1
  11. package/dist/{chunk-YVZOJHZJ.mjs → chunk-BAR6C7TR.mjs} +1 -1
  12. package/dist/{chunk-EBIELPYW.mjs → chunk-BJ4PT44N.mjs} +1 -1
  13. package/dist/{chunk-FYYRZXBK.mjs → chunk-CLDINFBB.mjs} +1 -1
  14. package/dist/{chunk-5NIEZE7A.mjs → chunk-CNCT3JZV.mjs} +1 -1
  15. package/dist/{chunk-5WTGNFUL.mjs → chunk-COPBKPF4.mjs} +1 -1
  16. package/dist/{chunk-XX3FCUUG.mjs → chunk-D55D73TN.mjs} +1 -1
  17. package/dist/{chunk-HPZDGXWQ.mjs → chunk-DDISU7MD.mjs} +1 -1
  18. package/dist/{chunk-RRLGUIJS.mjs → chunk-DPVOA4UZ.mjs} +1 -1
  19. package/dist/{chunk-KEOMDWUC.mjs → chunk-EHSOO47V.mjs} +1 -1
  20. package/dist/{chunk-O7XZ5GNE.mjs → chunk-ERPUOBJL.mjs} +1 -1
  21. package/dist/{chunk-LTJNNUWU.mjs → chunk-ESDGVG7N.mjs} +1 -1
  22. package/dist/{chunk-IP5TOSWC.mjs → chunk-EXKTW5PC.mjs} +1 -1
  23. package/dist/{chunk-BPO6EZE4.mjs → chunk-EZ2MLPZC.mjs} +1 -1
  24. package/dist/{chunk-AXWXFEW7.mjs → chunk-FLOD6B3M.mjs} +1 -1
  25. package/dist/{chunk-P3QZ2UZN.mjs → chunk-FPPA6M6A.mjs} +1 -1
  26. package/dist/{chunk-3QJ3NMZY.mjs → chunk-FQ56UUMT.mjs} +1 -1
  27. package/dist/{chunk-JKPT5QC3.mjs → chunk-GEPYRPWO.mjs} +1 -1
  28. package/dist/{chunk-RN65MHJY.mjs → chunk-HOXTWEJ6.mjs} +1 -1
  29. package/dist/{chunk-6IDI2TO3.mjs → chunk-IIJA6YLN.mjs} +1 -1
  30. package/dist/{chunk-BMIOZYRR.mjs → chunk-KBFRFIHJ.mjs} +1 -1
  31. package/dist/{chunk-FDPPYVSB.mjs → chunk-LD4JCEDK.mjs} +1 -1
  32. package/dist/{chunk-MPGETIGI.mjs → chunk-LZVWXI54.mjs} +1 -1
  33. package/dist/{chunk-HF33ZXKX.mjs → chunk-MJHKTGMB.mjs} +1 -1
  34. package/dist/{chunk-QPGVTPZ4.mjs → chunk-O2MEMBJA.mjs} +1 -1
  35. package/dist/{chunk-DDQVEARQ.mjs → chunk-OOLKLT3Y.mjs} +1 -1
  36. package/dist/{chunk-ZFUP5NVF.mjs → chunk-PXLSH6S2.mjs} +1 -1
  37. package/dist/{chunk-QHIZOLWH.mjs → chunk-PXUZJITV.mjs} +1 -1
  38. package/dist/{chunk-XSPGO55P.mjs → chunk-QYJUVN55.mjs} +1 -1
  39. package/dist/{chunk-D3LUK47L.mjs → chunk-RBNUDRIK.mjs} +1 -1
  40. package/dist/{chunk-QLKS32RD.mjs → chunk-REF6QD43.mjs} +1 -1
  41. package/dist/{chunk-43W3VBQF.mjs → chunk-RMKFUGL3.mjs} +1 -1
  42. package/dist/{chunk-PM6RB4YG.mjs → chunk-RQ4ULDX4.mjs} +1 -1
  43. package/dist/{chunk-4LX2MTJJ.mjs → chunk-S6X5XHEQ.mjs} +1 -1
  44. package/dist/{chunk-TXVA6XJT.mjs → chunk-SRUG246N.mjs} +1 -1
  45. package/dist/{chunk-LQBFZE2A.mjs → chunk-SSKCGGIO.mjs} +1 -1
  46. package/dist/{chunk-TIVHBMZN.mjs → chunk-UOTVSY2R.mjs} +1 -1
  47. package/dist/{chunk-2ZBHHV3P.mjs → chunk-V5UCRGUG.mjs} +1 -1
  48. package/dist/{chunk-JWS4N2JB.mjs → chunk-VCKKDEC5.mjs} +1 -1
  49. package/dist/{chunk-3HZONVAV.mjs → chunk-W3FX7DTY.mjs} +1 -1
  50. package/dist/{chunk-RROQDNV5.mjs → chunk-WB6E2OI6.mjs} +1 -1
  51. package/dist/{chunk-QAJ35CAG.mjs → chunk-WPCACDYE.mjs} +1 -1
  52. package/dist/{chunk-4EQSCHSF.mjs → chunk-XNLTHAQ7.mjs} +1 -1
  53. package/dist/{chunk-EFH7LGKB.mjs → chunk-YJNUFYR6.mjs} +1 -1
  54. package/dist/components/AdvancedComponents/AppSidebar.mjs +1 -1
  55. package/dist/components/AdvancedComponents/index.mjs +1 -1
  56. package/dist/components/Blocks/Banner.mjs +1 -1
  57. package/dist/components/Blocks/CallToAction.mjs +1 -1
  58. package/dist/components/Blocks/CollapsibleArea.mjs +1 -1
  59. package/dist/components/Blocks/Content.mjs +1 -1
  60. package/dist/components/Blocks/FeaturesBlock.mjs +1 -1
  61. package/dist/components/Blocks/RelatedPosts.mjs +1 -1
  62. package/dist/components/Blocks/RenderBlocks.mjs +1 -1
  63. package/dist/components/Blocks/ReusableContentBlock.mjs +1 -1
  64. package/dist/components/Blocks/index.mjs +1 -1
  65. package/dist/components/Cards/ContentCard.mjs +1 -1
  66. package/dist/components/Cards/FeatureCard.mjs +1 -1
  67. package/dist/components/Cards/index.mjs +1 -1
  68. package/dist/components/Chat/CopilotInterface.mjs +1 -1
  69. package/dist/components/Chat/demo-long-messages.mjs +1 -1
  70. package/dist/components/Chat/demo-tests.mjs +1 -1
  71. package/dist/components/Chat/demo.mjs +1 -1
  72. package/dist/components/Chat/example-usage.mjs +1 -1
  73. package/dist/components/Chat/example-with-vercel-ai.mjs +1 -1
  74. package/dist/components/Chat/index.mjs +1 -1
  75. package/dist/components/DigitalColleagues/AppSidebarLeft.mjs +1 -1
  76. package/dist/components/DigitalColleagues/DigitalColleageusLayout.mjs +1 -1
  77. package/dist/components/DigitalColleagues/MainPage.mjs +1 -1
  78. package/dist/components/DigitalColleagues/Pages/dashboardpage.mjs +1 -1
  79. package/dist/components/DigitalColleagues/Views/ColleaguesView.mjs +1 -1
  80. package/dist/components/DigitalColleagues/Views/KnowledgeView.mjs +1 -1
  81. package/dist/components/DigitalColleagues/Views/TeamsIndexView.mjs +1 -1
  82. package/dist/components/DigitalColleagues/Views/index.mjs +1 -1
  83. package/dist/components/DigitalColleagues/index.mjs +1 -1
  84. package/dist/components/Foundary/AppSidebarLeft.mjs +1 -1
  85. package/dist/components/Foundary/Knowledge/add-knowledge-modal.mjs +1 -1
  86. package/dist/components/Foundary/Knowledge/add-team-context.mjs +1 -1
  87. package/dist/components/Foundary/MainPage.mjs +1 -1
  88. package/dist/components/Foundary/Pages/dashboardpage.mjs +1 -1
  89. package/dist/components/Foundary/Views/ColleaguesView.mjs +1 -1
  90. package/dist/components/Foundary/Views/KnowledgeView.mjs +1 -1
  91. package/dist/components/Foundary/Views/TeamsIndexView.mjs +1 -1
  92. package/dist/components/Foundary/Views/index.mjs +1 -1
  93. package/dist/components/Foundary/file-edit.mjs +1 -1
  94. package/dist/components/Foundary/foundary-layout.mjs +1 -1
  95. package/dist/components/Foundary/index.mjs +1 -1
  96. package/dist/components/HeaderFooter/SectionHeading.mjs +1 -1
  97. package/dist/components/Heros/DashboardHero/DashboardHero.mjs +1 -1
  98. package/dist/components/Heros/DashboardHero/index.mjs +1 -1
  99. package/dist/components/Heros/HighImpact/index.mjs +1 -1
  100. package/dist/components/Heros/LowImpact/index.mjs +1 -1
  101. package/dist/components/Heros/MediumImpact/index.mjs +1 -1
  102. package/dist/components/Heros/PostHero/index.mjs +1 -1
  103. package/dist/components/Heros/RenderHero.mjs +1 -1
  104. package/dist/components/Heros/index.mjs +1 -1
  105. package/dist/components/Layouts/OutputHeaderFooter.mjs +1 -1
  106. package/dist/components/Layouts/Print.mjs +1 -1
  107. package/dist/components/Layouts/SlideShow.mjs +1 -1
  108. package/dist/components/Layouts/index.mjs +1 -1
  109. package/dist/components/Menus/SidebarLeft.mjs +1 -1
  110. package/dist/components/Menus/SidebarLeftMulti.mjs +1 -1
  111. package/dist/components/Menus/SidebarRight.mjs +1 -1
  112. package/dist/components/Menus/index.mjs +1 -1
  113. package/dist/components/Payload/RichText/index.mjs +1 -1
  114. package/dist/components/Payload/RichText/serialize.mjs +1 -1
  115. package/dist/components/Payload/index.mjs +1 -1
  116. package/dist/components/Projects/EpicsView.mjs +1 -1
  117. package/dist/components/Projects/FileView.mjs +1 -1
  118. package/dist/components/Projects/KanbanBoardView.mjs +1 -1
  119. package/dist/components/Projects/PlanningView.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/Projects/ProjectsIndexView.mjs +1 -1
  123. package/dist/components/Projects/TaskDetailsModal.mjs +1 -1
  124. package/dist/components/Projects/TasksView.mjs +1 -1
  125. package/dist/components/Projects/file-list.mjs +1 -1
  126. package/dist/components/Projects/index.mjs +1 -1
  127. package/dist/components/dc-temp/dashboard-integration-example.mjs +1 -1
  128. package/dist/components/dc-temp/index.mjs +1 -1
  129. package/dist/components/index.mjs +1 -1
  130. package/dist/components/ui/index.mjs +1 -1
  131. package/dist/components/ui/sidebar.mjs +1 -1
  132. package/dist/decorators/Intranet.mjs +1 -1
  133. package/dist/index.mjs +1 -1
  134. package/dist/metafile-cjs.json +1 -1
  135. package/dist/metafile-esm.json +1 -1
  136. package/dist/pages/Blog.mjs +1 -1
  137. package/dist/pages/Documentation.mjs +1 -1
  138. package/dist/pages/IndexPage.mjs +1 -1
  139. package/dist/pages/Intranet.mjs +1 -1
  140. package/dist/pages/LandingPage.mjs +1 -1
  141. package/dist/pages/Page.mjs +1 -1
  142. package/dist/pages/Publish.mjs +1 -1
  143. package/dist/pages/Website.mjs +1 -1
  144. package/dist/sections/AboutSection.mjs +1 -1
  145. package/dist/sections/BlogDetail.mjs +1 -1
  146. package/dist/sections/BlogList.mjs +1 -1
  147. package/dist/sections/BlogListSection.mjs +1 -1
  148. package/dist/sections/ContactSection.mjs +1 -1
  149. package/dist/sections/PageSections.mjs +1 -1
  150. package/dist/sections/PricingSection.mjs +1 -1
  151. package/dist/sections/ServiceDetail.mjs +1 -1
  152. package/dist/sections/ServiceDetailSection.mjs +1 -1
  153. package/dist/sections/ServiceSection.mjs +1 -1
  154. package/dist/sections/form/index.mjs +1 -1
  155. package/dist/sections/index.mjs +1 -1
  156. package/dist/styles.css +8 -50
  157. package/dist/tailwind-preset.js +26 -3
  158. package/dist/tailwind-preset.mjs +26 -3
  159. package/package.json +1 -1
package/dist/styles.css CHANGED
@@ -7,58 +7,16 @@
7
7
  * Usage in consuming app:
8
8
  * 1. Import this CSS file: import 'cortex-react-components/styles.css';
9
9
  * 2. Extend your tailwind.config.js with our preset (see package exports)
10
+ * 3. Load the Manrope font (e.g., via Google Fonts or self-hosted)
11
+ *
12
+ * To load Manrope font, add to your HTML head:
13
+ * <link href="https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet">
14
+ *
15
+ * Or in Next.js, use next/font:
16
+ * import { Manrope } from 'next/font/google';
17
+ * const manrope = Manrope({ subsets: ['latin'] });
10
18
  */
11
19
 
12
- /* Font face declarations */
13
- @font-face {
14
- font-family: 'Manrope';
15
- font-style: normal;
16
- font-weight: 400;
17
- src: url('./fonts/Manrope-Regular.ttf') format('truetype');
18
- }
19
-
20
- @font-face {
21
- font-family: 'Manrope';
22
- font-style: normal;
23
- font-weight: 300;
24
- src: url('./fonts/Manrope-Light.ttf') format('truetype');
25
- }
26
-
27
- @font-face {
28
- font-family: 'Manrope';
29
- font-style: normal;
30
- font-weight: 200;
31
- src: url('./fonts/Manrope-ExtraLight.ttf') format('truetype');
32
- }
33
-
34
- @font-face {
35
- font-family: 'Manrope';
36
- font-style: normal;
37
- font-weight: 500;
38
- src: url('./fonts/Manrope-Medium.ttf') format('truetype');
39
- }
40
-
41
- @font-face {
42
- font-family: 'Manrope';
43
- font-style: normal;
44
- font-weight: 600;
45
- src: url('./fonts/Manrope-SemiBold.ttf') format('truetype');
46
- }
47
-
48
- @font-face {
49
- font-family: 'Manrope';
50
- font-style: normal;
51
- font-weight: 700;
52
- src: url('./fonts/Manrope-Bold.ttf') format('truetype');
53
- }
54
-
55
- @font-face {
56
- font-family: 'Manrope';
57
- font-style: normal;
58
- font-weight: 800;
59
- src: url('./fonts/Manrope-ExtraBold.ttf') format('truetype');
60
- }
61
-
62
20
  /* CSS Custom Properties (Design Tokens) */
63
21
  :root {
64
22
  --background: 20 14.3% 4.1%;
@@ -13,17 +13,39 @@
13
13
  * presets: [cortexPreset],
14
14
  * content: [
15
15
  * './src/**\/*.{js,ts,jsx,tsx}',
16
- * // Include the library's components for Tailwind to scan
17
- * './node_modules/cortex-react-components/dist/**\/*.{js,mjs}',
18
16
  * ],
19
17
  * // ... your other config
20
18
  * };
21
19
  * ```
20
+ *
21
+ * Note: You do NOT need to add node_modules/cortex-react-components to content paths.
22
+ * The safelist in this preset includes all classes used by the library components.
22
23
  */
23
24
 
24
25
  /** @type {import('tailwindcss').Config} */
25
26
  const cortexPreset = {
26
27
  darkMode: ['selector'],
28
+ safelist: [
29
+ // Brand colors
30
+ { pattern: /bg-brand-(plum|blue|green|orange|cyan)(-\d{2,3}|foreground)?/ },
31
+ { pattern: /text-brand-(plum|blue|green|orange|cyan)(-\d{2,3}|foreground)?/ },
32
+ { pattern: /from-brand-(plum|blue|green|orange|cyan)/ },
33
+ { pattern: /to-brand-(plum|blue|green|orange|cyan)/ },
34
+ // Theme colors
35
+ { pattern: /bg-(background|foreground|card|popover|primary|secondary|muted|accent|destructive|border|input|ring)/ },
36
+ { pattern: /text-(background|foreground|card|popover|primary|secondary|muted|accent|destructive)/ },
37
+ { pattern: /border-(background|foreground|card|popover|primary|secondary|muted|accent|destructive|border|error|success|warning)/ },
38
+ // Sidebar
39
+ { pattern: /bg-sidebar(-background|-foreground|-primary|-accent|-border|-ring)?/ },
40
+ { pattern: /text-sidebar(-foreground|-primary-foreground|-accent-foreground)?/ },
41
+ // Status colors
42
+ 'bg-error/30', 'bg-success/30', 'bg-warning/30',
43
+ 'border-error', 'border-success', 'border-warning',
44
+ // Layout
45
+ 'lg:col-span-4', 'lg:col-span-6', 'lg:col-span-8', 'lg:col-span-12',
46
+ // Charts
47
+ 'bg-chart-1', 'bg-chart-2', 'bg-chart-3', 'bg-chart-4', 'bg-chart-5',
48
+ ],
27
49
  theme: {
28
50
  fontFamily: {
29
51
  sans: ['Manrope', 'sans-serif'],
@@ -255,7 +277,8 @@ const cortexPreset = {
255
277
  plugins: [
256
278
  require('tailwindcss-animated'),
257
279
  require('@tailwindcss/typography'),
258
- require('tailwindcss-intersect'),
280
+ // Note: tailwindcss-intersect removed as it can cause CSS parsing issues with some bundlers
281
+ // If you need it, add it to your own tailwind.config.js: require('tailwindcss-intersect')
259
282
  function ({ addUtilities }) {
260
283
  addUtilities({
261
284
  '.no-scrollbar::-webkit-scrollbar': {
@@ -13,17 +13,39 @@
13
13
  * presets: [cortexPreset],
14
14
  * content: [
15
15
  * './src/**\/*.{js,ts,jsx,tsx}',
16
- * // Include the library's components for Tailwind to scan
17
- * './node_modules/cortex-react-components/dist/**\/*.{js,mjs}',
18
16
  * ],
19
17
  * // ... your other config
20
18
  * };
21
19
  * ```
20
+ *
21
+ * Note: You do NOT need to add node_modules/cortex-react-components to content paths.
22
+ * The safelist in this preset includes all classes used by the library components.
22
23
  */
23
24
 
24
25
  /** @type {import('tailwindcss').Config} */
25
26
  const cortexPreset = {
26
27
  darkMode: ['selector'],
28
+ safelist: [
29
+ // Brand colors
30
+ { pattern: /bg-brand-(plum|blue|green|orange|cyan)(-\d{2,3}|foreground)?/ },
31
+ { pattern: /text-brand-(plum|blue|green|orange|cyan)(-\d{2,3}|foreground)?/ },
32
+ { pattern: /from-brand-(plum|blue|green|orange|cyan)/ },
33
+ { pattern: /to-brand-(plum|blue|green|orange|cyan)/ },
34
+ // Theme colors
35
+ { pattern: /bg-(background|foreground|card|popover|primary|secondary|muted|accent|destructive|border|input|ring)/ },
36
+ { pattern: /text-(background|foreground|card|popover|primary|secondary|muted|accent|destructive)/ },
37
+ { pattern: /border-(background|foreground|card|popover|primary|secondary|muted|accent|destructive|border|error|success|warning)/ },
38
+ // Sidebar
39
+ { pattern: /bg-sidebar(-background|-foreground|-primary|-accent|-border|-ring)?/ },
40
+ { pattern: /text-sidebar(-foreground|-primary-foreground|-accent-foreground)?/ },
41
+ // Status colors
42
+ 'bg-error/30', 'bg-success/30', 'bg-warning/30',
43
+ 'border-error', 'border-success', 'border-warning',
44
+ // Layout
45
+ 'lg:col-span-4', 'lg:col-span-6', 'lg:col-span-8', 'lg:col-span-12',
46
+ // Charts
47
+ 'bg-chart-1', 'bg-chart-2', 'bg-chart-3', 'bg-chart-4', 'bg-chart-5',
48
+ ],
27
49
  theme: {
28
50
  fontFamily: {
29
51
  sans: ['Manrope', 'sans-serif'],
@@ -255,7 +277,8 @@ const cortexPreset = {
255
277
  plugins: [
256
278
  require('tailwindcss-animated'),
257
279
  require('@tailwindcss/typography'),
258
- require('tailwindcss-intersect'),
280
+ // Note: tailwindcss-intersect removed as it can cause CSS parsing issues with some bundlers
281
+ // If you need it, add it to your own tailwind.config.js: require('tailwindcss-intersect')
259
282
  function ({ addUtilities }) {
260
283
  addUtilities({
261
284
  '.no-scrollbar::-webkit-scrollbar': {
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": "3.0.0",
5
+ "version": "3.0.2",
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",